8000 [Librarian] Regenerated @ c3db20dd5f24647ef2bd3fb8b955496c59bb22bd · twilio/twilio-python@ced068b · GitHub
[go: up one dir, main page]

Skip to content

Commit ced068b

Browse files
committed
[Librarian] Regenerated @ c3db20dd5f24647ef2bd3fb8b955496c59bb22bd
1 parent 2287a7b commit ced068b

File tree

583 files changed

+4074
-15678
lines changed
  • autopilot
  • bulkexports
  • chat
  • content
  • conversations
  • events
  • flex_api
  • frontline_api
  • insights
  • intelligence
  • ip_messaging
  • lookups
  • media
  • messaging
  • microvisor
  • monitor
  • notify
  • numbers
  • oauth
  • preview
  • pricing
  • proxy
  • routes
  • v2
  • serverless
  • studio
  • supersim
  • sync
  • taskrouter
  • trunking
  • trusthub
  • verify
  • video
  • voice
  • wireless
  • Some content is hidden

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

    583 files changed

    +4074
    -15678
    lines changed

    CHANGES.md

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

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

    6+
    [2024-02-09] Version 8.13.0
    7+
    ---------------------------
    8+
    **Library - Fix**
    9+
    - [PR #753](https://github.com/twilio/twilio-python/pull/753): added boolean_to_string converter. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
    10+
    11+
    **Library - Chore**
    12+
    - [PR #758](https://github.com/twilio/twilio-python/pull/758): disable cluster test. Thanks to [@sbansla](https://github.com/sbansla)!
    13+
    - [PR #760](https://github.com/twilio/twilio-python/pull/760): run make prettier. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
    14+
    15+
    **Api**
    16+
    - Updated service base url for connect apps and authorized connect apps APIs **(breaking change)**
    17+
    - Update documentation to reflect RiskCheck GA
    18+
    - Added optional parameter `CallToken` for create participant api
    19+
    20+
    **Events**
    21+
    - Marked as GA
    22+
    23+
    **Flex**
    24+
    - Adding `flex_instance_sid` to Flex Configuration
    25+
    - Adding `provisioning_status` for Email Manager
    26+
    - Adding `offline_config` to Flex Configuration
    27+
    28+
    **Insights**
    29+
    - add flag to restrict access to unapid customers
    30+
    - decommission voice-qualitystats-endpoint role
    31+
    32+
    **Intelligence**
    33+
    - Add text-generation operator (for example conversation summary) results to existing OperatorResults collection.
    34+
    35+
    **Lookups**
    36+
    - Remove `carrier` field from `sms_pumping_risk` and leave `carrier_risk_category` **(breaking change)**
    37+
    - Remove carrier information from call forwarding package **(breaking change)**
    38+
    39+
    **Messaging**
    40+
    - Add update instance endpoints to us_app_to_person api
    41+
    - Add tollfree edit_allowed and edit_reason fields
    42+
    - Update Phone Number, Short Code, Alpha Sender, US A2P and Channel Sender documentation
    43+
    - Add DELETE support to Tollfree Verification resource
    44+
    45+
    **Numbers**
    46+
    - Add Get Port In request api
    47+
    48+
    **Push**
    49+
    - Migrated to new Push API V4 with Resilient Notification Delivery.
    50+
    51+
    **Serverless**
    52+
    - Add node18 as a valid Build runtime
    53+
    54+
    **Taskrouter**
    55+
    - Add `jitter_buffer_size` param in update reservation
    56+
    - Add container attribute to task_queue_bulk_real_time_statistics endpoint
    57+
    - Remove beta_feature check on task_queue_bulk_real_time_statistics endpoint
    58+
    59+
    **Trusthub**
    60+
    - Add optional field NotificationEmail to the POST /v1/ComplianceInquiries/Customers/Initialize API
    61+
    - Add additional optional fields in compliance_tollfree_inquiry.json
    62+
    - Rename did to tollfree_phone_number in compliance_tollfree_inquiry.json
    63+
    - Add new optional field notification_email to compliance_tollfree_inquiry.json
    64+
    65+
    **Verify**
    66+
    - `Tags` property added again to Public Docs **(breaking change)**
    67+
    - Remove `Tags` from Public Docs **(breaking change)**
    68+
    - Add `VerifyEventSubscriptionEnabled` parameter to service create and update endpoints.
    69+
    - Add `Tags` optional parameter on Verification creation.
    70+
    - Update Verify TOTP maturity to GA.
    71+
    72+
    673
    [2024-01-25] Version 8.12.0
    774
    ---------------------------
    875
    **Oauth**

    twilio/rest/__init__.py

    Lines changed: 0 additions & 30 deletions
    Original file line numberDiff line numberDiff line change
    @@ -16,7 +16,6 @@
    1616
    if TYPE_CHECKING:
    1717
    from twilio.rest.accounts import Accounts
    1818
    from twilio.rest.api import Api
    19-
    from twilio.rest.autopilot import Autopilot
    2019
    from twilio.rest.bulkexports import Bulkexports
    2120
    from twilio.rest.chat import Chat
    2221
    from twilio.rest.content import Content
    @@ -34,7 +33,6 @@
    3433
    from twilio.rest.monitor import Monitor
    3534
    from twilio.rest.notify import Notify
    3635
    from twilio.rest.numbers import Numbers
    37-
    from twilio.rest.oauth import Oauth
    3836
    from twilio.rest.preview import Preview
    3937
    from twilio.rest.pricing import Pricing
    4038
    from twilio.rest.proxy import Proxy
    @@ -125,7 +123,6 @@ def __init__(
    125123
    # Domains
    126124
    self._accounts: Optional["Accounts"] = None
    127125
    self._api: Optional["Api"] = None
    128-
    self._autopilot: Optional["Autopilot"] = None
    129126
    self._bulkexports: Optional["Bulkexports"] = None
    130127
    self._chat: Optional["Chat"] = None
    131128
    self._content: Optional["Content"] = None
    @@ -143,7 +140,6 @@ def __init__(
    143140
    self._monitor: Optional["Monitor"] = None
    144141
    self._notify: Optional["Notify"] = None
    145142
    self._numbers: Optional["Numbers"] = None
    146-
    self._oauth: Optional["Oauth"] = None
    147143
    self._preview: Optional["Preview"] = None
    148144
    self._pricing: Optional["Pricing"] = None
    149145
    self._proxy: Optional["Proxy"] = None
    @@ -186,19 +182,6 @@ def api(self) -> "Api":
    186182
    self._api = Api(self)
    187183
    return self._api
    188184

    189-
    @property
    190-
    def autopilot(self) -> "Autopilot":
    191-
    """
    192-
    Access the Autopilot Twilio Domain
    193-
    194-
    :returns: Autopilot Twilio Domain
    195-
    """
    196-
    if self._autopilot is None:
    197-
    from twilio.rest.autopilot import Autopilot
    198-
    199-
    self._autopilot = Autopilot(self)
    200-
    return self._autopilot
    201-
    202185
    @property
    203186
    def bulkexports(self) -> "Bulkexports":
    204187
    """
    @@ -420,19 +403,6 @@ def numbers(self) -> "Numbers":
    420403
    self._numbers = Numbers(self)
    421404
    return self._numbers
    422405

    423-
    @property
    424-
    def oauth(self) -> "Oauth":
    425-
    """
    426-
    Access the Oauth Twilio Domain
    427-
    428-
    :returns: Oauth Twilio Domain
    429-
    """
    430-
    if self._oauth is None:
    431-
    from twilio.rest.oauth import Oauth
    432-
    433-
    self._oauth = Oauth(self)
    434-
    return self._oauth
    435-
    436406
    @property
    437407
    def preview(self) -> "Preview":
    438408
    """

    twilio/rest/accounts/AccountsBase.py

    Lines changed: 1 addition & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -17,6 +17,7 @@
    1717

    1818

    1919
    class AccountsBase(Domain):
    20+
    2021
    def __init__(self, twilio: Client):
    2122
    """
    2223
    Initialize the Accounts Domain

    twilio/rest/accounts/v1/__init__.py

    Lines changed: 1 addition & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -22,6 +22,7 @@
    2222

    2323

    2424
    class V1(Version):
    25+
    2526
    def __init__(self, domain: Domain):
    2627
    """
    2728
    Initialize the V1 version of Accounts

    twilio/rest/accounts/v1/auth_token_promotion.py

    Lines changed: 2 additions & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -88,6 +88,7 @@ def __repr__(self) -> str:
    8888

    8989

    9090
    class AuthTokenPromotionContext(InstanceContext):
    91+
    9192
    def __init__(self, version: Version):
    9293
    """
    9394
    Initialize the AuthTokenPromotionContext
    @@ -143,6 +144,7 @@ def __repr__(self) -> str:
    143144

    144145

    145146
    class AuthTokenPromotionList(ListResource):
    147+
    146148
    def __init__(self, version: Version):
    147149
    """
    148150
    Initialize the AuthTokenPromotionList

    twilio/rest/accounts/v1/credential/__init__.py

    Lines changed: 1 addition & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -23,6 +23,7 @@
    2323

    2424

    2525
    class CredentialList(ListResource):
    26+
    2627
    def __init__(self, version: Version):
    2728
    """
    2829
    Initialize the CredentialList

    twilio/rest/accounts/v1/credential/aws.py

    Lines changed: 5 additions & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -141,6 +141,7 @@ def __repr__(self) -> str:
    141141

    142142

    143143
    class AwsContext(InstanceContext):
    144+
    144145
    def __init__(self, version: Version, sid: str):
    145146
    """
    146147
    Initialize the AwsContext
    @@ -275,6 +276,7 @@ def __repr__(self) -> str:
    275276

    276277

    277278
    class AwsPage(Page):
    279+
    278280
    def get_instance(self, payload: Dict[str, Any]) -> AwsInstance:
    279281
    """
    280282
    Build an instance of AwsInstance
    @@ -293,6 +295,7 @@ def __repr__(self) -> str:
    293295

    294296

    295297
    class AwsList(ListResource):
    298+
    296299
    def __init__(self, version: Version):
    297300
    """
    298301
    Initialize the AwsList
    @@ -319,6 +322,7 @@ def create(
    319322
    320323
    :returns: The created AwsInstance
    321324
    """
    325+
    322326
    data = values.of(
    323327
    {
    324328
    "Credentials": credentials,
    @@ -350,6 +354,7 @@ async def create_async(
    350354
    351355
    :returns: The created AwsInstance
    352356
    """
    357+
    353358
    data = values.of(
    354359
    {
    355360
    "Credentials": credentials,

    twilio/rest/accounts/v1/credential/public_key.py

    Lines changed: 5 additions & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -143,6 +143,7 @@ def __repr__(self) -> str:
    143143

    144144

    145145
    class PublicKeyContext(InstanceContext):
    146+
    146147
    def __init__(self, version: Version, sid: str):
    147148
    """
    148149
    Initialize the PublicKeyContext
    @@ -279,6 +280,7 @@ def __repr__(self) -> str:
    279280

    280281

    281282
    class PublicKeyPage(Page):
    283+
    282284
    def get_instance(self, payload: Dict[str, Any]) -> PublicKeyInstance:
    283285
    """
    284286
    Build an instance of PublicKeyInstance
    @@ -297,6 +299,7 @@ def __repr__(self) -> str:
    297299

    298300

    299301
    class PublicKeyList(ListResource):
    302+
    300303
    def __init__(self, version: Version):
    301304
    """
    302305
    Initialize the PublicKeyList
    @@ -323,6 +326,7 @@ def create(
    323326
    324327
    :returns: The created PublicKeyInstance
    325328
    """
    329+
    326330
    data = values.of(
    327331
    {
    328332
    "PublicKey": public_key,
    @@ -354,6 +358,7 @@ async def create_async(
    354358
    355359
    :returns: The created PublicKeyInstance
    356360
    """
    361+
    357362
    data = values.of(
    358363
    {
    359364
    "PublicKey": public_key,

    twilio/rest/accounts/v1/safelist.py

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

    15-
    from typing import Any, Dict, Optional
    15+
    from typing import Any, Dict, Optional, Union
    1616
    from twilio.base import values
    1717

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

    4444

    4545
    class SafelistList(ListResource):
    46+
    4647
    def __init__(self, version: Version):
    4748
    """
    4849
    Initialize the SafelistList
    @@ -62,6 +63,7 @@ def create(self, phone_number: str) -> SafelistInstance:
    6263
    6364
    :returns: The created SafelistInstance
    6465
    """
    66+
    6567
    data = values.of(
    6668
    {
    6769
    "PhoneNumber": phone_number,
    @@ -84,6 +86,7 @@ async def create_async(self, phone_number: str) -> SafelistInstance:
    8486
    8587
    :returns: The created SafelistInstance
    8688
    """
    89+
    8790
    data = values.of(
    8891
    {
    8992
    "PhoneNumber": phone_number,
    @@ -98,23 +101,77 @@ async def create_async(self, phone_number: str) -> SafelistInstance:
    98101

    99102
    return SafelistInstance(self._version, payload)
    100103

    101-
    def fetch(self) -> SafelistInstance:
    104+
    def delete(self, phone_number: Union[str, object] = values.unset) -> bool:
    105+
    """
    106+
    Asynchronously delete the SafelistInstance
    107+
    108+
    :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).
    109+
    :returns: True if delete succeeds, False otherwise
    110+
    """
    111+
    112+
    params = values.of(
    113+
    {
    114+
    "PhoneNumber": phone_number,
    115+
    }
    116+
    )
    117+
    return self._version.delete(method="DELETE", uri=self._uri, params=params)
    118+
    119+
    async def delete_async(
    120+
    self, phone_number: Union[str, object] = values.unset
    121+
    ) -> bool:
    122+
    """
    123+
    Asynchronously delete the SafelistInstance
    124+
    125+
    :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).
    126+
    :returns: True if delete succeeds, False otherwise
    127+
    """
    128+
    129+
    params = values.of(
    130+
    {
    131+
    "PhoneNumber": phone_number,
    132+
    }
    133+
    )
    134+
    return await self._version.delete_async(
    135+
    method="DELETE", uri=self._uri, params=params
    136+
    )
    137+
    138+
    def fetch(
    139+
    self, phone_number: Union[str, object] = values.unset
    140+
    ) -> SafelistInstance:
    102141
    """
    103142
    Asynchronously fetch the SafelistInstance
    104143
    144+
    :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).
    105145
    :returns: The fetched SafelistInstance
    106146
    """
    107-
    payload = self._version.fetch(method="GET", uri=self._uri)
    147+
    148+
    params = values.of(
    149+
    {
    150+
    "PhoneNumber": phone_number,
    151+
    }
    152+
    )
    153+
    payload = self._version.fetch(method="GET", uri=self._uri, params=params)
    108154

    109155
    return SafelistInstance(self._version, payload)
    110156

    111-
    async def fetch_async(self) -> SafelistInstance:
    157+
    async def fetch_async(
    158+
    self, phone_number: Union[str, object] = values.unset
    159+
    ) -> SafelistInstance:
    112160
    """
    113161
    Asynchronously fetch the SafelistInstance
    114162
    163+
    :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).
    115164
    :returns: The fetched SafelistInstance
    116165
    """
    117-
    payload = await self._version.fetch_async(method="GET", uri=self._uri)
    166+
    167+
    params = values.of(
    168+
    {
    169+
    "PhoneNumber": phone_number,
    170+
    }
    171+
    )
    172+
    payload = await self._version.fetch_async(
    173+
    method="GET", uri=self._uri, params=params
    174+
    )
    118175

    119176
    return SafelistInstance(self._version, payload)
    120177

    twilio/rest/accounts/v1/secondary_auth_token.py

    Lines changed: 2 additions & 0 deletions
    Original file line numberDiff line numberDiff line change
    @@ -106,6 +106,7 @@ def __repr__(self) -> str:
    106106

    107107

    108108
    class SecondaryAuthTokenContext(InstanceContext):
    109+
    109110
    def __init__(self, version: Version):
    110111
    """
    111112
    Initialize the SecondaryAuthTokenContext
    @@ -179,6 +180,7 @@ def __repr__(self) -> str:
    179180

    180181

    181182
    class SecondaryAuthTokenList(ListResource):
    183+
    182184
    def __init__(self, version: Version):
    183185
    """
    184186
    Initialize the SecondaryAuthTokenList

    0 commit comments

    Comments
     (0)
    0