Skip to content

Commit 75a7e66

Browse files
committed
[Librarian] Regenerated @ b1da2810ac9def6e9282b52c1aa794ebefde64e0
1 parent 85fb0e9 commit 75a7e66

File tree

23 files changed

+150
-118
lines changed

23 files changed

+150
-118
lines changed

CHANGES.md

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

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

6+
[2022-06-29] Version 7.10.0
7+
---------------------------
8+
**Api**
9+
- Added `amazon-polly` to `usage_record` API.
10+
11+
**Insights**
12+
- Added `annotation` field in call summary
13+
- Added new endpoint to fetch/create/update Call Annotations
14+
15+
**Verify**
16+
- Remove `api.verify.totp` beta flag and set maturity to `beta` for Verify TOTP properties and parameters. **(breaking change)**
17+
- Changed summary param `verify_service_sid` to `service_sid` to be consistent with list attempts API **(breaking change)**
18+
19+
**Twiml**
20+
- Add `maxQueueSize` to `Enqueue`
21+
22+
623
[2022-06-15] Version 7.9.3
724
--------------------------
825
**Lookups**

tests/integration/insights/v1/test_annotation.py renamed to tests/integration/insights/v1/call/test_annotation.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ def test_update_request(self):
1818
self.holodeck.mock(Response(500, ''))
1919

2020
with self.assertRaises(TwilioException):
21-
self.client.insights.v1.annotation("CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").update()
21+
self.client.insights.v1.calls("CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
22+
.annotation().update()
2223

2324
self.holodeck.assert_has_request(Request(
2425
'post',
@@ -35,7 +36,8 @@ def test_update_response(self):
3536
"answered_by": "human",
3637
"connectivity_issue": "invalid_number",
3738
"quality_issues": [
38-
"low_volume"
39+
"low_volume",
40+
"choppy_robotic"
3941
],
4042
"spam": true,
4143
"call_score": 2,
@@ -46,15 +48,17 @@ def test_update_response(self):
4648
'''
4749
))
4850

49-
actual = self.client.insights.v1.annotation("CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").update()
51+
actual = self.client.insights.v1.calls("CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
52+
.annotation().update()
5053

5154
self.assertIsNotNone(actual)
5255

5356
def test_fetch_request(self):
5457
self.holodeck.mock(Response(500, ''))
5558

5659
with self.assertRaises(TwilioException):
57-
self.client.insights.v1.annotation("CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").fetch()
60+
self.client.insights.v1.calls("CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
61+
.annotation().fetch()
5862

5963
self.holodeck.assert_has_request(Request(
6064
'get',
@@ -82,6 +86,7 @@ def test_fetch_response(self):
8286
'''
8387
))
8488

85-
actual = self.client.insights.v1.annotation("CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX").fetch()
89+
actual = self.client.insights.v1.calls("CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
90+
.annotation().fetch()
8691

8792
self.assertIsNotNone(actual)

tests/integration/insights/v1/call/test_summary.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def test_fetch_response(self):
5353
"attributes": {},
5454
"properties": {},
5555
"trust": {},
56+
"annotation": {},
5657
"url": "https://insights.twilio.com/v1/Voice/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Summary"
5758
}
5859
'''

tests/integration/insights/v1/test_call.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ def test_fetch_response(self):
3535
"links": {
3636
"events": "https://insights.twilio.com/v1/Voice/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Events",
3737
"metrics": "https://insights.twilio.com/v1/Voice/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Metrics",
38-
"summary": "https://insights.twilio.com/v1/Voice/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Summary"
38+
"summary": "https://insights.twilio.com/v1/Voice/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Summary",
39+
"annotation": "https://insights.twilio.com/v1/Voice/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Annotation"
3940
}
4041
}
4142
'''

tests/integration/media/v1/test_media_recording.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ def test_fetch_response(self):
5252
'''
5353
{
5454
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
55-
"bitrate": 1000,
5655
"date_created": "2015-07-30T20:00:00Z",
5756
"date_updated": "2015-07-30T20:00:00Z",
5857
"duration": 2147483647,
@@ -129,7 +128,6 @@ def test_read_items_response(self):
129128
"media_recordings": [
130129
{
131130
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
132-
"bitrate": 1000,
133131
"date_created": "2015-07-30T20:00:00Z",
134132
"date_updated": "2015-07-30T20:00:00Z",
135133
"duration": 1000,

twilio/rest/api/v2010/account/usage/record/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ class RecordInstance(InstanceResource):
316316
class Category(object):
317317
A2P_REGISTRATION_FEES = "a2p-registration-fees"
318318
AGENT_CONFERENCE = "agent-conference"
319+
AMAZON_POLLY = "amazon-polly"
319320
ANSWERING_MACHINE_DETECTION = "answering-machine-detection"
320321
AUTHY_AUTHENTICATIONS = "authy-authentications"
321322
AUTHY_CALLS_OUTBOUND = "authy-calls-outbound"

twilio/rest/api/v2010/account/usage/record/all_time.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ class AllTimeInstance(InstanceResource):
202202
class Category(object):
203203
A2P_REGISTRATION_FEES = "a2p-registration-fees"
204204
AGENT_CONFERENCE = "agent-conference"
205+
AMAZON_POLLY = "amazon-polly"
205206
ANSWERING_MACHINE_DETECTION = "answering-machine-detection"
206207
AUTHY_AUTHENTICATIONS = "authy-authentications"
207208
AUTHY_CALLS_OUTBOUND = "authy-calls-outbound"

twilio/rest/api/v2010/account/usage/record/daily.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ class DailyInstance(InstanceResource):
202202
class Category(object):
203203
A2P_REGISTRATION_FEES = "a2p-registration-fees"
204204
AGENT_CONFERENCE = "agent-conference"
205+
AMAZON_POLLY = "amazon-polly"
205206
ANSWERING_MACHINE_DETECTION = "answering-machine-detection"
206207
AUTHY_AUTHENTICATIONS = "authy-authentications"
207208
AUTHY_CALLS_OUTBOUND = "authy-calls-outbound"

twilio/rest/api/v2010/account/usage/record/last_month.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ class LastMonthInstance(InstanceResource):
202202
class Category(object):
203203
A2P_REGISTRATION_FEES = "a2p-registration-fees"
204204
AGENT_CONFERENCE = "agent-conference"
205+
AMAZON_POLLY = "amazon-polly"
205206
ANSWERING_MACHINE_DETECTION = "answering-machine-detection"
206207
AUTHY_AUTHENTICATIONS = "authy-authentications"
207208
AUTHY_CALLS_OUTBOUND = "authy-calls-outbound"

twilio/rest/api/v2010/account/usage/record/monthly.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ class MonthlyInstance(InstanceResource):
202202
class Category(object):
203203
A2P_REGISTRATION_FEES = "a2p-registration-fees"
204204
AGENT_CONFERENCE = "agent-conference"
205+
AMAZON_POLLY = "amazon-polly"
205206
ANSWERING_MACHINE_DETECTION = "answering-machine-detection"
206207
AUTHY_AUTHENTICATIONS = "authy-authentications"
207208
AUTHY_CALLS_OUTBOUND = "authy-calls-outbound"

0 commit comments

Comments
 (0)