-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathunsafe_unwrap_webhook_event.rb
More file actions
38 lines (28 loc) · 2.7 KB
/
unsafe_unwrap_webhook_event.rb
File metadata and controls
38 lines (28 loc) · 2.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# frozen_string_literal: true
module Imagekitio
module Models
# Triggered when a new video transformation request is accepted for processing.
# This event confirms that ImageKit has received and queued your transformation
# request. Use this for debugging and tracking transformation lifecycle.
module UnsafeUnwrapWebhookEvent
extend Imagekitio::Internal::Type::Union
discriminator :type
# Triggered when a new video transformation request is accepted for processing. This event confirms that ImageKit has received and queued your transformation request. Use this for debugging and tracking transformation lifecycle.
variant -> { Imagekitio::VideoTransformationAcceptedEvent }
# Triggered when video encoding is finished and the transformed resource is ready to be served. This is the key event to listen for - update your database or CMS flags when you receive this so your application can start showing the transformed video to users.
variant -> { Imagekitio::VideoTransformationReadyEvent }
# Triggered when an error occurs during video encoding. Listen to this webhook to log error reasons and debug issues. Check your origin and URL endpoint settings if the reason is related to download failure. For other errors, contact ImageKit support.
variant -> { Imagekitio::VideoTransformationErrorEvent }
# Triggered when a pre-transformation completes successfully. The file has been processed with the requested transformation and is now available in the Media Library.
variant -> { Imagekitio::UploadPreTransformSuccessEvent }
# Triggered when a pre-transformation fails. The file upload may have been accepted, but the requested transformation could not be applied.
variant -> { Imagekitio::UploadPreTransformErrorEvent }
# Triggered when a post-transformation completes successfully. The transformed version of the file is now ready and can be accessed via the provided URL. Note that each post-transformation generates a separate webhook event.
variant -> { Imagekitio::UploadPostTransformSuccessEvent }
# Triggered when a post-transformation fails. The original file remains available, but the requested transformation could not be generated.
variant -> { Imagekitio::UploadPostTransformErrorEvent }
# @!method self.variants
# @return [Array(Imagekitio::Models::VideoTransformationAcceptedEvent, Imagekitio::Models::VideoTransformationReadyEvent, Imagekitio::Models::VideoTransformationErrorEvent, Imagekitio::Models::UploadPreTransformSuccessEvent, Imagekitio::Models::UploadPreTransformErrorEvent, Imagekitio::Models::UploadPostTransformSuccessEvent, Imagekitio::Models::UploadPostTransformErrorEvent)]
end
end
end