# 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


class ConversationSlaAppliedByWorkflowSlaDefinition(UncheckedBaseModel):
    """
    Target times configured for the SLA (in seconds)
    """

    first_reply_time: typing.Optional[int] = pydantic.Field(default=None)
    """
    First response time target in seconds
    """

    next_reply_time: typing.Optional[int] = pydantic.Field(default=None)
    """
    Next reply time target in seconds
    """

    resolution_time: typing.Optional[int] = pydantic.Field(default=None)
    """
    Resolution time target in seconds
    """

    time_to_close: typing.Optional[int] = pydantic.Field(default=None)
    """
    Time to close target in seconds
    """

    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
