From 324ddfb3379e93b937669b6fe951c5fca17a9fa7 Mon Sep 17 00:00:00 2001 From: 650elx Date: Wed, 13 Mar 2024 23:58:49 +0100 Subject: [PATCH] feat(Voice): rename model --- sinch/domains/voice/models/svaml/actions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sinch/domains/voice/models/svaml/actions.py b/sinch/domains/voice/models/svaml/actions.py index 0f163b2..e055008 100644 --- a/sinch/domains/voice/models/svaml/actions.py +++ b/sinch/domains/voice/models/svaml/actions.py @@ -8,7 +8,7 @@ class AnsweringMachineDetection(TypedDict): enabled: bool -class CallHeaders(TypedDict): +class CallHeader(TypedDict): key: str value: str @@ -54,7 +54,7 @@ def as_dict(self): class ConnectMxpAction(SinchRequestBaseModel): name: str = "connectMxp" destination: Optional[Destination] = None - call_headers: Optional[List[CallHeaders]] = None + call_headers: Optional[List[CallHeader]] = None def as_dict(self): payload = super().as_dict() @@ -90,7 +90,7 @@ class ConnectSipAction(SinchRequestBaseModel): cli: Optional[str] = None transport: Optional[str] = None suppress_callbacks: Optional[bool] = None - call_headers: Optional[List[CallHeaders]] = None + call_headers: Optional[List[CallHeader]] = None moh: Optional[str] = None def as_dict(self):