Skip to content

chore: rebuild project due to codegen change #444

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,3 +363,5 @@ Types:
- <code><a href="./src/resources/webhooks.ts">UnwrapWebhookEvent</a></code>

Methods:

- <code>client.webhooks.<a href="./src/resources/webhooks.ts">unwrap</a>(body) -> void</code>
6 changes: 5 additions & 1 deletion src/resources/webhooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ import * as AssetsAPI from '@mux/mux-node/resources/video/assets';
import * as LiveStreamsAPI from '@mux/mux-node/resources/video/live-streams';
import * as UploadsAPI from '@mux/mux-node/resources/video/uploads';

export class Webhooks extends APIResource {}
export class Webhooks extends APIResource {
unwrap(body: string): UnwrapWebhookEvent {
return JSON.parse(body) as UnwrapWebhookEvent;
}
}

export interface BaseWebhookEvent {
/**
Expand Down