@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
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type CreateFunctionToolRequest = {
|
|
13
|
+
/**
|
|
14
|
+
* Optional external end-user identifier forwarded by the API gateway.
|
|
15
|
+
*/
|
|
16
|
+
xOnBehalfOf?: string | undefined;
|
|
17
|
+
agentsFunctionToolDefinition: components.AgentsFunctionToolDefinition;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const CreateFunctionToolRequest$inboundSchema: z.ZodType<
|
|
22
|
+
CreateFunctionToolRequest,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
"X-On-Behalf-Of": z.string().optional(),
|
|
27
|
+
AgentsFunctionToolDefinition:
|
|
28
|
+
components.AgentsFunctionToolDefinition$inboundSchema,
|
|
29
|
+
}).transform((v) => {
|
|
30
|
+
return remap$(v, {
|
|
31
|
+
"X-On-Behalf-Of": "xOnBehalfOf",
|
|
32
|
+
"AgentsFunctionToolDefinition": "agentsFunctionToolDefinition",
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
/** @internal */
|
|
36
|
+
export type CreateFunctionToolRequest$Outbound = {
|
|
37
|
+
"X-On-Behalf-Of"?: string | undefined;
|
|
38
|
+
AgentsFunctionToolDefinition:
|
|
39
|
+
components.AgentsFunctionToolDefinition$Outbound;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const CreateFunctionToolRequest$outboundSchema: z.ZodType<
|
|
44
|
+
CreateFunctionToolRequest$Outbound,
|
|
45
|
+
z.ZodTypeDef,
|
|
46
|
+
CreateFunctionToolRequest
|
|
47
|
+
> = z.object({
|
|
48
|
+
xOnBehalfOf: z.string().optional(),
|
|
49
|
+
agentsFunctionToolDefinition:
|
|
50
|
+
components.AgentsFunctionToolDefinition$outboundSchema,
|
|
51
|
+
}).transform((v) => {
|
|
52
|
+
return remap$(v, {
|
|
53
|
+
xOnBehalfOf: "X-On-Behalf-Of",
|
|
54
|
+
agentsFunctionToolDefinition: "AgentsFunctionToolDefinition",
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
export function createFunctionToolRequestToJSON(
|
|
59
|
+
createFunctionToolRequest: CreateFunctionToolRequest,
|
|
60
|
+
): string {
|
|
61
|
+
return JSON.stringify(
|
|
62
|
+
CreateFunctionToolRequest$outboundSchema.parse(createFunctionToolRequest),
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
export function createFunctionToolRequestFromJSON(
|
|
66
|
+
jsonString: string,
|
|
67
|
+
): SafeParseResult<CreateFunctionToolRequest, SDKValidationError> {
|
|
68
|
+
return safeParse(
|
|
69
|
+
jsonString,
|
|
70
|
+
(x) => CreateFunctionToolRequest$inboundSchema.parse(JSON.parse(x)),
|
|
71
|
+
`Failed to parse 'CreateFunctionToolRequest' from JSON`,
|
|
72
|
+
);
|
|
73
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type DeleteFunctionToolRequest = {
|
|
13
|
+
toolId: string;
|
|
14
|
+
/**
|
|
15
|
+
* Optional external end-user identifier forwarded by the API gateway.
|
|
16
|
+
*/
|
|
17
|
+
xOnBehalfOf?: string | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export const DeleteFunctionToolObject = {
|
|
21
|
+
AgentFunctionToolDeleted: "agent.function_tool.deleted",
|
|
22
|
+
} as const;
|
|
23
|
+
export type DeleteFunctionToolObject = ClosedEnum<
|
|
24
|
+
typeof DeleteFunctionToolObject
|
|
25
|
+
>;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Deleted
|
|
29
|
+
*/
|
|
30
|
+
export type DeleteFunctionToolResponseBody = {
|
|
31
|
+
object: DeleteFunctionToolObject;
|
|
32
|
+
id: string;
|
|
33
|
+
deleted: boolean;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const DeleteFunctionToolRequest$inboundSchema: z.ZodType<
|
|
38
|
+
DeleteFunctionToolRequest,
|
|
39
|
+
z.ZodTypeDef,
|
|
40
|
+
unknown
|
|
41
|
+
> = z.object({
|
|
42
|
+
tool_id: z.string(),
|
|
43
|
+
"X-On-Behalf-Of": z.string().optional(),
|
|
44
|
+
}).transform((v) => {
|
|
45
|
+
return remap$(v, {
|
|
46
|
+
"tool_id": "toolId",
|
|
47
|
+
"X-On-Behalf-Of": "xOnBehalfOf",
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
/** @internal */
|
|
51
|
+
export type DeleteFunctionToolRequest$Outbound = {
|
|
52
|
+
tool_id: string;
|
|
53
|
+
"X-On-Behalf-Of"?: string | undefined;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
/** @internal */
|
|
57
|
+
export const DeleteFunctionToolRequest$outboundSchema: z.ZodType<
|
|
58
|
+
DeleteFunctionToolRequest$Outbound,
|
|
59
|
+
z.ZodTypeDef,
|
|
60
|
+
DeleteFunctionToolRequest
|
|
61
|
+
> = z.object({
|
|
62
|
+
toolId: z.string(),
|
|
63
|
+
xOnBehalfOf: z.string().optional(),
|
|
64
|
+
}).transform((v) => {
|
|
65
|
+
return remap$(v, {
|
|
66
|
+
toolId: "tool_id",
|
|
67
|
+
xOnBehalfOf: "X-On-Behalf-Of",
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
export function deleteFunctionToolRequestToJSON(
|
|
72
|
+
deleteFunctionToolRequest: DeleteFunctionToolRequest,
|
|
73
|
+
): string {
|
|
74
|
+
return JSON.stringify(
|
|
75
|
+
DeleteFunctionToolRequest$outboundSchema.parse(deleteFunctionToolRequest),
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
export function deleteFunctionToolRequestFromJSON(
|
|
79
|
+
jsonString: string,
|
|
80
|
+
): SafeParseResult<DeleteFunctionToolRequest, SDKValidationError> {
|
|
81
|
+
return safeParse(
|
|
82
|
+
jsonString,
|
|
83
|
+
(x) => DeleteFunctionToolRequest$inboundSchema.parse(JSON.parse(x)),
|
|
84
|
+
`Failed to parse 'DeleteFunctionToolRequest' from JSON`,
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/** @internal */
|
|
89
|
+
export const DeleteFunctionToolObject$inboundSchema: z.ZodNativeEnum<
|
|
90
|
+
typeof DeleteFunctionToolObject
|
|
91
|
+
> = z.nativeEnum(DeleteFunctionToolObject);
|
|
92
|
+
/** @internal */
|
|
93
|
+
export const DeleteFunctionToolObject$outboundSchema: z.ZodNativeEnum<
|
|
94
|
+
typeof DeleteFunctionToolObject
|
|
95
|
+
> = DeleteFunctionToolObject$inboundSchema;
|
|
96
|
+
|
|
97
|
+
/** @internal */
|
|
98
|
+
export const DeleteFunctionToolResponseBody$inboundSchema: z.ZodType<
|
|
99
|
+
DeleteFunctionToolResponseBody,
|
|
100
|
+
z.ZodTypeDef,
|
|
101
|
+
unknown
|
|
102
|
+
> = z.object({
|
|
103
|
+
object: DeleteFunctionToolObject$inboundSchema,
|
|
104
|
+
id: z.string(),
|
|
105
|
+
deleted: z.boolean(),
|
|
106
|
+
});
|
|
107
|
+
/** @internal */
|
|
108
|
+
export type DeleteFunctionToolResponseBody$Outbound = {
|
|
109
|
+
object: string;
|
|
110
|
+
id: string;
|
|
111
|
+
deleted: boolean;
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
/** @internal */
|
|
115
|
+
export const DeleteFunctionToolResponseBody$outboundSchema: z.ZodType<
|
|
116
|
+
DeleteFunctionToolResponseBody$Outbound,
|
|
117
|
+
z.ZodTypeDef,
|
|
118
|
+
DeleteFunctionToolResponseBody
|
|
119
|
+
> = z.object({
|
|
120
|
+
object: DeleteFunctionToolObject$outboundSchema,
|
|
121
|
+
id: z.string(),
|
|
122
|
+
deleted: z.boolean(),
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
export function deleteFunctionToolResponseBodyToJSON(
|
|
126
|
+
deleteFunctionToolResponseBody: DeleteFunctionToolResponseBody,
|
|
127
|
+
): string {
|
|
128
|
+
return JSON.stringify(
|
|
129
|
+
DeleteFunctionToolResponseBody$outboundSchema.parse(
|
|
130
|
+
deleteFunctionToolResponseBody,
|
|
131
|
+
),
|
|
132
|
+
);
|
|
133
|
+
}
|
|
134
|
+
export function deleteFunctionToolResponseBodyFromJSON(
|
|
135
|
+
jsonString: string,
|
|
136
|
+
): SafeParseResult<DeleteFunctionToolResponseBody, SDKValidationError> {
|
|
137
|
+
return safeParse(
|
|
138
|
+
jsonString,
|
|
139
|
+
(x) => DeleteFunctionToolResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
140
|
+
`Failed to parse 'DeleteFunctionToolResponseBody' from JSON`,
|
|
141
|
+
);
|
|
142
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type GetFunctionToolRequest = {
|
|
12
|
+
toolId: string;
|
|
13
|
+
/**
|
|
14
|
+
* Optional external end-user identifier forwarded by the API gateway.
|
|
15
|
+
*/
|
|
16
|
+
xOnBehalfOf?: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const GetFunctionToolRequest$inboundSchema: z.ZodType<
|
|
21
|
+
GetFunctionToolRequest,
|
|
22
|
+
z.ZodTypeDef,
|
|
23
|
+
unknown
|
|
24
|
+
> = z.object({
|
|
25
|
+
tool_id: z.string(),
|
|
26
|
+
"X-On-Behalf-Of": z.string().optional(),
|
|
27
|
+
}).transform((v) => {
|
|
28
|
+
return remap$(v, {
|
|
29
|
+
"tool_id": "toolId",
|
|
30
|
+
"X-On-Behalf-Of": "xOnBehalfOf",
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
/** @internal */
|
|
34
|
+
export type GetFunctionToolRequest$Outbound = {
|
|
35
|
+
tool_id: string;
|
|
36
|
+
"X-On-Behalf-Of"?: string | undefined;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const GetFunctionToolRequest$outboundSchema: z.ZodType<
|
|
41
|
+
GetFunctionToolRequest$Outbound,
|
|
42
|
+
z.ZodTypeDef,
|
|
43
|
+
GetFunctionToolRequest
|
|
44
|
+
> = z.object({
|
|
45
|
+
toolId: z.string(),
|
|
46
|
+
xOnBehalfOf: z.string().optional(),
|
|
47
|
+
}).transform((v) => {
|
|
48
|
+
return remap$(v, {
|
|
49
|
+
toolId: "tool_id",
|
|
50
|
+
xOnBehalfOf: "X-On-Behalf-Of",
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
export function getFunctionToolRequestToJSON(
|
|
55
|
+
getFunctionToolRequest: GetFunctionToolRequest,
|
|
56
|
+
): string {
|
|
57
|
+
return JSON.stringify(
|
|
58
|
+
GetFunctionToolRequest$outboundSchema.parse(getFunctionToolRequest),
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
export function getFunctionToolRequestFromJSON(
|
|
62
|
+
jsonString: string,
|
|
63
|
+
): SafeParseResult<GetFunctionToolRequest, SDKValidationError> {
|
|
64
|
+
return safeParse(
|
|
65
|
+
jsonString,
|
|
66
|
+
(x) => GetFunctionToolRequest$inboundSchema.parse(JSON.parse(x)),
|
|
67
|
+
`Failed to parse 'GetFunctionToolRequest' from JSON`,
|
|
68
|
+
);
|
|
69
|
+
}
|
|
@@ -66,6 +66,7 @@ export * from "./createextractschema.js";
|
|
|
66
66
|
export * from "./createfeatureflag.js";
|
|
67
67
|
export * from "./createfeatureflagenvironment.js";
|
|
68
68
|
export * from "./createfeatureflagproject.js";
|
|
69
|
+
export * from "./createfunctiontool.js";
|
|
69
70
|
export * from "./creategenerationapiv1datasetsgenerationspost.js";
|
|
70
71
|
export * from "./creategithubauthorizationintent.js";
|
|
71
72
|
export * from "./createimage.js";
|
|
@@ -114,6 +115,7 @@ export * from "./deletefeatureflag.js";
|
|
|
114
115
|
export * from "./deletefeatureflagenvironment.js";
|
|
115
116
|
export * from "./deletefeatureflagproject.js";
|
|
116
117
|
export * from "./deletefile.js";
|
|
118
|
+
export * from "./deletefunctiontool.js";
|
|
117
119
|
export * from "./deleteguardrails.js";
|
|
118
120
|
export * from "./deletemcpcredential.js";
|
|
119
121
|
export * from "./deletemcpserver.js";
|
|
@@ -199,6 +201,7 @@ export * from "./getfile.js";
|
|
|
199
201
|
export * from "./getfilecontent.js";
|
|
200
202
|
export * from "./getfilesusage.js";
|
|
201
203
|
export * from "./getformatapiv1datasetsformatsformatidget.js";
|
|
204
|
+
export * from "./getfunctiontool.js";
|
|
202
205
|
export * from "./getgenerationapiv1datasetsgenerationsgenerationidget.js";
|
|
203
206
|
export * from "./getgeneratorapiv1datasetsgeneratorsgeneratoridget.js";
|
|
204
207
|
export * from "./getgithubconnection.js";
|
|
@@ -293,6 +296,7 @@ export * from "./listfinetuningcheckpoints.js";
|
|
|
293
296
|
export * from "./listfinetuningevents.js";
|
|
294
297
|
export * from "./listfinetuningjobs.js";
|
|
295
298
|
export * from "./listformatsapiv1datasetsformatsget.js";
|
|
299
|
+
export * from "./listfunctiontools.js";
|
|
296
300
|
export * from "./listgenerationsapiv1datasetsgenerationsget.js";
|
|
297
301
|
export * from "./listgeneratorsapiv1datasetsgeneratorsget.js";
|
|
298
302
|
export * from "./listgithubrepositories.js";
|
|
@@ -369,6 +373,7 @@ export * from "./removeteammember.js";
|
|
|
369
373
|
export * from "./replacemodelcatalogorgaccess.js";
|
|
370
374
|
export * from "./rerunfailedevalsamples.js";
|
|
371
375
|
export * from "./resolvegithubreference.js";
|
|
376
|
+
export * from "./restoreagent.js";
|
|
372
377
|
export * from "./resumeagentschedule.js";
|
|
373
378
|
export * from "./resumefinetuningjob.js";
|
|
374
379
|
export * from "./retrievefinetuningjob.js";
|
|
@@ -437,6 +442,7 @@ export * from "./updateextractschema.js";
|
|
|
437
442
|
export * from "./updatefeatureflag.js";
|
|
438
443
|
export * from "./updatefeatureflagenvironment.js";
|
|
439
444
|
export * from "./updatefeatureflagproject.js";
|
|
445
|
+
export * from "./updatefunctiontool.js";
|
|
440
446
|
export * from "./updateguardrails.js";
|
|
441
447
|
export * from "./updatemcpserver.js";
|
|
442
448
|
export * from "./updatememoryentry.js";
|
|
@@ -19,6 +19,10 @@ export type ListAgentRunsQueryParamOrder = ClosedEnum<
|
|
|
19
19
|
|
|
20
20
|
export type ListAgentRunsRequest = {
|
|
21
21
|
agentId: string;
|
|
22
|
+
/**
|
|
23
|
+
* Rows to skip within the authorized list. Ordering uses a stable ID tie-breaker.
|
|
24
|
+
*/
|
|
25
|
+
offset?: number | undefined;
|
|
22
26
|
limit?: number | undefined;
|
|
23
27
|
order?: ListAgentRunsQueryParamOrder | undefined;
|
|
24
28
|
/**
|
|
@@ -43,6 +47,7 @@ export const ListAgentRunsRequest$inboundSchema: z.ZodType<
|
|
|
43
47
|
unknown
|
|
44
48
|
> = z.object({
|
|
45
49
|
agent_id: z.string(),
|
|
50
|
+
offset: z.number().int().default(0),
|
|
46
51
|
limit: z.number().int().default(20),
|
|
47
52
|
order: ListAgentRunsQueryParamOrder$inboundSchema.default("desc"),
|
|
48
53
|
"X-On-Behalf-Of": z.string().optional(),
|
|
@@ -55,6 +60,7 @@ export const ListAgentRunsRequest$inboundSchema: z.ZodType<
|
|
|
55
60
|
/** @internal */
|
|
56
61
|
export type ListAgentRunsRequest$Outbound = {
|
|
57
62
|
agent_id: string;
|
|
63
|
+
offset: number;
|
|
58
64
|
limit: number;
|
|
59
65
|
order: string;
|
|
60
66
|
"X-On-Behalf-Of"?: string | undefined;
|
|
@@ -67,6 +73,7 @@ export const ListAgentRunsRequest$outboundSchema: z.ZodType<
|
|
|
67
73
|
ListAgentRunsRequest
|
|
68
74
|
> = z.object({
|
|
69
75
|
agentId: z.string(),
|
|
76
|
+
offset: z.number().int().default(0),
|
|
70
77
|
limit: z.number().int().default(20),
|
|
71
78
|
order: ListAgentRunsQueryParamOrder$outboundSchema.default("desc"),
|
|
72
79
|
xOnBehalfOf: z.string().optional(),
|
|
@@ -18,10 +18,18 @@ export type ListAgentsQueryParamOrder = ClosedEnum<
|
|
|
18
18
|
>;
|
|
19
19
|
|
|
20
20
|
export type ListAgentsRequest = {
|
|
21
|
+
/**
|
|
22
|
+
* Rows to skip within the authorized list. Ordering uses a stable ID tie-breaker.
|
|
23
|
+
*/
|
|
24
|
+
offset?: number | undefined;
|
|
21
25
|
/**
|
|
22
26
|
* Optional external end-user identifier forwarded by the API gateway.
|
|
23
27
|
*/
|
|
24
28
|
xOnBehalfOf?: string | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Return soft-deleted agents for audit instead of active agents.
|
|
31
|
+
*/
|
|
32
|
+
deleted?: boolean | undefined;
|
|
25
33
|
limit?: number | undefined;
|
|
26
34
|
order?: ListAgentsQueryParamOrder | undefined;
|
|
27
35
|
};
|
|
@@ -41,7 +49,9 @@ export const ListAgentsRequest$inboundSchema: z.ZodType<
|
|
|
41
49
|
z.ZodTypeDef,
|
|
42
50
|
unknown
|
|
43
51
|
> = z.object({
|
|
52
|
+
offset: z.number().int().default(0),
|
|
44
53
|
"X-On-Behalf-Of": z.string().optional(),
|
|
54
|
+
deleted: z.boolean().default(false),
|
|
45
55
|
limit: z.number().int().default(20),
|
|
46
56
|
order: ListAgentsQueryParamOrder$inboundSchema.default("desc"),
|
|
47
57
|
}).transform((v) => {
|
|
@@ -51,7 +61,9 @@ export const ListAgentsRequest$inboundSchema: z.ZodType<
|
|
|
51
61
|
});
|
|
52
62
|
/** @internal */
|
|
53
63
|
export type ListAgentsRequest$Outbound = {
|
|
64
|
+
offset: number;
|
|
54
65
|
"X-On-Behalf-Of"?: string | undefined;
|
|
66
|
+
deleted: boolean;
|
|
55
67
|
limit: number;
|
|
56
68
|
order: string;
|
|
57
69
|
};
|
|
@@ -62,7 +74,9 @@ export const ListAgentsRequest$outboundSchema: z.ZodType<
|
|
|
62
74
|
z.ZodTypeDef,
|
|
63
75
|
ListAgentsRequest
|
|
64
76
|
> = z.object({
|
|
77
|
+
offset: z.number().int().default(0),
|
|
65
78
|
xOnBehalfOf: z.string().optional(),
|
|
79
|
+
deleted: z.boolean().default(false),
|
|
66
80
|
limit: z.number().int().default(20),
|
|
67
81
|
order: ListAgentsQueryParamOrder$outboundSchema.default("desc"),
|
|
68
82
|
}).transform((v) => {
|
|
@@ -19,6 +19,10 @@ export type ListAgentVersionsQueryParamOrder = ClosedEnum<
|
|
|
19
19
|
|
|
20
20
|
export type ListAgentVersionsRequest = {
|
|
21
21
|
agentId: string;
|
|
22
|
+
/**
|
|
23
|
+
* Rows to skip within the authorized list. Ordering uses a stable ID tie-breaker.
|
|
24
|
+
*/
|
|
25
|
+
offset?: number | undefined;
|
|
22
26
|
limit?: number | undefined;
|
|
23
27
|
order?: ListAgentVersionsQueryParamOrder | undefined;
|
|
24
28
|
/**
|
|
@@ -43,6 +47,7 @@ export const ListAgentVersionsRequest$inboundSchema: z.ZodType<
|
|
|
43
47
|
unknown
|
|
44
48
|
> = z.object({
|
|
45
49
|
agent_id: z.string(),
|
|
50
|
+
offset: z.number().int().default(0),
|
|
46
51
|
limit: z.number().int().default(20),
|
|
47
52
|
order: ListAgentVersionsQueryParamOrder$inboundSchema.default("desc"),
|
|
48
53
|
"X-On-Behalf-Of": z.string().optional(),
|
|
@@ -55,6 +60,7 @@ export const ListAgentVersionsRequest$inboundSchema: z.ZodType<
|
|
|
55
60
|
/** @internal */
|
|
56
61
|
export type ListAgentVersionsRequest$Outbound = {
|
|
57
62
|
agent_id: string;
|
|
63
|
+
offset: number;
|
|
58
64
|
limit: number;
|
|
59
65
|
order: string;
|
|
60
66
|
"X-On-Behalf-Of"?: string | undefined;
|
|
@@ -67,6 +73,7 @@ export const ListAgentVersionsRequest$outboundSchema: z.ZodType<
|
|
|
67
73
|
ListAgentVersionsRequest
|
|
68
74
|
> = z.object({
|
|
69
75
|
agentId: z.string(),
|
|
76
|
+
offset: z.number().int().default(0),
|
|
70
77
|
limit: z.number().int().default(20),
|
|
71
78
|
order: ListAgentVersionsQueryParamOrder$outboundSchema.default("desc"),
|
|
72
79
|
xOnBehalfOf: z.string().optional(),
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export const ListFunctionToolsQueryParamOrder = {
|
|
13
|
+
Asc: "asc",
|
|
14
|
+
Desc: "desc",
|
|
15
|
+
} as const;
|
|
16
|
+
export type ListFunctionToolsQueryParamOrder = ClosedEnum<
|
|
17
|
+
typeof ListFunctionToolsQueryParamOrder
|
|
18
|
+
>;
|
|
19
|
+
|
|
20
|
+
export type ListFunctionToolsRequest = {
|
|
21
|
+
/**
|
|
22
|
+
* The last_id from the previous page
|
|
23
|
+
*/
|
|
24
|
+
after?: string | undefined;
|
|
25
|
+
limit?: number | undefined;
|
|
26
|
+
order?: ListFunctionToolsQueryParamOrder | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Optional external end-user identifier forwarded by the API gateway.
|
|
29
|
+
*/
|
|
30
|
+
xOnBehalfOf?: string | undefined;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const ListFunctionToolsQueryParamOrder$inboundSchema: z.ZodNativeEnum<
|
|
35
|
+
typeof ListFunctionToolsQueryParamOrder
|
|
36
|
+
> = z.nativeEnum(ListFunctionToolsQueryParamOrder);
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const ListFunctionToolsQueryParamOrder$outboundSchema: z.ZodNativeEnum<
|
|
39
|
+
typeof ListFunctionToolsQueryParamOrder
|
|
40
|
+
> = ListFunctionToolsQueryParamOrder$inboundSchema;
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const ListFunctionToolsRequest$inboundSchema: z.ZodType<
|
|
44
|
+
ListFunctionToolsRequest,
|
|
45
|
+
z.ZodTypeDef,
|
|
46
|
+
unknown
|
|
47
|
+
> = z.object({
|
|
48
|
+
after: z.string().optional(),
|
|
49
|
+
limit: z.number().int().default(20),
|
|
50
|
+
order: ListFunctionToolsQueryParamOrder$inboundSchema.default("desc"),
|
|
51
|
+
"X-On-Behalf-Of": z.string().optional(),
|
|
52
|
+
}).transform((v) => {
|
|
53
|
+
return remap$(v, {
|
|
54
|
+
"X-On-Behalf-Of": "xOnBehalfOf",
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
/** @internal */
|
|
58
|
+
export type ListFunctionToolsRequest$Outbound = {
|
|
59
|
+
after?: string | undefined;
|
|
60
|
+
limit: number;
|
|
61
|
+
order: string;
|
|
62
|
+
"X-On-Behalf-Of"?: string | undefined;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
/** @internal */
|
|
66
|
+
export const ListFunctionToolsRequest$outboundSchema: z.ZodType<
|
|
67
|
+
ListFunctionToolsRequest$Outbound,
|
|
68
|
+
z.ZodTypeDef,
|
|
69
|
+
ListFunctionToolsRequest
|
|
70
|
+
> = z.object({
|
|
71
|
+
after: z.string().optional(),
|
|
72
|
+
limit: z.number().int().default(20),
|
|
73
|
+
order: ListFunctionToolsQueryParamOrder$outboundSchema.default("desc"),
|
|
74
|
+
xOnBehalfOf: z.string().optional(),
|
|
75
|
+
}).transform((v) => {
|
|
76
|
+
return remap$(v, {
|
|
77
|
+
xOnBehalfOf: "X-On-Behalf-Of",
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
export function listFunctionToolsRequestToJSON(
|
|
82
|
+
listFunctionToolsRequest: ListFunctionToolsRequest,
|
|
83
|
+
): string {
|
|
84
|
+
return JSON.stringify(
|
|
85
|
+
ListFunctionToolsRequest$outboundSchema.parse(listFunctionToolsRequest),
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
export function listFunctionToolsRequestFromJSON(
|
|
89
|
+
jsonString: string,
|
|
90
|
+
): SafeParseResult<ListFunctionToolsRequest, SDKValidationError> {
|
|
91
|
+
return safeParse(
|
|
92
|
+
jsonString,
|
|
93
|
+
(x) => ListFunctionToolsRequest$inboundSchema.parse(JSON.parse(x)),
|
|
94
|
+
`Failed to parse 'ListFunctionToolsRequest' from JSON`,
|
|
95
|
+
);
|
|
96
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type RestoreAgentRequest = {
|
|
12
|
+
agentId: string;
|
|
13
|
+
/**
|
|
14
|
+
* Optional external end-user identifier forwarded by the API gateway.
|
|
15
|
+
*/
|
|
16
|
+
xOnBehalfOf?: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const RestoreAgentRequest$inboundSchema: z.ZodType<
|
|
21
|
+
RestoreAgentRequest,
|
|
22
|
+
z.ZodTypeDef,
|
|
23
|
+
unknown
|
|
24
|
+
> = z.object({
|
|
25
|
+
agent_id: z.string(),
|
|
26
|
+
"X-On-Behalf-Of": z.string().optional(),
|
|
27
|
+
}).transform((v) => {
|
|
28
|
+
return remap$(v, {
|
|
29
|
+
"agent_id": "agentId",
|
|
30
|
+
"X-On-Behalf-Of": "xOnBehalfOf",
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
/** @internal */
|
|
34
|
+
export type RestoreAgentRequest$Outbound = {
|
|
35
|
+
agent_id: string;
|
|
36
|
+
"X-On-Behalf-Of"?: string | undefined;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const RestoreAgentRequest$outboundSchema: z.ZodType<
|
|
41
|
+
RestoreAgentRequest$Outbound,
|
|
42
|
+
z.ZodTypeDef,
|
|
43
|
+
RestoreAgentRequest
|
|
44
|
+
> = z.object({
|
|
45
|
+
agentId: z.string(),
|
|
46
|
+
xOnBehalfOf: z.string().optional(),
|
|
47
|
+
}).transform((v) => {
|
|
48
|
+
return remap$(v, {
|
|
49
|
+
agentId: "agent_id",
|
|
50
|
+
xOnBehalfOf: "X-On-Behalf-Of",
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
export function restoreAgentRequestToJSON(
|
|
55
|
+
restoreAgentRequest: RestoreAgentRequest,
|
|
56
|
+
): string {
|
|
57
|
+
return JSON.stringify(
|
|
58
|
+
RestoreAgentRequest$outboundSchema.parse(restoreAgentRequest),
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
export function restoreAgentRequestFromJSON(
|
|
62
|
+
jsonString: string,
|
|
63
|
+
): SafeParseResult<RestoreAgentRequest, SDKValidationError> {
|
|
64
|
+
return safeParse(
|
|
65
|
+
jsonString,
|
|
66
|
+
(x) => RestoreAgentRequest$inboundSchema.parse(JSON.parse(x)),
|
|
67
|
+
`Failed to parse 'RestoreAgentRequest' from JSON`,
|
|
68
|
+
);
|
|
69
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type UpdateFunctionToolRequest = {
|
|
13
|
+
toolId: string;
|
|
14
|
+
/**
|
|
15
|
+
* Optional external end-user identifier forwarded by the API gateway.
|
|
16
|
+
*/
|
|
17
|
+
xOnBehalfOf?: string | undefined;
|
|
18
|
+
agentsFunctionToolDefinition: components.AgentsFunctionToolDefinition;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const UpdateFunctionToolRequest$inboundSchema: z.ZodType<
|
|
23
|
+
UpdateFunctionToolRequest,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
unknown
|
|
26
|
+
> = z.object({
|
|
27
|
+
tool_id: z.string(),
|
|
28
|
+
"X-On-Behalf-Of": z.string().optional(),
|
|
29
|
+
AgentsFunctionToolDefinition:
|
|
30
|
+
components.AgentsFunctionToolDefinition$inboundSchema,
|
|
31
|
+
}).transform((v) => {
|
|
32
|
+
return remap$(v, {
|
|
33
|
+
"tool_id": "toolId",
|
|
34
|
+
"X-On-Behalf-Of": "xOnBehalfOf",
|
|
35
|
+
"AgentsFunctionToolDefinition": "agentsFunctionToolDefinition",
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
/** @internal */
|
|
39
|
+
export type UpdateFunctionToolRequest$Outbound = {
|
|
40
|
+
tool_id: string;
|
|
41
|
+
"X-On-Behalf-Of"?: string | undefined;
|
|
42
|
+
AgentsFunctionToolDefinition:
|
|
43
|
+
components.AgentsFunctionToolDefinition$Outbound;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const UpdateFunctionToolRequest$outboundSchema: z.ZodType<
|
|
48
|
+
UpdateFunctionToolRequest$Outbound,
|
|
49
|
+
z.ZodTypeDef,
|
|
50
|
+
UpdateFunctionToolRequest
|
|
51
|
+
> = z.object({
|
|
52
|
+
toolId: z.string(),
|
|
53
|
+
xOnBehalfOf: z.string().optional(),
|
|
54
|
+
agentsFunctionToolDefinition:
|
|
55
|
+
components.AgentsFunctionToolDefinition$outboundSchema,
|
|
56
|
+
}).transform((v) => {
|
|
57
|
+
return remap$(v, {
|
|
58
|
+
toolId: "tool_id",
|
|
59
|
+
xOnBehalfOf: "X-On-Behalf-Of",
|
|
60
|
+
agentsFunctionToolDefinition: "AgentsFunctionToolDefinition",
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
export function updateFunctionToolRequestToJSON(
|
|
65
|
+
updateFunctionToolRequest: UpdateFunctionToolRequest,
|
|
66
|
+
): string {
|
|
67
|
+
return JSON.stringify(
|
|
68
|
+
UpdateFunctionToolRequest$outboundSchema.parse(updateFunctionToolRequest),
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
export function updateFunctionToolRequestFromJSON(
|
|
72
|
+
jsonString: string,
|
|
73
|
+
): SafeParseResult<UpdateFunctionToolRequest, SDKValidationError> {
|
|
74
|
+
return safeParse(
|
|
75
|
+
jsonString,
|
|
76
|
+
(x) => UpdateFunctionToolRequest$inboundSchema.parse(JSON.parse(x)),
|
|
77
|
+
`Failed to parse 'UpdateFunctionToolRequest' from JSON`,
|
|
78
|
+
);
|
|
79
|
+
}
|