Skip to main content

Generation types

Type-only module for the card generator feature.

Key interfaces​

TypePurpose
AspectRatioOptionCatalog row: key, name, description, dimensions
GenerationOptionsFree + Pro API payload (seeds, layout, watermark controls)
GenerationResponseAPI success: id, svg, seed, dimensions, remainingGenerations
GenerationFormStatestringly-typed form fields synced with hooks/page
QuotaStateremaining/limit/initialized/exceeded/resetDate

Pro-only fields include avatar placement, typography, border/glass, pattern seed, watermark position/rotation.


Sources: src/app/card-generator/types/generation.ts