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
@@ -12,11 +12,12 @@ module Telnyx
12
12
  Variants =
13
13
  T.type_alias do
14
14
  T.any(
15
+ Telnyx::AI::AssistantTool::Function,
15
16
  Telnyx::AI::InferenceEmbeddingWebhookToolParams,
16
17
  Telnyx::AI::AssistantTool::ClientSideTool,
17
18
  Telnyx::AI::RetrievalTool,
18
19
  Telnyx::AI::AssistantTool::Handoff,
19
- Telnyx::AI::HangupTool,
20
+ Telnyx::AI::AssistantTool::Hangup,
20
21
  Telnyx::AI::AssistantTool::Transfer,
21
22
  Telnyx::AI::AssistantTool::Invite,
22
23
  Telnyx::AI::AssistantTool::Refer,
@@ -28,6 +29,75 @@ module Telnyx
28
29
  )
29
30
  end
30
31
 
32
+ class Function < Telnyx::Internal::Type::BaseModel
33
+ OrHash =
34
+ T.type_alias do
35
+ T.any(
36
+ Telnyx::AI::AssistantTool::Function,
37
+ Telnyx::Internal::AnyHash
38
+ )
39
+ end
40
+
41
+ sig { returns(Telnyx::AI::OpenAI::FunctionDefinition) }
42
+ attr_reader :function
43
+
44
+ sig do
45
+ params(
46
+ function: Telnyx::AI::OpenAI::FunctionDefinition::OrHash
47
+ ).void
48
+ end
49
+ attr_writer :function
50
+
51
+ sig { returns(Symbol) }
52
+ attr_accessor :type
53
+
54
+ # Whether this tool comes from the shared Tools Library. Responses merge shared
55
+ # tools into `tools` with `shared: true`; inline tools carry `shared: false`.
56
+ # Read-only: set by the server, not accepted in requests. When updating an
57
+ # assistant, omit `shared: true` tools from the request `tools` array and manage
58
+ # them through `tool_ids` instead — re-sending their definitions creates an inline
59
+ # duplicate (rejected with error code 10015 when the type allows only one instance
60
+ # per assistant).
61
+ sig { returns(T.nilable(T::Boolean)) }
62
+ attr_reader :shared
63
+
64
+ sig { params(shared: T::Boolean).void }
65
+ attr_writer :shared
66
+
67
+ sig do
68
+ params(
69
+ function: Telnyx::AI::OpenAI::FunctionDefinition::OrHash,
70
+ shared: T::Boolean,
71
+ type: Symbol
72
+ ).returns(T.attached_class)
73
+ end
74
+ def self.new(
75
+ function:,
76
+ # Whether this tool comes from the shared Tools Library. Responses merge shared
77
+ # tools into `tools` with `shared: true`; inline tools carry `shared: false`.
78
+ # Read-only: set by the server, not accepted in requests. When updating an
79
+ # assistant, omit `shared: true` tools from the request `tools` array and manage
80
+ # them through `tool_ids` instead — re-sending their definitions creates an inline
81
+ # duplicate (rejected with error code 10015 when the type allows only one instance
82
+ # per assistant).
83
+ shared: nil,
84
+ type: :function
85
+ )
86
+ end
87
+
88
+ sig do
89
+ override.returns(
90
+ {
91
+ function: Telnyx::AI::OpenAI::FunctionDefinition,
92
+ type: Symbol,
93
+ shared: T::Boolean
94
+ }
95
+ )
96
+ end
97
+ def to_hash
98
+ end
99
+ end
100
+
31
101
  class ClientSideTool < Telnyx::Internal::Type::BaseModel
32
102
  OrHash =
33
103
  T.type_alias do
@@ -53,14 +123,39 @@ module Telnyx
53
123
  sig { returns(Symbol) }
54
124
  attr_accessor :type
55
125
 
126
+ # Whether this tool comes from the shared Tools Library. Responses merge shared
127
+ # tools into `tools` with `shared: true`; inline tools carry `shared: false`.
128
+ # Read-only: set by the server, not accepted in requests. When updating an
129
+ # assistant, omit `shared: true` tools from the request `tools` array and manage
130
+ # them through `tool_ids` instead — re-sending their definitions creates an inline
131
+ # duplicate (rejected with error code 10015 when the type allows only one instance
132
+ # per assistant).
133
+ sig { returns(T.nilable(T::Boolean)) }
134
+ attr_reader :shared
135
+
136
+ sig { params(shared: T::Boolean).void }
137
+ attr_writer :shared
138
+
56
139
  sig do
