telnyx 5.167.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 (396) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +14 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/client.rb +44 -0
  5. data/lib/telnyx/internal/type/union.rb +6 -6
  6. data/lib/telnyx/models/ai/assistant_a2_a_agent.rb +195 -0
  7. data/lib/telnyx/models/ai/assistant_create_params.rb +22 -7
  8. data/lib/telnyx/models/ai/assistant_tool.rb +285 -12
  9. data/lib/telnyx/models/ai/assistant_update_params.rb +37 -10
  10. data/lib/telnyx/models/ai/assistants/update_assistant.rb +37 -10
  11. data/lib/telnyx/models/ai/audio_transcribe_params.rb +33 -13
  12. data/lib/telnyx/models/ai/audio_transcribe_response.rb +34 -56
  13. data/lib/telnyx/models/ai/audio_transcription_response_word.rb +74 -0
  14. data/lib/telnyx/models/ai/chat_completion_request.rb +128 -74
  15. data/lib/telnyx/models/ai/flow_node.rb +2 -2
  16. data/lib/telnyx/models/ai/inference_embedding.rb +29 -11
  17. data/lib/telnyx/models/ai/inference_embedding_interruption_settings.rb +10 -1
  18. data/lib/telnyx/models/ai/inference_embedding_webhook_tool_params.rb +21 -1
  19. data/lib/telnyx/models/ai/openai/function_definition.rb +31 -0
  20. data/lib/telnyx/models/ai/post_conversation_settings.rb +4 -4
  21. data/lib/telnyx/models/ai/post_conversation_settings_req.rb +4 -4
  22. data/lib/telnyx/models/ai/privacy_settings.rb +20 -1
  23. data/lib/telnyx/models/ai/retrieval_tool.rb +21 -1
  24. data/lib/telnyx/models/ai/telephony_settings.rb +101 -17
  25. data/lib/telnyx/models/ai/tool_node.rb +2 -2
  26. data/lib/telnyx/models/ai/transcription_settings.rb +12 -4
  27. data/lib/telnyx/models/ai/transcription_settings_config.rb +12 -11
  28. data/lib/telnyx/models/ai/typesafe/v1_systemone_params.rb +268 -0
  29. data/lib/telnyx/models/ai/typesafe/v1_systemone_response.rb +222 -0
  30. data/lib/telnyx/models/bot_challenge_create_params.rb +38 -0
  31. data/lib/telnyx/models/bot_challenge_create_response.rb +87 -0
  32. data/lib/telnyx/models/bot_session_list_params.rb +34 -0
  33. data/lib/telnyx/models/bot_session_list_response.rb +32 -0
  34. data/lib/telnyx/models/bot_signup_create_params.rb +103 -0
  35. data/lib/telnyx/models/bot_signup_resend_magic_link_params.rb +22 -0
  36. data/lib/telnyx/models/call_dial_params.rb +75 -7
  37. data/lib/telnyx/models/calls/action_transfer_params.rb +75 -7
  38. data/lib/telnyx/models/calls/transcription_config.rb +14 -3
  39. data/lib/telnyx/models/calls/transcription_engine_assemblyai_config.rb +6 -3
  40. data/lib/telnyx/models/calls/transcription_engine_parakeet_config.rb +1 -0
  41. data/lib/telnyx/models/compute/func_retrieve_logs_params.rb +66 -0
  42. data/lib/telnyx/models/compute/func_retrieve_logs_response.rb +161 -0
  43. data/lib/telnyx/models/compute/func_retrieve_metric_aggregates_params.rb +69 -0
  44. data/lib/telnyx/models/compute/func_retrieve_metric_aggregates_response.rb +137 -0
  45. data/lib/telnyx/models/compute/func_retrieve_revisions_params.rb +34 -0
  46. data/lib/telnyx/models/compute/func_retrieve_revisions_response.rb +101 -0
  47. data/lib/telnyx/models/compute/func_retrieve_ship_inspection_params.rb +22 -0
  48. data/lib/telnyx/models/compute/func_retrieve_ship_inspection_response.rb +94 -0
  49. data/lib/telnyx/models/compute/funcs/export_create_params.rb +62 -0
  50. data/lib/telnyx/models/compute/funcs/export_delete_all_params.rb +24 -0
  51. data/lib/telnyx/models/compute/funcs/export_list_params.rb +24 -0
  52. data/lib/telnyx/models/compute/funcs/func_log_export_config_response.rb +113 -0
  53. data/lib/telnyx/models/compute/functions_observability_pagination_meta.rb +35 -0
  54. data/lib/telnyx/models/compute/logs_meta.rb +23 -0
  55. data/lib/telnyx/models/connection_retrieve_count_params.rb +14 -0
  56. data/lib/telnyx/models/connection_retrieve_count_response.rb +215 -0
  57. data/lib/telnyx/models/credential_connection.rb +4 -1
  58. data/lib/telnyx/models/detail_record_list_params.rb +19 -2
  59. data/lib/telnyx/models/email_inboxes/email_message.rb +12 -1
  60. data/lib/telnyx/models/email_message_batch_params.rb +4 -1
  61. data/lib/telnyx/models/email_message_batch_response.rb +1 -0
  62. data/lib/telnyx/models/fqdn_connection.rb +5 -2
  63. data/lib/telnyx/models/fqdn_connections/fqdn_authentication.rb +9 -2
  64. data/lib/telnyx/models/inbound_message_webhook_event.rb +3 -70
  65. data/lib/telnyx/models/machine_payment_account_credit_params.rb +29 -0
  66. data/lib/telnyx/models/machine_payment_account_credit_response.rb +223 -0
  67. data/lib/telnyx/models/message_retrieve_group_messages_response.rb +3 -3
  68. data/lib/telnyx/models/message_retrieve_response.rb +4 -4
  69. data/lib/telnyx/models/message_schedule_response.rb +3 -3
  70. data/lib/telnyx/models/message_send_group_mms_response.rb +3 -3
  71. data/lib/telnyx/models/message_send_long_code_response.rb +3 -3
  72. data/lib/telnyx/models/message_send_number_pool_response.rb +3 -3
  73. data/lib/telnyx/models/message_send_response.rb +3 -3
  74. data/lib/telnyx/models/message_send_short_code_response.rb +3 -3
  75. data/lib/telnyx/models/messaging_inbound_message.rb +71 -0
  76. data/lib/telnyx/models/messaging_inbound_message_payload.rb +412 -66
  77. data/lib/telnyx/models/messaging_messaging_profile.rb +11 -1
  78. data/lib/telnyx/models/messaging_outbound_message_payload.rb +42 -2
  79. data/lib/telnyx/models/messaging_profile_create_params.rb +11 -1
  80. data/lib/telnyx/models/messaging_profile_features.rb +26 -0
  81. data/lib/telnyx/models/messaging_profile_update_params.rb +11 -1
  82. data/lib/telnyx/models/noise_suppression_engine_list_params.rb +14 -0
  83. data/lib/telnyx/models/noise_suppression_engine_list_response.rb +50 -0
  84. data/lib/telnyx/models/number_order_status_update.rb +15 -3
  85. data/lib/telnyx/models/number_order_status_update_webhook_event.rb +15 -3
  86. data/lib/telnyx/models/outbound_message.rb +1 -0
  87. data/lib/telnyx/models/outbound_message_payload.rb +45 -5
  88. data/lib/telnyx/models/speech_to_text_retrieve_transcription_params.rb +1 -0
  89. data/lib/telnyx/models/success_response.rb +27 -0
  90. data/lib/telnyx/models/texml/accounts/call_calls_params.rb +246 -3
  91. data/lib/telnyx/models/texml/accounts/conferences/participant_participants_params.rb +82 -1
  92. data/lib/telnyx/models/texml/call_create_params.rb +78 -0
  93. data/lib/telnyx/models/texml/call_create_response.rb +55 -0
  94. data/lib/telnyx/models/texml_initiate_ai_call_params.rb +76 -1
  95. data/lib/telnyx/models/uac_connection.rb +4 -1
  96. data/lib/telnyx/models/uac_external_settings.rb +6 -2
  97. data/lib/telnyx/models/unsafe_unwrap_webhook_event.rb +5 -1
  98. data/lib/telnyx/models/unwrap_webhook_event.rb +5 -1
  99. data/lib/telnyx/models/voice_clone_create_from_upload_params.rb +2 -2
  100. data/lib/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rb +104 -1
  101. data/lib/telnyx/models/whatsapp/phone_number_get_response.rb +103 -1
  102. data/lib/telnyx/models/whatsapp/phone_number_list_response.rb +103 -1
  103. data/lib/telnyx/models/whatsapp/phone_number_retrieve_phone_number_params.rb +22 -0
  104. data/lib/telnyx/models/whatsapp/phone_number_retrieve_phone_number_response.rb +207 -0
  105. data/lib/telnyx/models/whatsapp_account_update.rb +112 -0
  106. data/lib/telnyx/models/whatsapp_message_echo.rb +340 -0
  107. data/lib/telnyx/models/x402/credit_account/payment_list_params.rb +34 -0
  108. data/lib/telnyx/models/x402/credit_account/payment_retrieve_params.rb +24 -0
  109. data/lib/telnyx/models/x402/credit_account/payment_retrieve_response.rb +21 -0
  110. data/lib/telnyx/models/x402/credit_account/x402_transaction_record.rb +113 -0
  111. data/lib/telnyx/models.rb +26 -0
  112. data/lib/telnyx/resources/ai/assistants/versions.rb +4 -2
  113. data/lib/telnyx/resources/ai/assistants.rb +8 -4
  114. data/lib/telnyx/resources/ai/audio.rb +2 -2
  115. data/lib/telnyx/resources/ai/openai/chat.rb +2 -8
  116. data/lib/telnyx/resources/ai/typesafe/v1.rb +62 -0
  117. data/lib/telnyx/resources/ai/typesafe.rb +22 -0
  118. data/lib/telnyx/resources/ai.rb +4 -0
  119. data/lib/telnyx/resources/bot_challenge.rb +53 -0
  120. data/lib/telnyx/resources/bot_sessions.rb +57 -0
  121. data/lib/telnyx/resources/bot_signup.rb +97 -0
  122. data/lib/telnyx/resources/calls/actions.rb +1 -1
  123. data/lib/telnyx/resources/calls.rb +1 -1
  124. data/lib/telnyx/resources/compute/funcs/export.rb +105 -0
  125. data/lib/telnyx/resources/compute/funcs.rb +145 -0
  126. data/lib/telnyx/resources/compute.rb +18 -0
  127. data/lib/telnyx/resources/connections.rb +20 -0
  128. data/lib/telnyx/resources/detail_records.rb +1 -1
  129. data/lib/telnyx/resources/email_messages.rb +6 -2
  130. data/lib/telnyx/resources/machine_payments.rb +73 -0
  131. data/lib/telnyx/resources/messaging_profiles.rb +6 -2
  132. data/lib/telnyx/resources/noise_suppression_engines.rb +37 -0
  133. data/lib/telnyx/resources/texml/accounts/conferences/participants.rb +15 -1
  134. data/lib/telnyx/resources/texml/calls.rb +57 -0
  135. data/lib/telnyx/resources/texml.rb +20 -1
  136. data/lib/telnyx/resources/voice_clones.rb +4 -2
  137. data/lib/telnyx/resources/webhooks.rb +2 -2
  138. data/lib/telnyx/resources/whatsapp/phone_numbers.rb +22 -0
  139. data/lib/telnyx/resources/x402/credit_account/payments.rb +71 -0
  140. data/lib/telnyx/resources/x402/credit_account.rb +8 -2
  141. data/lib/telnyx/version.rb +1 -1
  142. data/lib/telnyx.rb +56 -0
  143. data/rbi/telnyx/client.rbi +38 -0
  144. data/rbi/telnyx/models/ai/assistant_a2_a_agent.rbi +345 -0
  145. data/rbi/telnyx/models/ai/assistant_create_params.rbi +45 -12
  146. data/rbi/telnyx/models/ai/assistant_tool.rbi +423 -20
  147. data/rbi/telnyx/models/ai/assistant_update_params.rbi +73 -16
  148. data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +73 -16
  149. data/rbi/telnyx/models/ai/audio_transcribe_params.rbi +71 -20
  150. data/rbi/telnyx/models/ai/audio_transcribe_response.rbi +63 -97
  151. data/rbi/telnyx/models/ai/audio_transcription_response_word.rbi +108 -0
  152. data/rbi/telnyx/models/ai/chat_completion_request.rbi +228 -150
  153. data/rbi/telnyx/models/ai/flow_node.rbi +4 -2
  154. data/rbi/telnyx/models/ai/inference_embedding.rbi +53 -16
  155. data/rbi/telnyx/models/ai/inference_embedding_interruption_settings.rbi +10 -0
  156. data/rbi/telnyx/models/ai/inference_embedding_webhook_tool_params.rbi +29 -3
  157. data/rbi/telnyx/models/ai/openai/function_definition.rbi +56 -0
  158. data/rbi/telnyx/models/ai/post_conversation_settings.rbi +4 -4
  159. data/rbi/telnyx/models/ai/post_conversation_settings_req.rbi +4 -4
  160. data/rbi/telnyx/models/ai/privacy_settings.rbi +43 -3
  161. data/rbi/telnyx/models/ai/retrieval_tool.rbi +29 -3
  162. data/rbi/telnyx/models/ai/telephony_settings.rbi +197 -20
  163. data/rbi/telnyx/models/ai/tool_node.rbi +4 -2
  164. data/rbi/telnyx/models/ai/transcription_settings.rbi +25 -6
  165. data/rbi/telnyx/models/ai/transcription_settings_config.rbi +18 -16
  166. data/rbi/telnyx/models/ai/typesafe/v1_systemone_params.rbi +504 -0
  167. data/rbi/telnyx/models/ai/typesafe/v1_systemone_response.rbi +348 -0
  168. data/rbi/telnyx/models/bot_challenge_create_params.rbi +68 -0
  169. data/rbi/telnyx/models/bot_challenge_create_response.rbi +169 -0
  170. data/rbi/telnyx/models/bot_session_list_params.rbi +53 -0
  171. data/rbi/telnyx/models/bot_session_list_response.rbi +64 -0
  172. data/rbi/telnyx/models/bot_signup_create_params.rbi +179 -0
  173. data/rbi/telnyx/models/bot_signup_resend_magic_link_params.rbi +43 -0
  174. data/rbi/telnyx/models/call_dial_params.rbi +111 -10
  175. data/rbi/telnyx/models/calls/action_transfer_params.rbi +111 -10
  176. data/rbi/telnyx/models/calls/transcription_config.rbi +29 -5
  177. data/rbi/telnyx/models/calls/transcription_engine_assemblyai_config.rbi +11 -3
  178. data/rbi/telnyx/models/calls/transcription_engine_parakeet_config.rbi +5 -0
  179. data/rbi/telnyx/models/compute/func_retrieve_logs_params.rbi +130 -0
  180. data/rbi/telnyx/models/compute/func_retrieve_logs_response.rbi +410 -0
  181. data/rbi/telnyx/models/compute/func_retrieve_metric_aggregates_params.rbi +102 -0
  182. data/rbi/telnyx/models/compute/func_retrieve_metric_aggregates_response.rbi +231 -0
  183. data/rbi/telnyx/models/compute/func_retrieve_revisions_params.rbi +59 -0
  184. data/rbi/telnyx/models/compute/func_retrieve_revisions_response.rbi +213 -0
  185. data/rbi/telnyx/models/compute/func_retrieve_ship_inspection_params.rbi +40 -0
  186. data/rbi/telnyx/models/compute/func_retrieve_ship_inspection_response.rbi +252 -0
  187. data/rbi/telnyx/models/compute/funcs/export_create_params.rbi +84 -0
  188. data/rbi/telnyx/models/compute/funcs/export_delete_all_params.rbi +42 -0
  189. data/rbi/telnyx/models/compute/funcs/export_list_params.rbi +42 -0
  190. data/rbi/telnyx/models/compute/funcs/func_log_export_config_response.rbi +227 -0
  191. data/rbi/telnyx/models/compute/functions_observability_pagination_meta.rbi +70 -0
  192. data/rbi/telnyx/models/compute/logs_meta.rbi +38 -0
  193. data/rbi/telnyx/models/connection_retrieve_count_params.rbi +30 -0
  194. data/rbi/telnyx/models/connection_retrieve_count_response.rbi +353 -0
  195. data/rbi/telnyx/models/credential_connection.rbi +8 -2
  196. data/rbi/telnyx/models/detail_record_list_params.rbi +30 -2
  197. data/rbi/telnyx/models/email_inboxes/email_message.rbi +22 -3
  198. data/rbi/telnyx/models/email_message_batch_params.rbi +6 -0
  199. data/rbi/telnyx/models/email_message_batch_response.rbi +5 -0
  200. data/rbi/telnyx/models/fqdn_connection.rbi +8 -2
  201. data/rbi/telnyx/models/fqdn_connections/fqdn_authentication.rbi +8 -2
  202. data/rbi/telnyx/models/inbound_message_webhook_event.rbi +4 -173
  203. data/rbi/telnyx/models/machine_payment_account_credit_params.rbi +51 -0
  204. data/rbi/telnyx/models/machine_payment_account_credit_response.rbi +446 -0
  205. data/rbi/telnyx/models/message_retrieve_group_messages_response.rbi +6 -12
  206. data/rbi/telnyx/models/message_retrieve_response.rbi +3 -3
  207. data/rbi/telnyx/models/message_schedule_response.rbi +4 -6
  208. data/rbi/telnyx/models/message_send_group_mms_response.rbi +4 -6
  209. data/rbi/telnyx/models/message_send_long_code_response.rbi +4 -6
  210. data/rbi/telnyx/models/message_send_number_pool_response.rbi +4 -6
  211. data/rbi/telnyx/models/message_send_response.rbi +4 -6
  212. data/rbi/telnyx/models/message_send_short_code_response.rbi +4 -6
  213. data/rbi/telnyx/models/messaging_inbound_message.rbi +152 -0
  214. data/rbi/telnyx/models/messaging_inbound_message_payload.rbi +911 -192
  215. data/rbi/telnyx/models/messaging_messaging_profile.rbi +19 -0
  216. data/rbi/telnyx/models/messaging_outbound_message_payload.rbi +90 -16
  217. data/rbi/telnyx/models/messaging_profile_create_params.rbi +19 -0
  218. data/rbi/telnyx/models/messaging_profile_features.rbi +43 -0
  219. data/rbi/telnyx/models/messaging_profile_update_params.rbi +19 -0
  220. data/rbi/telnyx/models/noise_suppression_engine_list_params.rbi +30 -0
  221. data/rbi/telnyx/models/noise_suppression_engine_list_response.rbi +94 -0
  222. data/rbi/telnyx/models/number_order_status_update.rbi +34 -3
  223. data/rbi/telnyx/models/number_order_status_update_webhook_event.rbi +39 -3
  224. data/rbi/telnyx/models/outbound_message.rbi +5 -0
  225. data/rbi/telnyx/models/outbound_message_payload.rbi +74 -4
  226. data/rbi/telnyx/models/speech_to_text_retrieve_transcription_params.rbi +5 -0
  227. data/rbi/telnyx/models/success_response.rbi +36 -0
  228. data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +339 -0
  229. data/rbi/telnyx/models/texml/accounts/conferences/participant_participants_params.rbi +111 -0
  230. data/rbi/telnyx/models/texml/call_create_params.rbi +124 -0
  231. data/rbi/telnyx/models/texml/call_create_response.rbi +98 -0
  232. data/rbi/telnyx/models/texml_initiate_ai_call_params.rbi +103 -0
  233. data/rbi/telnyx/models/uac_connection.rbi +8 -2
  234. data/rbi/telnyx/models/uac_external_settings.rbi +10 -2
  235. data/rbi/telnyx/models/unsafe_unwrap_webhook_event.rbi +3 -1
  236. data/rbi/telnyx/models/unwrap_webhook_event.rbi +3 -1
  237. data/rbi/telnyx/models/voice_clone_create_from_upload_params.rbi +4 -4
  238. data/rbi/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rbi +213 -0
  239. data/rbi/telnyx/models/whatsapp/phone_number_get_response.rbi +213 -0
  240. data/rbi/telnyx/models/whatsapp/phone_number_list_response.rbi +213 -0
  241. data/rbi/telnyx/models/whatsapp/phone_number_retrieve_phone_number_params.rbi +40 -0
  242. data/rbi/telnyx/models/whatsapp/phone_number_retrieve_phone_number_response.rbi +401 -0
  243. data/rbi/telnyx/models/whatsapp_account_update.rbi +236 -0
  244. data/rbi/telnyx/models/whatsapp_message_echo.rbi +611 -0
  245. data/rbi/telnyx/models/x402/credit_account/payment_list_params.rbi +64 -0
  246. data/rbi/telnyx/models/x402/credit_account/payment_retrieve_params.rbi +42 -0
  247. data/rbi/telnyx/models/x402/credit_account/payment_retrieve_response.rbi +53 -0
  248. data/rbi/telnyx/models/x402/credit_account/x402_transaction_record.rbi +219 -0
  249. data/rbi/telnyx/models.rbi +29 -0
  250. data/rbi/telnyx/resources/ai/assistants/versions.rbi +31 -7
  251. data/rbi/telnyx/resources/ai/assistants.rbi +46 -12
  252. data/rbi/telnyx/resources/ai/audio.rbi +20 -9
  253. data/rbi/telnyx/resources/ai/openai/chat.rbi +9 -13
  254. data/rbi/telnyx/resources/ai/typesafe/v1.rbi +61 -0
  255. data/rbi/telnyx/resources/ai/typesafe.rbi +19 -0
  256. data/rbi/telnyx/resources/ai.rbi +3 -0
  257. data/rbi/telnyx/resources/bot_challenge.rbi +45 -0
  258. data/rbi/telnyx/resources/bot_sessions.rbi +45 -0
  259. data/rbi/telnyx/resources/bot_signup.rbi +87 -0
  260. data/rbi/telnyx/resources/calls/actions.rbi +6 -5
  261. data/rbi/telnyx/resources/calls.rbi +6 -5
  262. data/rbi/telnyx/resources/compute/funcs/export.rbi +86 -0
  263. data/rbi/telnyx/resources/compute/funcs.rbi +114 -0
  264. data/rbi/telnyx/resources/compute.rbi +15 -0
  265. data/rbi/telnyx/resources/connections.rbi +11 -0
  266. data/rbi/telnyx/resources/detail_records.rbi +12 -1
  267. data/rbi/telnyx/resources/email_messages.rbi +8 -2
  268. data/rbi/telnyx/resources/machine_payments.rbi +64 -0
  269. data/rbi/telnyx/resources/messaging_profiles.rbi +10 -0
  270. data/rbi/telnyx/resources/noise_suppression_engines.rbi +26 -0
  271. data/rbi/telnyx/resources/texml/accounts/conferences/participants.rbi +32 -0
  272. data/rbi/telnyx/resources/texml/calls.rbi +50 -0
  273. data/rbi/telnyx/resources/texml.rbi +36 -0
  274. data/rbi/telnyx/resources/voice_clones.rbi +4 -2
  275. data/rbi/telnyx/resources/webhooks.rbi +6 -2
  276. data/rbi/telnyx/resources/whatsapp/phone_numbers.rbi +18 -0
  277. data/rbi/telnyx/resources/x402/credit_account/payments.rbi +60 -0
  278. data/rbi/telnyx/resources/x402/credit_account.rbi +5 -0
  279. data/sig/telnyx/client.rbs +12 -0
  280. data/sig/telnyx/models/ai/assistant_a2_a_agent.rbs +140 -0
  281. data/sig/telnyx/models/ai/assistant_create_params.rbs +9 -0
  282. data/sig/telnyx/models/ai/assistant_tool.rbs +162 -23
  283. data/sig/telnyx/models/ai/assistant_update_params.rbs +9 -0
  284. data/sig/telnyx/models/ai/assistants/update_assistant.rbs +9 -0
  285. data/sig/telnyx/models/ai/audio_transcribe_params.rbs +10 -0
  286. data/sig/telnyx/models/ai/audio_transcribe_response.rbs +29 -43
  287. data/sig/telnyx/models/ai/audio_transcription_response_word.rbs +60 -0
  288. data/sig/telnyx/models/ai/chat_completion_request.rbs +90 -79
  289. data/sig/telnyx/models/ai/inference_embedding.rbs +9 -0
  290. data/sig/telnyx/models/ai/inference_embedding_interruption_settings.rbs +5 -0
  291. data/sig/telnyx/models/ai/inference_embedding_webhook_tool_params.rbs +10 -3
  292. data/sig/telnyx/models/ai/openai/function_definition.rbs +34 -0
  293. data/sig/telnyx/models/ai/privacy_settings.rbs +11 -3
  294. data/sig/telnyx/models/ai/retrieval_tool.rbs +10 -3
  295. data/sig/telnyx/models/ai/telephony_settings.rbs +59 -4
  296. data/sig/telnyx/models/ai/transcription_settings.rbs +4 -0
  297. data/sig/telnyx/models/ai/typesafe/v1_systemone_params.rbs +195 -0
  298. data/sig/telnyx/models/ai/typesafe/v1_systemone_response.rbs +141 -0
  299. data/sig/telnyx/models/bot_challenge_create_params.rbs +42 -0
  300. data/sig/telnyx/models/bot_challenge_create_response.rbs +72 -0
  301. data/sig/telnyx/models/bot_session_list_params.rbs +28 -0
  302. data/sig/telnyx/models/bot_session_list_response.rbs +26 -0
  303. data/sig/telnyx/models/bot_signup_create_params.rbs +89 -0
  304. data/sig/telnyx/models/bot_signup_resend_magic_link_params.rbs +20 -0
  305. data/sig/telnyx/models/call_dial_params.rbs +49 -0
  306. data/sig/telnyx/models/calls/action_transfer_params.rbs +49 -0
  307. data/sig/telnyx/models/calls/transcription_config.rbs +4 -0
  308. data/sig/telnyx/models/calls/transcription_engine_assemblyai_config.rbs +3 -1
  309. data/sig/telnyx/models/calls/transcription_engine_parakeet_config.rbs +3 -1
  310. data/sig/telnyx/models/compute/func_retrieve_logs_params.rbs +69 -0
  311. data/sig/telnyx/models/compute/func_retrieve_logs_response.rbs +210 -0
  312. data/sig/telnyx/models/compute/func_retrieve_metric_aggregates_params.rbs +66 -0
  313. data/sig/telnyx/models/compute/func_retrieve_metric_aggregates_response.rbs +149 -0
  314. data/sig/telnyx/models/compute/func_retrieve_revisions_params.rbs +38 -0
  315. data/sig/telnyx/models/compute/func_retrieve_revisions_response.rbs +131 -0
  316. data/sig/telnyx/models/compute/func_retrieve_ship_inspection_params.rbs +22 -0
  317. data/sig/telnyx/models/compute/func_retrieve_ship_inspection_response.rbs +117 -0
  318. data/sig/telnyx/models/compute/funcs/export_create_params.rbs +50 -0
  319. data/sig/telnyx/models/compute/funcs/export_delete_all_params.rbs +27 -0
  320. data/sig/telnyx/models/compute/funcs/export_list_params.rbs +27 -0
  321. data/sig/telnyx/models/compute/funcs/func_log_export_config_response.rbs +115 -0
  322. data/sig/telnyx/models/compute/functions_observability_pagination_meta.rbs +45 -0
  323. data/sig/telnyx/models/compute/logs_meta.rbs +21 -0
  324. data/sig/telnyx/models/connection_retrieve_count_params.rbs +15 -0
  325. data/sig/telnyx/models/connection_retrieve_count_response.rbs +169 -0
  326. data/sig/telnyx/models/email_inboxes/email_message.rbs +12 -3
  327. data/sig/telnyx/models/email_message_batch_response.rbs +2 -0
  328. data/sig/telnyx/models/inbound_message_webhook_event.rbs +6 -79
  329. data/sig/telnyx/models/machine_payment_account_credit_params.rbs +23 -0
  330. data/sig/telnyx/models/machine_payment_account_credit_response.rbs +164 -0
  331. data/sig/telnyx/models/message_retrieve_group_messages_response.rbs +6 -8
  332. data/sig/telnyx/models/message_retrieve_response.rbs +1 -2
  333. data/sig/telnyx/models/message_schedule_response.rbs +6 -7
  334. data/sig/telnyx/models/message_send_group_mms_response.rbs +6 -6
  335. data/sig/telnyx/models/message_send_long_code_response.rbs +6 -6
  336. data/sig/telnyx/models/message_send_number_pool_response.rbs +6 -6
  337. data/sig/telnyx/models/message_send_response.rbs +6 -7
  338. data/sig/telnyx/models/message_send_short_code_response.rbs +6 -6
  339. data/sig/telnyx/models/messaging_inbound_message.rbs +76 -0
  340. data/sig/telnyx/models/messaging_inbound_message_payload.rbs +438 -97
  341. data/sig/telnyx/models/messaging_messaging_profile.rbs +5 -0
  342. data/sig/telnyx/models/messaging_outbound_message_payload.rbs +39 -1
  343. data/sig/telnyx/models/messaging_profile_create_params.rbs +5 -0
  344. data/sig/telnyx/models/messaging_profile_features.rbs +15 -0
  345. data/sig/telnyx/models/messaging_profile_update_params.rbs +5 -0
  346. data/sig/telnyx/models/noise_suppression_engine_list_params.rbs +15 -0
  347. data/sig/telnyx/models/noise_suppression_engine_list_response.rbs +43 -0
  348. data/sig/telnyx/models/number_order_status_update.rbs +14 -4
  349. data/sig/telnyx/models/number_order_status_update_webhook_event.rbs +14 -4
  350. data/sig/telnyx/models/outbound_message.rbs +2 -1
  351. data/sig/telnyx/models/outbound_message_payload.rbs +45 -7
  352. data/sig/telnyx/models/speech_to_text_retrieve_transcription_params.rbs +2 -0
  353. data/sig/telnyx/models/success_response.rbs +15 -0
  354. data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +159 -0
  355. data/sig/telnyx/models/texml/accounts/conferences/participant_participants_params.rbs +49 -0
  356. data/sig/telnyx/models/texml/call_create_params.rbs +72 -0
  357. data/sig/telnyx/models/texml/call_create_response.rbs +47 -0
  358. data/sig/telnyx/models/texml_initiate_ai_call_params.rbs +49 -0
  359. data/sig/telnyx/models/unsafe_unwrap_webhook_event.rbs +2 -0
  360. data/sig/telnyx/models/unwrap_webhook_event.rbs +2 -0
  361. data/sig/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rbs +90 -0
  362. data/sig/telnyx/models/whatsapp/phone_number_get_response.rbs +90 -0
  363. data/sig/telnyx/models/whatsapp/phone_number_list_response.rbs +90 -0
  364. data/sig/telnyx/models/whatsapp/phone_number_retrieve_phone_number_params.rbs +25 -0
  365. data/sig/telnyx/models/whatsapp/phone_number_retrieve_phone_number_response.rbs +201 -0
  366. data/sig/telnyx/models/whatsapp_account_update.rbs +107 -0
  367. data/sig/telnyx/models/whatsapp_message_echo.rbs +291 -0
  368. data/sig/telnyx/models/x402/credit_account/payment_list_params.rbs +36 -0
  369. data/sig/telnyx/models/x402/credit_account/payment_retrieve_params.rbs +27 -0
  370. data/sig/telnyx/models/x402/credit_account/payment_retrieve_response.rbs +26 -0
  371. data/sig/telnyx/models/x402/credit_account/x402_transaction_record.rbs +104 -0
  372. data/sig/telnyx/models.rbs +26 -0
  373. data/sig/telnyx/resources/ai/assistants/versions.rbs +1 -0
  374. data/sig/telnyx/resources/ai/assistants.rbs +2 -0
  375. data/sig/telnyx/resources/ai/openai/chat.rbs +1 -4
  376. data/sig/telnyx/resources/ai/typesafe/v1.rbs +17 -0
  377. data/sig/telnyx/resources/ai/typesafe.rbs +11 -0
  378. data/sig/telnyx/resources/ai.rbs +2 -0
  379. data/sig/telnyx/resources/bot_challenge.rbs +14 -0
  380. data/sig/telnyx/resources/bot_sessions.rbs +13 -0
  381. data/sig/telnyx/resources/bot_signup.rbs +24 -0
  382. data/sig/telnyx/resources/compute/funcs/export.rbs +30 -0
  383. data/sig/telnyx/resources/compute/funcs.rbs +43 -0
  384. data/sig/telnyx/resources/compute.rbs +9 -0
  385. data/sig/telnyx/resources/connections.rbs +4 -0
  386. data/sig/telnyx/resources/machine_payments.rbs +12 -0
  387. data/sig/telnyx/resources/messaging_profiles.rbs +2 -0
  388. data/sig/telnyx/resources/noise_suppression_engines.rbs +11 -0
  389. data/sig/telnyx/resources/texml/accounts/conferences/participants.rbs +7 -0
  390. data/sig/telnyx/resources/texml/calls.rbs +19 -0
  391. data/sig/telnyx/resources/texml.rbs +9 -0
  392. data/sig/telnyx/resources/webhooks.rbs +6 -2
  393. data/sig/telnyx/resources/whatsapp/phone_numbers.rbs +5 -0
  394. data/sig/telnyx/resources/x402/credit_account/payments.rbs +22 -0
  395. data/sig/telnyx/resources/x402/credit_account.rbs +2 -0
  396. metadata +170 -2
