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 7321899

Browse filesBrowse files
committed
[Librarian] Regenerated @ 1565ca6ea5fc25da35893aea0bc70b60053b86b8 d990df451c3b8033c98bd3ead6be1f25b41b05b9
1 parent 58cb0e6 commit 7321899
Copy full SHA for 7321899

File tree

12 files changed

+71
-22
lines changed
Filter options

12 files changed

+71
-22
lines changed

‎CHANGES.md

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

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

6+
[2025-03-11] Version 9.5.0
7+
--------------------------
8+
**Library - Feature**
9+
- [PR #850](https://github.com/twilio/twilio-python/pull/850): Update UPGRADE.md. Thanks to [@manisha1997](https://github.com/manisha1997)!
10+
11+
**Library - Fix**
12+
- [PR #847](https://github.com/twilio/twilio-python/pull/847): AssistantsBase import. Thanks to [@sbansla](https://github.com/sbansla)!
13+
14+
**Api**
15+
- Add the missing `emergency_enabled` field for `Address Service` endpoints
16+
17+
**Messaging**
18+
- Add missing enums for A2P and TF
19+
20+
**Numbers**
21+
- add missing enum values to hosted_number_order_status
22+
23+
**Twiml**
24+
- Convert Twiml Attribute `speechModel` of type enum to string **(breaking change)**
25+
26+
627
[2025-02-20] Version 9.4.6
728
--------------------------
829
**Library - Chore**

‎twilio/rest/api/v2010/account/address/__init__.py

Copy file name to clipboardExpand all lines: twilio/rest/api/v2010/account/address/__init__.py
+18Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,7 @@ def stream(
619619
self,
620620
customer_name: Union[str, object] = values.unset,
621621
friendly_name: Union[str, object] = values.unset,
622+
emergency_enabled: Union[bool, object] = values.unset,
622623
iso_country: Union[str, object] = values.unset,
623624
limit: Optional[int] = None,
624625
page_size: Optional[int] = None,
@@ -631,6 +632,7 @@ def stream(
631632
632633
:param str customer_name: The `customer_name` of the Address resources to read.
633634
:param str friendly_name: The string that identifies the Address resources to read.
635+
:param bool emergency_enabled: Whether the address can be associated to a number for emergency calling.
634636
:param str iso_country: The ISO country code of the Address resources to read.
635637
:param limit: Upper limit for the number of records to return. stream()
636638
guarantees to never return more than limit. Default is no limit
@@ -645,6 +647,7 @@ def stream(
645647
page = self.page(
646648
customer_name=customer_name,
647649
friendly_name=friendly_name,
650+
emergency_enabled=emergency_enabled,
648651
iso_country=iso_country,
649652
page_size=limits["page_size"],
650653
)
@@ -655,6 +658,7 @@ async def stream_async(
655658
self,
656659
customer_name: Union[str, object] = values.unset,
657660
friendly_name: Union[str, object] = values.unset,
661+
emergency_enabled: Union[bool, object] = values.unset,
658662
iso_country: Union[str, object] = values.unset,
659663
limit: Optional[int] = None,
660664
page_size: Optional[int] = None,
@@ -667,6 +671,7 @@ async def stream_async(
667671
668672
:param str customer_name: The `customer_name` of the Address resources to read.
669673
:param str friendly_name: The string that identifies the Address resources to read.
674+
:param bool emergency_enabled: Whether the address can be associated to a number for emergency calling.
670675
:param str iso_country: The ISO country code of the Address resources to read.
671676
:param limit: Upper limit for the number of records to return. stream()
672677
guarantees to never return more than limit. Default is no limit
@@ -681,6 +686,7 @@ async def stream_async(
681686
page = await self.page_async(
682687
customer_name=customer_name,
683688
friendly_name=friendly_name,
689+
emergency_enabled=emergency_enabled,
684690
iso_country=iso_country,
685691
page_size=limits["page_size"],
686692
)
@@ -691,6 +697,7 @@ def list(
691697
self,
692698
customer_name: Union[str, object] = values.unset,
693699
friendly_name: Union[str, object] = values.unset,
700+
emergency_enabled: Union[bool, object] = values.unset,
694701
iso_country: Union[str, object] = values.unset,
695702
limit: Optional[int] = None,
696703
page_size: Optional[int] = None,
@@ -702,6 +709,7 @@ def list(
702709
703710
:param str customer_name: The `customer_name` of the Address resources to read.
704711
:param str friendly_name: The string that identifies the Address resources to read.
712+
:param bool emergency_enabled: Whether the address can be associated to a number for emergency calling.
705713
:param str iso_country: The ISO country code of the Address resources to read.
706714
:param limit: Upper limit for the number of records to return. list() guarantees
707715
never to return more than limit. Default is no limit
@@ -716,6 +724,7 @@ def list(
716724
self.stream(
717725
customer_name=customer_name,
718726
friendly_name=friendly_name,
727+
emergency_enabled=emergency_enabled,
719728
iso_country=iso_country,
720729
limit=limit,
721730
page_size=page_size,
@@ -726,6 +735,7 @@ async def list_async(
726735
self,
727736
customer_name: Union[str, object] = values.unset,
728737
friendly_name: Union[str, object] = values.unset,
738+
emergency_enabled: Union[bool, object] = values.unset,
729739
iso_country: Union[str, object] = values.unset,
730740
limit: Optional[int] = None,
731741
page_size: Optional[int] = None,
@@ -737,6 +747,7 @@ async def list_async(
737747
738748
:param str customer_name: The `customer_name` of the Address resources to read.
739749
:param str friendly_name: The string that identifies the Address resources to read.
750+
:param bool emergency_enabled: Whether the address can be associated to a number for emergency calling.
740751
:param str iso_country: The ISO country code of the Address resources to read.
741752
:param limit: Upper limit for the number of records to return. list() guarantees
742753
never to return more than limit. Default is no limit
@@ -752,6 +763,7 @@ async def list_async(
752763
async for record in await self.stream_async(
753764
customer_name=customer_name,
754765
friendly_name=friendly_name,
766+
emergency_enabled=emergency_enabled,
755767
iso_country=iso_country,
756768
limit=limit,
757769
page_size=page_size,
@@ -762,6 +774,7 @@ def page(
762774
self,
763775
customer_name: Union[str, object] = values.unset,
764776
friendly_name: Union[str, object] = values.unset,
777+
emergency_enabled: Union[bool, object] = values.unset,
765778
iso_country: Union[str, object] = values.unset,
766779
page_token: Union[str, object] = values.unset,
767780
page_number: Union[int, object] = values.unset,
@@ -773,6 +786,7 @@ def page(
773786
774787
:param customer_name: The `customer_name` of the Address resources to read.
775788
:param friendly_name: The string that identifies the Address resources to read.
789+
:param emergency_enabled: Whether the address can be associated to a number for emergency calling.
776790
:param iso_country: The ISO country code of the Address resources to read.
777791
:param page_token: PageToken provided by the API
778792
:param page_number: Page Number, this value is simply for client state
@@ -784,6 +798,7 @@ def page(
784798
{
785799
"CustomerName": customer_name,
786800
"FriendlyName": friendly_name,
801+
"EmergencyEnabled": serialize.boolean_to_string(emergency_enabled),
787802
"IsoCountry": iso_country,
788803
"PageToken": page_token,
789804
"Page": page_number,
@@ -804,6 +819,7 @@ async def page_async(
804819
self,
805820
customer_name: Union[str, object] = values.unset,
806821
friendly_name: Union[str, object] = values.unset,
822+
emergency_enabled: Union[bool, object] = values.unset,
807823
iso_country: Union[str, object] = values.unset,
808824
page_token: Union[str, object] = values.unset,
809825
page_number: Union[int, object] = values.unset,
@@ -815,6 +831,7 @@ async def page_async(
815831
816832
:param customer_name: The `customer_name` of the Address resources to read.
817833
:param friendly_name: The string that identifies the Address resources to read.
834+
:param emergency_enabled: Whether the address can be associated to a number for emergency calling.
818835
:param iso_country: The ISO country code of the Address resources to read.
819836
:param page_token: PageToken provided by the API
820837
:param page_number: Page Number, this value is simply for client state
@@ -826,6 +843,7 @@ async def page_async(
826843
{
827844
"CustomerName": customer_name,
828845
"FriendlyName": friendly_name,
846+
"EmergencyEnabled": serialize.boolean_to_string(emergency_enabled),
829847
"IsoCountry": iso_country,
830848
"PageToken": page_token,
831849
"Page": page_number,

‎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
@@ -41,6 +41,7 @@ class Type(object):
4141
EMAIL = "email"
4242
RCS = "rcs"
4343
APPLE = "apple"
44+
CHAT = "chat"
4445

4546
"""
4647
:ivar sid: A 34 character string that uniquely identifies this resource.

‎twilio/rest/events/v1/sink/__init__.py

Copy file name to clipboardExpand all lines: twilio/rest/events/v1/sink/__init__.py
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ class SinkType(object):
3030
KINESIS = "kinesis"
3131
WEBHOOK = "webhook"
3232
SEGMENT = "segment"
33+
EMAIL = "email"
3334

3435
class Status(object):
3536
INITIALIZED = "initialized"

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

Copy file name to clipboardExpand all lines: twilio/rest/iam/v1/__init__.py
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from twilio.base.domain import Domain
1818
from twilio.rest.iam.v1.api_key import ApiKeyList
1919
from twilio.rest.iam.v1.get_api_keys import GetApiKeysList
20-
from twilio.rest.iam.v1.key import KeyList
20+
from twilio.rest.iam.v1.new_api_key import NewApiKeyList
2121

2222

2323
class V1(Version):
@@ -31,7 +31,7 @@ def __init__(self, domain: Domain):
3131
super().__init__(domain, "v1")
3232
self._api_key: Optional[ApiKeyList] = None
3333
self._get_api_keys: Optional[GetApiKeysList] = None
34-
self._keys: Optional[KeyList] = None
34+
self._new_api_key: Optional[NewApiKeyList] = None
3535

3636
@property
3737
def api_key(self) -> ApiKeyList:
@@ -46,10 +46,10 @@ def get_api_keys(self) -> GetApiKeysList:
4646
return self._get_api_keys
4747

4848
@property
49-
def keys(self) -> KeyList:
50-
if self._keys is None:
51-
self._keys = KeyList(self)
52-
return self._keys
49+
def new_api_key(self) -> NewApiKeyList:
50+
if self._new_api_key is None:
51+
self._new_api_key = NewApiKeyList(self)
52+
return self._new_api_key
5353

5454
def __repr__(self) -> str:
5555
"""

‎twilio/rest/iam/v1/key.py renamed to ‎twilio/rest/iam/v1/new_api_key.py

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

2323

24-
class KeyInstance(InstanceResource):
24+
class NewApiKeyInstance(InstanceResource):
2525

2626
class Keytype(object):
2727
RESTRICTED = "restricted"
@@ -56,14 +56,14 @@ def __repr__(self) -> str:
5656
:returns: Machine friendly representation
5757
"""
5858

59-
return "<Twilio.Iam.V1.KeyInstance>"
59+
return "<Twilio.Iam.V1.NewApiKeyInstance>"
6060

6161

62-
class KeyList(ListResource):
62+
class NewApiKeyList(ListResource):
6363

6464
def __init__(self, version: Version):
6565
"""
66-
Initialize the KeyList
66+
Initialize the NewApiKeyList
6767
6868
:param version: Version that contains the resource
6969
@@ -76,18 +76,18 @@ def create(
7676
self,
7777
account_sid: str,
7878
friendly_name: Union[str, object] = values.unset,
79-
key_type: Union["KeyInstance.Keytype", object] = values.unset,
79+
key_type: Union["NewApiKeyInstance.Keytype", object] = values.unset,
8080
policy: Union[object, object] = values.unset,
81-
) -> KeyInstance:
81+
) -> NewApiKeyInstance:
8282
"""
83-
Create the KeyInstance
83+
Create the NewApiKeyInstance
8484
8585
:param account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Payments resource.
8686
:param friendly_name: A descriptive string that you create to describe the resource. It can be up to 64 characters long.
8787
:param key_type:
8888
:param policy: The \\\\`Policy\\\\` object is a collection that specifies the allowed Twilio permissions for the restricted key. For more information on the permissions available with restricted API keys, refer to the [Twilio documentation](https://www.twilio.com/docs/iam/api-keys/restricted-api-keys#permissions-available-with-restricted-api-keys).
8989
90-
:returns: The created KeyInstance
90+
:returns: The created NewApiKeyInstance
9191
"""
9292

9393
data = values.of(
@@ -108,24 +108,24 @@ def create(
108108
method="POST", uri=self._uri, data=data, headers=headers
109109
)
110110

111-
return KeyInstance(self._version, payload)
111+
return NewApiKeyInstance(self._version, payload)
112112

113113
async def create_async(
114114
self,
115115
account_sid: str,
116116
friendly_name: Union[str, object] = values.unset,
117-
key_type: Union["KeyInstance.Keytype", object] = values.unset,
117+
key_type: Union["NewApiKeyInstance.Keytype", object] = values.unset,
118118
policy: Union[object, object] = values.unset,
119-
) -> KeyInstance:
119+
) -> NewApiKeyInstance:
120120
"""
121-
Asynchronously create the KeyInstance
121+
Asynchronously create the NewApiKeyInstance
122122
123123
:param account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Payments resource.
124124
:param friendly_name: A descriptive string that you create to describe the resource. It can be up to 64 characters long.
125125
:param key_type:
126126
:param policy: The \\\\`Policy\\\\` object is a collection that specifies the allowed Twilio permissions for the restricted key. For more information on the permissions available with restricted API keys, refer to the [Twilio documentation](https://www.twilio.com/docs/iam/api-keys/restricted-api-keys#permissions-available-with-restricted-api-keys).
127127
128-
:returns: The created KeyInstance
128+
:returns: The created NewApiKeyInstance
129129
"""
130130

131131
data = values.of(
@@ -146,12 +146,12 @@ async def create_async(
146146
method="POST", uri=self._uri, data=data, headers=headers
147147
)
148148

149-
return KeyInstance(self._version, payload)
149+
return NewApiKeyInstance(self._version, payload)
150150

151151
def __repr__(self) -> str:
152152
"""
153153
Provide a friendly representation
154154
155155
:returns: Machine friendly representation
156156
"""
157-
return "<Twilio.Iam.V1.KeyList>"
157+
return "<Twilio.Iam.V1.NewApiKeyList>"

‎twilio/rest/insights/v1/conference/__init__.py

Copy file name to clipboardExpand all lines: twilio/rest/insights/v1/conference/__init__.py
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ class Region(object):
5858
JP1 = "jp1"
5959
SG1 = "sg1"
6060
DE1 = "de1"
61+
IN1 = "in1"
6162

6263
class Tag(object):
6364
INVALID_REQUESTED_REGION = "invalid_requested_region"

‎twilio/rest/insights/v1/conference/conference_participant.py

Copy file name to clipboardExpand all lines: twilio/rest/insights/v1/conference/conference_participant.py
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ class Region(object):
6262
JP1 = "jp1"
6363
SG1 = "sg1"
6464
DE1 = "de1"
65+
IN1 = "in1"
6566

6667
"""
6768
:ivar participant_sid: SID for this participant.

‎twilio/rest/messaging/v1/brand_registration/__init__.py

Copy file name to clipboardExpand all lines: twilio/rest/messaging/v1/brand_registration/__init__.py
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ class Status(object):
4646
APPROVED = "APPROVED"
4747
FAILED = "FAILED"
4848
IN_REVIEW = "IN_REVIEW"
49-
DELETED = "DELETED"
49+
DELETION_PENDING = "DELETION_PENDING"
50+
DELETION_FAILED = "DELETION_FAILED"
51+
SUSPENDED = "SUSPENDED"
5052

5153
"""
5254
:ivar sid: The unique string to identify Brand Registration.

‎twilio/rest/messaging/v1/brand_registration/brand_vetting.py

Copy file name to clipboardExpand all lines: twilio/rest/messaging/v1/brand_registration/brand_vetting.py
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class BrandVettingInstance(InstanceResource):
2626

2727
class VettingProvider(object):
2828
CAMPAIGN_VERIFY = "campaign-verify"
29+
AEGIS = "aegis"
2930

3031
"""
3132
:ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the vetting record.

‎twilio/rest/messaging/v1/tollfree_verification.py

Copy file name to clipboardExpand all lines: twilio/rest/messaging/v1/tollfree_verification.py
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class OptInType(object):
3131
VIA_TEXT = "VIA_TEXT"
3232
MOBILE_QR_CODE = "MOBILE_QR_CODE"
3333
IMPORT = "IMPORT"
34+
IMPORT_PLEASE_REPLACE = "IMPORT_PLEASE_REPLACE"
3435

3536
class Status(object):
3637
PENDING_REVIEW = "PENDING_REVIEW"

‎twilio/rest/numbers/v2/hosted_number_order.py

Copy file name to clipboardExpand all lines: twilio/rest/numbers/v2/hosted_number_order.py
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,13 @@
2525
class HostedNumberOrderInstance(InstanceResource):
2626

2727
class Status(object):
28+
TWILIO_PROCESSING = "twilio-processing"
2829
RECEIVED = "received"
2930
PENDING_VERIFICATION = "pending-verification"
3031
VERIFIED = "verified"
3132
PENDING_LOA = "pending-loa"
3233
CARRIER_PROCESSING = "carrier-processing"
34+
TESTING = "testing"
3335
COMPLETED = "completed"
3436
FAILED = "failed"
3537
ACTION_REQUIRED = "action-required"

0 commit comments

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