UNPKG

@juspay/neurolink

Version:

The pipe layer of an AI nervous system: one interface connecting provider neurons to your application, across three inference types — generate, stream and decide. `decide` returns typed, calibrated judgements from a non-generative model (~400ms, ~$0.00002

37 lines (36 loc) • 1.32 kB
/** * PPT Generation Types * * All types for presentation generation - both external API types and internal pipeline types. * Used by the content planner, slide generator, and orchestrator. * * Architecture: * - PPTOutputOptions / PPTGenerationResult: External API types (GenerateOptions.output.ppt) * - SlideSchema / ContentPlan: Content planning pipeline types * - CompleteSlide / PPTGenerationContext: Generation context types * - PPTError: Error handling (follows VideoError pattern) */ // ============================================================================ // VALIDATION CONSTANTS // ============================================================================ /** Minimum number of slides allowed */ export const MIN_SLIDES = 5; /** Maximum number of slides allowed */ export const MAX_SLIDES = 50; /** Slide dimensions in inches by aspect ratio */ export const SLIDE_DIMENSIONS = { "16:9": { width: 10, height: 5.625 }, "4:3": { width: 10, height: 7.5 }, }; /** * Validate a hex color string (6 hex characters, no # prefix). */ export function isValidHexColor(color) { return /^[0-9A-Fa-f]{6}$/.test(color); } /** * Normalize a hex color by stripping leading # if present. */ export function normalizeHexColor(color) { return color.startsWith("#") ? color.slice(1) : color; }