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