Skip to content

Commit 2c9c089

Browse files
feat(api): manual updates
1 parent ad7c257 commit 2c9c089

23 files changed

Lines changed: 275 additions & 613 deletions

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1046
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/telnyx/telnyx-10509291e5b844e8a5d45f998d80acb44dae15de16d1718c3262bca691142141.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/telnyx/telnyx-d6cfa06b5dd23c8a0013c6517344bb13f9c5b8ef6fc5da477b04342982eb1aea.yml
33
openapi_spec_hash: 91111be0696f82a3d576ef9a13d7cdc2
4-
config_hash: 813ec9673b0c5b5a0035cb63dbd80b06
4+
config_hash: 7401b11c9df62b8c898e74259459ac63

api.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ from telnyx.types import (
2020
Feature,
2121
HostedNumber,
2222
InboundMessagePayload,
23+
InworldVoiceSettings,
2324
MessagingFeatureSet,
2425
MessagingHostedNumberOrder,
2526
MessagingPaginationMeta,
@@ -1414,6 +1415,8 @@ Types:
14141415
```python
14151416
from telnyx.types import (
14161417
CallAssistantRequest,
1418+
ConversationRelayInterruptionSettings,
1419+
ConversationRelayLanguage,
14171420
CustomSipHeader,
14181421
DialogflowConfig,
14191422
SipHeader,
@@ -5466,7 +5469,7 @@ Methods:
54665469
Types:
54675470

54685471
```python
5469-
from telnyx.types.whatsapp import UserDataRetrieveResponse, UserDataUpdateResponse
5472+
from telnyx.types.whatsapp import WhatsappUserData, UserDataRetrieveResponse, UserDataUpdateResponse
54705473
```
54715474

54725475
Methods:
@@ -5738,7 +5741,11 @@ Methods:
57385741
Types:
57395742

57405743
```python
5741-
from telnyx.types import VoiceSDKCallReportRetrieveResponse, VoiceSDKCallReportListResponse
5744+
from telnyx.types import (
5745+
VoiceSDKCallReportLogEntry,
5746+
VoiceSDKCallReportRetrieveResponse,
5747+
VoiceSDKCallReportListResponse,
5748+
)
57425749
```
57435750

57445751
Methods:

src/telnyx/resources/calls/actions.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@
9494
from ...types.calls.action_stop_gather_response import ActionStopGatherResponse
9595
from ...types.calls.action_stop_siprec_response import ActionStopSiprecResponse
9696
from ...types.calls.interruption_settings_param import InterruptionSettingsParam
97+
from ...types.conversation_relay_language_param import ConversationRelayLanguageParam
9798
from ...types.calls.action_start_siprec_response import ActionStartSiprecResponse
9899
from ...types.calls.action_stop_forking_response import ActionStopForkingResponse
99100
from ...types.stream_bidirectional_sampling_rate import StreamBidirectionalSamplingRate
@@ -123,6 +124,7 @@
123124
from ...types.calls.action_start_noise_suppression_response import ActionStartNoiseSuppressionResponse
124125
from ...types.calls.action_stop_conversation_relay_response import ActionStopConversationRelayResponse
125126
from ...types.calls.action_start_conversation_relay_response import ActionStartConversationRelayResponse
127+
from ...types.conversation_relay_interruption_settings_param import ConversationRelayInterruptionSettingsParam
126128
from ...types.calls.action_add_ai_assistant_messages_response import ActionAddAIAssistantMessagesResponse
127129

128130
__all__ = ["ActionsResource", "AsyncActionsResource"]
@@ -2087,9 +2089,9 @@ def start_conversation_relay(
20872089
greeting: str | Omit = omit,
20882090
interruptible: Literal["none", "any", "speech", "dtmf"] | Omit = omit,
20892091
interruptible_greeting: Literal["none", "any", "speech", "dtmf"] | Omit = omit,
2090-
interruption_settings: action_start_conversation_relay_params.InterruptionSettings | Omit = omit,
2092+
interruption_settings: ConversationRelayInterruptionSettingsParam | Omit = omit,
20912093
language: str | Omit = omit,
2092-
languages: Iterable[action_start_conversation_relay_params.Language] | Omit = omit,
2094+
languages: Iterable[ConversationRelayLanguageParam] | Omit = omit,
20932095
provider: str | Omit = omit,
20942096
structured_provider: Dict[str, object] | Omit = omit,
20952097
transcription: Dict[str, object] | Omit = omit,
@@ -5996,9 +5998,9 @@ async def start_conversation_relay(
59965998
greeting: str | Omit = omit,
59975999
interruptible: Literal["none", "any", "speech", "dtmf"] | Omit = omit,
59986000
interruptible_greeting: Literal["none", "any", "speech", "dtmf"] | Omit = omit,
5999-
interruption_settings: action_start_conversation_relay_params.InterruptionSettings | Omit = omit,
6001+
interruption_settings: ConversationRelayInterruptionSettingsParam | Omit = omit,
60006002
language: str | Omit = omit,
6001-
languages: Iterable[action_start_conversation_relay_params.Language] | Omit = omit,
6003+
languages: Iterable[ConversationRelayLanguageParam] | Omit = omit,
60026004
provider: str | Omit = omit,
60036005
structured_provider: Dict[str, object] | Omit = omit,
60046006
transcription: Dict[str, object] | Omit = omit,

src/telnyx/types/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
MessagingFeatureSet as MessagingFeatureSet,
3535
NumberHealthMetrics as NumberHealthMetrics,
3636
CallControlBucketIDs as CallControlBucketIDs,
37+
InworldVoiceSettings as InworldVoiceSettings,
3738
MinimaxVoiceSettings as MinimaxVoiceSettings,
3839
WhatsappTemplateData as WhatsappTemplateData,
3940
CheckAvailabilityTool as CheckAvailabilityTool,
@@ -675,6 +676,7 @@
675676
from .usage_report_get_options_params import UsageReportGetOptionsParams as UsageReportGetOptionsParams
676677
from .verification_trigger_sms_params import VerificationTriggerSMSParams as VerificationTriggerSMSParams
677678
from .verified_number_create_response import VerifiedNumberCreateResponse as VerifiedNumberCreateResponse
679+
from .voice_sdk_call_report_log_entry import VoiceSDKCallReportLogEntry as VoiceSDKCallReportLogEntry
678680
from .wireguard_interface_list_params import WireguardInterfaceListParams as WireguardInterfaceListParams
679681
from .advanced_order_retrieve_response import AdvancedOrderRetrieveResponse as AdvancedOrderRetrieveResponse
680682
from .bulk_sim_card_action_list_params import BulkSimCardActionListParams as BulkSimCardActionListParams
@@ -727,6 +729,7 @@
727729
from .call_siprec_stopped_webhook_event import CallSiprecStoppedWebhookEvent as CallSiprecStoppedWebhookEvent
728730
from .charges_breakdown_retrieve_params import ChargesBreakdownRetrieveParams as ChargesBreakdownRetrieveParams
729731
from .charges_summary_retrieve_response import ChargesSummaryRetrieveResponse as ChargesSummaryRetrieveResponse
732+
from .conversation_relay_language_param import ConversationRelayLanguageParam as ConversationRelayLanguageParam
730733
from .credential_connection_list_params import CredentialConnectionListParams as CredentialConnectionListParams
731734
from .external_connection_create_params import ExternalConnectionCreateParams as ExternalConnectionCreateParams
732735
from .external_connection_update_params import ExternalConnectionUpdateParams as ExternalConnectionUpdateParams
@@ -1422,6 +1425,9 @@
14221425
from .advanced_order_update_requirement_group_params import (
14231426
AdvancedOrderUpdateRequirementGroupParams as AdvancedOrderUpdateRequirementGroupParams,
14241427
)
1428+
from .conversation_relay_interruption_settings_param import (
1429+
ConversationRelayInterruptionSettingsParam as ConversationRelayInterruptionSettingsParam,
1430+
)
14251431
from .message_send_with_alphanumeric_sender_response import (
14261432
MessageSendWithAlphanumericSenderResponse as MessageSendWithAlphanumericSenderResponse,
14271433
)

src/telnyx/types/call_dial_params.py

Lines changed: 6 additions & 114 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,23 @@
1919
from .shared_params.xai_voice_settings import XaiVoiceSettings
2020
from .stream_bidirectional_target_legs import StreamBidirectionalTargetLegs
2121
from .calls.telnyx_voice_settings_param import TelnyxVoiceSettingsParam
22+
from .conversation_relay_language_param import ConversationRelayLanguageParam
2223
from .shared_params.rime_voice_settings import RimeVoiceSettings
2324
from .shared_params.azure_voice_settings import AzureVoiceSettings
2425
from .stream_bidirectional_sampling_rate import StreamBidirectionalSamplingRate
26+
from .shared_params.inworld_voice_settings import InworldVoiceSettings
2527
from .shared_params.minimax_voice_settings import MinimaxVoiceSettings
2628
from .shared_params.resemble_voice_settings import ResembleVoiceSettings
2729
from .calls.eleven_labs_voice_settings_param import ElevenLabsVoiceSettingsParam
2830
from .calls.transcription_start_request_param import TranscriptionStartRequestParam
31+
from .conversation_relay_interruption_settings_param import ConversationRelayInterruptionSettingsParam
2932

3033
__all__ = [
3134
"CallDialParams",
3235
"AnsweringMachineDetectionConfig",
3336
"ConferenceConfig",
3437
"ConversationRelayConfig",
35-
"ConversationRelayConfigInterruptionSettings",
36-
"ConversationRelayConfigLanguage",
37-
"ConversationRelayConfigLanguageVoiceSettings",
38-
"ConversationRelayConfigLanguageVoiceSettingsInworldVoiceSettings",
3938
"ConversationRelayConfigVoiceSettings",
40-
"ConversationRelayConfigVoiceSettingsInworldVoiceSettings",
4139
"DeepfakeDetection",
4240
"WebhookRetriesPolicies",
4341
]
@@ -567,112 +565,6 @@ class ConferenceConfig(TypedDict, total=False):
567565
"""
568566

569567

570-
class ConversationRelayConfigInterruptionSettings(TypedDict, total=False):
571-
"""Settings for handling caller interruptions during Conversation Relay speech."""
572-
573-
enable: bool
574-
"""Legacy boolean form.
575-
576-
`true` is equivalent to `interruptible=any`; `false` is equivalent to
577-
`interruptible=none`.
578-
"""
579-
580-
interruptible: Literal["none", "any", "speech", "dtmf"]
581-
"""Controls when caller input can interrupt assistant speech.
582-
583-
`any` allows speech or DTMF interruptions; `none` disables interruptions;
584-
`speech` allows speech only; `dtmf` allows DTMF only.
585-
"""
586-
587-
interruptible_greeting: Literal["none", "any", "speech", "dtmf"]
588-
"""Controls when caller input can interrupt assistant speech.
589-
590-
`any` allows speech or DTMF interruptions; `none` disables interruptions;
591-
`speech` allows speech only; `dtmf` allows DTMF only.
592-
"""
593-
594-
welcome_greeting_interruptible: Literal["none", "any", "speech", "dtmf"]
595-
"""Controls when caller input can interrupt assistant speech.
596-
597-
`any` allows speech or DTMF interruptions; `none` disables interruptions;
598-
`speech` allows speech only; `dtmf` allows DTMF only.
599-
"""
600-
601-
602-
class ConversationRelayConfigLanguageVoiceSettingsInworldVoiceSettings(TypedDict, total=False):
603-
type: Required[Literal["inworld"]]
604-
"""Voice settings provider type"""
605-
606-
607-
ConversationRelayConfigLanguageVoiceSettings: TypeAlias = Union[
608-
ElevenLabsVoiceSettingsParam,
609-
TelnyxVoiceSettingsParam,
610-
AwsVoiceSettingsParam,
611-
MinimaxVoiceSettings,
612-
AzureVoiceSettings,
613-
RimeVoiceSettings,
614-
ResembleVoiceSettings,
615-
ConversationRelayConfigLanguageVoiceSettingsInworldVoiceSettings,
616-
XaiVoiceSettings,
617-
]
618-
619-
620-
class ConversationRelayConfigLanguage(TypedDict, total=False):
621-
"""Language-specific TTS and transcription settings for Conversation Relay."""
622-
623-
language: Required[str]
624-
"""BCP 47 language tag for this language configuration."""
625-
626-
speech_model: str
627-
"""Conversation Relay speech model.
628-
629-
Prefer `transcription_engine_config.transcription_model` when configuring
630-
speech-to-text.
631-
"""
632-
633-
transcription_engine: Literal[
634-
"Google", "Telnyx", "Deepgram", "Azure", "xAI", "AssemblyAI", "Speechmatics", "Soniox", "A", "B"
635-
]
636-
"""Engine to use for speech recognition.
637-
638-
Legacy values `A` - `Google`, `B` - `Telnyx` are supported for backward
639-
compatibility. When provided in a Conversation Relay language entry, Telnyx
640-
derives `transcription_provider` and `speech_model` for that language.
641-
"""
642-
643-
transcription_engine_config: Dict[str, object]
644-
"""Engine-specific transcription settings for Conversation Relay.
645-
646-
This accepts the same provider-specific options used by the Call Transcription
647-
Start command, such as `transcription_model`, without requiring the engine
648-
discriminator to be repeated inside this object.
649-
"""
650-
651-
transcription_provider: str
652-
"""Conversation Relay transcription provider name.
653-
654-
Prefer `transcription_engine` when configuring speech-to-text.
655-
"""
656-
657-
tts_provider: str
658-
"""Text-to-speech provider for this language.
659-
660-
If omitted and `voice` is provided, Telnyx derives the provider from the voice
661-
identifier.
662-
"""
663-
664-
voice: str
665-
"""Voice identifier for this language."""
666-
667-
voice_settings: ConversationRelayConfigLanguageVoiceSettings
668-
"""The settings associated with the voice selected"""
669-
670-
671-
class ConversationRelayConfigVoiceSettingsInworldVoiceSettings(TypedDict, total=False):
672-
type: Required[Literal["inworld"]]
673-
"""Voice settings provider type"""
674-
675-
676568
ConversationRelayConfigVoiceSettings: TypeAlias = Union[
677569
ElevenLabsVoiceSettingsParam,
678570
TelnyxVoiceSettingsParam,
@@ -681,7 +573,7 @@ class ConversationRelayConfigVoiceSettingsInworldVoiceSettings(TypedDict, total=
681573
AzureVoiceSettings,
682574
RimeVoiceSettings,
683575
ResembleVoiceSettings,
684-
ConversationRelayConfigVoiceSettingsInworldVoiceSettings,
576+
InworldVoiceSettings,
685577
XaiVoiceSettings,
686578
]
687579

@@ -723,13 +615,13 @@ class ConversationRelayConfig(TypedDict, total=False):
723615
`speech` allows speech only; `dtmf` allows DTMF only.
724616
"""
725617

726-
interruption_settings: ConversationRelayConfigInterruptionSettings
618+
interruption_settings: ConversationRelayInterruptionSettingsParam
727619
"""Settings for handling caller interruptions during Conversation Relay speech."""
728620

729621
language: str
730622
"""Default language for both text-to-speech and speech recognition."""
731623

732-
languages: Iterable[ConversationRelayConfigLanguage]
624+
languages: Iterable[ConversationRelayLanguageParam]
733625
"""Per-language TTS and transcription settings."""
734626

735627
provider: str

0 commit comments

Comments
 (0)