Skip to content

Commit e8cf1fa

Browse files
committed
[Librarian] Regenerated @ 967832a5f99248b8f29e15ebffef693b3540f4df 6d26e026aeb767bd3d3bad21fb12fa291a3bba00
1 parent cc3ee1f commit e8cf1fa

File tree

17 files changed

+2724
-43
lines changed

17 files changed

+2724
-43
lines changed

CHANGES.md

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

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

6+
[2025-09-25] Version 9.8.2
7+
--------------------------
8+
**Api**
9+
- Added optional parameter `CallerDisplayName` for conference participant outbound
10+
- Updated description for property `to` in the participant create request
11+
12+
613
[2025-09-18] Version 9.8.1
714
--------------------------
815
**Api**

twilio/rest/__init__.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
from twilio.rest.insights import Insights
3030
from twilio.rest.intelligence import Intelligence
3131
from twilio.rest.ip_messaging import IpMessaging
32+
from twilio.rest.knowledge import Knowledge
3233
from twilio.rest.lookups import Lookups
3334
from twilio.rest.marketplace import Marketplace
3435
from twilio.rest.messaging import Messaging
@@ -141,6 +142,7 @@ def __init__(
141142
self._insights: Optional["Insights"] = None
142143
self._intelligence: Optional["Intelligence"] = None
143144
self._ip_messaging: Optional["IpMessaging"] = None
145+
self._knowledge: Optional["Knowledge"] = None
144146
self._lookups: Optional["Lookups"] = None
145147
self._marketplace: Optional["Marketplace"] = None
146148
self._messaging: Optional["Messaging"] = None
@@ -359,6 +361,19 @@ def ip_messaging(self) -> "IpMessaging":
359361
self._ip_messaging = IpMessaging(self)
360362
return self._ip_messaging
361363

364+
@property
365+
def knowledge(self) -> "Knowledge":
366+
"""
367+
Access the Knowledge Twilio Domain
368+
369+
:returns: Knowledge Twilio Domain
370+
"""
371+
if self._knowledge is None:
372+
from twilio.rest.knowledge import Knowledge
373+
374+
self._knowledge = Knowledge(self)
375+
return self._knowledge
376+
362377
@property
363378
def lookups(self) -> "Lookups":
364379
"""

twilio/rest/api/v2010/account/conference/participant.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -595,12 +595,13 @@ def create(
595595
amd_status_callback_method: Union[str, object] = values.unset,
596596
trim: Union[str, object] = values.unset,
597597
call_token: Union[str, object] = values.unset,
598+
caller_display_name: Union[str, object] = values.unset,
598599
) -> ParticipantInstance:
599600
"""
600601
Create the ParticipantInstance
601602
602603
:param from_: The phone number, Client identifier, or username portion of SIP address that made this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). Client identifiers are formatted `client:name`. If using a phone number, it must be a Twilio number or a Verified [outgoing caller id](https://www.twilio.com/docs/voice/api/outgoing-caller-ids) for your account. If the `to` parameter is a phone number, `from` must also be a phone number. If `to` is sip address, this value of `from` should be a username portion to be used to populate the P-Asserted-Identity header that is passed to the SIP endpoint.
603-
:param to: The phone number, SIP address, or Client identifier that received this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). SIP addresses are formatted as `sip:[email protected]`. Client identifiers are formatted `client:name`. [Custom parameters](https://www.twilio.com/docs/voice/api/conference-participant-resource#custom-parameters) may also be specified.
604+
:param to: The phone number, SIP address, Client, TwiML App identifier that received this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). SIP addresses are formatted as `sip:[email protected]`. Client identifiers are formatted `client:name`. TwiML App identifiers are formatted `app:<APP_SID>`. [Custom parameters](https://www.twilio.com/docs/voice/api/conference-participant-resource#custom-parameters) may also be specified.
604605
:param status_callback: The URL we should call using the `status_callback_method` to send status information to your application.
605606
:param status_callback_method: The HTTP method we should use to call `status_callback`. Can be: `GET` and `POST` and defaults to `POST`.
606607
:param status_callback_event: The conference state changes that should generate a call to `status_callback`. Can be: `initiated`, `ringing`, `answered`, and `completed`. Separate multiple values with a space. The default value is `completed`.
@@ -647,6 +648,7 @@ def create(
647648
:param amd_status_callback_method: The HTTP method we should use when calling the `amd_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`.
648649
:param trim: Whether to trim any leading and trailing silence from the participant recording. Can be: `trim-silence` or `do-not-trim` and the default is `trim-silence`.
649650
:param call_token: A token string needed to invoke a forwarded call. A call_token is generated when an incoming call is received on a Twilio number. Pass an incoming call's call_token value to a forwarded call via the call_token parameter when creating a new call. A forwarded call should bear the same CallerID of the original incoming call.
651+
:param caller_display_name: The name that appears to the called party for this call. Must be between 2 and 255 characters.
650652
651653
:returns: The created ParticipantInstance
652654
"""
@@ -713,6 +715,7 @@ def create(
713715
"AmdStatusCallbackMethod": amd_status_callback_method,
714716
"Trim": trim,
715717
"CallToken": call_token,
718+
"CallerDisplayName": caller_display_name,
716719
}
717720
)
718721
headers = values.of({"Content-Type": "application/x-www-form-urlencoded"})
@@ -784,12 +787,13 @@ async def create_async(
784787
amd_status_callback_method: Union[str, object] = values.unset,
785788
trim: Union[str, object] = values.unset,
786789
call_token: Union[str, object] = values.unset,
790+
caller_display_name: Union[str, object] = values.unset,
787791
) -> ParticipantInstance:
788792
"""
789793
Asynchronously create the ParticipantInstance
790794
791795
:param from_: The phone number, Client identifier, or username portion of SIP address that made this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). Client identifiers are formatted `client:name`. If using a phone number, it must be a Twilio number or a Verified [outgoing caller id](https://www.twilio.com/docs/voice/api/outgoing-caller-ids) for your account. If the `to` parameter is a phone number, `from` must also be a phone number. If `to` is sip address, this value of `from` should be a username portion to be used to populate the P-Asserted-Identity header that is passed to the SIP endpoint.
792-
:param to: The phone number, SIP address, or Client identifier that received this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). SIP addresses are formatted as `sip:[email protected]`. Client identifiers are formatted `client:name`. [Custom parameters](https://www.twilio.com/docs/voice/api/conference-participant-resource#custom-parameters) may also be specified.
796+
:param to: The phone number, SIP address, Client, TwiML App identifier that received this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). SIP addresses are formatted as `sip:[email protected]`. Client identifiers are formatted `client:name`. TwiML App identifiers are formatted `app:<APP_SID>`. [Custom parameters](https://www.twilio.com/docs/voice/api/conference-participant-resource#custom-parameters) may also be specified.
793797
:param status_callback: The URL we should call using the `status_callback_method` to send status information to your application.
794798
:param status_callback_method: The HTTP method we should use to call `status_callback`. Can be: `GET` and `POST` and defaults to `POST`.
795799
:param status_callback_event: The conference state changes that should generate a call to `status_callback`. Can be: `initiated`, `ringing`, `answered`, and `completed`. Separate multiple values with a space. The default value is `completed`.
@@ -836,6 +840,7 @@ async def create_async(
836840
:param amd_status_callback_method: The HTTP method we should use when calling the `amd_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`.
837841
:param trim: Whether to trim any leading and trailing silence from the participant recording. Can be: `trim-silence` or `do-not-trim` and the default is `trim-silence`.
838842
:param call_token: A token string needed to invoke a forwarded call. A call_token is generated when an incoming call is received on a Twilio number. Pass an incoming call's call_token value to a forwarded call via the call_token parameter when creating a new call. A forwarded call should bear the same CallerID of the original incoming call.
843+
:param caller_display_name: The name that appears to the called party for this call. Must be between 2 and 255 characters.
839844
840845
:returns: The created ParticipantInstance
841846
"""
@@ -902,6 +907,7 @@ async def create_async(
902907
"AmdStatusCallbackMethod": amd_status_callback_method,
903908
"Trim": trim,
904909
"CallToken": call_token,
910+
"CallerDisplayName": caller_display_name,
905911
}
906912
)
907913
headers = values.of({"Content-Type": "application/x-www-form-urlencoded"})
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
r"""
2+
This code was generated by
3+
___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4+
| | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5+
| |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6+
7+
NOTE: This class is auto generated by OpenAPI Generator.
8+
https://openapi-generator.tech
9+
Do not edit the class manually.
10+
"""
11+
12+
from typing import Optional
13+
14+
from twilio.base.domain import Domain
15+
from twilio.rest import Client
16+
from twilio.rest.knowledge.v1 import V1
17+
18+
19+
class KnowledgeBase(Domain):
20+
21+
def __init__(self, twilio: Client):
22+
"""
23+
Initialize the Knowledge Domain
24+
25+
:returns: Domain for Knowledge
26+
"""
27+
super().__init__(twilio, "https://knowledge.twilio.com")
28+
self._v1: Optional[V1] = None
29+
30+
@property
31+
def v1(self) -> V1:
32+
"""
33+
:returns: Versions v1 of Knowledge
34+
"""
35+
if self._v1 is None:
36+
self._v1 = V1(self)
37+
return self._v1
38+
39+
def __repr__(self) -> str:
40+
"""
41+
Provide a friendly representation
42+
:returns: Machine friendly representation
43+
"""
44+
return "<Twilio.Knowledge>"
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
r"""
2+
This code was generated by
3+
___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4+
| | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5+
| |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6+
7+
Twilio - Knowledge
8+
This is the public Twilio REST API.
9+
10+
NOTE: This class is auto generated by OpenAPI Generator.
11+
https://openapi-generator.tech
12+
Do not edit the class manually.
13+
"""
14+
15+
from typing import Optional
16+
from twilio.base.version import Version
17+
from twilio.base.domain import Domain
18+
from twilio.rest.knowledge.v1.knowledge import KnowledgeList
19+
20+
21+
class V1(Version):
22+
23+
def __init__(self, domain: Domain):
24+
"""
25+
Initialize the V1 version of Knowledge
26+
27+
:param domain: The Twilio.knowledge domain
28+
"""
29+
super().__init__(domain, "v1")
30+
self._knowledge: Optional[KnowledgeList] = None
31+
32+
@property
33+
def knowledge(self) -> KnowledgeList:
34+
if self._knowledge is None:
35+
self._knowledge = KnowledgeList(self)
36+
return self._knowledge
37+
38+
def __repr__(self) -> str:
39+
"""
40+
Provide a friendly representation
41+
:returns: Machine friendly representation
42+
"""
43+
return "<Twilio.Knowledge.V1>"

0 commit comments

Comments
 (0)