Skip to content

Commit

Permalink
[Librarian] Regenerated @ 6b85410bb6ecf3aa579d1fa442c7bb74c62cf6f0 ae…
Browse files Browse the repository at this point in the history
…4a12dded508a988aeaca39721be27984e9aeeb
  • Loading branch information
twilio-dx committed Feb 11, 2025
1 parent ffc0aa1 commit d120aff
Show file tree
Hide file tree
Showing 5 changed files with 600 additions and 4 deletions.
15 changes: 15 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,21 @@ twilio-python Changelog

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

[2025-02-11] Version 9.4.5
--------------------------
**Api**
- Change downstream url and change media type for file `base/api/v2010/validation_request.json`.

**Intelligence**
- Add json_results for Generative JSON operator results

**Messaging**
- Add DestinationAlphaSender API to support Country-Specific Alpha Senders

**Video**
- Change codec type from enum to case-insensitive enum in recording and room_recording apis


[2025-01-28] Version 9.4.4
--------------------------
**Library - Fix**
Expand Down
8 changes: 4 additions & 4 deletions twilio/rest/api/v2010/account/address/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def update(
"""
Update the AddressInstance
:param friendly_name: A descriptive string that you create to describe the address. It can be up to 64 characters long.
:param friendly_name: A descriptive string that you create to describe the new address. It can be up to 64 characters long for Regulatory Compliance addresses and 32 characters long for Emergency addresses.
:param customer_name: The name to associate with the address.
:param street: The number and street address of the address.
:param city: The city of the address.
Expand Down Expand Up @@ -187,7 +187,7 @@ async def update_async(
"""
Asynchronous coroutine to update the AddressInstance
:param friendly_name: A descriptive string that you create to describe the address. It can be up to 64 characters long.
:param friendly_name: A descriptive string that you create to describe the new address. It can be up to 64 characters long for Regulatory Compliance addresses and 32 characters long for Emergency addresses.
:param customer_name: The name to associate with the address.
:param street: The number and street address of the address.
:param city: The city of the address.
Expand Down Expand Up @@ -336,7 +336,7 @@ def update(
"""
Update the AddressInstance
:param friendly_name: A descriptive string that you create to describe the address. It can be up to 64 characters long.
:param friendly_name: A descriptive string that you create to describe the new address. It can be up to 64 characters long for Regulatory Compliance addresses and 32 characters long for Emergency addresses.
:param customer_name: The name to associate with the address.
:param street: The number and street address of the address.
:param city: The city of the address.
Expand Down Expand Up @@ -394,7 +394,7 @@ async def update_async(
"""
Asynchronous coroutine to update the AddressInstance
:param friendly_name: A descriptive string that you create to describe the address. It can be up to 64 characters long.
:param friendly_name: A descriptive string that you create to describe the new address. It can be up to 64 characters long for Regulatory Compliance addresses and 32 characters long for Emergency addresses.
:param customer_name: The name to associate with the address.
:param street: The number and street address of the address.
:param city: The city of the address.
Expand Down
4 changes: 4 additions & 0 deletions twilio/rest/intelligence/v2/transcript/operator_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ class OperatorType(object):
EXTRACT = "extract"
EXTRACT_NORMALIZE = "extract_normalize"
PII_EXTRACT = "pii_extract"
TEXT_GENERATION = "text_generation"
JSON = "json"

"""
:ivar operator_type:
Expand All @@ -44,6 +46,7 @@ class OperatorType(object):
:ivar label_probabilities: The labels probabilities. This might be available on conversation classify model outputs.
:ivar extract_results: List of text extraction results. This might be available on classify-extract model outputs.
:ivar text_generation_results: Output of a text generation operator for example Conversation Sumamary.
:ivar json_results:
:ivar transcript_sid: A 34 character string that uniquely identifies this Transcript.
:ivar url: The URL of this resource.
"""
Expand Down Expand Up @@ -84,6 +87,7 @@ def __init__(
self.text_generation_results: Optional[Dict[str, object]] = payload.get(
"text_generation_results"
)
self.json_results: Optional[Dict[str, object]] = payload.get("json_results")
self.transcript_sid: Optional[str] = payload.get("transcript_sid")
self.url: Optional[str] = payload.get("url")

Expand Down
23 changes: 23 additions & 0 deletions twilio/rest/messaging/v1/service/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
from twilio.base.page import Page
from twilio.rest.messaging.v1.service.alpha_sender import AlphaSenderList
from twilio.rest.messaging.v1.service.channel_sender import ChannelSenderList
from twilio.rest.messaging.v1.service.destination_alpha_sender import (
DestinationAlphaSenderList,
)
from twilio.rest.messaging.v1.service.phone_number import PhoneNumberList
from twilio.rest.messaging.v1.service.short_code import ShortCodeList
from twilio.rest.messaging.v1.service.us_app_to_person import UsAppToPersonList
Expand Down Expand Up @@ -302,6 +305,13 @@ def channel_senders(self) -> ChannelSenderList:
"""
return self._proxy.channel_senders

@property
def destination_alpha_senders(self) -> DestinationAlphaSenderList:
"""
Access the destination_alpha_senders
"""
return self._proxy.destination_alpha_senders

@property
def phone_numbers(self) -> PhoneNumberList:
"""
Expand Down Expand Up @@ -359,6 +369,7 @@ def __init__(self, version: Version, sid: str):

self._alpha_senders: Optional[AlphaSenderList] = None
self._channel_senders: Optional[ChannelSenderList] = None
self._destination_alpha_senders: Optional[DestinationAlphaSenderList] = None
self._phone_numbers: Optional[PhoneNumberList] = None
self._short_codes: Optional[ShortCodeList] = None
self._us_app_to_person: Optional[UsAppToPersonList] = None
Expand Down Expand Up @@ -620,6 +631,18 @@ def channel_senders(self) -> ChannelSenderList:
)
return self._channel_senders

@property
def destination_alpha_senders(self) -> DestinationAlphaSenderList:
"""
Access the destination_alpha_senders
"""
if self._destination_alpha_senders is None:
self._destination_alpha_senders = DestinationAlphaSenderList(
self._version,
self._solution["sid"],
)
return self._destination_alpha_senders

@property
def phone_numbers(self) -> PhoneNumberList:
"""
Expand Down
Loading

0 comments on commit d120aff

Please sign in to comment.