Skip to content

chatOpSchema

const chatOpSchema: ZodDiscriminatedUnion<"type", [ZodObject<{ attachments: ZodOptional<ZodArray<ZodObject<{ docName: ZodString; title: ZodOptional<ZodString>; }, "strip", ZodTypeAny, { docName: string; title?: string; }, { docName: string; title?: string; }>, "many">>; id: ZodOptional<ZodString>; mentions: ZodOptional<ZodArray<ZodObject<{ id: ZodString; kind: ZodEnum<["human", "agent"]>; name: ZodString; }, "strip", ZodTypeAny, { id: string; kind: "human" | "agent"; name: string; }, { id: string; kind: "human" | "agent"; name: string; }>, "many">>; text: ZodString; type: ZodLiteral<"post_message">; }, "strip", ZodTypeAny, { attachments?: object[]; id?: string; mentions?: object[]; text: string; type: "post_message"; }, { attachments?: object[]; id?: string; mentions?: object[]; text: string; type: "post_message"; }>, ZodObject<{ id: ZodString; text: ZodString; type: ZodLiteral<"edit_message">; }, "strip", ZodTypeAny, { id: string; text: string; type: "edit_message"; }, { id: string; text: string; type: "edit_message"; }>, ZodObject<{ emoji: ZodString; id: ZodString; type: ZodLiteral<"react">; }, "strip", ZodTypeAny, { emoji: string; id: string; type: "react"; }, { emoji: string; id: string; type: "react"; }>, ZodObject<{ type: ZodLiteral<"typing">; }, "strip", ZodTypeAny, { type: "typing"; }, { type: "typing"; }>]>

Defined in: index.ts:358