telnyx 7.21.0 → 7.23.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 (476) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/client.d.mts +39 -6
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +39 -6
  5. package/client.d.ts.map +1 -1
  6. package/client.js +33 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +33 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/ai/ai.d.mts +8 -4
  12. package/resources/ai/ai.d.mts.map +1 -1
  13. package/resources/ai/ai.d.ts +8 -4
  14. package/resources/ai/ai.d.ts.map +1 -1
  15. package/resources/ai/ai.js +4 -0
  16. package/resources/ai/ai.js.map +1 -1
  17. package/resources/ai/ai.mjs +5 -1
  18. package/resources/ai/ai.mjs.map +1 -1
  19. package/resources/ai/assistants/assistants.d.mts +408 -47
  20. package/resources/ai/assistants/assistants.d.mts.map +1 -1
  21. package/resources/ai/assistants/assistants.d.ts +408 -47
  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 +59 -12
  32. package/resources/ai/assistants/versions.d.mts.map +1 -1
  33. package/resources/ai/assistants/versions.d.ts +59 -12
  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 +59 -28
  42. package/resources/ai/chat.d.mts.map +1 -1
  43. package/resources/ai/chat.d.ts +59 -28
  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/index.d.mts +3 -2
  48. package/resources/ai/index.d.mts.map +1 -1
  49. package/resources/ai/index.d.ts +3 -2
  50. package/resources/ai/index.d.ts.map +1 -1
  51. package/resources/ai/index.js +3 -1
  52. package/resources/ai/index.js.map +1 -1
  53. package/resources/ai/index.mjs +2 -1
  54. package/resources/ai/index.mjs.map +1 -1
  55. package/resources/ai/openai/chat.d.mts +67 -29
  56. package/resources/ai/openai/chat.d.mts.map +1 -1
  57. package/resources/ai/openai/chat.d.ts +67 -29
  58. package/resources/ai/openai/chat.d.ts.map +1 -1
  59. package/resources/ai/openai/chat.js.map +1 -1
  60. package/resources/ai/openai/chat.mjs.map +1 -1
  61. package/resources/ai/openai/index.d.mts +1 -1
  62. package/resources/ai/openai/index.d.mts.map +1 -1
  63. package/resources/ai/openai/index.d.ts +1 -1
  64. package/resources/ai/openai/index.d.ts.map +1 -1
  65. package/resources/ai/openai/index.js.map +1 -1
  66. package/resources/ai/openai/index.mjs +1 -1
  67. package/resources/ai/openai/index.mjs.map +1 -1
  68. package/resources/ai/openai/openai.d.mts +2 -2
  69. package/resources/ai/openai/openai.d.mts.map +1 -1
  70. package/resources/ai/openai/openai.d.ts +2 -2
  71. package/resources/ai/openai/openai.d.ts.map +1 -1
  72. package/resources/ai/openai/openai.js.map +1 -1
  73. package/resources/ai/openai/openai.mjs.map +1 -1
  74. package/resources/ai/typesafe/index.d.mts +3 -0
  75. package/resources/ai/typesafe/index.d.mts.map +1 -0
  76. package/resources/ai/typesafe/index.d.ts +3 -0
  77. package/resources/ai/typesafe/index.d.ts.map +1 -0
  78. package/resources/ai/typesafe/index.js +9 -0
  79. package/resources/ai/typesafe/index.js.map +1 -0
  80. package/resources/ai/typesafe/index.mjs +4 -0
  81. package/resources/ai/typesafe/index.mjs.map +1 -0
  82. package/resources/ai/typesafe/typesafe.d.mts +10 -0
  83. package/resources/ai/typesafe/typesafe.d.mts.map +1 -0
  84. package/resources/ai/typesafe/typesafe.d.ts +10 -0
  85. package/resources/ai/typesafe/typesafe.d.ts.map +1 -0
  86. package/resources/ai/typesafe/typesafe.js +17 -0
  87. package/resources/ai/typesafe/typesafe.js.map +1 -0
  88. package/resources/ai/typesafe/typesafe.mjs +12 -0
  89. package/resources/ai/typesafe/typesafe.mjs.map +1 -0
  90. package/resources/ai/typesafe/v1.d.mts +274 -0
  91. package/resources/ai/typesafe/v1.d.mts.map +1 -0
  92. package/resources/ai/typesafe/v1.d.ts +274 -0
  93. package/resources/ai/typesafe/v1.d.ts.map +1 -0
  94. package/resources/ai/typesafe/v1.js +67 -0
  95. package/resources/ai/typesafe/v1.js.map +1 -0
  96. package/resources/ai/typesafe/v1.mjs +63 -0
  97. package/resources/ai/typesafe/v1.mjs.map +1 -0
  98. package/resources/ai/typesafe.d.mts +2 -0
  99. package/resources/ai/typesafe.d.mts.map +1 -0
  100. package/resources/ai/typesafe.d.ts +2 -0
  101. package/resources/ai/typesafe.d.ts.map +1 -0
  102. package/resources/ai/typesafe.js +6 -0
  103. package/resources/ai/typesafe.js.map +1 -0
  104. package/resources/ai/typesafe.mjs +3 -0
  105. package/resources/ai/typesafe.mjs.map +1 -0
  106. package/resources/bot-challenge.d.mts +80 -0
  107. package/resources/bot-challenge.d.mts.map +1 -0
  108. package/resources/bot-challenge.d.ts +80 -0
  109. package/resources/bot-challenge.d.ts.map +1 -0
  110. package/resources/bot-challenge.js +35 -0
  111. package/resources/bot-challenge.js.map +1 -0
  112. package/resources/bot-challenge.mjs +31 -0
  113. package/resources/bot-challenge.mjs.map +1 -0
  114. package/resources/bot-sessions.d.mts +49 -0
  115. package/resources/bot-sessions.d.mts.map +1 -0
  116. package/resources/bot-sessions.d.ts +49 -0
  117. package/resources/bot-sessions.d.ts.map +1 -0
  118. package/resources/bot-sessions.js +28 -0
  119. package/resources/bot-sessions.js.map +1 -0
  120. package/resources/bot-sessions.mjs +24 -0
  121. package/resources/bot-sessions.mjs.map +1 -0
  122. package/resources/bot-signup.d.mts +114 -0
  123. package/resources/bot-signup.d.mts.map +1 -0
  124. package/resources/bot-signup.d.ts +114 -0
  125. package/resources/bot-signup.d.ts.map +1 -0
  126. package/resources/bot-signup.js +63 -0
  127. package/resources/bot-signup.js.map +1 -0
  128. package/resources/bot-signup.mjs +59 -0
  129. package/resources/bot-signup.mjs.map +1 -0
  130. package/resources/calls/actions.d.mts +57 -11
  131. package/resources/calls/actions.d.mts.map +1 -1
  132. package/resources/calls/actions.d.ts +57 -11
  133. package/resources/calls/actions.d.ts.map +1 -1
  134. package/resources/calls/calls.d.mts +45 -5
  135. package/resources/calls/calls.d.mts.map +1 -1
  136. package/resources/calls/calls.d.ts +45 -5
  137. package/resources/calls/calls.d.ts.map +1 -1
  138. package/resources/calls/calls.js.map +1 -1
  139. package/resources/calls/calls.mjs.map +1 -1
  140. package/resources/compute/compute.d.mts +10 -0
  141. package/resources/compute/compute.d.mts.map +1 -0
  142. package/resources/compute/compute.d.ts +10 -0
  143. package/resources/compute/compute.d.ts.map +1 -0
  144. package/resources/compute/compute.js +17 -0
  145. package/resources/compute/compute.js.map +1 -0
  146. package/resources/compute/compute.mjs +12 -0
  147. package/resources/compute/compute.mjs.map +1 -0
  148. package/resources/compute/funcs/export.d.mts +121 -0
  149. package/resources/compute/funcs/export.d.mts.map +1 -0
  150. package/resources/compute/funcs/export.d.ts +121 -0
  151. package/resources/compute/funcs/export.d.ts.map +1 -0
  152. package/resources/compute/funcs/export.js +68 -0
  153. package/resources/compute/funcs/export.js.map +1 -0
  154. package/resources/compute/funcs/export.mjs +64 -0
  155. package/resources/compute/funcs/export.mjs.map +1 -0
  156. package/resources/compute/funcs/funcs.d.mts +214 -0
  157. package/resources/compute/funcs/funcs.d.mts.map +1 -0
  158. package/resources/compute/funcs/funcs.d.ts +214 -0
  159. package/resources/compute/funcs/funcs.d.ts.map +1 -0
  160. package/resources/compute/funcs/funcs.js +80 -0
  161. package/resources/compute/funcs/funcs.js.map +1 -0
  162. package/resources/compute/funcs/funcs.mjs +75 -0
  163. package/resources/compute/funcs/funcs.mjs.map +1 -0
  164. package/resources/compute/funcs/index.d.mts +3 -0
  165. package/resources/compute/funcs/index.d.mts.map +1 -0
  166. package/resources/compute/funcs/index.d.ts +3 -0
  167. package/resources/compute/funcs/index.d.ts.map +1 -0
  168. package/resources/compute/funcs/index.js +9 -0
  169. package/resources/compute/funcs/index.js.map +1 -0
  170. package/resources/compute/funcs/index.mjs +4 -0
  171. package/resources/compute/funcs/index.mjs.map +1 -0
  172. package/resources/compute/funcs.d.mts +2 -0
  173. package/resources/compute/funcs.d.mts.map +1 -0
  174. package/resources/compute/funcs.d.ts +2 -0
  175. package/resources/compute/funcs.d.ts.map +1 -0
  176. package/resources/compute/funcs.js +6 -0
  177. package/resources/compute/funcs.js.map +1 -0
  178. package/resources/compute/funcs.mjs +3 -0
  179. package/resources/compute/funcs.mjs.map +1 -0
  180. package/resources/compute/index.d.mts +3 -0
  181. package/resources/compute/index.d.mts.map +1 -0
  182. package/resources/compute/index.d.ts +3 -0
  183. package/resources/compute/index.d.ts.map +1 -0
  184. package/resources/compute/index.js +9 -0
  185. package/resources/compute/index.js.map +1 -0
  186. package/resources/compute/index.mjs +4 -0
  187. package/resources/compute/index.mjs.map +1 -0
  188. package/resources/compute.d.mts +2 -0
  189. package/resources/compute.d.mts.map +1 -0
  190. package/resources/compute.d.ts +2 -0
  191. package/resources/compute.d.ts.map +1 -0
  192. package/resources/compute.js +6 -0
  193. package/resources/compute.js.map +1 -0
  194. package/resources/compute.mjs +3 -0
  195. package/resources/compute.mjs.map +1 -0
  196. package/resources/connections.d.mts +109 -1
  197. package/resources/connections.d.mts.map +1 -1
  198. package/resources/connections.d.ts +109 -1
  199. package/resources/connections.d.ts.map +1 -1
  200. package/resources/connections.js +8 -0
  201. package/resources/connections.js.map +1 -1
  202. package/resources/connections.mjs +8 -0
  203. package/resources/connections.mjs.map +1 -1
  204. package/resources/credential-connections/credential-connections.d.mts +4 -1
  205. package/resources/credential-connections/credential-connections.d.mts.map +1 -1
  206. package/resources/credential-connections/credential-connections.d.ts +4 -1
  207. package/resources/credential-connections/credential-connections.d.ts.map +1 -1
  208. package/resources/credential-connections/credential-connections.js.map +1 -1
  209. package/resources/credential-connections/credential-connections.mjs.map +1 -1
  210. package/resources/detail-records.d.mts +18 -1
  211. package/resources/detail-records.d.mts.map +1 -1
  212. package/resources/detail-records.d.ts +18 -1
  213. package/resources/detail-records.d.ts.map +1 -1
  214. package/resources/email-inboxes/drafts.d.mts +7 -0
  215. package/resources/email-inboxes/drafts.d.mts.map +1 -1
  216. package/resources/email-inboxes/drafts.d.ts +7 -0
  217. package/resources/email-inboxes/drafts.d.ts.map +1 -1
  218. package/resources/email-messages/email-messages.d.mts +9 -3
  219. package/resources/email-messages/email-messages.d.mts.map +1 -1
  220. package/resources/email-messages/email-messages.d.ts +9 -3
  221. package/resources/email-messages/email-messages.d.ts.map +1 -1
  222. package/resources/email-messages/email-messages.js +5 -1
  223. package/resources/email-messages/email-messages.js.map +1 -1
  224. package/resources/email-messages/email-messages.mjs +5 -1
  225. package/resources/email-messages/email-messages.mjs.map +1 -1
  226. package/resources/fqdn-connections/fqdn-authentication.d.mts +4 -1
  227. package/resources/fqdn-connections/fqdn-authentication.d.mts.map +1 -1
  228. package/resources/fqdn-connections/fqdn-authentication.d.ts +4 -1
  229. package/resources/fqdn-connections/fqdn-authentication.d.ts.map +1 -1
  230. package/resources/fqdn-connections/fqdn-connections.d.mts +4 -1
  231. package/resources/fqdn-connections/fqdn-connections.d.mts.map +1 -1
  232. package/resources/fqdn-connections/fqdn-connections.d.ts +4 -1
  233. package/resources/fqdn-connections/fqdn-connections.d.ts.map +1 -1
  234. package/resources/fqdn-connections/fqdn-connections.js.map +1 -1
  235. package/resources/fqdn-connections/fqdn-connections.mjs.map +1 -1
  236. package/resources/index.d.mts +9 -3
  237. package/resources/index.d.mts.map +1 -1
  238. package/resources/index.d.ts +9 -3
  239. package/resources/index.d.ts.map +1 -1
  240. package/resources/index.js +16 -4
  241. package/resources/index.js.map +1 -1
  242. package/resources/index.mjs +6 -0
  243. package/resources/index.mjs.map +1 -1
  244. package/resources/machine-payments.d.mts +142 -0
  245. package/resources/machine-payments.d.mts.map +1 -0
  246. package/resources/machine-payments.d.ts +142 -0
  247. package/resources/machine-payments.d.ts.map +1 -0
  248. package/resources/machine-payments.js +56 -0
  249. package/resources/machine-payments.js.map +1 -0
  250. package/resources/machine-payments.mjs +52 -0
  251. package/resources/machine-payments.mjs.map +1 -0
  252. package/resources/messages/messages.d.mts +207 -22
  253. package/resources/messages/messages.d.mts.map +1 -1
  254. package/resources/messages/messages.d.ts +207 -22
  255. package/resources/messages/messages.d.ts.map +1 -1
  256. package/resources/messages/messages.js.map +1 -1
  257. package/resources/messages/messages.mjs.map +1 -1
  258. package/resources/messaging-profiles/index.d.mts +1 -1
  259. package/resources/messaging-profiles/index.d.mts.map +1 -1
  260. package/resources/messaging-profiles/index.d.ts +1 -1
  261. package/resources/messaging-profiles/index.d.ts.map +1 -1
  262. package/resources/messaging-profiles/index.js.map +1 -1
  263. package/resources/messaging-profiles/index.mjs.map +1 -1
  264. package/resources/messaging-profiles/messaging-profiles.d.mts +34 -1
  265. package/resources/messaging-profiles/messaging-profiles.d.mts.map +1 -1
  266. package/resources/messaging-profiles/messaging-profiles.d.ts +34 -1
  267. package/resources/messaging-profiles/messaging-profiles.d.ts.map +1 -1
  268. package/resources/messaging-profiles/messaging-profiles.js.map +1 -1
  269. package/resources/messaging-profiles/messaging-profiles.mjs.map +1 -1
  270. package/resources/noise-suppression-engines.d.mts +42 -0
  271. package/resources/noise-suppression-engines.d.mts.map +1 -0
  272. package/resources/noise-suppression-engines.d.ts +42 -0
  273. package/resources/noise-suppression-engines.d.ts.map +1 -0
  274. package/resources/noise-suppression-engines.js +21 -0
  275. package/resources/noise-suppression-engines.js.map +1 -0
  276. package/resources/noise-suppression-engines.mjs +17 -0
  277. package/resources/noise-suppression-engines.mjs.map +1 -0
  278. package/resources/speech-to-text/speech-to-text.d.mts +1 -1
  279. package/resources/speech-to-text/speech-to-text.d.mts.map +1 -1
  280. package/resources/speech-to-text/speech-to-text.d.ts +1 -1
  281. package/resources/speech-to-text/speech-to-text.d.ts.map +1 -1
  282. package/resources/texml/accounts/calls/calls.d.mts +117 -0
  283. package/resources/texml/accounts/calls/calls.d.mts.map +1 -1
  284. package/resources/texml/accounts/calls/calls.d.ts +117 -0
  285. package/resources/texml/accounts/calls/calls.d.ts.map +1 -1
  286. package/resources/texml/accounts/calls/calls.js.map +1 -1
  287. package/resources/texml/accounts/calls/calls.mjs.map +1 -1
  288. package/resources/texml/accounts/conferences/participants.d.mts +39 -0
  289. package/resources/texml/accounts/conferences/participants.d.mts.map +1 -1
  290. package/resources/texml/accounts/conferences/participants.d.ts +39 -0
  291. package/resources/texml/accounts/conferences/participants.d.ts.map +1 -1
  292. package/resources/texml/calls.d.mts +71 -0
  293. package/resources/texml/calls.d.mts.map +1 -0
  294. package/resources/texml/calls.d.ts +71 -0
  295. package/resources/texml/calls.d.ts.map +1 -0
  296. package/resources/texml/calls.js +33 -0
  297. package/resources/texml/calls.js.map +1 -0
  298. package/resources/texml/calls.mjs +29 -0
  299. package/resources/texml/calls.mjs.map +1 -0
  300. package/resources/texml/index.d.mts +1 -0
  301. package/resources/texml/index.d.mts.map +1 -1
  302. package/resources/texml/index.d.ts +1 -0
  303. package/resources/texml/index.d.ts.map +1 -1
  304. package/resources/texml/index.js +3 -1
  305. package/resources/texml/index.js.map +1 -1
  306. package/resources/texml/index.mjs +1 -0
  307. package/resources/texml/index.mjs.map +1 -1
  308. package/resources/texml/texml.d.mts +43 -0
  309. package/resources/texml/texml.d.mts.map +1 -1
  310. package/resources/texml/texml.d.ts +43 -0
  311. package/resources/texml/texml.d.ts.map +1 -1
  312. package/resources/texml/texml.js +4 -0
  313. package/resources/texml/texml.js.map +1 -1
  314. package/resources/texml/texml.mjs +4 -0
  315. package/resources/texml/texml.mjs.map +1 -1
  316. package/resources/uac-connections/uac-connections.d.mts +9 -2
  317. package/resources/uac-connections/uac-connections.d.mts.map +1 -1
  318. package/resources/uac-connections/uac-connections.d.ts +9 -2
  319. package/resources/uac-connections/uac-connections.d.ts.map +1 -1
  320. package/resources/uac-connections/uac-connections.js.map +1 -1
  321. package/resources/uac-connections/uac-connections.mjs.map +1 -1
  322. package/resources/voice-clones.d.mts +6 -4
  323. package/resources/voice-clones.d.mts.map +1 -1
  324. package/resources/voice-clones.d.ts +6 -4
  325. package/resources/voice-clones.d.ts.map +1 -1
  326. package/resources/voice-clones.js +4 -2
  327. package/resources/voice-clones.js.map +1 -1
  328. package/resources/voice-clones.mjs +4 -2
  329. package/resources/voice-clones.mjs.map +1 -1
  330. package/resources/webhooks.d.mts +154 -51
  331. package/resources/webhooks.d.mts.map +1 -1
  332. package/resources/webhooks.d.ts +154 -51
  333. package/resources/webhooks.d.ts.map +1 -1
  334. package/resources/whatsapp/business-accounts/phone-numbers.d.mts +33 -0
  335. package/resources/whatsapp/business-accounts/phone-numbers.d.mts.map +1 -1
  336. package/resources/whatsapp/business-accounts/phone-numbers.d.ts +33 -0
  337. package/resources/whatsapp/business-accounts/phone-numbers.d.ts.map +1 -1
  338. package/resources/whatsapp/index.d.mts +1 -1
  339. package/resources/whatsapp/index.d.mts.map +1 -1
  340. package/resources/whatsapp/index.d.ts +1 -1
  341. package/resources/whatsapp/index.d.ts.map +1 -1
  342. package/resources/whatsapp/index.js.map +1 -1
  343. package/resources/whatsapp/index.mjs.map +1 -1
  344. package/resources/whatsapp/phone-numbers/index.d.mts +1 -1
  345. package/resources/whatsapp/phone-numbers/index.d.mts.map +1 -1
  346. package/resources/whatsapp/phone-numbers/index.d.ts +1 -1
  347. package/resources/whatsapp/phone-numbers/index.d.ts.map +1 -1
  348. package/resources/whatsapp/phone-numbers/index.js.map +1 -1
  349. package/resources/whatsapp/phone-numbers/index.mjs.map +1 -1
  350. package/resources/whatsapp/phone-numbers/phone-numbers.d.mts +147 -1
  351. package/resources/whatsapp/phone-numbers/phone-numbers.d.mts.map +1 -1
  352. package/resources/whatsapp/phone-numbers/phone-numbers.d.ts +147 -1
  353. package/resources/whatsapp/phone-numbers/phone-numbers.d.ts.map +1 -1
  354. package/resources/whatsapp/phone-numbers/phone-numbers.js +16 -0
  355. package/resources/whatsapp/phone-numbers/phone-numbers.js.map +1 -1
  356. package/resources/whatsapp/phone-numbers/phone-numbers.mjs +16 -0
  357. package/resources/whatsapp/phone-numbers/phone-numbers.mjs.map +1 -1
  358. package/resources/whatsapp/whatsapp.d.mts +2 -2
  359. package/resources/whatsapp/whatsapp.d.mts.map +1 -1
  360. package/resources/whatsapp/whatsapp.d.ts +2 -2
  361. package/resources/whatsapp/whatsapp.d.ts.map +1 -1
  362. package/resources/whatsapp/whatsapp.js.map +1 -1
  363. package/resources/whatsapp/whatsapp.mjs.map +1 -1
  364. package/resources/x402/credit-account/credit-account.d.mts +226 -0
  365. package/resources/x402/credit-account/credit-account.d.mts.map +1 -0
  366. package/resources/x402/credit-account/credit-account.d.ts +226 -0
  367. package/resources/x402/credit-account/credit-account.d.ts.map +1 -0
  368. package/resources/x402/credit-account/credit-account.js +66 -0
  369. package/resources/x402/credit-account/credit-account.js.map +1 -0
  370. package/resources/x402/credit-account/credit-account.mjs +61 -0
  371. package/resources/x402/credit-account/credit-account.mjs.map +1 -0
  372. package/resources/x402/credit-account/index.d.mts +3 -0
  373. package/resources/x402/credit-account/index.d.mts.map +1 -0
  374. package/resources/x402/credit-account/index.d.ts +3 -0
  375. package/resources/x402/credit-account/index.d.ts.map +1 -0
  376. package/resources/x402/credit-account/index.js +9 -0
  377. package/resources/x402/credit-account/index.js.map +1 -0
  378. package/resources/x402/credit-account/index.mjs +4 -0
  379. package/resources/x402/credit-account/index.mjs.map +1 -0
  380. package/resources/x402/credit-account/payments.d.mts +90 -0
  381. package/resources/x402/credit-account/payments.d.mts.map +1 -0
  382. package/resources/x402/credit-account/payments.d.ts +90 -0
  383. package/resources/x402/credit-account/payments.d.ts.map +1 -0
  384. package/resources/x402/credit-account/payments.js +47 -0
  385. package/resources/x402/credit-account/payments.js.map +1 -0
  386. package/resources/x402/credit-account/payments.mjs +43 -0
  387. package/resources/x402/credit-account/payments.mjs.map +1 -0
  388. package/resources/x402/credit-account.d.mts +1 -221
  389. package/resources/x402/credit-account.d.mts.map +1 -1
  390. package/resources/x402/credit-account.d.ts +1 -221
  391. package/resources/x402/credit-account.d.ts.map +1 -1
  392. package/resources/x402/credit-account.js +2 -54
  393. package/resources/x402/credit-account.js.map +1 -1
  394. package/resources/x402/credit-account.mjs +1 -52
  395. package/resources/x402/credit-account.mjs.map +1 -1
  396. package/resources/x402/index.d.mts +1 -1
  397. package/resources/x402/index.d.mts.map +1 -1
  398. package/resources/x402/index.d.ts +1 -1
  399. package/resources/x402/index.d.ts.map +1 -1
  400. package/resources/x402/index.js +2 -2
  401. package/resources/x402/index.js.map +1 -1
  402. package/resources/x402/index.mjs +1 -1
  403. package/resources/x402/index.mjs.map +1 -1
  404. package/resources/x402/x402.d.mts +2 -2
  405. package/resources/x402/x402.d.mts.map +1 -1
  406. package/resources/x402/x402.d.ts +2 -2
  407. package/resources/x402/x402.d.ts.map +1 -1
  408. package/resources/x402/x402.js +2 -2
  409. package/resources/x402/x402.js.map +1 -1
  410. package/resources/x402/x402.mjs +2 -2
  411. package/resources/x402/x402.mjs.map +1 -1
  412. package/src/client.ts +91 -0
  413. package/src/resources/ai/ai.ts +15 -1
  414. package/src/resources/ai/assistants/assistants.ts +454 -45
  415. package/src/resources/ai/assistants/index.ts +1 -0
  416. package/src/resources/ai/assistants/versions.ts +61 -12
  417. package/src/resources/ai/audio.ts +93 -45
  418. package/src/resources/ai/chat.ts +66 -29
  419. package/src/resources/ai/index.ts +8 -1
  420. package/src/resources/ai/openai/chat.ts +75 -29
  421. package/src/resources/ai/openai/index.ts +6 -1
  422. package/src/resources/ai/openai/openai.ts +2 -1
  423. package/src/resources/ai/typesafe/index.ts +4 -0
  424. package/src/resources/ai/typesafe/typesafe.ts +19 -0
  425. package/src/resources/ai/typesafe/v1.ts +298 -0
  426. package/src/resources/ai/typesafe.ts +3 -0
  427. package/src/resources/bot-challenge.ts +101 -0
  428. package/src/resources/bot-sessions.ts +61 -0
  429. package/src/resources/bot-signup.ts +140 -0
  430. package/src/resources/calls/actions.ts +65 -10
  431. package/src/resources/calls/calls.ts +52 -5
  432. package/src/resources/compute/compute.ts +37 -0
  433. package/src/resources/compute/funcs/export.ts +156 -0
  434. package/src/resources/compute/funcs/funcs.ts +341 -0
  435. package/src/resources/compute/funcs/index.ts +15 -0
  436. package/src/resources/compute/funcs.ts +3 -0
  437. package/src/resources/compute/index.ts +15 -0
  438. package/src/resources/compute.ts +3 -0
  439. package/src/resources/connections.ts +133 -0
  440. package/src/resources/credential-connections/credential-connections.ts +4 -1
  441. package/src/resources/detail-records.ts +18 -1
  442. package/src/resources/email-inboxes/drafts.ts +8 -0
  443. package/src/resources/email-messages/email-messages.ts +9 -2
  444. package/src/resources/fqdn-connections/fqdn-authentication.ts +4 -1
  445. package/src/resources/fqdn-connections/fqdn-connections.ts +4 -1
  446. package/src/resources/index.ts +27 -0
  447. package/src/resources/machine-payments.ts +169 -0
  448. package/src/resources/messages/messages.ts +250 -22
  449. package/src/resources/messaging-profiles/index.ts +1 -0
  450. package/src/resources/messaging-profiles/messaging-profiles.ts +39 -0
  451. package/src/resources/noise-suppression-engines.ts +51 -0
  452. package/src/resources/speech-to-text/speech-to-text.ts +1 -0
  453. package/src/resources/texml/accounts/calls/calls.ts +138 -0
  454. package/src/resources/texml/accounts/conferences/participants.ts +46 -0
  455. package/src/resources/texml/calls.ts +90 -0
  456. package/src/resources/texml/index.ts +1 -0
  457. package/src/resources/texml/texml.ts +56 -0
  458. package/src/resources/uac-connections/uac-connections.ts +9 -2
  459. package/src/resources/voice-clones.ts +6 -4
  460. package/src/resources/webhooks.ts +208 -60
  461. package/src/resources/whatsapp/business-accounts/phone-numbers.ts +52 -0
  462. package/src/resources/whatsapp/index.ts +1 -0
  463. package/src/resources/whatsapp/phone-numbers/index.ts +1 -0
  464. package/src/resources/whatsapp/phone-numbers/phone-numbers.ts +222 -0
  465. package/src/resources/whatsapp/whatsapp.ts +2 -0
  466. package/src/resources/x402/credit-account/credit-account.ts +312 -0
  467. package/src/resources/x402/credit-account/index.ts +16 -0
  468. package/src/resources/x402/credit-account/payments.ts +126 -0
  469. package/src/resources/x402/credit-account.ts +1 -290
  470. package/src/resources/x402/index.ts +1 -1
  471. package/src/resources/x402/x402.ts +2 -2
  472. package/src/version.ts +1 -1
  473. package/version.d.mts +1 -1
  474. package/version.d.ts +1 -1
  475. package/version.js +1 -1
  476. 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,
@@ -372,6 +373,130 @@ export interface Assistant {
372
373
  >;
373
374
  }
374
375
 
376
+ /**
377
+ * A remote agent, reachable over the A2A (Agent2Agent) protocol, that an assistant
378
+ * can delegate to. Tools are not configured here: at the start of every
379
+ * conversation the agent's card is fetched and one tool is derived per skill the
380
+ * card advertises.
381
+ */
382
+ export interface AssistantA2AAgent {
383
+ /**
384
+ * Identifies the agent and seeds the names of the tools derived from its card
385
+ * (`a2a_<name>_<skill_id>`). Characters outside `[A-Za-z0-9_]` are replaced with
386
+ * `_` before the tool name is built, so two agents whose names differ only in
387
+ * punctuation collide and are rejected.
388
+ */
389
+ name: string;
390
+
391
+ /**
392
+ * The agent's base URL, or the URL of its agent card. At most 2,048 bytes once
393
+ * UTF-8 encoded. `/.well-known/agent-card.json` is appended to the path unless it
394
+ * already ends in `.json`. Must be an `http://` or `https://` URL for an
395
+ * externally reachable host: internal destinations (`localhost`, private and
396
+ * reserved IP ranges, `.local` domains) are rejected, and the hostname may not
397
+ * contain a `{{...}}` placeholder. Placeholders in the path are allowed.
398
+ */
399
+ url: string;
400
+
401
+ /**
402
+ * When `true`, the assistant hands the turn straight back to the model and the
403
+ * agent's answer is delivered into the conversation once it arrives, instead of
404
+ * the caller waiting for it in silence.
405
+ */
406
+ async?: boolean;
407
+
408
+ /**
409
+ * Headers sent when fetching this agent's card and on every call made to it. Use
410
+ * them to authenticate to the agent.
411
+ */
412
+ headers?: Array<AssistantA2AAgent.Header>;
413
+
414
+ /**
415
+ * Filler messages spoken while a call to this agent is in progress.
416
+ * `request_start` messages are spoken immediately when the call begins.
417
+ * `request_response_delayed` messages are spoken after `timing_ms` has elapsed
418
+ * only if the agent has not answered yet. Filler messages are not used when
419
+ * `async` is `true`.
420
+ */
421
+ messages?: Array<
422
+ AssistantA2AAgent.A2AAgentRequestStartMessage | AssistantA2AAgent.A2AAgentRequestResponseDelayedMessage
423
+ >;
424
+
425
+ /**
426
+ * How often, in milliseconds, to poll an agent task that has not finished yet.
427
+ * Defaults to 500.
428
+ */
429
+ poll_interval_ms?: number;
430
+
431
+ /**
432
+ * Total budget, in milliseconds, for one call to this agent, including any time
433
+ * spent polling a task that is still running. Omit to inherit the assistant's tool
434
+ * timeout.
435
+ */
436
+ timeout_ms?: number;
437
+ }
438
+
439
+ export namespace AssistantA2AAgent {
440
+ /**
441
+ * A header sent when fetching an A2A agent's card and on every call made to that
442
+ * agent.
443
+ */
444
+ export interface Header {
445
+ /**
446
+ * HTTP header name. May only contain alphanumeric characters, hyphens, and
447
+ * underscores, or a `{{dynamic_variable}}` placeholder surrounded by those
448
+ * characters.
449
+ */
450
+ name: string;
451
+
452
+ /**
453
+ * Header value, stored exactly as written. It may be a literal, a
454
+ * `{{dynamic_variable}}`, or an
455
+ * `{{#integration_secret}}identifier{{/integration_secret}}` section that resolves
456
+ * to a stored integration secret when the conversation starts. Control characters
457
+ * are not allowed. The encrypted `{{variable | encryption_secret_ref}}` form used
458
+ * for per-caller credentials is not resolved here and is rejected when the
459
+ * assistant is saved.
460
+ */
461
+ value: string;
462
+ }
463
+
464
+ export interface A2AAgentRequestStartMessage {
465
+ /**
466
+ * The text the assistant speaks.
467
+ */
468
+ content: string;
469
+
470
+ /**
471
+ * Speak the filler message immediately when the call to the agent begins.
472
+ */
473
+ type: 'request_start';
474
+
475
+ /**
476
+ * An optional delay value. This value is ignored for `request_start` messages.
477
+ */
478
+ timing_ms?: number;
479
+ }
480
+
481
+ export interface A2AAgentRequestResponseDelayedMessage {
482
+ /**
483
+ * The text the assistant speaks.
484
+ */
485
+ content: string;
486
+
487
+ /**
488
+ * How long to wait, in milliseconds, before speaking this message.
489
+ */
490
+ timing_ms: number;
491
+
492
+ /**
493
+ * Speak the filler message only if the agent has not answered yet after
494
+ * `timing_ms`.
495
+ */
496
+ type: 'request_response_delayed';
497
+ }
498
+ }
499
+
375
500
  /**
376
501
  * Reference to a connected integration attached to an assistant. Discover
377
502
  * available integrations with `/ai/integrations` and connected integrations with
@@ -419,11 +544,12 @@ export interface AssistantMcpServer {
419
544
  * user.
420
545
  */
421
546
  export type AssistantTool =
547
+ | AssistantTool.Function
422
548
  | InferenceEmbeddingWebhookToolParams
423
549
  | AssistantTool.ClientSideTool
424
550
  | RetrievalTool
425
551
  | AssistantTool.Handoff
426
- | HangupTool
552
+ | AssistantTool.Hangup
427
553
  | AssistantTool.Transfer
428
554
  | AssistantTool.Invite
429
555
  | AssistantTool.Refer
@@ -434,10 +560,38 @@ export type AssistantTool =
434
560
  | AssistantTool.UpdateDynamicVariables;
435
561
 
436
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
+
437
580
  export interface ClientSideTool {
438
581
  client_side_tool: ClientSideTool.ClientSideTool;
439
582
 
440
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;
441
595
  }
442
596
 
443
597
  export namespace ClientSideTool {
@@ -491,6 +645,17 @@ export namespace AssistantTool {
491
645
  handoff: Handoff.Handoff;
492
646
 
493
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;
494
659
  }
495
660
 
496
661
  export namespace Handoff {
@@ -524,10 +689,38 @@ export namespace AssistantTool {
524
689
  }
525
690
  }
526
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
+
527
709
  export interface Transfer {
528
710
  transfer: Transfer.Transfer;
529
711
 
530
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;
531
724
  }
532
725
 
533
726
  export namespace Transfer {
@@ -798,6 +991,17 @@ export namespace AssistantTool {
798
991
  invite: Invite.Invite;
799
992
 
800
993
  type: 'invite';
994
+
995
+ /**
996
+ * Whether this tool comes from the shared Tools Library. Responses merge shared
997
+ * tools into `tools` with `shared: true`; inline tools carry `shared: false`.
998
+ * Read-only: set by the server, not accepted in requests. When updating an
999
+ * assistant, omit `shared: true` tools from the request `tools` array and manage
1000
+ * them through `tool_ids` instead — re-sending their definitions creates an inline
1001
+ * duplicate (rejected with error code 10015 when the type allows only one instance
1002
+ * per assistant).
1003
+ */
1004
+ shared?: boolean;
801
1005
  }
802
1006
 
803
1007
  export namespace Invite {
@@ -889,6 +1093,17 @@ export namespace AssistantTool {
889
1093
  refer: Refer.Refer;
890
1094
 
891
1095
  type: 'refer';
1096
+
1097
+ /**
1098
+ * Whether this tool comes from the shared Tools Library. Responses merge shared
1099
+ * tools into `tools` with `shared: true`; inline tools carry `shared: false`.
1100
+ * Read-only: set by the server, not accepted in requests. When updating an
1101
+ * assistant, omit `shared: true` tools from the request `tools` array and manage
1102
+ * them through `tool_ids` instead — re-sending their definitions creates an inline
1103
+ * duplicate (rejected with error code 10015 when the type allows only one instance
1104
+ * per assistant).
1105
+ */
1106
+ shared?: boolean;
892
1107
  }
893
1108
 
894
1109
  export namespace Refer {
@@ -964,6 +1179,17 @@ export namespace AssistantTool {
964
1179
  send_dtmf: { [key: string]: unknown };
965
1180
 
966
1181
  type: 'send_dtmf';
1182
+
1183
+ /**
1184
+ * Whether this tool comes from the shared Tools Library. Responses merge shared
1185
+ * tools into `tools` with `shared: true`; inline tools carry `shared: false`.
1186
+ * Read-only: set by the server, not accepted in requests. When updating an
1187
+ * assistant, omit `shared: true` tools from the request `tools` array and manage
1188
+ * them through `tool_ids` instead — re-sending their definitions creates an inline
1189
+ * duplicate (rejected with error code 10015 when the type allows only one instance
1190
+ * per assistant).
1191
+ */
1192
+ shared?: boolean;
967
1193
  }
968
1194
 
969
1195
  /**
@@ -976,6 +1202,17 @@ export namespace AssistantTool {
976
1202
  send_message: SendMessage.SendMessage;
977
1203
 
978
1204
  type: 'send_message';
1205
+
1206
+ /**
1207
+ * Whether this tool comes from the shared Tools Library. Responses merge shared
1208
+ * tools into `tools` with `shared: true`; inline tools carry `shared: false`.
1209
+ * Read-only: set by the server, not accepted in requests. When updating an
1210
+ * assistant, omit `shared: true` tools from the request `tools` array and manage
1211
+ * them through `tool_ids` instead — re-sending their definitions creates an inline
1212
+ * duplicate (rejected with error code 10015 when the type allows only one instance
1213
+ * per assistant).
1214
+ */
1215
+ shared?: boolean;
979
1216
  }
980
1217
 
981
1218
  export namespace SendMessage {
@@ -997,6 +1234,17 @@ export namespace AssistantTool {
997
1234
  skip_turn: SkipTurn.SkipTurn;
998
1235
 
999
1236
  type: 'skip_turn';
1237
+
1238
+ /**
1239
+ * Whether this tool comes from the shared Tools Library. Responses merge shared
1240
+ * tools into `tools` with `shared: true`; inline tools carry `shared: false`.
1241
+ * Read-only: set by the server, not accepted in requests. When updating an
1242
+ * assistant, omit `shared: true` tools from the request `tools` array and manage
1243
+ * them through `tool_ids` instead — re-sending their definitions creates an inline
1244
+ * duplicate (rejected with error code 10015 when the type allows only one instance
1245
+ * per assistant).
1246
+ */
1247
+ shared?: boolean;
1000
1248
  }
1001
1249
 
1002
1250
  export namespace SkipTurn {
@@ -1018,6 +1266,17 @@ export namespace AssistantTool {
1018
1266
  pay: ToolsAPI.PayToolParams;
1019
1267
 
1020
1268
  type: 'pay';
1269
+
1270
+ /**
1271
+ * Whether this tool comes from the shared Tools Library. Responses merge shared
1272
+ * tools into `tools` with `shared: true`; inline tools carry `shared: false`.
1273
+ * Read-only: set by the server, not accepted in requests. When updating an
1274
+ * assistant, omit `shared: true` tools from the request `tools` array and manage
1275
+ * them through `tool_ids` instead — re-sending their definitions creates an inline
1276
+ * duplicate (rejected with error code 10015 when the type allows only one instance
1277
+ * per assistant).
1278
+ */
1279
+ shared?: boolean;
1021
1280
  }
1022
1281
 
1023
1282
  /**
@@ -1034,6 +1293,17 @@ export namespace AssistantTool {
1034
1293
  * Configuration for an update_dynamic_variables tool.
1035
1294
  */
1036
1295
  update_dynamic_variables: ToolsAPI.UpdateDynamicVariablesToolParams;
1296
+
1297
+ /**
1298
+ * Whether this tool comes from the shared Tools Library. Responses merge shared
1299
+ * tools into `tools` with `shared: true`; inline tools carry `shared: false`.
1300
+ * Read-only: set by the server, not accepted in requests. When updating an
1301
+ * assistant, omit `shared: true` tools from the request `tools` array and manage
1302
+ * them through `tool_ids` instead — re-sending their definitions creates an inline
1303
+ * duplicate (rejected with error code 10015 when the type allows only one instance
1304
+ * per assistant).
1305
+ */
1306
+ shared?: boolean;
1037
1307
  }
1038
1308
  }
1039
1309
 
@@ -1715,6 +1985,18 @@ export interface InferenceEmbedding {
1715
1985
 
1716
1986
  name: string;
1717
1987
 
1988
+ /**
1989
+ * A2A agents this assistant can delegate to. Tools are not stored here: at the
1990
+ * start of every conversation each agent's card is fetched and one tool is derived
1991
+ * per skill the card advertises, named `a2a_<name>_<skill_id>`. The following
1992
+ * limits are not enforced when the assistant is saved, and anything past them is
1993
+ * dropped when the conversation starts: 64 agents per assistant, 64 skills per
1994
+ * card, 128 derived tools per assistant, and a 6 second budget for all card
1995
+ * fetches combined. An agent whose card cannot be fetched costs the assistant that
1996
+ * capability for the conversation; it does not fail the call.
1997
+ */
1998
+ a2a_agents?: Array<AssistantA2AAgent>;
1999
+
1718
2000
  /**
1719
2001
  * Conversation flow as returned by the API.
1720
2002
  */
@@ -1808,10 +2090,10 @@ export interface InferenceEmbedding {
1808
2090
  /**
1809
2091
  * Configuration for post-conversation processing. When enabled, the assistant
1810
2092
  * receives one additional LLM turn after the conversation ends, allowing it to
1811
- * execute tool calls such as logging to a CRM or sending a summary. The assistant
1812
- * can execute multiple parallel or sequential tools during this phase.
1813
- * Telephony-control tools (e.g. hangup, transfer) are unavailable
1814
- * post-conversation. Beta feature.
2093
+ * execute final tool calls such as sending a summary or updating a record via
2094
+ * webhook or function tools. Integration and MCP server tools are not available
2095
+ * post-conversation; call-control tools (e.g. hangup, transfer) are also
2096
+ * unavailable. Beta feature.
1815
2097
  */
1816
2098
  post_conversation_settings?: PostConversationSettings;
1817
2099
 
@@ -1831,9 +2113,12 @@ export interface InferenceEmbedding {
1831
2113
  telephony_settings?: TelephonySettings;
1832
2114
 
1833
2115
  /**
1834
- * Deprecated for new integrations. Inline tool definitions available to the
1835
- * assistant. Prefer `tool_ids` to attach shared tools created with the AI Tools
1836
- * endpoints.
2116
+ * The assistant's tools. Responses merge the assistant's shared Tools Library
2117
+ * tools into this array alongside inline tools, each flagged `shared: true`;
2118
+ * inline tools carry `shared: false`. On update, a sent `tools` array fully
2119
+ * replaces the inline tools only — shared tools stay attached unless `tool_ids`
2120
+ * changes. Each tool type except `function`, `webhook`, and `client_side_tool`
2121
+ * allows at most one instance per assistant across both sources.
1837
2122
  */
1838
2123
  tools?: Array<AssistantTool>;
1839
2124
 
@@ -1882,6 +2167,12 @@ export interface InferenceEmbeddingInterruptionSettings {
1882
2167
  */
1883
2168
  enable?: boolean;
1884
2169
 
2170
+ /**
2171
+ * Interrupt-prediction sensitivity, from 0.0 to 1.0. Set to null or 0.0 to disable
2172
+ * interrupt prediction.
2173
+ */
2174
+ interrupt_prediction_threshold?: number | null;
2175
+
1885
2176
  /**
1886
2177
  * Controls when the assistant starts speaking after the user stops. These
1887
2178
  * thresholds primarily apply to non turn-taking transcription models. For
@@ -1895,6 +2186,17 @@ export interface InferenceEmbeddingWebhookToolParams {
1895
2186
  type: 'webhook';
1896
2187
 
1897
2188
  webhook: InferenceEmbeddingWebhookToolParams.Webhook;
2189
+
2190
+ /**
2191
+ * Whether this tool comes from the shared Tools Library. Responses merge shared
2192
+ * tools into `tools` with `shared: true`; inline tools carry `shared: false`.
2193
+ * Read-only: set by the server, not accepted in requests. When updating an
2194
+ * assistant, omit `shared: true` tools from the request `tools` array and manage
2195
+ * them through `tool_ids` instead — re-sending their definitions creates an inline
2196
+ * duplicate (rejected with error code 10015 when the type allows only one instance
2197
+ * per assistant).
2198
+ */
2199
+ shared?: boolean;
1898
2200
  }
1899
2201
 
1900
2202
  export namespace InferenceEmbeddingWebhookToolParams {
@@ -2243,10 +2545,10 @@ export type ObservabilityStatus = 'enabled' | 'disabled';
2243
2545
  /**
2244
2546
  * Configuration for post-conversation processing. When enabled, the assistant
2245
2547
  * receives one additional LLM turn after the conversation ends, allowing it to
2246
- * execute tool calls such as logging to a CRM or sending a summary. The assistant
2247
- * can execute multiple parallel or sequential tools during this phase.
2248
- * Telephony-control tools (e.g. hangup, transfer) are unavailable
2249
- * post-conversation. Beta feature.
2548
+ * execute final tool calls such as sending a summary or updating a record via
2549
+ * webhook or function tools. Integration and MCP server tools are not available
2550
+ * post-conversation; call-control tools (e.g. hangup, transfer) are also
2551
+ * unavailable. Beta feature.
2250
2552
  */
2251
2553
  export interface PostConversationSettings {
2252
2554
  /**
@@ -2260,10 +2562,10 @@ export interface PostConversationSettings {
2260
2562
  /**
2261
2563
  * Configuration for post-conversation processing. When enabled, the assistant
2262
2564
  * receives one additional LLM turn after the conversation ends, allowing it to
2263
- * execute tool calls such as logging to a CRM or sending a summary. The assistant
2264
- * can execute multiple parallel or sequential tools during this phase.
2265
- * Telephony-control tools (e.g. hangup, transfer) are unavailable
2266
- * post-conversation. Beta feature.
2565
+ * execute final tool calls such as sending a summary or updating a record via
2566
+ * webhook or function tools. Integration and MCP server tools are not available
2567
+ * post-conversation; call-control tools (e.g. hangup, transfer) are also
2568
+ * unavailable. Beta feature.
2267
2569
  */
2268
2570
  export interface PostConversationSettingsReq {
2269
2571
  /**
@@ -2284,6 +2586,22 @@ export interface PrivacySettings {
2284
2586
  * force regardless of your selection here.
2285
2587
  */
2286
2588
  data_retention?: boolean;
2589
+
2590
+ /**
2591
+ * Requires every model call made for a web chat turn to be received and served
2592
+ * inside your organization's data-locality region, rather than only stored there.
2593
+ * Applies to web chat only — voice and messaging assistants are unaffected.
2594
+ * Enabling it requires a data-locality region with in-region inference (USA, EU,
2595
+ * AUS, UAE; see
2596
+ * [Inference regions](https://developers.telnyx.com/docs/inference/models/regions))
2597
+ * and Telnyx-hosted models for the assistant, its fallback, and any
2598
+ * conversation-flow node that overrides the model; the request is rejected
2599
+ * otherwise. Once enabled, send chat requests to your region's API hostname: a
2600
+ * request entering the platform in another region is rejected rather than
2601
+ * forwarded, because forwarding it would already have moved the content across the
2602
+ * border. Defaults to false.
2603
+ */
2604
+ in_transit_data_locality?: boolean;
2287
2605
  }
2288
2606
 
2289
2607
  /**
@@ -2299,6 +2617,17 @@ export interface RetrievalTool {
2299
2617
  retrieval: ChatAPI.BucketIDs;
2300
2618
 
2301
2619
  type: 'retrieval';
2620
+
2621
+ /**
2622
+ * Whether this tool comes from the shared Tools Library. Responses merge shared
2623
+ * tools into `tools` with `shared: true`; inline tools carry `shared: false`.
2624
+ * Read-only: set by the server, not accepted in requests. When updating an
2625
+ * assistant, omit `shared: true` tools from the request `tools` array and manage
2626
+ * them through `tool_ids` instead — re-sending their definitions creates an inline
2627
+ * duplicate (rejected with error code 10015 when the type allows only one instance
2628
+ * per assistant).
2629
+ */
2630
+ shared?: boolean;
2302
2631
  }
2303
2632
 
2304
2633
  /**
@@ -2416,14 +2745,28 @@ export interface TelephonySettings {
2416
2745
  disable_dtmf?: boolean;
2417
2746
 
2418
2747
  /**
2419
- * The noise suppression engine to use. Use 'disabled' to turn off noise
2420
- * suppression.
2748
+ * Destination number or SIP URI to transfer the caller to when the AI conversation
2749
+ * ends abnormally, for example because of an assistant-side error, so the caller
2750
+ * is not left in dead air. This only fires for abnormal ends: it does not fire
2751
+ * when the conversation ends on purpose (the caller hung up, the assistant
2752
+ * completed normally, the caller hung up after a relay handoff, or voicemail was
2753
+ * detected), and it does not fire when the assistant already transferred or
2754
+ * bridged the call.
2755
+ */
2756
+ fallback_destination?: string;
2757
+
2758
+ /**
2759
+ * The noise suppression engine to use. 'aicoustics' is STT-optimized and
2760
+ * recommended for AI assistants (configure through noise_suppression_config). Use
2761
+ * 'disabled' to turn off noise suppression.
2421
2762
  */
2422
- noise_suppression?: 'krisp' | 'deepfilternet' | 'disabled';
2763
+ noise_suppression?: 'aicoustics' | 'krisp' | 'deepfilternet' | 'disabled';
2423
2764
 
2424
2765
  /**
2425
- * Configuration for noise suppression. Only applicable when noise_suppression is
2426
- * 'deepfilternet'.
2766
+ * Configuration for noise suppression. Applicable fields depend on the engine:
2767
+ * 'attenuation_limit' and 'mode' only when noise_suppression is 'deepfilternet';
2768
+ * 'family', 'size' and 'enhancement_level' only when noise_suppression is
2769
+ * 'aicoustics'.
2427
2770
  */
2428
2771
  noise_suppression_config?: TelephonySettings.NoiseSuppressionConfig;
2429
2772
 
@@ -2487,19 +2830,42 @@ export interface TelephonySettings {
2487
2830
 
2488
2831
  export namespace TelephonySettings {
2489
2832
  /**
2490
- * Configuration for noise suppression. Only applicable when noise_suppression is
2491
- * 'deepfilternet'.
2833
+ * Configuration for noise suppression. Applicable fields depend on the engine:
2834
+ * 'attenuation_limit' and 'mode' only when noise_suppression is 'deepfilternet';
2835
+ * 'family', 'size' and 'enhancement_level' only when noise_suppression is
2836
+ * 'aicoustics'.
2492
2837
  */
2493
2838
  export interface NoiseSuppressionConfig {
2494
2839
  /**
2495
- * Attenuation limit for noise suppression. Range: 0-100.
2840
+ * Attenuation limit for noise suppression. Range: 0-100. Only applicable when
2841
+ * noise_suppression is 'deepfilternet'.
2496
2842
  */
2497
2843
  attenuation_limit?: number;
2498
2844
 
2499
2845
  /**
2500
- * Mode for noise suppression configuration.
2846
+ * AiCoustics enhancement intensity. Range: 0-1. Only applicable when
2847
+ * noise_suppression is 'aicoustics'.
2848
+ */
2849
+ enhancement_level?: number;
2850
+
2851
+ /**
2852
+ * AiCoustics model family optimized for Voice AI and STT. Only applicable when
2853
+ * noise_suppression is 'aicoustics'.
2854
+ */
2855
+ family?: 'quail';
2856
+
2857
+ /**
2858
+ * Mode for noise suppression configuration. Only applicable when noise_suppression
2859
+ * is 'deepfilternet'.
2501
2860
  */
2502
2861
  mode?: 'advanced';
2862
+
2863
+ /**
2864
+ * AiCoustics model size. 'vf' tracks the latest model release; 'vf_2_0_l' is
2865
+ * pinned to version 2.0 for consistent, predictable behavior. Only applicable when
2866
+ * noise_suppression is 'aicoustics'.
2867
+ */
2868
+ size?: 'vf' | 'vf_2_0_l';
2503
2869
  }
2504
2870
 
2505
2871
  /**
@@ -2735,14 +3101,17 @@ export interface TranscriptionSettings {
2735
3101
  * - `deepgram/nova-3` is multilingual with automatic language detection.
2736
3102
  * - `deepgram/nova-2` is Deepgram's previous-generation multilingual model.
2737
3103
  * - `azure/fast` is a multilingual Azure transcription model.
2738
- * - `assemblyai/universal-streaming` is a multilingual streaming model with
2739
- * configurable turn detection.
3104
+ * - `assemblyai/universal-3-5-pro` is a multilingual streaming model with
3105
+ * configurable turn detection. The legacy alias `assemblyai/universal-streaming`
3106
+ * is still accepted and resolves to the same model.
2740
3107
  * - `xai/grok-stt` is a multilingual Grok STT model.
2741
3108
  * - `soniox/stt-rt-v4` and `soniox/stt-rt-v5` are multilingual streaming models
2742
3109
  * with automatic language detection, configurable endpointing, term biasing
2743
3110
  * (`context`), and `language_hints`.
2744
3111
  * - `nvidia/parakeet-v3` is a multilingual transcription model with automatic
2745
3112
  * language detection.
3113
+ * - `omi-health/omi-med-stt-v1` is an English-only medical transcription model
3114
+ * (Parakeet-based).
2746
3115
  * - `humain/realtime` is a streaming model with native Arabic and Arabic/English
2747
3116
  * code-switching support.
2748
3117
  * - `reson8/turns` is a turn-based streaming model covering 10 European languages
@@ -2754,11 +3123,13 @@ export interface TranscriptionSettings {
2754
3123
  | 'deepgram/nova-3'
2755
3124
  | 'deepgram/nova-2'
2756
3125
  | 'azure/fast'
3126
+ | 'assemblyai/universal-3-5-pro'
2757
3127
  | 'assemblyai/universal-streaming'
2758
3128
  | 'xai/grok-stt'
2759
3129
  | 'soniox/stt-rt-v4'
2760
3130
  | 'soniox/stt-rt-v5'
2761
3131
  | 'nvidia/parakeet-v3'
3132
+ | 'omi-health/omi-med-stt-v1'
2762
3133
  | 'humain/realtime'
2763
3134
  | 'reson8/turns'
2764
3135
  | 'cohere/ar-stt'
@@ -2801,9 +3172,9 @@ export interface TranscriptionSettingsConfig {
2801
3172
  enable_endpoint_detection?: boolean;
2802
3173
 
2803
3174
  /**
2804
- * Available only for assemblyai/universal-streaming. Confidence level required to
2805
- * trigger an end of turn. Higher values require more certainty before ending a
2806
- * turn.
3175
+ * Available only for assemblyai/universal-3-5-pro (and its legacy alias
3176
+ * assemblyai/universal-streaming). Confidence level required to trigger an end of
3177
+ * turn. Higher values require more certainty before ending a turn.
2807
3178
  */
2808
3179
  end_of_turn_confidence_threshold?: number;
2809
3180
 
@@ -2851,15 +3222,16 @@ export interface TranscriptionSettingsConfig {
2851
3222
  max_endpoint_delay_ms?: number;
2852
3223
 
2853
3224
  /**
2854
- * Available only for assemblyai/universal-streaming. Maximum duration of silence
2855
- * in milliseconds before forcing an end of turn.
3225
+ * Available only for assemblyai/universal-3-5-pro (and its legacy alias
3226
+ * assemblyai/universal-streaming). Maximum duration of silence in milliseconds
3227
+ * before forcing an end of turn.
2856
3228
  */
2857
3229
  max_turn_silence?: number;
2858
3230
 
2859
3231
  /**
2860
- * Available only for assemblyai/universal-streaming. Minimum duration of silence
2861
- * in milliseconds before a turn can end. Must be less than or equal to
2862
- * max_turn_silence.
3232
+ * Available only for assemblyai/universal-3-5-pro (and its legacy alias
3233
+ * assemblyai/universal-streaming). Minimum duration of silence in milliseconds
3234
+ * before a turn can end. Must be less than or equal to max_turn_silence.
2863
3235
  */
2864
3236
  min_turn_silence?: number;
2865
3237
 
@@ -3312,6 +3684,18 @@ export interface AssistantCreateParams {
3312
3684
  */
3313
3685
  name: string;
3314
3686
 
3687
+ /**
3688
+ * Body param: A2A agents this assistant can delegate to. Tools are not stored
3689
+ * here: at the start of every conversation each agent's card is fetched and one
3690
+ * tool is derived per skill the card advertises, named `a2a_<name>_<skill_id>`.
3691
+ * The following limits are not enforced when the assistant is saved, and anything
3692
+ * past them is dropped when the conversation starts: 64 agents per assistant, 64
3693
+ * skills per card, 128 derived tools per assistant, and a 6 second budget for all
3694
+ * card fetches combined. An agent whose card cannot be fetched costs the assistant
3695
+ * that capability for the conversation; it does not fail the call.
3696
+ */
3697
+ a2a_agents?: Array<AssistantA2AAgent>;
3698
+
3315
3699
  /**
3316
3700
  * Body param: Conversation flow as supplied by API clients (create / update).
3317
3701
  *
@@ -3438,10 +3822,10 @@ export interface AssistantCreateParams {
3438
3822
  /**
3439
3823
  * Body param: Configuration for post-conversation processing. When enabled, the
3440
3824
  * assistant receives one additional LLM turn after the conversation ends, allowing
3441
- * it to execute tool calls such as logging to a CRM or sending a summary. The
3442
- * assistant can execute multiple parallel or sequential tools during this phase.
3443
- * Telephony-control tools (e.g. hangup, transfer) are unavailable
3444
- * post-conversation. Beta feature.
3825
+ * it to execute final tool calls such as sending a summary or updating a record
3826
+ * via webhook or function tools. Integration and MCP server tools are not
3827
+ * available post-conversation; call-control tools (e.g. hangup, transfer) are also
3828
+ * unavailable. Beta feature.
3445
3829
  */
3446
3830
  post_conversation_settings?: PostConversationSettingsReq;
3447
3831
 
@@ -3557,6 +3941,19 @@ export interface AssistantRetrieveParams {
3557
3941
  }
3558
3942
 
3559
3943
  export interface AssistantUpdateParams {
3944
+ /**
3945
+ * A2A agents this assistant can delegate to. Tools are not stored here: at the
3946
+ * start of every conversation each agent's card is fetched and one tool is derived
3947
+ * per skill the card advertises, named `a2a_<name>_<skill_id>`. The following
3948
+ * limits are not enforced when the assistant is saved, and anything past them is
3949
+ * dropped when the conversation starts: 64 agents per assistant, 64 skills per
3950
+ * card, 128 derived tools per assistant, and a 6 second budget for all card
3951
+ * fetches combined. An agent whose card cannot be fetched costs the assistant that
3952
+ * capability for the conversation; it does not fail the call. Omit this field to
3953
+ * leave the assistant's agents unchanged; send an empty array to remove them all.
3954
+ */
3955
+ a2a_agents?: Array<AssistantA2AAgent>;
3956
+
3560
3957
  /**
3561
3958
  * Conversation flow as supplied by API clients (create / update).
3562
3959
  *
@@ -3669,10 +4066,10 @@ export interface AssistantUpdateParams {
3669
4066
  /**
3670
4067
  * Configuration for post-conversation processing. When enabled, the assistant
3671
4068
  * receives one additional LLM turn after the conversation ends, allowing it to
3672
- * execute tool calls such as logging to a CRM or sending a summary. The assistant
3673
- * can execute multiple parallel or sequential tools during this phase.
3674
- * Telephony-control tools (e.g. hangup, transfer) are unavailable
3675
- * post-conversation. Beta feature.
4069
+ * execute final tool calls such as sending a summary or updating a record via
4070
+ * webhook or function tools. Integration and MCP server tools are not available
4071
+ * post-conversation; call-control tools (e.g. hangup, transfer) are also
4072
+ * unavailable. Beta feature.
3676
4073
  */
3677
4074
  post_conversation_settings?: PostConversationSettingsReq;
3678
4075
 
@@ -3694,14 +4091,25 @@ export interface AssistantUpdateParams {
3694
4091
 
3695
4092
  /**
3696
4093
  * IDs of shared tools to attach to the assistant. New integrations should prefer
3697
- * `tool_ids` over inline `tools`.
4094
+ * `tool_ids` over inline `tools`. On update, a sent `tool_ids` array fully
4095
+ * replaces the assistant's attached shared tools; omit the field to leave them
4096
+ * unchanged. Single-instance tool types are counted across inline `tools` and
4097
+ * `tool_ids` combined, so attaching a shared tool of such a type when an instance
4098
+ * already exists returns HTTP 400 with error code 10015.
3698
4099
  */
3699
4100
  tool_ids?: Array<string>;
3700
4101
 
3701
4102
  /**
3702
4103
  * Deprecated for new integrations. Inline tool definitions available to the
3703
4104
  * assistant. Prefer `tool_ids` to attach shared tools created with the AI Tools
3704
- * endpoints.
4105
+ * endpoints. On update, a sent `tools` array fully replaces the assistant's inline
4106
+ * tools; omit the field to leave the inline tools unchanged. Each tool type except
4107
+ * `function`, `webhook`, and `client_side_tool` allows at most one instance per
4108
+ * assistant, counted across inline `tools` and shared `tool_ids` combined —
4109
+ * sending a duplicate of such a type returns HTTP 400 with error code 10015.
4110
+ * Responses merge shared tools into `tools` with `shared: true`; when updating,
4111
+ * omit those tools from the `tools` array and manage them through `tool_ids`
4112
+ * instead.
3705
4113
  */
3706
4114
  tools?: Array<AssistantTool>;
3707
4115
 
@@ -3811,6 +4219,7 @@ export declare namespace Assistants {
3811
4219
  export {
3812
4220
  type ArithmeticExpression as ArithmeticExpression,
3813
4221
  type Assistant as Assistant,
4222
+ type AssistantA2AAgent as AssistantA2AAgent,
3814
4223
  type AssistantIntegration as AssistantIntegration,
3815
4224
  type AssistantMcpServer as AssistantMcpServer,
3816
4225
  type AssistantTool as AssistantTool,