@orq-ai/node 4.1.3 → 4.2.0-rc.10

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 (559) hide show
  1. package/README.md +18 -0
  2. package/bin/mcp-server.js +835 -380
  3. package/bin/mcp-server.js.map +61 -58
  4. package/examples/package-lock.json +4 -7
  5. package/jsr.json +1 -1
  6. package/lib/config.d.ts +3 -3
  7. package/lib/config.js +3 -3
  8. package/lib/config.js.map +1 -1
  9. package/mcp-server/mcp-server.js +1 -1
  10. package/mcp-server/mcp-server.js.map +1 -1
  11. package/mcp-server/server.js +1 -1
  12. package/mcp-server/server.js.map +1 -1
  13. package/models/components/conversationresponse.js +2 -2
  14. package/models/components/invokedeploymentrequest.d.ts +1 -1
  15. package/models/components/partdoneevent.js +2 -2
  16. package/models/components/reasoningpart.js +2 -2
  17. package/models/operations/createcontact.js +2 -2
  18. package/models/operations/createconversation.js +2 -2
  19. package/models/operations/createdataset.js +2 -2
  20. package/models/operations/createdatasetitem.js +8 -8
  21. package/models/operations/createdatasource.js +2 -2
  22. package/models/operations/createeval.js +28 -28
  23. package/models/operations/createtool.js +12 -12
  24. package/models/operations/deploymentgetconfig.d.ts +1 -1
  25. package/models/operations/deploymentstream.d.ts +1 -1
  26. package/models/operations/fileget.js +2 -2
  27. package/models/operations/filelist.js +2 -2
  28. package/models/operations/fileupload.js +2 -2
  29. package/models/operations/generateconversationname.js +2 -2
  30. package/models/operations/getalltools.js +12 -12
  31. package/models/operations/getevals.js +28 -28
  32. package/models/operations/listcontacts.js +2 -2
  33. package/models/operations/listdatasetdatapoints.js +8 -8
  34. package/models/operations/listdatasets.js +2 -2
  35. package/models/operations/listdatasources.js +2 -2
  36. package/models/operations/retrievecontact.js +2 -2
  37. package/models/operations/retrieveconversation.js +2 -2
  38. package/models/operations/retrievedatapoint.js +8 -8
  39. package/models/operations/retrievedataset.js +2 -2
  40. package/models/operations/retrievedatasource.js +2 -2
  41. package/models/operations/retrievetool.js +12 -12
  42. package/models/operations/runagent.js +2 -2
  43. package/models/operations/streamrunagent.js +2 -2
  44. package/models/operations/updatecontact.js +2 -2
  45. package/models/operations/updateconversation.js +2 -2
  46. package/models/operations/updatedatapoint.js +8 -8
  47. package/models/operations/updatedataset.js +2 -2
  48. package/models/operations/updatedatasource.js +2 -2
  49. package/models/operations/updateeval.js +28 -28
  50. package/models/operations/updatetool.js +14 -14
  51. package/package.json +4 -3
  52. package/src/lib/config.ts +3 -3
  53. package/src/mcp-server/mcp-server.ts +1 -1
  54. package/src/mcp-server/server.ts +1 -1
  55. package/src/models/components/conversationresponse.ts +2 -2
  56. package/src/models/components/invokedeploymentrequest.ts +1 -1
  57. package/src/models/components/partdoneevent.ts +2 -2
  58. package/src/models/components/reasoningpart.ts +2 -2
  59. package/src/models/operations/createcontact.ts +2 -2
  60. package/src/models/operations/createconversation.ts +2 -2
  61. package/src/models/operations/createdataset.ts +2 -2
  62. package/src/models/operations/createdatasetitem.ts +8 -8
  63. package/src/models/operations/createdatasource.ts +2 -2
  64. package/src/models/operations/createeval.ts +28 -28
  65. package/src/models/operations/createtool.ts +12 -12
  66. package/src/models/operations/deploymentgetconfig.ts +1 -1
  67. package/src/models/operations/deploymentstream.ts +1 -1
  68. package/src/models/operations/fileget.ts +2 -2
  69. package/src/models/operations/filelist.ts +2 -2
  70. package/src/models/operations/fileupload.ts +2 -2
  71. package/src/models/operations/generateconversationname.ts +2 -2
  72. package/src/models/operations/getalltools.ts +12 -12
  73. package/src/models/operations/getevals.ts +28 -28
  74. package/src/models/operations/listcontacts.ts +2 -2
  75. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  76. package/src/models/operations/listdatasets.ts +2 -2
  77. package/src/models/operations/listdatasources.ts +2 -2
  78. package/src/models/operations/retrievecontact.ts +2 -2
  79. package/src/models/operations/retrieveconversation.ts +2 -2
  80. package/src/models/operations/retrievedatapoint.ts +8 -8
  81. package/src/models/operations/retrievedataset.ts +2 -2
  82. package/src/models/operations/retrievedatasource.ts +2 -2
  83. package/src/models/operations/retrievetool.ts +12 -12
  84. package/src/models/operations/runagent.ts +2 -2
  85. package/src/models/operations/streamrunagent.ts +2 -2
  86. package/src/models/operations/updatecontact.ts +2 -2
  87. package/src/models/operations/updateconversation.ts +2 -2
  88. package/src/models/operations/updatedatapoint.ts +8 -8
  89. package/src/models/operations/updatedataset.ts +2 -2
  90. package/src/models/operations/updatedatasource.ts +2 -2
  91. package/src/models/operations/updateeval.ts +28 -28
  92. package/src/models/operations/updatetool.ts +14 -14
  93. package/_speakeasy/.github/action-inputs-config.json +0 -53
  94. package/_speakeasy/.github/action-security-config.json +0 -88
  95. package/packages/orq-rc/examples/contactsCreate.example.ts +0 -42
  96. package/packages/orq-rc/examples/package-lock.json +0 -619
  97. package/packages/orq-rc/examples/package.json +0 -18
  98. package/packages/orq-rc/jsr.json +0 -28
  99. package/packages/orq-rc/package-lock.json +0 -3552
  100. package/packages/orq-rc/package.json +0 -40
  101. package/packages/orq-rc/src/core.ts +0 -13
  102. package/packages/orq-rc/src/funcs/agentsCreate.ts +0 -170
  103. package/packages/orq-rc/src/funcs/agentsDelete.ts +0 -180
  104. package/packages/orq-rc/src/funcs/agentsInvoke.ts +0 -177
  105. package/packages/orq-rc/src/funcs/agentsList.ts +0 -179
  106. package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +0 -183
  107. package/packages/orq-rc/src/funcs/agentsRetrieve.ts +0 -180
  108. package/packages/orq-rc/src/funcs/agentsRun.ts +0 -162
  109. package/packages/orq-rc/src/funcs/agentsStream.ts +0 -201
  110. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +0 -186
  111. package/packages/orq-rc/src/funcs/agentsUpdate.ts +0 -184
  112. package/packages/orq-rc/src/funcs/chunkingParse.ts +0 -160
  113. package/packages/orq-rc/src/funcs/contactsCreate.ts +0 -165
  114. package/packages/orq-rc/src/funcs/contactsDelete.ts +0 -176
  115. package/packages/orq-rc/src/funcs/contactsList.ts +0 -170
  116. package/packages/orq-rc/src/funcs/contactsRetrieve.ts +0 -175
  117. package/packages/orq-rc/src/funcs/contactsUpdate.ts +0 -176
  118. package/packages/orq-rc/src/funcs/conversationsCreate.ts +0 -161
  119. package/packages/orq-rc/src/funcs/conversationsDelete.ts +0 -180
  120. package/packages/orq-rc/src/funcs/conversationsGenerateName.ts +0 -194
  121. package/packages/orq-rc/src/funcs/conversationsList.ts +0 -181
  122. package/packages/orq-rc/src/funcs/conversationsRetrieve.ts +0 -180
  123. package/packages/orq-rc/src/funcs/conversationsUpdate.ts +0 -184
  124. package/packages/orq-rc/src/funcs/datasetsClear.ts +0 -167
  125. package/packages/orq-rc/src/funcs/datasetsCreate.ts +0 -165
  126. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +0 -171
  127. package/packages/orq-rc/src/funcs/datasetsDelete.ts +0 -167
  128. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +0 -182
  129. package/packages/orq-rc/src/funcs/datasetsList.ts +0 -167
  130. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +0 -174
  131. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +0 -175
  132. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +0 -181
  133. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +0 -176
  134. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +0 -179
  135. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +0 -168
  136. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +0 -176
  137. package/packages/orq-rc/src/funcs/deploymentsList.ts +0 -176
  138. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +0 -168
  139. package/packages/orq-rc/src/funcs/deploymentsStream.ts +0 -183
  140. package/packages/orq-rc/src/funcs/evalsAll.ts +0 -173
  141. package/packages/orq-rc/src/funcs/evalsCreate.ts +0 -169
  142. package/packages/orq-rc/src/funcs/evalsDelete.ts +0 -173
  143. package/packages/orq-rc/src/funcs/evalsInvoke.ts +0 -177
  144. package/packages/orq-rc/src/funcs/evalsUpdate.ts +0 -173
  145. package/packages/orq-rc/src/funcs/evaluatorsGetV2EvaluatorsIdVersions.ts +0 -183
  146. package/packages/orq-rc/src/funcs/evaluatorsGetV2EvaluatorsIdVersionsVersionId.ts +0 -190
  147. package/packages/orq-rc/src/funcs/feedbackCreate.ts +0 -160
  148. package/packages/orq-rc/src/funcs/filesCreate.ts +0 -187
  149. package/packages/orq-rc/src/funcs/filesDelete.ts +0 -164
  150. package/packages/orq-rc/src/funcs/filesGet.ts +0 -166
  151. package/packages/orq-rc/src/funcs/filesList.ts +0 -167
  152. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +0 -158
  153. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +0 -171
  154. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +0 -166
  155. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +0 -167
  156. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +0 -174
  157. package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +0 -170
  158. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +0 -173
  159. package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +0 -170
  160. package/packages/orq-rc/src/funcs/knowledgeList.ts +0 -169
  161. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +0 -178
  162. package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +0 -171
  163. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +0 -174
  164. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +0 -166
  165. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +0 -173
  166. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +0 -169
  167. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +0 -167
  168. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +0 -164
  169. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +0 -174
  170. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +0 -170
  171. package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +0 -162
  172. package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +0 -175
  173. package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +0 -170
  174. package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +0 -168
  175. package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +0 -184
  176. package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +0 -179
  177. package/packages/orq-rc/src/funcs/memoryStoresList.ts +0 -178
  178. package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +0 -183
  179. package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +0 -177
  180. package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +0 -177
  181. package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +0 -178
  182. package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +0 -173
  183. package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +0 -168
  184. package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +0 -179
  185. package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +0 -174
  186. package/packages/orq-rc/src/funcs/modelsList.ts +0 -142
  187. package/packages/orq-rc/src/funcs/promptsCreate.ts +0 -160
  188. package/packages/orq-rc/src/funcs/promptsDelete.ts +0 -164
  189. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +0 -181
  190. package/packages/orq-rc/src/funcs/promptsList.ts +0 -167
  191. package/packages/orq-rc/src/funcs/promptsListVersions.ts +0 -173
  192. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +0 -166
  193. package/packages/orq-rc/src/funcs/promptsUpdate.ts +0 -173
  194. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +0 -161
  195. package/packages/orq-rc/src/funcs/routerChatCompletions.ts +0 -172
  196. package/packages/orq-rc/src/funcs/routerImagesGenerate.ts +0 -160
  197. package/packages/orq-rc/src/funcs/toolsCreate.ts +0 -172
  198. package/packages/orq-rc/src/funcs/toolsDelete.ts +0 -167
  199. package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersions.ts +0 -183
  200. package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersionsVersionId.ts +0 -190
  201. package/packages/orq-rc/src/funcs/toolsList.ts +0 -176
  202. package/packages/orq-rc/src/funcs/toolsRetrieve.ts +0 -166
  203. package/packages/orq-rc/src/funcs/toolsUpdate.ts +0 -176
  204. package/packages/orq-rc/src/hooks/global.ts +0 -44
  205. package/packages/orq-rc/src/hooks/hooks.ts +0 -132
  206. package/packages/orq-rc/src/hooks/index.ts +0 -6
  207. package/packages/orq-rc/src/hooks/registration.ts +0 -15
  208. package/packages/orq-rc/src/hooks/types.ts +0 -112
  209. package/packages/orq-rc/src/index.ts +0 -9
  210. package/packages/orq-rc/src/lib/base64.ts +0 -37
  211. package/packages/orq-rc/src/lib/config.ts +0 -74
  212. package/packages/orq-rc/src/lib/dlv.ts +0 -53
  213. package/packages/orq-rc/src/lib/encodings.ts +0 -497
  214. package/packages/orq-rc/src/lib/env.ts +0 -89
  215. package/packages/orq-rc/src/lib/event-streams.ts +0 -135
  216. package/packages/orq-rc/src/lib/files.ts +0 -82
  217. package/packages/orq-rc/src/lib/http.ts +0 -323
  218. package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
  219. package/packages/orq-rc/src/lib/logger.ts +0 -9
  220. package/packages/orq-rc/src/lib/matchers.ts +0 -345
  221. package/packages/orq-rc/src/lib/primitives.ts +0 -150
  222. package/packages/orq-rc/src/lib/retries.ts +0 -218
  223. package/packages/orq-rc/src/lib/schemas.ts +0 -91
  224. package/packages/orq-rc/src/lib/sdks.ts +0 -407
  225. package/packages/orq-rc/src/lib/security.ts +0 -264
  226. package/packages/orq-rc/src/lib/url.ts +0 -33
  227. package/packages/orq-rc/src/mcp-server/cli/start/command.ts +0 -111
  228. package/packages/orq-rc/src/mcp-server/cli/start/impl.ts +0 -136
  229. package/packages/orq-rc/src/mcp-server/cli.ts +0 -13
  230. package/packages/orq-rc/src/mcp-server/console-logger.ts +0 -71
  231. package/packages/orq-rc/src/mcp-server/extensions.ts +0 -17
  232. package/packages/orq-rc/src/mcp-server/mcp-server.ts +0 -26
  233. package/packages/orq-rc/src/mcp-server/prompts.ts +0 -121
  234. package/packages/orq-rc/src/mcp-server/resources.ts +0 -176
  235. package/packages/orq-rc/src/mcp-server/scopes.ts +0 -7
  236. package/packages/orq-rc/src/mcp-server/server.ts +0 -267
  237. package/packages/orq-rc/src/mcp-server/shared.ts +0 -74
  238. package/packages/orq-rc/src/mcp-server/tools/agentsCreate.ts +0 -37
  239. package/packages/orq-rc/src/mcp-server/tools/agentsDelete.ts +0 -35
  240. package/packages/orq-rc/src/mcp-server/tools/agentsInvoke.ts +0 -40
  241. package/packages/orq-rc/src/mcp-server/tools/agentsList.ts +0 -41
  242. package/packages/orq-rc/src/mcp-server/tools/agentsResponsesCreate.ts +0 -40
  243. package/packages/orq-rc/src/mcp-server/tools/agentsRetrieve.ts +0 -37
  244. package/packages/orq-rc/src/mcp-server/tools/agentsRun.ts +0 -37
  245. package/packages/orq-rc/src/mcp-server/tools/agentsStream.ts +0 -40
  246. package/packages/orq-rc/src/mcp-server/tools/agentsStreamRun.ts +0 -37
  247. package/packages/orq-rc/src/mcp-server/tools/agentsUpdate.ts +0 -40
  248. package/packages/orq-rc/src/mcp-server/tools/chunkingParse.ts +0 -37
  249. package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +0 -37
  250. package/packages/orq-rc/src/mcp-server/tools/contactsDelete.ts +0 -35
  251. package/packages/orq-rc/src/mcp-server/tools/contactsList.ts +0 -37
  252. package/packages/orq-rc/src/mcp-server/tools/contactsRetrieve.ts +0 -37
  253. package/packages/orq-rc/src/mcp-server/tools/contactsUpdate.ts +0 -37
  254. package/packages/orq-rc/src/mcp-server/tools/conversationsCreate.ts +0 -37
  255. package/packages/orq-rc/src/mcp-server/tools/conversationsDelete.ts +0 -35
  256. package/packages/orq-rc/src/mcp-server/tools/conversationsGenerateName.ts +0 -40
  257. package/packages/orq-rc/src/mcp-server/tools/conversationsList.ts +0 -41
  258. package/packages/orq-rc/src/mcp-server/tools/conversationsRetrieve.ts +0 -37
  259. package/packages/orq-rc/src/mcp-server/tools/conversationsUpdate.ts +0 -40
  260. package/packages/orq-rc/src/mcp-server/tools/datasetsClear.ts +0 -35
  261. package/packages/orq-rc/src/mcp-server/tools/datasetsCreate.ts +0 -37
  262. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoint.ts +0 -37
  263. package/packages/orq-rc/src/mcp-server/tools/datasetsDelete.ts +0 -35
  264. package/packages/orq-rc/src/mcp-server/tools/datasetsDeleteDatapoint.ts +0 -35
  265. package/packages/orq-rc/src/mcp-server/tools/datasetsList.ts +0 -37
  266. package/packages/orq-rc/src/mcp-server/tools/datasetsListDatapoints.ts +0 -37
  267. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieve.ts +0 -37
  268. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieveDatapoint.ts +0 -37
  269. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdate.ts +0 -37
  270. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdateDatapoint.ts +0 -35
  271. package/packages/orq-rc/src/mcp-server/tools/deploymentsGetConfig.ts +0 -37
  272. package/packages/orq-rc/src/mcp-server/tools/deploymentsInvoke.ts +0 -37
  273. package/packages/orq-rc/src/mcp-server/tools/deploymentsList.ts +0 -37
  274. package/packages/orq-rc/src/mcp-server/tools/deploymentsMetricsCreate.ts +0 -37
  275. package/packages/orq-rc/src/mcp-server/tools/deploymentsStream.ts +0 -37
  276. package/packages/orq-rc/src/mcp-server/tools/evalsAll.ts +0 -35
  277. package/packages/orq-rc/src/mcp-server/tools/evalsCreate.ts +0 -35
  278. package/packages/orq-rc/src/mcp-server/tools/evalsDelete.ts +0 -33
  279. package/packages/orq-rc/src/mcp-server/tools/evalsInvoke.ts +0 -35
  280. package/packages/orq-rc/src/mcp-server/tools/evalsUpdate.ts +0 -35
  281. package/packages/orq-rc/src/mcp-server/tools/evaluatorsGetV2EvaluatorsIdVersions.ts +0 -39
  282. package/packages/orq-rc/src/mcp-server/tools/evaluatorsGetV2EvaluatorsIdVersionsVersionId.ts +0 -40
  283. package/packages/orq-rc/src/mcp-server/tools/feedbackCreate.ts +0 -37
  284. package/packages/orq-rc/src/mcp-server/tools/filesCreate.ts +0 -37
  285. package/packages/orq-rc/src/mcp-server/tools/filesDelete.ts +0 -33
  286. package/packages/orq-rc/src/mcp-server/tools/filesGet.ts +0 -37
  287. package/packages/orq-rc/src/mcp-server/tools/filesList.ts +0 -37
  288. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreate.ts +0 -35
  289. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateChunks.ts +0 -35
  290. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateDatasource.ts +0 -35
  291. package/packages/orq-rc/src/mcp-server/tools/knowledgeDelete.ts +0 -35
  292. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunk.ts +0 -33
  293. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunks.ts +0 -35
  294. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteDatasource.ts +0 -35
  295. package/packages/orq-rc/src/mcp-server/tools/knowledgeGetChunksCount.ts +0 -35
  296. package/packages/orq-rc/src/mcp-server/tools/knowledgeList.ts +0 -37
  297. package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunks.ts +0 -35
  298. package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunksPaginated.ts +0 -35
  299. package/packages/orq-rc/src/mcp-server/tools/knowledgeListDatasources.ts +0 -35
  300. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieve.ts +0 -37
  301. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveChunk.ts +0 -35
  302. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveDatasource.ts +0 -35
  303. package/packages/orq-rc/src/mcp-server/tools/knowledgeSearch.ts +0 -37
  304. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdate.ts +0 -35
  305. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateChunk.ts +0 -35
  306. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateDatasource.ts +0 -35
  307. package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreate.ts +0 -35
  308. package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreateDocument.ts +0 -37
  309. package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreateMemory.ts +0 -37
  310. package/packages/orq-rc/src/mcp-server/tools/memoryStoresDelete.ts +0 -35
  311. package/packages/orq-rc/src/mcp-server/tools/memoryStoresDeleteDocument.ts +0 -40
  312. package/packages/orq-rc/src/mcp-server/tools/memoryStoresDeleteMemory.ts +0 -40
  313. package/packages/orq-rc/src/mcp-server/tools/memoryStoresList.ts +0 -37
  314. package/packages/orq-rc/src/mcp-server/tools/memoryStoresListDocuments.ts +0 -37
  315. package/packages/orq-rc/src/mcp-server/tools/memoryStoresListMemories.ts +0 -37
  316. package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieve.ts +0 -37
  317. package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieveDocument.ts +0 -37
  318. package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieveMemory.ts +0 -37
  319. package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdate.ts +0 -37
  320. package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdateDocument.ts +0 -37
  321. package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdateMemory.ts +0 -37
  322. package/packages/orq-rc/src/mcp-server/tools/modelsList.ts +0 -30
  323. package/packages/orq-rc/src/mcp-server/tools/promptsCreate.ts +0 -35
  324. package/packages/orq-rc/src/mcp-server/tools/promptsDelete.ts +0 -33
  325. package/packages/orq-rc/src/mcp-server/tools/promptsGetVersion.ts +0 -37
  326. package/packages/orq-rc/src/mcp-server/tools/promptsList.ts +0 -37
  327. package/packages/orq-rc/src/mcp-server/tools/promptsListVersions.ts +0 -37
  328. package/packages/orq-rc/src/mcp-server/tools/promptsRetrieve.ts +0 -37
  329. package/packages/orq-rc/src/mcp-server/tools/promptsUpdate.ts +0 -35
  330. package/packages/orq-rc/src/mcp-server/tools/remoteconfigsRetrieve.ts +0 -36
  331. package/packages/orq-rc/src/mcp-server/tools/routerChatCompletions.ts +0 -37
  332. package/packages/orq-rc/src/mcp-server/tools/routerImagesGenerate.ts +0 -37
  333. package/packages/orq-rc/src/mcp-server/tools/toolsCreate.ts +0 -37
  334. package/packages/orq-rc/src/mcp-server/tools/toolsDelete.ts +0 -35
  335. package/packages/orq-rc/src/mcp-server/tools/toolsGetV2ToolsToolIdVersions.ts +0 -37
  336. package/packages/orq-rc/src/mcp-server/tools/toolsGetV2ToolsToolIdVersionsVersionId.ts +0 -39
  337. package/packages/orq-rc/src/mcp-server/tools/toolsList.ts +0 -37
  338. package/packages/orq-rc/src/mcp-server/tools/toolsRetrieve.ts +0 -37
  339. package/packages/orq-rc/src/mcp-server/tools/toolsUpdate.ts +0 -37
  340. package/packages/orq-rc/src/mcp-server/tools.ts +0 -133
  341. package/packages/orq-rc/src/models/components/actionreviewedstreamingevent.ts +0 -173
  342. package/packages/orq-rc/src/models/components/actionreviewrequestedstreamingevent.ts +0 -309
  343. package/packages/orq-rc/src/models/components/agenterroredstreamingevent.ts +0 -125
  344. package/packages/orq-rc/src/models/components/agentexecutionstartedstreamingevent.ts +0 -150
  345. package/packages/orq-rc/src/models/components/agenthandedoffstreamingevent.ts +0 -125
  346. package/packages/orq-rc/src/models/components/agentinactivestreamingevent.ts +0 -801
  347. package/packages/orq-rc/src/models/components/agentmessagecreatedstreamingevent.ts +0 -305
  348. package/packages/orq-rc/src/models/components/agentresponsemessage.ts +0 -185
  349. package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +0 -822
  350. package/packages/orq-rc/src/models/components/agentthoughtstreamingevent.ts +0 -1399
  351. package/packages/orq-rc/src/models/components/audiocontentpartschema.ts +0 -136
  352. package/packages/orq-rc/src/models/components/conversationresponse.ts +0 -194
  353. package/packages/orq-rc/src/models/components/createagentresponse.ts +0 -340
  354. package/packages/orq-rc/src/models/components/datapart.ts +0 -58
  355. package/packages/orq-rc/src/models/components/errorstreamingevent.ts +0 -112
  356. package/packages/orq-rc/src/models/components/executionnamedstreamingevent.ts +0 -125
  357. package/packages/orq-rc/src/models/components/executionreviewedstreamingevent.ts +0 -105
  358. package/packages/orq-rc/src/models/components/executionreviewrequiredstreamingevent.ts +0 -113
  359. package/packages/orq-rc/src/models/components/filecontentpartschema.ts +0 -87
  360. package/packages/orq-rc/src/models/components/filepart.ts +0 -218
  361. package/packages/orq-rc/src/models/components/imagecontentpartschema.ts +0 -268
  362. package/packages/orq-rc/src/models/components/index.ts +0 -55
  363. package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +0 -5271
  364. package/packages/orq-rc/src/models/components/partdelta.ts +0 -80
  365. package/packages/orq-rc/src/models/components/partdeltaevent.ts +0 -120
  366. package/packages/orq-rc/src/models/components/partdoneevent.ts +0 -216
  367. package/packages/orq-rc/src/models/components/publiccontact.ts +0 -99
  368. package/packages/orq-rc/src/models/components/reasoningpart.ts +0 -90
  369. package/packages/orq-rc/src/models/components/reasoningpartschema.ts +0 -71
  370. package/packages/orq-rc/src/models/components/redactedreasoningpartschema.ts +0 -66
  371. package/packages/orq-rc/src/models/components/refusalpartschema.ts +0 -64
  372. package/packages/orq-rc/src/models/components/responsedoneevent.ts +0 -526
  373. package/packages/orq-rc/src/models/components/responsefailedevent.ts +0 -118
  374. package/packages/orq-rc/src/models/components/responsestartedevent.ts +0 -124
  375. package/packages/orq-rc/src/models/components/responsestreamingevent.ts +0 -148
  376. package/packages/orq-rc/src/models/components/reviewoutcome.ts +0 -27
  377. package/packages/orq-rc/src/models/components/security.ts +0 -56
  378. package/packages/orq-rc/src/models/components/textcontentpartschema.ts +0 -207
  379. package/packages/orq-rc/src/models/components/textpart.ts +0 -54
  380. package/packages/orq-rc/src/models/components/thinkingconfigdisabledschema.ts +0 -59
  381. package/packages/orq-rc/src/models/components/thinkingconfigenabledschema.ts +0 -106
  382. package/packages/orq-rc/src/models/components/timeoutstreamingevent.ts +0 -108
  383. package/packages/orq-rc/src/models/components/toolcallpart.ts +0 -83
  384. package/packages/orq-rc/src/models/components/tooldoneevent.ts +0 -121
  385. package/packages/orq-rc/src/models/components/toolexecutionfailedstreamingevent.ts +0 -392
  386. package/packages/orq-rc/src/models/components/toolexecutionfinishedstreamingevent.ts +0 -360
  387. package/packages/orq-rc/src/models/components/toolexecutionstartedstreamingevent.ts +0 -336
  388. package/packages/orq-rc/src/models/components/toolfailedevent.ts +0 -123
  389. package/packages/orq-rc/src/models/components/toolresultpart.ts +0 -71
  390. package/packages/orq-rc/src/models/components/toolreviewdoneevent.ts +0 -130
  391. package/packages/orq-rc/src/models/components/toolreviewrequestedevent.ts +0 -141
  392. package/packages/orq-rc/src/models/components/toolstartedevent.ts +0 -132
  393. package/packages/orq-rc/src/models/errors/apierror.ts +0 -40
  394. package/packages/orq-rc/src/models/errors/createagentrequest.ts +0 -67
  395. package/packages/orq-rc/src/models/errors/createeval.ts +0 -67
  396. package/packages/orq-rc/src/models/errors/deleteagent.ts +0 -67
  397. package/packages/orq-rc/src/models/errors/deletecontact.ts +0 -78
  398. package/packages/orq-rc/src/models/errors/deleteconversation.ts +0 -67
  399. package/packages/orq-rc/src/models/errors/deleteeval.ts +0 -67
  400. package/packages/orq-rc/src/models/errors/generateconversationname.ts +0 -132
  401. package/packages/orq-rc/src/models/errors/getevals.ts +0 -67
  402. package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -67
  403. package/packages/orq-rc/src/models/errors/getv2evaluatorsidversions.ts +0 -67
  404. package/packages/orq-rc/src/models/errors/getv2evaluatorsidversionsversionid.ts +0 -69
  405. package/packages/orq-rc/src/models/errors/getv2toolstoolidversions.ts +0 -67
  406. package/packages/orq-rc/src/models/errors/getv2toolstoolidversionsversionid.ts +0 -69
  407. package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -77
  408. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
  409. package/packages/orq-rc/src/models/errors/index.ts +0 -35
  410. package/packages/orq-rc/src/models/errors/invokeeval.ts +0 -128
  411. package/packages/orq-rc/src/models/errors/orqerror.ts +0 -35
  412. package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +0 -50
  413. package/packages/orq-rc/src/models/errors/retrieveagentrequest.ts +0 -67
  414. package/packages/orq-rc/src/models/errors/retrievecontact.ts +0 -78
  415. package/packages/orq-rc/src/models/errors/retrieveconversation.ts +0 -67
  416. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -109
  417. package/packages/orq-rc/src/models/errors/streamagent.ts +0 -67
  418. package/packages/orq-rc/src/models/errors/streamrunagent.ts +0 -67
  419. package/packages/orq-rc/src/models/errors/updateagent.ts +0 -67
  420. package/packages/orq-rc/src/models/errors/updatecontact.ts +0 -70
  421. package/packages/orq-rc/src/models/errors/updateconversation.ts +0 -67
  422. package/packages/orq-rc/src/models/errors/updateeval.ts +0 -67
  423. package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -67
  424. package/packages/orq-rc/src/models/errors/updatetool.ts +0 -78
  425. package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -63
  426. package/packages/orq-rc/src/models/operations/createagentrequest.ts +0 -8610
  427. package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +0 -770
  428. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +0 -8948
  429. package/packages/orq-rc/src/models/operations/createchunk.ts +0 -341
  430. package/packages/orq-rc/src/models/operations/createcontact.ts +0 -237
  431. package/packages/orq-rc/src/models/operations/createconversation.ts +0 -314
  432. package/packages/orq-rc/src/models/operations/createdataset.ts +0 -257
  433. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +0 -4044
  434. package/packages/orq-rc/src/models/operations/createdatasource.ts +0 -662
  435. package/packages/orq-rc/src/models/operations/createeval.ts +0 -5397
  436. package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -226
  437. package/packages/orq-rc/src/models/operations/createimage.ts +0 -966
  438. package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -1489
  439. package/packages/orq-rc/src/models/operations/creatememory.ts +0 -241
  440. package/packages/orq-rc/src/models/operations/creatememorydocument.ts +0 -245
  441. package/packages/orq-rc/src/models/operations/creatememorystore.ts +0 -310
  442. package/packages/orq-rc/src/models/operations/createprompt.ts +0 -5320
  443. package/packages/orq-rc/src/models/operations/createtool.ts +0 -3791
  444. package/packages/orq-rc/src/models/operations/deleteagent.ts +0 -63
  445. package/packages/orq-rc/src/models/operations/deletechunk.ts +0 -81
  446. package/packages/orq-rc/src/models/operations/deletechunks.ts +0 -198
  447. package/packages/orq-rc/src/models/operations/deletecontact.ts +0 -54
  448. package/packages/orq-rc/src/models/operations/deleteconversation.ts +0 -63
  449. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -72
  450. package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -63
  451. package/packages/orq-rc/src/models/operations/deletedatasource.ts +0 -72
  452. package/packages/orq-rc/src/models/operations/deleteeval.ts +0 -51
  453. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +0 -63
  454. package/packages/orq-rc/src/models/operations/deletememory.ts +0 -72
  455. package/packages/orq-rc/src/models/operations/deletememorydocument.ts +0 -83
  456. package/packages/orq-rc/src/models/operations/deletememorystore.ts +0 -63
  457. package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -54
  458. package/packages/orq-rc/src/models/operations/deletetool.ts +0 -60
  459. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -3596
  460. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -7042
  461. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -1136
  462. package/packages/orq-rc/src/models/operations/deployments.ts +0 -2005
  463. package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -7134
  464. package/packages/orq-rc/src/models/operations/filedelete.ts +0 -63
  465. package/packages/orq-rc/src/models/operations/fileget.ts +0 -181
  466. package/packages/orq-rc/src/models/operations/filelist.ts +0 -268
  467. package/packages/orq-rc/src/models/operations/fileupload.ts +0 -258
  468. package/packages/orq-rc/src/models/operations/generateconversationname.ts +0 -319
  469. package/packages/orq-rc/src/models/operations/getallmemories.ts +0 -280
  470. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +0 -305
  471. package/packages/orq-rc/src/models/operations/getallmemorystores.ts +0 -325
  472. package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -1991
  473. package/packages/orq-rc/src/models/operations/getalltools.ts +0 -2214
  474. package/packages/orq-rc/src/models/operations/getchunkscount.ts +0 -185
  475. package/packages/orq-rc/src/models/operations/getevals.ts +0 -4268
  476. package/packages/orq-rc/src/models/operations/getonechunk.ts +0 -258
  477. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +0 -1070
  478. package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -1875
  479. package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -1892
  480. package/packages/orq-rc/src/models/operations/getv2evaluatorsidversions.ts +0 -274
  481. package/packages/orq-rc/src/models/operations/getv2evaluatorsidversionsversionid.ts +0 -193
  482. package/packages/orq-rc/src/models/operations/getv2toolstoolidversions.ts +0 -276
  483. package/packages/orq-rc/src/models/operations/getv2toolstoolidversionsversionid.ts +0 -194
  484. package/packages/orq-rc/src/models/operations/index.ts +0 -106
  485. package/packages/orq-rc/src/models/operations/invokeagent.ts +0 -957
  486. package/packages/orq-rc/src/models/operations/invokeeval.ts +0 -1878
  487. package/packages/orq-rc/src/models/operations/listagents.ts +0 -3811
  488. package/packages/orq-rc/src/models/operations/listchunks.ts +0 -395
  489. package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +0 -408
  490. package/packages/orq-rc/src/models/operations/listcontacts.ts +0 -420
  491. package/packages/orq-rc/src/models/operations/listconversations.ts +0 -151
  492. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +0 -2486
  493. package/packages/orq-rc/src/models/operations/listdatasets.ts +0 -334
  494. package/packages/orq-rc/src/models/operations/listdatasources.ts +0 -363
  495. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +0 -1048
  496. package/packages/orq-rc/src/models/operations/listmodels.ts +0 -207
  497. package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -1989
  498. package/packages/orq-rc/src/models/operations/parse.ts +0 -945
  499. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -146
  500. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +0 -3956
  501. package/packages/orq-rc/src/models/operations/retrievecontact.ts +0 -180
  502. package/packages/orq-rc/src/models/operations/retrieveconversation.ts +0 -262
  503. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -2334
  504. package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -246
  505. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +0 -231
  506. package/packages/orq-rc/src/models/operations/retrievememory.ts +0 -183
  507. package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +0 -192
  508. package/packages/orq-rc/src/models/operations/retrievememorystore.ts +0 -234
  509. package/packages/orq-rc/src/models/operations/retrievetool.ts +0 -2262
  510. package/packages/orq-rc/src/models/operations/runagent.ts +0 -6502
  511. package/packages/orq-rc/src/models/operations/searchknowledge.ts +0 -2775
  512. package/packages/orq-rc/src/models/operations/streamagent.ts +0 -838
  513. package/packages/orq-rc/src/models/operations/streamrunagent.ts +0 -6833
  514. package/packages/orq-rc/src/models/operations/updateagent.ts +0 -9054
  515. package/packages/orq-rc/src/models/operations/updatechunk.ts +0 -361
  516. package/packages/orq-rc/src/models/operations/updatecontact.ts +0 -280
  517. package/packages/orq-rc/src/models/operations/updateconversation.ts +0 -377
  518. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +0 -4058
  519. package/packages/orq-rc/src/models/operations/updatedataset.ts +0 -326
  520. package/packages/orq-rc/src/models/operations/updatedatasource.ts +0 -288
  521. package/packages/orq-rc/src/models/operations/updateeval.ts +0 -5776
  522. package/packages/orq-rc/src/models/operations/updateknowledge.ts +0 -1925
  523. package/packages/orq-rc/src/models/operations/updatememory.ts +0 -250
  524. package/packages/orq-rc/src/models/operations/updatememorydocument.ts +0 -254
  525. package/packages/orq-rc/src/models/operations/updatememorystore.ts +0 -375
  526. package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -5618
  527. package/packages/orq-rc/src/models/operations/updatetool.ts +0 -4114
  528. package/packages/orq-rc/src/sdk/agents.ts +0 -196
  529. package/packages/orq-rc/src/sdk/chunking.ts +0 -27
  530. package/packages/orq-rc/src/sdk/contacts.ts +0 -99
  531. package/packages/orq-rc/src/sdk/conversations.ts +0 -125
  532. package/packages/orq-rc/src/sdk/datasets.ts +0 -204
  533. package/packages/orq-rc/src/sdk/deployments.ts +0 -89
  534. package/packages/orq-rc/src/sdk/evals.ts +0 -84
  535. package/packages/orq-rc/src/sdk/evaluators.ts +0 -45
  536. package/packages/orq-rc/src/sdk/feedback.ts +0 -27
  537. package/packages/orq-rc/src/sdk/files.ts +0 -78
  538. package/packages/orq-rc/src/sdk/index.ts +0 -5
  539. package/packages/orq-rc/src/sdk/knowledge.ts +0 -309
  540. package/packages/orq-rc/src/sdk/memorystores.ts +0 -286
  541. package/packages/orq-rc/src/sdk/metrics.ts +0 -27
  542. package/packages/orq-rc/src/sdk/models.ts +0 -25
  543. package/packages/orq-rc/src/sdk/prompts.ts +0 -126
  544. package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
  545. package/packages/orq-rc/src/sdk/responses.ts +0 -34
  546. package/packages/orq-rc/src/sdk/router.ts +0 -52
  547. package/packages/orq-rc/src/sdk/sdk.ts +0 -109
  548. package/packages/orq-rc/src/sdk/tools.ts +0 -135
  549. package/packages/orq-rc/src/types/async.ts +0 -68
  550. package/packages/orq-rc/src/types/blobs.ts +0 -32
  551. package/packages/orq-rc/src/types/constdatetime.ts +0 -15
  552. package/packages/orq-rc/src/types/enums.ts +0 -45
  553. package/packages/orq-rc/src/types/fp.ts +0 -50
  554. package/packages/orq-rc/src/types/index.ts +0 -11
  555. package/packages/orq-rc/src/types/operations.ts +0 -105
  556. package/packages/orq-rc/src/types/rfcdate.ts +0 -54
  557. package/packages/orq-rc/src/types/streams.ts +0 -21
  558. package/packages/orq-rc/src/types/unrecognized.ts +0 -35
  559. package/packages/orq-rc/tsconfig.json +0 -40
