Skip to content

slidesOpsRequestSchema

const slidesOpsRequestSchema: ZodObject<{ approver: ZodOptional<ZodString>; approverId: ZodOptional<ZodString>; mode: ZodDefault<ZodEnum<["edit", "suggest"]>>; ops: ZodArray<ZodDiscriminatedUnion<"type", [ZodObject<{ attribution: ZodOptional<ZodString>; bullets: ZodOptional<ZodArray<ZodString, "many">>; chart: ZodOptional<ZodObject<{ chart: ZodEnum<…>; labels: ZodArray<…, …>; series: ZodArray<…, …>; }, "strip", ZodTypeAny, { chart: … | … | …; labels: …[]; series: …[]; }, { chart: … | … | …; labels: …[]; series: …[]; }>>; 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<…>; labels: ZodArray<…, …>; series: ZodArray<…, …>; }, "strip", ZodTypeAny, { chart: … | … | …; labels: …[]; series: …[]; }, { chart: … | … | …; labels: …[]; series: …[]; }>>; 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"; }>]>, "many">; }, "strip", ZodTypeAny, { approver?: string; approverId?: string; mode: "suggest" | "edit"; ops: ({ 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[]; }; 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"; } | { position: number; slide: string; type: "move_slide"; } | { slide: string; type: "delete_slide"; } | { overrides?: { accent?: string; background?: string; }; themeId?: "studio" | "midnight"; type: "set_theme"; } | { data?: { chart: "bar" | "line" | "pie"; labels: string[]; series: object[]; } | { alt: string; url: string; } | { header: boolean; rows: string[][]; } | { shape: "ellipse" | "line" | "rect"; }; delete?: boolean; element: string; h?: number; rotation?: number; style?: { align?: "left" | "center" | "right"; color?: string; fill?: string; opacity?: number; radius?: number; role?: "title" | "quote" | "subtitle" | "heading" | "body" | "caption"; stroke?: string; valign?: "top" | "middle" | "bottom"; }; text?: string; type: "edit_element"; w?: number; x?: number; y?: number; z?: number; } | { data?: { chart: "bar" | "line" | "pie"; labels: string[]; series: object[]; } | { alt: string; url: string; } | { header: boolean; rows: string[][]; } | { shape: "ellipse" | "line" | "rect"; }; h?: number; id?: string; kind: "shape" | "text" | "chart" | "image" | "table"; slide: string; style?: { align?: "left" | "center" | "right"; color?: string; fill?: string; opacity?: number; radius?: number; role?: "title" | "quote" | "subtitle" | "heading" | "body" | "caption"; stroke?: string; valign?: "top" | "middle" | "bottom"; }; text?: string; type: "add_element"; w?: number; x?: number; y?: number; })[]; }, { approver?: string; approverId?: string; mode?: "suggest" | "edit"; ops: ({ 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[]; }; 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"; } | { position: number; slide: string; type: "move_slide"; } | { slide: string; type: "delete_slide"; } | { overrides?: { accent?: string; background?: string; }; themeId?: "studio" | "midnight"; type: "set_theme"; } | { data?: { chart: "bar" | "line" | "pie"; labels: string[]; series: object[]; } | { alt: string; url: string; } | { header: boolean; rows: string[][]; } | { shape: "ellipse" | "line" | "rect"; }; delete?: boolean; element: string; h?: number; rotation?: number; style?: { align?: "left" | "center" | "right"; color?: string; fill?: string; opacity?: number; radius?: number; role?: "title" | "quote" | "subtitle" | "heading" | "body" | "caption"; stroke?: string; valign?: "top" | "middle" | "bottom"; }; text?: string; type: "edit_element"; w?: number; x?: number; y?: number; z?: number; } | { data?: { chart: "bar" | "line" | "pie"; labels: string[]; series: object[]; } | { alt: string; url: string; } | { header: boolean; rows: string[][]; } | { shape: "ellipse" | "line" | "rect"; }; h?: number; id?: string; kind: "shape" | "text" | "chart" | "image" | "table"; slide: string; style?: { align?: "left" | "center" | "right"; color?: string; fill?: string; opacity?: number; radius?: number; role?: "title" | "quote" | "subtitle" | "heading" | "body" | "caption"; stroke?: string; valign?: "top" | "middle" | "bottom"; }; text?: string; type: "add_element"; w?: number; x?: number; y?: number; })[]; }>

Defined in: index.ts:660