telnyx 5.168.0 → 5.169.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 (267) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/client.rb +40 -0
  5. data/lib/telnyx/internal/type/union.rb +6 -6
  6. data/lib/telnyx/models/ai/assistant_create_params.rb +6 -6
  7. data/lib/telnyx/models/ai/assistant_tool.rb +285 -12
  8. data/lib/telnyx/models/ai/assistant_update_params.rb +20 -9
  9. data/lib/telnyx/models/ai/assistants/update_assistant.rb +20 -9
  10. data/lib/telnyx/models/ai/audio_transcribe_params.rb +33 -13
  11. data/lib/telnyx/models/ai/audio_transcribe_response.rb +34 -56
  12. data/lib/telnyx/models/ai/audio_transcription_response_word.rb +74 -0
  13. data/lib/telnyx/models/ai/chat_completion_request.rb +3 -26
  14. data/lib/telnyx/models/ai/flow_node.rb +2 -2
  15. data/lib/telnyx/models/ai/inference_embedding.rb +13 -10
  16. data/lib/telnyx/models/ai/inference_embedding_interruption_settings.rb +10 -1
  17. data/lib/telnyx/models/ai/inference_embedding_webhook_tool_params.rb +21 -1
  18. data/lib/telnyx/models/ai/openai/function_definition.rb +31 -0
  19. data/lib/telnyx/models/ai/post_conversation_settings.rb +4 -4
  20. data/lib/telnyx/models/ai/post_conversation_settings_req.rb +4 -4
  21. data/lib/telnyx/models/ai/privacy_settings.rb +20 -1
  22. data/lib/telnyx/models/ai/retrieval_tool.rb +21 -1
  23. data/lib/telnyx/models/ai/telephony_settings.rb +86 -16
  24. data/lib/telnyx/models/ai/tool_node.rb +2 -2
  25. data/lib/telnyx/models/ai/transcription_settings.rb +12 -4
  26. data/lib/telnyx/models/ai/transcription_settings_config.rb +12 -11
  27. data/lib/telnyx/models/ai/typesafe/v1_systemone_params.rb +268 -0
  28. data/lib/telnyx/models/ai/typesafe/v1_systemone_response.rb +222 -0
  29. data/lib/telnyx/models/bot_challenge_create_params.rb +38 -0
  30. data/lib/telnyx/models/bot_challenge_create_response.rb +87 -0
  31. data/lib/telnyx/models/bot_session_list_params.rb +34 -0
  32. data/lib/telnyx/models/bot_session_list_response.rb +32 -0
  33. data/lib/telnyx/models/bot_signup_create_params.rb +103 -0
  34. data/lib/telnyx/models/bot_signup_resend_magic_link_params.rb +22 -0
  35. data/lib/telnyx/models/call_dial_params.rb +75 -7
  36. data/lib/telnyx/models/calls/action_transfer_params.rb +75 -7
  37. data/lib/telnyx/models/calls/transcription_config.rb +14 -3
  38. data/lib/telnyx/models/calls/transcription_engine_assemblyai_config.rb +6 -3
  39. data/lib/telnyx/models/calls/transcription_engine_parakeet_config.rb +1 -0
  40. data/lib/telnyx/models/compute/funcs/export_create_params.rb +62 -0
  41. data/lib/telnyx/models/compute/funcs/export_delete_all_params.rb +24 -0
  42. data/lib/telnyx/models/compute/funcs/export_list_params.rb +24 -0
  43. data/lib/telnyx/models/compute/funcs/func_log_export_config_response.rb +113 -0
  44. data/lib/telnyx/models/connection_retrieve_count_params.rb +14 -0
  45. data/lib/telnyx/models/connection_retrieve_count_response.rb +215 -0
  46. data/lib/telnyx/models/detail_record_list_params.rb +19 -2
  47. data/lib/telnyx/models/inbound_message_webhook_event.rb +3 -70
  48. data/lib/telnyx/models/machine_payment_account_credit_params.rb +29 -0
  49. data/lib/telnyx/models/machine_payment_account_credit_response.rb +223 -0
  50. data/lib/telnyx/models/message_retrieve_group_messages_response.rb +3 -3
  51. data/lib/telnyx/models/message_retrieve_response.rb +4 -4
  52. data/lib/telnyx/models/message_schedule_response.rb +3 -3
  53. data/lib/telnyx/models/message_send_group_mms_response.rb +3 -3
  54. data/lib/telnyx/models/message_send_long_code_response.rb +3 -3
  55. data/lib/telnyx/models/message_send_number_pool_response.rb +3 -3
  56. data/lib/telnyx/models/message_send_response.rb +3 -3
  57. data/lib/telnyx/models/message_send_short_code_response.rb +3 -3
  58. data/lib/telnyx/models/messaging_inbound_message.rb +71 -0
  59. data/lib/telnyx/models/messaging_inbound_message_payload.rb +216 -13
  60. data/lib/telnyx/models/messaging_outbound_message_payload.rb +42 -2
  61. data/lib/telnyx/models/noise_suppression_engine_list_params.rb +14 -0
  62. data/lib/telnyx/models/noise_suppression_engine_list_response.rb +50 -0
  63. data/lib/telnyx/models/number_order_status_update.rb +15 -3
  64. data/lib/telnyx/models/number_order_status_update_webhook_event.rb +15 -3
  65. data/lib/telnyx/models/outbound_message.rb +1 -0
  66. data/lib/telnyx/models/outbound_message_payload.rb +45 -5
  67. data/lib/telnyx/models/speech_to_text_retrieve_transcription_params.rb +1 -0
  68. data/lib/telnyx/models/success_response.rb +27 -0
  69. data/lib/telnyx/models/texml/accounts/call_calls_params.rb +246 -3
  70. data/lib/telnyx/models/texml/accounts/conferences/participant_participants_params.rb +82 -1
  71. data/lib/telnyx/models/texml/call_create_params.rb +78 -0
  72. data/lib/telnyx/models/texml/call_create_response.rb +55 -0
  73. data/lib/telnyx/models/texml_initiate_ai_call_params.rb +76 -1
  74. data/lib/telnyx/models/voice_clone_create_from_upload_params.rb +2 -2
  75. data/lib/telnyx/models.rb +18 -0
  76. data/lib/telnyx/resources/ai/assistants/versions.rb +1 -1
  77. data/lib/telnyx/resources/ai/assistants.rb +2 -2
  78. data/lib/telnyx/resources/ai/audio.rb +2 -2
  79. data/lib/telnyx/resources/ai/typesafe/v1.rb +62 -0
  80. data/lib/telnyx/resources/ai/typesafe.rb +22 -0
  81. data/lib/telnyx/resources/ai.rb +4 -0
  82. data/lib/telnyx/resources/bot_challenge.rb +53 -0
  83. data/lib/telnyx/resources/bot_sessions.rb +57 -0
  84. data/lib/telnyx/resources/bot_signup.rb +97 -0
  85. data/lib/telnyx/resources/calls/actions.rb +1 -1
  86. data/lib/telnyx/resources/calls.rb +1 -1
  87. data/lib/telnyx/resources/compute/funcs/export.rb +105 -0
  88. data/lib/telnyx/resources/compute/funcs.rb +4 -0
  89. data/lib/telnyx/resources/connections.rb +20 -0
  90. data/lib/telnyx/resources/detail_records.rb +1 -1
  91. data/lib/telnyx/resources/email_messages.rb +5 -3
  92. data/lib/telnyx/resources/machine_payments.rb +73 -0
  93. data/lib/telnyx/resources/noise_suppression_engines.rb +37 -0
  94. data/lib/telnyx/resources/texml/accounts/conferences/participants.rb +15 -1
  95. data/lib/telnyx/resources/texml/calls.rb +57 -0
  96. data/lib/telnyx/resources/texml.rb +20 -1
  97. data/lib/telnyx/resources/voice_clones.rb +4 -2
  98. data/lib/telnyx/version.rb +1 -1
  99. data/lib/telnyx.rb +33 -0
  100. data/rbi/telnyx/client.rbi +35 -0
  101. data/rbi/telnyx/models/ai/assistant_create_params.rbi +16 -12
  102. data/rbi/telnyx/models/ai/assistant_tool.rbi +423 -20
  103. data/rbi/telnyx/models/ai/assistant_update_params.rbi +42 -16
  104. data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +42 -16
  105. data/rbi/telnyx/models/ai/audio_transcribe_params.rbi +71 -20
  106. data/rbi/telnyx/models/ai/audio_transcribe_response.rbi +63 -97
  107. data/rbi/telnyx/models/ai/audio_transcription_response_word.rbi +108 -0
  108. data/rbi/telnyx/models/ai/chat_completion_request.rbi +4 -58
  109. data/rbi/telnyx/models/ai/flow_node.rbi +4 -2
  110. data/rbi/telnyx/models/ai/inference_embedding.rbi +24 -16
  111. data/rbi/telnyx/models/ai/inference_embedding_interruption_settings.rbi +10 -0
  112. data/rbi/telnyx/models/ai/inference_embedding_webhook_tool_params.rbi +29 -3
  113. data/rbi/telnyx/models/ai/openai/function_definition.rbi +56 -0
  114. data/rbi/telnyx/models/ai/post_conversation_settings.rbi +4 -4
  115. data/rbi/telnyx/models/ai/post_conversation_settings_req.rbi +4 -4
  116. data/rbi/telnyx/models/ai/privacy_settings.rbi +43 -3
  117. data/rbi/telnyx/models/ai/retrieval_tool.rbi +29 -3
  118. data/rbi/telnyx/models/ai/telephony_settings.rbi +174 -20
  119. data/rbi/telnyx/models/ai/tool_node.rbi +4 -2
  120. data/rbi/telnyx/models/ai/transcription_settings.rbi +25 -6
  121. data/rbi/telnyx/models/ai/transcription_settings_config.rbi +18 -16
  122. data/rbi/telnyx/models/ai/typesafe/v1_systemone_params.rbi +504 -0
  123. data/rbi/telnyx/models/ai/typesafe/v1_systemone_response.rbi +348 -0
  124. data/rbi/telnyx/models/bot_challenge_create_params.rbi +68 -0
  125. data/rbi/telnyx/models/bot_challenge_create_response.rbi +169 -0
  126. data/rbi/telnyx/models/bot_session_list_params.rbi +53 -0
  127. data/rbi/telnyx/models/bot_session_list_response.rbi +64 -0
  128. data/rbi/telnyx/models/bot_signup_create_params.rbi +179 -0
  129. data/rbi/telnyx/models/bot_signup_resend_magic_link_params.rbi +43 -0
  130. data/rbi/telnyx/models/call_dial_params.rbi +111 -10
  131. data/rbi/telnyx/models/calls/action_transfer_params.rbi +111 -10
  132. data/rbi/telnyx/models/calls/transcription_config.rbi +29 -5
  133. data/rbi/telnyx/models/calls/transcription_engine_assemblyai_config.rbi +11 -3
  134. data/rbi/telnyx/models/calls/transcription_engine_parakeet_config.rbi +5 -0
  135. data/rbi/telnyx/models/compute/funcs/export_create_params.rbi +84 -0
  136. data/rbi/telnyx/models/compute/funcs/export_delete_all_params.rbi +42 -0
  137. data/rbi/telnyx/models/compute/funcs/export_list_params.rbi +42 -0
  138. data/rbi/telnyx/models/compute/funcs/func_log_export_config_response.rbi +227 -0
  139. data/rbi/telnyx/models/connection_retrieve_count_params.rbi +30 -0
  140. data/rbi/telnyx/models/connection_retrieve_count_response.rbi +353 -0
  141. data/rbi/telnyx/models/detail_record_list_params.rbi +30 -2
  142. data/rbi/telnyx/models/inbound_message_webhook_event.rbi +4 -173
  143. data/rbi/telnyx/models/machine_payment_account_credit_params.rbi +51 -0
  144. data/rbi/telnyx/models/machine_payment_account_credit_response.rbi +446 -0
  145. data/rbi/telnyx/models/message_retrieve_group_messages_response.rbi +6 -12
  146. data/rbi/telnyx/models/message_retrieve_response.rbi +3 -3
  147. data/rbi/telnyx/models/message_schedule_response.rbi +4 -6
  148. data/rbi/telnyx/models/message_send_group_mms_response.rbi +4 -6
  149. data/rbi/telnyx/models/message_send_long_code_response.rbi +4 -6
  150. data/rbi/telnyx/models/message_send_number_pool_response.rbi +4 -6
  151. data/rbi/telnyx/models/message_send_response.rbi +4 -6
  152. data/rbi/telnyx/models/message_send_short_code_response.rbi +4 -6
  153. data/rbi/telnyx/models/messaging_inbound_message.rbi +152 -0
  154. data/rbi/telnyx/models/messaging_inbound_message_payload.rbi +477 -15
  155. data/rbi/telnyx/models/messaging_outbound_message_payload.rbi +90 -16
  156. data/rbi/telnyx/models/noise_suppression_engine_list_params.rbi +30 -0
  157. data/rbi/telnyx/models/noise_suppression_engine_list_response.rbi +94 -0
  158. data/rbi/telnyx/models/number_order_status_update.rbi +34 -3
  159. data/rbi/telnyx/models/number_order_status_update_webhook_event.rbi +39 -3
  160. data/rbi/telnyx/models/outbound_message.rbi +5 -0
  161. data/rbi/telnyx/models/outbound_message_payload.rbi +74 -4
  162. data/rbi/telnyx/models/speech_to_text_retrieve_transcription_params.rbi +5 -0
  163. data/rbi/telnyx/models/success_response.rbi +36 -0
  164. data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +339 -0
  165. data/rbi/telnyx/models/texml/accounts/conferences/participant_participants_params.rbi +111 -0
  166. data/rbi/telnyx/models/texml/call_create_params.rbi +124 -0
  167. data/rbi/telnyx/models/texml/call_create_response.rbi +98 -0
  168. data/rbi/telnyx/models/texml_initiate_ai_call_params.rbi +103 -0
  169. data/rbi/telnyx/models/voice_clone_create_from_upload_params.rbi +4 -4
  170. data/rbi/telnyx/models.rbi +21 -0
  171. data/rbi/telnyx/resources/ai/assistants/versions.rbi +19 -7
  172. data/rbi/telnyx/resources/ai/assistants.rbi +25 -12
  173. data/rbi/telnyx/resources/ai/audio.rbi +20 -9
  174. data/rbi/telnyx/resources/ai/typesafe/v1.rbi +61 -0
  175. data/rbi/telnyx/resources/ai/typesafe.rbi +19 -0
  176. data/rbi/telnyx/resources/ai.rbi +3 -0
  177. data/rbi/telnyx/resources/bot_challenge.rbi +45 -0
  178. data/rbi/telnyx/resources/bot_sessions.rbi +45 -0
  179. data/rbi/telnyx/resources/bot_signup.rbi +87 -0
  180. data/rbi/telnyx/resources/calls/actions.rbi +6 -5
  181. data/rbi/telnyx/resources/calls.rbi +6 -5
  182. data/rbi/telnyx/resources/compute/funcs/export.rbi +86 -0
  183. data/rbi/telnyx/resources/compute/funcs.rbi +3 -0
  184. data/rbi/telnyx/resources/connections.rbi +11 -0
  185. data/rbi/telnyx/resources/detail_records.rbi +12 -1
  186. data/rbi/telnyx/resources/email_messages.rbi +5 -3
  187. data/rbi/telnyx/resources/machine_payments.rbi +64 -0
  188. data/rbi/telnyx/resources/noise_suppression_engines.rbi +26 -0
  189. data/rbi/telnyx/resources/texml/accounts/conferences/participants.rbi +32 -0
  190. data/rbi/telnyx/resources/texml/calls.rbi +50 -0
  191. data/rbi/telnyx/resources/texml.rbi +36 -0
  192. data/rbi/telnyx/resources/voice_clones.rbi +4 -2
  193. data/sig/telnyx/client.rbs +10 -0
  194. data/sig/telnyx/models/ai/assistant_tool.rbs +162 -23
  195. data/sig/telnyx/models/ai/audio_transcribe_params.rbs +10 -0
  196. data/sig/telnyx/models/ai/audio_transcribe_response.rbs +29 -43
  197. data/sig/telnyx/models/ai/audio_transcription_response_word.rbs +60 -0
  198. data/sig/telnyx/models/ai/chat_completion_request.rbs +4 -35
  199. data/sig/telnyx/models/ai/inference_embedding_interruption_settings.rbs +5 -0
  200. data/sig/telnyx/models/ai/inference_embedding_webhook_tool_params.rbs +10 -3
  201. data/sig/telnyx/models/ai/openai/function_definition.rbs +34 -0
  202. data/sig/telnyx/models/ai/privacy_settings.rbs +11 -3
  203. data/sig/telnyx/models/ai/retrieval_tool.rbs +10 -3
  204. data/sig/telnyx/models/ai/telephony_settings.rbs +52 -4
  205. data/sig/telnyx/models/ai/transcription_settings.rbs +4 -0
  206. data/sig/telnyx/models/ai/typesafe/v1_systemone_params.rbs +195 -0
  207. data/sig/telnyx/models/ai/typesafe/v1_systemone_response.rbs +141 -0
  208. data/sig/telnyx/models/bot_challenge_create_params.rbs +42 -0
  209. data/sig/telnyx/models/bot_challenge_create_response.rbs +72 -0
  210. data/sig/telnyx/models/bot_session_list_params.rbs +28 -0
  211. data/sig/telnyx/models/bot_session_list_response.rbs +26 -0
  212. data/sig/telnyx/models/bot_signup_create_params.rbs +89 -0
  213. data/sig/telnyx/models/bot_signup_resend_magic_link_params.rbs +20 -0
  214. data/sig/telnyx/models/call_dial_params.rbs +49 -0
  215. data/sig/telnyx/models/calls/action_transfer_params.rbs +49 -0
  216. data/sig/telnyx/models/calls/transcription_config.rbs +4 -0
  217. data/sig/telnyx/models/calls/transcription_engine_assemblyai_config.rbs +3 -1
  218. data/sig/telnyx/models/calls/transcription_engine_parakeet_config.rbs +3 -1
  219. data/sig/telnyx/models/compute/funcs/export_create_params.rbs +50 -0
  220. data/sig/telnyx/models/compute/funcs/export_delete_all_params.rbs +27 -0
  221. data/sig/telnyx/models/compute/funcs/export_list_params.rbs +27 -0
  222. data/sig/telnyx/models/compute/funcs/func_log_export_config_response.rbs +115 -0
  223. data/sig/telnyx/models/connection_retrieve_count_params.rbs +15 -0
  224. data/sig/telnyx/models/connection_retrieve_count_response.rbs +169 -0
  225. data/sig/telnyx/models/inbound_message_webhook_event.rbs +6 -79
  226. data/sig/telnyx/models/machine_payment_account_credit_params.rbs +23 -0
  227. data/sig/telnyx/models/machine_payment_account_credit_response.rbs +164 -0
  228. data/sig/telnyx/models/message_retrieve_group_messages_response.rbs +6 -8
  229. data/sig/telnyx/models/message_retrieve_response.rbs +1 -2
  230. data/sig/telnyx/models/message_schedule_response.rbs +6 -7
  231. data/sig/telnyx/models/message_send_group_mms_response.rbs +6 -6
  232. data/sig/telnyx/models/message_send_long_code_response.rbs +6 -6
  233. data/sig/telnyx/models/message_send_number_pool_response.rbs +6 -6
  234. data/sig/telnyx/models/message_send_response.rbs +6 -7
  235. data/sig/telnyx/models/message_send_short_code_response.rbs +6 -6
  236. data/sig/telnyx/models/messaging_inbound_message.rbs +76 -0
  237. data/sig/telnyx/models/messaging_inbound_message_payload.rbs +235 -6
  238. data/sig/telnyx/models/messaging_outbound_message_payload.rbs +39 -1
  239. data/sig/telnyx/models/noise_suppression_engine_list_params.rbs +15 -0
  240. data/sig/telnyx/models/noise_suppression_engine_list_response.rbs +43 -0
  241. data/sig/telnyx/models/number_order_status_update.rbs +14 -4
  242. data/sig/telnyx/models/number_order_status_update_webhook_event.rbs +14 -4
  243. data/sig/telnyx/models/outbound_message.rbs +2 -1
  244. data/sig/telnyx/models/outbound_message_payload.rbs +45 -7
  245. data/sig/telnyx/models/speech_to_text_retrieve_transcription_params.rbs +2 -0
  246. data/sig/telnyx/models/success_response.rbs +15 -0
  247. data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +159 -0
  248. data/sig/telnyx/models/texml/accounts/conferences/participant_participants_params.rbs +49 -0
  249. data/sig/telnyx/models/texml/call_create_params.rbs +72 -0
  250. data/sig/telnyx/models/texml/call_create_response.rbs +47 -0
  251. data/sig/telnyx/models/texml_initiate_ai_call_params.rbs +49 -0
  252. data/sig/telnyx/models.rbs +18 -0
  253. data/sig/telnyx/resources/ai/typesafe/v1.rbs +17 -0
  254. data/sig/telnyx/resources/ai/typesafe.rbs +11 -0
  255. data/sig/telnyx/resources/ai.rbs +2 -0
  256. data/sig/telnyx/resources/bot_challenge.rbs +14 -0
  257. data/sig/telnyx/resources/bot_sessions.rbs +13 -0
  258. data/sig/telnyx/resources/bot_signup.rbs +24 -0
  259. data/sig/telnyx/resources/compute/funcs/export.rbs +30 -0
  260. data/sig/telnyx/resources/compute/funcs.rbs +2 -0
  261. data/sig/telnyx/resources/connections.rbs +4 -0
  262. data/sig/telnyx/resources/machine_payments.rbs +12 -0
  263. data/sig/telnyx/resources/noise_suppression_engines.rbs +11 -0
  264. data/sig/telnyx/resources/texml/accounts/conferences/participants.rbs +7 -0
  265. data/sig/telnyx/resources/texml/calls.rbs +19 -0
  266. data/sig/telnyx/resources/texml.rbs +9 -0
  267. metadata +101 -2
