Skip to content

Commit 84f5b7c

Browse files
feat(api): add BaseWebhookEvent
1 parent 6913a6d commit 84f5b7c

10 files changed

+3
-23
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/Webhooks/UnsafeUnwrapWebhookEvent.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
use ImageKit\Core\Conversion\Contracts\Converter;
99
use ImageKit\Core\Conversion\Contracts\ConverterSource;
1010

11-
/**
12-
* 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.
13-
*/
1411
final class UnsafeUnwrapWebhookEvent implements ConverterSource
1512
{
1613
use SdkUnion;

src/Webhooks/UnwrapWebhookEvent.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
use ImageKit\Core\Conversion\Contracts\Converter;
99
use ImageKit\Core\Conversion\Contracts\ConverterSource;
1010

11-
/**
12-
* 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.
13-
*/
1411
final class UnwrapWebhookEvent implements ConverterSource
1512
{
1613
use SdkUnion;

src/Webhooks/UploadPostTransformErrorEvent.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
use ImageKit\Webhooks\UploadPostTransformErrorEvent\Request;
1212

1313
/**
14-
* Triggered when a post-transformation fails. The original file remains available, but the requested transformation could not be generated.
15-
*
1614
* @phpstan-type upload_post_transform_error_event = array{
1715
* id: string,
1816
* createdAt: \DateTimeInterface,

src/Webhooks/UploadPostTransformSuccessEvent.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
use ImageKit\Webhooks\UploadPostTransformSuccessEvent\Request;
1212

1313
/**
14-
* 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.
15-
*
1614
* @phpstan-type upload_post_transform_success_event = array{
1715
* id: string,
1816
* createdAt: \DateTimeInterface,

src/Webhooks/UploadPreTransformErrorEvent.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
use ImageKit\Webhooks\UploadPreTransformErrorEvent\Request;
1212

1313
/**
14-
* Triggered when a pre-transformation fails. The file upload may have been accepted, but the requested transformation could not be applied.
15-
*
1614
* @phpstan-type upload_pre_transform_error_event = array{
1715
* id: string,
1816
* createdAt: \DateTimeInterface,

src/Webhooks/UploadPreTransformSuccessEvent.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
use ImageKit\Webhooks\UploadPreTransformSuccessEvent\Request;
1212

1313
/**
14-
* Triggered when a pre-transformation completes successfully. The file has been processed with the requested transformation and is now available in the Media Library.
15-
*
1614
* @phpstan-type upload_pre_transform_success_event = array{
1715
* id: string,
1816
* createdAt: \DateTimeInterface,

src/Webhooks/VideoTransformationAcceptedEvent.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
use ImageKit\Webhooks\VideoTransformationAcceptedEvent\Request;
1212

1313
/**
14-
* 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.
15-
*
1614
* @phpstan-type video_transformation_accepted_event = array{
1715
* id: string,
1816
* createdAt: \DateTimeInterface,

src/Webhooks/VideoTransformationErrorEvent.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
use ImageKit\Webhooks\VideoTransformationErrorEvent\Request;
1212

1313
/**
14-
* 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.
15-
*
1614
* @phpstan-type video_transformation_error_event = array{
1715
* id: string,
1816
* createdAt: \DateTimeInterface,

src/Webhooks/VideoTransformationReadyEvent.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
use ImageKit\Webhooks\VideoTransformationReadyEvent\Timings;
1313

1414
/**
15-
* 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.
16-
*
1715
* @phpstan-type video_transformation_ready_event = array{
1816
* id: string,
1917
* createdAt: \DateTimeInterface,

0 commit comments

Comments
 (0)