telnyx 7.21.0 → 7.23.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 (476) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/client.d.mts +39 -6
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +39 -6
  5. package/client.d.ts.map +1 -1
  6. package/client.js +33 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +33 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/ai/ai.d.mts +8 -4
  12. package/resources/ai/ai.d.mts.map +1 -1
  13. package/resources/ai/ai.d.ts +8 -4
  14. package/resources/ai/ai.d.ts.map +1 -1
  15. package/resources/ai/ai.js +4 -0
  16. package/resources/ai/ai.js.map +1 -1
  17. package/resources/ai/ai.mjs +5 -1
  18. package/resources/ai/ai.mjs.map +1 -1
  19. package/resources/ai/assistants/assistants.d.mts +408 -47
  20. package/resources/ai/assistants/assistants.d.mts.map +1 -1
  21. package/resources/ai/assistants/assistants.d.ts +408 -47
  22. package/resources/ai/assistants/assistants.d.ts.map +1 -1
  23. package/resources/ai/assistants/assistants.js.map +1 -1
  24. package/resources/ai/assistants/assistants.mjs.map +1 -1
  25. package/resources/ai/assistants/index.d.mts +1 -1
  26. package/resources/ai/assistants/index.d.mts.map +1 -1
  27. package/resources/ai/assistants/index.d.ts +1 -1
  28. package/resources/ai/assistants/index.d.ts.map +1 -1
  29. package/resources/ai/assistants/index.js.map +1 -1
  30. package/resources/ai/assistants/index.mjs.map +1 -1
  31. package/resources/ai/assistants/versions.d.mts +59 -12
  32. package/resources/ai/assistants/versions.d.mts.map +1 -1
  33. package/resources/ai/assistants/versions.d.ts +59 -12
  34. package/resources/ai/assistants/versions.d.ts.map +1 -1
  35. package/resources/ai/audio.d.mts +78 -43
  36. package/resources/ai/audio.d.mts.map +1 -1
  37. package/resources/ai/audio.d.ts +78 -43
  38. package/resources/ai/audio.d.ts.map +1 -1
  39. package/resources/ai/audio.js.map +1 -1
  40. package/resources/ai/audio.mjs.map +1 -1
  41. package/resources/ai/chat.d.mts +59 -28
  42. package/resources/ai/chat.d.mts.map +1 -1
  43. package/resources/ai/chat.d.ts +59 -28
  44. package/resources/ai/chat.d.ts.map +1 -1
  45. package/resources/ai/chat.js.map +1 -1
  46. package/resources/ai/chat.mjs.map +1 -1
  47. package/resources/ai/index.d.mts +3 -2
  48. package/resources/ai/index.d.mts.map +1 -1
  49. package/resources/ai/index.d.ts +3 -2
  50. package/resources/ai/index.d.ts.map +1 -1
  51. package/resources/ai/index.js +3 -1
  52. package/resources/ai/index.js.map +1 -1
  53. package/resources/ai/index.mjs +2 -1
  54. package/resources/ai/index.mjs.map +1 -1
  55. package/resources/ai/openai/chat.d.mts +67 -29
  56. package/resources/ai/openai/chat.d.mts.map +1 -1
  57. package/resources/ai/openai/chat.d.ts +67 -29
  58. package/resources/ai/openai/chat.d.ts.map +1 -1
  59. package/resources/ai/openai/chat.js.map +1 -1
  60. package/resources/ai/openai/chat.mjs.map +1 -1
  61. package/resources/ai/openai/index.d.mts +1 -1
  62. package/resources/ai/openai/index.d.mts.map +1 -1
  63. package/resources/ai/openai/index.d.ts +1 -1
  64. package/resources/ai/openai/index.d.ts.map +1 -1
  65. package/resources/ai/openai/index.js.map +1 -1
  66. package/resources/ai/openai/index.mjs +1 -1
  67. package/resources/ai/openai/index.mjs.map +1 -1
  68. package/resources/ai/openai/openai.d.mts +2 -2
  69. package/resources/ai/openai/openai.d.mts.map +1 -1
  70. package/resources/ai/openai/openai.d.ts +2 -2
  71. package/resources/ai/openai/openai.d.ts.map +1 -1
  72. package/resources/ai/openai/openai.js.map +1 -1
  73. package/resources/ai/openai/openai.mjs.map +1 -1
  74. package/resources/ai/typesafe/index.d.mts +3 -0
  75. package/resources/ai/typesafe/index.d.mts.map +1 -0
  76. package/resources/ai/typesafe/index.d.ts +3 -0
  77. package/resources/ai/typesafe/index.d.ts.map +1 -0
  78. package/resources/ai/typesafe/index.js +9 -0
  79. package/resources/ai/typesafe/index.js.map +1 -0
  80. package/resources/ai/typesafe/index.mjs +4 -0
  81. package/resources/ai/typesafe/index.mjs.map +1 -0
  82. package/resources/ai/typesafe/typesafe.d.mts +10 -0
  83. package/resources/ai/typesafe/typesafe.d.mts.map +1 -0
  84. package/resources/ai/typesafe/typesafe.d.ts +10 -0
  85. package/resources/ai/typesafe/typesafe.d.ts.map +1 -0
  86. package/resources/ai/typesafe/typesafe.js +17 -0
  87. package/resources/ai/typesafe/typesafe.js.map +1 -0
  88. package/resources/ai/typesafe/typesafe.mjs +12 -0
  89. package/resources/ai/typesafe/typesafe.mjs.map +1 -0
  90. package/resources/ai/typesafe/v1.d.mts +274 -0
  91. package/resources/ai/typesafe/v1.d.mts.map +1 -0
  92. package/resources/ai/typesafe/v1.d.ts +274 -0
  93. package/resources/ai/typesafe/v1.d.ts.map +1 -0
  94. package/resources/ai/typesafe/v1.js +67 -0
  95. package/resources/ai/typesafe/v1.js.map +1 -0
  96. package/resources/ai/typesafe/v1.mjs +63 -0
  97. package/resources/ai/typesafe/v1.mjs.map +1 -0
  98. package/resources/ai/typesafe.d.mts +2 -0
  99. package/resources/ai/typesafe.d.mts.map +1 -0
  100. package/resources/ai/typesafe.d.ts +2 -0
  101. package/resources/ai/typesafe.d.ts.map +1 -0
  102. package/resources/ai/typesafe.js +6 -0
  103. package/resources/ai/typesafe.js.map +1 -0
  104. package/resources/ai/typesafe.mjs +3 -0
  105. package/resources/ai/typesafe.mjs.map +1 -0
  106. package/resources/bot-challenge.d.mts +80 -0
  107. package/resources/bot-challenge.d.mts.map +1 -0
  108. package/resources/bot-challenge.d.ts +80 -0
  109. package/resources/bot-challenge.d.ts.map +1 -0
  110. package/resources/bot-challenge.js +35 -0
  111. package/resources/bot-challenge.js.map +1 -0
  112. package/resources/bot-challenge.mjs +31 -0
  113. package/resources/bot-challenge.mjs.map +1 -0
  114. package/resources/bot-sessions.d.mts +49 -0
  115. package/resources/bot-sessions.d.mts.map +1 -0
  116. package/resources/bot-sessions.d.ts +49 -0
  117. package/resources/bot-sessions.d.ts.map +1 -0
  118. package/resources/bot-sessions.js +28 -0
  119. package/resources/bot-sessions.js.map +1 -0
  120. package/resources/bot-sessions.mjs +24 -0
  121. package/resources/bot-sessions.mjs.map +1 -0
  122. package/resources/bot-signup.d.mts +114 -0
  123. package/resources/bot-signup.d.mts.map +1 -0
  124. package/resources/bot-signup.d.ts +114 -0
  125. package/resources/bot-signup.d.ts.map +1 -0
  126. package/resources/bot-signup.js +63 -0
  127. package/resources/bot-signup.js.map +1 -0
  128. package/resources/bot-signup.mjs +59 -0
  129. package/resources/bot-signup.mjs.map +1 -0
  130. package/resources/calls/actions.d.mts +57 -11
  131. package/resources/calls/actions.d.mts.map +1 -1
  132. package/resources/calls/actions.d.ts +57 -11
  133. package/resources/calls/actions.d.ts.map +1 -1
  134. package/resources/calls/calls.d.mts +45 -5
  135. package/resources/calls/calls.d.mts.map +1 -1
  136. package/resources/calls/calls.d.ts +45 -5
  137. package/resources/calls/calls.d.ts.map +1 -1
  138. package/resources/calls/calls.js.map +1 -1
  139. package/resources/calls/calls.mjs.map +1 -1
  140. package/resources/compute/compute.d.mts +10 -0
  141. package/resources/compute/compute.d.mts.map +1 -0
  142. package/resources/compute/compute.d.ts +10 -0
  143. package/resources/compute/compute.d.ts.map +1 -0
  144. package/resources/compute/compute.js +17 -0
  145. package/resources/compute/compute.js.map +1 -0
  146. package/resources/compute/compute.mjs +12 -0
  147. package/resources/compute/compute.mjs.map +1 -0
  148. package/resources/compute/funcs/export.d.mts +121 -0
  149. package/resources/compute/funcs/export.d.mts.map +1 -0
  150. package/resources/compute/funcs/export.d.ts +121 -0
  151. package/resources/compute/funcs/export.d.ts.map +1 -0
  152. package/resources/compute/funcs/export.js +68 -0
  153. package/resources/compute/funcs/export.js.map +1 -0
  154. package/resources/compute/funcs/export.mjs +64 -0
  155. package/resources/compute/funcs/export.mjs.map +1 -0
  156. package/resources/compute/funcs/funcs.d.mts +214 -0
  157. package/resources/compute/funcs/funcs.d.mts.map +1 -0
  158. package/resources/compute/funcs/funcs.d.ts +214 -0
  159. package/resources/compute/funcs/funcs.d.ts.map +1 -0
  160. package/resources/compute/funcs/funcs.js +80 -0
  161. package/resources/compute/funcs/funcs.js.map +1 -0
  162. package/resources/compute/funcs/funcs.mjs +75 -0
  163. package/resources/compute/funcs/funcs.mjs.map +1 -0
  164. package/resources/compute/funcs/index.d.mts +3 -0
  165. package/resources/compute/funcs/index.d.mts.map +1 -0
  166. package/resources/compute/funcs/index.d.ts +3 -0
  167. package/resources/compute/funcs/index.d.ts.map +1 -0
  168. package/resources/compute/funcs/index.js +9 -0
  169. package/resources/compute/funcs/index.js.map +1 -0
  170. package/resources/compute/funcs/index.mjs +4 -0
  171. package/resources/compute/funcs/index.mjs.map +1 -0
  172. package/resources/compute/funcs.d.mts +2 -0
  173. package/resources/compute/funcs.d.mts.map +1 -0
  174. package/resources/compute/funcs.d.ts +2 -0
  175. package/resources/compute/funcs.d.ts.map +1 -0
  176. package/resources/compute/funcs.js +6 -0
  177. package/resources/compute/funcs.js.map +1 -0
  178. package/resources/compute/funcs.mjs +3 -0
  179. package/resources/compute/funcs.mjs.map +1 -0
  180. package/resources/compute/index.d.mts +3 -0
  181. package/resources/compute/index.d.mts.map +1 -0
  182. package/resources/compute/index.d.ts +3 -0
  183. package/resources/compute/index.d.ts.map +1 -0
  184. package/resources/compute/index.js +9 -0
  185. package/resources/compute/index.js.map +1 -0
  186. package/resources/compute/index.mjs +4 -0
  187. package/resources/compute/index.mjs.map +1 -0
  188. package/resources/compute.d.mts +2 -0
  189. package/resources/compute.d.mts.map +1 -0
  190. package/resources/compute.d.ts +2 -0
  191. package/resources/compute.d.ts.map +1 -0
  192. package/resources/compute.js +6 -0
  193. package/resources/compute.js.map +1 -0
  194. package/resources/compute.mjs +3 -0
  195. package/resources/compute.mjs.map +1 -0
  196. package/resources/connections.d.mts +109 -1
  197. package/resources/connections.d.mts.map +1 -1
  198. package/resources/connections.d.ts +109 -1
  199. package/resources/connections.d.ts.map +1 -1
  200. package/resources/connections.js +8 -0
  201. package/resources/connections.js.map +1 -1
  202. package/resources/connections.mjs +8 -0
  203. package/resources/connections.mjs.map +1 -1
  204. package/resources/credential-connections/credential-connections.d.mts +4 -1
  205. package/resources/credential-connections/credential-connections.d.mts.map +1 -1
  206. package/resources/credential-connections/credential-connections.d.ts +4 -1
  207. package/resources/credential-connections/credential-connections.d.ts.map +1 -1
  208. package/resources/credential-connections/credential-connections.js.map +1 -1
  209. package/resources/credential-connections/credential-connections.mjs.map +1 -1
  210. package/resources/detail-records.d.mts +18 -1
  211. package/resources/detail-records.d.mts.map +1 -1
  212. package/resources/detail-records.d.ts +18 -1
  213. package/resources/detail-records.d.ts.map +1 -1
  214. package/resources/email-inboxes/drafts.d.mts +7 -0
  215. package/resources/email-inboxes/drafts.d.mts.map +1 -1
  216. package/resources/email-inboxes/drafts.d.ts +7 -0
  217. package/resources/email-inboxes/drafts.d.ts.map +1 -1
  218. package/resources/email-messages/email-messages.d.mts +9 -3
  219. package/resources/email-messages/email-messages.d.mts.map +1 -1
  220. package/resources/email-messages/email-messages.d.ts +9 -3
  221. package/resources/email-messages/email-messages.d.ts.map +1 -1
  222. package/resources/email-messages/email-messages.js +5 -1
  223. package/resources/email-messages/email-messages.js.map +1 -1
  224. package/resources/email-messages/email-messages.mjs +5 -1
  225. package/resources/email-messages/email-messages.mjs.map +1 -1
  226. package/resources/fqdn-connections/fqdn-authentication.d.mts +4 -1
  227. package/resources/fqdn-connections/fqdn-authentication.d.mts.map +1 -1
  228. package/resources/fqdn-connections/fqdn-authentication.d.ts +4 -1
  229. package/resources/fqdn-connections/fqdn-authentication.d.ts.map +1 -1
  230. package/resources/fqdn-connections/fqdn-connections.d.mts +4 -1
  231. package/resources/fqdn-connections/fqdn-connections.d.mts.map +1 -1
  232. package/resources/fqdn-connections/fqdn-connections.d.ts +4 -1
  233. package/resources/fqdn-connections/fqdn-connections.d.ts.map +1 -1
  234. package/resources/fqdn-connections/fqdn-connections.js.map +1 -1
  235. package/resources/fqdn-connections/fqdn-connections.mjs.map +1 -1
  236. package/resources/index.d.mts +9 -3
  237. package/resources/index.d.mts.map +1 -1
  238. package/resources/index.d.ts +9 -3
  239. package/resources/index.d.ts.map +1 -1
  240. package/resources/index.js +16 -4
  241. package/resources/index.js.map +1 -1
  242. package/resources/index.mjs +6 -0
  243. package/resources/index.mjs.map +1 -1
  244. package/resources/machine-payments.d.mts +142 -0
  245. package/resources/machine-payments.d.mts.map +1 -0
  246. package/resources/machine-payments.d.ts +142 -0
  247. package/resources/machine-payments.d.ts.map +1 -0
  248. package/resources/machine-payments.js +56 -0
  249. package/resources/machine-payments.js.map +1 -0
  250. package/resources/machine-payments.mjs +52 -0
  251. package/resources/machine-payments.mjs.map +1 -0
  252. package/resources/messages/messages.d.mts +207 -22
  253. package/resources/messages/messages.d.mts.map +1 -1
  254. package/resources/messages/messages.d.ts +207 -22
  255. package/resources/messages/messages.d.ts.map +1 -1
  256. package/resources/messages/messages.js.map +1 -1
  257. package/resources/messages/messages.mjs.map +1 -1
  258. package/resources/messaging-profiles/index.d.mts +1 -1
  259. package/resources/messaging-profiles/index.d.mts.map +1 -1
  260. package/resources/messaging-profiles/index.d.ts +1 -1
  261. package/resources/messaging-profiles/index.d.ts.map +1 -1
  262. package/resources/messaging-profiles/index.js.map +1 -1
  263. package/resources/messaging-profiles/index.mjs.map +1 -1
  264. package/resources/messaging-profiles/messaging-profiles.d.mts +34 -1
  265. package/resources/messaging-profiles/messaging-profiles.d.mts.map +1 -1
  266. package/resources/messaging-profiles/messaging-profiles.d.ts +34 -1
  267. package/resources/messaging-profiles/messaging-profiles.d.ts.map +1 -1
  268. package/resources/messaging-profiles/messaging-profiles.js.map +1 -1
  269. package/resources/messaging-profiles/messaging-profiles.mjs.map +1 -1
  270. package/resources/noise-suppression-engines.d.mts +42 -0
  271. package/resources/noise-suppression-engines.d.mts.map +1 -0
  272. package/resources/noise-suppression-engines.d.ts +42 -0
  273. package/resources/noise-suppression-engines.d.ts.map +1 -0
  274. package/resources/noise-suppression-engines.js +21 -0
  275. package/resources/noise-suppression-engines.js.map +1 -0
  276. package/resources/noise-suppression-engines.mjs +17 -0
  277. package/resources/noise-suppression-engines.mjs.map +1 -0
  278. package/resources/speech-to-text/speech-to-text.d.mts +1 -1
  279. package/resources/speech-to-text/speech-to-text.d.mts.map +1 -1
  280. package/resources/speech-to-text/speech-to-text.d.ts +1 -1
  281. package/resources/speech-to-text/speech-to-text.d.ts.map +1 -1
  282. package/resources/texml/accounts/calls/calls.d.mts +117 -0
  283. package/resources/texml/accounts/calls/calls.d.mts.map +1 -1
  284. package/resources/texml/accounts/calls/calls.d.ts +117 -0
  285. package/resources/texml/accounts/calls/calls.d.ts.map +1 -1
  286. package/resources/texml/accounts/calls/calls.js.map +1 -1
  287. package/resources/texml/accounts/calls/calls.mjs.map +1 -1
  288. package/resources/texml/accounts/conferences/participants.d.mts +39 -0
  289. package/resources/texml/accounts/conferences/participants.d.mts.map +1 -1
  290. package/resources/texml/accounts/conferences/participants.d.ts +39 -0
  291. package/resources/texml/accounts/conferences/participants.d.ts.map +1 -1
  292. package/resources/texml/calls.d.mts +71 -0
  293. package/resources/texml/calls.d.mts.map +1 -0
  294. package/resources/texml/calls.d.ts +71 -0
  295. package/resources/texml/calls.d.ts.map +1 -0
  296. package/resources/texml/calls.js +33 -0
  297. package/resources/texml/calls.js.map +1 -0
  298. package/resources/texml/calls.mjs +29 -0
  299. package/resources/texml/calls.mjs.map +1 -0
  300. package/resources/texml/index.d.mts +1 -0
  301. package/resources/texml/index.d.mts.map +1 -1
  302. package/resources/texml/index.d.ts +1 -0
  303. package/resources/texml/index.d.ts.map +1 -1
  304. package/resources/texml/index.js +3 -1
  305. package/resources/texml/index.js.map +1 -1
  306. package/resources/texml/index.mjs +1 -0
  307. package/resources/texml/index.mjs.map +1 -1
  308. package/resources/texml/texml.d.mts +43 -0
  309. package/resources/texml/texml.d.mts.map +1 -1
  310. package/resources/texml/texml.d.ts +43 -0
  311. package/resources/texml/texml.d.ts.map +1 -1
  312. package/resources/texml/texml.js +4 -0
  313. package/resources/texml/texml.js.map +1 -1
  314. package/resources/texml/texml.mjs +4 -0
  315. package/resources/texml/texml.mjs.map +1 -1
  316. package/resources/uac-connections/uac-connections.d.mts +9 -2
  317. package/resources/uac-connections/uac-connections.d.mts.map +1 -1
  318. package/resources/uac-connections/uac-connections.d.ts +9 -2
  319. package/resources/uac-connections/uac-connections.d.ts.map +1 -1
  320. package/resources/uac-connections/uac-connections.js.map +1 -1
  321. package/resources/uac-connections/uac-connections.mjs.map +1 -1
  322. package/resources/voice-clones.d.mts +6 -4
  323. package/resources/voice-clones.d.mts.map +1 -1
  324. package/resources/voice-clones.d.ts +6 -4
  325. package/resources/voice-clones.d.ts.map +1 -1
  326. package/resources/voice-clones.js +4 -2
  327. package/resources/voice-clones.js.map +1 -1
  328. package/resources/voice-clones.mjs +4 -2
  329. package/resources/voice-clones.mjs.map +1 -1
  330. package/resources/webhooks.d.mts +154 -51
  331. package/resources/webhooks.d.mts.map +1 -1
  332. package/resources/webhooks.d.ts +154 -51
  333. package/resources/webhooks.d.ts.map +1 -1
  334. package/resources/whatsapp/business-accounts/phone-numbers.d.mts +33 -0
  335. package/resources/whatsapp/business-accounts/phone-numbers.d.mts.map +1 -1
  336. package/resources/whatsapp/business-accounts/phone-numbers.d.ts +33 -0
  337. package/resources/whatsapp/business-accounts/phone-numbers.d.ts.map +1 -1
  338. package/resources/whatsapp/index.d.mts +1 -1
  339. package/resources/whatsapp/index.d.mts.map +1 -1
  340. package/resources/whatsapp/index.d.ts +1 -1
  341. package/resources/whatsapp/index.d.ts.map +1 -1
  342. package/resources/whatsapp/index.js.map +1 -1
  343. package/resources/whatsapp/index.mjs.map +1 -1
  344. package/resources/whatsapp/phone-numbers/index.d.mts +1 -1
  345. package/resources/whatsapp/phone-numbers/index.d.mts.map +1 -1
  346. package/resources/whatsapp/phone-numbers/index.d.ts +1 -1
  347. package/resources/whatsapp/phone-numbers/index.d.ts.map +1 -1
  348. package/resources/whatsapp/phone-numbers/index.js.map +1 -1
  349. package/resources/whatsapp/phone-numbers/index.mjs.map +1 -1
  350. package/resources/whatsapp/phone-numbers/phone-numbers.d.mts +147 -1
  351. package/resources/whatsapp/phone-numbers/phone-numbers.d.mts.map +1 -1
  352. package/resources/whatsapp/phone-numbers/phone-numbers.d.ts +147 -1
  353. package/resources/whatsapp/phone-numbers/phone-numbers.d.ts.map +1 -1
  354. package/resources/whatsapp/phone-numbers/phone-numbers.js +16 -0
  355. package/resources/whatsapp/phone-numbers/phone-numbers.js.map +1 -1
  356. package/resources/whatsapp/phone-numbers/phone-numbers.mjs +16 -0
  357. package/resources/whatsapp/phone-numbers/phone-numbers.mjs.map +1 -1
  358. package/resources/whatsapp/whatsapp.d.mts +2 -2
  359. package/resources/whatsapp/whatsapp.d.mts.map +1 -1
  360. package/resources/whatsapp/whatsapp.d.ts +2 -2
  361. package/resources/whatsapp/whatsapp.d.ts.map +1 -1
  362. package/resources/whatsapp/whatsapp.js.map +1 -1
  363. package/resources/whatsapp/whatsapp.mjs.map +1 -1
  364. package/resources/x402/credit-account/credit-account.d.mts +226 -0
  365. package/resources/x402/credit-account/credit-account.d.mts.map +1 -0
  366. package/resources/x402/credit-account/credit-account.d.ts +226 -0
  367. package/resources/x402/credit-account/credit-account.d.ts.map +1 -0
  368. package/resources/x402/credit-account/credit-account.js +66 -0
  369. package/resources/x402/credit-account/credit-account.js.map +1 -0
  370. package/resources/x402/credit-account/credit-account.mjs +61 -0
  371. package/resources/x402/credit-account/credit-account.mjs.map +1 -0
  372. package/resources/x402/credit-account/index.d.mts +3 -0
  373. package/resources/x402/credit-account/index.d.mts.map +1 -0
  374. package/resources/x402/credit-account/index.d.ts +3 -0
  375. package/resources/x402/credit-account/index.d.ts.map +1 -0
  376. package/resources/x402/credit-account/index.js +9 -0
  377. package/resources/x402/credit-account/index.js.map +1 -0
  378. package/resources/x402/credit-account/index.mjs +4 -0
  379. package/resources/x402/credit-account/index.mjs.map +1 -0
  380. package/resources/x402/credit-account/payments.d.mts +90 -0
  381. package/resources/x402/credit-account/payments.d.mts.map +1 -0
  382. package/resources/x402/credit-account/payments.d.ts +90 -0
  383. package/resources/x402/credit-account/payments.d.ts.map +1 -0
  384. package/resources/x402/credit-account/payments.js +47 -0
  385. package/resources/x402/credit-account/payments.js.map +1 -0
  386. package/resources/x402/credit-account/payments.mjs +43 -0
  387. package/resources/x402/credit-account/payments.mjs.map +1 -0
  388. package/resources/x402/credit-account.d.mts +1 -221
  389. package/resources/x402/credit-account.d.mts.map +1 -1
  390. package/resources/x402/credit-account.d.ts +1 -221
  391. package/resources/x402/credit-account.d.ts.map +1 -1
  392. package/resources/x402/credit-account.js +2 -54
  393. package/resources/x402/credit-account.js.map +1 -1
  394. package/resources/x402/credit-account.mjs +1 -52
  395. package/resources/x402/credit-account.mjs.map +1 -1
  396. package/resources/x402/index.d.mts +1 -1
  397. package/resources/x402/index.d.mts.map +1 -1
  398. package/resources/x402/index.d.ts +1 -1
  399. package/resources/x402/index.d.ts.map +1 -1
  400. package/resources/x402/index.js +2 -2
  401. package/resources/x402/index.js.map +1 -1
  402. package/resources/x402/index.mjs +1 -1
  403. package/resources/x402/index.mjs.map +1 -1
  404. package/resources/x402/x402.d.mts +2 -2
  405. package/resources/x402/x402.d.mts.map +1 -1
  406. package/resources/x402/x402.d.ts +2 -2
  407. package/resources/x402/x402.d.ts.map +1 -1
  408. package/resources/x402/x402.js +2 -2
  409. package/resources/x402/x402.js.map +1 -1
  410. package/resources/x402/x402.mjs +2 -2
  411. package/resources/x402/x402.mjs.map +1 -1
  412. package/src/client.ts +91 -0
  413. package/src/resources/ai/ai.ts +15 -1
  414. package/src/resources/ai/assistants/assistants.ts +454 -45
  415. package/src/resources/ai/assistants/index.ts +1 -0
  416. package/src/resources/ai/assistants/versions.ts +61 -12
  417. package/src/resources/ai/audio.ts +93 -45
  418. package/src/resources/ai/chat.ts +66 -29
  419. package/src/resources/ai/index.ts +8 -1
  420. package/src/resources/ai/openai/chat.ts +75 -29
  421. package/src/resources/ai/openai/index.ts +6 -1
  422. package/src/resources/ai/openai/openai.ts +2 -1
  423. package/src/resources/ai/typesafe/index.ts +4 -0
  424. package/src/resources/ai/typesafe/typesafe.ts +19 -0
  425. package/src/resources/ai/typesafe/v1.ts +298 -0
  426. package/src/resources/ai/typesafe.ts +3 -0
  427. package/src/resources/bot-challenge.ts +101 -0
  428. package/src/resources/bot-sessions.ts +61 -0
  429. package/src/resources/bot-signup.ts +140 -0
  430. package/src/resources/calls/actions.ts +65 -10
  431. package/src/resources/calls/calls.ts +52 -5
  432. package/src/resources/compute/compute.ts +37 -0
  433. package/src/resources/compute/funcs/export.ts +156 -0
  434. package/src/resources/compute/funcs/funcs.ts +341 -0
  435. package/src/resources/compute/funcs/index.ts +15 -0
  436. package/src/resources/compute/funcs.ts +3 -0
  437. package/src/resources/compute/index.ts +15 -0
  438. package/src/resources/compute.ts +3 -0
  439. package/src/resources/connections.ts +133 -0
  440. package/src/resources/credential-connections/credential-connections.ts +4 -1
  441. package/src/resources/detail-records.ts +18 -1
  442. package/src/resources/email-inboxes/drafts.ts +8 -0
  443. package/src/resources/email-messages/email-messages.ts +9 -2
  444. package/src/resources/fqdn-connections/fqdn-authentication.ts +4 -1
  445. package/src/resources/fqdn-connections/fqdn-connections.ts +4 -1
  446. package/src/resources/index.ts +27 -0
  447. package/src/resources/machine-payments.ts +169 -0
  448. package/src/resources/messages/messages.ts +250 -22
  449. package/src/resources/messaging-profiles/index.ts +1 -0
  450. package/src/resources/messaging-profiles/messaging-profiles.ts +39 -0
  451. package/src/resources/noise-suppression-engines.ts +51 -0
  452. package/src/resources/speech-to-text/speech-to-text.ts +1 -0
  453. package/src/resources/texml/accounts/calls/calls.ts +138 -0
  454. package/src/resources/texml/accounts/conferences/participants.ts +46 -0
  455. package/src/resources/texml/calls.ts +90 -0
  456. package/src/resources/texml/index.ts +1 -0
  457. package/src/resources/texml/texml.ts +56 -0
  458. package/src/resources/uac-connections/uac-connections.ts +9 -2
  459. package/src/resources/voice-clones.ts +6 -4
  460. package/src/resources/webhooks.ts +208 -60
  461. package/src/resources/whatsapp/business-accounts/phone-numbers.ts +52 -0
  462. package/src/resources/whatsapp/index.ts +1 -0
  463. package/src/resources/whatsapp/phone-numbers/index.ts +1 -0
  464. package/src/resources/whatsapp/phone-numbers/phone-numbers.ts +222 -0
  465. package/src/resources/whatsapp/whatsapp.ts +2 -0
  466. package/src/resources/x402/credit-account/credit-account.ts +312 -0
  467. package/src/resources/x402/credit-account/index.ts +16 -0
  468. package/src/resources/x402/credit-account/payments.ts +126 -0
  469. package/src/resources/x402/credit-account.ts +1 -290
  470. package/src/resources/x402/index.ts +1 -1
  471. package/src/resources/x402/x402.ts +2 -2
  472. package/src/version.ts +1 -1
  473. package/version.d.mts +1 -1
  474. package/version.d.ts +1 -1
  475. package/version.js +1 -1
  476. package/version.mjs +1 -1
