"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2025.12.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.instanceOfAuthenticatorValidateStage = instanceOfAuthenticatorValidateStage;
exports.AuthenticatorValidateStageFromJSON = AuthenticatorValidateStageFromJSON;
exports.AuthenticatorValidateStageFromJSONTyped = AuthenticatorValidateStageFromJSONTyped;
exports.AuthenticatorValidateStageToJSON = AuthenticatorValidateStageToJSON;
exports.AuthenticatorValidateStageToJSONTyped = AuthenticatorValidateStageToJSONTyped;
const WebAuthnDeviceType_1 = require("./WebAuthnDeviceType");
const UserVerificationEnum_1 = require("./UserVerificationEnum");
const NotConfiguredActionEnum_1 = require("./NotConfiguredActionEnum");
const FlowSet_1 = require("./FlowSet");
const DeviceClassesEnum_1 = require("./DeviceClassesEnum");
/**
 * Check if a given object implements the AuthenticatorValidateStage interface.
 */
function instanceOfAuthenticatorValidateStage(value) {
    if (!('pk' in value) || value['pk'] === undefined)
        return false;
    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;
    if (!('webauthnAllowedDeviceTypesObj' in value) || value['webauthnAllowedDeviceTypesObj'] === undefined)
        return false;
    return true;
}
function AuthenticatorValidateStageFromJSON(json) {
    return AuthenticatorValidateStageFromJSONTyped(json, false);
}
function AuthenticatorValidateStageFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'pk': json['pk'],
        'name': json['name'],
        'component': json['component'],
        'verboseName': json['verbose_name'],
        'verboseNamePlural': json['verbose_name_plural'],
        'metaModelName': json['meta_model_name'],
        'flowSet': json['flow_set'] == null ? undefined : (json['flow_set'].map(FlowSet_1.FlowSetFromJSON)),
        'notConfiguredAction': json['not_configured_action'] == null ? undefined : (0, NotConfiguredActionEnum_1.NotConfiguredActionEnumFromJSON)(json['not_configured_action']),
        'deviceClasses': json['device_classes'] == null ? undefined : (json['device_classes'].map(DeviceClassesEnum_1.DeviceClassesEnumFromJSON)),
        'configurationStages': json['configuration_stages'] == null ? undefined : json['configuration_stages'],
        'lastAuthThreshold': json['last_auth_threshold'] == null ? undefined : json['last_auth_threshold'],
        'webauthnUserVerification': json['webauthn_user_verification'] == null ? undefined : (0, UserVerificationEnum_1.UserVerificationEnumFromJSON)(json['webauthn_user_verification']),
        'webauthnAllowedDeviceTypes': json['webauthn_allowed_device_types'] == null ? undefined : json['webauthn_allowed_device_types'],
        'webauthnAllowedDeviceTypesObj': (json['webauthn_allowed_device_types_obj'].map(WebAuthnDeviceType_1.WebAuthnDeviceTypeFromJSON)),
    };
}
function AuthenticatorValidateStageToJSON(json) {
    return AuthenticatorValidateStageToJSONTyped(json, false);
}
function AuthenticatorValidateStageToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'flow_set': value['flowSet'] == null ? undefined : (value['flowSet'].map(FlowSet_1.FlowSetToJSON)),
        'not_configured_action': (0, NotConfiguredActionEnum_1.NotConfiguredActionEnumToJSON)(value['notConfiguredAction']),
        'device_classes': value['deviceClasses'] == null ? undefined : (value['deviceClasses'].map(DeviceClassesEnum_1.DeviceClassesEnumToJSON)),
        'configuration_stages': value['configurationStages'],
        'last_auth_threshold': value['lastAuthThreshold'],
        'webauthn_user_verification': (0, UserVerificationEnum_1.UserVerificationEnumToJSON)(value['webauthnUserVerification']),
        'webauthn_allowed_device_types': value['webauthnAllowedDeviceTypes'],
    };
}
//# sourceMappingURL=AuthenticatorValidateStage.js.map