from pydantic import BaseModel
from typing import Optional

class PhoneNumberBase(BaseModel):
    agent_id: int
    inbound_agent_id: str
    nickname: str
    inbound_webhook_url: str

class PhoneNumberCreate(PhoneNumberBase):
    pass


class PhoneNumberResponse(BaseModel):
    id: int
    agent_id: int
    phone_number: str
    phone_number_type: str
    phone_number_pretty: str
    nickname: str
    inbound_agent_id: str
    inbound_agent_version: str
    area_code: int
    inbound_webhook_url: str
    last_modification_timestamp: int
    toll_free: bool
    country_code: str
    custom_sms_enabled: bool

    class Config:
        orm_mode = True
