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
@@ -31,7 +31,14 @@ module Telnyx
31
31
  from: String,
32
32
  label: String,
33
33
  machine_detection: Telnyx::Models::Texml::Accounts::Conferences::ParticipantParticipantsParams::machine_detection,
34
+ machine_detection_beep_max_frequency: Integer,
35
+ machine_detection_beep_min_frequency: Integer,
36
+ machine_detection_beep_min_tone_duration: Integer,
34
37
  machine_detection_beep_profile: Telnyx::Models::Texml::Accounts::Conferences::ParticipantParticipantsParams::machine_detection_beep_profile,
38
+ machine_detection_beep_spectral_confirmation: bool,
39
+ machine_detection_beep_spectral_min_purity: Float,
40
+ machine_detection_beep_spectral_reject_fax_cng: bool,
41
+ machine_detection_beep_spectral_window: Integer,
35
42
  machine_detection_silence_timeout: Integer,
36
43
  machine_detection_speech_end_threshold: Integer,
37
44
  machine_detection_speech_threshold: Integer,
@@ -179,12 +186,40 @@ module Telnyx
179
186
  Telnyx::Models::Texml::Accounts::Conferences::ParticipantParticipantsParams::machine_detection
180
187
  ) -> Telnyx::Models::Texml::Accounts::Conferences::ParticipantParticipantsParams::machine_detection
181
188
 
189
+ attr_reader machine_detection_beep_max_frequency: Integer?
190
+
191
+ def machine_detection_beep_max_frequency=: (Integer) -> Integer
192
+
193
+ attr_reader machine_detection_beep_min_frequency: Integer?
194
+
195
+ def machine_detection_beep_min_frequency=: (Integer) -> Integer
196
+
197
+ attr_reader machine_detection_beep_min_tone_duration: Integer?
198
+
199
+ def machine_detection_beep_min_tone_duration=: (Integer) -> Integer
200
+
182
201
  attr_reader machine_detection_beep_profile: Telnyx::Models::Texml::Accounts::Conferences::ParticipantParticipantsParams::machine_detection_beep_profile?
183
202
 
184
203
  def machine_detection_beep_profile=: (
185
204
  Telnyx::Models::Texml::Accounts::Conferences::ParticipantParticipantsParams::machine_detection_beep_profile
186
205
  ) -> Telnyx::Models::Texml::Accounts::Conferences::ParticipantParticipantsParams::machine_detection_beep_profile
187
206
 
207
+ attr_reader machine_detection_beep_spectral_confirmation: bool?
208
+
209
+ def machine_detection_beep_spectral_confirmation=: (bool) -> bool
210
+
211
+ attr_reader machine_detection_beep_spectral_min_purity: Float?
212
+
213
+ def machine_detection_beep_spectral_min_purity=: (Float) -> Float
214
+
215
+ attr_reader machine_detection_beep_spectral_reject_fax_cng: bool?
216
+
217
+ def machine_detection_beep_spectral_reject_fax_cng=: (bool) -> bool
218
+
219
+ attr_reader machine_detection_beep_spectral_window: Integer?
220
+
221
+ def machine_detection_beep_spectral_window=: (Integer) -> Integer
222
+
188
223
  attr_reader machine_detection_silence_timeout: Integer?
189
224
 
190
225
  def machine_detection_silence_timeout=: (Integer) -> Integer
@@ -318,7 +353,14 @@ module Telnyx
318
353
  ?from: String,
319
354
  ?label: String,
320
355
  ?machine_detection: Telnyx::Models::Texml::Accounts::Conferences::ParticipantParticipantsParams::machine_detection,
356
+ ?machine_detection_beep_max_frequency: Integer,
357
+ ?machine_detection_beep_min_frequency: Integer,
358
+ ?machine_detection_beep_min_tone_duration: Integer,
321
359
  ?machine_detection_beep_profile: Telnyx::Models::Texml::Accounts::Conferences::ParticipantParticipantsParams::machine_detection_beep_profile,
