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 45523ff

Browse filesBrowse files
committed
[Librarian] Regenerated @ 0a245f5931e0ff292c12b643839bbb9a1b3831e3 4727b4211b32329ec55ad87676be1f406d3fd9e9
1 parent 6d40feb commit 45523ff
Copy full SHA for 45523ff

File tree

10 files changed

+65
-110
lines changed
Filter options

10 files changed

+65
-110
lines changed

‎CHANGES.md

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

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

6+
[2025-01-09] Version 9.4.2
7+
--------------------------
8+
**Library - Chore**
9+
- [PR #832](https://github.com/twilio/twilio-python/pull/832): remove test for 3.7. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
10+
11+
**Numbers**
12+
- Change beta feature flag to use v2/BulkHostedNumberOrders
13+
14+
615
[2024-12-13] Version 9.4.1
716
--------------------------
817
**Library - Fix**

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

Copy file name to clipboardExpand all lines: twilio/rest/api/v2010/account/call/transcription.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def create(
287287
:param speech_model: Recognition model used by the transcription engine, among those supported by the provider
288288
:param hints: A Phrase contains words and phrase \\\"hints\\\" so that the speech recognition engine is more likely to recognize them.
289289
:param enable_automatic_punctuation: The provider will add punctuation to recognition result
290-
: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.
290+
:param intelligence_service: The SID or the unique name of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) to process the transcription.
291291
292292
:returns: The created TranscriptionInstance
293293
"""
@@ -362,7 +362,7 @@ async def create_async(
362362
:param speech_model: Recognition model used by the transcription engine, among those supported by the provider
363363
:param hints: A Phrase contains words and phrase \\\"hints\\\" so that the speech recognition engine is more likely to recognize them.
364364
:param enable_automatic_punctuation: The provider will add punctuation to recognition result
365-
: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.
365+
:param intelligence_service: The SID or the unique name of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) to process the transcription.
366366
367367
:returns: The created TranscriptionInstance
368368
"""

‎twilio/rest/assistants/v1/assistant/assistants_knowledge.py

Copy file name to clipboardExpand all lines: twilio/rest/assistants/v1/assistant/assistants_knowledge.py
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ class AssistantsKnowledgeInstance(InstanceResource):
3232
:ivar status: The status of processing the knowledge source ('QUEUED', 'PROCESSING', 'COMPLETED', 'FAILED')
3333
:ivar type: The type of knowledge source ('Web', 'Database', 'Text', 'File')
3434
:ivar url: The url of the knowledge resource.
35+
:ivar embedding_model: The embedding model to be used for the knowledge source.
3536
:ivar date_created: The date and time in GMT when the Knowledge was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
3637
:ivar date_updated: The date and time in GMT when the Knowledge was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
3738
"""
@@ -55,6 +56,7 @@ def __init__(
5556
self.status: Optional[str] = payload.get("status")
5657
self.type: Optional[str] = payload.get("type")
5758
self.url: Optional[str] = payload.get("url")
59+
self.embedding_model: Optional[str] = payload.get("embedding_model")
5860
self.date_created: Optional[datetime] = deserialize.iso8601_datetime(
5961
payload.get("date_created")
6062
)

‎twilio/rest/assistants/v1/knowledge/__init__.py

Copy file name to clipboardExpand all lines: twilio/rest/assistants/v1/knowledge/__init__.py
+20Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class AssistantsV1ServiceCreateKnowledgeRequest(object):
3434
:ivar name: The name of the tool.
3535
:ivar policy:
3636
:ivar type: The type of the knowledge source.
37+
:ivar embedding_model: The embedding model to be used for the knowledge source. It's required for 'Database' type but disallowed for other types.
3738
"""
3839

3940
def __init__(self, payload: Dict[str, Any]):
@@ -48,6 +49,7 @@ def __init__(self, payload: Dict[str, Any]):
4849
KnowledgeList.AssistantsV1ServiceCreatePolicyRequest
4950
] = payload.get("policy")
5051
self.type: Optional[str] = payload.get("type")
52+
self.embedding_model: Optional[str] = payload.get("embedding_model")
5153

