telnyx 5.0.0 → 5.2.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 (289) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +46 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/client.rb +4 -0
  5. data/lib/telnyx/internal/type/union.rb +1 -1
  6. data/lib/telnyx/models/ai/assistant.rb +39 -4
  7. data/lib/telnyx/models/ai/assistant_create_params.rb +17 -6
  8. data/lib/telnyx/models/ai/assistant_imports_params.rb +10 -1
  9. data/lib/telnyx/models/ai/assistant_tool.rb +400 -3
  10. data/lib/telnyx/models/ai/assistant_update_params.rb +17 -6
  11. data/lib/telnyx/models/ai/assistants/update_assistant.rb +17 -6
  12. data/lib/telnyx/models/ai/audio_visualizer_config.rb +43 -0
  13. data/lib/telnyx/models/ai/bucket_ids.rb +7 -1
  14. data/lib/telnyx/models/ai/chat_create_completion_params.rb +4 -4
  15. data/lib/telnyx/models/ai/inference_embedding.rb +17 -6
  16. data/lib/telnyx/models/ai/messaging_settings.rb +10 -1
  17. data/lib/telnyx/models/ai/retrieval_tool.rb +3 -3
  18. data/lib/telnyx/models/ai/telephony_settings.rb +142 -1
  19. data/lib/telnyx/models/ai/transfer_tool.rb +46 -3
  20. data/lib/telnyx/models/ai/voice_settings.rb +1 -1
  21. data/lib/telnyx/models/ai/webhook_tool.rb +256 -3
  22. data/lib/telnyx/models/ai/widget_settings.rb +138 -0
  23. data/lib/telnyx/models/call_control_application_list_params.rb +16 -18
  24. data/lib/telnyx/models/call_event_list_params.rb +16 -18
  25. data/lib/telnyx/models/calls/action_add_ai_assistant_messages_params.rb +289 -0
  26. data/lib/telnyx/models/calls/action_add_ai_assistant_messages_response.rb +18 -0
  27. data/lib/telnyx/models/calls/action_start_noise_suppression_params.rb +7 -4
  28. data/lib/telnyx/models/conference_list_params.rb +16 -18
  29. data/lib/telnyx/models/conference_list_participants_params.rb +16 -18
  30. data/lib/telnyx/models/connection_list_active_calls_params.rb +16 -18
  31. data/lib/telnyx/models/connection_noise_suppression_details.rb +61 -0
  32. data/lib/telnyx/models/credential_connection.rb +3 -61
  33. data/lib/telnyx/models/credential_connection_create_params.rb +3 -61
  34. data/lib/telnyx/models/credential_connection_update_params.rb +3 -61
  35. data/lib/telnyx/models/fax_create_params.rb +10 -1
  36. data/lib/telnyx/models/fqdn_connection.rb +3 -60
  37. data/lib/telnyx/models/fqdn_connection_create_params.rb +3 -60
  38. data/lib/telnyx/models/fqdn_connection_update_params.rb +3 -60
  39. data/lib/telnyx/models/ip_connection.rb +3 -60
  40. data/lib/telnyx/models/ip_connection_create_params.rb +3 -60
  41. data/lib/telnyx/models/ip_connection_update_params.rb +3 -60
  42. data/lib/telnyx/models/messaging_10dlc/brand_retrieve_sms_otp_status_params.rb +1 -9
  43. data/lib/telnyx/models/messaging_profile.rb +11 -1
  44. data/lib/telnyx/models/messaging_profile_create_params.rb +11 -1
  45. data/lib/telnyx/models/messaging_profile_update_params.rb +11 -1
  46. data/lib/telnyx/models/messaging_tollfree/verification/tf_verification_request.rb +14 -1
  47. data/lib/telnyx/models/messaging_tollfree/verification/verification_request_egress.rb +17 -1
  48. data/lib/telnyx/models/messaging_tollfree/verification/verification_request_status.rb +17 -1
  49. data/lib/telnyx/models/organizations/user_get_groups_report_params.rb +32 -0
  50. data/lib/telnyx/models/organizations/user_get_groups_report_response.rb +110 -0
  51. data/lib/telnyx/models/organizations/user_group_reference.rb +28 -0
  52. data/lib/telnyx/models/organizations/user_list_params.rb +73 -0
  53. data/lib/telnyx/models/organizations/user_list_response.rb +96 -0
  54. data/lib/telnyx/models/organizations/user_retrieve_params.rb +29 -0
  55. data/lib/telnyx/models/organizations/user_retrieve_response.rb +107 -0
  56. data/lib/telnyx/models/organizations/users/action_remove_params.rb +18 -0
  57. data/lib/telnyx/models/organizations/users/action_remove_response.rb +111 -0
  58. data/lib/telnyx/models/private_wireless_gateway_status.rb +3 -2
  59. data/lib/telnyx/models/queues/call_list_params.rb +16 -18
  60. data/lib/telnyx/models/sim_card_list_params.rb +11 -3
  61. data/lib/telnyx/models/texml/accounts/queue_list_params.rb +64 -0
  62. data/lib/telnyx/models/texml/accounts/queue_list_response.rb +155 -0
  63. data/lib/telnyx/models/unsafe_unwrap_webhook_event.rb +1 -7
  64. data/lib/telnyx/models/unwrap_webhook_event.rb +1 -7
  65. data/lib/telnyx/models.rb +4 -6
  66. data/lib/telnyx/resources/ai/assistants/tools.rb +2 -2
  67. data/lib/telnyx/resources/ai/assistants/versions.rb +18 -16
  68. data/lib/telnyx/resources/ai/assistants.rb +15 -9
  69. data/lib/telnyx/resources/ai/clusters.rb +1 -1
  70. data/lib/telnyx/resources/ai/embeddings.rb +1 -1
  71. data/lib/telnyx/resources/bundle_pricing/user_bundles.rb +1 -1
  72. data/lib/telnyx/resources/call_control_applications.rb +8 -4
  73. data/lib/telnyx/resources/call_events.rb +8 -4
  74. data/lib/telnyx/resources/calls/actions.rb +31 -0
  75. data/lib/telnyx/resources/conferences.rb +16 -8
  76. data/lib/telnyx/resources/connections.rb +8 -4
  77. data/lib/telnyx/resources/credential_connections.rb +2 -2
  78. data/lib/telnyx/resources/faxes.rb +3 -1
  79. data/lib/telnyx/resources/fqdn_connections.rb +2 -2
  80. data/lib/telnyx/resources/ip_connections.rb +2 -2
  81. data/lib/telnyx/resources/messages.rb +1 -1
  82. data/lib/telnyx/resources/messaging_10dlc/brand.rb +10 -14
  83. data/lib/telnyx/resources/messaging_profiles/autoresp_configs.rb +6 -6
  84. data/lib/telnyx/resources/messaging_profiles.rb +6 -2
  85. data/lib/telnyx/resources/messaging_tollfree/verification/requests.rb +6 -2
  86. data/lib/telnyx/resources/operator_connect/actions.rb +1 -1
  87. data/lib/telnyx/resources/organizations/users/actions.rb +38 -0
  88. data/lib/telnyx/resources/organizations/users.rb +114 -0
  89. data/lib/telnyx/resources/organizations.rb +18 -0
  90. data/lib/telnyx/resources/phone_numbers/jobs.rb +1 -1
  91. data/lib/telnyx/resources/queues/calls.rb +8 -4
  92. data/lib/telnyx/resources/sim_cards/actions.rb +6 -6
  93. data/lib/telnyx/resources/texml/accounts/calls/recordings.rb +1 -1
  94. data/lib/telnyx/resources/texml/accounts/queues.rb +41 -0
  95. data/lib/telnyx/resources/usage_reports.rb +2 -2
  96. data/lib/telnyx/resources/webhooks.rb +2 -2
  97. data/lib/telnyx/version.rb +1 -1
  98. data/lib/telnyx.rb +19 -69
  99. data/rbi/telnyx/client.rbi +3 -0
  100. data/rbi/telnyx/models/ai/assistant.rbi +91 -5
  101. data/rbi/telnyx/models/ai/assistant_create_params.rbi +31 -14
  102. data/rbi/telnyx/models/ai/assistant_imports_params.rbi +13 -0
  103. data/rbi/telnyx/models/ai/assistant_tool.rbi +910 -2
  104. data/rbi/telnyx/models/ai/assistant_update_params.rbi +31 -14
  105. data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +36 -17
  106. data/rbi/telnyx/models/ai/audio_visualizer_config.rbi +107 -0
  107. data/rbi/telnyx/models/ai/bucket_ids.rbi +6 -0
  108. data/rbi/telnyx/models/ai/chat_create_completion_params.rbi +6 -13
  109. data/rbi/telnyx/models/ai/inference_embedding.rbi +30 -13
  110. data/rbi/telnyx/models/ai/messaging_settings.rbi +13 -0
  111. data/rbi/telnyx/models/ai/retrieval_tool.rbi +4 -8
  112. data/rbi/telnyx/models/ai/telephony_settings.rbi +347 -3
  113. data/rbi/telnyx/models/ai/transfer_tool.rbi +87 -6
  114. data/rbi/telnyx/models/ai/voice_settings.rbi +2 -2
  115. data/rbi/telnyx/models/ai/webhook_tool.rbi +584 -8
  116. data/rbi/telnyx/models/ai/widget_settings.rbi +225 -0
  117. data/rbi/telnyx/models/call_control_application_list_params.rbi +23 -35
  118. data/rbi/telnyx/models/call_event_list_params.rbi +23 -35
  119. data/rbi/telnyx/models/calls/action_add_ai_assistant_messages_params.rbi +583 -0
  120. data/rbi/telnyx/models/calls/action_add_ai_assistant_messages_response.rbi +39 -0
  121. data/rbi/telnyx/models/calls/action_start_noise_suppression_params.rbi +14 -6
  122. data/rbi/telnyx/models/conference_list_params.rbi +23 -35
  123. data/rbi/telnyx/models/conference_list_participants_params.rbi +23 -35
  124. data/rbi/telnyx/models/connection_list_active_calls_params.rbi +23 -35
  125. data/rbi/telnyx/models/connection_noise_suppression_details.rbi +141 -0
  126. data/rbi/telnyx/models/credential_connection.rbi +4 -152
  127. data/rbi/telnyx/models/credential_connection_create_params.rbi +4 -154
  128. data/rbi/telnyx/models/credential_connection_update_params.rbi +4 -154
  129. data/rbi/telnyx/models/fax_create_params.rbi +13 -0
  130. data/rbi/telnyx/models/fqdn_connection.rbi +4 -150
  131. data/rbi/telnyx/models/fqdn_connection_create_params.rbi +4 -152
  132. data/rbi/telnyx/models/fqdn_connection_update_params.rbi +4 -152
  133. data/rbi/telnyx/models/ip_connection.rbi +4 -148
  134. data/rbi/telnyx/models/ip_connection_create_params.rbi +4 -152
  135. data/rbi/telnyx/models/ip_connection_update_params.rbi +4 -152
  136. data/rbi/telnyx/models/messaging_10dlc/brand_retrieve_sms_otp_status_params.rbi +5 -21
  137. data/rbi/telnyx/models/messaging_profile.rbi +15 -0
  138. data/rbi/telnyx/models/messaging_profile_create_params.rbi +15 -0
  139. data/rbi/telnyx/models/messaging_profile_update_params.rbi +15 -0
  140. data/rbi/telnyx/models/messaging_tollfree/verification/tf_verification_request.rbi +12 -0
  141. data/rbi/telnyx/models/messaging_tollfree/verification/verification_request_egress.rbi +10 -0
  142. data/rbi/telnyx/models/messaging_tollfree/verification/verification_request_status.rbi +10 -0
  143. data/rbi/telnyx/models/organizations/user_get_groups_report_params.rbi +93 -0
  144. data/rbi/telnyx/models/organizations/user_get_groups_report_response.rbi +210 -0
  145. data/rbi/telnyx/models/organizations/user_group_reference.rbi +39 -0
  146. data/rbi/telnyx/models/organizations/user_list_params.rbi +152 -0
  147. data/rbi/telnyx/models/organizations/user_list_response.rbi +188 -0
  148. data/rbi/telnyx/models/organizations/user_retrieve_params.rbi +55 -0
  149. data/rbi/telnyx/models/organizations/user_retrieve_response.rbi +232 -0
  150. data/rbi/telnyx/models/organizations/users/action_remove_params.rbi +34 -0
  151. data/rbi/telnyx/models/organizations/users/action_remove_response.rbi +239 -0
  152. data/rbi/telnyx/models/private_wireless_gateway_status.rbi +4 -2
  153. data/rbi/telnyx/models/queues/call_list_params.rbi +23 -35
  154. data/rbi/telnyx/models/sim_card_list_params.rbi +14 -3
  155. data/rbi/telnyx/models/texml/accounts/queue_list_params.rbi +103 -0
  156. data/rbi/telnyx/models/texml/accounts/queue_list_response.rbi +269 -0
  157. data/rbi/telnyx/models/unsafe_unwrap_webhook_event.rbi +0 -3
  158. data/rbi/telnyx/models/unwrap_webhook_event.rbi +0 -3
  159. data/rbi/telnyx/models.rbi +5 -6
  160. data/rbi/telnyx/resources/ai/assistants/tools.rbi +2 -2
  161. data/rbi/telnyx/resources/ai/assistants/versions.rbi +25 -19
  162. data/rbi/telnyx/resources/ai/assistants.rbi +30 -14
  163. data/rbi/telnyx/resources/ai/chat.rbi +1 -1
  164. data/rbi/telnyx/resources/ai/clusters.rbi +1 -1
  165. data/rbi/telnyx/resources/ai/embeddings.rbi +1 -1
  166. data/rbi/telnyx/resources/bundle_pricing/user_bundles.rbi +1 -1
  167. data/rbi/telnyx/resources/call_control_applications.rbi +7 -1
  168. data/rbi/telnyx/resources/call_events.rbi +5 -1
  169. data/rbi/telnyx/resources/calls/actions.rbi +37 -2
  170. data/rbi/telnyx/resources/conferences.rbi +10 -2
  171. data/rbi/telnyx/resources/connections.rbi +5 -1
  172. data/rbi/telnyx/resources/credential_connections.rbi +2 -2
  173. data/rbi/telnyx/resources/faxes.rbi +4 -0
  174. data/rbi/telnyx/resources/fqdn_connections.rbi +2 -2
  175. data/rbi/telnyx/resources/ip_connections.rbi +2 -2
  176. data/rbi/telnyx/resources/messages.rbi +1 -1
  177. data/rbi/telnyx/resources/messaging_10dlc/brand.rbi +8 -11
  178. data/rbi/telnyx/resources/messaging_profiles/autoresp_configs.rbi +6 -6
  179. data/rbi/telnyx/resources/messaging_profiles.rbi +10 -0
  180. data/rbi/telnyx/resources/messaging_tollfree/verification/requests.rbi +10 -0
  181. data/rbi/telnyx/resources/operator_connect/actions.rbi +1 -1
  182. data/rbi/telnyx/resources/organizations/users/actions.rbi +32 -0
  183. data/rbi/telnyx/resources/organizations/users.rbi +88 -0
  184. data/rbi/telnyx/resources/organizations.rbi +15 -0
  185. data/rbi/telnyx/resources/phone_numbers/jobs.rbi +1 -1
  186. data/rbi/telnyx/resources/queues/calls.rbi +5 -1
  187. data/rbi/telnyx/resources/sim_cards/actions.rbi +6 -6
  188. data/rbi/telnyx/resources/sim_cards.rbi +1 -1
  189. data/rbi/telnyx/resources/texml/accounts/calls/recordings.rbi +1 -1
  190. data/rbi/telnyx/resources/texml/accounts/queues.rbi +32 -0
  191. data/rbi/telnyx/resources/usage_reports.rbi +2 -2
  192. data/rbi/telnyx/resources/webhooks.rbi +0 -6
  193. data/sig/telnyx/client.rbs +2 -0
  194. data/sig/telnyx/models/ai/assistant.rbs +44 -1
  195. data/sig/telnyx/models/ai/assistant_create_params.rbs +10 -1
  196. data/sig/telnyx/models/ai/assistant_imports_params.rbs +8 -1
  197. data/sig/telnyx/models/ai/assistant_tool.rbs +367 -2
  198. data/sig/telnyx/models/ai/assistant_update_params.rbs +10 -1
  199. data/sig/telnyx/models/ai/assistants/update_assistant.rbs +12 -3
  200. data/sig/telnyx/models/ai/audio_visualizer_config.rbs +48 -0
  201. data/sig/telnyx/models/ai/chat_create_completion_params.rbs +4 -7
  202. data/sig/telnyx/models/ai/inference_embedding.rbs +12 -3
  203. data/sig/telnyx/models/ai/messaging_settings.rbs +7 -0
  204. data/sig/telnyx/models/ai/retrieval_tool.rbs +4 -4
  205. data/sig/telnyx/models/ai/telephony_settings.rbs +133 -4
  206. data/sig/telnyx/models/ai/transfer_tool.rbs +42 -4
  207. data/sig/telnyx/models/ai/webhook_tool.rbs +241 -4
  208. data/sig/telnyx/models/ai/widget_settings.rbs +127 -0
  209. data/sig/telnyx/models/call_control_application_list_params.rbs +17 -26
  210. data/sig/telnyx/models/call_event_list_params.rbs +18 -27
  211. data/sig/telnyx/models/calls/action_add_ai_assistant_messages_params.rbs +240 -0
  212. data/sig/telnyx/models/calls/action_add_ai_assistant_messages_response.rbs +20 -0
  213. data/sig/telnyx/models/calls/action_start_noise_suppression_params.rbs +2 -1
  214. data/sig/telnyx/models/conference_list_params.rbs +17 -26
  215. data/sig/telnyx/models/conference_list_participants_params.rbs +17 -26
  216. data/sig/telnyx/models/connection_list_active_calls_params.rbs +20 -27
  217. data/sig/telnyx/models/connection_noise_suppression_details.rbs +54 -0
  218. data/sig/telnyx/models/credential_connection.rbs +6 -57
  219. data/sig/telnyx/models/credential_connection_create_params.rbs +6 -57
  220. data/sig/telnyx/models/credential_connection_update_params.rbs +6 -57
  221. data/sig/telnyx/models/fax_create_params.rbs +7 -0
  222. data/sig/telnyx/models/fqdn_connection.rbs +6 -57
  223. data/sig/telnyx/models/fqdn_connection_create_params.rbs +6 -57
  224. data/sig/telnyx/models/fqdn_connection_update_params.rbs +6 -57
  225. data/sig/telnyx/models/ip_connection.rbs +6 -57
  226. data/sig/telnyx/models/ip_connection_create_params.rbs +6 -57
  227. data/sig/telnyx/models/ip_connection_update_params.rbs +6 -57
  228. data/sig/telnyx/models/messaging_10dlc/brand_retrieve_sms_otp_status_params.rbs +3 -13
  229. data/sig/telnyx/models/messaging_profile.rbs +7 -0
  230. data/sig/telnyx/models/messaging_profile_create_params.rbs +7 -0
  231. data/sig/telnyx/models/messaging_profile_update_params.rbs +7 -0
  232. data/sig/telnyx/models/messaging_tollfree/verification/tf_verification_request.rbs +5 -0
  233. data/sig/telnyx/models/messaging_tollfree/verification/verification_request_egress.rbs +5 -0
  234. data/sig/telnyx/models/messaging_tollfree/verification/verification_request_status.rbs +5 -0
  235. data/sig/telnyx/models/organizations/user_get_groups_report_params.rbs +43 -0
  236. data/sig/telnyx/models/organizations/user_get_groups_report_response.rbs +92 -0
  237. data/sig/telnyx/models/organizations/user_group_reference.rbs +17 -0
  238. data/sig/telnyx/models/organizations/user_list_params.rbs +72 -0
  239. data/sig/telnyx/models/organizations/user_list_response.rbs +87 -0
  240. data/sig/telnyx/models/organizations/user_retrieve_params.rbs +27 -0
  241. data/sig/telnyx/models/organizations/user_retrieve_response.rbs +106 -0
  242. data/sig/telnyx/models/organizations/users/action_remove_params.rbs +19 -0
  243. data/sig/telnyx/models/organizations/users/action_remove_response.rbs +110 -0
  244. data/sig/telnyx/models/queues/call_list_params.rbs +20 -27
  245. data/sig/telnyx/models/sim_card_list_params.rbs +7 -0
  246. data/sig/telnyx/models/texml/accounts/queue_list_params.rbs +60 -0
  247. data/sig/telnyx/models/texml/accounts/queue_list_response.rbs +152 -0
  248. data/sig/telnyx/models/unsafe_unwrap_webhook_event.rbs +0 -3
  249. data/sig/telnyx/models/unwrap_webhook_event.rbs +0 -3
  250. data/sig/telnyx/models.rbs +4 -6
  251. data/sig/telnyx/resources/ai/assistants/versions.rbs +1 -0
  252. data/sig/telnyx/resources/ai/assistants.rbs +3 -0
  253. data/sig/telnyx/resources/call_control_applications.rbs +3 -1
  254. data/sig/telnyx/resources/call_events.rbs +3 -1
  255. data/sig/telnyx/resources/calls/actions.rbs +8 -0
  256. data/sig/telnyx/resources/conferences.rbs +6 -2
  257. data/sig/telnyx/resources/connections.rbs +3 -1
  258. data/sig/telnyx/resources/credential_connections.rbs +2 -2
  259. data/sig/telnyx/resources/faxes.rbs +1 -0
  260. data/sig/telnyx/resources/fqdn_connections.rbs +2 -2
  261. data/sig/telnyx/resources/ip_connections.rbs +2 -2
  262. data/sig/telnyx/resources/messaging_10dlc/brand.rbs +1 -2
  263. data/sig/telnyx/resources/messaging_profiles.rbs +2 -0
  264. data/sig/telnyx/resources/messaging_tollfree/verification/requests.rbs +2 -0
  265. data/sig/telnyx/resources/organizations/users/actions.rbs +16 -0
  266. data/sig/telnyx/resources/organizations/users.rbs +31 -0
  267. data/sig/telnyx/resources/organizations.rbs +9 -0
  268. data/sig/telnyx/resources/queues/calls.rbs +3 -1
  269. data/sig/telnyx/resources/texml/accounts/queues.rbs +10 -0
  270. data/sig/telnyx/resources/webhooks.rbs +0 -6
  271. metadata +59 -20
  272. data/lib/telnyx/models/ai/inference_embedding_bucket_ids.rb +0 -31
  273. data/lib/telnyx/models/ai/inference_embedding_transfer_tool_params.rb +0 -93
  274. data/lib/telnyx/models/ai/inference_embedding_webhook_tool_params.rb +0 -265
  275. data/lib/telnyx/models/streaming_failed_webhook_event.rb +0 -15
  276. data/lib/telnyx/models/streaming_started_webhook_event.rb +0 -15
  277. data/lib/telnyx/models/streaming_stopped_webhook_event.rb +0 -15
  278. data/rbi/telnyx/models/ai/inference_embedding_bucket_ids.rbi +0 -54
  279. data/rbi/telnyx/models/ai/inference_embedding_transfer_tool_params.rbi +0 -185
  280. data/rbi/telnyx/models/ai/inference_embedding_webhook_tool_params.rbi +0 -621
  281. data/rbi/telnyx/models/streaming_failed_webhook_event.rbi +0 -30
  282. data/rbi/telnyx/models/streaming_started_webhook_event.rbi +0 -30
  283. data/rbi/telnyx/models/streaming_stopped_webhook_event.rbi +0 -30
  284. data/sig/telnyx/models/ai/inference_embedding_bucket_ids.rbs +0 -26
  285. data/sig/telnyx/models/ai/inference_embedding_transfer_tool_params.rbs +0 -75
  286. data/sig/telnyx/models/ai/inference_embedding_webhook_tool_params.rbs +0 -242
  287. data/sig/telnyx/models/streaming_failed_webhook_event.rbs +0 -15
  288. data/sig/telnyx/models/streaming_started_webhook_event.rbs +0 -16
  289. data/sig/telnyx/models/streaming_stopped_webhook_event.rbs +0 -16
@@ -38,11 +38,11 @@ module Telnyx
38
38
  tools:
39
39
  T::Array[
40
40
  T.any(
41
- Telnyx::AI::WebhookTool::OrHash,
41
+ Telnyx::AI::AssistantTool::Webhook::OrHash,
42
42
  Telnyx::AI::RetrievalTool::OrHash,
43
43
  Telnyx::AI::AssistantTool::Handoff::OrHash,
44
44
  Telnyx::AI::HangupTool::OrHash,
45
- Telnyx::AI::TransferTool::OrHash,
45
+ Telnyx::AI::AssistantTool::Transfer::OrHash,
46
46
  Telnyx::AI::AssistantTool::Refer::OrHash,
47
47
  Telnyx::AI::AssistantTool::SendDtmf::OrHash,
48
48
  Telnyx::AI::AssistantTool::SendMessage::OrHash
@@ -50,6 +50,7 @@ module Telnyx
50
50
  ],
51
51
  transcription: Telnyx::AI::TranscriptionSettings::OrHash,
52
52
  voice_settings: Telnyx::AI::VoiceSettings::OrHash,
53
+ widget_settings: Telnyx::AI::WidgetSettings::OrHash,
53
54
  request_options: Telnyx::RequestOptions::OrHash
54
55
  ).returns(Telnyx::AI::InferenceEmbedding)
55
56
  end
@@ -58,7 +59,7 @@ module Telnyx
58
59
  # [dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables)
59
60
  instructions:,
60
61
  # ID of the model to use. You can use the
61
- # [Get models API](https://developers.telnyx.com/api/inference/inference-embedding/get-models-public-models-get)
62
+ # [Get models API](https://developers.telnyx.com/api-reference/chat/get-available-models)
62
63
  # to see all of your available models,
63
64
  model:,
64
65
  name:,
@@ -73,12 +74,15 @@ module Telnyx
73
74
  enabled_features: nil,
74
75
  # Text that the assistant will use to start the conversation. This may be
75
76
  # templated with
76
- # [dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables)
77
+ # [dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables).
78
+ # Use an empty string to have the assistant wait for the user to speak first. Use
79
+ # the special value `<assistant-speaks-first-with-model-generated-message>` to
80
+ # have the assistant generate the greeting based on the system instructions.
77
81
  greeting: nil,
78
82
  insight_settings: nil,
79
83
  # This is only needed when using third-party inference providers. The `identifier`
80
84
  # for an integration secret
81
- # [/v2/integration_secrets](https://developers.telnyx.com/api/secrets-manager/integration-secrets/create-integration-secret)
85
+ # [/v2/integration_secrets](https://developers.telnyx.com/api-reference/integration-secrets/create-a-secret)
82
86
  # that refers to your LLM provider's API key. Warning: Free plans are unlikely to
83
87
  # work with this integration.
84
88
  llm_api_key_ref: nil,
@@ -90,6 +94,8 @@ module Telnyx
90
94
  tools: nil,
91
95
  transcription: nil,
92
96
  voice_settings: nil,
97
+ # Configuration settings for the assistant's web widget.
98
+ widget_settings: nil,
93
99
  request_options: {}
94
100
  )
95
101
  end
@@ -136,11 +142,11 @@ module Telnyx
136
142
  tools:
137
143
  T::Array[
138
144
  T.any(
139
- Telnyx::AI::WebhookTool::OrHash,
145
+ Telnyx::AI::AssistantTool::Webhook::OrHash,
140
146
  Telnyx::AI::RetrievalTool::OrHash,
141
147
  Telnyx::AI::AssistantTool::Handoff::OrHash,
142
148
  Telnyx::AI::HangupTool::OrHash,
143
- Telnyx::AI::TransferTool::OrHash,
149
+ Telnyx::AI::AssistantTool::Transfer::OrHash,
144
150
  Telnyx::AI::AssistantTool::Refer::OrHash,
145
151
  Telnyx::AI::AssistantTool::SendDtmf::OrHash,
146
152
  Telnyx::AI::AssistantTool::SendMessage::OrHash
@@ -148,6 +154,7 @@ module Telnyx
148
154
  ],
149
155
  transcription: Telnyx::AI::TranscriptionSettings::OrHash,
150
156
  voice_settings: Telnyx::AI::VoiceSettings::OrHash,
157
+ widget_settings: Telnyx::AI::WidgetSettings::OrHash,
151
158
  request_options: Telnyx::RequestOptions::OrHash
152
159
  ).returns(Telnyx::AI::InferenceEmbedding)
153
160
  end
@@ -164,7 +171,10 @@ module Telnyx
164
171
  enabled_features: nil,
165
172
  # Text that the assistant will use to start the conversation. This may be
166
173
  # templated with
167
- # [dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables)
174
+ # [dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables).
175
+ # Use an empty string to have the assistant wait for the user to speak first. Use
176
+ # the special value `<assistant-speaks-first-with-model-generated-message>` to
177
+ # have the assistant generate the greeting based on the system instructions.
168
178
  greeting: nil,
169
179
  insight_settings: nil,
170
180
  # System instructions for the assistant. These may be templated with
@@ -172,13 +182,13 @@ module Telnyx
172
182
  instructions: nil,
173
183
  # This is only needed when using third-party inference providers. The `identifier`
174
184
  # for an integration secret
175
- # [/v2/integration_secrets](https://developers.telnyx.com/api/secrets-manager/integration-secrets/create-integration-secret)
185
+ # [/v2/integration_secrets](https://developers.telnyx.com/api-reference/integration-secrets/create-a-secret)
176
186
  # that refers to your LLM provider's API key. Warning: Free plans are unlikely to
177
187
  # work with this integration.
178
188
  llm_api_key_ref: nil,
179
189
  messaging_settings: nil,
180
190
  # ID of the model to use. You can use the
181
- # [Get models API](https://developers.telnyx.com/api/inference/inference-embedding/get-models-public-models-get)
191
+ # [Get models API](https://developers.telnyx.com/api-reference/chat/get-available-models)
182
192
  # to see all of your available models,
183
193
  model: nil,
184
194
  name: nil,
@@ -192,6 +202,8 @@ module Telnyx
192
202
  tools: nil,
193
203
  transcription: nil,
194
204
  voice_settings: nil,
205
+ # Configuration settings for the assistant's web widget.
206
+ widget_settings: nil,
195
207
  request_options: {}
196
208
  )
197
209
  end
@@ -218,11 +230,11 @@ module Telnyx
218
230
  # This endpoint allows a client to send a chat message to a specific AI Assistant.
219
231
  # The assistant processes the message and returns a relevant reply based on the
220
232
  # current conversation context. Refer to the Conversation API to
221
- # [create a conversation](https://developers.telnyx.com/api/inference/inference-embedding/create-new-conversation-public-conversations-post),
222
- # [filter existing conversations](https://developers.telnyx.com/api/inference/inference-embedding/get-conversations-public-conversations-get),
223
- # [fetch messages for a conversation](https://developers.telnyx.com/api/inference/inference-embedding/get-conversations-public-conversation-id-messages-get),
233
+ # [create a conversation](https://developers.telnyx.com/api-reference/conversations/create-a-conversation),
234
+ # [filter existing conversations](https://developers.telnyx.com/api-reference/conversations/list-conversations),
235
+ # [fetch messages for a conversation](https://developers.telnyx.com/api-reference/conversations/get-conversation-messages),
224
236
  # and
225
- # [manually add messages to a conversation](https://developers.telnyx.com/api/inference/inference-embedding/add-new-message).
237
+ # [manually add messages to a conversation](https://developers.telnyx.com/api-reference/conversations/create-message).
226
238
  sig do
227
239
  params(
228
240
  assistant_id: String,
@@ -271,6 +283,7 @@ module Telnyx
271
283
  params(
272
284
  api_key_ref: String,
273
285
  provider: Telnyx::AI::AssistantImportsParams::Provider::OrSymbol,
286
+ import_ids: T::Array[String],
274
287
  request_options: Telnyx::RequestOptions::OrHash
275
288
  ).returns(Telnyx::AI::AssistantsList)
276
289
  end
@@ -281,6 +294,9 @@ module Telnyx
281
294
  api_key_ref:,
282
295
  # The external provider to import assistants from.
283
296
  provider:,
297
+ # Optional list of assistant IDs to import from the external provider. If not
298
+ # provided, all assistants will be imported.
299
+ import_ids: nil,
284
300
  request_options: {}
285
301
  )
286
302
  end
@@ -99,7 +99,7 @@ module Telnyx
99
99
  # The `function` tool type follows the same schema as the
100
100
  # [OpenAI Chat Completions API](https://platform.openai.com/docs/api-reference/chat).
101
101
  # The `retrieval` tool type is unique to Telnyx. You may pass a list of
102
- # [embedded storage buckets](https://developers.telnyx.com/api/inference/inference-embedding/post-embedding)
102
+ # [embedded storage buckets](https://developers.telnyx.com/api-reference/embeddings/embed-documents)
103
103
  # for retrieval-augmented generation.
104
104
  tools: nil,
105
105
  # This is used with `logprobs`. An integer between 0 and 20 specifying the number
@@ -50,7 +50,7 @@ module Telnyx
50
50
  end
51
51
 
52
52
  # Starts a background task to compute how the data in an
53
- # [embedded storage bucket](https://developers.telnyx.com/api/inference/inference-embedding/post-embedding)
53
+ # [embedded storage bucket](https://developers.telnyx.com/api-reference/embeddings/embed-documents)
54
54
  # is clustered. This helps identify common themes and patterns in the data.
55
55
  sig do
56
56
  params(
@@ -126,7 +126,7 @@ module Telnyx
126
126
  # URL and its linked pages into a Telnyx Cloud Storage bucket. As soon as each
127
127
  # webpage is added to the bucket, its content is immediately processed for
128
128
  # embeddings, that can be used for
129
- # [similarity search](https://developers.telnyx.com/api/inference/inference-embedding/post-embedding-similarity-search)
129
+ # [similarity search](https://developers.telnyx.com/api-reference/embeddings/search-for-documents)
130
130
  # and [clustering](https://developers.telnyx.com/docs/inference/clusters).
131
131
  sig do
132
132
  params(
@@ -20,7 +20,7 @@ module Telnyx
20
20
  # Body param: Idempotency key for the request. Can be any UUID, but should always
21
21
  # be unique for each request.
22
22
  idempotency_key: nil,
23
- # Body param:
23
+ # Body param
24
24
  items: nil,
25
25
  # Header param: Authenticates the request with your Telnyx API V2 KEY
26
26
  authorization_bearer: nil,
@@ -154,10 +154,14 @@ module Telnyx
154
154
  params(
155
155
  filter: Telnyx::CallControlApplicationListParams::Filter::OrHash,
156
156
  page: Telnyx::CallControlApplicationListParams::Page::OrHash,
157
+ page_number: Integer,
158
+ page_size: Integer,
157
159
  sort: Telnyx::CallControlApplicationListParams::Sort::OrSymbol,
158
160
  request_options: Telnyx::RequestOptions::OrHash
159
161
  ).returns(
160
- Telnyx::Internal::DefaultPagination[Telnyx::CallControlApplication]
162
+ Telnyx::Internal::DefaultFlatPagination[
163
+ Telnyx::CallControlApplication
164
+ ]
161
165
  )
162
166
  end
163
167
  def list(
@@ -170,6 +174,8 @@ module Telnyx
170
174
  # Consolidated page parameter (deepObject style). Originally: page[after],
171
175
  # page[before], page[limit], page[size], page[number]
172
176
  page: nil,
177
+ page_number: nil,
178
+ page_size: nil,
173
179
  # Specifies the sort order for results. By default sorting direction is ascending.
174
180
  # To have the results sorted in descending order add the <code> -</code>
175
181
  # prefix.<br/><br/> That is: <ul>
@@ -12,9 +12,11 @@ module Telnyx
12
12
  params(
13
13
  filter: Telnyx::CallEventListParams::Filter::OrHash,
14
14
  page: Telnyx::CallEventListParams::Page::OrHash,
15
+ page_number: Integer,
16
+ page_size: Integer,
15
17
  request_options: Telnyx::RequestOptions::OrHash
16
18
  ).returns(
17
- Telnyx::Internal::DefaultPagination[
19
+ Telnyx::Internal::DefaultFlatPagination[
18
20
  Telnyx::Models::CallEventListResponse
19
21
  ]
20
22
  )
@@ -29,6 +31,8 @@ module Telnyx
29
31
  # Consolidated page parameter (deepObject style). Originally: page[after],
30
32
  # page[before], page[limit], page[size], page[number]
31
33
  page: nil,
34
+ page_number: nil,
35
+ page_size: nil,
32
36
  request_options: {}
33
37
  )
34
38
  end
@@ -4,6 +4,40 @@ module Telnyx
4
4
  module Resources
5
5
  class Calls
6
6
  class Actions
7
+ # Add messages to the conversation started by an AI assistant on the call.
8
+ sig do
9
+ params(
10
+ call_control_id: String,
11
+ client_state: String,
12
+ command_id: String,
13
+ messages:
14
+ T::Array[
15
+ T.any(
16
+ Telnyx::Calls::ActionAddAIAssistantMessagesParams::Message::User::OrHash,
17
+ Telnyx::Calls::ActionAddAIAssistantMessagesParams::Message::Assistant::OrHash,
18
+ Telnyx::Calls::ActionAddAIAssistantMessagesParams::Message::Tool::OrHash,
19
+ Telnyx::Calls::ActionAddAIAssistantMessagesParams::Message::System::OrHash,
20
+ Telnyx::Calls::ActionAddAIAssistantMessagesParams::Message::Developer::OrHash
21
+ )
22
+ ],
23
+ request_options: Telnyx::RequestOptions::OrHash
24
+ ).returns(Telnyx::Models::Calls::ActionAddAIAssistantMessagesResponse)
25
+ end
26
+ def add_ai_assistant_messages(
27
+ # Unique identifier and token for controlling the call
28
+ call_control_id,
29
+ # Use this field to add state to every subsequent webhook. It must be a valid
30
+ # Base-64 encoded string.
31
+ client_state: nil,
32
+ # Use this field to avoid duplicate commands. Telnyx will ignore any command with
33
+ # the same `command_id` for the same `call_control_id`.
34
+ command_id: nil,
35
+ # The messages to add to the conversation.
36
+ messages: nil,
37
+ request_options: {}
38
+ )
39
+ end
40
+
7
41
  # Answer an incoming call. You must issue this command before executing subsequent
8
42
  # commands on an incoming call.
9
43
  #
@@ -1138,8 +1172,9 @@ module Telnyx
1138
1172
  command_id: nil,
1139
1173
  # The direction of the audio stream to be noise suppressed.
1140
1174
  direction: nil,
1141
- # The engine to use for noise suppression. For backward compatibility, engines A
1142
- # and B are also supported, but are deprecated: A - Denoiser B - DeepFilterNet
1175
+ # The engine to use for noise suppression. For backward compatibility, engines A,
1176
+ # B, and C are also supported, but are deprecated: A - Denoiser B - DeepFilterNet
1177
+ # C - Krisp
1143
1178
  noise_suppression_engine: nil,
1144
1179
  # Configuration parameters for noise suppression engines.
1145
1180
  noise_suppression_engine_config: nil,
@@ -107,9 +107,11 @@ module Telnyx
107
107
  params(
108
108
  filter: Telnyx::ConferenceListParams::Filter::OrHash,
109
109
  page: Telnyx::ConferenceListParams::Page::OrHash,
110
+ page_number: Integer,
111
+ page_size: Integer,
110
112
  region: Telnyx::ConferenceListParams::Region::OrSymbol,
111
113
  request_options: Telnyx::RequestOptions::OrHash
112
- ).returns(Telnyx::Internal::DefaultPagination[Telnyx::Conference])
114
+ ).returns(Telnyx::Internal::DefaultFlatPagination[Telnyx::Conference])
113
115
  end
114
116
  def list(
115
117
  # Consolidated filter parameter (deepObject style). Originally:
@@ -121,6 +123,8 @@ module Telnyx
121
123
  # Consolidated page parameter (deepObject style). Originally: page[after],
122
124
  # page[before], page[limit], page[size], page[number]
123
125
  page: nil,
126
+ page_number: nil,
127
+ page_size: nil,
124
128
  # Region where the conference data is located
125
129
  region: nil,
126
130
  request_options: {}
@@ -133,10 +137,12 @@ module Telnyx
133
137
  conference_id: String,
134
138
  filter: Telnyx::ConferenceListParticipantsParams::Filter::OrHash,
135
139
  page: Telnyx::ConferenceListParticipantsParams::Page::OrHash,
140
+ page_number: Integer,
141
+ page_size: Integer,
136
142
  region: Telnyx::ConferenceListParticipantsParams::Region::OrSymbol,
137
143
  request_options: Telnyx::RequestOptions::OrHash
138
144
  ).returns(
139
- Telnyx::Internal::DefaultPagination[
145
+ Telnyx::Internal::DefaultFlatPagination[
140
146
  Telnyx::Models::ConferenceListParticipantsResponse
141
147
  ]
142
148
  )
@@ -150,6 +156,8 @@ module Telnyx
150
156
  # Consolidated page parameter (deepObject style). Originally: page[after],
151
157
  # page[before], page[limit], page[size], page[number]
152
158
  page: nil,
159
+ page_number: nil,
160
+ page_size: nil,
153
161
  # Region where the conference data is located
154
162
  region: nil,
155
163
  request_options: {}
@@ -65,9 +65,11 @@ module Telnyx
65
65
  params(
66
66
  connection_id: String,
67
67
  page: Telnyx::ConnectionListActiveCallsParams::Page::OrHash,
68
+ page_number: Integer,
69
+ page_size: Integer,
68
70
  request_options: Telnyx::RequestOptions::OrHash
69
71
  ).returns(
70
- Telnyx::Internal::DefaultPagination[
72
+ Telnyx::Internal::DefaultFlatPagination[
71
73
  Telnyx::Models::ConnectionListActiveCallsResponse
72
74
  ]
73
75
  )
@@ -78,6 +80,8 @@ module Telnyx
78
80
  # Consolidated page parameter (deepObject style). Originally: page[after],
79
81
  # page[before], page[limit], page[size], page[number]
80
82
  page: nil,
83
+ page_number: nil,
84
+ page_size: nil,
81
85
  request_options: {}
82
86
  )
83
87
  end
@@ -25,7 +25,7 @@ module Telnyx
25
25
  noise_suppression:
26
26
  Telnyx::CredentialConnectionCreateParams::NoiseSuppression::OrSymbol,
27
27
  noise_suppression_details:
28
- Telnyx::CredentialConnectionCreateParams::NoiseSuppressionDetails::OrHash,
28
+ Telnyx::ConnectionNoiseSuppressionDetails::OrHash,
29
29
  onnet_t38_passthrough_enabled: T::Boolean,
30
30
  outbound: Telnyx::CredentialOutbound::OrHash,
31
31
  rtcp_settings: Telnyx::ConnectionRtcpSettings::OrHash,
@@ -147,7 +147,7 @@ module Telnyx
147
147
  noise_suppression:
148
148
  Telnyx::CredentialConnectionUpdateParams::NoiseSuppression::OrSymbol,
149
149
  noise_suppression_details:
150
- Telnyx::CredentialConnectionUpdateParams::NoiseSuppressionDetails::OrHash,
150
+ Telnyx::ConnectionNoiseSuppressionDetails::OrHash,
151
151
  onnet_t38_passthrough_enabled: T::Boolean,
152
152
  outbound: Telnyx::CredentialOutbound::OrHash,
153
153
  password: String,
@@ -22,6 +22,7 @@ module Telnyx
22
22
  connection_id: String,
23
23
  from: String,
24
24
  to: String,
25
+ black_threshold: Integer,
25
26
  client_state: String,
26
27
  from_display_name: String,
27
28
  media_name: String,
@@ -43,6 +44,9 @@ module Telnyx
43
44
  from:,
44
45
  # The phone number, in E.164 format, the fax will be sent to or SIP URI
45
46
  to:,
47
+ # The black threshold percentage for monochrome faxes. Only applicable if
48
+ # `monochrome` is set to `true`.
49
+ black_threshold: nil,
46
50
  # Use this field to add state to every subsequent webhook. It must be a valid
47
51
  # Base-64 encoded string.
48
52
  client_state: nil,
@@ -21,7 +21,7 @@ module Telnyx
21
21
  noise_suppression:
22
22
  Telnyx::FqdnConnectionCreateParams::NoiseSuppression::OrSymbol,
23
23
  noise_suppression_details:
24
- Telnyx::FqdnConnectionCreateParams::NoiseSuppressionDetails::OrHash,
24
+ Telnyx::ConnectionNoiseSuppressionDetails::OrHash,
25
25
  onnet_t38_passthrough_enabled: T::Boolean,
26
26
  outbound: Telnyx::OutboundFqdn::OrHash,
27
27
  rtcp_settings: Telnyx::ConnectionRtcpSettings::OrHash,
@@ -133,7 +133,7 @@ module Telnyx
133
133
  noise_suppression:
134
134
  Telnyx::FqdnConnectionUpdateParams::NoiseSuppression::OrSymbol,
135
135
  noise_suppression_details:
136
- Telnyx::FqdnConnectionUpdateParams::NoiseSuppressionDetails::OrHash,
136
+ Telnyx::ConnectionNoiseSuppressionDetails::OrHash,
137
137
  onnet_t38_passthrough_enabled: T::Boolean,
138
138
  outbound: Telnyx::OutboundFqdn::OrHash,
139
139
  rtcp_settings: Telnyx::ConnectionRtcpSettings::OrHash,
@@ -20,7 +20,7 @@ module Telnyx
20
20
  noise_suppression:
21
21
  Telnyx::IPConnectionCreateParams::NoiseSuppression::OrSymbol,
22
22
  noise_suppression_details:
23
- Telnyx::IPConnectionCreateParams::NoiseSuppressionDetails::OrHash,
23
+ Telnyx::ConnectionNoiseSuppressionDetails::OrHash,
24
24
  onnet_t38_passthrough_enabled: T::Boolean,
25
25
  outbound: Telnyx::OutboundIP::OrHash,
26
26
  rtcp_settings: Telnyx::ConnectionRtcpSettings::OrHash,
@@ -130,7 +130,7 @@ module Telnyx
130
130
  noise_suppression:
131
131
  Telnyx::IPConnectionUpdateParams::NoiseSuppression::OrSymbol,
132
132
  noise_suppression_details:
133
- Telnyx::IPConnectionUpdateParams::NoiseSuppressionDetails::OrHash,
133
+ Telnyx::ConnectionNoiseSuppressionDetails::OrHash,
134
134
  onnet_t38_passthrough_enabled: T::Boolean,
135
135
  outbound: Telnyx::OutboundIP::OrHash,
136
136
  rtcp_settings: Telnyx::ConnectionRtcpSettings::OrHash,
@@ -9,7 +9,7 @@ module Telnyx
9
9
  # Note: This API endpoint can only retrieve messages that are no older than 10
10
10
  # days since their creation. If you require messages older than this, please
11
11
  # generate an
12
- # [MDR report.](https://developers.telnyx.com/api/v1/mission-control/add-mdr-request)
12
+ # [MDR report.](https://developers.telnyx.com/api-reference/mdr-usage-reports/create-mdr-usage-report)
13
13
  sig do
14
14
  params(
15
15
  id: String,
@@ -284,20 +284,19 @@ module Telnyx
284
284
  end
285
285
 
286
286
  # Query the status of an SMS OTP (One-Time Password) for Sole Proprietor brand
287
- # verification.
287
+ # verification using the Brand ID.
288
288
  #
289
289
  # This endpoint allows you to check the delivery and verification status of an OTP
290
- # sent during the Sole Proprietor brand verification process. You can query by
291
- # either:
292
- #
293
- # - `referenceId` - The reference ID returned when the OTP was initially triggered
294
- # - `brandId` - Query parameter for portal users to look up OTP status by Brand ID
290
+ # sent during the Sole Proprietor brand verification process by looking it up with
291
+ # the brand ID.
295
292
  #
296
293
  # The response includes delivery status, verification dates, and detailed delivery
297
294
  # information.
295
+ #
296
+ # **Note:** This is an alternative to the `/10dlc/brand/smsOtp/{referenceId}`
297
+ # endpoint when you have the Brand ID but not the reference ID.
298
298
  sig do
299
299
  params(
300
- reference_id: String,
301
300
  brand_id: String,
302
301
  request_options: Telnyx::RequestOptions::OrHash
303
302
  ).returns(
@@ -305,10 +304,8 @@ module Telnyx
305
304
  )
306
305
  end
307
306
  def retrieve_sms_otp_status(
308
- # The reference ID returned when the OTP was initially triggered
309
- reference_id,
310
- # Filter by Brand ID for easier lookup in portal applications
311
- brand_id: nil,
307
+ # The Brand ID for which to query OTP status
308
+ brand_id,
312
309
  request_options: {}
313
310
  )
314
311
  end
@@ -49,17 +49,17 @@ module Telnyx
49
49
  ).returns(Telnyx::MessagingProfiles::AutoRespConfigResponse)
50
50
  end
51
51
  def update(
52
- # Path param:
52
+ # Path param
53
53
  autoresp_cfg_id,
54
- # Path param:
54
+ # Path param
55
55
  profile_id:,
56
- # Body param:
56
+ # Body param
57
57
  country_code:,
58
- # Body param:
58
+ # Body param
59
59
  keywords:,
60
- # Body param:
60
+ # Body param
61
61
  op:,
62
- # Body param:
62
+ # Body param
63
63
  resp_text: nil,
64
64
  request_options: {}
65
65
  )
@@ -19,6 +19,7 @@ module Telnyx
19
19
  mms_transcoding: T::Boolean,
20
20
  mobile_only: T::Boolean,
21
21
  number_pool_settings: T.nilable(Telnyx::NumberPoolSettings::OrHash),
22
+ smart_encoding: T::Boolean,
22
23
  url_shortener_settings:
23
24
  T.nilable(Telnyx::URLShortenerSettings::OrHash),
24
25
  webhook_api_version:
@@ -57,6 +58,10 @@ module Telnyx
57
58
  #
58
59
  # To disable this feature, set the object field to `null`.
59
60
  number_pool_settings: nil,
61
+ # Enables automatic character encoding optimization for SMS messages. When
62
+ # enabled, the system automatically selects the most efficient encoding (GSM-7 or
63
+ # UCS-2) based on message content to maximize character limits and minimize costs.
64
+ smart_encoding: nil,
60
65
  # The URL shortener feature allows automatic replacement of URLs that were
61
66
  # generated using a public URL shortener service. Some examples include bit.do,
62
67
  # bit.ly, goo.gl, ht.ly, is.gd, ow.ly, rebrand.ly, t.co, tiny.cc, and tinyurl.com.
@@ -104,6 +109,7 @@ module Telnyx
104
109
  mobile_only: T::Boolean,
105
110
  name: String,
106
111
  number_pool_settings: T.nilable(Telnyx::NumberPoolSettings::OrHash),
112
+ smart_encoding: T::Boolean,
107
113
  url_shortener_settings:
108
114
  T.nilable(Telnyx::URLShortenerSettings::OrHash),
109
115
  v1_secret: String,
@@ -142,6 +148,10 @@ module Telnyx
142
148
  #
143
149
  # To disable this feature, set the object field to `null`.
144
150
  number_pool_settings: nil,
151
+ # Enables automatic character encoding optimization for SMS messages. When
152
+ # enabled, the system automatically selects the most efficient encoding (GSM-7 or
153
+ # UCS-2) based on message content to maximize character limits and minimize costs.
154
+ smart_encoding: nil,
145
155
  # The URL shortener feature allows automatic replacement of URLs that were
146
156
  # generated using a public URL shortener service. Some examples include bit.do,
147
157
  # bit.ly, goo.gl, ht.ly, is.gd, ow.ly, rebrand.ly, t.co, tiny.cc, and tinyurl.com.
@@ -38,6 +38,7 @@ module Telnyx
38
38
  business_registration_country: T.nilable(String),
39
39
  business_registration_number: T.nilable(String),
40
40
  business_registration_type: T.nilable(String),
41
+ campaign_verify_authorization_token: T.nilable(String),
41
42
  doing_business_as: T.nilable(String),
42
43
  entity_type:
43
44
  T.nilable(
@@ -111,6 +112,10 @@ module Telnyx
111
112
  business_registration_number: nil,
112
113
  # Type of business registration being provided. Required from January 2026.
113
114
  business_registration_type: nil,
115
+ # Campaign Verify Authorization Token required for Political use case submissions
116
+ # starting February 17, 2026. This token is validated by Zipwhip and must be
117
+ # provided for all Political use case verifications after the deadline.
118
+ campaign_verify_authorization_token: nil,
114
119
  # Doing Business As (DBA) name if different from legal name
115
120
  doing_business_as: nil,
116
121
  # Business entity classification
@@ -180,6 +185,7 @@ module Telnyx
180
185
  business_registration_country: T.nilable(String),
181
186
  business_registration_number: T.nilable(String),
182
187
  business_registration_type: T.nilable(String),
188
+ campaign_verify_authorization_token: T.nilable(String),
183
189
  doing_business_as: T.nilable(String),
184
190
  entity_type:
185
191
  T.nilable(
@@ -254,6 +260,10 @@ module Telnyx
254
260
  business_registration_number: nil,
255
261
  # Type of business registration being provided. Required from January 2026.
256
262
  business_registration_type: nil,
263
+ # Campaign Verify Authorization Token required for Political use case submissions
264
+ # starting February 17, 2026. This token is validated by Zipwhip and must be
265
+ # provided for all Political use case verifications after the deadline.
266
+ campaign_verify_authorization_token: nil,
257
267
  # Doing Business As (DBA) name if different from legal name
258
268
  doing_business_as: nil,
259
269
  # Business entity classification
@@ -8,7 +8,7 @@ module Telnyx
8
8
  # integration with Microsoft Teams for the current user. This will create new
9
9
  # external connections on the user's account if needed, and/or report the
10
10
  # integration results as
11
- # [log messages](https://developers.telnyx.com/api/external-voice-integrations/list-external-connection-log-messages).
11
+ # [log messages](https://developers.telnyx.com/api-reference/external-connections/list-all-log-messages#list-all-log-messages).
12
12
  sig do
13
13
  params(request_options: Telnyx::RequestOptions::OrHash).returns(
14
14
  Telnyx::Models::OperatorConnect::ActionRefreshResponse
@@ -0,0 +1,32 @@
1
+ # typed: strong
2
+
3
+ module Telnyx
4
+ module Resources
5
+ class Organizations
6
+ class Users
7
+ class Actions
8
+ # Deletes a user in your organization.
9
+ sig do
10
+ params(
11
+ id: String,
12
+ request_options: Telnyx::RequestOptions::OrHash
13
+ ).returns(
14
+ Telnyx::Models::Organizations::Users::ActionRemoveResponse
15
+ )
16
+ end
17
+ def remove(
18
+ # Organization User ID
19
+ id,
20
+ request_options: {}
21
+ )
22
+ end
23
+
24
+ # @api private
25
+ sig { params(client: Telnyx::Client).returns(T.attached_class) }
26
+ def self.new(client:)
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end