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

import typing

import pydantic
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel


class SlackBotAuth(UniversalBaseModel):
    type: typing.Literal["slack-bot"] = pydantic.Field(default="slack-bot")
    """
    +value=auth/slack-bot
    """

    bot_token: str = pydantic.Field()
    """
    +label=Bot Token
    +usage=The bot token for the slack bot to send messages to the channels. This bot should have the following permissions: chat:write, chat:write.public
    +sort=100
    """

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

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