/**
 * 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 isAuthenticationMessage(obj, type = 'all') {
    switch (type) {
        case 'request':
            return BasicValidation.validateAuthenticationMessageRequest(obj);
        case 'response':
            return BasicValidation.validateAuthenticationMessageResponse(obj);
        default:
            return BasicValidation.validateAuthenticationMessage(obj);
    }
}
export function isConnectionStateChangedMessage(obj, type = 'all') {
    switch (type) {
        case 'request':
            return BasicValidation.validateConnectionStateChangedMessageRequest(obj);
        case 'response':
            return BasicValidation.validateConnectionStateChangedMessageResponse(obj);
        default:
            return BasicValidation.validateConnectionStateChangedMessage(obj);
    }
}
export function isDeviceOverview(obj, type = 'all') {
    switch (type) {
        case 'request':
            return BasicValidation.validateDeviceOverviewRequest(obj);
        case 'response':
            return BasicValidation.validateDeviceOverviewResponse(obj);
        default:
            return BasicValidation.validateDeviceOverview(obj);
    }
}
export function isInstantiableCloudDevice(obj, type = 'all') {
    switch (type) {
        case 'request':
            return BasicValidation.validateInstantiableCloudDeviceRequest(obj);
        case 'response':
            return BasicValidation.validateInstantiableCloudDeviceResponse(obj);
        default:
            return BasicValidation.validateInstantiableCloudDevice(obj);
    }
}
export function isConcreteDevice(obj, type = 'all') {
    switch (type) {
        case 'request':
            return BasicValidation.validateConcreteDeviceRequest(obj);
        case 'response':
            return BasicValidation.validateConcreteDeviceResponse(obj);
        default:
            return BasicValidation.validateConcreteDevice(obj);
    }
}
export function isInstantiableBrowserDevice(obj, type = 'all') {
    switch (type) {
        case 'request':
            return BasicValidation.validateInstantiableBrowserDeviceRequest(obj);
        case 'response':
            return BasicValidation.validateInstantiableBrowserDeviceResponse(obj);
        default:
            return BasicValidation.validateInstantiableBrowserDevice(obj);
    }
}
export function isDeviceGroup(obj, type = 'all') {
    switch (type) {
        case 'request':
            return BasicValidation.validateDeviceGroupRequest(obj);
        case 'response':
            return BasicValidation.validateDeviceGroupResponse(obj);
        default:
            return BasicValidation.validateDeviceGroup(obj);
    }
}
export function isDevice(obj, type = 'all') {
    switch (type) {
        case 'request':
            return BasicValidation.validateDeviceRequest(obj);
        case 'response':
            return BasicValidation.validateDeviceResponse(obj);
        default:
            return BasicValidation.validateDevice(obj);
    }
}
export function isCallback(obj, type = 'all') {
    switch (type) {
        case 'request':
            return BasicValidation.validateCallbackRequest(obj);
        case 'response':
            return BasicValidation.validateCallbackResponse(obj);
        default:
            return BasicValidation.validateCallback(obj);
    }
}
export function isEventCallback(obj, type = 'all') {
    switch (type) {
        case 'request':
            return BasicValidation.validateEventCallbackRequest(obj);
        case 'response':
            return BasicValidation.validateEventCallbackResponse(obj);
        default:
            return BasicValidation.validateEventCallback(obj);
    }
}
export function isDeviceChangedEventCallback(obj, type = 'all') {
    switch (type) {
        case 'request':
            return BasicValidation.validateDeviceChangedEventCallbackRequest(obj);
        case 'response':
            return BasicValidation.validateDeviceChangedEventCallbackResponse(obj);
        default:
            return BasicValidation.validateDeviceChangedEventCallback(obj);
    }
}
export function isDeviceDeletedEventCallback(obj, type = 'all') {
    switch (type) {
        case 'request':
            return BasicValidation.validateDeviceDeletedEventCallbackRequest(obj);
        case 'response':
            return BasicValidation.validateDeviceDeletedEventCallbackResponse(obj);
        default:
            return BasicValidation.validateDeviceDeletedEventCallback(obj);
    }
}
export function isMessage(obj, type = 'all') {
    switch (type) {
        case 'request':
            return BasicValidation.validateMessageRequest(obj);
        case 'response':
            return BasicValidation.validateMessageResponse(obj);
        default:
            return BasicValidation.validateMessage(obj);
    }
}
export function isCommandMessage(obj, type = 'all') {
    switch (type) {
        case 'request':
            return BasicValidation.validateCommandMessageRequest(obj);
        case 'response':
            return BasicValidation.validateCommandMessageResponse(obj);
        default:
            return BasicValidation.validateCommandMessage(obj);
    }
}
export function isCreatePeerconnectionMessage(obj, type = 'all') {
    switch (type) {
        case 'request':
            return BasicValidation.validateCreatePeerconnectionMessageRequest(obj);
        case 'response':
            return BasicValidation.validateCreatePeerconnectionMessageResponse(obj);
        default:
            return BasicValidation.validateCreatePeerconnectionMessage(obj);
    }
}
export function isClosePeerconnectionMessage(obj, type = 'all') {
    switch (type) {
        case 'request':
            return BasicValidation.validateClosePeerconnectionMessageRequest(obj);
        case 'response':
            return BasicValidation.validateClosePeerconnectionMessageResponse(obj);
        default:
            return BasicValidation.validateClosePeerconnectionMessage(obj);
    }
}
export function isSignalingMessage(obj, type = 'all') {
    switch (type) {
        case 'request':
            return BasicValidation.validateSignalingMessageRequest(obj);
        case 'response':
            return BasicValidation.validateSignalingMessageResponse(obj);
        default:
            return BasicValidation.validateSignalingMessage(obj);
    }
}
export function isConfigurationMessage(obj, type = 'all') {
    switch (type) {
        case 'request':
            return BasicValidation.validateConfigurationMessageRequest(obj);
        case 'response':
            return BasicValidation.validateConfigurationMessageResponse(obj);
        default:
            return BasicValidation.validateConfigurationMessage(obj);
    }
}
export function isExperimentStatusChangedMessage(obj, type = 'all') {
    switch (type) {
        case 'request':
            return BasicValidation.validateExperimentStatusChangedMessageRequest(obj);
        case 'response':
            return BasicValidation.validateExperimentStatusChangedMessageResponse(obj);
        default:
            return BasicValidation.validateExperimentStatusChangedMessage(obj);
    }
}
export function isLoggingMessage(obj, type = 'all') {
    switch (type) {
        case 'request':
            return BasicValidation.validateLoggingMessageRequest(obj);
        case 'response':
            return BasicValidation.validateLoggingMessageResponse(obj);
        default:
            return BasicValidation.validateLoggingMessage(obj);
    }
}
export function isPeerconnection(obj, type = 'all') {
    switch (type) {
        case 'request':
            return BasicValidation.validatePeerconnectionRequest(obj);
        case 'response':
            return BasicValidation.validatePeerconnectionResponse(obj);
        default:
            return BasicValidation.validatePeerconnection(obj);
    }
}
export function isPeerconnectionClosedEventCallback(obj, type = 'all') {
    switch (type) {
        case 'request':
            return BasicValidation.validatePeerconnectionClosedEventCallbackRequest(obj);
        case 'response':
            return BasicValidation.validatePeerconnectionClosedEventCallbackResponse(obj);
        default:
            return BasicValidation.validatePeerconnectionClosedEventCallback(obj);
    }
}
export function isPeerconnectionStatusChangedEventCallback(obj, type = 'all') {
    switch (type) {
        case 'request':
            return BasicValidation.validatePeerconnectionStatusChangedEventCallbackRequest(obj);
        case 'response':
            return BasicValidation.validatePeerconnectionStatusChangedEventCallbackResponse(obj);
        default:
            return BasicValidation.validatePeerconnectionStatusChangedEventCallback(obj);
    }
}
//# sourceMappingURL=types.js.map