@@ -1552,13 +1552,16 @@ func (r *VideoTransformationReadyEventTimings) UnmarshalJSON(data []byte) error
15521552// [UploadPreTransformErrorEvent], [UploadPostTransformSuccessEvent],
15531553// [UploadPostTransformErrorEvent].
15541554//
1555+ // Use the [UnsafeUnwrapWebhookEventUnion.AsAny] method to switch on the variant.
1556+ //
15551557// Use the methods beginning with 'As' to cast the union to one of its variants.
15561558type UnsafeUnwrapWebhookEventUnion struct {
15571559 // This field is from variant [VideoTransformationAcceptedEvent],
15581560 // [VideoTransformationReadyEvent], [VideoTransformationErrorEvent],
15591561 // [UploadPreTransformSuccessEvent], [UploadPreTransformErrorEvent],
15601562 // [UploadPostTransformSuccessEvent], [UploadPostTransformErrorEvent].
1561- ID string `json:"id"`
1563+ ID string `json:"id"`
1564+ // Any of nil, nil, nil, nil, nil, nil, nil.
15621565 Type string `json:"type"`
15631566 CreatedAt time.Time `json:"created_at"`
15641567 // This field is a union of [VideoTransformationAcceptedEventData],
@@ -1890,13 +1893,16 @@ func (r *UnsafeUnwrapWebhookEventUnionRequestTransformation) UnmarshalJSON(data
18901893// [UploadPreTransformErrorEvent], [UploadPostTransformSuccessEvent],
18911894// [UploadPostTransformErrorEvent].
18921895//
1896+ // Use the [UnwrapWebhookEventUnion.AsAny] method to switch on the variant.
1897+ //
18931898// Use the methods beginning with 'As' to cast the union to one of its variants.
18941899type UnwrapWebhookEventUnion struct {
18951900 // This field is from variant [VideoTransformationAcceptedEvent],
18961901 // [VideoTransformationReadyEvent], [VideoTransformationErrorEvent],
18971902 // [UploadPreTransformSuccessEvent], [UploadPreTransformErrorEvent],
18981903 // [UploadPostTransformSuccessEvent], [UploadPostTransformErrorEvent].
1899- ID string `json:"id"`
1904+ ID string `json:"id"`
1905+ // Any of nil, nil, nil, nil, nil, nil, nil.
19001906 Type string `json:"type"`
19011907 CreatedAt time.Time `json:"created_at"`
19021908 // This field is a union of [VideoTransformationAcceptedEventData],
0 commit comments