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

from __future__ import annotations
from .errorresponse import ErrorResponse, ErrorResponseTypedDict
from .senderdetails import SenderDetails, SenderDetailsTypedDict
from postivo_client.types import BaseModel
from typing import Dict, List, Union
from typing_extensions import TypeAliasType, TypedDict


AddSenderResponseResultTypedDict = TypeAliasType(
    "AddSenderResponseResultTypedDict",
    Union[SenderDetailsTypedDict, ErrorResponseTypedDict],
)


AddSenderResponseResult = TypeAliasType(
    "AddSenderResponseResult", Union[SenderDetails, ErrorResponse]
)


class AddSenderResponseTypedDict(TypedDict):
    headers: Dict[str, List[str]]
    result: AddSenderResponseResultTypedDict


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

    result: AddSenderResponseResult
