/* 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 SyncOutgoingTriggerModeEnum = {
    None: "none",
    Immediate: "immediate",
    DeferredEnd: "deferred_end",
    UnknownDefaultOpenApi: "11184809",
} as const;
export type SyncOutgoingTriggerModeEnum =
    (typeof SyncOutgoingTriggerModeEnum)[keyof typeof SyncOutgoingTriggerModeEnum];

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

export function SyncOutgoingTriggerModeEnumFromJSON(json: any): SyncOutgoingTriggerModeEnum {
    return SyncOutgoingTriggerModeEnumFromJSONTyped(json, false);
}

export function SyncOutgoingTriggerModeEnumFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): SyncOutgoingTriggerModeEnum {
    return json as SyncOutgoingTriggerModeEnum;
}

export function SyncOutgoingTriggerModeEnumToJSON(value?: SyncOutgoingTriggerModeEnum | null): any {
    return value as any;
}

export function SyncOutgoingTriggerModeEnumToJSONTyped(
    value: any,
    ignoreDiscriminator: boolean,
): SyncOutgoingTriggerModeEnum {
    return value as SyncOutgoingTriggerModeEnum;
}
