telnyx 7.22.0 → 7.24.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 (604) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/client.d.mts +42 -12
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +42 -12
  5. package/client.d.ts.map +1 -1
  6. package/client.js +30 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +30 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/ai/ai.d.mts +12 -4
  12. package/resources/ai/ai.d.mts.map +1 -1
  13. package/resources/ai/ai.d.ts +12 -4
  14. package/resources/ai/ai.d.ts.map +1 -1
  15. package/resources/ai/ai.js +8 -0
  16. package/resources/ai/ai.js.map +1 -1
  17. package/resources/ai/ai.mjs +9 -1
  18. package/resources/ai/ai.mjs.map +1 -1
  19. package/resources/ai/assistants/assistants.d.mts +409 -57
  20. package/resources/ai/assistants/assistants.d.mts.map +1 -1
  21. package/resources/ai/assistants/assistants.d.ts +409 -57
  22. package/resources/ai/assistants/assistants.d.ts.map +1 -1
  23. package/resources/ai/assistants/assistants.js.map +1 -1
  24. package/resources/ai/assistants/assistants.mjs.map +1 -1
  25. package/resources/ai/assistants/index.d.mts +1 -1
  26. package/resources/ai/assistants/index.d.mts.map +1 -1
  27. package/resources/ai/assistants/index.d.ts +1 -1
  28. package/resources/ai/assistants/index.d.ts.map +1 -1
  29. package/resources/ai/assistants/index.js.map +1 -1
  30. package/resources/ai/assistants/index.mjs.map +1 -1
  31. package/resources/ai/assistants/versions.d.mts +36 -14
  32. package/resources/ai/assistants/versions.d.mts.map +1 -1
  33. package/resources/ai/assistants/versions.d.ts +36 -14
  34. package/resources/ai/assistants/versions.d.ts.map +1 -1
  35. package/resources/ai/audio.d.mts +78 -43
  36. package/resources/ai/audio.d.mts.map +1 -1
  37. package/resources/ai/audio.d.ts +78 -43
  38. package/resources/ai/audio.d.ts.map +1 -1
  39. package/resources/ai/audio.js.map +1 -1
  40. package/resources/ai/audio.mjs.map +1 -1
  41. package/resources/ai/chat.d.mts +2 -10
  42. package/resources/ai/chat.d.mts.map +1 -1
  43. package/resources/ai/chat.d.ts +2 -10
  44. package/resources/ai/chat.d.ts.map +1 -1
  45. package/resources/ai/chat.js.map +1 -1
  46. package/resources/ai/chat.mjs.map +1 -1
  47. package/resources/ai/collections/collections.d.mts +3 -3
  48. package/resources/ai/collections/collections.d.mts.map +1 -1
  49. package/resources/ai/collections/collections.d.ts +3 -3
  50. package/resources/ai/collections/collections.d.ts.map +1 -1
  51. package/resources/ai/collections/collections.js.map +1 -1
  52. package/resources/ai/collections/collections.mjs.map +1 -1
  53. package/resources/ai/collections/index.d.mts +1 -1
  54. package/resources/ai/collections/index.d.mts.map +1 -1
  55. package/resources/ai/collections/index.d.ts +1 -1
  56. package/resources/ai/collections/index.d.ts.map +1 -1
  57. package/resources/ai/collections/index.js.map +1 -1
  58. package/resources/ai/collections/index.mjs.map +1 -1
  59. package/resources/ai/collections/sources.d.mts +32 -5
  60. package/resources/ai/collections/sources.d.mts.map +1 -1
  61. package/resources/ai/collections/sources.d.ts +32 -5
  62. package/resources/ai/collections/sources.d.ts.map +1 -1
  63. package/resources/ai/collections/sources.js.map +1 -1
  64. package/resources/ai/collections/sources.mjs.map +1 -1
  65. package/resources/ai/index.d.mts +4 -2
  66. package/resources/ai/index.d.mts.map +1 -1
  67. package/resources/ai/index.d.ts +4 -2
  68. package/resources/ai/index.d.ts.map +1 -1
  69. package/resources/ai/index.js +9 -5
  70. package/resources/ai/index.js.map +1 -1
  71. package/resources/ai/index.mjs +3 -1
  72. package/resources/ai/index.mjs.map +1 -1
  73. package/resources/ai/memory/index.d.mts +3 -0
  74. package/resources/ai/memory/index.d.mts.map +1 -0
  75. package/resources/ai/memory/index.d.ts +3 -0
  76. package/resources/ai/memory/index.d.ts.map +1 -0
  77. package/resources/ai/memory/index.js +9 -0
  78. package/resources/ai/memory/index.js.map +1 -0
  79. package/resources/ai/memory/index.mjs +4 -0
  80. package/resources/ai/memory/index.mjs.map +1 -0
  81. package/resources/ai/memory/memory.d.mts +10 -0
  82. package/resources/ai/memory/memory.d.mts.map +1 -0
  83. package/resources/ai/memory/memory.d.ts +10 -0
  84. package/resources/ai/memory/memory.d.ts.map +1 -0
  85. package/resources/ai/memory/memory.js +17 -0
  86. package/resources/ai/memory/memory.js.map +1 -0
  87. package/resources/ai/memory/memory.mjs +12 -0
  88. package/resources/ai/memory/memory.mjs.map +1 -0
  89. package/resources/ai/memory/namespaces/index.d.mts +4 -0
  90. package/resources/ai/memory/namespaces/index.d.mts.map +1 -0
  91. package/resources/ai/memory/namespaces/index.d.ts +4 -0
  92. package/resources/ai/memory/namespaces/index.d.ts.map +1 -0
  93. package/resources/ai/memory/namespaces/index.js +11 -0
  94. package/resources/ai/memory/namespaces/index.js.map +1 -0
  95. package/resources/ai/memory/namespaces/index.mjs +5 -0
  96. package/resources/ai/memory/namespaces/index.mjs.map +1 -0
  97. package/resources/ai/memory/namespaces/namespaces.d.mts +54 -0
  98. package/resources/ai/memory/namespaces/namespaces.d.mts.map +1 -0
  99. package/resources/ai/memory/namespaces/namespaces.d.ts +54 -0
  100. package/resources/ai/memory/namespaces/namespaces.d.ts.map +1 -0
  101. package/resources/ai/memory/namespaces/namespaces.js +43 -0
  102. package/resources/ai/memory/namespaces/namespaces.js.map +1 -0
  103. package/resources/ai/memory/namespaces/namespaces.mjs +38 -0
  104. package/resources/ai/memory/namespaces/namespaces.mjs.map +1 -0
  105. package/resources/ai/memory/namespaces/profiles/index.d.mts +4 -0
  106. package/resources/ai/memory/namespaces/profiles/index.d.mts.map +1 -0
  107. package/resources/ai/memory/namespaces/profiles/index.d.ts +4 -0
  108. package/resources/ai/memory/namespaces/profiles/index.d.ts.map +1 -0
  109. package/resources/ai/memory/namespaces/profiles/index.js +11 -0
  110. package/resources/ai/memory/namespaces/profiles/index.js.map +1 -0
  111. package/resources/ai/memory/namespaces/profiles/index.mjs +5 -0
  112. package/resources/ai/memory/namespaces/profiles/index.mjs.map +1 -0
  113. package/resources/ai/memory/namespaces/profiles/memories.d.mts +118 -0
  114. package/resources/ai/memory/namespaces/profiles/memories.d.mts.map +1 -0
  115. package/resources/ai/memory/namespaces/profiles/memories.d.ts +118 -0
  116. package/resources/ai/memory/namespaces/profiles/memories.d.ts.map +1 -0
  117. package/resources/ai/memory/namespaces/profiles/memories.js +63 -0
  118. package/resources/ai/memory/namespaces/profiles/memories.js.map +1 -0
  119. package/resources/ai/memory/namespaces/profiles/memories.mjs +59 -0
  120. package/resources/ai/memory/namespaces/profiles/memories.mjs.map +1 -0
  121. package/resources/ai/memory/namespaces/profiles/profiles.d.mts +324 -0
  122. package/resources/ai/memory/namespaces/profiles/profiles.d.mts.map +1 -0
  123. package/resources/ai/memory/namespaces/profiles/profiles.d.ts +324 -0
  124. package/resources/ai/memory/namespaces/profiles/profiles.d.ts.map +1 -0
  125. package/resources/ai/memory/namespaces/profiles/profiles.js +161 -0
  126. package/resources/ai/memory/namespaces/profiles/profiles.js.map +1 -0
  127. package/resources/ai/memory/namespaces/profiles/profiles.mjs +156 -0
  128. package/resources/ai/memory/namespaces/profiles/profiles.mjs.map +1 -0
  129. package/resources/ai/memory/namespaces/profiles/sources.d.mts +163 -0
  130. package/resources/ai/memory/namespaces/profiles/sources.d.mts.map +1 -0
  131. package/resources/ai/memory/namespaces/profiles/sources.d.ts +163 -0
  132. package/resources/ai/memory/namespaces/profiles/sources.d.ts.map +1 -0
  133. package/resources/ai/memory/namespaces/profiles/sources.js +80 -0
  134. package/resources/ai/memory/namespaces/profiles/sources.js.map +1 -0
  135. package/resources/ai/memory/namespaces/profiles/sources.mjs +76 -0
  136. package/resources/ai/memory/namespaces/profiles/sources.mjs.map +1 -0
  137. package/resources/ai/memory/namespaces/profiles.d.mts +2 -0
  138. package/resources/ai/memory/namespaces/profiles.d.mts.map +1 -0
  139. package/resources/ai/memory/namespaces/profiles.d.ts +2 -0
  140. package/resources/ai/memory/namespaces/profiles.d.ts.map +1 -0
  141. package/resources/ai/memory/namespaces/profiles.js +6 -0
  142. package/resources/ai/memory/namespaces/profiles.js.map +1 -0
  143. package/resources/ai/memory/namespaces/profiles.mjs +3 -0
  144. package/resources/ai/memory/namespaces/profiles.mjs.map +1 -0
  145. package/resources/ai/memory/namespaces/settings.d.mts +108 -0
  146. package/resources/ai/memory/namespaces/settings.d.mts.map +1 -0
  147. package/resources/ai/memory/namespaces/settings.d.ts +108 -0
  148. package/resources/ai/memory/namespaces/settings.d.ts.map +1 -0
  149. package/resources/ai/memory/namespaces/settings.js +54 -0
  150. package/resources/ai/memory/namespaces/settings.js.map +1 -0
  151. package/resources/ai/memory/namespaces/settings.mjs +50 -0
  152. package/resources/ai/memory/namespaces/settings.mjs.map +1 -0
  153. package/resources/ai/memory/namespaces.d.mts +2 -0
  154. package/resources/ai/memory/namespaces.d.mts.map +1 -0
  155. package/resources/ai/memory/namespaces.d.ts +2 -0
  156. package/resources/ai/memory/namespaces.d.ts.map +1 -0
  157. package/resources/ai/memory/namespaces.js +6 -0
  158. package/resources/ai/memory/namespaces.js.map +1 -0
  159. package/resources/ai/memory/namespaces.mjs +3 -0
  160. package/resources/ai/memory/namespaces.mjs.map +1 -0
  161. package/resources/ai/memory.d.mts +2 -0
  162. package/resources/ai/memory.d.mts.map +1 -0
  163. package/resources/ai/memory.d.ts +2 -0
  164. package/resources/ai/memory.d.ts.map +1 -0
  165. package/resources/ai/memory.js +6 -0
  166. package/resources/ai/memory.js.map +1 -0
  167. package/resources/ai/memory.mjs +3 -0
  168. package/resources/ai/memory.mjs.map +1 -0
  169. package/resources/ai/openai/chat.d.mts +10 -11
  170. package/resources/ai/openai/chat.d.mts.map +1 -1
  171. package/resources/ai/openai/chat.d.ts +10 -11
  172. package/resources/ai/openai/chat.d.ts.map +1 -1
  173. package/resources/ai/openai/chat.js.map +1 -1
  174. package/resources/ai/openai/chat.mjs.map +1 -1
  175. package/resources/ai/openai/index.d.mts +1 -1
  176. package/resources/ai/openai/index.d.mts.map +1 -1
  177. package/resources/ai/openai/index.d.ts +1 -1
  178. package/resources/ai/openai/index.d.ts.map +1 -1
  179. package/resources/ai/openai/index.js.map +1 -1
  180. package/resources/ai/openai/index.mjs +1 -1
  181. package/resources/ai/openai/index.mjs.map +1 -1
  182. package/resources/ai/openai/openai.d.mts +2 -2
  183. package/resources/ai/openai/openai.d.mts.map +1 -1
  184. package/resources/ai/openai/openai.d.ts +2 -2
  185. package/resources/ai/openai/openai.d.ts.map +1 -1
  186. package/resources/ai/openai/openai.js.map +1 -1
  187. package/resources/ai/openai/openai.mjs.map +1 -1
  188. package/resources/ai/typesafe/index.d.mts +3 -0
  189. package/resources/ai/typesafe/index.d.mts.map +1 -0
  190. package/resources/ai/typesafe/index.d.ts +3 -0
  191. package/resources/ai/typesafe/index.d.ts.map +1 -0
  192. package/resources/ai/typesafe/index.js +9 -0
  193. package/resources/ai/typesafe/index.js.map +1 -0
  194. package/resources/ai/typesafe/index.mjs +4 -0
  195. package/resources/ai/typesafe/index.mjs.map +1 -0
  196. package/resources/ai/typesafe/typesafe.d.mts +10 -0
  197. package/resources/ai/typesafe/typesafe.d.mts.map +1 -0
  198. package/resources/ai/typesafe/typesafe.d.ts +10 -0
  199. package/resources/ai/typesafe/typesafe.d.ts.map +1 -0
  200. package/resources/ai/typesafe/typesafe.js +17 -0
  201. package/resources/ai/typesafe/typesafe.js.map +1 -0
  202. package/resources/ai/typesafe/typesafe.mjs +12 -0
  203. package/resources/ai/typesafe/typesafe.mjs.map +1 -0
  204. package/resources/ai/typesafe/v1.d.mts +285 -0
  205. package/resources/ai/typesafe/v1.d.mts.map +1 -0
  206. package/resources/ai/typesafe/v1.d.ts +285 -0
  207. package/resources/ai/typesafe/v1.d.ts.map +1 -0
  208. package/resources/ai/typesafe/v1.js +72 -0
  209. package/resources/ai/typesafe/v1.js.map +1 -0
  210. package/resources/ai/typesafe/v1.mjs +68 -0
  211. package/resources/ai/typesafe/v1.mjs.map +1 -0
  212. package/resources/ai/typesafe.d.mts +2 -0
  213. package/resources/ai/typesafe.d.mts.map +1 -0
  214. package/resources/ai/typesafe.d.ts +2 -0
  215. package/resources/ai/typesafe.d.ts.map +1 -0
  216. package/resources/ai/typesafe.js +6 -0
  217. package/resources/ai/typesafe.js.map +1 -0
  218. package/resources/ai/typesafe.mjs +3 -0
  219. package/resources/ai/typesafe.mjs.map +1 -0
  220. package/resources/bot-challenge.d.mts +80 -0
  221. package/resources/bot-challenge.d.mts.map +1 -0
  222. package/resources/bot-challenge.d.ts +80 -0
  223. package/resources/bot-challenge.d.ts.map +1 -0
  224. package/resources/bot-challenge.js +35 -0
  225. package/resources/bot-challenge.js.map +1 -0
  226. package/resources/bot-challenge.mjs +31 -0
  227. package/resources/bot-challenge.mjs.map +1 -0
  228. package/resources/bot-sessions.d.mts +49 -0
  229. package/resources/bot-sessions.d.mts.map +1 -0
  230. package/resources/bot-sessions.d.ts +49 -0
  231. package/resources/bot-sessions.d.ts.map +1 -0
  232. package/resources/bot-sessions.js +28 -0
  233. package/resources/bot-sessions.js.map +1 -0
  234. package/resources/bot-sessions.mjs +24 -0
  235. package/resources/bot-sessions.mjs.map +1 -0
  236. package/resources/bot-signup.d.mts +114 -0
  237. package/resources/bot-signup.d.mts.map +1 -0
  238. package/resources/bot-signup.d.ts +114 -0
  239. package/resources/bot-signup.d.ts.map +1 -0
  240. package/resources/bot-signup.js +63 -0
  241. package/resources/bot-signup.js.map +1 -0
  242. package/resources/bot-signup.mjs +59 -0
  243. package/resources/bot-signup.mjs.map +1 -0
  244. package/resources/calls/actions.d.mts +100 -16
  245. package/resources/calls/actions.d.mts.map +1 -1
  246. package/resources/calls/actions.d.ts +100 -16
  247. package/resources/calls/actions.d.ts.map +1 -1
  248. package/resources/calls/calls.d.mts +55 -9
  249. package/resources/calls/calls.d.mts.map +1 -1
  250. package/resources/calls/calls.d.ts +55 -9
  251. package/resources/calls/calls.d.ts.map +1 -1
  252. package/resources/calls/calls.js.map +1 -1
  253. package/resources/calls/calls.mjs.map +1 -1
  254. package/resources/calls/index.d.mts +1 -1
  255. package/resources/calls/index.d.mts.map +1 -1
  256. package/resources/calls/index.d.ts +1 -1
  257. package/resources/calls/index.d.ts.map +1 -1
  258. package/resources/calls/index.js.map +1 -1
  259. package/resources/calls/index.mjs.map +1 -1
  260. package/resources/compute/compute.d.mts +2 -2
  261. package/resources/compute/compute.d.mts.map +1 -1
  262. package/resources/compute/compute.d.ts +2 -2
  263. package/resources/compute/compute.d.ts.map +1 -1
  264. package/resources/compute/compute.js +2 -2
  265. package/resources/compute/compute.js.map +1 -1
  266. package/resources/compute/compute.mjs +2 -2
  267. package/resources/compute/compute.mjs.map +1 -1
  268. package/resources/compute/funcs/export.d.mts +121 -0
  269. package/resources/compute/funcs/export.d.mts.map +1 -0
  270. package/resources/compute/funcs/export.d.ts +121 -0
  271. package/resources/compute/funcs/export.d.ts.map +1 -0
  272. package/resources/compute/funcs/export.js +68 -0
  273. package/resources/compute/funcs/export.js.map +1 -0
  274. package/resources/compute/funcs/export.mjs +64 -0
  275. package/resources/compute/funcs/export.mjs.map +1 -0
  276. package/resources/compute/funcs/funcs.d.mts +214 -0
  277. package/resources/compute/funcs/funcs.d.mts.map +1 -0
  278. package/resources/compute/funcs/funcs.d.ts +214 -0
  279. package/resources/compute/funcs/funcs.d.ts.map +1 -0
  280. package/resources/compute/funcs/funcs.js +80 -0
  281. package/resources/compute/funcs/funcs.js.map +1 -0
  282. package/resources/compute/funcs/funcs.mjs +75 -0
  283. package/resources/compute/funcs/funcs.mjs.map +1 -0
  284. package/resources/compute/funcs/index.d.mts +3 -0
  285. package/resources/compute/funcs/index.d.mts.map +1 -0
  286. package/resources/compute/funcs/index.d.ts +3 -0
  287. package/resources/compute/funcs/index.d.ts.map +1 -0
  288. package/resources/compute/funcs/index.js +9 -0
  289. package/resources/compute/funcs/index.js.map +1 -0
  290. package/resources/compute/funcs/index.mjs +4 -0
  291. package/resources/compute/funcs/index.mjs.map +1 -0
  292. package/resources/compute/funcs.d.mts +1 -178
  293. package/resources/compute/funcs.d.mts.map +1 -1
  294. package/resources/compute/funcs.d.ts +1 -178
  295. package/resources/compute/funcs.d.ts.map +1 -1
  296. package/resources/compute/funcs.js +2 -37
  297. package/resources/compute/funcs.js.map +1 -1
  298. package/resources/compute/funcs.mjs +1 -35
  299. package/resources/compute/funcs.mjs.map +1 -1
  300. package/resources/compute/index.d.mts +1 -1
  301. package/resources/compute/index.d.mts.map +1 -1
  302. package/resources/compute/index.d.ts +1 -1
  303. package/resources/compute/index.d.ts.map +1 -1
  304. package/resources/compute/index.js +2 -2
  305. package/resources/compute/index.js.map +1 -1
  306. package/resources/compute/index.mjs +1 -1
  307. package/resources/compute/index.mjs.map +1 -1
  308. package/resources/conferences/actions.d.mts +7 -1
  309. package/resources/conferences/actions.d.mts.map +1 -1
  310. package/resources/conferences/actions.d.ts +7 -1
  311. package/resources/conferences/actions.d.ts.map +1 -1
  312. package/resources/connections.d.mts +109 -1
  313. package/resources/connections.d.mts.map +1 -1
  314. package/resources/connections.d.ts +109 -1
  315. package/resources/connections.d.ts.map +1 -1
  316. package/resources/connections.js +8 -0
  317. package/resources/connections.js.map +1 -1
  318. package/resources/connections.mjs +8 -0
  319. package/resources/connections.mjs.map +1 -1
  320. package/resources/detail-records.d.mts +18 -1
  321. package/resources/detail-records.d.mts.map +1 -1
  322. package/resources/detail-records.d.ts +18 -1
  323. package/resources/detail-records.d.ts.map +1 -1
  324. package/resources/email-blocks/email-blocks.d.mts +12 -4
  325. package/resources/email-blocks/email-blocks.d.mts.map +1 -1
  326. package/resources/email-blocks/email-blocks.d.ts +12 -4
  327. package/resources/email-blocks/email-blocks.d.ts.map +1 -1
  328. package/resources/email-blocks/email-blocks.js +5 -3
  329. package/resources/email-blocks/email-blocks.js.map +1 -1
  330. package/resources/email-blocks/email-blocks.mjs +5 -3
  331. package/resources/email-blocks/email-blocks.mjs.map +1 -1
  332. package/resources/email-blocks/imports.d.mts +20 -4
  333. package/resources/email-blocks/imports.d.mts.map +1 -1
  334. package/resources/email-blocks/imports.d.ts +20 -4
  335. package/resources/email-blocks/imports.d.ts.map +1 -1
  336. package/resources/email-blocks/imports.js +17 -3
  337. package/resources/email-blocks/imports.js.map +1 -1
  338. package/resources/email-blocks/imports.mjs +17 -3
  339. package/resources/email-blocks/imports.mjs.map +1 -1
  340. package/resources/email-domains/email-domains.d.mts +98 -1
  341. package/resources/email-domains/email-domains.d.mts.map +1 -1
  342. package/resources/email-domains/email-domains.d.ts +98 -1
  343. package/resources/email-domains/email-domains.d.ts.map +1 -1
  344. package/resources/email-domains/email-domains.js +21 -0
  345. package/resources/email-domains/email-domains.js.map +1 -1
  346. package/resources/email-domains/email-domains.mjs +21 -0
  347. package/resources/email-domains/email-domains.mjs.map +1 -1
  348. package/resources/email-domains/index.d.mts +1 -1
  349. package/resources/email-domains/index.d.mts.map +1 -1
  350. package/resources/email-domains/index.d.ts +1 -1
  351. package/resources/email-domains/index.d.ts.map +1 -1
  352. package/resources/email-domains/index.js.map +1 -1
  353. package/resources/email-domains/index.mjs.map +1 -1
  354. package/resources/email-domains/webhooks.d.mts +6 -4
  355. package/resources/email-domains/webhooks.d.mts.map +1 -1
  356. package/resources/email-domains/webhooks.d.ts +6 -4
  357. package/resources/email-domains/webhooks.d.ts.map +1 -1
  358. package/resources/email-events.d.mts +162 -28
  359. package/resources/email-events.d.mts.map +1 -1
  360. package/resources/email-events.d.ts +162 -28
  361. package/resources/email-events.d.ts.map +1 -1
  362. package/resources/email-events.js +15 -6
  363. package/resources/email-events.js.map +1 -1
  364. package/resources/email-events.mjs +15 -6
  365. package/resources/email-events.mjs.map +1 -1
  366. package/resources/email-inboxes/drafts.d.mts +31 -1
  367. package/resources/email-inboxes/drafts.d.mts.map +1 -1
  368. package/resources/email-inboxes/drafts.d.ts +31 -1
  369. package/resources/email-inboxes/drafts.d.ts.map +1 -1
  370. package/resources/email-inboxes/drafts.js.map +1 -1
  371. package/resources/email-inboxes/drafts.mjs.map +1 -1
  372. package/resources/email-messages/email-messages.d.mts +178 -45
  373. package/resources/email-messages/email-messages.d.mts.map +1 -1
  374. package/resources/email-messages/email-messages.d.ts +178 -45
  375. package/resources/email-messages/email-messages.d.ts.map +1 -1
  376. package/resources/email-messages/email-messages.js +43 -9
  377. package/resources/email-messages/email-messages.js.map +1 -1
  378. package/resources/email-messages/email-messages.mjs +43 -9
  379. package/resources/email-messages/email-messages.mjs.map +1 -1
  380. package/resources/email-messages/index.d.mts +1 -1
  381. package/resources/email-messages/index.d.mts.map +1 -1
  382. package/resources/email-messages/index.d.ts +1 -1
  383. package/resources/email-messages/index.d.ts.map +1 -1
  384. package/resources/email-messages/index.js.map +1 -1
  385. package/resources/email-messages/index.mjs.map +1 -1
  386. package/resources/email-messages/recipients.d.mts +2 -2
  387. package/resources/email-messages/recipients.d.mts.map +1 -1
  388. package/resources/email-messages/recipients.d.ts +2 -2
  389. package/resources/email-messages/recipients.d.ts.map +1 -1
  390. package/resources/email-templates.d.mts +170 -0
  391. package/resources/email-templates.d.mts.map +1 -1
  392. package/resources/email-templates.d.ts +170 -0
  393. package/resources/email-templates.d.ts.map +1 -1
  394. package/resources/email-templates.js +6 -0
  395. package/resources/email-templates.js.map +1 -1
  396. package/resources/email-templates.mjs +6 -0
  397. package/resources/email-templates.mjs.map +1 -1
  398. package/resources/index.d.mts +11 -6
  399. package/resources/index.d.mts.map +1 -1
  400. package/resources/index.d.ts +11 -6
  401. package/resources/index.d.ts.map +1 -1
  402. package/resources/index.js +14 -4
  403. package/resources/index.js.map +1 -1
  404. package/resources/index.mjs +5 -0
  405. package/resources/index.mjs.map +1 -1
  406. package/resources/machine-payments.d.mts +142 -0
  407. package/resources/machine-payments.d.mts.map +1 -0
  408. package/resources/machine-payments.d.ts +142 -0
  409. package/resources/machine-payments.d.ts.map +1 -0
  410. package/resources/machine-payments.js +56 -0
  411. package/resources/machine-payments.js.map +1 -0
  412. package/resources/machine-payments.mjs +52 -0
  413. package/resources/machine-payments.mjs.map +1 -0
  414. package/resources/meeting-sessions/actions.d.mts +7 -1
  415. package/resources/meeting-sessions/actions.d.mts.map +1 -1
  416. package/resources/meeting-sessions/actions.d.ts +7 -1
  417. package/resources/meeting-sessions/actions.d.ts.map +1 -1
  418. package/resources/meeting-sessions/actions.js +7 -1
  419. package/resources/meeting-sessions/actions.js.map +1 -1
  420. package/resources/meeting-sessions/actions.mjs +7 -1
  421. package/resources/meeting-sessions/actions.mjs.map +1 -1
  422. package/resources/meeting-sessions/artifacts.d.mts +38 -11
  423. package/resources/meeting-sessions/artifacts.d.mts.map +1 -1
  424. package/resources/meeting-sessions/artifacts.d.ts +38 -11
  425. package/resources/meeting-sessions/artifacts.d.ts.map +1 -1
  426. package/resources/meeting-sessions/artifacts.js +11 -5
  427. package/resources/meeting-sessions/artifacts.js.map +1 -1
  428. package/resources/meeting-sessions/artifacts.mjs +11 -5
  429. package/resources/meeting-sessions/artifacts.mjs.map +1 -1
  430. package/resources/meeting-sessions/meeting-sessions.d.mts +63 -23
  431. package/resources/meeting-sessions/meeting-sessions.d.mts.map +1 -1
  432. package/resources/meeting-sessions/meeting-sessions.d.ts +63 -23
  433. package/resources/meeting-sessions/meeting-sessions.d.ts.map +1 -1
  434. package/resources/meeting-sessions/meeting-sessions.js +0 -2
  435. package/resources/meeting-sessions/meeting-sessions.js.map +1 -1
  436. package/resources/meeting-sessions/meeting-sessions.mjs +0 -2
  437. package/resources/meeting-sessions/meeting-sessions.mjs.map +1 -1
  438. package/resources/messages/messages.d.mts +135 -23
  439. package/resources/messages/messages.d.mts.map +1 -1
  440. package/resources/messages/messages.d.ts +135 -23
  441. package/resources/messages/messages.d.ts.map +1 -1
  442. package/resources/messages/messages.js.map +1 -1
  443. package/resources/messages/messages.mjs.map +1 -1
  444. package/resources/noise-suppression-engines.d.mts +42 -0
  445. package/resources/noise-suppression-engines.d.mts.map +1 -0
  446. package/resources/noise-suppression-engines.d.ts +42 -0
  447. package/resources/noise-suppression-engines.d.ts.map +1 -0
  448. package/resources/noise-suppression-engines.js +21 -0
  449. package/resources/noise-suppression-engines.js.map +1 -0
  450. package/resources/noise-suppression-engines.mjs +17 -0
  451. package/resources/noise-suppression-engines.mjs.map +1 -0
  452. package/resources/phone-numbers/phone-numbers.d.mts +12 -2
  453. package/resources/phone-numbers/phone-numbers.d.mts.map +1 -1
  454. package/resources/phone-numbers/phone-numbers.d.ts +12 -2
  455. package/resources/phone-numbers/phone-numbers.d.ts.map +1 -1
  456. package/resources/phone-numbers/phone-numbers.js.map +1 -1
  457. package/resources/phone-numbers/phone-numbers.mjs.map +1 -1
  458. package/resources/private-wireless-gateways.d.mts +61 -7
  459. package/resources/private-wireless-gateways.d.mts.map +1 -1
  460. package/resources/private-wireless-gateways.d.ts +61 -7
  461. package/resources/private-wireless-gateways.d.ts.map +1 -1
  462. package/resources/private-wireless-gateways.js +1 -1
  463. package/resources/private-wireless-gateways.js.map +1 -1
  464. package/resources/private-wireless-gateways.mjs +1 -1
  465. package/resources/private-wireless-gateways.mjs.map +1 -1
  466. package/resources/speech-to-text/speech-to-text.d.mts +1 -1
  467. package/resources/speech-to-text/speech-to-text.d.mts.map +1 -1
  468. package/resources/speech-to-text/speech-to-text.d.ts +1 -1
  469. package/resources/speech-to-text/speech-to-text.d.ts.map +1 -1
  470. package/resources/texml/accounts/calls/calls.d.mts +126 -9
  471. package/resources/texml/accounts/calls/calls.d.mts.map +1 -1
  472. package/resources/texml/accounts/calls/calls.d.ts +126 -9
  473. package/resources/texml/accounts/calls/calls.d.ts.map +1 -1
  474. package/resources/texml/accounts/calls/calls.js +12 -2
  475. package/resources/texml/accounts/calls/calls.js.map +1 -1
  476. package/resources/texml/accounts/calls/calls.mjs +12 -2
  477. package/resources/texml/accounts/calls/calls.mjs.map +1 -1
  478. package/resources/texml/accounts/conferences/participants.d.mts +39 -0
  479. package/resources/texml/accounts/conferences/participants.d.mts.map +1 -1
  480. package/resources/texml/accounts/conferences/participants.d.ts +39 -0
  481. package/resources/texml/accounts/conferences/participants.d.ts.map +1 -1
  482. package/resources/texml/calls.d.mts +71 -0
  483. package/resources/texml/calls.d.mts.map +1 -0
  484. package/resources/texml/calls.d.ts +71 -0
  485. package/resources/texml/calls.d.ts.map +1 -0
  486. package/resources/texml/calls.js +33 -0
  487. package/resources/texml/calls.js.map +1 -0
  488. package/resources/texml/calls.mjs +29 -0
  489. package/resources/texml/calls.mjs.map +1 -0
  490. package/resources/texml/index.d.mts +1 -0
  491. package/resources/texml/index.d.mts.map +1 -1
  492. package/resources/texml/index.d.ts +1 -0
  493. package/resources/texml/index.d.ts.map +1 -1
  494. package/resources/texml/index.js +3 -1
  495. package/resources/texml/index.js.map +1 -1
  496. package/resources/texml/index.mjs +1 -0
  497. package/resources/texml/index.mjs.map +1 -1
  498. package/resources/texml/texml.d.mts +43 -0
  499. package/resources/texml/texml.d.mts.map +1 -1
  500. package/resources/texml/texml.d.ts +43 -0
  501. package/resources/texml/texml.d.ts.map +1 -1
  502. package/resources/texml/texml.js +4 -0
  503. package/resources/texml/texml.js.map +1 -1
  504. package/resources/texml/texml.mjs +4 -0
  505. package/resources/texml/texml.mjs.map +1 -1
  506. package/resources/text-to-speech/text-to-speech.d.mts +61 -9
  507. package/resources/text-to-speech/text-to-speech.d.mts.map +1 -1
  508. package/resources/text-to-speech/text-to-speech.d.ts +61 -9
  509. package/resources/text-to-speech/text-to-speech.d.ts.map +1 -1
  510. package/resources/text-to-speech/text-to-speech.js +10 -3
  511. package/resources/text-to-speech/text-to-speech.js.map +1 -1
  512. package/resources/text-to-speech/text-to-speech.mjs +10 -3
  513. package/resources/text-to-speech/text-to-speech.mjs.map +1 -1
  514. package/resources/voice-clones.d.mts +6 -4
  515. package/resources/voice-clones.d.mts.map +1 -1
  516. package/resources/voice-clones.d.ts +6 -4
  517. package/resources/voice-clones.d.ts.map +1 -1
  518. package/resources/voice-clones.js +4 -2
  519. package/resources/voice-clones.js.map +1 -1
  520. package/resources/voice-clones.mjs +4 -2
  521. package/resources/voice-clones.mjs.map +1 -1
  522. package/resources/webhooks.d.mts +40 -53
  523. package/resources/webhooks.d.mts.map +1 -1
  524. package/resources/webhooks.d.ts +40 -53
  525. package/resources/webhooks.d.ts.map +1 -1
  526. package/src/client.ts +92 -6
  527. package/src/resources/ai/ai.ts +21 -1
  528. package/src/resources/ai/assistants/assistants.ts +502 -56
  529. package/src/resources/ai/assistants/index.ts +1 -0
  530. package/src/resources/ai/assistants/versions.ts +36 -14
  531. package/src/resources/ai/audio.ts +93 -45
  532. package/src/resources/ai/chat.ts +2 -11
  533. package/src/resources/ai/collections/collections.ts +3 -1
  534. package/src/resources/ai/collections/index.ts +2 -0
  535. package/src/resources/ai/collections/sources.ts +38 -4
  536. package/src/resources/ai/index.ts +9 -1
  537. package/src/resources/ai/memory/index.ts +4 -0
  538. package/src/resources/ai/memory/memory.ts +19 -0
  539. package/src/resources/ai/memory/namespaces/index.ts +21 -0
  540. package/src/resources/ai/memory/namespaces/namespaces.ts +116 -0
  541. package/src/resources/ai/memory/namespaces/profiles/index.ts +35 -0
  542. package/src/resources/ai/memory/namespaces/profiles/memories.ts +170 -0
  543. package/src/resources/ai/memory/namespaces/profiles/profiles.ts +482 -0
  544. package/src/resources/ai/memory/namespaces/profiles/sources.ts +226 -0
  545. package/src/resources/ai/memory/namespaces/profiles.ts +3 -0
  546. package/src/resources/ai/memory/namespaces/settings.ts +129 -0
  547. package/src/resources/ai/memory/namespaces.ts +3 -0
  548. package/src/resources/ai/memory.ts +3 -0
  549. package/src/resources/ai/openai/chat.ts +11 -11
  550. package/src/resources/ai/openai/index.ts +6 -1
  551. package/src/resources/ai/openai/openai.ts +2 -1
  552. package/src/resources/ai/typesafe/index.ts +4 -0
  553. package/src/resources/ai/typesafe/typesafe.ts +19 -0
  554. package/src/resources/ai/typesafe/v1.ts +310 -0
  555. package/src/resources/ai/typesafe.ts +3 -0
  556. package/src/resources/bot-challenge.ts +101 -0
  557. package/src/resources/bot-sessions.ts +61 -0
  558. package/src/resources/bot-signup.ts +140 -0
  559. package/src/resources/calls/actions.ts +115 -14
  560. package/src/resources/calls/calls.ts +64 -7
  561. package/src/resources/calls/index.ts +1 -0
  562. package/src/resources/compute/compute.ts +2 -2
  563. package/src/resources/compute/funcs/export.ts +156 -0
  564. package/src/resources/compute/funcs/funcs.ts +341 -0
  565. package/src/resources/compute/funcs/index.ts +15 -0
  566. package/src/resources/compute/funcs.ts +1 -296
  567. package/src/resources/compute/index.ts +1 -1
  568. package/src/resources/conferences/actions.ts +8 -1
  569. package/src/resources/connections.ts +133 -0
  570. package/src/resources/detail-records.ts +18 -1
  571. package/src/resources/email-blocks/email-blocks.ts +12 -4
  572. package/src/resources/email-blocks/imports.ts +20 -4
  573. package/src/resources/email-domains/email-domains.ts +120 -0
  574. package/src/resources/email-domains/index.ts +1 -0
  575. package/src/resources/email-domains/webhooks.ts +9 -4
  576. package/src/resources/email-events.ts +220 -35
  577. package/src/resources/email-inboxes/drafts.ts +32 -1
  578. package/src/resources/email-messages/email-messages.ts +195 -49
  579. package/src/resources/email-messages/index.ts +2 -1
  580. package/src/resources/email-messages/recipients.ts +6 -2
  581. package/src/resources/email-templates.ts +185 -0
  582. package/src/resources/index.ts +29 -3
  583. package/src/resources/machine-payments.ts +169 -0
  584. package/src/resources/meeting-sessions/actions.ts +7 -1
  585. package/src/resources/meeting-sessions/artifacts.ts +42 -11
  586. package/src/resources/meeting-sessions/meeting-sessions.ts +63 -24
  587. package/src/resources/messages/messages.ts +168 -23
  588. package/src/resources/noise-suppression-engines.ts +51 -0
  589. package/src/resources/phone-numbers/phone-numbers.ts +13 -2
  590. package/src/resources/private-wireless-gateways.ts +76 -8
  591. package/src/resources/speech-to-text/speech-to-text.ts +1 -0
  592. package/src/resources/texml/accounts/calls/calls.ts +158 -10
  593. package/src/resources/texml/accounts/conferences/participants.ts +46 -0
  594. package/src/resources/texml/calls.ts +90 -0
  595. package/src/resources/texml/index.ts +1 -0
  596. package/src/resources/texml/texml.ts +56 -0
  597. package/src/resources/text-to-speech/text-to-speech.ts +69 -9
  598. package/src/resources/voice-clones.ts +6 -4
  599. package/src/resources/webhooks.ts +47 -62
  600. package/src/version.ts +1 -1
  601. package/version.d.mts +1 -1
  602. package/version.d.ts +1 -1
  603. package/version.js +1 -1
  604. package/version.mjs +1 -1
@@ -15,6 +15,7 @@ import * as AssistantsToolsAPI from "./tools.mjs";
15
15
  import { ToolAddParams, ToolAddResponse, ToolRemoveParams, ToolRemoveResponse, ToolTestParams, ToolTestResponse, Tools } from "./tools.mjs";
16
16
  import * as VersionsAPI from "./versions.mjs";
17
17
  import { UpdateAssistant, VersionDeleteParams, VersionPromoteParams, VersionRetrieveParams, VersionUpdateParams, Versions } from "./versions.mjs";
18
+ import * as OpenAIChatAPI from "../openai/chat.mjs";
18
19
  import * as TestsAPI from "./tests/tests.mjs";
19
20
  import { AssistantTest, AssistantTestsDefaultFlatPagination, TelnyxConversationChannel, TestCreateParams, TestListParams, TestUpdateParams, Tests } from "./tests/tests.mjs";
20
21
  import { APIPromise } from "../../../core/api-promise.mjs";
@@ -371,11 +372,35 @@ export interface AssistantMcpServer {
371
372
  * another AI assistant. By default, this will happen transparently to the end
372
373
  * user.
373
374
  */
374
- export type AssistantTool = InferenceEmbeddingWebhookToolParams | AssistantTool.ClientSideTool | RetrievalTool | AssistantTool.Handoff | HangupTool | AssistantTool.Transfer | AssistantTool.Invite | AssistantTool.Refer | AssistantTool.SendDtmf | AssistantTool.SendMessage | AssistantTool.SkipTurn | AssistantTool.Pay | AssistantTool.UpdateDynamicVariables;
375
+ export type AssistantTool = AssistantTool.Function | InferenceEmbeddingWebhookToolParams | AssistantTool.ClientSideTool | RetrievalTool | AssistantTool.Handoff | AssistantTool.Hangup | AssistantTool.Transfer | AssistantTool.Invite | AssistantTool.Refer | AssistantTool.SendDtmf | AssistantTool.SendMessage | AssistantTool.SkipTurn | AssistantTool.Pay | AssistantTool.UpdateDynamicVariables;
375
376
  export declare namespace AssistantTool {
377
+ interface Function {
378
+ function: OpenAIChatAPI.FunctionDefinition;
379
+ type: 'function';
380
+ /**
381
+ * Whether this tool comes from the shared Tools Library. Responses merge shared
382
+ * tools into `tools` with `shared: true`; inline tools carry `shared: false`.
383
+ * Read-only: set by the server, not accepted in requests. When updating an
384
+ * assistant, omit `shared: true` tools from the request `tools` array and manage
385
+ * them through `tool_ids` instead — re-sending their definitions creates an inline
386
+ * duplicate (rejected with error code 10015 when the type allows only one instance
387
+ * per assistant).
388
+ */
389
+ shared?: boolean;
390
+ }
376
391
  interface ClientSideTool {
377
392
  client_side_tool: ClientSideTool.ClientSideTool;
378
393
  type: 'client_side_tool';
394
+ /**
395
+ * Whether this tool comes from the shared Tools Library. Responses merge shared
396
+ * tools into `tools` with `shared: true`; inline tools carry `shared: false`.
397
+ * Read-only: set by the server, not accepted in requests. When updating an
398
+ * assistant, omit `shared: true` tools from the request `tools` array and manage
399
+ * them through `tool_ids` instead — re-sending their definitions creates an inline
400
+ * duplicate (rejected with error code 10015 when the type allows only one instance
401
+ * per assistant).
402
+ */
403
+ shared?: boolean;
379
404
  }
380
405
  namespace ClientSideTool {
381
406
  interface ClientSideTool {
@@ -423,6 +448,16 @@ export declare namespace AssistantTool {
423
448
  interface Handoff {
424
449
  handoff: Handoff.Handoff;
425
450
  type: 'handoff';
451
+ /**
452
+ * Whether this tool comes from the shared Tools Library. Responses merge shared
453
+ * tools into `tools` with `shared: true`; inline tools carry `shared: false`.
454
+ * Read-only: set by the server, not accepted in requests. When updating an
455
+ * assistant, omit `shared: true` tools from the request `tools` array and manage
456
+ * them through `tool_ids` instead — re-sending their definitions creates an inline
457
+ * duplicate (rejected with error code 10015 when the type allows only one instance
458
+ * per assistant).
459
+ */
460
+ shared?: boolean;
426
461
  }
427
462
  namespace Handoff {
428
463
  interface Handoff {
@@ -451,9 +486,33 @@ export declare namespace AssistantTool {
451
486
  }
452
487
  }
453
488
  }
489
+ interface Hangup {
490
+ hangup: AssistantsAPI.HangupToolParams;
491
+ type: 'hangup';
492
+ /**
493
+ * Whether this tool comes from the shared Tools Library. Responses merge shared
494
+ * tools into `tools` with `shared: true`; inline tools carry `shared: false`.
495
+ * Read-only: set by the server, not accepted in requests. When updating an
496
+ * assistant, omit `shared: true` tools from the request `tools` array and manage
497
+ * them through `tool_ids` instead — re-sending their definitions creates an inline
498
+ * duplicate (rejected with error code 10015 when the type allows only one instance
499
+ * per assistant).
500
+ */
501
+ shared?: boolean;
502
+ }
454
503
  interface Transfer {
455
504
  transfer: Transfer.Transfer;
456
505
  type: 'transfer';
506
+ /**
507
+ * Whether this tool comes from the shared Tools Library. Responses merge shared
508
+ * tools into `tools` with `shared: true`; inline tools carry `shared: false`.
509
+ * Read-only: set by the server, not accepted in requests. When updating an
510
+ * assistant, omit `shared: true` tools from the request `tools` array and manage
511
+ * them through `tool_ids` instead — re-sending their definitions creates an inline
512
+ * duplicate (rejected with error code 10015 when the type allows only one instance
513
+ * per assistant).
514
+ */
515
+ shared?: boolean;
457
516
  }
458
517
  namespace Transfer {
459
518
  interface Transfer {
@@ -528,6 +587,14 @@ export declare namespace AssistantTool {
528
587
  * The destination number or SIP URI of the call.
529
588
  */
530
589
  to: string;
590
+ /**
591
+ * DTMF digits to send automatically after the transfer destination answers. Useful
592
+ * for reaching an extension behind an IVR (e.g. `"200"` to dial extension 200 once
593
+ * the called party picks up). Allowed characters: `0-9`, `A-D`, `w` (0.5s pause),
594
+ * `W` (1s pause), `*`, `#`. Maximum 64 characters. When omitted, no automatic DTMF
595
+ * is sent.
596
+ */
597
+ extension?: string;
531
598
  /**
532
599
  * The warm transfer message to deliver to this specific target. When set, it takes
533
600
  * precedence over the message the assistant composes from
@@ -538,6 +605,16 @@ export declare namespace AssistantTool {
538
605
  * The name of the target.
539
606
  */
540
607
  name?: string;
608
+ /**
609
+ * SIP Authentication password used for SIP challenges. Applies when `to` is a SIP
610
+ * URI.
611
+ */
612
+ sip_auth_password?: string;
613
+ /**
614
+ * SIP Authentication username used for SIP challenges. Applies when `to` is a SIP
615
+ * URI.
616
+ */
617
+ sip_auth_username?: string;
541
618
  }
542
619
  interface CustomHeader {
543
620
  name?: string;
@@ -688,6 +765,16 @@ export declare namespace AssistantTool {
688
765
  interface Invite {
689
766
  invite: Invite.Invite;
690
767
  type: 'invite';
768
+ /**
769
+ * Whether this tool comes from the shared Tools Library. Responses merge shared
770
+ * tools into `tools` with `shared: true`; inline tools carry `shared: false`.
771
+ * Read-only: set by the server, not accepted in requests. When updating an
772
+ * assistant, omit `shared: true` tools from the request `tools` array and manage
773
+ * them through `tool_ids` instead — re-sending their definitions creates an inline
774
+ * duplicate (rejected with error code 10015 when the type allows only one instance
775
+ * per assistant).
776
+ */
777
+ shared?: boolean;
691
778
  }
692
779
  namespace Invite {
693
780
  interface Invite {
@@ -766,6 +853,16 @@ export declare namespace AssistantTool {
766
853
  interface Refer {
767
854
  refer: Refer.Refer;
768
855
  type: 'refer';
856
+ /**
857
+ * Whether this tool comes from the shared Tools Library. Responses merge shared
858
+ * tools into `tools` with `shared: true`; inline tools carry `shared: false`.
859
+ * Read-only: set by the server, not accepted in requests. When updating an
860
+ * assistant, omit `shared: true` tools from the request `tools` array and manage
861
+ * them through `tool_ids` instead — re-sending their definitions creates an inline
862
+ * duplicate (rejected with error code 10015 when the type allows only one instance
863
+ * per assistant).
864
+ */
865
+ shared?: boolean;
769
866
  }
770
867
  namespace Refer {
771
868
  interface Refer {
@@ -830,6 +927,16 @@ export declare namespace AssistantTool {
830
927
  [key: string]: unknown;
831
928
  };
832
929
  type: 'send_dtmf';
930
+ /**
931
+ * Whether this tool comes from the shared Tools Library. Responses merge shared
932
+ * tools into `tools` with `shared: true`; inline tools carry `shared: false`.
933
+ * Read-only: set by the server, not accepted in requests. When updating an
934
+ * assistant, omit `shared: true` tools from the request `tools` array and manage
935
+ * them through `tool_ids` instead — re-sending their definitions creates an inline
936
+ * duplicate (rejected with error code 10015 when the type allows only one instance
937
+ * per assistant).
938
+ */
939
+ shared?: boolean;
833
940
  }
834
941
  /**
835
942
  * The send_message tool allows the assistant to send SMS or MMS messages to the
@@ -840,6 +947,16 @@ export declare namespace AssistantTool {
840
947
  interface SendMessage {
841
948
  send_message: SendMessage.SendMessage;
842
949
  type: 'send_message';
950
+ /**
951
+ * Whether this tool comes from the shared Tools Library. Responses merge shared
952
+ * tools into `tools` with `shared: true`; inline tools carry `shared: false`.
953
+ * Read-only: set by the server, not accepted in requests. When updating an
954
+ * assistant, omit `shared: true` tools from the request `tools` array and manage
955
+ * them through `tool_ids` instead — re-sending their definitions creates an inline
956
+ * duplicate (rejected with error code 10015 when the type allows only one instance
957
+ * per assistant).
958
+ */
959
+ shared?: boolean;
843
960
  }
844
961
  namespace SendMessage {
845
962
  interface SendMessage {
@@ -857,6 +974,16 @@ export declare namespace AssistantTool {
857
974
  interface SkipTurn {
858
975
  skip_turn: SkipTurn.SkipTurn;
859
976
  type: 'skip_turn';
977
+ /**
978
+ * Whether this tool comes from the shared Tools Library. Responses merge shared
979
+ * tools into `tools` with `shared: true`; inline tools carry `shared: false`.
980
+ * Read-only: set by the server, not accepted in requests. When updating an
981
+ * assistant, omit `shared: true` tools from the request `tools` array and manage
982
+ * them through `tool_ids` instead — re-sending their definitions creates an inline
983
+ * duplicate (rejected with error code 10015 when the type allows only one instance
984
+ * per assistant).
985
+ */
986
+ shared?: boolean;
860
987
  }
861
988
  namespace SkipTurn {
862
989
  interface SkipTurn {
@@ -875,6 +1002,16 @@ export declare namespace AssistantTool {
875
1002
  interface Pay {
876
1003
  pay: ToolsAPI.PayToolParams;
877
1004
  type: 'pay';
1005
+ /**
1006
+ * Whether this tool comes from the shared Tools Library. Responses merge shared
1007
+ * tools into `tools` with `shared: true`; inline tools carry `shared: false`.
1008
+ * Read-only: set by the server, not accepted in requests. When updating an
1009
+ * assistant, omit `shared: true` tools from the request `tools` array and manage
1010
+ * them through `tool_ids` instead — re-sending their definitions creates an inline
1011
+ * duplicate (rejected with error code 10015 when the type allows only one instance
1012
+ * per assistant).
1013
+ */
1014
+ shared?: boolean;
878
1015
  }
879
1016
  /**
880
1017
  * The update_dynamic_variables tool lets the assistant write values into the
@@ -889,6 +1026,16 @@ export declare namespace AssistantTool {
889
1026
  * Configuration for an update_dynamic_variables tool.
890
1027
  */
891
1028
  update_dynamic_variables: ToolsAPI.UpdateDynamicVariablesToolParams;
1029
+ /**
1030
+ * Whether this tool comes from the shared Tools Library. Responses merge shared
1031
+ * tools into `tools` with `shared: true`; inline tools carry `shared: false`.
1032
+ * Read-only: set by the server, not accepted in requests. When updating an
1033
+ * assistant, omit `shared: true` tools from the request `tools` array and manage
1034
+ * them through `tool_ids` instead — re-sending their definitions creates an inline
1035
+ * duplicate (rejected with error code 10015 when the type allows only one instance
1036
+ * per assistant).
1037
+ */
1038
+ shared?: boolean;
892
1039
  }
893
1040
  }
894
1041
  export interface AssistantsList {
@@ -1345,7 +1492,7 @@ export interface FlowNode {
1345
1492
  /**
1346
1493
  * Per-node voice override (response form).
1347
1494
  */
1348
- voice_settings?: VoiceSettings;
1495
+ voice_settings?: InferenceEmbeddingVoiceSettings;
1349
1496
  }
1350
1497
  /**
1351
1498
  * One step in a conversation flow, as supplied by API clients.
@@ -1424,7 +1571,7 @@ export interface FlowNodeReq {
1424
1571
  * Per-node voice override. Only fields set here override the assistant-level voice
1425
1572
  * settings; unset fields cascade.
1426
1573
  */
1427
- voice_settings?: VoiceSettings;
1574
+ voice_settings?: InferenceEmbeddingVoiceSettings;
1428
1575
  }
1429
1576
  export interface HangupTool {
1430
1577
  hangup: HangupToolParams;
@@ -1552,10 +1699,10 @@ export interface InferenceEmbedding {
1552
1699
  /**
1553
1700
  * Configuration for post-conversation processing. When enabled, the assistant
1554
1701
  * receives one additional LLM turn after the conversation ends, allowing it to
1555
- * execute tool calls such as logging to a CRM or sending a summary. The assistant
1556
- * can execute multiple parallel or sequential tools during this phase.
1557
- * Telephony-control tools (e.g. hangup, transfer) are unavailable
1558
- * post-conversation. Beta feature.
1702
+ * execute final tool calls such as sending a summary or updating a record via
1703
+ * webhook or function tools. Integration and MCP server tools are not available
1704
+ * post-conversation; call-control tools (e.g. hangup, transfer) are also
1705
+ * unavailable. Beta feature.
1559
1706
  */
1560
1707
  post_conversation_settings?: PostConversationSettings;
1561
1708
  privacy_settings?: PrivacySettings;
@@ -1570,9 +1717,12 @@ export interface InferenceEmbedding {
1570
1717
  tags?: Array<string>;
1571
1718
  telephony_settings?: TelephonySettings;
1572
1719
  /**
1573
- * Deprecated for new integrations. Inline tool definitions available to the
1574
- * assistant. Prefer `tool_ids` to attach shared tools created with the AI Tools
1575
- * endpoints.
1720
+ * The assistant's tools. Responses merge the assistant's shared Tools Library
1721
+ * tools into this array alongside inline tools, each flagged `shared: true`;
1722
+ * inline tools carry `shared: false`. On update, a sent `tools` array fully
1723
+ * replaces the inline tools only — shared tools stay attached unless `tool_ids`
1724
+ * changes. Each tool type except `function`, `webhook`, and `client_side_tool`
1725
+ * allows at most one instance per assistant across both sources.
1576
1726
  */
1577
1727
  tools?: Array<AssistantTool>;
1578
1728
  transcription?: TranscriptionSettings;
@@ -1589,7 +1739,7 @@ export interface InferenceEmbedding {
1589
1739
  * Human-readable name for the assistant version.
1590
1740
  */
1591
1741
  version_name?: string;
1592
- voice_settings?: VoiceSettings;
1742
+ voice_settings?: InferenceEmbeddingVoiceSettings;
1593
1743
  /**
1594
1744
  * Configuration settings for the assistant's web widget.
1595
1745
  */
@@ -1612,6 +1762,11 @@ export interface InferenceEmbeddingInterruptionSettings {
1612
1762
  * Whether users can interrupt the assistant while it is speaking.
1613
1763
  */
1614
1764
  enable?: boolean;
1765
+ /**
1766
+ * Interrupt-prediction sensitivity, from 0.0 to 1.0. Set to null or 0.0 to disable
1767
+ * interrupt prediction.
1768
+ */
1769
+ interrupt_prediction_threshold?: number | null;
1615
1770
  /**
1616
1771
  * Controls when the assistant starts speaking after the user stops. These
1617
1772
  * thresholds primarily apply to non turn-taking transcription models. For
@@ -1620,9 +1775,141 @@ export interface InferenceEmbeddingInterruptionSettings {
1620
1775
  */
1621
1776
  start_speaking_plan?: StartSpeakingPlan;
1622
1777
  }
1778
+ export interface InferenceEmbeddingVoiceSettings {
1779
+ /**
1780
+ * The voice to be used by the voice assistant. Check the full list of
1781
+ * [available voices](https://developers.telnyx.com/docs/tts-stt/tts-available-voices)
1782
+ * via our voices API. To use ElevenLabs, you must reference your ElevenLabs API
1783
+ * key as an integration secret under the `api_key_ref` field. See
1784
+ * [integration secrets documentation](https://developers.telnyx.com/api-reference/integration-secrets/create-a-secret)
1785
+ * for details. For Telnyx voices, use `Telnyx.<model_id>.<voice_id>` (e.g.
1786
+ * Telnyx.KokoroTTS.af_heart). For Soniox voices, use `Soniox.tts-rt-v2.<voice_id>`
1787
+ * (e.g. Soniox.tts-rt-v2.Emma); every Soniox voice speaks all supported languages.
1788
+ * The voice portion of the identifier supports
1789
+ * [dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables)
1790
+ * using mustache syntax (e.g. `Telnyx.Ultra.{{voice_id}}`). The variable is
1791
+ * resolved at call time from your dynamic variables webhook, allowing you to
1792
+ * select the voice dynamically per call.
1793
+ */
1794
+ voice: string;
1795
+ /**
1796
+ * The `identifier` for an integration secret
1797
+ * [/v2/integration_secrets](https://developers.telnyx.com/api-reference/integration-secrets/create-a-secret)
1798
+ * that refers to your ElevenLabs API key. Warning: Free plans are unlikely to work
1799
+ * with this integration.
1800
+ */
1801
+ api_key_ref?: string;
1802
+ /**
1803
+ * Optional background audio to play on the call. Use a predefined media bed, or
1804
+ * supply a looped MP3 URL. If a media URL is chosen in the portal, customers can
1805
+ * preview it before saving.
1806
+ */
1807
+ background_audio?: InferenceEmbeddingVoiceSettings.UnionMember0 | InferenceEmbeddingVoiceSettings.UnionMember1 | InferenceEmbeddingVoiceSettings.UnionMember2;
1808
+ /**
1809
+ * Enables emotionally expressive speech using SSML emotion tags. When enabled, the
1810
+ * assistant uses audio tags like angry, excited, content, and sad to add emotional
1811
+ * nuance. Only supported for Telnyx Ultra voices.
1812
+ */
1813
+ expressive_mode?: boolean;
1814
+ /**
1815
+ * Enhances recognition for specific languages and dialects during MiniMax TTS
1816
+ * synthesis. Default is null (no boost). Set to 'auto' for automatic language
1817
+ * detection. Only applicable when using MiniMax voices.
1818
+ */
1819
+ 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;
1820
+ /**
1821
+ * Determines how closely the AI should adhere to the original voice when
1822
+ * attempting to replicate it. Only applicable when using ElevenLabs.
1823
+ */
1824
+ similarity_boost?: number;
1825
+ /**
1826
+ * Adjusts speech velocity. 1.0 is default speed; values less than 1.0 slow speech;
1827
+ * values greater than 1.0 accelerate it. Only applicable when using ElevenLabs.
1828
+ */
1829
+ speed?: number;
1830
+ /**
1831
+ * Determines the style exaggeration of the voice. Amplifies speaker style but
1832
+ * consumes additional resources when set above 0. Only applicable when using
1833
+ * ElevenLabs.
1834
+ */
1835
+ style?: number;
1836
+ /**
1837
+ * Determines how stable the voice is and the randomness between each generation.
1838
+ * Lower values create a broader emotional range; higher values produce more
1839
+ * consistent, monotonous output. Only applicable when using ElevenLabs.
1840
+ */
1841
+ temperature?: number;
1842
+ /**
1843
+ * Amplifies similarity to the original speaker voice. Increases computational load
1844
+ * and latency slightly. Only applicable when using ElevenLabs.
1845
+ */
1846
+ use_speaker_boost?: boolean;
1847
+ /**
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).
1851
+ */
1852
+ voice_speed?: number;
1853
+ }
1854
+ export declare namespace InferenceEmbeddingVoiceSettings {
1855
+ interface UnionMember0 {
1856
+ /**
1857
+ * Select from predefined media options.
1858
+ */
1859
+ type: 'predefined_media';
1860
+ /**
1861
+ * The predefined media to use. `silence` disables background audio.
1862
+ */
1863
+ value: 'silence' | 'office';
1864
+ /**
1865
+ * Volume level for the predefined background audio. Supports values from 0.1 to
1866
+ * 1.0 in 0.1 increments.
1867
+ */
1868
+ volume?: number;
1869
+ }
1870
+ interface UnionMember1 {
1871
+ /**
1872
+ * Provide a direct URL to an MP3 file. The audio will loop during the call.
1873
+ */
1874
+ type: 'media_url';
1875
+ /**
1876
+ * HTTPS URL to an MP3 file.
1877
+ */
1878
+ value: string;
1879
+ }
1880
+ interface UnionMember2 {
1881
+ /**
1882
+ * Reference a previously uploaded media by its name from Telnyx Media Storage.
1883
+ */
1884
+ type: 'media_name';
1885
+ /**
1886
+ * The `name` of a media asset created via
1887
+ * [Media Storage API](https://developers.telnyx.com/api/media-storage/create-media-storage).
1888
+ * The audio will loop during the call.
1889
+ */
1890
+ value: string;
1891
+ }
1892
+ }
1623
1893
  export interface InferenceEmbeddingWebhookToolParams {
1624
1894
  type: 'webhook';
1625
1895
  webhook: InferenceEmbeddingWebhookToolParams.Webhook;
1896
+ /**
1897
+ * Whether this tool comes from the shared Tools Library. Responses merge shared
1898
+ * tools into `tools` with `shared: true`; inline tools carry `shared: false`.
1899
+ * Read-only: set by the server, not accepted in requests. When updating an
1900
+ * assistant, omit `shared: true` tools from the request `tools` array and manage
1901
+ * them through `tool_ids` instead — re-sending their definitions creates an inline
1902
+ * duplicate (rejected with error code 10015 when the type allows only one instance
1903
+ * per assistant).
1904
+ */
1905
+ shared?: boolean;
1906
+ /**
1907
+ * The maximum number of milliseconds to wait for the webhook to respond before the
1908
+ * tool call is aborted. Set this at the tool level, as a sibling of `type` — a
1909
+ * `timeout_ms` nested inside the `webhook` object is stored but not applied, and
1910
+ * the tool runs at this default instead. Applies when `webhook.async` is false.
1911
+ */
1912
+ timeout_ms?: number;
1626
1913
  }
1627
1914
  export declare namespace InferenceEmbeddingWebhookToolParams {
1628
1915
  interface Webhook {
@@ -1722,11 +2009,6 @@ export declare namespace InferenceEmbeddingWebhookToolParams {
1722
2009
  * dot-notation path to the value in the response body.
1723
2010
  */
1724
2011
  store_fields_as_variables?: Array<Webhook.StoreFieldsAsVariable>;
1725
- /**
1726
- * The maximum number of milliseconds to wait for the webhook to respond. Only
1727
- * applicable when async is false.
1728
- */
1729
- timeout_ms?: number;
1730
2012
  }
1731
2013
  namespace Webhook {
1732
2014
  /**
@@ -1921,10 +2203,10 @@ export type ObservabilityStatus = 'enabled' | 'disabled';
1921
2203
  /**
1922
2204
  * Configuration for post-conversation processing. When enabled, the assistant
1923
2205
  * receives one additional LLM turn after the conversation ends, allowing it to
1924
- * execute tool calls such as logging to a CRM or sending a summary. The assistant
1925
- * can execute multiple parallel or sequential tools during this phase.
1926
- * Telephony-control tools (e.g. hangup, transfer) are unavailable
1927
- * post-conversation. Beta feature.
2206
+ * execute final tool calls such as sending a summary or updating a record via
2207
+ * webhook or function tools. Integration and MCP server tools are not available
2208
+ * post-conversation; call-control tools (e.g. hangup, transfer) are also
2209
+ * unavailable. Beta feature.
1928
2210
  */
1929
2211
  export interface PostConversationSettings {
1930
2212
  /**
@@ -1937,10 +2219,10 @@ export interface PostConversationSettings {
1937
2219
  /**
1938
2220
  * Configuration for post-conversation processing. When enabled, the assistant
1939
2221
  * receives one additional LLM turn after the conversation ends, allowing it to
1940
- * execute tool calls such as logging to a CRM or sending a summary. The assistant
1941
- * can execute multiple parallel or sequential tools during this phase.
1942
- * Telephony-control tools (e.g. hangup, transfer) are unavailable
1943
- * post-conversation. Beta feature.
2222
+ * execute final tool calls such as sending a summary or updating a record via
2223
+ * webhook or function tools. Integration and MCP server tools are not available
2224
+ * post-conversation; call-control tools (e.g. hangup, transfer) are also
2225
+ * unavailable. Beta feature.
1944
2226
  */
1945
2227
  export interface PostConversationSettingsReq {
1946
2228
  /**
@@ -1960,6 +2242,21 @@ export interface PrivacySettings {
1960
2242
  * force regardless of your selection here.
1961
2243
  */
1962
2244
  data_retention?: boolean;
2245
+ /**
2246
+ * Requires every model call made for a web chat turn to be received and served
2247
+ * inside your organization's data-locality region, rather than only stored there.
2248
+ * Applies to web chat only — voice and messaging assistants are unaffected.
2249
+ * Enabling it requires a data-locality region with in-region inference (USA, EU,
2250
+ * AUS, UAE; see
2251
+ * [Inference regions](https://developers.telnyx.com/docs/inference/models/regions))
2252
+ * and Telnyx-hosted models for the assistant, its fallback, and any
2253
+ * conversation-flow node that overrides the model; the request is rejected
2254
+ * otherwise. Once enabled, send chat requests to your region's API hostname: a
2255
+ * request entering the platform in another region is rejected rather than
2256
+ * forwarded, because forwarding it would already have moved the content across the
2257
+ * border. Defaults to false.
2258
+ */
2259
+ in_transit_data_locality?: boolean;
1963
2260
  }
1964
2261
  /**
1965
2262
  * Whether to auto-publish the assistant's instructions as a Langfuse prompt.
@@ -1972,6 +2269,16 @@ export type PromptSyncStatus = 'enabled' | 'disabled';
1972
2269
  export interface RetrievalTool {
1973
2270
  retrieval: ChatAPI.BucketIDs;
1974
2271
  type: 'retrieval';
2272
+ /**
2273
+ * Whether this tool comes from the shared Tools Library. Responses merge shared
2274
+ * tools into `tools` with `shared: true`; inline tools carry `shared: false`.
2275
+ * Read-only: set by the server, not accepted in requests. When updating an
2276
+ * assistant, omit `shared: true` tools from the request `tools` array and manage
2277
+ * them through `tool_ids` instead — re-sending their definitions creates an inline
2278
+ * duplicate (rejected with error code 10015 when the type allows only one instance
2279
+ * per assistant).
2280
+ */
2281
+ shared?: boolean;
1975
2282
  }
1976
2283
  /**
1977
2284
  * A standalone scripted-message step in a flow, as returned by the API.
@@ -2084,13 +2391,16 @@ export interface TelephonySettings {
2084
2391
  */
2085
2392
  fallback_destination?: string;
2086
2393
  /**
2087
- * The noise suppression engine to use. Use 'disabled' to turn off noise
2088
- * suppression.
2394
+ * The noise suppression engine to use. 'aicoustics' is STT-optimized and
2395
+ * recommended for AI assistants (configure through noise_suppression_config). Use
2396
+ * 'disabled' to turn off noise suppression.
2089
2397
  */
2090
- noise_suppression?: 'krisp' | 'deepfilternet' | 'disabled';
2398
+ noise_suppression?: 'aicoustics' | 'krisp' | 'deepfilternet' | 'disabled';
2091
2399
  /**
2092
- * Configuration for noise suppression. Only applicable when noise_suppression is
2093
- * 'deepfilternet'.
2400
+ * Configuration for noise suppression. Applicable fields depend on the engine:
2401
+ * 'attenuation_limit' and 'mode' only when noise_suppression is 'deepfilternet';
2402
+ * 'family', 'size' and 'enhancement_level' only when noise_suppression is
2403
+ * 'aicoustics'.
2094
2404
  */
2095
2405
  noise_suppression_config?: TelephonySettings.NoiseSuppressionConfig;
2096
2406
  /**
@@ -2146,18 +2456,38 @@ export interface TelephonySettings {
2146
2456
  }
2147
2457
  export declare namespace TelephonySettings {
2148
2458
  /**
2149
- * Configuration for noise suppression. Only applicable when noise_suppression is
2150
- * 'deepfilternet'.
2459
+ * Configuration for noise suppression. Applicable fields depend on the engine:
2460
+ * 'attenuation_limit' and 'mode' only when noise_suppression is 'deepfilternet';
2461
+ * 'family', 'size' and 'enhancement_level' only when noise_suppression is
2462
+ * 'aicoustics'.
2151
2463
  */
2152
2464
  interface NoiseSuppressionConfig {
2153
2465
  /**
2154
- * Attenuation limit for noise suppression. Range: 0-100.
2466
+ * Attenuation limit for noise suppression. Range: 0-100. Only applicable when
2467
+ * noise_suppression is 'deepfilternet'.
2155
2468
  */
2156
2469
  attenuation_limit?: number;
2157
2470
  /**
2158
- * Mode for noise suppression configuration.
2471
+ * AiCoustics enhancement intensity. Range: 0-1. Only applicable when
2472
+ * noise_suppression is 'aicoustics'.
2473
+ */
2474
+ enhancement_level?: number;
2475
+ /**
2476
+ * AiCoustics model family optimized for Voice AI and STT. Only applicable when
2477
+ * noise_suppression is 'aicoustics'.
2478
+ */
2479
+ family?: 'quail';
2480
+ /**
2481
+ * Mode for noise suppression configuration. Only applicable when noise_suppression
2482
+ * is 'deepfilternet'.
2159
2483
  */
2160
2484
  mode?: 'advanced';
2485
+ /**
2486
+ * AiCoustics model size. 'vf' tracks the latest model release; 'vf_2_0_l' is
2487
+ * pinned to version 2.0 for consistent, predictable behavior. Only applicable when
2488
+ * noise_suppression is 'aicoustics'.
2489
+ */
2490
+ size?: 'vf' | 'vf_2_0_l';
2161
2491
  }
2162
2492
  /**
2163
2493
  * Configuration for call recording format and channel settings.
@@ -2366,21 +2696,24 @@ export interface TranscriptionSettings {
2366
2696
  * - `deepgram/nova-3` is multilingual with automatic language detection.
2367
2697
  * - `deepgram/nova-2` is Deepgram's previous-generation multilingual model.
2368
2698
  * - `azure/fast` is a multilingual Azure transcription model.
2369
- * - `assemblyai/universal-streaming` is a multilingual streaming model with
2370
- * configurable turn detection.
2699
+ * - `assemblyai/universal-3-5-pro` is a multilingual streaming model with
2700
+ * configurable turn detection. The legacy alias `assemblyai/universal-streaming`
2701
+ * is still accepted and resolves to the same model.
2371
2702
  * - `xai/grok-stt` is a multilingual Grok STT model.
2372
2703
  * - `soniox/stt-rt-v4` and `soniox/stt-rt-v5` are multilingual streaming models
2373
2704
  * with automatic language detection, configurable endpointing, term biasing
2374
2705
  * (`context`), and `language_hints`.
2375
2706
  * - `nvidia/parakeet-v3` is a multilingual transcription model with automatic
2376
2707
  * language detection.
2708
+ * - `omi-health/omi-med-stt-v1` is an English-only medical transcription model
2709
+ * (Parakeet-based).
2377
2710
  * - `humain/realtime` is a streaming model with native Arabic and Arabic/English
2378
2711
  * code-switching support.
2379
2712
  * - `reson8/turns` is a turn-based streaming model covering 10 European languages
2380
2713
  * with automatic language detection.
2381
2714
  * - `cohere/ar-stt` is a non-streaming Arabic and English transcription model.
2382
2715
  */
2383
- model?: 'deepgram/flux' | 'deepgram/nova-3' | 'deepgram/nova-2' | 'azure/fast' | 'assemblyai/universal-streaming' | 'xai/grok-stt' | 'soniox/stt-rt-v4' | 'soniox/stt-rt-v5' | 'nvidia/parakeet-v3' | 'humain/realtime' | 'reson8/turns' | 'cohere/ar-stt' | 'distil-whisper/distil-large-v2' | 'openai/whisper-large-v3-turbo';
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';
2384
2717
  /**
2385
2718
  * Region on third party cloud providers (currently Azure) if using one of their
2386
2719
  * models. Some regions require `api_key_ref`.
@@ -2412,9 +2745,9 @@ export interface TranscriptionSettingsConfig {
2412
2745
  */
2413
2746
  enable_endpoint_detection?: boolean;
2414
2747
  /**
2415
- * Available only for assemblyai/universal-streaming. Confidence level required to
2416
- * trigger an end of turn. Higher values require more certainty before ending a
2417
- * turn.
2748
+ * Available only for assemblyai/universal-3-5-pro (and its legacy alias
2749
+ * assemblyai/universal-streaming). Confidence level required to trigger an end of
2750
+ * turn. Higher values require more certainty before ending a turn.
2418
2751
  */
2419
2752
  end_of_turn_confidence_threshold?: number;
2420
2753
  /**
@@ -2455,14 +2788,15 @@ export interface TranscriptionSettingsConfig {
2455
2788
  */
2456
2789
  max_endpoint_delay_ms?: number;
2457
2790
  /**
2458
- * Available only for assemblyai/universal-streaming. Maximum duration of silence
2459
- * in milliseconds before forcing an end of turn.
2791
+ * Available only for assemblyai/universal-3-5-pro (and its legacy alias
2792
+ * assemblyai/universal-streaming). Maximum duration of silence in milliseconds
2793
+ * before forcing an end of turn.
2460
2794
  */
2461
2795
  max_turn_silence?: number;
2462
2796
  /**
2463
- * Available only for assemblyai/universal-streaming. Minimum duration of silence
2464
- * in milliseconds before a turn can end. Must be less than or equal to
2465
- * max_turn_silence.
2797
+ * Available only for assemblyai/universal-3-5-pro (and its legacy alias
2798
+ * assemblyai/universal-streaming). Minimum duration of silence in milliseconds
2799
+ * before a turn can end. Must be less than or equal to max_turn_silence.
2466
2800
  */
2467
2801
  min_turn_silence?: number;
2468
2802
  numerals?: boolean;
@@ -2615,6 +2949,13 @@ export declare namespace VoiceSettings {
2615
2949
  export interface WebhookTool {
2616
2950
  type: 'webhook';
2617
2951
  webhook: WebhookTool.Webhook;
2952
+ /**
2953
+ * The maximum number of milliseconds to wait for the webhook to respond before the
2954
+ * tool call is aborted. Set this at the tool level, as a sibling of `type` — a
2955
+ * `timeout_ms` nested inside the `webhook` object is not applied, and the tool
2956
+ * runs at this default instead.
2957
+ */
2958
+ timeout_ms?: number;
2618
2959
  }
2619
2960
  export declare namespace WebhookTool {
2620
2961
  interface Webhook {
@@ -2934,10 +3275,10 @@ export interface AssistantCreateParams {
2934
3275
  /**
2935
3276
  * Body param: Configuration for post-conversation processing. When enabled, the
2936
3277
  * assistant receives one additional LLM turn after the conversation ends, allowing
2937
- * it to execute tool calls such as logging to a CRM or sending a summary. The
2938
- * assistant can execute multiple parallel or sequential tools during this phase.
2939
- * Telephony-control tools (e.g. hangup, transfer) are unavailable
2940
- * post-conversation. Beta feature.
3278
+ * it to execute final tool calls such as sending a summary or updating a record
3279
+ * via webhook or function tools. Integration and MCP server tools are not
3280
+ * available post-conversation; call-control tools (e.g. hangup, transfer) are also
3281
+ * unavailable. Beta feature.
2941
3282
  */
2942
3283
  post_conversation_settings?: PostConversationSettingsReq;
2943
3284
  /**
@@ -2971,7 +3312,7 @@ export interface AssistantCreateParams {
2971
3312
  /**
2972
3313
  * Body param
2973
3314
  */
2974
- voice_settings?: VoiceSettings;
3315
+ voice_settings?: InferenceEmbeddingVoiceSettings;
2975
3316
  /**
2976
3317
  * Body param: Configuration settings for the assistant's web widget.
2977
3318
  */
@@ -3142,10 +3483,10 @@ export interface AssistantUpdateParams {
3142
3483
  /**
3143
3484
  * Configuration for post-conversation processing. When enabled, the assistant
3144
3485
  * receives one additional LLM turn after the conversation ends, allowing it to
3145
- * execute tool calls such as logging to a CRM or sending a summary. The assistant
3146
- * can execute multiple parallel or sequential tools during this phase.
3147
- * Telephony-control tools (e.g. hangup, transfer) are unavailable
3148
- * post-conversation. Beta feature.
3486
+ * execute final tool calls such as sending a summary or updating a record via
3487
+ * webhook or function tools. Integration and MCP server tools are not available
3488
+ * post-conversation; call-control tools (e.g. hangup, transfer) are also
3489
+ * unavailable. Beta feature.
3149
3490
  */
3150
3491
  post_conversation_settings?: PostConversationSettingsReq;
3151
3492
  privacy_settings?: PrivacySettings;
@@ -3162,13 +3503,24 @@ export interface AssistantUpdateParams {
3162
3503
  telephony_settings?: TelephonySettings;
3163
3504
  /**
3164
3505
  * IDs of shared tools to attach to the assistant. New integrations should prefer
3165
- * `tool_ids` over inline `tools`.
3506
+ * `tool_ids` over inline `tools`. On update, a sent `tool_ids` array fully
3507
+ * replaces the assistant's attached shared tools; omit the field to leave them
3508
+ * unchanged. Single-instance tool types are counted across inline `tools` and
3509
+ * `tool_ids` combined, so attaching a shared tool of such a type when an instance
3510
+ * already exists returns HTTP 400 with error code 10015.
3166
3511
  */
3167
3512
  tool_ids?: Array<string>;
3168
3513
  /**
3169
3514
  * Deprecated for new integrations. Inline tool definitions available to the
3170
3515
  * assistant. Prefer `tool_ids` to attach shared tools created with the AI Tools
3171
- * endpoints.
3516
+ * endpoints. On update, a sent `tools` array fully replaces the assistant's inline
3517
+ * tools; omit the field to leave the inline tools unchanged. Each tool type except
3518
+ * `function`, `webhook`, and `client_side_tool` allows at most one instance per
3519
+ * assistant, counted across inline `tools` and shared `tool_ids` combined —
3520
+ * sending a duplicate of such a type returns HTTP 400 with error code 10015.
3521
+ * Responses merge shared tools into `tools` with `shared: true`; when updating,
3522
+ * omit those tools from the `tools` array and manage them through `tool_ids`
3523
+ * instead.
3172
3524
  */
3173
3525
  tools?: Array<AssistantTool>;
3174
3526
  transcription?: TranscriptionSettings;
@@ -3176,7 +3528,7 @@ export interface AssistantUpdateParams {
3176
3528
  * Human-readable name for the assistant version.
3177
3529
  */
3178
3530
  version_name?: string;
3179
- voice_settings?: VoiceSettings;
3531
+ voice_settings?: InferenceEmbeddingVoiceSettings;
3180
3532
  /**
3181
3533
  * Configuration settings for the assistant's web widget.
3182
3534
  */
@@ -3253,7 +3605,7 @@ export interface AssistantSendSMSParams {
3253
3605
  'Idempotency-Key'?: string;
3254
3606
  }
3255
3607
  export declare namespace Assistants {
3256
- 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, };
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, };
3257
3609
  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, };
3258
3610
  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, };
3259
3611
  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, };