@@ -4,6 +4,10 @@ module Telnyx
4
4
  module Resources
5
5
  # TeXML REST Commands
6
6
  class Texml
7
+ # TeXML REST Commands
8
+ sig { returns(Telnyx::Resources::Texml::Calls) }
9
+ attr_reader :calls
10
+
7
11
  # TeXML REST Commands
8
12
  sig { returns(Telnyx::Resources::Texml::Accounts) }
9
13
  attr_reader :accounts
@@ -46,8 +50,15 @@ module Telnyx
46
50
  Telnyx::TexmlInitiateAICallParams::DetectionMode::OrSymbol,
47
51
  machine_detection:
48
52
  Telnyx::TexmlInitiateAICallParams::MachineDetection::OrSymbol,
53
+ machine_detection_beep_max_frequency: Integer,
54
+ machine_detection_beep_min_frequency: Integer,
55
+ machine_detection_beep_min_tone_duration: Integer,
49
56
  machine_detection_beep_profile:
50
57
  Telnyx::TexmlInitiateAICallParams::MachineDetectionBeepProfile::OrSymbol,
58
+ machine_detection_beep_spectral_confirmation: T::Boolean,
59
+ machine_detection_beep_spectral_min_purity: Float,
60
+ machine_detection_beep_spectral_reject_fax_cng: T::Boolean,
61
+ machine_detection_beep_spectral_window: Integer,
51
62
  machine_detection_prompt_end_timeout: Integer,
