Skip to content

Commit 3318ec1

Browse files
committed
[Librarian] Regenerated @ b894abe9525247ea4345d78891244817d397f6de f80058eb415516baff0287784518c3a22be1b1b6
1 parent 31b6560 commit 3318ec1

File tree

9 files changed

+150
-68
lines changed

9 files changed

+150
-68
lines changed

CHANGES.md

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

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

6+
[2024-04-04] Version 9.0.4
7+
--------------------------
8+
**Api**
9+
- Correct conference filtering by date_created and date_updated documentation, clarifying that times are UTC.
10+
11+
**Flex**
12+
- Remove optional parameter from `plugins` and it to `plugin_versions`
13+
14+
**Lookups**
15+
- Add new `pre_fill` package to the lookup response
16+
17+
**Messaging**
18+
- Cleanup api.messaging.next-gen from Messaging Services endpoints
19+
- Readd Sending-Window after fixing test failure
20+
21+
**Verify**
22+
- Add `whatsapp.msg_service_sid` and `whatsapp.from` parameters to create, update, get and list of services endpoints
23+
24+
**Voice**
25+
- Correct conference filtering by date_created and date_updated documentation, clarifying that times are UTC.
26+
27+
**Twiml**
28+
- Add new `token_type` value `payment-method` for `Pay` verb
29+
30+
631
[2024-04-01] Version 9.0.3
732
--------------------------
833
**Api**

twilio/rest/api/v2010/account/call/payment.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ class Status(object):
4747
class TokenType(object):
4848
ONE_TIME = "one-time"
4949
REUSABLE = "reusable"
50+
PAYMENT_METHOD = "payment-method"
5051

