telnyx 7.24.0 → 7.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (536) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/client.d.mts +27 -6
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +27 -6
  5. package/client.d.ts.map +1 -1
  6. package/client.js +21 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +21 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/ai/ai.d.mts +16 -6
  12. package/resources/ai/ai.d.mts.map +1 -1
  13. package/resources/ai/ai.d.ts +16 -6
  14. package/resources/ai/ai.d.ts.map +1 -1
  15. package/resources/ai/ai.js +4 -0
  16. package/resources/ai/ai.js.map +1 -1
  17. package/resources/ai/ai.mjs +4 -0
  18. package/resources/ai/ai.mjs.map +1 -1
  19. package/resources/ai/assistants/assistants.d.mts +551 -33
  20. package/resources/ai/assistants/assistants.d.mts.map +1 -1
  21. package/resources/ai/assistants/assistants.d.ts +551 -33
  22. package/resources/ai/assistants/assistants.d.ts.map +1 -1
  23. package/resources/ai/assistants/assistants.js +79 -2
  24. package/resources/ai/assistants/assistants.js.map +1 -1
  25. package/resources/ai/assistants/assistants.mjs +79 -2
  26. package/resources/ai/assistants/assistants.mjs.map +1 -1
  27. package/resources/ai/assistants/deleted.d.mts +60 -0
  28. package/resources/ai/assistants/deleted.d.mts.map +1 -0
  29. package/resources/ai/assistants/deleted.d.ts +60 -0
  30. package/resources/ai/assistants/deleted.d.ts.map +1 -0
  31. package/resources/ai/assistants/deleted.js +49 -0
  32. package/resources/ai/assistants/deleted.js.map +1 -0
  33. package/resources/ai/assistants/deleted.mjs +45 -0
  34. package/resources/ai/assistants/deleted.mjs.map +1 -0
  35. package/resources/ai/assistants/index.d.mts +2 -1
  36. package/resources/ai/assistants/index.d.mts.map +1 -1
  37. package/resources/ai/assistants/index.d.ts +2 -1
  38. package/resources/ai/assistants/index.d.ts.map +1 -1
  39. package/resources/ai/assistants/index.js +3 -1
  40. package/resources/ai/assistants/index.js.map +1 -1
  41. package/resources/ai/assistants/index.mjs +1 -0
  42. package/resources/ai/assistants/index.mjs.map +1 -1
  43. package/resources/ai/assistants/versions.d.mts +48 -0
  44. package/resources/ai/assistants/versions.d.mts.map +1 -1
  45. package/resources/ai/assistants/versions.d.ts +48 -0
  46. package/resources/ai/assistants/versions.d.ts.map +1 -1
  47. package/resources/ai/avatars.d.mts +187 -0
  48. package/resources/ai/avatars.d.mts.map +1 -0
  49. package/resources/ai/avatars.d.ts +187 -0
  50. package/resources/ai/avatars.d.ts.map +1 -0
  51. package/resources/ai/avatars.js +93 -0
  52. package/resources/ai/avatars.js.map +1 -0
  53. package/resources/ai/avatars.mjs +89 -0
  54. package/resources/ai/avatars.mjs.map +1 -0
  55. package/resources/ai/chat.d.mts +21 -2
  56. package/resources/ai/chat.d.mts.map +1 -1
  57. package/resources/ai/chat.d.ts +21 -2
  58. package/resources/ai/chat.d.ts.map +1 -1
  59. package/resources/ai/conversations/conversations.d.mts +8 -0
  60. package/resources/ai/conversations/conversations.d.mts.map +1 -1
  61. package/resources/ai/conversations/conversations.d.ts +8 -0
  62. package/resources/ai/conversations/conversations.d.ts.map +1 -1
  63. package/resources/ai/conversations/conversations.js.map +1 -1
  64. package/resources/ai/conversations/conversations.mjs.map +1 -1
  65. package/resources/ai/embeddings/embeddings.d.mts +1 -1
  66. package/resources/ai/embeddings/embeddings.d.ts +1 -1
  67. package/resources/ai/embeddings/embeddings.js +1 -1
  68. package/resources/ai/embeddings/embeddings.mjs +1 -1
  69. package/resources/ai/index.d.mts +3 -2
  70. package/resources/ai/index.d.mts.map +1 -1
  71. package/resources/ai/index.d.ts +3 -2
  72. package/resources/ai/index.d.ts.map +1 -1
  73. package/resources/ai/index.js +3 -1
  74. package/resources/ai/index.js.map +1 -1
  75. package/resources/ai/index.mjs +1 -0
  76. package/resources/ai/index.mjs.map +1 -1
  77. package/resources/ai/memory/index.d.mts +1 -1
  78. package/resources/ai/memory/index.d.mts.map +1 -1
  79. package/resources/ai/memory/index.d.ts +1 -1
  80. package/resources/ai/memory/index.d.ts.map +1 -1
  81. package/resources/ai/memory/index.js.map +1 -1
  82. package/resources/ai/memory/index.mjs +1 -1
  83. package/resources/ai/memory/index.mjs.map +1 -1
  84. package/resources/ai/memory/memory.d.mts +2 -2
  85. package/resources/ai/memory/memory.d.mts.map +1 -1
  86. package/resources/ai/memory/memory.d.ts +2 -2
  87. package/resources/ai/memory/memory.d.ts.map +1 -1
  88. package/resources/ai/memory/memory.js.map +1 -1
  89. package/resources/ai/memory/memory.mjs +1 -1
  90. package/resources/ai/memory/memory.mjs.map +1 -1
  91. package/resources/ai/memory/namespaces/index.d.mts +2 -2
  92. package/resources/ai/memory/namespaces/index.d.mts.map +1 -1
  93. package/resources/ai/memory/namespaces/index.d.ts +2 -2
  94. package/resources/ai/memory/namespaces/index.d.ts.map +1 -1
  95. package/resources/ai/memory/namespaces/index.js.map +1 -1
  96. package/resources/ai/memory/namespaces/index.mjs +1 -1
  97. package/resources/ai/memory/namespaces/index.mjs.map +1 -1
  98. package/resources/ai/memory/namespaces/namespaces.d.mts +62 -6
  99. package/resources/ai/memory/namespaces/namespaces.d.mts.map +1 -1
  100. package/resources/ai/memory/namespaces/namespaces.d.ts +62 -6
  101. package/resources/ai/memory/namespaces/namespaces.d.ts.map +1 -1
  102. package/resources/ai/memory/namespaces/namespaces.js +41 -3
  103. package/resources/ai/memory/namespaces/namespaces.js.map +1 -1
  104. package/resources/ai/memory/namespaces/namespaces.mjs +41 -3
  105. package/resources/ai/memory/namespaces/namespaces.mjs.map +1 -1
  106. package/resources/ai/memory/namespaces/profiles/index.d.mts +1 -1
  107. package/resources/ai/memory/namespaces/profiles/index.d.mts.map +1 -1
  108. package/resources/ai/memory/namespaces/profiles/index.d.ts +1 -1
  109. package/resources/ai/memory/namespaces/profiles/index.d.ts.map +1 -1
  110. package/resources/ai/memory/namespaces/profiles/index.js.map +1 -1
  111. package/resources/ai/memory/namespaces/profiles/index.mjs.map +1 -1
  112. package/resources/ai/memory/namespaces/profiles/profiles.d.mts +54 -1
  113. package/resources/ai/memory/namespaces/profiles/profiles.d.mts.map +1 -1
  114. package/resources/ai/memory/namespaces/profiles/profiles.d.ts +54 -1
  115. package/resources/ai/memory/namespaces/profiles/profiles.d.ts.map +1 -1
  116. package/resources/ai/memory/namespaces/profiles/profiles.js +31 -0
  117. package/resources/ai/memory/namespaces/profiles/profiles.js.map +1 -1
  118. package/resources/ai/memory/namespaces/profiles/profiles.mjs +31 -0
  119. package/resources/ai/memory/namespaces/profiles/profiles.mjs.map +1 -1
  120. package/resources/ai/openai/chat.d.mts +21 -2
  121. package/resources/ai/openai/chat.d.mts.map +1 -1
  122. package/resources/ai/openai/chat.d.ts +21 -2
  123. package/resources/ai/openai/chat.d.ts.map +1 -1
  124. package/resources/ai/tools.d.mts +20 -5
  125. package/resources/ai/tools.d.mts.map +1 -1
  126. package/resources/ai/tools.d.ts +20 -5
  127. package/resources/ai/tools.d.ts.map +1 -1
  128. package/resources/ai/tools.js +5 -2
  129. package/resources/ai/tools.js.map +1 -1
  130. package/resources/ai/tools.mjs +5 -2
  131. package/resources/ai/tools.mjs.map +1 -1
  132. package/resources/calls/actions.d.mts +135 -30
  133. package/resources/calls/actions.d.mts.map +1 -1
  134. package/resources/calls/actions.d.ts +135 -30
  135. package/resources/calls/actions.d.ts.map +1 -1
  136. package/resources/calls/actions.js +31 -0
  137. package/resources/calls/actions.js.map +1 -1
  138. package/resources/calls/actions.mjs +31 -0
  139. package/resources/calls/actions.mjs.map +1 -1
  140. package/resources/calls/calls.d.mts +72 -25
  141. package/resources/calls/calls.d.mts.map +1 -1
  142. package/resources/calls/calls.d.ts +72 -25
  143. package/resources/calls/calls.d.ts.map +1 -1
  144. package/resources/calls/calls.js +11 -0
  145. package/resources/calls/calls.js.map +1 -1
  146. package/resources/calls/calls.mjs +11 -0
  147. package/resources/calls/calls.mjs.map +1 -1
  148. package/resources/calls/index.d.mts +1 -1
  149. package/resources/calls/index.d.mts.map +1 -1
  150. package/resources/calls/index.d.ts +1 -1
  151. package/resources/calls/index.d.ts.map +1 -1
  152. package/resources/calls/index.js.map +1 -1
  153. package/resources/calls/index.mjs.map +1 -1
  154. package/resources/dir/dir.d.mts +226 -31
  155. package/resources/dir/dir.d.mts.map +1 -1
  156. package/resources/dir/dir.d.ts +226 -31
  157. package/resources/dir/dir.d.ts.map +1 -1
  158. package/resources/dir/dir.js +78 -14
  159. package/resources/dir/dir.js.map +1 -1
  160. package/resources/dir/dir.mjs +78 -14
  161. package/resources/dir/dir.mjs.map +1 -1
  162. package/resources/dir/index.d.mts +1 -1
  163. package/resources/dir/index.d.mts.map +1 -1
  164. package/resources/dir/index.d.ts +1 -1
  165. package/resources/dir/index.d.ts.map +1 -1
  166. package/resources/dir/index.js.map +1 -1
  167. package/resources/dir/index.mjs.map +1 -1
  168. package/resources/dir/phone-numbers.d.mts +8 -8
  169. package/resources/dir/phone-numbers.d.mts.map +1 -1
  170. package/resources/dir/phone-numbers.d.ts +8 -8
  171. package/resources/dir/phone-numbers.d.ts.map +1 -1
  172. package/resources/dir/phone-numbers.js +4 -4
  173. package/resources/dir/phone-numbers.mjs +4 -4
  174. package/resources/dir/references.d.mts +9 -6
  175. package/resources/dir/references.d.mts.map +1 -1
  176. package/resources/dir/references.d.ts +9 -6
  177. package/resources/dir/references.d.ts.map +1 -1
  178. package/resources/email-templates.d.mts +109 -18
  179. package/resources/email-templates.d.mts.map +1 -1
  180. package/resources/email-templates.d.ts +109 -18
  181. package/resources/email-templates.d.ts.map +1 -1
  182. package/resources/email-templates.js +5 -1
  183. package/resources/email-templates.js.map +1 -1
  184. package/resources/email-templates.mjs +5 -1
  185. package/resources/email-templates.mjs.map +1 -1
  186. package/resources/enterprises/dir.d.mts +25 -3
  187. package/resources/enterprises/dir.d.mts.map +1 -1
  188. package/resources/enterprises/dir.d.ts +25 -3
  189. package/resources/enterprises/dir.d.ts.map +1 -1
  190. package/resources/enterprises/dir.js +8 -2
  191. package/resources/enterprises/dir.js.map +1 -1
  192. package/resources/enterprises/dir.mjs +8 -2
  193. package/resources/enterprises/dir.mjs.map +1 -1
  194. package/resources/enterprises/enterprises.d.mts +244 -28
  195. package/resources/enterprises/enterprises.d.mts.map +1 -1
  196. package/resources/enterprises/enterprises.d.ts +244 -28
  197. package/resources/enterprises/enterprises.d.ts.map +1 -1
  198. package/resources/enterprises/enterprises.js +31 -7
  199. package/resources/enterprises/enterprises.js.map +1 -1
  200. package/resources/enterprises/enterprises.mjs +31 -7
  201. package/resources/enterprises/enterprises.mjs.map +1 -1
  202. package/resources/enterprises/index.d.mts +2 -1
  203. package/resources/enterprises/index.d.mts.map +1 -1
  204. package/resources/enterprises/index.d.ts +2 -1
  205. package/resources/enterprises/index.d.ts.map +1 -1
  206. package/resources/enterprises/index.js +3 -1
  207. package/resources/enterprises/index.js.map +1 -1
  208. package/resources/enterprises/index.mjs +1 -0
  209. package/resources/enterprises/index.mjs.map +1 -1
  210. package/resources/enterprises/reputation/external-verification.d.mts +94 -0
  211. package/resources/enterprises/reputation/external-verification.d.mts.map +1 -0
  212. package/resources/enterprises/reputation/external-verification.d.ts +94 -0
  213. package/resources/enterprises/reputation/external-verification.d.ts.map +1 -0
  214. package/resources/enterprises/reputation/external-verification.js +54 -0
  215. package/resources/enterprises/reputation/external-verification.js.map +1 -0
  216. package/resources/enterprises/reputation/external-verification.mjs +50 -0
  217. package/resources/enterprises/reputation/external-verification.mjs.map +1 -0
  218. package/resources/enterprises/reputation/index.d.mts +3 -2
  219. package/resources/enterprises/reputation/index.d.mts.map +1 -1
  220. package/resources/enterprises/reputation/index.d.ts +3 -2
  221. package/resources/enterprises/reputation/index.d.ts.map +1 -1
  222. package/resources/enterprises/reputation/index.js +3 -1
  223. package/resources/enterprises/reputation/index.js.map +1 -1
  224. package/resources/enterprises/reputation/index.mjs +1 -0
  225. package/resources/enterprises/reputation/index.mjs.map +1 -1
  226. package/resources/enterprises/reputation/loa.d.mts +64 -3
  227. package/resources/enterprises/reputation/loa.d.mts.map +1 -1
  228. package/resources/enterprises/reputation/loa.d.ts +64 -3
  229. package/resources/enterprises/reputation/loa.d.ts.map +1 -1
  230. package/resources/enterprises/reputation/numbers.d.mts +197 -4
  231. package/resources/enterprises/reputation/numbers.d.mts.map +1 -1
  232. package/resources/enterprises/reputation/numbers.d.ts +197 -4
  233. package/resources/enterprises/reputation/numbers.d.ts.map +1 -1
  234. package/resources/enterprises/reputation/numbers.js +58 -2
  235. package/resources/enterprises/reputation/numbers.js.map +1 -1
  236. package/resources/enterprises/reputation/numbers.mjs +58 -2
  237. package/resources/enterprises/reputation/numbers.mjs.map +1 -1
  238. package/resources/enterprises/reputation/remediation.d.mts +3 -2
  239. package/resources/enterprises/reputation/remediation.d.mts.map +1 -1
  240. package/resources/enterprises/reputation/remediation.d.ts +3 -2
  241. package/resources/enterprises/reputation/remediation.d.ts.map +1 -1
  242. package/resources/enterprises/reputation/reputation.d.mts +39 -3
  243. package/resources/enterprises/reputation/reputation.d.mts.map +1 -1
  244. package/resources/enterprises/reputation/reputation.d.ts +39 -3
  245. package/resources/enterprises/reputation/reputation.d.ts.map +1 -1
  246. package/resources/enterprises/reputation/reputation.js +22 -0
  247. package/resources/enterprises/reputation/reputation.js.map +1 -1
  248. package/resources/enterprises/reputation/reputation.mjs +22 -0
  249. package/resources/enterprises/reputation/reputation.mjs.map +1 -1
  250. package/resources/enterprises/verify-email.d.mts +91 -0
  251. package/resources/enterprises/verify-email.d.mts.map +1 -0
  252. package/resources/enterprises/verify-email.d.ts +91 -0
  253. package/resources/enterprises/verify-email.d.ts.map +1 -0
  254. package/resources/enterprises/verify-email.js +55 -0
  255. package/resources/enterprises/verify-email.js.map +1 -0
  256. package/resources/enterprises/verify-email.mjs +51 -0
  257. package/resources/enterprises/verify-email.mjs.map +1 -0
  258. package/resources/global-ip-assignment-health.d.mts +4 -4
  259. package/resources/global-ip-assignment-health.d.mts.map +1 -1
  260. package/resources/global-ip-assignment-health.d.ts +4 -4
  261. package/resources/global-ip-assignment-health.d.ts.map +1 -1
  262. package/resources/global-ip-assignments-usage.d.mts +4 -4
  263. package/resources/global-ip-assignments-usage.d.mts.map +1 -1
  264. package/resources/global-ip-assignments-usage.d.ts +4 -4
  265. package/resources/global-ip-assignments-usage.d.ts.map +1 -1
  266. package/resources/index.d.mts +6 -3
  267. package/resources/index.d.mts.map +1 -1
  268. package/resources/index.d.ts +6 -3
  269. package/resources/index.d.ts.map +1 -1
  270. package/resources/index.js +9 -3
  271. package/resources/index.js.map +1 -1
  272. package/resources/index.mjs +3 -0
  273. package/resources/index.mjs.map +1 -1
  274. package/resources/infringement-claims.d.mts +4 -0
  275. package/resources/infringement-claims.d.mts.map +1 -1
  276. package/resources/infringement-claims.d.ts +4 -0
  277. package/resources/infringement-claims.d.ts.map +1 -1
  278. package/resources/llm-token-gateway/index.d.mts +6 -0
  279. package/resources/llm-token-gateway/index.d.mts.map +1 -0
  280. package/resources/llm-token-gateway/index.d.ts +6 -0
  281. package/resources/llm-token-gateway/index.d.ts.map +1 -0
  282. package/resources/llm-token-gateway/index.js +15 -0
  283. package/resources/llm-token-gateway/index.js.map +1 -0
  284. package/resources/llm-token-gateway/index.mjs +7 -0
  285. package/resources/llm-token-gateway/index.mjs.map +1 -0
  286. package/resources/llm-token-gateway/llm-token-gateway.d.mts +22 -0
  287. package/resources/llm-token-gateway/llm-token-gateway.d.mts.map +1 -0
  288. package/resources/llm-token-gateway/llm-token-gateway.d.ts +22 -0
  289. package/resources/llm-token-gateway/llm-token-gateway.d.ts.map +1 -0
  290. package/resources/llm-token-gateway/llm-token-gateway.js +29 -0
  291. package/resources/llm-token-gateway/llm-token-gateway.js.map +1 -0
  292. package/resources/llm-token-gateway/llm-token-gateway.mjs +24 -0
  293. package/resources/llm-token-gateway/llm-token-gateway.mjs.map +1 -0
  294. package/resources/llm-token-gateway/spend.d.mts +223 -0
  295. package/resources/llm-token-gateway/spend.d.mts.map +1 -0
  296. package/resources/llm-token-gateway/spend.d.ts +223 -0
  297. package/resources/llm-token-gateway/spend.d.ts.map +1 -0
  298. package/resources/llm-token-gateway/spend.js +56 -0
  299. package/resources/llm-token-gateway/spend.js.map +1 -0
  300. package/resources/llm-token-gateway/spend.mjs +52 -0
  301. package/resources/llm-token-gateway/spend.mjs.map +1 -0
  302. package/resources/llm-token-gateway/token-groups.d.mts +577 -0
  303. package/resources/llm-token-gateway/token-groups.d.mts.map +1 -0
  304. package/resources/llm-token-gateway/token-groups.d.ts +577 -0
  305. package/resources/llm-token-gateway/token-groups.d.ts.map +1 -0
  306. package/resources/llm-token-gateway/token-groups.js +139 -0
  307. package/resources/llm-token-gateway/token-groups.js.map +1 -0
  308. package/resources/llm-token-gateway/token-groups.mjs +135 -0
  309. package/resources/llm-token-gateway/token-groups.mjs.map +1 -0
  310. package/resources/llm-token-gateway/token-keys.d.mts +318 -0
  311. package/resources/llm-token-gateway/token-keys.d.mts.map +1 -0
  312. package/resources/llm-token-gateway/token-keys.d.ts +318 -0
  313. package/resources/llm-token-gateway/token-keys.d.ts.map +1 -0
  314. package/resources/llm-token-gateway/token-keys.js +127 -0
  315. package/resources/llm-token-gateway/token-keys.js.map +1 -0
  316. package/resources/llm-token-gateway/token-keys.mjs +123 -0
  317. package/resources/llm-token-gateway/token-keys.mjs.map +1 -0
  318. package/resources/llm-token-gateway/usage.d.mts +319 -0
  319. package/resources/llm-token-gateway/usage.d.mts.map +1 -0
  320. package/resources/llm-token-gateway/usage.d.ts +319 -0
  321. package/resources/llm-token-gateway/usage.d.ts.map +1 -0
  322. package/resources/llm-token-gateway/usage.js +63 -0
  323. package/resources/llm-token-gateway/usage.js.map +1 -0
  324. package/resources/llm-token-gateway/usage.mjs +59 -0
  325. package/resources/llm-token-gateway/usage.mjs.map +1 -0
  326. package/resources/llm-token-gateway.d.mts +2 -0
  327. package/resources/llm-token-gateway.d.mts.map +1 -0
  328. package/resources/llm-token-gateway.d.ts +2 -0
  329. package/resources/llm-token-gateway.d.ts.map +1 -0
  330. package/resources/llm-token-gateway.js +6 -0
  331. package/resources/llm-token-gateway.js.map +1 -0
  332. package/resources/llm-token-gateway.mjs +3 -0
  333. package/resources/llm-token-gateway.mjs.map +1 -0
  334. package/resources/meeting-sessions/meeting-sessions.d.mts +8 -9
  335. package/resources/meeting-sessions/meeting-sessions.d.mts.map +1 -1
  336. package/resources/meeting-sessions/meeting-sessions.d.ts +8 -9
  337. package/resources/meeting-sessions/meeting-sessions.d.ts.map +1 -1
  338. package/resources/meeting-sessions/meeting-sessions.js +6 -6
  339. package/resources/meeting-sessions/meeting-sessions.js.map +1 -1
  340. package/resources/meeting-sessions/meeting-sessions.mjs +6 -6
  341. package/resources/meeting-sessions/meeting-sessions.mjs.map +1 -1
  342. package/resources/phone-numbers/jobs.d.mts +17 -5
  343. package/resources/phone-numbers/jobs.d.mts.map +1 -1
  344. package/resources/phone-numbers/jobs.d.ts +17 -5
  345. package/resources/phone-numbers/jobs.d.ts.map +1 -1
  346. package/resources/phone-numbers/jobs.js +4 -3
  347. package/resources/phone-numbers/jobs.js.map +1 -1
  348. package/resources/phone-numbers/jobs.mjs +4 -3
  349. package/resources/phone-numbers/jobs.mjs.map +1 -1
  350. package/resources/porting-orders/phone-number-blocks.d.mts +1 -1
  351. package/resources/porting-orders/phone-number-blocks.d.mts.map +1 -1
  352. package/resources/porting-orders/phone-number-blocks.d.ts +1 -1
  353. package/resources/porting-orders/phone-number-blocks.d.ts.map +1 -1
  354. package/resources/porting-orders/porting-orders.d.mts +1 -1
  355. package/resources/porting-orders/porting-orders.d.mts.map +1 -1
  356. package/resources/porting-orders/porting-orders.d.ts +1 -1
  357. package/resources/porting-orders/porting-orders.d.ts.map +1 -1
  358. package/resources/porting-orders/porting-orders.js.map +1 -1
  359. package/resources/porting-orders/porting-orders.mjs.map +1 -1
  360. package/resources/porting-phone-numbers.d.mts +1 -1
  361. package/resources/porting-phone-numbers.d.mts.map +1 -1
  362. package/resources/porting-phone-numbers.d.ts +1 -1
  363. package/resources/porting-phone-numbers.d.ts.map +1 -1
  364. package/resources/reputation/numbers.d.mts +10 -0
  365. package/resources/reputation/numbers.d.mts.map +1 -1
  366. package/resources/reputation/numbers.d.ts +10 -0
  367. package/resources/reputation/numbers.d.ts.map +1 -1
  368. package/resources/requirements.d.mts +2 -2
  369. package/resources/requirements.d.mts.map +1 -1
  370. package/resources/requirements.d.ts +2 -2
  371. package/resources/requirements.d.ts.map +1 -1
  372. package/resources/sip-registration-status.d.mts +149 -0
  373. package/resources/sip-registration-status.d.mts.map +1 -0
  374. package/resources/sip-registration-status.d.ts +149 -0
  375. package/resources/sip-registration-status.d.ts.map +1 -0
  376. package/resources/sip-registration-status.js +32 -0
  377. package/resources/sip-registration-status.js.map +1 -0
  378. package/resources/sip-registration-status.mjs +28 -0
  379. package/resources/sip-registration-status.mjs.map +1 -0
  380. package/resources/spend-limits.d.mts +335 -0
  381. package/resources/spend-limits.d.mts.map +1 -0
  382. package/resources/spend-limits.d.ts +335 -0
  383. package/resources/spend-limits.d.ts.map +1 -0
  384. package/resources/spend-limits.js +91 -0
  385. package/resources/spend-limits.js.map +1 -0
  386. package/resources/spend-limits.mjs +87 -0
  387. package/resources/spend-limits.mjs.map +1 -0
  388. package/resources/terms-of-service/agreements.d.mts +12 -0
  389. package/resources/terms-of-service/agreements.d.mts.map +1 -1
  390. package/resources/terms-of-service/agreements.d.ts +12 -0
  391. package/resources/terms-of-service/agreements.d.ts.map +1 -1
  392. package/resources/terms-of-service/terms-of-service.d.mts +15 -0
  393. package/resources/terms-of-service/terms-of-service.d.mts.map +1 -1
  394. package/resources/terms-of-service/terms-of-service.d.ts +15 -0
  395. package/resources/terms-of-service/terms-of-service.d.ts.map +1 -1
  396. package/resources/terms-of-service/terms-of-service.js.map +1 -1
  397. package/resources/terms-of-service/terms-of-service.mjs.map +1 -1
  398. package/resources/texml/texml.d.mts +7 -3
  399. package/resources/texml/texml.d.mts.map +1 -1
  400. package/resources/texml/texml.d.ts +7 -3
  401. package/resources/texml/texml.d.ts.map +1 -1
  402. package/resources/texml/texml.js +4 -2
  403. package/resources/texml/texml.js.map +1 -1
  404. package/resources/texml/texml.mjs +4 -2
  405. package/resources/texml/texml.mjs.map +1 -1
  406. package/resources/text-to-speech/text-to-speech.d.mts +4 -2
  407. package/resources/text-to-speech/text-to-speech.d.mts.map +1 -1
  408. package/resources/text-to-speech/text-to-speech.d.ts +4 -2
  409. package/resources/text-to-speech/text-to-speech.d.ts.map +1 -1
  410. package/resources/webhooks.d.mts +967 -6
  411. package/resources/webhooks.d.mts.map +1 -1
  412. package/resources/webhooks.d.ts +967 -6
  413. package/resources/webhooks.d.ts.map +1 -1
  414. package/resources/webhooks.js.map +1 -1
  415. package/resources/webhooks.mjs.map +1 -1
  416. package/resources/whatsapp/index.d.mts +1 -0
  417. package/resources/whatsapp/index.d.mts.map +1 -1
  418. package/resources/whatsapp/index.d.ts +1 -0
  419. package/resources/whatsapp/index.d.ts.map +1 -1
  420. package/resources/whatsapp/index.js +3 -1
  421. package/resources/whatsapp/index.js.map +1 -1
  422. package/resources/whatsapp/index.mjs +1 -0
  423. package/resources/whatsapp/index.mjs.map +1 -1
  424. package/resources/whatsapp/phone-numbers/calling-routing.d.mts +90 -0
  425. package/resources/whatsapp/phone-numbers/calling-routing.d.mts.map +1 -0
  426. package/resources/whatsapp/phone-numbers/calling-routing.d.ts +90 -0
  427. package/resources/whatsapp/phone-numbers/calling-routing.d.ts.map +1 -0
  428. package/resources/whatsapp/phone-numbers/calling-routing.js +66 -0
  429. package/resources/whatsapp/phone-numbers/calling-routing.js.map +1 -0
  430. package/resources/whatsapp/phone-numbers/calling-routing.mjs +62 -0
  431. package/resources/whatsapp/phone-numbers/calling-routing.mjs.map +1 -0
  432. package/resources/whatsapp/phone-numbers/index.d.mts +1 -0
  433. package/resources/whatsapp/phone-numbers/index.d.mts.map +1 -1
  434. package/resources/whatsapp/phone-numbers/index.d.ts +1 -0
  435. package/resources/whatsapp/phone-numbers/index.d.ts.map +1 -1
  436. package/resources/whatsapp/phone-numbers/index.js +3 -1
  437. package/resources/whatsapp/phone-numbers/index.js.map +1 -1
  438. package/resources/whatsapp/phone-numbers/index.mjs +1 -0
  439. package/resources/whatsapp/phone-numbers/index.mjs.map +1 -1
  440. package/resources/whatsapp/phone-numbers/phone-numbers.d.mts +4 -0
  441. package/resources/whatsapp/phone-numbers/phone-numbers.d.mts.map +1 -1
  442. package/resources/whatsapp/phone-numbers/phone-numbers.d.ts +4 -0
  443. package/resources/whatsapp/phone-numbers/phone-numbers.d.ts.map +1 -1
  444. package/resources/whatsapp/phone-numbers/phone-numbers.js +4 -0
  445. package/resources/whatsapp/phone-numbers/phone-numbers.js.map +1 -1
  446. package/resources/whatsapp/phone-numbers/phone-numbers.mjs +4 -0
  447. package/resources/whatsapp/phone-numbers/phone-numbers.mjs.map +1 -1
  448. package/resources/whatsapp/signup.d.mts +128 -0
  449. package/resources/whatsapp/signup.d.mts.map +1 -0
  450. package/resources/whatsapp/signup.d.ts +128 -0
  451. package/resources/whatsapp/signup.d.ts.map +1 -0
  452. package/resources/whatsapp/signup.js +42 -0
  453. package/resources/whatsapp/signup.js.map +1 -0
  454. package/resources/whatsapp/signup.mjs +38 -0
  455. package/resources/whatsapp/signup.mjs.map +1 -0
  456. package/resources/whatsapp/whatsapp.d.mts +4 -0
  457. package/resources/whatsapp/whatsapp.d.mts.map +1 -1
  458. package/resources/whatsapp/whatsapp.d.ts +4 -0
  459. package/resources/whatsapp/whatsapp.d.ts.map +1 -1
  460. package/resources/whatsapp/whatsapp.js +4 -0
  461. package/resources/whatsapp/whatsapp.js.map +1 -1
  462. package/resources/whatsapp/whatsapp.mjs +4 -0
  463. package/resources/whatsapp/whatsapp.mjs.map +1 -1
  464. package/src/client.ts +83 -0
  465. package/src/resources/ai/ai.ts +48 -4
  466. package/src/resources/ai/assistants/assistants.ts +676 -33
  467. package/src/resources/ai/assistants/deleted.ts +86 -0
  468. package/src/resources/ai/assistants/index.ts +13 -0
  469. package/src/resources/ai/assistants/versions.ts +54 -0
  470. package/src/resources/ai/avatars.ts +238 -0
  471. package/src/resources/ai/chat.ts +21 -2
  472. package/src/resources/ai/conversations/conversations.ts +9 -0
  473. package/src/resources/ai/embeddings/embeddings.ts +1 -1
  474. package/src/resources/ai/index.ts +18 -1
  475. package/src/resources/ai/memory/index.ts +9 -1
  476. package/src/resources/ai/memory/memory.ts +13 -1
  477. package/src/resources/ai/memory/namespaces/index.ts +11 -1
  478. package/src/resources/ai/memory/namespaces/namespaces.ts +85 -3
  479. package/src/resources/ai/memory/namespaces/profiles/index.ts +2 -0
  480. package/src/resources/ai/memory/namespaces/profiles/profiles.ts +71 -0
  481. package/src/resources/ai/openai/chat.ts +21 -2
  482. package/src/resources/ai/tools.ts +25 -7
  483. package/src/resources/calls/actions.ts +141 -25
  484. package/src/resources/calls/calls.ts +73 -17
  485. package/src/resources/calls/index.ts +1 -0
  486. package/src/resources/dir/dir.ts +269 -35
  487. package/src/resources/dir/index.ts +6 -0
  488. package/src/resources/dir/phone-numbers.ts +9 -10
  489. package/src/resources/dir/references.ts +9 -6
  490. package/src/resources/email-templates.ts +121 -19
  491. package/src/resources/enterprises/dir.ts +27 -3
  492. package/src/resources/enterprises/enterprises.ts +257 -26
  493. package/src/resources/enterprises/index.ts +6 -0
  494. package/src/resources/enterprises/reputation/external-verification.ts +125 -0
  495. package/src/resources/enterprises/reputation/index.ts +12 -0
  496. package/src/resources/enterprises/reputation/loa.ts +76 -3
  497. package/src/resources/enterprises/reputation/numbers.ts +256 -3
  498. package/src/resources/enterprises/reputation/remediation.ts +3 -2
  499. package/src/resources/enterprises/reputation/reputation.ts +70 -0
  500. package/src/resources/enterprises/verify-email.ts +117 -0
  501. package/src/resources/global-ip-assignment-health.ts +4 -4
  502. package/src/resources/global-ip-assignments-usage.ts +4 -4
  503. package/src/resources/index.ts +31 -0
  504. package/src/resources/infringement-claims.ts +4 -0
  505. package/src/resources/llm-token-gateway/index.ts +41 -0
  506. package/src/resources/llm-token-gateway/llm-token-gateway.ts +101 -0
  507. package/src/resources/llm-token-gateway/spend.ts +309 -0
  508. package/src/resources/llm-token-gateway/token-groups.ts +724 -0
  509. package/src/resources/llm-token-gateway/token-keys.ts +422 -0
  510. package/src/resources/llm-token-gateway/usage.ts +460 -0
  511. package/src/resources/llm-token-gateway.ts +3 -0
  512. package/src/resources/meeting-sessions/meeting-sessions.ts +8 -9
  513. package/src/resources/phone-numbers/jobs.ts +18 -5
  514. package/src/resources/porting-orders/phone-number-blocks.ts +9 -1
  515. package/src/resources/porting-orders/porting-orders.ts +9 -1
  516. package/src/resources/porting-phone-numbers.ts +9 -1
  517. package/src/resources/reputation/numbers.ts +12 -0
  518. package/src/resources/requirements.ts +2 -2
  519. package/src/resources/sip-registration-status.ts +188 -0
  520. package/src/resources/spend-limits.ts +428 -0
  521. package/src/resources/terms-of-service/agreements.ts +12 -0
  522. package/src/resources/terms-of-service/terms-of-service.ts +15 -0
  523. package/src/resources/texml/texml.ts +7 -3
  524. package/src/resources/text-to-speech/text-to-speech.ts +4 -2
  525. package/src/resources/webhooks.ts +1460 -228
  526. package/src/resources/whatsapp/index.ts +7 -0
  527. package/src/resources/whatsapp/phone-numbers/calling-routing.ts +114 -0
  528. package/src/resources/whatsapp/phone-numbers/index.ts +7 -0
  529. package/src/resources/whatsapp/phone-numbers/phone-numbers.ts +18 -0
  530. package/src/resources/whatsapp/signup.ts +188 -0
  531. package/src/resources/whatsapp/whatsapp.ts +18 -0
  532. package/src/version.ts +1 -1
  533. package/version.d.mts +1 -1
  534. package/version.d.ts +1 -1
  535. package/version.js +1 -1
  536. package/version.mjs +1 -1
