telnyx 7.26.0 → 7.28.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 (516) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/client.d.mts +28 -10
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +28 -10
  5. package/client.d.ts.map +1 -1
  6. package/client.js +18 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +18 -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 +179 -33
  26. package/resources/ai/assistants/assistants.d.mts.map +1 -1
  27. package/resources/ai/assistants/assistants.d.ts +179 -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 +33 -10
  42. package/resources/ai/audio.d.mts.map +1 -1
  43. package/resources/ai/audio.d.ts +33 -10
  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/compute/compute.d.mts +75 -2
  80. package/resources/compute/compute.d.mts.map +1 -1
  81. package/resources/compute/compute.d.ts +75 -2
  82. package/resources/compute/compute.d.ts.map +1 -1
  83. package/resources/compute/compute.js +17 -0
  84. package/resources/compute/compute.js.map +1 -1
  85. package/resources/compute/compute.mjs +17 -0
  86. package/resources/compute/compute.mjs.map +1 -1
  87. package/resources/compute/funcs/export.d.mts +3 -0
  88. package/resources/compute/funcs/export.d.mts.map +1 -1
  89. package/resources/compute/funcs/export.d.ts +3 -0
  90. package/resources/compute/funcs/export.d.ts.map +1 -1
  91. package/resources/compute/funcs/export.js +3 -0
  92. package/resources/compute/funcs/export.js.map +1 -1
  93. package/resources/compute/funcs/export.mjs +3 -0
  94. package/resources/compute/funcs/export.mjs.map +1 -1
  95. package/resources/compute/funcs/funcs.d.mts +60 -1
  96. package/resources/compute/funcs/funcs.d.mts.map +1 -1
  97. package/resources/compute/funcs/funcs.d.ts +60 -1
  98. package/resources/compute/funcs/funcs.d.ts.map +1 -1
  99. package/resources/compute/funcs/funcs.js +24 -0
  100. package/resources/compute/funcs/funcs.js.map +1 -1
  101. package/resources/compute/funcs/funcs.mjs +24 -0
  102. package/resources/compute/funcs/funcs.mjs.map +1 -1
  103. package/resources/compute/funcs/index.d.mts +1 -1
  104. package/resources/compute/funcs/index.d.mts.map +1 -1
  105. package/resources/compute/funcs/index.d.ts +1 -1
  106. package/resources/compute/funcs/index.d.ts.map +1 -1
  107. package/resources/compute/funcs/index.js.map +1 -1
  108. package/resources/compute/funcs/index.mjs.map +1 -1
  109. package/resources/compute/index.d.mts +2 -2
  110. package/resources/compute/index.d.mts.map +1 -1
  111. package/resources/compute/index.d.ts +2 -2
  112. package/resources/compute/index.d.ts.map +1 -1
  113. package/resources/compute/index.js.map +1 -1
  114. package/resources/compute/index.mjs.map +1 -1
  115. package/resources/credential-connections/credential-connections.d.mts +38 -8
  116. package/resources/credential-connections/credential-connections.d.mts.map +1 -1
  117. package/resources/credential-connections/credential-connections.d.ts +38 -8
  118. package/resources/credential-connections/credential-connections.d.ts.map +1 -1
  119. package/resources/credential-connections/credential-connections.js.map +1 -1
  120. package/resources/credential-connections/credential-connections.mjs.map +1 -1
  121. package/resources/dial-metrics.d.mts +151 -0
  122. package/resources/dial-metrics.d.mts.map +1 -0
  123. package/resources/dial-metrics.d.ts +151 -0
  124. package/resources/dial-metrics.d.ts.map +1 -0
  125. package/resources/dial-metrics.js +44 -0
  126. package/resources/dial-metrics.js.map +1 -0
  127. package/resources/dial-metrics.mjs +40 -0
  128. package/resources/dial-metrics.mjs.map +1 -0
  129. package/resources/dir/dir.d.mts +2 -3
  130. package/resources/dir/dir.d.mts.map +1 -1
  131. package/resources/dir/dir.d.ts +2 -3
  132. package/resources/dir/dir.d.ts.map +1 -1
  133. package/resources/dir/dir.js +1 -2
  134. package/resources/dir/dir.js.map +1 -1
  135. package/resources/dir/dir.mjs +1 -2
  136. package/resources/dir/dir.mjs.map +1 -1
  137. package/resources/dir/references.d.mts +15 -9
  138. package/resources/dir/references.d.mts.map +1 -1
  139. package/resources/dir/references.d.ts +15 -9
  140. package/resources/dir/references.d.ts.map +1 -1
  141. package/resources/dir/references.js +15 -9
  142. package/resources/dir/references.js.map +1 -1
  143. package/resources/dir/references.mjs +15 -9
  144. package/resources/dir/references.mjs.map +1 -1
  145. package/resources/dir/verify-email.d.mts +17 -5
  146. package/resources/dir/verify-email.d.mts.map +1 -1
  147. package/resources/dir/verify-email.d.ts +17 -5
  148. package/resources/dir/verify-email.d.ts.map +1 -1
  149. package/resources/dir/verify-email.js +17 -5
  150. package/resources/dir/verify-email.js.map +1 -1
  151. package/resources/dir/verify-email.mjs +17 -5
  152. package/resources/dir/verify-email.mjs.map +1 -1
  153. package/resources/email-domains/email-domains.d.mts +1 -1
  154. package/resources/email-domains/email-domains.d.mts.map +1 -1
  155. package/resources/email-domains/email-domains.d.ts +1 -1
  156. package/resources/email-domains/email-domains.d.ts.map +1 -1
  157. package/resources/enterprises/verify-email.d.mts +1 -1
  158. package/resources/enterprises/verify-email.d.ts +1 -1
  159. package/resources/enterprises/verify-email.js +1 -1
  160. package/resources/enterprises/verify-email.mjs +1 -1
  161. package/resources/fqdn-connections/fqdn-connections.d.mts +38 -8
  162. package/resources/fqdn-connections/fqdn-connections.d.mts.map +1 -1
  163. package/resources/fqdn-connections/fqdn-connections.d.ts +38 -8
  164. package/resources/fqdn-connections/fqdn-connections.d.ts.map +1 -1
  165. package/resources/fqdn-connections/fqdn-connections.js.map +1 -1
  166. package/resources/fqdn-connections/fqdn-connections.mjs.map +1 -1
  167. package/resources/index.d.mts +8 -5
  168. package/resources/index.d.mts.map +1 -1
  169. package/resources/index.d.ts +8 -5
  170. package/resources/index.d.ts.map +1 -1
  171. package/resources/index.js +10 -4
  172. package/resources/index.js.map +1 -1
  173. package/resources/index.mjs +3 -0
  174. package/resources/index.mjs.map +1 -1
  175. package/resources/ip-connections.d.mts +36 -6
  176. package/resources/ip-connections.d.mts.map +1 -1
  177. package/resources/ip-connections.d.ts +36 -6
  178. package/resources/ip-connections.d.ts.map +1 -1
  179. package/resources/meeting-sessions/actions.d.mts +13 -7
  180. package/resources/meeting-sessions/actions.d.mts.map +1 -1
  181. package/resources/meeting-sessions/actions.d.ts +13 -7
  182. package/resources/meeting-sessions/actions.d.ts.map +1 -1
  183. package/resources/meeting-sessions/actions.js +13 -7
  184. package/resources/meeting-sessions/actions.js.map +1 -1
  185. package/resources/meeting-sessions/actions.mjs +13 -7
  186. package/resources/meeting-sessions/actions.mjs.map +1 -1
  187. package/resources/meeting-sessions/index.d.mts +1 -1
  188. package/resources/meeting-sessions/index.d.mts.map +1 -1
  189. package/resources/meeting-sessions/index.d.ts +1 -1
  190. package/resources/meeting-sessions/index.d.ts.map +1 -1
  191. package/resources/meeting-sessions/index.js.map +1 -1
  192. package/resources/meeting-sessions/index.mjs.map +1 -1
  193. package/resources/meeting-sessions/meeting-sessions.d.mts +46 -65
  194. package/resources/meeting-sessions/meeting-sessions.d.mts.map +1 -1
  195. package/resources/meeting-sessions/meeting-sessions.d.ts +46 -65
  196. package/resources/meeting-sessions/meeting-sessions.d.ts.map +1 -1
  197. package/resources/meeting-sessions/meeting-sessions.js +14 -23
  198. package/resources/meeting-sessions/meeting-sessions.js.map +1 -1
  199. package/resources/meeting-sessions/meeting-sessions.mjs +14 -23
  200. package/resources/meeting-sessions/meeting-sessions.mjs.map +1 -1
  201. package/resources/messages/messages.d.mts +581 -118
  202. package/resources/messages/messages.d.mts.map +1 -1
  203. package/resources/messages/messages.d.ts +581 -118
  204. package/resources/messages/messages.d.ts.map +1 -1
  205. package/resources/messages/messages.js +71 -14
  206. package/resources/messages/messages.js.map +1 -1
  207. package/resources/messages/messages.mjs +71 -14
  208. package/resources/messages/messages.mjs.map +1 -1
  209. package/resources/messages/rcs.d.mts +26 -6
  210. package/resources/messages/rcs.d.mts.map +1 -1
  211. package/resources/messages/rcs.d.ts +26 -6
  212. package/resources/messages/rcs.d.ts.map +1 -1
  213. package/resources/messages/rcs.js +11 -2
  214. package/resources/messages/rcs.js.map +1 -1
  215. package/resources/messages/rcs.mjs +11 -2
  216. package/resources/messages/rcs.mjs.map +1 -1
  217. package/resources/network-coverage.d.mts +1 -1
  218. package/resources/network-coverage.d.mts.map +1 -1
  219. package/resources/network-coverage.d.ts +1 -1
  220. package/resources/network-coverage.d.ts.map +1 -1
  221. package/resources/number-lookup.d.mts +122 -4
  222. package/resources/number-lookup.d.mts.map +1 -1
  223. package/resources/number-lookup.d.ts +122 -4
  224. package/resources/number-lookup.d.ts.map +1 -1
  225. package/resources/phone-numbers/csv-downloads.d.mts +9 -0
  226. package/resources/phone-numbers/csv-downloads.d.mts.map +1 -1
  227. package/resources/phone-numbers/csv-downloads.d.ts +9 -0
  228. package/resources/phone-numbers/csv-downloads.d.ts.map +1 -1
  229. package/resources/phone-numbers/csv-downloads.js +5 -2
  230. package/resources/phone-numbers/csv-downloads.js.map +1 -1
  231. package/resources/phone-numbers/csv-downloads.mjs +5 -2
  232. package/resources/phone-numbers/csv-downloads.mjs.map +1 -1
  233. package/resources/phone-numbers/index.d.mts +2 -2
  234. package/resources/phone-numbers/index.d.mts.map +1 -1
  235. package/resources/phone-numbers/index.d.ts +2 -2
  236. package/resources/phone-numbers/index.d.ts.map +1 -1
  237. package/resources/phone-numbers/index.js.map +1 -1
  238. package/resources/phone-numbers/index.mjs.map +1 -1
  239. package/resources/phone-numbers/jobs.d.mts +266 -15
  240. package/resources/phone-numbers/jobs.d.mts.map +1 -1
  241. package/resources/phone-numbers/jobs.d.ts +266 -15
  242. package/resources/phone-numbers/jobs.d.ts.map +1 -1
  243. package/resources/phone-numbers/jobs.js +1 -1
  244. package/resources/phone-numbers/jobs.js.map +1 -1
  245. package/resources/phone-numbers/jobs.mjs +1 -1
  246. package/resources/phone-numbers/jobs.mjs.map +1 -1
  247. package/resources/phone-numbers/phone-numbers.d.mts +28 -3
  248. package/resources/phone-numbers/phone-numbers.d.mts.map +1 -1
  249. package/resources/phone-numbers/phone-numbers.d.ts +28 -3
  250. package/resources/phone-numbers/phone-numbers.d.ts.map +1 -1
  251. package/resources/phone-numbers/phone-numbers.js.map +1 -1
  252. package/resources/phone-numbers/phone-numbers.mjs.map +1 -1
  253. package/resources/porting-orders/phone-number-blocks.d.mts +1 -1
  254. package/resources/porting-orders/phone-number-blocks.d.mts.map +1 -1
  255. package/resources/porting-orders/phone-number-blocks.d.ts +1 -1
  256. package/resources/porting-orders/phone-number-blocks.d.ts.map +1 -1
  257. package/resources/porting-orders/porting-orders.d.mts +1 -1
  258. package/resources/porting-orders/porting-orders.d.mts.map +1 -1
  259. package/resources/porting-orders/porting-orders.d.ts +1 -1
  260. package/resources/porting-orders/porting-orders.d.ts.map +1 -1
  261. package/resources/porting-orders/porting-orders.js.map +1 -1
  262. package/resources/porting-orders/porting-orders.mjs.map +1 -1
  263. package/resources/porting-phone-numbers.d.mts +1 -1
  264. package/resources/porting-phone-numbers.d.mts.map +1 -1
  265. package/resources/porting-phone-numbers.d.ts +1 -1
  266. package/resources/porting-phone-numbers.d.ts.map +1 -1
  267. package/resources/shared.d.mts +4 -0
  268. package/resources/shared.d.mts.map +1 -1
  269. package/resources/shared.d.ts +4 -0
  270. package/resources/shared.d.ts.map +1 -1
  271. package/resources/speech-to-text/speech-to-text.d.mts +12 -5
  272. package/resources/speech-to-text/speech-to-text.d.mts.map +1 -1
  273. package/resources/speech-to-text/speech-to-text.d.ts +12 -5
  274. package/resources/speech-to-text/speech-to-text.d.ts.map +1 -1
  275. package/resources/tailscale-subnet-routers.d.mts +233 -0
  276. package/resources/tailscale-subnet-routers.d.mts.map +1 -0
  277. package/resources/tailscale-subnet-routers.d.ts +233 -0
  278. package/resources/tailscale-subnet-routers.d.ts.map +1 -0
  279. package/resources/tailscale-subnet-routers.js +105 -0
  280. package/resources/tailscale-subnet-routers.js.map +1 -0
  281. package/resources/tailscale-subnet-routers.mjs +101 -0
  282. package/resources/tailscale-subnet-routers.mjs.map +1 -0
  283. package/resources/telephony-credentials.d.mts +11 -2
  284. package/resources/telephony-credentials.d.mts.map +1 -1
  285. package/resources/telephony-credentials.d.ts +11 -2
  286. package/resources/telephony-credentials.d.ts.map +1 -1
  287. package/resources/telephony-credentials.js +9 -2
  288. package/resources/telephony-credentials.js.map +1 -1
  289. package/resources/telephony-credentials.mjs +9 -2
  290. package/resources/telephony-credentials.mjs.map +1 -1
  291. package/resources/texml/accounts/accounts.d.mts +2 -2
  292. package/resources/texml/accounts/accounts.d.ts +2 -2
  293. package/resources/texml/accounts/accounts.js +2 -2
  294. package/resources/texml/accounts/accounts.mjs +2 -2
  295. package/resources/texml/accounts/calls/calls.d.mts +49 -14
  296. package/resources/texml/accounts/calls/calls.d.mts.map +1 -1
  297. package/resources/texml/accounts/calls/calls.d.ts +49 -14
  298. package/resources/texml/accounts/calls/calls.d.ts.map +1 -1
  299. package/resources/texml/accounts/calls/calls.js +7 -7
  300. package/resources/texml/accounts/calls/calls.js.map +1 -1
  301. package/resources/texml/accounts/calls/calls.mjs +7 -7
  302. package/resources/texml/accounts/calls/calls.mjs.map +1 -1
  303. package/resources/texml/accounts/calls/recordings-json.d.mts +14 -4
  304. package/resources/texml/accounts/calls/recordings-json.d.mts.map +1 -1
  305. package/resources/texml/accounts/calls/recordings-json.d.ts +14 -4
  306. package/resources/texml/accounts/calls/recordings-json.d.ts.map +1 -1
  307. package/resources/texml/accounts/calls/recordings-json.js +2 -2
  308. package/resources/texml/accounts/calls/recordings-json.mjs +2 -2
  309. package/resources/texml/accounts/calls/recordings.d.mts +10 -2
  310. package/resources/texml/accounts/calls/recordings.d.mts.map +1 -1
  311. package/resources/texml/accounts/calls/recordings.d.ts +10 -2
  312. package/resources/texml/accounts/calls/recordings.d.ts.map +1 -1
  313. package/resources/texml/accounts/calls/recordings.js +4 -1
  314. package/resources/texml/accounts/calls/recordings.js.map +1 -1
  315. package/resources/texml/accounts/calls/recordings.mjs +4 -1
  316. package/resources/texml/accounts/calls/recordings.mjs.map +1 -1
  317. package/resources/texml/accounts/calls/siprec.d.mts +10 -2
  318. package/resources/texml/accounts/calls/siprec.d.mts.map +1 -1
  319. package/resources/texml/accounts/calls/siprec.d.ts +10 -2
  320. package/resources/texml/accounts/calls/siprec.d.ts.map +1 -1
  321. package/resources/texml/accounts/calls/siprec.js +4 -1
  322. package/resources/texml/accounts/calls/siprec.js.map +1 -1
  323. package/resources/texml/accounts/calls/siprec.mjs +4 -1
  324. package/resources/texml/accounts/calls/siprec.mjs.map +1 -1
  325. package/resources/texml/accounts/calls/streams.d.mts +10 -2
  326. package/resources/texml/accounts/calls/streams.d.mts.map +1 -1
  327. package/resources/texml/accounts/calls/streams.d.ts +10 -2
  328. package/resources/texml/accounts/calls/streams.d.ts.map +1 -1
  329. package/resources/texml/accounts/calls/streams.js +4 -1
  330. package/resources/texml/accounts/calls/streams.js.map +1 -1
  331. package/resources/texml/accounts/calls/streams.mjs +4 -1
  332. package/resources/texml/accounts/calls/streams.mjs.map +1 -1
  333. package/resources/texml/accounts/conferences/conferences.d.mts +29 -9
  334. package/resources/texml/accounts/conferences/conferences.d.mts.map +1 -1
  335. package/resources/texml/accounts/conferences/conferences.d.ts +29 -9
  336. package/resources/texml/accounts/conferences/conferences.d.ts.map +1 -1
  337. package/resources/texml/accounts/conferences/conferences.js +5 -5
  338. package/resources/texml/accounts/conferences/conferences.js.map +1 -1
  339. package/resources/texml/accounts/conferences/conferences.mjs +5 -5
  340. package/resources/texml/accounts/conferences/conferences.mjs.map +1 -1
  341. package/resources/texml/accounts/conferences/participants.d.mts +35 -10
  342. package/resources/texml/accounts/conferences/participants.d.mts.map +1 -1
  343. package/resources/texml/accounts/conferences/participants.d.ts +35 -10
  344. package/resources/texml/accounts/conferences/participants.d.ts.map +1 -1
  345. package/resources/texml/accounts/conferences/participants.js +5 -5
  346. package/resources/texml/accounts/conferences/participants.mjs +5 -5
  347. package/resources/texml/accounts/queues.d.mts +25 -8
  348. package/resources/texml/accounts/queues.d.mts.map +1 -1
  349. package/resources/texml/accounts/queues.d.ts +25 -8
  350. package/resources/texml/accounts/queues.d.ts.map +1 -1
  351. package/resources/texml/accounts/queues.js +7 -5
  352. package/resources/texml/accounts/queues.js.map +1 -1
  353. package/resources/texml/accounts/queues.mjs +7 -5
  354. package/resources/texml/accounts/queues.mjs.map +1 -1
  355. package/resources/texml/accounts/recordings/json.d.mts +14 -4
  356. package/resources/texml/accounts/recordings/json.d.mts.map +1 -1
  357. package/resources/texml/accounts/recordings/json.d.ts +14 -4
  358. package/resources/texml/accounts/recordings/json.d.ts.map +1 -1
  359. package/resources/texml/accounts/recordings/json.js +2 -2
  360. package/resources/texml/accounts/recordings/json.mjs +2 -2
  361. package/resources/texml/accounts/transcriptions/json.d.mts +14 -4
  362. package/resources/texml/accounts/transcriptions/json.d.mts.map +1 -1
  363. package/resources/texml/accounts/transcriptions/json.d.ts +14 -4
  364. package/resources/texml/accounts/transcriptions/json.d.ts.map +1 -1
  365. package/resources/texml/accounts/transcriptions/json.js +2 -2
  366. package/resources/texml/accounts/transcriptions/json.mjs +2 -2
  367. package/resources/text-to-speech/text-to-speech.d.mts +15 -6
  368. package/resources/text-to-speech/text-to-speech.d.mts.map +1 -1
  369. package/resources/text-to-speech/text-to-speech.d.ts +15 -6
  370. package/resources/text-to-speech/text-to-speech.d.ts.map +1 -1
  371. package/resources/tts-integrations/actions.d.mts +4 -0
  372. package/resources/tts-integrations/actions.d.mts.map +1 -0
  373. package/resources/tts-integrations/actions.d.ts +4 -0
  374. package/resources/tts-integrations/actions.d.ts.map +1 -0
  375. package/resources/tts-integrations/actions.js +9 -0
  376. package/resources/tts-integrations/actions.js.map +1 -0
  377. package/resources/tts-integrations/actions.mjs +5 -0
  378. package/resources/tts-integrations/actions.mjs.map +1 -0
  379. package/resources/tts-integrations/index.d.mts +3 -0
  380. package/resources/tts-integrations/index.d.mts.map +1 -0
  381. package/resources/tts-integrations/index.d.ts +3 -0
  382. package/resources/tts-integrations/index.d.ts.map +1 -0
  383. package/resources/tts-integrations/index.js +9 -0
  384. package/resources/tts-integrations/index.js.map +1 -0
  385. package/resources/tts-integrations/index.mjs +4 -0
  386. package/resources/tts-integrations/index.mjs.map +1 -0
  387. package/resources/tts-integrations/tts-integrations.d.mts +10 -0
  388. package/resources/tts-integrations/tts-integrations.d.mts.map +1 -0
  389. package/resources/tts-integrations/tts-integrations.d.ts +10 -0
  390. package/resources/tts-integrations/tts-integrations.d.ts.map +1 -0
  391. package/resources/tts-integrations/tts-integrations.js +17 -0
  392. package/resources/tts-integrations/tts-integrations.js.map +1 -0
  393. package/resources/tts-integrations/tts-integrations.mjs +12 -0
  394. package/resources/tts-integrations/tts-integrations.mjs.map +1 -0
  395. package/resources/tts-integrations.d.mts +2 -0
  396. package/resources/tts-integrations.d.mts.map +1 -0
  397. package/resources/tts-integrations.d.ts +2 -0
  398. package/resources/tts-integrations.d.ts.map +1 -0
  399. package/resources/tts-integrations.js +6 -0
  400. package/resources/tts-integrations.js.map +1 -0
  401. package/resources/tts-integrations.mjs +3 -0
  402. package/resources/tts-integrations.mjs.map +1 -0
  403. package/resources/uac-connections/uac-connections.d.mts +36 -6
  404. package/resources/uac-connections/uac-connections.d.mts.map +1 -1
  405. package/resources/uac-connections/uac-connections.d.ts +36 -6
  406. package/resources/uac-connections/uac-connections.d.ts.map +1 -1
  407. package/resources/uac-connections/uac-connections.js.map +1 -1
  408. package/resources/uac-connections/uac-connections.mjs.map +1 -1
  409. package/resources/voice-clones.d.mts +57 -10
  410. package/resources/voice-clones.d.mts.map +1 -1
  411. package/resources/voice-clones.d.ts +57 -10
  412. package/resources/voice-clones.d.ts.map +1 -1
  413. package/resources/voice-clones.js +6 -4
  414. package/resources/voice-clones.js.map +1 -1
  415. package/resources/voice-clones.mjs +6 -4
  416. package/resources/voice-clones.mjs.map +1 -1
  417. package/resources/webhooks.d.mts +433 -81
  418. package/resources/webhooks.d.mts.map +1 -1
  419. package/resources/webhooks.d.ts +433 -81
  420. package/resources/webhooks.d.ts.map +1 -1
  421. package/resources/whatsapp/hosted-signups.d.mts +165 -0
  422. package/resources/whatsapp/hosted-signups.d.mts.map +1 -0
  423. package/resources/whatsapp/hosted-signups.d.ts +165 -0
  424. package/resources/whatsapp/hosted-signups.d.ts.map +1 -0
  425. package/resources/whatsapp/hosted-signups.js +56 -0
  426. package/resources/whatsapp/hosted-signups.js.map +1 -0
  427. package/resources/whatsapp/hosted-signups.mjs +52 -0
  428. package/resources/whatsapp/hosted-signups.mjs.map +1 -0
  429. package/resources/whatsapp/index.d.mts +1 -0
  430. package/resources/whatsapp/index.d.mts.map +1 -1
  431. package/resources/whatsapp/index.d.ts +1 -0
  432. package/resources/whatsapp/index.d.ts.map +1 -1
  433. package/resources/whatsapp/index.js +3 -1
  434. package/resources/whatsapp/index.js.map +1 -1
  435. package/resources/whatsapp/index.mjs +1 -0
  436. package/resources/whatsapp/index.mjs.map +1 -1
  437. package/resources/whatsapp/whatsapp.d.mts +4 -0
  438. package/resources/whatsapp/whatsapp.d.mts.map +1 -1
  439. package/resources/whatsapp/whatsapp.d.ts +4 -0
  440. package/resources/whatsapp/whatsapp.d.ts.map +1 -1
  441. package/resources/whatsapp/whatsapp.js +4 -0
  442. package/resources/whatsapp/whatsapp.js.map +1 -1
  443. package/resources/whatsapp/whatsapp.mjs +4 -0
  444. package/resources/whatsapp/whatsapp.mjs.map +1 -1
  445. package/src/client.ts +64 -6
  446. package/src/resources/addresses/addresses.ts +22 -2
  447. package/src/resources/ai/ai.ts +2 -0
  448. package/src/resources/ai/assistants/assistants.ts +191 -31
  449. package/src/resources/ai/assistants/versions.ts +11 -6
  450. package/src/resources/ai/audio.ts +35 -10
  451. package/src/resources/ai/avatars.ts +22 -8
  452. package/src/resources/ai/index.ts +1 -0
  453. package/src/resources/ai/tools.ts +16 -0
  454. package/src/resources/calls/actions.ts +281 -10
  455. package/src/resources/calls/calls.ts +2 -0
  456. package/src/resources/calls/index.ts +1 -0
  457. package/src/resources/compute/compute.ts +105 -0
  458. package/src/resources/compute/funcs/export.ts +3 -0
  459. package/src/resources/compute/funcs/funcs.ts +99 -0
  460. package/src/resources/compute/funcs/index.ts +3 -0
  461. package/src/resources/compute/index.ts +4 -1
  462. package/src/resources/credential-connections/credential-connections.ts +41 -8
  463. package/src/resources/dial-metrics.ts +185 -0
  464. package/src/resources/dir/dir.ts +4 -2
  465. package/src/resources/dir/references.ts +15 -9
  466. package/src/resources/dir/verify-email.ts +17 -5
  467. package/src/resources/email-domains/email-domains.ts +1 -1
  468. package/src/resources/enterprises/verify-email.ts +1 -1
  469. package/src/resources/fqdn-connections/fqdn-connections.ts +41 -8
  470. package/src/resources/index.ts +23 -3
  471. package/src/resources/ip-connections.ts +39 -6
  472. package/src/resources/meeting-sessions/actions.ts +13 -7
  473. package/src/resources/meeting-sessions/index.ts +0 -1
  474. package/src/resources/meeting-sessions/meeting-sessions.ts +48 -79
  475. package/src/resources/messages/messages.ts +786 -125
  476. package/src/resources/messages/rcs.ts +37 -7
  477. package/src/resources/network-coverage.ts +5 -1
  478. package/src/resources/number-lookup.ts +154 -4
  479. package/src/resources/phone-numbers/csv-downloads.ts +15 -2
  480. package/src/resources/phone-numbers/index.ts +3 -1
  481. package/src/resources/phone-numbers/jobs.ts +320 -16
  482. package/src/resources/phone-numbers/phone-numbers.ts +38 -2
  483. package/src/resources/porting-orders/phone-number-blocks.ts +1 -0
  484. package/src/resources/porting-orders/porting-orders.ts +1 -0
  485. package/src/resources/porting-phone-numbers.ts +1 -0
  486. package/src/resources/shared.ts +5 -0
  487. package/src/resources/speech-to-text/speech-to-text.ts +12 -4
  488. package/src/resources/tailscale-subnet-routers.ts +303 -0
  489. package/src/resources/telephony-credentials.ts +24 -2
  490. package/src/resources/texml/accounts/accounts.ts +2 -2
  491. package/src/resources/texml/accounts/calls/calls.ts +49 -14
  492. package/src/resources/texml/accounts/calls/recordings-json.ts +14 -4
  493. package/src/resources/texml/accounts/calls/recordings.ts +10 -2
  494. package/src/resources/texml/accounts/calls/siprec.ts +10 -2
  495. package/src/resources/texml/accounts/calls/streams.ts +10 -2
  496. package/src/resources/texml/accounts/conferences/conferences.ts +29 -9
  497. package/src/resources/texml/accounts/conferences/participants.ts +35 -10
  498. package/src/resources/texml/accounts/queues.ts +25 -8
  499. package/src/resources/texml/accounts/recordings/json.ts +14 -4
  500. package/src/resources/texml/accounts/transcriptions/json.ts +14 -4
  501. package/src/resources/text-to-speech/text-to-speech.ts +15 -6
  502. package/src/resources/tts-integrations/actions.ts +5 -0
  503. package/src/resources/tts-integrations/index.ts +4 -0
  504. package/src/resources/tts-integrations/tts-integrations.ts +15 -0
  505. package/src/resources/tts-integrations.ts +3 -0
  506. package/src/resources/uac-connections/uac-connections.ts +39 -6
  507. package/src/resources/voice-clones.ts +65 -9
  508. package/src/resources/webhooks.ts +517 -95
  509. package/src/resources/whatsapp/hosted-signups.ts +221 -0
  510. package/src/resources/whatsapp/index.ts +9 -0
  511. package/src/resources/whatsapp/whatsapp.ts +22 -0
  512. package/src/version.ts +1 -1
  513. package/version.d.mts +1 -1
  514. package/version.d.ts +1 -1
  515. package/version.js +1 -1
  516. package/version.mjs +1 -1
