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

import typing

import pydantic
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
from .monday_board import MondayBoard
from .monday_workspace import MondayWorkspace


class MondayDataInput(UniversalBaseModel):
    """
    Complete Monday.com sandbox data structure.

    Relational structure for initialization:
    - Workspaces (optional, can be created separately)
    - Boards contain Groups
    - Groups contain Items
    - Items contain Updates and Subitems

    All objects support DELETE operations.
    """

    workspaces: typing.Optional[typing.List[MondayWorkspace]] = pydantic.Field(default=None)
    """
    List of workspaces
    """

    boards: typing.Optional[typing.List[MondayBoard]] = pydantic.Field(default=None)
    """
    List of boards with their groups and items
    """

    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
