# 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 CalendarSyncResponse(UniversalBaseModel):
    """
    Response schema for calendar sync operation.
    """

    synced_calendars: int
    new_events: int
    updated_events: int
    errors: typing.List[str]
    auto_join_scheduled: typing.Optional[int] = None
    auto_join_joined: typing.Optional[int] = 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
