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
@@ -22,7 +22,9 @@ export class Queues extends APIResource {
22
22
  * @example
23
23
  * ```ts
24
24
  * const queueResource =
25
- * await client.texml.accounts.queues.create('account_sid');
25
+ * await client.texml.accounts.queues.create(
26
+ * 'f5586561-8ff0-4291-a51b-c7dfe4139ff9',
27
+ * );
26
28
  * ```
27
29
  */
28
30
  create(accountSid: string, body: QueueCreateParams, options?: RequestOptions): APIPromise<QueueResource> {
@@ -39,7 +41,7 @@ export class Queues extends APIResource {
39
41
  * @example
40
42
  * ```ts
41
43
  * await client.texml.accounts.queues.delete('queue_sid', {
42
- * account_sid: 'account_sid',
44
+ * account_sid: 'f5586561-8ff0-4291-a51b-c7dfe4139ff9',
43
45
  * });
44
46
  * ```
45
47
  */
@@ -58,7 +60,7 @@ export class Queues extends APIResource {
58
60
  * ```ts
59
61
  * const queueResource =
60
62
  * await client.texml.accounts.queues.retrieve('queue_sid', {
61
- * account_sid: 'account_sid',
63
+ * account_sid: 'f5586561-8ff0-4291-a51b-c7dfe4139ff9',
62
64
  * });
63
65
  * ```
64
66
  */
@@ -78,7 +80,7 @@ export class Queues extends APIResource {
78
80
  * ```ts
79
81
  * const queueResource =
80
82
  * await client.texml.accounts.queues.update('queue_sid', {
81
- * account_sid: 'account_sid',
83
+ * account_sid: 'f5586561-8ff0-4291-a51b-c7dfe4139ff9',
82
84
  * });
83
85
  * ```
84
86
  */
@@ -99,7 +101,7 @@ export class Queues extends APIResource {
99
101
  * ```ts
100
102
  * // Automatically fetches more pages as needed.
101
103
  * for await (const queueResource of client.texml.accounts.queues.list(
102
- * 'account_sid',
104
+ * 'f5586561-8ff0-4291-a51b-c7dfe4139ff9',
103
105
  * )) {
104
106
  * // ...
105
107
  * }
@@ -181,21 +183,36 @@ export interface QueueCreateParams {
181
183
 
182
184
  export interface QueueDeleteParams {
183
185
  /**
184
- * The id of the account the resource belongs to.
186
+ * The UUID of the Telnyx account that owns the resource, for example
187
+ * `f5586561-8ff0-4291-a51b-c7dfe4139ff9`. The `account_sid` path segment is kept
188
+ * for Twilio API compatibility, but the value is a Telnyx account UUID, not a
189
+ * Twilio `AC...` SID. It must match the account that owns the API key used to
190
+ * authenticate the request, otherwise the endpoint returns `404`. The same value
191
+ * is sent as `AccountSid` in TeXML webhooks.
185
192
  */
186
193
  account_sid: string;
187
194
  }
188
195
 
189
196
  export interface QueueRetrieveParams {
190
197
  /**
191
- * The id of the account the resource belongs to.
198
+ * The UUID of the Telnyx account that owns the resource, for example
199
+ * `f5586561-8ff0-4291-a51b-c7dfe4139ff9`. The `account_sid` path segment is kept
200
+ * for Twilio API compatibility, but the value is a Telnyx account UUID, not a
201
+ * Twilio `AC...` SID. It must match the account that owns the API key used to
202
+ * authenticate the request, otherwise the endpoint returns `404`. The same value
203
+ * is sent as `AccountSid` in TeXML webhooks.
192
204
  */
193
205
  account_sid: string;
194
206
  }
195
207
 
196
208
  export interface QueueUpdateParams {
197
209
  /**
198
- * Path param: The id of the account the resource belongs to.
210
+ * Path param: The UUID of the Telnyx account that owns the resource, for example
211
+ * `f5586561-8ff0-4291-a51b-c7dfe4139ff9`. The `account_sid` path segment is kept
212
+ * for Twilio API compatibility, but the value is a Telnyx account UUID, not a
213
+ * Twilio `AC...` SID. It must match the account that owns the API key used to
214
+ * authenticate the request, otherwise the endpoint returns `404`. The same value
215
+ * is sent as `AccountSid` in TeXML webhooks.
199
216
  */
200
217
  account_sid: string;
201
218
 
@@ -18,7 +18,7 @@ export class Json extends APIResource {
18
18
  * ```ts
19
19
  * await client.texml.accounts.recordings.json.deleteRecordingSidJson(
20
20
  * '6a09cdc3-8948-47f0-aa62-74ac943d6c58',
21
- * { account_sid: 'account_sid' },
21
+ * { account_sid: 'f5586561-8ff0-4291-a51b-c7dfe4139ff9' },
22
22
  * );
23
23
  * ```
24
24
  */
@@ -42,7 +42,7 @@ export class Json extends APIResource {
42
42
  * const texmlGetCallRecordingResponseBody =
43
43
  * await client.texml.accounts.recordings.json.retrieveRecordingSidJson(
44
44
  * '6a09cdc3-8948-47f0-aa62-74ac943d6c58',
45
- * { account_sid: 'account_sid' },
45
+ * { account_sid: 'f5586561-8ff0-4291-a51b-c7dfe4139ff9' },
46
46
  * );
47
47
  * ```
48
48
  */
@@ -58,14 +58,24 @@ export class Json extends APIResource {
58
58
 
59
59
  export interface JsonDeleteRecordingSidJsonParams {
60
60
  /**
61
- * The id of the account the resource belongs to.
61
+ * The UUID of the Telnyx account that owns the resource, for example
62
+ * `f5586561-8ff0-4291-a51b-c7dfe4139ff9`. The `account_sid` path segment is kept
63
+ * for Twilio API compatibility, but the value is a Telnyx account UUID, not a
64
+ * Twilio `AC...` SID. It must match the account that owns the API key used to
65
+ * authenticate the request, otherwise the endpoint returns `404`. The same value
66
+ * is sent as `AccountSid` in TeXML webhooks.
62
67
  */
63
68
  account_sid: string;
64
69
  }
65
70
 
66
71
  export interface JsonRetrieveRecordingSidJsonParams {
67
72
  /**
68
- * The id of the account the resource belongs to.
73
+ * The UUID of the Telnyx account that owns the resource, for example
74
+ * `f5586561-8ff0-4291-a51b-c7dfe4139ff9`. The `account_sid` path segment is kept
75
+ * for Twilio API compatibility, but the value is a Telnyx account UUID, not a
76
+ * Twilio `AC...` SID. It must match the account that owns the API key used to
77
+ * authenticate the request, otherwise the endpoint returns `404`. The same value
78
+ * is sent as `AccountSid` in TeXML webhooks.
69
79
  */
70
80
  account_sid: string;
71
81
  }
@@ -17,7 +17,7 @@ export class Json extends APIResource {
17
17
  * ```ts
18
18
  * await client.texml.accounts.transcriptions.json.deleteRecordingTranscriptionSidJson(
19
19
  * '6a09cdc3-8948-47f0-aa62-74ac943d6c58',
20
- * { account_sid: 'account_sid' },
20
+ * { account_sid: 'f5586561-8ff0-4291-a51b-c7dfe4139ff9' },
21
21
  * );
22
22
  * ```
23
23
  */
@@ -41,7 +41,7 @@ export class Json extends APIResource {
41
41
  * const texmlRecordingTranscription =
42
42
  * await client.texml.accounts.transcriptions.json.retrieveRecordingTranscriptionSidJson(
43
43
  * '6a09cdc3-8948-47f0-aa62-74ac943d6c58',
44
- * { account_sid: 'account_sid' },
44
+ * { account_sid: 'f5586561-8ff0-4291-a51b-c7dfe4139ff9' },
45
45
  * );
46
46
  * ```
47
47
  */
@@ -106,14 +106,24 @@ export interface TexmlRecordingTranscription {
106
106
 
107
107
  export interface JsonDeleteRecordingTranscriptionSidJsonParams {
108
108
  /**
109
- * The id of the account the resource belongs to.
109
+ * The UUID of the Telnyx account that owns the resource, for example
110
+ * `f5586561-8ff0-4291-a51b-c7dfe4139ff9`. The `account_sid` path segment is kept
111
+ * for Twilio API compatibility, but the value is a Telnyx account UUID, not a
112
+ * Twilio `AC...` SID. It must match the account that owns the API key used to
113
+ * authenticate the request, otherwise the endpoint returns `404`. The same value
114
+ * is sent as `AccountSid` in TeXML webhooks.
110
115
  */
111
116
  account_sid: string;
112
117
  }
113
118
 
114
119
  export interface JsonRetrieveRecordingTranscriptionSidJsonParams {
115
120
  /**
116
- * The id of the account the resource belongs to.
121
+ * The UUID of the Telnyx account that owns the resource, for example
122
+ * `f5586561-8ff0-4291-a51b-c7dfe4139ff9`. The `account_sid` path segment is kept
123
+ * for Twilio API compatibility, but the value is a Telnyx account UUID, not a
124
+ * Twilio `AC...` SID. It must match the account that owns the API key used to
125
+ * authenticate the request, otherwise the endpoint returns `404`. The same value
126
+ * is sent as `AccountSid` in TeXML webhooks.
117
127
  */
118
128
  account_sid: string;
119
129
  }
@@ -410,7 +410,10 @@ export interface TextToSpeechGenerateSpeechParams {
410
410
  /**
411
411
  * Telnyx provider-specific parameters. For the `Ultra` model, use `voice_speed`,
412
412
  * `volume`, and `emotion`. `Bayan` and `Sukhan` don't use `temperature`, `volume`,
413
- * or `emotion`, and don't support `voice_speed`. `Sukhan`'s `response_format` is
413
+ * or `emotion`. `Bayan` accepts `voice_speed` from 0.5 to 2.0; `Sukhan` doesn't
414
+ * support it. `Bayan` synthesizes at a native 16 kHz: `sampling_rate` `8000`,
415
+ * `22050`, or `24000` is resampled, needs `response_format: pcm`, and isn't
416
+ * available with `output_type: audio_id`. `Sukhan`'s `response_format` is
414
417
  * restricted to `mp3` or `pcm` (no `wav`).
415
418
  */
416
419
  telnyx?: TextToSpeechGenerateSpeechParams.Telnyx;
@@ -662,7 +665,10 @@ export namespace TextToSpeechGenerateSpeechParams {
662
665
  /**
663
666
  * Telnyx provider-specific parameters. For the `Ultra` model, use `voice_speed`,
664
667
  * `volume`, and `emotion`. `Bayan` and `Sukhan` don't use `temperature`, `volume`,
665
- * or `emotion`, and don't support `voice_speed`. `Sukhan`'s `response_format` is
668
+ * or `emotion`. `Bayan` accepts `voice_speed` from 0.5 to 2.0; `Sukhan` doesn't
669
+ * support it. `Bayan` synthesizes at a native 16 kHz: `sampling_rate` `8000`,
670
+ * `22050`, or `24000` is resampled, needs `response_format: pcm`, and isn't
671
+ * available with `output_type: audio_id`. `Sukhan`'s `response_format` is
666
672
  * restricted to `mp3` or `pcm` (no `wav`).
667
673
  */
668
674
  export interface Telnyx {
@@ -678,15 +684,18 @@ export namespace TextToSpeechGenerateSpeechParams {
678
684
  response_format?: string;
679
685
 
680
686
  /**
681
- * Audio sampling rate in Hz.
687
+ * Audio sampling rate in Hz. `Bayan` ignores the default and synthesizes at its
688
+ * native 16 kHz unless `8000`, `22050`, or `24000` is set explicitly with
689
+ * `response_format: pcm`. Resampled rates aren't available with
690
+ * `output_type: audio_id`.
682
691
  */
683
692
  sampling_rate?: number;
684
693
 
685
694
  /**
686
695
  * Voice speed multiplier. Telnyx `Ultra` voices accept values from 0.6 to 1.5 —
687
- * requests outside that range are rejected by the synthesis engine. `KokoroTTS`
688
- * and `Qwen3TTS` accept the field but do not apply it. `Bayan` and `Sukhan` don't
689
- * support it.
696
+ * requests outside that range are rejected by the synthesis engine. `Bayan`
697
+ * accepts values from 0.5 to 2.0. `KokoroTTS` and `Qwen3TTS` accept the field but
698
+ * do not apply it. `Sukhan` doesn't support it.
690
699
  */
691
700
  voice_speed?: number;
692
701
 
@@ -0,0 +1,5 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../core/resource';
4
+
5
+ export class Actions extends APIResource {}
@@ -0,0 +1,4 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export { Actions } from './actions';
4
+ export { TtsIntegrations } from './tts-integrations';
@@ -0,0 +1,15 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../core/resource';
4
+ import * as ActionsAPI from './actions';
5
+ import { Actions } from './actions';
6
+
7
+ export class TtsIntegrations extends APIResource {
8
+ actions: ActionsAPI.Actions = new ActionsAPI.Actions(this._client);
9
+ }
10
+
11
+ TtsIntegrations.Actions = Actions;
12
+
13
+ export declare namespace TtsIntegrations {
14
+ export { Actions as Actions };
15
+ }
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export * from './tts-integrations/index';
@@ -141,6 +141,17 @@ export interface UacConnection {
141
141
  */
142
142
  authentication?: 'uac-authentication';
143
143
 
144
+ /**
145
+ * Stores the connection preference for generating silent RTP toward the opposite
146
+ * call leg when comfort-noise packets (CN, payload type 13) are received during
147
+ * hold. Defaults to false and returns the saved value. Only JSON true and false
148
+ * are accepted; null and non-boolean values are rejected. This preference is
149
+ * independent of default_on_hold_comfort_noise_enabled and does not modify that
150
+ * setting. This API provisions the preference; call-processing behavior is
151
+ * implemented separately.
152
+ */
153
+ bridge_generate_comfort_noise_on_cn?: boolean;
154
+
144
155
  /**
145
156
  * Specifies if call cost webhooks should be sent for this connection.
146
157
  */
@@ -173,8 +184,8 @@ export interface UacConnection {
173
184
  encode_contact_header_enabled?: boolean;
174
185
 
175
186
  /**
176
- * Enable use of SRTP for encryption. Cannot be set if the transport_portocol is
177
- * TLS.
187
+ * Enable use of SRTP for encryption. Can only be set when the SIP signaling
188
+ * transport protocol is TLS.
178
189
  */
179
190
  encrypted_media?: CredentialConnectionsAPI.EncryptedMedia | null;
180
191
 
@@ -769,6 +780,17 @@ export interface UacConnectionCreateParams {
769
780
  */
770
781
  android_push_credential_id?: string | null;
771
782
 
783
+ /**
784
+ * Stores the connection preference for generating silent RTP toward the opposite
785
+ * call leg when comfort-noise packets (CN, payload type 13) are received during
786
+ * hold. Optional; defaults to false when omitted on creation. Only JSON true and
787
+ * false are accepted; null and non-boolean values are rejected. This preference is
788
+ * independent of default_on_hold_comfort_noise_enabled and does not modify that
789
+ * setting. This API provisions the preference; call-processing behavior is
790
+ * implemented separately.
791
+ */
792
+ bridge_generate_comfort_noise_on_cn?: boolean;
793
+
772
794
  /**
773
795
  * Specifies if call cost webhooks should be sent for this connection.
774
796
  */
@@ -794,8 +816,8 @@ export interface UacConnectionCreateParams {
794
816
  encode_contact_header_enabled?: boolean;
795
817
 
796
818
  /**
797
- * Enable use of SRTP for encryption. Cannot be set if the transport_portocol is
798
- * TLS.
819
+ * Enable use of SRTP for encryption. Can only be set when the SIP signaling
820
+ * transport protocol is TLS.
799
821
  */
800
822
  encrypted_media?: CredentialConnectionsAPI.EncryptedMedia | null;
801
823
 
@@ -927,6 +949,17 @@ export interface UacConnectionUpdateParams {
927
949
  */
928
950
  android_push_credential_id?: string | null;
929
951
 
952
+ /**
953
+ * Stores the connection preference for generating silent RTP toward the opposite
954
+ * call leg when comfort-noise packets (CN, payload type 13) are received during
955
+ * hold. Optional; omitting this field preserves the saved value. Only JSON true
956
+ * and false are accepted; null and non-boolean values are rejected. This
957
+ * preference is independent of default_on_hold_comfort_noise_enabled and does not
958
+ * modify that setting. This API provisions the preference; call-processing
959
+ * behavior is implemented separately.
960
+ */
961
+ bridge_generate_comfort_noise_on_cn?: boolean;
962
+
930
963
  /**
931
964
  * Specifies if call cost webhooks should be sent for this connection.
932
965
  */
@@ -957,8 +990,8 @@ export interface UacConnectionUpdateParams {
957
990
  encode_contact_header_enabled?: boolean;
958
991
 
959
992
  /**
960
- * Enable use of SRTP for encryption. Cannot be set if the transport_portocol is
961
- * TLS.
993
+ * Enable use of SRTP for encryption. Can only be set when the SIP signaling
994
+ * transport protocol is TLS.
962
995
  */
963
996
  encrypted_media?: CredentialConnectionsAPI.EncryptedMedia | null;
964
997
 
@@ -58,10 +58,12 @@ export class VoiceClones extends APIResource {
58
58
 
59
59
  /**
60
60
  * Creates a new voice clone by uploading an audio file directly. Supported
61
- * formats: WAV, MP3, FLAC, OGG, M4A. For best results, provide 5–60 seconds of
62
- * clear speech (Ultra accepts up to 60 seconds; Qwen3TTS auto-trims to 10 seconds;
63
- * Minimax accepts up to 5 minutes). Maximum file size: 5MB for Telnyx, 20MB for
64
- * Minimax.
61
+ * formats: WAV, MP3, FLAC, OGG, M4A. Maximum file size: 20MB. Reference audio is
62
+ * trimmed per model: Qwen3TTS and Bayan use the first 10 seconds, Ultra uses up to
63
+ * 60 seconds, and Minimax accepts 10 seconds to 5 minutes. Ultra clones return
64
+ * `202` with status `pending`; all other models return `201` with status `active`.
65
+ * Bayan clones require `ref_text` (the exact transcript of the reference audio)
66
+ * and support `ar` (default) and `en` only.
65
67
  *
66
68
  * @example
67
69
  * ```ts
@@ -177,7 +179,7 @@ export interface VoiceCloneData {
177
179
  /**
178
180
  * TTS model identifier for the voice clone.
179
181
  */
180
- model_id?: 'Qwen3TTS' | 'Ultra' | 'speech-2.8-turbo';
182
+ model_id?: 'Qwen3TTS' | 'Ultra' | 'Bayan' | 'speech-2.8-turbo';
181
183
 
182
184
  /**
183
185
  * Name of the voice clone.
@@ -352,11 +354,12 @@ export namespace VoiceCloneCreateParams {
352
354
  export interface VoiceCloneCreateFromUploadParams {
353
355
  /**
354
356
  * Multipart form data for creating a voice clone from a direct audio upload.
355
- * Maximum file size: 5MB for Telnyx, 20MB for Minimax.
357
+ * Maximum file size: 20MB.
356
358
  */
357
359
  voice_clone_upload_request:
358
360
  | VoiceCloneCreateFromUploadParams.TelnyxQwen3TtsClone
359
361
  | VoiceCloneCreateFromUploadParams.TelnyxUltraClone
362
+ | VoiceCloneCreateFromUploadParams.TelnyxBayanClone
360
363
  | VoiceCloneCreateFromUploadParams.MinimaxClone;
361
364
  }
362
365
 
@@ -368,7 +371,7 @@ export namespace VoiceCloneCreateFromUploadParams {
368
371
  /**
369
372
  * Audio file to clone the voice from. Supported formats: WAV, MP3, FLAC, OGG, M4A.
370
373
  * For best quality, provide 5–10 seconds of clear, uninterrupted speech. Maximum
371
- * size: 5MB.
374
+ * size: 20MB.
372
375
  */
373
376
  audio_file: Uploadable;
374
377
 
@@ -415,7 +418,7 @@ export namespace VoiceCloneCreateFromUploadParams {
415
418
  /**
416
419
  * Audio file to clone the voice from. Supported formats: WAV, MP3, FLAC, OGG, M4A.
417
420
  * For best quality, provide up to 60 seconds of clear, uninterrupted speech.
418
- * Maximum size: 5MB.
421
+ * Maximum size: 20MB.
419
422
  */
420
423
  audio_file: Uploadable;
421
424
 
@@ -425,7 +428,7 @@ export namespace VoiceCloneCreateFromUploadParams {
425
428
  gender: 'male' | 'female' | 'neutral';
426
429
 
427
430
  /**
428
- * ISO 639-1 language code from the Ultra language set (40 languages).
431
+ * ISO 639-1 language code from the Ultra language set (42 languages).
429
432
  */
430
433
  language: string;
431
434
 
@@ -455,6 +458,59 @@ export namespace VoiceCloneCreateFromUploadParams {
455
458
  ref_text?: string;
456
459
  }
457
460
 
461
+ /**
462
+ * Upload-based voice clone using the Telnyx Bayan model (Arabic and English). The
463
+ * clone is `active` on creation. Use it as voice `Telnyx.Bayan.<clone_id>`.
464
+ */
465
+ export interface TelnyxBayanClone {
466
+ /**
467
+ * Audio file to clone the voice from. Supported formats: WAV, MP3, FLAC, OGG, M4A.
468
+ * Converted to 24 kHz mono WAV and trimmed to the first 10 seconds. For best
469
+ * quality, provide about 10 seconds of clean, single-speaker speech. Maximum size:
470
+ * 20MB.
471
+ */
472
+ audio_file: Uploadable;
473
+
474
+ /**
475
+ * Gender of the voice clone.
476
+ */
477
+ gender: 'male' | 'female' | 'neutral';
478
+
479
+ /**
480
+ * TTS model identifier. Must be `Bayan`.
481
+ */
482
+ model_id: 'Bayan';
483
+
484
+ /**
485
+ * Name for the voice clone.
486
+ */
487
+ name: string;
488
+
489
+ /**
490
+ * Exact transcript of the reference audio. Required for Bayan: a missing, empty,
491
+ * or whitespace-only value returns `422` with `source.pointer` `/ref_text`. An
492
+ * inaccurate transcript can make synthesis with the clone truncated or garbled.
493
+ * Record a known script of about 10 seconds and pass it verbatim.
494
+ */
495
+ ref_text: string;
496
+
497
+ /**
498
+ * Optional custom label describing the voice style.
499
+ */
500
+ label?: string;
501
+
502
+ /**
503
+ * Language of the reference audio: `ar` (Arabic) or `en` (English). Defaults to
504
+ * `ar`. Other values return `422`.
505
+ */
506
+ language?: 'ar' | 'en';
507
+
508
+ /**
509
+ * Voice synthesis provider. Defaults to `telnyx`.
510
+ */
511
+ provider?: 'telnyx' | 'Telnyx';
512
+ }
513
+
458
514
  /**
459
515
  * Upload-based voice clone using the Minimax provider.
460
516
  */