360
+ ?machine_detection_beep_spectral_confirmation: bool,
361
+ ?machine_detection_beep_spectral_min_purity: Float,
362
+ ?machine_detection_beep_spectral_reject_fax_cng: bool,
363
+ ?machine_detection_beep_spectral_window: Integer,
322
364
  ?machine_detection_silence_timeout: Integer,
323
365
  ?machine_detection_speech_end_threshold: Integer,
324
366
  ?machine_detection_speech_threshold: Integer,
@@ -373,7 +415,14 @@ module Telnyx
373
415
  from: String,
374
416
  label: String,
375
417
  machine_detection: Telnyx::Models::Texml::Accounts::Conferences::ParticipantParticipantsParams::machine_detection,
418
+ machine_detection_beep_max_frequency: Integer,
419
+ machine_detection_beep_min_frequency: Integer,
420
+ machine_detection_beep_min_tone_duration: Integer,
376
421
  machine_detection_beep_profile: Telnyx::Models::Texml::Accounts::Conferences::ParticipantParticipantsParams::machine_detection_beep_profile,
422
+ machine_detection_beep_spectral_confirmation: bool,
423
+ machine_detection_beep_spectral_min_purity: Float,
424
+ machine_detection_beep_spectral_reject_fax_cng: bool,
425
+ machine_detection_beep_spectral_window: Integer,
377
426
  machine_detection_silence_timeout: Integer,
378
427
  machine_detection_speech_end_threshold: Integer,
379
428
  machine_detection_speech_threshold: Integer,
@@ -0,0 +1,72 @@
1
+ module Telnyx
2
+ module Models
3
+ module Texml
4
+ type call_create_params =
5
+ {
6
+ connection_id: String,
7
+ from: String,
8
+ to: String,
9
+ method_: Telnyx::Models::Texml::CallCreateParams::method_,
10
+ texml: String,
11
+ url: String
12
+ }
13
+ & Telnyx::Internal::Type::request_parameters
14
+
15
+ class CallCreateParams < Telnyx::Internal::Type::BaseModel
16
+ extend Telnyx::Internal::Type::RequestParameters::Converter
17
+ include Telnyx::Internal::Type::RequestParameters
18
+
19
+ attr_accessor connection_id: String
20
+
21
+ attr_accessor from: String
22
+
23
+ attr_accessor to: String
24
+
25
+ attr_reader method_: Telnyx::Models::Texml::CallCreateParams::method_?
26
+
27
+ def method_=: (
28
+ Telnyx::Models::Texml::CallCreateParams::method_
29
+ ) -> Telnyx::Models::Texml::CallCreateParams::method_
30
+
31
+ attr_reader texml: String?
32
+
33
+ def texml=: (String) -> String
34
+
35
+ attr_reader url: String?
36
+
37
+ def url=: (String) -> String
38
+
39
+ def initialize: (
40
+ connection_id: String,
41
+ from: String,
42
+ to: String,
43
+ ?method_: Telnyx::Models::Texml::CallCreateParams::method_,
44
+ ?texml: String,
45
+ ?url: String,
46
+ ?request_options: Telnyx::request_opts
47
+ ) -> void
48
+
49
+ def to_hash: -> {
50
+ connection_id: String,
51
+ from: String,
52
+ to: String,
53
+ method_: Telnyx::Models::Texml::CallCreateParams::method_,
54
+ texml: String,
55
+ url: String,
56
+ request_options: Telnyx::RequestOptions
57
+ }
58
+
59
+ type method_ = :GET | :POST
60
+
61
+ module Method
62
+ extend Telnyx::Internal::Type::Enum
63
+
64
+ GET: :GET
65
+ POST: :POST
66
+
67
+ def self?.values: -> ::Array[Telnyx::Models::Texml::CallCreateParams::method_]
68
+ end
69
+ end
70
+ end
71
+ end
72
+ end
@@ -0,0 +1,47 @@
1
+ module Telnyx
2
+ module Models
3
+ module Texml
4
+ type call_create_response =
5
+ {
6
+ call_sid: String,
7
+ from: String,
8
+ status: Telnyx::Models::Texml::CallCreateResponse::status,
9
+ to: String
10
+ }
11
+
12
+ class CallCreateResponse < Telnyx::Internal::Type::BaseModel
13
+ attr_accessor call_sid: String
14
+
15
+ attr_accessor from: String
16
+
17
+ attr_accessor status: Telnyx::Models::Texml::CallCreateResponse::status
18
+
19
+ attr_accessor to: String
20
+
21
+ def initialize: (
22
+ call_sid: String,
23
+ from: String,
24
+ status: Telnyx::Models::Texml::CallCreateResponse::status,
25
+ to: String
26
+ ) -> void
27
+
28
+ def to_hash: -> {
29
+ call_sid: String,
30
+ from: String,
31
+ status: Telnyx::Models::Texml::CallCreateResponse::status,
32
+ to: String
33
+ }
34
+
35
+ type status = :queued
36
+
37
+ module Status
38
+ extend Telnyx::Internal::Type::Enum
39
+
40
+ QUEUED: :queued
41
+
42
+ def self?.values: -> ::Array[Telnyx::Models::Texml::CallCreateResponse::status]
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
@@ -18,7 +18,14 @@ module Telnyx
18
18
  custom_headers: ::Array[Telnyx::TexmlInitiateAICallParams::CustomHeader],
