telnyx 7.24.0 → 7.26.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 (536) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/client.d.mts +27 -6
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +27 -6
  5. package/client.d.ts.map +1 -1
  6. package/client.js +21 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +21 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/ai/ai.d.mts +16 -6
  12. package/resources/ai/ai.d.mts.map +1 -1
  13. package/resources/ai/ai.d.ts +16 -6
  14. package/resources/ai/ai.d.ts.map +1 -1
  15. package/resources/ai/ai.js +4 -0
  16. package/resources/ai/ai.js.map +1 -1
  17. package/resources/ai/ai.mjs +4 -0
  18. package/resources/ai/ai.mjs.map +1 -1
  19. package/resources/ai/assistants/assistants.d.mts +551 -33
  20. package/resources/ai/assistants/assistants.d.mts.map +1 -1
  21. package/resources/ai/assistants/assistants.d.ts +551 -33
  22. package/resources/ai/assistants/assistants.d.ts.map +1 -1
  23. package/resources/ai/assistants/assistants.js +79 -2
  24. package/resources/ai/assistants/assistants.js.map +1 -1
  25. package/resources/ai/assistants/assistants.mjs +79 -2
  26. package/resources/ai/assistants/assistants.mjs.map +1 -1
  27. package/resources/ai/assistants/deleted.d.mts +60 -0
  28. package/resources/ai/assistants/deleted.d.mts.map +1 -0
  29. package/resources/ai/assistants/deleted.d.ts +60 -0
  30. package/resources/ai/assistants/deleted.d.ts.map +1 -0
  31. package/resources/ai/assistants/deleted.js +49 -0
  32. package/resources/ai/assistants/deleted.js.map +1 -0
  33. package/resources/ai/assistants/deleted.mjs +45 -0
  34. package/resources/ai/assistants/deleted.mjs.map +1 -0
  35. package/resources/ai/assistants/index.d.mts +2 -1
  36. package/resources/ai/assistants/index.d.mts.map +1 -1
  37. package/resources/ai/assistants/index.d.ts +2 -1
  38. package/resources/ai/assistants/index.d.ts.map +1 -1
  39. package/resources/ai/assistants/index.js +3 -1
  40. package/resources/ai/assistants/index.js.map +1 -1
  41. package/resources/ai/assistants/index.mjs +1 -0
  42. package/resources/ai/assistants/index.mjs.map +1 -1
  43. package/resources/ai/assistants/versions.d.mts +48 -0
  44. package/resources/ai/assistants/versions.d.mts.map +1 -1
  45. package/resources/ai/assistants/versions.d.ts +48 -0
  46. package/resources/ai/assistants/versions.d.ts.map +1 -1
  47. package/resources/ai/avatars.d.mts +187 -0
  48. package/resources/ai/avatars.d.mts.map +1 -0
  49. package/resources/ai/avatars.d.ts +187 -0
  50. package/resources/ai/avatars.d.ts.map +1 -0
  51. package/resources/ai/avatars.js +93 -0
  52. package/resources/ai/avatars.js.map +1 -0
  53. package/resources/ai/avatars.mjs +89 -0
  54. package/resources/ai/avatars.mjs.map +1 -0
  55. package/resources/ai/chat.d.mts +21 -2
  56. package/resources/ai/chat.d.mts.map +1 -1
  57. package/resources/ai/chat.d.ts +21 -2
  58. package/resources/ai/chat.d.ts.map +1 -1
  59. package/resources/ai/conversations/conversations.d.mts +8 -0
  60. package/resources/ai/conversations/conversations.d.mts.map +1 -1
  61. package/resources/ai/conversations/conversations.d.ts +8 -0
  62. package/resources/ai/conversations/conversations.d.ts.map +1 -1
  63. package/resources/ai/conversations/conversations.js.map +1 -1
  64. package/resources/ai/conversations/conversations.mjs.map +1 -1
  65. package/resources/ai/embeddings/embeddings.d.mts +1 -1
  66. package/resources/ai/embeddings/embeddings.d.ts +1 -1
  67. package/resources/ai/embeddings/embeddings.js +1 -1
  68. package/resources/ai/embeddings/embeddings.mjs +1 -1
  69. package/resources/ai/index.d.mts +3 -2
  70. package/resources/ai/index.d.mts.map +1 -1
  71. package/resources/ai/index.d.ts +3 -2
  72. package/resources/ai/index.d.ts.map +1 -1
  73. package/resources/ai/index.js +3 -1
  74. package/resources/ai/index.js.map +1 -1
  75. package/resources/ai/index.mjs +1 -0
  76. package/resources/ai/index.mjs.map +1 -1
  77. package/resources/ai/memory/index.d.mts +1 -1
  78. package/resources/ai/memory/index.d.mts.map +1 -1
  79. package/resources/ai/memory/index.d.ts +1 -1
  80. package/resources/ai/memory/index.d.ts.map +1 -1
  81. package/resources/ai/memory/index.js.map +1 -1
  82. package/resources/ai/memory/index.mjs +1 -1
  83. package/resources/ai/memory/index.mjs.map +1 -1
  84. package/resources/ai/memory/memory.d.mts +2 -2
  85. package/resources/ai/memory/memory.d.mts.map +1 -1
  86. package/resources/ai/memory/memory.d.ts +2 -2
  87. package/resources/ai/memory/memory.d.ts.map +1 -1
  88. package/resources/ai/memory/memory.js.map +1 -1
  89. package/resources/ai/memory/memory.mjs +1 -1
  90. package/resources/ai/memory/memory.mjs.map +1 -1
  91. package/resources/ai/memory/namespaces/index.d.mts +2 -2
  92. package/resources/ai/memory/namespaces/index.d.mts.map +1 -1
  93. package/resources/ai/memory/namespaces/index.d.ts +2 -2
  94. package/resources/ai/memory/namespaces/index.d.ts.map +1 -1
  95. package/resources/ai/memory/namespaces/index.js.map +1 -1
  96. package/resources/ai/memory/namespaces/index.mjs +1 -1
  97. package/resources/ai/memory/namespaces/index.mjs.map +1 -1
  98. package/resources/ai/memory/namespaces/namespaces.d.mts +62 -6
  99. package/resources/ai/memory/namespaces/namespaces.d.mts.map +1 -1
  100. package/resources/ai/memory/namespaces/namespaces.d.ts +62 -6
  101. package/resources/ai/memory/namespaces/namespaces.d.ts.map +1 -1
  102. package/resources/ai/memory/namespaces/namespaces.js +41 -3
  103. package/resources/ai/memory/namespaces/namespaces.js.map +1 -1
  104. package/resources/ai/memory/namespaces/namespaces.mjs +41 -3
  105. package/resources/ai/memory/namespaces/namespaces.mjs.map +1 -1
  106. package/resources/ai/memory/namespaces/profiles/index.d.mts +1 -1
  107. package/resources/ai/memory/namespaces/profiles/index.d.mts.map +1 -1
  108. package/resources/ai/memory/namespaces/profiles/index.d.ts +1 -1
  109. package/resources/ai/memory/namespaces/profiles/index.d.ts.map +1 -1
  110. package/resources/ai/memory/namespaces/profiles/index.js.map +1 -1
  111. package/resources/ai/memory/namespaces/profiles/index.mjs.map +1 -1
  112. package/resources/ai/memory/namespaces/profiles/profiles.d.mts +54 -1
  113. package/resources/ai/memory/namespaces/profiles/profiles.d.mts.map +1 -1
  114. package/resources/ai/memory/namespaces/profiles/profiles.d.ts +54 -1
  115. package/resources/ai/memory/namespaces/profiles/profiles.d.ts.map +1 -1
  116. package/resources/ai/memory/namespaces/profiles/profiles.js +31 -0
  117. package/resources/ai/memory/namespaces/profiles/profiles.js.map +1 -1
  118. package/resources/ai/memory/namespaces/profiles/profiles.mjs +31 -0
  119. package/resources/ai/memory/namespaces/profiles/profiles.mjs.map +1 -1
  120. package/resources/ai/openai/chat.d.mts +21 -2
  121. package/resources/ai/openai/chat.d.mts.map +1 -1
  122. package/resources/ai/openai/chat.d.ts +21 -2
  123. package/resources/ai/openai/chat.d.ts.map +1 -1
  124. package/resources/ai/tools.d.mts +20 -5
  125. package/resources/ai/tools.d.mts.map +1 -1
  126. package/resources/ai/tools.d.ts +20 -5
  127. package/resources/ai/tools.d.ts.map +1 -1
  128. package/resources/ai/tools.js +5 -2
  129. package/resources/ai/tools.js.map +1 -1
  130. package/resources/ai/tools.mjs +5 -2
  131. package/resources/ai/tools.mjs.map +1 -1
  132. package/resources/calls/actions.d.mts +135 -30
  133. package/resources/calls/actions.d.mts.map +1 -1
  134. package/resources/calls/actions.d.ts +135 -30
  135. package/resources/calls/actions.d.ts.map +1 -1
  136. package/resources/calls/actions.js +31 -0
  137. package/resources/calls/actions.js.map +1 -1
  138. package/resources/calls/actions.mjs +31 -0
  139. package/resources/calls/actions.mjs.map +1 -1
  140. package/resources/calls/calls.d.mts +72 -25
  141. package/resources/calls/calls.d.mts.map +1 -1
  142. package/resources/calls/calls.d.ts +72 -25
  143. package/resources/calls/calls.d.ts.map +1 -1
  144. package/resources/calls/calls.js +11 -0
  145. package/resources/calls/calls.js.map +1 -1
  146. package/resources/calls/calls.mjs +11 -0
  147. package/resources/calls/calls.mjs.map +1 -1
  148. package/resources/calls/index.d.mts +1 -1
  149. package/resources/calls/index.d.mts.map +1 -1
  150. package/resources/calls/index.d.ts +1 -1
  151. package/resources/calls/index.d.ts.map +1 -1
  152. package/resources/calls/index.js.map +1 -1
  153. package/resources/calls/index.mjs.map +1 -1
  154. package/resources/dir/dir.d.mts +226 -31
  155. package/resources/dir/dir.d.mts.map +1 -1
  156. package/resources/dir/dir.d.ts +226 -31
  157. package/resources/dir/dir.d.ts.map +1 -1
  158. package/resources/dir/dir.js +78 -14
  159. package/resources/dir/dir.js.map +1 -1
  160. package/resources/dir/dir.mjs +78 -14
  161. package/resources/dir/dir.mjs.map +1 -1
  162. package/resources/dir/index.d.mts +1 -1
  163. package/resources/dir/index.d.mts.map +1 -1
  164. package/resources/dir/index.d.ts +1 -1
  165. package/resources/dir/index.d.ts.map +1 -1
  166. package/resources/dir/index.js.map +1 -1
  167. package/resources/dir/index.mjs.map +1 -1
  168. package/resources/dir/phone-numbers.d.mts +8 -8
  169. package/resources/dir/phone-numbers.d.mts.map +1 -1
  170. package/resources/dir/phone-numbers.d.ts +8 -8
  171. package/resources/dir/phone-numbers.d.ts.map +1 -1
  172. package/resources/dir/phone-numbers.js +4 -4
  173. package/resources/dir/phone-numbers.mjs +4 -4
  174. package/resources/dir/references.d.mts +9 -6
  175. package/resources/dir/references.d.mts.map +1 -1
  176. package/resources/dir/references.d.ts +9 -6
  177. package/resources/dir/references.d.ts.map +1 -1
  178. package/resources/email-templates.d.mts +109 -18
  179. package/resources/email-templates.d.mts.map +1 -1
  180. package/resources/email-templates.d.ts +109 -18
  181. package/resources/email-templates.d.ts.map +1 -1
  182. package/resources/email-templates.js +5 -1
  183. package/resources/email-templates.js.map +1 -1
  184. package/resources/email-templates.mjs +5 -1
  185. package/resources/email-templates.mjs.map +1 -1
  186. package/resources/enterprises/dir.d.mts +25 -3
  187. package/resources/enterprises/dir.d.mts.map +1 -1
  188. package/resources/enterprises/dir.d.ts +25 -3
  189. package/resources/enterprises/dir.d.ts.map +1 -1
  190. package/resources/enterprises/dir.js +8 -2
  191. package/resources/enterprises/dir.js.map +1 -1
  192. package/resources/enterprises/dir.mjs +8 -2
  193. package/resources/enterprises/dir.mjs.map +1 -1
  194. package/resources/enterprises/enterprises.d.mts +244 -28
  195. package/resources/enterprises/enterprises.d.mts.map +1 -1
  196. package/resources/enterprises/enterprises.d.ts +244 -28
  197. package/resources/enterprises/enterprises.d.ts.map +1 -1
  198. package/resources/enterprises/enterprises.js +31 -7
  199. package/resources/enterprises/enterprises.js.map +1 -1
  200. package/resources/enterprises/enterprises.mjs +31 -7
  201. package/resources/enterprises/enterprises.mjs.map +1 -1
  202. package/resources/enterprises/index.d.mts +2 -1
  203. package/resources/enterprises/index.d.mts.map +1 -1
  204. package/resources/enterprises/index.d.ts +2 -1
  205. package/resources/enterprises/index.d.ts.map +1 -1
  206. package/resources/enterprises/index.js +3 -1
  207. package/resources/enterprises/index.js.map +1 -1
  208. package/resources/enterprises/index.mjs +1 -0
  209. package/resources/enterprises/index.mjs.map +1 -1
  210. package/resources/enterprises/reputation/external-verification.d.mts +94 -0
  211. package/resources/enterprises/reputation/external-verification.d.mts.map +1 -0
  212. package/resources/enterprises/reputation/external-verification.d.ts +94 -0
  213. package/resources/enterprises/reputation/external-verification.d.ts.map +1 -0
  214. package/resources/enterprises/reputation/external-verification.js +54 -0
  215. package/resources/enterprises/reputation/external-verification.js.map +1 -0
  216. package/resources/enterprises/reputation/external-verification.mjs +50 -0
  217. package/resources/enterprises/reputation/external-verification.mjs.map +1 -0
  218. package/resources/enterprises/reputation/index.d.mts +3 -2
  219. package/resources/enterprises/reputation/index.d.mts.map +1 -1
  220. package/resources/enterprises/reputation/index.d.ts +3 -2
  221. package/resources/enterprises/reputation/index.d.ts.map +1 -1
  222. package/resources/enterprises/reputation/index.js +3 -1
  223. package/resources/enterprises/reputation/index.js.map +1 -1
  224. package/resources/enterprises/reputation/index.mjs +1 -0
  225. package/resources/enterprises/reputation/index.mjs.map +1 -1
  226. package/resources/enterprises/reputation/loa.d.mts +64 -3
  227. package/resources/enterprises/reputation/loa.d.mts.map +1 -1
  228. package/resources/enterprises/reputation/loa.d.ts +64 -3
  229. package/resources/enterprises/reputation/loa.d.ts.map +1 -1
  230. package/resources/enterprises/reputation/numbers.d.mts +197 -4
  231. package/resources/enterprises/reputation/numbers.d.mts.map +1 -1
  232. package/resources/enterprises/reputation/numbers.d.ts +197 -4
  233. package/resources/enterprises/reputation/numbers.d.ts.map +1 -1
  234. package/resources/enterprises/reputation/numbers.js +58 -2
  235. package/resources/enterprises/reputation/numbers.js.map +1 -1
  236. package/resources/enterprises/reputation/numbers.mjs +58 -2
  237. package/resources/enterprises/reputation/numbers.mjs.map +1 -1
  238. package/resources/enterprises/reputation/remediation.d.mts +3 -2
  239. package/resources/enterprises/reputation/remediation.d.mts.map +1 -1
  240. package/resources/enterprises/reputation/remediation.d.ts +3 -2
  241. package/resources/enterprises/reputation/remediation.d.ts.map +1 -1
  242. package/resources/enterprises/reputation/reputation.d.mts +39 -3
  243. package/resources/enterprises/reputation/reputation.d.mts.map +1 -1
  244. package/resources/enterprises/reputation/reputation.d.ts +39 -3
  245. package/resources/enterprises/reputation/reputation.d.ts.map +1 -1
  246. package/resources/enterprises/reputation/reputation.js +22 -0
  247. package/resources/enterprises/reputation/reputation.js.map +1 -1
  248. package/resources/enterprises/reputation/reputation.mjs +22 -0
  249. package/resources/enterprises/reputation/reputation.mjs.map +1 -1
  250. package/resources/enterprises/verify-email.d.mts +91 -0
  251. package/resources/enterprises/verify-email.d.mts.map +1 -0
  252. package/resources/enterprises/verify-email.d.ts +91 -0
  253. package/resources/enterprises/verify-email.d.ts.map +1 -0
  254. package/resources/enterprises/verify-email.js +55 -0
  255. package/resources/enterprises/verify-email.js.map +1 -0
  256. package/resources/enterprises/verify-email.mjs +51 -0
  257. package/resources/enterprises/verify-email.mjs.map +1 -0
  258. package/resources/global-ip-assignment-health.d.mts +4 -4
  259. package/resources/global-ip-assignment-health.d.mts.map +1 -1
  260. package/resources/global-ip-assignment-health.d.ts +4 -4
  261. package/resources/global-ip-assignment-health.d.ts.map +1 -1
  262. package/resources/global-ip-assignments-usage.d.mts +4 -4
  263. package/resources/global-ip-assignments-usage.d.mts.map +1 -1
  264. package/resources/global-ip-assignments-usage.d.ts +4 -4
  265. package/resources/global-ip-assignments-usage.d.ts.map +1 -1
  266. package/resources/index.d.mts +6 -3
  267. package/resources/index.d.mts.map +1 -1
  268. package/resources/index.d.ts +6 -3
  269. package/resources/index.d.ts.map +1 -1
  270. package/resources/index.js +9 -3
  271. package/resources/index.js.map +1 -1
  272. package/resources/index.mjs +3 -0
  273. package/resources/index.mjs.map +1 -1
  274. package/resources/infringement-claims.d.mts +4 -0
  275. package/resources/infringement-claims.d.mts.map +1 -1
  276. package/resources/infringement-claims.d.ts +4 -0
  277. package/resources/infringement-claims.d.ts.map +1 -1
  278. package/resources/llm-token-gateway/index.d.mts +6 -0
  279. package/resources/llm-token-gateway/index.d.mts.map +1 -0
  280. package/resources/llm-token-gateway/index.d.ts +6 -0
  281. package/resources/llm-token-gateway/index.d.ts.map +1 -0
  282. package/resources/llm-token-gateway/index.js +15 -0
  283. package/resources/llm-token-gateway/index.js.map +1 -0
  284. package/resources/llm-token-gateway/index.mjs +7 -0
  285. package/resources/llm-token-gateway/index.mjs.map +1 -0
  286. package/resources/llm-token-gateway/llm-token-gateway.d.mts +22 -0
  287. package/resources/llm-token-gateway/llm-token-gateway.d.mts.map +1 -0
  288. package/resources/llm-token-gateway/llm-token-gateway.d.ts +22 -0
  289. package/resources/llm-token-gateway/llm-token-gateway.d.ts.map +1 -0
  290. package/resources/llm-token-gateway/llm-token-gateway.js +29 -0
  291. package/resources/llm-token-gateway/llm-token-gateway.js.map +1 -0
  292. package/resources/llm-token-gateway/llm-token-gateway.mjs +24 -0
  293. package/resources/llm-token-gateway/llm-token-gateway.mjs.map +1 -0
  294. package/resources/llm-token-gateway/spend.d.mts +223 -0
  295. package/resources/llm-token-gateway/spend.d.mts.map +1 -0
  296. package/resources/llm-token-gateway/spend.d.ts +223 -0
  297. package/resources/llm-token-gateway/spend.d.ts.map +1 -0
  298. package/resources/llm-token-gateway/spend.js +56 -0
  299. package/resources/llm-token-gateway/spend.js.map +1 -0
  300. package/resources/llm-token-gateway/spend.mjs +52 -0
  301. package/resources/llm-token-gateway/spend.mjs.map +1 -0
  302. package/resources/llm-token-gateway/token-groups.d.mts +577 -0
  303. package/resources/llm-token-gateway/token-groups.d.mts.map +1 -0
  304. package/resources/llm-token-gateway/token-groups.d.ts +577 -0
  305. package/resources/llm-token-gateway/token-groups.d.ts.map +1 -0
  306. package/resources/llm-token-gateway/token-groups.js +139 -0
  307. package/resources/llm-token-gateway/token-groups.js.map +1 -0
  308. package/resources/llm-token-gateway/token-groups.mjs +135 -0
  309. package/resources/llm-token-gateway/token-groups.mjs.map +1 -0
  310. package/resources/llm-token-gateway/token-keys.d.mts +318 -0
  311. package/resources/llm-token-gateway/token-keys.d.mts.map +1 -0
  312. package/resources/llm-token-gateway/token-keys.d.ts +318 -0
  313. package/resources/llm-token-gateway/token-keys.d.ts.map +1 -0
  314. package/resources/llm-token-gateway/token-keys.js +127 -0
  315. package/resources/llm-token-gateway/token-keys.js.map +1 -0
  316. package/resources/llm-token-gateway/token-keys.mjs +123 -0
  317. package/resources/llm-token-gateway/token-keys.mjs.map +1 -0
  318. package/resources/llm-token-gateway/usage.d.mts +319 -0
  319. package/resources/llm-token-gateway/usage.d.mts.map +1 -0
  320. package/resources/llm-token-gateway/usage.d.ts +319 -0
  321. package/resources/llm-token-gateway/usage.d.ts.map +1 -0
  322. package/resources/llm-token-gateway/usage.js +63 -0
  323. package/resources/llm-token-gateway/usage.js.map +1 -0
  324. package/resources/llm-token-gateway/usage.mjs +59 -0
  325. package/resources/llm-token-gateway/usage.mjs.map +1 -0
  326. package/resources/llm-token-gateway.d.mts +2 -0
  327. package/resources/llm-token-gateway.d.mts.map +1 -0
  328. package/resources/llm-token-gateway.d.ts +2 -0
  329. package/resources/llm-token-gateway.d.ts.map +1 -0
  330. package/resources/llm-token-gateway.js +6 -0
  331. package/resources/llm-token-gateway.js.map +1 -0
  332. package/resources/llm-token-gateway.mjs +3 -0
  333. package/resources/llm-token-gateway.mjs.map +1 -0
  334. package/resources/meeting-sessions/meeting-sessions.d.mts +8 -9
  335. package/resources/meeting-sessions/meeting-sessions.d.mts.map +1 -1
  336. package/resources/meeting-sessions/meeting-sessions.d.ts +8 -9
  337. package/resources/meeting-sessions/meeting-sessions.d.ts.map +1 -1
  338. package/resources/meeting-sessions/meeting-sessions.js +6 -6
  339. package/resources/meeting-sessions/meeting-sessions.js.map +1 -1
  340. package/resources/meeting-sessions/meeting-sessions.mjs +6 -6
  341. package/resources/meeting-sessions/meeting-sessions.mjs.map +1 -1
  342. package/resources/phone-numbers/jobs.d.mts +17 -5
  343. package/resources/phone-numbers/jobs.d.mts.map +1 -1
  344. package/resources/phone-numbers/jobs.d.ts +17 -5
  345. package/resources/phone-numbers/jobs.d.ts.map +1 -1
  346. package/resources/phone-numbers/jobs.js +4 -3
  347. package/resources/phone-numbers/jobs.js.map +1 -1
  348. package/resources/phone-numbers/jobs.mjs +4 -3
  349. package/resources/phone-numbers/jobs.mjs.map +1 -1
  350. package/resources/porting-orders/phone-number-blocks.d.mts +1 -1
  351. package/resources/porting-orders/phone-number-blocks.d.mts.map +1 -1
  352. package/resources/porting-orders/phone-number-blocks.d.ts +1 -1
  353. package/resources/porting-orders/phone-number-blocks.d.ts.map +1 -1
  354. package/resources/porting-orders/porting-orders.d.mts +1 -1
  355. package/resources/porting-orders/porting-orders.d.mts.map +1 -1
  356. package/resources/porting-orders/porting-orders.d.ts +1 -1
  357. package/resources/porting-orders/porting-orders.d.ts.map +1 -1
  358. package/resources/porting-orders/porting-orders.js.map +1 -1
  359. package/resources/porting-orders/porting-orders.mjs.map +1 -1
  360. package/resources/porting-phone-numbers.d.mts +1 -1
  361. package/resources/porting-phone-numbers.d.mts.map +1 -1
  362. package/resources/porting-phone-numbers.d.ts +1 -1
  363. package/resources/porting-phone-numbers.d.ts.map +1 -1
  364. package/resources/reputation/numbers.d.mts +10 -0
  365. package/resources/reputation/numbers.d.mts.map +1 -1
  366. package/resources/reputation/numbers.d.ts +10 -0
  367. package/resources/reputation/numbers.d.ts.map +1 -1
  368. package/resources/requirements.d.mts +2 -2
  369. package/resources/requirements.d.mts.map +1 -1
  370. package/resources/requirements.d.ts +2 -2
  371. package/resources/requirements.d.ts.map +1 -1
  372. package/resources/sip-registration-status.d.mts +149 -0
  373. package/resources/sip-registration-status.d.mts.map +1 -0
  374. package/resources/sip-registration-status.d.ts +149 -0
  375. package/resources/sip-registration-status.d.ts.map +1 -0
  376. package/resources/sip-registration-status.js +32 -0
  377. package/resources/sip-registration-status.js.map +1 -0
  378. package/resources/sip-registration-status.mjs +28 -0
  379. package/resources/sip-registration-status.mjs.map +1 -0
  380. package/resources/spend-limits.d.mts +335 -0
  381. package/resources/spend-limits.d.mts.map +1 -0
  382. package/resources/spend-limits.d.ts +335 -0
  383. package/resources/spend-limits.d.ts.map +1 -0
  384. package/resources/spend-limits.js +91 -0
  385. package/resources/spend-limits.js.map +1 -0
  386. package/resources/spend-limits.mjs +87 -0
  387. package/resources/spend-limits.mjs.map +1 -0
  388. package/resources/terms-of-service/agreements.d.mts +12 -0
  389. package/resources/terms-of-service/agreements.d.mts.map +1 -1
  390. package/resources/terms-of-service/agreements.d.ts +12 -0
  391. package/resources/terms-of-service/agreements.d.ts.map +1 -1
  392. package/resources/terms-of-service/terms-of-service.d.mts +15 -0
  393. package/resources/terms-of-service/terms-of-service.d.mts.map +1 -1
  394. package/resources/terms-of-service/terms-of-service.d.ts +15 -0
  395. package/resources/terms-of-service/terms-of-service.d.ts.map +1 -1
  396. package/resources/terms-of-service/terms-of-service.js.map +1 -1
  397. package/resources/terms-of-service/terms-of-service.mjs.map +1 -1
  398. package/resources/texml/texml.d.mts +7 -3
  399. package/resources/texml/texml.d.mts.map +1 -1
  400. package/resources/texml/texml.d.ts +7 -3
  401. package/resources/texml/texml.d.ts.map +1 -1
  402. package/resources/texml/texml.js +4 -2
  403. package/resources/texml/texml.js.map +1 -1
  404. package/resources/texml/texml.mjs +4 -2
  405. package/resources/texml/texml.mjs.map +1 -1
  406. package/resources/text-to-speech/text-to-speech.d.mts +4 -2
  407. package/resources/text-to-speech/text-to-speech.d.mts.map +1 -1
  408. package/resources/text-to-speech/text-to-speech.d.ts +4 -2
  409. package/resources/text-to-speech/text-to-speech.d.ts.map +1 -1
  410. package/resources/webhooks.d.mts +967 -6
  411. package/resources/webhooks.d.mts.map +1 -1
  412. package/resources/webhooks.d.ts +967 -6
  413. package/resources/webhooks.d.ts.map +1 -1
  414. package/resources/webhooks.js.map +1 -1
  415. package/resources/webhooks.mjs.map +1 -1
  416. package/resources/whatsapp/index.d.mts +1 -0
  417. package/resources/whatsapp/index.d.mts.map +1 -1
  418. package/resources/whatsapp/index.d.ts +1 -0
  419. package/resources/whatsapp/index.d.ts.map +1 -1
  420. package/resources/whatsapp/index.js +3 -1
  421. package/resources/whatsapp/index.js.map +1 -1
  422. package/resources/whatsapp/index.mjs +1 -0
  423. package/resources/whatsapp/index.mjs.map +1 -1
  424. package/resources/whatsapp/phone-numbers/calling-routing.d.mts +90 -0
  425. package/resources/whatsapp/phone-numbers/calling-routing.d.mts.map +1 -0
  426. package/resources/whatsapp/phone-numbers/calling-routing.d.ts +90 -0
  427. package/resources/whatsapp/phone-numbers/calling-routing.d.ts.map +1 -0
  428. package/resources/whatsapp/phone-numbers/calling-routing.js +66 -0
  429. package/resources/whatsapp/phone-numbers/calling-routing.js.map +1 -0
  430. package/resources/whatsapp/phone-numbers/calling-routing.mjs +62 -0
  431. package/resources/whatsapp/phone-numbers/calling-routing.mjs.map +1 -0
  432. package/resources/whatsapp/phone-numbers/index.d.mts +1 -0
  433. package/resources/whatsapp/phone-numbers/index.d.mts.map +1 -1
  434. package/resources/whatsapp/phone-numbers/index.d.ts +1 -0
  435. package/resources/whatsapp/phone-numbers/index.d.ts.map +1 -1
  436. package/resources/whatsapp/phone-numbers/index.js +3 -1
  437. package/resources/whatsapp/phone-numbers/index.js.map +1 -1
  438. package/resources/whatsapp/phone-numbers/index.mjs +1 -0
  439. package/resources/whatsapp/phone-numbers/index.mjs.map +1 -1
  440. package/resources/whatsapp/phone-numbers/phone-numbers.d.mts +4 -0
  441. package/resources/whatsapp/phone-numbers/phone-numbers.d.mts.map +1 -1
  442. package/resources/whatsapp/phone-numbers/phone-numbers.d.ts +4 -0
  443. package/resources/whatsapp/phone-numbers/phone-numbers.d.ts.map +1 -1
  444. package/resources/whatsapp/phone-numbers/phone-numbers.js +4 -0
  445. package/resources/whatsapp/phone-numbers/phone-numbers.js.map +1 -1
  446. package/resources/whatsapp/phone-numbers/phone-numbers.mjs +4 -0
  447. package/resources/whatsapp/phone-numbers/phone-numbers.mjs.map +1 -1
  448. package/resources/whatsapp/signup.d.mts +128 -0
  449. package/resources/whatsapp/signup.d.mts.map +1 -0
  450. package/resources/whatsapp/signup.d.ts +128 -0
  451. package/resources/whatsapp/signup.d.ts.map +1 -0
  452. package/resources/whatsapp/signup.js +42 -0
  453. package/resources/whatsapp/signup.js.map +1 -0
  454. package/resources/whatsapp/signup.mjs +38 -0
  455. package/resources/whatsapp/signup.mjs.map +1 -0
  456. package/resources/whatsapp/whatsapp.d.mts +4 -0
  457. package/resources/whatsapp/whatsapp.d.mts.map +1 -1
  458. package/resources/whatsapp/whatsapp.d.ts +4 -0
  459. package/resources/whatsapp/whatsapp.d.ts.map +1 -1
  460. package/resources/whatsapp/whatsapp.js +4 -0
  461. package/resources/whatsapp/whatsapp.js.map +1 -1
  462. package/resources/whatsapp/whatsapp.mjs +4 -0
  463. package/resources/whatsapp/whatsapp.mjs.map +1 -1
  464. package/src/client.ts +83 -0
  465. package/src/resources/ai/ai.ts +48 -4
  466. package/src/resources/ai/assistants/assistants.ts +676 -33
  467. package/src/resources/ai/assistants/deleted.ts +86 -0
  468. package/src/resources/ai/assistants/index.ts +13 -0
  469. package/src/resources/ai/assistants/versions.ts +54 -0
  470. package/src/resources/ai/avatars.ts +238 -0
  471. package/src/resources/ai/chat.ts +21 -2
  472. package/src/resources/ai/conversations/conversations.ts +9 -0
  473. package/src/resources/ai/embeddings/embeddings.ts +1 -1
  474. package/src/resources/ai/index.ts +18 -1
  475. package/src/resources/ai/memory/index.ts +9 -1
  476. package/src/resources/ai/memory/memory.ts +13 -1
  477. package/src/resources/ai/memory/namespaces/index.ts +11 -1
  478. package/src/resources/ai/memory/namespaces/namespaces.ts +85 -3
  479. package/src/resources/ai/memory/namespaces/profiles/index.ts +2 -0
  480. package/src/resources/ai/memory/namespaces/profiles/profiles.ts +71 -0
  481. package/src/resources/ai/openai/chat.ts +21 -2
  482. package/src/resources/ai/tools.ts +25 -7
  483. package/src/resources/calls/actions.ts +141 -25
  484. package/src/resources/calls/calls.ts +73 -17
  485. package/src/resources/calls/index.ts +1 -0
  486. package/src/resources/dir/dir.ts +269 -35
  487. package/src/resources/dir/index.ts +6 -0
  488. package/src/resources/dir/phone-numbers.ts +9 -10
  489. package/src/resources/dir/references.ts +9 -6
  490. package/src/resources/email-templates.ts +121 -19
  491. package/src/resources/enterprises/dir.ts +27 -3
  492. package/src/resources/enterprises/enterprises.ts +257 -26
  493. package/src/resources/enterprises/index.ts +6 -0
  494. package/src/resources/enterprises/reputation/external-verification.ts +125 -0
  495. package/src/resources/enterprises/reputation/index.ts +12 -0
  496. package/src/resources/enterprises/reputation/loa.ts +76 -3
  497. package/src/resources/enterprises/reputation/numbers.ts +256 -3
  498. package/src/resources/enterprises/reputation/remediation.ts +3 -2
  499. package/src/resources/enterprises/reputation/reputation.ts +70 -0
  500. package/src/resources/enterprises/verify-email.ts +117 -0
  501. package/src/resources/global-ip-assignment-health.ts +4 -4
  502. package/src/resources/global-ip-assignments-usage.ts +4 -4
  503. package/src/resources/index.ts +31 -0
  504. package/src/resources/infringement-claims.ts +4 -0
  505. package/src/resources/llm-token-gateway/index.ts +41 -0
  506. package/src/resources/llm-token-gateway/llm-token-gateway.ts +101 -0
  507. package/src/resources/llm-token-gateway/spend.ts +309 -0
  508. package/src/resources/llm-token-gateway/token-groups.ts +724 -0
  509. package/src/resources/llm-token-gateway/token-keys.ts +422 -0
  510. package/src/resources/llm-token-gateway/usage.ts +460 -0
  511. package/src/resources/llm-token-gateway.ts +3 -0
  512. package/src/resources/meeting-sessions/meeting-sessions.ts +8 -9
  513. package/src/resources/phone-numbers/jobs.ts +18 -5
  514. package/src/resources/porting-orders/phone-number-blocks.ts +9 -1
  515. package/src/resources/porting-orders/porting-orders.ts +9 -1
  516. package/src/resources/porting-phone-numbers.ts +9 -1
  517. package/src/resources/reputation/numbers.ts +12 -0
  518. package/src/resources/requirements.ts +2 -2
  519. package/src/resources/sip-registration-status.ts +188 -0
  520. package/src/resources/spend-limits.ts +428 -0
  521. package/src/resources/terms-of-service/agreements.ts +12 -0
  522. package/src/resources/terms-of-service/terms-of-service.ts +15 -0
  523. package/src/resources/texml/texml.ts +7 -3
  524. package/src/resources/text-to-speech/text-to-speech.ts +4 -2
  525. package/src/resources/webhooks.ts +1460 -228
  526. package/src/resources/whatsapp/index.ts +7 -0
  527. package/src/resources/whatsapp/phone-numbers/calling-routing.ts +114 -0
  528. package/src/resources/whatsapp/phone-numbers/index.ts +7 -0
  529. package/src/resources/whatsapp/phone-numbers/phone-numbers.ts +18 -0
  530. package/src/resources/whatsapp/signup.ts +188 -0
  531. package/src/resources/whatsapp/whatsapp.ts +18 -0
  532. package/src/version.ts +1 -1
  533. package/version.d.mts +1 -1
  534. package/version.d.ts +1 -1
  535. package/version.js +1 -1
  536. package/version.mjs +1 -1
