telnyx 7.23.0 → 7.25.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 (594) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/client.d.mts +27 -12
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +27 -12
  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/ai/ai.d.mts +11 -6
  12. package/resources/ai/ai.d.mts.map +1 -1
  13. package/resources/ai/ai.d.ts +11 -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 +469 -35
  20. package/resources/ai/assistants/assistants.d.mts.map +1 -1
  21. package/resources/ai/assistants/assistants.d.ts +469 -35
  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 +38 -2
  44. package/resources/ai/assistants/versions.d.mts.map +1 -1
  45. package/resources/ai/assistants/versions.d.ts +38 -2
  46. package/resources/ai/assistants/versions.d.ts.map +1 -1
  47. package/resources/ai/chat.d.mts +7 -2
  48. package/resources/ai/chat.d.mts.map +1 -1
  49. package/resources/ai/chat.d.ts +7 -2
  50. package/resources/ai/chat.d.ts.map +1 -1
  51. package/resources/ai/collections/collections.d.mts +3 -3
  52. package/resources/ai/collections/collections.d.mts.map +1 -1
  53. package/resources/ai/collections/collections.d.ts +3 -3
  54. package/resources/ai/collections/collections.d.ts.map +1 -1
  55. package/resources/ai/collections/collections.js.map +1 -1
  56. package/resources/ai/collections/collections.mjs.map +1 -1
  57. package/resources/ai/collections/index.d.mts +1 -1
  58. package/resources/ai/collections/index.d.mts.map +1 -1
  59. package/resources/ai/collections/index.d.ts +1 -1
  60. package/resources/ai/collections/index.d.ts.map +1 -1
  61. package/resources/ai/collections/index.js.map +1 -1
  62. package/resources/ai/collections/index.mjs.map +1 -1
  63. package/resources/ai/collections/sources.d.mts +32 -5
  64. package/resources/ai/collections/sources.d.mts.map +1 -1
  65. package/resources/ai/collections/sources.d.ts +32 -5
  66. package/resources/ai/collections/sources.d.ts.map +1 -1
  67. package/resources/ai/collections/sources.js.map +1 -1
  68. package/resources/ai/collections/sources.mjs.map +1 -1
  69. package/resources/ai/embeddings/embeddings.d.mts +1 -1
  70. package/resources/ai/embeddings/embeddings.d.ts +1 -1
  71. package/resources/ai/embeddings/embeddings.js +1 -1
  72. package/resources/ai/embeddings/embeddings.mjs +1 -1
  73. package/resources/ai/index.d.mts +3 -2
  74. package/resources/ai/index.d.mts.map +1 -1
  75. package/resources/ai/index.d.ts +3 -2
  76. package/resources/ai/index.d.ts.map +1 -1
  77. package/resources/ai/index.js +9 -7
  78. package/resources/ai/index.js.map +1 -1
  79. package/resources/ai/index.mjs +1 -0
  80. package/resources/ai/index.mjs.map +1 -1
  81. package/resources/ai/memory/index.d.mts +3 -0
  82. package/resources/ai/memory/index.d.mts.map +1 -0
  83. package/resources/ai/memory/index.d.ts +3 -0
  84. package/resources/ai/memory/index.d.ts.map +1 -0
  85. package/resources/ai/memory/index.js +9 -0
  86. package/resources/ai/memory/index.js.map +1 -0
  87. package/resources/ai/memory/index.mjs +4 -0
  88. package/resources/ai/memory/index.mjs.map +1 -0
  89. package/resources/ai/memory/memory.d.mts +10 -0
  90. package/resources/ai/memory/memory.d.mts.map +1 -0
  91. package/resources/ai/memory/memory.d.ts +10 -0
  92. package/resources/ai/memory/memory.d.ts.map +1 -0
  93. package/resources/ai/memory/memory.js +17 -0
  94. package/resources/ai/memory/memory.js.map +1 -0
  95. package/resources/ai/memory/memory.mjs +12 -0
  96. package/resources/ai/memory/memory.mjs.map +1 -0
  97. package/resources/ai/memory/namespaces/index.d.mts +4 -0
  98. package/resources/ai/memory/namespaces/index.d.mts.map +1 -0
  99. package/resources/ai/memory/namespaces/index.d.ts +4 -0
  100. package/resources/ai/memory/namespaces/index.d.ts.map +1 -0
  101. package/resources/ai/memory/namespaces/index.js +11 -0
  102. package/resources/ai/memory/namespaces/index.js.map +1 -0
  103. package/resources/ai/memory/namespaces/index.mjs +5 -0
  104. package/resources/ai/memory/namespaces/index.mjs.map +1 -0
  105. package/resources/ai/memory/namespaces/namespaces.d.mts +110 -0
  106. package/resources/ai/memory/namespaces/namespaces.d.mts.map +1 -0
  107. package/resources/ai/memory/namespaces/namespaces.d.ts +110 -0
  108. package/resources/ai/memory/namespaces/namespaces.d.ts.map +1 -0
  109. package/resources/ai/memory/namespaces/namespaces.js +81 -0
  110. package/resources/ai/memory/namespaces/namespaces.js.map +1 -0
  111. package/resources/ai/memory/namespaces/namespaces.mjs +76 -0
  112. package/resources/ai/memory/namespaces/namespaces.mjs.map +1 -0
  113. package/resources/ai/memory/namespaces/profiles/index.d.mts +4 -0
  114. package/resources/ai/memory/namespaces/profiles/index.d.mts.map +1 -0
  115. package/resources/ai/memory/namespaces/profiles/index.d.ts +4 -0
  116. package/resources/ai/memory/namespaces/profiles/index.d.ts.map +1 -0
  117. package/resources/ai/memory/namespaces/profiles/index.js +11 -0
  118. package/resources/ai/memory/namespaces/profiles/index.js.map +1 -0
  119. package/resources/ai/memory/namespaces/profiles/index.mjs +5 -0
  120. package/resources/ai/memory/namespaces/profiles/index.mjs.map +1 -0
  121. package/resources/ai/memory/namespaces/profiles/memories.d.mts +118 -0
  122. package/resources/ai/memory/namespaces/profiles/memories.d.mts.map +1 -0
  123. package/resources/ai/memory/namespaces/profiles/memories.d.ts +118 -0
  124. package/resources/ai/memory/namespaces/profiles/memories.d.ts.map +1 -0
  125. package/resources/ai/memory/namespaces/profiles/memories.js +63 -0
  126. package/resources/ai/memory/namespaces/profiles/memories.js.map +1 -0
  127. package/resources/ai/memory/namespaces/profiles/memories.mjs +59 -0
  128. package/resources/ai/memory/namespaces/profiles/memories.mjs.map +1 -0
  129. package/resources/ai/memory/namespaces/profiles/profiles.d.mts +324 -0
  130. package/resources/ai/memory/namespaces/profiles/profiles.d.mts.map +1 -0
  131. package/resources/ai/memory/namespaces/profiles/profiles.d.ts +324 -0
  132. package/resources/ai/memory/namespaces/profiles/profiles.d.ts.map +1 -0
  133. package/resources/ai/memory/namespaces/profiles/profiles.js +161 -0
  134. package/resources/ai/memory/namespaces/profiles/profiles.js.map +1 -0
  135. package/resources/ai/memory/namespaces/profiles/profiles.mjs +156 -0
  136. package/resources/ai/memory/namespaces/profiles/profiles.mjs.map +1 -0
  137. package/resources/ai/memory/namespaces/profiles/sources.d.mts +163 -0
  138. package/resources/ai/memory/namespaces/profiles/sources.d.mts.map +1 -0
  139. package/resources/ai/memory/namespaces/profiles/sources.d.ts +163 -0
  140. package/resources/ai/memory/namespaces/profiles/sources.d.ts.map +1 -0
  141. package/resources/ai/memory/namespaces/profiles/sources.js +80 -0
  142. package/resources/ai/memory/namespaces/profiles/sources.js.map +1 -0
  143. package/resources/ai/memory/namespaces/profiles/sources.mjs +76 -0
  144. package/resources/ai/memory/namespaces/profiles/sources.mjs.map +1 -0
  145. package/resources/ai/memory/namespaces/profiles.d.mts +2 -0
  146. package/resources/ai/memory/namespaces/profiles.d.mts.map +1 -0
  147. package/resources/ai/memory/namespaces/profiles.d.ts +2 -0
  148. package/resources/ai/memory/namespaces/profiles.d.ts.map +1 -0
  149. package/resources/ai/memory/namespaces/profiles.js +6 -0
  150. package/resources/ai/memory/namespaces/profiles.js.map +1 -0
  151. package/resources/ai/memory/namespaces/profiles.mjs +3 -0
  152. package/resources/ai/memory/namespaces/profiles.mjs.map +1 -0
  153. package/resources/ai/memory/namespaces/settings.d.mts +108 -0
  154. package/resources/ai/memory/namespaces/settings.d.mts.map +1 -0
  155. package/resources/ai/memory/namespaces/settings.d.ts +108 -0
  156. package/resources/ai/memory/namespaces/settings.d.ts.map +1 -0
  157. package/resources/ai/memory/namespaces/settings.js +54 -0
  158. package/resources/ai/memory/namespaces/settings.js.map +1 -0
  159. package/resources/ai/memory/namespaces/settings.mjs +50 -0
  160. package/resources/ai/memory/namespaces/settings.mjs.map +1 -0
  161. package/resources/ai/memory/namespaces.d.mts +2 -0
  162. package/resources/ai/memory/namespaces.d.mts.map +1 -0
  163. package/resources/ai/memory/namespaces.d.ts +2 -0
  164. package/resources/ai/memory/namespaces.d.ts.map +1 -0
  165. package/resources/ai/memory/namespaces.js +6 -0
  166. package/resources/ai/memory/namespaces.js.map +1 -0
  167. package/resources/ai/memory/namespaces.mjs +3 -0
  168. package/resources/ai/memory/namespaces.mjs.map +1 -0
  169. package/resources/ai/memory.d.mts +2 -0
  170. package/resources/ai/memory.d.mts.map +1 -0
  171. package/resources/ai/memory.d.ts +2 -0
  172. package/resources/ai/memory.d.ts.map +1 -0
  173. package/resources/ai/memory.js +6 -0
  174. package/resources/ai/memory.js.map +1 -0
  175. package/resources/ai/memory.mjs +3 -0
  176. package/resources/ai/memory.mjs.map +1 -0
  177. package/resources/ai/openai/chat.d.mts +7 -2
  178. package/resources/ai/openai/chat.d.mts.map +1 -1
  179. package/resources/ai/openai/chat.d.ts +7 -2
  180. package/resources/ai/openai/chat.d.ts.map +1 -1
  181. package/resources/ai/tools.d.mts +3 -4
  182. package/resources/ai/tools.d.mts.map +1 -1
  183. package/resources/ai/tools.d.ts +3 -4
  184. package/resources/ai/tools.d.ts.map +1 -1
  185. package/resources/ai/tools.js +5 -2
  186. package/resources/ai/tools.js.map +1 -1
  187. package/resources/ai/tools.mjs +5 -2
  188. package/resources/ai/tools.mjs.map +1 -1
  189. package/resources/ai/typesafe/v1.d.mts +25 -14
  190. package/resources/ai/typesafe/v1.d.mts.map +1 -1
  191. package/resources/ai/typesafe/v1.d.ts +25 -14
  192. package/resources/ai/typesafe/v1.d.ts.map +1 -1
  193. package/resources/ai/typesafe/v1.js +15 -10
  194. package/resources/ai/typesafe/v1.js.map +1 -1
  195. package/resources/ai/typesafe/v1.mjs +15 -10
  196. package/resources/ai/typesafe/v1.mjs.map +1 -1
  197. package/resources/calls/actions.d.mts +119 -22
  198. package/resources/calls/actions.d.mts.map +1 -1
  199. package/resources/calls/actions.d.ts +119 -22
  200. package/resources/calls/actions.d.ts.map +1 -1
  201. package/resources/calls/actions.js +31 -0
  202. package/resources/calls/actions.js.map +1 -1
  203. package/resources/calls/actions.mjs +31 -0
  204. package/resources/calls/actions.mjs.map +1 -1
  205. package/resources/calls/calls.d.mts +58 -15
  206. package/resources/calls/calls.d.mts.map +1 -1
  207. package/resources/calls/calls.d.ts +58 -15
  208. package/resources/calls/calls.d.ts.map +1 -1
  209. package/resources/calls/calls.js +3 -0
  210. package/resources/calls/calls.js.map +1 -1
  211. package/resources/calls/calls.mjs +3 -0
  212. package/resources/calls/calls.mjs.map +1 -1
  213. package/resources/calls/index.d.mts +1 -1
  214. package/resources/calls/index.d.mts.map +1 -1
  215. package/resources/calls/index.d.ts +1 -1
  216. package/resources/calls/index.d.ts.map +1 -1
  217. package/resources/calls/index.js.map +1 -1
  218. package/resources/calls/index.mjs.map +1 -1
  219. package/resources/conferences/actions.d.mts +7 -1
  220. package/resources/conferences/actions.d.mts.map +1 -1
  221. package/resources/conferences/actions.d.ts +7 -1
  222. package/resources/conferences/actions.d.ts.map +1 -1
  223. package/resources/dir/dir.d.mts +220 -28
  224. package/resources/dir/dir.d.mts.map +1 -1
  225. package/resources/dir/dir.d.ts +220 -28
  226. package/resources/dir/dir.d.ts.map +1 -1
  227. package/resources/dir/dir.js +77 -13
  228. package/resources/dir/dir.js.map +1 -1
  229. package/resources/dir/dir.mjs +77 -13
  230. package/resources/dir/dir.mjs.map +1 -1
  231. package/resources/dir/index.d.mts +1 -1
  232. package/resources/dir/index.d.mts.map +1 -1
  233. package/resources/dir/index.d.ts +1 -1
  234. package/resources/dir/index.d.ts.map +1 -1
  235. package/resources/dir/index.js.map +1 -1
  236. package/resources/dir/index.mjs.map +1 -1
  237. package/resources/dir/phone-numbers.d.mts +8 -4
  238. package/resources/dir/phone-numbers.d.mts.map +1 -1
  239. package/resources/dir/phone-numbers.d.ts +8 -4
  240. package/resources/dir/phone-numbers.d.ts.map +1 -1
  241. package/resources/dir/phone-numbers.js +4 -4
  242. package/resources/dir/phone-numbers.mjs +4 -4
  243. package/resources/dir/references.d.mts +9 -6
  244. package/resources/dir/references.d.mts.map +1 -1
  245. package/resources/dir/references.d.ts +9 -6
  246. package/resources/dir/references.d.ts.map +1 -1
  247. package/resources/email-blocks/email-blocks.d.mts +12 -4
  248. package/resources/email-blocks/email-blocks.d.mts.map +1 -1
  249. package/resources/email-blocks/email-blocks.d.ts +12 -4
  250. package/resources/email-blocks/email-blocks.d.ts.map +1 -1
  251. package/resources/email-blocks/email-blocks.js +5 -3
  252. package/resources/email-blocks/email-blocks.js.map +1 -1
  253. package/resources/email-blocks/email-blocks.mjs +5 -3
  254. package/resources/email-blocks/email-blocks.mjs.map +1 -1
  255. package/resources/email-blocks/imports.d.mts +20 -4
  256. package/resources/email-blocks/imports.d.mts.map +1 -1
  257. package/resources/email-blocks/imports.d.ts +20 -4
  258. package/resources/email-blocks/imports.d.ts.map +1 -1
  259. package/resources/email-blocks/imports.js +17 -3
  260. package/resources/email-blocks/imports.js.map +1 -1
  261. package/resources/email-blocks/imports.mjs +17 -3
  262. package/resources/email-blocks/imports.mjs.map +1 -1
  263. package/resources/email-domains/email-domains.d.mts +98 -1
  264. package/resources/email-domains/email-domains.d.mts.map +1 -1
  265. package/resources/email-domains/email-domains.d.ts +98 -1
  266. package/resources/email-domains/email-domains.d.ts.map +1 -1
  267. package/resources/email-domains/email-domains.js +21 -0
  268. package/resources/email-domains/email-domains.js.map +1 -1
  269. package/resources/email-domains/email-domains.mjs +21 -0
  270. package/resources/email-domains/email-domains.mjs.map +1 -1
  271. package/resources/email-domains/index.d.mts +1 -1
  272. package/resources/email-domains/index.d.mts.map +1 -1
  273. package/resources/email-domains/index.d.ts +1 -1
  274. package/resources/email-domains/index.d.ts.map +1 -1
  275. package/resources/email-domains/index.js.map +1 -1
  276. package/resources/email-domains/index.mjs.map +1 -1
  277. package/resources/email-domains/webhooks.d.mts +6 -4
  278. package/resources/email-domains/webhooks.d.mts.map +1 -1
  279. package/resources/email-domains/webhooks.d.ts +6 -4
  280. package/resources/email-domains/webhooks.d.ts.map +1 -1
  281. package/resources/email-events.d.mts +162 -28
  282. package/resources/email-events.d.mts.map +1 -1
  283. package/resources/email-events.d.ts +162 -28
  284. package/resources/email-events.d.ts.map +1 -1
  285. package/resources/email-events.js +15 -6
  286. package/resources/email-events.js.map +1 -1
  287. package/resources/email-events.mjs +15 -6
  288. package/resources/email-events.mjs.map +1 -1
  289. package/resources/email-inboxes/drafts.d.mts +31 -1
  290. package/resources/email-inboxes/drafts.d.mts.map +1 -1
  291. package/resources/email-inboxes/drafts.d.ts +31 -1
  292. package/resources/email-inboxes/drafts.d.ts.map +1 -1
  293. package/resources/email-inboxes/drafts.js.map +1 -1
  294. package/resources/email-inboxes/drafts.mjs.map +1 -1
  295. package/resources/email-messages/email-messages.d.mts +174 -43
  296. package/resources/email-messages/email-messages.d.mts.map +1 -1
  297. package/resources/email-messages/email-messages.d.ts +174 -43
  298. package/resources/email-messages/email-messages.d.ts.map +1 -1
  299. package/resources/email-messages/email-messages.js +39 -7
  300. package/resources/email-messages/email-messages.js.map +1 -1
  301. package/resources/email-messages/email-messages.mjs +39 -7
  302. package/resources/email-messages/email-messages.mjs.map +1 -1
  303. package/resources/email-messages/index.d.mts +1 -1
  304. package/resources/email-messages/index.d.mts.map +1 -1
  305. package/resources/email-messages/index.d.ts +1 -1
  306. package/resources/email-messages/index.d.ts.map +1 -1
  307. package/resources/email-messages/index.js.map +1 -1
  308. package/resources/email-messages/index.mjs.map +1 -1
  309. package/resources/email-messages/recipients.d.mts +2 -2
  310. package/resources/email-messages/recipients.d.mts.map +1 -1
  311. package/resources/email-messages/recipients.d.ts +2 -2
  312. package/resources/email-messages/recipients.d.ts.map +1 -1
  313. package/resources/email-templates.d.mts +170 -0
  314. package/resources/email-templates.d.mts.map +1 -1
  315. package/resources/email-templates.d.ts +170 -0
  316. package/resources/email-templates.d.ts.map +1 -1
  317. package/resources/email-templates.js +6 -0
  318. package/resources/email-templates.js.map +1 -1
  319. package/resources/email-templates.mjs +6 -0
  320. package/resources/email-templates.mjs.map +1 -1
  321. package/resources/enterprises/dir.d.mts +17 -1
  322. package/resources/enterprises/dir.d.mts.map +1 -1
  323. package/resources/enterprises/dir.d.ts +17 -1
  324. package/resources/enterprises/dir.d.ts.map +1 -1
  325. package/resources/enterprises/enterprises.d.mts +237 -23
  326. package/resources/enterprises/enterprises.d.mts.map +1 -1
  327. package/resources/enterprises/enterprises.d.ts +237 -23
  328. package/resources/enterprises/enterprises.d.ts.map +1 -1
  329. package/resources/enterprises/enterprises.js +26 -4
  330. package/resources/enterprises/enterprises.js.map +1 -1
  331. package/resources/enterprises/enterprises.mjs +26 -4
  332. package/resources/enterprises/enterprises.mjs.map +1 -1
  333. package/resources/enterprises/index.d.mts +1 -0
  334. package/resources/enterprises/index.d.mts.map +1 -1
  335. package/resources/enterprises/index.d.ts +1 -0
  336. package/resources/enterprises/index.d.ts.map +1 -1
  337. package/resources/enterprises/index.js +3 -1
  338. package/resources/enterprises/index.js.map +1 -1
  339. package/resources/enterprises/index.mjs +1 -0
  340. package/resources/enterprises/index.mjs.map +1 -1
  341. package/resources/enterprises/reputation/loa.d.mts +61 -1
  342. package/resources/enterprises/reputation/loa.d.mts.map +1 -1
  343. package/resources/enterprises/reputation/loa.d.ts +61 -1
  344. package/resources/enterprises/reputation/loa.d.ts.map +1 -1
  345. package/resources/enterprises/verify-email.d.mts +91 -0
  346. package/resources/enterprises/verify-email.d.mts.map +1 -0
  347. package/resources/enterprises/verify-email.d.ts +91 -0
  348. package/resources/enterprises/verify-email.d.ts.map +1 -0
  349. package/resources/enterprises/verify-email.js +55 -0
  350. package/resources/enterprises/verify-email.js.map +1 -0
  351. package/resources/enterprises/verify-email.mjs +51 -0
  352. package/resources/enterprises/verify-email.mjs.map +1 -0
  353. package/resources/index.d.mts +8 -6
  354. package/resources/index.d.mts.map +1 -1
  355. package/resources/index.d.ts +8 -6
  356. package/resources/index.d.ts.map +1 -1
  357. package/resources/index.js +7 -3
  358. package/resources/index.js.map +1 -1
  359. package/resources/index.mjs +2 -0
  360. package/resources/index.mjs.map +1 -1
  361. package/resources/infringement-claims.d.mts +4 -0
  362. package/resources/infringement-claims.d.mts.map +1 -1
  363. package/resources/infringement-claims.d.ts +4 -0
  364. package/resources/infringement-claims.d.ts.map +1 -1
  365. package/resources/llm-token-gateway/index.d.mts +3 -0
  366. package/resources/llm-token-gateway/index.d.mts.map +1 -0
  367. package/resources/llm-token-gateway/index.d.ts +3 -0
  368. package/resources/llm-token-gateway/index.d.ts.map +1 -0
  369. package/resources/llm-token-gateway/index.js +9 -0
  370. package/resources/llm-token-gateway/index.js.map +1 -0
  371. package/resources/llm-token-gateway/index.mjs +4 -0
  372. package/resources/llm-token-gateway/index.mjs.map +1 -0
  373. package/resources/llm-token-gateway/llm-token-gateway.d.mts +10 -0
  374. package/resources/llm-token-gateway/llm-token-gateway.d.mts.map +1 -0
  375. package/resources/llm-token-gateway/llm-token-gateway.d.ts +10 -0
  376. package/resources/llm-token-gateway/llm-token-gateway.d.ts.map +1 -0
  377. package/resources/llm-token-gateway/llm-token-gateway.js +17 -0
  378. package/resources/llm-token-gateway/llm-token-gateway.js.map +1 -0
  379. package/resources/llm-token-gateway/llm-token-gateway.mjs +12 -0
  380. package/resources/llm-token-gateway/llm-token-gateway.mjs.map +1 -0
  381. package/resources/llm-token-gateway/usage.d.mts +260 -0
  382. package/resources/llm-token-gateway/usage.d.mts.map +1 -0
  383. package/resources/llm-token-gateway/usage.d.ts +260 -0
  384. package/resources/llm-token-gateway/usage.d.ts.map +1 -0
  385. package/resources/llm-token-gateway/usage.js +31 -0
  386. package/resources/llm-token-gateway/usage.js.map +1 -0
  387. package/resources/llm-token-gateway/usage.mjs +27 -0
  388. package/resources/llm-token-gateway/usage.mjs.map +1 -0
  389. package/resources/llm-token-gateway.d.mts +2 -0
  390. package/resources/llm-token-gateway.d.mts.map +1 -0
  391. package/resources/llm-token-gateway.d.ts +2 -0
  392. package/resources/llm-token-gateway.d.ts.map +1 -0
  393. package/resources/llm-token-gateway.js +6 -0
  394. package/resources/llm-token-gateway.js.map +1 -0
  395. package/resources/llm-token-gateway.mjs +3 -0
  396. package/resources/llm-token-gateway.mjs.map +1 -0
  397. package/resources/meeting-sessions/actions.d.mts +7 -1
  398. package/resources/meeting-sessions/actions.d.mts.map +1 -1
  399. package/resources/meeting-sessions/actions.d.ts +7 -1
  400. package/resources/meeting-sessions/actions.d.ts.map +1 -1
  401. package/resources/meeting-sessions/actions.js +7 -1
  402. package/resources/meeting-sessions/actions.js.map +1 -1
  403. package/resources/meeting-sessions/actions.mjs +7 -1
  404. package/resources/meeting-sessions/actions.mjs.map +1 -1
  405. package/resources/meeting-sessions/artifacts.d.mts +38 -11
  406. package/resources/meeting-sessions/artifacts.d.mts.map +1 -1
  407. package/resources/meeting-sessions/artifacts.d.ts +38 -11
  408. package/resources/meeting-sessions/artifacts.d.ts.map +1 -1
  409. package/resources/meeting-sessions/artifacts.js +11 -5
  410. package/resources/meeting-sessions/artifacts.js.map +1 -1
  411. package/resources/meeting-sessions/artifacts.mjs +11 -5
  412. package/resources/meeting-sessions/artifacts.mjs.map +1 -1
  413. package/resources/meeting-sessions/meeting-sessions.d.mts +71 -32
  414. package/resources/meeting-sessions/meeting-sessions.d.mts.map +1 -1
  415. package/resources/meeting-sessions/meeting-sessions.d.ts +71 -32
  416. package/resources/meeting-sessions/meeting-sessions.d.ts.map +1 -1
  417. package/resources/meeting-sessions/meeting-sessions.js +6 -8
  418. package/resources/meeting-sessions/meeting-sessions.js.map +1 -1
  419. package/resources/meeting-sessions/meeting-sessions.mjs +6 -8
  420. package/resources/meeting-sessions/meeting-sessions.mjs.map +1 -1
  421. package/resources/phone-numbers/phone-numbers.d.mts +12 -2
  422. package/resources/phone-numbers/phone-numbers.d.mts.map +1 -1
  423. package/resources/phone-numbers/phone-numbers.d.ts +12 -2
  424. package/resources/phone-numbers/phone-numbers.d.ts.map +1 -1
  425. package/resources/phone-numbers/phone-numbers.js.map +1 -1
  426. package/resources/phone-numbers/phone-numbers.mjs.map +1 -1
  427. package/resources/porting-orders/phone-number-blocks.d.mts +1 -1
  428. package/resources/porting-orders/phone-number-blocks.d.mts.map +1 -1
  429. package/resources/porting-orders/phone-number-blocks.d.ts +1 -1
  430. package/resources/porting-orders/phone-number-blocks.d.ts.map +1 -1
  431. package/resources/porting-orders/porting-orders.d.mts +1 -1
  432. package/resources/porting-orders/porting-orders.d.mts.map +1 -1
  433. package/resources/porting-orders/porting-orders.d.ts +1 -1
  434. package/resources/porting-orders/porting-orders.d.ts.map +1 -1
  435. package/resources/porting-orders/porting-orders.js.map +1 -1
  436. package/resources/porting-orders/porting-orders.mjs.map +1 -1
  437. package/resources/porting-phone-numbers.d.mts +1 -1
  438. package/resources/porting-phone-numbers.d.mts.map +1 -1
  439. package/resources/porting-phone-numbers.d.ts +1 -1
  440. package/resources/porting-phone-numbers.d.ts.map +1 -1
  441. package/resources/private-wireless-gateways.d.mts +61 -7
  442. package/resources/private-wireless-gateways.d.mts.map +1 -1
  443. package/resources/private-wireless-gateways.d.ts +61 -7
  444. package/resources/private-wireless-gateways.d.ts.map +1 -1
  445. package/resources/private-wireless-gateways.js +1 -1
  446. package/resources/private-wireless-gateways.js.map +1 -1
  447. package/resources/private-wireless-gateways.mjs +1 -1
  448. package/resources/private-wireless-gateways.mjs.map +1 -1
  449. package/resources/requirements.d.mts +2 -2
  450. package/resources/requirements.d.mts.map +1 -1
  451. package/resources/requirements.d.ts +2 -2
  452. package/resources/requirements.d.ts.map +1 -1
  453. package/resources/spend-limits.d.mts +335 -0
  454. package/resources/spend-limits.d.mts.map +1 -0
  455. package/resources/spend-limits.d.ts +335 -0
  456. package/resources/spend-limits.d.ts.map +1 -0
  457. package/resources/spend-limits.js +91 -0
  458. package/resources/spend-limits.js.map +1 -0
  459. package/resources/spend-limits.mjs +87 -0
  460. package/resources/spend-limits.mjs.map +1 -0
  461. package/resources/terms-of-service/agreements.d.mts +12 -0
  462. package/resources/terms-of-service/agreements.d.mts.map +1 -1
  463. package/resources/terms-of-service/agreements.d.ts +12 -0
  464. package/resources/terms-of-service/agreements.d.ts.map +1 -1
  465. package/resources/terms-of-service/terms-of-service.d.mts +15 -0
  466. package/resources/terms-of-service/terms-of-service.d.mts.map +1 -1
  467. package/resources/terms-of-service/terms-of-service.d.ts +15 -0
  468. package/resources/terms-of-service/terms-of-service.d.ts.map +1 -1
  469. package/resources/terms-of-service/terms-of-service.js.map +1 -1
  470. package/resources/terms-of-service/terms-of-service.mjs.map +1 -1
  471. package/resources/texml/accounts/calls/calls.d.mts +9 -9
  472. package/resources/texml/accounts/calls/calls.d.mts.map +1 -1
  473. package/resources/texml/accounts/calls/calls.d.ts +9 -9
  474. package/resources/texml/accounts/calls/calls.d.ts.map +1 -1
  475. package/resources/texml/accounts/calls/calls.js +12 -2
  476. package/resources/texml/accounts/calls/calls.js.map +1 -1
  477. package/resources/texml/accounts/calls/calls.mjs +12 -2
  478. package/resources/texml/accounts/calls/calls.mjs.map +1 -1
  479. package/resources/text-to-speech/text-to-speech.d.mts +65 -11
  480. package/resources/text-to-speech/text-to-speech.d.mts.map +1 -1
  481. package/resources/text-to-speech/text-to-speech.d.ts +65 -11
  482. package/resources/text-to-speech/text-to-speech.d.ts.map +1 -1
  483. package/resources/text-to-speech/text-to-speech.js +10 -3
  484. package/resources/text-to-speech/text-to-speech.js.map +1 -1
  485. package/resources/text-to-speech/text-to-speech.mjs +10 -3
  486. package/resources/text-to-speech/text-to-speech.mjs.map +1 -1
  487. package/resources/webhooks.d.mts +417 -9
  488. package/resources/webhooks.d.mts.map +1 -1
  489. package/resources/webhooks.d.ts +417 -9
  490. package/resources/webhooks.d.ts.map +1 -1
  491. package/resources/whatsapp/phone-numbers/calling-routing.d.mts +89 -0
  492. package/resources/whatsapp/phone-numbers/calling-routing.d.mts.map +1 -0
  493. package/resources/whatsapp/phone-numbers/calling-routing.d.ts +89 -0
  494. package/resources/whatsapp/phone-numbers/calling-routing.d.ts.map +1 -0
  495. package/resources/whatsapp/phone-numbers/calling-routing.js +65 -0
  496. package/resources/whatsapp/phone-numbers/calling-routing.js.map +1 -0
  497. package/resources/whatsapp/phone-numbers/calling-routing.mjs +61 -0
  498. package/resources/whatsapp/phone-numbers/calling-routing.mjs.map +1 -0
  499. package/resources/whatsapp/phone-numbers/index.d.mts +1 -0
  500. package/resources/whatsapp/phone-numbers/index.d.mts.map +1 -1
  501. package/resources/whatsapp/phone-numbers/index.d.ts +1 -0
  502. package/resources/whatsapp/phone-numbers/index.d.ts.map +1 -1
  503. package/resources/whatsapp/phone-numbers/index.js +3 -1
  504. package/resources/whatsapp/phone-numbers/index.js.map +1 -1
  505. package/resources/whatsapp/phone-numbers/index.mjs +1 -0
  506. package/resources/whatsapp/phone-numbers/index.mjs.map +1 -1
  507. package/resources/whatsapp/phone-numbers/phone-numbers.d.mts +4 -0
  508. package/resources/whatsapp/phone-numbers/phone-numbers.d.mts.map +1 -1
  509. package/resources/whatsapp/phone-numbers/phone-numbers.d.ts +4 -0
  510. package/resources/whatsapp/phone-numbers/phone-numbers.d.ts.map +1 -1
  511. package/resources/whatsapp/phone-numbers/phone-numbers.js +4 -0
  512. package/resources/whatsapp/phone-numbers/phone-numbers.js.map +1 -1
  513. package/resources/whatsapp/phone-numbers/phone-numbers.mjs +4 -0
  514. package/resources/whatsapp/phone-numbers/phone-numbers.mjs.map +1 -1
  515. package/src/client.ts +67 -6
  516. package/src/resources/ai/ai.ts +21 -4
  517. package/src/resources/ai/assistants/assistants.ts +602 -36
  518. package/src/resources/ai/assistants/deleted.ts +86 -0
  519. package/src/resources/ai/assistants/index.ts +12 -0
  520. package/src/resources/ai/assistants/versions.ts +42 -2
  521. package/src/resources/ai/chat.ts +7 -2
  522. package/src/resources/ai/collections/collections.ts +3 -1
  523. package/src/resources/ai/collections/index.ts +2 -0
  524. package/src/resources/ai/collections/sources.ts +38 -4
  525. package/src/resources/ai/embeddings/embeddings.ts +1 -1
  526. package/src/resources/ai/index.ts +7 -1
  527. package/src/resources/ai/memory/index.ts +12 -0
  528. package/src/resources/ai/memory/memory.ts +31 -0
  529. package/src/resources/ai/memory/namespaces/index.ts +29 -0
  530. package/src/resources/ai/memory/namespaces/namespaces.ts +194 -0
  531. package/src/resources/ai/memory/namespaces/profiles/index.ts +35 -0
  532. package/src/resources/ai/memory/namespaces/profiles/memories.ts +170 -0
  533. package/src/resources/ai/memory/namespaces/profiles/profiles.ts +482 -0
  534. package/src/resources/ai/memory/namespaces/profiles/sources.ts +226 -0
  535. package/src/resources/ai/memory/namespaces/profiles.ts +3 -0
  536. package/src/resources/ai/memory/namespaces/settings.ts +129 -0
  537. package/src/resources/ai/memory/namespaces.ts +3 -0
  538. package/src/resources/ai/memory.ts +3 -0
  539. package/src/resources/ai/openai/chat.ts +7 -2
  540. package/src/resources/ai/tools.ts +6 -6
  541. package/src/resources/ai/typesafe/v1.ts +26 -14
  542. package/src/resources/calls/actions.ts +126 -19
  543. package/src/resources/calls/calls.ts +61 -11
  544. package/src/resources/calls/index.ts +1 -0
  545. package/src/resources/conferences/actions.ts +8 -1
  546. package/src/resources/dir/dir.ts +263 -32
  547. package/src/resources/dir/index.ts +6 -0
  548. package/src/resources/dir/phone-numbers.ts +8 -4
  549. package/src/resources/dir/references.ts +9 -6
  550. package/src/resources/email-blocks/email-blocks.ts +12 -4
  551. package/src/resources/email-blocks/imports.ts +20 -4
  552. package/src/resources/email-domains/email-domains.ts +120 -0
  553. package/src/resources/email-domains/index.ts +1 -0
  554. package/src/resources/email-domains/webhooks.ts +9 -4
  555. package/src/resources/email-events.ts +220 -35
  556. package/src/resources/email-inboxes/drafts.ts +32 -1
  557. package/src/resources/email-messages/email-messages.ts +191 -47
  558. package/src/resources/email-messages/index.ts +2 -1
  559. package/src/resources/email-messages/recipients.ts +6 -2
  560. package/src/resources/email-templates.ts +185 -0
  561. package/src/resources/enterprises/dir.ts +19 -1
  562. package/src/resources/enterprises/enterprises.ts +250 -23
  563. package/src/resources/enterprises/index.ts +5 -0
  564. package/src/resources/enterprises/reputation/loa.ts +73 -1
  565. package/src/resources/enterprises/verify-email.ts +117 -0
  566. package/src/resources/index.ts +26 -3
  567. package/src/resources/infringement-claims.ts +4 -0
  568. package/src/resources/llm-token-gateway/index.ts +4 -0
  569. package/src/resources/llm-token-gateway/llm-token-gateway.ts +19 -0
  570. package/src/resources/llm-token-gateway/usage.ts +336 -0
  571. package/src/resources/llm-token-gateway.ts +3 -0
  572. package/src/resources/meeting-sessions/actions.ts +7 -1
  573. package/src/resources/meeting-sessions/artifacts.ts +42 -11
  574. package/src/resources/meeting-sessions/meeting-sessions.ts +71 -33
  575. package/src/resources/phone-numbers/phone-numbers.ts +13 -2
  576. package/src/resources/porting-orders/phone-number-blocks.ts +9 -1
  577. package/src/resources/porting-orders/porting-orders.ts +9 -1
  578. package/src/resources/porting-phone-numbers.ts +9 -1
  579. package/src/resources/private-wireless-gateways.ts +76 -8
  580. package/src/resources/requirements.ts +2 -2
  581. package/src/resources/spend-limits.ts +428 -0
  582. package/src/resources/terms-of-service/agreements.ts +12 -0
  583. package/src/resources/terms-of-service/terms-of-service.ts +15 -0
  584. package/src/resources/texml/accounts/calls/calls.ts +20 -10
  585. package/src/resources/text-to-speech/text-to-speech.ts +73 -11
  586. package/src/resources/webhooks.ts +511 -6
  587. package/src/resources/whatsapp/phone-numbers/calling-routing.ts +113 -0
  588. package/src/resources/whatsapp/phone-numbers/index.ts +7 -0
  589. package/src/resources/whatsapp/phone-numbers/phone-numbers.ts +18 -0
  590. package/src/version.ts +1 -1
  591. package/version.d.mts +1 -1
  592. package/version.d.ts +1 -1
  593. package/version.js +1 -1
  594. package/version.mjs +1 -1
