@orq-ai/node 3.14.8 → 4.0.0-rc.0

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