# 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 .carrier_launches import CarrierLaunches
from .rcs_agent_details import RcsAgentDetails


class RcsAgentResponse(UniversalBaseModel):
    """
    Response containing details of an RCS agent.
    """

    id: str = pydantic.Field()
    """
    The unique agent ID, prefixed with `agent_`.
    """

    type: typing.Literal["TEST"] = pydantic.Field(default="TEST")
    """
    The agent type.
    - `TEST` — A test agent for development and testing with whitelisted numbers only.
    """

    service_id: typing_extensions.Annotated[str, FieldMetadata(alias="serviceId")] = pydantic.Field()
    """
    The RCS service ID assigned to this agent.
    """

    carrier_launches: typing_extensions.Annotated[CarrierLaunches, FieldMetadata(alias="carrierLaunches")]
    details: RcsAgentDetails

    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
