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

from __future__ import annotations
from .errorresponse import ErrorResponse, ErrorResponseTypedDict
from postivo_client.types import BaseModel
from postivo_client.utils import FieldMetadata, PathParamMetadata
from typing import Dict, List
from typing_extensions import Annotated, TypedDict


class AddContactByExtIDToGroupRequestTypedDict(TypedDict):
    ext_id: str
    r"""External (custom) ID of the contact to add to the group."""
    group_id: int
    r"""Group `id` to associate with the contact."""


class AddContactByExtIDToGroupRequest(BaseModel):
    ext_id: Annotated[
        str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
    ]
    r"""External (custom) ID of the contact to add to the group."""

    group_id: Annotated[
        int, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
    ]
    r"""Group `id` to associate with the contact."""


class AddContactByExtIDToGroupResponseTypedDict(TypedDict):
    headers: Dict[str, List[str]]
    result: ErrorResponseTypedDict


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

    result: ErrorResponse
