mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-14 00:46:39 +00:00
10 lines
340 B
TypeScript
10 lines
340 B
TypeScript
import { z } from "zod";
|
|
|
|
export const MaintenanceSchema = z.object({
|
|
enabled: z.boolean().optional(),
|
|
type: z.enum(["forced", "automatic"]).optional(),
|
|
title: z.string().max(255).nullable().optional(),
|
|
message: z.string().max(2000).nullable().optional(),
|
|
"estimated-time": z.string().max(100).nullable().optional()
|
|
});
|