@@ -30,7 +30,7 @@ export class Audio extends APIResource {
30
30
 
31
31
  /**
32
32
  * Word-level timing detail. Only present when using a `deepgram/*` model with
33
- * `model_config` options that enable word timestamps.
33
+ * `model_config` options that enable word timestamps, or `reson8/prerecorded`.
34
34
  */
35
35
  export interface AudioTranscriptionResponseWord {
36
36
  /**
@@ -78,6 +78,9 @@ export interface AudioTranscriptionResponseWord {
78
78
  * return `text` and, depending on `model_config`, may include `words` with
79
79
  * per-word timestamps and speaker labels. The Parakeet models
80
80
  * (`nvidia/parakeet-v3`, `omi-health/omi-med-stt-v1`) return `text` only.
81
+ * `reson8/prerecorded` returns `text` and, in `verbose_json` mode, `duration` and
82
+ * `segments` with `words`; with `diarize`, one segment per speaker turn with
83
+ * speaker labels.
81
84
  */
82
85
  export interface AudioTranscribeResponse {
83
86
  /**
@@ -131,14 +134,25 @@ export namespace AudioTranscribeResponse {
131
134
  text: string;
132
135
 
133
136
  /**
134
- * Speaker indices heard in this segment. Returned by the `deepgram/*` models when
135
- * `diarize` is enabled via `model_config`.
137
+ * Zero-indexed audio channel of this segment. Returned by the `deepgram/*` models
138
+ * when `multichannel` is enabled via `model_config` and the file has more than one
139
+ * channel. Segments from all channels are merged in one list ordered by start
140
+ * time.
141
+ */
142
+ channel?: number;
143
+
144
+ /**
145
+ * Speaker indices heard in this segment. Returned by the `deepgram/*` models and
146
+ * `reson8/prerecorded` when `diarize` is enabled via `model_config`. With
147
+ * `multichannel`, speakers are numbered per channel from 0, so identify a speaker
148
+ * by (`channel`, speaker).
136
149
  */
137
150
  speakers?: Array<number>;
138
151
 
139
152
  /**
140
153
  * Word-level timing detail for this segment. Returned by the `deepgram/*` models
141
- * when word-level output is enabled via `model_config`.
154
+ * when word-level output is enabled via `model_config`, and by
155
+ * `reson8/prerecorded`.
142
156
  */
143
157
  words?: Array<AudioAPI.AudioTranscriptionResponseWord>;
144
158
  }
@@ -154,6 +168,8 @@ export interface AudioTranscribeParams {
154
168
  * English only (`en` and its regional variants, e.g. `en-US`, `en-GB`).
155
169
  * `nvidia/parakeet-v3` is multilingual with automatic language detection;
156
170
  * `omi-health/omi-med-stt-v1` is a medical model, English only.
171
+ * `reson8/prerecorded` covers 10 languages, returns word timestamps, and labels
172
+ * speakers via `model_config`.
157
173
  */
158
174
  model:
159
175
  | 'distil-whisper/distil-large-v2'
@@ -163,7 +179,8 @@ export interface AudioTranscribeParams {
163
179
  | 'deepgram/nova-3'
164
180
  | 'deepgram/nova-3-medical'
165
181
  | 'nvidia/parakeet-v3'
166
- | 'omi-health/omi-med-stt-v1';
182
+ | 'omi-health/omi-med-stt-v1'
183
+ | 'reson8/prerecorded';
167
184
 
168
185
  /**
169
186
  * The audio file object to transcribe, in one of these formats: flac, mp3, mp4,
@@ -191,16 +208,24 @@ export interface AudioTranscribeParams {
191
208
  * `openai/whisper-large-v3-turbo`, supports multiple languages.
192
209
  * `distil-whisper/distil-large-v2` does not support language parameter.
193
210
  * `nvidia/parakeet-v3` detects the language automatically;
194
- * `omi-health/omi-med-stt-v1` is English only.
211
+ * `omi-health/omi-med-stt-v1` is English only. `reson8/prerecorded` accepts `nl`,
212
+ * `en`, `fr`, `fy`, `de`, `it`, `pl`, `pt`, `es` and `sv` (regional variants are
213
+ * transcribed as the base language) and detects the language when it is omitted.
195
214
  */
196
215
  language?: string;
197
216
 
198
217
  /**
199
218
  * 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.
219
+ * `deepgram/*` models and `reson8/prerecorded`. Sent as a JSON string in multipart
220
+ * requests; for the `deepgram/*` models it is passed through to Deepgram as query
221
+ * parameters, while `reson8/prerecorded` accepts only `diarize` (speaker labels)
222
+ * and `max_speakers` (1 to 8). Any other model with `model_config` returns 400.
223
+ * Can include Deepgram-specific options such as `smart_format`, `punctuate`,
224
+ * `diarize` (speaker labels), `multichannel` (transcribe each channel
225
+ * independently; billed duration is file duration multiplied by the number of
226
+ * channels), `utterances`, `numerals`, and `language`. If `language` is provided
227
+ * both as a top-level parameter and in `model_config`, the top-level parameter
228
+ * takes precedence.
204
229
  */
205
230
  model_config?: { [key: string]: unknown };
206
231
 
@@ -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,
@@ -1210,6 +1210,12 @@ export interface ConversationRelayTranscriptionEngineConfig {
1210
1210
  [k: string]: unknown;
1211
1211
  }
1212
1212
 
1213
+ /**
1214
+ * Language to transcribe. Deepgram's medical and phonecall models support English
1215
+ * only.
1216
+ */
1217
+ export type DeepgramEnglishTranscriptionLanguage = 'en' | 'en-US' | 'en-AU' | 'en-GB' | 'en-IN' | 'en-NZ';
1218
+
1213
1219
  export interface DeepgramNova2Config {
1214
1220
  transcription_engine: 'deepgram/nova-2';
1215
1221
 
@@ -1217,8 +1223,9 @@ export interface DeepgramNova2Config {
1217
1223
 
1218
1224
  /**
1219
1225
  * Nova-2 keyword biasing without intensifiers. Up to 100 terms to bias recognition
1220
- * toward. For weighted biasing, use `keywords_boosting` instead. Nova-2-only; use
1221
- * `keyterms` on Nova-3.
1226
+ * toward. For weighted biasing, use `keywords_boosting` instead. Supported on
1227
+ * Nova-2 models only (`deepgram/nova-2`, `deepgram/nova-2-medical`,
1228
+ * `deepgram/nova-2-phonecall`); use `keyterms` on Nova-3 and Flux.
1222
1229
  */
1223
1230
  hints?: Array<string>;
1224
1231
 
@@ -1312,8 +1319,10 @@ export interface DeepgramNova3Config {
1312
1319
  interim_results?: boolean;
1313
1320
 
1314
1321
  /**
1315
- * Nova-3 keyterm prompting. Up to 100 domain-specific terms or brand names to bias
1316
- * recognition toward. Nova-3-only; use `hints` on Nova-2.
1322
+ * Keyterm prompting. Up to 100 domain-specific terms or brand names to bias
1323
+ * recognition toward. Supported on Nova-3 and Flux models (`deepgram/nova-3`,
1324
+ * `deepgram/nova-3-medical`, `deepgram/flux`, `deepgram/flux-multi`); use `hints`
1325
+ * on Nova-2.
1317
1326
  */
1318
1327
  keyterms?: Array<string>;
1319
1328
 
@@ -1771,7 +1780,11 @@ export interface TranscriptionConfig {
1771
1780
  * detection, and the language codes `nl`, `en`, `fr`, `fy`, `de`, `it`, `pl`,
1772
1781
  * `pt`, `es`, and `sv` to fix the transcription language. For `cohere/ar-stt`,
1773
1782
  * supported values are `ar` and `en`; unlike other models, this model does not
1774
- * auto-detect and defaults to `ar` when `language` is omitted.
1783
+ * auto-detect and defaults to `ar` when `language` is omitted. For
1784
+ * `speechmatics/linden-1`, there is no auto-detect; set a code from Speechmatics'
1785
+ * Realtime language list (see `SpeechmaticsTranscriptionLanguage`); unset defaults
1786
+ * to `en`, while an explicit `auto`, `auto_beta`, or `multi` is rejected (unlike
1787
+ * `speechmatics/standard`, which defaults to `en`).
1775
1788
  */
1776
1789
  language?: string;
1777
1790
 
@@ -1783,6 +1796,9 @@ export interface TranscriptionConfig {
1783
1796
  * - `deepgram/nova-3` and `deepgram/nova-2` for live streaming transcription.
1784
1797
  * - `speechmatics/standard` and `speechmatics/enhanced` for live streaming
1785
1798
  * transcription.
1799
+ * - `speechmatics/linden-1` (preview, vendor-hosted) for live streaming
1800
+ * transcription; no auto-detect, so set `language` from Speechmatics' Realtime
1801
+ * language list (defaults to `en`).
1786
1802
  * - `assemblyai/universal-3-5-pro` for live streaming transcription. The legacy
1787
1803
  * alias `assemblyai/universal-streaming` is still accepted and resolves to the
1788
1804
  * same model.
@@ -1813,6 +1829,7 @@ export interface TranscriptionConfig {
1813
1829
  | 'deepgram/nova-2'
1814
1830
  | 'speechmatics/standard'
1815
1831
  | 'speechmatics/enhanced'
1832
+ | 'speechmatics/linden-1'
1816
1833
  | 'assemblyai/universal-3-5-pro'
1817
1834
  | 'assemblyai/universal-streaming'
1818
1835
  | 'xai/grok-stt'
@@ -2060,7 +2077,183 @@ export interface TranscriptionEngineCohereConfig {
2060
2077
  transcription_model?: 'cohere/ar-stt';
2061
2078
  }
2062
2079
 
2063
- export type TranscriptionEngineDeepgramConfig = DeepgramNova2Config | DeepgramNova3Config;
2080
+ /**
2081
+ * Deepgram Nova-2 specialty models: `deepgram/nova-2-medical` (medical vocabulary)
2082
+ * and `deepgram/nova-2-phonecall` (low-bandwidth phone audio). English only.
2083
+ */
2084
+ export type TranscriptionEngineDeepgramConfig =
2085
+ | DeepgramNova2Config
2086
+ | TranscriptionEngineDeepgramConfig.DeepgramNova2SpecialtyConfig
2087
+ | DeepgramNova3Config
2088
+ | TranscriptionEngineDeepgramConfig.DeepgramNova3MedicalConfig
2089
+ | TranscriptionEngineDeepgramConfig.DeepgramFluxConfig
2090
+ | TranscriptionEngineDeepgramConfig.DeepgramFluxMultiConfig;
2091
+
2092
+ export namespace TranscriptionEngineDeepgramConfig {
2093
+ /**
2094
+ * Deepgram Nova-2 specialty models: `deepgram/nova-2-medical` (medical vocabulary)
2095
+ * and `deepgram/nova-2-phonecall` (low-bandwidth phone audio). English only.
2096
+ */
2097
+ export interface DeepgramNova2SpecialtyConfig {
2098
+ transcription_engine: 'Deepgram';
2099
+
2100
+ transcription_model: 'deepgram/nova-2-medical' | 'deepgram/nova-2-phonecall';
2101
+
2102
+ /**
2103
+ * Nova-2 keyword biasing without intensifiers. Up to 100 terms to bias recognition
2104
+ * toward. For weighted biasing, use `keywords_boosting` instead. Supported on
2105
+ * Nova-2 models only (`deepgram/nova-2`, `deepgram/nova-2-medical`,
2106
+ * `deepgram/nova-2-phonecall`); use `keyterms` on Nova-3 and Flux.
2107
+ */
2108
+ hints?: Array<string>;
2109
+
2110
+ /**
2111
+ * Whether to send also interim results. If set to false, only final results will
2112
+ * be sent.
2113
+ */
2114
+ interim_results?: boolean;
2115
+
2116
+ /**
2117
+ * Keywords and their respective intensifiers (boosting values) to improve
2118
+ * transcription accuracy for specific words or phrases. The intensifier should be
2119
+ * a numeric value. Example: `{"snuffleupagus": 5, "systrom": 2, "krieger": 1}`.
2120
+ */
2121
+ keywords_boosting?: { [key: string]: number };
2122
+
2123
+ /**
2124
+ * Language to transcribe. Deepgram's medical and phonecall models support English
2125
+ * only.
2126
+ */
2127
+ language?: ActionsAPI.DeepgramEnglishTranscriptionLanguage;
2128
+
2129
+ /**
2130
+ * Enable Deepgram's smart formatting (capitalization, punctuation, and digit
2131
+ * normalization). Note: Telnyx defaults this to `true`, overriding Deepgram's
2132
+ * underlying default of `false` — omit the field to get a smart-formatted
2133
+ * transcript, or set it to `false` to receive the raw lowercase transcript without
2134
+ * punctuation.
2135
+ */
2136
+ smart_format?: boolean;
2137
+
2138
+ /**
2139
+ * Number of milliseconds of silence to consider an utterance ended. Ranges from 0
2140
+ * to 5000 ms.
2141
+ */
2142
+ utterance_end_ms?: number;
2143
+ }
2144
+
2145
+ /**
2146
+ * Deepgram Nova-3 medical model, tuned for medical vocabulary. English only.
2147
+ */
2148
+ export interface DeepgramNova3MedicalConfig {
2149
+ transcription_engine: 'Deepgram';
2150
+
2151
+ transcription_model: 'deepgram/nova-3-medical';
2152
+
2153
+ /**
2154
+ * Whether to send also interim results. If set to false, only final results will
2155
+ * be sent.
2156
+ */
2157
+ interim_results?: boolean;
2158
+
2159
+ /**
2160
+ * Keyterm prompting. Up to 100 domain-specific terms or brand names to bias
2161
+ * recognition toward. Supported on Nova-3 and Flux models (`deepgram/nova-3`,
2162
+ * `deepgram/nova-3-medical`, `deepgram/flux`, `deepgram/flux-multi`); use `hints`
2163
+ * on Nova-2.
2164
+ */
2165
+ keyterms?: Array<string>;
2166
+
2167
+ /**
2168
+ * Keywords and their respective intensifiers (boosting values) to improve
2169
+ * transcription accuracy for specific words or phrases. The intensifier should be
2170
+ * a numeric value. Example: `{"snuffleupagus": 5, "systrom": 2, "krieger": 1}`.
2171
+ */
2172
+ keywords_boosting?: { [key: string]: number };
2173
+
2174
+ /**
2175
+ * Language to transcribe. Deepgram's medical and phonecall models support English
2176
+ * only.
2177
+ */
2178
+ language?: ActionsAPI.DeepgramEnglishTranscriptionLanguage;
2179
+
2180
+ /**
2181
+ * Enable Deepgram's smart formatting (capitalization, punctuation, and digit
2182
+ * normalization). Note: Telnyx defaults this to `true`, overriding Deepgram's
2183
+ * underlying default of `false` — omit the field to get a smart-formatted
2184
+ * transcript, or set it to `false` to receive the raw lowercase transcript without
2185
+ * punctuation.
2186
+ */
2187
+ smart_format?: boolean;
2188
+
2189
+ /**
2190
+ * Number of milliseconds of silence to consider an utterance ended. Ranges from 0
2191
+ * to 5000 ms.
2192
+ */
2193
+ utterance_end_ms?: number;
2194
+ }
2195
+
2196
+ /**
2197
+ * Deepgram Flux (English), a conversational speech recognition model with built-in
2198
+ * end-of-turn detection. `smart_format`, `utterance_end_ms`, `hints` and
2199
+ * `keywords_boosting` do not apply to Flux.
2200
+ */
2201
+ export interface DeepgramFluxConfig {
2202
+ transcription_engine: 'Deepgram';
2203
+
2204
+ transcription_model: 'deepgram/flux';
2205
+
2206
+ /**
2207
+ * Whether to send also interim results. If set to false, only final results will
2208
+ * be sent.
2209
+ */
2210
+ interim_results?: boolean;
2211
+
2212
+ /**
2213
+ * Keyterm prompting. Up to 100 domain-specific terms or brand names to bias
2214
+ * recognition toward. Supported on Nova-3 and Flux models (`deepgram/nova-3`,
2215
+ * `deepgram/nova-3-medical`, `deepgram/flux`, `deepgram/flux-multi`); use `hints`
2216
+ * on Nova-2.
2217
+ */
2218
+ keyterms?: Array<string>;
2219
+
2220
+ /**
2221
+ * Language to transcribe. `deepgram/flux` supports English only.
2222
+ */
2223
+ language?: 'en';
2224
+ }
2225
+
2226
+ /**
2227
+ * Deepgram Flux multilingual, a conversational speech recognition model with
2228
+ * built-in end-of-turn detection. `smart_format`, `utterance_end_ms`, `hints` and
2229
+ * `keywords_boosting` do not apply to Flux.
2230
+ */
2231
+ export interface DeepgramFluxMultiConfig {
2232
+ transcription_engine: 'Deepgram';
2233
+
2234
+ transcription_model: 'deepgram/flux-multi';
2235
+
2236
+ /**
2237
+ * Whether to send also interim results. If set to false, only final results will
2238
+ * be sent.
2239
+ */
2240
+ interim_results?: boolean;
2241
+
2242
+ /**
2243
+ * Keyterm prompting. Up to 100 domain-specific terms or brand names to bias
2244
+ * recognition toward. Supported on Nova-3 and Flux models (`deepgram/nova-3`,
2245
+ * `deepgram/nova-3-medical`, `deepgram/flux`, `deepgram/flux-multi`); use `hints`
2246
+ * on Nova-2.
2247
+ */
2248
+ keyterms?: Array<string>;
2249
+
2250
+ /**
2251
+ * Language to transcribe. Flux-multi uses the language as a hint; `auto` lets Flux
2252
+ * detect the language.
2253
+ */
2254
+ language?: 'en' | 'es' | 'fr' | 'de' | 'hi' | 'ru' | 'pt' | 'ja' | 'it' | 'nl' | 'auto';
2255
+ }
2256
+ }
2064
2257
 
2065
2258
  export interface TranscriptionEngineGoogleConfig {
2066
2259
  /**
@@ -2237,7 +2430,21 @@ export interface TranscriptionEngineSpeechmaticsConfig {
2237
2430
  interim_results?: boolean;
2238
2431
 
2239
2432
  /**
2240
- * Language to use for speech recognition
2433
+ * Language to use for speech recognition. Accepted values depend on the selected
2434
+ * `transcription_model`. `speechmatics/standard` supports: `en`, `ba`, `eu`, `gl`,
2435
+ * `ga`, `mt`, `mn`, `sw`, `ug`, `cy`, `ar_en`, `cmn_en`, `en_ms`, `en_ta`, `tl`,
2436
+ * `es-bilingual-en`, `cmn_en_ms_ta`. `speechmatics/linden-1` (preview) supports
2437
+ * the same languages as Speechmatics Realtime: `ar`, `ar_en`, `ba`, `be`, `bg`,
2438
+ * `bn`, `ca`, `cmn`, `cmn_en`, `cmn_en_ms_ta`, `cs`, `cy`, `da`, `de`, `el`, `en`,
2439
+ * `en_ms`, `en_ta`, `eo`, `es`, `es-bilingual-en`, `et`, `eu`, `fa`, `fi`, `fr`,
2440
+ * `ga`, `gl`, `he`, `hi`, `hr`, `hu`, `ia`, `id`, `it`, `ja`, `ko`, `lt`, `lv`,
2441
+ * `mn`, `mr`, `ms`, `mt`, `nl`, `no`, `pl`, `pt`, `ro`, `ru`, `sk`, `sl`, `sv`,
2442
+ * `sw`, `ta`, `th`, `tl`, `tr`, `ug`, `uk`, `ur`, `vi`, `yue`, plus the spelling
2443
+ * and script variants `en-US`, `en-GB`, `en-AU`, `cmn-Hans`, and `cmn-Hant` (`en`
2444
+ * alone uses the default spelling). A value outside the selected model's list is
2445
+ * rejected. For `speechmatics/standard`, unset, blank, `auto`, `auto_beta`, or
2446
+ * `multi` defaults to `en`; for `speechmatics/linden-1`, only an unset language
2447
+ * defaults to `en`, and `auto`, `auto_beta`, or `multi` is rejected.
2241
2448
  */
2242
2449
  language?:
2243
2450
  | 'en'
@@ -2256,7 +2463,57 @@ export interface TranscriptionEngineSpeechmaticsConfig {
2256
2463
  | 'en_ta'
2257
2464
  | 'tl'
2258
2465
  | 'es-bilingual-en'
2259
- | 'cmn_en_ms_ta';
2466
+ | 'cmn_en_ms_ta'
2467
+ | 'ar'
2468
+ | 'be'
2469
+ | 'bg'
2470
+ | 'bn'
2471
+ | 'ca'
2472
+ | 'cmn'
2473
+ | 'cs'
2474
+ | 'da'
2475
+ | 'de'
2476
+ | 'el'
2477
+ | 'eo'
2478
+ | 'es'
2479
+ | 'et'
2480
+ | 'fa'
2481
+ | 'fi'
2482
+ | 'fr'
2483
+ | 'he'
2484
+ | 'hi'
2485
+ | 'hr'
2486
+ | 'hu'
2487
+ | 'ia'
2488
+ | 'id'
2489
+ | 'it'
2490
+ | 'ja'
2491
+ | 'ko'
2492
+ | 'lt'
2493
+ | 'lv'
2494
+ | 'mr'
2495
+ | 'ms'
2496
+ | 'nl'
2497
+ | 'no'
2498
+ | 'pl'
2499
+ | 'pt'
2500
+ | 'ro'
2501
+ | 'ru'
2502
+ | 'sk'
2503
+ | 'sl'
2504
+ | 'sv'
2505
+ | 'ta'
2506
+ | 'th'
2507
+ | 'tr'
2508
+ | 'uk'
2509
+ | 'ur'
2510
+ | 'vi'
2511
+ | 'yue'
2512
+ | 'en-US'
2513
+ | 'en-GB'
2514
+ | 'en-AU'
2515
+ | 'cmn-Hans'
2516
+ | 'cmn-Hant';
2260
2517
 
2261
2518
  /**
2262
2519
  * Engine identifier for Speechmatics transcription service
@@ -2264,9 +2521,10 @@ export interface TranscriptionEngineSpeechmaticsConfig {
2264
2521
  transcription_engine?: 'Speechmatics';
2265
2522
 
2266
2523
  /**
2267
- * The model to use for transcription.
2524
+ * The model to use for transcription. `speechmatics/linden-1` is a preview,
2525
+ * vendor-hosted model with its own language support (see `language`).
2268
2526
  */
2269
- transcription_model?: 'speechmatics/standard';
2527
+ transcription_model?: 'speechmatics/standard' | 'speechmatics/linden-1';
2270
2528
  }
2271
2529
 
2272
2530
  export interface TranscriptionEngineTelnyxConfig {
@@ -3695,6 +3953,18 @@ export interface ActionHangupParams {
3695
3953
  * Custom headers to be added to the SIP BYE message.
3696
3954
  */
3697
3955
  custom_headers?: Array<CallsAPI.CustomSipHeader>;
3956
+
3957
+ /**
3958
+ * Text for the SIP `Reason` header (RFC 3326) sent when cancelling an unanswered
3959
+ * outbound leg. The SIP CANCEL carries `Reason: SIP;cause=200;text="<reason>"`;
3960
+ * phones such as Poly and Yealink use it to suppress the missed-call entry for a
3961
+ * call answered elsewhere. Has no effect on an answered leg or an inbound leg. A
3962
+ * hangup sent before the leg's `call.initiated` webhook still hangs up the leg,
3963
+ * but without the `Reason` header. Must not contain `"`, `\`, control characters,
3964
+ * or characters outside the Basic Multilingual Plane (such as emoji); invalid
3965
+ * values are rejected with a 422.
3966
+ */
3967
+ reason?: string;
3698
3968
  }
3699
3969
 
3700
3970
  export interface ActionLeaveQueueParams {
@@ -5777,6 +6047,7 @@ export declare namespace Actions {
5777
6047
  type CallControlCommandResultWithConversationID as CallControlCommandResultWithConversationID,
5778
6048
  type ConversationRelayInterruptible as ConversationRelayInterruptible,
5779
6049
  type ConversationRelayTranscriptionEngineConfig as ConversationRelayTranscriptionEngineConfig,
6050
+ type DeepgramEnglishTranscriptionLanguage as DeepgramEnglishTranscriptionLanguage,
5780
6051
  type DeepgramNova2Config as DeepgramNova2Config,
5781
6052
  type DeepgramNova3Config as DeepgramNova3Config,
5782
6053
  type DeveloperMessage as DeveloperMessage,
@@ -94,6 +94,7 @@ import {
94
94
  CallControlCommandResultWithConversationID,
95
95
  ConversationRelayInterruptible,
96
96
  ConversationRelayTranscriptionEngineConfig,
97
+ DeepgramEnglishTranscriptionLanguage,
97
98
  DeepgramNova2Config,
98
99
  DeepgramNova3Config,
99
100
  DeveloperMessage,
@@ -1659,6 +1660,7 @@ export declare namespace Calls {
1659
1660
  type CallControlCommandResultWithConversationID as CallControlCommandResultWithConversationID,
1660
1661
  type ConversationRelayInterruptible as ConversationRelayInterruptible,
1661
1662
  type ConversationRelayTranscriptionEngineConfig as ConversationRelayTranscriptionEngineConfig,
1663
+ type DeepgramEnglishTranscriptionLanguage as DeepgramEnglishTranscriptionLanguage,
1662
1664
  type DeepgramNova2Config as DeepgramNova2Config,
1663
1665
  type DeepgramNova3Config as DeepgramNova3Config,
1664
1666
  type DeveloperMessage as DeveloperMessage,
@@ -9,6 +9,7 @@ export {
9
9
  type CallControlCommandResultWithConversationID,
10
10
  type ConversationRelayInterruptible,
11
11
  type ConversationRelayTranscriptionEngineConfig,
12
+ type DeepgramEnglishTranscriptionLanguage,
12
13
  type DeepgramNova2Config,
13
14
  type DeepgramNova3Config,
14
15
  type DeveloperMessage,