telnyx 7.23.0 → 7.25.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 (594) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/client.d.mts +27 -12
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +27 -12
  5. package/client.d.ts.map +1 -1
  6. package/client.js +15 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +15 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/ai/ai.d.mts +11 -6
  12. package/resources/ai/ai.d.mts.map +1 -1
  13. package/resources/ai/ai.d.ts +11 -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 +469 -35
  20. package/resources/ai/assistants/assistants.d.mts.map +1 -1
  21. package/resources/ai/assistants/assistants.d.ts +469 -35
  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 +38 -2
  44. package/resources/ai/assistants/versions.d.mts.map +1 -1
  45. package/resources/ai/assistants/versions.d.ts +38 -2
  46. package/resources/ai/assistants/versions.d.ts.map +1 -1
  47. package/resources/ai/chat.d.mts +7 -2
  48. package/resources/ai/chat.d.mts.map +1 -1
  49. package/resources/ai/chat.d.ts +7 -2
  50. package/resources/ai/chat.d.ts.map +1 -1
  51. package/resources/ai/collections/collections.d.mts +3 -3
  52. package/resources/ai/collections/collections.d.mts.map +1 -1
  53. package/resources/ai/collections/collections.d.ts +3 -3
  54. package/resources/ai/collections/collections.d.ts.map +1 -1
  55. package/resources/ai/collections/collections.js.map +1 -1
  56. package/resources/ai/collections/collections.mjs.map +1 -1
  57. package/resources/ai/collections/index.d.mts +1 -1
  58. package/resources/ai/collections/index.d.mts.map +1 -1
  59. package/resources/ai/collections/index.d.ts +1 -1
  60. package/resources/ai/collections/index.d.ts.map +1 -1
  61. package/resources/ai/collections/index.js.map +1 -1
  62. package/resources/ai/collections/index.mjs.map +1 -1
  63. package/resources/ai/collections/sources.d.mts +32 -5
  64. package/resources/ai/collections/sources.d.mts.map +1 -1
  65. package/resources/ai/collections/sources.d.ts +32 -5
  66. package/resources/ai/collections/sources.d.ts.map +1 -1
  67. package/resources/ai/collections/sources.js.map +1 -1
  68. package/resources/ai/collections/sources.mjs.map +1 -1
  69. package/resources/ai/embeddings/embeddings.d.mts +1 -1
  70. package/resources/ai/embeddings/embeddings.d.ts +1 -1
  71. package/resources/ai/embeddings/embeddings.js +1 -1
  72. package/resources/ai/embeddings/embeddings.mjs +1 -1
  73. package/resources/ai/index.d.mts +3 -2
  74. package/resources/ai/index.d.mts.map +1 -1
  75. package/resources/ai/index.d.ts +3 -2
  76. package/resources/ai/index.d.ts.map +1 -1
  77. package/resources/ai/index.js +9 -7
  78. package/resources/ai/index.js.map +1 -1
  79. package/resources/ai/index.mjs +1 -0
  80. package/resources/ai/index.mjs.map +1 -1
  81. package/resources/ai/memory/index.d.mts +3 -0
  82. package/resources/ai/memory/index.d.mts.map +1 -0
  83. package/resources/ai/memory/index.d.ts +3 -0
  84. package/resources/ai/memory/index.d.ts.map +1 -0
  85. package/resources/ai/memory/index.js +9 -0
  86. package/resources/ai/memory/index.js.map +1 -0
  87. package/resources/ai/memory/index.mjs +4 -0
  88. package/resources/ai/memory/index.mjs.map +1 -0
  89. package/resources/ai/memory/memory.d.mts +10 -0
  90. package/resources/ai/memory/memory.d.mts.map +1 -0
  91. package/resources/ai/memory/memory.d.ts +10 -0
  92. package/resources/ai/memory/memory.d.ts.map +1 -0
  93. package/resources/ai/memory/memory.js +17 -0
  94. package/resources/ai/memory/memory.js.map +1 -0
  95. package/resources/ai/memory/memory.mjs +12 -0
  96. package/resources/ai/memory/memory.mjs.map +1 -0
  97. package/resources/ai/memory/namespaces/index.d.mts +4 -0
  98. package/resources/ai/memory/namespaces/index.d.mts.map +1 -0
  99. package/resources/ai/memory/namespaces/index.d.ts +4 -0
  100. package/resources/ai/memory/namespaces/index.d.ts.map +1 -0
  101. package/resources/ai/memory/namespaces/index.js +11 -0
  102. package/resources/ai/memory/namespaces/index.js.map +1 -0
  103. package/resources/ai/memory/namespaces/index.mjs +5 -0
  104. package/resources/ai/memory/namespaces/index.mjs.map +1 -0
  105. package/resources/ai/memory/namespaces/namespaces.d.mts +110 -0
  106. package/resources/ai/memory/namespaces/namespaces.d.mts.map +1 -0
  107. package/resources/ai/memory/namespaces/namespaces.d.ts +110 -0
  108. package/resources/ai/memory/namespaces/namespaces.d.ts.map +1 -0
  109. package/resources/ai/memory/namespaces/namespaces.js +81 -0
  110. package/resources/ai/memory/namespaces/namespaces.js.map +1 -0
  111. package/resources/ai/memory/namespaces/namespaces.mjs +76 -0
  112. package/resources/ai/memory/namespaces/namespaces.mjs.map +1 -0
  113. package/resources/ai/memory/namespaces/profiles/index.d.mts +4 -0
  114. package/resources/ai/memory/namespaces/profiles/index.d.mts.map +1 -0
  115. package/resources/ai/memory/namespaces/profiles/index.d.ts +4 -0
  116. package/resources/ai/memory/namespaces/profiles/index.d.ts.map +1 -0
  117. package/resources/ai/memory/namespaces/profiles/index.js +11 -0
  118. package/resources/ai/memory/namespaces/profiles/index.js.map +1 -0
  119. package/resources/ai/memory/namespaces/profiles/index.mjs +5 -0
  120. package/resources/ai/memory/namespaces/profiles/index.mjs.map +1 -0
  121. package/resources/ai/memory/namespaces/profiles/memories.d.mts +118 -0
  122. package/resources/ai/memory/namespaces/profiles/memories.d.mts.map +1 -0
  123. package/resources/ai/memory/namespaces/profiles/memories.d.ts +118 -0
  124. package/resources/ai/memory/namespaces/profiles/memories.d.ts.map +1 -0
  125. package/resources/ai/memory/namespaces/profiles/memories.js +63 -0
  126. package/resources/ai/memory/namespaces/profiles/memories.js.map +1 -0
  127. package/resources/ai/memory/namespaces/profiles/memories.mjs +59 -0
  128. package/resources/ai/memory/namespaces/profiles/memories.mjs.map +1 -0
  129. package/resources/ai/memory/namespaces/profiles/profiles.d.mts +324 -0
  130. package/resources/ai/memory/namespaces/profiles/profiles.d.mts.map +1 -0
  131. package/resources/ai/memory/namespaces/profiles/profiles.d.ts +324 -0
  132. package/resources/ai/memory/namespaces/profiles/profiles.d.ts.map +1 -0
  133. package/resources/ai/memory/namespaces/profiles/profiles.js +161 -0
  134. package/resources/ai/memory/namespaces/profiles/profiles.js.map +1 -0
  135. package/resources/ai/memory/namespaces/profiles/profiles.mjs +156 -0
  136. package/resources/ai/memory/namespaces/profiles/profiles.mjs.map +1 -0
  137. package/resources/ai/memory/namespaces/profiles/sources.d.mts +163 -0
  138. package/resources/ai/memory/namespaces/profiles/sources.d.mts.map +1 -0
  139. package/resources/ai/memory/namespaces/profiles/sources.d.ts +163 -0
  140. package/resources/ai/memory/namespaces/profiles/sources.d.ts.map +1 -0
  141. package/resources/ai/memory/namespaces/profiles/sources.js +80 -0
  142. package/resources/ai/memory/namespaces/profiles/sources.js.map +1 -0
  143. package/resources/ai/memory/namespaces/profiles/sources.mjs +76 -0
  144. package/resources/ai/memory/namespaces/profiles/sources.mjs.map +1 -0
  145. package/resources/ai/memory/namespaces/profiles.d.mts +2 -0
  146. package/resources/ai/memory/namespaces/profiles.d.mts.map +1 -0
  147. package/resources/ai/memory/namespaces/profiles.d.ts +2 -0
  148. package/resources/ai/memory/namespaces/profiles.d.ts.map +1 -0
  149. package/resources/ai/memory/namespaces/profiles.js +6 -0
  150. package/resources/ai/memory/namespaces/profiles.js.map +1 -0
  151. package/resources/ai/memory/namespaces/profiles.mjs +3 -0
  152. package/resources/ai/memory/namespaces/profiles.mjs.map +1 -0
  153. package/resources/ai/memory/namespaces/settings.d.mts +108 -0
  154. package/resources/ai/memory/namespaces/settings.d.mts.map +1 -0
  155. package/resources/ai/memory/namespaces/settings.d.ts +108 -0
  156. package/resources/ai/memory/namespaces/settings.d.ts.map +1 -0
  157. package/resources/ai/memory/namespaces/settings.js +54 -0
  158. package/resources/ai/memory/namespaces/settings.js.map +1 -0
  159. package/resources/ai/memory/namespaces/settings.mjs +50 -0
  160. package/resources/ai/memory/namespaces/settings.mjs.map +1 -0
  161. package/resources/ai/memory/namespaces.d.mts +2 -0
  162. package/resources/ai/memory/namespaces.d.mts.map +1 -0
  163. package/resources/ai/memory/namespaces.d.ts +2 -0
  164. package/resources/ai/memory/namespaces.d.ts.map +1 -0
  165. package/resources/ai/memory/namespaces.js +6 -0
  166. package/resources/ai/memory/namespaces.js.map +1 -0
  167. package/resources/ai/memory/namespaces.mjs +3 -0
  168. package/resources/ai/memory/namespaces.mjs.map +1 -0
  169. package/resources/ai/memory.d.mts +2 -0
  170. package/resources/ai/memory.d.mts.map +1 -0
  171. package/resources/ai/memory.d.ts +2 -0
  172. package/resources/ai/memory.d.ts.map +1 -0
  173. package/resources/ai/memory.js +6 -0
  174. package/resources/ai/memory.js.map +1 -0
  175. package/resources/ai/memory.mjs +3 -0
  176. package/resources/ai/memory.mjs.map +1 -0
  177. package/resources/ai/openai/chat.d.mts +7 -2
  178. package/resources/ai/openai/chat.d.mts.map +1 -1
  179. package/resources/ai/openai/chat.d.ts +7 -2
  180. package/resources/ai/openai/chat.d.ts.map +1 -1
  181. package/resources/ai/tools.d.mts +3 -4
  182. package/resources/ai/tools.d.mts.map +1 -1
  183. package/resources/ai/tools.d.ts +3 -4
  184. package/resources/ai/tools.d.ts.map +1 -1
  185. package/resources/ai/tools.js +5 -2
  186. package/resources/ai/tools.js.map +1 -1
  187. package/resources/ai/tools.mjs +5 -2
  188. package/resources/ai/tools.mjs.map +1 -1
  189. package/resources/ai/typesafe/v1.d.mts +25 -14
  190. package/resources/ai/typesafe/v1.d.mts.map +1 -1
  191. package/resources/ai/typesafe/v1.d.ts +25 -14
  192. package/resources/ai/typesafe/v1.d.ts.map +1 -1
  193. package/resources/ai/typesafe/v1.js +15 -10
  194. package/resources/ai/typesafe/v1.js.map +1 -1
  195. package/resources/ai/typesafe/v1.mjs +15 -10
  196. package/resources/ai/typesafe/v1.mjs.map +1 -1
  197. package/resources/calls/actions.d.mts +119 -22
  198. package/resources/calls/actions.d.mts.map +1 -1
  199. package/resources/calls/actions.d.ts +119 -22
  200. package/resources/calls/actions.d.ts.map +1 -1
  201. package/resources/calls/actions.js +31 -0
  202. package/resources/calls/actions.js.map +1 -1
  203. package/resources/calls/actions.mjs +31 -0
  204. package/resources/calls/actions.mjs.map +1 -1
  205. package/resources/calls/calls.d.mts +58 -15
  206. package/resources/calls/calls.d.mts.map +1 -1
  207. package/resources/calls/calls.d.ts +58 -15
  208. package/resources/calls/calls.d.ts.map +1 -1
  209. package/resources/calls/calls.js +3 -0
  210. package/resources/calls/calls.js.map +1 -1
  211. package/resources/calls/calls.mjs +3 -0
  212. package/resources/calls/calls.mjs.map +1 -1
  213. package/resources/calls/index.d.mts +1 -1
  214. package/resources/calls/index.d.mts.map +1 -1
  215. package/resources/calls/index.d.ts +1 -1
  216. package/resources/calls/index.d.ts.map +1 -1
  217. package/resources/calls/index.js.map +1 -1
  218. package/resources/calls/index.mjs.map +1 -1
  219. package/resources/conferences/actions.d.mts +7 -1
  220. package/resources/conferences/actions.d.mts.map +1 -1
  221. package/resources/conferences/actions.d.ts +7 -1
  222. package/resources/conferences/actions.d.ts.map +1 -1
  223. package/resources/dir/dir.d.mts +220 -28
  224. package/resources/dir/dir.d.mts.map +1 -1
  225. package/resources/dir/dir.d.ts +220 -28
  226. package/resources/dir/dir.d.ts.map +1 -1
  227. package/resources/dir/dir.js +77 -13
  228. package/resources/dir/dir.js.map +1 -1
  229. package/resources/dir/dir.mjs +77 -13
  230. package/resources/dir/dir.mjs.map +1 -1
  231. package/resources/dir/index.d.mts +1 -1
  232. package/resources/dir/index.d.mts.map +1 -1
  233. package/resources/dir/index.d.ts +1 -1
  234. package/resources/dir/index.d.ts.map +1 -1
  235. package/resources/dir/index.js.map +1 -1
  236. package/resources/dir/index.mjs.map +1 -1
  237. package/resources/dir/phone-numbers.d.mts +8 -4
  238. package/resources/dir/phone-numbers.d.mts.map +1 -1
  239. package/resources/dir/phone-numbers.d.ts +8 -4
  240. package/resources/dir/phone-numbers.d.ts.map +1 -1
  241. package/resources/dir/phone-numbers.js +4 -4
  242. package/resources/dir/phone-numbers.mjs +4 -4
  243. package/resources/dir/references.d.mts +9 -6
  244. package/resources/dir/references.d.mts.map +1 -1
  245. package/resources/dir/references.d.ts +9 -6
  246. package/resources/dir/references.d.ts.map +1 -1
  247. package/resources/email-blocks/email-blocks.d.mts +12 -4
  248. package/resources/email-blocks/email-blocks.d.mts.map +1 -1
  249. package/resources/email-blocks/email-blocks.d.ts +12 -4
  250. package/resources/email-blocks/email-blocks.d.ts.map +1 -1
  251. package/resources/email-blocks/email-blocks.js +5 -3
  252. package/resources/email-blocks/email-blocks.js.map +1 -1
  253. package/resources/email-blocks/email-blocks.mjs +5 -3
  254. package/resources/email-blocks/email-blocks.mjs.map +1 -1
  255. package/resources/email-blocks/imports.d.mts +20 -4
  256. package/resources/email-blocks/imports.d.mts.map +1 -1
  257. package/resources/email-blocks/imports.d.ts +20 -4
  258. package/resources/email-blocks/imports.d.ts.map +1 -1
  259. package/resources/email-blocks/imports.js +17 -3
  260. package/resources/email-blocks/imports.js.map +1 -1
  261. package/resources/email-blocks/imports.mjs +17 -3
  262. package/resources/email-blocks/imports.mjs.map +1 -1
  263. package/resources/email-domains/email-domains.d.mts +98 -1
  264. package/resources/email-domains/email-domains.d.mts.map +1 -1
  265. package/resources/email-domains/email-domains.d.ts +98 -1
  266. package/resources/email-domains/email-domains.d.ts.map +1 -1
  267. package/resources/email-domains/email-domains.js +21 -0
  268. package/resources/email-domains/email-domains.js.map +1 -1
  269. package/resources/email-domains/email-domains.mjs +21 -0
  270. package/resources/email-domains/email-domains.mjs.map +1 -1
  271. package/resources/email-domains/index.d.mts +1 -1
  272. package/resources/email-domains/index.d.mts.map +1 -1
  273. package/resources/email-domains/index.d.ts +1 -1
  274. package/resources/email-domains/index.d.ts.map +1 -1
  275. package/resources/email-domains/index.js.map +1 -1
  276. package/resources/email-domains/index.mjs.map +1 -1
  277. package/resources/email-domains/webhooks.d.mts +6 -4
  278. package/resources/email-domains/webhooks.d.mts.map +1 -1
  279. package/resources/email-domains/webhooks.d.ts +6 -4
  280. package/resources/email-domains/webhooks.d.ts.map +1 -1
  281. package/resources/email-events.d.mts +162 -28
  282. package/resources/email-events.d.mts.map +1 -1
  283. package/resources/email-events.d.ts +162 -28
  284. package/resources/email-events.d.ts.map +1 -1
  285. package/resources/email-events.js +15 -6
  286. package/resources/email-events.js.map +1 -1
  287. package/resources/email-events.mjs +15 -6
  288. package/resources/email-events.mjs.map +1 -1
  289. package/resources/email-inboxes/drafts.d.mts +31 -1
  290. package/resources/email-inboxes/drafts.d.mts.map +1 -1
  291. package/resources/email-inboxes/drafts.d.ts +31 -1
  292. package/resources/email-inboxes/drafts.d.ts.map +1 -1
  293. package/resources/email-inboxes/drafts.js.map +1 -1
  294. package/resources/email-inboxes/drafts.mjs.map +1 -1
  295. package/resources/email-messages/email-messages.d.mts +174 -43
  296. package/resources/email-messages/email-messages.d.mts.map +1 -1
  297. package/resources/email-messages/email-messages.d.ts +174 -43
  298. package/resources/email-messages/email-messages.d.ts.map +1 -1
  299. package/resources/email-messages/email-messages.js +39 -7
  300. package/resources/email-messages/email-messages.js.map +1 -1
  301. package/resources/email-messages/email-messages.mjs +39 -7
  302. package/resources/email-messages/email-messages.mjs.map +1 -1
  303. package/resources/email-messages/index.d.mts +1 -1
  304. package/resources/email-messages/index.d.mts.map +1 -1
  305. package/resources/email-messages/index.d.ts +1 -1
  306. package/resources/email-messages/index.d.ts.map +1 -1
  307. package/resources/email-messages/index.js.map +1 -1
  308. package/resources/email-messages/index.mjs.map +1 -1
  309. package/resources/email-messages/recipients.d.mts +2 -2
  310. package/resources/email-messages/recipients.d.mts.map +1 -1
  311. package/resources/email-messages/recipients.d.ts +2 -2
  312. package/resources/email-messages/recipients.d.ts.map +1 -1
  313. package/resources/email-templates.d.mts +170 -0
  314. package/resources/email-templates.d.mts.map +1 -1
  315. package/resources/email-templates.d.ts +170 -0
  316. package/resources/email-templates.d.ts.map +1 -1
  317. package/resources/email-templates.js +6 -0
  318. package/resources/email-templates.js.map +1 -1
  319. package/resources/email-templates.mjs +6 -0
  320. package/resources/email-templates.mjs.map +1 -1
  321. package/resources/enterprises/dir.d.mts +17 -1
  322. package/resources/enterprises/dir.d.mts.map +1 -1
  323. package/resources/enterprises/dir.d.ts +17 -1
  324. package/resources/enterprises/dir.d.ts.map +1 -1
  325. package/resources/enterprises/enterprises.d.mts +237 -23
  326. package/resources/enterprises/enterprises.d.mts.map +1 -1
  327. package/resources/enterprises/enterprises.d.ts +237 -23
  328. package/resources/enterprises/enterprises.d.ts.map +1 -1
  329. package/resources/enterprises/enterprises.js +26 -4
  330. package/resources/enterprises/enterprises.js.map +1 -1
  331. package/resources/enterprises/enterprises.mjs +26 -4
  332. package/resources/enterprises/enterprises.mjs.map +1 -1
  333. package/resources/enterprises/index.d.mts +1 -0
  334. package/resources/enterprises/index.d.mts.map +1 -1
  335. package/resources/enterprises/index.d.ts +1 -0
  336. package/resources/enterprises/index.d.ts.map +1 -1
  337. package/resources/enterprises/index.js +3 -1
  338. package/resources/enterprises/index.js.map +1 -1
  339. package/resources/enterprises/index.mjs +1 -0
  340. package/resources/enterprises/index.mjs.map +1 -1
  341. package/resources/enterprises/reputation/loa.d.mts +61 -1
  342. package/resources/enterprises/reputation/loa.d.mts.map +1 -1
  343. package/resources/enterprises/reputation/loa.d.ts +61 -1
  344. package/resources/enterprises/reputation/loa.d.ts.map +1 -1
  345. package/resources/enterprises/verify-email.d.mts +91 -0
  346. package/resources/enterprises/verify-email.d.mts.map +1 -0
  347. package/resources/enterprises/verify-email.d.ts +91 -0
  348. package/resources/enterprises/verify-email.d.ts.map +1 -0
  349. package/resources/enterprises/verify-email.js +55 -0
  350. package/resources/enterprises/verify-email.js.map +1 -0
  351. package/resources/enterprises/verify-email.mjs +51 -0
  352. package/resources/enterprises/verify-email.mjs.map +1 -0
  353. package/resources/index.d.mts +8 -6
  354. package/resources/index.d.mts.map +1 -1
  355. package/resources/index.d.ts +8 -6
  356. package/resources/index.d.ts.map +1 -1
  357. package/resources/index.js +7 -3
  358. package/resources/index.js.map +1 -1
  359. package/resources/index.mjs +2 -0
  360. package/resources/index.mjs.map +1 -1
  361. package/resources/infringement-claims.d.mts +4 -0
  362. package/resources/infringement-claims.d.mts.map +1 -1
  363. package/resources/infringement-claims.d.ts +4 -0
  364. package/resources/infringement-claims.d.ts.map +1 -1
  365. package/resources/llm-token-gateway/index.d.mts +3 -0
  366. package/resources/llm-token-gateway/index.d.mts.map +1 -0
  367. package/resources/llm-token-gateway/index.d.ts +3 -0
  368. package/resources/llm-token-gateway/index.d.ts.map +1 -0
  369. package/resources/llm-token-gateway/index.js +9 -0
  370. package/resources/llm-token-gateway/index.js.map +1 -0
  371. package/resources/llm-token-gateway/index.mjs +4 -0
  372. package/resources/llm-token-gateway/index.mjs.map +1 -0
  373. package/resources/llm-token-gateway/llm-token-gateway.d.mts +10 -0
  374. package/resources/llm-token-gateway/llm-token-gateway.d.mts.map +1 -0
  375. package/resources/llm-token-gateway/llm-token-gateway.d.ts +10 -0
  376. package/resources/llm-token-gateway/llm-token-gateway.d.ts.map +1 -0
  377. package/resources/llm-token-gateway/llm-token-gateway.js +17 -0
  378. package/resources/llm-token-gateway/llm-token-gateway.js.map +1 -0
  379. package/resources/llm-token-gateway/llm-token-gateway.mjs +12 -0
  380. package/resources/llm-token-gateway/llm-token-gateway.mjs.map +1 -0
  381. package/resources/llm-token-gateway/usage.d.mts +260 -0
  382. package/resources/llm-token-gateway/usage.d.mts.map +1 -0
  383. package/resources/llm-token-gateway/usage.d.ts +260 -0
  384. package/resources/llm-token-gateway/usage.d.ts.map +1 -0
  385. package/resources/llm-token-gateway/usage.js +31 -0
  386. package/resources/llm-token-gateway/usage.js.map +1 -0
  387. package/resources/llm-token-gateway/usage.mjs +27 -0
  388. package/resources/llm-token-gateway/usage.mjs.map +1 -0
  389. package/resources/llm-token-gateway.d.mts +2 -0
  390. package/resources/llm-token-gateway.d.mts.map +1 -0
  391. package/resources/llm-token-gateway.d.ts +2 -0
  392. package/resources/llm-token-gateway.d.ts.map +1 -0
  393. package/resources/llm-token-gateway.js +6 -0
  394. package/resources/llm-token-gateway.js.map +1 -0
  395. package/resources/llm-token-gateway.mjs +3 -0
  396. package/resources/llm-token-gateway.mjs.map +1 -0
  397. package/resources/meeting-sessions/actions.d.mts +7 -1
  398. package/resources/meeting-sessions/actions.d.mts.map +1 -1
  399. package/resources/meeting-sessions/actions.d.ts +7 -1
  400. package/resources/meeting-sessions/actions.d.ts.map +1 -1
  401. package/resources/meeting-sessions/actions.js +7 -1
  402. package/resources/meeting-sessions/actions.js.map +1 -1
  403. package/resources/meeting-sessions/actions.mjs +7 -1
  404. package/resources/meeting-sessions/actions.mjs.map +1 -1
  405. package/resources/meeting-sessions/artifacts.d.mts +38 -11
  406. package/resources/meeting-sessions/artifacts.d.mts.map +1 -1
  407. package/resources/meeting-sessions/artifacts.d.ts +38 -11
  408. package/resources/meeting-sessions/artifacts.d.ts.map +1 -1
  409. package/resources/meeting-sessions/artifacts.js +11 -5
  410. package/resources/meeting-sessions/artifacts.js.map +1 -1
  411. package/resources/meeting-sessions/artifacts.mjs +11 -5
  412. package/resources/meeting-sessions/artifacts.mjs.map +1 -1
  413. package/resources/meeting-sessions/meeting-sessions.d.mts +71 -32
  414. package/resources/meeting-sessions/meeting-sessions.d.mts.map +1 -1
  415. package/resources/meeting-sessions/meeting-sessions.d.ts +71 -32
  416. package/resources/meeting-sessions/meeting-sessions.d.ts.map +1 -1
  417. package/resources/meeting-sessions/meeting-sessions.js +6 -8
  418. package/resources/meeting-sessions/meeting-sessions.js.map +1 -1
  419. package/resources/meeting-sessions/meeting-sessions.mjs +6 -8
  420. package/resources/meeting-sessions/meeting-sessions.mjs.map +1 -1
  421. package/resources/phone-numbers/phone-numbers.d.mts +12 -2
  422. package/resources/phone-numbers/phone-numbers.d.mts.map +1 -1
  423. package/resources/phone-numbers/phone-numbers.d.ts +12 -2
  424. package/resources/phone-numbers/phone-numbers.d.ts.map +1 -1
  425. package/resources/phone-numbers/phone-numbers.js.map +1 -1
  426. package/resources/phone-numbers/phone-numbers.mjs.map +1 -1
  427. package/resources/porting-orders/phone-number-blocks.d.mts +1 -1
  428. package/resources/porting-orders/phone-number-blocks.d.mts.map +1 -1
  429. package/resources/porting-orders/phone-number-blocks.d.ts +1 -1
  430. package/resources/porting-orders/phone-number-blocks.d.ts.map +1 -1
  431. package/resources/porting-orders/porting-orders.d.mts +1 -1
  432. package/resources/porting-orders/porting-orders.d.mts.map +1 -1
  433. package/resources/porting-orders/porting-orders.d.ts +1 -1
  434. package/resources/porting-orders/porting-orders.d.ts.map +1 -1
  435. package/resources/porting-orders/porting-orders.js.map +1 -1
  436. package/resources/porting-orders/porting-orders.mjs.map +1 -1
  437. package/resources/porting-phone-numbers.d.mts +1 -1
  438. package/resources/porting-phone-numbers.d.mts.map +1 -1
  439. package/resources/porting-phone-numbers.d.ts +1 -1
  440. package/resources/porting-phone-numbers.d.ts.map +1 -1
  441. package/resources/private-wireless-gateways.d.mts +61 -7
  442. package/resources/private-wireless-gateways.d.mts.map +1 -1
  443. package/resources/private-wireless-gateways.d.ts +61 -7
  444. package/resources/private-wireless-gateways.d.ts.map +1 -1
  445. package/resources/private-wireless-gateways.js +1 -1
  446. package/resources/private-wireless-gateways.js.map +1 -1
  447. package/resources/private-wireless-gateways.mjs +1 -1
  448. package/resources/private-wireless-gateways.mjs.map +1 -1
  449. package/resources/requirements.d.mts +2 -2
  450. package/resources/requirements.d.mts.map +1 -1
  451. package/resources/requirements.d.ts +2 -2
  452. package/resources/requirements.d.ts.map +1 -1
  453. package/resources/spend-limits.d.mts +335 -0
  454. package/resources/spend-limits.d.mts.map +1 -0
  455. package/resources/spend-limits.d.ts +335 -0
  456. package/resources/spend-limits.d.ts.map +1 -0
  457. package/resources/spend-limits.js +91 -0
  458. package/resources/spend-limits.js.map +1 -0
  459. package/resources/spend-limits.mjs +87 -0
  460. package/resources/spend-limits.mjs.map +1 -0
  461. package/resources/terms-of-service/agreements.d.mts +12 -0
  462. package/resources/terms-of-service/agreements.d.mts.map +1 -1
  463. package/resources/terms-of-service/agreements.d.ts +12 -0
  464. package/resources/terms-of-service/agreements.d.ts.map +1 -1
  465. package/resources/terms-of-service/terms-of-service.d.mts +15 -0
  466. package/resources/terms-of-service/terms-of-service.d.mts.map +1 -1
  467. package/resources/terms-of-service/terms-of-service.d.ts +15 -0
  468. package/resources/terms-of-service/terms-of-service.d.ts.map +1 -1
  469. package/resources/terms-of-service/terms-of-service.js.map +1 -1
  470. package/resources/terms-of-service/terms-of-service.mjs.map +1 -1
  471. package/resources/texml/accounts/calls/calls.d.mts +9 -9
  472. package/resources/texml/accounts/calls/calls.d.mts.map +1 -1
  473. package/resources/texml/accounts/calls/calls.d.ts +9 -9
  474. package/resources/texml/accounts/calls/calls.d.ts.map +1 -1
  475. package/resources/texml/accounts/calls/calls.js +12 -2
  476. package/resources/texml/accounts/calls/calls.js.map +1 -1
  477. package/resources/texml/accounts/calls/calls.mjs +12 -2
  478. package/resources/texml/accounts/calls/calls.mjs.map +1 -1
  479. package/resources/text-to-speech/text-to-speech.d.mts +65 -11
  480. package/resources/text-to-speech/text-to-speech.d.mts.map +1 -1
  481. package/resources/text-to-speech/text-to-speech.d.ts +65 -11
  482. package/resources/text-to-speech/text-to-speech.d.ts.map +1 -1
  483. package/resources/text-to-speech/text-to-speech.js +10 -3
  484. package/resources/text-to-speech/text-to-speech.js.map +1 -1
  485. package/resources/text-to-speech/text-to-speech.mjs +10 -3
  486. package/resources/text-to-speech/text-to-speech.mjs.map +1 -1
  487. package/resources/webhooks.d.mts +417 -9
  488. package/resources/webhooks.d.mts.map +1 -1
  489. package/resources/webhooks.d.ts +417 -9
  490. package/resources/webhooks.d.ts.map +1 -1
  491. package/resources/whatsapp/phone-numbers/calling-routing.d.mts +89 -0
  492. package/resources/whatsapp/phone-numbers/calling-routing.d.mts.map +1 -0
  493. package/resources/whatsapp/phone-numbers/calling-routing.d.ts +89 -0
  494. package/resources/whatsapp/phone-numbers/calling-routing.d.ts.map +1 -0
  495. package/resources/whatsapp/phone-numbers/calling-routing.js +65 -0
  496. package/resources/whatsapp/phone-numbers/calling-routing.js.map +1 -0
  497. package/resources/whatsapp/phone-numbers/calling-routing.mjs +61 -0
  498. package/resources/whatsapp/phone-numbers/calling-routing.mjs.map +1 -0
  499. package/resources/whatsapp/phone-numbers/index.d.mts +1 -0
  500. package/resources/whatsapp/phone-numbers/index.d.mts.map +1 -1
  501. package/resources/whatsapp/phone-numbers/index.d.ts +1 -0
  502. package/resources/whatsapp/phone-numbers/index.d.ts.map +1 -1
  503. package/resources/whatsapp/phone-numbers/index.js +3 -1
  504. package/resources/whatsapp/phone-numbers/index.js.map +1 -1
  505. package/resources/whatsapp/phone-numbers/index.mjs +1 -0
  506. package/resources/whatsapp/phone-numbers/index.mjs.map +1 -1
  507. package/resources/whatsapp/phone-numbers/phone-numbers.d.mts +4 -0
  508. package/resources/whatsapp/phone-numbers/phone-numbers.d.mts.map +1 -1
  509. package/resources/whatsapp/phone-numbers/phone-numbers.d.ts +4 -0
  510. package/resources/whatsapp/phone-numbers/phone-numbers.d.ts.map +1 -1
  511. package/resources/whatsapp/phone-numbers/phone-numbers.js +4 -0
  512. package/resources/whatsapp/phone-numbers/phone-numbers.js.map +1 -1
  513. package/resources/whatsapp/phone-numbers/phone-numbers.mjs +4 -0
  514. package/resources/whatsapp/phone-numbers/phone-numbers.mjs.map +1 -1
  515. package/src/client.ts +67 -6
  516. package/src/resources/ai/ai.ts +21 -4
  517. package/src/resources/ai/assistants/assistants.ts +602 -36
  518. package/src/resources/ai/assistants/deleted.ts +86 -0
  519. package/src/resources/ai/assistants/index.ts +12 -0
  520. package/src/resources/ai/assistants/versions.ts +42 -2
  521. package/src/resources/ai/chat.ts +7 -2
  522. package/src/resources/ai/collections/collections.ts +3 -1
  523. package/src/resources/ai/collections/index.ts +2 -0
  524. package/src/resources/ai/collections/sources.ts +38 -4
  525. package/src/resources/ai/embeddings/embeddings.ts +1 -1
  526. package/src/resources/ai/index.ts +7 -1
  527. package/src/resources/ai/memory/index.ts +12 -0
  528. package/src/resources/ai/memory/memory.ts +31 -0
  529. package/src/resources/ai/memory/namespaces/index.ts +29 -0
  530. package/src/resources/ai/memory/namespaces/namespaces.ts +194 -0
  531. package/src/resources/ai/memory/namespaces/profiles/index.ts +35 -0
  532. package/src/resources/ai/memory/namespaces/profiles/memories.ts +170 -0
  533. package/src/resources/ai/memory/namespaces/profiles/profiles.ts +482 -0
  534. package/src/resources/ai/memory/namespaces/profiles/sources.ts +226 -0
  535. package/src/resources/ai/memory/namespaces/profiles.ts +3 -0
  536. package/src/resources/ai/memory/namespaces/settings.ts +129 -0
  537. package/src/resources/ai/memory/namespaces.ts +3 -0
  538. package/src/resources/ai/memory.ts +3 -0
  539. package/src/resources/ai/openai/chat.ts +7 -2
  540. package/src/resources/ai/tools.ts +6 -6
  541. package/src/resources/ai/typesafe/v1.ts +26 -14
  542. package/src/resources/calls/actions.ts +126 -19
  543. package/src/resources/calls/calls.ts +61 -11
  544. package/src/resources/calls/index.ts +1 -0
  545. package/src/resources/conferences/actions.ts +8 -1
  546. package/src/resources/dir/dir.ts +263 -32
  547. package/src/resources/dir/index.ts +6 -0
  548. package/src/resources/dir/phone-numbers.ts +8 -4
  549. package/src/resources/dir/references.ts +9 -6
  550. package/src/resources/email-blocks/email-blocks.ts +12 -4
  551. package/src/resources/email-blocks/imports.ts +20 -4
  552. package/src/resources/email-domains/email-domains.ts +120 -0
  553. package/src/resources/email-domains/index.ts +1 -0
  554. package/src/resources/email-domains/webhooks.ts +9 -4
  555. package/src/resources/email-events.ts +220 -35
  556. package/src/resources/email-inboxes/drafts.ts +32 -1
  557. package/src/resources/email-messages/email-messages.ts +191 -47
  558. package/src/resources/email-messages/index.ts +2 -1
  559. package/src/resources/email-messages/recipients.ts +6 -2
  560. package/src/resources/email-templates.ts +185 -0
  561. package/src/resources/enterprises/dir.ts +19 -1
  562. package/src/resources/enterprises/enterprises.ts +250 -23
  563. package/src/resources/enterprises/index.ts +5 -0
  564. package/src/resources/enterprises/reputation/loa.ts +73 -1
  565. package/src/resources/enterprises/verify-email.ts +117 -0
  566. package/src/resources/index.ts +26 -3
  567. package/src/resources/infringement-claims.ts +4 -0
  568. package/src/resources/llm-token-gateway/index.ts +4 -0
  569. package/src/resources/llm-token-gateway/llm-token-gateway.ts +19 -0
  570. package/src/resources/llm-token-gateway/usage.ts +336 -0
  571. package/src/resources/llm-token-gateway.ts +3 -0
  572. package/src/resources/meeting-sessions/actions.ts +7 -1
  573. package/src/resources/meeting-sessions/artifacts.ts +42 -11
  574. package/src/resources/meeting-sessions/meeting-sessions.ts +71 -33
  575. package/src/resources/phone-numbers/phone-numbers.ts +13 -2
  576. package/src/resources/porting-orders/phone-number-blocks.ts +9 -1
  577. package/src/resources/porting-orders/porting-orders.ts +9 -1
  578. package/src/resources/porting-phone-numbers.ts +9 -1
  579. package/src/resources/private-wireless-gateways.ts +76 -8
  580. package/src/resources/requirements.ts +2 -2
  581. package/src/resources/spend-limits.ts +428 -0
  582. package/src/resources/terms-of-service/agreements.ts +12 -0
  583. package/src/resources/terms-of-service/terms-of-service.ts +15 -0
  584. package/src/resources/texml/accounts/calls/calls.ts +20 -10
  585. package/src/resources/text-to-speech/text-to-speech.ts +73 -11
  586. package/src/resources/webhooks.ts +511 -6
  587. package/src/resources/whatsapp/phone-numbers/calling-routing.ts +113 -0
  588. package/src/resources/whatsapp/phone-numbers/index.ts +7 -0
  589. package/src/resources/whatsapp/phone-numbers/phone-numbers.ts +18 -0
  590. package/src/version.ts +1 -1
  591. package/version.d.mts +1 -1
  592. package/version.d.ts +1 -1
  593. package/version.js +1 -1
  594. package/version.mjs +1 -1
