Skip to content

Commit

Permalink
feat(Voice): SVAML WiP
Browse files Browse the repository at this point in the history
  • Loading branch information
650elx committed Mar 12, 2024
1 parent cd91ca4 commit 082d2ba
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions sinch/domains/voice/models/svaml/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,32 @@ def as_dict(self):
return payload


@dataclass
class Option(SinchRequestBaseModel):
dtmf: str
action: str


@dataclass
class MenuOption(SinchRequestBaseModel):
id: str
main_prompt: Optional[str] = None
repeat_prompt: Optional[str] = None
repeats: Optional[int] = None
max_digits: Optional[int] = None
timeout_mills: Optional[int] = None
max_timeout_mills: Optional[int] = None
options: Optional[List[Option]] = None


@dataclass
class ConnectSipAction(SinchRequestBaseModel):
destination: Optional[Destination]
name: str = "connectSip"
max_duration: Optional[int] = None
cli: Optional[str] = None
transport: Optional[str] = None
suppressCallbacks: Optional[bool] = None
suppress_callbacks: Optional[bool] = None
call_headers: Optional[List[CallHeaders]] = None
moh: Optional[str] = None

Expand Down Expand Up @@ -102,13 +120,13 @@ class RunMenuAction(SinchRequestBaseModel):
locale: Optional[str] = None
main_menu: Optional[str] = None
enable_voice: Optional[bool] = None
menus: Optional[dict] = None
menus: Optional[List[MenuOption]] = None


@dataclass
class ParkAction(SinchRequestBaseModel):
name: str = "park"
locale: Optional[str] = None
introPrompt: Optional[str] = None
intro_prompt: Optional[str] = None
holdPrompt: Optional[str] = None
maxDuration: Optional[int] = None

0 comments on commit 082d2ba

Please sign in to comment.