Skip to content

Commit

Permalink
[Librarian] Regenerated @ 0a245f5931e0ff292c12b643839bbb9a1b3831e3 47…
Browse files Browse the repository at this point in the history
…27b4211b32329ec55ad87676be1f406d3fd9e9
  • Loading branch information
twilio-dx committed Jan 9, 2025
1 parent 6d40feb commit 45523ff
Show file tree
Hide file tree
Showing 10 changed files with 65 additions and 110 deletions.
9 changes: 9 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ twilio-python Changelog

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

[2025-01-09] Version 9.4.2
--------------------------
**Library - Chore**
- [PR #832](https://github.com/twilio/twilio-python/pull/832): remove test for 3.7. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!

**Numbers**
- Change beta feature flag to use v2/BulkHostedNumberOrders


[2024-12-13] Version 9.4.1
--------------------------
**Library - Fix**
Expand Down
4 changes: 2 additions & 2 deletions twilio/rest/api/v2010/account/call/transcription.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def create(
:param speech_model: Recognition model used by the transcription engine, among those supported by the provider
:param hints: A Phrase contains words and phrase \\\"hints\\\" so that the speech recognition engine is more likely to recognize them.
:param enable_automatic_punctuation: The provider will add punctuation to recognition result
:param intelligence_service: The SID or the unique name of the [IntelligentService](https://www.twilio.com/docs/voice/intelligence/api/service-resource) to process the transcription.
:param intelligence_service: The SID or the unique name of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) to process the transcription.
:returns: The created TranscriptionInstance
"""
Expand Down Expand Up @@ -362,7 +362,7 @@ async def create_async(
:param speech_model: Recognition model used by the transcription engine, among those supported by the provider
:param hints: A Phrase contains words and phrase \\\"hints\\\" so that the speech recognition engine is more likely to recognize them.
:param enable_automatic_punctuation: The provider will add punctuation to recognition result
:param intelligence_service: The SID or the unique name of the [IntelligentService](https://www.twilio.com/docs/voice/intelligence/api/service-resource) to process the transcription.
:param intelligence_service: The SID or the unique name of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) to process the transcription.
:returns: The created TranscriptionInstance
"""
Expand Down
2 changes: 2 additions & 0 deletions twilio/rest/assistants/v1/assistant/assistants_knowledge.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class AssistantsKnowledgeInstance(InstanceResource):
:ivar status: The status of processing the knowledge source ('QUEUED', 'PROCESSING', 'COMPLETED', 'FAILED')
:ivar type: The type of knowledge source ('Web', 'Database', 'Text', 'File')
:ivar url: The url of the knowledge resource.
:ivar embedding_model: The embedding model to be used for the knowledge source.
:ivar date_created: The date and time in GMT when the Knowledge was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
:ivar date_updated: The date and time in GMT when the Knowledge was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
"""
Expand All @@ -55,6 +56,7 @@ def __init__(
self.status: Optional[str] = payload.get("status")
self.type: Optional[str] = payload.get("type")
self.url: Optional[str] = payload.get("url")
self.embedding_model: Optional[str] = payload.get("embedding_model")
self.date_created: Optional[datetime] = deserialize.iso8601_datetime(
payload.get("date_created")
)
Expand Down
20 changes: 20 additions & 0 deletions twilio/rest/assistants/v1/knowledge/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class AssistantsV1ServiceCreateKnowledgeRequest(object):
:ivar name: The name of the tool.
:ivar policy:
:ivar type: The type of the knowledge source.
:ivar embedding_model: The embedding model to be used for the knowledge source. It's required for 'Database' type but disallowed for other types.
"""

def __init__(self, payload: Dict[str, Any]):
Expand All @@ -48,6 +49,7 @@ def __init__(self, payload: Dict[str, Any]):
KnowledgeList.AssistantsV1ServiceCreatePolicyRequest
] = payload.get("policy")
self.type: Optional[str] = payload.get("type")
self.embedding_model: Optional[str] = payload.get("embedding_model")

def to_dict(self):
return {
Expand All @@ -57,6 +59,7 @@ def to_dict(self):
"name": self.name,
"policy": self.policy.to_dict() if self.policy is not None else None,
"type": self.type,
"embedding_model": self.embedding_model,
}

class AssistantsV1ServiceCreatePolicyRequest(object):
Expand Down Expand Up @@ -94,6 +97,7 @@ class AssistantsV1ServiceUpdateKnowledgeRequest(object):
:ivar name: The name of the knowledge source.
:ivar policy:
:ivar type: The description of the knowledge source.
:ivar embedding_model: The embedding model to be used for the knowledge source. It's only applicable to 'Database' type.
"""

def __init__(self, payload: Dict[str, Any]):
Expand All @@ -107,6 +111,7 @@ def __init__(self, payload: Dict[str, Any]):
KnowledgeList.AssistantsV1ServiceCreatePolicyRequest
] = payload.get("policy")
self.type: Optional[str] = payload.get("type")
self.embedding_model: Optional[str] = payload.get("embedding_model")

def to_dict(self):
return {
Expand All @@ -115,6 +120,7 @@ def to_dict(self):
"name": self.name,
"policy": self.policy.to_dict() if self.policy is not None else None,
"type": self.type,
"embedding_model": self.embedding_model,
}

"""
Expand All @@ -126,6 +132,7 @@ def to_dict(self):
:ivar status: The status of processing the knowledge source ('QUEUED', 'PROCESSING', 'COMPLETED', 'FAILED')
:ivar type: The type of knowledge source ('Web', 'Database', 'Text', 'File')
:ivar url: The url of the knowledge resource.
:ivar embedding_model: The embedding model to be used for the knowledge source.
:ivar date_created: The date and time in GMT when the Knowledge was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
:ivar date_updated: The date and time in GMT when the Knowledge was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
"""
Expand All @@ -145,6 +152,7 @@ def __init__(
self.status: Optional[str] = payload.get("status")
self.type: Optional[str] = payload.get("type")
self.url: Optional[str] = payload.get("url")
self.embedding_model: Optional[str] = payload.get("embedding_model")
self.date_created: Optional[datetime] = deserialize.iso8601_datetime(
payload.get("date_created")
)
Expand Down Expand Up @@ -276,6 +284,7 @@ class AssistantsV1ServiceCreateKnowledgeRequest(object):
:ivar name: The name of the tool.
:ivar policy:
:ivar type: The type of the knowledge source.
:ivar embedding_model: The embedding model to be used for the knowledge source. It's required for 'Database' type but disallowed for other types.
"""

def __init__(self, payload: Dict[str, Any]):
Expand All @@ -290,6 +299,7 @@ def __init__(self, payload: Dict[str, Any]):
KnowledgeList.AssistantsV1ServiceCreatePolicyRequest
] = payload.get("policy")
self.type: Optional[str] = payload.get("type")
self.embedding_model: Optional[str] = payload.get("embedding_model")

