# 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
from .data_filters_stats_response_user_filters_stats_item import DataFiltersStatsResponseUserFiltersStatsItem


class DataFiltersStatsResponseUserFilters(UncheckedBaseModel):
    """
    Data filter statistics by user and model
    """

    stats: typing.Optional[typing.List[DataFiltersStatsResponseUserFiltersStatsItem]] = pydantic.Field(default=None)
    """
    List of filter configurations for users and models
    """

    tasks_with_annotations: typing.Optional[typing.Dict[str, typing.Any]] = pydantic.Field(default=None)
    """
    Default filter tab for tasks with annotations
    """

    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
