8000 [Librarian] Regenerated @ 5627c63bd23f159fdbe112bf727f87b79c3d4f74 · mfreed420/twilio-python@e0dace1 · GitHub
[go: up one dir, main page]

Skip to content

Commit e0dace1

Browse files
committed
[Librarian] Regenerated @ 5627c63bd23f159fdbe112bf727f87b79c3d4f74
1 parent 541ce70 commit e0dace1

File tree

8 files changed

+1124
-5
lines changed

8 files changed

+1124
-5
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+
[2023-07-13] Version 8.5.0
7+
--------------------------
8+
**Library - Fix**
9+
- [PR #718](https://github.com/twilio/twilio-python/pull/718): Create __init__.py for intelligence domain. Thanks to [@AsabuHere](https://github.com/AsabuHere)!
10+
11+
**Flex**
12+
- Adding `interaction_context_sid` as optional parameter in Interactions API
13+
14+
**Messaging**
15+
- Making visiblity public for tollfree_verification API
16+
17+
**Numbers**
18+
- Remove Sms capability property from HNO creation under version `/v2` of HNO API. **(breaking change)**
19+
- Update required properties in LOA creation under version `/v2` of Authorization document API. **(breaking change)**
20+
21+
**Taskrouter**
22+
- Add api to fetch task queue statistics for multiple TaskQueues
23+
24+
**Verify**
25+
- Add `RiskCheck` optional parameter on Verification creation.
26+
27+
**Twiml**
28+
- Add Google Voices and languages
29+
30+
631
[2023-06-28] Version 8.4.0
732
--------------------------
833
**Lookups**

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

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"""
1414

1515

16-
from typing import Any, Dict, Optional
16+
from typing import Any, Dict, Optional, Union
1717
from twilio.base import serialize, values
1818
from twilio.base.instance_context import InstanceContext
1919
from twilio.base.instance_resource import InstanceResource
@@ -33,6 +33,7 @@ class InteractionInstance(InstanceResource):
3333
:ivar routing: A JSON Object representing the routing rules for the Interaction Channel. See [Outbound SMS Example](https://www.twilio.com/docs/flex/developer/conversations/interactions-api/interactions#agent-initiated-outbound-interactions) for an example Routing object. The Interactions resource uses TaskRouter for all routing functionality. All attributes in the Routing object on your Interaction request body are added “as is” to the task. For a list of known attributes consumed by the Flex UI and/or Flex Insights, see [Known Task Attributes](https://www.twilio.com/docs/flex/developer/conversations/interactions-api#task-attributes).
3434
:ivar url:
3535
:ivar links:
36+
:ivar interaction_context_sid:
3637
"""
3738

3839
def __init__(
@@ -45,6 +46,9 @@ def __init__(
4546
self.routing: Optional[Dict[str, object]] = payload.get("routing")
4647
self.url: Optional[str] = payload.get("url")
4748
self.links: Optional[Dict[str, object]] = payload.get("links")
49+
self.interaction_context_sid: Optional[str] = payload.get(
50+
"interaction_context_sid"
51+
)
4852

4953
self._solution = {
5054
"sid": sid or self.sid,
@@ -191,19 +195,26 @@ def __init__(self, version: Version):
191195

192196
self._uri = "/Interactions"
193197

194-
def create(self, channel: object, routing: object) -> InteractionInstance:
198+
def create(
199+
self,
200+
channel: object,
201+
routing: object,
202+
interaction_context_sid: Union[str, object] = values.unset,
203+
) -> InteractionInstance:
195204
"""
196205
Create the InteractionInstance
197206
198207
:param channel: The Interaction's channel.
199208
:param routing: The Interaction's routing logic.
209+
:param interaction_context_sid: The Interaction context sid is used for adding a context lookup sid
200210
201211
:returns: The created InteractionInstance
202212
"""
203213
data = values.of(
204214
{
205215
"Channel": serialize.object(channel),
206216
"Routing": serialize.object(routing),
217+
"InteractionContextSid": interaction_context_sid,
207218
}
208219
)
209220

@@ -216,20 +227,25 @@ def create(self, channel: object, routing: object) -> InteractionInstance:
216227
return InteractionInstance(self._version, payload)
217228

218229
async def create_async(
219-
self, channel: object, routing: object
230+
self,
231+
channel: object,
232+
routing: object,
233+
interaction_context_sid: Union[str, object] = values.unset,
220234
) -> InteractionInstance:
221235
"""
222236
Asynchronously create the InteractionInstance
223237
224238
:param channel: The Interaction's channel.
225239
:param routing: The Interaction's routing logic.
240+
:param interaction_context_sid: The Interaction context sid is used for adding a context lookup sid
226241
227242
:returns: The created InteractionInstance
228243
"""
229244
data = values.of(
230245
{
231246
"Channel": serialize.object(channel),
232247
"Routing": serialize.object(routing),
248+
"InteractionContextSid": interaction_context_sid,
233249
}
234250
)
235251

twilio/rest/messaging/v1/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
LinkshorteningMessagingServiceDomainAssociationList,
3131
)
3232
from twilio.rest.messaging.v1.service import ServiceList
33+
from twilio.rest.messaging.v1.tollfree_verification import TollfreeVerificationList
3334
from twilio.rest.messaging.v1.usecase import UsecaseList
3435

3536

@@ -56,6 +57,7 @@ def __init__(self, domain: Domain):
5657
LinkshorteningMessagingServiceDomainAssociationList
5758
] = None
5859
self._services: Optional[ServiceList] = None
60+
self._tollfree_verifications: Optional[TollfreeVerificationList] = None
5961
self._usecases: Optional[UsecaseList] = None
6062

6163
@property
@@ -120,6 +122,12 @@ def services(self) -> ServiceList:
120122
self._services = ServiceList(self)
121123
return self._services
122124

125+
@property
126+
def tollfree_verifications(self) -> TollfreeVerificationList:
127+
if self._tollfree_verifications is None:
128+
self._tollfree_verifications = TollfreeVerificationList(self)
129+
return self._tollfree_verifications
130+
123131
@property
124132
def usecases(self) -> UsecaseList:
125133
if self._usecases is None:

0 commit comments

Comments
 (0)
0