import { z } from 'zod';
export const supervisorStateSchema = z.enum(['up', 'down', 'unknown']);
export const supervisorStatusSchema = z.object({
    state: supervisorStateSchema,
    reason: z.string().nullable(),
    lastCheckedAt: z.date(),
});
export function createSupervisorStatus(state, reason, lastCheckedAt) {
    return supervisorStatusSchema.parse({ state, reason, lastCheckedAt });
}
//# sourceMappingURL=supervisorStatus.schema.js.map