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

"""Enumeration of radar list type values."""

from __future__ import annotations

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


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

    IP_ADDRESS = "ip_address"
    DOMAIN = "domain"
    EMAIL = "email"
    DEVICE = "device"
    USER_AGENT = "user_agent"
    DEVICE_FINGERPRINT = "device_fingerprint"
    COUNTRY = "country"

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


RadarListTypeLiteral: TypeAlias = Literal[
    "ip_address",
    "domain",
    "email",
    "device",
    "user_agent",
    "device_fingerprint",
    "country",
]
