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

from __future__ import annotations
from .directorymemberupdate import DirectoryMemberUpdate, DirectoryMemberUpdateTypedDict
from syllable_sdk.types import BaseModel
from syllable_sdk.utils import FieldMetadata, PathParamMetadata, RequestMetadata
from typing_extensions import Annotated, TypedDict


class DirectoryMemberUpdateRequestTypedDict(TypedDict):
    member_id: int
    directory_member_update: DirectoryMemberUpdateTypedDict


class DirectoryMemberUpdateRequest(BaseModel):
    member_id: Annotated[
        int, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
    ]

    directory_member_update: Annotated[
        DirectoryMemberUpdate,
        FieldMetadata(request=RequestMetadata(media_type="application/json")),
    ]