@@ -0,0 +1,53 @@
1
+ # typed: strong
2
+
3
+ module Telnyx
4
+ module Models
5
+ module X402
6
+ module CreditAccount
7
+ class PaymentRetrieveResponse < Telnyx::Internal::Type::BaseModel
8
+ OrHash =
9
+ T.type_alias do
10
+ T.any(
11
+ Telnyx::Models::X402::CreditAccount::PaymentRetrieveResponse,
12
+ Telnyx::Internal::AnyHash
13
+ )
14
+ end
15
+
16
+ # An x402 payment transaction.
17
+ sig do
18
+ returns(
19
+ T.nilable(Telnyx::X402::CreditAccount::X402TransactionRecord)
20
+ )
21
+ end
22
+ attr_reader :data
23
+
24
+ sig do
25
+ params(
26
+ data: Telnyx::X402::CreditAccount::X402TransactionRecord::OrHash
27
+ ).void
28
+ end
29
+ attr_writer :data
30
+
31
+ sig do
32
+ params(
33
+ data: Telnyx::X402::CreditAccount::X402TransactionRecord::OrHash
34
+ ).returns(T.attached_class)
35
+ end
36
+ def self.new(
37
+ # An x402 payment transaction.
38
+ data: nil
39
+ )
40
+ end
41
+
42
+ sig do
43
+ override.returns(
44
+ { data: Telnyx::X402::CreditAccount::X402TransactionRecord }
45
+ )
46
+ end
47
+ def to_hash
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,219 @@
1
+ # typed: strong
2
+
3
+ module Telnyx
4
+ module Models
5
+ module X402
6
+ module CreditAccount
7
+ class X402TransactionRecord < Telnyx::Internal::Type::BaseModel
8
+ OrHash =
9
+ T.type_alias do
10
+ T.any(
11
+ Telnyx::X402::CreditAccount::X402TransactionRecord,
12
+ Telnyx::Internal::AnyHash
13
+ )
14
+ end
15
+
16
+ # Unique transaction identifier.
17
+ sig { returns(T.nilable(String)) }
18
+ attr_reader :id
19
+
20
+ sig { params(id: String).void }
21
+ attr_writer :id
22
+
23
+ # The transaction amount in the specified currency.
24
+ sig { returns(T.nilable(String)) }
25
+ attr_reader :amount
26
+
27
+ sig { params(amount: String).void }
28
+ attr_writer :amount
29
+
30
+ # ISO 8601 timestamp when the transaction was created.
31
+ sig { returns(T.nilable(Time)) }
32
+ attr_reader :created_at
33
+
34
+ sig { params(created_at: Time).void }
35
+ attr_writer :created_at
36
+
37
+ # The currency of the transaction amount (e.g. USD).
38
+ sig { returns(T.nilable(String)) }
39
+ attr_reader :currency
40
+
41
+ sig { params(currency: String).void }
42
+ attr_writer :currency
43
+
44
+ # The original quote ID associated with this transaction.
45
+ sig { returns(T.nilable(String)) }
46
+ attr_reader :quote_id
47
+
48
+ sig { params(quote_id: String).void }
49
+ attr_writer :quote_id
50
+
51
+ sig do
52
+ returns(
53
+ T.nilable(
54
+ Telnyx::X402::CreditAccount::X402TransactionRecord::RecordType::TaggedSymbol
55
+ )
56
+ )
57
+ end
58
+ attr_reader :record_type
59
+
60
+ sig do
61
+ params(
62
+ record_type:
63
+ Telnyx::X402::CreditAccount::X402TransactionRecord::RecordType::OrSymbol
64
+ ).void
65
+ end
66
+ attr_writer :record_type
67
+
68
+ # The settlement status of the transaction. x402 transactions are created after
69
+ # successful on-chain settlement, so the status is `settled`.
70
+ sig do
71
+ returns(
72
+ T.nilable(
73
+ Telnyx::X402::CreditAccount::X402TransactionRecord::Status::TaggedSymbol
74
+ )
75
+ )
76
+ end
77
+ attr_reader :status
78
+
79
+ sig do
80
+ params(
81
+ status:
82
+ Telnyx::X402::CreditAccount::X402TransactionRecord::Status::OrSymbol
83
+ ).void
84
+ end
85
+ attr_writer :status
86
+
87
+ # The on-chain transaction hash, if available.
88
+ sig { returns(T.nilable(String)) }
89
+ attr_accessor :tx_hash
90
+
91
+ # ISO 8601 timestamp when the transaction was last updated.
92
+ sig { returns(T.nilable(Time)) }
93
+ attr_reader :updated_at
94
+
95
+ sig { params(updated_at: Time).void }
96
+ attr_writer :updated_at
97
+
98
+ # An x402 payment transaction.
99
+ sig do
100
+ params(
101
+ id: String,
102
+ amount: String,
103
+ created_at: Time,
104
+ currency: String,
105
+ quote_id: String,
106
+ record_type:
107
+ Telnyx::X402::CreditAccount::X402TransactionRecord::RecordType::OrSymbol,
108
+ status:
109
+ Telnyx::X402::CreditAccount::X402TransactionRecord::Status::OrSymbol,
110
+ tx_hash: T.nilable(String),
111
+ updated_at: Time
112
+ ).returns(T.attached_class)
113
+ end
114
+ def self.new(
115
+ # Unique transaction identifier.
116
+ id: nil,
117
+ # The transaction amount in the specified currency.
118
+ amount: nil,
119
+ # ISO 8601 timestamp when the transaction was created.
120
+ created_at: nil,
121
+ # The currency of the transaction amount (e.g. USD).
122
+ currency: nil,
123
+ # The original quote ID associated with this transaction.
124
+ quote_id: nil,
125
+ record_type: nil,
126
+ # The settlement status of the transaction. x402 transactions are created after
127
+ # successful on-chain settlement, so the status is `settled`.
128
+ status: nil,
129
+ # The on-chain transaction hash, if available.
130
+ tx_hash: nil,
131
+ # ISO 8601 timestamp when the transaction was last updated.
132
+ updated_at: nil
133
+ )
134
+ end
135
+
136
+ sig do
137
+ override.returns(
138
+ {
139
+ id: String,
140
+ amount: String,
141
+ created_at: Time,
142
+ currency: String,
143
+ quote_id: String,
144
+ record_type:
145
+ Telnyx::X402::CreditAccount::X402TransactionRecord::RecordType::TaggedSymbol,
146
+ status:
147
+ Telnyx::X402::CreditAccount::X402TransactionRecord::Status::TaggedSymbol,
148
+ tx_hash: T.nilable(String),
149
+ updated_at: Time
150
+ }
151
+ )
152
+ end
153
+ def to_hash
154
+ end
155
+
156
+ module RecordType
157
+ extend Telnyx::Internal::Type::Enum
158
+
159
+ TaggedSymbol =
160
+ T.type_alias do
161
+ T.all(
162
+ Symbol,
163
+ Telnyx::X402::CreditAccount::X402TransactionRecord::RecordType
164
+ )
165
+ end
166
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
167
+
168
+ X402_TRANSACTION =
169
+ T.let(
170
+ :x402_transaction,
171
+ Telnyx::X402::CreditAccount::X402TransactionRecord::RecordType::TaggedSymbol
172
+ )
173
+
174
+ sig do
175
+ override.returns(
176
+ T::Array[
177
+ Telnyx::X402::CreditAccount::X402TransactionRecord::RecordType::TaggedSymbol
178
+ ]
179
+ )
180
+ end
181
+ def self.values
182
+ end
183
+ end
184
+
185
+ # The settlement status of the transaction. x402 transactions are created after
186
+ # successful on-chain settlement, so the status is `settled`.
187
+ module Status
188
+ extend Telnyx::Internal::Type::Enum
189
+
190
+ TaggedSymbol =
191
+ T.type_alias do
192
+ T.all(
193
+ Symbol,
194
+ Telnyx::X402::CreditAccount::X402TransactionRecord::Status
195
+ )
196
+ end
197
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
198
+
199
+ SETTLED =
200
+ T.let(
201
+ :settled,
202
+ Telnyx::X402::CreditAccount::X402TransactionRecord::Status::TaggedSymbol
203
+ )
204
+
205
+ sig do
206
+ override.returns(
207
+ T::Array[
208
+ Telnyx::X402::CreditAccount::X402TransactionRecord::Status::TaggedSymbol
209
+ ]
210
+ )
211
+ end
212
+ def self.values
213
+ end
214
+ end
215
+ end
216
+ end
217
+ end
218
+ end
219
+ end
@@ -132,6 +132,15 @@ module Telnyx
132
132
 
