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

from __future__ import annotations
from .object import Object, ObjectTypedDict
from attio.types import BaseModel
from attio.utils import FieldMetadata, PathParamMetadata
from typing import Literal
from typing_extensions import Annotated, TypedDict


class GetV2ObjectsObjectRequestTypedDict(TypedDict):
    object: str


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


GetV2ObjectsObjectType = Literal["invalid_request_error",]


GetV2ObjectsObjectCode = Literal["not_found",]


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

    data: ObjectTypedDict


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

    data: Object
