Skip to content

Commit dac30e1

Browse files
feat(api): add BaseWebhookEvent
1 parent 433eb44 commit dac30e1

File tree

2 files changed

+3
-48
lines changed

2 files changed

+3
-48
lines changed

.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
@@ -24,10 +24,6 @@ export class Webhooks extends APIResource {
2424
}
2525
}
2626

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

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

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

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

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

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

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

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

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

0 commit comments

Comments
 (0)