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
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Deleted = void 0;
5
+ const resource_1 = require("../../../core/resource.js");
6
+ const pagination_1 = require("../../../core/pagination.js");
7
+ const path_1 = require("../../../internal/utils/path.js");
8
+ /**
9
+ * Configure AI assistant specifications
10
+ */
11
+ class Deleted extends resource_1.APIResource {
12
+ /**
13
+ * List the organization's soft-deleted assistants in the Recently Deleted list.
14
+ *
15
+ * Each entry includes `deleted_at` and `permanently_deleted_at`, the point after
16
+ * which the assistant is erased automatically and can no longer be restored.
17
+ *
18
+ * @example
19
+ * ```ts
20
+ * // Automatically fetches more pages as needed.
21
+ * for await (const deletedAssistant of client.ai.assistants.deleted.list()) {
22
+ * // ...
23
+ * }
24
+ * ```
25
+ */
26
+ list(query = {}, options) {
27
+ return this._client.getAPIList('/ai/assistants/deleted', (pagination_1.DefaultFlatPagination), {
28
+ query,
29
+ ...options,
30
+ });
31
+ }
32
+ /**
33
+ * Retrieve a soft-deleted assistant from the Recently Deleted list by
34
+ * `assistant_id`, including its `deleted_at` and `permanently_deleted_at`
35
+ * timestamps. This is a read-only view; the assistant cannot be modified while it
36
+ * remains deleted.
37
+ *
38
+ * @example
39
+ * ```ts
40
+ * const deletedAssistant =
41
+ * await client.ai.assistants.deleted.get('assistant_id');
42
+ * ```
43
+ */
44
+ get(assistantID, options) {
45
+ return this._client.get((0, path_1.path) `/ai/assistants/${assistantID}/deleted`, options);
46
+ }
47
+ }
48
+ exports.Deleted = Deleted;
49
+ //# sourceMappingURL=deleted.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleted.js","sourceRoot":"","sources":["../../../src/resources/ai/assistants/deleted.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,4DAIkC;AAElC,0DAAoD;AAEpD;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;;;;;OAaG;IACH,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,wBAAwB,EAAE,CAAA,kCAAuC,CAAA,EAAE;YAChG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;OAWG;IACH,GAAG,CAAC,WAAmB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kBAAkB,WAAW,UAAU,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;CACF;AAxCD,0BAwCC"}
@@ -0,0 +1,45 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../../core/resource.mjs";
3
+ import { DefaultFlatPagination, } from "../../../core/pagination.mjs";
4
+ import { path } from "../../../internal/utils/path.mjs";
5
+ /**
6
+ * Configure AI assistant specifications
7
+ */
8
+ export class Deleted extends APIResource {
9
+ /**
10
+ * List the organization's soft-deleted assistants in the Recently Deleted list.
11
+ *
12
+ * Each entry includes `deleted_at` and `permanently_deleted_at`, the point after
13
+ * which the assistant is erased automatically and can no longer be restored.
14
+ *
15
+ * @example
16
+ * ```ts
17
+ * // Automatically fetches more pages as needed.
18
+ * for await (const deletedAssistant of client.ai.assistants.deleted.list()) {
19
+ * // ...
20
+ * }
21
+ * ```
22
+ */
23
+ list(query = {}, options) {
24
+ return this._client.getAPIList('/ai/assistants/deleted', (DefaultFlatPagination), {
25
+ query,
26
+ ...options,
27
+ });
28
+ }
29
+ /**
30
+ * Retrieve a soft-deleted assistant from the Recently Deleted list by
31
+ * `assistant_id`, including its `deleted_at` and `permanently_deleted_at`
32
+ * timestamps. This is a read-only view; the assistant cannot be modified while it
33
+ * remains deleted.
34
+ *
35
+ * @example
36
+ * ```ts
37
+ * const deletedAssistant =
38
+ * await client.ai.assistants.deleted.get('assistant_id');
39
+ * ```
40
+ */
41
+ get(assistantID, options) {
42
+ return this._client.get(path `/ai/assistants/${assistantID}/deleted`, options);
43
+ }
44
+ }
45
+ //# sourceMappingURL=deleted.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleted.mjs","sourceRoot":"","sources":["../../../src/resources/ai/assistants/deleted.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAGrD,OAAO,EACL,qBAAqB,GAGtB,qCAAiC;AAElC,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;OAaG;IACH,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,wBAAwB,EAAE,CAAA,qBAAuC,CAAA,EAAE;YAChG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;OAWG;IACH,GAAG,CAAC,WAAmB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kBAAkB,WAAW,UAAU,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;CACF"}
@@ -1,5 +1,6 @@
1
- export { Assistants, type ArithmeticExpression, type Assistant, type AssistantA2AAgent, type AssistantIntegration, type AssistantMcpServer, type AssistantTool, type AssistantsList, type AudioVisualizerConfig, type AuthenticationMethod, type BooleanOpExpression, type ComparisonExpression, type ConversationFlow, type ConversationFlowReq, type EnabledFeatures, type Expression, type ExternalLlm, type ExternalLlmReq, type FallbackConfig, type FallbackConfigReq, type FlowEdge, type FlowNode, type FlowNodeReq, type HangupTool, type HangupToolParams, type ImportMetadata, type InferenceEmbedding, type InferenceEmbeddingInterruptionSettings, type InferenceEmbeddingVoiceSettings, type InferenceEmbeddingWebhookToolParams, type InsightSettings, type MessagingSettings, type NodePosition, type Observability, type ObservabilityReq, type ObservabilityStatus, type PostConversationSettings, type PostConversationSettingsReq, type PrivacySettings, type PromptSyncStatus, type RetrievalTool, type SpeakNode, type SpeakNodeReq, type StartSpeakingPlan, type TelephonySettings, type ToolNode, type ToolNodeReq, type TranscriptionEndpointingPlan, type TranscriptionSettings, type TranscriptionSettingsConfig, type TransferTool, type VoiceSettings, type WebhookTool, type WidgetSettings, type AssistantDeleteResponse, type AssistantChatResponse, type AssistantGetTexmlResponse, type AssistantSendSMSResponse, type AssistantCreateParams, type AssistantImportsParams, type AssistantRetrieveParams, type AssistantUpdateParams, type AssistantChatParams, type AssistantCloneParams, type AssistantSendSMSParams, } from "./assistants.mjs";
1
+ export { Assistants, type ArithmeticExpression, type Assistant, type AssistantA2AAgent, type AssistantIntegration, type AssistantMcpServer, type AssistantTool, type AssistantsList, type AudioVisualizerConfig, type AuthenticationMethod, type AvatarSettingsRequest, type BooleanOpExpression, type ComparisonExpression, type ConversationFlow, type ConversationFlowReq, type DelegationSettings, type EnabledFeatures, type Expression, type ExternalLlm, type ExternalLlmReq, type FallbackConfig, type FallbackConfigReq, type FlowEdge, type FlowNode, type FlowNodeReq, type HangupTool, type HangupToolParams, type ImportMetadata, type InferenceEmbedding, type InferenceEmbeddingInterruptionSettings, type InferenceEmbeddingVoiceSettings, type InferenceEmbeddingWebhookToolParams, type InsightSettings, type MessagingSettings, type NodePosition, type Observability, type ObservabilityReq, type ObservabilityStatus, type PostConversationSettings, type PostConversationSettingsReq, type PrivacySettings, type PromptSyncStatus, type RetrievalTool, type SpeakNode, type SpeakNodeReq, type StartSpeakingPlan, type TelephonySettings, type TelnyxAvatarSettings, type ToolNode, type ToolNodeReq, type TranscriptionEndpointingPlan, type TranscriptionSettings, type TranscriptionSettingsConfig, type TransferTool, type VoiceSettings, type WebhookTool, type WebsocketSettings, type WidgetSettings, type AssistantDeleteResponse, type AssistantChatResponse, type AssistantGetTexmlResponse, type AssistantSendSMSResponse, type AssistantWhatsappResponse, type AssistantCreateParams, type AssistantImportsParams, type AssistantDeleteParams, type AssistantRetrieveParams, type AssistantUpdateParams, type AssistantChatParams, type AssistantCloneParams, type AssistantSendSMSParams, type AssistantWhatsappParams, } from "./assistants.mjs";
2
2
  export { CanaryDeploys, type CanaryDeploy, type CanaryDeployResponse, type Clause, type RolloutSlot, type RuleInput, type RuleOutput, type Serve, type CanaryDeployCreateParams, type CanaryDeployUpdateParams, } from "./canary-deploys.mjs";
