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

import typing

import pydantic
import typing_extensions
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
from ..core.serialization import FieldMetadata
from .hos_drivers_eld_event_object_response_body_driver_activation_status import (
    HosDriversEldEventObjectResponseBodyDriverActivationStatus,
)
from .hos_eld_event_object_response_body import HosEldEventObjectResponseBody


class HosDriversEldEventObjectResponseBody(UniversalBaseModel):
    driver_activation_status: typing_extensions.Annotated[
        HosDriversEldEventObjectResponseBodyDriverActivationStatus,
        FieldMetadata(alias="driverActivationStatus"),
        pydantic.Field(
            alias="driverActivationStatus",
            description="A value indicating whether the driver is active or deactivated.  Valid values: `active`, `deactivated`",
        ),
    ]
    eld_events: typing_extensions.Annotated[
        typing.List[HosEldEventObjectResponseBody],
        FieldMetadata(alias="eldEvents"),
        pydantic.Field(alias="eldEvents", description="List of ELD event objects."),
    ]
    external_ids: typing_extensions.Annotated[
        typing.Optional[typing.Dict[str, str]],
        FieldMetadata(alias="externalIds"),
        pydantic.Field(alias="externalIds", description="A map of external ids"),
    ] = None
    id: str = pydantic.Field()
    """
    ID of the driver.
    """

    name: str = pydantic.Field()
    """
    Name of the driver.
    """

    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
