/* 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.
 */

import { mapValues } from '../runtime';
/**
 * Brand Serializer
 * @export
 * @interface BrandRequest
 */
export interface BrandRequest {
    /**
     * Domain that activates this brand. Can be a superset, i.e. `a.b` for `aa.b` and `ba.b`
     * @type {string}
     * @memberof BrandRequest
     */
    domain: string;
    /**
     * 
     * @type {boolean}
     * @memberof BrandRequest
     */
    _default?: boolean;
    /**
     * 
     * @type {string}
     * @memberof BrandRequest
     */
    brandingTitle?: string;
    /**
     * 
     * @type {string}
     * @memberof BrandRequest
     */
    brandingLogo?: string;
    /**
     * 
     * @type {string}
     * @memberof BrandRequest
     */
    brandingFavicon?: string;
    /**
     * 
     * @type {string}
     * @memberof BrandRequest
     */
    brandingCustomCss?: string;
    /**
     * 
     * @type {string}
     * @memberof BrandRequest
     */
    brandingDefaultFlowBackground?: string;
    /**
     * 
     * @type {string}
     * @memberof BrandRequest
     */
    flowAuthentication?: string | null;
    /**
     * 
     * @type {string}
     * @memberof BrandRequest
     */
    flowInvalidation?: string | null;
    /**
     * 
     * @type {string}
     * @memberof BrandRequest
     */
    flowRecovery?: string | null;
    /**
     * 
     * @type {string}
     * @memberof BrandRequest
     */
    flowUnenrollment?: string | null;
    /**
     * 
     * @type {string}
     * @memberof BrandRequest
     */
    flowUserSettings?: string | null;
    /**
     * 
     * @type {string}
     * @memberof BrandRequest
     */
    flowDeviceCode?: string | null;
    /**
     * When set, external users will be redirected to this application after authenticating.
     * @type {string}
     * @memberof BrandRequest
     */
    defaultApplication?: string | null;
    /**
     * Web Certificate used by the authentik Core webserver.
     * @type {string}
     * @memberof BrandRequest
     */
    webCertificate?: string | null;
    /**
     * Certificates used for client authentication.
     * @type {Array<string>}
     * @memberof BrandRequest
     */
    clientCertificates?: Array<string>;
    /**
     * 
     * @type {{ [key: string]: any; }}
     * @memberof BrandRequest
     */
    attributes?: { [key: string]: any; };
}

/**
 * Check if a given object implements the BrandRequest interface.
 */
export function instanceOfBrandRequest(value: object): value is BrandRequest {
    if (!('domain' in value) || value['domain'] === undefined) return false;
    return true;
}

export function BrandRequestFromJSON(json: any): BrandRequest {
    return BrandRequestFromJSONTyped(json, false);
}

export function BrandRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrandRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'domain': json['domain'],
        '_default': json['default'] == null ? undefined : json['default'],
        'brandingTitle': json['branding_title'] == null ? undefined : json['branding_title'],
        'brandingLogo': json['branding_logo'] == null ? undefined : json['branding_logo'],
        'brandingFavicon': json['branding_favicon'] == null ? undefined : json['branding_favicon'],
        'brandingCustomCss': json['branding_custom_css'] == null ? undefined : json['branding_custom_css'],
        'brandingDefaultFlowBackground': json['branding_default_flow_background'] == null ? undefined : json['branding_default_flow_background'],
        'flowAuthentication': json['flow_authentication'] == null ? undefined : json['flow_authentication'],
        'flowInvalidation': json['flow_invalidation'] == null ? undefined : json['flow_invalidation'],
        'flowRecovery': json['flow_recovery'] == null ? undefined : json['flow_recovery'],
        'flowUnenrollment': json['flow_unenrollment'] == null ? undefined : json['flow_unenrollment'],
        'flowUserSettings': json['flow_user_settings'] == null ? undefined : json['flow_user_settings'],
        'flowDeviceCode': json['flow_device_code'] == null ? undefined : json['flow_device_code'],
        'defaultApplication': json['default_application'] == null ? undefined : json['default_application'],
        'webCertificate': json['web_certificate'] == null ? undefined : json['web_certificate'],
        'clientCertificates': json['client_certificates'] == null ? undefined : json['client_certificates'],
        'attributes': json['attributes'] == null ? undefined : json['attributes'],
    };
}

export function BrandRequestToJSON(json: any): BrandRequest {
    return BrandRequestToJSONTyped(json, false);
}

export function BrandRequestToJSONTyped(value?: BrandRequest | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {
        
        'domain': value['domain'],
        'default': value['_default'],
        'branding_title': value['brandingTitle'],
        'branding_logo': value['brandingLogo'],
        'branding_favicon': value['brandingFavicon'],
        'branding_custom_css': value['brandingCustomCss'],
        'branding_default_flow_background': value['brandingDefaultFlowBackground'],
        'flow_authentication': value['flowAuthentication'],
        'flow_invalidation': value['flowInvalidation'],
        'flow_recovery': value['flowRecovery'],
        'flow_unenrollment': value['flowUnenrollment'],
        'flow_user_settings': value['flowUserSettings'],
        'flow_device_code': value['flowDeviceCode'],
        'default_application': value['defaultApplication'],
        'web_certificate': value['webCertificate'],
        'client_certificates': value['clientCertificates'],
        'attributes': value['attributes'],
    };
}