133
133
  BookAppointmentToolParams = Telnyx::Models::BookAppointmentToolParams
134
134
 
135
+ BotChallengeCreateParams = Telnyx::Models::BotChallengeCreateParams
136
+
137
+ BotSessionListParams = Telnyx::Models::BotSessionListParams
138
+
139
+ BotSignupCreateParams = Telnyx::Models::BotSignupCreateParams
140
+
141
+ BotSignupResendMagicLinkParams =
142
+ Telnyx::Models::BotSignupResendMagicLinkParams
143
+
135
144
  BrandedCallingPaginationMeta = Telnyx::Models::BrandedCallingPaginationMeta
136
145
 
137
146
  BulkMessagingSettingsUpdatePhoneNumbers =
@@ -392,6 +401,8 @@ module Telnyx
392
401
 
393
402
  CommentRetrieveParams = Telnyx::Models::CommentRetrieveParams
394
403
 
404
+ Compute = Telnyx::Models::Compute
405
+
395
406
  Conference = Telnyx::Models::Conference
396
407
 
397
408
  ConferenceCreated = Telnyx::Models::ConferenceCreated
@@ -498,6 +509,8 @@ module Telnyx
498
509
  ConnectionNoiseSuppressionDetails =
499
510
  Telnyx::Models::ConnectionNoiseSuppressionDetails
