"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

from __future__ import annotations

from typing import Annotated, Optional

from typing_extensions import NotRequired, TypedDict

from friendli.core.types import BaseModel
from friendli.core.utils import FieldMetadata, SecurityMetadata


class SecurityTypedDict(TypedDict):
    token: NotRequired[str]


class Security(BaseModel):
    token: Annotated[
        Optional[str],
        FieldMetadata(
            security=SecurityMetadata(
                scheme=True,
                scheme_type="http",
                sub_type="bearer",
                field_name="Authorization",
            ),
        ),
    ] = None
