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

from __future__ import annotations
from .destination import Destination, DestinationTypedDict
from .destinationupdate import DestinationUpdate, DestinationUpdateTypedDict
from outpost_sdk.types import BaseModel
from outpost_sdk.utils import FieldMetadata, PathParamMetadata, RequestMetadata
from typing_extensions import Annotated, TypedDict


class UpdateTenantDestinationRequestTypedDict(TypedDict):
    tenant_id: str
    r"""The ID of the tenant. Required when using AdminApiKey authentication."""
    destination_id: str
    r"""The ID of the destination."""
    body: DestinationUpdateTypedDict


class UpdateTenantDestinationRequest(BaseModel):
    tenant_id: Annotated[
        str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
    ]
    r"""The ID of the tenant. Required when using AdminApiKey authentication."""

    destination_id: Annotated[
        str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
    ]
    r"""The ID of the destination."""

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


UpdateTenantDestinationResponseTypedDict = DestinationTypedDict
r"""Destination updated successfully or OAuth redirect needed."""


UpdateTenantDestinationResponse = Destination
r"""Destination updated successfully or OAuth redirect needed."""
