@coursebuilder/core
Version:
Core package for Course Builder
77 lines (74 loc) • 1.81 kB
TypeScript
import { z } from 'zod';
declare const MUX_WEBHOOK_EVENT = "mux/web-hook-event";
type EventVideoMuxWebhook = {
name: typeof MUX_WEBHOOK_EVENT;
data: {
muxWebhookEvent: MuxWebhookEvent;
};
};
declare const MuxWebhookEventSchema: z.ZodObject<{
type: z.ZodString;
request_id: z.ZodNullable<z.ZodString>;
object: z.ZodObject<{
type: z.ZodString;
id: z.ZodString;
}, "strip", z.ZodTypeAny, {
type: string;
id: string;
}, {
type: string;
id: string;
}>;
id: z.ZodString;
environment: z.ZodObject<{
name: z.ZodString;
id: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
id: string;
}, {
name: string;
id: string;
}>;
data: z.ZodAny;
created_at: z.ZodString;
attempts: z.ZodArray<z.ZodAny, "many">;
accessor_source: z.ZodNullable<z.ZodString>;
accessor: z.ZodNullable<z.ZodString>;
}, "strip", z.ZodTypeAny, {
object: {
type: string;
id: string;
};
type: string;
id: string;
created_at: string;
request_id: string | null;
environment: {
name: string;
id: string;
};
attempts: any[];
accessor_source: string | null;
accessor: string | null;
data?: any;
}, {
object: {
type: string;
id: string;
};
type: string;
id: string;
created_at: string;
request_id: string | null;
environment: {
name: string;
id: string;
};
attempts: any[];
accessor_source: string | null;
accessor: string | null;
data?: any;
}>;
type MuxWebhookEvent = z.infer<typeof MuxWebhookEventSchema>;
export { type EventVideoMuxWebhook, MUX_WEBHOOK_EVENT, type MuxWebhookEvent, MuxWebhookEventSchema };