telnyx 5.111.0 → 5.112.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/telnyx/models/ai/assistant_create_params.rb +178 -9
- data/lib/telnyx/models/ai/assistant_tool.rb +14 -14
- data/lib/telnyx/models/ai/assistant_update_params.rb +178 -9
- data/lib/telnyx/models/ai/assistants/canary_deploy.rb +123 -3
- data/lib/telnyx/models/ai/assistants/canary_deploy_response.rb +125 -3
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +179 -9
- data/lib/telnyx/models/ai/inference_embedding.rb +177 -9
- data/lib/telnyx/models/ai/openai_list_models_response.rb +210 -3
- data/lib/telnyx/models/ai/transfer_tool.rb +9 -7
- data/lib/telnyx/models/ai_retrieve_models_response.rb +210 -3
- data/lib/telnyx/models/calls/action_gather_using_ai_params.rb +23 -4
- data/lib/telnyx/models/calls/action_gather_using_speak_params.rb +23 -4
- data/lib/telnyx/models/calls/action_speak_params.rb +23 -4
- data/lib/telnyx/models/calls/action_start_ai_assistant_params.rb +23 -4
- data/lib/telnyx/models/calls/action_start_conversation_relay_params.rb +491 -0
- data/lib/telnyx/models/calls/action_start_conversation_relay_response.rb +37 -0
- data/lib/telnyx/models/calls/action_stop_conversation_relay_params.rb +44 -0
- data/lib/telnyx/models/calls/action_stop_conversation_relay_response.rb +18 -0
- data/lib/telnyx/models/calls/transcription_start_request.rb +167 -5
- data/lib/telnyx/models/conferences/action_speak_params.rb +23 -4
- data/lib/telnyx/models/network_list_interfaces_response.rb +2 -112
- data/lib/telnyx/models/public_internet_gateway_create_response.rb +8 -3
- data/lib/telnyx/models/public_internet_gateway_delete_response.rb +8 -3
- data/lib/telnyx/models/public_internet_gateway_list_response.rb +10 -0
- data/lib/telnyx/models/public_internet_gateway_retrieve_response.rb +8 -3
- data/lib/telnyx/models/text_to_speech_generate_params.rb +6 -6
- data/lib/telnyx/models/uac_connection_create_params.rb +255 -9
- data/lib/telnyx/models/uac_connection_create_response.rb +878 -3
- data/lib/telnyx/models/uac_connection_delete_response.rb +878 -3
- data/lib/telnyx/models/uac_connection_list_response.rb +876 -0
- data/lib/telnyx/models/uac_connection_retrieve_response.rb +879 -3
- data/lib/telnyx/models/uac_connection_update_params.rb +255 -9
- data/lib/telnyx/models/uac_connection_update_response.rb +878 -3
- data/lib/telnyx/models/virtual_cross_connect_create_response.rb +8 -3
- data/lib/telnyx/models/virtual_cross_connect_delete_response.rb +8 -3
- data/lib/telnyx/models/virtual_cross_connect_list_response.rb +10 -0
- data/lib/telnyx/models/virtual_cross_connect_retrieve_response.rb +8 -3
- data/lib/telnyx/models/virtual_cross_connect_update_response.rb +8 -3
- data/lib/telnyx/models/wireguard_interface_create_response.rb +8 -3
- data/lib/telnyx/models/wireguard_interface_delete_response.rb +8 -3
- data/lib/telnyx/models/wireguard_interface_list_response.rb +10 -0
- data/lib/telnyx/models/wireguard_interface_retrieve_response.rb +8 -3
- data/lib/telnyx/models.rb +0 -20
- data/lib/telnyx/resources/ai/assistants/canary_deploys.rb +2 -2
- data/lib/telnyx/resources/ai/assistants/versions.rb +3 -3
- data/lib/telnyx/resources/ai/assistants.rb +6 -6
- data/lib/telnyx/resources/calls/actions.rb +101 -5
- data/lib/telnyx/resources/conferences/actions.rb +1 -1
- data/lib/telnyx/resources/public_internet_gateways.rb +2 -2
- data/lib/telnyx/resources/uac_connections.rb +8 -8
- data/lib/telnyx/resources/virtual_cross_connects.rb +2 -2
- data/lib/telnyx/resources/wireguard_interfaces.rb +2 -2
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +8 -22
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +352 -12
- data/rbi/telnyx/models/ai/assistant_tool.rbi +10 -10
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +352 -12
- data/rbi/telnyx/models/ai/assistants/canary_deploy.rbi +290 -4
- data/rbi/telnyx/models/ai/assistants/canary_deploy_response.rbi +301 -3
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +366 -12
- data/rbi/telnyx/models/ai/inference_embedding.rbi +351 -12
- data/rbi/telnyx/models/ai/openai_list_models_response.rbi +315 -3
- data/rbi/telnyx/models/ai/transfer_tool.rbi +5 -5
- data/rbi/telnyx/models/ai_retrieve_models_response.rbi +310 -3
- data/rbi/telnyx/models/calls/action_gather_using_ai_params.rbi +41 -5
- data/rbi/telnyx/models/calls/action_gather_using_speak_params.rbi +41 -5
- data/rbi/telnyx/models/calls/action_speak_params.rbi +41 -5
- data/rbi/telnyx/models/calls/action_start_ai_assistant_params.rbi +41 -5
- data/rbi/telnyx/models/calls/action_start_conversation_relay_params.rbi +1075 -0
- data/rbi/telnyx/models/calls/action_start_conversation_relay_response.rbi +95 -0
- data/rbi/telnyx/models/calls/action_stop_conversation_relay_params.rbi +72 -0
- data/rbi/telnyx/models/calls/action_stop_conversation_relay_response.rbi +39 -0
- data/rbi/telnyx/models/calls/transcription_start_request.rbi +480 -10
- data/rbi/telnyx/models/conferences/action_speak_params.rbi +41 -5
- data/rbi/telnyx/models/network_list_interfaces_response.rbi +4 -181
- data/rbi/telnyx/models/public_internet_gateway_create_response.rbi +38 -6
- data/rbi/telnyx/models/public_internet_gateway_delete_response.rbi +38 -6
- data/rbi/telnyx/models/public_internet_gateway_list_response.rbi +23 -0
- data/rbi/telnyx/models/public_internet_gateway_retrieve_response.rbi +38 -6
- data/rbi/telnyx/models/text_to_speech_generate_params.rbi +6 -6
- data/rbi/telnyx/models/uac_connection_create_params.rbi +516 -12
- data/rbi/telnyx/models/uac_connection_create_response.rbi +1756 -4
- data/rbi/telnyx/models/uac_connection_delete_response.rbi +1756 -4
- data/rbi/telnyx/models/uac_connection_list_response.rbi +1727 -0
- data/rbi/telnyx/models/uac_connection_retrieve_response.rbi +1756 -4
- data/rbi/telnyx/models/uac_connection_update_params.rbi +516 -12
- data/rbi/telnyx/models/uac_connection_update_response.rbi +1756 -4
- data/rbi/telnyx/models/virtual_cross_connect_create_response.rbi +36 -6
- data/rbi/telnyx/models/virtual_cross_connect_delete_response.rbi +36 -6
- data/rbi/telnyx/models/virtual_cross_connect_list_response.rbi +23 -0
- data/rbi/telnyx/models/virtual_cross_connect_retrieve_response.rbi +38 -6
- data/rbi/telnyx/models/virtual_cross_connect_update_response.rbi +36 -6
- data/rbi/telnyx/models/wireguard_interface_create_response.rbi +36 -6
- data/rbi/telnyx/models/wireguard_interface_delete_response.rbi +36 -6
- data/rbi/telnyx/models/wireguard_interface_list_response.rbi +23 -0
- data/rbi/telnyx/models/wireguard_interface_retrieve_response.rbi +36 -6
- data/rbi/telnyx/models.rbi +0 -20
- data/rbi/telnyx/resources/ai/assistants/canary_deploys.rbi +4 -2
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +9 -3
- data/rbi/telnyx/resources/ai/assistants.rbi +10 -6
- data/rbi/telnyx/resources/calls/actions.rbi +152 -6
- data/rbi/telnyx/resources/conferences/actions.rbi +1 -1
- data/rbi/telnyx/resources/public_internet_gateways.rbi +1 -1
- data/rbi/telnyx/resources/uac_connections.rbi +13 -7
- data/rbi/telnyx/resources/virtual_cross_connects.rbi +1 -1
- data/rbi/telnyx/resources/wireguard_interfaces.rbi +1 -1
- data/sig/telnyx/models/ai/assistant_create_params.rbs +149 -18
- data/sig/telnyx/models/ai/assistant_tool.rbs +8 -8
- data/sig/telnyx/models/ai/assistant_update_params.rbs +149 -18
- data/sig/telnyx/models/ai/assistants/canary_deploy.rbs +113 -6
- data/sig/telnyx/models/ai/assistants/canary_deploy_response.rbs +109 -4
- data/sig/telnyx/models/ai/assistants/update_assistant.rbs +152 -18
- data/sig/telnyx/models/ai/inference_embedding.rbs +149 -18
- data/sig/telnyx/models/ai/openai_list_models_response.rbs +149 -4
- data/sig/telnyx/models/ai/transfer_tool.rbs +4 -4
- data/sig/telnyx/models/ai_retrieve_models_response.rbs +149 -4
- data/sig/telnyx/models/calls/action_gather_using_ai_params.rbs +15 -1
- data/sig/telnyx/models/calls/action_gather_using_speak_params.rbs +15 -1
- data/sig/telnyx/models/calls/action_speak_params.rbs +15 -1
- data/sig/telnyx/models/calls/action_start_ai_assistant_params.rbs +15 -1
- data/sig/telnyx/models/calls/action_start_conversation_relay_params.rbs +416 -0
- data/sig/telnyx/models/calls/action_start_conversation_relay_response.rbs +45 -0
- data/sig/telnyx/models/calls/action_stop_conversation_relay_params.rbs +38 -0
- data/sig/telnyx/models/calls/action_stop_conversation_relay_response.rbs +20 -0
- data/sig/telnyx/models/calls/transcription_start_request.rbs +184 -2
- data/sig/telnyx/models/conferences/action_speak_params.rbs +15 -1
- data/sig/telnyx/models/network_list_interfaces_response.rbs +4 -106
- data/sig/telnyx/models/public_internet_gateway_create_response.rbs +18 -6
- data/sig/telnyx/models/public_internet_gateway_delete_response.rbs +18 -6
- data/sig/telnyx/models/public_internet_gateway_list_response.rbs +11 -0
- data/sig/telnyx/models/public_internet_gateway_retrieve_response.rbs +18 -6
- data/sig/telnyx/models/text_to_speech_generate_params.rbs +6 -6
- data/sig/telnyx/models/uac_connection_create_params.rbs +211 -17
- data/sig/telnyx/models/uac_connection_create_response.rbs +731 -5
- data/sig/telnyx/models/uac_connection_delete_response.rbs +731 -5
- data/sig/telnyx/models/uac_connection_list_response.rbs +722 -0
- data/sig/telnyx/models/uac_connection_retrieve_response.rbs +731 -5
- data/sig/telnyx/models/uac_connection_update_params.rbs +211 -17
- data/sig/telnyx/models/uac_connection_update_response.rbs +731 -5
- data/sig/telnyx/models/virtual_cross_connect_create_response.rbs +18 -6
- data/sig/telnyx/models/virtual_cross_connect_delete_response.rbs +18 -6
- data/sig/telnyx/models/virtual_cross_connect_list_response.rbs +11 -0
- data/sig/telnyx/models/virtual_cross_connect_retrieve_response.rbs +18 -6
- data/sig/telnyx/models/virtual_cross_connect_update_response.rbs +18 -6
- data/sig/telnyx/models/wireguard_interface_create_response.rbs +18 -6
- data/sig/telnyx/models/wireguard_interface_delete_response.rbs +18 -6
- data/sig/telnyx/models/wireguard_interface_list_response.rbs +11 -0
- data/sig/telnyx/models/wireguard_interface_retrieve_response.rbs +18 -6
- data/sig/telnyx/models.rbs +0 -20
- data/sig/telnyx/resources/ai/assistants/canary_deploys.rbs +2 -2
- data/sig/telnyx/resources/ai/assistants/versions.rbs +3 -3
- data/sig/telnyx/resources/ai/assistants.rbs +6 -6
- data/sig/telnyx/resources/calls/actions.rbs +29 -0
- data/sig/telnyx/resources/public_internet_gateways.rbs +1 -1
- data/sig/telnyx/resources/uac_connections.rbs +7 -7
- data/sig/telnyx/resources/virtual_cross_connects.rbs +1 -1
- data/sig/telnyx/resources/wireguard_interfaces.rbs +1 -1
- metadata +26 -68
- data/lib/telnyx/models/ai/assistant_integration.rb +0 -38
- data/lib/telnyx/models/ai/assistant_mcp_server.rb +0 -35
- data/lib/telnyx/models/ai/assistants/clause.rb +0 -54
- data/lib/telnyx/models/ai/assistants/rollout_slot.rb +0 -27
- data/lib/telnyx/models/ai/assistants/rule_input.rb +0 -40
- data/lib/telnyx/models/ai/assistants/rule_output.rb +0 -40
- data/lib/telnyx/models/ai/assistants/serve.rb +0 -33
- data/lib/telnyx/models/ai/inference_embedding_interruption_settings.rb +0 -47
- data/lib/telnyx/models/ai/start_speaking_plan.rb +0 -37
- data/lib/telnyx/models/ai/transcription_endpointing_plan.rb +0 -39
- data/lib/telnyx/models/calls/transcription_engine_assemblyai_config.rb +0 -64
- data/lib/telnyx/models/calls/transcription_engine_xai_config.rb +0 -108
- data/lib/telnyx/models/model_metadata.rb +0 -212
- data/lib/telnyx/models/public_internet_gateway_read.rb +0 -83
- data/lib/telnyx/models/uac_connection.rb +0 -412
- data/lib/telnyx/models/uac_external_settings.rb +0 -101
- data/lib/telnyx/models/uac_inbound.rb +0 -210
- data/lib/telnyx/models/uac_internal_settings.rb +0 -25
- data/lib/telnyx/models/uac_outbound.rb +0 -131
- data/lib/telnyx/models/virtual_cross_connect_combined.rb +0 -212
- data/lib/telnyx/models/wireguard_interface_read.rb +0 -136
- data/lib/telnyx/models/xai_voice_settings.rb +0 -36
- data/rbi/telnyx/models/ai/assistant_integration.rbi +0 -60
- data/rbi/telnyx/models/ai/assistant_mcp_server.rbi +0 -51
- data/rbi/telnyx/models/ai/assistants/clause.rbi +0 -91
- data/rbi/telnyx/models/ai/assistants/rollout_slot.rbi +0 -36
- data/rbi/telnyx/models/ai/assistants/rule_input.rbi +0 -73
- data/rbi/telnyx/models/ai/assistants/rule_output.rbi +0 -73
- data/rbi/telnyx/models/ai/assistants/serve.rbi +0 -61
- data/rbi/telnyx/models/ai/inference_embedding_interruption_settings.rbi +0 -83
- data/rbi/telnyx/models/ai/start_speaking_plan.rbi +0 -70
- data/rbi/telnyx/models/ai/transcription_endpointing_plan.rbi +0 -71
- data/rbi/telnyx/models/calls/transcription_engine_assemblyai_config.rbi +0 -155
- data/rbi/telnyx/models/calls/transcription_engine_xai_config.rbi +0 -329
- data/rbi/telnyx/models/model_metadata.rbi +0 -272
- data/rbi/telnyx/models/public_internet_gateway_read.rbi +0 -128
- data/rbi/telnyx/models/uac_connection.rbi +0 -684
- data/rbi/telnyx/models/uac_external_settings.rbi +0 -146
- data/rbi/telnyx/models/uac_inbound.rbi +0 -410
- data/rbi/telnyx/models/uac_internal_settings.rbi +0 -39
- data/rbi/telnyx/models/uac_outbound.rbi +0 -224
- data/rbi/telnyx/models/virtual_cross_connect_combined.rbi +0 -345
- data/rbi/telnyx/models/wireguard_interface_read.rbi +0 -213
- data/rbi/telnyx/models/xai_voice_settings.rbi +0 -64
- data/sig/telnyx/models/ai/assistant_integration.rbs +0 -26
- data/sig/telnyx/models/ai/assistant_mcp_server.rbs +0 -19
- data/sig/telnyx/models/ai/assistants/clause.rbs +0 -46
- data/sig/telnyx/models/ai/assistants/rollout_slot.rbs +0 -19
- data/sig/telnyx/models/ai/assistants/rule_input.rbs +0 -33
- data/sig/telnyx/models/ai/assistants/rule_output.rbs +0 -33
- data/sig/telnyx/models/ai/assistants/serve.rbs +0 -35
- data/sig/telnyx/models/ai/inference_embedding_interruption_settings.rbs +0 -40
- data/sig/telnyx/models/ai/start_speaking_plan.rbs +0 -33
- data/sig/telnyx/models/ai/transcription_endpointing_plan.rbs +0 -38
- data/sig/telnyx/models/calls/transcription_engine_assemblyai_config.rbs +0 -62
- data/sig/telnyx/models/calls/transcription_engine_xai_config.rbs +0 -130
- data/sig/telnyx/models/model_metadata.rbs +0 -142
- data/sig/telnyx/models/public_internet_gateway_read.rbs +0 -80
- data/sig/telnyx/models/uac_connection.rbs +0 -338
- data/sig/telnyx/models/uac_external_settings.rbs +0 -73
- data/sig/telnyx/models/uac_inbound.rbs +0 -190
- data/sig/telnyx/models/uac_internal_settings.rbs +0 -15
- data/sig/telnyx/models/uac_outbound.rbs +0 -113
- data/sig/telnyx/models/virtual_cross_connect_combined.rbs +0 -190
- data/sig/telnyx/models/wireguard_interface_read.rbs +0 -127
- data/sig/telnyx/models/xai_voice_settings.rbs +0 -34
|
@@ -54,8 +54,8 @@ module Telnyx
|
|
|
54
54
|
Telnyx::Calls::TranscriptionEngineGoogleConfig,
|
|
55
55
|
Telnyx::Calls::TranscriptionEngineTelnyxConfig,
|
|
56
56
|
Telnyx::Calls::TranscriptionEngineAzureConfig,
|
|
57
|
-
Telnyx::Calls::
|
|
58
|
-
Telnyx::Calls::
|
|
57
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI,
|
|
58
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI,
|
|
59
59
|
Telnyx::Calls::TranscriptionEngineAConfig,
|
|
60
60
|
Telnyx::Calls::TranscriptionEngineBConfig,
|
|
61
61
|
Telnyx::Calls::DeepgramNova2Config,
|
|
@@ -73,8 +73,8 @@ module Telnyx
|
|
|
73
73
|
Telnyx::Calls::TranscriptionEngineGoogleConfig::OrHash,
|
|
74
74
|
Telnyx::Calls::TranscriptionEngineTelnyxConfig::OrHash,
|
|
75
75
|
Telnyx::Calls::TranscriptionEngineAzureConfig::OrHash,
|
|
76
|
-
Telnyx::Calls::
|
|
77
|
-
Telnyx::Calls::
|
|
76
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::OrHash,
|
|
77
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::OrHash,
|
|
78
78
|
Telnyx::Calls::TranscriptionEngineAConfig::OrHash,
|
|
79
79
|
Telnyx::Calls::TranscriptionEngineBConfig::OrHash,
|
|
80
80
|
Telnyx::Calls::DeepgramNova2Config::OrHash,
|
|
@@ -104,8 +104,8 @@ module Telnyx
|
|
|
104
104
|
Telnyx::Calls::TranscriptionEngineGoogleConfig::OrHash,
|
|
105
105
|
Telnyx::Calls::TranscriptionEngineTelnyxConfig::OrHash,
|
|
106
106
|
Telnyx::Calls::TranscriptionEngineAzureConfig::OrHash,
|
|
107
|
-
Telnyx::Calls::
|
|
108
|
-
Telnyx::Calls::
|
|
107
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::OrHash,
|
|
108
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::OrHash,
|
|
109
109
|
Telnyx::Calls::TranscriptionEngineAConfig::OrHash,
|
|
110
110
|
Telnyx::Calls::TranscriptionEngineBConfig::OrHash,
|
|
111
111
|
Telnyx::Calls::DeepgramNova2Config::OrHash,
|
|
@@ -144,8 +144,8 @@ module Telnyx
|
|
|
144
144
|
Telnyx::Calls::TranscriptionEngineGoogleConfig,
|
|
145
145
|
Telnyx::Calls::TranscriptionEngineTelnyxConfig,
|
|
146
146
|
Telnyx::Calls::TranscriptionEngineAzureConfig,
|
|
147
|
-
Telnyx::Calls::
|
|
148
|
-
Telnyx::Calls::
|
|
147
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI,
|
|
148
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI,
|
|
149
149
|
Telnyx::Calls::TranscriptionEngineAConfig,
|
|
150
150
|
Telnyx::Calls::TranscriptionEngineBConfig,
|
|
151
151
|
Telnyx::Calls::DeepgramNova2Config,
|
|
@@ -233,8 +233,8 @@ module Telnyx
|
|
|
233
233
|
Telnyx::Calls::TranscriptionEngineGoogleConfig,
|
|
234
234
|
Telnyx::Calls::TranscriptionEngineTelnyxConfig,
|
|
235
235
|
Telnyx::Calls::TranscriptionEngineAzureConfig,
|
|
236
|
-
Telnyx::Calls::
|
|
237
|
-
Telnyx::Calls::
|
|
236
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI,
|
|
237
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI,
|
|
238
238
|
Telnyx::Calls::TranscriptionEngineAConfig,
|
|
239
239
|
Telnyx::Calls::TranscriptionEngineBConfig,
|
|
240
240
|
Telnyx::Calls::DeepgramNova2Config,
|
|
@@ -242,6 +242,476 @@ module Telnyx
|
|
|
242
242
|
)
|
|
243
243
|
end
|
|
244
244
|
|
|
245
|
+
class XAI < Telnyx::Internal::Type::BaseModel
|
|
246
|
+
OrHash =
|
|
247
|
+
T.type_alias do
|
|
248
|
+
T.any(
|
|
249
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI,
|
|
250
|
+
Telnyx::Internal::AnyHash
|
|
251
|
+
)
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
# Whether to send also interim results. If set to false, only final results will
|
|
255
|
+
# be sent.
|
|
256
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
257
|
+
attr_reader :interim_results
|
|
258
|
+
|
|
259
|
+
sig { params(interim_results: T::Boolean).void }
|
|
260
|
+
attr_writer :interim_results
|
|
261
|
+
|
|
262
|
+
# Language to use for speech recognition
|
|
263
|
+
sig do
|
|
264
|
+
returns(
|
|
265
|
+
T.nilable(
|
|
266
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::OrSymbol
|
|
267
|
+
)
|
|
268
|
+
)
|
|
269
|
+
end
|
|
270
|
+
attr_reader :language
|
|
271
|
+
|
|
272
|
+
sig do
|
|
273
|
+
params(
|
|
274
|
+
language:
|
|
275
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::OrSymbol
|
|
276
|
+
).void
|
|
277
|
+
end
|
|
278
|
+
attr_writer :language
|
|
279
|
+
|
|
280
|
+
# Engine identifier for xAI transcription service
|
|
281
|
+
sig do
|
|
282
|
+
returns(
|
|
283
|
+
T.nilable(
|
|
284
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::TranscriptionEngine::OrSymbol
|
|
285
|
+
)
|
|
286
|
+
)
|
|
287
|
+
end
|
|
288
|
+
attr_reader :transcription_engine
|
|
289
|
+
|
|
290
|
+
sig do
|
|
291
|
+
params(
|
|
292
|
+
transcription_engine:
|
|
293
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::TranscriptionEngine::OrSymbol
|
|
294
|
+
).void
|
|
295
|
+
end
|
|
296
|
+
attr_writer :transcription_engine
|
|
297
|
+
|
|
298
|
+
# The model to use for transcription.
|
|
299
|
+
sig do
|
|
300
|
+
returns(
|
|
301
|
+
T.nilable(
|
|
302
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::TranscriptionModel::OrSymbol
|
|
303
|
+
)
|
|
304
|
+
)
|
|
305
|
+
end
|
|
306
|
+
attr_reader :transcription_model
|
|
307
|
+
|
|
308
|
+
sig do
|
|
309
|
+
params(
|
|
310
|
+
transcription_model:
|
|
311
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::TranscriptionModel::OrSymbol
|
|
312
|
+
).void
|
|
313
|
+
end
|
|
314
|
+
attr_writer :transcription_model
|
|
315
|
+
|
|
316
|
+
sig do
|
|
317
|
+
params(
|
|
318
|
+
interim_results: T::Boolean,
|
|
319
|
+
language:
|
|
320
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::OrSymbol,
|
|
321
|
+
transcription_engine:
|
|
322
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::TranscriptionEngine::OrSymbol,
|
|
323
|
+
transcription_model:
|
|
324
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::TranscriptionModel::OrSymbol
|
|
325
|
+
).returns(T.attached_class)
|
|
326
|
+
end
|
|
327
|
+
def self.new(
|
|
328
|
+
# Whether to send also interim results. If set to false, only final results will
|
|
329
|
+
# be sent.
|
|
330
|
+
interim_results: nil,
|
|
331
|
+
# Language to use for speech recognition
|
|
332
|
+
language: nil,
|
|
333
|
+
# Engine identifier for xAI transcription service
|
|
334
|
+
transcription_engine: nil,
|
|
335
|
+
# The model to use for transcription.
|
|
336
|
+
transcription_model: nil
|
|
337
|
+
)
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
sig do
|
|
341
|
+
override.returns(
|
|
342
|
+
{
|
|
343
|
+
interim_results: T::Boolean,
|
|
344
|
+
language:
|
|
345
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::OrSymbol,
|
|
346
|
+
transcription_engine:
|
|
347
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::TranscriptionEngine::OrSymbol,
|
|
348
|
+
transcription_model:
|
|
349
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::TranscriptionModel::OrSymbol
|
|
350
|
+
}
|
|
351
|
+
)
|
|
352
|
+
end
|
|
353
|
+
def to_hash
|
|
354
|
+
end
|
|
355
|
+
|
|
356
|
+
# Language to use for speech recognition
|
|
357
|
+
module Language
|
|
358
|
+
extend Telnyx::Internal::Type::Enum
|
|
359
|
+
|
|
360
|
+
TaggedSymbol =
|
|
361
|
+
T.type_alias do
|
|
362
|
+
T.all(
|
|
363
|
+
Symbol,
|
|
364
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language
|
|
365
|
+
)
|
|
366
|
+
end
|
|
367
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
368
|
+
|
|
369
|
+
AR =
|
|
370
|
+
T.let(
|
|
371
|
+
:ar,
|
|
372
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
373
|
+
)
|
|
374
|
+
CS =
|
|
375
|
+
T.let(
|
|
376
|
+
:cs,
|
|
377
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
378
|
+
)
|
|
379
|
+
DA =
|
|
380
|
+
T.let(
|
|
381
|
+
:da,
|
|
382
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
383
|
+
)
|
|
384
|
+
DE =
|
|
385
|
+
T.let(
|
|
386
|
+
:de,
|
|
387
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
388
|
+
)
|
|
389
|
+
EN =
|
|
390
|
+
T.let(
|
|
391
|
+
:en,
|
|
392
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
393
|
+
)
|
|
394
|
+
ES =
|
|
395
|
+
T.let(
|
|
396
|
+
:es,
|
|
397
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
398
|
+
)
|
|
399
|
+
FA =
|
|
400
|
+
T.let(
|
|
401
|
+
:fa,
|
|
402
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
403
|
+
)
|
|
404
|
+
FIL =
|
|
405
|
+
T.let(
|
|
406
|
+
:fil,
|
|
407
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
408
|
+
)
|
|
409
|
+
FR =
|
|
410
|
+
T.let(
|
|
411
|
+
:fr,
|
|
412
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
413
|
+
)
|
|
414
|
+
HI =
|
|
415
|
+
T.let(
|
|
416
|
+
:hi,
|
|
417
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
418
|
+
)
|
|
419
|
+
ID =
|
|
420
|
+
T.let(
|
|
421
|
+
:id,
|
|
422
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
423
|
+
)
|
|
424
|
+
IT =
|
|
425
|
+
T.let(
|
|
426
|
+
:it,
|
|
427
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
428
|
+
)
|
|
429
|
+
JA =
|
|
430
|
+
T.let(
|
|
431
|
+
:ja,
|
|
432
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
433
|
+
)
|
|
434
|
+
KO =
|
|
435
|
+
T.let(
|
|
436
|
+
:ko,
|
|
437
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
438
|
+
)
|
|
439
|
+
MK =
|
|
440
|
+
T.let(
|
|
441
|
+
:mk,
|
|
442
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
443
|
+
)
|
|
444
|
+
MS =
|
|
445
|
+
T.let(
|
|
446
|
+
:ms,
|
|
447
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
448
|
+
)
|
|
449
|
+
NL =
|
|
450
|
+
T.let(
|
|
451
|
+
:nl,
|
|
452
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
453
|
+
)
|
|
454
|
+
PL =
|
|
455
|
+
T.let(
|
|
456
|
+
:pl,
|
|
457
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
458
|
+
)
|
|
459
|
+
PT =
|
|
460
|
+
T.let(
|
|
461
|
+
:pt,
|
|
462
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
463
|
+
)
|
|
464
|
+
RO =
|
|
465
|
+
T.let(
|
|
466
|
+
:ro,
|
|
467
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
468
|
+
)
|
|
469
|
+
RU =
|
|
470
|
+
T.let(
|
|
471
|
+
:ru,
|
|
472
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
473
|
+
)
|
|
474
|
+
SV =
|
|
475
|
+
T.let(
|
|
476
|
+
:sv,
|
|
477
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
478
|
+
)
|
|
479
|
+
TH =
|
|
480
|
+
T.let(
|
|
481
|
+
:th,
|
|
482
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
483
|
+
)
|
|
484
|
+
TR =
|
|
485
|
+
T.let(
|
|
486
|
+
:tr,
|
|
487
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
488
|
+
)
|
|
489
|
+
VI =
|
|
490
|
+
T.let(
|
|
491
|
+
:vi,
|
|
492
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
493
|
+
)
|
|
494
|
+
|
|
495
|
+
sig do
|
|
496
|
+
override.returns(
|
|
497
|
+
T::Array[
|
|
498
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language::TaggedSymbol
|
|
499
|
+
]
|
|
500
|
+
)
|
|
501
|
+
end
|
|
502
|
+
def self.values
|
|
503
|
+
end
|
|
504
|
+
end
|
|
505
|
+
|
|
506
|
+
# Engine identifier for xAI transcription service
|
|
507
|
+
module TranscriptionEngine
|
|
508
|
+
extend Telnyx::Internal::Type::Enum
|
|
509
|
+
|
|
510
|
+
TaggedSymbol =
|
|
511
|
+
T.type_alias do
|
|
512
|
+
T.all(
|
|
513
|
+
Symbol,
|
|
514
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::TranscriptionEngine
|
|
515
|
+
)
|
|
516
|
+
end
|
|
517
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
518
|
+
|
|
519
|
+
X_AI =
|
|
520
|
+
T.let(
|
|
521
|
+
:xAI,
|
|
522
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::TranscriptionEngine::TaggedSymbol
|
|
523
|
+
)
|
|
524
|
+
|
|
525
|
+
sig do
|
|
526
|
+
override.returns(
|
|
527
|
+
T::Array[
|
|
528
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::TranscriptionEngine::TaggedSymbol
|
|
529
|
+
]
|
|
530
|
+
)
|
|
531
|
+
end
|
|
532
|
+
def self.values
|
|
533
|
+
end
|
|
534
|
+
end
|
|
535
|
+
|
|
536
|
+
# The model to use for transcription.
|
|
537
|
+
module TranscriptionModel
|
|
538
|
+
extend Telnyx::Internal::Type::Enum
|
|
539
|
+
|
|
540
|
+
TaggedSymbol =
|
|
541
|
+
T.type_alias do
|
|
542
|
+
T.all(
|
|
543
|
+
Symbol,
|
|
544
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::TranscriptionModel
|
|
545
|
+
)
|
|
546
|
+
end
|
|
547
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
548
|
+
|
|
549
|
+
XAI_GROK_STT =
|
|
550
|
+
T.let(
|
|
551
|
+
:"xai/grok-stt",
|
|
552
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::TranscriptionModel::TaggedSymbol
|
|
553
|
+
)
|
|
554
|
+
|
|
555
|
+
sig do
|
|
556
|
+
override.returns(
|
|
557
|
+
T::Array[
|
|
558
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::TranscriptionModel::TaggedSymbol
|
|
559
|
+
]
|
|
560
|
+
)
|
|
561
|
+
end
|
|
562
|
+
def self.values
|
|
563
|
+
end
|
|
564
|
+
end
|
|
565
|
+
end
|
|
566
|
+
|
|
567
|
+
class AssemblyAI < Telnyx::Internal::Type::BaseModel
|
|
568
|
+
OrHash =
|
|
569
|
+
T.type_alias do
|
|
570
|
+
T.any(
|
|
571
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI,
|
|
572
|
+
Telnyx::Internal::AnyHash
|
|
573
|
+
)
|
|
574
|
+
end
|
|
575
|
+
|
|
576
|
+
# Whether to send also interim results. If set to false, only final results will
|
|
577
|
+
# be sent.
|
|
578
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
579
|
+
attr_reader :interim_results
|
|
580
|
+
|
|
581
|
+
sig { params(interim_results: T::Boolean).void }
|
|
582
|
+
attr_writer :interim_results
|
|
583
|
+
|
|
584
|
+
# Engine identifier for AssemblyAI transcription service
|
|
585
|
+
sig do
|
|
586
|
+
returns(
|
|
587
|
+
T.nilable(
|
|
588
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::TranscriptionEngine::OrSymbol
|
|
589
|
+
)
|
|
590
|
+
)
|
|
591
|
+
end
|
|
592
|
+
attr_reader :transcription_engine
|
|
593
|
+
|
|
594
|
+
sig do
|
|
595
|
+
params(
|
|
596
|
+
transcription_engine:
|
|
597
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::TranscriptionEngine::OrSymbol
|
|
598
|
+
).void
|
|
599
|
+
end
|
|
600
|
+
attr_writer :transcription_engine
|
|
601
|
+
|
|
602
|
+
# The model to use for transcription.
|
|
603
|
+
sig do
|
|
604
|
+
returns(
|
|
605
|
+
T.nilable(
|
|
606
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::TranscriptionModel::OrSymbol
|
|
607
|
+
)
|
|
608
|
+
)
|
|
609
|
+
end
|
|
610
|
+
attr_reader :transcription_model
|
|
611
|
+
|
|
612
|
+
sig do
|
|
613
|
+
params(
|
|
614
|
+
transcription_model:
|
|
615
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::TranscriptionModel::OrSymbol
|
|
616
|
+
).void
|
|
617
|
+
end
|
|
618
|
+
attr_writer :transcription_model
|
|
619
|
+
|
|
620
|
+
sig do
|
|
621
|
+
params(
|
|
622
|
+
interim_results: T::Boolean,
|
|
623
|
+
transcription_engine:
|
|
624
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::TranscriptionEngine::OrSymbol,
|
|
625
|
+
transcription_model:
|
|
626
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::TranscriptionModel::OrSymbol
|
|
627
|
+
).returns(T.attached_class)
|
|
628
|
+
end
|
|
629
|
+
def self.new(
|
|
630
|
+
# Whether to send also interim results. If set to false, only final results will
|
|
631
|
+
# be sent.
|
|
632
|
+
interim_results: nil,
|
|
633
|
+
# Engine identifier for AssemblyAI transcription service
|
|
634
|
+
transcription_engine: nil,
|
|
635
|
+
# The model to use for transcription.
|
|
636
|
+
transcription_model: nil
|
|
637
|
+
)
|
|
638
|
+
end
|
|
639
|
+
|
|
640
|
+
sig do
|
|
641
|
+
override.returns(
|
|
642
|
+
{
|
|
643
|
+
interim_results: T::Boolean,
|
|
644
|
+
transcription_engine:
|
|
645
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::TranscriptionEngine::OrSymbol,
|
|
646
|
+
transcription_model:
|
|
647
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::TranscriptionModel::OrSymbol
|
|
648
|
+
}
|
|
649
|
+
)
|
|
650
|
+
end
|
|
651
|
+
def to_hash
|
|
652
|
+
end
|
|
653
|
+
|
|
654
|
+
# Engine identifier for AssemblyAI transcription service
|
|
655
|
+
module TranscriptionEngine
|
|
656
|
+
extend Telnyx::Internal::Type::Enum
|
|
657
|
+
|
|
658
|
+
TaggedSymbol =
|
|
659
|
+
T.type_alias do
|
|
660
|
+
T.all(
|
|
661
|
+
Symbol,
|
|
662
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::TranscriptionEngine
|
|
663
|
+
)
|
|
664
|
+
end
|
|
665
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
666
|
+
|
|
667
|
+
ASSEMBLY_AI =
|
|
668
|
+
T.let(
|
|
669
|
+
:AssemblyAI,
|
|
670
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::TranscriptionEngine::TaggedSymbol
|
|
671
|
+
)
|
|
672
|
+
|
|
673
|
+
sig do
|
|
674
|
+
override.returns(
|
|
675
|
+
T::Array[
|
|
676
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::TranscriptionEngine::TaggedSymbol
|
|
677
|
+
]
|
|
678
|
+
)
|
|
679
|
+
end
|
|
680
|
+
def self.values
|
|
681
|
+
end
|
|
682
|
+
end
|
|
683
|
+
|
|
684
|
+
# The model to use for transcription.
|
|
685
|
+
module TranscriptionModel
|
|
686
|
+
extend Telnyx::Internal::Type::Enum
|
|
687
|
+
|
|
688
|
+
TaggedSymbol =
|
|
689
|
+
T.type_alias do
|
|
690
|
+
T.all(
|
|
691
|
+
Symbol,
|
|
692
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::TranscriptionModel
|
|
693
|
+
)
|
|
694
|
+
end
|
|
695
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
696
|
+
|
|
697
|
+
ASSEMBLYAI_UNIVERSAL_STREAMING =
|
|
698
|
+
T.let(
|
|
699
|
+
:"assemblyai/universal-streaming",
|
|
700
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::TranscriptionModel::TaggedSymbol
|
|
701
|
+
)
|
|
702
|
+
|
|
703
|
+
sig do
|
|
704
|
+
override.returns(
|
|
705
|
+
T::Array[
|
|
706
|
+
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::TranscriptionModel::TaggedSymbol
|
|
707
|
+
]
|
|
708
|
+
)
|
|
709
|
+
end
|
|
710
|
+
def self.values
|
|
711
|
+
end
|
|
712
|
+
end
|
|
713
|
+
end
|
|
714
|
+
|
|
245
715
|
sig do
|
|
246
716
|
override.returns(
|
|
247
717
|
T::Array[
|
|
@@ -152,7 +152,7 @@ module Telnyx
|
|
|
152
152
|
Telnyx::RimeVoiceSettings,
|
|
153
153
|
Telnyx::ResembleVoiceSettings,
|
|
154
154
|
Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Inworld,
|
|
155
|
-
Telnyx::
|
|
155
|
+
Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Xai
|
|
156
156
|
)
|
|
157
157
|
)
|
|
158
158
|
)
|
|
@@ -171,7 +171,7 @@ module Telnyx
|
|
|
171
171
|
Telnyx::RimeVoiceSettings::OrHash,
|
|
172
172
|
Telnyx::ResembleVoiceSettings::OrHash,
|
|
173
173
|
Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Inworld::OrHash,
|
|
174
|
-
Telnyx::
|
|
174
|
+
Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Xai::OrHash
|
|
175
175
|
)
|
|
176
176
|
).void
|
|
177
177
|
end
|
|
@@ -199,7 +199,7 @@ module Telnyx
|
|
|
199
199
|
Telnyx::RimeVoiceSettings::OrHash,
|
|
200
200
|
Telnyx::ResembleVoiceSettings::OrHash,
|
|
201
201
|
Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Inworld::OrHash,
|
|
202
|
-
Telnyx::
|
|
202
|
+
Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Xai::OrHash
|
|
203
203
|
),
|
|
204
204
|
request_options: Telnyx::RequestOptions::OrHash
|
|
205
205
|
).returns(T.attached_class)
|
|
@@ -298,7 +298,7 @@ module Telnyx
|
|
|
298
298
|
Telnyx::RimeVoiceSettings,
|
|
299
299
|
Telnyx::ResembleVoiceSettings,
|
|
300
300
|
Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Inworld,
|
|
301
|
-
Telnyx::
|
|
301
|
+
Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Xai
|
|
302
302
|
),
|
|
303
303
|
request_options: Telnyx::RequestOptions
|
|
304
304
|
}
|
|
@@ -566,7 +566,7 @@ module Telnyx
|
|
|
566
566
|
Telnyx::RimeVoiceSettings,
|
|
567
567
|
Telnyx::ResembleVoiceSettings,
|
|
568
568
|
Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Inworld,
|
|
569
|
-
Telnyx::
|
|
569
|
+
Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Xai
|
|
570
570
|
)
|
|
571
571
|
end
|
|
572
572
|
|
|
@@ -595,6 +595,42 @@ module Telnyx
|
|
|
595
595
|
end
|
|
596
596
|
end
|
|
597
597
|
|
|
598
|
+
class Xai < Telnyx::Internal::Type::BaseModel
|
|
599
|
+
OrHash =
|
|
600
|
+
T.type_alias do
|
|
601
|
+
T.any(
|
|
602
|
+
Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Xai,
|
|
603
|
+
Telnyx::Internal::AnyHash
|
|
604
|
+
)
|
|
605
|
+
end
|
|
606
|
+
|
|
607
|
+
# Voice settings provider type
|
|
608
|
+
sig { returns(Symbol) }
|
|
609
|
+
attr_accessor :type
|
|
610
|
+
|
|
611
|
+
# Language code, or `auto` to detect automatically.
|
|
612
|
+
sig { returns(T.nilable(String)) }
|
|
613
|
+
attr_reader :language
|
|
614
|
+
|
|
615
|
+
sig { params(language: String).void }
|
|
616
|
+
attr_writer :language
|
|
617
|
+
|
|
618
|
+
sig do
|
|
619
|
+
params(language: String, type: Symbol).returns(T.attached_class)
|
|
620
|
+
end
|
|
621
|
+
def self.new(
|
|
622
|
+
# Language code, or `auto` to detect automatically.
|
|
623
|
+
language: nil,
|
|
624
|
+
# Voice settings provider type
|
|
625
|
+
type: :xai
|
|
626
|
+
)
|
|
627
|
+
end
|
|
628
|
+
|
|
629
|
+
sig { override.returns({ type: Symbol, language: String }) }
|
|
630
|
+
def to_hash
|
|
631
|
+
end
|
|
632
|
+
end
|
|
633
|
+
|
|
598
634
|
sig do
|
|
599
635
|
override.returns(
|
|
600
636
|
T::Array[
|