/**
 * This file was automatically generated by openapi-codegeneration.
 * DO NOT MODIFY IT BY HAND. Instead, modify the source OpenAPI file,
 * and run openapi-codegeneration to regenerate this file.
 */
import * as BasicValidation from './basicValidation.cjs';
/**
 * @internal
 */
export function isSuccessResponse(response) {
    return response.status < 400;
}
/**
 * @internal
 */
export function isErrorResponse(response) {
    return response.status >= 400;
}
export function isUser(obj, type = 'all') {
    switch (type) {
        case 'request':
            return BasicValidation.validateUserRequest(obj);
        case 'response':
            return BasicValidation.validateUserResponse(obj);
        default:
            return BasicValidation.validateUser(obj);
    }
}
//# sourceMappingURL=types.js.map