Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bae3eca

Browse filesBrowse files
committed
[Librarian] Regenerated @ 45fa5159053e1c1f62f6d613f3b67a9239b43a5f 2551818144b7f525e66740ded45831b930db82b8
1 parent ce5ce5d commit bae3eca
Copy full SHA for bae3eca

File tree

Expand file treeCollapse file tree

6 files changed

+439
-24
lines changed
Filter options
Expand file treeCollapse file tree

6 files changed

+439
-24
lines changed

‎CHANGES.md

Copy file name to clipboardExpand all lines: CHANGES.md
+16Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,22 @@ twilio-python Changelog
33

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

6+
[2024-12-05] Version 9.3.8
7+
--------------------------
8+
**Api**
9+
- Add optional parameter `intelligence_service` to `transcription`
10+
- Updated `phone_number_sid` to be populated for sip trunking terminating calls.
11+
12+
**Numbers**
13+
- Add Update Hosted Number Order V2 API endpoint
14+
- Update Port in docs
15+
16+
**Twiml**
17+
- Add optional parameter `intelligence_service` to `<Transcription>`
18+
- Add support for new `<ConversationRelay>` and `<Assistant>` noun
19+
- Add `events` attribute to `<Dial>` verb
20+
21+
622
[2024-11-15] Version 9.3.7
723
--------------------------
824
**Library - Chore**

‎twilio/rest/api/v2010/account/call/transcription.py

Copy file name to clipboardExpand all lines: twilio/rest/api/v2010/account/call/transcription.py
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ def create(
261261
speech_model: Union[str, object] = values.unset,
262262
hints: Union[str, object] = values.unset,
263263
enable_automatic_punctuation: Union[bool, object] = values.unset,
264+
intelligence_service: Union[str, object] = values.unset,
264265
) -> TranscriptionInstance:
265266
"""
266267
Create the TranscriptionInstance
@@ -278,6 +279,7 @@ def create(
278279
:param speech_model: Recognition model used by the transcription engine, among those supported by the provider
279280
:param hints: A Phrase contains words and phrase \\\"hints\\\" so that the speech recognition engine is more likely to recognize them.
280281
:param enable_automatic_punctuation: The provider will add punctuation to recognition result
282+
:param intelligence_service: The SID or the unique name of the [IntelligentService](https://www.twilio.com/docs/voice/intelligence/api/service-resource) to process the transcription.
281283
282284
:returns: The created TranscriptionInstance
283285
"""
@@ -299,6 +301,7 @@ def create(
299301
"EnableAutomaticPunctuation": serialize.boolean_to_string(
300302
enable_automatic_punctuation
301303
),
304+
"IntelligenceService": intelligence_service,
302305
}
303306
)
304307
headers = values.of({"Content-Type": "application/x-www-form-urlencoded"})
@@ -329,6 +332,7 @@ async def create_async(
329332
speech_model: Union[str, object] = values.unset,
330333
hints: Union[str, object] = values.unset,
331334
enable_automatic_punctuation: Union[bool, object] = values.unset,
335+
intelligence_service: Union[str, object] = values.unset,
332336
) -> TranscriptionInstance:
333337
"""
334338
Asynchronously create the TranscriptionInstance
@@ -346,6 +350,7 @@ async def create_async(
346350
:param speech_model: Recognition model used by the transcription engine, among those supported by the provider
347351
:param hints: A Phrase contains words and phrase \\\"hints\\\" so that the speech recognition engine is more likely to recognize them.
348352
:param enable_automatic_punctuation: The provider will add punctuation to recognition result
353+
:param intelligence_service: The SID or the unique name of the [IntelligentService](https://www.twilio.com/docs/voice/intelligence/api/service-resource) to process the transcription.
349354
350355
:returns: The created TranscriptionInstance
351356
"""
@@ -367,6 +372,7 @@ async def create_async(
367372
"EnableAutomaticPunctuation": serialize.boolean_to_string(
368373
enable_automatic_punctuation
369374
),
375+
"IntelligenceService": intelligence_service,
370376
}
371377
)
372378
headers = values.of({"Content-Type": "application/x-www-form-urlencoded"})

‎twilio/rest/numbers/v1/__init__.py

Copy file name to clipboardExpand all lines: twilio/rest/numbers/v1/__init__.py
+16-8Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,12 @@
2828
from twilio.rest.numbers.v1.porting_webhook_configuration_delete import (
2929
PortingWebhookConfigurationDeleteList,
3030
)
31+
from twilio.rest.numbers.v1.porting_webhook_configuration_fetch import (
32+
PortingWebhookConfigurationFetchList,
33+
)
3134
from twilio.rest.numbers.v1.signing_request_configuration import (
3235
SigningRequestConfigurationList,
3336
)
34-
from twilio.rest.numbers.v1.webhook import WebhookList
3537

3638

