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

from __future__ import annotations
from moovio_sdk.models.components import (
    representative as components_representative,
    updaterepresentative as components_updaterepresentative,
)
from moovio_sdk.types import BaseModel
from moovio_sdk.utils import FieldMetadata, PathParamMetadata, RequestMetadata
import pydantic
from typing import Dict, List
from typing_extensions import Annotated, TypedDict


class UpdateRepresentativeRequestTypedDict(TypedDict):
    account_id: str
    r"""ID of the account."""
    representative_id: str
    r"""ID of the representative."""
    update_representative: components_updaterepresentative.UpdateRepresentativeTypedDict


class UpdateRepresentativeRequest(BaseModel):
    account_id: Annotated[
        str,
        pydantic.Field(alias="accountID"),
        FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
    ]
    r"""ID of the account."""

    representative_id: Annotated[
        str,
        pydantic.Field(alias="representativeID"),
        FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
    ]
    r"""ID of the representative."""

    update_representative: Annotated[
        components_updaterepresentative.UpdateRepresentative,
        FieldMetadata(request=RequestMetadata(media_type="application/json")),
    ]


class UpdateRepresentativeResponseTypedDict(TypedDict):
    headers: Dict[str, List[str]]
    result: components_representative.RepresentativeTypedDict


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

    result: components_representative.Representative
