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