57
140
  params(
58
141
  client_side_tool:
59
142
  Telnyx::AI::AssistantTool::ClientSideTool::ClientSideTool::OrHash,
143
+ shared: T::Boolean,
60
144
  type: Symbol
61
145
  ).returns(T.attached_class)
62
146
  end
63
- def self.new(client_side_tool:, type: :client_side_tool)
147
+ def self.new(
148
+ client_side_tool:,
149
+ # Whether this tool comes from the shared Tools Library. Responses merge shared
150
+ # tools into `tools` with `shared: true`; inline tools carry `shared: false`.
151
+ # Read-only: set by the server, not accepted in requests. When updating an
152
+ # assistant, omit `shared: true` tools from the request `tools` array and manage
153
+ # them through `tool_ids` instead — re-sending their definitions creates an inline
154
+ # duplicate (rejected with error code 10015 when the type allows only one instance
155
+ # per assistant).
156
+ shared: nil,
157
+ type: :client_side_tool
158
+ )
64
159
  end
65
160
 
66
161
  sig do
@@ -68,7 +163,8 @@ module Telnyx
68
163
  {
69
164
  client_side_tool:
70
165
  Telnyx::AI::AssistantTool::ClientSideTool::ClientSideTool,
71
- type: Symbol
166
+ type: Symbol,
167
+ shared: T::Boolean
72
168
  }
73
169
  )
74
170
  end
@@ -270,23 +366,49 @@ module Telnyx
270
366
  sig { returns(Symbol) }
271
367
  attr_accessor :type
272
368
 
369
+ # Whether this tool comes from the shared Tools Library. Responses merge shared
370
+ # tools into `tools` with `shared: true`; inline tools carry `shared: false`.
371
+ # Read-only: set by the server, not accepted in requests. When updating an
372
+ # assistant, omit `shared: true` tools from the request `tools` array and manage
373
+ # them through `tool_ids` instead — re-sending their definitions creates an inline
374
+ # duplicate (rejected with error code 10015 when the type allows only one instance
375
+ # per assistant).
376
+ sig { returns(T.nilable(T::Boolean)) }
377
+ attr_reader :shared
378
+
379
+ sig { params(shared: T::Boolean).void }
380
+ attr_writer :shared
381
+
273
382
  # The handoff tool allows the assistant to hand off control of the conversation to
274
383
  # another AI assistant. By default, this will happen transparently to the end
275
384
  # user.
276
385
  sig do
277
386
  params(
278
387
  handoff: Telnyx::AI::AssistantTool::Handoff::Handoff::OrHash,
388
+ shared: T::Boolean,
279
389
  type: Symbol
280
390
  ).returns(T.attached_class)
281
391
  end
282
- def self.new(handoff:, type: :handoff)
392
+ def self.new(
393
+ handoff:,
394
+ # Whether this tool comes from the shared Tools Library. Responses merge shared
395
+ # tools into `tools` with `shared: true`; inline tools carry `shared: false`.
396
+ # Read-only: set by the server, not accepted in requests. When updating an
397
+ # assistant, omit `shared: true` tools from the request `tools` array and manage
398
+ # them through `tool_ids` instead — re-sending their definitions creates an inline
399
+ # duplicate (rejected with error code 10015 when the type allows only one instance
400
+ # per assistant).
401
+ shared: nil,
402
+ type: :handoff
403
+ )
283
404
  end
284
405
 
285
406
  sig do
286
407
  override.returns(
287
408
  {
288
409
  handoff: Telnyx::AI::AssistantTool::Handoff::Handoff,
289
- type: Symbol
410
+ type: Symbol,
411
+ shared: T::Boolean
290
412
  }
291
413
  )
292
414
  end
@@ -440,6 +562,71 @@ module Telnyx
440
562
  end
441
563
  end
442
564
 
