Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
tiwarishubham635 authored Apr 4, 2024
2 parents 565318b + d244c07 commit 54b6a37
Show file tree
Hide file tree
Showing 37 changed files with 532 additions and 2,915 deletions.
62 changes: 62 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,68 @@ twilio-python Changelog

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

[2024-04-04] Version 9.0.4
--------------------------
**Api**
- Correct conference filtering by date_created and date_updated documentation, clarifying that times are UTC.

**Flex**
- Remove optional parameter from `plugins` and it to `plugin_versions`

**Lookups**
- Add new `pre_fill` package to the lookup response

**Messaging**
- Cleanup api.messaging.next-gen from Messaging Services endpoints
- Readd Sending-Window after fixing test failure

**Verify**
- Add `whatsapp.msg_service_sid` and `whatsapp.from` parameters to create, update, get and list of services endpoints

**Voice**
- Correct conference filtering by date_created and date_updated documentation, clarifying that times are UTC.

**Twiml**
- Add new `token_type` value `payment-method` for `Pay` verb


[2024-04-01] Version 9.0.3
--------------------------
**Api**
- Add property `queue_time` to conference participant resource
- Update RiskCheck documentation
- Correct call filtering by start and end time documentation, clarifying that times are UTC.

**Flex**
- Adding optional parameter to `plugins`

**Media**
- Remove API: MediaProcessor

**Messaging**
- Remove Sending-Window due to test failure
- Add Sending-Window as a response property to Messaging Services, gated by a beta feature flag

**Numbers**
- Correct valid_until_date field to be visible in Bundles resource
- Adding port_in_status field to the Port In resource and phone_number_status and sid fields to the Port In Phone Number resource

**Oauth**
- Modified token endpoint response
- Added refresh_token and scope as optional parameter to token endpoint

**Trusthub**
- Add update inquiry endpoint in compliance_registration.
- Add new field in themeSetId in compliance_registration.

**Voice**
- Correct call filtering by start and end time documentation, clarifying that times are UTC.

**Twiml**
- Add support for new Google voices (Q1 2024) for `Say` verb - gu-IN voices
- Add support for new Amazon Polly and Google voices (Q1 2024) for `Say` verb - Niamh (en-IE) and Sofie (da-DK) voices


[2024-03-15] Version 9.0.2
--------------------------
**Oauth**
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

setup(
name="twilio",
version="9.0.2",
version="9.0.4",
description="Twilio API client and TwiML generator",
author="Twilio",
help_center="https://www.twilio.com/help/contact",
Expand Down
2 changes: 1 addition & 1 deletion twilio/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version_info__ = ("9", "0", "2")
__version_info__ = ("9", "0", "4")
__version__ = ".".join(__version_info__)
15 changes: 0 additions & 15 deletions twilio/rest/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
from twilio.rest.intelligence import Intelligence
from twilio.rest.ip_messaging import IpMessaging
from twilio.rest.lookups import Lookups
from twilio.rest.media import Media
from twilio.rest.preview_messaging import PreviewMessaging
from twilio.rest.messaging import Messaging
from twilio.rest.microvisor import Microvisor
Expand Down Expand Up @@ -136,7 +135,6 @@ def __init__(
self._intelligence: Optional["Intelligence"] = None
self._ip_messaging: Optional["IpMessaging"] = None
self._lookups: Optional["Lookups"] = None
self._media: Optional["Media"] = None
self._preview_messaging: Optional["PreviewMessaging"] = None
self._messaging: Optional["Messaging"] = None
self._microvisor: Optional["Microvisor"] = None
Expand Down Expand Up @@ -329,19 +327,6 @@ def lookups(self) -> "Lookups":
self._lookups = Lookups(self)
return self._lookups

@property
def media(self) -> "Media":
"""
Access the Media Twilio Domain
:returns: Media Twilio Domain
"""
if self._media is None:
from twilio.rest.media import Media

self._media = Media(self)
return self._media

@property
def preview_messaging(self) -> "PreviewMessaging":
"""
Expand Down
80 changes: 40 additions & 40 deletions twilio/rest/api/v2010/account/call/__init__.py

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions twilio/rest/api/v2010/account/call/payment.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class Status(object):
class TokenType(object):
ONE_TIME = "one-time"
REUSABLE = "reusable"
PAYMENT_METHOD = "payment-method"

"""
:ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Payments resource.
Expand Down
80 changes: 40 additions & 40 deletions twilio/rest/api/v2010/account/conference/__init__.py

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions twilio/rest/api/v2010/account/conference/participant.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class Status(object):
:ivar hold: Whether the participant is on hold. Can be `true` or `false`.
:ivar start_conference_on_enter: Whether the conference starts when the participant joins the conference, if it has not already started. Can be: `true` or `false` and the default is `true`. If `false` and the conference has not started, the participant is muted and hears background music until another participant starts the conference.
:ivar status:
:ivar queue_time: The wait time in milliseconds before participant's call is placed. Only available in the response to a create participant request.
:ivar uri: The URI of the resource, relative to `https://api.twilio.com`.
"""

Expand Down Expand Up @@ -80,6 +81,7 @@ def __init__(
"start_conference_on_enter"
)
self.status: Optional["ParticipantInstance.Status"] = payload.get("status")
self.queue_time: Optional[str] = payload.get("queue_time")
self.uri: Optional[str] = payload.get("uri")

self._solution = {
Expand Down
Loading

0 comments on commit 54b6a37

Please sign in to comment.