3739
class V1(Version):
@@ -56,10 +58,12 @@ def __init__(self, domain: Domain):
5658
self._porting_webhook_configurations_delete: Optional[
5759
PortingWebhookConfigurationDeleteList
5860
] = None
61+
self._porting_webhook_configuration_fetch: Optional[
62+
PortingWebhookConfigurationFetchList
63+
] = None
5964
self._signing_request_configurations: Optional[
6065
SigningRequestConfigurationList
6166
] = None
62-
self._webhook: Optional[WebhookList] = None
6367

6468
@property
6569
def bulk_eligibilities(self) -> BulkEligibilityList:
@@ -107,18 +111,22 @@ def porting_webhook_configurations_delete(
107111
)
108112
return self._porting_webhook_configurations_delete
109113

114+
@property
115+
def porting_webhook_configuration_fetch(
116+
self,
117+
) -> PortingWebhookConfigurationFetchList:
118+
if self._porting_webhook_configuration_fetch is None:
119+
self._porting_webhook_configuration_fetch = (
120+
PortingWebhookConfigurationFetchList(self)
121+
)
122+
return self._porting_webhook_configuration_fetch
123+
110124
@property
111125
def signing_request_configurations(self) -> SigningRequestConfigurationList:
112126
if self._signing_request_configurations is None:
113127
self._signing_request_configurations = SigningRequestConfigurationList(self)
114128
return self._signing_request_configurations
115129

116-
@property
117-
def webhook(self) -> WebhookList:
118-
if self._webhook is None:
119-
self._webhook = WebhookList(self)
120-
return self._webhook
121-
122130
def __repr__(self) -> str:
123131
"""
124132
Provide a friendly representation

‎twilio/rest/numbers/v1/webhook.py renamed to ‎twilio/rest/numbers/v1/porting_webhook_configuration_fetch.py

Copy file name to clipboardExpand all lines: twilio/rest/numbers/v1/porting_webhook_configuration_fetch.py
+13-13Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from twilio.base.version import Version
2222

2323

24-
class WebhookInstance(InstanceResource):
24+
class PortingWebhookConfigurationFetchInstance(InstanceResource):
2525
"""
2626
:ivar url: The URL of the webhook configuration request
2727
:ivar port_in_target_url: The complete webhook url that will be called when a notification event for port in request or port in phone number happens
@@ -52,14 +52,14 @@ def __repr__(self) -> str:
5252
:returns: Machine friendly representation
5353
"""
5454

55-
return "<Twilio.Numbers.V1.WebhookInstance>"
55+
return "<Twilio.Numbers.V1.PortingWebhookConfigurationFetchInstance>"
5656

5757

58-
class WebhookList(ListResource):
58+
class PortingWebhookConfigurationFetchList(ListResource):
5959

6060
def __init__(self, version: Version):
6161
"""
62-
Initialize the WebhookList
62+
Initialize the PortingWebhookConfigurationFetchList
6363
6464
:param version: Version that contains the resource
6565
@@ -68,38 +68,38 @@ def __init__(self, version: Version):
6868

6969
self._uri = "/Porting/Configuration/Webhook"
7070

71-
def fetch(self) -> WebhookInstance:
71+
def fetch(self) -> PortingWebhookConfigurationFetchInstance:
7272
"""
73-
Asynchronously fetch the WebhookInstance
73+
Asynchronously fetch the PortingWebhookConfigurationFetchInstance
7474
7575
76-
:returns: The fetched WebhookInstance
76+
:returns: The fetched PortingWebhookConfigurationFetchInstance
7777
"""
7878
headers = values.of({"Content-Type": "application/x-www-form-urlencoded"})
7979

8080
payload = self._version.fetch(method="GET", uri=self._uri, headers=headers)
8181

82-
return WebhookInstance(self._version, payload)
82+
return PortingWebhookConfigurationFetchInstance(self._version, payload)
8383

84-
async def fetch_async(self) -> WebhookInstance:
84+
async def fetch_async(self) -> PortingWebhookConfigurationFetchInstance:
8585
"""
86-
Asynchronously fetch the WebhookInstance
86+
Asynchronously fetch the PortingWebhookConfigurationFetchInstance
8787
8888
89-
:returns: The fetched WebhookInstance
89+
:returns: The fetched PortingWebhookConfigurationFetchInstance
9090
"""
9191
headers = values.of({"Content-Type": "application/x-www-form-urlencoded"})
9292

9393
payload = await self._version.fetch_async(
9494
method="GET", uri=self._uri, headers=headers
9595
)
9696

97-
return WebhookInstance(self._version, payload)
97+
return PortingWebhookConfigurationFetchInstance(self._version, payload)
9898

9999
def __repr__(self) -> str:
100100
"""
101101
Provide a friendly representation
102102
103103
:returns: Machine friendly representation
104104
"""
105-
return "<Twilio.Numbers.V1.WebhookList>"
105+
return "<Twilio.Numbers.V1.PortingWebhookConfigurationFetchList>"

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.