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

from __future__ import annotations
from .task import Task, TaskTypedDict
from attio.types import BaseModel
from attio.utils import FieldMetadata, PathParamMetadata
from typing import Literal
from typing_extensions import Annotated, TypedDict


class GetV2TasksTaskIDRequestTypedDict(TypedDict):
    task_id: str


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


GetV2TasksTaskIDType = Literal["invalid_request_error",]


GetV2TasksTaskIDCode = Literal["not_found",]


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

    data: TaskTypedDict


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

    data: Task
