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

import typing

import pydantic
from ..core.pydantic_utilities import IS_PYDANTIC_V2
from ..core.unchecked_base_model import UncheckedBaseModel


class HiveActionRequest(UncheckedBaseModel):
    action: str
    room_id: typing.Optional[str] = None
    room_name: typing.Optional[str] = None
    description: typing.Optional[str] = None
    visibility: typing.Optional[str] = None
    settings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
    target_agent_id: typing.Optional[str] = None
    role: typing.Optional[str] = None
    events: typing.Optional[typing.List[str]] = None
    mentions: typing.Optional[typing.List[str]] = None
    attachments: typing.Optional[typing.List[typing.Dict[str, typing.Optional[typing.Any]]]] = None
    actions: typing.Optional[typing.List[typing.Dict[str, typing.Optional[typing.Any]]]] = None
    channel: typing.Optional[str] = None
    title: typing.Optional[str] = None
    content: typing.Optional[str] = None
    post_id: typing.Optional[str] = None
    comment_id: typing.Optional[str] = None
    direction: typing.Optional[str] = None
    limit: typing.Optional[int] = None
    sort: typing.Optional[str] = None
    agent_id: typing.Optional[str] = None

    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
