Skip to content

Commit 63165ac

Browse files
chore(internal): codegen related update
1 parent 21a30a4 commit 63165ac

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

webhook.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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.
15561558
type 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.
18941899
type 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

Comments
 (0)