@@ -1,4114 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
- import {
8
- collectExtraKeys as collectExtraKeys$,
9
- safeParse,
10
- } from "../../lib/schemas.js";
11
- import { ClosedEnum } from "../../types/enums.js";
12
- import { Result as SafeParseResult } from "../../types/fp.js";
13
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
14
-
15
- /**
16
- * 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.
17
- */
18
- export const UpdateToolRequestBodyToolsRequest5Status = {
19
- Live: "live",
20
- Draft: "draft",
21
- Pending: "pending",
22
- Published: "published",
23
- } as const;
24
- /**
25
- * 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.
26
- */
27
- export type UpdateToolRequestBodyToolsRequest5Status = ClosedEnum<
28
- typeof UpdateToolRequestBodyToolsRequest5Status
29
- >;
30
-
31
- /**
32
- * The type must be "object"
33
- */
34
- export const UpdateToolRequestBodyToolsRequest5CodeToolType = {
35
- Object: "object",
36
- } as const;
37
- /**
38
- * The type must be "object"
39
- */
40
- export type UpdateToolRequestBodyToolsRequest5CodeToolType = ClosedEnum<
41
- typeof UpdateToolRequestBodyToolsRequest5CodeToolType
42
- >;
43
-
44
- /**
45
- * 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.
46
- */
47
- export type UpdateToolRequestBodyToolsParameters = {
48
- /**
49
- * The type must be "object"
50
- */
51
- type: UpdateToolRequestBodyToolsRequest5CodeToolType;
52
- /**
53
- * The properties of the function parameters
54
- */
55
- properties: { [k: string]: any };
56
- /**
57
- * Array of required parameter names
58
- */
59
- required: Array<string>;
60
- additionalProperties?: { [k: string]: any } | undefined;
61
- };
62
-
63
- export const UpdateToolRequestBodyLanguage = {
64
- Python: "python",
65
- } as const;
66
- export type UpdateToolRequestBodyLanguage = ClosedEnum<
67
- typeof UpdateToolRequestBodyLanguage
68
- >;
69
-
70
- export type UpdateToolRequestBodyCodeTool = {
71
- /**
72
- * 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.
73
- */
74
- parameters?: UpdateToolRequestBodyToolsParameters | undefined;
75
- language: UpdateToolRequestBodyLanguage;
76
- /**
77
- * The code to execute.
78
- */
79
- code: string;
80
- };
81
-
82
- /**
83
- * Updates an existing code execution tool configuration.
84
- */
85
- export type UpdateCodeExecutionTool = {
86
- /**
87
- * Entity storage path in the format: `project/folder/subfolder/...`
88
- *
89
- * @remarks
90
- *
91
- * The first element identifies the project, followed by nested folders (auto-created as needed).
92
- *
93
- * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
94
- */
95
- path?: string | undefined;
96
- /**
97
- * Unique key of the tool as it will be displayed in the UI
98
- */
99
- key?: string | undefined;
100
- /**
101
- * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
102
- */
103
- displayName?: string | undefined;
104
- /**
105
- * 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.
106
- */
107
- description?: string | undefined;
108
- /**
109
- * The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
110
- */
111
- status?: UpdateToolRequestBodyToolsRequest5Status | undefined;
112
- type: "code";
113
- codeTool?: UpdateToolRequestBodyCodeTool | undefined;
114
- };
115
-
116
- /**
117
- * 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.
118
- */
119
- export const UpdateToolRequestBodyToolsRequest4Status = {
120
- Live: "live",
121
- Draft: "draft",
122
- Pending: "pending",
123
- Published: "published",
124
- } as const;
125
- /**
126
- * 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.
127
- */
128
- export type UpdateToolRequestBodyToolsRequest4Status = ClosedEnum<
129
- typeof UpdateToolRequestBodyToolsRequest4Status
130
- >;
131
-
132
- export type UpdateToolRequestBodyHeaders = {
133
- value: string;
134
- encrypted?: boolean | undefined;
135
- };
136
-
137
- export const UpdateToolRequestBodyToolsRequest4McpType = {
138
- Object: "object",
139
- } as const;
140
- export type UpdateToolRequestBodyToolsRequest4McpType = ClosedEnum<
141
- typeof UpdateToolRequestBodyToolsRequest4McpType
142
- >;
143
-
144
- export type UpdateToolRequestBodyToolsSchema = {
145
- type: UpdateToolRequestBodyToolsRequest4McpType;
146
- properties?: { [k: string]: any } | undefined;
147
- required?: Array<string> | undefined;
148
- };
149
-
150
- export type RequestBodyTools = {
151
- id?: string | undefined;
152
- name: string;
153
- description?: string | undefined;
154
- schema: UpdateToolRequestBodyToolsSchema;
155
- };
156
-
157
- /**
158
- * The connection type used by the MCP server
159
- */
160
- export const UpdateToolRequestBodyConnectionType = {
161
- Http: "http",
162
- Sse: "sse",
163
- } as const;
164
- /**
165
- * The connection type used by the MCP server
166
- */
167
- export type UpdateToolRequestBodyConnectionType = ClosedEnum<
168
- typeof UpdateToolRequestBodyConnectionType
169
- >;
170
-
171
- export type UpdateToolRequestBodyMcp = {
172
- /**
173
- * The MCP server URL (cached for execution)
174
- */
175
- serverUrl?: string | undefined;
176
- /**
177
- * HTTP headers for MCP server requests with encryption support
178
- */
179
- headers?: { [k: string]: UpdateToolRequestBodyHeaders } | undefined;
180
- /**
181
- * Array of tools available from the MCP server
182
- */
183
- tools?: Array<RequestBodyTools> | undefined;
184
- /**
185
- * The connection type used by the MCP server
186
- */
187
- connectionType?: UpdateToolRequestBodyConnectionType | undefined;
188
- };
189
-
190
- /**
191
- * Updates an existing MCP tool configuration.
192
- */
193
- export type UpdateMCPTool = {
194
- /**
195
- * Entity storage path in the format: `project/folder/subfolder/...`
196
- *
197
- * @remarks
198
- *
199
- * The first element identifies the project, followed by nested folders (auto-created as needed).
200
- *
201
- * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
202
- */
203
- path?: string | undefined;
204
- /**
205
- * Unique key of the tool as it will be displayed in the UI
206
- */
207
- key?: string | undefined;
208
- /**
209
- * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
210
- */
211
- displayName?: string | undefined;
212
- /**
213
- * 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.
214
- */
215
- description?: string | undefined;
216
- /**
217
- * 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.
218
- */
219
- status?: UpdateToolRequestBodyToolsRequest4Status | undefined;
220
- type: "mcp";
221
- mcp?: UpdateToolRequestBodyMcp | undefined;
222
- };
223
-
224
- /**
225
- * 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.
226
- */
227
- export const UpdateToolRequestBodyToolsRequestStatus = {
228
- Live: "live",
229
- Draft: "draft",
230
- Pending: "pending",
231
- Published: "published",
232
- } as const;
233
- /**
234
- * 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.
235
- */
236
- export type UpdateToolRequestBodyToolsRequestStatus = ClosedEnum<
237
- typeof UpdateToolRequestBodyToolsRequestStatus
238
- >;
239
-
240
- /**
241
- * The HTTP method to use.
242
- */
243
- export const UpdateToolRequestBodyMethod = {
244
- Get: "GET",
245
- Post: "POST",
246
- Put: "PUT",
247
- Delete: "DELETE",
248
- } as const;
249
- /**
250
- * The HTTP method to use.
251
- */
252
- export type UpdateToolRequestBodyMethod = ClosedEnum<
253
- typeof UpdateToolRequestBodyMethod
254
- >;
255
-
256
- export type UpdateToolHeaders2 = {
257
- value: string;
258
- encrypted?: boolean | undefined;
259
- };
260
-
261
- export type UpdateToolRequestBodyToolsHeaders = UpdateToolHeaders2 | string;
262
-
263
- /**
264
- * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
265
- */
266
- export type UpdateToolRequestBodyBlueprint = {
267
- /**
268
- * The URL to send the request to.
269
- */
270
- url: string;
271
- /**
272
- * The HTTP method to use.
273
- */
274
- method: UpdateToolRequestBodyMethod;
275
- /**
276
- * The headers to send with the request. Can be a string value or an object with value and encrypted properties.
277
- */
278
- headers?: { [k: string]: UpdateToolHeaders2 | string } | undefined;
279
- /**
280
- * The body to send with the request.
281
- */
282
- body?: { [k: string]: any } | undefined;
283
- };
284
-
285
- /**
286
- * The type of the argument.
287
- */
288
- export const UpdateToolRequestBodyToolsRequest3Type = {
289
- String: "string",
290
- Number: "number",
291
- Boolean: "boolean",
292
- } as const;
293
- /**
294
- * The type of the argument.
295
- */
296
- export type UpdateToolRequestBodyToolsRequest3Type = ClosedEnum<
297
- typeof UpdateToolRequestBodyToolsRequest3Type
298
- >;
299
-
300
- /**
301
- * The default value of the argument.
302
- */
303
- export type UpdateToolRequestBodyDefaultValue = string | number | boolean;
304
-
305
- export type UpdateToolRequestBodyArguments = {
306
- /**
307
- * The type of the argument.
308
- */
309
- type: UpdateToolRequestBodyToolsRequest3Type;
310
- /**
311
- * A description of the argument.
312
- */
313
- description: string;
314
- /**
315
- * 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.
316
- */
317
- sendToModel?: boolean | undefined;
318
- /**
319
- * The default value of the argument.
320
- */
321
- defaultValue?: string | number | boolean | undefined;
322
- };
323
-
324
- export type UpdateToolRequestBodyHttp = {
325
- /**
326
- * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
327
- */
328
- blueprint: UpdateToolRequestBodyBlueprint;
329
- /**
330
- * The arguments to send with the request. The keys will be used to replace the placeholders in the `blueprint` field.
331
- */
332
- arguments?: { [k: string]: UpdateToolRequestBodyArguments } | undefined;
333
- };
334
-
335
- /**
336
- * Updates an existing HTTP tool configuration.
337
- */
338
- export type UpdateHTTPTool = {
339
- /**
340
- * Entity storage path in the format: `project/folder/subfolder/...`
341
- *
342
- * @remarks
343
- *
344
- * The first element identifies the project, followed by nested folders (auto-created as needed).
345
- *
346
- * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
347
- */
348
- path?: string | undefined;
349
- /**
350
- * Unique key of the tool as it will be displayed in the UI
351
- */
352
- key?: string | undefined;
353
- /**
354
- * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
355
- */
356
- displayName?: string | undefined;
357
- /**
358
- * 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.
359
- */
360
- description?: string | undefined;
361
- /**
362
- * 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.
363
- */
364
- status?: UpdateToolRequestBodyToolsRequestStatus | undefined;
365
- type: "http";
366
- http?: UpdateToolRequestBodyHttp | undefined;
367
- };
368
-
369
- /**
370
- * 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.
371
- */
372
- export const UpdateToolRequestBodyToolsStatus = {
373
- Live: "live",
374
- Draft: "draft",
375
- Pending: "pending",
376
- Published: "published",
377
- } as const;
378
- /**
379
- * 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.
380
- */
381
- export type UpdateToolRequestBodyToolsStatus = ClosedEnum<
382
- typeof UpdateToolRequestBodyToolsStatus
383
- >;
384
-
385
- /**
386
- * 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.
387
- */
388
- export type UpdateToolRequestBodySchema = {
389
- /**
390
- * The JSON Schema type
391
- */
392
- type: string;
393
- /**
394
- * The properties of the JSON Schema object
395
- */
396
- properties: { [k: string]: any };
397
- /**
398
- * Array of required property names
399
- */
400
- required: Array<string>;
401
- additionalProperties?: { [k: string]: any } | undefined;
402
- };
403
-
404
- export type UpdateToolRequestBodyJsonSchema = {
405
- /**
406
- * 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.
407
- */
408
- name: string;
409
- /**
410
- * A description of what the response format is for. This will be shown to the user.
411
- */
412
- description: string;
413
- /**
414
- * 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.
415
- */
416
- schema: UpdateToolRequestBodySchema;
417
- /**
418
- * 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.
419
- */
420
- strict?: boolean | undefined;
421
- };
422
-
423
- /**
424
- * Updates an existing JSON Schema tool configuration.
425
- */
426
- export type UpdateJSONSchemaTool = {
427
- /**
428
- * Entity storage path in the format: `project/folder/subfolder/...`
429
- *
430
- * @remarks
431
- *
432
- * The first element identifies the project, followed by nested folders (auto-created as needed).
433
- *
434
- * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
435
- */
436
- path?: string | undefined;
437
- /**
438
- * Unique key of the tool as it will be displayed in the UI
439
- */
440
- key?: string | undefined;
441
- /**
442
- * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
443
- */
444
- displayName?: string | undefined;
445
- /**
446
- * 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.
447
- */
448
- description?: string | undefined;
449
- /**
450
- * 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.
451
- */
452
- status?: UpdateToolRequestBodyToolsStatus | undefined;
453
- type: "json_schema";
454
- jsonSchema?: UpdateToolRequestBodyJsonSchema | undefined;
455
- };
456
-
457
- /**
458
- * 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.
459
- */
460
- export const UpdateToolRequestBodyStatus = {
461
- Live: "live",
462
- Draft: "draft",
463
- Pending: "pending",
464
- Published: "published",
465
- } as const;
466
- /**
467
- * 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.
468
- */
469
- export type UpdateToolRequestBodyStatus = ClosedEnum<
470
- typeof UpdateToolRequestBodyStatus
471
- >;
472
-
473
- /**
474
- * The type must be "object"
475
- */
476
- export const UpdateToolRequestBodyToolsRequest1Type = {
477
- Object: "object",
478
- } as const;
479
- /**
480
- * The type must be "object"
481
- */
482
- export type UpdateToolRequestBodyToolsRequest1Type = ClosedEnum<
483
- typeof UpdateToolRequestBodyToolsRequest1Type
484
- >;
485
-
486
- /**
487
- * 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.
488
- */
489
- export type UpdateToolRequestBodyParameters = {
490
- /**
491
- * The type must be "object"
492
- */
493
- type: UpdateToolRequestBodyToolsRequest1Type;
494
- /**
495
- * The properties of the function parameters
496
- */
497
- properties: { [k: string]: any };
498
- /**
499
- * Array of required parameter names
500
- */
501
- required: Array<string>;
502
- additionalProperties?: { [k: string]: any } | undefined;
503
- };
504
-
505
- export type UpdateToolRequestBodyFunction = {
506
- /**
507
- * The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
508
- */
509
- name: string;
510
- /**
511
- * A description of what the function does, used by the model to choose when and how to call the function.
512
- */
513
- description?: string | undefined;
514
- /**
515
- * Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Currently only compatible with `OpenAI` models.
516
- */
517
- strict?: boolean | undefined;
518
- /**
519
- * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
520
- */
521
- parameters?: UpdateToolRequestBodyParameters | undefined;
522
- };
523
-
524
- /**
525
- * Updates an existing function tool configuration.
526
- */
527
- export type UpdateFunctionTool = {
528
- /**
529
- * Entity storage path in the format: `project/folder/subfolder/...`
530
- *
531
- * @remarks
532
- *
533
- * The first element identifies the project, followed by nested folders (auto-created as needed).
534
- *
535
- * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
536
- */
537
- path?: string | undefined;
538
- /**
539
- * Unique key of the tool as it will be displayed in the UI
540
- */
541
- key?: string | undefined;
542
- /**
543
- * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
544
- */
545
- displayName?: string | undefined;
546
- /**
547
- * 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.
548
- */
549
- description?: string | undefined;
550
- /**
551
- * 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.
552
- */
553
- status?: UpdateToolRequestBodyStatus | undefined;
554
- type: "function";
555
- function?: UpdateToolRequestBodyFunction | undefined;
556
- };
557
-
558
- /**
559
- * The tool to update
560
- */
561
- export type UpdateToolRequestBody =
562
- | UpdateFunctionTool
563
- | UpdateJSONSchemaTool
564
- | UpdateHTTPTool
565
- | UpdateMCPTool
566
- | UpdateCodeExecutionTool;
567
-
568
- export type UpdateToolRequest = {
569
- toolId: string;
570
- /**
571
- * The tool to update
572
- */
573
- requestBody?:
574
- | UpdateFunctionTool
575
- | UpdateJSONSchemaTool
576
- | UpdateHTTPTool
577
- | UpdateMCPTool
578
- | UpdateCodeExecutionTool
579
- | undefined;
580
- };
581
-
582
- /**
583
- * 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.
584
- */
585
- export const UpdateToolResponseBodyToolsResponse200ApplicationJSONStatus = {
586
- Live: "live",
587
- Draft: "draft",
588
- Pending: "pending",
589
- Published: "published",
590
- } as const;
591
- /**
592
- * 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.
593
- */
594
- export type UpdateToolResponseBodyToolsResponse200ApplicationJSONStatus =
595
- ClosedEnum<
596
- typeof UpdateToolResponseBodyToolsResponse200ApplicationJSONStatus
597
- >;
598
-
599
- /**
600
- * The type must be "object"
601
- */
602
- export const UpdateToolResponseBodyToolsResponse200ApplicationJson5Type = {
603
- Object: "object",
604
- } as const;
605
- /**
606
- * The type must be "object"
607
- */
608
- export type UpdateToolResponseBodyToolsResponse200ApplicationJson5Type =
609
- ClosedEnum<typeof UpdateToolResponseBodyToolsResponse200ApplicationJson5Type>;
610
-
611
- /**
612
- * 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.
613
- */
614
- export type UpdateToolResponseBodyToolsParameters = {
615
- /**
616
- * The type must be "object"
617
- */
618
- type: UpdateToolResponseBodyToolsResponse200ApplicationJson5Type;
619
- /**
620
- * The properties of the function parameters
621
- */
622
- properties: { [k: string]: any };
623
- /**
624
- * Array of required parameter names
625
- */
626
- required: Array<string>;
627
- additionalProperties?: { [k: string]: any } | undefined;
628
- };
629
-
630
- export const UpdateToolResponseBodyLanguage = {
631
- Python: "python",
632
- } as const;
633
- export type UpdateToolResponseBodyLanguage = ClosedEnum<
634
- typeof UpdateToolResponseBodyLanguage
635
- >;
636
-
637
- export type UpdateToolResponseBodyCodeTool = {
638
- /**
639
- * 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.
640
- */
641
- parameters?: UpdateToolResponseBodyToolsParameters | undefined;
642
- language: UpdateToolResponseBodyLanguage;
643
- /**
644
- * The code to execute.
645
- */
646
- code: string;
647
- };
648
-
649
- /**
650
- * Executes code snippets in a sandboxed environment, currently supporting Python.
651
- */
652
- export type UpdateToolResponseBodyCodeExecutionTool = {
653
- id?: string | undefined;
654
- /**
655
- * Entity storage path in the format: `project/folder/subfolder/...`
656
- *
657
- * @remarks
658
- *
659
- * The first element identifies the project, followed by nested folders (auto-created as needed).
660
- *
661
- * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
662
- */
663
- path: string;
664
- /**
665
- * Unique key of the tool as it will be displayed in the UI
666
- */
667
- key: string;
668
- /**
669
- * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
670
- */
671
- displayName?: string | undefined;
672
- /**
673
- * 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.
674
- */
675
- description: string;
676
- /**
677
- * The id of the user that created the tool
678
- */
679
- createdById?: string | undefined;
680
- /**
681
- * The id of the user that last updated the tool
682
- */
683
- updatedById?: string | undefined;
684
- projectId: string;
685
- workspaceId: string;
686
- created: string;
687
- updated: string;
688
- /**
689
- * 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.
690
- */
691
- status?:
692
- | UpdateToolResponseBodyToolsResponse200ApplicationJSONStatus
693
- | undefined;
694
- versionHash?: string | undefined;
695
- type: "code";
696
- codeTool: UpdateToolResponseBodyCodeTool;
697
- };
698
-
699
- /**
700
- * 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.
701
- */
702
- export const UpdateToolResponseBodyToolsResponse200Status = {
703
- Live: "live",
704
- Draft: "draft",
705
- Pending: "pending",
706
- Published: "published",
707
- } as const;
708
- /**
709
- * 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.
710
- */
711
- export type UpdateToolResponseBodyToolsResponse200Status = ClosedEnum<
712
- typeof UpdateToolResponseBodyToolsResponse200Status
713
- >;
714
-
715
- export type UpdateToolResponseBodyHeaders = {
716
- value: string;
717
- encrypted?: boolean | undefined;
718
- };
719
-
720
- export const UpdateToolResponseBodyToolsResponse200ApplicationJson4Type = {
721
- Object: "object",
722
- } as const;
723
- export type UpdateToolResponseBodyToolsResponse200ApplicationJson4Type =
724
- ClosedEnum<typeof UpdateToolResponseBodyToolsResponse200ApplicationJson4Type>;
725
-
726
- export type UpdateToolResponseBodyToolsSchema = {
727
- type: UpdateToolResponseBodyToolsResponse200ApplicationJson4Type;
728
- properties?: { [k: string]: any } | undefined;
729
- required?: Array<string> | undefined;
730
- };
731
-
732
- export type UpdateToolResponseBodyTools = {
733
- id?: string | undefined;
734
- name: string;
735
- description?: string | undefined;
736
- schema: UpdateToolResponseBodyToolsSchema;
737
- };
738
-
739
- /**
740
- * The connection type used by the MCP server
741
- */
742
- export const UpdateToolResponseBodyConnectionType = {
743
- Http: "http",
744
- Sse: "sse",
745
- } as const;
746
- /**
747
- * The connection type used by the MCP server
748
- */
749
- export type UpdateToolResponseBodyConnectionType = ClosedEnum<
750
- typeof UpdateToolResponseBodyConnectionType
751
- >;
752
-
753
- export type UpdateToolResponseBodyMcp = {
754
- /**
755
- * The MCP server URL (cached for execution)
756
- */
757
- serverUrl: string;
758
- /**
759
- * HTTP headers for MCP server requests with encryption support
760
- */
761
- headers?: { [k: string]: UpdateToolResponseBodyHeaders } | undefined;
762
- /**
763
- * Array of tools available from the MCP server
764
- */
765
- tools: Array<UpdateToolResponseBodyTools>;
766
- /**
767
- * The connection type used by the MCP server
768
- */
769
- connectionType: UpdateToolResponseBodyConnectionType;
770
- };
771
-
772
- /**
773
- * A tool from a Model Context Protocol (MCP) server that provides standardized access to external capabilities.
774
- */
775
- export type UpdateToolResponseBodyMCPTool = {
776
- id?: string | undefined;
777
- /**
778
- * Entity storage path in the format: `project/folder/subfolder/...`
779
- *
780
- * @remarks
781
- *
782
- * The first element identifies the project, followed by nested folders (auto-created as needed).
783
- *
784
- * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
785
- */
786
- path: string;
787
- /**
788
- * Unique key of the tool as it will be displayed in the UI
789
- */
790
- key: string;
791
- /**
792
- * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
793
- */
794
- displayName?: string | undefined;
795
- /**
796
- * 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.
797
- */
798
- description: string;
799
- /**
800
- * The id of the user that created the tool
801
- */
802
- createdById?: string | undefined;
803
- /**
804
- * The id of the user that last updated the tool
805
- */
806
- updatedById?: string | undefined;
807
- projectId: string;
808
- workspaceId: string;
809
- created: string;
810
- updated: string;
811
- /**
812
- * 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.
813
- */
814
- status?: UpdateToolResponseBodyToolsResponse200Status | undefined;
815
- versionHash?: string | undefined;
816
- type: "mcp";
817
- mcp: UpdateToolResponseBodyMcp;
818
- };
819
-
820
- /**
821
- * 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.
822
- */
823
- export const UpdateToolResponseBodyToolsResponseStatus = {
824
- Live: "live",
825
- Draft: "draft",
826
- Pending: "pending",
827
- Published: "published",
828
- } as const;
829
- /**
830
- * 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.
831
- */
832
- export type UpdateToolResponseBodyToolsResponseStatus = ClosedEnum<
833
- typeof UpdateToolResponseBodyToolsResponseStatus
834
- >;
835
-
836
- /**
837
- * The HTTP method to use.
838
- */
839
- export const UpdateToolResponseBodyMethod = {
840
- Get: "GET",
841
- Post: "POST",
842
- Put: "PUT",
843
- Delete: "DELETE",
844
- } as const;
845
- /**
846
- * The HTTP method to use.
847
- */
848
- export type UpdateToolResponseBodyMethod = ClosedEnum<
849
- typeof UpdateToolResponseBodyMethod
850
- >;
851
-
852
- export type UpdateToolHeadersTools2 = {
853
- value: string;
854
- encrypted?: boolean | undefined;
855
- };
856
-
857
- export type UpdateToolResponseBodyToolsHeaders =
858
- | UpdateToolHeadersTools2
859
- | string;
860
-
861
- /**
862
- * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
863
- */
864
- export type UpdateToolResponseBodyBlueprint = {
865
- /**
866
- * The URL to send the request to.
867
- */
868
- url: string;
869
- /**
870
- * The HTTP method to use.
871
- */
872
- method: UpdateToolResponseBodyMethod;
873
- /**
874
- * The headers to send with the request. Can be a string value or an object with value and encrypted properties.
875
- */
876
- headers?: { [k: string]: UpdateToolHeadersTools2 | string } | undefined;
877
- /**
878
- * The body to send with the request.
879
- */
880
- body?: { [k: string]: any } | undefined;
881
- };
882
-
883
- /**
884
- * The type of the argument.
885
- */
886
- export const UpdateToolResponseBodyToolsResponse200ApplicationJson3Type = {
887
- String: "string",
888
- Number: "number",
889
- Boolean: "boolean",
890
- } as const;
891
- /**
892
- * The type of the argument.
893
- */
894
- export type UpdateToolResponseBodyToolsResponse200ApplicationJson3Type =
895
- ClosedEnum<typeof UpdateToolResponseBodyToolsResponse200ApplicationJson3Type>;
896
-
897
- /**
898
- * The default value of the argument.
899
- */
900
- export type UpdateToolResponseBodyDefaultValue = string | number | boolean;
901
-
902
- export type UpdateToolResponseBodyArguments = {
903
- /**
904
- * The type of the argument.
905
- */
906
- type: UpdateToolResponseBodyToolsResponse200ApplicationJson3Type;
907
- /**
908
- * A description of the argument.
909
- */
910
- description: string;
911
- /**
912
- * 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.
913
- */
914
- sendToModel?: boolean | undefined;
915
- /**
916
- * The default value of the argument.
917
- */
918
- defaultValue?: string | number | boolean | undefined;
919
- };
920
-
921
- export type UpdateToolResponseBodyHttp = {
922
- /**
923
- * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
924
- */
925
- blueprint: UpdateToolResponseBodyBlueprint;
926
- /**
927
- * The arguments to send with the request. The keys will be used to replace the placeholders in the `blueprint` field.
928
- */
929
- arguments?: { [k: string]: UpdateToolResponseBodyArguments } | undefined;
930
- };
931
-
932
- /**
933
- * Executes HTTP requests to interact with external APIs and web services using customizable blueprints.
934
- */
935
- export type UpdateToolResponseBodyHTTPTool = {
936
- id?: string | undefined;
937
- /**
938
- * Entity storage path in the format: `project/folder/subfolder/...`
939
- *
940
- * @remarks
941
- *
942
- * The first element identifies the project, followed by nested folders (auto-created as needed).
943
- *
944
- * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
945
- */
946
- path: string;
947
- /**
948
- * Unique key of the tool as it will be displayed in the UI
949
- */
950
- key: string;
951
- /**
952
- * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
953
- */
954
- displayName?: string | undefined;
955
- /**
956
- * 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.
957
- */
958
- description: string;
959
- /**
960
- * The id of the user that created the tool
961
- */
962
- createdById?: string | undefined;
963
- /**
964
- * The id of the user that last updated the tool
965
- */
966
- updatedById?: string | undefined;
967
- projectId: string;
968
- workspaceId: string;
969
- created: string;
970
- updated: string;
971
- /**
972
- * 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.
973
- */
974
- status?: UpdateToolResponseBodyToolsResponseStatus | undefined;
975
- versionHash?: string | undefined;
976
- type: "http";
977
- http: UpdateToolResponseBodyHttp;
978
- };
979
-
980
- /**
981
- * 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.
982
- */
983
- export const UpdateToolResponseBodyToolsStatus = {
984
- Live: "live",
985
- Draft: "draft",
986
- Pending: "pending",
987
- Published: "published",
988
- } as const;
989
- /**
990
- * 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.
991
- */
992
- export type UpdateToolResponseBodyToolsStatus = ClosedEnum<
993
- typeof UpdateToolResponseBodyToolsStatus
994
- >;
995
-
996
- /**
997
- * 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.
998
- */
999
- export type UpdateToolResponseBodySchema = {
1000
- /**
1001
- * The JSON Schema type
1002
- */
1003
- type: string;
1004
- /**
1005
- * The properties of the JSON Schema object
1006
- */
1007
- properties: { [k: string]: any };
1008
- /**
1009
- * Array of required property names
1010
- */
1011
- required: Array<string>;
1012
- additionalProperties?: { [k: string]: any } | undefined;
1013
- };
1014
-
1015
- export type UpdateToolResponseBodyJsonSchema = {
1016
- /**
1017
- * 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.
1018
- */
1019
- name: string;
1020
- /**
1021
- * A description of what the response format is for. This will be shown to the user.
1022
- */
1023
- description: string;
1024
- /**
1025
- * 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.
1026
- */
1027
- schema: UpdateToolResponseBodySchema;
1028
- /**
1029
- * 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.
1030
- */
1031
- strict?: boolean | undefined;
1032
- };
1033
-
1034
- /**
1035
- * A tool that enforces structured output format using JSON Schema for consistent response formatting.
1036
- */
1037
- export type UpdateToolResponseBodyJSONSchemaTool = {
1038
- id?: string | undefined;
1039
- /**
1040
- * Entity storage path in the format: `project/folder/subfolder/...`
1041
- *
1042
- * @remarks
1043
- *
1044
- * The first element identifies the project, followed by nested folders (auto-created as needed).
1045
- *
1046
- * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
1047
- */
1048
- path: string;
1049
- /**
1050
- * Unique key of the tool as it will be displayed in the UI
1051
- */
1052
- key: string;
1053
- /**
1054
- * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
1055
- */
1056
- displayName?: string | undefined;
1057
- /**
1058
- * 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.
1059
- */
1060
- description: string;
1061
- /**
1062
- * The id of the user that created the tool
1063
- */
1064
- createdById?: string | undefined;
1065
- /**
1066
- * The id of the user that last updated the tool
1067
- */
1068
- updatedById?: string | undefined;
1069
- projectId: string;
1070
- workspaceId: string;
1071
- created: string;
1072
- updated: string;
1073
- /**
1074
- * 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.
1075
- */
1076
- status?: UpdateToolResponseBodyToolsStatus | undefined;
1077
- versionHash?: string | undefined;
1078
- type: "json_schema";
1079
- jsonSchema: UpdateToolResponseBodyJsonSchema;
1080
- };
1081
-
1082
- /**
1083
- * 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.
1084
- */
1085
- export const UpdateToolResponseBodyStatus = {
1086
- Live: "live",
1087
- Draft: "draft",
1088
- Pending: "pending",
1089
- Published: "published",
1090
- } as const;
1091
- /**
1092
- * 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.
1093
- */
1094
- export type UpdateToolResponseBodyStatus = ClosedEnum<
1095
- typeof UpdateToolResponseBodyStatus
1096
- >;
1097
-
1098
- /**
1099
- * The type must be "object"
1100
- */
1101
- export const UpdateToolResponseBodyToolsResponse200ApplicationJson1Type = {
1102
- Object: "object",
1103
- } as const;
1104
- /**
1105
- * The type must be "object"
1106
- */
1107
- export type UpdateToolResponseBodyToolsResponse200ApplicationJson1Type =
1108
- ClosedEnum<typeof UpdateToolResponseBodyToolsResponse200ApplicationJson1Type>;
1109
-
1110
- /**
1111
- * 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.
1112
- */
1113
- export type UpdateToolResponseBodyParameters = {
1114
- /**
1115
- * The type must be "object"
1116
- */
1117
- type: UpdateToolResponseBodyToolsResponse200ApplicationJson1Type;
1118
- /**
1119
- * The properties of the function parameters
1120
- */
1121
- properties: { [k: string]: any };
1122
- /**
1123
- * Array of required parameter names
1124
- */
1125
- required: Array<string>;
1126
- additionalProperties?: { [k: string]: any } | undefined;
1127
- };
1128
-
1129
- export type UpdateToolResponseBodyFunction = {
1130
- /**
1131
- * 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.
1132
- */
1133
- name: string;
1134
- /**
1135
- * A description of what the function does, used by the model to choose when and how to call the function.
1136
- */
1137
- description?: string | undefined;
1138
- /**
1139
- * 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.
1140
- */
1141
- strict?: boolean | undefined;
1142
- /**
1143
- * 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.
1144
- */
1145
- parameters?: UpdateToolResponseBodyParameters | undefined;
1146
- };
1147
-
1148
- /**
1149
- * A custom function tool that allows the model to call predefined functions with structured parameters.
1150
- */
1151
- export type UpdateToolResponseBodyFunctionTool = {
1152
- id?: string | undefined;
1153
- /**
1154
- * Entity storage path in the format: `project/folder/subfolder/...`
1155
- *
1156
- * @remarks
1157
- *
1158
- * The first element identifies the project, followed by nested folders (auto-created as needed).
1159
- *
1160
- * With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
1161
- */
1162
- path: string;
1163
- /**
1164
- * Unique key of the tool as it will be displayed in the UI
1165
- */
1166
- key: string;
1167
- /**
1168
- * The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
1169
- */
1170
- displayName?: string | undefined;
1171
- /**
1172
- * 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.
1173
- */
1174
- description: string;
1175
- /**
1176
- * The id of the user that created the tool
1177
- */
1178
- createdById?: string | undefined;
1179
- /**
1180
- * The id of the user that last updated the tool
1181
- */
1182
- updatedById?: string | undefined;
1183
- projectId: string;
1184
- workspaceId: string;
1185
- created: string;
1186
- updated: string;
1187
- /**
1188
- * 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.
1189
- */
1190
- status?: UpdateToolResponseBodyStatus | undefined;
1191
- versionHash?: string | undefined;
1192
- type: "function";
1193
- function: UpdateToolResponseBodyFunction;
1194
- };
1195
-
1196
- /**
1197
- * Successfully updated the tool.
1198
- */
1199
- export type UpdateToolResponseBody =
1200
- | UpdateToolResponseBodyFunctionTool
1201
- | UpdateToolResponseBodyJSONSchemaTool
1202
- | UpdateToolResponseBodyHTTPTool
1203
- | UpdateToolResponseBodyMCPTool
1204
- | UpdateToolResponseBodyCodeExecutionTool;
1205
-
1206
- /** @internal */
1207
- export const UpdateToolRequestBodyToolsRequest5Status$inboundSchema:
1208
- z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequest5Status> = z
1209
- .nativeEnum(UpdateToolRequestBodyToolsRequest5Status);
1210
- /** @internal */
1211
- export const UpdateToolRequestBodyToolsRequest5Status$outboundSchema:
1212
- z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequest5Status> =
1213
- UpdateToolRequestBodyToolsRequest5Status$inboundSchema;
1214
-
1215
- /** @internal */
1216
- export const UpdateToolRequestBodyToolsRequest5CodeToolType$inboundSchema:
1217
- z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequest5CodeToolType> = z
1218
- .nativeEnum(UpdateToolRequestBodyToolsRequest5CodeToolType);
1219
- /** @internal */
1220
- export const UpdateToolRequestBodyToolsRequest5CodeToolType$outboundSchema:
1221
- z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequest5CodeToolType> =
1222
- UpdateToolRequestBodyToolsRequest5CodeToolType$inboundSchema;
1223
-
1224
- /** @internal */
1225
- export const UpdateToolRequestBodyToolsParameters$inboundSchema: z.ZodType<
1226
- UpdateToolRequestBodyToolsParameters,
1227
- z.ZodTypeDef,
1228
- unknown
1229
- > = collectExtraKeys$(
1230
- z.object({
1231
- type: UpdateToolRequestBodyToolsRequest5CodeToolType$inboundSchema,
1232
- properties: z.record(z.any()),
1233
- required: z.array(z.string()),
1234
- }).catchall(z.any()),
1235
- "additionalProperties",
1236
- true,
1237
- );
1238
- /** @internal */
1239
- export type UpdateToolRequestBodyToolsParameters$Outbound = {
1240
- type: string;
1241
- properties: { [k: string]: any };
1242
- required: Array<string>;
1243
- [additionalProperties: string]: unknown;
1244
- };
1245
-
1246
- /** @internal */
1247
- export const UpdateToolRequestBodyToolsParameters$outboundSchema: z.ZodType<
1248
- UpdateToolRequestBodyToolsParameters$Outbound,
1249
- z.ZodTypeDef,
1250
- UpdateToolRequestBodyToolsParameters
1251
- > = z.object({
1252
- type: UpdateToolRequestBodyToolsRequest5CodeToolType$outboundSchema,
1253
- properties: z.record(z.any()),
1254
- required: z.array(z.string()),
1255
- additionalProperties: z.record(z.any()).optional(),
1256
- }).transform((v) => {
1257
- return {
1258
- ...v.additionalProperties,
1259
- ...remap$(v, {
1260
- additionalProperties: null,
1261
- }),
1262
- };
1263
- });
1264
-
1265
- export function updateToolRequestBodyToolsParametersToJSON(
1266
- updateToolRequestBodyToolsParameters: UpdateToolRequestBodyToolsParameters,
1267
- ): string {
1268
- return JSON.stringify(
1269
- UpdateToolRequestBodyToolsParameters$outboundSchema.parse(
1270
- updateToolRequestBodyToolsParameters,
1271
- ),
1272
- );
1273
- }
1274
- export function updateToolRequestBodyToolsParametersFromJSON(
1275
- jsonString: string,
1276
- ): SafeParseResult<UpdateToolRequestBodyToolsParameters, SDKValidationError> {
1277
- return safeParse(
1278
- jsonString,
1279
- (x) =>
1280
- UpdateToolRequestBodyToolsParameters$inboundSchema.parse(JSON.parse(x)),
1281
- `Failed to parse 'UpdateToolRequestBodyToolsParameters' from JSON`,
1282
- );
1283
- }
1284
-
1285
- /** @internal */
1286
- export const UpdateToolRequestBodyLanguage$inboundSchema: z.ZodNativeEnum<
1287
- typeof UpdateToolRequestBodyLanguage
1288
- > = z.nativeEnum(UpdateToolRequestBodyLanguage);
1289
- /** @internal */
1290
- export const UpdateToolRequestBodyLanguage$outboundSchema: z.ZodNativeEnum<
1291
- typeof UpdateToolRequestBodyLanguage
1292
- > = UpdateToolRequestBodyLanguage$inboundSchema;
1293
-
1294
- /** @internal */
1295
- export const UpdateToolRequestBodyCodeTool$inboundSchema: z.ZodType<
1296
- UpdateToolRequestBodyCodeTool,
1297
- z.ZodTypeDef,
1298
- unknown
1299
- > = z.object({
1300
- parameters: z.lazy(() => UpdateToolRequestBodyToolsParameters$inboundSchema)
1301
- .optional(),
1302
- language: UpdateToolRequestBodyLanguage$inboundSchema,
1303
- code: z.string(),
1304
- });
1305
- /** @internal */
1306
- export type UpdateToolRequestBodyCodeTool$Outbound = {
1307
- parameters?: UpdateToolRequestBodyToolsParameters$Outbound | undefined;
1308
- language: string;
1309
- code: string;
1310
- };
1311
-
1312
- /** @internal */
1313
- export const UpdateToolRequestBodyCodeTool$outboundSchema: z.ZodType<
1314
- UpdateToolRequestBodyCodeTool$Outbound,
1315
- z.ZodTypeDef,
1316
- UpdateToolRequestBodyCodeTool
1317
- > = z.object({
1318
- parameters: z.lazy(() => UpdateToolRequestBodyToolsParameters$outboundSchema)
1319
- .optional(),
1320
- language: UpdateToolRequestBodyLanguage$outboundSchema,
1321
- code: z.string(),
1322
- });
1323
-
1324
- export function updateToolRequestBodyCodeToolToJSON(
1325
- updateToolRequestBodyCodeTool: UpdateToolRequestBodyCodeTool,
1326
- ): string {
1327
- return JSON.stringify(
1328
- UpdateToolRequestBodyCodeTool$outboundSchema.parse(
1329
- updateToolRequestBodyCodeTool,
1330
- ),
1331
- );
1332
- }
1333
- export function updateToolRequestBodyCodeToolFromJSON(
1334
- jsonString: string,
1335
- ): SafeParseResult<UpdateToolRequestBodyCodeTool, SDKValidationError> {
1336
- return safeParse(
1337
- jsonString,
1338
- (x) => UpdateToolRequestBodyCodeTool$inboundSchema.parse(JSON.parse(x)),
1339
- `Failed to parse 'UpdateToolRequestBodyCodeTool' from JSON`,
1340
- );
1341
- }
1342
-
1343
- /** @internal */
1344
- export const UpdateCodeExecutionTool$inboundSchema: z.ZodType<
1345
- UpdateCodeExecutionTool,
1346
- z.ZodTypeDef,
1347
- unknown
1348
- > = z.object({
1349
- path: z.string().optional(),
1350
- key: z.string().optional(),
1351
- display_name: z.string().optional(),
1352
- description: z.string().optional(),
1353
- status: UpdateToolRequestBodyToolsRequest5Status$inboundSchema.default(
1354
- "live",
1355
- ),
1356
- type: z.literal("code"),
1357
- code_tool: z.lazy(() => UpdateToolRequestBodyCodeTool$inboundSchema)
1358
- .optional(),
1359
- }).transform((v) => {
1360
- return remap$(v, {
1361
- "display_name": "displayName",
1362
- "code_tool": "codeTool",
1363
- });
1364
- });
1365
- /** @internal */
1366
- export type UpdateCodeExecutionTool$Outbound = {
1367
- path?: string | undefined;
1368
- key?: string | undefined;
1369
- display_name?: string | undefined;
1370
- description?: string | undefined;
1371
- status: string;
1372
- type: "code";
1373
- code_tool?: UpdateToolRequestBodyCodeTool$Outbound | undefined;
1374
- };
1375
-
1376
- /** @internal */
1377
- export const UpdateCodeExecutionTool$outboundSchema: z.ZodType<
1378
- UpdateCodeExecutionTool$Outbound,
1379
- z.ZodTypeDef,
1380
- UpdateCodeExecutionTool
1381
- > = z.object({
1382
- path: z.string().optional(),
1383
- key: z.string().optional(),
1384
- displayName: z.string().optional(),
1385
- description: z.string().optional(),
1386
- status: UpdateToolRequestBodyToolsRequest5Status$outboundSchema.default(
1387
- "live",
1388
- ),
1389
- type: z.literal("code"),
1390
- codeTool: z.lazy(() => UpdateToolRequestBodyCodeTool$outboundSchema)
1391
- .optional(),
1392
- }).transform((v) => {
1393
- return remap$(v, {
1394
- displayName: "display_name",
1395
- codeTool: "code_tool",
1396
- });
1397
- });
1398
-
1399
- export function updateCodeExecutionToolToJSON(
1400
- updateCodeExecutionTool: UpdateCodeExecutionTool,
1401
- ): string {
1402
- return JSON.stringify(
1403
- UpdateCodeExecutionTool$outboundSchema.parse(updateCodeExecutionTool),
1404
- );
1405
- }
1406
- export function updateCodeExecutionToolFromJSON(
1407
- jsonString: string,
1408
- ): SafeParseResult<UpdateCodeExecutionTool, SDKValidationError> {
1409
- return safeParse(
1410
- jsonString,
1411
- (x) => UpdateCodeExecutionTool$inboundSchema.parse(JSON.parse(x)),
1412
- `Failed to parse 'UpdateCodeExecutionTool' from JSON`,
1413
- );
1414
- }
1415
-
1416
- /** @internal */
1417
- export const UpdateToolRequestBodyToolsRequest4Status$inboundSchema:
1418
- z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequest4Status> = z
1419
- .nativeEnum(UpdateToolRequestBodyToolsRequest4Status);
1420
- /** @internal */
1421
- export const UpdateToolRequestBodyToolsRequest4Status$outboundSchema:
1422
- z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequest4Status> =
1423
- UpdateToolRequestBodyToolsRequest4Status$inboundSchema;
1424
-
1425
- /** @internal */
1426
- export const UpdateToolRequestBodyHeaders$inboundSchema: z.ZodType<
1427
- UpdateToolRequestBodyHeaders,
1428
- z.ZodTypeDef,
1429
- unknown
1430
- > = z.object({
1431
- value: z.string(),
1432
- encrypted: z.boolean().default(false),
1433
- });
1434
- /** @internal */
1435
- export type UpdateToolRequestBodyHeaders$Outbound = {
1436
- value: string;
1437
- encrypted: boolean;
1438
- };
1439
-
1440
- /** @internal */
1441
- export const UpdateToolRequestBodyHeaders$outboundSchema: z.ZodType<
1442
- UpdateToolRequestBodyHeaders$Outbound,
1443
- z.ZodTypeDef,
1444
- UpdateToolRequestBodyHeaders
1445
- > = z.object({
1446
- value: z.string(),
1447
- encrypted: z.boolean().default(false),
1448
- });
1449
-
1450
- export function updateToolRequestBodyHeadersToJSON(
1451
- updateToolRequestBodyHeaders: UpdateToolRequestBodyHeaders,
1452
- ): string {
1453
- return JSON.stringify(
1454
- UpdateToolRequestBodyHeaders$outboundSchema.parse(
1455
- updateToolRequestBodyHeaders,
1456
- ),
1457
- );
1458
- }
1459
- export function updateToolRequestBodyHeadersFromJSON(
1460
- jsonString: string,
1461
- ): SafeParseResult<UpdateToolRequestBodyHeaders, SDKValidationError> {
1462
- return safeParse(
1463
- jsonString,
1464
- (x) => UpdateToolRequestBodyHeaders$inboundSchema.parse(JSON.parse(x)),
1465
- `Failed to parse 'UpdateToolRequestBodyHeaders' from JSON`,
1466
- );
1467
- }
1468
-
1469
- /** @internal */
1470
- export const UpdateToolRequestBodyToolsRequest4McpType$inboundSchema:
1471
- z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequest4McpType> = z
1472
- .nativeEnum(UpdateToolRequestBodyToolsRequest4McpType);
1473
- /** @internal */
1474
- export const UpdateToolRequestBodyToolsRequest4McpType$outboundSchema:
1475
- z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequest4McpType> =
1476
- UpdateToolRequestBodyToolsRequest4McpType$inboundSchema;
1477
-
1478
- /** @internal */
1479
- export const UpdateToolRequestBodyToolsSchema$inboundSchema: z.ZodType<
1480
- UpdateToolRequestBodyToolsSchema,
1481
- z.ZodTypeDef,
1482
- unknown
1483
- > = z.object({
1484
- type: UpdateToolRequestBodyToolsRequest4McpType$inboundSchema,
1485
- properties: z.record(z.any()).optional(),
1486
- required: z.array(z.string()).optional(),
1487
- });
1488
- /** @internal */
1489
- export type UpdateToolRequestBodyToolsSchema$Outbound = {
1490
- type: string;
1491
- properties?: { [k: string]: any } | undefined;
1492
- required?: Array<string> | undefined;
1493
- };
1494
-
1495
- /** @internal */
1496
- export const UpdateToolRequestBodyToolsSchema$outboundSchema: z.ZodType<
1497
- UpdateToolRequestBodyToolsSchema$Outbound,
1498
- z.ZodTypeDef,
1499
- UpdateToolRequestBodyToolsSchema
1500
- > = z.object({
1501
- type: UpdateToolRequestBodyToolsRequest4McpType$outboundSchema,
1502
- properties: z.record(z.any()).optional(),
1503
- required: z.array(z.string()).optional(),
1504
- });
1505
-
1506
- export function updateToolRequestBodyToolsSchemaToJSON(
1507
- updateToolRequestBodyToolsSchema: UpdateToolRequestBodyToolsSchema,
1508
- ): string {
1509
- return JSON.stringify(
1510
- UpdateToolRequestBodyToolsSchema$outboundSchema.parse(
1511
- updateToolRequestBodyToolsSchema,
1512
- ),
1513
- );
1514
- }
1515
- export function updateToolRequestBodyToolsSchemaFromJSON(
1516
- jsonString: string,
1517
- ): SafeParseResult<UpdateToolRequestBodyToolsSchema, SDKValidationError> {
1518
- return safeParse(
1519
- jsonString,
1520
- (x) => UpdateToolRequestBodyToolsSchema$inboundSchema.parse(JSON.parse(x)),
1521
- `Failed to parse 'UpdateToolRequestBodyToolsSchema' from JSON`,
1522
- );
1523
- }
1524
-
1525
- /** @internal */
1526
- export const RequestBodyTools$inboundSchema: z.ZodType<
1527
- RequestBodyTools,
1528
- z.ZodTypeDef,
1529
- unknown
1530
- > = z.object({
1531
- id: z.string().default("01KE6FM17HACT23MK9TFHHG3FX"),
1532
- name: z.string(),
1533
- description: z.string().optional(),
1534
- schema: z.lazy(() => UpdateToolRequestBodyToolsSchema$inboundSchema),
1535
- });
1536
- /** @internal */
1537
- export type RequestBodyTools$Outbound = {
1538
- id: string;
1539
- name: string;
1540
- description?: string | undefined;
1541
- schema: UpdateToolRequestBodyToolsSchema$Outbound;
1542
- };
1543
-
1544
- /** @internal */
1545
- export const RequestBodyTools$outboundSchema: z.ZodType<
1546
- RequestBodyTools$Outbound,
1547
- z.ZodTypeDef,
1548
- RequestBodyTools
1549
- > = z.object({
1550
- id: z.string().default("01KE6FM17HACT23MK9TFHHG3FX"),
1551
- name: z.string(),
1552
- description: z.string().optional(),
1553
- schema: z.lazy(() => UpdateToolRequestBodyToolsSchema$outboundSchema),
1554
- });
1555
-
1556
- export function requestBodyToolsToJSON(
1557
- requestBodyTools: RequestBodyTools,
1558
- ): string {
1559
- return JSON.stringify(
1560
- RequestBodyTools$outboundSchema.parse(requestBodyTools),
1561
- );
1562
- }
1563
- export function requestBodyToolsFromJSON(
1564
- jsonString: string,
1565
- ): SafeParseResult<RequestBodyTools, SDKValidationError> {
1566
- return safeParse(
1567
- jsonString,
1568
- (x) => RequestBodyTools$inboundSchema.parse(JSON.parse(x)),
1569
- `Failed to parse 'RequestBodyTools' from JSON`,
1570
- );
1571
- }
1572
-
1573
- /** @internal */
1574
- export const UpdateToolRequestBodyConnectionType$inboundSchema: z.ZodNativeEnum<
1575
- typeof UpdateToolRequestBodyConnectionType
1576
- > = z.nativeEnum(UpdateToolRequestBodyConnectionType);
1577
- /** @internal */
1578
- export const UpdateToolRequestBodyConnectionType$outboundSchema:
1579
- z.ZodNativeEnum<typeof UpdateToolRequestBodyConnectionType> =
1580
- UpdateToolRequestBodyConnectionType$inboundSchema;
1581
-
1582
- /** @internal */
1583
- export const UpdateToolRequestBodyMcp$inboundSchema: z.ZodType<
1584
- UpdateToolRequestBodyMcp,
1585
- z.ZodTypeDef,
1586
- unknown
1587
- > = z.object({
1588
- server_url: z.string().optional(),
1589
- headers: z.record(z.lazy(() => UpdateToolRequestBodyHeaders$inboundSchema))
1590
- .optional(),
1591
- tools: z.array(z.lazy(() => RequestBodyTools$inboundSchema)).optional(),
1592
- connection_type: UpdateToolRequestBodyConnectionType$inboundSchema.optional(),
1593
- }).transform((v) => {
1594
- return remap$(v, {
1595
- "server_url": "serverUrl",
1596
- "connection_type": "connectionType",
1597
- });
1598
- });
1599
- /** @internal */
1600
- export type UpdateToolRequestBodyMcp$Outbound = {
1601
- server_url?: string | undefined;
1602
- headers?: { [k: string]: UpdateToolRequestBodyHeaders$Outbound } | undefined;
1603
- tools?: Array<RequestBodyTools$Outbound> | undefined;
1604
- connection_type?: string | undefined;
1605
- };
1606
-
1607
- /** @internal */
1608
- export const UpdateToolRequestBodyMcp$outboundSchema: z.ZodType<
1609
- UpdateToolRequestBodyMcp$Outbound,
1610
- z.ZodTypeDef,
1611
- UpdateToolRequestBodyMcp
1612
- > = z.object({
1613
- serverUrl: z.string().optional(),
1614
- headers: z.record(z.lazy(() => UpdateToolRequestBodyHeaders$outboundSchema))
1615
- .optional(),
1616
- tools: z.array(z.lazy(() => RequestBodyTools$outboundSchema)).optional(),
1617
- connectionType: UpdateToolRequestBodyConnectionType$outboundSchema.optional(),
1618
- }).transform((v) => {
1619
- return remap$(v, {
1620
- serverUrl: "server_url",
1621
- connectionType: "connection_type",
1622
- });
1623
- });
1624
-
1625
- export function updateToolRequestBodyMcpToJSON(
1626
- updateToolRequestBodyMcp: UpdateToolRequestBodyMcp,
1627
- ): string {
1628
- return JSON.stringify(
1629
- UpdateToolRequestBodyMcp$outboundSchema.parse(updateToolRequestBodyMcp),
1630
- );
1631
- }
1632
- export function updateToolRequestBodyMcpFromJSON(
1633
- jsonString: string,
1634
- ): SafeParseResult<UpdateToolRequestBodyMcp, SDKValidationError> {
1635
- return safeParse(
1636
- jsonString,
1637
- (x) => UpdateToolRequestBodyMcp$inboundSchema.parse(JSON.parse(x)),
1638
- `Failed to parse 'UpdateToolRequestBodyMcp' from JSON`,
1639
- );
1640
- }
1641
-
1642
- /** @internal */
1643
- export const UpdateMCPTool$inboundSchema: z.ZodType<
1644
- UpdateMCPTool,
1645
- z.ZodTypeDef,
1646
- unknown
1647
- > = z.object({
1648
- path: z.string().optional(),
1649
- key: z.string().optional(),
1650
- display_name: z.string().optional(),
1651
- description: z.string().optional(),
1652
- status: UpdateToolRequestBodyToolsRequest4Status$inboundSchema.default(
1653
- "live",
1654
- ),
1655
- type: z.literal("mcp"),
1656
- mcp: z.lazy(() => UpdateToolRequestBodyMcp$inboundSchema).optional(),
1657
- }).transform((v) => {
1658
- return remap$(v, {
1659
- "display_name": "displayName",
1660
- });
1661
- });
1662
- /** @internal */
1663
- export type UpdateMCPTool$Outbound = {
1664
- path?: string | undefined;
1665
- key?: string | undefined;
1666
- display_name?: string | undefined;
1667
- description?: string | undefined;
1668
- status: string;
1669
- type: "mcp";
1670
- mcp?: UpdateToolRequestBodyMcp$Outbound | undefined;
1671
- };
1672
-
1673
- /** @internal */
1674
- export const UpdateMCPTool$outboundSchema: z.ZodType<
1675
- UpdateMCPTool$Outbound,
1676
- z.ZodTypeDef,
1677
- UpdateMCPTool
1678
- > = z.object({
1679
- path: z.string().optional(),
1680
- key: z.string().optional(),
1681
- displayName: z.string().optional(),
1682
- description: z.string().optional(),
1683
- status: UpdateToolRequestBodyToolsRequest4Status$outboundSchema.default(
1684
- "live",
1685
- ),
1686
- type: z.literal("mcp"),
1687
- mcp: z.lazy(() => UpdateToolRequestBodyMcp$outboundSchema).optional(),
1688
- }).transform((v) => {
1689
- return remap$(v, {
1690
- displayName: "display_name",
1691
- });
1692
- });
1693
-
1694
- export function updateMCPToolToJSON(updateMCPTool: UpdateMCPTool): string {
1695
- return JSON.stringify(UpdateMCPTool$outboundSchema.parse(updateMCPTool));
1696
- }
1697
- export function updateMCPToolFromJSON(
1698
- jsonString: string,
1699
- ): SafeParseResult<UpdateMCPTool, SDKValidationError> {
1700
- return safeParse(
1701
- jsonString,
1702
- (x) => UpdateMCPTool$inboundSchema.parse(JSON.parse(x)),
1703
- `Failed to parse 'UpdateMCPTool' from JSON`,
1704
- );
1705
- }
1706
-
1707
- /** @internal */
1708
- export const UpdateToolRequestBodyToolsRequestStatus$inboundSchema:
1709
- z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequestStatus> = z
1710
- .nativeEnum(UpdateToolRequestBodyToolsRequestStatus);
1711
- /** @internal */
1712
- export const UpdateToolRequestBodyToolsRequestStatus$outboundSchema:
1713
- z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequestStatus> =
1714
- UpdateToolRequestBodyToolsRequestStatus$inboundSchema;
1715
-
1716
- /** @internal */
1717
- export const UpdateToolRequestBodyMethod$inboundSchema: z.ZodNativeEnum<
1718
- typeof UpdateToolRequestBodyMethod
1719
- > = z.nativeEnum(UpdateToolRequestBodyMethod);
1720
- /** @internal */
1721
- export const UpdateToolRequestBodyMethod$outboundSchema: z.ZodNativeEnum<
1722
- typeof UpdateToolRequestBodyMethod
1723
- > = UpdateToolRequestBodyMethod$inboundSchema;
1724
-
1725
- /** @internal */
1726
- export const UpdateToolHeaders2$inboundSchema: z.ZodType<
1727
- UpdateToolHeaders2,
1728
- z.ZodTypeDef,
1729
- unknown
1730
- > = z.object({
1731
- value: z.string(),
1732
- encrypted: z.boolean().default(false),
1733
- });
1734
- /** @internal */
1735
- export type UpdateToolHeaders2$Outbound = {
1736
- value: string;
1737
- encrypted: boolean;
1738
- };
1739
-
1740
- /** @internal */
1741
- export const UpdateToolHeaders2$outboundSchema: z.ZodType<
1742
- UpdateToolHeaders2$Outbound,
1743
- z.ZodTypeDef,
1744
- UpdateToolHeaders2
1745
- > = z.object({
1746
- value: z.string(),
1747
- encrypted: z.boolean().default(false),
1748
- });
1749
-
1750
- export function updateToolHeaders2ToJSON(
1751
- updateToolHeaders2: UpdateToolHeaders2,
1752
- ): string {
1753
- return JSON.stringify(
1754
- UpdateToolHeaders2$outboundSchema.parse(updateToolHeaders2),
1755
- );
1756
- }
1757
- export function updateToolHeaders2FromJSON(
1758
- jsonString: string,
1759
- ): SafeParseResult<UpdateToolHeaders2, SDKValidationError> {
1760
- return safeParse(
1761
- jsonString,
1762
- (x) => UpdateToolHeaders2$inboundSchema.parse(JSON.parse(x)),
1763
- `Failed to parse 'UpdateToolHeaders2' from JSON`,
1764
- );
1765
- }
1766
-
1767
- /** @internal */
1768
- export const UpdateToolRequestBodyToolsHeaders$inboundSchema: z.ZodType<
1769
- UpdateToolRequestBodyToolsHeaders,
1770
- z.ZodTypeDef,
1771
- unknown
1772
- > = z.union([z.lazy(() => UpdateToolHeaders2$inboundSchema), z.string()]);
1773
- /** @internal */
1774
- export type UpdateToolRequestBodyToolsHeaders$Outbound =
1775
- | UpdateToolHeaders2$Outbound
1776
- | string;
1777
-
1778
- /** @internal */
1779
- export const UpdateToolRequestBodyToolsHeaders$outboundSchema: z.ZodType<
1780
- UpdateToolRequestBodyToolsHeaders$Outbound,
1781
- z.ZodTypeDef,
1782
- UpdateToolRequestBodyToolsHeaders
1783
- > = z.union([z.lazy(() => UpdateToolHeaders2$outboundSchema), z.string()]);
1784
-
1785
- export function updateToolRequestBodyToolsHeadersToJSON(
1786
- updateToolRequestBodyToolsHeaders: UpdateToolRequestBodyToolsHeaders,
1787
- ): string {
1788
- return JSON.stringify(
1789
- UpdateToolRequestBodyToolsHeaders$outboundSchema.parse(
1790
- updateToolRequestBodyToolsHeaders,
1791
- ),
1792
- );
1793
- }
1794
- export function updateToolRequestBodyToolsHeadersFromJSON(
1795
- jsonString: string,
1796
- ): SafeParseResult<UpdateToolRequestBodyToolsHeaders, SDKValidationError> {
1797
- return safeParse(
1798
- jsonString,
1799
- (x) => UpdateToolRequestBodyToolsHeaders$inboundSchema.parse(JSON.parse(x)),
1800
- `Failed to parse 'UpdateToolRequestBodyToolsHeaders' from JSON`,
1801
- );
1802
- }
1803
-
1804
- /** @internal */
1805
- export const UpdateToolRequestBodyBlueprint$inboundSchema: z.ZodType<
1806
- UpdateToolRequestBodyBlueprint,
1807
- z.ZodTypeDef,
1808
- unknown
1809
- > = z.object({
1810
- url: z.string(),
1811
- method: UpdateToolRequestBodyMethod$inboundSchema,
1812
- headers: z.record(
1813
- z.union([z.lazy(() => UpdateToolHeaders2$inboundSchema), z.string()]),
1814
- ).optional(),
1815
- body: z.record(z.any()).optional(),
1816
- });
1817
- /** @internal */
1818
- export type UpdateToolRequestBodyBlueprint$Outbound = {
1819
- url: string;
1820
- method: string;
1821
- headers?: { [k: string]: UpdateToolHeaders2$Outbound | string } | undefined;
1822
- body?: { [k: string]: any } | undefined;
1823
- };
1824
-
1825
- /** @internal */
1826
- export const UpdateToolRequestBodyBlueprint$outboundSchema: z.ZodType<
1827
- UpdateToolRequestBodyBlueprint$Outbound,
1828
- z.ZodTypeDef,
1829
- UpdateToolRequestBodyBlueprint
1830
- > = z.object({
1831
- url: z.string(),
1832
- method: UpdateToolRequestBodyMethod$outboundSchema,
1833
- headers: z.record(
1834
- z.union([z.lazy(() => UpdateToolHeaders2$outboundSchema), z.string()]),
1835
- ).optional(),
1836
- body: z.record(z.any()).optional(),
1837
- });
1838
-
1839
- export function updateToolRequestBodyBlueprintToJSON(
1840
- updateToolRequestBodyBlueprint: UpdateToolRequestBodyBlueprint,
1841
- ): string {
1842
- return JSON.stringify(
1843
- UpdateToolRequestBodyBlueprint$outboundSchema.parse(
1844
- updateToolRequestBodyBlueprint,
1845
- ),
1846
- );
1847
- }
1848
- export function updateToolRequestBodyBlueprintFromJSON(
1849
- jsonString: string,
1850
- ): SafeParseResult<UpdateToolRequestBodyBlueprint, SDKValidationError> {
1851
- return safeParse(
1852
- jsonString,
1853
- (x) => UpdateToolRequestBodyBlueprint$inboundSchema.parse(JSON.parse(x)),
1854
- `Failed to parse 'UpdateToolRequestBodyBlueprint' from JSON`,
1855
- );
1856
- }
1857
-
1858
- /** @internal */
1859
- export const UpdateToolRequestBodyToolsRequest3Type$inboundSchema:
1860
- z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequest3Type> = z.nativeEnum(
1861
- UpdateToolRequestBodyToolsRequest3Type,
1862
- );
1863
- /** @internal */
1864
- export const UpdateToolRequestBodyToolsRequest3Type$outboundSchema:
1865
- z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequest3Type> =
1866
- UpdateToolRequestBodyToolsRequest3Type$inboundSchema;
1867
-
1868
- /** @internal */
1869
- export const UpdateToolRequestBodyDefaultValue$inboundSchema: z.ZodType<
1870
- UpdateToolRequestBodyDefaultValue,
1871
- z.ZodTypeDef,
1872
- unknown
1873
- > = z.union([z.string(), z.number(), z.boolean()]);
1874
- /** @internal */
1875
- export type UpdateToolRequestBodyDefaultValue$Outbound =
1876
- | string
1877
- | number
1878
- | boolean;
1879
-
1880
- /** @internal */
1881
- export const UpdateToolRequestBodyDefaultValue$outboundSchema: z.ZodType<
1882
- UpdateToolRequestBodyDefaultValue$Outbound,
1883
- z.ZodTypeDef,
1884
- UpdateToolRequestBodyDefaultValue
1885
- > = z.union([z.string(), z.number(), z.boolean()]);
1886
-
1887
- export function updateToolRequestBodyDefaultValueToJSON(
1888
- updateToolRequestBodyDefaultValue: UpdateToolRequestBodyDefaultValue,
1889
- ): string {
1890
- return JSON.stringify(
1891
- UpdateToolRequestBodyDefaultValue$outboundSchema.parse(
1892
- updateToolRequestBodyDefaultValue,
1893
- ),
1894
- );
1895
- }
1896
- export function updateToolRequestBodyDefaultValueFromJSON(
1897
- jsonString: string,
1898
- ): SafeParseResult<UpdateToolRequestBodyDefaultValue, SDKValidationError> {
1899
- return safeParse(
1900
- jsonString,
1901
- (x) => UpdateToolRequestBodyDefaultValue$inboundSchema.parse(JSON.parse(x)),
1902
- `Failed to parse 'UpdateToolRequestBodyDefaultValue' from JSON`,
1903
- );
1904
- }
1905
-
1906
- /** @internal */
1907
- export const UpdateToolRequestBodyArguments$inboundSchema: z.ZodType<
1908
- UpdateToolRequestBodyArguments,
1909
- z.ZodTypeDef,
1910
- unknown
1911
- > = z.object({
1912
- type: UpdateToolRequestBodyToolsRequest3Type$inboundSchema,
1913
- description: z.string(),
1914
- send_to_model: z.boolean().default(true),
1915
- default_value: z.union([z.string(), z.number(), z.boolean()]).optional(),
1916
- }).transform((v) => {
1917
- return remap$(v, {
1918
- "send_to_model": "sendToModel",
1919
- "default_value": "defaultValue",
1920
- });
1921
- });
1922
- /** @internal */
1923
- export type UpdateToolRequestBodyArguments$Outbound = {
1924
- type: string;
1925
- description: string;
1926
- send_to_model: boolean;
1927
- default_value?: string | number | boolean | undefined;
1928
- };
1929
-
1930
- /** @internal */
1931
- export const UpdateToolRequestBodyArguments$outboundSchema: z.ZodType<
1932
- UpdateToolRequestBodyArguments$Outbound,
1933
- z.ZodTypeDef,
1934
- UpdateToolRequestBodyArguments
1935
- > = z.object({
1936
- type: UpdateToolRequestBodyToolsRequest3Type$outboundSchema,
1937
- description: z.string(),
1938
- sendToModel: z.boolean().default(true),
1939
- defaultValue: z.union([z.string(), z.number(), z.boolean()]).optional(),
1940
- }).transform((v) => {
1941
- return remap$(v, {
1942
- sendToModel: "send_to_model",
1943
- defaultValue: "default_value",
1944
- });
1945
- });
1946
-
1947
- export function updateToolRequestBodyArgumentsToJSON(
1948
- updateToolRequestBodyArguments: UpdateToolRequestBodyArguments,
1949
- ): string {
1950
- return JSON.stringify(
1951
- UpdateToolRequestBodyArguments$outboundSchema.parse(
1952
- updateToolRequestBodyArguments,
1953
- ),
1954
- );
1955
- }
1956
- export function updateToolRequestBodyArgumentsFromJSON(
1957
- jsonString: string,
1958
- ): SafeParseResult<UpdateToolRequestBodyArguments, SDKValidationError> {
1959
- return safeParse(
1960
- jsonString,
1961
- (x) => UpdateToolRequestBodyArguments$inboundSchema.parse(JSON.parse(x)),
1962
- `Failed to parse 'UpdateToolRequestBodyArguments' from JSON`,
1963
- );
1964
- }
1965
-
1966
- /** @internal */
1967
- export const UpdateToolRequestBodyHttp$inboundSchema: z.ZodType<
1968
- UpdateToolRequestBodyHttp,
1969
- z.ZodTypeDef,
1970
- unknown
1971
- > = z.object({
1972
- blueprint: z.lazy(() => UpdateToolRequestBodyBlueprint$inboundSchema),
1973
- arguments: z.record(
1974
- z.lazy(() => UpdateToolRequestBodyArguments$inboundSchema),
1975
- ).optional(),
1976
- });
1977
- /** @internal */
1978
- export type UpdateToolRequestBodyHttp$Outbound = {
1979
- blueprint: UpdateToolRequestBodyBlueprint$Outbound;
1980
- arguments?:
1981
- | { [k: string]: UpdateToolRequestBodyArguments$Outbound }
1982
- | undefined;
1983
- };
1984
-
1985
- /** @internal */
1986
- export const UpdateToolRequestBodyHttp$outboundSchema: z.ZodType<
1987
- UpdateToolRequestBodyHttp$Outbound,
1988
- z.ZodTypeDef,
1989
- UpdateToolRequestBodyHttp
1990
- > = z.object({
1991
- blueprint: z.lazy(() => UpdateToolRequestBodyBlueprint$outboundSchema),
1992
- arguments: z.record(
1993
- z.lazy(() => UpdateToolRequestBodyArguments$outboundSchema),
1994
- ).optional(),
1995
- });
1996
-
1997
- export function updateToolRequestBodyHttpToJSON(
1998
- updateToolRequestBodyHttp: UpdateToolRequestBodyHttp,
1999
- ): string {
2000
- return JSON.stringify(
2001
- UpdateToolRequestBodyHttp$outboundSchema.parse(updateToolRequestBodyHttp),
2002
- );
2003
- }
2004
- export function updateToolRequestBodyHttpFromJSON(
2005
- jsonString: string,
2006
- ): SafeParseResult<UpdateToolRequestBodyHttp, SDKValidationError> {
2007
- return safeParse(
2008
- jsonString,
2009
- (x) => UpdateToolRequestBodyHttp$inboundSchema.parse(JSON.parse(x)),
2010
- `Failed to parse 'UpdateToolRequestBodyHttp' from JSON`,
2011
- );
2012
- }
2013
-
2014
- /** @internal */
2015
- export const UpdateHTTPTool$inboundSchema: z.ZodType<
2016
- UpdateHTTPTool,
2017
- z.ZodTypeDef,
2018
- unknown
2019
- > = z.object({
2020
- path: z.string().optional(),
2021
- key: z.string().optional(),
2022
- display_name: z.string().optional(),
2023
- description: z.string().optional(),
2024
- status: UpdateToolRequestBodyToolsRequestStatus$inboundSchema.default("live"),
2025
- type: z.literal("http"),
2026
- http: z.lazy(() => UpdateToolRequestBodyHttp$inboundSchema).optional(),
2027
- }).transform((v) => {
2028
- return remap$(v, {
2029
- "display_name": "displayName",
2030
- });
2031
- });
2032
- /** @internal */
2033
- export type UpdateHTTPTool$Outbound = {
2034
- path?: string | undefined;
2035
- key?: string | undefined;
2036
- display_name?: string | undefined;
2037
- description?: string | undefined;
2038
- status: string;
2039
- type: "http";
2040
- http?: UpdateToolRequestBodyHttp$Outbound | undefined;
2041
- };
2042
-
2043
- /** @internal */
2044
- export const UpdateHTTPTool$outboundSchema: z.ZodType<
2045
- UpdateHTTPTool$Outbound,
2046
- z.ZodTypeDef,
2047
- UpdateHTTPTool
2048
- > = z.object({
2049
- path: z.string().optional(),
2050
- key: z.string().optional(),
2051
- displayName: z.string().optional(),
2052
- description: z.string().optional(),
2053
- status: UpdateToolRequestBodyToolsRequestStatus$outboundSchema.default(
2054
- "live",
2055
- ),
2056
- type: z.literal("http"),
2057
- http: z.lazy(() => UpdateToolRequestBodyHttp$outboundSchema).optional(),
2058
- }).transform((v) => {
2059
- return remap$(v, {
2060
- displayName: "display_name",
2061
- });
2062
- });
2063
-
2064
- export function updateHTTPToolToJSON(updateHTTPTool: UpdateHTTPTool): string {
2065
- return JSON.stringify(UpdateHTTPTool$outboundSchema.parse(updateHTTPTool));
2066
- }
2067
- export function updateHTTPToolFromJSON(
2068
- jsonString: string,
2069
- ): SafeParseResult<UpdateHTTPTool, SDKValidationError> {
2070
- return safeParse(
2071
- jsonString,
2072
- (x) => UpdateHTTPTool$inboundSchema.parse(JSON.parse(x)),
2073
- `Failed to parse 'UpdateHTTPTool' from JSON`,
2074
- );
2075
- }
2076
-
2077
- /** @internal */
2078
- export const UpdateToolRequestBodyToolsStatus$inboundSchema: z.ZodNativeEnum<
2079
- typeof UpdateToolRequestBodyToolsStatus
2080
- > = z.nativeEnum(UpdateToolRequestBodyToolsStatus);
2081
- /** @internal */
2082
- export const UpdateToolRequestBodyToolsStatus$outboundSchema: z.ZodNativeEnum<
2083
- typeof UpdateToolRequestBodyToolsStatus
2084
- > = UpdateToolRequestBodyToolsStatus$inboundSchema;
2085
-
2086
- /** @internal */
2087
- export const UpdateToolRequestBodySchema$inboundSchema: z.ZodType<
2088
- UpdateToolRequestBodySchema,
2089
- z.ZodTypeDef,
2090
- unknown
2091
- > = collectExtraKeys$(
2092
- z.object({
2093
- type: z.string(),
2094
- properties: z.record(z.any()),
2095
- required: z.array(z.string()),
2096
- }).catchall(z.any()),
2097
- "additionalProperties",
2098
- true,
2099
- );
2100
- /** @internal */
2101
- export type UpdateToolRequestBodySchema$Outbound = {
2102
- type: string;
2103
- properties: { [k: string]: any };
2104
- required: Array<string>;
2105
- [additionalProperties: string]: unknown;
2106
- };
2107
-
2108
- /** @internal */
2109
- export const UpdateToolRequestBodySchema$outboundSchema: z.ZodType<
2110
- UpdateToolRequestBodySchema$Outbound,
2111
- z.ZodTypeDef,
2112
- UpdateToolRequestBodySchema
2113
- > = z.object({
2114
- type: z.string(),
2115
- properties: z.record(z.any()),
2116
- required: z.array(z.string()),
2117
- additionalProperties: z.record(z.any()).optional(),
2118
- }).transform((v) => {
2119
- return {
2120
- ...v.additionalProperties,
2121
- ...remap$(v, {
2122
- additionalProperties: null,
2123
- }),
2124
- };
2125
- });
2126
-
2127
- export function updateToolRequestBodySchemaToJSON(
2128
- updateToolRequestBodySchema: UpdateToolRequestBodySchema,
2129
- ): string {
2130
- return JSON.stringify(
2131
- UpdateToolRequestBodySchema$outboundSchema.parse(
2132
- updateToolRequestBodySchema,
2133
- ),
2134
- );
2135
- }
2136
- export function updateToolRequestBodySchemaFromJSON(
2137
- jsonString: string,
2138
- ): SafeParseResult<UpdateToolRequestBodySchema, SDKValidationError> {
2139
- return safeParse(
2140
- jsonString,
2141
- (x) => UpdateToolRequestBodySchema$inboundSchema.parse(JSON.parse(x)),
2142
- `Failed to parse 'UpdateToolRequestBodySchema' from JSON`,
2143
- );
2144
- }
2145
-
2146
- /** @internal */
2147
- export const UpdateToolRequestBodyJsonSchema$inboundSchema: z.ZodType<
2148
- UpdateToolRequestBodyJsonSchema,
2149
- z.ZodTypeDef,
2150
- unknown
2151
- > = z.object({
2152
- name: z.string(),
2153
- description: z.string(),
2154
- schema: z.lazy(() => UpdateToolRequestBodySchema$inboundSchema),
2155
- strict: z.boolean().optional(),
2156
- });
2157
- /** @internal */
2158
- export type UpdateToolRequestBodyJsonSchema$Outbound = {
2159
- name: string;
2160
- description: string;
2161
- schema: UpdateToolRequestBodySchema$Outbound;
2162
- strict?: boolean | undefined;
2163
- };
2164
-
2165
- /** @internal */
2166
- export const UpdateToolRequestBodyJsonSchema$outboundSchema: z.ZodType<
2167
- UpdateToolRequestBodyJsonSchema$Outbound,
2168
- z.ZodTypeDef,
2169
- UpdateToolRequestBodyJsonSchema
2170
- > = z.object({
2171
- name: z.string(),
2172
- description: z.string(),
2173
- schema: z.lazy(() => UpdateToolRequestBodySchema$outboundSchema),
2174
- strict: z.boolean().optional(),
2175
- });
2176
-
2177
- export function updateToolRequestBodyJsonSchemaToJSON(
2178
- updateToolRequestBodyJsonSchema: UpdateToolRequestBodyJsonSchema,
2179
- ): string {
2180
- return JSON.stringify(
2181
- UpdateToolRequestBodyJsonSchema$outboundSchema.parse(
2182
- updateToolRequestBodyJsonSchema,
2183
- ),
2184
- );
2185
- }
2186
- export function updateToolRequestBodyJsonSchemaFromJSON(
2187
- jsonString: string,
2188
- ): SafeParseResult<UpdateToolRequestBodyJsonSchema, SDKValidationError> {
2189
- return safeParse(
2190
- jsonString,
2191
- (x) => UpdateToolRequestBodyJsonSchema$inboundSchema.parse(JSON.parse(x)),
2192
- `Failed to parse 'UpdateToolRequestBodyJsonSchema' from JSON`,
2193
- );
2194
- }
2195
-
2196
- /** @internal */
2197
- export const UpdateJSONSchemaTool$inboundSchema: z.ZodType<
2198
- UpdateJSONSchemaTool,
2199
- z.ZodTypeDef,
2200
- unknown
2201
- > = z.object({
2202
- path: z.string().optional(),
2203
- key: z.string().optional(),
2204
- display_name: z.string().optional(),
2205
- description: z.string().optional(),
2206
- status: UpdateToolRequestBodyToolsStatus$inboundSchema.default("live"),
2207
- type: z.literal("json_schema"),
2208
- json_schema: z.lazy(() => UpdateToolRequestBodyJsonSchema$inboundSchema)
2209
- .optional(),
2210
- }).transform((v) => {
2211
- return remap$(v, {
2212
- "display_name": "displayName",
2213
- "json_schema": "jsonSchema",
2214
- });
2215
- });
2216
- /** @internal */
2217
- export type UpdateJSONSchemaTool$Outbound = {
2218
- path?: string | undefined;
2219
- key?: string | undefined;
2220
- display_name?: string | undefined;
2221
- description?: string | undefined;
2222
- status: string;
2223
- type: "json_schema";
2224
- json_schema?: UpdateToolRequestBodyJsonSchema$Outbound | undefined;
2225
- };
2226
-
2227
- /** @internal */
2228
- export const UpdateJSONSchemaTool$outboundSchema: z.ZodType<
2229
- UpdateJSONSchemaTool$Outbound,
2230
- z.ZodTypeDef,
2231
- UpdateJSONSchemaTool
2232
- > = z.object({
2233
- path: z.string().optional(),
2234
- key: z.string().optional(),
2235
- displayName: z.string().optional(),
2236
- description: z.string().optional(),
2237
- status: UpdateToolRequestBodyToolsStatus$outboundSchema.default("live"),
2238
- type: z.literal("json_schema"),
2239
- jsonSchema: z.lazy(() => UpdateToolRequestBodyJsonSchema$outboundSchema)
2240
- .optional(),
2241
- }).transform((v) => {
2242
- return remap$(v, {
2243
- displayName: "display_name",
2244
- jsonSchema: "json_schema",
2245
- });
2246
- });
2247
-
2248
- export function updateJSONSchemaToolToJSON(
2249
- updateJSONSchemaTool: UpdateJSONSchemaTool,
2250
- ): string {
2251
- return JSON.stringify(
2252
- UpdateJSONSchemaTool$outboundSchema.parse(updateJSONSchemaTool),
2253
- );
2254
- }
2255
- export function updateJSONSchemaToolFromJSON(
2256
- jsonString: string,
2257
- ): SafeParseResult<UpdateJSONSchemaTool, SDKValidationError> {
2258
- return safeParse(
2259
- jsonString,
2260
- (x) => UpdateJSONSchemaTool$inboundSchema.parse(JSON.parse(x)),
2261
- `Failed to parse 'UpdateJSONSchemaTool' from JSON`,
2262
- );
2263
- }
2264
-
2265
- /** @internal */
2266
- export const UpdateToolRequestBodyStatus$inboundSchema: z.ZodNativeEnum<
2267
- typeof UpdateToolRequestBodyStatus
2268
- > = z.nativeEnum(UpdateToolRequestBodyStatus);
2269
- /** @internal */
2270
- export const UpdateToolRequestBodyStatus$outboundSchema: z.ZodNativeEnum<
2271
- typeof UpdateToolRequestBodyStatus
2272
- > = UpdateToolRequestBodyStatus$inboundSchema;
2273
-
2274
- /** @internal */
2275
- export const UpdateToolRequestBodyToolsRequest1Type$inboundSchema:
2276
- z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequest1Type> = z.nativeEnum(
2277
- UpdateToolRequestBodyToolsRequest1Type,
2278
- );
2279
- /** @internal */
2280
- export const UpdateToolRequestBodyToolsRequest1Type$outboundSchema:
2281
- z.ZodNativeEnum<typeof UpdateToolRequestBodyToolsRequest1Type> =
2282
- UpdateToolRequestBodyToolsRequest1Type$inboundSchema;
2283
-
2284
- /** @internal */
2285
- export const UpdateToolRequestBodyParameters$inboundSchema: z.ZodType<
2286
- UpdateToolRequestBodyParameters,
2287
- z.ZodTypeDef,
2288
- unknown
2289
- > = collectExtraKeys$(
2290
- z.object({
2291
- type: UpdateToolRequestBodyToolsRequest1Type$inboundSchema,
2292
- properties: z.record(z.any()),
2293
- required: z.array(z.string()),
2294
- }).catchall(z.any()),
2295
- "additionalProperties",
2296
- true,
2297
- );
2298
- /** @internal */
2299
- export type UpdateToolRequestBodyParameters$Outbound = {
2300
- type: string;
2301
- properties: { [k: string]: any };
2302
- required: Array<string>;
2303
- [additionalProperties: string]: unknown;
2304
- };
2305
-
2306
- /** @internal */
2307
- export const UpdateToolRequestBodyParameters$outboundSchema: z.ZodType<
2308
- UpdateToolRequestBodyParameters$Outbound,
2309
- z.ZodTypeDef,
2310
- UpdateToolRequestBodyParameters
2311
- > = z.object({
2312
- type: UpdateToolRequestBodyToolsRequest1Type$outboundSchema,
2313
- properties: z.record(z.any()),
2314
- required: z.array(z.string()),
2315
- additionalProperties: z.record(z.any()).optional(),
2316
- }).transform((v) => {
2317
- return {
2318
- ...v.additionalProperties,
2319
- ...remap$(v, {
2320
- additionalProperties: null,
2321
- }),
2322
- };
2323
- });
2324
-
2325
- export function updateToolRequestBodyParametersToJSON(
2326
- updateToolRequestBodyParameters: UpdateToolRequestBodyParameters,
2327
- ): string {
2328
- return JSON.stringify(
2329
- UpdateToolRequestBodyParameters$outboundSchema.parse(
2330
- updateToolRequestBodyParameters,
2331
- ),
2332
- );
2333
- }
2334
- export function updateToolRequestBodyParametersFromJSON(
2335
- jsonString: string,
2336
- ): SafeParseResult<UpdateToolRequestBodyParameters, SDKValidationError> {
2337
- return safeParse(
2338
- jsonString,
2339
- (x) => UpdateToolRequestBodyParameters$inboundSchema.parse(JSON.parse(x)),
2340
- `Failed to parse 'UpdateToolRequestBodyParameters' from JSON`,
2341
- );
2342
- }
2343
-
2344
- /** @internal */
2345
- export const UpdateToolRequestBodyFunction$inboundSchema: z.ZodType<
2346
- UpdateToolRequestBodyFunction,
2347
- z.ZodTypeDef,
2348
- unknown
2349
- > = z.object({
2350
- name: z.string(),
2351
- description: z.string().optional(),
2352
- strict: z.boolean().optional(),
2353
- parameters: z.lazy(() => UpdateToolRequestBodyParameters$inboundSchema)
2354
- .optional(),
2355
- });
2356
- /** @internal */
2357
- export type UpdateToolRequestBodyFunction$Outbound = {
2358
- name: string;
2359
- description?: string | undefined;
2360
- strict?: boolean | undefined;
2361
- parameters?: UpdateToolRequestBodyParameters$Outbound | undefined;
2362
- };
2363
-
2364
- /** @internal */
2365
- export const UpdateToolRequestBodyFunction$outboundSchema: z.ZodType<
2366
- UpdateToolRequestBodyFunction$Outbound,
2367
- z.ZodTypeDef,
2368
- UpdateToolRequestBodyFunction
2369
- > = z.object({
2370
- name: z.string(),
2371
- description: z.string().optional(),
2372
- strict: z.boolean().optional(),
2373
- parameters: z.lazy(() => UpdateToolRequestBodyParameters$outboundSchema)
2374
- .optional(),
2375
- });
2376
-
2377
- export function updateToolRequestBodyFunctionToJSON(
2378
- updateToolRequestBodyFunction: UpdateToolRequestBodyFunction,
2379
- ): string {
2380
- return JSON.stringify(
2381
- UpdateToolRequestBodyFunction$outboundSchema.parse(
2382
- updateToolRequestBodyFunction,
2383
- ),
2384
- );
2385
- }
2386
- export function updateToolRequestBodyFunctionFromJSON(
2387
- jsonString: string,
2388
- ): SafeParseResult<UpdateToolRequestBodyFunction, SDKValidationError> {
2389
- return safeParse(
2390
- jsonString,
2391
- (x) => UpdateToolRequestBodyFunction$inboundSchema.parse(JSON.parse(x)),
2392
- `Failed to parse 'UpdateToolRequestBodyFunction' from JSON`,
2393
- );
2394
- }
2395
-
2396
- /** @internal */
2397
- export const UpdateFunctionTool$inboundSchema: z.ZodType<
2398
- UpdateFunctionTool,
2399
- z.ZodTypeDef,
2400
- unknown
2401
- > = z.object({
2402
- path: z.string().optional(),
2403
- key: z.string().optional(),
2404
- display_name: z.string().optional(),
2405
- description: z.string().optional(),
2406
- status: UpdateToolRequestBodyStatus$inboundSchema.default("live"),
2407
- type: z.literal("function"),
2408
- function: z.lazy(() => UpdateToolRequestBodyFunction$inboundSchema)
2409
- .optional(),
2410
- }).transform((v) => {
2411
- return remap$(v, {
2412
- "display_name": "displayName",
2413
- });
2414
- });
2415
- /** @internal */
2416
- export type UpdateFunctionTool$Outbound = {
2417
- path?: string | undefined;
2418
- key?: string | undefined;
2419
- display_name?: string | undefined;
2420
- description?: string | undefined;
2421
- status: string;
2422
- type: "function";
2423
- function?: UpdateToolRequestBodyFunction$Outbound | undefined;
2424
- };
2425
-
2426
- /** @internal */
2427
- export const UpdateFunctionTool$outboundSchema: z.ZodType<
2428
- UpdateFunctionTool$Outbound,
2429
- z.ZodTypeDef,
2430
- UpdateFunctionTool
2431
- > = z.object({
2432
- path: z.string().optional(),
2433
- key: z.string().optional(),
2434
- displayName: z.string().optional(),
2435
- description: z.string().optional(),
2436
- status: UpdateToolRequestBodyStatus$outboundSchema.default("live"),
2437
- type: z.literal("function"),
2438
- function: z.lazy(() => UpdateToolRequestBodyFunction$outboundSchema)
2439
- .optional(),
2440
- }).transform((v) => {
2441
- return remap$(v, {
2442
- displayName: "display_name",
2443
- });
2444
- });
2445
-
2446
- export function updateFunctionToolToJSON(
2447
- updateFunctionTool: UpdateFunctionTool,
2448
- ): string {
2449
- return JSON.stringify(
2450
- UpdateFunctionTool$outboundSchema.parse(updateFunctionTool),
2451
- );
2452
- }
2453
- export function updateFunctionToolFromJSON(
2454
- jsonString: string,
2455
- ): SafeParseResult<UpdateFunctionTool, SDKValidationError> {
2456
- return safeParse(
2457
- jsonString,
2458
- (x) => UpdateFunctionTool$inboundSchema.parse(JSON.parse(x)),
2459
- `Failed to parse 'UpdateFunctionTool' from JSON`,
2460
- );
2461
- }
2462
-
2463
- /** @internal */
2464
- export const UpdateToolRequestBody$inboundSchema: z.ZodType<
2465
- UpdateToolRequestBody,
2466
- z.ZodTypeDef,
2467
- unknown
2468
- > = z.union([
2469
- z.lazy(() => UpdateFunctionTool$inboundSchema),
2470
- z.lazy(() => UpdateJSONSchemaTool$inboundSchema),
2471
- z.lazy(() => UpdateHTTPTool$inboundSchema),
2472
- z.lazy(() => UpdateMCPTool$inboundSchema),
2473
- z.lazy(() => UpdateCodeExecutionTool$inboundSchema),
2474
- ]);
2475
- /** @internal */
2476
- export type UpdateToolRequestBody$Outbound =
2477
- | UpdateFunctionTool$Outbound
2478
- | UpdateJSONSchemaTool$Outbound
2479
- | UpdateHTTPTool$Outbound
2480
- | UpdateMCPTool$Outbound
2481
- | UpdateCodeExecutionTool$Outbound;
2482
-
2483
- /** @internal */
2484
- export const UpdateToolRequestBody$outboundSchema: z.ZodType<
2485
- UpdateToolRequestBody$Outbound,
2486
- z.ZodTypeDef,
2487
- UpdateToolRequestBody
2488
- > = z.union([
2489
- z.lazy(() => UpdateFunctionTool$outboundSchema),
2490
- z.lazy(() => UpdateJSONSchemaTool$outboundSchema),
2491
- z.lazy(() => UpdateHTTPTool$outboundSchema),
2492
- z.lazy(() => UpdateMCPTool$outboundSchema),
2493
- z.lazy(() => UpdateCodeExecutionTool$outboundSchema),
2494
- ]);
2495
-
2496
- export function updateToolRequestBodyToJSON(
2497
- updateToolRequestBody: UpdateToolRequestBody,
2498
- ): string {
2499
- return JSON.stringify(
2500
- UpdateToolRequestBody$outboundSchema.parse(updateToolRequestBody),
2501
- );
2502
- }
2503
- export function updateToolRequestBodyFromJSON(
2504
- jsonString: string,
2505
- ): SafeParseResult<UpdateToolRequestBody, SDKValidationError> {
2506
- return safeParse(
2507
- jsonString,
2508
- (x) => UpdateToolRequestBody$inboundSchema.parse(JSON.parse(x)),
2509
- `Failed to parse 'UpdateToolRequestBody' from JSON`,
2510
- );
2511
- }
2512
-
2513
- /** @internal */
2514
- export const UpdateToolRequest$inboundSchema: z.ZodType<
2515
- UpdateToolRequest,
2516
- z.ZodTypeDef,
2517
- unknown
2518
- > = z.object({
2519
- tool_id: z.string(),
2520
- RequestBody: z.union([
2521
- z.lazy(() => UpdateFunctionTool$inboundSchema),
2522
- z.lazy(() => UpdateJSONSchemaTool$inboundSchema),
2523
- z.lazy(() => UpdateHTTPTool$inboundSchema),
2524
- z.lazy(() => UpdateMCPTool$inboundSchema),
2525
- z.lazy(() => UpdateCodeExecutionTool$inboundSchema),
2526
- ]).optional(),
2527
- }).transform((v) => {
2528
- return remap$(v, {
2529
- "tool_id": "toolId",
2530
- "RequestBody": "requestBody",
2531
- });
2532
- });
2533
- /** @internal */
2534
- export type UpdateToolRequest$Outbound = {
2535
- tool_id: string;
2536
- RequestBody?:
2537
- | UpdateFunctionTool$Outbound
2538
- | UpdateJSONSchemaTool$Outbound
2539
- | UpdateHTTPTool$Outbound
2540
- | UpdateMCPTool$Outbound
2541
- | UpdateCodeExecutionTool$Outbound
2542
- | undefined;
2543
- };
2544
-
2545
- /** @internal */
2546
- export const UpdateToolRequest$outboundSchema: z.ZodType<
2547
- UpdateToolRequest$Outbound,
2548
- z.ZodTypeDef,
2549
- UpdateToolRequest
2550
- > = z.object({
2551
- toolId: z.string(),
2552
- requestBody: z.union([
2553
- z.lazy(() => UpdateFunctionTool$outboundSchema),
2554
- z.lazy(() => UpdateJSONSchemaTool$outboundSchema),
2555
- z.lazy(() => UpdateHTTPTool$outboundSchema),
2556
- z.lazy(() => UpdateMCPTool$outboundSchema),
2557
- z.lazy(() => UpdateCodeExecutionTool$outboundSchema),
2558
- ]).optional(),
2559
- }).transform((v) => {
2560
- return remap$(v, {
2561
- toolId: "tool_id",
2562
- requestBody: "RequestBody",
2563
- });
2564
- });
2565
-
2566
- export function updateToolRequestToJSON(
2567
- updateToolRequest: UpdateToolRequest,
2568
- ): string {
2569
- return JSON.stringify(
2570
- UpdateToolRequest$outboundSchema.parse(updateToolRequest),
2571
- );
2572
- }
2573
- export function updateToolRequestFromJSON(
2574
- jsonString: string,
2575
- ): SafeParseResult<UpdateToolRequest, SDKValidationError> {
2576
- return safeParse(
2577
- jsonString,
2578
- (x) => UpdateToolRequest$inboundSchema.parse(JSON.parse(x)),
2579
- `Failed to parse 'UpdateToolRequest' from JSON`,
2580
- );
2581
- }
2582
-
2583
- /** @internal */
2584
- export const UpdateToolResponseBodyToolsResponse200ApplicationJSONStatus$inboundSchema:
2585
- z.ZodNativeEnum<
2586
- typeof UpdateToolResponseBodyToolsResponse200ApplicationJSONStatus
2587
- > = z.nativeEnum(UpdateToolResponseBodyToolsResponse200ApplicationJSONStatus);
2588
- /** @internal */
2589
- export const UpdateToolResponseBodyToolsResponse200ApplicationJSONStatus$outboundSchema:
2590
- z.ZodNativeEnum<
2591
- typeof UpdateToolResponseBodyToolsResponse200ApplicationJSONStatus
2592
- > = UpdateToolResponseBodyToolsResponse200ApplicationJSONStatus$inboundSchema;
2593
-
2594
- /** @internal */
2595
- export const UpdateToolResponseBodyToolsResponse200ApplicationJson5Type$inboundSchema:
2596
- z.ZodNativeEnum<
2597
- typeof UpdateToolResponseBodyToolsResponse200ApplicationJson5Type
2598
- > = z.nativeEnum(UpdateToolResponseBodyToolsResponse200ApplicationJson5Type);
2599
- /** @internal */
2600
- export const UpdateToolResponseBodyToolsResponse200ApplicationJson5Type$outboundSchema:
2601
- z.ZodNativeEnum<
2602
- typeof UpdateToolResponseBodyToolsResponse200ApplicationJson5Type
2603
- > = UpdateToolResponseBodyToolsResponse200ApplicationJson5Type$inboundSchema;
2604
-
2605
- /** @internal */
2606
- export const UpdateToolResponseBodyToolsParameters$inboundSchema: z.ZodType<
2607
- UpdateToolResponseBodyToolsParameters,
2608
- z.ZodTypeDef,
2609
- unknown
2610
- > = collectExtraKeys$(
2611
- z.object({
2612
- type:
2613
- UpdateToolResponseBodyToolsResponse200ApplicationJson5Type$inboundSchema,
2614
- properties: z.record(z.any()),
2615
- required: z.array(z.string()),
2616
- }).catchall(z.any()),
2617
- "additionalProperties",
2618
- true,
2619
- );
2620
- /** @internal */
2621
- export type UpdateToolResponseBodyToolsParameters$Outbound = {
2622
- type: string;
2623
- properties: { [k: string]: any };
2624
- required: Array<string>;
2625
- [additionalProperties: string]: unknown;
2626
- };
2627
-
2628
- /** @internal */
2629
- export const UpdateToolResponseBodyToolsParameters$outboundSchema: z.ZodType<
2630
- UpdateToolResponseBodyToolsParameters$Outbound,
2631
- z.ZodTypeDef,
2632
- UpdateToolResponseBodyToolsParameters
2633
- > = z.object({
2634
- type:
2635
- UpdateToolResponseBodyToolsResponse200ApplicationJson5Type$outboundSchema,
2636
- properties: z.record(z.any()),
2637
- required: z.array(z.string()),
2638
- additionalProperties: z.record(z.any()).optional(),
2639
- }).transform((v) => {
2640
- return {
2641
- ...v.additionalProperties,
2642
- ...remap$(v, {
2643
- additionalProperties: null,
2644
- }),
2645
- };
2646
- });
2647
-
2648
- export function updateToolResponseBodyToolsParametersToJSON(
2649
- updateToolResponseBodyToolsParameters: UpdateToolResponseBodyToolsParameters,
2650
- ): string {
2651
- return JSON.stringify(
2652
- UpdateToolResponseBodyToolsParameters$outboundSchema.parse(
2653
- updateToolResponseBodyToolsParameters,
2654
- ),
2655
- );
2656
- }
2657
- export function updateToolResponseBodyToolsParametersFromJSON(
2658
- jsonString: string,
2659
- ): SafeParseResult<UpdateToolResponseBodyToolsParameters, SDKValidationError> {
2660
- return safeParse(
2661
- jsonString,
2662
- (x) =>
2663
- UpdateToolResponseBodyToolsParameters$inboundSchema.parse(JSON.parse(x)),
2664
- `Failed to parse 'UpdateToolResponseBodyToolsParameters' from JSON`,
2665
- );
2666
- }
2667
-
2668
- /** @internal */
2669
- export const UpdateToolResponseBodyLanguage$inboundSchema: z.ZodNativeEnum<
2670
- typeof UpdateToolResponseBodyLanguage
2671
- > = z.nativeEnum(UpdateToolResponseBodyLanguage);
2672
- /** @internal */
2673
- export const UpdateToolResponseBodyLanguage$outboundSchema: z.ZodNativeEnum<
2674
- typeof UpdateToolResponseBodyLanguage
2675
- > = UpdateToolResponseBodyLanguage$inboundSchema;
2676
-
2677
- /** @internal */
2678
- export const UpdateToolResponseBodyCodeTool$inboundSchema: z.ZodType<
2679
- UpdateToolResponseBodyCodeTool,
2680
- z.ZodTypeDef,
2681
- unknown
2682
- > = z.object({
2683
- parameters: z.lazy(() => UpdateToolResponseBodyToolsParameters$inboundSchema)
2684
- .optional(),
2685
- language: UpdateToolResponseBodyLanguage$inboundSchema,
2686
- code: z.string(),
2687
- });
2688
- /** @internal */
2689
- export type UpdateToolResponseBodyCodeTool$Outbound = {
2690
- parameters?: UpdateToolResponseBodyToolsParameters$Outbound | undefined;
2691
- language: string;
2692
- code: string;
2693
- };
2694
-
2695
- /** @internal */
2696
- export const UpdateToolResponseBodyCodeTool$outboundSchema: z.ZodType<
2697
- UpdateToolResponseBodyCodeTool$Outbound,
2698
- z.ZodTypeDef,
2699
- UpdateToolResponseBodyCodeTool
2700
- > = z.object({
2701
- parameters: z.lazy(() => UpdateToolResponseBodyToolsParameters$outboundSchema)
2702
- .optional(),
2703
- language: UpdateToolResponseBodyLanguage$outboundSchema,
2704
- code: z.string(),
2705
- });
2706
-
2707
- export function updateToolResponseBodyCodeToolToJSON(
2708
- updateToolResponseBodyCodeTool: UpdateToolResponseBodyCodeTool,
2709
- ): string {
2710
- return JSON.stringify(
2711
- UpdateToolResponseBodyCodeTool$outboundSchema.parse(
2712
- updateToolResponseBodyCodeTool,
2713
- ),
2714
- );
2715
- }
2716
- export function updateToolResponseBodyCodeToolFromJSON(
2717
- jsonString: string,
2718
- ): SafeParseResult<UpdateToolResponseBodyCodeTool, SDKValidationError> {
2719
- return safeParse(
2720
- jsonString,
2721
- (x) => UpdateToolResponseBodyCodeTool$inboundSchema.parse(JSON.parse(x)),
2722
- `Failed to parse 'UpdateToolResponseBodyCodeTool' from JSON`,
2723
- );
2724
- }
2725
-
2726
- /** @internal */
2727
- export const UpdateToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
2728
- UpdateToolResponseBodyCodeExecutionTool,
2729
- z.ZodTypeDef,
2730
- unknown
2731
- > = z.object({
2732
- _id: z.string().default("tool_01KE6FM17BD7QZF1MRBQA363B2"),
2733
- path: z.string(),
2734
- key: z.string(),
2735
- display_name: z.string().optional(),
2736
- description: z.string(),
2737
- created_by_id: z.string().optional(),
2738
- updated_by_id: z.string().optional(),
2739
- project_id: z.string(),
2740
- workspace_id: z.string(),
2741
- created: z.string(),
2742
- updated: z.string(),
2743
- status:
2744
- UpdateToolResponseBodyToolsResponse200ApplicationJSONStatus$inboundSchema
2745
- .default("live"),
2746
- version_hash: z.string().optional(),
2747
- type: z.literal("code"),
2748
- code_tool: z.lazy(() => UpdateToolResponseBodyCodeTool$inboundSchema),
2749
- }).transform((v) => {
2750
- return remap$(v, {
2751
- "_id": "id",
2752
- "display_name": "displayName",
2753
- "created_by_id": "createdById",
2754
- "updated_by_id": "updatedById",
2755
- "project_id": "projectId",
2756
- "workspace_id": "workspaceId",
2757
- "version_hash": "versionHash",
2758
- "code_tool": "codeTool",
2759
- });
2760
- });
2761
- /** @internal */
2762
- export type UpdateToolResponseBodyCodeExecutionTool$Outbound = {
2763
- _id: string;
2764
- path: string;
2765
- key: string;
2766
- display_name?: string | undefined;
2767
- description: string;
2768
- created_by_id?: string | undefined;
2769
- updated_by_id?: string | undefined;
2770
- project_id: string;
2771
- workspace_id: string;
2772
- created: string;
2773
- updated: string;
2774
- status: string;
2775
- version_hash?: string | undefined;
2776
- type: "code";
2777
- code_tool: UpdateToolResponseBodyCodeTool$Outbound;
2778
- };
2779
-
2780
- /** @internal */
2781
- export const UpdateToolResponseBodyCodeExecutionTool$outboundSchema: z.ZodType<
2782
- UpdateToolResponseBodyCodeExecutionTool$Outbound,
2783
- z.ZodTypeDef,
2784
- UpdateToolResponseBodyCodeExecutionTool
2785
- > = z.object({
2786
- id: z.string().default("tool_01KE6FM17BD7QZF1MRBQA363B2"),
2787
- path: z.string(),
2788
- key: z.string(),
2789
- displayName: z.string().optional(),
2790
- description: z.string(),
2791
- createdById: z.string().optional(),
2792
- updatedById: z.string().optional(),
2793
- projectId: z.string(),
2794
- workspaceId: z.string(),
2795
- created: z.string(),
2796
- updated: z.string(),
2797
- status:
2798
- UpdateToolResponseBodyToolsResponse200ApplicationJSONStatus$outboundSchema
2799
- .default("live"),
2800
- versionHash: z.string().optional(),
2801
- type: z.literal("code"),
2802
- codeTool: z.lazy(() => UpdateToolResponseBodyCodeTool$outboundSchema),
2803
- }).transform((v) => {
2804
- return remap$(v, {
2805
- id: "_id",
2806
- displayName: "display_name",
2807
- createdById: "created_by_id",
2808
- updatedById: "updated_by_id",
2809
- projectId: "project_id",
2810
- workspaceId: "workspace_id",
2811
- versionHash: "version_hash",
2812
- codeTool: "code_tool",
2813
- });
2814
- });
2815
-
2816
- export function updateToolResponseBodyCodeExecutionToolToJSON(
2817
- updateToolResponseBodyCodeExecutionTool:
2818
- UpdateToolResponseBodyCodeExecutionTool,
2819
- ): string {
2820
- return JSON.stringify(
2821
- UpdateToolResponseBodyCodeExecutionTool$outboundSchema.parse(
2822
- updateToolResponseBodyCodeExecutionTool,
2823
- ),
2824
- );
2825
- }
2826
- export function updateToolResponseBodyCodeExecutionToolFromJSON(
2827
- jsonString: string,
2828
- ): SafeParseResult<
2829
- UpdateToolResponseBodyCodeExecutionTool,
2830
- SDKValidationError
2831
- > {
2832
- return safeParse(
2833
- jsonString,
2834
- (x) =>
2835
- UpdateToolResponseBodyCodeExecutionTool$inboundSchema.parse(
2836
- JSON.parse(x),
2837
- ),
2838
- `Failed to parse 'UpdateToolResponseBodyCodeExecutionTool' from JSON`,
2839
- );
2840
- }
2841
-
2842
- /** @internal */
2843
- export const UpdateToolResponseBodyToolsResponse200Status$inboundSchema:
2844
- z.ZodNativeEnum<typeof UpdateToolResponseBodyToolsResponse200Status> = z
2845
- .nativeEnum(UpdateToolResponseBodyToolsResponse200Status);
2846
- /** @internal */
2847
- export const UpdateToolResponseBodyToolsResponse200Status$outboundSchema:
2848
- z.ZodNativeEnum<typeof UpdateToolResponseBodyToolsResponse200Status> =
2849
- UpdateToolResponseBodyToolsResponse200Status$inboundSchema;
2850
-
2851
- /** @internal */
2852
- export const UpdateToolResponseBodyHeaders$inboundSchema: z.ZodType<
2853
- UpdateToolResponseBodyHeaders,
2854
- z.ZodTypeDef,
2855
- unknown
2856
- > = z.object({
2857
- value: z.string(),
2858
- encrypted: z.boolean().default(false),
2859
- });
2860
- /** @internal */
2861
- export type UpdateToolResponseBodyHeaders$Outbound = {
2862
- value: string;
2863
- encrypted: boolean;
2864
- };
2865
-
2866
- /** @internal */
2867
- export const UpdateToolResponseBodyHeaders$outboundSchema: z.ZodType<
2868
- UpdateToolResponseBodyHeaders$Outbound,
2869
- z.ZodTypeDef,
2870
- UpdateToolResponseBodyHeaders
2871
- > = z.object({
2872
- value: z.string(),
2873
- encrypted: z.boolean().default(false),
2874
- });
2875
-
2876
- export function updateToolResponseBodyHeadersToJSON(
2877
- updateToolResponseBodyHeaders: UpdateToolResponseBodyHeaders,
2878
- ): string {
2879
- return JSON.stringify(
2880
- UpdateToolResponseBodyHeaders$outboundSchema.parse(
2881
- updateToolResponseBodyHeaders,
2882
- ),
2883
- );
2884
- }
2885
- export function updateToolResponseBodyHeadersFromJSON(
2886
- jsonString: string,
2887
- ): SafeParseResult<UpdateToolResponseBodyHeaders, SDKValidationError> {
2888
- return safeParse(
2889
- jsonString,
2890
- (x) => UpdateToolResponseBodyHeaders$inboundSchema.parse(JSON.parse(x)),
2891
- `Failed to parse 'UpdateToolResponseBodyHeaders' from JSON`,
2892
- );
2893
- }
2894
-
2895
- /** @internal */
2896
- export const UpdateToolResponseBodyToolsResponse200ApplicationJson4Type$inboundSchema:
2897
- z.ZodNativeEnum<
2898
- typeof UpdateToolResponseBodyToolsResponse200ApplicationJson4Type
2899
- > = z.nativeEnum(UpdateToolResponseBodyToolsResponse200ApplicationJson4Type);
2900
- /** @internal */
2901
- export const UpdateToolResponseBodyToolsResponse200ApplicationJson4Type$outboundSchema:
2902
- z.ZodNativeEnum<
2903
- typeof UpdateToolResponseBodyToolsResponse200ApplicationJson4Type
2904
- > = UpdateToolResponseBodyToolsResponse200ApplicationJson4Type$inboundSchema;
2905
-
2906
- /** @internal */
2907
- export const UpdateToolResponseBodyToolsSchema$inboundSchema: z.ZodType<
2908
- UpdateToolResponseBodyToolsSchema,
2909
- z.ZodTypeDef,
2910
- unknown
2911
- > = z.object({
2912
- type:
2913
- UpdateToolResponseBodyToolsResponse200ApplicationJson4Type$inboundSchema,
2914
- properties: z.record(z.any()).optional(),
2915
- required: z.array(z.string()).optional(),
2916
- });
2917
- /** @internal */
2918
- export type UpdateToolResponseBodyToolsSchema$Outbound = {
2919
- type: string;
2920
- properties?: { [k: string]: any } | undefined;
2921
- required?: Array<string> | undefined;
2922
- };
2923
-
2924
- /** @internal */
2925
- export const UpdateToolResponseBodyToolsSchema$outboundSchema: z.ZodType<
2926
- UpdateToolResponseBodyToolsSchema$Outbound,
2927
- z.ZodTypeDef,
2928
- UpdateToolResponseBodyToolsSchema
2929
- > = z.object({
2930
- type:
2931
- UpdateToolResponseBodyToolsResponse200ApplicationJson4Type$outboundSchema,
2932
- properties: z.record(z.any()).optional(),
2933
- required: z.array(z.string()).optional(),
2934
- });
2935
-
2936
- export function updateToolResponseBodyToolsSchemaToJSON(
2937
- updateToolResponseBodyToolsSchema: UpdateToolResponseBodyToolsSchema,
2938
- ): string {
2939
- return JSON.stringify(
2940
- UpdateToolResponseBodyToolsSchema$outboundSchema.parse(
2941
- updateToolResponseBodyToolsSchema,
2942
- ),
2943
- );
2944
- }
2945
- export function updateToolResponseBodyToolsSchemaFromJSON(
2946
- jsonString: string,
2947
- ): SafeParseResult<UpdateToolResponseBodyToolsSchema, SDKValidationError> {
2948
- return safeParse(
2949
- jsonString,
2950
- (x) => UpdateToolResponseBodyToolsSchema$inboundSchema.parse(JSON.parse(x)),
2951
- `Failed to parse 'UpdateToolResponseBodyToolsSchema' from JSON`,
2952
- );
2953
- }
2954
-
2955
- /** @internal */
2956
- export const UpdateToolResponseBodyTools$inboundSchema: z.ZodType<
2957
- UpdateToolResponseBodyTools,
2958
- z.ZodTypeDef,
2959
- unknown
2960
- > = z.object({
2961
- id: z.string().default("01KE6FM17AA9NRMZ2DZG2ZPYK2"),
2962
- name: z.string(),
2963
- description: z.string().optional(),
2964
- schema: z.lazy(() => UpdateToolResponseBodyToolsSchema$inboundSchema),
2965
- });
2966
- /** @internal */
2967
- export type UpdateToolResponseBodyTools$Outbound = {
2968
- id: string;
2969
- name: string;
2970
- description?: string | undefined;
2971
- schema: UpdateToolResponseBodyToolsSchema$Outbound;
2972
- };
2973
-
2974
- /** @internal */
2975
- export const UpdateToolResponseBodyTools$outboundSchema: z.ZodType<
2976
- UpdateToolResponseBodyTools$Outbound,
2977
- z.ZodTypeDef,
2978
- UpdateToolResponseBodyTools
2979
- > = z.object({
2980
- id: z.string().default("01KE6FM17AA9NRMZ2DZG2ZPYK2"),
2981
- name: z.string(),
2982
- description: z.string().optional(),
2983
- schema: z.lazy(() => UpdateToolResponseBodyToolsSchema$outboundSchema),
2984
- });
2985
-
2986
- export function updateToolResponseBodyToolsToJSON(
2987
- updateToolResponseBodyTools: UpdateToolResponseBodyTools,
2988
- ): string {
2989
- return JSON.stringify(
2990
- UpdateToolResponseBodyTools$outboundSchema.parse(
2991
- updateToolResponseBodyTools,
2992
- ),
2993
- );
2994
- }
2995
- export function updateToolResponseBodyToolsFromJSON(
2996
- jsonString: string,
2997
- ): SafeParseResult<UpdateToolResponseBodyTools, SDKValidationError> {
2998
- return safeParse(
2999
- jsonString,
3000
- (x) => UpdateToolResponseBodyTools$inboundSchema.parse(JSON.parse(x)),
3001
- `Failed to parse 'UpdateToolResponseBodyTools' from JSON`,
3002
- );
3003
- }
3004
-
3005
- /** @internal */
3006
- export const UpdateToolResponseBodyConnectionType$inboundSchema:
3007
- z.ZodNativeEnum<typeof UpdateToolResponseBodyConnectionType> = z.nativeEnum(
3008
- UpdateToolResponseBodyConnectionType,
3009
- );
3010
- /** @internal */
3011
- export const UpdateToolResponseBodyConnectionType$outboundSchema:
3012
- z.ZodNativeEnum<typeof UpdateToolResponseBodyConnectionType> =
3013
- UpdateToolResponseBodyConnectionType$inboundSchema;
3014
-
3015
- /** @internal */
3016
- export const UpdateToolResponseBodyMcp$inboundSchema: z.ZodType<
3017
- UpdateToolResponseBodyMcp,
3018
- z.ZodTypeDef,
3019
- unknown
3020
- > = z.object({
3021
- server_url: z.string(),
3022
- headers: z.record(z.lazy(() => UpdateToolResponseBodyHeaders$inboundSchema))
3023
- .optional(),
3024
- tools: z.array(z.lazy(() => UpdateToolResponseBodyTools$inboundSchema)),
3025
- connection_type: UpdateToolResponseBodyConnectionType$inboundSchema,
3026
- }).transform((v) => {
3027
- return remap$(v, {
3028
- "server_url": "serverUrl",
3029
- "connection_type": "connectionType",
3030
- });
3031
- });
3032
- /** @internal */
3033
- export type UpdateToolResponseBodyMcp$Outbound = {
3034
- server_url: string;
3035
- headers?: { [k: string]: UpdateToolResponseBodyHeaders$Outbound } | undefined;
3036
- tools: Array<UpdateToolResponseBodyTools$Outbound>;
3037
- connection_type: string;
3038
- };
3039
-
3040
- /** @internal */
3041
- export const UpdateToolResponseBodyMcp$outboundSchema: z.ZodType<
3042
- UpdateToolResponseBodyMcp$Outbound,
3043
- z.ZodTypeDef,
3044
- UpdateToolResponseBodyMcp
3045
- > = z.object({
3046
- serverUrl: z.string(),
3047
- headers: z.record(z.lazy(() => UpdateToolResponseBodyHeaders$outboundSchema))
3048
- .optional(),
3049
- tools: z.array(z.lazy(() => UpdateToolResponseBodyTools$outboundSchema)),
3050
- connectionType: UpdateToolResponseBodyConnectionType$outboundSchema,
3051
- }).transform((v) => {
3052
- return remap$(v, {
3053
- serverUrl: "server_url",
3054
- connectionType: "connection_type",
3055
- });
3056
- });
3057
-
3058
- export function updateToolResponseBodyMcpToJSON(
3059
- updateToolResponseBodyMcp: UpdateToolResponseBodyMcp,
3060
- ): string {
3061
- return JSON.stringify(
3062
- UpdateToolResponseBodyMcp$outboundSchema.parse(updateToolResponseBodyMcp),
3063
- );
3064
- }
3065
- export function updateToolResponseBodyMcpFromJSON(
3066
- jsonString: string,
3067
- ): SafeParseResult<UpdateToolResponseBodyMcp, SDKValidationError> {
3068
- return safeParse(
3069
- jsonString,
3070
- (x) => UpdateToolResponseBodyMcp$inboundSchema.parse(JSON.parse(x)),
3071
- `Failed to parse 'UpdateToolResponseBodyMcp' from JSON`,
3072
- );
3073
- }
3074
-
3075
- /** @internal */
3076
- export const UpdateToolResponseBodyMCPTool$inboundSchema: z.ZodType<
3077
- UpdateToolResponseBodyMCPTool,
3078
- z.ZodTypeDef,
3079
- unknown
3080
- > = z.object({
3081
- _id: z.string().default("tool_01KE6FM179D2PHW2GJS7M3JSBJ"),
3082
- path: z.string(),
3083
- key: z.string(),
3084
- display_name: z.string().optional(),
3085
- description: z.string(),
3086
- created_by_id: z.string().optional(),
3087
- updated_by_id: z.string().optional(),
3088
- project_id: z.string(),
3089
- workspace_id: z.string(),
3090
- created: z.string(),
3091
- updated: z.string(),
3092
- status: UpdateToolResponseBodyToolsResponse200Status$inboundSchema.default(
3093
- "live",
3094
- ),
3095
- version_hash: z.string().optional(),
3096
- type: z.literal("mcp"),
3097
- mcp: z.lazy(() => UpdateToolResponseBodyMcp$inboundSchema),
3098
- }).transform((v) => {
3099
- return remap$(v, {
3100
- "_id": "id",
3101
- "display_name": "displayName",
3102
- "created_by_id": "createdById",
3103
- "updated_by_id": "updatedById",
3104
- "project_id": "projectId",
3105
- "workspace_id": "workspaceId",
3106
- "version_hash": "versionHash",
3107
- });
3108
- });
3109
- /** @internal */
3110
- export type UpdateToolResponseBodyMCPTool$Outbound = {
3111
- _id: string;
3112
- path: string;
3113
- key: string;
3114
- display_name?: string | undefined;
3115
- description: string;
3116
- created_by_id?: string | undefined;
3117
- updated_by_id?: string | undefined;
3118
- project_id: string;
3119
- workspace_id: string;
3120
- created: string;
3121
- updated: string;
3122
- status: string;
3123
- version_hash?: string | undefined;
3124
- type: "mcp";
3125
- mcp: UpdateToolResponseBodyMcp$Outbound;
3126
- };
3127
-
3128
- /** @internal */
3129
- export const UpdateToolResponseBodyMCPTool$outboundSchema: z.ZodType<
3130
- UpdateToolResponseBodyMCPTool$Outbound,
3131
- z.ZodTypeDef,
3132
- UpdateToolResponseBodyMCPTool
3133
- > = z.object({
3134
- id: z.string().default("tool_01KE6FM179D2PHW2GJS7M3JSBJ"),
3135
- path: z.string(),
3136
- key: z.string(),
3137
- displayName: z.string().optional(),
3138
- description: z.string(),
3139
- createdById: z.string().optional(),
3140
- updatedById: z.string().optional(),
3141
- projectId: z.string(),
3142
- workspaceId: z.string(),
3143
- created: z.string(),
3144
- updated: z.string(),
3145
- status: UpdateToolResponseBodyToolsResponse200Status$outboundSchema.default(
3146
- "live",
3147
- ),
3148
- versionHash: z.string().optional(),
3149
- type: z.literal("mcp"),
3150
- mcp: z.lazy(() => UpdateToolResponseBodyMcp$outboundSchema),
3151
- }).transform((v) => {
3152
- return remap$(v, {
3153
- id: "_id",
3154
- displayName: "display_name",
3155
- createdById: "created_by_id",
3156
- updatedById: "updated_by_id",
3157
- projectId: "project_id",
3158
- workspaceId: "workspace_id",
3159
- versionHash: "version_hash",
3160
- });
3161
- });
3162
-
3163
- export function updateToolResponseBodyMCPToolToJSON(
3164
- updateToolResponseBodyMCPTool: UpdateToolResponseBodyMCPTool,
3165
- ): string {
3166
- return JSON.stringify(
3167
- UpdateToolResponseBodyMCPTool$outboundSchema.parse(
3168
- updateToolResponseBodyMCPTool,
3169
- ),
3170
- );
3171
- }
3172
- export function updateToolResponseBodyMCPToolFromJSON(
3173
- jsonString: string,
3174
- ): SafeParseResult<UpdateToolResponseBodyMCPTool, SDKValidationError> {
3175
- return safeParse(
3176
- jsonString,
3177
- (x) => UpdateToolResponseBodyMCPTool$inboundSchema.parse(JSON.parse(x)),
3178
- `Failed to parse 'UpdateToolResponseBodyMCPTool' from JSON`,
3179
- );
3180
- }
3181
-
3182
- /** @internal */
3183
- export const UpdateToolResponseBodyToolsResponseStatus$inboundSchema:
3184
- z.ZodNativeEnum<typeof UpdateToolResponseBodyToolsResponseStatus> = z
3185
- .nativeEnum(UpdateToolResponseBodyToolsResponseStatus);
3186
- /** @internal */
3187
- export const UpdateToolResponseBodyToolsResponseStatus$outboundSchema:
3188
- z.ZodNativeEnum<typeof UpdateToolResponseBodyToolsResponseStatus> =
3189
- UpdateToolResponseBodyToolsResponseStatus$inboundSchema;
3190
-
3191
- /** @internal */
3192
- export const UpdateToolResponseBodyMethod$inboundSchema: z.ZodNativeEnum<
3193
- typeof UpdateToolResponseBodyMethod
3194
- > = z.nativeEnum(UpdateToolResponseBodyMethod);
3195
- /** @internal */
3196
- export const UpdateToolResponseBodyMethod$outboundSchema: z.ZodNativeEnum<
3197
- typeof UpdateToolResponseBodyMethod
3198
- > = UpdateToolResponseBodyMethod$inboundSchema;
3199
-
3200
- /** @internal */
3201
- export const UpdateToolHeadersTools2$inboundSchema: z.ZodType<
3202
- UpdateToolHeadersTools2,
3203
- z.ZodTypeDef,
3204
- unknown
3205
- > = z.object({
3206
- value: z.string(),
3207
- encrypted: z.boolean().default(false),
3208
- });
3209
- /** @internal */
3210
- export type UpdateToolHeadersTools2$Outbound = {
3211
- value: string;
3212
- encrypted: boolean;
3213
- };
3214
-
3215
- /** @internal */
3216
- export const UpdateToolHeadersTools2$outboundSchema: z.ZodType<
3217
- UpdateToolHeadersTools2$Outbound,
3218
- z.ZodTypeDef,
3219
- UpdateToolHeadersTools2
3220
- > = z.object({
3221
- value: z.string(),
3222
- encrypted: z.boolean().default(false),
3223
- });
3224
-
3225
- export function updateToolHeadersTools2ToJSON(
3226
- updateToolHeadersTools2: UpdateToolHeadersTools2,
3227
- ): string {
3228
- return JSON.stringify(
3229
- UpdateToolHeadersTools2$outboundSchema.parse(updateToolHeadersTools2),
3230
- );
3231
- }
3232
- export function updateToolHeadersTools2FromJSON(
3233
- jsonString: string,
3234
- ): SafeParseResult<UpdateToolHeadersTools2, SDKValidationError> {
3235
- return safeParse(
3236
- jsonString,
3237
- (x) => UpdateToolHeadersTools2$inboundSchema.parse(JSON.parse(x)),
3238
- `Failed to parse 'UpdateToolHeadersTools2' from JSON`,
3239
- );
3240
- }
3241
-
3242
- /** @internal */
3243
- export const UpdateToolResponseBodyToolsHeaders$inboundSchema: z.ZodType<
3244
- UpdateToolResponseBodyToolsHeaders,
3245
- z.ZodTypeDef,
3246
- unknown
3247
- > = z.union([z.lazy(() => UpdateToolHeadersTools2$inboundSchema), z.string()]);
3248
- /** @internal */
3249
- export type UpdateToolResponseBodyToolsHeaders$Outbound =
3250
- | UpdateToolHeadersTools2$Outbound
3251
- | string;
3252
-
3253
- /** @internal */
3254
- export const UpdateToolResponseBodyToolsHeaders$outboundSchema: z.ZodType<
3255
- UpdateToolResponseBodyToolsHeaders$Outbound,
3256
- z.ZodTypeDef,
3257
- UpdateToolResponseBodyToolsHeaders
3258
- > = z.union([z.lazy(() => UpdateToolHeadersTools2$outboundSchema), z.string()]);
3259
-
3260
- export function updateToolResponseBodyToolsHeadersToJSON(
3261
- updateToolResponseBodyToolsHeaders: UpdateToolResponseBodyToolsHeaders,
3262
- ): string {
3263
- return JSON.stringify(
3264
- UpdateToolResponseBodyToolsHeaders$outboundSchema.parse(
3265
- updateToolResponseBodyToolsHeaders,
3266
- ),
3267
- );
3268
- }
3269
- export function updateToolResponseBodyToolsHeadersFromJSON(
3270
- jsonString: string,
3271
- ): SafeParseResult<UpdateToolResponseBodyToolsHeaders, SDKValidationError> {
3272
- return safeParse(
3273
- jsonString,
3274
- (x) =>
3275
- UpdateToolResponseBodyToolsHeaders$inboundSchema.parse(JSON.parse(x)),
3276
- `Failed to parse 'UpdateToolResponseBodyToolsHeaders' from JSON`,
3277
- );
3278
- }
3279
-
3280
- /** @internal */
3281
- export const UpdateToolResponseBodyBlueprint$inboundSchema: z.ZodType<
3282
- UpdateToolResponseBodyBlueprint,
3283
- z.ZodTypeDef,
3284
- unknown
3285
- > = z.object({
3286
- url: z.string(),
3287
- method: UpdateToolResponseBodyMethod$inboundSchema,
3288
- headers: z.record(
3289
- z.union([z.lazy(() => UpdateToolHeadersTools2$inboundSchema), z.string()]),
3290
- ).optional(),
3291
- body: z.record(z.any()).optional(),
3292
- });
3293
- /** @internal */
3294
- export type UpdateToolResponseBodyBlueprint$Outbound = {
3295
- url: string;
3296
- method: string;
3297
- headers?:
3298
- | { [k: string]: UpdateToolHeadersTools2$Outbound | string }
3299
- | undefined;
3300
- body?: { [k: string]: any } | undefined;
3301
- };
3302
-
3303
- /** @internal */
3304
- export const UpdateToolResponseBodyBlueprint$outboundSchema: z.ZodType<
3305
- UpdateToolResponseBodyBlueprint$Outbound,
3306
- z.ZodTypeDef,
3307
- UpdateToolResponseBodyBlueprint
3308
- > = z.object({
3309
- url: z.string(),
3310
- method: UpdateToolResponseBodyMethod$outboundSchema,
3311
- headers: z.record(
3312
- z.union([z.lazy(() => UpdateToolHeadersTools2$outboundSchema), z.string()]),
3313
- ).optional(),
3314
- body: z.record(z.any()).optional(),
3315
- });
3316
-
3317
- export function updateToolResponseBodyBlueprintToJSON(
3318
- updateToolResponseBodyBlueprint: UpdateToolResponseBodyBlueprint,
3319
- ): string {
3320
- return JSON.stringify(
3321
- UpdateToolResponseBodyBlueprint$outboundSchema.parse(
3322
- updateToolResponseBodyBlueprint,
3323
- ),
3324
- );
3325
- }
3326
- export function updateToolResponseBodyBlueprintFromJSON(
3327
- jsonString: string,
3328
- ): SafeParseResult<UpdateToolResponseBodyBlueprint, SDKValidationError> {
3329
- return safeParse(
3330
- jsonString,
3331
- (x) => UpdateToolResponseBodyBlueprint$inboundSchema.parse(JSON.parse(x)),
3332
- `Failed to parse 'UpdateToolResponseBodyBlueprint' from JSON`,
3333
- );
3334
- }
3335
-
3336
- /** @internal */
3337
- export const UpdateToolResponseBodyToolsResponse200ApplicationJson3Type$inboundSchema:
3338
- z.ZodNativeEnum<
3339
- typeof UpdateToolResponseBodyToolsResponse200ApplicationJson3Type
3340
- > = z.nativeEnum(UpdateToolResponseBodyToolsResponse200ApplicationJson3Type);
3341
- /** @internal */
3342
- export const UpdateToolResponseBodyToolsResponse200ApplicationJson3Type$outboundSchema:
3343
- z.ZodNativeEnum<
3344
- typeof UpdateToolResponseBodyToolsResponse200ApplicationJson3Type
3345
- > = UpdateToolResponseBodyToolsResponse200ApplicationJson3Type$inboundSchema;
3346
-
3347
- /** @internal */
3348
- export const UpdateToolResponseBodyDefaultValue$inboundSchema: z.ZodType<
3349
- UpdateToolResponseBodyDefaultValue,
3350
- z.ZodTypeDef,
3351
- unknown
3352
- > = z.union([z.string(), z.number(), z.boolean()]);
3353
- /** @internal */
3354
- export type UpdateToolResponseBodyDefaultValue$Outbound =
3355
- | string
3356
- | number
3357
- | boolean;
3358
-
3359
- /** @internal */
3360
- export const UpdateToolResponseBodyDefaultValue$outboundSchema: z.ZodType<
3361
- UpdateToolResponseBodyDefaultValue$Outbound,
3362
- z.ZodTypeDef,
3363
- UpdateToolResponseBodyDefaultValue
3364
- > = z.union([z.string(), z.number(), z.boolean()]);
3365
-
3366
- export function updateToolResponseBodyDefaultValueToJSON(
3367
- updateToolResponseBodyDefaultValue: UpdateToolResponseBodyDefaultValue,
3368
- ): string {
3369
- return JSON.stringify(
3370
- UpdateToolResponseBodyDefaultValue$outboundSchema.parse(
3371
- updateToolResponseBodyDefaultValue,
3372
- ),
3373
- );
3374
- }
3375
- export function updateToolResponseBodyDefaultValueFromJSON(
3376
- jsonString: string,
3377
- ): SafeParseResult<UpdateToolResponseBodyDefaultValue, SDKValidationError> {
3378
- return safeParse(
3379
- jsonString,
3380
- (x) =>
3381
- UpdateToolResponseBodyDefaultValue$inboundSchema.parse(JSON.parse(x)),
3382
- `Failed to parse 'UpdateToolResponseBodyDefaultValue' from JSON`,
3383
- );
3384
- }
3385
-
3386
- /** @internal */
3387
- export const UpdateToolResponseBodyArguments$inboundSchema: z.ZodType<
3388
- UpdateToolResponseBodyArguments,
3389
- z.ZodTypeDef,
3390
- unknown
3391
- > = z.object({
3392
- type:
3393
- UpdateToolResponseBodyToolsResponse200ApplicationJson3Type$inboundSchema,
3394
- description: z.string(),
3395
- send_to_model: z.boolean().default(true),
3396
- default_value: z.union([z.string(), z.number(), z.boolean()]).optional(),
3397
- }).transform((v) => {
3398
- return remap$(v, {
3399
- "send_to_model": "sendToModel",
3400
- "default_value": "defaultValue",
3401
- });
3402
- });
3403
- /** @internal */
3404
- export type UpdateToolResponseBodyArguments$Outbound = {
3405
- type: string;
3406
- description: string;
3407
- send_to_model: boolean;
3408
- default_value?: string | number | boolean | undefined;
3409
- };
3410
-
3411
- /** @internal */
3412
- export const UpdateToolResponseBodyArguments$outboundSchema: z.ZodType<
3413
- UpdateToolResponseBodyArguments$Outbound,
3414
- z.ZodTypeDef,
3415
- UpdateToolResponseBodyArguments
3416
- > = z.object({
3417
- type:
3418
- UpdateToolResponseBodyToolsResponse200ApplicationJson3Type$outboundSchema,
3419
- description: z.string(),
3420
- sendToModel: z.boolean().default(true),
3421
- defaultValue: z.union([z.string(), z.number(), z.boolean()]).optional(),
3422
- }).transform((v) => {
3423
- return remap$(v, {
3424
- sendToModel: "send_to_model",
3425
- defaultValue: "default_value",
3426
- });
3427
- });
3428
-
3429
- export function updateToolResponseBodyArgumentsToJSON(
3430
- updateToolResponseBodyArguments: UpdateToolResponseBodyArguments,
3431
- ): string {
3432
- return JSON.stringify(
3433
- UpdateToolResponseBodyArguments$outboundSchema.parse(
3434
- updateToolResponseBodyArguments,
3435
- ),
3436
- );
3437
- }
3438
- export function updateToolResponseBodyArgumentsFromJSON(
3439
- jsonString: string,
3440
- ): SafeParseResult<UpdateToolResponseBodyArguments, SDKValidationError> {
3441
- return safeParse(
3442
- jsonString,
3443
- (x) => UpdateToolResponseBodyArguments$inboundSchema.parse(JSON.parse(x)),
3444
- `Failed to parse 'UpdateToolResponseBodyArguments' from JSON`,
3445
- );
3446
- }
3447
-
3448
- /** @internal */
3449
- export const UpdateToolResponseBodyHttp$inboundSchema: z.ZodType<
3450
- UpdateToolResponseBodyHttp,
3451
- z.ZodTypeDef,
3452
- unknown
3453
- > = z.object({
3454
- blueprint: z.lazy(() => UpdateToolResponseBodyBlueprint$inboundSchema),
3455
- arguments: z.record(
3456
- z.lazy(() => UpdateToolResponseBodyArguments$inboundSchema),
3457
- ).optional(),
3458
- });
3459
- /** @internal */
3460
- export type UpdateToolResponseBodyHttp$Outbound = {
3461
- blueprint: UpdateToolResponseBodyBlueprint$Outbound;
3462
- arguments?:
3463
- | { [k: string]: UpdateToolResponseBodyArguments$Outbound }
3464
- | undefined;
3465
- };
3466
-
3467
- /** @internal */
3468
- export const UpdateToolResponseBodyHttp$outboundSchema: z.ZodType<
3469
- UpdateToolResponseBodyHttp$Outbound,
3470
- z.ZodTypeDef,
3471
- UpdateToolResponseBodyHttp
3472
- > = z.object({
3473
- blueprint: z.lazy(() => UpdateToolResponseBodyBlueprint$outboundSchema),
3474
- arguments: z.record(
3475
- z.lazy(() => UpdateToolResponseBodyArguments$outboundSchema),
3476
- ).optional(),
3477
- });
3478
-
3479
- export function updateToolResponseBodyHttpToJSON(
3480
- updateToolResponseBodyHttp: UpdateToolResponseBodyHttp,
3481
- ): string {
3482
- return JSON.stringify(
3483
- UpdateToolResponseBodyHttp$outboundSchema.parse(updateToolResponseBodyHttp),
3484
- );
3485
- }
3486
- export function updateToolResponseBodyHttpFromJSON(
3487
- jsonString: string,
3488
- ): SafeParseResult<UpdateToolResponseBodyHttp, SDKValidationError> {
3489
- return safeParse(
3490
- jsonString,
3491
- (x) => UpdateToolResponseBodyHttp$inboundSchema.parse(JSON.parse(x)),
3492
- `Failed to parse 'UpdateToolResponseBodyHttp' from JSON`,
3493
- );
3494
- }
3495
-
3496
- /** @internal */
3497
- export const UpdateToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
3498
- UpdateToolResponseBodyHTTPTool,
3499
- z.ZodTypeDef,
3500
- unknown
3501
- > = z.object({
3502
- _id: z.string().default("tool_01KE6FM177X84JGFYGNDBN9MX4"),
3503
- path: z.string(),
3504
- key: z.string(),
3505
- display_name: z.string().optional(),
3506
- description: z.string(),
3507
- created_by_id: z.string().optional(),
3508
- updated_by_id: z.string().optional(),
3509
- project_id: z.string(),
3510
- workspace_id: z.string(),
3511
- created: z.string(),
3512
- updated: z.string(),
3513
- status: UpdateToolResponseBodyToolsResponseStatus$inboundSchema.default(
3514
- "live",
3515
- ),
3516
- version_hash: z.string().optional(),
3517
- type: z.literal("http"),
3518
- http: z.lazy(() => UpdateToolResponseBodyHttp$inboundSchema),
3519
- }).transform((v) => {
3520
- return remap$(v, {
3521
- "_id": "id",
3522
- "display_name": "displayName",
3523
- "created_by_id": "createdById",
3524
- "updated_by_id": "updatedById",
3525
- "project_id": "projectId",
3526
- "workspace_id": "workspaceId",
3527
- "version_hash": "versionHash",
3528
- });
3529
- });
3530
- /** @internal */
3531
- export type UpdateToolResponseBodyHTTPTool$Outbound = {
3532
- _id: string;
3533
- path: string;
3534
- key: string;
3535
- display_name?: string | undefined;
3536
- description: string;
3537
- created_by_id?: string | undefined;
3538
- updated_by_id?: string | undefined;
3539
- project_id: string;
3540
- workspace_id: string;
3541
- created: string;
3542
- updated: string;
3543
- status: string;
3544
- version_hash?: string | undefined;
3545
- type: "http";
3546
- http: UpdateToolResponseBodyHttp$Outbound;
3547
- };
3548
-
3549
- /** @internal */
3550
- export const UpdateToolResponseBodyHTTPTool$outboundSchema: z.ZodType<
3551
- UpdateToolResponseBodyHTTPTool$Outbound,
3552
- z.ZodTypeDef,
3553
- UpdateToolResponseBodyHTTPTool
3554
- > = z.object({
3555
- id: z.string().default("tool_01KE6FM177X84JGFYGNDBN9MX4"),
3556
- path: z.string(),
3557
- key: z.string(),
3558
- displayName: z.string().optional(),
3559
- description: z.string(),
3560
- createdById: z.string().optional(),
3561
- updatedById: z.string().optional(),
3562
- projectId: z.string(),
3563
- workspaceId: z.string(),
3564
- created: z.string(),
3565
- updated: z.string(),
3566
- status: UpdateToolResponseBodyToolsResponseStatus$outboundSchema.default(
3567
- "live",
3568
- ),
3569
- versionHash: z.string().optional(),
3570
- type: z.literal("http"),
3571
- http: z.lazy(() => UpdateToolResponseBodyHttp$outboundSchema),
3572
- }).transform((v) => {
3573
- return remap$(v, {
3574
- id: "_id",
3575
- displayName: "display_name",
3576
- createdById: "created_by_id",
3577
- updatedById: "updated_by_id",
3578
- projectId: "project_id",
3579
- workspaceId: "workspace_id",
3580
- versionHash: "version_hash",
3581
- });
3582
- });
3583
-
3584
- export function updateToolResponseBodyHTTPToolToJSON(
3585
- updateToolResponseBodyHTTPTool: UpdateToolResponseBodyHTTPTool,
3586
- ): string {
3587
- return JSON.stringify(
3588
- UpdateToolResponseBodyHTTPTool$outboundSchema.parse(
3589
- updateToolResponseBodyHTTPTool,
3590
- ),
3591
- );
3592
- }
3593
- export function updateToolResponseBodyHTTPToolFromJSON(
3594
- jsonString: string,
3595
- ): SafeParseResult<UpdateToolResponseBodyHTTPTool, SDKValidationError> {
3596
- return safeParse(
3597
- jsonString,
3598
- (x) => UpdateToolResponseBodyHTTPTool$inboundSchema.parse(JSON.parse(x)),
3599
- `Failed to parse 'UpdateToolResponseBodyHTTPTool' from JSON`,
3600
- );
3601
- }
3602
-
3603
- /** @internal */
3604
- export const UpdateToolResponseBodyToolsStatus$inboundSchema: z.ZodNativeEnum<
3605
- typeof UpdateToolResponseBodyToolsStatus
3606
- > = z.nativeEnum(UpdateToolResponseBodyToolsStatus);
3607
- /** @internal */
3608
- export const UpdateToolResponseBodyToolsStatus$outboundSchema: z.ZodNativeEnum<
3609
- typeof UpdateToolResponseBodyToolsStatus
3610
- > = UpdateToolResponseBodyToolsStatus$inboundSchema;
3611
-
3612
- /** @internal */
3613
- export const UpdateToolResponseBodySchema$inboundSchema: z.ZodType<
3614
- UpdateToolResponseBodySchema,
3615
- z.ZodTypeDef,
3616
- unknown
3617
- > = collectExtraKeys$(
3618
- z.object({
3619
- type: z.string(),
3620
- properties: z.record(z.any()),
3621
- required: z.array(z.string()),
3622
- }).catchall(z.any()),
3623
- "additionalProperties",
3624
- true,
3625
- );
3626
- /** @internal */
3627
- export type UpdateToolResponseBodySchema$Outbound = {
3628
- type: string;
3629
- properties: { [k: string]: any };
3630
- required: Array<string>;
3631
- [additionalProperties: string]: unknown;
3632
- };
3633
-
3634
- /** @internal */
3635
- export const UpdateToolResponseBodySchema$outboundSchema: z.ZodType<
3636
- UpdateToolResponseBodySchema$Outbound,
3637
- z.ZodTypeDef,
3638
- UpdateToolResponseBodySchema
3639
- > = z.object({
3640
- type: z.string(),
3641
- properties: z.record(z.any()),
3642
- required: z.array(z.string()),
3643
- additionalProperties: z.record(z.any()).optional(),
3644
- }).transform((v) => {
3645
- return {
3646
- ...v.additionalProperties,
3647
- ...remap$(v, {
3648
- additionalProperties: null,
3649
- }),
3650
- };
3651
- });
3652
-
3653
- export function updateToolResponseBodySchemaToJSON(
3654
- updateToolResponseBodySchema: UpdateToolResponseBodySchema,
3655
- ): string {
3656
- return JSON.stringify(
3657
- UpdateToolResponseBodySchema$outboundSchema.parse(
3658
- updateToolResponseBodySchema,
3659
- ),
3660
- );
3661
- }
3662
- export function updateToolResponseBodySchemaFromJSON(
3663
- jsonString: string,
3664
- ): SafeParseResult<UpdateToolResponseBodySchema, SDKValidationError> {
3665
- return safeParse(
3666
- jsonString,
3667
- (x) => UpdateToolResponseBodySchema$inboundSchema.parse(JSON.parse(x)),
3668
- `Failed to parse 'UpdateToolResponseBodySchema' from JSON`,
3669
- );
3670
- }
3671
-
3672
- /** @internal */
3673
- export const UpdateToolResponseBodyJsonSchema$inboundSchema: z.ZodType<
3674
- UpdateToolResponseBodyJsonSchema,
3675
- z.ZodTypeDef,
3676
- unknown
3677
- > = z.object({
3678
- name: z.string(),
3679
- description: z.string(),
3680
- schema: z.lazy(() => UpdateToolResponseBodySchema$inboundSchema),
3681
- strict: z.boolean().optional(),
3682
- });
3683
- /** @internal */
3684
- export type UpdateToolResponseBodyJsonSchema$Outbound = {
3685
- name: string;
3686
- description: string;
3687
- schema: UpdateToolResponseBodySchema$Outbound;
3688
- strict?: boolean | undefined;
3689
- };
3690
-
3691
- /** @internal */
3692
- export const UpdateToolResponseBodyJsonSchema$outboundSchema: z.ZodType<
3693
- UpdateToolResponseBodyJsonSchema$Outbound,
3694
- z.ZodTypeDef,
3695
- UpdateToolResponseBodyJsonSchema
3696
- > = z.object({
3697
- name: z.string(),
3698
- description: z.string(),
3699
- schema: z.lazy(() => UpdateToolResponseBodySchema$outboundSchema),
3700
- strict: z.boolean().optional(),
3701
- });
3702
-
3703
- export function updateToolResponseBodyJsonSchemaToJSON(
3704
- updateToolResponseBodyJsonSchema: UpdateToolResponseBodyJsonSchema,
3705
- ): string {
3706
- return JSON.stringify(
3707
- UpdateToolResponseBodyJsonSchema$outboundSchema.parse(
3708
- updateToolResponseBodyJsonSchema,
3709
- ),
3710
- );
3711
- }
3712
- export function updateToolResponseBodyJsonSchemaFromJSON(
3713
- jsonString: string,
3714
- ): SafeParseResult<UpdateToolResponseBodyJsonSchema, SDKValidationError> {
3715
- return safeParse(
3716
- jsonString,
3717
- (x) => UpdateToolResponseBodyJsonSchema$inboundSchema.parse(JSON.parse(x)),
3718
- `Failed to parse 'UpdateToolResponseBodyJsonSchema' from JSON`,
3719
- );
3720
- }
3721
-
3722
- /** @internal */
3723
- export const UpdateToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
3724
- UpdateToolResponseBodyJSONSchemaTool,
3725
- z.ZodTypeDef,
3726
- unknown
3727
- > = z.object({
3728
- _id: z.string().default("tool_01KE6FM175SJ9PHZPVF48ZMWRA"),
3729
- path: z.string(),
3730
- key: z.string(),
3731
- display_name: z.string().optional(),
3732
- description: z.string(),
3733
- created_by_id: z.string().optional(),
3734
- updated_by_id: z.string().optional(),
3735
- project_id: z.string(),
3736
- workspace_id: z.string(),
3737
- created: z.string(),
3738
- updated: z.string(),
3739
- status: UpdateToolResponseBodyToolsStatus$inboundSchema.default("live"),
3740
- version_hash: z.string().optional(),
3741
- type: z.literal("json_schema"),
3742
- json_schema: z.lazy(() => UpdateToolResponseBodyJsonSchema$inboundSchema),
3743
- }).transform((v) => {
3744
- return remap$(v, {
3745
- "_id": "id",
3746
- "display_name": "displayName",
3747
- "created_by_id": "createdById",
3748
- "updated_by_id": "updatedById",
3749
- "project_id": "projectId",
3750
- "workspace_id": "workspaceId",
3751
- "version_hash": "versionHash",
3752
- "json_schema": "jsonSchema",
3753
- });
3754
- });
3755
- /** @internal */
3756
- export type UpdateToolResponseBodyJSONSchemaTool$Outbound = {
3757
- _id: string;
3758
- path: string;
3759
- key: string;
3760
- display_name?: string | undefined;
3761
- description: string;
3762
- created_by_id?: string | undefined;
3763
- updated_by_id?: string | undefined;
3764
- project_id: string;
3765
- workspace_id: string;
3766
- created: string;
3767
- updated: string;
3768
- status: string;
3769
- version_hash?: string | undefined;
3770
- type: "json_schema";
3771
- json_schema: UpdateToolResponseBodyJsonSchema$Outbound;
3772
- };
3773
-
3774
- /** @internal */
3775
- export const UpdateToolResponseBodyJSONSchemaTool$outboundSchema: z.ZodType<
3776
- UpdateToolResponseBodyJSONSchemaTool$Outbound,
3777
- z.ZodTypeDef,
3778
- UpdateToolResponseBodyJSONSchemaTool
3779
- > = z.object({
3780
- id: z.string().default("tool_01KE6FM175SJ9PHZPVF48ZMWRA"),
3781
- path: z.string(),
3782
- key: z.string(),
3783
- displayName: z.string().optional(),
3784
- description: z.string(),
3785
- createdById: z.string().optional(),
3786
- updatedById: z.string().optional(),
3787
- projectId: z.string(),
3788
- workspaceId: z.string(),
3789
- created: z.string(),
3790
- updated: z.string(),
3791
- status: UpdateToolResponseBodyToolsStatus$outboundSchema.default("live"),
3792
- versionHash: z.string().optional(),
3793
- type: z.literal("json_schema"),
3794
- jsonSchema: z.lazy(() => UpdateToolResponseBodyJsonSchema$outboundSchema),
3795
- }).transform((v) => {
3796
- return remap$(v, {
3797
- id: "_id",
3798
- displayName: "display_name",
3799
- createdById: "created_by_id",
3800
- updatedById: "updated_by_id",
3801
- projectId: "project_id",
3802
- workspaceId: "workspace_id",
3803
- versionHash: "version_hash",
3804
- jsonSchema: "json_schema",
3805
- });
3806
- });
3807
-
3808
- export function updateToolResponseBodyJSONSchemaToolToJSON(
3809
- updateToolResponseBodyJSONSchemaTool: UpdateToolResponseBodyJSONSchemaTool,
3810
- ): string {
3811
- return JSON.stringify(
3812
- UpdateToolResponseBodyJSONSchemaTool$outboundSchema.parse(
3813
- updateToolResponseBodyJSONSchemaTool,
3814
- ),
3815
- );
3816
- }
3817
- export function updateToolResponseBodyJSONSchemaToolFromJSON(
3818
- jsonString: string,
3819
- ): SafeParseResult<UpdateToolResponseBodyJSONSchemaTool, SDKValidationError> {
3820
- return safeParse(
3821
- jsonString,
3822
- (x) =>
3823
- UpdateToolResponseBodyJSONSchemaTool$inboundSchema.parse(JSON.parse(x)),
3824
- `Failed to parse 'UpdateToolResponseBodyJSONSchemaTool' from JSON`,
3825
- );
3826
- }
3827
-
3828
- /** @internal */
3829
- export const UpdateToolResponseBodyStatus$inboundSchema: z.ZodNativeEnum<
3830
- typeof UpdateToolResponseBodyStatus
3831
- > = z.nativeEnum(UpdateToolResponseBodyStatus);
3832
- /** @internal */
3833
- export const UpdateToolResponseBodyStatus$outboundSchema: z.ZodNativeEnum<
3834
- typeof UpdateToolResponseBodyStatus
3835
- > = UpdateToolResponseBodyStatus$inboundSchema;
3836
-
3837
- /** @internal */
3838
- export const UpdateToolResponseBodyToolsResponse200ApplicationJson1Type$inboundSchema:
3839
- z.ZodNativeEnum<
3840
- typeof UpdateToolResponseBodyToolsResponse200ApplicationJson1Type
3841
- > = z.nativeEnum(UpdateToolResponseBodyToolsResponse200ApplicationJson1Type);
3842
- /** @internal */
3843
- export const UpdateToolResponseBodyToolsResponse200ApplicationJson1Type$outboundSchema:
3844
- z.ZodNativeEnum<
3845
- typeof UpdateToolResponseBodyToolsResponse200ApplicationJson1Type
3846
- > = UpdateToolResponseBodyToolsResponse200ApplicationJson1Type$inboundSchema;
3847
-
3848
- /** @internal */
3849
- export const UpdateToolResponseBodyParameters$inboundSchema: z.ZodType<
3850
- UpdateToolResponseBodyParameters,
3851
- z.ZodTypeDef,
3852
- unknown
3853
- > = collectExtraKeys$(
3854
- z.object({
3855
- type:
3856
- UpdateToolResponseBodyToolsResponse200ApplicationJson1Type$inboundSchema,
3857
- properties: z.record(z.any()),
3858
- required: z.array(z.string()),
3859
- }).catchall(z.any()),
3860
- "additionalProperties",
3861
- true,
3862
- );
3863
- /** @internal */
3864
- export type UpdateToolResponseBodyParameters$Outbound = {
3865
- type: string;
3866
- properties: { [k: string]: any };
3867
- required: Array<string>;
3868
- [additionalProperties: string]: unknown;
3869
- };
3870
-
3871
- /** @internal */
3872
- export const UpdateToolResponseBodyParameters$outboundSchema: z.ZodType<
3873
- UpdateToolResponseBodyParameters$Outbound,
3874
- z.ZodTypeDef,
3875
- UpdateToolResponseBodyParameters
3876
- > = z.object({
3877
- type:
3878
- UpdateToolResponseBodyToolsResponse200ApplicationJson1Type$outboundSchema,
3879
- properties: z.record(z.any()),
3880
- required: z.array(z.string()),
3881
- additionalProperties: z.record(z.any()).optional(),
3882
- }).transform((v) => {
3883
- return {
3884
- ...v.additionalProperties,
3885
- ...remap$(v, {
3886
- additionalProperties: null,
3887
- }),
3888
- };
3889
- });
3890
-
3891
- export function updateToolResponseBodyParametersToJSON(
3892
- updateToolResponseBodyParameters: UpdateToolResponseBodyParameters,
3893
- ): string {
3894
- return JSON.stringify(
3895
- UpdateToolResponseBodyParameters$outboundSchema.parse(
3896
- updateToolResponseBodyParameters,
3897
- ),
3898
- );
3899
- }
3900
- export function updateToolResponseBodyParametersFromJSON(
3901
- jsonString: string,
3902
- ): SafeParseResult<UpdateToolResponseBodyParameters, SDKValidationError> {
3903
- return safeParse(
3904
- jsonString,
3905
- (x) => UpdateToolResponseBodyParameters$inboundSchema.parse(JSON.parse(x)),
3906
- `Failed to parse 'UpdateToolResponseBodyParameters' from JSON`,
3907
- );
3908
- }
3909
-
3910
- /** @internal */
3911
- export const UpdateToolResponseBodyFunction$inboundSchema: z.ZodType<
3912
- UpdateToolResponseBodyFunction,
3913
- z.ZodTypeDef,
3914
- unknown
3915
- > = z.object({
3916
- name: z.string(),
3917
- description: z.string().optional(),
3918
- strict: z.boolean().optional(),
3919
- parameters: z.lazy(() => UpdateToolResponseBodyParameters$inboundSchema)
3920
- .optional(),
3921
- });
3922
- /** @internal */
3923
- export type UpdateToolResponseBodyFunction$Outbound = {
3924
- name: string;
3925
- description?: string | undefined;
3926
- strict?: boolean | undefined;
3927
- parameters?: UpdateToolResponseBodyParameters$Outbound | undefined;
3928
- };
3929
-
3930
- /** @internal */
3931
- export const UpdateToolResponseBodyFunction$outboundSchema: z.ZodType<
3932
- UpdateToolResponseBodyFunction$Outbound,
3933
- z.ZodTypeDef,
3934
- UpdateToolResponseBodyFunction
3935
- > = z.object({
3936
- name: z.string(),
3937
- description: z.string().optional(),
3938
- strict: z.boolean().optional(),
3939
- parameters: z.lazy(() => UpdateToolResponseBodyParameters$outboundSchema)
3940
- .optional(),
3941
- });
3942
-
3943
- export function updateToolResponseBodyFunctionToJSON(
3944
- updateToolResponseBodyFunction: UpdateToolResponseBodyFunction,
3945
- ): string {
3946
- return JSON.stringify(
3947
- UpdateToolResponseBodyFunction$outboundSchema.parse(
3948
- updateToolResponseBodyFunction,
3949
- ),
3950
- );
3951
- }
3952
- export function updateToolResponseBodyFunctionFromJSON(
3953
- jsonString: string,
3954
- ): SafeParseResult<UpdateToolResponseBodyFunction, SDKValidationError> {
3955
- return safeParse(
3956
- jsonString,
3957
- (x) => UpdateToolResponseBodyFunction$inboundSchema.parse(JSON.parse(x)),
3958
- `Failed to parse 'UpdateToolResponseBodyFunction' from JSON`,
3959
- );
3960
- }
3961
-
3962
- /** @internal */
3963
- export const UpdateToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
3964
- UpdateToolResponseBodyFunctionTool,
3965
- z.ZodTypeDef,
3966
- unknown
3967
- > = z.object({
3968
- _id: z.string().default("tool_01KE6FM173XCV430F4X5EZ153R"),
3969
- path: z.string(),
3970
- key: z.string(),
3971
- display_name: z.string().optional(),
3972
- description: z.string(),
3973
- created_by_id: z.string().optional(),
3974
- updated_by_id: z.string().optional(),
3975
- project_id: z.string(),
3976
- workspace_id: z.string(),
3977
- created: z.string(),
3978
- updated: z.string(),
3979
- status: UpdateToolResponseBodyStatus$inboundSchema.default("live"),
3980
- version_hash: z.string().optional(),
3981
- type: z.literal("function"),
3982
- function: z.lazy(() => UpdateToolResponseBodyFunction$inboundSchema),
3983
- }).transform((v) => {
3984
- return remap$(v, {
3985
- "_id": "id",
3986
- "display_name": "displayName",
3987
- "created_by_id": "createdById",
3988
- "updated_by_id": "updatedById",
3989
- "project_id": "projectId",
3990
- "workspace_id": "workspaceId",
3991
- "version_hash": "versionHash",
3992
- });
3993
- });
3994
- /** @internal */
3995
- export type UpdateToolResponseBodyFunctionTool$Outbound = {
3996
- _id: string;
3997
- path: string;
3998
- key: string;
3999
- display_name?: string | undefined;
4000
- description: string;
4001
- created_by_id?: string | undefined;
4002
- updated_by_id?: string | undefined;
4003
- project_id: string;
4004
- workspace_id: string;
4005
- created: string;
4006
- updated: string;
4007
- status: string;
4008
- version_hash?: string | undefined;
4009
- type: "function";
4010
- function: UpdateToolResponseBodyFunction$Outbound;
4011
- };
4012
-
4013
- /** @internal */
4014
- export const UpdateToolResponseBodyFunctionTool$outboundSchema: z.ZodType<
4015
- UpdateToolResponseBodyFunctionTool$Outbound,
4016
- z.ZodTypeDef,
4017
- UpdateToolResponseBodyFunctionTool
4018
- > = z.object({
4019
- id: z.string().default("tool_01KE6FM173XCV430F4X5EZ153R"),
4020
- path: z.string(),
4021
- key: z.string(),
4022
- displayName: z.string().optional(),
4023
- description: z.string(),
4024
- createdById: z.string().optional(),
4025
- updatedById: z.string().optional(),
4026
- projectId: z.string(),
4027
- workspaceId: z.string(),
4028
- created: z.string(),
4029
- updated: z.string(),
4030
- status: UpdateToolResponseBodyStatus$outboundSchema.default("live"),
4031
- versionHash: z.string().optional(),
4032
- type: z.literal("function"),
4033
- function: z.lazy(() => UpdateToolResponseBodyFunction$outboundSchema),
4034
- }).transform((v) => {
4035
- return remap$(v, {
4036
- id: "_id",
4037
- displayName: "display_name",
4038
- createdById: "created_by_id",
4039
- updatedById: "updated_by_id",
4040
- projectId: "project_id",
4041
- workspaceId: "workspace_id",
4042
- versionHash: "version_hash",
4043
- });
4044
- });
4045
-
4046
- export function updateToolResponseBodyFunctionToolToJSON(
4047
- updateToolResponseBodyFunctionTool: UpdateToolResponseBodyFunctionTool,
4048
- ): string {
4049
- return JSON.stringify(
4050
- UpdateToolResponseBodyFunctionTool$outboundSchema.parse(
4051
- updateToolResponseBodyFunctionTool,
4052
- ),
4053
- );
4054
- }
4055
- export function updateToolResponseBodyFunctionToolFromJSON(
4056
- jsonString: string,
4057
- ): SafeParseResult<UpdateToolResponseBodyFunctionTool, SDKValidationError> {
4058
- return safeParse(
4059
- jsonString,
4060
- (x) =>
4061
- UpdateToolResponseBodyFunctionTool$inboundSchema.parse(JSON.parse(x)),
4062
- `Failed to parse 'UpdateToolResponseBodyFunctionTool' from JSON`,
4063
- );
4064
- }
4065
-
4066
- /** @internal */
4067
- export const UpdateToolResponseBody$inboundSchema: z.ZodType<
4068
- UpdateToolResponseBody,
4069
- z.ZodTypeDef,
4070
- unknown
4071
- > = z.union([
4072
- z.lazy(() => UpdateToolResponseBodyFunctionTool$inboundSchema),
4073
- z.lazy(() => UpdateToolResponseBodyJSONSchemaTool$inboundSchema),
4074
- z.lazy(() => UpdateToolResponseBodyHTTPTool$inboundSchema),
4075
- z.lazy(() => UpdateToolResponseBodyMCPTool$inboundSchema),
4076
- z.lazy(() => UpdateToolResponseBodyCodeExecutionTool$inboundSchema),
4077
- ]);
4078
- /** @internal */
4079
- export type UpdateToolResponseBody$Outbound =
4080
- | UpdateToolResponseBodyFunctionTool$Outbound
4081
- | UpdateToolResponseBodyJSONSchemaTool$Outbound
4082
- | UpdateToolResponseBodyHTTPTool$Outbound
4083
- | UpdateToolResponseBodyMCPTool$Outbound
4084
- | UpdateToolResponseBodyCodeExecutionTool$Outbound;
4085
-
4086
- /** @internal */
4087
- export const UpdateToolResponseBody$outboundSchema: z.ZodType<
4088
- UpdateToolResponseBody$Outbound,
4089
- z.ZodTypeDef,
4090
- UpdateToolResponseBody
4091
- > = z.union([
4092
- z.lazy(() => UpdateToolResponseBodyFunctionTool$outboundSchema),
4093
- z.lazy(() => UpdateToolResponseBodyJSONSchemaTool$outboundSchema),
4094
- z.lazy(() => UpdateToolResponseBodyHTTPTool$outboundSchema),
4095
- z.lazy(() => UpdateToolResponseBodyMCPTool$outboundSchema),
4096
- z.lazy(() => UpdateToolResponseBodyCodeExecutionTool$outboundSchema),
4097
- ]);
4098
-
4099
- export function updateToolResponseBodyToJSON(
4100
- updateToolResponseBody: UpdateToolResponseBody,
4101
- ): string {
4102
- return JSON.stringify(
4103
- UpdateToolResponseBody$outboundSchema.parse(updateToolResponseBody),
4104
- );
4105
- }
4106
- export function updateToolResponseBodyFromJSON(
4107
- jsonString: string,
4108
- ): SafeParseResult<UpdateToolResponseBody, SDKValidationError> {
4109
- return safeParse(
4110
- jsonString,
4111
- (x) => UpdateToolResponseBody$inboundSchema.parse(JSON.parse(x)),
4112
- `Failed to parse 'UpdateToolResponseBody' from JSON`,
4113
- );
4114
- }