Skip to content

HistoryGetMessageSchema

const HistoryGetMessageSchema: ZodObject<{ id: ZodPipe<ZodString, ZodTransform<MessageId, string>>; sessionId: ZodPipe<ZodString, ZodTransform<SessionId, string>>; type: ZodLiteral<"client.history.get">; }, $strip>

Defined in: packages/protocol/src/lib/envelope.ts:115

Wire-format Zod parser for HistoryGetMessage. Validates the discriminator and the branded id / sessionId (both rejected when empty or whitespace-only).