Skip to content

Variable: SessionMessageBlockSchema

Makaio Framework


Makaio Framework / contracts/session / SessionMessageBlockSchema

const SessionMessageBlockSchema: ZodDiscriminatedUnion<[ZodObject<{ content: ZodString; type: ZodLiteral<"text">; }, $strip>, ZodObject<{ source: ZodDiscriminatedUnion<[ZodObject<{ data: ZodString; mimeType: ZodString; type: ZodLiteral<"base64">; }, $strip>, ZodObject<{ mimeType: ZodOptional<ZodString>; type: ZodLiteral<"url">; url: ZodString; }, $strip>], "type">; type: ZodLiteral<"image">; }, $strip>, ZodObject<{ source: ZodDiscriminatedUnion<[ZodObject<{ data: ZodString; mimeType: ZodString; type: ZodLiteral<"base64">; }, $strip>, ZodObject<{ mimeType: ZodOptional<ZodString>; type: ZodLiteral<"url">; url: ZodString; }, $strip>], "type">; type: ZodLiteral<"document">; }, $strip>, ZodObject<{ attachmentType: ZodEnum<{ directory: "directory"; file: "file"; }>; displayName: ZodOptional<ZodString>; fileName: ZodString; filePath: ZodString; source: ZodDiscriminatedUnion<[ZodObject<{ data: ZodString; mimeType: ZodString; type: ZodLiteral<"base64">; }, $strip>, ZodObject<{ mimeType: ZodOptional<ZodString>; type: ZodLiteral<"url">; url: ZodString; }, $strip>], "type">; type: ZodLiteral<"attachment">; }, $strip>], "type"> = MessageBlockSchema

Defined in: ../../../packages/contracts/src/session/schemas/message.ts:11

Session message block types for structured content within stored messages.

Unified with MessageBlock — all block types (text, image, document, attachment, reasoning, tool_call, tool_output) are first-class citizens in both storage and SDK contexts.