/* tslint:disable */
/* eslint-disable */
/**
 * Synapse REST API
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: v1
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
/**
 * @export
 */
export const OAuthErrorResponseErrorCodeEnum = {
    PASSWORD_RESET_VIA_EMAIL_REQUIRED: 'PASSWORD_RESET_VIA_EMAIL_REQUIRED',
    USER_CERTIFICATION_REQUIRED: 'USER_CERTIFICATION_REQUIRED',
    INVALID_TABLE_QUERY_FACET_COLUMN_REQUEST: 'INVALID_TABLE_QUERY_FACET_COLUMN_REQUEST',
    OAUTH_CLIENT_NOT_VERIFIED: 'OAUTH_CLIENT_NOT_VERIFIED',
    TWO_FA_REQUIRED: 'TWO_FA_REQUIRED',
    UNSUPPORTED_WEBHOOK_DOMAIN: 'UNSUPPORTED_WEBHOOK_DOMAIN',
    PROJECT_STORAGE_LIMIT_EXCEEDED: 'PROJECT_STORAGE_LIMIT_EXCEEDED',
    TWO_FA_ENABLED_REQUIRED: 'TWO_FA_ENABLED_REQUIRED'
};
/**
 * Check if a given object implements the OAuthErrorResponse interface.
 */
export function instanceOfOAuthErrorResponse(value) {
    return true;
}
export function OAuthErrorResponseFromJSON(json) {
    return OAuthErrorResponseFromJSONTyped(json, false);
}
export function OAuthErrorResponseFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'error': json['error'] == null ? undefined : json['error'],
        'error_description': json['error_description'] == null ? undefined : json['error_description'],
        'errorCode': json['errorCode'] == null ? undefined : json['errorCode'],
        'reason': json['reason'] == null ? undefined : json['reason'],
    };
}
export function OAuthErrorResponseToJSON(json) {
    return OAuthErrorResponseToJSONTyped(json, false);
}
export function OAuthErrorResponseToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'error': value['error'],
        'error_description': value['error_description'],
        'errorCode': value['errorCode'],
        'reason': value['reason'],
    };
}
//# sourceMappingURL=OAuthErrorResponse.js.map