@@ -273,6 +273,13 @@ export interface MessagingMessagingProfile {
273
273
  */
274
274
  enabled?: boolean;
275
275
 
276
+ /**
277
+ * Telnyx product features the messaging customer can enable on the messaging
278
+ * profile. Keys map to individual feature flags; unknown keys are accepted and
279
+ * preserved for forward compatibility with rolling deployments.
280
+ */
281
+ features?: MessagingProfileFeatures | null;
282
+
276
283
  /**
277
284
  * DEPRECATED: health check url service checking
278
285
  */
@@ -543,6 +550,23 @@ export interface MessagingProfile {
543
550
  whitelisted_destinations?: Array<string>;
544
551
  }
545
552
 
553
+ /**
554
+ * Telnyx product features the messaging customer can enable on the messaging
555
+ * profile. Keys map to individual feature flags; unknown keys are accepted and
556
+ * preserved for forward compatibility with rolling deployments.
557
+ */
558
+ export interface MessagingProfileFeatures {
559
+ /**
560
+ * Enables AI detection of inbound opt-out messages that do not follow the standard
561
+ * STOP/UNSTOP/HELP opt-out keyword pattern. When enabled, the messaging platform
562
+ * applies an AI model to identify non-standard opt-out requests (e.g.
563
+ * natural-language phrases) and treats them as opt-outs.
564
+ */
565
+ ai_opt_out_detection_enabled?: boolean;
566
+
567
+ [k: string]: unknown;
568
+ }
569
+
546
570
  /**
547
571
  * Number Pool allows you to send messages from a pool of numbers of different
548
572
  * types, assigning weights to each type. The pool consists of all the long code
@@ -720,6 +744,13 @@ export interface MessagingProfileCreateParams {
720
744
  */
721
745
  enabled?: boolean;
722
746
 
747
+ /**
748
+ * Telnyx product features the messaging customer can enable on the messaging
749
+ * profile. Keys map to individual feature flags; unknown keys are accepted and
750
+ * preserved for forward compatibility with rolling deployments.
751
+ */
752
+ features?: MessagingProfileFeatures | null;
753
+
723
754
  /**
724
755
  * A URL to receive health check webhooks for numbers in this profile.
725
756
  */
@@ -818,6 +849,13 @@ export interface MessagingProfileUpdateParams {
818
849
  */
819
850
  enabled?: boolean;
820
851
 
852
+ /**
853
+ * Telnyx product features the messaging customer can enable on the messaging
854
+ * profile. Keys map to individual feature flags; unknown keys are accepted and
855
+ * preserved for forward compatibility with rolling deployments.
856
+ */
857
+ features?: MessagingProfileFeatures | null;
858
+
821
859
  /**
822
860
  * enables SMS fallback for MMS messages.
823
861
  */
@@ -932,6 +970,7 @@ export declare namespace MessagingProfiles {
932
970
  export {
933
971
  type MessagingMessagingProfile as MessagingMessagingProfile,
934
972
  type MessagingProfile as MessagingProfile,
973
+ type MessagingProfileFeatures as MessagingProfileFeatures,
935
974
  type NumberPoolSettings as NumberPoolSettings,
936
975
  type URLShortenerSettings as URLShortenerSettings,
937
976
  type MessagingProfileCreateResponse as MessagingProfileCreateResponse,
@@ -0,0 +1,51 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import { APIPromise } from '../core/api-promise';
5
+ import { RequestOptions } from '../internal/request-options';
6
+
7
+ /**
8
+ * Noise suppression engines that can be selected when configuring noise suppression on voice connections.
9
+ */
10
+ export class NoiseSuppressionEngines extends APIResource {
11
+ /**
12
+ * Returns all noise suppression engines available to the authenticated user.
13
+ * Engines gated behind a feature flag are included only when the flag is enabled
14
+ * for the user's account. Results are not paginated; the number of engines is
15
+ * expected to remain small.
16
+ */
17
+ list(options?: RequestOptions): APIPromise<NoiseSuppressionEngineListResponse> {
18
+ return this._client.get('/noise_suppression_engines', options);
19
+ }
20
+ }
21
+
22
+ export interface NoiseSuppressionEngineListResponse {
23
+ data: Array<NoiseSuppressionEngineListResponse.Data>;
24
+ }
25
+
26
+ export namespace NoiseSuppressionEngineListResponse {
27
+ /**
28
+ * A noise suppression engine available to the authenticated user.
29
+ */
30
+ export interface Data {
31
+ /**
32
+ * Default attenuation level of the engine (0-100, in multiples of ten).
33
+ */
34
+ default_attenuation_level: number;
35
+
36
+ /**
37
+ * Human-readable name of the engine.
38
+ */
39
+ label: string;
40
+
41
+ /**
42
+ * Machine-readable identifier of the engine, used when configuring noise
43
+ * suppression.
44
+ */
45
+ value: string;
46
+ }
47
+ }
48
+
49
+ export declare namespace NoiseSuppressionEngines {
50
+ export { type NoiseSuppressionEngineListResponse as NoiseSuppressionEngineListResponse };
51
+ }
@@ -314,6 +314,7 @@ export interface SpeechToTextRetrieveTranscriptionParams {
314
314
  | 'speechmatics/standard'
315
315
  | 'soniox/stt-rt-v4'
316
316
  | 'nvidia/parakeet-v3'
317
+ | 'omi-health/omi-med-stt-v1'
317
318
  | 'humain/realtime'
318
319
  | 'reson8/turns'
319
320
  | 'cohere/ar-stt';
@@ -590,6 +590,27 @@ export namespace CallCallsParams {
590
590
  */
591
591
  MachineDetection?: 'Enable' | 'Disable' | 'DetectMessageEnd';
592
592
 
593
+ /**
594
+ * Highest frequency, in Hz, that a tone can reach and still be treated as a beep.
595
+ * Only used when MachineDetection is enabled.
596
+ */
597
+ MachineDetectionBeepMaxFrequency?: number;
598
+
599
+ /**
600
+ * Lowest frequency, in Hz, that a tone must reach to be treated as a beep. Raising
601
+ * it above 480 excludes North American ringback (440 + 480 Hz), which can
602
+ * otherwise be reported as a beep when the `freq_only` profile is in use. Only
603
+ * used when MachineDetection is enabled.
604
+ */
605
+ MachineDetectionBeepMinFrequency?: number;
606
+
607
+ /**
608
+ * Shortest tone, in milliseconds, that can be treated as a beep. Raising it
609
+ * rejects brief tones such as call-progress blips. Only used when MachineDetection
610
+ * is enabled.
611
+ */
612
+ MachineDetectionBeepMinToneDuration?: number;
613
+
593
614
  /**
594
615
  * Selects which detectors must validate a beep. `both` requires the amplitude and
595
616
  * frequency detectors to agree. `freq_only` uses the frequency detector alone, for
@@ -598,6 +619,31 @@ export namespace CallCallsParams {
598
619
  */
599
620
  MachineDetectionBeepProfile?: 'both' | 'freq_only';
600
621
 
622
+ /**
623
+ * When enabled, a candidate beep must pass an additional spectral check before it
624
+ * is reported. Only used when MachineDetection is enabled.
625
+ */
626
+ MachineDetectionBeepSpectralConfirmation?: boolean;
627
+
628
+ /**
629
+ * Minimum spectral purity, from 0 to 1, for a tone to be treated as a beep.
630
+ * Raising it rejects mixed tones such as ringback, which combines two frequencies.
631
+ * Only used when MachineDetection is enabled.
632
+ */
633
+ MachineDetectionBeepSpectralMinPurity?: number;
634
+
635
+ /**
636
+ * When enabled, the fax CNG tone is rejected rather than reported as a beep. Only
637
+ * used when MachineDetection is enabled.
638
+ */
639
+ MachineDetectionBeepSpectralRejectFaxCng?: boolean;
640
+
641
+ /**
642
+ * Length of the spectral confirmation window, in milliseconds. Only used when
643
+ * MachineDetection is enabled.
644
+ */
645
+ MachineDetectionBeepSpectralWindow?: number;
646
+
601
647
  /**
602
648
  * Silence duration threshold after a call screening prompt before ending prompt
603
649
  * detection, in milliseconds. Used when `DetectionMode` is `PremiumCallScreening`.
@@ -874,6 +920,27 @@ export namespace CallCallsParams {
874
920
  */
875
921
  MachineDetection?: 'Enable' | 'Disable' | 'DetectMessageEnd';
876
922
 
923
+ /**
924
+ * Highest frequency, in Hz, that a tone can reach and still be treated as a beep.
925
+ * Only used when MachineDetection is enabled.
926
+ */
927
+ MachineDetectionBeepMaxFrequency?: number;
928
+
929
+ /**
930
+ * Lowest frequency, in Hz, that a tone must reach to be treated as a beep. Raising
931
+ * it above 480 excludes North American ringback (440 + 480 Hz), which can
932
+ * otherwise be reported as a beep when the `freq_only` profile is in use. Only
933
+ * used when MachineDetection is enabled.
934
+ */
935
+ MachineDetectionBeepMinFrequency?: number;
936
+
937
+ /**
938
+ * Shortest tone, in milliseconds, that can be treated as a beep. Raising it
939
+ * rejects brief tones such as call-progress blips. Only used when MachineDetection
940
+ * is enabled.
941
+ */
942
+ MachineDetectionBeepMinToneDuration?: number;
943
+
877
944
  /**
878
945
  * Selects which detectors must validate a beep. `both` requires the amplitude and
879
946
  * frequency detectors to agree. `freq_only` uses the frequency detector alone, for
@@ -882,6 +949,31 @@ export namespace CallCallsParams {
882
949
  */
883
950
  MachineDetectionBeepProfile?: 'both' | 'freq_only';
884
951
 
952
+ /**
953
+ * When enabled, a candidate beep must pass an additional spectral check before it
954
+ * is reported. Only used when MachineDetection is enabled.
955
+ */
956
+ MachineDetectionBeepSpectralConfirmation?: boolean;
957
+
958
+ /**
959
+ * Minimum spectral purity, from 0 to 1, for a tone to be treated as a beep.
960
+ * Raising it rejects mixed tones such as ringback, which combines two frequencies.
961
+ * Only used when MachineDetection is enabled.
962
+ */
963
+ MachineDetectionBeepSpectralMinPurity?: number;
964
+
965
+ /**
966
+ * When enabled, the fax CNG tone is rejected rather than reported as a beep. Only
967
+ * used when MachineDetection is enabled.
968
+ */
969
+ MachineDetectionBeepSpectralRejectFaxCng?: boolean;
970
+
971
+ /**
972
+ * Length of the spectral confirmation window, in milliseconds. Only used when
973
+ * MachineDetection is enabled.
974
+ */
975
+ MachineDetectionBeepSpectralWindow?: number;
976
+
885
977
  /**
886
978
  * Silence duration threshold after a call screening prompt before ending prompt
887
979
  * detection, in milliseconds. Used when `DetectionMode` is `PremiumCallScreening`.
@@ -1152,6 +1244,27 @@ export namespace CallCallsParams {
1152
1244
  */
1153
1245
  MachineDetection?: 'Enable' | 'Disable' | 'DetectMessageEnd';
1154
1246
 
1247
+ /**
1248
+ * Highest frequency, in Hz, that a tone can reach and still be treated as a beep.
1249
+ * Only used when MachineDetection is enabled.
1250
+ */
1251
+ MachineDetectionBeepMaxFrequency?: number;
1252
+
1253
+ /**
1254
+ * Lowest frequency, in Hz, that a tone must reach to be treated as a beep. Raising
1255
+ * it above 480 excludes North American ringback (440 + 480 Hz), which can
1256
+ * otherwise be reported as a beep when the `freq_only` profile is in use. Only
1257
+ * used when MachineDetection is enabled.
1258
+ */
1259
+ MachineDetectionBeepMinFrequency?: number;
1260
+
1261
+ /**
1262
+ * Shortest tone, in milliseconds, that can be treated as a beep. Raising it
1263
+ * rejects brief tones such as call-progress blips. Only used when MachineDetection
1264
+ * is enabled.
1265
+ */
1266
+ MachineDetectionBeepMinToneDuration?: number;
1267
+
1155
1268
  /**
1156
1269
  * Selects which detectors must validate a beep. `both` requires the amplitude and
1157
1270
  * frequency detectors to agree. `freq_only` uses the frequency detector alone, for
@@ -1160,6 +1273,31 @@ export namespace CallCallsParams {
1160
1273
  */
1161
1274
  MachineDetectionBeepProfile?: 'both' | 'freq_only';
1162
1275
 
1276
+ /**
1277
+ * When enabled, a candidate beep must pass an additional spectral check before it
1278
+ * is reported. Only used when MachineDetection is enabled.
1279
+ */
1280
+ MachineDetectionBeepSpectralConfirmation?: boolean;
1281
+
1282
+ /**
1283
+ * Minimum spectral purity, from 0 to 1, for a tone to be treated as a beep.
1284
+ * Raising it rejects mixed tones such as ringback, which combines two frequencies.
1285
+ * Only used when MachineDetection is enabled.
1286
+ */
1287
+ MachineDetectionBeepSpectralMinPurity?: number;
1288
+
1289
+ /**
1290
+ * When enabled, the fax CNG tone is rejected rather than reported as a beep. Only
1291
+ * used when MachineDetection is enabled.
1292
+ */
1293
+ MachineDetectionBeepSpectralRejectFaxCng?: boolean;
1294
+
1295
+ /**
1296
+ * Length of the spectral confirmation window, in milliseconds. Only used when
1297
+ * MachineDetection is enabled.
1298
+ */
1299
+ MachineDetectionBeepSpectralWindow?: number;
1300
+
1163
1301
  /**
1164
1302
  * Silence duration threshold after a call screening prompt before ending prompt
1165
1303
  * detection, in milliseconds. Used when `DetectionMode` is `PremiumCallScreening`.
@@ -484,6 +484,27 @@ export interface ParticipantParticipantsParams {
484
484
  */
485
485
  MachineDetection?: 'Enable' | 'DetectMessageEnd';
486
486
 
487
+ /**
488
+ * Body param: Highest frequency, in Hz, that a tone can reach and still be treated
489
+ * as a beep. Only used when MachineDetection is enabled.
490
+ */
491
+ MachineDetectionBeepMaxFrequency?: number;
492
+
493
+ /**
494
+ * Body param: Lowest frequency, in Hz, that a tone must reach to be treated as a
495
+ * beep. Raising it above 480 excludes North American ringback (440 + 480 Hz),
496
+ * which can otherwise be reported as a beep when the `freq_only` profile is in
497
+ * use. Only used when MachineDetection is enabled.
498
+ */
499
+ MachineDetectionBeepMinFrequency?: number;
500
+
501
+ /**
502
+ * Body param: Shortest tone, in milliseconds, that can be treated as a beep.
503
+ * Raising it rejects brief tones such as call-progress blips. Only used when
504
+ * MachineDetection is enabled.
505
+ */
506
+ MachineDetectionBeepMinToneDuration?: number;
507
+
487
508
  /**
488
509
  * Body param: Selects which detectors must validate a beep. `both` requires the
489
510
  * amplitude and frequency detectors to agree. `freq_only` uses the frequency
@@ -492,6 +513,31 @@ export interface ParticipantParticipantsParams {
492
513
  */
493
514
  MachineDetectionBeepProfile?: 'both' | 'freq_only';
494
515
 
516
+ /**
517
+ * Body param: When enabled, a candidate beep must pass an additional spectral
518
+ * check before it is reported. Only used when MachineDetection is enabled.
519
+ */
520
+ MachineDetectionBeepSpectralConfirmation?: boolean;
521
+
522
+ /**
523
+ * Body param: Minimum spectral purity, from 0 to 1, for a tone to be treated as a
524
+ * beep. Raising it rejects mixed tones such as ringback, which combines two
525
+ * frequencies. Only used when MachineDetection is enabled.
526
+ */
527
+ MachineDetectionBeepSpectralMinPurity?: number;
528
+
529
+ /**
530
+ * Body param: When enabled, the fax CNG tone is rejected rather than reported as a
531
+ * beep. Only used when MachineDetection is enabled.
532
+ */
533
+ MachineDetectionBeepSpectralRejectFaxCng?: boolean;
534
+
535
+ /**
536
+ * Body param: Length of the spectral confirmation window, in milliseconds. Only
537
+ * used when MachineDetection is enabled.
538
+ */
539
+ MachineDetectionBeepSpectralWindow?: number;
540
+
495
541
  /**
496
542
  * Body param: If initial silence duration is greater than this value, consider it
497
543
  * a machine. Ignored when `premium` detection is used.
@@ -0,0 +1,90 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../core/resource';
4
+ import { APIPromise } from '../../core/api-promise';
5
+ import { RequestOptions } from '../../internal/request-options';
6
+ import { path } from '../../internal/utils/path';
7
+
8
+ /**
9
+ * TeXML REST Commands
10
+ */
11
+ export class Calls extends APIResource {
12
+ /**
13
+ * Initiate an outbound TeXML call using a TeXML application connection ID, not an
14
+ * account SID. Request parameter names are case-sensitive. From and To are
15
+ * required; Texml supplies inline instructions and Url overrides the application
16
+ * XML request URL. When neither is supplied, the application configuration
17
+ * supplies the instructions. The response is a flat call object without a data
18
+ * wrapper.
19
+ *
20
+ * @example
21
+ * ```ts
22
+ * const call = await client.texml.calls.create('1234567890', {
23
+ * From: '+13120001234',
24
+ * To: '+13121230000',
25
+ * Texml: '<Response><Say>Hello</Say></Response>',
26
+ * });
27
+ * ```
28
+ */
29
+ create(
30
+ connectionID: string,
31
+ body: CallCreateParams,
32
+ options?: RequestOptions,
33
+ ): APIPromise<CallCreateResponse> {
34
+ return this._client.post(path`/texml/calls/${connectionID}`, { body, ...options });
35
+ }
36
+ }
37
+
38
+ export interface CallCreateResponse {
39
+ /**
40
+ * The call control ID of the created call.
41
+ */
42
+ call_sid: string;
43
+
44
+ /**
45
+ * The caller address.
46
+ */
47
+ from: string;
48
+
49
+ /**
50
+ * The initial status of the outbound call.
51
+ */
52
+ status: 'queued';
53
+
54
+ /**
55
+ * The called address.
56
+ */
57
+ to: string;
58
+ }
59
+
60
+ export interface CallCreateParams {
61
+ /**
62
+ * The E.164-formatted phone number or SIP URI to present as the caller.
63
+ */
64
+ From: string;
65
+
66
+ /**
67
+ * The E.164-formatted phone number or SIP URI to call.
68
+ */
69
+ To: string;
70
+
71
+ /**
72
+ * HTTP method used to retrieve TeXML instructions from Url.
73
+ */
74
+ Method?: 'GET' | 'POST';
75
+
76
+ /**
77
+ * Inline TeXML instructions to execute when the call is answered.
78
+ */
79
+ Texml?: string;
80
+
81
+ /**
82
+ * The URL from which to retrieve TeXML instructions. Overrides the TeXML
83
+ * application XML request URL.
84
+ */
85
+ Url?: string;
86
+ }
87
+
88
+ export declare namespace Calls {
89
+ export { type CallCreateResponse as CallCreateResponse, type CallCreateParams as CallCreateParams };
90
+ }
@@ -8,6 +8,7 @@ export {
8
8
  type AccountRetrieveRecordingsJsonParams,
9
9
  type AccountRetrieveTranscriptionsJsonParams,
10
10
  } from './accounts/index';
11
+ export { Calls, type CallCreateResponse, type CallCreateParams } from './calls';
11
12
  export {
12
13
  Texml,
13
14
  type TexmlInitiateAICallResponse,
@@ -1,6 +1,8 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../../core/resource';
4
+ import * as CallsAPI from './calls';
5
+ import { CallCreateParams, CallCreateResponse, Calls } from './calls';
4
6
  import * as AccountsAPI from './accounts/accounts';
5
7
  import {
6
8
  AccountRetrieveRecordingsJsonParams,
@@ -18,6 +20,7 @@ import { path } from '../../internal/utils/path';
18
20
  * TeXML REST Commands
19
21
  */
20
22
  export class Texml extends APIResource {
23
+ calls: CallsAPI.Calls = new CallsAPI.Calls(this._client);
21
24
  accounts: AccountsAPI.Accounts = new AccountsAPI.Accounts(this._client);
22
25
 
23
26
  /**
@@ -203,6 +206,27 @@ export interface TexmlInitiateAICallParams {
203
206
  */
204
207
  MachineDetection?: 'Enable' | 'Disable' | 'DetectMessageEnd';
205
208
 
209
+ /**
210
+ * Highest frequency, in Hz, that a tone can reach and still be treated as a beep.
211
+ * Only used when MachineDetection is enabled.
212
+ */
213
+ MachineDetectionBeepMaxFrequency?: number;
214
+
215
+ /**
216
+ * Lowest frequency, in Hz, that a tone must reach to be treated as a beep. Raising
217
+ * it above 480 excludes North American ringback (440 + 480 Hz), which can
218
+ * otherwise be reported as a beep when the `freq_only` profile is in use. Only
219
+ * used when MachineDetection is enabled.
220
+ */
221
+ MachineDetectionBeepMinFrequency?: number;
222
+
223
+ /**
224
+ * Shortest tone, in milliseconds, that can be treated as a beep. Raising it
225
+ * rejects brief tones such as call-progress blips. Only used when MachineDetection
226
+ * is enabled.
227
+ */
228
+ MachineDetectionBeepMinToneDuration?: number;
229
+
206
230
  /**
207
231
  * Selects which detectors must validate a beep. `both` requires the amplitude and
208
232
  * frequency detectors to agree. `freq_only` uses the frequency detector alone, for
@@ -211,6 +235,31 @@ export interface TexmlInitiateAICallParams {
211
235
  */
212
236
  MachineDetectionBeepProfile?: 'both' | 'freq_only';
213
237
 
238
+ /**
239
+ * When enabled, a candidate beep must pass an additional spectral check before it
240
+ * is reported. Only used when MachineDetection is enabled.
241
+ */
242
+ MachineDetectionBeepSpectralConfirmation?: boolean;
243
+
244
+ /**
245
+ * Minimum spectral purity, from 0 to 1, for a tone to be treated as a beep.
246
+ * Raising it rejects mixed tones such as ringback, which combines two frequencies.
247
+ * Only used when MachineDetection is enabled.
248
+ */
249
+ MachineDetectionBeepSpectralMinPurity?: number;
250
+
251
+ /**
252
+ * When enabled, the fax CNG tone is rejected rather than reported as a beep. Only
253
+ * used when MachineDetection is enabled.
254
+ */
255
+ MachineDetectionBeepSpectralRejectFaxCng?: boolean;
256
+
257
+ /**
258
+ * Length of the spectral confirmation window, in milliseconds. Only used when
259
+ * MachineDetection is enabled.
260
+ */
261
+ MachineDetectionBeepSpectralWindow?: number;
262
+
214
263
  /**
215
264
  * Silence duration threshold after a call screening prompt before ending prompt
216
265
  * detection, in milliseconds. Used when `DetectionMode` is `PremiumCallScreening`.
@@ -373,6 +422,7 @@ export namespace TexmlInitiateAICallParams {
373
422
  }
374
423
  }
375
424
 
425
+ Texml.Calls = Calls;
376
426
  Texml.Accounts = Accounts;
377
427
 
378
428
  export declare namespace Texml {
@@ -383,6 +433,12 @@ export declare namespace Texml {
383
433
  type TexmlInitiateAICallParams as TexmlInitiateAICallParams,
384
434
  };
385
435
 
436
+ export {
437
+ Calls as Calls,
438
+ type CallCreateResponse as CallCreateResponse,
439
+ type CallCreateParams as CallCreateParams,
440
+ };
441
+
386
442
  export {
387
443
  Accounts as Accounts,
388
444
  type TexmlGetCallRecordingResponseBody as TexmlGetCallRecordingResponseBody,
@@ -247,7 +247,10 @@ export interface UacConnection {
247
247
 
248
248
  /**
249
249
  * The password to be used as part of the credentials. Must be 8 to 128 characters
250
- * long.
250
+ * long. For primary accounts created on or after September 8, 2026, this password
251
+ * is returned as `********`. The password is returned in full on create, and on
252
+ * update only when that update changed the password. Accounts created before
253
+ * September 8, 2026 are unaffected.
251
254
  */
252
255
  password?: string;
253
256
 
@@ -348,7 +351,11 @@ export interface UacExternalSettings {
348
351
  outbound_proxy?: string | null;
349
352
 
350
353
  /**
351
- * The SIP password used for digest authentication with the external SIP peer.
354
+ * The SIP password used for digest authentication with the external SIP peer. For
355
+ * primary accounts created on or after September 8, 2026, this password is
356
+ * returned as `********`. The password is returned in full on create, and on
357
+ * update only when that update changed the password. Accounts created before
358
+ * September 8, 2026 are unaffected.
352
359
  */
353
360
  password?: string;
354
361
 
@@ -58,8 +58,10 @@ export class VoiceClones extends APIResource {
58
58
 
59
59
  /**
60
60
  * Creates a new voice clone by uploading an audio file directly. Supported
61
- * formats: WAV, MP3, FLAC, OGG, M4A. For best results, provide 5–10 seconds of
62
- * clear speech. Maximum file size: 5MB for Telnyx, 20MB for Minimax.
61
+ * formats: WAV, MP3, FLAC, OGG, M4A. For best results, provide 5–60 seconds of
62
+ * clear speech (Ultra accepts up to 60 seconds; Qwen3TTS auto-trims to 10 seconds;
63
+ * Minimax accepts up to 5 minutes). Maximum file size: 5MB for Telnyx, 20MB for
64
+ * Minimax.
63
65
  *
64
66
  * @example
65
67
  * ```ts
@@ -412,8 +414,8 @@ export namespace VoiceCloneCreateFromUploadParams {
412
414
  export interface TelnyxUltraClone {
413
415
  /**
414
416
  * Audio file to clone the voice from. Supported formats: WAV, MP3, FLAC, OGG, M4A.
415
- * For best quality, provide 5–10 seconds of clear, uninterrupted speech. Maximum
416
- * size: 5MB.
417
+ * For best quality, provide up to 60 seconds of clear, uninterrupted speech.
418
+ * Maximum size: 5MB.
417
419
  */
418
420
  audio_file: Uploadable;
419
421