import { z } from "zod"; import { THEME_PREFERENCES } from "../types/preferences.js"; // See schemas/auth.ts for the shared client/server validation rationale. /** Payload accepted by `PATCH /preferences`. */ export const updatePreferencesSchema = z.object({ theme: z.enum(THEME_PREFERENCES), }); /** Inferred TS type for {@link updatePreferencesSchema}'s validated output. */ export type UpdatePreferencesInput = z.infer;