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

from __future__ import annotations
from moovio_sdk.models.components import (
    updatewebhook as components_updatewebhook,
    webhook as components_webhook,
)
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 UpdateWebhookRequestTypedDict(TypedDict):
    webhook_id: str
    update_webhook: components_updatewebhook.UpdateWebhookTypedDict


class UpdateWebhookRequest(BaseModel):
    webhook_id: Annotated[
        str,
        pydantic.Field(alias="webhookID"),
        FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
    ]

    update_webhook: Annotated[
        components_updatewebhook.UpdateWebhook,
        FieldMetadata(request=RequestMetadata(media_type="application/json")),
    ]


class UpdateWebhookResponseTypedDict(TypedDict):
    headers: Dict[str, List[str]]
    result: components_webhook.WebhookTypedDict


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

    result: components_webhook.Webhook
