@meetkai/mka1 0.55.25 → 0.55.27

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 (368) hide show
  1. package/README.md +410 -410
  2. package/bin/mcp-server.js +2373 -1975
  3. package/bin/mcp-server.js.map +36 -32
  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/banwordsguardrail.d.ts +27 -0
  61. package/dist/commonjs/models/components/banwordsguardrail.d.ts.map +1 -1
  62. package/dist/commonjs/models/components/banwordsguardrail.js +21 -1
  63. package/dist/commonjs/models/components/banwordsguardrail.js.map +1 -1
  64. package/dist/commonjs/models/components/classifierguardrail.d.ts +27 -0
  65. package/dist/commonjs/models/components/classifierguardrail.d.ts.map +1 -1
  66. package/dist/commonjs/models/components/classifierguardrail.js +21 -1
  67. package/dist/commonjs/models/components/classifierguardrail.js.map +1 -1
  68. package/dist/commonjs/models/components/clusterdefaultrulesummary.d.ts +21 -0
  69. package/dist/commonjs/models/components/clusterdefaultrulesummary.d.ts.map +1 -1
  70. package/dist/commonjs/models/components/clusterdefaultrulesummary.js +16 -1
  71. package/dist/commonjs/models/components/clusterdefaultrulesummary.js.map +1 -1
  72. package/dist/commonjs/models/components/createvectorstorerequest.d.ts +1 -1
  73. package/dist/commonjs/models/components/embeddingmodellimits.d.ts +5 -5
  74. package/dist/commonjs/models/components/embeddingmodellimits.d.ts.map +1 -1
  75. package/dist/commonjs/models/components/embeddingmodellimits.js +6 -6
  76. package/dist/commonjs/models/components/embeddingmodellimits.js.map +1 -1
  77. package/dist/commonjs/models/components/embeddingsrequest.d.ts +1 -1
  78. package/dist/commonjs/models/components/index.d.ts +1 -0
  79. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  80. package/dist/commonjs/models/components/index.js +1 -0
  81. package/dist/commonjs/models/components/index.js.map +1 -1
  82. package/dist/commonjs/models/components/leakageguardrail.d.ts +27 -0
  83. package/dist/commonjs/models/components/leakageguardrail.d.ts.map +1 -1
  84. package/dist/commonjs/models/components/leakageguardrail.js +21 -1
  85. package/dist/commonjs/models/components/leakageguardrail.js.map +1 -1
  86. package/dist/commonjs/models/components/outputwindow.d.ts +28 -0
  87. package/dist/commonjs/models/components/outputwindow.d.ts.map +1 -0
  88. package/dist/commonjs/models/components/outputwindow.js +71 -0
  89. package/dist/commonjs/models/components/outputwindow.js.map +1 -0
  90. package/dist/commonjs/models/components/promptinjectionguardrail.d.ts +27 -0
  91. package/dist/commonjs/models/components/promptinjectionguardrail.d.ts.map +1 -1
  92. package/dist/commonjs/models/components/promptinjectionguardrail.js +21 -1
  93. package/dist/commonjs/models/components/promptinjectionguardrail.js.map +1 -1
  94. package/dist/commonjs/models/components/tooldefinition.d.ts +1 -1
  95. package/dist/commonjs/models/components/vectorstore.d.ts +1 -1
  96. package/dist/commonjs/models/operations/getmodel.d.ts +2 -2
  97. package/dist/commonjs/models/operations/getrequesttrace.d.ts +203 -0
  98. package/dist/commonjs/models/operations/getrequesttrace.d.ts.map +1 -0
  99. package/dist/commonjs/models/operations/getrequesttrace.js +277 -0
  100. package/dist/commonjs/models/operations/getrequesttrace.js.map +1 -0
  101. package/dist/commonjs/models/operations/index.d.ts +1 -0
  102. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  103. package/dist/commonjs/models/operations/index.js +1 -0
  104. package/dist/commonjs/models/operations/index.js.map +1 -1
  105. package/dist/commonjs/models/operations/listmodels.d.ts +2 -2
  106. package/dist/commonjs/react-query/billingCreateOrganizationBillingPortal.d.ts +3 -0
  107. package/dist/commonjs/react-query/billingCreateOrganizationBillingPortal.d.ts.map +1 -1
  108. package/dist/commonjs/react-query/billingCreateOrganizationBillingPortal.js +3 -0
  109. package/dist/commonjs/react-query/billingCreateOrganizationBillingPortal.js.map +1 -1
  110. package/dist/commonjs/react-query/billingCreateOrganizationBillingSetup.d.ts +3 -0
  111. package/dist/commonjs/react-query/billingCreateOrganizationBillingSetup.d.ts.map +1 -1
  112. package/dist/commonjs/react-query/billingCreateOrganizationBillingSetup.js +3 -0
  113. package/dist/commonjs/react-query/billingCreateOrganizationBillingSetup.js.map +1 -1
  114. package/dist/commonjs/react-query/billingGetOrganizationBilling.d.ts +6 -0
  115. package/dist/commonjs/react-query/billingGetOrganizationBilling.d.ts.map +1 -1
  116. package/dist/commonjs/react-query/billingGetOrganizationBilling.js +6 -0
  117. package/dist/commonjs/react-query/billingGetOrganizationBilling.js.map +1 -1
  118. package/dist/commonjs/react-query/billingListOrganizationBillingInvoices.d.ts +6 -0
  119. package/dist/commonjs/react-query/billingListOrganizationBillingInvoices.d.ts.map +1 -1
  120. package/dist/commonjs/react-query/billingListOrganizationBillingInvoices.js +6 -0
  121. package/dist/commonjs/react-query/billingListOrganizationBillingInvoices.js.map +1 -1
  122. package/dist/commonjs/react-query/billingSetOrganizationBillingEnabled.d.ts +3 -0
  123. package/dist/commonjs/react-query/billingSetOrganizationBillingEnabled.d.ts.map +1 -1
  124. package/dist/commonjs/react-query/billingSetOrganizationBillingEnabled.js +3 -0
  125. package/dist/commonjs/react-query/billingSetOrganizationBillingEnabled.js.map +1 -1
  126. package/dist/commonjs/react-query/billingUpdateOrganizationBillingProfile.d.ts +3 -0
  127. package/dist/commonjs/react-query/billingUpdateOrganizationBillingProfile.d.ts.map +1 -1
  128. package/dist/commonjs/react-query/billingUpdateOrganizationBillingProfile.js +3 -0
  129. package/dist/commonjs/react-query/billingUpdateOrganizationBillingProfile.js.map +1 -1
  130. package/dist/commonjs/react-query/index.d.ts +1 -0
  131. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  132. package/dist/commonjs/react-query/index.js +1 -0
  133. package/dist/commonjs/react-query/index.js.map +1 -1
  134. package/dist/commonjs/react-query/llmAuditGetRequestTrace.core.d.ts +12 -0
  135. package/dist/commonjs/react-query/llmAuditGetRequestTrace.core.d.ts.map +1 -0
  136. package/dist/commonjs/react-query/llmAuditGetRequestTrace.core.js +34 -0
  137. package/dist/commonjs/react-query/llmAuditGetRequestTrace.core.js.map +1 -0
  138. package/dist/commonjs/react-query/llmAuditGetRequestTrace.d.ts +28 -0
  139. package/dist/commonjs/react-query/llmAuditGetRequestTrace.d.ts.map +1 -0
  140. package/dist/commonjs/react-query/llmAuditGetRequestTrace.js +60 -0
  141. package/dist/commonjs/react-query/llmAuditGetRequestTrace.js.map +1 -0
  142. package/dist/commonjs/sdk/audit.d.ts +5 -3
  143. package/dist/commonjs/sdk/audit.d.ts.map +1 -1
  144. package/dist/commonjs/sdk/audit.js +7 -4
  145. package/dist/commonjs/sdk/audit.js.map +1 -1
  146. package/dist/commonjs/sdk/billing.d.ts +18 -0
  147. package/dist/commonjs/sdk/billing.d.ts.map +1 -1
  148. package/dist/commonjs/sdk/billing.js +18 -0
  149. package/dist/commonjs/sdk/billing.js.map +1 -1
  150. package/dist/commonjs/sdk/flags.d.ts +2 -2
  151. package/dist/commonjs/sdk/flags.d.ts.map +1 -1
  152. package/dist/commonjs/sdk/flags.js +2 -2
  153. package/dist/commonjs/sdk/flags.js.map +1 -1
  154. package/dist/commonjs/sdk/llm.d.ts +3 -0
  155. package/dist/commonjs/sdk/llm.d.ts.map +1 -1
  156. package/dist/commonjs/sdk/llm.js +4 -0
  157. package/dist/commonjs/sdk/llm.js.map +1 -1
  158. package/dist/commonjs/sdk/sdkaudit.d.ts +10 -0
  159. package/dist/commonjs/sdk/sdkaudit.d.ts.map +1 -0
  160. package/dist/commonjs/sdk/sdkaudit.js +19 -0
  161. package/dist/commonjs/sdk/sdkaudit.js.map +1 -0
  162. package/dist/esm/funcs/billingCreateOrganizationBillingPortal.d.ts +2 -0
  163. package/dist/esm/funcs/billingCreateOrganizationBillingPortal.d.ts.map +1 -1
  164. package/dist/esm/funcs/billingCreateOrganizationBillingPortal.js +2 -0
  165. package/dist/esm/funcs/billingCreateOrganizationBillingPortal.js.map +1 -1
  166. package/dist/esm/funcs/billingCreateOrganizationBillingSetup.d.ts +2 -0
  167. package/dist/esm/funcs/billingCreateOrganizationBillingSetup.d.ts.map +1 -1
  168. package/dist/esm/funcs/billingCreateOrganizationBillingSetup.js +2 -0
  169. package/dist/esm/funcs/billingCreateOrganizationBillingSetup.js.map +1 -1
  170. package/dist/esm/funcs/billingGetOrganizationBilling.d.ts +2 -0
  171. package/dist/esm/funcs/billingGetOrganizationBilling.d.ts.map +1 -1
  172. package/dist/esm/funcs/billingGetOrganizationBilling.js +2 -0
  173. package/dist/esm/funcs/billingGetOrganizationBilling.js.map +1 -1
  174. package/dist/esm/funcs/billingListOrganizationBillingInvoices.d.ts +2 -0
  175. package/dist/esm/funcs/billingListOrganizationBillingInvoices.d.ts.map +1 -1
  176. package/dist/esm/funcs/billingListOrganizationBillingInvoices.js +2 -0
  177. package/dist/esm/funcs/billingListOrganizationBillingInvoices.js.map +1 -1
  178. package/dist/esm/funcs/billingSetOrganizationBillingEnabled.d.ts +2 -0
  179. package/dist/esm/funcs/billingSetOrganizationBillingEnabled.d.ts.map +1 -1
  180. package/dist/esm/funcs/billingSetOrganizationBillingEnabled.js +2 -0
  181. package/dist/esm/funcs/billingSetOrganizationBillingEnabled.js.map +1 -1
  182. package/dist/esm/funcs/billingUpdateOrganizationBillingProfile.d.ts +2 -0
  183. package/dist/esm/funcs/billingUpdateOrganizationBillingProfile.d.ts.map +1 -1
  184. package/dist/esm/funcs/billingUpdateOrganizationBillingProfile.js +2 -0
  185. package/dist/esm/funcs/billingUpdateOrganizationBillingProfile.js.map +1 -1
  186. package/dist/esm/funcs/llmAuditGetRequestTrace.d.ts +19 -0
  187. package/dist/esm/funcs/llmAuditGetRequestTrace.d.ts.map +1 -0
  188. package/dist/esm/funcs/llmAuditGetRequestTrace.js +96 -0
  189. package/dist/esm/funcs/llmAuditGetRequestTrace.js.map +1 -0
  190. package/dist/esm/lib/config.d.ts +2 -2
  191. package/dist/esm/lib/config.js +2 -2
  192. package/dist/esm/mcp-server/mcp-server.js +1 -1
  193. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  194. package/dist/esm/mcp-server/server.js +3 -1
  195. package/dist/esm/mcp-server/server.js.map +1 -1
  196. package/dist/esm/mcp-server/tools/billingCreateOrganizationBillingPortal.d.ts.map +1 -1
  197. package/dist/esm/mcp-server/tools/billingCreateOrganizationBillingPortal.js +1 -1
  198. package/dist/esm/mcp-server/tools/billingCreateOrganizationBillingPortal.js.map +1 -1
  199. package/dist/esm/mcp-server/tools/billingCreateOrganizationBillingSetup.d.ts.map +1 -1
  200. package/dist/esm/mcp-server/tools/billingCreateOrganizationBillingSetup.js +1 -1
  201. package/dist/esm/mcp-server/tools/billingCreateOrganizationBillingSetup.js.map +1 -1
  202. package/dist/esm/mcp-server/tools/billingGetOrganizationBilling.d.ts.map +1 -1
  203. package/dist/esm/mcp-server/tools/billingGetOrganizationBilling.js +1 -1
  204. package/dist/esm/mcp-server/tools/billingGetOrganizationBilling.js.map +1 -1
  205. package/dist/esm/mcp-server/tools/billingListOrganizationBillingInvoices.d.ts.map +1 -1
  206. package/dist/esm/mcp-server/tools/billingListOrganizationBillingInvoices.js +1 -1
  207. package/dist/esm/mcp-server/tools/billingListOrganizationBillingInvoices.js.map +1 -1
  208. package/dist/esm/mcp-server/tools/billingSetOrganizationBillingEnabled.d.ts.map +1 -1
  209. package/dist/esm/mcp-server/tools/billingSetOrganizationBillingEnabled.js +1 -1
  210. package/dist/esm/mcp-server/tools/billingSetOrganizationBillingEnabled.js.map +1 -1
  211. package/dist/esm/mcp-server/tools/billingUpdateOrganizationBillingProfile.d.ts.map +1 -1
  212. package/dist/esm/mcp-server/tools/billingUpdateOrganizationBillingProfile.js +1 -1
  213. package/dist/esm/mcp-server/tools/billingUpdateOrganizationBillingProfile.js.map +1 -1
  214. package/dist/esm/mcp-server/tools/llmAuditGetRequestTrace.d.ts +8 -0
  215. package/dist/esm/mcp-server/tools/llmAuditGetRequestTrace.d.ts.map +1 -0
  216. package/dist/esm/mcp-server/tools/llmAuditGetRequestTrace.js +28 -0
  217. package/dist/esm/mcp-server/tools/llmAuditGetRequestTrace.js.map +1 -0
  218. package/dist/esm/models/components/banwordsguardrail.d.ts +27 -0
  219. package/dist/esm/models/components/banwordsguardrail.d.ts.map +1 -1
  220. package/dist/esm/models/components/banwordsguardrail.js +20 -0
  221. package/dist/esm/models/components/banwordsguardrail.js.map +1 -1
  222. package/dist/esm/models/components/classifierguardrail.d.ts +27 -0
  223. package/dist/esm/models/components/classifierguardrail.d.ts.map +1 -1
  224. package/dist/esm/models/components/classifierguardrail.js +20 -0
  225. package/dist/esm/models/components/classifierguardrail.js.map +1 -1
  226. package/dist/esm/models/components/clusterdefaultrulesummary.d.ts +21 -0
  227. package/dist/esm/models/components/clusterdefaultrulesummary.d.ts.map +1 -1
  228. package/dist/esm/models/components/clusterdefaultrulesummary.js +15 -0
  229. package/dist/esm/models/components/clusterdefaultrulesummary.js.map +1 -1
  230. package/dist/esm/models/components/createvectorstorerequest.d.ts +1 -1
  231. package/dist/esm/models/components/embeddingmodellimits.d.ts +5 -5
  232. package/dist/esm/models/components/embeddingmodellimits.d.ts.map +1 -1
  233. package/dist/esm/models/components/embeddingmodellimits.js +6 -6
  234. package/dist/esm/models/components/embeddingmodellimits.js.map +1 -1
  235. package/dist/esm/models/components/embeddingsrequest.d.ts +1 -1
  236. package/dist/esm/models/components/index.d.ts +1 -0
  237. package/dist/esm/models/components/index.d.ts.map +1 -1
  238. package/dist/esm/models/components/index.js +1 -0
  239. package/dist/esm/models/components/index.js.map +1 -1
  240. package/dist/esm/models/components/leakageguardrail.d.ts +27 -0
  241. package/dist/esm/models/components/leakageguardrail.d.ts.map +1 -1
  242. package/dist/esm/models/components/leakageguardrail.js +20 -0
  243. package/dist/esm/models/components/leakageguardrail.js.map +1 -1
  244. package/dist/esm/models/components/outputwindow.d.ts +28 -0
  245. package/dist/esm/models/components/outputwindow.d.ts.map +1 -0
  246. package/dist/esm/models/components/outputwindow.js +33 -0
  247. package/dist/esm/models/components/outputwindow.js.map +1 -0
  248. package/dist/esm/models/components/promptinjectionguardrail.d.ts +27 -0
  249. package/dist/esm/models/components/promptinjectionguardrail.d.ts.map +1 -1
  250. package/dist/esm/models/components/promptinjectionguardrail.js +20 -0
  251. package/dist/esm/models/components/promptinjectionguardrail.js.map +1 -1
  252. package/dist/esm/models/components/tooldefinition.d.ts +1 -1
  253. package/dist/esm/models/components/vectorstore.d.ts +1 -1
  254. package/dist/esm/models/operations/getmodel.d.ts +2 -2
  255. package/dist/esm/models/operations/getrequesttrace.d.ts +203 -0
  256. package/dist/esm/models/operations/getrequesttrace.d.ts.map +1 -0
  257. package/dist/esm/models/operations/getrequesttrace.js +231 -0
  258. package/dist/esm/models/operations/getrequesttrace.js.map +1 -0
  259. package/dist/esm/models/operations/index.d.ts +1 -0
  260. package/dist/esm/models/operations/index.d.ts.map +1 -1
  261. package/dist/esm/models/operations/index.js +1 -0
  262. package/dist/esm/models/operations/index.js.map +1 -1
  263. package/dist/esm/models/operations/listmodels.d.ts +2 -2
  264. package/dist/esm/react-query/billingCreateOrganizationBillingPortal.d.ts +3 -0
  265. package/dist/esm/react-query/billingCreateOrganizationBillingPortal.d.ts.map +1 -1
  266. package/dist/esm/react-query/billingCreateOrganizationBillingPortal.js +3 -0
  267. package/dist/esm/react-query/billingCreateOrganizationBillingPortal.js.map +1 -1
  268. package/dist/esm/react-query/billingCreateOrganizationBillingSetup.d.ts +3 -0
  269. package/dist/esm/react-query/billingCreateOrganizationBillingSetup.d.ts.map +1 -1
  270. package/dist/esm/react-query/billingCreateOrganizationBillingSetup.js +3 -0
  271. package/dist/esm/react-query/billingCreateOrganizationBillingSetup.js.map +1 -1
  272. package/dist/esm/react-query/billingGetOrganizationBilling.d.ts +6 -0
  273. package/dist/esm/react-query/billingGetOrganizationBilling.d.ts.map +1 -1
  274. package/dist/esm/react-query/billingGetOrganizationBilling.js +6 -0
  275. package/dist/esm/react-query/billingGetOrganizationBilling.js.map +1 -1
  276. package/dist/esm/react-query/billingListOrganizationBillingInvoices.d.ts +6 -0
  277. package/dist/esm/react-query/billingListOrganizationBillingInvoices.d.ts.map +1 -1
  278. package/dist/esm/react-query/billingListOrganizationBillingInvoices.js +6 -0
  279. package/dist/esm/react-query/billingListOrganizationBillingInvoices.js.map +1 -1
  280. package/dist/esm/react-query/billingSetOrganizationBillingEnabled.d.ts +3 -0
  281. package/dist/esm/react-query/billingSetOrganizationBillingEnabled.d.ts.map +1 -1
  282. package/dist/esm/react-query/billingSetOrganizationBillingEnabled.js +3 -0
  283. package/dist/esm/react-query/billingSetOrganizationBillingEnabled.js.map +1 -1
  284. package/dist/esm/react-query/billingUpdateOrganizationBillingProfile.d.ts +3 -0
  285. package/dist/esm/react-query/billingUpdateOrganizationBillingProfile.d.ts.map +1 -1
  286. package/dist/esm/react-query/billingUpdateOrganizationBillingProfile.js +3 -0
  287. package/dist/esm/react-query/billingUpdateOrganizationBillingProfile.js.map +1 -1
  288. package/dist/esm/react-query/index.d.ts +1 -0
  289. package/dist/esm/react-query/index.d.ts.map +1 -1
  290. package/dist/esm/react-query/index.js +1 -0
  291. package/dist/esm/react-query/index.js.map +1 -1
  292. package/dist/esm/react-query/llmAuditGetRequestTrace.core.d.ts +12 -0
  293. package/dist/esm/react-query/llmAuditGetRequestTrace.core.d.ts.map +1 -0
  294. package/dist/esm/react-query/llmAuditGetRequestTrace.core.js +29 -0
  295. package/dist/esm/react-query/llmAuditGetRequestTrace.core.js.map +1 -0
  296. package/dist/esm/react-query/llmAuditGetRequestTrace.d.ts +28 -0
  297. package/dist/esm/react-query/llmAuditGetRequestTrace.d.ts.map +1 -0
  298. package/dist/esm/react-query/llmAuditGetRequestTrace.js +50 -0
  299. package/dist/esm/react-query/llmAuditGetRequestTrace.js.map +1 -0
  300. package/dist/esm/sdk/audit.d.ts +5 -3
  301. package/dist/esm/sdk/audit.d.ts.map +1 -1
  302. package/dist/esm/sdk/audit.js +7 -4
  303. package/dist/esm/sdk/audit.js.map +1 -1
  304. package/dist/esm/sdk/billing.d.ts +18 -0
  305. package/dist/esm/sdk/billing.d.ts.map +1 -1
  306. package/dist/esm/sdk/billing.js +18 -0
  307. package/dist/esm/sdk/billing.js.map +1 -1
  308. package/dist/esm/sdk/flags.d.ts +2 -2
  309. package/dist/esm/sdk/flags.d.ts.map +1 -1
  310. package/dist/esm/sdk/flags.js +2 -2
  311. package/dist/esm/sdk/flags.js.map +1 -1
  312. package/dist/esm/sdk/llm.d.ts +3 -0
  313. package/dist/esm/sdk/llm.d.ts.map +1 -1
  314. package/dist/esm/sdk/llm.js +4 -0
  315. package/dist/esm/sdk/llm.js.map +1 -1
  316. package/dist/esm/sdk/sdkaudit.d.ts +10 -0
  317. package/dist/esm/sdk/sdkaudit.d.ts.map +1 -0
  318. package/dist/esm/sdk/sdkaudit.js +15 -0
  319. package/dist/esm/sdk/sdkaudit.js.map +1 -0
  320. package/jsr.json +1 -1
  321. package/package.json +1 -1
  322. package/src/funcs/billingCreateOrganizationBillingPortal.ts +2 -0
  323. package/src/funcs/billingCreateOrganizationBillingSetup.ts +2 -0
  324. package/src/funcs/billingGetOrganizationBilling.ts +2 -0
  325. package/src/funcs/billingListOrganizationBillingInvoices.ts +2 -0
  326. package/src/funcs/billingSetOrganizationBillingEnabled.ts +2 -0
  327. package/src/funcs/billingUpdateOrganizationBillingProfile.ts +2 -0
  328. package/src/funcs/llmAuditGetRequestTrace.ts +181 -0
  329. package/src/lib/config.ts +2 -2
  330. package/src/mcp-server/mcp-server.ts +1 -1
  331. package/src/mcp-server/server.ts +3 -1
  332. package/src/mcp-server/tools/billingCreateOrganizationBillingPortal.ts +2 -1
  333. package/src/mcp-server/tools/billingCreateOrganizationBillingSetup.ts +2 -1
  334. package/src/mcp-server/tools/billingGetOrganizationBilling.ts +2 -1
  335. package/src/mcp-server/tools/billingListOrganizationBillingInvoices.ts +2 -1
  336. package/src/mcp-server/tools/billingSetOrganizationBillingEnabled.ts +2 -1
  337. package/src/mcp-server/tools/billingUpdateOrganizationBillingProfile.ts +2 -1
  338. package/src/mcp-server/tools/llmAuditGetRequestTrace.ts +37 -0
  339. package/src/models/components/banwordsguardrail.ts +44 -0
  340. package/src/models/components/classifierguardrail.ts +48 -0
  341. package/src/models/components/clusterdefaultrulesummary.ts +34 -0
  342. package/src/models/components/createvectorstorerequest.ts +1 -1
  343. package/src/models/components/embeddingmodellimits.ts +11 -11
  344. package/src/models/components/embeddingsrequest.ts +1 -1
  345. package/src/models/components/index.ts +1 -0
  346. package/src/models/components/leakageguardrail.ts +48 -0
  347. package/src/models/components/outputwindow.ts +71 -0
  348. package/src/models/components/promptinjectionguardrail.ts +49 -0
  349. package/src/models/components/tooldefinition.ts +1 -1
  350. package/src/models/components/vectorstore.ts +1 -1
  351. package/src/models/operations/getmodel.ts +2 -2
  352. package/src/models/operations/getrequesttrace.ts +501 -0
  353. package/src/models/operations/index.ts +1 -0
  354. package/src/models/operations/listmodels.ts +2 -2
  355. package/src/react-query/billingCreateOrganizationBillingPortal.ts +3 -0
  356. package/src/react-query/billingCreateOrganizationBillingSetup.ts +3 -0
  357. package/src/react-query/billingGetOrganizationBilling.ts +6 -0
  358. package/src/react-query/billingListOrganizationBillingInvoices.ts +6 -0
  359. package/src/react-query/billingSetOrganizationBillingEnabled.ts +3 -0
  360. package/src/react-query/billingUpdateOrganizationBillingProfile.ts +3 -0
  361. package/src/react-query/index.ts +1 -0
  362. package/src/react-query/llmAuditGetRequestTrace.core.ts +71 -0
  363. package/src/react-query/llmAuditGetRequestTrace.ts +136 -0
  364. package/src/sdk/audit.ts +9 -7
  365. package/src/sdk/billing.ts +18 -0
  366. package/src/sdk/flags.ts +4 -4
  367. package/src/sdk/llm.ts +6 -0
  368. package/src/sdk/sdkaudit.ts +25 -0
