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

"""Enumeration of data integration access token response error values."""

from __future__ import annotations

from enum import Enum
from typing import Literal, TypeAlias


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

    NOT_INSTALLED = "not_installed"
    NEEDS_REAUTHORIZATION = "needs_reauthorization"

    @classmethod
    def _missing_(cls, value: object) -> DataIntegrationAccessTokenResponseError | None:
        if not isinstance(value, str):
            return None
        unknown = str.__new__(cls, value)
        unknown._name_ = value.upper()
        unknown._value_ = value
        return unknown


DataIntegrationAccessTokenResponseErrorLiteral: TypeAlias = Literal[
    "not_installed", "needs_reauthorization"
]
