Atrium — shared contracts and the typesetting engine
    Preparing search index...

    Variable latexCompileResultSchemaConst

    latexCompileResultSchema: ZodObject<
        {
            diagnostics: ZodArray<
                ZodObject<
                    {
                        code: ZodOptional<
                            ZodEnum<
                                [
                                    "syntax",
                                    "unsupported",
                                    "undefined-command",
                                    "undefined-environment",
                                    "undefined-reference",
                                    "duplicate-label",
                                    "missing-file",
                                    "missing-font",
                                    "overfull-box",
                                    "underfull-box",
                                    "budget-exceeded",
                                ],
                            >,
                        >;
                        column: ZodOptional<ZodNumber>;
                        construct: ZodOptional<ZodString>;
                        file: ZodString;
                        line: ZodNumber;
                        message: ZodString;
                        severity: ZodEnum<["error", "warning", "info"]>;
                    },
                    "strip",
                    ZodTypeAny,
                    {
                        code?: | "syntax"
                        | "unsupported"
                        | "undefined-command"
                        | "undefined-environment"
                        | "undefined-reference"
                        | "duplicate-label"
                        | "missing-file"
                        | "missing-font"
                        | "overfull-box"
                        | "underfull-box"
                        | "budget-exceeded"
                        | "limit-exceeded"
                        | "stopped"
                        | "internal";
                        column?: number;
                        construct?: string;
                        file: string;
                        line: number;
                        message: string;
                        severity: "error"
                        | "warning"
                        | "info";
                    },
                    {
                        code?: | "syntax"
                        | "unsupported"
                        | "undefined-command"
                        | "undefined-environment"
                        | "undefined-reference"
                        | "duplicate-label"
                        | "missing-file"
                        | "missing-font"
                        | "overfull-box"
                        | "underfull-box"
                        | "budget-exceeded"
                        | "limit-exceeded"
                        | "stopped"
                        | "internal";
                        column?: number;
                        construct?: string;
                        file: string;
                        line: number;
                        message: string;
                        severity: "error"
                        | "warning"
                        | "info";
                    },
                >,
                "many",
            >;
            log: ZodString;
            status: ZodEnum<["none", "running", "ready", "failed"]>;
        },
        "strip",
        ZodTypeAny,
        {
            diagnostics: {
                code?: | "syntax"
                | "unsupported"
                | "undefined-command"
                | "undefined-environment"
                | "undefined-reference"
                | "duplicate-label"
                | "missing-file"
                | "missing-font"
                | "overfull-box"
                | "underfull-box"
                | "budget-exceeded"
                | "limit-exceeded"
                | "stopped"
                | "internal";
                column?: number;
                construct?: string;
                file: string;
                line: number;
                message: string;
                severity: "error"
                | "warning"
                | "info";
            }[];
            log: string;
            status: "none"
            | "running"
            | "ready"
            | "failed";
        },
        {
            diagnostics: {
                code?: | "syntax"
                | "unsupported"
                | "undefined-command"
                | "undefined-environment"
                | "undefined-reference"
                | "duplicate-label"
                | "missing-file"
                | "missing-font"
                | "overfull-box"
                | "underfull-box"
                | "budget-exceeded"
                | "limit-exceeded"
                | "stopped"
                | "internal";
                column?: number;
                construct?: string;
                file: string;
                line: number;
                message: string;
                severity: "error"
                | "warning"
                | "info";
            }[];
            log: string;
            status: "none"
            | "running"
            | "ready"
            | "failed";
        },
    > = ...

    The outcome of one compile — what POST /latex/:id/compile returns and GET /latex/:id/log re-serves. status only ever lands on ready or failed here (a result is by definition of a compile that finished), kept as the full CompileStatus union rather than a two-value type so the panel and the project row can share one switch.