Skip to content

extensionMessageSchema

const extensionMessageSchema: ZodDiscriminatedUnion<"type", [ZodObject<{ data: ZodString; height: ZodNumber; type: ZodLiteral<"ext_frame">; width: ZodNumber; }, "strip", ZodTypeAny, { data: string; height: number; type: "ext_frame"; width: number; }, { data: string; height: number; type: "ext_frame"; width: number; }>, ZodObject<{ title: ZodString; type: ZodLiteral<"ext_page">; url: ZodString; }, "strip", ZodTypeAny, { title: string; type: "ext_page"; url: string; }, { title: string; type: "ext_page"; url: string; }>, ZodObject<{ error: ZodOptional<ZodString>; id: ZodString; ok: ZodBoolean; outline: ZodOptional<ZodObject<{ lines: ZodArray<ZodObject<{ backendNodeId: ZodNullable<…>; checked: ZodNullable<…>; level: ZodNullable<…>; ref: ZodNullable<…>; role: ZodString; text: ZodString; value: ZodNullable<…>; }, "strip", ZodTypeAny, { backendNodeId: … | …; checked: … | … | …; level: … | …; ref: … | …; role: string; text: string; value: … | …; }, { backendNodeId: … | …; checked: … | … | …; level: … | …; ref: … | …; role: string; text: string; value: … | …; }>, "many">; refs: ZodRecord<ZodString, ZodNumber>; }, "strip", ZodTypeAny, { lines: object[]; refs: Record<string, number>; }, { lines: object[]; refs: Record<string, number>; }>>; page: ZodOptional<ZodObject<{ title: ZodString; url: ZodString; }, "strip", ZodTypeAny, { title: string; url: string; }, { title: string; url: string; }>>; type: ZodLiteral<"ext_response">; }, "strip", ZodTypeAny, { error?: string; id: string; ok: boolean; outline?: { lines: object[]; refs: Record<string, number>; }; page?: { title: string; url: string; }; type: "ext_response"; }, { error?: string; id: string; ok: boolean; outline?: { lines: object[]; refs: Record<string, number>; }; page?: { title: string; url: string; }; type: "ext_response"; }>]>

Defined in: index.ts:1393