@@ -1,10 +1,13 @@
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";
7
8
  import { CanaryDeploy, CanaryDeployCreateParams, CanaryDeployResponse, CanaryDeployUpdateParams, CanaryDeploys, Clause, RolloutSlot, RuleInput, RuleOutput, Serve } from "./canary-deploys.mjs";
9
+ import * as DeletedAPI from "./deleted.mjs";
10
+ import { Deleted, DeletedAssistant, DeletedAssistantsDefaultFlatPagination, DeletedListParams } from "./deleted.mjs";
8
11
  import * as InstructionsAPI from "./instructions.mjs";
9
12
  import { InstructionEnhanceParams, InstructionEnhanceResponse, Instructions } from "./instructions.mjs";
10
13
  import * as ScheduledEventsAPI from "./scheduled-events.mjs";
@@ -31,6 +34,7 @@ export declare class Assistants extends APIResource {
31
34
  versions: VersionsAPI.Versions;
32
35
  tags: TagsAPI.Tags;
33
36
  instructions: InstructionsAPI.Instructions;
37
+ deleted: DeletedAPI.Deleted;
34
38
  /**
35
39
  * Retrieve a list of all AI Assistants configured by the user.
36
40
  *
@@ -72,6 +76,20 @@ export declare class Assistants extends APIResource {
72
76
  /**
73
77
  * Delete an AI Assistant by `assistant_id`.
74
78
  *
79
+ * By default this performs a soft delete: the assistant moves to the Recently
80
+ * Deleted list and stays restorable for 30 days, after which it is permanently
81
+ * deleted automatically. The assistant's versions and TeXML application are
82
+ * preserved during the retention window.
83
+ *
84
+ * Pass `hard_delete=true` to skip the retention window and permanently delete the
85
+ * assistant immediately. A hard delete erases the assistant and all of its
86
+ * versions, and deletes its TeXML application unless phone numbers are still
87
+ * assigned to it. It does not delete conversations, recordings, shared tools the
88
+ * assistant referenced, or knowledge-base embeddings.
89
+ *
90
+ * Deletion fails with `400` if other assistants reference this one through a
91
+ * handoff tool or a conversation-flow edge — remove those references first.
92
+ *
75
93
  * @example
76
94
  * ```ts
77
95
  * const assistant = await client.ai.assistants.delete(
@@ -79,7 +97,7 @@ export declare class Assistants extends APIResource {
79
97
  * );
80
98
  * ```
81
99
  */
82
- delete(assistantID: string, options?: RequestOptions): APIPromise<AssistantDeleteResponse>;
100
+ delete(assistantID: string, params?: AssistantDeleteParams | null | undefined, options?: RequestOptions): APIPromise<AssistantDeleteResponse>;
83
101
  /**
84
102
  * Retrieve an AI Assistant configuration by `assistant_id`.
85
103
  *
@@ -172,6 +190,52 @@ export declare class Assistants extends APIResource {
172
190
  * ```
173
191
  */
174
192
  sendSMS(assistantID: string, params: AssistantSendSMSParams, options?: RequestOptions): APIPromise<AssistantSendSMSResponse>;
193
+ /**
194
+ * Start a WhatsApp conversation with a customer from the business side. This
195
+ * endpoint:
196
+ *
197
+ * 1. Validates that `from` is a WhatsApp number on your account whose messaging
198
+ * profile has this assistant configured
199
+ * 2. Creates a new `whatsapp_chat` conversation with the provided metadata
200
+ * 3. Asks the assistant to pick one of its approved WhatsApp templates and fill
201
+ * its variables from `content`
202
+ * 4. Sends the template from `from` to `to`
203
+ * 5. Returns the conversation ID and the message ID
204
+ *
205
+ * When the customer replies, the reply is routed to the same conversation and the
206
+ * assistant answers within the 24-hour customer service window. The assistant
207
+ * needs a `whatsapp_template` tool with at least one approved template, data
208
+ * retention enabled and PII redaction disabled.
209
+ *
210
+ * @example
211
+ * ```ts
212
+ * const response = await client.ai.assistants.whatsapp(
213
+ * 'assistant_id',
214
+ * {
215
+ * content:
216
+ * 'Send the login verification code 482913 to the customer.',
217
+ * from: '+13125550001',
218
+ * to: '+13125550002',
219
+ * conversation_metadata: { order_id: 'A1' },
220
+ * },
221
+ * );
222
+ * ```
223
+ */
224
+ whatsapp(assistantID: string, params: AssistantWhatsappParams, options?: RequestOptions): APIPromise<AssistantWhatsappResponse>;
225
+ /**
226
+ * Restore a soft-deleted assistant from the Recently Deleted list.
227
+ *
228
+ * The assistant becomes fully active again with its versions and TeXML application
229
+ * as they were at deletion time. Restoring does not re-enable numbers or
230
+ * connections that were released separately after the deletion.
231
+ *
232
+ * @example
233
+ * ```ts
234
+ * const inferenceEmbedding =
235
+ * await client.ai.assistants.restore('assistant_id');
236
+ * ```
237
+ */
238
+ restore(assistantID: string, options?: RequestOptions): APIPromise<InferenceEmbedding>;
175
239
  }