def to_dict(self):
return {
Expand All @@ -299,6 +309,7 @@ def to_dict(self):
"name": self.name,
"policy": self.policy.to_dict() if self.policy is not None else None,
"type": self.type,
"embedding_model": self.embedding_model,
}

class AssistantsV1ServiceCreatePolicyRequest(object):
Expand Down Expand Up @@ -336,6 +347,7 @@ class AssistantsV1ServiceUpdateKnowledgeRequest(object):
:ivar name: The name of the knowledge source.
:ivar policy:
:ivar type: The description of the knowledge source.
:ivar embedding_model: The embedding model to be used for the knowledge source. It's only applicable to 'Database' type.
"""

def __init__(self, payload: Dict[str, Any]):
Expand All @@ -349,6 +361,7 @@ def __init__(self, payload: Dict[str, Any]):
KnowledgeList.AssistantsV1ServiceCreatePolicyRequest
] = payload.get("policy")
self.type: Optional[str] = payload.get("type")
self.embedding_model: Optional[str] = payload.get("embedding_model")

def to_dict(self):
return {
Expand All @@ -357,6 +370,7 @@ def to_dict(self):
"name": self.name,
"policy": self.policy.to_dict() if self.policy is not None else None,
"type": self.type,
"embedding_model": self.embedding_model,
}

def __init__(self, version: Version, id: str):
Expand Down Expand Up @@ -562,6 +576,7 @@ class AssistantsV1ServiceCreateKnowledgeRequest(object):
:ivar name: The name of the tool.
:ivar policy:
:ivar type: The type of the knowledge source.
:ivar embedding_model: The embedding model to be used for the knowledge source. It's required for 'Database' type but disallowed for other types.
"""

def __init__(self, payload: Dict[str, Any]):
Expand All @@ -576,6 +591,7 @@ def __init__(self, payload: Dict[str, Any]):
KnowledgeList.AssistantsV1ServiceCreatePolicyRequest
] = payload.get("policy")
self.type: Optional[str] = payload.get("type")
self.embedding_model: Optional[str] = payload.get("embedding_model")

def to_dict(self):
return {
Expand All @@ -585,6 +601,7 @@ def to_dict(self):
"name": self.name,
"policy": self.policy.to_dict() if self.policy is not None else None,
"type": self.type,
"embedding_model": self.embedding_model,
}

