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.
Files changed (261) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +17 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/models/ai/assistant_create_params.rb +9 -178
  5. data/lib/telnyx/models/ai/assistant_integration.rb +38 -0
  6. data/lib/telnyx/models/ai/assistant_mcp_server.rb +35 -0
  7. data/lib/telnyx/models/ai/assistant_tool.rb +14 -14
  8. data/lib/telnyx/models/ai/assistant_update_params.rb +9 -178
  9. data/lib/telnyx/models/ai/assistants/canary_deploy.rb +3 -123
  10. data/lib/telnyx/models/ai/assistants/canary_deploy_response.rb +3 -125
  11. data/lib/telnyx/models/ai/assistants/clause.rb +54 -0
  12. data/lib/telnyx/models/ai/assistants/rollout_slot.rb +27 -0
  13. data/lib/telnyx/models/ai/assistants/rule_input.rb +40 -0
  14. data/lib/telnyx/models/ai/assistants/rule_output.rb +40 -0
  15. data/lib/telnyx/models/ai/assistants/serve.rb +33 -0
  16. data/lib/telnyx/models/ai/assistants/update_assistant.rb +9 -179
  17. data/lib/telnyx/models/ai/inference_embedding.rb +9 -177
  18. data/lib/telnyx/models/ai/inference_embedding_interruption_settings.rb +47 -0
  19. data/lib/telnyx/models/ai/openai_create_response_params.rb +3 -3
  20. data/lib/telnyx/models/ai/openai_list_models_response.rb +3 -210
  21. data/lib/telnyx/models/ai/start_speaking_plan.rb +37 -0
  22. data/lib/telnyx/models/ai/transcription_endpointing_plan.rb +39 -0
  23. data/lib/telnyx/models/ai/transfer_tool.rb +7 -9
  24. data/lib/telnyx/models/ai_create_response_params.rb +4 -4
  25. data/lib/telnyx/models/ai_retrieve_models_response.rb +3 -210
  26. data/lib/telnyx/models/call_conversation_ended.rb +13 -1
  27. data/lib/telnyx/models/calls/action_gather_using_ai_params.rb +4 -23
  28. data/lib/telnyx/models/calls/action_gather_using_speak_params.rb +4 -23
  29. data/lib/telnyx/models/calls/action_speak_params.rb +4 -23
  30. data/lib/telnyx/models/calls/action_start_ai_assistant_params.rb +4 -23
  31. data/lib/telnyx/models/calls/action_start_conversation_relay_params.rb +169 -118
  32. data/lib/telnyx/models/calls/transcription_engine_assemblyai_config.rb +64 -0
  33. data/lib/telnyx/models/calls/transcription_engine_speechmatics_config.rb +100 -0
  34. data/lib/telnyx/models/calls/transcription_engine_xai_config.rb +108 -0
  35. data/lib/telnyx/models/calls/transcription_start_request.rb +8 -167
  36. data/lib/telnyx/models/conferences/action_speak_params.rb +4 -23
  37. data/lib/telnyx/models/fax.rb +7 -5
  38. data/lib/telnyx/models/fax_create_params.rb +7 -5
  39. data/lib/telnyx/models/fax_delivered.rb +3 -2
  40. data/lib/telnyx/models/fax_failed.rb +3 -2
  41. data/lib/telnyx/models/fax_media_processed.rb +3 -2
  42. data/lib/telnyx/models/fax_queued.rb +3 -2
  43. data/lib/telnyx/models/fax_sending_started.rb +3 -2
  44. data/lib/telnyx/models/model_metadata.rb +212 -0
  45. data/lib/telnyx/models/network_list_interfaces_response.rb +112 -2
  46. data/lib/telnyx/models/public_internet_gateway_create_response.rb +3 -8
  47. data/lib/telnyx/models/public_internet_gateway_delete_response.rb +3 -8
  48. data/lib/telnyx/models/public_internet_gateway_read.rb +83 -0
  49. data/lib/telnyx/models/public_internet_gateway_retrieve_response.rb +3 -8
  50. data/lib/telnyx/models/texml/accounts/call_calls_params.rb +62 -12
  51. data/lib/telnyx/models/texml_initiate_ai_call_params.rb +18 -4
  52. data/lib/telnyx/models/text_to_speech_generate_params.rb +6 -6
  53. data/lib/telnyx/models/uac_connection.rb +412 -0
  54. data/lib/telnyx/models/uac_connection_create_params.rb +9 -255
  55. data/lib/telnyx/models/uac_connection_create_response.rb +3 -878
  56. data/lib/telnyx/models/uac_connection_delete_response.rb +3 -878
  57. data/lib/telnyx/models/uac_connection_retrieve_response.rb +3 -879
  58. data/lib/telnyx/models/uac_connection_update_params.rb +9 -255
  59. data/lib/telnyx/models/uac_connection_update_response.rb +3 -878
  60. data/lib/telnyx/models/uac_external_settings.rb +101 -0
  61. data/lib/telnyx/models/uac_inbound.rb +210 -0
  62. data/lib/telnyx/models/uac_internal_settings.rb +25 -0
  63. data/lib/telnyx/models/uac_outbound.rb +131 -0
  64. data/lib/telnyx/models/virtual_cross_connect_combined.rb +212 -0
  65. data/lib/telnyx/models/virtual_cross_connect_create_response.rb +3 -8
  66. data/lib/telnyx/models/virtual_cross_connect_delete_response.rb +3 -8
  67. data/lib/telnyx/models/virtual_cross_connect_retrieve_response.rb +3 -8
  68. data/lib/telnyx/models/virtual_cross_connect_update_response.rb +3 -8
  69. data/lib/telnyx/models/wireguard_interface_create_response.rb +3 -8
  70. data/lib/telnyx/models/wireguard_interface_delete_response.rb +3 -8
  71. data/lib/telnyx/models/wireguard_interface_read.rb +136 -0
  72. data/lib/telnyx/models/wireguard_interface_retrieve_response.rb +3 -8
  73. data/lib/telnyx/models/xai_voice_settings.rb +36 -0
  74. data/lib/telnyx/models.rb +20 -0
  75. data/lib/telnyx/resources/ai/assistants/canary_deploys.rb +2 -2
  76. data/lib/telnyx/resources/ai/assistants/versions.rb +3 -3
  77. data/lib/telnyx/resources/ai/assistants.rb +6 -6
  78. data/lib/telnyx/resources/ai/openai.rb +1 -1
  79. data/lib/telnyx/resources/ai.rb +3 -3
  80. data/lib/telnyx/resources/calls/actions.rb +15 -17
  81. data/lib/telnyx/resources/conferences/actions.rb +1 -1
  82. data/lib/telnyx/resources/faxes.rb +13 -1
  83. data/lib/telnyx/resources/public_internet_gateways.rb +2 -2
  84. data/lib/telnyx/resources/texml.rb +4 -2
  85. data/lib/telnyx/resources/uac_connections.rb +8 -8
  86. data/lib/telnyx/resources/virtual_cross_connects.rb +2 -2
  87. data/lib/telnyx/resources/wireguard_interfaces.rb +2 -2
  88. data/lib/telnyx/version.rb +1 -1
  89. data/lib/telnyx.rb +23 -4
  90. data/rbi/telnyx/models/ai/assistant_create_params.rbi +12 -352
  91. data/rbi/telnyx/models/ai/assistant_integration.rbi +60 -0
  92. data/rbi/telnyx/models/ai/assistant_mcp_server.rbi +51 -0
  93. data/rbi/telnyx/models/ai/assistant_tool.rbi +10 -10
  94. data/rbi/telnyx/models/ai/assistant_update_params.rbi +12 -352
  95. data/rbi/telnyx/models/ai/assistants/canary_deploy.rbi +4 -290
  96. data/rbi/telnyx/models/ai/assistants/canary_deploy_response.rbi +3 -301
  97. data/rbi/telnyx/models/ai/assistants/clause.rbi +91 -0
  98. data/rbi/telnyx/models/ai/assistants/rollout_slot.rbi +36 -0
  99. data/rbi/telnyx/models/ai/assistants/rule_input.rbi +73 -0
  100. data/rbi/telnyx/models/ai/assistants/rule_output.rbi +73 -0
  101. data/rbi/telnyx/models/ai/assistants/serve.rbi +61 -0
  102. data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +12 -366
  103. data/rbi/telnyx/models/ai/inference_embedding.rbi +12 -351
  104. data/rbi/telnyx/models/ai/inference_embedding_interruption_settings.rbi +83 -0
  105. data/rbi/telnyx/models/ai/openai_create_response_params.rbi +4 -4
  106. data/rbi/telnyx/models/ai/openai_list_models_response.rbi +3 -315
  107. data/rbi/telnyx/models/ai/start_speaking_plan.rbi +70 -0
  108. data/rbi/telnyx/models/ai/transcription_endpointing_plan.rbi +71 -0
  109. data/rbi/telnyx/models/ai/transfer_tool.rbi +5 -5
  110. data/rbi/telnyx/models/ai_create_response_params.rbi +4 -4
  111. data/rbi/telnyx/models/ai_retrieve_models_response.rbi +3 -310
  112. data/rbi/telnyx/models/call_conversation_ended.rbi +10 -0
  113. data/rbi/telnyx/models/calls/action_gather_using_ai_params.rbi +5 -41
  114. data/rbi/telnyx/models/calls/action_gather_using_speak_params.rbi +5 -41
  115. data/rbi/telnyx/models/calls/action_speak_params.rbi +5 -41
  116. data/rbi/telnyx/models/calls/action_start_ai_assistant_params.rbi +5 -41
  117. data/rbi/telnyx/models/calls/action_start_conversation_relay_params.rbi +371 -254
  118. data/rbi/telnyx/models/calls/transcription_engine_assemblyai_config.rbi +155 -0
  119. data/rbi/telnyx/models/calls/transcription_engine_speechmatics_config.rbi +289 -0
  120. data/rbi/telnyx/models/calls/transcription_engine_xai_config.rbi +329 -0
  121. data/rbi/telnyx/models/calls/transcription_start_request.rbi +20 -480
  122. data/rbi/telnyx/models/conferences/action_speak_params.rbi +5 -41
  123. data/rbi/telnyx/models/fax.rbi +12 -8
  124. data/rbi/telnyx/models/fax_create_params.rbi +12 -8
  125. data/rbi/telnyx/models/fax_delivered.rbi +6 -4
  126. data/rbi/telnyx/models/fax_failed.rbi +6 -4
  127. data/rbi/telnyx/models/fax_media_processed.rbi +6 -4
  128. data/rbi/telnyx/models/fax_queued.rbi +6 -4
  129. data/rbi/telnyx/models/fax_sending_started.rbi +6 -4
  130. data/rbi/telnyx/models/model_metadata.rbi +272 -0
  131. data/rbi/telnyx/models/network_list_interfaces_response.rbi +181 -4
  132. data/rbi/telnyx/models/public_internet_gateway_create_response.rbi +6 -38
  133. data/rbi/telnyx/models/public_internet_gateway_delete_response.rbi +6 -38
  134. data/rbi/telnyx/models/public_internet_gateway_read.rbi +128 -0
  135. data/rbi/telnyx/models/public_internet_gateway_retrieve_response.rbi +6 -38
  136. data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +81 -9
  137. data/rbi/telnyx/models/texml_initiate_ai_call_params.rbi +27 -3
  138. data/rbi/telnyx/models/text_to_speech_generate_params.rbi +6 -6
  139. data/rbi/telnyx/models/uac_connection.rbi +684 -0
  140. data/rbi/telnyx/models/uac_connection_create_params.rbi +12 -516
  141. data/rbi/telnyx/models/uac_connection_create_response.rbi +4 -1756
  142. data/rbi/telnyx/models/uac_connection_delete_response.rbi +4 -1756
  143. data/rbi/telnyx/models/uac_connection_retrieve_response.rbi +4 -1756
  144. data/rbi/telnyx/models/uac_connection_update_params.rbi +12 -516
  145. data/rbi/telnyx/models/uac_connection_update_response.rbi +4 -1756
  146. data/rbi/telnyx/models/uac_external_settings.rbi +146 -0
  147. data/rbi/telnyx/models/uac_inbound.rbi +410 -0
  148. data/rbi/telnyx/models/uac_internal_settings.rbi +39 -0
  149. data/rbi/telnyx/models/uac_outbound.rbi +224 -0
  150. data/rbi/telnyx/models/virtual_cross_connect_combined.rbi +345 -0
  151. data/rbi/telnyx/models/virtual_cross_connect_create_response.rbi +6 -36
  152. data/rbi/telnyx/models/virtual_cross_connect_delete_response.rbi +6 -36
  153. data/rbi/telnyx/models/virtual_cross_connect_retrieve_response.rbi +6 -38
  154. data/rbi/telnyx/models/virtual_cross_connect_update_response.rbi +6 -36
  155. data/rbi/telnyx/models/wireguard_interface_create_response.rbi +6 -36
  156. data/rbi/telnyx/models/wireguard_interface_delete_response.rbi +6 -36
  157. data/rbi/telnyx/models/wireguard_interface_read.rbi +213 -0
  158. data/rbi/telnyx/models/wireguard_interface_retrieve_response.rbi +6 -36
  159. data/rbi/telnyx/models/xai_voice_settings.rbi +64 -0
  160. data/rbi/telnyx/models.rbi +20 -0
  161. data/rbi/telnyx/resources/ai/assistants/canary_deploys.rbi +2 -4
  162. data/rbi/telnyx/resources/ai/assistants/versions.rbi +3 -9
  163. data/rbi/telnyx/resources/ai/assistants.rbi +6 -10
  164. data/rbi/telnyx/resources/ai/openai.rbi +1 -1
  165. data/rbi/telnyx/resources/ai.rbi +2 -2
  166. data/rbi/telnyx/resources/calls/actions.rbi +24 -24
  167. data/rbi/telnyx/resources/conferences/actions.rbi +1 -1
  168. data/rbi/telnyx/resources/faxes.rbi +18 -4
  169. data/rbi/telnyx/resources/public_internet_gateways.rbi +1 -1
  170. data/rbi/telnyx/resources/texml.rbi +7 -1
  171. data/rbi/telnyx/resources/uac_connections.rbi +7 -13
  172. data/rbi/telnyx/resources/virtual_cross_connects.rbi +1 -1
  173. data/rbi/telnyx/resources/wireguard_interfaces.rbi +1 -1
  174. data/sig/telnyx/models/ai/assistant_create_params.rbs +18 -149
  175. data/sig/telnyx/models/ai/assistant_integration.rbs +26 -0
  176. data/sig/telnyx/models/ai/assistant_mcp_server.rbs +19 -0
  177. data/sig/telnyx/models/ai/assistant_tool.rbs +8 -8
  178. data/sig/telnyx/models/ai/assistant_update_params.rbs +18 -149
  179. data/sig/telnyx/models/ai/assistants/canary_deploy.rbs +6 -113
  180. data/sig/telnyx/models/ai/assistants/canary_deploy_response.rbs +4 -109
  181. data/sig/telnyx/models/ai/assistants/clause.rbs +46 -0
  182. data/sig/telnyx/models/ai/assistants/rollout_slot.rbs +19 -0
  183. data/sig/telnyx/models/ai/assistants/rule_input.rbs +33 -0
  184. data/sig/telnyx/models/ai/assistants/rule_output.rbs +33 -0
  185. data/sig/telnyx/models/ai/assistants/serve.rbs +35 -0
  186. data/sig/telnyx/models/ai/assistants/update_assistant.rbs +18 -152
  187. data/sig/telnyx/models/ai/inference_embedding.rbs +18 -149
  188. data/sig/telnyx/models/ai/inference_embedding_interruption_settings.rbs +40 -0
  189. data/sig/telnyx/models/ai/openai_create_response_params.rbs +5 -5
  190. data/sig/telnyx/models/ai/openai_list_models_response.rbs +4 -149
  191. data/sig/telnyx/models/ai/start_speaking_plan.rbs +33 -0
  192. data/sig/telnyx/models/ai/transcription_endpointing_plan.rbs +38 -0
  193. data/sig/telnyx/models/ai/transfer_tool.rbs +4 -4
  194. data/sig/telnyx/models/ai_create_response_params.rbs +5 -4
  195. data/sig/telnyx/models/ai_retrieve_models_response.rbs +4 -149
  196. data/sig/telnyx/models/call_conversation_ended.rbs +5 -0
  197. data/sig/telnyx/models/calls/action_gather_using_ai_params.rbs +1 -15
  198. data/sig/telnyx/models/calls/action_gather_using_speak_params.rbs +1 -15
  199. data/sig/telnyx/models/calls/action_speak_params.rbs +1 -15
  200. data/sig/telnyx/models/calls/action_start_ai_assistant_params.rbs +1 -15
  201. data/sig/telnyx/models/calls/action_start_conversation_relay_params.rbs +141 -102
  202. data/sig/telnyx/models/calls/transcription_engine_assemblyai_config.rbs +62 -0
  203. data/sig/telnyx/models/calls/transcription_engine_speechmatics_config.rbs +114 -0
  204. data/sig/telnyx/models/calls/transcription_engine_xai_config.rbs +130 -0
  205. data/sig/telnyx/models/calls/transcription_start_request.rbs +13 -185
  206. data/sig/telnyx/models/conferences/action_speak_params.rbs +1 -15
  207. data/sig/telnyx/models/model_metadata.rbs +142 -0
  208. data/sig/telnyx/models/network_list_interfaces_response.rbs +106 -4
  209. data/sig/telnyx/models/public_internet_gateway_create_response.rbs +6 -18
  210. data/sig/telnyx/models/public_internet_gateway_delete_response.rbs +6 -18
  211. data/sig/telnyx/models/public_internet_gateway_read.rbs +80 -0
  212. data/sig/telnyx/models/public_internet_gateway_retrieve_response.rbs +6 -18
  213. data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +27 -3
  214. data/sig/telnyx/models/texml_initiate_ai_call_params.rbs +9 -1
  215. data/sig/telnyx/models/text_to_speech_generate_params.rbs +6 -6
  216. data/sig/telnyx/models/uac_connection.rbs +338 -0
  217. data/sig/telnyx/models/uac_connection_create_params.rbs +17 -211
  218. data/sig/telnyx/models/uac_connection_create_response.rbs +5 -731
  219. data/sig/telnyx/models/uac_connection_delete_response.rbs +5 -731
  220. data/sig/telnyx/models/uac_connection_retrieve_response.rbs +5 -731
  221. data/sig/telnyx/models/uac_connection_update_params.rbs +17 -211
  222. data/sig/telnyx/models/uac_connection_update_response.rbs +5 -731
  223. data/sig/telnyx/models/uac_external_settings.rbs +73 -0
  224. data/sig/telnyx/models/uac_inbound.rbs +190 -0
  225. data/sig/telnyx/models/uac_internal_settings.rbs +15 -0
  226. data/sig/telnyx/models/uac_outbound.rbs +113 -0
  227. data/sig/telnyx/models/virtual_cross_connect_combined.rbs +190 -0
  228. data/sig/telnyx/models/virtual_cross_connect_create_response.rbs +6 -18
  229. data/sig/telnyx/models/virtual_cross_connect_delete_response.rbs +6 -18
  230. data/sig/telnyx/models/virtual_cross_connect_retrieve_response.rbs +6 -18
  231. data/sig/telnyx/models/virtual_cross_connect_update_response.rbs +6 -18
  232. data/sig/telnyx/models/wireguard_interface_create_response.rbs +6 -18
  233. data/sig/telnyx/models/wireguard_interface_delete_response.rbs +6 -18
  234. data/sig/telnyx/models/wireguard_interface_read.rbs +127 -0
  235. data/sig/telnyx/models/wireguard_interface_retrieve_response.rbs +6 -18
  236. data/sig/telnyx/models/xai_voice_settings.rbs +34 -0
  237. data/sig/telnyx/models.rbs +20 -0
  238. data/sig/telnyx/resources/ai/assistants/canary_deploys.rbs +2 -2
  239. data/sig/telnyx/resources/ai/assistants/versions.rbs +3 -3
  240. data/sig/telnyx/resources/ai/assistants.rbs +6 -6
  241. data/sig/telnyx/resources/ai/openai.rbs +1 -1
  242. data/sig/telnyx/resources/ai.rbs +1 -1
  243. data/sig/telnyx/resources/calls/actions.rbs +2 -4
  244. data/sig/telnyx/resources/public_internet_gateways.rbs +1 -1
  245. data/sig/telnyx/resources/texml.rbs +1 -0
  246. data/sig/telnyx/resources/uac_connections.rbs +7 -7
  247. data/sig/telnyx/resources/virtual_cross_connects.rbs +1 -1
  248. data/sig/telnyx/resources/wireguard_interfaces.rbs +1 -1
  249. metadata +71 -14
  250. data/lib/telnyx/models/public_internet_gateway_list_response.rb +0 -10
  251. data/lib/telnyx/models/uac_connection_list_response.rb +0 -876
  252. data/lib/telnyx/models/virtual_cross_connect_list_response.rb +0 -10
  253. data/lib/telnyx/models/wireguard_interface_list_response.rb +0 -10
  254. data/rbi/telnyx/models/public_internet_gateway_list_response.rbi +0 -23
  255. data/rbi/telnyx/models/uac_connection_list_response.rbi +0 -1727
  256. data/rbi/telnyx/models/virtual_cross_connect_list_response.rbi +0 -23
  257. data/rbi/telnyx/models/wireguard_interface_list_response.rbi +0 -23
  258. data/sig/telnyx/models/public_internet_gateway_list_response.rbs +0 -11
  259. data/sig/telnyx/models/uac_connection_list_response.rbs +0 -722
  260. data/sig/telnyx/models/virtual_cross_connect_list_response.rbs +0 -11
  261. 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::VirtualCrossConnectCreateResponse::Data, nil]
10
- optional :data, -> { Telnyx::Models::VirtualCrossConnectCreateResponse::Data }
9
+ # @return [Telnyx::Models::VirtualCrossConnectCombined, nil]
10
+ optional :data, -> { Telnyx::VirtualCrossConnectCombined }
11
11
 
12
12
  # @!method initialize(data: nil)
13
- # @param data [Telnyx::Models::VirtualCrossConnectCreateResponse::Data]
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::VirtualCrossConnectDeleteResponse::Data, nil]
10
- optional :data, -> { Telnyx::Models::VirtualCrossConnectDeleteResponse::Data }
9
+ # @return [Telnyx::Models::VirtualCrossConnectCombined, nil]
10
+ optional :data, -> { Telnyx::VirtualCrossConnectCombined }
11
11
 
12
12
  # @!method initialize(data: nil)
13
- # @param data [Telnyx::Models::VirtualCrossConnectDeleteResponse::Data]
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::VirtualCrossConnectRetrieveResponse::Data, nil]
10
- optional :data, -> { Telnyx::Models::VirtualCrossConnectRetrieveResponse::Data }
9
+ # @return [Telnyx::Models::VirtualCrossConnectCombined, nil]
10
+ optional :data, -> { Telnyx::VirtualCrossConnectCombined }
11
11
 
12
12
  # @!method initialize(data: nil)
13
- # @param data [Telnyx::Models::VirtualCrossConnectRetrieveResponse::Data]
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::VirtualCrossConnectUpdateResponse::Data, nil]
10
- optional :data, -> { Telnyx::Models::VirtualCrossConnectUpdateResponse::Data }
9
+ # @return [Telnyx::Models::VirtualCrossConnectCombined, nil]
10
+ optional :data, -> { Telnyx::VirtualCrossConnectCombined }
11
11
 
12
12
  # @!method initialize(data: nil)
13
- # @param data [Telnyx::Models::VirtualCrossConnectUpdateResponse::Data]
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::WireguardInterfaceCreateResponse::Data, nil]
10
- optional :data, -> { Telnyx::Models::WireguardInterfaceCreateResponse::Data }
9
+ # @return [Telnyx::Models::WireguardInterfaceRead, nil]
10
+ optional :data, -> { Telnyx::WireguardInterfaceRead }
11
11
 
12
12
  # @!method initialize(data: nil)
13
- # @param data [Telnyx::Models::WireguardInterfaceCreateResponse::Data]
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::WireguardInterfaceDeleteResponse::Data, nil]
10
- optional :data, -> { Telnyx::Models::WireguardInterfaceDeleteResponse::Data }
9
+ # @return [Telnyx::Models::WireguardInterfaceRead, nil]
10
+ optional :data, -> { Telnyx::WireguardInterfaceRead }
11
11
 