176
240
  /**
177
241
  * Numeric expression: applies an arithmetic operator to two sub-expressions.
@@ -759,6 +823,19 @@ export declare namespace AssistantTool {
759
823
  * `shared` the exchange stays in the conversation like any other messages.
760
824
  */
761
825
  end_user_target_context_mode?: 'private' | 'shared';
826
+ /**
827
+ * Fail closed when the acceptance consult cannot run. Off by default: if the
828
+ * consult cannot be set up for any reason — including where acceptance is
829
+ * unavailable at all (`gather_using_ai`, Conversation Relay or web calls, a
830
+ * conference, or additional invited participants) — the transfer degrades to a
831
+ * plain warm transfer (the warm transfer message is played to the destination as
832
+ * audio and the calls are bridged anyway). Set to true to treat those paths as a
833
+ * decline instead: the destination is disconnected without being asked, the
834
+ * assistant returns to the caller, and no bridge happens without an acceptance.
835
+ * Only consult-setup failures are affected; the destination must still explicitly
836
+ * accept on every consult that does run.
837
+ */
838
+ require_acceptance?: boolean;
762
839
  }
763
840
  }
764
841
  }
@@ -1055,6 +1132,30 @@ export interface AudioVisualizerConfig {
1055
1132
  * Authentication method used when connecting to the external LLM endpoint.
1056
1133
  */
1057
1134
  export type AuthenticationMethod = 'token' | 'certificate';
1135
+ /**
1136
+ * **Beta:** Configuration for the Telnyx open-source avatar provider. Use one of
1137
+ * the six stock avatars or an organization-owned custom avatar returned by the
1138
+ * Avatars API. Supported backgrounds are office, studio, and reception.
1139
+ */
1140
+ export interface AvatarSettingsRequest {
1141
+ /**
1142
+ * The Telnyx stock avatar or organization-owned custom avatar to render.
1143
+ */
1144
+ avatar_id: AvatarsAPI.AvatarID;
1145
+ /**
1146
+ * The background to render.
1147
+ */
1148
+ background_id: 'office' | 'studio' | 'reception';
1149
+ /**
1150
+ * Required avatar model identifier, separate from `avatar_id`. The supported value
1151
+ * is `foxtrot-1`. Omission, null, and unsupported model identifiers are rejected.
1152
+ */
1153
+ model: 'foxtrot-1';
1154
+ /**
1155
+ * Selects the Telnyx open-source avatar provider.
1156
+ */
1157
+ provider: 'telnyx';
1158
+ }
1058
1159
  /**
1059
1160
  * Combine sub-expressions with a logical operator (`and` / `or` / `not`).
1060
1161
  *
@@ -1125,7 +1226,7 @@ export interface ConversationFlow {
1125
1226
  export interface ConversationFlowReq {
1126
1227
  /**
1127
1228
  * All nodes in the flow. Must contain `start_node_id`. Each node is a prompt node
1128
- * (`type: prompt`) or a tool node (`type: tool`).
1229
+ * (`type: prompt`), a tool node (`type: tool`), or a speak node (`type: speak`).
1129
1230
  */
1130
1231
  nodes: Array<FlowNodeReq | ToolNodeReq | SpeakNodeReq>;
1131
1232
  /**
@@ -1137,6 +1238,66 @@ export interface ConversationFlowReq {
1137
1238
  */
1138
1239
  edges?: Array<FlowEdge>;
1139
1240
  }
