Skip to content

liveOpsRequestSchema

const liveOpsRequestSchema: ZodObject<{ approver: ZodOptional<ZodString>; approverId: ZodOptional<ZodString>; mode: ZodDefault<ZodEnum<["edit", "suggest"]>>; ops: ZodArray<ZodDiscriminatedUnion<"type", [ZodObject<{ afterBlockId: ZodNullable<ZodString>; markdown: ZodString; type: ZodLiteral<"insert">; }, "strip", ZodTypeAny, { afterBlockId: string | null; markdown: string; type: "insert"; }, { afterBlockId: string | null; markdown: string; type: "insert"; }>, ZodObject<{ blockId: ZodString; markdown: ZodString; type: ZodLiteral<"replace">; }, "strip", ZodTypeAny, { blockId: string; markdown: string; type: "replace"; }, { blockId: string; markdown: string; type: "replace"; }>, ZodObject<{ blockId: ZodString; type: ZodLiteral<"delete">; }, "strip", ZodTypeAny, { blockId: string; type: "delete"; }, { blockId: string; type: "delete"; }>]>, "many">; }, "strip", ZodTypeAny, { approver?: string; approverId?: string; mode: "suggest" | "edit"; ops: ({ afterBlockId: string | null; markdown: string; type: "insert"; } | { blockId: string; markdown: string; type: "replace"; } | { blockId: string; type: "delete"; })[]; }, { approver?: string; approverId?: string; mode?: "suggest" | "edit"; ops: ({ afterBlockId: string | null; markdown: string; type: "insert"; } | { blockId: string; markdown: string; type: "replace"; } | { blockId: string; type: "delete"; })[]; }>

Defined in: index.ts:74