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

import datetime as dt
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 BriefingConfig(UncheckedBaseModel):
    """
    A briefing configuration.
    """

    id: str
    organization_id: str
    name: str
    schedule: BriefingSchedule
    recipients: typing.List[str]
    content_config: BriefingContentConfig
    thresholds: BriefingThresholds
    agent_config: BriefingAgentConfig
    is_active: typing.Optional[bool] = None
    created_by: typing.Optional[str] = None
    created_at: dt.datetime
    updated_at: dt.datetime

    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
