import type * as Pinnacle from "../index.mjs"; /** * The minimum shape needed to create a form. Used by `POST /forms` and inline by `POST /forms/send`. */ export interface FormDefinition { /** Human-readable name for the form. Rendered as the form's title. */ name?: string; /** Longer description rendered below the title. */ description?: string; /** Ordered list of fields the recipient will fill out. At least one field is required. */ fields: Pinnacle.FormField[]; /** If true, the recipient can reopen the submission URL and edit their answers. When false (default), the submission URL becomes read-only (`Already submitted`) after the first submit. */ can_update?: boolean; /** After this timestamp the form stops accepting submissions. Omit for no expiration. */ expires_at?: string; /** Per-form theme tweaks layered on top of your team's default theme. Omit or set to null to use team defaults. */ theme_override?: Pinnacle.FormThemeOverride | null; }