# 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 .briefing_agent_config import BriefingAgentConfig
from .briefing_content_config import BriefingContentConfig
from .briefing_schedule import BriefingSchedule
from .briefing_thresholds import BriefingThresholds


class BriefingConfigUpdate(UncheckedBaseModel):
    """
    Input model for updating a briefing config.
    """

    name: typing.Optional[str] = None
    schedule: typing.Optional[BriefingSchedule] = None
    recipients: typing.Optional[typing.List[str]] = None
    content_config: typing.Optional[BriefingContentConfig] = None
    thresholds: typing.Optional[BriefingThresholds] = None
    agent_config: typing.Optional[BriefingAgentConfig] = None
    is_active: typing.Optional[bool] = 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
