telnyx 7.26.0 → 7.27.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 (456) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/client.d.mts +17 -8
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +17 -8
  5. package/client.d.ts.map +1 -1
  6. package/client.js +9 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +9 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/addresses/addresses.d.mts +22 -2
  12. package/resources/addresses/addresses.d.mts.map +1 -1
  13. package/resources/addresses/addresses.d.ts +22 -2
  14. package/resources/addresses/addresses.d.ts.map +1 -1
  15. package/resources/addresses/addresses.js +12 -0
  16. package/resources/addresses/addresses.js.map +1 -1
  17. package/resources/addresses/addresses.mjs +12 -0
  18. package/resources/addresses/addresses.mjs.map +1 -1
  19. package/resources/ai/ai.d.mts +2 -2
  20. package/resources/ai/ai.d.mts.map +1 -1
  21. package/resources/ai/ai.d.ts +2 -2
  22. package/resources/ai/ai.d.ts.map +1 -1
  23. package/resources/ai/ai.js.map +1 -1
  24. package/resources/ai/ai.mjs.map +1 -1
  25. package/resources/ai/assistants/assistants.d.mts +168 -33
  26. package/resources/ai/assistants/assistants.d.mts.map +1 -1
  27. package/resources/ai/assistants/assistants.d.ts +168 -33
  28. package/resources/ai/assistants/assistants.d.ts.map +1 -1
  29. package/resources/ai/assistants/assistants.js +4 -1
  30. package/resources/ai/assistants/assistants.js.map +1 -1
  31. package/resources/ai/assistants/assistants.mjs +4 -1
  32. package/resources/ai/assistants/assistants.mjs.map +1 -1
  33. package/resources/ai/assistants/versions.d.mts +11 -6
  34. package/resources/ai/assistants/versions.d.mts.map +1 -1
  35. package/resources/ai/assistants/versions.d.ts +11 -6
  36. package/resources/ai/assistants/versions.d.ts.map +1 -1
  37. package/resources/ai/assistants/versions.js +4 -1
  38. package/resources/ai/assistants/versions.js.map +1 -1
  39. package/resources/ai/assistants/versions.mjs +4 -1
  40. package/resources/ai/assistants/versions.mjs.map +1 -1
  41. package/resources/ai/audio.d.mts +17 -5
  42. package/resources/ai/audio.d.mts.map +1 -1
  43. package/resources/ai/audio.d.ts +17 -5
  44. package/resources/ai/audio.d.ts.map +1 -1
  45. package/resources/ai/avatars.d.mts +21 -8
  46. package/resources/ai/avatars.d.mts.map +1 -1
  47. package/resources/ai/avatars.d.ts +21 -8
  48. package/resources/ai/avatars.d.ts.map +1 -1
  49. package/resources/ai/avatars.js +3 -1
  50. package/resources/ai/avatars.js.map +1 -1
  51. package/resources/ai/avatars.mjs +3 -1
  52. package/resources/ai/avatars.mjs.map +1 -1
  53. package/resources/ai/index.d.mts +1 -1
  54. package/resources/ai/index.d.mts.map +1 -1
  55. package/resources/ai/index.d.ts +1 -1
  56. package/resources/ai/index.d.ts.map +1 -1
  57. package/resources/ai/index.js.map +1 -1
  58. package/resources/ai/index.mjs.map +1 -1
  59. package/resources/ai/tools.d.mts +13 -1
  60. package/resources/ai/tools.d.mts.map +1 -1
  61. package/resources/ai/tools.d.ts +13 -1
  62. package/resources/ai/tools.d.ts.map +1 -1
  63. package/resources/calls/actions.d.mts +202 -13
  64. package/resources/calls/actions.d.mts.map +1 -1
  65. package/resources/calls/actions.d.ts +202 -13
  66. package/resources/calls/actions.d.ts.map +1 -1
  67. package/resources/calls/calls.d.mts +2 -2
  68. package/resources/calls/calls.d.mts.map +1 -1
  69. package/resources/calls/calls.d.ts +2 -2
  70. package/resources/calls/calls.d.ts.map +1 -1
  71. package/resources/calls/calls.js.map +1 -1
  72. package/resources/calls/calls.mjs.map +1 -1
  73. package/resources/calls/index.d.mts +1 -1
  74. package/resources/calls/index.d.mts.map +1 -1
  75. package/resources/calls/index.d.ts +1 -1
  76. package/resources/calls/index.d.ts.map +1 -1
  77. package/resources/calls/index.js.map +1 -1
  78. package/resources/calls/index.mjs.map +1 -1
  79. package/resources/credential-connections/credential-connections.d.mts +38 -8
  80. package/resources/credential-connections/credential-connections.d.mts.map +1 -1
  81. package/resources/credential-connections/credential-connections.d.ts +38 -8
  82. package/resources/credential-connections/credential-connections.d.ts.map +1 -1
  83. package/resources/credential-connections/credential-connections.js.map +1 -1
  84. package/resources/credential-connections/credential-connections.mjs.map +1 -1
  85. package/resources/dial-metrics.d.mts +151 -0
  86. package/resources/dial-metrics.d.mts.map +1 -0
  87. package/resources/dial-metrics.d.ts +151 -0
  88. package/resources/dial-metrics.d.ts.map +1 -0
  89. package/resources/dial-metrics.js +44 -0
  90. package/resources/dial-metrics.js.map +1 -0
  91. package/resources/dial-metrics.mjs +40 -0
  92. package/resources/dial-metrics.mjs.map +1 -0
  93. package/resources/dir/dir.d.mts +2 -3
  94. package/resources/dir/dir.d.mts.map +1 -1
  95. package/resources/dir/dir.d.ts +2 -3
  96. package/resources/dir/dir.d.ts.map +1 -1
  97. package/resources/dir/dir.js +1 -2
  98. package/resources/dir/dir.js.map +1 -1
  99. package/resources/dir/dir.mjs +1 -2
  100. package/resources/dir/dir.mjs.map +1 -1
  101. package/resources/dir/references.d.mts +15 -9
  102. package/resources/dir/references.d.mts.map +1 -1
  103. package/resources/dir/references.d.ts +15 -9
  104. package/resources/dir/references.d.ts.map +1 -1
  105. package/resources/dir/references.js +15 -9
  106. package/resources/dir/references.js.map +1 -1
  107. package/resources/dir/references.mjs +15 -9
  108. package/resources/dir/references.mjs.map +1 -1
  109. package/resources/dir/verify-email.d.mts +17 -5
  110. package/resources/dir/verify-email.d.mts.map +1 -1
  111. package/resources/dir/verify-email.d.ts +17 -5
  112. package/resources/dir/verify-email.d.ts.map +1 -1
  113. package/resources/dir/verify-email.js +17 -5
  114. package/resources/dir/verify-email.js.map +1 -1
  115. package/resources/dir/verify-email.mjs +17 -5
  116. package/resources/dir/verify-email.mjs.map +1 -1
  117. package/resources/email-domains/email-domains.d.mts +1 -1
  118. package/resources/email-domains/email-domains.d.mts.map +1 -1
  119. package/resources/email-domains/email-domains.d.ts +1 -1
  120. package/resources/email-domains/email-domains.d.ts.map +1 -1
  121. package/resources/enterprises/verify-email.d.mts +1 -1
  122. package/resources/enterprises/verify-email.d.ts +1 -1
  123. package/resources/enterprises/verify-email.js +1 -1
  124. package/resources/enterprises/verify-email.mjs +1 -1
  125. package/resources/fqdn-connections/fqdn-connections.d.mts +38 -8
  126. package/resources/fqdn-connections/fqdn-connections.d.mts.map +1 -1
  127. package/resources/fqdn-connections/fqdn-connections.d.ts +38 -8
  128. package/resources/fqdn-connections/fqdn-connections.d.ts.map +1 -1
  129. package/resources/fqdn-connections/fqdn-connections.js.map +1 -1
  130. package/resources/fqdn-connections/fqdn-connections.mjs.map +1 -1
  131. package/resources/index.d.mts +6 -4
  132. package/resources/index.d.mts.map +1 -1
  133. package/resources/index.d.ts +6 -4
  134. package/resources/index.d.ts.map +1 -1
  135. package/resources/index.js +8 -4
  136. package/resources/index.js.map +1 -1
  137. package/resources/index.mjs +2 -0
  138. package/resources/index.mjs.map +1 -1
  139. package/resources/ip-connections.d.mts +36 -6
  140. package/resources/ip-connections.d.mts.map +1 -1
  141. package/resources/ip-connections.d.ts +36 -6
  142. package/resources/ip-connections.d.ts.map +1 -1
  143. package/resources/meeting-sessions/actions.d.mts +13 -7
  144. package/resources/meeting-sessions/actions.d.mts.map +1 -1
  145. package/resources/meeting-sessions/actions.d.ts +13 -7
  146. package/resources/meeting-sessions/actions.d.ts.map +1 -1
  147. package/resources/meeting-sessions/actions.js +13 -7
  148. package/resources/meeting-sessions/actions.js.map +1 -1
  149. package/resources/meeting-sessions/actions.mjs +13 -7
  150. package/resources/meeting-sessions/actions.mjs.map +1 -1
  151. package/resources/meeting-sessions/index.d.mts +1 -1
  152. package/resources/meeting-sessions/index.d.mts.map +1 -1
  153. package/resources/meeting-sessions/index.d.ts +1 -1
  154. package/resources/meeting-sessions/index.d.ts.map +1 -1
  155. package/resources/meeting-sessions/index.js.map +1 -1
  156. package/resources/meeting-sessions/index.mjs.map +1 -1
  157. package/resources/meeting-sessions/meeting-sessions.d.mts +46 -65
  158. package/resources/meeting-sessions/meeting-sessions.d.mts.map +1 -1
  159. package/resources/meeting-sessions/meeting-sessions.d.ts +46 -65
  160. package/resources/meeting-sessions/meeting-sessions.d.ts.map +1 -1
  161. package/resources/meeting-sessions/meeting-sessions.js +14 -23
  162. package/resources/meeting-sessions/meeting-sessions.js.map +1 -1
  163. package/resources/meeting-sessions/meeting-sessions.mjs +14 -23
  164. package/resources/meeting-sessions/meeting-sessions.mjs.map +1 -1
  165. package/resources/messages/messages.d.mts +581 -118
  166. package/resources/messages/messages.d.mts.map +1 -1
  167. package/resources/messages/messages.d.ts +581 -118
  168. package/resources/messages/messages.d.ts.map +1 -1
  169. package/resources/messages/messages.js +71 -14
  170. package/resources/messages/messages.js.map +1 -1
  171. package/resources/messages/messages.mjs +71 -14
  172. package/resources/messages/messages.mjs.map +1 -1
  173. package/resources/messages/rcs.d.mts +26 -6
  174. package/resources/messages/rcs.d.mts.map +1 -1
  175. package/resources/messages/rcs.d.ts +26 -6
  176. package/resources/messages/rcs.d.ts.map +1 -1
  177. package/resources/messages/rcs.js +11 -2
  178. package/resources/messages/rcs.js.map +1 -1
  179. package/resources/messages/rcs.mjs +11 -2
  180. package/resources/messages/rcs.mjs.map +1 -1
  181. package/resources/phone-numbers/csv-downloads.d.mts +9 -0
  182. package/resources/phone-numbers/csv-downloads.d.mts.map +1 -1
  183. package/resources/phone-numbers/csv-downloads.d.ts +9 -0
  184. package/resources/phone-numbers/csv-downloads.d.ts.map +1 -1
  185. package/resources/phone-numbers/csv-downloads.js +5 -2
  186. package/resources/phone-numbers/csv-downloads.js.map +1 -1
  187. package/resources/phone-numbers/csv-downloads.mjs +5 -2
  188. package/resources/phone-numbers/csv-downloads.mjs.map +1 -1
  189. package/resources/phone-numbers/index.d.mts +2 -2
  190. package/resources/phone-numbers/index.d.mts.map +1 -1
  191. package/resources/phone-numbers/index.d.ts +2 -2
  192. package/resources/phone-numbers/index.d.ts.map +1 -1
  193. package/resources/phone-numbers/index.js.map +1 -1
  194. package/resources/phone-numbers/index.mjs.map +1 -1
  195. package/resources/phone-numbers/jobs.d.mts +266 -15
  196. package/resources/phone-numbers/jobs.d.mts.map +1 -1
  197. package/resources/phone-numbers/jobs.d.ts +266 -15
  198. package/resources/phone-numbers/jobs.d.ts.map +1 -1
  199. package/resources/phone-numbers/jobs.js +1 -1
  200. package/resources/phone-numbers/jobs.js.map +1 -1
  201. package/resources/phone-numbers/jobs.mjs +1 -1
  202. package/resources/phone-numbers/jobs.mjs.map +1 -1
  203. package/resources/phone-numbers/phone-numbers.d.mts +28 -3
  204. package/resources/phone-numbers/phone-numbers.d.mts.map +1 -1
  205. package/resources/phone-numbers/phone-numbers.d.ts +28 -3
  206. package/resources/phone-numbers/phone-numbers.d.ts.map +1 -1
  207. package/resources/phone-numbers/phone-numbers.js.map +1 -1
  208. package/resources/phone-numbers/phone-numbers.mjs.map +1 -1
  209. package/resources/porting-orders/phone-number-blocks.d.mts +1 -1
  210. package/resources/porting-orders/phone-number-blocks.d.mts.map +1 -1
  211. package/resources/porting-orders/phone-number-blocks.d.ts +1 -1
  212. package/resources/porting-orders/phone-number-blocks.d.ts.map +1 -1
  213. package/resources/porting-orders/porting-orders.d.mts +1 -1
  214. package/resources/porting-orders/porting-orders.d.mts.map +1 -1
  215. package/resources/porting-orders/porting-orders.d.ts +1 -1
  216. package/resources/porting-orders/porting-orders.d.ts.map +1 -1
  217. package/resources/porting-orders/porting-orders.js.map +1 -1
  218. package/resources/porting-orders/porting-orders.mjs.map +1 -1
  219. package/resources/porting-phone-numbers.d.mts +1 -1
  220. package/resources/porting-phone-numbers.d.mts.map +1 -1
  221. package/resources/porting-phone-numbers.d.ts +1 -1
  222. package/resources/porting-phone-numbers.d.ts.map +1 -1
  223. package/resources/shared.d.mts +4 -0
  224. package/resources/shared.d.mts.map +1 -1
  225. package/resources/shared.d.ts +4 -0
  226. package/resources/shared.d.ts.map +1 -1
  227. package/resources/speech-to-text/speech-to-text.d.mts +12 -5
  228. package/resources/speech-to-text/speech-to-text.d.mts.map +1 -1
  229. package/resources/speech-to-text/speech-to-text.d.ts +12 -5
  230. package/resources/speech-to-text/speech-to-text.d.ts.map +1 -1
  231. package/resources/telephony-credentials.d.mts +11 -2
  232. package/resources/telephony-credentials.d.mts.map +1 -1
  233. package/resources/telephony-credentials.d.ts +11 -2
  234. package/resources/telephony-credentials.d.ts.map +1 -1
  235. package/resources/telephony-credentials.js +9 -2
  236. package/resources/telephony-credentials.js.map +1 -1
  237. package/resources/telephony-credentials.mjs +9 -2
  238. package/resources/telephony-credentials.mjs.map +1 -1
  239. package/resources/texml/accounts/accounts.d.mts +2 -2
  240. package/resources/texml/accounts/accounts.d.ts +2 -2
  241. package/resources/texml/accounts/accounts.js +2 -2
  242. package/resources/texml/accounts/accounts.mjs +2 -2
  243. package/resources/texml/accounts/calls/calls.d.mts +49 -14
  244. package/resources/texml/accounts/calls/calls.d.mts.map +1 -1
  245. package/resources/texml/accounts/calls/calls.d.ts +49 -14
  246. package/resources/texml/accounts/calls/calls.d.ts.map +1 -1
  247. package/resources/texml/accounts/calls/calls.js +7 -7
  248. package/resources/texml/accounts/calls/calls.js.map +1 -1
  249. package/resources/texml/accounts/calls/calls.mjs +7 -7
  250. package/resources/texml/accounts/calls/calls.mjs.map +1 -1
  251. package/resources/texml/accounts/calls/recordings-json.d.mts +14 -4
  252. package/resources/texml/accounts/calls/recordings-json.d.mts.map +1 -1
  253. package/resources/texml/accounts/calls/recordings-json.d.ts +14 -4
  254. package/resources/texml/accounts/calls/recordings-json.d.ts.map +1 -1
  255. package/resources/texml/accounts/calls/recordings-json.js +2 -2
  256. package/resources/texml/accounts/calls/recordings-json.mjs +2 -2
  257. package/resources/texml/accounts/calls/recordings.d.mts +10 -2
  258. package/resources/texml/accounts/calls/recordings.d.mts.map +1 -1
  259. package/resources/texml/accounts/calls/recordings.d.ts +10 -2
  260. package/resources/texml/accounts/calls/recordings.d.ts.map +1 -1
  261. package/resources/texml/accounts/calls/recordings.js +4 -1
  262. package/resources/texml/accounts/calls/recordings.js.map +1 -1
  263. package/resources/texml/accounts/calls/recordings.mjs +4 -1
  264. package/resources/texml/accounts/calls/recordings.mjs.map +1 -1
  265. package/resources/texml/accounts/calls/siprec.d.mts +10 -2
  266. package/resources/texml/accounts/calls/siprec.d.mts.map +1 -1
  267. package/resources/texml/accounts/calls/siprec.d.ts +10 -2
  268. package/resources/texml/accounts/calls/siprec.d.ts.map +1 -1
  269. package/resources/texml/accounts/calls/siprec.js +4 -1
  270. package/resources/texml/accounts/calls/siprec.js.map +1 -1
  271. package/resources/texml/accounts/calls/siprec.mjs +4 -1
  272. package/resources/texml/accounts/calls/siprec.mjs.map +1 -1
  273. package/resources/texml/accounts/calls/streams.d.mts +10 -2
  274. package/resources/texml/accounts/calls/streams.d.mts.map +1 -1
  275. package/resources/texml/accounts/calls/streams.d.ts +10 -2
  276. package/resources/texml/accounts/calls/streams.d.ts.map +1 -1
  277. package/resources/texml/accounts/calls/streams.js +4 -1
  278. package/resources/texml/accounts/calls/streams.js.map +1 -1
  279. package/resources/texml/accounts/calls/streams.mjs +4 -1
  280. package/resources/texml/accounts/calls/streams.mjs.map +1 -1
  281. package/resources/texml/accounts/conferences/conferences.d.mts +29 -9
  282. package/resources/texml/accounts/conferences/conferences.d.mts.map +1 -1
  283. package/resources/texml/accounts/conferences/conferences.d.ts +29 -9
  284. package/resources/texml/accounts/conferences/conferences.d.ts.map +1 -1
  285. package/resources/texml/accounts/conferences/conferences.js +5 -5
  286. package/resources/texml/accounts/conferences/conferences.js.map +1 -1
  287. package/resources/texml/accounts/conferences/conferences.mjs +5 -5
  288. package/resources/texml/accounts/conferences/conferences.mjs.map +1 -1
  289. package/resources/texml/accounts/conferences/participants.d.mts +35 -10
  290. package/resources/texml/accounts/conferences/participants.d.mts.map +1 -1
  291. package/resources/texml/accounts/conferences/participants.d.ts +35 -10
  292. package/resources/texml/accounts/conferences/participants.d.ts.map +1 -1
  293. package/resources/texml/accounts/conferences/participants.js +5 -5
  294. package/resources/texml/accounts/conferences/participants.mjs +5 -5
  295. package/resources/texml/accounts/queues.d.mts +25 -8
  296. package/resources/texml/accounts/queues.d.mts.map +1 -1
  297. package/resources/texml/accounts/queues.d.ts +25 -8
  298. package/resources/texml/accounts/queues.d.ts.map +1 -1
  299. package/resources/texml/accounts/queues.js +7 -5
  300. package/resources/texml/accounts/queues.js.map +1 -1
  301. package/resources/texml/accounts/queues.mjs +7 -5
  302. package/resources/texml/accounts/queues.mjs.map +1 -1
  303. package/resources/texml/accounts/recordings/json.d.mts +14 -4
  304. package/resources/texml/accounts/recordings/json.d.mts.map +1 -1
  305. package/resources/texml/accounts/recordings/json.d.ts +14 -4
  306. package/resources/texml/accounts/recordings/json.d.ts.map +1 -1
  307. package/resources/texml/accounts/recordings/json.js +2 -2
  308. package/resources/texml/accounts/recordings/json.mjs +2 -2
  309. package/resources/texml/accounts/transcriptions/json.d.mts +14 -4
  310. package/resources/texml/accounts/transcriptions/json.d.mts.map +1 -1
  311. package/resources/texml/accounts/transcriptions/json.d.ts +14 -4
  312. package/resources/texml/accounts/transcriptions/json.d.ts.map +1 -1
  313. package/resources/texml/accounts/transcriptions/json.js +2 -2
  314. package/resources/texml/accounts/transcriptions/json.mjs +2 -2
  315. package/resources/text-to-speech/text-to-speech.d.mts +15 -6
  316. package/resources/text-to-speech/text-to-speech.d.mts.map +1 -1
  317. package/resources/text-to-speech/text-to-speech.d.ts +15 -6
  318. package/resources/text-to-speech/text-to-speech.d.ts.map +1 -1
  319. package/resources/tts-integrations/actions.d.mts +4 -0
  320. package/resources/tts-integrations/actions.d.mts.map +1 -0
  321. package/resources/tts-integrations/actions.d.ts +4 -0
  322. package/resources/tts-integrations/actions.d.ts.map +1 -0
  323. package/resources/tts-integrations/actions.js +9 -0
  324. package/resources/tts-integrations/actions.js.map +1 -0
  325. package/resources/tts-integrations/actions.mjs +5 -0
  326. package/resources/tts-integrations/actions.mjs.map +1 -0
  327. package/resources/tts-integrations/index.d.mts +3 -0
  328. package/resources/tts-integrations/index.d.mts.map +1 -0
  329. package/resources/tts-integrations/index.d.ts +3 -0
  330. package/resources/tts-integrations/index.d.ts.map +1 -0
  331. package/resources/tts-integrations/index.js +9 -0
  332. package/resources/tts-integrations/index.js.map +1 -0
  333. package/resources/tts-integrations/index.mjs +4 -0
  334. package/resources/tts-integrations/index.mjs.map +1 -0
  335. package/resources/tts-integrations/tts-integrations.d.mts +10 -0
  336. package/resources/tts-integrations/tts-integrations.d.mts.map +1 -0
  337. package/resources/tts-integrations/tts-integrations.d.ts +10 -0
  338. package/resources/tts-integrations/tts-integrations.d.ts.map +1 -0
  339. package/resources/tts-integrations/tts-integrations.js +17 -0
  340. package/resources/tts-integrations/tts-integrations.js.map +1 -0
  341. package/resources/tts-integrations/tts-integrations.mjs +12 -0
  342. package/resources/tts-integrations/tts-integrations.mjs.map +1 -0
  343. package/resources/tts-integrations.d.mts +2 -0
  344. package/resources/tts-integrations.d.mts.map +1 -0
  345. package/resources/tts-integrations.d.ts +2 -0
  346. package/resources/tts-integrations.d.ts.map +1 -0
  347. package/resources/tts-integrations.js +6 -0
  348. package/resources/tts-integrations.js.map +1 -0
  349. package/resources/tts-integrations.mjs +3 -0
  350. package/resources/tts-integrations.mjs.map +1 -0
  351. package/resources/uac-connections/uac-connections.d.mts +36 -6
  352. package/resources/uac-connections/uac-connections.d.mts.map +1 -1
  353. package/resources/uac-connections/uac-connections.d.ts +36 -6
  354. package/resources/uac-connections/uac-connections.d.ts.map +1 -1
  355. package/resources/uac-connections/uac-connections.js.map +1 -1
  356. package/resources/uac-connections/uac-connections.mjs.map +1 -1
  357. package/resources/voice-clones.d.mts +57 -10
  358. package/resources/voice-clones.d.mts.map +1 -1
  359. package/resources/voice-clones.d.ts +57 -10
  360. package/resources/voice-clones.d.ts.map +1 -1
  361. package/resources/voice-clones.js +6 -4
  362. package/resources/voice-clones.js.map +1 -1
  363. package/resources/voice-clones.mjs +6 -4
  364. package/resources/voice-clones.mjs.map +1 -1
  365. package/resources/webhooks.d.mts +433 -81
  366. package/resources/webhooks.d.mts.map +1 -1
  367. package/resources/webhooks.d.ts +433 -81
  368. package/resources/webhooks.d.ts.map +1 -1
  369. package/resources/whatsapp/hosted-signups.d.mts +165 -0
  370. package/resources/whatsapp/hosted-signups.d.mts.map +1 -0
  371. package/resources/whatsapp/hosted-signups.d.ts +165 -0
  372. package/resources/whatsapp/hosted-signups.d.ts.map +1 -0
  373. package/resources/whatsapp/hosted-signups.js +56 -0
  374. package/resources/whatsapp/hosted-signups.js.map +1 -0
  375. package/resources/whatsapp/hosted-signups.mjs +52 -0
  376. package/resources/whatsapp/hosted-signups.mjs.map +1 -0
  377. package/resources/whatsapp/index.d.mts +1 -0
  378. package/resources/whatsapp/index.d.mts.map +1 -1
  379. package/resources/whatsapp/index.d.ts +1 -0
  380. package/resources/whatsapp/index.d.ts.map +1 -1
  381. package/resources/whatsapp/index.js +3 -1
  382. package/resources/whatsapp/index.js.map +1 -1
  383. package/resources/whatsapp/index.mjs +1 -0
  384. package/resources/whatsapp/index.mjs.map +1 -1
  385. package/resources/whatsapp/whatsapp.d.mts +4 -0
  386. package/resources/whatsapp/whatsapp.d.mts.map +1 -1
  387. package/resources/whatsapp/whatsapp.d.ts +4 -0
  388. package/resources/whatsapp/whatsapp.d.ts.map +1 -1
  389. package/resources/whatsapp/whatsapp.js +4 -0
  390. package/resources/whatsapp/whatsapp.js.map +1 -1
  391. package/resources/whatsapp/whatsapp.mjs +4 -0
  392. package/resources/whatsapp/whatsapp.mjs.map +1 -1
  393. package/src/client.ts +29 -4
  394. package/src/resources/addresses/addresses.ts +22 -2
  395. package/src/resources/ai/ai.ts +2 -0
  396. package/src/resources/ai/assistants/assistants.ts +179 -31
  397. package/src/resources/ai/assistants/versions.ts +11 -6
  398. package/src/resources/ai/audio.ts +18 -5
  399. package/src/resources/ai/avatars.ts +22 -8
  400. package/src/resources/ai/index.ts +1 -0
  401. package/src/resources/ai/tools.ts +16 -0
  402. package/src/resources/calls/actions.ts +281 -10
  403. package/src/resources/calls/calls.ts +2 -0
  404. package/src/resources/calls/index.ts +1 -0
  405. package/src/resources/credential-connections/credential-connections.ts +41 -8
  406. package/src/resources/dial-metrics.ts +185 -0
  407. package/src/resources/dir/dir.ts +4 -2
  408. package/src/resources/dir/references.ts +15 -9
  409. package/src/resources/dir/verify-email.ts +17 -5
  410. package/src/resources/email-domains/email-domains.ts +1 -1
  411. package/src/resources/enterprises/verify-email.ts +1 -1
  412. package/src/resources/fqdn-connections/fqdn-connections.ts +41 -8
  413. package/src/resources/index.ts +10 -2
  414. package/src/resources/ip-connections.ts +39 -6
  415. package/src/resources/meeting-sessions/actions.ts +13 -7
  416. package/src/resources/meeting-sessions/index.ts +0 -1
  417. package/src/resources/meeting-sessions/meeting-sessions.ts +48 -79
  418. package/src/resources/messages/messages.ts +786 -125
  419. package/src/resources/messages/rcs.ts +37 -7
  420. package/src/resources/phone-numbers/csv-downloads.ts +15 -2
  421. package/src/resources/phone-numbers/index.ts +3 -1
  422. package/src/resources/phone-numbers/jobs.ts +320 -16
  423. package/src/resources/phone-numbers/phone-numbers.ts +38 -2
  424. package/src/resources/porting-orders/phone-number-blocks.ts +1 -0
  425. package/src/resources/porting-orders/porting-orders.ts +1 -0
  426. package/src/resources/porting-phone-numbers.ts +1 -0
  427. package/src/resources/shared.ts +5 -0
  428. package/src/resources/speech-to-text/speech-to-text.ts +12 -4
  429. package/src/resources/telephony-credentials.ts +24 -2
  430. package/src/resources/texml/accounts/accounts.ts +2 -2
  431. package/src/resources/texml/accounts/calls/calls.ts +49 -14
  432. package/src/resources/texml/accounts/calls/recordings-json.ts +14 -4
  433. package/src/resources/texml/accounts/calls/recordings.ts +10 -2
  434. package/src/resources/texml/accounts/calls/siprec.ts +10 -2
  435. package/src/resources/texml/accounts/calls/streams.ts +10 -2
  436. package/src/resources/texml/accounts/conferences/conferences.ts +29 -9
  437. package/src/resources/texml/accounts/conferences/participants.ts +35 -10
  438. package/src/resources/texml/accounts/queues.ts +25 -8
  439. package/src/resources/texml/accounts/recordings/json.ts +14 -4
  440. package/src/resources/texml/accounts/transcriptions/json.ts +14 -4
  441. package/src/resources/text-to-speech/text-to-speech.ts +15 -6
  442. package/src/resources/tts-integrations/actions.ts +5 -0
  443. package/src/resources/tts-integrations/index.ts +4 -0
  444. package/src/resources/tts-integrations/tts-integrations.ts +15 -0
  445. package/src/resources/tts-integrations.ts +3 -0
  446. package/src/resources/uac-connections/uac-connections.ts +39 -6
  447. package/src/resources/voice-clones.ts +65 -9
  448. package/src/resources/webhooks.ts +517 -95
  449. package/src/resources/whatsapp/hosted-signups.ts +221 -0
  450. package/src/resources/whatsapp/index.ts +9 -0
  451. package/src/resources/whatsapp/whatsapp.ts +22 -0
  452. package/src/version.ts +1 -1
  453. package/version.d.mts +1 -1
  454. package/version.d.ts +1 -1
  455. package/version.js +1 -1
  456. package/version.mjs +1 -1