1241
+ /**
1242
+ * Splits the conversation between a frontend model that talks to the caller and a
1243
+ * backend model that does the work. On the GPT-Live route the frontend model
1244
+ * cannot call tools at all — when it needs something done it raises a delegation
1245
+ * and waits. On the chat completion route the frontend keeps a single `delegate`
1246
+ * tool that returns immediately, so the conversation carries on while the backend
1247
+ * works. Either way the backend's answer is spoken as commentary or kept as silent
1248
+ * context, depending on `speak_results`. Beta feature.
1249
+ */
1250
+ export interface DelegationSettings {
1251
+ /**
1252
+ * Whether the assistant delegates work to a backend model. Defaults to `true`: a
1253
+ * GPT-Live assistant with delegation disabled can hold a conversation but can
1254
+ * never look anything up or run a tool.
1255
+ */
1256
+ enabled?: boolean;
1257
+ /**
1258
+ * Run the backend on your own OpenAI-compatible endpoint instead of a
1259
+ * Telnyx-hosted model. As above, a raw `api_key` here is rejected — reference an
1260
+ * integration secret with `external_llm.llm_api_key_ref` instead.
1261
+ */
1262
+ external_llm?: ExternalLlm;
1263
+ /**
1264
+ * Extra instructions for the backend model, in addition to the assistant's own.
1265
+ * Use this for the business rules the backend needs and the talking model does
1266
+ * not.
1267
+ */
1268
+ instructions?: string;
1269
+ /**
1270
+ * Integration secret identifier for the backend model's API key. Required for
1271
+ * models from providers other than Telnyx, OpenAI and Anthropic. A raw `api_key`
1272
+ * is rejected rather than ignored, so that no plaintext credential is stored on
1273
+ * the assistant.
1274
+ */
1275
+ llm_api_key_ref?: string;
1276
+ /**
1277
+ * Who answers a delegation. `telnyx` runs the backend model on Telnyx with the
1278
+ * assistant's own tools, MCP servers and observability. `client` relays the
1279
+ * delegation to a server you host over the WebSocket configured in
1280
+ * `websocket_settings`: Telnyx sends a `session.delegation.created` frame and
1281
+ * waits for your `session.delegation.completed` answer. That answer is text only,
1282
+ * since the socket offers no tool vocabulary. If no socket is connected the
1283
+ * delegation is refused and the assistant tells the caller it cannot look things
1284
+ * up right now. Defaults to `telnyx`.
1285
+ */
1286
+ mode?: 'telnyx' | 'client';
1287
+ /**
1288
+ * The backend model that answers delegations. Must be a model available for AI
1289
+ * Assistants. When enabling `telnyx` delegation, explicitly set this field or
1290
+ * `external_llm.model`; a configuration without either backend model is rejected.
1291
+ * Only applies when `mode` is `telnyx`.
1292
+ */
1293
+ model?: string;
1294
+ /**
1295
+ * Whether the backend's answer is spoken to the caller. When `true` the result is
1296
+ * appended as commentary and paraphrased aloud; when `false` it is kept as silent
1297
+ * context that informs later answers without being read out. Defaults to `true`.
1298
+ */
1299
+ speak_results?: boolean;
1300
+ }
1140
1301
  /**
1141
1302
  * If `telephony` is enabled, the assistant will be able to make and receive calls.
1142
1303
  * If `messaging` is enabled, the assistant will be able to send and receive
@@ -1300,9 +1461,14 @@ export interface FallbackConfigReq {
1300
1461
  * Directed transition from one node to a target, gated by a condition.
1301
1462
  *
1302
1463
  * The target is either another node in the same flow (`NodeTarget`) or a different
1303
- * assistant (`AssistantTarget`). Multiple edges may share a `start_node_id`; the
1304
- * runtime evaluates them in the order they're declared and takes the first whose
1305
- * condition is true.
1464
+ * assistant (`AssistantTarget`). Multiple edges may share a `start_node_id`. On
1465
+ * calls, `expression` conditions are evaluated before the model turn and take
1466
+ * precedence over `llm` conditions regardless of declaration order, while `llm`
1467
+ * conditions are offered to the assistant's model as transition tools and fire
1468
+ * when the model selects one. On chat channels, an `expression` condition that is
1469
+ * true when the turn begins routes before the reply is generated; all conditioned
1470
+ * edges that remain are considered together in declaration order after the reply,
1471
+ * and the first true one wins.
1306
1472
  */
