Skip to content

Commit

Permalink
[Librarian] Regenerated @ 922c1fef02b8c8fbbbe2315aa9b9d1dba49f3fc0
Browse files Browse the repository at this point in the history
  • Loading branch information
twilio-dx committed Oct 19, 2023
1 parent 74e6a34 commit 59e81bf
Show file tree
Hide file tree
Showing 13 changed files with 118 additions and 77 deletions.
33 changes: 33 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,39 @@ twilio-python Changelog

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

[2023-10-19] Version 8.10.0
---------------------------
**Library - Fix**
- [PR #730](https://github.com/twilio/twilio-python/pull/730): Requirement changes. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
- [PR #727](https://github.com/twilio/twilio-python/pull/727): Requirement changes. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
- [PR #726](https://github.com/twilio/twilio-python/pull/726): requirements changes. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!

**Accounts**
- Updated Safelist metadata to correct the docs.
- Add Global SafeList API changes

**Api**
- Added optional parameter `CallToken` for create participant api

**Flex**
- Adding `offline_config` to Flex Configuration

**Intelligence**
- Deleted `redacted` parameter from fetching transcript in v2 **(breaking change)**

**Lookups**
- Add new `phone_number_quality_score` package to the lookup response
- Remove `disposable_phone_number_risk` package **(breaking change)**

**Messaging**
- Update US App To Person documentation with current `message_samples` requirements

**Taskrouter**
- Remove beta_feature check on task_queue_bulk_real_time_statistics endpoint
- Add `virtual_start_time` property to tasks
- Updating `task_queue_data` format from `map` to `array` in the response of bulk get endpoint of TaskQueue Real Time Statistics API **(breaking change)**


[2023-10-05] Version 8.9.1
--------------------------
**Library - Chore**
Expand Down
8 changes: 8 additions & 0 deletions twilio/rest/accounts/v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from twilio.base.domain import Domain
from twilio.rest.accounts.v1.auth_token_promotion import AuthTokenPromotionList
from twilio.rest.accounts.v1.credential import CredentialList
from twilio.rest.accounts.v1.safelist import SafelistList
from twilio.rest.accounts.v1.secondary_auth_token import SecondaryAuthTokenList


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

@property
Expand All @@ -44,6 +46,12 @@ def credentials(self) -> CredentialList:
self._credentials = CredentialList(self)
return self._credentials

@property
def safelist(self) -> SafelistList:
if self._safelist is None:
self._safelist = SafelistList(self)
return self._safelist

@property
def secondary_auth_token(self) -> SecondaryAuthTokenList:
if self._secondary_auth_token is None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
| | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
| |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
Twilio - Api
Twilio - Accounts
This is the public Twilio REST API.
NOTE: This class is auto generated by OpenAPI Generator.
Expand Down Expand Up @@ -41,7 +41,7 @@ def __repr__(self) -> str:
:returns: Machine friendly representation
"""

return "<Twilio.Api.V2010.SafelistInstance>"
return "<Twilio.Accounts.V1.SafelistInstance>"


class SafelistList(ListResource):
Expand All @@ -54,7 +54,7 @@ def __init__(self, version: Version):
"""
super().__init__(version)

self._uri = "/SafeList/Numbers.json"
self._uri = "/SafeList/Numbers"

def create(self, phone_number: str) -> SafelistInstance:
"""
Expand Down Expand Up @@ -126,4 +126,4 @@ def __repr__(self) -> str:
:returns: Machine friendly representation
"""
return "<Twilio.Api.V2010.SafelistList>"
return "<Twilio.Accounts.V1.SafelistList>"
8 changes: 0 additions & 8 deletions twilio/rest/api/v2010/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
from twilio.base.version import Version
from twilio.base.domain import Domain
from twilio.rest.api.v2010.account import AccountList
from twilio.rest.api.v2010.safelist import SafelistList
from twilio.rest.api.v2010.account import AccountContext


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

@property
Expand All @@ -38,12 +36,6 @@ def accounts(self) -> AccountList:
self._accounts = AccountList(self)
return self._accounts

@property
def safelist(self) -> SafelistList:
if self._safelist is None:
self._safelist = SafelistList(self)
return self._safelist

@property
def account(self) -> AccountContext:
if self._account is None:
Expand Down
6 changes: 6 additions & 0 deletions twilio/rest/api/v2010/account/conference/participant.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,7 @@ def create(
amd_status_callback: Union[str, object] = values.unset,
amd_status_callback_method: Union[str, object] = values.unset,
trim: Union[str, object] = values.unset,
call_token: Union[str, object] = values.unset,
) -> ParticipantInstance:
"""
Create the ParticipantInstance
Expand Down Expand Up @@ -622,6 +623,7 @@ def create(
: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.
: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`.
: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`.
: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.
:returns: The created ParticipantInstance
"""
Expand Down Expand Up @@ -682,6 +684,7 @@ def create(
"AmdStatusCallback": amd_status_callback,
"AmdStatusCallbackMethod": amd_status_callback_method,
"Trim": trim,
"CallToken": call_token,
}
)

Expand Down Expand Up @@ -749,6 +752,7 @@ async def create_async(
amd_status_callback: Union[str, object] = values.unset,
amd_status_callback_method: Union[str, object] = values.unset,
trim: Union[str, object] = values.unset,
call_token: Union[str, object] = values.unset,
) -> ParticipantInstance:
"""
Asynchronously create the ParticipantInstance
Expand Down Expand Up @@ -800,6 +804,7 @@ async def create_async(
: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.
: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`.
: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`.
: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.
:returns: The created ParticipantInstance
"""
Expand Down Expand Up @@ -860,6 +865,7 @@ async def create_async(
"AmdStatusCallback": amd_status_callback,
"AmdStatusCallbackMethod": amd_status_callback_method,
"Trim": trim,
"CallToken": call_token,
}
)

Expand Down
2 changes: 2 additions & 0 deletions twilio/rest/flex_api/v1/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ class Status(object):
:ivar flex_ui_status_report: Configurable parameters for Flex UI Status report.
:ivar agent_conv_end_methods: Agent conversation end methods.
:ivar citrix_voice_vdi: Citrix voice vdi configuration and settings.
:ivar offline_config: Presence and presence ttl configuration
"""

def __init__(self, version: Version, payload: Dict[str, Any]):
Expand Down Expand Up @@ -184,6 +185,7 @@ def __init__(self, version: Version, payload: Dict[str, Any]):
self.citrix_voice_vdi: Optional[Dict[str, object]] = payload.get(
"citrix_voice_vdi"
)
self.offline_config: Optional[Dict[str, object]] = payload.get("offline_config")

self._context: Optional[ConfigurationContext] = None

Expand Down
44 changes: 11 additions & 33 deletions twilio/rest/intelligence/v2/transcript/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,33 +117,23 @@ async def delete_async(self) -> bool:
"""
return await self._proxy.delete_async()

def fetch(
self, redacted: Union[bool, object] = values.unset
) -> "TranscriptInstance":
def fetch(self) -> "TranscriptInstance":
"""
Fetch the TranscriptInstance
:param redacted: Grant access to PII Redacted/Unredacted Transcript. The default is `true` to access redacted Transcript.
:returns: The fetched TranscriptInstance
"""
return self._proxy.fetch(
redacted=redacted,
)
return self._proxy.fetch()

async def fetch_async(
self, redacted: Union[bool, object] = values.unset
) -> "TranscriptInstance":
async def fetch_async(self) -> "TranscriptInstance":
"""
Asynchronous coroutine to fetch the TranscriptInstance
:param redacted: Grant access to PII Redacted/Unredacted Transcript. The default is `true` to access redacted Transcript.
:returns: The fetched TranscriptInstance
"""
return await self._proxy.fetch_async(
redacted=redacted,
)
return await self._proxy.fetch_async()

@property
def media(self) -> MediaList:
Expand Down Expand Up @@ -220,48 +210,36 @@ async def delete_async(self) -> bool:
uri=self._uri,
)

