"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.instanceOfPatchedAuthenticatorValidateStageRequest = instanceOfPatchedAuthenticatorValidateStageRequest;
exports.PatchedAuthenticatorValidateStageRequestFromJSON = PatchedAuthenticatorValidateStageRequestFromJSON;
exports.PatchedAuthenticatorValidateStageRequestFromJSONTyped = PatchedAuthenticatorValidateStageRequestFromJSONTyped;
exports.PatchedAuthenticatorValidateStageRequestToJSON = PatchedAuthenticatorValidateStageRequestToJSON;
exports.PatchedAuthenticatorValidateStageRequestToJSONTyped = PatchedAuthenticatorValidateStageRequestToJSONTyped;
const UserVerificationEnum_1 = require("./UserVerificationEnum");
const NotConfiguredActionEnum_1 = require("./NotConfiguredActionEnum");
const DeviceClassesEnum_1 = require("./DeviceClassesEnum");
/**
 * Check if a given object implements the PatchedAuthenticatorValidateStageRequest interface.
 */
function instanceOfPatchedAuthenticatorValidateStageRequest(value) {
    return true;
}
function PatchedAuthenticatorValidateStageRequestFromJSON(json) {
    return PatchedAuthenticatorValidateStageRequestFromJSONTyped(json, false);
}
function PatchedAuthenticatorValidateStageRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'] == null ? undefined : json['name'],
        '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'],
    };
}
function PatchedAuthenticatorValidateStageRequestToJSON(json) {
    return PatchedAuthenticatorValidateStageRequestToJSONTyped(json, false);
}
function PatchedAuthenticatorValidateStageRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        '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=PatchedAuthenticatorValidateStageRequest.js.map