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/compilereturns andGET /latex/:id/logre-serves.statusonly ever lands onreadyorfailedhere (a result is by definition of a compile that finished), kept as the fullCompileStatusunion rather than a two-value type so the panel and the project row can share one switch.