Variable: chatPublishedEventSchema
const chatPublishedEventSchema: ZodUnion<readonly [ZodObject<{
conversationId: ZodUUID;
createdAt: ZodISODateTime;
id: ZodUUID;
kind: ZodLiteral<"message.created">;
message: ZodObject<{
clientRequestId: ZodString;
conversationId: ZodUUID;
createdAt: ZodISODateTime;
id: ZodUUID;
senderActorId: ZodString;
sequence: ZodNumber;
text: ZodString;
}, $strip>;
messageId: ZodUUID;
messageSequence: ZodNumber;
organizationId: ZodString;
schemaVersion: ZodLiteral<1>;
version: ZodNumber;
}, $strict>, ZodObject<{
conversationId: ZodUUID;
createdAt: ZodISODateTime;
id: ZodUUID;
kind: ZodEnum<{
conversation.created: "conversation.created";
members.changed: "members.changed";
read.updated: "read.updated";
}>;
messageId: ZodNull;
messageSequence: ZodNull;
organizationId: ZodString;
schemaVersion: ZodLiteral<1>;
version: ZodNumber;
}, $strict>]>;Defined in: shared/chat/payload.ts:52