telnyx 5.110.1 → 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 +16 -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/texml_initiate_ai_call_params.rb +30 -19
- 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/texml.rb +18 -7
- 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/texml_initiate_ai_call_params.rbi +42 -22
- 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/texml.rbi +30 -10
- 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
|
@@ -27,7 +27,7 @@ module Telnyx
|
|
|
27
27
|
|
|
28
28
|
# @!attribute transcription_engine_config
|
|
29
29
|
#
|
|
30
|
-
# @return [Telnyx::Models::Calls::TranscriptionEngineGoogleConfig, Telnyx::Models::Calls::TranscriptionEngineTelnyxConfig, Telnyx::Models::Calls::TranscriptionEngineAzureConfig, Telnyx::Models::Calls::
|
|
30
|
+
# @return [Telnyx::Models::Calls::TranscriptionEngineGoogleConfig, Telnyx::Models::Calls::TranscriptionEngineTelnyxConfig, Telnyx::Models::Calls::TranscriptionEngineAzureConfig, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI, Telnyx::Models::Calls::TranscriptionEngineAConfig, Telnyx::Models::Calls::TranscriptionEngineBConfig, Telnyx::Models::Calls::DeepgramNova2Config, Telnyx::Models::Calls::DeepgramNova3Config, nil]
|
|
31
31
|
optional :transcription_engine_config,
|
|
32
32
|
union: -> { Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig }
|
|
33
33
|
|
|
@@ -49,7 +49,7 @@ module Telnyx
|
|
|
49
49
|
#
|
|
50
50
|
# @param transcription_engine [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngine] Engine to use for speech recognition. Legacy values `A` - `Google`, `B` - `Telny
|
|
51
51
|
#
|
|
52
|
-
# @param transcription_engine_config [Telnyx::Models::Calls::TranscriptionEngineGoogleConfig, Telnyx::Models::Calls::TranscriptionEngineTelnyxConfig, Telnyx::Models::Calls::TranscriptionEngineAzureConfig, Telnyx::Models::Calls::
|
|
52
|
+
# @param transcription_engine_config [Telnyx::Models::Calls::TranscriptionEngineGoogleConfig, Telnyx::Models::Calls::TranscriptionEngineTelnyxConfig, Telnyx::Models::Calls::TranscriptionEngineAzureConfig, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI, Telnyx::Models::Calls::TranscriptionEngineAConfig, Telnyx::Models::Calls::TranscriptionEngineBConfig, Telnyx::Models::Calls::DeepgramNova2Config, Telnyx::Models::Calls::DeepgramNova3Config]
|
|
53
53
|
#
|
|
54
54
|
# @param transcription_tracks [String] Indicates which leg of the call will be transcribed. Use `inbound` for the leg t
|
|
55
55
|
|
|
@@ -85,9 +85,10 @@ module Telnyx
|
|
|
85
85
|
|
|
86
86
|
variant :Azure, -> { Telnyx::Calls::TranscriptionEngineAzureConfig }
|
|
87
87
|
|
|
88
|
-
variant :xAI, -> { Telnyx::Calls::
|
|
88
|
+
variant :xAI, -> { Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI }
|
|
89
89
|
|
|
90
|
-
variant :AssemblyAI,
|
|
90
|
+
variant :AssemblyAI,
|
|
91
|
+
-> { Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI }
|
|
91
92
|
|
|
92
93
|
variant :A, -> { Telnyx::Calls::TranscriptionEngineAConfig }
|
|
93
94
|
|
|
@@ -97,8 +98,169 @@ module Telnyx
|
|
|
97
98
|
|
|
98
99
|
variant :"deepgram/nova-3", -> { Telnyx::Calls::DeepgramNova3Config }
|
|
99
100
|
|
|
101
|
+
class XAI < Telnyx::Internal::Type::BaseModel
|
|
102
|
+
# @!attribute interim_results
|
|
103
|
+
# Whether to send also interim results. If set to false, only final results will
|
|
104
|
+
# be sent.
|
|
105
|
+
#
|
|
106
|
+
# @return [Boolean, nil]
|
|
107
|
+
optional :interim_results, Telnyx::Internal::Type::Boolean
|
|
108
|
+
|
|
109
|
+
# @!attribute language
|
|
110
|
+
# Language to use for speech recognition
|
|
111
|
+
#
|
|
112
|
+
# @return [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language, nil]
|
|
113
|
+
optional :language,
|
|
114
|
+
enum: -> { Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language }
|
|
115
|
+
|
|
116
|
+
# @!attribute transcription_engine
|
|
117
|
+
# Engine identifier for xAI transcription service
|
|
118
|
+
#
|
|
119
|
+
# @return [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::TranscriptionEngine, nil]
|
|
120
|
+
optional :transcription_engine,
|
|
121
|
+
enum: -> { Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::TranscriptionEngine }
|
|
122
|
+
|
|
123
|
+
# @!attribute transcription_model
|
|
124
|
+
# The model to use for transcription.
|
|
125
|
+
#
|
|
126
|
+
# @return [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::TranscriptionModel, nil]
|
|
127
|
+
optional :transcription_model,
|
|
128
|
+
enum: -> { Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::TranscriptionModel }
|
|
129
|
+
|
|
130
|
+
# @!method initialize(interim_results: nil, language: nil, transcription_engine: nil, transcription_model: nil)
|
|
131
|
+
# Some parameter documentations has been truncated, see
|
|
132
|
+
# {Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI}
|
|
133
|
+
# for more details.
|
|
134
|
+
#
|
|
135
|
+
# @param interim_results [Boolean] Whether to send also interim results. If set to false, only final results will b
|
|
136
|
+
#
|
|
137
|
+
# @param language [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::Language] Language to use for speech recognition
|
|
138
|
+
#
|
|
139
|
+
# @param transcription_engine [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::TranscriptionEngine] Engine identifier for xAI transcription service
|
|
140
|
+
#
|
|
141
|
+
# @param transcription_model [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI::TranscriptionModel] The model to use for transcription.
|
|
142
|
+
|
|
143
|
+
# Language to use for speech recognition
|
|
144
|
+
#
|
|
145
|
+
# @see Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI#language
|
|
146
|
+
module Language
|
|
147
|
+
extend Telnyx::Internal::Type::Enum
|
|
148
|
+
|
|
149
|
+
AR = :ar
|
|
150
|
+
CS = :cs
|
|
151
|
+
DA = :da
|
|
152
|
+
DE = :de
|
|
153
|
+
EN = :en
|
|
154
|
+
ES = :es
|
|
155
|
+
FA = :fa
|
|
156
|
+
FIL = :fil
|
|
157
|
+
FR = :fr
|
|
158
|
+
HI = :hi
|
|
159
|
+
ID = :id
|
|
160
|
+
IT = :it
|
|
161
|
+
JA = :ja
|
|
162
|
+
KO = :ko
|
|
163
|
+
MK = :mk
|
|
164
|
+
MS = :ms
|
|
165
|
+
NL = :nl
|
|
166
|
+
PL = :pl
|
|
167
|
+
PT = :pt
|
|
168
|
+
RO = :ro
|
|
169
|
+
RU = :ru
|
|
170
|
+
SV = :sv
|
|
171
|
+
TH = :th
|
|
172
|
+
TR = :tr
|
|
173
|
+
VI = :vi
|
|
174
|
+
|
|
175
|
+
# @!method self.values
|
|
176
|
+
# @return [Array<Symbol>]
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
# Engine identifier for xAI transcription service
|
|
180
|
+
#
|
|
181
|
+
# @see Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI#transcription_engine
|
|
182
|
+
module TranscriptionEngine
|
|
183
|
+
extend Telnyx::Internal::Type::Enum
|
|
184
|
+
|
|
185
|
+
X_AI = :xAI
|
|
186
|
+
|
|
187
|
+
# @!method self.values
|
|
188
|
+
# @return [Array<Symbol>]
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
# The model to use for transcription.
|
|
192
|
+
#
|
|
193
|
+
# @see Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI#transcription_model
|
|
194
|
+
module TranscriptionModel
|
|
195
|
+
extend Telnyx::Internal::Type::Enum
|
|
196
|
+
|
|
197
|
+
XAI_GROK_STT = :"xai/grok-stt"
|
|
198
|
+
|
|
199
|
+
# @!method self.values
|
|
200
|
+
# @return [Array<Symbol>]
|
|
201
|
+
end
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
class AssemblyAI < Telnyx::Internal::Type::BaseModel
|
|
205
|
+
# @!attribute interim_results
|
|
206
|
+
# Whether to send also interim results. If set to false, only final results will
|
|
207
|
+
# be sent.
|
|
208
|
+
#
|
|
209
|
+
# @return [Boolean, nil]
|
|
210
|
+
optional :interim_results, Telnyx::Internal::Type::Boolean
|
|
211
|
+
|
|
212
|
+
# @!attribute transcription_engine
|
|
213
|
+
# Engine identifier for AssemblyAI transcription service
|
|
214
|
+
#
|
|
215
|
+
# @return [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::TranscriptionEngine, nil]
|
|
216
|
+
optional :transcription_engine,
|
|
217
|
+
enum: -> { Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::TranscriptionEngine }
|
|
218
|
+
|
|
219
|
+
# @!attribute transcription_model
|
|
220
|
+
# The model to use for transcription.
|
|
221
|
+
#
|
|
222
|
+
# @return [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::TranscriptionModel, nil]
|
|
223
|
+
optional :transcription_model,
|
|
224
|
+
enum: -> { Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::TranscriptionModel }
|
|
225
|
+
|
|
226
|
+
# @!method initialize(interim_results: nil, transcription_engine: nil, transcription_model: nil)
|
|
227
|
+
# Some parameter documentations has been truncated, see
|
|
228
|
+
# {Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI}
|
|
229
|
+
# for more details.
|
|
230
|
+
#
|
|
231
|
+
# @param interim_results [Boolean] Whether to send also interim results. If set to false, only final results will b
|
|
232
|
+
#
|
|
233
|
+
# @param transcription_engine [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::TranscriptionEngine] Engine identifier for AssemblyAI transcription service
|
|
234
|
+
#
|
|
235
|
+
# @param transcription_model [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI::TranscriptionModel] The model to use for transcription.
|
|
236
|
+
|
|
237
|
+
# Engine identifier for AssemblyAI transcription service
|
|
238
|
+
#
|
|
239
|
+
# @see Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI#transcription_engine
|
|
240
|
+
module TranscriptionEngine
|
|
241
|
+
extend Telnyx::Internal::Type::Enum
|
|
242
|
+
|
|
243
|
+
ASSEMBLY_AI = :AssemblyAI
|
|
244
|
+
|
|
245
|
+
# @!method self.values
|
|
246
|
+
# @return [Array<Symbol>]
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
# The model to use for transcription.
|
|
250
|
+
#
|
|
251
|
+
# @see Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI#transcription_model
|
|
252
|
+
module TranscriptionModel
|
|
253
|
+
extend Telnyx::Internal::Type::Enum
|
|
254
|
+
|
|
255
|
+
ASSEMBLYAI_UNIVERSAL_STREAMING = :"assemblyai/universal-streaming"
|
|
256
|
+
|
|
257
|
+
# @!method self.values
|
|
258
|
+
# @return [Array<Symbol>]
|
|
259
|
+
end
|
|
260
|
+
end
|
|
261
|
+
|
|
100
262
|
# @!method self.variants
|
|
101
|
-
# @return [Array(Telnyx::Models::Calls::TranscriptionEngineGoogleConfig, Telnyx::Models::Calls::TranscriptionEngineTelnyxConfig, Telnyx::Models::Calls::TranscriptionEngineAzureConfig, Telnyx::Models::Calls::
|
|
263
|
+
# @return [Array(Telnyx::Models::Calls::TranscriptionEngineGoogleConfig, Telnyx::Models::Calls::TranscriptionEngineTelnyxConfig, Telnyx::Models::Calls::TranscriptionEngineAzureConfig, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::XAI, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::AssemblyAI, Telnyx::Models::Calls::TranscriptionEngineAConfig, Telnyx::Models::Calls::TranscriptionEngineBConfig, Telnyx::Models::Calls::DeepgramNova2Config, Telnyx::Models::Calls::DeepgramNova3Config)]
|
|
102
264
|
end
|
|
103
265
|
end
|
|
104
266
|
end
|
|
@@ -107,7 +107,7 @@ module Telnyx
|
|
|
107
107
|
# @!attribute voice_settings
|
|
108
108
|
# The settings associated with the voice selected
|
|
109
109
|
#
|
|
110
|
-
# @return [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Conferences::ActionSpeakParams::VoiceSettings::Inworld, Telnyx::Models::
|
|
110
|
+
# @return [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Conferences::ActionSpeakParams::VoiceSettings::Inworld, Telnyx::Models::Conferences::ActionSpeakParams::VoiceSettings::Xai, nil]
|
|
111
111
|
optional :voice_settings, union: -> { Telnyx::Conferences::ActionSpeakParams::VoiceSettings }
|
|
112
112
|
|
|
113
113
|
# @!method initialize(id:, payload:, voice:, call_control_ids: nil, command_id: nil, language: nil, payload_type: nil, region: nil, voice_settings: nil, request_options: {})
|
|
@@ -130,7 +130,7 @@ module Telnyx
|
|
|
130
130
|
#
|
|
131
131
|
# @param region [Symbol, Telnyx::Models::Conferences::ActionSpeakParams::Region] Region where the conference data is located. Defaults to the region defined in u
|
|
132
132
|
#
|
|
133
|
-
# @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Conferences::ActionSpeakParams::VoiceSettings::Inworld, Telnyx::Models::
|
|
133
|
+
# @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Conferences::ActionSpeakParams::VoiceSettings::Inworld, Telnyx::Models::Conferences::ActionSpeakParams::VoiceSettings::Xai] The settings associated with the voice selected
|
|
134
134
|
#
|
|
135
135
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
136
136
|
|
|
@@ -221,7 +221,7 @@ module Telnyx
|
|
|
221
221
|
|
|
222
222
|
variant :inworld, -> { Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Inworld }
|
|
223
223
|
|
|
224
|
-
variant :xai, -> { Telnyx::
|
|
224
|
+
variant :xai, -> { Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Xai }
|
|
225
225
|
|
|
226
226
|
class Inworld < Telnyx::Internal::Type::BaseModel
|
|
227
227
|
# @!attribute type
|
|
@@ -234,8 +234,27 @@ module Telnyx
|
|
|
234
234
|
# @param type [Symbol, :inworld] Voice settings provider type
|
|
235
235
|
end
|
|
236
236
|
|
|
237
|
+
class Xai < Telnyx::Internal::Type::BaseModel
|
|
238
|
+
# @!attribute type
|
|
239
|
+
# Voice settings provider type
|
|
240
|
+
#
|
|
241
|
+
# @return [Symbol, :xai]
|
|
242
|
+
required :type, const: :xai
|
|
243
|
+
|
|
244
|
+
# @!attribute language
|
|
245
|
+
# Language code, or `auto` to detect automatically.
|
|
246
|
+
#
|
|
247
|
+
# @return [String, nil]
|
|
248
|
+
optional :language, String
|
|
249
|
+
|
|
250
|
+
# @!method initialize(language: nil, type: :xai)
|
|
251
|
+
# @param language [String] Language code, or `auto` to detect automatically.
|
|
252
|
+
#
|
|
253
|
+
# @param type [Symbol, :xai] Voice settings provider type
|
|
254
|
+
end
|
|
255
|
+
|
|
237
256
|
# @!method self.variants
|
|
238
|
-
# @return [Array(Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Conferences::ActionSpeakParams::VoiceSettings::Inworld, Telnyx::Models::
|
|
257
|
+
# @return [Array(Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Conferences::ActionSpeakParams::VoiceSettings::Inworld, Telnyx::Models::Conferences::ActionSpeakParams::VoiceSettings::Xai)]
|
|
239
258
|
end
|
|
240
259
|
end
|
|
241
260
|
end
|
|
@@ -3,118 +3,8 @@
|
|
|
3
3
|
module Telnyx
|
|
4
4
|
module Models
|
|
5
5
|
# @see Telnyx::Resources::Networks#list_interfaces
|
|
6
|
-
class NetworkListInterfacesResponse < Telnyx::
|
|
7
|
-
# @!
|
|
8
|
-
# A user specified name for the interface.
|
|
9
|
-
#
|
|
10
|
-
# @return [String, nil]
|
|
11
|
-
optional :name, String
|
|
12
|
-
|
|
13
|
-
# @!attribute network_id
|
|
14
|
-
# The id of the network associated with the interface.
|
|
15
|
-
#
|
|
16
|
-
# @return [String, nil]
|
|
17
|
-
optional :network_id, String
|
|
18
|
-
|
|
19
|
-
# @!attribute region
|
|
20
|
-
#
|
|
21
|
-
# @return [Telnyx::Models::NetworkListInterfacesResponse::Region, nil]
|
|
22
|
-
optional :region, -> { Telnyx::Models::NetworkListInterfacesResponse::Region }
|
|
23
|
-
|
|
24
|
-
# @!attribute region_code
|
|
25
|
-
# The region interface is deployed to.
|
|
26
|
-
#
|
|
27
|
-
# @return [String, nil]
|
|
28
|
-
optional :region_code, String
|
|
29
|
-
|
|
30
|
-
response_only do
|
|
31
|
-
# @!attribute id
|
|
32
|
-
# Identifies the resource.
|
|
33
|
-
#
|
|
34
|
-
# @return [String, nil]
|
|
35
|
-
optional :id, String
|
|
36
|
-
|
|
37
|
-
# @!attribute created_at
|
|
38
|
-
# ISO 8601 formatted date-time indicating when the resource was created.
|
|
39
|
-
#
|
|
40
|
-
# @return [String, nil]
|
|
41
|
-
optional :created_at, String
|
|
42
|
-
|
|
43
|
-
# @!attribute record_type
|
|
44
|
-
# Identifies the type of the resource.
|
|
45
|
-
#
|
|
46
|
-
# @return [String, nil]
|
|
47
|
-
optional :record_type, String
|
|
48
|
-
|
|
49
|
-
# @!attribute status
|
|
50
|
-
# The current status of the interface deployment.
|
|
51
|
-
#
|
|
52
|
-
# @return [Symbol, Telnyx::Models::InterfaceStatus, nil]
|
|
53
|
-
optional :status, enum: -> { Telnyx::InterfaceStatus }
|
|
54
|
-
|
|
55
|
-
# @!attribute type
|
|
56
|
-
# Identifies the type of the interface.
|
|
57
|
-
#
|
|
58
|
-
# @return [String, nil]
|
|
59
|
-
optional :type, String
|
|
60
|
-
|
|
61
|
-
# @!attribute updated_at
|
|
62
|
-
# ISO 8601 formatted date-time indicating when the resource was updated.
|
|
63
|
-
#
|
|
64
|
-
# @return [String, nil]
|
|
65
|
-
optional :updated_at, String
|
|
66
|
-
end
|
|
67
|
-
|
|
68
|
-
# @!method initialize(id: nil, created_at: nil, name: nil, network_id: nil, record_type: nil, region: nil, region_code: nil, status: nil, type: nil, updated_at: nil)
|
|
69
|
-
# @param id [String] Identifies the resource.
|
|
70
|
-
#
|
|
71
|
-
# @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
|
|
72
|
-
#
|
|
73
|
-
# @param name [String] A user specified name for the interface.
|
|
74
|
-
#
|
|
75
|
-
# @param network_id [String] The id of the network associated with the interface.
|
|
76
|
-
#
|
|
77
|
-
# @param record_type [String] Identifies the type of the resource.
|
|
78
|
-
#
|
|
79
|
-
# @param region [Telnyx::Models::NetworkListInterfacesResponse::Region]
|
|
80
|
-
#
|
|
81
|
-
# @param region_code [String] The region interface is deployed to.
|
|
82
|
-
#
|
|
83
|
-
# @param status [Symbol, Telnyx::Models::InterfaceStatus] The current status of the interface deployment.
|
|
84
|
-
#
|
|
85
|
-
# @param type [String] Identifies the type of the interface.
|
|
86
|
-
#
|
|
87
|
-
# @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
|
|
88
|
-
|
|
89
|
-
# @see Telnyx::Models::NetworkListInterfacesResponse#region
|
|
90
|
-
class Region < Telnyx::Internal::Type::BaseModel
|
|
91
|
-
# @!attribute code
|
|
92
|
-
# Region code of the interface.
|
|
93
|
-
#
|
|
94
|
-
# @return [String, nil]
|
|
95
|
-
optional :code, String
|
|
96
|
-
|
|
97
|
-
# @!attribute name
|
|
98
|
-
# Region name of the interface.
|
|
99
|
-
#
|
|
100
|
-
# @return [String, nil]
|
|
101
|
-
optional :name, String
|
|
102
|
-
|
|
103
|
-
response_only do
|
|
104
|
-
# @!attribute record_type
|
|
105
|
-
# Identifies the type of the resource.
|
|
106
|
-
#
|
|
107
|
-
# @return [String, nil]
|
|
108
|
-
optional :record_type, String
|
|
109
|
-
end
|
|
110
|
-
|
|
111
|
-
# @!method initialize(code: nil, name: nil, record_type: nil)
|
|
112
|
-
# @param code [String] Region code of the interface.
|
|
113
|
-
#
|
|
114
|
-
# @param name [String] Region name of the interface.
|
|
115
|
-
#
|
|
116
|
-
# @param record_type [String] Identifies the type of the resource.
|
|
117
|
-
end
|
|
6
|
+
class NetworkListInterfacesResponse < Telnyx::Models::Record
|
|
7
|
+
# @!method initialize
|
|
118
8
|
end
|
|
119
9
|
end
|
|
120
10
|
end
|
|
@@ -6,11 +6,16 @@ module Telnyx
|
|
|
6
6
|
class PublicInternetGatewayCreateResponse < Telnyx::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute data
|
|
8
8
|
#
|
|
9
|
-
# @return [Telnyx::Models::
|
|
10
|
-
optional :data, -> { Telnyx::
|
|
9
|
+
# @return [Telnyx::Models::PublicInternetGatewayCreateResponse::Data, nil]
|
|
10
|
+
optional :data, -> { Telnyx::Models::PublicInternetGatewayCreateResponse::Data }
|
|
11
11
|
|
|
12
12
|
# @!method initialize(data: nil)
|
|
13
|
-
# @param data [Telnyx::Models::
|
|
13
|
+
# @param data [Telnyx::Models::PublicInternetGatewayCreateResponse::Data]
|
|
14
|
+
|
|
15
|
+
# @see Telnyx::Models::PublicInternetGatewayCreateResponse#data
|
|
16
|
+
class Data < Telnyx::Models::Record
|
|
17
|
+
# @!method initialize
|
|
18
|
+
end
|
|
14
19
|
end
|
|
15
20
|
end
|
|
16
21
|
end
|
|
@@ -6,11 +6,16 @@ module Telnyx
|
|
|
6
6
|
class PublicInternetGatewayDeleteResponse < Telnyx::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute data
|
|
8
8
|
#
|
|
9
|
-
# @return [Telnyx::Models::
|
|
10
|
-
optional :data, -> { Telnyx::
|
|
9
|
+
# @return [Telnyx::Models::PublicInternetGatewayDeleteResponse::Data, nil]
|
|
10
|
+
optional :data, -> { Telnyx::Models::PublicInternetGatewayDeleteResponse::Data }
|
|
11
11
|
|
|
12
12
|
# @!method initialize(data: nil)
|
|
13
|
-
# @param data [Telnyx::Models::
|
|
13
|
+
# @param data [Telnyx::Models::PublicInternetGatewayDeleteResponse::Data]
|
|
14
|
+
|
|
15
|
+
# @see Telnyx::Models::PublicInternetGatewayDeleteResponse#data
|
|
16
|
+
class Data < Telnyx::Models::Record
|
|
17
|
+
# @!method initialize
|
|
18
|
+
end
|
|
14
19
|
end
|
|
15
20
|
end
|
|
16
21
|
end
|
|
@@ -6,11 +6,16 @@ module Telnyx
|
|
|
6
6
|
class PublicInternetGatewayRetrieveResponse < Telnyx::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute data
|
|
8
8
|
#
|
|
9
|
-
# @return [Telnyx::Models::
|
|
10
|
-
optional :data, -> { Telnyx::
|
|
9
|
+
# @return [Telnyx::Models::PublicInternetGatewayRetrieveResponse::Data, nil]
|
|
10
|
+
optional :data, -> { Telnyx::Models::PublicInternetGatewayRetrieveResponse::Data }
|
|
11
11
|
|
|
12
12
|
# @!method initialize(data: nil)
|
|
13
|
-
# @param data [Telnyx::Models::
|
|
13
|
+
# @param data [Telnyx::Models::PublicInternetGatewayRetrieveResponse::Data]
|
|
14
|
+
|
|
15
|
+
# @see Telnyx::Models::PublicInternetGatewayRetrieveResponse#data
|
|
16
|
+
class Data < Telnyx::Models::Record
|
|
17
|
+
# @!method initialize
|
|
18
|
+
end
|
|
14
19
|
end
|
|
15
20
|
end
|
|
16
21
|
end
|
|
@@ -77,13 +77,14 @@ module Telnyx
|
|
|
77
77
|
optional :caller_id, String, api_name: :CallerId
|
|
78
78
|
|
|
79
79
|
# @!attribute conversation_callback
|
|
80
|
-
# URL destination for Telnyx to send conversation callback events
|
|
80
|
+
# URL destination for Telnyx to send AI conversation callback events for this
|
|
81
|
+
# call. Events include `conversation_created` and `conversation_ended`.
|
|
81
82
|
#
|
|
82
83
|
# @return [String, nil]
|
|
83
84
|
optional :conversation_callback, String, api_name: :ConversationCallback
|
|
84
85
|
|
|
85
86
|
# @!attribute conversation_callback_method
|
|
86
|
-
# HTTP request type used for `ConversationCallback`.
|
|
87
|
+
# HTTP request type used for `ConversationCallback` and `ConversationCallbacks`.
|
|
87
88
|
#
|
|
88
89
|
# @return [Symbol, Telnyx::Models::TexmlInitiateAICallParams::ConversationCallbackMethod, nil]
|
|
89
90
|
optional :conversation_callback_method,
|
|
@@ -91,7 +92,8 @@ module Telnyx
|
|
|
91
92
|
api_name: :ConversationCallbackMethod
|
|
92
93
|
|
|
93
94
|
# @!attribute conversation_callbacks
|
|
94
|
-
#
|
|
95
|
+
# Array of URL destinations for AI conversation callback events for this call.
|
|
96
|
+
# Events include `conversation_created` and `conversation_ended`.
|
|
95
97
|
#
|
|
96
98
|
# @return [Array<String>, nil]
|
|
97
99
|
optional :conversation_callbacks,
|
|
@@ -239,21 +241,27 @@ module Telnyx
|
|
|
239
241
|
optional :sip_region, enum: -> { Telnyx::TexmlInitiateAICallParams::SipRegion }, api_name: :SipRegion
|
|
240
242
|
|
|
241
243
|
# @!attribute status_callback
|
|
242
|
-
# URL destination for Telnyx to send status callback events
|
|
244
|
+
# URL destination for Telnyx to send status callback events for this AI call. When
|
|
245
|
+
# provided, this per-call value overrides the status callback URL configured on
|
|
246
|
+
# the TeXML application/connection.
|
|
243
247
|
#
|
|
244
248
|
# @return [String, nil]
|
|
245
249
|
optional :status_callback, String, api_name: :StatusCallback
|
|
246
250
|
|
|
247
251
|
# @!attribute status_callback_event
|
|
248
|
-
# The
|
|
249
|
-
# defined when separated by a space. Valid values:
|
|
250
|
-
# completed
|
|
252
|
+
# The status callback events for which Telnyx should send a webhook for this AI
|
|
253
|
+
# call. Multiple events can be defined when separated by a space. Valid values:
|
|
254
|
+
# initiated, ringing, answered, completed, no-answer, busy, canceled, failed,
|
|
255
|
+
# analyzed. When provided, this per-call value overrides the status callback
|
|
256
|
+
# events configured on the TeXML application/connection.
|
|
251
257
|
#
|
|
252
258
|
# @return [String, nil]
|
|
253
259
|
optional :status_callback_event, String, api_name: :StatusCallbackEvent
|
|
254
260
|
|
|
255
261
|
# @!attribute status_callback_method
|
|
256
|
-
# HTTP request type used for `StatusCallback
|
|
262
|
+
# HTTP request type used for `StatusCallback` and `StatusCallbacks` for this AI
|
|
263
|
+
# call. When provided, this per-call value overrides the status callback method
|
|
264
|
+
# configured on the TeXML application/connection.
|
|
257
265
|
#
|
|
258
266
|
# @return [Symbol, Telnyx::Models::TexmlInitiateAICallParams::StatusCallbackMethod, nil]
|
|
259
267
|
optional :status_callback_method,
|
|
@@ -261,8 +269,9 @@ module Telnyx
|
|
|
261
269
|
api_name: :StatusCallbackMethod
|
|
262
270
|
|
|
263
271
|
# @!attribute status_callbacks
|
|
264
|
-
#
|
|
265
|
-
# the
|
|
272
|
+
# Array of URL destinations for Telnyx to send status callback events for this AI
|
|
273
|
+
# call. When provided, these per-call values override the status callback URL
|
|
274
|
+
# configured on the TeXML application/connection.
|
|
266
275
|
#
|
|
267
276
|
# @return [Array<String>, nil]
|
|
268
277
|
optional :status_callbacks, Telnyx::Internal::Type::ArrayOf[String], api_name: :StatusCallbacks
|
|
@@ -313,11 +322,11 @@ module Telnyx
|
|
|
313
322
|
#
|
|
314
323
|
# @param caller_id [String] To be used as the caller id name (SIP From Display Name) presented to the destin
|
|
315
324
|
#
|
|
316
|
-
# @param conversation_callback [String] URL destination for Telnyx to send conversation callback events
|
|
325
|
+
# @param conversation_callback [String] URL destination for Telnyx to send AI conversation callback events for this call
|
|
317
326
|
#
|
|
318
|
-
# @param conversation_callback_method [Symbol, Telnyx::Models::TexmlInitiateAICallParams::ConversationCallbackMethod] HTTP request type used for `ConversationCallback`.
|
|
327
|
+
# @param conversation_callback_method [Symbol, Telnyx::Models::TexmlInitiateAICallParams::ConversationCallbackMethod] HTTP request type used for `ConversationCallback` and `ConversationCallbacks`.
|
|
319
328
|
#
|
|
320
|
-
# @param conversation_callbacks [Array<String>]
|
|
329
|
+
# @param conversation_callbacks [Array<String>] Array of URL destinations for AI conversation callback events for this call. Eve
|
|
321
330
|
#
|
|
322
331
|
# @param custom_headers [Array<Telnyx::Models::TexmlInitiateAICallParams::CustomHeader>] Custom HTTP headers to be sent with the call. Each header should be an object wi
|
|
323
332
|
#
|
|
@@ -359,13 +368,13 @@ module Telnyx
|
|
|
359
368
|
#
|
|
360
369
|
# @param sip_region [Symbol, Telnyx::Models::TexmlInitiateAICallParams::SipRegion] Defines the SIP region to be used for the call.
|
|
361
370
|
#
|
|
362
|
-
# @param status_callback [String] URL destination for Telnyx to send status callback events
|
|
371
|
+
# @param status_callback [String] URL destination for Telnyx to send status callback events for this AI call. When
|
|
363
372
|
#
|
|
364
|
-
# @param status_callback_event [String] The
|
|
373
|
+
# @param status_callback_event [String] The status callback events for which Telnyx should send a webhook for this AI ca
|
|
365
374
|
#
|
|
366
|
-
# @param status_callback_method [Symbol, Telnyx::Models::TexmlInitiateAICallParams::StatusCallbackMethod] HTTP request type used for `StatusCallback
|
|
375
|
+
# @param status_callback_method [Symbol, Telnyx::Models::TexmlInitiateAICallParams::StatusCallbackMethod] HTTP request type used for `StatusCallback` and `StatusCallbacks` for this AI ca
|
|
367
376
|
#
|
|
368
|
-
# @param status_callbacks [Array<String>]
|
|
377
|
+
# @param status_callbacks [Array<String>] Array of URL destinations for Telnyx to send status callback events for this AI
|
|
369
378
|
#
|
|
370
379
|
# @param time_limit [Integer] The maximum duration of the call in seconds. The minimum value is 30 and the max
|
|
371
380
|
#
|
|
@@ -386,7 +395,7 @@ module Telnyx
|
|
|
386
395
|
# @return [Array<Symbol>]
|
|
387
396
|
end
|
|
388
397
|
|
|
389
|
-
# HTTP request type used for `ConversationCallback`.
|
|
398
|
+
# HTTP request type used for `ConversationCallback` and `ConversationCallbacks`.
|
|
390
399
|
module ConversationCallbackMethod
|
|
391
400
|
extend Telnyx::Internal::Type::Enum
|
|
392
401
|
|
|
@@ -487,7 +496,9 @@ module Telnyx
|
|
|
487
496
|
# @return [Array<Symbol>]
|
|
488
497
|
end
|
|
489
498
|
|
|
490
|
-
# HTTP request type used for `StatusCallback
|
|
499
|
+
# HTTP request type used for `StatusCallback` and `StatusCallbacks` for this AI
|
|
500
|
+
# call. When provided, this per-call value overrides the status callback method
|
|
501
|
+
# configured on the TeXML application/connection.
|
|
491
502
|
module StatusCallbackMethod
|
|
492
503
|
extend Telnyx::Internal::Type::Enum
|
|
493
504
|
|
|
@@ -622,12 +622,12 @@ module Telnyx
|
|
|
622
622
|
module SampleRate
|
|
623
623
|
extend ::Telnyx::Internal::Type::Enum
|
|
624
624
|
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
625
|
+
SAMPLE_RATE_8000 = 8000
|
|
626
|
+
SAMPLE_RATE_16000 = 16_000
|
|
627
|
+
SAMPLE_RATE_22050 = 22_050
|
|
628
|
+
SAMPLE_RATE_24000 = 24_000
|
|
629
|
+
SAMPLE_RATE_44100 = 44_100
|
|
630
|
+
SAMPLE_RATE_48000 = 48_000
|
|
631
631
|
|
|
632
632
|
# @!method self.values
|
|
633
633
|
# @return [Array<Integer>]
|