Skip to content

Commit

Permalink
[Librarian] Regenerated @ c3db20dd5f24647ef2bd3fb8b955496c59bb22bd
Browse files Browse the repository at this point in the history
  • Loading branch information
twilio-dx committed Feb 9, 2024
1 parent 2287a7b commit ced068b
Show file tree
Hide file tree
Showing 583 changed files with 4,074 additions and 15,678 deletions.
67 changes: 67 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,73 @@ twilio-python Changelog

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

[2024-02-09] Version 8.13.0
---------------------------
**Library - Fix**
- [PR #753](https://github.com/twilio/twilio-python/pull/753): added boolean_to_string converter. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!

**Library - Chore**
- [PR #758](https://github.com/twilio/twilio-python/pull/758): disable cluster test. Thanks to [@sbansla](https://github.com/sbansla)!
- [PR #760](https://github.com/twilio/twilio-python/pull/760): run make prettier. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!

**Api**
- Updated service base url for connect apps and authorized connect apps APIs **(breaking change)**
- Update documentation to reflect RiskCheck GA
- Added optional parameter `CallToken` for create participant api

**Events**
- Marked as GA

**Flex**
- Adding `flex_instance_sid` to Flex Configuration
- Adding `provisioning_status` for Email Manager
- Adding `offline_config` to Flex Configuration

**Insights**
- add flag to restrict access to unapid customers
- decommission voice-qualitystats-endpoint role

**Intelligence**
- Add text-generation operator (for example conversation summary) results to existing OperatorResults collection.

**Lookups**
- Remove `carrier` field from `sms_pumping_risk` and leave `carrier_risk_category` **(breaking change)**
- Remove carrier information from call forwarding package **(breaking change)**

**Messaging**
- Add update instance endpoints to us_app_to_person api
- Add tollfree edit_allowed and edit_reason fields
- Update Phone Number, Short Code, Alpha Sender, US A2P and Channel Sender documentation
- Add DELETE support to Tollfree Verification resource

**Numbers**
- Add Get Port In request api

**Push**
- Migrated to new Push API V4 with Resilient Notification Delivery.

**Serverless**
- Add node18 as a valid Build runtime

**Taskrouter**
- Add `jitter_buffer_size` param in update reservation
- Add container attribute to task_queue_bulk_real_time_statistics endpoint
- Remove beta_feature check on task_queue_bulk_real_time_statistics endpoint

**Trusthub**
- Add optional field NotificationEmail to the POST /v1/ComplianceInquiries/Customers/Initialize API
- Add additional optional fields in compliance_tollfree_inquiry.json
- Rename did to tollfree_phone_number in compliance_tollfree_inquiry.json
- Add new optional field notification_email to compliance_tollfree_inquiry.json

**Verify**
- `Tags` property added again to Public Docs **(breaking change)**
- Remove `Tags` from Public Docs **(breaking change)**
- Add `VerifyEventSubscriptionEnabled` parameter to service create and update endpoints.
- Add `Tags` optional parameter on Verification creation.
- Update Verify TOTP maturity to GA.


[2024-01-25] Version 8.12.0
---------------------------
**Oauth**
Expand Down
30 changes: 0 additions & 30 deletions twilio/rest/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
if TYPE_CHECKING:
from twilio.rest.accounts import Accounts
from twilio.rest.api import Api
from twilio.rest.autopilot import Autopilot
from twilio.rest.bulkexports import Bulkexports
from twilio.rest.chat import Chat
from twilio.rest.content import Content
Expand All @@ -34,7 +33,6 @@
from twilio.rest.monitor import Monitor
from twilio.rest.notify import Notify
from twilio.rest.numbers import Numbers
from twilio.rest.oauth import Oauth
from twilio.rest.preview import Preview
from twilio.rest.pricing import Pricing
from twilio.rest.proxy import Proxy
Expand Down Expand Up @@ -125,7 +123,6 @@ def __init__(
# Domains
self._accounts: Optional["Accounts"] = None
self._api: Optional["Api"] = None
self._autopilot: Optional["Autopilot"] = None
self._bulkexports: Optional["Bulkexports"] = None
self._chat: Optional["Chat"] = None
self._content: Optional["Content"] = None
Expand All @@ -143,7 +140,6 @@ def __init__(
self._monitor: Optional["Monitor"] = None
self._notify: Optional["Notify"] = None
self._numbers: Optional["Numbers"] = None
self._oauth: Optional["Oauth"] = None
self._preview: Optional["Preview"] = None
self._pricing: Optional["Pricing"] = None
self._proxy: Optional["Proxy"] = None
Expand Down Expand Up @@ -186,19 +182,6 @@ def api(self) -> "Api":
self._api = Api(self)
return self._api

@property
def autopilot(self) -> "Autopilot":
"""
Access the Autopilot Twilio Domain
:returns: Autopilot Twilio Domain
"""
if self._autopilot is None:
from twilio.rest.autopilot import Autopilot

self._autopilot = Autopilot(self)
return self._autopilot

@property
def bulkexports(self) -> "Bulkexports":
"""
Expand Down Expand Up @@ -420,19 +403,6 @@ def numbers(self) -> "Numbers":
self._numbers = Numbers(self)
return self._numbers

@property
def oauth(self) -> "Oauth":
"""
Access the Oauth Twilio Domain
:returns: Oauth Twilio Domain
"""
if self._oauth is None:
from twilio.rest.oauth import Oauth

self._oauth = Oauth(self)
return self._oauth

@property
def preview(self) -> "Preview":
"""
Expand Down
1 change: 1 addition & 0 deletions twilio/rest/accounts/AccountsBase.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@


class AccountsBase(Domain):

def __init__(self, twilio: Client):
"""
Initialize the Accounts Domain
Expand Down
1 change: 1 addition & 0 deletions twilio/rest/accounts/v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@


class V1(Version):

def __init__(self, domain: Domain):
"""
Initialize the V1 version of Accounts
Expand Down
2 changes: 2 additions & 0 deletions twilio/rest/accounts/v1/auth_token_promotion.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ def __repr__(self) -> str:


class AuthTokenPromotionContext(InstanceContext):

def __init__(self, version: Version):
"""
Initialize the AuthTokenPromotionContext
Expand Down Expand Up @@ -143,6 +144,7 @@ def __repr__(self) -> str:


class AuthTokenPromotionList(ListResource):

def __init__(self, version: Version):
"""
Initialize the AuthTokenPromotionList
Expand Down
1 change: 1 addition & 0 deletions twilio/rest/accounts/v1/credential/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@


class CredentialList(ListResource):

def __init__(self, version: Version):
"""
Initialize the CredentialList
Expand Down
5 changes: 5 additions & 0 deletions twilio/rest/accounts/v1/credential/aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ def __repr__(self) -> str:


class AwsContext(InstanceContext):

def __init__(self, version: Version, sid: str):
"""
Initialize the AwsContext
Expand Down Expand Up @@ -275,6 +276,7 @@ def __repr__(self) -> str:


class AwsPage(Page):

def get_instance(self, payload: Dict[str, Any]) -> AwsInstance:
"""
Build an instance of AwsInstance
Expand All @@ -293,6 +295,7 @@ def __repr__(self) -> str:


class AwsList(ListResource):

def __init__(self, version: Version):
"""
Initialize the AwsList
Expand All @@ -319,6 +322,7 @@ def create(
:returns: The created AwsInstance
"""

data = values.of(
{
"Credentials": credentials,
Expand Down Expand Up @@ -350,6 +354,7 @@ async def create_async(
:returns: The created AwsInstance
"""

data = values.of(
{
"Credentials": credentials,
Expand Down
5 changes: 5 additions & 0 deletions twilio/rest/accounts/v1/credential/public_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ def __repr__(self) -> str:


class PublicKeyContext(InstanceContext):

def __init__(self, version: Version, sid: str):
"""
Initialize the PublicKeyContext
Expand Down Expand Up @@ -279,6 +280,7 @@ def __repr__(self) -> str:


class PublicKeyPage(Page):

def get_instance(self, payload: Dict[str, Any]) -> PublicKeyInstance:
"""
Build an instance of PublicKeyInstance
Expand All @@ -297,6 +299,7 @@ def __repr__(self) -> str:


class PublicKeyList(ListResource):

def __init__(self, version: Version):
"""
Initialize the PublicKeyList
Expand All @@ -323,6 +326,7 @@ def create(
:returns: The created PublicKeyInstance
"""

data = values.of(
{
"PublicKey": public_key,
Expand Down Expand Up @@ -354,6 +358,7 @@ async def create_async(
:returns: The created PublicKeyInstance
"""

data = values.of(
{
"PublicKey": public_key,
Expand Down
67 changes: 62 additions & 5 deletions twilio/rest/accounts/v1/safelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
Do not edit the class manually.
"""

from typing import Any, Dict, Optional
from typing import Any, Dict, Optional, Union
from twilio.base import values

from twilio.base.instance_resource import InstanceResource
Expand Down Expand Up @@ -43,6 +43,7 @@ def __repr__(self) -> str:


class SafelistList(ListResource):

def __init__(self, version: Version):
"""
Initialize the SafelistList
Expand All @@ -62,6 +63,7 @@ def create(self, phone_number: str) -> SafelistInstance:
:returns: The created SafelistInstance
"""

data = values.of(
{
"PhoneNumber": phone_number,
Expand All @@ -84,6 +86,7 @@ async def create_async(self, phone_number: str) -> SafelistInstance:
:returns: The created SafelistInstance
"""

data = values.of(
{
"PhoneNumber": phone_number,
Expand All @@ -98,23 +101,77 @@ async def create_async(self, phone_number: str) -> SafelistInstance:

return SafelistInstance(self._version, payload)

def fetch(self) -> SafelistInstance:
def delete(self, phone_number: Union[str, object] = values.unset) -> bool:
"""
Asynchronously delete the SafelistInstance
:param phone_number: The phone number to be removed from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
:returns: True if delete succeeds, False otherwise
"""

params = values.of(
{
"PhoneNumber": phone_number,
}
)
return self._version.delete(method="DELETE", uri=self._uri, params=params)

async def delete_async(
self, phone_number: Union[str, object] = values.unset
) -> bool:
"""
Asynchronously delete the SafelistInstance
:param phone_number: The phone number to be removed from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
:returns: True if delete succeeds, False otherwise
"""

params = values.of(
{
"PhoneNumber": phone_number,
}
)
return await self._version.delete_async(
method="DELETE", uri=self._uri, params=params
)

def fetch(
self, phone_number: Union[str, object] = values.unset
) -> SafelistInstance:
"""
Asynchronously fetch the SafelistInstance
:param phone_number: The phone number to be fetched from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
:returns: The fetched SafelistInstance
"""
payload = self._version.fetch(method="GET", uri=self._uri)

params = values.of(
{
"PhoneNumber": phone_number,
}
)
payload = self._version.fetch(method="GET", uri=self._uri, params=params)

return SafelistInstance(self._version, payload)

async def fetch_async(self) -> SafelistInstance:
async def fetch_async(
self, phone_number: Union[str, object] = values.unset
) -> SafelistInstance:
"""
Asynchronously fetch the SafelistInstance
:param phone_number: The phone number to be fetched from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
:returns: The fetched SafelistInstance
"""
payload = await self._version.fetch_async(method="GET", uri=self._uri)

params = values.of(
{
"PhoneNumber": phone_number,
}
)
payload = await self._version.fetch_async(
method="GET", uri=self._uri, params=params
)

return SafelistInstance(self._version, payload)

Expand Down
2 changes: 2 additions & 0 deletions twilio/rest/accounts/v1/secondary_auth_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ def __repr__(self) -> str:


class SecondaryAuthTokenContext(InstanceContext):

def __init__(self, version: Version):
"""
Initialize the SecondaryAuthTokenContext
Expand Down Expand Up @@ -179,6 +180,7 @@ def __repr__(self) -> str:


class SecondaryAuthTokenList(ListResource):

def __init__(self, version: Version):
"""
Initialize the SecondaryAuthTokenList
Expand Down
Loading

0 comments on commit ced068b

Please sign in to comment.