@@ -5,6 +5,8 @@ import * as ChatAPI from "../chat.mjs";
5
5
  import * as ToolsAPI from "../tools.mjs";
6
6
  import * as CanaryDeploysAPI from "./canary-deploys.mjs";
7
7
  import { CanaryDeploy, CanaryDeployCreateParams, CanaryDeployResponse, CanaryDeployUpdateParams, CanaryDeploys, Clause, RolloutSlot, RuleInput, RuleOutput, Serve } from "./canary-deploys.mjs";
8
+ import * as DeletedAPI from "./deleted.mjs";
9
+ import { Deleted, DeletedAssistant, DeletedAssistantsDefaultFlatPagination, DeletedListParams } from "./deleted.mjs";
8
10
  import * as InstructionsAPI from "./instructions.mjs";
9
11
  import { InstructionEnhanceParams, InstructionEnhanceResponse, Instructions } from "./instructions.mjs";
10
12
  import * as ScheduledEventsAPI from "./scheduled-events.mjs";
@@ -31,6 +33,7 @@ export declare class Assistants extends APIResource {
31
33
  versions: VersionsAPI.Versions;
32
34
  tags: TagsAPI.Tags;
33
35
  instructions: InstructionsAPI.Instructions;
36
+ deleted: DeletedAPI.Deleted;
34
37
  /**
35
38
  * Retrieve a list of all AI Assistants configured by the user.
36
39
  *
@@ -72,6 +75,20 @@ export declare class Assistants extends APIResource {
72
75
  /**
73
76
  * Delete an AI Assistant by `assistant_id`.
74
77
  *
78
+ * By default this performs a soft delete: the assistant moves to the Recently
79
+ * Deleted list and stays restorable for 30 days, after which it is permanently
80
+ * deleted automatically. The assistant's versions and TeXML application are
81
+ * preserved during the retention window.
82
+ *
83
+ * Pass `hard_delete=true` to skip the retention window and permanently delete the
84
+ * assistant immediately. A hard delete erases the assistant and all of its
85
+ * versions, and deletes its TeXML application unless phone numbers are still
86
+ * assigned to it. It does not delete conversations, recordings, shared tools the
87
+ * assistant referenced, or knowledge-base embeddings.
88
+ *
89
+ * Deletion fails with `400` if other assistants reference this one through a
90
+ * handoff tool or a conversation-flow edge — remove those references first.
91
+ *
75
92
  * @example
76
93
  * ```ts
77
94
  * const assistant = await client.ai.assistants.delete(
@@ -79,7 +96,7 @@ export declare class Assistants extends APIResource {
79
96
  * );
80
97
  * ```
81
98
  */
82
- delete(assistantID: string, options?: RequestOptions): APIPromise<AssistantDeleteResponse>;
99
+ delete(assistantID: string, params?: AssistantDeleteParams | null | undefined, options?: RequestOptions): APIPromise<AssistantDeleteResponse>;
83
100
  /**
84
101
  * Retrieve an AI Assistant configuration by `assistant_id`.
85
102
  *
@@ -172,6 +189,52 @@ export declare class Assistants extends APIResource {
172
189
  * ```
173
190
  */
174
191
  sendSMS(assistantID: string, params: AssistantSendSMSParams, options?: RequestOptions): APIPromise<AssistantSendSMSResponse>;
192
+ /**
193
+ * Start a WhatsApp conversation with a customer from the business side. This
194
+ * endpoint:
195
+ *
196
+ * 1. Validates that `from` is a WhatsApp number on your account whose messaging
197
+ * profile has this assistant configured
198
+ * 2. Creates a new `whatsapp_chat` conversation with the provided metadata
199
+ * 3. Asks the assistant to pick one of its approved WhatsApp templates and fill
200
+ * its variables from `content`
201
+ * 4. Sends the template from `from` to `to`
202
+ * 5. Returns the conversation ID and the message ID
203
+ *
204
+ * When the customer replies, the reply is routed to the same conversation and the
205
+ * assistant answers within the 24-hour customer service window. The assistant
206
+ * needs a `whatsapp_template` tool with at least one approved template, data
207
+ * retention enabled and PII redaction disabled.
208
+ *
209
+ * @example
210
+ * ```ts
211
+ * const response = await client.ai.assistants.whatsapp(
212
+ * 'assistant_id',
213
+ * {
214
+ * content:
215
+ * 'Send the login verification code 482913 to the customer.',
216
+ * from: '+13125550001',
217
+ * to: '+13125550002',
218
+ * conversation_metadata: { order_id: 'A1' },
219
+ * },
220
+ * );
221
+ * ```
222
+ */
223
+ whatsapp(assistantID: string, params: AssistantWhatsappParams, options?: RequestOptions): APIPromise<AssistantWhatsappResponse>;
224
+ /**
225
+ * Restore a soft-deleted assistant from the Recently Deleted list.
226
+ *
227
+ * The assistant becomes fully active again with its versions and TeXML application
228
+ * as they were at deletion time. Restoring does not re-enable numbers or
229
+ * connections that were released separately after the deletion.
230
+ *
231
+ * @example
232
+ * ```ts
233
+ * const inferenceEmbedding =
234
+ * await client.ai.assistants.restore('assistant_id');
235
+ * ```
236
+ */
237
+ restore(assistantID: string, options?: RequestOptions): APIPromise<InferenceEmbedding>;
175
238
  }
