import * as v from "valibot" /** * Sent by the sandbox back to the host when an inbound host-to-sandbox message could not be parsed * (unknown `type`, schema mismatch, etc.). The host should never reply to an `invalidHostMessage` * with another bridge error message. */ export const invalidHostMessageSchema = v.object({ type: v.literal("invalidHostMessage"), /** * A human-readable string intended for sandbox-side logging. It has no structured contract. */ reason: v.string(), }) export type InvalidHostMessage = v.InferOutput