"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
function _export(target, all) {
    for(var name in all)Object.defineProperty(target, name, {
        enumerable: true,
        get: Object.getOwnPropertyDescriptor(all, name).get
    });
}
_export(exports, {
    get newPasswordSchema () {
        return newPasswordSchema;
    },
    get registerUserSchema () {
        return registerUserSchema;
    }
});
const _zod = require("zod");
const _serverconstants = require("../../server.constants");
const _authorizationconstants = require("../../constants/authorization.constants");
const roleNameSchema = _zod.z.enum([
    _authorizationconstants.ROLES.ADMIN,
    _authorizationconstants.ROLES.OPERATOR,
    _authorizationconstants.ROLES.GUEST
]);
const registerUserSchema = _zod.z.object({
    username: _zod.z.string().min(_serverconstants.AppConstants.DEFAULT_USERNAME_MINLEN),
    password: _zod.z.string().min(_serverconstants.AppConstants.DEFAULT_PASSWORD_MINLEN),
    needsPasswordChange: _zod.z.boolean().optional(),
    roles: _zod.z.array(roleNameSchema),
    isDemoUser: _zod.z.boolean().optional(),
    isRootUser: _zod.z.boolean().optional(),
    isVerified: _zod.z.boolean().optional()
});
const newPasswordSchema = _zod.z.object({
    password: _zod.z.string().min(_serverconstants.AppConstants.DEFAULT_PASSWORD_MINLEN)
});

//# sourceMappingURL=user-service.validation.js.map