@@ -44,6 +44,18 @@ export class Addresses extends APIResource {
44
44
  * services that require a physical address such as emergency calling and
45
45
  * regulatory compliance.
46
46
  *
47
+ * By default, the new record is validated for emergency use at creation time. If
48
+ * the address fails validation, no record is created and the request is rejected
49
+ * with a 422 response; the `errors` array includes a suggested value for each
50
+ * offending field when one is available.
51
+ *
52
+ * Set `validate_address` to `false` to skip validation at creation, for example
53
+ * when the address was already validated with the Validate an address action. The
54
+ * record is then created without emergency validation: if it is not valid it will
55
+ * not be able to be used for emergency services (such as a phone number's
56
+ * emergency address), and because address records cannot be updated, a new record
57
+ * has to be created to correct it.
58
+ *
47
59
  * @example
48
60
  * ```ts
49
61
  * const address = await client.addresses.create({
@@ -193,7 +205,11 @@ export interface Address {
193
205
  * have used the `/addresses/actions/validate` endpoint to validate the address
194
206
  * separately prior to creation. If an address is not validated for emergency use
195
207
  * upon creation and it is not valid, it will not be able to be used for emergency
196
- * services.
208
+ * services. In an address record, this flag indicates whether emergency validation
209
+ * was performed at creation: `true` means the record passed emergency validation
210
+ * before it was created; `false` means validation was skipped during this creation
211
+ * request, and the address may have been validated separately. This flag is not a
212
+ * current validity status; emergency use still requires a valid address.
197
213
  */
198
214
  validate_address?: boolean;
199
215
  }
@@ -383,7 +399,11 @@ export interface AddressCreateParams {
383
399
  * have used the `/addresses/actions/validate` endpoint to validate the address
384
400
  * separately prior to creation. If an address is not validated for emergency use
385
401
  * upon creation and it is not valid, it will not be able to be used for emergency
386
- * services.
402
+ * services. In an address record, this flag indicates whether emergency validation
403
+ * was performed at creation: `true` means the record passed emergency validation
404
+ * before it was created; `false` means validation was skipped during this creation
405
+ * request, and the address may have been validated separately. This flag is not a
406
+ * current validity status; emergency use still requires a valid address.
387
407
  */
388
408
  validate_address?: boolean;
389
409
  }
@@ -54,6 +54,7 @@ import {
54
54
  ToolUpdateParams,
55
55
  Tools,
56
56
  UpdateDynamicVariablesToolParams,
57
+ VisionToolParams,
57
58
  } from './tools';
58
59
  import * as AnthropicAPI from './anthropic/anthropic';
59
60
  import { Anthropic } from './anthropic/anthropic';
@@ -860,6 +861,7 @@ export declare namespace AI {
860
861
  type PayToolParams as PayToolParams,
861
862
  type SharedToolResponse as SharedToolResponse,
862
863
  type UpdateDynamicVariablesToolParams as UpdateDynamicVariablesToolParams,
864
+ type VisionToolParams as VisionToolParams,
863
865
  type SharedToolResponsesDefaultFlatPagination as SharedToolResponsesDefaultFlatPagination,
864
866
  type ToolListParams as ToolListParams,
865
867
  type ToolCreateParams as ToolCreateParams,
@@ -210,7 +210,10 @@ export class Assistants extends APIResource {
210
210
  /**
211
211
  * Updates the specified AI assistant's attributes and returns the updated
212
212
  * assistant. The request can also control how the change is promoted across
213
- * assistant versions.
213
+ * assistant versions. Every update saves a new version, and an assistant keeps at
214
+ * most 10 versions: once it has more, the oldest versions are permanently deleted,
215
+ * except the main version and any version referenced by a traffic distribution
216
+ * rule.
214
217
  *
215
218
  * @example
216
219
  * ```ts
@@ -648,6 +651,7 @@ export type AssistantTool =
648
651
  | AssistantTool.SendDtmf
649
652
  | AssistantTool.SendMessage
650
653
  | AssistantTool.SkipTurn
654
+ | AssistantTool.Vision
651
655
  | AssistantTool.Pay
652
656
  | AssistantTool.UpdateDynamicVariables;
653
657
 
@@ -830,6 +834,14 @@ export namespace AssistantTool {
830
834
  */
831
835
  targets: Array<Transfer.TargetsList> | string;
832
836
 
837
+ /**
838
+ * Plays a short beep once the transfer completes and the calls are bridged, so the
839
+ * transfer destination knows the caller is now on the line. The warm transfer
840
+ * message plays before the bridge; this marks the moment the caller actually
841
+ * joins. Works with and without `warm_transfer_acceptance`.
842
+ */
843
+ bridge_beep?: Transfer.BridgeBeep;
844
+
833
845
  /**
834
846
  * Custom headers to be added to the SIP INVITE for the transfer command.
835
847
  */
@@ -932,6 +944,25 @@ export namespace AssistantTool {
932
944
  sip_auth_username?: string;
933
945
  }
934
946
 
947
+ /**
948
+ * Plays a short beep once the transfer completes and the calls are bridged, so the
949
+ * transfer destination knows the caller is now on the line. The warm transfer
950
+ * message plays before the bridge; this marks the moment the caller actually
951
+ * joins. Works with and without `warm_transfer_acceptance`.
952
+ */
953
+ export interface BridgeBeep {
954
+ /**
955
+ * Whether to play the beep when the calls are bridged.
956
+ */
957
+ enabled?: boolean;
958
+
959
+ /**
960
+ * Who hears the beep. `self` plays it to the transfer destination only; `both`
961
+ * plays it to the destination and the original caller.
962
+ */
963
+ target_legs?: 'self' | 'both';
964
+ }
965
+
935
966
  export interface CustomHeader {
936
967
  name?: string;
937
968
 
@@ -1110,6 +1141,18 @@ export namespace AssistantTool {
1110
1141
  * accept on every consult that does run.
1111
1142
  */
1112
1143
  require_acceptance?: boolean;
1144
+
1145
+ /**
1146
+ * How long, in seconds, the destination has to accept the transfer, counted from
1147
+ * when the private consult starts (right after the destination answers, or after
1148
+ * `warm_message_delay_ms`). The caller keeps hearing ringback the whole time. If
1149
+ * no acceptance arrives in time, the destination is hung up and the assistant
1150
+ * returns to the caller (the transfer fails as a timeout). Raise it for
1151
+ * destinations that answer before a human is on the line, such as a call-center
1152
+ * queue/ACD or an IVR playing hold audio; keep it as short as practical, since the
1153
+ * caller waits on ringback until it expires.
1154
+ */
1155
+ timeout_secs?: number;
1113
1156
  }
1114
1157
  }
1115
1158
  }
@@ -1383,6 +1426,30 @@ export namespace AssistantTool {
1383
1426
  }
1384
1427
  }
