"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.loginResponseSchema = exports.loginSchema = void 0;
const zod_1 = require("zod");
//----------------------------------------------------------------------------
exports.loginSchema = zod_1.z.object({
    email: zod_1.z
        .string({ required_error: "L'adresse mail est obligatoire" })
        .email({ message: "L'adresse mail est invalide" })
        .max(250, "250 caractères au maximum"),
    password: zod_1.z
        .string({ required_error: "Le mot de passe est obligatoire" })
        .min(8, { message: "8 caractères au minimum" }),
});
//----------------------------------------------------------------------------
exports.loginResponseSchema = zod_1.z.object({
    accessToken: zod_1.z.string(),
});
//----------------------------------------------------------------------------------------