5254
def to_dict(self):
5355
return {
@@ -57,6 +59,7 @@ def to_dict(self):
5759
"name": self.name,
5860
"policy": self.policy.to_dict() if self.policy is not None else None,
5961
"type": self.type,
62+
"embedding_model": self.embedding_model,
6063
}
6164

6265
class AssistantsV1ServiceCreatePolicyRequest(object):
@@ -94,6 +97,7 @@ class AssistantsV1ServiceUpdateKnowledgeRequest(object):
9497
:ivar name: The name of the knowledge source.
9598
:ivar policy:
9699
:ivar type: The description of the knowledge source.
100+
:ivar embedding_model: The embedding model to be used for the knowledge source. It's only applicable to 'Database' type.
97101
"""
98102

99103
def __init__(self, payload: Dict[str, Any]):
@@ -107,6 +111,7 @@ def __init__(self, payload: Dict[str, Any]):
107111
KnowledgeList.AssistantsV1ServiceCreatePolicyRequest
108112
] = payload.get("policy")
109113
self.type: Optional[str] = payload.get("type")
114+
self.embedding_model: Optional[str] = payload.get("embedding_model")
110115

111116
def to_dict(self):
112117
return {
@@ -115,6 +120,7 @@ def to_dict(self):
115120
"name": self.name,
116121
"policy": self.policy.to_dict() if self.policy is not None else None,
117122
"type": self.type,
123+
"embedding_model": self.embedding_model,
118124
}
119125

120126
"""
@@ -126,6 +132,7 @@ def to_dict(self):
126132
:ivar status: The status of processing the knowledge source ('QUEUED', 'PROCESSING', 'COMPLETED', 'FAILED')
127133
:ivar type: The type of knowledge source ('Web', 'Database', 'Text', 'File')
128134
:ivar url: The url of the knowledge resource.
135+
:ivar embedding_model: The embedding model to be used for the knowledge source.
129136
:ivar date_created: The date and time in GMT when the Knowledge was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
130137
:ivar date_updated: The date and time in GMT when the Knowledge was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
131138
"""
@@ -145,6 +152,7 @@ def __init__(
145152
self.status: Optional[str] = payload.get("status")
146153
self.type: Optional[str] = payload.get("type")
147154
self.url: Optional[str] = payload.get("url")
155+
self.embedding_model: Optional[str] = payload.get("embedding_model")
148156
self.date_created: Optional[datetime] = deserialize.iso8601_datetime(
149157
payload.get("date_created")
150158
)
@@ -276,6 +284,7 @@ class AssistantsV1ServiceCreateKnowledgeRequest(object):
276284
:ivar name: The name of the tool.
277285
:ivar policy:
278286
:ivar type: The type of the knowledge source.
287+
:ivar embedding_model: The embedding model to be used for the knowledge source. It's required for 'Database' type but disallowed for other types.
279288
"""
280289

281290
def __init__(self, payload: Dict[str, Any]):
@@ -290,6 +299,7 @@ def __init__(self, payload: Dict[str, Any]):
290299
KnowledgeList.AssistantsV1ServiceCreatePolicyRequest
291300
] = payload.get("policy")
292301
self.type: Optional[str] = payload.get("type")
302+
self.embedding_model: Optional[str] = payload.get("embedding_model")
293303

294304
def to_dict(self):
295305
return {
@@ -299,6 +309,7 @@ def to_dict(self):
299309
"name": self.name,
300310
"policy": self.policy.to_dict() if self.policy is not None else None,
301311
"type": self.type,
312+
"embedding_model": self.embedding_model,
302313
}
303314