176
239
  /**
177
240
  * Numeric expression: applies an arithmetic operator to two sub-expressions.
@@ -587,6 +650,14 @@ export declare namespace AssistantTool {
587
650
  * The destination number or SIP URI of the call.
588
651
  */
589
652
  to: string;
653
+ /**
654
+ * DTMF digits to send automatically after the transfer destination answers. Useful
655
+ * for reaching an extension behind an IVR (e.g. `"200"` to dial extension 200 once
656
+ * the called party picks up). Allowed characters: `0-9`, `A-D`, `w` (0.5s pause),
657
+ * `W` (1s pause), `*`, `#`. Maximum 64 characters. When omitted, no automatic DTMF
658
+ * is sent.
659
+ */
660
+ extension?: string;
590
661
  /**
591
662
  * The warm transfer message to deliver to this specific target. When set, it takes
592
663
  * precedence over the message the assistant composes from
@@ -597,6 +668,16 @@ export declare namespace AssistantTool {
597
668
  * The name of the target.
598
669
  */
599
670
  name?: string;
671
+ /**
672
+ * SIP Authentication password used for SIP challenges. Applies when `to` is a SIP
673
+ * URI.
674
+ */
675
+ sip_auth_password?: string;
676
+ /**
677
+ * SIP Authentication username used for SIP challenges. Applies when `to` is a SIP
678
+ * URI.
679
+ */
680
+ sip_auth_username?: string;
600
681
  }
