10000 [Librarian] Regenerated @ 59055a0e4517ecbe8ab584e0f9b38f2a70cd94a8 · githubib/twilio-python@6a3c255 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6a3c255

Browse files
committed
[Librarian] Regenerated @ 59055a0e4517ecbe8ab584e0f9b38f2a70cd94a8
1 parent 9c6b5c4 commit 6a3c255

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+3069
-3518
lines changed

CHANGES.md

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

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

6+
[2020-02-19] Version 6.35.5
7+
---------------------------
8+
**Api**
9+
- Make call create parameters `async_amd`, `async_amd_status_callback`, and `async_amd_status_callback_method` public
10+
- Add `trunk_sid` as an optional field to Call resource fetch/read responses
11+
- Add property `queue_time` to successful response of create, fetch, and update requests for Call
12+
- Add optional parameter `byoc` to conference participant create.
13+
14+
**Authy**
15+
- Added support for challenges associated to push factors
16+
17+
**Flex**
18+
- Adding `ui_dependencies` to Flex Configuration
19+
20+
**Messaging**
21+
- Deprecate Session API **(breaking change)**
22+
23+
**Numbers**
24+
- Add Regulations API
25+
26+
**Studio**
27+
- Add Execution and Step endpoints to v2 API
28+
- Add webhook_url to Flow response and add new /TestUsers endpoint to v2 API
29+
30+
**Taskrouter**
31+
- Adding `longest_relative_task_age_in_queue` and `longest_relative_task_sid_in_queue` to TaskQueue Real Time Statistics API.
32+
- Add `wait_duration_in_queue_until_accepted` aggregations to TaskQueues Cumulative Statistics endpoint
33+
- Add TaskQueueEnteredDate property to Tasks.
34+
35+
**Video**
36+
- [Composer] Clarification for the composition hooks creation documentation: one source is mandatory, either the `audio_sources` or the `video_layout`, but one of them has to be provided
37+
- [Composer] `audio_sources` type on the composer HTTP POST command, changed from `sid[]` to `string[]` **(breaking change)**
38+
- [Composer] Clarification for the composition creation documentation: one source is mandatory, either the `audio_sources` or the `video_layout`, but one of them has to be provided
39+
40+
641
[2020-02-05] Version 6.35.4
742
---------------------------
843
**Api**

tests/integration/api/v2010/account/conference/test_participant.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,34 @@ def test_create_with_non_e164_number_response(self):
252252

253253
self.assertIsNotNone(actual)
254254

255+
def test_create_with_friendly_name_byoc_response(self):
256+
self.holodeck.mock(Response(
257+
201,
258+
'''
259+
{
260+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
261+
"call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
262+
"conference_sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
263+
"date_created": "Fri, 18 Feb 2011 21:07:19 +0000",
264+
"date_updated": "Fri, 18 Feb 2011 21:07:19 +0000",
265+
"end_conference_on_exit": false,
266+
"muted": false,
267+
"hold": false,
268+
"status": "complete",
269+
"start_conference_on_enter": true,
270+
"coaching": false,
271+
"call_sid_to_coach": null,
272+
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
273+
}
274+
'''
275+
))
276+
277+
actual = self.client.api.v2010.accounts("ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
278+
.conferences("CFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
279+
.participants.create(from_="+15017122661", to="+15558675310")
280+
281+
self.assertIsNotNone(actual)
282+
255283
def test_delete_request(self):
256284
self.holodeck.mock(Response(500, ''))
257285

tests/integration/api/v2010/account/test_call.py

Lines changed: 30 additions & 10 deletions
F438
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ def test_create_response(self):
6464
},
6565
"to": "+14158675309",
6666
"to_formatted": "(415) 867-5309",
67-
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
67+
"trunk_sid": null,
68+
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
69+
"queue_time": "1000"
6870
}
6971
'''
7072
))
@@ -109,7 +111,9 @@ def test_create_with_twiml_response(self):
109111
},
110112
"to": "+14158675309",
111113
"to_formatted": "(415) 867-5309",
112-
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
114+
"trunk_sid": null,
115+
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
116+
"queue_time": "1000"
113117
}
114118
'''
115119
))
@@ -189,7 +193,9 @@ def test_fetch_response(self):
189193
},
190194
"to": "+13051913581",
191195
"to_formatted": "(305) 191-3581",
192-
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
196+
"trunk_sid": "TRdeadbeefdeadbeefdeadbeefdeadbeef",
197+
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
198+
"queue_time": "1000"
193199
}
194200
'''
195201
))
@@ -248,7 +254,9 @@ def test_read_full_page1_response(self):
248254
},
249255
"to": "+13051913581",
250256
"to_formatted": "(305) 191-3581",
251-
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
257+
"trunk_sid": "TRdeadbeefdeadbeefdeadbeefdeadbeef",
258+
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
259+
"queue_time": "1000"
252260
},
253261
{
254262
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
@@ -281,7 +289,9 @@ def test_read_full_page1_response(self):
281289
},
282290
"to": "+13051913580",
283291
"to_formatted": "(305) 191-3580",
284-
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0.json"
292+
"trunk_sid": "TRdeadbeefdeadbeefdeadbeefdeadbeef",
293+
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0.json",
294+
"queue_time": "1000"
285295
}
286296
],
287297
"end": 1,
@@ -338,7 +348,9 @@ def test_read_full_page2_response(self):
338348
},
339349
"to": "+13051913581",
340350
"to_formatted": "(305) 191-3581",
341-
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
351+
"trunk_sid": "TRdeadbeefdeadbeefdeadbeefdeadbeef",
352+
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
353+
"queue_time": "1000"
342354
},
343355
{
344356
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
@@ -371,7 +383,9 @@ def test_read_full_page2_response(self):
371383
},
372384
"to": "+13051913580",
373385
"to_formatted": "(305) 191-3580",
374-
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0.json"
386+
"trunk_sid": "TRdeadbeefdeadbeefdeadbeefdeadbeef",
387+
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0.json",
388+
"queue_time": "1000"
375389
}
376390
],
377391
"end": 3,
@@ -507,7 +521,9 @@ def test_update_response(self):
507521
},
508522
"to": "+14158675309",
509523
"to_formatted": "(415) 867-5309",
510-
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
524+
"trunk_sid": null,
525+
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
526+
"queue_time": "1000"
511527
}
512528
'''
513529
))
@@ -552,7 +568,9 @@ def test_cancel_response(self):
552568
},
553569
"to": "+14158675309",
554570
"to_formatted": "(415) 867-5309",
555-
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
571+
"trunk_sid": null,
572+
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
573+
"queue_time": "1000"
556574
}
557575
'''
558576
))
@@ -597,7 +615,9 @@ def test_posttwiml_response(self):
597615
},
598616
"to": "+14158675309",
599617
"to_formatted": "(415) 867-5309",
600-
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
618+
"trunk_sid": null,
619+
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
620+
"queue_time": "1000"
601621
}
602622
'''
603623
))

