# This file is auto-generated by oagen. Do not edit.

"""Enumeration of radar standalone response control values."""

from __future__ import annotations

from enum import Enum
from typing import Optional
from typing import Literal, TypeAlias


class RadarStandaloneResponseControl(str, Enum):
    """Known values for RadarStandaloneResponseControl."""

    BOT_DETECTION = "bot_detection"
    BRUTE_FORCE_ATTACK = "brute_force_attack"
    IMPOSSIBLE_TRAVEL = "impossible_travel"
    REPEAT_SIGN_UP = "repeat_sign_up"
    STALE_ACCOUNT = "stale_account"
    UNRECOGNIZED_DEVICE = "unrecognized_device"
    RESTRICTION = "restriction"

    @classmethod
    def _missing_(cls, value: object) -> Optional["RadarStandaloneResponseControl"]:
        if not isinstance(value, str):
            return None
        unknown = str.__new__(cls, value)
        unknown._name_ = value.upper()
        unknown._value_ = value
        return unknown


RadarStandaloneResponseControlLiteral: TypeAlias = Literal[
    "bot_detection",
    "brute_force_attack",
    "impossible_travel",
    "repeat_sign_up",
    "stale_account",
    "unrecognized_device",
    "restriction",
]
