# Generated by oapi-gen. DO NOT EDIT.
from __future__ import annotations

from dataclasses import dataclass
from typing import Protocol


@dataclass(frozen=True, slots=True)
class DeviceSecurity:
    "Deprecated security scheme.\n\nOAuth2 metadata: https://example.com/.well-known/oauth-authorization-server"

    token: str
    scopes: tuple[str, ...]


class SecurityRejected(Exception):
    """Signal that one security alternative was not accepted."""


class SecurityHandler(Protocol):
    async def handle_device(
        self, context: object | None, operation_id: str, credential: DeviceSecurity
    ) -> object | None: ...
