Skip to content

chatReadResponseSchema

const chatReadResponseSchema: ZodObject<{ messages: ZodArray<ZodObject<{ actor: ZodObject<{ color: ZodOptional<ZodString>; id: ZodString; kind: ZodEnum<["human", "agent"]>; name: ZodString; onBehalfOf: ZodOptional<ZodObject<{ id: ZodString; name: ZodString; }, "strip", ZodTypeAny, { id: string; name: string; }, { id: string; name: string; }>>; }, "strip", ZodTypeAny, { color?: string; id: string; kind: "human" | "agent"; name: string; onBehalfOf?: { id: string; name: string; }; }, { color?: string; id: string; kind: "human" | "agent"; name: string; onBehalfOf?: { id: string; name: string; }; }>; attachments: ZodArray<ZodObject<{ docName: ZodString; title: ZodOptional<ZodString>; }, "strip", ZodTypeAny, { docName: string; title?: string; }, { docName: string; title?: string; }>, "many">; editedAt: ZodOptional<ZodNumber>; id: ZodString; mentions: 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">; reactions: ZodRecord<ZodString, ZodArray<ZodString, "many">>; text: ZodString; ts: ZodNumber; }, "strip", ZodTypeAny, { actor: { color?: string; id: string; kind: "human" | "agent"; name: string; onBehalfOf?: { id: string; name: string; }; }; attachments: object[]; editedAt?: number; id: string; mentions: object[]; reactions: Record<string, string[]>; text: string; ts: number; }, { actor: { color?: string; id: string; kind: "human" | "agent"; name: string; onBehalfOf?: { id: string; name: string; }; }; attachments: object[]; editedAt?: number; id: string; mentions: object[]; reactions: Record<string, string[]>; text: string; ts: number; }>, "many">; }, "strip", ZodTypeAny, { messages: object[]; }, { messages: object[]; }>

Defined in: index.ts:415