52
63
  machine_detection_silence_timeout: Integer,
53
64
  machine_detection_speech_end_threshold: Integer,
@@ -124,11 +135,36 @@ module Telnyx
124
135
  detection_mode: nil,
125
136
  # Enables Answering Machine Detection.
126
137
  machine_detection: nil,
138
+ # Highest frequency, in Hz, that a tone can reach and still be treated as a beep.
139
+ # Only used when MachineDetection is enabled.
140
+ machine_detection_beep_max_frequency: nil,
141
+ # Lowest frequency, in Hz, that a tone must reach to be treated as a beep. Raising
142
+ # it above 480 excludes North American ringback (440 + 480 Hz), which can
143
+ # otherwise be reported as a beep when the `freq_only` profile is in use. Only
144
+ # used when MachineDetection is enabled.
145
+ machine_detection_beep_min_frequency: nil,
146
+ # Shortest tone, in milliseconds, that can be treated as a beep. Raising it
147
+ # rejects brief tones such as call-progress blips. Only used when MachineDetection
148
+ # is enabled.
149
+ machine_detection_beep_min_tone_duration: nil,
127
150
  # Selects which detectors must validate a beep. `both` requires the amplitude and
128
151
  # frequency detectors to agree. `freq_only` uses the frequency detector alone, for