1307
1473
  export interface FlowEdge {
1308
1474
  /**
@@ -1326,15 +1492,22 @@ export interface FlowEdge {
1326
1492
  }
1327
1493
  export declare namespace FlowEdge {
1328
1494
  /**
1329
- * Edge condition evaluated by the LLM from a natural-language prompt.
1495
+ * Edge condition routed by the assistant's LLM from a natural-language prompt.
1330
1496
  *
1331
- * The model is asked to judge the prompt against conversation context and returns
1332
- * true/false. Use this for fuzzy intents that aren't expressible as a
1333
- * deterministic expression (e.g. 'user wants to escalate to a human').
1497
+ * How the edge is decided depends on the channel. On calls, each outgoing `llm`
1498
+ * condition is offered to the assistant's model as a transition tool alongside the
1499
+ * assistant's tools, and the edge fires when the model selects it; the platform
1500
+ * does not evaluate the prompt itself, and instructions that forbid or discourage
1501
+ * tool calls can stop these edges from firing. On chat channels, the edge prompts
1502
+ * are evaluated in a separate model call after the reply, which does not use the
1503
+ * assistant's instructions. Use this for fuzzy intents that aren't expressible as
1504
+ * a deterministic expression (e.g. 'user wants to escalate to a human').
1334
1505
  */
1335
1506
  interface LlmCondition {
1336
1507
  /**
1337
- * Natural-language criterion the LLM judges as true/false.
1508
+ * Natural-language criterion the model routes on. On calls this is offered to the
1509
+ * model as the transition tool's description; on chat channels it is judged as a
1510
+ * statement in the post-reply evaluation call.
1338
1511
  */
1339
1512
  prompt: string;
1340
1513
  type: 'llm';
@@ -1559,12 +1732,17 @@ export interface FlowNodeReq {
1559
1732
  tools_mode?: 'replace' | 'append';
1560
1733
  /**
1561
1734
  * Per-node transcription override (model/language/region). Unset fields cascade
1562
- * from the assistant-level transcription.
1735
+ * from the assistant-level transcription. A node that sets `model`,
1736
+ * `fallback_models`, or `challenger` doesn't inherit the assistant's
1737
+ * `fallback_models` or `challenger`; it uses only the ones it sets. Otherwise it
1738
+ * inherits them, and they must fit the model and language the node runs; a change
1739
+ * they no longer fit is rejected.
1563
1740
  */
1564
1741
  transcription?: TranscriptionSettings;
1565
1742
  /**
1566
1743
  * Node kind discriminator. `prompt` (default) is an LLM-driven step; `tool` is a
1567
- * standalone tool execution (see `ToolNodeReq`).
1744
+ * standalone tool execution and `speak` a scripted message (see `ToolNodeReq` /
1745
+ * `SpeakNodeReq`).
1568
1746
  */
1569
1747
  type?: 'prompt';
1570
1748
  /**
@@ -1621,10 +1799,26 @@ export interface InferenceEmbedding {
1621
1799
  * capability for the conversation; it does not fail the call.
1622
1800
  */
1623
1801
  a2a_agents?: Array<AssistantA2AAgent>;
1802
+ /**
1803
+ * **Beta:** Configuration for the Telnyx open-source avatar provider. Use one of
1804
+ * the six stock avatars or an organization-owned custom avatar returned by the
1805
+ * Avatars API. Supported backgrounds are office, studio, and reception.
1806
+ */
1807
+ avatar_settings?: TelnyxAvatarSettings | null;
1624
1808
  /**
1625
1809
  * Conversation flow as returned by the API.
1626
1810
  */
1627
1811
  conversation_flow?: ConversationFlow;
1812
+ /**
1813
+ * Splits the conversation between a frontend model that talks to the caller and a
1814
+ * backend model that does the work. On the GPT-Live route the frontend model
1815
+ * cannot call tools at all — when it needs something done it raises a delegation
1816
+ * and waits. On the chat completion route the frontend keeps a single `delegate`
1817
+ * tool that returns immediately, so the conversation carries on while the backend
1818
+ * works. Either way the backend's answer is spoken as commentary or kept as silent
1819
+ * context, depending on `speak_results`. Beta feature.
1820
+ */
1821
+ delegation_settings?: DelegationSettings;
1628
1822
  description?: string;
1629
1823
  /**
1630
1824
  * Map of dynamic variables and their values
@@ -1740,6 +1934,14 @@ export interface InferenceEmbedding {
1740
1934
  */
1741
1935
  version_name?: string;
1742
1936
  voice_settings?: InferenceEmbeddingVoiceSettings;
1937
+ /**
1938
+ * Streams conversation and telephony events to a WebSocket server you host, and
1939
+ * accepts messages injected back into the conversation. Telnyx opens the
1940
+ * connection as a client, once per conversation. Delivery is best effort
1941
+ * throughout: while the connection is down events are dropped rather than queued,
1942
+ * and no socket failure is ever allowed to affect the call. Beta feature.
1943
+ */
1944
+ websocket_settings?: WebsocketSettings;
1743
1945
  /**
1744
1946
  * Configuration settings for the assistant's web widget.
1745
1947
  */
@@ -1804,7 +2006,7 @@ export interface InferenceEmbeddingVoiceSettings {
1804
2006
  * supply a looped MP3 URL. If a media URL is chosen in the portal, customers can
1805
2007
  * preview it before saving.
1806
2008
  */
1807
- background_audio?: InferenceEmbeddingVoiceSettings.UnionMember0 | InferenceEmbeddingVoiceSettings.UnionMember1 | InferenceEmbeddingVoiceSettings.UnionMember2;
2009
+ background_audio?: InferenceEmbeddingVoiceSettings.BackgroundAudioUnionMember0 | InferenceEmbeddingVoiceSettings.BackgroundAudioUnionMember1 | InferenceEmbeddingVoiceSettings.UnionMember2;
1808
2010
  /**
1809
2011
  * Enables emotionally expressive speech using SSML emotion tags. When enabled, the
1810
2012
  * assistant uses audio tags like angry, excited, content, and sad to add emotional
@@ -1839,20 +2041,28 @@ export interface InferenceEmbeddingVoiceSettings {
1839
2041
  * consistent, monotonous output. Only applicable when using ElevenLabs.
1840
2042
  */
1841
2043
  temperature?: number;
2044
+ /**
2045
+ * Optional sound played to the caller while the assistant runs a tool (for example
2046
+ * a webhook or MCP tool). It replaces the background audio until the tool
2047
+ * responds, then the background audio resumes. Defaults to null, which plays no
2048
+ * sound; send `null` on update to clear it. Not played in conference calls.
2049
+ */
2050
+ tool_call_audio?: InferenceEmbeddingVoiceSettings.ToolCallAudioUnionMember0 | InferenceEmbeddingVoiceSettings.ToolCallAudioUnionMember1 | null;
1842
2051
  /**
1843
2052
  * Amplifies similarity to the original speaker voice. Increases computational load
1844
2053
  * and latency slightly. Only applicable when using ElevenLabs.
1845
2054
  */
1846
2055
  use_speaker_boost?: boolean;
1847
2056
  /**
1848
- * The speed of the voice in the range [0.25, 2.0]. 1.0 is deafult speed. Larger
1849
- * numbers make the voice faster, smaller numbers make it slower. This is only
1850
- * applicable for Telnyx Natural voices and Soniox voices (0.7 to 1.3 for Soniox).
2057
+ * The speed of the voice in the range [0.6, 1.5]. 1.0 is the default speed. Larger
2058
+ * numbers make the voice faster, smaller numbers make it slower. Applies to Telnyx
2059
+ * `Ultra` voices; values outside this range are rejected by the synthesis engine.
2060
+ * Soniox voices support a speed range of 0.7 to 1.3.
1851
2061
  */
1852
2062
  voice_speed?: number;
1853
2063
  }
1854
2064
  export declare namespace InferenceEmbeddingVoiceSettings {
1855
- interface UnionMember0 {
2065
+ interface BackgroundAudioUnionMember0 {
1856
2066
  /**
1857
2067
  * Select from predefined media options.
1858
2068
  */
@@ -1867,7 +2077,7 @@ export declare namespace InferenceEmbeddingVoiceSettings {
1867
2077
  */
1868
2078
  volume?: number;
1869
2079
  }
1870
- interface UnionMember1 {
2080
+ interface BackgroundAudioUnionMember1 {
1871
2081
  /**
1872
2082
  * Provide a direct URL to an MP3 file. The audio will loop during the call.
1873
2083
  */
@@ -1889,6 +2099,31 @@ export declare namespace InferenceEmbeddingVoiceSettings {
1889
2099
  */
1890
2100
  value: string;
1891
2101
  }
2102
+ interface ToolCallAudioUnionMember0 {
2103
+ /**
2104
+ * Select from predefined media options.
2105
+ */
2106
+ type: 'predefined_media';
2107
+ /**
2108
+ * The predefined media to use. `typing` plays a keyboard typing sound.
2109
+ */
2110
+ value: 'typing';
2111
+ /**
2112
+ * Volume level for the predefined media. Supports values from 0.0 to 1.0 in 0.1
2113
+ * increments. `0.0` plays no sound.
2114
+ */
2115
+ volume?: number;
2116
+ }
2117
+ interface ToolCallAudioUnionMember1 {
2118
+ /**
2119
+ * Provide a direct URL to an MP3 file. The audio loops while the tool runs.
2120
+ */
2121
+ type: 'media_url';
2122
+ /**
2123
+ * HTTPS URL to an MP3 file.
2124
+ */
2125
+ value: string;
2126
+ }
1892
2127
  }
1893
2128
  export interface InferenceEmbeddingWebhookToolParams {
1894
2129
  type: 'webhook';
@@ -2369,6 +2604,15 @@ export interface StartSpeakingPlan {
2369
2604
  wait_seconds?: number;
2370
2605
  }
2371
2606
  export interface TelephonySettings {
2607
+ /**
2608
+ * When enabled, the `messages` array of the `call.conversation.ended` webhook
2609
+ * contains the full conversation history in order: user and assistant turns,
2610
+ * assistant tool calls (`tool_calls`), tool results (`role: tool` with
2611
+ * `tool_call_id`), and informational `system` and `developer` entries. The
2612
+ * assistant's instructions are never included. When disabled, `messages` contains
2613
+ * only user and assistant text turns.
2614
+ */
2615
+ conversation_ended_full_history?: boolean;
2372
2616
  /**
2373
2617
  * Default Texml App used for voice calls with your assistant. This will be created
2374
2618
  * automatically on assistant creation.
@@ -2567,6 +2811,30 @@ export declare namespace TelephonySettings {
2567
2811
  }
2568
2812
  }
2569
2813
  }
2814
+ /**
2815
+ * **Beta:** Configuration for the Telnyx open-source avatar provider. Use one of
2816
+ * the six stock avatars or an organization-owned custom avatar returned by the
2817
+ * Avatars API. Supported backgrounds are office, studio, and reception.
2818
+ */
2819
+ export interface TelnyxAvatarSettings {
2820
+ /**
2821
+ * The Telnyx stock avatar or organization-owned custom avatar to render.
2822
+ */
2823
+ avatar_id: AvatarsAPI.AvatarID;
2824
+ /**
2825
+ * The background to render.
2826
+ */
2827
+ background_id: 'office' | 'studio' | 'reception';
2828
+ /**
2829
+ * Required avatar model identifier, separate from `avatar_id`. The supported value
2830
+ * is `foxtrot-1`. Omission, null, and unsupported model identifiers are rejected.
2831
+ */
2832
+ model: 'foxtrot-1';
2833
+ /**
2834
+ * Selects the Telnyx open-source avatar provider.
2835
+ */
2836
+ provider: 'telnyx';
2837
+ }
2570
2838
  /**
2571
2839
  * A standalone tool step in a conversation flow, as returned by the API.
2572
2840
  */
@@ -2578,12 +2846,22 @@ export interface ToolNode {
2578
2846
  /**
2579
2847
  * ID of the single shared (org-level) tool this node executes. When the flow
2580
2848
  * reaches this node the tool runs as a deliberate step (no LLM turn); its outgoing
2581
- * `tool_result` edges then route on the outcome. Arguments are filled from the
2582
- * conversation's dynamic variables by name — a dynamic variable whose name matches
2583
- * one of the tool's parameters supplies that argument. Cross-validated against the
2584
- * org's shared tools on write.
2849
+ * `llm` / `expression` edges route the flow on the tool's outcome. Arguments are
2850
+ * filled from the conversation's dynamic variables by name — a dynamic variable
2851
+ * whose name matches one of the tool's parameters supplies that argument.
2852
+ * Cross-validated against the org's shared tools on write.
2585
2853
  */
2586
2854
  shared_tool_id: string;
2855
+ /**
2856
+ * Optional message delivered to the user verbatim immediately before the tool
2857
+ * executes — an announcement such as 'One moment while I look that up.' No LLM
2858
+ * turn and no customer turn: the message is spoken/sent, then the tool runs, in
2859
+ * the same deterministic step. `{{variable}}` placeholders are interpolated from
2860
+ * the conversation's dynamic variables (unresolved → empty string); the tool's own
2861
+ * result is not yet available when the message is rendered. Omit for a silent tool
2862
+ * step.
2863
+ */
2864
+ message?: string;
2587
2865
  /**
2588
2866
  * Optional human-readable label, displayed in authoring UIs.
2589
2867
  */
@@ -2610,8 +2888,10 @@ export interface ToolNode {
2610
2888
  *
2611
2889
  * Unlike a prompt node, a tool node has no instructions or model — it isn't an LLM
2612
2890
  * turn. Reaching it deterministically runs one shared tool (arguments filled from
2613
- * matching dynamic variables by name), then routes on the result via outgoing
2614
- * `tool_result` edges.
2891
+ * matching dynamic variables by name), then routes via outgoing `llm` /
2892
+ * `expression` edges, with exactly one `default` fallback edge required when the
2893
+ * node has any outgoing edges (the tool's outcome is readable as
2894
+ * `telnyx_last_tool_status_code` in `expression` conditions).
2615
2895
  */
2616
2896
  export interface ToolNodeReq {
2617
2897
  /**
@@ -2621,12 +2901,22 @@ export interface ToolNodeReq {
2621
2901
  /**
2622
2902
  * ID of the single shared (org-level) tool this node executes. When the flow
2623
2903
  * reaches this node the tool runs as a deliberate step (no LLM turn); its outgoing
2624
- * `tool_result` edges then route on the outcome. Arguments are filled from the
2625
- * conversation's dynamic variables by name — a dynamic variable whose name matches
2626
- * one of the tool's parameters supplies that argument. Cross-validated against the
2627
- * org's shared tools on write.
2904
+ * `llm` / `expression` edges route the flow on the tool's outcome. Arguments are
2905
+ * filled from the conversation's dynamic variables by name — a dynamic variable
2906
+ * whose name matches one of the tool's parameters supplies that argument.
2907
+ * Cross-validated against the org's shared tools on write.
2628
2908
  */
2629
2909
  shared_tool_id: string;
2910
+ /**
2911
+ * Optional message delivered to the user verbatim immediately before the tool
2912
+ * executes — an announcement such as 'One moment while I look that up.' No LLM
2913
+ * turn and no customer turn: the message is spoken/sent, then the tool runs, in
2914
+ * the same deterministic step. `{{variable}}` placeholders are interpolated from
2915
+ * the conversation's dynamic variables (unresolved → empty string); the tool's own
2916
+ * result is not yet available when the message is rendered. Omit for a silent tool
2917
+ * step.
2918
+ */
2919
+ message?: string;
2630
2920
  /**
2631
2921
  * Optional human-readable label, displayed in authoring UIs.
2632
2922
  */
@@ -2668,6 +2958,22 @@ export interface TranscriptionSettings {
2668
2958
  * used for Azure transcription regions that require a customer-provided API key.
2669
2959
  */
2670
2960
  api_key_ref?: string;
2961
+ /**
2962
+ * A second speech-to-text model that transcribes alongside `transcription.model`,
2963
+ * and the rule that decides which transcript the assistant uses.
2964
+ */
2965
+ challenger?: TranscriptionSettings.Challenger | null;
2966
+ /**
2967
+ * Up to 3 streaming models that take over transcription, in this order, when the
2968
+ * model in use fails, at the start of a call or mid-call. `model` must be a
2969
+ * streaming model too, and must support `language` alongside other models. On
2970
+ * update, a list replaces the stored one: omit the field to keep the stored list,
2971
+ * or send `null` or `[]` to remove it. When an update changes `model` or
2972
+ * `language`, stored fallbacks that no longer fit are removed without an error.
2973
+ * Can't be combined with `challenger`, the language booster; to replace a stored
2974
+ * language booster, send `challenger: null` in the same request.
2975
+ */
2976
+ fallback_models?: Array<TranscriptionSettings.FallbackModel> | null;
2671
2977
  /**
2672
2978
  * The language of the audio to be transcribed. If not set, or if set to `auto`,
2673
2979
  * supported models will automatically detect the language. For `deepgram/flux`,
@@ -2712,8 +3018,9 @@ export interface TranscriptionSettings {
2712
3018
  * - `reson8/turns` is a turn-based streaming model covering 10 European languages
2713
3019
  * with automatic language detection.
2714
3020
  * - `cohere/ar-stt` is a non-streaming Arabic and English transcription model.
3021
+ * - `telnyx/basira` is a non-streaming Arabic transcription model.
2715
3022
  */
2716
- 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';
3023
+ 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';
2717
3024
  /**
2718
3025
  * Region on third party cloud providers (currently Azure) if using one of their
2719
3026
  * models. Some regions require `api_key_ref`.
@@ -2721,6 +3028,90 @@ export interface TranscriptionSettings {
2721
3028
  region?: string;
2722
3029
  settings?: TranscriptionSettingsConfig;
2723
3030
  }
3031
+ export declare namespace TranscriptionSettings {
3032
+ /**
3033
+ * A second speech-to-text model that transcribes alongside `transcription.model`,
3034
+ * and the rule that decides which transcript the assistant uses.
3035
+ */
3036
+ interface Challenger {
3037
+ /**
3038
+ * The language booster's model. It must be the same kind of model as
3039
+ * `transcription.model`: both streaming (`deepgram/flux`, `deepgram/nova-3`,
3040
+ * `deepgram/nova-2`, `assemblyai/universal-3-5-pro` or its legacy alias
3041
+ * `assemblyai/universal-streaming`, `xai/grok-stt`, `soniox/stt-rt-v4`,
3042
+ * `soniox/stt-rt-v5`, `humain/realtime`, `reson8/turns`) or both non-streaming
3043
+ * (`azure/fast`, `nvidia/parakeet-v3`, `omi-health/omi-med-stt-v1`,
3044
+ * `cohere/ar-stt`, `distil-whisper/distil-large-v2`,
3045
+ * `openai/whisper-large-v3-turbo`, `telnyx/basira`). It can be the same model as
3046
+ * `transcription.model` on a different `language`.
3047
+ */
3048
+ 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';
3049
+ /**
3050
+ * The language this model transcribes. Omit it or set it to `null` to use the
3051
+ * language of `transcription.model`. The request is rejected when this model
3052
+ * doesn't support the language it would run. It is also rejected when it would run
3053
+ * the same model on the same language as `transcription.model`.
3054
+ */
3055
+ language?: string | null;
3056
+ /**
3057
+ * How the assistant picks the transcript it uses. The models are compared on how
3058
+ * complete and confident their transcripts are, not on language, so the rules work
3059
+ * best when both models understand the callers' language.
3060
+ *
3061
+ * - `best_turn` (default): both models transcribe the whole call. Each turn uses
3062
+ * the language booster's transcript only when it scores higher than the
3063
+ * transcript of `transcription.model` (clearly higher with non-streaming
3064
+ * models). With streaming models, `transcription.model` also decides when each
3065
+ * turn ends. Available for every pair.
3066
+ * - `best_engine`: both models transcribe the first turns, then the call continues
3067
+ * alone on the model whose transcripts scored higher. If neither clearly leads,
3068
+ * `transcription.model` continues. Streaming models only.
3069
+ * - `merge_words`: both models transcribe each utterance and their words are
3070
+ * merged, keeping Arabic and English spoken in the same sentence. Available only
3071
+ * for `telnyx/basira` with `cohere/ar-stt`, in either order. The pair runs on
3072
+ * the language that applies to `telnyx/basira` (its own, or that of
3073
+ * `transcription.model`), which must be Arabic (`ar` or an `ar-` locale),
3074
+ * `multi`, or `auto`.
3075
+ */
3076
+ rule?: 'best_turn' | 'best_engine' | 'merge_words';
3077
+ /**
3078
+ * Settings for the language booster, with the same fields and limits as
3079
+ * `transcription.settings`. Fields that don't apply to this model's provider are
3080
+ * dropped, and the provider's defaults fill in the rest. Omit it or set it to
3081
+ * `null` to use the settings of `transcription.model` where they apply to this
3082
+ * model.
3083
+ */
3084
+ settings?: AssistantsAPI.TranscriptionSettingsConfig | null;
3085
+ }
3086
+ /**
3087
+ * A streaming speech-to-text model that takes over transcription when the model in
3088
+ * use fails.
3089
+ */
3090
+ interface FallbackModel {
3091
+ /**
3092
+ * The fallback model. It must be a streaming model other than
3093
+ * `transcription.model` and the other fallbacks: `deepgram/flux`,
3094
+ * `deepgram/nova-3`, `deepgram/nova-2`, `assemblyai/universal-3-5-pro` (or its
3095
+ * legacy alias `assemblyai/universal-streaming`), `xai/grok-stt`,
3096
+ * `soniox/stt-rt-v4`, `soniox/stt-rt-v5`, `humain/realtime`, or `reson8/turns`.
3097
+ */
3098
+ 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';
3099
+ /**
3100
+ * The language the fallback transcribes. Omit it or set it to `null` to use the
3101
+ * language of `transcription.model`. The request is rejected when the fallback
3102
+ * model doesn't support the language it would run.
3103
+ */
3104
+ language?: string | null;
3105
+ /**
3106
+ * Settings for the fallback, with the same fields and limits as
3107
+ * `transcription.settings`. Fields that don't apply to this model's provider are
3108
+ * dropped, and the provider's defaults fill in the rest. Omit it or set it to
3109
+ * `null` to use the settings of `transcription.model` where they apply to this
3110
+ * model.
3111
+ */
3112
+ settings?: AssistantsAPI.TranscriptionSettingsConfig | null;
3113
+ }
3114
+ }
2724
3115
  export interface TranscriptionSettingsConfig {
2725
3116
  /**
2726
3117
  * Available only for soniox/stt-rt-v4 and soniox/stt-rt-v5. A comma-separated list
@@ -2901,9 +3292,9 @@ export interface VoiceSettings {
2901
3292
  */
2902
3293
  use_speaker_boost?: boolean;
2903
3294
  /**
2904
- * The speed of the voice in the range [0.25, 2.0]. 1.0 is deafult speed. Larger
2905
- * numbers make the voice faster, smaller numbers make it slower. This is only
2906
- * applicable for Telnyx Natural voices.
3295
+ * The speed of the voice in the range [0.6, 1.5]. 1.0 is the default speed. Larger
3296
+ * numbers make the voice faster, smaller numbers make it slower. Applies to Telnyx
3297
+ * `Ultra` voices; values outside this range are rejected by the synthesis engine.
2907
3298
  */
2908
3299
  voice_speed?: number;
2909
3300
  }
@@ -3078,6 +3469,32 @@ export declare namespace WebhookTool {
3078
3469
  }
3079
3470
  }
3080
3471
  }
3472
+ /**
3473
+ * Streams conversation and telephony events to a WebSocket server you host, and
3474
+ * accepts messages injected back into the conversation. Telnyx opens the
3475
+ * connection as a client, once per conversation. Delivery is best effort
3476
+ * throughout: while the connection is down events are dropped rather than queued,
3477
+ * and no socket failure is ever allowed to affect the call. Beta feature.
3478
+ */
3479
+ export interface WebsocketSettings {
3480
+ /**
3481
+ * Integration secret identifier whose value Telnyx sends as an
3482
+ * `Authorization: Bearer <value>` header on the upgrade request. Resolved on every
3483
+ * connection attempt, so a rotated secret is picked up by the next reconnect.
3484
+ */
3485
+ auth_ref?: string;
3486
+ /**
3487
+ * Whether Telnyx opens a WebSocket to `url` for each of this assistant's
3488
+ * conversations. Defaults to `false`.
3489
+ */
3490
+ enabled?: boolean;
3491
+ /**
3492
+ * The `ws://` or `wss://` endpoint Telnyx connects to. Required when `enabled` is
3493
+ * `true`. Must be externally reachable — localhost, private IP ranges and `.local`
3494
+ * domains are rejected.
3495
+ */
3496
+ url?: string;
3497
+ }
3081
3498
  /**
3082
3499
  * Configuration settings for the assistant's web widget.
3083
3500
  */
@@ -3143,6 +3560,16 @@ export type AssistantGetTexmlResponse = string;
3143
3560
  export interface AssistantSendSMSResponse {
3144
3561
  conversation_id?: string;
3145
3562
  }
3563
+ export interface AssistantWhatsappResponse {
3564
+ /**
3565
+ * ID of the conversation created for this WhatsApp chat.
3566
+ */
3567
+ conversation_id: string;
3568
+ /**
3569
+ * ID of the WhatsApp template message that was sent.
3570
+ */
3571
+ message_id: string;
3572
+ }
3146
3573
  export interface AssistantCreateParams {
3147
3574
  /**
3148
3575
  * Body param: System instructions for the assistant. These may be templated with
@@ -3164,6 +3591,12 @@ export interface AssistantCreateParams {
3164
3591
  * that capability for the conversation; it does not fail the call.
3165
3592
  */
3166
3593
  a2a_agents?: Array<AssistantA2AAgent>;
3594
+ /**
3595
+ * Body param: **Beta:** Configuration for the Telnyx open-source avatar provider.
3596
+ * Use one of the six stock avatars or an organization-owned custom avatar returned
3597
+ * by the Avatars API. Supported backgrounds are office, studio, and reception.
3598
+ */
3599
+ avatar_settings?: AvatarSettingsRequest | null;
3167
3600
  /**
3168
3601
  * Body param: Conversation flow as supplied by API clients (create / update).
3169
3602
  *
@@ -3172,6 +3605,16 @@ export interface AssistantCreateParams {
3172
3605
  * every edge's endpoints reference real nodes.
3173
3606
  */
3174
3607
  conversation_flow?: ConversationFlowReq;
3608
+ /**
3609
+ * Body param: Splits the conversation between a frontend model that talks to the
3610
+ * caller and a backend model that does the work. On the GPT-Live route the
3611
+ * frontend model cannot call tools at all — when it needs something done it raises
3612
+ * a delegation and waits. On the chat completion route the frontend keeps a single
3613
+ * `delegate` tool that returns immediately, so the conversation carries on while
3614
+ * the backend works. Either way the backend's answer is spoken as commentary or
3615
+ * kept as silent context, depending on `speak_results`. Beta feature.
3616
+ */
3617
+ delegation_settings?: DelegationSettings;
3175
3618
  /**
3176
3619
  * Body param
3177
3620
  */
@@ -3313,6 +3756,14 @@ export interface AssistantCreateParams {
3313
3756
  * Body param
3314
3757
  */
3315
3758
  voice_settings?: InferenceEmbeddingVoiceSettings;
3759
+ /**
3760
+ * Body param: Streams conversation and telephony events to a WebSocket server you
3761
+ * host, and accepts messages injected back into the conversation. Telnyx opens the
3762
+ * connection as a client, once per conversation. Delivery is best effort
3763
+ * throughout: while the connection is down events are dropped rather than queued,
3764
+ * and no socket failure is ever allowed to affect the call. Beta feature.
3765
+ */
3766
+ websocket_settings?: WebsocketSettings;
3316
3767
  /**
3317
3768
  * Body param: Configuration settings for the assistant's web widget.
3318
3769
  */
@@ -3357,6 +3808,13 @@ export interface AssistantImportsParams {
3357
3808
  */
3358
3809
  'Idempotency-Key'?: string;
3359
3810
  }
3811
+ export interface AssistantDeleteParams {
3812
+ /**
3813
+ * Permanently delete the assistant immediately instead of soft-deleting it to the
3814
+ * Recently Deleted list, where it stays restorable for 30 days.
3815
+ */
3816
+ hard_delete?: boolean;
3817
+ }
3360
3818
  export interface AssistantRetrieveParams {
3361
3819
  /**
3362
3820
  * Filter results by call control id.
@@ -3388,6 +3846,12 @@ export interface AssistantUpdateParams {
3388
3846
  * leave the assistant's agents unchanged; send an empty array to remove them all.
3389
3847
  */
3390
3848
  a2a_agents?: Array<AssistantA2AAgent>;
3849
+ /**
3850
+ * **Beta:** Configuration for the Telnyx open-source avatar provider. Use one of
3851
+ * the six stock avatars or an organization-owned custom avatar returned by the
3852
+ * Avatars API. Supported backgrounds are office, studio, and reception.
3853
+ */
3854
+ avatar_settings?: AvatarSettingsRequest | null;
3391
3855
  /**
3392
3856
  * Conversation flow as supplied by API clients (create / update).
3393
3857
  *
@@ -3396,6 +3860,16 @@ export interface AssistantUpdateParams {
3396
3860
  * every edge's endpoints reference real nodes.
3397
3861
  */
3398
3862
  conversation_flow?: ConversationFlowReq;
3863
+ /**
3864
+ * Splits the conversation between a frontend model that talks to the caller and a
3865
+ * backend model that does the work. On the GPT-Live route the frontend model
3866
+ * cannot call tools at all — when it needs something done it raises a delegation
3867
+ * and waits. On the chat completion route the frontend keeps a single `delegate`
3868
+ * tool that returns immediately, so the conversation carries on while the backend
3869
+ * works. Either way the backend's answer is spoken as commentary or kept as silent
3870
+ * context, depending on `speak_results`. Beta feature.
3871
+ */
3872
+ delegation_settings?: DelegationSettings;
3399
3873
  description?: string;
3400
3874
  /**
3401
3875
  * Map of dynamic variables and their default values
@@ -3529,6 +4003,14 @@ export interface AssistantUpdateParams {
3529
4003
  */
3530
4004
  version_name?: string;
3531
4005
  voice_settings?: InferenceEmbeddingVoiceSettings;
4006
+ /**
4007
+ * Streams conversation and telephony events to a WebSocket server you host, and
4008
+ * accepts messages injected back into the conversation. Telnyx opens the
4009
+ * connection as a client, once per conversation. Delivery is best effort
4010
+ * throughout: while the connection is down events are dropped rather than queued,
4011
+ * and no socket failure is ever allowed to affect the call. Beta feature.
4012
+ */
4013
+ websocket_settings?: WebsocketSettings;
3532
4014
  /**
3533
4015
  * Configuration settings for the assistant's web widget.
3534
4016
  */
@@ -3604,8 +4086,43 @@ export interface AssistantSendSMSParams {
3604
4086
  */
3605
4087
  'Idempotency-Key'?: string;
3606
4088
  }
4089
+ export interface AssistantWhatsappParams {
4090
+ /**
4091
+ * Body param: Instruction for the assistant, including the values for the template
4092
+ * variables, e.g. `Send the login verification code 482913 to the customer.`
4093
+ */
4094
+ content: string;
4095
+ /**
4096
+ * Body param: WhatsApp number on your account to send from, in E.164 format. Its
4097
+ * messaging profile must have this assistant configured.
4098
+ */
4099
+ from: string;
4100
+ /**
4101
+ * Body param: Customer to message, as an E.164 phone number or a WhatsApp
4102
+ * business-scoped user ID (BSUID).
4103
+ */
4104
+ to: string;
4105
+ /**
4106
+ * Body param: Metadata stored on the conversation. Keys starting with `telnyx_`
4107
+ * and the `assistant_id` key are reserved.
4108
+ */
4109
+ conversation_metadata?: {
4110
+ [key: string]: string | number | boolean;
4111
+ };
4112
+ /**
4113
+ * Header param: Optional opaque, unquoted key for safely retrying the same logical
4114
+ * request. Keys must contain 1 to 255 letters, numbers, hyphens, or underscores.
4115
+ * Generate a unique UUID v4 for each operation and reuse it only when retrying
4116
+ * that operation with the same request. Invalid headers—including duplicate,
4117
+ * empty, malformed, or overlong values—return 400 with error code 10015. A request
4118
+ * already in progress with the same key returns 409; reusing the key with a
4119
+ * different request returns 422. Only successful responses are replayed, for up to
4120
+ * 24 hours. Do not include sensitive data in the key.
4121
+ */
4122
+ 'Idempotency-Key'?: string;
4123
+ }
3607
4124
  export declare namespace Assistants {
3608
- 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 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 WidgetSettings as WidgetSettings, type AssistantDeleteResponse as AssistantDeleteResponse, type AssistantChatResponse as AssistantChatResponse, type AssistantGetTexmlResponse as AssistantGetTexmlResponse, type AssistantSendSMSResponse as AssistantSendSMSResponse, type AssistantCreateParams as AssistantCreateParams, type AssistantImportsParams as AssistantImportsParams, type AssistantRetrieveParams as AssistantRetrieveParams, type AssistantUpdateParams as AssistantUpdateParams, type AssistantChatParams as AssistantChatParams, type AssistantCloneParams as AssistantCloneParams, type AssistantSendSMSParams as AssistantSendSMSParams, };
4125
+ 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, };
3609
4126
  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, };
3610
4127
  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, };
3611
4128
  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, };
@@ -3613,5 +4130,6 @@ export declare namespace Assistants {
3613
4130
  export { Versions as Versions, type UpdateAssistant as UpdateAssistant, type VersionDeleteParams as VersionDeleteParams, type VersionRetrieveParams as VersionRetrieveParams, type VersionUpdateParams as VersionUpdateParams, type VersionPromoteParams as VersionPromoteParams, };
3614
4131
  export { Tags as Tags, type TagsResponse as TagsResponse, type TagAddParams as TagAddParams, type TagRemoveParams as TagRemoveParams, };
3615
4132
  export { Instructions as Instructions, type InstructionEnhanceResponse as InstructionEnhanceResponse, type InstructionEnhanceParams as InstructionEnhanceParams, };
4133
+ export { Deleted as Deleted, type DeletedAssistant as DeletedAssistant, type DeletedAssistantsDefaultFlatPagination as DeletedAssistantsDefaultFlatPagination, type DeletedListParams as DeletedListParams, };
3616
4134
  }
3617
4135
  //# sourceMappingURL=assistants.d.mts.map