Open-source status page, incident response and uptime monitoring
TypeScript alertingincident-managementmcpmcp-servermonitoringmonitoring-as-codeobservabilityon-callopen-sourcesrestatus-pagestatuspagesynthetic-monitoringterraformtinybirdtursouptimeuptime-checkeruptime-monitor
import { z } from "zod";
export const CreatePageComponentGroupInput = z.object({
pageId: z.number().int(),
name: z.string().min(1),
defaultOpen: z.boolean().default(false),
});
// `z.input`, not `z.infer` — the output type marks defaulted fields required,
// which would force callers to pass what the schema already defaults.
export type CreatePageComponentGroupInput = z.input<
typeof CreatePageComponentGroupInput
>;
/** Partial patch — `undefined` leaves a field as-is. */
export const UpdatePageComponentGroupInput = z.object({
id: z.number().int(),
name: z.string().min(1).optional(),
defaultOpen: z.boolean().optional(),
});
export type UpdatePageComponentGroupInput = z.infer<
typeof UpdatePageComponentGroupInput
>;
export const DeletePageComponentGroupInput = z.object({
id: z.number().int(),
});
export type DeletePageComponentGroupInput = z.infer<
typeof DeletePageComponentGroupInput
>;