Skip to content

Commit b483052

Browse files
feat: add static_rendition webhooks (#327) (#554)
1 parent 0246142 commit b483052

File tree

3 files changed

+41
-1
lines changed

3 files changed

+41
-1
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 88
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mux%2Fmux-971dbb8e42c355929fecebf9c1a526fece11db5f7e709d0c23cc55e97a639438.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/mux%2Fmux-5f3a1cefec239fb0daed651397851795841e0d4b17d242968b946002d8feaa19.yml

api.md

+5
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,11 @@ Types:
336336
- <code><a href="./src/resources/webhooks.ts">VideoAssetTrackReadyWebhookEvent</a></code>
337337
- <code><a href="./src/resources/webhooks.ts">VideoAssetTrackErroredWebhookEvent</a></code>
338338
- <code><a href="./src/resources/webhooks.ts">VideoAssetTrackDeletedWebhookEvent</a></code>
339+
- <code><a href="./src/resources/webhooks.ts">VideoAssetStaticRenditionCreatedWebhookEvent</a></code>
340+
- <code><a href="./src/resources/webhooks.ts">VideoAssetStaticRenditionReadyWebhookEvent</a></code>
341+
- <code><a href="./src/resources/webhooks.ts">VideoAssetStaticRenditionErroredWebhookEvent</a></code>
342+
- <code><a href="./src/resources/webhooks.ts">VideoAssetStaticRenditionDeletedWebhookEvent</a></code>
343+
- <code><a href="./src/resources/webhooks.ts">VideoAssetStaticRenditionSkippedWebhookEvent</a></code>
339344
- <code><a href="./src/resources/webhooks.ts">VideoAssetWarningWebhookEvent</a></code>
340345
- <code><a href="./src/resources/webhooks.ts">VideoAssetNonStandardInputDetectedWebhookEvent</a></code>
341346
- <code><a href="./src/resources/webhooks.ts">VideoUploadAssetCreatedWebhookEvent</a></code>

src/resources/webhooks.ts

+35
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,36 @@ export interface VideoAssetTrackDeletedWebhookEvent extends BaseWebhookEvent {
371371
type: 'video.asset.track.deleted';
372372
}
373373

374+
export interface VideoAssetStaticRenditionCreatedWebhookEvent extends BaseWebhookEvent {
375+
data: AssetsAPI.Asset;
376+
377+
type: 'video.asset.static_rendition.created';
378+
}
379+
380+
export interface VideoAssetStaticRenditionReadyWebhookEvent extends BaseWebhookEvent {
381+
data: AssetsAPI.Asset;
382+
383+
type: 'video.asset.static_rendition.ready';
384+
}
385+
386+
export interface VideoAssetStaticRenditionErroredWebhookEvent extends BaseWebhookEvent {
387+
data: AssetsAPI.Asset;
388+
389+
type: 'video.asset.static_rendition.errored';
390+
}
391+
392+
export interface VideoAssetStaticRenditionDeletedWebhookEvent extends BaseWebhookEvent {
393+
data: AssetsAPI.Asset;
394+
395+
type: 'video.asset.static_rendition.deleted';
396+
}
397+
398+
export interface VideoAssetStaticRenditionSkippedWebhookEvent extends BaseWebhookEvent {
399+
data: AssetsAPI.Asset;
400+
401+
type: 'video.asset.static_rendition.skipped';
402+
}
403+
374404
export interface VideoAssetWarningWebhookEvent extends BaseWebhookEvent {
375405
data: AssetsAPI.Asset;
376406

@@ -666,6 +696,11 @@ export type UnwrapWebhookEvent =
666696
| VideoAssetTrackReadyWebhookEvent
667697
| VideoAssetTrackErroredWebhookEvent
668698
| VideoAssetTrackDeletedWebhookEvent
699+
| VideoAssetStaticRenditionCreatedWebhookEvent
700+
| VideoAssetStaticRenditionReadyWebhookEvent
701+
| VideoAssetStaticRenditionErroredWebhookEvent
702+
| VideoAssetStaticRenditionDeletedWebhookEvent
703+
| VideoAssetStaticRenditionSkippedWebhookEvent
669704
| VideoAssetWarningWebhookEvent
670705
| VideoAssetNonStandardInputDetectedWebhookEvent
671706
| VideoUploadAssetCreatedWebhookEvent

0 commit comments

Comments
 (0)