Skip to content

Commit

Permalink
[Librarian] Regenerated @ b894abe9525247ea4345d78891244817d397f6de f8…
Browse files Browse the repository at this point in the history
…0058eb415516baff0287784518c3a22be1b1b6
  • Loading branch information
twilio-dx committed Apr 4, 2024
1 parent 31b6560 commit 3318ec1
Show file tree
Hide file tree
Showing 9 changed files with 150 additions and 68 deletions.
25 changes: 25 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,31 @@ 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**
Expand Down
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.

24 changes: 12 additions & 12 deletions twilio/rest/conversations/v1/conversation/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -725,8 +725,8 @@ def stream(
is reached.
The results are returned as a generator, so this operation is memory efficient.
:param str start_date: Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters.
:param str end_date: End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters.
:param str start_date: Specifies the beginning of the date range for filtering Conversations based on their creation date. Conversations that were created on or after this date will be included in the results. The date must be in ISO8601 format, specifically starting at the beginning of the specified date (YYYY-MM-DDT00:00:00Z), for precise filtering. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order.
:param str end_date: Defines the end of the date range for filtering conversations by their creation date. Only conversations that were created on or before this date will appear in the results. The date must be in ISO8601 format, specifically capturing up to the end of the specified date (YYYY-MM-DDT23:59:59Z), to ensure that conversations from the entire end day are included. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order.
:param "ConversationInstance.State" state: State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
:param limit: Upper limit for the number of records to return. stream()
guarantees to never return more than limit. Default is no limit
Expand Down Expand Up @@ -761,8 +761,8 @@ async def stream_async(
is reached.
The results are returned as a generator, so this operation is memory efficient.
:param str start_date: Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters.
:param str end_date: End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters.
:param str start_date: Specifies the beginning of the date range for filtering Conversations based on their creation date. Conversations that were created on or after this date will be included in the results. The date must be in ISO8601 format, specifically starting at the beginning of the specified date (YYYY-MM-DDT00:00:00Z), for precise filtering. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order.
:param str end_date: Defines the end of the date range for filtering conversations by their creation date. Only conversations that were created on or before this date will appear in the results. The date must be in ISO8601 format, specifically capturing up to the end of the specified date (YYYY-MM-DDT23:59:59Z), to ensure that conversations from the entire end day are included. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order.
:param "ConversationInstance.State" state: State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
:param limit: Upper limit for the number of records to return. stream()
guarantees to never return more than limit. Default is no limit
Expand Down Expand Up @@ -796,8 +796,8 @@ def list(
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.
:param str start_date: Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters.
:param str end_date: End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters.
:param str start_date: Specifies the beginning of the date range for filtering Conversations based on their creation date. Conversations that were created on or after this date will be included in the results. The date must be in ISO8601 format, specifically starting at the beginning of the specified date (YYYY-MM-DDT00:00:00Z), for precise filtering. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order.
:param str end_date: Defines the end of the date range for filtering conversations by their creation date. Only conversations that were created on or before this date will appear in the results. The date must be in ISO8601 format, specifically capturing up to the end of the specified date (YYYY-MM-DDT23:59:59Z), to ensure that conversations from the entire end day are included. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order.
:param "ConversationInstance.State" state: State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
:param limit: Upper limit for the number of records to return. list() guarantees
never to return more than limit. Default is no limit
Expand Down Expand Up @@ -831,8 +831,8 @@ async def list_async(
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.
:param str start_date: Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters.
:param str end_date: End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters.
:param str start_date: Specifies the beginning of the date range for filtering Conversations based on their creation date. Conversations that were created on or after this date will be included in the results. The date must be in ISO8601 format, specifically starting at the beginning of the specified date (YYYY-MM-DDT00:00:00Z), for precise filtering. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order.
:param str end_date: Defines the end of the date range for filtering conversations by their creation date. Only conversations that were created on or before this date will appear in the results. The date must be in ISO8601 format, specifically capturing up to the end of the specified date (YYYY-MM-DDT23:59:59Z), to ensure that conversations from the entire end day are included. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order.
:param "ConversationInstance.State" state: State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
:param limit: Upper limit for the number of records to return. list() guarantees
never to return more than limit. Default is no limit
Expand Down Expand Up @@ -867,8 +867,8 @@ def page(
Retrieve a single page of ConversationInstance records from the API.
Request is executed immediately
:param start_date: Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters.
:param end_date: End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters.
:param start_date: Specifies the beginning of the date range for filtering Conversations based on their creation date. Conversations that were created on or after this date will be included in the results. The date must be in ISO8601 format, specifically starting at the beginning of the specified date (YYYY-MM-DDT00:00:00Z), for precise filtering. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order.
:param end_date: Defines the end of the date range for filtering conversations by their creation date. Only conversations that were created on or before this date will appear in the results. The date must be in ISO8601 format, specifically capturing up to the end of the specified date (YYYY-MM-DDT23:59:59Z), to ensure that conversations from the entire end day are included. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order.
:param state: State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
:param page_token: PageToken provided by the API
:param page_number: Page Number, this value is simply for client state
Expand Down Expand Up @@ -903,8 +903,8 @@ async def page_async(
Asynchronously retrieve a single page of ConversationInstance records from the API.
Request is executed immediately
:param start_date: Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters.
:param end_date: End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters.
:param start_date: Specifies the beginning of the date range for filtering Conversations based on their creation date. Conversations that were created on or after this date will be included in the results. The date must be in ISO8601 format, specifically starting at the beginning of the specified date (YYYY-MM-DDT00:00:00Z), for precise filtering. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order.
:param end_date: Defines the end of the date range for filtering conversations by their creation date. Only conversations that were created on or before this date will appear in the results. The date must be in ISO8601 format, specifically capturing up to the end of the specified date (YYYY-MM-DDT23:59:59Z), to ensure that conversations from the entire end day are included. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order.
:param state: State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
:param page_token: PageToken provided by the API
:param page_number: Page Number, this value is simply for client state
Expand Down
12 changes: 0 additions & 12 deletions twilio/rest/flex_api/v1/plugin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,6 @@ def create(
flex_metadata: Union[str, object] = values.unset,
friendly_name: Union[str, object] = values.unset,
description: Union[str, object] = values.unset,
cli_version: Union[str, object] = values.unset,
validate_status: Union[str, object] = values.unset,
) -> PluginInstance:
"""
Create the PluginInstance
Expand All @@ -369,8 +367,6 @@ def create(
:param flex_metadata: The Flex-Metadata HTTP request header
:param friendly_name: The Flex Plugin's friendly name.
:param description: A descriptive string that you create to describe the plugin resource. It can be up to 500 characters long
:param cli_version: The version of Flex Plugins CLI used to create this plugin
:param validate_status: The validation status of the plugin, indicating whether it has been validated
:returns: The created PluginInstance
"""
Expand All @@ -380,8 +376,6 @@ def create(
"UniqueName": unique_name,
"FriendlyName": friendly_name,
"Description": description,
"CliVersion": cli_version,
"ValidateStatus": validate_status,
}
)
headers = values.of(
Expand All @@ -402,8 +396,6 @@ async def create_async(
flex_metadata: Union[str, object] = values.unset,
friendly_name: Union[str, object] = values.unset,
description: Union[str, object] = values.unset,
cli_version: Union[str, object] = values.unset,
validate_status: Union[str, object] = values.unset,
) -> PluginInstance:
"""
Asynchronously create the PluginInstance
Expand All @@ -412,8 +404,6 @@ async def create_async(
:param flex_metadata: The Flex-Metadata HTTP request header
:param friendly_name: The Flex Plugin's friendly name.
:param description: A descriptive string that you create to describe the plugin resource. It can be up to 500 characters long
:param cli_version: The version of Flex Plugins CLI used to create this plugin
:param validate_status: The validation status of the plugin, indicating whether it has been validated
:returns: The created PluginInstance
"""
Expand All @@ -423,8 +413,6 @@ async def create_async(
"UniqueName": unique_name,
"FriendlyName": friendly_name,
"Description": description,
"CliVersion": cli_version,
"ValidateStatus": validate_status,
}
)
headers = values.of(
Expand Down
12 changes: 12 additions & 0 deletions twilio/rest/flex_api/v1/plugin/plugin_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,8 @@ def create(
flex_metadata: Union[str, object] = values.unset,
changelog: Union[str, object] = values.unset,
private: Union[bool, object] = values.unset,
cli_version: Union[str, object] = values.unset,
validate_status: Union[str, object] = values.unset,
) -> PluginVersionsInstance:
"""
Create the PluginVersionsInstance
Expand All @@ -260,6 +262,8 @@ def create(
:param flex_metadata: The Flex-Metadata HTTP request header
:param changelog: The changelog of the Flex Plugin Version.
:param private: Whether this Flex Plugin Version requires authorization.
:param cli_version: The version of Flex Plugins CLI used to create this plugin
:param validate_status: The validation status of the plugin, indicating whether it has been validated
:returns: The created PluginVersionsInstance
"""
Expand All @@ -270,6 +274,8 @@ def create(
"PluginUrl": plugin_url,
"Changelog": changelog,
"Private": serialize.boolean_to_string(private),
"CliVersion": cli_version,
"ValidateStatus": validate_status,
}
)
headers = values.of(
Expand All @@ -293,6 +299,8 @@ async def create_async(
flex_metadata: Union[str, object] = values.unset,
changelog: Union[str, object] = values.unset,
private: Union[bool, object] = values.unset,
cli_version: Union[str, object] = values.unset,
validate_status: Union[str, object] = values.unset,
) -> PluginVersionsInstance:
"""
Asynchronously create the PluginVersionsInstance
Expand All @@ -302,6 +310,8 @@ async def create_async(
:param flex_metadata: The Flex-Metadata HTTP request header
:param changelog: The changelog of the Flex Plugin Version.
:param private: Whether this Flex Plugin Version requires authorization.
:param cli_version: The version of Flex Plugins CLI used to create this plugin
:param validate_status: The validation status of the plugin, indicating whether it has been validated
:returns: The created PluginVersionsInstance
"""
Expand All @@ -312,6 +322,8 @@ async def create_async(
"PluginUrl": plugin_url,
"Changelog": changelog,
"Private": serialize.boolean_to_string(private),
"CliVersion": cli_version,
"ValidateStatus": validate_status,
}
)
headers = values.of(
Expand Down
Loading

0 comments on commit 3318ec1

Please sign in to comment.