/* 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 EventActions = {
    Login: "login",
    LoginFailed: "login_failed",
    Logout: "logout",
    UserWrite: "user_write",
    SuspiciousRequest: "suspicious_request",
    PasswordSet: "password_set",
    SecretView: "secret_view",
    SecretRotate: "secret_rotate",
    InvitationUsed: "invitation_used",
    AuthorizeApplication: "authorize_application",
    SourceLinked: "source_linked",
    ImpersonationStarted: "impersonation_started",
    ImpersonationEnded: "impersonation_ended",
    FlowExecution: "flow_execution",
    PolicyExecution: "policy_execution",
    PolicyException: "policy_exception",
    PropertyMappingException: "property_mapping_exception",
    SystemTaskExecution: "system_task_execution",
    SystemTaskException: "system_task_exception",
    SystemException: "system_exception",
    ConfigurationError: "configuration_error",
    ConfigurationWarning: "configuration_warning",
    ModelCreated: "model_created",
    ModelUpdated: "model_updated",
    ModelDeleted: "model_deleted",
    EmailSent: "email_sent",
    UpdateAvailable: "update_available",
    ExportReady: "export_ready",
    ReviewInitiated: "review_initiated",
    ReviewOverdue: "review_overdue",
    ReviewAttested: "review_attested",
    ReviewCompleted: "review_completed",
    Custom: "custom_",
    UnknownDefaultOpenApi: "11184809",
} as const;
export type EventActions = (typeof EventActions)[keyof typeof EventActions];

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

export function EventActionsFromJSON(json: any): EventActions {
    return EventActionsFromJSONTyped(json, false);
}

export function EventActionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): EventActions {
    return json as EventActions;
}

export function EventActionsToJSON(value?: EventActions | null): any {
    return value as any;
}

export function EventActionsToJSONTyped(value: any, ignoreDiscriminator: boolean): EventActions {
    return value as EventActions;
}
