@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.
Files changed (486) hide show
  1. package/README.md +332 -332
  2. package/bin/mcp-server.js +4882 -3799
  3. package/bin/mcp-server.js.map +43 -21
  4. package/dist/commonjs/funcs/agentRunsListAgentRuns.js +1 -0
  5. package/dist/commonjs/funcs/agentRunsListAgentRuns.js.map +1 -1
  6. package/dist/commonjs/funcs/agentVersionsListAgentVersions.js +1 -0
  7. package/dist/commonjs/funcs/agentVersionsListAgentVersions.js.map +1 -1
  8. package/dist/commonjs/funcs/agentsCreateFunctionTool.d.ts +17 -0
  9. package/dist/commonjs/funcs/agentsCreateFunctionTool.d.ts.map +1 -0
  10. package/dist/commonjs/funcs/agentsCreateFunctionTool.js +128 -0
  11. package/dist/commonjs/funcs/agentsCreateFunctionTool.js.map +1 -0
  12. package/dist/commonjs/funcs/agentsDeleteAgent.d.ts +4 -1
  13. package/dist/commonjs/funcs/agentsDeleteAgent.d.ts.map +1 -1
  14. package/dist/commonjs/funcs/agentsDeleteAgent.js +4 -1
  15. package/dist/commonjs/funcs/agentsDeleteAgent.js.map +1 -1
  16. package/dist/commonjs/funcs/agentsDeleteFunctionTool.d.ts +19 -0
  17. package/dist/commonjs/funcs/agentsDeleteFunctionTool.d.ts.map +1 -0
  18. package/dist/commonjs/funcs/agentsDeleteFunctionTool.js +133 -0
  19. package/dist/commonjs/funcs/agentsDeleteFunctionTool.js.map +1 -0
  20. package/dist/commonjs/funcs/agentsGetFunctionTool.d.ts +17 -0
  21. package/dist/commonjs/funcs/agentsGetFunctionTool.d.ts.map +1 -0
  22. package/dist/commonjs/funcs/agentsGetFunctionTool.js +131 -0
  23. package/dist/commonjs/funcs/agentsGetFunctionTool.js.map +1 -0
  24. package/dist/commonjs/funcs/agentsListAgents.js +2 -0
  25. package/dist/commonjs/funcs/agentsListAgents.js.map +1 -1
  26. package/dist/commonjs/funcs/agentsListFunctionTools.d.ts +17 -0
  27. package/dist/commonjs/funcs/agentsListFunctionTools.d.ts.map +1 -0
  28. package/dist/commonjs/funcs/agentsListFunctionTools.js +131 -0
  29. package/dist/commonjs/funcs/agentsListFunctionTools.js.map +1 -0
  30. package/dist/commonjs/funcs/agentsRestoreAgent.d.ts +21 -0
  31. package/dist/commonjs/funcs/agentsRestoreAgent.d.ts.map +1 -0
  32. package/dist/commonjs/funcs/agentsRestoreAgent.js +138 -0
  33. package/dist/commonjs/funcs/agentsRestoreAgent.js.map +1 -0
  34. package/dist/commonjs/funcs/agentsUpdateFunctionTool.d.ts +20 -0
  35. package/dist/commonjs/funcs/agentsUpdateFunctionTool.d.ts.map +1 -0
  36. package/dist/commonjs/funcs/agentsUpdateFunctionTool.js +137 -0
  37. package/dist/commonjs/funcs/agentsUpdateFunctionTool.js.map +1 -0
  38. package/dist/commonjs/lib/config.d.ts +2 -2
  39. package/dist/commonjs/lib/config.js +2 -2
  40. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  41. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  42. package/dist/commonjs/mcp-server/server.js +13 -1
  43. package/dist/commonjs/mcp-server/server.js.map +1 -1
  44. package/dist/commonjs/mcp-server/tools/agentsCreateFunctionTool.d.ts +8 -0
  45. package/dist/commonjs/mcp-server/tools/agentsCreateFunctionTool.d.ts.map +1 -0
  46. package/dist/commonjs/mcp-server/tools/agentsCreateFunctionTool.js +62 -0
  47. package/dist/commonjs/mcp-server/tools/agentsCreateFunctionTool.js.map +1 -0
  48. package/dist/commonjs/mcp-server/tools/agentsDeleteAgent.d.ts.map +1 -1
  49. package/dist/commonjs/mcp-server/tools/agentsDeleteAgent.js +3 -1
  50. package/dist/commonjs/mcp-server/tools/agentsDeleteAgent.js.map +1 -1
  51. package/dist/commonjs/mcp-server/tools/agentsDeleteFunctionTool.d.ts +8 -0
  52. package/dist/commonjs/mcp-server/tools/agentsDeleteFunctionTool.d.ts.map +1 -0
  53. package/dist/commonjs/mcp-server/tools/agentsDeleteFunctionTool.js +64 -0
  54. package/dist/commonjs/mcp-server/tools/agentsDeleteFunctionTool.js.map +1 -0
  55. package/dist/commonjs/mcp-server/tools/agentsGetFunctionTool.d.ts +8 -0
  56. package/dist/commonjs/mcp-server/tools/agentsGetFunctionTool.d.ts.map +1 -0
  57. package/dist/commonjs/mcp-server/tools/agentsGetFunctionTool.js +62 -0
  58. package/dist/commonjs/mcp-server/tools/agentsGetFunctionTool.js.map +1 -0
  59. package/dist/commonjs/mcp-server/tools/agentsListFunctionTools.d.ts +8 -0
  60. package/dist/commonjs/mcp-server/tools/agentsListFunctionTools.d.ts.map +1 -0
  61. package/dist/commonjs/mcp-server/tools/agentsListFunctionTools.js +62 -0
  62. package/dist/commonjs/mcp-server/tools/agentsListFunctionTools.js.map +1 -0
  63. package/dist/commonjs/mcp-server/tools/agentsRestoreAgent.d.ts +8 -0
  64. package/dist/commonjs/mcp-server/tools/agentsRestoreAgent.d.ts.map +1 -0
  65. package/dist/commonjs/mcp-server/tools/agentsRestoreAgent.js +64 -0
  66. package/dist/commonjs/mcp-server/tools/agentsRestoreAgent.js.map +1 -0
  67. package/dist/commonjs/mcp-server/tools/agentsUpdateFunctionTool.d.ts +8 -0
  68. package/dist/commonjs/mcp-server/tools/agentsUpdateFunctionTool.d.ts.map +1 -0
  69. package/dist/commonjs/mcp-server/tools/agentsUpdateFunctionTool.js +64 -0
  70. package/dist/commonjs/mcp-server/tools/agentsUpdateFunctionTool.js.map +1 -0
  71. package/dist/commonjs/models/components/agent.d.ts +12 -0
  72. package/dist/commonjs/models/components/agent.d.ts.map +1 -1
  73. package/dist/commonjs/models/components/agent.js +12 -0
  74. package/dist/commonjs/models/components/agent.js.map +1 -1
  75. package/dist/commonjs/models/components/agentsfunctiontooldefinition.d.ts +40 -0
  76. package/dist/commonjs/models/components/agentsfunctiontooldefinition.d.ts.map +1 -0
  77. package/dist/commonjs/models/components/agentsfunctiontooldefinition.js +84 -0
  78. package/dist/commonjs/models/components/agentsfunctiontooldefinition.js.map +1 -0
  79. package/dist/commonjs/models/components/functiontool.d.ts +35 -0
  80. package/dist/commonjs/models/components/functiontool.d.ts.map +1 -0
  81. package/dist/commonjs/models/components/functiontool.js +85 -0
  82. package/dist/commonjs/models/components/functiontool.js.map +1 -0
  83. package/dist/commonjs/models/components/functiontoollist.d.ts +35 -0
  84. package/dist/commonjs/models/components/functiontoollist.d.ts.map +1 -0
  85. package/dist/commonjs/models/components/functiontoollist.js +87 -0
  86. package/dist/commonjs/models/components/functiontoollist.js.map +1 -0
  87. package/dist/commonjs/models/components/functiontoolreference.d.ts +28 -0
  88. package/dist/commonjs/models/components/functiontoolreference.d.ts.map +1 -0
  89. package/dist/commonjs/models/components/functiontoolreference.js +76 -0
  90. package/dist/commonjs/models/components/functiontoolreference.js.map +1 -0
  91. package/dist/commonjs/models/components/index.d.ts +4 -0
  92. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  93. package/dist/commonjs/models/components/index.js +4 -0
  94. package/dist/commonjs/models/components/index.js.map +1 -1
  95. package/dist/commonjs/models/components/openaichatcompletion.d.ts +10 -0
  96. package/dist/commonjs/models/components/openaichatcompletion.d.ts.map +1 -1
  97. package/dist/commonjs/models/components/openaichatcompletion.js +8 -0
  98. package/dist/commonjs/models/components/openaichatcompletion.js.map +1 -1
  99. package/dist/commonjs/models/components/openaichatcompletionchunk.d.ts +10 -0
  100. package/dist/commonjs/models/components/openaichatcompletionchunk.d.ts.map +1 -1
  101. package/dist/commonjs/models/components/openaichatcompletionchunk.js +8 -0
  102. package/dist/commonjs/models/components/openaichatcompletionchunk.js.map +1 -1
  103. package/dist/commonjs/models/components/responseobject.d.ts +5 -0
  104. package/dist/commonjs/models/components/responseobject.d.ts.map +1 -1
  105. package/dist/commonjs/models/components/responseobject.js +4 -0
  106. package/dist/commonjs/models/components/responseobject.js.map +1 -1
  107. package/dist/commonjs/models/components/tooldefinition.d.ts +115 -114
  108. package/dist/commonjs/models/components/tooldefinition.d.ts.map +1 -1
  109. package/dist/commonjs/models/components/tooldefinition.js +151 -147
  110. package/dist/commonjs/models/components/tooldefinition.js.map +1 -1
  111. package/dist/commonjs/models/operations/createfunctiontool.d.ts +23 -0
  112. package/dist/commonjs/models/operations/createfunctiontool.d.ts.map +1 -0
  113. package/dist/commonjs/models/operations/createfunctiontool.js +72 -0
  114. package/dist/commonjs/models/operations/createfunctiontool.js.map +1 -0
  115. package/dist/commonjs/models/operations/deletefunctiontool.d.ts +51 -0
  116. package/dist/commonjs/models/operations/deletefunctiontool.d.ts.map +1 -0
  117. package/dist/commonjs/models/operations/deletefunctiontool.js +98 -0
  118. package/dist/commonjs/models/operations/deletefunctiontool.js.map +1 -0
  119. package/dist/commonjs/models/operations/getfunctiontool.d.ts +22 -0
  120. package/dist/commonjs/models/operations/getfunctiontool.d.ts.map +1 -0
  121. package/dist/commonjs/models/operations/getfunctiontool.js +71 -0
  122. package/dist/commonjs/models/operations/getfunctiontool.js.map +1 -0
  123. package/dist/commonjs/models/operations/index.d.ts +6 -0
  124. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  125. package/dist/commonjs/models/operations/index.js +6 -0
  126. package/dist/commonjs/models/operations/index.js.map +1 -1
  127. package/dist/commonjs/models/operations/listagentruns.d.ts +5 -0
  128. package/dist/commonjs/models/operations/listagentruns.d.ts.map +1 -1
  129. package/dist/commonjs/models/operations/listagentruns.js +2 -0
  130. package/dist/commonjs/models/operations/listagentruns.js.map +1 -1
  131. package/dist/commonjs/models/operations/listagents.d.ts +10 -0
  132. package/dist/commonjs/models/operations/listagents.d.ts.map +1 -1
  133. package/dist/commonjs/models/operations/listagents.js +4 -0
  134. package/dist/commonjs/models/operations/listagents.js.map +1 -1
  135. package/dist/commonjs/models/operations/listagentversions.d.ts +5 -0
  136. package/dist/commonjs/models/operations/listagentversions.d.ts.map +1 -1
  137. package/dist/commonjs/models/operations/listagentversions.js +2 -0
  138. package/dist/commonjs/models/operations/listagentversions.js.map +1 -1
  139. package/dist/commonjs/models/operations/listfunctiontools.d.ts +39 -0
  140. package/dist/commonjs/models/operations/listfunctiontools.d.ts.map +1 -0
  141. package/dist/commonjs/models/operations/listfunctiontools.js +81 -0
  142. package/dist/commonjs/models/operations/listfunctiontools.js.map +1 -0
  143. package/dist/commonjs/models/operations/restoreagent.d.ts +22 -0
  144. package/dist/commonjs/models/operations/restoreagent.d.ts.map +1 -0
  145. package/dist/commonjs/models/operations/restoreagent.js +71 -0
  146. package/dist/commonjs/models/operations/restoreagent.js.map +1 -0
  147. package/dist/commonjs/models/operations/updatefunctiontool.d.ts +25 -0
  148. package/dist/commonjs/models/operations/updatefunctiontool.d.ts.map +1 -0
  149. package/dist/commonjs/models/operations/updatefunctiontool.js +76 -0
  150. package/dist/commonjs/models/operations/updatefunctiontool.js.map +1 -0
  151. package/dist/commonjs/react-query/agentRunsListAgentRuns.core.d.ts +1 -0
  152. package/dist/commonjs/react-query/agentRunsListAgentRuns.core.d.ts.map +1 -1
  153. package/dist/commonjs/react-query/agentRunsListAgentRuns.core.js +1 -0
  154. package/dist/commonjs/react-query/agentRunsListAgentRuns.core.js.map +1 -1
  155. package/dist/commonjs/react-query/agentRunsListAgentRuns.d.ts +2 -0
  156. package/dist/commonjs/react-query/agentRunsListAgentRuns.d.ts.map +1 -1
  157. package/dist/commonjs/react-query/agentRunsListAgentRuns.js.map +1 -1
  158. package/dist/commonjs/react-query/agentVersionsListAgentVersions.core.d.ts +1 -0
  159. package/dist/commonjs/react-query/agentVersionsListAgentVersions.core.d.ts.map +1 -1
  160. package/dist/commonjs/react-query/agentVersionsListAgentVersions.core.js +1 -0
  161. package/dist/commonjs/react-query/agentVersionsListAgentVersions.core.js.map +1 -1
  162. package/dist/commonjs/react-query/agentVersionsListAgentVersions.d.ts +2 -0
  163. package/dist/commonjs/react-query/agentVersionsListAgentVersions.d.ts.map +1 -1
  164. package/dist/commonjs/react-query/agentVersionsListAgentVersions.js.map +1 -1
  165. package/dist/commonjs/react-query/agentsCreateFunctionTool.d.ts +26 -0
  166. package/dist/commonjs/react-query/agentsCreateFunctionTool.d.ts.map +1 -0
  167. package/dist/commonjs/react-query/agentsCreateFunctionTool.js +44 -0
  168. package/dist/commonjs/react-query/agentsCreateFunctionTool.js.map +1 -0
  169. package/dist/commonjs/react-query/agentsDeleteAgent.d.ts +4 -1
  170. package/dist/commonjs/react-query/agentsDeleteAgent.d.ts.map +1 -1
  171. package/dist/commonjs/react-query/agentsDeleteAgent.js +4 -1
  172. package/dist/commonjs/react-query/agentsDeleteAgent.js.map +1 -1
  173. package/dist/commonjs/react-query/agentsDeleteFunctionTool.d.ts +28 -0
  174. package/dist/commonjs/react-query/agentsDeleteFunctionTool.d.ts.map +1 -0
  175. package/dist/commonjs/react-query/agentsDeleteFunctionTool.js +47 -0
  176. package/dist/commonjs/react-query/agentsDeleteFunctionTool.js.map +1 -0
  177. package/dist/commonjs/react-query/agentsGetFunctionTool.core.d.ts +15 -0
  178. package/dist/commonjs/react-query/agentsGetFunctionTool.core.d.ts.map +1 -0
  179. package/dist/commonjs/react-query/agentsGetFunctionTool.core.js +36 -0
  180. package/dist/commonjs/react-query/agentsGetFunctionTool.core.js.map +1 -0
  181. package/dist/commonjs/react-query/agentsGetFunctionTool.d.ts +32 -0
  182. package/dist/commonjs/react-query/agentsGetFunctionTool.d.ts.map +1 -0
  183. package/dist/commonjs/react-query/agentsGetFunctionTool.js +54 -0
  184. package/dist/commonjs/react-query/agentsGetFunctionTool.js.map +1 -0
  185. package/dist/commonjs/react-query/agentsListAgents.core.d.ts +2 -0
  186. package/dist/commonjs/react-query/agentsListAgents.core.d.ts.map +1 -1
  187. package/dist/commonjs/react-query/agentsListAgents.core.js +2 -0
  188. package/dist/commonjs/react-query/agentsListAgents.core.js.map +1 -1
  189. package/dist/commonjs/react-query/agentsListAgents.d.ts +4 -0
  190. package/dist/commonjs/react-query/agentsListAgents.d.ts.map +1 -1
  191. package/dist/commonjs/react-query/agentsListAgents.js.map +1 -1
  192. package/dist/commonjs/react-query/agentsListFunctionTools.core.d.ts +18 -0
  193. package/dist/commonjs/react-query/agentsListFunctionTools.core.d.ts.map +1 -0
  194. package/dist/commonjs/react-query/agentsListFunctionTools.core.js +39 -0
  195. package/dist/commonjs/react-query/agentsListFunctionTools.core.js.map +1 -0
  196. package/dist/commonjs/react-query/agentsListFunctionTools.d.ts +36 -0
  197. package/dist/commonjs/react-query/agentsListFunctionTools.d.ts.map +1 -0
  198. package/dist/commonjs/react-query/agentsListFunctionTools.js +54 -0
  199. package/dist/commonjs/react-query/agentsListFunctionTools.js.map +1 -0
  200. package/dist/commonjs/react-query/agentsRestoreAgent.d.ts +30 -0
  201. package/dist/commonjs/react-query/agentsRestoreAgent.d.ts.map +1 -0
  202. package/dist/commonjs/react-query/agentsRestoreAgent.js +47 -0
  203. package/dist/commonjs/react-query/agentsRestoreAgent.js.map +1 -0
  204. package/dist/commonjs/react-query/agentsUpdateFunctionTool.d.ts +29 -0
  205. package/dist/commonjs/react-query/agentsUpdateFunctionTool.d.ts.map +1 -0
  206. package/dist/commonjs/react-query/agentsUpdateFunctionTool.js +47 -0
  207. package/dist/commonjs/react-query/agentsUpdateFunctionTool.js.map +1 -0
  208. package/dist/commonjs/react-query/index.d.ts +6 -0
  209. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  210. package/dist/commonjs/react-query/index.js +6 -0
  211. package/dist/commonjs/react-query/index.js.map +1 -1
  212. package/dist/commonjs/sdk/agents.d.ts +37 -1
  213. package/dist/commonjs/sdk/agents.d.ts.map +1 -1
  214. package/dist/commonjs/sdk/agents.js +55 -1
  215. package/dist/commonjs/sdk/agents.js.map +1 -1
  216. package/dist/esm/funcs/agentRunsListAgentRuns.js +1 -0
  217. package/dist/esm/funcs/agentRunsListAgentRuns.js.map +1 -1
  218. package/dist/esm/funcs/agentVersionsListAgentVersions.js +1 -0
  219. package/dist/esm/funcs/agentVersionsListAgentVersions.js.map +1 -1
  220. package/dist/esm/funcs/agentsCreateFunctionTool.d.ts +17 -0
  221. package/dist/esm/funcs/agentsCreateFunctionTool.d.ts.map +1 -0
  222. package/dist/esm/funcs/agentsCreateFunctionTool.js +92 -0
  223. package/dist/esm/funcs/agentsCreateFunctionTool.js.map +1 -0
  224. package/dist/esm/funcs/agentsDeleteAgent.d.ts +4 -1
  225. package/dist/esm/funcs/agentsDeleteAgent.d.ts.map +1 -1
  226. package/dist/esm/funcs/agentsDeleteAgent.js +4 -1
  227. package/dist/esm/funcs/agentsDeleteAgent.js.map +1 -1
  228. package/dist/esm/funcs/agentsDeleteFunctionTool.d.ts +19 -0
  229. package/dist/esm/funcs/agentsDeleteFunctionTool.d.ts.map +1 -0
  230. package/dist/esm/funcs/agentsDeleteFunctionTool.js +97 -0
  231. package/dist/esm/funcs/agentsDeleteFunctionTool.js.map +1 -0
  232. package/dist/esm/funcs/agentsGetFunctionTool.d.ts +17 -0
  233. package/dist/esm/funcs/agentsGetFunctionTool.d.ts.map +1 -0
  234. package/dist/esm/funcs/agentsGetFunctionTool.js +95 -0
  235. package/dist/esm/funcs/agentsGetFunctionTool.js.map +1 -0
  236. package/dist/esm/funcs/agentsListAgents.js +2 -0
  237. package/dist/esm/funcs/agentsListAgents.js.map +1 -1
  238. package/dist/esm/funcs/agentsListFunctionTools.d.ts +17 -0
  239. package/dist/esm/funcs/agentsListFunctionTools.d.ts.map +1 -0
  240. package/dist/esm/funcs/agentsListFunctionTools.js +95 -0
  241. package/dist/esm/funcs/agentsListFunctionTools.js.map +1 -0
  242. package/dist/esm/funcs/agentsRestoreAgent.d.ts +21 -0
  243. package/dist/esm/funcs/agentsRestoreAgent.d.ts.map +1 -0
  244. package/dist/esm/funcs/agentsRestoreAgent.js +102 -0
  245. package/dist/esm/funcs/agentsRestoreAgent.js.map +1 -0
  246. package/dist/esm/funcs/agentsUpdateFunctionTool.d.ts +20 -0
  247. package/dist/esm/funcs/agentsUpdateFunctionTool.d.ts.map +1 -0
  248. package/dist/esm/funcs/agentsUpdateFunctionTool.js +101 -0
  249. package/dist/esm/funcs/agentsUpdateFunctionTool.js.map +1 -0
  250. package/dist/esm/lib/config.d.ts +2 -2
  251. package/dist/esm/lib/config.js +2 -2
  252. package/dist/esm/mcp-server/mcp-server.js +1 -1
  253. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  254. package/dist/esm/mcp-server/server.js +13 -1
  255. package/dist/esm/mcp-server/server.js.map +1 -1
  256. package/dist/esm/mcp-server/tools/agentsCreateFunctionTool.d.ts +8 -0
  257. package/dist/esm/mcp-server/tools/agentsCreateFunctionTool.d.ts.map +1 -0
  258. package/dist/esm/mcp-server/tools/agentsCreateFunctionTool.js +26 -0
  259. package/dist/esm/mcp-server/tools/agentsCreateFunctionTool.js.map +1 -0
  260. package/dist/esm/mcp-server/tools/agentsDeleteAgent.d.ts.map +1 -1
  261. package/dist/esm/mcp-server/tools/agentsDeleteAgent.js +3 -1
  262. package/dist/esm/mcp-server/tools/agentsDeleteAgent.js.map +1 -1
  263. package/dist/esm/mcp-server/tools/agentsDeleteFunctionTool.d.ts +8 -0
  264. package/dist/esm/mcp-server/tools/agentsDeleteFunctionTool.d.ts.map +1 -0
  265. package/dist/esm/mcp-server/tools/agentsDeleteFunctionTool.js +28 -0
  266. package/dist/esm/mcp-server/tools/agentsDeleteFunctionTool.js.map +1 -0
  267. package/dist/esm/mcp-server/tools/agentsGetFunctionTool.d.ts +8 -0
  268. package/dist/esm/mcp-server/tools/agentsGetFunctionTool.d.ts.map +1 -0
  269. package/dist/esm/mcp-server/tools/agentsGetFunctionTool.js +26 -0
  270. package/dist/esm/mcp-server/tools/agentsGetFunctionTool.js.map +1 -0
  271. package/dist/esm/mcp-server/tools/agentsListFunctionTools.d.ts +8 -0
  272. package/dist/esm/mcp-server/tools/agentsListFunctionTools.d.ts.map +1 -0
  273. package/dist/esm/mcp-server/tools/agentsListFunctionTools.js +26 -0
  274. package/dist/esm/mcp-server/tools/agentsListFunctionTools.js.map +1 -0
  275. package/dist/esm/mcp-server/tools/agentsRestoreAgent.d.ts +8 -0
  276. package/dist/esm/mcp-server/tools/agentsRestoreAgent.d.ts.map +1 -0
  277. package/dist/esm/mcp-server/tools/agentsRestoreAgent.js +28 -0
  278. package/dist/esm/mcp-server/tools/agentsRestoreAgent.js.map +1 -0
  279. package/dist/esm/mcp-server/tools/agentsUpdateFunctionTool.d.ts +8 -0
  280. package/dist/esm/mcp-server/tools/agentsUpdateFunctionTool.d.ts.map +1 -0
  281. package/dist/esm/mcp-server/tools/agentsUpdateFunctionTool.js +28 -0
  282. package/dist/esm/mcp-server/tools/agentsUpdateFunctionTool.js.map +1 -0
  283. package/dist/esm/models/components/agent.d.ts +12 -0
  284. package/dist/esm/models/components/agent.d.ts.map +1 -1
  285. package/dist/esm/models/components/agent.js +12 -0
  286. package/dist/esm/models/components/agent.js.map +1 -1
  287. package/dist/esm/models/components/agentsfunctiontooldefinition.d.ts +40 -0
  288. package/dist/esm/models/components/agentsfunctiontooldefinition.d.ts.map +1 -0
  289. package/dist/esm/models/components/agentsfunctiontooldefinition.js +46 -0
  290. package/dist/esm/models/components/agentsfunctiontooldefinition.js.map +1 -0
  291. package/dist/esm/models/components/functiontool.d.ts +35 -0
  292. package/dist/esm/models/components/functiontool.d.ts.map +1 -0
  293. package/dist/esm/models/components/functiontool.js +47 -0
  294. package/dist/esm/models/components/functiontool.js.map +1 -0
  295. package/dist/esm/models/components/functiontoollist.d.ts +35 -0
  296. package/dist/esm/models/components/functiontoollist.d.ts.map +1 -0
  297. package/dist/esm/models/components/functiontoollist.js +49 -0
  298. package/dist/esm/models/components/functiontoollist.js.map +1 -0
  299. package/dist/esm/models/components/functiontoolreference.d.ts +28 -0
  300. package/dist/esm/models/components/functiontoolreference.d.ts.map +1 -0
  301. package/dist/esm/models/components/functiontoolreference.js +38 -0
  302. package/dist/esm/models/components/functiontoolreference.js.map +1 -0
  303. package/dist/esm/models/components/index.d.ts +4 -0
  304. package/dist/esm/models/components/index.d.ts.map +1 -1
  305. package/dist/esm/models/components/index.js +4 -0
  306. package/dist/esm/models/components/index.js.map +1 -1
  307. package/dist/esm/models/components/openaichatcompletion.d.ts +10 -0
  308. package/dist/esm/models/components/openaichatcompletion.d.ts.map +1 -1
  309. package/dist/esm/models/components/openaichatcompletion.js +8 -0
  310. package/dist/esm/models/components/openaichatcompletion.js.map +1 -1
  311. package/dist/esm/models/components/openaichatcompletionchunk.d.ts +10 -0
  312. package/dist/esm/models/components/openaichatcompletionchunk.d.ts.map +1 -1
  313. package/dist/esm/models/components/openaichatcompletionchunk.js +8 -0
  314. package/dist/esm/models/components/openaichatcompletionchunk.js.map +1 -1
  315. package/dist/esm/models/components/responseobject.d.ts +5 -0
  316. package/dist/esm/models/components/responseobject.d.ts.map +1 -1
  317. package/dist/esm/models/components/responseobject.js +4 -0
  318. package/dist/esm/models/components/responseobject.js.map +1 -1
  319. package/dist/esm/models/components/tooldefinition.d.ts +115 -114
  320. package/dist/esm/models/components/tooldefinition.d.ts.map +1 -1
  321. package/dist/esm/models/components/tooldefinition.js +129 -125
  322. package/dist/esm/models/components/tooldefinition.js.map +1 -1
  323. package/dist/esm/models/operations/createfunctiontool.d.ts +23 -0
  324. package/dist/esm/models/operations/createfunctiontool.d.ts.map +1 -0
  325. package/dist/esm/models/operations/createfunctiontool.js +34 -0
  326. package/dist/esm/models/operations/createfunctiontool.js.map +1 -0
  327. package/dist/esm/models/operations/deletefunctiontool.d.ts +51 -0
  328. package/dist/esm/models/operations/deletefunctiontool.d.ts.map +1 -0
  329. package/dist/esm/models/operations/deletefunctiontool.js +58 -0
  330. package/dist/esm/models/operations/deletefunctiontool.js.map +1 -0
  331. package/dist/esm/models/operations/getfunctiontool.d.ts +22 -0
  332. package/dist/esm/models/operations/getfunctiontool.d.ts.map +1 -0
  333. package/dist/esm/models/operations/getfunctiontool.js +33 -0
  334. package/dist/esm/models/operations/getfunctiontool.js.map +1 -0
  335. package/dist/esm/models/operations/index.d.ts +6 -0
  336. package/dist/esm/models/operations/index.d.ts.map +1 -1
  337. package/dist/esm/models/operations/index.js +6 -0
  338. package/dist/esm/models/operations/index.js.map +1 -1
  339. package/dist/esm/models/operations/listagentruns.d.ts +5 -0
  340. package/dist/esm/models/operations/listagentruns.d.ts.map +1 -1
  341. package/dist/esm/models/operations/listagentruns.js +2 -0
  342. package/dist/esm/models/operations/listagentruns.js.map +1 -1
  343. package/dist/esm/models/operations/listagents.d.ts +10 -0
  344. package/dist/esm/models/operations/listagents.d.ts.map +1 -1
  345. package/dist/esm/models/operations/listagents.js +4 -0
  346. package/dist/esm/models/operations/listagents.js.map +1 -1
  347. package/dist/esm/models/operations/listagentversions.d.ts +5 -0
  348. package/dist/esm/models/operations/listagentversions.d.ts.map +1 -1
  349. package/dist/esm/models/operations/listagentversions.js +2 -0
  350. package/dist/esm/models/operations/listagentversions.js.map +1 -1
  351. package/dist/esm/models/operations/listfunctiontools.d.ts +39 -0
  352. package/dist/esm/models/operations/listfunctiontools.d.ts.map +1 -0
  353. package/dist/esm/models/operations/listfunctiontools.js +43 -0
  354. package/dist/esm/models/operations/listfunctiontools.js.map +1 -0
  355. package/dist/esm/models/operations/restoreagent.d.ts +22 -0
  356. package/dist/esm/models/operations/restoreagent.d.ts.map +1 -0
  357. package/dist/esm/models/operations/restoreagent.js +33 -0
  358. package/dist/esm/models/operations/restoreagent.js.map +1 -0
  359. package/dist/esm/models/operations/updatefunctiontool.d.ts +25 -0
  360. package/dist/esm/models/operations/updatefunctiontool.d.ts.map +1 -0
  361. package/dist/esm/models/operations/updatefunctiontool.js +38 -0
  362. package/dist/esm/models/operations/updatefunctiontool.js.map +1 -0
  363. package/dist/esm/react-query/agentRunsListAgentRuns.core.d.ts +1 -0
  364. package/dist/esm/react-query/agentRunsListAgentRuns.core.d.ts.map +1 -1
  365. package/dist/esm/react-query/agentRunsListAgentRuns.core.js +1 -0
  366. package/dist/esm/react-query/agentRunsListAgentRuns.core.js.map +1 -1
  367. package/dist/esm/react-query/agentRunsListAgentRuns.d.ts +2 -0
  368. package/dist/esm/react-query/agentRunsListAgentRuns.d.ts.map +1 -1
  369. package/dist/esm/react-query/agentRunsListAgentRuns.js.map +1 -1
  370. package/dist/esm/react-query/agentVersionsListAgentVersions.core.d.ts +1 -0
  371. package/dist/esm/react-query/agentVersionsListAgentVersions.core.d.ts.map +1 -1
  372. package/dist/esm/react-query/agentVersionsListAgentVersions.core.js +1 -0
  373. package/dist/esm/react-query/agentVersionsListAgentVersions.core.js.map +1 -1
  374. package/dist/esm/react-query/agentVersionsListAgentVersions.d.ts +2 -0
  375. package/dist/esm/react-query/agentVersionsListAgentVersions.d.ts.map +1 -1
  376. package/dist/esm/react-query/agentVersionsListAgentVersions.js.map +1 -1
  377. package/dist/esm/react-query/agentsCreateFunctionTool.d.ts +26 -0
  378. package/dist/esm/react-query/agentsCreateFunctionTool.d.ts.map +1 -0
  379. package/dist/esm/react-query/agentsCreateFunctionTool.js +39 -0
  380. package/dist/esm/react-query/agentsCreateFunctionTool.js.map +1 -0
  381. package/dist/esm/react-query/agentsDeleteAgent.d.ts +4 -1
  382. package/dist/esm/react-query/agentsDeleteAgent.d.ts.map +1 -1
  383. package/dist/esm/react-query/agentsDeleteAgent.js +4 -1
  384. package/dist/esm/react-query/agentsDeleteAgent.js.map +1 -1
  385. package/dist/esm/react-query/agentsDeleteFunctionTool.d.ts +28 -0
  386. package/dist/esm/react-query/agentsDeleteFunctionTool.d.ts.map +1 -0
  387. package/dist/esm/react-query/agentsDeleteFunctionTool.js +42 -0
  388. package/dist/esm/react-query/agentsDeleteFunctionTool.js.map +1 -0
  389. package/dist/esm/react-query/agentsGetFunctionTool.core.d.ts +15 -0
  390. package/dist/esm/react-query/agentsGetFunctionTool.core.d.ts.map +1 -0
  391. package/dist/esm/react-query/agentsGetFunctionTool.core.js +31 -0
  392. package/dist/esm/react-query/agentsGetFunctionTool.core.js.map +1 -0
  393. package/dist/esm/react-query/agentsGetFunctionTool.d.ts +32 -0
  394. package/dist/esm/react-query/agentsGetFunctionTool.d.ts.map +1 -0
  395. package/dist/esm/react-query/agentsGetFunctionTool.js +44 -0
  396. package/dist/esm/react-query/agentsGetFunctionTool.js.map +1 -0
  397. package/dist/esm/react-query/agentsListAgents.core.d.ts +2 -0
  398. package/dist/esm/react-query/agentsListAgents.core.d.ts.map +1 -1
  399. package/dist/esm/react-query/agentsListAgents.core.js +2 -0
  400. package/dist/esm/react-query/agentsListAgents.core.js.map +1 -1
  401. package/dist/esm/react-query/agentsListAgents.d.ts +4 -0
  402. package/dist/esm/react-query/agentsListAgents.d.ts.map +1 -1
  403. package/dist/esm/react-query/agentsListAgents.js.map +1 -1
  404. package/dist/esm/react-query/agentsListFunctionTools.core.d.ts +18 -0
  405. package/dist/esm/react-query/agentsListFunctionTools.core.d.ts.map +1 -0
  406. package/dist/esm/react-query/agentsListFunctionTools.core.js +34 -0
  407. package/dist/esm/react-query/agentsListFunctionTools.core.js.map +1 -0
  408. package/dist/esm/react-query/agentsListFunctionTools.d.ts +36 -0
  409. package/dist/esm/react-query/agentsListFunctionTools.d.ts.map +1 -0
  410. package/dist/esm/react-query/agentsListFunctionTools.js +44 -0
  411. package/dist/esm/react-query/agentsListFunctionTools.js.map +1 -0
  412. package/dist/esm/react-query/agentsRestoreAgent.d.ts +30 -0
  413. package/dist/esm/react-query/agentsRestoreAgent.d.ts.map +1 -0
  414. package/dist/esm/react-query/agentsRestoreAgent.js +42 -0
  415. package/dist/esm/react-query/agentsRestoreAgent.js.map +1 -0
  416. package/dist/esm/react-query/agentsUpdateFunctionTool.d.ts +29 -0
  417. package/dist/esm/react-query/agentsUpdateFunctionTool.d.ts.map +1 -0
  418. package/dist/esm/react-query/agentsUpdateFunctionTool.js +42 -0
  419. package/dist/esm/react-query/agentsUpdateFunctionTool.js.map +1 -0
  420. package/dist/esm/react-query/index.d.ts +6 -0
  421. package/dist/esm/react-query/index.d.ts.map +1 -1
  422. package/dist/esm/react-query/index.js +6 -0
  423. package/dist/esm/react-query/index.js.map +1 -1
  424. package/dist/esm/sdk/agents.d.ts +37 -1
  425. package/dist/esm/sdk/agents.d.ts.map +1 -1
  426. package/dist/esm/sdk/agents.js +55 -1
  427. package/dist/esm/sdk/agents.js.map +1 -1
  428. package/jsr.json +1 -1
  429. package/package.json +1 -1
  430. package/src/funcs/agentRunsListAgentRuns.ts +1 -0
  431. package/src/funcs/agentVersionsListAgentVersions.ts +1 -0
  432. package/src/funcs/agentsCreateFunctionTool.ts +179 -0
  433. package/src/funcs/agentsDeleteAgent.ts +4 -1
  434. package/src/funcs/agentsDeleteFunctionTool.ts +186 -0
  435. package/src/funcs/agentsGetFunctionTool.ts +184 -0
  436. package/src/funcs/agentsListAgents.ts +2 -0
  437. package/src/funcs/agentsListFunctionTools.ts +183 -0
  438. package/src/funcs/agentsRestoreAgent.ts +194 -0
  439. package/src/funcs/agentsUpdateFunctionTool.ts +190 -0
  440. package/src/lib/config.ts +2 -2
  441. package/src/mcp-server/mcp-server.ts +1 -1
  442. package/src/mcp-server/server.ts +13 -1
  443. package/src/mcp-server/tools/agentsCreateFunctionTool.ts +35 -0
  444. package/src/mcp-server/tools/agentsDeleteAgent.ts +3 -1
  445. package/src/mcp-server/tools/agentsDeleteFunctionTool.ts +37 -0
  446. package/src/mcp-server/tools/agentsGetFunctionTool.ts +35 -0
  447. package/src/mcp-server/tools/agentsListFunctionTools.ts +35 -0
  448. package/src/mcp-server/tools/agentsRestoreAgent.ts +37 -0
  449. package/src/mcp-server/tools/agentsUpdateFunctionTool.ts +37 -0
  450. package/src/models/components/agent.ts +26 -0
  451. package/src/models/components/agentsfunctiontooldefinition.ts +99 -0
  452. package/src/models/components/functiontool.ts +95 -0
  453. package/src/models/components/functiontoollist.ts +101 -0
  454. package/src/models/components/functiontoolreference.ts +81 -0
  455. package/src/models/components/index.ts +4 -0
  456. package/src/models/components/openaichatcompletion.ts +18 -0
  457. package/src/models/components/openaichatcompletionchunk.ts +18 -0
  458. package/src/models/components/responseobject.ts +9 -0
  459. package/src/models/components/tooldefinition.ts +284 -279
  460. package/src/models/operations/createfunctiontool.ts +73 -0
  461. package/src/models/operations/deletefunctiontool.ts +142 -0
  462. package/src/models/operations/getfunctiontool.ts +69 -0
  463. package/src/models/operations/index.ts +6 -0
  464. package/src/models/operations/listagentruns.ts +7 -0
  465. package/src/models/operations/listagents.ts +14 -0
  466. package/src/models/operations/listagentversions.ts +7 -0
  467. package/src/models/operations/listfunctiontools.ts +96 -0
  468. package/src/models/operations/restoreagent.ts +69 -0
  469. package/src/models/operations/updatefunctiontool.ts +79 -0
  470. package/src/react-query/agentRunsListAgentRuns.core.ts +2 -0
  471. package/src/react-query/agentRunsListAgentRuns.ts +2 -0
  472. package/src/react-query/agentVersionsListAgentVersions.core.ts +2 -0
  473. package/src/react-query/agentVersionsListAgentVersions.ts +2 -0
  474. package/src/react-query/agentsCreateFunctionTool.ts +106 -0
  475. package/src/react-query/agentsDeleteAgent.ts +4 -1
  476. package/src/react-query/agentsDeleteFunctionTool.ts +109 -0
  477. package/src/react-query/agentsGetFunctionTool.core.ts +76 -0
  478. package/src/react-query/agentsGetFunctionTool.ts +135 -0
  479. package/src/react-query/agentsListAgents.core.ts +4 -0
  480. package/src/react-query/agentsListAgents.ts +4 -0
  481. package/src/react-query/agentsListFunctionTools.core.ts +83 -0
  482. package/src/react-query/agentsListFunctionTools.ts +144 -0
  483. package/src/react-query/agentsRestoreAgent.ts +111 -0
  484. package/src/react-query/agentsUpdateFunctionTool.ts +109 -0
  485. package/src/react-query/index.ts +6 -0
  486. 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 ToolDefinition7Type = {
38
+ export const ToolDefinition8Type = {
33
39
  Shell: "shell",
34
40
  } as const;
35
- export type ToolDefinition7Type = ClosedEnum<typeof ToolDefinition7Type>;
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 Seven = {
94
- type: ToolDefinition7Type;
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 ToolDefinition6Type = {
108
+ export const ToolDefinition7Type = {
103
109
  Sleep: "sleep",
104
110
  } as const;
105
- export type ToolDefinition6Type = ClosedEnum<typeof ToolDefinition6Type>;
111
+ export type ToolDefinition7Type = ClosedEnum<typeof ToolDefinition7Type>;
106
112
 
107
- export type ToolDefinition6 = {
108
- type: ToolDefinition6Type;
113
+ export type Seven = {
114
+ type: ToolDefinition7Type;
109
115
  };
110
116
 
111
- export const ToolDefinition5Type = {
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 ToolDefinition5Type = ClosedEnum<typeof ToolDefinition5Type>;
123
+ export type ToolDefinition6Type = ClosedEnum<typeof ToolDefinition6Type>;
118
124
 
119
- export type ToolDefinition5 = {
120
- type: ToolDefinition5Type;
125
+ export type ToolDefinition6 = {
126
+ type: ToolDefinition6Type;
121
127
  };
122
128
 
123
- export const ToolDefinition4Type = {
129
+ export const ToolDefinition5Type = {
124
130
  FileSearch: "file_search",
125
131
  } as const;
126
- export type ToolDefinition4Type = ClosedEnum<typeof ToolDefinition4Type>;
132
+ export type ToolDefinition5Type = ClosedEnum<typeof ToolDefinition5Type>;
127
133
 
128
- export type ToolDefinition4Filters =
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 ToolDefinition4 = {
145
- type: ToolDefinition4Type;
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 ToolDefinition3Type = {
168
+ export const ToolDefinition4Type = {
163
169
  Mcp: "mcp",
164
170
  } as const;
165
- export type ToolDefinition3Type = ClosedEnum<typeof ToolDefinition3Type>;
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 ThreeRequireApproval =
186
+ export type FourRequireApproval =
181
187
  | ToolDefinitionRequireApproval1
182
188
  | ToolDefinitionRequireApproval2;
183
189
 
184
- export type ToolDefinition3AllowedTools = Array<string> | MCPToolFilter;
190
+ export type ToolDefinition4AllowedTools = Array<string> | MCPToolFilter;
185
191
 
186
- export type Three2 = {
187
- type: ToolDefinition3Type;
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 ThreeType = {
208
+ export const FourType = {
203
209
  Mcp: "mcp",
204
210
  } as const;
205
- export type ThreeType = ClosedEnum<typeof ThreeType>;
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 ThreeAllowedTools = Array<string> | MCPToolFilter;
226
+ export type FourAllowedTools = Array<string> | MCPToolFilter;
221
227
 
222
- export type Three1 = {
223
- type: ThreeType;
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 ToolDefinition3 = Three1 | Three2;
241
+ export type ToolDefinition4 = Four1 | Four2;
236
242
 
237
- export const ToolDefinition2Type = {
243
+ export const ToolDefinition3Type = {
238
244
  Function: "function",
239
245
  } as const;
240
- export type ToolDefinition2Type = ClosedEnum<typeof ToolDefinition2Type>;
246
+ export type ToolDefinition3Type = ClosedEnum<typeof ToolDefinition3Type>;
241
247
 
242
- export type ToolDefinition2 = {
243
- type: ToolDefinition2Type;
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 ToolDefinition1Type = {
274
+ export const ToolDefinition2Type = {
269
275
  Approximate: "approximate",
270
276
  } as const;
271
- export type ToolDefinition1Type = ClosedEnum<typeof ToolDefinition1Type>;
277
+ export type ToolDefinition2Type = ClosedEnum<typeof ToolDefinition2Type>;
272
278
 
273
279
  export type ToolDefinitionUserLocation = {
274
- type?: ToolDefinition1Type | undefined;
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 ToolDefinition1 = {
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
- | ToolDefinition2
294
- | ToolDefinition4
295
- | ToolDefinition1
299
+ | ToolDefinition3
300
+ | FunctionToolReference
296
301
  | ToolDefinition5
302
+ | ToolDefinition2
297
303
  | ToolDefinition6
298
304
  | Seven
299
- | Three1
300
- | Three2;
305
+ | Eight
306
+ | Four1
307
+ | Four2;
301
308
 
302
309
  /** @internal */
303
- export const ToolDefinition7Type$inboundSchema: z.ZodNativeEnum<
304
- typeof ToolDefinition7Type
305
- > = z.nativeEnum(ToolDefinition7Type);
310
+ export const ToolDefinition8Type$inboundSchema: z.ZodNativeEnum<
311
+ typeof ToolDefinition8Type
312
+ > = z.nativeEnum(ToolDefinition8Type);
306
313
  /** @internal */
307
- export const ToolDefinition7Type$outboundSchema: z.ZodNativeEnum<
308
- typeof ToolDefinition7Type
309
- > = ToolDefinition7Type$inboundSchema;
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 Seven$inboundSchema: z.ZodType<Seven, z.ZodTypeDef, unknown> = z
603
+ export const Eight$inboundSchema: z.ZodType<Eight, z.ZodTypeDef, unknown> = z
597
604
  .object({
598
- type: ToolDefinition7Type$inboundSchema,
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 Seven$Outbound = {
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 Seven$outboundSchema: z.ZodType<
612
- Seven$Outbound,
618
+ export const Eight$outboundSchema: z.ZodType<
619
+ Eight$Outbound,
613
620
  z.ZodTypeDef,
614
- Seven
621
+ Eight
615
622
  > = z.object({
616
- type: ToolDefinition7Type$outboundSchema,
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 ToolDefinition5$inboundSchema: z.ZodType<
693
- ToolDefinition5,
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 ToolDefinition4Filters$Outbound =
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 ToolDefinition4Filters$outboundSchema: z.ZodType<
781
- ToolDefinition4Filters$Outbound,
782
+ export const ToolDefinition5Filters$outboundSchema: z.ZodType<
783
+ ToolDefinition5Filters$Outbound,
782
784
  z.ZodTypeDef,
783
- ToolDefinition4Filters
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 toolDefinition4FiltersToJSON(
812
- toolDefinition4Filters: ToolDefinition4Filters,
813
+ export function toolDefinition5FiltersToJSON(
814
+ toolDefinition5Filters: ToolDefinition5Filters,
813
815
  ): string {
814
816
  return JSON.stringify(
815
- ToolDefinition4Filters$outboundSchema.parse(toolDefinition4Filters),
817
+ ToolDefinition5Filters$outboundSchema.parse(toolDefinition5Filters),
816
818
  );
817
819
  }
818
- export function toolDefinition4FiltersFromJSON(
820
+ export function toolDefinition5FiltersFromJSON(
819
821
  jsonString: string,
820
- ): SafeParseResult<ToolDefinition4Filters, SDKValidationError> {
822
+ ): SafeParseResult<ToolDefinition5Filters, SDKValidationError> {
821
823
  return safeParse(
822
824
  jsonString,
823
- (x) => ToolDefinition4Filters$inboundSchema.parse(JSON.parse(x)),
824
- `Failed to parse 'ToolDefinition4Filters' from JSON`,
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 ToolDefinition4$inboundSchema: z.ZodType<
882
- ToolDefinition4,
883
+ export const ToolDefinition5$inboundSchema: z.ZodType<
884
+ ToolDefinition5,
883
885
  z.ZodTypeDef,
884
886
  unknown
885
887
  > = z.object({
886
- type: ToolDefinition4Type$inboundSchema,
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 ToolDefinition4$Outbound = {
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 ToolDefinition4$outboundSchema: z.ZodType<
944
- ToolDefinition4$Outbound,
945
+ export const ToolDefinition5$outboundSchema: z.ZodType<
946
+ ToolDefinition5$Outbound,
945
947
  z.ZodTypeDef,
946
- ToolDefinition4
948
+ ToolDefinition5
947
949
  > = z.object({
948
- type: ToolDefinition4Type$outboundSchema,
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 toolDefinition4ToJSON(
988
- toolDefinition4: ToolDefinition4,
989
+ export function toolDefinition5ToJSON(
990
+ toolDefinition5: ToolDefinition5,
989
991
  ): string {
990
- return JSON.stringify(ToolDefinition4$outboundSchema.parse(toolDefinition4));
992
+ return JSON.stringify(ToolDefinition5$outboundSchema.parse(toolDefinition5));
991
993
  }
992
- export function toolDefinition4FromJSON(
994
+ export function toolDefinition5FromJSON(
993
995
  jsonString: string,
994
- ): SafeParseResult<ToolDefinition4, SDKValidationError> {
996
+ ): SafeParseResult<ToolDefinition5, SDKValidationError> {
995
997
  return safeParse(
996
998
  jsonString,
997
- (x) => ToolDefinition4$inboundSchema.parse(JSON.parse(x)),
998
- `Failed to parse 'ToolDefinition4' from JSON`,
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 ToolDefinition3Type$inboundSchema: z.ZodNativeEnum<
1004
- typeof ToolDefinition3Type
1005
- > = z.nativeEnum(ToolDefinition3Type);
1005
+ export const ToolDefinition4Type$inboundSchema: z.ZodNativeEnum<
1006
+ typeof ToolDefinition4Type
1007
+ > = z.nativeEnum(ToolDefinition4Type);
1006
1008
  /** @internal */
1007
- export const ToolDefinition3Type$outboundSchema: z.ZodNativeEnum<
1008
- typeof ToolDefinition3Type
1009
- > = ToolDefinition3Type$inboundSchema;
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 ThreeRequireApproval$inboundSchema: z.ZodType<
1066
- ThreeRequireApproval,
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 ThreeRequireApproval$Outbound =
1076
+ export type FourRequireApproval$Outbound =
1075
1077
  | string
1076
1078
  | ToolDefinitionRequireApproval2$Outbound;
1077
1079
 
1078
1080
  /** @internal */
1079
- export const ThreeRequireApproval$outboundSchema: z.ZodType<
1080
- ThreeRequireApproval$Outbound,
1081
+ export const FourRequireApproval$outboundSchema: z.ZodType<
1082
+ FourRequireApproval$Outbound,
1081
1083
  z.ZodTypeDef,
1082
- ThreeRequireApproval
1084
+ FourRequireApproval
1083
1085
  > = z.union([
1084
1086
  ToolDefinitionRequireApproval1$outboundSchema,
1085
1087
  z.lazy(() => ToolDefinitionRequireApproval2$outboundSchema),
1086
1088
  ]);
1087
1089
 
1088
- export function threeRequireApprovalToJSON(
1089
- threeRequireApproval: ThreeRequireApproval,
1090
+ export function fourRequireApprovalToJSON(
1091
+ fourRequireApproval: FourRequireApproval,
1090
1092
  ): string {
1091
1093
  return JSON.stringify(
1092
- ThreeRequireApproval$outboundSchema.parse(threeRequireApproval),
1094
+ FourRequireApproval$outboundSchema.parse(fourRequireApproval),
1093
1095
  );
1094
1096
  }
1095
- export function threeRequireApprovalFromJSON(
1097
+ export function fourRequireApprovalFromJSON(
1096
1098
  jsonString: string,
1097
- ): SafeParseResult<ThreeRequireApproval, SDKValidationError> {
1099
+ ): SafeParseResult<FourRequireApproval, SDKValidationError> {
1098
1100
  return safeParse(
1099
1101
  jsonString,
1100
- (x) => ThreeRequireApproval$inboundSchema.parse(JSON.parse(x)),
1101
- `Failed to parse 'ThreeRequireApproval' from JSON`,
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 ToolDefinition3AllowedTools$inboundSchema: z.ZodType<
1107
- ToolDefinition3AllowedTools,
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 ToolDefinition3AllowedTools$Outbound =
1114
+ export type ToolDefinition4AllowedTools$Outbound =
1113
1115
  | Array<string>
1114
1116
  | MCPToolFilter$Outbound;
1115
1117
 
1116
1118
  /** @internal */
1117
- export const ToolDefinition3AllowedTools$outboundSchema: z.ZodType<
1118
- ToolDefinition3AllowedTools$Outbound,
1119
+ export const ToolDefinition4AllowedTools$outboundSchema: z.ZodType<
1120
+ ToolDefinition4AllowedTools$Outbound,
1119
1121
  z.ZodTypeDef,
1120
- ToolDefinition3AllowedTools
1122
+ ToolDefinition4AllowedTools
1121
1123
  > = z.union([z.array(z.string()), MCPToolFilter$outboundSchema]);
1122
1124
 
1123
- export function toolDefinition3AllowedToolsToJSON(
1124
- toolDefinition3AllowedTools: ToolDefinition3AllowedTools,
1125
+ export function toolDefinition4AllowedToolsToJSON(
1126
+ toolDefinition4AllowedTools: ToolDefinition4AllowedTools,
1125
1127
  ): string {
1126
1128
  return JSON.stringify(
1127
- ToolDefinition3AllowedTools$outboundSchema.parse(
1128
- toolDefinition3AllowedTools,
1129
+ ToolDefinition4AllowedTools$outboundSchema.parse(
1130
+ toolDefinition4AllowedTools,
1129
1131
  ),
1130
1132
  );
1131
1133
  }
1132
- export function toolDefinition3AllowedToolsFromJSON(
1134
+ export function toolDefinition4AllowedToolsFromJSON(
1133
1135
  jsonString: string,
1134
- ): SafeParseResult<ToolDefinition3AllowedTools, SDKValidationError> {
1136
+ ): SafeParseResult<ToolDefinition4AllowedTools, SDKValidationError> {
1135
1137
  return safeParse(
1136
1138
  jsonString,
1137
- (x) => ToolDefinition3AllowedTools$inboundSchema.parse(JSON.parse(x)),
1138
- `Failed to parse 'ToolDefinition3AllowedTools' from JSON`,
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 Three2$inboundSchema: z.ZodType<Three2, z.ZodTypeDef, unknown> = z
1145
+ export const Four2$inboundSchema: z.ZodType<Four2, z.ZodTypeDef, unknown> = z
1144
1146
  .object({
1145
- type: ToolDefinition3Type$inboundSchema,
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 Three2$Outbound = {
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 Three2$outboundSchema: z.ZodType<
1189
- Three2$Outbound,
1190
+ export const Four2$outboundSchema: z.ZodType<
1191
+ Four2$Outbound,
1190
1192
  z.ZodTypeDef,
1191
- Three2
1193
+ Four2
1192
1194
  > = z.object({
1193
- type: ToolDefinition3Type$outboundSchema,
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 three2ToJSON(three2: Three2): string {
1220
- return JSON.stringify(Three2$outboundSchema.parse(three2));
1221
+ export function four2ToJSON(four2: Four2): string {
1222
+ return JSON.stringify(Four2$outboundSchema.parse(four2));
1221
1223
  }
1222
- export function three2FromJSON(
1224
+ export function four2FromJSON(
1223
1225
  jsonString: string,
1224
- ): SafeParseResult<Three2, SDKValidationError> {
1226
+ ): SafeParseResult<Four2, SDKValidationError> {
1225
1227
  return safeParse(
1226
1228
  jsonString,
1227
- (x) => Three2$inboundSchema.parse(JSON.parse(x)),
1228
- `Failed to parse 'Three2' from JSON`,
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 ThreeType$inboundSchema: z.ZodNativeEnum<typeof ThreeType> = z
1234
- .nativeEnum(ThreeType);
1235
+ export const FourType$inboundSchema: z.ZodNativeEnum<typeof FourType> = z
1236
+ .nativeEnum(FourType);
1235
1237
  /** @internal */
1236
- export const ThreeType$outboundSchema: z.ZodNativeEnum<typeof ThreeType> =
1237
- ThreeType$inboundSchema;
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 ThreeAllowedTools$inboundSchema: z.ZodType<
1329
- ThreeAllowedTools,
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 ThreeAllowedTools$Outbound = Array<string> | MCPToolFilter$Outbound;
1336
+ export type FourAllowedTools$Outbound = Array<string> | MCPToolFilter$Outbound;
1335
1337
 
1336
1338
  /** @internal */
1337
- export const ThreeAllowedTools$outboundSchema: z.ZodType<
1338
- ThreeAllowedTools$Outbound,
1339
+ export const FourAllowedTools$outboundSchema: z.ZodType<
1340
+ FourAllowedTools$Outbound,
1339
1341
  z.ZodTypeDef,
1340
- ThreeAllowedTools
1342
+ FourAllowedTools
1341
1343
  > = z.union([z.array(z.string()), MCPToolFilter$outboundSchema]);
1342
1344
 
1343
- export function threeAllowedToolsToJSON(
1344
- threeAllowedTools: ThreeAllowedTools,
1345
+ export function fourAllowedToolsToJSON(
1346
+ fourAllowedTools: FourAllowedTools,
1345
1347
  ): string {
1346
1348
  return JSON.stringify(
1347
- ThreeAllowedTools$outboundSchema.parse(threeAllowedTools),
1349
+ FourAllowedTools$outboundSchema.parse(fourAllowedTools),
1348
1350
  );
1349
1351
  }
1350
- export function threeAllowedToolsFromJSON(
1352
+ export function fourAllowedToolsFromJSON(
1351
1353
  jsonString: string,
1352
- ): SafeParseResult<ThreeAllowedTools, SDKValidationError> {
1354
+ ): SafeParseResult<FourAllowedTools, SDKValidationError> {
1353
1355
  return safeParse(
1354
1356
  jsonString,
1355
- (x) => ThreeAllowedTools$inboundSchema.parse(JSON.parse(x)),
1356
- `Failed to parse 'ThreeAllowedTools' from JSON`,
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 Three1$inboundSchema: z.ZodType<Three1, z.ZodTypeDef, unknown> = z
1363
+ export const Four1$inboundSchema: z.ZodType<Four1, z.ZodTypeDef, unknown> = z
1362
1364
  .object({
1363
- type: ThreeType$inboundSchema,
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 Three1$Outbound = {
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 Three1$outboundSchema: z.ZodType<
1404
- Three1$Outbound,
1405
+ export const Four1$outboundSchema: z.ZodType<
1406
+ Four1$Outbound,
1405
1407
  z.ZodTypeDef,
1406
- Three1
1408
+ Four1
1407
1409
  > = z.object({
1408
- type: ThreeType$outboundSchema,
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 three1ToJSON(three1: Three1): string {
1435
- return JSON.stringify(Three1$outboundSchema.parse(three1));
1436
+ export function four1ToJSON(four1: Four1): string {
1437
+ return JSON.stringify(Four1$outboundSchema.parse(four1));
1436
1438
  }
1437
- export function three1FromJSON(
1439
+ export function four1FromJSON(
1438
1440
  jsonString: string,
1439
- ): SafeParseResult<Three1, SDKValidationError> {
1441
+ ): SafeParseResult<Four1, SDKValidationError> {
1440
1442
  return safeParse(
1441
1443
  jsonString,
1442
- (x) => Three1$inboundSchema.parse(JSON.parse(x)),
1443
- `Failed to parse 'Three1' from JSON`,
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 ToolDefinition3$inboundSchema: z.ZodType<
1449
- ToolDefinition3,
1450
+ export const ToolDefinition4$inboundSchema: z.ZodType<
1451
+ ToolDefinition4,
1450
1452
  z.ZodTypeDef,
1451
1453
  unknown
1452
1454
  > = z.union([
1453
- z.lazy(() => Three1$inboundSchema),
1454
- z.lazy(() => Three2$inboundSchema),
1455
+ z.lazy(() => Four1$inboundSchema),
1456
+ z.lazy(() => Four2$inboundSchema),
1455
1457
  ]);
1456
1458
  /** @internal */
1457
- export type ToolDefinition3$Outbound = Three1$Outbound | Three2$Outbound;
1459
+ export type ToolDefinition4$Outbound = Four1$Outbound | Four2$Outbound;
1458
1460
 
1459
1461
  /** @internal */
1460
- export const ToolDefinition3$outboundSchema: z.ZodType<
1461
- ToolDefinition3$Outbound,
1462
+ export const ToolDefinition4$outboundSchema: z.ZodType<
1463
+ ToolDefinition4$Outbound,
1462
1464
  z.ZodTypeDef,
1463
- ToolDefinition3
1465
+ ToolDefinition4
1464
1466
  > = z.union([
1465
- z.lazy(() => Three1$outboundSchema),
1466
- z.lazy(() => Three2$outboundSchema),
1467
+ z.lazy(() => Four1$outboundSchema),
1468
+ z.lazy(() => Four2$outboundSchema),
1467
1469
  ]);
1468
1470
 
1469
- export function toolDefinition3ToJSON(
1470
- toolDefinition3: ToolDefinition3,
1471
+ export function toolDefinition4ToJSON(
1472
+ toolDefinition4: ToolDefinition4,
1471
1473
  ): string {
1472
- return JSON.stringify(ToolDefinition3$outboundSchema.parse(toolDefinition3));
1474
+ return JSON.stringify(ToolDefinition4$outboundSchema.parse(toolDefinition4));
1473
1475
  }
1474
- export function toolDefinition3FromJSON(
1476
+ export function toolDefinition4FromJSON(
1475
1477
  jsonString: string,
1476
- ): SafeParseResult<ToolDefinition3, SDKValidationError> {
1478
+ ): SafeParseResult<ToolDefinition4, SDKValidationError> {
1477
1479
  return safeParse(
1478
1480
  jsonString,
1479
- (x) => ToolDefinition3$inboundSchema.parse(JSON.parse(x)),
1480
- `Failed to parse 'ToolDefinition3' from JSON`,
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 ToolDefinition2Type$inboundSchema: z.ZodNativeEnum<
1486
- typeof ToolDefinition2Type
1487
- > = z.nativeEnum(ToolDefinition2Type);
1487
+ export const ToolDefinition3Type$inboundSchema: z.ZodNativeEnum<
1488
+ typeof ToolDefinition3Type
1489
+ > = z.nativeEnum(ToolDefinition3Type);
1488
1490
  /** @internal */
1489
- export const ToolDefinition2Type$outboundSchema: z.ZodNativeEnum<
1490
- typeof ToolDefinition2Type
1491
- > = ToolDefinition2Type$inboundSchema;
1491
+ export const ToolDefinition3Type$outboundSchema: z.ZodNativeEnum<
1492
+ typeof ToolDefinition3Type
1493
+ > = ToolDefinition3Type$inboundSchema;
1492
1494
 
1493
1495
  /** @internal */
1494
- export const ToolDefinition2$inboundSchema: z.ZodType<
1495
- ToolDefinition2,
1496
+ export const ToolDefinition3$inboundSchema: z.ZodType<
1497
+ ToolDefinition3,
1496
1498
  z.ZodTypeDef,
1497
1499
  unknown
1498
1500
  > = z.object({
1499
- type: ToolDefinition2Type$inboundSchema,
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 ToolDefinition2$Outbound = {
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 ToolDefinition2$outboundSchema: z.ZodType<
1522
- ToolDefinition2$Outbound,
1523
+ export const ToolDefinition3$outboundSchema: z.ZodType<
1524
+ ToolDefinition3$Outbound,
1523
1525
  z.ZodTypeDef,
1524
- ToolDefinition2
1526
+ ToolDefinition3
1525
1527
  > = z.object({
1526
- type: ToolDefinition2Type$outboundSchema,
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 toolDefinition2ToJSON(
1539
- toolDefinition2: ToolDefinition2,
1540
+ export function toolDefinition3ToJSON(
1541
+ toolDefinition3: ToolDefinition3,
1540
1542
  ): string {
1541
- return JSON.stringify(ToolDefinition2$outboundSchema.parse(toolDefinition2));
1543
+ return JSON.stringify(ToolDefinition3$outboundSchema.parse(toolDefinition3));
1542
1544
  }
1543
- export function toolDefinition2FromJSON(
1545
+ export function toolDefinition3FromJSON(
1544
1546
  jsonString: string,
1545
- ): SafeParseResult<ToolDefinition2, SDKValidationError> {
1547
+ ): SafeParseResult<ToolDefinition3, SDKValidationError> {
1546
1548
  return safeParse(
1547
1549
  jsonString,
1548
- (x) => ToolDefinition2$inboundSchema.parse(JSON.parse(x)),
1549
- `Failed to parse 'ToolDefinition2' from JSON`,
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 ToolDefinition1Type$inboundSchema: z.ZodNativeEnum<
1573
- typeof ToolDefinition1Type
1574
- > = z.nativeEnum(ToolDefinition1Type);
1574
+ export const ToolDefinition2Type$inboundSchema: z.ZodNativeEnum<
1575
+ typeof ToolDefinition2Type
1576
+ > = z.nativeEnum(ToolDefinition2Type);
1575
1577
  /** @internal */
1576
- export const ToolDefinition1Type$outboundSchema: z.ZodNativeEnum<
1577
- typeof ToolDefinition1Type
1578
- > = ToolDefinition1Type$inboundSchema;
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: ToolDefinition1Type$inboundSchema.optional(),
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: ToolDefinition1Type$outboundSchema.optional(),
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 ToolDefinition1$inboundSchema: z.ZodType<
1680
- ToolDefinition1,
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 ToolDefinition1$Outbound = {
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 ToolDefinition1$outboundSchema: z.ZodType<
1705
- ToolDefinition1$Outbound,
1706
+ export const ToolDefinition2$outboundSchema: z.ZodType<
1707
+ ToolDefinition2$Outbound,
1706
1708
  z.ZodTypeDef,
1707
- ToolDefinition1
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 toolDefinition1ToJSON(
1722
- toolDefinition1: ToolDefinition1,
1723
+ export function toolDefinition2ToJSON(
1724
+ toolDefinition2: ToolDefinition2,
1723
1725
  ): string {
1724
- return JSON.stringify(ToolDefinition1$outboundSchema.parse(toolDefinition1));
1726
+ return JSON.stringify(ToolDefinition2$outboundSchema.parse(toolDefinition2));
1725
1727
  }
1726
- export function toolDefinition1FromJSON(
1728
+ export function toolDefinition2FromJSON(
1727
1729
  jsonString: string,
1728
- ): SafeParseResult<ToolDefinition1, SDKValidationError> {
1730
+ ): SafeParseResult<ToolDefinition2, SDKValidationError> {
1729
1731
  return safeParse(
1730
1732
  jsonString,
1731
- (x) => ToolDefinition1$inboundSchema.parse(JSON.parse(x)),
1732
- `Failed to parse 'ToolDefinition1' from JSON`,
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(() => ToolDefinition2$inboundSchema),
1743
- z.lazy(() => ToolDefinition4$inboundSchema),
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(() => Three1$inboundSchema),
1750
- z.lazy(() => Three2$inboundSchema),
1752
+ z.lazy(() => Four1$inboundSchema),
1753
+ z.lazy(() => Four2$inboundSchema),
1751
1754
  ]),
1752
1755
  ]);
1753
1756
  /** @internal */
1754
1757
  export type ToolDefinition$Outbound =
1755
- | ToolDefinition2$Outbound
1756
- | ToolDefinition4$Outbound
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
- | Three1$Outbound
1762
- | Three2$Outbound;
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(() => ToolDefinition2$outboundSchema),
1771
- z.lazy(() => ToolDefinition4$outboundSchema),
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(() => Three1$outboundSchema),
1778
- z.lazy(() => Three2$outboundSchema),
1782
+ z.lazy(() => Four1$outboundSchema),
1783
+ z.lazy(() => Four2$outboundSchema),
1779
1784
  ]),
1780
1785
  ]);
1781
1786