3
+ export { Deleted, type DeletedAssistant, type DeletedListParams, type DeletedAssistantsDefaultFlatPagination, } from "./deleted.mjs";
3
4
  export { Instructions, type InstructionEnhanceResponse, type InstructionEnhanceParams } from "./instructions.mjs";
4
5
  export { ScheduledEvents, type ConversationChannelType, type EventStatus, type ScheduledCallSettings, type ScheduledEventResponse, type ScheduledPhoneCallEventResponse, type ScheduledSMSEventResponse, type ScheduledEventListResponse, type ScheduledEventListParams, type ScheduledEventCreateParams, type ScheduledEventDeleteParams, type ScheduledEventRetrieveParams, type ScheduledEventListResponsesDefaultFlatPagination, } from "./scheduled-events.mjs";
5
6
  export { Tags, type TagsResponse, type TagAddParams, type TagRemoveParams } from "./tags.mjs";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/ai/assistants/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,UAAU,EACV,KAAK,oBAAoB,EACzB,KAAK,SAAS,EACd,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,sCAAsC,EAC3C,KAAK,+BAA+B,EACpC,KAAK,mCAAmC,EACxC,KAAK,eAAe,EACpB,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KAAK,gDAAgD,GACtD,+BAA2B;AAC5B,OAAO,EAAE,IAAI,EAAE,KAAK,YAAY,EAAE,KAAK,YAAY,EAAE,KAAK,eAAe,EAAE,mBAAe;AAC1F,OAAO,EACL,KAAK,EACL,KAAK,aAAa,EAClB,KAAK,yBAAyB,EAC9B,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,mCAAmC,GACzC,0BAAsB;AACvB,OAAO,EACL,KAAK,EACL,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,aAAa,GACnB,oBAAgB;AACjB,OAAO,EACL,QAAQ,EACR,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,GAC1B,uBAAmB"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/ai/assistants/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,UAAU,EACV,KAAK,oBAAoB,EACzB,KAAK,SAAS,EACd,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,sCAAsC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E,2BAAuB;AAC9G,OAAO,EACL,eAAe,EACf,KAAK,uBAAuB,EAC5B,KAAK,WAAW,EAChB,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,+BAA+B,EACpC,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,gDAAgD,GACtD,+BAA2B;AAC5B,OAAO,EAAE,IAAI,EAAE,KAAK,YAAY,EAAE,KAAK,YAAY,EAAE,KAAK,eAAe,EAAE,mBAAe;AAC1F,OAAO,EACL,KAAK,EACL,KAAK,aAAa,EAClB,KAAK,yBAAyB,EAC9B,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,mCAAmC,GACzC,0BAAsB;AACvB,OAAO,EACL,KAAK,EACL,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,aAAa,GACnB,oBAAgB;AACjB,OAAO,EACL,QAAQ,EACR,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,GAC1B,uBAAmB"}
