"""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 postivo_client.utils import FieldMetadata, PathParamMetadata
from typing import Union
from typing_extensions import Annotated, TypeAliasType, TypedDict


class GetGroupByIDRequestTypedDict(TypedDict):
    id: int
    r"""Group id to fetch"""


class GetGroupByIDRequest(BaseModel):
    id: Annotated[
        int, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
    ]
    r"""Group id to fetch"""


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


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