# 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 .click_up_space import ClickUpSpace


class ClickUpDataInput(UniversalBaseModel):
    """
    Complete ClickUp sandbox data structure.

    Nested hierarchy for initialization:
    - Spaces contain Folders and Lists (folderless)
    - Folders contain Lists
    - Lists contain Tasks
    - Tasks contain Comments
    """

    spaces: typing.Optional[typing.List[ClickUpSpace]] = pydantic.Field(default=None)
    """
    List of spaces with nested objects
    """

    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
