@meetkai/mka1 0.54.93 → 0.54.94
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 +332 -332
- package/bin/mcp-server.js +4357 -3294
- package/bin/mcp-server.js.map +40 -18
- package/dist/commonjs/funcs/agentRunsListAgentRuns.js +1 -0
- package/dist/commonjs/funcs/agentRunsListAgentRuns.js.map +1 -1
- package/dist/commonjs/funcs/agentVersionsListAgentVersions.js +1 -0
- package/dist/commonjs/funcs/agentVersionsListAgentVersions.js.map +1 -1
- package/dist/commonjs/funcs/agentsCreateFunctionTool.d.ts +17 -0
- package/dist/commonjs/funcs/agentsCreateFunctionTool.d.ts.map +1 -0
- package/dist/commonjs/funcs/agentsCreateFunctionTool.js +128 -0
- package/dist/commonjs/funcs/agentsCreateFunctionTool.js.map +1 -0
- package/dist/commonjs/funcs/agentsDeleteAgent.d.ts +4 -1
- package/dist/commonjs/funcs/agentsDeleteAgent.d.ts.map +1 -1
- package/dist/commonjs/funcs/agentsDeleteAgent.js +4 -1
- package/dist/commonjs/funcs/agentsDeleteAgent.js.map +1 -1
- package/dist/commonjs/funcs/agentsDeleteFunctionTool.d.ts +19 -0
- package/dist/commonjs/funcs/agentsDeleteFunctionTool.d.ts.map +1 -0
- package/dist/commonjs/funcs/agentsDeleteFunctionTool.js +133 -0
- package/dist/commonjs/funcs/agentsDeleteFunctionTool.js.map +1 -0
- package/dist/commonjs/funcs/agentsGetFunctionTool.d.ts +17 -0
- package/dist/commonjs/funcs/agentsGetFunctionTool.d.ts.map +1 -0
- package/dist/commonjs/funcs/agentsGetFunctionTool.js +131 -0
- package/dist/commonjs/funcs/agentsGetFunctionTool.js.map +1 -0
- package/dist/commonjs/funcs/agentsListAgents.js +2 -0
- package/dist/commonjs/funcs/agentsListAgents.js.map +1 -1
- package/dist/commonjs/funcs/agentsListFunctionTools.d.ts +17 -0
- package/dist/commonjs/funcs/agentsListFunctionTools.d.ts.map +1 -0
- package/dist/commonjs/funcs/agentsListFunctionTools.js +131 -0
- package/dist/commonjs/funcs/agentsListFunctionTools.js.map +1 -0
- package/dist/commonjs/funcs/agentsRestoreAgent.d.ts +21 -0
- package/dist/commonjs/funcs/agentsRestoreAgent.d.ts.map +1 -0
- package/dist/commonjs/funcs/agentsRestoreAgent.js +138 -0
- package/dist/commonjs/funcs/agentsRestoreAgent.js.map +1 -0
- package/dist/commonjs/funcs/agentsUpdateFunctionTool.d.ts +20 -0
- package/dist/commonjs/funcs/agentsUpdateFunctionTool.d.ts.map +1 -0
- package/dist/commonjs/funcs/agentsUpdateFunctionTool.js +137 -0
- package/dist/commonjs/funcs/agentsUpdateFunctionTool.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 +13 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/agentsCreateFunctionTool.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/agentsCreateFunctionTool.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/agentsCreateFunctionTool.js +62 -0
- package/dist/commonjs/mcp-server/tools/agentsCreateFunctionTool.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/agentsDeleteAgent.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/agentsDeleteAgent.js +3 -1
- package/dist/commonjs/mcp-server/tools/agentsDeleteAgent.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/agentsDeleteFunctionTool.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/agentsDeleteFunctionTool.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/agentsDeleteFunctionTool.js +64 -0
- package/dist/commonjs/mcp-server/tools/agentsDeleteFunctionTool.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/agentsGetFunctionTool.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/agentsGetFunctionTool.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/agentsGetFunctionTool.js +62 -0
- package/dist/commonjs/mcp-server/tools/agentsGetFunctionTool.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/agentsListFunctionTools.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/agentsListFunctionTools.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/agentsListFunctionTools.js +62 -0
- package/dist/commonjs/mcp-server/tools/agentsListFunctionTools.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/agentsRestoreAgent.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/agentsRestoreAgent.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/agentsRestoreAgent.js +64 -0
- package/dist/commonjs/mcp-server/tools/agentsRestoreAgent.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/agentsUpdateFunctionTool.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/agentsUpdateFunctionTool.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/agentsUpdateFunctionTool.js +64 -0
- package/dist/commonjs/mcp-server/tools/agentsUpdateFunctionTool.js.map +1 -0
- package/dist/commonjs/models/components/agent.d.ts +12 -0
- package/dist/commonjs/models/components/agent.d.ts.map +1 -1
- package/dist/commonjs/models/components/agent.js +12 -0
- package/dist/commonjs/models/components/agent.js.map +1 -1
- package/dist/commonjs/models/components/agentsfunctiontooldefinition.d.ts +40 -0
- package/dist/commonjs/models/components/agentsfunctiontooldefinition.d.ts.map +1 -0
- package/dist/commonjs/models/components/agentsfunctiontooldefinition.js +84 -0
- package/dist/commonjs/models/components/agentsfunctiontooldefinition.js.map +1 -0
- package/dist/commonjs/models/components/functiontool.d.ts +35 -0
- package/dist/commonjs/models/components/functiontool.d.ts.map +1 -0
- package/dist/commonjs/models/components/functiontool.js +85 -0
- package/dist/commonjs/models/components/functiontool.js.map +1 -0
- package/dist/commonjs/models/components/functiontoollist.d.ts +35 -0
- package/dist/commonjs/models/components/functiontoollist.d.ts.map +1 -0
- package/dist/commonjs/models/components/functiontoollist.js +87 -0
- package/dist/commonjs/models/components/functiontoollist.js.map +1 -0
- package/dist/commonjs/models/components/functiontoolreference.d.ts +28 -0
- package/dist/commonjs/models/components/functiontoolreference.d.ts.map +1 -0
- package/dist/commonjs/models/components/functiontoolreference.js +76 -0
- package/dist/commonjs/models/components/functiontoolreference.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +4 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +4 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/tooldefinition.d.ts +115 -114
- package/dist/commonjs/models/components/tooldefinition.d.ts.map +1 -1
- package/dist/commonjs/models/components/tooldefinition.js +151 -147
- package/dist/commonjs/models/components/tooldefinition.js.map +1 -1
- package/dist/commonjs/models/operations/createfunctiontool.d.ts +23 -0
- package/dist/commonjs/models/operations/createfunctiontool.d.ts.map +1 -0
- package/dist/commonjs/models/operations/createfunctiontool.js +72 -0
- package/dist/commonjs/models/operations/createfunctiontool.js.map +1 -0
- package/dist/commonjs/models/operations/deletefunctiontool.d.ts +51 -0
- package/dist/commonjs/models/operations/deletefunctiontool.d.ts.map +1 -0
- package/dist/commonjs/models/operations/deletefunctiontool.js +98 -0
- package/dist/commonjs/models/operations/deletefunctiontool.js.map +1 -0
- package/dist/commonjs/models/operations/getfunctiontool.d.ts +22 -0
- package/dist/commonjs/models/operations/getfunctiontool.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getfunctiontool.js +71 -0
- package/dist/commonjs/models/operations/getfunctiontool.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +6 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +6 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listagentruns.d.ts +5 -0
- package/dist/commonjs/models/operations/listagentruns.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listagentruns.js +2 -0
- package/dist/commonjs/models/operations/listagentruns.js.map +1 -1
- package/dist/commonjs/models/operations/listagents.d.ts +10 -0
- package/dist/commonjs/models/operations/listagents.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listagents.js +4 -0
- package/dist/commonjs/models/operations/listagents.js.map +1 -1
- package/dist/commonjs/models/operations/listagentversions.d.ts +5 -0
- package/dist/commonjs/models/operations/listagentversions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listagentversions.js +2 -0
- package/dist/commonjs/models/operations/listagentversions.js.map +1 -1
- package/dist/commonjs/models/operations/listfunctiontools.d.ts +39 -0
- package/dist/commonjs/models/operations/listfunctiontools.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listfunctiontools.js +81 -0
- package/dist/commonjs/models/operations/listfunctiontools.js.map +1 -0
- package/dist/commonjs/models/operations/restoreagent.d.ts +22 -0
- package/dist/commonjs/models/operations/restoreagent.d.ts.map +1 -0
- package/dist/commonjs/models/operations/restoreagent.js +71 -0
- package/dist/commonjs/models/operations/restoreagent.js.map +1 -0
- package/dist/commonjs/models/operations/updatefunctiontool.d.ts +25 -0
- package/dist/commonjs/models/operations/updatefunctiontool.d.ts.map +1 -0
- package/dist/commonjs/models/operations/updatefunctiontool.js +76 -0
- package/dist/commonjs/models/operations/updatefunctiontool.js.map +1 -0
- package/dist/commonjs/react-query/agentRunsListAgentRuns.core.d.ts +1 -0
- package/dist/commonjs/react-query/agentRunsListAgentRuns.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/agentRunsListAgentRuns.core.js +1 -0
- package/dist/commonjs/react-query/agentRunsListAgentRuns.core.js.map +1 -1
- package/dist/commonjs/react-query/agentRunsListAgentRuns.d.ts +2 -0
- package/dist/commonjs/react-query/agentRunsListAgentRuns.d.ts.map +1 -1
- package/dist/commonjs/react-query/agentRunsListAgentRuns.js.map +1 -1
- package/dist/commonjs/react-query/agentVersionsListAgentVersions.core.d.ts +1 -0
- package/dist/commonjs/react-query/agentVersionsListAgentVersions.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/agentVersionsListAgentVersions.core.js +1 -0
- package/dist/commonjs/react-query/agentVersionsListAgentVersions.core.js.map +1 -1
- package/dist/commonjs/react-query/agentVersionsListAgentVersions.d.ts +2 -0
- package/dist/commonjs/react-query/agentVersionsListAgentVersions.d.ts.map +1 -1
- package/dist/commonjs/react-query/agentVersionsListAgentVersions.js.map +1 -1
- package/dist/commonjs/react-query/agentsCreateFunctionTool.d.ts +26 -0
- package/dist/commonjs/react-query/agentsCreateFunctionTool.d.ts.map +1 -0
- package/dist/commonjs/react-query/agentsCreateFunctionTool.js +44 -0
- package/dist/commonjs/react-query/agentsCreateFunctionTool.js.map +1 -0
- package/dist/commonjs/react-query/agentsDeleteAgent.d.ts +4 -1
- package/dist/commonjs/react-query/agentsDeleteAgent.d.ts.map +1 -1
- package/dist/commonjs/react-query/agentsDeleteAgent.js +4 -1
- package/dist/commonjs/react-query/agentsDeleteAgent.js.map +1 -1
- package/dist/commonjs/react-query/agentsDeleteFunctionTool.d.ts +28 -0
- package/dist/commonjs/react-query/agentsDeleteFunctionTool.d.ts.map +1 -0
- package/dist/commonjs/react-query/agentsDeleteFunctionTool.js +47 -0
- package/dist/commonjs/react-query/agentsDeleteFunctionTool.js.map +1 -0
- package/dist/commonjs/react-query/agentsGetFunctionTool.core.d.ts +15 -0
- package/dist/commonjs/react-query/agentsGetFunctionTool.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/agentsGetFunctionTool.core.js +36 -0
- package/dist/commonjs/react-query/agentsGetFunctionTool.core.js.map +1 -0
- package/dist/commonjs/react-query/agentsGetFunctionTool.d.ts +32 -0
- package/dist/commonjs/react-query/agentsGetFunctionTool.d.ts.map +1 -0
- package/dist/commonjs/react-query/agentsGetFunctionTool.js +54 -0
- package/dist/commonjs/react-query/agentsGetFunctionTool.js.map +1 -0
- package/dist/commonjs/react-query/agentsListAgents.core.d.ts +2 -0
- package/dist/commonjs/react-query/agentsListAgents.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/agentsListAgents.core.js +2 -0
- package/dist/commonjs/react-query/agentsListAgents.core.js.map +1 -1
- package/dist/commonjs/react-query/agentsListAgents.d.ts +4 -0
- package/dist/commonjs/react-query/agentsListAgents.d.ts.map +1 -1
- package/dist/commonjs/react-query/agentsListAgents.js.map +1 -1
- package/dist/commonjs/react-query/agentsListFunctionTools.core.d.ts +18 -0
- package/dist/commonjs/react-query/agentsListFunctionTools.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/agentsListFunctionTools.core.js +39 -0
- package/dist/commonjs/react-query/agentsListFunctionTools.core.js.map +1 -0
- package/dist/commonjs/react-query/agentsListFunctionTools.d.ts +36 -0
- package/dist/commonjs/react-query/agentsListFunctionTools.d.ts.map +1 -0
- package/dist/commonjs/react-query/agentsListFunctionTools.js +54 -0
- package/dist/commonjs/react-query/agentsListFunctionTools.js.map +1 -0
- package/dist/commonjs/react-query/agentsRestoreAgent.d.ts +30 -0
- package/dist/commonjs/react-query/agentsRestoreAgent.d.ts.map +1 -0
- package/dist/commonjs/react-query/agentsRestoreAgent.js +47 -0
- package/dist/commonjs/react-query/agentsRestoreAgent.js.map +1 -0
- package/dist/commonjs/react-query/agentsUpdateFunctionTool.d.ts +29 -0
- package/dist/commonjs/react-query/agentsUpdateFunctionTool.d.ts.map +1 -0
- package/dist/commonjs/react-query/agentsUpdateFunctionTool.js +47 -0
- package/dist/commonjs/react-query/agentsUpdateFunctionTool.js.map +1 -0
- package/dist/commonjs/react-query/index.d.ts +6 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +6 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/sdk/agents.d.ts +37 -1
- package/dist/commonjs/sdk/agents.d.ts.map +1 -1
- package/dist/commonjs/sdk/agents.js +55 -1
- package/dist/commonjs/sdk/agents.js.map +1 -1
- package/dist/esm/funcs/agentRunsListAgentRuns.js +1 -0
- package/dist/esm/funcs/agentRunsListAgentRuns.js.map +1 -1
- package/dist/esm/funcs/agentVersionsListAgentVersions.js +1 -0
- package/dist/esm/funcs/agentVersionsListAgentVersions.js.map +1 -1
- package/dist/esm/funcs/agentsCreateFunctionTool.d.ts +17 -0
- package/dist/esm/funcs/agentsCreateFunctionTool.d.ts.map +1 -0
- package/dist/esm/funcs/agentsCreateFunctionTool.js +92 -0
- package/dist/esm/funcs/agentsCreateFunctionTool.js.map +1 -0
- package/dist/esm/funcs/agentsDeleteAgent.d.ts +4 -1
- package/dist/esm/funcs/agentsDeleteAgent.d.ts.map +1 -1
- package/dist/esm/funcs/agentsDeleteAgent.js +4 -1
- package/dist/esm/funcs/agentsDeleteAgent.js.map +1 -1
- package/dist/esm/funcs/agentsDeleteFunctionTool.d.ts +19 -0
- package/dist/esm/funcs/agentsDeleteFunctionTool.d.ts.map +1 -0
- package/dist/esm/funcs/agentsDeleteFunctionTool.js +97 -0
- package/dist/esm/funcs/agentsDeleteFunctionTool.js.map +1 -0
- package/dist/esm/funcs/agentsGetFunctionTool.d.ts +17 -0
- package/dist/esm/funcs/agentsGetFunctionTool.d.ts.map +1 -0
- package/dist/esm/funcs/agentsGetFunctionTool.js +95 -0
- package/dist/esm/funcs/agentsGetFunctionTool.js.map +1 -0
- package/dist/esm/funcs/agentsListAgents.js +2 -0
- package/dist/esm/funcs/agentsListAgents.js.map +1 -1
- package/dist/esm/funcs/agentsListFunctionTools.d.ts +17 -0
- package/dist/esm/funcs/agentsListFunctionTools.d.ts.map +1 -0
- package/dist/esm/funcs/agentsListFunctionTools.js +95 -0
- package/dist/esm/funcs/agentsListFunctionTools.js.map +1 -0
- package/dist/esm/funcs/agentsRestoreAgent.d.ts +21 -0
- package/dist/esm/funcs/agentsRestoreAgent.d.ts.map +1 -0
- package/dist/esm/funcs/agentsRestoreAgent.js +102 -0
- package/dist/esm/funcs/agentsRestoreAgent.js.map +1 -0
- package/dist/esm/funcs/agentsUpdateFunctionTool.d.ts +20 -0
- package/dist/esm/funcs/agentsUpdateFunctionTool.d.ts.map +1 -0
- package/dist/esm/funcs/agentsUpdateFunctionTool.js +101 -0
- package/dist/esm/funcs/agentsUpdateFunctionTool.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 +13 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/agentsCreateFunctionTool.d.ts +8 -0
- package/dist/esm/mcp-server/tools/agentsCreateFunctionTool.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/agentsCreateFunctionTool.js +26 -0
- package/dist/esm/mcp-server/tools/agentsCreateFunctionTool.js.map +1 -0
- package/dist/esm/mcp-server/tools/agentsDeleteAgent.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/agentsDeleteAgent.js +3 -1
- package/dist/esm/mcp-server/tools/agentsDeleteAgent.js.map +1 -1
- package/dist/esm/mcp-server/tools/agentsDeleteFunctionTool.d.ts +8 -0
- package/dist/esm/mcp-server/tools/agentsDeleteFunctionTool.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/agentsDeleteFunctionTool.js +28 -0
- package/dist/esm/mcp-server/tools/agentsDeleteFunctionTool.js.map +1 -0
- package/dist/esm/mcp-server/tools/agentsGetFunctionTool.d.ts +8 -0
- package/dist/esm/mcp-server/tools/agentsGetFunctionTool.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/agentsGetFunctionTool.js +26 -0
- package/dist/esm/mcp-server/tools/agentsGetFunctionTool.js.map +1 -0
- package/dist/esm/mcp-server/tools/agentsListFunctionTools.d.ts +8 -0
- package/dist/esm/mcp-server/tools/agentsListFunctionTools.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/agentsListFunctionTools.js +26 -0
- package/dist/esm/mcp-server/tools/agentsListFunctionTools.js.map +1 -0
- package/dist/esm/mcp-server/tools/agentsRestoreAgent.d.ts +8 -0
- package/dist/esm/mcp-server/tools/agentsRestoreAgent.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/agentsRestoreAgent.js +28 -0
- package/dist/esm/mcp-server/tools/agentsRestoreAgent.js.map +1 -0
- package/dist/esm/mcp-server/tools/agentsUpdateFunctionTool.d.ts +8 -0
- package/dist/esm/mcp-server/tools/agentsUpdateFunctionTool.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/agentsUpdateFunctionTool.js +28 -0
- package/dist/esm/mcp-server/tools/agentsUpdateFunctionTool.js.map +1 -0
- package/dist/esm/models/components/agent.d.ts +12 -0
- package/dist/esm/models/components/agent.d.ts.map +1 -1
- package/dist/esm/models/components/agent.js +12 -0
- package/dist/esm/models/components/agent.js.map +1 -1
- package/dist/esm/models/components/agentsfunctiontooldefinition.d.ts +40 -0
- package/dist/esm/models/components/agentsfunctiontooldefinition.d.ts.map +1 -0
- package/dist/esm/models/components/agentsfunctiontooldefinition.js +46 -0
- package/dist/esm/models/components/agentsfunctiontooldefinition.js.map +1 -0
- package/dist/esm/models/components/functiontool.d.ts +35 -0
- package/dist/esm/models/components/functiontool.d.ts.map +1 -0
- package/dist/esm/models/components/functiontool.js +47 -0
- package/dist/esm/models/components/functiontool.js.map +1 -0
- package/dist/esm/models/components/functiontoollist.d.ts +35 -0
- package/dist/esm/models/components/functiontoollist.d.ts.map +1 -0
- package/dist/esm/models/components/functiontoollist.js +49 -0
- package/dist/esm/models/components/functiontoollist.js.map +1 -0
- package/dist/esm/models/components/functiontoolreference.d.ts +28 -0
- package/dist/esm/models/components/functiontoolreference.d.ts.map +1 -0
- package/dist/esm/models/components/functiontoolreference.js +38 -0
- package/dist/esm/models/components/functiontoolreference.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +4 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +4 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/tooldefinition.d.ts +115 -114
- package/dist/esm/models/components/tooldefinition.d.ts.map +1 -1
- package/dist/esm/models/components/tooldefinition.js +129 -125
- package/dist/esm/models/components/tooldefinition.js.map +1 -1
- package/dist/esm/models/operations/createfunctiontool.d.ts +23 -0
- package/dist/esm/models/operations/createfunctiontool.d.ts.map +1 -0
- package/dist/esm/models/operations/createfunctiontool.js +34 -0
- package/dist/esm/models/operations/createfunctiontool.js.map +1 -0
- package/dist/esm/models/operations/deletefunctiontool.d.ts +51 -0
- package/dist/esm/models/operations/deletefunctiontool.d.ts.map +1 -0
- package/dist/esm/models/operations/deletefunctiontool.js +58 -0
- package/dist/esm/models/operations/deletefunctiontool.js.map +1 -0
- package/dist/esm/models/operations/getfunctiontool.d.ts +22 -0
- package/dist/esm/models/operations/getfunctiontool.d.ts.map +1 -0
- package/dist/esm/models/operations/getfunctiontool.js +33 -0
- package/dist/esm/models/operations/getfunctiontool.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +6 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +6 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listagentruns.d.ts +5 -0
- package/dist/esm/models/operations/listagentruns.d.ts.map +1 -1
- package/dist/esm/models/operations/listagentruns.js +2 -0
- package/dist/esm/models/operations/listagentruns.js.map +1 -1
- package/dist/esm/models/operations/listagents.d.ts +10 -0
- package/dist/esm/models/operations/listagents.d.ts.map +1 -1
- package/dist/esm/models/operations/listagents.js +4 -0
- package/dist/esm/models/operations/listagents.js.map +1 -1
- package/dist/esm/models/operations/listagentversions.d.ts +5 -0
- package/dist/esm/models/operations/listagentversions.d.ts.map +1 -1
- package/dist/esm/models/operations/listagentversions.js +2 -0
- package/dist/esm/models/operations/listagentversions.js.map +1 -1
- package/dist/esm/models/operations/listfunctiontools.d.ts +39 -0
- package/dist/esm/models/operations/listfunctiontools.d.ts.map +1 -0
- package/dist/esm/models/operations/listfunctiontools.js +43 -0
- package/dist/esm/models/operations/listfunctiontools.js.map +1 -0
- package/dist/esm/models/operations/restoreagent.d.ts +22 -0
- package/dist/esm/models/operations/restoreagent.d.ts.map +1 -0
- package/dist/esm/models/operations/restoreagent.js +33 -0
- package/dist/esm/models/operations/restoreagent.js.map +1 -0
- package/dist/esm/models/operations/updatefunctiontool.d.ts +25 -0
- package/dist/esm/models/operations/updatefunctiontool.d.ts.map +1 -0
- package/dist/esm/models/operations/updatefunctiontool.js +38 -0
- package/dist/esm/models/operations/updatefunctiontool.js.map +1 -0
- package/dist/esm/react-query/agentRunsListAgentRuns.core.d.ts +1 -0
- package/dist/esm/react-query/agentRunsListAgentRuns.core.d.ts.map +1 -1
- package/dist/esm/react-query/agentRunsListAgentRuns.core.js +1 -0
- package/dist/esm/react-query/agentRunsListAgentRuns.core.js.map +1 -1
- package/dist/esm/react-query/agentRunsListAgentRuns.d.ts +2 -0
- package/dist/esm/react-query/agentRunsListAgentRuns.d.ts.map +1 -1
- package/dist/esm/react-query/agentRunsListAgentRuns.js.map +1 -1
- package/dist/esm/react-query/agentVersionsListAgentVersions.core.d.ts +1 -0
- package/dist/esm/react-query/agentVersionsListAgentVersions.core.d.ts.map +1 -1
- package/dist/esm/react-query/agentVersionsListAgentVersions.core.js +1 -0
- package/dist/esm/react-query/agentVersionsListAgentVersions.core.js.map +1 -1
- package/dist/esm/react-query/agentVersionsListAgentVersions.d.ts +2 -0
- package/dist/esm/react-query/agentVersionsListAgentVersions.d.ts.map +1 -1
- package/dist/esm/react-query/agentVersionsListAgentVersions.js.map +1 -1
- package/dist/esm/react-query/agentsCreateFunctionTool.d.ts +26 -0
- package/dist/esm/react-query/agentsCreateFunctionTool.d.ts.map +1 -0
- package/dist/esm/react-query/agentsCreateFunctionTool.js +39 -0
- package/dist/esm/react-query/agentsCreateFunctionTool.js.map +1 -0
- package/dist/esm/react-query/agentsDeleteAgent.d.ts +4 -1
- package/dist/esm/react-query/agentsDeleteAgent.d.ts.map +1 -1
- package/dist/esm/react-query/agentsDeleteAgent.js +4 -1
- package/dist/esm/react-query/agentsDeleteAgent.js.map +1 -1
- package/dist/esm/react-query/agentsDeleteFunctionTool.d.ts +28 -0
- package/dist/esm/react-query/agentsDeleteFunctionTool.d.ts.map +1 -0
- package/dist/esm/react-query/agentsDeleteFunctionTool.js +42 -0
- package/dist/esm/react-query/agentsDeleteFunctionTool.js.map +1 -0
- package/dist/esm/react-query/agentsGetFunctionTool.core.d.ts +15 -0
- package/dist/esm/react-query/agentsGetFunctionTool.core.d.ts.map +1 -0
- package/dist/esm/react-query/agentsGetFunctionTool.core.js +31 -0
- package/dist/esm/react-query/agentsGetFunctionTool.core.js.map +1 -0
- package/dist/esm/react-query/agentsGetFunctionTool.d.ts +32 -0
- package/dist/esm/react-query/agentsGetFunctionTool.d.ts.map +1 -0
- package/dist/esm/react-query/agentsGetFunctionTool.js +44 -0
- package/dist/esm/react-query/agentsGetFunctionTool.js.map +1 -0
- package/dist/esm/react-query/agentsListAgents.core.d.ts +2 -0
- package/dist/esm/react-query/agentsListAgents.core.d.ts.map +1 -1
- package/dist/esm/react-query/agentsListAgents.core.js +2 -0
- package/dist/esm/react-query/agentsListAgents.core.js.map +1 -1
- package/dist/esm/react-query/agentsListAgents.d.ts +4 -0
- package/dist/esm/react-query/agentsListAgents.d.ts.map +1 -1
- package/dist/esm/react-query/agentsListAgents.js.map +1 -1
- package/dist/esm/react-query/agentsListFunctionTools.core.d.ts +18 -0
- package/dist/esm/react-query/agentsListFunctionTools.core.d.ts.map +1 -0
- package/dist/esm/react-query/agentsListFunctionTools.core.js +34 -0
- package/dist/esm/react-query/agentsListFunctionTools.core.js.map +1 -0
- package/dist/esm/react-query/agentsListFunctionTools.d.ts +36 -0
- package/dist/esm/react-query/agentsListFunctionTools.d.ts.map +1 -0
- package/dist/esm/react-query/agentsListFunctionTools.js +44 -0
- package/dist/esm/react-query/agentsListFunctionTools.js.map +1 -0
- package/dist/esm/react-query/agentsRestoreAgent.d.ts +30 -0
- package/dist/esm/react-query/agentsRestoreAgent.d.ts.map +1 -0
- package/dist/esm/react-query/agentsRestoreAgent.js +42 -0
- package/dist/esm/react-query/agentsRestoreAgent.js.map +1 -0
- package/dist/esm/react-query/agentsUpdateFunctionTool.d.ts +29 -0
- package/dist/esm/react-query/agentsUpdateFunctionTool.d.ts.map +1 -0
- package/dist/esm/react-query/agentsUpdateFunctionTool.js +42 -0
- package/dist/esm/react-query/agentsUpdateFunctionTool.js.map +1 -0
- package/dist/esm/react-query/index.d.ts +6 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +6 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/sdk/agents.d.ts +37 -1
- package/dist/esm/sdk/agents.d.ts.map +1 -1
- package/dist/esm/sdk/agents.js +55 -1
- package/dist/esm/sdk/agents.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/agentRunsListAgentRuns.ts +1 -0
- package/src/funcs/agentVersionsListAgentVersions.ts +1 -0
- package/src/funcs/agentsCreateFunctionTool.ts +179 -0
- package/src/funcs/agentsDeleteAgent.ts +4 -1
- package/src/funcs/agentsDeleteFunctionTool.ts +186 -0
- package/src/funcs/agentsGetFunctionTool.ts +184 -0
- package/src/funcs/agentsListAgents.ts +2 -0
- package/src/funcs/agentsListFunctionTools.ts +183 -0
- package/src/funcs/agentsRestoreAgent.ts +194 -0
- package/src/funcs/agentsUpdateFunctionTool.ts +190 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +13 -1
- package/src/mcp-server/tools/agentsCreateFunctionTool.ts +35 -0
- package/src/mcp-server/tools/agentsDeleteAgent.ts +3 -1
- package/src/mcp-server/tools/agentsDeleteFunctionTool.ts +37 -0
- package/src/mcp-server/tools/agentsGetFunctionTool.ts +35 -0
- package/src/mcp-server/tools/agentsListFunctionTools.ts +35 -0
- package/src/mcp-server/tools/agentsRestoreAgent.ts +37 -0
- package/src/mcp-server/tools/agentsUpdateFunctionTool.ts +37 -0
- package/src/models/components/agent.ts +26 -0
- package/src/models/components/agentsfunctiontooldefinition.ts +99 -0
- package/src/models/components/functiontool.ts +95 -0
- package/src/models/components/functiontoollist.ts +101 -0
- package/src/models/components/functiontoolreference.ts +81 -0
- package/src/models/components/index.ts +4 -0
- package/src/models/components/tooldefinition.ts +284 -279
- package/src/models/operations/createfunctiontool.ts +73 -0
- package/src/models/operations/deletefunctiontool.ts +142 -0
- package/src/models/operations/getfunctiontool.ts +69 -0
- package/src/models/operations/index.ts +6 -0
- package/src/models/operations/listagentruns.ts +7 -0
- package/src/models/operations/listagents.ts +14 -0
- package/src/models/operations/listagentversions.ts +7 -0
- package/src/models/operations/listfunctiontools.ts +96 -0
- package/src/models/operations/restoreagent.ts +69 -0
- package/src/models/operations/updatefunctiontool.ts +79 -0
- package/src/react-query/agentRunsListAgentRuns.core.ts +2 -0
- package/src/react-query/agentRunsListAgentRuns.ts +2 -0
- package/src/react-query/agentVersionsListAgentVersions.core.ts +2 -0
- package/src/react-query/agentVersionsListAgentVersions.ts +2 -0
- package/src/react-query/agentsCreateFunctionTool.ts +106 -0
- package/src/react-query/agentsDeleteAgent.ts +4 -1
- package/src/react-query/agentsDeleteFunctionTool.ts +109 -0
- package/src/react-query/agentsGetFunctionTool.core.ts +76 -0
- package/src/react-query/agentsGetFunctionTool.ts +135 -0
- package/src/react-query/agentsListAgents.core.ts +4 -0
- package/src/react-query/agentsListAgents.ts +4 -0
- package/src/react-query/agentsListFunctionTools.core.ts +83 -0
- package/src/react-query/agentsListFunctionTools.ts +144 -0
- package/src/react-query/agentsRestoreAgent.ts +111 -0
- package/src/react-query/agentsUpdateFunctionTool.ts +109 -0
- package/src/react-query/index.ts +6 -0
- package/src/sdk/agents.ts +103 -1
|
@@ -7,8 +7,9 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
7
7
|
import { discriminatedUnion } from "../../types/discriminatedUnion.js";
|
|
8
8
|
import { FileSearchComparisonFilter$inboundSchema, FileSearchComparisonFilter$outboundSchema, } from "./filesearchcomparisonfilter.js";
|
|
9
9
|
import { FileSearchCompoundFilter$inboundSchema, FileSearchCompoundFilter$outboundSchema, } from "./filesearchcompoundfilter.js";
|
|
10
|
+
import { FunctionToolReference$inboundSchema, FunctionToolReference$outboundSchema, } from "./functiontoolreference.js";
|
|
10
11
|
import { MCPToolFilter$inboundSchema, MCPToolFilter$outboundSchema, } from "./mcptoolfilter.js";
|
|
11
|
-
export const
|
|
12
|
+
export const ToolDefinition8Type = {
|
|
12
13
|
Shell: "shell",
|
|
13
14
|
};
|
|
14
15
|
export const ToolDefinitionEnvironmentAccess = {
|
|
@@ -19,33 +20,33 @@ export const EnvironmentAccess = {
|
|
|
19
20
|
ReadOnly: "read_only",
|
|
20
21
|
ReadWrite: "read_write",
|
|
21
22
|
};
|
|
22
|
-
export const
|
|
23
|
+
export const ToolDefinition7Type = {
|
|
23
24
|
Sleep: "sleep",
|
|
24
25
|
};
|
|
25
|
-
export const
|
|
26
|
+
export const ToolDefinition6Type = {
|
|
26
27
|
FileSearch: "file_search",
|
|
27
28
|
CodeInterpreter: "code_interpreter",
|
|
28
29
|
ImageGeneration: "image_generation",
|
|
29
30
|
ComputerUsePreview: "computer_use_preview",
|
|
30
31
|
};
|
|
31
|
-
export const
|
|
32
|
+
export const ToolDefinition5Type = {
|
|
32
33
|
FileSearch: "file_search",
|
|
33
34
|
};
|
|
34
|
-
export const
|
|
35
|
+
export const ToolDefinition4Type = {
|
|
35
36
|
Mcp: "mcp",
|
|
36
37
|
};
|
|
37
38
|
export const ToolDefinitionRequireApproval1 = {
|
|
38
39
|
Always: "always",
|
|
39
40
|
Never: "never",
|
|
40
41
|
};
|
|
41
|
-
export const
|
|
42
|
+
export const FourType = {
|
|
42
43
|
Mcp: "mcp",
|
|
43
44
|
};
|
|
44
45
|
export const RequireApproval1 = {
|
|
45
46
|
Always: "always",
|
|
46
47
|
Never: "never",
|
|
47
48
|
};
|
|
48
|
-
export const
|
|
49
|
+
export const ToolDefinition3Type = {
|
|
49
50
|
Function: "function",
|
|
50
51
|
};
|
|
51
52
|
export const ToolDefinitionType = {
|
|
@@ -59,13 +60,13 @@ export const ToolDefinitionSearchContextSize = {
|
|
|
59
60
|
Medium: "medium",
|
|
60
61
|
High: "high",
|
|
61
62
|
};
|
|
62
|
-
export const
|
|
63
|
+
export const ToolDefinition2Type = {
|
|
63
64
|
Approximate: "approximate",
|
|
64
65
|
};
|
|
65
66
|
/** @internal */
|
|
66
|
-
export const
|
|
67
|
+
export const ToolDefinition8Type$inboundSchema = z.nativeEnum(ToolDefinition8Type);
|
|
67
68
|
/** @internal */
|
|
68
|
-
export const
|
|
69
|
+
export const ToolDefinition8Type$outboundSchema = ToolDefinition8Type$inboundSchema;
|
|
69
70
|
/** @internal */
|
|
70
71
|
export const ToolDefinitionEnvironmentAccess$inboundSchema = z.nativeEnum(ToolDefinitionEnvironmentAccess);
|
|
71
72
|
/** @internal */
|
|
@@ -217,22 +218,41 @@ export function environmentFromJSON(jsonString) {
|
|
|
217
218
|
return safeParse(jsonString, (x) => Environment$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Environment' from JSON`);
|
|
218
219
|
}
|
|
219
220
|
/** @internal */
|
|
220
|
-
export const
|
|
221
|
+
export const Eight$inboundSchema = z
|
|
221
222
|
.object({
|
|
222
|
-
type:
|
|
223
|
+
type: ToolDefinition8Type$inboundSchema,
|
|
223
224
|
environment: discriminatedUnion("type", {
|
|
224
225
|
container_auto: z.lazy(() => Environment1$inboundSchema),
|
|
225
226
|
container_reference: z.lazy(() => Environment2$inboundSchema),
|
|
226
227
|
}).optional(),
|
|
227
228
|
});
|
|
228
229
|
/** @internal */
|
|
229
|
-
export const
|
|
230
|
-
type:
|
|
230
|
+
export const Eight$outboundSchema = z.object({
|
|
231
|
+
type: ToolDefinition8Type$outboundSchema,
|
|
231
232
|
environment: z.union([
|
|
232
233
|
z.lazy(() => Environment1$outboundSchema),
|
|
233
234
|
z.lazy(() => Environment2$outboundSchema),
|
|
234
235
|
]).optional(),
|
|
235
236
|
});
|
|
237
|
+
export function eightToJSON(eight) {
|
|
238
|
+
return JSON.stringify(Eight$outboundSchema.parse(eight));
|
|
239
|
+
}
|
|
240
|
+
export function eightFromJSON(jsonString) {
|
|
241
|
+
return safeParse(jsonString, (x) => Eight$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Eight' from JSON`);
|
|
242
|
+
}
|
|
243
|
+
/** @internal */
|
|
244
|
+
export const ToolDefinition7Type$inboundSchema = z.nativeEnum(ToolDefinition7Type);
|
|
245
|
+
/** @internal */
|
|
246
|
+
export const ToolDefinition7Type$outboundSchema = ToolDefinition7Type$inboundSchema;
|
|
247
|
+
/** @internal */
|
|
248
|
+
export const Seven$inboundSchema = z
|
|
249
|
+
.object({
|
|
250
|
+
type: ToolDefinition7Type$inboundSchema,
|
|
251
|
+
});
|
|
252
|
+
/** @internal */
|
|
253
|
+
export const Seven$outboundSchema = z.object({
|
|
254
|
+
type: ToolDefinition7Type$outboundSchema,
|
|
255
|
+
});
|
|
236
256
|
export function sevenToJSON(seven) {
|
|
237
257
|
return JSON.stringify(Seven$outboundSchema.parse(seven));
|
|
238
258
|
}
|
|
@@ -262,25 +282,7 @@ export const ToolDefinition5Type$inboundSchema = z.nativeEnum(ToolDefinition5Typ
|
|
|
262
282
|
/** @internal */
|
|
263
283
|
export const ToolDefinition5Type$outboundSchema = ToolDefinition5Type$inboundSchema;
|
|
264
284
|
/** @internal */
|
|
265
|
-
export const
|
|
266
|
-
type: ToolDefinition5Type$inboundSchema,
|
|
267
|
-
});
|
|
268
|
-
/** @internal */
|
|
269
|
-
export const ToolDefinition5$outboundSchema = z.object({
|
|
270
|
-
type: ToolDefinition5Type$outboundSchema,
|
|
271
|
-
});
|
|
272
|
-
export function toolDefinition5ToJSON(toolDefinition5) {
|
|
273
|
-
return JSON.stringify(ToolDefinition5$outboundSchema.parse(toolDefinition5));
|
|
274
|
-
}
|
|
275
|
-
export function toolDefinition5FromJSON(jsonString) {
|
|
276
|
-
return safeParse(jsonString, (x) => ToolDefinition5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ToolDefinition5' from JSON`);
|
|
277
|
-
}
|
|
278
|
-
/** @internal */
|
|
279
|
-
export const ToolDefinition4Type$inboundSchema = z.nativeEnum(ToolDefinition4Type);
|
|
280
|
-
/** @internal */
|
|
281
|
-
export const ToolDefinition4Type$outboundSchema = ToolDefinition4Type$inboundSchema;
|
|
282
|
-
/** @internal */
|
|
283
|
-
export const ToolDefinition4Filters$inboundSchema = discriminatedUnion("type", {
|
|
285
|
+
export const ToolDefinition5Filters$inboundSchema = discriminatedUnion("type", {
|
|
284
286
|
eq: FileSearchComparisonFilter$inboundSchema.and(z.object({ type: z.literal("eq") })),
|
|
285
287
|
ne: FileSearchComparisonFilter$inboundSchema.and(z.object({ type: z.literal("ne") })),
|
|
286
288
|
gt: FileSearchComparisonFilter$inboundSchema.and(z.object({ type: z.literal("gt") })),
|
|
@@ -291,7 +293,7 @@ export const ToolDefinition4Filters$inboundSchema = discriminatedUnion("type", {
|
|
|
291
293
|
or: FileSearchCompoundFilter$inboundSchema.and(z.object({ type: z.literal("or") })),
|
|
292
294
|
});
|
|
293
295
|
/** @internal */
|
|
294
|
-
export const
|
|
296
|
+
export const ToolDefinition5Filters$outboundSchema = z.union([
|
|
295
297
|
FileSearchComparisonFilter$outboundSchema.and(z.object({ type: z.literal("eq") })),
|
|
296
298
|
FileSearchComparisonFilter$outboundSchema.and(z.object({ type: z.literal("ne") })),
|
|
297
299
|
FileSearchComparisonFilter$outboundSchema.and(z.object({ type: z.literal("gt") })),
|
|
@@ -301,11 +303,11 @@ export const ToolDefinition4Filters$outboundSchema = z.union([
|
|
|
301
303
|
FileSearchCompoundFilter$outboundSchema.and(z.object({ type: z.literal("and") })),
|
|
302
304
|
FileSearchCompoundFilter$outboundSchema.and(z.object({ type: z.literal("or") })),
|
|
303
305
|
]);
|
|
304
|
-
export function
|
|
305
|
-
return JSON.stringify(
|
|
306
|
+
export function toolDefinition5FiltersToJSON(toolDefinition5Filters) {
|
|
307
|
+
return JSON.stringify(ToolDefinition5Filters$outboundSchema.parse(toolDefinition5Filters));
|
|
306
308
|
}
|
|
307
|
-
export function
|
|
308
|
-
return safeParse(jsonString, (x) =>
|
|
309
|
+
export function toolDefinition5FiltersFromJSON(jsonString) {
|
|
310
|
+
return safeParse(jsonString, (x) => ToolDefinition5Filters$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ToolDefinition5Filters' from JSON`);
|
|
309
311
|
}
|
|
310
312
|
/** @internal */
|
|
311
313
|
export const ToolDefinitionRankingOptions$inboundSchema = z.object({
|
|
@@ -332,8 +334,8 @@ export function toolDefinitionRankingOptionsFromJSON(jsonString) {
|
|
|
332
334
|
return safeParse(jsonString, (x) => ToolDefinitionRankingOptions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ToolDefinitionRankingOptions' from JSON`);
|
|
333
335
|
}
|
|
334
336
|
/** @internal */
|
|
335
|
-
export const
|
|
336
|
-
type:
|
|
337
|
+
export const ToolDefinition5$inboundSchema = z.object({
|
|
338
|
+
type: ToolDefinition5Type$inboundSchema,
|
|
337
339
|
vector_store_ids: z.array(z.string()),
|
|
338
340
|
filters: discriminatedUnion("type", {
|
|
339
341
|
eq: FileSearchComparisonFilter$inboundSchema.and(z.object({ type: z.literal("eq") })),
|
|
@@ -356,8 +358,8 @@ export const ToolDefinition4$inboundSchema = z.object({
|
|
|
356
358
|
});
|
|
357
359
|
});
|
|
358
360
|
/** @internal */
|
|
359
|
-
export const
|
|
360
|
-
type:
|
|
361
|
+
export const ToolDefinition5$outboundSchema = z.object({
|
|
362
|
+
type: ToolDefinition5Type$outboundSchema,
|
|
361
363
|
vectorStoreIds: z.array(z.string()),
|
|
362
364
|
filters: z.union([
|
|
363
365
|
FileSearchComparisonFilter$outboundSchema.and(z.object({ type: z.literal("eq") })),
|
|
@@ -379,16 +381,16 @@ export const ToolDefinition4$outboundSchema = z.object({
|
|
|
379
381
|
rankingOptions: "ranking_options",
|
|
380
382
|
});
|
|
381
383
|
});
|
|
382
|
-
export function
|
|
383
|
-
return JSON.stringify(
|
|
384
|
+
export function toolDefinition5ToJSON(toolDefinition5) {
|
|
385
|
+
return JSON.stringify(ToolDefinition5$outboundSchema.parse(toolDefinition5));
|
|
384
386
|
}
|
|
385
|
-
export function
|
|
386
|
-
return safeParse(jsonString, (x) =>
|
|
387
|
+
export function toolDefinition5FromJSON(jsonString) {
|
|
388
|
+
return safeParse(jsonString, (x) => ToolDefinition5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ToolDefinition5' from JSON`);
|
|
387
389
|
}
|
|
388
390
|
/** @internal */
|
|
389
|
-
export const
|
|
391
|
+
export const ToolDefinition4Type$inboundSchema = z.nativeEnum(ToolDefinition4Type);
|
|
390
392
|
/** @internal */
|
|
391
|
-
export const
|
|
393
|
+
export const ToolDefinition4Type$outboundSchema = ToolDefinition4Type$inboundSchema;
|
|
392
394
|
/** @internal */
|
|
393
395
|
export const ToolDefinitionRequireApproval2$inboundSchema = z.object({
|
|
394
396
|
always: MCPToolFilter$inboundSchema.optional(),
|
|
@@ -410,35 +412,35 @@ export const ToolDefinitionRequireApproval1$inboundSchema = z.nativeEnum(ToolDef
|
|
|
410
412
|
/** @internal */
|
|
411
413
|
export const ToolDefinitionRequireApproval1$outboundSchema = ToolDefinitionRequireApproval1$inboundSchema;
|
|
412
414
|
/** @internal */
|
|
413
|
-
export const
|
|
415
|
+
export const FourRequireApproval$inboundSchema = z.union([
|
|
414
416
|
ToolDefinitionRequireApproval1$inboundSchema,
|
|
415
417
|
z.lazy(() => ToolDefinitionRequireApproval2$inboundSchema),
|
|
416
418
|
]);
|
|
417
419
|
/** @internal */
|
|
418
|
-
export const
|
|
420
|
+
export const FourRequireApproval$outboundSchema = z.union([
|
|
419
421
|
ToolDefinitionRequireApproval1$outboundSchema,
|
|
420
422
|
z.lazy(() => ToolDefinitionRequireApproval2$outboundSchema),
|
|
421
423
|
]);
|
|
422
|
-
export function
|
|
423
|
-
return JSON.stringify(
|
|
424
|
+
export function fourRequireApprovalToJSON(fourRequireApproval) {
|
|
425
|
+
return JSON.stringify(FourRequireApproval$outboundSchema.parse(fourRequireApproval));
|
|
424
426
|
}
|
|
425
|
-
export function
|
|
426
|
-
return safeParse(jsonString, (x) =>
|
|
427
|
+
export function fourRequireApprovalFromJSON(jsonString) {
|
|
428
|
+
return safeParse(jsonString, (x) => FourRequireApproval$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FourRequireApproval' from JSON`);
|
|
427
429
|
}
|
|
428
430
|
/** @internal */
|
|
429
|
-
export const
|
|
431
|
+
export const ToolDefinition4AllowedTools$inboundSchema = z.union([z.array(z.string()), MCPToolFilter$inboundSchema]);
|
|
430
432
|
/** @internal */
|
|
431
|
-
export const
|
|
432
|
-
export function
|
|
433
|
-
return JSON.stringify(
|
|
433
|
+
export const ToolDefinition4AllowedTools$outboundSchema = z.union([z.array(z.string()), MCPToolFilter$outboundSchema]);
|
|
434
|
+
export function toolDefinition4AllowedToolsToJSON(toolDefinition4AllowedTools) {
|
|
435
|
+
return JSON.stringify(ToolDefinition4AllowedTools$outboundSchema.parse(toolDefinition4AllowedTools));
|
|
434
436
|
}
|
|
435
|
-
export function
|
|
436
|
-
return safeParse(jsonString, (x) =>
|
|
437
|
+
export function toolDefinition4AllowedToolsFromJSON(jsonString) {
|
|
438
|
+
return safeParse(jsonString, (x) => ToolDefinition4AllowedTools$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ToolDefinition4AllowedTools' from JSON`);
|
|
437
439
|
}
|
|
438
440
|
/** @internal */
|
|
439
|
-
export const
|
|
441
|
+
export const Four2$inboundSchema = z
|
|
440
442
|
.object({
|
|
441
|
-
type:
|
|
443
|
+
type: ToolDefinition4Type$inboundSchema,
|
|
442
444
|
server_label: z.string().optional(),
|
|
443
445
|
mcp_server_id: z.string(),
|
|
444
446
|
mcp_credential_id: z.string().optional(),
|
|
@@ -464,8 +466,8 @@ export const Three2$inboundSchema = z
|
|
|
464
466
|
});
|
|
465
467
|
});
|
|
466
468
|
/** @internal */
|
|
467
|
-
export const
|
|
468
|
-
type:
|
|
469
|
+
export const Four2$outboundSchema = z.object({
|
|
470
|
+
type: ToolDefinition4Type$outboundSchema,
|
|
469
471
|
serverLabel: z.string().optional(),
|
|
470
472
|
mcpServerId: z.string(),
|
|
471
473
|
mcpCredentialId: z.string().optional(),
|
|
@@ -490,17 +492,17 @@ export const Three2$outboundSchema = z.object({
|
|
|
490
492
|
allowedTools: "allowed_tools",
|
|
491
493
|
});
|
|
492
494
|
});
|
|
493
|
-
export function
|
|
494
|
-
return JSON.stringify(
|
|
495
|
+
export function four2ToJSON(four2) {
|
|
496
|
+
return JSON.stringify(Four2$outboundSchema.parse(four2));
|
|
495
497
|
}
|
|
496
|
-
export function
|
|
497
|
-
return safeParse(jsonString, (x) =>
|
|
498
|
+
export function four2FromJSON(jsonString) {
|
|
499
|
+
return safeParse(jsonString, (x) => Four2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Four2' from JSON`);
|
|
498
500
|
}
|
|
499
501
|
/** @internal */
|
|
500
|
-
export const
|
|
501
|
-
.nativeEnum(
|
|
502
|
+
export const FourType$inboundSchema = z
|
|
503
|
+
.nativeEnum(FourType);
|
|
502
504
|
/** @internal */
|
|
503
|
-
export const
|
|
505
|
+
export const FourType$outboundSchema = FourType$inboundSchema;
|
|
504
506
|
/** @internal */
|
|
505
507
|
export const RequireApproval2$inboundSchema = z.object({
|
|
506
508
|
always: MCPToolFilter$inboundSchema.optional(),
|
|
@@ -538,19 +540,19 @@ export function requireApprovalFromJSON(jsonString) {
|
|
|
538
540
|
return safeParse(jsonString, (x) => RequireApproval$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RequireApproval' from JSON`);
|
|
539
541
|
}
|
|
540
542
|
/** @internal */
|
|
541
|
-
export const
|
|
543
|
+
export const FourAllowedTools$inboundSchema = z.union([z.array(z.string()), MCPToolFilter$inboundSchema]);
|
|
542
544
|
/** @internal */
|
|
543
|
-
export const
|
|
544
|
-
export function
|
|
545
|
-
return JSON.stringify(
|
|
545
|
+
export const FourAllowedTools$outboundSchema = z.union([z.array(z.string()), MCPToolFilter$outboundSchema]);
|
|
546
|
+
export function fourAllowedToolsToJSON(fourAllowedTools) {
|
|
547
|
+
return JSON.stringify(FourAllowedTools$outboundSchema.parse(fourAllowedTools));
|
|
546
548
|
}
|
|
547
|
-
export function
|
|
548
|
-
return safeParse(jsonString, (x) =>
|
|
549
|
+
export function fourAllowedToolsFromJSON(jsonString) {
|
|
550
|
+
return safeParse(jsonString, (x) => FourAllowedTools$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FourAllowedTools' from JSON`);
|
|
549
551
|
}
|
|
550
552
|
/** @internal */
|
|
551
|
-
export const
|
|
553
|
+
export const Four1$inboundSchema = z
|
|
552
554
|
.object({
|
|
553
|
-
type:
|
|
555
|
+
type: FourType$inboundSchema,
|
|
554
556
|
server_label: z.string(),
|
|
555
557
|
mcp_server_id: z.string().optional(),
|
|
556
558
|
mcp_credential_id: z.string().optional(),
|
|
@@ -576,8 +578,8 @@ export const Three1$inboundSchema = z
|
|
|
576
578
|
});
|
|
577
579
|
});
|
|
578
580
|
/** @internal */
|
|
579
|
-
export const
|
|
580
|
-
type:
|
|
581
|
+
export const Four1$outboundSchema = z.object({
|
|
582
|
+
type: FourType$outboundSchema,
|
|
581
583
|
serverLabel: z.string(),
|
|
582
584
|
mcpServerId: z.string().optional(),
|
|
583
585
|
mcpCredentialId: z.string().optional(),
|
|
@@ -602,35 +604,35 @@ export const Three1$outboundSchema = z.object({
|
|
|
602
604
|
allowedTools: "allowed_tools",
|
|
603
605
|
});
|
|
604
606
|
});
|
|
605
|
-
export function
|
|
606
|
-
return JSON.stringify(
|
|
607
|
+
export function four1ToJSON(four1) {
|
|
608
|
+
return JSON.stringify(Four1$outboundSchema.parse(four1));
|
|
607
609
|
}
|
|
608
|
-
export function
|
|
609
|
-
return safeParse(jsonString, (x) =>
|
|
610
|
+
export function four1FromJSON(jsonString) {
|
|
611
|
+
return safeParse(jsonString, (x) => Four1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Four1' from JSON`);
|
|
610
612
|
}
|
|
611
613
|
/** @internal */
|
|
612
|
-
export const
|
|
613
|
-
z.lazy(() =>
|
|
614
|
-
z.lazy(() =>
|
|
614
|
+
export const ToolDefinition4$inboundSchema = z.union([
|
|
615
|
+
z.lazy(() => Four1$inboundSchema),
|
|
616
|
+
z.lazy(() => Four2$inboundSchema),
|
|
615
617
|
]);
|
|
616
618
|
/** @internal */
|
|
617
|
-
export const
|
|
618
|
-
z.lazy(() =>
|
|
619
|
-
z.lazy(() =>
|
|
619
|
+
export const ToolDefinition4$outboundSchema = z.union([
|
|
620
|
+
z.lazy(() => Four1$outboundSchema),
|
|
621
|
+
z.lazy(() => Four2$outboundSchema),
|
|
620
622
|
]);
|
|
621
|
-
export function
|
|
622
|
-
return JSON.stringify(
|
|
623
|
+
export function toolDefinition4ToJSON(toolDefinition4) {
|
|
624
|
+
return JSON.stringify(ToolDefinition4$outboundSchema.parse(toolDefinition4));
|
|
623
625
|
}
|
|
624
|
-
export function
|
|
625
|
-
return safeParse(jsonString, (x) =>
|
|
626
|
+
export function toolDefinition4FromJSON(jsonString) {
|
|
627
|
+
return safeParse(jsonString, (x) => ToolDefinition4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ToolDefinition4' from JSON`);
|
|
626
628
|
}
|
|
627
629
|
/** @internal */
|
|
628
|
-
export const
|
|
630
|
+
export const ToolDefinition3Type$inboundSchema = z.nativeEnum(ToolDefinition3Type);
|
|
629
631
|
/** @internal */
|
|
630
|
-
export const
|
|
632
|
+
export const ToolDefinition3Type$outboundSchema = ToolDefinition3Type$inboundSchema;
|
|
631
633
|
/** @internal */
|
|
632
|
-
export const
|
|
633
|
-
type:
|
|
634
|
+
export const ToolDefinition3$inboundSchema = z.object({
|
|
635
|
+
type: ToolDefinition3Type$inboundSchema,
|
|
634
636
|
name: z.string(),
|
|
635
637
|
description: z.string().optional(),
|
|
636
638
|
strict: z.boolean().optional(),
|
|
@@ -642,8 +644,8 @@ export const ToolDefinition2$inboundSchema = z.object({
|
|
|
642
644
|
});
|
|
643
645
|
});
|
|
644
646
|
/** @internal */
|
|
645
|
-
export const
|
|
646
|
-
type:
|
|
647
|
+
export const ToolDefinition3$outboundSchema = z.object({
|
|
648
|
+
type: ToolDefinition3Type$outboundSchema,
|
|
647
649
|
name: z.string(),
|
|
648
650
|
description: z.string().optional(),
|
|
649
651
|
strict: z.boolean().optional(),
|
|
@@ -654,11 +656,11 @@ export const ToolDefinition2$outboundSchema = z.object({
|
|
|
654
656
|
deferLoading: "defer_loading",
|
|
655
657
|
});
|
|
656
658
|
});
|
|
657
|
-
export function
|
|
658
|
-
return JSON.stringify(
|
|
659
|
+
export function toolDefinition3ToJSON(toolDefinition3) {
|
|
660
|
+
return JSON.stringify(ToolDefinition3$outboundSchema.parse(toolDefinition3));
|
|
659
661
|
}
|
|
660
|
-
export function
|
|
661
|
-
return safeParse(jsonString, (x) =>
|
|
662
|
+
export function toolDefinition3FromJSON(jsonString) {
|
|
663
|
+
return safeParse(jsonString, (x) => ToolDefinition3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ToolDefinition3' from JSON`);
|
|
662
664
|
}
|
|
663
665
|
/** @internal */
|
|
664
666
|
export const ToolDefinitionType$inboundSchema = z.nativeEnum(ToolDefinitionType);
|
|
@@ -669,12 +671,12 @@ export const ToolDefinitionSearchContextSize$inboundSchema = z.nativeEnum(ToolDe
|
|
|
669
671
|
/** @internal */
|
|
670
672
|
export const ToolDefinitionSearchContextSize$outboundSchema = ToolDefinitionSearchContextSize$inboundSchema;
|
|
671
673
|
/** @internal */
|
|
672
|
-
export const
|
|
674
|
+
export const ToolDefinition2Type$inboundSchema = z.nativeEnum(ToolDefinition2Type);
|
|
673
675
|
/** @internal */
|
|
674
|
-
export const
|
|
676
|
+
export const ToolDefinition2Type$outboundSchema = ToolDefinition2Type$inboundSchema;
|
|
675
677
|
/** @internal */
|
|
676
678
|
export const ToolDefinitionUserLocation$inboundSchema = z.object({
|
|
677
|
-
type:
|
|
679
|
+
type: ToolDefinition2Type$inboundSchema.optional(),
|
|
678
680
|
city: z.string().optional(),
|
|
679
681
|
country: z.string().optional(),
|
|
680
682
|
region: z.string().optional(),
|
|
@@ -682,7 +684,7 @@ export const ToolDefinitionUserLocation$inboundSchema = z.object({
|
|
|
682
684
|
});
|
|
683
685
|
/** @internal */
|
|
684
686
|
export const ToolDefinitionUserLocation$outboundSchema = z.object({
|
|
685
|
-
type:
|
|
687
|
+
type: ToolDefinition2Type$outboundSchema.optional(),
|
|
686
688
|
city: z.string().optional(),
|
|
687
689
|
country: z.string().optional(),
|
|
688
690
|
region: z.string().optional(),
|
|
@@ -717,7 +719,7 @@ export function toolDefinitionFiltersFromJSON(jsonString) {
|
|
|
717
719
|
return safeParse(jsonString, (x) => ToolDefinitionFilters$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ToolDefinitionFilters' from JSON`);
|
|
718
720
|
}
|
|
719
721
|
/** @internal */
|
|
720
|
-
export const
|
|
722
|
+
export const ToolDefinition2$inboundSchema = z.object({
|
|
721
723
|
type: ToolDefinitionType$inboundSchema,
|
|
722
724
|
search_context_size: ToolDefinitionSearchContextSize$inboundSchema.optional(),
|
|
723
725
|
user_location: z.lazy(() => ToolDefinitionUserLocation$inboundSchema)
|
|
@@ -730,7 +732,7 @@ export const ToolDefinition1$inboundSchema = z.object({
|
|
|
730
732
|
});
|
|
731
733
|
});
|
|
732
734
|
/** @internal */
|
|
733
|
-
export const
|
|
735
|
+
export const ToolDefinition2$outboundSchema = z.object({
|
|
734
736
|
type: ToolDefinitionType$outboundSchema,
|
|
735
737
|
searchContextSize: ToolDefinitionSearchContextSize$outboundSchema.optional(),
|
|
736
738
|
userLocation: z.lazy(() => ToolDefinitionUserLocation$outboundSchema)
|
|
@@ -742,36 +744,38 @@ export const ToolDefinition1$outboundSchema = z.object({
|
|
|
742
744
|
userLocation: "user_location",
|
|
743
745
|
});
|
|
744
746
|
});
|
|
745
|
-
export function
|
|
746
|
-
return JSON.stringify(
|
|
747
|
+
export function toolDefinition2ToJSON(toolDefinition2) {
|
|
748
|
+
return JSON.stringify(ToolDefinition2$outboundSchema.parse(toolDefinition2));
|
|
747
749
|
}
|
|
748
|
-
export function
|
|
749
|
-
return safeParse(jsonString, (x) =>
|
|
750
|
+
export function toolDefinition2FromJSON(jsonString) {
|
|
751
|
+
return safeParse(jsonString, (x) => ToolDefinition2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ToolDefinition2' from JSON`);
|
|
750
752
|
}
|
|
751
753
|
/** @internal */
|
|
752
754
|
export const ToolDefinition$inboundSchema = z.union([
|
|
753
|
-
z.lazy(() =>
|
|
754
|
-
|
|
755
|
-
z.lazy(() => ToolDefinition1$inboundSchema),
|
|
755
|
+
z.lazy(() => ToolDefinition3$inboundSchema),
|
|
756
|
+
FunctionToolReference$inboundSchema,
|
|
756
757
|
z.lazy(() => ToolDefinition5$inboundSchema),
|
|
758
|
+
z.lazy(() => ToolDefinition2$inboundSchema),
|
|
757
759
|
z.lazy(() => ToolDefinition6$inboundSchema),
|
|
758
760
|
z.lazy(() => Seven$inboundSchema),
|
|
761
|
+
z.lazy(() => Eight$inboundSchema),
|
|
759
762
|
z.union([
|
|
760
|
-
z.lazy(() =>
|
|
761
|
-
z.lazy(() =>
|
|
763
|
+
z.lazy(() => Four1$inboundSchema),
|
|
764
|
+
z.lazy(() => Four2$inboundSchema),
|
|
762
765
|
]),
|
|
763
766
|
]);
|
|
764
767
|
/** @internal */
|
|
765
768
|
export const ToolDefinition$outboundSchema = z.union([
|
|
766
|
-
z.lazy(() =>
|
|
767
|
-
|
|
768
|
-
z.lazy(() => ToolDefinition1$outboundSchema),
|
|
769
|
+
z.lazy(() => ToolDefinition3$outboundSchema),
|
|
770
|
+
FunctionToolReference$outboundSchema,
|
|
769
771
|
z.lazy(() => ToolDefinition5$outboundSchema),
|
|
772
|
+
z.lazy(() => ToolDefinition2$outboundSchema),
|
|
770
773
|
z.lazy(() => ToolDefinition6$outboundSchema),
|
|
771
774
|
z.lazy(() => Seven$outboundSchema),
|
|
775
|
+
z.lazy(() => Eight$outboundSchema),
|
|
772
776
|
z.union([
|
|
773
|
-
z.lazy(() =>
|
|
774
|
-
z.lazy(() =>
|
|
777
|
+
z.lazy(() => Four1$outboundSchema),
|
|
778
|
+
z.lazy(() => Four2$outboundSchema),
|
|
775
779
|
]),
|
|
776
780
|
]);
|
|
777
781
|
export function toolDefinitionToJSON(toolDefinition) {
|