8000 [Librarian] Regenerated @ 330069c1eddda7f148dbcd8b26aaeec9c22b3409 38… · twilio/twilio-python@439e4ad · GitHub
[go: up one dir, main page]

Skip to content

Commit 439e4ad

Browse files
committed
[Librarian] Regenerated @ 330069c1eddda7f148dbcd8b26aaeec9c22b3409 3864ec4513c70a35c048caafc16ee3a36f3b2ed7
1 parent 109efef commit 439e4ad

File tree

13 files changed

+1630
-29
lines changed

13 files changed

+1630
-29
lines changed

CHANGES.md

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

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

6+
[2025-06-12] Version 9.6.3
7+
--------------------------
8+
**Library - Chore**
9+
- [PR #869](https://github.com/twilio/twilio-python/pull/869): Remove knowledge files. Thanks to [@krishnakalluri](https://github.com/krishnakalluri)!
10+
11+
**Api**
12+
- Change DependentPhoneNumber `capabilities` type `object` and `date_created`, `date_updated` to `date_time<rfc2822>`
13+
- Updated the `Default` value from 0 to 1 in the Recordings Resource `channels` property
14+
15+
**Serverless**
16+
- Update `ienum` type level in Logs api
17+
18+
**Verify**
19+
- Update Channel list in Verify Attempst API
20+
- Update `ienum` type for Conversion_Status in Verify Attempts API
21+
22+
**Twiml**
23+
- Add `us2` to the list of supported values for the region attribute in the `<Conference>` TwiML noun.
24+
25+
626
[2025-05-29] Version 9.6.2
727
--------------------------
828
**Library - Chore**

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
@@ -142,6 +143,7 @@ def __init__(
142143
self._insights: Optional["Insights"] = None
143144
self._intelligence: Optional["Intelligence"] = None
144145
self._ip_messaging: Optional["IpMessaging"] = None
146+
self._knowledge: Optional["Knowledge"] = None
145147
self._lookups: Optional["Lookups"] = None
146148
self._marketplace: Optional["Marketplace"] = None
147149
self._messaging: Optional["Messaging"] = None
@@ -361,6 +363,19 @@ def ip_messaging(self) -> "IpMessaging":
361363
self._ip_messaging = IpMessaging(self)
362364
return self._ip_messaging
363365

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

twilio/rest/api/v2010/account/address/dependent_phone_number.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212
Do not edit the class manually.
1313
"""
1414

15+
from datetime import datetime
1516
from typing import Any, Dict, List, Optional, Union, Iterator, AsyncIterator
16-
from twilio.base import values
17+
from twilio.base import deserialize, values
1718

1819
from twilio.base.instance_resource import InstanceResource
1920
from twilio.base.list_resource import ListResource
@@ -50,7 +51,7 @@ class EmergencyStatus(object):
5051
:ivar sms_method: The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`.
5152
:ivar sms_url: The URL we call when the phone number receives an incoming SMS message.
5253
:ivar address_requirements:
53-
:ivar capabilities:
54+
:ivar capabilities: The set of Boolean properties that indicates whether a phone number can receive calls or messages. Capabilities are `Voice`, `SMS`, and `MMS` and each capability can be: `true` or `false`.
5455
:ivar status_callback: The URL we call using the `status_callback_method` to send status information to your application.
5556
:ivar status_callback_method: The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`.
5657
:ivar api_version: The API version used to start a new TwiML session.
@@ -82,16 +83,20 @@ def __init__(
8283
self.voice_caller_id_lookup: Optional[bool] = payload.get(
8384
"voice_caller_id_lookup"
8485
)
85-
self.date_created: Optional[str] = payload.get("date_created")
86-
self.date_updated: Optional[str] = payload.get("date_updated")
86+
self.date_created: Optional[datetime] = deserialize.rfc2822_datetime(
87+
payload.get("date_created")
88+
)
89+
self.date_updated: Optional[datetime] = deserialize.rfc2822_datetime(
90+
payload.get("date_updated")
< F438 /td>
91+
)
8792
self.sms_fallback_method: Optional[str] = payload.get("sms_fallback_method")
8893
self.sms_fallback_url: Optional[str] = payload.get("sms_fallback_url")
8994
self.sms_method: Optional[str] = payload.get("sms_method")
9095
self.sms_url: Optional[str] = payload.get("sms_url")
9196
self.address_requirements: Optional[
9297
"DependentPhoneNumberInstance.AddressRequirement"
9398
] = payload.get("address_requirements")
94-
self.capabilities: Optional[str] = payload.get("capabilities")
99+
self.capabilities: Optional[Dict[str, object]] = payload.get("capabilities")
95100
self.status_callback: Optional[str] = payload.get("status_callback")
96101
self.status_callback_method: Optional[str] = payload.get(
97102
"status_callback_method"

twilio/rest/api/v2010/account/recording/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class Status(object):
5757
:ivar price: The one-time cost of creating the recording in the `price_unit` currency.
5858
:ivar price_unit: The currency used in the `price` property. Example: `USD`.
5959
:ivar status:
60-
:ivar channels: The number of channels in the final recording file. Can be: `1` or `2`.
60+
:ivar channels: The number of channels in the final recording file. Can be: `1` or `2`. Default: `1`.
6161
:ivar source:
6262
:ivar error_code: The error code that describes why the recording is `absent`. The error code is described in our [Error Dictionary](https://www.twilio.com/docs/api/errors). This value is null if the recording `status` is not `absent`.
6363
:ivar uri: The URI of the resource, relative to `https://api.twilio.com`.
Lines changed: 44 additions & 0 deletions
< 10000 /tr>
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>"

twilio/rest/knowledge/v1/__init__.py

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)
0