@@ -0,0 +1,260 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import { APIPromise } from "../../core/api-promise.js";
3
+ import { RequestOptions } from "../../internal/request-options.js";
4
+ /**
5
+ * Manage and report AI Gateway traffic.
6
+ */
7
+ export declare class Usage extends APIResource {
8
+ /**
9
+ * Return complete usage totals, UTC daily and model breakdowns, and guardrail
10
+ * event counts for one token group owned by the authenticated account. Requires
11
+ * the llm_token_gateway.usage.read permission; spend and guardrail read
12
+ * permissions do not grant this combined report. All sections share one database
13
+ * snapshot and include the latest usage corrections. Dates use an inclusive start
14
+ * and exclusive end spanning 1 to 31 days. Only token_group_id, start_date and
15
+ * end_date are accepted; pagination, group_by and other filters are rejected.
16
+ * Spend is reference/enforcement USD, not invoice truth or BYOK provider charges.
17
+ * Unknown cost is excluded from spend and reported through unknown_requests and
18
+ * reserved_spend. Daily rows include zero-activity days. Model rows are ordered by
19
+ * request count descending, then model name, and are limited to 1,000. Guardrail
20
+ * counts count events, not distinct requests; recent_events contains at most 20
21
+ * newest events. A report that exceeds model or query limits returns 503 rather
22
+ * than a truncated success.
23
+ */
24
+ retrieveSummary(query: UsageRetrieveSummaryParams, options?: RequestOptions): APIPromise<UsageRetrieveSummaryResponse>;
25
+ }
26
+ export interface UsageRetrieveSummaryResponse {
27
+ data: UsageRetrieveSummaryResponse.Data;
28
+ meta: UsageRetrieveSummaryResponse.Meta;
29
+ }
30
+ export declare namespace UsageRetrieveSummaryResponse {
31
+ interface Data {
32
+ /**
33
+ * One row per UTC day, including zero-activity days.
34
+ */
35
+ by_day: Array<Data.ByDay>;
36
+ /**
37
+ * One row per model, ordered by request count descending then model name.
38
+ */
39
+ by_model: Array<Data.ByModel>;
40
+ /**
41
+ * Complete guardrail event counts and bounded recent findings for the same group
42
+ * and range.
43
+ */
44
+ guardrails: Data.Guardrails;
45
+ /**
46
+ * Metrics for all matching requests.
47
+ */
48
+ totals: Data.Totals;
49
+ }
50
+ namespace Data {
51
+ interface ByDay {
52
+ /**
53
+ * Requests served from the gateway cache.
54
+ */
55
+ cache_hits: number;
56
+ /**
57
+ * UTC day.
58
+ */
59
+ date: string;
60
+ /**
61
+ * Requests classified as failed.
62
+ */
63
+ failed_requests: number;
64
+ /**
65
+ * Independently known input tokens across attempts, including corrected usage.
66
+ */
67
+ input_tokens: number;
68
+ /**
69
+ * Independently known output tokens across attempts, including corrected usage.
70
+ */
71
+ output_tokens: number;
72
+ /**
73
+ * Requests classified as partial after streaming began.
74
+ */
75
+ partial_requests: number;
76
+ /**
77
+ * Number of matching requests.
78
+ */
79
+ requests: number;
80
+ /**
81
+ * Unresolved budget reservations in USD.
82
+ */
83
+ reserved_spend: number;
84
+ /**
85
+ * Sum of known reference/enforcement cost in USD.
86
+ */
87
+ spend: number;
88
+ /**
89
+ * Requests classified as succeeded.
90
+ */
91
+ succeeded_requests: number;
92
+ /**
93
+ * Requests whose cost remains unresolved; unknown cost is excluded from spend.
94
+ */
95
+ unknown_requests: number;
96
+ }
97
+ interface ByModel {
98
+ /**
99
+ * Requests served from the gateway cache.
100
+ */
101
+ cache_hits: number;
102
+ /**
103
+ * Requests classified as failed.
104
+ */
105
+ failed_requests: number;
106
+ /**
107
+ * Independently known input tokens across attempts, including corrected usage.
108
+ */
109
+ input_tokens: number;
110
+ /**
111
+ * Model identifier.
112
+ */
113
+ model: string;
114
+ /**
115
+ * Independently known output tokens across attempts, including corrected usage.
116
+ */
117
+ output_tokens: number;
118
+ /**
119
+ * Requests classified as partial after streaming began.
120
+ */
121
+ partial_requests: number;
122
+ /**
123
+ * Number of matching requests.
124
+ */
125
+ requests: number;
126
+ /**
127
+ * Unresolved budget reservations in USD.
128
+ */
129
+ reserved_spend: number;
130
+ /**
131
+ * Sum of known reference/enforcement cost in USD.
132
+ */
133
+ spend: number;
134
+ /**
135
+ * Requests classified as succeeded.
136
+ */
137
+ succeeded_requests: number;
138
+ /**
139
+ * Requests whose cost remains unresolved; unknown cost is excluded from spend.
140
+ */
141
+ unknown_requests: number;
142
+ }
143
+ /**
144
+ * Complete guardrail event counts and bounded recent findings for the same group
145
+ * and range.
146
+ */
147
+ interface Guardrails {
148
+ /**
149
+ * Total blocked guardrail events, not distinct requests.
150
+ */
151
+ blocked_events: number;
152
+ /**
153
+ * Total flagged guardrail events, not distinct requests.
154
+ */
155
+ flagged_events: number;
156
+ /**
157
+ * Up to 20 newest privacy-safe guardrail events, ordered by creation time
158
+ * descending and event ID.
159
+ */
160
+ recent_events: Array<Guardrails.RecentEvent>;
161
+ }
162
+ namespace Guardrails {
163
+ interface RecentEvent {
164
+ id: string;
165
+ created_at: string;
166
+ end_user_id: string | null;
167
+ evaluation_input_tokens: number | null;
168
+ evaluation_output_tokens: number | null;
169
+ findings: Array<RecentEvent.Finding>;
170
+ /**
171
+ * Model identifier.
172
+ */
173
+ model: string;
174
+ outcome: 'evaluated' | 'flagged' | 'blocked' | 'unevaluated';
175
+ record_type: 'guardrail_event';
176
+ request_id: string;
177
+ stage: 'prompt' | 'response';
178
+ token_group_id: string;
179
+ token_key_id: string;
180
+ token_user_id: string | null;
181
+ }
182
+ namespace RecentEvent {
183
+ interface Finding {
184
+ action: 'flag' | 'block';
185
+ code: string;
186
+ count: number;
187
+ detector: 'secrets' | 'dlp' | 'safety';
188
+ }
189
+ }
190
+ }
191
+ /**
192
+ * Metrics for all matching requests.
193
+ */
194
+ interface Totals {
195
+ /**
196
+ * Requests served from the gateway cache.
197
+ */
198
+ cache_hits: number;
199
+ /**
200
+ * Requests classified as failed.
201
+ */
202
+ failed_requests: number;
203
+ /**
204
+ * Independently known input tokens across attempts, including corrected usage.
205
+ */
206
+ input_tokens: number;
207
+ /**
208
+ * Independently known output tokens across attempts, including corrected usage.
209
+ */
210
+ output_tokens: number;
211
+ /**
212
+ * Requests classified as partial after streaming began.
213
+ */
214
+ partial_requests: number;
215
+ /**
216
+ * Number of matching requests.
217
+ */
218
+ requests: number;
219
+ /**
220
+ * Unresolved budget reservations in USD.
221
+ */
222
+ reserved_spend: number;
223
+ /**
224
+ * Sum of known reference/enforcement cost in USD.
225
+ */
226
+ spend: number;
227
+ /**
228
+ * Requests classified as succeeded.
229
+ */
230
+ succeeded_requests: number;
231
+ /**
232
+ * Requests whose cost remains unresolved; unknown cost is excluded from spend.
233
+ */
234
+ unknown_requests: number;
235
+ }
236
+ }
237
+ interface Meta {
238
+ end_date: string;
239
+ start_date: string;
240
+ token_group_id: string;
241
+ }
242
+ }
243
+ export interface UsageRetrieveSummaryParams {
244
+ /**
245
+ * Exclusive UTC date in YYYY-MM-DD format. Must follow start_date by 1 to 31 days.
246
+ */
247
+ end_date: string;
248
+ /**
249
+ * Inclusive UTC date in YYYY-MM-DD format. Must precede end_date by 1 to 31 days.
250
+ */
251
+ start_date: string;
252
+ /**
253
+ * ID of a token group owned by the authenticated account.
254
+ */
255
+ token_group_id: string;
256
+ }
257
+ export declare namespace Usage {
258
+ export { type UsageRetrieveSummaryResponse as UsageRetrieveSummaryResponse, type UsageRetrieveSummaryParams as UsageRetrieveSummaryParams, };
259
+ }
260
+ //# sourceMappingURL=usage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usage.d.ts","sourceRoot":"","sources":["../../src/resources/llm-token-gateway/usage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAEhE;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;;;OAeG;IACH,eAAe,CACb,KAAK,EAAE,0BAA0B,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;CAG5C;AAED,MAAM,WAAW,4BAA4B;IAC3C,IAAI,EAAE,4BAA4B,CAAC,IAAI,CAAC;IAExC,IAAI,EAAE,4BAA4B,CAAC,IAAI,CAAC;CACzC;AAED,yBAAiB,4BAA4B,CAAC;IAC5C,UAAiB,IAAI;QACnB;;WAEG;QACH,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAE1B;;WAEG;QACH,QAAQ,EAAE,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAE9B;;;WAGG;QACH,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC;QAE5B;;WAEG;QACH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;KACrB;IAED,UAAiB,IAAI,CAAC;QACpB,UAAiB,KAAK;YACpB;;eAEG;YACH,UAAU,EAAE,MAAM,CAAC;YAEnB;;eAEG;YACH,IAAI,EAAE,MAAM,CAAC;YAEb;;eAEG;YACH,eAAe,EAAE,MAAM,CAAC;YAExB;;eAEG;YACH,YAAY,EAAE,MAAM,CAAC;YAErB;;eAEG;YACH,aAAa,EAAE,MAAM,CAAC;YAEtB;;eAEG;YACH,gBAAgB,EAAE,MAAM,CAAC;YAEzB;;eAEG;YACH,QAAQ,EAAE,MA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UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
@@ -0,0 +1,31 @@
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.Usage = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ /**
7
+ * Manage and report AI Gateway traffic.
8
+ */
9
+ class Usage extends resource_1.APIResource {
10
+ /**
11
+ * Return complete usage totals, UTC daily and model breakdowns, and guardrail
12
+ * event counts for one token group owned by the authenticated account. Requires
13
+ * the llm_token_gateway.usage.read permission; spend and guardrail read
14
+ * permissions do not grant this combined report. All sections share one database
15
+ * snapshot and include the latest usage corrections. Dates use an inclusive start
16
+ * and exclusive end spanning 1 to 31 days. Only token_group_id, start_date and
17
+ * end_date are accepted; pagination, group_by and other filters are rejected.
18
+ * Spend is reference/enforcement USD, not invoice truth or BYOK provider charges.
19
+ * Unknown cost is excluded from spend and reported through unknown_requests and
20
+ * reserved_spend. Daily rows include zero-activity days. Model rows are ordered by
21
+ * request count descending, then model name, and are limited to 1,000. Guardrail
22
+ * counts count events, not distinct requests; recent_events contains at most 20
23
+ * newest events. A report that exceeds model or query limits returns 503 rather
24
+ * than a truncated success.
25
+ */
26
+ retrieveSummary(query, options) {
27
+ return this._client.get('/llm_token_gateway/usage/summary', { query, ...options });
28
+ }
29
+ }
30
+ exports.Usage = Usage;
31
+ //# sourceMappingURL=usage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usage.js","sourceRoot":"","sources":["../../src/resources/llm-token-gateway/usage.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD;;GAEG;AACH,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;;;;;;;;;;OAeG;IACH,eAAe,CACb,KAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;CACF;AAvBD,sBAuBC"}
@@ -0,0 +1,27 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ /**
4
+ * Manage and report AI Gateway traffic.
5
+ */
6
+ export class Usage extends APIResource {
7
+ /**
8
+ * Return complete usage totals, UTC daily and model breakdowns, and guardrail
9
+ * event counts for one token group owned by the authenticated account. Requires
10
+ * the llm_token_gateway.usage.read permission; spend and guardrail read
11
+ * permissions do not grant this combined report. All sections share one database
12
+ * snapshot and include the latest usage corrections. Dates use an inclusive start
13
+ * and exclusive end spanning 1 to 31 days. Only token_group_id, start_date and
14
+ * end_date are accepted; pagination, group_by and other filters are rejected.
15
+ * Spend is reference/enforcement USD, not invoice truth or BYOK provider charges.
16
+ * Unknown cost is excluded from spend and reported through unknown_requests and
17
+ * reserved_spend. Daily rows include zero-activity days. Model rows are ordered by
18
+ * request count descending, then model name, and are limited to 1,000. Guardrail
19
+ * counts count events, not distinct requests; recent_events contains at most 20
20
+ * newest events. A report that exceeds model or query limits returns 503 rather
21
+ * than a truncated success.
22
+ */
23
+ retrieveSummary(query, options) {
24
+ return this._client.get('/llm_token_gateway/usage/summary', { query, ...options });
25
+ }
26
+ }
27
+ //# sourceMappingURL=usage.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usage.mjs","sourceRoot":"","sources":["../../src/resources/llm-token-gateway/usage.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD;;GAEG;AACH,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;;;OAeG;IACH,eAAe,CACb,KAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;CACF"}
@@ -0,0 +1,2 @@
1
+ export * from "./llm-token-gateway/index.mjs";
2
+ //# sourceMappingURL=llm-token-gateway.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"llm-token-gateway.d.mts","sourceRoot":"","sources":["../src/resources/llm-token-gateway.ts"],"names":[],"mappings":"AAEA,8CAA0C"}
@@ -0,0 +1,2 @@
1
+ export * from "./llm-token-gateway/index.js";
2
+ //# sourceMappingURL=llm-token-gateway.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"llm-token-gateway.d.ts","sourceRoot":"","sources":["../src/resources/llm-token-gateway.ts"],"names":[],"mappings":"AAEA,6CAA0C"}
@@ -0,0 +1,6 @@
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
+ const tslib_1 = require("../internal/tslib.js");
5
+ tslib_1.__exportStar(require("./llm-token-gateway/index.js"), exports);
6
+ //# sourceMappingURL=llm-token-gateway.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"llm-token-gateway.js","sourceRoot":"","sources":["../src/resources/llm-token-gateway.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,uEAA0C"}
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export * from "./llm-token-gateway/index.mjs";
3
+ //# sourceMappingURL=llm-token-gateway.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"llm-token-gateway.mjs","sourceRoot":"","sources":["../src/resources/llm-token-gateway.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,8CAA0C"}
@@ -19,7 +19,13 @@ export declare class Actions extends APIResource {
19
19
  */
20
20
  sendChat(id: string, body: ActionSendChatParams, options?: RequestOptions): APIPromise<ActionAcceptedResponse>;
21
21
  /**
22
- * Sends audio / text-to-speech into a meeting session.
22
+ * Sends audio / text-to-speech into a meeting session. With a Telnyx AI Assistant
23
+ * (or avatar) attached, the bot is a webpage-output bot: the speak audio routes
24
+ * through the assistant's output page rather than the bot mic and plays once the
25
+ * assistant is connected -- it is not refused. If that page cannot be reached,
26
+ * delivery fails with the 502 below, which may arrive without an error envelope,
27
+ * so branch on the status code before parsing a body. The assistant is designed to
28
+ * own the conversation, so prefer letting it speak or use `send_chat`.
23
29
  *
24
30
  * @example
25
31
  * ```ts
@@ -1 +1 @@
1
- {"version":3,"file":"actions.d.mts","sourceRoot":"","sources":["../../src/resources/meeting-sessions/actions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,oBAAoB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;IAIrC;;;;;;;;;;;;;OAaG;IACH,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;IAIxG;;;;;;;;;;OAUG;IACH,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;CAGvF;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,sBAAsB,CAAC,IAAI,CAAC;CACnC;AAED,yBAAiB,sBAAsB,CAAC;IACtC,UAAiB,IAAI;QACn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sBAAsB,CAAC;IACtC,UAAiB,IAAI;QACnB,QAAQ,EAAE,OAAO,CAAC;KACnB;CACF;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
@@ -19,7 +19,13 @@ export declare class Actions extends APIResource {
19
19
  */
20
20
  sendChat(id: string, body: ActionSendChatParams, options?: RequestOptions): APIPromise<ActionAcceptedResponse>;
21
21
  /**
22
- * Sends audio / text-to-speech into a meeting session.
22
+ * Sends audio / text-to-speech into a meeting session. With a Telnyx AI Assistant
23
+ * (or avatar) attached, the bot is a webpage-output bot: the speak audio routes
24
+ * through the assistant's output page rather than the bot mic and plays once the
25
+ * assistant is connected -- it is not refused. If that page cannot be reached,
26
+ * delivery fails with the 502 below, which may arrive without an error envelope,
27
+ * so branch on the status code before parsing a body. The assistant is designed to
28
+ * own the conversation, so prefer letting it speak or use `send_chat`.
23
29
  *
24
30
  * @example
25
31
  * ```ts
@@ -1 +1 @@
1
- {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/resources/meeting-sessions/actions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;OAWG;IACH,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IACtC;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,oBAAoB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;IAIrC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;IAIxG;;;;;;;;;;OAUG;IACH,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;CAGvF;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,sBAAsB,CAAC,IAAI,CAAC;CACnC;AAED,yBAAiB,sBAAsB,CAAC;IACtC,UAAiB,IAAI;QACnB,QAAQ,EAAE,OAAO,CAAC;KACnB;CACF;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
@@ -24,7 +24,13 @@ class Actions extends resource_1.APIResource {
24
24
  return this._client.post((0, path_1.path) `/meeting_sessions/${id}/actions/send_chat`, { body, ...options });
25
25
  }
26
26
  /**
27
- * Sends audio / text-to-speech into a meeting session.
27
+ * Sends audio / text-to-speech into a meeting session. With a Telnyx AI Assistant
28
+ * (or avatar) attached, the bot is a webpage-output bot: the speak audio routes
29
+ * through the assistant's output page rather than the bot mic and plays once the
30
+ * assistant is connected -- it is not refused. If that page cannot be reached,
31
+ * delivery fails with the 502 below, which may arrive without an error envelope,
32
+ * so branch on the status code before parsing a body. The assistant is designed to
33
+ * own the conversation, so prefer letting it speak or use `send_chat`.
28
34
  *
29
35
  * @example
30
36
  * ```ts
@@ -1 +1 @@
1
- {"version":3,"file":"actions.js","sourceRoot":"","sources":["../../src/resources/meeting-sessions/actions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,EAAU,EACV,IAA0B,EAC1B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,qBAAqB,EAAE,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClG,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,KAAK,CAAC,EAAU,EAAE,IAAuB,EAAE,OAAwB;QACjE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,qBAAqB,EAAE,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;IAED;;;;;;;;;;OAUG;IACH,YAAY,CAAC,EAAU,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,qBAAqB,EAAE,wBAAwB,EAAE,OAAO,CAAC,CAAC;IACzF,CAAC;CACF;AArDD,0BAqDC"}
1
+ {"version":3,"file":"actions.js","sourceRoot":"","sources":["../../src/resources/meeting-sessions/actions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,EAAU,EACV,IAA0B,EAC1B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,qBAAqB,EAAE,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClG,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,KAAK,CAAC,EAAU,EAAE,IAAuB,EAAE,OAAwB;QACjE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,qBAAqB,EAAE,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;IAED;;;;;;;;;;OAUG;IACH,YAAY,CAAC,EAAU,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,qBAAqB,EAAE,wBAAwB,EAAE,OAAO,CAAC,CAAC;IACzF,CAAC;CACF;AA3DD,0BA2DC"}
@@ -21,7 +21,13 @@ export class Actions extends APIResource {
21
21
  return this._client.post(path `/meeting_sessions/${id}/actions/send_chat`, { body, ...options });
22
22
  }
23
23
  /**
24
- * Sends audio / text-to-speech into a meeting session.
24
+ * Sends audio / text-to-speech into a meeting session. With a Telnyx AI Assistant
25
+ * (or avatar) attached, the bot is a webpage-output bot: the speak audio routes
26
+ * through the assistant's output page rather than the bot mic and plays once the
27
+ * assistant is connected -- it is not refused. If that page cannot be reached,
28
+ * delivery fails with the 502 below, which may arrive without an error envelope,
29
+ * so branch on the status code before parsing a body. The assistant is designed to
30
+ * own the conversation, so prefer letting it speak or use `send_chat`.
25
31
  *
26
32
  * @example
27
33
  * ```ts
@@ -1 +1 @@
1
- {"version":3,"file":"actions.mjs","sourceRoot":"","sources":["../../src/resources/meeting-sessions/actions.ts"],"names":[],"mappings":"AAAA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;;;;;;;;;;;;;;OAmBG;IACH,KAAK,CAAC,EAAU,EAAE,IAAuB,EAAE,OAAwB;QACjE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,qBAAqB,EAAE,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;IAED;;;;;;;;;;OAUG;IACH,YAAY,CAAC,EAAU,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,qBAAqB,EAAE,wBAAwB,EAAE,OAAO,CAAC,CAAC;IACzF,CAAC;CACF"}
@@ -18,11 +18,17 @@ export declare class Artifacts extends APIResource {
18
18
  */
19
19
  list(id: string, options?: RequestOptions): APIPromise<ArtifactListResponse>;
20
20
  /**
21
- * Requests asynchronous generation of one `summary` or `action_items` artifact.
22
- * Each type requires its own request. Generation requires transcript content and
23
- * configured inference and currently reads at most the first 10,000 segments, so
24
- * exceptionally long transcripts may produce incomplete artifacts or fail model
25
- * limits.
21
+ * Requests asynchronous generation of one artifact: `summary`, `action_items`,
22
+ * `decisions`, `topics`, `open_questions`, or `custom`. Each request produces one
23
+ * artifact. `custom` is answered from a `prompt` you supply, which is required for
24
+ * `custom` and rejected on the five named types. Generation requires transcript
25
+ * content and configured inference and currently reads at most the first 10,000
26
+ * segments, so exceptionally long transcripts may produce incomplete artifacts or
27
+ * fail model limits. **Not idempotent, and every call is billed**: each request is
28
+ * a separate inference run, so a retry or a duplicate POST produces a second
29
+ * artifact and a second charge. Guard the call rather than relying on the service
30
+ * to collapse it. The automatic `summarize_on_end` attempt is billed on the same
31
+ * basis.
26
32
  *
27
33
  * @example
28
34
  * ```ts
@@ -54,9 +60,14 @@ export interface MeetingSessionArtifact {
54
60
  created_at: string;
55
61
  failure_reason: string | null;
56
62
  model_provenance: MeetingSessionArtifact.ModelProvenance | null;
63
+ /**
64
+ * The prompt that produced this artifact, or null for a named type. Non-null only
65
+ * when `type` is `custom`; the five named types always return `null`.
66
+ */
67
+ prompt: string | null;
57
68
  session_id: string;
58
69
  status: 'pending' | 'completed' | 'failed';
59
- type: 'summary' | 'action_items';
70
+ type: 'summary' | 'action_items' | 'decisions' | 'topics' | 'open_questions' | 'custom';
60
71
  updated_at: string;
61
72
  }
