Skip to content

armgit / hypit

Public Imported from GitHub
0

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.

613 B
Raw Blame
import type { ValueSchema } from "@hypit/hypit/protocol";

const string = { kind: "string", minLength: 1 } as const;
const object = (
  fields: Readonly<Record<string, { readonly schema: ValueSchema; readonly optional?: boolean }>>,
): ValueSchema => ({ kind: "object", fields });

export const narrativeCaptionBindingSchema: ValueSchema = object({
  id: { schema: string }, narrativeId: { schema: string }, documentId: { schema: string },
  units: { schema: { kind: "array", items: object({
    unitId: { schema: string }, sourceTokenIds: { schema: { kind: "array", minItems: 1, items: string } },
  }) } },
});