@@ -13,6 +13,8 @@ import {
13
13
  ProfileListParams,
14
14
  ProfileListResponse,
15
15
  ProfileListResponsesDefaultFlatPagination,
16
+ ProfilePreviewParams,
17
+ ProfilePreviewResponse,
16
18
  ProfileRecallParams,
17
19
  ProfileRecallResponse,
18
20
  ProfileRememberParams,
@@ -22,12 +24,10 @@ import {
22
24
  Profiles,
23
25
  } from './profiles/profiles';
24
26
  import { APIPromise } from '../../../../core/api-promise';
27
+ import { buildHeaders } from '../../../../internal/headers';
25
28
  import { RequestOptions } from '../../../../internal/request-options';
26
29
  import { path } from '../../../../internal/utils/path';
27
30
 
28
- /**
29
- * Whether a write has finished.
30
- */
31
31
  export class Namespaces extends APIResource {
32
32
  profiles: ProfilesAPI.Profiles = new ProfilesAPI.Profiles(this._client);
33
33
  settings: SettingsAPI.Settings = new SettingsAPI.Settings(this._client);
@@ -54,6 +54,71 @@ export class Namespaces extends APIResource {
54
54
  const { namespace } = params;
55
55
  return this._client.get(path`/ai/memory/namespaces/${namespace}/operations/${operationID}`, options);
56
56
  }
57
+
58
+ /**
59
+ * Every namespace in your organization, `default` among them.
60
+ *
61
+ * @example
62
+ * ```ts
63
+ * const namespaces = await client.ai.memory.namespaces.list();
64
+ * ```
65
+ */
66
+ list(options?: RequestOptions): APIPromise<NamespaceListResponse> {
67
+ return this._client.get('/ai/memory/namespaces', options);
68
+ }
69
+
70
+ /**
71
+ * Create a namespace. An organization can have at most five, `default` among them
72
+ * — a sixth returns `403`.
73
+ *
74
+ * @example
75
+ * ```ts
76
+ * const namespace = await client.ai.memory.namespaces.create({
77
+ * name: 'staging',
78
+ * });
79
+ * ```
80
+ */
81
+ create(body: NamespaceCreateParams, options?: RequestOptions): APIPromise<NamespaceCreateResponse> {
82
+ return this._client.post('/ai/memory/namespaces', { body, ...options });
83
+ }
84
+
85
+ /**
86
+ * Delete a namespace and every profile and memory in it. `default` cannot be
87
+ * deleted. This cannot be undone.
88
+ *
89
+ * @example
90
+ * ```ts
91
+ * await client.ai.memory.namespaces.delete('namespace');
92
+ * ```
93
+ */
94
+ delete(namespace: string, options?: RequestOptions): APIPromise<void> {
95
+ return this._client.delete(path`/ai/memory/namespaces/${namespace}`, {
96
+ ...options,
97
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
98
+ });
99
+ }
100
+ }
101
+
102
+ /**
103
+ * An isolated memory store within your organization.
104
+ */
105
+ export interface Namespace {
106
+ /**
107
+ * The namespace's unique identifier.
108
+ */
109
+ id: string;
110
+
111
+ /**
112
+ * The namespace's name, used in the path. `default` exists for every organization.
113
+ */
114
+ name: string;
115
+ }
116
+
117
+ export interface NamespaceCreateResponse {
118
+ /**
119
+ * An isolated memory store within your organization.
120
+ */
121
+ data: Namespace;
57
122
  }
58
123
 
59
124
  export interface NamespaceRetrieveResponse {
@@ -77,17 +142,32 @@ export namespace NamespaceRetrieveResponse {
77
142
  }
78
143
  }
79
144
 
145
+ export interface NamespaceListResponse {
146
+ data: Array<Namespace>;
147
+ }
148
+
80
149
  export interface NamespaceRetrieveParams {
81
150
  namespace: string;
82
151
  }
83
152
 
153
+ export interface NamespaceCreateParams {
154
+ /**
155
+ * A name for the new namespace, unique within your organization.
156
+ */
157
+ name: string;
158
+ }
159
+
84
160
  Namespaces.Profiles = Profiles;
85
161
  Namespaces.Settings = Settings;
86
162
 
87
163
  export declare namespace Namespaces {
88
164
  export {
165
+ type Namespace as Namespace,
166
+ type NamespaceCreateResponse as NamespaceCreateResponse,
89
167
  type NamespaceRetrieveResponse as NamespaceRetrieveResponse,
168
+ type NamespaceListResponse as NamespaceListResponse,
90
169
  type NamespaceRetrieveParams as NamespaceRetrieveParams,
170
+ type NamespaceCreateParams as NamespaceCreateParams,
91
171
  };
92
172
 
93
173
  export {
@@ -96,6 +176,7 @@ export declare namespace Namespaces {
96
176
  type ProfileListResponse as ProfileListResponse,
97
177
  type ProfileDeleteResponse as ProfileDeleteResponse,
98
178
  type ProfileIngestResponse as ProfileIngestResponse,
179
+ type ProfilePreviewResponse as ProfilePreviewResponse,
99
180
  type ProfileRecallResponse as ProfileRecallResponse,
100
181
  type ProfileRememberResponse as ProfileRememberResponse,
101
182
  type ProfileRetrieveSummaryResponse as ProfileRetrieveSummaryResponse,
@@ -106,6 +187,7 @@ export declare namespace Namespaces {
106
187
  type ProfileRecallParams as ProfileRecallParams,
107
188
  type ProfileRememberParams as ProfileRememberParams,
108
189
  type ProfileRetrieveSummaryParams as ProfileRetrieveSummaryParams,
190
+ type ProfilePreviewParams as ProfilePreviewParams,
109
191
  };
110
192
 
111
193
  export {
@@ -14,6 +14,7 @@ export {
14
14
  type ProfileListResponse,
15
15
  type ProfileDeleteResponse,
16
16
  type ProfileIngestResponse,
17
+ type ProfilePreviewResponse,
17
18
  type ProfileRecallResponse,
18
19
  type ProfileRememberResponse,
19
20
  type ProfileRetrieveSummaryResponse,
@@ -23,6 +24,7 @@ export {
23
24
  type ProfileRecallParams,
24
25
  type ProfileRememberParams,
25
26
  type ProfileRetrieveSummaryParams,
27
+ type ProfilePreviewParams,
26
28
  type ProfileListResponsesDefaultFlatPagination,
27
29
  } from './profiles';
28
30
  export {
@@ -203,6 +203,42 @@ export class Profiles extends APIResource {
203
203
  const { namespace } = params;
204
204
  return this._client.get(path`/ai/memory/namespaces/${namespace}/profiles/${profileID}/summary`, options);
205
205
  }
206
+
207
+ /**
208
+ * Try a candidate note on one profile and see how that profile's summary would
209
+ * read under it, without saving the note and without touching the stored summary.
210
+ * Composes the same source query the apply path
211
+ * (`PATCH /ai/memory/namespaces/{namespace}/settings`) would use, so a preview
212
+ * cannot drift from what saving the note would produce. Reads the candidate alone
213
+ * -- the namespace's current instructions and the profile's stored summary are
214
+ * neither read nor replaced. Bounded at 120 seconds: the summary is generated on
215
+ * the spot rather than read from a stored one. Nothing about the request is
216
+ * stored.
217
+ *
218
+ * @example
219
+ * ```ts
220
+ * const response =
221
+ * await client.ai.memory.namespaces.profiles.preview(
222
+ * 'profile_id',
223
+ * {
224
+ * namespace: 'namespace',
225
+ * instructions:
226
+ * 'Lead with billing status. Prefer plain language over jargon.',
227
+ * },
228
+ * );
229
+ * ```
230
+ */
231
+ preview(
232
+ profileID: string,
233
+ params: ProfilePreviewParams,
234
+ options?: RequestOptions,
235
+ ): APIPromise<ProfilePreviewResponse> {
236
+ const { namespace, ...body } = params;
237
+ return this._client.post(path`/ai/memory/namespaces/${namespace}/profiles/${profileID}/summary/preview`, {
238
+ body,
239
+ ...options,
240
+ });
241
+ }
206
242
  }
207
243
 
208
244
  export type ProfileListResponsesDefaultFlatPagination = DefaultFlatPagination<ProfileListResponse>;
@@ -287,6 +323,23 @@ export namespace ProfileIngestResponse {
287
323
  }
288
324
  }
289
325
 
326
+ export interface ProfilePreviewResponse {
327
+ data: ProfilePreviewResponse.Data;
328
+ }
329
+
330
+ export namespace ProfilePreviewResponse {
331
+ export interface Data {
332
+ profile_id: string;
333
+
334
+ /**
335
+ * The summary this profile would carry under the candidate note. Null when nothing
336
+ * was generated -- the same signal `GET /summary` uses for a profile with no card
337
+ * yet.
338
+ */
339
+ text: string | null;
340
+ }
341
+ }
342
+
290
343
  export interface ProfileRecallResponse {
291
344
  data: Array<ProfileRecallResponse.Data>;
292
345
  }
@@ -441,6 +494,22 @@ export interface ProfileRetrieveSummaryParams {
441
494
  namespace: string;
442
495
  }
443
496
 
497
+ export interface ProfilePreviewParams {
498
+ /**
499
+ * Path param: The namespace. `default` exists for every organization.
500
+ */
501
+ namespace: string;
502
+
503
+ /**
504
+ * Body param: The candidate note to try. `null`, empty, or whitespace-only
505
+ * previews the neutral default -- the summary a profile returns to when
506
+ * instructions are cleared. Capped at 2000 characters, the same cap
507
+ * `PATCH /settings` applies on save; a longer note is refused with `422` before
508
+ * anything is generated.
509
+ */
510
+ instructions?: string | null;
511
+ }
512
+
444
513
  Profiles.Memories = Memories;
445
514
  Profiles.Sources = Sources;
446
515
 
@@ -450,6 +519,7 @@ export declare namespace Profiles {
450
519
  type ProfileListResponse as ProfileListResponse,
451
520
  type ProfileDeleteResponse as ProfileDeleteResponse,
452
521
  type ProfileIngestResponse as ProfileIngestResponse,
522
+ type ProfilePreviewResponse as ProfilePreviewResponse,
453
523
  type ProfileRecallResponse as ProfileRecallResponse,
454
524
  type ProfileRememberResponse as ProfileRememberResponse,
455
525
  type ProfileRetrieveSummaryResponse as ProfileRetrieveSummaryResponse,
@@ -460,6 +530,7 @@ export declare namespace Profiles {
460
530
  type ProfileRecallParams as ProfileRecallParams,
461
531
  type ProfileRememberParams as ProfileRememberParams,
462
532
  type ProfileRetrieveSummaryParams as ProfileRetrieveSummaryParams,
533
+ type ProfilePreviewParams as ProfilePreviewParams,
463
534
  };
464
535
 
465
536
  export {
@@ -97,9 +97,28 @@ export interface ChatCreateCompletionParams {
97
97
  logprobs?: boolean;
98
98
 
99
99
  /**
100
- * Maximum number of completion tokens the model should generate.
100
+ * Maximum number of completion (output) tokens, including reasoning and answer
101
+ * tokens combined. An omitted or null limit defaults to 8192 unless the model is
102
+ * excluded from that default; excluded models leave the limit to the serving
103
+ * engine. Explicit values and applied defaults are clamped to the model's
104
+ * max_completion_tokens metadata when that ceiling is set (see GET
105
+ * /v2/ai/openai/models). An omitted limit on an excluded model remains unset even
106
+ * when metadata declares a ceiling. Input and output together must fit the model's
107
+ * context window. Set an explicit limit when a bounded generation budget is
108
+ * required. For current Telnyx-hosted models, omitted or null limits default to
109
+ * 8192 for `zai-org/GLM-5.3`, `zai-org/GLM-5.3-Flash` and
110
+ * `deepseek-ai/DeepSeek-V4.1-Flash`. The hosted exclusions are
111
+ * `moonshotai/Kimi-K3`, `moonshotai/Kimi-K2.6`, `moonshotai/Kimi-K2.5`,
112
+ * `zai-org/GLM-5.2`, `zai-org/GLM-5.1-FP8`, `MiniMaxAI/MiniMax-M3-MXFP8`,
113
+ * `MiniMaxAI/MiniMax-M2.7`, `Qwen/Qwen3.8-27B`, `Qwen/Qwen3-235B-A22B`,
114
+ * `deepseek-ai/DeepSeek-V4-Flash-0731`, `meta-llama/Llama-3.3-70B-Instruct`,
115
+ * `meta-llama/Meta-Llama-3.1-70B-Instruct`,
116
+ * `meta-llama/Meta-Llama-3.1-8B-Instruct` and `google/gemma-2b-it`. Legacy
117
+ * external and fine-tuned model IDs can also bypass the default; model discovery
118
+ * reports completion ceilings, not whether this default applies. Set an explicit
119
+ * limit for predictable behavior across models.
101
120
  */
102
- max_tokens?: number;
121
+ max_tokens?: number | null;
103
122
 
104
123
  /**
105
124
  * This is an alternative to `top_p` that
@@ -60,11 +60,14 @@ export class Tools extends APIResource {
60
60
  *
61
61
  * @example
62
62
  * ```ts
63
- * const tool = await client.ai.tools.delete('tool_id');
63
+ * await client.ai.tools.delete('tool_id');
64
64
  * ```
65
65
  */
66
- delete(toolID: string, options?: RequestOptions): APIPromise<unknown> {
67
- return this._client.delete(path`/ai/tools/${toolID}`, options);
66
+ delete(toolID: string, options?: RequestOptions): APIPromise<void> {
67
+ return this._client.delete(path`/ai/tools/${toolID}`, {
68
+ ...options,
69
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
70
+ });
68
71
  }
69
72
 
70
73
  /**
@@ -105,13 +108,22 @@ export interface PayToolParams {
105
108
  */
106
109
  connector_name: string;
107
110
 
111
+ /**
112
+ * Custom key/value parameters forwarded to the pay connector as `parameters` in
113
+ * the processor request. String values may use `{{dynamic_variable}}` templating,
114
+ * resolved per call.
115
+ */
116
+ connector_parameters?: { [key: string]: unknown };
117
+
108
118
  /**
109
119
  * Default currency for payments processed by this tool.
110
120
  */
111
121
  currency?: string;
112
122
 
113
123
  /**
114
- * Optional description of the pay tool that will be passed to the assistant.
124
+ * Description of the pay tool shown to the assistant so it knows when to call the
125
+ * tool. Not sent to the payment connector — the per-call `description` argument
126
+ * the assistant passes is what reaches the processor.
115
127
  */
116
128
  description?: string | null;
117
129
 
@@ -119,6 +131,15 @@ export interface PayToolParams {
119
131
  * Default payment method for payments processed by this tool.
120
132
  */
121
133
  payment_method?: string;
134
+
135
+ /**
136
+ * Restricts accepted card numbers to the listed card types. When the caller enters
137
+ * a card number that does not match one of the listed types, Pay treats the input
138
+ * as invalid and re-prompts for the card number.
139
+ */
140
+ valid_card_types?: Array<
141
+ 'visa' | 'mastercard' | 'amex' | 'maestro' | 'discover' | 'optima' | 'jcb' | 'diners-club' | 'enroute'
142
+ >;
122
143
  }
123
144
 
124
145
  export interface SharedToolResponse {
@@ -181,8 +202,6 @@ export namespace UpdateDynamicVariablesToolParams {
181
202
  }
182
203
  }
183
204
 
184
- export type ToolDeleteResponse = unknown;
185
-
186
205
  export interface ToolListParams extends DefaultFlatPaginationParams {
187
206
  /**
188
207
  * Filter results by filter name.
@@ -300,7 +319,6 @@ export declare namespace Tools {
300
319
  type PayToolParams as PayToolParams,
301
320
  type SharedToolResponse as SharedToolResponse,
302
321
  type UpdateDynamicVariablesToolParams as UpdateDynamicVariablesToolParams,
303
- type ToolDeleteResponse as ToolDeleteResponse,
304
322
  type SharedToolResponsesDefaultFlatPagination as SharedToolResponsesDefaultFlatPagination,
305
323
  type ToolListParams as ToolListParams,
306
324
  type ToolCreateParams as ToolCreateParams,
@@ -18,6 +18,8 @@ export class Actions extends APIResource {
18
18
  *
19
19
  * **Expected Webhooks:**
20
20
  *
21
+ * - [`call.conversation.created`](/api-reference/callbacks/call-conversation-created)
22
+ * includes `conversation_id` during startup
21
23
  * - `call.conversation.ended`
22
24
  * - `call.conversation_insights.generated`
23
25
  *
@@ -60,9 +62,33 @@ export class Actions extends APIResource {
60
62
  * Answer an incoming call. You must issue this command before executing subsequent
61
63
  * commands on an incoming call.
62
64
  *
65
+ * To answer with an AI assistant, include `assistant.id` and any per-call
66
+ * overrides in the `assistant` object. Telnyx attempts to warm up the assistant
67
+ * before answering the call, then starts the assistant automatically when the call
68
+ * is answered. Do not also send `ai_assistant_start` for this flow. The HTTP
69
+ * success response can arrive before the call is answered; use the `call.answered`
70
+ * webhook to track the answer. If warm-up fails, Telnyx falls back to starting the
71
+ * assistant after answering.
72
+ *
73
+ * When `assistant.id` is supplied, obtain the conversation ID from
74
+ * `data.payload.conversation_id` in the
75
+ * [call.conversation.created](/api-reference/callbacks/call-conversation-created)
76
+ * webhook and correlate it using `data.payload.call_control_id`. The `answer` HTTP
77
+ * response does not include `conversation_id`. The created event is emitted during
78
+ * assistant startup and does not indicate that the assistant is ready to speak.
79
+ *
80
+ * Set the assistant voice with `assistant.voice_settings.voice` and speech-to-text
81
+ * settings with `assistant.transcription`. You can reuse one stored assistant with
82
+ * different per-call settings. Warm-up prepares assistant configuration and
83
+ * dependencies; it does not wait for the greeting audio to be ready or guarantee
84
+ * zero silence after answer. A plain `answer` followed by `ai_assistant_start`
85
+ * performs assistant startup after the call has already been answered.
86
+ *
63
87
  * **Expected Webhooks:**
64
88
  *
65
89
  * - `call.answered`
90
+ * - `call.conversation.created` when the requested assistant conversation is
91
+ * created
66
92
  * - `call.hold` and `call.unhold` if the call is held/unheld
67
93
  * - `call.deepfake_detection.result` if `deepfake_detection` was enabled
68
94
  * - `call.deepfake_detection.error` if `deepfake_detection` was enabled and an
@@ -266,6 +292,8 @@ export class Actions extends APIResource {
266
292
  *
267
293
  * **Expected Webhooks:**
268
294
  *
295
+ * - [`call.conversation.created`](/api-reference/callbacks/call-conversation-created)
296
+ * includes `conversation_id` during startup
269
297
  * - `call.ai_gather.ended`
270
298
  * - `call.conversation.ended`
271
299
  * - `call.ai_gather.partial_results` (if `send_partial_results` is set to `true`)
@@ -888,6 +916,9 @@ export class Actions extends APIResource {
888
916
  * `answering_machine_detection=premium` was requested
889
917
  * - `call.machine.premium.greeting.ended` if `answering_machine_detection=premium`
890
918
  * was requested and a beep was detected
919
+ * - `call.machine.premium.call_screening.detected` if
920
+ * `answering_machine_detection=premium_ios_call_screening_detection` was
921
+ * requested and an Apple Call Screening tone was detected
891
922
  *
892
923
  * @example
893
924
  * ```ts
@@ -1149,6 +1180,36 @@ export interface CallControlCommandResultWithConversationID {
1149
1180
  */
1150
1181
  export type ConversationRelayInterruptible = 'none' | 'any' | 'speech' | 'dtmf';
1151
1182
 
1183
+ /**
1184
+ * Engine-specific transcription settings for Conversation Relay. This accepts the
1185
+ * same provider-specific options used by the Call Transcription Start command,
1186
+ * such as `transcription_model`, without requiring the engine discriminator to be
1187
+ * repeated inside this object. With Deepgram Flux (`deepgram/flux`),
1188
+ * `interim_results`, `eot_threshold` and `eager_eot_threshold` control the interim
1189
+ * prompts and the `eagerEndOfTurn` and `turnResumed` frames sent to your WebSocket
1190
+ * server.
1191
+ */
1192
+ export interface ConversationRelayTranscriptionEngineConfig {
1193
+ /**
1194
+ * Deepgram Flux: confidence at which an `eagerEndOfTurn` frame is sent before the
1195
+ * final prompt, followed by `turnResumed` if the caller keeps talking. When
1196
+ * omitted, these frames are not sent.
1197
+ */
1198
+ eager_eot_threshold?: number;
1199
+
1200
+ /**
1201
+ * Deepgram Flux: confidence required to end the caller's turn.
1202
+ */
1203
+ eot_threshold?: number;
1204
+
1205
+ /**
1206
+ * Deepgram Flux: send interim transcripts as `prompt` frames with `last: false`.
1207
+ */
1208
+ interim_results?: boolean;
1209
+
1210
+ [k: string]: unknown;
1211
+ }
1212
+
1152
1213
  export interface DeepgramNova2Config {
1153
1214
  transcription_engine: 'deepgram/nova-2';
1154
1215
 
@@ -1652,9 +1713,10 @@ export interface TelnyxVoiceSettings {
1652
1713
  type: 'telnyx';
1653
1714
 
1654
1715
  /**
1655
- * The voice speed to be used for the voice. The voice speed must be between 0.1
1656
- * and 2.0. Default value is 1.0. Not supported for `Telnyx.Bayan.*` or
1657
- * `Telnyx.Sukhan.*` voices.
1716
+ * The voice speed to be used for the voice. Telnyx `Ultra` voices accept values
1717
+ * from 0.6 to 1.5; values outside that range are rejected by the synthesis engine.
1718
+ * `Qwen3TTS` and `KokoroTTS` accept the field but do not apply it. Default value
1719
+ * is 1.0. Not supported for `Telnyx.Bayan.*` or `Telnyx.Sukhan.*` voices.
1658
1720
  */
1659
1721
  voice_speed?: number;
1660
1722
  }
@@ -2539,9 +2601,11 @@ export interface ActionUpdateClientStateResponse {
2539
2601
 
2540
2602
  export interface ActionStartAIAssistantParams {
2541
2603
  /**
2542
- * AI Assistant configuration. All fields except `id` are optional — the
2543
- * assistant's stored configuration will be used as fallback for any omitted
2544
- * fields.
2604
+ * AI Assistant configuration and per-call overrides. All fields except `id` are
2605
+ * optional. Omitted assistant fields use the stored configuration. Supplied
2606
+ * `voice_settings` and `transcription` objects replace their stored objects rather
2607
+ * than merging individual settings; include every setting you want to retain.
2608
+ * `dynamic_variables` are merged, with request values taking precedence.
2545
2609
  */
2546
2610
  assistant?: CallsAPI.CallAssistantRequest;
2547
2611
 
@@ -2613,9 +2677,11 @@ export interface ActionStopAIAssistantParams {
2613
2677
 
2614
2678
  export interface ActionAnswerParams {
2615
2679
  /**
2616
- * AI Assistant configuration. All fields except `id` are optional — the
2617
- * assistant's stored configuration will be used as fallback for any omitted
2618
- * fields.
2680
+ * AI Assistant configuration and per-call overrides. All fields except `id` are
2681
+ * optional. Omitted assistant fields use the stored configuration. Supplied
2682
+ * `voice_settings` and `transcription` objects replace their stored objects rather
2683
+ * than merging individual settings; include every setting you want to retain.
2684
+ * `dynamic_variables` are merged, with request values taking precedence.
2619
2685
  */
2620
2686
  assistant?: CallsAPI.CallAssistantRequest;
2621
2687
 
@@ -2766,7 +2832,9 @@ export interface ActionAnswerParams {
2766
2832
  stream_url?: string;
2767
2833
 
2768
2834
  /**
2769
- * Enable transcription upon call answer. The default value is false.
2835
+ * Enable standalone call transcription upon call answer. The default value is
2836
+ * false. Configure this feature with `transcription_config`. To configure speech
2837
+ * recognition for an AI assistant, use `assistant.transcription` instead.
2770
2838
  */
2771
2839
  transcription?: boolean;
2772
2840
 
@@ -3275,10 +3343,10 @@ export interface ActionGatherUsingAIParams {
3275
3343
  * the `VoiceId` (e.g., `AWS.Polly.Joanna-Neural`). Check the
3276
3344
  * [available voices](https://docs.aws.amazon.com/polly/latest/dg/available-voices.html)
3277
3345
  * for compatibility.
3278
- * - **Azure:** Use `Azure.<VoiceId>. (e.g. Azure.en-CA-ClaraNeural,
3279
- * Azure.en-CA-LiamNeural, Azure.en-US-BrianMultilingualNeural,
3280
- * Azure.en-US-Ava:DragonHDLatestNeural. For a complete list of voices, go to
3281
- * [Azure Voice Gallery](https://speech.microsoft.com/portal/voicegallery).)
3346
+ * - **Azure:** Use `Azure.<VoiceId>` (e.g., `Azure.en-CA-ClaraNeural`,
3347
+ * `Azure.en-CA-LiamNeural`, `Azure.en-US-BrianMultilingualNeural`,
3348
+ * `Azure.en-US-Ava:DragonHDLatestNeural`). For a complete list of voices, go to
3349
+ * [Azure Voice Gallery](https://speech.microsoft.com/portal/voicegallery).
3282
3350
  * - **ElevenLabs:** Use `ElevenLabs.<ModelId>.<VoiceId>` (e.g.,
3283
3351
  * `ElevenLabs.BaseModel.John`). The `ModelId` part is optional. To use
3284
3352
  * ElevenLabs, you must provide your ElevenLabs API key as an integration secret
@@ -4192,9 +4260,12 @@ export interface ActionReferParams {
4192
4260
 
4193
4261
  export interface ActionRejectParams {
4194
4262
  /**
4195
- * Cause for call rejection.
4263
+ * Cause for call rejection. The cause sets the SIP response the caller receives:
4264
+ * `USER_BUSY` sends 486 User Busy, `CALL_REJECTED` sends 603 Decline, `NOT_FOUND`
4265
+ * sends 404 Not Found, and `TEMPORARILY_UNAVAILABLE` sends 480 Temporarily
4266
+ * Unavailable.
4196
4267
  */
4197
- cause: 'CALL_REJECTED' | 'USER_BUSY';
4268
+ cause: 'CALL_REJECTED' | 'NOT_FOUND' | 'TEMPORARILY_UNAVAILABLE' | 'USER_BUSY';
4198
4269
 
4199
4270
  /**
4200
4271
  * Use this field to add state to every subsequent webhook. It must be a valid
@@ -4795,10 +4866,20 @@ export interface ActionTransferParams {
4795
4866
  * 'greeting_end' or 'detect_words' is used and a 'machine' is detected, you will
4796
4867
  * receive another 'call.machine.greeting.ended' webhook when the answering machine
4797
4868
  * greeting ends with a beep or silence. If `detect_beep` is used, you will only
4798
- * receive 'call.machine.greeting.ended' if a beep is detected.
4869
+ * receive 'call.machine.greeting.ended' if a beep is detected. If
4870
+ * `answering_machine_detection` is set to `premium_ios_call_screening_detection`,
4871
+ * Premium AMD runs with iOS Call Screening support: after an initial `machine`
4872
+ * result, Telnyx listens for the iOS call-screening prompt to end or for an Apple
4873
+ * Call Screening tone, sends `call.machine.premium.greeting.ended` with
4874
+ * `result=prompt_ended` or `call.machine.premium.call_screening.detected` with
4875
+ * `result=screening` respectively. When the Apple Call Screening tone is detected,
4876
+ * Premium AMD is restarted on the screened call and a
4877
+ * `call.machine.premium.detection.ended` webhook with the post-screening
4878
+ * classification follows.
4799
4879
  */
4800
4880
  answering_machine_detection?:
4801
4881
  | 'premium'
4882
+ | 'premium_ios_call_screening_detection'
4802
4883
  | 'detect'
4803
4884
  | 'detect_beep'
4804
4885
  | 'detect_words'
@@ -4809,7 +4890,8 @@ export interface ActionTransferParams {
4809
4890
  * Optional configuration parameters to modify 'answering_machine_detection'
4810
4891
  * performance. Only `total_analysis_time_millis` and `greeting_duration_millis`
4811
4892
  * parameters are applicable when `premium` is selected as
4812
- * answering_machine_detection.
4893
+ * answering_machine_detection. `prompt_end_timeout_millis` is additionally
4894
+ * applicable when `premium_ios_call_screening_detection` is selected.
4813
4895
  */
4814
4896
  answering_machine_detection_config?: ActionTransferParams.AnsweringMachineDetectionConfig;
4815
4897
 
@@ -5077,7 +5159,8 @@ export namespace ActionTransferParams {
5077
5159
  * Optional configuration parameters to modify 'answering_machine_detection'
5078
5160
  * performance. Only `total_analysis_time_millis` and `greeting_duration_millis`
5079
5161
  * parameters are applicable when `premium` is selected as
5080
- * answering_machine_detection.
5162
+ * answering_machine_detection. `prompt_end_timeout_millis` is additionally
5163
+ * applicable when `premium_ios_call_screening_detection` is selected.
5081
5164
  */
5082
5165
  export interface AnsweringMachineDetectionConfig {
5083
5166
  /**
@@ -5177,6 +5260,14 @@ export namespace ActionTransferParams {
5177
5260
  */
5178
5261
  maximum_word_length_millis?: number;
5179
5262
 
5263
+ /**
5264
+ * Maximum time Telnyx waits, in milliseconds, for the iOS call-screening prompt to
5265
+ * end after Premium AMD initially detects a `machine`. Used when
5266
+ * `answering_machine_detection` is `premium_ios_call_screening_detection`.
5267
+ * Defaults to 5000 milliseconds.
5268
+ */
5269
+ prompt_end_timeout_millis?: number;
5270
+
5180
5271
  /**
5181
5272
  * Minimum noise threshold for any analysis.
5182
5273
  */
@@ -5368,9 +5459,12 @@ export interface ActionStartConversationRelayParams {
5368
5459
  * Engine-specific transcription settings for Conversation Relay. This accepts the
5369
5460
  * same provider-specific options used by the Call Transcription Start command,
5370
5461
  * such as `transcription_model`, without requiring the engine discriminator to be
5371
- * repeated inside this object.
5462
+ * repeated inside this object. With Deepgram Flux (`deepgram/flux`),
5463
+ * `interim_results`, `eot_threshold` and `eager_eot_threshold` control the interim
5464
+ * prompts and the `eagerEndOfTurn` and `turnResumed` frames sent to your WebSocket
5465
+ * server.
5372
5466
  */
5373
- transcription_engine_config?: { [key: string]: unknown };
5467
+ transcription_engine_config?: ConversationRelayTranscriptionEngineConfig;
5374
5468
 
5375
5469
  /**
5376
5470
  * Text-to-speech provider. If omitted, Telnyx derives it from `voice` or
@@ -5395,10 +5489,10 @@ export interface ActionStartConversationRelayParams {
5395
5489
  * the `VoiceId` (e.g., `AWS.Polly.Joanna-Neural`). Check the
5396
5490
  * [available voices](https://docs.aws.amazon.com/polly/latest/dg/available-voices.html)
5397
5491
  * for compatibility.
5398
- * - **Azure:** Use `Azure.<VoiceId>. (e.g. Azure.en-CA-ClaraNeural,
5399
- * Azure.en-CA-LiamNeural, Azure.en-US-BrianMultilingualNeural,
5400
- * Azure.en-US-Ava:DragonHDLatestNeural. For a complete list of voices, go to
5401
- * [Azure Voice Gallery](https://speech.microsoft.com/portal/voicegallery).)
5492
+ * - **Azure:** Use `Azure.<VoiceId>` (e.g., `Azure.en-CA-ClaraNeural`,
5493
+ * `Azure.en-CA-LiamNeural`, `Azure.en-US-BrianMultilingualNeural`,
5494
+ * `Azure.en-US-Ava:DragonHDLatestNeural`). For a complete list of voices, go to
5495
+ * [Azure Voice Gallery](https://speech.microsoft.com/portal/voicegallery).
5402
5496
  * - **ElevenLabs:** Use `ElevenLabs.<ModelId>.<VoiceId>` (e.g.,
5403
5497
  * `ElevenLabs.BaseModel.John`). The `ModelId` part is optional. To use
5404
5498
  * ElevenLabs, you must provide your ElevenLabs API key as an integration secret
@@ -5561,6 +5655,15 @@ export interface ActionPayParams {
5561
5655
  */
5562
5656
  metadata?: { [key: string]: unknown };
5563
5657
 
5658
+ /**
5659
+ * Minimum number of digits the caller must enter when collecting a credit-card
5660
+ * billing postal code. Applies only when `postal_code` is `true` or `"true"` and
5661
+ * no `payment_token` is supplied. The default is 1. The maximum number of digits
5662
+ * collected is the greater of 10 and this value. This does not validate the length
5663
+ * of a postal code supplied directly in `postal_code`.
5664
+ */
5665
+ min_postal_code_length?: number;
5666
+
5564
5667
  /**
5565
5668
  * Additional parameters forwarded to the Pay connector.
5566
5669
  */
@@ -5576,6 +5679,18 @@ export interface ActionPayParams {
5576
5679
  */
5577
5680
  payment_token?: string;
5578
5681
 
5682
+ /**
5683
+ * Controls billing postal code collection for credit-card payments when no
5684
+ * `payment_token` is supplied. Set to `true` or the string `"true"` (the default)
5685
+ * to prompt the caller for a postal code. Set to `false` or the string `"false"`
5686
+ * to skip the postal code prompt without supplying a postal code to the payment
5687
+ * connector. Supply any other non-empty string, such as `"90210"`, to use that
5688
+ * postal code without prompting. Empty or whitespace-only strings are rejected.
5689
+ * This option does not affect ACH debit payments or payments using an existing
5690
+ * token.
5691
+ */
5692
+ postal_code?: string | boolean;
5693
+
5579
5694
  /**
5580
5695
  * Custom text-to-speech prompts keyed by payment collection step.
5581
5696
  */
@@ -5661,6 +5776,7 @@ export declare namespace Actions {
5661
5776
  type CallControlCommandResult as CallControlCommandResult,
5662
5777
  type CallControlCommandResultWithConversationID as CallControlCommandResultWithConversationID,
5663
5778
  type ConversationRelayInterruptible as ConversationRelayInterruptible,
5779
+ type ConversationRelayTranscriptionEngineConfig as ConversationRelayTranscriptionEngineConfig,
5664
5780
  type DeepgramNova2Config as DeepgramNova2Config,
5665
5781
  type DeepgramNova3Config as DeepgramNova3Config,
5666
5782
  type DeveloperMessage as DeveloperMessage,