Skip to content

Commit 63c8b79

Browse files
committed
[Librarian] Regenerated @ f65fb6491354c2afb05cb81a1442ab0880c883c1
1 parent 84972e5 commit 63c8b79

File tree

13 files changed

+81
-3
lines changed

13 files changed

+81
-3
lines changed

CHANGES.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@ twilio-python Changelog
33

44
Here you can see the full list of changes between each twilio-python release.
55

6+
[2022-10-05] Version 7.14.2
7+
---------------------------
8+
**Api**
9+
- Added `virtual-agent` to `usage_record` API.
10+
- Add AMD attributes to participant create request
11+
12+
**Twiml**
13+
- Add AMD attributes to `Number` and `Sip`
14+
15+
616
[2022-09-21] Version 7.14.1
717
---------------------------
818
**Library - Fix**

twilio/rest/api/v2010/account/conference/participant.py

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,14 @@ def create(self, from_, to, status_callback=values.unset,
5858
coaching=values.unset, call_sid_to_coach=values.unset,
5959
jitter_buffer_size=values.unset, byoc=values.unset,
6060
caller_id=values.unset, call_reason=values.unset,
61-
recording_track=values.unset, time_limit=values.unset):
61+
recording_track=values.unset, time_limit=values.unset,
62+
machine_detection=values.unset,
63+
machine_detection_timeout=values.unset,
64+
machine_detection_speech_threshold=values.unset,
65+
machine_detection_speech_end_threshold=values.unset,
66+
machine_detection_silence_timeout=values.unset,
67+
amd_status_callback=values.unset,
68+
amd_status_callback_method=values.unset):
6269
"""
6370
Create the ParticipantInstance
6471
@@ -101,6 +108,13 @@ def create(self, from_, to, status_callback=values.unset,
101108
:param unicode call_reason: Reason for the call (Branded Calls Beta)
102109
:param unicode recording_track: The track(s) to record
103110
:param unicode time_limit: The maximum duration of the call in seconds.
111+
:param unicode machine_detection: Enable machine detection or end of greeting detection
112+
:param unicode machine_detection_timeout: Number of seconds to wait for machine detection
113+
:param unicode machine_detection_speech_threshold: Number of milliseconds for measuring stick for the length of the speech activity
114+
:param unicode machine_detection_speech_end_threshold: Number of milliseconds of silence after speech activity
115+
:param unicode machine_detection_silence_timeout: Number of milliseconds of initial silence
116+
:param unicode amd_status_callback: The URL we should call to send amd status information to your application
117+
:param unicode amd_status_callback_method: HTTP Method to use with amd_status_callback
104118
105119
:returns: The created ParticipantInstance
106120
:rtype: twilio.rest.api.v2010.account.conference.participant.ParticipantInstance
@@ -145,6 +159,13 @@ def create(self, from_, to, status_callback=values.unset,
145159
'CallReason': call_reason,
146160
'RecordingTrack': recording_track,
147161
'TimeLimit': time_limit,
162+
'MachineDetection': machine_detection,
163+
'MachineDetectionTimeout': machine_detection_timeout,
164+
'MachineDetectionSpeechThreshold': machine_detection_speech_threshold,
165+
'MachineDetectionSpeechEndThreshold': machine_detection_speech_end_threshold,
166+
'MachineDetectionSilenceTimeout': machine_detection_silence_timeout,
167+
'AmdStatusCallback': amd_status_callback,
168+
'AmdStatusCallbackMethod': amd_status_callback_method,
148169
})
149170

150171
payload = self._version.create(method='POST', uri=self._uri, data=data, )

twilio/rest/api/v2010/account/usage/record/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,7 @@ class Category(object):
512512
VERIFY_TOTP = "verify-totp"
513513
VERIFY_WHATSAPP_CONVERSATIONS_BUSINESS_INITIATED = "verify-whatsapp-conversations-business-initiated"
514514
VIDEO_RECORDINGS = "video-recordings"
515+
VIRTUAL_AGENT = "virtual-agent"
515516
VOICE_INSIGHTS = "voice-insights"
516517
VOICE_INSIGHTS_CLIENT_INSIGHTS_ON_DEMAND_MINUTE = "voice-insights-client-insights-on-demand-minute"
517518
VOICE_INSIGHTS_PTSN_INSIGHTS_ON_DEMAND_MINUTE = "voice-insights-ptsn-insights-on-demand-minute"

twilio/rest/api/v2010/account/usage/record/all_time.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,7 @@ class Category(object):
398398
VERIFY_TOTP = "verify-totp"
399399
VERIFY_WHATSAPP_CONVERSATIONS_BUSINESS_INITIATED = "verify-whatsapp-conversations-business-initiated"
400400
VIDEO_RECORDINGS = "video-recordings"
401+
VIRTUAL_AGENT = "virtual-agent"
401402
VOICE_INSIGHTS = "voice-insights"
402403
VOICE_INSIGHTS_CLIENT_INSIGHTS_ON_DEMAND_MINUTE = "voice-insights-client-insights-on-demand-minute"
403404
VOICE_INSIGHTS_PTSN_INSIGHTS_ON_DEMAND_MINUTE = "voice-insights-ptsn-insights-on-demand-minute"

twilio/rest/api/v2010/account/usage/record/daily.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,7 @@ class Category(object):
398398
VERIFY_TOTP = "verify-totp"
399399
VERIFY_WHATSAPP_CONVERSATIONS_BUSINESS_INITIATED = "verify-whatsapp-conversations-business-initiated"
400400
VIDEO_RECORDINGS = "video-recordings"
401+
VIRTUAL_AGENT = "virtual-agent"
401402
VOICE_INSIGHTS = "voice-insights"
402403
VOICE_INSIGHTS_CLIENT_INSIGHTS_ON_DEMAND_MINUTE = "voice-insights-client-insights-on-demand-minute"
403404
VOICE_INSIGHTS_PTSN_INSIGHTS_ON_DEMAND_MINUTE = "voice-insights-ptsn-insights-on-demand-minute"

twilio/rest/api/v2010/account/usage/record/last_month.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,7 @@ class Category(object):
398398
VERIFY_TOTP = "verify-totp"
399399
VERIFY_WHATSAPP_CONVERSATIONS_BUSINESS_INITIATED = "verify-whatsapp-conversations-business-initiated"
400400
VIDEO_RECORDINGS = "video-recordings"
401+
VIRTUAL_AGENT = "virtual-agent"
401402
VOICE_INSIGHTS = "voice-insights"
402403
VOICE_INSIGHTS_CLIENT_INSIGHTS_ON_DEMAND_MINUTE = "voice-insights-client-insights-on-demand-minute"
403404
VOICE_INSIGHTS_PTSN_INSIGHTS_ON_DEMAND_MINUTE = "voice-insights-ptsn-insights-on-demand-minute"

twilio/rest/api/v2010/account/usage/record/monthly.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,7 @@ class Category(object):
398398
VERIFY_TOTP = "verify-totp"
399399
VERIFY_WHATSAPP_CONVERSATIONS_BUSINESS_INITIATED = "verify-whatsapp-conversations-business-initiated"
400400
VIDEO_RECORDINGS = "video-recordings"
401+
VIRTUAL_AGENT = "virtual-agent"
401402
VOICE_INSIGHTS = "voice-insights"
402403
VOICE_INSIGHTS_CLIENT_INSIGHTS_ON_DEMAND_MINUTE = "voice-insights-client-insights-on-demand-minute"
403404
VOICE_INSIGHTS_PTSN_INSIGHTS_ON_DEMAND_MINUTE = "voice-insights-ptsn-insights-on-demand-minute"

twilio/rest/api/v2010/account/usage/record/this_month.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,7 @@ class Category(object):
398398
VERIFY_TOTP = "verify-totp"
399399
VERIFY_WHATSAPP_CONVERSATIONS_BUSINESS_INITIATED = "verify-whatsapp-conversations-business-initiated"
400400
VIDEO_RECORDINGS = "video-recordings"
401+
VIRTUAL_AGENT = "virtual-agent"
401402
VOICE_INSIGHTS = "voice-insights"
402403
VOICE_INSIGHTS_CLIENT_INSIGHTS_ON_DEMAND_MINUTE = "voice-insights-client-insights-on-demand-minute"
403404
VOICE_INSIGHTS_PTSN_INSIGHTS_ON_DEMAND_MINUTE = "voice-insights-ptsn-insights-on-demand-minute"

twilio/rest/api/v2010/account/usage/record/today.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,7 @@ class Category(object):
398398
VERIFY_TOTP = "verify-totp"
399399
VERIFY_WHATSAPP_CONVERSATIONS_BUSINESS_INITIATED = "verify-whatsapp-conversations-business-initiated"
400400
VIDEO_RECORDINGS = "video-recordings"
401+
VIRTUAL_AGENT = "virtual-agent"
401402
VOICE_INSIGHTS = "voice-insights"
402403
VOICE_INSIGHTS_CLIENT_INSIGHTS_ON_DEMAND_MINUTE = "voice-insights-client-insights-on-demand-minute"
403404
VOICE_INSIGHTS_PTSN_INSIGHTS_ON_DEMAND_MINUTE = "voice-insights-ptsn-insights-on-demand-minute"

twilio/rest/api/v2010/account/usage/record/yearly.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,7 @@ class Category(object):
398398
VERIFY_TOTP = "verify-totp"
399399
VERIFY_WHATSAPP_CONVERSATIONS_BUSINESS_INITIATED = "verify-whatsapp-conversations-business-initiated"
400400
VIDEO_RECORDINGS = "video-recordings"
401+
VIRTUAL_AGENT = "virtual-agent"
401402
VOICE_INSIGHTS = "voice-insights"
402403
VOICE_INSIGHTS_CLIENT_INSIGHTS_ON_DEMAND_MINUTE = "voice-insights-client-insights-on-demand-minute"
403404
VOICE_INSIGHTS_PTSN_INSIGHTS_ON_DEMAND_MINUTE = "voice-insights-ptsn-insights-on-demand-minute"

twilio/rest/api/v2010/account/usage/record/yesterday.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,7 @@ class Category(object):
398398
VERIFY_TOTP = "verify-totp"
399399
VERIFY_WHATSAPP_CONVERSATIONS_BUSINESS_INITIATED = "verify-whatsapp-conversations-business-initiated"
400400
VIDEO_RECORDINGS = "video-recordings"
401+
VIRTUAL_AGENT = "virtual-agent"
401402
VOICE_INSIGHTS = "voice-insights"
402403
VOICE_INSIGHTS_CLIENT_INSIGHTS_ON_DEMAND_MINUTE = "voice-insights-client-insights-on-demand-minute"
403404
VOICE_INSIGHTS_PTSN_INSIGHTS_ON_DEMAND_MINUTE = "voice-insights-ptsn-insights-on-demand-minute"

twilio/rest/api/v2010/account/usage/trigger.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,7 @@ class UsageCategory(object):
524524
VERIFY_TOTP = "verify-totp"
525525
VERIFY_WHATSAPP_CONVERSATIONS_BUSINESS_INITIATED = "verify-whatsapp-conversations-business-initiated"
526526
VIDEO_RECORDINGS = "video-recordings"
527+
VIRTUAL_AGENT = "virtual-agent"
527528
VOICE_INSIGHTS = "voice-insights"
528529
VOICE_INSIGHTS_CLIENT_INSIGHTS_ON_DEMAND_MINUTE = "voice-insights-client-insights-on-demand-minute"
529530
VOICE_INSIGHTS_PTSN_INSIGHTS_ON_DEMAND_MINUTE = "voice-insights-ptsn-insights-on-demand-minute"

twilio/twiml/voice_response.py

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2664,7 +2664,12 @@ def conference(self, name, muted=None, beep=None,
26642664

26652665
def number(self, phone_number, send_digits=None, url=None, method=None,
26662666
status_callback_event=None, status_callback=None,
2667-
status_callback_method=None, byoc=None, **kwargs):
2667+
status_callback_method=None, byoc=None, machine_detection=None,
2668+
amd_status_callback_method=None, amd_status_callback=None,
2669+
machine_detection_timeout=None,
2670+
machine_detection_speech_threshold=None,
2671+
machine_detection_speech_end_threshold=None,
2672+
machine_detection_silence_timeout=None, **kwargs):
26682673
"""
26692674
Create a <Number> element
26702675
@@ -2676,6 +2681,13 @@ def number(self, phone_number, send_digits=None, url=None, method=None,
26762681
:param status_callback: Status callback URL
26772682
:param status_callback_method: Status callback URL method
26782683
:param byoc: BYOC trunk SID (Beta)
2684+
:param machine_detection: Enable machine detection or end of greeting detection
2685+
:param amd_status_callback_method: HTTP Method to use with amd_status_callback
2686+
:param amd_status_callback: The URL we should call to send amd status information to your application
2687+
:param machine_detection_timeout: Number of seconds to wait for machine detection
2688+
:param machine_detection_speech_threshold: Number of milliseconds for measuring stick for the length of the speech activity
2689+
:param machine_detection_speech_end_threshold: Number of milliseconds of silence after speech activity
2690+
:param machine_detection_silence_timeout: Number of milliseconds of initial silence
26792691
:param kwargs: additional attributes
26802692
26812693
:returns: <Number> element
@@ -2689,6 +2701,13 @@ def number(self, phone_number, send_digits=None, url=None, method=None,
26892701
status_callback=status_callback,
26902702
status_callback_method=status_callback_method,
26912703
byoc=byoc,
2704+
machine_detection=machine_detection,
2705+
amd_status_callback_method=amd_status_callback_method,
2706+
amd_status_callback=amd_status_callback,
2707+
machine_detection_timeout=machine_detection_timeout,
2708+
machine_detection_speech_threshold=machine_detection_speech_threshold,
2709+
machine_detection_speech_end_threshold=machine_detection_speech_end_threshold,
2710+
machine_detection_silence_timeout=machine_detection_silence_timeout,
26922711
**kwargs
26932712
))
26942713

