Skip to content

Commit 4c2978c

Browse files
committed
[Librarian] Regenerated @ 53a3efb2ac31899fc77dbb856effaa058577215a
1 parent 70d4fb8 commit 4c2978c

File tree

27 files changed

+190
-1379
lines changed

27 files changed

+190
-1379
lines changed

CHANGES.md

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

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

6+
[2018-11-30] Version 6.21.0
7+
----------------------------
8+
**Api**
9+
- Add `interactive_data` optional param to Messages create request
10+
11+
**Authy**
12+
- Required authentication for `/v1/Forms/{type}` endpoint **(breaking change)**
13+
- Removed `Challenge.reason` to `Challenge.responded_reason`
14+
- Removed `verification_sid` from Challenge responses
15+
- Removed `config` param from the Factor creation
16+
- Replaced all occurrences of `FactorType` and `FormType` in favor of a unified `Type` **(breaking change)**
17+
18+
**Chat**
19+
- Add Member attributes
20+
21+
**Preview**
22+
- Removed `Authy` version from `preview` subdomain in favor to `authy` subdomain. **(breaking change)**
23+
24+
**Verify**
25+
- Add `CustomCode` optional parameter on Verication creation.
26+
27+
628
[2018-11-16] Version 6.20.0
729
----------------------------
830
**Messaging**

tests/integration/authy/v1/service/entity/factor/test_challenge.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,8 @@ def test_create_response(self):
4343
"date_updated": "2015-07-30T20:00:00Z",
4444
"date_responded": "2015-07-30T20:00:00Z",
4545
"expiration_date": "2015-07-30T20:00:00Z",
46-
"verification_sid": "VEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
4746
"status": "pending",
48-
"reason": "none",
47+
"responded_reason": "none",
4948
"details": "Hi! Mr. John Doe, would you like to sign up?",
5049
"hidden_details": "Hidden details about the sign up",
5150
"type": "sms",
@@ -117,9 +116,8 @@ def test_fetch_sid_response(self):
117116
"date_updated": "2015-07-30T20:00:00Z",
118117
"date_responded": "2015-07-30T20:00:00Z",
119118
"expiration_date": "2015-07-30T20:00:00Z",
120-
"verification_sid": "VEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
121119
"status": "pending",
122-
"reason": "none",
120+
"responded_reason": "none",
123121
"details": "details",
124122
"hidden_details": "hidden_details",
125123
"type": "sms",
@@ -150,9 +148,8 @@ def test_fetch_latest_response(self):
150148
"date_updated": "2015-07-30T20:00:00Z",
151149
"date_responded": "2015-07-30T20:00:00Z",
152150
"expiration_date": "2015-07-30T20:00:00Z",
153-
"verification_sid": "VEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
154151
"status": "pending",
155-
"reason": "none",
152+
"responded_reason": "none",
156153
"details": "details",
157154
"hidden_details": "hidden_details",
158155
"type": "sms",
@@ -197,9 +194,8 @@ def test_verify_sid_response(self):
197194
"date_updated": "2015-07-30T20:00:00Z",
198195
"date_responded": "2015-07-30T20:00:00Z",
199196
"expiration_date": "2015-07-30T20:00:00Z",
200-
"verification_sid": "VEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
201197
"status": "approved",
202-
"reason": "none",
198+
"responded_reason": "none",
203199
"details": "Hi! Mr. John Doe, would you like to sign up?",
204200
"hidden_details": "Hidden details about the sign up",
205201
"type": "sms",
@@ -230,9 +226,8 @@ def test_verify_latest_response(self):
230226
"date_updated": "2015-07-30T20:00:00Z",
231227
"date_responded": "2015-07-30T20:00:00Z",
232228
"expiration_date": "2015-07-30T20:00:00Z",
233-
"verification_sid": "VEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
234229
"status": "approved",
235-
"reason": "none",
230+
"responded_reason": "none",
236231
"details": "Hi! Mr. John Doe, would you like to sign up?",
237232
"hidden_details": "Hidden details about the sign up",
238233
"type": "sms",

