Skip to content

Commit 7508e25

Browse files
committed
[Librarian] Regenerated @ be1009287706f9668165e2c57e337a331cc8e657 217af8d5996ea240f27310f5573ccec8426015bd
1 parent c5b9ee0 commit 7508e25

File tree

8 files changed

+98
-70
lines changed

8 files changed

+98
-70
lines changed

CHANGES.md

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

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

6+
[2025-05-13] Version 9.6.1
7+
--------------------------
8+
**Accounts**
9+
- Changes to add date_of_consent param in Bulk Consent API
10+
11+
**Api**
12+
- Change `friendly_name`, `date_created` and `date_updated` properties to type `string`.
13+
14+
**Twiml**
15+
- Update twiml definition for `<ConversationRelay>` and `<Assistant>`
16+
17+
618
[2025-05-05] Version 9.6.0
719
--------------------------
820
**Library - Fix**

twilio/rest/accounts/v1/bulk_consents.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def create(self, items: List[object]) -> BulkConsentsInstance:
5757
"""
5858
Create the BulkConsentsInstance
5959
60-
:param items: This is a list of objects that describes a contact's opt-in status. Each object contains the following fields: `contact_id`, which must be a string representing phone number in [E.164 format](https://www.twilio.com/docs/glossary/what-e164); `correlation_id`, a unique 32-character UUID used to uniquely map the request item with the response item; `sender_id`, which can be either a valid messaging service SID or a from phone number; `status`, a string representing the consent status. Can be one of [`opt-in`, `opt-out`]; and `source`, a string indicating the medium through which the consent was collected. Can be one of [`website`, `offline`, `opt-in-message`, `opt-out-message`, `others`].
60+
:param items: This is a list of objects that describes a contact's opt-in status. Each object contains the following fields: `contact_id`, which must be a string representing phone number in [E.164 format](https://www.twilio.com/docs/glossary/what-e164); `correlation_id`, a unique 32-character UUID used to uniquely map the request item with the response item; `sender_id`, which can be either a valid messaging service SID or a from phone number; `status`, a string representing the consent status. Can be one of [`opt-in`, `opt-out`]; `source`, a string indicating the medium through which the consent was collected. Can be one of [`website`, `offline`, `opt-in-message`, `opt-out-message`, `others`]; `date_of_consent`, an optional datetime string field in ISO-8601 format that captures the exact date and time when the user gave or revoked consent. If not provided, it will be empty.
6161
6262
:returns: The created BulkConsentsInstance
6363
"""
@@ -83,7 +83,7 @@ async def create_async(self, items: List[object]) -> BulkConsentsInstance:
8383
"""
8484
Asynchronously create the BulkConsentsInstance
8585
86-
:param items: This is a list of objects that describes a contact's opt-in status. Each object contains the following fields: `contact_id`, which must be a string representing phone number in [E.164 format](https://www.twilio.com/docs/glossary/what-e164); `correlation_id`, a unique 32-character UUID used to uniquely map the request item with the response item; `sender_id`, which can be either a valid messaging service SID or a from phone number; `status`, a string representing the consent status. Can be one of [`opt-in`, `opt-out`]; and `source`, a string indicating the medium through which the consent was collected. Can be one of [`website`, `offline`, `opt-in-message`, `opt-out-message`, `others`].
86+
:param items: This is a list of objects that describes a contact's opt-in status. Each object contains the following fields: `contact_id`, which must be a string representing phone number in [E.164 format](https://www.twilio.com/docs/glossary/what-e164); `correlation_id`, a unique 32-character UUID used to uniquely map the request item with the response item; `sender_id`, which can be either a valid messaging service SID or a from phone number; `status`, a string representing the consent status. Can be one of [`opt-in`, `opt-out`]; `source`, a string indicating the medium through which the consent was collected. Can be one of [`website`, `offline`, `opt-in-message`, `opt-out-message`, `others`]; `date_of_consent`, an optional datetime string field in ISO-8601 format that captures the exact date and time when the user gave or revoked consent. If not provided, it will be empty.
8787
8888
:returns: The created BulkConsentsInstance
8989
"""