565
+ class Hangup < Telnyx::Internal::Type::BaseModel
566
+ OrHash =
567
+ T.type_alias do
568
+ T.any(
569
+ Telnyx::AI::AssistantTool::Hangup,
570
+ Telnyx::Internal::AnyHash
571
+ )
572
+ end
573
+
574
+ sig { returns(Telnyx::AI::HangupToolParams) }
575
+ attr_reader :hangup
576
+
577
+ sig { params(hangup: Telnyx::AI::HangupToolParams::OrHash).void }
578
+ attr_writer :hangup
579
+
580
+ sig { returns(Symbol) }
581
+ attr_accessor :type
582
+
583
+ # Whether this tool comes from the shared Tools Library. Responses merge shared
584
+ # tools into `tools` with `shared: true`; inline tools carry `shared: false`.
585
+ # Read-only: set by the server, not accepted in requests. When updating an
586
+ # assistant, omit `shared: true` tools from the request `tools` array and manage
587
+ # them through `tool_ids` instead — re-sending their definitions creates an inline
588
+ # duplicate (rejected with error code 10015 when the type allows only one instance
589
+ # per assistant).
590
+ sig { returns(T.nilable(T::Boolean)) }
591
+ attr_reader :shared
592
+
593
+ sig { params(shared: T::Boolean).void }
594
+ attr_writer :shared
595
+
596
+ sig do
597
+ params(
598
+ hangup: Telnyx::AI::HangupToolParams::OrHash,
599
+ shared: T::Boolean,
600
+ type: Symbol
601
+ ).returns(T.attached_class)
602
+ end
603
+ def self.new(
604
+ hangup:,
605
+ # Whether this tool comes from the shared Tools Library. Responses merge shared
606
+ # tools into `tools` with `shared: true`; inline tools carry `shared: false`.
607
+ # Read-only: set by the server, not accepted in requests. When updating an
608
+ # assistant, omit `shared: true` tools from the request `tools` array and manage
609
+ # them through `tool_ids` instead — re-sending their definitions creates an inline
610
+ # duplicate (rejected with error code 10015 when the type allows only one instance
611
+ # per assistant).
612
+ shared: nil,
613
+ type: :hangup
614
+ )
615
+ end
616
+
617
+ sig do
618
+ override.returns(
619
+ {
620
+ hangup: Telnyx::AI::HangupToolParams,
621
+ type: Symbol,
622
+ shared: T::Boolean
623
+ }
624
+ )
625
+ end
626
+ def to_hash
627
+ end
628
+ end
629
+
443
630
  class Transfer < Telnyx::Internal::Type::BaseModel
444
631
  OrHash =
445
632
  T.type_alias do
@@ -462,20 +649,46 @@ module Telnyx
462
649
  sig { returns(Symbol) }
463
650
  attr_accessor :type
464
651
 
652
+ # Whether this tool comes from the shared Tools Library. Responses merge shared
653
+ # tools into `tools` with `shared: true`; inline tools carry `shared: false`.
654
+ # Read-only: set by the server, not accepted in requests. When updating an
655
+ # assistant, omit `shared: true` tools from the request `tools` array and manage
656
+ # them through `tool_ids` instead — re-sending their definitions creates an inline
657
+ # duplicate (rejected with error code 10015 when the type allows only one instance
658
+ # per assistant).
659
+ sig { returns(T.nilable(T::Boolean)) }
660
+ attr_reader :shared
661
+
662
+ sig { params(shared: T::Boolean).void }
663
+ attr_writer :shared
664
+
465
665
  sig do
466
666
  params(
467
667
  transfer: Telnyx::AI::AssistantTool::Transfer::Transfer::OrHash,
668
+ shared: T::Boolean,
468
669
  type: Symbol
469
670
  ).returns(T.attached_class)
470
671
  end
471
- def self.new(transfer:, type: :transfer)
672
+ def self.new(
673
+ transfer:,
674
+ # Whether this tool comes from the shared Tools Library. Responses merge shared
675
+ # tools into `tools` with `shared: true`; inline tools carry `shared: false`.
676
+ # Read-only: set by the server, not accepted in requests. When updating an
677
+ # assistant, omit `shared: true` tools from the request `tools` array and manage
678
+ # them through `tool_ids` instead — re-sending their definitions creates an inline
679
+ # duplicate (rejected with error code 10015 when the type allows only one instance
680
+ # per assistant).
681
+ shared: nil,
682
+ type: :transfer
683
+ )
472
684
  end
473
685
 
474
686
  sig do
475
687
  override.returns(
476
688
  {
477
689
  transfer: Telnyx::AI::AssistantTool::Transfer::Transfer,
478
- type: Symbol
690
+ type: Symbol,
691
+ shared: T::Boolean
479
692
  }
480
693
  )
