@orq-ai/node 3.4.0-rc.37 → 3.6.0-rc.7

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 (623) hide show
  1. package/FUNCTIONS.md +4 -2
  2. package/README.md +23 -67
  3. package/bin/mcp-server.js +11157 -22365
  4. package/bin/mcp-server.js.map +50 -119
  5. package/docs/sdks/datasets/README.md +91 -4
  6. package/docs/sdks/deployments/README.md +89 -0
  7. package/docs/sdks/knowledge/README.md +4 -4
  8. package/docs/sdks/models/README.md +79 -0
  9. package/docs/sdks/orq/README.md +1 -75
  10. package/docs/sdks/prompts/README.md +4 -4
  11. package/funcs/{memoryStoresRetrieveMemory.d.ts → datasetsCreateExperiment.d.ts} +4 -4
  12. package/funcs/{memoryStoresCreateMemory.d.ts.map → datasetsCreateExperiment.d.ts.map} +1 -1
  13. package/funcs/{toolsUpdate.js → datasetsCreateExperiment.js} +11 -11
  14. package/funcs/datasetsCreateExperiment.js.map +1 -0
  15. package/funcs/{memoryStoresCreateDocument.d.ts → deploymentsCreateExperiment.d.ts} +4 -4
  16. package/funcs/deploymentsCreateExperiment.d.ts.map +1 -0
  17. package/funcs/{memoryStoresCreateMemory.js → deploymentsCreateExperiment.js} +14 -11
  18. package/funcs/deploymentsCreateExperiment.js.map +1 -0
  19. package/funcs/{memoryStoresUpdate.d.ts → modelsList.d.ts} +4 -4
  20. package/funcs/modelsList.d.ts.map +1 -0
  21. package/funcs/{toolsCreate.js → modelsList.js} +11 -23
  22. package/funcs/modelsList.js.map +1 -0
  23. package/jsr.json +1 -1
  24. package/lib/config.d.ts +3 -3
  25. package/lib/config.js +3 -3
  26. package/lib/config.js.map +1 -1
  27. package/lib/sdks.d.ts +3 -1
  28. package/lib/sdks.d.ts.map +1 -1
  29. package/lib/sdks.js +6 -11
  30. package/lib/sdks.js.map +1 -1
  31. package/mcp-server/mcp-server.js +1 -1
  32. package/mcp-server/mcp-server.js.map +1 -1
  33. package/mcp-server/server.d.ts.map +1 -1
  34. package/mcp-server/server.js +7 -53
  35. package/mcp-server/server.js.map +1 -1
  36. package/mcp-server/tools/datasetsCreateExperiment.d.ts +8 -0
  37. package/mcp-server/tools/datasetsCreateExperiment.d.ts.map +1 -0
  38. package/mcp-server/tools/{memoryStoresUpdateMemory.js → datasetsCreateExperiment.js} +9 -9
  39. package/mcp-server/tools/{memoryStoresCreateMemory.js.map → datasetsCreateExperiment.js.map} +1 -1
  40. package/mcp-server/tools/deploymentsCreateExperiment.d.ts +8 -0
  41. package/mcp-server/tools/deploymentsCreateExperiment.d.ts.map +1 -0
  42. package/mcp-server/tools/{memoryStoresListMemories.js → deploymentsCreateExperiment.js} +9 -9
  43. package/mcp-server/tools/deploymentsCreateExperiment.js.map +1 -0
  44. package/mcp-server/tools/modelsList.d.ts +3 -0
  45. package/mcp-server/tools/modelsList.d.ts.map +1 -0
  46. package/mcp-server/tools/modelsList.js +26 -0
  47. package/mcp-server/tools/modelsList.js.map +1 -0
  48. package/models/components/deployments.d.ts +241 -29
  49. package/models/components/deployments.d.ts.map +1 -1
  50. package/models/components/deployments.js +239 -29
  51. package/models/components/deployments.js.map +1 -1
  52. package/models/operations/bulkcreatedatapoints.d.ts +4 -0
  53. package/models/operations/bulkcreatedatapoints.d.ts.map +1 -1
  54. package/models/operations/bulkcreatedatapoints.js +10 -2
  55. package/models/operations/bulkcreatedatapoints.js.map +1 -1
  56. package/models/operations/createcontact.js +2 -2
  57. package/models/operations/createdataset.js +2 -2
  58. package/models/operations/createdatasetexperiment.d.ts +140 -0
  59. package/models/operations/createdatasetexperiment.d.ts.map +1 -0
  60. package/models/operations/createdatasetexperiment.js +188 -0
  61. package/models/operations/createdatasetexperiment.js.map +1 -0
  62. package/models/operations/createdatasetitem.d.ts +4 -0
  63. package/models/operations/createdatasetitem.d.ts.map +1 -1
  64. package/models/operations/createdatasetitem.js +10 -2
  65. package/models/operations/createdatasetitem.js.map +1 -1
  66. package/models/operations/createdatasource.js +2 -2
  67. package/models/operations/createdeploymentexperiment.d.ts +152 -0
  68. package/models/operations/createdeploymentexperiment.d.ts.map +1 -0
  69. package/models/operations/createdeploymentexperiment.js +189 -0
  70. package/models/operations/createdeploymentexperiment.js.map +1 -0
  71. package/models/operations/createknowledge.d.ts +5 -0
  72. package/models/operations/createknowledge.d.ts.map +1 -1
  73. package/models/operations/createknowledge.js +4 -0
  74. package/models/operations/createknowledge.js.map +1 -1
  75. package/models/operations/createprompt.d.ts +6 -64
  76. package/models/operations/createprompt.d.ts.map +1 -1
  77. package/models/operations/createprompt.js +17 -54
  78. package/models/operations/createprompt.js.map +1 -1
  79. package/models/operations/deploymentcreatemetric.d.ts +240 -28
  80. package/models/operations/deploymentcreatemetric.d.ts.map +1 -1
  81. package/models/operations/deploymentcreatemetric.js +236 -29
  82. package/models/operations/deploymentcreatemetric.js.map +1 -1
  83. package/models/operations/deploymentgetconfig.d.ts +268 -85
  84. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  85. package/models/operations/deploymentgetconfig.js +284 -92
  86. package/models/operations/deploymentgetconfig.js.map +1 -1
  87. package/models/operations/deploymentinvoke.d.ts +34 -4
  88. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  89. package/models/operations/deploymentinvoke.js +30 -4
  90. package/models/operations/deploymentinvoke.js.map +1 -1
  91. package/models/operations/deployments.d.ts +3 -32
  92. package/models/operations/deployments.d.ts.map +1 -1
  93. package/models/operations/deployments.js +9 -27
  94. package/models/operations/deployments.js.map +1 -1
  95. package/models/operations/deploymentstream.d.ts +241 -29
  96. package/models/operations/deploymentstream.d.ts.map +1 -1
  97. package/models/operations/deploymentstream.js +238 -32
  98. package/models/operations/deploymentstream.js.map +1 -1
  99. package/models/operations/fileget.js +2 -2
  100. package/models/operations/filelist.js +2 -2
  101. package/models/operations/fileupload.d.ts +15 -15
  102. package/models/operations/fileupload.d.ts.map +1 -1
  103. package/models/operations/fileupload.js +20 -21
  104. package/models/operations/fileupload.js.map +1 -1
  105. package/models/operations/getallprompts.d.ts +3 -32
  106. package/models/operations/getallprompts.d.ts.map +1 -1
  107. package/models/operations/getallprompts.js +9 -27
  108. package/models/operations/getallprompts.js.map +1 -1
  109. package/models/operations/getoneknowledge.d.ts +5 -0
  110. package/models/operations/getoneknowledge.d.ts.map +1 -1
  111. package/models/operations/getoneknowledge.js +4 -0
  112. package/models/operations/getoneknowledge.js.map +1 -1
  113. package/models/operations/getoneprompt.d.ts +3 -32
  114. package/models/operations/getoneprompt.d.ts.map +1 -1
  115. package/models/operations/getoneprompt.js +9 -27
  116. package/models/operations/getoneprompt.js.map +1 -1
  117. package/models/operations/getpromptversion.d.ts +3 -32
  118. package/models/operations/getpromptversion.d.ts.map +1 -1
  119. package/models/operations/getpromptversion.js +9 -27
  120. package/models/operations/getpromptversion.js.map +1 -1
  121. package/models/operations/index.d.ts +3 -26
  122. package/models/operations/index.d.ts.map +1 -1
  123. package/models/operations/index.js +3 -26
  124. package/models/operations/index.js.map +1 -1
  125. package/models/operations/listdatasetdatapoints.d.ts +2 -0
  126. package/models/operations/listdatasetdatapoints.d.ts.map +1 -1
  127. package/models/operations/listdatasetdatapoints.js +6 -2
  128. package/models/operations/listdatasetdatapoints.js.map +1 -1
  129. package/models/operations/listdatasets.js +2 -2
  130. package/models/operations/listdatasources.js +2 -2
  131. package/models/operations/listknowledgebases.d.ts +5 -0
  132. package/models/operations/listknowledgebases.d.ts.map +1 -1
  133. package/models/operations/listknowledgebases.js +4 -0
  134. package/models/operations/listknowledgebases.js.map +1 -1
  135. package/models/operations/listmodels.d.ts +188 -0
  136. package/models/operations/listmodels.d.ts.map +1 -0
  137. package/models/operations/listmodels.js +193 -0
  138. package/models/operations/listmodels.js.map +1 -0
  139. package/models/operations/listpromptversions.d.ts +3 -32
  140. package/models/operations/listpromptversions.d.ts.map +1 -1
  141. package/models/operations/listpromptversions.js +9 -27
  142. package/models/operations/listpromptversions.js.map +1 -1
  143. package/models/operations/retrievedatapoint.d.ts +2 -0
  144. package/models/operations/retrievedatapoint.d.ts.map +1 -1
  145. package/models/operations/retrievedatapoint.js +6 -2
  146. package/models/operations/retrievedatapoint.js.map +1 -1
  147. package/models/operations/retrievedataset.js +2 -2
  148. package/models/operations/retrievedatasource.js +2 -2
  149. package/models/operations/updatedatapoint.d.ts +4 -0
  150. package/models/operations/updatedatapoint.d.ts.map +1 -1
  151. package/models/operations/updatedatapoint.js +10 -2
  152. package/models/operations/updatedatapoint.js.map +1 -1
  153. package/models/operations/updatedataset.js +2 -2
  154. package/models/operations/updatedatasource.js +2 -2
  155. package/models/operations/updateknowledge.d.ts +5 -0
  156. package/models/operations/updateknowledge.d.ts.map +1 -1
  157. package/models/operations/updateknowledge.js +4 -0
  158. package/models/operations/updateknowledge.js.map +1 -1
  159. package/models/operations/updateprompt.d.ts +6 -64
  160. package/models/operations/updateprompt.d.ts.map +1 -1
  161. package/models/operations/updateprompt.js +17 -53
  162. package/models/operations/updateprompt.js.map +1 -1
  163. package/package.json +1 -1
  164. package/sdk/datasets.d.ts +7 -0
  165. package/sdk/datasets.d.ts.map +1 -1
  166. package/sdk/datasets.js +10 -0
  167. package/sdk/datasets.js.map +1 -1
  168. package/sdk/deployments.d.ts +7 -0
  169. package/sdk/deployments.d.ts.map +1 -1
  170. package/sdk/deployments.js +10 -0
  171. package/sdk/deployments.js.map +1 -1
  172. package/sdk/models.d.ts +12 -0
  173. package/sdk/models.d.ts.map +1 -0
  174. package/sdk/models.js +22 -0
  175. package/sdk/models.js.map +1 -0
  176. package/sdk/sdk.d.ts +4 -15
  177. package/sdk/sdk.d.ts.map +1 -1
  178. package/sdk/sdk.js +3 -19
  179. package/sdk/sdk.js.map +1 -1
  180. package/src/funcs/{toolsUpdate.ts → datasetsCreateExperiment.ts} +15 -14
  181. package/src/funcs/{memoryStoresCreateMemory.ts → deploymentsCreateExperiment.ts} +22 -19
  182. package/src/funcs/{toolsDelete.ts → modelsList.ts} +11 -36
  183. package/src/lib/config.ts +3 -3
  184. package/src/lib/sdks.ts +11 -11
  185. package/src/mcp-server/mcp-server.ts +1 -1
  186. package/src/mcp-server/server.ts +7 -53
  187. package/src/mcp-server/tools/{memoryStoresUpdateMemory.ts → datasetsCreateExperiment.ts} +7 -7
  188. package/src/mcp-server/tools/{memoryStoresUpdateDocument.ts → deploymentsCreateExperiment.ts} +7 -7
  189. package/src/mcp-server/tools/modelsList.ts +30 -0
  190. package/src/models/components/deployments.ts +442 -47
  191. package/src/models/operations/bulkcreatedatapoints.ts +14 -2
  192. package/src/models/operations/createcontact.ts +2 -2
  193. package/src/models/operations/createdataset.ts +2 -2
  194. package/src/models/operations/createdatasetexperiment.ts +307 -0
  195. package/src/models/operations/createdatasetitem.ts +14 -2
  196. package/src/models/operations/createdatasource.ts +2 -2
  197. package/src/models/operations/createdeploymentexperiment.ts +321 -0
  198. package/src/models/operations/createknowledge.ts +9 -0
  199. package/src/models/operations/createprompt.ts +18 -70
  200. package/src/models/operations/deploymentcreatemetric.ts +517 -40
  201. package/src/models/operations/deploymentgetconfig.ts +531 -139
  202. package/src/models/operations/deploymentinvoke.ts +64 -8
  203. package/src/models/operations/deployments.ts +9 -36
  204. package/src/models/operations/deploymentstream.ts +502 -44
  205. package/src/models/operations/fileget.ts +2 -2
  206. package/src/models/operations/filelist.ts +2 -2
  207. package/src/models/operations/fileupload.ts +37 -34
  208. package/src/models/operations/getallprompts.ts +9 -36
  209. package/src/models/operations/getoneknowledge.ts +9 -0
  210. package/src/models/operations/getoneprompt.ts +9 -36
  211. package/src/models/operations/getpromptversion.ts +9 -38
  212. package/src/models/operations/index.ts +3 -26
  213. package/src/models/operations/listdatasetdatapoints.ts +8 -2
  214. package/src/models/operations/listdatasets.ts +2 -2
  215. package/src/models/operations/listdatasources.ts +2 -2
  216. package/src/models/operations/listknowledgebases.ts +9 -0
  217. package/src/models/operations/listmodels.ts +273 -0
  218. package/src/models/operations/listpromptversions.ts +9 -38
  219. package/src/models/operations/retrievedatapoint.ts +8 -2
  220. package/src/models/operations/retrievedataset.ts +2 -2
  221. package/src/models/operations/retrievedatasource.ts +2 -2
  222. package/src/models/operations/updatedatapoint.ts +14 -2
  223. package/src/models/operations/updatedataset.ts +2 -2
  224. package/src/models/operations/updatedatasource.ts +2 -2
  225. package/src/models/operations/updateknowledge.ts +9 -0
  226. package/src/models/operations/updateprompt.ts +18 -74
  227. package/src/sdk/datasets.ts +18 -0
  228. package/src/sdk/deployments.ts +18 -0
  229. package/src/sdk/models.ts +25 -0
  230. package/src/sdk/sdk.ts +5 -34
  231. package/docs/sdks/memorystores/README.md +0 -1211
  232. package/docs/sdks/sessions/README.md +0 -385
  233. package/docs/sdks/tools/README.md +0 -425
  234. package/funcs/memoryStoresCreate.d.ts +0 -14
  235. package/funcs/memoryStoresCreate.d.ts.map +0 -1
  236. package/funcs/memoryStoresCreate.js +0 -115
  237. package/funcs/memoryStoresCreate.js.map +0 -1
  238. package/funcs/memoryStoresCreateDocument.d.ts.map +0 -1
  239. package/funcs/memoryStoresCreateDocument.js +0 -119
  240. package/funcs/memoryStoresCreateDocument.js.map +0 -1
  241. package/funcs/memoryStoresCreateMemory.d.ts +0 -16
  242. package/funcs/memoryStoresCreateMemory.js.map +0 -1
  243. package/funcs/memoryStoresDelete.d.ts +0 -16
  244. package/funcs/memoryStoresDelete.d.ts.map +0 -1
  245. package/funcs/memoryStoresDelete.js +0 -115
  246. package/funcs/memoryStoresDelete.js.map +0 -1
  247. package/funcs/memoryStoresDeleteDocument.d.ts +0 -21
  248. package/funcs/memoryStoresDeleteDocument.d.ts.map +0 -1
  249. package/funcs/memoryStoresDeleteDocument.js +0 -128
  250. package/funcs/memoryStoresDeleteDocument.js.map +0 -1
  251. package/funcs/memoryStoresDeleteMemory.d.ts +0 -21
  252. package/funcs/memoryStoresDeleteMemory.d.ts.map +0 -1
  253. package/funcs/memoryStoresDeleteMemory.js +0 -124
  254. package/funcs/memoryStoresDeleteMemory.js.map +0 -1
  255. package/funcs/memoryStoresList.d.ts +0 -17
  256. package/funcs/memoryStoresList.d.ts.map +0 -1
  257. package/funcs/memoryStoresList.js +0 -121
  258. package/funcs/memoryStoresList.js.map +0 -1
  259. package/funcs/memoryStoresListDocuments.d.ts +0 -16
  260. package/funcs/memoryStoresListDocuments.d.ts.map +0 -1
  261. package/funcs/memoryStoresListDocuments.js +0 -124
  262. package/funcs/memoryStoresListDocuments.js.map +0 -1
  263. package/funcs/memoryStoresListMemories.d.ts +0 -16
  264. package/funcs/memoryStoresListMemories.d.ts.map +0 -1
  265. package/funcs/memoryStoresListMemories.js +0 -120
  266. package/funcs/memoryStoresListMemories.js.map +0 -1
  267. package/funcs/memoryStoresRetrieve.d.ts +0 -17
  268. package/funcs/memoryStoresRetrieve.d.ts.map +0 -1
  269. package/funcs/memoryStoresRetrieve.js +0 -118
  270. package/funcs/memoryStoresRetrieve.js.map +0 -1
  271. package/funcs/memoryStoresRetrieveDocument.d.ts +0 -16
  272. package/funcs/memoryStoresRetrieveDocument.d.ts.map +0 -1
  273. package/funcs/memoryStoresRetrieveDocument.js +0 -122
  274. package/funcs/memoryStoresRetrieveDocument.js.map +0 -1
  275. package/funcs/memoryStoresRetrieveMemory.d.ts.map +0 -1
  276. package/funcs/memoryStoresRetrieveMemory.js +0 -118
  277. package/funcs/memoryStoresRetrieveMemory.js.map +0 -1
  278. package/funcs/memoryStoresUpdate.d.ts.map +0 -1
  279. package/funcs/memoryStoresUpdate.js +0 -115
  280. package/funcs/memoryStoresUpdate.js.map +0 -1
  281. package/funcs/memoryStoresUpdateDocument.d.ts +0 -16
  282. package/funcs/memoryStoresUpdateDocument.d.ts.map +0 -1
  283. package/funcs/memoryStoresUpdateDocument.js +0 -123
  284. package/funcs/memoryStoresUpdateDocument.js.map +0 -1
  285. package/funcs/memoryStoresUpdateMemory.d.ts +0 -16
  286. package/funcs/memoryStoresUpdateMemory.d.ts.map +0 -1
  287. package/funcs/memoryStoresUpdateMemory.js +0 -119
  288. package/funcs/memoryStoresUpdateMemory.js.map +0 -1
  289. package/funcs/postV2TracesSessionsCount.d.ts +0 -13
  290. package/funcs/postV2TracesSessionsCount.d.ts.map +0 -1
  291. package/funcs/postV2TracesSessionsCount.js +0 -112
  292. package/funcs/postV2TracesSessionsCount.js.map +0 -1
  293. package/funcs/sessionsCreate.d.ts +0 -16
  294. package/funcs/sessionsCreate.d.ts.map +0 -1
  295. package/funcs/sessionsCreate.js +0 -114
  296. package/funcs/sessionsCreate.js.map +0 -1
  297. package/funcs/sessionsDelete.d.ts +0 -17
  298. package/funcs/sessionsDelete.d.ts.map +0 -1
  299. package/funcs/sessionsDelete.js +0 -122
  300. package/funcs/sessionsDelete.js.map +0 -1
  301. package/funcs/sessionsGet.d.ts +0 -17
  302. package/funcs/sessionsGet.d.ts.map +0 -1
  303. package/funcs/sessionsGet.js +0 -121
  304. package/funcs/sessionsGet.js.map +0 -1
  305. package/funcs/sessionsList.d.ts +0 -16
  306. package/funcs/sessionsList.d.ts.map +0 -1
  307. package/funcs/sessionsList.js +0 -114
  308. package/funcs/sessionsList.js.map +0 -1
  309. package/funcs/sessionsUpdate.d.ts +0 -17
  310. package/funcs/sessionsUpdate.d.ts.map +0 -1
  311. package/funcs/sessionsUpdate.js +0 -122
  312. package/funcs/sessionsUpdate.js.map +0 -1
  313. package/funcs/toolsCreate.d.ts +0 -16
  314. package/funcs/toolsCreate.d.ts.map +0 -1
  315. package/funcs/toolsCreate.js.map +0 -1
  316. package/funcs/toolsDelete.d.ts +0 -16
  317. package/funcs/toolsDelete.d.ts.map +0 -1
  318. package/funcs/toolsDelete.js +0 -118
  319. package/funcs/toolsDelete.js.map +0 -1
  320. package/funcs/toolsList.d.ts +0 -17
  321. package/funcs/toolsList.d.ts.map +0 -1
  322. package/funcs/toolsList.js +0 -121
  323. package/funcs/toolsList.js.map +0 -1
  324. package/funcs/toolsRetrieve.d.ts +0 -16
  325. package/funcs/toolsRetrieve.d.ts.map +0 -1
  326. package/funcs/toolsRetrieve.js +0 -117
  327. package/funcs/toolsRetrieve.js.map +0 -1
  328. package/funcs/toolsUpdate.d.ts +0 -16
  329. package/funcs/toolsUpdate.d.ts.map +0 -1
  330. package/funcs/toolsUpdate.js.map +0 -1
  331. package/mcp-server/tools/memoryStoresCreate.d.ts +0 -8
  332. package/mcp-server/tools/memoryStoresCreate.d.ts.map +0 -1
  333. package/mcp-server/tools/memoryStoresCreate.js +0 -62
  334. package/mcp-server/tools/memoryStoresCreate.js.map +0 -1
  335. package/mcp-server/tools/memoryStoresCreateDocument.d.ts +0 -8
  336. package/mcp-server/tools/memoryStoresCreateDocument.d.ts.map +0 -1
  337. package/mcp-server/tools/memoryStoresCreateDocument.js +0 -64
  338. package/mcp-server/tools/memoryStoresCreateDocument.js.map +0 -1
  339. package/mcp-server/tools/memoryStoresCreateMemory.d.ts +0 -8
  340. package/mcp-server/tools/memoryStoresCreateMemory.d.ts.map +0 -1
  341. package/mcp-server/tools/memoryStoresCreateMemory.js +0 -64
  342. package/mcp-server/tools/memoryStoresDelete.d.ts +0 -8
  343. package/mcp-server/tools/memoryStoresDelete.d.ts.map +0 -1
  344. package/mcp-server/tools/memoryStoresDelete.js +0 -63
  345. package/mcp-server/tools/memoryStoresDelete.js.map +0 -1
  346. package/mcp-server/tools/memoryStoresDeleteDocument.d.ts +0 -8
  347. package/mcp-server/tools/memoryStoresDeleteDocument.d.ts.map +0 -1
  348. package/mcp-server/tools/memoryStoresDeleteDocument.js +0 -68
  349. package/mcp-server/tools/memoryStoresDeleteDocument.js.map +0 -1
  350. package/mcp-server/tools/memoryStoresDeleteMemory.d.ts +0 -8
  351. package/mcp-server/tools/memoryStoresDeleteMemory.d.ts.map +0 -1
  352. package/mcp-server/tools/memoryStoresDeleteMemory.js +0 -68
  353. package/mcp-server/tools/memoryStoresDeleteMemory.js.map +0 -1
  354. package/mcp-server/tools/memoryStoresList.d.ts +0 -8
  355. package/mcp-server/tools/memoryStoresList.d.ts.map +0 -1
  356. package/mcp-server/tools/memoryStoresList.js +0 -64
  357. package/mcp-server/tools/memoryStoresList.js.map +0 -1
  358. package/mcp-server/tools/memoryStoresListDocuments.d.ts +0 -8
  359. package/mcp-server/tools/memoryStoresListDocuments.d.ts.map +0 -1
  360. package/mcp-server/tools/memoryStoresListDocuments.js +0 -64
  361. package/mcp-server/tools/memoryStoresListDocuments.js.map +0 -1
  362. package/mcp-server/tools/memoryStoresListMemories.d.ts +0 -8
  363. package/mcp-server/tools/memoryStoresListMemories.d.ts.map +0 -1
  364. package/mcp-server/tools/memoryStoresListMemories.js.map +0 -1
  365. package/mcp-server/tools/memoryStoresRetrieve.d.ts +0 -8
  366. package/mcp-server/tools/memoryStoresRetrieve.d.ts.map +0 -1
  367. package/mcp-server/tools/memoryStoresRetrieve.js +0 -64
  368. package/mcp-server/tools/memoryStoresRetrieve.js.map +0 -1
  369. package/mcp-server/tools/memoryStoresRetrieveDocument.d.ts +0 -8
  370. package/mcp-server/tools/memoryStoresRetrieveDocument.d.ts.map +0 -1
  371. package/mcp-server/tools/memoryStoresRetrieveDocument.js +0 -64
  372. package/mcp-server/tools/memoryStoresRetrieveDocument.js.map +0 -1
  373. package/mcp-server/tools/memoryStoresRetrieveMemory.d.ts +0 -8
  374. package/mcp-server/tools/memoryStoresRetrieveMemory.d.ts.map +0 -1
  375. package/mcp-server/tools/memoryStoresRetrieveMemory.js +0 -64
  376. package/mcp-server/tools/memoryStoresRetrieveMemory.js.map +0 -1
  377. package/mcp-server/tools/memoryStoresUpdate.d.ts +0 -8
  378. package/mcp-server/tools/memoryStoresUpdate.d.ts.map +0 -1
  379. package/mcp-server/tools/memoryStoresUpdate.js +0 -64
  380. package/mcp-server/tools/memoryStoresUpdate.js.map +0 -1
  381. package/mcp-server/tools/memoryStoresUpdateDocument.d.ts +0 -8
  382. package/mcp-server/tools/memoryStoresUpdateDocument.d.ts.map +0 -1
  383. package/mcp-server/tools/memoryStoresUpdateDocument.js +0 -64
  384. package/mcp-server/tools/memoryStoresUpdateDocument.js.map +0 -1
  385. package/mcp-server/tools/memoryStoresUpdateMemory.d.ts +0 -8
  386. package/mcp-server/tools/memoryStoresUpdateMemory.d.ts.map +0 -1
  387. package/mcp-server/tools/memoryStoresUpdateMemory.js.map +0 -1
  388. package/mcp-server/tools/postV2TracesSessionsCount.d.ts +0 -8
  389. package/mcp-server/tools/postV2TracesSessionsCount.d.ts.map +0 -1
  390. package/mcp-server/tools/postV2TracesSessionsCount.js +0 -63
  391. package/mcp-server/tools/postV2TracesSessionsCount.js.map +0 -1
  392. package/mcp-server/tools/sessionsCreate.d.ts +0 -8
  393. package/mcp-server/tools/sessionsCreate.d.ts.map +0 -1
  394. package/mcp-server/tools/sessionsCreate.js +0 -64
  395. package/mcp-server/tools/sessionsCreate.js.map +0 -1
  396. package/mcp-server/tools/sessionsDelete.d.ts +0 -8
  397. package/mcp-server/tools/sessionsDelete.d.ts.map +0 -1
  398. package/mcp-server/tools/sessionsDelete.js +0 -63
  399. package/mcp-server/tools/sessionsDelete.js.map +0 -1
  400. package/mcp-server/tools/sessionsGet.d.ts +0 -8
  401. package/mcp-server/tools/sessionsGet.d.ts.map +0 -1
  402. package/mcp-server/tools/sessionsGet.js +0 -64
  403. package/mcp-server/tools/sessionsGet.js.map +0 -1
  404. package/mcp-server/tools/sessionsList.d.ts +0 -8
  405. package/mcp-server/tools/sessionsList.d.ts.map +0 -1
  406. package/mcp-server/tools/sessionsList.js +0 -64
  407. package/mcp-server/tools/sessionsList.js.map +0 -1
  408. package/mcp-server/tools/sessionsUpdate.d.ts +0 -8
  409. package/mcp-server/tools/sessionsUpdate.d.ts.map +0 -1
  410. package/mcp-server/tools/sessionsUpdate.js +0 -64
  411. package/mcp-server/tools/sessionsUpdate.js.map +0 -1
  412. package/mcp-server/tools/toolsCreate.d.ts +0 -8
  413. package/mcp-server/tools/toolsCreate.d.ts.map +0 -1
  414. package/mcp-server/tools/toolsCreate.js +0 -64
  415. package/mcp-server/tools/toolsCreate.js.map +0 -1
  416. package/mcp-server/tools/toolsDelete.d.ts +0 -8
  417. package/mcp-server/tools/toolsDelete.d.ts.map +0 -1
  418. package/mcp-server/tools/toolsDelete.js +0 -63
  419. package/mcp-server/tools/toolsDelete.js.map +0 -1
  420. package/mcp-server/tools/toolsList.d.ts +0 -8
  421. package/mcp-server/tools/toolsList.d.ts.map +0 -1
  422. package/mcp-server/tools/toolsList.js +0 -64
  423. package/mcp-server/tools/toolsList.js.map +0 -1
  424. package/mcp-server/tools/toolsRetrieve.d.ts +0 -8
  425. package/mcp-server/tools/toolsRetrieve.d.ts.map +0 -1
  426. package/mcp-server/tools/toolsRetrieve.js +0 -64
  427. package/mcp-server/tools/toolsRetrieve.js.map +0 -1
  428. package/mcp-server/tools/toolsUpdate.d.ts +0 -8
  429. package/mcp-server/tools/toolsUpdate.d.ts.map +0 -1
  430. package/mcp-server/tools/toolsUpdate.js +0 -64
  431. package/mcp-server/tools/toolsUpdate.js.map +0 -1
  432. package/models/operations/creatememory.d.ts +0 -113
  433. package/models/operations/creatememory.d.ts.map +0 -1
  434. package/models/operations/creatememory.js +0 -180
  435. package/models/operations/creatememory.js.map +0 -1
  436. package/models/operations/creatememorydocument.d.ts +0 -126
  437. package/models/operations/creatememorydocument.d.ts.map +0 -1
  438. package/models/operations/creatememorydocument.js +0 -180
  439. package/models/operations/creatememorydocument.js.map +0 -1
  440. package/models/operations/creatememorystore.d.ts +0 -958
  441. package/models/operations/creatememorystore.d.ts.map +0 -1
  442. package/models/operations/creatememorystore.js +0 -1013
  443. package/models/operations/creatememorystore.js.map +0 -1
  444. package/models/operations/createsession.d.ts +0 -288
  445. package/models/operations/createsession.d.ts.map +0 -1
  446. package/models/operations/createsession.js +0 -353
  447. package/models/operations/createsession.js.map +0 -1
  448. package/models/operations/createtool.d.ts +0 -1407
  449. package/models/operations/createtool.d.ts.map +0 -1
  450. package/models/operations/createtool.js +0 -1204
  451. package/models/operations/createtool.js.map +0 -1
  452. package/models/operations/deletememory.d.ts +0 -37
  453. package/models/operations/deletememory.d.ts.map +0 -1
  454. package/models/operations/deletememory.js +0 -82
  455. package/models/operations/deletememory.js.map +0 -1
  456. package/models/operations/deletememorydocument.d.ts +0 -42
  457. package/models/operations/deletememorydocument.d.ts.map +0 -1
  458. package/models/operations/deletememorydocument.js +0 -86
  459. package/models/operations/deletememorydocument.js.map +0 -1
  460. package/models/operations/deletememorystore.d.ts +0 -32
  461. package/models/operations/deletememorystore.d.ts.map +0 -1
  462. package/models/operations/deletememorystore.js +0 -78
  463. package/models/operations/deletememorystore.js.map +0 -1
  464. package/models/operations/deletesession.d.ts +0 -32
  465. package/models/operations/deletesession.d.ts.map +0 -1
  466. package/models/operations/deletesession.js +0 -78
  467. package/models/operations/deletesession.js.map +0 -1
  468. package/models/operations/deletetool.d.ts +0 -29
  469. package/models/operations/deletetool.d.ts.map +0 -1
  470. package/models/operations/deletetool.js +0 -78
  471. package/models/operations/deletetool.js.map +0 -1
  472. package/models/operations/getallmemories.d.ts +0 -147
  473. package/models/operations/getallmemories.d.ts.map +0 -1
  474. package/models/operations/getallmemories.js +0 -206
  475. package/models/operations/getallmemories.js.map +0 -1
  476. package/models/operations/getallmemorydocuments.d.ts +0 -154
  477. package/models/operations/getallmemorydocuments.d.ts.map +0 -1
  478. package/models/operations/getallmemorydocuments.js +0 -212
  479. package/models/operations/getallmemorydocuments.js.map +0 -1
  480. package/models/operations/getallmemorystores.d.ts +0 -582
  481. package/models/operations/getallmemorystores.d.ts.map +0 -1
  482. package/models/operations/getallmemorystores.js +0 -627
  483. package/models/operations/getallmemorystores.js.map +0 -1
  484. package/models/operations/getalltools.d.ts +0 -825
  485. package/models/operations/getalltools.d.ts.map +0 -1
  486. package/models/operations/getalltools.js +0 -769
  487. package/models/operations/getalltools.js.map +0 -1
  488. package/models/operations/getsession.d.ts +0 -179
  489. package/models/operations/getsession.d.ts.map +0 -1
  490. package/models/operations/getsession.js +0 -237
  491. package/models/operations/getsession.js.map +0 -1
  492. package/models/operations/listsessions.d.ts +0 -4575
  493. package/models/operations/listsessions.d.ts.map +0 -1
  494. package/models/operations/listsessions.js +0 -3838
  495. package/models/operations/listsessions.js.map +0 -1
  496. package/models/operations/postv2tracessessionscount.d.ts +0 -4405
  497. package/models/operations/postv2tracessessionscount.d.ts.map +0 -1
  498. package/models/operations/postv2tracessessionscount.js +0 -3669
  499. package/models/operations/postv2tracessessionscount.js.map +0 -1
  500. package/models/operations/retrievememory.d.ts +0 -85
  501. package/models/operations/retrievememory.d.ts.map +0 -1
  502. package/models/operations/retrievememory.js +0 -143
  503. package/models/operations/retrievememory.js.map +0 -1
  504. package/models/operations/retrievememorydocument.d.ts +0 -92
  505. package/models/operations/retrievememorydocument.d.ts.map +0 -1
  506. package/models/operations/retrievememorydocument.js +0 -149
  507. package/models/operations/retrievememorydocument.js.map +0 -1
  508. package/models/operations/retrievememorystore.d.ts +0 -521
  509. package/models/operations/retrievememorystore.d.ts.map +0 -1
  510. package/models/operations/retrievememorystore.js +0 -564
  511. package/models/operations/retrievememorystore.js.map +0 -1
  512. package/models/operations/retrievetool.d.ts +0 -761
  513. package/models/operations/retrievetool.d.ts.map +0 -1
  514. package/models/operations/retrievetool.js +0 -695
  515. package/models/operations/retrievetool.js.map +0 -1
  516. package/models/operations/updatememory.d.ts +0 -118
  517. package/models/operations/updatememory.d.ts.map +0 -1
  518. package/models/operations/updatememory.js +0 -184
  519. package/models/operations/updatememory.js.map +0 -1
  520. package/models/operations/updatememorydocument.d.ts +0 -131
  521. package/models/operations/updatememorydocument.d.ts.map +0 -1
  522. package/models/operations/updatememorydocument.js +0 -184
  523. package/models/operations/updatememorydocument.js.map +0 -1
  524. package/models/operations/updatememorystore.d.ts +0 -684
  525. package/models/operations/updatememorystore.d.ts.map +0 -1
  526. package/models/operations/updatememorystore.js +0 -712
  527. package/models/operations/updatememorystore.js.map +0 -1
  528. package/models/operations/updatesession.d.ts +0 -325
  529. package/models/operations/updatesession.d.ts.map +0 -1
  530. package/models/operations/updatesession.js +0 -400
  531. package/models/operations/updatesession.js.map +0 -1
  532. package/models/operations/updatetool.d.ts +0 -1422
  533. package/models/operations/updatetool.d.ts.map +0 -1
  534. package/models/operations/updatetool.js +0 -1250
  535. package/models/operations/updatetool.js.map +0 -1
  536. package/sdk/memorystores.d.ts +0 -117
  537. package/sdk/memorystores.d.ts.map +0 -1
  538. package/sdk/memorystores.js +0 -169
  539. package/sdk/memorystores.js.map +0 -1
  540. package/sdk/sessions.d.ts +0 -40
  541. package/sdk/sessions.d.ts.map +0 -1
  542. package/sdk/sessions.js +0 -62
  543. package/sdk/sessions.js.map +0 -1
  544. package/sdk/tools.d.ts +0 -40
  545. package/sdk/tools.d.ts.map +0 -1
  546. package/sdk/tools.js +0 -62
  547. package/sdk/tools.js.map +0 -1
  548. package/src/funcs/memoryStoresCreate.ts +0 -165
  549. package/src/funcs/memoryStoresCreateDocument.ts +0 -169
  550. package/src/funcs/memoryStoresDelete.ts +0 -162
  551. package/src/funcs/memoryStoresDeleteDocument.ts +0 -178
  552. package/src/funcs/memoryStoresDeleteMemory.ts +0 -173
  553. package/src/funcs/memoryStoresList.ts +0 -172
  554. package/src/funcs/memoryStoresListDocuments.ts +0 -175
  555. package/src/funcs/memoryStoresListMemories.ts +0 -170
  556. package/src/funcs/memoryStoresRetrieve.ts +0 -171
  557. package/src/funcs/memoryStoresRetrieveDocument.ts +0 -172
  558. package/src/funcs/memoryStoresRetrieveMemory.ts +0 -167
  559. package/src/funcs/memoryStoresUpdate.ts +0 -162
  560. package/src/funcs/memoryStoresUpdateDocument.ts +0 -173
  561. package/src/funcs/memoryStoresUpdateMemory.ts +0 -168
  562. package/src/funcs/postV2TracesSessionsCount.ts +0 -155
  563. package/src/funcs/sessionsCreate.ts +0 -159
  564. package/src/funcs/sessionsDelete.ts +0 -170
  565. package/src/funcs/sessionsGet.ts +0 -169
  566. package/src/funcs/sessionsList.ts +0 -157
  567. package/src/funcs/sessionsUpdate.ts +0 -170
  568. package/src/funcs/toolsCreate.ts +0 -157
  569. package/src/funcs/toolsList.ts +0 -170
  570. package/src/funcs/toolsRetrieve.ts +0 -160
  571. package/src/mcp-server/tools/memoryStoresCreate.ts +0 -35
  572. package/src/mcp-server/tools/memoryStoresCreateDocument.ts +0 -37
  573. package/src/mcp-server/tools/memoryStoresCreateMemory.ts +0 -37
  574. package/src/mcp-server/tools/memoryStoresDelete.ts +0 -35
  575. package/src/mcp-server/tools/memoryStoresDeleteDocument.ts +0 -40
  576. package/src/mcp-server/tools/memoryStoresDeleteMemory.ts +0 -40
  577. package/src/mcp-server/tools/memoryStoresList.ts +0 -37
  578. package/src/mcp-server/tools/memoryStoresListDocuments.ts +0 -37
  579. package/src/mcp-server/tools/memoryStoresListMemories.ts +0 -37
  580. package/src/mcp-server/tools/memoryStoresRetrieve.ts +0 -37
  581. package/src/mcp-server/tools/memoryStoresRetrieveDocument.ts +0 -37
  582. package/src/mcp-server/tools/memoryStoresRetrieveMemory.ts +0 -37
  583. package/src/mcp-server/tools/memoryStoresUpdate.ts +0 -37
  584. package/src/mcp-server/tools/postV2TracesSessionsCount.ts +0 -36
  585. package/src/mcp-server/tools/sessionsCreate.ts +0 -37
  586. package/src/mcp-server/tools/sessionsDelete.ts +0 -35
  587. package/src/mcp-server/tools/sessionsGet.ts +0 -37
  588. package/src/mcp-server/tools/sessionsList.ts +0 -37
  589. package/src/mcp-server/tools/sessionsUpdate.ts +0 -37
  590. package/src/mcp-server/tools/toolsCreate.ts +0 -37
  591. package/src/mcp-server/tools/toolsDelete.ts +0 -35
  592. package/src/mcp-server/tools/toolsList.ts +0 -37
  593. package/src/mcp-server/tools/toolsRetrieve.ts +0 -37
  594. package/src/mcp-server/tools/toolsUpdate.ts +0 -37
  595. package/src/models/operations/creatememory.ts +0 -265
  596. package/src/models/operations/creatememorydocument.ts +0 -284
  597. package/src/models/operations/creatememorystore.ts +0 -1619
  598. package/src/models/operations/createsession.ts +0 -632
  599. package/src/models/operations/createtool.ts +0 -2297
  600. package/src/models/operations/deletememory.ts +0 -87
  601. package/src/models/operations/deletememorydocument.ts +0 -98
  602. package/src/models/operations/deletememorystore.ts +0 -78
  603. package/src/models/operations/deletesession.ts +0 -78
  604. package/src/models/operations/deletetool.ts +0 -75
  605. package/src/models/operations/getallmemories.ts +0 -315
  606. package/src/models/operations/getallmemorydocuments.ts +0 -335
  607. package/src/models/operations/getallmemorystores.ts +0 -1061
  608. package/src/models/operations/getalltools.ts +0 -1382
  609. package/src/models/operations/getsession.ts +0 -400
  610. package/src/models/operations/listsessions.ts +0 -6732
  611. package/src/models/operations/postv2tracessessionscount.ts +0 -7043
  612. package/src/models/operations/retrievememory.ts +0 -198
  613. package/src/models/operations/retrievememorydocument.ts +0 -217
  614. package/src/models/operations/retrievememorystore.ts +0 -944
  615. package/src/models/operations/retrievetool.ts +0 -1350
  616. package/src/models/operations/updatememory.ts +0 -274
  617. package/src/models/operations/updatememorydocument.ts +0 -293
  618. package/src/models/operations/updatememorystore.ts +0 -1148
  619. package/src/models/operations/updatesession.ts +0 -731
  620. package/src/models/operations/updatetool.ts +0 -2464
  621. package/src/sdk/memorystores.ts +0 -286
  622. package/src/sdk/sessions.ts +0 -99
  623. package/src/sdk/tools.ts +0 -99
