Skip to content

Commit 80c5f9c

Browse files
committed
[Librarian] Regenerated @ b32d3e1eba2177c81eeca51181f67e618fe86dbe
1 parent 9991fab commit 80c5f9c

File tree

6 files changed

+70
-32
lines changed

6 files changed

+70
-32
lines changed

CHANGES.md

+19
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,25 @@ twilio-python Changelog
33

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

6+
[2023-09-07] Version 8.8.0
7+
--------------------------
8+
**Api**
9+
- Make message tagging parameters public **(breaking change)**
10+
11+
**Flex**
12+
- Adding `agent_conv_end_methods` to Flex Configuration
13+
14+
**Messaging**
15+
- Mark Mesasging Services fallback_to_long_code feature obsolete
16+
17+
**Numbers**
18+
- Add Create Port In request api
19+
- Renaming sid for bulk_hosting_sid and remove account_sid response field in numbers/v2/BulkHostedNumberOrders **(breaking change)**
20+
21+
**Pricing**
22+
- gate resources behind a beta_feature
23+
24+
625
[2023-08-24] Version 8.7.0
726
--------------------------
827
**Library - Test**

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

+8
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ class UpdateStatus(object):
8686
:ivar price_unit: The currency in which `price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format (e.g. `usd`, `eur`, `jpy`).
8787
:ivar api_version: The API version used to process the Message
8888
:ivar subresource_uris: A list of related resources identified by their URIs relative to `https://api.twilio.com`
89+
:ivar tags: A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message.
8990
"""
9091

9192
def __init__(
@@ -125,6 +126,7 @@ def __init__(
125126
self.subresource_uris: Optional[Dict[str, object]] = payload.get(
126127
"subresource_uris"
127128
)
129+
self.tags: Optional[Dict[str, object]] = payload.get("tags")
128130

129131
self._solution = {
130132
"account_sid": account_sid,
@@ -493,6 +495,7 @@ def create(
493495
send_at: Union[datetime, object] = values.unset,
494496
send_as_mms: Union[bool, object] = values.unset,
495497
content_variables: Union[str, object] = values.unset,
498+
tags: Union[str, object] = values.unset,
496499
risk_check: Union["MessageInstance.RiskCheck", object] = values.unset,
497500
from_: Union[str, object] = values.unset,
498501
messaging_service_sid: Union[str, object] = values.unset,
@@ -520,6 +523,7 @@ def create(
520523
:param send_at: The time that Twilio will send the message. Must be in ISO 8601 format.
521524
:param send_as_mms: If set to `true`, Twilio delivers the message as a single MMS message, regardless of the presence of media.
522525
:param content_variables: For [Content Editor/API](https://www.twilio.com/docs/content) only: Key-value pairs of [Template variables](https://www.twilio.com/docs/content/using-variables-with-content-api) and their substitution values. `content_sid` parameter must also be provided. If values are not defined in the `content_variables` parameter, the [Template's default placeholder values](https://www.twilio.com/docs/content/content-api-resources#create-templates) are used.
526+
:param tags: A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message. The object may contain up to 10 tags. Keys and values can each be up to 128 characters in length.
523527
:param risk_check:
524528
:param from_: The sender's Twilio phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/send-messages#use-an-alphanumeric-sender-id), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/docs/sms/api/short-code), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). The value of the `from` parameter must be a sender that is hosted within Twilio and belong to the Account creating the Message. If you are using `messaging_service_sid`, this parameter can be empty (Twilio assigns a `from` value from the Messaging Service's Sender Pool) or you can provide a specific sender from your Sender Pool.
525529
:param messaging_service_sid: The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/services) you want to associate with the Message. When this parameter is provided and the `from` parameter is omitted, Twilio selects the optimal sender from the Messaging Service's Sender Pool. You may also provide a `from` parameter if you want to use a specific Sender from the Sender Pool.
@@ -548,6 +552,7 @@ def create(
548552
"SendAt": serialize.iso8601_datetime(send_at),
549553
"SendAsMms": send_as_mms,
550554
"ContentVariables": content_variables,
555+
"Tags": tags,
551556
"RiskCheck": risk_check,
552557
"From": from_,
553558
"MessagingServiceSid": messaging_service_sid,
@@ -590,6 +595,7 @@ async def create_async(
590595
send_at: Union[datetime, object] = values.unset,
591596
send_as_mms: Union[bool, object] = values.unset,
592597
content_variables: Union[str, object] = values.unset,
598+
tags: Union[str, object] = values.unset,
593599
risk_check: Union["MessageInstance.RiskCheck", object] = values.unset,
594600
from_: Union[str, object] = values.unset,
595601
messaging_service_sid: Union[str, object] = values.unset,
@@ -617,6 +623,7 @@ async def create_async(
617623
:param send_at: The time that Twilio will send the message. Must be in ISO 8601 format.
618624
:param send_as_mms: If set to `true`, Twilio delivers the message as a single MMS message, regardless of the presence of media.
619625
:param content_variables: For [Content Editor/API](https://www.twilio.com/docs/content) only: Key-value pairs of [Template variables](https://www.twilio.com/docs/content/using-variables-with-content-api) and their substitution values. `content_sid` parameter must also be provided. If values are not defined in the `content_variables` parameter, the [Template's default placeholder values](https://www.twilio.com/docs/content/content-api-resources#create-templates) are used.
626+
:param tags: A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message. The object may contain up to 10 tags. Keys and values can each be up to 128 characters in length.
620627
:param risk_check:
621628
:param from_: The sender's Twilio phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/send-messages#use-an-alphanumeric-sender-id), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/docs/sms/api/short-code), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). The value of the `from` parameter must be a sender that is hosted within Twilio and belong to the Account creating the Message. If you are using `messaging_service_sid`, this parameter can be empty (Twilio assigns a `from` value from the Messaging Service's Sender Pool) or you can provide a specific sender from your Sender Pool.
622629
:param messaging_service_sid: The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/services) you want to associate with the Message. When this parameter is provided and the `from` parameter is omitted, Twilio selects the optimal sender from the Messaging Service's Sender Pool. You may also provide a `from` parameter if you want to use a specific Sender from the Sender Pool.
@@ -645,6 +652,7 @@ async def create_async(
645652
"SendAt": serialize.iso8601_datetime(send_at),
646653
"SendAsMms": send_as_mms,
647654
"ContentVariables": content_variables,
655+
"Tags": tags,
648656
"RiskCheck": risk_check,
649657
"From": from_,
650658
"MessagingServiceSid": messaging_service_sid,

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

+6-6
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ class Outcome(object):
2828
UNCONFIRMED = "unconfirmed"
2929

3030
"""
31-
:ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the MessageFeedback resource.
32-
:ivar message_sid: The SID of the Message resource for which the feedback was provided.
31+
:ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) associated with this MessageFeedback resource.
32+
:ivar message_sid: The SID of the Message resource associated with this MessageFeedback resource.
3333
:ivar outcome:
34-
:ivar date_created: The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
35-
:ivar date_updated: The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
34+
:ivar date_created: The date and time in GMT when this MessageFeedback resource was created, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
35+
:ivar date_updated: The date and time in GMT when this MessageFeedback resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
3636
:ivar uri: The URI of the resource, relative to `https://api.twilio.com`.
3737
"""
3838

@@ -77,8 +77,8 @@ def __init__(self, version: Version, account_sid: str, message_sid: str):
7777
Initialize the FeedbackList
7878
7979
:param version: Version that contains the resource
80-
:param account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource.
81-
:param message_sid: The SID of the Message resource for which the feedback was provided.
80+
:param account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) associated with the Message resource for which to create MessageFeedback.
81+
:param message_sid: The SID of the Message resource for which to create MessageFeedback.
8282
8383
"""
8484
super().__init__(version)

