Skip to content

Commit 6ef1c58

Browse files
committed
[Librarian] Regenerated @ 46fda61a99ae466baec95ccfb33bfdd1b12de546 ac40c0ff376309c2351c6b59c7c15bbb6af6da52
1 parent 229ddd3 commit 6ef1c58

File tree

12 files changed

+809
-664
lines changed

12 files changed

+809
-664
lines changed

CHANGES.md

Lines 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-09-30] Version 9.8.3
7+
--------------------------
8+
**Library - Chore**
9+
- [PR #882](https://github.com/twilio/twilio-python/pull/882): change oauth token endpoint. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
10+
11+
**Insights**
12+
- Replace `field` with `key` in Request Filters and Response Metadata Filters and for Reports API
13+
14+
615
[2025-09-25] Version 9.8.2
716
--------------------------
817
**Api**

twilio/rest/conversations/v1/service/binding.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class BindingType(object):
2828
APN = "apn"
2929
GCM = "gcm"
3030
FCM = "fcm"
31+
TWILSOCK = "twilsock"
3132

3233
"""
3334
:ivar sid: A 34 character string that uniquely identifies this resource.
@@ -291,7 +292,7 @@ def stream(
291292
is reached.
292293
The results are returned as a generator, so this operation is memory efficient.
293294
294-
:param List["BindingInstance.BindingType"] binding_type: The push technology used by the Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
295+
:param List["BindingInstance.BindingType"] binding_type: The push technology used by the Binding resources to read. Can be: `apn`, `gcm`, `fcm`, or `twilsock`. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
295296
:param List[str] identity: The identity of a [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource) this binding belongs to. See [access tokens](https://www.twilio.com/docs/conversations/create-tokens) for more details.
296297
:param limit: Upper limit for the number of records to return. stream()
297298
guarantees to never return more than limit. Default is no limit
@@ -322,7 +323,7 @@ async def stream_async(
322323
is reached.
323324
The results are returned as a generator, so this operation is memory efficient.
324325
325-
:param List["BindingInstance.BindingType"] binding_type: The push technology used by the Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
326+
:param List["BindingInstance.BindingType"] binding_type: The push technology used by the Binding resources to read. Can be: `apn`, `gcm`, `fcm`, or `twilsock`. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
326327
:param List[str] identity: The identity of a [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource) this binding belongs to. See [access tokens](https://www.twilio.com/docs/conversations/create-tokens) for more details.
327328
:param limit: Upper limit for the number of records to return. stream()
328329
guarantees to never return more than limit. Default is no limit
@@ -352,7 +353,7 @@ def list(
352353
Unlike stream(), this operation is eager and will load `limit` records into
353354
memory before returning.
354355
355-
:param List["BindingInstance.BindingType"] binding_type: The push technology used by the Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
356+
:param List["BindingInstance.BindingType"] binding_type: The push technology used by the Binding resources to read. Can be: `apn`, `gcm`, `fcm`, or `twilsock`. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
356357
:param List[str] identity: The identity of a [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource) this binding belongs to. See [access tokens](https://www.twilio.com/docs/conversations/create-tokens) for more details.
357358
:param limit: Upper limit for the number of records to return. list() guarantees
358359
never to return more than limit. Default is no limit
@@ -384,7 +385,7 @@ async def list_async(
384385
Unlike stream(), this operation is eager and will load `limit` records into
385386
memory before returning.
386387
387-
:param List["BindingInstance.BindingType"] binding_type: The push technology used by the Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
388+
:param List["BindingInstance.BindingType"] binding_type: The push technology used by the Binding resources to read. Can be: `apn`, `gcm`, `fcm`, or `twilsock`. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
388389
:param List[str] identity: The identity of a [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource) this binding belongs to. See [access tokens](https://www.twilio.com/docs/conversations/create-tokens) for more details.
389390
:param limit: Upper limit for the number of records to return. list() guarantees
390391
never to return more than limit. Default is no limit
@@ -417,7 +418,7 @@ def page(
417418
Retrieve a single page of BindingInstance records from the API.
418419
Request is executed immediately
419420
420-
:param binding_type: The push technology used by the Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
421+
:param binding_type: The push technology used by the Binding resources to read. Can be: `apn`, `gcm`, `fcm`, or `twilsock`. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
421422
:param identity: The identity of a [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource) this binding belongs to. See [access tokens](https://www.twilio.com/docs/conversations/create-tokens) for more details.
422423
:param page_token: PageToken provided by the API
423424
:param page_number: Page Number, this value is simply for client state
@@ -456,7 +457,7 @@ async def page_async(
456457
Asynchronously retrieve a single page of BindingInstance records from the API.
457458
Request is executed immediately
458459
459-
:param binding_type: The push technology used by the Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
460+
:param binding_type: The push technology used by the Binding resources to read. Can be: `apn`, `gcm`, `fcm`, or `twilsock`. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
460461
:param identity: The identity of a [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource) this binding belongs to. See [access tokens](https://www.twilio.com/docs/conversations/create-tokens) for more details.
461462
:param page_token: PageToken provided by the API
462463
:param page_number: Page Number, this value is simply for client state

twilio/rest/conversations/v1/service/conversation/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class State(object):
3333
INACTIVE = "inactive"
3434
ACTIVE = "active"
3535
CLOSED = "closed"
36+
INITIALIZING = "initializing"
3637

3738
class WebhookEnabledType(object):
3839
TRUE = "true"

twilio/rest/lookups/v2/phone_number.py

Lines changed: 17 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ class ValidationError(object):
3737
:ivar national_format: The phone number in [national format](https://en.wikipedia.org/wiki/National_conventions_for_writing_telephone_numbers).
3838
:ivar valid: Boolean which indicates if the phone number is in a valid range that can be freely assigned by a carrier to a user.
3939
:ivar validation_errors: Contains reasons why a phone number is invalid. Possible values: TOO_SHORT, TOO_LONG, INVALID_BUT_POSSIBLE, INVALID_COUNTRY_CODE, INVALID_LENGTH, NOT_A_NUMBER.
40-
:ivar caller_name: An object that contains caller name information based on [CNAM](https://support.twilio.com/hc/en-us/articles/360051670533-Getting-Started-with-CNAM-Caller-ID).
41-
:ivar sim_swap: An object that contains information on the last date the subscriber identity module (SIM) was changed for a mobile phone number.
42-
:ivar call_forwarding: An object that contains information on the unconditional call forwarding status of mobile phone number.
43-
:ivar line_status: An object that contains line status information for a mobile phone number.
44-
:ivar line_type_intelligence: An object that contains line type information including the carrier name, mobile country code, and mobile network code.
45-
:ivar identity_match: An object that contains identity match information. The result of comparing user-provided information including name, address, date of birth, national ID, against authoritative phone-based data sources
46-
:ivar reassigned_number: An object that contains reassigned number information. Reassigned Numbers will return a phone number's reassignment status given a phone number and date
47-
:ivar sms_pumping_risk: An object that contains information on if a phone number has been currently or previously blocked by Verify Fraud Guard for receiving malicious SMS pumping traffic as well as other signals associated with risky carriers and low conversion rates.
40+
:ivar caller_name:
41+
:ivar sim_swap:
42+
:ivar call_forwarding:
43+
:ivar line_type_intelligence:
44+
:ivar line_status:
45+
:ivar identity_match:
46+
:ivar reassigned_number:
47+
:ivar sms_pumping_risk:
4848
:ivar phone_number_quality_score: An object that contains information of a mobile phone number quality score. Quality score will return a risk score about the phone number.
4949
:ivar pre_fill: An object that contains pre fill information. pre_fill will return PII information associated with the phone number like first name, last name, address line, country code, state and postal code.
5050
:ivar url: The absolute URL of the resource.
@@ -63,25 +63,17 @@ def __init__(
6363
self.phone_number: Optional[str] = payload.get("phone_number")
6464
self.national_format: Optional[str] = payload.get("national_format")
6565
self.valid: Optional[bool] = payload.get("valid")
66-
self.validation_errors: Optional[
67-
List["PhoneNumberInstance.ValidationError"]
68-
] = payload.get("validation_errors")
69-
self.caller_name: Optional[Dict[str, object]] = payload.get("caller_name")
70-
self.sim_swap: Optional[Dict[str, object]] = payload.get("sim_swap")
71-
self.call_forwarding: Optional[Dict[str, object]] = payload.get(
72-
"call_forwarding"
73-
)
74-
self.line_status: Optional[Dict[str, object]] = payload.get("line_status")
75-
self.line_type_intelligence: Optional[Dict[str, object]] = payload.get(
66+
self.validation_errors: Optional[List[str]] = payload.get("validation_errors")
67+
self.caller_name: Optional[str] = payload.get("caller_name")
68+
self.sim_swap: Optional[str] = payload.get("sim_swap")
69+
self.call_forwarding: Optional[str] = payload.get("call_forwarding")
70+
self.line_type_intelligence: Optional[str] = payload.get(
7671
"line_type_intelligence"
7772
)
78-
self.identity_match: Optional[Dict[str, object]] = payload.get("identity_match")
79-
self.reassigned_number: Optional[Dict[str, object]] = payload.get(
80-
"reassigned_number"
81-
)
82-
self.sms_pumping_risk: Optional[Dict[str, object]] = payload.get(
83-
"sms_pumping_risk"
84-
)
73+
self.line_status: Optional[str] = payload.get("line_status")
74+
self.identity_match: Optional[str] = payload.get("identity_match")
75+
self.reassigned_number: Optional[str] = payload.get("reassigned_number")
76+
self.sms_pumping_risk: Optional[str] = payload.get("sms_pumping_risk")
8577
self.phone_number_quality_score: Optional[Dict[str, object]] = payload.get(
8678
"phone_number_quality_score"
8779
)

0 commit comments

Comments
 (0)