/* 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 LicenseSummaryStatusEnum = {
    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 LicenseSummaryStatusEnum =
    (typeof LicenseSummaryStatusEnum)[keyof typeof LicenseSummaryStatusEnum];

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

export function LicenseSummaryStatusEnumFromJSON(json: any): LicenseSummaryStatusEnum {
    return LicenseSummaryStatusEnumFromJSONTyped(json, false);
}

export function LicenseSummaryStatusEnumFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): LicenseSummaryStatusEnum {
    return json as LicenseSummaryStatusEnum;
}

export function LicenseSummaryStatusEnumToJSON(value?: LicenseSummaryStatusEnum | null): any {
    return value as any;
}

export function LicenseSummaryStatusEnumToJSONTyped(
    value: any,
    ignoreDiscriminator: boolean,
): LicenseSummaryStatusEnum {
    return value as LicenseSummaryStatusEnum;
}
