Skip to content

Commit 59e81bf

Browse files
committed
[Librarian] Regenerated @ 922c1fef02b8c8fbbbe2315aa9b9d1dba49f3fc0
1 parent 74e6a34 commit 59e81bf

File tree

13 files changed

+118
-77
lines changed

13 files changed

+118
-77
lines changed

CHANGES.md

+33
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,39 @@ twilio-python Changelog
33

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

6+
[2023-10-19] Version 8.10.0
7+
---------------------------
8+
**Library - Fix**
9+
- [PR #730](https://github.com/twilio/twilio-python/pull/730): Requirement changes. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
10+
- [PR #727](https://github.com/twilio/twilio-python/pull/727): Requirement changes. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
11+
- [PR #726](https://github.com/twilio/twilio-python/pull/726): requirements changes. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
12+
13+
**Accounts**
14+
- Updated Safelist metadata to correct the docs.
15+
- Add Global SafeList API changes
16+
17+
**Api**
18+
- Added optional parameter `CallToken` for create participant api
19+
20+
**Flex**
21+
- Adding `offline_config` to Flex Configuration
22+
23+
**Intelligence**
24+
- Deleted `redacted` parameter from fetching transcript in v2 **(breaking change)**
25+
26+
**Lookups**
27+
- Add new `phone_number_quality_score` package to the lookup response
28+
- Remove `disposable_phone_number_risk` package **(breaking change)**
29+
30+
**Messaging**
31+
- Update US App To Person documentation with current `message_samples` requirements
32+
33+
**Taskrouter**
34+
- Remove beta_feature check on task_queue_bulk_real_time_statistics endpoint
35+
- Add `virtual_start_time` property to tasks
36+
- Updating `task_queue_data` format from `map` to `array` in the response of bulk get endpoint of TaskQueue Real Time Statistics API **(breaking change)**
37+
38+
639
[2023-10-05] Version 8.9.1
740
--------------------------
841
**Library - Chore**

twilio/rest/accounts/v1/__init__.py

+8
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from twilio.base.domain import Domain
1818
from twilio.rest.accounts.v1.auth_token_promotion import AuthTokenPromotionList
1919
from twilio.rest.accounts.v1.credential import CredentialList
20+
from twilio.rest.accounts.v1.safelist import SafelistList
2021
from twilio.rest.accounts.v1.secondary_auth_token import SecondaryAuthTokenList
2122

2223

@@ -30,6 +31,7 @@ def __init__(self, domain: Domain):
3031
super().__init__(domain, "v1")
3132
self._auth_token_promotion: Optional[AuthTokenPromotionList] = None
3233
self._credentials: Optional[CredentialList] = None
34+
self._safelist: Optional[SafelistList] = None
3335
self._secondary_auth_token: Optional[SecondaryAuthTokenList] = None
3436

3537
@property
@@ -44,6 +46,12 @@ def credentials(self) -> CredentialList:
4446
self._credentials = CredentialList(self)
4547
return self._credentials
4648

49+
@property
50+
def safelist(self) -> SafelistList:
51+
if self._safelist is None:
52+
self._safelist = SafelistList(self)
53+
return self._safelist
54+
4755
@property
4856
def secondary_auth_token(self) -> SecondaryAuthTokenList:
4957
if self._secondary_auth_token is None:

twilio/rest/api/v2010/safelist.py renamed to twilio/rest/accounts/v1/safelist.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
| | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
55
| |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
66
7-
Twilio - Api
7+
Twilio - Accounts
88
This is the public Twilio REST API.
99
1010
NOTE: This class is auto generated by OpenAPI Generator.
@@ -41,7 +41,7 @@ def __repr__(self) -> str:
4141
:returns: Machine friendly representation
4242
"""
4343

44-
return "<Twilio.Api.V2010.SafelistInstance>"
44+
return "<Twilio.Accounts.V1.SafelistInstance>"
4545

4646

4747
class SafelistList(ListResource):
@@ -54,7 +54,7 @@ def __init__(self, version: Version):
5454
"""
5555
super().__init__(version)
5656

57-
self._uri = "/SafeList/Numbers.json"
57+
self._uri = "/SafeList/Numbers"
5858

5959
def create(self, phone_number: str) -> SafelistInstance:
6060
"""
@@ -126,4 +126,4 @@ def __repr__(self) -> str:
126126
127127
:returns: Machine friendly representation
128128
"""
129-
return "<Twilio.Api.V2010.SafelistList>"
129+
return "<Twilio.Accounts.V1.SafelistList>"

twilio/rest/api/v2010/__init__.py

-8
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
from twilio.base.version import Version
1717
from twilio.base.domain import Domain
1818
from twilio.rest.api.v2010.account import AccountList
19-
from twilio.rest.api.v2010.safelist import SafelistList
2019
from twilio.rest.api.v2010.account import AccountContext
2120

2221

@@ -29,7 +28,6 @@ def __init__(self, domain: Domain):
2928
"""
3029
super().__init__(domain, "2010-04-01")
3130
self._accounts: Optional[AccountList] = None
32-
self._safelist: Optional[SafelistList] = None
3331
self._account: Optional[AccountContext] = None
3432

3533
@property
@@ -38,12 +36,6 @@ def accounts(self) -> AccountList:
3836
self._accounts = AccountList(self)
3937
return self._accounts
4038

41-
@property
42-
def safelist(self) -> SafelistList:
43-
if self._safelist is None:
44-
self._safelist = SafelistList(self)
45-
return self._safelist
46-
4739
@property
4840
def account(self) -> AccountContext:
4941
if self._account is None:

twilio/rest/api/v2010/account/conference/participant.py

+6
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,7 @@ def create(
571571
amd_status_callback: Union[str, object] = values.unset,
572572
amd_status_callback_method: Union[str, object] = values.unset,
573573
trim: Union[str, object] = values.unset,
574+
call_token: Union[str, object] = values.unset,
574575
) -> ParticipantInstance:
575576
"""
576577
Create the ParticipantInstance
@@ -622,6 +623,7 @@ def create(
622623
:param amd_status_callback: The URL that we should call using the `amd_status_callback_method` to notify customer application whether the call was answered by human, machine or fax.
623624
:param amd_status_callback_method: The HTTP method we should use when calling the `amd_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`.
624625
:param trim: Whether to trim any leading and trailing silence from the participant recording. Can be: `trim-silence` or `do-not-trim` and the default is `trim-silence`.
626+
:param call_token: A token string needed to invoke a forwarded call. A call_token is generated when an incoming call is received on a Twilio number. Pass an incoming call's call_token value to a forwarded call via the call_token parameter when creating a new call. A forwarded call should bear the same CallerID of the original incoming call.
625627
626628
:returns: The created ParticipantInstance
627629
"""
@@ -682,6 +684,7 @@ def create(
682684
"AmdStatusCallback": amd_status_callback,
683685
"AmdStatusCallbackMethod": amd_status_callback_method,
684686
"Trim": trim,
687+
"CallToken": call_token,
685688
}
686689
)
687690

@@ -749,6 +752,7 @@ async def create_async(
749752
amd_status_callback: Union[str, object] = values.unset,
750753
amd_status_callback_method: Union[str, object] = values.unset,
751754
trim: Union[str, object] = values.unset,
755+
call_token: Union[str, object] = values.unset,
752756
) -> ParticipantInstance:
753757
"""
754758
Asynchronously create the ParticipantInstance
@@ -800,6 +804,7 @@ async def create_async(
800804
:param amd_status_callback: The URL that we should call using the `amd_status_callback_method` to notify customer application whether the call was answered by human, machine or fax.
801805
:param amd_status_callback_method: The HTTP method we should use when calling the `amd_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`.
802806
:param trim: Whether to trim any leading and trailing silence from the participant recording. Can be: `trim-silence` or `do-not-trim` and the default is `trim-silence`.
807+
:param call_token: A token string needed to invoke a forwarded call. A call_token is generated when an incoming call is received on a Twilio number. Pass an incoming call's call_token value to a forwarded call via the call_token parameter when creating a new call. A forwarded call should bear the same CallerID of the original incoming call.
803808
804809
:returns: The created ParticipantInstance
805810
"""
@@ -860,6 +865,7 @@ async def create_async(
860865
"AmdStatusCallback": amd_status_callback,
861866
"AmdStatusCallbackMethod": amd_status_callback_method,
862867
"Trim": trim,
868+
"CallToken": call_token,
863869
}
864870
)
865871

twilio/rest/flex_api/v1/configuration.py

+2
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ class Status(object):
7676
:ivar flex_ui_status_report: Configurable parameters for Flex UI Status report.
7777
:ivar agent_conv_end_methods: Agent conversation end methods.
7878
:ivar citrix_voice_vdi: Citrix voice vdi configuration and settings.
79+
:ivar offline_config: Presence and presence ttl configuration
7980
"""
8081

8182
def __init__(self, version: Version, payload: Dict[str, Any]):
@@ -184,6 +185,7 @@ def __init__(self, version: Version, payload: Dict[str, Any]):
184185
self.citrix_voice_vdi: Optional[Dict[str, object]] = payload.get(
185186
"citrix_voice_vdi"
186187
)
188+
self.offline_config: Optional[Dict[str, object]] = payload.get("offline_config")
187189

188190
self._context: Optional[ConfigurationContext] = None
189191

twilio/rest/intelligence/v2/transcript/__init__.py

+11-33
Original file line numberDiff line numberDiff line change
@@ -117,33 +117,23 @@ async def delete_async(self) -> bool:
117117
"""
118118
return await self._proxy.delete_async()
119119

120-
def fetch(
121-
self, redacted: Union[bool, object] = values.unset
122-
) -> "TranscriptInstance":
120+
def fetch(self) -> "TranscriptInstance":
123121
"""
124122
Fetch the TranscriptInstance
125123
126-
:param redacted: Grant access to PII Redacted/Unredacted Transcript. The default is `true` to access redacted Transcript.
127124
128125
:returns: The fetched TranscriptInstance
129126
"""
130-
return self._proxy.fetch(
131-
redacted=redacted,
132-
)
127+
return self._proxy.fetch()
133128

134-
async def fetch_async(
135-
self, redacted: Union[bool, object] = values.unset
136-
) -> "TranscriptInstance":
129+
async def fetch_async(self) -> "TranscriptInstance":
137130
"""
138131
Asynchronous coroutine to fetch the TranscriptInstance
139132
140-
:param redacted: Grant access to PII Redacted/Unredacted Transcript. The default is `true` to access redacted Transcript.
141133
142134
:returns: The fetched TranscriptInstance
143135
"""
144-
return await self._proxy.fetch_async(
145-
redacted=redacted,
146-
)
136+
return await self._proxy.fetch_async()
147137

148138
@property
149139
def media(self) -> MediaList:
@@ -220,48 +210,36 @@ async def delete_async(self) -> bool:
220210
uri=self._uri,
221211
)
222212

223-
def fetch(self, redacted: Union[bool, object] = values.unset) -> TranscriptInstance:
213+
def fetch(self) -> TranscriptInstance:
224214
"""
225215
Fetch the TranscriptInstance
226216
227-
:param redacted: Grant access to PII Redacted/Unredacted Transcript. The default is `true` to access redacted Transcript.
228217
229218
:returns: The fetched TranscriptInstance
230219
"""
231220

232-
data = values.of(
233-
{
234-
"Redacted": redacted,
235-
}
221+
payload = self._version.fetch(
222+
method="GET",
223+
uri=self._uri,
236224
)
237225

238-
payload = self._version.fetch(method="GET", uri=self._uri, params=data)
239-
240226
return TranscriptInstance(
241227
self._version,
242228
payload,
243229
sid=self._solution["sid"],
244230
)
245231

246-
async def fetch_async(
247-
self, redacted: Union[bool, object] = values.unset
248-
) -> TranscriptInstance:
232+
async def fetch_async(self) -> TranscriptInstance:
249233
"""
250234
Asynchronous coroutine to fetch the TranscriptInstance
251235
252-
:param redacted: Grant access to PII Redacted/Unredacted Transcript. The default is `true` to access redacted Transcript.
253236
254237
:returns: The fetched TranscriptInstance
255238
"""
256239

257-
data = values.of(
258-
{
259-
"Redacted": redacted,
260-
}
261-
)
262-
263240
payload = await self._version.fetch_async(
264-
method="GET", uri=self._uri, params=data
241+
method="GET",
242+
uri=self._uri,
265243
)
266244

267245
return TranscriptInstance(

twilio/rest/intelligence/v2/transcript/media.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def fetch(self, redacted: Union[bool, object] = values.unset) -> "MediaInstance"
6464
"""
6565
Fetch the MediaInstance
6666
67-
:param redacted: Grant access to PII Redacted/Unredacted Media. The default is `true` to access redacted media.
67+
:param redacted: Grant access to PII Redacted/Unredacted Media. If redaction is enabled, the default is `true` to access redacted media.
6868
6969
:returns: The fetched MediaInstance
7070
"""
@@ -78,7 +78,7 @@ async def fetch_async(
7878
"""
7979
Asynchronous coroutine to fetch the MediaInstance
8080
81-
:param redacted: Grant access to PII Redacted/Unredacted Media. The default is `true` to access redacted media.
81+
:param redacted: Grant access to PII Redacted/Unredacted Media. If redaction is enabled, the default is `true` to access redacted media.
8282
8383
:returns: The fetched MediaInstance
8484
"""
@@ -116,7 +116,7 @@ def fetch(self, redacted: Union[bool, object] = values.unset) -> MediaInstance:
116116
"""
117117
Fetch the MediaInstance
118118
119-
:param redacted: Grant access to PII Redacted/Unredacted Media. The default is `true` to access redacted media.
119+
:param redacted: Grant access to PII Redacted/Unredacted Media. If redaction is enabled, the default is `true` to access redacted media.
120120
121121
:returns: The fetched MediaInstance
122122
"""
@@ -141,7 +141,7 @@ async def fetch_async(
141141
"""
142142
Asynchronous coroutine to fetch the MediaInstance
143143
144-
:param redacted: Grant access to PII Redacted/Unredacted Media. The default is `true` to access redacted media.
144+
:param redacted: Grant access to PII Redacted/Unredacted Media. If redaction is enabled, the default is `true` to access redacted media.
145145
146146
:returns: The fetched MediaInstance
147147
"""

0 commit comments

Comments
 (0)