1385
1428
 
1429
+ /**
1430
+ * (BETA) Lets the assistant look at recent image frames the client sent into the
1431
+ * conversation (for example webcam or screen-share frames). Frames are sent with
1432
+ * `conversation.item.create` and `item.buffer: true`; they never trigger a
1433
+ * response on their own. The assistant decides when to look and which frames it
1434
+ * needs. Requires a model that supports image input.
1435
+ */
1436
+ export interface Vision {
1437
+ type: 'vision';
1438
+
1439
+ /**
1440
+ * Whether this tool comes from the shared Tools Library. Responses merge shared
1441
+ * tools into `tools` with `shared: true`; inline tools carry `shared: false`.
1442
+ * Read-only: set by the server, not accepted in requests. When updating an
1443
+ * assistant, omit `shared: true` tools from the request `tools` array and manage
1444
+ * them through `tool_ids` instead — re-sending their definitions creates an inline
1445
+ * duplicate (rejected with error code 10015 when the type allows only one instance
1446
+ * per assistant).
1447
+ */
1448
+ shared?: boolean;
1449
+
1450
+ vision?: ToolsAPI.VisionToolParams;
1451
+ }
1452
+
1386
1453
  /**
1387
1454
  * (BETA) The pay tool allows the assistant to collect card payments from the
1388
1455
  * caller via DTMF during the conversation. Recording is automatically paused while
@@ -1456,9 +1523,10 @@ export interface AudioVisualizerConfig {
1456
1523
  export type AuthenticationMethod = 'token' | 'certificate';
1457
1524
 
1458
1525
  /**
1459
- * **Beta:** Configuration for the Telnyx open-source avatar provider. Use one of
1460
- * the six stock avatars or an organization-owned custom avatar returned by the
1461
- * Avatars API. Supported backgrounds are office, studio, and reception.
1526
+ * **Beta:** Configuration for the Telnyx open-source avatar provider. Use a stock
1527
+ * avatar or an organization-owned custom avatar returned by the Avatars API.
1528
+ * Discover the available stock catalog with GET /v2/ai/avatars and
1529
+ * filter[avatar_type]=stock; follow meta.total_pages to load every page.
1462
1530
  */