19
19
  detection_mode: Telnyx::Models::TexmlInitiateAICallParams::detection_mode,
20
20
  machine_detection: Telnyx::Models::TexmlInitiateAICallParams::machine_detection,
21
+ machine_detection_beep_max_frequency: Integer,
22
+ machine_detection_beep_min_frequency: Integer,
23
+ machine_detection_beep_min_tone_duration: Integer,
21
24
  machine_detection_beep_profile: Telnyx::Models::TexmlInitiateAICallParams::machine_detection_beep_profile,
25
+ machine_detection_beep_spectral_confirmation: bool,
26
+ machine_detection_beep_spectral_min_purity: Float,
27
+ machine_detection_beep_spectral_reject_fax_cng: bool,
28
+ machine_detection_beep_spectral_window: Integer,
22
29
  machine_detection_prompt_end_timeout: Integer,
23
30
  machine_detection_silence_timeout: Integer,
24
31
  machine_detection_speech_end_threshold: Integer,
@@ -119,12 +126,40 @@ module Telnyx
119
126
  Telnyx::Models::TexmlInitiateAICallParams::machine_detection
120
127
  ) -> Telnyx::Models::TexmlInitiateAICallParams::machine_detection
121
128
 
129
+ attr_reader machine_detection_beep_max_frequency: Integer?
130
+
131
+ def machine_detection_beep_max_frequency=: (Integer) -> Integer
132
+
133
+ attr_reader machine_detection_beep_min_frequency: Integer?
134
+
135
+ def machine_detection_beep_min_frequency=: (Integer) -> Integer
136
+
137
+ attr_reader machine_detection_beep_min_tone_duration: Integer?
138
+
139
+ def machine_detection_beep_min_tone_duration=: (Integer) -> Integer
140
+
122
141
  attr_reader machine_detection_beep_profile: Telnyx::Models::TexmlInitiateAICallParams::machine_detection_beep_profile?
123
142
 
124
143
  def machine_detection_beep_profile=: (
125
144
  Telnyx::Models::TexmlInitiateAICallParams::machine_detection_beep_profile
126
145
  ) -> Telnyx::Models::TexmlInitiateAICallParams::machine_detection_beep_profile
127
146
 
