telnyx 7.25.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 (708) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/client.d.mts +25 -10
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +25 -10
  5. package/client.d.ts.map +1 -1
  6. package/client.js +15 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +15 -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 +16 -7
  20. package/resources/ai/ai.d.mts.map +1 -1
  21. package/resources/ai/ai.d.ts +16 -7
  22. package/resources/ai/ai.d.ts.map +1 -1
  23. package/resources/ai/ai.js +4 -0
  24. package/resources/ai/ai.js.map +1 -1
  25. package/resources/ai/ai.mjs +4 -0
  26. package/resources/ai/ai.mjs.map +1 -1
  27. package/resources/ai/assistants/assistants.d.mts +383 -22
  28. package/resources/ai/assistants/assistants.d.mts.map +1 -1
  29. package/resources/ai/assistants/assistants.d.ts +383 -22
  30. package/resources/ai/assistants/assistants.d.ts.map +1 -1
  31. package/resources/ai/assistants/assistants.js +4 -1
  32. package/resources/ai/assistants/assistants.js.map +1 -1
  33. package/resources/ai/assistants/assistants.mjs +4 -1
  34. package/resources/ai/assistants/assistants.mjs.map +1 -1
  35. package/resources/ai/assistants/index.d.mts +1 -1
  36. package/resources/ai/assistants/index.d.mts.map +1 -1
  37. package/resources/ai/assistants/index.d.ts +1 -1
  38. package/resources/ai/assistants/index.d.ts.map +1 -1
  39. package/resources/ai/assistants/index.js.map +1 -1
  40. package/resources/ai/assistants/index.mjs.map +1 -1
  41. package/resources/ai/assistants/versions.d.mts +18 -1
  42. package/resources/ai/assistants/versions.d.mts.map +1 -1
  43. package/resources/ai/assistants/versions.d.ts +18 -1
  44. package/resources/ai/assistants/versions.d.ts.map +1 -1
  45. package/resources/ai/assistants/versions.js +4 -1
  46. package/resources/ai/assistants/versions.js.map +1 -1
  47. package/resources/ai/assistants/versions.mjs +4 -1
  48. package/resources/ai/assistants/versions.mjs.map +1 -1
  49. package/resources/ai/audio.d.mts +17 -5
  50. package/resources/ai/audio.d.mts.map +1 -1
  51. package/resources/ai/audio.d.ts +17 -5
  52. package/resources/ai/audio.d.ts.map +1 -1
  53. package/resources/ai/avatars.d.mts +200 -0
  54. package/resources/ai/avatars.d.mts.map +1 -0
  55. package/resources/ai/avatars.d.ts +200 -0
  56. package/resources/ai/avatars.d.ts.map +1 -0
  57. package/resources/ai/avatars.js +95 -0
  58. package/resources/ai/avatars.js.map +1 -0
  59. package/resources/ai/avatars.mjs +91 -0
  60. package/resources/ai/avatars.mjs.map +1 -0
  61. package/resources/ai/chat.d.mts +20 -6
  62. package/resources/ai/chat.d.mts.map +1 -1
  63. package/resources/ai/chat.d.ts +20 -6
  64. package/resources/ai/chat.d.ts.map +1 -1
  65. package/resources/ai/conversations/conversations.d.mts +8 -0
  66. package/resources/ai/conversations/conversations.d.mts.map +1 -1
  67. package/resources/ai/conversations/conversations.d.ts +8 -0
  68. package/resources/ai/conversations/conversations.d.ts.map +1 -1
  69. package/resources/ai/conversations/conversations.js.map +1 -1
  70. package/resources/ai/conversations/conversations.mjs.map +1 -1
  71. package/resources/ai/index.d.mts +3 -2
  72. package/resources/ai/index.d.mts.map +1 -1
  73. package/resources/ai/index.d.ts +3 -2
  74. package/resources/ai/index.d.ts.map +1 -1
  75. package/resources/ai/index.js +3 -1
  76. package/resources/ai/index.js.map +1 -1
  77. package/resources/ai/index.mjs +1 -0
  78. package/resources/ai/index.mjs.map +1 -1
  79. package/resources/ai/memory/namespaces/index.d.mts +1 -1
  80. package/resources/ai/memory/namespaces/index.d.mts.map +1 -1
  81. package/resources/ai/memory/namespaces/index.d.ts +1 -1
  82. package/resources/ai/memory/namespaces/index.d.ts.map +1 -1
  83. package/resources/ai/memory/namespaces/index.js.map +1 -1
  84. package/resources/ai/memory/namespaces/index.mjs.map +1 -1
  85. package/resources/ai/memory/namespaces/namespaces.d.mts +2 -2
  86. package/resources/ai/memory/namespaces/namespaces.d.mts.map +1 -1
  87. package/resources/ai/memory/namespaces/namespaces.d.ts +2 -2
  88. package/resources/ai/memory/namespaces/namespaces.d.ts.map +1 -1
  89. package/resources/ai/memory/namespaces/namespaces.js.map +1 -1
  90. package/resources/ai/memory/namespaces/namespaces.mjs.map +1 -1
  91. package/resources/ai/memory/namespaces/profiles/index.d.mts +1 -1
  92. package/resources/ai/memory/namespaces/profiles/index.d.mts.map +1 -1
  93. package/resources/ai/memory/namespaces/profiles/index.d.ts +1 -1
  94. package/resources/ai/memory/namespaces/profiles/index.d.ts.map +1 -1
  95. package/resources/ai/memory/namespaces/profiles/index.js.map +1 -1
  96. package/resources/ai/memory/namespaces/profiles/index.mjs.map +1 -1
  97. package/resources/ai/memory/namespaces/profiles/profiles.d.mts +54 -1
  98. package/resources/ai/memory/namespaces/profiles/profiles.d.mts.map +1 -1
  99. package/resources/ai/memory/namespaces/profiles/profiles.d.ts +54 -1
  100. package/resources/ai/memory/namespaces/profiles/profiles.d.ts.map +1 -1
  101. package/resources/ai/memory/namespaces/profiles/profiles.js +31 -0
  102. package/resources/ai/memory/namespaces/profiles/profiles.js.map +1 -1
  103. package/resources/ai/memory/namespaces/profiles/profiles.mjs +31 -0
  104. package/resources/ai/memory/namespaces/profiles/profiles.mjs.map +1 -1
  105. package/resources/ai/openai/chat.d.mts +20 -6
  106. package/resources/ai/openai/chat.d.mts.map +1 -1
  107. package/resources/ai/openai/chat.d.ts +20 -6
  108. package/resources/ai/openai/chat.d.ts.map +1 -1
  109. package/resources/ai/tools.d.mts +30 -2
  110. package/resources/ai/tools.d.mts.map +1 -1
  111. package/resources/ai/tools.d.ts +30 -2
  112. package/resources/ai/tools.d.ts.map +1 -1
  113. package/resources/calls/actions.d.mts +260 -25
  114. package/resources/calls/actions.d.mts.map +1 -1
  115. package/resources/calls/actions.d.ts +260 -25
  116. package/resources/calls/actions.d.ts.map +1 -1
  117. package/resources/calls/calls.d.mts +24 -14
  118. package/resources/calls/calls.d.mts.map +1 -1
  119. package/resources/calls/calls.d.ts +24 -14
  120. package/resources/calls/calls.d.ts.map +1 -1
  121. package/resources/calls/calls.js +8 -0
  122. package/resources/calls/calls.js.map +1 -1
  123. package/resources/calls/calls.mjs +8 -0
  124. package/resources/calls/calls.mjs.map +1 -1
  125. package/resources/calls/index.d.mts +1 -1
  126. package/resources/calls/index.d.mts.map +1 -1
  127. package/resources/calls/index.d.ts +1 -1
  128. package/resources/calls/index.d.ts.map +1 -1
  129. package/resources/calls/index.js.map +1 -1
  130. package/resources/calls/index.mjs.map +1 -1
  131. package/resources/credential-connections/credential-connections.d.mts +38 -8
  132. package/resources/credential-connections/credential-connections.d.mts.map +1 -1
  133. package/resources/credential-connections/credential-connections.d.ts +38 -8
  134. package/resources/credential-connections/credential-connections.d.ts.map +1 -1
  135. package/resources/credential-connections/credential-connections.js.map +1 -1
  136. package/resources/credential-connections/credential-connections.mjs.map +1 -1
  137. package/resources/dial-metrics.d.mts +151 -0
  138. package/resources/dial-metrics.d.mts.map +1 -0
  139. package/resources/dial-metrics.d.ts +151 -0
  140. package/resources/dial-metrics.d.ts.map +1 -0
  141. package/resources/dial-metrics.js +44 -0
  142. package/resources/dial-metrics.js.map +1 -0
  143. package/resources/dial-metrics.mjs +40 -0
  144. package/resources/dial-metrics.mjs.map +1 -0
  145. package/resources/dir/dir.d.mts +11 -9
  146. package/resources/dir/dir.d.mts.map +1 -1
  147. package/resources/dir/dir.d.ts +11 -9
  148. package/resources/dir/dir.d.ts.map +1 -1
  149. package/resources/dir/dir.js +1 -2
  150. package/resources/dir/dir.js.map +1 -1
  151. package/resources/dir/dir.mjs +1 -2
  152. package/resources/dir/dir.mjs.map +1 -1
  153. package/resources/dir/phone-numbers.d.mts +0 -4
  154. package/resources/dir/phone-numbers.d.mts.map +1 -1
  155. package/resources/dir/phone-numbers.d.ts +0 -4
  156. package/resources/dir/phone-numbers.d.ts.map +1 -1
  157. package/resources/dir/references.d.mts +15 -9
  158. package/resources/dir/references.d.mts.map +1 -1
  159. package/resources/dir/references.d.ts +15 -9
  160. package/resources/dir/references.d.ts.map +1 -1
  161. package/resources/dir/references.js +15 -9
  162. package/resources/dir/references.js.map +1 -1
  163. package/resources/dir/references.mjs +15 -9
  164. package/resources/dir/references.mjs.map +1 -1
  165. package/resources/dir/verify-email.d.mts +17 -5
  166. package/resources/dir/verify-email.d.mts.map +1 -1
  167. package/resources/dir/verify-email.d.ts +17 -5
  168. package/resources/dir/verify-email.d.ts.map +1 -1
  169. package/resources/dir/verify-email.js +17 -5
  170. package/resources/dir/verify-email.js.map +1 -1
  171. package/resources/dir/verify-email.mjs +17 -5
  172. package/resources/dir/verify-email.mjs.map +1 -1
  173. package/resources/email-domains/email-domains.d.mts +1 -1
  174. package/resources/email-domains/email-domains.d.mts.map +1 -1
  175. package/resources/email-domains/email-domains.d.ts +1 -1
  176. package/resources/email-domains/email-domains.d.ts.map +1 -1
  177. package/resources/email-templates.d.mts +109 -18
  178. package/resources/email-templates.d.mts.map +1 -1
  179. package/resources/email-templates.d.ts +109 -18
  180. package/resources/email-templates.d.ts.map +1 -1
  181. package/resources/email-templates.js +5 -1
  182. package/resources/email-templates.js.map +1 -1
  183. package/resources/email-templates.mjs +5 -1
  184. package/resources/email-templates.mjs.map +1 -1
  185. package/resources/enterprises/dir.d.mts +8 -2
  186. package/resources/enterprises/dir.d.mts.map +1 -1
  187. package/resources/enterprises/dir.d.ts +8 -2
  188. package/resources/enterprises/dir.d.ts.map +1 -1
  189. package/resources/enterprises/dir.js +8 -2
  190. package/resources/enterprises/dir.js.map +1 -1
  191. package/resources/enterprises/dir.mjs +8 -2
  192. package/resources/enterprises/dir.mjs.map +1 -1
  193. package/resources/enterprises/enterprises.d.mts +7 -5
  194. package/resources/enterprises/enterprises.d.mts.map +1 -1
  195. package/resources/enterprises/enterprises.d.ts +7 -5
  196. package/resources/enterprises/enterprises.d.ts.map +1 -1
  197. package/resources/enterprises/enterprises.js +5 -3
  198. package/resources/enterprises/enterprises.js.map +1 -1
  199. package/resources/enterprises/enterprises.mjs +5 -3
  200. package/resources/enterprises/enterprises.mjs.map +1 -1
  201. package/resources/enterprises/index.d.mts +1 -1
  202. package/resources/enterprises/index.d.mts.map +1 -1
  203. package/resources/enterprises/index.d.ts +1 -1
  204. package/resources/enterprises/index.d.ts.map +1 -1
  205. package/resources/enterprises/index.js.map +1 -1
  206. package/resources/enterprises/index.mjs.map +1 -1
  207. package/resources/enterprises/reputation/external-verification.d.mts +94 -0
  208. package/resources/enterprises/reputation/external-verification.d.mts.map +1 -0
  209. package/resources/enterprises/reputation/external-verification.d.ts +94 -0
  210. package/resources/enterprises/reputation/external-verification.d.ts.map +1 -0
  211. package/resources/enterprises/reputation/external-verification.js +54 -0
  212. package/resources/enterprises/reputation/external-verification.js.map +1 -0
  213. package/resources/enterprises/reputation/external-verification.mjs +50 -0
  214. package/resources/enterprises/reputation/external-verification.mjs.map +1 -0
  215. package/resources/enterprises/reputation/index.d.mts +3 -2
  216. package/resources/enterprises/reputation/index.d.mts.map +1 -1
  217. package/resources/enterprises/reputation/index.d.ts +3 -2
  218. package/resources/enterprises/reputation/index.d.ts.map +1 -1
  219. package/resources/enterprises/reputation/index.js +3 -1
  220. package/resources/enterprises/reputation/index.js.map +1 -1
  221. package/resources/enterprises/reputation/index.mjs +1 -0
  222. package/resources/enterprises/reputation/index.mjs.map +1 -1
  223. package/resources/enterprises/reputation/loa.d.mts +3 -2
  224. package/resources/enterprises/reputation/loa.d.mts.map +1 -1
  225. package/resources/enterprises/reputation/loa.d.ts +3 -2
  226. package/resources/enterprises/reputation/loa.d.ts.map +1 -1
  227. package/resources/enterprises/reputation/numbers.d.mts +197 -4
  228. package/resources/enterprises/reputation/numbers.d.mts.map +1 -1
  229. package/resources/enterprises/reputation/numbers.d.ts +197 -4
  230. package/resources/enterprises/reputation/numbers.d.ts.map +1 -1
  231. package/resources/enterprises/reputation/numbers.js +58 -2
  232. package/resources/enterprises/reputation/numbers.js.map +1 -1
  233. package/resources/enterprises/reputation/numbers.mjs +58 -2
  234. package/resources/enterprises/reputation/numbers.mjs.map +1 -1
  235. package/resources/enterprises/reputation/remediation.d.mts +3 -2
  236. package/resources/enterprises/reputation/remediation.d.mts.map +1 -1
  237. package/resources/enterprises/reputation/remediation.d.ts +3 -2
  238. package/resources/enterprises/reputation/remediation.d.ts.map +1 -1
  239. package/resources/enterprises/reputation/reputation.d.mts +39 -3
  240. package/resources/enterprises/reputation/reputation.d.mts.map +1 -1
  241. package/resources/enterprises/reputation/reputation.d.ts +39 -3
  242. package/resources/enterprises/reputation/reputation.d.ts.map +1 -1
  243. package/resources/enterprises/reputation/reputation.js +22 -0
  244. package/resources/enterprises/reputation/reputation.js.map +1 -1
  245. package/resources/enterprises/reputation/reputation.mjs +22 -0
  246. package/resources/enterprises/reputation/reputation.mjs.map +1 -1
  247. package/resources/enterprises/verify-email.d.mts +1 -1
  248. package/resources/enterprises/verify-email.d.ts +1 -1
  249. package/resources/enterprises/verify-email.js +1 -1
  250. package/resources/enterprises/verify-email.mjs +1 -1
  251. package/resources/fqdn-connections/fqdn-connections.d.mts +38 -8
  252. package/resources/fqdn-connections/fqdn-connections.d.mts.map +1 -1
  253. package/resources/fqdn-connections/fqdn-connections.d.ts +38 -8
  254. package/resources/fqdn-connections/fqdn-connections.d.ts.map +1 -1
  255. package/resources/fqdn-connections/fqdn-connections.js.map +1 -1
  256. package/resources/fqdn-connections/fqdn-connections.mjs.map +1 -1
  257. package/resources/global-ip-assignment-health.d.mts +4 -4
  258. package/resources/global-ip-assignment-health.d.mts.map +1 -1
  259. package/resources/global-ip-assignment-health.d.ts +4 -4
  260. package/resources/global-ip-assignment-health.d.ts.map +1 -1
  261. package/resources/global-ip-assignments-usage.d.mts +4 -4
  262. package/resources/global-ip-assignments-usage.d.mts.map +1 -1
  263. package/resources/global-ip-assignments-usage.d.ts +4 -4
  264. package/resources/global-ip-assignments-usage.d.ts.map +1 -1
  265. package/resources/index.d.mts +8 -5
  266. package/resources/index.d.mts.map +1 -1
  267. package/resources/index.d.ts +8 -5
  268. package/resources/index.d.ts.map +1 -1
  269. package/resources/index.js +10 -4
  270. package/resources/index.js.map +1 -1
  271. package/resources/index.mjs +3 -0
  272. package/resources/index.mjs.map +1 -1
  273. package/resources/ip-connections.d.mts +36 -6
  274. package/resources/ip-connections.d.mts.map +1 -1
  275. package/resources/ip-connections.d.ts +36 -6
  276. package/resources/ip-connections.d.ts.map +1 -1
  277. package/resources/llm-token-gateway/index.d.mts +4 -1
  278. package/resources/llm-token-gateway/index.d.mts.map +1 -1
  279. package/resources/llm-token-gateway/index.d.ts +4 -1
  280. package/resources/llm-token-gateway/index.d.ts.map +1 -1
  281. package/resources/llm-token-gateway/index.js +7 -1
  282. package/resources/llm-token-gateway/index.js.map +1 -1
  283. package/resources/llm-token-gateway/index.mjs +4 -1
  284. package/resources/llm-token-gateway/index.mjs.map +1 -1
  285. package/resources/llm-token-gateway/llm-token-gateway.d.mts +14 -2
  286. package/resources/llm-token-gateway/llm-token-gateway.d.mts.map +1 -1
  287. package/resources/llm-token-gateway/llm-token-gateway.d.ts +14 -2
  288. package/resources/llm-token-gateway/llm-token-gateway.d.ts.map +1 -1
  289. package/resources/llm-token-gateway/llm-token-gateway.js +12 -0
  290. package/resources/llm-token-gateway/llm-token-gateway.js.map +1 -1
  291. package/resources/llm-token-gateway/llm-token-gateway.mjs +13 -1
  292. package/resources/llm-token-gateway/llm-token-gateway.mjs.map +1 -1
  293. package/resources/llm-token-gateway/spend.d.mts +223 -0
  294. package/resources/llm-token-gateway/spend.d.mts.map +1 -0
  295. package/resources/llm-token-gateway/spend.d.ts +223 -0
  296. package/resources/llm-token-gateway/spend.d.ts.map +1 -0
  297. package/resources/llm-token-gateway/spend.js +56 -0
  298. package/resources/llm-token-gateway/spend.js.map +1 -0
  299. package/resources/llm-token-gateway/spend.mjs +52 -0
  300. package/resources/llm-token-gateway/spend.mjs.map +1 -0
  301. package/resources/llm-token-gateway/token-groups.d.mts +577 -0
  302. package/resources/llm-token-gateway/token-groups.d.mts.map +1 -0
  303. package/resources/llm-token-gateway/token-groups.d.ts +577 -0
  304. package/resources/llm-token-gateway/token-groups.d.ts.map +1 -0
  305. package/resources/llm-token-gateway/token-groups.js +139 -0
  306. package/resources/llm-token-gateway/token-groups.js.map +1 -0
  307. package/resources/llm-token-gateway/token-groups.mjs +135 -0
  308. package/resources/llm-token-gateway/token-groups.mjs.map +1 -0
  309. package/resources/llm-token-gateway/token-keys.d.mts +318 -0
  310. package/resources/llm-token-gateway/token-keys.d.mts.map +1 -0
  311. package/resources/llm-token-gateway/token-keys.d.ts +318 -0
  312. package/resources/llm-token-gateway/token-keys.d.ts.map +1 -0
  313. package/resources/llm-token-gateway/token-keys.js +127 -0
  314. package/resources/llm-token-gateway/token-keys.js.map +1 -0
  315. package/resources/llm-token-gateway/token-keys.mjs +123 -0
  316. package/resources/llm-token-gateway/token-keys.mjs.map +1 -0
  317. package/resources/llm-token-gateway/usage.d.mts +205 -146
  318. package/resources/llm-token-gateway/usage.d.mts.map +1 -1
  319. package/resources/llm-token-gateway/usage.d.ts +205 -146
  320. package/resources/llm-token-gateway/usage.d.ts.map +1 -1
  321. package/resources/llm-token-gateway/usage.js +47 -15
  322. package/resources/llm-token-gateway/usage.js.map +1 -1
  323. package/resources/llm-token-gateway/usage.mjs +47 -15
  324. package/resources/llm-token-gateway/usage.mjs.map +1 -1
  325. package/resources/meeting-sessions/actions.d.mts +13 -7
  326. package/resources/meeting-sessions/actions.d.mts.map +1 -1
  327. package/resources/meeting-sessions/actions.d.ts +13 -7
  328. package/resources/meeting-sessions/actions.d.ts.map +1 -1
  329. package/resources/meeting-sessions/actions.js +13 -7
  330. package/resources/meeting-sessions/actions.js.map +1 -1
  331. package/resources/meeting-sessions/actions.mjs +13 -7
  332. package/resources/meeting-sessions/actions.mjs.map +1 -1
  333. package/resources/meeting-sessions/index.d.mts +1 -1
  334. package/resources/meeting-sessions/index.d.mts.map +1 -1
  335. package/resources/meeting-sessions/index.d.ts +1 -1
  336. package/resources/meeting-sessions/index.d.ts.map +1 -1
  337. package/resources/meeting-sessions/index.js.map +1 -1
  338. package/resources/meeting-sessions/index.mjs.map +1 -1
  339. package/resources/meeting-sessions/meeting-sessions.d.mts +46 -65
  340. package/resources/meeting-sessions/meeting-sessions.d.mts.map +1 -1
  341. package/resources/meeting-sessions/meeting-sessions.d.ts +46 -65
  342. package/resources/meeting-sessions/meeting-sessions.d.ts.map +1 -1
  343. package/resources/meeting-sessions/meeting-sessions.js +14 -23
  344. package/resources/meeting-sessions/meeting-sessions.js.map +1 -1
  345. package/resources/meeting-sessions/meeting-sessions.mjs +14 -23
  346. package/resources/meeting-sessions/meeting-sessions.mjs.map +1 -1
  347. package/resources/messages/messages.d.mts +581 -118
  348. package/resources/messages/messages.d.mts.map +1 -1
  349. package/resources/messages/messages.d.ts +581 -118
  350. package/resources/messages/messages.d.ts.map +1 -1
  351. package/resources/messages/messages.js +71 -14
  352. package/resources/messages/messages.js.map +1 -1
  353. package/resources/messages/messages.mjs +71 -14
  354. package/resources/messages/messages.mjs.map +1 -1
  355. package/resources/messages/rcs.d.mts +26 -6
  356. package/resources/messages/rcs.d.mts.map +1 -1
  357. package/resources/messages/rcs.d.ts +26 -6
  358. package/resources/messages/rcs.d.ts.map +1 -1
  359. package/resources/messages/rcs.js +11 -2
  360. package/resources/messages/rcs.js.map +1 -1
  361. package/resources/messages/rcs.mjs +11 -2
  362. package/resources/messages/rcs.mjs.map +1 -1
  363. package/resources/phone-numbers/csv-downloads.d.mts +9 -0
  364. package/resources/phone-numbers/csv-downloads.d.mts.map +1 -1
  365. package/resources/phone-numbers/csv-downloads.d.ts +9 -0
  366. package/resources/phone-numbers/csv-downloads.d.ts.map +1 -1
  367. package/resources/phone-numbers/csv-downloads.js +5 -2
  368. package/resources/phone-numbers/csv-downloads.js.map +1 -1
  369. package/resources/phone-numbers/csv-downloads.mjs +5 -2
  370. package/resources/phone-numbers/csv-downloads.mjs.map +1 -1
  371. package/resources/phone-numbers/index.d.mts +2 -2
  372. package/resources/phone-numbers/index.d.mts.map +1 -1
  373. package/resources/phone-numbers/index.d.ts +2 -2
  374. package/resources/phone-numbers/index.d.ts.map +1 -1
  375. package/resources/phone-numbers/index.js.map +1 -1
  376. package/resources/phone-numbers/index.mjs.map +1 -1
  377. package/resources/phone-numbers/jobs.d.mts +277 -14
  378. package/resources/phone-numbers/jobs.d.mts.map +1 -1
  379. package/resources/phone-numbers/jobs.d.ts +277 -14
  380. package/resources/phone-numbers/jobs.d.ts.map +1 -1
  381. package/resources/phone-numbers/jobs.js +5 -4
  382. package/resources/phone-numbers/jobs.js.map +1 -1
  383. package/resources/phone-numbers/jobs.mjs +5 -4
  384. package/resources/phone-numbers/jobs.mjs.map +1 -1
  385. package/resources/phone-numbers/phone-numbers.d.mts +28 -3
  386. package/resources/phone-numbers/phone-numbers.d.mts.map +1 -1
  387. package/resources/phone-numbers/phone-numbers.d.ts +28 -3
  388. package/resources/phone-numbers/phone-numbers.d.ts.map +1 -1
  389. package/resources/phone-numbers/phone-numbers.js.map +1 -1
  390. package/resources/phone-numbers/phone-numbers.mjs.map +1 -1
  391. package/resources/porting-orders/phone-number-blocks.d.mts +1 -1
  392. package/resources/porting-orders/phone-number-blocks.d.mts.map +1 -1
  393. package/resources/porting-orders/phone-number-blocks.d.ts +1 -1
  394. package/resources/porting-orders/phone-number-blocks.d.ts.map +1 -1
  395. package/resources/porting-orders/porting-orders.d.mts +1 -1
  396. package/resources/porting-orders/porting-orders.d.mts.map +1 -1
  397. package/resources/porting-orders/porting-orders.d.ts +1 -1
  398. package/resources/porting-orders/porting-orders.d.ts.map +1 -1
  399. package/resources/porting-orders/porting-orders.js.map +1 -1
  400. package/resources/porting-orders/porting-orders.mjs.map +1 -1
  401. package/resources/porting-phone-numbers.d.mts +1 -1
  402. package/resources/porting-phone-numbers.d.mts.map +1 -1
  403. package/resources/porting-phone-numbers.d.ts +1 -1
  404. package/resources/porting-phone-numbers.d.ts.map +1 -1
  405. package/resources/reputation/numbers.d.mts +10 -0
  406. package/resources/reputation/numbers.d.mts.map +1 -1
  407. package/resources/reputation/numbers.d.ts +10 -0
  408. package/resources/reputation/numbers.d.ts.map +1 -1
  409. package/resources/shared.d.mts +4 -0
  410. package/resources/shared.d.mts.map +1 -1
  411. package/resources/shared.d.ts +4 -0
  412. package/resources/shared.d.ts.map +1 -1
  413. package/resources/sip-registration-status.d.mts +149 -0
  414. package/resources/sip-registration-status.d.mts.map +1 -0
  415. package/resources/sip-registration-status.d.ts +149 -0
  416. package/resources/sip-registration-status.d.ts.map +1 -0
  417. package/resources/sip-registration-status.js +32 -0
  418. package/resources/sip-registration-status.js.map +1 -0
  419. package/resources/sip-registration-status.mjs +28 -0
  420. package/resources/sip-registration-status.mjs.map +1 -0
  421. package/resources/speech-to-text/speech-to-text.d.mts +12 -5
  422. package/resources/speech-to-text/speech-to-text.d.mts.map +1 -1
  423. package/resources/speech-to-text/speech-to-text.d.ts +12 -5
  424. package/resources/speech-to-text/speech-to-text.d.ts.map +1 -1
  425. package/resources/telephony-credentials.d.mts +11 -2
  426. package/resources/telephony-credentials.d.mts.map +1 -1
  427. package/resources/telephony-credentials.d.ts +11 -2
  428. package/resources/telephony-credentials.d.ts.map +1 -1
  429. package/resources/telephony-credentials.js +9 -2
  430. package/resources/telephony-credentials.js.map +1 -1
  431. package/resources/telephony-credentials.mjs +9 -2
  432. package/resources/telephony-credentials.mjs.map +1 -1
  433. package/resources/texml/accounts/accounts.d.mts +2 -2
  434. package/resources/texml/accounts/accounts.d.ts +2 -2
  435. package/resources/texml/accounts/accounts.js +2 -2
  436. package/resources/texml/accounts/accounts.mjs +2 -2
  437. package/resources/texml/accounts/calls/calls.d.mts +49 -14
  438. package/resources/texml/accounts/calls/calls.d.mts.map +1 -1
  439. package/resources/texml/accounts/calls/calls.d.ts +49 -14
  440. package/resources/texml/accounts/calls/calls.d.ts.map +1 -1
  441. package/resources/texml/accounts/calls/calls.js +7 -7
  442. package/resources/texml/accounts/calls/calls.js.map +1 -1
  443. package/resources/texml/accounts/calls/calls.mjs +7 -7
  444. package/resources/texml/accounts/calls/calls.mjs.map +1 -1
  445. package/resources/texml/accounts/calls/recordings-json.d.mts +14 -4
  446. package/resources/texml/accounts/calls/recordings-json.d.mts.map +1 -1
  447. package/resources/texml/accounts/calls/recordings-json.d.ts +14 -4
  448. package/resources/texml/accounts/calls/recordings-json.d.ts.map +1 -1
  449. package/resources/texml/accounts/calls/recordings-json.js +2 -2
  450. package/resources/texml/accounts/calls/recordings-json.mjs +2 -2
  451. package/resources/texml/accounts/calls/recordings.d.mts +10 -2
  452. package/resources/texml/accounts/calls/recordings.d.mts.map +1 -1
  453. package/resources/texml/accounts/calls/recordings.d.ts +10 -2
  454. package/resources/texml/accounts/calls/recordings.d.ts.map +1 -1
  455. package/resources/texml/accounts/calls/recordings.js +4 -1
  456. package/resources/texml/accounts/calls/recordings.js.map +1 -1
  457. package/resources/texml/accounts/calls/recordings.mjs +4 -1
  458. package/resources/texml/accounts/calls/recordings.mjs.map +1 -1
  459. package/resources/texml/accounts/calls/siprec.d.mts +10 -2
  460. package/resources/texml/accounts/calls/siprec.d.mts.map +1 -1
  461. package/resources/texml/accounts/calls/siprec.d.ts +10 -2
  462. package/resources/texml/accounts/calls/siprec.d.ts.map +1 -1
  463. package/resources/texml/accounts/calls/siprec.js +4 -1
  464. package/resources/texml/accounts/calls/siprec.js.map +1 -1
  465. package/resources/texml/accounts/calls/siprec.mjs +4 -1
  466. package/resources/texml/accounts/calls/siprec.mjs.map +1 -1
  467. package/resources/texml/accounts/calls/streams.d.mts +10 -2
  468. package/resources/texml/accounts/calls/streams.d.mts.map +1 -1
  469. package/resources/texml/accounts/calls/streams.d.ts +10 -2
  470. package/resources/texml/accounts/calls/streams.d.ts.map +1 -1
  471. package/resources/texml/accounts/calls/streams.js +4 -1
  472. package/resources/texml/accounts/calls/streams.js.map +1 -1
  473. package/resources/texml/accounts/calls/streams.mjs +4 -1
  474. package/resources/texml/accounts/calls/streams.mjs.map +1 -1
  475. package/resources/texml/accounts/conferences/conferences.d.mts +29 -9
  476. package/resources/texml/accounts/conferences/conferences.d.mts.map +1 -1
  477. package/resources/texml/accounts/conferences/conferences.d.ts +29 -9
  478. package/resources/texml/accounts/conferences/conferences.d.ts.map +1 -1
  479. package/resources/texml/accounts/conferences/conferences.js +5 -5
  480. package/resources/texml/accounts/conferences/conferences.js.map +1 -1
  481. package/resources/texml/accounts/conferences/conferences.mjs +5 -5
  482. package/resources/texml/accounts/conferences/conferences.mjs.map +1 -1
  483. package/resources/texml/accounts/conferences/participants.d.mts +35 -10
  484. package/resources/texml/accounts/conferences/participants.d.mts.map +1 -1
  485. package/resources/texml/accounts/conferences/participants.d.ts +35 -10
  486. package/resources/texml/accounts/conferences/participants.d.ts.map +1 -1
  487. package/resources/texml/accounts/conferences/participants.js +5 -5
  488. package/resources/texml/accounts/conferences/participants.mjs +5 -5
  489. package/resources/texml/accounts/queues.d.mts +25 -8
  490. package/resources/texml/accounts/queues.d.mts.map +1 -1
  491. package/resources/texml/accounts/queues.d.ts +25 -8
  492. package/resources/texml/accounts/queues.d.ts.map +1 -1
  493. package/resources/texml/accounts/queues.js +7 -5
  494. package/resources/texml/accounts/queues.js.map +1 -1
  495. package/resources/texml/accounts/queues.mjs +7 -5
  496. package/resources/texml/accounts/queues.mjs.map +1 -1
  497. package/resources/texml/accounts/recordings/json.d.mts +14 -4
  498. package/resources/texml/accounts/recordings/json.d.mts.map +1 -1
  499. package/resources/texml/accounts/recordings/json.d.ts +14 -4
  500. package/resources/texml/accounts/recordings/json.d.ts.map +1 -1
  501. package/resources/texml/accounts/recordings/json.js +2 -2
  502. package/resources/texml/accounts/recordings/json.mjs +2 -2
  503. package/resources/texml/accounts/transcriptions/json.d.mts +14 -4
  504. package/resources/texml/accounts/transcriptions/json.d.mts.map +1 -1
  505. package/resources/texml/accounts/transcriptions/json.d.ts +14 -4
  506. package/resources/texml/accounts/transcriptions/json.d.ts.map +1 -1
  507. package/resources/texml/accounts/transcriptions/json.js +2 -2
  508. package/resources/texml/accounts/transcriptions/json.mjs +2 -2
  509. package/resources/texml/texml.d.mts +7 -3
  510. package/resources/texml/texml.d.mts.map +1 -1
  511. package/resources/texml/texml.d.ts +7 -3
  512. package/resources/texml/texml.d.ts.map +1 -1
  513. package/resources/texml/texml.js +4 -2
  514. package/resources/texml/texml.js.map +1 -1
  515. package/resources/texml/texml.mjs +4 -2
  516. package/resources/texml/texml.mjs.map +1 -1
  517. package/resources/text-to-speech/text-to-speech.d.mts +15 -6
  518. package/resources/text-to-speech/text-to-speech.d.mts.map +1 -1
  519. package/resources/text-to-speech/text-to-speech.d.ts +15 -6
  520. package/resources/text-to-speech/text-to-speech.d.ts.map +1 -1
  521. package/resources/tts-integrations/actions.d.mts +4 -0
  522. package/resources/tts-integrations/actions.d.mts.map +1 -0
  523. package/resources/tts-integrations/actions.d.ts +4 -0
  524. package/resources/tts-integrations/actions.d.ts.map +1 -0
  525. package/resources/tts-integrations/actions.js +9 -0
  526. package/resources/tts-integrations/actions.js.map +1 -0
  527. package/resources/tts-integrations/actions.mjs +5 -0
  528. package/resources/tts-integrations/actions.mjs.map +1 -0
  529. package/resources/tts-integrations/index.d.mts +3 -0
  530. package/resources/tts-integrations/index.d.mts.map +1 -0
  531. package/resources/tts-integrations/index.d.ts +3 -0
  532. package/resources/tts-integrations/index.d.ts.map +1 -0
  533. package/resources/tts-integrations/index.js +9 -0
  534. package/resources/tts-integrations/index.js.map +1 -0
  535. package/resources/tts-integrations/index.mjs +4 -0
  536. package/resources/tts-integrations/index.mjs.map +1 -0
  537. package/resources/tts-integrations/tts-integrations.d.mts +10 -0
  538. package/resources/tts-integrations/tts-integrations.d.mts.map +1 -0
  539. package/resources/tts-integrations/tts-integrations.d.ts +10 -0
  540. package/resources/tts-integrations/tts-integrations.d.ts.map +1 -0
  541. package/resources/tts-integrations/tts-integrations.js +17 -0
  542. package/resources/tts-integrations/tts-integrations.js.map +1 -0
  543. package/resources/tts-integrations/tts-integrations.mjs +12 -0
  544. package/resources/tts-integrations/tts-integrations.mjs.map +1 -0
  545. package/resources/tts-integrations.d.mts +2 -0
  546. package/resources/tts-integrations.d.mts.map +1 -0
  547. package/resources/tts-integrations.d.ts +2 -0
  548. package/resources/tts-integrations.d.ts.map +1 -0
  549. package/resources/tts-integrations.js +6 -0
  550. package/resources/tts-integrations.js.map +1 -0
  551. package/resources/tts-integrations.mjs +3 -0
  552. package/resources/tts-integrations.mjs.map +1 -0
  553. package/resources/uac-connections/uac-connections.d.mts +36 -6
  554. package/resources/uac-connections/uac-connections.d.mts.map +1 -1
  555. package/resources/uac-connections/uac-connections.d.ts +36 -6
  556. package/resources/uac-connections/uac-connections.d.ts.map +1 -1
  557. package/resources/uac-connections/uac-connections.js.map +1 -1
  558. package/resources/uac-connections/uac-connections.mjs.map +1 -1
  559. package/resources/voice-clones.d.mts +57 -10
  560. package/resources/voice-clones.d.mts.map +1 -1
  561. package/resources/voice-clones.d.ts +57 -10
  562. package/resources/voice-clones.d.ts.map +1 -1
  563. package/resources/voice-clones.js +6 -4
  564. package/resources/voice-clones.js.map +1 -1
  565. package/resources/voice-clones.mjs +6 -4
  566. package/resources/voice-clones.mjs.map +1 -1
  567. package/resources/webhooks.d.mts +986 -71
  568. package/resources/webhooks.d.mts.map +1 -1
  569. package/resources/webhooks.d.ts +986 -71
  570. package/resources/webhooks.d.ts.map +1 -1
  571. package/resources/webhooks.js.map +1 -1
  572. package/resources/webhooks.mjs.map +1 -1
  573. package/resources/whatsapp/hosted-signups.d.mts +165 -0
  574. package/resources/whatsapp/hosted-signups.d.mts.map +1 -0
  575. package/resources/whatsapp/hosted-signups.d.ts +165 -0
  576. package/resources/whatsapp/hosted-signups.d.ts.map +1 -0
  577. package/resources/whatsapp/hosted-signups.js +56 -0
  578. package/resources/whatsapp/hosted-signups.js.map +1 -0
  579. package/resources/whatsapp/hosted-signups.mjs +52 -0
  580. package/resources/whatsapp/hosted-signups.mjs.map +1 -0
  581. package/resources/whatsapp/index.d.mts +2 -0
  582. package/resources/whatsapp/index.d.mts.map +1 -1
  583. package/resources/whatsapp/index.d.ts +2 -0
  584. package/resources/whatsapp/index.d.ts.map +1 -1
  585. package/resources/whatsapp/index.js +5 -1
  586. package/resources/whatsapp/index.js.map +1 -1
  587. package/resources/whatsapp/index.mjs +2 -0
  588. package/resources/whatsapp/index.mjs.map +1 -1
  589. package/resources/whatsapp/phone-numbers/calling-routing.d.mts +6 -5
  590. package/resources/whatsapp/phone-numbers/calling-routing.d.mts.map +1 -1
  591. package/resources/whatsapp/phone-numbers/calling-routing.d.ts +6 -5
  592. package/resources/whatsapp/phone-numbers/calling-routing.d.ts.map +1 -1
  593. package/resources/whatsapp/phone-numbers/calling-routing.js +6 -5
  594. package/resources/whatsapp/phone-numbers/calling-routing.js.map +1 -1
  595. package/resources/whatsapp/phone-numbers/calling-routing.mjs +6 -5
  596. package/resources/whatsapp/phone-numbers/calling-routing.mjs.map +1 -1
  597. package/resources/whatsapp/signup.d.mts +128 -0
  598. package/resources/whatsapp/signup.d.mts.map +1 -0
  599. package/resources/whatsapp/signup.d.ts +128 -0
  600. package/resources/whatsapp/signup.d.ts.map +1 -0
  601. package/resources/whatsapp/signup.js +42 -0
  602. package/resources/whatsapp/signup.js.map +1 -0
  603. package/resources/whatsapp/signup.mjs +38 -0
  604. package/resources/whatsapp/signup.mjs.map +1 -0
  605. package/resources/whatsapp/whatsapp.d.mts +8 -0
  606. package/resources/whatsapp/whatsapp.d.mts.map +1 -1
  607. package/resources/whatsapp/whatsapp.d.ts +8 -0
  608. package/resources/whatsapp/whatsapp.d.ts.map +1 -1
  609. package/resources/whatsapp/whatsapp.js +8 -0
  610. package/resources/whatsapp/whatsapp.js.map +1 -1
  611. package/resources/whatsapp/whatsapp.mjs +8 -0
  612. package/resources/whatsapp/whatsapp.mjs.map +1 -1
  613. package/src/client.ts +57 -4
  614. package/src/resources/addresses/addresses.ts +22 -2
  615. package/src/resources/ai/ai.ts +40 -3
  616. package/src/resources/ai/assistants/assistants.ts +455 -20
  617. package/src/resources/ai/assistants/index.ts +2 -0
  618. package/src/resources/ai/assistants/versions.ts +20 -1
  619. package/src/resources/ai/audio.ts +18 -5
  620. package/src/resources/ai/avatars.ts +252 -0
  621. package/src/resources/ai/chat.ts +20 -6
  622. package/src/resources/ai/conversations/conversations.ts +9 -0
  623. package/src/resources/ai/index.ts +14 -0
  624. package/src/resources/ai/memory/namespaces/index.ts +2 -0
  625. package/src/resources/ai/memory/namespaces/namespaces.ts +4 -0
  626. package/src/resources/ai/memory/namespaces/profiles/index.ts +2 -0
  627. package/src/resources/ai/memory/namespaces/profiles/profiles.ts +71 -0
  628. package/src/resources/ai/openai/chat.ts +20 -6
  629. package/src/resources/ai/tools.ts +35 -1
  630. package/src/resources/calls/actions.ts +346 -20
  631. package/src/resources/calls/calls.ts +26 -8
  632. package/src/resources/calls/index.ts +2 -0
  633. package/src/resources/credential-connections/credential-connections.ts +41 -8
  634. package/src/resources/dial-metrics.ts +185 -0
  635. package/src/resources/dir/dir.ts +13 -8
  636. package/src/resources/dir/phone-numbers.ts +1 -6
  637. package/src/resources/dir/references.ts +15 -9
  638. package/src/resources/dir/verify-email.ts +17 -5
  639. package/src/resources/email-domains/email-domains.ts +1 -1
  640. package/src/resources/email-templates.ts +121 -19
  641. package/src/resources/enterprises/dir.ts +8 -2
  642. package/src/resources/enterprises/enterprises.ts +7 -3
  643. package/src/resources/enterprises/index.ts +1 -0
  644. package/src/resources/enterprises/reputation/external-verification.ts +125 -0
  645. package/src/resources/enterprises/reputation/index.ts +12 -0
  646. package/src/resources/enterprises/reputation/loa.ts +3 -2
  647. package/src/resources/enterprises/reputation/numbers.ts +256 -3
  648. package/src/resources/enterprises/reputation/remediation.ts +3 -2
  649. package/src/resources/enterprises/reputation/reputation.ts +70 -0
  650. package/src/resources/enterprises/verify-email.ts +1 -1
  651. package/src/resources/fqdn-connections/fqdn-connections.ts +41 -8
  652. package/src/resources/global-ip-assignment-health.ts +4 -4
  653. package/src/resources/global-ip-assignments-usage.ts +4 -4
  654. package/src/resources/index.ts +21 -2
  655. package/src/resources/ip-connections.ts +39 -6
  656. package/src/resources/llm-token-gateway/index.ts +38 -1
  657. package/src/resources/llm-token-gateway/llm-token-gateway.ts +83 -1
  658. package/src/resources/llm-token-gateway/spend.ts +309 -0
  659. package/src/resources/llm-token-gateway/token-groups.ts +724 -0
  660. package/src/resources/llm-token-gateway/token-keys.ts +422 -0
  661. package/src/resources/llm-token-gateway/usage.ts +273 -149
  662. package/src/resources/meeting-sessions/actions.ts +13 -7
  663. package/src/resources/meeting-sessions/index.ts +0 -1
  664. package/src/resources/meeting-sessions/meeting-sessions.ts +48 -79
  665. package/src/resources/messages/messages.ts +786 -125
  666. package/src/resources/messages/rcs.ts +37 -7
  667. package/src/resources/phone-numbers/csv-downloads.ts +15 -2
  668. package/src/resources/phone-numbers/index.ts +3 -1
  669. package/src/resources/phone-numbers/jobs.ts +332 -15
  670. package/src/resources/phone-numbers/phone-numbers.ts +38 -2
  671. package/src/resources/porting-orders/phone-number-blocks.ts +1 -0
  672. package/src/resources/porting-orders/porting-orders.ts +1 -0
  673. package/src/resources/porting-phone-numbers.ts +1 -0
  674. package/src/resources/reputation/numbers.ts +12 -0
  675. package/src/resources/shared.ts +5 -0
  676. package/src/resources/sip-registration-status.ts +188 -0
  677. package/src/resources/speech-to-text/speech-to-text.ts +12 -4
  678. package/src/resources/telephony-credentials.ts +24 -2
  679. package/src/resources/texml/accounts/accounts.ts +2 -2
  680. package/src/resources/texml/accounts/calls/calls.ts +49 -14
  681. package/src/resources/texml/accounts/calls/recordings-json.ts +14 -4
  682. package/src/resources/texml/accounts/calls/recordings.ts +10 -2
  683. package/src/resources/texml/accounts/calls/siprec.ts +10 -2
  684. package/src/resources/texml/accounts/calls/streams.ts +10 -2
  685. package/src/resources/texml/accounts/conferences/conferences.ts +29 -9
  686. package/src/resources/texml/accounts/conferences/participants.ts +35 -10
  687. package/src/resources/texml/accounts/queues.ts +25 -8
  688. package/src/resources/texml/accounts/recordings/json.ts +14 -4
  689. package/src/resources/texml/accounts/transcriptions/json.ts +14 -4
  690. package/src/resources/texml/texml.ts +7 -3
  691. package/src/resources/text-to-speech/text-to-speech.ts +15 -6
  692. package/src/resources/tts-integrations/actions.ts +5 -0
  693. package/src/resources/tts-integrations/index.ts +4 -0
  694. package/src/resources/tts-integrations/tts-integrations.ts +15 -0
  695. package/src/resources/tts-integrations.ts +3 -0
  696. package/src/resources/uac-connections/uac-connections.ts +39 -6
  697. package/src/resources/voice-clones.ts +65 -9
  698. package/src/resources/webhooks.ts +1257 -96
  699. package/src/resources/whatsapp/hosted-signups.ts +221 -0
  700. package/src/resources/whatsapp/index.ts +16 -0
  701. package/src/resources/whatsapp/phone-numbers/calling-routing.ts +6 -5
  702. package/src/resources/whatsapp/signup.ts +188 -0
  703. package/src/resources/whatsapp/whatsapp.ts +40 -0
  704. package/src/version.ts +1 -1
  705. package/version.d.mts +1 -1
  706. package/version.d.ts +1 -1
  707. package/version.js +1 -1
  708. package/version.mjs +1 -1
