From 941832443279b45ffdab0ff5a440fc19b1904aa4 Mon Sep 17 00:00:00 2001 From: Manu Chaudhary Date: Sun, 24 May 2026 18:00:53 +0530 Subject: [PATCH 1/6] feat: initial stlc build Stainless-Generated-From: 34d1ce79996b661b73ebd887b8844cdc97b92faf --- .github/workflows/ci.yml | 42 +------------ .github/workflows/publish-sonatype.yml | 8 +-- .github/workflows/release-doctor.yml | 1 + .stats.yml | 3 - bin/check-release-environment | 4 ++ .../src/main/kotlin/io/imagekit/core/Check.kt | 52 +++++++--------- .../kotlin/io/imagekit/models/BaseOverlay.kt | 2 + .../io/imagekit/models/CustomMetadata.kt | 5 +- .../io/imagekit/models/EmbeddedMetadata.kt | 5 +- .../io/imagekit/models/ExtensionConfig.kt | 14 ++++- .../io/imagekit/models/ExtensionItem.kt | 14 ++++- .../models/GetImageAttributesOptions.kt | 2 + .../kotlin/io/imagekit/models/ImageOverlay.kt | 2 + .../io/imagekit/models/OverlayPosition.kt | 4 ++ .../imagekit/models/SelectedFieldsSchema.kt | 5 +- .../models/SolidColorOverlayTransformation.kt | 10 +-- .../kotlin/io/imagekit/models/SrcOptions.kt | 5 +- .../io/imagekit/models/StreamingResolution.kt | 2 + .../io/imagekit/models/SubtitleOverlay.kt | 2 + .../models/SubtitleOverlayTransformation.kt | 2 + .../kotlin/io/imagekit/models/TextOverlay.kt | 2 + .../models/TextOverlayTransformation.kt | 9 ++- .../io/imagekit/models/Transformation.kt | 61 ++++++++++++++----- .../imagekit/models/TransformationPosition.kt | 2 + .../kotlin/io/imagekit/models/VideoOverlay.kt | 2 + .../urlendpoints/UrlEndpointRequest.kt | 10 +-- .../urlendpoints/UrlEndpointResponse.kt | 10 +-- .../imagekit/models/assets/AssetListParams.kt | 14 +++++ .../models/beta/v2/files/FileUploadParams.kt | 27 ++++++++ .../beta/v2/files/FileUploadResponse.kt | 10 +++ .../invalidation/InvalidationGetResponse.kt | 2 + .../CustomMetadataField.kt | 7 ++- .../CustomMetadataFieldCreateParams.kt | 7 ++- .../CustomMetadataFieldUpdateParams.kt | 5 +- .../kotlin/io/imagekit/models/files/File.kt | 2 + .../models/files/FileUpdateResponse.kt | 10 +++ .../imagekit/models/files/FileUploadParams.kt | 35 +++++++++++ .../models/files/FileUploadResponse.kt | 10 +++ .../kotlin/io/imagekit/models/files/Folder.kt | 7 ++- .../io/imagekit/models/files/Metadata.kt | 5 +- .../models/files/UpdateFileRequest.kt | 10 +-- .../models/files/bulk/BulkAddTagsResponse.kt | 5 +- .../models/files/bulk/BulkDeleteResponse.kt | 5 +- .../files/bulk/BulkRemoveAiTagsResponse.kt | 5 +- .../files/bulk/BulkRemoveTagsResponse.kt | 5 +- .../models/folders/job/JobGetResponse.kt | 4 ++ .../webhooks/UploadPostTransformErrorEvent.kt | 4 ++ .../UploadPostTransformSuccessEvent.kt | 4 ++ .../UploadPreTransformSuccessEvent.kt | 10 +++ .../VideoTransformationAcceptedEvent.kt | 10 +++ .../webhooks/VideoTransformationErrorEvent.kt | 12 ++++ .../webhooks/VideoTransformationReadyEvent.kt | 10 +++ .../services/async/FileServiceAsync.kt | 1 + .../async/beta/v2/FileServiceAsync.kt | 1 + .../imagekit/services/blocking/FileService.kt | 1 + .../services/blocking/beta/v2/FileService.kt | 1 + image-kit-java-example/build.gradle.kts | 3 +- release-please-config.json | 2 +- 58 files changed, 370 insertions(+), 144 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6781258c..6833b492 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,7 @@ jobs: lint: timeout-minutes: 15 name: lint - runs-on: ${{ github.repository == 'stainless-sdks/imagekit-java' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} + runs-on: ubuntu-latest if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata') steps: @@ -45,7 +45,7 @@ jobs: permissions: contents: read id-token: write - runs-on: ${{ github.repository == 'stainless-sdks/imagekit-java' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} + runs-on: ubuntu-latest if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata') steps: @@ -66,44 +66,6 @@ jobs: - name: Build SDK run: ./scripts/build - - name: Get GitHub OIDC Token - if: |- - github.repository == 'stainless-sdks/imagekit-java' && - !startsWith(github.ref, 'refs/heads/stl/') - id: github-oidc - uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 - with: - script: core.setOutput('github_token', await core.getIDToken()); - - name: Build and upload Maven artifacts - if: |- - github.repository == 'stainless-sdks/imagekit-java' && - !startsWith(github.ref, 'refs/heads/stl/') - env: - URL: https://pkg.stainless.com/s - AUTH: ${{ steps.github-oidc.outputs.github_token }} - SHA: ${{ github.sha }} - PROJECT: imagekit-java - run: ./scripts/upload-artifacts - test: - timeout-minutes: 15 - name: test - runs-on: ${{ github.repository == 'stainless-sdks/imagekit-java' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} - if: github.event_name == 'push' || github.event.pull_request.head.repo.fork - steps: - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - - - name: Set up Java - uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0 - with: - distribution: temurin - java-version: | - 8 - 21 - cache: gradle - - name: Set up Gradle - uses: gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa # v2.12.0 - - name: Run tests - run: ./scripts/test diff --git a/.github/workflows/publish-sonatype.yml b/.github/workflows/publish-sonatype.yml index edc8f87c..841d4027 100644 --- a/.github/workflows/publish-sonatype.yml +++ b/.github/workflows/publish-sonatype.yml @@ -1,13 +1,9 @@ -# This workflow is triggered when a GitHub release is created. -# It can also be run manually to re-publish to Sonatype in case it failed for some reason. -# You can run this workflow by navigating to https://www.github.com/imagekit-developer/imagekit-java/actions/workflows/publish-sonatype.yml +# workflow for re-running publishing to Sonatype in case it fails for some reason +# you can run this workflow by navigating to https://www.github.com/imagekit-developer/imagekit-java/actions/workflows/publish-sonatype.yml name: Publish Sonatype on: workflow_dispatch: - release: - types: [published] - jobs: publish: name: publish diff --git a/.github/workflows/release-doctor.yml b/.github/workflows/release-doctor.yml index a15b81ab..ffa6f597 100644 --- a/.github/workflows/release-doctor.yml +++ b/.github/workflows/release-doctor.yml @@ -18,6 +18,7 @@ jobs: run: | bash ./bin/check-release-environment env: + RELEASE_PLEASE_TOKEN: ${{ secrets.RELEASE_PLEASE_TOKEN }} SONATYPE_USERNAME: ${{ secrets.IMAGE_KIT_SONATYPE_USERNAME || secrets.SONATYPE_USERNAME }} SONATYPE_PASSWORD: ${{ secrets.IMAGE_KIT_SONATYPE_PASSWORD || secrets.SONATYPE_PASSWORD }} GPG_SIGNING_KEY: ${{ secrets.IMAGE_KIT_SONATYPE_GPG_SIGNING_KEY || secrets.GPG_SIGNING_KEY }} diff --git a/.stats.yml b/.stats.yml index 1eed5544..006b15f4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1 @@ configured_endpoints: 47 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc/imagekit-01267e4c07ec30011b8445babed88fbd2133b65198f42d0310b7ab39c74751d4.yml -openapi_spec_hash: 7c103e2dff0edcbeea82057e62f58d4d -config_hash: 7ef70b333059ca21bef0f0a6d4cbb282 diff --git a/bin/check-release-environment b/bin/check-release-environment index 3a6a7b4a..273c639d 100644 --- a/bin/check-release-environment +++ b/bin/check-release-environment @@ -2,6 +2,10 @@ errors=() +if [ -z "${RELEASE_PLEASE_TOKEN}" ]; then + errors+=("The RELEASE_PLEASE_TOKEN secret has not been set. Create a fine-grained GitHub PAT and add it as a repository secret.") +fi + if [ -z "${SONATYPE_USERNAME}" ]; then errors+=("The SONATYPE_USERNAME secret has not been set. Please set it in either this repository's secrets or your organization secrets") fi diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/core/Check.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/core/Check.kt index 2897284d..48c0a5ed 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/core/Check.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/core/Check.kt @@ -24,45 +24,39 @@ internal fun checkKnown(name: String, value: MultipartField): T = } @JvmSynthetic -internal fun checkLength(name: String, value: String, length: Int): String = - value.also { - check(it.length == length) { "`$name` must have length $length, but was ${it.length}" } - } +internal fun checkLength(name: String, value: String, length: Int): String = value.also { + check(it.length == length) { "`$name` must have length $length, but was ${it.length}" } +} @JvmSynthetic -internal fun checkMinLength(name: String, value: String, minLength: Int): String = - value.also { - check(it.length >= minLength) { - if (minLength == 1) "`$name` must be non-empty, but was empty" - else "`$name` must have at least length $minLength, but was ${it.length}" - } +internal fun checkMinLength(name: String, value: String, minLength: Int): String = value.also { + check(it.length >= minLength) { + if (minLength == 1) "`$name` must be non-empty, but was empty" + else "`$name` must have at least length $minLength, but was ${it.length}" } +} @JvmSynthetic -internal fun checkMaxLength(name: String, value: String, maxLength: Int): String = - value.also { - check(it.length <= maxLength) { - "`$name` must have at most length $maxLength, but was ${it.length}" - } +internal fun checkMaxLength(name: String, value: String, maxLength: Int): String = value.also { + check(it.length <= maxLength) { + "`$name` must have at most length $maxLength, but was ${it.length}" } +} @JvmSynthetic internal fun checkJacksonVersionCompatibility() { - val incompatibleJacksonVersions = - RUNTIME_JACKSON_VERSIONS.mapNotNull { - val badVersionReason = BAD_JACKSON_VERSIONS[it.toString()] - when { - it.majorVersion != MINIMUM_JACKSON_VERSION.majorVersion -> - it to "incompatible major version" - it.minorVersion < MINIMUM_JACKSON_VERSION.minorVersion -> - it to "minor version too low" - it.minorVersion == MINIMUM_JACKSON_VERSION.minorVersion && - it.patchLevel < MINIMUM_JACKSON_VERSION.patchLevel -> - it to "patch version too low" - badVersionReason != null -> it to badVersionReason - else -> null - } + val incompatibleJacksonVersions = RUNTIME_JACKSON_VERSIONS.mapNotNull { + val badVersionReason = BAD_JACKSON_VERSIONS[it.toString()] + when { + it.majorVersion != MINIMUM_JACKSON_VERSION.majorVersion -> + it to "incompatible major version" + it.minorVersion < MINIMUM_JACKSON_VERSION.minorVersion -> it to "minor version too low" + it.minorVersion == MINIMUM_JACKSON_VERSION.minorVersion && + it.patchLevel < MINIMUM_JACKSON_VERSION.patchLevel -> it to "patch version too low" + badVersionReason != null -> it to badVersionReason + else -> null } + } check(incompatibleJacksonVersions.isEmpty()) { """ This SDK requires a minimum Jackson version of $MINIMUM_JACKSON_VERSION, but the following incompatible Jackson versions were detected at runtime: diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/models/BaseOverlay.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/models/BaseOverlay.kt index 851e9de2..9b98b065 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/models/BaseOverlay.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/models/BaseOverlay.kt @@ -315,9 +315,11 @@ private constructor( * An enum containing [LayerMode]'s known values, as well as an [_UNKNOWN] member. * * An instance of [LayerMode] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if the * SDK is on an older version than the API, then the API may respond with new members that * the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/models/CustomMetadata.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/models/CustomMetadata.kt index 0198066b..f445553d 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/models/CustomMetadata.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/models/CustomMetadata.kt @@ -99,8 +99,9 @@ private constructor( * Used for best match union deserialization. */ @JvmSynthetic - internal fun validity(): Int = - additionalProperties.count { (_, value) -> !value.isNull() && !value.isMissing() } + internal fun validity(): Int = additionalProperties.count { (_, value) -> + !value.isNull() && !value.isMissing() + } override fun equals(other: Any?): Boolean { if (this === other) { diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/models/EmbeddedMetadata.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/models/EmbeddedMetadata.kt index 9257c90e..6111757e 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/models/EmbeddedMetadata.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/models/EmbeddedMetadata.kt @@ -101,8 +101,9 @@ private constructor( * Used for best match union deserialization. */ @JvmSynthetic - internal fun validity(): Int = - additionalProperties.count { (_, value) -> !value.isNull() && !value.isMissing() } + internal fun validity(): Int = additionalProperties.count { (_, value) -> + !value.isNull() && !value.isMissing() + } override fun equals(other: Any?): Boolean { if (this === other) { diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/models/ExtensionConfig.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/models/ExtensionConfig.kt index 41001c11..d8ab909c 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/models/ExtensionConfig.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/models/ExtensionConfig.kt @@ -1063,9 +1063,11 @@ private constructor( * An enum containing [Name]'s known values, as well as an [_UNKNOWN] member. * * An instance of [Name] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if * the SDK is on an older version than the API, then the API may respond with new * members that the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -3739,7 +3741,9 @@ private constructor( override fun visitBool(bool: Boolean) = 1 override fun visitMixed(mixed: List) = - mixed.sumOf { it.validity().toInt() } + mixed.sumOf { + it.validity().toInt() + } override fun unknown(json: JsonValue?) = 0 } @@ -5076,7 +5080,9 @@ private constructor( override fun visitBool(bool: Boolean) = 1 override fun visitMixed(mixed: List) = - mixed.sumOf { it.validity().toInt() } + mixed.sumOf { + it.validity().toInt() + } override fun unknown(json: JsonValue?) = 0 } @@ -6411,7 +6417,9 @@ private constructor( override fun visitBool(bool: Boolean) = 1 override fun visitMixed(mixed: List) = - mixed.sumOf { it.validity().toInt() } + mixed.sumOf { + it.validity().toInt() + } override fun unknown(json: JsonValue?) = 0 } diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/models/ExtensionItem.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/models/ExtensionItem.kt index aa138b3a..705e37fb 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/models/ExtensionItem.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/models/ExtensionItem.kt @@ -1089,9 +1089,11 @@ private constructor( * An enum containing [Name]'s known values, as well as an [_UNKNOWN] member. * * An instance of [Name] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if * the SDK is on an older version than the API, then the API may respond with new * members that the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -3765,7 +3767,9 @@ private constructor( override fun visitBool(bool: Boolean) = 1 override fun visitMixed(mixed: List) = - mixed.sumOf { it.validity().toInt() } + mixed.sumOf { + it.validity().toInt() + } override fun unknown(json: JsonValue?) = 0 } @@ -5102,7 +5106,9 @@ private constructor( override fun visitBool(bool: Boolean) = 1 override fun visitMixed(mixed: List) = - mixed.sumOf { it.validity().toInt() } + mixed.sumOf { + it.validity().toInt() + } override fun unknown(json: JsonValue?) = 0 } @@ -6437,7 +6443,9 @@ private constructor( override fun visitBool(bool: Boolean) = 1 override fun visitMixed(mixed: List) = - mixed.sumOf { it.validity().toInt() } + mixed.sumOf { + it.validity().toInt() + } override fun unknown(json: JsonValue?) = 0 } diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/models/GetImageAttributesOptions.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/models/GetImageAttributesOptions.kt index 790c058f..e7e70737 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/models/GetImageAttributesOptions.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/models/GetImageAttributesOptions.kt @@ -202,6 +202,7 @@ private constructor( /** * The value for the HTML `sizes` attribute (e.g., `"100vw"` or `"(min-width:768px) 50vw, * 100vw"`). + * * - If it includes one or more `vw` units, breakpoints smaller than the corresponding * percentage of the smallest device width are excluded. * - If it contains no `vw` units, the full breakpoint list is used. @@ -585,6 +586,7 @@ private constructor( /** * The value for the HTML `sizes` attribute (e.g., `"100vw"` or `"(min-width:768px) 50vw, * 100vw"`). + * * - If it includes one or more `vw` units, breakpoints smaller than the corresponding * percentage of the smallest device width are excluded. * - If it contains no `vw` units, the full breakpoint list is used. diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/models/ImageOverlay.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/models/ImageOverlay.kt index a06b2211..be16aaac 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/models/ImageOverlay.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/models/ImageOverlay.kt @@ -517,9 +517,11 @@ private constructor( * An enum containing [Encoding]'s known values, as well as an [_UNKNOWN] member. * * An instance of [Encoding] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if the * SDK is on an older version than the API, then the API may respond with new members that * the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/models/OverlayPosition.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/models/OverlayPosition.kt index 9c76769d..09db8abf 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/models/OverlayPosition.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/models/OverlayPosition.kt @@ -463,9 +463,11 @@ private constructor( * An enum containing [AnchorPoint]'s known values, as well as an [_UNKNOWN] member. * * An instance of [AnchorPoint] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if the * SDK is on an older version than the API, then the API may respond with new members that * the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -648,9 +650,11 @@ private constructor( * An enum containing [Focus]'s known values, as well as an [_UNKNOWN] member. * * An instance of [Focus] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if the * SDK is on an older version than the API, then the API may respond with new members that * the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/models/SelectedFieldsSchema.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/models/SelectedFieldsSchema.kt index cd10e154..b80af2c9 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/models/SelectedFieldsSchema.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/models/SelectedFieldsSchema.kt @@ -106,8 +106,9 @@ private constructor( * Used for best match union deserialization. */ @JvmSynthetic - internal fun validity(): Int = - additionalProperties.count { (_, value) -> !value.isNull() && !value.isMissing() } + internal fun validity(): Int = additionalProperties.count { (_, value) -> + !value.isNull() && !value.isMissing() + } override fun equals(other: Any?): Boolean { if (this === other) { diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/models/SolidColorOverlayTransformation.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/models/SolidColorOverlayTransformation.kt index d97593a0..ddc738d0 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/models/SolidColorOverlayTransformation.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/models/SolidColorOverlayTransformation.kt @@ -517,8 +517,9 @@ private constructor( internal fun validity(): Int = accept( object : Visitor { - override fun visitTrue(true_: JsonValue) = - true_.let { if (it == JsonValue.from(true)) 1 else 0 } + override fun visitTrue(true_: JsonValue) = true_.let { + if (it == JsonValue.from(true)) 1 else 0 + } override fun visitString(string: String) = 1 @@ -961,8 +962,9 @@ private constructor( object : Visitor { override fun visitNumber(number: Double) = 1 - override fun visitMax(max: JsonValue) = - max.let { if (it == JsonValue.from("max")) 1 else 0 } + override fun visitMax(max: JsonValue) = max.let { + if (it == JsonValue.from("max")) 1 else 0 + } override fun visitString(string: String) = 1 diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/models/SrcOptions.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/models/SrcOptions.kt index afe64575..392b72e5 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/models/SrcOptions.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/models/SrcOptions.kt @@ -582,8 +582,9 @@ private constructor( * Used for best match union deserialization. */ @JvmSynthetic - internal fun validity(): Int = - additionalProperties.count { (_, value) -> !value.isNull() && !value.isMissing() } + internal fun validity(): Int = additionalProperties.count { (_, value) -> + !value.isNull() && !value.isMissing() + } override fun equals(other: Any?): Boolean { if (this === other) { diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/models/StreamingResolution.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/models/StreamingResolution.kt index ca27cd57..5b2a0202 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/models/StreamingResolution.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/models/StreamingResolution.kt @@ -57,9 +57,11 @@ class StreamingResolution @JsonCreator private constructor(private val value: Js * An enum containing [StreamingResolution]'s known values, as well as an [_UNKNOWN] member. * * An instance of [StreamingResolution] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if the SDK * is on an older version than the API, then the API may respond with new members that the SDK * is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/models/SubtitleOverlay.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/models/SubtitleOverlay.kt index cc1fb9f5..21e45f07 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/models/SubtitleOverlay.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/models/SubtitleOverlay.kt @@ -511,9 +511,11 @@ private constructor( * An enum containing [Encoding]'s known values, as well as an [_UNKNOWN] member. * * An instance of [Encoding] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if the * SDK is on an older version than the API, then the API may respond with new members that * the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/models/SubtitleOverlayTransformation.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/models/SubtitleOverlayTransformation.kt index fce2b9d9..0cc3d0e0 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/models/SubtitleOverlayTransformation.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/models/SubtitleOverlayTransformation.kt @@ -501,9 +501,11 @@ private constructor( * An enum containing [Typography]'s known values, as well as an [_UNKNOWN] member. * * An instance of [Typography] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if the * SDK is on an older version than the API, then the API may respond with new members that * the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/models/TextOverlay.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/models/TextOverlay.kt index 34bad4f7..4e3c8d00 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/models/TextOverlay.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/models/TextOverlay.kt @@ -512,9 +512,11 @@ private constructor( * An enum containing [Encoding]'s known values, as well as an [_UNKNOWN] member. * * An instance of [Encoding] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if the * SDK is on an older version than the API, then the API may respond with new members that * the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/models/TextOverlayTransformation.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/models/TextOverlayTransformation.kt index 9b8f019a..ab4292e6 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/models/TextOverlayTransformation.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/models/TextOverlayTransformation.kt @@ -751,9 +751,11 @@ private constructor( * An enum containing [Flip]'s known values, as well as an [_UNKNOWN] member. * * An instance of [Flip] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if the * SDK is on an older version than the API, then the API may respond with new members that * the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -1109,9 +1111,11 @@ private constructor( * An enum containing [InnerAlignment]'s known values, as well as an [_UNKNOWN] member. * * An instance of [InnerAlignment] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if the * SDK is on an older version than the API, then the API may respond with new members that * the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -1772,8 +1776,9 @@ private constructor( object : Visitor { override fun visitNumber(number: Double) = 1 - override fun visitMax(max: JsonValue) = - max.let { if (it == JsonValue.from("max")) 1 else 0 } + override fun visitMax(max: JsonValue) = max.let { + if (it == JsonValue.from("max")) 1 else 0 + } override fun visitString(string: String) = 1 diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/models/Transformation.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/models/Transformation.kt index 5bc3343c..5232c39e 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/models/Transformation.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/models/Transformation.kt @@ -2857,8 +2857,9 @@ private constructor( internal fun validity(): Int = accept( object : Visitor { - override fun visitTrue(true_: JsonValue) = - true_.let { if (it == JsonValue.from(true)) 1 else 0 } + override fun visitTrue(true_: JsonValue) = true_.let { + if (it == JsonValue.from(true)) 1 else 0 + } override fun visitString(string: String) = 1 @@ -2997,9 +2998,11 @@ private constructor( * An enum containing [AiRemoveBackground]'s known values, as well as an [_UNKNOWN] member. * * An instance of [AiRemoveBackground] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if the * SDK is on an older version than the API, then the API may respond with new members that * the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -3136,9 +3139,11 @@ private constructor( * * An instance of [AiRemoveBackgroundExternal] can contain an unknown value in a couple of * cases: + * * - It was deserialized from data that doesn't match any known member. For example, if the * SDK is on an older version than the API, then the API may respond with new members that * the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -3271,9 +3276,11 @@ private constructor( * An enum containing [AiRetouch]'s known values, as well as an [_UNKNOWN] member. * * An instance of [AiRetouch] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if the * SDK is on an older version than the API, then the API may respond with new members that * the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -3404,9 +3411,11 @@ private constructor( * An enum containing [AiUpscale]'s known values, as well as an [_UNKNOWN] member. * * An instance of [AiUpscale] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if the * SDK is on an older version than the API, then the API may respond with new members that * the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -3540,9 +3549,11 @@ private constructor( * An enum containing [AiVariation]'s known values, as well as an [_UNKNOWN] member. * * An instance of [AiVariation] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if the * SDK is on an older version than the API, then the API may respond with new members that * the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -3893,9 +3904,11 @@ private constructor( * An enum containing [AudioCodec]'s known values, as well as an [_UNKNOWN] member. * * An instance of [AudioCodec] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if the * SDK is on an older version than the API, then the API may respond with new members that * the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -4036,9 +4049,11 @@ private constructor( * An enum containing [ContrastStretch]'s known values, as well as an [_UNKNOWN] member. * * An instance of [ContrastStretch] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if the * SDK is on an older version than the API, then the API may respond with new members that * the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -4185,9 +4200,11 @@ private constructor( * An enum containing [Crop]'s known values, as well as an [_UNKNOWN] member. * * An instance of [Crop] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if the * SDK is on an older version than the API, then the API may respond with new members that * the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -4346,9 +4363,11 @@ private constructor( * An enum containing [CropMode]'s known values, as well as an [_UNKNOWN] member. * * An instance of [CropMode] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if the * SDK is on an older version than the API, then the API may respond with new members that * the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -4926,9 +4945,11 @@ private constructor( * An enum containing [Flip]'s known values, as well as an [_UNKNOWN] member. * * An instance of [Flip] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if the * SDK is on an older version than the API, then the API may respond with new members that * the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -5103,9 +5124,11 @@ private constructor( * An enum containing [Format]'s known values, as well as an [_UNKNOWN] member. * * An instance of [Format] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if the * SDK is on an older version than the API, then the API may respond with new members that * the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -5351,8 +5374,9 @@ private constructor( internal fun validity(): Int = accept( object : Visitor { - override fun visitTrue(true_: JsonValue) = - true_.let { if (it == JsonValue.from(true)) 1 else 0 } + override fun visitTrue(true_: JsonValue) = true_.let { + if (it == JsonValue.from(true)) 1 else 0 + } override fun visitString(string: String) = 1 @@ -5488,9 +5512,11 @@ private constructor( * An enum containing [Grayscale]'s known values, as well as an [_UNKNOWN] member. * * An instance of [Grayscale] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if the * SDK is on an older version than the API, then the API may respond with new members that * the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -6140,8 +6166,9 @@ private constructor( object : Visitor { override fun visitNumber(number: Double) = 1 - override fun visitMax(max: JsonValue) = - max.let { if (it == JsonValue.from("max")) 1 else 0 } + override fun visitMax(max: JsonValue) = max.let { + if (it == JsonValue.from("max")) 1 else 0 + } override fun visitString(string: String) = 1 @@ -6586,8 +6613,9 @@ private constructor( internal fun validity(): Int = accept( object : Visitor { - override fun visitTrue(true_: JsonValue) = - true_.let { if (it == JsonValue.from(true)) 1 else 0 } + override fun visitTrue(true_: JsonValue) = true_.let { + if (it == JsonValue.from(true)) 1 else 0 + } override fun visitString(string: String) = 1 @@ -6805,8 +6833,9 @@ private constructor( internal fun validity(): Int = accept( object : Visitor { - override fun visitTrue(true_: JsonValue) = - true_.let { if (it == JsonValue.from(true)) 1 else 0 } + override fun visitTrue(true_: JsonValue) = true_.let { + if (it == JsonValue.from(true)) 1 else 0 + } override fun visitNumber(number: Double) = 1 @@ -7239,8 +7268,9 @@ private constructor( internal fun validity(): Int = accept( object : Visitor { - override fun visitTrue(true_: JsonValue) = - true_.let { if (it == JsonValue.from(true)) 1 else 0 } + override fun visitTrue(true_: JsonValue) = true_.let { + if (it == JsonValue.from(true)) 1 else 0 + } override fun visitNumber(number: Double) = 1 @@ -7457,8 +7487,9 @@ private constructor( internal fun validity(): Int = accept( object : Visitor { - override fun visitTrue(true_: JsonValue) = - true_.let { if (it == JsonValue.from(true)) 1 else 0 } + override fun visitTrue(true_: JsonValue) = true_.let { + if (it == JsonValue.from(true)) 1 else 0 + } override fun visitString(string: String) = 1 @@ -7604,9 +7635,11 @@ private constructor( * An enum containing [VideoCodec]'s known values, as well as an [_UNKNOWN] member. * * An instance of [VideoCodec] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if the * SDK is on an older version than the API, then the API may respond with new members that * the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/models/TransformationPosition.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/models/TransformationPosition.kt index 83704298..15dbcbc0 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/models/TransformationPosition.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/models/TransformationPosition.kt @@ -44,9 +44,11 @@ private constructor(private val value: JsonField) : Enum { * An enum containing [TransformationPosition]'s known values, as well as an [_UNKNOWN] member. * * An instance of [TransformationPosition] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if the SDK * is on an older version than the API, then the API may respond with new members that the SDK * is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/models/VideoOverlay.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/models/VideoOverlay.kt index 1184c502..3cb7bc9f 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/models/VideoOverlay.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/models/VideoOverlay.kt @@ -513,9 +513,11 @@ private constructor( * An enum containing [Encoding]'s known values, as well as an [_UNKNOWN] member. * * An instance of [Encoding] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if the * SDK is on an older version than the API, then the API may respond with new members that * the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/models/accounts/urlendpoints/UrlEndpointRequest.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/models/accounts/urlendpoints/UrlEndpointRequest.kt index 6dd926dd..48b42555 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/models/accounts/urlendpoints/UrlEndpointRequest.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/models/accounts/urlendpoints/UrlEndpointRequest.kt @@ -460,11 +460,13 @@ private constructor( object : Visitor { override fun visitCloudinary(cloudinary: Cloudinary) = cloudinary.validity() - override fun visitImgix(imgix: JsonValue) = - imgix.let { if (it == JsonValue.from(mapOf("type" to "IMGIX"))) 1 else 0 } + override fun visitImgix(imgix: JsonValue) = imgix.let { + if (it == JsonValue.from(mapOf("type" to "IMGIX"))) 1 else 0 + } - override fun visitAkamai(akamai: JsonValue) = - akamai.let { if (it == JsonValue.from(mapOf("type" to "AKAMAI"))) 1 else 0 } + override fun visitAkamai(akamai: JsonValue) = akamai.let { + if (it == JsonValue.from(mapOf("type" to "AKAMAI"))) 1 else 0 + } override fun unknown(json: JsonValue?) = 0 } diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/models/accounts/urlendpoints/UrlEndpointResponse.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/models/accounts/urlendpoints/UrlEndpointResponse.kt index 0750882e..32cd4ba6 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/models/accounts/urlendpoints/UrlEndpointResponse.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/models/accounts/urlendpoints/UrlEndpointResponse.kt @@ -518,11 +518,13 @@ private constructor( object : Visitor { override fun visitCloudinary(cloudinary: Cloudinary) = cloudinary.validity() - override fun visitImgix(imgix: JsonValue) = - imgix.let { if (it == JsonValue.from(mapOf("type" to "IMGIX"))) 1 else 0 } + override fun visitImgix(imgix: JsonValue) = imgix.let { + if (it == JsonValue.from(mapOf("type" to "IMGIX"))) 1 else 0 + } - override fun visitAkamai(akamai: JsonValue) = - akamai.let { if (it == JsonValue.from(mapOf("type" to "AKAMAI"))) 1 else 0 } + override fun visitAkamai(akamai: JsonValue) = akamai.let { + if (it == JsonValue.from(mapOf("type" to "AKAMAI"))) 1 else 0 + } override fun unknown(json: JsonValue?) = 0 } diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/models/assets/AssetListParams.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/models/assets/AssetListParams.kt index aa2572ca..aefa188d 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/models/assets/AssetListParams.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/models/assets/AssetListParams.kt @@ -33,6 +33,7 @@ private constructor( /** * Filter results by file type. + * * - `all` — include all file types * - `image` — include only image files * - `non-image` — include only non-image files (e.g., JS, CSS, video) @@ -58,6 +59,7 @@ private constructor( * * Note : When the searchQuery parameter is present, the following query parameters will have no * effect on the result: + * * 1. `tags` * 2. `type` * 3. `name` @@ -76,6 +78,7 @@ private constructor( /** * Filter results by asset type. + * * - `file` — returns only files * - `file-version` — returns specific file versions * - `folder` — returns only folders @@ -127,6 +130,7 @@ private constructor( /** * Filter results by file type. + * * - `all` — include all file types * - `image` — include only image files * - `non-image` — include only non-image files (e.g., JS, CSS, video) @@ -168,6 +172,7 @@ private constructor( * * Note : When the searchQuery parameter is present, the following query parameters will * have no effect on the result: + * * 1. `tags` * 2. `type` * 3. `name` @@ -202,6 +207,7 @@ private constructor( /** * Filter results by asset type. + * * - `file` — returns only files * - `file-version` — returns specific file versions * - `folder` — returns only folders @@ -347,6 +353,7 @@ private constructor( /** * Filter results by file type. + * * - `all` — include all file types * - `image` — include only image files * - `non-image` — include only non-image files (e.g., JS, CSS, video) @@ -385,9 +392,11 @@ private constructor( * An enum containing [FileType]'s known values, as well as an [_UNKNOWN] member. * * An instance of [FileType] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if the * SDK is on an older version than the API, then the API may respond with new members that * the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -561,9 +570,11 @@ private constructor( * An enum containing [Sort]'s known values, as well as an [_UNKNOWN] member. * * An instance of [Sort] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if the * SDK is on an older version than the API, then the API may respond with new members that * the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -704,6 +715,7 @@ private constructor( /** * Filter results by asset type. + * * - `file` — returns only files * - `file-version` — returns specific file versions * - `folder` — returns only folders @@ -746,9 +758,11 @@ private constructor( * An enum containing [Type]'s known values, as well as an [_UNKNOWN] member. * * An instance of [Type] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if the * SDK is on an older version than the API, then the API may respond with new members that * the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/models/beta/v2/files/FileUploadParams.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/models/beta/v2/files/FileUploadParams.kt index e7746506..780e8629 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/models/beta/v2/files/FileUploadParams.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/models/beta/v2/files/FileUploadParams.kt @@ -52,6 +52,7 @@ import kotlin.io.path.name * **Version limit** \ A file can have a maximum of 100 versions. * * **Demo applications** + * * - A full-fledged [upload widget using Uppy](https://github.com/imagekit-samples/uppy-uploader), * supporting file selections from local storage, URL, Dropbox, Google Drive, Instagram, and more. * - [Quick start guides](/docs/quick-start-guides) for various frameworks and technologies. @@ -65,6 +66,7 @@ private constructor( /** * The API accepts any of the following: + * * - **Binary data** – send the raw bytes as `multipart/form-data`. * - **HTTP / HTTPS URL** – a publicly reachable URL that ImageKit’s servers can fetch. * - **Base64 string** – the file encoded as a Base64 data URI or plain Base64. @@ -114,6 +116,7 @@ private constructor( /** * Define an important area in the image. This is only relevant for image type files. + * * - To be passed as a string with the x and y coordinates of the top-left corner, and width and * height of the area of interest in the format `x,y,width,height`. For example - * `10,10,100,100` @@ -243,8 +246,10 @@ private constructor( /** * Configure pre-processing (`pre`) and post-processing (`post`) transformations. + * * - `pre` — applied before the file is uploaded to the Media Library. Useful for reducing file * size or applying basic optimizations upfront (e.g., resize, compress). + * * - `post` — applied immediately after upload. Ideal for generating transformed versions (like * video encodes or thumbnails) in advance, so they're ready for delivery without delay. * @@ -486,6 +491,7 @@ private constructor( /** * The API accepts any of the following: + * * - **Binary data** – send the raw bytes as `multipart/form-data`. * - **HTTP / HTTPS URL** – a publicly reachable URL that ImageKit’s servers can fetch. * - **Base64 string** – the file encoded as a Base64 data URI or plain Base64. @@ -506,6 +512,7 @@ private constructor( /** * The API accepts any of the following: + * * - **Binary data** – send the raw bytes as `multipart/form-data`. * - **HTTP / HTTPS URL** – a publicly reachable URL that ImageKit’s servers can fetch. * - **Base64 string** – the file encoded as a Base64 data URI or plain Base64. @@ -517,6 +524,7 @@ private constructor( /** * The API accepts any of the following: + * * - **Binary data** – send the raw bytes as `multipart/form-data`. * - **HTTP / HTTPS URL** – a publicly reachable URL that ImageKit’s servers can fetch. * - **Base64 string** – the file encoded as a Base64 data URI or plain Base64. @@ -576,6 +584,7 @@ private constructor( /** * Define an important area in the image. This is only relevant for image type files. + * * - To be passed as a string with the x and y coordinates of the top-left corner, and width * and height of the area of interest in the format `x,y,width,height`. For example - * `10,10,100,100` @@ -879,8 +888,10 @@ private constructor( /** * Configure pre-processing (`pre`) and post-processing (`post`) transformations. + * * - `pre` — applied before the file is uploaded to the Media Library. Useful for reducing * file size or applying basic optimizations upfront (e.g., resize, compress). + * * - `post` — applied immediately after upload. Ideal for generating transformed versions * (like video encodes or thumbnails) in advance, so they're ready for delivery without * delay. @@ -1163,6 +1174,7 @@ private constructor( /** * The API accepts any of the following: + * * - **Binary data** – send the raw bytes as `multipart/form-data`. * - **HTTP / HTTPS URL** – a publicly reachable URL that ImageKit’s servers can fetch. * - **Base64 string** – the file encoded as a Base64 data URI or plain Base64. @@ -1212,6 +1224,7 @@ private constructor( /** * Define an important area in the image. This is only relevant for image type files. + * * - To be passed as a string with the x and y coordinates of the top-left corner, and width * and height of the area of interest in the format `x,y,width,height`. For example - * `10,10,100,100` @@ -1346,8 +1359,10 @@ private constructor( /** * Configure pre-processing (`pre`) and post-processing (`post`) transformations. + * * - `pre` — applied before the file is uploaded to the Media Library. Useful for reducing * file size or applying basic optimizations upfront (e.g., resize, compress). + * * - `post` — applied immediately after upload. Ideal for generating transformed versions * (like video encodes or thumbnails) in advance, so they're ready for delivery without * delay. @@ -1648,6 +1663,7 @@ private constructor( /** * The API accepts any of the following: + * * - **Binary data** – send the raw bytes as `multipart/form-data`. * - **HTTP / HTTPS URL** – a publicly reachable URL that ImageKit’s servers can fetch. * - **Base64 string** – the file encoded as a Base64 data URI or plain Base64. @@ -1668,6 +1684,7 @@ private constructor( /** * The API accepts any of the following: + * * - **Binary data** – send the raw bytes as `multipart/form-data`. * - **HTTP / HTTPS URL** – a publicly reachable URL that ImageKit’s servers can fetch. * - **Base64 string** – the file encoded as a Base64 data URI or plain Base64. @@ -1679,6 +1696,7 @@ private constructor( /** * The API accepts any of the following: + * * - **Binary data** – send the raw bytes as `multipart/form-data`. * - **HTTP / HTTPS URL** – a publicly reachable URL that ImageKit’s servers can fetch. * - **Base64 string** – the file encoded as a Base64 data URI or plain Base64. @@ -1749,6 +1767,7 @@ private constructor( /** * Define an important area in the image. This is only relevant for image type files. + * * - To be passed as a string with the x and y coordinates of the top-left corner, and * width and height of the area of interest in the format `x,y,width,height`. For * example - `10,10,100,100` @@ -2069,9 +2088,11 @@ private constructor( /** * Configure pre-processing (`pre`) and post-processing (`post`) transformations. + * * - `pre` — applied before the file is uploaded to the Media Library. Useful for * reducing file size or applying basic optimizations upfront (e.g., resize, * compress). + * * - `post` — applied immediately after upload. Ideal for generating transformed * versions (like video encodes or thumbnails) in advance, so they're ready for * delivery without delay. @@ -2451,9 +2472,11 @@ private constructor( * An enum containing [ResponseField]'s known values, as well as an [_UNKNOWN] member. * * An instance of [ResponseField] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if the * SDK is on an older version than the API, then the API may respond with new members that * the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -2579,8 +2602,10 @@ private constructor( /** * Configure pre-processing (`pre`) and post-processing (`post`) transformations. + * * - `pre` — applied before the file is uploaded to the Media Library. Useful for reducing file * size or applying basic optimizations upfront (e.g., resize, compress). + * * - `post` — applied immediately after upload. Ideal for generating transformed versions (like * video encodes or thumbnails) in advance, so they're ready for delivery without delay. * @@ -3814,9 +3839,11 @@ private constructor( * member. * * An instance of [Protocol] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For * example, if the SDK is on an older version than the API, then the API may * respond with new members that the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/models/beta/v2/files/FileUploadResponse.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/models/beta/v2/files/FileUploadResponse.kt index 9a6a0d35..2e7a0826 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/models/beta/v2/files/FileUploadResponse.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/models/beta/v2/files/FileUploadResponse.kt @@ -1521,9 +1521,11 @@ private constructor( * member. * * An instance of [AiAutoDescription] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if * the SDK is on an older version than the API, then the API may respond with new * members that the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -1668,9 +1670,11 @@ private constructor( * An enum containing [AiTasks]'s known values, as well as an [_UNKNOWN] member. * * An instance of [AiTasks] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if * the SDK is on an older version than the API, then the API may respond with new * members that the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -1815,9 +1819,11 @@ private constructor( * An enum containing [AwsAutoTagging]'s known values, as well as an [_UNKNOWN] member. * * An instance of [AwsAutoTagging] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if * the SDK is on an older version than the API, then the API may respond with new * members that the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -1964,9 +1970,11 @@ private constructor( * member. * * An instance of [GoogleAutoTagging] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if * the SDK is on an older version than the API, then the API may respond with new * members that the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -2111,9 +2119,11 @@ private constructor( * An enum containing [RemoveBg]'s known values, as well as an [_UNKNOWN] member. * * An instance of [RemoveBg] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if * the SDK is on an older version than the API, then the API may respond with new * members that the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/models/cache/invalidation/InvalidationGetResponse.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/models/cache/invalidation/InvalidationGetResponse.kt index 6a3e4e52..3bd5a4fc 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/models/cache/invalidation/InvalidationGetResponse.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/models/cache/invalidation/InvalidationGetResponse.kt @@ -179,9 +179,11 @@ private constructor( * An enum containing [Status]'s known values, as well as an [_UNKNOWN] member. * * An instance of [Status] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if the * SDK is on an older version than the API, then the API may respond with new members that * the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/models/custommetadatafields/CustomMetadataField.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/models/custommetadatafields/CustomMetadataField.kt index cbda2b69..f223a6dc 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/models/custommetadatafields/CustomMetadataField.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/models/custommetadatafields/CustomMetadataField.kt @@ -836,9 +836,11 @@ private constructor( * An enum containing [Type]'s known values, as well as an [_UNKNOWN] member. * * An instance of [Type] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if * the SDK is on an older version than the API, then the API may respond with new * members that the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -1102,8 +1104,9 @@ private constructor( override fun visitBool(bool: Boolean) = 1 - override fun visitMixed(mixed: List) = - mixed.sumOf { it.validity().toInt() } + override fun visitMixed(mixed: List) = mixed.sumOf { + it.validity().toInt() + } override fun unknown(json: JsonValue?) = 0 } diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/models/custommetadatafields/CustomMetadataFieldCreateParams.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/models/custommetadatafields/CustomMetadataFieldCreateParams.kt index aa69f84a..891cc997 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/models/custommetadatafields/CustomMetadataFieldCreateParams.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/models/custommetadatafields/CustomMetadataFieldCreateParams.kt @@ -1144,9 +1144,11 @@ private constructor( * An enum containing [Type]'s known values, as well as an [_UNKNOWN] member. * * An instance of [Type] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if * the SDK is on an older version than the API, then the API may respond with new * members that the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -1411,8 +1413,9 @@ private constructor( override fun visitBool(bool: Boolean) = 1 - override fun visitMixed(mixed: List) = - mixed.sumOf { it.validity().toInt() } + override fun visitMixed(mixed: List) = mixed.sumOf { + it.validity().toInt() + } override fun unknown(json: JsonValue?) = 0 } diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/models/custommetadatafields/CustomMetadataFieldUpdateParams.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/models/custommetadatafields/CustomMetadataFieldUpdateParams.kt index 2854e1df..6c6668c8 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/models/custommetadatafields/CustomMetadataFieldUpdateParams.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/models/custommetadatafields/CustomMetadataFieldUpdateParams.kt @@ -1123,8 +1123,9 @@ private constructor( override fun visitBool(bool: Boolean) = 1 - override fun visitMixed(mixed: List) = - mixed.sumOf { it.validity().toInt() } + override fun visitMixed(mixed: List) = mixed.sumOf { + it.validity().toInt() + } override fun unknown(json: JsonValue?) = 0 } diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/models/files/File.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/models/files/File.kt index 78ac2a34..7a3ea5d3 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/models/files/File.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/models/files/File.kt @@ -1266,9 +1266,11 @@ private constructor( * An enum containing [Type]'s known values, as well as an [_UNKNOWN] member. * * An instance of [Type] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if the * SDK is on an older version than the API, then the API may respond with new members that * the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/models/files/FileUpdateResponse.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/models/files/FileUpdateResponse.kt index 9934cf97..22e1b373 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/models/files/FileUpdateResponse.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/models/files/FileUpdateResponse.kt @@ -1640,9 +1640,11 @@ private constructor( * member. * * An instance of [AiAutoDescription] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if * the SDK is on an older version than the API, then the API may respond with new * members that the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -1787,9 +1789,11 @@ private constructor( * An enum containing [AiTasks]'s known values, as well as an [_UNKNOWN] member. * * An instance of [AiTasks] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if * the SDK is on an older version than the API, then the API may respond with new * members that the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -1934,9 +1938,11 @@ private constructor( * An enum containing [AwsAutoTagging]'s known values, as well as an [_UNKNOWN] member. * * An instance of [AwsAutoTagging] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if * the SDK is on an older version than the API, then the API may respond with new * members that the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -2083,9 +2089,11 @@ private constructor( * member. * * An instance of [GoogleAutoTagging] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if * the SDK is on an older version than the API, then the API may respond with new * members that the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -2230,9 +2238,11 @@ private constructor( * An enum containing [RemoveBg]'s known values, as well as an [_UNKNOWN] member. * * An instance of [RemoveBg] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if * the SDK is on an older version than the API, then the API may respond with new * members that the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/models/files/FileUploadParams.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/models/files/FileUploadParams.kt index 35e06480..71618af7 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/models/files/FileUploadParams.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/models/files/FileUploadParams.kt @@ -53,6 +53,7 @@ import kotlin.io.path.name * **Version limit** \ A file can have a maximum of 100 versions. * * **Demo applications** + * * - A full-fledged [upload widget using Uppy](https://github.com/imagekit-samples/uppy-uploader), * supporting file selections from local storage, URL, Dropbox, Google Drive, Instagram, and more. * - [Quick start guides](/docs/quick-start-guides) for various frameworks and technologies. @@ -66,6 +67,7 @@ private constructor( /** * The API accepts any of the following: + * * - **Binary data** – send the raw bytes as `multipart/form-data`. * - **HTTP / HTTPS URL** – a publicly reachable URL that ImageKit’s servers can fetch. * - **Base64 string** – the file encoded as a Base64 data URI or plain Base64. @@ -80,6 +82,7 @@ private constructor( /** * The name with which the file has to be uploaded. The file name can contain: + * * - Alphanumeric Characters: `a-z`, `A-Z`, `0-9`. * - Special Characters: `.`, `-` * @@ -116,6 +119,7 @@ private constructor( /** * Define an important area in the image. This is only relevant for image type files. + * * - To be passed as a string with the x and y coordinates of the top-left corner, and width and * height of the area of interest in the format `x,y,width,height`. For example - * `10,10,100,100` @@ -170,6 +174,7 @@ private constructor( * a new folder(s) is created. * * The folder name can contain: + * * - Alphanumeric Characters: `a-z` , `A-Z` , `0-9` * - Special Characters: `/` , `_` , `-` * @@ -283,8 +288,10 @@ private constructor( /** * Configure pre-processing (`pre`) and post-processing (`post`) transformations. + * * - `pre` — applied before the file is uploaded to the Media Library. Useful for reducing file * size or applying basic optimizations upfront (e.g., resize, compress). + * * - `post` — applied immediately after upload. Ideal for generating transformed versions (like * video encodes or thumbnails) in advance, so they're ready for delivery without delay. * @@ -547,6 +554,7 @@ private constructor( /** * The API accepts any of the following: + * * - **Binary data** – send the raw bytes as `multipart/form-data`. * - **HTTP / HTTPS URL** – a publicly reachable URL that ImageKit’s servers can fetch. * - **Base64 string** – the file encoded as a Base64 data URI or plain Base64. @@ -567,6 +575,7 @@ private constructor( /** * The API accepts any of the following: + * * - **Binary data** – send the raw bytes as `multipart/form-data`. * - **HTTP / HTTPS URL** – a publicly reachable URL that ImageKit’s servers can fetch. * - **Base64 string** – the file encoded as a Base64 data URI or plain Base64. @@ -578,6 +587,7 @@ private constructor( /** * The API accepts any of the following: + * * - **Binary data** – send the raw bytes as `multipart/form-data`. * - **HTTP / HTTPS URL** – a publicly reachable URL that ImageKit’s servers can fetch. * - **Base64 string** – the file encoded as a Base64 data URI or plain Base64. @@ -589,6 +599,7 @@ private constructor( /** * The name with which the file has to be uploaded. The file name can contain: + * * - Alphanumeric Characters: `a-z`, `A-Z`, `0-9`. * - Special Characters: `.`, `-` * @@ -640,6 +651,7 @@ private constructor( /** * Define an important area in the image. This is only relevant for image type files. + * * - To be passed as a string with the x and y coordinates of the top-left corner, and width * and height of the area of interest in the format `x,y,width,height`. For example - * `10,10,100,100` @@ -786,6 +798,7 @@ private constructor( * before, a new folder(s) is created. * * The folder name can contain: + * * - Alphanumeric Characters: `a-z` , `A-Z` , `0-9` * - Special Characters: `/` , `_` , `-` * @@ -998,8 +1011,10 @@ private constructor( /** * Configure pre-processing (`pre`) and post-processing (`post`) transformations. + * * - `pre` — applied before the file is uploaded to the Media Library. Useful for reducing * file size or applying basic optimizations upfront (e.g., resize, compress). + * * - `post` — applied immediately after upload. Ideal for generating transformed versions * (like video encodes or thumbnails) in advance, so they're ready for delivery without * delay. @@ -1288,6 +1303,7 @@ private constructor( /** * The API accepts any of the following: + * * - **Binary data** – send the raw bytes as `multipart/form-data`. * - **HTTP / HTTPS URL** – a publicly reachable URL that ImageKit’s servers can fetch. * - **Base64 string** – the file encoded as a Base64 data URI or plain Base64. @@ -1302,6 +1318,7 @@ private constructor( /** * The name with which the file has to be uploaded. The file name can contain: + * * - Alphanumeric Characters: `a-z`, `A-Z`, `0-9`. * - Special Characters: `.`, `-` * @@ -1338,6 +1355,7 @@ private constructor( /** * Define an important area in the image. This is only relevant for image type files. + * * - To be passed as a string with the x and y coordinates of the top-left corner, and width * and height of the area of interest in the format `x,y,width,height`. For example - * `10,10,100,100` @@ -1394,6 +1412,7 @@ private constructor( * before, a new folder(s) is created. * * The folder name can contain: + * * - Alphanumeric Characters: `a-z` , `A-Z` , `0-9` * - Special Characters: `/` , `_` , `-` * @@ -1510,8 +1529,10 @@ private constructor( /** * Configure pre-processing (`pre`) and post-processing (`post`) transformations. + * * - `pre` — applied before the file is uploaded to the Media Library. Useful for reducing * file size or applying basic optimizations upfront (e.g., resize, compress). + * * - `post` — applied immediately after upload. Ideal for generating transformed versions * (like video encodes or thumbnails) in advance, so they're ready for delivery without * delay. @@ -1845,6 +1866,7 @@ private constructor( /** * The API accepts any of the following: + * * - **Binary data** – send the raw bytes as `multipart/form-data`. * - **HTTP / HTTPS URL** – a publicly reachable URL that ImageKit’s servers can fetch. * - **Base64 string** – the file encoded as a Base64 data URI or plain Base64. @@ -1865,6 +1887,7 @@ private constructor( /** * The API accepts any of the following: + * * - **Binary data** – send the raw bytes as `multipart/form-data`. * - **HTTP / HTTPS URL** – a publicly reachable URL that ImageKit’s servers can fetch. * - **Base64 string** – the file encoded as a Base64 data URI or plain Base64. @@ -1876,6 +1899,7 @@ private constructor( /** * The API accepts any of the following: + * * - **Binary data** – send the raw bytes as `multipart/form-data`. * - **HTTP / HTTPS URL** – a publicly reachable URL that ImageKit’s servers can fetch. * - **Base64 string** – the file encoded as a Base64 data URI or plain Base64. @@ -1893,6 +1917,7 @@ private constructor( /** * The name with which the file has to be uploaded. The file name can contain: + * * - Alphanumeric Characters: `a-z`, `A-Z`, `0-9`. * - Special Characters: `.`, `-` * @@ -1947,6 +1972,7 @@ private constructor( /** * Define an important area in the image. This is only relevant for image type files. + * * - To be passed as a string with the x and y coordinates of the top-left corner, and * width and height of the area of interest in the format `x,y,width,height`. For * example - `10,10,100,100` @@ -2099,6 +2125,7 @@ private constructor( * before, a new folder(s) is created. * * The folder name can contain: + * * - Alphanumeric Characters: `a-z` , `A-Z` , `0-9` * - Special Characters: `/` , `_` , `-` * @@ -2323,9 +2350,11 @@ private constructor( /** * Configure pre-processing (`pre`) and post-processing (`post`) transformations. + * * - `pre` — applied before the file is uploaded to the Media Library. Useful for * reducing file size or applying basic optimizations upfront (e.g., resize, * compress). + * * - `post` — applied immediately after upload. Ideal for generating transformed * versions (like video encodes or thumbnails) in advance, so they're ready for * delivery without delay. @@ -2717,9 +2746,11 @@ private constructor( * An enum containing [ResponseField]'s known values, as well as an [_UNKNOWN] member. * * An instance of [ResponseField] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if the * SDK is on an older version than the API, then the API may respond with new members that * the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -2845,8 +2876,10 @@ private constructor( /** * Configure pre-processing (`pre`) and post-processing (`post`) transformations. + * * - `pre` — applied before the file is uploaded to the Media Library. Useful for reducing file * size or applying basic optimizations upfront (e.g., resize, compress). + * * - `post` — applied immediately after upload. Ideal for generating transformed versions (like * video encodes or thumbnails) in advance, so they're ready for delivery without delay. * @@ -4080,9 +4113,11 @@ private constructor( * member. * * An instance of [Protocol] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For * example, if the SDK is on an older version than the API, then the API may * respond with new members that the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/models/files/FileUploadResponse.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/models/files/FileUploadResponse.kt index 5f16e01c..dadd8634 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/models/files/FileUploadResponse.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/models/files/FileUploadResponse.kt @@ -1520,9 +1520,11 @@ private constructor( * member. * * An instance of [AiAutoDescription] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if * the SDK is on an older version than the API, then the API may respond with new * members that the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -1667,9 +1669,11 @@ private constructor( * An enum containing [AiTasks]'s known values, as well as an [_UNKNOWN] member. * * An instance of [AiTasks] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if * the SDK is on an older version than the API, then the API may respond with new * members that the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -1814,9 +1818,11 @@ private constructor( * An enum containing [AwsAutoTagging]'s known values, as well as an [_UNKNOWN] member. * * An instance of [AwsAutoTagging] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if * the SDK is on an older version than the API, then the API may respond with new * members that the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -1963,9 +1969,11 @@ private constructor( * member. * * An instance of [GoogleAutoTagging] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if * the SDK is on an older version than the API, then the API may respond with new * members that the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -2110,9 +2118,11 @@ private constructor( * An enum containing [RemoveBg]'s known values, as well as an [_UNKNOWN] member. * * An instance of [RemoveBg] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if * the SDK is on an older version than the API, then the API may respond with new * members that the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/models/files/Folder.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/models/files/Folder.kt index e03767c1..8f3987f6 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/models/files/Folder.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/models/files/Folder.kt @@ -479,8 +479,9 @@ private constructor( * Used for best match union deserialization. */ @JvmSynthetic - internal fun validity(): Int = - additionalProperties.count { (_, value) -> !value.isNull() && !value.isMissing() } + internal fun validity(): Int = additionalProperties.count { (_, value) -> + !value.isNull() && !value.isMissing() + } override fun equals(other: Any?): Boolean { if (this === other) { @@ -526,9 +527,11 @@ private constructor( * An enum containing [Type]'s known values, as well as an [_UNKNOWN] member. * * An instance of [Type] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if the * SDK is on an older version than the API, then the API may respond with new members that * the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/models/files/Metadata.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/models/files/Metadata.kt index ddc2bda8..7d6fdecd 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/models/files/Metadata.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/models/files/Metadata.kt @@ -3176,8 +3176,9 @@ private constructor( * Used for best match union deserialization. */ @JvmSynthetic - internal fun validity(): Int = - additionalProperties.count { (_, value) -> !value.isNull() && !value.isMissing() } + internal fun validity(): Int = additionalProperties.count { (_, value) -> + !value.isNull() && !value.isMissing() + } override fun equals(other: Any?): Boolean { if (this === other) { diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/models/files/UpdateFileRequest.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/models/files/UpdateFileRequest.kt index f20cbd08..88196800 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/models/files/UpdateFileRequest.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/models/files/UpdateFileRequest.kt @@ -871,8 +871,9 @@ private constructor( * Used for best match union deserialization. */ @JvmSynthetic - internal fun validity(): Int = - additionalProperties.count { (_, value) -> !value.isNull() && !value.isMissing() } + internal fun validity(): Int = additionalProperties.count { (_, value) -> + !value.isNull() && !value.isMissing() + } override fun equals(other: Any?): Boolean { if (this === other) { @@ -1013,8 +1014,9 @@ private constructor( object : Visitor { override fun visitStrings(strings: List) = strings.size - override fun visitAll(all: JsonValue) = - all.let { if (it == JsonValue.from("all")) 1 else 0 } + override fun visitAll(all: JsonValue) = all.let { + if (it == JsonValue.from("all")) 1 else 0 + } override fun unknown(json: JsonValue?) = 0 } diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/models/files/bulk/BulkAddTagsResponse.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/models/files/bulk/BulkAddTagsResponse.kt index b93f0bfc..ec5e7dbf 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/models/files/bulk/BulkAddTagsResponse.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/models/files/bulk/BulkAddTagsResponse.kt @@ -95,8 +95,9 @@ private constructor( */ fun successfullyUpdatedFileIds(successfullyUpdatedFileIds: JsonField>) = apply { - this.successfullyUpdatedFileIds = - successfullyUpdatedFileIds.map { it.toMutableList() } + this.successfullyUpdatedFileIds = successfullyUpdatedFileIds.map { + it.toMutableList() + } } /** diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/models/files/bulk/BulkDeleteResponse.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/models/files/bulk/BulkDeleteResponse.kt index 482d08bd..06991cdf 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/models/files/bulk/BulkDeleteResponse.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/models/files/bulk/BulkDeleteResponse.kt @@ -95,8 +95,9 @@ private constructor( */ fun successfullyDeletedFileIds(successfullyDeletedFileIds: JsonField>) = apply { - this.successfullyDeletedFileIds = - successfullyDeletedFileIds.map { it.toMutableList() } + this.successfullyDeletedFileIds = successfullyDeletedFileIds.map { + it.toMutableList() + } } /** diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/models/files/bulk/BulkRemoveAiTagsResponse.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/models/files/bulk/BulkRemoveAiTagsResponse.kt index fdf89448..d2fbe196 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/models/files/bulk/BulkRemoveAiTagsResponse.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/models/files/bulk/BulkRemoveAiTagsResponse.kt @@ -95,8 +95,9 @@ private constructor( */ fun successfullyUpdatedFileIds(successfullyUpdatedFileIds: JsonField>) = apply { - this.successfullyUpdatedFileIds = - successfullyUpdatedFileIds.map { it.toMutableList() } + this.successfullyUpdatedFileIds = successfullyUpdatedFileIds.map { + it.toMutableList() + } } /** diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/models/files/bulk/BulkRemoveTagsResponse.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/models/files/bulk/BulkRemoveTagsResponse.kt index 1395119e..cdfd98b3 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/models/files/bulk/BulkRemoveTagsResponse.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/models/files/bulk/BulkRemoveTagsResponse.kt @@ -95,8 +95,9 @@ private constructor( */ fun successfullyUpdatedFileIds(successfullyUpdatedFileIds: JsonField>) = apply { - this.successfullyUpdatedFileIds = - successfullyUpdatedFileIds.map { it.toMutableList() } + this.successfullyUpdatedFileIds = successfullyUpdatedFileIds.map { + it.toMutableList() + } } /** diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/models/folders/job/JobGetResponse.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/models/folders/job/JobGetResponse.kt index 8c8ded52..bf326008 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/models/folders/job/JobGetResponse.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/models/folders/job/JobGetResponse.kt @@ -288,9 +288,11 @@ private constructor( * An enum containing [Status]'s known values, as well as an [_UNKNOWN] member. * * An instance of [Status] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if the * SDK is on an older version than the API, then the API may respond with new members that * the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -428,9 +430,11 @@ private constructor( * An enum containing [Type]'s known values, as well as an [_UNKNOWN] member. * * An instance of [Type] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, if the * SDK is on an older version than the API, then the API may respond with new members that * the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/models/webhooks/UploadPostTransformErrorEvent.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/models/webhooks/UploadPostTransformErrorEvent.kt index eea9cab4..295dc266 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/models/webhooks/UploadPostTransformErrorEvent.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/models/webhooks/UploadPostTransformErrorEvent.kt @@ -1451,9 +1451,11 @@ private constructor( * An enum containing [Type]'s known values, as well as an [_UNKNOWN] member. * * An instance of [Type] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, * if the SDK is on an older version than the API, then the API may respond with * new members that the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -1598,9 +1600,11 @@ private constructor( * An enum containing [Protocol]'s known values, as well as an [_UNKNOWN] member. * * An instance of [Protocol] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, * if the SDK is on an older version than the API, then the API may respond with * new members that the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/models/webhooks/UploadPostTransformSuccessEvent.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/models/webhooks/UploadPostTransformSuccessEvent.kt index c5950733..c5d5c55f 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/models/webhooks/UploadPostTransformSuccessEvent.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/models/webhooks/UploadPostTransformSuccessEvent.kt @@ -1028,9 +1028,11 @@ private constructor( * An enum containing [Type]'s known values, as well as an [_UNKNOWN] member. * * An instance of [Type] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, * if the SDK is on an older version than the API, then the API may respond with * new members that the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -1175,9 +1177,11 @@ private constructor( * An enum containing [Protocol]'s known values, as well as an [_UNKNOWN] member. * * An instance of [Protocol] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, * if the SDK is on an older version than the API, then the API may respond with * new members that the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/models/webhooks/UploadPreTransformSuccessEvent.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/models/webhooks/UploadPreTransformSuccessEvent.kt index 6d2169f9..396cd63d 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/models/webhooks/UploadPreTransformSuccessEvent.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/models/webhooks/UploadPreTransformSuccessEvent.kt @@ -1875,9 +1875,11 @@ private constructor( * * An instance of [AiAutoDescription] can contain an unknown value in a couple of * cases: + * * - It was deserialized from data that doesn't match any known member. For example, * if the SDK is on an older version than the API, then the API may respond with * new members that the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -2023,9 +2025,11 @@ private constructor( * An enum containing [AiTasks]'s known values, as well as an [_UNKNOWN] member. * * An instance of [AiTasks] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, * if the SDK is on an older version than the API, then the API may respond with * new members that the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -2173,9 +2177,11 @@ private constructor( * * An instance of [AwsAutoTagging] can contain an unknown value in a couple of * cases: + * * - It was deserialized from data that doesn't match any known member. For example, * if the SDK is on an older version than the API, then the API may respond with * new members that the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -2323,9 +2329,11 @@ private constructor( * * An instance of [GoogleAutoTagging] can contain an unknown value in a couple of * cases: + * * - It was deserialized from data that doesn't match any known member. For example, * if the SDK is on an older version than the API, then the API may respond with * new members that the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -2471,9 +2479,11 @@ private constructor( * An enum containing [RemoveBg]'s known values, as well as an [_UNKNOWN] member. * * An instance of [RemoveBg] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, * if the SDK is on an older version than the API, then the API may respond with * new members that the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/models/webhooks/VideoTransformationAcceptedEvent.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/models/webhooks/VideoTransformationAcceptedEvent.kt index a0d0711c..ec19ee10 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/models/webhooks/VideoTransformationAcceptedEvent.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/models/webhooks/VideoTransformationAcceptedEvent.kt @@ -933,9 +933,11 @@ private constructor( * An enum containing [Type]'s known values, as well as an [_UNKNOWN] member. * * An instance of [Type] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, * if the SDK is on an older version than the API, then the API may respond with * new members that the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -1492,9 +1494,11 @@ private constructor( * * An instance of [AudioCodec] can contain an unknown value in a couple of * cases: + * * - It was deserialized from data that doesn't match any known member. For * example, if the SDK is on an older version than the API, then the API may * respond with new members that the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -1646,9 +1650,11 @@ private constructor( * An enum containing [Format]'s known values, as well as an [_UNKNOWN] member. * * An instance of [Format] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For * example, if the SDK is on an older version than the API, then the API may * respond with new members that the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -1802,9 +1808,11 @@ private constructor( * * An instance of [StreamProtocol] can contain an unknown value in a couple of * cases: + * * - It was deserialized from data that doesn't match any known member. For * example, if the SDK is on an older version than the API, then the API may * respond with new members that the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -1953,9 +1961,11 @@ private constructor( * * An instance of [VideoCodec] can contain an unknown value in a couple of * cases: + * * - It was deserialized from data that doesn't match any known member. For * example, if the SDK is on an older version than the API, then the API may * respond with new members that the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/models/webhooks/VideoTransformationErrorEvent.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/models/webhooks/VideoTransformationErrorEvent.kt index f14cea7e..20876918 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/models/webhooks/VideoTransformationErrorEvent.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/models/webhooks/VideoTransformationErrorEvent.kt @@ -961,9 +961,11 @@ private constructor( * An enum containing [Type]'s known values, as well as an [_UNKNOWN] member. * * An instance of [Type] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, * if the SDK is on an older version than the API, then the API may respond with * new members that the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -1280,9 +1282,11 @@ private constructor( * An enum containing [Reason]'s known values, as well as an [_UNKNOWN] member. * * An instance of [Reason] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For * example, if the SDK is on an older version than the API, then the API may * respond with new members that the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -1859,9 +1863,11 @@ private constructor( * * An instance of [AudioCodec] can contain an unknown value in a couple of * cases: + * * - It was deserialized from data that doesn't match any known member. For * example, if the SDK is on an older version than the API, then the API may * respond with new members that the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -2013,9 +2019,11 @@ private constructor( * An enum containing [Format]'s known values, as well as an [_UNKNOWN] member. * * An instance of [Format] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For * example, if the SDK is on an older version than the API, then the API may * respond with new members that the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -2169,9 +2177,11 @@ private constructor( * * An instance of [StreamProtocol] can contain an unknown value in a couple of * cases: + * * - It was deserialized from data that doesn't match any known member. For * example, if the SDK is on an older version than the API, then the API may * respond with new members that the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -2320,9 +2330,11 @@ private constructor( * * An instance of [VideoCodec] can contain an unknown value in a couple of * cases: + * * - It was deserialized from data that doesn't match any known member. For * example, if the SDK is on an older version than the API, then the API may * respond with new members that the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/models/webhooks/VideoTransformationReadyEvent.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/models/webhooks/VideoTransformationReadyEvent.kt index c20ecd16..572bd48a 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/models/webhooks/VideoTransformationReadyEvent.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/models/webhooks/VideoTransformationReadyEvent.kt @@ -994,9 +994,11 @@ private constructor( * An enum containing [Type]'s known values, as well as an [_UNKNOWN] member. * * An instance of [Type] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For example, * if the SDK is on an older version than the API, then the API may respond with * new members that the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -1553,9 +1555,11 @@ private constructor( * * An instance of [AudioCodec] can contain an unknown value in a couple of * cases: + * * - It was deserialized from data that doesn't match any known member. For * example, if the SDK is on an older version than the API, then the API may * respond with new members that the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -1707,9 +1711,11 @@ private constructor( * An enum containing [Format]'s known values, as well as an [_UNKNOWN] member. * * An instance of [Format] can contain an unknown value in a couple of cases: + * * - It was deserialized from data that doesn't match any known member. For * example, if the SDK is on an older version than the API, then the API may * respond with new members that the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -1863,9 +1869,11 @@ private constructor( * * An instance of [StreamProtocol] can contain an unknown value in a couple of * cases: + * * - It was deserialized from data that doesn't match any known member. For * example, if the SDK is on an older version than the API, then the API may * respond with new members that the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { @@ -2014,9 +2022,11 @@ private constructor( * * An instance of [VideoCodec] can contain an unknown value in a couple of * cases: + * * - It was deserialized from data that doesn't match any known member. For * example, if the SDK is on an older version than the API, then the API may * respond with new members that the SDK is unaware of. + * * - It was constructed with an arbitrary value using the [of] method. */ enum class Value { diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/services/async/FileServiceAsync.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/services/async/FileServiceAsync.kt index 5b01b0fc..7f555060 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/services/async/FileServiceAsync.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/services/async/FileServiceAsync.kt @@ -203,6 +203,7 @@ interface FileServiceAsync { * **Version limit** \ A file can have a maximum of 100 versions. * * **Demo applications** + * * - A full-fledged * [upload widget using Uppy](https://github.com/imagekit-samples/uppy-uploader), supporting * file selections from local storage, URL, Dropbox, Google Drive, Instagram, and more. diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/services/async/beta/v2/FileServiceAsync.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/services/async/beta/v2/FileServiceAsync.kt index 1bd07809..39fe358b 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/services/async/beta/v2/FileServiceAsync.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/services/async/beta/v2/FileServiceAsync.kt @@ -42,6 +42,7 @@ interface FileServiceAsync { * **Version limit** \ A file can have a maximum of 100 versions. * * **Demo applications** + * * - A full-fledged * [upload widget using Uppy](https://github.com/imagekit-samples/uppy-uploader), supporting * file selections from local storage, URL, Dropbox, Google Drive, Instagram, and more. diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/services/blocking/FileService.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/services/blocking/FileService.kt index f08afc49..9fd39e19 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/services/blocking/FileService.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/services/blocking/FileService.kt @@ -189,6 +189,7 @@ interface FileService { * **Version limit** \ A file can have a maximum of 100 versions. * * **Demo applications** + * * - A full-fledged * [upload widget using Uppy](https://github.com/imagekit-samples/uppy-uploader), supporting * file selections from local storage, URL, Dropbox, Google Drive, Instagram, and more. diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/services/blocking/beta/v2/FileService.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/services/blocking/beta/v2/FileService.kt index 499eb3d3..8b239b59 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/services/blocking/beta/v2/FileService.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/services/blocking/beta/v2/FileService.kt @@ -42,6 +42,7 @@ interface FileService { * **Version limit** \ A file can have a maximum of 100 versions. * * **Demo applications** + * * - A full-fledged * [upload widget using Uppy](https://github.com/imagekit-samples/uppy-uploader), supporting * file selections from local storage, URL, Dropbox, Google Drive, Instagram, and more. diff --git a/image-kit-java-example/build.gradle.kts b/image-kit-java-example/build.gradle.kts index 139fe9f0..43f09527 100644 --- a/image-kit-java-example/build.gradle.kts +++ b/image-kit-java-example/build.gradle.kts @@ -8,7 +8,8 @@ repositories { } dependencies { - implementation(project(":image-kit-java")) + implementation(project(":image-kit-java-core")) + implementation(project(":image-kit-java-client-okhttp")) } tasks.withType().configureEach { diff --git a/release-please-config.json b/release-please-config.json index 8f987198..5550ca0f 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -2,7 +2,7 @@ "packages": { ".": {} }, - "$schema": "https://raw.githubusercontent.com/stainless-api/release-please/main/schemas/config.json", + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", "include-v-in-tag": true, "include-component-in-tag": false, "versioning": "prerelease", From 3859bd4f87124025eb99bcc19fbaaacc78713852 Mon Sep 17 00:00:00 2001 From: Manu Chaudhary Date: Sun, 24 May 2026 18:02:42 +0530 Subject: [PATCH 2/6] chore: Update webhook description Stainless-Generated-From: 1fe16e2fa9835e49351acb46ba12210bce39a142 --- .../kotlin/io/imagekit/client/okhttp/ImageKitOkHttpClient.kt | 2 +- .../io/imagekit/client/okhttp/ImageKitOkHttpClientAsync.kt | 2 +- .../src/main/kotlin/io/imagekit/core/ClientOptions.kt | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/image-kit-java-client-okhttp/src/main/kotlin/io/imagekit/client/okhttp/ImageKitOkHttpClient.kt b/image-kit-java-client-okhttp/src/main/kotlin/io/imagekit/client/okhttp/ImageKitOkHttpClient.kt index 8b8caae8..cabbb26b 100644 --- a/image-kit-java-client-okhttp/src/main/kotlin/io/imagekit/client/okhttp/ImageKitOkHttpClient.kt +++ b/image-kit-java-client-okhttp/src/main/kotlin/io/imagekit/client/okhttp/ImageKitOkHttpClient.kt @@ -308,7 +308,7 @@ class ImageKitOkHttpClient private constructor() { * Your ImageKit webhook secret for verifying webhook signatures (starts with `whsec_`). You * can find this in the * [ImageKit dashboard](https://imagekit.io/dashboard/developer/webhooks). Only required if - * you're using webhooks. + * you are re using webhooks. */ fun webhookSecret(webhookSecret: String?) = apply { clientOptions.webhookSecret(webhookSecret) diff --git a/image-kit-java-client-okhttp/src/main/kotlin/io/imagekit/client/okhttp/ImageKitOkHttpClientAsync.kt b/image-kit-java-client-okhttp/src/main/kotlin/io/imagekit/client/okhttp/ImageKitOkHttpClientAsync.kt index 575c8dca..e3304ef2 100644 --- a/image-kit-java-client-okhttp/src/main/kotlin/io/imagekit/client/okhttp/ImageKitOkHttpClientAsync.kt +++ b/image-kit-java-client-okhttp/src/main/kotlin/io/imagekit/client/okhttp/ImageKitOkHttpClientAsync.kt @@ -308,7 +308,7 @@ class ImageKitOkHttpClientAsync private constructor() { * Your ImageKit webhook secret for verifying webhook signatures (starts with `whsec_`). You * can find this in the * [ImageKit dashboard](https://imagekit.io/dashboard/developer/webhooks). Only required if - * you're using webhooks. + * you are re using webhooks. */ fun webhookSecret(webhookSecret: String?) = apply { clientOptions.webhookSecret(webhookSecret) diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/core/ClientOptions.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/core/ClientOptions.kt index ec7df69e..40e1bfc7 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/core/ClientOptions.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/core/ClientOptions.kt @@ -141,7 +141,7 @@ private constructor( /** * Your ImageKit webhook secret for verifying webhook signatures (starts with `whsec_`). You can * find this in the [ImageKit dashboard](https://imagekit.io/dashboard/developer/webhooks). Only - * required if you're using webhooks. + * required if you are re using webhooks. */ fun webhookSecret(): Optional = Optional.ofNullable(webhookSecret) @@ -345,7 +345,7 @@ private constructor( * Your ImageKit webhook secret for verifying webhook signatures (starts with `whsec_`). You * can find this in the * [ImageKit dashboard](https://imagekit.io/dashboard/developer/webhooks). Only required if - * you're using webhooks. + * you are re using webhooks. */ fun webhookSecret(webhookSecret: String?) = apply { this.webhookSecret = webhookSecret } From 9e5cc4bc6da2ffe1ecfc8993465a502c2716451e Mon Sep 17 00:00:00 2001 From: Manu Chaudhary Date: Sun, 24 May 2026 18:04:24 +0530 Subject: [PATCH 3/6] chore: Update webhook description Stainless-Generated-From: ff43ddff746a4a135a96da8306e8ce0d58554df4 --- .../kotlin/io/imagekit/client/okhttp/ImageKitOkHttpClient.kt | 2 +- .../io/imagekit/client/okhttp/ImageKitOkHttpClientAsync.kt | 2 +- .../src/main/kotlin/io/imagekit/core/ClientOptions.kt | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/image-kit-java-client-okhttp/src/main/kotlin/io/imagekit/client/okhttp/ImageKitOkHttpClient.kt b/image-kit-java-client-okhttp/src/main/kotlin/io/imagekit/client/okhttp/ImageKitOkHttpClient.kt index cabbb26b..27fccef1 100644 --- a/image-kit-java-client-okhttp/src/main/kotlin/io/imagekit/client/okhttp/ImageKitOkHttpClient.kt +++ b/image-kit-java-client-okhttp/src/main/kotlin/io/imagekit/client/okhttp/ImageKitOkHttpClient.kt @@ -308,7 +308,7 @@ class ImageKitOkHttpClient private constructor() { * Your ImageKit webhook secret for verifying webhook signatures (starts with `whsec_`). You * can find this in the * [ImageKit dashboard](https://imagekit.io/dashboard/developer/webhooks). Only required if - * you are re using webhooks. + * you are using webhooks. */ fun webhookSecret(webhookSecret: String?) = apply { clientOptions.webhookSecret(webhookSecret) diff --git a/image-kit-java-client-okhttp/src/main/kotlin/io/imagekit/client/okhttp/ImageKitOkHttpClientAsync.kt b/image-kit-java-client-okhttp/src/main/kotlin/io/imagekit/client/okhttp/ImageKitOkHttpClientAsync.kt index e3304ef2..56e9cfdc 100644 --- a/image-kit-java-client-okhttp/src/main/kotlin/io/imagekit/client/okhttp/ImageKitOkHttpClientAsync.kt +++ b/image-kit-java-client-okhttp/src/main/kotlin/io/imagekit/client/okhttp/ImageKitOkHttpClientAsync.kt @@ -308,7 +308,7 @@ class ImageKitOkHttpClientAsync private constructor() { * Your ImageKit webhook secret for verifying webhook signatures (starts with `whsec_`). You * can find this in the * [ImageKit dashboard](https://imagekit.io/dashboard/developer/webhooks). Only required if - * you are re using webhooks. + * you are using webhooks. */ fun webhookSecret(webhookSecret: String?) = apply { clientOptions.webhookSecret(webhookSecret) diff --git a/image-kit-java-core/src/main/kotlin/io/imagekit/core/ClientOptions.kt b/image-kit-java-core/src/main/kotlin/io/imagekit/core/ClientOptions.kt index 40e1bfc7..047b8564 100644 --- a/image-kit-java-core/src/main/kotlin/io/imagekit/core/ClientOptions.kt +++ b/image-kit-java-core/src/main/kotlin/io/imagekit/core/ClientOptions.kt @@ -141,7 +141,7 @@ private constructor( /** * Your ImageKit webhook secret for verifying webhook signatures (starts with `whsec_`). You can * find this in the [ImageKit dashboard](https://imagekit.io/dashboard/developer/webhooks). Only - * required if you are re using webhooks. + * required if you are using webhooks. */ fun webhookSecret(): Optional = Optional.ofNullable(webhookSecret) @@ -345,7 +345,7 @@ private constructor( * Your ImageKit webhook secret for verifying webhook signatures (starts with `whsec_`). You * can find this in the * [ImageKit dashboard](https://imagekit.io/dashboard/developer/webhooks). Only required if - * you are re using webhooks. + * you are using webhooks. */ fun webhookSecret(webhookSecret: String?) = apply { this.webhookSecret = webhookSecret } From 5eda8c23559e3b8666afa676ad13fb8a165b6e61 Mon Sep 17 00:00:00 2001 From: Manu Chaudhary Date: Mon, 25 May 2026 12:13:20 +0530 Subject: [PATCH 4/6] Promote SDKs from staging to production Stainless-Generated-From: 43ba7db622aaa0a66ac8b1f0b39d9bede4941ed9 --- .github/workflows/stlc-promote.yml | 65 ++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 .github/workflows/stlc-promote.yml diff --git a/.github/workflows/stlc-promote.yml b/.github/workflows/stlc-promote.yml new file mode 100644 index 00000000..6da8cb46 --- /dev/null +++ b/.github/workflows/stlc-promote.yml @@ -0,0 +1,65 @@ +name: Promote SDKs + +on: + push: + branches: [main] + +permissions: + contents: read + +jobs: + promote: + runs-on: ubuntu-latest + env: + PRODUCTION_REPO: imagekit-developer/imagekit-java + PRODUCTION_BRANCH: master + GH_TOKEN: ${{ secrets.SDK_WRITE_TOKEN }} + steps: + - name: Check out staging + uses: actions/checkout@v4 + with: + fetch-depth: 0 + persist-credentials: false + + - name: Fetch production main + run: | + git remote add production \ + "https://x-access-token:${GH_TOKEN}@github.com/${PRODUCTION_REPO}.git" + git fetch production "${PRODUCTION_BRANCH}" + + - name: Check if production is already in sync + id: diff + run: | + STAGING_SHA=$(git rev-parse origin/main) + PRODUCTION_SHA=$(git rev-parse production/${PRODUCTION_BRANCH}) + if [ "$STAGING_SHA" = "$PRODUCTION_SHA" ]; then + echo "Production is already at $STAGING_SHA. Nothing to release." + echo "synced=true" >> "$GITHUB_OUTPUT" + else + echo "synced=false" >> "$GITHUB_OUTPUT" + fi + + - name: Push staging main to the release branch on production + if: steps.diff.outputs.synced == 'false' + run: | + git push production origin/main:refs/heads/stainless/release --force + + - name: Open or update the release PR on production + if: steps.diff.outputs.synced == 'false' + run: | + EXISTING_PR=$(gh pr list \ + --repo "${PRODUCTION_REPO}" \ + --head stainless/release \ + --state open \ + --json number \ + --jq '.[0].number') + if [ -z "${EXISTING_PR}" ]; then + gh pr create \ + --repo "${PRODUCTION_REPO}" \ + --base "${PRODUCTION_BRANCH}" \ + --head stainless/release \ + --title "Release SDK updates" \ + --body "$(git log --oneline production/${PRODUCTION_BRANCH}..origin/main)" + else + echo "Release PR #${EXISTING_PR} already exists. Force-push has updated it." + fi From 609719f4b30ab9ab225b657e02080fa0eb37c48a Mon Sep 17 00:00:00 2001 From: Manu Chaudhary Date: Mon, 25 May 2026 13:17:54 +0530 Subject: [PATCH 5/6] Add release configuration Stainless-Generated-From: c23f5d4cb0a76311c9838381838ca9f364ee835f --- .github/workflows/publish-sonatype.yml | 8 ++++++-- .github/workflows/release-please.yml | 20 ++++++++++++++++++++ release-please-config.json | 2 +- 3 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/release-please.yml diff --git a/.github/workflows/publish-sonatype.yml b/.github/workflows/publish-sonatype.yml index 841d4027..edc8f87c 100644 --- a/.github/workflows/publish-sonatype.yml +++ b/.github/workflows/publish-sonatype.yml @@ -1,9 +1,13 @@ -# workflow for re-running publishing to Sonatype in case it fails for some reason -# you can run this workflow by navigating to https://www.github.com/imagekit-developer/imagekit-java/actions/workflows/publish-sonatype.yml +# This workflow is triggered when a GitHub release is created. +# It can also be run manually to re-publish to Sonatype in case it failed for some reason. +# You can run this workflow by navigating to https://www.github.com/imagekit-developer/imagekit-java/actions/workflows/publish-sonatype.yml name: Publish Sonatype on: workflow_dispatch: + release: + types: [published] + jobs: publish: name: publish diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 00000000..32fae7eb --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,20 @@ +name: Release Please +on: + push: + branches: + - master + +permissions: + contents: write + pull-requests: write + +jobs: + release-please: + if: github.repository == 'imagekit-developer/imagekit-java' + runs-on: ubuntu-latest + + steps: + - uses: googleapis/release-please-action@5c625bfb5d1ff62eadeeb3772007f7f66fdcf071 # v4.4.1 + id: release + with: + token: ${{ secrets.RELEASE_PLEASE_TOKEN }} diff --git a/release-please-config.json b/release-please-config.json index 5550ca0f..0a47df51 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -6,7 +6,7 @@ "include-v-in-tag": true, "include-component-in-tag": false, "versioning": "prerelease", - "prerelease": true, + "prerelease": false, "bump-minor-pre-major": true, "bump-patch-for-minor-pre-major": false, "pull-request-header": "Automated Release PR", From 6ed1781aa18ebfd2fecb3a16757834db89e3d1c1 Mon Sep 17 00:00:00 2001 From: Manu Chaudhary Date: Mon, 25 May 2026 15:03:04 +0530 Subject: [PATCH 6/6] ci: add sync-release-as workflow to mirror release PR title version Stainless-Generated-From: 6653323935ddca06979e5427c9165c5e67377d5f --- .github/workflows/sync-release-as.yml | 63 +++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 .github/workflows/sync-release-as.yml diff --git a/.github/workflows/sync-release-as.yml b/.github/workflows/sync-release-as.yml new file mode 100644 index 00000000..99150044 --- /dev/null +++ b/.github/workflows/sync-release-as.yml @@ -0,0 +1,63 @@ +name: Sync Release-As from release PR title + +on: + pull_request: + types: [edited] + +permissions: + contents: write + +jobs: + sync: + if: >- + github.event.pull_request.base.ref == 'master' && + startsWith(github.event.pull_request.head.ref, 'release-please--') && + github.event.changes.title != null + runs-on: ubuntu-latest + steps: + - name: Extract versions from old and new title + id: parse + env: + NEW_TITLE: ${{ github.event.pull_request.title }} + OLD_TITLE: ${{ github.event.changes.title.from }} + run: | + # Anchored on pull-request-title-pattern "release: ${version}" from release-please-config.json. + extract() { + echo "$1" | grep -oE '^release:[[:space:]]+v?[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z.-]+)?' \ + | sed -E 's/^release:[[:space:]]+v?//' + } + NEW_VERSION=$(extract "$NEW_TITLE") + OLD_VERSION=$(extract "$OLD_TITLE") + echo "old=$OLD_VERSION" + echo "new=$NEW_VERSION" + if [ -z "$NEW_VERSION" ]; then + echo "::notice::No semver in new title; nothing to do." + echo "skip=true" >> "$GITHUB_OUTPUT" + exit 0 + fi + if [ "$NEW_VERSION" = "$OLD_VERSION" ]; then + echo "::notice::Version unchanged ($NEW_VERSION); not pushing." + echo "skip=true" >> "$GITHUB_OUTPUT" + exit 0 + fi + echo "version=$NEW_VERSION" >> "$GITHUB_OUTPUT" + + - name: Check out master + if: steps.parse.outputs.skip != 'true' + uses: actions/checkout@v6 + with: + ref: master + token: ${{ secrets.RELEASE_PLEASE_TOKEN }} + fetch-depth: 1 + + - name: Push empty Release-As commit + if: steps.parse.outputs.skip != 'true' + env: + VERSION: ${{ steps.parse.outputs.version }} + run: | + git config user.name "release-as-bot" + git config user.email "release-as-bot@users.noreply.github.com" + git commit --allow-empty -m "chore: pin next release + + Release-As: ${VERSION}" + git push origin master