@orq-ai/node 3.5.13 → 3.6.0-rc.11

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 (394) hide show
  1. package/README.md +6 -0
  2. package/bin/mcp-server.js +4828 -608
  3. package/bin/mcp-server.js.map +44 -35
  4. package/docs/sdks/datasets/README.md +91 -4
  5. package/docs/sdks/deployments/README.md +89 -0
  6. package/docs/sdks/knowledge/README.md +81 -4
  7. package/docs/sdks/prompts/README.md +4 -4
  8. package/funcs/datasetsCreateExperiment.d.ts +16 -0
  9. package/funcs/datasetsCreateExperiment.d.ts.map +1 -0
  10. package/funcs/datasetsCreateExperiment.js +118 -0
  11. package/funcs/datasetsCreateExperiment.js.map +1 -0
  12. package/funcs/deploymentsCreateExperiment.d.ts +16 -0
  13. package/funcs/deploymentsCreateExperiment.d.ts.map +1 -0
  14. package/funcs/deploymentsCreateExperiment.js +118 -0
  15. package/funcs/deploymentsCreateExperiment.js.map +1 -0
  16. package/funcs/knowledgeSearch.d.ts +16 -0
  17. package/funcs/knowledgeSearch.d.ts.map +1 -0
  18. package/funcs/knowledgeSearch.js +118 -0
  19. package/funcs/knowledgeSearch.js.map +1 -0
  20. package/jsr.json +1 -1
  21. package/lib/config.d.ts +2 -2
  22. package/lib/config.js +2 -2
  23. package/lib/config.js.map +1 -1
  24. package/mcp-server/mcp-server.js +1 -1
  25. package/mcp-server/mcp-server.js.map +1 -1
  26. package/mcp-server/server.d.ts.map +1 -1
  27. package/mcp-server/server.js +7 -1
  28. package/mcp-server/server.js.map +1 -1
  29. package/mcp-server/tools/datasetsCreateExperiment.d.ts +8 -0
  30. package/mcp-server/tools/datasetsCreateExperiment.d.ts.map +1 -0
  31. package/mcp-server/tools/datasetsCreateExperiment.js +64 -0
  32. package/mcp-server/tools/datasetsCreateExperiment.js.map +1 -0
  33. package/mcp-server/tools/deploymentsCreateExperiment.d.ts +8 -0
  34. package/mcp-server/tools/deploymentsCreateExperiment.d.ts.map +1 -0
  35. package/mcp-server/tools/deploymentsCreateExperiment.js +64 -0
  36. package/mcp-server/tools/deploymentsCreateExperiment.js.map +1 -0
  37. package/mcp-server/tools/knowledgeSearch.d.ts +8 -0
  38. package/mcp-server/tools/knowledgeSearch.d.ts.map +1 -0
  39. package/mcp-server/tools/knowledgeSearch.js +64 -0
  40. package/mcp-server/tools/knowledgeSearch.js.map +1 -0
  41. package/models/components/deployments.d.ts +1442 -67
  42. package/models/components/deployments.d.ts.map +1 -1
  43. package/models/components/deployments.js +1881 -126
  44. package/models/components/deployments.js.map +1 -1
  45. package/models/operations/bulkcreatedatapoints.js +2 -2
  46. package/models/operations/createchunk.d.ts +32 -17
  47. package/models/operations/createchunk.d.ts.map +1 -1
  48. package/models/operations/createchunk.js +30 -19
  49. package/models/operations/createchunk.js.map +1 -1
  50. package/models/operations/createcontact.js +2 -2
  51. package/models/operations/createdataset.js +2 -2
  52. package/models/operations/createdatasetexperiment.d.ts +140 -0
  53. package/models/operations/createdatasetexperiment.d.ts.map +1 -0
  54. package/models/operations/createdatasetexperiment.js +188 -0
  55. package/models/operations/createdatasetexperiment.js.map +1 -0
  56. package/models/operations/createdatasetitem.js +2 -2
  57. package/models/operations/createdatasource.js +2 -2
  58. package/models/operations/createdeploymentexperiment.d.ts +152 -0
  59. package/models/operations/createdeploymentexperiment.d.ts.map +1 -0
  60. package/models/operations/createdeploymentexperiment.js +189 -0
  61. package/models/operations/createdeploymentexperiment.js.map +1 -0
  62. package/models/operations/deploymentcreatemetric.d.ts +240 -28
  63. package/models/operations/deploymentcreatemetric.d.ts.map +1 -1
  64. package/models/operations/deploymentcreatemetric.js +236 -29
  65. package/models/operations/deploymentcreatemetric.js.map +1 -1
  66. package/models/operations/deploymentgetconfig.d.ts +1428 -53
  67. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  68. package/models/operations/deploymentgetconfig.js +1876 -120
  69. package/models/operations/deploymentgetconfig.js.map +1 -1
  70. package/models/operations/deploymentinvoke.d.ts +34 -4
  71. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  72. package/models/operations/deploymentinvoke.js +30 -4
  73. package/models/operations/deploymentinvoke.js.map +1 -1
  74. package/models/operations/deploymentstream.d.ts +1425 -50
  75. package/models/operations/deploymentstream.d.ts.map +1 -1
  76. package/models/operations/deploymentstream.js +1840 -88
  77. package/models/operations/deploymentstream.js.map +1 -1
  78. package/models/operations/fileget.js +2 -2
  79. package/models/operations/filelist.js +2 -2
  80. package/models/operations/fileupload.d.ts +15 -15
  81. package/models/operations/fileupload.d.ts.map +1 -1
  82. package/models/operations/fileupload.js +20 -21
  83. package/models/operations/fileupload.js.map +1 -1
  84. package/models/operations/getonechunk.d.ts +24 -3
  85. package/models/operations/getonechunk.d.ts.map +1 -1
  86. package/models/operations/getonechunk.js +26 -3
  87. package/models/operations/getonechunk.js.map +1 -1
  88. package/models/operations/index.d.ts +3 -0
  89. package/models/operations/index.d.ts.map +1 -1
  90. package/models/operations/index.js +3 -0
  91. package/models/operations/index.js.map +1 -1
  92. package/models/operations/listchunks.d.ts +24 -3
  93. package/models/operations/listchunks.d.ts.map +1 -1
  94. package/models/operations/listchunks.js +26 -3
  95. package/models/operations/listchunks.js.map +1 -1
  96. package/models/operations/listdatasetdatapoints.js +2 -2
  97. package/models/operations/listdatasets.js +2 -2
  98. package/models/operations/listdatasources.js +2 -2
  99. package/models/operations/retrievedatapoint.js +2 -2
  100. package/models/operations/retrievedataset.js +2 -2
  101. package/models/operations/retrievedatasource.js +2 -2
  102. package/models/operations/searchknowledge.d.ts +1379 -0
  103. package/models/operations/searchknowledge.d.ts.map +1 -0
  104. package/models/operations/searchknowledge.js +1817 -0
  105. package/models/operations/searchknowledge.js.map +1 -0
  106. package/models/operations/updatechunk.d.ts +32 -17
  107. package/models/operations/updatechunk.d.ts.map +1 -1
  108. package/models/operations/updatechunk.js +30 -19
  109. package/models/operations/updatechunk.js.map +1 -1
  110. package/models/operations/updatedatapoint.js +2 -2
  111. package/models/operations/updatedataset.js +2 -2
  112. package/models/operations/updatedatasource.js +2 -2
  113. package/package.json +3 -2
  114. package/sdk/datasets.d.ts +7 -0
  115. package/sdk/datasets.d.ts.map +1 -1
  116. package/sdk/datasets.js +10 -0
  117. package/sdk/datasets.js.map +1 -1
  118. package/sdk/deployments.d.ts +7 -0
  119. package/sdk/deployments.d.ts.map +1 -1
  120. package/sdk/deployments.js +10 -0
  121. package/sdk/deployments.js.map +1 -1
  122. package/sdk/knowledge.d.ts +7 -0
  123. package/sdk/knowledge.d.ts.map +1 -1
  124. package/sdk/knowledge.js +10 -0
  125. package/sdk/knowledge.js.map +1 -1
  126. package/src/lib/config.ts +2 -2
  127. package/src/mcp-server/mcp-server.ts +1 -1
  128. package/src/mcp-server/server.ts +7 -1
  129. package/src/models/components/deployments.ts +3655 -165
  130. package/src/models/operations/bulkcreatedatapoints.ts +2 -2
  131. package/src/models/operations/createchunk.ts +65 -35
  132. package/src/models/operations/createcontact.ts +2 -2
  133. package/src/models/operations/createdataset.ts +2 -2
  134. package/src/models/operations/createdatasetitem.ts +2 -2
  135. package/src/models/operations/createdatasource.ts +2 -2
  136. package/src/models/operations/deploymentcreatemetric.ts +517 -40
  137. package/src/models/operations/deploymentgetconfig.ts +3656 -118
  138. package/src/models/operations/deploymentinvoke.ts +64 -8
  139. package/src/models/operations/deploymentstream.ts +3997 -116
  140. package/src/models/operations/fileget.ts +2 -2
  141. package/src/models/operations/filelist.ts +2 -2
  142. package/src/models/operations/fileupload.ts +37 -34
  143. package/src/models/operations/getonechunk.ts +55 -5
  144. package/src/models/operations/index.ts +3 -0
  145. package/src/models/operations/listchunks.ts +55 -5
  146. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  147. package/src/models/operations/listdatasets.ts +2 -2
  148. package/src/models/operations/listdatasources.ts +2 -2
  149. package/src/models/operations/retrievedatapoint.ts +2 -2
  150. package/src/models/operations/retrievedataset.ts +2 -2
  151. package/src/models/operations/retrievedatasource.ts +2 -2
  152. package/src/models/operations/updatechunk.ts +65 -35
  153. package/src/models/operations/updatedatapoint.ts +2 -2
  154. package/src/models/operations/updatedataset.ts +2 -2
  155. package/src/models/operations/updatedatasource.ts +2 -2
  156. package/src/sdk/datasets.ts +18 -0
  157. package/src/sdk/deployments.ts +18 -0
  158. package/src/sdk/knowledge.ts +18 -0
  159. package/packages/orq-rc/FUNCTIONS.md +0 -106
  160. package/packages/orq-rc/README.md +0 -707
  161. package/packages/orq-rc/RUNTIMES.md +0 -48
  162. package/packages/orq-rc/docs/sdks/contacts/README.md +0 -84
  163. package/packages/orq-rc/docs/sdks/datasets/README.md +0 -1027
  164. package/packages/orq-rc/docs/sdks/deployments/README.md +0 -405
  165. package/packages/orq-rc/docs/sdks/feedback/README.md +0 -92
  166. package/packages/orq-rc/docs/sdks/files/README.md +0 -311
  167. package/packages/orq-rc/docs/sdks/knowledge/README.md +0 -1273
  168. package/packages/orq-rc/docs/sdks/metrics/README.md +0 -86
  169. package/packages/orq-rc/docs/sdks/models/README.md +0 -79
  170. package/packages/orq-rc/docs/sdks/orq/README.md +0 -10
  171. package/packages/orq-rc/docs/sdks/prompts/README.md +0 -576
  172. package/packages/orq-rc/docs/sdks/remoteconfigs/README.md +0 -80
  173. package/packages/orq-rc/jsr.json +0 -28
  174. package/packages/orq-rc/package-lock.json +0 -3217
  175. package/packages/orq-rc/package.json +0 -45
  176. package/packages/orq-rc/src/core.ts +0 -13
  177. package/packages/orq-rc/src/funcs/contactsCreate.ts +0 -154
  178. package/packages/orq-rc/src/funcs/datasetsClear.ts +0 -161
  179. package/packages/orq-rc/src/funcs/datasetsCreate.ts +0 -159
  180. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +0 -161
  181. package/packages/orq-rc/src/funcs/datasetsCreateDatapoints.ts +0 -165
  182. package/packages/orq-rc/src/funcs/datasetsDelete.ts +0 -161
  183. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +0 -176
  184. package/packages/orq-rc/src/funcs/datasetsList.ts +0 -161
  185. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +0 -168
  186. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +0 -169
  187. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +0 -175
  188. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +0 -170
  189. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +0 -173
  190. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +0 -162
  191. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +0 -170
  192. package/packages/orq-rc/src/funcs/deploymentsList.ts +0 -170
  193. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +0 -162
  194. package/packages/orq-rc/src/funcs/deploymentsStream.ts +0 -178
  195. package/packages/orq-rc/src/funcs/feedbackCreate.ts +0 -154
  196. package/packages/orq-rc/src/funcs/filesCreate.ts +0 -174
  197. package/packages/orq-rc/src/funcs/filesDelete.ts +0 -158
  198. package/packages/orq-rc/src/funcs/filesGet.ts +0 -160
  199. package/packages/orq-rc/src/funcs/filesList.ts +0 -161
  200. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +0 -152
  201. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +0 -165
  202. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +0 -160
  203. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +0 -161
  204. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +0 -168
  205. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +0 -167
  206. package/packages/orq-rc/src/funcs/knowledgeList.ts +0 -163
  207. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +0 -172
  208. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +0 -168
  209. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +0 -160
  210. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +0 -167
  211. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +0 -163
  212. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +0 -158
  213. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +0 -168
  214. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +0 -164
  215. package/packages/orq-rc/src/funcs/modelsList.ts +0 -136
  216. package/packages/orq-rc/src/funcs/promptsCreate.ts +0 -154
  217. package/packages/orq-rc/src/funcs/promptsDelete.ts +0 -158
  218. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +0 -175
  219. package/packages/orq-rc/src/funcs/promptsList.ts +0 -161
  220. package/packages/orq-rc/src/funcs/promptsListVersions.ts +0 -167
  221. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +0 -160
  222. package/packages/orq-rc/src/funcs/promptsUpdate.ts +0 -167
  223. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +0 -155
  224. package/packages/orq-rc/src/hooks/global.ts +0 -44
  225. package/packages/orq-rc/src/hooks/hooks.ts +0 -132
  226. package/packages/orq-rc/src/hooks/index.ts +0 -6
  227. package/packages/orq-rc/src/hooks/registration.ts +0 -15
  228. package/packages/orq-rc/src/hooks/types.ts +0 -110
  229. package/packages/orq-rc/src/index.ts +0 -7
  230. package/packages/orq-rc/src/lib/base64.ts +0 -37
  231. package/packages/orq-rc/src/lib/config.ts +0 -70
  232. package/packages/orq-rc/src/lib/dlv.ts +0 -53
  233. package/packages/orq-rc/src/lib/encodings.ts +0 -483
  234. package/packages/orq-rc/src/lib/env.ts +0 -73
  235. package/packages/orq-rc/src/lib/event-streams.ts +0 -264
  236. package/packages/orq-rc/src/lib/files.ts +0 -40
  237. package/packages/orq-rc/src/lib/http.ts +0 -323
  238. package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
  239. package/packages/orq-rc/src/lib/logger.ts +0 -9
  240. package/packages/orq-rc/src/lib/matchers.ts +0 -345
  241. package/packages/orq-rc/src/lib/primitives.ts +0 -150
  242. package/packages/orq-rc/src/lib/retries.ts +0 -218
  243. package/packages/orq-rc/src/lib/schemas.ts +0 -91
  244. package/packages/orq-rc/src/lib/sdks.ts +0 -401
  245. package/packages/orq-rc/src/lib/security.ts +0 -261
  246. package/packages/orq-rc/src/lib/url.ts +0 -33
  247. package/packages/orq-rc/src/mcp-server/cli/start/command.ts +0 -125
  248. package/packages/orq-rc/src/mcp-server/cli/start/impl.ts +0 -140
  249. package/packages/orq-rc/src/mcp-server/cli.ts +0 -13
  250. package/packages/orq-rc/src/mcp-server/console-logger.ts +0 -71
  251. package/packages/orq-rc/src/mcp-server/extensions.ts +0 -17
  252. package/packages/orq-rc/src/mcp-server/mcp-server.ts +0 -26
  253. package/packages/orq-rc/src/mcp-server/prompts.ts +0 -117
  254. package/packages/orq-rc/src/mcp-server/resources.ts +0 -172
  255. package/packages/orq-rc/src/mcp-server/scopes.ts +0 -7
  256. package/packages/orq-rc/src/mcp-server/server.ts +0 -163
  257. package/packages/orq-rc/src/mcp-server/shared.ts +0 -75
  258. package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +0 -37
  259. package/packages/orq-rc/src/mcp-server/tools/datasetsClear.ts +0 -35
  260. package/packages/orq-rc/src/mcp-server/tools/datasetsCreate.ts +0 -37
  261. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoint.ts +0 -37
  262. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoints.ts +0 -37
  263. package/packages/orq-rc/src/mcp-server/tools/datasetsDelete.ts +0 -35
  264. package/packages/orq-rc/src/mcp-server/tools/datasetsDeleteDatapoint.ts +0 -35
  265. package/packages/orq-rc/src/mcp-server/tools/datasetsList.ts +0 -37
  266. package/packages/orq-rc/src/mcp-server/tools/datasetsListDatapoints.ts +0 -37
  267. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieve.ts +0 -37
  268. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieveDatapoint.ts +0 -37
  269. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdate.ts +0 -37
  270. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdateDatapoint.ts +0 -35
  271. package/packages/orq-rc/src/mcp-server/tools/deploymentsGetConfig.ts +0 -37
  272. package/packages/orq-rc/src/mcp-server/tools/deploymentsInvoke.ts +0 -37
  273. package/packages/orq-rc/src/mcp-server/tools/deploymentsList.ts +0 -37
  274. package/packages/orq-rc/src/mcp-server/tools/deploymentsMetricsCreate.ts +0 -37
  275. package/packages/orq-rc/src/mcp-server/tools/deploymentsStream.ts +0 -37
  276. package/packages/orq-rc/src/mcp-server/tools/feedbackCreate.ts +0 -37
  277. package/packages/orq-rc/src/mcp-server/tools/filesCreate.ts +0 -37
  278. package/packages/orq-rc/src/mcp-server/tools/filesDelete.ts +0 -33
  279. package/packages/orq-rc/src/mcp-server/tools/filesGet.ts +0 -37
  280. package/packages/orq-rc/src/mcp-server/tools/filesList.ts +0 -37
  281. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreate.ts +0 -35
  282. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateChunks.ts +0 -35
  283. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateDatasource.ts +0 -35
  284. package/packages/orq-rc/src/mcp-server/tools/knowledgeDelete.ts +0 -35
  285. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunk.ts +0 -33
  286. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteDatasource.ts +0 -35
  287. package/packages/orq-rc/src/mcp-server/tools/knowledgeList.ts +0 -37
  288. package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunks.ts +0 -35
  289. package/packages/orq-rc/src/mcp-server/tools/knowledgeListDatasources.ts +0 -35
  290. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieve.ts +0 -37
  291. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveChunk.ts +0 -35
  292. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveDatasource.ts +0 -35
  293. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdate.ts +0 -35
  294. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateChunk.ts +0 -35
  295. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateDatasource.ts +0 -35
  296. package/packages/orq-rc/src/mcp-server/tools/modelsList.ts +0 -30
  297. package/packages/orq-rc/src/mcp-server/tools/promptsCreate.ts +0 -35
  298. package/packages/orq-rc/src/mcp-server/tools/promptsDelete.ts +0 -33
  299. package/packages/orq-rc/src/mcp-server/tools/promptsGetVersion.ts +0 -37
  300. package/packages/orq-rc/src/mcp-server/tools/promptsList.ts +0 -37
  301. package/packages/orq-rc/src/mcp-server/tools/promptsListVersions.ts +0 -37
  302. package/packages/orq-rc/src/mcp-server/tools/promptsRetrieve.ts +0 -37
  303. package/packages/orq-rc/src/mcp-server/tools/promptsUpdate.ts +0 -35
  304. package/packages/orq-rc/src/mcp-server/tools/remoteconfigsRetrieve.ts +0 -36
  305. package/packages/orq-rc/src/mcp-server/tools.ts +0 -129
  306. package/packages/orq-rc/src/models/components/deployments.ts +0 -7749
  307. package/packages/orq-rc/src/models/components/index.ts +0 -6
  308. package/packages/orq-rc/src/models/components/security.ts +0 -71
  309. package/packages/orq-rc/src/models/errors/apierror.ts +0 -27
  310. package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -71
  311. package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -82
  312. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
  313. package/packages/orq-rc/src/models/errors/index.ts +0 -10
  314. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -97
  315. package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -71
  316. package/packages/orq-rc/src/models/operations/bulkcreatedatapoints.ts +0 -1828
  317. package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -75
  318. package/packages/orq-rc/src/models/operations/createchunk.ts +0 -432
  319. package/packages/orq-rc/src/models/operations/createcontact.ts +0 -256
  320. package/packages/orq-rc/src/models/operations/createdataset.ts +0 -296
  321. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +0 -1752
  322. package/packages/orq-rc/src/models/operations/createdatasource.ts +0 -852
  323. package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -286
  324. package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -846
  325. package/packages/orq-rc/src/models/operations/createprompt.ts +0 -3691
  326. package/packages/orq-rc/src/models/operations/deletechunk.ts +0 -96
  327. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -81
  328. package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -75
  329. package/packages/orq-rc/src/models/operations/deletedatasource.ts +0 -87
  330. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +0 -78
  331. package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -69
  332. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -5435
  333. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -9694
  334. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -1255
  335. package/packages/orq-rc/src/models/operations/deployments.ts +0 -2128
  336. package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -9946
  337. package/packages/orq-rc/src/models/operations/filedelete.ts +0 -78
  338. package/packages/orq-rc/src/models/operations/fileget.ts +0 -223
  339. package/packages/orq-rc/src/models/operations/filelist.ts +0 -337
  340. package/packages/orq-rc/src/models/operations/fileupload.ts +0 -327
  341. package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -2100
  342. package/packages/orq-rc/src/models/operations/getonechunk.ts +0 -315
  343. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +0 -537
  344. package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -1966
  345. package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -1962
  346. package/packages/orq-rc/src/models/operations/index.ts +0 -54
  347. package/packages/orq-rc/src/models/operations/listchunks.ts +0 -494
  348. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +0 -1077
  349. package/packages/orq-rc/src/models/operations/listdatasets.ts +0 -406
  350. package/packages/orq-rc/src/models/operations/listdatasources.ts +0 -447
  351. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +0 -663
  352. package/packages/orq-rc/src/models/operations/listmodels.ts +0 -273
  353. package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -2096
  354. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -190
  355. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -930
  356. package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -288
  357. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +0 -273
  358. package/packages/orq-rc/src/models/operations/updatechunk.ts +0 -448
  359. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +0 -1741
  360. package/packages/orq-rc/src/models/operations/updatedataset.ts +0 -393
  361. package/packages/orq-rc/src/models/operations/updatedatasource.ts +0 -345
  362. package/packages/orq-rc/src/models/operations/updateknowledge.ts +0 -980
  363. package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -3873
  364. package/packages/orq-rc/src/sdk/contacts.ts +0 -27
  365. package/packages/orq-rc/src/sdk/datasets.ts +0 -240
  366. package/packages/orq-rc/src/sdk/deployments.ts +0 -107
  367. package/packages/orq-rc/src/sdk/feedback.ts +0 -27
  368. package/packages/orq-rc/src/sdk/files.ts +0 -78
  369. package/packages/orq-rc/src/sdk/index.ts +0 -5
  370. package/packages/orq-rc/src/sdk/knowledge.ts +0 -264
  371. package/packages/orq-rc/src/sdk/metrics.ts +0 -27
  372. package/packages/orq-rc/src/sdk/models.ts +0 -25
  373. package/packages/orq-rc/src/sdk/prompts.ts +0 -126
  374. package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
  375. package/packages/orq-rc/src/sdk/sdk.ts +0 -61
  376. package/packages/orq-rc/src/types/async.ts +0 -68
  377. package/packages/orq-rc/src/types/blobs.ts +0 -31
  378. package/packages/orq-rc/src/types/constdatetime.ts +0 -15
  379. package/packages/orq-rc/src/types/enums.ts +0 -16
  380. package/packages/orq-rc/src/types/fp.ts +0 -50
  381. package/packages/orq-rc/src/types/index.ts +0 -11
  382. package/packages/orq-rc/src/types/operations.ts +0 -105
  383. package/packages/orq-rc/src/types/rfcdate.ts +0 -54
  384. package/packages/orq-rc/src/types/streams.ts +0 -21
  385. package/packages/orq-rc/tsconfig.json +0 -41
  386. /package/{packages/orq-rc/src → src}/funcs/datasetsCreateExperiment.ts +0 -0
  387. /package/{packages/orq-rc/src → src}/funcs/deploymentsCreateExperiment.ts +0 -0
  388. /package/{packages/orq-rc/src → src}/funcs/knowledgeSearch.ts +0 -0
  389. /package/{packages/orq-rc/src → src}/mcp-server/tools/datasetsCreateExperiment.ts +0 -0
  390. /package/{packages/orq-rc/src → src}/mcp-server/tools/deploymentsCreateExperiment.ts +0 -0
  391. /package/{packages/orq-rc/src → src}/mcp-server/tools/knowledgeSearch.ts +0 -0
  392. /package/{packages/orq-rc/src → src}/models/operations/createdatasetexperiment.ts +0 -0
  393. /package/{packages/orq-rc/src → src}/models/operations/createdeploymentexperiment.ts +0 -0
  394. /package/{packages/orq-rc/src → src}/models/operations/searchknowledge.ts +0 -0
