mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-07 07:55:16 +02:00
feat: added vobiz telephony (#65)
* feat: added vobiz telephony * chore: run formatter * chore: add migration * Add tsclient --------- Co-authored-by: Abhishek Kumar <abhishek@a6k.me>
This commit is contained in:
parent
749a0c557f
commit
09897cb5d8
16 changed files with 994 additions and 19 deletions
|
|
@ -47,8 +47,31 @@ class VonageConfigurationResponse(BaseModel):
|
|||
from_numbers: List[str]
|
||||
|
||||
|
||||
class VobizConfigurationRequest(BaseModel):
|
||||
"""Request schema for Vobiz configuration."""
|
||||
|
||||
provider: str = Field(default="vobiz")
|
||||
auth_id: str = Field(..., description="Vobiz Account ID (e.g., MA_SYQRLN1K)")
|
||||
auth_token: str = Field(..., description="Vobiz Auth Token")
|
||||
from_numbers: List[str] = Field(
|
||||
...,
|
||||
min_length=1,
|
||||
description="List of Vobiz phone numbers (E.164 without + prefix)",
|
||||
)
|
||||
|
||||
|
||||
class VobizConfigurationResponse(BaseModel):
|
||||
"""Response schema for Vobiz configuration with masked sensitive fields."""
|
||||
|
||||
provider: str
|
||||
auth_id: str # Masked (e.g., "****************L1NK")
|
||||
auth_token: str # Masked (e.g., "****************KEFO")
|
||||
from_numbers: List[str]
|
||||
|
||||
|
||||
class TelephonyConfigurationResponse(BaseModel):
|
||||
"""Top-level telephony configuration response."""
|
||||
|
||||
twilio: Optional[TwilioConfigurationResponse] = None
|
||||
vonage: Optional[VonageConfigurationResponse] = None
|
||||
vobiz: Optional[VobizConfigurationResponse] = None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue