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
@@ -57,6 +57,7 @@ import {
57
57
  VersionUpdateParams,
58
58
  Versions,
59
59
  } from './versions';
60
+ import * as OpenAIChatAPI from '../openai/chat';
60
61
  import * as TestsAPI from './tests/tests';
61
62
  import {
62
63
  AssistantTest,
@@ -543,11 +544,12 @@ export interface AssistantMcpServer {
543
544
  * user.
544
545
  */
545
546
  export type AssistantTool =
547
+ | AssistantTool.Function
546
548
  | InferenceEmbeddingWebhookToolParams
547
549
  | AssistantTool.ClientSideTool
548
550
  | RetrievalTool
549
551
  | AssistantTool.Handoff
550
- | HangupTool
552
+ | AssistantTool.Hangup
551
553
  | AssistantTool.Transfer
552
554
  | AssistantTool.Invite
553
555
  | AssistantTool.Refer
@@ -558,10 +560,38 @@ export type AssistantTool =
558
560
  | AssistantTool.UpdateDynamicVariables;
559
561
 
560
562
  export namespace AssistantTool {
563
+ export interface Function {
564
+ function: OpenAIChatAPI.FunctionDefinition;
565
+
566
+ type: 'function';
567
+
568
+ /**
569
+ * Whether this tool comes from the shared Tools Library. Responses merge shared
570
+ * tools into `tools` with `shared: true`; inline tools carry `shared: false`.
571
+ * Read-only: set by the server, not accepted in requests. When updating an
572
+ * assistant, omit `shared: true` tools from the request `tools` array and manage
573
+ * them through `tool_ids` instead — re-sending their definitions creates an inline
574
+ * duplicate (rejected with error code 10015 when the type allows only one instance
575
+ * per assistant).
576
+ */
577
+ shared?: boolean;
578
+ }
579
+
561
580
  export interface ClientSideTool {
562
581
  client_side_tool: ClientSideTool.ClientSideTool;
563
582
 
564
583
  type: 'client_side_tool';
584
+
585
+ /**
586
+ * Whether this tool comes from the shared Tools Library. Responses merge shared
587
+ * tools into `tools` with `shared: true`; inline tools carry `shared: false`.
588
+ * Read-only: set by the server, not accepted in requests. When updating an
589
+ * assistant, omit `shared: true` tools from the request `tools` array and manage
590
+ * them through `tool_ids` instead — re-sending their definitions creates an inline
591
+ * duplicate (rejected with error code 10015 when the type allows only one instance
592
+ * per assistant).
593
+ */
594
+ shared?: boolean;
565
595
  }
566
596
 
567
597
  export namespace ClientSideTool {
@@ -615,6 +645,17 @@ export namespace AssistantTool {
615
645
  handoff: Handoff.Handoff;
616
646
 
617
647
  type: 'handoff';
648
+
649
+ /**
650
+ * Whether this tool comes from the shared Tools Library. Responses merge shared
651
+ * tools into `tools` with `shared: true`; inline tools carry `shared: false`.
652
+ * Read-only: set by the server, not accepted in requests. When updating an
653
+ * assistant, omit `shared: true` tools from the request `tools` array and manage
654
+ * them through `tool_ids` instead — re-sending their definitions creates an inline
655
+ * duplicate (rejected with error code 10015 when the type allows only one instance
656
+ * per assistant).
657
+ */
658
+ shared?: boolean;
618
659
  }
619
660
 
620
661
  export namespace Handoff {
@@ -648,10 +689,38 @@ export namespace AssistantTool {
648
689
  }
649
690
  }
650
691
 
692
+ export interface Hangup {
693
+ hangup: AssistantsAPI.HangupToolParams;
694
+
695
+ type: 'hangup';
696
+
697
+ /**
698
+ * Whether this tool comes from the shared Tools Library. Responses merge shared
699
+ * tools into `tools` with `shared: true`; inline tools carry `shared: false`.
700
+ * Read-only: set by the server, not accepted in requests. When updating an
701
+ * assistant, omit `shared: true` tools from the request `tools` array and manage
702
+ * them through `tool_ids` instead — re-sending their definitions creates an inline
703
+ * duplicate (rejected with error code 10015 when the type allows only one instance
704
+ * per assistant).
705
+ */
706
+ shared?: boolean;
707
+ }
708
+
651
709
  export interface Transfer {
652
710
  transfer: Transfer.Transfer;
653
711
 
654
712
  type: 'transfer';
713
+
714
+ /**
715
+ * Whether this tool comes from the shared Tools Library. Responses merge shared
716
+ * tools into `tools` with `shared: true`; inline tools carry `shared: false`.
717
+ * Read-only: set by the server, not accepted in requests. When updating an
718
+ * assistant, omit `shared: true` tools from the request `tools` array and manage
719
+ * them through `tool_ids` instead — re-sending their definitions creates an inline
720
+ * duplicate (rejected with error code 10015 when the type allows only one instance
721
+ * per assistant).
722
+ */
723
+ shared?: boolean;
655
724
  }
656
725
 
657
726
  export namespace Transfer {
@@ -737,6 +806,15 @@ export namespace AssistantTool {
737
806
  */
738
807
  to: string;
739
808
 
809
+ /**
810
+ * DTMF digits to send automatically after the transfer destination answers. Useful
811
+ * for reaching an extension behind an IVR (e.g. `"200"` to dial extension 200 once
812
+ * the called party picks up). Allowed characters: `0-9`, `A-D`, `w` (0.5s pause),
813
+ * `W` (1s pause), `*`, `#`. Maximum 64 characters. When omitted, no automatic DTMF
814
+ * is sent.
815
+ */
816
+ extension?: string;
817
+
740
818
  /**
741
819
  * The warm transfer message to deliver to this specific target. When set, it takes
742
820
  * precedence over the message the assistant composes from
@@ -748,6 +826,18 @@ export namespace AssistantTool {
748
826
  * The name of the target.
749
827
  */
750
828
  name?: string;
829
+
830
+ /**
831
+ * SIP Authentication password used for SIP challenges. Applies when `to` is a SIP
832
+ * URI.
833
+ */
834
+ sip_auth_password?: string;
835
+
836
+ /**
837
+ * SIP Authentication username used for SIP challenges. Applies when `to` is a SIP
838
+ * URI.
839
+ */
840
+ sip_auth_username?: string;
751
841
  }
752
842
 
753
843
  export interface CustomHeader {
@@ -922,6 +1012,17 @@ export namespace AssistantTool {
922
1012
  invite: Invite.Invite;
923
1013
 
924
1014
  type: 'invite';
1015
+
1016
+ /**
1017
+ * Whether this tool comes from the shared Tools Library. Responses merge shared
1018
+ * tools into `tools` with `shared: true`; inline tools carry `shared: false`.
1019
+ * Read-only: set by the server, not accepted in requests. When updating an
1020
+ * assistant, omit `shared: true` tools from the request `tools` array and manage
1021
+ * them through `tool_ids` instead — re-sending their definitions creates an inline
1022
+ * duplicate (rejected with error code 10015 when the type allows only one instance
1023
+ * per assistant).
1024
+ */
1025
+ shared?: boolean;
925
1026
  }
926
1027
 
927
1028
  export namespace Invite {
@@ -1013,6 +1114,17 @@ export namespace AssistantTool {
1013
1114
  refer: Refer.Refer;
1014
1115
 
1015
1116
  type: 'refer';
1117
+
1118
+ /**
1119
+ * Whether this tool comes from the shared Tools Library. Responses merge shared
1120
+ * tools into `tools` with `shared: true`; inline tools carry `shared: false`.
1121
+ * Read-only: set by the server, not accepted in requests. When updating an
1122
+ * assistant, omit `shared: true` tools from the request `tools` array and manage
1123
+ * them through `tool_ids` instead — re-sending their definitions creates an inline
1124
+ * duplicate (rejected with error code 10015 when the type allows only one instance
1125
+ * per assistant).
1126
+ */
1127
+ shared?: boolean;
1016
1128
  }
1017
1129
 
1018
1130
  export namespace Refer {
@@ -1088,6 +1200,17 @@ export namespace AssistantTool {
1088
1200
  send_dtmf: { [key: string]: unknown };
1089
1201
 
1090
1202
  type: 'send_dtmf';
1203
+
1204
+ /**
1205
+ * Whether this tool comes from the shared Tools Library. Responses merge shared
1206
+ * tools into `tools` with `shared: true`; inline tools carry `shared: false`.
1207
+ * Read-only: set by the server, not accepted in requests. When updating an
1208
+ * assistant, omit `shared: true` tools from the request `tools` array and manage
1209
+ * them through `tool_ids` instead — re-sending their definitions creates an inline
1210
+ * duplicate (rejected with error code 10015 when the type allows only one instance
1211
+ * per assistant).
1212
+ */
1213
+ shared?: boolean;
1091
1214
  }
1092
1215
 
1093
1216
  /**
@@ -1100,6 +1223,17 @@ export namespace AssistantTool {
1100
1223
  send_message: SendMessage.SendMessage;
1101
1224
 
1102
1225
  type: 'send_message';
1226
+
1227
+ /**
1228
+ * Whether this tool comes from the shared Tools Library. Responses merge shared
1229
+ * tools into `tools` with `shared: true`; inline tools carry `shared: false`.
1230
+ * Read-only: set by the server, not accepted in requests. When updating an
1231
+ * assistant, omit `shared: true` tools from the request `tools` array and manage
1232
+ * them through `tool_ids` instead — re-sending their definitions creates an inline
1233
+ * duplicate (rejected with error code 10015 when the type allows only one instance
1234
+ * per assistant).
1235
+ */
1236
+ shared?: boolean;
1103
1237
  }
1104
1238
 
1105
1239
  export namespace SendMessage {
@@ -1121,6 +1255,17 @@ export namespace AssistantTool {
1121
1255
  skip_turn: SkipTurn.SkipTurn;
1122
1256
 
1123
1257
  type: 'skip_turn';
1258
+
1259
+ /**
1260
+ * Whether this tool comes from the shared Tools Library. Responses merge shared
1261
+ * tools into `tools` with `shared: true`; inline tools carry `shared: false`.
1262
+ * Read-only: set by the server, not accepted in requests. When updating an
1263
+ * assistant, omit `shared: true` tools from the request `tools` array and manage
1264
+ * them through `tool_ids` instead — re-sending their definitions creates an inline
1265
+ * duplicate (rejected with error code 10015 when the type allows only one instance
1266
+ * per assistant).
1267
+ */
1268
+ shared?: boolean;
1124
1269
  }
1125
1270
 
1126
1271
  export namespace SkipTurn {
@@ -1142,6 +1287,17 @@ export namespace AssistantTool {
1142
1287
  pay: ToolsAPI.PayToolParams;
1143
1288
 
1144
1289
  type: 'pay';
1290
+
1291
+ /**
1292
+ * Whether this tool comes from the shared Tools Library. Responses merge shared
1293
+ * tools into `tools` with `shared: true`; inline tools carry `shared: false`.
1294
+ * Read-only: set by the server, not accepted in requests. When updating an
1295
+ * assistant, omit `shared: true` tools from the request `tools` array and manage
1296
+ * them through `tool_ids` instead — re-sending their definitions creates an inline
1297
+ * duplicate (rejected with error code 10015 when the type allows only one instance
1298
+ * per assistant).
1299
+ */
1300
+ shared?: boolean;
1145
1301
  }
1146
1302
 
1147
1303
  /**
@@ -1158,6 +1314,17 @@ export namespace AssistantTool {
1158
1314
  * Configuration for an update_dynamic_variables tool.
1159
1315
  */
1160
1316
  update_dynamic_variables: ToolsAPI.UpdateDynamicVariablesToolParams;
1317
+
1318
+ /**
1319
+ * Whether this tool comes from the shared Tools Library. Responses merge shared
1320
+ * tools into `tools` with `shared: true`; inline tools carry `shared: false`.
1321
+ * Read-only: set by the server, not accepted in requests. When updating an
1322
+ * assistant, omit `shared: true` tools from the request `tools` array and manage
1323
+ * them through `tool_ids` instead — re-sending their definitions creates an inline
1324
+ * duplicate (rejected with error code 10015 when the type allows only one instance
1325
+ * per assistant).
1326
+ */
1327
+ shared?: boolean;
1161
1328
  }
1162
1329
  }
1163
1330
 
@@ -1697,7 +1864,7 @@ export interface FlowNode {
1697
1864
  /**
1698
1865
  * Per-node voice override (response form).
1699
1866
  */
1700
- voice_settings?: VoiceSettings;
1867
+ voice_settings?: InferenceEmbeddingVoiceSettings;
1701
1868
  }
1702
1869
 
1703
1870
  /**
@@ -1789,7 +1956,7 @@ export interface FlowNodeReq {
1789
1956
  * Per-node voice override. Only fields set here override the assistant-level voice
1790
1957
  * settings; unset fields cascade.
1791
1958
  */
1792
- voice_settings?: VoiceSettings;
1959
+ voice_settings?: InferenceEmbeddingVoiceSettings;
1793
1960
  }
1794
1961
 
1795
1962
  export interface HangupTool {
@@ -1944,10 +2111,10 @@ export interface InferenceEmbedding {
1944
2111
  /**
1945
2112
  * Configuration for post-conversation processing. When enabled, the assistant
1946
2113
  * receives one additional LLM turn after the conversation ends, allowing it to
1947
- * execute tool calls such as logging to a CRM or sending a summary. The assistant
1948
- * can execute multiple parallel or sequential tools during this phase.
1949
- * Telephony-control tools (e.g. hangup, transfer) are unavailable
1950
- * post-conversation. Beta feature.
2114
+ * execute final tool calls such as sending a summary or updating a record via
2115
+ * webhook or function tools. Integration and MCP server tools are not available
2116
+ * post-conversation; call-control tools (e.g. hangup, transfer) are also
2117
+ * unavailable. Beta feature.
1951
2118
  */
1952
2119
  post_conversation_settings?: PostConversationSettings;
1953
2120
 
@@ -1967,9 +2134,12 @@ export interface InferenceEmbedding {
1967
2134
  telephony_settings?: TelephonySettings;
1968
2135
 
1969
2136
  /**
1970
- * Deprecated for new integrations. Inline tool definitions available to the
1971
- * assistant. Prefer `tool_ids` to attach shared tools created with the AI Tools
1972
- * endpoints.
2137
+ * The assistant's tools. Responses merge the assistant's shared Tools Library
2138
+ * tools into this array alongside inline tools, each flagged `shared: true`;
2139
+ * inline tools carry `shared: false`. On update, a sent `tools` array fully
2140
+ * replaces the inline tools only — shared tools stay attached unless `tool_ids`
2141
+ * changes. Each tool type except `function`, `webhook`, and `client_side_tool`
2142
+ * allows at most one instance per assistant across both sources.
1973
2143
  */
1974
2144
  tools?: Array<AssistantTool>;
1975
2145
 
@@ -1991,7 +2161,7 @@ export interface InferenceEmbedding {
1991
2161
  */
1992
2162
  version_name?: string;
1993
2163
 
1994
- voice_settings?: VoiceSettings;
2164
+ voice_settings?: InferenceEmbeddingVoiceSettings;
1995
2165
 
1996
2166
  /**
1997
2167
  * Configuration settings for the assistant's web widget.
@@ -2018,6 +2188,12 @@ export interface InferenceEmbeddingInterruptionSettings {
2018
2188
  */
2019
2189
  enable?: boolean;
2020
2190
 
2191
+ /**
2192
+ * Interrupt-prediction sensitivity, from 0.0 to 1.0. Set to null or 0.0 to disable
2193
+ * interrupt prediction.
2194
+ */
2195
+ interrupt_prediction_threshold?: number | null;
2196
+
2021
2197
  /**
2022
2198
  * Controls when the assistant starts speaking after the user stops. These
2023
2199
  * thresholds primarily apply to non turn-taking transcription models. For
@@ -2027,10 +2203,207 @@ export interface InferenceEmbeddingInterruptionSettings {
2027
2203
  start_speaking_plan?: StartSpeakingPlan;
2028
2204
  }
2029
2205
 
2206
+ export interface InferenceEmbeddingVoiceSettings {
2207
+ /**
2208
+ * The voice to be used by the voice assistant. Check the full list of
2209
+ * [available voices](https://developers.telnyx.com/docs/tts-stt/tts-available-voices)
2210
+ * via our voices API. To use ElevenLabs, you must reference your ElevenLabs API
2211
+ * key as an integration secret under the `api_key_ref` field. See
2212
+ * [integration secrets documentation](https://developers.telnyx.com/api-reference/integration-secrets/create-a-secret)
2213
+ * for details. For Telnyx voices, use `Telnyx.<model_id>.<voice_id>` (e.g.
2214
+ * Telnyx.KokoroTTS.af_heart). For Soniox voices, use `Soniox.tts-rt-v2.<voice_id>`
2215
+ * (e.g. Soniox.tts-rt-v2.Emma); every Soniox voice speaks all supported languages.
2216
+ * The voice portion of the identifier supports
2217
+ * [dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables)
2218
+ * using mustache syntax (e.g. `Telnyx.Ultra.{{voice_id}}`). The variable is
2219
+ * resolved at call time from your dynamic variables webhook, allowing you to
2220
+ * select the voice dynamically per call.
2221
+ */
2222
+ voice: string;
2223
+
2224
+ /**
2225
+ * The `identifier` for an integration secret
2226
+ * [/v2/integration_secrets](https://developers.telnyx.com/api-reference/integration-secrets/create-a-secret)
2227
+ * that refers to your ElevenLabs API key. Warning: Free plans are unlikely to work
2228
+ * with this integration.
2229
+ */
2230
+ api_key_ref?: string;
2231
+
2232
+ /**
2233
+ * Optional background audio to play on the call. Use a predefined media bed, or
2234
+ * supply a looped MP3 URL. If a media URL is chosen in the portal, customers can
2235
+ * preview it before saving.
2236
+ */
2237
+ background_audio?:
2238
+ | InferenceEmbeddingVoiceSettings.UnionMember0
2239
+ | InferenceEmbeddingVoiceSettings.UnionMember1
2240
+ | InferenceEmbeddingVoiceSettings.UnionMember2;
2241
+
2242
+ /**
2243
+ * Enables emotionally expressive speech using SSML emotion tags. When enabled, the
2244
+ * assistant uses audio tags like angry, excited, content, and sad to add emotional
2245
+ * nuance. Only supported for Telnyx Ultra voices.
2246
+ */
2247
+ expressive_mode?: boolean;
2248
+
2249
+ /**
2250
+ * Enhances recognition for specific languages and dialects during MiniMax TTS
2251
+ * synthesis. Default is null (no boost). Set to 'auto' for automatic language
2252
+ * detection. Only applicable when using MiniMax voices.
2253
+ */
2254
+ language_boost?:
2255
+ | 'auto'
2256
+ | 'Chinese'
2257
+ | 'Chinese,Yue'
2258
+ | 'English'
2259
+ | 'Arabic'
2260
+ | 'Russian'
2261
+ | 'Spanish'
2262
+ | 'French'
2263
+ | 'Portuguese'
2264
+ | 'German'
2265
+ | 'Turkish'
2266
+ | 'Dutch'
2267
+ | 'Ukrainian'
2268
+ | 'Vietnamese'
2269
+ | 'Indonesian'
2270
+ | 'Japanese'
2271
+ | 'Italian'
2272
+ | 'Korean'
2273
+ | 'Thai'
2274
+ | 'Polish'
2275
+ | 'Romanian'
2276
+ | 'Greek'
2277
+ | 'Czech'
2278
+ | 'Finnish'
2279
+ | 'Hindi'
2280
+ | 'Bulgarian'
2281
+ | 'Danish'
2282
+ | 'Hebrew'
2283
+ | 'Malay'
2284
+ | 'Persian'
2285
+ | 'Slovak'
2286
+ | 'Swedish'
2287
+ | 'Croatian'
2288
+ | 'Filipino'
2289
+ | 'Hungarian'
2290
+ | 'Norwegian'
2291
+ | 'Slovenian'
2292
+ | 'Catalan'
2293
+ | 'Nynorsk'
2294
+ | 'Tamil'
2295
+ | 'Afrikaans'
2296
+ | null;
2297
+
2298
+ /**
2299
+ * Determines how closely the AI should adhere to the original voice when
2300
+ * attempting to replicate it. Only applicable when using ElevenLabs.
2301
+ */
2302
+ similarity_boost?: number;
2303
+
2304
+ /**
2305
+ * Adjusts speech velocity. 1.0 is default speed; values less than 1.0 slow speech;
2306
+ * values greater than 1.0 accelerate it. Only applicable when using ElevenLabs.
2307
+ */
2308
+ speed?: number;
2309
+
2310
+ /**
2311
+ * Determines the style exaggeration of the voice. Amplifies speaker style but
2312
+ * consumes additional resources when set above 0. Only applicable when using
2313
+ * ElevenLabs.
2314
+ */
2315
+ style?: number;
2316
+
2317
+ /**
2318
+ * Determines how stable the voice is and the randomness between each generation.
2319
+ * Lower values create a broader emotional range; higher values produce more
2320
+ * consistent, monotonous output. Only applicable when using ElevenLabs.
2321
+ */
2322
+ temperature?: number;
2323
+
2324
+ /**
2325
+ * Amplifies similarity to the original speaker voice. Increases computational load
2326
+ * and latency slightly. Only applicable when using ElevenLabs.
2327
+ */
2328
+ use_speaker_boost?: boolean;
2329
+
2330
+ /**
2331
+ * The speed of the voice in the range [0.25, 2.0]. 1.0 is deafult speed. Larger
2332
+ * numbers make the voice faster, smaller numbers make it slower. This is only
2333
+ * applicable for Telnyx Natural voices and Soniox voices (0.7 to 1.3 for Soniox).
2334
+ */
2335
+ voice_speed?: number;
2336
+ }
2337
+
2338
+ export namespace InferenceEmbeddingVoiceSettings {
2339
+ export interface UnionMember0 {
2340
+ /**
2341
+ * Select from predefined media options.
2342
+ */
2343
+ type: 'predefined_media';
2344
+
2345
+ /**
2346
+ * The predefined media to use. `silence` disables background audio.
2347
+ */
2348
+ value: 'silence' | 'office';
2349
+
2350
+ /**
2351
+ * Volume level for the predefined background audio. Supports values from 0.1 to
2352
+ * 1.0 in 0.1 increments.
2353
+ */
2354
+ volume?: number;
2355
+ }
2356
+
2357
+ export interface UnionMember1 {
2358
+ /**
2359
+ * Provide a direct URL to an MP3 file. The audio will loop during the call.
2360
+ */
2361
+ type: 'media_url';
2362
+
2363
+ /**
2364
+ * HTTPS URL to an MP3 file.
2365
+ */
2366
+ value: string;
2367
+ }
2368
+
2369
+ export interface UnionMember2 {
2370
+ /**
2371
+ * Reference a previously uploaded media by its name from Telnyx Media Storage.
2372
+ */
2373
+ type: 'media_name';
2374
+
2375
+ /**
2376
+ * The `name` of a media asset created via
2377
+ * [Media Storage API](https://developers.telnyx.com/api/media-storage/create-media-storage).
2378
+ * The audio will loop during the call.
2379
+ */
2380
+ value: string;
2381
+ }
2382
+ }
2383
+
2030
2384
  export interface InferenceEmbeddingWebhookToolParams {
2031
2385
  type: 'webhook';
2032
2386
 
2033
2387
  webhook: InferenceEmbeddingWebhookToolParams.Webhook;
2388
+
2389
+ /**
2390
+ * Whether this tool comes from the shared Tools Library. Responses merge shared
2391
+ * tools into `tools` with `shared: true`; inline tools carry `shared: false`.
2392
+ * Read-only: set by the server, not accepted in requests. When updating an
2393
+ * assistant, omit `shared: true` tools from the request `tools` array and manage
2394
+ * them through `tool_ids` instead — re-sending their definitions creates an inline
2395
+ * duplicate (rejected with error code 10015 when the type allows only one instance
2396
+ * per assistant).
2397
+ */
2398
+ shared?: boolean;
2399
+
2400
+ /**
2401
+ * The maximum number of milliseconds to wait for the webhook to respond before the
2402
+ * tool call is aborted. Set this at the tool level, as a sibling of `type` — a
2403
+ * `timeout_ms` nested inside the `webhook` object is stored but not applied, and
2404
+ * the tool runs at this default instead. Applies when `webhook.async` is false.
2405
+ */
2406
+ timeout_ms?: number;
2034
2407
  }
2035
2408
 
2036
2409
  export namespace InferenceEmbeddingWebhookToolParams {
@@ -2142,12 +2515,6 @@ export namespace InferenceEmbeddingWebhookToolParams {
2142
2515
  * dot-notation path to the value in the response body.
2143
2516
  */
2144
2517
  store_fields_as_variables?: Array<Webhook.StoreFieldsAsVariable>;
2145
-
2146
- /**
2147
- * The maximum number of milliseconds to wait for the webhook to respond. Only
2148
- * applicable when async is false.
2149
- */
2150
- timeout_ms?: number;
2151
2518
  }
2152
2519
 
2153
2520
  export namespace Webhook {
@@ -2379,10 +2746,10 @@ export type ObservabilityStatus = 'enabled' | 'disabled';
2379
2746
  /**
2380
2747
  * Configuration for post-conversation processing. When enabled, the assistant
2381
2748
  * receives one additional LLM turn after the conversation ends, allowing it to
2382
- * execute tool calls such as logging to a CRM or sending a summary. The assistant
2383
- * can execute multiple parallel or sequential tools during this phase.
2384
- * Telephony-control tools (e.g. hangup, transfer) are unavailable
2385
- * post-conversation. Beta feature.
2749
+ * execute final tool calls such as sending a summary or updating a record via
2750
+ * webhook or function tools. Integration and MCP server tools are not available
2751
+ * post-conversation; call-control tools (e.g. hangup, transfer) are also
2752
+ * unavailable. Beta feature.
2386
2753
  */
2387
2754
  export interface PostConversationSettings {
2388
2755
  /**
@@ -2396,10 +2763,10 @@ export interface PostConversationSettings {
2396
2763
  /**
2397
2764
  * Configuration for post-conversation processing. When enabled, the assistant
2398
2765
  * receives one additional LLM turn after the conversation ends, allowing it to
2399
- * execute tool calls such as logging to a CRM or sending a summary. The assistant
2400
- * can execute multiple parallel or sequential tools during this phase.
2401
- * Telephony-control tools (e.g. hangup, transfer) are unavailable
2402
- * post-conversation. Beta feature.
2766
+ * execute final tool calls such as sending a summary or updating a record via
2767
+ * webhook or function tools. Integration and MCP server tools are not available
2768
+ * post-conversation; call-control tools (e.g. hangup, transfer) are also
2769
+ * unavailable. Beta feature.
2403
2770
  */
2404
2771
  export interface PostConversationSettingsReq {
2405
2772
  /**
@@ -2420,6 +2787,22 @@ export interface PrivacySettings {
2420
2787
  * force regardless of your selection here.
2421
2788
  */
2422
2789
  data_retention?: boolean;
2790
+
2791
+ /**
2792
+ * Requires every model call made for a web chat turn to be received and served
2793
+ * inside your organization's data-locality region, rather than only stored there.
2794
+ * Applies to web chat only — voice and messaging assistants are unaffected.
2795
+ * Enabling it requires a data-locality region with in-region inference (USA, EU,
2796
+ * AUS, UAE; see
2797
+ * [Inference regions](https://developers.telnyx.com/docs/inference/models/regions))
2798
+ * and Telnyx-hosted models for the assistant, its fallback, and any
2799
+ * conversation-flow node that overrides the model; the request is rejected
2800
+ * otherwise. Once enabled, send chat requests to your region's API hostname: a
2801
+ * request entering the platform in another region is rejected rather than
2802
+ * forwarded, because forwarding it would already have moved the content across the
2803
+ * border. Defaults to false.
2804
+ */
2805
+ in_transit_data_locality?: boolean;
2423
2806
  }
2424
2807
 
2425
2808
  /**
@@ -2435,6 +2818,17 @@ export interface RetrievalTool {
2435
2818
  retrieval: ChatAPI.BucketIDs;
2436
2819
 
2437
2820
  type: 'retrieval';
2821
+
2822
+ /**
2823
+ * Whether this tool comes from the shared Tools Library. Responses merge shared
2824
+ * tools into `tools` with `shared: true`; inline tools carry `shared: false`.
2825
+ * Read-only: set by the server, not accepted in requests. When updating an
2826
+ * assistant, omit `shared: true` tools from the request `tools` array and manage
2827
+ * them through `tool_ids` instead — re-sending their definitions creates an inline
2828
+ * duplicate (rejected with error code 10015 when the type allows only one instance
2829
+ * per assistant).
2830
+ */
2831
+ shared?: boolean;
2438
2832
  }
2439
2833
 
2440
2834
  /**
@@ -2563,14 +2957,17 @@ export interface TelephonySettings {
2563
2957
  fallback_destination?: string;
2564
2958
 
2565
2959
  /**
2566
- * The noise suppression engine to use. Use 'disabled' to turn off noise
2567
- * suppression.
2960
+ * The noise suppression engine to use. 'aicoustics' is STT-optimized and
2961
+ * recommended for AI assistants (configure through noise_suppression_config). Use
2962
+ * 'disabled' to turn off noise suppression.
2568
2963
  */
2569
- noise_suppression?: 'krisp' | 'deepfilternet' | 'disabled';
2964
+ noise_suppression?: 'aicoustics' | 'krisp' | 'deepfilternet' | 'disabled';
2570
2965
 
2571
2966
  /**
2572
- * Configuration for noise suppression. Only applicable when noise_suppression is
2573
- * 'deepfilternet'.
2967
+ * Configuration for noise suppression. Applicable fields depend on the engine:
2968
+ * 'attenuation_limit' and 'mode' only when noise_suppression is 'deepfilternet';
2969
+ * 'family', 'size' and 'enhancement_level' only when noise_suppression is
2970
+ * 'aicoustics'.
2574
2971
  */
2575
2972
  noise_suppression_config?: TelephonySettings.NoiseSuppressionConfig;
2576
2973
 
@@ -2634,19 +3031,42 @@ export interface TelephonySettings {
2634
3031
 
2635
3032
  export namespace TelephonySettings {
2636
3033
  /**
2637
- * Configuration for noise suppression. Only applicable when noise_suppression is
2638
- * 'deepfilternet'.
3034
+ * Configuration for noise suppression. Applicable fields depend on the engine:
3035
+ * 'attenuation_limit' and 'mode' only when noise_suppression is 'deepfilternet';
3036
+ * 'family', 'size' and 'enhancement_level' only when noise_suppression is
3037
+ * 'aicoustics'.
2639
3038
  */
2640
3039
  export interface NoiseSuppressionConfig {
2641
3040
  /**
2642
- * Attenuation limit for noise suppression. Range: 0-100.
3041
+ * Attenuation limit for noise suppression. Range: 0-100. Only applicable when
3042
+ * noise_suppression is 'deepfilternet'.
2643
3043
  */
2644
3044
  attenuation_limit?: number;
2645
3045
 
2646
3046
  /**
2647
- * Mode for noise suppression configuration.
3047
+ * AiCoustics enhancement intensity. Range: 0-1. Only applicable when
3048
+ * noise_suppression is 'aicoustics'.
3049
+ */
3050
+ enhancement_level?: number;
3051
+
3052
+ /**
3053
+ * AiCoustics model family optimized for Voice AI and STT. Only applicable when
3054
+ * noise_suppression is 'aicoustics'.
3055
+ */
3056
+ family?: 'quail';
3057
+
3058
+ /**
3059
+ * Mode for noise suppression configuration. Only applicable when noise_suppression
3060
+ * is 'deepfilternet'.
2648
3061
  */
2649
3062
  mode?: 'advanced';
3063
+
3064
+ /**
3065
+ * AiCoustics model size. 'vf' tracks the latest model release; 'vf_2_0_l' is
3066
+ * pinned to version 2.0 for consistent, predictable behavior. Only applicable when
3067
+ * noise_suppression is 'aicoustics'.
3068
+ */
3069
+ size?: 'vf' | 'vf_2_0_l';
2650
3070
  }
2651
3071
 
2652
3072
  /**
@@ -2882,14 +3302,17 @@ export interface TranscriptionSettings {
2882
3302
  * - `deepgram/nova-3` is multilingual with automatic language detection.
2883
3303
  * - `deepgram/nova-2` is Deepgram's previous-generation multilingual model.
2884
3304
  * - `azure/fast` is a multilingual Azure transcription model.
2885
- * - `assemblyai/universal-streaming` is a multilingual streaming model with
2886
- * configurable turn detection.
3305
+ * - `assemblyai/universal-3-5-pro` is a multilingual streaming model with
3306
+ * configurable turn detection. The legacy alias `assemblyai/universal-streaming`
3307
+ * is still accepted and resolves to the same model.
2887
3308
  * - `xai/grok-stt` is a multilingual Grok STT model.
2888
3309
  * - `soniox/stt-rt-v4` and `soniox/stt-rt-v5` are multilingual streaming models
2889
3310
  * with automatic language detection, configurable endpointing, term biasing
2890
3311
  * (`context`), and `language_hints`.
2891
3312
  * - `nvidia/parakeet-v3` is a multilingual transcription model with automatic
2892
3313
  * language detection.
3314
+ * - `omi-health/omi-med-stt-v1` is an English-only medical transcription model
3315
+ * (Parakeet-based).
2893
3316
  * - `humain/realtime` is a streaming model with native Arabic and Arabic/English
2894
3317
  * code-switching support.
2895
3318
  * - `reson8/turns` is a turn-based streaming model covering 10 European languages
@@ -2901,11 +3324,13 @@ export interface TranscriptionSettings {
2901
3324
  | 'deepgram/nova-3'
2902
3325
  | 'deepgram/nova-2'
2903
3326
  | 'azure/fast'
3327
+ | 'assemblyai/universal-3-5-pro'
2904
3328
  | 'assemblyai/universal-streaming'
2905
3329
  | 'xai/grok-stt'
2906
3330
  | 'soniox/stt-rt-v4'
2907
3331
  | 'soniox/stt-rt-v5'
2908
3332
  | 'nvidia/parakeet-v3'
3333
+ | 'omi-health/omi-med-stt-v1'
2909
3334
  | 'humain/realtime'
2910
3335
  | 'reson8/turns'
2911
3336
  | 'cohere/ar-stt'
@@ -2948,9 +3373,9 @@ export interface TranscriptionSettingsConfig {
2948
3373
  enable_endpoint_detection?: boolean;
2949
3374
 
2950
3375
  /**
2951
- * Available only for assemblyai/universal-streaming. Confidence level required to
2952
- * trigger an end of turn. Higher values require more certainty before ending a
2953
- * turn.
3376
+ * Available only for assemblyai/universal-3-5-pro (and its legacy alias
3377
+ * assemblyai/universal-streaming). Confidence level required to trigger an end of
3378
+ * turn. Higher values require more certainty before ending a turn.
2954
3379
  */
2955
3380
  end_of_turn_confidence_threshold?: number;
2956
3381
 
@@ -2998,15 +3423,16 @@ export interface TranscriptionSettingsConfig {
2998
3423
  max_endpoint_delay_ms?: number;
2999
3424
 
3000
3425
  /**
3001
- * Available only for assemblyai/universal-streaming. Maximum duration of silence
3002
- * in milliseconds before forcing an end of turn.
3426
+ * Available only for assemblyai/universal-3-5-pro (and its legacy alias
3427
+ * assemblyai/universal-streaming). Maximum duration of silence in milliseconds
3428
+ * before forcing an end of turn.
3003
3429
  */
3004
3430
  max_turn_silence?: number;
3005
3431
 
3006
3432
  /**
3007
- * Available only for assemblyai/universal-streaming. Minimum duration of silence
3008
- * in milliseconds before a turn can end. Must be less than or equal to
3009
- * max_turn_silence.
3433
+ * Available only for assemblyai/universal-3-5-pro (and its legacy alias
3434
+ * assemblyai/universal-streaming). Minimum duration of silence in milliseconds
3435
+ * before a turn can end. Must be less than or equal to max_turn_silence.
3010
3436
  */
3011
3437
  min_turn_silence?: number;
3012
3438
 
@@ -3229,6 +3655,14 @@ export interface WebhookTool {
3229
3655
  type: 'webhook';
3230
3656
 
3231
3657
  webhook: WebhookTool.Webhook;
3658
+
3659
+ /**
3660
+ * The maximum number of milliseconds to wait for the webhook to respond before the
3661
+ * tool call is aborted. Set this at the tool level, as a sibling of `type` — a
3662
+ * `timeout_ms` nested inside the `webhook` object is not applied, and the tool
3663
+ * runs at this default instead.
3664
+ */
3665
+ timeout_ms?: number;
3232
3666
  }
3233
3667
 
3234
3668
  export namespace WebhookTool {
@@ -3597,10 +4031,10 @@ export interface AssistantCreateParams {
3597
4031
  /**
3598
4032
  * Body param: Configuration for post-conversation processing. When enabled, the
3599
4033
  * assistant receives one additional LLM turn after the conversation ends, allowing
3600
- * it to execute tool calls such as logging to a CRM or sending a summary. The
3601
- * assistant can execute multiple parallel or sequential tools during this phase.
3602
- * Telephony-control tools (e.g. hangup, transfer) are unavailable
3603
- * post-conversation. Beta feature.
4034
+ * it to execute final tool calls such as sending a summary or updating a record
4035
+ * via webhook or function tools. Integration and MCP server tools are not
4036
+ * available post-conversation; call-control tools (e.g. hangup, transfer) are also
4037
+ * unavailable. Beta feature.
3604
4038
  */
3605
4039
  post_conversation_settings?: PostConversationSettingsReq;
3606
4040
 
@@ -3641,7 +4075,7 @@ export interface AssistantCreateParams {
3641
4075
  /**
3642
4076
  * Body param
3643
4077
  */
3644
- voice_settings?: VoiceSettings;
4078
+ voice_settings?: InferenceEmbeddingVoiceSettings;
3645
4079
 
3646
4080
  /**
3647
4081
  * Body param: Configuration settings for the assistant's web widget.
@@ -3841,10 +4275,10 @@ export interface AssistantUpdateParams {
3841
4275
  /**
3842
4276
  * Configuration for post-conversation processing. When enabled, the assistant
3843
4277
  * receives one additional LLM turn after the conversation ends, allowing it to
3844
- * execute tool calls such as logging to a CRM or sending a summary. The assistant
3845
- * can execute multiple parallel or sequential tools during this phase.
3846
- * Telephony-control tools (e.g. hangup, transfer) are unavailable
3847
- * post-conversation. Beta feature.
4278
+ * execute final tool calls such as sending a summary or updating a record via
4279
+ * webhook or function tools. Integration and MCP server tools are not available
4280
+ * post-conversation; call-control tools (e.g. hangup, transfer) are also
4281
+ * unavailable. Beta feature.
3848
4282
  */
3849
4283
  post_conversation_settings?: PostConversationSettingsReq;
3850
4284
 
@@ -3866,14 +4300,25 @@ export interface AssistantUpdateParams {
3866
4300
 
3867
4301
  /**
3868
4302
  * IDs of shared tools to attach to the assistant. New integrations should prefer
3869
- * `tool_ids` over inline `tools`.
4303
+ * `tool_ids` over inline `tools`. On update, a sent `tool_ids` array fully
4304
+ * replaces the assistant's attached shared tools; omit the field to leave them
4305
+ * unchanged. Single-instance tool types are counted across inline `tools` and
4306
+ * `tool_ids` combined, so attaching a shared tool of such a type when an instance
4307
+ * already exists returns HTTP 400 with error code 10015.
3870
4308
  */
3871
4309
  tool_ids?: Array<string>;
3872
4310
 
3873
4311
  /**
3874
4312
  * Deprecated for new integrations. Inline tool definitions available to the
3875
4313
  * assistant. Prefer `tool_ids` to attach shared tools created with the AI Tools
3876
- * endpoints.
4314
+ * endpoints. On update, a sent `tools` array fully replaces the assistant's inline
4315
+ * tools; omit the field to leave the inline tools unchanged. Each tool type except
4316
+ * `function`, `webhook`, and `client_side_tool` allows at most one instance per
4317
+ * assistant, counted across inline `tools` and shared `tool_ids` combined —
4318
+ * sending a duplicate of such a type returns HTTP 400 with error code 10015.
4319
+ * Responses merge shared tools into `tools` with `shared: true`; when updating,
4320
+ * omit those tools from the `tools` array and manage them through `tool_ids`
4321
+ * instead.
3877
4322
  */
3878
4323
  tools?: Array<AssistantTool>;
3879
4324
 
@@ -3884,7 +4329,7 @@ export interface AssistantUpdateParams {
3884
4329
  */
3885
4330
  version_name?: string;
3886
4331
 
3887
- voice_settings?: VoiceSettings;
4332
+ voice_settings?: InferenceEmbeddingVoiceSettings;
3888
4333
 
3889
4334
  /**
3890
4335
  * Configuration settings for the assistant's web widget.
@@ -4008,6 +4453,7 @@ export declare namespace Assistants {
4008
4453
  type ImportMetadata as ImportMetadata,
4009
4454
  type InferenceEmbedding as InferenceEmbedding,
4010
4455
  type InferenceEmbeddingInterruptionSettings as InferenceEmbeddingInterruptionSettings,
4456
+ type InferenceEmbeddingVoiceSettings as InferenceEmbeddingVoiceSettings,
4011
4457
  type InferenceEmbeddingWebhookToolParams as InferenceEmbeddingWebhookToolParams,
4012
4458
  type InsightSettings as InsightSettings,
4013
4459
  type MessagingSettings as MessagingSettings,