147
+ attr_reader machine_detection_beep_spectral_confirmation: bool?
148
+
149
+ def machine_detection_beep_spectral_confirmation=: (bool) -> bool
150
+
151
+ attr_reader machine_detection_beep_spectral_min_purity: Float?
152
+
153
+ def machine_detection_beep_spectral_min_purity=: (Float) -> Float
154
+
155
+ attr_reader machine_detection_beep_spectral_reject_fax_cng: bool?
156
+
157
+ def machine_detection_beep_spectral_reject_fax_cng=: (bool) -> bool
158
+
159
+ attr_reader machine_detection_beep_spectral_window: Integer?
160
+
161
+ def machine_detection_beep_spectral_window=: (Integer) -> Integer
162
+
128
163
  attr_reader machine_detection_prompt_end_timeout: Integer?
129
164
 
130
165
  def machine_detection_prompt_end_timeout=: (Integer) -> Integer
@@ -254,7 +289,14 @@ module Telnyx
254
289
  ?custom_headers: ::Array[Telnyx::TexmlInitiateAICallParams::CustomHeader],
255
290
  ?detection_mode: Telnyx::Models::TexmlInitiateAICallParams::detection_mode,
256
291
  ?machine_detection: Telnyx::Models::TexmlInitiateAICallParams::machine_detection,
292
+ ?machine_detection_beep_max_frequency: Integer,
293
+ ?machine_detection_beep_min_frequency: Integer,
294
+ ?machine_detection_beep_min_tone_duration: Integer,
257
295
  ?machine_detection_beep_profile: Telnyx::Models::TexmlInitiateAICallParams::machine_detection_beep_profile,
296
+ ?machine_detection_beep_spectral_confirmation: bool,
297
+ ?machine_detection_beep_spectral_min_purity: Float,
298
+ ?machine_detection_beep_spectral_reject_fax_cng: bool,
299
+ ?machine_detection_beep_spectral_window: Integer,
258
300
  ?machine_detection_prompt_end_timeout: Integer,
259
301
  ?machine_detection_silence_timeout: Integer,
260
302
  ?machine_detection_speech_end_threshold: Integer,
@@ -300,7 +342,14 @@ module Telnyx
300
342
  custom_headers: ::Array[Telnyx::TexmlInitiateAICallParams::CustomHeader],
301
343
  detection_mode: Telnyx::Models::TexmlInitiateAICallParams::detection_mode,
302
344
  machine_detection: Telnyx::Models::TexmlInitiateAICallParams::machine_detection,
345
+ machine_detection_beep_max_frequency: Integer,
346
+ machine_detection_beep_min_frequency: Integer,
347
+ machine_detection_beep_min_tone_duration: Integer,
303
348
  machine_detection_beep_profile: Telnyx::Models::TexmlInitiateAICallParams::machine_detection_beep_profile,
349
+ machine_detection_beep_spectral_confirmation: bool,
350
+ machine_detection_beep_spectral_min_purity: Float,
351
+ machine_detection_beep_spectral_reject_fax_cng: bool,
352
+ machine_detection_beep_spectral_window: Integer,
304
353
  machine_detection_prompt_end_timeout: Integer,
305
354
  machine_detection_silence_timeout: Integer,
306
355
  machine_detection_speech_end_threshold: Integer,
@@ -117,6 +117,14 @@ module Telnyx
117
117
 
118
118
  class BookAppointmentToolParams = Telnyx::Models::BookAppointmentToolParams
119
119
 
120
+ class BotChallengeCreateParams = Telnyx::Models::BotChallengeCreateParams
121
+
122
+ class BotSessionListParams = Telnyx::Models::BotSessionListParams
123
+
124
+ class BotSignupCreateParams = Telnyx::Models::BotSignupCreateParams
125
+
126
+ class BotSignupResendMagicLinkParams = Telnyx::Models::BotSignupResendMagicLinkParams
127
+
120
128
  class BrandedCallingPaginationMeta = Telnyx::Models::BrandedCallingPaginationMeta
121
129
 
122
130
  class BulkMessagingSettingsUpdatePhoneNumbers = Telnyx::Models::BulkMessagingSettingsUpdatePhoneNumbers
