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

import typing

import pydantic
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel


class AgentPhoneEntry(UniversalBaseModel):
    """
    A phone number contact entry for the RCS agent's contact information.
    """

    number: str = pydantic.Field()
    """
    Phone number in E.164 format (e.g., `+14155550123`).
    """

    label: str = pydantic.Field()
    """
    Display label for the phone number (e.g., "Support", "Sales").
    """

    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