1463
1531
  export interface AvatarSettingsRequest {
1464
1532
  /**
@@ -1469,7 +1537,7 @@ export interface AvatarSettingsRequest {
1469
1537
  /**
1470
1538
  * The background to render.
1471
1539
  */
1472
- background_id: 'office' | 'studio' | 'reception';
1540
+ background_id: 'office' | 'studio' | 'reception' | 'illustrated_workspace';
1473
1541
 
1474
1542
  /**
1475
1543
  * Required avatar model identifier, separate from `avatar_id`. The supported value
@@ -2237,9 +2305,10 @@ export interface InferenceEmbedding {
2237
2305
  a2a_agents?: Array<AssistantA2AAgent>;
2238
2306
 
2239
2307
  /**
2240
- * **Beta:** Configuration for the Telnyx open-source avatar provider. Use one of
2241
- * the six stock avatars or an organization-owned custom avatar returned by the
2242
- * Avatars API. Supported backgrounds are office, studio, and reception.
2308
+ * **Beta:** Configuration for the Telnyx open-source avatar provider. Use a stock
2309
+ * avatar or an organization-owned custom avatar returned by the Avatars API.
2310
+ * Discover the available stock catalog with GET /v2/ai/avatars and
2311
+ * filter[avatar_type]=stock; follow meta.total_pages to load every page.
2243
2312
  */
2244
2313
  avatar_settings?: TelnyxAvatarSettings | null;
2245
2314
 
@@ -3090,6 +3159,34 @@ export interface PrivacySettings {
3090
3159
  * border. Defaults to false.
3091
3160
  */
3092
3161
  in_transit_data_locality?: boolean;
3162
+
3163
+ /**
3164
+ * Controls redaction of personally identifiable information (PII) from the
3165
+ * conversation history that is stored for this assistant. `disabled` (default)
3166
+ * stores content as-is. `redact` replaces detected PII with `<PII:type/>`
3167
+ * placeholders (e.g. `<PII:name/>`, `<PII:phone/>`) as the stored copies are
3168
+ * written: message content (user, assistant, and tool-result messages) and
3169
+ * tool-call arguments are redacted when written to conversation history, so the
3170
+ * stored transcript, its read-back via the history API, and any insights generated
3171
+ * from the stored messages contain the placeholders instead of the PII; response
3172
+ * bodies returned by webhook tools are redacted too, as stored in the webhook logs
3173
+ * — a per-conversation record separate from the transcript. In the Mission Control
3174
+ * Portal this field appears as a "PII Redaction" on/off toggle, where Enabled
3175
+ * corresponds to `redact`. Redaction runs when the stored copy is written, after
3176
+ * the LLM has generated its reply: the live conversation is not redacted, the
3177
+ * assistant's tools keep receiving the full (unredacted) values during the call,
3178
+ * and the LLM still sees full content in its context window. Call recordings
3179
+ * (including any recording layout configured under telephony settings) and the
3180
+ * payloads of messages/webhooks delivered during the call are never redacted by
3181
+ * this setting. The set of detected PII types (names, street addresses, phone
3182
+ * numbers, email addresses, government identifiers like SSN and driver's license
3183
+ * numbers, credit card and bank account numbers, IP addresses, dates of birth, and
3184
+ * other identifiers unique to a person) is fixed by Telnyx and cannot be
3185
+ * configured or extended per assistant. Assistants with `redact` cannot be used
3186
+ * for SMS/WhatsApp messaging (that combination is rejected with a 400 error);
3187
+ * voice and web chat are unaffected.
3188
+ */
3189
+ pii_redaction?: 'disabled' | 'redact';
3093
3190
  }
3094
3191
 
3095
3192
  /**
@@ -3294,9 +3391,16 @@ export interface TelephonySettings {
3294
3391
 
3295
3392
  /**
3296
3393
  * Maximum duration in seconds for the AI assistant to participate on the call.
3297
- * When this limit is reached the assistant will be stopped. This limit does not
3298
- * apply to portions of a call without an active assistant (for instance, a call
3299
- * transferred to a human representative).
3394
+ * When this limit is reached the assistant will be stopped. Stopping the assistant
3395
+ * does not itself hang up the call, and what happens next depends on how the
3396
+ * assistant is running. On Call Control (ai_assistant_start) the call leg stays
3397
+ * connected and continues to be billed until it is hung up (for example with the
3398
+ * Hangup call command) or until the call ends for another reason. On TeXML, the
3399
+ * assistant's `<Connect><AIAssistant>` instruction ends; in the default TeXML
3400
+ * setup for assistants no instructions follow it, so the call is hung up. Your
3401
+ * application receives a call.conversation.ended webhook when the assistant stops.
3402
+ * This limit does not apply to portions of a call without an active assistant (for
3403
+ * instance, a call transferred to a human representative).
3300
3404
  */
3301
3405
  time_limit_secs?: number;
3302
3406
 
@@ -3309,9 +3413,16 @@ export interface TelephonySettings {
3309
3413
 
3310
3414
  /**
3311
3415
  * Maximum duration in seconds of end user silence on the call. When this limit is
3312
- * reached the assistant will be stopped. This limit does not apply to portions of
3313
- * a call without an active assistant (for instance, a call transferred to a human
3314
- * representative).
3416
+ * reached the assistant will be stopped. Stopping the assistant does not itself
3417
+ * hang up the call, and what happens next depends on how the assistant is running.
3418
+ * On Call Control (ai_assistant_start) the call leg stays connected and continues
3419
+ * to be billed until it is hung up (for example with the Hangup call command) or
3420
+ * until the call ends for another reason. On TeXML, the assistant's
3421
+ * `<Connect><AIAssistant>` instruction ends; in the default TeXML setup for
3422
+ * assistants no instructions follow it, so the call is hung up. Your application
3423
+ * receives a call.conversation.ended webhook when the assistant stops. This limit
3424
+ * does not apply to portions of a call without an active assistant (for instance,
3425
+ * a call transferred to a human representative).
3315
3426
  */
3316
3427
  user_idle_timeout_secs?: number;
3317
3428
 
@@ -3455,9 +3566,10 @@ export namespace TelephonySettings {
3455
3566
  }
3456
3567
 
3457
3568
  /**
3458
- * **Beta:** Configuration for the Telnyx open-source avatar provider. Use one of
3459
- * the six stock avatars or an organization-owned custom avatar returned by the
3460
- * Avatars API. Supported backgrounds are office, studio, and reception.
3569
+ * **Beta:** Configuration for the Telnyx open-source avatar provider. Use a stock
3570
+ * avatar or an organization-owned custom avatar returned by the Avatars API.
3571
+ * Discover the available stock catalog with GET /v2/ai/avatars and
3572
+ * filter[avatar_type]=stock; follow meta.total_pages to load every page.
3461
3573
  */
3462
3574
  export interface TelnyxAvatarSettings {
3463
3575
  /**
@@ -3468,7 +3580,7 @@ export interface TelnyxAvatarSettings {
3468
3580
  /**
3469
3581
  * The background to render.
3470
3582
  */
3471
- background_id: 'office' | 'studio' | 'reception';
3583
+ background_id: 'office' | 'studio' | 'reception' | 'illustrated_workspace';
3472
3584
 
3473
3585
  /**
3474
3586
  * Required avatar model identifier, separate from `avatar_id`. The supported value
@@ -3657,7 +3769,12 @@ export interface TranscriptionSettings {
3657
3769
  * `nl`, `en`, `fr`, `fy`, `de`, `it`, `pl`, `pt`, `es`, and `sv` to fix the
3658
3770
  * transcription language. For `cohere/ar-stt`, supported values are `ar` and `en`;
3659
3771
  * unlike other models, this model does not auto-detect and defaults to `ar` when
3660
- * `language` is omitted.
3772
+ * `language` is omitted. For `speechmatics/linden-1`, there is no auto-detect; set
3773
+ * a code from Speechmatics' Realtime language list (67 language codes, including
3774
+ * `es-bilingual-en` for Spanish and English bilingual, and the spelling and script
3775
+ * variants `en-US`, `en-GB`, `en-AU`, `cmn-Hans`, and `cmn-Hant`; `en` alone uses
3776
+ * the default spelling); unset defaults to `en`, while an explicit `auto`,
3777
+ * `auto_beta`, or `multi` is rejected with a 400.
3661
3778
  */
3662
3779
  language?: string;
3663
3780
 
@@ -3668,6 +3785,12 @@ export interface TranscriptionSettings {
3668
3785
  * - `deepgram/flux` is optimized for turn-taking with multilingual language hints.
3669
3786
  * - `deepgram/nova-3` is multilingual with automatic language detection.
3670
3787
  * - `deepgram/nova-2` is Deepgram's previous-generation multilingual model.
3788
+ * - `speechmatics/standard` is a Speechmatics model self-hosted by Telnyx; it
3789
+ * supports a fixed set of language packs (including bilingual packs such as
3790
+ * `ar_en`) and defaults to `en`.
3791
+ * - `speechmatics/linden-1` (preview) is a vendor-hosted streaming model with no
3792
+ * auto-detect; set `language` from Speechmatics' Realtime language list
3793
+ * (defaults to `en`).
3671
3794
  * - `azure/fast` is a multilingual Azure transcription model.
3672
3795
  * - `assemblyai/universal-3-5-pro` is a multilingual streaming model with
3673
3796
  * configurable turn detection. The legacy alias `assemblyai/universal-streaming`
@@ -3691,6 +3814,8 @@ export interface TranscriptionSettings {
3691
3814
  | 'deepgram/flux'
3692
3815
  | 'deepgram/nova-3'
3693
3816
  | 'deepgram/nova-2'
3817
+ | 'speechmatics/standard'
3818
+ | 'speechmatics/linden-1'
3694
3819
  | 'azure/fast'
3695
3820
  | 'assemblyai/universal-3-5-pro'
3696
3821
  | 'assemblyai/universal-streaming'
@@ -3860,9 +3985,9 @@ export interface TranscriptionSettingsConfig {
3860
3985
  enable_endpoint_detection?: boolean;
3861
3986
 
3862
3987
  /**
3863
- * Available only for assemblyai/universal-3-5-pro (and its legacy alias
3864
- * assemblyai/universal-streaming). Confidence level required to trigger an end of
3865
- * turn. Higher values require more certainty before ending a turn.
3988
+ * @deprecated Deprecated and ignored. Accepted for backwards compatibility.
3989
+ * AssemblyAI turn detection is configured with min_turn_silence and
3990
+ * max_turn_silence.
3866
3991
  */
3867
3992
  end_of_turn_confidence_threshold?: number;
3868
3993
 
@@ -3885,10 +4010,13 @@ export interface TranscriptionSettingsConfig {
3885
4010
  interim_results?: boolean;
3886
4011
 
3887
4012
  /**
3888
- * Available only for deepgram/nova-3 and deepgram/flux. A comma-separated list of
3889
- * key terms to boost for recognition during transcription. Helps improve accuracy
3890
- * for domain-specific terminology, proper nouns, or uncommon words. This field may
3891
- * be templated with
4013
+ * A comma-separated list of key terms to boost for recognition during
4014
+ * transcription, used by Deepgram, Reson8, Speechmatics Linden 1 and AssemblyAI
4015
+ * models. Helps improve accuracy for domain-specific terminology, proper nouns, or
4016
+ * uncommon words. At most 1000 characters in total. For
4017
+ * assemblyai/universal-3-5-pro (and its legacy alias
4018
+ * assemblyai/universal-streaming), also at most 100 terms of up to 50 characters
4019
+ * each. This field may be templated with
3892
4020
  * [dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables)
3893
4021
  * using mustache syntax (e.g. `Telnyx,{{customer_name}},VoIP`). Variables are
3894
4022
  * resolved at call time before the value is sent to the speech-to-text engine.
@@ -3925,6 +4053,24 @@ export interface TranscriptionSettingsConfig {
3925
4053
 
3926
4054
  numerals?: boolean;
3927
4055
 
4056
+ /**
4057
+ * Available only for assemblyai/universal-3-5-pro (and its legacy alias
4058
+ * assemblyai/universal-streaming). Context about the conversation (domain, names,
4059
+ * terms) to improve transcription; describe the content, do not give instructions.
4060
+ * Leave empty unless needed. At most 1750 characters.
4061
+ */
4062
+ prompt?: string;
4063
+
4064
+ /**
4065
+ * Available only for speechmatics/linden-1. When true, filler words such as "um"
4066
+ * and "uh" are removed from the transcript. Disfluency removal is supported only
4067
+ * for `ar`, `cmn`, `da`, `de`, `el`, `en`, `es`, `fr`, `he`, `hi`, `hu`, `it`,
4068
+ * `ja`, `nl`, `pl`, `pt`, and `ru`, determined by the base language (so `en-US`,
4069
+ * `en-GB`, `en-AU`, `cmn-Hans`, and `cmn-Hant` are supported); for other
4070
+ * languages, filler words remain in the transcript.
4071
+ */
4072
+ remove_disfluencies?: boolean;
4073
+
3928
4074
  smart_format?: boolean;
3929
4075
  }
3930
4076
 
@@ -4435,8 +4581,9 @@ export interface AssistantCreateParams {
4435
4581
 
4436
4582
  /**
4437
4583
  * Body param: **Beta:** Configuration for the Telnyx open-source avatar provider.
4438
- * Use one of the six stock avatars or an organization-owned custom avatar returned
4439
- * by the Avatars API. Supported backgrounds are office, studio, and reception.
4584
+ * Use a stock avatar or an organization-owned custom avatar returned by the
4585
+ * Avatars API. Discover the available stock catalog with GET /v2/ai/avatars and
4586
+ * filter[avatar_type]=stock; follow meta.total_pages to load every page.
4440
4587
  */
4441
4588
  avatar_settings?: AvatarSettingsRequest | null;
4442
4589
 
@@ -4727,9 +4874,10 @@ export interface AssistantUpdateParams {
4727
4874
  a2a_agents?: Array<AssistantA2AAgent>;
4728
4875
 
4729
4876
  /**
4730
- * **Beta:** Configuration for the Telnyx open-source avatar provider. Use one of
4731
- * the six stock avatars or an organization-owned custom avatar returned by the
4732
- * Avatars API. Supported backgrounds are office, studio, and reception.
4877
+ * **Beta:** Configuration for the Telnyx open-source avatar provider. Use a stock
4878
+ * avatar or an organization-owned custom avatar returned by the Avatars API.
4879
+ * Discover the available stock catalog with GET /v2/ai/avatars and
4880
+ * filter[avatar_type]=stock; follow meta.total_pages to load every page.
4733
4881
  */
4734
4882
  avatar_settings?: AvatarSettingsRequest | null;
4735
4883
 
@@ -13,7 +13,10 @@ import { path } from '../../../internal/utils/path';
13
13
  export class Versions extends APIResource {
14
14
  /**
15
15
  * Retrieves all versions of a specific assistant with complete configuration and
16
- * metadata
16
+ * metadata. An assistant keeps at most 10 versions, including the main version.
17
+ * When an update takes it past that limit, the oldest versions are permanently
18
+ * deleted. The main version and any version referenced by a traffic distribution
19
+ * rule are never deleted this way.
17
20
  *
18
21
  * @example
19
22
  * ```ts
@@ -131,9 +134,10 @@ export interface UpdateAssistant {
131
134
  a2a_agents?: Array<AssistantsAPI.AssistantA2AAgent>;
132
135
 
133
136
  /**
134
- * **Beta:** Configuration for the Telnyx open-source avatar provider. Use one of
135
- * the six stock avatars or an organization-owned custom avatar returned by the
136
- * Avatars API. Supported backgrounds are office, studio, and reception.
137
+ * **Beta:** Configuration for the Telnyx open-source avatar provider. Use a stock
138
+ * avatar or an organization-owned custom avatar returned by the Avatars API.
139
+ * Discover the available stock catalog with GET /v2/ai/avatars and
140
+ * filter[avatar_type]=stock; follow meta.total_pages to load every page.
137
141
  */
138
142
  avatar_settings?: AssistantsAPI.AvatarSettingsRequest | null;
139
143
 
@@ -366,8 +370,9 @@ export interface VersionUpdateParams {
366
370
 
367
371
  /**
368
372
  * Body param: **Beta:** Configuration for the Telnyx open-source avatar provider.
369
- * Use one of the six stock avatars or an organization-owned custom avatar returned
370
- * by the Avatars API. Supported backgrounds are office, studio, and reception.
373
+ * Use a stock avatar or an organization-owned custom avatar returned by the
374
+ * Avatars API. Discover the available stock catalog with GET /v2/ai/avatars and
375
+ * filter[avatar_type]=stock; follow meta.total_pages to load every page.
371
376
  */
372
377
  avatar_settings?: AssistantsAPI.AvatarSettingsRequest | null;
373
378
 
@@ -130,9 +130,18 @@ export namespace AudioTranscribeResponse {
130
130
  */
131
131
  text: string;
132
132
 
133
+ /**
134
+ * Zero-indexed audio channel of this segment. Returned by the `deepgram/*` models
135
+ * when `multichannel` is enabled via `model_config` and the file has more than one
136
+ * channel. Segments from all channels are merged in one list ordered by start
137
+ * time.
138
+ */
139
+ channel?: number;
140
+
133
141
  /**
134
142
  * Speaker indices heard in this segment. Returned by the `deepgram/*` models when
135
- * `diarize` is enabled via `model_config`.
143
+ * `diarize` is enabled via `model_config`. With `multichannel`, speakers are
144
+ * numbered per channel from 0, so identify a speaker by (`channel`, speaker).
136
145
  */
137
146
  speakers?: Array<number>;
138
147
 
@@ -197,10 +206,14 @@ export interface AudioTranscribeParams {
197
206
 
198
207
  /**
199
208
  * Additional model-specific configuration parameters. Only allowed with the
200
- * `deepgram/*` models. Can include Deepgram-specific options such as
201
- * `smart_format`, `punctuate`, `diarize`, `utterance`, `numerals`, and `language`.
202
- * If `language` is provided both as a top-level parameter and in `model_config`,
203
- * the top-level parameter takes precedence.
209
+ * `deepgram/*` models. Sent as a JSON string in multipart requests and passed
210
+ * through to Deepgram as query parameters. Any other model with `model_config`
211
+ * returns 422. Can include Deepgram-specific options such as `smart_format`,
212
+ * `punctuate`, `diarize` (speaker labels), `multichannel` (transcribe each channel
213
+ * independently; billed duration is file duration multiplied by the number of
214
+ * channels), `utterances`, `numerals`, and `language`. If `language` is provided
215
+ * both as a top-level parameter and in `model_config`, the top-level parameter
216
+ * takes precedence.
204
217
  */
205
218
  model_config?: { [key: string]: unknown };
206
219
 
@@ -17,7 +17,9 @@ export class Avatars extends APIResource {
17
17
  * available to the authenticated organization. Custom avatars owned by other
18
18
  * organizations are never returned. The `image_url` value is suitable for
19
19
  * displaying a thumbnail and may be refreshed by listing or retrieving the avatar
20
- * again.
20
+ * again. `suggested_voice_id` recommends a compatible Telnyx voice for stock
21
+ * avatars and is an empty string for custom avatars; it does not change an AI
22
+ * Assistant's voice automatically.
21
23
  *
22
24
  * @example
23
25
  * ```ts
@@ -102,9 +104,11 @@ export type AvatarsDefaultFlatPagination = DefaultFlatPagination<Avatar>;
102
104
 
103
105
  export interface Avatar {
104
106
  /**
105
- * Stable identifier of a Telnyx stock avatar or an organization-owned custom
106
- * avatar. Custom avatar IDs are returned by the Avatars API and use the `avatar_`
107
- * prefix.
107
+ * Stable identifier returned by the Avatars API. Discover available stock IDs with
108
+ * GET /v2/ai/avatars and filter[avatar_type]=stock rather than maintaining a fixed
109
+ * list. Custom avatar IDs use the `avatar_` prefix and must belong to the
110
+ * authenticated organization. The service validates that the selected avatar is
111
+ * available.
108
112
  */
109
113
  id: AvatarID;
110
114
 
@@ -160,6 +164,14 @@ export interface Avatar {
160
164
  */
161
165
  size_bytes?: number;
162
166
 
167
+ /**
168
+ * Optional recommended Telnyx text-to-speech voice for this avatar. An omitted
169
+ * field or empty string means no recommendation is available. Custom avatars have
170
+ * no suggested voice. It is informational and selecting the avatar does not
171
+ * automatically change the AI Assistant's configured voice.
172
+ */
173
+ suggested_voice_id?: string;
174
+
163
175
  /**
164
176
  * Time when the custom avatar was last updated.
165
177
  */
@@ -172,11 +184,13 @@ export interface Avatar {
172
184
  }
173
185
 
174
186
  /**
175
- * Stable identifier of a Telnyx stock avatar or an organization-owned custom
176
- * avatar. Custom avatar IDs are returned by the Avatars API and use the `avatar_`
177
- * prefix.
187
+ * Stable identifier returned by the Avatars API. Discover available stock IDs with
188
+ * GET /v2/ai/avatars and filter[avatar_type]=stock rather than maintaining a fixed
189
+ * list. Custom avatar IDs use the `avatar_` prefix and must belong to the
190
+ * authenticated organization. The service validates that the selected avatar is
191
+ * available.
178
192
  */
179
- export type AvatarID = 'elena' | 'ben' | 'jordan' | 'lin' | 'avery' | 'raphael' | (string & {});
193
+ export type AvatarID = string;
180
194
 
181
195
  export interface AvatarResponse {
182
196
  data: Avatar;
@@ -179,6 +179,7 @@ export {
179
179
  type PayToolParams,
180
180
  type SharedToolResponse,
181
181
  type UpdateDynamicVariablesToolParams,
182
+ type VisionToolParams,
182
183
  type ToolListParams,
183
184
  type ToolCreateParams,
184
185
  type ToolUpdateParams,
@@ -202,6 +202,14 @@ export namespace UpdateDynamicVariablesToolParams {
202
202
  }
203
203
  }
204
204
 
205
+ export interface VisionToolParams {
206
+ /**
207
+ * Frames received longer ago than this many seconds are not shown to the
208
+ * assistant, so it never describes a frozen or disconnected camera as live.
209
+ */
210
+ max_frame_age_secs?: number;
211
+ }
212
+
205
213
  export interface ToolListParams extends DefaultFlatPaginationParams {
206
214
  /**
207
215
  * Filter results by filter name.
@@ -265,6 +273,11 @@ export interface ToolCreateParams {
265
273
  */
266
274
  update_dynamic_variables?: UpdateDynamicVariablesToolParams;
267
275
 
276
+ /**
277
+ * Body param
278
+ */
279
+ vision?: VisionToolParams;
280
+
268
281
  /**
269
282
  * Body param
270
283
  */
@@ -309,6 +322,8 @@ export interface ToolUpdateParams {
309
322
  */
310
323
  update_dynamic_variables?: UpdateDynamicVariablesToolParams;
311
324
 
325
+ vision?: VisionToolParams;
326
+
312
327
  webhook?: { [key: string]: unknown };
313
328
 
314
329
  [k: string]: unknown;
@@ -319,6 +334,7 @@ export declare namespace Tools {
319
334
  type PayToolParams as PayToolParams,
320
335
  type SharedToolResponse as SharedToolResponse,
321
336
  type UpdateDynamicVariablesToolParams as UpdateDynamicVariablesToolParams,
337
+ type VisionToolParams as VisionToolParams,
322
338
  type SharedToolResponsesDefaultFlatPagination as SharedToolResponsesDefaultFlatPagination,
323
339
  type ToolListParams as ToolListParams,
324
340
  type ToolCreateParams as ToolCreateParams,