# 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 .conversation_sla_target_missed_sla_states_value_status import ConversationSlaTargetMissedSlaStatesValueStatus


class ConversationSlaTargetMissedSlaStatesValue(UncheckedBaseModel):
    status: typing.Optional[ConversationSlaTargetMissedSlaStatesValueStatus] = pydantic.Field(default=None)
    """
    Status of this specific target
    """

    seconds_remaining: typing.Optional[int] = pydantic.Field(default=None)
    """
    Time remaining for active/paused targets (null for hit/missed)
    """

    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
