telnyx 5.103.0 → 5.104.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 +21 -0
- data/README.md +1 -1
- data/lib/telnyx/models/ai/assistant_create_params.rb +9 -170
- data/lib/telnyx/models/ai/assistant_integration.rb +38 -0
- data/lib/telnyx/models/ai/assistant_mcp_server.rb +35 -0
- data/lib/telnyx/models/ai/assistant_tool.rb +14 -14
- data/lib/telnyx/models/ai/assistant_update_params.rb +9 -170
- data/lib/telnyx/models/ai/assistants/canary_deploy.rb +3 -123
- data/lib/telnyx/models/ai/assistants/canary_deploy_response.rb +3 -125
- data/lib/telnyx/models/ai/assistants/clause.rb +54 -0
- data/lib/telnyx/models/ai/assistants/rollout_slot.rb +27 -0
- data/lib/telnyx/models/ai/assistants/rule_input.rb +40 -0
- data/lib/telnyx/models/ai/assistants/rule_output.rb +40 -0
- data/lib/telnyx/models/ai/assistants/serve.rb +33 -0
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +9 -171
- data/lib/telnyx/models/ai/inference_embedding.rb +9 -169
- data/lib/telnyx/models/ai/inference_embedding_interruption_settings.rb +47 -0
- data/lib/telnyx/models/ai/openai_list_models_response.rb +3 -31
- data/lib/telnyx/models/ai/start_speaking_plan.rb +37 -0
- data/lib/telnyx/models/ai/transcription_endpointing_plan.rb +39 -0
- data/lib/telnyx/models/ai/transfer_tool.rb +7 -9
- data/lib/telnyx/models/ai_retrieve_models_response.rb +3 -31
- data/lib/telnyx/models/calls/action_gather_using_ai_params.rb +4 -23
- data/lib/telnyx/models/calls/action_gather_using_speak_params.rb +4 -23
- data/lib/telnyx/models/calls/action_speak_params.rb +4 -23
- data/lib/telnyx/models/calls/action_start_ai_assistant_params.rb +4 -23
- data/lib/telnyx/models/calls/transcription_engine_assemblyai_config.rb +64 -0
- data/lib/telnyx/models/calls/transcription_engine_xai_config.rb +108 -0
- data/lib/telnyx/models/calls/transcription_start_request.rb +5 -167
- data/lib/telnyx/models/conferences/action_speak_params.rb +4 -23
- data/lib/telnyx/models/model_metadata.rb +33 -0
- data/lib/telnyx/models/network_list_interfaces_response.rb +112 -2
- data/lib/telnyx/models/public_internet_gateway_create_response.rb +3 -8
- data/lib/telnyx/models/public_internet_gateway_delete_response.rb +3 -8
- data/lib/telnyx/models/public_internet_gateway_read.rb +83 -0
- data/lib/telnyx/models/public_internet_gateway_retrieve_response.rb +3 -8
- data/lib/telnyx/models/text_to_speech_generate_params.rb +6 -6
- data/lib/telnyx/models/uac_connection.rb +412 -0
- data/lib/telnyx/models/uac_connection_create_params.rb +9 -255
- data/lib/telnyx/models/uac_connection_create_response.rb +3 -878
- data/lib/telnyx/models/uac_connection_delete_response.rb +3 -878
- data/lib/telnyx/models/uac_connection_retrieve_response.rb +3 -879
- data/lib/telnyx/models/uac_connection_update_params.rb +9 -255
- data/lib/telnyx/models/uac_connection_update_response.rb +3 -878
- data/lib/telnyx/models/uac_external_settings.rb +101 -0
- data/lib/telnyx/models/uac_inbound.rb +210 -0
- data/lib/telnyx/models/uac_internal_settings.rb +25 -0
- data/lib/telnyx/models/uac_outbound.rb +131 -0
- data/lib/telnyx/models/virtual_cross_connect_combined.rb +212 -0
- data/lib/telnyx/models/virtual_cross_connect_create_response.rb +3 -8
- data/lib/telnyx/models/virtual_cross_connect_delete_response.rb +3 -8
- data/lib/telnyx/models/virtual_cross_connect_retrieve_response.rb +3 -8
- data/lib/telnyx/models/virtual_cross_connect_update_response.rb +3 -8
- data/lib/telnyx/models/wireguard_interface_create_response.rb +3 -8
- data/lib/telnyx/models/wireguard_interface_delete_response.rb +3 -8
- data/lib/telnyx/models/wireguard_interface_read.rb +136 -0
- data/lib/telnyx/models/wireguard_interface_retrieve_response.rb +3 -8
- data/lib/telnyx/models/xai_voice_settings.rb +36 -0
- data/lib/telnyx/models.rb +20 -0
- 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 +5 -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 +22 -4
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +12 -341
- data/rbi/telnyx/models/ai/assistant_integration.rbi +60 -0
- data/rbi/telnyx/models/ai/assistant_mcp_server.rbi +51 -0
- data/rbi/telnyx/models/ai/assistant_tool.rbi +10 -10
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +12 -341
- data/rbi/telnyx/models/ai/assistants/canary_deploy.rbi +4 -290
- data/rbi/telnyx/models/ai/assistants/canary_deploy_response.rbi +3 -301
- data/rbi/telnyx/models/ai/assistants/clause.rbi +91 -0
- data/rbi/telnyx/models/ai/assistants/rollout_slot.rbi +36 -0
- data/rbi/telnyx/models/ai/assistants/rule_input.rbi +73 -0
- data/rbi/telnyx/models/ai/assistants/rule_output.rbi +73 -0
- data/rbi/telnyx/models/ai/assistants/serve.rbi +61 -0
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +12 -355
- data/rbi/telnyx/models/ai/inference_embedding.rbi +12 -340
- data/rbi/telnyx/models/ai/inference_embedding_interruption_settings.rbi +83 -0
- data/rbi/telnyx/models/ai/openai_list_models_response.rbi +3 -56
- data/rbi/telnyx/models/ai/start_speaking_plan.rbi +70 -0
- data/rbi/telnyx/models/ai/transcription_endpointing_plan.rbi +71 -0
- data/rbi/telnyx/models/ai/transfer_tool.rbi +5 -5
- data/rbi/telnyx/models/ai_retrieve_models_response.rbi +3 -51
- data/rbi/telnyx/models/calls/action_gather_using_ai_params.rbi +5 -41
- data/rbi/telnyx/models/calls/action_gather_using_speak_params.rbi +5 -41
- data/rbi/telnyx/models/calls/action_speak_params.rbi +5 -41
- data/rbi/telnyx/models/calls/action_start_ai_assistant_params.rbi +5 -41
- data/rbi/telnyx/models/calls/transcription_engine_assemblyai_config.rbi +155 -0
- data/rbi/telnyx/models/calls/transcription_engine_xai_config.rbi +329 -0
- data/rbi/telnyx/models/calls/transcription_start_request.rbi +10 -480
- data/rbi/telnyx/models/conferences/action_speak_params.rbi +5 -41
- data/rbi/telnyx/models/model_metadata.rbi +44 -0
- data/rbi/telnyx/models/network_list_interfaces_response.rbi +181 -4
- data/rbi/telnyx/models/public_internet_gateway_create_response.rbi +6 -38
- data/rbi/telnyx/models/public_internet_gateway_delete_response.rbi +6 -38
- data/rbi/telnyx/models/public_internet_gateway_read.rbi +128 -0
- data/rbi/telnyx/models/public_internet_gateway_retrieve_response.rbi +6 -38
- data/rbi/telnyx/models/text_to_speech_generate_params.rbi +6 -6
- data/rbi/telnyx/models/uac_connection.rbi +684 -0
- data/rbi/telnyx/models/uac_connection_create_params.rbi +12 -516
- data/rbi/telnyx/models/uac_connection_create_response.rbi +4 -1756
- data/rbi/telnyx/models/uac_connection_delete_response.rbi +4 -1756
- data/rbi/telnyx/models/uac_connection_retrieve_response.rbi +4 -1756
- data/rbi/telnyx/models/uac_connection_update_params.rbi +12 -516
- data/rbi/telnyx/models/uac_connection_update_response.rbi +4 -1756
- data/rbi/telnyx/models/uac_external_settings.rbi +146 -0
- data/rbi/telnyx/models/uac_inbound.rbi +410 -0
- data/rbi/telnyx/models/uac_internal_settings.rbi +39 -0
- data/rbi/telnyx/models/uac_outbound.rbi +224 -0
- data/rbi/telnyx/models/virtual_cross_connect_combined.rbi +345 -0
- data/rbi/telnyx/models/virtual_cross_connect_create_response.rbi +6 -36
- data/rbi/telnyx/models/virtual_cross_connect_delete_response.rbi +6 -36
- data/rbi/telnyx/models/virtual_cross_connect_retrieve_response.rbi +6 -38
- data/rbi/telnyx/models/virtual_cross_connect_update_response.rbi +6 -36
- data/rbi/telnyx/models/wireguard_interface_create_response.rbi +6 -36
- data/rbi/telnyx/models/wireguard_interface_delete_response.rbi +6 -36
- data/rbi/telnyx/models/wireguard_interface_read.rbi +213 -0
- data/rbi/telnyx/models/wireguard_interface_retrieve_response.rbi +6 -36
- data/rbi/telnyx/models/xai_voice_settings.rbi +64 -0
- data/rbi/telnyx/models.rbi +20 -0
- data/rbi/telnyx/resources/ai/assistants/canary_deploys.rbi +2 -4
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +3 -9
- data/rbi/telnyx/resources/ai/assistants.rbi +6 -10
- data/rbi/telnyx/resources/calls/actions.rbi +6 -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 +7 -13
- 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 +18 -142
- data/sig/telnyx/models/ai/assistant_integration.rbs +26 -0
- data/sig/telnyx/models/ai/assistant_mcp_server.rbs +19 -0
- data/sig/telnyx/models/ai/assistant_tool.rbs +8 -8
- data/sig/telnyx/models/ai/assistant_update_params.rbs +18 -142
- data/sig/telnyx/models/ai/assistants/canary_deploy.rbs +6 -113
- data/sig/telnyx/models/ai/assistants/canary_deploy_response.rbs +4 -109
- data/sig/telnyx/models/ai/assistants/clause.rbs +46 -0
- data/sig/telnyx/models/ai/assistants/rollout_slot.rbs +19 -0
- data/sig/telnyx/models/ai/assistants/rule_input.rbs +33 -0
- data/sig/telnyx/models/ai/assistants/rule_output.rbs +33 -0
- data/sig/telnyx/models/ai/assistants/serve.rbs +35 -0
- data/sig/telnyx/models/ai/assistants/update_assistant.rbs +18 -145
- data/sig/telnyx/models/ai/inference_embedding.rbs +18 -142
- data/sig/telnyx/models/ai/inference_embedding_interruption_settings.rbs +40 -0
- data/sig/telnyx/models/ai/openai_list_models_response.rbs +4 -39
- data/sig/telnyx/models/ai/start_speaking_plan.rbs +33 -0
- data/sig/telnyx/models/ai/transcription_endpointing_plan.rbs +38 -0
- data/sig/telnyx/models/ai/transfer_tool.rbs +4 -4
- data/sig/telnyx/models/ai_retrieve_models_response.rbs +4 -39
- data/sig/telnyx/models/calls/action_gather_using_ai_params.rbs +1 -15
- data/sig/telnyx/models/calls/action_gather_using_speak_params.rbs +1 -15
- data/sig/telnyx/models/calls/action_speak_params.rbs +1 -15
- data/sig/telnyx/models/calls/action_start_ai_assistant_params.rbs +1 -15
- data/sig/telnyx/models/calls/transcription_engine_assemblyai_config.rbs +62 -0
- data/sig/telnyx/models/calls/transcription_engine_xai_config.rbs +130 -0
- data/sig/telnyx/models/calls/transcription_start_request.rbs +2 -184
- data/sig/telnyx/models/conferences/action_speak_params.rbs +1 -15
- data/sig/telnyx/models/model_metadata.rbs +32 -0
- data/sig/telnyx/models/network_list_interfaces_response.rbs +106 -4
- data/sig/telnyx/models/public_internet_gateway_create_response.rbs +6 -18
- data/sig/telnyx/models/public_internet_gateway_delete_response.rbs +6 -18
- data/sig/telnyx/models/public_internet_gateway_read.rbs +80 -0
- data/sig/telnyx/models/public_internet_gateway_retrieve_response.rbs +6 -18
- data/sig/telnyx/models/text_to_speech_generate_params.rbs +6 -6
- data/sig/telnyx/models/uac_connection.rbs +338 -0
- data/sig/telnyx/models/uac_connection_create_params.rbs +17 -211
- data/sig/telnyx/models/uac_connection_create_response.rbs +5 -731
- data/sig/telnyx/models/uac_connection_delete_response.rbs +5 -731
- data/sig/telnyx/models/uac_connection_retrieve_response.rbs +5 -731
- data/sig/telnyx/models/uac_connection_update_params.rbs +17 -211
- data/sig/telnyx/models/uac_connection_update_response.rbs +5 -731
- data/sig/telnyx/models/uac_external_settings.rbs +73 -0
- data/sig/telnyx/models/uac_inbound.rbs +190 -0
- data/sig/telnyx/models/uac_internal_settings.rbs +15 -0
- data/sig/telnyx/models/uac_outbound.rbs +113 -0
- data/sig/telnyx/models/virtual_cross_connect_combined.rbs +190 -0
- data/sig/telnyx/models/virtual_cross_connect_create_response.rbs +6 -18
- data/sig/telnyx/models/virtual_cross_connect_delete_response.rbs +6 -18
- data/sig/telnyx/models/virtual_cross_connect_retrieve_response.rbs +6 -18
- data/sig/telnyx/models/virtual_cross_connect_update_response.rbs +6 -18
- data/sig/telnyx/models/wireguard_interface_create_response.rbs +6 -18
- data/sig/telnyx/models/wireguard_interface_delete_response.rbs +6 -18
- data/sig/telnyx/models/wireguard_interface_read.rbs +127 -0
- data/sig/telnyx/models/wireguard_interface_retrieve_response.rbs +6 -18
- data/sig/telnyx/models/xai_voice_settings.rbs +34 -0
- data/sig/telnyx/models.rbs +20 -0
- 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/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 +68 -14
- data/lib/telnyx/models/public_internet_gateway_list_response.rb +0 -10
- data/lib/telnyx/models/uac_connection_list_response.rb +0 -876
- data/lib/telnyx/models/virtual_cross_connect_list_response.rb +0 -10
- data/lib/telnyx/models/wireguard_interface_list_response.rb +0 -10
- data/rbi/telnyx/models/public_internet_gateway_list_response.rbi +0 -23
- data/rbi/telnyx/models/uac_connection_list_response.rbi +0 -1727
- data/rbi/telnyx/models/virtual_cross_connect_list_response.rbi +0 -23
- data/rbi/telnyx/models/wireguard_interface_list_response.rbi +0 -23
- data/sig/telnyx/models/public_internet_gateway_list_response.rbs +0 -11
- data/sig/telnyx/models/uac_connection_list_response.rbs +0 -722
- data/sig/telnyx/models/virtual_cross_connect_list_response.rbs +0 -11
- data/sig/telnyx/models/wireguard_interface_list_response.rbs +0 -11
|
@@ -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::TranscriptionEngineXaiConfig,
|
|
58
|
+
Telnyx::Calls::TranscriptionEngineAssemblyaiConfig,
|
|
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::TranscriptionEngineXaiConfig::OrHash,
|
|
77
|
+
Telnyx::Calls::TranscriptionEngineAssemblyaiConfig::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::TranscriptionEngineXaiConfig::OrHash,
|
|
108
|
+
Telnyx::Calls::TranscriptionEngineAssemblyaiConfig::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::TranscriptionEngineXaiConfig,
|
|
148
|
+
Telnyx::Calls::TranscriptionEngineAssemblyaiConfig,
|
|
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::TranscriptionEngineXaiConfig,
|
|
237
|
+
Telnyx::Calls::TranscriptionEngineAssemblyaiConfig,
|
|
238
238
|
Telnyx::Calls::TranscriptionEngineAConfig,
|
|
239
239
|
Telnyx::Calls::TranscriptionEngineBConfig,
|
|
240
240
|
Telnyx::Calls::DeepgramNova2Config,
|
|
@@ -242,476 +242,6 @@ 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
|
-
|
|
715
245
|
sig do
|
|
716
246
|
override.returns(
|
|
717
247
|
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::XaiVoiceSettings
|
|
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::XaiVoiceSettings::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::XaiVoiceSettings::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::XaiVoiceSettings
|
|
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::XaiVoiceSettings
|
|
570
570
|
)
|
|
571
571
|
end
|
|
572
572
|
|
|
@@ -595,42 +595,6 @@ 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
|
-
|
|
634
598
|
sig do
|
|
635
599
|
override.returns(
|
|
636
600
|
T::Array[
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
class ModelMetadata < Telnyx::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias { T.any(Telnyx::ModelMetadata, Telnyx::Internal::AnyHash) }
|
|
8
|
+
|
|
9
|
+
sig { returns(String) }
|
|
10
|
+
attr_accessor :id
|
|
11
|
+
|
|
12
|
+
sig { returns(Integer) }
|
|
13
|
+
attr_accessor :created
|
|
14
|
+
|
|
15
|
+
sig { returns(String) }
|
|
16
|
+
attr_accessor :owned_by
|
|
17
|
+
|
|
18
|
+
sig { returns(T.nilable(String)) }
|
|
19
|
+
attr_reader :object
|
|
20
|
+
|
|
21
|
+
sig { params(object: String).void }
|
|
22
|
+
attr_writer :object
|
|
23
|
+
|
|
24
|
+
sig do
|
|
25
|
+
params(
|
|
26
|
+
id: String,
|
|
27
|
+
created: Integer,
|
|
28
|
+
owned_by: String,
|
|
29
|
+
object: String
|
|
30
|
+
).returns(T.attached_class)
|
|
31
|
+
end
|
|
32
|
+
def self.new(id:, created:, owned_by:, object: nil)
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
sig do
|
|
36
|
+
override.returns(
|
|
37
|
+
{ id: String, created: Integer, owned_by: String, object: String }
|
|
38
|
+
)
|
|
39
|
+
end
|
|
40
|
+
def to_hash
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|