5152
"""
5253
:ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Payments resource.

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

Lines changed: 40 additions & 40 deletions
Large diffs are not rendered by default.

twilio/rest/conversations/v1/conversation/__init__.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -725,8 +725,8 @@ def stream(
725725
is reached.
726726
The results are returned as a generator, so this operation is memory efficient.
727727
728-
: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.
729-
: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.
728+
: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.
729+
: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.
730730
:param "ConversationInstance.State" state: State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
731731
:param limit: Upper limit for the number of records to return. stream()
732732
guarantees to never return more than limit. Default is no limit
@@ -761,8 +761,8 @@ async def stream_async(
761761
is reached.
762762
The results are returned as a generator, so this operation is memory efficient.
763763
764-
: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.
765-
: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.
764+
: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.
765+
: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.
766766
:param "ConversationInstance.State" state: State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
767767
:param limit: Upper limit for the number of records to return. stream()
768768
guarantees to never return more than limit. Default is no limit
@@ -796,8 +796,8 @@ def list(
796796
Unlike stream(), this operation is eager and will load `limit` records into
797797
memory before returning.
798798
799-
: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.
800-
: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.
799+
: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.
800+
: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.
801801
:param "ConversationInstance.State" state: State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
802802
:param limit: Upper limit for the number of records to return. list() guarantees
803803
never to return more than limit. Default is no limit
@@ -831,8 +831,8 @@ async def list_async(
831831
Unlike stream(), this operation is eager and will load `limit` records into
832832
memory before returning.
833833
834-
: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.
835-
: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.
834+
: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.
835+
: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.
836836
:param "ConversationInstance.State" state: State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
837837
:param limit: Upper limit for the number of records to return. list() guarantees
838838
never to return more than limit. Default is no limit
@@ -867,8 +867,8 @@ def page(
867867
Retrieve a single page of ConversationInstance records from the API.
868868
Request is executed immediately
869869
870-
: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.
871-
: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.
870+
: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.
871+
: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.
872872
:param state: State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
873873
:param page_token: PageToken provided by the API
874874
:param page_number: Page Number, this value is simply for client state
@@ -903,8 +903,8 @@ async def page_async(
903903
Asynchronously retrieve a single page of ConversationInstance records from the API.
904904
Request is executed immediately
905905
906-
: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.
907-
: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.
906+
: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.
907+
: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.
908908
:param state: State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed`
909909
:param page_token: PageToken provided by the API
910910
:param page_number: Page Number, this value is simply for client state

twilio/rest/flex_api/v1/plugin/__init__.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,6 @@ def create(
359359
flex_metadata: Union[str, object] = values.unset,
360360
friendly_name: Union[str, object] = values.unset,
361361
description: Union[str, object] = values.unset,
362-
cli_version: Union[str, object] = values.unset,
363-
validate_status: Union[str, object] = values.unset,
364362
) -> PluginInstance:
365363
"""
366364
Create the PluginInstance
@@ -369,8 +367,6 @@ def create(
369367
:param flex_metadata: The Flex-Metadata HTTP request header
370368
:param friendly_name: The Flex Plugin's friendly name.
371369
:param description: A descriptive string that you create to describe the plugin resource. It can be up to 500 characters long
372-
:param cli_version: The version of Flex Plugins CLI used to create this plugin
373-
:param validate_status: The validation status of the plugin, indicating whether it has been validated
374370
375371
:returns: The created PluginInstance
376372
"""
@@ -380,8 +376,6 @@ def create(
380376
"UniqueName": unique_name,
381377
"FriendlyName": friendly_name,
382378
"Description": description,
383-
"CliVersion": cli_version,
384-
"ValidateStatus": validate_status,
385379
}
386380
)
387381
headers = values.of(
@@ -402,8 +396,6 @@ async def create_async(
402396
flex_metadata: Union[str, object] = values.unset,
403397
friendly_name: Union[str, object] = values.unset,
404398
description: Union[str, object] = values.unset,
405-
cli_version: Union[str, object] = values.unset,
406-
validate_status: Union[str, object] = values.unset,
407399
) -> PluginInstance:
408400
"""
409401
Asynchronously create the PluginInstance
@@ -412,8 +404,6 @@ async def create_async(
412404
:param flex_metadata: The Flex-Metadata HTTP request header
413405
:param friendly_name: The Flex Plugin's friendly name.
414406
:param description: A descriptive string that you create to describe the plugin resource. It can be up to 500 characters long
415-
:param cli_version: The version of Flex Plugins CLI used to create this plugin
416-
:param validate_status: The validation status of the plugin, indicating whether it has been validated
417407
418408
:returns: The created PluginInstance
419409
"""
@@ -423,8 +413,6 @@ async def create_async(
423413
"UniqueName": unique_name,
424414
"FriendlyName": friendly_name,
425415
"Description": description,
426-
"CliVersion": cli_version,
427-
"ValidateStatus": validate_status,
428416
}
429417
)
430418
headers = values.of(

twilio/rest/flex_api/v1/plugin/plugin_versions.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,8 @@ def create(
251251
flex_metadata: Union[str, object] = values.unset,
252252
changelog: Union[str, object] = values.unset,
253253
private: Union[bool, object] = values.unset,
254+
cli_version: Union[str, object] = values.unset,
255+
validate_status: Union[str, object] = values.unset,
254256
) -> PluginVersionsInstance:
255257
"""
256258
Create the PluginVersionsInstance
@@ -260,6 +262,8 @@ def create(
260262
:param flex_metadata: The Flex-Metadata HTTP request header
261263
:param changelog: The changelog of the Flex Plugin Version.
262264
:param private: Whether this Flex Plugin Version requires authorization.
265+
:param cli_version: The version of Flex Plugins CLI used to create this plugin
266+
:param validate_status: The validation status of the plugin, indicating whether it has been validated
263267
264268
:returns: The created PluginVersionsInstance
265269
"""
@@ -270,6 +274,8 @@ def create(
270274
"PluginUrl": plugin_url,
271275
"Changelog": changelog,
272276
"Private": serialize.boolean_to_string(private),
277+
"CliVersion": cli_version,
278+
"ValidateStatus": validate_status,
273279
}
274280
)
275281
headers = values.of(
@@ -293,6 +299,8 @@ async def create_async(
293299
flex_metadata: Union[str, object] = values.unset,
294300
changelog: Union[str, object] = values.unset,
295301
private: Union[bool, object] = values.unset,
302+
cli_version: Union[str, object] = values.unset,
303+
validate_status: Union[str, object] = values.unset,
296304
) -> PluginVersionsInstance:
297305
"""
298306
Asynchronously create the PluginVersionsInstance
@@ -302,6 +310,8 @@ async def create_async(
302310
:param flex_metadata: The Flex-Metadata HTTP request header
303311
:param changelog: The changelog of the Flex Plugin Version.
304312
:param private: Whether this Flex Plugin Version requires authorization.
313+
:param cli_version: The version of Flex Plugins CLI used to create this plugin
314+
:param validate_status: The validation status of the plugin, indicating whether it has been validated
305315
306316
:returns: The created PluginVersionsInstance
307317
"""
@@ -312,6 +322,8 @@ async def create_async(
312322
"PluginUrl": plugin_url,
313323
"Changelog": changelog,
314324
"Private": serialize.boolean_to_string(private),
325+
"CliVersion": cli_version,
326+
"ValidateStatus": validate_status,
315327
}
316328
)
317329
headers = values.of(

0 commit comments

Comments
 (0)