@@ -431,6 +439,8 @@ module Telnyx
431
439
 
432
440
  class ConnectionNoiseSuppressionDetails = Telnyx::Models::ConnectionNoiseSuppressionDetails
433
441
 
442
+ class ConnectionRetrieveCountParams = Telnyx::Models::ConnectionRetrieveCountParams
443
+
434
444
  class ConnectionRetrieveParams = Telnyx::Models::ConnectionRetrieveParams
435
445
 
436
446
  class ConnectionRtcpSettings = Telnyx::Models::ConnectionRtcpSettings
@@ -977,6 +987,8 @@ module Telnyx
977
987
 
978
988
  class ListRetrieveByZoneParams = Telnyx::Models::ListRetrieveByZoneParams
979
989
 
990
+ class MachinePaymentAccountCreditParams = Telnyx::Models::MachinePaymentAccountCreditParams
991
+
980
992
  class ManagedAccount = Telnyx::Models::ManagedAccount
981
993
 
982
994
  class ManagedAccountBalance = Telnyx::Models::ManagedAccountBalance
@@ -1099,6 +1111,8 @@ module Telnyx
1099
1111
 
1100
1112
  class MessagingHostedNumberUpdateParams = Telnyx::Models::MessagingHostedNumberUpdateParams
1101
1113
 
1114
+ class MessagingInboundMessage = Telnyx::Models::MessagingInboundMessage
1115
+
1102
1116
  class MessagingInboundMessagePayload = Telnyx::Models::MessagingInboundMessagePayload
1103
1117
 
1104
1118
  class MessagingMessagingProfile = Telnyx::Models::MessagingMessagingProfile
@@ -1215,6 +1229,8 @@ module Telnyx
1215
1229
 
1216
1230
  class NetworkUpdateParams = Telnyx::Models::NetworkUpdateParams
1217
1231
 
1232
+ class NoiseSuppressionEngineListParams = Telnyx::Models::NoiseSuppressionEngineListParams
1233
+
1218
1234
  class NotificationChannel = Telnyx::Models::NotificationChannel
1219
1235
 
1220
1236
  class NotificationChannelCreateParams = Telnyx::Models::NotificationChannelCreateParams
@@ -1829,6 +1845,8 @@ module Telnyx
1829
1845
 
1830
1846
  class SubNumberOrderUpdateRequirementGroupParams = Telnyx::Models::SubNumberOrderUpdateRequirementGroupParams
1831
1847
 
1848
+ class SuccessResponse = Telnyx::Models::SuccessResponse
1849
+
1832
1850
  class SuppressedRecipient = Telnyx::Models::SuppressedRecipient
1833
1851
 
1834
1852
  class TelephonyCredential = Telnyx::Models::TelephonyCredential
@@ -0,0 +1,17 @@
1
+ module Telnyx
2
+ module Resources
3
+ class AI
4
+ class Typesafe
5
+ class V1
6
+ def systemone: (
7
+ questions: ::Hash[Symbol, Telnyx::Models::AI::Typesafe::V1SystemoneParams::question],
8
+ state: Telnyx::Models::AI::Typesafe::V1SystemoneParams::state,
9
+ ?request_options: Telnyx::request_opts
10
+ ) -> Telnyx::Models::AI::Typesafe::V1SystemoneResponse
11
+
12
+ def initialize: (client: Telnyx::Client) -> void
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,11 @@
1
+ module Telnyx
2
+ module Resources
3
+ class AI
4
+ class Typesafe
5
+ attr_reader v1: Telnyx::Resources::AI::Typesafe::V1
6
+
7
+ def initialize: (client: Telnyx::Client) -> void
8
+ end
9
+ end
10
+ end
11
+ end
@@ -31,6 +31,8 @@ module Telnyx
31
31
 
32
32
  attr_reader knowledge: Telnyx::Resources::AI::Knowledge
33
33
 
