"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.2-rc1
 * Contact: hello@goauthentik.io
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfProxyProviderRequest = instanceOfProxyProviderRequest;
exports.ProxyProviderRequestFromJSON = ProxyProviderRequestFromJSON;
exports.ProxyProviderRequestFromJSONTyped = ProxyProviderRequestFromJSONTyped;
exports.ProxyProviderRequestToJSON = ProxyProviderRequestToJSON;
exports.ProxyProviderRequestToJSONTyped = ProxyProviderRequestToJSONTyped;
const ProxyMode_1 = require("./ProxyMode");
/**
 * Check if a given object implements the ProxyProviderRequest interface.
 */
function instanceOfProxyProviderRequest(value) {
    if (!('name' in value) || value['name'] === undefined)
        return false;
    if (!('authorizationFlow' in value) || value['authorizationFlow'] === undefined)
        return false;
    if (!('invalidationFlow' in value) || value['invalidationFlow'] === undefined)
        return false;
    if (!('externalHost' in value) || value['externalHost'] === undefined)
        return false;
    return true;
}
function ProxyProviderRequestFromJSON(json) {
    return ProxyProviderRequestFromJSONTyped(json, false);
}
function ProxyProviderRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'],
        'authenticationFlow': json['authentication_flow'] == null ? undefined : json['authentication_flow'],
        'authorizationFlow': json['authorization_flow'],
        'invalidationFlow': json['invalidation_flow'],
        'propertyMappings': json['property_mappings'] == null ? undefined : json['property_mappings'],
        'internalHost': json['internal_host'] == null ? undefined : json['internal_host'],
        'externalHost': json['external_host'],
        'internalHostSslValidation': json['internal_host_ssl_validation'] == null ? undefined : json['internal_host_ssl_validation'],
        'certificate': json['certificate'] == null ? undefined : json['certificate'],
        'skipPathRegex': json['skip_path_regex'] == null ? undefined : json['skip_path_regex'],
        'basicAuthEnabled': json['basic_auth_enabled'] == null ? undefined : json['basic_auth_enabled'],
        'basicAuthPasswordAttribute': json['basic_auth_password_attribute'] == null ? undefined : json['basic_auth_password_attribute'],
        'basicAuthUserAttribute': json['basic_auth_user_attribute'] == null ? undefined : json['basic_auth_user_attribute'],
        'mode': json['mode'] == null ? undefined : (0, ProxyMode_1.ProxyModeFromJSON)(json['mode']),
        'interceptHeaderAuth': json['intercept_header_auth'] == null ? undefined : json['intercept_header_auth'],
        'cookieDomain': json['cookie_domain'] == null ? undefined : json['cookie_domain'],
        'jwtFederationSources': json['jwt_federation_sources'] == null ? undefined : json['jwt_federation_sources'],
        'jwtFederationProviders': json['jwt_federation_providers'] == null ? undefined : json['jwt_federation_providers'],
        'accessTokenValidity': json['access_token_validity'] == null ? undefined : json['access_token_validity'],
        'refreshTokenValidity': json['refresh_token_validity'] == null ? undefined : json['refresh_token_validity'],
    };
}
function ProxyProviderRequestToJSON(json) {
    return ProxyProviderRequestToJSONTyped(json, false);
}
function ProxyProviderRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'authentication_flow': value['authenticationFlow'],
        'authorization_flow': value['authorizationFlow'],
        'invalidation_flow': value['invalidationFlow'],
        'property_mappings': value['propertyMappings'],
        'internal_host': value['internalHost'],
        'external_host': value['externalHost'],
        'internal_host_ssl_validation': value['internalHostSslValidation'],
        'certificate': value['certificate'],
        'skip_path_regex': value['skipPathRegex'],
        'basic_auth_enabled': value['basicAuthEnabled'],
        'basic_auth_password_attribute': value['basicAuthPasswordAttribute'],
        'basic_auth_user_attribute': value['basicAuthUserAttribute'],
        'mode': (0, ProxyMode_1.ProxyModeToJSON)(value['mode']),
        'intercept_header_auth': value['interceptHeaderAuth'],
        'cookie_domain': value['cookieDomain'],
        'jwt_federation_sources': value['jwtFederationSources'],
        'jwt_federation_providers': value['jwtFederationProviders'],
        'access_token_validity': value['accessTokenValidity'],
        'refresh_token_validity': value['refreshTokenValidity'],
    };
}
//# sourceMappingURL=ProxyProviderRequest.js.map