@orq-ai/node 3.14.5-rc.1 → 3.14.6

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 (494) hide show
  1. package/bin/mcp-server.js +213 -210
  2. package/bin/mcp-server.js.map +38 -38
  3. package/docs/sdks/agents/README.md +4 -8
  4. package/docs/sdks/budgets/README.md +2 -4
  5. package/docs/sdks/tools/README.md +2 -4
  6. package/examples/package-lock.json +6 -5
  7. package/jsr.json +1 -1
  8. package/lib/config.d.ts +2 -2
  9. package/lib/config.js +2 -2
  10. package/lib/config.js.map +1 -1
  11. package/mcp-server/mcp-server.js +1 -1
  12. package/mcp-server/mcp-server.js.map +1 -1
  13. package/mcp-server/server.js +1 -1
  14. package/mcp-server/server.js.map +1 -1
  15. package/models/operations/createbudget.js +2 -2
  16. package/models/operations/createcontact.js +2 -2
  17. package/models/operations/createdataset.js +2 -2
  18. package/models/operations/createdatasetitem.js +8 -8
  19. package/models/operations/createdatasource.js +2 -2
  20. package/models/operations/createeval.js +28 -28
  21. package/models/operations/createtool.js +10 -10
  22. package/models/operations/duplicatetool.js +10 -10
  23. package/models/operations/fileget.js +2 -2
  24. package/models/operations/filelist.js +2 -2
  25. package/models/operations/fileupload.js +2 -2
  26. package/models/operations/getalltools.js +10 -10
  27. package/models/operations/getbudget.js +2 -2
  28. package/models/operations/getevals.js +28 -28
  29. package/models/operations/listbudgets.js +2 -2
  30. package/models/operations/listcontacts.js +2 -2
  31. package/models/operations/listdatasetdatapoints.js +8 -8
  32. package/models/operations/listdatasets.js +2 -2
  33. package/models/operations/listdatasources.js +2 -2
  34. package/models/operations/retrievecontact.js +2 -2
  35. package/models/operations/retrievedatapoint.js +8 -8
  36. package/models/operations/retrievedataset.js +2 -2
  37. package/models/operations/retrievedatasource.js +2 -2
  38. package/models/operations/retrievetool.js +10 -10
  39. package/models/operations/updatebudget.js +2 -2
  40. package/models/operations/updatecontact.js +2 -2
  41. package/models/operations/updatedatapoint.js +8 -8
  42. package/models/operations/updatedataset.js +2 -2
  43. package/models/operations/updatedatasource.js +2 -2
  44. package/models/operations/updateeval.js +28 -28
  45. package/models/operations/updatetool.js +10 -10
  46. package/package.json +4 -4
  47. package/packages/orq-rc/FUNCTIONS.md +103 -0
  48. package/packages/orq-rc/README.md +909 -0
  49. package/packages/orq-rc/RUNTIMES.md +48 -0
  50. package/packages/orq-rc/docs/sdks/agents/README.md +1319 -0
  51. package/packages/orq-rc/docs/sdks/budgets/README.md +401 -0
  52. package/packages/orq-rc/docs/sdks/chunking/README.md +95 -0
  53. package/packages/orq-rc/docs/sdks/contacts/README.md +450 -0
  54. package/packages/orq-rc/docs/sdks/datasets/README.md +836 -0
  55. package/packages/orq-rc/docs/sdks/deployments/README.md +312 -0
  56. package/packages/orq-rc/docs/sdks/evals/README.md +339 -0
  57. package/packages/orq-rc/docs/sdks/feedback/README.md +89 -0
  58. package/packages/orq-rc/docs/sdks/files/README.md +301 -0
  59. package/packages/orq-rc/docs/sdks/knowledge/README.md +1489 -0
  60. package/packages/orq-rc/docs/sdks/memorystores/README.md +1172 -0
  61. package/packages/orq-rc/docs/sdks/metrics/README.md +83 -0
  62. package/packages/orq-rc/docs/sdks/models/README.md +76 -0
  63. package/packages/orq-rc/docs/sdks/prompts/README.md +591 -0
  64. package/packages/orq-rc/docs/sdks/remoteconfigs/README.md +77 -0
  65. package/packages/orq-rc/docs/sdks/tools/README.md +490 -0
  66. package/packages/orq-rc/examples/README.md +31 -0
  67. package/packages/orq-rc/examples/contactsCreate.example.ts +42 -0
  68. package/packages/orq-rc/examples/package-lock.json +627 -0
  69. package/packages/orq-rc/examples/package.json +18 -0
  70. package/packages/orq-rc/jsr.json +28 -0
  71. package/packages/orq-rc/package-lock.json +3071 -0
  72. package/packages/orq-rc/package.json +43 -0
  73. package/packages/orq-rc/src/core.ts +13 -0
  74. package/packages/orq-rc/src/funcs/agentsCreate.ts +172 -0
  75. package/packages/orq-rc/src/funcs/agentsDelete.ts +176 -0
  76. package/packages/orq-rc/src/funcs/agentsInvoke.ts +167 -0
  77. package/packages/orq-rc/src/funcs/agentsList.ts +167 -0
  78. package/packages/orq-rc/src/funcs/agentsListActions.ts +169 -0
  79. package/packages/orq-rc/src/funcs/agentsListTasks.ts +183 -0
  80. package/packages/orq-rc/src/funcs/agentsRetrieve.ts +175 -0
  81. package/packages/orq-rc/src/funcs/agentsRetrieveAction.ts +173 -0
  82. package/packages/orq-rc/src/funcs/agentsRetrieveTask.ts +179 -0
  83. package/packages/orq-rc/src/funcs/agentsRun.ts +163 -0
  84. package/packages/orq-rc/src/funcs/agentsStream.ts +190 -0
  85. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +188 -0
  86. package/packages/orq-rc/src/funcs/agentsUpdate.ts +176 -0
  87. package/packages/orq-rc/src/funcs/budgetsCreate.ts +160 -0
  88. package/packages/orq-rc/src/funcs/budgetsDelete.ts +167 -0
  89. package/packages/orq-rc/src/funcs/budgetsGet.ts +166 -0
  90. package/packages/orq-rc/src/funcs/budgetsList.ts +170 -0
  91. package/packages/orq-rc/src/funcs/budgetsUpdate.ts +167 -0
  92. package/packages/orq-rc/src/funcs/chunkingParse.ts +160 -0
  93. package/packages/orq-rc/src/funcs/contactsCreate.ts +165 -0
  94. package/packages/orq-rc/src/funcs/contactsDelete.ts +176 -0
  95. package/packages/orq-rc/src/funcs/contactsList.ts +169 -0
  96. package/packages/orq-rc/src/funcs/contactsRetrieve.ts +175 -0
  97. package/packages/orq-rc/src/funcs/contactsUpdate.ts +176 -0
  98. package/packages/orq-rc/src/funcs/datasetsClear.ts +167 -0
  99. package/packages/orq-rc/src/funcs/datasetsCreate.ts +165 -0
  100. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +171 -0
  101. package/packages/orq-rc/src/funcs/datasetsDelete.ts +167 -0
  102. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +182 -0
  103. package/packages/orq-rc/src/funcs/datasetsList.ts +167 -0
  104. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +174 -0
  105. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +175 -0
  106. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +181 -0
  107. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +176 -0
  108. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +179 -0
  109. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +168 -0
  110. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +176 -0
  111. package/packages/orq-rc/src/funcs/deploymentsList.ts +176 -0
  112. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +168 -0
  113. package/packages/orq-rc/src/funcs/deploymentsStream.ts +183 -0
  114. package/packages/orq-rc/src/funcs/evalsAll.ts +173 -0
  115. package/packages/orq-rc/src/funcs/evalsCreate.ts +169 -0
  116. package/packages/orq-rc/src/funcs/evalsDelete.ts +173 -0
  117. package/packages/orq-rc/src/funcs/evalsUpdate.ts +173 -0
  118. package/packages/orq-rc/src/funcs/feedbackCreate.ts +160 -0
  119. package/packages/orq-rc/src/funcs/filesCreate.ts +187 -0
  120. package/packages/orq-rc/src/funcs/filesDelete.ts +164 -0
  121. package/packages/orq-rc/src/funcs/filesGet.ts +166 -0
  122. package/packages/orq-rc/src/funcs/filesList.ts +167 -0
  123. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +158 -0
  124. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +171 -0
  125. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +166 -0
  126. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +167 -0
  127. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +174 -0
  128. package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +170 -0
  129. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +173 -0
  130. package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +170 -0
  131. package/packages/orq-rc/src/funcs/knowledgeList.ts +169 -0
  132. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +178 -0
  133. package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +171 -0
  134. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +174 -0
  135. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +166 -0
  136. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +173 -0
  137. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +169 -0
  138. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +167 -0
  139. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +164 -0
  140. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +174 -0
  141. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +170 -0
  142. package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +171 -0
  143. package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +175 -0
  144. package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +170 -0
  145. package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +168 -0
  146. package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +184 -0
  147. package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +179 -0
  148. package/packages/orq-rc/src/funcs/memoryStoresList.ts +178 -0
  149. package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +181 -0
  150. package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +176 -0
  151. package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +177 -0
  152. package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +178 -0
  153. package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +173 -0
  154. package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +168 -0
  155. package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +179 -0
  156. package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +174 -0
  157. package/packages/orq-rc/src/funcs/modelsList.ts +142 -0
  158. package/packages/orq-rc/src/funcs/promptsCreate.ts +160 -0
  159. package/packages/orq-rc/src/funcs/promptsDelete.ts +164 -0
  160. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +181 -0
  161. package/packages/orq-rc/src/funcs/promptsList.ts +167 -0
  162. package/packages/orq-rc/src/funcs/promptsListVersions.ts +173 -0
  163. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +166 -0
  164. package/packages/orq-rc/src/funcs/promptsUpdate.ts +173 -0
  165. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +161 -0
  166. package/packages/orq-rc/src/funcs/toolsCreate.ts +163 -0
  167. package/packages/orq-rc/src/funcs/toolsDelete.ts +167 -0
  168. package/packages/orq-rc/src/funcs/toolsDuplicate.ts +175 -0
  169. package/packages/orq-rc/src/funcs/toolsList.ts +176 -0
  170. package/packages/orq-rc/src/funcs/toolsRetrieve.ts +166 -0
  171. package/packages/orq-rc/src/funcs/toolsUpdate.ts +176 -0
  172. package/packages/orq-rc/src/hooks/global.ts +44 -0
  173. package/packages/orq-rc/src/hooks/hooks.ts +132 -0
  174. package/packages/orq-rc/src/hooks/index.ts +6 -0
  175. package/packages/orq-rc/src/hooks/registration.ts +15 -0
  176. package/packages/orq-rc/src/hooks/types.ts +112 -0
  177. package/packages/orq-rc/src/index.ts +9 -0
  178. package/packages/orq-rc/src/lib/base64.ts +37 -0
  179. package/packages/orq-rc/src/lib/config.ts +74 -0
  180. package/packages/orq-rc/src/lib/dlv.ts +53 -0
  181. package/packages/orq-rc/src/lib/encodings.ts +483 -0
  182. package/packages/orq-rc/src/lib/env.ts +89 -0
  183. package/packages/orq-rc/src/lib/event-streams.ts +135 -0
  184. package/packages/orq-rc/src/lib/files.ts +82 -0
  185. package/packages/orq-rc/src/lib/http.ts +323 -0
  186. package/packages/orq-rc/src/lib/is-plain-object.ts +43 -0
  187. package/packages/orq-rc/src/lib/logger.ts +9 -0
  188. package/packages/orq-rc/src/lib/matchers.ts +345 -0
  189. package/packages/orq-rc/src/lib/primitives.ts +150 -0
  190. package/packages/orq-rc/src/lib/retries.ts +218 -0
  191. package/packages/orq-rc/src/lib/schemas.ts +91 -0
  192. package/packages/orq-rc/src/lib/sdks.ts +407 -0
  193. package/packages/orq-rc/src/lib/security.ts +264 -0
  194. package/packages/orq-rc/src/lib/url.ts +33 -0
  195. package/packages/orq-rc/src/mcp-server/cli/start/command.ts +111 -0
  196. package/packages/orq-rc/src/mcp-server/cli/start/impl.ts +136 -0
  197. package/packages/orq-rc/src/mcp-server/cli.ts +13 -0
  198. package/packages/orq-rc/src/mcp-server/console-logger.ts +71 -0
  199. package/packages/orq-rc/src/mcp-server/extensions.ts +17 -0
  200. package/packages/orq-rc/src/mcp-server/mcp-server.ts +26 -0
  201. package/packages/orq-rc/src/mcp-server/prompts.ts +117 -0
  202. package/packages/orq-rc/src/mcp-server/resources.ts +172 -0
  203. package/packages/orq-rc/src/mcp-server/scopes.ts +7 -0
  204. package/packages/orq-rc/src/mcp-server/server.ts +259 -0
  205. package/packages/orq-rc/src/mcp-server/shared.ts +74 -0
  206. package/packages/orq-rc/src/mcp-server/tools/agentsCreate.ts +37 -0
  207. package/packages/orq-rc/src/mcp-server/tools/agentsDelete.ts +35 -0
  208. package/packages/orq-rc/src/mcp-server/tools/agentsInvoke.ts +37 -0
  209. package/packages/orq-rc/src/mcp-server/tools/agentsList.ts +37 -0
  210. package/packages/orq-rc/src/mcp-server/tools/agentsListActions.ts +35 -0
  211. package/packages/orq-rc/src/mcp-server/tools/agentsListTasks.ts +37 -0
  212. package/packages/orq-rc/src/mcp-server/tools/agentsRetrieve.ts +37 -0
  213. package/packages/orq-rc/src/mcp-server/tools/agentsRetrieveAction.ts +35 -0
  214. package/packages/orq-rc/src/mcp-server/tools/agentsRetrieveTask.ts +37 -0
  215. package/packages/orq-rc/src/mcp-server/tools/agentsRun.ts +37 -0
  216. package/packages/orq-rc/src/mcp-server/tools/agentsStream.ts +37 -0
  217. package/packages/orq-rc/src/mcp-server/tools/agentsStreamRun.ts +37 -0
  218. package/packages/orq-rc/src/mcp-server/tools/agentsUpdate.ts +37 -0
  219. package/packages/orq-rc/src/mcp-server/tools/budgetsCreate.ts +37 -0
  220. package/packages/orq-rc/src/mcp-server/tools/budgetsDelete.ts +35 -0
  221. package/packages/orq-rc/src/mcp-server/tools/budgetsGet.ts +37 -0
  222. package/packages/orq-rc/src/mcp-server/tools/budgetsList.ts +37 -0
  223. package/packages/orq-rc/src/mcp-server/tools/budgetsUpdate.ts +37 -0
  224. package/packages/orq-rc/src/mcp-server/tools/chunkingParse.ts +37 -0
  225. package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +37 -0
  226. package/packages/orq-rc/src/mcp-server/tools/contactsDelete.ts +35 -0
  227. package/packages/orq-rc/src/mcp-server/tools/contactsList.ts +37 -0
  228. package/packages/orq-rc/src/mcp-server/tools/contactsRetrieve.ts +37 -0
  229. package/packages/orq-rc/src/mcp-server/tools/contactsUpdate.ts +37 -0
  230. package/packages/orq-rc/src/mcp-server/tools/datasetsClear.ts +35 -0
  231. package/packages/orq-rc/src/mcp-server/tools/datasetsCreate.ts +37 -0
  232. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoint.ts +37 -0
  233. package/packages/orq-rc/src/mcp-server/tools/datasetsDelete.ts +35 -0
  234. package/packages/orq-rc/src/mcp-server/tools/datasetsDeleteDatapoint.ts +35 -0
  235. package/packages/orq-rc/src/mcp-server/tools/datasetsList.ts +37 -0
  236. package/packages/orq-rc/src/mcp-server/tools/datasetsListDatapoints.ts +37 -0
  237. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieve.ts +37 -0
  238. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieveDatapoint.ts +37 -0
  239. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdate.ts +37 -0
  240. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdateDatapoint.ts +35 -0
  241. package/packages/orq-rc/src/mcp-server/tools/deploymentsGetConfig.ts +37 -0
  242. package/packages/orq-rc/src/mcp-server/tools/deploymentsInvoke.ts +37 -0
  243. package/packages/orq-rc/src/mcp-server/tools/deploymentsList.ts +37 -0
  244. package/packages/orq-rc/src/mcp-server/tools/deploymentsMetricsCreate.ts +37 -0
  245. package/packages/orq-rc/src/mcp-server/tools/deploymentsStream.ts +37 -0
  246. package/packages/orq-rc/src/mcp-server/tools/evalsAll.ts +35 -0
  247. package/packages/orq-rc/src/mcp-server/tools/evalsCreate.ts +35 -0
  248. package/packages/orq-rc/src/mcp-server/tools/evalsDelete.ts +33 -0
  249. package/packages/orq-rc/src/mcp-server/tools/evalsUpdate.ts +35 -0
  250. package/packages/orq-rc/src/mcp-server/tools/feedbackCreate.ts +37 -0
  251. package/packages/orq-rc/src/mcp-server/tools/filesCreate.ts +37 -0
  252. package/packages/orq-rc/src/mcp-server/tools/filesDelete.ts +33 -0
  253. package/packages/orq-rc/src/mcp-server/tools/filesGet.ts +37 -0
  254. package/packages/orq-rc/src/mcp-server/tools/filesList.ts +37 -0
  255. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreate.ts +35 -0
  256. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateChunks.ts +35 -0
  257. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateDatasource.ts +35 -0
  258. package/packages/orq-rc/src/mcp-server/tools/knowledgeDelete.ts +35 -0
  259. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunk.ts +33 -0
  260. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunks.ts +35 -0
  261. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteDatasource.ts +35 -0
  262. package/packages/orq-rc/src/mcp-server/tools/knowledgeGetChunksCount.ts +35 -0
  263. package/packages/orq-rc/src/mcp-server/tools/knowledgeList.ts +37 -0
  264. package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunks.ts +35 -0
  265. package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunksPaginated.ts +35 -0
  266. package/packages/orq-rc/src/mcp-server/tools/knowledgeListDatasources.ts +35 -0
  267. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieve.ts +37 -0
  268. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveChunk.ts +35 -0
  269. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveDatasource.ts +35 -0
  270. package/packages/orq-rc/src/mcp-server/tools/knowledgeSearch.ts +37 -0
  271. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdate.ts +35 -0
  272. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateChunk.ts +35 -0
  273. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateDatasource.ts +35 -0
  274. package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreate.ts +35 -0
  275. package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreateDocument.ts +37 -0
  276. package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreateMemory.ts +37 -0
  277. package/packages/orq-rc/src/mcp-server/tools/memoryStoresDelete.ts +35 -0
  278. package/packages/orq-rc/src/mcp-server/tools/memoryStoresDeleteDocument.ts +40 -0
  279. package/packages/orq-rc/src/mcp-server/tools/memoryStoresDeleteMemory.ts +40 -0
  280. package/packages/orq-rc/src/mcp-server/tools/memoryStoresList.ts +37 -0
  281. package/packages/orq-rc/src/mcp-server/tools/memoryStoresListDocuments.ts +37 -0
  282. package/packages/orq-rc/src/mcp-server/tools/memoryStoresListMemories.ts +37 -0
  283. package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieve.ts +37 -0
  284. package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieveDocument.ts +37 -0
  285. package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieveMemory.ts +37 -0
  286. package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdate.ts +37 -0
  287. package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdateDocument.ts +37 -0
  288. package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdateMemory.ts +37 -0
  289. package/packages/orq-rc/src/mcp-server/tools/modelsList.ts +30 -0
  290. package/packages/orq-rc/src/mcp-server/tools/promptsCreate.ts +35 -0
  291. package/packages/orq-rc/src/mcp-server/tools/promptsDelete.ts +33 -0
  292. package/packages/orq-rc/src/mcp-server/tools/promptsGetVersion.ts +37 -0
  293. package/packages/orq-rc/src/mcp-server/tools/promptsList.ts +37 -0
  294. package/packages/orq-rc/src/mcp-server/tools/promptsListVersions.ts +37 -0
  295. package/packages/orq-rc/src/mcp-server/tools/promptsRetrieve.ts +37 -0
  296. package/packages/orq-rc/src/mcp-server/tools/promptsUpdate.ts +35 -0
  297. package/packages/orq-rc/src/mcp-server/tools/remoteconfigsRetrieve.ts +36 -0
  298. package/packages/orq-rc/src/mcp-server/tools/toolsCreate.ts +37 -0
  299. package/packages/orq-rc/src/mcp-server/tools/toolsDelete.ts +35 -0
  300. package/packages/orq-rc/src/mcp-server/tools/toolsDuplicate.ts +37 -0
  301. package/packages/orq-rc/src/mcp-server/tools/toolsList.ts +37 -0
  302. package/packages/orq-rc/src/mcp-server/tools/toolsRetrieve.ts +37 -0
  303. package/packages/orq-rc/src/mcp-server/tools/toolsUpdate.ts +37 -0
  304. package/packages/orq-rc/src/mcp-server/tools.ts +129 -0
  305. package/packages/orq-rc/src/models/components/deployments.ts +8147 -0
  306. package/packages/orq-rc/src/models/components/index.ts +6 -0
  307. package/packages/orq-rc/src/models/components/security.ts +71 -0
  308. package/packages/orq-rc/src/models/errors/apierror.ts +40 -0
  309. package/packages/orq-rc/src/models/errors/createagent.ts +80 -0
  310. package/packages/orq-rc/src/models/errors/createeval.ts +80 -0
  311. package/packages/orq-rc/src/models/errors/deleteagent.ts +80 -0
  312. package/packages/orq-rc/src/models/errors/deletecontact.ts +91 -0
  313. package/packages/orq-rc/src/models/errors/deleteeval.ts +80 -0
  314. package/packages/orq-rc/src/models/errors/duplicatetool.ts +91 -0
  315. package/packages/orq-rc/src/models/errors/getagent.ts +80 -0
  316. package/packages/orq-rc/src/models/errors/getagenttask.ts +80 -0
  317. package/packages/orq-rc/src/models/errors/getevals.ts +80 -0
  318. package/packages/orq-rc/src/models/errors/getpromptversion.ts +80 -0
  319. package/packages/orq-rc/src/models/errors/honoapierror.ts +90 -0
  320. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +62 -0
  321. package/packages/orq-rc/src/models/errors/index.ts +29 -0
  322. package/packages/orq-rc/src/models/errors/listagenttasks.ts +80 -0
  323. package/packages/orq-rc/src/models/errors/orqerror.ts +35 -0
  324. package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +50 -0
  325. package/packages/orq-rc/src/models/errors/retrievecontact.ts +91 -0
  326. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +109 -0
  327. package/packages/orq-rc/src/models/errors/streamagent.ts +80 -0
  328. package/packages/orq-rc/src/models/errors/streamrunagent.ts +80 -0
  329. package/packages/orq-rc/src/models/errors/updateagent.ts +80 -0
  330. package/packages/orq-rc/src/models/errors/updatecontact.ts +83 -0
  331. package/packages/orq-rc/src/models/errors/updateeval.ts +80 -0
  332. package/packages/orq-rc/src/models/errors/updateprompt.ts +80 -0
  333. package/packages/orq-rc/src/models/errors/updatetool.ts +91 -0
  334. package/packages/orq-rc/src/models/operations/cleardataset.ts +78 -0
  335. package/packages/orq-rc/src/models/operations/createagent.ts +3104 -0
  336. package/packages/orq-rc/src/models/operations/createbudget.ts +745 -0
  337. package/packages/orq-rc/src/models/operations/createchunk.ts +428 -0
  338. package/packages/orq-rc/src/models/operations/createcontact.ts +267 -0
  339. package/packages/orq-rc/src/models/operations/createdataset.ts +302 -0
  340. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +6943 -0
  341. package/packages/orq-rc/src/models/operations/createdatasource.ts +852 -0
  342. package/packages/orq-rc/src/models/operations/createeval.ts +9341 -0
  343. package/packages/orq-rc/src/models/operations/createfeedback.ts +286 -0
  344. package/packages/orq-rc/src/models/operations/createknowledge.ts +1850 -0
  345. package/packages/orq-rc/src/models/operations/creatememory.ts +274 -0
  346. package/packages/orq-rc/src/models/operations/creatememorydocument.ts +287 -0
  347. package/packages/orq-rc/src/models/operations/creatememorystore.ts +2032 -0
  348. package/packages/orq-rc/src/models/operations/createprompt.ts +7812 -0
  349. package/packages/orq-rc/src/models/operations/createtool.ts +4077 -0
  350. package/packages/orq-rc/src/models/operations/deleteagent.ts +78 -0
  351. package/packages/orq-rc/src/models/operations/deletebudget.ts +69 -0
  352. package/packages/orq-rc/src/models/operations/deletechunk.ts +96 -0
  353. package/packages/orq-rc/src/models/operations/deletechunks.ts +243 -0
  354. package/packages/orq-rc/src/models/operations/deletecontact.ts +69 -0
  355. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +87 -0
  356. package/packages/orq-rc/src/models/operations/deletedataset.ts +78 -0
  357. package/packages/orq-rc/src/models/operations/deletedatasource.ts +87 -0
  358. package/packages/orq-rc/src/models/operations/deleteeval.ts +66 -0
  359. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +78 -0
  360. package/packages/orq-rc/src/models/operations/deletememory.ts +87 -0
  361. package/packages/orq-rc/src/models/operations/deletememorydocument.ts +98 -0
  362. package/packages/orq-rc/src/models/operations/deletememorystore.ts +78 -0
  363. package/packages/orq-rc/src/models/operations/deleteprompt.ts +69 -0
  364. package/packages/orq-rc/src/models/operations/deletetool.ts +75 -0
  365. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +6547 -0
  366. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +10532 -0
  367. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +1266 -0
  368. package/packages/orq-rc/src/models/operations/deployments.ts +2606 -0
  369. package/packages/orq-rc/src/models/operations/deploymentstream.ts +10655 -0
  370. package/packages/orq-rc/src/models/operations/duplicatetool.ts +2349 -0
  371. package/packages/orq-rc/src/models/operations/filedelete.ts +78 -0
  372. package/packages/orq-rc/src/models/operations/fileget.ts +223 -0
  373. package/packages/orq-rc/src/models/operations/filelist.ts +337 -0
  374. package/packages/orq-rc/src/models/operations/fileupload.ts +327 -0
  375. package/packages/orq-rc/src/models/operations/getagent.ts +957 -0
  376. package/packages/orq-rc/src/models/operations/getagenttask.ts +259 -0
  377. package/packages/orq-rc/src/models/operations/getallmemories.ts +318 -0
  378. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +338 -0
  379. package/packages/orq-rc/src/models/operations/getallmemorystores.ts +1277 -0
  380. package/packages/orq-rc/src/models/operations/getallprompts.ts +2572 -0
  381. package/packages/orq-rc/src/models/operations/getalltools.ts +2308 -0
  382. package/packages/orq-rc/src/models/operations/getbudget.ts +441 -0
  383. package/packages/orq-rc/src/models/operations/getchunkscount.ts +230 -0
  384. package/packages/orq-rc/src/models/operations/getevals.ts +7486 -0
  385. package/packages/orq-rc/src/models/operations/getonechunk.ts +315 -0
  386. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +1292 -0
  387. package/packages/orq-rc/src/models/operations/getoneprompt.ts +2437 -0
  388. package/packages/orq-rc/src/models/operations/getpromptversion.ts +2444 -0
  389. package/packages/orq-rc/src/models/operations/index.ts +102 -0
  390. package/packages/orq-rc/src/models/operations/invokeagent.ts +1569 -0
  391. package/packages/orq-rc/src/models/operations/listactions.ts +526 -0
  392. package/packages/orq-rc/src/models/operations/listagents.ts +1077 -0
  393. package/packages/orq-rc/src/models/operations/listagenttasks.ts +1106 -0
  394. package/packages/orq-rc/src/models/operations/listbudgets.ts +617 -0
  395. package/packages/orq-rc/src/models/operations/listchunks.ts +494 -0
  396. package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +507 -0
  397. package/packages/orq-rc/src/models/operations/listcontacts.ts +500 -0
  398. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4086 -0
  399. package/packages/orq-rc/src/models/operations/listdatasets.ts +406 -0
  400. package/packages/orq-rc/src/models/operations/listdatasources.ts +454 -0
  401. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +1303 -0
  402. package/packages/orq-rc/src/models/operations/listmodels.ts +273 -0
  403. package/packages/orq-rc/src/models/operations/listpromptversions.ts +2580 -0
  404. package/packages/orq-rc/src/models/operations/parse.ts +1295 -0
  405. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +190 -0
  406. package/packages/orq-rc/src/models/operations/retrieveaction.ts +426 -0
  407. package/packages/orq-rc/src/models/operations/retrievecontact.ts +210 -0
  408. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +3853 -0
  409. package/packages/orq-rc/src/models/operations/retrievedataset.ts +291 -0
  410. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +273 -0
  411. package/packages/orq-rc/src/models/operations/retrievememory.ts +201 -0
  412. package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +220 -0
  413. package/packages/orq-rc/src/models/operations/retrievememorystore.ts +1160 -0
  414. package/packages/orq-rc/src/models/operations/retrievetool.ts +2333 -0
  415. package/packages/orq-rc/src/models/operations/runagent.ts +4342 -0
  416. package/packages/orq-rc/src/models/operations/searchknowledge.ts +3573 -0
  417. package/packages/orq-rc/src/models/operations/streamagent.ts +1367 -0
  418. package/packages/orq-rc/src/models/operations/streamrunagent.ts +4355 -0
  419. package/packages/orq-rc/src/models/operations/updateagent.ts +3321 -0
  420. package/packages/orq-rc/src/models/operations/updatebudget.ts +628 -0
  421. package/packages/orq-rc/src/models/operations/updatechunk.ts +448 -0
  422. package/packages/orq-rc/src/models/operations/updatecontact.ts +325 -0
  423. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +6934 -0
  424. package/packages/orq-rc/src/models/operations/updatedataset.ts +386 -0
  425. package/packages/orq-rc/src/models/operations/updatedatasource.ts +345 -0
  426. package/packages/orq-rc/src/models/operations/updateeval.ts +9704 -0
  427. package/packages/orq-rc/src/models/operations/updateknowledge.ts +2341 -0
  428. package/packages/orq-rc/src/models/operations/updatememory.ts +283 -0
  429. package/packages/orq-rc/src/models/operations/updatememorydocument.ts +296 -0
  430. package/packages/orq-rc/src/models/operations/updatememorystore.ts +1363 -0
  431. package/packages/orq-rc/src/models/operations/updateprompt.ts +8176 -0
  432. package/packages/orq-rc/src/models/operations/updatetool.ts +4288 -0
  433. package/packages/orq-rc/src/sdk/agents.ts +238 -0
  434. package/packages/orq-rc/src/sdk/budgets.ts +99 -0
  435. package/packages/orq-rc/src/sdk/chunking.ts +27 -0
  436. package/packages/orq-rc/src/sdk/contacts.ts +99 -0
  437. package/packages/orq-rc/src/sdk/datasets.ts +204 -0
  438. package/packages/orq-rc/src/sdk/deployments.ts +89 -0
  439. package/packages/orq-rc/src/sdk/evals.ts +69 -0
  440. package/packages/orq-rc/src/sdk/feedback.ts +27 -0
  441. package/packages/orq-rc/src/sdk/files.ts +78 -0
  442. package/packages/orq-rc/src/sdk/index.ts +5 -0
  443. package/packages/orq-rc/src/sdk/knowledge.ts +309 -0
  444. package/packages/orq-rc/src/sdk/memorystores.ts +286 -0
  445. package/packages/orq-rc/src/sdk/metrics.ts +27 -0
  446. package/packages/orq-rc/src/sdk/models.ts +25 -0
  447. package/packages/orq-rc/src/sdk/prompts.ts +126 -0
  448. package/packages/orq-rc/src/sdk/remoteconfigs.ts +24 -0
  449. package/packages/orq-rc/src/sdk/sdk.ts +97 -0
  450. package/packages/orq-rc/src/sdk/tools.ts +117 -0
  451. package/packages/orq-rc/src/types/async.ts +68 -0
  452. package/packages/orq-rc/src/types/blobs.ts +32 -0
  453. package/packages/orq-rc/src/types/constdatetime.ts +15 -0
  454. package/packages/orq-rc/src/types/enums.ts +16 -0
  455. package/packages/orq-rc/src/types/fp.ts +50 -0
  456. package/packages/orq-rc/src/types/index.ts +11 -0
  457. package/packages/orq-rc/src/types/operations.ts +105 -0
  458. package/packages/orq-rc/src/types/rfcdate.ts +54 -0
  459. package/packages/orq-rc/src/types/streams.ts +21 -0
  460. package/packages/orq-rc/tsconfig.json +41 -0
  461. package/src/lib/config.ts +2 -2
  462. package/src/mcp-server/mcp-server.ts +1 -1
  463. package/src/mcp-server/server.ts +1 -1
  464. package/src/models/operations/createbudget.ts +2 -2
  465. package/src/models/operations/createcontact.ts +2 -2
  466. package/src/models/operations/createdataset.ts +2 -2
  467. package/src/models/operations/createdatasetitem.ts +8 -8
  468. package/src/models/operations/createdatasource.ts +2 -2
  469. package/src/models/operations/createeval.ts +28 -28
  470. package/src/models/operations/createtool.ts +10 -10
  471. package/src/models/operations/duplicatetool.ts +10 -10
  472. package/src/models/operations/fileget.ts +2 -2
  473. package/src/models/operations/filelist.ts +2 -2
  474. package/src/models/operations/fileupload.ts +2 -2
  475. package/src/models/operations/getalltools.ts +10 -10
  476. package/src/models/operations/getbudget.ts +2 -2
  477. package/src/models/operations/getevals.ts +28 -28
  478. package/src/models/operations/listbudgets.ts +2 -2
  479. package/src/models/operations/listcontacts.ts +2 -2
  480. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  481. package/src/models/operations/listdatasets.ts +2 -2
  482. package/src/models/operations/listdatasources.ts +2 -2
  483. package/src/models/operations/retrievecontact.ts +2 -2
  484. package/src/models/operations/retrievedatapoint.ts +8 -8
  485. package/src/models/operations/retrievedataset.ts +2 -2
  486. package/src/models/operations/retrievedatasource.ts +2 -2
  487. package/src/models/operations/retrievetool.ts +10 -10
  488. package/src/models/operations/updatebudget.ts +2 -2
  489. package/src/models/operations/updatecontact.ts +2 -2
  490. package/src/models/operations/updatedatapoint.ts +8 -8
  491. package/src/models/operations/updatedataset.ts +2 -2
  492. package/src/models/operations/updatedatasource.ts +2 -2
  493. package/src/models/operations/updateeval.ts +28 -28
  494. package/src/models/operations/updatetool.ts +10 -10