500
511
 
512
+ ConnectionRetrieveCountParams = Telnyx::Models::ConnectionRetrieveCountParams
513
+
501
514
  ConnectionRetrieveParams = Telnyx::Models::ConnectionRetrieveParams
502
515
 
503
516
  ConnectionRtcpSettings = Telnyx::Models::ConnectionRtcpSettings
@@ -1110,6 +1123,9 @@ module Telnyx
1110
1123
 
1111
1124
  ListRetrieveByZoneParams = Telnyx::Models::ListRetrieveByZoneParams
1112
1125
 
1126
+ MachinePaymentAccountCreditParams =
1127
+ Telnyx::Models::MachinePaymentAccountCreditParams
1128
+
1113
1129
  ManagedAccount = Telnyx::Models::ManagedAccount
1114
1130
 
1115
1131
  ManagedAccountBalance = Telnyx::Models::ManagedAccountBalance
@@ -1251,6 +1267,8 @@ module Telnyx
1251
1267
  MessagingHostedNumberUpdateParams =
1252
1268
  Telnyx::Models::MessagingHostedNumberUpdateParams
1253
1269
 
1270
+ MessagingInboundMessage = Telnyx::Models::MessagingInboundMessage
1271
+
1254
1272
  MessagingInboundMessagePayload =
