# 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 ConversationCallInfo(UncheckedBaseModel):
    """
    Phone call metadata. `null` for non-phone call conversations.
    """

    from_phone_number: str = pydantic.Field()
    """
    Caller phone number in E.164 format.
    """

    to_phone_number: str = pydantic.Field()
    """
    Callee phone number in E.164 format.
    """

    twilio_call_sid: typing.Optional[str] = pydantic.Field(default=None)
    """
    Twilio Call SID. Only present for user SIP trunking calls.
    """

    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
