/* 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 LicenseStatusEnum = {
    Unlicensed: "unlicensed",
    Valid: "valid",
    Expired: "expired",
    ExpirySoon: "expiry_soon",
    LimitExceededAdmin: "limit_exceeded_admin",
    LimitExceededUser: "limit_exceeded_user",
    ReadOnly: "read_only",
    UnknownDefaultOpenApi: "11184809",
} as const;
export type LicenseStatusEnum = (typeof LicenseStatusEnum)[keyof typeof LicenseStatusEnum];

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

export function LicenseStatusEnumFromJSON(json: any): LicenseStatusEnum {
    return LicenseStatusEnumFromJSONTyped(json, false);
}

export function LicenseStatusEnumFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): LicenseStatusEnum {
    return json as LicenseStatusEnum;
}

export function LicenseStatusEnumToJSON(value?: LicenseStatusEnum | null): any {
    return value as any;
}

export function LicenseStatusEnumToJSONTyped(
    value: any,
    ignoreDiscriminator: boolean,
): LicenseStatusEnum {
    return value as LicenseStatusEnum;
}