@@ -1 +1 @@
1
- {"version":3,"file":"llm.d.ts","sourceRoot":"","sources":["../../../src/sdk/llm.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,a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,IAAI,MAAM,CAEnB;IAED,OAAO,CAAC,QAAQ,CAAC,CAAU;IAC3B,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,OAAO,CAAC,UAAU,CAAC,CAAY;IAC/B,IAAI,SAAS,IAAI,SAAS,CAEzB;IAED,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED,OAAO,CAAC,MAAM,CAAC,CAAW;IAC1B,IAAI,KAAK,IAAI,QAAQ,CAEpB;IAED,OAAO,CAAC,SAAS,CAAC,CAAW;IAC7B,IAAI,QAAQ,IAAI,QAAQ,CAEvB;IAED,OAAO,CAAC,QAAQ,CAAC,CAAW;IAC5B,IAAI,OAAO,IAAI,QAAQ,CAEtB;IAED,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED,OAAO,CAAC,aAAa,CAAC,CAAe;IACrC,IAAI,YAAY,IAAI,YAAY,CAE/B;CACF"}
@@ -2,6 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
  import { ClientSDK } from "../lib/sdks.js";
5
+ import { Audit } from "./audit.js";
5
6
  import { Batches } from "./batches.js";
6
7
  import { Chat } from "./chat.js";
7
8
  import { Classify } from "./classify.js";
@@ -23,6 +24,9 @@ import { Skills } from "./skills.js";
23
24
  import { Speech } from "./speech.js";
24
25
  import { VectorStores } from "./vectorstores.js";
25
26
  export class Llm extends ClientSDK {
27
+ get audit() {
28
+ return (this._audit ?? (this._audit = new Audit(this._options)));
29
+ }
26
30
  get batches() {
27
31
  return (this._batches ?? (this._batches = new Batches(this._options)));
28
32
  }
@@ -1 +1 @@
1
- {"version":3,"file":"llm.js","sourceRoot":"","sources":["../../../src/sdk/llm.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAA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AAI,SAAS;QACX,OAAO,CAAC,IAAI,CAAC,UAAU,KAAf,IAAI,CAAC,UAAU,GAAK,IAAI,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAC5D,CAAC;IAGD,IAAI,MAAM;QACR,OAAO,CAAC,IAAI,CAAC,OAAO,KAAZ,IAAI,CAAC,OAAO,GAAK,IAAI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACtD,CAAC;IAGD,IAAI,KAAK;QACP,OAAO,CAAC,IAAI,CAAC,MAAM,KAAX,IAAI,CAAC,MAAM,GAAK,IAAI,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACvD,CAAC;IAGD,IAAI,QAAQ;QACV,OAAO,CAAC,IAAI,CAAC,SAAS,KAAd,IAAI,CAAC,SAAS,GAAK,IAAI,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAC1D,CAAC;IAGD,IAAI,OAAO;QACT,OAAO,CAAC,IAAI,CAAC,QAAQ,KAAb,IAAI,CAAC,QAAQ,GAAK,IAAI,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACzD,CAAC;IAGD,IAAI,MAAM;QACR,OAAO,CAAC,IAAI,CAAC,OAAO,KAAZ,IAAI,CAAC,OAAO,GAAK,IAAI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACtD,CAAC;IAGD,IAAI,YAAY;QACd,OAAO,CAAC,IAAI,CAAC,aAAa,KAAlB,IAAI,CAAC,aAAa,GAAK,IAAI,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAClE,CAAC;CACF"}
@@ -0,0 +1,10 @@
1
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
+ import * as components from "../models/components/index.js";
3
+ import * as operations from "../models/operations/index.js";
4
+ export declare class SDKAudit extends ClientSDK {
5
+ /**
6
+ * List audit entries, newest first
7
+ */
8
+ list(request: operations.ListFeatureFlagAuditEntriesRequest, options?: RequestOptions): Promise<components.FeatureFlagAuditPage>;
9
+ }
10
+ //# sourceMappingURL=sdkaudit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sdkaudit.d.ts","sourceRoot":"","sources":["../../../src/sdk/sdkaudit.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,QAAS,SAAQ,SAAS;IACrC;;OAEG;IACG,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,kCAAkC,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,oBAAoB,CAAC;CAO5C"}
@@ -0,0 +1,15 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import { flagsAuditList } from "../funcs/flagsAuditList.js";
5
+ import { ClientSDK } from "../lib/sdks.js";
6
+ import { unwrapAsync } from "../types/fp.js";
7
+ export class SDKAudit extends ClientSDK {
8
+ /**
9
+ * List audit entries, newest first
10
+ */
11
+ async list(request, options) {
12
+ return unwrapAsync(flagsAuditList(this, request, options));
13
+ }
14
+ }
15
+ //# sourceMappingURL=sdkaudit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sdkaudit.js","sourceRoot":"","sources":["../../../src/sdk/sdkaudit.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,QAAS,SAAQ,SAAS;IACrC;;OAEG;IACH,KAAK,CAAC,IAAI,CACR,OAAsD,EACtD,OAAwB;QAExB,OAAO,WAAW,CAAC,cAAc,CAC/B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@meetkai/mka1",
5
- "version": "0.55.25",
5
+ "version": "0.55.27",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meetkai/mka1",
3
- "version": "0.55.25",
3
+ "version": "0.55.27",
4
4
  "author": "MeetKai",
5
5
  "homepage": "https://docs.mka1.com",
6
6
  "publishConfig": {
@@ -24,6 +24,8 @@ import { APICall, APIPromise } from "../types/async.js";
24
24
  import { Result } from "../types/fp.js";
25
25
 
26
26
  /**
27
+ * 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.
28
+ *
27
29
  * If set, this operation will use {@link Security.bearerAuth} from the global security.
28
30
  */
29
31
  export function billingCreateOrganizationBillingPortal(
@@ -24,6 +24,8 @@ import { APICall, APIPromise } from "../types/async.js";
24
24
  import { Result } from "../types/fp.js";
25
25
 
26
26
  /**
27
+ * 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.
28
+ *
27
29
  * If set, this operation will use {@link Security.bearerAuth} from the global security.
28
30
  */
29
31
  export function billingCreateOrganizationBillingSetup(
@@ -26,6 +26,8 @@ import { APICall, APIPromise } from "../types/async.js";
26
26
  import { Result } from "../types/fp.js";
27
27
 
28
28
  /**
29
+ * 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.
30
+ *
29
31
  * If set, this operation will use {@link Security.bearerAuth} from the global security.
30
32
  */
31
33
  export function billingGetOrganizationBilling(
@@ -26,6 +26,8 @@ import { APICall, APIPromise } from "../types/async.js";
26
26
  import { Result } from "../types/fp.js";
27
27
 
28
28
  /**
29
+ * 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.
30
+ *
29
31
  * If set, this operation will use {@link Security.bearerAuth} from the global security.
30
32
  */
31
33
  export function billingListOrganizationBillingInvoices(
@@ -26,6 +26,8 @@ import { APICall, APIPromise } from "../types/async.js";
26
26
  import { Result } from "../types/fp.js";
27
27
 
28
28
  /**
29
+ * 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.
30
+ *
29
31
  * If set, this operation will use {@link Security.bearerAuth} from the global security.
30
32
  */
31
33
  export function billingSetOrganizationBillingEnabled(
@@ -26,6 +26,8 @@ import { APICall, APIPromise } from "../types/async.js";
26
26
  import { Result } from "../types/fp.js";
27
27
 
28
28
  /**
29
+ * 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.
30
+ *
29
31
  * If set, this operation will use {@link Security.bearerAuth} from the global security.
30
32
  */
31
33
  export function billingUpdateOrganizationBillingProfile(
@@ -0,0 +1,181 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { SDKCore } from "../core.js";
6
+ import { encodeSimple } from "../lib/encodings.js";
7
+ import { matchStatusCode } from "../lib/http.js";
8
+ import * as M from "../lib/matchers.js";
9
+ import { compactMap } from "../lib/primitives.js";
10
+ import { safeParse } from "../lib/schemas.js";
11
+ import { RequestOptions } from "../lib/sdks.js";
12
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
+ import { pathToFunc } from "../lib/url.js";
14
+ import {
15
+ ConnectionError,
16
+ InvalidRequestError,
17
+ RequestAbortedError,
18
+ RequestTimeoutError,
19
+ UnexpectedClientError,
20
+ } from "../models/errors/httpclienterrors.js";
21
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
22
+ import { SDKError } from "../models/errors/sdkerror.js";
23
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
24
+ import * as operations from "../models/operations/index.js";
25
+ import { APICall, APIPromise } from "../types/async.js";
26
+ import { Result } from "../types/fp.js";
27
+
28
+ /**
29
+ * Get a request trace
30
+ *
31
+ * @remarks
32
+ * Returns the end-to-end trace of one API request: its timing at the API gateway, every response it created (including agents it called), and each response's model invocations and tool calls with durations. Look it up by the `X-Request-ID` returned on every response, or by the API gateway's own request ID. Org owners and admins only, scoped to their own organization. Requests audited before request IDs were recorded show their gateway timing but no responses.
33
+ *
34
+ * If set, this operation will use {@link Security.bearerAuth} from the global security.
35
+ */
36
+ export function llmAuditGetRequestTrace(
37
+ client: SDKCore,
38
+ request: operations.GetRequestTraceRequest,
39
+ options?: RequestOptions,
40
+ ): APIPromise<
41
+ Result<
42
+ operations.GetRequestTraceResponseBody,
43
+ | SDKError
44
+ | ResponseValidationError
45
+ | ConnectionError
46
+ | RequestAbortedError
47
+ | RequestTimeoutError
48
+ | InvalidRequestError
49
+ | UnexpectedClientError
50
+ | SDKValidationError
51
+ >
52
+ > {
53
+ return new APIPromise($do(
54
+ client,
55
+ request,
56
+ options,
57
+ ));
58
+ }
59
+
60
+ async function $do(
61
+ client: SDKCore,
62
+ request: operations.GetRequestTraceRequest,
63
+ options?: RequestOptions,
64
+ ): Promise<
65
+ [
66
+ Result<
67
+ operations.GetRequestTraceResponseBody,
68
+ | SDKError
69
+ | ResponseValidationError
70
+ | ConnectionError
71
+ | RequestAbortedError
72
+ | RequestTimeoutError
73
+ | InvalidRequestError
74
+ | UnexpectedClientError
75
+ | SDKValidationError
76
+ >,
77
+ APICall,
78
+ ]
79
+ > {
80
+ const parsed = safeParse(
81
+ request,
82
+ (value) => operations.GetRequestTraceRequest$outboundSchema.parse(value),
83
+ "Input validation failed",
84
+ );
85
+ if (!parsed.ok) {
86
+ return [parsed, { status: "invalid" }];
87
+ }
88
+ const payload = parsed.value;
89
+ const body = null;
90
+
91
+ const pathParams = {
92
+ request_id: encodeSimple("request_id", payload.request_id, {
93
+ explode: false,
94
+ charEncoding: "percent",
95
+ }),
96
+ };
97
+ const path = pathToFunc("/api/v1/llm/audit/requests/{request_id}/trace")(
98
+ pathParams,
99
+ );
100
+
101
+ const headers = new Headers(compactMap({
102
+ Accept: "application/json",
103
+ }));
104
+
105
+ const secConfig = await extractSecurity(client._options.bearerAuth);
106
+ const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
107
+ const requestSecurity = resolveGlobalSecurity(securityInput, [0]);
108
+
109
+ const context = {
110
+ options: client._options,
111
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
112
+ operationID: "getRequestTrace",
113
+ oAuth2Scopes: null,
114
+
115
+ resolvedSecurity: requestSecurity,
116
+
117
+ securitySource: client._options.bearerAuth,
118
+ retryConfig: options?.retries
119
+ || client._options.retryConfig
120
+ || {
121
+ strategy: "backoff",
122
+ backoff: {
123
+ initialInterval: 500,
124
+ maxInterval: 5000,
125
+ exponent: 1.5,
126
+ maxElapsedTime: 15000,
127
+ },
128
+ retryConnectionErrors: true,
129
+ }
130
+ || { strategy: "none" },
131
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
132
+ };
133
+
134
+ const requestRes = client._createRequest(context, {
135
+ security: requestSecurity,
136
+ method: "GET",
137
+ baseURL: options?.serverURL,
138
+ path: path,
139
+ headers: headers,
140
+ body: body,
141
+ userAgent: client._options.userAgent,
142
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
143
+ }, options);
144
+ if (!requestRes.ok) {
145
+ return [requestRes, { status: "invalid" }];
146
+ }
147
+ const req = requestRes.value;
148
+
149
+ const doResult = await client._do(req, {
150
+ context,
151
+ isErrorStatusCode: (statusCode: number) =>
152
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
153
+ retryConfig: context.retryConfig,
154
+ retryCodes: context.retryCodes,
155
+ });
156
+ if (!doResult.ok) {
157
+ return [doResult, { status: "request-error", request: req }];
158
+ }
159
+ const response = doResult.value;
160
+
161
+ const [result] = await M.match<
162
+ operations.GetRequestTraceResponseBody,
163
+ | SDKError
164
+ | ResponseValidationError
165
+ | ConnectionError
166
+ | RequestAbortedError
167
+ | RequestTimeoutError
168
+ | InvalidRequestError
169
+ | UnexpectedClientError
170
+ | SDKValidationError
171
+ >(
172
+ M.json(200, operations.GetRequestTraceResponseBody$inboundSchema),
173
+ M.fail("4XX"),
174
+ M.fail("5XX"),
175
+ )(response, req);
176
+ if (!result.ok) {
177
+ return [result, { status: "complete", request: req, response }];
178
+ }
179
+
180
+ return [result, { status: "complete", request: req, response }];
181
+ }
package/src/lib/config.ts CHANGED
@@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
65
65
  export const SDK_METADATA = {
66
66
  language: "typescript",
67
67
  openapiDocVersion: "1.1.0",
68
- sdkVersion: "0.55.25",
68
+ sdkVersion: "0.55.27",
69
69
  genVersion: "2.950.2",
70
- userAgent: "speakeasy-sdk/typescript 0.55.25 2.950.2 1.1.0 @meetkai/mka1",
70
+ userAgent: "speakeasy-sdk/typescript 0.55.27 2.950.2 1.1.0 @meetkai/mka1",
71
71
  } as const;
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "0.55.25",
22
+ currentVersion: "0.55.27",
23
23
  },
24
24
  });
25
25
 
@@ -220,6 +220,7 @@ import { tool$guardrailsTestGuardrails } from "./tools/guardrailsTestGuardrails.
220
220
  import { tool$guardrailsUpdateClusterDefaultGuardrails } from "./tools/guardrailsUpdateClusterDefaultGuardrails.js";
221
221
  import { tool$guardrailsUpdateClusterDefaultGuardrailsOrg } from "./tools/guardrailsUpdateClusterDefaultGuardrailsOrg.js";
222
222
  import { tool$guardrailsUpdateGuardrails } from "./tools/guardrailsUpdateGuardrails.js";
223
+ import { tool$llmAuditGetRequestTrace } from "./tools/llmAuditGetRequestTrace.js";
223
224
  import { tool$llmBatchesCancel } from "./tools/llmBatchesCancel.js";
224
225
  import { tool$llmBatchesCreate } from "./tools/llmBatchesCreate.js";
225
226
  import { tool$llmBatchesGet } from "./tools/llmBatchesGet.js";
@@ -515,7 +516,7 @@ export function createMCPServer(deps: {
515
516
  }) {
516
517
  const server = new McpServer({
517
518
  name: "SDK",
518
- version: "0.55.25",
519
+ version: "0.55.27",
519
520
  });
520
521
 
521
522
  const client = new SDKCore({
@@ -713,6 +714,7 @@ export function createMCPServer(deps: {
713
714
  tool(tool$permissionsLlmGrant);
714
715
  tool(tool$permissionsLlmRevoke);
715
716
  tool(tool$permissionsLlmCheck);
717
+ tool(tool$llmAuditGetRequestTrace);
716
718
  tool(tool$llmBatchesCreate);
717
719
  tool(tool$llmBatchesList);
718
720
  tool(tool$llmBatchesGet);
@@ -14,7 +14,8 @@ export const tool$billingCreateOrganizationBillingPortal: ToolDefinition<
14
14
  typeof args
15
15
  > = {
16
16
  name: "billing-create-organization-billing-portal",
17
- description: ``,
17
+ description:
18
+ `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.`,
18
19
  args,
19
20
  tool: async (client, args, ctx) => {
20
21
  const [result, apiCall] = await billingCreateOrganizationBillingPortal(
@@ -14,7 +14,8 @@ export const tool$billingCreateOrganizationBillingSetup: ToolDefinition<
14
14
  typeof args
15
15
  > = {
16
16
  name: "billing-create-organization-billing-setup",
17
- description: ``,
17
+ description:
18
+ `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.`,
18
19
  args,
19
20
  tool: async (client, args, ctx) => {
20
21
  const [result, apiCall] = await billingCreateOrganizationBillingSetup(
@@ -12,7 +12,8 @@ const args = {
12
12
 
13
13
  export const tool$billingGetOrganizationBilling: ToolDefinition<typeof args> = {
14
14
  name: "billing-get-organization-billing",
15
- description: ``,
15
+ description:
16
+ `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.`,
16
17
  args,
17
18
  tool: async (client, args, ctx) => {
18
19
  const [result, apiCall] = await billingGetOrganizationBilling(
@@ -14,7 +14,8 @@ export const tool$billingListOrganizationBillingInvoices: ToolDefinition<
14
14
  typeof args
15
15
  > = {
16
16
  name: "billing-list-organization-billing-invoices",
17
- description: ``,
17
+ description:
18
+ `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.`,
18
19
  args,
19
20
  tool: async (client, args, ctx) => {
20
21
  const [result, apiCall] = await billingListOrganizationBillingInvoices(
@@ -14,7 +14,8 @@ export const tool$billingSetOrganizationBillingEnabled: ToolDefinition<
14
14
  typeof args
15
15
  > = {
16
16
  name: "billing-set-organization-billing-enabled",
17
- description: ``,
17
+ description:
18
+ `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.`,
18
19
  args,
19
20
  tool: async (client, args, ctx) => {
20
21
  const [result, apiCall] = await billingSetOrganizationBillingEnabled(
@@ -14,7 +14,8 @@ export const tool$billingUpdateOrganizationBillingProfile: ToolDefinition<
14
14
  typeof args
15
15
  > = {
16
16
  name: "billing-update-organization-billing-profile",
17
- description: ``,
17
+ description:
18
+ `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.`,
18
19
  args,
19
20
  tool: async (client, args, ctx) => {
20
21
  const [result, apiCall] = await billingUpdateOrganizationBillingProfile(
@@ -0,0 +1,37 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { llmAuditGetRequestTrace } from "../../funcs/llmAuditGetRequestTrace.js";
6
+ import * as operations from "../../models/operations/index.js";
7
+ import { formatResult, ToolDefinition } from "../tools.js";
8
+
9
+ const args = {
10
+ request: operations.GetRequestTraceRequest$inboundSchema,
11
+ };
12
+
13
+ export const tool$llmAuditGetRequestTrace: ToolDefinition<typeof args> = {
14
+ name: "llm-audit-get-request-trace",
15
+ description: `Get a request trace
16
+
17
+ Returns the end-to-end trace of one API request: its timing at the API gateway, every response it created (including agents it called), and each response's model invocations and tool calls with durations. Look it up by the \`X-Request-ID\` returned on every response, or by the API gateway's own request ID. Org owners and admins only, scoped to their own organization. Requests audited before request IDs were recorded show their gateway timing but no responses.`,
18
+ args,
19
+ tool: async (client, args, ctx) => {
20
+ const [result, apiCall] = await llmAuditGetRequestTrace(
21
+ client,
22
+ args.request,
23
+ { fetchOptions: { signal: ctx.mcpReq.signal } },
24
+ ).$inspect();
25
+
26
+ if (!result.ok) {
27
+ return {
28
+ content: [{ type: "text", text: result.error.message }],
29
+ isError: true,
30
+ };
31
+ }
32
+
33
+ const value = result.value;
34
+
35
+ return formatResult(value, apiCall);
36
+ },
37
+ };
@@ -5,6 +5,7 @@
5
5
  import * as z from "zod/v3";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
8
9
  import { Result as SafeParseResult } from "../../types/fp.js";
9
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
11
  import {
@@ -18,6 +19,24 @@ import {
18
19
  GuardrailInputSource$inboundSchema,
19
20
  GuardrailInputSource$outboundSchema,
20
21
  } from "./guardrailinputsource.js";
22
+ import {
23
+ OutputWindow,
24
+ OutputWindow$inboundSchema,
25
+ OutputWindow$Outbound,
26
+ OutputWindow$outboundSchema,
27
+ } from "./outputwindow.js";
28
+
29
+ /**
30
+ * When this rule checks model output: final (default) checks the finished text once, after it has streamed; streaming holds streamed text in a window and releases only text this rule has cleared
31
+ */
32
+ export const OutputTiming = {
33
+ Final: "final",
34
+ Streaming: "streaming",
35
+ } as const;
36
+ /**
37
+ * When this rule checks model output: final (default) checks the finished text once, after it has streamed; streaming holds streamed text in a window and releases only text this rule has cleared
38
+ */
39
+ export type OutputTiming = ClosedEnum<typeof OutputTiming>;
21
40
 
22
41
  /**
23
42
  * Banned words guardrail
@@ -32,6 +51,14 @@ export type BanWordsGuardrail = {
32
51
  * Also apply this guardrail to model output, not just the request
33
52
  */
34
53
  checkOutput?: boolean | undefined;
54
+ /**
55
+ * When this rule checks model output: final (default) checks the finished text once, after it has streamed; streaming holds streamed text in a window and releases only text this rule has cleared
56
+ */
57
+ outputTiming?: OutputTiming | undefined;
58
+ /**
59
+ * When a streaming output check runs: whichever of max_chars and max_ms fills first
60
+ */
61
+ outputWindow?: OutputWindow | undefined;
35
62
  /**
36
63
  * Request sources this guardrail checks before they reach the model. Omit to use the mode's default: every source for classifier; every source except system for ban_words, since instructions often name the terms they forbid; only what the user sends for prompt_injection and leakage, whose keyword patterns match ordinary instructions, replies and documents. An empty list checks no input, so the rule only checks output when check_output is set. Rules saved before this field existed were set to user messages only.
37
64
  */
@@ -42,6 +69,13 @@ export type BanWordsGuardrail = {
42
69
  config?: BanWordsConfig | undefined;
43
70
  };
44
71
 
72
+ /** @internal */
73
+ export const OutputTiming$inboundSchema: z.ZodNativeEnum<typeof OutputTiming> =
74
+ z.nativeEnum(OutputTiming);
75
+ /** @internal */
76
+ export const OutputTiming$outboundSchema: z.ZodNativeEnum<typeof OutputTiming> =
77
+ OutputTiming$inboundSchema;
78
+
45
79
  /** @internal */
46
80
  export const BanWordsGuardrail$inboundSchema: z.ZodType<
47
81
  BanWordsGuardrail,
@@ -51,11 +85,15 @@ export const BanWordsGuardrail$inboundSchema: z.ZodType<
51
85
  mode: z.literal("ban_words"),
52
86
  enabled: z.boolean().default(true),
53
87
  check_output: z.boolean().optional(),
88
+ output_timing: OutputTiming$inboundSchema.optional(),
89
+ output_window: OutputWindow$inboundSchema.optional(),
54
90
  input_sources: z.array(GuardrailInputSource$inboundSchema).optional(),
55
91
  config: BanWordsConfig$inboundSchema.optional(),
56
92
  }).transform((v) => {
57
93
  return remap$(v, {
58
94
  "check_output": "checkOutput",
95
+ "output_timing": "outputTiming",
96
+ "output_window": "outputWindow",
59
97
  "input_sources": "inputSources",
60
98
  });
61
99
  });
@@ -64,6 +102,8 @@ export type BanWordsGuardrail$Outbound = {
64
102
  mode: "ban_words";
65
103
  enabled: boolean;
66
104
  check_output?: boolean | undefined;
105
+ output_timing?: string | undefined;
106
+ output_window?: OutputWindow$Outbound | undefined;
67
107
  input_sources?: Array<string> | undefined;
68
108
  config?: BanWordsConfig$Outbound | undefined;
69
109
  };
@@ -77,11 +117,15 @@ export const BanWordsGuardrail$outboundSchema: z.ZodType<
77
117
  mode: z.literal("ban_words"),
78
118
  enabled: z.boolean().default(true),
79
119
  checkOutput: z.boolean().optional(),
120
+ outputTiming: OutputTiming$outboundSchema.optional(),
121
+ outputWindow: OutputWindow$outboundSchema.optional(),
80
122
  inputSources: z.array(GuardrailInputSource$outboundSchema).optional(),
81
123
  config: BanWordsConfig$outboundSchema.optional(),
82
124
  }).transform((v) => {
83
125
  return remap$(v, {
84
126
  checkOutput: "check_output",
127
+ outputTiming: "output_timing",
128
+ outputWindow: "output_window",
85
129
  inputSources: "input_sources",
86
130
  });
87
131
  });