Skip to content

Commit

Permalink
feat(Voice): Literal type for domain arg
Browse files Browse the repository at this point in the history
  • Loading branch information
650elx committed Mar 13, 2024
1 parent 7d8fb98 commit 6afa46f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sinch/domains/voice/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import List
from typing import List, Literal
from sinch.domains.voice.endpoints.callouts.callout import CalloutEndpoint
from sinch.domains.voice.endpoints.calls.get_call import GetCallEndpoint
from sinch.domains.voice.endpoints.calls.update_call import UpdateCallEndpoint
Expand Down Expand Up @@ -73,7 +73,7 @@ def text_to_speech(
destination: Destination,
cli: str = None,
dtmf: str = None,
domain: str = None,
domain: Literal["pstn", "mxp"] = None,
custom: str = None,
locale: str = None,
text: str = None,
Expand Down Expand Up @@ -117,7 +117,7 @@ def conference(
greeting: str = None,
moh_class: str = None,
custom: str = None,
domain: str = None
domain: Literal["pstn", "mxp"] = None,
) -> VoiceCalloutResponse:
return self._sinch.configuration.transport.request(
CalloutEndpoint(
Expand Down Expand Up @@ -238,7 +238,7 @@ def call(
greeting: str = None,
moh_class: str = None,
custom: str = None,
domain: str = None
domain: Literal["pstn", "mxp"] = None,
) -> VoiceCalloutResponse:
return self._sinch.voice.callouts.conference(
destination=destination,
Expand Down

0 comments on commit 6afa46f

Please sign in to comment.