"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2025.10.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.instanceOfAuthenticatorValidateStageRequest = instanceOfAuthenticatorValidateStageRequest;
exports.AuthenticatorValidateStageRequestFromJSON = AuthenticatorValidateStageRequestFromJSON;
exports.AuthenticatorValidateStageRequestFromJSONTyped = AuthenticatorValidateStageRequestFromJSONTyped;
exports.AuthenticatorValidateStageRequestToJSON = AuthenticatorValidateStageRequestToJSON;
exports.AuthenticatorValidateStageRequestToJSONTyped = AuthenticatorValidateStageRequestToJSONTyped;
const UserVerificationEnum_1 = require("./UserVerificationEnum");
const NotConfiguredActionEnum_1 = require("./NotConfiguredActionEnum");
const FlowSetRequest_1 = require("./FlowSetRequest");
const DeviceClassesEnum_1 = require("./DeviceClassesEnum");
/**
 * Check if a given object implements the AuthenticatorValidateStageRequest interface.
 */
function instanceOfAuthenticatorValidateStageRequest(value) {
    if (!('name' in value) || value['name'] === undefined)
        return false;
    return true;
}
function AuthenticatorValidateStageRequestFromJSON(json) {
    return AuthenticatorValidateStageRequestFromJSONTyped(json, false);
}
function AuthenticatorValidateStageRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'name': json['name'],
        'flowSet': json['flow_set'] == null ? undefined : (json['flow_set'].map(FlowSetRequest_1.FlowSetRequestFromJSON)),
        '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 AuthenticatorValidateStageRequestToJSON(json) {
    return AuthenticatorValidateStageRequestToJSONTyped(json, false);
}
function AuthenticatorValidateStageRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
        'flow_set': value['flowSet'] == null ? undefined : (value['flowSet'].map(FlowSetRequest_1.FlowSetRequestToJSON)),
        '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=AuthenticatorValidateStageRequest.js.map