@@ -1,5 +1,6 @@
1
- export { Assistants, type ArithmeticExpression, type Assistant, type AssistantA2AAgent, type AssistantIntegration, type AssistantMcpServer, type AssistantTool, type AssistantsList, type AudioVisualizerConfig, type AuthenticationMethod, type BooleanOpExpression, type ComparisonExpression, type ConversationFlow, type ConversationFlowReq, type EnabledFeatures, type Expression, type ExternalLlm, type ExternalLlmReq, type FallbackConfig, type FallbackConfigReq, type FlowEdge, type FlowNode, type FlowNodeReq, type HangupTool, type HangupToolParams, type ImportMetadata, type InferenceEmbedding, type InferenceEmbeddingInterruptionSettings, type InferenceEmbeddingVoiceSettings, type InferenceEmbeddingWebhookToolParams, type InsightSettings, type MessagingSettings, type NodePosition, type Observability, type ObservabilityReq, type ObservabilityStatus, type PostConversationSettings, type PostConversationSettingsReq, type PrivacySettings, type PromptSyncStatus, type RetrievalTool, type SpeakNode, type SpeakNodeReq, type StartSpeakingPlan, type TelephonySettings, type ToolNode, type ToolNodeReq, type TranscriptionEndpointingPlan, type TranscriptionSettings, type TranscriptionSettingsConfig, type TransferTool, type VoiceSettings, type WebhookTool, type WidgetSettings, type AssistantDeleteResponse, type AssistantChatResponse, type AssistantGetTexmlResponse, type AssistantSendSMSResponse, type AssistantCreateParams, type AssistantImportsParams, type AssistantRetrieveParams, type AssistantUpdateParams, type AssistantChatParams, type AssistantCloneParams, type AssistantSendSMSParams, } from "./assistants.js";
1
+ export { Assistants, type ArithmeticExpression, type Assistant, type AssistantA2AAgent, type AssistantIntegration, type AssistantMcpServer, type AssistantTool, type AssistantsList, type AudioVisualizerConfig, type AuthenticationMethod, type AvatarSettingsRequest, type BooleanOpExpression, type ComparisonExpression, type ConversationFlow, type ConversationFlowReq, type DelegationSettings, type EnabledFeatures, type Expression, type ExternalLlm, type ExternalLlmReq, type FallbackConfig, type FallbackConfigReq, type FlowEdge, type FlowNode, type FlowNodeReq, type HangupTool, type HangupToolParams, type ImportMetadata, type InferenceEmbedding, type InferenceEmbeddingInterruptionSettings, type InferenceEmbeddingVoiceSettings, type InferenceEmbeddingWebhookToolParams, type InsightSettings, type MessagingSettings, type NodePosition, type Observability, type ObservabilityReq, type ObservabilityStatus, type PostConversationSettings, type PostConversationSettingsReq, type PrivacySettings, type PromptSyncStatus, type RetrievalTool, type SpeakNode, type SpeakNodeReq, type StartSpeakingPlan, type TelephonySettings, type TelnyxAvatarSettings, type ToolNode, type ToolNodeReq, type TranscriptionEndpointingPlan, type TranscriptionSettings, type TranscriptionSettingsConfig, type TransferTool, type VoiceSettings, type WebhookTool, type WebsocketSettings, type WidgetSettings, type AssistantDeleteResponse, type AssistantChatResponse, type AssistantGetTexmlResponse, type AssistantSendSMSResponse, type AssistantWhatsappResponse, type AssistantCreateParams, type AssistantImportsParams, type AssistantDeleteParams, type AssistantRetrieveParams, type AssistantUpdateParams, type AssistantChatParams, type AssistantCloneParams, type AssistantSendSMSParams, type AssistantWhatsappParams, } from "./assistants.js";
2
2
  export { CanaryDeploys, type CanaryDeploy, type CanaryDeployResponse, type Clause, type RolloutSlot, type RuleInput, type RuleOutput, type Serve, type CanaryDeployCreateParams, type CanaryDeployUpdateParams, } from "./canary-deploys.js";
3
+ export { Deleted, type DeletedAssistant, type DeletedListParams, type DeletedAssistantsDefaultFlatPagination, } from "./deleted.js";
3
4
  export { Instructions, type InstructionEnhanceResponse, type InstructionEnhanceParams } from "./instructions.js";
