@meetkai/mka1 0.55.25 → 0.55.26

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 (302) hide show
  1. package/README.md +410 -410
  2. package/bin/mcp-server.js +2272 -1970
  3. package/bin/mcp-server.js.map +28 -25
  4. package/dist/commonjs/funcs/billingCreateOrganizationBillingPortal.d.ts +2 -0
  5. package/dist/commonjs/funcs/billingCreateOrganizationBillingPortal.d.ts.map +1 -1
  6. package/dist/commonjs/funcs/billingCreateOrganizationBillingPortal.js +2 -0
  7. package/dist/commonjs/funcs/billingCreateOrganizationBillingPortal.js.map +1 -1
  8. package/dist/commonjs/funcs/billingCreateOrganizationBillingSetup.d.ts +2 -0
  9. package/dist/commonjs/funcs/billingCreateOrganizationBillingSetup.d.ts.map +1 -1
  10. package/dist/commonjs/funcs/billingCreateOrganizationBillingSetup.js +2 -0
  11. package/dist/commonjs/funcs/billingCreateOrganizationBillingSetup.js.map +1 -1
  12. package/dist/commonjs/funcs/billingGetOrganizationBilling.d.ts +2 -0
  13. package/dist/commonjs/funcs/billingGetOrganizationBilling.d.ts.map +1 -1
  14. package/dist/commonjs/funcs/billingGetOrganizationBilling.js +2 -0
  15. package/dist/commonjs/funcs/billingGetOrganizationBilling.js.map +1 -1
  16. package/dist/commonjs/funcs/billingListOrganizationBillingInvoices.d.ts +2 -0
  17. package/dist/commonjs/funcs/billingListOrganizationBillingInvoices.d.ts.map +1 -1
  18. package/dist/commonjs/funcs/billingListOrganizationBillingInvoices.js +2 -0
  19. package/dist/commonjs/funcs/billingListOrganizationBillingInvoices.js.map +1 -1
  20. package/dist/commonjs/funcs/billingSetOrganizationBillingEnabled.d.ts +2 -0
  21. package/dist/commonjs/funcs/billingSetOrganizationBillingEnabled.d.ts.map +1 -1
  22. package/dist/commonjs/funcs/billingSetOrganizationBillingEnabled.js +2 -0
  23. package/dist/commonjs/funcs/billingSetOrganizationBillingEnabled.js.map +1 -1
  24. package/dist/commonjs/funcs/billingUpdateOrganizationBillingProfile.d.ts +2 -0
  25. package/dist/commonjs/funcs/billingUpdateOrganizationBillingProfile.d.ts.map +1 -1
  26. package/dist/commonjs/funcs/billingUpdateOrganizationBillingProfile.js +2 -0
  27. package/dist/commonjs/funcs/billingUpdateOrganizationBillingProfile.js.map +1 -1
  28. package/dist/commonjs/funcs/llmAuditGetRequestTrace.d.ts +19 -0
  29. package/dist/commonjs/funcs/llmAuditGetRequestTrace.d.ts.map +1 -0
  30. package/dist/commonjs/funcs/llmAuditGetRequestTrace.js +132 -0
  31. package/dist/commonjs/funcs/llmAuditGetRequestTrace.js.map +1 -0
  32. package/dist/commonjs/lib/config.d.ts +2 -2
  33. package/dist/commonjs/lib/config.js +2 -2
  34. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  35. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  36. package/dist/commonjs/mcp-server/server.js +3 -1
  37. package/dist/commonjs/mcp-server/server.js.map +1 -1
  38. package/dist/commonjs/mcp-server/tools/billingCreateOrganizationBillingPortal.d.ts.map +1 -1
  39. package/dist/commonjs/mcp-server/tools/billingCreateOrganizationBillingPortal.js +1 -1
  40. package/dist/commonjs/mcp-server/tools/billingCreateOrganizationBillingPortal.js.map +1 -1
  41. package/dist/commonjs/mcp-server/tools/billingCreateOrganizationBillingSetup.d.ts.map +1 -1
  42. package/dist/commonjs/mcp-server/tools/billingCreateOrganizationBillingSetup.js +1 -1
  43. package/dist/commonjs/mcp-server/tools/billingCreateOrganizationBillingSetup.js.map +1 -1
  44. package/dist/commonjs/mcp-server/tools/billingGetOrganizationBilling.d.ts.map +1 -1
  45. package/dist/commonjs/mcp-server/tools/billingGetOrganizationBilling.js +1 -1
  46. package/dist/commonjs/mcp-server/tools/billingGetOrganizationBilling.js.map +1 -1
  47. package/dist/commonjs/mcp-server/tools/billingListOrganizationBillingInvoices.d.ts.map +1 -1
  48. package/dist/commonjs/mcp-server/tools/billingListOrganizationBillingInvoices.js +1 -1
  49. package/dist/commonjs/mcp-server/tools/billingListOrganizationBillingInvoices.js.map +1 -1
  50. package/dist/commonjs/mcp-server/tools/billingSetOrganizationBillingEnabled.d.ts.map +1 -1
  51. package/dist/commonjs/mcp-server/tools/billingSetOrganizationBillingEnabled.js +1 -1
  52. package/dist/commonjs/mcp-server/tools/billingSetOrganizationBillingEnabled.js.map +1 -1
  53. package/dist/commonjs/mcp-server/tools/billingUpdateOrganizationBillingProfile.d.ts.map +1 -1
  54. package/dist/commonjs/mcp-server/tools/billingUpdateOrganizationBillingProfile.js +1 -1
  55. package/dist/commonjs/mcp-server/tools/billingUpdateOrganizationBillingProfile.js.map +1 -1
  56. package/dist/commonjs/mcp-server/tools/llmAuditGetRequestTrace.d.ts +8 -0
  57. package/dist/commonjs/mcp-server/tools/llmAuditGetRequestTrace.d.ts.map +1 -0
  58. package/dist/commonjs/mcp-server/tools/llmAuditGetRequestTrace.js +64 -0
  59. package/dist/commonjs/mcp-server/tools/llmAuditGetRequestTrace.js.map +1 -0
  60. package/dist/commonjs/models/components/createvectorstorerequest.d.ts +1 -1
  61. package/dist/commonjs/models/components/embeddingmodellimits.d.ts +5 -5
  62. package/dist/commonjs/models/components/embeddingmodellimits.d.ts.map +1 -1
  63. package/dist/commonjs/models/components/embeddingmodellimits.js +6 -6
  64. package/dist/commonjs/models/components/embeddingmodellimits.js.map +1 -1
  65. package/dist/commonjs/models/components/embeddingsrequest.d.ts +1 -1
  66. package/dist/commonjs/models/components/vectorstore.d.ts +1 -1
  67. package/dist/commonjs/models/operations/getmodel.d.ts +2 -2
  68. package/dist/commonjs/models/operations/getrequesttrace.d.ts +203 -0
  69. package/dist/commonjs/models/operations/getrequesttrace.d.ts.map +1 -0
  70. package/dist/commonjs/models/operations/getrequesttrace.js +277 -0
  71. package/dist/commonjs/models/operations/getrequesttrace.js.map +1 -0
  72. package/dist/commonjs/models/operations/index.d.ts +1 -0
  73. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  74. package/dist/commonjs/models/operations/index.js +1 -0
  75. package/dist/commonjs/models/operations/index.js.map +1 -1
  76. package/dist/commonjs/models/operations/listmodels.d.ts +2 -2
  77. package/dist/commonjs/react-query/billingCreateOrganizationBillingPortal.d.ts +3 -0
  78. package/dist/commonjs/react-query/billingCreateOrganizationBillingPortal.d.ts.map +1 -1
  79. package/dist/commonjs/react-query/billingCreateOrganizationBillingPortal.js +3 -0
  80. package/dist/commonjs/react-query/billingCreateOrganizationBillingPortal.js.map +1 -1
  81. package/dist/commonjs/react-query/billingCreateOrganizationBillingSetup.d.ts +3 -0
  82. package/dist/commonjs/react-query/billingCreateOrganizationBillingSetup.d.ts.map +1 -1
  83. package/dist/commonjs/react-query/billingCreateOrganizationBillingSetup.js +3 -0
  84. package/dist/commonjs/react-query/billingCreateOrganizationBillingSetup.js.map +1 -1
  85. package/dist/commonjs/react-query/billingGetOrganizationBilling.d.ts +6 -0
  86. package/dist/commonjs/react-query/billingGetOrganizationBilling.d.ts.map +1 -1
  87. package/dist/commonjs/react-query/billingGetOrganizationBilling.js +6 -0
  88. package/dist/commonjs/react-query/billingGetOrganizationBilling.js.map +1 -1
  89. package/dist/commonjs/react-query/billingListOrganizationBillingInvoices.d.ts +6 -0
  90. package/dist/commonjs/react-query/billingListOrganizationBillingInvoices.d.ts.map +1 -1
  91. package/dist/commonjs/react-query/billingListOrganizationBillingInvoices.js +6 -0
  92. package/dist/commonjs/react-query/billingListOrganizationBillingInvoices.js.map +1 -1
  93. package/dist/commonjs/react-query/billingSetOrganizationBillingEnabled.d.ts +3 -0
  94. package/dist/commonjs/react-query/billingSetOrganizationBillingEnabled.d.ts.map +1 -1
  95. package/dist/commonjs/react-query/billingSetOrganizationBillingEnabled.js +3 -0
  96. package/dist/commonjs/react-query/billingSetOrganizationBillingEnabled.js.map +1 -1
  97. package/dist/commonjs/react-query/billingUpdateOrganizationBillingProfile.d.ts +3 -0
  98. package/dist/commonjs/react-query/billingUpdateOrganizationBillingProfile.d.ts.map +1 -1
  99. package/dist/commonjs/react-query/billingUpdateOrganizationBillingProfile.js +3 -0
  100. package/dist/commonjs/react-query/billingUpdateOrganizationBillingProfile.js.map +1 -1
  101. package/dist/commonjs/react-query/index.d.ts +1 -0
  102. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  103. package/dist/commonjs/react-query/index.js +1 -0
  104. package/dist/commonjs/react-query/index.js.map +1 -1
  105. package/dist/commonjs/react-query/llmAuditGetRequestTrace.core.d.ts +12 -0
  106. package/dist/commonjs/react-query/llmAuditGetRequestTrace.core.d.ts.map +1 -0
  107. package/dist/commonjs/react-query/llmAuditGetRequestTrace.core.js +34 -0
  108. package/dist/commonjs/react-query/llmAuditGetRequestTrace.core.js.map +1 -0
  109. package/dist/commonjs/react-query/llmAuditGetRequestTrace.d.ts +28 -0
  110. package/dist/commonjs/react-query/llmAuditGetRequestTrace.d.ts.map +1 -0
  111. package/dist/commonjs/react-query/llmAuditGetRequestTrace.js +60 -0
  112. package/dist/commonjs/react-query/llmAuditGetRequestTrace.js.map +1 -0
  113. package/dist/commonjs/sdk/audit.d.ts +5 -3
  114. package/dist/commonjs/sdk/audit.d.ts.map +1 -1
  115. package/dist/commonjs/sdk/audit.js +7 -4
  116. package/dist/commonjs/sdk/audit.js.map +1 -1
  117. package/dist/commonjs/sdk/billing.d.ts +18 -0
  118. package/dist/commonjs/sdk/billing.d.ts.map +1 -1
  119. package/dist/commonjs/sdk/billing.js +18 -0
  120. package/dist/commonjs/sdk/billing.js.map +1 -1
  121. package/dist/commonjs/sdk/flags.d.ts +2 -2
  122. package/dist/commonjs/sdk/flags.d.ts.map +1 -1
  123. package/dist/commonjs/sdk/flags.js +2 -2
  124. package/dist/commonjs/sdk/flags.js.map +1 -1
  125. package/dist/commonjs/sdk/llm.d.ts +3 -0
  126. package/dist/commonjs/sdk/llm.d.ts.map +1 -1
  127. package/dist/commonjs/sdk/llm.js +4 -0
  128. package/dist/commonjs/sdk/llm.js.map +1 -1
  129. package/dist/commonjs/sdk/sdkaudit.d.ts +10 -0
  130. package/dist/commonjs/sdk/sdkaudit.d.ts.map +1 -0
  131. package/dist/commonjs/sdk/sdkaudit.js +19 -0
  132. package/dist/commonjs/sdk/sdkaudit.js.map +1 -0
  133. package/dist/esm/funcs/billingCreateOrganizationBillingPortal.d.ts +2 -0
  134. package/dist/esm/funcs/billingCreateOrganizationBillingPortal.d.ts.map +1 -1
  135. package/dist/esm/funcs/billingCreateOrganizationBillingPortal.js +2 -0
  136. package/dist/esm/funcs/billingCreateOrganizationBillingPortal.js.map +1 -1
  137. package/dist/esm/funcs/billingCreateOrganizationBillingSetup.d.ts +2 -0
  138. package/dist/esm/funcs/billingCreateOrganizationBillingSetup.d.ts.map +1 -1
  139. package/dist/esm/funcs/billingCreateOrganizationBillingSetup.js +2 -0
  140. package/dist/esm/funcs/billingCreateOrganizationBillingSetup.js.map +1 -1
  141. package/dist/esm/funcs/billingGetOrganizationBilling.d.ts +2 -0
  142. package/dist/esm/funcs/billingGetOrganizationBilling.d.ts.map +1 -1
  143. package/dist/esm/funcs/billingGetOrganizationBilling.js +2 -0
  144. package/dist/esm/funcs/billingGetOrganizationBilling.js.map +1 -1
  145. package/dist/esm/funcs/billingListOrganizationBillingInvoices.d.ts +2 -0
  146. package/dist/esm/funcs/billingListOrganizationBillingInvoices.d.ts.map +1 -1
  147. package/dist/esm/funcs/billingListOrganizationBillingInvoices.js +2 -0
  148. package/dist/esm/funcs/billingListOrganizationBillingInvoices.js.map +1 -1
  149. package/dist/esm/funcs/billingSetOrganizationBillingEnabled.d.ts +2 -0
  150. package/dist/esm/funcs/billingSetOrganizationBillingEnabled.d.ts.map +1 -1
  151. package/dist/esm/funcs/billingSetOrganizationBillingEnabled.js +2 -0
  152. package/dist/esm/funcs/billingSetOrganizationBillingEnabled.js.map +1 -1
  153. package/dist/esm/funcs/billingUpdateOrganizationBillingProfile.d.ts +2 -0
  154. package/dist/esm/funcs/billingUpdateOrganizationBillingProfile.d.ts.map +1 -1
  155. package/dist/esm/funcs/billingUpdateOrganizationBillingProfile.js +2 -0
  156. package/dist/esm/funcs/billingUpdateOrganizationBillingProfile.js.map +1 -1
  157. package/dist/esm/funcs/llmAuditGetRequestTrace.d.ts +19 -0
  158. package/dist/esm/funcs/llmAuditGetRequestTrace.d.ts.map +1 -0
  159. package/dist/esm/funcs/llmAuditGetRequestTrace.js +96 -0
  160. package/dist/esm/funcs/llmAuditGetRequestTrace.js.map +1 -0
  161. package/dist/esm/lib/config.d.ts +2 -2
  162. package/dist/esm/lib/config.js +2 -2
  163. package/dist/esm/mcp-server/mcp-server.js +1 -1
  164. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  165. package/dist/esm/mcp-server/server.js +3 -1
  166. package/dist/esm/mcp-server/server.js.map +1 -1
  167. package/dist/esm/mcp-server/tools/billingCreateOrganizationBillingPortal.d.ts.map +1 -1
  168. package/dist/esm/mcp-server/tools/billingCreateOrganizationBillingPortal.js +1 -1
  169. package/dist/esm/mcp-server/tools/billingCreateOrganizationBillingPortal.js.map +1 -1
  170. package/dist/esm/mcp-server/tools/billingCreateOrganizationBillingSetup.d.ts.map +1 -1
  171. package/dist/esm/mcp-server/tools/billingCreateOrganizationBillingSetup.js +1 -1
  172. package/dist/esm/mcp-server/tools/billingCreateOrganizationBillingSetup.js.map +1 -1
  173. package/dist/esm/mcp-server/tools/billingGetOrganizationBilling.d.ts.map +1 -1
  174. package/dist/esm/mcp-server/tools/billingGetOrganizationBilling.js +1 -1
  175. package/dist/esm/mcp-server/tools/billingGetOrganizationBilling.js.map +1 -1
  176. package/dist/esm/mcp-server/tools/billingListOrganizationBillingInvoices.d.ts.map +1 -1
  177. package/dist/esm/mcp-server/tools/billingListOrganizationBillingInvoices.js +1 -1
  178. package/dist/esm/mcp-server/tools/billingListOrganizationBillingInvoices.js.map +1 -1
  179. package/dist/esm/mcp-server/tools/billingSetOrganizationBillingEnabled.d.ts.map +1 -1
  180. package/dist/esm/mcp-server/tools/billingSetOrganizationBillingEnabled.js +1 -1
  181. package/dist/esm/mcp-server/tools/billingSetOrganizationBillingEnabled.js.map +1 -1
  182. package/dist/esm/mcp-server/tools/billingUpdateOrganizationBillingProfile.d.ts.map +1 -1
  183. package/dist/esm/mcp-server/tools/billingUpdateOrganizationBillingProfile.js +1 -1
  184. package/dist/esm/mcp-server/tools/billingUpdateOrganizationBillingProfile.js.map +1 -1
  185. package/dist/esm/mcp-server/tools/llmAuditGetRequestTrace.d.ts +8 -0
  186. package/dist/esm/mcp-server/tools/llmAuditGetRequestTrace.d.ts.map +1 -0
  187. package/dist/esm/mcp-server/tools/llmAuditGetRequestTrace.js +28 -0
  188. package/dist/esm/mcp-server/tools/llmAuditGetRequestTrace.js.map +1 -0
  189. package/dist/esm/models/components/createvectorstorerequest.d.ts +1 -1
  190. package/dist/esm/models/components/embeddingmodellimits.d.ts +5 -5
  191. package/dist/esm/models/components/embeddingmodellimits.d.ts.map +1 -1
  192. package/dist/esm/models/components/embeddingmodellimits.js +6 -6
  193. package/dist/esm/models/components/embeddingmodellimits.js.map +1 -1
  194. package/dist/esm/models/components/embeddingsrequest.d.ts +1 -1
  195. package/dist/esm/models/components/vectorstore.d.ts +1 -1
  196. package/dist/esm/models/operations/getmodel.d.ts +2 -2
  197. package/dist/esm/models/operations/getrequesttrace.d.ts +203 -0
  198. package/dist/esm/models/operations/getrequesttrace.d.ts.map +1 -0
  199. package/dist/esm/models/operations/getrequesttrace.js +231 -0
  200. package/dist/esm/models/operations/getrequesttrace.js.map +1 -0
  201. package/dist/esm/models/operations/index.d.ts +1 -0
  202. package/dist/esm/models/operations/index.d.ts.map +1 -1
  203. package/dist/esm/models/operations/index.js +1 -0
  204. package/dist/esm/models/operations/index.js.map +1 -1
  205. package/dist/esm/models/operations/listmodels.d.ts +2 -2
  206. package/dist/esm/react-query/billingCreateOrganizationBillingPortal.d.ts +3 -0
  207. package/dist/esm/react-query/billingCreateOrganizationBillingPortal.d.ts.map +1 -1
  208. package/dist/esm/react-query/billingCreateOrganizationBillingPortal.js +3 -0
  209. package/dist/esm/react-query/billingCreateOrganizationBillingPortal.js.map +1 -1
  210. package/dist/esm/react-query/billingCreateOrganizationBillingSetup.d.ts +3 -0
  211. package/dist/esm/react-query/billingCreateOrganizationBillingSetup.d.ts.map +1 -1
  212. package/dist/esm/react-query/billingCreateOrganizationBillingSetup.js +3 -0
  213. package/dist/esm/react-query/billingCreateOrganizationBillingSetup.js.map +1 -1
  214. package/dist/esm/react-query/billingGetOrganizationBilling.d.ts +6 -0
  215. package/dist/esm/react-query/billingGetOrganizationBilling.d.ts.map +1 -1
  216. package/dist/esm/react-query/billingGetOrganizationBilling.js +6 -0
  217. package/dist/esm/react-query/billingGetOrganizationBilling.js.map +1 -1
  218. package/dist/esm/react-query/billingListOrganizationBillingInvoices.d.ts +6 -0
  219. package/dist/esm/react-query/billingListOrganizationBillingInvoices.d.ts.map +1 -1
  220. package/dist/esm/react-query/billingListOrganizationBillingInvoices.js +6 -0
  221. package/dist/esm/react-query/billingListOrganizationBillingInvoices.js.map +1 -1
  222. package/dist/esm/react-query/billingSetOrganizationBillingEnabled.d.ts +3 -0
  223. package/dist/esm/react-query/billingSetOrganizationBillingEnabled.d.ts.map +1 -1
  224. package/dist/esm/react-query/billingSetOrganizationBillingEnabled.js +3 -0
  225. package/dist/esm/react-query/billingSetOrganizationBillingEnabled.js.map +1 -1
  226. package/dist/esm/react-query/billingUpdateOrganizationBillingProfile.d.ts +3 -0
  227. package/dist/esm/react-query/billingUpdateOrganizationBillingProfile.d.ts.map +1 -1
  228. package/dist/esm/react-query/billingUpdateOrganizationBillingProfile.js +3 -0
  229. package/dist/esm/react-query/billingUpdateOrganizationBillingProfile.js.map +1 -1
  230. package/dist/esm/react-query/index.d.ts +1 -0
  231. package/dist/esm/react-query/index.d.ts.map +1 -1
  232. package/dist/esm/react-query/index.js +1 -0
  233. package/dist/esm/react-query/index.js.map +1 -1
  234. package/dist/esm/react-query/llmAuditGetRequestTrace.core.d.ts +12 -0
  235. package/dist/esm/react-query/llmAuditGetRequestTrace.core.d.ts.map +1 -0
  236. package/dist/esm/react-query/llmAuditGetRequestTrace.core.js +29 -0
  237. package/dist/esm/react-query/llmAuditGetRequestTrace.core.js.map +1 -0
  238. package/dist/esm/react-query/llmAuditGetRequestTrace.d.ts +28 -0
  239. package/dist/esm/react-query/llmAuditGetRequestTrace.d.ts.map +1 -0
  240. package/dist/esm/react-query/llmAuditGetRequestTrace.js +50 -0
  241. package/dist/esm/react-query/llmAuditGetRequestTrace.js.map +1 -0
  242. package/dist/esm/sdk/audit.d.ts +5 -3
  243. package/dist/esm/sdk/audit.d.ts.map +1 -1
  244. package/dist/esm/sdk/audit.js +7 -4
  245. package/dist/esm/sdk/audit.js.map +1 -1
  246. package/dist/esm/sdk/billing.d.ts +18 -0
  247. package/dist/esm/sdk/billing.d.ts.map +1 -1
  248. package/dist/esm/sdk/billing.js +18 -0
  249. package/dist/esm/sdk/billing.js.map +1 -1
  250. package/dist/esm/sdk/flags.d.ts +2 -2
  251. package/dist/esm/sdk/flags.d.ts.map +1 -1
  252. package/dist/esm/sdk/flags.js +2 -2
  253. package/dist/esm/sdk/flags.js.map +1 -1
  254. package/dist/esm/sdk/llm.d.ts +3 -0
  255. package/dist/esm/sdk/llm.d.ts.map +1 -1
  256. package/dist/esm/sdk/llm.js +4 -0
  257. package/dist/esm/sdk/llm.js.map +1 -1
  258. package/dist/esm/sdk/sdkaudit.d.ts +10 -0
  259. package/dist/esm/sdk/sdkaudit.d.ts.map +1 -0
  260. package/dist/esm/sdk/sdkaudit.js +15 -0
  261. package/dist/esm/sdk/sdkaudit.js.map +1 -0
  262. package/jsr.json +1 -1
  263. package/package.json +1 -1
  264. package/src/funcs/billingCreateOrganizationBillingPortal.ts +2 -0
  265. package/src/funcs/billingCreateOrganizationBillingSetup.ts +2 -0
  266. package/src/funcs/billingGetOrganizationBilling.ts +2 -0
  267. package/src/funcs/billingListOrganizationBillingInvoices.ts +2 -0
  268. package/src/funcs/billingSetOrganizationBillingEnabled.ts +2 -0
  269. package/src/funcs/billingUpdateOrganizationBillingProfile.ts +2 -0
  270. package/src/funcs/llmAuditGetRequestTrace.ts +181 -0
  271. package/src/lib/config.ts +2 -2
  272. package/src/mcp-server/mcp-server.ts +1 -1
  273. package/src/mcp-server/server.ts +3 -1
  274. package/src/mcp-server/tools/billingCreateOrganizationBillingPortal.ts +2 -1
  275. package/src/mcp-server/tools/billingCreateOrganizationBillingSetup.ts +2 -1
  276. package/src/mcp-server/tools/billingGetOrganizationBilling.ts +2 -1
  277. package/src/mcp-server/tools/billingListOrganizationBillingInvoices.ts +2 -1
  278. package/src/mcp-server/tools/billingSetOrganizationBillingEnabled.ts +2 -1
  279. package/src/mcp-server/tools/billingUpdateOrganizationBillingProfile.ts +2 -1
  280. package/src/mcp-server/tools/llmAuditGetRequestTrace.ts +37 -0
  281. package/src/models/components/createvectorstorerequest.ts +1 -1
  282. package/src/models/components/embeddingmodellimits.ts +11 -11
  283. package/src/models/components/embeddingsrequest.ts +1 -1
  284. package/src/models/components/vectorstore.ts +1 -1
  285. package/src/models/operations/getmodel.ts +2 -2
  286. package/src/models/operations/getrequesttrace.ts +501 -0
  287. package/src/models/operations/index.ts +1 -0
  288. package/src/models/operations/listmodels.ts +2 -2
  289. package/src/react-query/billingCreateOrganizationBillingPortal.ts +3 -0
  290. package/src/react-query/billingCreateOrganizationBillingSetup.ts +3 -0
  291. package/src/react-query/billingGetOrganizationBilling.ts +6 -0
  292. package/src/react-query/billingListOrganizationBillingInvoices.ts +6 -0
  293. package/src/react-query/billingSetOrganizationBillingEnabled.ts +3 -0
  294. package/src/react-query/billingUpdateOrganizationBillingProfile.ts +3 -0
  295. package/src/react-query/index.ts +1 -0
  296. package/src/react-query/llmAuditGetRequestTrace.core.ts +71 -0
  297. package/src/react-query/llmAuditGetRequestTrace.ts +136 -0
  298. package/src/sdk/audit.ts +9 -7
  299. package/src/sdk/billing.ts +18 -0
  300. package/src/sdk/flags.ts +4 -4
  301. package/src/sdk/llm.ts +6 -0
  302. package/src/sdk/sdkaudit.ts +25 -0
