@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,1077 +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 ListDatasetDatapointsRequest = {
13
- datasetId: string;
14
- /**
15
- * A limit on the number of objects to be returned. Limit can range between 1 and 50, and the default is 10
16
- */
17
- limit?: number | undefined;
18
- /**
19
- * A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, ending with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `after=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the next page of the list.
20
- */
21
- startingAfter?: string | undefined;
22
- /**
23
- * A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, starting with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `before=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the previous page of the list.
24
- */
25
- endingBefore?: string | undefined;
26
- };
27
-
28
- export const ListDatasetDatapointsObject = {
29
- List: "list",
30
- } as const;
31
- export type ListDatasetDatapointsObject = ClosedEnum<
32
- typeof ListDatasetDatapointsObject
33
- >;
34
-
35
- /**
36
- * The role of the prompt message
37
- */
38
- export const ListDatasetDatapointsRole = {
39
- System: "system",
40
- Assistant: "assistant",
41
- User: "user",
42
- Exception: "exception",
43
- Tool: "tool",
44
- Prompt: "prompt",
45
- Correction: "correction",
46
- ExpectedOutput: "expected_output",
47
- } as const;
48
- /**
49
- * The role of the prompt message
50
- */
51
- export type ListDatasetDatapointsRole = ClosedEnum<
52
- typeof ListDatasetDatapointsRole
53
- >;
54
-
55
- export const ListDatasetDatapoints2DatasetsType = {
56
- ImageUrl: "image_url",
57
- } as const;
58
- export type ListDatasetDatapoints2DatasetsType = ClosedEnum<
59
- typeof ListDatasetDatapoints2DatasetsType
60
- >;
61
-
62
- export type ListDatasetDatapoints2ImageUrl = {
63
- /**
64
- * The orq.ai id of the image
65
- */
66
- id?: string | undefined;
67
- /**
68
- * Either a URL of the image or the base64 encoded data URI.
69
- */
70
- url: string;
71
- /**
72
- * Specifies the detail level of the image. Currently only supported with OpenAI models
73
- */
74
- detail?: string | undefined;
75
- };
76
-
77
- /**
78
- * The image part of the prompt message. Only supported with vision models.
79
- */
80
- export type ListDatasetDatapoints22 = {
81
- type: ListDatasetDatapoints2DatasetsType;
82
- imageUrl: ListDatasetDatapoints2ImageUrl;
83
- };
84
-
85
- export const ListDatasetDatapoints2Type = {
86
- Text: "text",
87
- } as const;
88
- export type ListDatasetDatapoints2Type = ClosedEnum<
89
- typeof ListDatasetDatapoints2Type
90
- >;
91
-
92
- /**
93
- * Text content part of a prompt message
94
- */
95
- export type ListDatasetDatapoints21 = {
96
- type: ListDatasetDatapoints2Type;
97
- text: string;
98
- };
99
-
100
- export type ListDatasetDatapointsContent2 =
101
- | ListDatasetDatapoints21
102
- | ListDatasetDatapoints22;
103
-
104
- /**
105
- * 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.
106
- */
107
- export type ListDatasetDatapointsContent =
108
- | string
109
- | Array<ListDatasetDatapoints21 | ListDatasetDatapoints22>;
110
-
111
- export const ListDatasetDatapointsType = {
112
- Function: "function",
113
- } as const;
114
- export type ListDatasetDatapointsType = ClosedEnum<
115
- typeof ListDatasetDatapointsType
116
- >;
117
-
118
- export type ListDatasetDatapointsFunction = {
119
- name: string;
120
- /**
121
- * JSON string arguments for the functions
122
- */
123
- arguments: string;
124
- };
125
-
126
- export type ListDatasetDatapointsToolCalls = {
127
- id?: string | undefined;
128
- index?: number | undefined;
129
- type: ListDatasetDatapointsType;
130
- function: ListDatasetDatapointsFunction;
131
- };
132
-
133
- export type ListDatasetDatapointsMessages = {
134
- /**
135
- * The role of the prompt message
136
- */
137
- role: ListDatasetDatapointsRole;
138
- /**
139
- * 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.
140
- */
141
- content: string | Array<ListDatasetDatapoints21 | ListDatasetDatapoints22>;
142
- toolCalls?: Array<ListDatasetDatapointsToolCalls> | undefined;
143
- toolCallId?: string | undefined;
144
- };
145
-
146
- export type ListDatasetDatapointsData = {
147
- /**
148
- * The unique identifier of the dataset item
149
- */
150
- id: string;
151
- /**
152
- * The unique identifier of the workspace it belongs to
153
- */
154
- workspaceId: string;
155
- /**
156
- * 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.
157
- */
158
- inputs?: { [k: string]: any } | undefined;
159
- /**
160
- * The prompt template messages
161
- */
162
- messages?: Array<ListDatasetDatapointsMessages> | undefined;
163
- expectedOutput?: string | undefined;
164
- /**
165
- * The unique identifier of the dataset
166
- */
167
- datasetId: string;
168
- /**
169
- * The unique identifier of the user who created the dataset
170
- */
171
- createdById?: string | undefined;
172
- /**
173
- * The unique identifier of the user who last updated the dataset
174
- */
175
- updatedById?: string | undefined;
176
- /**
177
- * The date and time the resource was created
178
- */
179
- created?: Date | undefined;
180
- /**
181
- * The date and time the resource was last updated
182
- */
183
- updated?: Date | undefined;
184
- };
185
-
186
- /**
187
- * Datapoints retrieved successfully. Returns a paginated list of datapoints.
188
- */
189
- export type ListDatasetDatapointsResponseBody = {
190
- object: ListDatasetDatapointsObject;
191
- data: Array<ListDatasetDatapointsData>;
192
- hasMore: boolean;
193
- };
194
-
195
- /** @internal */
196
- export const ListDatasetDatapointsRequest$inboundSchema: z.ZodType<
197
- ListDatasetDatapointsRequest,
198
- z.ZodTypeDef,
199
- unknown
200
- > = z.object({
201
- dataset_id: z.string(),
202
- limit: z.number().default(10),
203
- starting_after: z.string().optional(),
204
- ending_before: z.string().optional(),
205
- }).transform((v) => {
206
- return remap$(v, {
207
- "dataset_id": "datasetId",
208
- "starting_after": "startingAfter",
209
- "ending_before": "endingBefore",
210
- });
211
- });
212
-
213
- /** @internal */
214
- export type ListDatasetDatapointsRequest$Outbound = {
215
- dataset_id: string;
216
- limit: number;
217
- starting_after?: string | undefined;
218
- ending_before?: string | undefined;
219
- };
220
-
221
- /** @internal */
222
- export const ListDatasetDatapointsRequest$outboundSchema: z.ZodType<
223
- ListDatasetDatapointsRequest$Outbound,
224
- z.ZodTypeDef,
225
- ListDatasetDatapointsRequest
226
- > = z.object({
227
- datasetId: z.string(),
228
- limit: z.number().default(10),
229
- startingAfter: z.string().optional(),
230
- endingBefore: z.string().optional(),
231
- }).transform((v) => {
232
- return remap$(v, {
233
- datasetId: "dataset_id",
234
- startingAfter: "starting_after",
235
- endingBefore: "ending_before",
236
- });
237
- });
238
-
239
- /**
240
- * @internal
241
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
242
- */
243
- export namespace ListDatasetDatapointsRequest$ {
244
- /** @deprecated use `ListDatasetDatapointsRequest$inboundSchema` instead. */
245
- export const inboundSchema = ListDatasetDatapointsRequest$inboundSchema;
246
- /** @deprecated use `ListDatasetDatapointsRequest$outboundSchema` instead. */
247
- export const outboundSchema = ListDatasetDatapointsRequest$outboundSchema;
248
- /** @deprecated use `ListDatasetDatapointsRequest$Outbound` instead. */
249
- export type Outbound = ListDatasetDatapointsRequest$Outbound;
250
- }
251
-
252
- export function listDatasetDatapointsRequestToJSON(
253
- listDatasetDatapointsRequest: ListDatasetDatapointsRequest,
254
- ): string {
255
- return JSON.stringify(
256
- ListDatasetDatapointsRequest$outboundSchema.parse(
257
- listDatasetDatapointsRequest,
258
- ),
259
- );
260
- }
261
-
262
- export function listDatasetDatapointsRequestFromJSON(
263
- jsonString: string,
264
- ): SafeParseResult<ListDatasetDatapointsRequest, SDKValidationError> {
265
- return safeParse(
266
- jsonString,
267
- (x) => ListDatasetDatapointsRequest$inboundSchema.parse(JSON.parse(x)),
268
- `Failed to parse 'ListDatasetDatapointsRequest' from JSON`,
269
- );
270
- }
271
-
272
- /** @internal */
273
- export const ListDatasetDatapointsObject$inboundSchema: z.ZodNativeEnum<
274
- typeof ListDatasetDatapointsObject
275
- > = z.nativeEnum(ListDatasetDatapointsObject);
276
-
277
- /** @internal */
278
- export const ListDatasetDatapointsObject$outboundSchema: z.ZodNativeEnum<
279
- typeof ListDatasetDatapointsObject
280
- > = ListDatasetDatapointsObject$inboundSchema;
281
-
282
- /**
283
- * @internal
284
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
285
- */
286
- export namespace ListDatasetDatapointsObject$ {
287
- /** @deprecated use `ListDatasetDatapointsObject$inboundSchema` instead. */
288
- export const inboundSchema = ListDatasetDatapointsObject$inboundSchema;
289
- /** @deprecated use `ListDatasetDatapointsObject$outboundSchema` instead. */
290
- export const outboundSchema = ListDatasetDatapointsObject$outboundSchema;
291
- }
292
-
293
- /** @internal */
294
- export const ListDatasetDatapointsRole$inboundSchema: z.ZodNativeEnum<
295
- typeof ListDatasetDatapointsRole
296
- > = z.nativeEnum(ListDatasetDatapointsRole);
297
-
298
- /** @internal */
299
- export const ListDatasetDatapointsRole$outboundSchema: z.ZodNativeEnum<
300
- typeof ListDatasetDatapointsRole
301
- > = ListDatasetDatapointsRole$inboundSchema;
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 ListDatasetDatapointsRole$ {
308
- /** @deprecated use `ListDatasetDatapointsRole$inboundSchema` instead. */
309
- export const inboundSchema = ListDatasetDatapointsRole$inboundSchema;
310
- /** @deprecated use `ListDatasetDatapointsRole$outboundSchema` instead. */
311
- export const outboundSchema = ListDatasetDatapointsRole$outboundSchema;
312
- }
313
-
314
- /** @internal */
315
- export const ListDatasetDatapoints2DatasetsType$inboundSchema: z.ZodNativeEnum<
316
- typeof ListDatasetDatapoints2DatasetsType
317
- > = z.nativeEnum(ListDatasetDatapoints2DatasetsType);
318
-
319
- /** @internal */
320
- export const ListDatasetDatapoints2DatasetsType$outboundSchema: z.ZodNativeEnum<
321
- typeof ListDatasetDatapoints2DatasetsType
322
- > = ListDatasetDatapoints2DatasetsType$inboundSchema;
323
-
324
- /**
325
- * @internal
326
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
327
- */
328
- export namespace ListDatasetDatapoints2DatasetsType$ {
329
- /** @deprecated use `ListDatasetDatapoints2DatasetsType$inboundSchema` instead. */
330
- export const inboundSchema = ListDatasetDatapoints2DatasetsType$inboundSchema;
331
- /** @deprecated use `ListDatasetDatapoints2DatasetsType$outboundSchema` instead. */
332
- export const outboundSchema =
333
- ListDatasetDatapoints2DatasetsType$outboundSchema;
334
- }
335
-
336
- /** @internal */
337
- export const ListDatasetDatapoints2ImageUrl$inboundSchema: z.ZodType<
338
- ListDatasetDatapoints2ImageUrl,
339
- z.ZodTypeDef,
340
- unknown
341
- > = z.object({
342
- id: z.string().optional(),
343
- url: z.string(),
344
- detail: z.string().optional(),
345
- });
346
-
347
- /** @internal */
348
- export type ListDatasetDatapoints2ImageUrl$Outbound = {
349
- id?: string | undefined;
350
- url: string;
351
- detail?: string | undefined;
352
- };
353
-
354
- /** @internal */
355
- export const ListDatasetDatapoints2ImageUrl$outboundSchema: z.ZodType<
356
- ListDatasetDatapoints2ImageUrl$Outbound,
357
- z.ZodTypeDef,
358
- ListDatasetDatapoints2ImageUrl
359
- > = z.object({
360
- id: z.string().optional(),
361
- url: z.string(),
362
- detail: z.string().optional(),
363
- });
364
-
365
- /**
366
- * @internal
367
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
368
- */
369
- export namespace ListDatasetDatapoints2ImageUrl$ {
370
- /** @deprecated use `ListDatasetDatapoints2ImageUrl$inboundSchema` instead. */
371
- export const inboundSchema = ListDatasetDatapoints2ImageUrl$inboundSchema;
372
- /** @deprecated use `ListDatasetDatapoints2ImageUrl$outboundSchema` instead. */
373
- export const outboundSchema = ListDatasetDatapoints2ImageUrl$outboundSchema;
374
- /** @deprecated use `ListDatasetDatapoints2ImageUrl$Outbound` instead. */
375
- export type Outbound = ListDatasetDatapoints2ImageUrl$Outbound;
376
- }
377
-
378
- export function listDatasetDatapoints2ImageUrlToJSON(
379
- listDatasetDatapoints2ImageUrl: ListDatasetDatapoints2ImageUrl,
380
- ): string {
381
- return JSON.stringify(
382
- ListDatasetDatapoints2ImageUrl$outboundSchema.parse(
383
- listDatasetDatapoints2ImageUrl,
384
- ),
385
- );
386
- }
387
-
388
- export function listDatasetDatapoints2ImageUrlFromJSON(
389
- jsonString: string,
390
- ): SafeParseResult<ListDatasetDatapoints2ImageUrl, SDKValidationError> {
391
- return safeParse(
392
- jsonString,
393
- (x) => ListDatasetDatapoints2ImageUrl$inboundSchema.parse(JSON.parse(x)),
394
- `Failed to parse 'ListDatasetDatapoints2ImageUrl' from JSON`,
395
- );
396
- }
397
-
398
- /** @internal */
399
- export const ListDatasetDatapoints22$inboundSchema: z.ZodType<
400
- ListDatasetDatapoints22,
401
- z.ZodTypeDef,
402
- unknown
403
- > = z.object({
404
- type: ListDatasetDatapoints2DatasetsType$inboundSchema,
405
- image_url: z.lazy(() => ListDatasetDatapoints2ImageUrl$inboundSchema),
406
- }).transform((v) => {
407
- return remap$(v, {
408
- "image_url": "imageUrl",
409
- });
410
- });
411
-
412
- /** @internal */
413
- export type ListDatasetDatapoints22$Outbound = {
414
- type: string;
415
- image_url: ListDatasetDatapoints2ImageUrl$Outbound;
416
- };
417
-
418
- /** @internal */
419
- export const ListDatasetDatapoints22$outboundSchema: z.ZodType<
420
- ListDatasetDatapoints22$Outbound,
421
- z.ZodTypeDef,
422
- ListDatasetDatapoints22
423
- > = z.object({
424
- type: ListDatasetDatapoints2DatasetsType$outboundSchema,
425
- imageUrl: z.lazy(() => ListDatasetDatapoints2ImageUrl$outboundSchema),
426
- }).transform((v) => {
427
- return remap$(v, {
428
- imageUrl: "image_url",
429
- });
430
- });
431
-
432
- /**
433
- * @internal
434
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
435
- */
436
- export namespace ListDatasetDatapoints22$ {
437
- /** @deprecated use `ListDatasetDatapoints22$inboundSchema` instead. */
438
- export const inboundSchema = ListDatasetDatapoints22$inboundSchema;
439
- /** @deprecated use `ListDatasetDatapoints22$outboundSchema` instead. */
440
- export const outboundSchema = ListDatasetDatapoints22$outboundSchema;
441
- /** @deprecated use `ListDatasetDatapoints22$Outbound` instead. */
442
- export type Outbound = ListDatasetDatapoints22$Outbound;
443
- }
444
-
445
- export function listDatasetDatapoints22ToJSON(
446
- listDatasetDatapoints22: ListDatasetDatapoints22,
447
- ): string {
448
- return JSON.stringify(
449
- ListDatasetDatapoints22$outboundSchema.parse(listDatasetDatapoints22),
450
- );
451
- }
452
-
453
- export function listDatasetDatapoints22FromJSON(
454
- jsonString: string,
455
- ): SafeParseResult<ListDatasetDatapoints22, SDKValidationError> {
456
- return safeParse(
457
- jsonString,
458
- (x) => ListDatasetDatapoints22$inboundSchema.parse(JSON.parse(x)),
459
- `Failed to parse 'ListDatasetDatapoints22' from JSON`,
460
- );
461
- }
462
-
463
- /** @internal */
464
- export const ListDatasetDatapoints2Type$inboundSchema: z.ZodNativeEnum<
465
- typeof ListDatasetDatapoints2Type
466
- > = z.nativeEnum(ListDatasetDatapoints2Type);
467
-
468
- /** @internal */
469
- export const ListDatasetDatapoints2Type$outboundSchema: z.ZodNativeEnum<
470
- typeof ListDatasetDatapoints2Type
471
- > = ListDatasetDatapoints2Type$inboundSchema;
472
-
473
- /**
474
- * @internal
475
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
476
- */
477
- export namespace ListDatasetDatapoints2Type$ {
478
- /** @deprecated use `ListDatasetDatapoints2Type$inboundSchema` instead. */
479
- export const inboundSchema = ListDatasetDatapoints2Type$inboundSchema;
480
- /** @deprecated use `ListDatasetDatapoints2Type$outboundSchema` instead. */
481
- export const outboundSchema = ListDatasetDatapoints2Type$outboundSchema;
482
- }
483
-
484
- /** @internal */
485
- export const ListDatasetDatapoints21$inboundSchema: z.ZodType<
486
- ListDatasetDatapoints21,
487
- z.ZodTypeDef,
488
- unknown
489
- > = z.object({
490
- type: ListDatasetDatapoints2Type$inboundSchema,
491
- text: z.string(),
492
- });
493
-
494
- /** @internal */
495
- export type ListDatasetDatapoints21$Outbound = {
496
- type: string;
497
- text: string;
498
- };
499
-
500
- /** @internal */
501
- export const ListDatasetDatapoints21$outboundSchema: z.ZodType<
502
- ListDatasetDatapoints21$Outbound,
503
- z.ZodTypeDef,
504
- ListDatasetDatapoints21
505
- > = z.object({
506
- type: ListDatasetDatapoints2Type$outboundSchema,
507
- text: z.string(),
508
- });
509
-
510
- /**
511
- * @internal
512
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
513
- */
514
- export namespace ListDatasetDatapoints21$ {
515
- /** @deprecated use `ListDatasetDatapoints21$inboundSchema` instead. */
516
- export const inboundSchema = ListDatasetDatapoints21$inboundSchema;
517
- /** @deprecated use `ListDatasetDatapoints21$outboundSchema` instead. */
518
- export const outboundSchema = ListDatasetDatapoints21$outboundSchema;
519
- /** @deprecated use `ListDatasetDatapoints21$Outbound` instead. */
520
- export type Outbound = ListDatasetDatapoints21$Outbound;
521
- }
522
-
523
- export function listDatasetDatapoints21ToJSON(
524
- listDatasetDatapoints21: ListDatasetDatapoints21,
525
- ): string {
526
- return JSON.stringify(
527
- ListDatasetDatapoints21$outboundSchema.parse(listDatasetDatapoints21),
528
- );
529
- }
530
-
531
- export function listDatasetDatapoints21FromJSON(
532
- jsonString: string,
533
- ): SafeParseResult<ListDatasetDatapoints21, SDKValidationError> {
534
- return safeParse(
535
- jsonString,
536
- (x) => ListDatasetDatapoints21$inboundSchema.parse(JSON.parse(x)),
537
- `Failed to parse 'ListDatasetDatapoints21' from JSON`,
538
- );
539
- }
540
-
541
- /** @internal */
542
- export const ListDatasetDatapointsContent2$inboundSchema: z.ZodType<
543
- ListDatasetDatapointsContent2,
544
- z.ZodTypeDef,
545
- unknown
546
- > = z.union([
547
- z.lazy(() => ListDatasetDatapoints21$inboundSchema),
548
- z.lazy(() => ListDatasetDatapoints22$inboundSchema),
549
- ]);
550
-
551
- /** @internal */
552
- export type ListDatasetDatapointsContent2$Outbound =
553
- | ListDatasetDatapoints21$Outbound
554
- | ListDatasetDatapoints22$Outbound;
555
-
556
- /** @internal */
557
- export const ListDatasetDatapointsContent2$outboundSchema: z.ZodType<
558
- ListDatasetDatapointsContent2$Outbound,
559
- z.ZodTypeDef,
560
- ListDatasetDatapointsContent2
561
- > = z.union([
562
- z.lazy(() => ListDatasetDatapoints21$outboundSchema),
563
- z.lazy(() => ListDatasetDatapoints22$outboundSchema),
564
- ]);
565
-
566
- /**
567
- * @internal
568
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
569
- */
570
- export namespace ListDatasetDatapointsContent2$ {
571
- /** @deprecated use `ListDatasetDatapointsContent2$inboundSchema` instead. */
572
- export const inboundSchema = ListDatasetDatapointsContent2$inboundSchema;
573
- /** @deprecated use `ListDatasetDatapointsContent2$outboundSchema` instead. */
574
- export const outboundSchema = ListDatasetDatapointsContent2$outboundSchema;
575
- /** @deprecated use `ListDatasetDatapointsContent2$Outbound` instead. */
576
- export type Outbound = ListDatasetDatapointsContent2$Outbound;
577
- }
578
-
579
- export function listDatasetDatapointsContent2ToJSON(
580
- listDatasetDatapointsContent2: ListDatasetDatapointsContent2,
581
- ): string {
582
- return JSON.stringify(
583
- ListDatasetDatapointsContent2$outboundSchema.parse(
584
- listDatasetDatapointsContent2,
585
- ),
586
- );
587
- }
588
-
589
- export function listDatasetDatapointsContent2FromJSON(
590
- jsonString: string,
591
- ): SafeParseResult<ListDatasetDatapointsContent2, SDKValidationError> {
592
- return safeParse(
593
- jsonString,
594
- (x) => ListDatasetDatapointsContent2$inboundSchema.parse(JSON.parse(x)),
595
- `Failed to parse 'ListDatasetDatapointsContent2' from JSON`,
596
- );
597
- }
598
-
599
- /** @internal */
600
- export const ListDatasetDatapointsContent$inboundSchema: z.ZodType<
601
- ListDatasetDatapointsContent,
602
- z.ZodTypeDef,
603
- unknown
604
- > = z.union([
605
- z.string(),
606
- z.array(z.union([
607
- z.lazy(() => ListDatasetDatapoints21$inboundSchema),
608
- z.lazy(() => ListDatasetDatapoints22$inboundSchema),
609
- ])),
610
- ]);
611
-
612
- /** @internal */
613
- export type ListDatasetDatapointsContent$Outbound =
614
- | string
615
- | Array<ListDatasetDatapoints21$Outbound | ListDatasetDatapoints22$Outbound>;
616
-
617
- /** @internal */
618
- export const ListDatasetDatapointsContent$outboundSchema: z.ZodType<
619
- ListDatasetDatapointsContent$Outbound,
620
- z.ZodTypeDef,
621
- ListDatasetDatapointsContent
622
- > = z.union([
623
- z.string(),
624
- z.array(z.union([
625
- z.lazy(() => ListDatasetDatapoints21$outboundSchema),
626
- z.lazy(() => ListDatasetDatapoints22$outboundSchema),
627
- ])),
628
- ]);
629
-
630
- /**
631
- * @internal
632
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
633
- */
634
- export namespace ListDatasetDatapointsContent$ {
635
- /** @deprecated use `ListDatasetDatapointsContent$inboundSchema` instead. */
636
- export const inboundSchema = ListDatasetDatapointsContent$inboundSchema;
637
- /** @deprecated use `ListDatasetDatapointsContent$outboundSchema` instead. */
638
- export const outboundSchema = ListDatasetDatapointsContent$outboundSchema;
639
- /** @deprecated use `ListDatasetDatapointsContent$Outbound` instead. */
640
- export type Outbound = ListDatasetDatapointsContent$Outbound;
641
- }
642
-
643
- export function listDatasetDatapointsContentToJSON(
644
- listDatasetDatapointsContent: ListDatasetDatapointsContent,
645
- ): string {
646
- return JSON.stringify(
647
- ListDatasetDatapointsContent$outboundSchema.parse(
648
- listDatasetDatapointsContent,
649
- ),
650
- );
651
- }
652
-
653
- export function listDatasetDatapointsContentFromJSON(
654
- jsonString: string,
655
- ): SafeParseResult<ListDatasetDatapointsContent, SDKValidationError> {
656
- return safeParse(
657
- jsonString,
658
- (x) => ListDatasetDatapointsContent$inboundSchema.parse(JSON.parse(x)),
659
- `Failed to parse 'ListDatasetDatapointsContent' from JSON`,
660
- );
661
- }
662
-
663
- /** @internal */
664
- export const ListDatasetDatapointsType$inboundSchema: z.ZodNativeEnum<
665
- typeof ListDatasetDatapointsType
666
- > = z.nativeEnum(ListDatasetDatapointsType);
667
-
668
- /** @internal */
669
- export const ListDatasetDatapointsType$outboundSchema: z.ZodNativeEnum<
670
- typeof ListDatasetDatapointsType
671
- > = ListDatasetDatapointsType$inboundSchema;
672
-
673
- /**
674
- * @internal
675
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
676
- */
677
- export namespace ListDatasetDatapointsType$ {
678
- /** @deprecated use `ListDatasetDatapointsType$inboundSchema` instead. */
679
- export const inboundSchema = ListDatasetDatapointsType$inboundSchema;
680
- /** @deprecated use `ListDatasetDatapointsType$outboundSchema` instead. */
681
- export const outboundSchema = ListDatasetDatapointsType$outboundSchema;
682
- }
683
-
684
- /** @internal */
685
- export const ListDatasetDatapointsFunction$inboundSchema: z.ZodType<
686
- ListDatasetDatapointsFunction,
687
- z.ZodTypeDef,
688
- unknown
689
- > = z.object({
690
- name: z.string(),
691
- arguments: z.string(),
692
- });
693
-
694
- /** @internal */
695
- export type ListDatasetDatapointsFunction$Outbound = {
696
- name: string;
697
- arguments: string;
698
- };
699
-
700
- /** @internal */
701
- export const ListDatasetDatapointsFunction$outboundSchema: z.ZodType<
702
- ListDatasetDatapointsFunction$Outbound,
703
- z.ZodTypeDef,
704
- ListDatasetDatapointsFunction
705
- > = z.object({
706
- name: z.string(),
707
- arguments: z.string(),
708
- });
709
-
710
- /**
711
- * @internal
712
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
713
- */
714
- export namespace ListDatasetDatapointsFunction$ {
715
- /** @deprecated use `ListDatasetDatapointsFunction$inboundSchema` instead. */
716
- export const inboundSchema = ListDatasetDatapointsFunction$inboundSchema;
717
- /** @deprecated use `ListDatasetDatapointsFunction$outboundSchema` instead. */
718
- export const outboundSchema = ListDatasetDatapointsFunction$outboundSchema;
719
- /** @deprecated use `ListDatasetDatapointsFunction$Outbound` instead. */
720
- export type Outbound = ListDatasetDatapointsFunction$Outbound;
721
- }
722
-
723
- export function listDatasetDatapointsFunctionToJSON(
724
- listDatasetDatapointsFunction: ListDatasetDatapointsFunction,
725
- ): string {
726
- return JSON.stringify(
727
- ListDatasetDatapointsFunction$outboundSchema.parse(
728
- listDatasetDatapointsFunction,
729
- ),
730
- );
731
- }
732
-
733
- export function listDatasetDatapointsFunctionFromJSON(
734
- jsonString: string,
735
- ): SafeParseResult<ListDatasetDatapointsFunction, SDKValidationError> {
736
- return safeParse(
737
- jsonString,
738
- (x) => ListDatasetDatapointsFunction$inboundSchema.parse(JSON.parse(x)),
739
- `Failed to parse 'ListDatasetDatapointsFunction' from JSON`,
740
- );
741
- }
742
-
743
- /** @internal */
744
- export const ListDatasetDatapointsToolCalls$inboundSchema: z.ZodType<
745
- ListDatasetDatapointsToolCalls,
746
- z.ZodTypeDef,
747
- unknown
748
- > = z.object({
749
- id: z.string().optional(),
750
- index: z.number().optional(),
751
- type: ListDatasetDatapointsType$inboundSchema,
752
- function: z.lazy(() => ListDatasetDatapointsFunction$inboundSchema),
753
- });
754
-
755
- /** @internal */
756
- export type ListDatasetDatapointsToolCalls$Outbound = {
757
- id?: string | undefined;
758
- index?: number | undefined;
759
- type: string;
760
- function: ListDatasetDatapointsFunction$Outbound;
761
- };
762
-
763
- /** @internal */
764
- export const ListDatasetDatapointsToolCalls$outboundSchema: z.ZodType<
765
- ListDatasetDatapointsToolCalls$Outbound,
766
- z.ZodTypeDef,
767
- ListDatasetDatapointsToolCalls
768
- > = z.object({
769
- id: z.string().optional(),
770
- index: z.number().optional(),
771
- type: ListDatasetDatapointsType$outboundSchema,
772
- function: z.lazy(() => ListDatasetDatapointsFunction$outboundSchema),
773
- });
774
-
775
- /**
776
- * @internal
777
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
778
- */
779
- export namespace ListDatasetDatapointsToolCalls$ {
780
- /** @deprecated use `ListDatasetDatapointsToolCalls$inboundSchema` instead. */
781
- export const inboundSchema = ListDatasetDatapointsToolCalls$inboundSchema;
782
- /** @deprecated use `ListDatasetDatapointsToolCalls$outboundSchema` instead. */
783
- export const outboundSchema = ListDatasetDatapointsToolCalls$outboundSchema;
784
- /** @deprecated use `ListDatasetDatapointsToolCalls$Outbound` instead. */
785
- export type Outbound = ListDatasetDatapointsToolCalls$Outbound;
786
- }
787
-
788
- export function listDatasetDatapointsToolCallsToJSON(
789
- listDatasetDatapointsToolCalls: ListDatasetDatapointsToolCalls,
790
- ): string {
791
- return JSON.stringify(
792
- ListDatasetDatapointsToolCalls$outboundSchema.parse(
793
- listDatasetDatapointsToolCalls,
794
- ),
795
- );
796
- }
797
-
798
- export function listDatasetDatapointsToolCallsFromJSON(
799
- jsonString: string,
800
- ): SafeParseResult<ListDatasetDatapointsToolCalls, SDKValidationError> {
801
- return safeParse(
802
- jsonString,
803
- (x) => ListDatasetDatapointsToolCalls$inboundSchema.parse(JSON.parse(x)),
804
- `Failed to parse 'ListDatasetDatapointsToolCalls' from JSON`,
805
- );
806
- }
807
-
808
- /** @internal */
809
- export const ListDatasetDatapointsMessages$inboundSchema: z.ZodType<
810
- ListDatasetDatapointsMessages,
811
- z.ZodTypeDef,
812
- unknown
813
- > = z.object({
814
- role: ListDatasetDatapointsRole$inboundSchema,
815
- content: z.union([
816
- z.string(),
817
- z.array(z.union([
818
- z.lazy(() => ListDatasetDatapoints21$inboundSchema),
819
- z.lazy(() => ListDatasetDatapoints22$inboundSchema),
820
- ])),
821
- ]),
822
- tool_calls: z.array(
823
- z.lazy(() => ListDatasetDatapointsToolCalls$inboundSchema),
824
- ).optional(),
825
- tool_call_id: z.string().optional(),
826
- }).transform((v) => {
827
- return remap$(v, {
828
- "tool_calls": "toolCalls",
829
- "tool_call_id": "toolCallId",
830
- });
831
- });
832
-
833
- /** @internal */
834
- export type ListDatasetDatapointsMessages$Outbound = {
835
- role: string;
836
- content:
837
- | string
838
- | Array<
839
- ListDatasetDatapoints21$Outbound | ListDatasetDatapoints22$Outbound
840
- >;
841
- tool_calls?: Array<ListDatasetDatapointsToolCalls$Outbound> | undefined;
842
- tool_call_id?: string | undefined;
843
- };
844
-
845
- /** @internal */
846
- export const ListDatasetDatapointsMessages$outboundSchema: z.ZodType<
847
- ListDatasetDatapointsMessages$Outbound,
848
- z.ZodTypeDef,
849
- ListDatasetDatapointsMessages
850
- > = z.object({
851
- role: ListDatasetDatapointsRole$outboundSchema,
852
- content: z.union([
853
- z.string(),
854
- z.array(z.union([
855
- z.lazy(() => ListDatasetDatapoints21$outboundSchema),
856
- z.lazy(() => ListDatasetDatapoints22$outboundSchema),
857
- ])),
858
- ]),
859
- toolCalls: z.array(
860
- z.lazy(() => ListDatasetDatapointsToolCalls$outboundSchema),
861
- ).optional(),
862
- toolCallId: z.string().optional(),
863
- }).transform((v) => {
864
- return remap$(v, {
865
- toolCalls: "tool_calls",
866
- toolCallId: "tool_call_id",
867
- });
868
- });
869
-
870
- /**
871
- * @internal
872
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
873
- */
874
- export namespace ListDatasetDatapointsMessages$ {
875
- /** @deprecated use `ListDatasetDatapointsMessages$inboundSchema` instead. */
876
- export const inboundSchema = ListDatasetDatapointsMessages$inboundSchema;
877
- /** @deprecated use `ListDatasetDatapointsMessages$outboundSchema` instead. */
878
- export const outboundSchema = ListDatasetDatapointsMessages$outboundSchema;
879
- /** @deprecated use `ListDatasetDatapointsMessages$Outbound` instead. */
880
- export type Outbound = ListDatasetDatapointsMessages$Outbound;
881
- }
882
-
883
- export function listDatasetDatapointsMessagesToJSON(
884
- listDatasetDatapointsMessages: ListDatasetDatapointsMessages,
885
- ): string {
886
- return JSON.stringify(
887
- ListDatasetDatapointsMessages$outboundSchema.parse(
888
- listDatasetDatapointsMessages,
889
- ),
890
- );
891
- }
892
-
893
- export function listDatasetDatapointsMessagesFromJSON(
894
- jsonString: string,
895
- ): SafeParseResult<ListDatasetDatapointsMessages, SDKValidationError> {
896
- return safeParse(
897
- jsonString,
898
- (x) => ListDatasetDatapointsMessages$inboundSchema.parse(JSON.parse(x)),
899
- `Failed to parse 'ListDatasetDatapointsMessages' from JSON`,
900
- );
901
- }
902
-
903
- /** @internal */
904
- export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
905
- ListDatasetDatapointsData,
906
- z.ZodTypeDef,
907
- unknown
908
- > = z.object({
909
- _id: z.string(),
910
- workspace_id: z.string(),
911
- inputs: z.record(z.any()).optional(),
912
- messages: z.array(z.lazy(() => ListDatasetDatapointsMessages$inboundSchema))
913
- .optional(),
914
- expected_output: z.string().optional(),
915
- dataset_id: z.string(),
916
- created_by_id: z.string().optional(),
917
- updated_by_id: z.string().optional(),
918
- created: z.string().datetime({ offset: true }).transform(v => new Date(v))
919
- .optional(),
920
- updated: z.string().datetime({ offset: true }).default(
921
- "2025-05-18T21:00:21.233Z",
922
- ).transform(v => new Date(v)),
923
- }).transform((v) => {
924
- return remap$(v, {
925
- "_id": "id",
926
- "workspace_id": "workspaceId",
927
- "expected_output": "expectedOutput",
928
- "dataset_id": "datasetId",
929
- "created_by_id": "createdById",
930
- "updated_by_id": "updatedById",
931
- });
932
- });
933
-
934
- /** @internal */
935
- export type ListDatasetDatapointsData$Outbound = {
936
- _id: string;
937
- workspace_id: string;
938
- inputs?: { [k: string]: any } | undefined;
939
- messages?: Array<ListDatasetDatapointsMessages$Outbound> | undefined;
940
- expected_output?: string | undefined;
941
- dataset_id: string;
942
- created_by_id?: string | undefined;
943
- updated_by_id?: string | undefined;
944
- created?: string | undefined;
945
- updated: string;
946
- };
947
-
948
- /** @internal */
949
- export const ListDatasetDatapointsData$outboundSchema: z.ZodType<
950
- ListDatasetDatapointsData$Outbound,
951
- z.ZodTypeDef,
952
- ListDatasetDatapointsData
953
- > = z.object({
954
- id: z.string(),
955
- workspaceId: z.string(),
956
- inputs: z.record(z.any()).optional(),
957
- messages: z.array(z.lazy(() => ListDatasetDatapointsMessages$outboundSchema))
958
- .optional(),
959
- expectedOutput: z.string().optional(),
960
- datasetId: z.string(),
961
- createdById: z.string().optional(),
962
- updatedById: z.string().optional(),
963
- created: z.date().transform(v => v.toISOString()).optional(),
964
- updated: z.date().default(() => new Date("2025-05-18T21:00:21.233Z"))
965
- .transform(v => v.toISOString()),
966
- }).transform((v) => {
967
- return remap$(v, {
968
- id: "_id",
969
- workspaceId: "workspace_id",
970
- expectedOutput: "expected_output",
971
- datasetId: "dataset_id",
972
- createdById: "created_by_id",
973
- updatedById: "updated_by_id",
974
- });
975
- });
976
-
977
- /**
978
- * @internal
979
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
980
- */
981
- export namespace ListDatasetDatapointsData$ {
982
- /** @deprecated use `ListDatasetDatapointsData$inboundSchema` instead. */
983
- export const inboundSchema = ListDatasetDatapointsData$inboundSchema;
984
- /** @deprecated use `ListDatasetDatapointsData$outboundSchema` instead. */
985
- export const outboundSchema = ListDatasetDatapointsData$outboundSchema;
986
- /** @deprecated use `ListDatasetDatapointsData$Outbound` instead. */
987
- export type Outbound = ListDatasetDatapointsData$Outbound;
988
- }
989
-
990
- export function listDatasetDatapointsDataToJSON(
991
- listDatasetDatapointsData: ListDatasetDatapointsData,
992
- ): string {
993
- return JSON.stringify(
994
- ListDatasetDatapointsData$outboundSchema.parse(listDatasetDatapointsData),
995
- );
996
- }
997
-
998
- export function listDatasetDatapointsDataFromJSON(
999
- jsonString: string,
1000
- ): SafeParseResult<ListDatasetDatapointsData, SDKValidationError> {
1001
- return safeParse(
1002
- jsonString,
1003
- (x) => ListDatasetDatapointsData$inboundSchema.parse(JSON.parse(x)),
1004
- `Failed to parse 'ListDatasetDatapointsData' from JSON`,
1005
- );
1006
- }
1007
-
1008
- /** @internal */
1009
- export const ListDatasetDatapointsResponseBody$inboundSchema: z.ZodType<
1010
- ListDatasetDatapointsResponseBody,
1011
- z.ZodTypeDef,
1012
- unknown
1013
- > = z.object({
1014
- object: ListDatasetDatapointsObject$inboundSchema,
1015
- data: z.array(z.lazy(() => ListDatasetDatapointsData$inboundSchema)),
1016
- has_more: z.boolean(),
1017
- }).transform((v) => {
1018
- return remap$(v, {
1019
- "has_more": "hasMore",
1020
- });
1021
- });
1022
-
1023
- /** @internal */
1024
- export type ListDatasetDatapointsResponseBody$Outbound = {
1025
- object: string;
1026
- data: Array<ListDatasetDatapointsData$Outbound>;
1027
- has_more: boolean;
1028
- };
1029
-
1030
- /** @internal */
1031
- export const ListDatasetDatapointsResponseBody$outboundSchema: z.ZodType<
1032
- ListDatasetDatapointsResponseBody$Outbound,
1033
- z.ZodTypeDef,
1034
- ListDatasetDatapointsResponseBody
1035
- > = z.object({
1036
- object: ListDatasetDatapointsObject$outboundSchema,
1037
- data: z.array(z.lazy(() => ListDatasetDatapointsData$outboundSchema)),
1038
- hasMore: z.boolean(),
1039
- }).transform((v) => {
1040
- return remap$(v, {
1041
- hasMore: "has_more",
1042
- });
1043
- });
1044
-
1045
- /**
1046
- * @internal
1047
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1048
- */
1049
- export namespace ListDatasetDatapointsResponseBody$ {
1050
- /** @deprecated use `ListDatasetDatapointsResponseBody$inboundSchema` instead. */
1051
- export const inboundSchema = ListDatasetDatapointsResponseBody$inboundSchema;
1052
- /** @deprecated use `ListDatasetDatapointsResponseBody$outboundSchema` instead. */
1053
- export const outboundSchema =
1054
- ListDatasetDatapointsResponseBody$outboundSchema;
1055
- /** @deprecated use `ListDatasetDatapointsResponseBody$Outbound` instead. */
1056
- export type Outbound = ListDatasetDatapointsResponseBody$Outbound;
1057
- }
1058
-
1059
- export function listDatasetDatapointsResponseBodyToJSON(
1060
- listDatasetDatapointsResponseBody: ListDatasetDatapointsResponseBody,
1061
- ): string {
1062
- return JSON.stringify(
1063
- ListDatasetDatapointsResponseBody$outboundSchema.parse(
1064
- listDatasetDatapointsResponseBody,
1065
- ),
1066
- );
1067
- }
1068
-
1069
- export function listDatasetDatapointsResponseBodyFromJSON(
1070
- jsonString: string,
1071
- ): SafeParseResult<ListDatasetDatapointsResponseBody, SDKValidationError> {
1072
- return safeParse(
1073
- jsonString,
1074
- (x) => ListDatasetDatapointsResponseBody$inboundSchema.parse(JSON.parse(x)),
1075
- `Failed to parse 'ListDatasetDatapointsResponseBody' from JSON`,
1076
- );
1077
- }