@@ -2728,7 +2747,11 @@ def sim(self, sim_sid, **kwargs):
27282747

27292748
def sip(self, sip_url, username=None, password=None, url=None, method=None,
27302749
status_callback_event=None, status_callback=None,
2731-
status_callback_method=None, **kwargs):
2750+
status_callback_method=None, machine_detection=None,
2751+
amd_status_callback_method=None, amd_status_callback=None,
2752+
machine_detection_timeout=None, machine_detection_speech_threshold=None,
2753+
machine_detection_speech_end_threshold=None,
2754+
machine_detection_silence_timeout=None, **kwargs):
27322755
"""
27332756
Create a <Sip> element
27342757
@@ -2740,6 +2763,13 @@ def sip(self, sip_url, username=None, password=None, url=None, method=None,
27402763
:param status_callback_event: Status callback events
27412764
:param status_callback: Status callback URL
27422765
:param status_callback_method: Status callback URL method
2766+
:param machine_detection: Enable machine detection or end of greeting detection
2767+
:param amd_status_callback_method: HTTP Method to use with amd_status_callback
2768+
:param amd_status_callback: The URL we should call to send amd status information to your application
2769+
:param machine_detection_timeout: Number of seconds to wait for machine detection
2770+
:param machine_detection_speech_threshold: Number of milliseconds for measuring stick for the length of the speech activity
2771+
:param machine_detection_speech_end_threshold: Number of milliseconds of silence after speech activity
2772+
:param machine_detection_silence_timeout: Number of milliseconds of initial silence
27432773
:param kwargs: additional attributes
27442774
27452775
:returns: <Sip> element
@@ -2753,6 +2783,13 @@ def sip(self, sip_url, username=None, password=None, url=None, method=None,
27532783
status_callback_event=status_callback_event,
27542784
status_callback=status_callback,
27552785
status_callback_method=status_callback_method,
2786+
machine_detection=machine_detection,
2787+
amd_status_callback_method=amd_status_callback_method,
2788+
amd_status_callback=amd_status_callback,
2789+
machine_detection_timeout=machine_detection_timeout,
2790+
machine_detection_speech_threshold=machine_detection_speech_threshold,
2791+
machine_detection_speech_end_threshold=machine_detection_speech_end_threshold,
2792+
machine_detection_silence_timeout=machine_detection_silence_timeout,
27562793
**kwargs
27572794
))
27582795

0 commit comments

Comments
 (0)