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

from __future__ import annotations
from .v3_services_extensions_slackextensionresponse import (
    V3ServicesExtensionsSlackExtensionResponse,
    V3ServicesExtensionsSlackExtensionResponseTypedDict,
)
from .v3_services_extensions_updateslackextensionrequest import (
    V3ServicesExtensionsUpdateSlackExtensionRequest,
    V3ServicesExtensionsUpdateSlackExtensionRequestTypedDict,
)
import pydantic
from squadcast.types import BaseModel
from squadcast.utils import FieldMetadata, PathParamMetadata, RequestMetadata
from typing_extensions import Annotated, TypedDict


class ExtensionsUpdateSlackExtensionRequestTypedDict(TypedDict):
    service_id: str
    v3_services_extensions_update_slack_extension_request: (
        V3ServicesExtensionsUpdateSlackExtensionRequestTypedDict
    )


class ExtensionsUpdateSlackExtensionRequest(BaseModel):
    service_id: Annotated[
        str,
        pydantic.Field(alias="serviceID"),
        FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
    ]

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


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

    data: V3ServicesExtensionsSlackExtensionResponseTypedDict


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

    data: V3ServicesExtensionsSlackExtensionResponse
