8000 [Librarian] Regenerated @ 13a590a5017846bb40a46a0722d90a15ca591b2d · RoadRunner11/twilio-python@724243f · GitHub
[go: up one dir, main page]

Skip to content

Commit 724243f

Browse files
committed
[Librarian] Regenerated @ 13a590a5017846bb40a46a0722d90a15ca591b2d
1 parent 19e64ad commit 724243f

File tree

24 files changed

+740
-187
lines changed

24 files changed

+740
-187
lines changed

CHANGES.md

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

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

6+
[2021-04-21] Version 6.57.0
7+
---------------------------
8+
**Api**
9+
- Revert Update the conference participant create `from` and `to` param to be endpoint type for supporting client identifier and sip address
10+
- Update the conference participant create `from` and `to` param to be endpoint type for supporting client identifier and sip address
11+
12+
**Bulkexports**
13+
- moving enum to doc root for auto generating documentation
14+
- adding status enum and default output properties
15+
16+
**Events**
17+
- Change schema_versions prop and key to versions **(breaking change)**
18+
19+
**Messaging**
20+
- Add `use_inbound_webhook_on_number` field in Service API for fetch, create, update, read
21+
22+
**Taskrouter**
23+
- Add `If-Match` Header based on ETag for Task Delete
24+
25+
**Verify**
26+
- Add `AuthPayload` parameter to support verifying a `Challenge` upon creation. This is only supported for `totp` factors.
27+
- Add support to resend the notifications of a `Challenge`. This is only supported for `push` factors.
28+
29+
**Twiml**
30+
- Add Polly Neural voices.
31+
32+
633
[2021-04-07] Version 6.56.0
734
---------------------------
835
**Api**

tests/integration/events/v1/schema/test_schema_version.py renamed to tests/integration/events/v1/schema/test_version.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from twilio.http.response import Response
1313

1414

15-
class VersionTestCase(IntegrationTestCase):
15+
class SchemaVersionTestCase(IntegrationTestCase):
1616

1717
def test_list_request(self):
1818
self.holodeck.mock(Response(500, ''))
@@ -35,9 +35,9 @@ def test_read_empty_response(self):
3535
"meta": {
3636
"page": 0,
3737
"page_size": 10,
38-
"first_page_url": "https://events.twilio.com/v1/Schemas/DataTaps.TestEventSchema/Versions?PageSize=10&Page=0",
38+
"first_page_url": "https://events.twilio.com/v1/Schemas/Messaging.MessageStatus/Versions?PageSize=10&Page=0",
3939
"previous_page_url": null,
40-
"url": "https://events.twilio.com/v1/Schemas/DataTaps.TestEventSchema/Versions?PageSize=10&Page=0",
40+
"url": "https://events.twilio.com/v1/Schemas/Messaging.MessageStatus/Versions?PageSize=10&Page=0",
4141
"next_page_url": null,
4242
"key": "schema_versions"
4343
}
@@ -57,26 +57,26 @@ def test_read_results_response(self):
5757
{
5858
"schema_versions": [
5959
{
60-
"id": "DataTaps.TestEventSchema",
60+
"id": "Messaging.MessageStatus",
6161
"schema_version": 1,
6262
"date_created": "2015-07-30T20:00:00Z",
63-
"url": "https://events.twilio.com/v1/Schemas/DataTaps.TestEventSchema/Versions/1",
64-
"raw": "https://events-schemas.twilio.com/DataTaps.TestEventSchema/1"
63+
"url": "https://events.twilio.com/v1/Schemas/Messaging.MessageStatus/Versions/1",
64+
"raw": "https://events-schemas.twilio.com/Messaging.MessageStatus/1"
6565
},
6666
{
67-
"id": "DataTaps.TestEventSchema",
67+
"id": "Messaging.MessageStatus",
6868
"schema_version": 2,
6969
"date_created": "2015-07-30T20:00:00Z",
70-
"url": "https://events.twilio.com/v1/Schemas/DataTaps.TestEventSchema/Versions/2",
71-
"raw": "https://events-schemas.twilio.com/DataTaps.TestEventSchema/2"
70+
"url": "https://events.twilio.com/v1/Schemas/Messaging.MessageStatus/Versions/2",
71+
"raw": "https://events-schemas.twilio.com/Messaging.MessageStatus/2"
7272
}
7373
],
7474
"meta": {
7575
"page": 0,
7676
"page_size": 50,
77-
"first_page_url": "https://events.twilio.com/v1/Schemas/DataTaps.TestEventSchema/Versions?PageSize=50&Page=0",
77+
"first_page_url": "https://events.twilio.com/v1/Schemas/Messaging.MessageStatus/Versions?PageSize=50&Page=0",
7878
"previous_page_url": null,
79-
"url": "https://events.twilio.com/v1/Schemas/DataTaps.TestEventSchema/Versions?PageSize=50&Page=0",
79+
"url": "https://events.twilio.com/v1/Schemas/Messaging.MessageStatus/Versions?PageSize=50&Page=0",
8080
"next_page_url": null,
8181
"key": "schema_versions"
8282
}
@@ -106,11 +106,11 @@ def test_fetch_response(self):
106106
200,
107107
'''
108108
{
109-
"id": "DataTaps.TestEventSchema",
109+
"id": "Messaging.MessageStatus",
110110
"schema_version": 1,
111111
"date_created": "2015-07-30T20:00:00Z",
112-
"url": "https://events.twilio.com/v1/Schemas/DataTaps.TestEventSchema/Versions/1",
113-
"raw": "https://events-schemas.twilio.com/DataTaps.TestEventSchema/1"
112+
"url": "https://events.twilio.com/v1/Schemas/Messaging.MessageStatus/Versions/1",
113+
"raw": "https://events-schemas.twilio.com/Messaging.MessageStatus/1"
114114
}
115115
'''
116116
))

