Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit439e4ad

Browse files
committed
[Librarian] Regenerated @ 330069c1eddda7f148dbcd8b26aaeec9c22b3409 3864ec4513c70a35c048caafc16ee3a36f3b2ed7
1 parent109efef commit439e4ad

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
fromtwilio.rest.insightsimportInsights
3030
fromtwilio.rest.intelligenceimportIntelligence
3131
fromtwilio.rest.ip_messagingimportIpMessaging
32+
fromtwilio.rest.knowledgeimportKnowledge
3233
fromtwilio.rest.lookupsimportLookups
3334
fromtwilio.rest.marketplaceimportMarketplace
3435
fromtwilio.rest.messagingimportMessaging
@@ -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
returnself._ip_messaging
363365

366+
@property
367+
defknowledge(self)->"Knowledge":
368+
"""
369+
Access the Knowledge Twilio Domain
370+
371+
:returns: Knowledge Twilio Domain
372+
"""
373+
ifself._knowledgeisNone:
374+
fromtwilio.rest.knowledgeimportKnowledge
375+
376+
self._knowledge=Knowledge(self)
377+
returnself._knowledge
378+
364379
@property
365380
deflookups(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+
fromdatetimeimportdatetime
1516
fromtypingimportAny,Dict,List,Optional,Union,Iterator,AsyncIterator
16-
fromtwilio.baseimportvalues
17+
fromtwilio.baseimportdeserialize,values
1718

1819
fromtwilio.base.instance_resourceimportInstanceResource
1920
fromtwilio.base.list_resourceimportListResource
@@ -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")
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
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+
fromtypingimportOptional
13+
14+
fromtwilio.base.domainimportDomain
15+
fromtwilio.restimportClient
16+
fromtwilio.rest.knowledge.v1importV1
17+
18+
19+
classKnowledgeBase(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+
defv1(self)->V1:
32+
"""
33+
:returns: Versions v1 of Knowledge
34+
"""
35+
ifself._v1isNone:
36+
self._v1=V1(self)
37+
returnself._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+
fromtypingimportOptional
16+
fromtwilio.base.versionimportVersion
17+
fromtwilio.base.domainimportDomain
18+
fromtwilio.rest.knowledge.v1.knowledgeimportKnowledgeList
19+
20+
21+
classV1(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+
defknowledge(self)->KnowledgeList:
34+
ifself._knowledgeisNone:
35+
self._knowledge=KnowledgeList(self)
36+
returnself._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)

[8]ページ先頭

©2009-2025 Movatter.jp