def fetch(self, redacted: Union[bool, object] = values.unset) -> TranscriptInstance:
def fetch(self) -> TranscriptInstance:
"""
Fetch the TranscriptInstance
:param redacted: Grant access to PII Redacted/Unredacted Transcript. The default is `true` to access redacted Transcript.
:returns: The fetched TranscriptInstance
"""

data = values.of(
{
"Redacted": redacted,
}
payload = self._version.fetch(
method="GET",
uri=self._uri,
)

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

return TranscriptInstance(
self._version,
payload,
sid=self._solution["sid"],
)

async def fetch_async(
self, redacted: Union[bool, object] = values.unset
) -> TranscriptInstance:
async def fetch_async(self) -> TranscriptInstance:
"""
Asynchronous coroutine to fetch the TranscriptInstance
:param redacted: Grant access to PII Redacted/Unredacted Transcript. The default is `true` to access redacted Transcript.
:returns: The fetched TranscriptInstance
"""

data = values.of(
{
"Redacted": redacted,
}
)

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

return TranscriptInstance(
Expand Down
8 changes: 4 additions & 4 deletions twilio/rest/intelligence/v2/transcript/media.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def fetch(self, redacted: Union[bool, object] = values.unset) -> "MediaInstance"
"""
Fetch the MediaInstance
:param redacted: Grant access to PII Redacted/Unredacted Media. The default is `true` to access redacted media.
:param redacted: Grant access to PII Redacted/Unredacted Media. If redaction is enabled, the default is `true` to access redacted media.
:returns: The fetched MediaInstance
"""
Expand All @@ -78,7 +78,7 @@ async def fetch_async(
"""
Asynchronous coroutine to fetch the MediaInstance
:param redacted: Grant access to PII Redacted/Unredacted Media. The default is `true` to access redacted media.
:param redacted: Grant access to PII Redacted/Unredacted Media. If redaction is enabled, the default is `true` to access redacted media.
:returns: The fetched MediaInstance
"""
Expand Down Expand Up @@ -116,7 +116,7 @@ def fetch(self, redacted: Union[bool, object] = values.unset) -> MediaInstance:
"""
Fetch the MediaInstance
:param redacted: Grant access to PII Redacted/Unredacted Media. The default is `true` to access redacted media.
:param redacted: Grant access to PII Redacted/Unredacted Media. If redaction is enabled, the default is `true` to access redacted media.
:returns: The fetched MediaInstance
"""
Expand All @@ -141,7 +141,7 @@ async def fetch_async(
"""
Asynchronous coroutine to fetch the MediaInstance
:param redacted: Grant access to PII Redacted/Unredacted Media. The default is `true` to access redacted media.
:param redacted: Grant access to PII Redacted/Unredacted Media. If redaction is enabled, the default is `true` to access redacted media.
:returns: The fetched MediaInstance
"""
Expand Down
Loading

0 comments on commit 59e81bf

Please sign in to comment.