1255
1273
  Telnyx::Models::MessagingInboundMessagePayload
1256
1274
 
@@ -1280,6 +1298,8 @@ module Telnyx
1280
1298
 
1281
1299
  MessagingProfileDeleteParams = Telnyx::Models::MessagingProfileDeleteParams
1282
1300
 
1301
+ MessagingProfileFeatures = Telnyx::Models::MessagingProfileFeatures
1302
+
1283
1303
  MessagingProfileListAlphanumericSenderIDsParams =
1284
1304
  Telnyx::Models::MessagingProfileListAlphanumericSenderIDsParams
1285
1305
 
@@ -1387,6 +1407,9 @@ module Telnyx
1387
1407
 
1388
1408
  NetworkUpdateParams = Telnyx::Models::NetworkUpdateParams
1389
1409
 
1410
+ NoiseSuppressionEngineListParams =
1411
+ Telnyx::Models::NoiseSuppressionEngineListParams
1412
+
1390
1413
  NotificationChannel = Telnyx::Models::NotificationChannel
1391
1414
 
1392
1415
  NotificationChannelCreateParams =
@@ -2074,6 +2097,8 @@ module Telnyx
2074
2097
  SubNumberOrderUpdateRequirementGroupParams =
2075
2098
  Telnyx::Models::SubNumberOrderUpdateRequirementGroupParams
