import * as v from "valibot" import { notionThemeSchema } from "../theme.js" /** * Message sent by the host every time the theme changes after the initial * `init` handshake. */ export const themeChangedMessageSchema = v.object({ type: v.literal("themeChanged"), theme: notionThemeSchema, }) export type ThemeChangedMessage = v.InferOutput< typeof themeChangedMessageSchema >