129
152
  # beeps whose volume is too unsteady for the default profile. Only used when
130
153
  # MachineDetection is enabled.
131
154
  machine_detection_beep_profile: nil,
155
+ # When enabled, a candidate beep must pass an additional spectral check before it
156
+ # is reported. Only used when MachineDetection is enabled.
157
+ machine_detection_beep_spectral_confirmation: nil,
158
+ # Minimum spectral purity, from 0 to 1, for a tone to be treated as a beep.
159
+ # Raising it rejects mixed tones such as ringback, which combines two frequencies.
160
+ # Only used when MachineDetection is enabled.
161
+ machine_detection_beep_spectral_min_purity: nil,
162
+ # When enabled, the fax CNG tone is rejected rather than reported as a beep. Only
163
+ # used when MachineDetection is enabled.
164
+ machine_detection_beep_spectral_reject_fax_cng: nil,
165
+ # Length of the spectral confirmation window, in milliseconds. Only used when
166
+ # MachineDetection is enabled.
167
+ machine_detection_beep_spectral_window: nil,
132
168
  # Silence duration threshold after a call screening prompt before ending prompt
133
169
  # detection, in milliseconds. Used when `DetectionMode` is `PremiumCallScreening`.
134
170
  machine_detection_prompt_end_timeout: nil,