@@ -1,930 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
- import { safeParse } from "../../lib/schemas.js";
8
- import { ClosedEnum } from "../../types/enums.js";
9
- import { Result as SafeParseResult } from "../../types/fp.js";
10
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
-
12
- export type RetrieveDatapointRequest = {
13
- datasetId: string;
14
- datapointId: string;
15
- };
16
-
17
- /**
18
- * The role of the prompt message
19
- */
20
- export const RetrieveDatapointRole = {
21
- System: "system",
22
- Assistant: "assistant",
23
- User: "user",
24
- Exception: "exception",
25
- Tool: "tool",
26
- Prompt: "prompt",
27
- Correction: "correction",
28
- ExpectedOutput: "expected_output",
29
- } as const;
30
- /**
31
- * The role of the prompt message
32
- */
33
- export type RetrieveDatapointRole = ClosedEnum<typeof RetrieveDatapointRole>;
34
-
35
- export const RetrieveDatapoint2DatasetsType = {
36
- ImageUrl: "image_url",
37
- } as const;
38
- export type RetrieveDatapoint2DatasetsType = ClosedEnum<
39
- typeof RetrieveDatapoint2DatasetsType
40
- >;
41
-
42
- export type RetrieveDatapoint2ImageUrl = {
43
- /**
44
- * The orq.ai id of the image
45
- */
46
- id?: string | undefined;
47
- /**
48
- * Either a URL of the image or the base64 encoded data URI.
49
- */
50
- url: string;
51
- /**
52
- * Specifies the detail level of the image. Currently only supported with OpenAI models
53
- */
54
- detail?: string | undefined;
55
- };
56
-
57
- /**
58
- * The image part of the prompt message. Only supported with vision models.
59
- */
60
- export type RetrieveDatapoint22 = {
61
- type: RetrieveDatapoint2DatasetsType;
62
- imageUrl: RetrieveDatapoint2ImageUrl;
63
- };
64
-
65
- export const RetrieveDatapoint2Type = {
66
- Text: "text",
67
- } as const;
68
- export type RetrieveDatapoint2Type = ClosedEnum<typeof RetrieveDatapoint2Type>;
69
-
70
- /**
71
- * Text content part of a prompt message
72
- */
73
- export type RetrieveDatapoint21 = {
74
- type: RetrieveDatapoint2Type;
75
- text: string;
76
- };
77
-
78
- export type RetrieveDatapointContent2 =
79
- | RetrieveDatapoint21
80
- | RetrieveDatapoint22;
81
-
82
- /**
83
- * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
84
- */
85
- export type RetrieveDatapointContent =
86
- | string
87
- | Array<RetrieveDatapoint21 | RetrieveDatapoint22>;
88
-
89
- export const RetrieveDatapointType = {
90
- Function: "function",
91
- } as const;
92
- export type RetrieveDatapointType = ClosedEnum<typeof RetrieveDatapointType>;
93
-
94
- export type RetrieveDatapointFunction = {
95
- name: string;
96
- /**
97
- * JSON string arguments for the functions
98
- */
99
- arguments: string;
100
- };
101
-
102
- export type RetrieveDatapointToolCalls = {
103
- id?: string | undefined;
104
- index?: number | undefined;
105
- type: RetrieveDatapointType;
106
- function: RetrieveDatapointFunction;
107
- };
108
-
109
- export type RetrieveDatapointMessages = {
110
- /**
111
- * The role of the prompt message
112
- */
113
- role: RetrieveDatapointRole;
114
- /**
115
- * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
116
- */
117
- content: string | Array<RetrieveDatapoint21 | RetrieveDatapoint22>;
118
- toolCalls?: Array<RetrieveDatapointToolCalls> | undefined;
119
- toolCallId?: string | undefined;
120
- };
121
-
122
- /**
123
- * Datapoint retrieved.
124
- */
125
- export type RetrieveDatapointResponseBody = {
126
- /**
127
- * The unique identifier of the dataset item
128
- */
129
- id: string;
130
- /**
131
- * The unique identifier of the workspace it belongs to
132
- */
133
- workspaceId: string;
134
- /**
135
- * The inputs of the dataset. Key value pairs where the key is the input name and the value is the input value. Nested objects are not supported.
136
- */
137
- inputs?: { [k: string]: any } | undefined;
138
- /**
139
- * The prompt template messages
140
- */
141
- messages?: Array<RetrieveDatapointMessages> | undefined;
142
- expectedOutput?: string | undefined;
143
- /**
144
- * The unique identifier of the dataset
145
- */
146
- datasetId: string;
147
- /**
148
- * The unique identifier of the user who created the dataset
149
- */
150
- createdById?: string | undefined;
151
- /**
152
- * The unique identifier of the user who last updated the dataset
153
- */
154
- updatedById?: string | undefined;
155
- /**
156
- * The date and time the resource was created
157
- */
158
- created?: Date | undefined;
159
- /**
160
- * The date and time the resource was last updated
161
- */
162
- updated?: Date | undefined;
163
- };
164
-
165
- /** @internal */
166
- export const RetrieveDatapointRequest$inboundSchema: z.ZodType<
167
- RetrieveDatapointRequest,
168
- z.ZodTypeDef,
169
- unknown
170
- > = z.object({
171
- dataset_id: z.string(),
172
- datapoint_id: z.string(),
173
- }).transform((v) => {
174
- return remap$(v, {
175
- "dataset_id": "datasetId",
176
- "datapoint_id": "datapointId",
177
- });
178
- });
179
-
180
- /** @internal */
181
- export type RetrieveDatapointRequest$Outbound = {
182
- dataset_id: string;
183
- datapoint_id: string;
184
- };
185
-
186
- /** @internal */
187
- export const RetrieveDatapointRequest$outboundSchema: z.ZodType<
188
- RetrieveDatapointRequest$Outbound,
189
- z.ZodTypeDef,
190
- RetrieveDatapointRequest
191
- > = z.object({
192
- datasetId: z.string(),
193
- datapointId: z.string(),
194
- }).transform((v) => {
195
- return remap$(v, {
196
- datasetId: "dataset_id",
197
- datapointId: "datapoint_id",
198
- });
199
- });
200
-
201
- /**
202
- * @internal
203
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
204
- */
205
- export namespace RetrieveDatapointRequest$ {
206
- /** @deprecated use `RetrieveDatapointRequest$inboundSchema` instead. */
207
- export const inboundSchema = RetrieveDatapointRequest$inboundSchema;
208
- /** @deprecated use `RetrieveDatapointRequest$outboundSchema` instead. */
209
- export const outboundSchema = RetrieveDatapointRequest$outboundSchema;
210
- /** @deprecated use `RetrieveDatapointRequest$Outbound` instead. */
211
- export type Outbound = RetrieveDatapointRequest$Outbound;
212
- }
213
-
214
- export function retrieveDatapointRequestToJSON(
215
- retrieveDatapointRequest: RetrieveDatapointRequest,
216
- ): string {
217
- return JSON.stringify(
218
- RetrieveDatapointRequest$outboundSchema.parse(retrieveDatapointRequest),
219
- );
220
- }
221
-
222
- export function retrieveDatapointRequestFromJSON(
223
- jsonString: string,
224
- ): SafeParseResult<RetrieveDatapointRequest, SDKValidationError> {
225
- return safeParse(
226
- jsonString,
227
- (x) => RetrieveDatapointRequest$inboundSchema.parse(JSON.parse(x)),
228
- `Failed to parse 'RetrieveDatapointRequest' from JSON`,
229
- );
230
- }
231
-
232
- /** @internal */
233
- export const RetrieveDatapointRole$inboundSchema: z.ZodNativeEnum<
234
- typeof RetrieveDatapointRole
235
- > = z.nativeEnum(RetrieveDatapointRole);
236
-
237
- /** @internal */
238
- export const RetrieveDatapointRole$outboundSchema: z.ZodNativeEnum<
239
- typeof RetrieveDatapointRole
240
- > = RetrieveDatapointRole$inboundSchema;
241
-
242
- /**
243
- * @internal
244
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
245
- */
246
- export namespace RetrieveDatapointRole$ {
247
- /** @deprecated use `RetrieveDatapointRole$inboundSchema` instead. */
248
- export const inboundSchema = RetrieveDatapointRole$inboundSchema;
249
- /** @deprecated use `RetrieveDatapointRole$outboundSchema` instead. */
250
- export const outboundSchema = RetrieveDatapointRole$outboundSchema;
251
- }
252
-
253
- /** @internal */
254
- export const RetrieveDatapoint2DatasetsType$inboundSchema: z.ZodNativeEnum<
255
- typeof RetrieveDatapoint2DatasetsType
256
- > = z.nativeEnum(RetrieveDatapoint2DatasetsType);
257
-
258
- /** @internal */
259
- export const RetrieveDatapoint2DatasetsType$outboundSchema: z.ZodNativeEnum<
260
- typeof RetrieveDatapoint2DatasetsType
261
- > = RetrieveDatapoint2DatasetsType$inboundSchema;
262
-
263
- /**
264
- * @internal
265
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
266
- */
267
- export namespace RetrieveDatapoint2DatasetsType$ {
268
- /** @deprecated use `RetrieveDatapoint2DatasetsType$inboundSchema` instead. */
269
- export const inboundSchema = RetrieveDatapoint2DatasetsType$inboundSchema;
270
- /** @deprecated use `RetrieveDatapoint2DatasetsType$outboundSchema` instead. */
271
- export const outboundSchema = RetrieveDatapoint2DatasetsType$outboundSchema;
272
- }
273
-
274
- /** @internal */
275
- export const RetrieveDatapoint2ImageUrl$inboundSchema: z.ZodType<
276
- RetrieveDatapoint2ImageUrl,
277
- z.ZodTypeDef,
278
- unknown
279
- > = z.object({
280
- id: z.string().optional(),
281
- url: z.string(),
282
- detail: z.string().optional(),
283
- });
284
-
285
- /** @internal */
286
- export type RetrieveDatapoint2ImageUrl$Outbound = {
287
- id?: string | undefined;
288
- url: string;
289
- detail?: string | undefined;
290
- };
291
-
292
- /** @internal */
293
- export const RetrieveDatapoint2ImageUrl$outboundSchema: z.ZodType<
294
- RetrieveDatapoint2ImageUrl$Outbound,
295
- z.ZodTypeDef,
296
- RetrieveDatapoint2ImageUrl
297
- > = z.object({
298
- id: z.string().optional(),
299
- url: z.string(),
300
- detail: z.string().optional(),
301
- });
302
-
303
- /**
304
- * @internal
305
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
306
- */
307
- export namespace RetrieveDatapoint2ImageUrl$ {
308
- /** @deprecated use `RetrieveDatapoint2ImageUrl$inboundSchema` instead. */
309
- export const inboundSchema = RetrieveDatapoint2ImageUrl$inboundSchema;
310
- /** @deprecated use `RetrieveDatapoint2ImageUrl$outboundSchema` instead. */
311
- export const outboundSchema = RetrieveDatapoint2ImageUrl$outboundSchema;
312
- /** @deprecated use `RetrieveDatapoint2ImageUrl$Outbound` instead. */
313
- export type Outbound = RetrieveDatapoint2ImageUrl$Outbound;
314
- }
315
-
316
- export function retrieveDatapoint2ImageUrlToJSON(
317
- retrieveDatapoint2ImageUrl: RetrieveDatapoint2ImageUrl,
318
- ): string {
319
- return JSON.stringify(
320
- RetrieveDatapoint2ImageUrl$outboundSchema.parse(retrieveDatapoint2ImageUrl),
321
- );
322
- }
323
-
324
- export function retrieveDatapoint2ImageUrlFromJSON(
325
- jsonString: string,
326
- ): SafeParseResult<RetrieveDatapoint2ImageUrl, SDKValidationError> {
327
- return safeParse(
328
- jsonString,
329
- (x) => RetrieveDatapoint2ImageUrl$inboundSchema.parse(JSON.parse(x)),
330
- `Failed to parse 'RetrieveDatapoint2ImageUrl' from JSON`,
331
- );
332
- }
333
-
334
- /** @internal */
335
- export const RetrieveDatapoint22$inboundSchema: z.ZodType<
336
- RetrieveDatapoint22,
337
- z.ZodTypeDef,
338
- unknown
339
- > = z.object({
340
- type: RetrieveDatapoint2DatasetsType$inboundSchema,
341
- image_url: z.lazy(() => RetrieveDatapoint2ImageUrl$inboundSchema),
342
- }).transform((v) => {
343
- return remap$(v, {
344
- "image_url": "imageUrl",
345
- });
346
- });
347
-
348
- /** @internal */
349
- export type RetrieveDatapoint22$Outbound = {
350
- type: string;
351
- image_url: RetrieveDatapoint2ImageUrl$Outbound;
352
- };
353
-
354
- /** @internal */
355
- export const RetrieveDatapoint22$outboundSchema: z.ZodType<
356
- RetrieveDatapoint22$Outbound,
357
- z.ZodTypeDef,
358
- RetrieveDatapoint22
359
- > = z.object({
360
- type: RetrieveDatapoint2DatasetsType$outboundSchema,
361
- imageUrl: z.lazy(() => RetrieveDatapoint2ImageUrl$outboundSchema),
362
- }).transform((v) => {
363
- return remap$(v, {
364
- imageUrl: "image_url",
365
- });
366
- });
367
-
368
- /**
369
- * @internal
370
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
371
- */
372
- export namespace RetrieveDatapoint22$ {
373
- /** @deprecated use `RetrieveDatapoint22$inboundSchema` instead. */
374
- export const inboundSchema = RetrieveDatapoint22$inboundSchema;
375
- /** @deprecated use `RetrieveDatapoint22$outboundSchema` instead. */
376
- export const outboundSchema = RetrieveDatapoint22$outboundSchema;
377
- /** @deprecated use `RetrieveDatapoint22$Outbound` instead. */
378
- export type Outbound = RetrieveDatapoint22$Outbound;
379
- }
380
-
381
- export function retrieveDatapoint22ToJSON(
382
- retrieveDatapoint22: RetrieveDatapoint22,
383
- ): string {
384
- return JSON.stringify(
385
- RetrieveDatapoint22$outboundSchema.parse(retrieveDatapoint22),
386
- );
387
- }
388
-
389
- export function retrieveDatapoint22FromJSON(
390
- jsonString: string,
391
- ): SafeParseResult<RetrieveDatapoint22, SDKValidationError> {
392
- return safeParse(
393
- jsonString,
394
- (x) => RetrieveDatapoint22$inboundSchema.parse(JSON.parse(x)),
395
- `Failed to parse 'RetrieveDatapoint22' from JSON`,
396
- );
397
- }
398
-
399
- /** @internal */
400
- export const RetrieveDatapoint2Type$inboundSchema: z.ZodNativeEnum<
401
- typeof RetrieveDatapoint2Type
402
- > = z.nativeEnum(RetrieveDatapoint2Type);
403
-
404
- /** @internal */
405
- export const RetrieveDatapoint2Type$outboundSchema: z.ZodNativeEnum<
406
- typeof RetrieveDatapoint2Type
407
- > = RetrieveDatapoint2Type$inboundSchema;
408
-
409
- /**
410
- * @internal
411
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
412
- */
413
- export namespace RetrieveDatapoint2Type$ {
414
- /** @deprecated use `RetrieveDatapoint2Type$inboundSchema` instead. */
415
- export const inboundSchema = RetrieveDatapoint2Type$inboundSchema;
416
- /** @deprecated use `RetrieveDatapoint2Type$outboundSchema` instead. */
417
- export const outboundSchema = RetrieveDatapoint2Type$outboundSchema;
418
- }
419
-
420
- /** @internal */
421
- export const RetrieveDatapoint21$inboundSchema: z.ZodType<
422
- RetrieveDatapoint21,
423
- z.ZodTypeDef,
424
- unknown
425
- > = z.object({
426
- type: RetrieveDatapoint2Type$inboundSchema,
427
- text: z.string(),
428
- });
429
-
430
- /** @internal */
431
- export type RetrieveDatapoint21$Outbound = {
432
- type: string;
433
- text: string;
434
- };
435
-
436
- /** @internal */
437
- export const RetrieveDatapoint21$outboundSchema: z.ZodType<
438
- RetrieveDatapoint21$Outbound,
439
- z.ZodTypeDef,
440
- RetrieveDatapoint21
441
- > = z.object({
442
- type: RetrieveDatapoint2Type$outboundSchema,
443
- text: z.string(),
444
- });
445
-
446
- /**
447
- * @internal
448
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
449
- */
450
- export namespace RetrieveDatapoint21$ {
451
- /** @deprecated use `RetrieveDatapoint21$inboundSchema` instead. */
452
- export const inboundSchema = RetrieveDatapoint21$inboundSchema;
453
- /** @deprecated use `RetrieveDatapoint21$outboundSchema` instead. */
454
- export const outboundSchema = RetrieveDatapoint21$outboundSchema;
455
- /** @deprecated use `RetrieveDatapoint21$Outbound` instead. */
456
- export type Outbound = RetrieveDatapoint21$Outbound;
457
- }
458
-
459
- export function retrieveDatapoint21ToJSON(
460
- retrieveDatapoint21: RetrieveDatapoint21,
461
- ): string {
462
- return JSON.stringify(
463
- RetrieveDatapoint21$outboundSchema.parse(retrieveDatapoint21),
464
- );
465
- }
466
-
467
- export function retrieveDatapoint21FromJSON(
468
- jsonString: string,
469
- ): SafeParseResult<RetrieveDatapoint21, SDKValidationError> {
470
- return safeParse(
471
- jsonString,
472
- (x) => RetrieveDatapoint21$inboundSchema.parse(JSON.parse(x)),
473
- `Failed to parse 'RetrieveDatapoint21' from JSON`,
474
- );
475
- }
476
-
477
- /** @internal */
478
- export const RetrieveDatapointContent2$inboundSchema: z.ZodType<
479
- RetrieveDatapointContent2,
480
- z.ZodTypeDef,
481
- unknown
482
- > = z.union([
483
- z.lazy(() => RetrieveDatapoint21$inboundSchema),
484
- z.lazy(() => RetrieveDatapoint22$inboundSchema),
485
- ]);
486
-
487
- /** @internal */
488
- export type RetrieveDatapointContent2$Outbound =
489
- | RetrieveDatapoint21$Outbound
490
- | RetrieveDatapoint22$Outbound;
491
-
492
- /** @internal */
493
- export const RetrieveDatapointContent2$outboundSchema: z.ZodType<
494
- RetrieveDatapointContent2$Outbound,
495
- z.ZodTypeDef,
496
- RetrieveDatapointContent2
497
- > = z.union([
498
- z.lazy(() => RetrieveDatapoint21$outboundSchema),
499
- z.lazy(() => RetrieveDatapoint22$outboundSchema),
500
- ]);
501
-
502
- /**
503
- * @internal
504
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
505
- */
506
- export namespace RetrieveDatapointContent2$ {
507
- /** @deprecated use `RetrieveDatapointContent2$inboundSchema` instead. */
508
- export const inboundSchema = RetrieveDatapointContent2$inboundSchema;
509
- /** @deprecated use `RetrieveDatapointContent2$outboundSchema` instead. */
510
- export const outboundSchema = RetrieveDatapointContent2$outboundSchema;
511
- /** @deprecated use `RetrieveDatapointContent2$Outbound` instead. */
512
- export type Outbound = RetrieveDatapointContent2$Outbound;
513
- }
514
-
515
- export function retrieveDatapointContent2ToJSON(
516
- retrieveDatapointContent2: RetrieveDatapointContent2,
517
- ): string {
518
- return JSON.stringify(
519
- RetrieveDatapointContent2$outboundSchema.parse(retrieveDatapointContent2),
520
- );
521
- }
522
-
523
- export function retrieveDatapointContent2FromJSON(
524
- jsonString: string,
525
- ): SafeParseResult<RetrieveDatapointContent2, SDKValidationError> {
526
- return safeParse(
527
- jsonString,
528
- (x) => RetrieveDatapointContent2$inboundSchema.parse(JSON.parse(x)),
529
- `Failed to parse 'RetrieveDatapointContent2' from JSON`,
530
- );
531
- }
532
-
533
- /** @internal */
534
- export const RetrieveDatapointContent$inboundSchema: z.ZodType<
535
- RetrieveDatapointContent,
536
- z.ZodTypeDef,
537
- unknown
538
- > = z.union([
539
- z.string(),
540
- z.array(z.union([
541
- z.lazy(() => RetrieveDatapoint21$inboundSchema),
542
- z.lazy(() => RetrieveDatapoint22$inboundSchema),
543
- ])),
544
- ]);
545
-
546
- /** @internal */
547
- export type RetrieveDatapointContent$Outbound =
548
- | string
549
- | Array<RetrieveDatapoint21$Outbound | RetrieveDatapoint22$Outbound>;
550
-
551
- /** @internal */
552
- export const RetrieveDatapointContent$outboundSchema: z.ZodType<
553
- RetrieveDatapointContent$Outbound,
554
- z.ZodTypeDef,
555
- RetrieveDatapointContent
556
- > = z.union([
557
- z.string(),
558
- z.array(z.union([
559
- z.lazy(() => RetrieveDatapoint21$outboundSchema),
560
- z.lazy(() => RetrieveDatapoint22$outboundSchema),
561
- ])),
562
- ]);
563
-
564
- /**
565
- * @internal
566
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
567
- */
568
- export namespace RetrieveDatapointContent$ {
569
- /** @deprecated use `RetrieveDatapointContent$inboundSchema` instead. */
570
- export const inboundSchema = RetrieveDatapointContent$inboundSchema;
571
- /** @deprecated use `RetrieveDatapointContent$outboundSchema` instead. */
572
- export const outboundSchema = RetrieveDatapointContent$outboundSchema;
573
- /** @deprecated use `RetrieveDatapointContent$Outbound` instead. */
574
- export type Outbound = RetrieveDatapointContent$Outbound;
575
- }
576
-
577
- export function retrieveDatapointContentToJSON(
578
- retrieveDatapointContent: RetrieveDatapointContent,
579
- ): string {
580
- return JSON.stringify(
581
- RetrieveDatapointContent$outboundSchema.parse(retrieveDatapointContent),
582
- );
583
- }
584
-
585
- export function retrieveDatapointContentFromJSON(
586
- jsonString: string,
587
- ): SafeParseResult<RetrieveDatapointContent, SDKValidationError> {
588
- return safeParse(
589
- jsonString,
590
- (x) => RetrieveDatapointContent$inboundSchema.parse(JSON.parse(x)),
591
- `Failed to parse 'RetrieveDatapointContent' from JSON`,
592
- );
593
- }
594
-
595
- /** @internal */
596
- export const RetrieveDatapointType$inboundSchema: z.ZodNativeEnum<
597
- typeof RetrieveDatapointType
598
- > = z.nativeEnum(RetrieveDatapointType);
599
-
600
- /** @internal */
601
- export const RetrieveDatapointType$outboundSchema: z.ZodNativeEnum<
602
- typeof RetrieveDatapointType
603
- > = RetrieveDatapointType$inboundSchema;
604
-
605
- /**
606
- * @internal
607
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
608
- */
609
- export namespace RetrieveDatapointType$ {
610
- /** @deprecated use `RetrieveDatapointType$inboundSchema` instead. */
611
- export const inboundSchema = RetrieveDatapointType$inboundSchema;
612
- /** @deprecated use `RetrieveDatapointType$outboundSchema` instead. */
613
- export const outboundSchema = RetrieveDatapointType$outboundSchema;
614
- }
615
-
616
- /** @internal */
617
- export const RetrieveDatapointFunction$inboundSchema: z.ZodType<
618
- RetrieveDatapointFunction,
619
- z.ZodTypeDef,
620
- unknown
621
- > = z.object({
622
- name: z.string(),
623
- arguments: z.string(),
624
- });
625
-
626
- /** @internal */
627
- export type RetrieveDatapointFunction$Outbound = {
628
- name: string;
629
- arguments: string;
630
- };
631
-
632
- /** @internal */
633
- export const RetrieveDatapointFunction$outboundSchema: z.ZodType<
634
- RetrieveDatapointFunction$Outbound,
635
- z.ZodTypeDef,
636
- RetrieveDatapointFunction
637
- > = z.object({
638
- name: z.string(),
639
- arguments: z.string(),
640
- });
641
-
642
- /**
643
- * @internal
644
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
645
- */
646
- export namespace RetrieveDatapointFunction$ {
647
- /** @deprecated use `RetrieveDatapointFunction$inboundSchema` instead. */
648
- export const inboundSchema = RetrieveDatapointFunction$inboundSchema;
649
- /** @deprecated use `RetrieveDatapointFunction$outboundSchema` instead. */
650
- export const outboundSchema = RetrieveDatapointFunction$outboundSchema;
651
- /** @deprecated use `RetrieveDatapointFunction$Outbound` instead. */
652
- export type Outbound = RetrieveDatapointFunction$Outbound;
653
- }
654
-
655
- export function retrieveDatapointFunctionToJSON(
656
- retrieveDatapointFunction: RetrieveDatapointFunction,
657
- ): string {
658
- return JSON.stringify(
659
- RetrieveDatapointFunction$outboundSchema.parse(retrieveDatapointFunction),
660
- );
661
- }
662
-
663
- export function retrieveDatapointFunctionFromJSON(
664
- jsonString: string,
665
- ): SafeParseResult<RetrieveDatapointFunction, SDKValidationError> {
666
- return safeParse(
667
- jsonString,
668
- (x) => RetrieveDatapointFunction$inboundSchema.parse(JSON.parse(x)),
669
- `Failed to parse 'RetrieveDatapointFunction' from JSON`,
670
- );
671
- }
672
-
673
- /** @internal */
674
- export const RetrieveDatapointToolCalls$inboundSchema: z.ZodType<
675
- RetrieveDatapointToolCalls,
676
- z.ZodTypeDef,
677
- unknown
678
- > = z.object({
679
- id: z.string().optional(),
680
- index: z.number().optional(),
681
- type: RetrieveDatapointType$inboundSchema,
682
- function: z.lazy(() => RetrieveDatapointFunction$inboundSchema),
683
- });
684
-
685
- /** @internal */
686
- export type RetrieveDatapointToolCalls$Outbound = {
687
- id?: string | undefined;
688
- index?: number | undefined;
689
- type: string;
690
- function: RetrieveDatapointFunction$Outbound;
691
- };
692
-
693
- /** @internal */
694
- export const RetrieveDatapointToolCalls$outboundSchema: z.ZodType<
695
- RetrieveDatapointToolCalls$Outbound,
696
- z.ZodTypeDef,
697
- RetrieveDatapointToolCalls
698
- > = z.object({
699
- id: z.string().optional(),
700
- index: z.number().optional(),
701
- type: RetrieveDatapointType$outboundSchema,
702
- function: z.lazy(() => RetrieveDatapointFunction$outboundSchema),
703
- });
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 RetrieveDatapointToolCalls$ {
710
- /** @deprecated use `RetrieveDatapointToolCalls$inboundSchema` instead. */
711
- export const inboundSchema = RetrieveDatapointToolCalls$inboundSchema;
712
- /** @deprecated use `RetrieveDatapointToolCalls$outboundSchema` instead. */
713
- export const outboundSchema = RetrieveDatapointToolCalls$outboundSchema;
714
- /** @deprecated use `RetrieveDatapointToolCalls$Outbound` instead. */
715
- export type Outbound = RetrieveDatapointToolCalls$Outbound;
716
- }
717
-
718
- export function retrieveDatapointToolCallsToJSON(
719
- retrieveDatapointToolCalls: RetrieveDatapointToolCalls,
720
- ): string {
721
- return JSON.stringify(
722
- RetrieveDatapointToolCalls$outboundSchema.parse(retrieveDatapointToolCalls),
723
- );
724
- }
725
-
726
- export function retrieveDatapointToolCallsFromJSON(
727
- jsonString: string,
728
- ): SafeParseResult<RetrieveDatapointToolCalls, SDKValidationError> {
729
- return safeParse(
730
- jsonString,
731
- (x) => RetrieveDatapointToolCalls$inboundSchema.parse(JSON.parse(x)),
732
- `Failed to parse 'RetrieveDatapointToolCalls' from JSON`,
733
- );
734
- }
735
-
736
- /** @internal */
737
- export const RetrieveDatapointMessages$inboundSchema: z.ZodType<
738
- RetrieveDatapointMessages,
739
- z.ZodTypeDef,
740
- unknown
741
- > = z.object({
742
- role: RetrieveDatapointRole$inboundSchema,
743
- content: z.union([
744
- z.string(),
745
- z.array(z.union([
746
- z.lazy(() => RetrieveDatapoint21$inboundSchema),
747
- z.lazy(() => RetrieveDatapoint22$inboundSchema),
748
- ])),
749
- ]),
750
- tool_calls: z.array(z.lazy(() => RetrieveDatapointToolCalls$inboundSchema))
751
- .optional(),
752
- tool_call_id: z.string().optional(),
753
- }).transform((v) => {
754
- return remap$(v, {
755
- "tool_calls": "toolCalls",
756
- "tool_call_id": "toolCallId",
757
- });
758
- });
759
-
760
- /** @internal */
761
- export type RetrieveDatapointMessages$Outbound = {
762
- role: string;
763
- content:
764
- | string
765
- | Array<RetrieveDatapoint21$Outbound | RetrieveDatapoint22$Outbound>;
766
- tool_calls?: Array<RetrieveDatapointToolCalls$Outbound> | undefined;
767
- tool_call_id?: string | undefined;
768
- };
769
-
770
- /** @internal */
771
- export const RetrieveDatapointMessages$outboundSchema: z.ZodType<
772
- RetrieveDatapointMessages$Outbound,
773
- z.ZodTypeDef,
774
- RetrieveDatapointMessages
775
- > = z.object({
776
- role: RetrieveDatapointRole$outboundSchema,
777
- content: z.union([
778
- z.string(),
779
- z.array(z.union([
780
- z.lazy(() => RetrieveDatapoint21$outboundSchema),
781
- z.lazy(() => RetrieveDatapoint22$outboundSchema),
782
- ])),
783
- ]),
784
- toolCalls: z.array(z.lazy(() => RetrieveDatapointToolCalls$outboundSchema))
785
- .optional(),
786
- toolCallId: z.string().optional(),
787
- }).transform((v) => {
788
- return remap$(v, {
789
- toolCalls: "tool_calls",
790
- toolCallId: "tool_call_id",
791
- });
792
- });
793
-
794
- /**
795
- * @internal
796
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
797
- */
798
- export namespace RetrieveDatapointMessages$ {
799
- /** @deprecated use `RetrieveDatapointMessages$inboundSchema` instead. */
800
- export const inboundSchema = RetrieveDatapointMessages$inboundSchema;
801
- /** @deprecated use `RetrieveDatapointMessages$outboundSchema` instead. */
802
- export const outboundSchema = RetrieveDatapointMessages$outboundSchema;
803
- /** @deprecated use `RetrieveDatapointMessages$Outbound` instead. */
804
- export type Outbound = RetrieveDatapointMessages$Outbound;
805
- }
806
-
807
- export function retrieveDatapointMessagesToJSON(
808
- retrieveDatapointMessages: RetrieveDatapointMessages,
809
- ): string {
810
- return JSON.stringify(
811
- RetrieveDatapointMessages$outboundSchema.parse(retrieveDatapointMessages),
812
- );
813
- }
814
-
815
- export function retrieveDatapointMessagesFromJSON(
816
- jsonString: string,
817
- ): SafeParseResult<RetrieveDatapointMessages, SDKValidationError> {
818
- return safeParse(
819
- jsonString,
820
- (x) => RetrieveDatapointMessages$inboundSchema.parse(JSON.parse(x)),
821
- `Failed to parse 'RetrieveDatapointMessages' from JSON`,
822
- );
823
- }
824
-
825
- /** @internal */
826
- export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
827
- RetrieveDatapointResponseBody,
828
- z.ZodTypeDef,
829
- unknown
830
- > = z.object({
831
- _id: z.string(),
832
- workspace_id: z.string(),
833
- inputs: z.record(z.any()).optional(),
834
- messages: z.array(z.lazy(() => RetrieveDatapointMessages$inboundSchema))
835
- .optional(),
836
- expected_output: z.string().optional(),
837
- dataset_id: z.string(),
838
- created_by_id: z.string().optional(),
839
- updated_by_id: z.string().optional(),
840
- created: z.string().datetime({ offset: true }).transform(v => new Date(v))
841
- .optional(),
842
- updated: z.string().datetime({ offset: true }).default(
843
- "2025-05-18T21:00:21.233Z",
844
- ).transform(v => new Date(v)),
845
- }).transform((v) => {
846
- return remap$(v, {
847
- "_id": "id",
848
- "workspace_id": "workspaceId",
849
- "expected_output": "expectedOutput",
850
- "dataset_id": "datasetId",
851
- "created_by_id": "createdById",
852
- "updated_by_id": "updatedById",
853
- });
854
- });
855
-
856
- /** @internal */
857
- export type RetrieveDatapointResponseBody$Outbound = {
858
- _id: string;
859
- workspace_id: string;
860
- inputs?: { [k: string]: any } | undefined;
861
- messages?: Array<RetrieveDatapointMessages$Outbound> | undefined;
862
- expected_output?: string | undefined;
863
- dataset_id: string;
864
- created_by_id?: string | undefined;
865
- updated_by_id?: string | undefined;
866
- created?: string | undefined;
867
- updated: string;
868
- };
869
-
870
- /** @internal */
871
- export const RetrieveDatapointResponseBody$outboundSchema: z.ZodType<
872
- RetrieveDatapointResponseBody$Outbound,
873
- z.ZodTypeDef,
874
- RetrieveDatapointResponseBody
875
- > = z.object({
876
- id: z.string(),
877
- workspaceId: z.string(),
878
- inputs: z.record(z.any()).optional(),
879
- messages: z.array(z.lazy(() => RetrieveDatapointMessages$outboundSchema))
880
- .optional(),
881
- expectedOutput: z.string().optional(),
882
- datasetId: z.string(),
883
- createdById: z.string().optional(),
884
- updatedById: z.string().optional(),
885
- created: z.date().transform(v => v.toISOString()).optional(),
886
- updated: z.date().default(() => new Date("2025-05-18T21:00:21.233Z"))
887
- .transform(v => v.toISOString()),
888
- }).transform((v) => {
889
- return remap$(v, {
890
- id: "_id",
891
- workspaceId: "workspace_id",
892
- expectedOutput: "expected_output",
893
- datasetId: "dataset_id",
894
- createdById: "created_by_id",
895
- updatedById: "updated_by_id",
896
- });
897
- });
898
-
899
- /**
900
- * @internal
901
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
902
- */
903
- export namespace RetrieveDatapointResponseBody$ {
904
- /** @deprecated use `RetrieveDatapointResponseBody$inboundSchema` instead. */
905
- export const inboundSchema = RetrieveDatapointResponseBody$inboundSchema;
906
- /** @deprecated use `RetrieveDatapointResponseBody$outboundSchema` instead. */
907
- export const outboundSchema = RetrieveDatapointResponseBody$outboundSchema;
908
- /** @deprecated use `RetrieveDatapointResponseBody$Outbound` instead. */
909
- export type Outbound = RetrieveDatapointResponseBody$Outbound;
910
- }
911
-
912
- export function retrieveDatapointResponseBodyToJSON(
913
- retrieveDatapointResponseBody: RetrieveDatapointResponseBody,
914
- ): string {
915
- return JSON.stringify(
916
- RetrieveDatapointResponseBody$outboundSchema.parse(
917
- retrieveDatapointResponseBody,
918
- ),
919
- );
920
- }
921
-
922
- export function retrieveDatapointResponseBodyFromJSON(
923
- jsonString: string,
924
- ): SafeParseResult<RetrieveDatapointResponseBody, SDKValidationError> {
925
- return safeParse(
926
- jsonString,
927
- (x) => RetrieveDatapointResponseBody$inboundSchema.parse(JSON.parse(x)),
928
- `Failed to parse 'RetrieveDatapointResponseBody' from JSON`,
929
- );
930
- }