# This file was auto-generated by Fern from our API Definition.

from __future__ import annotations
from ...core.pydantic_utilities import UniversalBaseModel
import typing
import typing_extensions
from ...core.serialization import FieldMetadata
from ...core.pydantic_utilities import IS_PYDANTIC_V2
import pydantic
import uuid


class HumanConfirmationChannel_DirectMessage(UniversalBaseModel):
    type: typing.Literal["directMessage"] = "directMessage"
    channel_id: typing_extensions.Annotated[str, FieldMetadata(alias="channelId")]

    if IS_PYDANTIC_V2:
        model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True)  # type: ignore # Pydantic v2
    else:

        class Config:
            frozen = True
            smart_union = True
            extra = pydantic.Extra.allow


class HumanConfirmationChannel_SlackThread(UniversalBaseModel):
    type: typing.Literal["slackThread"] = "slackThread"
    channel_id: typing_extensions.Annotated[str, FieldMetadata(alias="channelId")]
    thread_timestamp: typing_extensions.Annotated[str, FieldMetadata(alias="threadTimestamp")]

    if IS_PYDANTIC_V2:
        model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True)  # type: ignore # Pydantic v2
    else:

        class Config:
            frozen = True
            smart_union = True
            extra = pydantic.Extra.allow


class HumanConfirmationChannel_Conversation(UniversalBaseModel):
    type: typing.Literal["conversation"] = "conversation"
    conversation_id: typing_extensions.Annotated[uuid.UUID, FieldMetadata(alias="conversationId")]

    if IS_PYDANTIC_V2:
        model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True)  # type: ignore # Pydantic v2
    else:

        class Config:
            frozen = True
            smart_union = True
            extra = pydantic.Extra.allow


HumanConfirmationChannel = typing.Union[
    HumanConfirmationChannel_DirectMessage, HumanConfirmationChannel_SlackThread, HumanConfirmationChannel_Conversation
]