@@ -88,8 +88,10 @@ module Telnyx
88
88
  end
89
89
 
90
90
  # Creates a new voice clone by uploading an audio file directly. Supported
91
- # formats: WAV, MP3, FLAC, OGG, M4A. For best results, provide 5–10 seconds of
92
- # clear speech. Maximum file size: 5MB for Telnyx, 20MB for Minimax.
91
+ # formats: WAV, MP3, FLAC, OGG, M4A. For best results, provide 5–60 seconds of
92
+ # clear speech (Ultra accepts up to 60 seconds; Qwen3TTS auto-trims to 10 seconds;
93
+ # Minimax accepts up to 5 minutes). Maximum file size: 5MB for Telnyx, 20MB for
94
+ # Minimax.
93
95
  sig do
94
96
  params(
95
97
  voice_clone_upload_request:
@@ -382,6 +382,16 @@ module Telnyx
382
382
 
383
383
  attr_reader compute: Telnyx::Resources::Compute
384
384
 
385
+ attr_reader noise_suppression_engines: Telnyx::Resources::NoiseSuppressionEngines
386
+
387
+ attr_reader bot_challenge: Telnyx::Resources::BotChallenge
388
+
389
+ attr_reader bot_sessions: Telnyx::Resources::BotSessions
390
+
391
+ attr_reader bot_signup: Telnyx::Resources::BotSignup
392
+
393
+ attr_reader machine_payments: Telnyx::Resources::MachinePayments
394
+
385
395
  private def auth_headers: -> ::Hash[String, String]
386
396
 
387
397
  private def bearer_auth: -> ::Hash[String, String]
@@ -2,11 +2,12 @@ module Telnyx
2
2
  module Models
3
3
  module AI
4
4
  type assistant_tool =
5
- Telnyx::AI::InferenceEmbeddingWebhookToolParams
5
+ Telnyx::AI::AssistantTool::Function
6
+ | Telnyx::AI::InferenceEmbeddingWebhookToolParams
6
7
  | Telnyx::AI::AssistantTool::ClientSideTool
7
8
  | Telnyx::AI::RetrievalTool
8
9
  | Telnyx::AI::AssistantTool::Handoff
9
- | Telnyx::AI::HangupTool
10
+ | Telnyx::AI::AssistantTool::Hangup
10
11
  | Telnyx::AI::AssistantTool::Transfer
11
12
  | Telnyx::AI::AssistantTool::Invite
12
13
  | Telnyx::AI::AssistantTool::Refer
@@ -19,10 +20,40 @@ module Telnyx
19
20
  module AssistantTool
20
21
  extend Telnyx::Internal::Type::Union
21
22
 
23
+ type function =
24
+ {
25
+ function: Telnyx::AI::OpenAI::FunctionDefinition,
26
+ type: :function,
27
+ shared: bool
28
+ }
29
+
30
+ class Function < Telnyx::Internal::Type::BaseModel
31
+ attr_accessor function: Telnyx::AI::OpenAI::FunctionDefinition
32
+
33
+ attr_accessor type: :function
34
+
35
+ attr_reader shared: bool?
36
+
37
+ def shared=: (bool) -> bool
38
+
39
+ def initialize: (
40
+ function: Telnyx::AI::OpenAI::FunctionDefinition,
41
+ ?shared: bool,
42
+ ?type: :function
43
+ ) -> void
44
+
45
+ def to_hash: -> {
46
+ function: Telnyx::AI::OpenAI::FunctionDefinition,
47
+ type: :function,
48
+ shared: bool
49
+ }
50
+ end
51
+
22
52
  type client_side_tool =
23
53
  {
24
54
  client_side_tool: Telnyx::AI::AssistantTool::ClientSideTool::ClientSideTool,
25
- type: :client_side_tool
55
+ type: :client_side_tool,
56
+ shared: bool
26
57
  }
27
58
 
28
59
  class ClientSideTool < Telnyx::Internal::Type::BaseModel
@@ -30,14 +61,20 @@ module Telnyx
30
61
 
31
62
  attr_accessor type: :client_side_tool
32
63
 
64
+ attr_reader shared: bool?
65
+
66
+ def shared=: (bool) -> bool
67
+
33
68
  def initialize: (
34
69
  client_side_tool: Telnyx::AI::AssistantTool::ClientSideTool::ClientSideTool,
70
+ ?shared: bool,
35
71
  ?type: :client_side_tool
36
72
  ) -> void
37
73
 
38
74
  def to_hash: -> {
39
75
  client_side_tool: Telnyx::AI::AssistantTool::ClientSideTool::ClientSideTool,
40
- type: :client_side_tool
76
+ type: :client_side_tool,
77
+ shared: bool
41
78
  }
42
79
 
43
80
  type client_side_tool =
@@ -116,7 +153,8 @@ module Telnyx
116
153
  type handoff =
117
154
  {
118
155
  handoff: Telnyx::AI::AssistantTool::Handoff::Handoff,
119
- type: :handoff
156
+ type: :handoff,
157
+ shared: bool
120
158
  }
121
159
 
122
160
  class Handoff < Telnyx::Internal::Type::BaseModel
@@ -124,14 +162,20 @@ module Telnyx
124
162
 
125
163
  attr_accessor type: :handoff
126
164
 
165
+ attr_reader shared: bool?
166
+
167
+ def shared=: (bool) -> bool
168
+
127
169
  def initialize: (
128
170
  handoff: Telnyx::AI::AssistantTool::Handoff::Handoff,
171
+ ?shared: bool,
129
172
  ?type: :handoff
130
173
  ) -> void
131
174
 
132
175
  def to_hash: -> {
133
176
  handoff: Telnyx::AI::AssistantTool::Handoff::Handoff,
134
- type: :handoff
177
+ type: :handoff,
178
+ shared: bool
135
179
  }
136
180
 
137
181
  type handoff =
@@ -184,10 +228,36 @@ module Telnyx
184
228
  end
185
229
  end
186
230
 
231
+ type hangup =
232
+ { hangup: Telnyx::AI::HangupToolParams, type: :hangup, shared: bool }
233
+
234
+ class Hangup < Telnyx::Internal::Type::BaseModel
235
+ attr_accessor hangup: Telnyx::AI::HangupToolParams
236
+
237
+ attr_accessor type: :hangup
238
+
239
+ attr_reader shared: bool?
240
+
241
+ def shared=: (bool) -> bool
242
+
243
+ def initialize: (
244
+ hangup: Telnyx::AI::HangupToolParams,
245
+ ?shared: bool,
246
+ ?type: :hangup
247
+ ) -> void
248
+
249
+ def to_hash: -> {
250
+ hangup: Telnyx::AI::HangupToolParams,
251
+ type: :hangup,
252
+ shared: bool
253
+ }
254
+ end
255
+
187
256
  type transfer =
188
257
  {
189
258
  transfer: Telnyx::AI::AssistantTool::Transfer::Transfer,
190
- type: :transfer
259
+ type: :transfer,
260
+ shared: bool
191
261
  }
192
262
 
193
263
  class Transfer < Telnyx::Internal::Type::BaseModel
@@ -195,14 +265,20 @@ module Telnyx
195
265
 
196
266
  attr_accessor type: :transfer
197
267
 
268
+ attr_reader shared: bool?
269
+
270
+ def shared=: (bool) -> bool
271
+
198
272
  def initialize: (
199
273
  transfer: Telnyx::AI::AssistantTool::Transfer::Transfer,
274
+ ?shared: bool,
200
275
  ?type: :transfer
201
276
  ) -> void
202
277
 
203
278
  def to_hash: -> {
204
279
  transfer: Telnyx::AI::AssistantTool::Transfer::Transfer,
205
- type: :transfer
280
+ type: :transfer,
281
+ shared: bool
206
282
  }
207
283
 
208
284
  type transfer =
@@ -590,21 +666,31 @@ module Telnyx
590
666
  end
591
667
 
592
668
  type invite =
593
- { invite: Telnyx::AI::AssistantTool::Invite::Invite, type: :invite }
669
+ {
670
+ invite: Telnyx::AI::AssistantTool::Invite::Invite,
671
+ type: :invite,
672
+ shared: bool
673
+ }
594
674
 
595
675
  class Invite < Telnyx::Internal::Type::BaseModel
596
676
  attr_accessor invite: Telnyx::AI::AssistantTool::Invite::Invite
597
677
 
598
678
  attr_accessor type: :invite
599
679
 
680
+ attr_reader shared: bool?
681
+
682
+ def shared=: (bool) -> bool
683
+
600
684
  def initialize: (
601
685
  invite: Telnyx::AI::AssistantTool::Invite::Invite,
686
+ ?shared: bool,
602
687
  ?type: :invite
603
688
  ) -> void
604
689
 
605
690
  def to_hash: -> {
606
691
  invite: Telnyx::AI::AssistantTool::Invite::Invite,
607
- type: :invite
692
+ type: :invite,
693
+ shared: bool
608
694
  }
609
695
 
610
696
  type invite =
@@ -763,21 +849,31 @@ module Telnyx
763
849
  end
764
850
 
765
851
  type refer =
766
- { refer: Telnyx::AI::AssistantTool::Refer::Refer, type: :refer }
852
+ {
853
+ refer: Telnyx::AI::AssistantTool::Refer::Refer,
854
+ type: :refer,
855
+ shared: bool
856
+ }
767
857
 
768
858
  class Refer < Telnyx::Internal::Type::BaseModel
769
859
  attr_accessor refer: Telnyx::AI::AssistantTool::Refer::Refer
770
860
 
771
861
  attr_accessor type: :refer
772
862
 
863
+ attr_reader shared: bool?
864
+
865
+ def shared=: (bool) -> bool
866
+
773
867
  def initialize: (
774
868
  refer: Telnyx::AI::AssistantTool::Refer::Refer,
869
+ ?shared: bool,
775
870
  ?type: :refer
776
871
  ) -> void
777
872
 
778
873
  def to_hash: -> {
779
874
  refer: Telnyx::AI::AssistantTool::Refer::Refer,
780
- type: :refer
875
+ type: :refer,
876
+ shared: bool
781
877
  }
782
878
 
783
879
  type refer =
@@ -907,25 +1003,36 @@ module Telnyx
907
1003
  end
908
1004
  end
909
1005
 
910
- type send_dtmf = { send_dtmf: ::Hash[Symbol, top], type: :send_dtmf }
1006
+ type send_dtmf =
1007
+ { send_dtmf: ::Hash[Symbol, top], type: :send_dtmf, shared: bool }
911
1008
 
912
1009
  class SendDtmf < Telnyx::Internal::Type::BaseModel
913
1010
  attr_accessor send_dtmf: ::Hash[Symbol, top]
914
1011
 
915
1012
  attr_accessor type: :send_dtmf
916
1013
 
1014
+ attr_reader shared: bool?
1015
+
1016
+ def shared=: (bool) -> bool
1017
+
917
1018
  def initialize: (
918
1019
  send_dtmf: ::Hash[Symbol, top],
1020
+ ?shared: bool,
919
1021
  ?type: :send_dtmf
920
1022
  ) -> void
921
1023
 
922
- def to_hash: -> { send_dtmf: ::Hash[Symbol, top], type: :send_dtmf }
1024
+ def to_hash: -> {
1025
+ send_dtmf: ::Hash[Symbol, top],
1026
+ type: :send_dtmf,
1027
+ shared: bool
1028
+ }
923
1029
  end
924
1030
 
925
1031
  type send_message =
926
1032
  {
927
1033
  send_message: Telnyx::AI::AssistantTool::SendMessage::SendMessage,
928
- type: :send_message
1034
+ type: :send_message,
1035
+ shared: bool
929
1036
  }
930
1037
 
931
1038
  class SendMessage < Telnyx::Internal::Type::BaseModel
@@ -933,14 +1040,20 @@ module Telnyx
933
1040
 
934
1041
  attr_accessor type: :send_message
935
1042
 
1043
+ attr_reader shared: bool?
1044
+
1045
+ def shared=: (bool) -> bool
1046
+
936
1047
  def initialize: (
937
1048
  send_message: Telnyx::AI::AssistantTool::SendMessage::SendMessage,
1049
+ ?shared: bool,
938
1050
  ?type: :send_message
939
1051
  ) -> void
940
1052
 
941
1053
  def to_hash: -> {
942
1054
  send_message: Telnyx::AI::AssistantTool::SendMessage::SendMessage,
943
- type: :send_message
1055
+ type: :send_message,
1056
+ shared: bool
944
1057
  }
945
1058
 
946
1059
  type send_message = { message_template: String? }
@@ -957,7 +1070,8 @@ module Telnyx
957
1070
  type skip_turn =
958
1071
  {
959
1072
  skip_turn: Telnyx::AI::AssistantTool::SkipTurn::SkipTurn,
960
- type: :skip_turn
1073
+ type: :skip_turn,
1074
+ shared: bool
961
1075
  }
962
1076
 
963
1077
  class SkipTurn < Telnyx::Internal::Type::BaseModel
@@ -965,14 +1079,20 @@ module Telnyx
965
1079
 
966
1080
  attr_accessor type: :skip_turn
967
1081
 
1082
+ attr_reader shared: bool?
1083
+
1084
+ def shared=: (bool) -> bool
1085
+
968
1086
  def initialize: (
969
1087
  skip_turn: Telnyx::AI::AssistantTool::SkipTurn::SkipTurn,
1088
+ ?shared: bool,
970
1089
  ?type: :skip_turn
971
1090
  ) -> void
972
1091
 
973
1092
  def to_hash: -> {
974
1093
  skip_turn: Telnyx::AI::AssistantTool::SkipTurn::SkipTurn,
975
- type: :skip_turn
1094
+ type: :skip_turn,
1095
+ shared: bool
976
1096
  }
977
1097
 
978
1098
  type skip_turn = { description: String }
@@ -988,22 +1108,35 @@ module Telnyx
988
1108
  end
989
1109
  end
990
1110
 
991
- type pay = { pay: Telnyx::AI::PayToolParams, type: :pay }
1111
+ type pay = { pay: Telnyx::AI::PayToolParams, type: :pay, shared: bool }
992
1112
 
993
1113
  class Pay < Telnyx::Internal::Type::BaseModel
994
1114
  attr_accessor pay: Telnyx::AI::PayToolParams
995
1115
 
996
1116
  attr_accessor type: :pay
997
1117
 
998
- def initialize: (pay: Telnyx::AI::PayToolParams, ?type: :pay) -> void
1118
+ attr_reader shared: bool?
1119
+
1120
+ def shared=: (bool) -> bool
999
1121
 
1000
- def to_hash: -> { pay: Telnyx::AI::PayToolParams, type: :pay }
1122
+ def initialize: (
1123
+ pay: Telnyx::AI::PayToolParams,
1124
+ ?shared: bool,
1125
+ ?type: :pay
1126
+ ) -> void
1127
+
1128
+ def to_hash: -> {
1129
+ pay: Telnyx::AI::PayToolParams,
1130
+ type: :pay,
1131
+ shared: bool
1132
+ }
1001
1133
  end
1002
1134
 
1003
1135
  type update_dynamic_variables =
1004
1136
  {
1005
1137
  type: :update_dynamic_variables,
1006
- update_dynamic_variables: Telnyx::AI::UpdateDynamicVariablesToolParams
1138
+ update_dynamic_variables: Telnyx::AI::UpdateDynamicVariablesToolParams,
1139
+ shared: bool
1007
1140
  }
1008
1141
 
1009
1142
  class UpdateDynamicVariables < Telnyx::Internal::Type::BaseModel
@@ -1011,14 +1144,20 @@ module Telnyx
1011
1144
 
1012
1145
  attr_accessor update_dynamic_variables: Telnyx::AI::UpdateDynamicVariablesToolParams
1013
1146
 
1147
+ attr_reader shared: bool?
1148
+
1149
+ def shared=: (bool) -> bool
1150
+
1014
1151
  def initialize: (
1015
1152
  update_dynamic_variables: Telnyx::AI::UpdateDynamicVariablesToolParams,
1153
+ ?shared: bool,
1016
1154
  ?type: :update_dynamic_variables
1017
1155
  ) -> void
1018
1156
 
1019
1157
  def to_hash: -> {
1020
1158
  type: :update_dynamic_variables,
1021
- update_dynamic_variables: Telnyx::AI::UpdateDynamicVariablesToolParams
1159
+ update_dynamic_variables: Telnyx::AI::UpdateDynamicVariablesToolParams,
1160
+ shared: bool
1022
1161
  }
1023
1162
  end
1024
1163
 
@@ -74,14 +74,24 @@ module Telnyx
74
74
  type model =
75
75
  :"distil-whisper/distil-large-v2"
76
76
  | :"openai/whisper-large-v3-turbo"
77
+ | :"deepgram/nova-2"
78
+ | :"deepgram/nova-2-medical"
77
79
  | :"deepgram/nova-3"
80
+ | :"deepgram/nova-3-medical"
81
+ | :"nvidia/parakeet-v3"
82
+ | :"omi-health/omi-med-stt-v1"
78
83
 
79
84
  module Model
80
85
  extend Telnyx::Internal::Type::Enum
81
86
 
82
87
  DISTIL_WHISPER_DISTIL_LARGE_V2: :"distil-whisper/distil-large-v2"
83
88
  OPENAI_WHISPER_LARGE_V3_TURBO: :"openai/whisper-large-v3-turbo"
89
+ DEEPGRAM_NOVA_2: :"deepgram/nova-2"
90
+ DEEPGRAM_NOVA_2_MEDICAL: :"deepgram/nova-2-medical"
84
91
  DEEPGRAM_NOVA_3: :"deepgram/nova-3"
92
+ DEEPGRAM_NOVA_3_MEDICAL: :"deepgram/nova-3-medical"
93
+ NVIDIA_PARAKEET_V3: :"nvidia/parakeet-v3"
94
+ OMI_HEALTH_OMI_MED_STT_V1: :"omi-health/omi-med-stt-v1"
85
95
 
86
96
  def self?.values: -> ::Array[Telnyx::Models::AI::AudioTranscribeParams::model]
87
97
  end
@@ -6,7 +6,7 @@ module Telnyx
6
6
  text: String,
7
7
  duration: Float,
8
8
  segments: ::Array[Telnyx::Models::AI::AudioTranscribeResponse::Segment],
9
- words: ::Array[Telnyx::Models::AI::AudioTranscribeResponse::Word]
9
+ words: ::Array[Telnyx::AI::AudioTranscriptionResponseWord]
10
10
  }
