/**
 * Check if the given value is a valid operation name.
 */
export function isValidOperationName(value = '') {
    return ['list', 'read', 'create', 'update', 'delete', 'search'].includes(value);
}
/**
 * Check if the given value is a valid access target.
 */
export function isValidAccessTarget(value = '') {
    return ['api', 'action', 'endpoint'].includes(value);
}
/**
 * Check if the given value is a valid access rule type.
 */
export function isValidAccessRuleType(value = '') {
    return [
        'public',
        'authenticated',
        'resourceOwner',
        'matchUserRole',
        'matchUserProperty',
        'matchEmailDomain',
    ].includes(value);
}
//# sourceMappingURL=validators.js.map