@meetkai/mka1 0.55.24 → 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 (375) hide show
  1. package/README.md +410 -410
  2. package/bin/mcp-server.js +2325 -1980
  3. package/bin/mcp-server.js.map +36 -33
  4. package/dist/commonjs/funcs/agentRunsCancelAgentRun.d.ts +1 -1
  5. package/dist/commonjs/funcs/agentRunsCancelAgentRun.js +1 -1
  6. package/dist/commonjs/funcs/agentRunsCreateAgentRun.d.ts +1 -1
  7. package/dist/commonjs/funcs/agentRunsCreateAgentRun.js +2 -2
  8. package/dist/commonjs/funcs/agentRunsCreateAgentRun.js.map +1 -1
  9. package/dist/commonjs/funcs/billingCreateOrganizationBillingPortal.d.ts +2 -0
  10. package/dist/commonjs/funcs/billingCreateOrganizationBillingPortal.d.ts.map +1 -1
  11. package/dist/commonjs/funcs/billingCreateOrganizationBillingPortal.js +2 -0
  12. package/dist/commonjs/funcs/billingCreateOrganizationBillingPortal.js.map +1 -1
  13. package/dist/commonjs/funcs/billingCreateOrganizationBillingSetup.d.ts +2 -0
  14. package/dist/commonjs/funcs/billingCreateOrganizationBillingSetup.d.ts.map +1 -1
  15. package/dist/commonjs/funcs/billingCreateOrganizationBillingSetup.js +2 -0
  16. package/dist/commonjs/funcs/billingCreateOrganizationBillingSetup.js.map +1 -1
  17. package/dist/commonjs/funcs/billingGetOrganizationBilling.d.ts +2 -0
  18. package/dist/commonjs/funcs/billingGetOrganizationBilling.d.ts.map +1 -1
  19. package/dist/commonjs/funcs/billingGetOrganizationBilling.js +2 -0
  20. package/dist/commonjs/funcs/billingGetOrganizationBilling.js.map +1 -1
  21. package/dist/commonjs/funcs/billingListOrganizationBillingInvoices.d.ts +2 -0
  22. package/dist/commonjs/funcs/billingListOrganizationBillingInvoices.d.ts.map +1 -1
  23. package/dist/commonjs/funcs/billingListOrganizationBillingInvoices.js +2 -0
  24. package/dist/commonjs/funcs/billingListOrganizationBillingInvoices.js.map +1 -1
  25. package/dist/commonjs/funcs/billingSetOrganizationBillingEnabled.d.ts +2 -0
  26. package/dist/commonjs/funcs/billingSetOrganizationBillingEnabled.d.ts.map +1 -1
  27. package/dist/commonjs/funcs/billingSetOrganizationBillingEnabled.js +2 -0
  28. package/dist/commonjs/funcs/billingSetOrganizationBillingEnabled.js.map +1 -1
  29. package/dist/commonjs/funcs/billingUpdateOrganizationBillingProfile.d.ts +2 -0
  30. package/dist/commonjs/funcs/billingUpdateOrganizationBillingProfile.d.ts.map +1 -1
  31. package/dist/commonjs/funcs/billingUpdateOrganizationBillingProfile.js +2 -0
  32. package/dist/commonjs/funcs/billingUpdateOrganizationBillingProfile.js.map +1 -1
  33. package/dist/commonjs/funcs/llmAuditGetRequestTrace.d.ts +19 -0
  34. package/dist/commonjs/funcs/llmAuditGetRequestTrace.d.ts.map +1 -0
  35. package/dist/commonjs/funcs/llmAuditGetRequestTrace.js +132 -0
  36. package/dist/commonjs/funcs/llmAuditGetRequestTrace.js.map +1 -0
  37. package/dist/commonjs/lib/config.d.ts +2 -2
  38. package/dist/commonjs/lib/config.js +2 -2
  39. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  40. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  41. package/dist/commonjs/mcp-server/server.js +3 -1
  42. package/dist/commonjs/mcp-server/server.js.map +1 -1
  43. package/dist/commonjs/mcp-server/tools/agentRunsCancelAgentRun.js +1 -1
  44. package/dist/commonjs/mcp-server/tools/agentRunsCancelAgentRun.js.map +1 -1
  45. package/dist/commonjs/mcp-server/tools/agentRunsCreateAgentRun.js +1 -1
  46. package/dist/commonjs/mcp-server/tools/agentRunsCreateAgentRun.js.map +1 -1
  47. package/dist/commonjs/mcp-server/tools/billingCreateOrganizationBillingPortal.d.ts.map +1 -1
  48. package/dist/commonjs/mcp-server/tools/billingCreateOrganizationBillingPortal.js +1 -1
  49. package/dist/commonjs/mcp-server/tools/billingCreateOrganizationBillingPortal.js.map +1 -1
  50. package/dist/commonjs/mcp-server/tools/billingCreateOrganizationBillingSetup.d.ts.map +1 -1
  51. package/dist/commonjs/mcp-server/tools/billingCreateOrganizationBillingSetup.js +1 -1
  52. package/dist/commonjs/mcp-server/tools/billingCreateOrganizationBillingSetup.js.map +1 -1
  53. package/dist/commonjs/mcp-server/tools/billingGetOrganizationBilling.d.ts.map +1 -1
  54. package/dist/commonjs/mcp-server/tools/billingGetOrganizationBilling.js +1 -1
  55. package/dist/commonjs/mcp-server/tools/billingGetOrganizationBilling.js.map +1 -1
  56. package/dist/commonjs/mcp-server/tools/billingListOrganizationBillingInvoices.d.ts.map +1 -1
  57. package/dist/commonjs/mcp-server/tools/billingListOrganizationBillingInvoices.js +1 -1
  58. package/dist/commonjs/mcp-server/tools/billingListOrganizationBillingInvoices.js.map +1 -1
  59. package/dist/commonjs/mcp-server/tools/billingSetOrganizationBillingEnabled.d.ts.map +1 -1
  60. package/dist/commonjs/mcp-server/tools/billingSetOrganizationBillingEnabled.js +1 -1
  61. package/dist/commonjs/mcp-server/tools/billingSetOrganizationBillingEnabled.js.map +1 -1
  62. package/dist/commonjs/mcp-server/tools/billingUpdateOrganizationBillingProfile.d.ts.map +1 -1
  63. package/dist/commonjs/mcp-server/tools/billingUpdateOrganizationBillingProfile.js +1 -1
  64. package/dist/commonjs/mcp-server/tools/billingUpdateOrganizationBillingProfile.js.map +1 -1
  65. package/dist/commonjs/mcp-server/tools/llmAuditGetRequestTrace.d.ts +8 -0
  66. package/dist/commonjs/mcp-server/tools/llmAuditGetRequestTrace.d.ts.map +1 -0
  67. package/dist/commonjs/mcp-server/tools/llmAuditGetRequestTrace.js +64 -0
  68. package/dist/commonjs/mcp-server/tools/llmAuditGetRequestTrace.js.map +1 -0
  69. package/dist/commonjs/models/components/agent.d.ts +13 -0
  70. package/dist/commonjs/models/components/agent.d.ts.map +1 -1
  71. package/dist/commonjs/models/components/agent.js +17 -1
  72. package/dist/commonjs/models/components/agent.js.map +1 -1
  73. package/dist/commonjs/models/components/agentrun.d.ts +4 -3
  74. package/dist/commonjs/models/components/agentrun.d.ts.map +1 -1
  75. package/dist/commonjs/models/components/agentrun.js +2 -1
  76. package/dist/commonjs/models/components/agentrun.js.map +1 -1
  77. package/dist/commonjs/models/components/createagentrequest.d.ts +26 -0
  78. package/dist/commonjs/models/components/createagentrequest.d.ts.map +1 -1
  79. package/dist/commonjs/models/components/createagentrequest.js +22 -1
  80. package/dist/commonjs/models/components/createagentrequest.js.map +1 -1
  81. package/dist/commonjs/models/components/createvectorstorerequest.d.ts +1 -1
  82. package/dist/commonjs/models/components/embeddingmodellimits.d.ts +5 -5
  83. package/dist/commonjs/models/components/embeddingmodellimits.d.ts.map +1 -1
  84. package/dist/commonjs/models/components/embeddingmodellimits.js +6 -6
  85. package/dist/commonjs/models/components/embeddingmodellimits.js.map +1 -1
  86. package/dist/commonjs/models/components/embeddingsrequest.d.ts +1 -1
  87. package/dist/commonjs/models/components/updateagentrequest.d.ts +26 -0
  88. package/dist/commonjs/models/components/updateagentrequest.d.ts.map +1 -1
  89. package/dist/commonjs/models/components/updateagentrequest.js +22 -1
  90. package/dist/commonjs/models/components/updateagentrequest.js.map +1 -1
  91. package/dist/commonjs/models/components/vectorstore.d.ts +1 -1
  92. package/dist/commonjs/models/operations/getmodel.d.ts +2 -2
  93. package/dist/commonjs/models/operations/getrequesttrace.d.ts +203 -0
  94. package/dist/commonjs/models/operations/getrequesttrace.d.ts.map +1 -0
  95. package/dist/commonjs/models/operations/getrequesttrace.js +277 -0
  96. package/dist/commonjs/models/operations/getrequesttrace.js.map +1 -0
  97. package/dist/commonjs/models/operations/index.d.ts +1 -0
  98. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  99. package/dist/commonjs/models/operations/index.js +1 -0
  100. package/dist/commonjs/models/operations/index.js.map +1 -1
  101. package/dist/commonjs/models/operations/listmodels.d.ts +2 -2
  102. package/dist/commonjs/react-query/agentRunsCancelAgentRun.d.ts +1 -1
  103. package/dist/commonjs/react-query/agentRunsCancelAgentRun.js +1 -1
  104. package/dist/commonjs/react-query/agentRunsCreateAgentRun.d.ts +1 -1
  105. package/dist/commonjs/react-query/agentRunsCreateAgentRun.js +1 -1
  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/agentruns.d.ts +2 -2
  143. package/dist/commonjs/sdk/agentruns.js +2 -2
  144. package/dist/commonjs/sdk/audit.d.ts +5 -3
  145. package/dist/commonjs/sdk/audit.d.ts.map +1 -1
  146. package/dist/commonjs/sdk/audit.js +7 -4
  147. package/dist/commonjs/sdk/audit.js.map +1 -1
  148. package/dist/commonjs/sdk/billing.d.ts +18 -0
  149. package/dist/commonjs/sdk/billing.d.ts.map +1 -1
  150. package/dist/commonjs/sdk/billing.js +18 -0
  151. package/dist/commonjs/sdk/billing.js.map +1 -1
  152. package/dist/commonjs/sdk/flags.d.ts +2 -2
  153. package/dist/commonjs/sdk/flags.d.ts.map +1 -1
  154. package/dist/commonjs/sdk/flags.js +2 -2
  155. package/dist/commonjs/sdk/flags.js.map +1 -1
  156. package/dist/commonjs/sdk/llm.d.ts +3 -0
  157. package/dist/commonjs/sdk/llm.d.ts.map +1 -1
  158. package/dist/commonjs/sdk/llm.js +4 -0
  159. package/dist/commonjs/sdk/llm.js.map +1 -1
  160. package/dist/commonjs/sdk/sdkaudit.d.ts +10 -0
  161. package/dist/commonjs/sdk/sdkaudit.d.ts.map +1 -0
  162. package/dist/commonjs/sdk/sdkaudit.js +19 -0
  163. package/dist/commonjs/sdk/sdkaudit.js.map +1 -0
  164. package/dist/esm/funcs/agentRunsCancelAgentRun.d.ts +1 -1
  165. package/dist/esm/funcs/agentRunsCancelAgentRun.js +1 -1
  166. package/dist/esm/funcs/agentRunsCreateAgentRun.d.ts +1 -1
  167. package/dist/esm/funcs/agentRunsCreateAgentRun.js +2 -2
  168. package/dist/esm/funcs/agentRunsCreateAgentRun.js.map +1 -1
  169. package/dist/esm/funcs/billingCreateOrganizationBillingPortal.d.ts +2 -0
  170. package/dist/esm/funcs/billingCreateOrganizationBillingPortal.d.ts.map +1 -1
  171. package/dist/esm/funcs/billingCreateOrganizationBillingPortal.js +2 -0
  172. package/dist/esm/funcs/billingCreateOrganizationBillingPortal.js.map +1 -1
  173. package/dist/esm/funcs/billingCreateOrganizationBillingSetup.d.ts +2 -0
  174. package/dist/esm/funcs/billingCreateOrganizationBillingSetup.d.ts.map +1 -1
  175. package/dist/esm/funcs/billingCreateOrganizationBillingSetup.js +2 -0
  176. package/dist/esm/funcs/billingCreateOrganizationBillingSetup.js.map +1 -1
  177. package/dist/esm/funcs/billingGetOrganizationBilling.d.ts +2 -0
  178. package/dist/esm/funcs/billingGetOrganizationBilling.d.ts.map +1 -1
  179. package/dist/esm/funcs/billingGetOrganizationBilling.js +2 -0
  180. package/dist/esm/funcs/billingGetOrganizationBilling.js.map +1 -1
  181. package/dist/esm/funcs/billingListOrganizationBillingInvoices.d.ts +2 -0
  182. package/dist/esm/funcs/billingListOrganizationBillingInvoices.d.ts.map +1 -1
  183. package/dist/esm/funcs/billingListOrganizationBillingInvoices.js +2 -0
  184. package/dist/esm/funcs/billingListOrganizationBillingInvoices.js.map +1 -1
  185. package/dist/esm/funcs/billingSetOrganizationBillingEnabled.d.ts +2 -0
  186. package/dist/esm/funcs/billingSetOrganizationBillingEnabled.d.ts.map +1 -1
  187. package/dist/esm/funcs/billingSetOrganizationBillingEnabled.js +2 -0
  188. package/dist/esm/funcs/billingSetOrganizationBillingEnabled.js.map +1 -1
  189. package/dist/esm/funcs/billingUpdateOrganizationBillingProfile.d.ts +2 -0
  190. package/dist/esm/funcs/billingUpdateOrganizationBillingProfile.d.ts.map +1 -1
  191. package/dist/esm/funcs/billingUpdateOrganizationBillingProfile.js +2 -0
  192. package/dist/esm/funcs/billingUpdateOrganizationBillingProfile.js.map +1 -1
  193. package/dist/esm/funcs/llmAuditGetRequestTrace.d.ts +19 -0
  194. package/dist/esm/funcs/llmAuditGetRequestTrace.d.ts.map +1 -0
  195. package/dist/esm/funcs/llmAuditGetRequestTrace.js +96 -0
  196. package/dist/esm/funcs/llmAuditGetRequestTrace.js.map +1 -0
  197. package/dist/esm/lib/config.d.ts +2 -2
  198. package/dist/esm/lib/config.js +2 -2
  199. package/dist/esm/mcp-server/mcp-server.js +1 -1
  200. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  201. package/dist/esm/mcp-server/server.js +3 -1
  202. package/dist/esm/mcp-server/server.js.map +1 -1
  203. package/dist/esm/mcp-server/tools/agentRunsCancelAgentRun.js +1 -1
  204. package/dist/esm/mcp-server/tools/agentRunsCancelAgentRun.js.map +1 -1
  205. package/dist/esm/mcp-server/tools/agentRunsCreateAgentRun.js +1 -1
  206. package/dist/esm/mcp-server/tools/agentRunsCreateAgentRun.js.map +1 -1
  207. package/dist/esm/mcp-server/tools/billingCreateOrganizationBillingPortal.d.ts.map +1 -1
  208. package/dist/esm/mcp-server/tools/billingCreateOrganizationBillingPortal.js +1 -1
  209. package/dist/esm/mcp-server/tools/billingCreateOrganizationBillingPortal.js.map +1 -1
  210. package/dist/esm/mcp-server/tools/billingCreateOrganizationBillingSetup.d.ts.map +1 -1
  211. package/dist/esm/mcp-server/tools/billingCreateOrganizationBillingSetup.js +1 -1
  212. package/dist/esm/mcp-server/tools/billingCreateOrganizationBillingSetup.js.map +1 -1
  213. package/dist/esm/mcp-server/tools/billingGetOrganizationBilling.d.ts.map +1 -1
  214. package/dist/esm/mcp-server/tools/billingGetOrganizationBilling.js +1 -1
  215. package/dist/esm/mcp-server/tools/billingGetOrganizationBilling.js.map +1 -1
  216. package/dist/esm/mcp-server/tools/billingListOrganizationBillingInvoices.d.ts.map +1 -1
  217. package/dist/esm/mcp-server/tools/billingListOrganizationBillingInvoices.js +1 -1
  218. package/dist/esm/mcp-server/tools/billingListOrganizationBillingInvoices.js.map +1 -1
  219. package/dist/esm/mcp-server/tools/billingSetOrganizationBillingEnabled.d.ts.map +1 -1
  220. package/dist/esm/mcp-server/tools/billingSetOrganizationBillingEnabled.js +1 -1
  221. package/dist/esm/mcp-server/tools/billingSetOrganizationBillingEnabled.js.map +1 -1
  222. package/dist/esm/mcp-server/tools/billingUpdateOrganizationBillingProfile.d.ts.map +1 -1
  223. package/dist/esm/mcp-server/tools/billingUpdateOrganizationBillingProfile.js +1 -1
  224. package/dist/esm/mcp-server/tools/billingUpdateOrganizationBillingProfile.js.map +1 -1
  225. package/dist/esm/mcp-server/tools/llmAuditGetRequestTrace.d.ts +8 -0
  226. package/dist/esm/mcp-server/tools/llmAuditGetRequestTrace.d.ts.map +1 -0
  227. package/dist/esm/mcp-server/tools/llmAuditGetRequestTrace.js +28 -0
  228. package/dist/esm/mcp-server/tools/llmAuditGetRequestTrace.js.map +1 -0
  229. package/dist/esm/models/components/agent.d.ts +13 -0
  230. package/dist/esm/models/components/agent.d.ts.map +1 -1
  231. package/dist/esm/models/components/agent.js +16 -0
  232. package/dist/esm/models/components/agent.js.map +1 -1
  233. package/dist/esm/models/components/agentrun.d.ts +4 -3
  234. package/dist/esm/models/components/agentrun.d.ts.map +1 -1
  235. package/dist/esm/models/components/agentrun.js +2 -1
  236. package/dist/esm/models/components/agentrun.js.map +1 -1
  237. package/dist/esm/models/components/createagentrequest.d.ts +26 -0
  238. package/dist/esm/models/components/createagentrequest.d.ts.map +1 -1
  239. package/dist/esm/models/components/createagentrequest.js +21 -0
  240. package/dist/esm/models/components/createagentrequest.js.map +1 -1
  241. package/dist/esm/models/components/createvectorstorerequest.d.ts +1 -1
  242. package/dist/esm/models/components/embeddingmodellimits.d.ts +5 -5
  243. package/dist/esm/models/components/embeddingmodellimits.d.ts.map +1 -1
  244. package/dist/esm/models/components/embeddingmodellimits.js +6 -6
  245. package/dist/esm/models/components/embeddingmodellimits.js.map +1 -1
  246. package/dist/esm/models/components/embeddingsrequest.d.ts +1 -1
  247. package/dist/esm/models/components/updateagentrequest.d.ts +26 -0
  248. package/dist/esm/models/components/updateagentrequest.d.ts.map +1 -1
  249. package/dist/esm/models/components/updateagentrequest.js +21 -0
  250. package/dist/esm/models/components/updateagentrequest.js.map +1 -1
  251. package/dist/esm/models/components/vectorstore.d.ts +1 -1
  252. package/dist/esm/models/operations/getmodel.d.ts +2 -2
  253. package/dist/esm/models/operations/getrequesttrace.d.ts +203 -0
  254. package/dist/esm/models/operations/getrequesttrace.d.ts.map +1 -0
  255. package/dist/esm/models/operations/getrequesttrace.js +231 -0
  256. package/dist/esm/models/operations/getrequesttrace.js.map +1 -0
  257. package/dist/esm/models/operations/index.d.ts +1 -0
  258. package/dist/esm/models/operations/index.d.ts.map +1 -1
  259. package/dist/esm/models/operations/index.js +1 -0
  260. package/dist/esm/models/operations/index.js.map +1 -1
  261. package/dist/esm/models/operations/listmodels.d.ts +2 -2
  262. package/dist/esm/react-query/agentRunsCancelAgentRun.d.ts +1 -1
  263. package/dist/esm/react-query/agentRunsCancelAgentRun.js +1 -1
  264. package/dist/esm/react-query/agentRunsCreateAgentRun.d.ts +1 -1
  265. package/dist/esm/react-query/agentRunsCreateAgentRun.js +1 -1
  266. package/dist/esm/react-query/billingCreateOrganizationBillingPortal.d.ts +3 -0
  267. package/dist/esm/react-query/billingCreateOrganizationBillingPortal.d.ts.map +1 -1
  268. package/dist/esm/react-query/billingCreateOrganizationBillingPortal.js +3 -0
  269. package/dist/esm/react-query/billingCreateOrganizationBillingPortal.js.map +1 -1
  270. package/dist/esm/react-query/billingCreateOrganizationBillingSetup.d.ts +3 -0
  271. package/dist/esm/react-query/billingCreateOrganizationBillingSetup.d.ts.map +1 -1
  272. package/dist/esm/react-query/billingCreateOrganizationBillingSetup.js +3 -0
  273. package/dist/esm/react-query/billingCreateOrganizationBillingSetup.js.map +1 -1
  274. package/dist/esm/react-query/billingGetOrganizationBilling.d.ts +6 -0
  275. package/dist/esm/react-query/billingGetOrganizationBilling.d.ts.map +1 -1
  276. package/dist/esm/react-query/billingGetOrganizationBilling.js +6 -0
  277. package/dist/esm/react-query/billingGetOrganizationBilling.js.map +1 -1
  278. package/dist/esm/react-query/billingListOrganizationBillingInvoices.d.ts +6 -0
  279. package/dist/esm/react-query/billingListOrganizationBillingInvoices.d.ts.map +1 -1
  280. package/dist/esm/react-query/billingListOrganizationBillingInvoices.js +6 -0
  281. package/dist/esm/react-query/billingListOrganizationBillingInvoices.js.map +1 -1
  282. package/dist/esm/react-query/billingSetOrganizationBillingEnabled.d.ts +3 -0
  283. package/dist/esm/react-query/billingSetOrganizationBillingEnabled.d.ts.map +1 -1
  284. package/dist/esm/react-query/billingSetOrganizationBillingEnabled.js +3 -0
  285. package/dist/esm/react-query/billingSetOrganizationBillingEnabled.js.map +1 -1
  286. package/dist/esm/react-query/billingUpdateOrganizationBillingProfile.d.ts +3 -0
  287. package/dist/esm/react-query/billingUpdateOrganizationBillingProfile.d.ts.map +1 -1
  288. package/dist/esm/react-query/billingUpdateOrganizationBillingProfile.js +3 -0
  289. package/dist/esm/react-query/billingUpdateOrganizationBillingProfile.js.map +1 -1
  290. package/dist/esm/react-query/index.d.ts +1 -0
  291. package/dist/esm/react-query/index.d.ts.map +1 -1
  292. package/dist/esm/react-query/index.js +1 -0
  293. package/dist/esm/react-query/index.js.map +1 -1
  294. package/dist/esm/react-query/llmAuditGetRequestTrace.core.d.ts +12 -0
  295. package/dist/esm/react-query/llmAuditGetRequestTrace.core.d.ts.map +1 -0
  296. package/dist/esm/react-query/llmAuditGetRequestTrace.core.js +29 -0
  297. package/dist/esm/react-query/llmAuditGetRequestTrace.core.js.map +1 -0
  298. package/dist/esm/react-query/llmAuditGetRequestTrace.d.ts +28 -0
  299. package/dist/esm/react-query/llmAuditGetRequestTrace.d.ts.map +1 -0
  300. package/dist/esm/react-query/llmAuditGetRequestTrace.js +50 -0
  301. package/dist/esm/react-query/llmAuditGetRequestTrace.js.map +1 -0
  302. package/dist/esm/sdk/agentruns.d.ts +2 -2
  303. package/dist/esm/sdk/agentruns.js +2 -2
  304. package/dist/esm/sdk/audit.d.ts +5 -3
  305. package/dist/esm/sdk/audit.d.ts.map +1 -1
  306. package/dist/esm/sdk/audit.js +7 -4
  307. package/dist/esm/sdk/audit.js.map +1 -1
  308. package/dist/esm/sdk/billing.d.ts +18 -0
  309. package/dist/esm/sdk/billing.d.ts.map +1 -1
  310. package/dist/esm/sdk/billing.js +18 -0
  311. package/dist/esm/sdk/billing.js.map +1 -1
  312. package/dist/esm/sdk/flags.d.ts +2 -2
  313. package/dist/esm/sdk/flags.d.ts.map +1 -1
  314. package/dist/esm/sdk/flags.js +2 -2
  315. package/dist/esm/sdk/flags.js.map +1 -1
  316. package/dist/esm/sdk/llm.d.ts +3 -0
  317. package/dist/esm/sdk/llm.d.ts.map +1 -1
  318. package/dist/esm/sdk/llm.js +4 -0
  319. package/dist/esm/sdk/llm.js.map +1 -1
  320. package/dist/esm/sdk/sdkaudit.d.ts +10 -0
  321. package/dist/esm/sdk/sdkaudit.d.ts.map +1 -0
  322. package/dist/esm/sdk/sdkaudit.js +15 -0
  323. package/dist/esm/sdk/sdkaudit.js.map +1 -0
  324. package/jsr.json +1 -1
  325. package/package.json +1 -1
  326. package/src/funcs/agentRunsCancelAgentRun.ts +1 -1
  327. package/src/funcs/agentRunsCreateAgentRun.ts +4 -4
  328. package/src/funcs/billingCreateOrganizationBillingPortal.ts +2 -0
  329. package/src/funcs/billingCreateOrganizationBillingSetup.ts +2 -0
  330. package/src/funcs/billingGetOrganizationBilling.ts +2 -0
  331. package/src/funcs/billingListOrganizationBillingInvoices.ts +2 -0
  332. package/src/funcs/billingSetOrganizationBillingEnabled.ts +2 -0
  333. package/src/funcs/billingUpdateOrganizationBillingProfile.ts +2 -0
  334. package/src/funcs/llmAuditGetRequestTrace.ts +181 -0
  335. package/src/lib/config.ts +2 -2
  336. package/src/mcp-server/mcp-server.ts +1 -1
  337. package/src/mcp-server/server.ts +3 -1
  338. package/src/mcp-server/tools/agentRunsCancelAgentRun.ts +1 -1
  339. package/src/mcp-server/tools/agentRunsCreateAgentRun.ts +1 -1
  340. package/src/mcp-server/tools/billingCreateOrganizationBillingPortal.ts +2 -1
  341. package/src/mcp-server/tools/billingCreateOrganizationBillingSetup.ts +2 -1
  342. package/src/mcp-server/tools/billingGetOrganizationBilling.ts +2 -1
  343. package/src/mcp-server/tools/billingListOrganizationBillingInvoices.ts +2 -1
  344. package/src/mcp-server/tools/billingSetOrganizationBillingEnabled.ts +2 -1
  345. package/src/mcp-server/tools/billingUpdateOrganizationBillingProfile.ts +2 -1
  346. package/src/mcp-server/tools/llmAuditGetRequestTrace.ts +37 -0
  347. package/src/models/components/agent.ts +27 -0
  348. package/src/models/components/agentrun.ts +4 -3
  349. package/src/models/components/createagentrequest.ts +45 -0
  350. package/src/models/components/createvectorstorerequest.ts +1 -1
  351. package/src/models/components/embeddingmodellimits.ts +11 -11
  352. package/src/models/components/embeddingsrequest.ts +1 -1
  353. package/src/models/components/updateagentrequest.ts +45 -0
  354. package/src/models/components/vectorstore.ts +1 -1
  355. package/src/models/operations/getmodel.ts +2 -2
  356. package/src/models/operations/getrequesttrace.ts +501 -0
  357. package/src/models/operations/index.ts +1 -0
  358. package/src/models/operations/listmodels.ts +2 -2
  359. package/src/react-query/agentRunsCancelAgentRun.ts +1 -1
  360. package/src/react-query/agentRunsCreateAgentRun.ts +1 -1
  361. package/src/react-query/billingCreateOrganizationBillingPortal.ts +3 -0
  362. package/src/react-query/billingCreateOrganizationBillingSetup.ts +3 -0
  363. package/src/react-query/billingGetOrganizationBilling.ts +6 -0
  364. package/src/react-query/billingListOrganizationBillingInvoices.ts +6 -0
  365. package/src/react-query/billingSetOrganizationBillingEnabled.ts +3 -0
  366. package/src/react-query/billingUpdateOrganizationBillingProfile.ts +3 -0
  367. package/src/react-query/index.ts +1 -0
  368. package/src/react-query/llmAuditGetRequestTrace.core.ts +71 -0
  369. package/src/react-query/llmAuditGetRequestTrace.ts +136 -0
  370. package/src/sdk/agentruns.ts +2 -2
  371. package/src/sdk/audit.ts +9 -7
  372. package/src/sdk/billing.ts +18 -0
  373. package/src/sdk/flags.ts +4 -4
  374. package/src/sdk/llm.ts +6 -0
  375. package/src/sdk/sdkaudit.ts +25 -0