481
694
  end
@@ -1501,20 +1714,46 @@ module Telnyx
1501
1714
  sig { returns(Symbol) }
1502
1715
  attr_accessor :type
1503
1716
 
1717
+ # Whether this tool comes from the shared Tools Library. Responses merge shared
1718
+ # tools into `tools` with `shared: true`; inline tools carry `shared: false`.
1719
+ # Read-only: set by the server, not accepted in requests. When updating an
1720
+ # assistant, omit `shared: true` tools from the request `tools` array and manage
1721
+ # them through `tool_ids` instead — re-sending their definitions creates an inline
1722
+ # duplicate (rejected with error code 10015 when the type allows only one instance
1723
+ # per assistant).
1724
+ sig { returns(T.nilable(T::Boolean)) }
1725
+ attr_reader :shared
1726
+
1727
+ sig { params(shared: T::Boolean).void }
1728
+ attr_writer :shared
1729
+
1504
1730
  sig do
1505
1731
  params(
1506
1732
  invite: Telnyx::AI::AssistantTool::Invite::Invite::OrHash,
1733
+ shared: T::Boolean,
1507
1734
  type: Symbol
1508
1735
  ).returns(T.attached_class)
1509
1736
  end
1510
- def self.new(invite:, type: :invite)
1737
+ def self.new(
1738
+ invite:,
1739
+ # Whether this tool comes from the shared Tools Library. Responses merge shared
1740
+ # tools into `tools` with `shared: true`; inline tools carry `shared: false`.
1741
+ # Read-only: set by the server, not accepted in requests. When updating an
1742
+ # assistant, omit `shared: true` tools from the request `tools` array and manage
1743
+ # them through `tool_ids` instead — re-sending their definitions creates an inline
1744
+ # duplicate (rejected with error code 10015 when the type allows only one instance
1745
+ # per assistant).
1746
+ shared: nil,
1747
+ type: :invite
1748
+ )
1511
1749
  end
1512
1750
 
1513
1751
  sig do
1514
1752
  override.returns(
1515
1753
  {
1516
1754
  invite: Telnyx::AI::AssistantTool::Invite::Invite,
1517
- type: Symbol
1755
+ type: Symbol,
1756
+ shared: T::Boolean
1518
1757
  }
1519
1758
  )
1520
1759
  end
@@ -1976,18 +2215,47 @@ module Telnyx
1976
2215
  sig { returns(Symbol) }
1977
2216
  attr_accessor :type
1978
2217
 
2218
+ # Whether this tool comes from the shared Tools Library. Responses merge shared
2219
+ # tools into `tools` with `shared: true`; inline tools carry `shared: false`.
2220
+ # Read-only: set by the server, not accepted in requests. When updating an
2221
+ # assistant, omit `shared: true` tools from the request `tools` array and manage
2222
+ # them through `tool_ids` instead — re-sending their definitions creates an inline
2223
+ # duplicate (rejected with error code 10015 when the type allows only one instance
2224
+ # per assistant).
2225
+ sig { returns(T.nilable(T::Boolean)) }
2226
+ attr_reader :shared
2227
+
2228
+ sig { params(shared: T::Boolean).void }
2229
+ attr_writer :shared
2230
+
1979
2231
  sig do
1980
2232
  params(
1981
2233
  refer: Telnyx::AI::AssistantTool::Refer::Refer::OrHash,
2234
+ shared: T::Boolean,
1982
2235
  type: Symbol
1983
2236
  ).returns(T.attached_class)
1984
2237
  end
1985
- def self.new(refer:, type: :refer)
2238
+ def self.new(
2239
+ refer:,
2240
+ # Whether this tool comes from the shared Tools Library. Responses merge shared
2241
+ # tools into `tools` with `shared: true`; inline tools carry `shared: false`.
2242
+ # Read-only: set by the server, not accepted in requests. When updating an
2243
+ # assistant, omit `shared: true` tools from the request `tools` array and manage
2244
+ # them through `tool_ids` instead — re-sending their definitions creates an inline
2245
+ # duplicate (rejected with error code 10015 when the type allows only one instance
2246
+ # per assistant).
2247
+ shared: nil,
2248
+ type: :refer
2249
+ )
1986
2250
  end
1987
2251
 
1988
2252
  sig do
