mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-07-01 08:59:46 +02:00
feat: Enable telephony for OSS (#21)
* fix: fix tooltip bug * feat: add Twilio with CloudFlare configuration * chore: update Tella Video
This commit is contained in:
parent
d39a8111a6
commit
8e2e5c9327
21 changed files with 891 additions and 191 deletions
29
api/schemas/telephony_config.py
Normal file
29
api/schemas/telephony_config.py
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue