telnyx 5.110.1 → 5.112.0

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