1989
2253
  override.returns(
1990
- { refer: Telnyx::AI::AssistantTool::Refer::Refer, type: Symbol }
2254
+ {
2255
+ refer: Telnyx::AI::AssistantTool::Refer::Refer,
2256
+ type: Symbol,
2257
+ shared: T::Boolean
2258
+ }
1991
2259
  )
1992
2260
  end
1993
2261
  def to_hash
@@ -2322,18 +2590,47 @@ module Telnyx
2322
2590
  sig { returns(Symbol) }
2323
2591
  attr_accessor :type
2324
2592
 
2593
+ # Whether this tool comes from the shared Tools Library. Responses merge shared
2594
+ # tools into `tools` with `shared: true`; inline tools carry `shared: false`.
2595
+ # Read-only: set by the server, not accepted in requests. When updating an
2596
+ # assistant, omit `shared: true` tools from the request `tools` array and manage
2597
+ # them through `tool_ids` instead — re-sending their definitions creates an inline
2598
+ # duplicate (rejected with error code 10015 when the type allows only one instance
2599
+ # per assistant).
2600
+ sig { returns(T.nilable(T::Boolean)) }
2601
+ attr_reader :shared
2602
+
2603
+ sig { params(shared: T::Boolean).void }
2604
+ attr_writer :shared
2605
+
2325
2606
  sig do
2326
2607
  params(
2327
2608
  send_dtmf: T::Hash[Symbol, T.anything],
2609
+ shared: T::Boolean,
2328
2610
  type: Symbol
2329
2611
  ).returns(T.attached_class)
2330
2612
  end
2331
- def self.new(send_dtmf:, type: :send_dtmf)
2613
+ def self.new(
2614
+ send_dtmf:,
2615
+ # Whether this tool comes from the shared Tools Library. Responses merge shared
2616
+ # tools into `tools` with `shared: true`; inline tools carry `shared: false`.
2617
+ # Read-only: set by the server, not accepted in requests. When updating an
2618
+ # assistant, omit `shared: true` tools from the request `tools` array and manage
2619
+ # them through `tool_ids` instead — re-sending their definitions creates an inline
2620
+ # duplicate (rejected with error code 10015 when the type allows only one instance
2621
+ # per assistant).
2622
+ shared: nil,
2623
+ type: :send_dtmf
2624
+ )
2332
2625
  end
2333
2626
 
2334
2627
  sig do
2335
2628
  override.returns(
2336
- { send_dtmf: T::Hash[Symbol, T.anything], type: Symbol }
2629
+ {
2630
+ send_dtmf: T::Hash[Symbol, T.anything],
2631
+ type: Symbol,
2632
+ shared: T::Boolean
2633
+ }
2337
2634
  )
2338
2635
  end
2339
2636
  def to_hash
@@ -2363,6 +2660,19 @@ module Telnyx
2363
2660
  sig { returns(Symbol) }
2364
2661
  attr_accessor :type
2365
2662
 
2663
+ # Whether this tool comes from the shared Tools Library. Responses merge shared
2664
+ # tools into `tools` with `shared: true`; inline tools carry `shared: false`.
2665
+ # Read-only: set by the server, not accepted in requests. When updating an
2666
+ # assistant, omit `shared: true` tools from the request `tools` array and manage
2667
+ # them through `tool_ids` instead — re-sending their definitions creates an inline
2668
+ # duplicate (rejected with error code 10015 when the type allows only one instance
2669
+ # per assistant).
2670
+ sig { returns(T.nilable(T::Boolean)) }
2671
+ attr_reader :shared
2672
+
2673
+ sig { params(shared: T::Boolean).void }
2674
+ attr_writer :shared
2675
+
2366
2676
  # The send_message tool allows the assistant to send SMS or MMS messages to the
2367
2677
  # end user. The 'to' and 'from' addresses are automatically determined from the
2368
2678
  # conversation context, and the message text is generated by the assistant unless
@@ -2371,10 +2681,22 @@ module Telnyx
2371
2681
  params(
2372
2682
  send_message:
2373
2683
  Telnyx::AI::AssistantTool::SendMessage::SendMessage::OrHash,
2684
+ shared: T::Boolean,
2374
2685
  type: Symbol
2375
2686
  ).returns(T.attached_class)
2376
2687
  end
