Skip to content

Commit 673cc80

Browse files
committed
[Librarian] Regenerated @ f5636aac5ecff02280031a90a9b4562d1f4d081e da54d4502024d44fdc6e0b2b0f7271585f9a1b62
1 parent 82c2d3a commit 673cc80

512 files changed

Lines changed: 195061 additions & 15476 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGES.md

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

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

6+
[2026-01-22] Version 9.10.0
7+
---------------------------
8+
**Library - Feature**
9+
- [PR #896](https://github.com/twilio/twilio-python/pull/896): Token pagination support. Thanks to [@kridai](https://github.com/kridai)!
10+
- [PR #902](https://github.com/twilio/twilio-python/pull/902): add support for response headers. Thanks to [@kridai](https://github.com/kridai)!
11+
12+
**Library - Chore**
13+
- [PR #904](https://github.com/twilio/twilio-python/pull/904): fix lint errors. Thanks to [@kridai](https://github.com/kridai)!
14+
- [PR #901](https://github.com/twilio/twilio-python/pull/901): Error response changes. Thanks to [@kridai](https://github.com/kridai)!
15+
16+
**Library - Fix**
17+
- [PR #903](https://github.com/twilio/twilio-python/pull/903): allow nullable headers response field. Thanks to [@kridai](https://github.com/kridai)!
18+
19+
**Twiml**
20+
- Added support for <Uri> and <Headers> inside <Dial><Sip>
21+
22+
**Assistants**
23+
- AI Assistants v1 release
24+
25+
**Autopilot**
26+
- Remove Export resource from Autopilot Assistant
27+
- Add dialogue_sid param to Query list resource
28+
- Add Restore resource to Autopilot Assistant
29+
- Add one new property in Query i.e dialogue_sid
30+
- Add Export resource to Autopilot Assistant.
31+
- Adds two new properties in Assistant i.e needs_model_build and development_stage
32+
- Add Webhooks resource to Autopilot Assistant.
33+
- Introduce `autopilot` subdomain with all resources from `preview.understand`
34+
35+
**Compliance**
36+
- Added the new InventoryComplianceInsights API under version `/v1`.
37+
38+
**Content**
39+
- changes for adding v2 endpoints
40+
41+
**Marketplace**
42+
- Initial transition to Marketplace domain
43+
44+
**Memory**
45+
- # API Changes
46+
- ## 2026-01-15
47+
- No path changes (updated metadata only)
48+
- ## 2026-01-13
49+
- **Added 1 new path(s)**:
50+
- `/v1/Stores/{storeId}/Profiles/{profileId}/ConversationSummaries/{summaryId}` (DeleteProfileConversationSummary)
51+
- ## 2026-01-12
52+
- No path changes (updated metadata only)
53+
- ## 2026-01-12
54+
- No path changes (updated metadata only)
55+
- ## 2026-01-12
56+
- No path changes (updated metadata only)
57+
- ## 2026-01-12
58+
- **Added 2 new path(s)**:
59+
- `/v1/Stores/{storeId}/Profiles/Imports` (ListProfileImportsV2, ImportProfilesV2)
60+
- `/v1/Stores/{storeId}/Profiles/Imports/{importId}` (GetProfileImportV2)
61+
- ## 2026-01-13
62+
- No path changes (updated metadata only)
63+
- ## 2026-01-07
64+
- No path changes (updated metadata only)
65+
- ## 2026-01-05
66+
- No path changes (updated metadata only)
67+
- ## 2025-12-17
68+
- No path changes (updated metadata only)
69+
- ## 2025-12-17
70+
- No path changes (updated metadata only)
71+
- ## 2025-12-17
72+
- **Added 1 new path(s)**:
73+
- `/v1/Stores/{storeId}/Profiles/{profileId}/Observations/{observationId}/Revisions` (ListObservationRevisions)
74+
75+
**Sender-ids**
76+
- Added all v2 sender-id-service endpoints
77+
78+
**Trusthub**
79+
- Add new delete endpoint for compliance_registration.
80+
81+
**Voice**
82+
- Add ProvisioningStatus public API endpoints.
83+
84+
**Wise_owl**
85+
- Init API as open-api spec
86+
- Updated Get Chat, Send Message and Create Chat to include `contexts` in Message, instead of root Chat
87+
88+
**Www**
89+
- Port APIs from oauth.twilio.com to www.twilio.com
90+
91+
692
[2026-01-07] Version 9.9.1
793
--------------------------
894
**Api**

twilio/rest/accounts/v1/auth_token_promotion.py

Lines changed: 66 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from datetime import datetime
1616
from typing import Any, Dict, Optional
1717
from twilio.base import deserialize, values
18+
from twilio.base.api_response import ApiResponse
1819
from twilio.base.instance_context import InstanceContext
1920
from twilio.base.instance_resource import InstanceResource
2021
from twilio.base.list_resource import ListResource
@@ -77,6 +78,24 @@ async def update_async(self) -> "AuthTokenPromotionInstance":
7778
"""
7879
return await self._proxy.update_async()
7980

81+
def update_with_http_info(self) -> ApiResponse:
82+
"""
83+
Update the AuthTokenPromotionInstance with HTTP info
84+
85+
86+
:returns: ApiResponse with instance, status code, and headers
87+
"""
88+
return self._proxy.update_with_http_info()
89+
90+
async def update_with_http_info_async(self) -> ApiResponse:
91+
"""
92+
Asynchronous coroutine to update the AuthTokenPromotionInstance with HTTP info
93+
94+
95+
:returns: ApiResponse with instance, status code, and headers
96+
"""
97+
return await self._proxy.update_with_http_info_async()
98+
8099
def __repr__(self) -> str:
81100
"""
82101
Provide a friendly representation
@@ -99,44 +118,82 @@ def __init__(self, version: Version):
99118

100119
self._uri = "/AuthTokens/Promote"
101120

102-
def update(self) -> AuthTokenPromotionInstance:
121+
def _update(self) -> tuple:
103122
"""
104-
Update the AuthTokenPromotionInstance
105-
123+
Internal helper for update operation
106124
107-
:returns: The updated AuthTokenPromotionInstance
125+
Returns:
126+
tuple: (payload, status_code, headers)
108127
"""
109128

110129
data = values.of({})
111130
headers = values.of({})
112131

113132
headers["Accept"] = "application/json"
114133

115-
payload = self._version.update(
134+
return self._version.update_with_response_info(
116135
method="POST", uri=self._uri, data=data, headers=headers
117136
)
118137

138+
def update(self) -> AuthTokenPromotionInstance:
139+
"""
140+
Update the AuthTokenPromotionInstance
141+
142+
143+
:returns: The updated AuthTokenPromotionInstance
144+
"""
145+
payload, _, _ = self._update()
119146
return AuthTokenPromotionInstance(self._version, payload)
120147

121-
async def update_async(self) -> AuthTokenPromotionInstance:
148+
def update_with_http_info(self) -> ApiResponse:
122149
"""
123-
Asynchronous coroutine to update the AuthTokenPromotionInstance
150+
Update the AuthTokenPromotionInstance and return response metadata
124151
125152
126-
:returns: The updated AuthTokenPromotionInstance
153+
:returns: ApiResponse with instance, status code, and headers
154+
"""
155+
payload, status_code, headers = self._update()
156+
instance = AuthTokenPromotionInstance(self._version, payload)
157+
return ApiResponse(data=instance, status_code=status_code, headers=headers)
158+
159+
async def _update_async(self) -> tuple:
160+
"""
161+
Internal async helper for update operation
162+
163+
Returns:
164+
tuple: (payload, status_code, headers)
127165
"""
128166

129167
data = values.of({})
130168
headers = values.of({})
131169

132170
headers["Accept"] = "application/json"
133171

134-
payload = await self._version.update_async(
172+
return await self._version.update_with_response_info_async(
135173
method="POST", uri=self._uri, data=data, headers=headers
136174
)
137175

176+
async def update_async(self) -> AuthTokenPromotionInstance:
177+
"""
178+
Asynchronous coroutine to update the AuthTokenPromotionInstance
179+
180+
181+
:returns: The updated AuthTokenPromotionInstance
182+
"""
183+
payload, _, _ = await self._update_async()
138184
return AuthTokenPromotionInstance(self._version, payload)
139185

186+
async def update_with_http_info_async(self) -> ApiResponse:
187+
"""
188+
Asynchronous coroutine to update the AuthTokenPromotionInstance and return response metadata
189+
190+
191+
:returns: ApiResponse with instance, status code, and headers
192+
"""
193+
payload, status_code, headers = await self._update_async()
194+
instance = AuthTokenPromotionInstance(self._version, payload)
195+
return ApiResponse(data=instance, status_code=status_code, headers=headers)
196+
140197
def __repr__(self) -> str:
141198
"""
142199
Provide a friendly representation

twilio/rest/accounts/v1/bulk_consents.py

Lines changed: 51 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
from typing import Any, Dict, List, Optional
1616
from twilio.base import serialize, values
17+
from twilio.base.api_response import ApiResponse
1718

1819
from twilio.base.instance_resource import InstanceResource
1920
from twilio.base.list_resource import ListResource
@@ -53,13 +54,12 @@ def __init__(self, version: Version):
5354

5455
self._uri = "/Consents/Bulk"
5556

56-
def create(self, items: List[object]) -> BulkConsentsInstance:
57+
def _create(self, items: List[object]) -> tuple:
5758
"""
58-
Create the BulkConsentsInstance
59+
Internal helper for create operation
5960
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.
61-
62-
:returns: The created BulkConsentsInstance
61+
Returns:
62+
tuple: (payload, status_code, headers)
6363
"""
6464

6565
data = values.of(
@@ -73,19 +73,39 @@ def create(self, items: List[object]) -> BulkConsentsInstance:
7373

7474
headers["Accept"] = "application/json"
7575

76-
payload = self._version.create(
76+
return self._version.create_with_response_info(
7777
method="POST", uri=self._uri, data=data, headers=headers
7878
)
7979

80+
def create(self, items: List[object]) -> BulkConsentsInstance:
81+
"""
82+
Create the BulkConsentsInstance
83+
84+
: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.
85+
86+
:returns: The created BulkConsentsInstance
87+
"""
88+
payload, _, _ = self._create(items=items)
8089
return BulkConsentsInstance(self._version, payload)
8190

82-
async def create_async(self, items: List[object]) -> BulkConsentsInstance:
91+
def create_with_http_info(self, items: List[object]) -> ApiResponse:
8392
"""
84-
Asynchronously create the BulkConsentsInstance
93+
Create the BulkConsentsInstance and return response metadata
8594
8695
: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.
8796
88-
:returns: The created BulkConsentsInstance
97+
:returns: ApiResponse with instance, status code, and headers
98+
"""
99+
payload, status_code, headers = self._create(items=items)
100+
instance = BulkConsentsInstance(self._version, payload)
101+
return ApiResponse(data=instance, status_code=status_code, headers=headers)
102+
103+
async def _create_async(self, items: List[object]) -> tuple:
104+
"""
105+
Internal async helper for create operation
106+
107+
Returns:
108+
tuple: (payload, status_code, headers)
89109
"""
90110

91111
data = values.of(
@@ -99,12 +119,33 @@ async def create_async(self, items: List[object]) -> BulkConsentsInstance:
99119

100120
headers["Accept"] = "application/json"
101121

102-
payload = await self._version.create_async(
122+
return await self._version.create_with_response_info_async(
103123
method="POST", uri=self._uri, data=data, headers=headers
104124
)
105125

126+
async def create_async(self, items: List[object]) -> BulkConsentsInstance:
127+
"""
128+
Asynchronously create the BulkConsentsInstance
129+
130+
: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.
131+
132+
:returns: The created BulkConsentsInstance
133+
"""
134+
payload, _, _ = await self._create_async(items=items)
106135
return BulkConsentsInstance(self._version, payload)
107136

137+
async def create_with_http_info_async(self, items: List[object]) -> ApiResponse:
138+
"""
139+
Asynchronously create the BulkConsentsInstance and return response metadata
140+
141+
: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.
142+
143+
:returns: ApiResponse with instance, status code, and headers
144+
"""
145+
payload, status_code, headers = await self._create_async(items=items)
146+
instance = BulkConsentsInstance(self._version, payload)
147+
return ApiResponse(data=instance, status_code=status_code, headers=headers)
148+
108149
def __repr__(self) -> str:
109150
"""
110151
Provide a friendly representation

0 commit comments

Comments
 (0)