11
11
 
12
12
  class AudioTranscribeResponse < Telnyx::Internal::Type::BaseModel
@@ -22,85 +22,71 @@ module Telnyx
22
22
  ::Array[Telnyx::Models::AI::AudioTranscribeResponse::Segment]
23
23
  ) -> ::Array[Telnyx::Models::AI::AudioTranscribeResponse::Segment]
24
24
 
25
- attr_reader words: ::Array[Telnyx::Models::AI::AudioTranscribeResponse::Word]?
25
+ attr_reader words: ::Array[Telnyx::AI::AudioTranscriptionResponseWord]?
26
26
 
27
27
  def words=: (
28
- ::Array[Telnyx::Models::AI::AudioTranscribeResponse::Word]
29
- ) -> ::Array[Telnyx::Models::AI::AudioTranscribeResponse::Word]
28
+ ::Array[Telnyx::AI::AudioTranscriptionResponseWord]
29
+ ) -> ::Array[Telnyx::AI::AudioTranscriptionResponseWord]
30
30
 
31
31
  def initialize: (
32
32
  text: String,
33
33
  ?duration: Float,
34
34
  ?segments: ::Array[Telnyx::Models::AI::AudioTranscribeResponse::Segment],
35
- ?words: ::Array[Telnyx::Models::AI::AudioTranscribeResponse::Word]
35
+ ?words: ::Array[Telnyx::AI::AudioTranscriptionResponseWord]
36
36
  ) -> void