tests/integration/authy/v1/service/entity/test_factor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ def test_create_request(self):
2020
with self.assertRaises(TwilioException):
2121
self.client.authy.v1.services(sid="ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
2222
.entities(identity="identity") \
23-
.factors.create(binding="binding", factor_type="factor_type", friendly_name="friendly_name")
23+
.factors.create(binding="binding", friendly_name="friendly_name", type="app-push")
2424

25-
values = {'Binding': "binding", 'FactorType': "factor_type", 'FriendlyName': "friendly_name", }
25+
values = {'Binding': "binding", 'FriendlyName': "friendly_name", 'Type': "app-push", }
2626

2727
self.holodeck.assert_has_request(Request(
2828
'post',
@@ -55,7 +55,7 @@ def test_create_response(self):
5555

5656
actual = self.client.authy.v1.services(sid="ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") \
5757
.entities(identity="identity") \
58-
.factors.create(binding="binding", factor_type="factor_type", friendly_name="friendly_name")
58+
.factors.create(binding="binding", friendly_name="friendly_name", type="app-push")
5959

6060
self.assertIsNotNone(actual)
6161

tests/integration/authy/v1/test_form.py

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

2020
with self.assertRaises(TwilioException):
21-
self.client.authy.v1.forms(form_type="form-app-push").fetch()
21+
self.client.authy.v1.forms(type="form-app-push").fetch()
2222

2323
self.holodeck.assert_has_request(Request(
2424
'get',
@@ -30,7 +30,7 @@ def test_fetch_response(self):
3030
200,
3131
'''
3232
{
33-
"form_type": "form-sms",
33+
"type": "form-sms",
3434
"forms": {
3535
"create_factor": {},
3636
"verify_factor": {},
@@ -42,6 +42,6 @@ def test_fetch_response(self):
4242
'''
4343
))
4444

45-
actual = self.client.authy.v1.forms(form_type="form-app-push").fetch()
45+
actual = self.client.authy.v1.forms(type="form-app-push").fetch()
4646

4747
self.assertIsNotNone(actual)

tests/integration/chat/v2/service/channel/test_member.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ def test_fetch_response(self):
4242
"last_consumption_timestamp": null,
4343
"date_created": "2016-03-24T21:05:50Z",
4444
"date_updated": "2016-03-24T21:05:50Z",
45+
"attributes": "{}",
4546
"url": "https://chat.twilio.com/v2/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members/MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
4647
}
4748
'''
@@ -84,6 +85,7 @@ def test_create_response(self):
8485
"last_consumption_timestamp": null,
8586
"date_created": "2016-03-24T21:05:50Z",
8687
"date_updated": "2016-03-24T21:05:50Z",
88+
"attributes": "{}",
8789
"url": "https://chat.twilio.com/v2/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members/MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
8890
}
8991
'''
@@ -134,6 +136,7 @@ def test_read_full_response(self):
134136
"last_consumption_timestamp": null,
135137
"date_created": "2016-03-24T21:05:50Z",
136138
"date_updated": "2016-03-24T21:05:50Z",
139+
"attributes": "{}",
137140
"url": "https://chat.twilio.com/v2/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members/MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
138141
}
139142
]
@@ -225,6 +228,7 @@ def test_update_role_sid_response(self):
225228
"last_consumption_timestamp": "2016-03-24T21:05:52Z",
226229
"date_created": "2016-03-24T21:05:50Z",
227230
"date_updated": "2016-03-24T21:05:51Z",
231+
"attributes": "{}",
228232
"url": "https://chat.twilio.com/v2/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members/MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
229233
}
230234
'''

tests/integration/ip_messaging/v2/service/channel/test_member.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ def test_fetch_response(self):
4242
"last_consumption_timestamp": null,
4343
"date_created": "2016-03-24T21:05:50Z",
4444
"date_updated": "2016-03-24T21:05:50Z",
45+
"attributes": "{}",
4546
"url": "https://chat.twilio.com/v2/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members/MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
4647
}
4748
'''
@@ -84,6 +85,7 @@ def test_create_response(self):
8485
"last_consumption_timestamp": null,
8586
"date_created": "2016-03-24T21:05:50Z",
8687
"date_updated": "2016-03-24T21:05:50Z",
88+
"attributes": "{}",
8789
"url": "https://chat.twilio.com/v2/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members/MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
8890
}
8991
'''
@@ -134,6 +136,7 @@ def test_read_full_response(self):
134136
"last_consumption_timestamp": null,
135137
"date_created": "2016-03-24T21:05:50Z",
136138
"date_updated": "2016-03-24T21:05:50Z",
139+
"attributes": "{}",
137140
"url": "https://chat.twilio.com/v2/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members/MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
138141
}
139142
]
@@ -225,6 +228,7 @@ def test_update_role_sid_response(self):
225228
"last_consumption_timestamp": "2016-03-24T21:05:52Z",
226229
"date_created": "2016-03-24T21:05:50Z",
227230
"date_updated": "2016-03-24T21:05:51Z",
231+
"attributes": "{}",
228232
"url": "https://chat.twilio.com/v2/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members/MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
229233
}
230234
'''

tests/integration/preview/authy/__init__.py

Lines changed: 0 additions & 8 deletions
This file was deleted.

tests/integration/preview/authy/service/__init__.py

Lines changed: 0 additions & 8 deletions
This file was deleted.

tests/integration/preview/authy/service/test_entity.py

Lines changed: 0 additions & 163 deletions
This file was deleted.

0 commit comments

Comments
 (0)