2076
2099
 
2100
+ SuccessResponse = Telnyx::Models::SuccessResponse
2101
+
2077
2102
  SuppressedRecipient = Telnyx::Models::SuppressedRecipient
2078
2103
 
2079
2104
  TelephonyCredential = Telnyx::Models::TelephonyCredential
@@ -2386,6 +2411,8 @@ module Telnyx
2386
2411
 
2387
2412
  Whatsapp = Telnyx::Models::Whatsapp
2388
2413
 
2414
+ WhatsappAccountUpdate = Telnyx::Models::WhatsappAccountUpdate
2415
+
2389
2416
  WhatsappContact = Telnyx::Models::WhatsappContact
2390
2417
 
2391
2418
  WhatsappInteractive = Telnyx::Models::WhatsappInteractive
@@ -2396,6 +2423,8 @@ module Telnyx
2396
2423
 
2397
2424
  WhatsappMessageContent = Telnyx::Models::WhatsappMessageContent
2398
2425
 
2426
+ WhatsappMessageEcho = Telnyx::Models::WhatsappMessageEcho
2427
+
2399
2428
  WhatsappMessageTemplateDeleteParams =
2400
2429
  Telnyx::Models::WhatsappMessageTemplateDeleteParams
2401
2430
 
@@ -32,6 +32,7 @@ module Telnyx
32
32
  params(
33
33
  version_id: String,
34
34
  assistant_id: String,
35
+ a2a_agents: T::Array[Telnyx::AI::AssistantA2AAgent::OrHash],
35
36
  conversation_flow: Telnyx::AI::ConversationFlowReq::OrHash,
36
37
  description: String,
37
38
  dynamic_variables: T::Hash[Symbol, T.anything],
@@ -61,11 +62,12 @@ module Telnyx
61
62
  tools:
62
63
  T::Array[
63
64
  T.any(
65
+ Telnyx::AI::AssistantTool::Function::OrHash,
64
66
  Telnyx::AI::InferenceEmbeddingWebhookToolParams::OrHash,
65
67
  Telnyx::AI::AssistantTool::ClientSideTool::OrHash,
66
68
  Telnyx::AI::RetrievalTool::OrHash,
67
69
  Telnyx::AI::AssistantTool::Handoff::OrHash,
68
- Telnyx::AI::HangupTool::OrHash,
70
+ Telnyx::AI::AssistantTool::Hangup::OrHash,
69
71
  Telnyx::AI::AssistantTool::Transfer::OrHash,
70
72
  Telnyx::AI::AssistantTool::Invite::OrHash,
71
73
  Telnyx::AI::AssistantTool::Refer::OrHash,
@@ -88,6 +90,17 @@ module Telnyx
88
90
  version_id,
89
91
  # Path param: Unique identifier of the assistant.
90
92
  assistant_id:,
93
+ # Body param: A2A agents this assistant can delegate to. Tools are not stored
94
+ # here: at the start of every conversation each agent's card is fetched and one
95
+ # tool is derived per skill the card advertises, named `a2a_<name>_<skill_id>`.
96
+ # The following limits are not enforced when the assistant is saved, and anything
97
+ # past them is dropped when the conversation starts: 64 agents per assistant, 64
98
+ # skills per card, 128 derived tools per assistant, and a 6 second budget for all
99
+ # card fetches combined. An agent whose card cannot be fetched costs the assistant
100
+ # that capability for the conversation; it does not fail the call. Omit this field
101
+ # to leave the assistant's agents unchanged; send an empty array to remove them
102
+ # all.
103
+ a2a_agents: nil,
91
104
  # Body param: Conversation flow as supplied by API clients (create / update).
92
105
  #
93
106
  # A directed graph of `FlowNodeReq` connected by `FlowEdge`s. Validation enforces
@@ -167,10 +180,10 @@ module Telnyx
167
180
  observability_settings: nil,
168
181
  # Body param: Configuration for post-conversation processing. When enabled, the
169
182
  # assistant receives one additional LLM turn after the conversation ends, allowing
170
- # it to execute tool calls such as logging to a CRM or sending a summary. The
171
- # assistant can execute multiple parallel or sequential tools during this phase.
172
- # Telephony-control tools (e.g. hangup, transfer) are unavailable
173
- # post-conversation. Beta feature.
183
+ # it to execute final tool calls such as sending a summary or updating a record
184
+ # via webhook or function tools. Integration and MCP server tools are not
185
+ # available post-conversation; call-control tools (e.g. hangup, transfer) are also
186
+ # unavailable. Beta feature.
174
187
  post_conversation_settings: nil,
175
188
  # Body param
176
189
  privacy_settings: nil,
@@ -180,11 +193,22 @@ module Telnyx
180
193
  # Body param
181
194
  telephony_settings: nil,
182
195
  # Body param: IDs of shared tools to attach to the assistant. New integrations
183
- # should prefer `tool_ids` over inline `tools`.
196
+ # should prefer `tool_ids` over inline `tools`. On update, a sent `tool_ids` array
197
+ # fully replaces the assistant's attached shared tools; omit the field to leave
198
+ # them unchanged. Single-instance tool types are counted across inline `tools` and
199
+ # `tool_ids` combined, so attaching a shared tool of such a type when an instance
200
+ # already exists returns HTTP 400 with error code 10015.
184
201
  tool_ids: nil,
185
202
  # Body param: Deprecated for new integrations. Inline tool definitions available
186
203
  # to the assistant. Prefer `tool_ids` to attach shared tools created with the AI
187
- # Tools endpoints.
204
+ # Tools endpoints. On update, a sent `tools` array fully replaces the assistant's
205
+ # inline tools; omit the field to leave the inline tools unchanged. Each tool type
206
+ # except `function`, `webhook`, and `client_side_tool` allows at most one instance
207
+ # per assistant, counted across inline `tools` and shared `tool_ids` combined —
208
+ # sending a duplicate of such a type returns HTTP 400 with error code 10015.
209
+ # Responses merge shared tools into `tools` with `shared: true`; when updating,
210
+ # omit those tools from the `tools` array and manage them through `tool_ids`
211
+ # instead.
188
212
  tools: nil,
189
213
  # Body param
190
214
  transcription: nil,
@@ -39,6 +39,7 @@ module Telnyx
39
39
  params(
40
40
  instructions: String,
41
41
  name: String,
42
+ a2a_agents: T::Array[Telnyx::AI::AssistantA2AAgent::OrHash],
42
43
  conversation_flow: Telnyx::AI::ConversationFlowReq::OrHash,
43
44
  description: String,
44
45
  dynamic_variables: T::Hash[Symbol, T.anything],
@@ -66,11 +67,12 @@ module Telnyx
66
67
  tools:
67
68
  T::Array[
68
69
  T.any(
70
+ Telnyx::AI::AssistantTool::Function::OrHash,
69
71
  Telnyx::AI::InferenceEmbeddingWebhookToolParams::OrHash,
70
72
  Telnyx::AI::AssistantTool::ClientSideTool::OrHash,
71
73
  Telnyx::AI::RetrievalTool::OrHash,
72
74
  Telnyx::AI::AssistantTool::Handoff::OrHash,
73
- Telnyx::AI::HangupTool::OrHash,
75
+ Telnyx::AI::AssistantTool::Hangup::OrHash,
74
76
  Telnyx::AI::AssistantTool::Transfer::OrHash,
75
77
  Telnyx::AI::AssistantTool::Invite::OrHash,
76
78
  Telnyx::AI::AssistantTool::Refer::OrHash,
@@ -94,6 +96,15 @@ module Telnyx
94
96
  instructions:,
95
97
  # Body param
96
98
  name:,
99
+ # Body param: A2A agents this assistant can delegate to. Tools are not stored
100
+ # here: at the start of every conversation each agent's card is fetched and one
101
+ # tool is derived per skill the card advertises, named `a2a_<name>_<skill_id>`.
102
+ # The following limits are not enforced when the assistant is saved, and anything
103
+ # past them is dropped when the conversation starts: 64 agents per assistant, 64
104
+ # skills per card, 128 derived tools per assistant, and a 6 second budget for all
105
+ # card fetches combined. An agent whose card cannot be fetched costs the assistant
106
+ # that capability for the conversation; it does not fail the call.
107
+ a2a_agents: nil,
97
108
  # Body param: Conversation flow as supplied by API clients (create / update).
98
109
  #
99
110
  # A directed graph of `FlowNodeReq` connected by `FlowEdge`s. Validation enforces
@@ -168,10 +179,10 @@ module Telnyx
168
179
  observability_settings: nil,
169
180
  # Body param: Configuration for post-conversation processing. When enabled, the
170
181
  # assistant receives one additional LLM turn after the conversation ends, allowing
171
- # it to execute tool calls such as logging to a CRM or sending a summary. The
172
- # assistant can execute multiple parallel or sequential tools during this phase.
173
- # Telephony-control tools (e.g. hangup, transfer) are unavailable
174
- # post-conversation. Beta feature.
182
+ # it to execute final tool calls such as sending a summary or updating a record
183
+ # via webhook or function tools. Integration and MCP server tools are not
184
+ # available post-conversation; call-control tools (e.g. hangup, transfer) are also
185
+ # unavailable. Beta feature.
175
186
  post_conversation_settings: nil,
176
187
  # Body param
177
188
  privacy_settings: nil,
@@ -238,6 +249,7 @@ module Telnyx
238
249
  sig do
239
250
  params(
240
251
  assistant_id: String,
252
+ a2a_agents: T::Array[Telnyx::AI::AssistantA2AAgent::OrHash],
241
253
  conversation_flow: Telnyx::AI::ConversationFlowReq::OrHash,
242
254
  description: String,
243
255
  dynamic_variables: T::Hash[Symbol, T.anything],
@@ -268,11 +280,12 @@ module Telnyx
268
280
  tools:
269
281
  T::Array[
270
282
  T.any(
283
+ Telnyx::AI::AssistantTool::Function::OrHash,
271
284
  Telnyx::AI::InferenceEmbeddingWebhookToolParams::OrHash,
272
285
  Telnyx::AI::AssistantTool::ClientSideTool::OrHash,
273
286
  Telnyx::AI::RetrievalTool::OrHash,
274
287
  Telnyx::AI::AssistantTool::Handoff::OrHash,
275
- Telnyx::AI::HangupTool::OrHash,
288
+ Telnyx::AI::AssistantTool::Hangup::OrHash,
276
289
  Telnyx::AI::AssistantTool::Transfer::OrHash,
277
290
  Telnyx::AI::AssistantTool::Invite::OrHash,
278
291
  Telnyx::AI::AssistantTool::Refer::OrHash,
@@ -293,6 +306,16 @@ module Telnyx
293
306
  def update(
294
307
  # Unique identifier of the assistant.
295
308
  assistant_id,
309
+ # A2A agents this assistant can delegate to. Tools are not stored here: at the
310
+ # start of every conversation each agent's card is fetched and one tool is derived
311
+ # per skill the card advertises, named `a2a_<name>_<skill_id>`. The following
312
+ # limits are not enforced when the assistant is saved, and anything past them is
313
+ # dropped when the conversation starts: 64 agents per assistant, 64 skills per
314
+ # card, 128 derived tools per assistant, and a 6 second budget for all card
315
+ # fetches combined. An agent whose card cannot be fetched costs the assistant that
316
+ # capability for the conversation; it does not fail the call. Omit this field to
317
+ # leave the assistant's agents unchanged; send an empty array to remove them all.
318
+ a2a_agents: nil,
296
319
  # Conversation flow as supplied by API clients (create / update).
297
320
  #
298
321
  # A directed graph of `FlowNodeReq` connected by `FlowEdge`s. Validation enforces
@@ -363,10 +386,10 @@ module Telnyx
363
386
  observability_settings: nil,
364
387
  # Configuration for post-conversation processing. When enabled, the assistant
365
388
  # receives one additional LLM turn after the conversation ends, allowing it to
366
- # execute tool calls such as logging to a CRM or sending a summary. The assistant
367
- # can execute multiple parallel or sequential tools during this phase.
368
- # Telephony-control tools (e.g. hangup, transfer) are unavailable
369
- # post-conversation. Beta feature.
389
+ # execute final tool calls such as sending a summary or updating a record via
390
+ # webhook or function tools. Integration and MCP server tools are not available
391
+ # post-conversation; call-control tools (e.g. hangup, transfer) are also
392
+ # unavailable. Beta feature.
370
393
  post_conversation_settings: nil,
371
394
  privacy_settings: nil,
372
395
  # Indicates whether the assistant should be promoted to the main version. Defaults
@@ -377,11 +400,22 @@ module Telnyx
377
400
  tags: nil,
378
401
  telephony_settings: nil,
379
402
  # IDs of shared tools to attach to the assistant. New integrations should prefer
380
- # `tool_ids` over inline `tools`.
403
+ # `tool_ids` over inline `tools`. On update, a sent `tool_ids` array fully
404
+ # replaces the assistant's attached shared tools; omit the field to leave them
405
+ # unchanged. Single-instance tool types are counted across inline `tools` and
406
+ # `tool_ids` combined, so attaching a shared tool of such a type when an instance
407
+ # already exists returns HTTP 400 with error code 10015.
381
408
  tool_ids: nil,
382
409
  # Deprecated for new integrations. Inline tool definitions available to the
383
410
  # assistant. Prefer `tool_ids` to attach shared tools created with the AI Tools
384
- # endpoints.
411
+ # endpoints. On update, a sent `tools` array fully replaces the assistant's inline
412
+ # tools; omit the field to leave the inline tools unchanged. Each tool type except
413
+ # `function`, `webhook`, and `client_side_tool` allows at most one instance per
414
+ # assistant, counted across inline `tools` and shared `tool_ids` combined —
415
+ # sending a duplicate of such a type returns HTTP 400 with error code 10015.
416
+ # Responses merge shared tools into `tools` with `shared: true`; when updating,
417
+ # omit those tools from the `tools` array and manage them through `tool_ids`
418
+ # instead.
385
419
  tools: nil,
386
420
  transcription: nil,
387
421
  # Human-readable name for the assistant version.
@@ -24,25 +24,36 @@ module Telnyx
24
24
  def transcribe(
25
25
  # ID of the model to use. `distil-whisper/distil-large-v2` is lower latency but
26
26
  # English-only. `openai/whisper-large-v3-turbo` is multi-lingual but slightly
27
- # higher latency. `deepgram/nova-3` supports English variants (en, en-US, en-GB,
28
- # en-AU, en-NZ, en-IN) and only accepts mp3/wav files.
27
+ # higher latency. The `deepgram/*` models only accept mp3/wav files:
28
+ # `deepgram/nova-3` covers ~49 languages plus `multi` and `deepgram/nova-2` covers
29
+ # ~33, while the `-medical` variants are tuned for clinical vocabulary and accept
30
+ # English only (`en` and its regional variants, e.g. `en-US`, `en-GB`).
31
+ # `nvidia/parakeet-v3` is multilingual with automatic language detection;
32
+ # `omi-health/omi-med-stt-v1` is a medical model, English only.
29
33
  model:,
30
34
  # The audio file object to transcribe, in one of these formats: flac, mp3, mp4,
31
35
  # mpeg, mpga, m4a, ogg, wav, or webm. File uploads are limited to 100 MB. Cannot
32
- # be used together with `file_url`. Note: `deepgram/nova-3` only supports mp3 and
33
- # wav formats.
36
+ # be used together with `file_url`. Note: the `deepgram/*` models only support mp3
37
+ # and wav formats.
34
38
  file: nil,
35
39
  # Link to audio file in one of these formats: flac, mp3, mp4, mpeg, mpga, m4a,
36
40
  # ogg, wav, or webm. Support for hosted files is limited to 100MB. Cannot be used
37
- # together with `file`. Note: `deepgram/nova-3` only supports mp3 and wav formats.
41
+ # together with `file`. Note: the `deepgram/*` models only support mp3 and wav
42
+ # formats.
38
43
  file_url: nil,
39
- # The language of the audio to be transcribed. For `deepgram/nova-3`, only English
40
- # variants are supported: `en`, `en-US`, `en-GB`, `en-AU`, `en-NZ`, `en-IN`. For
44
+ # The language of the audio to be transcribed. `deepgram/nova-3` supports ~49
45
+ # languages plus `multi`, and `deepgram/nova-2` supports ~33 plus `multi`; the
46
+ # `-medical` variants are English only (`en` and its regional variants, e.g.
47
+ # `en-US`, `en-GB`). Deepgram models validate on the base language and forward the
48
+ # full tag, so regional variants such as `de-CH` and `pt-BR` are accepted where
49
+ # the base language is supported; an unsupported language returns a 400. For
41
50
  # `openai/whisper-large-v3-turbo`, supports multiple languages.
42
51
  # `distil-whisper/distil-large-v2` does not support language parameter.
52
+ # `nvidia/parakeet-v3` detects the language automatically;
53
+ # `omi-health/omi-med-stt-v1` is English only.
43
54
  language: nil,
44
- # Additional model-specific configuration parameters. Only allowed with
45
- # `deepgram/nova-3` model. Can include Deepgram-specific options such as
55
+ # Additional model-specific configuration parameters. Only allowed with the
56
+ # `deepgram/*` models. Can include Deepgram-specific options such as
46
57
  # `smart_format`, `punctuate`, `diarize`, `utterance`, `numerals`, and `language`.
47
58
  # If `language` is provided both as a top-level parameter and in `model_config`,
48
59
  # the top-level parameter takes precedence.
@@ -18,9 +18,6 @@ module Telnyx
18
18
  early_stopping: T::Boolean,
19
19
  enable_thinking: T::Boolean,
20
20
  frequency_penalty: Float,
21
- guided_choice: T::Array[String],
22
- guided_json: T::Hash[Symbol, T.anything],
23
- guided_regex: String,
24
21
  length_penalty: Float,
25
22
  logprobs: T::Boolean,
26
23
  max_tokens: Integer,
@@ -33,7 +30,11 @@ module Telnyx
33
30
  Telnyx::AI::ChatCompletionRequest::ReasoningEffort::OrSymbol,
34
31
  region: Telnyx::AI::ChatCompletionRequest::Region::OrSymbol,
35
32
  response_format:
36
- Telnyx::AI::ChatCompletionRequest::ResponseFormat::OrHash,
33
+ T.any(
34
+ Telnyx::AI::ChatCompletionRequest::ResponseFormat::ResponseFormatText::OrHash,
35
+ Telnyx::AI::ChatCompletionRequest::ResponseFormat::ResponseFormatJsonObject::OrHash,
36
+ Telnyx::AI::ChatCompletionRequest::ResponseFormat::ResponseFormatJsonSchemaParam::OrHash
37
+ ),
37
38
  seed: Integer,
38
39
  service_tier: String,
39
40
  stop: Telnyx::AI::ChatCompletionRequest::Stop::Variants,
@@ -75,13 +76,6 @@ module Telnyx
75
76
  enable_thinking: nil,
76
77
  # Higher values will penalize the model from repeating the same output tokens.
77
78
  frequency_penalty: nil,
78
- # If specified, the output will be exactly one of the choices.
79
- guided_choice: nil,
80
- # Must be a valid JSON schema. If specified, the output will follow the JSON
81
- # schema.
82
- guided_json: nil,
83
- # If specified, the output will follow the regex pattern.
84
- guided_regex: nil,
85
79
  # This is used with `use_beam_search` to prefer shorter or longer completions.
86
80
  length_penalty: nil,
87
81
  # Whether to return log probabilities of the output tokens or not. If true,
@@ -118,8 +112,10 @@ module Telnyx
118
112
  # provider never passes through Telnyx model routing, so a region cannot be
119
113
  # enforced for it. Omit for today's latency-based routing.
120
114
  region: nil,
121
- # Use this is you want to guarantee a JSON output without defining a schema. For
122
- # control over the schema, use `guided_json`.
115
+ # Controls the format of the model output. `json_object` guarantees valid JSON
116
+ # output without defining a schema; `json_schema` constrains the output to the
117
+ # JSON schema you supply via the `json_schema` property and is the supported way
118
+ # to get guaranteed structured output on Telnyx-hosted models.
123
119
  response_format: nil,
124
120
  # If specified, the system will make a best effort to sample deterministically,
125
121
  # such that repeated requests with the same `seed` and parameters should return