@@ -0,0 +1,501 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type GetRequestTraceRequest = {
13
+ requestId: string;
14
+ };
15
+
16
+ export type Gateway = {
17
+ kongRequestId: string;
18
+ /**
19
+ * The X-Request-ID returned to the client; null on records stored before it was kept
20
+ */
21
+ requestId: string | null;
22
+ /**
23
+ * The ID responses are joined on: the client's X-Correlation-ID when sent, otherwise the X-Request-ID
24
+ */
25
+ correlationId: string | null;
26
+ traceId: string | null;
27
+ method: string | null;
28
+ path: string | null;
29
+ statusCode: number | null;
30
+ startedAt: Date | null;
31
+ completedAt: Date | null;
32
+ /**
33
+ * Total time at the edge
34
+ */
35
+ latencyMs: number | null;
36
+ /**
37
+ * Time spent in the API gateway itself
38
+ */
39
+ gatewayLatencyMs: number | null;
40
+ /**
41
+ * Time the upstream service took
42
+ */
43
+ upstreamLatencyMs: number | null;
44
+ };
45
+
46
+ /**
47
+ * A model invocation or a tool call
48
+ */
49
+ export const Kind = {
50
+ Model: "model",
51
+ Tool: "tool",
52
+ } as const;
53
+ /**
54
+ * A model invocation or a tool call
55
+ */
56
+ export type Kind = ClosedEnum<typeof Kind>;
57
+
58
+ export type Spans = {
59
+ /**
60
+ * A model invocation or a tool call
61
+ */
62
+ kind: Kind;
63
+ /**
64
+ * Model that served the invocation, or the tool's name
65
+ */
66
+ name: string | null;
67
+ /**
68
+ * Tool call ID; null for model invocations
69
+ */
70
+ callId: string | null;
71
+ /**
72
+ * Agent loop step of a model invocation
73
+ */
74
+ step: number | null;
75
+ /**
76
+ * Attempt within the step (retries and failover)
77
+ */
78
+ attempt: number | null;
79
+ status: string | null;
80
+ startedAt: Date | null;
81
+ /**
82
+ * Null while the span is still running
83
+ */
84
+ completedAt: Date | null;
85
+ durationMs: number | null;
86
+ };
87
+
88
+ export type Responses = {
89
+ responseId: string;
90
+ /**
91
+ * The response whose agent tool started this one; null for the request's own responses
92
+ */
93
+ parentResponseId: string | null;
94
+ conversationId: string | null;
95
+ status: string | null;
96
+ requestedModel: string | null;
97
+ effectiveModel: string | null;
98
+ startedAt: Date | null;
99
+ completedAt: Date | null;
100
+ durationMs: number | null;
101
+ /**
102
+ * Model invocations and tool calls, in the order they were first recorded
103
+ */
104
+ spans: Array<Spans>;
105
+ };
106
+
107
+ /**
108
+ * End-to-end trace of one API request
109
+ */
110
+ export type GetRequestTraceResponseBody = {
111
+ object: "audit.request_trace";
112
+ /**
113
+ * The ID that was looked up
114
+ */
115
+ requestId: string;
116
+ /**
117
+ * True when more gateway records or responses matched than are returned
118
+ */
119
+ truncated: boolean;
120
+ /**
121
+ * Edge records for the request
122
+ */
123
+ gateway: Array<Gateway>;
124
+ /**
125
+ * Responses the request created, including agents it called
126
+ */
127
+ responses: Array<Responses>;
128
+ };
129
+
130
+ /** @internal */
131
+ export const GetRequestTraceRequest$inboundSchema: z.ZodType<
132
+ GetRequestTraceRequest,
133
+ z.ZodTypeDef,
134
+ unknown
135
+ > = z.object({
136
+ request_id: z.string(),
137
+ }).transform((v) => {
138
+ return remap$(v, {
139
+ "request_id": "requestId",
140
+ });
141
+ });
142
+ /** @internal */
143
+ export type GetRequestTraceRequest$Outbound = {
144
+ request_id: string;
145
+ };
146
+
147
+ /** @internal */
148
+ export const GetRequestTraceRequest$outboundSchema: z.ZodType<
149
+ GetRequestTraceRequest$Outbound,
150
+ z.ZodTypeDef,
151
+ GetRequestTraceRequest
152
+ > = z.object({
153
+ requestId: z.string(),
154
+ }).transform((v) => {
155
+ return remap$(v, {
156
+ requestId: "request_id",
157
+ });
158
+ });
159
+
160
+ export function getRequestTraceRequestToJSON(
161
+ getRequestTraceRequest: GetRequestTraceRequest,
162
+ ): string {
163
+ return JSON.stringify(
164
+ GetRequestTraceRequest$outboundSchema.parse(getRequestTraceRequest),
165
+ );
166
+ }
167
+ export function getRequestTraceRequestFromJSON(
168
+ jsonString: string,
169
+ ): SafeParseResult<GetRequestTraceRequest, SDKValidationError> {
170
+ return safeParse(
171
+ jsonString,
172
+ (x) => GetRequestTraceRequest$inboundSchema.parse(JSON.parse(x)),
173
+ `Failed to parse 'GetRequestTraceRequest' from JSON`,
174
+ );
175
+ }
176
+
177
+ /** @internal */
178
+ export const Gateway$inboundSchema: z.ZodType<Gateway, z.ZodTypeDef, unknown> =
179
+ z.object({
180
+ kong_request_id: z.string(),
181
+ request_id: z.nullable(z.string()),
182
+ correlation_id: z.nullable(z.string()),
183
+ trace_id: z.nullable(z.string()),
184
+ method: z.nullable(z.string()),
185
+ path: z.nullable(z.string()),
186
+ status_code: z.nullable(z.number()),
187
+ started_at: z.nullable(
188
+ z.string().datetime({ offset: true }).transform(v => new Date(v)),
189
+ ),
190
+ completed_at: z.nullable(
191
+ z.string().datetime({ offset: true }).transform(v => new Date(v)),
192
+ ),
193
+ latency_ms: z.nullable(z.number()),
194
+ gateway_latency_ms: z.nullable(z.number()),
195
+ upstream_latency_ms: z.nullable(z.number()),
196
+ }).transform((v) => {
197
+ return remap$(v, {
198
+ "kong_request_id": "kongRequestId",
199
+ "request_id": "requestId",
200
+ "correlation_id": "correlationId",
201
+ "trace_id": "traceId",
202
+ "status_code": "statusCode",
203
+ "started_at": "startedAt",
204
+ "completed_at": "completedAt",
205
+ "latency_ms": "latencyMs",
206
+ "gateway_latency_ms": "gatewayLatencyMs",
207
+ "upstream_latency_ms": "upstreamLatencyMs",
208
+ });
209
+ });
210
+ /** @internal */
211
+ export type Gateway$Outbound = {
212
+ kong_request_id: string;
213
+ request_id: string | null;
214
+ correlation_id: string | null;
215
+ trace_id: string | null;
216
+ method: string | null;
217
+ path: string | null;
218
+ status_code: number | null;
219
+ started_at: string | null;
220
+ completed_at: string | null;
221
+ latency_ms: number | null;
222
+ gateway_latency_ms: number | null;
223
+ upstream_latency_ms: number | null;
224
+ };
225
+
226
+ /** @internal */
227
+ export const Gateway$outboundSchema: z.ZodType<
228
+ Gateway$Outbound,
229
+ z.ZodTypeDef,
230
+ Gateway
231
+ > = z.object({
232
+ kongRequestId: z.string(),
233
+ requestId: z.nullable(z.string()),
234
+ correlationId: z.nullable(z.string()),
235
+ traceId: z.nullable(z.string()),
236
+ method: z.nullable(z.string()),
237
+ path: z.nullable(z.string()),
238
+ statusCode: z.nullable(z.number()),
239
+ startedAt: z.nullable(z.date().transform(v => v.toISOString())),
240
+ completedAt: z.nullable(z.date().transform(v => v.toISOString())),
241
+ latencyMs: z.nullable(z.number()),
242
+ gatewayLatencyMs: z.nullable(z.number()),
243
+ upstreamLatencyMs: z.nullable(z.number()),
244
+ }).transform((v) => {
245
+ return remap$(v, {
246
+ kongRequestId: "kong_request_id",
247
+ requestId: "request_id",
248
+ correlationId: "correlation_id",
249
+ traceId: "trace_id",
250
+ statusCode: "status_code",
251
+ startedAt: "started_at",
252
+ completedAt: "completed_at",
253
+ latencyMs: "latency_ms",
254
+ gatewayLatencyMs: "gateway_latency_ms",
255
+ upstreamLatencyMs: "upstream_latency_ms",
256
+ });
257
+ });
258
+
259
+ export function gatewayToJSON(gateway: Gateway): string {
260
+ return JSON.stringify(Gateway$outboundSchema.parse(gateway));
261
+ }
262
+ export function gatewayFromJSON(
263
+ jsonString: string,
264
+ ): SafeParseResult<Gateway, SDKValidationError> {
265
+ return safeParse(
266
+ jsonString,
267
+ (x) => Gateway$inboundSchema.parse(JSON.parse(x)),
268
+ `Failed to parse 'Gateway' from JSON`,
269
+ );
270
+ }
271
+
272
+ /** @internal */
273
+ export const Kind$inboundSchema: z.ZodNativeEnum<typeof Kind> = z.nativeEnum(
274
+ Kind,
275
+ );
276
+ /** @internal */
277
+ export const Kind$outboundSchema: z.ZodNativeEnum<typeof Kind> =
278
+ Kind$inboundSchema;
279
+
280
+ /** @internal */
281
+ export const Spans$inboundSchema: z.ZodType<Spans, z.ZodTypeDef, unknown> = z
282
+ .object({
283
+ kind: Kind$inboundSchema,
284
+ name: z.nullable(z.string()),
285
+ call_id: z.nullable(z.string()),
286
+ step: z.nullable(z.number()),
287
+ attempt: z.nullable(z.number()),
288
+ status: z.nullable(z.string()),
289
+ started_at: z.nullable(
290
+ z.string().datetime({ offset: true }).transform(v => new Date(v)),
291
+ ),
292
+ completed_at: z.nullable(
293
+ z.string().datetime({ offset: true }).transform(v => new Date(v)),
294
+ ),
295
+ duration_ms: z.nullable(z.number()),
296
+ }).transform((v) => {
297
+ return remap$(v, {
298
+ "call_id": "callId",
299
+ "started_at": "startedAt",
300
+ "completed_at": "completedAt",
301
+ "duration_ms": "durationMs",
302
+ });
303
+ });
304
+ /** @internal */
305
+ export type Spans$Outbound = {
306
+ kind: string;
307
+ name: string | null;
308
+ call_id: string | null;
309
+ step: number | null;
310
+ attempt: number | null;
311
+ status: string | null;
312
+ started_at: string | null;
313
+ completed_at: string | null;
314
+ duration_ms: number | null;
315
+ };
316
+
317
+ /** @internal */
318
+ export const Spans$outboundSchema: z.ZodType<
319
+ Spans$Outbound,
320
+ z.ZodTypeDef,
321
+ Spans
322
+ > = z.object({
323
+ kind: Kind$outboundSchema,
324
+ name: z.nullable(z.string()),
325
+ callId: z.nullable(z.string()),
326
+ step: z.nullable(z.number()),
327
+ attempt: z.nullable(z.number()),
328
+ status: z.nullable(z.string()),
329
+ startedAt: z.nullable(z.date().transform(v => v.toISOString())),
330
+ completedAt: z.nullable(z.date().transform(v => v.toISOString())),
331
+ durationMs: z.nullable(z.number()),
332
+ }).transform((v) => {
333
+ return remap$(v, {
334
+ callId: "call_id",
335
+ startedAt: "started_at",
336
+ completedAt: "completed_at",
337
+ durationMs: "duration_ms",
338
+ });
339
+ });
340
+
341
+ export function spansToJSON(spans: Spans): string {
342
+ return JSON.stringify(Spans$outboundSchema.parse(spans));
343
+ }
344
+ export function spansFromJSON(
345
+ jsonString: string,
346
+ ): SafeParseResult<Spans, SDKValidationError> {
347
+ return safeParse(
348
+ jsonString,
349
+ (x) => Spans$inboundSchema.parse(JSON.parse(x)),
350
+ `Failed to parse 'Spans' from JSON`,
351
+ );
352
+ }
353
+
354
+ /** @internal */
355
+ export const Responses$inboundSchema: z.ZodType<
356
+ Responses,
357
+ z.ZodTypeDef,
358
+ unknown
359
+ > = z.object({
360
+ response_id: z.string(),
361
+ parent_response_id: z.nullable(z.string()),
362
+ conversation_id: z.nullable(z.string()),
363
+ status: z.nullable(z.string()),
364
+ requested_model: z.nullable(z.string()),
365
+ effective_model: z.nullable(z.string()),
366
+ started_at: z.nullable(
367
+ z.string().datetime({ offset: true }).transform(v => new Date(v)),
368
+ ),
369
+ completed_at: z.nullable(
370
+ z.string().datetime({ offset: true }).transform(v => new Date(v)),
371
+ ),
372
+ duration_ms: z.nullable(z.number()),
373
+ spans: z.array(z.lazy(() => Spans$inboundSchema)),
374
+ }).transform((v) => {
375
+ return remap$(v, {
376
+ "response_id": "responseId",
377
+ "parent_response_id": "parentResponseId",
378
+ "conversation_id": "conversationId",
379
+ "requested_model": "requestedModel",
380
+ "effective_model": "effectiveModel",
381
+ "started_at": "startedAt",
382
+ "completed_at": "completedAt",
383
+ "duration_ms": "durationMs",
384
+ });
385
+ });
386
+ /** @internal */
387
+ export type Responses$Outbound = {
388
+ response_id: string;
389
+ parent_response_id: string | null;
390
+ conversation_id: string | null;
391
+ status: string | null;
392
+ requested_model: string | null;
393
+ effective_model: string | null;
394
+ started_at: string | null;
395
+ completed_at: string | null;
396
+ duration_ms: number | null;
397
+ spans: Array<Spans$Outbound>;
398
+ };
399
+
400
+ /** @internal */
401
+ export const Responses$outboundSchema: z.ZodType<
402
+ Responses$Outbound,
403
+ z.ZodTypeDef,
404
+ Responses
405
+ > = z.object({
406
+ responseId: z.string(),
407
+ parentResponseId: z.nullable(z.string()),
408
+ conversationId: z.nullable(z.string()),
409
+ status: z.nullable(z.string()),
410
+ requestedModel: z.nullable(z.string()),
411
+ effectiveModel: z.nullable(z.string()),
412
+ startedAt: z.nullable(z.date().transform(v => v.toISOString())),
413
+ completedAt: z.nullable(z.date().transform(v => v.toISOString())),
414
+ durationMs: z.nullable(z.number()),
415
+ spans: z.array(z.lazy(() => Spans$outboundSchema)),
416
+ }).transform((v) => {
417
+ return remap$(v, {
418
+ responseId: "response_id",
419
+ parentResponseId: "parent_response_id",
420
+ conversationId: "conversation_id",
421
+ requestedModel: "requested_model",
422
+ effectiveModel: "effective_model",
423
+ startedAt: "started_at",
424
+ completedAt: "completed_at",
425
+ durationMs: "duration_ms",
426
+ });
427
+ });
428
+
429
+ export function responsesToJSON(responses: Responses): string {
430
+ return JSON.stringify(Responses$outboundSchema.parse(responses));
431
+ }
432
+ export function responsesFromJSON(
433
+ jsonString: string,
434
+ ): SafeParseResult<Responses, SDKValidationError> {
435
+ return safeParse(
436
+ jsonString,
437
+ (x) => Responses$inboundSchema.parse(JSON.parse(x)),
438
+ `Failed to parse 'Responses' from JSON`,
439
+ );
440
+ }
441
+
442
+ /** @internal */
443
+ export const GetRequestTraceResponseBody$inboundSchema: z.ZodType<
444
+ GetRequestTraceResponseBody,
445
+ z.ZodTypeDef,
446
+ unknown
447
+ > = z.object({
448
+ object: z.literal("audit.request_trace"),
449
+ request_id: z.string(),
450
+ truncated: z.boolean(),
451
+ gateway: z.array(z.lazy(() => Gateway$inboundSchema)),
452
+ responses: z.array(z.lazy(() => Responses$inboundSchema)),
453
+ }).transform((v) => {
454
+ return remap$(v, {
455
+ "request_id": "requestId",
456
+ });
457
+ });
458
+ /** @internal */
459
+ export type GetRequestTraceResponseBody$Outbound = {
460
+ object: "audit.request_trace";
461
+ request_id: string;
462
+ truncated: boolean;
463
+ gateway: Array<Gateway$Outbound>;
464
+ responses: Array<Responses$Outbound>;
465
+ };
466
+
467
+ /** @internal */
468
+ export const GetRequestTraceResponseBody$outboundSchema: z.ZodType<
469
+ GetRequestTraceResponseBody$Outbound,
470
+ z.ZodTypeDef,
471
+ GetRequestTraceResponseBody
472
+ > = z.object({
473
+ object: z.literal("audit.request_trace"),
474
+ requestId: z.string(),
475
+ truncated: z.boolean(),
476
+ gateway: z.array(z.lazy(() => Gateway$outboundSchema)),
477
+ responses: z.array(z.lazy(() => Responses$outboundSchema)),
478
+ }).transform((v) => {
479
+ return remap$(v, {
480
+ requestId: "request_id",
481
+ });
482
+ });
483
+
484
+ export function getRequestTraceResponseBodyToJSON(
485
+ getRequestTraceResponseBody: GetRequestTraceResponseBody,
486
+ ): string {
487
+ return JSON.stringify(
488
+ GetRequestTraceResponseBody$outboundSchema.parse(
489
+ getRequestTraceResponseBody,
490
+ ),
491
+ );
492
+ }
493
+ export function getRequestTraceResponseBodyFromJSON(
494
+ jsonString: string,
495
+ ): SafeParseResult<GetRequestTraceResponseBody, SDKValidationError> {
496
+ return safeParse(
497
+ jsonString,
498
+ (x) => GetRequestTraceResponseBody$inboundSchema.parse(JSON.parse(x)),
499
+ `Failed to parse 'GetRequestTraceResponseBody' from JSON`,
500
+ );
501
+ }
@@ -234,6 +234,7 @@ export * from "./getpricing.js";
234
234
  export * from "./getprompt.js";