twilio/rest/api/v2010/account/address/dependent_phone_number.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@
1212
Do not edit the class manually.
1313
"""
1414

15-
from datetime import datetime
1615
from typing import Any, Dict, List, Optional, Union, Iterator, AsyncIterator
17-
from twilio.base import deserialize, values
16+
from twilio.base import values
1817

1918
from twilio.base.instance_resource import InstanceResource
2019
from twilio.base.list_resource import ListResource
@@ -51,7 +50,7 @@ class EmergencyStatus(object):
5150
:ivar sms_method: The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`.
5251
:ivar sms_url: The URL we call when the phone number receives an incoming SMS message.
5352
:ivar address_requirements:
54-
:ivar capabilities: The set of Boolean properties that indicates whether a phone number can receive calls or messages. Capabilities are `Voice`, `SMS`, and `MMS` and each capability can be: `true` or `false`.
53+
:ivar capabilities:
5554
:ivar status_callback: The URL we call using the `status_callback_method` to send status information to your application.
5655
:ivar status_callback_method: The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`.
5756
:ivar api_version: The API version used to start a new TwiML session.
@@ -83,20 +82,16 @@ def __init__(
8382
self.voice_caller_id_lookup: Optional[bool] = payload.get(
8483
"voice_caller_id_lookup"
8584
)
86-
self.date_created: Optional[datetime] = deserialize.rfc2822_datetime(
87-
payload.get("date_created")
88-
)
89-
self.date_updated: Optional[datetime] = deserialize.rfc2822_datetime(
90-
payload.get("date_updated")
91-
)
85+
self.date_created: Optional[str] = payload.get("date_created")
86+
self.date_updated: Optional[str] = payload.get("date_updated")
9287
self.sms_fallback_method: Optional[str] = payload.get("sms_fallback_method")
9388
self.sms_fallback_url: Optional[str] = payload.get("sms_fallback_url")
9489
self.sms_method: Optional[str] = payload.get("sms_method")
9590
self.sms_url: Optional[str] = payload.get("sms_url")
9691
self.address_requirements: Optional[
9792
"DependentPhoneNumberInstance.AddressRequirement"
9893
] = payload.get("address_requirements")
99-
self.capabilities: Optional[Dict[str, object]] = payload.get("capabilities")
94+
self.capabilities: Optional[str] = payload.get("capabilities")
10095
self.status_callback: Optional[str] = payload.get("status_callback")
10196
self.status_callback_method: Optional[str] = payload.get(
10297
"status_callback_method"

twilio/rest/api/v2010/account/call/transcription.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def create(
287287
:param speech_model: Recognition model used by the transcription engine, among those supported by the provider
288288
:param hints: A Phrase contains words and phrase \\\"hints\\\" so that the speech recognition engine is more likely to recognize them.
289289
:param enable_automatic_punctuation: The provider will add punctuation to recognition result
290-
:param intelligence_service: The SID or unique name of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) for persisting transcripts and running post-call Language Operators .
290+
:param intelligence_service: The SID or unique name of the [Intelligence Service](https://www.twilio.com/docs/conversational-intelligence/api/service-resource) for persisting transcripts and running post-call Language Operators .
291291
292292
:returns: The created TranscriptionInstance
293293
"""
@@ -362,7 +362,7 @@ async def create_async(
362362
:param speech_model: Recognition model used by the transcription engine, among those supported by the provider
363363
:param hints: A Phrase contains words and phrase \\\"hints\\\" so that the speech recognition engine is more likely to recognize them.
364364
:param enable_automatic_punctuation: The provider will add punctuation to recognition result
365-
:param intelligence_service: The SID or unique name of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) for persisting transcripts and running post-call Language Operators .
365+
:param intelligence_service: The SID or unique name of the [Intelligence Service](https://www.twilio.com/docs/conversational-intelligence/api/service-resource) for persisting transcripts and running post-call Language Operators .
366366
367367
:returns: The created TranscriptionInstance
368368
"""

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

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ class CallToActionAction(object):
5252
:ivar url:
5353
:ivar phone:
5454
:ivar code:
55+
:ivar id:
5556
"""
5657

5758
def __init__(self, payload: Dict[str, Any]):
@@ -63,6 +64,7 @@ def __init__(self, payload: Dict[str, Any]):
6364
self.url: Optional[str] = payload.get("url")
6465
self.phone: Optional[str] = payload.get("phone")
6566
self.code: Optional[str] = payload.get("code")
67+
self.id: Optional[str] = payload.get("id")
6668

6769
def to_dict(self):
6870
return {
@@ -71,6 +73,7 @@ def to_dict(self):
7173
"url": self.url,
7274
"phone": self.phone,
7375
"code": self.code,
76+
"id": self.id,
7477
}
7578

7679
class CardAction(object):
@@ -470,19 +473,25 @@ class TwilioLocation(object):
470473
:ivar latitude:
471474
:ivar longitude:
472475
:ivar label:
476+
:ivar id:
477+
:ivar address:
473478
"""
474479

475480
def __init__(self, payload: Dict[str, Any]):
476481

477482
self.latitude: Optional[float] = payload.get("latitude")
478483
self.longitude: Optional[float] = payload.get("longitude")
479484
self.label: Optional[str] = payload.get("label")
485+
self.id: Optional[str] = payload.get("id")
486+
self.address: Optional[str] = payload.get("address")
480487

481488
def to_dict(self):
482489
return {
483490
"latitude": self.latitude,
484491
"longitude": self.longitude,
485492
"label": self.label,
493+
"id": self.id,
494+
"address": self.address,
486495
}
487496

488497
class TwilioMedia(object):
@@ -911,6 +920,7 @@ class CallToActionAction(object):
911920
:ivar url:
912921
:ivar phone:
913922
:ivar code:
923+
:ivar id:
914924
"""
915925

916926
def __init__(self, payload: Dict[str, Any]):
@@ -922,6 +932,7 @@ def __init__(self, payload: Dict[str, Any]):
922932
self.url: Optional[str] = payload.get("url")
923933
self.phone: Optional[str] = payload.get("phone")
924934
self.code: Optional[str] = payload.get("code")
935+
self.id: Optional[str] = payload.get("id")
925936

926937
def to_dict(self):
927938
return {
@@ -930,6 +941,7 @@ def to_dict(self):
930941
"url": self.url,
931942
"phone": self.phone,
932943
"code": self.code,
944+
"id": self.id,
933945
}
934946

935947
class CardAction(object):
@@ -1329,19 +1341,25 @@ class TwilioLocation(object):
13291341
:ivar latitude:
13301342
:ivar longitude:
13311343
:ivar label:
1344+
:ivar id:
1345+
:ivar address:
13321346
"""
13331347

13341348
def __init__(self, payload: Dict[str, Any]):
13351349

13361350
self.latitude: Optional[float] = payload.get("latitude")
13371351
self.longitude: Optional[float] = payload.get("longitude")
13381352
self.label: Optional[str] = payload.get("label")
1353+
self.id: Optional[str] = payload.get("id")
1354+
self.address: Optional[str] = payload.get("address")
13391355

13401356
def to_dict(self):
13411357
return {
13421358
"latitude": self.latitude,
13431359
"longitude": self.longitude,
13441360
"label": self.label,
1361+
"id": self.id,
1362+
"address": self.address,
13451363
}
13461364

13471365
class TwilioMedia(object):
@@ -1771,6 +1789,7 @@ class CallToActionAction(object):
17711789
:ivar url:
17721790
:ivar phone:
17731791
:ivar code:
1792+
:ivar id:
17741793
"""
17751794

17761795
def __init__(self, payload: Dict[str, Any]):
@@ -1782,6 +1801,7 @@ def __init__(self, payload: Dict[str, Any]):
17821801
self.url: Optional[str] = payload.get("url")
17831802
self.phone: Optional[str] = payload.get("phone")
17841803
self.code: Optional[str] = payload.get("code")
1804+
self.id: Optional[str] = payload.get("id")
17851805

17861806
def to_dict(self):
17871807
return {
@@ -1790,6 +1810,7 @@ def to_dict(self):
17901810
"url": self.url,
17911811
"phone": self.phone,
17921812
"code": self.code,
1813+
"id": self.id,
17931814
}
17941815

17951816
class CardAction(object):
@@ -2189,19 +2210,25 @@ class TwilioLocation(object):
21892210
:ivar latitude:
21902211
:ivar longitude:
21912212
:ivar label:
2213+
:ivar id:
2214+
:ivar address:
21922215
"""
21932216

21942217
def __init__(self, payload: Dict[str, Any]):
21952218

21962219
self.latitude: Optional[float] = payload.get("latitude")
21972220
self.longitude: Optional[float] = payload.get("longitude")
21982221
self.label: Optional[str] = payload.get("label")
2222+
self.id: Optional[str] = payload.get("id")
2223+
self.address: Optional[str] = payload.get("address")
21992224

22002225
def to_dict(self):
22012226
return {
22022227
"latitude": self.latitude,
22032228
"longitude": self.longitude,
22042229
"label": self.label,
2230+
"id": self.id,
2231+
"address": self.address,
22052232
}
22062233

22072234
class TwilioMedia(object):

0 commit comments

Comments
 (0)