/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.5.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.
 */

/**
 *
 * @export
 */
export const CapabilitiesEnum = {
    CanSaveMedia: "can_save_media",
    CanSaveReports: "can_save_reports",
    CanGeoIp: "can_geo_ip",
    CanAsn: "can_asn",
    CanImpersonate: "can_impersonate",
    CanDebug: "can_debug",
    IsEnterprise: "is_enterprise",
    UnknownDefaultOpenApi: "11184809",
} as const;
export type CapabilitiesEnum = (typeof CapabilitiesEnum)[keyof typeof CapabilitiesEnum];

export function instanceOfCapabilitiesEnum(value: any): boolean {
    for (const key in CapabilitiesEnum) {
        if (Object.prototype.hasOwnProperty.call(CapabilitiesEnum, key)) {
            if (CapabilitiesEnum[key as keyof typeof CapabilitiesEnum] === value) {
                return true;
            }
        }
    }
    return false;
}

export function CapabilitiesEnumFromJSON(json: any): CapabilitiesEnum {
    return CapabilitiesEnumFromJSONTyped(json, false);
}

export function CapabilitiesEnumFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): CapabilitiesEnum {
    return json as CapabilitiesEnum;
}

export function CapabilitiesEnumToJSON(value?: CapabilitiesEnum | null): any {
    return value as any;
}

export function CapabilitiesEnumToJSONTyped(
    value: any,
    ignoreDiscriminator: boolean,
): CapabilitiesEnum {
    return value as CapabilitiesEnum;
}
