Skip to content

slidesOpSchema

const slidesOpSchema: ZodDiscriminatedUnion<"type", [ZodObject<{ attribution: ZodOptional<ZodString>; bullets: ZodOptional<ZodArray<ZodString, "many">>; chart: ZodOptional<ZodObject<{ chart: ZodEnum<["bar", "line", "pie"]>; labels: ZodArray<ZodString, "many">; series: ZodArray<ZodObject<{ name: ZodString; values: ZodArray<…, …>; }, "strip", ZodTypeAny, { name: string; values: …[]; }, { name: string; values: …[]; }>, "many">; }, "strip", ZodTypeAny, { chart: "bar" | "line" | "pie"; labels: string[]; series: object[]; }, { chart: "bar" | "line" | "pie"; labels: string[]; series: object[]; }>>; id: ZodOptional<ZodString>; image: ZodOptional<ZodObject<{ alt: ZodString; url: ZodString; }, "strip", ZodTypeAny, { alt: string; url: string; }, { alt: string; url: string; }>>; layout: ZodOptional<ZodEnum<["title", "title_bullets", "section", "two_column", "chart_takeaway", "image_full", "quote", "closing"]>>; notes: ZodOptional<ZodString>; position: ZodOptional<ZodNumber>; quote: ZodOptional<ZodString>; rightBullets: ZodOptional<ZodArray<ZodString, "many">>; subtitle: ZodOptional<ZodString>; title: ZodOptional<ZodString>; type: ZodLiteral<"add_slide">; }, "strip", ZodTypeAny, { attribution?: string; bullets?: string[]; chart?: { chart: "bar" | "line" | "pie"; labels: string[]; series: object[]; }; id?: string; image?: { alt: string; url: string; }; layout?: "title" | "title_bullets" | "section" | "two_column" | "chart_takeaway" | "image_full" | "quote" | "closing"; notes?: string; position?: number; quote?: string; rightBullets?: string[]; subtitle?: string; title?: string; type: "add_slide"; }, { attribution?: string; bullets?: string[]; chart?: { chart: "bar" | "line" | "pie"; labels: string[]; series: object[]; }; id?: string; image?: { alt: string; url: string; }; layout?: "title" | "title_bullets" | "section" | "two_column" | "chart_takeaway" | "image_full" | "quote" | "closing"; notes?: string; position?: number; quote?: string; rightBullets?: string[]; subtitle?: string; title?: string; type: "add_slide"; }>, ZodObject<{ attribution: ZodOptional<ZodString>; bullets: ZodOptional<ZodArray<ZodString, "many">>; chart: ZodOptional<ZodObject<{ chart: ZodEnum<["bar", "line", "pie"]>; labels: ZodArray<ZodString, "many">; series: ZodArray<ZodObject<{ name: ZodString; values: ZodArray<…, …>; }, "strip", ZodTypeAny, { name: string; values: …[]; }, { name: string; values: …[]; }>, "many">; }, "strip", ZodTypeAny, { chart: "bar" | "line" | "pie"; labels: string[]; series: object[]; }, { chart: "bar" | "line" | "pie"; labels: string[]; series: object[]; }>>; hidden: ZodOptional<ZodBoolean>; image: ZodOptional<ZodObject<{ alt: ZodString; url: ZodString; }, "strip", ZodTypeAny, { alt: string; url: string; }, { alt: string; url: string; }>>; layout: ZodOptional<ZodEnum<["title", "title_bullets", "section", "two_column", "chart_takeaway", "image_full", "quote", "closing"]>>; notes: ZodOptional<ZodString>; quote: ZodOptional<ZodString>; rightBullets: ZodOptional<ZodArray<ZodString, "many">>; slide: ZodString; subtitle: ZodOptional<ZodString>; title: ZodOptional<ZodString>; type: ZodLiteral<"update_slide">; }, "strip", ZodTypeAny, { attribution?: string; bullets?: string[]; chart?: { chart: "bar" | "line" | "pie"; labels: string[]; series: object[]; }; hidden?: boolean; image?: { alt: string; url: string; }; layout?: "title" | "title_bullets" | "section" | "two_column" | "chart_takeaway" | "image_full" | "quote" | "closing"; notes?: string; quote?: string; rightBullets?: string[]; slide: string; subtitle?: string; title?: string; type: "update_slide"; }, { attribution?: string; bullets?: string[]; chart?: { chart: "bar" | "line" | "pie"; labels: string[]; series: object[]; }; hidden?: boolean; image?: { alt: string; url: string; }; layout?: "title" | "title_bullets" | "section" | "two_column" | "chart_takeaway" | "image_full" | "quote" | "closing"; notes?: string; quote?: string; rightBullets?: string[]; slide: string; subtitle?: string; title?: string; type: "update_slide"; }>, ZodObject<{ position: ZodNumber; slide: ZodString; type: ZodLiteral<"move_slide">; }, "strip", ZodTypeAny, { position: number; slide: string; type: "move_slide"; }, { position: number; slide: string; type: "move_slide"; }>]>

Defined in: index.ts:590