import * as v from "valibot" /** * Message sent by the sandbox whenever its measured content height changes, so the host can resize * the surrounding iframe to match. The host is free to clamp the value or ignore it. The sandbox * always reports the most recent measurement. */ export const resizeMessageSchema = v.object({ type: v.literal("resize"), height: v.pipe(v.number(), v.finite(), v.minValue(0)), }) export type ResizeMessage = v.InferOutput