"""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 typing import Dict, List, Union
from typing_extensions import TypeAliasType, TypedDict


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


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


class AddContactResponseTypedDict(TypedDict):
    headers: Dict[str, List[str]]
    result: AddContactResponseResultTypedDict


class AddContactResponse(BaseModel):
    headers: Dict[str, List[str]]

    result: AddContactResponseResult