@@ -0,0 +1,2308 @@
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 GetAllToolsRequest = {
13
+ /**
14
+ * Maximum number of tools per page (1-200). Omit to return all tools.
15
+ */
16
+ limit?: number | undefined;
17
+ /**
18
+ * A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, ending with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `after=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the next page of the list.
19
+ */
20
+ startingAfter?: string | undefined;
21
+ /**
22
+ * A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, starting with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `before=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the previous page of the list.
23
+ */
24
+ endingBefore?: string | undefined;
25
+ };
26
+
27
+ export const GetAllToolsObject = {
28
+ List: "list",
29
+ } as const;
30
+ export type GetAllToolsObject = ClosedEnum<typeof GetAllToolsObject>;
31
+
32
+ /**
33
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
34
+ */
35
+ export const GetAllToolsDataToolsResponse200Status = {
36
+ Live: "live",
37
+ Draft: "draft",
38
+ Pending: "pending",
39
+ Published: "published",
40
+ } as const;
41
+ /**
42
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
43
+ */
44
+ export type GetAllToolsDataToolsResponse200Status = ClosedEnum<
45
+ typeof GetAllToolsDataToolsResponse200Status
46
+ >;
47
+
48
+ export const GetAllToolsDataToolsResponse200ApplicationJSONType = {
49
+ Code: "code",
50
+ } as const;
51
+ export type GetAllToolsDataToolsResponse200ApplicationJSONType = ClosedEnum<
52
+ typeof GetAllToolsDataToolsResponse200ApplicationJSONType
53
+ >;
54
+
55
+ export const DataLanguage = {
56
+ Python: "python",
57
+ } as const;
58
+ export type DataLanguage = ClosedEnum<typeof DataLanguage>;
59
+
60
+ export type DataCodeTool = {
61
+ /**
62
+ * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
63
+ */
64
+ parameters?: { [k: string]: any } | undefined;
65
+ language: DataLanguage;
66
+ /**
67
+ * The code to execute.
68
+ */
69
+ code: string;
70
+ };
71
+
72
+ export type Data5 = {
73
+ id?: string | undefined;
74
+ /**
75
+ * Entity storage path in the format: `project/folder/subfolder/...`
76
+ *
77
+ * @remarks
78
+ *
79
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
80
+ *
81
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
82
+ */
83
+ path: string;
84
+ /**
85
+ * Unique key of the tool as it will be displayed in the UI
86
+ */
87
+ key: string;
88
+ /**
89
+ * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
90
+ */
91
+ displayName?: string | undefined;
92
+ /**
93
+ * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
94
+ */
95
+ description: string;
96
+ /**
97
+ * The id of the user that created the tool
98
+ */
99
+ createdById?: string | undefined;
100
+ /**
101
+ * The id of the user that last updated the tool
102
+ */
103
+ updatedById?: string | undefined;
104
+ projectId: string;
105
+ workspaceId: string;
106
+ created: string;
107
+ updated: string;
108
+ /**
109
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
110
+ */
111
+ status?: GetAllToolsDataToolsResponse200Status | undefined;
112
+ versionHash?: string | undefined;
113
+ type: GetAllToolsDataToolsResponse200ApplicationJSONType;
114
+ codeTool: DataCodeTool;
115
+ };
116
+
117
+ /**
118
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
119
+ */
120
+ export const GetAllToolsDataToolsResponseStatus = {
121
+ Live: "live",
122
+ Draft: "draft",
123
+ Pending: "pending",
124
+ Published: "published",
125
+ } as const;
126
+ /**
127
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
128
+ */
129
+ export type GetAllToolsDataToolsResponseStatus = ClosedEnum<
130
+ typeof GetAllToolsDataToolsResponseStatus
131
+ >;
132
+
133
+ export const GetAllToolsDataToolsResponse200Type = {
134
+ Mcp: "mcp",
135
+ } as const;
136
+ export type GetAllToolsDataToolsResponse200Type = ClosedEnum<
137
+ typeof GetAllToolsDataToolsResponse200Type
138
+ >;
139
+
140
+ export type DataHeaders = {
141
+ value: string;
142
+ encrypted?: boolean | undefined;
143
+ };
144
+
145
+ export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType = {
146
+ Object: "object",
147
+ } as const;
148
+ export type GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType =
149
+ ClosedEnum<
150
+ typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType
151
+ >;
152
+
153
+ /**
154
+ * The original MCP tool input schema for LLM conversion
155
+ */
156
+ export type DataInputSchema = {
157
+ type: GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType;
158
+ properties?: { [k: string]: any } | undefined;
159
+ required?: Array<string> | undefined;
160
+ };
161
+
162
+ /**
163
+ * The connection type used by the MCP server
164
+ */
165
+ export const DataConnectionType = {
166
+ Http: "http",
167
+ Sse: "sse",
168
+ } as const;
169
+ /**
170
+ * The connection type used by the MCP server
171
+ */
172
+ export type DataConnectionType = ClosedEnum<typeof DataConnectionType>;
173
+
174
+ export type DataMcp = {
175
+ /**
176
+ * The ID of the MCP server this tool belongs to
177
+ */
178
+ serverId: string;
179
+ /**
180
+ * The original tool name from the MCP server
181
+ */
182
+ toolName: string;
183
+ /**
184
+ * The MCP server URL (cached for execution)
185
+ */
186
+ serverUrl: string;
187
+ /**
188
+ * HTTP headers for MCP server requests (encrypted format)
189
+ */
190
+ headers?: { [k: string]: DataHeaders } | undefined;
191
+ /**
192
+ * The original MCP tool input schema for LLM conversion
193
+ */
194
+ inputSchema: DataInputSchema;
195
+ /**
196
+ * The connection type used by the MCP server
197
+ */
198
+ connectionType: DataConnectionType;
199
+ };
200
+
201
+ export type Data4 = {
202
+ id?: string | undefined;
203
+ /**
204
+ * Entity storage path in the format: `project/folder/subfolder/...`
205
+ *
206
+ * @remarks
207
+ *
208
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
209
+ *
210
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
211
+ */
212
+ path: string;
213
+ /**
214
+ * Unique key of the tool as it will be displayed in the UI
215
+ */
216
+ key: string;
217
+ /**
218
+ * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
219
+ */
220
+ displayName?: string | undefined;
221
+ /**
222
+ * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
223
+ */
224
+ description: string;
225
+ /**
226
+ * The id of the user that created the tool
227
+ */
228
+ createdById?: string | undefined;
229
+ /**
230
+ * The id of the user that last updated the tool
231
+ */
232
+ updatedById?: string | undefined;
233
+ projectId: string;
234
+ workspaceId: string;
235
+ created: string;
236
+ updated: string;
237
+ /**
238
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
239
+ */
240
+ status?: GetAllToolsDataToolsResponseStatus | undefined;
241
+ versionHash?: string | undefined;
242
+ type: GetAllToolsDataToolsResponse200Type;
243
+ mcp: DataMcp;
244
+ };
245
+
246
+ /**
247
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
248
+ */
249
+ export const GetAllToolsDataToolsStatus = {
250
+ Live: "live",
251
+ Draft: "draft",
252
+ Pending: "pending",
253
+ Published: "published",
254
+ } as const;
255
+ /**
256
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
257
+ */
258
+ export type GetAllToolsDataToolsStatus = ClosedEnum<
259
+ typeof GetAllToolsDataToolsStatus
260
+ >;
261
+
262
+ export const GetAllToolsDataToolsResponseType = {
263
+ Http: "http",
264
+ } as const;
265
+ export type GetAllToolsDataToolsResponseType = ClosedEnum<
266
+ typeof GetAllToolsDataToolsResponseType
267
+ >;
268
+
269
+ /**
270
+ * The HTTP method to use.
271
+ */
272
+ export const GetAllToolsDataMethod = {
273
+ Get: "GET",
274
+ Post: "POST",
275
+ Put: "PUT",
276
+ Delete: "DELETE",
277
+ } as const;
278
+ /**
279
+ * The HTTP method to use.
280
+ */
281
+ export type GetAllToolsDataMethod = ClosedEnum<typeof GetAllToolsDataMethod>;
282
+
283
+ /**
284
+ * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
285
+ */
286
+ export type DataBlueprint = {
287
+ /**
288
+ * The URL to send the request to.
289
+ */
290
+ url: string;
291
+ /**
292
+ * The HTTP method to use.
293
+ */
294
+ method: GetAllToolsDataMethod;
295
+ /**
296
+ * The headers to send with the request.
297
+ */
298
+ headers?: { [k: string]: string } | undefined;
299
+ /**
300
+ * The body to send with the request.
301
+ */
302
+ body?: { [k: string]: any } | undefined;
303
+ };
304
+
305
+ /**
306
+ * The type of the argument.
307
+ */
308
+ export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type = {
309
+ String: "string",
310
+ Number: "number",
311
+ Boolean: "boolean",
312
+ } as const;
313
+ /**
314
+ * The type of the argument.
315
+ */
316
+ export type GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type =
317
+ ClosedEnum<
318
+ typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type
319
+ >;
320
+
321
+ /**
322
+ * The default value of the argument.
323
+ */
324
+ export type DataDefaultValue = string | number | boolean;
325
+
326
+ export type DataArguments = {
327
+ /**
328
+ * The type of the argument.
329
+ */
330
+ type: GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type;
331
+ /**
332
+ * A description of the argument.
333
+ */
334
+ description: string;
335
+ /**
336
+ * Whether to send the argument to the model. If set to false, the argument will not be sent to the model and needs to be provided by the user or it will be left blank.
337
+ */
338
+ sendToModel?: boolean | undefined;
339
+ /**
340
+ * The default value of the argument.
341
+ */
342
+ defaultValue?: string | number | boolean | undefined;
343
+ };
344
+
345
+ export type GetAllToolsDataHttp = {
346
+ /**
347
+ * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
348
+ */
349
+ blueprint: DataBlueprint;
350
+ /**
351
+ * The arguments to send with the request. The keys will be used to replace the placeholders in the `blueprint` field.
352
+ */
353
+ arguments?: { [k: string]: DataArguments } | undefined;
354
+ };
355
+
356
+ export type Data3 = {
357
+ id?: string | undefined;
358
+ /**
359
+ * Entity storage path in the format: `project/folder/subfolder/...`
360
+ *
361
+ * @remarks
362
+ *
363
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
364
+ *
365
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
366
+ */
367
+ path: string;
368
+ /**
369
+ * Unique key of the tool as it will be displayed in the UI
370
+ */
371
+ key: string;
372
+ /**
373
+ * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
374
+ */
375
+ displayName?: string | undefined;
376
+ /**
377
+ * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
378
+ */
379
+ description: string;
380
+ /**
381
+ * The id of the user that created the tool
382
+ */
383
+ createdById?: string | undefined;
384
+ /**
385
+ * The id of the user that last updated the tool
386
+ */
387
+ updatedById?: string | undefined;
388
+ projectId: string;
389
+ workspaceId: string;
390
+ created: string;
391
+ updated: string;
392
+ /**
393
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
394
+ */
395
+ status?: GetAllToolsDataToolsStatus | undefined;
396
+ versionHash?: string | undefined;
397
+ type: GetAllToolsDataToolsResponseType;
398
+ http: GetAllToolsDataHttp;
399
+ };
400
+
401
+ /**
402
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
403
+ */
404
+ export const GetAllToolsDataStatus = {
405
+ Live: "live",
406
+ Draft: "draft",
407
+ Pending: "pending",
408
+ Published: "published",
409
+ } as const;
410
+ /**
411
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
412
+ */
413
+ export type GetAllToolsDataStatus = ClosedEnum<typeof GetAllToolsDataStatus>;
414
+
415
+ export const GetAllToolsDataToolsType = {
416
+ JsonSchema: "json_schema",
417
+ } as const;
418
+ export type GetAllToolsDataToolsType = ClosedEnum<
419
+ typeof GetAllToolsDataToolsType
420
+ >;
421
+
422
+ export type DataJsonSchema = {
423
+ /**
424
+ * The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
425
+ */
426
+ name: string;
427
+ /**
428
+ * A description of what the response format is for. This will be shown to the user.
429
+ */
430
+ description?: string | undefined;
431
+ /**
432
+ * The schema for the response format, described as a JSON Schema object. See the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
433
+ */
434
+ schema: { [k: string]: any };
435
+ /**
436
+ * Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the `schema` field. Only a subset of JSON Schema is supported when `strict` is `true`. Only compatible with `OpenAI` models.
437
+ */
438
+ strict?: boolean | null | undefined;
439
+ };
440
+
441
+ export type Data2 = {
442
+ id?: string | undefined;
443
+ /**
444
+ * Entity storage path in the format: `project/folder/subfolder/...`
445
+ *
446
+ * @remarks
447
+ *
448
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
449
+ *
450
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
451
+ */
452
+ path: string;
453
+ /**
454
+ * Unique key of the tool as it will be displayed in the UI
455
+ */
456
+ key: string;
457
+ /**
458
+ * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
459
+ */
460
+ displayName?: string | undefined;
461
+ /**
462
+ * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
463
+ */
464
+ description: string;
465
+ /**
466
+ * The id of the user that created the tool
467
+ */
468
+ createdById?: string | undefined;
469
+ /**
470
+ * The id of the user that last updated the tool
471
+ */
472
+ updatedById?: string | undefined;
473
+ projectId: string;
474
+ workspaceId: string;
475
+ created: string;
476
+ updated: string;
477
+ /**
478
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
479
+ */
480
+ status?: GetAllToolsDataStatus | undefined;
481
+ versionHash?: string | undefined;
482
+ type: GetAllToolsDataToolsType;
483
+ jsonSchema: DataJsonSchema;
484
+ };
485
+
486
+ /**
487
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
488
+ */
489
+ export const DataStatus = {
490
+ Live: "live",
491
+ Draft: "draft",
492
+ Pending: "pending",
493
+ Published: "published",
494
+ } as const;
495
+ /**
496
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
497
+ */
498
+ export type DataStatus = ClosedEnum<typeof DataStatus>;
499
+
500
+ export const GetAllToolsDataType = {
501
+ Function: "function",
502
+ } as const;
503
+ export type GetAllToolsDataType = ClosedEnum<typeof GetAllToolsDataType>;
504
+
505
+ export type GetAllToolsDataFunction = {
506
+ /**
507
+ * The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
508
+ */
509
+ name: string;
510
+ /**
511
+ * A description of what the function does, used by the model to choose when and how to call the function.
512
+ */
513
+ description?: string | undefined;
514
+ /**
515
+ * Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Currently only compatible with `OpenAI` models.
516
+ */
517
+ strict?: boolean | undefined;
518
+ /**
519
+ * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
520
+ */
521
+ parameters?: { [k: string]: any } | undefined;
522
+ };
523
+
524
+ export type Data1 = {
525
+ id?: string | undefined;
526
+ /**
527
+ * Entity storage path in the format: `project/folder/subfolder/...`
528
+ *
529
+ * @remarks
530
+ *
531
+ * The first element identifies the project, followed by nested folders (auto-created as needed).
532
+ *
533
+ * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
534
+ */
535
+ path: string;
536
+ /**
537
+ * Unique key of the tool as it will be displayed in the UI
538
+ */
539
+ key: string;
540
+ /**
541
+ * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
542
+ */
543
+ displayName?: string | undefined;
544
+ /**
545
+ * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
546
+ */
547
+ description: string;
548
+ /**
549
+ * The id of the user that created the tool
550
+ */
551
+ createdById?: string | undefined;
552
+ /**
553
+ * The id of the user that last updated the tool
554
+ */
555
+ updatedById?: string | undefined;
556
+ projectId: string;
557
+ workspaceId: string;
558
+ created: string;
559
+ updated: string;
560
+ /**
561
+ * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
562
+ */
563
+ status?: DataStatus | undefined;
564
+ versionHash?: string | undefined;
565
+ type: GetAllToolsDataType;
566
+ function: GetAllToolsDataFunction;
567
+ };
568
+
569
+ export type GetAllToolsData = Data1 | Data2 | Data3 | Data4 | Data5;
570
+
571
+ /**
572
+ * Successfully retrieved the list of tools.
573
+ */
574
+ export type GetAllToolsResponseBody = {
575
+ object: GetAllToolsObject;
576
+ data: Array<Data1 | Data2 | Data3 | Data4 | Data5>;
577
+ hasMore: boolean;
578
+ };
579
+
580
+ /** @internal */
581
+ export const GetAllToolsRequest$inboundSchema: z.ZodType<
582
+ GetAllToolsRequest,
583
+ z.ZodTypeDef,
584
+ unknown
585
+ > = z.object({
586
+ limit: z.number().optional(),
587
+ starting_after: z.string().optional(),
588
+ ending_before: z.string().optional(),
589
+ }).transform((v) => {
590
+ return remap$(v, {
591
+ "starting_after": "startingAfter",
592
+ "ending_before": "endingBefore",
593
+ });
594
+ });
595
+
596
+ /** @internal */
597
+ export type GetAllToolsRequest$Outbound = {
598
+ limit?: number | undefined;
599
+ starting_after?: string | undefined;
600
+ ending_before?: string | undefined;
601
+ };
602
+
603
+ /** @internal */
604
+ export const GetAllToolsRequest$outboundSchema: z.ZodType<
605
+ GetAllToolsRequest$Outbound,
606
+ z.ZodTypeDef,
607
+ GetAllToolsRequest
608
+ > = z.object({
609
+ limit: z.number().optional(),
610
+ startingAfter: z.string().optional(),
611
+ endingBefore: z.string().optional(),
612
+ }).transform((v) => {
613
+ return remap$(v, {
614
+ startingAfter: "starting_after",
615
+ endingBefore: "ending_before",
616
+ });
617
+ });
618
+
619
+ /**
620
+ * @internal
621
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
622
+ */
623
+ export namespace GetAllToolsRequest$ {
624
+ /** @deprecated use `GetAllToolsRequest$inboundSchema` instead. */
625
+ export const inboundSchema = GetAllToolsRequest$inboundSchema;
626
+ /** @deprecated use `GetAllToolsRequest$outboundSchema` instead. */
627
+ export const outboundSchema = GetAllToolsRequest$outboundSchema;
628
+ /** @deprecated use `GetAllToolsRequest$Outbound` instead. */
629
+ export type Outbound = GetAllToolsRequest$Outbound;
630
+ }
631
+
632
+ export function getAllToolsRequestToJSON(
633
+ getAllToolsRequest: GetAllToolsRequest,
634
+ ): string {
635
+ return JSON.stringify(
636
+ GetAllToolsRequest$outboundSchema.parse(getAllToolsRequest),
637
+ );
638
+ }
639
+
640
+ export function getAllToolsRequestFromJSON(
641
+ jsonString: string,
642
+ ): SafeParseResult<GetAllToolsRequest, SDKValidationError> {
643
+ return safeParse(
644
+ jsonString,
645
+ (x) => GetAllToolsRequest$inboundSchema.parse(JSON.parse(x)),
646
+ `Failed to parse 'GetAllToolsRequest' from JSON`,
647
+ );
648
+ }
649
+
650
+ /** @internal */
651
+ export const GetAllToolsObject$inboundSchema: z.ZodNativeEnum<
652
+ typeof GetAllToolsObject
653
+ > = z.nativeEnum(GetAllToolsObject);
654
+
655
+ /** @internal */
656
+ export const GetAllToolsObject$outboundSchema: z.ZodNativeEnum<
657
+ typeof GetAllToolsObject
658
+ > = GetAllToolsObject$inboundSchema;
659
+
660
+ /**
661
+ * @internal
662
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
663
+ */
664
+ export namespace GetAllToolsObject$ {
665
+ /** @deprecated use `GetAllToolsObject$inboundSchema` instead. */
666
+ export const inboundSchema = GetAllToolsObject$inboundSchema;
667
+ /** @deprecated use `GetAllToolsObject$outboundSchema` instead. */
668
+ export const outboundSchema = GetAllToolsObject$outboundSchema;
669
+ }
670
+
671
+ /** @internal */
672
+ export const GetAllToolsDataToolsResponse200Status$inboundSchema:
673
+ z.ZodNativeEnum<typeof GetAllToolsDataToolsResponse200Status> = z.nativeEnum(
674
+ GetAllToolsDataToolsResponse200Status,
675
+ );
676
+
677
+ /** @internal */
678
+ export const GetAllToolsDataToolsResponse200Status$outboundSchema:
679
+ z.ZodNativeEnum<typeof GetAllToolsDataToolsResponse200Status> =
680
+ GetAllToolsDataToolsResponse200Status$inboundSchema;
681
+
682
+ /**
683
+ * @internal
684
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
685
+ */
686
+ export namespace GetAllToolsDataToolsResponse200Status$ {
687
+ /** @deprecated use `GetAllToolsDataToolsResponse200Status$inboundSchema` instead. */
688
+ export const inboundSchema =
689
+ GetAllToolsDataToolsResponse200Status$inboundSchema;
690
+ /** @deprecated use `GetAllToolsDataToolsResponse200Status$outboundSchema` instead. */
691
+ export const outboundSchema =
692
+ GetAllToolsDataToolsResponse200Status$outboundSchema;
693
+ }
694
+
695
+ /** @internal */
696
+ export const GetAllToolsDataToolsResponse200ApplicationJSONType$inboundSchema:
697
+ z.ZodNativeEnum<typeof GetAllToolsDataToolsResponse200ApplicationJSONType> = z
698
+ .nativeEnum(GetAllToolsDataToolsResponse200ApplicationJSONType);
699
+
700
+ /** @internal */
701
+ export const GetAllToolsDataToolsResponse200ApplicationJSONType$outboundSchema:
702
+ z.ZodNativeEnum<typeof GetAllToolsDataToolsResponse200ApplicationJSONType> =
703
+ GetAllToolsDataToolsResponse200ApplicationJSONType$inboundSchema;
704
+
705
+ /**
706
+ * @internal
707
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
708
+ */
709
+ export namespace GetAllToolsDataToolsResponse200ApplicationJSONType$ {
710
+ /** @deprecated use `GetAllToolsDataToolsResponse200ApplicationJSONType$inboundSchema` instead. */
711
+ export const inboundSchema =
712
+ GetAllToolsDataToolsResponse200ApplicationJSONType$inboundSchema;
713
+ /** @deprecated use `GetAllToolsDataToolsResponse200ApplicationJSONType$outboundSchema` instead. */
714
+ export const outboundSchema =
715
+ GetAllToolsDataToolsResponse200ApplicationJSONType$outboundSchema;
716
+ }
717
+
718
+ /** @internal */
719
+ export const DataLanguage$inboundSchema: z.ZodNativeEnum<typeof DataLanguage> =
720
+ z.nativeEnum(DataLanguage);
721
+
722
+ /** @internal */
723
+ export const DataLanguage$outboundSchema: z.ZodNativeEnum<typeof DataLanguage> =
724
+ DataLanguage$inboundSchema;
725
+
726
+ /**
727
+ * @internal
728
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
729
+ */
730
+ export namespace DataLanguage$ {
731
+ /** @deprecated use `DataLanguage$inboundSchema` instead. */
732
+ export const inboundSchema = DataLanguage$inboundSchema;
733
+ /** @deprecated use `DataLanguage$outboundSchema` instead. */
734
+ export const outboundSchema = DataLanguage$outboundSchema;
735
+ }
736
+
737
+ /** @internal */
738
+ export const DataCodeTool$inboundSchema: z.ZodType<
739
+ DataCodeTool,
740
+ z.ZodTypeDef,
741
+ unknown
742
+ > = z.object({
743
+ parameters: z.record(z.any()).optional(),
744
+ language: DataLanguage$inboundSchema,
745
+ code: z.string(),
746
+ });
747
+
748
+ /** @internal */
749
+ export type DataCodeTool$Outbound = {
750
+ parameters?: { [k: string]: any } | undefined;
751
+ language: string;
752
+ code: string;
753
+ };
754
+
755
+ /** @internal */
756
+ export const DataCodeTool$outboundSchema: z.ZodType<
757
+ DataCodeTool$Outbound,
758
+ z.ZodTypeDef,
759
+ DataCodeTool
760
+ > = z.object({
761
+ parameters: z.record(z.any()).optional(),
762
+ language: DataLanguage$outboundSchema,
763
+ code: z.string(),
764
+ });
765
+
766
+ /**
767
+ * @internal
768
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
769
+ */
770
+ export namespace DataCodeTool$ {
771
+ /** @deprecated use `DataCodeTool$inboundSchema` instead. */
772
+ export const inboundSchema = DataCodeTool$inboundSchema;
773
+ /** @deprecated use `DataCodeTool$outboundSchema` instead. */
774
+ export const outboundSchema = DataCodeTool$outboundSchema;
775
+ /** @deprecated use `DataCodeTool$Outbound` instead. */
776
+ export type Outbound = DataCodeTool$Outbound;
777
+ }
778
+
779
+ export function dataCodeToolToJSON(dataCodeTool: DataCodeTool): string {
780
+ return JSON.stringify(DataCodeTool$outboundSchema.parse(dataCodeTool));
781
+ }
782
+
783
+ export function dataCodeToolFromJSON(
784
+ jsonString: string,
785
+ ): SafeParseResult<DataCodeTool, SDKValidationError> {
786
+ return safeParse(
787
+ jsonString,
788
+ (x) => DataCodeTool$inboundSchema.parse(JSON.parse(x)),
789
+ `Failed to parse 'DataCodeTool' from JSON`,
790
+ );
791
+ }
792
+
793
+ /** @internal */
794
+ export const Data5$inboundSchema: z.ZodType<Data5, z.ZodTypeDef, unknown> = z
795
+ .object({
796
+ _id: z.string().default("01K8WYAS6HPY9GWP8JNXXP35WZ"),
797
+ path: z.string(),
798
+ key: z.string(),
799
+ display_name: z.string().optional(),
800
+ description: z.string(),
801
+ created_by_id: z.string().optional(),
802
+ updated_by_id: z.string().optional(),
803
+ project_id: z.string(),
804
+ workspace_id: z.string(),
805
+ created: z.string(),
806
+ updated: z.string(),
807
+ status: GetAllToolsDataToolsResponse200Status$inboundSchema.default("live"),
808
+ version_hash: z.string().optional(),
809
+ type: GetAllToolsDataToolsResponse200ApplicationJSONType$inboundSchema,
810
+ code_tool: z.lazy(() => DataCodeTool$inboundSchema),
811
+ }).transform((v) => {
812
+ return remap$(v, {
813
+ "_id": "id",
814
+ "display_name": "displayName",
815
+ "created_by_id": "createdById",
816
+ "updated_by_id": "updatedById",
817
+ "project_id": "projectId",
818
+ "workspace_id": "workspaceId",
819
+ "version_hash": "versionHash",
820
+ "code_tool": "codeTool",
821
+ });
822
+ });
823
+
824
+ /** @internal */
825
+ export type Data5$Outbound = {
826
+ _id: string;
827
+ path: string;
828
+ key: string;
829
+ display_name?: string | undefined;
830
+ description: string;
831
+ created_by_id?: string | undefined;
832
+ updated_by_id?: string | undefined;
833
+ project_id: string;
834
+ workspace_id: string;
835
+ created: string;
836
+ updated: string;
837
+ status: string;
838
+ version_hash?: string | undefined;
839
+ type: string;
840
+ code_tool: DataCodeTool$Outbound;
841
+ };
842
+
843
+ /** @internal */
844
+ export const Data5$outboundSchema: z.ZodType<
845
+ Data5$Outbound,
846
+ z.ZodTypeDef,
847
+ Data5
848
+ > = z.object({
849
+ id: z.string().default("01K8WYAS6HPY9GWP8JNXXP35WZ"),
850
+ path: z.string(),
851
+ key: z.string(),
852
+ displayName: z.string().optional(),
853
+ description: z.string(),
854
+ createdById: z.string().optional(),
855
+ updatedById: z.string().optional(),
856
+ projectId: z.string(),
857
+ workspaceId: z.string(),
858
+ created: z.string(),
859
+ updated: z.string(),
860
+ status: GetAllToolsDataToolsResponse200Status$outboundSchema.default("live"),
861
+ versionHash: z.string().optional(),
862
+ type: GetAllToolsDataToolsResponse200ApplicationJSONType$outboundSchema,
863
+ codeTool: z.lazy(() => DataCodeTool$outboundSchema),
864
+ }).transform((v) => {
865
+ return remap$(v, {
866
+ id: "_id",
867
+ displayName: "display_name",
868
+ createdById: "created_by_id",
869
+ updatedById: "updated_by_id",
870
+ projectId: "project_id",
871
+ workspaceId: "workspace_id",
872
+ versionHash: "version_hash",
873
+ codeTool: "code_tool",
874
+ });
875
+ });
876
+
877
+ /**
878
+ * @internal
879
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
880
+ */
881
+ export namespace Data5$ {
882
+ /** @deprecated use `Data5$inboundSchema` instead. */
883
+ export const inboundSchema = Data5$inboundSchema;
884
+ /** @deprecated use `Data5$outboundSchema` instead. */
885
+ export const outboundSchema = Data5$outboundSchema;
886
+ /** @deprecated use `Data5$Outbound` instead. */
887
+ export type Outbound = Data5$Outbound;
888
+ }
889
+
890
+ export function data5ToJSON(data5: Data5): string {
891
+ return JSON.stringify(Data5$outboundSchema.parse(data5));
892
+ }
893
+
894
+ export function data5FromJSON(
895
+ jsonString: string,
896
+ ): SafeParseResult<Data5, SDKValidationError> {
897
+ return safeParse(
898
+ jsonString,
899
+ (x) => Data5$inboundSchema.parse(JSON.parse(x)),
900
+ `Failed to parse 'Data5' from JSON`,
901
+ );
902
+ }
903
+
904
+ /** @internal */
905
+ export const GetAllToolsDataToolsResponseStatus$inboundSchema: z.ZodNativeEnum<
906
+ typeof GetAllToolsDataToolsResponseStatus
907
+ > = z.nativeEnum(GetAllToolsDataToolsResponseStatus);
908
+
909
+ /** @internal */
910
+ export const GetAllToolsDataToolsResponseStatus$outboundSchema: z.ZodNativeEnum<
911
+ typeof GetAllToolsDataToolsResponseStatus
912
+ > = GetAllToolsDataToolsResponseStatus$inboundSchema;
913
+
914
+ /**
915
+ * @internal
916
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
917
+ */
918
+ export namespace GetAllToolsDataToolsResponseStatus$ {
919
+ /** @deprecated use `GetAllToolsDataToolsResponseStatus$inboundSchema` instead. */
920
+ export const inboundSchema = GetAllToolsDataToolsResponseStatus$inboundSchema;
921
+ /** @deprecated use `GetAllToolsDataToolsResponseStatus$outboundSchema` instead. */
922
+ export const outboundSchema =
923
+ GetAllToolsDataToolsResponseStatus$outboundSchema;
924
+ }
925
+
926
+ /** @internal */
927
+ export const GetAllToolsDataToolsResponse200Type$inboundSchema: z.ZodNativeEnum<
928
+ typeof GetAllToolsDataToolsResponse200Type
929
+ > = z.nativeEnum(GetAllToolsDataToolsResponse200Type);
930
+
931
+ /** @internal */
932
+ export const GetAllToolsDataToolsResponse200Type$outboundSchema:
933
+ z.ZodNativeEnum<typeof GetAllToolsDataToolsResponse200Type> =
934
+ GetAllToolsDataToolsResponse200Type$inboundSchema;
935
+
936
+ /**
937
+ * @internal
938
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
939
+ */
940
+ export namespace GetAllToolsDataToolsResponse200Type$ {
941
+ /** @deprecated use `GetAllToolsDataToolsResponse200Type$inboundSchema` instead. */
942
+ export const inboundSchema =
943
+ GetAllToolsDataToolsResponse200Type$inboundSchema;
944
+ /** @deprecated use `GetAllToolsDataToolsResponse200Type$outboundSchema` instead. */
945
+ export const outboundSchema =
946
+ GetAllToolsDataToolsResponse200Type$outboundSchema;
947
+ }
948
+
949
+ /** @internal */
950
+ export const DataHeaders$inboundSchema: z.ZodType<
951
+ DataHeaders,
952
+ z.ZodTypeDef,
953
+ unknown
954
+ > = z.object({
955
+ value: z.string(),
956
+ encrypted: z.boolean().default(false),
957
+ });
958
+
959
+ /** @internal */
960
+ export type DataHeaders$Outbound = {
961
+ value: string;
962
+ encrypted: boolean;
963
+ };
964
+
965
+ /** @internal */
966
+ export const DataHeaders$outboundSchema: z.ZodType<
967
+ DataHeaders$Outbound,
968
+ z.ZodTypeDef,
969
+ DataHeaders
970
+ > = z.object({
971
+ value: z.string(),
972
+ encrypted: z.boolean().default(false),
973
+ });
974
+
975
+ /**
976
+ * @internal
977
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
978
+ */
979
+ export namespace DataHeaders$ {
980
+ /** @deprecated use `DataHeaders$inboundSchema` instead. */
981
+ export const inboundSchema = DataHeaders$inboundSchema;
982
+ /** @deprecated use `DataHeaders$outboundSchema` instead. */
983
+ export const outboundSchema = DataHeaders$outboundSchema;
984
+ /** @deprecated use `DataHeaders$Outbound` instead. */
985
+ export type Outbound = DataHeaders$Outbound;
986
+ }
987
+
988
+ export function dataHeadersToJSON(dataHeaders: DataHeaders): string {
989
+ return JSON.stringify(DataHeaders$outboundSchema.parse(dataHeaders));
990
+ }
991
+
992
+ export function dataHeadersFromJSON(
993
+ jsonString: string,
994
+ ): SafeParseResult<DataHeaders, SDKValidationError> {
995
+ return safeParse(
996
+ jsonString,
997
+ (x) => DataHeaders$inboundSchema.parse(JSON.parse(x)),
998
+ `Failed to parse 'DataHeaders' from JSON`,
999
+ );
1000
+ }
1001
+
1002
+ /** @internal */
1003
+ export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$inboundSchema:
1004
+ z.ZodNativeEnum<
1005
+ typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType
1006
+ > = z.nativeEnum(
1007
+ GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType,
1008
+ );
1009
+
1010
+ /** @internal */
1011
+ export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$outboundSchema:
1012
+ z.ZodNativeEnum<
1013
+ typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType
1014
+ > =
1015
+ GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$inboundSchema;
1016
+
1017
+ /**
1018
+ * @internal
1019
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1020
+ */
1021
+ export namespace GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$ {
1022
+ /** @deprecated use `GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$inboundSchema` instead. */
1023
+ export const inboundSchema =
1024
+ GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$inboundSchema;
1025
+ /** @deprecated use `GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$outboundSchema` instead. */
1026
+ export const outboundSchema =
1027
+ GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$outboundSchema;
1028
+ }
1029
+
1030
+ /** @internal */
1031
+ export const DataInputSchema$inboundSchema: z.ZodType<
1032
+ DataInputSchema,
1033
+ z.ZodTypeDef,
1034
+ unknown
1035
+ > = z.object({
1036
+ type:
1037
+ GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$inboundSchema,
1038
+ properties: z.record(z.any()).optional(),
1039
+ required: z.array(z.string()).optional(),
1040
+ });
1041
+
1042
+ /** @internal */
1043
+ export type DataInputSchema$Outbound = {
1044
+ type: string;
1045
+ properties?: { [k: string]: any } | undefined;
1046
+ required?: Array<string> | undefined;
1047
+ };
1048
+
1049
+ /** @internal */
1050
+ export const DataInputSchema$outboundSchema: z.ZodType<
1051
+ DataInputSchema$Outbound,
1052
+ z.ZodTypeDef,
1053
+ DataInputSchema
1054
+ > = z.object({
1055
+ type:
1056
+ GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$outboundSchema,
1057
+ properties: z.record(z.any()).optional(),
1058
+ required: z.array(z.string()).optional(),
1059
+ });
1060
+
1061
+ /**
1062
+ * @internal
1063
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1064
+ */
1065
+ export namespace DataInputSchema$ {
1066
+ /** @deprecated use `DataInputSchema$inboundSchema` instead. */
1067
+ export const inboundSchema = DataInputSchema$inboundSchema;
1068
+ /** @deprecated use `DataInputSchema$outboundSchema` instead. */
1069
+ export const outboundSchema = DataInputSchema$outboundSchema;
1070
+ /** @deprecated use `DataInputSchema$Outbound` instead. */
1071
+ export type Outbound = DataInputSchema$Outbound;
1072
+ }
1073
+
1074
+ export function dataInputSchemaToJSON(
1075
+ dataInputSchema: DataInputSchema,
1076
+ ): string {
1077
+ return JSON.stringify(DataInputSchema$outboundSchema.parse(dataInputSchema));
1078
+ }
1079
+
1080
+ export function dataInputSchemaFromJSON(
1081
+ jsonString: string,
1082
+ ): SafeParseResult<DataInputSchema, SDKValidationError> {
1083
+ return safeParse(
1084
+ jsonString,
1085
+ (x) => DataInputSchema$inboundSchema.parse(JSON.parse(x)),
1086
+ `Failed to parse 'DataInputSchema' from JSON`,
1087
+ );
1088
+ }
1089
+
1090
+ /** @internal */
1091
+ export const DataConnectionType$inboundSchema: z.ZodNativeEnum<
1092
+ typeof DataConnectionType
1093
+ > = z.nativeEnum(DataConnectionType);
1094
+
1095
+ /** @internal */
1096
+ export const DataConnectionType$outboundSchema: z.ZodNativeEnum<
1097
+ typeof DataConnectionType
1098
+ > = DataConnectionType$inboundSchema;
1099
+
1100
+ /**
1101
+ * @internal
1102
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1103
+ */
1104
+ export namespace DataConnectionType$ {
1105
+ /** @deprecated use `DataConnectionType$inboundSchema` instead. */
1106
+ export const inboundSchema = DataConnectionType$inboundSchema;
1107
+ /** @deprecated use `DataConnectionType$outboundSchema` instead. */
1108
+ export const outboundSchema = DataConnectionType$outboundSchema;
1109
+ }
1110
+
1111
+ /** @internal */
1112
+ export const DataMcp$inboundSchema: z.ZodType<DataMcp, z.ZodTypeDef, unknown> =
1113
+ z.object({
1114
+ server_id: z.string(),
1115
+ tool_name: z.string(),
1116
+ server_url: z.string(),
1117
+ headers: z.record(z.lazy(() => DataHeaders$inboundSchema)).optional(),
1118
+ input_schema: z.lazy(() => DataInputSchema$inboundSchema),
1119
+ connection_type: DataConnectionType$inboundSchema,
1120
+ }).transform((v) => {
1121
+ return remap$(v, {
1122
+ "server_id": "serverId",
1123
+ "tool_name": "toolName",
1124
+ "server_url": "serverUrl",
1125
+ "input_schema": "inputSchema",
1126
+ "connection_type": "connectionType",
1127
+ });
1128
+ });
1129
+
1130
+ /** @internal */
1131
+ export type DataMcp$Outbound = {
1132
+ server_id: string;
1133
+ tool_name: string;
1134
+ server_url: string;
1135
+ headers?: { [k: string]: DataHeaders$Outbound } | undefined;
1136
+ input_schema: DataInputSchema$Outbound;
1137
+ connection_type: string;
1138
+ };
1139
+
1140
+ /** @internal */
1141
+ export const DataMcp$outboundSchema: z.ZodType<
1142
+ DataMcp$Outbound,
1143
+ z.ZodTypeDef,
1144
+ DataMcp
1145
+ > = z.object({
1146
+ serverId: z.string(),
1147
+ toolName: z.string(),
1148
+ serverUrl: z.string(),
1149
+ headers: z.record(z.lazy(() => DataHeaders$outboundSchema)).optional(),
1150
+ inputSchema: z.lazy(() => DataInputSchema$outboundSchema),
1151
+ connectionType: DataConnectionType$outboundSchema,
1152
+ }).transform((v) => {
1153
+ return remap$(v, {
1154
+ serverId: "server_id",
1155
+ toolName: "tool_name",
1156
+ serverUrl: "server_url",
1157
+ inputSchema: "input_schema",
1158
+ connectionType: "connection_type",
1159
+ });
1160
+ });
1161
+
1162
+ /**
1163
+ * @internal
1164
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1165
+ */
1166
+ export namespace DataMcp$ {
1167
+ /** @deprecated use `DataMcp$inboundSchema` instead. */
1168
+ export const inboundSchema = DataMcp$inboundSchema;
1169
+ /** @deprecated use `DataMcp$outboundSchema` instead. */
1170
+ export const outboundSchema = DataMcp$outboundSchema;
1171
+ /** @deprecated use `DataMcp$Outbound` instead. */
1172
+ export type Outbound = DataMcp$Outbound;
1173
+ }
1174
+
1175
+ export function dataMcpToJSON(dataMcp: DataMcp): string {
1176
+ return JSON.stringify(DataMcp$outboundSchema.parse(dataMcp));
1177
+ }
1178
+
1179
+ export function dataMcpFromJSON(
1180
+ jsonString: string,
1181
+ ): SafeParseResult<DataMcp, SDKValidationError> {
1182
+ return safeParse(
1183
+ jsonString,
1184
+ (x) => DataMcp$inboundSchema.parse(JSON.parse(x)),
1185
+ `Failed to parse 'DataMcp' from JSON`,
1186
+ );
1187
+ }
1188
+
1189
+ /** @internal */
1190
+ export const Data4$inboundSchema: z.ZodType<Data4, z.ZodTypeDef, unknown> = z
1191
+ .object({
1192
+ _id: z.string().default("01K8WYAS6EAXAYDSZFB3VDRFBH"),
1193
+ path: z.string(),
1194
+ key: z.string(),
1195
+ display_name: z.string().optional(),
1196
+ description: z.string(),
1197
+ created_by_id: z.string().optional(),
1198
+ updated_by_id: z.string().optional(),
1199
+ project_id: z.string(),
1200
+ workspace_id: z.string(),
1201
+ created: z.string(),
1202
+ updated: z.string(),
1203
+ status: GetAllToolsDataToolsResponseStatus$inboundSchema.default("live"),
1204
+ version_hash: z.string().optional(),
1205
+ type: GetAllToolsDataToolsResponse200Type$inboundSchema,
1206
+ mcp: z.lazy(() => DataMcp$inboundSchema),
1207
+ }).transform((v) => {
1208
+ return remap$(v, {
1209
+ "_id": "id",
1210
+ "display_name": "displayName",
1211
+ "created_by_id": "createdById",
1212
+ "updated_by_id": "updatedById",
1213
+ "project_id": "projectId",
1214
+ "workspace_id": "workspaceId",
1215
+ "version_hash": "versionHash",
1216
+ });
1217
+ });
1218
+
1219
+ /** @internal */
1220
+ export type Data4$Outbound = {
1221
+ _id: string;
1222
+ path: string;
1223
+ key: string;
1224
+ display_name?: string | undefined;
1225
+ description: string;
1226
+ created_by_id?: string | undefined;
1227
+ updated_by_id?: string | undefined;
1228
+ project_id: string;
1229
+ workspace_id: string;
1230
+ created: string;
1231
+ updated: string;
1232
+ status: string;
1233
+ version_hash?: string | undefined;
1234
+ type: string;
1235
+ mcp: DataMcp$Outbound;
1236
+ };
1237
+
1238
+ /** @internal */
1239
+ export const Data4$outboundSchema: z.ZodType<
1240
+ Data4$Outbound,
1241
+ z.ZodTypeDef,
1242
+ Data4
1243
+ > = z.object({
1244
+ id: z.string().default("01K8WYAS6EAXAYDSZFB3VDRFBH"),
1245
+ path: z.string(),
1246
+ key: z.string(),
1247
+ displayName: z.string().optional(),
1248
+ description: z.string(),
1249
+ createdById: z.string().optional(),
1250
+ updatedById: z.string().optional(),
1251
+ projectId: z.string(),
1252
+ workspaceId: z.string(),
1253
+ created: z.string(),
1254
+ updated: z.string(),
1255
+ status: GetAllToolsDataToolsResponseStatus$outboundSchema.default("live"),
1256
+ versionHash: z.string().optional(),
1257
+ type: GetAllToolsDataToolsResponse200Type$outboundSchema,
1258
+ mcp: z.lazy(() => DataMcp$outboundSchema),
1259
+ }).transform((v) => {
1260
+ return remap$(v, {
1261
+ id: "_id",
1262
+ displayName: "display_name",
1263
+ createdById: "created_by_id",
1264
+ updatedById: "updated_by_id",
1265
+ projectId: "project_id",
1266
+ workspaceId: "workspace_id",
1267
+ versionHash: "version_hash",
1268
+ });
1269
+ });
1270
+
1271
+ /**
1272
+ * @internal
1273
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1274
+ */
1275
+ export namespace Data4$ {
1276
+ /** @deprecated use `Data4$inboundSchema` instead. */
1277
+ export const inboundSchema = Data4$inboundSchema;
1278
+ /** @deprecated use `Data4$outboundSchema` instead. */
1279
+ export const outboundSchema = Data4$outboundSchema;
1280
+ /** @deprecated use `Data4$Outbound` instead. */
1281
+ export type Outbound = Data4$Outbound;
1282
+ }
1283
+
1284
+ export function data4ToJSON(data4: Data4): string {
1285
+ return JSON.stringify(Data4$outboundSchema.parse(data4));
1286
+ }
1287
+
1288
+ export function data4FromJSON(
1289
+ jsonString: string,
1290
+ ): SafeParseResult<Data4, SDKValidationError> {
1291
+ return safeParse(
1292
+ jsonString,
1293
+ (x) => Data4$inboundSchema.parse(JSON.parse(x)),
1294
+ `Failed to parse 'Data4' from JSON`,
1295
+ );
1296
+ }
1297
+
1298
+ /** @internal */
1299
+ export const GetAllToolsDataToolsStatus$inboundSchema: z.ZodNativeEnum<
1300
+ typeof GetAllToolsDataToolsStatus
1301
+ > = z.nativeEnum(GetAllToolsDataToolsStatus);
1302
+
1303
+ /** @internal */
1304
+ export const GetAllToolsDataToolsStatus$outboundSchema: z.ZodNativeEnum<
1305
+ typeof GetAllToolsDataToolsStatus
1306
+ > = GetAllToolsDataToolsStatus$inboundSchema;
1307
+
1308
+ /**
1309
+ * @internal
1310
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1311
+ */
1312
+ export namespace GetAllToolsDataToolsStatus$ {
1313
+ /** @deprecated use `GetAllToolsDataToolsStatus$inboundSchema` instead. */
1314
+ export const inboundSchema = GetAllToolsDataToolsStatus$inboundSchema;
1315
+ /** @deprecated use `GetAllToolsDataToolsStatus$outboundSchema` instead. */
1316
+ export const outboundSchema = GetAllToolsDataToolsStatus$outboundSchema;
1317
+ }
1318
+
1319
+ /** @internal */
1320
+ export const GetAllToolsDataToolsResponseType$inboundSchema: z.ZodNativeEnum<
1321
+ typeof GetAllToolsDataToolsResponseType
1322
+ > = z.nativeEnum(GetAllToolsDataToolsResponseType);
1323
+
1324
+ /** @internal */
1325
+ export const GetAllToolsDataToolsResponseType$outboundSchema: z.ZodNativeEnum<
1326
+ typeof GetAllToolsDataToolsResponseType
1327
+ > = GetAllToolsDataToolsResponseType$inboundSchema;
1328
+
1329
+ /**
1330
+ * @internal
1331
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1332
+ */
1333
+ export namespace GetAllToolsDataToolsResponseType$ {
1334
+ /** @deprecated use `GetAllToolsDataToolsResponseType$inboundSchema` instead. */
1335
+ export const inboundSchema = GetAllToolsDataToolsResponseType$inboundSchema;
1336
+ /** @deprecated use `GetAllToolsDataToolsResponseType$outboundSchema` instead. */
1337
+ export const outboundSchema = GetAllToolsDataToolsResponseType$outboundSchema;
1338
+ }
1339
+
1340
+ /** @internal */
1341
+ export const GetAllToolsDataMethod$inboundSchema: z.ZodNativeEnum<
1342
+ typeof GetAllToolsDataMethod
1343
+ > = z.nativeEnum(GetAllToolsDataMethod);
1344
+
1345
+ /** @internal */
1346
+ export const GetAllToolsDataMethod$outboundSchema: z.ZodNativeEnum<
1347
+ typeof GetAllToolsDataMethod
1348
+ > = GetAllToolsDataMethod$inboundSchema;
1349
+
1350
+ /**
1351
+ * @internal
1352
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1353
+ */
1354
+ export namespace GetAllToolsDataMethod$ {
1355
+ /** @deprecated use `GetAllToolsDataMethod$inboundSchema` instead. */
1356
+ export const inboundSchema = GetAllToolsDataMethod$inboundSchema;
1357
+ /** @deprecated use `GetAllToolsDataMethod$outboundSchema` instead. */
1358
+ export const outboundSchema = GetAllToolsDataMethod$outboundSchema;
1359
+ }
1360
+
1361
+ /** @internal */
1362
+ export const DataBlueprint$inboundSchema: z.ZodType<
1363
+ DataBlueprint,
1364
+ z.ZodTypeDef,
1365
+ unknown
1366
+ > = z.object({
1367
+ url: z.string(),
1368
+ method: GetAllToolsDataMethod$inboundSchema,
1369
+ headers: z.record(z.string()).optional(),
1370
+ body: z.record(z.any()).optional(),
1371
+ });
1372
+
1373
+ /** @internal */
1374
+ export type DataBlueprint$Outbound = {
1375
+ url: string;
1376
+ method: string;
1377
+ headers?: { [k: string]: string } | undefined;
1378
+ body?: { [k: string]: any } | undefined;
1379
+ };
1380
+
1381
+ /** @internal */
1382
+ export const DataBlueprint$outboundSchema: z.ZodType<
1383
+ DataBlueprint$Outbound,
1384
+ z.ZodTypeDef,
1385
+ DataBlueprint
1386
+ > = z.object({
1387
+ url: z.string(),
1388
+ method: GetAllToolsDataMethod$outboundSchema,
1389
+ headers: z.record(z.string()).optional(),
1390
+ body: z.record(z.any()).optional(),
1391
+ });
1392
+
1393
+ /**
1394
+ * @internal
1395
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1396
+ */
1397
+ export namespace DataBlueprint$ {
1398
+ /** @deprecated use `DataBlueprint$inboundSchema` instead. */
1399
+ export const inboundSchema = DataBlueprint$inboundSchema;
1400
+ /** @deprecated use `DataBlueprint$outboundSchema` instead. */
1401
+ export const outboundSchema = DataBlueprint$outboundSchema;
1402
+ /** @deprecated use `DataBlueprint$Outbound` instead. */
1403
+ export type Outbound = DataBlueprint$Outbound;
1404
+ }
1405
+
1406
+ export function dataBlueprintToJSON(dataBlueprint: DataBlueprint): string {
1407
+ return JSON.stringify(DataBlueprint$outboundSchema.parse(dataBlueprint));
1408
+ }
1409
+
1410
+ export function dataBlueprintFromJSON(
1411
+ jsonString: string,
1412
+ ): SafeParseResult<DataBlueprint, SDKValidationError> {
1413
+ return safeParse(
1414
+ jsonString,
1415
+ (x) => DataBlueprint$inboundSchema.parse(JSON.parse(x)),
1416
+ `Failed to parse 'DataBlueprint' from JSON`,
1417
+ );
1418
+ }
1419
+
1420
+ /** @internal */
1421
+ export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type$inboundSchema:
1422
+ z.ZodNativeEnum<
1423
+ typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type
1424
+ > = z.nativeEnum(
1425
+ GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type,
1426
+ );
1427
+
1428
+ /** @internal */
1429
+ export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type$outboundSchema:
1430
+ z.ZodNativeEnum<
1431
+ typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type
1432
+ > =
1433
+ GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type$inboundSchema;
1434
+
1435
+ /**
1436
+ * @internal
1437
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1438
+ */
1439
+ export namespace GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type$ {
1440
+ /** @deprecated use `GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type$inboundSchema` instead. */
1441
+ export const inboundSchema =
1442
+ GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type$inboundSchema;
1443
+ /** @deprecated use `GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type$outboundSchema` instead. */
1444
+ export const outboundSchema =
1445
+ GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type$outboundSchema;
1446
+ }
1447
+
1448
+ /** @internal */
1449
+ export const DataDefaultValue$inboundSchema: z.ZodType<
1450
+ DataDefaultValue,
1451
+ z.ZodTypeDef,
1452
+ unknown
1453
+ > = z.union([z.string(), z.number(), z.boolean()]);
1454
+
1455
+ /** @internal */
1456
+ export type DataDefaultValue$Outbound = string | number | boolean;
1457
+
1458
+ /** @internal */
1459
+ export const DataDefaultValue$outboundSchema: z.ZodType<
1460
+ DataDefaultValue$Outbound,
1461
+ z.ZodTypeDef,
1462
+ DataDefaultValue
1463
+ > = z.union([z.string(), z.number(), z.boolean()]);
1464
+
1465
+ /**
1466
+ * @internal
1467
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1468
+ */
1469
+ export namespace DataDefaultValue$ {
1470
+ /** @deprecated use `DataDefaultValue$inboundSchema` instead. */
1471
+ export const inboundSchema = DataDefaultValue$inboundSchema;
1472
+ /** @deprecated use `DataDefaultValue$outboundSchema` instead. */
1473
+ export const outboundSchema = DataDefaultValue$outboundSchema;
1474
+ /** @deprecated use `DataDefaultValue$Outbound` instead. */
1475
+ export type Outbound = DataDefaultValue$Outbound;
1476
+ }
1477
+
1478
+ export function dataDefaultValueToJSON(
1479
+ dataDefaultValue: DataDefaultValue,
1480
+ ): string {
1481
+ return JSON.stringify(
1482
+ DataDefaultValue$outboundSchema.parse(dataDefaultValue),
1483
+ );
1484
+ }
1485
+
1486
+ export function dataDefaultValueFromJSON(
1487
+ jsonString: string,
1488
+ ): SafeParseResult<DataDefaultValue, SDKValidationError> {
1489
+ return safeParse(
1490
+ jsonString,
1491
+ (x) => DataDefaultValue$inboundSchema.parse(JSON.parse(x)),
1492
+ `Failed to parse 'DataDefaultValue' from JSON`,
1493
+ );
1494
+ }
1495
+
1496
+ /** @internal */
1497
+ export const DataArguments$inboundSchema: z.ZodType<
1498
+ DataArguments,
1499
+ z.ZodTypeDef,
1500
+ unknown
1501
+ > = z.object({
1502
+ type:
1503
+ GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type$inboundSchema,
1504
+ description: z.string(),
1505
+ send_to_model: z.boolean().default(true),
1506
+ default_value: z.union([z.string(), z.number(), z.boolean()]).optional(),
1507
+ }).transform((v) => {
1508
+ return remap$(v, {
1509
+ "send_to_model": "sendToModel",
1510
+ "default_value": "defaultValue",
1511
+ });
1512
+ });
1513
+
1514
+ /** @internal */
1515
+ export type DataArguments$Outbound = {
1516
+ type: string;
1517
+ description: string;
1518
+ send_to_model: boolean;
1519
+ default_value?: string | number | boolean | undefined;
1520
+ };
1521
+
1522
+ /** @internal */
1523
+ export const DataArguments$outboundSchema: z.ZodType<
1524
+ DataArguments$Outbound,
1525
+ z.ZodTypeDef,
1526
+ DataArguments
1527
+ > = z.object({
1528
+ type:
1529
+ GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type$outboundSchema,
1530
+ description: z.string(),
1531
+ sendToModel: z.boolean().default(true),
1532
+ defaultValue: z.union([z.string(), z.number(), z.boolean()]).optional(),
1533
+ }).transform((v) => {
1534
+ return remap$(v, {
1535
+ sendToModel: "send_to_model",
1536
+ defaultValue: "default_value",
1537
+ });
1538
+ });
1539
+
1540
+ /**
1541
+ * @internal
1542
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1543
+ */
1544
+ export namespace DataArguments$ {
1545
+ /** @deprecated use `DataArguments$inboundSchema` instead. */
1546
+ export const inboundSchema = DataArguments$inboundSchema;
1547
+ /** @deprecated use `DataArguments$outboundSchema` instead. */
1548
+ export const outboundSchema = DataArguments$outboundSchema;
1549
+ /** @deprecated use `DataArguments$Outbound` instead. */
1550
+ export type Outbound = DataArguments$Outbound;
1551
+ }
1552
+
1553
+ export function dataArgumentsToJSON(dataArguments: DataArguments): string {
1554
+ return JSON.stringify(DataArguments$outboundSchema.parse(dataArguments));
1555
+ }
1556
+
1557
+ export function dataArgumentsFromJSON(
1558
+ jsonString: string,
1559
+ ): SafeParseResult<DataArguments, SDKValidationError> {
1560
+ return safeParse(
1561
+ jsonString,
1562
+ (x) => DataArguments$inboundSchema.parse(JSON.parse(x)),
1563
+ `Failed to parse 'DataArguments' from JSON`,
1564
+ );
1565
+ }
1566
+
1567
+ /** @internal */
1568
+ export const GetAllToolsDataHttp$inboundSchema: z.ZodType<
1569
+ GetAllToolsDataHttp,
1570
+ z.ZodTypeDef,
1571
+ unknown
1572
+ > = z.object({
1573
+ blueprint: z.lazy(() => DataBlueprint$inboundSchema),
1574
+ arguments: z.record(z.lazy(() => DataArguments$inboundSchema)).optional(),
1575
+ });
1576
+
1577
+ /** @internal */
1578
+ export type GetAllToolsDataHttp$Outbound = {
1579
+ blueprint: DataBlueprint$Outbound;
1580
+ arguments?: { [k: string]: DataArguments$Outbound } | undefined;
1581
+ };
1582
+
1583
+ /** @internal */
1584
+ export const GetAllToolsDataHttp$outboundSchema: z.ZodType<
1585
+ GetAllToolsDataHttp$Outbound,
1586
+ z.ZodTypeDef,
1587
+ GetAllToolsDataHttp
1588
+ > = z.object({
1589
+ blueprint: z.lazy(() => DataBlueprint$outboundSchema),
1590
+ arguments: z.record(z.lazy(() => DataArguments$outboundSchema)).optional(),
1591
+ });
1592
+
1593
+ /**
1594
+ * @internal
1595
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1596
+ */
1597
+ export namespace GetAllToolsDataHttp$ {
1598
+ /** @deprecated use `GetAllToolsDataHttp$inboundSchema` instead. */
1599
+ export const inboundSchema = GetAllToolsDataHttp$inboundSchema;
1600
+ /** @deprecated use `GetAllToolsDataHttp$outboundSchema` instead. */
1601
+ export const outboundSchema = GetAllToolsDataHttp$outboundSchema;
1602
+ /** @deprecated use `GetAllToolsDataHttp$Outbound` instead. */
1603
+ export type Outbound = GetAllToolsDataHttp$Outbound;
1604
+ }
1605
+
1606
+ export function getAllToolsDataHttpToJSON(
1607
+ getAllToolsDataHttp: GetAllToolsDataHttp,
1608
+ ): string {
1609
+ return JSON.stringify(
1610
+ GetAllToolsDataHttp$outboundSchema.parse(getAllToolsDataHttp),
1611
+ );
1612
+ }
1613
+
1614
+ export function getAllToolsDataHttpFromJSON(
1615
+ jsonString: string,
1616
+ ): SafeParseResult<GetAllToolsDataHttp, SDKValidationError> {
1617
+ return safeParse(
1618
+ jsonString,
1619
+ (x) => GetAllToolsDataHttp$inboundSchema.parse(JSON.parse(x)),
1620
+ `Failed to parse 'GetAllToolsDataHttp' from JSON`,
1621
+ );
1622
+ }
1623
+
1624
+ /** @internal */
1625
+ export const Data3$inboundSchema: z.ZodType<Data3, z.ZodTypeDef, unknown> = z
1626
+ .object({
1627
+ _id: z.string().default("01K8WYAS6B3RWDDYJ12HV62P1Q"),
1628
+ path: z.string(),
1629
+ key: z.string(),
1630
+ display_name: z.string().optional(),
1631
+ description: z.string(),
1632
+ created_by_id: z.string().optional(),
1633
+ updated_by_id: z.string().optional(),
1634
+ project_id: z.string(),
1635
+ workspace_id: z.string(),
1636
+ created: z.string(),
1637
+ updated: z.string(),
1638
+ status: GetAllToolsDataToolsStatus$inboundSchema.default("live"),
1639
+ version_hash: z.string().optional(),
1640
+ type: GetAllToolsDataToolsResponseType$inboundSchema,
1641
+ http: z.lazy(() => GetAllToolsDataHttp$inboundSchema),
1642
+ }).transform((v) => {
1643
+ return remap$(v, {
1644
+ "_id": "id",
1645
+ "display_name": "displayName",
1646
+ "created_by_id": "createdById",
1647
+ "updated_by_id": "updatedById",
1648
+ "project_id": "projectId",
1649
+ "workspace_id": "workspaceId",
1650
+ "version_hash": "versionHash",
1651
+ });
1652
+ });
1653
+
1654
+ /** @internal */
1655
+ export type Data3$Outbound = {
1656
+ _id: string;
1657
+ path: string;
1658
+ key: string;
1659
+ display_name?: string | undefined;
1660
+ description: string;
1661
+ created_by_id?: string | undefined;
1662
+ updated_by_id?: string | undefined;
1663
+ project_id: string;
1664
+ workspace_id: string;
1665
+ created: string;
1666
+ updated: string;
1667
+ status: string;
1668
+ version_hash?: string | undefined;
1669
+ type: string;
1670
+ http: GetAllToolsDataHttp$Outbound;
1671
+ };
1672
+
1673
+ /** @internal */
1674
+ export const Data3$outboundSchema: z.ZodType<
1675
+ Data3$Outbound,
1676
+ z.ZodTypeDef,
1677
+ Data3
1678
+ > = z.object({
1679
+ id: z.string().default("01K8WYAS6B3RWDDYJ12HV62P1Q"),
1680
+ path: z.string(),
1681
+ key: z.string(),
1682
+ displayName: z.string().optional(),
1683
+ description: z.string(),
1684
+ createdById: z.string().optional(),
1685
+ updatedById: z.string().optional(),
1686
+ projectId: z.string(),
1687
+ workspaceId: z.string(),
1688
+ created: z.string(),
1689
+ updated: z.string(),
1690
+ status: GetAllToolsDataToolsStatus$outboundSchema.default("live"),
1691
+ versionHash: z.string().optional(),
1692
+ type: GetAllToolsDataToolsResponseType$outboundSchema,
1693
+ http: z.lazy(() => GetAllToolsDataHttp$outboundSchema),
1694
+ }).transform((v) => {
1695
+ return remap$(v, {
1696
+ id: "_id",
1697
+ displayName: "display_name",
1698
+ createdById: "created_by_id",
1699
+ updatedById: "updated_by_id",
1700
+ projectId: "project_id",
1701
+ workspaceId: "workspace_id",
1702
+ versionHash: "version_hash",
1703
+ });
1704
+ });
1705
+
1706
+ /**
1707
+ * @internal
1708
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1709
+ */
1710
+ export namespace Data3$ {
1711
+ /** @deprecated use `Data3$inboundSchema` instead. */
1712
+ export const inboundSchema = Data3$inboundSchema;
1713
+ /** @deprecated use `Data3$outboundSchema` instead. */
1714
+ export const outboundSchema = Data3$outboundSchema;
1715
+ /** @deprecated use `Data3$Outbound` instead. */
1716
+ export type Outbound = Data3$Outbound;
1717
+ }
1718
+
1719
+ export function data3ToJSON(data3: Data3): string {
1720
+ return JSON.stringify(Data3$outboundSchema.parse(data3));
1721
+ }
1722
+
1723
+ export function data3FromJSON(
1724
+ jsonString: string,
1725
+ ): SafeParseResult<Data3, SDKValidationError> {
1726
+ return safeParse(
1727
+ jsonString,
1728
+ (x) => Data3$inboundSchema.parse(JSON.parse(x)),
1729
+ `Failed to parse 'Data3' from JSON`,
1730
+ );
1731
+ }
1732
+
1733
+ /** @internal */
1734
+ export const GetAllToolsDataStatus$inboundSchema: z.ZodNativeEnum<
1735
+ typeof GetAllToolsDataStatus
1736
+ > = z.nativeEnum(GetAllToolsDataStatus);
1737
+
1738
+ /** @internal */
1739
+ export const GetAllToolsDataStatus$outboundSchema: z.ZodNativeEnum<
1740
+ typeof GetAllToolsDataStatus
1741
+ > = GetAllToolsDataStatus$inboundSchema;
1742
+
1743
+ /**
1744
+ * @internal
1745
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1746
+ */
1747
+ export namespace GetAllToolsDataStatus$ {
1748
+ /** @deprecated use `GetAllToolsDataStatus$inboundSchema` instead. */
1749
+ export const inboundSchema = GetAllToolsDataStatus$inboundSchema;
1750
+ /** @deprecated use `GetAllToolsDataStatus$outboundSchema` instead. */
1751
+ export const outboundSchema = GetAllToolsDataStatus$outboundSchema;
1752
+ }
1753
+
1754
+ /** @internal */
1755
+ export const GetAllToolsDataToolsType$inboundSchema: z.ZodNativeEnum<
1756
+ typeof GetAllToolsDataToolsType
1757
+ > = z.nativeEnum(GetAllToolsDataToolsType);
1758
+
1759
+ /** @internal */
1760
+ export const GetAllToolsDataToolsType$outboundSchema: z.ZodNativeEnum<
1761
+ typeof GetAllToolsDataToolsType
1762
+ > = GetAllToolsDataToolsType$inboundSchema;
1763
+
1764
+ /**
1765
+ * @internal
1766
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1767
+ */
1768
+ export namespace GetAllToolsDataToolsType$ {
1769
+ /** @deprecated use `GetAllToolsDataToolsType$inboundSchema` instead. */
1770
+ export const inboundSchema = GetAllToolsDataToolsType$inboundSchema;
1771
+ /** @deprecated use `GetAllToolsDataToolsType$outboundSchema` instead. */
1772
+ export const outboundSchema = GetAllToolsDataToolsType$outboundSchema;
1773
+ }
1774
+
1775
+ /** @internal */
1776
+ export const DataJsonSchema$inboundSchema: z.ZodType<
1777
+ DataJsonSchema,
1778
+ z.ZodTypeDef,
1779
+ unknown
1780
+ > = z.object({
1781
+ name: z.string(),
1782
+ description: z.string().optional(),
1783
+ schema: z.record(z.any()),
1784
+ strict: z.nullable(z.boolean().default(false)),
1785
+ });
1786
+
1787
+ /** @internal */
1788
+ export type DataJsonSchema$Outbound = {
1789
+ name: string;
1790
+ description?: string | undefined;
1791
+ schema: { [k: string]: any };
1792
+ strict: boolean | null;
1793
+ };
1794
+
1795
+ /** @internal */
1796
+ export const DataJsonSchema$outboundSchema: z.ZodType<
1797
+ DataJsonSchema$Outbound,
1798
+ z.ZodTypeDef,
1799
+ DataJsonSchema
1800
+ > = z.object({
1801
+ name: z.string(),
1802
+ description: z.string().optional(),
1803
+ schema: z.record(z.any()),
1804
+ strict: z.nullable(z.boolean().default(false)),
1805
+ });
1806
+
1807
+ /**
1808
+ * @internal
1809
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1810
+ */
1811
+ export namespace DataJsonSchema$ {
1812
+ /** @deprecated use `DataJsonSchema$inboundSchema` instead. */
1813
+ export const inboundSchema = DataJsonSchema$inboundSchema;
1814
+ /** @deprecated use `DataJsonSchema$outboundSchema` instead. */
1815
+ export const outboundSchema = DataJsonSchema$outboundSchema;
1816
+ /** @deprecated use `DataJsonSchema$Outbound` instead. */
1817
+ export type Outbound = DataJsonSchema$Outbound;
1818
+ }
1819
+
1820
+ export function dataJsonSchemaToJSON(dataJsonSchema: DataJsonSchema): string {
1821
+ return JSON.stringify(DataJsonSchema$outboundSchema.parse(dataJsonSchema));
1822
+ }
1823
+
1824
+ export function dataJsonSchemaFromJSON(
1825
+ jsonString: string,
1826
+ ): SafeParseResult<DataJsonSchema, SDKValidationError> {
1827
+ return safeParse(
1828
+ jsonString,
1829
+ (x) => DataJsonSchema$inboundSchema.parse(JSON.parse(x)),
1830
+ `Failed to parse 'DataJsonSchema' from JSON`,
1831
+ );
1832
+ }
1833
+
1834
+ /** @internal */
1835
+ export const Data2$inboundSchema: z.ZodType<Data2, z.ZodTypeDef, unknown> = z
1836
+ .object({
1837
+ _id: z.string().default("01K8WYAS68HKMZH5KQWMQ4WHMA"),
1838
+ path: z.string(),
1839
+ key: z.string(),
1840
+ display_name: z.string().optional(),
1841
+ description: z.string(),
1842
+ created_by_id: z.string().optional(),
1843
+ updated_by_id: z.string().optional(),
1844
+ project_id: z.string(),
1845
+ workspace_id: z.string(),
1846
+ created: z.string(),
1847
+ updated: z.string(),
1848
+ status: GetAllToolsDataStatus$inboundSchema.default("live"),
1849
+ version_hash: z.string().optional(),
1850
+ type: GetAllToolsDataToolsType$inboundSchema,
1851
+ json_schema: z.lazy(() => DataJsonSchema$inboundSchema),
1852
+ }).transform((v) => {
1853
+ return remap$(v, {
1854
+ "_id": "id",
1855
+ "display_name": "displayName",
1856
+ "created_by_id": "createdById",
1857
+ "updated_by_id": "updatedById",
1858
+ "project_id": "projectId",
1859
+ "workspace_id": "workspaceId",
1860
+ "version_hash": "versionHash",
1861
+ "json_schema": "jsonSchema",
1862
+ });
1863
+ });
1864
+
1865
+ /** @internal */
1866
+ export type Data2$Outbound = {
1867
+ _id: string;
1868
+ path: string;
1869
+ key: string;
1870
+ display_name?: string | undefined;
1871
+ description: string;
1872
+ created_by_id?: string | undefined;
1873
+ updated_by_id?: string | undefined;
1874
+ project_id: string;
1875
+ workspace_id: string;
1876
+ created: string;
1877
+ updated: string;
1878
+ status: string;
1879
+ version_hash?: string | undefined;
1880
+ type: string;
1881
+ json_schema: DataJsonSchema$Outbound;
1882
+ };
1883
+
1884
+ /** @internal */
1885
+ export const Data2$outboundSchema: z.ZodType<
1886
+ Data2$Outbound,
1887
+ z.ZodTypeDef,
1888
+ Data2
1889
+ > = z.object({
1890
+ id: z.string().default("01K8WYAS68HKMZH5KQWMQ4WHMA"),
1891
+ path: z.string(),
1892
+ key: z.string(),
1893
+ displayName: z.string().optional(),
1894
+ description: z.string(),
1895
+ createdById: z.string().optional(),
1896
+ updatedById: z.string().optional(),
1897
+ projectId: z.string(),
1898
+ workspaceId: z.string(),
1899
+ created: z.string(),
1900
+ updated: z.string(),
1901
+ status: GetAllToolsDataStatus$outboundSchema.default("live"),
1902
+ versionHash: z.string().optional(),
1903
+ type: GetAllToolsDataToolsType$outboundSchema,
1904
+ jsonSchema: z.lazy(() => DataJsonSchema$outboundSchema),
1905
+ }).transform((v) => {
1906
+ return remap$(v, {
1907
+ id: "_id",
1908
+ displayName: "display_name",
1909
+ createdById: "created_by_id",
1910
+ updatedById: "updated_by_id",
1911
+ projectId: "project_id",
1912
+ workspaceId: "workspace_id",
1913
+ versionHash: "version_hash",
1914
+ jsonSchema: "json_schema",
1915
+ });
1916
+ });
1917
+
1918
+ /**
1919
+ * @internal
1920
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1921
+ */
1922
+ export namespace Data2$ {
1923
+ /** @deprecated use `Data2$inboundSchema` instead. */
1924
+ export const inboundSchema = Data2$inboundSchema;
1925
+ /** @deprecated use `Data2$outboundSchema` instead. */
1926
+ export const outboundSchema = Data2$outboundSchema;
1927
+ /** @deprecated use `Data2$Outbound` instead. */
1928
+ export type Outbound = Data2$Outbound;
1929
+ }
1930
+
1931
+ export function data2ToJSON(data2: Data2): string {
1932
+ return JSON.stringify(Data2$outboundSchema.parse(data2));
1933
+ }
1934
+
1935
+ export function data2FromJSON(
1936
+ jsonString: string,
1937
+ ): SafeParseResult<Data2, SDKValidationError> {
1938
+ return safeParse(
1939
+ jsonString,
1940
+ (x) => Data2$inboundSchema.parse(JSON.parse(x)),
1941
+ `Failed to parse 'Data2' from JSON`,
1942
+ );
1943
+ }
1944
+
1945
+ /** @internal */
1946
+ export const DataStatus$inboundSchema: z.ZodNativeEnum<typeof DataStatus> = z
1947
+ .nativeEnum(DataStatus);
1948
+
1949
+ /** @internal */
1950
+ export const DataStatus$outboundSchema: z.ZodNativeEnum<typeof DataStatus> =
1951
+ DataStatus$inboundSchema;
1952
+
1953
+ /**
1954
+ * @internal
1955
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1956
+ */
1957
+ export namespace DataStatus$ {
1958
+ /** @deprecated use `DataStatus$inboundSchema` instead. */
1959
+ export const inboundSchema = DataStatus$inboundSchema;
1960
+ /** @deprecated use `DataStatus$outboundSchema` instead. */
1961
+ export const outboundSchema = DataStatus$outboundSchema;
1962
+ }
1963
+
1964
+ /** @internal */
1965
+ export const GetAllToolsDataType$inboundSchema: z.ZodNativeEnum<
1966
+ typeof GetAllToolsDataType
1967
+ > = z.nativeEnum(GetAllToolsDataType);
1968
+
1969
+ /** @internal */
1970
+ export const GetAllToolsDataType$outboundSchema: z.ZodNativeEnum<
1971
+ typeof GetAllToolsDataType
1972
+ > = GetAllToolsDataType$inboundSchema;
1973
+
1974
+ /**
1975
+ * @internal
1976
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1977
+ */
1978
+ export namespace GetAllToolsDataType$ {
1979
+ /** @deprecated use `GetAllToolsDataType$inboundSchema` instead. */
1980
+ export const inboundSchema = GetAllToolsDataType$inboundSchema;
1981
+ /** @deprecated use `GetAllToolsDataType$outboundSchema` instead. */
1982
+ export const outboundSchema = GetAllToolsDataType$outboundSchema;
1983
+ }
1984
+
1985
+ /** @internal */
1986
+ export const GetAllToolsDataFunction$inboundSchema: z.ZodType<
1987
+ GetAllToolsDataFunction,
1988
+ z.ZodTypeDef,
1989
+ unknown
1990
+ > = z.object({
1991
+ name: z.string(),
1992
+ description: z.string().optional(),
1993
+ strict: z.boolean().optional(),
1994
+ parameters: z.record(z.any()).optional(),
1995
+ });
1996
+
1997
+ /** @internal */
1998
+ export type GetAllToolsDataFunction$Outbound = {
1999
+ name: string;
2000
+ description?: string | undefined;
2001
+ strict?: boolean | undefined;
2002
+ parameters?: { [k: string]: any } | undefined;
2003
+ };
2004
+
2005
+ /** @internal */
2006
+ export const GetAllToolsDataFunction$outboundSchema: z.ZodType<
2007
+ GetAllToolsDataFunction$Outbound,
2008
+ z.ZodTypeDef,
2009
+ GetAllToolsDataFunction
2010
+ > = z.object({
2011
+ name: z.string(),
2012
+ description: z.string().optional(),
2013
+ strict: z.boolean().optional(),
2014
+ parameters: z.record(z.any()).optional(),
2015
+ });
2016
+
2017
+ /**
2018
+ * @internal
2019
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2020
+ */
2021
+ export namespace GetAllToolsDataFunction$ {
2022
+ /** @deprecated use `GetAllToolsDataFunction$inboundSchema` instead. */
2023
+ export const inboundSchema = GetAllToolsDataFunction$inboundSchema;
2024
+ /** @deprecated use `GetAllToolsDataFunction$outboundSchema` instead. */
2025
+ export const outboundSchema = GetAllToolsDataFunction$outboundSchema;
2026
+ /** @deprecated use `GetAllToolsDataFunction$Outbound` instead. */
2027
+ export type Outbound = GetAllToolsDataFunction$Outbound;
2028
+ }
2029
+
2030
+ export function getAllToolsDataFunctionToJSON(
2031
+ getAllToolsDataFunction: GetAllToolsDataFunction,
2032
+ ): string {
2033
+ return JSON.stringify(
2034
+ GetAllToolsDataFunction$outboundSchema.parse(getAllToolsDataFunction),
2035
+ );
2036
+ }
2037
+
2038
+ export function getAllToolsDataFunctionFromJSON(
2039
+ jsonString: string,
2040
+ ): SafeParseResult<GetAllToolsDataFunction, SDKValidationError> {
2041
+ return safeParse(
2042
+ jsonString,
2043
+ (x) => GetAllToolsDataFunction$inboundSchema.parse(JSON.parse(x)),
2044
+ `Failed to parse 'GetAllToolsDataFunction' from JSON`,
2045
+ );
2046
+ }
2047
+
2048
+ /** @internal */
2049
+ export const Data1$inboundSchema: z.ZodType<Data1, z.ZodTypeDef, unknown> = z
2050
+ .object({
2051
+ _id: z.string().default("01K8WYAS66YVFWWJ7H61AB1FN1"),
2052
+ path: z.string(),
2053
+ key: z.string(),
2054
+ display_name: z.string().optional(),
2055
+ description: z.string(),
2056
+ created_by_id: z.string().optional(),
2057
+ updated_by_id: z.string().optional(),
2058
+ project_id: z.string(),
2059
+ workspace_id: z.string(),
2060
+ created: z.string(),
2061
+ updated: z.string(),
2062
+ status: DataStatus$inboundSchema.default("live"),
2063
+ version_hash: z.string().optional(),
2064
+ type: GetAllToolsDataType$inboundSchema,
2065
+ function: z.lazy(() => GetAllToolsDataFunction$inboundSchema),
2066
+ }).transform((v) => {
2067
+ return remap$(v, {
2068
+ "_id": "id",
2069
+ "display_name": "displayName",
2070
+ "created_by_id": "createdById",
2071
+ "updated_by_id": "updatedById",
2072
+ "project_id": "projectId",
2073
+ "workspace_id": "workspaceId",
2074
+ "version_hash": "versionHash",
2075
+ });
2076
+ });
2077
+
2078
+ /** @internal */
2079
+ export type Data1$Outbound = {
2080
+ _id: string;
2081
+ path: string;
2082
+ key: string;
2083
+ display_name?: string | undefined;
2084
+ description: string;
2085
+ created_by_id?: string | undefined;
2086
+ updated_by_id?: string | undefined;
2087
+ project_id: string;
2088
+ workspace_id: string;
2089
+ created: string;
2090
+ updated: string;
2091
+ status: string;
2092
+ version_hash?: string | undefined;
2093
+ type: string;
2094
+ function: GetAllToolsDataFunction$Outbound;
2095
+ };
2096
+
2097
+ /** @internal */
2098
+ export const Data1$outboundSchema: z.ZodType<
2099
+ Data1$Outbound,
2100
+ z.ZodTypeDef,
2101
+ Data1
2102
+ > = z.object({
2103
+ id: z.string().default("01K8WYAS66YVFWWJ7H61AB1FN1"),
2104
+ path: z.string(),
2105
+ key: z.string(),
2106
+ displayName: z.string().optional(),
2107
+ description: z.string(),
2108
+ createdById: z.string().optional(),
2109
+ updatedById: z.string().optional(),
2110
+ projectId: z.string(),
2111
+ workspaceId: z.string(),
2112
+ created: z.string(),
2113
+ updated: z.string(),
2114
+ status: DataStatus$outboundSchema.default("live"),
2115
+ versionHash: z.string().optional(),
2116
+ type: GetAllToolsDataType$outboundSchema,
2117
+ function: z.lazy(() => GetAllToolsDataFunction$outboundSchema),
2118
+ }).transform((v) => {
2119
+ return remap$(v, {
2120
+ id: "_id",
2121
+ displayName: "display_name",
2122
+ createdById: "created_by_id",
2123
+ updatedById: "updated_by_id",
2124
+ projectId: "project_id",
2125
+ workspaceId: "workspace_id",
2126
+ versionHash: "version_hash",
2127
+ });
2128
+ });
2129
+
2130
+ /**
2131
+ * @internal
2132
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2133
+ */
2134
+ export namespace Data1$ {
2135
+ /** @deprecated use `Data1$inboundSchema` instead. */
2136
+ export const inboundSchema = Data1$inboundSchema;
2137
+ /** @deprecated use `Data1$outboundSchema` instead. */
2138
+ export const outboundSchema = Data1$outboundSchema;
2139
+ /** @deprecated use `Data1$Outbound` instead. */
2140
+ export type Outbound = Data1$Outbound;
2141
+ }
2142
+
2143
+ export function data1ToJSON(data1: Data1): string {
2144
+ return JSON.stringify(Data1$outboundSchema.parse(data1));
2145
+ }
2146
+
2147
+ export function data1FromJSON(
2148
+ jsonString: string,
2149
+ ): SafeParseResult<Data1, SDKValidationError> {
2150
+ return safeParse(
2151
+ jsonString,
2152
+ (x) => Data1$inboundSchema.parse(JSON.parse(x)),
2153
+ `Failed to parse 'Data1' from JSON`,
2154
+ );
2155
+ }
2156
+
2157
+ /** @internal */
2158
+ export const GetAllToolsData$inboundSchema: z.ZodType<
2159
+ GetAllToolsData,
2160
+ z.ZodTypeDef,
2161
+ unknown
2162
+ > = z.union([
2163
+ z.lazy(() => Data1$inboundSchema),
2164
+ z.lazy(() => Data2$inboundSchema),
2165
+ z.lazy(() => Data3$inboundSchema),
2166
+ z.lazy(() => Data4$inboundSchema),
2167
+ z.lazy(() => Data5$inboundSchema),
2168
+ ]);
2169
+
2170
+ /** @internal */
2171
+ export type GetAllToolsData$Outbound =
2172
+ | Data1$Outbound
2173
+ | Data2$Outbound
2174
+ | Data3$Outbound
2175
+ | Data4$Outbound
2176
+ | Data5$Outbound;
2177
+
2178
+ /** @internal */
2179
+ export const GetAllToolsData$outboundSchema: z.ZodType<
2180
+ GetAllToolsData$Outbound,
2181
+ z.ZodTypeDef,
2182
+ GetAllToolsData
2183
+ > = z.union([
2184
+ z.lazy(() => Data1$outboundSchema),
2185
+ z.lazy(() => Data2$outboundSchema),
2186
+ z.lazy(() => Data3$outboundSchema),
2187
+ z.lazy(() => Data4$outboundSchema),
2188
+ z.lazy(() => Data5$outboundSchema),
2189
+ ]);
2190
+
2191
+ /**
2192
+ * @internal
2193
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2194
+ */
2195
+ export namespace GetAllToolsData$ {
2196
+ /** @deprecated use `GetAllToolsData$inboundSchema` instead. */
2197
+ export const inboundSchema = GetAllToolsData$inboundSchema;
2198
+ /** @deprecated use `GetAllToolsData$outboundSchema` instead. */
2199
+ export const outboundSchema = GetAllToolsData$outboundSchema;
2200
+ /** @deprecated use `GetAllToolsData$Outbound` instead. */
2201
+ export type Outbound = GetAllToolsData$Outbound;
2202
+ }
2203
+
2204
+ export function getAllToolsDataToJSON(
2205
+ getAllToolsData: GetAllToolsData,
2206
+ ): string {
2207
+ return JSON.stringify(GetAllToolsData$outboundSchema.parse(getAllToolsData));
2208
+ }
2209
+
2210
+ export function getAllToolsDataFromJSON(
2211
+ jsonString: string,
2212
+ ): SafeParseResult<GetAllToolsData, SDKValidationError> {
2213
+ return safeParse(
2214
+ jsonString,
2215
+ (x) => GetAllToolsData$inboundSchema.parse(JSON.parse(x)),
2216
+ `Failed to parse 'GetAllToolsData' from JSON`,
2217
+ );
2218
+ }
2219
+
2220
+ /** @internal */
2221
+ export const GetAllToolsResponseBody$inboundSchema: z.ZodType<
2222
+ GetAllToolsResponseBody,
2223
+ z.ZodTypeDef,
2224
+ unknown
2225
+ > = z.object({
2226
+ object: GetAllToolsObject$inboundSchema,
2227
+ data: z.array(
2228
+ z.union([
2229
+ z.lazy(() => Data1$inboundSchema),
2230
+ z.lazy(() => Data2$inboundSchema),
2231
+ z.lazy(() => Data3$inboundSchema),
2232
+ z.lazy(() => Data4$inboundSchema),
2233
+ z.lazy(() => Data5$inboundSchema),
2234
+ ]),
2235
+ ),
2236
+ has_more: z.boolean(),
2237
+ }).transform((v) => {
2238
+ return remap$(v, {
2239
+ "has_more": "hasMore",
2240
+ });
2241
+ });
2242
+
2243
+ /** @internal */
2244
+ export type GetAllToolsResponseBody$Outbound = {
2245
+ object: string;
2246
+ data: Array<
2247
+ | Data1$Outbound
2248
+ | Data2$Outbound
2249
+ | Data3$Outbound
2250
+ | Data4$Outbound
2251
+ | Data5$Outbound
2252
+ >;
2253
+ has_more: boolean;
2254
+ };
2255
+
2256
+ /** @internal */
2257
+ export const GetAllToolsResponseBody$outboundSchema: z.ZodType<
2258
+ GetAllToolsResponseBody$Outbound,
2259
+ z.ZodTypeDef,
2260
+ GetAllToolsResponseBody
2261
+ > = z.object({
2262
+ object: GetAllToolsObject$outboundSchema,
2263
+ data: z.array(
2264
+ z.union([
2265
+ z.lazy(() => Data1$outboundSchema),
2266
+ z.lazy(() => Data2$outboundSchema),
2267
+ z.lazy(() => Data3$outboundSchema),
2268
+ z.lazy(() => Data4$outboundSchema),
2269
+ z.lazy(() => Data5$outboundSchema),
2270
+ ]),
2271
+ ),
2272
+ hasMore: z.boolean(),
2273
+ }).transform((v) => {
2274
+ return remap$(v, {
2275
+ hasMore: "has_more",
2276
+ });
2277
+ });
2278
+
2279
+ /**
2280
+ * @internal
2281
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2282
+ */
2283
+ export namespace GetAllToolsResponseBody$ {
2284
+ /** @deprecated use `GetAllToolsResponseBody$inboundSchema` instead. */
2285
+ export const inboundSchema = GetAllToolsResponseBody$inboundSchema;
2286
+ /** @deprecated use `GetAllToolsResponseBody$outboundSchema` instead. */
2287
+ export const outboundSchema = GetAllToolsResponseBody$outboundSchema;
2288
+ /** @deprecated use `GetAllToolsResponseBody$Outbound` instead. */
2289
+ export type Outbound = GetAllToolsResponseBody$Outbound;
2290
+ }
2291
+
2292
+ export function getAllToolsResponseBodyToJSON(
2293
+ getAllToolsResponseBody: GetAllToolsResponseBody,
2294
+ ): string {
2295
+ return JSON.stringify(
2296
+ GetAllToolsResponseBody$outboundSchema.parse(getAllToolsResponseBody),
2297
+ );
2298
+ }
2299
+
2300
+ export function getAllToolsResponseBodyFromJSON(
2301
+ jsonString: string,
2302
+ ): SafeParseResult<GetAllToolsResponseBody, SDKValidationError> {
2303
+ return safeParse(
2304
+ jsonString,
2305
+ (x) => GetAllToolsResponseBody$inboundSchema.parse(JSON.parse(x)),
2306
+ `Failed to parse 'GetAllToolsResponseBody' from JSON`,
2307
+ );
2308
+ }