Skip to content

richTextSchema

const richTextSchema: ZodArray<ZodDiscriminatedUnion<[ZodObject<{ annotations: ZodObject<{ bold: ZodBoolean; code: ZodBoolean; color: ZodEnum<{ blue: "blue"; blue_background: "blue_background"; brown: "brown"; brown_background: "brown_background"; default: "default"; gray: "gray"; gray_background: "gray_background"; green: "green"; green_background: "green_background"; orange: "orange"; orange_background: "orange_background"; pink: "pink"; pink_background: "pink_background"; purple: "purple"; purple_background: "purple_background"; red: "red"; red_background: "red_background"; yellow: "yellow"; yellow_background: "yellow_background"; }>; italic: ZodBoolean; strikethrough: ZodBoolean; underline: ZodBoolean; }, $strip>; href: ZodNullable<ZodURL>; plain_text: ZodString; text: ZodObject<{ content: ZodString; link: ZodNullable<ZodObject<{ url: ZodURL; }, $strip>>; }, $strip>; type: ZodLiteral<"text">; }, $strip>, ZodObject<{ annotations: ZodObject<{ bold: ZodBoolean; code: ZodBoolean; color: ZodEnum<{ blue: "blue"; blue_background: "blue_background"; brown: "brown"; brown_background: "brown_background"; default: "default"; gray: "gray"; gray_background: "gray_background"; green: "green"; green_background: "green_background"; orange: "orange"; orange_background: "orange_background"; pink: "pink"; pink_background: "pink_background"; purple: "purple"; purple_background: "purple_background"; red: "red"; red_background: "red_background"; yellow: "yellow"; yellow_background: "yellow_background"; }>; italic: ZodBoolean; strikethrough: ZodBoolean; underline: ZodBoolean; }, $strip>; href: ZodNullable<ZodURL>; mention: ZodDiscriminatedUnion<[ZodObject<{ database: ZodObject<{ id: …; }, $strip>; type: ZodLiteral<"database">; }, $strip>, ZodObject<{ date: ZodObject<{ end: …; start: …; time_zone: …; }, $strip>; type: ZodLiteral<"date">; }, $strip>, ZodObject<{ link_preview: ZodObject<{ url: …; }, $strip>; type: ZodLiteral<"link_preview">; }, $strip>, ZodObject<{ page: ZodObject<{ id: …; }, $strip>; type: ZodLiteral<"page">; }, $strip>, ZodObject<{ template_mention: ZodDiscriminatedUnion<[…, …], "type">; type: ZodLiteral<"template_mention">; }, $strip>, ZodObject<{ type: ZodLiteral<"user">; user: ZodUnion<readonly […, …, …]>; }, $strip>], "type">; plain_text: ZodString; type: ZodLiteral<"mention">; }, $strip>, ZodObject<{ annotations: ZodObject<{ bold: ZodBoolean; code: ZodBoolean; color: ZodEnum<{ blue: "blue"; blue_background: "blue_background"; brown: "brown"; brown_background: "brown_background"; default: "default"; gray: "gray"; gray_background: "gray_background"; green: "green"; green_background: "green_background"; orange: "orange"; orange_background: "orange_background"; pink: "pink"; pink_background: "pink_background"; purple: "purple"; purple_background: "purple_background"; red: "red"; red_background: "red_background"; yellow: "yellow"; yellow_background: "yellow_background"; }>; italic: ZodBoolean; strikethrough: ZodBoolean; underline: ZodBoolean; }, $strip>; equation: ZodObject<{ expression: ZodString; }, $strip>; href: ZodNullable<ZodURL>; plain_text: ZodString; type: ZodLiteral<"equation">; }, $strip>], "type">>

Defined in: src/schemas/richText.schema.ts:133