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

from __future__ import annotations
from .v3_extensions_webhooks_webhook import (
    V3ExtensionsWebhooksWebhook,
    V3ExtensionsWebhooksWebhookTypedDict,
)
from .v3_extensions_webhooks_webhookresponse import (
    V3ExtensionsWebhooksWebhookResponse,
    V3ExtensionsWebhooksWebhookResponseTypedDict,
)
import pydantic
from squadcast.types import BaseModel
from squadcast.utils import FieldMetadata, PathParamMetadata, RequestMetadata
from typing_extensions import Annotated, TypedDict


class WebhooksUpdateWebhookRequestTypedDict(TypedDict):
    event_webhook_id: str
    v3_extensions_webhooks_webhook: V3ExtensionsWebhooksWebhookTypedDict


class WebhooksUpdateWebhookRequest(BaseModel):
    event_webhook_id: Annotated[
        str,
        pydantic.Field(alias="eventWebhookID"),
        FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
    ]

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


class WebhooksUpdateWebhookResponseTypedDict(TypedDict):
    r"""The request has succeeded."""

    data: V3ExtensionsWebhooksWebhookResponseTypedDict


class WebhooksUpdateWebhookResponse(BaseModel):
    r"""The request has succeeded."""

    data: V3ExtensionsWebhooksWebhookResponse
