@@ -70,8 +70,6 @@ func (r *WebhookService) Unwrap(payload []byte, headers http.Header, opts ...opt
7070 return res , nil
7171}
7272
73- // Triggered when a post-transformation fails. The original file remains available,
74- // but the requested transformation could not be generated.
7573type UploadPostTransformErrorEvent struct {
7674 // Unique identifier for the event.
7775 ID string `json:"id,required"`
@@ -205,9 +203,6 @@ func (r *UploadPostTransformErrorEventRequestTransformation) UnmarshalJSON(data
205203 return apijson .UnmarshalRoot (data , r )
206204}
207205
208- // Triggered when a post-transformation completes successfully. The transformed
209- // version of the file is now ready and can be accessed via the provided URL. Note
210- // that each post-transformation generates a separate webhook event.
211206type UploadPostTransformSuccessEvent struct {
212207 // Unique identifier for the event.
213208 ID string `json:"id,required"`
@@ -303,8 +298,6 @@ func (r *UploadPostTransformSuccessEventRequestTransformation) UnmarshalJSON(dat
303298 return apijson .UnmarshalRoot (data , r )
304299}
305300
306- // Triggered when a pre-transformation fails. The file upload may have been
307- // accepted, but the requested transformation could not be applied.
308301type UploadPreTransformErrorEvent struct {
309302 // Unique identifier for the event.
310303 ID string `json:"id,required"`
@@ -406,9 +399,6 @@ func (r *UploadPreTransformErrorEventRequest) UnmarshalJSON(data []byte) error {
406399 return apijson .UnmarshalRoot (data , r )
407400}
408401
409- // Triggered when a pre-transformation completes successfully. The file has been
410- // processed with the requested transformation and is now available in the Media
411- // Library.
412402type UploadPreTransformSuccessEvent struct {
413403 // Unique identifier for the event.
414404 ID string `json:"id,required"`
@@ -651,9 +641,6 @@ func (r *UploadPreTransformSuccessEventRequest) UnmarshalJSON(data []byte) error
651641 return apijson .UnmarshalRoot (data , r )
652642}
653643
654- // Triggered when a new video transformation request is accepted for processing.
655- // This event confirms that ImageKit has received and queued your transformation
656- // request. Use this for debugging and tracking transformation lifecycle.
657644type VideoTransformationAcceptedEvent struct {
658645 // Unique identifier for the event.
659646 ID string `json:"id,required"`
@@ -817,10 +804,6 @@ func (r *VideoTransformationAcceptedEventRequest) UnmarshalJSON(data []byte) err
817804 return apijson .UnmarshalRoot (data , r )
818805}
819806
820- // Triggered when an error occurs during video encoding. Listen to this webhook to
821- // log error reasons and debug issues. Check your origin and URL endpoint settings
822- // if the reason is related to download failure. For other errors, contact ImageKit
823- // support.
824807type VideoTransformationErrorEvent struct {
825808 // Unique identifier for the event.
826809 ID string `json:"id,required"`
@@ -1007,10 +990,6 @@ func (r *VideoTransformationErrorEventRequest) UnmarshalJSON(data []byte) error
1007990 return apijson .UnmarshalRoot (data , r )
1008991}
1009992
1010- // Triggered when video encoding is finished and the transformed resource is ready
1011- // to be served. This is the key event to listen for - update your database or CMS
1012- // flags when you receive this so your application can start showing the
1013- // transformed video to users.
1014993type VideoTransformationReadyEvent struct {
1015994 // Unique identifier for the event.
1016995 ID string `json:"id,required"`
0 commit comments