Skip to content

Variable: NormalizedMessageInputSchema

Makaio Framework


Makaio Framework / contracts/shared / NormalizedMessageInputSchema

const NormalizedMessageInputSchema: ZodObject<{ blocks: ZodArray<ZodDiscriminatedUnion<[ZodObject<{ content: ZodString; type: ZodLiteral<"text">; }, $strip>, ZodObject<{ source: ZodDiscriminatedUnion<[ZodObject<{ data: …; mimeType: …; type: …; }, $strip>, ZodObject<{ mimeType: …; type: …; url: …; }, $strip>], "type">; type: ZodLiteral<"image">; }, $strip>, ZodObject<{ source: ZodDiscriminatedUnion<[ZodObject<{ data: …; mimeType: …; type: …; }, $strip>, ZodObject<{ mimeType: …; type: …; url: …; }, $strip>], "type">; type: ZodLiteral<"document">; }, $strip>, ZodObject<{ attachmentType: ZodEnum<{ directory: "directory"; file: "file"; }>; displayName: ZodOptional<ZodString>; fileName: ZodString; filePath: ZodString; source: ZodDiscriminatedUnion<[ZodObject<{ data: …; mimeType: …; type: …; }, $strip>, ZodObject<{ mimeType: …; type: …; url: …; }, $strip>], "type">; type: ZodLiteral<"attachment">; }, $strip>], "type">>; message: ZodOptional<ZodString>; role: ZodEnum<{ assistant: "assistant"; system: "system"; user: "user"; }>; }, $strip>

Defined in: ../../../packages/contracts/src/shared/index.ts:162

Schema for normalized message input. Used for user messages with full structure including role and content blocks.