"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.instanceOfAgentConnector = instanceOfAgentConnector;
exports.AgentConnectorFromJSON = AgentConnectorFromJSON;
exports.AgentConnectorFromJSONTyped = AgentConnectorFromJSONTyped;
exports.AgentConnectorToJSON = AgentConnectorToJSON;
exports.AgentConnectorToJSONTyped = AgentConnectorToJSONTyped;
/**
 * Check if a given object implements the AgentConnector interface.
 */
function instanceOfAgentConnector(value) {
    if (!('name' in value) || value['name'] === undefined)
        return false;
    if (!('component' in value) || value['component'] === undefined)
        return false;
    if (!('verboseName' in value) || value['verboseName'] === undefined)
        return false;
    if (!('verboseNamePlural' in value) || value['verboseNamePlural'] === undefined)
        return false;
    if (!('metaModelName' in value) || value['metaModelName'] === undefined)
        return false;
    return true;
}
function AgentConnectorFromJSON(json) {
    return AgentConnectorFromJSONTyped(json, false);
}
function AgentConnectorFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'connectorUuid': json['connector_uuid'] == null ? undefined : json['connector_uuid'],
        'name': json['name'],
        'enabled': json['enabled'] == null ? undefined : json['enabled'],
        'component': json['component'],
        'verboseName': json['verbose_name'],
        'verboseNamePlural': json['verbose_name_plural'],
        'metaModelName': json['meta_model_name'],
        'snapshotExpiry': json['snapshot_expiry'] == null ? undefined : json['snapshot_expiry'],
        'authSessionDuration': json['auth_session_duration'] == null ? undefined : json['auth_session_duration'],
        'authTerminateSessionOnExpiry': json['auth_terminate_session_on_expiry'] == null ? undefined : json['auth_terminate_session_on_expiry'],
        'refreshInterval': json['refresh_interval'] == null ? undefined : json['refresh_interval'],
        'authorizationFlow': json['authorization_flow'] == null ? undefined : json['authorization_flow'],
        'nssUidOffset': json['nss_uid_offset'] == null ? undefined : json['nss_uid_offset'],
        'nssGidOffset': json['nss_gid_offset'] == null ? undefined : json['nss_gid_offset'],
        'challengeKey': json['challenge_key'] == null ? undefined : json['challenge_key'],
        'challengeIdleTimeout': json['challenge_idle_timeout'] == null ? undefined : json['challenge_idle_timeout'],
        'challengeTriggerCheckIn': json['challenge_trigger_check_in'] == null ? undefined : json['challenge_trigger_check_in'],
        'jwtFederationProviders': json['jwt_federation_providers'] == null ? undefined : json['jwt_federation_providers'],
    };
}
function AgentConnectorToJSON(json) {
    return AgentConnectorToJSONTyped(json, false);
}
function AgentConnectorToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'connector_uuid': value['connectorUuid'],
        'name': value['name'],
        'enabled': value['enabled'],
        'snapshot_expiry': value['snapshotExpiry'],
        'auth_session_duration': value['authSessionDuration'],
        'auth_terminate_session_on_expiry': value['authTerminateSessionOnExpiry'],
        'refresh_interval': value['refreshInterval'],
        'authorization_flow': value['authorizationFlow'],
        'nss_uid_offset': value['nssUidOffset'],
        'nss_gid_offset': value['nssGidOffset'],
        'challenge_key': value['challengeKey'],
        'challenge_idle_timeout': value['challengeIdleTimeout'],
        'challenge_trigger_check_in': value['challengeTriggerCheckIn'],
        'jwt_federation_providers': value['jwtFederationProviders'],
    };
}
//# sourceMappingURL=AgentConnector.js.map