2377
- def self.new(send_message:, type: :send_message)
2688
+ def self.new(
2689
+ send_message:,
2690
+ # Whether this tool comes from the shared Tools Library. Responses merge shared
2691
+ # tools into `tools` with `shared: true`; inline tools carry `shared: false`.
2692
+ # Read-only: set by the server, not accepted in requests. When updating an
2693
+ # assistant, omit `shared: true` tools from the request `tools` array and manage
2694
+ # them through `tool_ids` instead — re-sending their definitions creates an inline
2695
+ # duplicate (rejected with error code 10015 when the type allows only one instance
2696
+ # per assistant).
2697
+ shared: nil,
2698
+ type: :send_message
2699
+ )
2378
2700
  end
2379
2701
 
2380
2702
  sig do
@@ -2382,7 +2704,8 @@ module Telnyx
2382
2704
  {
2383
2705
  send_message:
2384
2706
  Telnyx::AI::AssistantTool::SendMessage::SendMessage,
2385
- type: Symbol
2707
+ type: Symbol,
2708
+ shared: T::Boolean
2386
2709
  }
2387
2710
  )
2388
2711
  end
@@ -2449,20 +2772,46 @@ module Telnyx
2449
2772
  sig { returns(Symbol) }
2450
2773
  attr_accessor :type
2451
2774
 
2775
+ # Whether this tool comes from the shared Tools Library. Responses merge shared
2776
+ # tools into `tools` with `shared: true`; inline tools carry `shared: false`.
2777
+ # Read-only: set by the server, not accepted in requests. When updating an
2778
+ # assistant, omit `shared: true` tools from the request `tools` array and manage
2779
+ # them through `tool_ids` instead — re-sending their definitions creates an inline
2780
+ # duplicate (rejected with error code 10015 when the type allows only one instance
2781
+ # per assistant).
2782
+ sig { returns(T.nilable(T::Boolean)) }
2783
+ attr_reader :shared
2784
+
2785
+ sig { params(shared: T::Boolean).void }
2786
+ attr_writer :shared
2787
+
2452
2788
  sig do
2453
2789
  params(
2454
2790
  skip_turn: Telnyx::AI::AssistantTool::SkipTurn::SkipTurn::OrHash,
2791
+ shared: T::Boolean,
2455
2792
  type: Symbol
2456
2793
  ).returns(T.attached_class)
2457
2794
  end
2458
- def self.new(skip_turn:, type: :skip_turn)
2795
+ def self.new(
2796
+ skip_turn:,
2797
+ # Whether this tool comes from the shared Tools Library. Responses merge shared
2798
+ # tools into `tools` with `shared: true`; inline tools carry `shared: false`.
2799
+ # Read-only: set by the server, not accepted in requests. When updating an
2800
+ # assistant, omit `shared: true` tools from the request `tools` array and manage
2801
+ # them through `tool_ids` instead — re-sending their definitions creates an inline
2802
+ # duplicate (rejected with error code 10015 when the type allows only one instance
2803
+ # per assistant).
2804
+ shared: nil,
2805
+ type: :skip_turn
2806
+ )
2459
2807
  end
2460
2808
 
2461
2809
  sig do
2462
2810
  override.returns(
2463
2811
  {
2464
2812
  skip_turn: Telnyx::AI::AssistantTool::SkipTurn::SkipTurn,
2465
- type: Symbol
2813
+ type: Symbol,
2814
+ shared: T::Boolean
2466
2815
  }
2467
2816
  )
2468
2817
  end
@@ -2513,6 +2862,19 @@ module Telnyx
2513
2862
  sig { returns(Symbol) }
2514
2863
  attr_accessor :type
2515
2864
 
2865
+ # Whether this tool comes from the shared Tools Library. Responses merge shared
2866
+ # tools into `tools` with `shared: true`; inline tools carry `shared: false`.
2867
+ # Read-only: set by the server, not accepted in requests. When updating an
2868
+ # assistant, omit `shared: true` tools from the request `tools` array and manage
2869
+ # them through `tool_ids` instead — re-sending their definitions creates an inline
2870
+ # duplicate (rejected with error code 10015 when the type allows only one instance
2871
+ # per assistant).
2872
+ sig { returns(T.nilable(T::Boolean)) }
2873
+ attr_reader :shared
2874
+
2875
+ sig { params(shared: T::Boolean).void }
2876
+ attr_writer :shared
2877
+
2516
2878
  # (BETA) The pay tool allows the assistant to collect card payments from the
