Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "4.151.0"
".": "4.152.0"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 1047
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/telnyx/telnyx-f0b674236fbd66f50b5a1706fafd8cb681459cf05379967fd1f043d38d6d476d.yml
openapi_spec_hash: 7ae2cfe4f10fc24e4376fd15cd3455e8
config_hash: da8cae8a6100e4d90af920e222524d09
configured_endpoints: 1076
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/telnyx/telnyx-7b8d117e2646843c69453ee88c0f30b7384c3764fbbc72c69f10a2b362bc0b44.yml
openapi_spec_hash: c1cb5e3e98c7a71c43fa94dc87635d25
config_hash: 5ce01cd30f63029e0b785a241c80bae4
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 4.152.0 (2026-06-05)

Full Changelog: [v4.151.0...v4.152.0](https://github.com/team-telnyx/telnyx-python/compare/v4.151.0...v4.152.0)

### Features

* NUM-6470: Add branded-calling-v2 OpenAPI specs (external + internal) ([a2c999f](https://github.com/team-telnyx/telnyx-python/commit/a2c999f01668f86406e50c6a32fbefc099ae938b))

## 4.151.0 (2026-06-05)

Full Changelog: [v4.150.0...v4.151.0](https://github.com/team-telnyx/telnyx-python/compare/v4.150.0...v4.151.0)
Expand Down
229 changes: 186 additions & 43 deletions api.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "telnyx"
version = "4.151.0"
version = "4.152.0"
description = "The official Python library for the telnyx API"
dynamic = ["readme"]
license = "MIT"
Expand Down
186 changes: 180 additions & 6 deletions src/telnyx/_client.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/telnyx/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "telnyx"
__version__ = "4.151.0" # x-release-please-version
__version__ = "4.152.0" # x-release-please-version
42 changes: 42 additions & 0 deletions src/telnyx/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@
AIResourceWithStreamingResponse,
AsyncAIResourceWithStreamingResponse,
)
from .dir import (
DirResource,
AsyncDirResource,
DirResourceWithRawResponse,
AsyncDirResourceWithRawResponse,
DirResourceWithStreamingResponse,
AsyncDirResourceWithStreamingResponse,
)
from .ips import (
IPsResource,
AsyncIPsResource,
Expand Down Expand Up @@ -353,6 +361,14 @@
AuditEventsResourceWithStreamingResponse,
AsyncAuditEventsResourceWithStreamingResponse,
)
from .call_reasons import (
CallReasonsResource,
AsyncCallReasonsResource,
CallReasonsResourceWithRawResponse,
AsyncCallReasonsResourceWithRawResponse,
CallReasonsResourceWithStreamingResponse,
AsyncCallReasonsResourceWithStreamingResponse,
)
from .oauth_grants import (
OAuthGrantsResource,
AsyncOAuthGrantsResource,
Expand Down Expand Up @@ -833,6 +849,14 @@
GlobalIPProtocolsResourceWithStreamingResponse,
AsyncGlobalIPProtocolsResourceWithStreamingResponse,
)
from .infringement_claims import (
InfringementClaimsResource,
AsyncInfringementClaimsResource,
InfringementClaimsResourceWithRawResponse,
AsyncInfringementClaimsResourceWithRawResponse,
InfringementClaimsResourceWithStreamingResponse,
AsyncInfringementClaimsResourceWithStreamingResponse,
)
from .integration_secrets import (
IntegrationSecretsResource,
AsyncIntegrationSecretsResource,
Expand Down Expand Up @@ -2291,6 +2315,24 @@
"AsyncPronunciationDictsResourceWithRawResponse",
"PronunciationDictsResourceWithStreamingResponse",
"AsyncPronunciationDictsResourceWithStreamingResponse",
"CallReasonsResource",
"AsyncCallReasonsResource",
"CallReasonsResourceWithRawResponse",
"AsyncCallReasonsResourceWithRawResponse",
"CallReasonsResourceWithStreamingResponse",
"AsyncCallReasonsResourceWithStreamingResponse",
"DirResource",
"AsyncDirResource",
"DirResourceWithRawResponse",
"AsyncDirResourceWithRawResponse",
"DirResourceWithStreamingResponse",
"AsyncDirResourceWithStreamingResponse",
"InfringementClaimsResource",
"AsyncInfringementClaimsResource",
"InfringementClaimsResourceWithRawResponse",
"AsyncInfringementClaimsResourceWithRawResponse",
"InfringementClaimsResourceWithStreamingResponse",
"AsyncInfringementClaimsResourceWithStreamingResponse",
"UacConnectionsResource",
"AsyncUacConnectionsResource",
"UacConnectionsResourceWithRawResponse",
Expand Down
54 changes: 24 additions & 30 deletions src/telnyx/resources/ai/assistants/assistants.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,21 +80,15 @@
from ....types.ai.assistant_tool_param import AssistantToolParam
from ....types.ai.voice_settings_param import VoiceSettingsParam
from ....types.ai.widget_settings_param import WidgetSettingsParam
from ....types.ai.external_llm_req_param import ExternalLlmReqParam
from ....types.ai.insight_settings_param import InsightSettingsParam
from ....types.ai.privacy_settings_param import PrivacySettingsParam
from ....types.ai.assistant_chat_response import AssistantChatResponse
from ....types.ai.observability_req_param import ObservabilityReqParam
from ....types.ai.messaging_settings_param import MessagingSettingsParam
from ....types.ai.telephony_settings_param import TelephonySettingsParam
from ....types.ai.assistant_delete_response import AssistantDeleteResponse
from ....types.ai.fallback_config_req_param import FallbackConfigReqParam
from ....types.ai.assistant_mcp_server_param import AssistantMcpServerParam
from ....types.ai.assistant_integration_param import AssistantIntegrationParam
from ....types.ai.assistant_send_sms_response import AssistantSendSMSResponse
from ....types.ai.transcription_settings_param import TranscriptionSettingsParam
from ....types.ai.post_conversation_settings_req_param import PostConversationSettingsReqParam
from ....types.ai.inference_embedding_interruption_settings_param import InferenceEmbeddingInterruptionSettingsParam

__all__ = ["AssistantsResource", "AsyncAssistantsResource"]

Expand Down Expand Up @@ -162,18 +156,18 @@ def create(
dynamic_variables_webhook_timeout_ms: int | Omit = omit,
dynamic_variables_webhook_url: str | Omit = omit,
enabled_features: List[EnabledFeatures] | Omit = omit,
external_llm: ExternalLlmReqParam | Omit = omit,
fallback_config: FallbackConfigReqParam | Omit = omit,
external_llm: assistant_create_params.ExternalLlm | Omit = omit,
fallback_config: assistant_create_params.FallbackConfig | Omit = omit,
greeting: str | Omit = omit,
insight_settings: InsightSettingsParam | Omit = omit,
integrations: Iterable[AssistantIntegrationParam] | Omit = omit,
interruption_settings: InferenceEmbeddingInterruptionSettingsParam | Omit = omit,
integrations: Iterable[assistant_create_params.Integration] | Omit = omit,
interruption_settings: assistant_create_params.InterruptionSettings | Omit = omit,
llm_api_key_ref: str | Omit = omit,
mcp_servers: Iterable[AssistantMcpServerParam] | Omit = omit,
mcp_servers: Iterable[assistant_create_params.McpServer] | Omit = omit,
messaging_settings: MessagingSettingsParam | Omit = omit,
model: str | Omit = omit,
observability_settings: ObservabilityReqParam | Omit = omit,
post_conversation_settings: PostConversationSettingsReqParam | Omit = omit,
post_conversation_settings: assistant_create_params.PostConversationSettings | Omit = omit,
privacy_settings: PrivacySettingsParam | Omit = omit,
tags: SequenceNotStr[str] | Omit = omit,
telephony_settings: TelephonySettingsParam | Omit = omit,
Expand Down Expand Up @@ -380,20 +374,20 @@ def update(
dynamic_variables_webhook_timeout_ms: int | Omit = omit,
dynamic_variables_webhook_url: str | Omit = omit,
enabled_features: List[EnabledFeatures] | Omit = omit,
external_llm: ExternalLlmReqParam | Omit = omit,
fallback_config: FallbackConfigReqParam | Omit = omit,
external_llm: assistant_update_params.ExternalLlm | Omit = omit,
fallback_config: assistant_update_params.FallbackConfig | Omit = omit,
greeting: str | Omit = omit,
insight_settings: InsightSettingsParam | Omit = omit,
instructions: str | Omit = omit,
integrations: Iterable[AssistantIntegrationParam] | Omit = omit,
interruption_settings: InferenceEmbeddingInterruptionSettingsParam | Omit = omit,
integrations: Iterable[assistant_update_params.Integration] | Omit = omit,
interruption_settings: assistant_update_params.InterruptionSettings | Omit = omit,
llm_api_key_ref: str | Omit = omit,
mcp_servers: Iterable[AssistantMcpServerParam] | Omit = omit,
mcp_servers: Iterable[assistant_update_params.McpServer] | Omit = omit,
messaging_settings: MessagingSettingsParam | Omit = omit,
model: str | Omit = omit,
name: str | Omit = omit,
observability_settings: ObservabilityReqParam | Omit = omit,
post_conversation_settings: PostConversationSettingsReqParam | Omit = omit,
post_conversation_settings: assistant_update_params.PostConversationSettings | Omit = omit,
privacy_settings: PrivacySettingsParam | Omit = omit,
promote_to_main: bool | Omit = omit,
tags: SequenceNotStr[str] | Omit = omit,
Expand Down Expand Up @@ -903,18 +897,18 @@ async def create(
dynamic_variables_webhook_timeout_ms: int | Omit = omit,
dynamic_variables_webhook_url: str | Omit = omit,
enabled_features: List[EnabledFeatures] | Omit = omit,
external_llm: ExternalLlmReqParam | Omit = omit,
fallback_config: FallbackConfigReqParam | Omit = omit,
external_llm: assistant_create_params.ExternalLlm | Omit = omit,
fallback_config: assistant_create_params.FallbackConfig | Omit = omit,
greeting: str | Omit = omit,
insight_settings: InsightSettingsParam | Omit = omit,
integrations: Iterable[AssistantIntegrationParam] | Omit = omit,
interruption_settings: InferenceEmbeddingInterruptionSettingsParam | Omit = omit,
integrations: Iterable[assistant_create_params.Integration] | Omit = omit,
interruption_settings: assistant_create_params.InterruptionSettings | Omit = omit,
llm_api_key_ref: str | Omit = omit,
mcp_servers: Iterable[AssistantMcpServerParam] | Omit = omit,
mcp_servers: Iterable[assistant_create_params.McpServer] | Omit = omit,
messaging_settings: MessagingSettingsParam | Omit = omit,
model: str | Omit = omit,
observability_settings: ObservabilityReqParam | Omit = omit,
post_conversation_settings: PostConversationSettingsReqParam | Omit = omit,
post_conversation_settings: assistant_create_params.PostConversationSettings | Omit = omit,
privacy_settings: PrivacySettingsParam | Omit = omit,
tags: SequenceNotStr[str] | Omit = omit,
telephony_settings: TelephonySettingsParam | Omit = omit,
Expand Down Expand Up @@ -1121,20 +1115,20 @@ async def update(
dynamic_variables_webhook_timeout_ms: int | Omit = omit,
dynamic_variables_webhook_url: str | Omit = omit,
enabled_features: List[EnabledFeatures] | Omit = omit,
external_llm: ExternalLlmReqParam | Omit = omit,
fallback_config: FallbackConfigReqParam | Omit = omit,
external_llm: assistant_update_params.ExternalLlm | Omit = omit,
fallback_config: assistant_update_params.FallbackConfig | Omit = omit,
greeting: str | Omit = omit,
insight_settings: InsightSettingsParam | Omit = omit,
instructions: str | Omit = omit,
integrations: Iterable[AssistantIntegrationParam] | Omit = omit,
interruption_settings: InferenceEmbeddingInterruptionSettingsParam | Omit = omit,
integrations: Iterable[assistant_update_params.Integration] | Omit = omit,
interruption_settings: assistant_update_params.InterruptionSettings | Omit = omit,
llm_api_key_ref: str | Omit = omit,
mcp_servers: Iterable[AssistantMcpServerParam] | Omit = omit,
mcp_servers: Iterable[assistant_update_params.McpServer] | Omit = omit,
messaging_settings: MessagingSettingsParam | Omit = omit,
model: str | Omit = omit,
name: str | Omit = omit,
observability_settings: ObservabilityReqParam | Omit = omit,
post_conversation_settings: PostConversationSettingsReqParam | Omit = omit,
post_conversation_settings: assistant_update_params.PostConversationSettings | Omit = omit,
privacy_settings: PrivacySettingsParam | Omit = omit,
promote_to_main: bool | Omit = omit,
tags: SequenceNotStr[str] | Omit = omit,
Expand Down
9 changes: 4 additions & 5 deletions src/telnyx/resources/ai/assistants/canary_deploys.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
)
from ...._base_client import make_request_options
from ....types.ai.assistants import canary_deploy_create_params, canary_deploy_update_params
from ....types.ai.assistants.rule_input_param import RuleInputParam
from ....types.ai.assistants.canary_deploy_response import CanaryDeployResponse

__all__ = ["CanaryDeploysResource", "AsyncCanaryDeploysResource"]
Expand Down Expand Up @@ -50,7 +49,7 @@ def create(
self,
assistant_id: str,
*,
rules: Iterable[RuleInputParam] | Omit = omit,
rules: Iterable[canary_deploy_create_params.Rule] | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -124,7 +123,7 @@ def update(
self,
assistant_id: str,
*,
rules: Iterable[RuleInputParam] | Omit = omit,
rules: Iterable[canary_deploy_update_params.Rule] | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -222,7 +221,7 @@ async def create(
self,
assistant_id: str,
*,
rules: Iterable[RuleInputParam] | Omit = omit,
rules: Iterable[canary_deploy_create_params.Rule] | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand Down Expand Up @@ -296,7 +295,7 @@ async def update(
self,
assistant_id: str,
*,
rules: Iterable[RuleInputParam] | Omit = omit,
rules: Iterable[canary_deploy_update_params.Rule] | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand Down
30 changes: 12 additions & 18 deletions src/telnyx/resources/ai/assistants/versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,12 @@
from ....types.ai.assistant_tool_param import AssistantToolParam
from ....types.ai.voice_settings_param import VoiceSettingsParam
from ....types.ai.widget_settings_param import WidgetSettingsParam
from ....types.ai.external_llm_req_param import ExternalLlmReqParam
from ....types.ai.insight_settings_param import InsightSettingsParam
from ....types.ai.privacy_settings_param import PrivacySettingsParam
from ....types.ai.observability_req_param import ObservabilityReqParam
from ....types.ai.messaging_settings_param import MessagingSettingsParam
from ....types.ai.telephony_settings_param import TelephonySettingsParam
from ....types.ai.fallback_config_req_param import FallbackConfigReqParam
from ....types.ai.assistant_mcp_server_param import AssistantMcpServerParam
from ....types.ai.assistant_integration_param import AssistantIntegrationParam
from ....types.ai.transcription_settings_param import TranscriptionSettingsParam
from ....types.ai.post_conversation_settings_req_param import PostConversationSettingsReqParam
from ....types.ai.inference_embedding_interruption_settings_param import InferenceEmbeddingInterruptionSettingsParam

__all__ = ["VersionsResource", "AsyncVersionsResource"]

Expand Down Expand Up @@ -118,20 +112,20 @@ def update(
dynamic_variables_webhook_timeout_ms: int | Omit = omit,
dynamic_variables_webhook_url: str | Omit = omit,
enabled_features: List[EnabledFeatures] | Omit = omit,
external_llm: ExternalLlmReqParam | Omit = omit,
fallback_config: FallbackConfigReqParam | Omit = omit,
external_llm: version_update_params.ExternalLlm | Omit = omit,
fallback_config: version_update_params.FallbackConfig | Omit = omit,
greeting: str | Omit = omit,
insight_settings: InsightSettingsParam | Omit = omit,
instructions: str | Omit = omit,
integrations: Iterable[AssistantIntegrationParam] | Omit = omit,
interruption_settings: InferenceEmbeddingInterruptionSettingsParam | Omit = omit,
integrations: Iterable[version_update_params.Integration] | Omit = omit,
interruption_settings: version_update_params.InterruptionSettings | Omit = omit,
llm_api_key_ref: str | Omit = omit,
mcp_servers: Iterable[AssistantMcpServerParam] | Omit = omit,
mcp_servers: Iterable[version_update_params.McpServer] | Omit = omit,
messaging_settings: MessagingSettingsParam | Omit = omit,
model: str | Omit = omit,
name: str | Omit = omit,
observability_settings: ObservabilityReqParam | Omit = omit,
post_conversation_settings: PostConversationSettingsReqParam | Omit = omit,
post_conversation_settings: version_update_params.PostConversationSettings | Omit = omit,
privacy_settings: PrivacySettingsParam | Omit = omit,
tags: SequenceNotStr[str] | Omit = omit,
telephony_settings: TelephonySettingsParam | Omit = omit,
Expand Down Expand Up @@ -487,20 +481,20 @@ async def update(
dynamic_variables_webhook_timeout_ms: int | Omit = omit,
dynamic_variables_webhook_url: str | Omit = omit,
enabled_features: List[EnabledFeatures] | Omit = omit,
external_llm: ExternalLlmReqParam | Omit = omit,
fallback_config: FallbackConfigReqParam | Omit = omit,
external_llm: version_update_params.ExternalLlm | Omit = omit,
fallback_config: version_update_params.FallbackConfig | Omit = omit,
greeting: str | Omit = omit,
insight_settings: InsightSettingsParam | Omit = omit,
instructions: str | Omit = omit,
integrations: Iterable[AssistantIntegrationParam] | Omit = omit,
interruption_settings: InferenceEmbeddingInterruptionSettingsParam | Omit = omit,
integrations: Iterable[version_update_params.Integration] | Omit = omit,
interruption_settings: version_update_params.InterruptionSettings | Omit = omit,
llm_api_key_ref: str | Omit = omit,
mcp_servers: Iterable[AssistantMcpServerParam] | Omit = omit,
mcp_servers: Iterable[version_update_params.McpServer] | Omit = omit,
messaging_settings: MessagingSettingsParam | Omit = omit,
model: str | Omit = omit,
name: str | Omit = omit,
observability_settings: ObservabilityReqParam | Omit = omit,
post_conversation_settings: PostConversationSettingsReqParam | Omit = omit,
post_conversation_settings: version_update_params.PostConversationSettings | Omit = omit,
privacy_settings: PrivacySettingsParam | Omit = omit,
tags: SequenceNotStr[str] | Omit = omit,
telephony_settings: TelephonySettingsParam | Omit = omit,
Expand Down
Loading
Loading