@orq-ai/node 3.6.0 → 3.7.0-rc.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 (284) hide show
  1. package/bin/mcp-server.js +40 -43
  2. package/bin/mcp-server.js.map +24 -24
  3. package/jsr.json +1 -1
  4. package/lib/config.d.ts +2 -2
  5. package/lib/config.js +2 -2
  6. package/lib/config.js.map +1 -1
  7. package/mcp-server/mcp-server.js +1 -1
  8. package/mcp-server/mcp-server.js.map +1 -1
  9. package/mcp-server/server.js +1 -1
  10. package/mcp-server/server.js.map +1 -1
  11. package/models/operations/bulkcreatedatapoints.js +2 -2
  12. package/models/operations/createcontact.js +2 -2
  13. package/models/operations/createdataset.js +2 -2
  14. package/models/operations/createdatasetitem.js +2 -2
  15. package/models/operations/createdatasource.js +2 -2
  16. package/models/operations/fileget.js +2 -2
  17. package/models/operations/filelist.js +2 -2
  18. package/models/operations/fileupload.js +2 -2
  19. package/models/operations/listdatasetdatapoints.js +2 -2
  20. package/models/operations/listdatasets.js +2 -2
  21. package/models/operations/listdatasources.js +2 -2
  22. package/models/operations/retrievedatapoint.js +2 -2
  23. package/models/operations/retrievedataset.js +2 -2
  24. package/models/operations/retrievedatasource.js +2 -2
  25. package/models/operations/updatedatapoint.js +2 -2
  26. package/models/operations/updatedataset.js +2 -2
  27. package/models/operations/updatedatasource.js +2 -2
  28. package/package.json +3 -2
  29. package/src/lib/config.ts +2 -2
  30. package/src/mcp-server/mcp-server.ts +1 -1
  31. package/src/mcp-server/server.ts +1 -1
  32. package/src/models/operations/bulkcreatedatapoints.ts +2 -2
  33. package/src/models/operations/createcontact.ts +2 -2
  34. package/src/models/operations/createdataset.ts +2 -2
  35. package/src/models/operations/createdatasetitem.ts +2 -2
  36. package/src/models/operations/createdatasource.ts +2 -2
  37. package/src/models/operations/fileget.ts +2 -2
  38. package/src/models/operations/filelist.ts +2 -2
  39. package/src/models/operations/fileupload.ts +2 -2
  40. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  41. package/src/models/operations/listdatasets.ts +2 -2
  42. package/src/models/operations/listdatasources.ts +2 -2
  43. package/src/models/operations/retrievedatapoint.ts +2 -2
  44. package/src/models/operations/retrievedataset.ts +2 -2
  45. package/src/models/operations/retrievedatasource.ts +2 -2
  46. package/src/models/operations/updatedatapoint.ts +2 -2
  47. package/src/models/operations/updatedataset.ts +2 -2
  48. package/src/models/operations/updatedatasource.ts +2 -2
  49. package/packages/orq-rc/FUNCTIONS.md +0 -106
  50. package/packages/orq-rc/README.md +0 -707
  51. package/packages/orq-rc/RUNTIMES.md +0 -48
  52. package/packages/orq-rc/docs/sdks/contacts/README.md +0 -84
  53. package/packages/orq-rc/docs/sdks/datasets/README.md +0 -1027
  54. package/packages/orq-rc/docs/sdks/deployments/README.md +0 -405
  55. package/packages/orq-rc/docs/sdks/feedback/README.md +0 -92
  56. package/packages/orq-rc/docs/sdks/files/README.md +0 -311
  57. package/packages/orq-rc/docs/sdks/knowledge/README.md +0 -1285
  58. package/packages/orq-rc/docs/sdks/metrics/README.md +0 -86
  59. package/packages/orq-rc/docs/sdks/models/README.md +0 -79
  60. package/packages/orq-rc/docs/sdks/orq/README.md +0 -10
  61. package/packages/orq-rc/docs/sdks/prompts/README.md +0 -576
  62. package/packages/orq-rc/docs/sdks/remoteconfigs/README.md +0 -80
  63. package/packages/orq-rc/jsr.json +0 -28
  64. package/packages/orq-rc/package-lock.json +0 -3217
  65. package/packages/orq-rc/package.json +0 -45
  66. package/packages/orq-rc/src/core.ts +0 -13
  67. package/packages/orq-rc/src/funcs/contactsCreate.ts +0 -154
  68. package/packages/orq-rc/src/funcs/datasetsClear.ts +0 -161
  69. package/packages/orq-rc/src/funcs/datasetsCreate.ts +0 -159
  70. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +0 -161
  71. package/packages/orq-rc/src/funcs/datasetsCreateDatapoints.ts +0 -165
  72. package/packages/orq-rc/src/funcs/datasetsCreateExperiment.ts +0 -162
  73. package/packages/orq-rc/src/funcs/datasetsDelete.ts +0 -161
  74. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +0 -176
  75. package/packages/orq-rc/src/funcs/datasetsList.ts +0 -161
  76. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +0 -168
  77. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +0 -169
  78. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +0 -175
  79. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +0 -170
  80. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +0 -173
  81. package/packages/orq-rc/src/funcs/deploymentsCreateExperiment.ts +0 -167
  82. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +0 -162
  83. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +0 -170
  84. package/packages/orq-rc/src/funcs/deploymentsList.ts +0 -170
  85. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +0 -162
  86. package/packages/orq-rc/src/funcs/deploymentsStream.ts +0 -178
  87. package/packages/orq-rc/src/funcs/feedbackCreate.ts +0 -154
  88. package/packages/orq-rc/src/funcs/filesCreate.ts +0 -174
  89. package/packages/orq-rc/src/funcs/filesDelete.ts +0 -158
  90. package/packages/orq-rc/src/funcs/filesGet.ts +0 -160
  91. package/packages/orq-rc/src/funcs/filesList.ts +0 -161
  92. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +0 -152
  93. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +0 -165
  94. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +0 -160
  95. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +0 -161
  96. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +0 -168
  97. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +0 -167
  98. package/packages/orq-rc/src/funcs/knowledgeList.ts +0 -163
  99. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +0 -172
  100. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +0 -168
  101. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +0 -160
  102. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +0 -167
  103. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +0 -163
  104. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +0 -161
  105. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +0 -158
  106. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +0 -168
  107. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +0 -164
  108. package/packages/orq-rc/src/funcs/modelsList.ts +0 -136
  109. package/packages/orq-rc/src/funcs/promptsCreate.ts +0 -154
  110. package/packages/orq-rc/src/funcs/promptsDelete.ts +0 -158
  111. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +0 -175
  112. package/packages/orq-rc/src/funcs/promptsList.ts +0 -161
  113. package/packages/orq-rc/src/funcs/promptsListVersions.ts +0 -167
  114. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +0 -160
  115. package/packages/orq-rc/src/funcs/promptsUpdate.ts +0 -167
  116. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +0 -155
  117. package/packages/orq-rc/src/hooks/global.ts +0 -44
  118. package/packages/orq-rc/src/hooks/hooks.ts +0 -132
  119. package/packages/orq-rc/src/hooks/index.ts +0 -6
  120. package/packages/orq-rc/src/hooks/registration.ts +0 -15
  121. package/packages/orq-rc/src/hooks/types.ts +0 -110
  122. package/packages/orq-rc/src/index.ts +0 -7
  123. package/packages/orq-rc/src/lib/base64.ts +0 -37
  124. package/packages/orq-rc/src/lib/config.ts +0 -70
  125. package/packages/orq-rc/src/lib/dlv.ts +0 -53
  126. package/packages/orq-rc/src/lib/encodings.ts +0 -483
  127. package/packages/orq-rc/src/lib/env.ts +0 -73
  128. package/packages/orq-rc/src/lib/event-streams.ts +0 -264
  129. package/packages/orq-rc/src/lib/files.ts +0 -40
  130. package/packages/orq-rc/src/lib/http.ts +0 -323
  131. package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
  132. package/packages/orq-rc/src/lib/logger.ts +0 -9
  133. package/packages/orq-rc/src/lib/matchers.ts +0 -345
  134. package/packages/orq-rc/src/lib/primitives.ts +0 -150
  135. package/packages/orq-rc/src/lib/retries.ts +0 -218
  136. package/packages/orq-rc/src/lib/schemas.ts +0 -91
  137. package/packages/orq-rc/src/lib/sdks.ts +0 -401
  138. package/packages/orq-rc/src/lib/security.ts +0 -261
  139. package/packages/orq-rc/src/lib/url.ts +0 -33
  140. package/packages/orq-rc/src/mcp-server/cli/start/command.ts +0 -125
  141. package/packages/orq-rc/src/mcp-server/cli/start/impl.ts +0 -140
  142. package/packages/orq-rc/src/mcp-server/cli.ts +0 -13
  143. package/packages/orq-rc/src/mcp-server/console-logger.ts +0 -71
  144. package/packages/orq-rc/src/mcp-server/extensions.ts +0 -17
  145. package/packages/orq-rc/src/mcp-server/mcp-server.ts +0 -26
  146. package/packages/orq-rc/src/mcp-server/prompts.ts +0 -117
  147. package/packages/orq-rc/src/mcp-server/resources.ts +0 -172
  148. package/packages/orq-rc/src/mcp-server/scopes.ts +0 -7
  149. package/packages/orq-rc/src/mcp-server/server.ts +0 -163
  150. package/packages/orq-rc/src/mcp-server/shared.ts +0 -75
  151. package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +0 -37
  152. package/packages/orq-rc/src/mcp-server/tools/datasetsClear.ts +0 -35
  153. package/packages/orq-rc/src/mcp-server/tools/datasetsCreate.ts +0 -37
  154. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoint.ts +0 -37
  155. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoints.ts +0 -37
  156. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateExperiment.ts +0 -37
  157. package/packages/orq-rc/src/mcp-server/tools/datasetsDelete.ts +0 -35
  158. package/packages/orq-rc/src/mcp-server/tools/datasetsDeleteDatapoint.ts +0 -35
  159. package/packages/orq-rc/src/mcp-server/tools/datasetsList.ts +0 -37
  160. package/packages/orq-rc/src/mcp-server/tools/datasetsListDatapoints.ts +0 -37
  161. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieve.ts +0 -37
  162. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieveDatapoint.ts +0 -37
  163. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdate.ts +0 -37
  164. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdateDatapoint.ts +0 -35
  165. package/packages/orq-rc/src/mcp-server/tools/deploymentsCreateExperiment.ts +0 -37
  166. package/packages/orq-rc/src/mcp-server/tools/deploymentsGetConfig.ts +0 -37
  167. package/packages/orq-rc/src/mcp-server/tools/deploymentsInvoke.ts +0 -37
  168. package/packages/orq-rc/src/mcp-server/tools/deploymentsList.ts +0 -37
  169. package/packages/orq-rc/src/mcp-server/tools/deploymentsMetricsCreate.ts +0 -37
  170. package/packages/orq-rc/src/mcp-server/tools/deploymentsStream.ts +0 -37
  171. package/packages/orq-rc/src/mcp-server/tools/feedbackCreate.ts +0 -37
  172. package/packages/orq-rc/src/mcp-server/tools/filesCreate.ts +0 -37
  173. package/packages/orq-rc/src/mcp-server/tools/filesDelete.ts +0 -33
  174. package/packages/orq-rc/src/mcp-server/tools/filesGet.ts +0 -37
  175. package/packages/orq-rc/src/mcp-server/tools/filesList.ts +0 -37
  176. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreate.ts +0 -35
  177. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateChunks.ts +0 -35
  178. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateDatasource.ts +0 -35
  179. package/packages/orq-rc/src/mcp-server/tools/knowledgeDelete.ts +0 -35
  180. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunk.ts +0 -33
  181. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteDatasource.ts +0 -35
  182. package/packages/orq-rc/src/mcp-server/tools/knowledgeList.ts +0 -37
  183. package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunks.ts +0 -35
  184. package/packages/orq-rc/src/mcp-server/tools/knowledgeListDatasources.ts +0 -35
  185. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieve.ts +0 -37
  186. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveChunk.ts +0 -35
  187. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveDatasource.ts +0 -35
  188. package/packages/orq-rc/src/mcp-server/tools/knowledgeSearch.ts +0 -37
  189. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdate.ts +0 -35
  190. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateChunk.ts +0 -35
  191. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateDatasource.ts +0 -35
  192. package/packages/orq-rc/src/mcp-server/tools/modelsList.ts +0 -30
  193. package/packages/orq-rc/src/mcp-server/tools/promptsCreate.ts +0 -35
  194. package/packages/orq-rc/src/mcp-server/tools/promptsDelete.ts +0 -33
  195. package/packages/orq-rc/src/mcp-server/tools/promptsGetVersion.ts +0 -37
  196. package/packages/orq-rc/src/mcp-server/tools/promptsList.ts +0 -37
  197. package/packages/orq-rc/src/mcp-server/tools/promptsListVersions.ts +0 -37
  198. package/packages/orq-rc/src/mcp-server/tools/promptsRetrieve.ts +0 -37
  199. package/packages/orq-rc/src/mcp-server/tools/promptsUpdate.ts +0 -35
  200. package/packages/orq-rc/src/mcp-server/tools/remoteconfigsRetrieve.ts +0 -36
  201. package/packages/orq-rc/src/mcp-server/tools.ts +0 -129
  202. package/packages/orq-rc/src/models/components/deployments.ts +0 -7289
  203. package/packages/orq-rc/src/models/components/index.ts +0 -6
  204. package/packages/orq-rc/src/models/components/security.ts +0 -71
  205. package/packages/orq-rc/src/models/errors/apierror.ts +0 -27
  206. package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -71
  207. package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -82
  208. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
  209. package/packages/orq-rc/src/models/errors/index.ts +0 -10
  210. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -97
  211. package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -71
  212. package/packages/orq-rc/src/models/operations/bulkcreatedatapoints.ts +0 -2232
  213. package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -75
  214. package/packages/orq-rc/src/models/operations/createchunk.ts +0 -432
  215. package/packages/orq-rc/src/models/operations/createcontact.ts +0 -256
  216. package/packages/orq-rc/src/models/operations/createdataset.ts +0 -296
  217. package/packages/orq-rc/src/models/operations/createdatasetexperiment.ts +0 -307
  218. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +0 -2149
  219. package/packages/orq-rc/src/models/operations/createdatasource.ts +0 -852
  220. package/packages/orq-rc/src/models/operations/createdeploymentexperiment.ts +0 -321
  221. package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -286
  222. package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -846
  223. package/packages/orq-rc/src/models/operations/createprompt.ts +0 -4079
  224. package/packages/orq-rc/src/models/operations/deletechunk.ts +0 -96
  225. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -81
  226. package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -75
  227. package/packages/orq-rc/src/models/operations/deletedatasource.ts +0 -87
  228. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +0 -78
  229. package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -69
  230. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -5435
  231. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -9378
  232. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -1255
  233. package/packages/orq-rc/src/models/operations/deployments.ts +0 -2316
  234. package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -9499
  235. package/packages/orq-rc/src/models/operations/filedelete.ts +0 -78
  236. package/packages/orq-rc/src/models/operations/fileget.ts +0 -223
  237. package/packages/orq-rc/src/models/operations/filelist.ts +0 -337
  238. package/packages/orq-rc/src/models/operations/fileupload.ts +0 -327
  239. package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -2294
  240. package/packages/orq-rc/src/models/operations/getonechunk.ts +0 -315
  241. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +0 -537
  242. package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -2155
  243. package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -2160
  244. package/packages/orq-rc/src/models/operations/index.ts +0 -54
  245. package/packages/orq-rc/src/models/operations/listchunks.ts +0 -494
  246. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +0 -1276
  247. package/packages/orq-rc/src/models/operations/listdatasets.ts +0 -406
  248. package/packages/orq-rc/src/models/operations/listdatasources.ts +0 -447
  249. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +0 -663
  250. package/packages/orq-rc/src/models/operations/listmodels.ts +0 -273
  251. package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -2292
  252. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -190
  253. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -1126
  254. package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -288
  255. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +0 -273
  256. package/packages/orq-rc/src/models/operations/searchknowledge.ts +0 -3367
  257. package/packages/orq-rc/src/models/operations/updatechunk.ts +0 -448
  258. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +0 -2139
  259. package/packages/orq-rc/src/models/operations/updatedataset.ts +0 -393
  260. package/packages/orq-rc/src/models/operations/updatedatasource.ts +0 -345
  261. package/packages/orq-rc/src/models/operations/updateknowledge.ts +0 -980
  262. package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -4261
  263. package/packages/orq-rc/src/sdk/contacts.ts +0 -27
  264. package/packages/orq-rc/src/sdk/datasets.ts +0 -240
  265. package/packages/orq-rc/src/sdk/deployments.ts +0 -107
  266. package/packages/orq-rc/src/sdk/feedback.ts +0 -27
  267. package/packages/orq-rc/src/sdk/files.ts +0 -78
  268. package/packages/orq-rc/src/sdk/index.ts +0 -5
  269. package/packages/orq-rc/src/sdk/knowledge.ts +0 -264
  270. package/packages/orq-rc/src/sdk/metrics.ts +0 -27
  271. package/packages/orq-rc/src/sdk/models.ts +0 -25
  272. package/packages/orq-rc/src/sdk/prompts.ts +0 -126
  273. package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
  274. package/packages/orq-rc/src/sdk/sdk.ts +0 -61
  275. package/packages/orq-rc/src/types/async.ts +0 -68
  276. package/packages/orq-rc/src/types/blobs.ts +0 -31
  277. package/packages/orq-rc/src/types/constdatetime.ts +0 -15
  278. package/packages/orq-rc/src/types/enums.ts +0 -16
  279. package/packages/orq-rc/src/types/fp.ts +0 -50
  280. package/packages/orq-rc/src/types/index.ts +0 -11
  281. package/packages/orq-rc/src/types/operations.ts +0 -105
  282. package/packages/orq-rc/src/types/rfcdate.ts +0 -54
  283. package/packages/orq-rc/src/types/streams.ts +0 -21
  284. package/packages/orq-rc/tsconfig.json +0 -41