2517
2879
  # caller via DTMF during the conversation. Recording is automatically paused while
2518
2880
  # the pay tool is active and resumes when the payment flow completes. The
@@ -2520,14 +2882,32 @@ module Telnyx
2520
2882
  sig do
2521
2883
  params(
2522
2884
  pay: Telnyx::AI::PayToolParams::OrHash,
2885
+ shared: T::Boolean,
2523
2886
  type: Symbol
2524
2887
  ).returns(T.attached_class)
2525
2888
  end
2526
- def self.new(pay:, type: :pay)
2889
+ def self.new(
2890
+ pay:,
2891
+ # Whether this tool comes from the shared Tools Library. Responses merge shared
2892
+ # tools into `tools` with `shared: true`; inline tools carry `shared: false`.
2893
+ # Read-only: set by the server, not accepted in requests. When updating an
2894
+ # assistant, omit `shared: true` tools from the request `tools` array and manage
2895
+ # them through `tool_ids` instead — re-sending their definitions creates an inline
2896
+ # duplicate (rejected with error code 10015 when the type allows only one instance
2897
+ # per assistant).
2898
+ shared: nil,
2899
+ type: :pay
2900
+ )
2527
2901
  end
2528
2902
 
2529
2903
  sig do
2530
- override.returns({ pay: Telnyx::AI::PayToolParams, type: Symbol })
2904
+ override.returns(
2905
+ {
2906
+ pay: Telnyx::AI::PayToolParams,
2907
+ type: Symbol,
2908
+ shared: T::Boolean
2909
+ }
2910
+ )
2531
2911
  end
2532
2912
  def to_hash
2533
2913
  end
@@ -2557,6 +2937,19 @@ module Telnyx
2557
2937
  end
2558
2938
  attr_writer :update_dynamic_variables
2559
2939
 
2940
+ # Whether this tool comes from the shared Tools Library. Responses merge shared
2941
+ # tools into `tools` with `shared: true`; inline tools carry `shared: false`.
2942
+ # Read-only: set by the server, not accepted in requests. When updating an
2943
+ # assistant, omit `shared: true` tools from the request `tools` array and manage
2944
+ # them through `tool_ids` instead — re-sending their definitions creates an inline
2945
+ # duplicate (rejected with error code 10015 when the type allows only one instance
2946
+ # per assistant).
2947
+ sig { returns(T.nilable(T::Boolean)) }
2948
+ attr_reader :shared
2949
+
2950
+ sig { params(shared: T::Boolean).void }
2951
+ attr_writer :shared
2952
+
2560
2953
  # The update_dynamic_variables tool lets the assistant write values into the
2561
2954
  # conversation's dynamic-variables context during the call. Updated variables are
2562
2955
  # available to later `{{variable}}` interpolation (prompts, speak nodes, message
@@ -2566,12 +2959,21 @@ module Telnyx
2566
2959
  params(
2567
2960
  update_dynamic_variables:
2568
2961
  Telnyx::AI::UpdateDynamicVariablesToolParams::OrHash,
2962
+ shared: T::Boolean,
2569
2963
  type: Symbol
2570
2964
  ).returns(T.attached_class)
2571
2965
  end
2572
2966
  def self.new(
2573
2967
  # Configuration for an update_dynamic_variables tool.
2574
2968
  update_dynamic_variables:,
2969
+ # Whether this tool comes from the shared Tools Library. Responses merge shared
2970
+ # tools into `tools` with `shared: true`; inline tools carry `shared: false`.
2971
+ # Read-only: set by the server, not accepted in requests. When updating an
2972
+ # assistant, omit `shared: true` tools from the request `tools` array and manage
2973
+ # them through `tool_ids` instead — re-sending their definitions creates an inline
2974
+ # duplicate (rejected with error code 10015 when the type allows only one instance
2975
+ # per assistant).
2976
+ shared: nil,
2575
2977
  type: :update_dynamic_variables
2576
2978
  )
2577
2979
  end
@@ -2581,7 +2983,8 @@ module Telnyx
2581
2983
  {
2582
2984
  type: Symbol,
2583
2985
  update_dynamic_variables:
2584
- Telnyx::AI::UpdateDynamicVariablesToolParams
2986
+ Telnyx::AI::UpdateDynamicVariablesToolParams,
2987
+ shared: T::Boolean
2585
2988
  }
2586
2989
  )
2587
2990
  end