4
5
  export { ScheduledEvents, type ConversationChannelType, type EventStatus, type ScheduledCallSettings, type ScheduledEventResponse, type ScheduledPhoneCallEventResponse, type ScheduledSMSEventResponse, type ScheduledEventListResponse, type ScheduledEventListParams, type ScheduledEventCreateParams, type ScheduledEventDeleteParams, type ScheduledEventRetrieveParams, type ScheduledEventListResponsesDefaultFlatPagination, } from "./scheduled-events.js";
5
6
  export { Tags, type TagsResponse, type TagAddParams, type TagRemoveParams } from "./tags.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/ai/assistants/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,UAAU,EACV,KAAK,oBAAoB,EACzB,KAAK,SAAS,EACd,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAA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K,WAAW,EAChB,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,+BAA+B,EACpC,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,gDAAgD,GACtD,8BAA2B;AAC5B,OAAO,EAAE,IAAI,EAAE,KAAK,YAAY,EAAE,KAAK,YAAY,EAAE,KAAK,eAAe,EAAE,kBAAe;AAC1F,OAAO,EACL,KAAK,EACL,KAAK,aAAa,EAClB,KAAK,yBAAyB,EAC9B,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,mCAAmC,GACzC,yBAAsB;AACvB,OAAO,EACL,KAAK,EACL,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,aAAa,GACnB,mBAAgB;AACjB,OAAO,EACL,QAAQ,EACR,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,GAC1B,sBAAmB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/ai/assistants/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,UAAU,EACV,KAAK,oBAAoB,EACzB,KAAK,SAAS,EACd,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,WAAW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,EAC7B,KAAK,wBAAwB,GAC9B,4BAAyB;AAC1B,OAAO,EACL,OAAO,EACP,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,sCAAsC,GAC5C,qBAAkB;AACnB,OAAO,EAAE,YAAY,EAAE,KAAK,0BAA0B,EAAE,KAAK,wBAAwB,EAAE,0BAAuB;AAC9G,OAAO,EACL,eAAe,EACf,KAAK,uBAAuB,EAC5B,KAAK,WAAW,EAChB,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,+BAA+B,EACpC,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,gDAAgD,GACtD,8BAA2B;AAC5B,OAAO,EAAE,IAAI,EAAE,KAAK,YAAY,EAAE,KAAK,YAAY,EAAE,KAAK,eAAe,EAAE,kBAAe;AAC1F,OAAO,EACL,KAAK,EACL,KAAK,aAAa,EAClB,KAAK,yBAAyB,EAC9B,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,mCAAmC,GACzC,yBAAsB;AACvB,OAAO,EACL,KAAK,EACL,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,aAAa,GACnB,mBAAgB;AACjB,OAAO,EACL,QAAQ,EACR,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,GAC1B,sBAAmB"}
@@ -1,11 +1,13 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Versions = exports.Tools = exports.Tests = exports.Tags = exports.ScheduledEvents = exports.Instructions = exports.CanaryDeploys = exports.Assistants = void 0;
4
+ exports.Versions = exports.Tools = exports.Tests = exports.Tags = exports.ScheduledEvents = exports.Instructions = exports.Deleted = exports.CanaryDeploys = exports.Assistants = void 0;
5
5
  var assistants_1 = require("./assistants.js");
6
6
  Object.defineProperty(exports, "Assistants", { enumerable: true, get: function () { return assistants_1.Assistants; } });
7
7
  var canary_deploys_1 = require("./canary-deploys.js");
8
8
  Object.defineProperty(exports, "CanaryDeploys", { enumerable: true, get: function () { return canary_deploys_1.CanaryDeploys; } });
9
+ var deleted_1 = require("./deleted.js");
10
+ Object.defineProperty(exports, "Deleted", { enumerable: true, get: function () { return deleted_1.Deleted; } });
9
11
  var instructions_1 = require("./instructions.js");
10
12
  Object.defineProperty(exports, "Instructions", { enumerable: true, get: function () { return instructions_1.Instructions; } });
11
13
  var scheduled_events_1 = require("./scheduled-events.js");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/ai/assistants/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8CAkEsB;AAjEpB,wGAAA,UAAU,OAAA;AAkEZ,sDAW0B;AAVxB,+GAAA,aAAa,OAAA;AAWf,kDAA8G;AAArG,4GAAA,YAAY,OAAA;AACrB,0DAc4B;AAb1B,mHAAA,eAAe,OAAA;AAcjB,kCAA0F;AAAjF,4FAAA,IAAI,OAAA;AACb,0CAQuB;AAPrB,8FAAA,KAAK,OAAA;AAQP,oCAQiB;AAPf,8FAAA,KAAK,OAAA;AAQP,0CAOoB;AANlB,oGAAA,QAAQ,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/ai/assistants/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8CAyEsB;AAxEpB,wGAAA,UAAU,OAAA;AAyEZ,sDAW0B;AAVxB,+GAAA,aAAa,OAAA;AAWf,wCAKmB;AAJjB,kGAAA,OAAO,OAAA;AAKT,kDAA8G;AAArG,4GAAA,YAAY,OAAA;AACrB,0DAc4B;AAb1B,mHAAA,eAAe,OAAA;AAcjB,kCAA0F;AAAjF,4FAAA,IAAI,OAAA;AACb,0CAQuB;AAPrB,8FAAA,KAAK,OAAA;AAQP,oCAQiB;AAPf,8FAAA,KAAK,OAAA;AAQP,0CAOoB;AANlB,oGAAA,QAAQ,OAAA"}
