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

from __future__ import annotations
import pydantic
from squadcast.types import BaseModel
from squadcast.utils import FieldMetadata, SecurityMetadata
from typing_extensions import Annotated, TypedDict


class SecurityTypedDict(TypedDict):
    refresh_token_auth: str
    r"""Squadcast refresh token used to obtain short-lived bearer tokens."""


class Security(BaseModel):
    refresh_token_auth: Annotated[
        str,
        pydantic.Field(alias="refreshToken"),
        FieldMetadata(
            security=SecurityMetadata(
                scheme=True,
                scheme_type="http",
                sub_type="custom",
                field_name="refreshToken",
            )
        ),
    ]
    r"""Squadcast refresh token used to obtain short-lived bearer tokens."""


try:
    Security.model_rebuild()
except NameError:
    pass