601
682
  interface CustomHeader {
602
683
  name?: string;
@@ -1107,7 +1188,7 @@ export interface ConversationFlow {
1107
1188
  export interface ConversationFlowReq {
1108
1189
  /**
1109
1190
  * All nodes in the flow. Must contain `start_node_id`. Each node is a prompt node
1110
- * (`type: prompt`) or a tool node (`type: tool`).
1191
+ * (`type: prompt`), a tool node (`type: tool`), or a speak node (`type: speak`).
1111
1192
  */
1112
1193
  nodes: Array<FlowNodeReq | ToolNodeReq | SpeakNodeReq>;
1113
1194
  /**
@@ -1119,6 +1200,66 @@ export interface ConversationFlowReq {
1119
1200
  */
1120
1201
  edges?: Array<FlowEdge>;
1121
1202
  }
1203
+ /**
1204
+ * Splits the conversation between a frontend model that talks to the caller and a
1205
+ * backend model that does the work. On the GPT-Live route the frontend model
1206
+ * cannot call tools at all — when it needs something done it raises a delegation
1207
+ * and waits. On the chat completion route the frontend keeps a single `delegate`
1208
+ * tool that returns immediately, so the conversation carries on while the backend
1209
+ * works. Either way the backend's answer is spoken as commentary or kept as silent
1210
+ * context, depending on `speak_results`. Beta feature.
1211
+ */
1212
+ export interface DelegationSettings {
1213
+ /**
1214
+ * Whether the assistant delegates work to a backend model. Defaults to `true`: a
1215
+ * GPT-Live assistant with delegation disabled can hold a conversation but can
1216
+ * never look anything up or run a tool.
1217
+ */
1218
+ enabled?: boolean;
1219
+ /**
1220
+ * Run the backend on your own OpenAI-compatible endpoint instead of a
1221
+ * Telnyx-hosted model. As above, a raw `api_key` here is rejected — reference an
1222
+ * integration secret with `external_llm.llm_api_key_ref` instead.
1223
+ */
1224
+ external_llm?: ExternalLlm;
1225
+ /**
1226
+ * Extra instructions for the backend model, in addition to the assistant's own.
1227
+ * Use this for the business rules the backend needs and the talking model does
1228
+ * not.
1229
+ */
1230
+ instructions?: string;
1231
+ /**
1232
+ * Integration secret identifier for the backend model's API key. Required for
1233
+ * models from providers other than Telnyx, OpenAI and Anthropic. A raw `api_key`
1234
+ * is rejected rather than ignored, so that no plaintext credential is stored on
1235
+ * the assistant.
1236
+ */
1237
+ llm_api_key_ref?: string;
1238
+ /**
1239
+ * Who answers a delegation. `telnyx` runs the backend model on Telnyx with the
1240
+ * assistant's own tools, MCP servers and observability. `client` relays the
1241
+ * delegation to a server you host over the WebSocket configured in
1242
+ * `websocket_settings`: Telnyx sends a `session.delegation.created` frame and
1243
+ * waits for your `session.delegation.completed` answer. That answer is text only,
1244
+ * since the socket offers no tool vocabulary. If no socket is connected the
1245
+ * delegation is refused and the assistant tells the caller it cannot look things
1246
+ * up right now. Defaults to `telnyx`.
1247
+ */
1248
+ mode?: 'telnyx' | 'client';
1249
+ /**
1250
+ * The backend model that answers delegations. Must be a model available for AI
1251
+ * Assistants. When enabling `telnyx` delegation, explicitly set this field or
1252
+ * `external_llm.model`; a configuration without either backend model is rejected.
1253
+ * Only applies when `mode` is `telnyx`.
1254
+ */
1255
+ model?: string;
1256
+ /**
1257
+ * Whether the backend's answer is spoken to the caller. When `true` the result is
1258
+ * appended as commentary and paraphrased aloud; when `false` it is kept as silent
1259
+ * context that informs later answers without being read out. Defaults to `true`.
1260
+ */
1261
+ speak_results?: boolean;
1262
+ }
1122
1263
  /**
1123
1264
  * If `telephony` is enabled, the assistant will be able to make and receive calls.
1124
1265
  * If `messaging` is enabled, the assistant will be able to send and receive
@@ -1282,9 +1423,14 @@ export interface FallbackConfigReq {
1282
1423
  * Directed transition from one node to a target, gated by a condition.
1283
1424
  *
1284
1425
  * The target is either another node in the same flow (`NodeTarget`) or a different
1285
- * assistant (`AssistantTarget`). Multiple edges may share a `start_node_id`; the
1286
- * runtime evaluates them in the order they're declared and takes the first whose
1287
- * condition is true.
1426
+ * assistant (`AssistantTarget`). Multiple edges may share a `start_node_id`. On
1427
+ * calls, `expression` conditions are evaluated before the model turn and take
1428
+ * precedence over `llm` conditions regardless of declaration order, while `llm`
1429
+ * conditions are offered to the assistant's model as transition tools and fire
1430
+ * when the model selects one. On chat channels, an `expression` condition that is
1431
+ * true when the turn begins routes before the reply is generated; all conditioned
1432
+ * edges that remain are considered together in declaration order after the reply,
1433
+ * and the first true one wins.
1288
1434
  */
1289
1435
  export interface FlowEdge {
1290
1436
  /**
@@ -1308,15 +1454,22 @@ export interface FlowEdge {
1308
1454
  }
1309
1455
  export declare namespace FlowEdge {
1310
1456
  /**
1311
- * Edge condition evaluated by the LLM from a natural-language prompt.
1457
+ * Edge condition routed by the assistant's LLM from a natural-language prompt.
1312
1458
  *
1313
- * The model is asked to judge the prompt against conversation context and returns
1314
- * true/false. Use this for fuzzy intents that aren't expressible as a
1315
- * deterministic expression (e.g. 'user wants to escalate to a human').
1459
+ * How the edge is decided depends on the channel. On calls, each outgoing `llm`
1460
+ * condition is offered to the assistant's model as a transition tool alongside the
1461
+ * assistant's tools, and the edge fires when the model selects it; the platform
1462
+ * does not evaluate the prompt itself, and instructions that forbid or discourage
1463
+ * tool calls can stop these edges from firing. On chat channels, the edge prompts
1464
+ * are evaluated in a separate model call after the reply, which does not use the
1465
+ * assistant's instructions. Use this for fuzzy intents that aren't expressible as
1466
+ * a deterministic expression (e.g. 'user wants to escalate to a human').
1316
1467
  */
1317
1468
  interface LlmCondition {
1318
1469
  /**
1319
- * Natural-language criterion the LLM judges as true/false.
1470
+ * Natural-language criterion the model routes on. On calls this is offered to the
1471
+ * model as the transition tool's description; on chat channels it is judged as a
1472
+ * statement in the post-reply evaluation call.
1320
1473
  */
1321
1474
  prompt: string;
1322
1475
  type: 'llm';
@@ -1474,7 +1627,7 @@ export interface FlowNode {
1474
1627
  /**
1475
1628
  * Per-node voice override (response form).
1476
1629
  */
1477
- voice_settings?: VoiceSettings;
1630
+ voice_settings?: InferenceEmbeddingVoiceSettings;
1478
1631
  }
1479
1632
  /**
1480
1633
  * One step in a conversation flow, as supplied by API clients.
@@ -1546,14 +1699,15 @@ export interface FlowNodeReq {
1546
1699
  transcription?: TranscriptionSettings;
1547
1700
  /**
1548
1701
  * Node kind discriminator. `prompt` (default) is an LLM-driven step; `tool` is a
1549
- * standalone tool execution (see `ToolNodeReq`).
1702
+ * standalone tool execution and `speak` a scripted message (see `ToolNodeReq` /
1703
+ * `SpeakNodeReq`).
1550
1704
  */
1551
1705
  type?: 'prompt';
1552
1706
  /**
1553
1707
  * Per-node voice override. Only fields set here override the assistant-level voice
1554
1708
  * settings; unset fields cascade.
1555
1709
  */
1556
- voice_settings?: VoiceSettings;
1710
+ voice_settings?: InferenceEmbeddingVoiceSettings;
1557
1711
  }
1558
1712
  export interface HangupTool {
1559
1713
  hangup: HangupToolParams;
@@ -1607,6 +1761,16 @@ export interface InferenceEmbedding {
1607
1761
  * Conversation flow as returned by the API.
1608
1762
  */
1609
1763
  conversation_flow?: ConversationFlow;
1764
+ /**
1765
+ * Splits the conversation between a frontend model that talks to the caller and a
1766
+ * backend model that does the work. On the GPT-Live route the frontend model
1767
+ * cannot call tools at all — when it needs something done it raises a delegation
1768
+ * and waits. On the chat completion route the frontend keeps a single `delegate`
1769
+ * tool that returns immediately, so the conversation carries on while the backend
1770
+ * works. Either way the backend's answer is spoken as commentary or kept as silent
1771
+ * context, depending on `speak_results`. Beta feature.
1772
+ */
1773
+ delegation_settings?: DelegationSettings;
1610
1774
  description?: string;
1611
1775
  /**
1612
1776
  * Map of dynamic variables and their values
@@ -1721,7 +1885,15 @@ export interface InferenceEmbedding {
1721
1885
  * Human-readable name for the assistant version.
1722
1886
  */
1723
1887
  version_name?: string;
1724
- voice_settings?: VoiceSettings;
1888
+ voice_settings?: InferenceEmbeddingVoiceSettings;
1889
+ /**
1890
+ * Streams conversation and telephony events to a WebSocket server you host, and
1891
+ * accepts messages injected back into the conversation. Telnyx opens the
1892
+ * connection as a client, once per conversation. Delivery is best effort
1893
+ * throughout: while the connection is down events are dropped rather than queued,
1894
+ * and no socket failure is ever allowed to affect the call. Beta feature.
1895
+ */
1896
+ websocket_settings?: WebsocketSettings;
1725
1897
  /**
1726
1898
  * Configuration settings for the assistant's web widget.
1727
1899
  */
@@ -1757,6 +1929,122 @@ export interface InferenceEmbeddingInterruptionSettings {
1757
1929
  */
1758
1930
  start_speaking_plan?: StartSpeakingPlan;
1759
1931
  }
1932
+ export interface InferenceEmbeddingVoiceSettings {
1933
+ /**
1934
+ * The voice to be used by the voice assistant. Check the full list of
1935
+ * [available voices](https://developers.telnyx.com/docs/tts-stt/tts-available-voices)
1936
+ * via our voices API. To use ElevenLabs, you must reference your ElevenLabs API
1937
+ * key as an integration secret under the `api_key_ref` field. See
1938
+ * [integration secrets documentation](https://developers.telnyx.com/api-reference/integration-secrets/create-a-secret)
1939
+ * for details. For Telnyx voices, use `Telnyx.<model_id>.<voice_id>` (e.g.
1940
+ * Telnyx.KokoroTTS.af_heart). For Soniox voices, use `Soniox.tts-rt-v2.<voice_id>`
1941
+ * (e.g. Soniox.tts-rt-v2.Emma); every Soniox voice speaks all supported languages.
1942
+ * The voice portion of the identifier supports
1943
+ * [dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables)
1944
+ * using mustache syntax (e.g. `Telnyx.Ultra.{{voice_id}}`). The variable is
1945
+ * resolved at call time from your dynamic variables webhook, allowing you to
1946
+ * select the voice dynamically per call.
1947
+ */
1948
+ voice: string;
1949
+ /**
1950
+ * The `identifier` for an integration secret
1951
+ * [/v2/integration_secrets](https://developers.telnyx.com/api-reference/integration-secrets/create-a-secret)
1952
+ * that refers to your ElevenLabs API key. Warning: Free plans are unlikely to work
1953
+ * with this integration.
1954
+ */
1955
+ api_key_ref?: string;
1956
+ /**
1957
+ * Optional background audio to play on the call. Use a predefined media bed, or
1958
+ * supply a looped MP3 URL. If a media URL is chosen in the portal, customers can
1959
+ * preview it before saving.
1960
+ */
1961
+ background_audio?: InferenceEmbeddingVoiceSettings.UnionMember0 | InferenceEmbeddingVoiceSettings.UnionMember1 | InferenceEmbeddingVoiceSettings.UnionMember2;
1962
+ /**
1963
+ * Enables emotionally expressive speech using SSML emotion tags. When enabled, the
1964
+ * assistant uses audio tags like angry, excited, content, and sad to add emotional
1965
+ * nuance. Only supported for Telnyx Ultra voices.
1966
+ */
1967
+ expressive_mode?: boolean;
1968
+ /**
1969
+ * Enhances recognition for specific languages and dialects during MiniMax TTS
1970
+ * synthesis. Default is null (no boost). Set to 'auto' for automatic language
1971
+ * detection. Only applicable when using MiniMax voices.
1972
+ */
1973
+ language_boost?: 'auto' | 'Chinese' | 'Chinese,Yue' | 'English' | 'Arabic' | 'Russian' | 'Spanish' | 'French' | 'Portuguese' | 'German' | 'Turkish' | 'Dutch' | 'Ukrainian' | 'Vietnamese' | 'Indonesian' | 'Japanese' | 'Italian' | 'Korean' | 'Thai' | 'Polish' | 'Romanian' | 'Greek' | 'Czech' | 'Finnish' | 'Hindi' | 'Bulgarian' | 'Danish' | 'Hebrew' | 'Malay' | 'Persian' | 'Slovak' | 'Swedish' | 'Croatian' | 'Filipino' | 'Hungarian' | 'Norwegian' | 'Slovenian' | 'Catalan' | 'Nynorsk' | 'Tamil' | 'Afrikaans' | null;
1974
+ /**
1975
+ * Determines how closely the AI should adhere to the original voice when
1976
+ * attempting to replicate it. Only applicable when using ElevenLabs.
1977
+ */
1978
+ similarity_boost?: number;
1979
+ /**
1980
+ * Adjusts speech velocity. 1.0 is default speed; values less than 1.0 slow speech;
1981
+ * values greater than 1.0 accelerate it. Only applicable when using ElevenLabs.
1982
+ */
1983
+ speed?: number;
1984
+ /**
1985
+ * Determines the style exaggeration of the voice. Amplifies speaker style but
1986
+ * consumes additional resources when set above 0. Only applicable when using
1987
+ * ElevenLabs.
1988
+ */
1989
+ style?: number;
1990
+ /**
1991
+ * Determines how stable the voice is and the randomness between each generation.
1992
+ * Lower values create a broader emotional range; higher values produce more
1993
+ * consistent, monotonous output. Only applicable when using ElevenLabs.
1994
+ */
1995
+ temperature?: number;
1996
+ /**
1997
+ * Amplifies similarity to the original speaker voice. Increases computational load
1998
+ * and latency slightly. Only applicable when using ElevenLabs.
1999
+ */
2000
+ use_speaker_boost?: boolean;
2001
+ /**
2002
+ * The speed of the voice in the range [0.6, 1.5]. 1.0 is the default speed. Larger
2003
+ * numbers make the voice faster, smaller numbers make it slower. Applies to Telnyx
2004
+ * `Ultra` voices; values outside this range are rejected by the synthesis engine.
2005
+ * Soniox voices support a speed range of 0.7 to 1.3.
2006
+ */
2007
+ voice_speed?: number;
2008
+ }
2009
+ export declare namespace InferenceEmbeddingVoiceSettings {
2010
+ interface UnionMember0 {
2011
+ /**
2012
+ * Select from predefined media options.
2013
+ */
2014
+ type: 'predefined_media';
2015
+ /**
2016
+ * The predefined media to use. `silence` disables background audio.
2017
+ */
2018
+ value: 'silence' | 'office';
2019
+ /**
2020
+ * Volume level for the predefined background audio. Supports values from 0.1 to
2021
+ * 1.0 in 0.1 increments.
2022
+ */
2023
+ volume?: number;
2024
+ }
2025
+ interface UnionMember1 {
2026
+ /**
2027
+ * Provide a direct URL to an MP3 file. The audio will loop during the call.
2028
+ */
2029
+ type: 'media_url';
2030
+ /**
2031
+ * HTTPS URL to an MP3 file.
2032
+ */
2033
+ value: string;
2034
+ }
2035
+ interface UnionMember2 {
2036
+ /**
2037
+ * Reference a previously uploaded media by its name from Telnyx Media Storage.
2038
+ */
2039
+ type: 'media_name';
2040
+ /**
2041
+ * The `name` of a media asset created via
2042
+ * [Media Storage API](https://developers.telnyx.com/api/media-storage/create-media-storage).
2043
+ * The audio will loop during the call.
2044
+ */
2045
+ value: string;
2046
+ }
2047
+ }
1760
2048
  export interface InferenceEmbeddingWebhookToolParams {
1761
2049
  type: 'webhook';
1762
2050
  webhook: InferenceEmbeddingWebhookToolParams.Webhook;
@@ -1770,6 +2058,13 @@ export interface InferenceEmbeddingWebhookToolParams {
1770
2058
  * per assistant).
1771
2059
  */
1772
2060
  shared?: boolean;
2061
+ /**
2062
+ * The maximum number of milliseconds to wait for the webhook to respond before the
2063
+ * tool call is aborted. Set this at the tool level, as a sibling of `type` — a
2064
+ * `timeout_ms` nested inside the `webhook` object is stored but not applied, and
2065
+ * the tool runs at this default instead. Applies when `webhook.async` is false.
2066
+ */
2067
+ timeout_ms?: number;
1773
2068
  }
1774
2069
  export declare namespace InferenceEmbeddingWebhookToolParams {
1775
2070
  interface Webhook {
@@ -1869,11 +2164,6 @@ export declare namespace InferenceEmbeddingWebhookToolParams {
1869
2164
  * dot-notation path to the value in the response body.
1870
2165
  */
1871
2166
  store_fields_as_variables?: Array<Webhook.StoreFieldsAsVariable>;
1872
- /**
1873
- * The maximum number of milliseconds to wait for the webhook to respond. Only
1874
- * applicable when async is false.
1875
- */
1876
- timeout_ms?: number;
1877
2167
  }
1878
2168
  namespace Webhook {
1879
2169
  /**
@@ -2443,12 +2733,22 @@ export interface ToolNode {
2443
2733
  /**
2444
2734
  * ID of the single shared (org-level) tool this node executes. When the flow
2445
2735
  * reaches this node the tool runs as a deliberate step (no LLM turn); its outgoing
2446
- * `tool_result` edges then route on the outcome. Arguments are filled from the
2447
- * conversation's dynamic variables by name — a dynamic variable whose name matches
2448
- * one of the tool's parameters supplies that argument. Cross-validated against the
2449
- * org's shared tools on write.
2736
+ * `llm` / `expression` edges route the flow on the tool's outcome. Arguments are
2737
+ * filled from the conversation's dynamic variables by name — a dynamic variable
2738
+ * whose name matches one of the tool's parameters supplies that argument.
2739
+ * Cross-validated against the org's shared tools on write.
2450
2740
  */
2451
2741
  shared_tool_id: string;
2742
+ /**
2743
+ * Optional message delivered to the user verbatim immediately before the tool
2744
+ * executes — an announcement such as 'One moment while I look that up.' No LLM
2745
+ * turn and no customer turn: the message is spoken/sent, then the tool runs, in
2746
+ * the same deterministic step. `{{variable}}` placeholders are interpolated from
2747
+ * the conversation's dynamic variables (unresolved → empty string); the tool's own
2748
+ * result is not yet available when the message is rendered. Omit for a silent tool
2749
+ * step.
2750
+ */
2751
+ message?: string;
2452
2752
  /**
2453
2753
  * Optional human-readable label, displayed in authoring UIs.
2454
2754
  */
@@ -2475,8 +2775,10 @@ export interface ToolNode {
2475
2775
  *
2476
2776
  * Unlike a prompt node, a tool node has no instructions or model — it isn't an LLM
2477
2777
  * turn. Reaching it deterministically runs one shared tool (arguments filled from
2478
- * matching dynamic variables by name), then routes on the result via outgoing
2479
- * `tool_result` edges.
2778
+ * matching dynamic variables by name), then routes via outgoing `llm` /
2779
+ * `expression` edges, with exactly one `default` fallback edge required when the
2780
+ * node has any outgoing edges (the tool's outcome is readable as
2781
+ * `telnyx_last_tool_status_code` in `expression` conditions).
2480
2782
  */
2481
2783
  export interface ToolNodeReq {
2482
2784
  /**
@@ -2486,12 +2788,22 @@ export interface ToolNodeReq {
2486
2788
  /**
2487
2789
  * ID of the single shared (org-level) tool this node executes. When the flow
2488
2790
  * reaches this node the tool runs as a deliberate step (no LLM turn); its outgoing
2489
- * `tool_result` edges then route on the outcome. Arguments are filled from the
2490
- * conversation's dynamic variables by name — a dynamic variable whose name matches
2491
- * one of the tool's parameters supplies that argument. Cross-validated against the
2492
- * org's shared tools on write.
2791
+ * `llm` / `expression` edges route the flow on the tool's outcome. Arguments are
2792
+ * filled from the conversation's dynamic variables by name — a dynamic variable
2793
+ * whose name matches one of the tool's parameters supplies that argument.
2794
+ * Cross-validated against the org's shared tools on write.
2493
2795
  */
2494
2796
  shared_tool_id: string;
2797
+ /**
2798
+ * Optional message delivered to the user verbatim immediately before the tool
2799
+ * executes — an announcement such as 'One moment while I look that up.' No LLM
2800
+ * turn and no customer turn: the message is spoken/sent, then the tool runs, in
2801
+ * the same deterministic step. `{{variable}}` placeholders are interpolated from
2802
+ * the conversation's dynamic variables (unresolved → empty string); the tool's own
2803
+ * result is not yet available when the message is rendered. Omit for a silent tool
2804
+ * step.
2805
+ */
2806
+ message?: string;
2495
2807
  /**
2496
2808
  * Optional human-readable label, displayed in authoring UIs.
2497
2809
  */
@@ -2766,9 +3078,9 @@ export interface VoiceSettings {
2766
3078
  */
2767
3079
  use_speaker_boost?: boolean;
2768
3080
  /**
2769
- * The speed of the voice in the range [0.25, 2.0]. 1.0 is deafult speed. Larger
2770
- * numbers make the voice faster, smaller numbers make it slower. This is only
2771
- * applicable for Telnyx Natural voices.
3081
+ * The speed of the voice in the range [0.6, 1.5]. 1.0 is the default speed. Larger
3082
+ * numbers make the voice faster, smaller numbers make it slower. Applies to Telnyx
3083
+ * `Ultra` voices; values outside this range are rejected by the synthesis engine.
2772
3084
  */
2773
3085
  voice_speed?: number;
2774
3086
  }
@@ -2814,6 +3126,13 @@ export declare namespace VoiceSettings {
2814
3126
  export interface WebhookTool {
2815
3127
  type: 'webhook';
2816
3128
  webhook: WebhookTool.Webhook;
3129
+ /**
3130
+ * The maximum number of milliseconds to wait for the webhook to respond before the
3131
+ * tool call is aborted. Set this at the tool level, as a sibling of `type` — a
3132
+ * `timeout_ms` nested inside the `webhook` object is not applied, and the tool
3133
+ * runs at this default instead.
3134
+ */
3135
+ timeout_ms?: number;
2817
3136
  }
2818
3137
  export declare namespace WebhookTool {
2819
3138
  interface Webhook {
@@ -2936,6 +3255,32 @@ export declare namespace WebhookTool {
2936
3255
  }
2937
3256
  }
2938
3257
  }
3258
+ /**
3259
+ * Streams conversation and telephony events to a WebSocket server you host, and
3260
+ * accepts messages injected back into the conversation. Telnyx opens the
3261
+ * connection as a client, once per conversation. Delivery is best effort
3262
+ * throughout: while the connection is down events are dropped rather than queued,
3263
+ * and no socket failure is ever allowed to affect the call. Beta feature.
3264
+ */
3265
+ export interface WebsocketSettings {
3266
+ /**
3267
+ * Integration secret identifier whose value Telnyx sends as an
3268
+ * `Authorization: Bearer <value>` header on the upgrade request. Resolved on every
3269
+ * connection attempt, so a rotated secret is picked up by the next reconnect.
3270
+ */
3271
+ auth_ref?: string;
3272
+ /**
3273
+ * Whether Telnyx opens a WebSocket to `url` for each of this assistant's
3274
+ * conversations. Defaults to `false`.
3275
+ */
3276
+ enabled?: boolean;
3277
+ /**
3278
+ * The `ws://` or `wss://` endpoint Telnyx connects to. Required when `enabled` is
3279
+ * `true`. Must be externally reachable — localhost, private IP ranges and `.local`
3280
+ * domains are rejected.
3281
+ */
3282
+ url?: string;
3283
+ }
2939
3284
  /**
2940
3285
  * Configuration settings for the assistant's web widget.
2941
3286
  */
@@ -3001,6 +3346,16 @@ export type AssistantGetTexmlResponse = string;
3001
3346
  export interface AssistantSendSMSResponse {
3002
3347
  conversation_id?: string;
3003
3348
  }
3349
+ export interface AssistantWhatsappResponse {
3350
+ /**
3351
+ * ID of the conversation created for this WhatsApp chat.
3352
+ */
3353
+ conversation_id: string;
3354
+ /**
3355
+ * ID of the WhatsApp template message that was sent.
3356
+ */
3357
+ message_id: string;
3358
+ }
3004
3359
  export interface AssistantCreateParams {
3005
3360
  /**
3006
3361
  * Body param: System instructions for the assistant. These may be templated with
@@ -3030,6 +3385,16 @@ export interface AssistantCreateParams {
3030
3385
  * every edge's endpoints reference real nodes.
3031
3386
  */
3032
3387
  conversation_flow?: ConversationFlowReq;
3388
+ /**
3389
+ * Body param: Splits the conversation between a frontend model that talks to the
3390
+ * caller and a backend model that does the work. On the GPT-Live route the
3391
+ * frontend model cannot call tools at all — when it needs something done it raises
3392
+ * a delegation and waits. On the chat completion route the frontend keeps a single
3393
+ * `delegate` tool that returns immediately, so the conversation carries on while
3394
+ * the backend works. Either way the backend's answer is spoken as commentary or
3395
+ * kept as silent context, depending on `speak_results`. Beta feature.
3396
+ */
3397
+ delegation_settings?: DelegationSettings;
3033
3398
  /**
3034
3399
  * Body param
3035
3400
  */
@@ -3170,7 +3535,15 @@ export interface AssistantCreateParams {
3170
3535
  /**
3171
3536
  * Body param
3172
3537
  */
3173
- voice_settings?: VoiceSettings;
3538
+ voice_settings?: InferenceEmbeddingVoiceSettings;
3539
+ /**
3540
+ * Body param: Streams conversation and telephony events to a WebSocket server you
3541
+ * host, and accepts messages injected back into the conversation. Telnyx opens the
3542
+ * connection as a client, once per conversation. Delivery is best effort
3543
+ * throughout: while the connection is down events are dropped rather than queued,
3544
+ * and no socket failure is ever allowed to affect the call. Beta feature.
3545
+ */
3546
+ websocket_settings?: WebsocketSettings;
3174
3547
  /**
3175
3548
  * Body param: Configuration settings for the assistant's web widget.
3176
3549
  */
@@ -3215,6 +3588,13 @@ export interface AssistantImportsParams {
3215
3588
  */
3216
3589
  'Idempotency-Key'?: string;
3217
3590
  }
3591
+ export interface AssistantDeleteParams {
3592
+ /**
3593
+ * Permanently delete the assistant immediately instead of soft-deleting it to the
3594
+ * Recently Deleted list, where it stays restorable for 30 days.
3595
+ */
3596
+ hard_delete?: boolean;
3597
+ }
3218
3598
  export interface AssistantRetrieveParams {
3219
3599
  /**
3220
3600
  * Filter results by call control id.
@@ -3254,6 +3634,16 @@ export interface AssistantUpdateParams {
3254
3634
  * every edge's endpoints reference real nodes.
3255
3635
  */
3256
3636
  conversation_flow?: ConversationFlowReq;
3637
+ /**
3638
+ * Splits the conversation between a frontend model that talks to the caller and a
3639
+ * backend model that does the work. On the GPT-Live route the frontend model
3640
+ * cannot call tools at all — when it needs something done it raises a delegation
3641
+ * and waits. On the chat completion route the frontend keeps a single `delegate`
3642
+ * tool that returns immediately, so the conversation carries on while the backend
3643
+ * works. Either way the backend's answer is spoken as commentary or kept as silent
3644
+ * context, depending on `speak_results`. Beta feature.
3645
+ */
3646
+ delegation_settings?: DelegationSettings;
3257
3647
  description?: string;
3258
3648
  /**
3259
3649
  * Map of dynamic variables and their default values
@@ -3386,7 +3776,15 @@ export interface AssistantUpdateParams {
3386
3776
  * Human-readable name for the assistant version.
3387
3777
  */
3388
3778
  version_name?: string;
3389
- voice_settings?: VoiceSettings;
3779
+ voice_settings?: InferenceEmbeddingVoiceSettings;
3780
+ /**
3781
+ * Streams conversation and telephony events to a WebSocket server you host, and
3782
+ * accepts messages injected back into the conversation. Telnyx opens the
3783
+ * connection as a client, once per conversation. Delivery is best effort
3784
+ * throughout: while the connection is down events are dropped rather than queued,
3785
+ * and no socket failure is ever allowed to affect the call. Beta feature.
3786
+ */
3787
+ websocket_settings?: WebsocketSettings;
3390
3788
  /**
3391
3789
  * Configuration settings for the assistant's web widget.
3392
3790
  */
@@ -3462,8 +3860,43 @@ export interface AssistantSendSMSParams {
3462
3860
  */
3463
3861
  'Idempotency-Key'?: string;
3464
3862
  }
3863
+ export interface AssistantWhatsappParams {
3864
+ /**
3865
+ * Body param: Instruction for the assistant, including the values for the template
3866
+ * variables, e.g. `Send the login verification code 482913 to the customer.`
3867
+ */
3868
+ content: string;
3869
+ /**
3870
+ * Body param: WhatsApp number on your account to send from, in E.164 format. Its
3871
+ * messaging profile must have this assistant configured.
3872
+ */
3873
+ from: string;
3874
+ /**
3875
+ * Body param: Customer to message, as an E.164 phone number or a WhatsApp
3876
+ * business-scoped user ID (BSUID).
3877
+ */
3878
+ to: string;
3879
+ /**
3880
+ * Body param: Metadata stored on the conversation. Keys starting with `telnyx_`
3881
+ * and the `assistant_id` key are reserved.
3882
+ */
3883
+ conversation_metadata?: {
3884
+ [key: string]: string | number | boolean;
3885
+ };
3886
+ /**
3887
+ * Header param: Optional opaque, unquoted key for safely retrying the same logical
3888
+ * request. Keys must contain 1 to 255 letters, numbers, hyphens, or underscores.
3889
+ * Generate a unique UUID v4 for each operation and reuse it only when retrying
3890
+ * that operation with the same request. Invalid headers—including duplicate,
3891
+ * empty, malformed, or overlong values—return 400 with error code 10015. A request
3892
+ * already in progress with the same key returns 409; reusing the key with a
3893
+ * different request returns 422. Only successful responses are replayed, for up to
3894
+ * 24 hours. Do not include sensitive data in the key.
3895
+ */
3896
+ 'Idempotency-Key'?: string;
3897
+ }
3465
3898
  export declare namespace Assistants {
3466
- 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 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, };
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, };
3467
3900
  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, };
3468
3901
  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, };
3469
3902
  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, };
@@ -3471,5 +3904,6 @@ export declare namespace Assistants {
3471
3904
  export { Versions as Versions, type UpdateAssistant as UpdateAssistant, type VersionDeleteParams as VersionDeleteParams, type VersionRetrieveParams as VersionRetrieveParams, type VersionUpdateParams as VersionUpdateParams, type VersionPromoteParams as VersionPromoteParams, };
3472
3905
  export { Tags as Tags, type TagsResponse as TagsResponse, type TagAddParams as TagAddParams, type TagRemoveParams as TagRemoveParams, };
3473
3906
  export { Instructions as Instructions, type InstructionEnhanceResponse as InstructionEnhanceResponse, type InstructionEnhanceParams as InstructionEnhanceParams, };
3907
+ export { Deleted as Deleted, type DeletedAssistant as DeletedAssistant, type DeletedAssistantsDefaultFlatPagination as DeletedAssistantsDefaultFlatPagination, type DeletedListParams as DeletedListParams, };
3474
3908
  }
3475
3909
  //# sourceMappingURL=assistants.d.mts.map