@orq-ai/node 3.2.0-rc.9 → 3.2.1

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 (643) hide show
  1. package/README.md +117 -1
  2. package/bin/mcp-server.js +52509 -0
  3. package/bin/mcp-server.js.map +352 -0
  4. package/docs/sdks/datasets/README.md +934 -0
  5. package/docs/sdks/files/README.md +1 -1
  6. package/docs/sdks/prompts/README.md +110 -110
  7. package/funcs/datasetsClear.d.ts +16 -0
  8. package/funcs/datasetsClear.d.ts.map +1 -0
  9. package/funcs/datasetsClear.js +118 -0
  10. package/funcs/datasetsClear.js.map +1 -0
  11. package/funcs/datasetsCreate.d.ts +16 -0
  12. package/funcs/datasetsCreate.d.ts.map +1 -0
  13. package/funcs/datasetsCreate.js +114 -0
  14. package/funcs/datasetsCreate.js.map +1 -0
  15. package/funcs/datasetsCreateDatapoint.d.ts +16 -0
  16. package/funcs/datasetsCreateDatapoint.d.ts.map +1 -0
  17. package/funcs/datasetsCreateDatapoint.js +118 -0
  18. package/funcs/datasetsCreateDatapoint.js.map +1 -0
  19. package/funcs/datasetsCreateDatapoints.d.ts +16 -0
  20. package/funcs/datasetsCreateDatapoints.d.ts.map +1 -0
  21. package/funcs/datasetsCreateDatapoints.js +119 -0
  22. package/funcs/datasetsCreateDatapoints.js.map +1 -0
  23. package/funcs/datasetsDelete.d.ts +16 -0
  24. package/funcs/datasetsDelete.d.ts.map +1 -0
  25. package/funcs/datasetsDelete.js +118 -0
  26. package/funcs/datasetsDelete.js.map +1 -0
  27. package/funcs/datasetsDeleteDatapoint.d.ts +17 -0
  28. package/funcs/datasetsDeleteDatapoint.d.ts.map +1 -0
  29. package/funcs/datasetsDeleteDatapoint.js +126 -0
  30. package/funcs/datasetsDeleteDatapoint.js.map +1 -0
  31. package/funcs/datasetsList.d.ts +16 -0
  32. package/funcs/datasetsList.d.ts.map +1 -0
  33. package/funcs/datasetsList.js +118 -0
  34. package/funcs/datasetsList.js.map +1 -0
  35. package/funcs/datasetsListDatapoints.d.ts +16 -0
  36. package/funcs/datasetsListDatapoints.d.ts.map +1 -0
  37. package/funcs/datasetsListDatapoints.js +124 -0
  38. package/funcs/datasetsListDatapoints.js.map +1 -0
  39. package/funcs/datasetsRetrieve.d.ts +17 -0
  40. package/funcs/datasetsRetrieve.d.ts.map +1 -0
  41. package/funcs/datasetsRetrieve.js +121 -0
  42. package/funcs/datasetsRetrieve.js.map +1 -0
  43. package/funcs/datasetsRetrieveDatapoint.d.ts +17 -0
  44. package/funcs/datasetsRetrieveDatapoint.d.ts.map +1 -0
  45. package/funcs/datasetsRetrieveDatapoint.js +125 -0
  46. package/funcs/datasetsRetrieveDatapoint.js.map +1 -0
  47. package/funcs/datasetsUpdate.d.ts +17 -0
  48. package/funcs/datasetsUpdate.d.ts.map +1 -0
  49. package/funcs/datasetsUpdate.js +122 -0
  50. package/funcs/datasetsUpdate.js.map +1 -0
  51. package/funcs/datasetsUpdateDatapoint.d.ts +14 -0
  52. package/funcs/datasetsUpdateDatapoint.d.ts.map +1 -0
  53. package/funcs/datasetsUpdateDatapoint.js +123 -0
  54. package/funcs/datasetsUpdateDatapoint.js.map +1 -0
  55. package/funcs/deploymentsList.js +1 -0
  56. package/funcs/deploymentsList.js.map +1 -1
  57. package/funcs/filesCreate.d.ts +1 -1
  58. package/funcs/filesCreate.js +1 -1
  59. package/funcs/filesList.js +1 -0
  60. package/funcs/filesList.js.map +1 -1
  61. package/funcs/promptsList.js +2 -1
  62. package/funcs/promptsList.js.map +1 -1
  63. package/funcs/promptsListVersions.js +1 -0
  64. package/funcs/promptsListVersions.js.map +1 -1
  65. package/jsr.json +1 -1
  66. package/lib/config.d.ts +6 -6
  67. package/lib/config.d.ts.map +1 -1
  68. package/lib/config.js +3 -3
  69. package/lib/config.js.map +1 -1
  70. package/lib/files.js.map +1 -1
  71. package/lib/primitives.d.ts +3 -0
  72. package/lib/primitives.d.ts.map +1 -1
  73. package/lib/primitives.js +7 -0
  74. package/lib/primitives.js.map +1 -1
  75. package/lib/sdks.d.ts.map +1 -1
  76. package/lib/sdks.js +2 -8
  77. package/lib/sdks.js.map +1 -1
  78. package/lib/security.d.ts +4 -3
  79. package/lib/security.d.ts.map +1 -1
  80. package/lib/security.js +6 -1
  81. package/lib/security.js.map +1 -1
  82. package/mcp-server/build.d.mts.map +1 -0
  83. package/mcp-server/build.mjs +14 -0
  84. package/mcp-server/build.mjs.map +1 -0
  85. package/mcp-server/cli/start/command.d.ts +2 -0
  86. package/mcp-server/cli/start/command.d.ts.map +1 -0
  87. package/mcp-server/cli/start/command.js +154 -0
  88. package/mcp-server/cli/start/command.js.map +1 -0
  89. package/mcp-server/cli/start/impl.d.ts +20 -0
  90. package/mcp-server/cli/start/impl.d.ts.map +1 -0
  91. package/mcp-server/cli/start/impl.js +108 -0
  92. package/mcp-server/cli/start/impl.js.map +1 -0
  93. package/mcp-server/cli.d.ts +6 -0
  94. package/mcp-server/cli.d.ts.map +1 -0
  95. package/mcp-server/cli.js +10 -0
  96. package/mcp-server/cli.js.map +1 -0
  97. package/mcp-server/console-logger.d.ts +7 -0
  98. package/mcp-server/console-logger.d.ts.map +1 -0
  99. package/mcp-server/console-logger.js +59 -0
  100. package/mcp-server/console-logger.js.map +1 -0
  101. package/mcp-server/extensions.d.ts +11 -0
  102. package/mcp-server/extensions.d.ts.map +1 -0
  103. package/mcp-server/extensions.js +6 -0
  104. package/mcp-server/extensions.js.map +1 -0
  105. package/mcp-server/mcp-server.d.ts +2 -0
  106. package/mcp-server/mcp-server.d.ts.map +1 -0
  107. package/mcp-server/mcp-server.js +29 -0
  108. package/mcp-server/mcp-server.js.map +1 -0
  109. package/mcp-server/prompts.d.ts +26 -0
  110. package/mcp-server/prompts.d.ts.map +1 -0
  111. package/mcp-server/prompts.js +47 -0
  112. package/mcp-server/prompts.js.map +1 -0
  113. package/mcp-server/resources.d.ts +32 -0
  114. package/mcp-server/resources.d.ts.map +1 -0
  115. package/mcp-server/resources.js +79 -0
  116. package/mcp-server/resources.js.map +1 -0
  117. package/mcp-server/scopes.d.ts +3 -0
  118. package/mcp-server/scopes.d.ts.map +1 -0
  119. package/mcp-server/scopes.js +8 -0
  120. package/mcp-server/scopes.js.map +1 -0
  121. package/mcp-server/server.d.ts +15 -0
  122. package/mcp-server/server.d.ts.map +1 -0
  123. package/mcp-server/server.js +95 -0
  124. package/mcp-server/server.js.map +1 -0
  125. package/mcp-server/shared.d.ts +7 -0
  126. package/mcp-server/shared.d.ts.map +1 -0
  127. package/mcp-server/shared.js +98 -0
  128. package/mcp-server/shared.js.map +1 -0
  129. package/mcp-server/tools/contactsCreate.d.ts +8 -0
  130. package/mcp-server/tools/contactsCreate.d.ts.map +1 -0
  131. package/mcp-server/tools/contactsCreate.js +64 -0
  132. package/mcp-server/tools/contactsCreate.js.map +1 -0
  133. package/mcp-server/tools/datasetsClear.d.ts +8 -0
  134. package/mcp-server/tools/datasetsClear.d.ts.map +1 -0
  135. package/mcp-server/tools/datasetsClear.js +63 -0
  136. package/mcp-server/tools/datasetsClear.js.map +1 -0
  137. package/mcp-server/tools/datasetsCreate.d.ts +8 -0
  138. package/mcp-server/tools/datasetsCreate.d.ts.map +1 -0
  139. package/mcp-server/tools/datasetsCreate.js +64 -0
  140. package/mcp-server/tools/datasetsCreate.js.map +1 -0
  141. package/mcp-server/tools/datasetsCreateDatapoint.d.ts +8 -0
  142. package/mcp-server/tools/datasetsCreateDatapoint.d.ts.map +1 -0
  143. package/mcp-server/tools/datasetsCreateDatapoint.js +64 -0
  144. package/mcp-server/tools/datasetsCreateDatapoint.js.map +1 -0
  145. package/mcp-server/tools/datasetsCreateDatapoints.d.ts +8 -0
  146. package/mcp-server/tools/datasetsCreateDatapoints.d.ts.map +1 -0
  147. package/mcp-server/tools/datasetsCreateDatapoints.js +64 -0
  148. package/mcp-server/tools/datasetsCreateDatapoints.js.map +1 -0
  149. package/mcp-server/tools/datasetsDelete.d.ts +8 -0
  150. package/mcp-server/tools/datasetsDelete.d.ts.map +1 -0
  151. package/mcp-server/tools/datasetsDelete.js +63 -0
  152. package/mcp-server/tools/datasetsDelete.js.map +1 -0
  153. package/mcp-server/tools/datasetsDeleteDatapoint.d.ts +8 -0
  154. package/mcp-server/tools/datasetsDeleteDatapoint.d.ts.map +1 -0
  155. package/mcp-server/tools/datasetsDeleteDatapoint.js +63 -0
  156. package/mcp-server/tools/datasetsDeleteDatapoint.js.map +1 -0
  157. package/mcp-server/tools/datasetsList.d.ts +8 -0
  158. package/mcp-server/tools/datasetsList.d.ts.map +1 -0
  159. package/mcp-server/tools/datasetsList.js +64 -0
  160. package/mcp-server/tools/datasetsList.js.map +1 -0
  161. package/mcp-server/tools/datasetsListDatapoints.d.ts +8 -0
  162. package/mcp-server/tools/datasetsListDatapoints.d.ts.map +1 -0
  163. package/mcp-server/tools/datasetsListDatapoints.js +64 -0
  164. package/mcp-server/tools/datasetsListDatapoints.js.map +1 -0
  165. package/mcp-server/tools/datasetsRetrieve.d.ts +8 -0
  166. package/mcp-server/tools/datasetsRetrieve.d.ts.map +1 -0
  167. package/mcp-server/tools/datasetsRetrieve.js +64 -0
  168. package/mcp-server/tools/datasetsRetrieve.js.map +1 -0
  169. package/mcp-server/tools/datasetsRetrieveDatapoint.d.ts +8 -0
  170. package/mcp-server/tools/datasetsRetrieveDatapoint.d.ts.map +1 -0
  171. package/mcp-server/tools/datasetsRetrieveDatapoint.js +64 -0
  172. package/mcp-server/tools/datasetsRetrieveDatapoint.js.map +1 -0
  173. package/mcp-server/tools/datasetsUpdate.d.ts +8 -0
  174. package/mcp-server/tools/datasetsUpdate.d.ts.map +1 -0
  175. package/mcp-server/tools/datasetsUpdate.js +64 -0
  176. package/mcp-server/tools/datasetsUpdate.js.map +1 -0
  177. package/mcp-server/tools/datasetsUpdateDatapoint.d.ts +8 -0
  178. package/mcp-server/tools/datasetsUpdateDatapoint.d.ts.map +1 -0
  179. package/mcp-server/tools/datasetsUpdateDatapoint.js +62 -0
  180. package/mcp-server/tools/datasetsUpdateDatapoint.js.map +1 -0
  181. package/mcp-server/tools/deploymentsGetConfig.d.ts +8 -0
  182. package/mcp-server/tools/deploymentsGetConfig.d.ts.map +1 -0
  183. package/mcp-server/tools/deploymentsGetConfig.js +64 -0
  184. package/mcp-server/tools/deploymentsGetConfig.js.map +1 -0
  185. package/mcp-server/tools/deploymentsInvoke.d.ts +8 -0
  186. package/mcp-server/tools/deploymentsInvoke.d.ts.map +1 -0
  187. package/mcp-server/tools/deploymentsInvoke.js +64 -0
  188. package/mcp-server/tools/deploymentsInvoke.js.map +1 -0
  189. package/mcp-server/tools/deploymentsList.d.ts +8 -0
  190. package/mcp-server/tools/deploymentsList.d.ts.map +1 -0
  191. package/mcp-server/tools/deploymentsList.js +64 -0
  192. package/mcp-server/tools/deploymentsList.js.map +1 -0
  193. package/mcp-server/tools/deploymentsMetricsCreate.d.ts +8 -0
  194. package/mcp-server/tools/deploymentsMetricsCreate.d.ts.map +1 -0
  195. package/mcp-server/tools/deploymentsMetricsCreate.js +64 -0
  196. package/mcp-server/tools/deploymentsMetricsCreate.js.map +1 -0
  197. package/mcp-server/tools/feedbackCreate.d.ts +8 -0
  198. package/mcp-server/tools/feedbackCreate.d.ts.map +1 -0
  199. package/mcp-server/tools/feedbackCreate.js +64 -0
  200. package/mcp-server/tools/feedbackCreate.js.map +1 -0
  201. package/mcp-server/tools/filesCreate.d.ts +8 -0
  202. package/mcp-server/tools/filesCreate.d.ts.map +1 -0
  203. package/mcp-server/tools/filesCreate.js +64 -0
  204. package/mcp-server/tools/filesCreate.js.map +1 -0
  205. package/mcp-server/tools/filesDelete.d.ts +8 -0
  206. package/mcp-server/tools/filesDelete.d.ts.map +1 -0
  207. package/mcp-server/tools/filesDelete.js +61 -0
  208. package/mcp-server/tools/filesDelete.js.map +1 -0
  209. package/mcp-server/tools/filesGet.d.ts +8 -0
  210. package/mcp-server/tools/filesGet.d.ts.map +1 -0
  211. package/mcp-server/tools/filesGet.js +64 -0
  212. package/mcp-server/tools/filesGet.js.map +1 -0
  213. package/mcp-server/tools/filesList.d.ts +8 -0
  214. package/mcp-server/tools/filesList.d.ts.map +1 -0
  215. package/mcp-server/tools/filesList.js +64 -0
  216. package/mcp-server/tools/filesList.js.map +1 -0
  217. package/mcp-server/tools/promptsCreate.d.ts +8 -0
  218. package/mcp-server/tools/promptsCreate.d.ts.map +1 -0
  219. package/mcp-server/tools/promptsCreate.js +62 -0
  220. package/mcp-server/tools/promptsCreate.js.map +1 -0
  221. package/mcp-server/tools/promptsDelete.d.ts +8 -0
  222. package/mcp-server/tools/promptsDelete.d.ts.map +1 -0
  223. package/mcp-server/tools/promptsDelete.js +61 -0
  224. package/mcp-server/tools/promptsDelete.js.map +1 -0
  225. package/mcp-server/tools/promptsGetVersion.d.ts +8 -0
  226. package/mcp-server/tools/promptsGetVersion.d.ts.map +1 -0
  227. package/mcp-server/tools/promptsGetVersion.js +64 -0
  228. package/mcp-server/tools/promptsGetVersion.js.map +1 -0
  229. package/mcp-server/tools/promptsList.d.ts +8 -0
  230. package/mcp-server/tools/promptsList.d.ts.map +1 -0
  231. package/mcp-server/tools/promptsList.js +64 -0
  232. package/mcp-server/tools/promptsList.js.map +1 -0
  233. package/mcp-server/tools/promptsListVersions.d.ts +8 -0
  234. package/mcp-server/tools/promptsListVersions.d.ts.map +1 -0
  235. package/mcp-server/tools/promptsListVersions.js +64 -0
  236. package/mcp-server/tools/promptsListVersions.js.map +1 -0
  237. package/mcp-server/tools/promptsRetrieve.d.ts +8 -0
  238. package/mcp-server/tools/promptsRetrieve.d.ts.map +1 -0
  239. package/mcp-server/tools/promptsRetrieve.js +64 -0
  240. package/mcp-server/tools/promptsRetrieve.js.map +1 -0
  241. package/mcp-server/tools/promptsUpdate.d.ts +8 -0
  242. package/mcp-server/tools/promptsUpdate.d.ts.map +1 -0
  243. package/mcp-server/tools/promptsUpdate.js +62 -0
  244. package/mcp-server/tools/promptsUpdate.js.map +1 -0
  245. package/mcp-server/tools/remoteconfigsRetrieve.d.ts +8 -0
  246. package/mcp-server/tools/remoteconfigsRetrieve.d.ts.map +1 -0
  247. package/mcp-server/tools/remoteconfigsRetrieve.js +63 -0
  248. package/mcp-server/tools/remoteconfigsRetrieve.js.map +1 -0
  249. package/mcp-server/tools.d.ts +25 -0
  250. package/mcp-server/tools.d.ts.map +1 -0
  251. package/mcp-server/tools.js +81 -0
  252. package/mcp-server/tools.js.map +1 -0
  253. package/models/components/deployments.d.ts +1716 -400
  254. package/models/components/deployments.d.ts.map +1 -1
  255. package/models/components/deployments.js +1617 -357
  256. package/models/components/deployments.js.map +1 -1
  257. package/models/operations/bulkcreatedatapoints.d.ts +873 -0
  258. package/models/operations/bulkcreatedatapoints.d.ts.map +1 -0
  259. package/models/operations/bulkcreatedatapoints.js +933 -0
  260. package/models/operations/bulkcreatedatapoints.js.map +1 -0
  261. package/models/operations/cleardataset.d.ts +29 -0
  262. package/models/operations/cleardataset.d.ts.map +1 -0
  263. package/models/operations/cleardataset.js +78 -0
  264. package/models/operations/cleardataset.js.map +1 -0
  265. package/models/operations/createcontact.js +2 -2
  266. package/models/operations/createdataset.d.ts +132 -0
  267. package/models/operations/createdataset.d.ts.map +1 -0
  268. package/models/operations/createdataset.js +182 -0
  269. package/models/operations/createdataset.js.map +1 -0
  270. package/models/operations/createdatasetitem.d.ts +851 -0
  271. package/models/operations/createdatasetitem.d.ts.map +1 -0
  272. package/models/operations/createdatasetitem.js +904 -0
  273. package/models/operations/createdatasetitem.js.map +1 -0
  274. package/models/operations/createprompt.d.ts +347 -337
  275. package/models/operations/createprompt.d.ts.map +1 -1
  276. package/models/operations/createprompt.js +474 -473
  277. package/models/operations/createprompt.js.map +1 -1
  278. package/models/operations/deletedatapoint.d.ts +31 -0
  279. package/models/operations/deletedatapoint.d.ts.map +1 -0
  280. package/models/operations/deletedatapoint.js +82 -0
  281. package/models/operations/deletedatapoint.js.map +1 -0
  282. package/models/operations/deletedataset.d.ts +29 -0
  283. package/models/operations/deletedataset.d.ts.map +1 -0
  284. package/models/operations/deletedataset.js +78 -0
  285. package/models/operations/deletedataset.js.map +1 -0
  286. package/models/operations/deploymentcreatemetric.d.ts +1706 -418
  287. package/models/operations/deploymentcreatemetric.d.ts.map +1 -1
  288. package/models/operations/deploymentcreatemetric.js +1713 -435
  289. package/models/operations/deploymentcreatemetric.js.map +1 -1
  290. package/models/operations/deploymentgetconfig.d.ts +1831 -510
  291. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  292. package/models/operations/deploymentgetconfig.js +1786 -519
  293. package/models/operations/deploymentgetconfig.js.map +1 -1
  294. package/models/operations/deploymentinvoke.d.ts +249 -177
  295. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  296. package/models/operations/deploymentinvoke.js +263 -201
  297. package/models/operations/deploymentinvoke.js.map +1 -1
  298. package/models/operations/deployments.d.ts +41 -0
  299. package/models/operations/deployments.d.ts.map +1 -1
  300. package/models/operations/deployments.js +29 -3
  301. package/models/operations/deployments.js.map +1 -1
  302. package/models/operations/fileget.d.ts +3 -0
  303. package/models/operations/fileget.d.ts.map +1 -1
  304. package/models/operations/fileget.js +3 -2
  305. package/models/operations/fileget.js.map +1 -1
  306. package/models/operations/filelist.d.ts +39 -0
  307. package/models/operations/filelist.d.ts.map +1 -1
  308. package/models/operations/filelist.js +28 -3
  309. package/models/operations/filelist.js.map +1 -1
  310. package/models/operations/fileupload.d.ts +6 -0
  311. package/models/operations/fileupload.d.ts.map +1 -1
  312. package/models/operations/fileupload.js +4 -2
  313. package/models/operations/fileupload.js.map +1 -1
  314. package/models/operations/getallprompts.d.ts +45 -4
  315. package/models/operations/getallprompts.d.ts.map +1 -1
  316. package/models/operations/getallprompts.js +33 -7
  317. package/models/operations/getallprompts.js.map +1 -1
  318. package/models/operations/getoneprompt.d.ts +9 -4
  319. package/models/operations/getoneprompt.d.ts.map +1 -1
  320. package/models/operations/getoneprompt.js +6 -4
  321. package/models/operations/getoneprompt.js.map +1 -1
  322. package/models/operations/getpromptversion.d.ts +9 -4
  323. package/models/operations/getpromptversion.d.ts.map +1 -1
  324. package/models/operations/getpromptversion.js +6 -4
  325. package/models/operations/getpromptversion.js.map +1 -1
  326. package/models/operations/index.d.ts +12 -0
  327. package/models/operations/index.d.ts.map +1 -1
  328. package/models/operations/index.js +12 -0
  329. package/models/operations/index.js.map +1 -1
  330. package/models/operations/listdatasetdatapoints.d.ts +563 -0
  331. package/models/operations/listdatasetdatapoints.d.ts.map +1 -0
  332. package/models/operations/listdatasetdatapoints.js +593 -0
  333. package/models/operations/listdatasetdatapoints.js.map +1 -0
  334. package/models/operations/listdatasets.d.ts +225 -0
  335. package/models/operations/listdatasets.d.ts.map +1 -0
  336. package/models/operations/listdatasets.js +267 -0
  337. package/models/operations/listdatasets.js.map +1 -0
  338. package/models/operations/listpromptversions.d.ts +45 -4
  339. package/models/operations/listpromptversions.d.ts.map +1 -1
  340. package/models/operations/listpromptversions.js +33 -7
  341. package/models/operations/listpromptversions.js.map +1 -1
  342. package/models/operations/retrievedatapoint.d.ts +463 -0
  343. package/models/operations/retrievedatapoint.d.ts.map +1 -0
  344. package/models/operations/retrievedatapoint.js +507 -0
  345. package/models/operations/retrievedatapoint.js.map +1 -0
  346. package/models/operations/retrievedataset.d.ts +124 -0
  347. package/models/operations/retrievedataset.d.ts.map +1 -0
  348. package/models/operations/retrievedataset.js +180 -0
  349. package/models/operations/retrievedataset.js.map +1 -0
  350. package/models/operations/updatedatapoint.d.ts +853 -0
  351. package/models/operations/updatedatapoint.d.ts.map +1 -0
  352. package/models/operations/updatedatapoint.js +909 -0
  353. package/models/operations/updatedatapoint.js.map +1 -0
  354. package/models/operations/updatedataset.d.ts +161 -0
  355. package/models/operations/updatedataset.d.ts.map +1 -0
  356. package/models/operations/updatedataset.js +225 -0
  357. package/models/operations/updatedataset.js.map +1 -0
  358. package/models/operations/updateprompt.d.ts +335 -325
  359. package/models/operations/updateprompt.d.ts.map +1 -1
  360. package/models/operations/updateprompt.js +456 -452
  361. package/models/operations/updateprompt.js.map +1 -1
  362. package/package.json +17 -4
  363. package/packages/orq-rc/FUNCTIONS.md +106 -0
  364. package/packages/orq-rc/README.md +622 -0
  365. package/packages/orq-rc/RUNTIMES.md +48 -0
  366. package/packages/orq-rc/docs/sdks/contacts/README.md +84 -0
  367. package/packages/orq-rc/docs/sdks/datasets/README.md +934 -0
  368. package/packages/orq-rc/docs/sdks/deployments/README.md +235 -0
  369. package/packages/orq-rc/docs/sdks/feedback/README.md +92 -0
  370. package/packages/orq-rc/docs/sdks/files/README.md +305 -0
  371. package/packages/orq-rc/docs/sdks/metrics/README.md +86 -0
  372. package/packages/orq-rc/docs/sdks/orq/README.md +10 -0
  373. package/packages/orq-rc/docs/sdks/prompts/README.md +608 -0
  374. package/packages/orq-rc/docs/sdks/remoteconfigs/README.md +80 -0
  375. package/packages/orq-rc/jsr.json +27 -0
  376. package/packages/orq-rc/package-lock.json +3217 -0
  377. package/packages/orq-rc/package.json +45 -0
  378. package/packages/orq-rc/src/core.ts +13 -0
  379. package/packages/orq-rc/src/funcs/contactsCreate.ts +154 -0
  380. package/packages/orq-rc/src/funcs/datasetsClear.ts +161 -0
  381. package/packages/orq-rc/src/funcs/datasetsCreate.ts +159 -0
  382. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +161 -0
  383. package/packages/orq-rc/src/funcs/datasetsCreateDatapoints.ts +165 -0
  384. package/packages/orq-rc/src/funcs/datasetsDelete.ts +161 -0
  385. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +176 -0
  386. package/packages/orq-rc/src/funcs/datasetsList.ts +162 -0
  387. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +169 -0
  388. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +169 -0
  389. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +175 -0
  390. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +170 -0
  391. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +173 -0
  392. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +162 -0
  393. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +170 -0
  394. package/packages/orq-rc/src/funcs/deploymentsList.ts +171 -0
  395. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +162 -0
  396. package/packages/orq-rc/src/funcs/feedbackCreate.ts +154 -0
  397. package/packages/orq-rc/src/funcs/filesCreate.ts +177 -0
  398. package/packages/orq-rc/src/funcs/filesDelete.ts +158 -0
  399. package/packages/orq-rc/src/funcs/filesGet.ts +160 -0
  400. package/packages/orq-rc/src/funcs/filesList.ts +162 -0
  401. package/packages/orq-rc/src/funcs/promptsCreate.ts +154 -0
  402. package/packages/orq-rc/src/funcs/promptsDelete.ts +158 -0
  403. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +175 -0
  404. package/packages/orq-rc/src/funcs/promptsList.ts +162 -0
  405. package/packages/orq-rc/src/funcs/promptsListVersions.ts +168 -0
  406. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +160 -0
  407. package/packages/orq-rc/src/funcs/promptsUpdate.ts +167 -0
  408. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +155 -0
  409. package/packages/orq-rc/src/hooks/global.ts +44 -0
  410. package/packages/orq-rc/src/hooks/hooks.ts +132 -0
  411. package/packages/orq-rc/src/hooks/index.ts +6 -0
  412. package/packages/orq-rc/src/hooks/registration.ts +15 -0
  413. package/packages/orq-rc/src/hooks/types.ts +110 -0
  414. package/packages/orq-rc/src/index.ts +7 -0
  415. package/packages/orq-rc/src/lib/base64.ts +37 -0
  416. package/packages/orq-rc/src/lib/config.ts +70 -0
  417. package/packages/orq-rc/src/lib/dlv.ts +53 -0
  418. package/packages/orq-rc/src/lib/encodings.ts +483 -0
  419. package/packages/orq-rc/src/lib/env.ts +73 -0
  420. package/packages/orq-rc/src/lib/files.ts +40 -0
  421. package/packages/orq-rc/src/lib/http.ts +323 -0
  422. package/packages/orq-rc/src/lib/is-plain-object.ts +43 -0
  423. package/packages/orq-rc/src/lib/logger.ts +9 -0
  424. package/packages/orq-rc/src/lib/matchers.ts +322 -0
  425. package/packages/orq-rc/src/lib/primitives.ts +150 -0
  426. package/packages/orq-rc/src/lib/retries.ts +218 -0
  427. package/packages/orq-rc/src/lib/schemas.ts +91 -0
  428. package/packages/orq-rc/src/lib/sdks.ts +395 -0
  429. package/packages/orq-rc/src/lib/security.ts +253 -0
  430. package/packages/orq-rc/src/lib/url.ts +33 -0
  431. package/packages/orq-rc/src/mcp-server/cli/start/command.ts +125 -0
  432. package/packages/orq-rc/src/mcp-server/cli/start/impl.ts +140 -0
  433. package/packages/orq-rc/src/mcp-server/cli.ts +13 -0
  434. package/packages/orq-rc/src/mcp-server/console-logger.ts +71 -0
  435. package/packages/orq-rc/src/mcp-server/extensions.ts +17 -0
  436. package/packages/orq-rc/src/mcp-server/mcp-server.ts +26 -0
  437. package/packages/orq-rc/src/mcp-server/prompts.ts +110 -0
  438. package/packages/orq-rc/src/mcp-server/resources.ts +158 -0
  439. package/packages/orq-rc/src/mcp-server/scopes.ts +7 -0
  440. package/packages/orq-rc/src/mcp-server/server.ts +123 -0
  441. package/packages/orq-rc/src/mcp-server/shared.ts +75 -0
  442. package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +37 -0
  443. package/packages/orq-rc/src/mcp-server/tools/datasetsClear.ts +35 -0
  444. package/packages/orq-rc/src/mcp-server/tools/datasetsCreate.ts +37 -0
  445. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoint.ts +37 -0
  446. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoints.ts +37 -0
  447. package/packages/orq-rc/src/mcp-server/tools/datasetsDelete.ts +35 -0
  448. package/packages/orq-rc/src/mcp-server/tools/datasetsDeleteDatapoint.ts +35 -0
  449. package/packages/orq-rc/src/mcp-server/tools/datasetsList.ts +37 -0
  450. package/packages/orq-rc/src/mcp-server/tools/datasetsListDatapoints.ts +37 -0
  451. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieve.ts +37 -0
  452. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieveDatapoint.ts +37 -0
  453. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdate.ts +37 -0
  454. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdateDatapoint.ts +35 -0
  455. package/packages/orq-rc/src/mcp-server/tools/deploymentsGetConfig.ts +37 -0
  456. package/packages/orq-rc/src/mcp-server/tools/deploymentsInvoke.ts +37 -0
  457. package/packages/orq-rc/src/mcp-server/tools/deploymentsList.ts +37 -0
  458. package/packages/orq-rc/src/mcp-server/tools/deploymentsMetricsCreate.ts +37 -0
  459. package/packages/orq-rc/src/mcp-server/tools/feedbackCreate.ts +37 -0
  460. package/packages/orq-rc/src/mcp-server/tools/filesCreate.ts +37 -0
  461. package/packages/orq-rc/src/mcp-server/tools/filesDelete.ts +33 -0
  462. package/packages/orq-rc/src/mcp-server/tools/filesGet.ts +37 -0
  463. package/packages/orq-rc/src/mcp-server/tools/filesList.ts +37 -0
  464. package/packages/orq-rc/src/mcp-server/tools/promptsCreate.ts +35 -0
  465. package/packages/orq-rc/src/mcp-server/tools/promptsDelete.ts +33 -0
  466. package/packages/orq-rc/src/mcp-server/tools/promptsGetVersion.ts +37 -0
  467. package/packages/orq-rc/src/mcp-server/tools/promptsList.ts +37 -0
  468. package/packages/orq-rc/src/mcp-server/tools/promptsListVersions.ts +37 -0
  469. package/packages/orq-rc/src/mcp-server/tools/promptsRetrieve.ts +37 -0
  470. package/packages/orq-rc/src/mcp-server/tools/promptsUpdate.ts +35 -0
  471. package/packages/orq-rc/src/mcp-server/tools/remoteconfigsRetrieve.ts +36 -0
  472. package/packages/orq-rc/src/mcp-server/tools.ts +126 -0
  473. package/packages/orq-rc/src/models/components/deployments.ts +4164 -0
  474. package/packages/orq-rc/src/models/components/index.ts +6 -0
  475. package/packages/orq-rc/src/models/components/security.ts +71 -0
  476. package/packages/orq-rc/src/models/errors/apierror.ts +27 -0
  477. package/packages/orq-rc/src/models/errors/getpromptversion.ts +71 -0
  478. package/packages/orq-rc/src/models/errors/honoapierror.ts +82 -0
  479. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +62 -0
  480. package/packages/orq-rc/src/models/errors/index.ts +10 -0
  481. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +97 -0
  482. package/packages/orq-rc/src/models/errors/updateprompt.ts +71 -0
  483. package/packages/orq-rc/src/models/operations/bulkcreatedatapoints.ts +1816 -0
  484. package/packages/orq-rc/src/models/operations/cleardataset.ts +75 -0
  485. package/packages/orq-rc/src/models/operations/createcontact.ts +256 -0
  486. package/packages/orq-rc/src/models/operations/createdataset.ts +296 -0
  487. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +1740 -0
  488. package/packages/orq-rc/src/models/operations/createfeedback.ts +286 -0
  489. package/packages/orq-rc/src/models/operations/createprompt.ts +3816 -0
  490. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +81 -0
  491. package/packages/orq-rc/src/models/operations/deletedataset.ts +75 -0
  492. package/packages/orq-rc/src/models/operations/deleteprompt.ts +69 -0
  493. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +4936 -0
  494. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +6090 -0
  495. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +1199 -0
  496. package/packages/orq-rc/src/models/operations/deployments.ts +2194 -0
  497. package/packages/orq-rc/src/models/operations/filedelete.ts +78 -0
  498. package/packages/orq-rc/src/models/operations/fileget.ts +223 -0
  499. package/packages/orq-rc/src/models/operations/filelist.ts +377 -0
  500. package/packages/orq-rc/src/models/operations/fileupload.ts +324 -0
  501. package/packages/orq-rc/src/models/operations/getallprompts.ts +2165 -0
  502. package/packages/orq-rc/src/models/operations/getoneprompt.ts +1989 -0
  503. package/packages/orq-rc/src/models/operations/getpromptversion.ts +1987 -0
  504. package/packages/orq-rc/src/models/operations/index.ts +34 -0
  505. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +1115 -0
  506. package/packages/orq-rc/src/models/operations/listdatasets.ts +448 -0
  507. package/packages/orq-rc/src/models/operations/listpromptversions.ts +2163 -0
  508. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +190 -0
  509. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +924 -0
  510. package/packages/orq-rc/src/models/operations/retrievedataset.ts +288 -0
  511. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +1729 -0
  512. package/packages/orq-rc/src/models/operations/updatedataset.ts +374 -0
  513. package/packages/orq-rc/src/models/operations/updateprompt.ts +3831 -0
  514. package/packages/orq-rc/src/sdk/contacts.ts +27 -0
  515. package/packages/orq-rc/src/sdk/datasets.ts +222 -0
  516. package/packages/orq-rc/src/sdk/deployments.ts +70 -0
  517. package/packages/orq-rc/src/sdk/feedback.ts +27 -0
  518. package/packages/orq-rc/src/sdk/files.ts +78 -0
  519. package/packages/orq-rc/src/sdk/index.ts +5 -0
  520. package/packages/orq-rc/src/sdk/metrics.ts +27 -0
  521. package/packages/orq-rc/src/sdk/prompts.ts +126 -0
  522. package/packages/orq-rc/src/sdk/remoteconfigs.ts +24 -0
  523. package/packages/orq-rc/src/sdk/sdk.ts +49 -0
  524. package/packages/orq-rc/src/types/async.ts +68 -0
  525. package/packages/orq-rc/src/types/blobs.ts +31 -0
  526. package/packages/orq-rc/src/types/constdatetime.ts +15 -0
  527. package/packages/orq-rc/src/types/enums.ts +16 -0
  528. package/packages/orq-rc/src/types/fp.ts +50 -0
  529. package/packages/orq-rc/src/types/index.ts +11 -0
  530. package/packages/orq-rc/src/types/operations.ts +105 -0
  531. package/packages/orq-rc/src/types/rfcdate.ts +54 -0
  532. package/packages/orq-rc/src/types/streams.ts +21 -0
  533. package/packages/orq-rc/tsconfig.json +41 -0
  534. package/sdk/datasets.d.ts +86 -0
  535. package/sdk/datasets.d.ts.map +1 -0
  536. package/sdk/datasets.js +129 -0
  537. package/sdk/datasets.js.map +1 -0
  538. package/sdk/files.d.ts +1 -1
  539. package/sdk/files.js +1 -1
  540. package/sdk/prompts.d.ts +4 -4
  541. package/sdk/prompts.d.ts.map +1 -1
  542. package/sdk/prompts.js +6 -6
  543. package/sdk/prompts.js.map +1 -1
  544. package/sdk/sdk.d.ts +3 -0
  545. package/sdk/sdk.d.ts.map +1 -1
  546. package/sdk/sdk.js +4 -0
  547. package/sdk/sdk.js.map +1 -1
  548. package/src/funcs/datasetsClear.ts +161 -0
  549. package/src/funcs/datasetsCreate.ts +159 -0
  550. package/src/funcs/datasetsCreateDatapoint.ts +161 -0
  551. package/src/funcs/datasetsCreateDatapoints.ts +165 -0
  552. package/src/funcs/datasetsDelete.ts +161 -0
  553. package/src/funcs/datasetsDeleteDatapoint.ts +176 -0
  554. package/src/funcs/datasetsList.ts +162 -0
  555. package/src/funcs/datasetsListDatapoints.ts +169 -0
  556. package/src/funcs/datasetsRetrieve.ts +169 -0
  557. package/src/funcs/datasetsRetrieveDatapoint.ts +175 -0
  558. package/src/funcs/datasetsUpdate.ts +170 -0
  559. package/src/funcs/datasetsUpdateDatapoint.ts +173 -0
  560. package/src/funcs/deploymentsList.ts +1 -0
  561. package/src/funcs/filesCreate.ts +1 -1
  562. package/src/funcs/filesList.ts +1 -0
  563. package/src/funcs/promptsList.ts +2 -1
  564. package/src/funcs/promptsListVersions.ts +1 -0
  565. package/src/lib/config.ts +6 -6
  566. package/src/lib/files.ts +1 -1
  567. package/src/lib/primitives.ts +14 -0
  568. package/src/lib/sdks.ts +2 -7
  569. package/src/lib/security.ts +11 -3
  570. package/src/mcp-server/cli/start/command.ts +125 -0
  571. package/src/mcp-server/cli/start/impl.ts +140 -0
  572. package/src/mcp-server/cli.ts +13 -0
  573. package/src/mcp-server/console-logger.ts +71 -0
  574. package/src/mcp-server/extensions.ts +17 -0
  575. package/src/mcp-server/mcp-server.ts +26 -0
  576. package/src/mcp-server/prompts.ts +110 -0
  577. package/src/mcp-server/resources.ts +158 -0
  578. package/src/mcp-server/scopes.ts +7 -0
  579. package/src/mcp-server/server.ts +123 -0
  580. package/src/mcp-server/shared.ts +75 -0
  581. package/src/mcp-server/tools/contactsCreate.ts +37 -0
  582. package/src/mcp-server/tools/datasetsClear.ts +35 -0
  583. package/src/mcp-server/tools/datasetsCreate.ts +37 -0
  584. package/src/mcp-server/tools/datasetsCreateDatapoint.ts +37 -0
  585. package/src/mcp-server/tools/datasetsCreateDatapoints.ts +37 -0
  586. package/src/mcp-server/tools/datasetsDelete.ts +35 -0
  587. package/src/mcp-server/tools/datasetsDeleteDatapoint.ts +35 -0
  588. package/src/mcp-server/tools/datasetsList.ts +37 -0
  589. package/src/mcp-server/tools/datasetsListDatapoints.ts +37 -0
  590. package/src/mcp-server/tools/datasetsRetrieve.ts +37 -0
  591. package/src/mcp-server/tools/datasetsRetrieveDatapoint.ts +37 -0
  592. package/src/mcp-server/tools/datasetsUpdate.ts +37 -0
  593. package/src/mcp-server/tools/datasetsUpdateDatapoint.ts +35 -0
  594. package/src/mcp-server/tools/deploymentsGetConfig.ts +37 -0
  595. package/src/mcp-server/tools/deploymentsInvoke.ts +37 -0
  596. package/src/mcp-server/tools/deploymentsList.ts +37 -0
  597. package/src/mcp-server/tools/deploymentsMetricsCreate.ts +37 -0
  598. package/src/mcp-server/tools/feedbackCreate.ts +37 -0
  599. package/src/mcp-server/tools/filesCreate.ts +37 -0
  600. package/src/mcp-server/tools/filesDelete.ts +33 -0
  601. package/src/mcp-server/tools/filesGet.ts +37 -0
  602. package/src/mcp-server/tools/filesList.ts +37 -0
  603. package/src/mcp-server/tools/promptsCreate.ts +35 -0
  604. package/src/mcp-server/tools/promptsDelete.ts +33 -0
  605. package/src/mcp-server/tools/promptsGetVersion.ts +37 -0
  606. package/src/mcp-server/tools/promptsList.ts +37 -0
  607. package/src/mcp-server/tools/promptsListVersions.ts +37 -0
  608. package/src/mcp-server/tools/promptsRetrieve.ts +37 -0
  609. package/src/mcp-server/tools/promptsUpdate.ts +35 -0
  610. package/src/mcp-server/tools/remoteconfigsRetrieve.ts +36 -0
  611. package/src/mcp-server/tools.ts +126 -0
  612. package/src/models/components/deployments.ts +3133 -635
  613. package/src/models/operations/bulkcreatedatapoints.ts +1816 -0
  614. package/src/models/operations/cleardataset.ts +75 -0
  615. package/src/models/operations/createcontact.ts +2 -2
  616. package/src/models/operations/createdataset.ts +296 -0
  617. package/src/models/operations/createdatasetitem.ts +1740 -0
  618. package/src/models/operations/createprompt.ts +736 -637
  619. package/src/models/operations/deletedatapoint.ts +81 -0
  620. package/src/models/operations/deletedataset.ts +75 -0
  621. package/src/models/operations/deploymentcreatemetric.ts +3983 -837
  622. package/src/models/operations/deploymentgetconfig.ts +3446 -883
  623. package/src/models/operations/deploymentinvoke.ts +434 -379
  624. package/src/models/operations/deployments.ts +46 -0
  625. package/src/models/operations/fileget.ts +3 -2
  626. package/src/models/operations/filelist.ts +43 -2
  627. package/src/models/operations/fileupload.ts +4 -2
  628. package/src/models/operations/getallprompts.ts +57 -8
  629. package/src/models/operations/getoneprompt.ts +15 -8
  630. package/src/models/operations/getpromptversion.ts +15 -8
  631. package/src/models/operations/index.ts +12 -0
  632. package/src/models/operations/listdatasetdatapoints.ts +1115 -0
  633. package/src/models/operations/listdatasets.ts +448 -0
  634. package/src/models/operations/listpromptversions.ts +57 -8
  635. package/src/models/operations/retrievedatapoint.ts +924 -0
  636. package/src/models/operations/retrievedataset.ts +288 -0
  637. package/src/models/operations/updatedatapoint.ts +1729 -0
  638. package/src/models/operations/updatedataset.ts +374 -0
  639. package/src/models/operations/updateprompt.ts +629 -698
  640. package/src/sdk/datasets.ts +222 -0
  641. package/src/sdk/files.ts +1 -1
  642. package/src/sdk/prompts.ts +14 -14
  643. package/src/sdk/sdk.ts +6 -0