tests/integration/api/v2010/account/test_notification.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def test_fetch_response(self):
4444
"request_method": "get",
4545
"request_url": "https://voiceforms4000.appspot.com/twiml/9436/question/0",
4646
"request_variables": "AccountSid=ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&CallStatus=in-progress&ToZip=94937&ToCity=INVERNESS&ToState=CA&Called=%2B14156694923&To=%2B14156694923&ToCountry=US&CalledZip=94937&Direction=inbound&ApiVersion=2010-04-01&Caller=%2B17378742833&CalledCity=INVERNESS&CalledCountry=US&CallSid=CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&CalledState=CA&From=%2B17378742833",
47-
"response_body": "blah blah",
47+
"response_body": "Response body from your webhook URL as a string.",
4848
"response_headers": "Date=Mon%2C+13+Sep+2010+20%3A02%3A00+GMT&Content-Length=466&Connection=close&Content-Type=text%2Fhtml%3B+charset%3DUTF-8&Server=Google+Frontend",
4949
"sid": "NOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
5050
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications/NOaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"

tests/integration/api/v2010/test_account.py

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,3 +267,47 @@ def test_update_response(self):
267267
actual = self.client.api.v2010.accounts("ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").update()
268268

269269
self.assertIsNotNone(actual)
270+
271+
def test_update_with_numeric_status_response(self):
272+
self.holodeck.mock(Response(
273+
200,
274+
'''
275+
{
276+
"auth_token": "auth_token",
277+
"date_created": "Thu, 30 Jul 2015 20:00:00 +0000",
278+
"date_updated": "Thu, 30 Jul 2015 20:00:00 +0000",
279+
"friendly_name": "friendly_name",
280+
"owner_account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
281+
"sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
282+
"status": "active",
283+
"subresource_uris": {
284+
"available_phone_numbers": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AvailablePhoneNumbers.json",
285+
"calls": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Calls.json",
286+
"conferences": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences.json",
287+
"incoming_phone_numbers": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers.json",
288+
"notifications": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications.json",
289+
"outgoing_caller_ids": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OutgoingCallerIds.json",
290+
"recordings": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Recordings.json",
291+
"transcriptions": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Transcriptions.json",
292+
"addresses": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Addresses.json",
293+
"signing_keys": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SigningKeys.json",
294+
"connect_apps": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ConnectApps.json",
295+
"sip": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP.json",
296+
"authorized_connect_apps": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AuthorizedConnectApps.json",
297+
"usage": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Usage.json",
298+
"keys": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Keys.json",
299+
"applications": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Applications.json",
300+
"short_codes": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SMS/ShortCodes.json",
301+
"queues": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queues.json",
302+
"messages": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages.json",
303+
"balance": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Balance.json"
304+
},
305+
"type": "Full",
306+
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
307+
}
308+
'''
309+
))
310+
311+
actual = self.client.api.v2010.accounts("ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").update()
312+
313+
self.assertIsNotNone(actual)

tests/integration/flex_api/v1/test_configuration.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ def test_fetch_response(self):
9999
"chat_service_instance_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
100100
"ui_language": "en",
101101
"ui_attributes": {},
102+
"ui_dependencies": {},
102103
"ui_version": "1.0",
103104
"service_version": "1.0",
104105
"call_recording_enabled": true,
@@ -240,6 +241,7 @@ def test_create_response(self):
240241
"chat_service_instance_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
241242
"ui_language": "en",
242243
"ui_attributes": {},
244+
"ui_dependencies": {},
243245
"ui_version": "1.0",
244246
"service_version": "1.0",
245247
"call_recording_enabled": true,
@@ -381,6 +383,7 @@ def test_update_response(self):
381383
"chat_service_instance_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
382384
"ui_language": "en",
383385
"ui_attributes": {},
386+
"ui_dependencies": {},
384387
"ui_version": "1.0",
385388
"service_version": "1.0",
386389
"call_recording_enabled": true,

0 commit comments

Comments
 (0)
0