34
+ attr_reader typesafe: Telnyx::Resources::AI::Typesafe
35
+
34
36
  def retrieve_conversation_histories: (
35
37
  q: String,
36
38
  ?filter_ingested_at_gte: Time,
@@ -0,0 +1,14 @@
1
+ module Telnyx
2
+ module Resources
3
+ class BotChallenge
4
+ def create: (
5
+ ?llm_model_name: String,
6
+ ?llm_parameter_count: String,
7
+ ?llm_quantization: String,
8
+ ?request_options: Telnyx::request_opts
9
+ ) -> Telnyx::Models::BotChallengeCreateResponse
10
+
11
+ def initialize: (client: Telnyx::Client) -> void
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,13 @@
1
+ module Telnyx
2
+ module Resources
3
+ class BotSessions
4
+ def list: (
5
+ email: String,
6
+ portal_redirect_token: String,
7
+ ?request_options: Telnyx::request_opts
8
+ ) -> Telnyx::Models::BotSessionListResponse
9
+
10
+ def initialize: (client: Telnyx::Client) -> void
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,24 @@
1
+ module Telnyx
2
+ module Resources
3
+ class BotSignup
4
+ def create: (
5
+ bot_challenge_answer: String,
6
+ bot_challenge_nonce: String,
7
+ privacy_policy_url: String,
8
+ terms_and_conditions_url: String,
9
+ terms_of_service: Telnyx::Models::BotSignupCreateParams::terms_of_service,
10
+ ?email: String,
11
+ ?terms_and_conditions_eu_url: String,
12
+ ?terms_of_service_eu: Telnyx::Models::BotSignupCreateParams::terms_of_service_eu,
13
+ ?request_options: Telnyx::request_opts
14
+ ) -> Telnyx::SuccessResponse
15
+
16
+ def resend_magic_link: (
17
+ email: String,
18
+ ?request_options: Telnyx::request_opts
19
+ ) -> Telnyx::SuccessResponse
20
+
21
+ def initialize: (client: Telnyx::Client) -> void
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,30 @@
1
+ module Telnyx
2
+ module Resources
3
+ class Compute
4
+ class Funcs
5
+ class Export
6
+ def create: (
7
+ String id,
8
+ endpoint: String,
9
+ headers: ::Hash[Symbol, String],
10
+ invocation_export_enabled: bool,
11
+ runtime_export_enabled: bool,
12
+ ?request_options: Telnyx::request_opts
13
+ ) -> Telnyx::Compute::Funcs::FuncLogExportConfigResponse
14
+
15
+ def list: (
16
+ String id,
17
+ ?request_options: Telnyx::request_opts
18
+ ) -> Telnyx::Compute::Funcs::FuncLogExportConfigResponse
19
+
20
+ def delete_all: (
21
+ String id,
22
+ ?request_options: Telnyx::request_opts
23
+ ) -> nil
24
+
25
+ def initialize: (client: Telnyx::Client) -> void
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
@@ -2,6 +2,8 @@ module Telnyx
2
2
  module Resources
3
3
  class Compute
4
4
  class Funcs
5
+ attr_reader export: Telnyx::Resources::Compute::Funcs::Export
6
+
5
7
  def retrieve_logs: (
6
8
  String id,
7
9
  ?end_time: Time,
@@ -21,6 +21,10 @@ module Telnyx
21
21
  ?request_options: Telnyx::request_opts
22
22
  ) -> Telnyx::Internal::DefaultFlatPagination[Telnyx::Models::ConnectionListActiveCallsResponse]
23
23
 
24
+ def retrieve_count: (
25
+ ?request_options: Telnyx::request_opts
26
+ ) -> Telnyx::Models::ConnectionRetrieveCountResponse
27
+
24
28
  def initialize: (client: Telnyx::Client) -> void
25
29
  end
26
30
  end
@@ -0,0 +1,12 @@
1
+ module Telnyx
2
+ module Resources
3
+ class MachinePayments
4
+ def account_credit: (
5
+ amount_usd: String,
6
+ ?request_options: Telnyx::request_opts
7
+ ) -> Telnyx::Models::MachinePaymentAccountCreditResponse
8
+
9
+ def initialize: (client: Telnyx::Client) -> void
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,11 @@
1
+ module Telnyx
2
+ module Resources
3
+ class NoiseSuppressionEngines
4
+ def list: (
5
+ ?request_options: Telnyx::request_opts
6
+ ) -> Telnyx::Models::NoiseSuppressionEngineListResponse
7
+
8
+ def initialize: (client: Telnyx::Client) -> void
9
+ end
10
+ end
11
+ end
@@ -63,7 +63,14 @@ module Telnyx
63
63
  ?from: String,
64
64
  ?label: String,
65
65
  ?machine_detection: Telnyx::Models::Texml::Accounts::Conferences::ParticipantParticipantsParams::machine_detection,
66
+ ?machine_detection_beep_max_frequency: Integer,
67
+ ?machine_detection_beep_min_frequency: Integer,
68
+ ?machine_detection_beep_min_tone_duration: Integer,
66
69
  ?machine_detection_beep_profile: Telnyx::Models::Texml::Accounts::Conferences::ParticipantParticipantsParams::machine_detection_beep_profile,
70
+ ?machine_detection_beep_spectral_confirmation: bool,
71
+ ?machine_detection_beep_spectral_min_purity: Float,
72
+ ?machine_detection_beep_spectral_reject_fax_cng: bool,
73
+ ?machine_detection_beep_spectral_window: Integer,
67
74
  ?machine_detection_silence_timeout: Integer,
68
75
  ?machine_detection_speech_end_threshold: Integer,
69
76
  ?machine_detection_speech_threshold: Integer,
@@ -0,0 +1,19 @@
1
+ module Telnyx
2
+ module Resources
3
+ class Texml
4
+ class Calls
5
+ def create: (
6
+ String connection_id,
7
+ from: String,
8
+ to: String,
9
+ ?method_: Telnyx::Models::Texml::CallCreateParams::method_,
10
+ ?texml: String,
11
+ ?url: String,
12
+ ?request_options: Telnyx::request_opts
13
+ ) -> Telnyx::Models::Texml::CallCreateResponse
14
+
15
+ def initialize: (client: Telnyx::Client) -> void
16
+ end
17
+ end
18
+ end
19
+ end
@@ -1,6 +1,8 @@
1
1
  module Telnyx
2
2
  module Resources
3
3
  class Texml
4
+ attr_reader calls: Telnyx::Resources::Texml::Calls
5
+
4
6
  attr_reader accounts: Telnyx::Resources::Texml::Accounts
5
7
 
6
8
  def initiate_ai_call: (
@@ -20,7 +22,14 @@ module Telnyx
20
22
  ?custom_headers: ::Array[Telnyx::TexmlInitiateAICallParams::CustomHeader],
21
23
  ?detection_mode: Telnyx::Models::TexmlInitiateAICallParams::detection_mode,
22
24
  ?machine_detection: Telnyx::Models::TexmlInitiateAICallParams::machine_detection,
25
+ ?machine_detection_beep_max_frequency: Integer,
26
+ ?machine_detection_beep_min_frequency: Integer,
27
+ ?machine_detection_beep_min_tone_duration: Integer,
23
28
  ?machine_detection_beep_profile: Telnyx::Models::TexmlInitiateAICallParams::machine_detection_beep_profile,
29
+ ?machine_detection_beep_spectral_confirmation: bool,
30
+ ?machine_detection_beep_spectral_min_purity: Float,
31
+ ?machine_detection_beep_spectral_reject_fax_cng: bool,
32
+ ?machine_detection_beep_spectral_window: Integer,
24
33
  ?machine_detection_prompt_end_timeout: Integer,
25
34
  ?machine_detection_silence_timeout: Integer,
26
35
  ?machine_detection_speech_end_threshold: Integer,