"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.0-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.instanceOfProxyOutpostConfig = instanceOfProxyOutpostConfig;
exports.ProxyOutpostConfigFromJSON = ProxyOutpostConfigFromJSON;
exports.ProxyOutpostConfigFromJSONTyped = ProxyOutpostConfigFromJSONTyped;
exports.ProxyOutpostConfigToJSON = ProxyOutpostConfigToJSON;
exports.ProxyOutpostConfigToJSONTyped = ProxyOutpostConfigToJSONTyped;
const OpenIDConnectConfiguration_1 = require("./OpenIDConnectConfiguration");
const ProxyMode_1 = require("./ProxyMode");
/**
 * Check if a given object implements the ProxyOutpostConfig interface.
 */
function instanceOfProxyOutpostConfig(value) {
    if (!('pk' in value) || value['pk'] === undefined)
        return false;
    if (!('name' in value) || value['name'] === undefined)
        return false;
    if (!('externalHost' in value) || value['externalHost'] === undefined)
        return false;
    if (!('oidcConfiguration' in value) || value['oidcConfiguration'] === undefined)
        return false;
    if (!('accessTokenValidity' in value) || value['accessTokenValidity'] === undefined)
        return false;
    if (!('scopesToRequest' in value) || value['scopesToRequest'] === undefined)
        return false;
    if (!('assignedApplicationSlug' in value) || value['assignedApplicationSlug'] === undefined)
        return false;
    if (!('assignedApplicationName' in value) || value['assignedApplicationName'] === undefined)
        return false;
    return true;
}
function ProxyOutpostConfigFromJSON(json) {
    return ProxyOutpostConfigFromJSONTyped(json, false);
}
function ProxyOutpostConfigFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'pk': json['pk'],
        'name': json['name'],
        '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'],
        'clientId': json['client_id'] == null ? undefined : json['client_id'],
        'clientSecret': json['client_secret'] == null ? undefined : json['client_secret'],
        'oidcConfiguration': (0, OpenIDConnectConfiguration_1.OpenIDConnectConfigurationFromJSON)(json['oidc_configuration']),
        'cookieSecret': json['cookie_secret'] == null ? undefined : json['cookie_secret'],
        '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']),
        'cookieDomain': json['cookie_domain'] == null ? undefined : json['cookie_domain'],
        'accessTokenValidity': json['access_token_validity'],
        'interceptHeaderAuth': json['intercept_header_auth'] == null ? undefined : json['intercept_header_auth'],
        'scopesToRequest': json['scopes_to_request'],
        'assignedApplicationSlug': json['assigned_application_slug'],
        'assignedApplicationName': json['assigned_application_name'],
    };
}
function ProxyOutpostConfigToJSON(json) {
    return ProxyOutpostConfigToJSONTyped(json, false);
}
function ProxyOutpostConfigToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'internal_host': value['internalHost'],
        'external_host': value['externalHost'],
        'internal_host_ssl_validation': value['internalHostSslValidation'],
        'client_id': value['clientId'],
        'client_secret': value['clientSecret'],
        'cookie_secret': value['cookieSecret'],
        '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']),
        'cookie_domain': value['cookieDomain'],
        'intercept_header_auth': value['interceptHeaderAuth'],
    };
}
//# sourceMappingURL=ProxyOutpostConfig.js.map