from pydantic import BaseModel
from typing import Optional


class TelefoniCallLinkUpdate(BaseModel):
    sag_id: Optional[int] = None
    kontakt_id: Optional[int] = None


class TelefoniUserMappingUpdate(BaseModel):
    telefoni_extension: Optional[str] = None
    telefoni_aktiv: Optional[bool] = None
    telefoni_phone_ip: Optional[str] = None
    telefoni_phone_username: Optional[str] = None
    telefoni_phone_password: Optional[str] = None


class TelefoniClickToCallRequest(BaseModel):
    number: str
    extension: Optional[str] = None
    user_id: Optional[int] = None


class SmsSendRequest(BaseModel):
    to: str
    message: str
    sender: Optional[str] = None
    contact_id: Optional[int] = None