class AssistantsV1ServiceCreatePolicyRequest(object):
Expand Down Expand Up @@ -622,6 +639,7 @@ class AssistantsV1ServiceUpdateKnowledgeRequest(object):
:ivar name: The name of the knowledge source.
:ivar policy:
:ivar type: The description of the knowledge source.
:ivar embedding_model: The embedding model to be used for the knowledge source. It's only applicable to 'Database' type.
"""

def __init__(self, payload: Dict[str, Any]):
Expand All @@ -635,6 +653,7 @@ def __init__(self, payload: Dict[str, Any]):
KnowledgeList.AssistantsV1ServiceCreatePolicyRequest
] = payload.get("policy")
self.type: Optional[str] = payload.get("type")
self.embedding_model: Optional[str] = payload.get("embedding_model")

def to_dict(self):
return {
Expand All @@ -643,6 +662,7 @@ def to_dict(self):
"name": self.name,
"policy": self.policy.to_dict() if self.policy is not None else None,
"type": self.type,
"embedding_model": self.embedding_model,
}

def __init__(self, version: Version):
Expand Down
87 changes: 0 additions & 87 deletions twilio/rest/content/v1/content/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,46 +247,17 @@ class FlowsPageComponent(object):
"""
:ivar label:
:ivar type:
:ivar text:
:ivar options:
"""

def __init__(self, payload: Dict[str, Any]):

self.label: Optional[str] = payload.get("label")
self.type: Optional[str] = payload.get("type")
self.text: Optional[str] = payload.get("text")
self.options: Optional[List[ContentList.FlowsPageComponentSelectItem]] = (
payload.get("options")
)

def to_dict(self):
return {
"label": self.label,
"type": self.type,
"text": self.text,
"options": (
[options.to_dict() for options in self.options]
if self.options is not None
else None
),
}

class FlowsPageComponentSelectItem(object):
"""
:ivar id:
:ivar title:
"""

def __init__(self, payload: Dict[str, Any]):

self.id: Optional[str] = payload.get("id")
self.title: Optional[str] = payload.get("title")

def to_dict(self):
return {
"id": self.id,
"title": self.title,
}

class ListItem(object):
Expand Down Expand Up @@ -1106,46 +1077,17 @@ class FlowsPageComponent(object):
"""
:ivar label:
:ivar type:
:ivar text:
:ivar options:
"""

def __init__(self, payload: Dict[str, Any]):

self.label: Optional[str] = payload.get("label")
self.type: Optional[str] = payload.get("type")
self.text: Optional[str] = payload.get("text")
self.options: Optional[List[ContentList.FlowsPageComponentSelectItem]] = (
payload.get("options")
)

def to_dict(self):
return {
"label": self.label,
"type": self.type,
"text": self.text,
"options": (
[options.to_dict() for options in self.options]
if self.options is not None
else None
),
}

class FlowsPageComponentSelectItem(object):
"""
:ivar id:
:ivar title:
"""

def __init__(self, payload: Dict[str, Any]):

self.id: Optional[str] = payload.get("id")
self.title: Optional[str] = payload.get("title")

def to_dict(self):
return {
"id": self.id,
"title": self.title,
}

class ListItem(object):
Expand Down Expand Up @@ -1966,46 +1908,17 @@ class FlowsPageComponent(object):
"""
:ivar label:
:ivar type:
:ivar text:
:ivar options:
"""

def __init__(self, payload: Dict[str, Any]):

self.label: Optional[str] = payload.get("label")
self.type: Optional[str] = payload.get("type")
self.text: Optional[str] = payload.get("text")
self.options: Optional[List[ContentList.FlowsPageComponentSelectItem]] = (
payload.get("options")
)

def to_dict(self):
return {
"label": self.label,
"type": self.type,
"text": self.text,
"options": (
[options.to_dict() for options in self.options]
if self.options is not None
else None
),
}

class FlowsPageComponentSelectItem(object):
"""
:ivar id:
:ivar title:
"""

def __init__(self, payload: Dict[str, Any]):

self.id: Optional[str] = payload.get("id")
self.title: Optional[str] = payload.get("title")

def to_dict(self):
return {
"id": self.id,
"title": self.title,
}

class ListItem(object):
Expand Down
1 change: 1 addition & 0 deletions twilio/rest/conversations/v1/address_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class Type(object):
MESSENGER = "messenger"
GBM = "gbm"
EMAIL = "email"
RCS = "rcs"

"""
:ivar sid: A 34 character string that uniquely identifies this resource.
Expand Down
1 change: 1 addition & 0 deletions twilio/rest/insights/v1/call/call_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class CallType(object):
SIP = "sip"
TRUNKING = "trunking"
CLIENT = "client"
WHATSAPP = "whatsapp"

class ProcessingState(object):
COMPLETE = "complete"
Expand Down
1 change: 1 addition & 0 deletions twilio/rest/insights/v1/call_summaries.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class CallType(object):
SIP = "sip"
TRUNKING = "trunking"
CLIENT = "client"
WHATSAPP = "whatsapp"

class ProcessingState(object):
COMPLETE = "complete"
Expand Down
Loading

0 comments on commit 45523ff

Please sign in to comment.