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

from __future__ import annotations
from .contactresponse import ContactResponse, ContactResponseTypedDict
from .errorresponse import ErrorResponse, ErrorResponseTypedDict
from postivo_client.types import BaseModel
from postivo_client.utils import FieldMetadata, PathParamMetadata
from typing import Union
from typing_extensions import Annotated, TypeAliasType, TypedDict


class GetContactByIDRequestTypedDict(TypedDict):
    id: int
    r"""Global contact `id` to fetch."""


class GetContactByIDRequest(BaseModel):
    id: Annotated[
        int, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
    ]
    r"""Global contact `id` to fetch."""


GetContactByIDResponseTypedDict = TypeAliasType(
    "GetContactByIDResponseTypedDict",
    Union[ErrorResponseTypedDict, ContactResponseTypedDict],
)


GetContactByIDResponse = TypeAliasType(
    "GetContactByIDResponse", Union[ErrorResponse, ContactResponse]
)