62
73
  export declare namespace MeetingSessionArtifact {
@@ -74,11 +85,27 @@ export interface MeetingSessionArtifactResponse {
74
85
  export interface ArtifactListResponse {
75
86
  data: Array<MeetingSessionArtifact>;
76
87
  }
77
- export interface ArtifactCreateParams {
78
- /**
79
- * Type of artifact to generate from the session.
80
- */
81
- type: 'summary' | 'action_items';
88
+ export type ArtifactCreateParams = ArtifactCreateParams.NamedArtifact | ArtifactCreateParams.CustomArtifact;
89
+ export declare namespace ArtifactCreateParams {
90
+ interface NamedArtifact {
91
+ /**
92
+ * What to generate from the transcript. `custom` is answered from a `prompt` you
93
+ * supply; the five named types need none.
94
+ */
95
+ type: 'summary' | 'action_items' | 'decisions' | 'topics' | 'open_questions';
96
+ }
97
+ interface CustomArtifact {
98
+ /**
99
+ * An open-ended request answered from the transcript. Required when `type` is
100
+ * `custom`, and rejected with 400 on any named type. Trimmed before storage and
101
+ * echoed back in artifact responses and the `artifact.completed` webhook.
102
+ */
103
+ prompt: string;
104
+ /**
105
+ * Answered from the `prompt` below rather than a fixed question.
106
+ */
107
+ type: 'custom';
108
+ }
82
109
  }
83
110
  export interface ArtifactRetrieveParams {
84
111
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"artifacts.d.mts","sourceRoot":"","sources":["../../src/resources/meeting-sessions/artifacts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;OAUG;IACH,IAAI,CAAC,EAAE,EAAE,MAAM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,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -18,11 +18,17 @@ export declare class Artifacts extends APIResource {
18
18
  */
19
19
  list(id: string, options?: RequestOptions): APIPromise<ArtifactListResponse>;
20
20
  /**
21
- * Requests asynchronous generation of one `summary` or `action_items` artifact.
22
- * Each type requires its own request. Generation requires transcript content and
23
- * configured inference and currently reads at most the first 10,000 segments, so
24
- * exceptionally long transcripts may produce incomplete artifacts or fail model
25
- * limits.
21
+ * Requests asynchronous generation of one artifact: `summary`, `action_items`,
22
+ * `decisions`, `topics`, `open_questions`, or `custom`. Each request produces one
23
+ * artifact. `custom` is answered from a `prompt` you supply, which is required for
24
+ * `custom` and rejected on the five named types. Generation requires transcript
25
+ * content and configured inference and currently reads at most the first 10,000
26
+ * segments, so exceptionally long transcripts may produce incomplete artifacts or
27
+ * fail model limits. **Not idempotent, and every call is billed**: each request is
28
+ * a separate inference run, so a retry or a duplicate POST produces a second
29
+ * artifact and a second charge. Guard the call rather than relying on the service
30
+ * to collapse it. The automatic `summarize_on_end` attempt is billed on the same
31
+ * basis.
26
32
  *
27
33
  * @example
28
34
  * ```ts
@@ -54,9 +60,14 @@ export interface MeetingSessionArtifact {
54
60
  created_at: string;
55
61
  failure_reason: string | null;
56
62
  model_provenance: MeetingSessionArtifact.ModelProvenance | null;
63
+ /**
64
+ * The prompt that produced this artifact, or null for a named type. Non-null only
65
+ * when `type` is `custom`; the five named types always return `null`.
66
+ */
67
+ prompt: string | null;
57
68
  session_id: string;
58
69
  status: 'pending' | 'completed' | 'failed';
59
- type: 'summary' | 'action_items';
70
+ type: 'summary' | 'action_items' | 'decisions' | 'topics' | 'open_questions' | 'custom';
60
71
  updated_at: string;
61
72
  }
62
73
  export declare namespace MeetingSessionArtifact {
@@ -74,11 +85,27 @@ export interface MeetingSessionArtifactResponse {
74
85
  export interface ArtifactListResponse {
75
86
  data: Array<MeetingSessionArtifact>;
76
87
  }
77
- export interface ArtifactCreateParams {
78
- /**
79
- * Type of artifact to generate from the session.
80
- */
81
- type: 'summary' | 'action_items';
88
+ export type ArtifactCreateParams = ArtifactCreateParams.NamedArtifact | ArtifactCreateParams.CustomArtifact;
89
+ export declare namespace ArtifactCreateParams {
90
+ interface NamedArtifact {
91
+ /**
92
+ * What to generate from the transcript. `custom` is answered from a `prompt` you
93
+ * supply; the five named types need none.
94
+ */
95
+ type: 'summary' | 'action_items' | 'decisions' | 'topics' | 'open_questions';
96
+ }
97
+ interface CustomArtifact {
98
+ /**
99
+ * An open-ended request answered from the transcript. Required when `type` is
100
+ * `custom`, and rejected with 400 on any named type. Trimmed before storage and
101
+ * echoed back in artifact responses and the `artifact.completed` webhook.
102
+ */
103
+ prompt: string;
104
+ /**
105
+ * Answered from the `prompt` below rather than a fixed question.
106
+ */
107
+ type: 'custom';
108
+ }
82
109
  }
83
110
  export interface ArtifactRetrieveParams {
84
111
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"artifacts.d.ts","sourceRoot":"","sources":["../../src/resources/meeting-sessions/artifacts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;OAUG;IACH,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAI5E;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,oBAAoB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,8BAA8B,CAAC;IAI7C;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,sBAAsB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,8BAA8B,CAA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