@@ -70,8 +70,6 @@ func (r *WebhookService) Unwrap(payload []byte, headers http.Header, opts ...opt
70
70
return res , nil
71
71
}
72
72
73
- // Triggered when a post-transformation fails. The original file remains available,
74
- // but the requested transformation could not be generated.
75
73
type UploadPostTransformErrorEvent struct {
76
74
// Unique identifier for the event.
77
75
ID string `json:"id,required"`
@@ -205,9 +203,6 @@ func (r *UploadPostTransformErrorEventRequestTransformation) UnmarshalJSON(data
205
203
return apijson .UnmarshalRoot (data , r )
206
204
}
207
205
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.
211
206
type UploadPostTransformSuccessEvent struct {
212
207
// Unique identifier for the event.
213
208
ID string `json:"id,required"`
@@ -303,8 +298,6 @@ func (r *UploadPostTransformSuccessEventRequestTransformation) UnmarshalJSON(dat
303
298
return apijson .UnmarshalRoot (data , r )
304
299
}
305
300
306
- // Triggered when a pre-transformation fails. The file upload may have been
307
- // accepted, but the requested transformation could not be applied.
308
301
type UploadPreTransformErrorEvent struct {
309
302
// Unique identifier for the event.
310
303
ID string `json:"id,required"`
@@ -406,9 +399,6 @@ func (r *UploadPreTransformErrorEventRequest) UnmarshalJSON(data []byte) error {
406
399
return apijson .UnmarshalRoot (data , r )
407
400
}
408
401
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.
412
402
type UploadPreTransformSuccessEvent struct {
413
403
// Unique identifier for the event.
414
404
ID string `json:"id,required"`
@@ -651,9 +641,6 @@ func (r *UploadPreTransformSuccessEventRequest) UnmarshalJSON(data []byte) error
651
641
return apijson .UnmarshalRoot (data , r )
652
642
}
653
643
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.
657
644
type VideoTransformationAcceptedEvent struct {
658
645
// Unique identifier for the event.
659
646
ID string `json:"id,required"`
@@ -817,10 +804,6 @@ func (r *VideoTransformationAcceptedEventRequest) UnmarshalJSON(data []byte) err
817
804
return apijson .UnmarshalRoot (data , r )
818
805
}
819
806
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.
824
807
type VideoTransformationErrorEvent struct {
825
808
// Unique identifier for the event.
826
809
ID string `json:"id,required"`
@@ -1007,10 +990,6 @@ func (r *VideoTransformationErrorEventRequest) UnmarshalJSON(data []byte) error
1007
990
return apijson .UnmarshalRoot (data , r )
1008
991
}
1009
992
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.
1014
993
type VideoTransformationReadyEvent struct {
1015
994
// Unique identifier for the event.
1016
995
ID string `json:"id,required"`
0 commit comments