@@ -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
+ };
@@ -32,6 +32,12 @@ export const AgentObject = {
32
32
  } as const;
33
33
  export type AgentObject = ClosedEnum<typeof AgentObject>;
34
34
 
35
+ export const ConcurrencyOverflow = {
36
+ Reject: "reject",
37
+ Queue: "queue",
38
+ } as const;
39
+ export type ConcurrencyOverflow = ClosedEnum<typeof ConcurrencyOverflow>;
40
+
35
41
  export type Agent = {
36
42
  object: AgentObject;
37
43
  id: string;
@@ -47,6 +53,8 @@ export type Agent = {
47
53
  parallelToolCalls: boolean;
48
54
  maxToolCalls: number | null;
49
55
  fallbackModels: Array<string>;
56
+ maxConcurrentRuns: number | null;
57
+ concurrencyOverflow: ConcurrencyOverflow;
50
58
  text: AgentTextConfiguration | null;
51
59
  reasoning: AgentReasoningConfiguration | null;
52
60
  metadata: { [k: string]: string };
@@ -75,6 +83,15 @@ export const AgentObject$inboundSchema: z.ZodNativeEnum<typeof AgentObject> = z
75
83
  export const AgentObject$outboundSchema: z.ZodNativeEnum<typeof AgentObject> =
76
84
  AgentObject$inboundSchema;
77
85
 
86
+ /** @internal */
87
+ export const ConcurrencyOverflow$inboundSchema: z.ZodNativeEnum<
88
+ typeof ConcurrencyOverflow
89
+ > = z.nativeEnum(ConcurrencyOverflow);
90
+ /** @internal */
91
+ export const ConcurrencyOverflow$outboundSchema: z.ZodNativeEnum<
92
+ typeof ConcurrencyOverflow
93
+ > = ConcurrencyOverflow$inboundSchema;
94
+
78
95
  /** @internal */
79
96
  export const Agent$inboundSchema: z.ZodType<Agent, z.ZodTypeDef, unknown> = z
80
97
  .object({
@@ -89,6 +106,8 @@ export const Agent$inboundSchema: z.ZodType<Agent, z.ZodTypeDef, unknown> = z
89
106
  parallel_tool_calls: z.boolean(),
90
107
  max_tool_calls: z.nullable(z.number().int()),
91
108
  fallback_models: z.array(z.string()),
109
+ max_concurrent_runs: z.nullable(z.number().int()),
110
+ concurrency_overflow: ConcurrencyOverflow$inboundSchema,
92
111
  text: z.nullable(AgentTextConfiguration$inboundSchema),
93
112
  reasoning: z.nullable(AgentReasoningConfiguration$inboundSchema),
94
113
  metadata: z.record(z.string()),
@@ -113,6 +132,8 @@ export const Agent$inboundSchema: z.ZodType<Agent, z.ZodTypeDef, unknown> = z
113
132
  "parallel_tool_calls": "parallelToolCalls",
114
133
  "max_tool_calls": "maxToolCalls",
115
134
  "fallback_models": "fallbackModels",
135
+ "max_concurrent_runs": "maxConcurrentRuns",
136
+ "concurrency_overflow": "concurrencyOverflow",
116
137
  "created_at": "createdAt",
117
138
  "updated_at": "updatedAt",
118
139
  "deleted_at": "deletedAt",
@@ -134,6 +155,8 @@ export type Agent$Outbound = {
134
155
  parallel_tool_calls: boolean;
135
156
  max_tool_calls: number | null;
136
157
  fallback_models: Array<string>;
158
+ max_concurrent_runs: number | null;
159
+ concurrency_overflow: string;
137
160
  text: AgentTextConfiguration$Outbound | null;
138
161
  reasoning: AgentReasoningConfiguration$Outbound | null;
139
162
  metadata: { [k: string]: string };
@@ -163,6 +186,8 @@ export const Agent$outboundSchema: z.ZodType<
163
186
  parallelToolCalls: z.boolean(),
164
187
  maxToolCalls: z.nullable(z.number().int()),
165
188
  fallbackModels: z.array(z.string()),
189
+ maxConcurrentRuns: z.nullable(z.number().int()),
190
+ concurrencyOverflow: ConcurrencyOverflow$outboundSchema,
166
191
  text: z.nullable(AgentTextConfiguration$outboundSchema),
167
192
  reasoning: z.nullable(AgentReasoningConfiguration$outboundSchema),
168
193
  metadata: z.record(z.string()),
@@ -179,6 +204,8 @@ export const Agent$outboundSchema: z.ZodType<
179
204
  parallelToolCalls: "parallel_tool_calls",
180
205
  maxToolCalls: "max_tool_calls",
181
206
  fallbackModels: "fallback_models",
207
+ maxConcurrentRuns: "max_concurrent_runs",
208
+ concurrencyOverflow: "concurrency_overflow",
182
209
  createdAt: "created_at",
183
210
  updatedAt: "updated_at",
184
211
  deletedAt: "deleted_at",
@@ -15,9 +15,10 @@ export const AgentRunObject = {
15
15
  export type AgentRunObject = ClosedEnum<typeof AgentRunObject>;
16
16
 
17
17
  /**
18
- * Terminal outcomes stay distinct: cancelled is caller-requested; incomplete means a limit or interruption stopped the run. gateway_response.incomplete_details records the reason, including max_tokens or max_tool_calls. Stored failed rows with one of these gateway outcomes are serialized with the gateway outcome, retaining any connector error and completion timestamp.
18
+ * waiting means the run is held for one of the agent's max_concurrent_runs slots and has not been sent to the model; it can be cancelled. Terminal outcomes stay distinct: cancelled is caller-requested; incomplete means a limit or interruption stopped the run. gateway_response.incomplete_details records the reason, including max_tokens or max_tool_calls. Stored failed rows with one of these gateway outcomes are serialized with the gateway outcome, retaining any connector error and completion timestamp.
19
19
  */
20
20
  export const AgentRunStatus = {
21
+ Waiting: "waiting",
21
22
  Queued: "queued",
22
23
  Submitting: "submitting",
23
24
  Completed: "completed",
@@ -26,7 +27,7 @@ export const AgentRunStatus = {
26
27
  Incomplete: "incomplete",
27
28
  } as const;
28
29
  /**
29
- * Terminal outcomes stay distinct: cancelled is caller-requested; incomplete means a limit or interruption stopped the run. gateway_response.incomplete_details records the reason, including max_tokens or max_tool_calls. Stored failed rows with one of these gateway outcomes are serialized with the gateway outcome, retaining any connector error and completion timestamp.
30
+ * waiting means the run is held for one of the agent's max_concurrent_runs slots and has not been sent to the model; it can be cancelled. Terminal outcomes stay distinct: cancelled is caller-requested; incomplete means a limit or interruption stopped the run. gateway_response.incomplete_details records the reason, including max_tokens or max_tool_calls. Stored failed rows with one of these gateway outcomes are serialized with the gateway outcome, retaining any connector error and completion timestamp.
30
31
  */
31
32
  export type AgentRunStatus = ClosedEnum<typeof AgentRunStatus>;
32
33
 
@@ -39,7 +40,7 @@ export type AgentRun = {
39
40
  */
40
41
  agentVersion: number | null;
41
42
  /**
42
- * Terminal outcomes stay distinct: cancelled is caller-requested; incomplete means a limit or interruption stopped the run. gateway_response.incomplete_details records the reason, including max_tokens or max_tool_calls. Stored failed rows with one of these gateway outcomes are serialized with the gateway outcome, retaining any connector error and completion timestamp.
43
+ * waiting means the run is held for one of the agent's max_concurrent_runs slots and has not been sent to the model; it can be cancelled. Terminal outcomes stay distinct: cancelled is caller-requested; incomplete means a limit or interruption stopped the run. gateway_response.incomplete_details records the reason, including max_tokens or max_tool_calls. Stored failed rows with one of these gateway outcomes are serialized with the gateway outcome, retaining any connector error and completion timestamp.
43
44
  */
44
45
  status: AgentRunStatus;
45
46
  /**
@@ -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 {
@@ -26,6 +27,20 @@ import {
26
27
  ToolDefinition$outboundSchema,
27
28
  } from "./tooldefinition.js";
28
29
 
30
+ /**
31
+ * What a run beyond max_concurrent_runs gets. reject (the default) refuses it with 429 and error code agent_concurrency_limit. queue stores it as waiting and starts it, oldest first, when a run finishes, with the agent configuration current at that time.
32
+ */
33
+ export const CreateAgentRequestConcurrencyOverflow = {
34
+ Reject: "reject",
35
+ Queue: "queue",
36
+ } as const;
37
+ /**
38
+ * What a run beyond max_concurrent_runs gets. reject (the default) refuses it with 429 and error code agent_concurrency_limit. queue stores it as waiting and starts it, oldest first, when a run finishes, with the agent configuration current at that time.
39
+ */
40
+ export type CreateAgentRequestConcurrencyOverflow = ClosedEnum<
41
+ typeof CreateAgentRequestConcurrencyOverflow
42
+ >;
43
+
29
44
  export type CreateAgentRequest = {
30
45
  name: string;
31
46
  description?: string | null | undefined;
@@ -42,11 +57,29 @@ export type CreateAgentRequest = {
42
57
  * Ordered chain of model IDs the gateway tries when a model call fails on the model before it; forwarded unchanged to the Responses API, which validates it. Empty (the default) means the run keeps the gateway's own fallback rules for the model.
43
58
  */
44
59
  fallbackModels?: Array<string> | undefined;
60
+ /**
61
+ * Most runs of this agent that may execute at once. Null (the default) means no limit. Not part of the versioned configuration: a rollback keeps the current limit, and changing only this field or concurrency_overflow creates no new version.
62
+ */
63
+ maxConcurrentRuns?: number | null | undefined;
64
+ /**
65
+ * What a run beyond max_concurrent_runs gets. reject (the default) refuses it with 429 and error code agent_concurrency_limit. queue stores it as waiting and starts it, oldest first, when a run finishes, with the agent configuration current at that time.
66
+ */
67
+ concurrencyOverflow?: CreateAgentRequestConcurrencyOverflow | undefined;
45
68
  text?: AgentTextConfiguration | null | undefined;
46
69
  reasoning?: AgentReasoningConfiguration | null | undefined;
47
70
  metadata?: { [k: string]: string } | undefined;
48
71
  };
49
72
 
73
+ /** @internal */
74
+ export const CreateAgentRequestConcurrencyOverflow$inboundSchema:
75
+ z.ZodNativeEnum<typeof CreateAgentRequestConcurrencyOverflow> = z.nativeEnum(
76
+ CreateAgentRequestConcurrencyOverflow,
77
+ );
78
+ /** @internal */
79
+ export const CreateAgentRequestConcurrencyOverflow$outboundSchema:
80
+ z.ZodNativeEnum<typeof CreateAgentRequestConcurrencyOverflow> =
81
+ CreateAgentRequestConcurrencyOverflow$inboundSchema;
82
+
50
83
  /** @internal */
51
84
  export const CreateAgentRequest$inboundSchema: z.ZodType<
52
85
  CreateAgentRequest,
@@ -62,6 +95,9 @@ export const CreateAgentRequest$inboundSchema: z.ZodType<
62
95
  parallel_tool_calls: z.boolean().default(true),
63
96
  max_tool_calls: z.nullable(z.number().int()).optional(),
64
97
  fallback_models: z.array(z.string()).optional(),
98
+ max_concurrent_runs: z.nullable(z.number().int()).optional(),
99
+ concurrency_overflow: CreateAgentRequestConcurrencyOverflow$inboundSchema
100
+ .optional(),
65
101
  text: z.nullable(AgentTextConfiguration$inboundSchema).optional(),
66
102
  reasoning: z.nullable(AgentReasoningConfiguration$inboundSchema).optional(),
67
103
  metadata: z.record(z.string()).optional(),
@@ -71,6 +107,8 @@ export const CreateAgentRequest$inboundSchema: z.ZodType<
71
107
  "parallel_tool_calls": "parallelToolCalls",
72
108
  "max_tool_calls": "maxToolCalls",
73
109
  "fallback_models": "fallbackModels",
110
+ "max_concurrent_runs": "maxConcurrentRuns",
111
+ "concurrency_overflow": "concurrencyOverflow",
74
112
  });
75
113
  });
76
114
  /** @internal */
@@ -84,6 +122,8 @@ export type CreateAgentRequest$Outbound = {
84
122
  parallel_tool_calls: boolean;
85
123
  max_tool_calls?: number | null | undefined;
86
124
  fallback_models?: Array<string> | undefined;
125
+ max_concurrent_runs?: number | null | undefined;
126
+ concurrency_overflow?: string | undefined;
87
127
  text?: AgentTextConfiguration$Outbound | null | undefined;
88
128
  reasoning?: AgentReasoningConfiguration$Outbound | null | undefined;
89
129
  metadata?: { [k: string]: string } | undefined;
@@ -104,6 +144,9 @@ export const CreateAgentRequest$outboundSchema: z.ZodType<
104
144
  parallelToolCalls: z.boolean().default(true),
105
145
  maxToolCalls: z.nullable(z.number().int()).optional(),
106
146
  fallbackModels: z.array(z.string()).optional(),
147
+ maxConcurrentRuns: z.nullable(z.number().int()).optional(),
148
+ concurrencyOverflow: CreateAgentRequestConcurrencyOverflow$outboundSchema
149
+ .optional(),
107
150
  text: z.nullable(AgentTextConfiguration$outboundSchema).optional(),
108
151
  reasoning: z.nullable(AgentReasoningConfiguration$outboundSchema).optional(),
109
152
  metadata: z.record(z.string()).optional(),
@@ -113,6 +156,8 @@ export const CreateAgentRequest$outboundSchema: z.ZodType<
113
156
  parallelToolCalls: "parallel_tool_calls",
114
157
  maxToolCalls: "max_tool_calls",
115
158
  fallbackModels: "fallback_models",
159
+ maxConcurrentRuns: "max_concurrent_runs",
160
+ concurrencyOverflow: "concurrency_overflow",
116
161
  });
117
162
  });
118
163
 
@@ -87,7 +87,7 @@ export type CreateVectorStoreRequest = {
87
87
  */
88
88
  embeddingModel?: string | undefined;
89
89
  /**
90
- * The number of dimensions for the embedding vectors. Only supported for models with flexible dimensions. If not specified, uses the model's default dimensions.
90
+ * The number of dimensions for the embedding vectors. Must equal the model's size when it is fixed, or lie within its range (`embedding_dimension_range` on `GET /models/{model_id}`). If not specified, uses the model's default dimensions. The store stays searchable only while the model's declared dimensions still include this size and the model returns embeddings of this width.
91
91
  */
92
92
  embeddingDimensions?: number | undefined;
93
93
  /**
@@ -13,15 +13,15 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
13
13
  */
14
14
  export type EmbeddingModelLimits = {
15
15
  /**
16
- * Maximum number of inputs allowed in a single batch request
16
+ * Maximum number of inputs allowed in a single batch request: the model's batch size or the gateway-wide 10,000-input limit, whichever is lower, on `POST /embeddings`. Batch `/v1/embeddings` lines are held only to the model's batch size.
17
17
  */
18
18
  maxBatchSize: number;
19
19
  /**
20
- * Maximum tokens per individual input (derived from contextWindow)
20
+ * Maximum tokens per individual input: the model's context window. Null when the registry records no context window: no token cap applies beyond what `max_input_length` implies. For a window long enough that its estimated character length exceeds the gateway-wide character limit, `max_input_length` binds first. Advisory on `/embeddings`, which accepts only strings and enforces `max_input_length`.
21
21
  */
22
- maxInputTokens: number;
22
+ maxInputTokens: number | null;
23
23
  /**
24
- * Maximum characters per individual input (contextWindow * 2)
24
+ * Maximum characters per individual input: the cap derived from the model's context window or the gateway-wide 100,000-character limit, whichever is lower, on `POST /embeddings`. Batch `/v1/embeddings` lines are held only to the model's cap.
25
25
  */
26
26
  maxInputLength: number;
27
27
  };
@@ -32,9 +32,9 @@ export const EmbeddingModelLimits$inboundSchema: z.ZodType<
32
32
  z.ZodTypeDef,
33
33
  unknown
34
34
  > = z.object({
35
- max_batch_size: z.number(),
36
- max_input_tokens: z.number(),
37
- max_input_length: z.number(),
35
+ max_batch_size: z.number().int(),
36
+ max_input_tokens: z.nullable(z.number().int()),
37
+ max_input_length: z.number().int(),
38
38
  }).transform((v) => {
39
39
  return remap$(v, {
40
40
  "max_batch_size": "maxBatchSize",
@@ -45,7 +45,7 @@ export const EmbeddingModelLimits$inboundSchema: z.ZodType<
45
45
  /** @internal */
46
46
  export type EmbeddingModelLimits$Outbound = {
47
47
  max_batch_size: number;
48
- max_input_tokens: number;
48
+ max_input_tokens: number | null;
49
49
  max_input_length: number;
50
50
  };
51
51
 
@@ -55,9 +55,9 @@ export const EmbeddingModelLimits$outboundSchema: z.ZodType<
55
55
  z.ZodTypeDef,
56
56
  EmbeddingModelLimits
57
57
  > = z.object({
58
- maxBatchSize: z.number(),
59
- maxInputTokens: z.number(),
60
- maxInputLength: z.number(),
58
+ maxBatchSize: z.number().int(),
59
+ maxInputTokens: z.nullable(z.number().int()),
60
+ maxInputLength: z.number().int(),
61
61
  }).transform((v) => {
62
62
  return remap$(v, {
63
63
  maxBatchSize: "max_batch_size",
@@ -39,7 +39,7 @@ export type EmbeddingsRequest = {
39
39
  */
40
40
  model: string;
41
41
  /**
42
- * The number of dimensions the resulting output embeddings should have. Only supported in certain models.
42
+ * The number of dimensions the resulting output embeddings should have. Ignored for a model with a fixed size, which always returns that size. For a model with a range it must lie within the range (`embedding_dimension_range` on `GET /models/{model_id}`), or the request fails with 400.
43
43
  */
44
44
  dimensions?: number | undefined;
45
45
  /**
@@ -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 {
@@ -26,6 +27,20 @@ import {
26
27
  ToolDefinition$outboundSchema,
27
28
  } from "./tooldefinition.js";
28
29
 
30
+ /**
31
+ * What a run beyond max_concurrent_runs gets. reject (the default) refuses it with 429 and error code agent_concurrency_limit. queue stores it as waiting and starts it, oldest first, when a run finishes, with the agent configuration current at that time.
32
+ */
33
+ export const UpdateAgentRequestConcurrencyOverflow = {
34
+ Reject: "reject",
35
+ Queue: "queue",
36
+ } as const;
37
+ /**
38
+ * What a run beyond max_concurrent_runs gets. reject (the default) refuses it with 429 and error code agent_concurrency_limit. queue stores it as waiting and starts it, oldest first, when a run finishes, with the agent configuration current at that time.
39
+ */
40
+ export type UpdateAgentRequestConcurrencyOverflow = ClosedEnum<
41
+ typeof UpdateAgentRequestConcurrencyOverflow
42
+ >;
43
+
29
44
  /**
30
45
  * Updates only provided fields. Omitted fields preserve their saved values; empty updates are rejected.
31
46
  */
@@ -45,11 +60,29 @@ export type UpdateAgentRequest = {
45
60
  * Ordered chain of model IDs the gateway tries when a model call fails on the model before it; forwarded unchanged to the Responses API, which validates it. Empty (the default) means the run keeps the gateway's own fallback rules for the model.
46
61
  */
47
62
  fallbackModels?: Array<string> | undefined;
63
+ /**
64
+ * Most runs of this agent that may execute at once. Null (the default) means no limit. Not part of the versioned configuration: a rollback keeps the current limit, and changing only this field or concurrency_overflow creates no new version.
65
+ */
66
+ maxConcurrentRuns?: number | null | undefined;
67
+ /**
68
+ * What a run beyond max_concurrent_runs gets. reject (the default) refuses it with 429 and error code agent_concurrency_limit. queue stores it as waiting and starts it, oldest first, when a run finishes, with the agent configuration current at that time.
69
+ */
70
+ concurrencyOverflow?: UpdateAgentRequestConcurrencyOverflow | undefined;
48
71
  text?: AgentTextConfiguration | null | undefined;
49
72
  reasoning?: AgentReasoningConfiguration | null | undefined;
50
73
  metadata?: { [k: string]: string } | undefined;
51
74
  };
52
75
 
76
+ /** @internal */
77
+ export const UpdateAgentRequestConcurrencyOverflow$inboundSchema:
78
+ z.ZodNativeEnum<typeof UpdateAgentRequestConcurrencyOverflow> = z.nativeEnum(
79
+ UpdateAgentRequestConcurrencyOverflow,
80
+ );
81
+ /** @internal */
82
+ export const UpdateAgentRequestConcurrencyOverflow$outboundSchema:
83
+ z.ZodNativeEnum<typeof UpdateAgentRequestConcurrencyOverflow> =
84
+ UpdateAgentRequestConcurrencyOverflow$inboundSchema;
85
+
53
86
  /** @internal */
54
87
  export const UpdateAgentRequest$inboundSchema: z.ZodType<
55
88
  UpdateAgentRequest,
@@ -65,6 +98,9 @@ export const UpdateAgentRequest$inboundSchema: z.ZodType<
65
98
  parallel_tool_calls: z.boolean().optional(),
66
99
  max_tool_calls: z.nullable(z.number().int()).optional(),
67
100
  fallback_models: z.array(z.string()).optional(),
101
+ max_concurrent_runs: z.nullable(z.number().int()).optional(),
102
+ concurrency_overflow: UpdateAgentRequestConcurrencyOverflow$inboundSchema
103
+ .optional(),
68
104
  text: z.nullable(AgentTextConfiguration$inboundSchema).optional(),
69
105
  reasoning: z.nullable(AgentReasoningConfiguration$inboundSchema).optional(),
70
106
  metadata: z.record(z.string()).optional(),
@@ -74,6 +110,8 @@ export const UpdateAgentRequest$inboundSchema: z.ZodType<
74
110
  "parallel_tool_calls": "parallelToolCalls",
75
111
  "max_tool_calls": "maxToolCalls",
76
112
  "fallback_models": "fallbackModels",
113
+ "max_concurrent_runs": "maxConcurrentRuns",
114
+ "concurrency_overflow": "concurrencyOverflow",
77
115
  });
78
116
  });
79
117
  /** @internal */
@@ -87,6 +125,8 @@ export type UpdateAgentRequest$Outbound = {
87
125
  parallel_tool_calls?: boolean | undefined;
88
126
  max_tool_calls?: number | null | undefined;
89
127
  fallback_models?: Array<string> | undefined;
128
+ max_concurrent_runs?: number | null | undefined;
129
+ concurrency_overflow?: string | undefined;
90
130
  text?: AgentTextConfiguration$Outbound | null | undefined;
91
131
  reasoning?: AgentReasoningConfiguration$Outbound | null | undefined;
92
132
  metadata?: { [k: string]: string } | undefined;
@@ -107,6 +147,9 @@ export const UpdateAgentRequest$outboundSchema: z.ZodType<
107
147
  parallelToolCalls: z.boolean().optional(),
108
148
  maxToolCalls: z.nullable(z.number().int()).optional(),
109
149
  fallbackModels: z.array(z.string()).optional(),
150
+ maxConcurrentRuns: z.nullable(z.number().int()).optional(),
151
+ concurrencyOverflow: UpdateAgentRequestConcurrencyOverflow$outboundSchema
152
+ .optional(),
110
153
  text: z.nullable(AgentTextConfiguration$outboundSchema).optional(),
111
154
  reasoning: z.nullable(AgentReasoningConfiguration$outboundSchema).optional(),
112
155
  metadata: z.record(z.string()).optional(),
@@ -116,6 +159,8 @@ export const UpdateAgentRequest$outboundSchema: z.ZodType<
116
159
  parallelToolCalls: "parallel_tool_calls",
117
160
  maxToolCalls: "max_tool_calls",
118
161
  fallbackModels: "fallback_models",
162
+ maxConcurrentRuns: "max_concurrent_runs",
163
+ concurrencyOverflow: "concurrency_overflow",
119
164
  });
120
165
  });
121
166
 
@@ -88,7 +88,7 @@ export type VectorStore = {
88
88
  */
89
89
  embeddingModel: string | null;
90
90
  /**
91
- * The number of dimensions for the embedding vectors in this vector store. Null for legacy vector stores.
91
+ * The number of dimensions for the embedding vectors in this vector store. Null for legacy vector stores. If the embedding model's declared dimensions stop including this size, or the model returns embeddings of another width, search fails with 412 and new files fail to ingest.
92
92
  */
93
93
  embeddingDimensions: number | null;
94
94
  /**
@@ -160,7 +160,7 @@ export type GetModelResponseBody = {
160
160
  */
161
161
  outputModalities: Array<string>;
162
162
  /**
163
- * 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.
163
+ * 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.
164
164
  */
165
165
  contextWindow: number | null;
166
166
  /**
@@ -172,7 +172,7 @@ export type GetModelResponseBody = {
172
172
  */
173
173
  minImageResolution: MinImageResolution | null;
174
174
  /**
175
- * 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.
175
+ * 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.
176
176
  */
177
177
  embeddingDimensionRange: EmbeddingDimensionRange | null;
178
178
  /**