"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.UserSchema = void 0;
const yup_1 = require("yup");
const UserSchema = (0, yup_1.object)().shape({
    id: (0, yup_1.string)().required(),
    email: (0, yup_1.string)().email().required(),
    firstName: (0, yup_1.string)().required(),
    lastName: (0, yup_1.string)().required(),
    groups: (0, yup_1.array)().min(1).required(),
    recordingFilter: (0, yup_1.object)().shape({
        caller: (0, yup_1.string)(),
        called: (0, yup_1.string)(),
        extensions: (0, yup_1.string)(),
    }),
});
exports.UserSchema = UserSchema;
