mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-07 07:55:16 +02:00
* fix: fix tooltip bug * feat: add Twilio with CloudFlare configuration * chore: update Tella Video
29 lines
912 B
Python
29 lines
912 B
Python
from typing import List
|
|
|
|
from pydantic import BaseModel, Field
|
|
|
|
|
|
class TwilioConfigurationRequest(BaseModel):
|
|
"""Request schema for Twilio configuration."""
|
|
|
|
provider: str = Field(default="twilio")
|
|
account_sid: str = Field(..., description="Twilio Account SID")
|
|
auth_token: str = Field(..., description="Twilio Auth Token")
|
|
from_numbers: List[str] = Field(
|
|
..., min_length=1, description="List of Twilio phone numbers"
|
|
)
|
|
|
|
|
|
class TwilioConfigurationResponse(BaseModel):
|
|
"""Response schema for Twilio configuration with masked sensitive fields."""
|
|
|
|
provider: str
|
|
account_sid: str # Masked (e.g., "****************def0")
|
|
auth_token: str # Masked (e.g., "****************abc1")
|
|
from_numbers: List[str]
|
|
|
|
|
|
class TelephonyConfigurationResponse(BaseModel):
|
|
"""Top-level telephony configuration response."""
|
|
|
|
twilio: TwilioConfigurationResponse | None = None
|