@@ -1,2464 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
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
- /**
13
- * 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.
14
- */
15
- export const UpdateToolRequestBodyToolsRequestStatus = {
16
- Live: "live",
17
- Draft: "draft",
18
- Pending: "pending",
19
- Published: "published",
20
- } as const;
21
- /**
22
- * 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.
23
- */
24
- export type UpdateToolRequestBodyToolsRequestStatus = ClosedEnum<
25
- typeof UpdateToolRequestBodyToolsRequestStatus
26
- >;
27
-
28
- export const UpdateToolRequestBodyToolsRequestType = {
29
- OrqHttp: "orq_http",
30
- } as const;
31
- export type UpdateToolRequestBodyToolsRequestType = ClosedEnum<
32
- typeof UpdateToolRequestBodyToolsRequestType
33
- >;
34
-
35
- /**
36
- * The HTTP method to use.
37
- */
38
- export const RequestBodyMethod = {
39
- Get: "GET",
40
- Post: "POST",
41
- Put: "PUT",
42
- Delete: "DELETE",
43
- } as const;
44
- /**
45
- * The HTTP method to use.
46
- */
47
- export type RequestBodyMethod = ClosedEnum<typeof RequestBodyMethod>;
48
-
49
- /**
50
- * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
51
- */
52
- export type RequestBodyBlueprint = {
53
- /**
54
- * The URL to send the request to.
55
- */
56
- url: string;
57
- /**
58
- * The HTTP method to use.
59
- */
60
- method: RequestBodyMethod;
61
- /**
62
- * The headers to send with the request.
63
- */
64
- headers?: { [k: string]: string } | undefined;
65
- /**
66
- * The body to send with the request.
67
- */
68
- body?: { [k: string]: any } | undefined;
69
- };
70
-
71
- /**
72
- * The type of the argument.
73
- */
74
- export const UpdateToolRequestBodyToolsRequest3Type = {
75
- String: "string",
76
- Number: "number",
77
- Boolean: "boolean",
78
- } as const;
79
- /**
80
- * The type of the argument.
81
- */
82
- export type UpdateToolRequestBodyToolsRequest3Type = ClosedEnum<
83
- typeof UpdateToolRequestBodyToolsRequest3Type
84
- >;
85
-
86
- /**
87
- * The default value of the argument.
88
- */
89
- export type RequestBodyDefaultValue = string | number | boolean;
90
-
91
- export type RequestBodyArguments = {
92
- /**
93
- * The type of the argument.
94
- */
95
- type: UpdateToolRequestBodyToolsRequest3Type;
96
- /**
97
- * A description of the argument.
98
- */
99
- description: string;
100
- /**
101
- * 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.
102
- */
103
- sendToModel?: boolean | undefined;
104
- /**
105
- * The default value of the argument.
106
- */
107
- defaultValue?: string | number | boolean | undefined;
108
- };
109
-
110
- export type RequestBodyHttp = {
111
- /**
112
- * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
113
- */
114
- blueprint: RequestBodyBlueprint;
115
- /**
116
- * The arguments to send with the request. The keys will be used to replace the placeholders in the `blueprint` field.
117
- */
118
- arguments?: { [k: string]: RequestBodyArguments } | undefined;
119
- };
120
-
121
- export type UpdateToolRequestBody3 = {
122
- /**
123
- * The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
124
- */
125
- path?: string | undefined;
126
- /**
127
- * 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.
128
- */
129
- description?: string | undefined;
130
- /**
131
- * 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.
132
- */
133
- status: UpdateToolRequestBodyToolsRequestStatus;
134
- versionHash: string;
135
- type: UpdateToolRequestBodyToolsRequestType;
136
- http?: RequestBodyHttp | undefined;
137
- };
138
-
139
- /**
140
- * 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.
141
- */
142
- export const UpdateToolRequestBodyToolsStatus = {
143
- Live: "live",
144
- Draft: "draft",
145
- Pending: "pending",
146
- Published: "published",
147
- } as const;
148
- /**
149
- * 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.
150
- */
151
- export type UpdateToolRequestBodyToolsStatus = ClosedEnum<
152
- typeof UpdateToolRequestBodyToolsStatus
153
- >;
154
-
155
- export const UpdateToolRequestBodyToolsType = {
156
- JsonSchema: "json_schema",
157
- } as const;
158
- export type UpdateToolRequestBodyToolsType = ClosedEnum<
159
- typeof UpdateToolRequestBodyToolsType
160
- >;
161
-
162
- export type UpdateToolRequestBodyJsonSchema = {
163
- /**
164
- * 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.
165
- */
166
- name: string;
167
- /**
168
- * A description of what the response format is for. This will be shown to the user.
169
- */
170
- description?: string | undefined;
171
- /**
172
- * 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.
173
- */
174
- schema: { [k: string]: any };
175
- /**
176
- * 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.
177
- */
178
- strict?: boolean | null | undefined;
179
- };
180
-
181
- export type UpdateToolRequestBody2 = {
182
- /**
183
- * The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
184
- */
185
- path?: string | undefined;
186
- /**
187
- * 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.
188
- */
189
- description?: string | undefined;
190
- /**
191
- * 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.
192
- */
193
- status: UpdateToolRequestBodyToolsStatus;
194
- versionHash: string;
195
- type: UpdateToolRequestBodyToolsType;
196
- jsonSchema?: UpdateToolRequestBodyJsonSchema | undefined;
197
- };
198
-
199
- /**
200
- * 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.
201
- */
202
- export const UpdateToolRequestBodyStatus = {
203
- Live: "live",
204
- Draft: "draft",
205
- Pending: "pending",
206
- Published: "published",
207
- } as const;
208
- /**
209
- * 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.
210
- */
211
- export type UpdateToolRequestBodyStatus = ClosedEnum<
212
- typeof UpdateToolRequestBodyStatus
213
- >;
214
-
215
- export const UpdateToolRequestBodyType = {
216
- Function: "function",
217
- } as const;
218
- export type UpdateToolRequestBodyType = ClosedEnum<
219
- typeof UpdateToolRequestBodyType
220
- >;
221
-
222
- export type UpdateToolRequestBodyFunction = {
223
- /**
224
- * 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.
225
- */
226
- name: string;
227
- /**
228
- * A description of what the function does, used by the model to choose when and how to call the function.
229
- */
230
- description?: string | undefined;
231
- /**
232
- * 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.
233
- */
234
- strict?: boolean | undefined;
235
- /**
236
- * 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.
237
- */
238
- parameters?: { [k: string]: any } | undefined;
239
- };
240
-
241
- export type UpdateToolRequestBody1 = {
242
- /**
243
- * The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
244
- */
245
- path?: string | undefined;
246
- /**
247
- * 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.
248
- */
249
- description?: string | undefined;
250
- /**
251
- * 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.
252
- */
253
- status: UpdateToolRequestBodyStatus;
254
- versionHash: string;
255
- type: UpdateToolRequestBodyType;
256
- function?: UpdateToolRequestBodyFunction | undefined;
257
- };
258
-
259
- /**
260
- * The tool to update
261
- */
262
- export type UpdateToolRequestBody =
263
- | UpdateToolRequestBody1
264
- | UpdateToolRequestBody2
265
- | UpdateToolRequestBody3;
266
-
267
- export type UpdateToolRequest = {
268
- toolKey: string;
269
- /**
270
- * The tool to update
271
- */
272
- requestBody?:
273
- | UpdateToolRequestBody1
274
- | UpdateToolRequestBody2
275
- | UpdateToolRequestBody3
276
- | undefined;
277
- };
278
-
279
- /**
280
- * 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.
281
- */
282
- export const UpdateToolResponseBodyToolsResponseStatus = {
283
- Live: "live",
284
- Draft: "draft",
285
- Pending: "pending",
286
- Published: "published",
287
- } as const;
288
- /**
289
- * 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.
290
- */
291
- export type UpdateToolResponseBodyToolsResponseStatus = ClosedEnum<
292
- typeof UpdateToolResponseBodyToolsResponseStatus
293
- >;
294
-
295
- export const UpdateToolResponseBodyToolsResponseType = {
296
- OrqHttp: "orq_http",
297
- } as const;
298
- export type UpdateToolResponseBodyToolsResponseType = ClosedEnum<
299
- typeof UpdateToolResponseBodyToolsResponseType
300
- >;
301
-
302
- /**
303
- * The HTTP method to use.
304
- */
305
- export const UpdateToolResponseBodyMethod = {
306
- Get: "GET",
307
- Post: "POST",
308
- Put: "PUT",
309
- Delete: "DELETE",
310
- } as const;
311
- /**
312
- * The HTTP method to use.
313
- */
314
- export type UpdateToolResponseBodyMethod = ClosedEnum<
315
- typeof UpdateToolResponseBodyMethod
316
- >;
317
-
318
- /**
319
- * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
320
- */
321
- export type UpdateToolResponseBodyBlueprint = {
322
- /**
323
- * The URL to send the request to.
324
- */
325
- url: string;
326
- /**
327
- * The HTTP method to use.
328
- */
329
- method: UpdateToolResponseBodyMethod;
330
- /**
331
- * The headers to send with the request.
332
- */
333
- headers?: { [k: string]: string } | undefined;
334
- /**
335
- * The body to send with the request.
336
- */
337
- body?: { [k: string]: any } | undefined;
338
- };
339
-
340
- /**
341
- * The type of the argument.
342
- */
343
- export const UpdateToolResponseBodyToolsResponse200Type = {
344
- String: "string",
345
- Number: "number",
346
- Boolean: "boolean",
347
- } as const;
348
- /**
349
- * The type of the argument.
350
- */
351
- export type UpdateToolResponseBodyToolsResponse200Type = ClosedEnum<
352
- typeof UpdateToolResponseBodyToolsResponse200Type
353
- >;
354
-
355
- /**
356
- * The default value of the argument.
357
- */
358
- export type UpdateToolResponseBodyDefaultValue = string | number | boolean;
359
-
360
- export type UpdateToolResponseBodyArguments = {
361
- /**
362
- * The type of the argument.
363
- */
364
- type: UpdateToolResponseBodyToolsResponse200Type;
365
- /**
366
- * A description of the argument.
367
- */
368
- description: string;
369
- /**
370
- * 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.
371
- */
372
- sendToModel?: boolean | undefined;
373
- /**
374
- * The default value of the argument.
375
- */
376
- defaultValue?: string | number | boolean | undefined;
377
- };
378
-
379
- export type UpdateToolResponseBodyHttp = {
380
- /**
381
- * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
382
- */
383
- blueprint: UpdateToolResponseBodyBlueprint;
384
- /**
385
- * The arguments to send with the request. The keys will be used to replace the placeholders in the `blueprint` field.
386
- */
387
- arguments?: { [k: string]: UpdateToolResponseBodyArguments } | undefined;
388
- };
389
-
390
- export type UpdateToolResponseBody3 = {
391
- id?: string | undefined;
392
- /**
393
- * The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
394
- */
395
- path: string;
396
- /**
397
- * Unique key of the tool as it will be displayed in the UI
398
- */
399
- key: string;
400
- /**
401
- * 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.
402
- */
403
- description: string;
404
- /**
405
- * The id of the user that created the tool
406
- */
407
- createdById?: string | undefined;
408
- /**
409
- * The id of the user that last updated the tool
410
- */
411
- updatedById?: string | undefined;
412
- projectId: string;
413
- workspaceId: string;
414
- created: string;
415
- updated: string;
416
- /**
417
- * 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.
418
- */
419
- status: UpdateToolResponseBodyToolsResponseStatus;
420
- versionHash: string;
421
- type: UpdateToolResponseBodyToolsResponseType;
422
- http: UpdateToolResponseBodyHttp;
423
- };
424
-
425
- /**
426
- * 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.
427
- */
428
- export const UpdateToolResponseBodyToolsStatus = {
429
- Live: "live",
430
- Draft: "draft",
431
- Pending: "pending",
432
- Published: "published",
433
- } as const;
434
- /**
435
- * 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.
436
- */
437
- export type UpdateToolResponseBodyToolsStatus = ClosedEnum<
438
- typeof UpdateToolResponseBodyToolsStatus
439
- >;
440
-
441
- export const UpdateToolResponseBodyToolsType = {
442
- JsonSchema: "json_schema",
443
- } as const;
444
- export type UpdateToolResponseBodyToolsType = ClosedEnum<
445
- typeof UpdateToolResponseBodyToolsType
446
- >;
447
-
448
- export type UpdateToolResponseBodyJsonSchema = {
449
- /**
450
- * 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.
451
- */
452
- name: string;
453
- /**
454
- * A description of what the response format is for. This will be shown to the user.
455
- */
456
- description?: string | undefined;
457
- /**
458
- * 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.
459
- */
460
- schema: { [k: string]: any };
461
- /**
462
- * 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.
463
- */
464
- strict?: boolean | null | undefined;
465
- };
466
-
467
- export type UpdateToolResponseBody2 = {
468
- id?: string | undefined;
469
- /**
470
- * The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
471
- */
472
- path: string;
473
- /**
474
- * Unique key of the tool as it will be displayed in the UI
475
- */
476
- key: string;
477
- /**
478
- * 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.
479
- */
480
- description: string;
481
- /**
482
- * The id of the user that created the tool
483
- */
484
- createdById?: string | undefined;
485
- /**
486
- * The id of the user that last updated the tool
487
- */
488
- updatedById?: string | undefined;
489
- projectId: string;
490
- workspaceId: string;
491
- created: string;
492
- updated: string;
493
- /**
494
- * 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.
495
- */
496
- status: UpdateToolResponseBodyToolsStatus;
497
- versionHash: string;
498
- type: UpdateToolResponseBodyToolsType;
499
- jsonSchema: UpdateToolResponseBodyJsonSchema;
500
- };
501
-
502
- /**
503
- * 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.
504
- */
505
- export const UpdateToolResponseBodyStatus = {
506
- Live: "live",
507
- Draft: "draft",
508
- Pending: "pending",
509
- Published: "published",
510
- } as const;
511
- /**
512
- * 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.
513
- */
514
- export type UpdateToolResponseBodyStatus = ClosedEnum<
515
- typeof UpdateToolResponseBodyStatus
516
- >;
517
-
518
- export const UpdateToolResponseBodyType = {
519
- Function: "function",
520
- } as const;
521
- export type UpdateToolResponseBodyType = ClosedEnum<
522
- typeof UpdateToolResponseBodyType
523
- >;
524
-
525
- export type UpdateToolResponseBodyFunction = {
526
- /**
527
- * 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.
528
- */
529
- name: string;
530
- /**
531
- * A description of what the function does, used by the model to choose when and how to call the function.
532
- */
533
- description?: string | undefined;
534
- /**
535
- * 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.
536
- */
537
- strict?: boolean | undefined;
538
- /**
539
- * 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.
540
- */
541
- parameters?: { [k: string]: any } | undefined;
542
- };
543
-
544
- export type UpdateToolResponseBody1 = {
545
- id?: string | undefined;
546
- /**
547
- * The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
548
- */
549
- path: string;
550
- /**
551
- * Unique key of the tool as it will be displayed in the UI
552
- */
553
- key: string;
554
- /**
555
- * 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.
556
- */
557
- description: string;
558
- /**
559
- * The id of the user that created the tool
560
- */
561
- createdById?: string | undefined;
562
- /**
563
- * The id of the user that last updated the tool
564
- */
565
- updatedById?: string | undefined;
566
- projectId: string;
567
- workspaceId: string;
568
- created: string;
569
- updated: string;
570
- /**
571
- * 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.
572
- */
573
- status: UpdateToolResponseBodyStatus;
574
- versionHash: string;
575
- type: UpdateToolResponseBodyType;
576
- function: UpdateToolResponseBodyFunction;
577
- };
578
-
579
- /**
580
- * Successfully created the tool.
581
- */
582
- export type UpdateToolResponseBody =
583
- | UpdateToolResponseBody1
584
- | UpdateToolResponseBody2
585
- | UpdateToolResponseBody3;
586
-
587
- /** @internal */
588
- export const UpdateToolRequestBodyToolsRequestStatus$inboundSchema:
589
- z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequestStatus> = z
590
- .nativeEnum(UpdateToolRequestBodyToolsRequestStatus);
591
-
592
- /** @internal */
593
- export const UpdateToolRequestBodyToolsRequestStatus$outboundSchema:
594
- z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequestStatus> =
595
- UpdateToolRequestBodyToolsRequestStatus$inboundSchema;
596
-
597
- /**
598
- * @internal
599
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
600
- */
601
- export namespace UpdateToolRequestBodyToolsRequestStatus$ {
602
- /** @deprecated use `UpdateToolRequestBodyToolsRequestStatus$inboundSchema` instead. */
603
- export const inboundSchema =
604
- UpdateToolRequestBodyToolsRequestStatus$inboundSchema;
605
- /** @deprecated use `UpdateToolRequestBodyToolsRequestStatus$outboundSchema` instead. */
606
- export const outboundSchema =
607
- UpdateToolRequestBodyToolsRequestStatus$outboundSchema;
608
- }
609
-
610
- /** @internal */
611
- export const UpdateToolRequestBodyToolsRequestType$inboundSchema:
612
- z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequestType> = z.nativeEnum(
613
- UpdateToolRequestBodyToolsRequestType,
614
- );
615
-
616
- /** @internal */
617
- export const UpdateToolRequestBodyToolsRequestType$outboundSchema:
618
- z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequestType> =
619
- UpdateToolRequestBodyToolsRequestType$inboundSchema;
620
-
621
- /**
622
- * @internal
623
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
624
- */
625
- export namespace UpdateToolRequestBodyToolsRequestType$ {
626
- /** @deprecated use `UpdateToolRequestBodyToolsRequestType$inboundSchema` instead. */
627
- export const inboundSchema =
628
- UpdateToolRequestBodyToolsRequestType$inboundSchema;
629
- /** @deprecated use `UpdateToolRequestBodyToolsRequestType$outboundSchema` instead. */
630
- export const outboundSchema =
631
- UpdateToolRequestBodyToolsRequestType$outboundSchema;
632
- }
633
-
634
- /** @internal */
635
- export const RequestBodyMethod$inboundSchema: z.ZodNativeEnum<
636
- typeof RequestBodyMethod
637
- > = z.nativeEnum(RequestBodyMethod);
638
-
639
- /** @internal */
640
- export const RequestBodyMethod$outboundSchema: z.ZodNativeEnum<
641
- typeof RequestBodyMethod
642
- > = RequestBodyMethod$inboundSchema;
643
-
644
- /**
645
- * @internal
646
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
647
- */
648
- export namespace RequestBodyMethod$ {
649
- /** @deprecated use `RequestBodyMethod$inboundSchema` instead. */
650
- export const inboundSchema = RequestBodyMethod$inboundSchema;
651
- /** @deprecated use `RequestBodyMethod$outboundSchema` instead. */
652
- export const outboundSchema = RequestBodyMethod$outboundSchema;
653
- }
654
-
655
- /** @internal */
656
- export const RequestBodyBlueprint$inboundSchema: z.ZodType<
657
- RequestBodyBlueprint,
658
- z.ZodTypeDef,
659
- unknown
660
- > = z.object({
661
- url: z.string(),
662
- method: RequestBodyMethod$inboundSchema,
663
- headers: z.record(z.string()).optional(),
664
- body: z.record(z.any()).optional(),
665
- });
666
-
667
- /** @internal */
668
- export type RequestBodyBlueprint$Outbound = {
669
- url: string;
670
- method: string;
671
- headers?: { [k: string]: string } | undefined;
672
- body?: { [k: string]: any } | undefined;
673
- };
674
-
675
- /** @internal */
676
- export const RequestBodyBlueprint$outboundSchema: z.ZodType<
677
- RequestBodyBlueprint$Outbound,
678
- z.ZodTypeDef,
679
- RequestBodyBlueprint
680
- > = z.object({
681
- url: z.string(),
682
- method: RequestBodyMethod$outboundSchema,
683
- headers: z.record(z.string()).optional(),
684
- body: z.record(z.any()).optional(),
685
- });
686
-
687
- /**
688
- * @internal
689
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
690
- */
691
- export namespace RequestBodyBlueprint$ {
692
- /** @deprecated use `RequestBodyBlueprint$inboundSchema` instead. */
693
- export const inboundSchema = RequestBodyBlueprint$inboundSchema;
694
- /** @deprecated use `RequestBodyBlueprint$outboundSchema` instead. */
695
- export const outboundSchema = RequestBodyBlueprint$outboundSchema;
696
- /** @deprecated use `RequestBodyBlueprint$Outbound` instead. */
697
- export type Outbound = RequestBodyBlueprint$Outbound;
698
- }
699
-
700
- export function requestBodyBlueprintToJSON(
701
- requestBodyBlueprint: RequestBodyBlueprint,
702
- ): string {
703
- return JSON.stringify(
704
- RequestBodyBlueprint$outboundSchema.parse(requestBodyBlueprint),
705
- );
706
- }
707
-
708
- export function requestBodyBlueprintFromJSON(
709
- jsonString: string,
710
- ): SafeParseResult<RequestBodyBlueprint, SDKValidationError> {
711
- return safeParse(
712
- jsonString,
713
- (x) => RequestBodyBlueprint$inboundSchema.parse(JSON.parse(x)),
714
- `Failed to parse 'RequestBodyBlueprint' from JSON`,
715
- );
716
- }
717
-
718
- /** @internal */
719
- export const UpdateToolRequestBodyToolsRequest3Type$inboundSchema:
720
- z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequest3Type> = z.nativeEnum(
721
- UpdateToolRequestBodyToolsRequest3Type,
722
- );
723
-
724
- /** @internal */
725
- export const UpdateToolRequestBodyToolsRequest3Type$outboundSchema:
726
- z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequest3Type> =
727
- UpdateToolRequestBodyToolsRequest3Type$inboundSchema;
728
-
729
- /**
730
- * @internal
731
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
732
- */
733
- export namespace UpdateToolRequestBodyToolsRequest3Type$ {
734
- /** @deprecated use `UpdateToolRequestBodyToolsRequest3Type$inboundSchema` instead. */
735
- export const inboundSchema =
736
- UpdateToolRequestBodyToolsRequest3Type$inboundSchema;
737
- /** @deprecated use `UpdateToolRequestBodyToolsRequest3Type$outboundSchema` instead. */
738
- export const outboundSchema =
739
- UpdateToolRequestBodyToolsRequest3Type$outboundSchema;
740
- }
741
-
742
- /** @internal */
743
- export const RequestBodyDefaultValue$inboundSchema: z.ZodType<
744
- RequestBodyDefaultValue,
745
- z.ZodTypeDef,
746
- unknown
747
- > = z.union([z.string(), z.number(), z.boolean()]);
748
-
749
- /** @internal */
750
- export type RequestBodyDefaultValue$Outbound = string | number | boolean;
751
-
752
- /** @internal */
753
- export const RequestBodyDefaultValue$outboundSchema: z.ZodType<
754
- RequestBodyDefaultValue$Outbound,
755
- z.ZodTypeDef,
756
- RequestBodyDefaultValue
757
- > = z.union([z.string(), z.number(), z.boolean()]);
758
-
759
- /**
760
- * @internal
761
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
762
- */
763
- export namespace RequestBodyDefaultValue$ {
764
- /** @deprecated use `RequestBodyDefaultValue$inboundSchema` instead. */
765
- export const inboundSchema = RequestBodyDefaultValue$inboundSchema;
766
- /** @deprecated use `RequestBodyDefaultValue$outboundSchema` instead. */
767
- export const outboundSchema = RequestBodyDefaultValue$outboundSchema;
768
- /** @deprecated use `RequestBodyDefaultValue$Outbound` instead. */
769
- export type Outbound = RequestBodyDefaultValue$Outbound;
770
- }
771
-
772
- export function requestBodyDefaultValueToJSON(
773
- requestBodyDefaultValue: RequestBodyDefaultValue,
774
- ): string {
775
- return JSON.stringify(
776
- RequestBodyDefaultValue$outboundSchema.parse(requestBodyDefaultValue),
777
- );
778
- }
779
-
780
- export function requestBodyDefaultValueFromJSON(
781
- jsonString: string,
782
- ): SafeParseResult<RequestBodyDefaultValue, SDKValidationError> {
783
- return safeParse(
784
- jsonString,
785
- (x) => RequestBodyDefaultValue$inboundSchema.parse(JSON.parse(x)),
786
- `Failed to parse 'RequestBodyDefaultValue' from JSON`,
787
- );
788
- }
789
-
790
- /** @internal */
791
- export const RequestBodyArguments$inboundSchema: z.ZodType<
792
- RequestBodyArguments,
793
- z.ZodTypeDef,
794
- unknown
795
- > = z.object({
796
- type: UpdateToolRequestBodyToolsRequest3Type$inboundSchema,
797
- description: z.string(),
798
- send_to_model: z.boolean().default(true),
799
- default_value: z.union([z.string(), z.number(), z.boolean()]).optional(),
800
- }).transform((v) => {
801
- return remap$(v, {
802
- "send_to_model": "sendToModel",
803
- "default_value": "defaultValue",
804
- });
805
- });
806
-
807
- /** @internal */
808
- export type RequestBodyArguments$Outbound = {
809
- type: string;
810
- description: string;
811
- send_to_model: boolean;
812
- default_value?: string | number | boolean | undefined;
813
- };
814
-
815
- /** @internal */
816
- export const RequestBodyArguments$outboundSchema: z.ZodType<
817
- RequestBodyArguments$Outbound,
818
- z.ZodTypeDef,
819
- RequestBodyArguments
820
- > = z.object({
821
- type: UpdateToolRequestBodyToolsRequest3Type$outboundSchema,
822
- description: z.string(),
823
- sendToModel: z.boolean().default(true),
824
- defaultValue: z.union([z.string(), z.number(), z.boolean()]).optional(),
825
- }).transform((v) => {
826
- return remap$(v, {
827
- sendToModel: "send_to_model",
828
- defaultValue: "default_value",
829
- });
830
- });
831
-
832
- /**
833
- * @internal
834
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
835
- */
836
- export namespace RequestBodyArguments$ {
837
- /** @deprecated use `RequestBodyArguments$inboundSchema` instead. */
838
- export const inboundSchema = RequestBodyArguments$inboundSchema;
839
- /** @deprecated use `RequestBodyArguments$outboundSchema` instead. */
840
- export const outboundSchema = RequestBodyArguments$outboundSchema;
841
- /** @deprecated use `RequestBodyArguments$Outbound` instead. */
842
- export type Outbound = RequestBodyArguments$Outbound;
843
- }
844
-
845
- export function requestBodyArgumentsToJSON(
846
- requestBodyArguments: RequestBodyArguments,
847
- ): string {
848
- return JSON.stringify(
849
- RequestBodyArguments$outboundSchema.parse(requestBodyArguments),
850
- );
851
- }
852
-
853
- export function requestBodyArgumentsFromJSON(
854
- jsonString: string,
855
- ): SafeParseResult<RequestBodyArguments, SDKValidationError> {
856
- return safeParse(
857
- jsonString,
858
- (x) => RequestBodyArguments$inboundSchema.parse(JSON.parse(x)),
859
- `Failed to parse 'RequestBodyArguments' from JSON`,
860
- );
861
- }
862
-
863
- /** @internal */
864
- export const RequestBodyHttp$inboundSchema: z.ZodType<
865
- RequestBodyHttp,
866
- z.ZodTypeDef,
867
- unknown
868
- > = z.object({
869
- blueprint: z.lazy(() => RequestBodyBlueprint$inboundSchema),
870
- arguments: z.record(z.lazy(() => RequestBodyArguments$inboundSchema))
871
- .optional(),
872
- });
873
-
874
- /** @internal */
875
- export type RequestBodyHttp$Outbound = {
876
- blueprint: RequestBodyBlueprint$Outbound;
877
- arguments?: { [k: string]: RequestBodyArguments$Outbound } | undefined;
878
- };
879
-
880
- /** @internal */
881
- export const RequestBodyHttp$outboundSchema: z.ZodType<
882
- RequestBodyHttp$Outbound,
883
- z.ZodTypeDef,
884
- RequestBodyHttp
885
- > = z.object({
886
- blueprint: z.lazy(() => RequestBodyBlueprint$outboundSchema),
887
- arguments: z.record(z.lazy(() => RequestBodyArguments$outboundSchema))
888
- .optional(),
889
- });
890
-
891
- /**
892
- * @internal
893
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
894
- */
895
- export namespace RequestBodyHttp$ {
896
- /** @deprecated use `RequestBodyHttp$inboundSchema` instead. */
897
- export const inboundSchema = RequestBodyHttp$inboundSchema;
898
- /** @deprecated use `RequestBodyHttp$outboundSchema` instead. */
899
- export const outboundSchema = RequestBodyHttp$outboundSchema;
900
- /** @deprecated use `RequestBodyHttp$Outbound` instead. */
901
- export type Outbound = RequestBodyHttp$Outbound;
902
- }
903
-
904
- export function requestBodyHttpToJSON(
905
- requestBodyHttp: RequestBodyHttp,
906
- ): string {
907
- return JSON.stringify(RequestBodyHttp$outboundSchema.parse(requestBodyHttp));
908
- }
909
-
910
- export function requestBodyHttpFromJSON(
911
- jsonString: string,
912
- ): SafeParseResult<RequestBodyHttp, SDKValidationError> {
913
- return safeParse(
914
- jsonString,
915
- (x) => RequestBodyHttp$inboundSchema.parse(JSON.parse(x)),
916
- `Failed to parse 'RequestBodyHttp' from JSON`,
917
- );
918
- }
919
-
920
- /** @internal */
921
- export const UpdateToolRequestBody3$inboundSchema: z.ZodType<
922
- UpdateToolRequestBody3,
923
- z.ZodTypeDef,
924
- unknown
925
- > = z.object({
926
- path: z.string().optional(),
927
- description: z.string().optional(),
928
- status: UpdateToolRequestBodyToolsRequestStatus$inboundSchema,
929
- version_hash: z.string(),
930
- type: UpdateToolRequestBodyToolsRequestType$inboundSchema,
931
- http: z.lazy(() => RequestBodyHttp$inboundSchema).optional(),
932
- }).transform((v) => {
933
- return remap$(v, {
934
- "version_hash": "versionHash",
935
- });
936
- });
937
-
938
- /** @internal */
939
- export type UpdateToolRequestBody3$Outbound = {
940
- path?: string | undefined;
941
- description?: string | undefined;
942
- status: string;
943
- version_hash: string;
944
- type: string;
945
- http?: RequestBodyHttp$Outbound | undefined;
946
- };
947
-
948
- /** @internal */
949
- export const UpdateToolRequestBody3$outboundSchema: z.ZodType<
950
- UpdateToolRequestBody3$Outbound,
951
- z.ZodTypeDef,
952
- UpdateToolRequestBody3
953
- > = z.object({
954
- path: z.string().optional(),
955
- description: z.string().optional(),
956
- status: UpdateToolRequestBodyToolsRequestStatus$outboundSchema,
957
- versionHash: z.string(),
958
- type: UpdateToolRequestBodyToolsRequestType$outboundSchema,
959
- http: z.lazy(() => RequestBodyHttp$outboundSchema).optional(),
960
- }).transform((v) => {
961
- return remap$(v, {
962
- versionHash: "version_hash",
963
- });
964
- });
965
-
966
- /**
967
- * @internal
968
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
969
- */
970
- export namespace UpdateToolRequestBody3$ {
971
- /** @deprecated use `UpdateToolRequestBody3$inboundSchema` instead. */
972
- export const inboundSchema = UpdateToolRequestBody3$inboundSchema;
973
- /** @deprecated use `UpdateToolRequestBody3$outboundSchema` instead. */
974
- export const outboundSchema = UpdateToolRequestBody3$outboundSchema;
975
- /** @deprecated use `UpdateToolRequestBody3$Outbound` instead. */
976
- export type Outbound = UpdateToolRequestBody3$Outbound;
977
- }
978
-
979
- export function updateToolRequestBody3ToJSON(
980
- updateToolRequestBody3: UpdateToolRequestBody3,
981
- ): string {
982
- return JSON.stringify(
983
- UpdateToolRequestBody3$outboundSchema.parse(updateToolRequestBody3),
984
- );
985
- }
986
-
987
- export function updateToolRequestBody3FromJSON(
988
- jsonString: string,
989
- ): SafeParseResult<UpdateToolRequestBody3, SDKValidationError> {
990
- return safeParse(
991
- jsonString,
992
- (x) => UpdateToolRequestBody3$inboundSchema.parse(JSON.parse(x)),
993
- `Failed to parse 'UpdateToolRequestBody3' from JSON`,
994
- );
995
- }
996
-
997
- /** @internal */
998
- export const UpdateToolRequestBodyToolsStatus$inboundSchema: z.ZodNativeEnum<
999
- typeof UpdateToolRequestBodyToolsStatus
1000
- > = z.nativeEnum(UpdateToolRequestBodyToolsStatus);
1001
-
1002
- /** @internal */
1003
- export const UpdateToolRequestBodyToolsStatus$outboundSchema: z.ZodNativeEnum<
1004
- typeof UpdateToolRequestBodyToolsStatus
1005
- > = UpdateToolRequestBodyToolsStatus$inboundSchema;
1006
-
1007
- /**
1008
- * @internal
1009
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1010
- */
1011
- export namespace UpdateToolRequestBodyToolsStatus$ {
1012
- /** @deprecated use `UpdateToolRequestBodyToolsStatus$inboundSchema` instead. */
1013
- export const inboundSchema = UpdateToolRequestBodyToolsStatus$inboundSchema;
1014
- /** @deprecated use `UpdateToolRequestBodyToolsStatus$outboundSchema` instead. */
1015
- export const outboundSchema = UpdateToolRequestBodyToolsStatus$outboundSchema;
1016
- }
1017
-
1018
- /** @internal */
1019
- export const UpdateToolRequestBodyToolsType$inboundSchema: z.ZodNativeEnum<
1020
- typeof UpdateToolRequestBodyToolsType
1021
- > = z.nativeEnum(UpdateToolRequestBodyToolsType);
1022
-
1023
- /** @internal */
1024
- export const UpdateToolRequestBodyToolsType$outboundSchema: z.ZodNativeEnum<
1025
- typeof UpdateToolRequestBodyToolsType
1026
- > = UpdateToolRequestBodyToolsType$inboundSchema;
1027
-
1028
- /**
1029
- * @internal
1030
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1031
- */
1032
- export namespace UpdateToolRequestBodyToolsType$ {
1033
- /** @deprecated use `UpdateToolRequestBodyToolsType$inboundSchema` instead. */
1034
- export const inboundSchema = UpdateToolRequestBodyToolsType$inboundSchema;
1035
- /** @deprecated use `UpdateToolRequestBodyToolsType$outboundSchema` instead. */
1036
- export const outboundSchema = UpdateToolRequestBodyToolsType$outboundSchema;
1037
- }
1038
-
1039
- /** @internal */
1040
- export const UpdateToolRequestBodyJsonSchema$inboundSchema: z.ZodType<
1041
- UpdateToolRequestBodyJsonSchema,
1042
- z.ZodTypeDef,
1043
- unknown
1044
- > = z.object({
1045
- name: z.string(),
1046
- description: z.string().optional(),
1047
- schema: z.record(z.any()),
1048
- strict: z.nullable(z.boolean().default(false)),
1049
- });
1050
-
1051
- /** @internal */
1052
- export type UpdateToolRequestBodyJsonSchema$Outbound = {
1053
- name: string;
1054
- description?: string | undefined;
1055
- schema: { [k: string]: any };
1056
- strict: boolean | null;
1057
- };
1058
-
1059
- /** @internal */
1060
- export const UpdateToolRequestBodyJsonSchema$outboundSchema: z.ZodType<
1061
- UpdateToolRequestBodyJsonSchema$Outbound,
1062
- z.ZodTypeDef,
1063
- UpdateToolRequestBodyJsonSchema
1064
- > = z.object({
1065
- name: z.string(),
1066
- description: z.string().optional(),
1067
- schema: z.record(z.any()),
1068
- strict: z.nullable(z.boolean().default(false)),
1069
- });
1070
-
1071
- /**
1072
- * @internal
1073
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1074
- */
1075
- export namespace UpdateToolRequestBodyJsonSchema$ {
1076
- /** @deprecated use `UpdateToolRequestBodyJsonSchema$inboundSchema` instead. */
1077
- export const inboundSchema = UpdateToolRequestBodyJsonSchema$inboundSchema;
1078
- /** @deprecated use `UpdateToolRequestBodyJsonSchema$outboundSchema` instead. */
1079
- export const outboundSchema = UpdateToolRequestBodyJsonSchema$outboundSchema;
1080
- /** @deprecated use `UpdateToolRequestBodyJsonSchema$Outbound` instead. */
1081
- export type Outbound = UpdateToolRequestBodyJsonSchema$Outbound;
1082
- }
1083
-
1084
- export function updateToolRequestBodyJsonSchemaToJSON(
1085
- updateToolRequestBodyJsonSchema: UpdateToolRequestBodyJsonSchema,
1086
- ): string {
1087
- return JSON.stringify(
1088
- UpdateToolRequestBodyJsonSchema$outboundSchema.parse(
1089
- updateToolRequestBodyJsonSchema,
1090
- ),
1091
- );
1092
- }
1093
-
1094
- export function updateToolRequestBodyJsonSchemaFromJSON(
1095
- jsonString: string,
1096
- ): SafeParseResult<UpdateToolRequestBodyJsonSchema, SDKValidationError> {
1097
- return safeParse(
1098
- jsonString,
1099
- (x) => UpdateToolRequestBodyJsonSchema$inboundSchema.parse(JSON.parse(x)),
1100
- `Failed to parse 'UpdateToolRequestBodyJsonSchema' from JSON`,
1101
- );
1102
- }
1103
-
1104
- /** @internal */
1105
- export const UpdateToolRequestBody2$inboundSchema: z.ZodType<
1106
- UpdateToolRequestBody2,
1107
- z.ZodTypeDef,
1108
- unknown
1109
- > = z.object({
1110
- path: z.string().optional(),
1111
- description: z.string().optional(),
1112
- status: UpdateToolRequestBodyToolsStatus$inboundSchema,
1113
- version_hash: z.string(),
1114
- type: UpdateToolRequestBodyToolsType$inboundSchema,
1115
- json_schema: z.lazy(() => UpdateToolRequestBodyJsonSchema$inboundSchema)
1116
- .optional(),
1117
- }).transform((v) => {
1118
- return remap$(v, {
1119
- "version_hash": "versionHash",
1120
- "json_schema": "jsonSchema",
1121
- });
1122
- });
1123
-
1124
- /** @internal */
1125
- export type UpdateToolRequestBody2$Outbound = {
1126
- path?: string | undefined;
1127
- description?: string | undefined;
1128
- status: string;
1129
- version_hash: string;
1130
- type: string;
1131
- json_schema?: UpdateToolRequestBodyJsonSchema$Outbound | undefined;
1132
- };
1133
-
1134
- /** @internal */
1135
- export const UpdateToolRequestBody2$outboundSchema: z.ZodType<
1136
- UpdateToolRequestBody2$Outbound,
1137
- z.ZodTypeDef,
1138
- UpdateToolRequestBody2
1139
- > = z.object({
1140
- path: z.string().optional(),
1141
- description: z.string().optional(),
1142
- status: UpdateToolRequestBodyToolsStatus$outboundSchema,
1143
- versionHash: z.string(),
1144
- type: UpdateToolRequestBodyToolsType$outboundSchema,
1145
- jsonSchema: z.lazy(() => UpdateToolRequestBodyJsonSchema$outboundSchema)
1146
- .optional(),
1147
- }).transform((v) => {
1148
- return remap$(v, {
1149
- versionHash: "version_hash",
1150
- jsonSchema: "json_schema",
1151
- });
1152
- });
1153
-
1154
- /**
1155
- * @internal
1156
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1157
- */
1158
- export namespace UpdateToolRequestBody2$ {
1159
- /** @deprecated use `UpdateToolRequestBody2$inboundSchema` instead. */
1160
- export const inboundSchema = UpdateToolRequestBody2$inboundSchema;
1161
- /** @deprecated use `UpdateToolRequestBody2$outboundSchema` instead. */
1162
- export const outboundSchema = UpdateToolRequestBody2$outboundSchema;
1163
- /** @deprecated use `UpdateToolRequestBody2$Outbound` instead. */
1164
- export type Outbound = UpdateToolRequestBody2$Outbound;
1165
- }
1166
-
1167
- export function updateToolRequestBody2ToJSON(
1168
- updateToolRequestBody2: UpdateToolRequestBody2,
1169
- ): string {
1170
- return JSON.stringify(
1171
- UpdateToolRequestBody2$outboundSchema.parse(updateToolRequestBody2),
1172
- );
1173
- }
1174
-
1175
- export function updateToolRequestBody2FromJSON(
1176
- jsonString: string,
1177
- ): SafeParseResult<UpdateToolRequestBody2, SDKValidationError> {
1178
- return safeParse(
1179
- jsonString,
1180
- (x) => UpdateToolRequestBody2$inboundSchema.parse(JSON.parse(x)),
1181
- `Failed to parse 'UpdateToolRequestBody2' from JSON`,
1182
- );
1183
- }
1184
-
1185
- /** @internal */
1186
- export const UpdateToolRequestBodyStatus$inboundSchema: z.ZodNativeEnum<
1187
- typeof UpdateToolRequestBodyStatus
1188
- > = z.nativeEnum(UpdateToolRequestBodyStatus);
1189
-
1190
- /** @internal */
1191
- export const UpdateToolRequestBodyStatus$outboundSchema: z.ZodNativeEnum<
1192
- typeof UpdateToolRequestBodyStatus
1193
- > = UpdateToolRequestBodyStatus$inboundSchema;
1194
-
1195
- /**
1196
- * @internal
1197
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1198
- */
1199
- export namespace UpdateToolRequestBodyStatus$ {
1200
- /** @deprecated use `UpdateToolRequestBodyStatus$inboundSchema` instead. */
1201
- export const inboundSchema = UpdateToolRequestBodyStatus$inboundSchema;
1202
- /** @deprecated use `UpdateToolRequestBodyStatus$outboundSchema` instead. */
1203
- export const outboundSchema = UpdateToolRequestBodyStatus$outboundSchema;
1204
- }
1205
-
1206
- /** @internal */
1207
- export const UpdateToolRequestBodyType$inboundSchema: z.ZodNativeEnum<
1208
- typeof UpdateToolRequestBodyType
1209
- > = z.nativeEnum(UpdateToolRequestBodyType);
1210
-
1211
- /** @internal */
1212
- export const UpdateToolRequestBodyType$outboundSchema: z.ZodNativeEnum<
1213
- typeof UpdateToolRequestBodyType
1214
- > = UpdateToolRequestBodyType$inboundSchema;
1215
-
1216
- /**
1217
- * @internal
1218
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1219
- */
1220
- export namespace UpdateToolRequestBodyType$ {
1221
- /** @deprecated use `UpdateToolRequestBodyType$inboundSchema` instead. */
1222
- export const inboundSchema = UpdateToolRequestBodyType$inboundSchema;
1223
- /** @deprecated use `UpdateToolRequestBodyType$outboundSchema` instead. */
1224
- export const outboundSchema = UpdateToolRequestBodyType$outboundSchema;
1225
- }
1226
-
1227
- /** @internal */
1228
- export const UpdateToolRequestBodyFunction$inboundSchema: z.ZodType<
1229
- UpdateToolRequestBodyFunction,
1230
- z.ZodTypeDef,
1231
- unknown
1232
- > = z.object({
1233
- name: z.string(),
1234
- description: z.string().optional(),
1235
- strict: z.boolean().optional(),
1236
- parameters: z.record(z.any()).optional(),
1237
- });
1238
-
1239
- /** @internal */
1240
- export type UpdateToolRequestBodyFunction$Outbound = {
1241
- name: string;
1242
- description?: string | undefined;
1243
- strict?: boolean | undefined;
1244
- parameters?: { [k: string]: any } | undefined;
1245
- };
1246
-
1247
- /** @internal */
1248
- export const UpdateToolRequestBodyFunction$outboundSchema: z.ZodType<
1249
- UpdateToolRequestBodyFunction$Outbound,
1250
- z.ZodTypeDef,
1251
- UpdateToolRequestBodyFunction
1252
- > = z.object({
1253
- name: z.string(),
1254
- description: z.string().optional(),
1255
- strict: z.boolean().optional(),
1256
- parameters: z.record(z.any()).optional(),
1257
- });
1258
-
1259
- /**
1260
- * @internal
1261
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1262
- */
1263
- export namespace UpdateToolRequestBodyFunction$ {
1264
- /** @deprecated use `UpdateToolRequestBodyFunction$inboundSchema` instead. */
1265
- export const inboundSchema = UpdateToolRequestBodyFunction$inboundSchema;
1266
- /** @deprecated use `UpdateToolRequestBodyFunction$outboundSchema` instead. */
1267
- export const outboundSchema = UpdateToolRequestBodyFunction$outboundSchema;
1268
- /** @deprecated use `UpdateToolRequestBodyFunction$Outbound` instead. */
1269
- export type Outbound = UpdateToolRequestBodyFunction$Outbound;
1270
- }
1271
-
1272
- export function updateToolRequestBodyFunctionToJSON(
1273
- updateToolRequestBodyFunction: UpdateToolRequestBodyFunction,
1274
- ): string {
1275
- return JSON.stringify(
1276
- UpdateToolRequestBodyFunction$outboundSchema.parse(
1277
- updateToolRequestBodyFunction,
1278
- ),
1279
- );
1280
- }
1281
-
1282
- export function updateToolRequestBodyFunctionFromJSON(
1283
- jsonString: string,
1284
- ): SafeParseResult<UpdateToolRequestBodyFunction, SDKValidationError> {
1285
- return safeParse(
1286
- jsonString,
1287
- (x) => UpdateToolRequestBodyFunction$inboundSchema.parse(JSON.parse(x)),
1288
- `Failed to parse 'UpdateToolRequestBodyFunction' from JSON`,
1289
- );
1290
- }
1291
-
1292
- /** @internal */
1293
- export const UpdateToolRequestBody1$inboundSchema: z.ZodType<
1294
- UpdateToolRequestBody1,
1295
- z.ZodTypeDef,
1296
- unknown
1297
- > = z.object({
1298
- path: z.string().optional(),
1299
- description: z.string().optional(),
1300
- status: UpdateToolRequestBodyStatus$inboundSchema,
1301
- version_hash: z.string(),
1302
- type: UpdateToolRequestBodyType$inboundSchema,
1303
- function: z.lazy(() => UpdateToolRequestBodyFunction$inboundSchema)
1304
- .optional(),
1305
- }).transform((v) => {
1306
- return remap$(v, {
1307
- "version_hash": "versionHash",
1308
- });
1309
- });
1310
-
1311
- /** @internal */
1312
- export type UpdateToolRequestBody1$Outbound = {
1313
- path?: string | undefined;
1314
- description?: string | undefined;
1315
- status: string;
1316
- version_hash: string;
1317
- type: string;
1318
- function?: UpdateToolRequestBodyFunction$Outbound | undefined;
1319
- };
1320
-
1321
- /** @internal */
1322
- export const UpdateToolRequestBody1$outboundSchema: z.ZodType<
1323
- UpdateToolRequestBody1$Outbound,
1324
- z.ZodTypeDef,
1325
- UpdateToolRequestBody1
1326
- > = z.object({
1327
- path: z.string().optional(),
1328
- description: z.string().optional(),
1329
- status: UpdateToolRequestBodyStatus$outboundSchema,
1330
- versionHash: z.string(),
1331
- type: UpdateToolRequestBodyType$outboundSchema,
1332
- function: z.lazy(() => UpdateToolRequestBodyFunction$outboundSchema)
1333
- .optional(),
1334
- }).transform((v) => {
1335
- return remap$(v, {
1336
- versionHash: "version_hash",
1337
- });
1338
- });
1339
-
1340
- /**
1341
- * @internal
1342
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1343
- */
1344
- export namespace UpdateToolRequestBody1$ {
1345
- /** @deprecated use `UpdateToolRequestBody1$inboundSchema` instead. */
1346
- export const inboundSchema = UpdateToolRequestBody1$inboundSchema;
1347
- /** @deprecated use `UpdateToolRequestBody1$outboundSchema` instead. */
1348
- export const outboundSchema = UpdateToolRequestBody1$outboundSchema;
1349
- /** @deprecated use `UpdateToolRequestBody1$Outbound` instead. */
1350
- export type Outbound = UpdateToolRequestBody1$Outbound;
1351
- }
1352
-
1353
- export function updateToolRequestBody1ToJSON(
1354
- updateToolRequestBody1: UpdateToolRequestBody1,
1355
- ): string {
1356
- return JSON.stringify(
1357
- UpdateToolRequestBody1$outboundSchema.parse(updateToolRequestBody1),
1358
- );
1359
- }
1360
-
1361
- export function updateToolRequestBody1FromJSON(
1362
- jsonString: string,
1363
- ): SafeParseResult<UpdateToolRequestBody1, SDKValidationError> {
1364
- return safeParse(
1365
- jsonString,
1366
- (x) => UpdateToolRequestBody1$inboundSchema.parse(JSON.parse(x)),
1367
- `Failed to parse 'UpdateToolRequestBody1' from JSON`,
1368
- );
1369
- }
1370
-
1371
- /** @internal */
1372
- export const UpdateToolRequestBody$inboundSchema: z.ZodType<
1373
- UpdateToolRequestBody,
1374
- z.ZodTypeDef,
1375
- unknown
1376
- > = z.union([
1377
- z.lazy(() => UpdateToolRequestBody1$inboundSchema),
1378
- z.lazy(() => UpdateToolRequestBody2$inboundSchema),
1379
- z.lazy(() => UpdateToolRequestBody3$inboundSchema),
1380
- ]);
1381
-
1382
- /** @internal */
1383
- export type UpdateToolRequestBody$Outbound =
1384
- | UpdateToolRequestBody1$Outbound
1385
- | UpdateToolRequestBody2$Outbound
1386
- | UpdateToolRequestBody3$Outbound;
1387
-
1388
- /** @internal */
1389
- export const UpdateToolRequestBody$outboundSchema: z.ZodType<
1390
- UpdateToolRequestBody$Outbound,
1391
- z.ZodTypeDef,
1392
- UpdateToolRequestBody
1393
- > = z.union([
1394
- z.lazy(() => UpdateToolRequestBody1$outboundSchema),
1395
- z.lazy(() => UpdateToolRequestBody2$outboundSchema),
1396
- z.lazy(() => UpdateToolRequestBody3$outboundSchema),
1397
- ]);
1398
-
1399
- /**
1400
- * @internal
1401
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1402
- */
1403
- export namespace UpdateToolRequestBody$ {
1404
- /** @deprecated use `UpdateToolRequestBody$inboundSchema` instead. */
1405
- export const inboundSchema = UpdateToolRequestBody$inboundSchema;
1406
- /** @deprecated use `UpdateToolRequestBody$outboundSchema` instead. */
1407
- export const outboundSchema = UpdateToolRequestBody$outboundSchema;
1408
- /** @deprecated use `UpdateToolRequestBody$Outbound` instead. */
1409
- export type Outbound = UpdateToolRequestBody$Outbound;
1410
- }
1411
-
1412
- export function updateToolRequestBodyToJSON(
1413
- updateToolRequestBody: UpdateToolRequestBody,
1414
- ): string {
1415
- return JSON.stringify(
1416
- UpdateToolRequestBody$outboundSchema.parse(updateToolRequestBody),
1417
- );
1418
- }
1419
-
1420
- export function updateToolRequestBodyFromJSON(
1421
- jsonString: string,
1422
- ): SafeParseResult<UpdateToolRequestBody, SDKValidationError> {
1423
- return safeParse(
1424
- jsonString,
1425
- (x) => UpdateToolRequestBody$inboundSchema.parse(JSON.parse(x)),
1426
- `Failed to parse 'UpdateToolRequestBody' from JSON`,
1427
- );
1428
- }
1429
-
1430
- /** @internal */
1431
- export const UpdateToolRequest$inboundSchema: z.ZodType<
1432
- UpdateToolRequest,
1433
- z.ZodTypeDef,
1434
- unknown
1435
- > = z.object({
1436
- tool_key: z.string(),
1437
- RequestBody: z.union([
1438
- z.lazy(() => UpdateToolRequestBody1$inboundSchema),
1439
- z.lazy(() => UpdateToolRequestBody2$inboundSchema),
1440
- z.lazy(() => UpdateToolRequestBody3$inboundSchema),
1441
- ]).optional(),
1442
- }).transform((v) => {
1443
- return remap$(v, {
1444
- "tool_key": "toolKey",
1445
- "RequestBody": "requestBody",
1446
- });
1447
- });
1448
-
1449
- /** @internal */
1450
- export type UpdateToolRequest$Outbound = {
1451
- tool_key: string;
1452
- RequestBody?:
1453
- | UpdateToolRequestBody1$Outbound
1454
- | UpdateToolRequestBody2$Outbound
1455
- | UpdateToolRequestBody3$Outbound
1456
- | undefined;
1457
- };
1458
-
1459
- /** @internal */
1460
- export const UpdateToolRequest$outboundSchema: z.ZodType<
1461
- UpdateToolRequest$Outbound,
1462
- z.ZodTypeDef,
1463
- UpdateToolRequest
1464
- > = z.object({
1465
- toolKey: z.string(),
1466
- requestBody: z.union([
1467
- z.lazy(() => UpdateToolRequestBody1$outboundSchema),
1468
- z.lazy(() => UpdateToolRequestBody2$outboundSchema),
1469
- z.lazy(() => UpdateToolRequestBody3$outboundSchema),
1470
- ]).optional(),
1471
- }).transform((v) => {
1472
- return remap$(v, {
1473
- toolKey: "tool_key",
1474
- requestBody: "RequestBody",
1475
- });
1476
- });
1477
-
1478
- /**
1479
- * @internal
1480
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1481
- */
1482
- export namespace UpdateToolRequest$ {
1483
- /** @deprecated use `UpdateToolRequest$inboundSchema` instead. */
1484
- export const inboundSchema = UpdateToolRequest$inboundSchema;
1485
- /** @deprecated use `UpdateToolRequest$outboundSchema` instead. */
1486
- export const outboundSchema = UpdateToolRequest$outboundSchema;
1487
- /** @deprecated use `UpdateToolRequest$Outbound` instead. */
1488
- export type Outbound = UpdateToolRequest$Outbound;
1489
- }
1490
-
1491
- export function updateToolRequestToJSON(
1492
- updateToolRequest: UpdateToolRequest,
1493
- ): string {
1494
- return JSON.stringify(
1495
- UpdateToolRequest$outboundSchema.parse(updateToolRequest),
1496
- );
1497
- }
1498
-
1499
- export function updateToolRequestFromJSON(
1500
- jsonString: string,
1501
- ): SafeParseResult<UpdateToolRequest, SDKValidationError> {
1502
- return safeParse(
1503
- jsonString,
1504
- (x) => UpdateToolRequest$inboundSchema.parse(JSON.parse(x)),
1505
- `Failed to parse 'UpdateToolRequest' from JSON`,
1506
- );
1507
- }
1508
-
1509
- /** @internal */
1510
- export const UpdateToolResponseBodyToolsResponseStatus$inboundSchema:
1511
- z.ZodNativeEnum<typeof UpdateToolResponseBodyToolsResponseStatus> = z
1512
- .nativeEnum(UpdateToolResponseBodyToolsResponseStatus);
1513
-
1514
- /** @internal */
1515
- export const UpdateToolResponseBodyToolsResponseStatus$outboundSchema:
1516
- z.ZodNativeEnum<typeof UpdateToolResponseBodyToolsResponseStatus> =
1517
- UpdateToolResponseBodyToolsResponseStatus$inboundSchema;
1518
-
1519
- /**
1520
- * @internal
1521
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1522
- */
1523
- export namespace UpdateToolResponseBodyToolsResponseStatus$ {
1524
- /** @deprecated use `UpdateToolResponseBodyToolsResponseStatus$inboundSchema` instead. */
1525
- export const inboundSchema =
1526
- UpdateToolResponseBodyToolsResponseStatus$inboundSchema;
1527
- /** @deprecated use `UpdateToolResponseBodyToolsResponseStatus$outboundSchema` instead. */
1528
- export const outboundSchema =
1529
- UpdateToolResponseBodyToolsResponseStatus$outboundSchema;
1530
- }
1531
-
1532
- /** @internal */
1533
- export const UpdateToolResponseBodyToolsResponseType$inboundSchema:
1534
- z.ZodNativeEnum<typeof UpdateToolResponseBodyToolsResponseType> = z
1535
- .nativeEnum(UpdateToolResponseBodyToolsResponseType);
1536
-
1537
- /** @internal */
1538
- export const UpdateToolResponseBodyToolsResponseType$outboundSchema:
1539
- z.ZodNativeEnum<typeof UpdateToolResponseBodyToolsResponseType> =
1540
- UpdateToolResponseBodyToolsResponseType$inboundSchema;
1541
-
1542
- /**
1543
- * @internal
1544
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1545
- */
1546
- export namespace UpdateToolResponseBodyToolsResponseType$ {
1547
- /** @deprecated use `UpdateToolResponseBodyToolsResponseType$inboundSchema` instead. */
1548
- export const inboundSchema =
1549
- UpdateToolResponseBodyToolsResponseType$inboundSchema;
1550
- /** @deprecated use `UpdateToolResponseBodyToolsResponseType$outboundSchema` instead. */
1551
- export const outboundSchema =
1552
- UpdateToolResponseBodyToolsResponseType$outboundSchema;
1553
- }
1554
-
1555
- /** @internal */
1556
- export const UpdateToolResponseBodyMethod$inboundSchema: z.ZodNativeEnum<
1557
- typeof UpdateToolResponseBodyMethod
1558
- > = z.nativeEnum(UpdateToolResponseBodyMethod);
1559
-
1560
- /** @internal */
1561
- export const UpdateToolResponseBodyMethod$outboundSchema: z.ZodNativeEnum<
1562
- typeof UpdateToolResponseBodyMethod
1563
- > = UpdateToolResponseBodyMethod$inboundSchema;
1564
-
1565
- /**
1566
- * @internal
1567
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1568
- */
1569
- export namespace UpdateToolResponseBodyMethod$ {
1570
- /** @deprecated use `UpdateToolResponseBodyMethod$inboundSchema` instead. */
1571
- export const inboundSchema = UpdateToolResponseBodyMethod$inboundSchema;
1572
- /** @deprecated use `UpdateToolResponseBodyMethod$outboundSchema` instead. */
1573
- export const outboundSchema = UpdateToolResponseBodyMethod$outboundSchema;
1574
- }
1575
-
1576
- /** @internal */
1577
- export const UpdateToolResponseBodyBlueprint$inboundSchema: z.ZodType<
1578
- UpdateToolResponseBodyBlueprint,
1579
- z.ZodTypeDef,
1580
- unknown
1581
- > = z.object({
1582
- url: z.string(),
1583
- method: UpdateToolResponseBodyMethod$inboundSchema,
1584
- headers: z.record(z.string()).optional(),
1585
- body: z.record(z.any()).optional(),
1586
- });
1587
-
1588
- /** @internal */
1589
- export type UpdateToolResponseBodyBlueprint$Outbound = {
1590
- url: string;
1591
- method: string;
1592
- headers?: { [k: string]: string } | undefined;
1593
- body?: { [k: string]: any } | undefined;
1594
- };
1595
-
1596
- /** @internal */
1597
- export const UpdateToolResponseBodyBlueprint$outboundSchema: z.ZodType<
1598
- UpdateToolResponseBodyBlueprint$Outbound,
1599
- z.ZodTypeDef,
1600
- UpdateToolResponseBodyBlueprint
1601
- > = z.object({
1602
- url: z.string(),
1603
- method: UpdateToolResponseBodyMethod$outboundSchema,
1604
- headers: z.record(z.string()).optional(),
1605
- body: z.record(z.any()).optional(),
1606
- });
1607
-
1608
- /**
1609
- * @internal
1610
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1611
- */
1612
- export namespace UpdateToolResponseBodyBlueprint$ {
1613
- /** @deprecated use `UpdateToolResponseBodyBlueprint$inboundSchema` instead. */
1614
- export const inboundSchema = UpdateToolResponseBodyBlueprint$inboundSchema;
1615
- /** @deprecated use `UpdateToolResponseBodyBlueprint$outboundSchema` instead. */
1616
- export const outboundSchema = UpdateToolResponseBodyBlueprint$outboundSchema;
1617
- /** @deprecated use `UpdateToolResponseBodyBlueprint$Outbound` instead. */
1618
- export type Outbound = UpdateToolResponseBodyBlueprint$Outbound;
1619
- }
1620
-
1621
- export function updateToolResponseBodyBlueprintToJSON(
1622
- updateToolResponseBodyBlueprint: UpdateToolResponseBodyBlueprint,
1623
- ): string {
1624
- return JSON.stringify(
1625
- UpdateToolResponseBodyBlueprint$outboundSchema.parse(
1626
- updateToolResponseBodyBlueprint,
1627
- ),
1628
- );
1629
- }
1630
-
1631
- export function updateToolResponseBodyBlueprintFromJSON(
1632
- jsonString: string,
1633
- ): SafeParseResult<UpdateToolResponseBodyBlueprint, SDKValidationError> {
1634
- return safeParse(
1635
- jsonString,
1636
- (x) => UpdateToolResponseBodyBlueprint$inboundSchema.parse(JSON.parse(x)),
1637
- `Failed to parse 'UpdateToolResponseBodyBlueprint' from JSON`,
1638
- );
1639
- }
1640
-
1641
- /** @internal */
1642
- export const UpdateToolResponseBodyToolsResponse200Type$inboundSchema:
1643
- z.ZodNativeEnum<typeof UpdateToolResponseBodyToolsResponse200Type> = z
1644
- .nativeEnum(UpdateToolResponseBodyToolsResponse200Type);
1645
-
1646
- /** @internal */
1647
- export const UpdateToolResponseBodyToolsResponse200Type$outboundSchema:
1648
- z.ZodNativeEnum<typeof UpdateToolResponseBodyToolsResponse200Type> =
1649
- UpdateToolResponseBodyToolsResponse200Type$inboundSchema;
1650
-
1651
- /**
1652
- * @internal
1653
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1654
- */
1655
- export namespace UpdateToolResponseBodyToolsResponse200Type$ {
1656
- /** @deprecated use `UpdateToolResponseBodyToolsResponse200Type$inboundSchema` instead. */
1657
- export const inboundSchema =
1658
- UpdateToolResponseBodyToolsResponse200Type$inboundSchema;
1659
- /** @deprecated use `UpdateToolResponseBodyToolsResponse200Type$outboundSchema` instead. */
1660
- export const outboundSchema =
1661
- UpdateToolResponseBodyToolsResponse200Type$outboundSchema;
1662
- }
1663
-
1664
- /** @internal */
1665
- export const UpdateToolResponseBodyDefaultValue$inboundSchema: z.ZodType<
1666
- UpdateToolResponseBodyDefaultValue,
1667
- z.ZodTypeDef,
1668
- unknown
1669
- > = z.union([z.string(), z.number(), z.boolean()]);
1670
-
1671
- /** @internal */
1672
- export type UpdateToolResponseBodyDefaultValue$Outbound =
1673
- | string
1674
- | number
1675
- | boolean;
1676
-
1677
- /** @internal */
1678
- export const UpdateToolResponseBodyDefaultValue$outboundSchema: z.ZodType<
1679
- UpdateToolResponseBodyDefaultValue$Outbound,
1680
- z.ZodTypeDef,
1681
- UpdateToolResponseBodyDefaultValue
1682
- > = z.union([z.string(), z.number(), z.boolean()]);
1683
-
1684
- /**
1685
- * @internal
1686
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1687
- */
1688
- export namespace UpdateToolResponseBodyDefaultValue$ {
1689
- /** @deprecated use `UpdateToolResponseBodyDefaultValue$inboundSchema` instead. */
1690
- export const inboundSchema = UpdateToolResponseBodyDefaultValue$inboundSchema;
1691
- /** @deprecated use `UpdateToolResponseBodyDefaultValue$outboundSchema` instead. */
1692
- export const outboundSchema =
1693
- UpdateToolResponseBodyDefaultValue$outboundSchema;
1694
- /** @deprecated use `UpdateToolResponseBodyDefaultValue$Outbound` instead. */
1695
- export type Outbound = UpdateToolResponseBodyDefaultValue$Outbound;
1696
- }
1697
-
1698
- export function updateToolResponseBodyDefaultValueToJSON(
1699
- updateToolResponseBodyDefaultValue: UpdateToolResponseBodyDefaultValue,
1700
- ): string {
1701
- return JSON.stringify(
1702
- UpdateToolResponseBodyDefaultValue$outboundSchema.parse(
1703
- updateToolResponseBodyDefaultValue,
1704
- ),
1705
- );
1706
- }
1707
-
1708
- export function updateToolResponseBodyDefaultValueFromJSON(
1709
- jsonString: string,
1710
- ): SafeParseResult<UpdateToolResponseBodyDefaultValue, SDKValidationError> {
1711
- return safeParse(
1712
- jsonString,
1713
- (x) =>
1714
- UpdateToolResponseBodyDefaultValue$inboundSchema.parse(JSON.parse(x)),
1715
- `Failed to parse 'UpdateToolResponseBodyDefaultValue' from JSON`,
1716
- );
1717
- }
1718
-
1719
- /** @internal */
1720
- export const UpdateToolResponseBodyArguments$inboundSchema: z.ZodType<
1721
- UpdateToolResponseBodyArguments,
1722
- z.ZodTypeDef,
1723
- unknown
1724
- > = z.object({
1725
- type: UpdateToolResponseBodyToolsResponse200Type$inboundSchema,
1726
- description: z.string(),
1727
- send_to_model: z.boolean().default(true),
1728
- default_value: z.union([z.string(), z.number(), z.boolean()]).optional(),
1729
- }).transform((v) => {
1730
- return remap$(v, {
1731
- "send_to_model": "sendToModel",
1732
- "default_value": "defaultValue",
1733
- });
1734
- });
1735
-
1736
- /** @internal */
1737
- export type UpdateToolResponseBodyArguments$Outbound = {
1738
- type: string;
1739
- description: string;
1740
- send_to_model: boolean;
1741
- default_value?: string | number | boolean | undefined;
1742
- };
1743
-
1744
- /** @internal */
1745
- export const UpdateToolResponseBodyArguments$outboundSchema: z.ZodType<
1746
- UpdateToolResponseBodyArguments$Outbound,
1747
- z.ZodTypeDef,
1748
- UpdateToolResponseBodyArguments
1749
- > = z.object({
1750
- type: UpdateToolResponseBodyToolsResponse200Type$outboundSchema,
1751
- description: z.string(),
1752
- sendToModel: z.boolean().default(true),
1753
- defaultValue: z.union([z.string(), z.number(), z.boolean()]).optional(),
1754
- }).transform((v) => {
1755
- return remap$(v, {
1756
- sendToModel: "send_to_model",
1757
- defaultValue: "default_value",
1758
- });
1759
- });
1760
-
1761
- /**
1762
- * @internal
1763
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1764
- */
1765
- export namespace UpdateToolResponseBodyArguments$ {
1766
- /** @deprecated use `UpdateToolResponseBodyArguments$inboundSchema` instead. */
1767
- export const inboundSchema = UpdateToolResponseBodyArguments$inboundSchema;
1768
- /** @deprecated use `UpdateToolResponseBodyArguments$outboundSchema` instead. */
1769
- export const outboundSchema = UpdateToolResponseBodyArguments$outboundSchema;
1770
- /** @deprecated use `UpdateToolResponseBodyArguments$Outbound` instead. */
1771
- export type Outbound = UpdateToolResponseBodyArguments$Outbound;
1772
- }
1773
-
1774
- export function updateToolResponseBodyArgumentsToJSON(
1775
- updateToolResponseBodyArguments: UpdateToolResponseBodyArguments,
1776
- ): string {
1777
- return JSON.stringify(
1778
- UpdateToolResponseBodyArguments$outboundSchema.parse(
1779
- updateToolResponseBodyArguments,
1780
- ),
1781
- );
1782
- }
1783
-
1784
- export function updateToolResponseBodyArgumentsFromJSON(
1785
- jsonString: string,
1786
- ): SafeParseResult<UpdateToolResponseBodyArguments, SDKValidationError> {
1787
- return safeParse(
1788
- jsonString,
1789
- (x) => UpdateToolResponseBodyArguments$inboundSchema.parse(JSON.parse(x)),
1790
- `Failed to parse 'UpdateToolResponseBodyArguments' from JSON`,
1791
- );
1792
- }
1793
-
1794
- /** @internal */
1795
- export const UpdateToolResponseBodyHttp$inboundSchema: z.ZodType<
1796
- UpdateToolResponseBodyHttp,
1797
- z.ZodTypeDef,
1798
- unknown
1799
- > = z.object({
1800
- blueprint: z.lazy(() => UpdateToolResponseBodyBlueprint$inboundSchema),
1801
- arguments: z.record(
1802
- z.lazy(() => UpdateToolResponseBodyArguments$inboundSchema),
1803
- ).optional(),
1804
- });
1805
-
1806
- /** @internal */
1807
- export type UpdateToolResponseBodyHttp$Outbound = {
1808
- blueprint: UpdateToolResponseBodyBlueprint$Outbound;
1809
- arguments?:
1810
- | { [k: string]: UpdateToolResponseBodyArguments$Outbound }
1811
- | undefined;
1812
- };
1813
-
1814
- /** @internal */
1815
- export const UpdateToolResponseBodyHttp$outboundSchema: z.ZodType<
1816
- UpdateToolResponseBodyHttp$Outbound,
1817
- z.ZodTypeDef,
1818
- UpdateToolResponseBodyHttp
1819
- > = z.object({
1820
- blueprint: z.lazy(() => UpdateToolResponseBodyBlueprint$outboundSchema),
1821
- arguments: z.record(
1822
- z.lazy(() => UpdateToolResponseBodyArguments$outboundSchema),
1823
- ).optional(),
1824
- });
1825
-
1826
- /**
1827
- * @internal
1828
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1829
- */
1830
- export namespace UpdateToolResponseBodyHttp$ {
1831
- /** @deprecated use `UpdateToolResponseBodyHttp$inboundSchema` instead. */
1832
- export const inboundSchema = UpdateToolResponseBodyHttp$inboundSchema;
1833
- /** @deprecated use `UpdateToolResponseBodyHttp$outboundSchema` instead. */
1834
- export const outboundSchema = UpdateToolResponseBodyHttp$outboundSchema;
1835
- /** @deprecated use `UpdateToolResponseBodyHttp$Outbound` instead. */
1836
- export type Outbound = UpdateToolResponseBodyHttp$Outbound;
1837
- }
1838
-
1839
- export function updateToolResponseBodyHttpToJSON(
1840
- updateToolResponseBodyHttp: UpdateToolResponseBodyHttp,
1841
- ): string {
1842
- return JSON.stringify(
1843
- UpdateToolResponseBodyHttp$outboundSchema.parse(updateToolResponseBodyHttp),
1844
- );
1845
- }
1846
-
1847
- export function updateToolResponseBodyHttpFromJSON(
1848
- jsonString: string,
1849
- ): SafeParseResult<UpdateToolResponseBodyHttp, SDKValidationError> {
1850
- return safeParse(
1851
- jsonString,
1852
- (x) => UpdateToolResponseBodyHttp$inboundSchema.parse(JSON.parse(x)),
1853
- `Failed to parse 'UpdateToolResponseBodyHttp' from JSON`,
1854
- );
1855
- }
1856
-
1857
- /** @internal */
1858
- export const UpdateToolResponseBody3$inboundSchema: z.ZodType<
1859
- UpdateToolResponseBody3,
1860
- z.ZodTypeDef,
1861
- unknown
1862
- > = z.object({
1863
- _id: z.string().default("tool_01JS405PM1T5XS3VFY5XVXVXC0"),
1864
- path: z.string(),
1865
- key: z.string(),
1866
- description: z.string(),
1867
- created_by_id: z.string().optional(),
1868
- updated_by_id: z.string().optional(),
1869
- project_id: z.string(),
1870
- workspace_id: z.string(),
1871
- created: z.string(),
1872
- updated: z.string(),
1873
- status: UpdateToolResponseBodyToolsResponseStatus$inboundSchema,
1874
- version_hash: z.string(),
1875
- type: UpdateToolResponseBodyToolsResponseType$inboundSchema,
1876
- http: z.lazy(() => UpdateToolResponseBodyHttp$inboundSchema),
1877
- }).transform((v) => {
1878
- return remap$(v, {
1879
- "_id": "id",
1880
- "created_by_id": "createdById",
1881
- "updated_by_id": "updatedById",
1882
- "project_id": "projectId",
1883
- "workspace_id": "workspaceId",
1884
- "version_hash": "versionHash",
1885
- });
1886
- });
1887
-
1888
- /** @internal */
1889
- export type UpdateToolResponseBody3$Outbound = {
1890
- _id: string;
1891
- path: string;
1892
- key: string;
1893
- description: string;
1894
- created_by_id?: string | undefined;
1895
- updated_by_id?: string | undefined;
1896
- project_id: string;
1897
- workspace_id: string;
1898
- created: string;
1899
- updated: string;
1900
- status: string;
1901
- version_hash: string;
1902
- type: string;
1903
- http: UpdateToolResponseBodyHttp$Outbound;
1904
- };
1905
-
1906
- /** @internal */
1907
- export const UpdateToolResponseBody3$outboundSchema: z.ZodType<
1908
- UpdateToolResponseBody3$Outbound,
1909
- z.ZodTypeDef,
1910
- UpdateToolResponseBody3
1911
- > = z.object({
1912
- id: z.string().default("tool_01JS405PM1T5XS3VFY5XVXVXC0"),
1913
- path: z.string(),
1914
- key: z.string(),
1915
- description: z.string(),
1916
- createdById: z.string().optional(),
1917
- updatedById: z.string().optional(),
1918
- projectId: z.string(),
1919
- workspaceId: z.string(),
1920
- created: z.string(),
1921
- updated: z.string(),
1922
- status: UpdateToolResponseBodyToolsResponseStatus$outboundSchema,
1923
- versionHash: z.string(),
1924
- type: UpdateToolResponseBodyToolsResponseType$outboundSchema,
1925
- http: z.lazy(() => UpdateToolResponseBodyHttp$outboundSchema),
1926
- }).transform((v) => {
1927
- return remap$(v, {
1928
- id: "_id",
1929
- createdById: "created_by_id",
1930
- updatedById: "updated_by_id",
1931
- projectId: "project_id",
1932
- workspaceId: "workspace_id",
1933
- versionHash: "version_hash",
1934
- });
1935
- });
1936
-
1937
- /**
1938
- * @internal
1939
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1940
- */
1941
- export namespace UpdateToolResponseBody3$ {
1942
- /** @deprecated use `UpdateToolResponseBody3$inboundSchema` instead. */
1943
- export const inboundSchema = UpdateToolResponseBody3$inboundSchema;
1944
- /** @deprecated use `UpdateToolResponseBody3$outboundSchema` instead. */
1945
- export const outboundSchema = UpdateToolResponseBody3$outboundSchema;
1946
- /** @deprecated use `UpdateToolResponseBody3$Outbound` instead. */
1947
- export type Outbound = UpdateToolResponseBody3$Outbound;
1948
- }
1949
-
1950
- export function updateToolResponseBody3ToJSON(
1951
- updateToolResponseBody3: UpdateToolResponseBody3,
1952
- ): string {
1953
- return JSON.stringify(
1954
- UpdateToolResponseBody3$outboundSchema.parse(updateToolResponseBody3),
1955
- );
1956
- }
1957
-
1958
- export function updateToolResponseBody3FromJSON(
1959
- jsonString: string,
1960
- ): SafeParseResult<UpdateToolResponseBody3, SDKValidationError> {
1961
- return safeParse(
1962
- jsonString,
1963
- (x) => UpdateToolResponseBody3$inboundSchema.parse(JSON.parse(x)),
1964
- `Failed to parse 'UpdateToolResponseBody3' from JSON`,
1965
- );
1966
- }
1967
-
1968
- /** @internal */
1969
- export const UpdateToolResponseBodyToolsStatus$inboundSchema: z.ZodNativeEnum<
1970
- typeof UpdateToolResponseBodyToolsStatus
1971
- > = z.nativeEnum(UpdateToolResponseBodyToolsStatus);
1972
-
1973
- /** @internal */
1974
- export const UpdateToolResponseBodyToolsStatus$outboundSchema: z.ZodNativeEnum<
1975
- typeof UpdateToolResponseBodyToolsStatus
1976
- > = UpdateToolResponseBodyToolsStatus$inboundSchema;
1977
-
1978
- /**
1979
- * @internal
1980
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1981
- */
1982
- export namespace UpdateToolResponseBodyToolsStatus$ {
1983
- /** @deprecated use `UpdateToolResponseBodyToolsStatus$inboundSchema` instead. */
1984
- export const inboundSchema = UpdateToolResponseBodyToolsStatus$inboundSchema;
1985
- /** @deprecated use `UpdateToolResponseBodyToolsStatus$outboundSchema` instead. */
1986
- export const outboundSchema =
1987
- UpdateToolResponseBodyToolsStatus$outboundSchema;
1988
- }
1989
-
1990
- /** @internal */
1991
- export const UpdateToolResponseBodyToolsType$inboundSchema: z.ZodNativeEnum<
1992
- typeof UpdateToolResponseBodyToolsType
1993
- > = z.nativeEnum(UpdateToolResponseBodyToolsType);
1994
-
1995
- /** @internal */
1996
- export const UpdateToolResponseBodyToolsType$outboundSchema: z.ZodNativeEnum<
1997
- typeof UpdateToolResponseBodyToolsType
1998
- > = UpdateToolResponseBodyToolsType$inboundSchema;
1999
-
2000
- /**
2001
- * @internal
2002
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2003
- */
2004
- export namespace UpdateToolResponseBodyToolsType$ {
2005
- /** @deprecated use `UpdateToolResponseBodyToolsType$inboundSchema` instead. */
2006
- export const inboundSchema = UpdateToolResponseBodyToolsType$inboundSchema;
2007
- /** @deprecated use `UpdateToolResponseBodyToolsType$outboundSchema` instead. */
2008
- export const outboundSchema = UpdateToolResponseBodyToolsType$outboundSchema;
2009
- }
2010
-
2011
- /** @internal */
2012
- export const UpdateToolResponseBodyJsonSchema$inboundSchema: z.ZodType<
2013
- UpdateToolResponseBodyJsonSchema,
2014
- z.ZodTypeDef,
2015
- unknown
2016
- > = z.object({
2017
- name: z.string(),
2018
- description: z.string().optional(),
2019
- schema: z.record(z.any()),
2020
- strict: z.nullable(z.boolean().default(false)),
2021
- });
2022
-
2023
- /** @internal */
2024
- export type UpdateToolResponseBodyJsonSchema$Outbound = {
2025
- name: string;
2026
- description?: string | undefined;
2027
- schema: { [k: string]: any };
2028
- strict: boolean | null;
2029
- };
2030
-
2031
- /** @internal */
2032
- export const UpdateToolResponseBodyJsonSchema$outboundSchema: z.ZodType<
2033
- UpdateToolResponseBodyJsonSchema$Outbound,
2034
- z.ZodTypeDef,
2035
- UpdateToolResponseBodyJsonSchema
2036
- > = z.object({
2037
- name: z.string(),
2038
- description: z.string().optional(),
2039
- schema: z.record(z.any()),
2040
- strict: z.nullable(z.boolean().default(false)),
2041
- });
2042
-
2043
- /**
2044
- * @internal
2045
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2046
- */
2047
- export namespace UpdateToolResponseBodyJsonSchema$ {
2048
- /** @deprecated use `UpdateToolResponseBodyJsonSchema$inboundSchema` instead. */
2049
- export const inboundSchema = UpdateToolResponseBodyJsonSchema$inboundSchema;
2050
- /** @deprecated use `UpdateToolResponseBodyJsonSchema$outboundSchema` instead. */
2051
- export const outboundSchema = UpdateToolResponseBodyJsonSchema$outboundSchema;
2052
- /** @deprecated use `UpdateToolResponseBodyJsonSchema$Outbound` instead. */
2053
- export type Outbound = UpdateToolResponseBodyJsonSchema$Outbound;
2054
- }
2055
-
2056
- export function updateToolResponseBodyJsonSchemaToJSON(
2057
- updateToolResponseBodyJsonSchema: UpdateToolResponseBodyJsonSchema,
2058
- ): string {
2059
- return JSON.stringify(
2060
- UpdateToolResponseBodyJsonSchema$outboundSchema.parse(
2061
- updateToolResponseBodyJsonSchema,
2062
- ),
2063
- );
2064
- }
2065
-
2066
- export function updateToolResponseBodyJsonSchemaFromJSON(
2067
- jsonString: string,
2068
- ): SafeParseResult<UpdateToolResponseBodyJsonSchema, SDKValidationError> {
2069
- return safeParse(
2070
- jsonString,
2071
- (x) => UpdateToolResponseBodyJsonSchema$inboundSchema.parse(JSON.parse(x)),
2072
- `Failed to parse 'UpdateToolResponseBodyJsonSchema' from JSON`,
2073
- );
2074
- }
2075
-
2076
- /** @internal */
2077
- export const UpdateToolResponseBody2$inboundSchema: z.ZodType<
2078
- UpdateToolResponseBody2,
2079
- z.ZodTypeDef,
2080
- unknown
2081
- > = z.object({
2082
- _id: z.string().default("tool_01JS405PKZPDBM7DE9C59WSRQH"),
2083
- path: z.string(),
2084
- key: z.string(),
2085
- description: z.string(),
2086
- created_by_id: z.string().optional(),
2087
- updated_by_id: z.string().optional(),
2088
- project_id: z.string(),
2089
- workspace_id: z.string(),
2090
- created: z.string(),
2091
- updated: z.string(),
2092
- status: UpdateToolResponseBodyToolsStatus$inboundSchema,
2093
- version_hash: z.string(),
2094
- type: UpdateToolResponseBodyToolsType$inboundSchema,
2095
- json_schema: z.lazy(() => UpdateToolResponseBodyJsonSchema$inboundSchema),
2096
- }).transform((v) => {
2097
- return remap$(v, {
2098
- "_id": "id",
2099
- "created_by_id": "createdById",
2100
- "updated_by_id": "updatedById",
2101
- "project_id": "projectId",
2102
- "workspace_id": "workspaceId",
2103
- "version_hash": "versionHash",
2104
- "json_schema": "jsonSchema",
2105
- });
2106
- });
2107
-
2108
- /** @internal */
2109
- export type UpdateToolResponseBody2$Outbound = {
2110
- _id: string;
2111
- path: string;
2112
- key: string;
2113
- description: string;
2114
- created_by_id?: string | undefined;
2115
- updated_by_id?: string | undefined;
2116
- project_id: string;
2117
- workspace_id: string;
2118
- created: string;
2119
- updated: string;
2120
- status: string;
2121
- version_hash: string;
2122
- type: string;
2123
- json_schema: UpdateToolResponseBodyJsonSchema$Outbound;
2124
- };
2125
-
2126
- /** @internal */
2127
- export const UpdateToolResponseBody2$outboundSchema: z.ZodType<
2128
- UpdateToolResponseBody2$Outbound,
2129
- z.ZodTypeDef,
2130
- UpdateToolResponseBody2
2131
- > = z.object({
2132
- id: z.string().default("tool_01JS405PKZPDBM7DE9C59WSRQH"),
2133
- path: z.string(),
2134
- key: z.string(),
2135
- description: z.string(),
2136
- createdById: z.string().optional(),
2137
- updatedById: z.string().optional(),
2138
- projectId: z.string(),
2139
- workspaceId: z.string(),
2140
- created: z.string(),
2141
- updated: z.string(),
2142
- status: UpdateToolResponseBodyToolsStatus$outboundSchema,
2143
- versionHash: z.string(),
2144
- type: UpdateToolResponseBodyToolsType$outboundSchema,
2145
- jsonSchema: z.lazy(() => UpdateToolResponseBodyJsonSchema$outboundSchema),
2146
- }).transform((v) => {
2147
- return remap$(v, {
2148
- id: "_id",
2149
- createdById: "created_by_id",
2150
- updatedById: "updated_by_id",
2151
- projectId: "project_id",
2152
- workspaceId: "workspace_id",
2153
- versionHash: "version_hash",
2154
- jsonSchema: "json_schema",
2155
- });
2156
- });
2157
-
2158
- /**
2159
- * @internal
2160
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2161
- */
2162
- export namespace UpdateToolResponseBody2$ {
2163
- /** @deprecated use `UpdateToolResponseBody2$inboundSchema` instead. */
2164
- export const inboundSchema = UpdateToolResponseBody2$inboundSchema;
2165
- /** @deprecated use `UpdateToolResponseBody2$outboundSchema` instead. */
2166
- export const outboundSchema = UpdateToolResponseBody2$outboundSchema;
2167
- /** @deprecated use `UpdateToolResponseBody2$Outbound` instead. */
2168
- export type Outbound = UpdateToolResponseBody2$Outbound;
2169
- }
2170
-
2171
- export function updateToolResponseBody2ToJSON(
2172
- updateToolResponseBody2: UpdateToolResponseBody2,
2173
- ): string {
2174
- return JSON.stringify(
2175
- UpdateToolResponseBody2$outboundSchema.parse(updateToolResponseBody2),
2176
- );
2177
- }
2178
-
2179
- export function updateToolResponseBody2FromJSON(
2180
- jsonString: string,
2181
- ): SafeParseResult<UpdateToolResponseBody2, SDKValidationError> {
2182
- return safeParse(
2183
- jsonString,
2184
- (x) => UpdateToolResponseBody2$inboundSchema.parse(JSON.parse(x)),
2185
- `Failed to parse 'UpdateToolResponseBody2' from JSON`,
2186
- );
2187
- }
2188
-
2189
- /** @internal */
2190
- export const UpdateToolResponseBodyStatus$inboundSchema: z.ZodNativeEnum<
2191
- typeof UpdateToolResponseBodyStatus
2192
- > = z.nativeEnum(UpdateToolResponseBodyStatus);
2193
-
2194
- /** @internal */
2195
- export const UpdateToolResponseBodyStatus$outboundSchema: z.ZodNativeEnum<
2196
- typeof UpdateToolResponseBodyStatus
2197
- > = UpdateToolResponseBodyStatus$inboundSchema;
2198
-
2199
- /**
2200
- * @internal
2201
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2202
- */
2203
- export namespace UpdateToolResponseBodyStatus$ {
2204
- /** @deprecated use `UpdateToolResponseBodyStatus$inboundSchema` instead. */
2205
- export const inboundSchema = UpdateToolResponseBodyStatus$inboundSchema;
2206
- /** @deprecated use `UpdateToolResponseBodyStatus$outboundSchema` instead. */
2207
- export const outboundSchema = UpdateToolResponseBodyStatus$outboundSchema;
2208
- }
2209
-
2210
- /** @internal */
2211
- export const UpdateToolResponseBodyType$inboundSchema: z.ZodNativeEnum<
2212
- typeof UpdateToolResponseBodyType
2213
- > = z.nativeEnum(UpdateToolResponseBodyType);
2214
-
2215
- /** @internal */
2216
- export const UpdateToolResponseBodyType$outboundSchema: z.ZodNativeEnum<
2217
- typeof UpdateToolResponseBodyType
2218
- > = UpdateToolResponseBodyType$inboundSchema;
2219
-
2220
- /**
2221
- * @internal
2222
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2223
- */
2224
- export namespace UpdateToolResponseBodyType$ {
2225
- /** @deprecated use `UpdateToolResponseBodyType$inboundSchema` instead. */
2226
- export const inboundSchema = UpdateToolResponseBodyType$inboundSchema;
2227
- /** @deprecated use `UpdateToolResponseBodyType$outboundSchema` instead. */
2228
- export const outboundSchema = UpdateToolResponseBodyType$outboundSchema;
2229
- }
2230
-
2231
- /** @internal */
2232
- export const UpdateToolResponseBodyFunction$inboundSchema: z.ZodType<
2233
- UpdateToolResponseBodyFunction,
2234
- z.ZodTypeDef,
2235
- unknown
2236
- > = z.object({
2237
- name: z.string(),
2238
- description: z.string().optional(),
2239
- strict: z.boolean().optional(),
2240
- parameters: z.record(z.any()).optional(),
2241
- });
2242
-
2243
- /** @internal */
2244
- export type UpdateToolResponseBodyFunction$Outbound = {
2245
- name: string;
2246
- description?: string | undefined;
2247
- strict?: boolean | undefined;
2248
- parameters?: { [k: string]: any } | undefined;
2249
- };
2250
-
2251
- /** @internal */
2252
- export const UpdateToolResponseBodyFunction$outboundSchema: z.ZodType<
2253
- UpdateToolResponseBodyFunction$Outbound,
2254
- z.ZodTypeDef,
2255
- UpdateToolResponseBodyFunction
2256
- > = z.object({
2257
- name: z.string(),
2258
- description: z.string().optional(),
2259
- strict: z.boolean().optional(),
2260
- parameters: z.record(z.any()).optional(),
2261
- });
2262
-
2263
- /**
2264
- * @internal
2265
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2266
- */
2267
- export namespace UpdateToolResponseBodyFunction$ {
2268
- /** @deprecated use `UpdateToolResponseBodyFunction$inboundSchema` instead. */
2269
- export const inboundSchema = UpdateToolResponseBodyFunction$inboundSchema;
2270
- /** @deprecated use `UpdateToolResponseBodyFunction$outboundSchema` instead. */
2271
- export const outboundSchema = UpdateToolResponseBodyFunction$outboundSchema;
2272
- /** @deprecated use `UpdateToolResponseBodyFunction$Outbound` instead. */
2273
- export type Outbound = UpdateToolResponseBodyFunction$Outbound;
2274
- }
2275
-
2276
- export function updateToolResponseBodyFunctionToJSON(
2277
- updateToolResponseBodyFunction: UpdateToolResponseBodyFunction,
2278
- ): string {
2279
- return JSON.stringify(
2280
- UpdateToolResponseBodyFunction$outboundSchema.parse(
2281
- updateToolResponseBodyFunction,
2282
- ),
2283
- );
2284
- }
2285
-
2286
- export function updateToolResponseBodyFunctionFromJSON(
2287
- jsonString: string,
2288
- ): SafeParseResult<UpdateToolResponseBodyFunction, SDKValidationError> {
2289
- return safeParse(
2290
- jsonString,
2291
- (x) => UpdateToolResponseBodyFunction$inboundSchema.parse(JSON.parse(x)),
2292
- `Failed to parse 'UpdateToolResponseBodyFunction' from JSON`,
2293
- );
2294
- }
2295
-
2296
- /** @internal */
2297
- export const UpdateToolResponseBody1$inboundSchema: z.ZodType<
2298
- UpdateToolResponseBody1,
2299
- z.ZodTypeDef,
2300
- unknown
2301
- > = z.object({
2302
- _id: z.string().default("tool_01JS405PKYSTMFDSCSGMEMCM2W"),
2303
- path: z.string(),
2304
- key: z.string(),
2305
- description: z.string(),
2306
- created_by_id: z.string().optional(),
2307
- updated_by_id: z.string().optional(),
2308
- project_id: z.string(),
2309
- workspace_id: z.string(),
2310
- created: z.string(),
2311
- updated: z.string(),
2312
- status: UpdateToolResponseBodyStatus$inboundSchema,
2313
- version_hash: z.string(),
2314
- type: UpdateToolResponseBodyType$inboundSchema,
2315
- function: z.lazy(() => UpdateToolResponseBodyFunction$inboundSchema),
2316
- }).transform((v) => {
2317
- return remap$(v, {
2318
- "_id": "id",
2319
- "created_by_id": "createdById",
2320
- "updated_by_id": "updatedById",
2321
- "project_id": "projectId",
2322
- "workspace_id": "workspaceId",
2323
- "version_hash": "versionHash",
2324
- });
2325
- });
2326
-
2327
- /** @internal */
2328
- export type UpdateToolResponseBody1$Outbound = {
2329
- _id: string;
2330
- path: string;
2331
- key: string;
2332
- description: string;
2333
- created_by_id?: string | undefined;
2334
- updated_by_id?: string | undefined;
2335
- project_id: string;
2336
- workspace_id: string;
2337
- created: string;
2338
- updated: string;
2339
- status: string;
2340
- version_hash: string;
2341
- type: string;
2342
- function: UpdateToolResponseBodyFunction$Outbound;
2343
- };
2344
-
2345
- /** @internal */
2346
- export const UpdateToolResponseBody1$outboundSchema: z.ZodType<
2347
- UpdateToolResponseBody1$Outbound,
2348
- z.ZodTypeDef,
2349
- UpdateToolResponseBody1
2350
- > = z.object({
2351
- id: z.string().default("tool_01JS405PKYSTMFDSCSGMEMCM2W"),
2352
- path: z.string(),
2353
- key: z.string(),
2354
- description: z.string(),
2355
- createdById: z.string().optional(),
2356
- updatedById: z.string().optional(),
2357
- projectId: z.string(),
2358
- workspaceId: z.string(),
2359
- created: z.string(),
2360
- updated: z.string(),
2361
- status: UpdateToolResponseBodyStatus$outboundSchema,
2362
- versionHash: z.string(),
2363
- type: UpdateToolResponseBodyType$outboundSchema,
2364
- function: z.lazy(() => UpdateToolResponseBodyFunction$outboundSchema),
2365
- }).transform((v) => {
2366
- return remap$(v, {
2367
- id: "_id",
2368
- createdById: "created_by_id",
2369
- updatedById: "updated_by_id",
2370
- projectId: "project_id",
2371
- workspaceId: "workspace_id",
2372
- versionHash: "version_hash",
2373
- });
2374
- });
2375
-
2376
- /**
2377
- * @internal
2378
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2379
- */
2380
- export namespace UpdateToolResponseBody1$ {
2381
- /** @deprecated use `UpdateToolResponseBody1$inboundSchema` instead. */
2382
- export const inboundSchema = UpdateToolResponseBody1$inboundSchema;
2383
- /** @deprecated use `UpdateToolResponseBody1$outboundSchema` instead. */
2384
- export const outboundSchema = UpdateToolResponseBody1$outboundSchema;
2385
- /** @deprecated use `UpdateToolResponseBody1$Outbound` instead. */
2386
- export type Outbound = UpdateToolResponseBody1$Outbound;
2387
- }
2388
-
2389
- export function updateToolResponseBody1ToJSON(
2390
- updateToolResponseBody1: UpdateToolResponseBody1,
2391
- ): string {
2392
- return JSON.stringify(
2393
- UpdateToolResponseBody1$outboundSchema.parse(updateToolResponseBody1),
2394
- );
2395
- }
2396
-
2397
- export function updateToolResponseBody1FromJSON(
2398
- jsonString: string,
2399
- ): SafeParseResult<UpdateToolResponseBody1, SDKValidationError> {
2400
- return safeParse(
2401
- jsonString,
2402
- (x) => UpdateToolResponseBody1$inboundSchema.parse(JSON.parse(x)),
2403
- `Failed to parse 'UpdateToolResponseBody1' from JSON`,
2404
- );
2405
- }
2406
-
2407
- /** @internal */
2408
- export const UpdateToolResponseBody$inboundSchema: z.ZodType<
2409
- UpdateToolResponseBody,
2410
- z.ZodTypeDef,
2411
- unknown
2412
- > = z.union([
2413
- z.lazy(() => UpdateToolResponseBody1$inboundSchema),
2414
- z.lazy(() => UpdateToolResponseBody2$inboundSchema),
2415
- z.lazy(() => UpdateToolResponseBody3$inboundSchema),
2416
- ]);
2417
-
2418
- /** @internal */
2419
- export type UpdateToolResponseBody$Outbound =
2420
- | UpdateToolResponseBody1$Outbound
2421
- | UpdateToolResponseBody2$Outbound
2422
- | UpdateToolResponseBody3$Outbound;
2423
-
2424
- /** @internal */
2425
- export const UpdateToolResponseBody$outboundSchema: z.ZodType<
2426
- UpdateToolResponseBody$Outbound,
2427
- z.ZodTypeDef,
2428
- UpdateToolResponseBody
2429
- > = z.union([
2430
- z.lazy(() => UpdateToolResponseBody1$outboundSchema),
2431
- z.lazy(() => UpdateToolResponseBody2$outboundSchema),
2432
- z.lazy(() => UpdateToolResponseBody3$outboundSchema),
2433
- ]);
2434
-
2435
- /**
2436
- * @internal
2437
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2438
- */
2439
- export namespace UpdateToolResponseBody$ {
2440
- /** @deprecated use `UpdateToolResponseBody$inboundSchema` instead. */
2441
- export const inboundSchema = UpdateToolResponseBody$inboundSchema;
2442
- /** @deprecated use `UpdateToolResponseBody$outboundSchema` instead. */
2443
- export const outboundSchema = UpdateToolResponseBody$outboundSchema;
2444
- /** @deprecated use `UpdateToolResponseBody$Outbound` instead. */
2445
- export type Outbound = UpdateToolResponseBody$Outbound;
2446
- }
2447
-
2448
- export function updateToolResponseBodyToJSON(
2449
- updateToolResponseBody: UpdateToolResponseBody,
2450
- ): string {
2451
- return JSON.stringify(
2452
- UpdateToolResponseBody$outboundSchema.parse(updateToolResponseBody),
2453
- );
2454
- }
2455
-
2456
- export function updateToolResponseBodyFromJSON(
2457
- jsonString: string,
2458
- ): SafeParseResult<UpdateToolResponseBody, SDKValidationError> {
2459
- return safeParse(
2460
- jsonString,
2461
- (x) => UpdateToolResponseBody$inboundSchema.parse(JSON.parse(x)),
2462
- `Failed to parse 'UpdateToolResponseBody' from JSON`,
2463
- );
2464
- }