12
12
  # @!method initialize(data: nil)
13
- # @param data [Telnyx::Models::WireguardInterfaceDeleteResponse::Data]
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::WireguardInterfaceRetrieveResponse::Data, nil]
10
- optional :data, -> { Telnyx::Models::WireguardInterfaceRetrieveResponse::Data }
9
+ # @return [Telnyx::Models::WireguardInterfaceRead, nil]
10
+ optional :data, -> { Telnyx::WireguardInterfaceRead }
11
11
 
12
12
  # @!method initialize(data: nil)
13
- # @param data [Telnyx::Models::WireguardInterfaceRetrieveResponse::Data]
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::CanaryDeploy::Rule>]
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::CanaryDeploy::Rule>]
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::Assistants::UpdateAssistant::Integration>] Body param: Connected integrations attached to the assistant. The catalog of ava
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::Assistants::UpdateAssistant::InterruptionSettings] Body param: Settings for interruptions and how the assistant decides the user ha
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::Assistants::UpdateAssistant::McpServer>] Body param: MCP servers attached to the assistant. Create MCP servers with `/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::AssistantCreateParams::Integration>] Connected integrations attached to the assistant. The catalog of available integ
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::AssistantCreateParams::InterruptionSettings] Settings for interruptions and how the assistant decides the user has finished s
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::AssistantCreateParams::McpServer>] MCP servers attached to the assistant. Create MCP servers with `/ai/mcp_servers`
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::AssistantUpdateParams::Integration>] Connected integrations attached to the assistant. The catalog of available integ
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::AssistantUpdateParams::InterruptionSettings] Settings for interruptions and how the assistant decides the user has finished s
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::AssistantUpdateParams::McpServer>] MCP servers attached to the assistant. Create MCP servers with `/ai/mcp_servers`
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
  #
@@ -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(body:, request_options: {})
58
+ # @overload create_response(params:, request_options: {})
59
59
  #
60
- # @param body [Hash{Symbol=>Object}]
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[:body],
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::Calls::ActionGatherUsingAIParams::VoiceSettings::Xai] The settings associated with the voice selected
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::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Xai] The settings associated with the voice selected
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::Calls::ActionSpeakParams::VoiceSettings::Xai] The settings associated with the voice selected
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::Calls::ActionStartAIAssistantParams::VoiceSettings::Xai] The settings associated with the voice selected
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
- # - `conversation_relay.disconnected`
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, conversation_relay_url:, assistant: nil, client_state: nil, command_id: nil, conversation_relay_dtmf_detection: nil, greeting: nil, interruption_settings: nil, language: nil, languages: nil, participants: nil, send_message_history_updates: nil, transcription: nil, transcription_language: nil, tts_language: nil, user_response_timeout_ms: nil, voice: nil, voice_settings: nil, request_options: {})
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::Calls::ActionStartConversationRelayParams::VoiceSettings::Xai] The settings associated with the voice selected
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::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]
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::Conferences::ActionSpeakParams::VoiceSettings::Xai] The settings associated with the voice selected
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 PDF used for the fax's media. media_url and med
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
  #