37
37
 
38
38
  def to_hash: -> {
39
39
  text: String,
40
40
  duration: Float,
41
41
  segments: ::Array[Telnyx::Models::AI::AudioTranscribeResponse::Segment],
42
- words: ::Array[Telnyx::Models::AI::AudioTranscribeResponse::Word]
42
+ words: ::Array[Telnyx::AI::AudioTranscriptionResponseWord]
43
43
  }
44
44
 
45
- type segment = { id: Float, end_: Float, start: Float, text: String }
46
-
47
- class Segment < Telnyx::Internal::Type::BaseModel
48
- attr_accessor id: Float
49
-
50
- attr_accessor end_: Float
51
-
52
- attr_accessor start: Float
53
-
54
- attr_accessor text: String
55
-
56
- def initialize: (
57
- id: Float,
58
- end_: Float,
59
- start: Float,
60
- text: String
61
- ) -> void
62
-
63
- def to_hash: -> { id: Float, end_: Float, start: Float, text: String }
64
- end
65
-
66
- type word =
45
+ type segment =
67
46
  {
47
+ id: Float,
68
48
  end_: Float,
69
49
  start: Float,
70
- word: String,
71
- confidence: Float,
72
- speaker: Integer
50
+ text: String,
51
+ speakers: ::Array[Integer],
52
+ words: ::Array[Telnyx::AI::AudioTranscriptionResponseWord]
73
53
  }
