import { z } from 'zod'; import { Role } from './enums.js'; export const LoginRequest = z.object({ username: z.string().min(1).max(64), password: z.string().min(1).max(256), }); export type LoginRequest = z.infer; export const UserPublic = z.object({ id: z.string().uuid(), username: z.string(), email: z.string().email(), role: Role, createdAt: z.union([z.string(), z.date()]), }); export type UserPublic = z.infer;