@coursebuilder/core
Version:
Core package for Course Builder
26 lines (23 loc) • 717 B
text/typescript
import { z } from 'zod'
export const VideoResourceSchema = z.object({
id: z.string(),
updatedAt: z.coerce.date().optional(),
createdAt: z.coerce.date().optional(),
title: z.string().optional().nullable(),
duration: z.number().optional().nullable(),
muxPlaybackId: z.string().optional().nullable(),
muxAssetId: z.string().optional().nullable(),
transcript: z.string().optional().nullable(),
transcriptWithScreenshots: z.string().optional().nullable(),
srt: z.string().optional().nullable(),
wordLevelSrt: z.string().optional().nullable(),
state: z.enum([
'new',
'processing',
'preparing',
'ready',
'errored',
'deleted',
]),
})
export type VideoResource = z.infer<typeof VideoResourceSchema>