Something went wrong. Try again.
Something went wrong. Try again.
123456789101112131415/** * Image — a base64-encoded image payload (PROTOCOL §11). * * Wire-safe: `data` is always a base64 string, never a binary blob or Buffer. */import { Type, type Static } from '@sinclair/typebox';
export const ImageSchema = Type.Object({ type: Type.Literal('image'), data: Type.String({ description: 'base64-encoded image bytes' }), mime_type: Type.String({ description: 'e.g. image/png, image/jpeg' }),});
export type Image = Static<typeof ImageSchema>;