304315
class AssistantsV1ServiceCreatePolicyRequest(object):
@@ -336,6 +347,7 @@ class AssistantsV1ServiceUpdateKnowledgeRequest(object):
336347
:ivar name: The name of the knowledge source.
337348
:ivar policy:
338349
:ivar type: The description of the knowledge source.
350+
:ivar embedding_model: The embedding model to be used for the knowledge source. It's only applicable to 'Database' type.
339351
"""
340352

341353
def __init__(self, payload: Dict[str, Any]):
@@ -349,6 +361,7 @@ def __init__(self, payload: Dict[str, Any]):
349361
KnowledgeList.AssistantsV1ServiceCreatePolicyRequest
350362
] = payload.get("policy")
351363
self.type: Optional[str] = payload.get("type")
364+
self.embedding_model: Optional[str] = payload.get("embedding_model")
352365

353366
def to_dict(self):
354367
return {
@@ -357,6 +370,7 @@ def to_dict(self):
357370
"name": self.name,
358371
"policy": self.policy.to_dict() if self.policy is not None else None,
359372
"type": self.type,
373+
"embedding_model": self.embedding_model,
360374
}
361375

362376
def __init__(self, version: Version, id: str):
@@ -562,6 +576,7 @@ class AssistantsV1ServiceCreateKnowledgeRequest(object):
562576
:ivar name: The name of the tool.
563577
:ivar policy:
564578
:ivar type: The type of the knowledge source.
579+
:ivar embedding_model: The embedding model to be used for the knowledge source. It's required for 'Database' type but disallowed for other types.
565580
"""
566581

567582
def __init__(self, payload: Dict[str, Any]):
@@ -576,6 +591,7 @@ def __init__(self, payload: Dict[str, Any]):
576591
KnowledgeList.AssistantsV1ServiceCreatePolicyRequest
577592
] = payload.get("policy")
578593
self.type: Optional[str] = payload.get("type")
594+
self.embedding_model: Optional[str] = payload.get("embedding_model")
579595

580596
def to_dict(self):
581597
return {
@@ -585,6 +601,7 @@ def to_dict(self):
585601
"name": self.name,
586602
"policy": self.policy.to_dict() if self.policy is not None else None,
587603
"type": self.type,
604+
"embedding_model": self.embedding_model,
588605
}
589606

