@meetkai/mka1 0.54.93 → 0.54.95
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 +4882 -3799
- package/bin/mcp-server.js.map +43 -21
- 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/openaichatcompletion.d.ts +10 -0
- package/dist/commonjs/models/components/openaichatcompletion.d.ts.map +1 -1
- package/dist/commonjs/models/components/openaichatcompletion.js +8 -0
- package/dist/commonjs/models/components/openaichatcompletion.js.map +1 -1
- package/dist/commonjs/models/components/openaichatcompletionchunk.d.ts +10 -0
- package/dist/commonjs/models/components/openaichatcompletionchunk.d.ts.map +1 -1
- package/dist/commonjs/models/components/openaichatcompletionchunk.js +8 -0
- package/dist/commonjs/models/components/openaichatcompletionchunk.js.map +1 -1
- package/dist/commonjs/models/components/responseobject.d.ts +5 -0
- package/dist/commonjs/models/components/responseobject.d.ts.map +1 -1
- package/dist/commonjs/models/components/responseobject.js +4 -0
- package/dist/commonjs/models/components/responseobject.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/openaichatcompletion.d.ts +10 -0
- package/dist/esm/models/components/openaichatcompletion.d.ts.map +1 -1
- package/dist/esm/models/components/openaichatcompletion.js +8 -0
- package/dist/esm/models/components/openaichatcompletion.js.map +1 -1
- package/dist/esm/models/components/openaichatcompletionchunk.d.ts +10 -0
- package/dist/esm/models/components/openaichatcompletionchunk.d.ts.map +1 -1
- package/dist/esm/models/components/openaichatcompletionchunk.js +8 -0
- package/dist/esm/models/components/openaichatcompletionchunk.js.map +1 -1
- package/dist/esm/models/components/responseobject.d.ts +5 -0
- package/dist/esm/models/components/responseobject.d.ts.map +1 -1
- package/dist/esm/models/components/responseobject.js +4 -0
- package/dist/esm/models/components/responseobject.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/openaichatcompletion.ts +18 -0
- package/src/models/components/openaichatcompletionchunk.ts +18 -0
- package/src/models/components/responseobject.ts +9 -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
|
@@ -22,6 +22,12 @@ import {
|
|
|
22
22
|
FileSearchCompoundFilter$Outbound,
|
|
23
23
|
FileSearchCompoundFilter$outboundSchema,
|
|
24
24
|
} from "./filesearchcompoundfilter.js";
|
|
25
|
+
import {
|
|
26
|
+
FunctionToolReference,
|
|
27
|
+
FunctionToolReference$inboundSchema,
|
|
28
|
+
FunctionToolReference$Outbound,
|
|
29
|
+
FunctionToolReference$outboundSchema,
|
|
30
|
+
} from "./functiontoolreference.js";
|
|
25
31
|
import {
|
|
26
32
|
MCPToolFilter,
|
|
27
33
|
MCPToolFilter$inboundSchema,
|
|
@@ -29,10 +35,10 @@ import {
|
|
|
29
35
|
MCPToolFilter$outboundSchema,
|
|
30
36
|
} from "./mcptoolfilter.js";
|
|
31
37
|
|
|
32
|
-
export const
|
|
38
|
+
export const ToolDefinition8Type = {
|
|
33
39
|
Shell: "shell",
|
|
34
40
|
} as const;
|
|
35
|
-
export type
|
|
41
|
+
export type ToolDefinition8Type = ClosedEnum<typeof ToolDefinition8Type>;
|
|
36
42
|
|
|
37
43
|
export const ToolDefinitionEnvironmentAccess = {
|
|
38
44
|
ReadOnly: "read_only",
|
|
@@ -90,8 +96,8 @@ export type Environment =
|
|
|
90
96
|
| Environment2
|
|
91
97
|
| discriminatedUnionTypes.Unknown<"type">;
|
|
92
98
|
|
|
93
|
-
export type
|
|
94
|
-
type:
|
|
99
|
+
export type Eight = {
|
|
100
|
+
type: ToolDefinition8Type;
|
|
95
101
|
environment?:
|
|
96
102
|
| Environment1
|
|
97
103
|
| Environment2
|
|
@@ -99,33 +105,33 @@ export type Seven = {
|
|
|
99
105
|
| undefined;
|
|
100
106
|
};
|
|
101
107
|
|
|
102
|
-
export const
|
|
108
|
+
export const ToolDefinition7Type = {
|
|
103
109
|
Sleep: "sleep",
|
|
104
110
|
} as const;
|
|
105
|
-
export type
|
|
111
|
+
export type ToolDefinition7Type = ClosedEnum<typeof ToolDefinition7Type>;
|
|
106
112
|
|
|
107
|
-
export type
|
|
108
|
-
type:
|
|
113
|
+
export type Seven = {
|
|
114
|
+
type: ToolDefinition7Type;
|
|
109
115
|
};
|
|
110
116
|
|
|
111
|
-
export const
|
|
117
|
+
export const ToolDefinition6Type = {
|
|
112
118
|
FileSearch: "file_search",
|
|
113
119
|
CodeInterpreter: "code_interpreter",
|
|
114
120
|
ImageGeneration: "image_generation",
|
|
115
121
|
ComputerUsePreview: "computer_use_preview",
|
|
116
122
|
} as const;
|
|
117
|
-
export type
|
|
123
|
+
export type ToolDefinition6Type = ClosedEnum<typeof ToolDefinition6Type>;
|
|
118
124
|
|
|
119
|
-
export type
|
|
120
|
-
type:
|
|
125
|
+
export type ToolDefinition6 = {
|
|
126
|
+
type: ToolDefinition6Type;
|
|
121
127
|
};
|
|
122
128
|
|
|
123
|
-
export const
|
|
129
|
+
export const ToolDefinition5Type = {
|
|
124
130
|
FileSearch: "file_search",
|
|
125
131
|
} as const;
|
|
126
|
-
export type
|
|
132
|
+
export type ToolDefinition5Type = ClosedEnum<typeof ToolDefinition5Type>;
|
|
127
133
|
|
|
128
|
-
export type
|
|
134
|
+
export type ToolDefinition5Filters =
|
|
129
135
|
| (FileSearchComparisonFilter & { type: "eq" })
|
|
130
136
|
| (FileSearchComparisonFilter & { type: "ne" })
|
|
131
137
|
| (FileSearchComparisonFilter & { type: "gt" })
|
|
@@ -141,8 +147,8 @@ export type ToolDefinitionRankingOptions = {
|
|
|
141
147
|
scoreThreshold?: number | undefined;
|
|
142
148
|
};
|
|
143
149
|
|
|
144
|
-
export type
|
|
145
|
-
type:
|
|
150
|
+
export type ToolDefinition5 = {
|
|
151
|
+
type: ToolDefinition5Type;
|
|
146
152
|
vectorStoreIds: Array<string>;
|
|
147
153
|
filters?:
|
|
148
154
|
| (FileSearchComparisonFilter & { type: "eq" })
|
|
@@ -159,10 +165,10 @@ export type ToolDefinition4 = {
|
|
|
159
165
|
rankingOptions?: ToolDefinitionRankingOptions | undefined;
|
|
160
166
|
};
|
|
161
167
|
|
|
162
|
-
export const
|
|
168
|
+
export const ToolDefinition4Type = {
|
|
163
169
|
Mcp: "mcp",
|
|
164
170
|
} as const;
|
|
165
|
-
export type
|
|
171
|
+
export type ToolDefinition4Type = ClosedEnum<typeof ToolDefinition4Type>;
|
|
166
172
|
|
|
167
173
|
export type ToolDefinitionRequireApproval2 = {
|
|
168
174
|
always?: MCPToolFilter | undefined;
|
|
@@ -177,14 +183,14 @@ export type ToolDefinitionRequireApproval1 = ClosedEnum<
|
|
|
177
183
|
typeof ToolDefinitionRequireApproval1
|
|
178
184
|
>;
|
|
179
185
|
|
|
180
|
-
export type
|
|
186
|
+
export type FourRequireApproval =
|
|
181
187
|
| ToolDefinitionRequireApproval1
|
|
182
188
|
| ToolDefinitionRequireApproval2;
|
|
183
189
|
|
|
184
|
-
export type
|
|
190
|
+
export type ToolDefinition4AllowedTools = Array<string> | MCPToolFilter;
|
|
185
191
|
|
|
186
|
-
export type
|
|
187
|
-
type:
|
|
192
|
+
export type Four2 = {
|
|
193
|
+
type: ToolDefinition4Type;
|
|
188
194
|
serverLabel?: string | undefined;
|
|
189
195
|
mcpServerId: string;
|
|
190
196
|
mcpCredentialId?: string | undefined;
|
|
@@ -199,10 +205,10 @@ export type Three2 = {
|
|
|
199
205
|
headers?: { [k: string]: string } | undefined;
|
|
200
206
|
};
|
|
201
207
|
|
|
202
|
-
export const
|
|
208
|
+
export const FourType = {
|
|
203
209
|
Mcp: "mcp",
|
|
204
210
|
} as const;
|
|
205
|
-
export type
|
|
211
|
+
export type FourType = ClosedEnum<typeof FourType>;
|
|
206
212
|
|
|
207
213
|
export type RequireApproval2 = {
|
|
208
214
|
always?: MCPToolFilter | undefined;
|
|
@@ -217,10 +223,10 @@ export type RequireApproval1 = ClosedEnum<typeof RequireApproval1>;
|
|
|
217
223
|
|
|
218
224
|
export type RequireApproval = RequireApproval1 | RequireApproval2;
|
|
219
225
|
|
|
220
|
-
export type
|
|
226
|
+
export type FourAllowedTools = Array<string> | MCPToolFilter;
|
|
221
227
|
|
|
222
|
-
export type
|
|
223
|
-
type:
|
|
228
|
+
export type Four1 = {
|
|
229
|
+
type: FourType;
|
|
224
230
|
serverLabel: string;
|
|
225
231
|
mcpServerId?: string | undefined;
|
|
226
232
|
mcpCredentialId?: string | undefined;
|
|
@@ -232,15 +238,15 @@ export type Three1 = {
|
|
|
232
238
|
headers?: { [k: string]: string } | undefined;
|
|
233
239
|
};
|
|
234
240
|
|
|
235
|
-
export type
|
|
241
|
+
export type ToolDefinition4 = Four1 | Four2;
|
|
236
242
|
|
|
237
|
-
export const
|
|
243
|
+
export const ToolDefinition3Type = {
|
|
238
244
|
Function: "function",
|
|
239
245
|
} as const;
|
|
240
|
-
export type
|
|
246
|
+
export type ToolDefinition3Type = ClosedEnum<typeof ToolDefinition3Type>;
|
|
241
247
|
|
|
242
|
-
export type
|
|
243
|
-
type:
|
|
248
|
+
export type ToolDefinition3 = {
|
|
249
|
+
type: ToolDefinition3Type;
|
|
244
250
|
name: string;
|
|
245
251
|
description?: string | undefined;
|
|
246
252
|
strict?: boolean | undefined;
|
|
@@ -265,13 +271,13 @@ export type ToolDefinitionSearchContextSize = ClosedEnum<
|
|
|
265
271
|
typeof ToolDefinitionSearchContextSize
|
|
266
272
|
>;
|
|
267
273
|
|
|
268
|
-
export const
|
|
274
|
+
export const ToolDefinition2Type = {
|
|
269
275
|
Approximate: "approximate",
|
|
270
276
|
} as const;
|
|
271
|
-
export type
|
|
277
|
+
export type ToolDefinition2Type = ClosedEnum<typeof ToolDefinition2Type>;
|
|
272
278
|
|
|
273
279
|
export type ToolDefinitionUserLocation = {
|
|
274
|
-
type?:
|
|
280
|
+
type?: ToolDefinition2Type | undefined;
|
|
275
281
|
city?: string | undefined;
|
|
276
282
|
country?: string | undefined;
|
|
277
283
|
region?: string | undefined;
|
|
@@ -282,7 +288,7 @@ export type ToolDefinitionFilters = {
|
|
|
282
288
|
allowedDomains?: Array<string> | undefined;
|
|
283
289
|
};
|
|
284
290
|
|
|
285
|
-
export type
|
|
291
|
+
export type ToolDefinition2 = {
|
|
286
292
|
type: ToolDefinitionType;
|
|
287
293
|
searchContextSize?: ToolDefinitionSearchContextSize | undefined;
|
|
288
294
|
userLocation?: ToolDefinitionUserLocation | undefined;
|
|
@@ -290,23 +296,24 @@ export type ToolDefinition1 = {
|
|
|
290
296
|
};
|
|
291
297
|
|
|
292
298
|
export type ToolDefinition =
|
|
293
|
-
|
|
|
294
|
-
|
|
|
295
|
-
| ToolDefinition1
|
|
299
|
+
| ToolDefinition3
|
|
300
|
+
| FunctionToolReference
|
|
296
301
|
| ToolDefinition5
|
|
302
|
+
| ToolDefinition2
|
|
297
303
|
| ToolDefinition6
|
|
298
304
|
| Seven
|
|
299
|
-
|
|
|
300
|
-
|
|
|
305
|
+
| Eight
|
|
306
|
+
| Four1
|
|
307
|
+
| Four2;
|
|
301
308
|
|
|
302
309
|
/** @internal */
|
|
303
|
-
export const
|
|
304
|
-
typeof
|
|
305
|
-
> = z.nativeEnum(
|
|
310
|
+
export const ToolDefinition8Type$inboundSchema: z.ZodNativeEnum<
|
|
311
|
+
typeof ToolDefinition8Type
|
|
312
|
+
> = z.nativeEnum(ToolDefinition8Type);
|
|
306
313
|
/** @internal */
|
|
307
|
-
export const
|
|
308
|
-
typeof
|
|
309
|
-
> =
|
|
314
|
+
export const ToolDefinition8Type$outboundSchema: z.ZodNativeEnum<
|
|
315
|
+
typeof ToolDefinition8Type
|
|
316
|
+
> = ToolDefinition8Type$inboundSchema;
|
|
310
317
|
|
|
311
318
|
/** @internal */
|
|
312
319
|
export const ToolDefinitionEnvironmentAccess$inboundSchema: z.ZodNativeEnum<
|
|
@@ -593,33 +600,74 @@ export function environmentFromJSON(
|
|
|
593
600
|
}
|
|
594
601
|
|
|
595
602
|
/** @internal */
|
|
596
|
-
export const
|
|
603
|
+
export const Eight$inboundSchema: z.ZodType<Eight, z.ZodTypeDef, unknown> = z
|
|
597
604
|
.object({
|
|
598
|
-
type:
|
|
605
|
+
type: ToolDefinition8Type$inboundSchema,
|
|
599
606
|
environment: discriminatedUnion("type", {
|
|
600
607
|
container_auto: z.lazy(() => Environment1$inboundSchema),
|
|
601
608
|
container_reference: z.lazy(() => Environment2$inboundSchema),
|
|
602
609
|
}).optional(),
|
|
603
610
|
});
|
|
604
611
|
/** @internal */
|
|
605
|
-
export type
|
|
612
|
+
export type Eight$Outbound = {
|
|
606
613
|
type: string;
|
|
607
614
|
environment?: Environment1$Outbound | Environment2$Outbound | undefined;
|
|
608
615
|
};
|
|
609
616
|
|
|
610
617
|
/** @internal */
|
|
611
|
-
export const
|
|
612
|
-
|
|
618
|
+
export const Eight$outboundSchema: z.ZodType<
|
|
619
|
+
Eight$Outbound,
|
|
613
620
|
z.ZodTypeDef,
|
|
614
|
-
|
|
621
|
+
Eight
|
|
615
622
|
> = z.object({
|
|
616
|
-
type:
|
|
623
|
+
type: ToolDefinition8Type$outboundSchema,
|
|
617
624
|
environment: z.union([
|
|
618
625
|
z.lazy(() => Environment1$outboundSchema),
|
|
619
626
|
z.lazy(() => Environment2$outboundSchema),
|
|
620
627
|
]).optional(),
|
|
621
628
|
});
|
|
622
629
|
|
|
630
|
+
export function eightToJSON(eight: Eight): string {
|
|
631
|
+
return JSON.stringify(Eight$outboundSchema.parse(eight));
|
|
632
|
+
}
|
|
633
|
+
export function eightFromJSON(
|
|
634
|
+
jsonString: string,
|
|
635
|
+
): SafeParseResult<Eight, SDKValidationError> {
|
|
636
|
+
return safeParse(
|
|
637
|
+
jsonString,
|
|
638
|
+
(x) => Eight$inboundSchema.parse(JSON.parse(x)),
|
|
639
|
+
`Failed to parse 'Eight' from JSON`,
|
|
640
|
+
);
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
/** @internal */
|
|
644
|
+
export const ToolDefinition7Type$inboundSchema: z.ZodNativeEnum<
|
|
645
|
+
typeof ToolDefinition7Type
|
|
646
|
+
> = z.nativeEnum(ToolDefinition7Type);
|
|
647
|
+
/** @internal */
|
|
648
|
+
export const ToolDefinition7Type$outboundSchema: z.ZodNativeEnum<
|
|
649
|
+
typeof ToolDefinition7Type
|
|
650
|
+
> = ToolDefinition7Type$inboundSchema;
|
|
651
|
+
|
|
652
|
+
/** @internal */
|
|
653
|
+
export const Seven$inboundSchema: z.ZodType<Seven, z.ZodTypeDef, unknown> = z
|
|
654
|
+
.object({
|
|
655
|
+
type: ToolDefinition7Type$inboundSchema,
|
|
656
|
+
});
|
|
657
|
+
/** @internal */
|
|
658
|
+
export type Seven$Outbound = {
|
|
659
|
+
type: string;
|
|
660
|
+
};
|
|
661
|
+
|
|
662
|
+
/** @internal */
|
|
663
|
+
export const Seven$outboundSchema: z.ZodType<
|
|
664
|
+
Seven$Outbound,
|
|
665
|
+
z.ZodTypeDef,
|
|
666
|
+
Seven
|
|
667
|
+
> = z.object({
|
|
668
|
+
type: ToolDefinition7Type$outboundSchema,
|
|
669
|
+
});
|
|
670
|
+
|
|
623
671
|
export function sevenToJSON(seven: Seven): string {
|
|
624
672
|
return JSON.stringify(Seven$outboundSchema.parse(seven));
|
|
625
673
|
}
|
|
@@ -689,54 +737,8 @@ export const ToolDefinition5Type$outboundSchema: z.ZodNativeEnum<
|
|
|
689
737
|
> = ToolDefinition5Type$inboundSchema;
|
|
690
738
|
|
|
691
739
|
/** @internal */
|
|
692
|
-
export const
|
|
693
|
-
|
|
694
|
-
z.ZodTypeDef,
|
|
695
|
-
unknown
|
|
696
|
-
> = z.object({
|
|
697
|
-
type: ToolDefinition5Type$inboundSchema,
|
|
698
|
-
});
|
|
699
|
-
/** @internal */
|
|
700
|
-
export type ToolDefinition5$Outbound = {
|
|
701
|
-
type: string;
|
|
702
|
-
};
|
|
703
|
-
|
|
704
|
-
/** @internal */
|
|
705
|
-
export const ToolDefinition5$outboundSchema: z.ZodType<
|
|
706
|
-
ToolDefinition5$Outbound,
|
|
707
|
-
z.ZodTypeDef,
|
|
708
|
-
ToolDefinition5
|
|
709
|
-
> = z.object({
|
|
710
|
-
type: ToolDefinition5Type$outboundSchema,
|
|
711
|
-
});
|
|
712
|
-
|
|
713
|
-
export function toolDefinition5ToJSON(
|
|
714
|
-
toolDefinition5: ToolDefinition5,
|
|
715
|
-
): string {
|
|
716
|
-
return JSON.stringify(ToolDefinition5$outboundSchema.parse(toolDefinition5));
|
|
717
|
-
}
|
|
718
|
-
export function toolDefinition5FromJSON(
|
|
719
|
-
jsonString: string,
|
|
720
|
-
): SafeParseResult<ToolDefinition5, SDKValidationError> {
|
|
721
|
-
return safeParse(
|
|
722
|
-
jsonString,
|
|
723
|
-
(x) => ToolDefinition5$inboundSchema.parse(JSON.parse(x)),
|
|
724
|
-
`Failed to parse 'ToolDefinition5' from JSON`,
|
|
725
|
-
);
|
|
726
|
-
}
|
|
727
|
-
|
|
728
|
-
/** @internal */
|
|
729
|
-
export const ToolDefinition4Type$inboundSchema: z.ZodNativeEnum<
|
|
730
|
-
typeof ToolDefinition4Type
|
|
731
|
-
> = z.nativeEnum(ToolDefinition4Type);
|
|
732
|
-
/** @internal */
|
|
733
|
-
export const ToolDefinition4Type$outboundSchema: z.ZodNativeEnum<
|
|
734
|
-
typeof ToolDefinition4Type
|
|
735
|
-
> = ToolDefinition4Type$inboundSchema;
|
|
736
|
-
|
|
737
|
-
/** @internal */
|
|
738
|
-
export const ToolDefinition4Filters$inboundSchema: z.ZodType<
|
|
739
|
-
ToolDefinition4Filters,
|
|
740
|
+
export const ToolDefinition5Filters$inboundSchema: z.ZodType<
|
|
741
|
+
ToolDefinition5Filters,
|
|
740
742
|
z.ZodTypeDef,
|
|
741
743
|
unknown
|
|
742
744
|
> = discriminatedUnion("type", {
|
|
@@ -766,7 +768,7 @@ export const ToolDefinition4Filters$inboundSchema: z.ZodType<
|
|
|
766
768
|
),
|
|
767
769
|
});
|
|
768
770
|
/** @internal */
|
|
769
|
-
export type
|
|
771
|
+
export type ToolDefinition5Filters$Outbound =
|
|
770
772
|
| (FileSearchComparisonFilter$Outbound & { type: "eq" })
|
|
771
773
|
| (FileSearchComparisonFilter$Outbound & { type: "ne" })
|
|
772
774
|
| (FileSearchComparisonFilter$Outbound & { type: "gt" })
|
|
@@ -777,10 +779,10 @@ export type ToolDefinition4Filters$Outbound =
|
|
|
777
779
|
| (FileSearchCompoundFilter$Outbound & { type: "or" });
|
|
778
780
|
|
|
779
781
|
/** @internal */
|
|
780
|
-
export const
|
|
781
|
-
|
|
782
|
+
export const ToolDefinition5Filters$outboundSchema: z.ZodType<
|
|
783
|
+
ToolDefinition5Filters$Outbound,
|
|
782
784
|
z.ZodTypeDef,
|
|
783
|
-
|
|
785
|
+
ToolDefinition5Filters
|
|
784
786
|
> = z.union([
|
|
785
787
|
FileSearchComparisonFilter$outboundSchema.and(
|
|
786
788
|
z.object({ type: z.literal("eq") }),
|
|
@@ -808,20 +810,20 @@ export const ToolDefinition4Filters$outboundSchema: z.ZodType<
|
|
|
808
810
|
),
|
|
809
811
|
]);
|
|
810
812
|
|
|
811
|
-
export function
|
|
812
|
-
|
|
813
|
+
export function toolDefinition5FiltersToJSON(
|
|
814
|
+
toolDefinition5Filters: ToolDefinition5Filters,
|
|
813
815
|
): string {
|
|
814
816
|
return JSON.stringify(
|
|
815
|
-
|
|
817
|
+
ToolDefinition5Filters$outboundSchema.parse(toolDefinition5Filters),
|
|
816
818
|
);
|
|
817
819
|
}
|
|
818
|
-
export function
|
|
820
|
+
export function toolDefinition5FiltersFromJSON(
|
|
819
821
|
jsonString: string,
|
|
820
|
-
): SafeParseResult<
|
|
822
|
+
): SafeParseResult<ToolDefinition5Filters, SDKValidationError> {
|
|
821
823
|
return safeParse(
|
|
822
824
|
jsonString,
|
|
823
|
-
(x) =>
|
|
824
|
-
`Failed to parse '
|
|
825
|
+
(x) => ToolDefinition5Filters$inboundSchema.parse(JSON.parse(x)),
|
|
826
|
+
`Failed to parse 'ToolDefinition5Filters' from JSON`,
|
|
825
827
|
);
|
|
826
828
|
}
|
|
827
829
|
|
|
@@ -878,12 +880,12 @@ export function toolDefinitionRankingOptionsFromJSON(
|
|
|
878
880
|
}
|
|
879
881
|
|
|
880
882
|
/** @internal */
|
|
881
|
-
export const
|
|
882
|
-
|
|
883
|
+
export const ToolDefinition5$inboundSchema: z.ZodType<
|
|
884
|
+
ToolDefinition5,
|
|
883
885
|
z.ZodTypeDef,
|
|
884
886
|
unknown
|
|
885
887
|
> = z.object({
|
|
886
|
-
type:
|
|
888
|
+
type: ToolDefinition5Type$inboundSchema,
|
|
887
889
|
vector_store_ids: z.array(z.string()),
|
|
888
890
|
filters: discriminatedUnion("type", {
|
|
889
891
|
eq: FileSearchComparisonFilter$inboundSchema.and(
|
|
@@ -922,7 +924,7 @@ export const ToolDefinition4$inboundSchema: z.ZodType<
|
|
|
922
924
|
});
|
|
923
925
|
});
|
|
924
926
|
/** @internal */
|
|
925
|
-
export type
|
|
927
|
+
export type ToolDefinition5$Outbound = {
|
|
926
928
|
type: string;
|
|
927
929
|
vector_store_ids: Array<string>;
|
|
928
930
|
filters?:
|
|
@@ -940,12 +942,12 @@ export type ToolDefinition4$Outbound = {
|
|
|
940
942
|
};
|
|
941
943
|
|
|
942
944
|
/** @internal */
|
|
943
|
-
export const
|
|
944
|
-
|
|
945
|
+
export const ToolDefinition5$outboundSchema: z.ZodType<
|
|
946
|
+
ToolDefinition5$Outbound,
|
|
945
947
|
z.ZodTypeDef,
|
|
946
|
-
|
|
948
|
+
ToolDefinition5
|
|
947
949
|
> = z.object({
|
|
948
|
-
type:
|
|
950
|
+
type: ToolDefinition5Type$outboundSchema,
|
|
949
951
|
vectorStoreIds: z.array(z.string()),
|
|
950
952
|
filters: z.union([
|
|
951
953
|
FileSearchComparisonFilter$outboundSchema.and(
|
|
@@ -984,29 +986,29 @@ export const ToolDefinition4$outboundSchema: z.ZodType<
|
|
|
984
986
|
});
|
|
985
987
|
});
|
|
986
988
|
|
|
987
|
-
export function
|
|
988
|
-
|
|
989
|
+
export function toolDefinition5ToJSON(
|
|
990
|
+
toolDefinition5: ToolDefinition5,
|
|
989
991
|
): string {
|
|
990
|
-
return JSON.stringify(
|
|
992
|
+
return JSON.stringify(ToolDefinition5$outboundSchema.parse(toolDefinition5));
|
|
991
993
|
}
|
|
992
|
-
export function
|
|
994
|
+
export function toolDefinition5FromJSON(
|
|
993
995
|
jsonString: string,
|
|
994
|
-
): SafeParseResult<
|
|
996
|
+
): SafeParseResult<ToolDefinition5, SDKValidationError> {
|
|
995
997
|
return safeParse(
|
|
996
998
|
jsonString,
|
|
997
|
-
(x) =>
|
|
998
|
-
`Failed to parse '
|
|
999
|
+
(x) => ToolDefinition5$inboundSchema.parse(JSON.parse(x)),
|
|
1000
|
+
`Failed to parse 'ToolDefinition5' from JSON`,
|
|
999
1001
|
);
|
|
1000
1002
|
}
|
|
1001
1003
|
|
|
1002
1004
|
/** @internal */
|
|
1003
|
-
export const
|
|
1004
|
-
typeof
|
|
1005
|
-
> = z.nativeEnum(
|
|
1005
|
+
export const ToolDefinition4Type$inboundSchema: z.ZodNativeEnum<
|
|
1006
|
+
typeof ToolDefinition4Type
|
|
1007
|
+
> = z.nativeEnum(ToolDefinition4Type);
|
|
1006
1008
|
/** @internal */
|
|
1007
|
-
export const
|
|
1008
|
-
typeof
|
|
1009
|
-
> =
|
|
1009
|
+
export const ToolDefinition4Type$outboundSchema: z.ZodNativeEnum<
|
|
1010
|
+
typeof ToolDefinition4Type
|
|
1011
|
+
> = ToolDefinition4Type$inboundSchema;
|
|
1010
1012
|
|
|
1011
1013
|
/** @internal */
|
|
1012
1014
|
export const ToolDefinitionRequireApproval2$inboundSchema: z.ZodType<
|
|
@@ -1062,8 +1064,8 @@ export const ToolDefinitionRequireApproval1$outboundSchema: z.ZodNativeEnum<
|
|
|
1062
1064
|
> = ToolDefinitionRequireApproval1$inboundSchema;
|
|
1063
1065
|
|
|
1064
1066
|
/** @internal */
|
|
1065
|
-
export const
|
|
1066
|
-
|
|
1067
|
+
export const FourRequireApproval$inboundSchema: z.ZodType<
|
|
1068
|
+
FourRequireApproval,
|
|
1067
1069
|
z.ZodTypeDef,
|
|
1068
1070
|
unknown
|
|
1069
1071
|
> = z.union([
|
|
@@ -1071,78 +1073,78 @@ export const ThreeRequireApproval$inboundSchema: z.ZodType<
|
|
|
1071
1073
|
z.lazy(() => ToolDefinitionRequireApproval2$inboundSchema),
|
|
1072
1074
|
]);
|
|
1073
1075
|
/** @internal */
|
|
1074
|
-
export type
|
|
1076
|
+
export type FourRequireApproval$Outbound =
|
|
1075
1077
|
| string
|
|
1076
1078
|
| ToolDefinitionRequireApproval2$Outbound;
|
|
1077
1079
|
|
|
1078
1080
|
/** @internal */
|
|
1079
|
-
export const
|
|
1080
|
-
|
|
1081
|
+
export const FourRequireApproval$outboundSchema: z.ZodType<
|
|
1082
|
+
FourRequireApproval$Outbound,
|
|
1081
1083
|
z.ZodTypeDef,
|
|
1082
|
-
|
|
1084
|
+
FourRequireApproval
|
|
1083
1085
|
> = z.union([
|
|
1084
1086
|
ToolDefinitionRequireApproval1$outboundSchema,
|
|
1085
1087
|
z.lazy(() => ToolDefinitionRequireApproval2$outboundSchema),
|
|
1086
1088
|
]);
|
|
1087
1089
|
|
|
1088
|
-
export function
|
|
1089
|
-
|
|
1090
|
+
export function fourRequireApprovalToJSON(
|
|
1091
|
+
fourRequireApproval: FourRequireApproval,
|
|
1090
1092
|
): string {
|
|
1091
1093
|
return JSON.stringify(
|
|
1092
|
-
|
|
1094
|
+
FourRequireApproval$outboundSchema.parse(fourRequireApproval),
|
|
1093
1095
|
);
|
|
1094
1096
|
}
|
|
1095
|
-
export function
|
|
1097
|
+
export function fourRequireApprovalFromJSON(
|
|
1096
1098
|
jsonString: string,
|
|
1097
|
-
): SafeParseResult<
|
|
1099
|
+
): SafeParseResult<FourRequireApproval, SDKValidationError> {
|
|
1098
1100
|
return safeParse(
|
|
1099
1101
|
jsonString,
|
|
1100
|
-
(x) =>
|
|
1101
|
-
`Failed to parse '
|
|
1102
|
+
(x) => FourRequireApproval$inboundSchema.parse(JSON.parse(x)),
|
|
1103
|
+
`Failed to parse 'FourRequireApproval' from JSON`,
|
|
1102
1104
|
);
|
|
1103
1105
|
}
|
|
1104
1106
|
|
|
1105
1107
|
/** @internal */
|
|
1106
|
-
export const
|
|
1107
|
-
|
|
1108
|
+
export const ToolDefinition4AllowedTools$inboundSchema: z.ZodType<
|
|
1109
|
+
ToolDefinition4AllowedTools,
|
|
1108
1110
|
z.ZodTypeDef,
|
|
1109
1111
|
unknown
|
|
1110
1112
|
> = z.union([z.array(z.string()), MCPToolFilter$inboundSchema]);
|
|
1111
1113
|
/** @internal */
|
|
1112
|
-
export type
|
|
1114
|
+
export type ToolDefinition4AllowedTools$Outbound =
|
|
1113
1115
|
| Array<string>
|
|
1114
1116
|
| MCPToolFilter$Outbound;
|
|
1115
1117
|
|
|
1116
1118
|
/** @internal */
|
|
1117
|
-
export const
|
|
1118
|
-
|
|
1119
|
+
export const ToolDefinition4AllowedTools$outboundSchema: z.ZodType<
|
|
1120
|
+
ToolDefinition4AllowedTools$Outbound,
|
|
1119
1121
|
z.ZodTypeDef,
|
|
1120
|
-
|
|
1122
|
+
ToolDefinition4AllowedTools
|
|
1121
1123
|
> = z.union([z.array(z.string()), MCPToolFilter$outboundSchema]);
|
|
1122
1124
|
|
|
1123
|
-
export function
|
|
1124
|
-
|
|
1125
|
+
export function toolDefinition4AllowedToolsToJSON(
|
|
1126
|
+
toolDefinition4AllowedTools: ToolDefinition4AllowedTools,
|
|
1125
1127
|
): string {
|
|
1126
1128
|
return JSON.stringify(
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
+
ToolDefinition4AllowedTools$outboundSchema.parse(
|
|
1130
|
+
toolDefinition4AllowedTools,
|
|
1129
1131
|
),
|
|
1130
1132
|
);
|
|
1131
1133
|
}
|
|
1132
|
-
export function
|
|
1134
|
+
export function toolDefinition4AllowedToolsFromJSON(
|
|
1133
1135
|
jsonString: string,
|
|
1134
|
-
): SafeParseResult<
|
|
1136
|
+
): SafeParseResult<ToolDefinition4AllowedTools, SDKValidationError> {
|
|
1135
1137
|
return safeParse(
|
|
1136
1138
|
jsonString,
|
|
1137
|
-
(x) =>
|
|
1138
|
-
`Failed to parse '
|
|
1139
|
+
(x) => ToolDefinition4AllowedTools$inboundSchema.parse(JSON.parse(x)),
|
|
1140
|
+
`Failed to parse 'ToolDefinition4AllowedTools' from JSON`,
|
|
1139
1141
|
);
|
|
1140
1142
|
}
|
|
1141
1143
|
|
|
1142
1144
|
/** @internal */
|
|
1143
|
-
export const
|
|
1145
|
+
export const Four2$inboundSchema: z.ZodType<Four2, z.ZodTypeDef, unknown> = z
|
|
1144
1146
|
.object({
|
|
1145
|
-
type:
|
|
1147
|
+
type: ToolDefinition4Type$inboundSchema,
|
|
1146
1148
|
server_label: z.string().optional(),
|
|
1147
1149
|
mcp_server_id: z.string(),
|
|
1148
1150
|
mcp_credential_id: z.string().optional(),
|
|
@@ -1168,7 +1170,7 @@ export const Three2$inboundSchema: z.ZodType<Three2, z.ZodTypeDef, unknown> = z
|
|
|
1168
1170
|
});
|
|
1169
1171
|
});
|
|
1170
1172
|
/** @internal */
|
|
1171
|
-
export type
|
|
1173
|
+
export type Four2$Outbound = {
|
|
1172
1174
|
type: string;
|
|
1173
1175
|
server_label?: string | undefined;
|
|
1174
1176
|
mcp_server_id: string;
|
|
@@ -1185,12 +1187,12 @@ export type Three2$Outbound = {
|
|
|
1185
1187
|
};
|
|
1186
1188
|
|
|
1187
1189
|
/** @internal */
|
|
1188
|
-
export const
|
|
1189
|
-
|
|
1190
|
+
export const Four2$outboundSchema: z.ZodType<
|
|
1191
|
+
Four2$Outbound,
|
|
1190
1192
|
z.ZodTypeDef,
|
|
1191
|
-
|
|
1193
|
+
Four2
|
|
1192
1194
|
> = z.object({
|
|
1193
|
-
type:
|
|
1195
|
+
type: ToolDefinition4Type$outboundSchema,
|
|
1194
1196
|
serverLabel: z.string().optional(),
|
|
1195
1197
|
mcpServerId: z.string(),
|
|
1196
1198
|
mcpCredentialId: z.string().optional(),
|
|
@@ -1216,25 +1218,25 @@ export const Three2$outboundSchema: z.ZodType<
|
|
|
1216
1218
|
});
|
|
1217
1219
|
});
|
|
1218
1220
|
|
|
1219
|
-
export function
|
|
1220
|
-
return JSON.stringify(
|
|
1221
|
+
export function four2ToJSON(four2: Four2): string {
|
|
1222
|
+
return JSON.stringify(Four2$outboundSchema.parse(four2));
|
|
1221
1223
|
}
|
|
1222
|
-
export function
|
|
1224
|
+
export function four2FromJSON(
|
|
1223
1225
|
jsonString: string,
|
|
1224
|
-
): SafeParseResult<
|
|
1226
|
+
): SafeParseResult<Four2, SDKValidationError> {
|
|
1225
1227
|
return safeParse(
|
|
1226
1228
|
jsonString,
|
|
1227
|
-
(x) =>
|
|
1228
|
-
`Failed to parse '
|
|
1229
|
+
(x) => Four2$inboundSchema.parse(JSON.parse(x)),
|
|
1230
|
+
`Failed to parse 'Four2' from JSON`,
|
|
1229
1231
|
);
|
|
1230
1232
|
}
|
|
1231
1233
|
|
|
1232
1234
|
/** @internal */
|
|
1233
|
-
export const
|
|
1234
|
-
.nativeEnum(
|
|
1235
|
+
export const FourType$inboundSchema: z.ZodNativeEnum<typeof FourType> = z
|
|
1236
|
+
.nativeEnum(FourType);
|
|
1235
1237
|
/** @internal */
|
|
1236
|
-
export const
|
|
1237
|
-
|
|
1238
|
+
export const FourType$outboundSchema: z.ZodNativeEnum<typeof FourType> =
|
|
1239
|
+
FourType$inboundSchema;
|
|
1238
1240
|
|
|
1239
1241
|
/** @internal */
|
|
1240
1242
|
export const RequireApproval2$inboundSchema: z.ZodType<
|
|
@@ -1325,42 +1327,42 @@ export function requireApprovalFromJSON(
|
|
|
1325
1327
|
}
|
|
1326
1328
|
|
|
1327
1329
|
/** @internal */
|
|
1328
|
-
export const
|
|
1329
|
-
|
|
1330
|
+
export const FourAllowedTools$inboundSchema: z.ZodType<
|
|
1331
|
+
FourAllowedTools,
|
|
1330
1332
|
z.ZodTypeDef,
|
|
1331
1333
|
unknown
|
|
1332
1334
|
> = z.union([z.array(z.string()), MCPToolFilter$inboundSchema]);
|
|
1333
1335
|
/** @internal */
|
|
1334
|
-
export type
|
|
1336
|
+
export type FourAllowedTools$Outbound = Array<string> | MCPToolFilter$Outbound;
|
|
1335
1337
|
|
|
1336
1338
|
/** @internal */
|
|
1337
|
-
export const
|
|
1338
|
-
|
|
1339
|
+
export const FourAllowedTools$outboundSchema: z.ZodType<
|
|
1340
|
+
FourAllowedTools$Outbound,
|
|
1339
1341
|
z.ZodTypeDef,
|
|
1340
|
-
|
|
1342
|
+
FourAllowedTools
|
|
1341
1343
|
> = z.union([z.array(z.string()), MCPToolFilter$outboundSchema]);
|
|
1342
1344
|
|
|
1343
|
-
export function
|
|
1344
|
-
|
|
1345
|
+
export function fourAllowedToolsToJSON(
|
|
1346
|
+
fourAllowedTools: FourAllowedTools,
|
|
1345
1347
|
): string {
|
|
1346
1348
|
return JSON.stringify(
|
|
1347
|
-
|
|
1349
|
+
FourAllowedTools$outboundSchema.parse(fourAllowedTools),
|
|
1348
1350
|
);
|
|
1349
1351
|
}
|
|
1350
|
-
export function
|
|
1352
|
+
export function fourAllowedToolsFromJSON(
|
|
1351
1353
|
jsonString: string,
|
|
1352
|
-
): SafeParseResult<
|
|
1354
|
+
): SafeParseResult<FourAllowedTools, SDKValidationError> {
|
|
1353
1355
|
return safeParse(
|
|
1354
1356
|
jsonString,
|
|
1355
|
-
(x) =>
|
|
1356
|
-
`Failed to parse '
|
|
1357
|
+
(x) => FourAllowedTools$inboundSchema.parse(JSON.parse(x)),
|
|
1358
|
+
`Failed to parse 'FourAllowedTools' from JSON`,
|
|
1357
1359
|
);
|
|
1358
1360
|
}
|
|
1359
1361
|
|
|
1360
1362
|
/** @internal */
|
|
1361
|
-
export const
|
|
1363
|
+
export const Four1$inboundSchema: z.ZodType<Four1, z.ZodTypeDef, unknown> = z
|
|
1362
1364
|
.object({
|
|
1363
|
-
type:
|
|
1365
|
+
type: FourType$inboundSchema,
|
|
1364
1366
|
server_label: z.string(),
|
|
1365
1367
|
mcp_server_id: z.string().optional(),
|
|
1366
1368
|
mcp_credential_id: z.string().optional(),
|
|
@@ -1386,7 +1388,7 @@ export const Three1$inboundSchema: z.ZodType<Three1, z.ZodTypeDef, unknown> = z
|
|
|
1386
1388
|
});
|
|
1387
1389
|
});
|
|
1388
1390
|
/** @internal */
|
|
1389
|
-
export type
|
|
1391
|
+
export type Four1$Outbound = {
|
|
1390
1392
|
type: string;
|
|
1391
1393
|
server_label: string;
|
|
1392
1394
|
mcp_server_id?: string | undefined;
|
|
@@ -1400,12 +1402,12 @@ export type Three1$Outbound = {
|
|
|
1400
1402
|
};
|
|
1401
1403
|
|
|
1402
1404
|
/** @internal */
|
|
1403
|
-
export const
|
|
1404
|
-
|
|
1405
|
+
export const Four1$outboundSchema: z.ZodType<
|
|
1406
|
+
Four1$Outbound,
|
|
1405
1407
|
z.ZodTypeDef,
|
|
1406
|
-
|
|
1408
|
+
Four1
|
|
1407
1409
|
> = z.object({
|
|
1408
|
-
type:
|
|
1410
|
+
type: FourType$outboundSchema,
|
|
1409
1411
|
serverLabel: z.string(),
|
|
1410
1412
|
mcpServerId: z.string().optional(),
|
|
1411
1413
|
mcpCredentialId: z.string().optional(),
|
|
@@ -1431,72 +1433,72 @@ export const Three1$outboundSchema: z.ZodType<
|
|
|
1431
1433
|
});
|
|
1432
1434
|
});
|
|
1433
1435
|
|
|
1434
|
-
export function
|
|
1435
|
-
return JSON.stringify(
|
|
1436
|
+
export function four1ToJSON(four1: Four1): string {
|
|
1437
|
+
return JSON.stringify(Four1$outboundSchema.parse(four1));
|
|
1436
1438
|
}
|
|
1437
|
-
export function
|
|
1439
|
+
export function four1FromJSON(
|
|
1438
1440
|
jsonString: string,
|
|
1439
|
-
): SafeParseResult<
|
|
1441
|
+
): SafeParseResult<Four1, SDKValidationError> {
|
|
1440
1442
|
return safeParse(
|
|
1441
1443
|
jsonString,
|
|
1442
|
-
(x) =>
|
|
1443
|
-
`Failed to parse '
|
|
1444
|
+
(x) => Four1$inboundSchema.parse(JSON.parse(x)),
|
|
1445
|
+
`Failed to parse 'Four1' from JSON`,
|
|
1444
1446
|
);
|
|
1445
1447
|
}
|
|
1446
1448
|
|
|
1447
1449
|
/** @internal */
|
|
1448
|
-
export const
|
|
1449
|
-
|
|
1450
|
+
export const ToolDefinition4$inboundSchema: z.ZodType<
|
|
1451
|
+
ToolDefinition4,
|
|
1450
1452
|
z.ZodTypeDef,
|
|
1451
1453
|
unknown
|
|
1452
1454
|
> = z.union([
|
|
1453
|
-
z.lazy(() =>
|
|
1454
|
-
z.lazy(() =>
|
|
1455
|
+
z.lazy(() => Four1$inboundSchema),
|
|
1456
|
+
z.lazy(() => Four2$inboundSchema),
|
|
1455
1457
|
]);
|
|
1456
1458
|
/** @internal */
|
|
1457
|
-
export type
|
|
1459
|
+
export type ToolDefinition4$Outbound = Four1$Outbound | Four2$Outbound;
|
|
1458
1460
|
|
|
1459
1461
|
/** @internal */
|
|
1460
|
-
export const
|
|
1461
|
-
|
|
1462
|
+
export const ToolDefinition4$outboundSchema: z.ZodType<
|
|
1463
|
+
ToolDefinition4$Outbound,
|
|
1462
1464
|
z.ZodTypeDef,
|
|
1463
|
-
|
|
1465
|
+
ToolDefinition4
|
|
1464
1466
|
> = z.union([
|
|
1465
|
-
z.lazy(() =>
|
|
1466
|
-
z.lazy(() =>
|
|
1467
|
+
z.lazy(() => Four1$outboundSchema),
|
|
1468
|
+
z.lazy(() => Four2$outboundSchema),
|
|
1467
1469
|
]);
|
|
1468
1470
|
|
|
1469
|
-
export function
|
|
1470
|
-
|
|
1471
|
+
export function toolDefinition4ToJSON(
|
|
1472
|
+
toolDefinition4: ToolDefinition4,
|
|
1471
1473
|
): string {
|
|
1472
|
-
return JSON.stringify(
|
|
1474
|
+
return JSON.stringify(ToolDefinition4$outboundSchema.parse(toolDefinition4));
|
|
1473
1475
|
}
|
|
1474
|
-
export function
|
|
1476
|
+
export function toolDefinition4FromJSON(
|
|
1475
1477
|
jsonString: string,
|
|
1476
|
-
): SafeParseResult<
|
|
1478
|
+
): SafeParseResult<ToolDefinition4, SDKValidationError> {
|
|
1477
1479
|
return safeParse(
|
|
1478
1480
|
jsonString,
|
|
1479
|
-
(x) =>
|
|
1480
|
-
`Failed to parse '
|
|
1481
|
+
(x) => ToolDefinition4$inboundSchema.parse(JSON.parse(x)),
|
|
1482
|
+
`Failed to parse 'ToolDefinition4' from JSON`,
|
|
1481
1483
|
);
|
|
1482
1484
|
}
|
|
1483
1485
|
|
|
1484
1486
|
/** @internal */
|
|
1485
|
-
export const
|
|
1486
|
-
typeof
|
|
1487
|
-
> = z.nativeEnum(
|
|
1487
|
+
export const ToolDefinition3Type$inboundSchema: z.ZodNativeEnum<
|
|
1488
|
+
typeof ToolDefinition3Type
|
|
1489
|
+
> = z.nativeEnum(ToolDefinition3Type);
|
|
1488
1490
|
/** @internal */
|
|
1489
|
-
export const
|
|
1490
|
-
typeof
|
|
1491
|
-
> =
|
|
1491
|
+
export const ToolDefinition3Type$outboundSchema: z.ZodNativeEnum<
|
|
1492
|
+
typeof ToolDefinition3Type
|
|
1493
|
+
> = ToolDefinition3Type$inboundSchema;
|
|
1492
1494
|
|
|
1493
1495
|
/** @internal */
|
|
1494
|
-
export const
|
|
1495
|
-
|
|
1496
|
+
export const ToolDefinition3$inboundSchema: z.ZodType<
|
|
1497
|
+
ToolDefinition3,
|
|
1496
1498
|
z.ZodTypeDef,
|
|
1497
1499
|
unknown
|
|
1498
1500
|
> = z.object({
|
|
1499
|
-
type:
|
|
1501
|
+
type: ToolDefinition3Type$inboundSchema,
|
|
1500
1502
|
name: z.string(),
|
|
1501
1503
|
description: z.string().optional(),
|
|
1502
1504
|
strict: z.boolean().optional(),
|
|
@@ -1508,7 +1510,7 @@ export const ToolDefinition2$inboundSchema: z.ZodType<
|
|
|
1508
1510
|
});
|
|
1509
1511
|
});
|
|
1510
1512
|
/** @internal */
|
|
1511
|
-
export type
|
|
1513
|
+
export type ToolDefinition3$Outbound = {
|
|
1512
1514
|
type: string;
|
|
1513
1515
|
name: string;
|
|
1514
1516
|
description?: string | undefined;
|
|
@@ -1518,12 +1520,12 @@ export type ToolDefinition2$Outbound = {
|
|
|
1518
1520
|
};
|
|
1519
1521
|
|
|
1520
1522
|
/** @internal */
|
|
1521
|
-
export const
|
|
1522
|
-
|
|
1523
|
+
export const ToolDefinition3$outboundSchema: z.ZodType<
|
|
1524
|
+
ToolDefinition3$Outbound,
|
|
1523
1525
|
z.ZodTypeDef,
|
|
1524
|
-
|
|
1526
|
+
ToolDefinition3
|
|
1525
1527
|
> = z.object({
|
|
1526
|
-
type:
|
|
1528
|
+
type: ToolDefinition3Type$outboundSchema,
|
|
1527
1529
|
name: z.string(),
|
|
1528
1530
|
description: z.string().optional(),
|
|
1529
1531
|
strict: z.boolean().optional(),
|
|
@@ -1535,18 +1537,18 @@ export const ToolDefinition2$outboundSchema: z.ZodType<
|
|
|
1535
1537
|
});
|
|
1536
1538
|
});
|
|
1537
1539
|
|
|
1538
|
-
export function
|
|
1539
|
-
|
|
1540
|
+
export function toolDefinition3ToJSON(
|
|
1541
|
+
toolDefinition3: ToolDefinition3,
|
|
1540
1542
|
): string {
|
|
1541
|
-
return JSON.stringify(
|
|
1543
|
+
return JSON.stringify(ToolDefinition3$outboundSchema.parse(toolDefinition3));
|
|
1542
1544
|
}
|
|
1543
|
-
export function
|
|
1545
|
+
export function toolDefinition3FromJSON(
|
|
1544
1546
|
jsonString: string,
|
|
1545
|
-
): SafeParseResult<
|
|
1547
|
+
): SafeParseResult<ToolDefinition3, SDKValidationError> {
|
|
1546
1548
|
return safeParse(
|
|
1547
1549
|
jsonString,
|
|
1548
|
-
(x) =>
|
|
1549
|
-
`Failed to parse '
|
|
1550
|
+
(x) => ToolDefinition3$inboundSchema.parse(JSON.parse(x)),
|
|
1551
|
+
`Failed to parse 'ToolDefinition3' from JSON`,
|
|
1550
1552
|
);
|
|
1551
1553
|
}
|
|
1552
1554
|
|
|
@@ -1569,13 +1571,13 @@ export const ToolDefinitionSearchContextSize$outboundSchema: z.ZodNativeEnum<
|
|
|
1569
1571
|
> = ToolDefinitionSearchContextSize$inboundSchema;
|
|
1570
1572
|
|
|
1571
1573
|
/** @internal */
|
|
1572
|
-
export const
|
|
1573
|
-
typeof
|
|
1574
|
-
> = z.nativeEnum(
|
|
1574
|
+
export const ToolDefinition2Type$inboundSchema: z.ZodNativeEnum<
|
|
1575
|
+
typeof ToolDefinition2Type
|
|
1576
|
+
> = z.nativeEnum(ToolDefinition2Type);
|
|
1575
1577
|
/** @internal */
|
|
1576
|
-
export const
|
|
1577
|
-
typeof
|
|
1578
|
-
> =
|
|
1578
|
+
export const ToolDefinition2Type$outboundSchema: z.ZodNativeEnum<
|
|
1579
|
+
typeof ToolDefinition2Type
|
|
1580
|
+
> = ToolDefinition2Type$inboundSchema;
|
|
1579
1581
|
|
|
1580
1582
|
/** @internal */
|
|
1581
1583
|
export const ToolDefinitionUserLocation$inboundSchema: z.ZodType<
|
|
@@ -1583,7 +1585,7 @@ export const ToolDefinitionUserLocation$inboundSchema: z.ZodType<
|
|
|
1583
1585
|
z.ZodTypeDef,
|
|
1584
1586
|
unknown
|
|
1585
1587
|
> = z.object({
|
|
1586
|
-
type:
|
|
1588
|
+
type: ToolDefinition2Type$inboundSchema.optional(),
|
|
1587
1589
|
city: z.string().optional(),
|
|
1588
1590
|
country: z.string().optional(),
|
|
1589
1591
|
region: z.string().optional(),
|
|
@@ -1604,7 +1606,7 @@ export const ToolDefinitionUserLocation$outboundSchema: z.ZodType<
|
|
|
1604
1606
|
z.ZodTypeDef,
|
|
1605
1607
|
ToolDefinitionUserLocation
|
|
1606
1608
|
> = z.object({
|
|
1607
|
-
type:
|
|
1609
|
+
type: ToolDefinition2Type$outboundSchema.optional(),
|
|
1608
1610
|
city: z.string().optional(),
|
|
1609
1611
|
country: z.string().optional(),
|
|
1610
1612
|
region: z.string().optional(),
|
|
@@ -1676,8 +1678,8 @@ export function toolDefinitionFiltersFromJSON(
|
|
|
1676
1678
|
}
|
|
1677
1679
|
|
|
1678
1680
|
/** @internal */
|
|
1679
|
-
export const
|
|
1680
|
-
|
|
1681
|
+
export const ToolDefinition2$inboundSchema: z.ZodType<
|
|
1682
|
+
ToolDefinition2,
|
|
1681
1683
|
z.ZodTypeDef,
|
|
1682
1684
|
unknown
|
|
1683
1685
|
> = z.object({
|
|
@@ -1693,7 +1695,7 @@ export const ToolDefinition1$inboundSchema: z.ZodType<
|
|
|
1693
1695
|
});
|
|
1694
1696
|
});
|
|
1695
1697
|
/** @internal */
|
|
1696
|
-
export type
|
|
1698
|
+
export type ToolDefinition2$Outbound = {
|
|
1697
1699
|
type: string;
|
|
1698
1700
|
search_context_size?: string | undefined;
|
|
1699
1701
|
user_location?: ToolDefinitionUserLocation$Outbound | undefined;
|
|
@@ -1701,10 +1703,10 @@ export type ToolDefinition1$Outbound = {
|
|
|
1701
1703
|
};
|
|
1702
1704
|
|
|
1703
1705
|
/** @internal */
|
|
1704
|
-
export const
|
|
1705
|
-
|
|
1706
|
+
export const ToolDefinition2$outboundSchema: z.ZodType<
|
|
1707
|
+
ToolDefinition2$Outbound,
|
|
1706
1708
|
z.ZodTypeDef,
|
|
1707
|
-
|
|
1709
|
+
ToolDefinition2
|
|
1708
1710
|
> = z.object({
|
|
1709
1711
|
type: ToolDefinitionType$outboundSchema,
|
|
1710
1712
|
searchContextSize: ToolDefinitionSearchContextSize$outboundSchema.optional(),
|
|
@@ -1718,18 +1720,18 @@ export const ToolDefinition1$outboundSchema: z.ZodType<
|
|
|
1718
1720
|
});
|
|
1719
1721
|
});
|
|
1720
1722
|
|
|
1721
|
-
export function
|
|
1722
|
-
|
|
1723
|
+
export function toolDefinition2ToJSON(
|
|
1724
|
+
toolDefinition2: ToolDefinition2,
|
|
1723
1725
|
): string {
|
|
1724
|
-
return JSON.stringify(
|
|
1726
|
+
return JSON.stringify(ToolDefinition2$outboundSchema.parse(toolDefinition2));
|
|
1725
1727
|
}
|
|
1726
|
-
export function
|
|
1728
|
+
export function toolDefinition2FromJSON(
|
|
1727
1729
|
jsonString: string,
|
|
1728
|
-
): SafeParseResult<
|
|
1730
|
+
): SafeParseResult<ToolDefinition2, SDKValidationError> {
|
|
1729
1731
|
return safeParse(
|
|
1730
1732
|
jsonString,
|
|
1731
|
-
(x) =>
|
|
1732
|
-
`Failed to parse '
|
|
1733
|
+
(x) => ToolDefinition2$inboundSchema.parse(JSON.parse(x)),
|
|
1734
|
+
`Failed to parse 'ToolDefinition2' from JSON`,
|
|
1733
1735
|
);
|
|
1734
1736
|
}
|
|
1735
1737
|
|
|
@@ -1739,27 +1741,29 @@ export const ToolDefinition$inboundSchema: z.ZodType<
|
|
|
1739
1741
|
z.ZodTypeDef,
|
|
1740
1742
|
unknown
|
|
1741
1743
|
> = z.union([
|
|
1742
|
-
z.lazy(() =>
|
|
1743
|
-
|
|
1744
|
-
z.lazy(() => ToolDefinition1$inboundSchema),
|
|
1744
|
+
z.lazy(() => ToolDefinition3$inboundSchema),
|
|
1745
|
+
FunctionToolReference$inboundSchema,
|
|
1745
1746
|
z.lazy(() => ToolDefinition5$inboundSchema),
|
|
1747
|
+
z.lazy(() => ToolDefinition2$inboundSchema),
|
|
1746
1748
|
z.lazy(() => ToolDefinition6$inboundSchema),
|
|
1747
1749
|
z.lazy(() => Seven$inboundSchema),
|
|
1750
|
+
z.lazy(() => Eight$inboundSchema),
|
|
1748
1751
|
z.union([
|
|
1749
|
-
z.lazy(() =>
|
|
1750
|
-
z.lazy(() =>
|
|
1752
|
+
z.lazy(() => Four1$inboundSchema),
|
|
1753
|
+
z.lazy(() => Four2$inboundSchema),
|
|
1751
1754
|
]),
|
|
1752
1755
|
]);
|
|
1753
1756
|
/** @internal */
|
|
1754
1757
|
export type ToolDefinition$Outbound =
|
|
1755
|
-
|
|
|
1756
|
-
|
|
|
1757
|
-
| ToolDefinition1$Outbound
|
|
1758
|
+
| ToolDefinition3$Outbound
|
|
1759
|
+
| FunctionToolReference$Outbound
|
|
1758
1760
|
| ToolDefinition5$Outbound
|
|
1761
|
+
| ToolDefinition2$Outbound
|
|
1759
1762
|
| ToolDefinition6$Outbound
|
|
1760
1763
|
| Seven$Outbound
|
|
1761
|
-
|
|
|
1762
|
-
|
|
|
1764
|
+
| Eight$Outbound
|
|
1765
|
+
| Four1$Outbound
|
|
1766
|
+
| Four2$Outbound;
|
|
1763
1767
|
|
|
1764
1768
|
/** @internal */
|
|
1765
1769
|
export const ToolDefinition$outboundSchema: z.ZodType<
|
|
@@ -1767,15 +1771,16 @@ export const ToolDefinition$outboundSchema: z.ZodType<
|
|
|
1767
1771
|
z.ZodTypeDef,
|
|
1768
1772
|
ToolDefinition
|
|
1769
1773
|
> = z.union([
|
|
1770
|
-
z.lazy(() =>
|
|
1771
|
-
|
|
1772
|
-
z.lazy(() => ToolDefinition1$outboundSchema),
|
|
1774
|
+
z.lazy(() => ToolDefinition3$outboundSchema),
|
|
1775
|
+
FunctionToolReference$outboundSchema,
|
|
1773
1776
|
z.lazy(() => ToolDefinition5$outboundSchema),
|
|
1777
|
+
z.lazy(() => ToolDefinition2$outboundSchema),
|
|
1774
1778
|
z.lazy(() => ToolDefinition6$outboundSchema),
|
|
1775
1779
|
z.lazy(() => Seven$outboundSchema),
|
|
1780
|
+
z.lazy(() => Eight$outboundSchema),
|
|
1776
1781
|
z.union([
|
|
1777
|
-
z.lazy(() =>
|
|
1778
|
-
z.lazy(() =>
|
|
1782
|
+
z.lazy(() => Four1$outboundSchema),
|
|
1783
|
+
z.lazy(() => Four2$outboundSchema),
|
|
1779
1784
|
]),
|
|
1780
1785
|
]);
|
|
1781
1786
|
|