import { v4 as uuidv4, validate as uuidValidate } from "uuid" import { HfInference } from "@huggingface/inference" // convert a request (which might be invalid) import { VideoAPIRequest, Video } from "../types.mts" import { getValidNumber } from "./getValidNumber.mts" import { getValidResolution } from "./getValidResolution.mts" import { parseShotRequest } from "./parseShotRequest.mts" import { generateSeed } from "./generateSeed.mts" import { sequenceFormatVersion } from "../config.mts" // const hfi = new HfInference(process.env._VC_HF_API_TOKEN) // const hf = hfi.endpoint(process.env.VC_INFERENCE_ENDPOINT_URL) export const parseVideoRequest = async (ownerId: string, request: VideoAPIRequest): Promise