Defines video schema types and validation using zod for script, timing, render spec, and manifest.
// Source: https://github.com/first-fluke/oh-my-agent | License: MIT | Copyright 2026 Eunkwang Shin, Gahyun Kim
// Provided via justclaw.it.com; keep this notice with the code.
import { z } from "zod";
import { SchemaValidationError } from "./errors.js";
export const VIDEO_SCHEMA_VERSION = "1.0" as const;
export const VideoModeSchema = z.enum(["shorts", "explainer", "demo"]);
export const VideoAspectSchema = z.enum(["9:16", "16:9", "1:1"]);
export const VideoAspectInputSchema = z.enum(["9:16", "16:9", "1:1", "auto"]);
export const CaptionStyleSchema = z.enum(["tiktok", "lower-third", "none"]);
export const VisualModeSchema = z.enum([
"auto",
"generate",
"stock",
"aigc",
"slide",
]);
export const MusicModeSchema = z.enum([
"upbeat",
"calm",
"cinematic",
"lofi",
"piano"
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key