Skip to content

Commit

Permalink
[Librarian] Regenerated @ b32d3e1eba2177c81eeca51181f67e618fe86dbe
Browse files Browse the repository at this point in the history
  • Loading branch information
twilio-dx committed Sep 7, 2023
1 parent 9991fab commit 80c5f9c
Show file tree
Hide file tree
Showing 6 changed files with 70 additions and 32 deletions.
19 changes: 19 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,25 @@ twilio-python Changelog

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

[2023-09-07] Version 8.8.0
--------------------------
**Api**
- Make message tagging parameters public **(breaking change)**

**Flex**
- Adding `agent_conv_end_methods` to Flex Configuration

**Messaging**
- Mark Mesasging Services fallback_to_long_code feature obsolete

**Numbers**
- Add Create Port In request api
- Renaming sid for bulk_hosting_sid and remove account_sid response field in numbers/v2/BulkHostedNumberOrders **(breaking change)**

**Pricing**
- gate resources behind a beta_feature


[2023-08-24] Version 8.7.0
--------------------------
**Library - Test**
Expand Down
8 changes: 8 additions & 0 deletions twilio/rest/api/v2010/account/message/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ class UpdateStatus(object):
: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`).
:ivar api_version: The API version used to process the Message
:ivar subresource_uris: A list of related resources identified by their URIs relative to `https://api.twilio.com`
:ivar tags: A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message.
"""

def __init__(
Expand Down Expand Up @@ -125,6 +126,7 @@ def __init__(
self.subresource_uris: Optional[Dict[str, object]] = payload.get(
"subresource_uris"
)
self.tags: Optional[Dict[str, object]] = payload.get("tags")

self._solution = {
"account_sid": account_sid,
Expand Down Expand Up @@ -493,6 +495,7 @@ def create(
send_at: Union[datetime, object] = values.unset,
send_as_mms: Union[bool, object] = values.unset,
content_variables: Union[str, object] = values.unset,
tags: Union[str, object] = values.unset,
risk_check: Union["MessageInstance.RiskCheck", object] = values.unset,
from_: Union[str, object] = values.unset,
messaging_service_sid: Union[str, object] = values.unset,
Expand Down Expand Up @@ -520,6 +523,7 @@ def create(
:param send_at: The time that Twilio will send the message. Must be in ISO 8601 format.
:param send_as_mms: If set to `true`, Twilio delivers the message as a single MMS message, regardless of the presence of media.
: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.
: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.
:param risk_check:
: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.
: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.
Expand Down Expand Up @@ -548,6 +552,7 @@ def create(
"SendAt": serialize.iso8601_datetime(send_at),
"SendAsMms": send_as_mms,
"ContentVariables": content_variables,
"Tags": tags,
"RiskCheck": risk_check,
"From": from_,
"MessagingServiceSid": messaging_service_sid,
Expand Down Expand Up @@ -590,6 +595,7 @@ async def create_async(
send_at: Union[datetime, object] = values.unset,
send_as_mms: Union[bool, object] = values.unset,
content_variables: Union[str, object] = values.unset,
tags: Union[str, object] = values.unset,
risk_check: Union["MessageInstance.RiskCheck", object] = values.unset,
from_: Union[str, object] = values.unset,
messaging_service_sid: Union[str, object] = values.unset,
Expand Down Expand Up @@ -617,6 +623,7 @@ async def create_async(
:param send_at: The time that Twilio will send the message. Must be in ISO 8601 format.
:param send_as_mms: If set to `true`, Twilio delivers the message as a single MMS message, regardless of the presence of media.
: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.
: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.
:param risk_check:
: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.
: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.
Expand Down Expand Up @@ -645,6 +652,7 @@ async def create_async(
"SendAt": serialize.iso8601_datetime(send_at),
"SendAsMms": send_as_mms,
"ContentVariables": content_variables,
"Tags": tags,
"RiskCheck": risk_check,
"From": from_,
"MessagingServiceSid": messaging_service_sid,
Expand Down
12 changes: 6 additions & 6 deletions twilio/rest/api/v2010/account/message/feedback.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ class Outcome(object):
UNCONFIRMED = "unconfirmed"

"""
:ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the MessageFeedback resource.
:ivar message_sid: The SID of the Message resource for which the feedback was provided.
:ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) associated with this MessageFeedback resource.
:ivar message_sid: The SID of the Message resource associated with this MessageFeedback resource.
:ivar outcome:
: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.
: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.
: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.
: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.
:ivar uri: The URI of the resource, relative to `https://api.twilio.com`.
"""

Expand Down Expand Up @@ -77,8 +77,8 @@ def __init__(self, version: Version, account_sid: str, message_sid: str):
Initialize the FeedbackList
:param version: Version that contains the resource
:param account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource.
:param message_sid: The SID of the Message resource for which the feedback was provided.
: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.
:param message_sid: The SID of the Message resource for which to create MessageFeedback.
"""
super().__init__(version)
Expand Down
4 changes: 4 additions & 0 deletions twilio/rest/flex_api/v1/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ class Status(object):
:ivar channel_configs: Settings for different limits for Flex Conversations channels attachments.
:ivar debugger_integration: Configurable parameters for Debugger Integration.
:ivar flex_ui_status_report: Configurable parameters for Flex UI Status report.
:ivar agent_conv_end_methods: Agent conversation end methods.
"""

def __init__(self, version: Version, payload: Dict[str, Any]):
Expand Down Expand Up @@ -176,6 +177,9 @@ def __init__(self, version: Version, payload: Dict[str, Any]):
self.flex_ui_status_report: Optional[Dict[str, object]] = payload.get(
"flex_ui_status_report"
)
self.agent_conv_end_methods: Optional[Dict[str, object]] = payload.get(
"agent_conv_end_methods"
)

self._context: Optional[ConfigurationContext] = None

Expand Down
14 changes: 7 additions & 7 deletions twilio/rest/messaging/v1/service/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class ScanMessageContent(object):
: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.
:ivar smart_encoding: Whether to enable [Smart Encoding](https://www.twilio.com/docs/messaging/services#smart-encoding) for messages sent through the Service instance.
:ivar scan_message_content:
: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.
:ivar fallback_to_long_code: [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures.
:ivar area_code_geomatch: Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance.
:ivar synchronous_validation: Reserved.
:ivar validity_period: How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`.
Expand Down Expand Up @@ -198,7 +198,7 @@ def update(
: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.
:param smart_encoding: Whether to enable [Smart Encoding](https://www.twilio.com/docs/messaging/services#smart-encoding) for messages sent through the Service instance.
:param scan_message_content:
: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.
:param fallback_to_long_code: [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures.
:param area_code_geomatch: Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance.
:param validity_period: How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`.
:param synchronous_validation: Reserved.
Expand Down Expand Up @@ -260,7 +260,7 @@ async def update_async(
: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.
:param smart_encoding: Whether to enable [Smart Encoding](https://www.twilio.com/docs/messaging/services#smart-encoding) for messages sent through the Service instance.
:param scan_message_content:
: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.
:param fallback_to_long_code: [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures.
:param area_code_geomatch: Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance.
:param validity_period: How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`.
:param synchronous_validation: Reserved.
Expand Down Expand Up @@ -459,7 +459,7 @@ def update(
: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.
:param smart_encoding: Whether to enable [Smart Encoding](https://www.twilio.com/docs/messaging/services#smart-encoding) for messages sent through the Service instance.
:param scan_message_content:
: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.
:param fallback_to_long_code: [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures.
:param area_code_geomatch: Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance.
:param validity_period: How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`.
:param synchronous_validation: Reserved.
Expand Down Expand Up @@ -531,7 +531,7 @@ async def update_async(
: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.
:param smart_encoding: Whether to enable [Smart Encoding](https://www.twilio.com/docs/messaging/services#smart-encoding) for messages sent through the Service instance.
:param scan_message_content:
: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.
:param fallback_to_long_code: [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures.
:param area_code_geomatch: Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance.
:param validity_period: How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`.
:param synchronous_validation: Reserved.
Expand Down Expand Up @@ -715,7 +715,7 @@ def create(
: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.
:param smart_encoding: Whether to enable [Smart Encoding](https://www.twilio.com/docs/messaging/services#smart-encoding) for messages sent through the Service instance.
:param scan_message_content:
: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.
:param fallback_to_long_code: [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures.
:param area_code_geomatch: Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance.
:param validity_period: How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`.
:param synchronous_validation: Reserved.
Expand Down Expand Up @@ -787,7 +787,7 @@ async def create_async(
: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.
:param smart_encoding: Whether to enable [Smart Encoding](https://www.twilio.com/docs/messaging/services#smart-encoding) for messages sent through the Service instance.
:param scan_message_content:
: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.
:param fallback_to_long_code: [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures.
:param area_code_geomatch: Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance.
:param validity_period: How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`.
:param synchronous_validation: Reserved.
Expand Down
Loading

0 comments on commit 80c5f9c

Please sign in to comment.