2424 AsyncStreamsResourceWithStreamingResponse ,
2525)
2626from ....._types import Body , Omit , Query , Headers , NotGiven , omit , not_given
27- from ....._utils import path_template , maybe_transform , async_maybe_transform
27+ from ....._utils import is_given , path_template , maybe_transform , async_maybe_transform
2828from .recordings import (
2929 RecordingsResource ,
3030 AsyncRecordingsResource ,
@@ -225,6 +225,20 @@ def update(
225225 cast_to = CallUpdateResponse ,
226226 )
227227
228+ @overload
229+ def calls (
230+ self ,
231+ account_sid : str ,
232+ * ,
233+ params : object ,
234+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
235+ # The extra values given here take precedence over values defined on the client or passed to this method.
236+ extra_headers : Headers | None = None ,
237+ extra_query : Query | None = None ,
238+ extra_body : Body | None = None ,
239+ timeout : float | httpx .Timeout | None | NotGiven = not_given ,
240+ ) -> CallCallsResponse : ...
241+
228242 @overload
229243 def calls (
230244 self ,
@@ -239,6 +253,9 @@ def calls(
239253 cancel_playback_on_detect_message_end : bool | Omit = omit ,
240254 cancel_playback_on_machine_detection : bool | Omit = omit ,
241255 custom_headers : Iterable [call_calls_params .WithURLCustomHeader ] | Omit = omit ,
256+ deepfake_detection : Literal ["Enable" ] | Omit = omit ,
257+ deepfake_detection_sensitivity : Literal ["Low" , "Medium" , "High" ] | Omit = omit ,
258+ deepfake_detection_use_case : str | Omit = omit ,
242259 detection_mode : Literal ["Premium" , "Regular" ] | Omit = omit ,
243260 fallback_url : str | Omit = omit ,
244261 from_ : str | Omit = omit ,
@@ -419,6 +436,9 @@ def calls(
419436 cancel_playback_on_detect_message_end : bool | Omit = omit ,
420437 cancel_playback_on_machine_detection : bool | Omit = omit ,
421438 custom_headers : Iterable [call_calls_params .WithTeXmlCustomHeader ] | Omit = omit ,
439+ deepfake_detection : Literal ["Enable" ] | Omit = omit ,
440+ deepfake_detection_sensitivity : Literal ["Low" , "Medium" , "High" ] | Omit = omit ,
441+ deepfake_detection_use_case : str | Omit = omit ,
422442 detection_mode : Literal ["Premium" , "Regular" ] | Omit = omit ,
423443 fallback_url : str | Omit = omit ,
424444 from_ : str | Omit = omit ,
@@ -599,6 +619,9 @@ def calls(
599619 cancel_playback_on_detect_message_end : bool | Omit = omit ,
600620 cancel_playback_on_machine_detection : bool | Omit = omit ,
601621 custom_headers : Iterable [call_calls_params .ApplicationDefaultCustomHeader ] | Omit = omit ,
622+ deepfake_detection : Literal ["Enable" ] | Omit = omit ,
623+ deepfake_detection_sensitivity : Literal ["Low" , "Medium" , "High" ] | Omit = omit ,
624+ deepfake_detection_use_case : str | Omit = omit ,
602625 detection_mode : Literal ["Premium" , "Regular" ] | Omit = omit ,
603626 fallback_url : str | Omit = omit ,
604627 from_ : str | Omit = omit ,
@@ -768,6 +791,7 @@ def calls(
768791 self ,
769792 account_sid : str ,
770793 * ,
794+ params : object | Omit = omit ,
771795 url : str | Optional [str ] | Omit = omit ,
772796 application_sid : str | Omit = omit ,
773797 async_amd : bool | Omit = omit ,
@@ -780,6 +804,9 @@ def calls(
780804 | Iterable [call_calls_params .WithTeXmlCustomHeader ]
781805 | Iterable [call_calls_params .ApplicationDefaultCustomHeader ]
782806 | Omit = omit ,
807+ deepfake_detection : Literal ["Enable" ] | Omit = omit ,
808+ deepfake_detection_sensitivity : Literal ["Low" , "Medium" , "High" ] | Omit = omit ,
809+ deepfake_detection_use_case : str | Omit = omit ,
783810 detection_mode : Literal ["Premium" , "Regular" ] | Omit = omit ,
784811 fallback_url : str | Omit = omit ,
785812 from_ : str | Omit = omit ,
@@ -824,7 +851,9 @@ def calls(
824851 return self ._post (
825852 path_template ("/texml/Accounts/{account_sid}/Calls" , account_sid = account_sid ),
826853 body = maybe_transform (
827- {
854+ params
855+ if is_given (params )
856+ else {
828857 "url" : url ,
829858 "application_sid" : application_sid ,
830859 "async_amd" : async_amd ,
@@ -834,6 +863,9 @@ def calls(
834863 "cancel_playback_on_detect_message_end" : cancel_playback_on_detect_message_end ,
835864 "cancel_playback_on_machine_detection" : cancel_playback_on_machine_detection ,
836865 "custom_headers" : custom_headers ,
866+ "deepfake_detection" : deepfake_detection ,
867+ "deepfake_detection_sensitivity" : deepfake_detection_sensitivity ,
868+ "deepfake_detection_use_case" : deepfake_detection_use_case ,
837869 "detection_mode" : detection_mode ,
838870 "fallback_url" : fallback_url ,
839871 "from_" : from_ ,
@@ -1288,6 +1320,20 @@ async def update(
12881320 cast_to = CallUpdateResponse ,
12891321 )
12901322
1323+ @overload
1324+ async def calls (
1325+ self ,
1326+ account_sid : str ,
1327+ * ,
1328+ params : object ,
1329+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
1330+ # The extra values given here take precedence over values defined on the client or passed to this method.
1331+ extra_headers : Headers | None = None ,
1332+ extra_query : Query | None = None ,
1333+ extra_body : Body | None = None ,
1334+ timeout : float | httpx .Timeout | None | NotGiven = not_given ,
1335+ ) -> CallCallsResponse : ...
1336+
12911337 @overload
12921338 async def calls (
12931339 self ,
@@ -1302,6 +1348,9 @@ async def calls(
13021348 cancel_playback_on_detect_message_end : bool | Omit = omit ,
13031349 cancel_playback_on_machine_detection : bool | Omit = omit ,
13041350 custom_headers : Iterable [call_calls_params .WithURLCustomHeader ] | Omit = omit ,
1351+ deepfake_detection : Literal ["Enable" ] | Omit = omit ,
1352+ deepfake_detection_sensitivity : Literal ["Low" , "Medium" , "High" ] | Omit = omit ,
1353+ deepfake_detection_use_case : str | Omit = omit ,
13051354 detection_mode : Literal ["Premium" , "Regular" ] | Omit = omit ,
13061355 fallback_url : str | Omit = omit ,
13071356 from_ : str | Omit = omit ,
@@ -1482,6 +1531,9 @@ async def calls(
14821531 cancel_playback_on_detect_message_end : bool | Omit = omit ,
14831532 cancel_playback_on_machine_detection : bool | Omit = omit ,
14841533 custom_headers : Iterable [call_calls_params .WithTeXmlCustomHeader ] | Omit = omit ,
1534+ deepfake_detection : Literal ["Enable" ] | Omit = omit ,
1535+ deepfake_detection_sensitivity : Literal ["Low" , "Medium" , "High" ] | Omit = omit ,
1536+ deepfake_detection_use_case : str | Omit = omit ,
14851537 detection_mode : Literal ["Premium" , "Regular" ] | Omit = omit ,
14861538 fallback_url : str | Omit = omit ,
14871539 from_ : str | Omit = omit ,
@@ -1662,6 +1714,9 @@ async def calls(
16621714 cancel_playback_on_detect_message_end : bool | Omit = omit ,
16631715 cancel_playback_on_machine_detection : bool | Omit = omit ,
16641716 custom_headers : Iterable [call_calls_params .ApplicationDefaultCustomHeader ] | Omit = omit ,
1717+ deepfake_detection : Literal ["Enable" ] | Omit = omit ,
1718+ deepfake_detection_sensitivity : Literal ["Low" , "Medium" , "High" ] | Omit = omit ,
1719+ deepfake_detection_use_case : str | Omit = omit ,
16651720 detection_mode : Literal ["Premium" , "Regular" ] | Omit = omit ,
16661721 fallback_url : str | Omit = omit ,
16671722 from_ : str | Omit = omit ,
@@ -1831,6 +1886,7 @@ async def calls(
18311886 self ,
18321887 account_sid : str ,
18331888 * ,
1889+ params : object | Omit = omit ,
18341890 url : str | Optional [str ] | Omit = omit ,
18351891 application_sid : str | Omit = omit ,
18361892 async_amd : bool | Omit = omit ,
@@ -1843,6 +1899,9 @@ async def calls(
18431899 | Iterable [call_calls_params .WithTeXmlCustomHeader ]
18441900 | Iterable [call_calls_params .ApplicationDefaultCustomHeader ]
18451901 | Omit = omit ,
1902+ deepfake_detection : Literal ["Enable" ] | Omit = omit ,
1903+ deepfake_detection_sensitivity : Literal ["Low" , "Medium" , "High" ] | Omit = omit ,
1904+ deepfake_detection_use_case : str | Omit = omit ,
18461905 detection_mode : Literal ["Premium" , "Regular" ] | Omit = omit ,
18471906 fallback_url : str | Omit = omit ,
18481907 from_ : str | Omit = omit ,
@@ -1887,7 +1946,9 @@ async def calls(
18871946 return await self ._post (
18881947 path_template ("/texml/Accounts/{account_sid}/Calls" , account_sid = account_sid ),
18891948 body = await async_maybe_transform (
1890- {
1949+ params
1950+ if is_given (params )
1951+ else {
18911952 "url" : url ,
18921953 "application_sid" : application_sid ,
18931954 "async_amd" : async_amd ,
@@ -1897,6 +1958,9 @@ async def calls(
18971958 "cancel_playback_on_detect_message_end" : cancel_playback_on_detect_message_end ,
18981959 "cancel_playback_on_machine_detection" : cancel_playback_on_machine_detection ,
18991960 "custom_headers" : custom_headers ,
1961+ "deepfake_detection" : deepfake_detection ,
1962+ "deepfake_detection_sensitivity" : deepfake_detection_sensitivity ,
1963+ "deepfake_detection_use_case" : deepfake_detection_use_case ,
19001964 "detection_mode" : detection_mode ,
19011965 "fallback_url" : fallback_url ,
19021966 "from_" : from_ ,
0 commit comments