@@ -0,0 +1,507 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.RetrieveDatapointResponseBody$ = exports.RetrieveDatapointResponseBody$outboundSchema = exports.RetrieveDatapointResponseBody$inboundSchema = exports.RetrieveDatapointMessages$ = exports.RetrieveDatapointMessages$outboundSchema = exports.RetrieveDatapointMessages$inboundSchema = exports.RetrieveDatapointToolCalls$ = exports.RetrieveDatapointToolCalls$outboundSchema = exports.RetrieveDatapointToolCalls$inboundSchema = exports.RetrieveDatapointFunction$ = exports.RetrieveDatapointFunction$outboundSchema = exports.RetrieveDatapointFunction$inboundSchema = exports.RetrieveDatapointType$ = exports.RetrieveDatapointType$outboundSchema = exports.RetrieveDatapointType$inboundSchema = exports.RetrieveDatapointContent$ = exports.RetrieveDatapointContent$outboundSchema = exports.RetrieveDatapointContent$inboundSchema = exports.RetrieveDatapointContent2$ = exports.RetrieveDatapointContent2$outboundSchema = exports.RetrieveDatapointContent2$inboundSchema = exports.RetrieveDatapoint21$ = exports.RetrieveDatapoint21$outboundSchema = exports.RetrieveDatapoint21$inboundSchema = exports.RetrieveDatapoint2Type$ = exports.RetrieveDatapoint2Type$outboundSchema = exports.RetrieveDatapoint2Type$inboundSchema = exports.RetrieveDatapoint22$ = exports.RetrieveDatapoint22$outboundSchema = exports.RetrieveDatapoint22$inboundSchema = exports.RetrieveDatapoint2ImageUrl$ = exports.RetrieveDatapoint2ImageUrl$outboundSchema = exports.RetrieveDatapoint2ImageUrl$inboundSchema = exports.RetrieveDatapoint2DatasetsType$ = exports.RetrieveDatapoint2DatasetsType$outboundSchema = exports.RetrieveDatapoint2DatasetsType$inboundSchema = exports.RetrieveDatapointRole$ = exports.RetrieveDatapointRole$outboundSchema = exports.RetrieveDatapointRole$inboundSchema = exports.RetrieveDatapointRequest$ = exports.RetrieveDatapointRequest$outboundSchema = exports.RetrieveDatapointRequest$inboundSchema = exports.RetrieveDatapointType = exports.RetrieveDatapoint2Type = exports.RetrieveDatapoint2DatasetsType = exports.RetrieveDatapointRole = void 0;
40
+ exports.retrieveDatapointRequestToJSON = retrieveDatapointRequestToJSON;
41
+ exports.retrieveDatapointRequestFromJSON = retrieveDatapointRequestFromJSON;
42
+ exports.retrieveDatapoint2ImageUrlToJSON = retrieveDatapoint2ImageUrlToJSON;
43
+ exports.retrieveDatapoint2ImageUrlFromJSON = retrieveDatapoint2ImageUrlFromJSON;
44
+ exports.retrieveDatapoint22ToJSON = retrieveDatapoint22ToJSON;
45
+ exports.retrieveDatapoint22FromJSON = retrieveDatapoint22FromJSON;
46
+ exports.retrieveDatapoint21ToJSON = retrieveDatapoint21ToJSON;
47
+ exports.retrieveDatapoint21FromJSON = retrieveDatapoint21FromJSON;
48
+ exports.retrieveDatapointContent2ToJSON = retrieveDatapointContent2ToJSON;
49
+ exports.retrieveDatapointContent2FromJSON = retrieveDatapointContent2FromJSON;
50
+ exports.retrieveDatapointContentToJSON = retrieveDatapointContentToJSON;
51
+ exports.retrieveDatapointContentFromJSON = retrieveDatapointContentFromJSON;
52
+ exports.retrieveDatapointFunctionToJSON = retrieveDatapointFunctionToJSON;
53
+ exports.retrieveDatapointFunctionFromJSON = retrieveDatapointFunctionFromJSON;
54
+ exports.retrieveDatapointToolCallsToJSON = retrieveDatapointToolCallsToJSON;
55
+ exports.retrieveDatapointToolCallsFromJSON = retrieveDatapointToolCallsFromJSON;
56
+ exports.retrieveDatapointMessagesToJSON = retrieveDatapointMessagesToJSON;
57
+ exports.retrieveDatapointMessagesFromJSON = retrieveDatapointMessagesFromJSON;
58
+ exports.retrieveDatapointResponseBodyToJSON = retrieveDatapointResponseBodyToJSON;
59
+ exports.retrieveDatapointResponseBodyFromJSON = retrieveDatapointResponseBodyFromJSON;
60
+ const z = __importStar(require("zod"));
61
+ const primitives_js_1 = require("../../lib/primitives.js");
62
+ const schemas_js_1 = require("../../lib/schemas.js");
63
+ /**
64
+ * The role of the prompt message
65
+ */
66
+ exports.RetrieveDatapointRole = {
67
+ System: "system",
68
+ Assistant: "assistant",
69
+ User: "user",
70
+ Exception: "exception",
71
+ Tool: "tool",
72
+ Prompt: "prompt",
73
+ Correction: "correction",
74
+ ExpectedOutput: "expected_output",
75
+ };
76
+ exports.RetrieveDatapoint2DatasetsType = {
77
+ ImageUrl: "image_url",
78
+ };
79
+ exports.RetrieveDatapoint2Type = {
80
+ Text: "text",
81
+ };
82
+ exports.RetrieveDatapointType = {
83
+ Function: "function",
84
+ };
85
+ /** @internal */
86
+ exports.RetrieveDatapointRequest$inboundSchema = z.object({
87
+ dataset_id: z.string(),
88
+ datapoint_id: z.string(),
89
+ }).transform((v) => {
90
+ return (0, primitives_js_1.remap)(v, {
91
+ "dataset_id": "datasetId",
92
+ "datapoint_id": "datapointId",
93
+ });
94
+ });
95
+ /** @internal */
96
+ exports.RetrieveDatapointRequest$outboundSchema = z.object({
97
+ datasetId: z.string(),
98
+ datapointId: z.string(),
99
+ }).transform((v) => {
100
+ return (0, primitives_js_1.remap)(v, {
101
+ datasetId: "dataset_id",
102
+ datapointId: "datapoint_id",
103
+ });
104
+ });
105
+ /**
106
+ * @internal
107
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
108
+ */
109
+ var RetrieveDatapointRequest$;
110
+ (function (RetrieveDatapointRequest$) {
111
+ /** @deprecated use `RetrieveDatapointRequest$inboundSchema` instead. */
112
+ RetrieveDatapointRequest$.inboundSchema = exports.RetrieveDatapointRequest$inboundSchema;
113
+ /** @deprecated use `RetrieveDatapointRequest$outboundSchema` instead. */
114
+ RetrieveDatapointRequest$.outboundSchema = exports.RetrieveDatapointRequest$outboundSchema;
115
+ })(RetrieveDatapointRequest$ || (exports.RetrieveDatapointRequest$ = RetrieveDatapointRequest$ = {}));
116
+ function retrieveDatapointRequestToJSON(retrieveDatapointRequest) {
117
+ return JSON.stringify(exports.RetrieveDatapointRequest$outboundSchema.parse(retrieveDatapointRequest));
118
+ }
119
+ function retrieveDatapointRequestFromJSON(jsonString) {
120
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapointRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapointRequest' from JSON`);
121
+ }
122
+ /** @internal */
123
+ exports.RetrieveDatapointRole$inboundSchema = z.nativeEnum(exports.RetrieveDatapointRole);
124
+ /** @internal */
125
+ exports.RetrieveDatapointRole$outboundSchema = exports.RetrieveDatapointRole$inboundSchema;
126
+ /**
127
+ * @internal
128
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
129
+ */
130
+ var RetrieveDatapointRole$;
131
+ (function (RetrieveDatapointRole$) {
132
+ /** @deprecated use `RetrieveDatapointRole$inboundSchema` instead. */
133
+ RetrieveDatapointRole$.inboundSchema = exports.RetrieveDatapointRole$inboundSchema;
134
+ /** @deprecated use `RetrieveDatapointRole$outboundSchema` instead. */
135
+ RetrieveDatapointRole$.outboundSchema = exports.RetrieveDatapointRole$outboundSchema;
136
+ })(RetrieveDatapointRole$ || (exports.RetrieveDatapointRole$ = RetrieveDatapointRole$ = {}));
137
+ /** @internal */
138
+ exports.RetrieveDatapoint2DatasetsType$inboundSchema = z.nativeEnum(exports.RetrieveDatapoint2DatasetsType);
139
+ /** @internal */
140
+ exports.RetrieveDatapoint2DatasetsType$outboundSchema = exports.RetrieveDatapoint2DatasetsType$inboundSchema;
141
+ /**
142
+ * @internal
143
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
144
+ */
145
+ var RetrieveDatapoint2DatasetsType$;
146
+ (function (RetrieveDatapoint2DatasetsType$) {
147
+ /** @deprecated use `RetrieveDatapoint2DatasetsType$inboundSchema` instead. */
148
+ RetrieveDatapoint2DatasetsType$.inboundSchema = exports.RetrieveDatapoint2DatasetsType$inboundSchema;
149
+ /** @deprecated use `RetrieveDatapoint2DatasetsType$outboundSchema` instead. */
150
+ RetrieveDatapoint2DatasetsType$.outboundSchema = exports.RetrieveDatapoint2DatasetsType$outboundSchema;
151
+ })(RetrieveDatapoint2DatasetsType$ || (exports.RetrieveDatapoint2DatasetsType$ = RetrieveDatapoint2DatasetsType$ = {}));
152
+ /** @internal */
153
+ exports.RetrieveDatapoint2ImageUrl$inboundSchema = z.object({
154
+ id: z.string().optional(),
155
+ url: z.string(),
156
+ detail: z.string().optional(),
157
+ });
158
+ /** @internal */
159
+ exports.RetrieveDatapoint2ImageUrl$outboundSchema = z.object({
160
+ id: z.string().optional(),
161
+ url: z.string(),
162
+ detail: z.string().optional(),
163
+ });
164
+ /**
165
+ * @internal
166
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
167
+ */
168
+ var RetrieveDatapoint2ImageUrl$;
169
+ (function (RetrieveDatapoint2ImageUrl$) {
170
+ /** @deprecated use `RetrieveDatapoint2ImageUrl$inboundSchema` instead. */
171
+ RetrieveDatapoint2ImageUrl$.inboundSchema = exports.RetrieveDatapoint2ImageUrl$inboundSchema;
172
+ /** @deprecated use `RetrieveDatapoint2ImageUrl$outboundSchema` instead. */
173
+ RetrieveDatapoint2ImageUrl$.outboundSchema = exports.RetrieveDatapoint2ImageUrl$outboundSchema;
174
+ })(RetrieveDatapoint2ImageUrl$ || (exports.RetrieveDatapoint2ImageUrl$ = RetrieveDatapoint2ImageUrl$ = {}));
175
+ function retrieveDatapoint2ImageUrlToJSON(retrieveDatapoint2ImageUrl) {
176
+ return JSON.stringify(exports.RetrieveDatapoint2ImageUrl$outboundSchema.parse(retrieveDatapoint2ImageUrl));
177
+ }
178
+ function retrieveDatapoint2ImageUrlFromJSON(jsonString) {
179
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapoint2ImageUrl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapoint2ImageUrl' from JSON`);
180
+ }
181
+ /** @internal */
182
+ exports.RetrieveDatapoint22$inboundSchema = z.object({
183
+ type: exports.RetrieveDatapoint2DatasetsType$inboundSchema,
184
+ image_url: z.lazy(() => exports.RetrieveDatapoint2ImageUrl$inboundSchema),
185
+ }).transform((v) => {
186
+ return (0, primitives_js_1.remap)(v, {
187
+ "image_url": "imageUrl",
188
+ });
189
+ });
190
+ /** @internal */
191
+ exports.RetrieveDatapoint22$outboundSchema = z.object({
192
+ type: exports.RetrieveDatapoint2DatasetsType$outboundSchema,
193
+ imageUrl: z.lazy(() => exports.RetrieveDatapoint2ImageUrl$outboundSchema),
194
+ }).transform((v) => {
195
+ return (0, primitives_js_1.remap)(v, {
196
+ imageUrl: "image_url",
197
+ });
198
+ });
199
+ /**
200
+ * @internal
201
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
202
+ */
203
+ var RetrieveDatapoint22$;
204
+ (function (RetrieveDatapoint22$) {
205
+ /** @deprecated use `RetrieveDatapoint22$inboundSchema` instead. */
206
+ RetrieveDatapoint22$.inboundSchema = exports.RetrieveDatapoint22$inboundSchema;
207
+ /** @deprecated use `RetrieveDatapoint22$outboundSchema` instead. */
208
+ RetrieveDatapoint22$.outboundSchema = exports.RetrieveDatapoint22$outboundSchema;
209
+ })(RetrieveDatapoint22$ || (exports.RetrieveDatapoint22$ = RetrieveDatapoint22$ = {}));
210
+ function retrieveDatapoint22ToJSON(retrieveDatapoint22) {
211
+ return JSON.stringify(exports.RetrieveDatapoint22$outboundSchema.parse(retrieveDatapoint22));
212
+ }
213
+ function retrieveDatapoint22FromJSON(jsonString) {
214
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapoint22$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapoint22' from JSON`);
215
+ }
216
+ /** @internal */
217
+ exports.RetrieveDatapoint2Type$inboundSchema = z.nativeEnum(exports.RetrieveDatapoint2Type);
218
+ /** @internal */
219
+ exports.RetrieveDatapoint2Type$outboundSchema = exports.RetrieveDatapoint2Type$inboundSchema;
220
+ /**
221
+ * @internal
222
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
223
+ */
224
+ var RetrieveDatapoint2Type$;
225
+ (function (RetrieveDatapoint2Type$) {
226
+ /** @deprecated use `RetrieveDatapoint2Type$inboundSchema` instead. */
227
+ RetrieveDatapoint2Type$.inboundSchema = exports.RetrieveDatapoint2Type$inboundSchema;
228
+ /** @deprecated use `RetrieveDatapoint2Type$outboundSchema` instead. */
229
+ RetrieveDatapoint2Type$.outboundSchema = exports.RetrieveDatapoint2Type$outboundSchema;
230
+ })(RetrieveDatapoint2Type$ || (exports.RetrieveDatapoint2Type$ = RetrieveDatapoint2Type$ = {}));
231
+ /** @internal */
232
+ exports.RetrieveDatapoint21$inboundSchema = z.object({
233
+ type: exports.RetrieveDatapoint2Type$inboundSchema,
234
+ text: z.string(),
235
+ });
236
+ /** @internal */
237
+ exports.RetrieveDatapoint21$outboundSchema = z.object({
238
+ type: exports.RetrieveDatapoint2Type$outboundSchema,
239
+ text: z.string(),
240
+ });
241
+ /**
242
+ * @internal
243
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
244
+ */
245
+ var RetrieveDatapoint21$;
246
+ (function (RetrieveDatapoint21$) {
247
+ /** @deprecated use `RetrieveDatapoint21$inboundSchema` instead. */
248
+ RetrieveDatapoint21$.inboundSchema = exports.RetrieveDatapoint21$inboundSchema;
249
+ /** @deprecated use `RetrieveDatapoint21$outboundSchema` instead. */
250
+ RetrieveDatapoint21$.outboundSchema = exports.RetrieveDatapoint21$outboundSchema;
251
+ })(RetrieveDatapoint21$ || (exports.RetrieveDatapoint21$ = RetrieveDatapoint21$ = {}));
252
+ function retrieveDatapoint21ToJSON(retrieveDatapoint21) {
253
+ return JSON.stringify(exports.RetrieveDatapoint21$outboundSchema.parse(retrieveDatapoint21));
254
+ }
255
+ function retrieveDatapoint21FromJSON(jsonString) {
256
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapoint21$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapoint21' from JSON`);
257
+ }
258
+ /** @internal */
259
+ exports.RetrieveDatapointContent2$inboundSchema = z.union([
260
+ z.lazy(() => exports.RetrieveDatapoint21$inboundSchema),
261
+ z.lazy(() => exports.RetrieveDatapoint22$inboundSchema),
262
+ ]);
263
+ /** @internal */
264
+ exports.RetrieveDatapointContent2$outboundSchema = z.union([
265
+ z.lazy(() => exports.RetrieveDatapoint21$outboundSchema),
266
+ z.lazy(() => exports.RetrieveDatapoint22$outboundSchema),
267
+ ]);
268
+ /**
269
+ * @internal
270
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
271
+ */
272
+ var RetrieveDatapointContent2$;
273
+ (function (RetrieveDatapointContent2$) {
274
+ /** @deprecated use `RetrieveDatapointContent2$inboundSchema` instead. */
275
+ RetrieveDatapointContent2$.inboundSchema = exports.RetrieveDatapointContent2$inboundSchema;
276
+ /** @deprecated use `RetrieveDatapointContent2$outboundSchema` instead. */
277
+ RetrieveDatapointContent2$.outboundSchema = exports.RetrieveDatapointContent2$outboundSchema;
278
+ })(RetrieveDatapointContent2$ || (exports.RetrieveDatapointContent2$ = RetrieveDatapointContent2$ = {}));
279
+ function retrieveDatapointContent2ToJSON(retrieveDatapointContent2) {
280
+ return JSON.stringify(exports.RetrieveDatapointContent2$outboundSchema.parse(retrieveDatapointContent2));
281
+ }
282
+ function retrieveDatapointContent2FromJSON(jsonString) {
283
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapointContent2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapointContent2' from JSON`);
284
+ }
285
+ /** @internal */
286
+ exports.RetrieveDatapointContent$inboundSchema = z.union([
287
+ z.string(),
288
+ z.array(z.union([
289
+ z.lazy(() => exports.RetrieveDatapoint21$inboundSchema),
290
+ z.lazy(() => exports.RetrieveDatapoint22$inboundSchema),
291
+ ])),
292
+ ]);
293
+ /** @internal */
294
+ exports.RetrieveDatapointContent$outboundSchema = z.union([
295
+ z.string(),
296
+ z.array(z.union([
297
+ z.lazy(() => exports.RetrieveDatapoint21$outboundSchema),
298
+ z.lazy(() => exports.RetrieveDatapoint22$outboundSchema),
299
+ ])),
300
+ ]);
301
+ /**
302
+ * @internal
303
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
304
+ */
305
+ var RetrieveDatapointContent$;
306
+ (function (RetrieveDatapointContent$) {
307
+ /** @deprecated use `RetrieveDatapointContent$inboundSchema` instead. */
308
+ RetrieveDatapointContent$.inboundSchema = exports.RetrieveDatapointContent$inboundSchema;
309
+ /** @deprecated use `RetrieveDatapointContent$outboundSchema` instead. */
310
+ RetrieveDatapointContent$.outboundSchema = exports.RetrieveDatapointContent$outboundSchema;
311
+ })(RetrieveDatapointContent$ || (exports.RetrieveDatapointContent$ = RetrieveDatapointContent$ = {}));
312
+ function retrieveDatapointContentToJSON(retrieveDatapointContent) {
313
+ return JSON.stringify(exports.RetrieveDatapointContent$outboundSchema.parse(retrieveDatapointContent));
314
+ }
315
+ function retrieveDatapointContentFromJSON(jsonString) {
316
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapointContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapointContent' from JSON`);
317
+ }
318
+ /** @internal */
319
+ exports.RetrieveDatapointType$inboundSchema = z.nativeEnum(exports.RetrieveDatapointType);
320
+ /** @internal */
321
+ exports.RetrieveDatapointType$outboundSchema = exports.RetrieveDatapointType$inboundSchema;
322
+ /**
323
+ * @internal
324
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
325
+ */
326
+ var RetrieveDatapointType$;
327
+ (function (RetrieveDatapointType$) {
328
+ /** @deprecated use `RetrieveDatapointType$inboundSchema` instead. */
329
+ RetrieveDatapointType$.inboundSchema = exports.RetrieveDatapointType$inboundSchema;
330
+ /** @deprecated use `RetrieveDatapointType$outboundSchema` instead. */
331
+ RetrieveDatapointType$.outboundSchema = exports.RetrieveDatapointType$outboundSchema;
332
+ })(RetrieveDatapointType$ || (exports.RetrieveDatapointType$ = RetrieveDatapointType$ = {}));
333
+ /** @internal */
334
+ exports.RetrieveDatapointFunction$inboundSchema = z.object({
335
+ name: z.string(),
336
+ arguments: z.string(),
337
+ });
338
+ /** @internal */
339
+ exports.RetrieveDatapointFunction$outboundSchema = z.object({
340
+ name: z.string(),
341
+ arguments: z.string(),
342
+ });
343
+ /**
344
+ * @internal
345
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
346
+ */
347
+ var RetrieveDatapointFunction$;
348
+ (function (RetrieveDatapointFunction$) {
349
+ /** @deprecated use `RetrieveDatapointFunction$inboundSchema` instead. */
350
+ RetrieveDatapointFunction$.inboundSchema = exports.RetrieveDatapointFunction$inboundSchema;
351
+ /** @deprecated use `RetrieveDatapointFunction$outboundSchema` instead. */
352
+ RetrieveDatapointFunction$.outboundSchema = exports.RetrieveDatapointFunction$outboundSchema;
353
+ })(RetrieveDatapointFunction$ || (exports.RetrieveDatapointFunction$ = RetrieveDatapointFunction$ = {}));
354
+ function retrieveDatapointFunctionToJSON(retrieveDatapointFunction) {
355
+ return JSON.stringify(exports.RetrieveDatapointFunction$outboundSchema.parse(retrieveDatapointFunction));
356
+ }
357
+ function retrieveDatapointFunctionFromJSON(jsonString) {
358
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapointFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapointFunction' from JSON`);
359
+ }
360
+ /** @internal */
361
+ exports.RetrieveDatapointToolCalls$inboundSchema = z.object({
362
+ id: z.string().optional(),
363
+ index: z.number().optional(),
364
+ type: exports.RetrieveDatapointType$inboundSchema,
365
+ function: z.lazy(() => exports.RetrieveDatapointFunction$inboundSchema),
366
+ });
367
+ /** @internal */
368
+ exports.RetrieveDatapointToolCalls$outboundSchema = z.object({
369
+ id: z.string().optional(),
370
+ index: z.number().optional(),
371
+ type: exports.RetrieveDatapointType$outboundSchema,
372
+ function: z.lazy(() => exports.RetrieveDatapointFunction$outboundSchema),
373
+ });
374
+ /**
375
+ * @internal
376
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
377
+ */
378
+ var RetrieveDatapointToolCalls$;
379
+ (function (RetrieveDatapointToolCalls$) {
380
+ /** @deprecated use `RetrieveDatapointToolCalls$inboundSchema` instead. */
381
+ RetrieveDatapointToolCalls$.inboundSchema = exports.RetrieveDatapointToolCalls$inboundSchema;
382
+ /** @deprecated use `RetrieveDatapointToolCalls$outboundSchema` instead. */
383
+ RetrieveDatapointToolCalls$.outboundSchema = exports.RetrieveDatapointToolCalls$outboundSchema;
384
+ })(RetrieveDatapointToolCalls$ || (exports.RetrieveDatapointToolCalls$ = RetrieveDatapointToolCalls$ = {}));
385
+ function retrieveDatapointToolCallsToJSON(retrieveDatapointToolCalls) {
386
+ return JSON.stringify(exports.RetrieveDatapointToolCalls$outboundSchema.parse(retrieveDatapointToolCalls));
387
+ }
388
+ function retrieveDatapointToolCallsFromJSON(jsonString) {
389
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapointToolCalls$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapointToolCalls' from JSON`);
390
+ }
391
+ /** @internal */
392
+ exports.RetrieveDatapointMessages$inboundSchema = z.object({
393
+ role: exports.RetrieveDatapointRole$inboundSchema,
394
+ content: z.union([
395
+ z.string(),
396
+ z.array(z.union([
397
+ z.lazy(() => exports.RetrieveDatapoint21$inboundSchema),
398
+ z.lazy(() => exports.RetrieveDatapoint22$inboundSchema),
399
+ ])),
400
+ ]),
401
+ tool_calls: z.array(z.lazy(() => exports.RetrieveDatapointToolCalls$inboundSchema))
402
+ .optional(),
403
+ }).transform((v) => {
404
+ return (0, primitives_js_1.remap)(v, {
405
+ "tool_calls": "toolCalls",
406
+ });
407
+ });
408
+ /** @internal */
409
+ exports.RetrieveDatapointMessages$outboundSchema = z.object({
410
+ role: exports.RetrieveDatapointRole$outboundSchema,
411
+ content: z.union([
412
+ z.string(),
413
+ z.array(z.union([
414
+ z.lazy(() => exports.RetrieveDatapoint21$outboundSchema),
415
+ z.lazy(() => exports.RetrieveDatapoint22$outboundSchema),
416
+ ])),
417
+ ]),
418
+ toolCalls: z.array(z.lazy(() => exports.RetrieveDatapointToolCalls$outboundSchema))
419
+ .optional(),
420
+ }).transform((v) => {
421
+ return (0, primitives_js_1.remap)(v, {
422
+ toolCalls: "tool_calls",
423
+ });
424
+ });
425
+ /**
426
+ * @internal
427
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
428
+ */
429
+ var RetrieveDatapointMessages$;
430
+ (function (RetrieveDatapointMessages$) {
431
+ /** @deprecated use `RetrieveDatapointMessages$inboundSchema` instead. */
432
+ RetrieveDatapointMessages$.inboundSchema = exports.RetrieveDatapointMessages$inboundSchema;
433
+ /** @deprecated use `RetrieveDatapointMessages$outboundSchema` instead. */
434
+ RetrieveDatapointMessages$.outboundSchema = exports.RetrieveDatapointMessages$outboundSchema;
435
+ })(RetrieveDatapointMessages$ || (exports.RetrieveDatapointMessages$ = RetrieveDatapointMessages$ = {}));
436
+ function retrieveDatapointMessagesToJSON(retrieveDatapointMessages) {
437
+ return JSON.stringify(exports.RetrieveDatapointMessages$outboundSchema.parse(retrieveDatapointMessages));
438
+ }
439
+ function retrieveDatapointMessagesFromJSON(jsonString) {
440
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapointMessages$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapointMessages' from JSON`);
441
+ }
442
+ /** @internal */
443
+ exports.RetrieveDatapointResponseBody$inboundSchema = z.object({
444
+ _id: z.string(),
445
+ workspace_id: z.string(),
446
+ inputs: z.record(z.any()).optional(),
447
+ messages: z.array(z.lazy(() => exports.RetrieveDatapointMessages$inboundSchema))
448
+ .optional(),
449
+ expected_output: z.string().optional(),
450
+ dataset_id: z.string(),
451
+ created_by_id: z.string().optional(),
452
+ updated_by_id: z.string().optional(),
453
+ created: z.string().datetime({ offset: true }).transform(v => new Date(v))
454
+ .optional(),
455
+ updated: z.string().datetime({ offset: true }).default("2025-03-19T18:13:08.960Z").transform(v => new Date(v)),
456
+ }).transform((v) => {
457
+ return (0, primitives_js_1.remap)(v, {
458
+ "_id": "id",
459
+ "workspace_id": "workspaceId",
460
+ "expected_output": "expectedOutput",
461
+ "dataset_id": "datasetId",
462
+ "created_by_id": "createdById",
463
+ "updated_by_id": "updatedById",
464
+ });
465
+ });
466
+ /** @internal */
467
+ exports.RetrieveDatapointResponseBody$outboundSchema = z.object({
468
+ id: z.string(),
469
+ workspaceId: z.string(),
470
+ inputs: z.record(z.any()).optional(),
471
+ messages: z.array(z.lazy(() => exports.RetrieveDatapointMessages$outboundSchema))
472
+ .optional(),
473
+ expectedOutput: z.string().optional(),
474
+ datasetId: z.string(),
475
+ createdById: z.string().optional(),
476
+ updatedById: z.string().optional(),
477
+ created: z.date().transform(v => v.toISOString()).optional(),
478
+ updated: z.date().default(() => new Date("2025-03-19T18:13:08.960Z"))
479
+ .transform(v => v.toISOString()),
480
+ }).transform((v) => {
481
+ return (0, primitives_js_1.remap)(v, {
482
+ id: "_id",
483
+ workspaceId: "workspace_id",
484
+ expectedOutput: "expected_output",
485
+ datasetId: "dataset_id",
486
+ createdById: "created_by_id",
487
+ updatedById: "updated_by_id",
488
+ });
489
+ });
490
+ /**
491
+ * @internal
492
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
493
+ */
494
+ var RetrieveDatapointResponseBody$;
495
+ (function (RetrieveDatapointResponseBody$) {
496
+ /** @deprecated use `RetrieveDatapointResponseBody$inboundSchema` instead. */
497
+ RetrieveDatapointResponseBody$.inboundSchema = exports.RetrieveDatapointResponseBody$inboundSchema;
498
+ /** @deprecated use `RetrieveDatapointResponseBody$outboundSchema` instead. */
499
+ RetrieveDatapointResponseBody$.outboundSchema = exports.RetrieveDatapointResponseBody$outboundSchema;
500
+ })(RetrieveDatapointResponseBody$ || (exports.RetrieveDatapointResponseBody$ = RetrieveDatapointResponseBody$ = {}));
501
+ function retrieveDatapointResponseBodyToJSON(retrieveDatapointResponseBody) {
502
+ return JSON.stringify(exports.RetrieveDatapointResponseBody$outboundSchema.parse(retrieveDatapointResponseBody));
503
+ }
504
+ function retrieveDatapointResponseBodyFromJSON(jsonString) {
505
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveDatapointResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveDatapointResponseBody' from JSON`);
506
+ }
507
+ //# sourceMappingURL=retrievedatapoint.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retrievedatapoint.js","sourceRoot":"","sources":["../../src/models/operations/retrievedatapoint.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkNH,wEAMC;AAED,4EAQC;AAsFD,4EAMC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AW,EAAE,CAAC;CACnC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,EAAE,EAAE,KAAK;QACT,WAAW,EAAE,cAAc;QAC3B,cAAc,EAAE,iBAAiB;QACjC,SAAS,EAAE,YAAY;QACvB,WAAW,EAAE,eAAe;QAC5B,WAAW,EAAE,eAAe;KAC7B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,8BAA8B,CAO9C;AAPD,WAAiB,8BAA8B;IAC7C,6EAA6E;IAChE,4CAAa,GAAG,mDAA2C,CAAC;IACzE,8EAA8E;IACjE,6CAAc,GAAG,oDAA4C,CAAC;AAG7E,CAAC,EAPgB,8BAA8B,8CAA9B,8BAA8B,QAO9C;AAED,SAAgB,mCAAmC,CACjD,6BAA4D;IAE5D,OAAO,IAAI,CAAC,SAAS,CACnB,oDAA4C,CAAC,KAAK,CAChD,6BAA6B,CAC9B,CACF,CAAC;AACJ,CAAC;AAED,SAAgB,qCAAqC,CACnD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mDAA2C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACvE,2DAA2D,CAC5D,CAAC;AACJ,CAAC"}
@@ -0,0 +1,124 @@
1
+ import * as z from "zod";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ export type RetrieveDatasetRequest = {
5
+ datasetId: string;
6
+ };
7
+ export type RetrieveDatasetMetadata = {
8
+ totalVersions: number;
9
+ datapointsCount: number;
10
+ };
11
+ /**
12
+ * Dataset retrieved successfully. Returns the complete dataset object.
13
+ */
14
+ export type RetrieveDatasetResponseBody = {
15
+ /**
16
+ * The unique identifier of the dataset
17
+ */
18
+ id: string;
19
+ /**
20
+ * The display name of the dataset
21
+ */
22
+ displayName: string;
23
+ /**
24
+ * The unique identifier of the project it belongs to
25
+ */
26
+ projectId: string;
27
+ /**
28
+ * The unique identifier of the workspace it belongs to
29
+ */
30
+ workspaceId: string;
31
+ /**
32
+ * The unique identifier of the user who created the dataset
33
+ */
34
+ createdById?: string | undefined;
35
+ /**
36
+ * The unique identifier of the user who last updated the dataset
37
+ */
38
+ updatedById?: string | undefined;
39
+ metadata: RetrieveDatasetMetadata;
40
+ /**
41
+ * The date and time the resource was created
42
+ */
43
+ created?: Date | undefined;
44
+ /**
45
+ * The date and time the resource was last updated
46
+ */
47
+ updated?: Date | undefined;
48
+ };
49
+ /** @internal */
50
+ export declare const RetrieveDatasetRequest$inboundSchema: z.ZodType<RetrieveDatasetRequest, z.ZodTypeDef, unknown>;
51
+ /** @internal */
52
+ export type RetrieveDatasetRequest$Outbound = {
53
+ dataset_id: string;
54
+ };
55
+ /** @internal */
56
+ export declare const RetrieveDatasetRequest$outboundSchema: z.ZodType<RetrieveDatasetRequest$Outbound, z.ZodTypeDef, RetrieveDatasetRequest>;
57
+ /**
58
+ * @internal
59
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
60
+ */
61
+ export declare namespace RetrieveDatasetRequest$ {
62
+ /** @deprecated use `RetrieveDatasetRequest$inboundSchema` instead. */
63
+ const inboundSchema: z.ZodType<RetrieveDatasetRequest, z.ZodTypeDef, unknown>;
64
+ /** @deprecated use `RetrieveDatasetRequest$outboundSchema` instead. */
65
+ const outboundSchema: z.ZodType<RetrieveDatasetRequest$Outbound, z.ZodTypeDef, RetrieveDatasetRequest>;
66
+ /** @deprecated use `RetrieveDatasetRequest$Outbound` instead. */
67
+ type Outbound = RetrieveDatasetRequest$Outbound;
68
+ }
69
+ export declare function retrieveDatasetRequestToJSON(retrieveDatasetRequest: RetrieveDatasetRequest): string;
70
+ export declare function retrieveDatasetRequestFromJSON(jsonString: string): SafeParseResult<RetrieveDatasetRequest, SDKValidationError>;
71
+ /** @internal */
72
+ export declare const RetrieveDatasetMetadata$inboundSchema: z.ZodType<RetrieveDatasetMetadata, z.ZodTypeDef, unknown>;
73
+ /** @internal */
74
+ export type RetrieveDatasetMetadata$Outbound = {
75
+ total_versions: number;
76
+ datapoints_count: number;
77
+ };
78
+ /** @internal */
79
+ export declare const RetrieveDatasetMetadata$outboundSchema: z.ZodType<RetrieveDatasetMetadata$Outbound, z.ZodTypeDef, RetrieveDatasetMetadata>;
80
+ /**
81
+ * @internal
82
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
83
+ */
84
+ export declare namespace RetrieveDatasetMetadata$ {
85
+ /** @deprecated use `RetrieveDatasetMetadata$inboundSchema` instead. */
86
+ const inboundSchema: z.ZodType<RetrieveDatasetMetadata, z.ZodTypeDef, unknown>;
87
+ /** @deprecated use `RetrieveDatasetMetadata$outboundSchema` instead. */
88
+ const outboundSchema: z.ZodType<RetrieveDatasetMetadata$Outbound, z.ZodTypeDef, RetrieveDatasetMetadata>;
89
+ /** @deprecated use `RetrieveDatasetMetadata$Outbound` instead. */
90
+ type Outbound = RetrieveDatasetMetadata$Outbound;
91
+ }
92
+ export declare function retrieveDatasetMetadataToJSON(retrieveDatasetMetadata: RetrieveDatasetMetadata): string;
93
+ export declare function retrieveDatasetMetadataFromJSON(jsonString: string): SafeParseResult<RetrieveDatasetMetadata, SDKValidationError>;
94
+ /** @internal */
95
+ export declare const RetrieveDatasetResponseBody$inboundSchema: z.ZodType<RetrieveDatasetResponseBody, z.ZodTypeDef, unknown>;
96
+ /** @internal */
97
+ export type RetrieveDatasetResponseBody$Outbound = {
98
+ _id: string;
99
+ display_name: string;
100
+ project_id: string;
101
+ workspace_id: string;
102
+ created_by_id?: string | undefined;
103
+ updated_by_id?: string | undefined;
104
+ metadata: RetrieveDatasetMetadata$Outbound;
105
+ created?: string | undefined;
106
+ updated: string;
107
+ };
108
+ /** @internal */
109
+ export declare const RetrieveDatasetResponseBody$outboundSchema: z.ZodType<RetrieveDatasetResponseBody$Outbound, z.ZodTypeDef, RetrieveDatasetResponseBody>;
110
+ /**
111
+ * @internal
112
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
113
+ */
114
+ export declare namespace RetrieveDatasetResponseBody$ {
115
+ /** @deprecated use `RetrieveDatasetResponseBody$inboundSchema` instead. */
116
+ const inboundSchema: z.ZodType<RetrieveDatasetResponseBody, z.ZodTypeDef, unknown>;
117
+ /** @deprecated use `RetrieveDatasetResponseBody$outboundSchema` instead. */
118
+ const outboundSchema: z.ZodType<RetrieveDatasetResponseBody$Outbound, z.ZodTypeDef, RetrieveDatasetResponseBody>;
119
+ /** @deprecated use `RetrieveDatasetResponseBody$Outbound` instead. */
120
+ type Outbound = RetrieveDatasetResponseBody$Outbound;
121
+ }
122
+ export declare function retrieveDatasetResponseBodyToJSON(retrieveDatasetResponseBody: RetrieveDatasetResponseBody): string;
123
+ export declare function retrieveDatasetResponseBodyFromJSON(jsonString: string): SafeParseResult<RetrieveDatasetResponseBody, SDKValidationError>;
124
+ //# sourceMappingURL=retrievedataset.d.ts.map