twilio/rest/flex_api/v1/configuration.py

+4
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ class Status(object):
7474
:ivar channel_configs: Settings for different limits for Flex Conversations channels attachments.
7575
:ivar debugger_integration: Configurable parameters for Debugger Integration.
7676
:ivar flex_ui_status_report: Configurable parameters for Flex UI Status report.
77+
:ivar agent_conv_end_methods: Agent conversation end methods.
7778
"""
7879

7980
def __init__(self, version: Version, payload: Dict[str, Any]):
@@ -176,6 +177,9 @@ def __init__(self, version: Version, payload: Dict[str, Any]):
176177
self.flex_ui_status_report: Optional[Dict[str, object]] = payload.get(
177178
"flex_ui_status_report"
178179
)
180+
self.agent_conv_end_methods: Optional[Dict[str, object]] = payload.get(
181+
"agent_conv_end_methods"
182+
)
179183

180184
self._context: Optional[ConfigurationContext] = None
181185

twilio/rest/messaging/v1/service/__init__.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class ScanMessageContent(object):
5252
:ivar mms_converter: Whether to enable the [MMS Converter](https://www.twilio.com/docs/messaging/services#mms-converter) for messages sent through the Service instance.
5353
:ivar smart_encoding: Whether to enable [Smart Encoding](https://www.twilio.com/docs/messaging/services#smart-encoding) for messages sent through the Service instance.
5454
:ivar scan_message_content:
55-
:ivar fallback_to_long_code: Whether to enable [Fallback to Long Code](https://www.twilio.com/docs/messaging/services#fallback-to-long-code) for messages sent through the Service instance.
55+
:ivar fallback_to_long_code: [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures.
5656
:ivar area_code_geomatch: Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance.
5757
:ivar synchronous_validation: Reserved.
5858
:ivar validity_period: How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`.
@@ -198,7 +198,7 @@ def update(
198198
:param mms_converter: Whether to enable the [MMS Converter](https://www.twilio.com/docs/messaging/services#mms-converter) for messages sent through the Service instance.
199199
:param smart_encoding: Whether to enable [Smart Encoding](https://www.twilio.com/docs/messaging/services#smart-encoding) for messages sent through the Service instance.
200200
:param scan_message_content:
201-
:param fallback_to_long_code: Whether to enable [Fallback to Long Code](https://www.twilio.com/docs/messaging/services#fallback-to-long-code) for messages sent through the Service instance.
201+
:param fallback_to_long_code: [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures.
202202
:param area_code_geomatch: Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance.
203203
:param validity_period: How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`.
204204
:param synchronous_validation: Reserved.
@@ -260,7 +260,7 @@ async def update_async(
260260
:param mms_converter: Whether to enable the [MMS Converter](https://www.twilio.com/docs/messaging/services#mms-converter) for messages sent through the Service instance.
261261
:param smart_encoding: Whether to enable [Smart Encoding](https://www.twilio.com/docs/messaging/services#smart-encoding) for messages sent through the Service instance.
262262
:param scan_message_content:
263-
:param fallback_to_long_code: Whether to enable [Fallback to Long Code](https://www.twilio.com/docs/messaging/services#fallback-to-long-code) for messages sent through the Service instance.
263+
:param fallback_to_long_code: [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures.
264264
:param area_code_geomatch: Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance.
265265
:param validity_period: How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`.
266266
:param synchronous_validation: Reserved.
@@ -459,7 +459,7 @@ def update(
459459
:param mms_converter: Whether to enable the [MMS Converter](https://www.twilio.com/docs/messaging/services#mms-converter) for messages sent through the Service instance.
460460
:param smart_encoding: Whether to enable [Smart Encoding](https://www.twilio.com/docs/messaging/services#smart-encoding) for messages sent through the Service instance.
461461
:param scan_message_content:
462-
:param fallback_to_long_code: Whether to enable [Fallback to Long Code](https://www.twilio.com/docs/messaging/services#fallback-to-long-code) for messages sent through the Service instance.
462+
:param fallback_to_long_code: [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures.
463463
:param area_code_geomatch: Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance.
464464
:param validity_period: How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`.
465465
:param synchronous_validation: Reserved.
@@ -531,7 +531,7 @@ async def update_async(
531531
:param mms_converter: Whether to enable the [MMS Converter](https://www.twilio.com/docs/messaging/services#mms-converter) for messages sent through the Service instance.
532532
:param smart_encoding: Whether to enable [Smart Encoding](https://www.twilio.com/docs/messaging/services#smart-encoding) for messages sent through the Service instance.
533533
:param scan_message_content:
534-
:param fallback_to_long_code: Whether to enable [Fallback to Long Code](https://www.twilio.com/docs/messaging/services#fallback-to-long-code) for messages sent through the Service instance.
534+
:param fallback_to_long_code: [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures.
535535
:param area_code_geomatch: Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance.
536536
:param validity_period: How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`.
537537
:param synchronous_validation: Reserved.
@@ -715,7 +715,7 @@ def create(
715715
:param mms_converter: Whether to enable the [MMS Converter](https://www.twilio.com/docs/messaging/services#mms-converter) for messages sent through the Service instance.
716716
:param smart_encoding: Whether to enable [Smart Encoding](https://www.twilio.com/docs/messaging/services#smart-encoding) for messages sent through the Service instance.
717717
:param scan_message_content:
718-
:param fallback_to_long_code: Whether to enable [Fallback to Long Code](https://www.twilio.com/docs/messaging/services#fallback-to-long-code) for messages sent through the Service instance.
718+
:param fallback_to_long_code: [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures.
719719
:param area_code_geomatch: Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance.
720720
:param validity_period: How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`.
721721
:param synchronous_validation: Reserved.
@@ -787,7 +787,7 @@ async def create_async(
787787
:param mms_converter: Whether to enable the [MMS Converter](https://www.twilio.com/docs/messaging/services#mms-converter) for messages sent through the Service instance.
788788
:param smart_encoding: Whether to enable [Smart Encoding](https://www.twilio.com/docs/messaging/services#smart-encoding) for messages sent through the Service instance.
789789
:param scan_message_content:
790-
:param fallback_to_long_code: Whether to enable [Fallback to Long Code](https://www.twilio.com/docs/messaging/services#fallback-to-long-code) for messages sent through the Service instance.
790+
:param fallback_to_long_code: [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures.
791791
:param area_code_geomatch: Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance.
792792
:param validity_period: How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`.
793793
:param synchronous_validation: Reserved.

0 commit comments

Comments
 (0)