Skip to content

Commit f5206be

Browse files
feat(api): manual updates
1 parent e474ef2 commit f5206be

File tree

4 files changed

+24
-49
lines changed

4 files changed

+24
-49
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 42
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc%2Fimagekit-d1a3e6dfc45ae832b6b14a0aef25878985c679fa9f48c1470df188b1578ba648.yml
33
openapi_spec_hash: 1d382866fce3284f26d341f112988d9d
4-
config_hash: c9c7bed2a4341f915a2dc85958ce7f0e
4+
config_hash: 51a9632be24fc533ad69a5bd56934651

image-kit-java-client-okhttp/src/main/kotlin/com/imagekit/api/client/okhttp/ImageKitOkHttpClient.kt

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,8 @@ class ImageKitOkHttpClient private constructor() {
190190
fun privateKey(privateKey: String) = apply { clientOptions.privateKey(privateKey) }
191191

192192
/**
193-
* Leave this field unset. ImageKit uses Basic Authentication scheme that requires the
194-
* `private_key` as the username and empty string as the password. The password field is
195-
* automatically managed by the SDK and should not be set.
193+
* ImageKit uses your API key as username and ignores the password. The SDK sets a dummy
194+
* value. You can ignore this field.
196195
*
197196
* Defaults to `"do_not_set"`.
198197
*/
@@ -202,15 +201,10 @@ class ImageKitOkHttpClient private constructor() {
202201
fun password(password: Optional<String>) = password(password.getOrNull())
203202

204203
/**
205-
* Your ImageKit webhook secret used by the SDK to verify webhook signatures for security.
206-
* This secret starts with a `whsec_` prefix and is essential for webhook verification. You
207-
* can view and manage your webhook secret in the
208-
* [ImageKit dashboard](https://imagekit.io/dashboard/developer/webhooks).
209-
*
210-
* **Security Note**: Treat this secret like a password - keep it private and never expose
211-
* it publicly. This field is optional and only required if you plan to use webhook
212-
* signature verification. Learn more about
213-
* [webhook verification](https://imagekit.io/docs/webhooks#verify-webhook-signature).
204+
* Your ImageKit webhook secret for verifying webhook signatures (starts with `whsec_`). You
205+
* can find this in the
206+
* [ImageKit dashboard](https://imagekit.io/dashboard/developer/webhooks). Only required if
207+
* you're using webhooks.
214208
*/
215209
fun webhookSecret(webhookSecret: String?) = apply {
216210
clientOptions.webhookSecret(webhookSecret)

image-kit-java-client-okhttp/src/main/kotlin/com/imagekit/api/client/okhttp/ImageKitOkHttpClientAsync.kt

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,8 @@ class ImageKitOkHttpClientAsync private constructor() {
190190
fun privateKey(privateKey: String) = apply { clientOptions.privateKey(privateKey) }
191191

192192
/**
193-
* Leave this field unset. ImageKit uses Basic Authentication scheme that requires the
194-
* `private_key` as the username and empty string as the password. The password field is
195-
* automatically managed by the SDK and should not be set.
193+
* ImageKit uses your API key as username and ignores the password. The SDK sets a dummy
194+
* value. You can ignore this field.
196195
*
197196
* Defaults to `"do_not_set"`.
198197
*/
@@ -202,15 +201,10 @@ class ImageKitOkHttpClientAsync private constructor() {
202201
fun password(password: Optional<String>) = password(password.getOrNull())
203202

204203
/**
205-
* Your ImageKit webhook secret used by the SDK to verify webhook signatures for security.
206-
* This secret starts with a `whsec_` prefix and is essential for webhook verification. You
207-
* can view and manage your webhook secret in the
208-
* [ImageKit dashboard](https://imagekit.io/dashboard/developer/webhooks).
209-
*
210-
* **Security Note**: Treat this secret like a password - keep it private and never expose
211-
* it publicly. This field is optional and only required if you plan to use webhook
212-
* signature verification. Learn more about
213-
* [webhook verification](https://imagekit.io/docs/webhooks#verify-webhook-signature).
204+
* Your ImageKit webhook secret for verifying webhook signatures (starts with `whsec_`). You
205+
* can find this in the
206+
* [ImageKit dashboard](https://imagekit.io/dashboard/developer/webhooks). Only required if
207+
* you're using webhooks.
214208
*/
215209
fun webhookSecret(webhookSecret: String?) = apply {
216210
clientOptions.webhookSecret(webhookSecret)

image-kit-java-core/src/main/kotlin/com/imagekit/api/core/ClientOptions.kt

Lines changed: 11 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -109,24 +109,17 @@ private constructor(
109109
fun baseUrlOverridden(): Boolean = baseUrl != null
110110

111111
/**
112-
* Leave this field unset. ImageKit uses Basic Authentication scheme that requires the
113-
* `private_key` as the username and empty string as the password. The password field is
114-
* automatically managed by the SDK and should not be set.
112+
* ImageKit uses your API key as username and ignores the password. The SDK sets a dummy value.
113+
* You can ignore this field.
115114
*
116115
* Defaults to `"do_not_set"`.
117116
*/
118117
fun password(): Optional<String> = Optional.ofNullable(password)
119118

120119
/**
121-
* Your ImageKit webhook secret used by the SDK to verify webhook signatures for security. This
122-
* secret starts with a `whsec_` prefix and is essential for webhook verification. You can view
123-
* and manage your webhook secret in the
124-
* [ImageKit dashboard](https://imagekit.io/dashboard/developer/webhooks).
125-
*
126-
* **Security Note**: Treat this secret like a password - keep it private and never expose it
127-
* publicly. This field is optional and only required if you plan to use webhook signature
128-
* verification. Learn more about
129-
* [webhook verification](https://imagekit.io/docs/webhooks#verify-webhook-signature).
120+
* Your ImageKit webhook secret for verifying webhook signatures (starts with `whsec_`). You can
121+
* find this in the [ImageKit dashboard](https://imagekit.io/dashboard/developer/webhooks). Only
122+
* required if you're using webhooks.
130123
*/
131124
fun webhookSecret(): Optional<String> = Optional.ofNullable(webhookSecret)
132125

@@ -289,9 +282,8 @@ private constructor(
289282
fun privateKey(privateKey: String) = apply { this.privateKey = privateKey }
290283

291284
/**
292-
* Leave this field unset. ImageKit uses Basic Authentication scheme that requires the
293-
* `private_key` as the username and empty string as the password. The password field is
294-
* automatically managed by the SDK and should not be set.
285+
* ImageKit uses your API key as username and ignores the password. The SDK sets a dummy
286+
* value. You can ignore this field.
295287
*
296288
* Defaults to `"do_not_set"`.
297289
*/
@@ -301,15 +293,10 @@ private constructor(
301293
fun password(password: Optional<String>) = password(password.getOrNull())
302294

303295
/**
304-
* Your ImageKit webhook secret used by the SDK to verify webhook signatures for security.
305-
* This secret starts with a `whsec_` prefix and is essential for webhook verification. You
306-
* can view and manage your webhook secret in the
307-
* [ImageKit dashboard](https://imagekit.io/dashboard/developer/webhooks).
308-
*
309-
* **Security Note**: Treat this secret like a password - keep it private and never expose
310-
* it publicly. This field is optional and only required if you plan to use webhook
311-
* signature verification. Learn more about
312-
* [webhook verification](https://imagekit.io/docs/webhooks#verify-webhook-signature).
296+
* Your ImageKit webhook secret for verifying webhook signatures (starts with `whsec_`). You
297+
* can find this in the
298+
* [ImageKit dashboard](https://imagekit.io/dashboard/developer/webhooks). Only required if
299+
* you're using webhooks.
313300
*/
314301
fun webhookSecret(webhookSecret: String?) = apply { this.webhookSecret = webhookSecret }
315302

0 commit comments

Comments
 (0)