@@ -1,6 +1,7 @@
1
1
  import { APIResource } from "../../../core/resource.mjs";
2
2
  import * as AssistantsAPI from "./assistants.mjs";
3
3
  import * as Shared from "../../shared.mjs";
4
+ import * as AvatarsAPI from "../avatars.mjs";
4
5
  import * as ChatAPI from "../chat.mjs";
5
6
  import * as ToolsAPI from "../tools.mjs";
6
7
  import * as CanaryDeploysAPI from "./canary-deploys.mjs";
@@ -110,7 +111,10 @@ export declare class Assistants extends APIResource {
110
111
  /**
111
112
  * Updates the specified AI assistant's attributes and returns the updated
112
113
  * assistant. The request can also control how the change is promoted across
113
- * assistant versions.
114
+ * assistant versions. Every update saves a new version, and an assistant keeps at
115
+ * most 10 versions: once it has more, the oldest versions are permanently deleted,
116
+ * except the main version and any version referenced by a traffic distribution
117
+ * rule.
114
118
  *
115
119
  * @example
116
120
  * ```ts
@@ -435,7 +439,7 @@ export interface AssistantMcpServer {
435
439
  * another AI assistant. By default, this will happen transparently to the end
436
440
  * user.
437
441
  */
438
- export type AssistantTool = AssistantTool.Function | InferenceEmbeddingWebhookToolParams | AssistantTool.ClientSideTool | RetrievalTool | AssistantTool.Handoff | AssistantTool.Hangup | AssistantTool.Transfer | AssistantTool.Invite | AssistantTool.Refer | AssistantTool.SendDtmf | AssistantTool.SendMessage | AssistantTool.SkipTurn | AssistantTool.Pay | AssistantTool.UpdateDynamicVariables;
442
+ export type AssistantTool = AssistantTool.Function | InferenceEmbeddingWebhookToolParams | AssistantTool.ClientSideTool | RetrievalTool | AssistantTool.Handoff | AssistantTool.Hangup | AssistantTool.Transfer | AssistantTool.Invite | AssistantTool.Refer | AssistantTool.SendDtmf | AssistantTool.SendMessage | AssistantTool.SkipTurn | AssistantTool.Vision | AssistantTool.Pay | AssistantTool.UpdateDynamicVariables;
439
443
  export declare namespace AssistantTool {
440
444
  interface Function {
441
445
  function: OpenAIChatAPI.FunctionDefinition;
@@ -590,6 +594,13 @@ export declare namespace AssistantTool {
590
594
  * variables webhook and resolves to an array of target objects at runtime.
591
595
  */
592
596
  targets: Array<Transfer.TargetsList> | string;
597
+ /**
598
+ * Plays a short beep once the transfer completes and the calls are bridged, so the
599
+ * transfer destination knows the caller is now on the line. The warm transfer
600
+ * message plays before the bridge; this marks the moment the caller actually
601
+ * joins. Works with and without `warm_transfer_acceptance`.
602
+ */
603
+ bridge_beep?: Transfer.BridgeBeep;
593
604
  /**
594
605
  * Custom headers to be added to the SIP INVITE for the transfer command.
595
606
  */
@@ -679,6 +690,23 @@ export declare namespace AssistantTool {
679
690
  */
680
691
  sip_auth_username?: string;
681
692
  }
693
+ /**
694
+ * Plays a short beep once the transfer completes and the calls are bridged, so the
695
+ * transfer destination knows the caller is now on the line. The warm transfer
696
+ * message plays before the bridge; this marks the moment the caller actually
697
+ * joins. Works with and without `warm_transfer_acceptance`.
698
+ */
699
+ interface BridgeBeep {
700
+ /**
701
+ * Whether to play the beep when the calls are bridged.
702
+ */
703
+ enabled?: boolean;
704
+ /**
705
+ * Who hears the beep. `self` plays it to the transfer destination only; `both`
706
+ * plays it to the destination and the original caller.
707
+ */
708
+ target_legs?: 'self' | 'both';
709
+ }
682
710
  interface CustomHeader {
683
711
  name?: string;
684
712
  /**
@@ -822,6 +850,30 @@ export declare namespace AssistantTool {
822
850
  * `shared` the exchange stays in the conversation like any other messages.
823
851
  */
824
852
  end_user_target_context_mode?: 'private' | 'shared';
853
+ /**
854
+ * Fail closed when the acceptance consult cannot run. Off by default: if the
855
+ * consult cannot be set up for any reason — including where acceptance is
856
+ * unavailable at all (`gather_using_ai`, Conversation Relay or web calls, a
857
+ * conference, or additional invited participants) — the transfer degrades to a
858
+ * plain warm transfer (the warm transfer message is played to the destination as
859
+ * audio and the calls are bridged anyway). Set to true to treat those paths as a
860
+ * decline instead: the destination is disconnected without being asked, the
861
+ * assistant returns to the caller, and no bridge happens without an acceptance.
862
+ * Only consult-setup failures are affected; the destination must still explicitly
863
+ * accept on every consult that does run.
864
+ */
865
+ require_acceptance?: boolean;
866
+ /**
867
+ * How long, in seconds, the destination has to accept the transfer, counted from
868
+ * when the private consult starts (right after the destination answers, or after
869
+ * `warm_message_delay_ms`). The caller keeps hearing ringback the whole time. If
870
+ * no acceptance arrives in time, the destination is hung up and the assistant
871
+ * returns to the caller (the transfer fails as a timeout). Raise it for
872
+ * destinations that answer before a human is on the line, such as a call-center
873
+ * queue/ACD or an IVR playing hold audio; keep it as short as practical, since the
874
+ * caller waits on ringback until it expires.
875
+ */
876
+ timeout_secs?: number;
825
877
  }
826
878
  }
827
879
  }
@@ -1056,6 +1108,27 @@ export declare namespace AssistantTool {
1056
1108
  description?: string;
1057
1109
  }
1058
1110
  }
1111
+ /**
1112
+ * (BETA) Lets the assistant look at recent image frames the client sent into the
1113
+ * conversation (for example webcam or screen-share frames). Frames are sent with
1114
+ * `conversation.item.create` and `item.buffer: true`; they never trigger a
1115
+ * response on their own. The assistant decides when to look and which frames it
1116
+ * needs. Requires a model that supports image input.
1117
+ */
1118
+ interface Vision {
1119
+ type: 'vision';
1120
+ /**
1121
+ * Whether this tool comes from the shared Tools Library. Responses merge shared
1122
+ * tools into `tools` with `shared: true`; inline tools carry `shared: false`.
1123
+ * Read-only: set by the server, not accepted in requests. When updating an
1124
+ * assistant, omit `shared: true` tools from the request `tools` array and manage
1125
+ * them through `tool_ids` instead — re-sending their definitions creates an inline
1126
+ * duplicate (rejected with error code 10015 when the type allows only one instance
1127
+ * per assistant).
1128
+ */
1129
+ shared?: boolean;
1130
+ vision?: ToolsAPI.VisionToolParams;
1131
+ }
1059
1132
  /**
1060
1133
  * (BETA) The pay tool allows the assistant to collect card payments from the
1061
1134
  * caller via DTMF during the conversation. Recording is automatically paused while
@@ -1118,6 +1191,31 @@ export interface AudioVisualizerConfig {
1118
1191
  * Authentication method used when connecting to the external LLM endpoint.
1119
1192
  */
1120
1193
  export type AuthenticationMethod = 'token' | 'certificate';
1194
+ /**
1195
+ * **Beta:** Configuration for the Telnyx open-source avatar provider. Use a stock
1196
+ * avatar or an organization-owned custom avatar returned by the Avatars API.
1197
+ * Discover the available stock catalog with GET /v2/ai/avatars and
1198
+ * filter[avatar_type]=stock; follow meta.total_pages to load every page.
1199
+ */
1200
+ export interface AvatarSettingsRequest {
1201
+ /**
1202
+ * The Telnyx stock avatar or organization-owned custom avatar to render.
1203
+ */
1204
+ avatar_id: AvatarsAPI.AvatarID;
1205
+ /**
1206
+ * The background to render.
1207
+ */
1208
+ background_id: 'office' | 'studio' | 'reception' | 'illustrated_workspace';
1209
+ /**
1210
+ * Required avatar model identifier, separate from `avatar_id`. The supported value
1211
+ * is `foxtrot-1`. Omission, null, and unsupported model identifiers are rejected.
1212
+ */
1213
+ model: 'foxtrot-1';
1214
+ /**
1215
+ * Selects the Telnyx open-source avatar provider.
1216
+ */
1217
+ provider: 'telnyx';
1218
+ }
1121
1219
  /**
1122
1220
  * Combine sub-expressions with a logical operator (`and` / `or` / `not`).
1123
1221
  *
@@ -1694,7 +1792,11 @@ export interface FlowNodeReq {
1694
1792
  tools_mode?: 'replace' | 'append';
1695
1793
  /**
1696
1794
  * Per-node transcription override (model/language/region). Unset fields cascade
1697
- * from the assistant-level transcription.
1795
+ * from the assistant-level transcription. A node that sets `model`,
1796
+ * `fallback_models`, or `challenger` doesn't inherit the assistant's
1797
+ * `fallback_models` or `challenger`; it uses only the ones it sets. Otherwise it
1798
+ * inherits them, and they must fit the model and language the node runs; a change
1799
+ * they no longer fit is rejected.
1698
1800
  */
1699
1801
  transcription?: TranscriptionSettings;
1700
1802
  /**
@@ -1757,6 +1859,13 @@ export interface InferenceEmbedding {
1757
1859
  * capability for the conversation; it does not fail the call.
1758
1860
  */
1759
1861
  a2a_agents?: Array<AssistantA2AAgent>;
1862
+ /**
1863
+ * **Beta:** Configuration for the Telnyx open-source avatar provider. Use a stock
1864
+ * avatar or an organization-owned custom avatar returned by the Avatars API.
1865
+ * Discover the available stock catalog with GET /v2/ai/avatars and
1866
+ * filter[avatar_type]=stock; follow meta.total_pages to load every page.
1867
+ */
1868
+ avatar_settings?: TelnyxAvatarSettings | null;
1760
1869
  /**
1761
1870
  * Conversation flow as returned by the API.
1762
1871
  */
@@ -1958,7 +2067,7 @@ export interface InferenceEmbeddingVoiceSettings {
1958
2067
  * supply a looped MP3 URL. If a media URL is chosen in the portal, customers can
1959
2068
  * preview it before saving.
1960
2069
  */
1961
- background_audio?: InferenceEmbeddingVoiceSettings.UnionMember0 | InferenceEmbeddingVoiceSettings.UnionMember1 | InferenceEmbeddingVoiceSettings.UnionMember2;
2070
+ background_audio?: InferenceEmbeddingVoiceSettings.BackgroundAudioUnionMember0 | InferenceEmbeddingVoiceSettings.BackgroundAudioUnionMember1 | InferenceEmbeddingVoiceSettings.UnionMember2;
1962
2071
  /**
1963
2072
  * Enables emotionally expressive speech using SSML emotion tags. When enabled, the
1964
2073
  * assistant uses audio tags like angry, excited, content, and sad to add emotional
@@ -1993,6 +2102,13 @@ export interface InferenceEmbeddingVoiceSettings {
1993
2102
  * consistent, monotonous output. Only applicable when using ElevenLabs.
1994
2103
  */
1995
2104
  temperature?: number;
2105
+ /**
2106
+ * Optional sound played to the caller while the assistant runs a tool (for example
2107
+ * a webhook or MCP tool). It replaces the background audio until the tool
2108
+ * responds, then the background audio resumes. Defaults to null, which plays no
2109
+ * sound; send `null` on update to clear it. Not played in conference calls.
2110
+ */
2111
+ tool_call_audio?: InferenceEmbeddingVoiceSettings.ToolCallAudioUnionMember0 | InferenceEmbeddingVoiceSettings.ToolCallAudioUnionMember1 | null;
1996
2112
  /**
1997
2113
  * Amplifies similarity to the original speaker voice. Increases computational load
1998
2114
  * and latency slightly. Only applicable when using ElevenLabs.
@@ -2007,7 +2123,7 @@ export interface InferenceEmbeddingVoiceSettings {
2007
2123
  voice_speed?: number;
2008
2124
  }
2009
2125
  export declare namespace InferenceEmbeddingVoiceSettings {
2010
- interface UnionMember0 {
2126
+ interface BackgroundAudioUnionMember0 {
2011
2127
  /**
2012
2128
  * Select from predefined media options.
2013
2129
  */
@@ -2022,7 +2138,7 @@ export declare namespace InferenceEmbeddingVoiceSettings {
2022
2138
  */
2023
2139
  volume?: number;
2024
2140
  }
2025
- interface UnionMember1 {
2141
+ interface BackgroundAudioUnionMember1 {
2026
2142
  /**
2027
2143
  * Provide a direct URL to an MP3 file. The audio will loop during the call.
2028
2144
  */
@@ -2044,6 +2160,31 @@ export declare namespace InferenceEmbeddingVoiceSettings {
2044
2160
  */
2045
2161
  value: string;
2046
2162
  }
2163
+ interface ToolCallAudioUnionMember0 {
2164
+ /**
2165
+ * Select from predefined media options.
2166
+ */
2167
+ type: 'predefined_media';
2168
+ /**
2169
+ * The predefined media to use. `typing` plays a keyboard typing sound.
2170
+ */
2171
+ value: 'typing';
2172
+ /**
2173
+ * Volume level for the predefined media. Supports values from 0.0 to 1.0 in 0.1
2174
+ * increments. `0.0` plays no sound.
2175
+ */
2176
+ volume?: number;
2177
+ }
2178
+ interface ToolCallAudioUnionMember1 {
2179
+ /**
2180
+ * Provide a direct URL to an MP3 file. The audio loops while the tool runs.
2181
+ */
2182
+ type: 'media_url';
2183
+ /**
2184
+ * HTTPS URL to an MP3 file.
2185
+ */
2186
+ value: string;
2187
+ }
2047
2188
  }
2048
2189
  export interface InferenceEmbeddingWebhookToolParams {
2049
2190
  type: 'webhook';
@@ -2412,6 +2553,33 @@ export interface PrivacySettings {
2412
2553
  * border. Defaults to false.
2413
2554
  */
2414
2555
  in_transit_data_locality?: boolean;
2556
+ /**
2557
+ * Controls redaction of personally identifiable information (PII) from the
2558
+ * conversation history that is stored for this assistant. `disabled` (default)
2559
+ * stores content as-is. `redact` replaces detected PII with `<PII:type/>`
2560
+ * placeholders (e.g. `<PII:name/>`, `<PII:phone/>`) as the stored copies are
2561
+ * written: message content (user, assistant, and tool-result messages) and
2562
+ * tool-call arguments are redacted when written to conversation history, so the
2563
+ * stored transcript, its read-back via the history API, and any insights generated
2564
+ * from the stored messages contain the placeholders instead of the PII; response
2565
+ * bodies returned by webhook tools are redacted too, as stored in the webhook logs
2566
+ * — a per-conversation record separate from the transcript. In the Mission Control
2567
+ * Portal this field appears as a "PII Redaction" on/off toggle, where Enabled
2568
+ * corresponds to `redact`. Redaction runs when the stored copy is written, after
2569
+ * the LLM has generated its reply: the live conversation is not redacted, the
2570
+ * assistant's tools keep receiving the full (unredacted) values during the call,
2571
+ * and the LLM still sees full content in its context window. Call recordings
2572
+ * (including any recording layout configured under telephony settings) and the
2573
+ * payloads of messages/webhooks delivered during the call are never redacted by
2574
+ * this setting. The set of detected PII types (names, street addresses, phone
2575
+ * numbers, email addresses, government identifiers like SSN and driver's license
2576
+ * numbers, credit card and bank account numbers, IP addresses, dates of birth, and
2577
+ * other identifiers unique to a person) is fixed by Telnyx and cannot be
2578
+ * configured or extended per assistant. Assistants with `redact` cannot be used
2579
+ * for SMS/WhatsApp messaging (that combination is rejected with a 400 error);
2580
+ * voice and web chat are unaffected.
2581
+ */
2582
+ pii_redaction?: 'disabled' | 'redact';
2415
2583
  }
2416
2584
  /**
2417
2585
  * Whether to auto-publish the assistant's instructions as a Langfuse prompt.
@@ -2524,6 +2692,15 @@ export interface StartSpeakingPlan {
2524
2692
  wait_seconds?: number;
2525
2693
  }
2526
2694
  export interface TelephonySettings {
2695
+ /**
2696
+ * When enabled, the `messages` array of the `call.conversation.ended` webhook
2697
+ * contains the full conversation history in order: user and assistant turns,
2698
+ * assistant tool calls (`tool_calls`), tool results (`role: tool` with
2699
+ * `tool_call_id`), and informational `system` and `developer` entries. The
2700
+ * assistant's instructions are never included. When disabled, `messages` contains
2701
+ * only user and assistant text turns.
2702
+ */
2703
+ conversation_ended_full_history?: boolean;
2527
2704
  /**
2528
2705
  * Default Texml App used for voice calls with your assistant. This will be created
2529
2706
  * automatically on assistant creation.
@@ -2581,9 +2758,16 @@ export interface TelephonySettings {
2581
2758
  supports_unauthenticated_web_calls?: boolean;
2582
2759
  /**
2583
2760
  * Maximum duration in seconds for the AI assistant to participate on the call.
2584
- * When this limit is reached the assistant will be stopped. This limit does not
2585
- * apply to portions of a call without an active assistant (for instance, a call
2586
- * transferred to a human representative).
2761
+ * When this limit is reached the assistant will be stopped. Stopping the assistant
2762
+ * does not itself hang up the call, and what happens next depends on how the
2763
+ * assistant is running. On Call Control (ai_assistant_start) the call leg stays
2764
+ * connected and continues to be billed until it is hung up (for example with the
2765
+ * Hangup call command) or until the call ends for another reason. On TeXML, the
2766
+ * assistant's `<Connect><AIAssistant>` instruction ends; in the default TeXML
2767
+ * setup for assistants no instructions follow it, so the call is hung up. Your
2768
+ * application receives a call.conversation.ended webhook when the assistant stops.
2769
+ * This limit does not apply to portions of a call without an active assistant (for
2770
+ * instance, a call transferred to a human representative).
2587
2771
  */
2588
2772
  time_limit_secs?: number;
2589
2773
  /**
@@ -2594,9 +2778,16 @@ export interface TelephonySettings {
2594
2778
  user_idle_reply_secs?: number;
2595
2779
  /**
2596
2780
  * Maximum duration in seconds of end user silence on the call. When this limit is
2597
- * reached the assistant will be stopped. This limit does not apply to portions of
2598
- * a call without an active assistant (for instance, a call transferred to a human
2599
- * representative).
2781
+ * reached the assistant will be stopped. Stopping the assistant does not itself
2782
+ * hang up the call, and what happens next depends on how the assistant is running.
2783
+ * On Call Control (ai_assistant_start) the call leg stays connected and continues
2784
+ * to be billed until it is hung up (for example with the Hangup call command) or
2785
+ * until the call ends for another reason. On TeXML, the assistant's
2786
+ * `<Connect><AIAssistant>` instruction ends; in the default TeXML setup for
2787
+ * assistants no instructions follow it, so the call is hung up. Your application
2788
+ * receives a call.conversation.ended webhook when the assistant stops. This limit
2789
+ * does not apply to portions of a call without an active assistant (for instance,
2790
+ * a call transferred to a human representative).
2600
2791
  */
2601
2792
  user_idle_timeout_secs?: number;
2602
2793
  /**
@@ -2722,6 +2913,31 @@ export declare namespace TelephonySettings {
2722
2913
  }
2723
2914
  }
2724
2915
  }
2916
+ /**
2917
+ * **Beta:** Configuration for the Telnyx open-source avatar provider. Use a stock
2918
+ * avatar or an organization-owned custom avatar returned by the Avatars API.
2919
+ * Discover the available stock catalog with GET /v2/ai/avatars and
2920
+ * filter[avatar_type]=stock; follow meta.total_pages to load every page.
2921
+ */
2922
+ export interface TelnyxAvatarSettings {
2923
+ /**
2924
+ * The Telnyx stock avatar or organization-owned custom avatar to render.
2925
+ */
2926
+ avatar_id: AvatarsAPI.AvatarID;
2927
+ /**
2928
+ * The background to render.
2929
+ */
2930
+ background_id: 'office' | 'studio' | 'reception' | 'illustrated_workspace';
2931
+ /**
2932
+ * Required avatar model identifier, separate from `avatar_id`. The supported value
2933
+ * is `foxtrot-1`. Omission, null, and unsupported model identifiers are rejected.
2934
+ */
2935
+ model: 'foxtrot-1';
2936
+ /**
2937
+ * Selects the Telnyx open-source avatar provider.
2938
+ */
2939
+ provider: 'telnyx';
2940
+ }
2725
2941
  /**
2726
2942
  * A standalone tool step in a conversation flow, as returned by the API.
2727
2943
  */
@@ -2845,6 +3061,22 @@ export interface TranscriptionSettings {
2845
3061
  * used for Azure transcription regions that require a customer-provided API key.
2846
3062
  */
2847
3063
  api_key_ref?: string;
3064
+ /**
3065
+ * A second speech-to-text model that transcribes alongside `transcription.model`,
3066
+ * and the rule that decides which transcript the assistant uses.
3067
+ */
3068
+ challenger?: TranscriptionSettings.Challenger | null;
3069
+ /**
3070
+ * Up to 3 streaming models that take over transcription, in this order, when the
3071
+ * model in use fails, at the start of a call or mid-call. `model` must be a
3072
+ * streaming model too, and must support `language` alongside other models. On
3073
+ * update, a list replaces the stored one: omit the field to keep the stored list,
3074
+ * or send `null` or `[]` to remove it. When an update changes `model` or
3075
+ * `language`, stored fallbacks that no longer fit are removed without an error.
3076
+ * Can't be combined with `challenger`, the language booster; to replace a stored
3077
+ * language booster, send `challenger: null` in the same request.
3078
+ */
3079
+ fallback_models?: Array<TranscriptionSettings.FallbackModel> | null;
2848
3080
  /**
2849
3081
  * The language of the audio to be transcribed. If not set, or if set to `auto`,
2850
3082
  * supported models will automatically detect the language. For `deepgram/flux`,
@@ -2862,7 +3094,12 @@ export interface TranscriptionSettings {
2862
3094
  * `nl`, `en`, `fr`, `fy`, `de`, `it`, `pl`, `pt`, `es`, and `sv` to fix the
2863
3095
  * transcription language. For `cohere/ar-stt`, supported values are `ar` and `en`;
2864
3096
  * unlike other models, this model does not auto-detect and defaults to `ar` when
2865
- * `language` is omitted.
3097
+ * `language` is omitted. For `speechmatics/linden-1`, there is no auto-detect; set
3098
+ * a code from Speechmatics' Realtime language list (67 language codes, including
3099
+ * `es-bilingual-en` for Spanish and English bilingual, and the spelling and script
3100
+ * variants `en-US`, `en-GB`, `en-AU`, `cmn-Hans`, and `cmn-Hant`; `en` alone uses
3101
+ * the default spelling); unset defaults to `en`, while an explicit `auto`,
3102
+ * `auto_beta`, or `multi` is rejected with a 400.
2866
3103
  */
2867
3104
  language?: string;
2868
3105
  /**
@@ -2872,6 +3109,12 @@ export interface TranscriptionSettings {
2872
3109
  * - `deepgram/flux` is optimized for turn-taking with multilingual language hints.
2873
3110
  * - `deepgram/nova-3` is multilingual with automatic language detection.
2874
3111
  * - `deepgram/nova-2` is Deepgram's previous-generation multilingual model.
3112
+ * - `speechmatics/standard` is a Speechmatics model self-hosted by Telnyx; it
3113
+ * supports a fixed set of language packs (including bilingual packs such as
3114
+ * `ar_en`) and defaults to `en`.
3115
+ * - `speechmatics/linden-1` (preview) is a vendor-hosted streaming model with no
3116
+ * auto-detect; set `language` from Speechmatics' Realtime language list
3117
+ * (defaults to `en`).
2875
3118
  * - `azure/fast` is a multilingual Azure transcription model.
2876
3119
  * - `assemblyai/universal-3-5-pro` is a multilingual streaming model with
2877
3120
  * configurable turn detection. The legacy alias `assemblyai/universal-streaming`
@@ -2889,8 +3132,9 @@ export interface TranscriptionSettings {
2889
3132
  * - `reson8/turns` is a turn-based streaming model covering 10 European languages
2890
3133
  * with automatic language detection.
2891
3134
  * - `cohere/ar-stt` is a non-streaming Arabic and English transcription model.
3135
+ * - `telnyx/basira` is a non-streaming Arabic transcription model.
2892
3136
  */
2893
- model?: 'deepgram/flux' | 'deepgram/nova-3' | 'deepgram/nova-2' | 'azure/fast' | 'assemblyai/universal-3-5-pro' | 'assemblyai/universal-streaming' | 'xai/grok-stt' | 'soniox/stt-rt-v4' | 'soniox/stt-rt-v5' | 'nvidia/parakeet-v3' | 'omi-health/omi-med-stt-v1' | 'humain/realtime' | 'reson8/turns' | 'cohere/ar-stt' | 'distil-whisper/distil-large-v2' | 'openai/whisper-large-v3-turbo';
3137
+ model?: 'deepgram/flux' | 'deepgram/nova-3' | 'deepgram/nova-2' | 'speechmatics/standard' | 'speechmatics/linden-1' | 'azure/fast' | 'assemblyai/universal-3-5-pro' | 'assemblyai/universal-streaming' | 'xai/grok-stt' | 'soniox/stt-rt-v4' | 'soniox/stt-rt-v5' | 'nvidia/parakeet-v3' | 'omi-health/omi-med-stt-v1' | 'humain/realtime' | 'reson8/turns' | 'cohere/ar-stt' | 'telnyx/basira' | 'distil-whisper/distil-large-v2' | 'openai/whisper-large-v3-turbo';
2894
3138
  /**
2895
3139
  * Region on third party cloud providers (currently Azure) if using one of their
2896
3140
  * models. Some regions require `api_key_ref`.
@@ -2898,6 +3142,90 @@ export interface TranscriptionSettings {
2898
3142
  region?: string;
2899
3143
  settings?: TranscriptionSettingsConfig;
2900
3144
  }
3145
+ export declare namespace TranscriptionSettings {
3146
+ /**
3147
+ * A second speech-to-text model that transcribes alongside `transcription.model`,
3148
+ * and the rule that decides which transcript the assistant uses.
3149
+ */
3150
+ interface Challenger {
3151
+ /**
3152
+ * The language booster's model. It must be the same kind of model as
3153
+ * `transcription.model`: both streaming (`deepgram/flux`, `deepgram/nova-3`,
3154
+ * `deepgram/nova-2`, `assemblyai/universal-3-5-pro` or its legacy alias
3155
+ * `assemblyai/universal-streaming`, `xai/grok-stt`, `soniox/stt-rt-v4`,
3156
+ * `soniox/stt-rt-v5`, `humain/realtime`, `reson8/turns`) or both non-streaming
3157
+ * (`azure/fast`, `nvidia/parakeet-v3`, `omi-health/omi-med-stt-v1`,
3158
+ * `cohere/ar-stt`, `distil-whisper/distil-large-v2`,
3159
+ * `openai/whisper-large-v3-turbo`, `telnyx/basira`). It can be the same model as
3160
+ * `transcription.model` on a different `language`.
3161
+ */
3162
+ model: 'deepgram/flux' | 'deepgram/nova-3' | 'deepgram/nova-2' | 'azure/fast' | 'assemblyai/universal-3-5-pro' | 'assemblyai/universal-streaming' | 'xai/grok-stt' | 'soniox/stt-rt-v4' | 'soniox/stt-rt-v5' | 'nvidia/parakeet-v3' | 'omi-health/omi-med-stt-v1' | 'humain/realtime' | 'reson8/turns' | 'cohere/ar-stt' | 'telnyx/basira' | 'distil-whisper/distil-large-v2' | 'openai/whisper-large-v3-turbo';
3163
+ /**
3164
+ * The language this model transcribes. Omit it or set it to `null` to use the
3165
+ * language of `transcription.model`. The request is rejected when this model
3166
+ * doesn't support the language it would run. It is also rejected when it would run
3167
+ * the same model on the same language as `transcription.model`.
3168
+ */
3169
+ language?: string | null;
3170
+ /**
3171
+ * How the assistant picks the transcript it uses. The models are compared on how
3172
+ * complete and confident their transcripts are, not on language, so the rules work
3173
+ * best when both models understand the callers' language.
3174
+ *
3175
+ * - `best_turn` (default): both models transcribe the whole call. Each turn uses
3176
+ * the language booster's transcript only when it scores higher than the
3177
+ * transcript of `transcription.model` (clearly higher with non-streaming
3178
+ * models). With streaming models, `transcription.model` also decides when each
3179
+ * turn ends. Available for every pair.
3180
+ * - `best_engine`: both models transcribe the first turns, then the call continues
3181
+ * alone on the model whose transcripts scored higher. If neither clearly leads,
3182
+ * `transcription.model` continues. Streaming models only.
3183
+ * - `merge_words`: both models transcribe each utterance and their words are
3184
+ * merged, keeping Arabic and English spoken in the same sentence. Available only
3185
+ * for `telnyx/basira` with `cohere/ar-stt`, in either order. The pair runs on
3186
+ * the language that applies to `telnyx/basira` (its own, or that of
3187
+ * `transcription.model`), which must be Arabic (`ar` or an `ar-` locale),
3188
+ * `multi`, or `auto`.
3189
+ */
3190
+ rule?: 'best_turn' | 'best_engine' | 'merge_words';
3191
+ /**
3192
+ * Settings for the language booster, with the same fields and limits as
3193
+ * `transcription.settings`. Fields that don't apply to this model's provider are
3194
+ * dropped, and the provider's defaults fill in the rest. Omit it or set it to
3195
+ * `null` to use the settings of `transcription.model` where they apply to this
3196
+ * model.
3197
+ */
3198
+ settings?: AssistantsAPI.TranscriptionSettingsConfig | null;
3199
+ }
3200
+ /**
3201
+ * A streaming speech-to-text model that takes over transcription when the model in
3202
+ * use fails.
3203
+ */
3204
+ interface FallbackModel {
3205
+ /**
3206
+ * The fallback model. It must be a streaming model other than
3207
+ * `transcription.model` and the other fallbacks: `deepgram/flux`,
3208
+ * `deepgram/nova-3`, `deepgram/nova-2`, `assemblyai/universal-3-5-pro` (or its
3209
+ * legacy alias `assemblyai/universal-streaming`), `xai/grok-stt`,
3210
+ * `soniox/stt-rt-v4`, `soniox/stt-rt-v5`, `humain/realtime`, or `reson8/turns`.
3211
+ */
3212
+ model: 'deepgram/flux' | 'deepgram/nova-3' | 'deepgram/nova-2' | 'assemblyai/universal-3-5-pro' | 'assemblyai/universal-streaming' | 'xai/grok-stt' | 'soniox/stt-rt-v4' | 'soniox/stt-rt-v5' | 'humain/realtime' | 'reson8/turns';
3213
+ /**
3214
+ * The language the fallback transcribes. Omit it or set it to `null` to use the
3215
+ * language of `transcription.model`. The request is rejected when the fallback
3216
+ * model doesn't support the language it would run.
3217
+ */
3218
+ language?: string | null;
3219
+ /**
3220
+ * Settings for the fallback, with the same fields and limits as
3221
+ * `transcription.settings`. Fields that don't apply to this model's provider are
3222
+ * dropped, and the provider's defaults fill in the rest. Omit it or set it to
3223
+ * `null` to use the settings of `transcription.model` where they apply to this
3224
+ * model.
3225
+ */
3226
+ settings?: AssistantsAPI.TranscriptionSettingsConfig | null;
3227
+ }
3228
+ }
2901
3229
  export interface TranscriptionSettingsConfig {
2902
3230
  /**
2903
3231
  * Available only for soniox/stt-rt-v4 and soniox/stt-rt-v5. A comma-separated list
@@ -2922,9 +3250,9 @@ export interface TranscriptionSettingsConfig {
2922
3250
  */
2923
3251
  enable_endpoint_detection?: boolean;
2924
3252
  /**
2925
- * Available only for assemblyai/universal-3-5-pro (and its legacy alias
2926
- * assemblyai/universal-streaming). Confidence level required to trigger an end of
2927
- * turn. Higher values require more certainty before ending a turn.
3253
+ * @deprecated Deprecated and ignored. Accepted for backwards compatibility.
3254
+ * AssemblyAI turn detection is configured with min_turn_silence and
3255
+ * max_turn_silence.
2928
3256
  */
2929
3257
  end_of_turn_confidence_threshold?: number;
2930
3258
  /**
@@ -2943,10 +3271,13 @@ export interface TranscriptionSettingsConfig {
2943
3271
  */
2944
3272
  interim_results?: boolean;
2945
3273
  /**
2946
- * Available only for deepgram/nova-3 and deepgram/flux. A comma-separated list of
2947
- * key terms to boost for recognition during transcription. Helps improve accuracy
2948
- * for domain-specific terminology, proper nouns, or uncommon words. This field may
2949
- * be templated with
3274
+ * A comma-separated list of key terms to boost for recognition during
3275
+ * transcription, used by Deepgram, Reson8, Speechmatics Linden 1 and AssemblyAI
3276
+ * models. Helps improve accuracy for domain-specific terminology, proper nouns, or
3277
+ * uncommon words. At most 1000 characters in total. For
3278
+ * assemblyai/universal-3-5-pro (and its legacy alias
3279
+ * assemblyai/universal-streaming), also at most 100 terms of up to 50 characters
3280
+ * each. This field may be templated with
2950
3281
  * [dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables)
2951
3282
  * using mustache syntax (e.g. `Telnyx,{{customer_name}},VoIP`). Variables are
2952
3283
  * resolved at call time before the value is sent to the speech-to-text engine.
@@ -2977,6 +3308,22 @@ export interface TranscriptionSettingsConfig {
2977
3308
  */
2978
3309
  min_turn_silence?: number;
2979
3310
  numerals?: boolean;
3311
+ /**
3312
+ * Available only for assemblyai/universal-3-5-pro (and its legacy alias
3313
+ * assemblyai/universal-streaming). Context about the conversation (domain, names,
3314
+ * terms) to improve transcription; describe the content, do not give instructions.
3315
+ * Leave empty unless needed. At most 1750 characters.
3316
+ */
3317
+ prompt?: string;
3318
+ /**
3319
+ * Available only for speechmatics/linden-1. When true, filler words such as "um"
3320
+ * and "uh" are removed from the transcript. Disfluency removal is supported only
3321
+ * for `ar`, `cmn`, `da`, `de`, `el`, `en`, `es`, `fr`, `he`, `hi`, `hu`, `it`,
3322
+ * `ja`, `nl`, `pl`, `pt`, and `ru`, determined by the base language (so `en-US`,
3323
+ * `en-GB`, `en-AU`, `cmn-Hans`, and `cmn-Hant` are supported); for other
3324
+ * languages, filler words remain in the transcript.
3325
+ */
3326
+ remove_disfluencies?: boolean;
2980
3327
  smart_format?: boolean;
2981
3328
  }
2982
3329
  export interface TransferTool {
@@ -3377,6 +3724,13 @@ export interface AssistantCreateParams {
3377
3724
  * that capability for the conversation; it does not fail the call.
3378
3725
  */
3379
3726
  a2a_agents?: Array<AssistantA2AAgent>;
3727
+ /**
3728
+ * Body param: **Beta:** Configuration for the Telnyx open-source avatar provider.
3729
+ * Use a stock avatar or an organization-owned custom avatar returned by the
3730
+ * Avatars API. Discover the available stock catalog with GET /v2/ai/avatars and
3731
+ * filter[avatar_type]=stock; follow meta.total_pages to load every page.
3732
+ */
3733
+ avatar_settings?: AvatarSettingsRequest | null;
3380
3734
  /**
3381
3735
  * Body param: Conversation flow as supplied by API clients (create / update).
3382
3736
  *
@@ -3626,6 +3980,13 @@ export interface AssistantUpdateParams {
3626
3980
  * leave the assistant's agents unchanged; send an empty array to remove them all.
3627
3981
  */
3628
3982
  a2a_agents?: Array<AssistantA2AAgent>;
3983
+ /**
3984
+ * **Beta:** Configuration for the Telnyx open-source avatar provider. Use a stock
3985
+ * avatar or an organization-owned custom avatar returned by the Avatars API.
3986
+ * Discover the available stock catalog with GET /v2/ai/avatars and
3987
+ * filter[avatar_type]=stock; follow meta.total_pages to load every page.
3988
+ */
3989
+ avatar_settings?: AvatarSettingsRequest | null;
3629
3990
  /**
3630
3991
  * Conversation flow as supplied by API clients (create / update).
3631
3992
  *
@@ -3896,7 +4257,7 @@ export interface AssistantWhatsappParams {
3896
4257
  'Idempotency-Key'?: string;
3897
4258
  }
3898
4259
  export declare namespace Assistants {
3899
- export { type ArithmeticExpression as ArithmeticExpression, type Assistant as Assistant, type AssistantA2AAgent as AssistantA2AAgent, type AssistantIntegration as AssistantIntegration, type AssistantMcpServer as AssistantMcpServer, type AssistantTool as AssistantTool, type AssistantsList as AssistantsList, type AudioVisualizerConfig as AudioVisualizerConfig, type AuthenticationMethod as AuthenticationMethod, type BooleanOpExpression as BooleanOpExpression, type ComparisonExpression as ComparisonExpression, type ConversationFlow as ConversationFlow, type ConversationFlowReq as ConversationFlowReq, type DelegationSettings as DelegationSettings, type EnabledFeatures as EnabledFeatures, type Expression as Expression, type ExternalLlm as ExternalLlm, type ExternalLlmReq as ExternalLlmReq, type FallbackConfig as FallbackConfig, type FallbackConfigReq as FallbackConfigReq, type FlowEdge as FlowEdge, type FlowNode as FlowNode, type FlowNodeReq as FlowNodeReq, type HangupTool as HangupTool, type HangupToolParams as HangupToolParams, type ImportMetadata as ImportMetadata, type InferenceEmbedding as InferenceEmbedding, type InferenceEmbeddingInterruptionSettings as InferenceEmbeddingInterruptionSettings, type InferenceEmbeddingVoiceSettings as InferenceEmbeddingVoiceSettings, type InferenceEmbeddingWebhookToolParams as InferenceEmbeddingWebhookToolParams, type InsightSettings as InsightSettings, type MessagingSettings as MessagingSettings, type NodePosition as NodePosition, type Observability as Observability, type ObservabilityReq as ObservabilityReq, type ObservabilityStatus as ObservabilityStatus, type PostConversationSettings as PostConversationSettings, type PostConversationSettingsReq as PostConversationSettingsReq, type PrivacySettings as PrivacySettings, type PromptSyncStatus as PromptSyncStatus, type RetrievalTool as RetrievalTool, type SpeakNode as SpeakNode, type SpeakNodeReq as SpeakNodeReq, type StartSpeakingPlan as StartSpeakingPlan, type TelephonySettings as TelephonySettings, type ToolNode as ToolNode, type ToolNodeReq as ToolNodeReq, type TranscriptionEndpointingPlan as TranscriptionEndpointingPlan, type TranscriptionSettings as TranscriptionSettings, type TranscriptionSettingsConfig as TranscriptionSettingsConfig, type TransferTool as TransferTool, type VoiceSettings as VoiceSettings, type WebhookTool as WebhookTool, type WebsocketSettings as WebsocketSettings, type WidgetSettings as WidgetSettings, type AssistantDeleteResponse as AssistantDeleteResponse, type AssistantChatResponse as AssistantChatResponse, type AssistantGetTexmlResponse as AssistantGetTexmlResponse, type AssistantSendSMSResponse as AssistantSendSMSResponse, type AssistantWhatsappResponse as AssistantWhatsappResponse, type AssistantCreateParams as AssistantCreateParams, type AssistantImportsParams as AssistantImportsParams, type AssistantDeleteParams as AssistantDeleteParams, type AssistantRetrieveParams as AssistantRetrieveParams, type AssistantUpdateParams as AssistantUpdateParams, type AssistantChatParams as AssistantChatParams, type AssistantCloneParams as AssistantCloneParams, type AssistantSendSMSParams as AssistantSendSMSParams, type AssistantWhatsappParams as AssistantWhatsappParams, };
4260
+ export { type ArithmeticExpression as ArithmeticExpression, type Assistant as Assistant, type AssistantA2AAgent as AssistantA2AAgent, type AssistantIntegration as AssistantIntegration, type AssistantMcpServer as AssistantMcpServer, type AssistantTool as AssistantTool, type AssistantsList as AssistantsList, type AudioVisualizerConfig as AudioVisualizerConfig, type AuthenticationMethod as AuthenticationMethod, type AvatarSettingsRequest as AvatarSettingsRequest, type BooleanOpExpression as BooleanOpExpression, type ComparisonExpression as ComparisonExpression, type ConversationFlow as ConversationFlow, type ConversationFlowReq as ConversationFlowReq, type DelegationSettings as DelegationSettings, type EnabledFeatures as EnabledFeatures, type Expression as Expression, type ExternalLlm as ExternalLlm, type ExternalLlmReq as ExternalLlmReq, type FallbackConfig as FallbackConfig, type FallbackConfigReq as FallbackConfigReq, type FlowEdge as FlowEdge, type FlowNode as FlowNode, type FlowNodeReq as FlowNodeReq, type HangupTool as HangupTool, type HangupToolParams as HangupToolParams, type ImportMetadata as ImportMetadata, type InferenceEmbedding as InferenceEmbedding, type InferenceEmbeddingInterruptionSettings as InferenceEmbeddingInterruptionSettings, type InferenceEmbeddingVoiceSettings as InferenceEmbeddingVoiceSettings, type InferenceEmbeddingWebhookToolParams as InferenceEmbeddingWebhookToolParams, type InsightSettings as InsightSettings, type MessagingSettings as MessagingSettings, type NodePosition as NodePosition, type Observability as Observability, type ObservabilityReq as ObservabilityReq, type ObservabilityStatus as ObservabilityStatus, type PostConversationSettings as PostConversationSettings, type PostConversationSettingsReq as PostConversationSettingsReq, type PrivacySettings as PrivacySettings, type PromptSyncStatus as PromptSyncStatus, type RetrievalTool as RetrievalTool, type SpeakNode as SpeakNode, type SpeakNodeReq as SpeakNodeReq, type StartSpeakingPlan as StartSpeakingPlan, type TelephonySettings as TelephonySettings, type TelnyxAvatarSettings as TelnyxAvatarSettings, type ToolNode as ToolNode, type ToolNodeReq as ToolNodeReq, type TranscriptionEndpointingPlan as TranscriptionEndpointingPlan, type TranscriptionSettings as TranscriptionSettings, type TranscriptionSettingsConfig as TranscriptionSettingsConfig, type TransferTool as TransferTool, type VoiceSettings as VoiceSettings, type WebhookTool as WebhookTool, type WebsocketSettings as WebsocketSettings, type WidgetSettings as WidgetSettings, type AssistantDeleteResponse as AssistantDeleteResponse, type AssistantChatResponse as AssistantChatResponse, type AssistantGetTexmlResponse as AssistantGetTexmlResponse, type AssistantSendSMSResponse as AssistantSendSMSResponse, type AssistantWhatsappResponse as AssistantWhatsappResponse, type AssistantCreateParams as AssistantCreateParams, type AssistantImportsParams as AssistantImportsParams, type AssistantDeleteParams as AssistantDeleteParams, type AssistantRetrieveParams as AssistantRetrieveParams, type AssistantUpdateParams as AssistantUpdateParams, type AssistantChatParams as AssistantChatParams, type AssistantCloneParams as AssistantCloneParams, type AssistantSendSMSParams as AssistantSendSMSParams, type AssistantWhatsappParams as AssistantWhatsappParams, };
3900
4261
  export { Tests as Tests, type AssistantTest as AssistantTest, type TelnyxConversationChannel as TelnyxConversationChannel, type AssistantTestsDefaultFlatPagination as AssistantTestsDefaultFlatPagination, type TestListParams as TestListParams, type TestCreateParams as TestCreateParams, type TestUpdateParams as TestUpdateParams, };
3901
4262
  export { CanaryDeploys as CanaryDeploys, type CanaryDeploy as CanaryDeploy, type CanaryDeployResponse as CanaryDeployResponse, type Clause as Clause, type RolloutSlot as RolloutSlot, type RuleInput as RuleInput, type RuleOutput as RuleOutput, type Serve as Serve, type CanaryDeployCreateParams as CanaryDeployCreateParams, type CanaryDeployUpdateParams as CanaryDeployUpdateParams, };
3902
4263
  export { ScheduledEvents as ScheduledEvents, type ConversationChannelType as ConversationChannelType, type EventStatus as EventStatus, type ScheduledCallSettings as ScheduledCallSettings, type ScheduledEventResponse as ScheduledEventResponse, type ScheduledPhoneCallEventResponse as ScheduledPhoneCallEventResponse, type ScheduledSMSEventResponse as ScheduledSMSEventResponse, type ScheduledEventListResponse as ScheduledEventListResponse, type ScheduledEventListResponsesDefaultFlatPagination as ScheduledEventListResponsesDefaultFlatPagination, type ScheduledEventListParams as ScheduledEventListParams, type ScheduledEventCreateParams as ScheduledEventCreateParams, type ScheduledEventDeleteParams as ScheduledEventDeleteParams, type ScheduledEventRetrieveParams as ScheduledEventRetrieveParams, };