HistoryResponseMessageSchema
constHistoryResponseMessageSchema:ZodObject<{entries:ZodArray<ZodDiscriminatedUnion<[ZodObject<{assistantMessage:ZodString;id:ZodPipe<ZodString,ZodTransform<MessageId,string>>;kind:ZodLiteral<"turn">;sessionId:ZodPipe<ZodString,ZodTransform<SessionId,string>>;timestamp:ZodNumber;userIntent:ZodString; },$strip>,ZodObject<{content:ZodString;id:ZodPipe<ZodString,ZodTransform<MessageId,string>>;kind:ZodLiteral<"injection">;sessionId:ZodPipe<ZodString,ZodTransform<SessionId,string>>;timestamp:ZodNumber; },$strip>],"kind">>;requestId:ZodPipe<ZodString,ZodTransform<MessageId,string>>;type:ZodLiteral<"engine.history.response">; },$strip>
Defined in: packages/protocol/src/lib/envelope.ts:270
Wire-format Zod parser for HistoryResponseMessage. entries is
validated with SessionHistoryEntryArraySchema so a malformed replay
is rejected at the boundary rather than surfacing deep in a render tree.