8000 [Librarian] Regenerated @ 51e40434baa37a97b298d416220c6de10d9698c4 1a… · twilio/twilio-python@4f1e7d2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4f1e7d2

Browse files
committed
[Librarian] Regenerated @ 51e40434baa37a97b298d416220c6de10d9698c4 1ac2fcf2e173acdee4491031f59034933467a82c
1 parent 5aa42dc commit 4f1e7d2

File tree

19 files changed

+67
-33
lines changed

19 files changed

+67
-33
lines changed

CHANGES.md

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

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

6+
[2024-11-15] Version 9.3.7
7+
--------------------------
8+
**Library - Chore**
9+
- [PR #819](https://github.com/twilio/twilio-python/pull/819): use older verison of aiohttp_retry. Thanks to [@sbansla](https://github.com/sbansla)!
10+
11+
**Api**
12+
- Added `ivr-virtual-agent-custom-voices` and `ivr-virtual-agent-genai` to `usage_record` API.
13+
- Add open-api file tag to realtime_transcriptions
14+
15+
**Taskrouter**
16+
- Add `api-tag` property to workers reservation
17+
- Add `api-tag` property to task reservation
18+
19+
620
[2024-10-25] Version 9.3.6
721
--------------------------
822
**Library - Chore**

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ class Category(object):
8080
GROUP_ROOMS_PARTICIPANT_MINUTES = "group-rooms-participant-minutes"
8181
GROUP_ROOMS_RECORDED_MINUTES = "group-rooms-recorded-minutes"
8282
IMP_V1_USAGE = "imp-v1-usage"
83+
IVR_VIRTUAL_AGENT_CUSTOM_VOICES = "ivr-virtual-agent-custom-voices"
84+
IVR_VIRTUAL_AGENT_GENAI = "ivr-virtual-agent-genai"
8385
LOOKUPS = "lookups"
8486
MARKETPLACE = "marketplace"
8587
MARKETPLACE_ALGORITHMIA_NAMED_ENTITY_RECOGNITION = (

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ class Category(object):
7272
GROUP_ROOMS_PARTICIPANT_MINUTES = "group-rooms-participant-minutes"
7373
GROUP_ROOMS_RECORDED_MINUTES = "group-rooms-recorded-minutes"
7474
IMP_V1_USAGE = "imp-v1-usage"
75+
IVR_VIRTUAL_AGENT_CUSTOM_VOICES = "ivr-virtual-agent-custom-voices"
76+
IVR_VIRTUAL_AGENT_GENAI = "ivr-virtual-agent-genai"
7577
LOOKUPS = "lookups"
7678
MARKETPLACE = "marketplace"
7779
MARKETPLACE_ALGORITHMIA_NAMED_ENTITY_RECOGNITION = (

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ class Category(object):
7272
GROUP_ROOMS_PARTICIPANT_MINUTES = "group-rooms-participant-minutes"
7373
GROUP_ROOMS_RECORDED_MINUTES = "group-rooms-recorded-minutes"
7474
IMP_V1_USAGE = "imp-v1-usage"
75+
IVR_VIRTUAL_AGENT_CUSTOM_VOICES = "ivr-virtual-agent-custom-voices"
76+
IVR_VIRTUAL_AGENT_GENAI = "ivr-virtual-agent-genai"
7577
LOOKUPS = "lookups"
7678
MARKETPLACE = "marketplace"
7779
MARKETPLACE_ALGORITHMIA_NAMED_ENTITY_RECOGNITION = (

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ class Category(object):
7272
GROUP_ROOMS_PARTICIPANT_MINUTES = "group-rooms-participant-minutes"
7373
GROUP_ROOMS_RECORDED_MINUTES = "group-rooms-recorded-minutes"
7474
IMP_V1_USAGE = "imp-v1-usage"
75+
IVR_VIRTUAL_AGENT_CUSTOM_VOICES = "ivr-virtual-agent-custom-voices"
76+
IVR_VIRTUAL_AGENT_GENAI = "ivr-virtual-agent-genai"
7577
LOOKUPS = "lookups"
7678
MARKETPLACE = "marketplace"
7779
MARKETPLACE_ALGORITHMIA_NAMED_ENTITY_RECOGNITION = (

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ class Category(object):
7272
GROUP_ROOMS_PARTICIPANT_MINUTES = "group-rooms-participant-minutes"
7373
GROUP_ROOMS_RECORDED_MINUTES = "group-rooms-recorded-minutes"
7474
IMP_V1_USAGE = "imp-v1-usage"
75+
IVR_VIRTUAL_AGENT_CUSTOM_VOICES = "ivr-virtual-agent-custom-voices"
76+
IVR_VIRTUAL_AGENT_GENAI = "ivr-virtual-agent-genai"
7577
LOOKUPS = "lookups"
7678
MARKETPLACE = "marketplace"
7779
MARKETPLACE_ALGORITHMIA_NAMED_ENTITY_RECOGNITION = (

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ class Category(object):
7272
GROUP_ROOMS_PARTICIPANT_MINUTES = "group-rooms-participant-minutes"
7373
GROUP_ROOMS_RECORDED_MINUTES = "group-rooms-recorded-minutes"
7474
IMP_V1_USAGE = "imp-v1-usage"
75+
IVR_VIRTUAL_AGENT_CUSTOM_VOICES = "ivr-virtual-agent-custom-voices"
76+
IVR_VIRTUAL_AGENT_GENAI = "ivr-virtual-agent-genai"
7577
LOOKUPS = "lookups"
7678
MARKETPLACE = "marketplace"
7779
MARKETPLACE_ALGORITHMIA_NAMED_ENTITY_RECOGNITION = (

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ class Category(object):
7272
GROUP_ROOMS_PARTICIPANT_MINUTES = "group-rooms-participant-minutes"
7373
GROUP_ROOMS_RECORDED_MINUTES = "group-rooms-recorded-minutes"
7474
IMP_V1_USAGE = "imp-v1-usage"
75+
IVR_VIRTUAL_AGENT_CUSTOM_VOICES = "ivr-virtual-agent-custom-voices"
76+
IVR_VIRTUAL_AGENT_GENAI = "ivr-virtual-agent-genai"
7577
LOOKUPS = "lookups"
7678
MARKETPLACE = "marketplace"
7779
MARKETPLACE_ALGORITHMIA_NAMED_ENTITY_RECOGNITION = (

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ class Category(object):
7272
GROUP_ROOMS_PARTICIPANT_MINUTES = "group-rooms-participant-minutes"
7373
GROUP_ROOMS_RECORDED_MINUTES = "group-rooms-recorded-minutes"
7474
IMP_V1_USAGE = "imp-v1-usage"
75+
IVR_VIRTUAL_AGENT_CUSTOM_VOICES = "ivr-virtual-agent-custom-voices"
76+
IVR_VIRTUAL_AGENT_GENAI = "ivr-virtual-agent-genai"
7577
LOOKUPS = "lookups"
7678
MARKETPLACE = "marketplace"
7779
MARKETPLACE_ALGORITHMIA_NAMED_ENTITY_RECOGNITION = (

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ class Category(object):
7272
GROUP_ROOMS_PARTICIPANT_MINUTES = "group-rooms-participant-minutes"
7373
GROUP_ROOMS_RECORDED_MINUTES = "group-rooms-recorded-minutes"
7474
IMP_V1_USAGE = "imp-v1-usage"
75+
IVR_VIRTUAL_AGENT_CUSTOM_VOICES = "ivr-virtual-agent-custom-voices"
76+
IVR_VIRTUAL_AGENT_GENAI = "ivr-virtual-agent-genai"
7577
LOOKUPS = "lookups"
7678
MARKETPLACE = "marketplace"
7779
MARKETPLACE_ALGORITHMIA_NAMED_ENTITY_RECOGNITION = (

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ class UsageCategory(object):
8383
GROUP_ROOMS_PARTICIPANT_MINUTES = "group-rooms-participant-minutes"
8484
GROUP_ROOMS_RECORDED_MINUTES = "group-rooms-recorded-minutes"
8585
IMP_V1_USAGE = "imp-v1-usage"
86+
IVR_VIRTUAL_AGENT_CUSTOM_VOICES = "ivr-virtual-agent-custom-voices"
87+
IVR_VIRTUAL_AGENT_GENAI = "ivr-virtual-agent-genai"
8688
LOOKUPS = "lookups"
8789
MARKETPLACE = "marketplace"
8890
MARKETPLACE_ALGORITHMIA_NAMED_ENTITY_RECOGNITION = (

twilio/rest/content/v1/content/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class CallToActionActionType(object):
3434
PHONE_NUMBER = "PHONE_NUMBER"
3535
COPY_CODE = "COPY_CODE"
3636
VOICE_CALL = "VOICE_CALL"
37+
VOICE_CALL_REQUEST = "VOICE_CALL_REQUEST"
3738

3839
class CardActionType(object):
3940
URL = "URL"

twilio/rest/conversations/v1/conversation_with_participants.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def create(
131131
:param timers_closed: ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes.
132132
:param bindings_email_address: The default email address that will be used when sending outbound emails in this conversation.
133133
:param bindings_email_name: The default name that will be used when sending outbound emails in this conversation.
134-
:param participant: The participant to be added to the conversation in JSON format. The parameters are as in [Participant Resource](https://www.twilio.com/docs/conversations/api/conversation-participant-resource). The maximum number of participants that can be added in a single request is 10.
134+
:param participant: The participant to be added to the conversation in JSON format. The JSON object attributes are as parameters in [Participant Resource](https://www.twilio.com/docs/conversations/api/conversation-participant-resource). The maximum number of participants that can be added in a single request is 10.
135135
136136
:returns: The created ConversationWithParticipantsInstance
137137
"""
@@ -200,7 +200,7 @@ async def create_async(
200200
:param timers_closed: ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes.
201201
:param bindings_email_address: The default email address that will be used when sending outbound emails in this conversation.
202202
:param bindings_email_name: The default name that will be used when sending outbound emails in this conversation.
203-
:param participant: The participant to be added to the conversation in JSON format. The parameters are as in [Participant Resource](https://www.twilio.com/docs/conversations/api/conversation-participant-resource). The maximum number of participants that can be added in a single request is 10.
203+
:param participant: The participant to be added to the conversation in JSON format. The JSON object attributes are as parameters in [Participant Resource](https://www.twilio.com/docs/conversations/api/conversation-participant-resource). The maximum number of participants that can be added in a single request is 10.
204204
205205
:returns: The created ConversationWithParticipantsInstance
206206
"""

twilio/rest/conversations/v1/service/conversation_with_participants.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def create(
148148
:param timers_closed: ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes.
149149
:param bindings_email_address: The default email address that will be used when sending outbound emails in this conversation.
150150
:param bindings_email_name: The default name that will be used when sending outbound emails in this conversation.
151-
:param participant: The participant to be added to the conversation in JSON format. The parameters are as in [Participant Resource](https://www.twilio.com/docs/conversations/api/conversation-participant-resource). The maximum number of participants that can be added in a single request is 10.
151+
:param participant: The participant to be added to the conversation in JSON format. The JSON object attributes are as parameters in [Participant Resource](https://www.twilio.com/docs/conversations/api/conversation-participant-resource). The maximum number of participants that can be added in a single request is 10.
152152
153153
:returns: The created ConversationWithParticipantsInstance
154154
"""
@@ -219,7 +219,7 @@ async def create_async(
219219
:param timers_closed: ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes.
220220
:param bindings_email_address: The default email address that will be used when sending outbound emails in this conversation.
221221
:param bindings_email_name: The default name that will be used when sending outbound emails in this conversation.
222-
:param participant: The participant to be added to the conversation in JSON format. The parameters are as in [Participant Resource](https://www.twilio.com/docs/conversations/api/conversation-participant-resource). The maximum number of participants that can be added in a single request is 10.
222+
:param participant: The participant to be added to the conversation in JSON format. The JSON object attributes are as parameters in [Participant Resource](https://www.twilio.com/docs/conversations/api/conversation-participant-resource). The maximum number of participants that can be added in a single request is 10.
223223
224224
:returns: The created ConversationWithParticipantsInstance
225225
"""

twilio/rest/insights/v1/conference/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ class Tag(object):
7070
HIGH_LATENCY = "high_latency"
7171
LOW_MOS = "low_mos"
7272
DETECTED_SILENCE = "detected_silence"
73+
NO_CONCURRENT_PARTICIPANTS = "no_concurrent_participants"
7374

7475
"""
7576
:ivar conference_sid: The unique SID identifier of the Conference.

twilio/rest/insights/v1/room/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class Codec(object):
2929
VP8 = "VP8"
3030
H264 = "H264"
3131
VP9 = "VP9"
32+
OPUS = "opus"
3233

3334
class CreatedMethod(object):
3435
SDK = "sdk"
@@ -75,6 +76,8 @@ class TwilioRealm(object):
7576
IN1 = "in1"
7677
DE1 = "de1"
7778
GLL = "gll"
79+
STAGE_US1 = "stage_us1"
80+
DEV_US1 = "dev_us1"
7881

7982
"""
8083
:ivar account_sid: Account SID associated with this room.

twilio/rest/insights/v1/room/participant.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class Codec(object):
2828
VP8 = "VP8"
2929
H264 = "H264"
3030
VP9 = "VP9"
31+
OPUS = "opus"
3132

3233
class EdgeLocation(object):
3334
ASHBURN = "ashburn"
@@ -55,6 +56,8 @@ class TwilioRealm(object):
5556
IN1 = "in1"
5657
DE1 = "de1"
5758
GLL = "gll"
59+
STAGE_US1 = "stage_us1"
60+
DEV_US1 = "dev_us1"
5861

5962
"""
6063
:ivar participant_sid: Unique identifier for the participant.

twilio/rest/numbers/v1/__init__.py

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,10 @@
2828
from twilio.rest.numbers.v1.porting_webhook_configuration_delete import (
2929
PortingWebhookConfigurationDeleteList,
3030
)
31-
from twilio.rest.numbers.v1.porting_webhook_configuration_fetch import (
32-
PortingWebhookConfigurationFetchList,
33-
)
3431
from twilio.rest.numbers.v1.signing_request_configuration import (
3532
SigningRequestConfigurationList,
3633
)
34+
from twilio.rest.numbers.v1.webhook import WebhookList
3735

3836

3937
class V1(Version):
@@ -58,12 +56,10 @@ def __init__(self, domain: Domain):
5856
self._porting_webhook_configurations_delete: Optional[
5957
PortingWebhookConfigurationDeleteList
6058
] = None
61-
self._porting_webhook_configuration_fetch: Optional[
62-
PortingWebhookConfigurationFetchList
63-
] = None
6459
self._signing_request_configurations: Optional[
6560
SigningRequestConfigurationList
6661
] = None
62+
self._webhook: Optional[WebhookList] = None
6763

6864
@property
6965
def bulk_eligibilities(self) -> BulkEligibilityList:
@@ -111,22 +107,18 @@ def porting_webhook_configurations_delete(
111107
)
112108
return self._porting_webhook_configurations_delete
113109

114-
@property
115-
def porting_webhook_configuration_fetch(
116-
self,
117-
) -> PortingWebhookConfigurationFetchList:
118-
if self._porting_webhook_configuration_fetch is None:
119-
self._porting_webhook_configuration_fetch = (
120-
PortingWebhookConfigurationFetchList(self)
121-
)
122-
return self._porting_webhook_configuration_fetch
123-
124110
@property
125111
def signing_request_configurations(self) -> SigningRequestConfigurationList:
126112
if self._signing_request_configurations is None:
127113
self._signing_request_configurations = SigningRequestConfigurationList(self)
128114
return self._signing_request_configurations
129115

116+
@property
117+
def webhook(self) -> WebhookList:
118+
if self._webhook is None:
119+
self._webhook = WebhookList(self)
120+
return self._webhook
121+
130122
def __repr__(self) -> str:
131123
"""
132124
Provide a friendly representation

twilio/rest/numbers/v1/porting_webhook_configuration_fetch.py renamed to twilio/rest/numbers/v1/webhook.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from twilio.base.version import Version
2222

2323

24-
class PortingWebhookConfigurationFetchInstance(InstanceResource):
24+
class WebhookInstance(InstanceResource):
2525
"""
2626
:ivar url: The URL of the webhook configuration request
2727
:ivar port_in_target_url: The complete webhook url that will be called when a notification event for port in request or port in phone number happens
@@ -52,14 +52,14 @@ def __repr__(self) -> str:
5252
:returns: Machine friendly representation
5353
"""
5454

55-
return "<Twilio.Numbers.V1.PortingWebhookConfigurationFetchInstance>"
55+
return "<Twilio.Numbers.V1.WebhookInstance>"
5656

5757

58-
class PortingWebhookConfigurationFetchList(ListResource):
58+
class WebhookList(ListResource):
5959

6060
def __init__(self, version: Version):
6161
"""
62-
Initialize the PortingWebhookConfigurationFetchList
62+
Initialize the WebhookList
6363
6464
:param version: Version that contains the resource
6565
@@ -68,38 +68,38 @@ def __init__(self, version: Version):
6868

6969
self._uri = "/Porting/Configuration/Webhook"
7070

71-
def fetch(self) -> PortingWebhookConfigurationFetchInstance:
71+
def fetch(self) -> WebhookInstance:
7272
"""
73-
Asynchronously fetch the PortingWebhookConfigurationFetchInstance
73+
Asynchronously fetch the WebhookInstance
7474
7575
76-
:returns: The fetched PortingWebhookConfigurationFetchInstance
76+
:returns: The fetched WebhookInstance
7777
"""
7878
headers = values.of({"Content-Type": "application/x-www-form-urlencoded"})
7979

8080
payload = self._version.fetch(method="GET", uri=self._uri, headers=headers)
8181

82-
return PortingWebhookConfigurationFetchInstance(self._version, payload)
82+
return WebhookInstance(self._version, payload)
8383

84-
async def fetch_async(self) -> PortingWebhookConfigurationFetchInstance:
84+
async def fetch_async(self) -> WebhookInstance:
8585
"""
86-
Asynchronously fetch the PortingWebhookConfigurationFetchInstance
86+
Asynchronously fetch the WebhookInstance
8787
8888
89-
:returns: The fetched PortingWebhookConfigurationFetchInstance
89+
:returns: The fetched WebhookInstance
9090
"""
9191
headers = values.of({"Content-Type": "application/x-www-form-urlencoded"})
9292

9393
payload = await self._version.fetch_async(
9494
method="GET", uri=self._uri, headers=headers
9595
)
9696

97-
return PortingWebhookConfigurationFetchInstance(self._version, payload)
97+
return WebhookInstance(self._version, payload)
9898

9999
def __repr__(self) -> str:
100100
"""
101101
Provide a friendly representation
102102
103103
:returns: Machine friendly representation
104104
"""
105-
return "<Twilio.Numbers.V1.PortingWebhookConfigurationFetchList>"
105+
return "<Twilio.Numbers.V1.WebhookList>"

0 commit comments

Comments
 (0)
0