235
235
  export * from "./getpromptversion.js";
236
236
  export * from "./getrepo.js";
237
+ export * from "./getrequesttrace.js";
237
238
  export * from "./getresponse.js";
238
239
  export * from "./getresponsefeedback.js";
239
240
  export * from "./getresponsesusage.js";
@@ -156,7 +156,7 @@ export type ListModelsData = {
156
156
  */
157
157
  outputModalities: Array<string>;
158
158
  /**
159
- * Context window in tokens, mirroring the registry's `contextWindow`. For an LLM it is the input plus output tokens one request can span: the Responses API trims the oldest conversation items to fit it, reserving nothing for the output, unless the request sets `truncation` to `disabled`, which rejects an oversized request instead; a separate request-size limit in bytes applies the same way. Chat completions forwards requests unchanged. For an embeddings model `/embeddings` derives its per-input character cap from it, which `GET /embeddings/models` reports as `max_input_length`; a gateway-wide per-input ceiling also applies. On other model types the gateway does not read it, so a recorded value is informational only and not enforced. Null when the registry does not record one.
159
+ * Context window in tokens, mirroring the registry's `contextWindow`. For an LLM it is the input plus output tokens one request can span: the Responses API trims the oldest conversation items to fit it, reserving nothing for the output, unless the request sets `truncation` to `disabled`, which rejects an oversized request instead; a separate request-size limit in bytes applies the same way. Chat completions forwards requests unchanged. For an embeddings model `/embeddings` derives a per-input character cap from it, alongside a gateway-wide per-input ceiling; `GET /embeddings/models` reports whichever binds first as `max_input_length`. On other model types the gateway does not read it, so a recorded value is informational only and not enforced. Null when the registry does not record one.
160
160
  */
161
161
  contextWindow: number | null;
162
162
  /**
@@ -168,7 +168,7 @@ export type ListModelsData = {
168
168
  */
169
169
  minImageResolution: ListModelsMinImageResolution | null;
170
170
  /**
171
- * Output vector sizes declared for this model, mirroring the registry's `embeddingLimits.dimensions`, which is normally recorded only on embeddings models. A model with a single fixed size reports it as `min`, `max` and `default` alike, so when `min` equals `max` the size is fixed and a request should omit `dimensions`. Vector stores reject a size outside the range. `/embeddings` does not check it: it drops a requested `dimensions` for a fixed-size model and otherwise forwards it to the upstream. Null when the registry does not record dimensions; a vector store using such a model must then be created with an explicit size (`embedding_dimensions` on `POST /vector_stores`). Distinct from the vector store's own `embedding_dimensions`, which is a single size.
171
+ * Output vector sizes declared for this model, mirroring the registry's `embeddingLimits.dimensions`, which is normally recorded only on embeddings models. When `min` equals `max` the size is fixed: `/embeddings` ignores a requested `dimensions` and returns that size, and vector stores accept only that size. Otherwise a requested size must lie within the range: `/embeddings` and vector stores reject one outside it with 400. Null when the registry does not record dimensions; a vector store using such a model must then be created with an explicit size (`embedding_dimensions` on `POST /vector_stores`). Distinct from the vector store's own `embedding_dimensions`, which is a single size.
172
172
  */
173
173
  embeddingDimensionRange: ListModelsEmbeddingDimensionRange | null;
174
174
  /**
@@ -44,6 +44,9 @@ export type BillingCreateOrganizationBillingPortalMutationError =
44
44
  | UnexpectedClientError
45
45
  | SDKValidationError;
46
46
 
47
+ /**
48
+ * Create a payment-provider portal session for the bound organization. API keys require write:billing and either a human owner/admin or delegated service account. The organization is resolved from the API key.
49
+ */
47
50
  export function useBillingCreateOrganizationBillingPortalMutation(
48
51
  options?: MutationHookOptions<
49
52
  BillingCreateOrganizationBillingPortalMutationData,
@@ -44,6 +44,9 @@ export type BillingCreateOrganizationBillingSetupMutationError =
44
44
  | UnexpectedClientError
45
45
  | SDKValidationError;
46
46
 
47
+ /**
48
+ * Create a payment-provider setup session for the bound organization. API keys require write:billing and either a human owner/admin or delegated service account. The organization is resolved from the API key.
49
+ */
47
50
  export function useBillingCreateOrganizationBillingSetupMutation(
48
51
  options?: MutationHookOptions<
49
52
  BillingCreateOrganizationBillingSetupMutationData,
@@ -50,6 +50,9 @@ export type BillingGetOrganizationBillingQueryError =
50
50
  | UnexpectedClientError
51
51
  | SDKValidationError;
52
52
 
53
+ /**
54
+ * Read organization billing. API keys require read:billing and either a human owner/admin or delegated service account. Keys are bound to their organization; cross-organization reads require a human cluster administrator with read:cluster.
55
+ */
53
56
  export function useBillingGetOrganizationBilling(
54
57
  request: operations.GetOrganizationBillingRequest,
55
58
  options?: QueryHookOptions<
@@ -71,6 +74,9 @@ export function useBillingGetOrganizationBilling(
71
74
  });
72
75
  }
73
76
 
77
+ /**
78
+ * Read organization billing. API keys require read:billing and either a human owner/admin or delegated service account. Keys are bound to their organization; cross-organization reads require a human cluster administrator with read:cluster.
79
+ */
74
80
  export function useBillingGetOrganizationBillingSuspense(
75
81
  request: operations.GetOrganizationBillingRequest,
76
82
  options?: SuspenseQueryHookOptions<
@@ -50,6 +50,9 @@ export type BillingListOrganizationBillingInvoicesQueryError =
50
50
  | UnexpectedClientError
51
51
  | SDKValidationError;
52
52
 
53
+ /**
54
+ * List invoices for an organization. API keys require read:billing and either a human owner/admin or delegated service account. Cross-organization reads require a human cluster administrator with read:cluster.
55
+ */
53
56
  export function useBillingListOrganizationBillingInvoices(
54
57
  request: operations.ListOrganizationBillingInvoicesRequest,
55
58
  options?: QueryHookOptions<
@@ -71,6 +74,9 @@ export function useBillingListOrganizationBillingInvoices(
71
74
  });
72
75
  }
73
76
 
77
+ /**
78
+ * List invoices for an organization. API keys require read:billing and either a human owner/admin or delegated service account. Cross-organization reads require a human cluster administrator with read:cluster.
79
+ */
74
80
  export function useBillingListOrganizationBillingInvoicesSuspense(
75
81
  request: operations.ListOrganizationBillingInvoicesRequest,
76
82
  options?: SuspenseQueryHookOptions<
@@ -44,6 +44,9 @@ export type BillingSetOrganizationBillingEnabledMutationError =
44
44
  | UnexpectedClientError
45
45
  | SDKValidationError;
46
46
 
47
+ /**
48
+ * Enable or disable organization billing. Requires a human cluster administrator. API keys require both write:billing and the bootstrap-only write:cluster scope. Service-account keys cannot enable or disable billing.
49
+ */
47
50
  export function useBillingSetOrganizationBillingEnabledMutation(
48
51
  options?: MutationHookOptions<
49
52
  BillingSetOrganizationBillingEnabledMutationData,
@@ -44,6 +44,9 @@ export type BillingUpdateOrganizationBillingProfileMutationError =
44
44
  | UnexpectedClientError
45
45
  | SDKValidationError;
46
46
 
47
+ /**
48
+ * Update the bound organization's billing profile. API keys require write:billing and either a human owner/admin or delegated service account. The organization is resolved from the API key.
49
+ */
47
50
  export function useBillingUpdateOrganizationBillingProfileMutation(
48
51
  options?: MutationHookOptions<
49
52
  BillingUpdateOrganizationBillingProfileMutationData,
@@ -227,6 +227,7 @@ export * from "./guardrailsTestGuardrails.js";
227
227
  export * from "./guardrailsUpdateClusterDefaultGuardrails.js";
228
228
  export * from "./guardrailsUpdateClusterDefaultGuardrailsOrg.js";
229
229
  export * from "./guardrailsUpdateGuardrails.js";
230
+ export * from "./llmAuditGetRequestTrace.js";
230
231
  export * from "./llmBatchesCancel.js";
231
232
  export * from "./llmBatchesCreate.js";
232
233
  export * from "./llmBatchesGet.js";
@@ -0,0 +1,71 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import {
6
+ QueryClient,
7
+ QueryFunctionContext,
8
+ QueryKey,
9
+ } from "@tanstack/react-query";
10
+ import { SDKCore } from "../core.js";
11
+ import { llmAuditGetRequestTrace } from "../funcs/llmAuditGetRequestTrace.js";
12
+ import { combineSignals } from "../lib/primitives.js";
13
+ import { RequestOptions } from "../lib/sdks.js";
14
+ import * as operations from "../models/operations/index.js";
15
+ import { unwrapAsync } from "../types/fp.js";
16
+ export type LlmAuditGetRequestTraceQueryData =
17
+ operations.GetRequestTraceResponseBody;
18
+
19
+ export function prefetchLlmAuditGetRequestTrace(
20
+ queryClient: QueryClient,
21
+ client$: SDKCore,
22
+ request: operations.GetRequestTraceRequest,
23
+ options?: RequestOptions,
24
+ ): Promise<void> {
25
+ return queryClient.prefetchQuery({
26
+ ...buildLlmAuditGetRequestTraceQuery(
27
+ client$,
28
+ request,
29
+ options,
30
+ ),
31
+ });
32
+ }
33
+
34
+ export function buildLlmAuditGetRequestTraceQuery(
35
+ client$: SDKCore,
36
+ request: operations.GetRequestTraceRequest,
37
+ options?: RequestOptions,
38
+ ): {
39
+ queryKey: QueryKey;
40
+ queryFn: (
41
+ context: QueryFunctionContext,
42
+ ) => Promise<LlmAuditGetRequestTraceQueryData>;
43
+ } {
44
+ return {
45
+ queryKey: queryKeyLlmAuditGetRequestTrace(request.requestId),
46
+ queryFn: async function llmAuditGetRequestTraceQueryFn(
47
+ ctx,
48
+ ): Promise<LlmAuditGetRequestTraceQueryData> {
49
+ const sig = combineSignals(
50
+ ctx.signal,
51
+ options?.signal,
52
+ options?.fetchOptions?.signal,
53
+ );
54
+ const mergedOptions = {
55
+ ...options?.fetchOptions,
56
+ ...options,
57
+ signal: sig,
58
+ };
59
+
60
+ return unwrapAsync(llmAuditGetRequestTrace(
61
+ client$,
62
+ request,
63
+ mergedOptions,
64
+ ));
65
+ },
66
+ };
67
+ }
68
+
69
+ export function queryKeyLlmAuditGetRequestTrace(requestId: string): QueryKey {
70
+ return ["@meetkai/mka1", "audit", "getRequestTrace", requestId];
71
+ }