Clone any viral video with AI agents. Not just a script, the whole workflow: swap the face, the words, the B-roll, ship 100 variants in one command, and get your 100M views.
TypeScript agentic-aiaiai-agentsai-videocompilerdslffmpeggenerative-aillmmarkup-languagemonorepoplugin-systemprogramming-languagetext-to-videotypescriptvideovideo-automationvideo-clonevideo-editingvideo-generation
import type { CanonicalValue } from "@hypit/hypit/protocol";
/** One author-visible word surface. Punctuation owned by the surface is preserved. */
export type CaptionDisplayWord = {
/** Authored display separator from the preceding word; ignored at a displayed line start. */
readonly separatorBefore: "" | " ";
readonly id: string;
readonly unitId: string;
readonly text: string;
readonly attributes: readonly CaptionWordAttribute[];
};
export type CaptionWordAttributeValue = string | number | boolean;
export type CaptionWordAttribute = {
readonly name: string;
readonly value: CaptionWordAttributeValue;
};
/** The smallest author-declared N:M display unit. It owns no source-domain identity. */
export type CaptionUnit = {
readonly id: string;
readonly wordIds: readonly string[];
};
/** One authored reading group made from complete consecutive display units. */
export type CaptionCue = {
readonly id: string;
readonly unitIds: readonly string[];
readonly role?: string;
};
/** Complete display truth. It contains neither source token identities nor measured time. */
export type CaptionDocument = {
readonly id: string;
readonly units: readonly CaptionUnit[];
readonly words: readonly CaptionDisplayWord[];
readonly cues: readonly CaptionCue[];
};
export type CaptionStyleIntent = {
readonly id: string;
/** null selects no rendering; later Uses can select a visible Style again. */
readonly rendering: {
readonly family: string;
readonly parameters: CanonicalValue;
} | null;
};
/** Ordered, resolved Uses owned by a Caption Track, not a separate author element. */
export type CaptionUse = {
readonly id: string;
readonly window?: import("@hypit/temporal").TemporalWindow;
readonly styleId: string;
readonly role?: string;
};
export type CaptionProgram = {
readonly id: string;
readonly documentId: string;
readonly styles: readonly CaptionStyleIntent[];
readonly uses: readonly CaptionUse[];
};
export type CaptionTimingUnit = {
readonly unitId: string;
readonly startFrame: number;
readonly endFrameExclusive: number;
};
export type CaptionTiming = {
/** Absolute Timeline on which every unit boundary is resolved. */
readonly timelineId: string;
readonly documentId: string;
/** Complete, source-neutral timing for the selected CaptionDocument. */
readonly units: readonly CaptionTimingUnit[];
};