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

from __future__ import annotations
from .thread import Thread, ThreadTypedDict
from attio.types import BaseModel
from attio.utils import FieldMetadata, PathParamMetadata
from typing import Literal
from typing_extensions import Annotated, TypedDict


class GetV2ThreadsThreadIDRequestTypedDict(TypedDict):
    thread_id: str


class GetV2ThreadsThreadIDRequest(BaseModel):
    thread_id: Annotated[
        str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
    ]


GetV2ThreadsThreadIDType = Literal["invalid_request_error",]


GetV2ThreadsThreadIDCode = Literal["not_found",]


class GetV2ThreadsThreadIDResponseTypedDict(TypedDict):
    r"""Success"""

    data: ThreadTypedDict


class GetV2ThreadsThreadIDResponse(BaseModel):
    r"""Success"""

    data: Thread
