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