telnyx 5.112.0 → 5.113.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 +17 -0
- data/README.md +1 -1
- data/lib/telnyx/models/ai/assistant_create_params.rb +9 -178
- 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 -178
- 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 -179
- data/lib/telnyx/models/ai/inference_embedding.rb +9 -177
- data/lib/telnyx/models/ai/inference_embedding_interruption_settings.rb +47 -0
- data/lib/telnyx/models/ai/openai_create_response_params.rb +3 -3
- data/lib/telnyx/models/ai/openai_list_models_response.rb +3 -210
- 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_create_response_params.rb +4 -4
- data/lib/telnyx/models/ai_retrieve_models_response.rb +3 -210
- data/lib/telnyx/models/call_conversation_ended.rb +13 -1
- 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/action_start_conversation_relay_params.rb +169 -118
- data/lib/telnyx/models/calls/transcription_engine_assemblyai_config.rb +64 -0
- data/lib/telnyx/models/calls/transcription_engine_speechmatics_config.rb +100 -0
- data/lib/telnyx/models/calls/transcription_engine_xai_config.rb +108 -0
- data/lib/telnyx/models/calls/transcription_start_request.rb +8 -167
- data/lib/telnyx/models/conferences/action_speak_params.rb +4 -23
- data/lib/telnyx/models/fax.rb +7 -5
- data/lib/telnyx/models/fax_create_params.rb +7 -5
- data/lib/telnyx/models/fax_delivered.rb +3 -2
- data/lib/telnyx/models/fax_failed.rb +3 -2
- data/lib/telnyx/models/fax_media_processed.rb +3 -2
- data/lib/telnyx/models/fax_queued.rb +3 -2
- data/lib/telnyx/models/fax_sending_started.rb +3 -2
- data/lib/telnyx/models/model_metadata.rb +212 -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/texml/accounts/call_calls_params.rb +62 -12
- data/lib/telnyx/models/texml_initiate_ai_call_params.rb +18 -4
- 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/ai/openai.rb +1 -1
- data/lib/telnyx/resources/ai.rb +3 -3
- data/lib/telnyx/resources/calls/actions.rb +15 -17
- data/lib/telnyx/resources/conferences/actions.rb +1 -1
- data/lib/telnyx/resources/faxes.rb +13 -1
- data/lib/telnyx/resources/public_internet_gateways.rb +2 -2
- data/lib/telnyx/resources/texml.rb +4 -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 +23 -4
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +12 -352
- 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 -352
- 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 -366
- data/rbi/telnyx/models/ai/inference_embedding.rbi +12 -351
- data/rbi/telnyx/models/ai/inference_embedding_interruption_settings.rbi +83 -0
- data/rbi/telnyx/models/ai/openai_create_response_params.rbi +4 -4
- data/rbi/telnyx/models/ai/openai_list_models_response.rbi +3 -315
- 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_create_response_params.rbi +4 -4
- data/rbi/telnyx/models/ai_retrieve_models_response.rbi +3 -310
- data/rbi/telnyx/models/call_conversation_ended.rbi +10 -0
- 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/action_start_conversation_relay_params.rbi +371 -254
- data/rbi/telnyx/models/calls/transcription_engine_assemblyai_config.rbi +155 -0
- data/rbi/telnyx/models/calls/transcription_engine_speechmatics_config.rbi +289 -0
- data/rbi/telnyx/models/calls/transcription_engine_xai_config.rbi +329 -0
- data/rbi/telnyx/models/calls/transcription_start_request.rbi +20 -480
- data/rbi/telnyx/models/conferences/action_speak_params.rbi +5 -41
- data/rbi/telnyx/models/fax.rbi +12 -8
- data/rbi/telnyx/models/fax_create_params.rbi +12 -8
- data/rbi/telnyx/models/fax_delivered.rbi +6 -4
- data/rbi/telnyx/models/fax_failed.rbi +6 -4
- data/rbi/telnyx/models/fax_media_processed.rbi +6 -4
- data/rbi/telnyx/models/fax_queued.rbi +6 -4
- data/rbi/telnyx/models/fax_sending_started.rbi +6 -4
- data/rbi/telnyx/models/model_metadata.rbi +272 -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/texml/accounts/call_calls_params.rbi +81 -9
- data/rbi/telnyx/models/texml_initiate_ai_call_params.rbi +27 -3
- 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/ai/openai.rbi +1 -1
- data/rbi/telnyx/resources/ai.rbi +2 -2
- data/rbi/telnyx/resources/calls/actions.rbi +24 -24
- data/rbi/telnyx/resources/conferences/actions.rbi +1 -1
- data/rbi/telnyx/resources/faxes.rbi +18 -4
- data/rbi/telnyx/resources/public_internet_gateways.rbi +1 -1
- data/rbi/telnyx/resources/texml.rbi +7 -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 -149
- 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 -149
- 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 -152
- data/sig/telnyx/models/ai/inference_embedding.rbs +18 -149
- data/sig/telnyx/models/ai/inference_embedding_interruption_settings.rbs +40 -0
- data/sig/telnyx/models/ai/openai_create_response_params.rbs +5 -5
- data/sig/telnyx/models/ai/openai_list_models_response.rbs +4 -149
- 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_create_response_params.rbs +5 -4
- data/sig/telnyx/models/ai_retrieve_models_response.rbs +4 -149
- data/sig/telnyx/models/call_conversation_ended.rbs +5 -0
- 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/action_start_conversation_relay_params.rbs +141 -102
- data/sig/telnyx/models/calls/transcription_engine_assemblyai_config.rbs +62 -0
- data/sig/telnyx/models/calls/transcription_engine_speechmatics_config.rbs +114 -0
- data/sig/telnyx/models/calls/transcription_engine_xai_config.rbs +130 -0
- data/sig/telnyx/models/calls/transcription_start_request.rbs +13 -185
- data/sig/telnyx/models/conferences/action_speak_params.rbs +1 -15
- data/sig/telnyx/models/model_metadata.rbs +142 -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/texml/accounts/call_calls_params.rbs +27 -3
- data/sig/telnyx/models/texml_initiate_ai_call_params.rbs +9 -1
- 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/ai/openai.rbs +1 -1
- data/sig/telnyx/resources/ai.rbs +1 -1
- data/sig/telnyx/resources/calls/actions.rbs +2 -4
- data/sig/telnyx/resources/public_internet_gateways.rbs +1 -1
- data/sig/telnyx/resources/texml.rbs +1 -0
- 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 +71 -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
|
@@ -6,16 +6,11 @@ module Telnyx
|
|
|
6
6
|
class VirtualCrossConnectCreateResponse < Telnyx::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute data
|
|
8
8
|
#
|
|
9
|
-
# @return [Telnyx::Models::
|
|
10
|
-
optional :data, -> { Telnyx::
|
|
9
|
+
# @return [Telnyx::Models::VirtualCrossConnectCombined, nil]
|
|
10
|
+
optional :data, -> { Telnyx::VirtualCrossConnectCombined }
|
|
11
11
|
|
|
12
12
|
# @!method initialize(data: nil)
|
|
13
|
-
# @param data [Telnyx::Models::
|
|
14
|
-
|
|
15
|
-
# @see Telnyx::Models::VirtualCrossConnectCreateResponse#data
|
|
16
|
-
class Data < Telnyx::Models::Record
|
|
17
|
-
# @!method initialize
|
|
18
|
-
end
|
|
13
|
+
# @param data [Telnyx::Models::VirtualCrossConnectCombined]
|
|
19
14
|
end
|
|
20
15
|
end
|
|
21
16
|
end
|
|
@@ -6,16 +6,11 @@ module Telnyx
|
|
|
6
6
|
class VirtualCrossConnectDeleteResponse < Telnyx::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute data
|
|
8
8
|
#
|
|
9
|
-
# @return [Telnyx::Models::
|
|
10
|
-
optional :data, -> { Telnyx::
|
|
9
|
+
# @return [Telnyx::Models::VirtualCrossConnectCombined, nil]
|
|
10
|
+
optional :data, -> { Telnyx::VirtualCrossConnectCombined }
|
|
11
11
|
|
|
12
12
|
# @!method initialize(data: nil)
|
|
13
|
-
# @param data [Telnyx::Models::
|
|
14
|
-
|
|
15
|
-
# @see Telnyx::Models::VirtualCrossConnectDeleteResponse#data
|
|
16
|
-
class Data < Telnyx::Models::Record
|
|
17
|
-
# @!method initialize
|
|
18
|
-
end
|
|
13
|
+
# @param data [Telnyx::Models::VirtualCrossConnectCombined]
|
|
19
14
|
end
|
|
20
15
|
end
|
|
21
16
|
end
|
|
@@ -6,16 +6,11 @@ module Telnyx
|
|
|
6
6
|
class VirtualCrossConnectRetrieveResponse < Telnyx::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute data
|
|
8
8
|
#
|
|
9
|
-
# @return [Telnyx::Models::
|
|
10
|
-
optional :data, -> { Telnyx::
|
|
9
|
+
# @return [Telnyx::Models::VirtualCrossConnectCombined, nil]
|
|
10
|
+
optional :data, -> { Telnyx::VirtualCrossConnectCombined }
|
|
11
11
|
|
|
12
12
|
# @!method initialize(data: nil)
|
|
13
|
-
# @param data [Telnyx::Models::
|
|
14
|
-
|
|
15
|
-
# @see Telnyx::Models::VirtualCrossConnectRetrieveResponse#data
|
|
16
|
-
class Data < Telnyx::Models::Record
|
|
17
|
-
# @!method initialize
|
|
18
|
-
end
|
|
13
|
+
# @param data [Telnyx::Models::VirtualCrossConnectCombined]
|
|
19
14
|
end
|
|
20
15
|
end
|
|
21
16
|
end
|
|
@@ -6,16 +6,11 @@ module Telnyx
|
|
|
6
6
|
class VirtualCrossConnectUpdateResponse < Telnyx::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute data
|
|
8
8
|
#
|
|
9
|
-
# @return [Telnyx::Models::
|
|
10
|
-
optional :data, -> { Telnyx::
|
|
9
|
+
# @return [Telnyx::Models::VirtualCrossConnectCombined, nil]
|
|
10
|
+
optional :data, -> { Telnyx::VirtualCrossConnectCombined }
|
|
11
11
|
|
|
12
12
|
# @!method initialize(data: nil)
|
|
13
|
-
# @param data [Telnyx::Models::
|
|
14
|
-
|
|
15
|
-
# @see Telnyx::Models::VirtualCrossConnectUpdateResponse#data
|
|
16
|
-
class Data < Telnyx::Models::Record
|
|
17
|
-
# @!method initialize
|
|
18
|
-
end
|
|
13
|
+
# @param data [Telnyx::Models::VirtualCrossConnectCombined]
|
|
19
14
|
end
|
|
20
15
|
end
|
|
21
16
|
end
|
|
@@ -6,16 +6,11 @@ module Telnyx
|
|
|
6
6
|
class WireguardInterfaceCreateResponse < Telnyx::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute data
|
|
8
8
|
#
|
|
9
|
-
# @return [Telnyx::Models::
|
|
10
|
-
optional :data, -> { Telnyx::
|
|
9
|
+
# @return [Telnyx::Models::WireguardInterfaceRead, nil]
|
|
10
|
+
optional :data, -> { Telnyx::WireguardInterfaceRead }
|
|
11
11
|
|
|
12
12
|
# @!method initialize(data: nil)
|
|
13
|
-
# @param data [Telnyx::Models::
|
|
14
|
-
|
|
15
|
-
# @see Telnyx::Models::WireguardInterfaceCreateResponse#data
|
|
16
|
-
class Data < Telnyx::Models::Record
|
|
17
|
-
# @!method initialize
|
|
18
|
-
end
|
|
13
|
+
# @param data [Telnyx::Models::WireguardInterfaceRead]
|
|
19
14
|
end
|
|
20
15
|
end
|
|
21
16
|
end
|
|
@@ -6,16 +6,11 @@ module Telnyx
|
|
|
6
6
|
class WireguardInterfaceDeleteResponse < Telnyx::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute data
|
|
8
8
|
#
|
|
9
|
-
# @return [Telnyx::Models::
|
|
10
|
-
optional :data, -> { Telnyx::
|
|
9
|
+
# @return [Telnyx::Models::WireguardInterfaceRead, nil]
|
|
10
|
+
optional :data, -> { Telnyx::WireguardInterfaceRead }
|
|
11
11
|
|
|
12
12
|
# @!method initialize(data: nil)
|
|
13
|
-
# @param data [Telnyx::Models::
|
|
14
|
-
|
|
15
|
-
# @see Telnyx::Models::WireguardInterfaceDeleteResponse#data
|
|
16
|
-
class Data < Telnyx::Models::Record
|
|
17
|
-
# @!method initialize
|
|
18
|
-
end
|
|
13
|
+
# @param data [Telnyx::Models::WireguardInterfaceRead]
|
|
19
14
|
end
|
|
20
15
|
end
|
|
21
16
|
end
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
# @see Telnyx::Resources::WireguardInterfaces#list
|
|
6
|
+
class WireguardInterfaceRead < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute enable_sip_trunking
|
|
8
|
+
# Enable SIP traffic forwarding over VPN interface.
|
|
9
|
+
#
|
|
10
|
+
# @return [Boolean, nil]
|
|
11
|
+
optional :enable_sip_trunking, Telnyx::Internal::Type::Boolean
|
|
12
|
+
|
|
13
|
+
# @!attribute name
|
|
14
|
+
# A user specified name for the interface.
|
|
15
|
+
#
|
|
16
|
+
# @return [String, nil]
|
|
17
|
+
optional :name, String
|
|
18
|
+
|
|
19
|
+
# @!attribute network_id
|
|
20
|
+
# The id of the network associated with the interface.
|
|
21
|
+
#
|
|
22
|
+
# @return [String, nil]
|
|
23
|
+
optional :network_id, String
|
|
24
|
+
|
|
25
|
+
# @!attribute region
|
|
26
|
+
#
|
|
27
|
+
# @return [Telnyx::Models::WireguardInterfaceRead::Region, nil]
|
|
28
|
+
optional :region, -> { Telnyx::WireguardInterfaceRead::Region }
|
|
29
|
+
|
|
30
|
+
# @!attribute region_code
|
|
31
|
+
# The region interface is deployed to.
|
|
32
|
+
#
|
|
33
|
+
# @return [String, nil]
|
|
34
|
+
optional :region_code, String
|
|
35
|
+
|
|
36
|
+
response_only do
|
|
37
|
+
# @!attribute id
|
|
38
|
+
# Identifies the resource.
|
|
39
|
+
#
|
|
40
|
+
# @return [String, nil]
|
|
41
|
+
optional :id, String
|
|
42
|
+
|
|
43
|
+
# @!attribute created_at
|
|
44
|
+
# ISO 8601 formatted date-time indicating when the resource was created.
|
|
45
|
+
#
|
|
46
|
+
# @return [String, nil]
|
|
47
|
+
optional :created_at, String
|
|
48
|
+
|
|
49
|
+
# @!attribute endpoint
|
|
50
|
+
# The Telnyx WireGuard peers `Peer.endpoint` value.
|
|
51
|
+
#
|
|
52
|
+
# @return [String, nil]
|
|
53
|
+
optional :endpoint, String
|
|
54
|
+
|
|
55
|
+
# @!attribute public_key
|
|
56
|
+
# The Telnyx WireGuard peers `Peer.PublicKey`.
|
|
57
|
+
#
|
|
58
|
+
# @return [String, nil]
|
|
59
|
+
optional :public_key, String
|
|
60
|
+
|
|
61
|
+
# @!attribute record_type
|
|
62
|
+
# Identifies the type of the resource.
|
|
63
|
+
#
|
|
64
|
+
# @return [String, nil]
|
|
65
|
+
optional :record_type, String
|
|
66
|
+
|
|
67
|
+
# @!attribute status
|
|
68
|
+
# The current status of the interface deployment.
|
|
69
|
+
#
|
|
70
|
+
# @return [Symbol, Telnyx::Models::InterfaceStatus, nil]
|
|
71
|
+
optional :status, enum: -> { Telnyx::InterfaceStatus }
|
|
72
|
+
|
|
73
|
+
# @!attribute updated_at
|
|
74
|
+
# ISO 8601 formatted date-time indicating when the resource was updated.
|
|
75
|
+
#
|
|
76
|
+
# @return [String, nil]
|
|
77
|
+
optional :updated_at, String
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# @!method initialize(id: nil, created_at: nil, enable_sip_trunking: nil, endpoint: nil, name: nil, network_id: nil, public_key: nil, record_type: nil, region: nil, region_code: nil, status: nil, updated_at: nil)
|
|
81
|
+
# @param id [String] Identifies the resource.
|
|
82
|
+
#
|
|
83
|
+
# @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
|
|
84
|
+
#
|
|
85
|
+
# @param enable_sip_trunking [Boolean] Enable SIP traffic forwarding over VPN interface.
|
|
86
|
+
#
|
|
87
|
+
# @param endpoint [String] The Telnyx WireGuard peers `Peer.endpoint` value.
|
|
88
|
+
#
|
|
89
|
+
# @param name [String] A user specified name for the interface.
|
|
90
|
+
#
|
|
91
|
+
# @param network_id [String] The id of the network associated with the interface.
|
|
92
|
+
#
|
|
93
|
+
# @param public_key [String] The Telnyx WireGuard peers `Peer.PublicKey`.
|
|
94
|
+
#
|
|
95
|
+
# @param record_type [String] Identifies the type of the resource.
|
|
96
|
+
#
|
|
97
|
+
# @param region [Telnyx::Models::WireguardInterfaceRead::Region]
|
|
98
|
+
#
|
|
99
|
+
# @param region_code [String] The region interface is deployed to.
|
|
100
|
+
#
|
|
101
|
+
# @param status [Symbol, Telnyx::Models::InterfaceStatus] The current status of the interface deployment.
|
|
102
|
+
#
|
|
103
|
+
# @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
|
|
104
|
+
|
|
105
|
+
# @see Telnyx::Models::WireguardInterfaceRead#region
|
|
106
|
+
class Region < Telnyx::Internal::Type::BaseModel
|
|
107
|
+
# @!attribute code
|
|
108
|
+
# Region code of the interface.
|
|
109
|
+
#
|
|
110
|
+
# @return [String, nil]
|
|
111
|
+
optional :code, String
|
|
112
|
+
|
|
113
|
+
# @!attribute name
|
|
114
|
+
# Region name of the interface.
|
|
115
|
+
#
|
|
116
|
+
# @return [String, nil]
|
|
117
|
+
optional :name, String
|
|
118
|
+
|
|
119
|
+
response_only do
|
|
120
|
+
# @!attribute record_type
|
|
121
|
+
# Identifies the type of the resource.
|
|
122
|
+
#
|
|
123
|
+
# @return [String, nil]
|
|
124
|
+
optional :record_type, String
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# @!method initialize(code: nil, name: nil, record_type: nil)
|
|
128
|
+
# @param code [String] Region code of the interface.
|
|
129
|
+
#
|
|
130
|
+
# @param name [String] Region name of the interface.
|
|
131
|
+
#
|
|
132
|
+
# @param record_type [String] Identifies the type of the resource.
|
|
133
|
+
end
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
end
|
|
@@ -6,16 +6,11 @@ module Telnyx
|
|
|
6
6
|
class WireguardInterfaceRetrieveResponse < Telnyx::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute data
|
|
8
8
|
#
|
|
9
|
-
# @return [Telnyx::Models::
|
|
10
|
-
optional :data, -> { Telnyx::
|
|
9
|
+
# @return [Telnyx::Models::WireguardInterfaceRead, nil]
|
|
10
|
+
optional :data, -> { Telnyx::WireguardInterfaceRead }
|
|
11
11
|
|
|
12
12
|
# @!method initialize(data: nil)
|
|
13
|
-
# @param data [Telnyx::Models::
|
|
14
|
-
|
|
15
|
-
# @see Telnyx::Models::WireguardInterfaceRetrieveResponse#data
|
|
16
|
-
class Data < Telnyx::Models::Record
|
|
17
|
-
# @!method initialize
|
|
18
|
-
end
|
|
13
|
+
# @param data [Telnyx::Models::WireguardInterfaceRead]
|
|
19
14
|
end
|
|
20
15
|
end
|
|
21
16
|
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
class XaiVoiceSettings < Telnyx::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute type
|
|
7
|
+
# Voice settings provider type
|
|
8
|
+
#
|
|
9
|
+
# @return [Symbol, Telnyx::Models::XaiVoiceSettings::Type]
|
|
10
|
+
required :type, enum: -> { Telnyx::XaiVoiceSettings::Type }
|
|
11
|
+
|
|
12
|
+
# @!attribute language
|
|
13
|
+
# Language code, or `auto` to detect automatically.
|
|
14
|
+
#
|
|
15
|
+
# @return [String, nil]
|
|
16
|
+
optional :language, String
|
|
17
|
+
|
|
18
|
+
# @!method initialize(type:, language: nil)
|
|
19
|
+
# @param type [Symbol, Telnyx::Models::XaiVoiceSettings::Type] Voice settings provider type
|
|
20
|
+
#
|
|
21
|
+
# @param language [String] Language code, or `auto` to detect automatically.
|
|
22
|
+
|
|
23
|
+
# Voice settings provider type
|
|
24
|
+
#
|
|
25
|
+
# @see Telnyx::Models::XaiVoiceSettings#type
|
|
26
|
+
module Type
|
|
27
|
+
extend Telnyx::Internal::Type::Enum
|
|
28
|
+
|
|
29
|
+
XAI = :xai
|
|
30
|
+
|
|
31
|
+
# @!method self.values
|
|
32
|
+
# @return [Array<Symbol>]
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
data/lib/telnyx/models.rb
CHANGED
|
@@ -966,6 +966,8 @@ module Telnyx
|
|
|
966
966
|
|
|
967
967
|
MobileVoiceConnectionUpdateParams = Telnyx::Models::MobileVoiceConnectionUpdateParams
|
|
968
968
|
|
|
969
|
+
ModelMetadata = Telnyx::Models::ModelMetadata
|
|
970
|
+
|
|
969
971
|
MonthDetail = Telnyx::Models::MonthDetail
|
|
970
972
|
|
|
971
973
|
NetappsLocation = Telnyx::Models::NetappsLocation
|
|
@@ -1287,6 +1289,8 @@ module Telnyx
|
|
|
1287
1289
|
|
|
1288
1290
|
PublicInternetGatewayListParams = Telnyx::Models::PublicInternetGatewayListParams
|
|
1289
1291
|
|
|
1292
|
+
PublicInternetGatewayRead = Telnyx::Models::PublicInternetGatewayRead
|
|
1293
|
+
|
|
1290
1294
|
PublicInternetGatewayRetrieveParams = Telnyx::Models::PublicInternetGatewayRetrieveParams
|
|
1291
1295
|
|
|
1292
1296
|
PushCredential = Telnyx::Models::PushCredential
|
|
@@ -1628,6 +1632,8 @@ module Telnyx
|
|
|
1628
1632
|
|
|
1629
1633
|
TransportProtocol = Telnyx::Models::TransportProtocol
|
|
1630
1634
|
|
|
1635
|
+
UacConnection = Telnyx::Models::UacConnection
|
|
1636
|
+
|
|
1631
1637
|
UacConnectionCreateParams = Telnyx::Models::UacConnectionCreateParams
|
|
1632
1638
|
|
|
1633
1639
|
UacConnectionDeleteParams = Telnyx::Models::UacConnectionDeleteParams
|
|
@@ -1640,6 +1646,14 @@ module Telnyx
|
|
|
1640
1646
|
|
|
1641
1647
|
UacConnectionUpdateParams = Telnyx::Models::UacConnectionUpdateParams
|
|
1642
1648
|
|
|
1649
|
+
UacExternalSettings = Telnyx::Models::UacExternalSettings
|
|
1650
|
+
|
|
1651
|
+
UacInbound = Telnyx::Models::UacInbound
|
|
1652
|
+
|
|
1653
|
+
UacInternalSettings = Telnyx::Models::UacInternalSettings
|
|
1654
|
+
|
|
1655
|
+
UacOutbound = Telnyx::Models::UacOutbound
|
|
1656
|
+
|
|
1643
1657
|
UnsafeUnwrapWebhookEvent = Telnyx::Models::UnsafeUnwrapWebhookEvent
|
|
1644
1658
|
|
|
1645
1659
|
UnwrapWebhookEvent = Telnyx::Models::UnwrapWebhookEvent
|
|
@@ -1719,6 +1733,8 @@ module Telnyx
|
|
|
1719
1733
|
|
|
1720
1734
|
VideoRegion = Telnyx::Models::VideoRegion
|
|
1721
1735
|
|
|
1736
|
+
VirtualCrossConnectCombined = Telnyx::Models::VirtualCrossConnectCombined
|
|
1737
|
+
|
|
1722
1738
|
VirtualCrossConnectCreateParams = Telnyx::Models::VirtualCrossConnectCreateParams
|
|
1723
1739
|
|
|
1724
1740
|
VirtualCrossConnectDeleteParams = Telnyx::Models::VirtualCrossConnectDeleteParams
|
|
@@ -1805,6 +1821,8 @@ module Telnyx
|
|
|
1805
1821
|
|
|
1806
1822
|
WireguardInterfaceListParams = Telnyx::Models::WireguardInterfaceListParams
|
|
1807
1823
|
|
|
1824
|
+
WireguardInterfaceRead = Telnyx::Models::WireguardInterfaceRead
|
|
1825
|
+
|
|
1808
1826
|
WireguardInterfaceRetrieveParams = Telnyx::Models::WireguardInterfaceRetrieveParams
|
|
1809
1827
|
|
|
1810
1828
|
WireguardPeerCreateParams = Telnyx::Models::WireguardPeerCreateParams
|
|
@@ -1842,4 +1860,6 @@ module Telnyx
|
|
|
1842
1860
|
WirelessRetrieveRegionsParams = Telnyx::Models::WirelessRetrieveRegionsParams
|
|
1843
1861
|
|
|
1844
1862
|
X402 = Telnyx::Models::X402
|
|
1863
|
+
|
|
1864
|
+
XaiVoiceSettings = Telnyx::Models::XaiVoiceSettings
|
|
1845
1865
|
end
|
|
@@ -14,7 +14,7 @@ module Telnyx
|
|
|
14
14
|
# @overload create(assistant_id, rules: nil, request_options: {})
|
|
15
15
|
#
|
|
16
16
|
# @param assistant_id [String]
|
|
17
|
-
# @param rules [Array<Telnyx::Models::AI::Assistants::
|
|
17
|
+
# @param rules [Array<Telnyx::Models::AI::Assistants::RuleInput>]
|
|
18
18
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
19
19
|
#
|
|
20
20
|
# @return [Telnyx::Models::AI::Assistants::CanaryDeployResponse]
|
|
@@ -62,7 +62,7 @@ module Telnyx
|
|
|
62
62
|
# @overload update(assistant_id, rules: nil, request_options: {})
|
|
63
63
|
#
|
|
64
64
|
# @param assistant_id [String]
|
|
65
|
-
# @param rules [Array<Telnyx::Models::AI::Assistants::
|
|
65
|
+
# @param rules [Array<Telnyx::Models::AI::Assistants::RuleInput>]
|
|
66
66
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
67
67
|
#
|
|
68
68
|
# @return [Telnyx::Models::AI::Assistants::CanaryDeployResponse]
|
|
@@ -69,13 +69,13 @@ module Telnyx
|
|
|
69
69
|
#
|
|
70
70
|
# @param instructions [String] Body param: System instructions for the assistant. These may be templated with [
|
|
71
71
|
#
|
|
72
|
-
# @param integrations [Array<Telnyx::Models::AI::
|
|
72
|
+
# @param integrations [Array<Telnyx::Models::AI::AssistantIntegration>] Body param: Connected integrations attached to the assistant. The catalog of ava
|
|
73
73
|
#
|
|
74
|
-
# @param interruption_settings [Telnyx::Models::AI::
|
|
74
|
+
# @param interruption_settings [Telnyx::Models::AI::InferenceEmbeddingInterruptionSettings] Body param: Settings for interruptions and how the assistant decides the user ha
|
|
75
75
|
#
|
|
76
76
|
# @param llm_api_key_ref [String] Body param: This is only needed when using third-party inference providers selec
|
|
77
77
|
#
|
|
78
|
-
# @param mcp_servers [Array<Telnyx::Models::AI::
|
|
78
|
+
# @param mcp_servers [Array<Telnyx::Models::AI::AssistantMcpServer>] Body param: MCP servers attached to the assistant. Create MCP servers with `/ai/
|
|
79
79
|
#
|
|
80
80
|
# @param messaging_settings [Telnyx::Models::AI::MessagingSettings] Body param
|
|
81
81
|
#
|
|
@@ -58,13 +58,13 @@ module Telnyx
|
|
|
58
58
|
#
|
|
59
59
|
# @param insight_settings [Telnyx::Models::AI::InsightSettings]
|
|
60
60
|
#
|
|
61
|
-
# @param integrations [Array<Telnyx::Models::AI::
|
|
61
|
+
# @param integrations [Array<Telnyx::Models::AI::AssistantIntegration>] Connected integrations attached to the assistant. The catalog of available integ
|
|
62
62
|
#
|
|
63
|
-
# @param interruption_settings [Telnyx::Models::AI::
|
|
63
|
+
# @param interruption_settings [Telnyx::Models::AI::InferenceEmbeddingInterruptionSettings] Settings for interruptions and how the assistant decides the user has finished s
|
|
64
64
|
#
|
|
65
65
|
# @param llm_api_key_ref [String] This is only needed when using third-party inference providers selected by `mode
|
|
66
66
|
#
|
|
67
|
-
# @param mcp_servers [Array<Telnyx::Models::AI::
|
|
67
|
+
# @param mcp_servers [Array<Telnyx::Models::AI::AssistantMcpServer>] MCP servers attached to the assistant. Create MCP servers with `/ai/mcp_servers`
|
|
68
68
|
#
|
|
69
69
|
# @param messaging_settings [Telnyx::Models::AI::MessagingSettings]
|
|
70
70
|
#
|
|
@@ -161,13 +161,13 @@ module Telnyx
|
|
|
161
161
|
#
|
|
162
162
|
# @param instructions [String] System instructions for the assistant. These may be templated with [dynamic vari
|
|
163
163
|
#
|
|
164
|
-
# @param integrations [Array<Telnyx::Models::AI::
|
|
164
|
+
# @param integrations [Array<Telnyx::Models::AI::AssistantIntegration>] Connected integrations attached to the assistant. The catalog of available integ
|
|
165
165
|
#
|
|
166
|
-
# @param interruption_settings [Telnyx::Models::AI::
|
|
166
|
+
# @param interruption_settings [Telnyx::Models::AI::InferenceEmbeddingInterruptionSettings] Settings for interruptions and how the assistant decides the user has finished s
|
|
167
167
|
#
|
|
168
168
|
# @param llm_api_key_ref [String] This is only needed when using third-party inference providers selected by `mode
|
|
169
169
|
#
|
|
170
|
-
# @param mcp_servers [Array<Telnyx::Models::AI::
|
|
170
|
+
# @param mcp_servers [Array<Telnyx::Models::AI::AssistantMcpServer>] MCP servers attached to the assistant. Create MCP servers with `/ai/mcp_servers`
|
|
171
171
|
#
|
|
172
172
|
# @param messaging_settings [Telnyx::Models::AI::MessagingSettings]
|
|
173
173
|
#
|
|
@@ -47,7 +47,7 @@ module Telnyx
|
|
|
47
47
|
#
|
|
48
48
|
# @param conversation [String] Optional Telnyx Conversation ID from `POST /ai/conversations`. When provided, Te
|
|
49
49
|
#
|
|
50
|
-
# @param input [Object] The input items for this turn, using the OpenAI Responses API input format.
|
|
50
|
+
# @param input [Hash{Symbol=>Object}] The input items for this turn, using the OpenAI Responses API input format.
|
|
51
51
|
#
|
|
52
52
|
# @param instructions [String] Optional system/developer instructions for the model. When used with a persisted
|
|
53
53
|
#
|
data/lib/telnyx/resources/ai.rb
CHANGED
|
@@ -55,9 +55,9 @@ module Telnyx
|
|
|
55
55
|
# supported at the moment. Use the `conversation` parameter with a Telnyx
|
|
56
56
|
# Conversation ID to leverage persistent conversations.
|
|
57
57
|
#
|
|
58
|
-
# @overload create_response(
|
|
58
|
+
# @overload create_response(params:, request_options: {})
|
|
59
59
|
#
|
|
60
|
-
# @param
|
|
60
|
+
# @param params [Hash{Symbol=>Object}]
|
|
61
61
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
62
62
|
#
|
|
63
63
|
# @return [Hash{Symbol=>Object}]
|
|
@@ -68,7 +68,7 @@ module Telnyx
|
|
|
68
68
|
@client.request(
|
|
69
69
|
method: :post,
|
|
70
70
|
path: "ai/responses",
|
|
71
|
-
body: parsed[:
|
|
71
|
+
body: parsed[:params],
|
|
72
72
|
model: Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown],
|
|
73
73
|
options: options
|
|
74
74
|
)
|
|
@@ -347,7 +347,7 @@ module Telnyx
|
|
|
347
347
|
#
|
|
348
348
|
# @param voice [String] The voice to be used by the voice assistant. Currently we support ElevenLabs, Te
|
|
349
349
|
#
|
|
350
|
-
# @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::
|
|
350
|
+
# @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::XaiVoiceSettings] The settings associated with the voice selected
|
|
351
351
|
#
|
|
352
352
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
353
353
|
#
|
|
@@ -480,7 +480,7 @@ module Telnyx
|
|
|
480
480
|
#
|
|
481
481
|
# @param valid_digits [String] A list of all digits accepted as valid.
|
|
482
482
|
#
|
|
483
|
-
# @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::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld, Telnyx::Models::
|
|
483
|
+
# @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::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld, Telnyx::Models::XaiVoiceSettings] The settings associated with the voice selected
|
|
484
484
|
#
|
|
485
485
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
486
486
|
#
|
|
@@ -860,7 +860,7 @@ module Telnyx
|
|
|
860
860
|
#
|
|
861
861
|
# @param target_legs [Symbol, Telnyx::Models::Calls::ActionSpeakParams::TargetLegs] Specifies which legs of the call should receive the spoken audio.
|
|
862
862
|
#
|
|
863
|
-
# @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::Calls::ActionSpeakParams::VoiceSettings::Inworld, Telnyx::Models::
|
|
863
|
+
# @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::Calls::ActionSpeakParams::VoiceSettings::Inworld, Telnyx::Models::XaiVoiceSettings] The settings associated with the voice selected
|
|
864
864
|
#
|
|
865
865
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
866
866
|
#
|
|
@@ -912,7 +912,7 @@ module Telnyx
|
|
|
912
912
|
#
|
|
913
913
|
# @param voice [String] The voice to be used by the voice assistant. Currently we support ElevenLabs, Te
|
|
914
914
|
#
|
|
915
|
-
# @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::
|
|
915
|
+
# @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::XaiVoiceSettings] The settings associated with the voice selected
|
|
916
916
|
#
|
|
917
917
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
918
918
|
#
|
|
@@ -941,14 +941,14 @@ module Telnyx
|
|
|
941
941
|
#
|
|
942
942
|
# **Expected Webhooks:**
|
|
943
943
|
#
|
|
944
|
-
# - `
|
|
944
|
+
# - `call.conversation.ended` - Sent when the Conversation Relay session ends. If
|
|
945
|
+
# the customer WebSocket disconnects, the webhook payload `reason` is
|
|
946
|
+
# `customer_disconnect`.
|
|
945
947
|
#
|
|
946
|
-
# @overload start_conversation_relay(call_control_id,
|
|
948
|
+
# @overload start_conversation_relay(call_control_id, assistant: nil, client_state: nil, command_id: nil, conversation_relay_dtmf_detection: nil, conversation_relay_settings: nil, conversation_relay_url: nil, greeting: nil, interruption_settings: nil, language: nil, languages: nil, transcription: nil, transcription_language: nil, tts_language: nil, voice: nil, voice_settings: nil, request_options: {})
|
|
947
949
|
#
|
|
948
950
|
# @param call_control_id [String] Unique identifier and token for controlling the call
|
|
949
951
|
#
|
|
950
|
-
# @param conversation_relay_url [String] WebSocket URL for your Conversation Relay server. Must start with `ws://` or `ws
|
|
951
|
-
#
|
|
952
952
|
# @param assistant [Telnyx::Models::Calls::ActionStartConversationRelayParams::Assistant] Custom parameters for the Conversation Relay session. Pass key-value data as `as
|
|
953
953
|
#
|
|
954
954
|
# @param client_state [String] Use this field to add state to subsequent webhooks. It must be a valid Base-64 e
|
|
@@ -957,6 +957,10 @@ module Telnyx
|
|
|
957
957
|
#
|
|
958
958
|
# @param conversation_relay_dtmf_detection [Boolean] Enable DTMF detection for the relay session.
|
|
959
959
|
#
|
|
960
|
+
# @param conversation_relay_settings [Telnyx::Models::Calls::ActionStartConversationRelayParams::ConversationRelaySettings] Conversation Relay connection settings. This object is used by TeXML Call Script
|
|
961
|
+
#
|
|
962
|
+
# @param conversation_relay_url [String] WebSocket URL for your Conversation Relay server. Must start with `ws://` or `ws
|
|
963
|
+
#
|
|
960
964
|
# @param greeting [String] Text played when the relay session starts.
|
|
961
965
|
#
|
|
962
966
|
# @param interruption_settings [Telnyx::Models::Calls::ActionStartConversationRelayParams::InterruptionSettings] Settings for handling caller interruptions during Conversation Relay speech.
|
|
@@ -965,28 +969,22 @@ module Telnyx
|
|
|
965
969
|
#
|
|
966
970
|
# @param languages [Array<Telnyx::Models::Calls::ActionStartConversationRelayParams::Language>] Language-specific TTS and transcription settings. Use this when the relay sessio
|
|
967
971
|
#
|
|
968
|
-
# @param participants [Array<Telnyx::Models::Calls::ActionStartConversationRelayParams::Participant>] Participants to add to the conversation.
|
|
969
|
-
#
|
|
970
|
-
# @param send_message_history_updates [Boolean] When true, sends message history update webhooks.
|
|
971
|
-
#
|
|
972
972
|
# @param transcription [Telnyx::Models::Calls::ActionStartConversationRelayParams::Transcription] Speech-to-text settings for Conversation Relay.
|
|
973
973
|
#
|
|
974
974
|
# @param transcription_language [String] Language to use for speech recognition. Overrides `language` for transcription w
|
|
975
975
|
#
|
|
976
976
|
# @param tts_language [String] Language to use for text-to-speech. Overrides `language` for TTS when provided.
|
|
977
977
|
#
|
|
978
|
-
# @param user_response_timeout_ms [Integer] Time in milliseconds to wait for caller input before timing out.
|
|
979
|
-
#
|
|
980
978
|
# @param voice [String] The voice to be used by the voice assistant. Currently we support ElevenLabs, Te
|
|
981
979
|
#
|
|
982
|
-
# @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::
|
|
980
|
+
# @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::XaiVoiceSettings] The settings associated with the voice selected
|
|
983
981
|
#
|
|
984
982
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
985
983
|
#
|
|
986
984
|
# @return [Telnyx::Models::Calls::ActionStartConversationRelayResponse]
|
|
987
985
|
#
|
|
988
986
|
# @see Telnyx::Models::Calls::ActionStartConversationRelayParams
|
|
989
|
-
def start_conversation_relay(call_control_id, params)
|
|
987
|
+
def start_conversation_relay(call_control_id, params = {})
|
|
990
988
|
parsed, options = Telnyx::Calls::ActionStartConversationRelayParams.dump_request(params)
|
|
991
989
|
@client.request(
|
|
992
990
|
method: :post,
|
|
@@ -1323,7 +1321,7 @@ module Telnyx
|
|
|
1323
1321
|
#
|
|
1324
1322
|
# @param transcription_engine [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngine] Engine to use for speech recognition. Legacy values `A` - `Google`, `B` - `Telny
|
|
1325
1323
|
#
|
|
1326
|
-
# @param transcription_engine_config [Telnyx::Models::Calls::TranscriptionEngineGoogleConfig, Telnyx::Models::Calls::TranscriptionEngineTelnyxConfig, Telnyx::Models::Calls::TranscriptionEngineAzureConfig, Telnyx::Models::Calls::
|
|
1324
|
+
# @param transcription_engine_config [Telnyx::Models::Calls::TranscriptionEngineGoogleConfig, Telnyx::Models::Calls::TranscriptionEngineTelnyxConfig, Telnyx::Models::Calls::TranscriptionEngineAzureConfig, Telnyx::Models::Calls::TranscriptionEngineXaiConfig, Telnyx::Models::Calls::TranscriptionEngineAssemblyaiConfig, Telnyx::Models::Calls::TranscriptionEngineSpeechmaticsConfig, Telnyx::Models::Calls::TranscriptionEngineAConfig, Telnyx::Models::Calls::TranscriptionEngineBConfig, Telnyx::Models::Calls::DeepgramNova2Config, Telnyx::Models::Calls::DeepgramNova3Config]
|
|
1327
1325
|
#
|
|
1328
1326
|
# @param transcription_tracks [String] Indicates which leg of the call will be transcribed. Use `inbound` for the leg t
|
|
1329
1327
|
#
|
|
@@ -520,7 +520,7 @@ module Telnyx
|
|
|
520
520
|
#
|
|
521
521
|
# @param region [Symbol, Telnyx::Models::Conferences::ActionSpeakParams::Region] Region where the conference data is located. Defaults to the region defined in u
|
|
522
522
|
#
|
|
523
|
-
# @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::
|
|
523
|
+
# @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::XaiVoiceSettings] The settings associated with the voice selected
|
|
524
524
|
#
|
|
525
525
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
526
526
|
#
|
|
@@ -15,6 +15,18 @@ module Telnyx
|
|
|
15
15
|
# is bigger than 50MB or has more than 350 pages it will fail with
|
|
16
16
|
# `file_size_limit_exceeded` and `page_count_limit_exceeded` respectively.
|
|
17
17
|
#
|
|
18
|
+
# **Supported file formats:**
|
|
19
|
+
#
|
|
20
|
+
# - PDF (`application/pdf`)
|
|
21
|
+
# - TIFF (`application/tiff`, `image/tiff`)
|
|
22
|
+
# - JPEG (`image/jpeg`)
|
|
23
|
+
# - PNG (`image/png`)
|
|
24
|
+
# - Microsoft Word `.doc` (`application/msword`)
|
|
25
|
+
# - Microsoft Word `.docx`
|
|
26
|
+
# (`application/vnd.openxmlformats-officedocument.wordprocessingml.document`)
|
|
27
|
+
# - Rich Text Format `.rtf` (`application/rtf`)
|
|
28
|
+
# - Plain text `.txt` (`text/plain`)
|
|
29
|
+
#
|
|
18
30
|
# **Expected Webhooks:**
|
|
19
31
|
#
|
|
20
32
|
# - `fax.queued`
|
|
@@ -39,7 +51,7 @@ module Telnyx
|
|
|
39
51
|
#
|
|
40
52
|
# @param media_name [String] The media_name used for the fax's media. Must point to a file previously uploade
|
|
41
53
|
#
|
|
42
|
-
# @param media_url [String] The URL (or list of URLs) to the
|
|
54
|
+
# @param media_url [String] The URL (or list of URLs) to the fax document. Supported formats: PDF, TIFF, JPE
|
|
43
55
|
#
|
|
44
56
|
# @param monochrome [Boolean] The flag to enable monochrome, true black and white fax results.
|
|
45
57
|
#
|