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

from __future__ import annotations
from .errorresponse import ErrorResponse, ErrorResponseTypedDict
from .groupresponse import GroupResponse, GroupResponseTypedDict
from postivo_client.types import BaseModel
from typing import Dict, List, Union
from typing_extensions import TypeAliasType, TypedDict


AddGroupResponseResultTypedDict = TypeAliasType(
    "AddGroupResponseResultTypedDict",
    Union[GroupResponseTypedDict, ErrorResponseTypedDict],
)


AddGroupResponseResult = TypeAliasType(
    "AddGroupResponseResult", Union[GroupResponse, ErrorResponse]
)


class AddGroupResponseTypedDict(TypedDict):
    headers: Dict[str, List[str]]
    result: AddGroupResponseResultTypedDict


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

    result: AddGroupResponseResult