tests/integration/events/v1/subscription/test_subscribed_event.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,17 @@ def test_read_results_response(self):
5858
"types": [
5959
{
6060
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
61-
"type": "Voice.Calls",
62-
"version": 2,
61+
"type": "com.twilio.messaging.message.delivered",
62+
"schema_version": 2,
6363
"subscription_sid": "DFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
64-
"url": "https://events.twilio.com/v1/Subscriptions/DFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SubscribedEvents/Voice.Calls"
64+
"url": "https://events.twilio.com/v1/Subscriptions/DFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SubscribedEvents/com.twilio.messaging.message.delivered"
6565
},
6666
{
6767
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
68-
"type": "Video.Rooms",
69-
"version": 15,
68+
"type": "com.twilio.messaging.message.failed",
69+
"schema_version": 15,
7070
"subscription_sid": "DFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
71-
"url": "https://events.twilio.com/v1/Subscriptions/DFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SubscribedEvents/Video.Rooms"
71+
"url": "https://events.twilio.com/v1/Subscriptions/DFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SubscribedEvents/com.twilio.messaging.message.failed"
7272
}
7373
],
7474
"meta": {
@@ -111,9 +111,9 @@ def test_create_response(self):
111111
{
112112
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
113113
"subscription_sid": "DFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
114-
"type": "event.type",
115-
"version": 2,
116- 558
"url": "https://events.twilio.com/v1/Subscriptions/DFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SubscribedEvents/event.type"
114+
"type": "com.twilio.messaging.message.delivered",
115+
"schema_version": 2,
116+
"url": "https://events.twilio.com/v1/Subscriptions/DFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SubscribedEvents/com.twilio.messaging.message.delivered"
117117
}
118118
'''
119119
))
@@ -142,9 +142,9 @@ def test_fetch_response(self):
142142
{
143143
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
144144
"subscription_sid": "DFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
145-
"type": "event.type",
146-
"version": 2,
147-
"url": "https://events.twilio.com/v1/Subscriptions/DFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SubscribedEvents/event.type"
145+
"type": "com.twilio.messaging.message.delivered",
146+
"schema_version": 2,
147+
"url": "https://events.twilio.com/v1/Subscriptions/DFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SubscribedEvents/com.twilio.messaging.message.delivered"
148148
}
149149
'''
150150
))
@@ -173,9 +173,9 @@ def test_update_response(self):
173173
{
174174
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
175175
"subscription_sid": "DFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
176-
"type": "event.type",
177-
"version": 2,
178-
"url": "https://events.twilio.com/v1/Subscriptions/DFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SubscribedEvents/event.type"
176+
"type": "com.twilio.messaging.message.delivered",
177+
"schema_version": 2,
178+
"url": "https://events.twilio.com/v1/Subscriptions/DFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SubscribedEvents/com.twilio.messaging.message.delivered"
179179
}
180180
'''
181181
))

tests/integration/events/v1/test_event_type.py

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -55,25 +55,25 @@ def test_read_results_response(self):
5555
{
5656
"types": [
5757
{
58-
"date_created": "2020-08-13T12:50:18Z",
59-
"date_updated": "2020-08-13T13:28:48Z",
60-
"type": "com.twilio.test.example",
61-
"schema_id": "EventStreams.SampleSchema",
62-
"description": "A sample event type",
63-
"url": "https://events.twilio.com/v1/Types/com.twilio.test.example",
58+
"date_created": "2020-08-13T13:28:20Z",
59+
"date_updated": "2020-08-13T13:28:20Z",
60+
"type": "com.twilio.messaging.message.delivered",
61+
"schema_id": "Messaging.MessageStatus",
62+
"description": "Messaging- delivered message",
63+
"url": "https://events.twilio.com/v1/Types/com.twilio.messaging.message.delivered",
6464
"links": {
65-
"schema": "https://events.twilio.com/v1/Schemas/EventStreams.SampleSchema/Versions"
65+
"schema": "https://events.twilio.com/v1/Schemas/Messaging.MessageStatus/Versions"
6666
}
6767
},
6868
{
69-
"date_created": "2020-08-13T12:50:19Z",
70-
"date_updated": "2020-08-13T13:28:49Z",
71-
"type": "com.twilio.test.example2",
72-
"schema_id": "EventStreams.SampleSchema",
73-
"description": "Another sample event type",
74-
"url": "https://events.twilio.com/v1/Types/com.twilio.test.example2",
69+
"date_created": "2020-08-13T13:28:19Z",
70+
"date_updated": "2020-08-13T13:28:19Z",
71+
"type": "com.twilio.messaging.message.failed",
72+
"schema_id": "Messaging.MessageStatus",
73+
"description": "Messaging- failed message",
74+
"url": "https://events.twilio.com/v1/Types/com.twilio.messaging.message.failed",
7575
"links": {
76-
"schema": "https://events.twilio.com/v1/Schemas/EventStreams.SampleSchema/Versions"
76+
"schema": "https://events.twilio.com/v1/Schemas/Messaging.MessageStatus/Versions"
7777
}
7878
}
7979
],
@@ -110,14 +110,14 @@ def test_fetch_response(self):
110110
200,
111111
'''
112112
{
113-
"date_created": "2020-08-13T12:50:18Z",
114-
"date_updated": "2020-08-13T13:28:48Z",
115-
"type": "com.twilio.test.example",
116-
"schema_id": "EventStreams.SampleSchema",
117-
"description": "A sample subscription",
118-
"url": "https://events.twilio.com/v1/Types/com.twilio.test.example",
113+
"date_created": "2020-08-13T13:28:20Z",
114+
"date_updated": "2020-08-13T13:28:20Z",
115+
"type": "com.twilio.messaging.message.delivered",
116+
"schema_id": "Messaging.MessageStatus",
117+
"description": "Messaging- delivered message",
118+
"url": "https://events.twilio.com/v1/Types/com.twilio.messaging.message.delivered",
119119
"links": {
120-
"schema": "https://events.twilio.com/v1/Schemas/EventStreams.SampleSchema/Versions"
120+
"schema": "https://events.twilio.com/v1/Schemas/Messaging.MessageStatus/Versions"
121121
}
122122
}
123123
'''

tests/integration/events/v1/test_schema.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ def test_fetch_response(self):
3030
200,
3131
'''
3232
{
33-
"id": "DataTaps.TestEventSchema",
34-
"url": "https://events.twilio.com/v1/Schemas/DataTaps.TestEventSchema",
35-
"last_created": "2018-07-30T20:00:00Z",
36-
"last_version": 1,
33+
"id": "Messaging.MessageStatus",
34+
"url": "https://events.twilio.com/v1/Schemas/Messaging.MessageStatus",
35+
"latest_version_date_created": "2020-07-30T20:00:00Z",
36+
"latest_version": 1,
3737
"links": {
38-
"versions": "https://events.twilio.com/v1/Schemas/DataTaps.TestEventSchema/Versions"
38+
"versions": "https://events.twilio.com/v1/Schemas/Messaging.MessageStatus/Versions"
3939
}
4040
}
4141
'''

tests/integration/messaging/v1/test_service.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def test_create_response(self):
5353
"synchronous_validation": true,
5454
"usecase": "marketing",
5555
"us_app_to_person_registered": false,
56+
"use_inbound_webhook_on_number": true,
5657
"links": {
5758
"phone_numbers": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/PhoneNumbers",
5859
"short_codes": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ShortCodes",
@@ -107,6 +108,7 @@ def test_update_response(self):
107108
"status_callback": "https://www.example.com",
108109
"usecase": "marketing",
109110
"us_app_to_person_registered": false,
111+
"use_inbound_webhook_on_number": true,
110112
"links": {
111113
"phone_numbers": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/PhoneNumbers",
112114
"short_codes": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ShortCodes",
@@ -172,6 +174,7 @@ def test_read_full_response(self):
172174
"status_callback": "https://www.example.com",
173175
"usecase": "marketing",
174176
"us_app_to_person_registered": false,
177+
"use_inbound_webhook_on_number": false,
175178
"links": {
176179
"phone_numbers": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/PhoneNumbers",
177180
"short_codes": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ShortCodes",
@@ -228,6 +231,7 @@ def test_fetch_response(self):
228231
"synchronous_validation": true,
229232
"usecase": "marketing",
230233
"us_app_to_person_registered": false,
234+
"use_inbound_webhook_on_number": true,
231235
"links": {
232236
"phone_numbers": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/PhoneNumbers",
233237
"short_codes": "https://messaging.twilio.com/v1/Services/MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ShortCodes",

0 commit comments

Comments
 (0)
0