590607
class AssistantsV1ServiceCreatePolicyRequest(object):
@@ -622,6 +639,7 @@ class AssistantsV1ServiceUpdateKnowledgeRequest(object):
622639
:ivar name: The name of the knowledge source.
623640
:ivar policy:
624641
:ivar type: The description of the knowledge source.
642+
:ivar embedding_model: The embedding model to be used for the knowledge source. It's only applicable to 'Database' type.
625643
"""
626644

627645
def __init__(self, payload: Dict[str, Any]):
@@ -635,6 +653,7 @@ def __init__(self, payload: Dict[str, Any]):
635653
KnowledgeList.AssistantsV1ServiceCreatePolicyRequest
636654
] = payload.get("policy")
637655
self.type: Optional[str] = payload.get("type")
656+
self.embedding_model: Optional[str] = payload.get("embedding_model")
638657

639658
def to_dict(self):
640659
return {
@@ -643,6 +662,7 @@ def to_dict(self):
643662
"name": self.name,
644663
"policy": self.policy.to_dict() if self.policy is not None else None,
645664
"type": self.type,
665+
"embedding_model": self.embedding_model,
646666
}
647667

648668
def __init__(self, version: Version):

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

Copy file name to clipboardExpand all lines: twilio/rest/content/v1/content/__init__.py
-87Lines changed: 0 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -247,46 +247,17 @@ class FlowsPageComponent(object):
247247
"""
248248
:ivar label:
249249
:ivar type:
250-
:ivar text:
251-
:ivar options:
252250
"""
253251

254252
def __init__(self, payload: Dict[str, Any]):
255253

256254
self.label: Optional[str] = payload.get("label")
257255
self.type: Optional[str] = payload.get("type")
258-
self.text: Optional[str] = payload.get("text")
259-
self.options: Optional[List[ContentList.FlowsPageComponentSelectItem]] = (
260-
payload.get("options")
261-
)
262256

263257
def to_dict(self):
264258
return {
265259
"label": self.label,
266260
"type": self.type,
267-
"text": self.text,
268-
"options": (
269-
[options.to_dict() for options in self.options]
270-
if self.options is not None
271-
else None
272-
),
273-
}
274-
275-
class FlowsPageComponentSelectItem(object):
276-
"""
277-
:ivar id:
278-
:ivar title:
279-
"""
280-
281-
def __init__(self, payload: Dict[str, Any]):
282-
283-
self.id: Optional[str] = payload.get("id")
284-
self.title: Optional[str] = payload.get("title")
285-
286-
def to_dict(self):
287-
return {
288-
"id": self.id,
289-
"title": self.title,
290261
}
291262

292263
class ListItem(object):
@@ -1106,46 +1077,17 @@ class FlowsPageComponent(object):
11061077
"""
11071078
:ivar label:
11081079
:ivar type:
1109-
:ivar text:
1110-
:ivar options:
11111080
"""
11121081

11131082
def __init__(self, payload: Dict[str, Any]):
11141083

11151084
self.label: Optional[str] = payload.get("label")
11161085
self.type: Optional[str] = payload.get("type")
1117-
self.text: Optional[str] = payload.get("text")
1118-
self.options: Optional[List[ContentList.FlowsPageComponentSelectItem]] = (
1119-
payload.get("options")
1120-
)
11211086

11221087
def to_dict(self):
11231088
return {
11241089
"label": self.label,
11251090
"type": self.type,
1126-
"text": self.text,
1127-
"options": (
1128-
[options.to_dict() for options in self.options]
1129-
if self.options is not None
1130-
else None
1131-
),
1132-
}
1133-
1134-
class FlowsPageComponentSelectItem(object):
1135-
"""
1136-
:ivar id:
1137-
:ivar title:
1138-
"""
1139-
1140-
def __init__(self, payload: Dict[str, Any]):
1141-
1142-
self.id: Optional[str] = payload.get("id")
1143-
self.title: Optional[str] = payload.get("title")
1144-
1145-
def to_dict(self):
1146-
return {
1147-
"id": self.id,
1148-
"title": self.title,
11491091
}
11501092

11511093
class ListItem(object):
@@ -1966,46 +1908,17 @@ class FlowsPageComponent(object):
19661908
"""
19671909
:ivar label:
19681910
:ivar type:
1969-
:ivar text:
1970-
:ivar options:
19711911
"""
19721912

19731913
def __init__(self, payload: Dict[str, Any]):
19741914

19751915
self.label: Optional[str] = payload.get("label")
19761916
self.type: Optional[str] = payload.get("type")
1977-
self.text: Optional[str] = payload.get("text")
1978-
self.options: Optional[List[ContentList.FlowsPageComponentSelectItem]] = (
1979-
payload.get("options")
1980-
)
19811917

19821918
def to_dict(self):
19831919
return {
19841920
"label": self.label,
19851921
"type": self.type,
1986-
"text": self.text,
1987-
"options": (
1988-
[options.to_dict() for options in self.options]
1989-
if self.options is not None
1990-
else None
1991-
),
1992-
}
1993-
1994-
class FlowsPageComponentSelectItem(object):
1995-
"""
1996-
:ivar id:
1997-
:ivar title:
1998-
"""
1999-
2000-
def __init__(self, payload: Dict[str, Any]):
2001-
2002-
self.id: Optional[str] = payload.get("id")
2003-
self.title: Optional[str] = payload.get("title")
2004-
2005-
def to_dict(self):
2006-
return {
2007-
"id": self.id,
2008-
"title": self.title,
20091922
}
20101923

20111924
class ListItem(object):

‎twilio/rest/conversations/v1/address_configuration.py

Copy file name to clipboardExpand all lines: twilio/rest/conversations/v1/address_configuration.py
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ class Type(object):
3939
MESSENGER = "messenger"
4040
GBM = "gbm"
4141
EMAIL = "email"
42+
RCS = "rcs"
4243

4344
"""
4445
:ivar sid: A 34 character string that uniquely identifies this resource.

‎twilio/rest/insights/v1/call/call_summary.py

Copy file name to clipboardExpand all lines: twilio/rest/insights/v1/call/call_summary.py
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ class CallType(object):
4747
SIP = "sip"
4848
TRUNKING = "trunking"
4949
CLIENT = "client"
50+
WHATSAPP = "whatsapp"
5051

5152
class ProcessingState(object):
5253
COMPLETE = "complete"

‎twilio/rest/insights/v1/call_summaries.py

Copy file name to clipboardExpand all lines: twilio/rest/insights/v1/call_summaries.py
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ class CallType(object):
4848
SIP = "sip"
4949
TRUNKING = "trunking"
5050
CLIENT = "client"
51+
WHATSAPP = "whatsapp"
5152

5253
class ProcessingState(object):
5354
COMPLETE = "complete"

0 commit comments

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