// authentik
//
// Making authentication simple.
//
// The version of the OpenAPI document: 2026.5.0-rc1
// Contact: hello@goauthentik.io
// Generated by: https://openapi-generator.tech

use serde::{Deserialize, Serialize};

use crate::models;

/// NativeLogoutChallenge : Challenge for native browser logout
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct NativeLogoutChallenge {
    #[serde(rename = "flow_info", skip_serializing_if = "Option::is_none")]
    pub flow_info: Option<models::ContextualFlowInfo>,
    #[serde(rename = "component", skip_serializing_if = "Option::is_none")]
    pub component: Option<String>,
    #[serde(rename = "response_errors", skip_serializing_if = "Option::is_none")]
    pub response_errors: Option<std::collections::HashMap<String, Vec<models::ErrorDetail>>>,
    #[serde(rename = "provider_name", skip_serializing_if = "Option::is_none")]
    pub provider_name: Option<String>,
    #[serde(rename = "is_complete", skip_serializing_if = "Option::is_none")]
    pub is_complete: Option<bool>,
    #[serde(rename = "post_url", skip_serializing_if = "Option::is_none")]
    pub post_url: Option<String>,
    #[serde(rename = "redirect_url", skip_serializing_if = "Option::is_none")]
    pub redirect_url: Option<String>,
    #[serde(rename = "saml_binding", skip_serializing_if = "Option::is_none")]
    pub saml_binding: Option<models::SamlBindingsEnum>,
    #[serde(rename = "saml_request", skip_serializing_if = "Option::is_none")]
    pub saml_request: Option<String>,
    #[serde(rename = "saml_response", skip_serializing_if = "Option::is_none")]
    pub saml_response: Option<String>,
    #[serde(rename = "saml_relay_state", skip_serializing_if = "Option::is_none")]
    pub saml_relay_state: Option<String>,
}

impl NativeLogoutChallenge {
    /// Challenge for native browser logout
    pub fn new() -> NativeLogoutChallenge {
        NativeLogoutChallenge {
            flow_info: None,
            component: None,
            response_errors: None,
            provider_name: None,
            is_complete: None,
            post_url: None,
            redirect_url: None,
            saml_binding: None,
            saml_request: None,
            saml_response: None,
            saml_relay_state: None,
        }
    }
}
