Skip to content

Commit c715d10

Browse files
committed
[Librarian] Regenerated @ 2264f28906b87ae1f1aedbf72f8dc0e4b57a545a
1 parent bfb07a7 commit c715d10

File tree

16 files changed

+3543
-13
lines changed

16 files changed

+3543
-13
lines changed

CHANGES.md

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

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

6+
[2024-03-12] Version 9.0.1
7+
--------------------------
8+
**Library - Chore**
9+
- [PR #775](https://github.com/twilio/twilio-python/pull/775): removing preview.understand references. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
10+
11+
**Api**
12+
- Correct precedence documentation for application_sid vs status_callback in message creation
13+
- Mark MaxPrice as deprecated
14+
15+
**Flex**
16+
- Making `plugins` visibility to public
17+
18+
**Messaging**
19+
- Add new `errors` attribute to the Brand Registration resource.
20+
- Mark `brand_feedback` attribute as deprecated.
21+
- Mark `failure_reason` attribute as deprecated.
22+
- The new `errors` attribute is expected to provide additional information about Brand registration failures and feedback (if any has been provided by The Campaign Registry). Consumers should use this attribute instead of `brand_feedback` and `failure_reason`.
23+
24+
**Numbers**
25+
- Correcting mount_name for porting port in fetch API
26+
27+
**Trusthub**
28+
- Add new field in statusCallbackUrl in compliance_registration.
29+
- Add new field in isvRegisteringForSelfOrTenant in compliance_registration.
30+
31+
**Twiml**
32+
- Expanded description of Action parameter for Message verb
33+
34+
635
[2024-02-27] Version 9.0.0
736
--------------------------
837
**Note:** This release contains breaking changes, check our [upgrade guide](./UPGRADE.md###-2024-02-20-8xx-to-9xx) for detailed migration notes.

twilio/rest/api/v2010/account/message/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -508,8 +508,8 @@ def create(
508508
509509
:param to: The recipient's phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (for SMS/MMS) or [channel address](https://www.twilio.com/docs/messaging/channels), e.g. `whatsapp:+15552229999`.
510510
:param status_callback: The URL of the endpoint to which Twilio sends [Message status callback requests](https://www.twilio.com/docs/sms/api/message-resource#twilios-request-to-the-statuscallback-url). URL must contain a valid hostname and underscores are not allowed. If you include this parameter with the `messaging_service_sid`, Twilio uses this URL instead of the Status Callback URL of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource).
511-
:param application_sid: The SID of the associated [TwiML Application](https://www.twilio.com/docs/usage/api/applications). If this parameter is provided, the `status_callback` parameter of this request is ignored; [Message status callback requests](https://www.twilio.com/docs/sms/api/message-resource#twilios-request-to-the-statuscallback-url) are sent to the TwiML App's `message_status_callback` URL.
512-
:param max_price: The maximum price in US dollars that you are willing to pay for this Message's delivery. The value can have up to four decimal places. When the `max_price` parameter is provided, the cost of a message is checked before it is sent. If the cost exceeds `max_price`, the message is not sent and the Message `status` is `failed`.
511+
:param application_sid: The SID of the associated [TwiML Application](https://www.twilio.com/docs/usage/api/applications). [Message status callback requests](https://www.twilio.com/docs/sms/api/message-resource#twilios-request-to-the-statuscallback-url) are sent to the TwiML App's `message_status_callback` URL. Note that the `status_callback` parameter of a request takes priority over the `application_sid` parameter; if both are included `application_sid` is ignored.
512+
:param max_price: [DEPRECATED] This parameter will no longer have any effect as of 2024-06-03.
513513
:param provide_feedback: Boolean indicating whether or not you intend to provide delivery confirmation feedback to Twilio (used in conjunction with the [Message Feedback subresource](https://www.twilio.com/docs/sms/api/message-feedback-resource)). Default value is `false`.
514514
:param attempt: Total number of attempts made (including this request) to send the message regardless of the provider used
515515
:param validity_period: The maximum length in seconds that the Message can remain in Twilio's outgoing message queue. If a queued Message exceeds the `validity_period`, the Message is not sent. Accepted values are integers from `1` to `14400`. Default value is `14400`. A `validity_period` greater than `5` is recommended. [Learn more about the validity period](https://www.twilio.com/blog/take-more-control-of-outbound-messages-using-validity-period-html)
@@ -606,8 +606,8 @@ async def create_async(
606606
607607
:param to: The recipient's phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (for SMS/MMS) or [channel address](https://www.twilio.com/docs/messaging/channels), e.g. `whatsapp:+15552229999`.
608608
:param status_callback: The URL of the endpoint to which Twilio sends [Message status callback requests](https://www.twilio.com/docs/sms/api/message-resource#twilios-request-to-the-statuscallback-url). URL must contain a valid hostname and underscores are not allowed. If you include this parameter with the `messaging_service_sid`, Twilio uses this URL instead of the Status Callback URL of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource).
609-
:param application_sid: The SID of the associated [TwiML Application](https://www.twilio.com/docs/usage/api/applications). If this parameter is provided, the `status_callback` parameter of this request is ignored; [Message status callback requests](https://www.twilio.com/docs/sms/api/message-resource#twilios-request-to-the-statuscallback-url) are sent to the TwiML App's `message_status_callback` URL.
610-
:param max_price: The maximum price in US dollars that you are willing to pay for this Message's delivery. The value can have up to four decimal places. When the `max_price` parameter is provided, the cost of a message is checked before it is sent. If the cost exceeds `max_price`, the message is not sent and the Message `status` is `failed`.
609+
:param application_sid: The SID of the associated [TwiML Application](https://www.twilio.com/docs/usage/api/applications). [Message status callback requests](https://www.twilio.com/docs/sms/api/message-resource#twilios-request-to-the-statuscallback-url) are sent to the TwiML App's `message_status_callback` URL. Note that the `status_callback` parameter of a request takes priority over the `application_sid` parameter; if both are included `application_sid` is ignored.
610+
:param max_price: [DEPRECATED] This parameter will no longer have any effect as of 2024-06-03.
611611
:param provide_feedback: Boolean indicating whether or not you intend to provide delivery confirmation feedback to Twilio (used in conjunction with the [Message Feedback subresource](https://www.twilio.com/docs/sms/api/message-feedback-resource)). Default value is `false`.
612612
:param attempt: Total number of attempts made (including this request) to send the message regardless of the provider used
613613
:param validity_period: The maximum length in seconds that the Message can remain in Twilio's outgoing message queue. If a queued Message exceeds the `validity_period`, the Message is not sent. Accepted values are integers from `1` to `14400`. Default value is `14400`. A `validity_period` greater than `5` is recommended. [Learn more about the validity period](https://www.twilio.com/blog/take-more-control-of-outbound-messages-using-validity-period-html)

twilio/rest/content/v1/legacy_content.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class LegacyContentInstance(InstanceResource):
3131
:ivar friendly_name: A string name used to describe the Content resource. Not visible to the end recipient.
3232
:ivar language: Two-letter (ISO 639-1) language code (e.g., en) identifying the language the Content resource is in.
3333
:ivar variables: Defines the default placeholder values for variables included in the Content resource. e.g. {\"1\": \"Customer_Name\"}.
34-
:ivar types: The [Content types](https://www.twilio.com/docs/content/content-types-overview) (e.g. twilio/text) for this Content resource.
34+
:ivar types: The [Content types](https://www.twilio.com/docs/content-api/content-types-overview) (e.g. twilio/text) for this Content resource.
3535
:ivar legacy_template_name: The string name of the legacy content template associated with this Content resource, unique across all template names for its account. Only lowercase letters, numbers and underscores are allowed
3636
:ivar legacy_body: The string body field of the legacy content template associated with this Content resource
3737
:ivar url: The URL of the resource, relative to `https://content.twilio.com`.

twilio/rest/flex_api/v1/__init__.py

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@
4040
)
4141
from twilio.rest.flex_api.v1.insights_user_roles import InsightsUserRolesList
4242
from twilio.rest.flex_api.v1.interaction import InteractionList
43+
from twilio.rest.flex_api.v1.plugin import PluginList
44+
from twilio.rest.flex_api.v1.plugin_archive import PluginArchiveList
45+
from twilio.rest.flex_api.v1.plugin_configuration import PluginConfigurationList
46+
from twilio.rest.flex_api.v1.plugin_configuration_archive import (
47+
PluginConfigurationArchiveList,
48+
)
49+
from twilio.rest.flex_api.v1.plugin_release import PluginReleaseList
50+
from twilio.rest.flex_api.v1.plugin_version_archive import PluginVersionArchiveList
4351
from twilio.rest.flex_api.v1.provisioning_status import ProvisioningStatusList
4452
from twilio.rest.flex_api.v1.web_channel import WebChannelList
4553

@@ -76,6 +84,14 @@ def __init__(self, domain: Domain):
7684
self._insights_settings_comment: Optional[InsightsSettingsCommentList] = None
7785
self._insights_user_roles: Optional[InsightsUserRolesList] = None
7886
self._interaction: Optional[InteractionList] = None
87+
self._plugins: Optional[PluginList] = None
88+
self._plugin_archive: Optional[PluginArchiveList] = None
89+
self._plugin_configurations: Optional[PluginConfigurationList] = None
90+
self._plugin_configuration_archive: Optional[PluginConfigurationArchiveList] = (
91+
None
92+
)
93+
self._plugin_releases: Optional[PluginReleaseList] = None
94+
self._plugin_version_archive: Optional[PluginVersionArchiveList] = None
7995
self._provisioning_status: Optional[ProvisioningStatusList] = None
8096
self._web_channel: Optional[WebChannelList] = None
8197

@@ -173,6 +189,42 @@ def interaction(self) -> InteractionList:
173189
self._interaction = InteractionList(self)
174190
return self._interaction
175191

192+
@property
193+
def plugins(self) -> PluginList:
194+
if self._plugins is None:
195+
self._plugins = PluginList(self)
196+
return self._plugins
197+
198+
@property
199+
def plugin_archive(self) -> PluginArchiveList:
200+
if self._plugin_archive is None:
201+
self._plugin_archive = PluginArchiveList(self)
202+
return self._plugin_archive
203+
204+
@property
205+
def plugin_configurations(self) -> PluginConfigurationList:
206+
if self._plugin_configurations is None:
207+
self._plugin_configurations = PluginConfigurationList(self)
208+
return self._plugin_configurations
209+
210+
@property
211+
def plugin_configuration_archive(self) -> PluginConfigurationArchiveList:
212+
if self._plugin_configuration_archive is None:
213+
self._plugin_configuration_archive = PluginConfigurationArchiveList(self)
214+
return self._plugin_configuration_archive
215+
216+
@property
217+
def plugin_releases(self) -> PluginReleaseList:
218+
if self._plugin_releases is None:
219+
self._plugin_releases = PluginReleaseList(self)
220+
return self._plugin_releases
221+
222+
@property
223+
def plugin_version_archive(self) -> PluginVersionArchiveList:
224+
if self._plugin_version_archive is None:
225+
self._plugin_version_archive = PluginVersionArchiveList(self)
226+
return self._plugin_version_archive
227+
176228
@property
177229
def provisioning_status(self) -> ProvisioningStatusList:
178230
if self._provisioning_status is None:

0 commit comments

Comments
 (0)