@@ -1,6 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  export { Assistants, } from "./assistants.mjs";
3
3
  export { CanaryDeploys, } from "./canary-deploys.mjs";
4
+ export { Deleted, } from "./deleted.mjs";
4
5
  export { Instructions } from "./instructions.mjs";
5
6
  export { ScheduledEvents, } from "./scheduled-events.mjs";
6
7
  export { Tags } from "./tags.mjs";
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/ai/assistants/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,UAAU,GAiEX,yBAAqB;AACtB,OAAO,EACL,aAAa,GAUd,6BAAyB;AAC1B,OAAO,EAAE,YAAY,EAAkE,2BAAuB;AAC9G,OAAO,EACL,eAAe,GAahB,+BAA2B;AAC5B,OAAO,EAAE,IAAI,EAA8D,mBAAe;AAC1F,OAAO,EACL,KAAK,GAON,0BAAsB;AACvB,OAAO,EACL,KAAK,GAON,oBAAgB;AACjB,OAAO,EACL,QAAQ,GAMT,uBAAmB"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/ai/assistants/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,UAAU,GAwEX,yBAAqB;AACtB,OAAO,EACL,aAAa,GAUd,6BAAyB;AAC1B,OAAO,EACL,OAAO,GAIR,sBAAkB;AACnB,OAAO,EAAE,YAAY,EAAkE,2BAAuB;AAC9G,OAAO,EACL,eAAe,GAahB,+BAA2B;AAC5B,OAAO,EAAE,IAAI,EAA8D,mBAAe;AAC1F,OAAO,EACL,KAAK,GAON,0BAAsB;AACvB,OAAO,EACL,KAAK,GAON,oBAAgB;AACjB,OAAO,EACL,QAAQ,GAMT,uBAAmB"}
@@ -84,6 +84,12 @@ export interface UpdateAssistant {
84
84
  * leave the assistant's agents unchanged; send an empty array to remove them all.
85
85
  */
86
86
  a2a_agents?: Array<AssistantsAPI.AssistantA2AAgent>;
87
+ /**
88
+ * **Beta:** Configuration for the Telnyx open-source avatar provider. Use one of
89
+ * the six stock avatars or an organization-owned custom avatar returned by the
90
+ * Avatars API. Supported backgrounds are office, studio, and reception.
91
+ */
92
+ avatar_settings?: AssistantsAPI.AvatarSettingsRequest | null;
87
93
  /**
88
94
  * Conversation flow as supplied by API clients (create / update).
89
95
  *
@@ -92,6 +98,16 @@ export interface UpdateAssistant {
92
98
  * every edge's endpoints reference real nodes.
93
99
  */
94
100
  conversation_flow?: AssistantsAPI.ConversationFlowReq;
101
+ /**
102
+ * Splits the conversation between a frontend model that talks to the caller and a
103
+ * backend model that does the work. On the GPT-Live route the frontend model
104
+ * cannot call tools at all — when it needs something done it raises a delegation
105
+ * and waits. On the chat completion route the frontend keeps a single `delegate`
106
+ * tool that returns immediately, so the conversation carries on while the backend
107
+ * works. Either way the backend's answer is spoken as commentary or kept as silent
108
+ * context, depending on `speak_results`. Beta feature.
109
+ */
110
+ delegation_settings?: AssistantsAPI.DelegationSettings;
95
111
  description?: string;
96
112
  /**
97
113
  * Map of dynamic variables and their default values
@@ -220,6 +236,14 @@ export interface UpdateAssistant {
220
236
  */
221
237
  version_name?: string;
222
238
  voice_settings?: AssistantsAPI.InferenceEmbeddingVoiceSettings;
239
+ /**
240
+ * Streams conversation and telephony events to a WebSocket server you host, and
241
+ * accepts messages injected back into the conversation. Telnyx opens the
242
+ * connection as a client, once per conversation. Delivery is best effort
243
+ * throughout: while the connection is down events are dropped rather than queued,
244
+ * and no socket failure is ever allowed to affect the call. Beta feature.
245
+ */
246
+ websocket_settings?: AssistantsAPI.WebsocketSettings;
223
247
  /**
224
248
  * Configuration settings for the assistant's web widget.
225
249
  */
@@ -259,6 +283,12 @@ export interface VersionUpdateParams {
259
283
  * all.
260
284
  */
261
285
  a2a_agents?: Array<AssistantsAPI.AssistantA2AAgent>;
286
+ /**
287
+ * Body param: **Beta:** Configuration for the Telnyx open-source avatar provider.
288
+ * Use one of the six stock avatars or an organization-owned custom avatar returned
289
+ * by the Avatars API. Supported backgrounds are office, studio, and reception.
290
+ */
291
+ avatar_settings?: AssistantsAPI.AvatarSettingsRequest | null;
262
292
  /**
263
293
  * Body param: Conversation flow as supplied by API clients (create / update).
264
294
  *
@@ -267,6 +297,16 @@ export interface VersionUpdateParams {
267
297
  * every edge's endpoints reference real nodes.
268
298
  */
269
299
  conversation_flow?: AssistantsAPI.ConversationFlowReq;
300
+ /**
301
+ * Body param: Splits the conversation between a frontend model that talks to the
302
+ * caller and a backend model that does the work. On the GPT-Live route the
303
+ * frontend model cannot call tools at all — when it needs something done it raises
304
+ * a delegation and waits. On the chat completion route the frontend keeps a single
305
+ * `delegate` tool that returns immediately, so the conversation carries on while
306
+ * the backend works. Either way the backend's answer is spoken as commentary or
307
+ * kept as silent context, depending on `speak_results`. Beta feature.
308
+ */
309
+ delegation_settings?: AssistantsAPI.DelegationSettings;
270
310
  /**
271
311
  * Body param
272
312
  */
@@ -432,6 +472,14 @@ export interface VersionUpdateParams {
432
472
  * Body param
433
473
  */
434
474
  voice_settings?: AssistantsAPI.InferenceEmbeddingVoiceSettings;
475
+ /**
476
+ * Body param: Streams conversation and telephony events to a WebSocket server you
477
+ * host, and accepts messages injected back into the conversation. Telnyx opens the
478
+ * connection as a client, once per conversation. Delivery is best effort
479
+ * throughout: while the connection is down events are dropped rather than queued,
480
+ * and no socket failure is ever allowed to affect the call. Beta feature.
481
+ */
482
+ websocket_settings?: AssistantsAPI.WebsocketSettings;
435
483
  /**
436
484
  * Body param: Configuration settings for the assistant's web widget.
437
485
  */
@@ -1 +1 @@
1
- {"version":3,"file":"versions.d.mts","sourceRoot":"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C,EAAE,aAAa,CAAC,cAAc,CAAC;CAChD;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
@@ -84,6 +84,12 @@ export interface UpdateAssistant {
84
84
  * leave the assistant's agents unchanged; send an empty array to remove them all.
85
85
  */
86
86
  a2a_agents?: Array<AssistantsAPI.AssistantA2AAgent>;
87
+ /**
88
+ * **Beta:** Configuration for the Telnyx open-source avatar provider. Use one of
89
+ * the six stock avatars or an organization-owned custom avatar returned by the
90
+ * Avatars API. Supported backgrounds are office, studio, and reception.
91
+ */
92
+ avatar_settings?: AssistantsAPI.AvatarSettingsRequest | null;
87
93
  /**
88
94
  * Conversation flow as supplied by API clients (create / update).
89
95
  *
@@ -92,6 +98,16 @@ export interface UpdateAssistant {
92
98
  * every edge's endpoints reference real nodes.
93
99
  */
94
100
  conversation_flow?: AssistantsAPI.ConversationFlowReq;
101
+ /**
102
+ * Splits the conversation between a frontend model that talks to the caller and a
103
+ * backend model that does the work. On the GPT-Live route the frontend model
104
+ * cannot call tools at all — when it needs something done it raises a delegation
105
+ * and waits. On the chat completion route the frontend keeps a single `delegate`
106
+ * tool that returns immediately, so the conversation carries on while the backend
107
+ * works. Either way the backend's answer is spoken as commentary or kept as silent
108
+ * context, depending on `speak_results`. Beta feature.
109
+ */
110
+ delegation_settings?: AssistantsAPI.DelegationSettings;
95
111
  description?: string;
96
112
  /**
97
113
  * Map of dynamic variables and their default values
@@ -220,6 +236,14 @@ export interface UpdateAssistant {
220
236
  */
221
237
  version_name?: string;
222
238
  voice_settings?: AssistantsAPI.InferenceEmbeddingVoiceSettings;
239
+ /**
240
+ * Streams conversation and telephony events to a WebSocket server you host, and
241
+ * accepts messages injected back into the conversation. Telnyx opens the
242
+ * connection as a client, once per conversation. Delivery is best effort
243
+ * throughout: while the connection is down events are dropped rather than queued,
244
+ * and no socket failure is ever allowed to affect the call. Beta feature.
245
+ */
246
+ websocket_settings?: AssistantsAPI.WebsocketSettings;
223
247
  /**
224
248
  * Configuration settings for the assistant's web widget.
225
249
  */
@@ -259,6 +283,12 @@ export interface VersionUpdateParams {
259
283
  * all.
260
284
  */
261
285
  a2a_agents?: Array<AssistantsAPI.AssistantA2AAgent>;
286
+ /**
287
+ * Body param: **Beta:** Configuration for the Telnyx open-source avatar provider.
288
+ * Use one of the six stock avatars or an organization-owned custom avatar returned
289
+ * by the Avatars API. Supported backgrounds are office, studio, and reception.
290
+ */
291
+ avatar_settings?: AssistantsAPI.AvatarSettingsRequest | null;
262
292
  /**
263
293
  * Body param: Conversation flow as supplied by API clients (create / update).
264
294
  *
@@ -267,6 +297,16 @@ export interface VersionUpdateParams {
267
297
  * every edge's endpoints reference real nodes.
268
298
  */
269
299
  conversation_flow?: AssistantsAPI.ConversationFlowReq;
300
+ /**
301
+ * Body param: Splits the conversation between a frontend model that talks to the
302
+ * caller and a backend model that does the work. On the GPT-Live route the
303
+ * frontend model cannot call tools at all — when it needs something done it raises
304
+ * a delegation and waits. On the chat completion route the frontend keeps a single
305
+ * `delegate` tool that returns immediately, so the conversation carries on while
306
+ * the backend works. Either way the backend's answer is spoken as commentary or
307
+ * kept as silent context, depending on `speak_results`. Beta feature.
308
+ */
309
+ delegation_settings?: AssistantsAPI.DelegationSettings;
270
310
  /**
271
311
  * Body param
272
312
  */
@@ -432,6 +472,14 @@ export interface VersionUpdateParams {
432
472
  * Body param
433
473
  */
434
474
  voice_settings?: AssistantsAPI.InferenceEmbeddingVoiceSettings;
475
+ /**
476
+ * Body param: Streams conversation and telephony events to a WebSocket server you
477
+ * host, and accepts messages injected back into the conversation. Telnyx opens the
478
+ * connection as a client, once per conversation. Delivery is best effort
479
+ * throughout: while the connection is down events are dropped rather than queued,
480
+ * and no socket failure is ever allowed to affect the call. Beta feature.
481
+ */
482
+ websocket_settings?: AssistantsAPI.WebsocketSettings;
435
483
  /**
436
484
  * Body param: Configuration settings for the assistant's web widget.
437
485
  */
@@ -1 +1 @@
1
- {"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../../src/resources/ai/assistants/versions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,aAAa,wBAAqB;AAC9C,OAAO,EAAE,UAAU,EAAE,qCAAkC;AAEvD,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;OASG;IACH,IAAI,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC,cAAc,CAAC;IAI7F;;;;;;;;;;OAUG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQlG;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,qBAAqB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,aAAa,CAAC,kBAAkB,CAAC;IAQ/C;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,mBAAmB,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,aAAa,CAAC,kBAAkB,CAAC;IAQ/C;;;;;;;;;;;;;OAaG;IACH,OAAO,CACL,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,oBAAoB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU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ACH,aAAa,CAAC,EAAE,aAAa,CAAC,qBAAqB,CAAC;IAEpD;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,cAAc,CAAC,EAAE,aAAa,CAAC,+BAA+B,CAAC;IAE/D;;;;;;OAMG;IACH,kBAAkB,CAAC,EAAE,aAAa,CAAC,iBAAiB,CAAC;IAErD;;OAEG;IACH,eAAe,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC;CAChD;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
@@ -0,0 +1,187 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import { APIPromise } from "../../core/api-promise.mjs";
3
+ import { DefaultFlatPagination, type DefaultFlatPaginationParams, PagePromise } from "../../core/pagination.mjs";
4
+ import { type Uploadable } from "../../core/uploads.mjs";
5
+ import { RequestOptions } from "../../internal/request-options.mjs";
6
+ /**
7
+ * Create and manage real-time AI avatars
8
+ */
9
+ export declare class Avatars extends APIResource {
10
+ /**
11
+ * Returns a paginated list of the Telnyx stock avatars and custom avatars
12
+ * available to the authenticated organization. Custom avatars owned by other
13
+ * organizations are never returned. The `image_url` value is suitable for
14
+ * displaying a thumbnail and may be refreshed by listing or retrieving the avatar
15
+ * again.
16
+ *
17
+ * @example
18
+ * ```ts
19
+ * // Automatically fetches more pages as needed.
20
+ * for await (const avatar of client.ai.avatars.list()) {
21
+ * // ...
22
+ * }
23
+ * ```
24
+ */
25
+ list(query?: AvatarListParams | null | undefined, options?: RequestOptions): PagePromise<AvatarsDefaultFlatPagination, Avatar>;
26
+ /**
27
+ * Uploads an image, validates its file type, size, safe decoding, and resolution,
28
+ * stores it in Telnyx-managed private storage, and creates an avatar owned by the
29
+ * authenticated organization. Creating an avatar does not update an AI Assistant;
30
+ * use the returned ID separately wherever the avatar is consumed. The avatar image
31
+ * is stored independently from the rendering model and background, which are
32
+ * selected where the avatar is consumed. Supported image types are JPEG, PNG, and
33
+ * WebP. Images may be up to 10 MiB, must be between 256 and 8192 pixels on each
34
+ * side, and may contain at most 40 megapixels. Each organization may have up to 20
35
+ * custom avatars. For best results, use a 16:9 landscape image, preferably 1920 by
36
+ * 1080 pixels and at least 1280 by 720 pixels. Show one centered, front-facing
37
+ * person from the shoulders up, keep the full head and hair visible with space
38
+ * around it, and use a sharp, evenly lit image with unobstructed eyes and mouth.
39
+ * Use a transparent PNG or WebP when the avatar will be combined with a selectable
40
+ * background. These composition recommendations are not enforced in the first
41
+ * release; the first release does not validate the number of faces, pose, or image
42
+ * content.
43
+ *
44
+ * @example
45
+ * ```ts
46
+ * const avatarResponse = await client.ai.avatars.create({
47
+ * image_file: fs.createReadStream('path/to/file'),
48
+ * name: 'Customer portrait',
49
+ * });
50
+ * ```
51
+ */
52
+ create(body: AvatarCreateParams, options?: RequestOptions): APIPromise<AvatarResponse>;
53
+ /**
54
+ * Returns a Telnyx stock avatar or a custom avatar owned by the authenticated
55
+ * organization. A custom avatar belonging to another organization is returned as
56
+ * not found.
57
+ *
58
+ * @example
59
+ * ```ts
60
+ * const avatarResponse = await client.ai.avatars.retrieve(
61
+ * 'avatar_0123456789abcdef0123456789abcdef',
62
+ * );
63
+ * ```
64
+ */
65
+ retrieve(avatarID: AvatarID, options?: RequestOptions): APIPromise<AvatarResponse>;
66
+ /**
67
+ * Updates the customer-facing name of a custom avatar owned by the authenticated
68
+ * organization. Stock avatars cannot be modified. To replace the image, create a
69
+ * new custom avatar so existing references keep their original content.
70
+ *
71
+ * @example
72
+ * ```ts
73
+ * const avatarResponse = await client.ai.avatars.update(
74
+ * 'avatar_0123456789abcdef0123456789abcdef',
75
+ * { name: 'Updated portrait' },
76
+ * );
77
+ * ```
78
+ */
79
+ update(avatarID: AvatarID, body: AvatarUpdateParams, options?: RequestOptions): APIPromise<AvatarResponse>;
80
+ }
81
+ export type AvatarsDefaultFlatPagination = DefaultFlatPagination<Avatar>;
82
+ export interface Avatar {
83
+ /**
84
+ * Stable identifier of a Telnyx stock avatar or an organization-owned custom
85
+ * avatar. Custom avatar IDs are returned by the Avatars API and use the `avatar_`
86
+ * prefix.
87
+ */
88
+ id: AvatarID;
89
+ /**
90
+ * Whether the avatar is provided by Telnyx or was uploaded by the authenticated
91
+ * organization.
92
+ */
93
+ avatar_type: AvatarType;
94
+ /**
95
+ * Indicates that avatar rendering runs on Telnyx-operated infrastructure.
96
+ */
97
+ hosted: true;
98
+ /**
99
+ * HTTPS image URL suitable for an avatar selection thumbnail. If the URL expires,
100
+ * list or retrieve the avatar again to refresh it.
101
+ */
102
+ image_url: string;
103
+ /**
104
+ * Customer-facing avatar name.
105
+ */
106
+ name: string;
107
+ /**
108
+ * Avatar provider. The first release supports Telnyx avatars.
109
+ */
110
+ provider: 'telnyx';
111
+ /**
112
+ * MIME type of a custom avatar image.
113
+ */
114
+ content_type?: 'image/jpeg' | 'image/png' | 'image/webp';
115
+ /**
116
+ * Time when the custom avatar was created.
117
+ */
118
+ created_at?: string;
119
+ /**
120
+ * Decoded height of a custom avatar image.
121
+ */
122
+ height_px?: number;
123
+ /**
124
+ * Expiration time of `image_url`. Omitted when the URL does not expire.
125
+ */
126
+ image_url_expires_at?: string;
127
+ /**
128
+ * Size of a custom avatar image in bytes.
129
+ */
130
+ size_bytes?: number;
131
+ /**
132
+ * Time when the custom avatar was last updated.
133
+ */
134
+ updated_at?: string;
135
+ /**
136
+ * Decoded width of a custom avatar image.
137
+ */
138
+ width_px?: number;
139
+ }
140
+ /**
141
+ * Stable identifier of a Telnyx stock avatar or an organization-owned custom
142
+ * avatar. Custom avatar IDs are returned by the Avatars API and use the `avatar_`
143
+ * prefix.
144
+ */
145
+ export type AvatarID = 'elena' | 'ben' | 'jordan' | 'lin' | 'avery' | 'raphael' | (string & {});
146
+ export interface AvatarResponse {
147
+ data: Avatar;
148
+ }
149
+ /**
150
+ * Whether the avatar is provided by Telnyx or was uploaded by the authenticated
151
+ * organization.
152
+ */
153
+ export type AvatarType = 'stock' | 'custom';
154
+ export interface AvatarListParams extends DefaultFlatPaginationParams {
155
+ /**
156
+ * Return only stock or custom avatars.
157
+ */
158
+ 'filter[avatar_type]'?: AvatarType;
159
+ /**
160
+ * Return the avatar with this exact ID.
161
+ */
162
+ 'filter[id]'?: AvatarID;
163
+ /**
164
+ * Return avatars whose names contain this value, using case-insensitive matching.
165
+ */
166
+ 'filter[name]'?: string;
167
+ }
168
+ export interface AvatarCreateParams {
169
+ /**
170
+ * JPEG, PNG, or WebP image file. The maximum file size is 10 MiB.
171
+ */
172
+ image_file: Uploadable;
173
+ /**
174
+ * Customer-facing name of the custom avatar.
175
+ */
176
+ name: string;
177
+ }
178
+ export interface AvatarUpdateParams {
179
+ /**
180
+ * New customer-facing name of the custom avatar.
181
+ */
182
+ name: string;
183
+ }
184
+ export declare namespace Avatars {
185
+ export { type Avatar as Avatar, type AvatarID as AvatarID, type AvatarResponse as AvatarResponse, type AvatarType as AvatarType, type AvatarsDefaultFlatPagination as AvatarsDefaultFlatPagination, type AvatarListParams as AvatarListParams, type AvatarCreateParams as AvatarCreateParams, type AvatarUpdateParams as AvatarUpdateParams, };
186
+ }
187
+ //# sourceMappingURL=avatars.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"avatars.d.mts","sourceRoot":"","sources":["../../src/resources/ai/avatars.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,qBAAqB,EAAE,KAAK,2BAA2B,EAAE,WAAW,EAAE,kCAA8B;AAC7G,OA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