74
54
 
75
- class Word < Telnyx::Internal::Type::BaseModel
55
+ class Segment < Telnyx::Internal::Type::BaseModel
56
+ attr_accessor id: Float
57
+
76
58
  attr_accessor end_: Float
77
59
 
78
60
  attr_accessor start: Float
79
61
 
80
- attr_accessor word: String
62
+ attr_accessor text: String
81
63
 
82
- attr_reader confidence: Float?
64
+ attr_reader speakers: ::Array[Integer]?
83
65
 
84
- def confidence=: (Float) -> Float
66
+ def speakers=: (::Array[Integer]) -> ::Array[Integer]
85
67
 
86
- attr_reader speaker: Integer?
68
+ attr_reader words: ::Array[Telnyx::AI::AudioTranscriptionResponseWord]?
87
69
 
88
- def speaker=: (Integer) -> Integer
70
+ def words=: (
71
+ ::Array[Telnyx::AI::AudioTranscriptionResponseWord]
72
+ ) -> ::Array[Telnyx::AI::AudioTranscriptionResponseWord]
89
73
 
90
74
  def initialize: (
75
+ id: Float,
91
76
  end_: Float,
92
77
  start: Float,
93
- word: String,
94
- ?confidence: Float,
95
- ?speaker: Integer
78
+ text: String,
79
+ ?speakers: ::Array[Integer],
80
+ ?words: ::Array[Telnyx::AI::AudioTranscriptionResponseWord]
96
81
  ) -> void
97
82
 
98
83
  def to_hash: -> {
84
+ id: Float,
99
85
  end_: Float,
100
86
  start: Float,
101
- word: String,
102
- confidence: Float,
103
- speaker: Integer
87
+ text: String,
88
+ speakers: ::Array[Integer],
89
+ words: ::Array[Telnyx::AI::AudioTranscriptionResponseWord]
104
90
  }
105
91
  end
106
92
  end
@@ -0,0 +1,60 @@
1
+ module Telnyx
2
+ module Models
3
+ module AI
4
+ type audio_transcription_response_word =
5
+ {
6
+ end_: Float,
7
+ start: Float,
8
+ word: String,
9
+ confidence: Float,
10
+ punctuated_word: String,
11
+ speaker: Integer,
12
+ speaker_confidence: Float
13
+ }
14
+
15
+ class AudioTranscriptionResponseWord < Telnyx::Internal::Type::BaseModel
16
+ attr_accessor end_: Float
17
+
18
+ attr_accessor start: Float
19
+
20
+ attr_accessor word: String
21
+
22
+ attr_reader confidence: Float?
23
+
24
+ def confidence=: (Float) -> Float
25
+
26
+ attr_reader punctuated_word: String?
27
+
28
+ def punctuated_word=: (String) -> String
29
+
30
+ attr_reader speaker: Integer?
31
+
32
+ def speaker=: (Integer) -> Integer
33
+
34
+ attr_reader speaker_confidence: Float?
35
+
36
+ def speaker_confidence=: (Float) -> Float
37
+
38
+ def initialize: (
39
+ end_: Float,
40
+ start: Float,
41
+ word: String,
42
+ ?confidence: Float,
43
+ ?punctuated_word: String,
44
+ ?speaker: Integer,
45
+ ?speaker_confidence: Float
46
+ ) -> void
47
+
48
+ def to_hash: -> {
49
+ end_: Float,
50
+ start: Float,
51
+ word: String,
52
+ confidence: Float,
53
+ punctuated_word: String,
54
+ speaker: Integer,
55
+ speaker_confidence: Float
56
+ }
57
+ end
58
+ end
59
+ end
60
+ end