@@ -1,1276 +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
- /**
56
- * The type of the content part. Always `file`.
57
- */
58
- export const ListDatasetDatapoints2DatasetsResponseType = {
59
- File: "file",
60
- } as const;
61
- /**
62
- * The type of the content part. Always `file`.
63
- */
64
- export type ListDatasetDatapoints2DatasetsResponseType = ClosedEnum<
65
- typeof ListDatasetDatapoints2DatasetsResponseType
66
- >;
67
-
68
- export type ListDatasetDatapoints2File = {
69
- /**
70
- * The base64 encoded file data, used when passing the file to the model as a string.
71
- */
72
- fileData: string;
73
- /**
74
- * The name of the file, used when passing the file to the model as a string.
75
- */
76
- filename?: string | undefined;
77
- };
78
-
79
- export type ListDatasetDatapoints23 = {
80
- /**
81
- * The type of the content part. Always `file`.
82
- */
83
- type: ListDatasetDatapoints2DatasetsResponseType;
84
- file: ListDatasetDatapoints2File;
85
- };
86
-
87
- export const ListDatasetDatapoints2DatasetsType = {
88
- ImageUrl: "image_url",
89
- } as const;
90
- export type ListDatasetDatapoints2DatasetsType = ClosedEnum<
91
- typeof ListDatasetDatapoints2DatasetsType
92
- >;
93
-
94
- export type ListDatasetDatapoints2ImageUrl = {
95
- /**
96
- * The orq.ai id of the image
97
- */
98
- id?: string | undefined;
99
- /**
100
- * Either a URL of the image or the base64 encoded data URI.
101
- */
102
- url: string;
103
- /**
104
- * Specifies the detail level of the image. Currently only supported with OpenAI models
105
- */
106
- detail?: string | undefined;
107
- };
108
-
109
- /**
110
- * The image part of the prompt message. Only supported with vision models.
111
- */
112
- export type ListDatasetDatapoints22 = {
113
- type: ListDatasetDatapoints2DatasetsType;
114
- imageUrl: ListDatasetDatapoints2ImageUrl;
115
- };
116
-
117
- export const ListDatasetDatapoints2Type = {
118
- Text: "text",
119
- } as const;
120
- export type ListDatasetDatapoints2Type = ClosedEnum<
121
- typeof ListDatasetDatapoints2Type
122
- >;
123
-
124
- /**
125
- * Text content part of a prompt message
126
- */
127
- export type ListDatasetDatapoints21 = {
128
- type: ListDatasetDatapoints2Type;
129
- text: string;
130
- };
131
-
132
- export type ListDatasetDatapointsContent2 =
133
- | ListDatasetDatapoints21
134
- | ListDatasetDatapoints22
135
- | ListDatasetDatapoints23;
136
-
137
- /**
138
- * 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.
139
- */
140
- export type ListDatasetDatapointsContent =
141
- | string
142
- | Array<
143
- ListDatasetDatapoints21 | ListDatasetDatapoints22 | ListDatasetDatapoints23
144
- >;
145
-
146
- export const ListDatasetDatapointsType = {
147
- Function: "function",
148
- } as const;
149
- export type ListDatasetDatapointsType = ClosedEnum<
150
- typeof ListDatasetDatapointsType
151
- >;
152
-
153
- export type ListDatasetDatapointsFunction = {
154
- name: string;
155
- /**
156
- * JSON string arguments for the functions
157
- */
158
- arguments: string;
159
- };
160
-
161
- export type ListDatasetDatapointsToolCalls = {
162
- id?: string | undefined;
163
- index?: number | undefined;
164
- type: ListDatasetDatapointsType;
165
- function: ListDatasetDatapointsFunction;
166
- };
167
-
168
- export type ListDatasetDatapointsMessages = {
169
- /**
170
- * The role of the prompt message
171
- */
172
- role: ListDatasetDatapointsRole;
173
- /**
174
- * 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.
175
- */
176
- content:
177
- | string
178
- | Array<
179
- | ListDatasetDatapoints21
180
- | ListDatasetDatapoints22
181
- | ListDatasetDatapoints23
182
- >;
183
- toolCalls?: Array<ListDatasetDatapointsToolCalls> | undefined;
184
- toolCallId?: string | undefined;
185
- };
186
-
187
- export type ListDatasetDatapointsData = {
188
- /**
189
- * The unique identifier of the dataset item
190
- */
191
- id: string;
192
- /**
193
- * The unique identifier of the workspace it belongs to
194
- */
195
- workspaceId: string;
196
- /**
197
- * 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.
198
- */
199
- inputs?: { [k: string]: any } | undefined;
200
- /**
201
- * The prompt template messages
202
- */
203
- messages?: Array<ListDatasetDatapointsMessages> | undefined;
204
- expectedOutput?: string | undefined;
205
- /**
206
- * The unique identifier of the dataset
207
- */
208
- datasetId: string;
209
- /**
210
- * The unique identifier of the user who created the dataset
211
- */
212
- createdById?: string | undefined;
213
- /**
214
- * The unique identifier of the user who last updated the dataset
215
- */
216
- updatedById?: string | undefined;
217
- /**
218
- * The date and time the resource was created
219
- */
220
- created?: Date | undefined;
221
- /**
222
- * The date and time the resource was last updated
223
- */
224
- updated?: Date | undefined;
225
- };
226
-
227
- /**
228
- * Datapoints retrieved successfully. Returns a paginated list of datapoints.
229
- */
230
- export type ListDatasetDatapointsResponseBody = {
231
- object: ListDatasetDatapointsObject;
232
- data: Array<ListDatasetDatapointsData>;
233
- hasMore: boolean;
234
- };
235
-
236
- /** @internal */
237
- export const ListDatasetDatapointsRequest$inboundSchema: z.ZodType<
238
- ListDatasetDatapointsRequest,
239
- z.ZodTypeDef,
240
- unknown
241
- > = z.object({
242
- dataset_id: z.string(),
243
- limit: z.number().default(10),
244
- starting_after: z.string().optional(),
245
- ending_before: z.string().optional(),
246
- }).transform((v) => {
247
- return remap$(v, {
248
- "dataset_id": "datasetId",
249
- "starting_after": "startingAfter",
250
- "ending_before": "endingBefore",
251
- });
252
- });
253
-
254
- /** @internal */
255
- export type ListDatasetDatapointsRequest$Outbound = {
256
- dataset_id: string;
257
- limit: number;
258
- starting_after?: string | undefined;
259
- ending_before?: string | undefined;
260
- };
261
-
262
- /** @internal */
263
- export const ListDatasetDatapointsRequest$outboundSchema: z.ZodType<
264
- ListDatasetDatapointsRequest$Outbound,
265
- z.ZodTypeDef,
266
- ListDatasetDatapointsRequest
267
- > = z.object({
268
- datasetId: z.string(),
269
- limit: z.number().default(10),
270
- startingAfter: z.string().optional(),
271
- endingBefore: z.string().optional(),
272
- }).transform((v) => {
273
- return remap$(v, {
274
- datasetId: "dataset_id",
275
- startingAfter: "starting_after",
276
- endingBefore: "ending_before",
277
- });
278
- });
279
-
280
- /**
281
- * @internal
282
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
283
- */
284
- export namespace ListDatasetDatapointsRequest$ {
285
- /** @deprecated use `ListDatasetDatapointsRequest$inboundSchema` instead. */
286
- export const inboundSchema = ListDatasetDatapointsRequest$inboundSchema;
287
- /** @deprecated use `ListDatasetDatapointsRequest$outboundSchema` instead. */
288
- export const outboundSchema = ListDatasetDatapointsRequest$outboundSchema;
289
- /** @deprecated use `ListDatasetDatapointsRequest$Outbound` instead. */
290
- export type Outbound = ListDatasetDatapointsRequest$Outbound;
291
- }
292
-
293
- export function listDatasetDatapointsRequestToJSON(
294
- listDatasetDatapointsRequest: ListDatasetDatapointsRequest,
295
- ): string {
296
- return JSON.stringify(
297
- ListDatasetDatapointsRequest$outboundSchema.parse(
298
- listDatasetDatapointsRequest,
299
- ),
300
- );
301
- }
302
-
303
- export function listDatasetDatapointsRequestFromJSON(
304
- jsonString: string,
305
- ): SafeParseResult<ListDatasetDatapointsRequest, SDKValidationError> {
306
- return safeParse(
307
- jsonString,
308
- (x) => ListDatasetDatapointsRequest$inboundSchema.parse(JSON.parse(x)),
309
- `Failed to parse 'ListDatasetDatapointsRequest' from JSON`,
310
- );
311
- }
312
-
313
- /** @internal */
314
- export const ListDatasetDatapointsObject$inboundSchema: z.ZodNativeEnum<
315
- typeof ListDatasetDatapointsObject
316
- > = z.nativeEnum(ListDatasetDatapointsObject);
317
-
318
- /** @internal */
319
- export const ListDatasetDatapointsObject$outboundSchema: z.ZodNativeEnum<
320
- typeof ListDatasetDatapointsObject
321
- > = ListDatasetDatapointsObject$inboundSchema;
322
-
323
- /**
324
- * @internal
325
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
326
- */
327
- export namespace ListDatasetDatapointsObject$ {
328
- /** @deprecated use `ListDatasetDatapointsObject$inboundSchema` instead. */
329
- export const inboundSchema = ListDatasetDatapointsObject$inboundSchema;
330
- /** @deprecated use `ListDatasetDatapointsObject$outboundSchema` instead. */
331
- export const outboundSchema = ListDatasetDatapointsObject$outboundSchema;
332
- }
333
-
334
- /** @internal */
335
- export const ListDatasetDatapointsRole$inboundSchema: z.ZodNativeEnum<
336
- typeof ListDatasetDatapointsRole
337
- > = z.nativeEnum(ListDatasetDatapointsRole);
338
-
339
- /** @internal */
340
- export const ListDatasetDatapointsRole$outboundSchema: z.ZodNativeEnum<
341
- typeof ListDatasetDatapointsRole
342
- > = ListDatasetDatapointsRole$inboundSchema;
343
-
344
- /**
345
- * @internal
346
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
347
- */
348
- export namespace ListDatasetDatapointsRole$ {
349
- /** @deprecated use `ListDatasetDatapointsRole$inboundSchema` instead. */
350
- export const inboundSchema = ListDatasetDatapointsRole$inboundSchema;
351
- /** @deprecated use `ListDatasetDatapointsRole$outboundSchema` instead. */
352
- export const outboundSchema = ListDatasetDatapointsRole$outboundSchema;
353
- }
354
-
355
- /** @internal */
356
- export const ListDatasetDatapoints2DatasetsResponseType$inboundSchema:
357
- z.ZodNativeEnum<typeof ListDatasetDatapoints2DatasetsResponseType> = z
358
- .nativeEnum(ListDatasetDatapoints2DatasetsResponseType);
359
-
360
- /** @internal */
361
- export const ListDatasetDatapoints2DatasetsResponseType$outboundSchema:
362
- z.ZodNativeEnum<typeof ListDatasetDatapoints2DatasetsResponseType> =
363
- ListDatasetDatapoints2DatasetsResponseType$inboundSchema;
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 ListDatasetDatapoints2DatasetsResponseType$ {
370
- /** @deprecated use `ListDatasetDatapoints2DatasetsResponseType$inboundSchema` instead. */
371
- export const inboundSchema =
372
- ListDatasetDatapoints2DatasetsResponseType$inboundSchema;
373
- /** @deprecated use `ListDatasetDatapoints2DatasetsResponseType$outboundSchema` instead. */
374
- export const outboundSchema =
375
- ListDatasetDatapoints2DatasetsResponseType$outboundSchema;
376
- }
377
-
378
- /** @internal */
379
- export const ListDatasetDatapoints2File$inboundSchema: z.ZodType<
380
- ListDatasetDatapoints2File,
381
- z.ZodTypeDef,
382
- unknown
383
- > = z.object({
384
- file_data: z.string(),
385
- filename: z.string().optional(),
386
- }).transform((v) => {
387
- return remap$(v, {
388
- "file_data": "fileData",
389
- });
390
- });
391
-
392
- /** @internal */
393
- export type ListDatasetDatapoints2File$Outbound = {
394
- file_data: string;
395
- filename?: string | undefined;
396
- };
397
-
398
- /** @internal */
399
- export const ListDatasetDatapoints2File$outboundSchema: z.ZodType<
400
- ListDatasetDatapoints2File$Outbound,
401
- z.ZodTypeDef,
402
- ListDatasetDatapoints2File
403
- > = z.object({
404
- fileData: z.string(),
405
- filename: z.string().optional(),
406
- }).transform((v) => {
407
- return remap$(v, {
408
- fileData: "file_data",
409
- });
410
- });
411
-
412
- /**
413
- * @internal
414
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
415
- */
416
- export namespace ListDatasetDatapoints2File$ {
417
- /** @deprecated use `ListDatasetDatapoints2File$inboundSchema` instead. */
418
- export const inboundSchema = ListDatasetDatapoints2File$inboundSchema;
419
- /** @deprecated use `ListDatasetDatapoints2File$outboundSchema` instead. */
420
- export const outboundSchema = ListDatasetDatapoints2File$outboundSchema;
421
- /** @deprecated use `ListDatasetDatapoints2File$Outbound` instead. */
422
- export type Outbound = ListDatasetDatapoints2File$Outbound;
423
- }
424
-
425
- export function listDatasetDatapoints2FileToJSON(
426
- listDatasetDatapoints2File: ListDatasetDatapoints2File,
427
- ): string {
428
- return JSON.stringify(
429
- ListDatasetDatapoints2File$outboundSchema.parse(listDatasetDatapoints2File),
430
- );
431
- }
432
-
433
- export function listDatasetDatapoints2FileFromJSON(
434
- jsonString: string,
435
- ): SafeParseResult<ListDatasetDatapoints2File, SDKValidationError> {
436
- return safeParse(
437
- jsonString,
438
- (x) => ListDatasetDatapoints2File$inboundSchema.parse(JSON.parse(x)),
439
- `Failed to parse 'ListDatasetDatapoints2File' from JSON`,
440
- );
441
- }
442
-
443
- /** @internal */
444
- export const ListDatasetDatapoints23$inboundSchema: z.ZodType<
445
- ListDatasetDatapoints23,
446
- z.ZodTypeDef,
447
- unknown
448
- > = z.object({
449
- type: ListDatasetDatapoints2DatasetsResponseType$inboundSchema,
450
- file: z.lazy(() => ListDatasetDatapoints2File$inboundSchema),
451
- });
452
-
453
- /** @internal */
454
- export type ListDatasetDatapoints23$Outbound = {
455
- type: string;
456
- file: ListDatasetDatapoints2File$Outbound;
457
- };
458
-
459
- /** @internal */
460
- export const ListDatasetDatapoints23$outboundSchema: z.ZodType<
461
- ListDatasetDatapoints23$Outbound,
462
- z.ZodTypeDef,
463
- ListDatasetDatapoints23
464
- > = z.object({
465
- type: ListDatasetDatapoints2DatasetsResponseType$outboundSchema,
466
- file: z.lazy(() => ListDatasetDatapoints2File$outboundSchema),
467
- });
468
-
469
- /**
470
- * @internal
471
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
472
- */
473
- export namespace ListDatasetDatapoints23$ {
474
- /** @deprecated use `ListDatasetDatapoints23$inboundSchema` instead. */
475
- export const inboundSchema = ListDatasetDatapoints23$inboundSchema;
476
- /** @deprecated use `ListDatasetDatapoints23$outboundSchema` instead. */
477
- export const outboundSchema = ListDatasetDatapoints23$outboundSchema;
478
- /** @deprecated use `ListDatasetDatapoints23$Outbound` instead. */
479
- export type Outbound = ListDatasetDatapoints23$Outbound;
480
- }
481
-
482
- export function listDatasetDatapoints23ToJSON(
483
- listDatasetDatapoints23: ListDatasetDatapoints23,
484
- ): string {
485
- return JSON.stringify(
486
- ListDatasetDatapoints23$outboundSchema.parse(listDatasetDatapoints23),
487
- );
488
- }
489
-
490
- export function listDatasetDatapoints23FromJSON(
491
- jsonString: string,
492
- ): SafeParseResult<ListDatasetDatapoints23, SDKValidationError> {
493
- return safeParse(
494
- jsonString,
495
- (x) => ListDatasetDatapoints23$inboundSchema.parse(JSON.parse(x)),
496
- `Failed to parse 'ListDatasetDatapoints23' from JSON`,
497
- );
498
- }
499
-
500
- /** @internal */
501
- export const ListDatasetDatapoints2DatasetsType$inboundSchema: z.ZodNativeEnum<
502
- typeof ListDatasetDatapoints2DatasetsType
503
- > = z.nativeEnum(ListDatasetDatapoints2DatasetsType);
504
-
505
- /** @internal */
506
- export const ListDatasetDatapoints2DatasetsType$outboundSchema: z.ZodNativeEnum<
507
- typeof ListDatasetDatapoints2DatasetsType
508
- > = ListDatasetDatapoints2DatasetsType$inboundSchema;
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 ListDatasetDatapoints2DatasetsType$ {
515
- /** @deprecated use `ListDatasetDatapoints2DatasetsType$inboundSchema` instead. */
516
- export const inboundSchema = ListDatasetDatapoints2DatasetsType$inboundSchema;
517
- /** @deprecated use `ListDatasetDatapoints2DatasetsType$outboundSchema` instead. */
518
- export const outboundSchema =
519
- ListDatasetDatapoints2DatasetsType$outboundSchema;
520
- }
521
-
522
- /** @internal */
523
- export const ListDatasetDatapoints2ImageUrl$inboundSchema: z.ZodType<
524
- ListDatasetDatapoints2ImageUrl,
525
- z.ZodTypeDef,
526
- unknown
527
- > = z.object({
528
- id: z.string().optional(),
529
- url: z.string(),
530
- detail: z.string().optional(),
531
- });
532
-
533
- /** @internal */
534
- export type ListDatasetDatapoints2ImageUrl$Outbound = {
535
- id?: string | undefined;
536
- url: string;
537
- detail?: string | undefined;
538
- };
539
-
540
- /** @internal */
541
- export const ListDatasetDatapoints2ImageUrl$outboundSchema: z.ZodType<
542
- ListDatasetDatapoints2ImageUrl$Outbound,
543
- z.ZodTypeDef,
544
- ListDatasetDatapoints2ImageUrl
545
- > = z.object({
546
- id: z.string().optional(),
547
- url: z.string(),
548
- detail: z.string().optional(),
549
- });
550
-
551
- /**
552
- * @internal
553
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
554
- */
555
- export namespace ListDatasetDatapoints2ImageUrl$ {
556
- /** @deprecated use `ListDatasetDatapoints2ImageUrl$inboundSchema` instead. */
557
- export const inboundSchema = ListDatasetDatapoints2ImageUrl$inboundSchema;
558
- /** @deprecated use `ListDatasetDatapoints2ImageUrl$outboundSchema` instead. */
559
- export const outboundSchema = ListDatasetDatapoints2ImageUrl$outboundSchema;
560
- /** @deprecated use `ListDatasetDatapoints2ImageUrl$Outbound` instead. */
561
- export type Outbound = ListDatasetDatapoints2ImageUrl$Outbound;
562
- }
563
-
564
- export function listDatasetDatapoints2ImageUrlToJSON(
565
- listDatasetDatapoints2ImageUrl: ListDatasetDatapoints2ImageUrl,
566
- ): string {
567
- return JSON.stringify(
568
- ListDatasetDatapoints2ImageUrl$outboundSchema.parse(
569
- listDatasetDatapoints2ImageUrl,
570
- ),
571
- );
572
- }
573
-
574
- export function listDatasetDatapoints2ImageUrlFromJSON(
575
- jsonString: string,
576
- ): SafeParseResult<ListDatasetDatapoints2ImageUrl, SDKValidationError> {
577
- return safeParse(
578
- jsonString,
579
- (x) => ListDatasetDatapoints2ImageUrl$inboundSchema.parse(JSON.parse(x)),
580
- `Failed to parse 'ListDatasetDatapoints2ImageUrl' from JSON`,
581
- );
582
- }
583
-
584
- /** @internal */
585
- export const ListDatasetDatapoints22$inboundSchema: z.ZodType<
586
- ListDatasetDatapoints22,
587
- z.ZodTypeDef,
588
- unknown
589
- > = z.object({
590
- type: ListDatasetDatapoints2DatasetsType$inboundSchema,
591
- image_url: z.lazy(() => ListDatasetDatapoints2ImageUrl$inboundSchema),
592
- }).transform((v) => {
593
- return remap$(v, {
594
- "image_url": "imageUrl",
595
- });
596
- });
597
-
598
- /** @internal */
599
- export type ListDatasetDatapoints22$Outbound = {
600
- type: string;
601
- image_url: ListDatasetDatapoints2ImageUrl$Outbound;
602
- };
603
-
604
- /** @internal */
605
- export const ListDatasetDatapoints22$outboundSchema: z.ZodType<
606
- ListDatasetDatapoints22$Outbound,
607
- z.ZodTypeDef,
608
- ListDatasetDatapoints22
609
- > = z.object({
610
- type: ListDatasetDatapoints2DatasetsType$outboundSchema,
611
- imageUrl: z.lazy(() => ListDatasetDatapoints2ImageUrl$outboundSchema),
612
- }).transform((v) => {
613
- return remap$(v, {
614
- imageUrl: "image_url",
615
- });
616
- });
617
-
618
- /**
619
- * @internal
620
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
621
- */
622
- export namespace ListDatasetDatapoints22$ {
623
- /** @deprecated use `ListDatasetDatapoints22$inboundSchema` instead. */
624
- export const inboundSchema = ListDatasetDatapoints22$inboundSchema;
625
- /** @deprecated use `ListDatasetDatapoints22$outboundSchema` instead. */
626
- export const outboundSchema = ListDatasetDatapoints22$outboundSchema;
627
- /** @deprecated use `ListDatasetDatapoints22$Outbound` instead. */
628
- export type Outbound = ListDatasetDatapoints22$Outbound;
629
- }
630
-
631
- export function listDatasetDatapoints22ToJSON(
632
- listDatasetDatapoints22: ListDatasetDatapoints22,
633
- ): string {
634
- return JSON.stringify(
635
- ListDatasetDatapoints22$outboundSchema.parse(listDatasetDatapoints22),
636
- );
637
- }
638
-
639
- export function listDatasetDatapoints22FromJSON(
640
- jsonString: string,
641
- ): SafeParseResult<ListDatasetDatapoints22, SDKValidationError> {
642
- return safeParse(
643
- jsonString,
644
- (x) => ListDatasetDatapoints22$inboundSchema.parse(JSON.parse(x)),
645
- `Failed to parse 'ListDatasetDatapoints22' from JSON`,
646
- );
647
- }
648
-
649
- /** @internal */
650
- export const ListDatasetDatapoints2Type$inboundSchema: z.ZodNativeEnum<
651
- typeof ListDatasetDatapoints2Type
652
- > = z.nativeEnum(ListDatasetDatapoints2Type);
653
-
654
- /** @internal */
655
- export const ListDatasetDatapoints2Type$outboundSchema: z.ZodNativeEnum<
656
- typeof ListDatasetDatapoints2Type
657
- > = ListDatasetDatapoints2Type$inboundSchema;
658
-
659
- /**
660
- * @internal
661
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
662
- */
663
- export namespace ListDatasetDatapoints2Type$ {
664
- /** @deprecated use `ListDatasetDatapoints2Type$inboundSchema` instead. */
665
- export const inboundSchema = ListDatasetDatapoints2Type$inboundSchema;
666
- /** @deprecated use `ListDatasetDatapoints2Type$outboundSchema` instead. */
667
- export const outboundSchema = ListDatasetDatapoints2Type$outboundSchema;
668
- }
669
-
670
- /** @internal */
671
- export const ListDatasetDatapoints21$inboundSchema: z.ZodType<
672
- ListDatasetDatapoints21,
673
- z.ZodTypeDef,
674
- unknown
675
- > = z.object({
676
- type: ListDatasetDatapoints2Type$inboundSchema,
677
- text: z.string(),
678
- });
679
-
680
- /** @internal */
681
- export type ListDatasetDatapoints21$Outbound = {
682
- type: string;
683
- text: string;
684
- };
685
-
686
- /** @internal */
687
- export const ListDatasetDatapoints21$outboundSchema: z.ZodType<
688
- ListDatasetDatapoints21$Outbound,
689
- z.ZodTypeDef,
690
- ListDatasetDatapoints21
691
- > = z.object({
692
- type: ListDatasetDatapoints2Type$outboundSchema,
693
- text: z.string(),
694
- });
695
-
696
- /**
697
- * @internal
698
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
699
- */
700
- export namespace ListDatasetDatapoints21$ {
701
- /** @deprecated use `ListDatasetDatapoints21$inboundSchema` instead. */
702
- export const inboundSchema = ListDatasetDatapoints21$inboundSchema;
703
- /** @deprecated use `ListDatasetDatapoints21$outboundSchema` instead. */
704
- export const outboundSchema = ListDatasetDatapoints21$outboundSchema;
705
- /** @deprecated use `ListDatasetDatapoints21$Outbound` instead. */
706
- export type Outbound = ListDatasetDatapoints21$Outbound;
707
- }
708
-
709
- export function listDatasetDatapoints21ToJSON(
710
- listDatasetDatapoints21: ListDatasetDatapoints21,
711
- ): string {
712
- return JSON.stringify(
713
- ListDatasetDatapoints21$outboundSchema.parse(listDatasetDatapoints21),
714
- );
715
- }
716
-
717
- export function listDatasetDatapoints21FromJSON(
718
- jsonString: string,
719
- ): SafeParseResult<ListDatasetDatapoints21, SDKValidationError> {
720
- return safeParse(
721
- jsonString,
722
- (x) => ListDatasetDatapoints21$inboundSchema.parse(JSON.parse(x)),
723
- `Failed to parse 'ListDatasetDatapoints21' from JSON`,
724
- );
725
- }
726
-
727
- /** @internal */
728
- export const ListDatasetDatapointsContent2$inboundSchema: z.ZodType<
729
- ListDatasetDatapointsContent2,
730
- z.ZodTypeDef,
731
- unknown
732
- > = z.union([
733
- z.lazy(() => ListDatasetDatapoints21$inboundSchema),
734
- z.lazy(() => ListDatasetDatapoints22$inboundSchema),
735
- z.lazy(() => ListDatasetDatapoints23$inboundSchema),
736
- ]);
737
-
738
- /** @internal */
739
- export type ListDatasetDatapointsContent2$Outbound =
740
- | ListDatasetDatapoints21$Outbound
741
- | ListDatasetDatapoints22$Outbound
742
- | ListDatasetDatapoints23$Outbound;
743
-
744
- /** @internal */
745
- export const ListDatasetDatapointsContent2$outboundSchema: z.ZodType<
746
- ListDatasetDatapointsContent2$Outbound,
747
- z.ZodTypeDef,
748
- ListDatasetDatapointsContent2
749
- > = z.union([
750
- z.lazy(() => ListDatasetDatapoints21$outboundSchema),
751
- z.lazy(() => ListDatasetDatapoints22$outboundSchema),
752
- z.lazy(() => ListDatasetDatapoints23$outboundSchema),
753
- ]);
754
-
755
- /**
756
- * @internal
757
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
758
- */
759
- export namespace ListDatasetDatapointsContent2$ {
760
- /** @deprecated use `ListDatasetDatapointsContent2$inboundSchema` instead. */
761
- export const inboundSchema = ListDatasetDatapointsContent2$inboundSchema;
762
- /** @deprecated use `ListDatasetDatapointsContent2$outboundSchema` instead. */
763
- export const outboundSchema = ListDatasetDatapointsContent2$outboundSchema;
764
- /** @deprecated use `ListDatasetDatapointsContent2$Outbound` instead. */
765
- export type Outbound = ListDatasetDatapointsContent2$Outbound;
766
- }
767
-
768
- export function listDatasetDatapointsContent2ToJSON(
769
- listDatasetDatapointsContent2: ListDatasetDatapointsContent2,
770
- ): string {
771
- return JSON.stringify(
772
- ListDatasetDatapointsContent2$outboundSchema.parse(
773
- listDatasetDatapointsContent2,
774
- ),
775
- );
776
- }
777
-
778
- export function listDatasetDatapointsContent2FromJSON(
779
- jsonString: string,
780
- ): SafeParseResult<ListDatasetDatapointsContent2, SDKValidationError> {
781
- return safeParse(
782
- jsonString,
783
- (x) => ListDatasetDatapointsContent2$inboundSchema.parse(JSON.parse(x)),
784
- `Failed to parse 'ListDatasetDatapointsContent2' from JSON`,
785
- );
786
- }
787
-
788
- /** @internal */
789
- export const ListDatasetDatapointsContent$inboundSchema: z.ZodType<
790
- ListDatasetDatapointsContent,
791
- z.ZodTypeDef,
792
- unknown
793
- > = z.union([
794
- z.string(),
795
- z.array(z.union([
796
- z.lazy(() => ListDatasetDatapoints21$inboundSchema),
797
- z.lazy(() => ListDatasetDatapoints22$inboundSchema),
798
- z.lazy(() => ListDatasetDatapoints23$inboundSchema),
799
- ])),
800
- ]);
801
-
802
- /** @internal */
803
- export type ListDatasetDatapointsContent$Outbound =
804
- | string
805
- | Array<
806
- | ListDatasetDatapoints21$Outbound
807
- | ListDatasetDatapoints22$Outbound
808
- | ListDatasetDatapoints23$Outbound
809
- >;
810
-
811
- /** @internal */
812
- export const ListDatasetDatapointsContent$outboundSchema: z.ZodType<
813
- ListDatasetDatapointsContent$Outbound,
814
- z.ZodTypeDef,
815
- ListDatasetDatapointsContent
816
- > = z.union([
817
- z.string(),
818
- z.array(z.union([
819
- z.lazy(() => ListDatasetDatapoints21$outboundSchema),
820
- z.lazy(() => ListDatasetDatapoints22$outboundSchema),
821
- z.lazy(() => ListDatasetDatapoints23$outboundSchema),
822
- ])),
823
- ]);
824
-
825
- /**
826
- * @internal
827
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
828
- */
829
- export namespace ListDatasetDatapointsContent$ {
830
- /** @deprecated use `ListDatasetDatapointsContent$inboundSchema` instead. */
831
- export const inboundSchema = ListDatasetDatapointsContent$inboundSchema;
832
- /** @deprecated use `ListDatasetDatapointsContent$outboundSchema` instead. */
833
- export const outboundSchema = ListDatasetDatapointsContent$outboundSchema;
834
- /** @deprecated use `ListDatasetDatapointsContent$Outbound` instead. */
835
- export type Outbound = ListDatasetDatapointsContent$Outbound;
836
- }
837
-
838
- export function listDatasetDatapointsContentToJSON(
839
- listDatasetDatapointsContent: ListDatasetDatapointsContent,
840
- ): string {
841
- return JSON.stringify(
842
- ListDatasetDatapointsContent$outboundSchema.parse(
843
- listDatasetDatapointsContent,
844
- ),
845
- );
846
- }
847
-
848
- export function listDatasetDatapointsContentFromJSON(
849
- jsonString: string,
850
- ): SafeParseResult<ListDatasetDatapointsContent, SDKValidationError> {
851
- return safeParse(
852
- jsonString,
853
- (x) => ListDatasetDatapointsContent$inboundSchema.parse(JSON.parse(x)),
854
- `Failed to parse 'ListDatasetDatapointsContent' from JSON`,
855
- );
856
- }
857
-
858
- /** @internal */
859
- export const ListDatasetDatapointsType$inboundSchema: z.ZodNativeEnum<
860
- typeof ListDatasetDatapointsType
861
- > = z.nativeEnum(ListDatasetDatapointsType);
862
-
863
- /** @internal */
864
- export const ListDatasetDatapointsType$outboundSchema: z.ZodNativeEnum<
865
- typeof ListDatasetDatapointsType
866
- > = ListDatasetDatapointsType$inboundSchema;
867
-
868
- /**
869
- * @internal
870
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
871
- */
872
- export namespace ListDatasetDatapointsType$ {
873
- /** @deprecated use `ListDatasetDatapointsType$inboundSchema` instead. */
874
- export const inboundSchema = ListDatasetDatapointsType$inboundSchema;
875
- /** @deprecated use `ListDatasetDatapointsType$outboundSchema` instead. */
876
- export const outboundSchema = ListDatasetDatapointsType$outboundSchema;
877
- }
878
-
879
- /** @internal */
880
- export const ListDatasetDatapointsFunction$inboundSchema: z.ZodType<
881
- ListDatasetDatapointsFunction,
882
- z.ZodTypeDef,
883
- unknown
884
- > = z.object({
885
- name: z.string(),
886
- arguments: z.string(),
887
- });
888
-
889
- /** @internal */
890
- export type ListDatasetDatapointsFunction$Outbound = {
891
- name: string;
892
- arguments: string;
893
- };
894
-
895
- /** @internal */
896
- export const ListDatasetDatapointsFunction$outboundSchema: z.ZodType<
897
- ListDatasetDatapointsFunction$Outbound,
898
- z.ZodTypeDef,
899
- ListDatasetDatapointsFunction
900
- > = z.object({
901
- name: z.string(),
902
- arguments: z.string(),
903
- });
904
-
905
- /**
906
- * @internal
907
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
908
- */
909
- export namespace ListDatasetDatapointsFunction$ {
910
- /** @deprecated use `ListDatasetDatapointsFunction$inboundSchema` instead. */
911
- export const inboundSchema = ListDatasetDatapointsFunction$inboundSchema;
912
- /** @deprecated use `ListDatasetDatapointsFunction$outboundSchema` instead. */
913
- export const outboundSchema = ListDatasetDatapointsFunction$outboundSchema;
914
- /** @deprecated use `ListDatasetDatapointsFunction$Outbound` instead. */
915
- export type Outbound = ListDatasetDatapointsFunction$Outbound;
916
- }
917
-
918
- export function listDatasetDatapointsFunctionToJSON(
919
- listDatasetDatapointsFunction: ListDatasetDatapointsFunction,
920
- ): string {
921
- return JSON.stringify(
922
- ListDatasetDatapointsFunction$outboundSchema.parse(
923
- listDatasetDatapointsFunction,
924
- ),
925
- );
926
- }
927
-
928
- export function listDatasetDatapointsFunctionFromJSON(
929
- jsonString: string,
930
- ): SafeParseResult<ListDatasetDatapointsFunction, SDKValidationError> {
931
- return safeParse(
932
- jsonString,
933
- (x) => ListDatasetDatapointsFunction$inboundSchema.parse(JSON.parse(x)),
934
- `Failed to parse 'ListDatasetDatapointsFunction' from JSON`,
935
- );
936
- }
937
-
938
- /** @internal */
939
- export const ListDatasetDatapointsToolCalls$inboundSchema: z.ZodType<
940
- ListDatasetDatapointsToolCalls,
941
- z.ZodTypeDef,
942
- unknown
943
- > = z.object({
944
- id: z.string().optional(),
945
- index: z.number().optional(),
946
- type: ListDatasetDatapointsType$inboundSchema,
947
- function: z.lazy(() => ListDatasetDatapointsFunction$inboundSchema),
948
- });
949
-
950
- /** @internal */
951
- export type ListDatasetDatapointsToolCalls$Outbound = {
952
- id?: string | undefined;
953
- index?: number | undefined;
954
- type: string;
955
- function: ListDatasetDatapointsFunction$Outbound;
956
- };
957
-
958
- /** @internal */
959
- export const ListDatasetDatapointsToolCalls$outboundSchema: z.ZodType<
960
- ListDatasetDatapointsToolCalls$Outbound,
961
- z.ZodTypeDef,
962
- ListDatasetDatapointsToolCalls
963
- > = z.object({
964
- id: z.string().optional(),
965
- index: z.number().optional(),
966
- type: ListDatasetDatapointsType$outboundSchema,
967
- function: z.lazy(() => ListDatasetDatapointsFunction$outboundSchema),
968
- });
969
-
970
- /**
971
- * @internal
972
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
973
- */
974
- export namespace ListDatasetDatapointsToolCalls$ {
975
- /** @deprecated use `ListDatasetDatapointsToolCalls$inboundSchema` instead. */
976
- export const inboundSchema = ListDatasetDatapointsToolCalls$inboundSchema;
977
- /** @deprecated use `ListDatasetDatapointsToolCalls$outboundSchema` instead. */
978
- export const outboundSchema = ListDatasetDatapointsToolCalls$outboundSchema;
979
- /** @deprecated use `ListDatasetDatapointsToolCalls$Outbound` instead. */
980
- export type Outbound = ListDatasetDatapointsToolCalls$Outbound;
981
- }
982
-
983
- export function listDatasetDatapointsToolCallsToJSON(
984
- listDatasetDatapointsToolCalls: ListDatasetDatapointsToolCalls,
985
- ): string {
986
- return JSON.stringify(
987
- ListDatasetDatapointsToolCalls$outboundSchema.parse(
988
- listDatasetDatapointsToolCalls,
989
- ),
990
- );
991
- }
992
-
993
- export function listDatasetDatapointsToolCallsFromJSON(
994
- jsonString: string,
995
- ): SafeParseResult<ListDatasetDatapointsToolCalls, SDKValidationError> {
996
- return safeParse(
997
- jsonString,
998
- (x) => ListDatasetDatapointsToolCalls$inboundSchema.parse(JSON.parse(x)),
999
- `Failed to parse 'ListDatasetDatapointsToolCalls' from JSON`,
1000
- );
1001
- }
1002
-
1003
- /** @internal */
1004
- export const ListDatasetDatapointsMessages$inboundSchema: z.ZodType<
1005
- ListDatasetDatapointsMessages,
1006
- z.ZodTypeDef,
1007
- unknown
1008
- > = z.object({
1009
- role: ListDatasetDatapointsRole$inboundSchema,
1010
- content: z.union([
1011
- z.string(),
1012
- z.array(z.union([
1013
- z.lazy(() => ListDatasetDatapoints21$inboundSchema),
1014
- z.lazy(() => ListDatasetDatapoints22$inboundSchema),
1015
- z.lazy(() => ListDatasetDatapoints23$inboundSchema),
1016
- ])),
1017
- ]),
1018
- tool_calls: z.array(
1019
- z.lazy(() => ListDatasetDatapointsToolCalls$inboundSchema),
1020
- ).optional(),
1021
- tool_call_id: z.string().optional(),
1022
- }).transform((v) => {
1023
- return remap$(v, {
1024
- "tool_calls": "toolCalls",
1025
- "tool_call_id": "toolCallId",
1026
- });
1027
- });
1028
-
1029
- /** @internal */
1030
- export type ListDatasetDatapointsMessages$Outbound = {
1031
- role: string;
1032
- content:
1033
- | string
1034
- | Array<
1035
- | ListDatasetDatapoints21$Outbound
1036
- | ListDatasetDatapoints22$Outbound
1037
- | ListDatasetDatapoints23$Outbound
1038
- >;
1039
- tool_calls?: Array<ListDatasetDatapointsToolCalls$Outbound> | undefined;
1040
- tool_call_id?: string | undefined;
1041
- };
1042
-
1043
- /** @internal */
1044
- export const ListDatasetDatapointsMessages$outboundSchema: z.ZodType<
1045
- ListDatasetDatapointsMessages$Outbound,
1046
- z.ZodTypeDef,
1047
- ListDatasetDatapointsMessages
1048
- > = z.object({
1049
- role: ListDatasetDatapointsRole$outboundSchema,
1050
- content: z.union([
1051
- z.string(),
1052
- z.array(z.union([
1053
- z.lazy(() => ListDatasetDatapoints21$outboundSchema),
1054
- z.lazy(() => ListDatasetDatapoints22$outboundSchema),
1055
- z.lazy(() => ListDatasetDatapoints23$outboundSchema),
1056
- ])),
1057
- ]),
1058
- toolCalls: z.array(
1059
- z.lazy(() => ListDatasetDatapointsToolCalls$outboundSchema),
1060
- ).optional(),
1061
- toolCallId: z.string().optional(),
1062
- }).transform((v) => {
1063
- return remap$(v, {
1064
- toolCalls: "tool_calls",
1065
- toolCallId: "tool_call_id",
1066
- });
1067
- });
1068
-
1069
- /**
1070
- * @internal
1071
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1072
- */
1073
- export namespace ListDatasetDatapointsMessages$ {
1074
- /** @deprecated use `ListDatasetDatapointsMessages$inboundSchema` instead. */
1075
- export const inboundSchema = ListDatasetDatapointsMessages$inboundSchema;
1076
- /** @deprecated use `ListDatasetDatapointsMessages$outboundSchema` instead. */
1077
- export const outboundSchema = ListDatasetDatapointsMessages$outboundSchema;
1078
- /** @deprecated use `ListDatasetDatapointsMessages$Outbound` instead. */
1079
- export type Outbound = ListDatasetDatapointsMessages$Outbound;
1080
- }
1081
-
1082
- export function listDatasetDatapointsMessagesToJSON(
1083
- listDatasetDatapointsMessages: ListDatasetDatapointsMessages,
1084
- ): string {
1085
- return JSON.stringify(
1086
- ListDatasetDatapointsMessages$outboundSchema.parse(
1087
- listDatasetDatapointsMessages,
1088
- ),
1089
- );
1090
- }
1091
-
1092
- export function listDatasetDatapointsMessagesFromJSON(
1093
- jsonString: string,
1094
- ): SafeParseResult<ListDatasetDatapointsMessages, SDKValidationError> {
1095
- return safeParse(
1096
- jsonString,
1097
- (x) => ListDatasetDatapointsMessages$inboundSchema.parse(JSON.parse(x)),
1098
- `Failed to parse 'ListDatasetDatapointsMessages' from JSON`,
1099
- );
1100
- }
1101
-
1102
- /** @internal */
1103
- export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
1104
- ListDatasetDatapointsData,
1105
- z.ZodTypeDef,
1106
- unknown
1107
- > = z.object({
1108
- _id: z.string(),
1109
- workspace_id: z.string(),
1110
- inputs: z.record(z.any()).optional(),
1111
- messages: z.array(z.lazy(() => ListDatasetDatapointsMessages$inboundSchema))
1112
- .optional(),
1113
- expected_output: z.string().optional(),
1114
- dataset_id: z.string(),
1115
- created_by_id: z.string().optional(),
1116
- updated_by_id: z.string().optional(),
1117
- created: z.string().datetime({ offset: true }).transform(v => new Date(v))
1118
- .optional(),
1119
- updated: z.string().datetime({ offset: true }).default(
1120
- "2025-05-28T11:21:06.214Z",
1121
- ).transform(v => new Date(v)),
1122
- }).transform((v) => {
1123
- return remap$(v, {
1124
- "_id": "id",
1125
- "workspace_id": "workspaceId",
1126
- "expected_output": "expectedOutput",
1127
- "dataset_id": "datasetId",
1128
- "created_by_id": "createdById",
1129
- "updated_by_id": "updatedById",
1130
- });
1131
- });
1132
-
1133
- /** @internal */
1134
- export type ListDatasetDatapointsData$Outbound = {
1135
- _id: string;
1136
- workspace_id: string;
1137
- inputs?: { [k: string]: any } | undefined;
1138
- messages?: Array<ListDatasetDatapointsMessages$Outbound> | undefined;
1139
- expected_output?: string | undefined;
1140
- dataset_id: string;
1141
- created_by_id?: string | undefined;
1142
- updated_by_id?: string | undefined;
1143
- created?: string | undefined;
1144
- updated: string;
1145
- };
1146
-
1147
- /** @internal */
1148
- export const ListDatasetDatapointsData$outboundSchema: z.ZodType<
1149
- ListDatasetDatapointsData$Outbound,
1150
- z.ZodTypeDef,
1151
- ListDatasetDatapointsData
1152
- > = z.object({
1153
- id: z.string(),
1154
- workspaceId: z.string(),
1155
- inputs: z.record(z.any()).optional(),
1156
- messages: z.array(z.lazy(() => ListDatasetDatapointsMessages$outboundSchema))
1157
- .optional(),
1158
- expectedOutput: z.string().optional(),
1159
- datasetId: z.string(),
1160
- createdById: z.string().optional(),
1161
- updatedById: z.string().optional(),
1162
- created: z.date().transform(v => v.toISOString()).optional(),
1163
- updated: z.date().default(() => new Date("2025-05-28T11:21:06.214Z"))
1164
- .transform(v => v.toISOString()),
1165
- }).transform((v) => {
1166
- return remap$(v, {
1167
- id: "_id",
1168
- workspaceId: "workspace_id",
1169
- expectedOutput: "expected_output",
1170
- datasetId: "dataset_id",
1171
- createdById: "created_by_id",
1172
- updatedById: "updated_by_id",
1173
- });
1174
- });
1175
-
1176
- /**
1177
- * @internal
1178
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1179
- */
1180
- export namespace ListDatasetDatapointsData$ {
1181
- /** @deprecated use `ListDatasetDatapointsData$inboundSchema` instead. */
1182
- export const inboundSchema = ListDatasetDatapointsData$inboundSchema;
1183
- /** @deprecated use `ListDatasetDatapointsData$outboundSchema` instead. */
1184
- export const outboundSchema = ListDatasetDatapointsData$outboundSchema;
1185
- /** @deprecated use `ListDatasetDatapointsData$Outbound` instead. */
1186
- export type Outbound = ListDatasetDatapointsData$Outbound;
1187
- }
1188
-
1189
- export function listDatasetDatapointsDataToJSON(
1190
- listDatasetDatapointsData: ListDatasetDatapointsData,
1191
- ): string {
1192
- return JSON.stringify(
1193
- ListDatasetDatapointsData$outboundSchema.parse(listDatasetDatapointsData),
1194
- );
1195
- }
1196
-
1197
- export function listDatasetDatapointsDataFromJSON(
1198
- jsonString: string,
1199
- ): SafeParseResult<ListDatasetDatapointsData, SDKValidationError> {
1200
- return safeParse(
1201
- jsonString,
1202
- (x) => ListDatasetDatapointsData$inboundSchema.parse(JSON.parse(x)),
1203
- `Failed to parse 'ListDatasetDatapointsData' from JSON`,
1204
- );
1205
- }
1206
-
1207
- /** @internal */
1208
- export const ListDatasetDatapointsResponseBody$inboundSchema: z.ZodType<
1209
- ListDatasetDatapointsResponseBody,
1210
- z.ZodTypeDef,
1211
- unknown
1212
- > = z.object({
1213
- object: ListDatasetDatapointsObject$inboundSchema,
1214
- data: z.array(z.lazy(() => ListDatasetDatapointsData$inboundSchema)),
1215
- has_more: z.boolean(),
1216
- }).transform((v) => {
1217
- return remap$(v, {
1218
- "has_more": "hasMore",
1219
- });
1220
- });
1221
-
1222
- /** @internal */
1223
- export type ListDatasetDatapointsResponseBody$Outbound = {
1224
- object: string;
1225
- data: Array<ListDatasetDatapointsData$Outbound>;
1226
- has_more: boolean;
1227
- };
1228
-
1229
- /** @internal */
1230
- export const ListDatasetDatapointsResponseBody$outboundSchema: z.ZodType<
1231
- ListDatasetDatapointsResponseBody$Outbound,
1232
- z.ZodTypeDef,
1233
- ListDatasetDatapointsResponseBody
1234
- > = z.object({
1235
- object: ListDatasetDatapointsObject$outboundSchema,
1236
- data: z.array(z.lazy(() => ListDatasetDatapointsData$outboundSchema)),
1237
- hasMore: z.boolean(),
1238
- }).transform((v) => {
1239
- return remap$(v, {
1240
- hasMore: "has_more",
1241
- });
1242
- });
1243
-
1244
- /**
1245
- * @internal
1246
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1247
- */
1248
- export namespace ListDatasetDatapointsResponseBody$ {
1249
- /** @deprecated use `ListDatasetDatapointsResponseBody$inboundSchema` instead. */
1250
- export const inboundSchema = ListDatasetDatapointsResponseBody$inboundSchema;
1251
- /** @deprecated use `ListDatasetDatapointsResponseBody$outboundSchema` instead. */
1252
- export const outboundSchema =
1253
- ListDatasetDatapointsResponseBody$outboundSchema;
1254
- /** @deprecated use `ListDatasetDatapointsResponseBody$Outbound` instead. */
1255
- export type Outbound = ListDatasetDatapointsResponseBody$Outbound;
1256
- }
1257
-
1258
- export function listDatasetDatapointsResponseBodyToJSON(
1259
- listDatasetDatapointsResponseBody: ListDatasetDatapointsResponseBody,
1260
- ): string {
1261
- return JSON.stringify(
1262
- ListDatasetDatapointsResponseBody$outboundSchema.parse(
1263
- listDatasetDatapointsResponseBody,
1264
- ),
1265
- );
1266
- }
1267
-
1268
- export function listDatasetDatapointsResponseBodyFromJSON(
1269
- jsonString: string,
1270
- ): SafeParseResult<ListDatasetDatapointsResponseBody, SDKValidationError> {
1271
- return safeParse(
1272
- jsonString,
1273
- (x) => ListDatasetDatapointsResponseBody$inboundSchema.parse(JSON.parse(x)),
1274
- `Failed to parse 'ListDatasetDatapointsResponseBody' from JSON`,
1275
- );
1276
- }