Skip to content

Commit 8bf53d4

Browse files
feat(api): add BaseWebhookEvent
1 parent 13fde98 commit 8bf53d4

2 files changed

Lines changed: 3 additions & 48 deletions

File tree

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 42
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc%2Fimagekit-3d7da4b8ef2ed30aa32c4fb3e98e498e67402e91aaa5fd4c628fc080bfe82ea1.yml
3-
openapi_spec_hash: aaa50fcbccec6f2cf1165f34bc6ac886
4-
config_hash: 9f8a678d9d4d06daec522e8deb49e3ad
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc%2Fimagekit-667f7f4988b44bc587d6eb9960ff5c8326e9f7e9b072f3f724f9f54166eff8b1.yml
3+
openapi_spec_hash: f2081864a4abee0480e5ff991b4c936a
4+
config_hash: 4e73c7e12a531edcd1366dab7eccc360

src/resources/webhooks.ts

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ export class Webhooks extends APIResource {
2323
}
2424
}
2525

26-
/**
27-
* Triggered when a post-transformation fails. The original file remains available,
28-
* but the requested transformation could not be generated.
29-
*/
3026
export interface UploadPostTransformErrorEvent {
3127
/**
3228
* Unique identifier for the event.
@@ -114,11 +110,6 @@ export namespace UploadPostTransformErrorEvent {
114110
}
115111
}
116112

117-
/**
118-
* Triggered when a post-transformation completes successfully. The transformed
119-
* version of the file is now ready and can be accessed via the provided URL. Note
120-
* that each post-transformation generates a separate webhook event.
121-
*/
122113
export interface UploadPostTransformSuccessEvent {
123114
/**
124115
* Unique identifier for the event.
@@ -184,10 +175,6 @@ export namespace UploadPostTransformSuccessEvent {
184175
}
185176
}
186177

187-
/**
188-
* Triggered when a pre-transformation fails. The file upload may have been
189-
* accepted, but the requested transformation could not be applied.
190-
*/
191178
export interface UploadPreTransformErrorEvent {
192179
/**
193180
* Unique identifier for the event.
@@ -249,11 +236,6 @@ export namespace UploadPreTransformErrorEvent {
249236
}
250237
}
251238

252-
/**
253-
* Triggered when a pre-transformation completes successfully. The file has been
254-
* processed with the requested transformation and is now available in the Media
255-
* Library.
256-
*/
257239
export interface UploadPreTransformSuccessEvent {
258240
/**
259241
* Unique identifier for the event.
@@ -498,11 +480,6 @@ export namespace UploadPreTransformSuccessEvent {
498480
}
499481
}
500482

501-
/**
502-
* Triggered when a new video transformation request is accepted for processing.
503-
* This event confirms that ImageKit has received and queued your transformation
504-
* request. Use this for debugging and tracking transformation lifecycle.
505-
*/
506483
export interface VideoTransformationAcceptedEvent {
507484
/**
508485
* Unique identifier for the event.
@@ -632,12 +609,6 @@ export namespace VideoTransformationAcceptedEvent {
632609
}
633610
}
634611

635-
/**
636-
* Triggered when an error occurs during video encoding. Listen to this webhook to
637-
* log error reasons and debug issues. Check your origin and URL endpoint settings
638-
* if the reason is related to download failure. For other errors, contact ImageKit
639-
* support.
640-
*/
641612
export interface VideoTransformationErrorEvent {
642613
/**
643614
* Unique identifier for the event.
@@ -780,12 +751,6 @@ export namespace VideoTransformationErrorEvent {
780751
}
781752
}
782753

783-
/**
784-
* Triggered when video encoding is finished and the transformed resource is ready
785-
* to be served. This is the key event to listen for - update your database or CMS
786-
* flags when you receive this so your application can start showing the
787-
* transformed video to users.
788-
*/
789754
export interface VideoTransformationReadyEvent {
790755
/**
791756
* Unique identifier for the event.
@@ -977,11 +942,6 @@ export namespace VideoTransformationReadyEvent {
977942
}
978943
}
979944

980-
/**
981-
* Triggered when a new video transformation request is accepted for processing.
982-
* This event confirms that ImageKit has received and queued your transformation
983-
* request. Use this for debugging and tracking transformation lifecycle.
984-
*/
985945
export type UnsafeUnwrapWebhookEvent =
986946
| VideoTransformationAcceptedEvent
987947
| VideoTransformationReadyEvent
@@ -991,11 +951,6 @@ export type UnsafeUnwrapWebhookEvent =
991951
| UploadPostTransformSuccessEvent
992952
| UploadPostTransformErrorEvent;
993953

994-
/**
995-
* Triggered when a new video transformation request is accepted for processing.
996-
* This event confirms that ImageKit has received and queued your transformation
997-
* request. Use this for debugging and tracking transformation lifecycle.
998-
*/
999954
export type UnwrapWebhookEvent =
1000955
| VideoTransformationAcceptedEvent
1001956
| VideoTransformationReadyEvent

0 commit comments

Comments
 (0)