Skip to content

Commit

Permalink
[Librarian] Regenerated @ 51e40434baa37a97b298d416220c6de10d9698c4 1a…
Browse files Browse the repository at this point in the history
…c2fcf2e173acdee4491031f59034933467a82c
  • Loading branch information
twilio-dx committed Nov 15, 2024
1 parent 5aa42dc commit 4f1e7d2
Show file tree
Hide file tree
Showing 19 changed files with 67 additions and 33 deletions.
14 changes: 14 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,20 @@ twilio-python Changelog

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

[2024-11-15] Version 9.3.7
--------------------------
**Library - Chore**
- [PR #819](https://github.com/twilio/twilio-python/pull/819): use older verison of aiohttp_retry. Thanks to [@sbansla](https://github.com/sbansla)!

**Api**
- Added `ivr-virtual-agent-custom-voices` and `ivr-virtual-agent-genai` to `usage_record` API.
- Add open-api file tag to realtime_transcriptions

**Taskrouter**
- Add `api-tag` property to workers reservation
- Add `api-tag` property to task reservation


[2024-10-25] Version 9.3.6
--------------------------
**Library - Chore**
Expand Down
2 changes: 2 additions & 0 deletions twilio/rest/api/v2010/account/usage/record/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ class Category(object):
GROUP_ROOMS_PARTICIPANT_MINUTES = "group-rooms-participant-minutes"
GROUP_ROOMS_RECORDED_MINUTES = "group-rooms-recorded-minutes"
IMP_V1_USAGE = "imp-v1-usage"
IVR_VIRTUAL_AGENT_CUSTOM_VOICES = "ivr-virtual-agent-custom-voices"
IVR_VIRTUAL_AGENT_GENAI = "ivr-virtual-agent-genai"
LOOKUPS = "lookups"
MARKETPLACE = "marketplace"
MARKETPLACE_ALGORITHMIA_NAMED_ENTITY_RECOGNITION = (
Expand Down
2 changes: 2 additions & 0 deletions twilio/rest/api/v2010/account/usage/record/all_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ class Category(object):
GROUP_ROOMS_PARTICIPANT_MINUTES = "group-rooms-participant-minutes"
GROUP_ROOMS_RECORDED_MINUTES = "group-rooms-recorded-minutes"
IMP_V1_USAGE = "imp-v1-usage"
IVR_VIRTUAL_AGENT_CUSTOM_VOICES = "ivr-virtual-agent-custom-voices"
IVR_VIRTUAL_AGENT_GENAI = "ivr-virtual-agent-genai"
LOOKUPS = "lookups"
MARKETPLACE = "marketplace"
MARKETPLACE_ALGORITHMIA_NAMED_ENTITY_RECOGNITION = (
Expand Down
2 changes: 2 additions & 0 deletions twilio/rest/api/v2010/account/usage/record/daily.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ class Category(object):
GROUP_ROOMS_PARTICIPANT_MINUTES = "group-rooms-participant-minutes"
GROUP_ROOMS_RECORDED_MINUTES = "group-rooms-recorded-minutes"
IMP_V1_USAGE = "imp-v1-usage"
IVR_VIRTUAL_AGENT_CUSTOM_VOICES = "ivr-virtual-agent-custom-voices"
IVR_VIRTUAL_AGENT_GENAI = "ivr-virtual-agent-genai"
LOOKUPS = "lookups"
MARKETPLACE = "marketplace"
MARKETPLACE_ALGORITHMIA_NAMED_ENTITY_RECOGNITION = (
Expand Down
2 changes: 2 additions & 0 deletions twilio/rest/api/v2010/account/usage/record/last_month.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ class Category(object):
GROUP_ROOMS_PARTICIPANT_MINUTES = "group-rooms-participant-minutes"
GROUP_ROOMS_RECORDED_MINUTES = "group-rooms-recorded-minutes"
IMP_V1_USAGE = "imp-v1-usage"
IVR_VIRTUAL_AGENT_CUSTOM_VOICES = "ivr-virtual-agent-custom-voices"
IVR_VIRTUAL_AGENT_GENAI = "ivr-virtual-agent-genai"
LOOKUPS = "lookups"
MARKETPLACE = "marketplace"
MARKETPLACE_ALGORITHMIA_NAMED_ENTITY_RECOGNITION = (
Expand Down
2 changes: 2 additions & 0 deletions twilio/rest/api/v2010/account/usage/record/monthly.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ class Category(object):
GROUP_ROOMS_PARTICIPANT_MINUTES = "group-rooms-participant-minutes"
GROUP_ROOMS_RECORDED_MINUTES = "group-rooms-recorded-minutes"
IMP_V1_USAGE = "imp-v1-usage"
IVR_VIRTUAL_AGENT_CUSTOM_VOICES = "ivr-virtual-agent-custom-voices"
IVR_VIRTUAL_AGENT_GENAI = "ivr-virtual-agent-genai"
LOOKUPS = "lookups"
MARKETPLACE = "marketplace"
MARKETPLACE_ALGORITHMIA_NAMED_ENTITY_RECOGNITION = (
Expand Down
2 changes: 2 additions & 0 deletions twilio/rest/api/v2010/account/usage/record/this_month.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ class Category(object):
GROUP_ROOMS_PARTICIPANT_MINUTES = "group-rooms-participant-minutes"
GROUP_ROOMS_RECORDED_MINUTES = "group-rooms-recorded-minutes"
IMP_V1_USAGE = "imp-v1-usage"
IVR_VIRTUAL_AGENT_CUSTOM_VOICES = "ivr-virtual-agent-custom-voices"
IVR_VIRTUAL_AGENT_GENAI = "ivr-virtual-agent-genai"
LOOKUPS = "lookups"
MARKETPLACE = "marketplace"
MARKETPLACE_ALGORITHMIA_NAMED_ENTITY_RECOGNITION = (
Expand Down
2 changes: 2 additions & 0 deletions twilio/rest/api/v2010/account/usage/record/today.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ class Category(object):
GROUP_ROOMS_PARTICIPANT_MINUTES = "group-rooms-participant-minutes"
GROUP_ROOMS_RECORDED_MINUTES = "group-rooms-recorded-minutes"
IMP_V1_USAGE = "imp-v1-usage"
IVR_VIRTUAL_AGENT_CUSTOM_VOICES = "ivr-virtual-agent-custom-voices"
IVR_VIRTUAL_AGENT_GENAI = "ivr-virtual-agent-genai"
LOOKUPS = "lookups"
MARKETPLACE = "marketplace"
MARKETPLACE_ALGORITHMIA_NAMED_ENTITY_RECOGNITION = (
Expand Down
2 changes: 2 additions & 0 deletions twilio/rest/api/v2010/account/usage/record/yearly.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ class Category(object):
GROUP_ROOMS_PARTICIPANT_MINUTES = "group-rooms-participant-minutes"
GROUP_ROOMS_RECORDED_MINUTES = "group-rooms-recorded-minutes"
IMP_V1_USAGE = "imp-v1-usage"
IVR_VIRTUAL_AGENT_CUSTOM_VOICES = "ivr-virtual-agent-custom-voices"
IVR_VIRTUAL_AGENT_GENAI = "ivr-virtual-agent-genai"
LOOKUPS = "lookups"
MARKETPLACE = "marketplace"
MARKETPLACE_ALGORITHMIA_NAMED_ENTITY_RECOGNITION = (
Expand Down
2 changes: 2 additions & 0 deletions twilio/rest/api/v2010/account/usage/record/yesterday.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ class Category(object):
GROUP_ROOMS_PARTICIPANT_MINUTES = "group-rooms-participant-minutes"
GROUP_ROOMS_RECORDED_MINUTES = "group-rooms-recorded-minutes"
IMP_V1_USAGE = "imp-v1-usage"
IVR_VIRTUAL_AGENT_CUSTOM_VOICES = "ivr-virtual-agent-custom-voices"
IVR_VIRTUAL_AGENT_GENAI = "ivr-virtual-agent-genai"
LOOKUPS = "lookups"
MARKETPLACE = "marketplace"
MARKETPLACE_ALGORITHMIA_NAMED_ENTITY_RECOGNITION = (
Expand Down
2 changes: 2 additions & 0 deletions twilio/rest/api/v2010/account/usage/trigger.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ class UsageCategory(object):
GROUP_ROOMS_PARTICIPANT_MINUTES = "group-rooms-participant-minutes"
GROUP_ROOMS_RECORDED_MINUTES = "group-rooms-recorded-minutes"
IMP_V1_USAGE = "imp-v1-usage"
IVR_VIRTUAL_AGENT_CUSTOM_VOICES = "ivr-virtual-agent-custom-voices"
IVR_VIRTUAL_AGENT_GENAI = "ivr-virtual-agent-genai"
LOOKUPS = "lookups"
MARKETPLACE = "marketplace"
MARKETPLACE_ALGORITHMIA_NAMED_ENTITY_RECOGNITION = (
Expand Down
1 change: 1 addition & 0 deletions twilio/rest/content/v1/content/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class CallToActionActionType(object):
PHONE_NUMBER = "PHONE_NUMBER"
COPY_CODE = "COPY_CODE"
VOICE_CALL = "VOICE_CALL"
VOICE_CALL_REQUEST = "VOICE_CALL_REQUEST"

class CardActionType(object):
URL = "URL"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def create(
:param timers_closed: ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes.
:param bindings_email_address: The default email address that will be used when sending outbound emails in this conversation.
:param bindings_email_name: The default name that will be used when sending outbound emails in this conversation.
: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.
: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.
:returns: The created ConversationWithParticipantsInstance
"""
Expand Down Expand Up @@ -200,7 +200,7 @@ async def create_async(
:param timers_closed: ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes.
:param bindings_email_address: The default email address that will be used when sending outbound emails in this conversation.
:param bindings_email_name: The default name that will be used when sending outbound emails in this conversation.
: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.
: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.
:returns: The created ConversationWithParticipantsInstance
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def create(
:param timers_closed: ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes.
:param bindings_email_address: The default email address that will be used when sending outbound emails in this conversation.
:param bindings_email_name: The default name that will be used when sending outbound emails in this conversation.
: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.
: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.
:returns: The created ConversationWithParticipantsInstance
"""
Expand Down Expand Up @@ -219,7 +219,7 @@ async def create_async(
:param timers_closed: ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes.
:param bindings_email_address: The default email address that will be used when sending outbound emails in this conversation.
:param bindings_email_name: The default name that will be used when sending outbound emails in this conversation.
: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.
: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.
:returns: The created ConversationWithParticipantsInstance
"""
Expand Down
1 change: 1 addition & 0 deletions twilio/rest/insights/v1/conference/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ class Tag(object):
HIGH_LATENCY = "high_latency"
LOW_MOS = "low_mos"
DETECTED_SILENCE = "detected_silence"
NO_CONCURRENT_PARTICIPANTS = "no_concurrent_participants"

"""
:ivar conference_sid: The unique SID identifier of the Conference.
Expand Down
3 changes: 3 additions & 0 deletions twilio/rest/insights/v1/room/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class Codec(object):
VP8 = "VP8"
H264 = "H264"
VP9 = "VP9"
OPUS = "opus"

class CreatedMethod(object):
SDK = "sdk"
Expand Down Expand Up @@ -75,6 +76,8 @@ class TwilioRealm(object):
IN1 = "in1"
DE1 = "de1"
GLL = "gll"
STAGE_US1 = "stage_us1"
DEV_US1 = "dev_us1"

"""
:ivar account_sid: Account SID associated with this room.
Expand Down
3 changes: 3 additions & 0 deletions twilio/rest/insights/v1/room/participant.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class Codec(object):
VP8 = "VP8"
H264 = "H264"
VP9 = "VP9"
OPUS = "opus"

class EdgeLocation(object):
ASHBURN = "ashburn"
Expand Down Expand Up @@ -55,6 +56,8 @@ class TwilioRealm(object):
IN1 = "in1"
DE1 = "de1"
GLL = "gll"
STAGE_US1 = "stage_us1"
DEV_US1 = "dev_us1"

"""
:ivar participant_sid: Unique identifier for the participant.
Expand Down
24 changes: 8 additions & 16 deletions twilio/rest/numbers/v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,10 @@
from twilio.rest.numbers.v1.porting_webhook_configuration_delete import (
PortingWebhookConfigurationDeleteList,
)
from twilio.rest.numbers.v1.porting_webhook_configuration_fetch import (
PortingWebhookConfigurationFetchList,
)
from twilio.rest.numbers.v1.signing_request_configuration import (
SigningRequestConfigurationList,
)
from twilio.rest.numbers.v1.webhook import WebhookList


class V1(Version):
Expand All @@ -58,12 +56,10 @@ def __init__(self, domain: Domain):
self._porting_webhook_configurations_delete: Optional[
PortingWebhookConfigurationDeleteList
] = None
self._porting_webhook_configuration_fetch: Optional[
PortingWebhookConfigurationFetchList
] = None
self._signing_request_configurations: Optional[
SigningRequestConfigurationList
] = None
self._webhook: Optional[WebhookList] = None

@property
def bulk_eligibilities(self) -> BulkEligibilityList:
Expand Down Expand Up @@ -111,22 +107,18 @@ def porting_webhook_configurations_delete(
)
return self._porting_webhook_configurations_delete

@property
def porting_webhook_configuration_fetch(
self,
) -> PortingWebhookConfigurationFetchList:
if self._porting_webhook_configuration_fetch is None:
self._porting_webhook_configuration_fetch = (
PortingWebhookConfigurationFetchList(self)
)
return self._porting_webhook_configuration_fetch

@property
def signing_request_configurations(self) -> SigningRequestConfigurationList:
if self._signing_request_configurations is None:
self._signing_request_configurations = SigningRequestConfigurationList(self)
return self._signing_request_configurations

@property
def webhook(self) -> WebhookList:
if self._webhook is None:
self._webhook = WebhookList(self)
return self._webhook

def __repr__(self) -> str:
"""
Provide a friendly representation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from twilio.base.version import Version


class PortingWebhookConfigurationFetchInstance(InstanceResource):
class WebhookInstance(InstanceResource):
"""
:ivar url: The URL of the webhook configuration request
: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
Expand Down Expand Up @@ -52,14 +52,14 @@ def __repr__(self) -> str:
:returns: Machine friendly representation
"""

return "<Twilio.Numbers.V1.PortingWebhookConfigurationFetchInstance>"
return "<Twilio.Numbers.V1.WebhookInstance>"


class PortingWebhookConfigurationFetchList(ListResource):
class WebhookList(ListResource):

def __init__(self, version: Version):
"""
Initialize the PortingWebhookConfigurationFetchList
Initialize the WebhookList
:param version: Version that contains the resource
Expand All @@ -68,38 +68,38 @@ def __init__(self, version: Version):

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

def fetch(self) -> PortingWebhookConfigurationFetchInstance:
def fetch(self) -> WebhookInstance:
"""
Asynchronously fetch the PortingWebhookConfigurationFetchInstance
Asynchronously fetch the WebhookInstance
:returns: The fetched PortingWebhookConfigurationFetchInstance
:returns: The fetched WebhookInstance
"""
headers = values.of({"Content-Type": "application/x-www-form-urlencoded"})

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

return PortingWebhookConfigurationFetchInstance(self._version, payload)
return WebhookInstance(self._version, payload)

async def fetch_async(self) -> PortingWebhookConfigurationFetchInstance:
async def fetch_async(self) -> WebhookInstance:
"""
Asynchronously fetch the PortingWebhookConfigurationFetchInstance
Asynchronously fetch the WebhookInstance
:returns: The fetched PortingWebhookConfigurationFetchInstance
:returns: The fetched WebhookInstance
"""
headers = values.of({"Content-Type": "application/x-www-form-urlencoded"})

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

return PortingWebhookConfigurationFetchInstance(self._version, payload)
return WebhookInstance(self._version, payload)

def __repr__(self) -> str:
"""
Provide a friendly representation
:returns: Machine friendly representation
"""
return "<Twilio.Numbers.V1.PortingWebhookConfigurationFetchList>"
return "<Twilio.Numbers.V1.WebhookList>"

0 comments on commit 4f1e7d2

Please sign in to comment.