@orq-ai/node 3.8.0-rc.8 → 3.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (675) hide show
  1. package/FUNCTIONS.md +19 -3
  2. package/README.md +165 -91
  3. package/bin/mcp-server.js +930 -2272
  4. package/bin/mcp-server.js.map +67 -73
  5. package/docs/sdks/contacts/README.md +30 -2
  6. package/docs/sdks/knowledge/README.md +1 -1
  7. package/docs/sdks/orq/README.md +0 -138
  8. package/funcs/filesCreate.d.ts.map +1 -1
  9. package/funcs/filesCreate.js +7 -3
  10. package/funcs/filesCreate.js.map +1 -1
  11. package/funcs/knowledgeCreateChunks.d.ts +1 -1
  12. package/funcs/knowledgeCreateChunks.d.ts.map +1 -1
  13. package/funcs/knowledgeCreateChunks.js +1 -1
  14. package/funcs/knowledgeCreateChunks.js.map +1 -1
  15. package/jsr.json +1 -1
  16. package/lib/config.d.ts +3 -3
  17. package/lib/config.js +3 -3
  18. package/lib/config.js.map +1 -1
  19. package/lib/files.d.ts +5 -0
  20. package/lib/files.d.ts.map +1 -1
  21. package/lib/files.js +41 -0
  22. package/lib/files.js.map +1 -1
  23. package/lib/security.d.ts +2 -2
  24. package/lib/security.d.ts.map +1 -1
  25. package/mcp-server/mcp-server.js +1 -1
  26. package/mcp-server/mcp-server.js.map +1 -1
  27. package/mcp-server/server.d.ts.map +1 -1
  28. package/mcp-server/server.js +1 -5
  29. package/mcp-server/server.js.map +1 -1
  30. package/models/components/deployments.d.ts +12 -12
  31. package/models/components/deployments.d.ts.map +1 -1
  32. package/models/components/deployments.js +12 -12
  33. package/models/components/deployments.js.map +1 -1
  34. package/models/operations/createchunk.d.ts +28 -28
  35. package/models/operations/createchunk.d.ts.map +1 -1
  36. package/models/operations/createchunk.js +33 -35
  37. package/models/operations/createchunk.js.map +1 -1
  38. package/models/operations/createcontact.js +2 -2
  39. package/models/operations/createdataset.js +2 -2
  40. package/models/operations/createdatasetitem.d.ts +12 -12
  41. package/models/operations/createdatasetitem.d.ts.map +1 -1
  42. package/models/operations/createdatasetitem.js +14 -14
  43. package/models/operations/createdatasetitem.js.map +1 -1
  44. package/models/operations/createdatasource.js +2 -2
  45. package/models/operations/createeval.d.ts +36 -36
  46. package/models/operations/createeval.d.ts.map +1 -1
  47. package/models/operations/createeval.js +56 -56
  48. package/models/operations/createeval.js.map +1 -1
  49. package/models/operations/createfeedback.d.ts +8 -8
  50. package/models/operations/createfeedback.d.ts.map +1 -1
  51. package/models/operations/createfeedback.js +8 -8
  52. package/models/operations/createfeedback.js.map +1 -1
  53. package/models/operations/createprompt.d.ts +18 -18
  54. package/models/operations/createprompt.d.ts.map +1 -1
  55. package/models/operations/createprompt.js +18 -18
  56. package/models/operations/createprompt.js.map +1 -1
  57. package/models/operations/deploymentcreatemetric.d.ts +12 -12
  58. package/models/operations/deploymentcreatemetric.d.ts.map +1 -1
  59. package/models/operations/deploymentcreatemetric.js +12 -12
  60. package/models/operations/deploymentcreatemetric.js.map +1 -1
  61. package/models/operations/deploymentgetconfig.d.ts +33 -33
  62. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  63. package/models/operations/deploymentgetconfig.js +36 -36
  64. package/models/operations/deploymentgetconfig.js.map +1 -1
  65. package/models/operations/deploymentinvoke.d.ts +4 -4
  66. package/models/operations/deploymentinvoke.js +8 -8
  67. package/models/operations/deployments.d.ts +6 -6
  68. package/models/operations/deployments.d.ts.map +1 -1
  69. package/models/operations/deployments.js +6 -6
  70. package/models/operations/deployments.js.map +1 -1
  71. package/models/operations/deploymentstream.d.ts +16 -16
  72. package/models/operations/deploymentstream.d.ts.map +1 -1
  73. package/models/operations/deploymentstream.js +16 -16
  74. package/models/operations/deploymentstream.js.map +1 -1
  75. package/models/operations/evalsageappropriate.d.ts +2 -2
  76. package/models/operations/evalsageappropriate.js +2 -2
  77. package/models/operations/evalsfactcheckingknowledgebase.d.ts +2 -2
  78. package/models/operations/evalsfactcheckingknowledgebase.js +2 -2
  79. package/models/operations/evalsgrammar.d.ts +2 -2
  80. package/models/operations/evalsgrammar.js +2 -2
  81. package/models/operations/evalslocalization.d.ts +2 -2
  82. package/models/operations/evalslocalization.js +2 -2
  83. package/models/operations/evalspii.d.ts +2 -2
  84. package/models/operations/evalspii.js +2 -2
  85. package/models/operations/evalsragascoherence.d.ts +2 -2
  86. package/models/operations/evalsragascoherence.js +2 -2
  87. package/models/operations/evalsragasconciseness.d.ts +2 -2
  88. package/models/operations/evalsragasconciseness.js +2 -2
  89. package/models/operations/evalsragascontextprecision.d.ts +2 -2
  90. package/models/operations/evalsragascontextprecision.js +2 -2
  91. package/models/operations/evalsragascorrectness.d.ts +2 -2
  92. package/models/operations/evalsragascorrectness.js +2 -2
  93. package/models/operations/evalsragasfaithfulness.d.ts +2 -2
  94. package/models/operations/evalsragasfaithfulness.js +2 -2
  95. package/models/operations/evalsragasharmfulness.d.ts +2 -2
  96. package/models/operations/evalsragasharmfulness.js +2 -2
  97. package/models/operations/evalsragasmaliciousness.d.ts +2 -2
  98. package/models/operations/evalsragasmaliciousness.js +2 -2
  99. package/models/operations/evalsragasresponserelevancy.d.ts +2 -2
  100. package/models/operations/evalsragasresponserelevancy.js +2 -2
  101. package/models/operations/evalssentimentclassification.d.ts +2 -2
  102. package/models/operations/evalssentimentclassification.js +2 -2
  103. package/models/operations/evalssummarization.d.ts +2 -2
  104. package/models/operations/evalssummarization.js +2 -2
  105. package/models/operations/evalstoneofvoice.d.ts +2 -2
  106. package/models/operations/evalstoneofvoice.js +2 -2
  107. package/models/operations/evalstranslation.d.ts +2 -2
  108. package/models/operations/evalstranslation.js +2 -2
  109. package/models/operations/fileget.js +2 -2
  110. package/models/operations/filelist.js +2 -2
  111. package/models/operations/fileupload.js +2 -2
  112. package/models/operations/getallprompts.d.ts +10 -10
  113. package/models/operations/getallprompts.d.ts.map +1 -1
  114. package/models/operations/getallprompts.js +10 -10
  115. package/models/operations/getallprompts.js.map +1 -1
  116. package/models/operations/getevals.d.ts +88 -88
  117. package/models/operations/getevals.d.ts.map +1 -1
  118. package/models/operations/getevals.js +187 -182
  119. package/models/operations/getevals.js.map +1 -1
  120. package/models/operations/getoneprompt.d.ts +10 -10
  121. package/models/operations/getoneprompt.d.ts.map +1 -1
  122. package/models/operations/getoneprompt.js +10 -10
  123. package/models/operations/getoneprompt.js.map +1 -1
  124. package/models/operations/getpromptversion.d.ts +10 -10
  125. package/models/operations/getpromptversion.d.ts.map +1 -1
  126. package/models/operations/getpromptversion.js +10 -10
  127. package/models/operations/getpromptversion.js.map +1 -1
  128. package/models/operations/index.d.ts +0 -2
  129. package/models/operations/index.d.ts.map +1 -1
  130. package/models/operations/index.js +0 -2
  131. package/models/operations/index.js.map +1 -1
  132. package/models/operations/invokeeval.d.ts +108 -108
  133. package/models/operations/invokeeval.d.ts.map +1 -1
  134. package/models/operations/invokeeval.js +141 -144
  135. package/models/operations/invokeeval.js.map +1 -1
  136. package/models/operations/listcontacts.js +2 -2
  137. package/models/operations/listdatasetdatapoints.d.ts +6 -6
  138. package/models/operations/listdatasetdatapoints.d.ts.map +1 -1
  139. package/models/operations/listdatasetdatapoints.js +8 -8
  140. package/models/operations/listdatasetdatapoints.js.map +1 -1
  141. package/models/operations/listdatasets.js +2 -2
  142. package/models/operations/listdatasources.js +2 -2
  143. package/models/operations/listpromptversions.d.ts +10 -10
  144. package/models/operations/listpromptversions.d.ts.map +1 -1
  145. package/models/operations/listpromptversions.js +10 -10
  146. package/models/operations/listpromptversions.js.map +1 -1
  147. package/models/operations/retrievecontact.js +2 -2
  148. package/models/operations/retrievedatapoint.d.ts +6 -6
  149. package/models/operations/retrievedatapoint.d.ts.map +1 -1
  150. package/models/operations/retrievedatapoint.js +8 -8
  151. package/models/operations/retrievedatapoint.js.map +1 -1
  152. package/models/operations/retrievedataset.js +2 -2
  153. package/models/operations/retrievedatasource.js +2 -2
  154. package/models/operations/updatecontact.js +2 -2
  155. package/models/operations/updatedatapoint.d.ts +12 -12
  156. package/models/operations/updatedatapoint.d.ts.map +1 -1
  157. package/models/operations/updatedatapoint.js +14 -14
  158. package/models/operations/updatedatapoint.js.map +1 -1
  159. package/models/operations/updatedataset.js +2 -2
  160. package/models/operations/updatedatasource.js +2 -2
  161. package/models/operations/updateeval.d.ts +38 -38
  162. package/models/operations/updateeval.d.ts.map +1 -1
  163. package/models/operations/updateeval.js +60 -60
  164. package/models/operations/updateeval.js.map +1 -1
  165. package/models/operations/updateprompt.d.ts +27 -86
  166. package/models/operations/updateprompt.d.ts.map +1 -1
  167. package/models/operations/updateprompt.js +39 -64
  168. package/models/operations/updateprompt.js.map +1 -1
  169. package/package.json +2 -3
  170. package/packages/orq-rc/FUNCTIONS.md +103 -0
  171. package/packages/orq-rc/README.md +947 -0
  172. package/packages/orq-rc/RUNTIMES.md +48 -0
  173. package/packages/orq-rc/docs/sdks/contacts/README.md +445 -0
  174. package/packages/orq-rc/docs/sdks/datasets/README.md +908 -0
  175. package/packages/orq-rc/docs/sdks/deployments/README.md +395 -0
  176. package/packages/orq-rc/docs/sdks/evals/README.md +2822 -0
  177. package/packages/orq-rc/docs/sdks/feedback/README.md +88 -0
  178. package/packages/orq-rc/docs/sdks/files/README.md +297 -0
  179. package/packages/orq-rc/docs/sdks/knowledge/README.md +1227 -0
  180. package/packages/orq-rc/docs/sdks/metrics/README.md +82 -0
  181. package/packages/orq-rc/docs/sdks/models/README.md +75 -0
  182. package/packages/orq-rc/docs/sdks/orq/README.md +10 -0
  183. package/packages/orq-rc/docs/sdks/prompts/README.md +550 -0
  184. package/packages/orq-rc/docs/sdks/remoteconfigs/README.md +76 -0
  185. package/packages/orq-rc/jsr.json +28 -0
  186. package/packages/orq-rc/package-lock.json +3217 -0
  187. package/packages/orq-rc/package.json +45 -0
  188. package/packages/orq-rc/src/core.ts +13 -0
  189. package/{src/funcs/postV2ModelsLitellmImport.ts → packages/orq-rc/src/funcs/contactsCreate.ts} +14 -16
  190. package/packages/orq-rc/src/funcs/contactsDelete.ts +176 -0
  191. package/packages/orq-rc/src/funcs/contactsList.ts +169 -0
  192. package/packages/orq-rc/src/funcs/contactsRetrieve.ts +175 -0
  193. package/packages/orq-rc/src/funcs/contactsUpdate.ts +176 -0
  194. package/packages/orq-rc/src/funcs/datasetsClear.ts +167 -0
  195. package/packages/orq-rc/src/funcs/datasetsCreate.ts +165 -0
  196. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +167 -0
  197. package/packages/orq-rc/src/funcs/datasetsCreateExperiment.ts +168 -0
  198. package/packages/orq-rc/src/funcs/datasetsDelete.ts +167 -0
  199. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +182 -0
  200. package/packages/orq-rc/src/funcs/datasetsList.ts +167 -0
  201. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +174 -0
  202. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +175 -0
  203. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +181 -0
  204. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +176 -0
  205. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +179 -0
  206. package/packages/orq-rc/src/funcs/deploymentsCreateExperiment.ts +173 -0
  207. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +168 -0
  208. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +176 -0
  209. package/packages/orq-rc/src/funcs/deploymentsList.ts +176 -0
  210. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +168 -0
  211. package/packages/orq-rc/src/funcs/deploymentsStream.ts +184 -0
  212. package/packages/orq-rc/src/funcs/evalsAgeAppropriate.ts +175 -0
  213. package/packages/orq-rc/src/funcs/evalsAll.ts +173 -0
  214. package/packages/orq-rc/src/funcs/evalsBertScore.ts +175 -0
  215. package/packages/orq-rc/src/funcs/evalsBleuScore.ts +175 -0
  216. package/packages/orq-rc/src/funcs/evalsBotDetection.ts +175 -0
  217. package/packages/orq-rc/src/funcs/evalsContains.ts +175 -0
  218. package/packages/orq-rc/src/funcs/evalsContainsAll.ts +175 -0
  219. package/packages/orq-rc/src/funcs/evalsContainsAny.ts +175 -0
  220. package/packages/orq-rc/src/funcs/evalsContainsEmail.ts +175 -0
  221. package/packages/orq-rc/src/funcs/evalsContainsNone.ts +175 -0
  222. package/packages/orq-rc/src/funcs/evalsContainsUrl.ts +175 -0
  223. package/packages/orq-rc/src/funcs/evalsContainsValidLink.ts +177 -0
  224. package/packages/orq-rc/src/funcs/evalsCreate.ts +169 -0
  225. package/packages/orq-rc/src/funcs/evalsDelete.ts +173 -0
  226. package/packages/orq-rc/src/funcs/evalsEndsWith.ts +175 -0
  227. package/packages/orq-rc/src/funcs/evalsExactMatch.ts +175 -0
  228. package/packages/orq-rc/src/funcs/evalsFactCheckingKnowledgeBase.ts +183 -0
  229. package/packages/orq-rc/src/funcs/evalsGrammar.ts +173 -0
  230. package/packages/orq-rc/src/funcs/evalsInvoke.ts +177 -0
  231. package/packages/orq-rc/src/funcs/evalsLengthBetween.ts +175 -0
  232. package/packages/orq-rc/src/funcs/evalsLengthGreaterThan.ts +177 -0
  233. package/packages/orq-rc/src/funcs/evalsLengthLessThan.ts +175 -0
  234. package/packages/orq-rc/src/funcs/evalsLocalization.ts +175 -0
  235. package/packages/orq-rc/src/funcs/evalsPii.ts +173 -0
  236. package/packages/orq-rc/src/funcs/evalsRagasCoherence.ts +175 -0
  237. package/packages/orq-rc/src/funcs/evalsRagasConciseness.ts +174 -0
  238. package/packages/orq-rc/src/funcs/evalsRagasContextPrecision.ts +180 -0
  239. package/packages/orq-rc/src/funcs/evalsRagasCorrectness.ts +174 -0
  240. package/packages/orq-rc/src/funcs/evalsRagasFaithfulness.ts +177 -0
  241. package/packages/orq-rc/src/funcs/evalsRagasHarmfulness.ts +174 -0
  242. package/packages/orq-rc/src/funcs/evalsRagasMaliciousness.ts +177 -0
  243. package/packages/orq-rc/src/funcs/evalsRagasResponseRelevancy.ts +183 -0
  244. package/packages/orq-rc/src/funcs/evalsRagasSummarization.ts +177 -0
  245. package/packages/orq-rc/src/funcs/evalsSentimentClassification.ts +183 -0
  246. package/packages/orq-rc/src/funcs/evalsSummarization.ts +175 -0
  247. package/packages/orq-rc/src/funcs/evalsToneOfVoice.ts +175 -0
  248. package/packages/orq-rc/src/funcs/evalsTranslation.ts +175 -0
  249. package/packages/orq-rc/src/funcs/evalsUpdate.ts +173 -0
  250. package/packages/orq-rc/src/funcs/evalsValidJson.ts +175 -0
  251. package/packages/orq-rc/src/funcs/feedbackCreate.ts +160 -0
  252. package/packages/orq-rc/src/funcs/filesCreate.ts +187 -0
  253. package/packages/orq-rc/src/funcs/filesDelete.ts +164 -0
  254. package/packages/orq-rc/src/funcs/filesGet.ts +166 -0
  255. package/packages/orq-rc/src/funcs/filesList.ts +167 -0
  256. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +158 -0
  257. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +171 -0
  258. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +166 -0
  259. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +167 -0
  260. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +174 -0
  261. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +173 -0
  262. package/packages/orq-rc/src/funcs/knowledgeList.ts +169 -0
  263. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +178 -0
  264. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +174 -0
  265. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +166 -0
  266. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +173 -0
  267. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +169 -0
  268. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +167 -0
  269. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +164 -0
  270. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +174 -0
  271. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +170 -0
  272. package/{src/funcs/getV2ModelsLitellmModels.ts → packages/orq-rc/src/funcs/modelsList.ts} +9 -10
  273. package/packages/orq-rc/src/funcs/promptsCreate.ts +160 -0
  274. package/packages/orq-rc/src/funcs/promptsDelete.ts +164 -0
  275. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +181 -0
  276. package/packages/orq-rc/src/funcs/promptsList.ts +167 -0
  277. package/packages/orq-rc/src/funcs/promptsListVersions.ts +173 -0
  278. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +166 -0
  279. package/packages/orq-rc/src/funcs/promptsUpdate.ts +173 -0
  280. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +161 -0
  281. package/packages/orq-rc/src/hooks/global.ts +44 -0
  282. package/packages/orq-rc/src/hooks/hooks.ts +132 -0
  283. package/packages/orq-rc/src/hooks/index.ts +6 -0
  284. package/packages/orq-rc/src/hooks/registration.ts +15 -0
  285. package/packages/orq-rc/src/hooks/types.ts +112 -0
  286. package/packages/orq-rc/src/index.ts +9 -0
  287. package/packages/orq-rc/src/lib/base64.ts +37 -0
  288. package/packages/orq-rc/src/lib/config.ts +74 -0
  289. package/packages/orq-rc/src/lib/dlv.ts +53 -0
  290. package/packages/orq-rc/src/lib/encodings.ts +483 -0
  291. package/packages/orq-rc/src/lib/env.ts +73 -0
  292. package/packages/orq-rc/src/lib/event-streams.ts +264 -0
  293. package/packages/orq-rc/src/lib/files.ts +82 -0
  294. package/packages/orq-rc/src/lib/http.ts +323 -0
  295. package/packages/orq-rc/src/lib/is-plain-object.ts +43 -0
  296. package/packages/orq-rc/src/lib/logger.ts +9 -0
  297. package/packages/orq-rc/src/lib/matchers.ts +348 -0
  298. package/packages/orq-rc/src/lib/primitives.ts +150 -0
  299. package/packages/orq-rc/src/lib/retries.ts +218 -0
  300. package/packages/orq-rc/src/lib/schemas.ts +91 -0
  301. package/packages/orq-rc/src/lib/sdks.ts +407 -0
  302. package/packages/orq-rc/src/lib/security.ts +261 -0
  303. package/packages/orq-rc/src/lib/url.ts +33 -0
  304. package/packages/orq-rc/src/mcp-server/cli/start/command.ts +125 -0
  305. package/packages/orq-rc/src/mcp-server/cli/start/impl.ts +140 -0
  306. package/packages/orq-rc/src/mcp-server/cli.ts +13 -0
  307. package/packages/orq-rc/src/mcp-server/console-logger.ts +71 -0
  308. package/packages/orq-rc/src/mcp-server/extensions.ts +17 -0
  309. package/packages/orq-rc/src/mcp-server/mcp-server.ts +26 -0
  310. package/packages/orq-rc/src/mcp-server/prompts.ts +117 -0
  311. package/packages/orq-rc/src/mcp-server/resources.ts +172 -0
  312. package/packages/orq-rc/src/mcp-server/scopes.ts +7 -0
  313. package/packages/orq-rc/src/mcp-server/server.ts +247 -0
  314. package/packages/orq-rc/src/mcp-server/shared.ts +75 -0
  315. package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +37 -0
  316. package/packages/orq-rc/src/mcp-server/tools/contactsDelete.ts +35 -0
  317. package/packages/orq-rc/src/mcp-server/tools/contactsList.ts +37 -0
  318. package/packages/orq-rc/src/mcp-server/tools/contactsRetrieve.ts +37 -0
  319. package/packages/orq-rc/src/mcp-server/tools/contactsUpdate.ts +37 -0
  320. package/packages/orq-rc/src/mcp-server/tools/datasetsClear.ts +35 -0
  321. package/packages/orq-rc/src/mcp-server/tools/datasetsCreate.ts +37 -0
  322. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoint.ts +37 -0
  323. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateExperiment.ts +37 -0
  324. package/packages/orq-rc/src/mcp-server/tools/datasetsDelete.ts +35 -0
  325. package/packages/orq-rc/src/mcp-server/tools/datasetsDeleteDatapoint.ts +35 -0
  326. package/packages/orq-rc/src/mcp-server/tools/datasetsList.ts +37 -0
  327. package/packages/orq-rc/src/mcp-server/tools/datasetsListDatapoints.ts +37 -0
  328. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieve.ts +37 -0
  329. package/{src/mcp-server/tools/postV2ModelsLitellmImport.ts → packages/orq-rc/src/mcp-server/tools/datasetsRetrieveDatapoint.ts} +7 -8
  330. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdate.ts +37 -0
  331. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdateDatapoint.ts +35 -0
  332. package/packages/orq-rc/src/mcp-server/tools/deploymentsCreateExperiment.ts +37 -0
  333. package/packages/orq-rc/src/mcp-server/tools/deploymentsGetConfig.ts +37 -0
  334. package/packages/orq-rc/src/mcp-server/tools/deploymentsInvoke.ts +37 -0
  335. package/packages/orq-rc/src/mcp-server/tools/deploymentsList.ts +37 -0
  336. package/packages/orq-rc/src/mcp-server/tools/deploymentsMetricsCreate.ts +37 -0
  337. package/packages/orq-rc/src/mcp-server/tools/deploymentsStream.ts +37 -0
  338. package/packages/orq-rc/src/mcp-server/tools/evalsAgeAppropriate.ts +35 -0
  339. package/packages/orq-rc/src/mcp-server/tools/evalsAll.ts +35 -0
  340. package/packages/orq-rc/src/mcp-server/tools/evalsBertScore.ts +35 -0
  341. package/packages/orq-rc/src/mcp-server/tools/evalsBleuScore.ts +35 -0
  342. package/packages/orq-rc/src/mcp-server/tools/evalsBotDetection.ts +35 -0
  343. package/packages/orq-rc/src/mcp-server/tools/evalsContains.ts +35 -0
  344. package/packages/orq-rc/src/mcp-server/tools/evalsContainsAll.ts +35 -0
  345. package/packages/orq-rc/src/mcp-server/tools/evalsContainsAny.ts +35 -0
  346. package/packages/orq-rc/src/mcp-server/tools/evalsContainsEmail.ts +35 -0
  347. package/packages/orq-rc/src/mcp-server/tools/evalsContainsNone.ts +35 -0
  348. package/packages/orq-rc/src/mcp-server/tools/evalsContainsUrl.ts +35 -0
  349. package/packages/orq-rc/src/mcp-server/tools/evalsContainsValidLink.ts +36 -0
  350. package/packages/orq-rc/src/mcp-server/tools/evalsCreate.ts +35 -0
  351. package/packages/orq-rc/src/mcp-server/tools/evalsDelete.ts +33 -0
  352. package/packages/orq-rc/src/mcp-server/tools/evalsEndsWith.ts +35 -0
  353. package/packages/orq-rc/src/mcp-server/tools/evalsExactMatch.ts +35 -0
  354. package/packages/orq-rc/src/mcp-server/tools/evalsFactCheckingKnowledgeBase.ts +37 -0
  355. package/packages/orq-rc/src/mcp-server/tools/evalsGrammar.ts +35 -0
  356. package/packages/orq-rc/src/mcp-server/tools/evalsInvoke.ts +35 -0
  357. package/packages/orq-rc/src/mcp-server/tools/evalsLengthBetween.ts +35 -0
  358. package/packages/orq-rc/src/mcp-server/tools/evalsLengthGreaterThan.ts +36 -0
  359. package/packages/orq-rc/src/mcp-server/tools/evalsLengthLessThan.ts +35 -0
  360. package/packages/orq-rc/src/mcp-server/tools/evalsLocalization.ts +35 -0
  361. package/packages/orq-rc/src/mcp-server/tools/evalsPii.ts +35 -0
  362. package/packages/orq-rc/src/mcp-server/tools/evalsRagasCoherence.ts +35 -0
  363. package/packages/orq-rc/src/mcp-server/tools/evalsRagasConciseness.ts +35 -0
  364. package/packages/orq-rc/src/mcp-server/tools/evalsRagasContextPrecision.ts +36 -0
  365. package/packages/orq-rc/src/mcp-server/tools/evalsRagasCorrectness.ts +35 -0
  366. package/packages/orq-rc/src/mcp-server/tools/evalsRagasFaithfulness.ts +36 -0
  367. package/packages/orq-rc/src/mcp-server/tools/evalsRagasHarmfulness.ts +35 -0
  368. package/packages/orq-rc/src/mcp-server/tools/evalsRagasMaliciousness.ts +36 -0
  369. package/packages/orq-rc/src/mcp-server/tools/evalsRagasResponseRelevancy.ts +36 -0
  370. package/packages/orq-rc/src/mcp-server/tools/evalsRagasSummarization.ts +36 -0
  371. package/packages/orq-rc/src/mcp-server/tools/evalsSentimentClassification.ts +36 -0
  372. package/packages/orq-rc/src/mcp-server/tools/evalsSummarization.ts +35 -0
  373. package/packages/orq-rc/src/mcp-server/tools/evalsToneOfVoice.ts +35 -0
  374. package/packages/orq-rc/src/mcp-server/tools/evalsTranslation.ts +35 -0
  375. package/packages/orq-rc/src/mcp-server/tools/evalsUpdate.ts +35 -0
  376. package/packages/orq-rc/src/mcp-server/tools/evalsValidJson.ts +35 -0
  377. package/packages/orq-rc/src/mcp-server/tools/feedbackCreate.ts +37 -0
  378. package/packages/orq-rc/src/mcp-server/tools/filesCreate.ts +37 -0
  379. package/packages/orq-rc/src/mcp-server/tools/filesDelete.ts +33 -0
  380. package/packages/orq-rc/src/mcp-server/tools/filesGet.ts +37 -0
  381. package/packages/orq-rc/src/mcp-server/tools/filesList.ts +37 -0
  382. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreate.ts +35 -0
  383. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateChunks.ts +35 -0
  384. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateDatasource.ts +35 -0
  385. package/packages/orq-rc/src/mcp-server/tools/knowledgeDelete.ts +35 -0
  386. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunk.ts +33 -0
  387. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteDatasource.ts +35 -0
  388. package/packages/orq-rc/src/mcp-server/tools/knowledgeList.ts +37 -0
  389. package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunks.ts +35 -0
  390. package/packages/orq-rc/src/mcp-server/tools/knowledgeListDatasources.ts +35 -0
  391. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieve.ts +37 -0
  392. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveChunk.ts +35 -0
  393. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveDatasource.ts +35 -0
  394. package/packages/orq-rc/src/mcp-server/tools/knowledgeSearch.ts +37 -0
  395. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdate.ts +35 -0
  396. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateChunk.ts +35 -0
  397. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateDatasource.ts +35 -0
  398. package/{src/mcp-server/tools/getV2ModelsLitellmModels.ts → packages/orq-rc/src/mcp-server/tools/modelsList.ts} +6 -6
  399. package/packages/orq-rc/src/mcp-server/tools/promptsCreate.ts +35 -0
  400. package/packages/orq-rc/src/mcp-server/tools/promptsDelete.ts +33 -0
  401. package/packages/orq-rc/src/mcp-server/tools/promptsGetVersion.ts +37 -0
  402. package/packages/orq-rc/src/mcp-server/tools/promptsList.ts +37 -0
  403. package/packages/orq-rc/src/mcp-server/tools/promptsListVersions.ts +37 -0
  404. package/packages/orq-rc/src/mcp-server/tools/promptsRetrieve.ts +37 -0
  405. package/packages/orq-rc/src/mcp-server/tools/promptsUpdate.ts +35 -0
  406. package/packages/orq-rc/src/mcp-server/tools/remoteconfigsRetrieve.ts +36 -0
  407. package/packages/orq-rc/src/mcp-server/tools.ts +129 -0
  408. package/packages/orq-rc/src/models/components/deployments.ts +7289 -0
  409. package/packages/orq-rc/src/models/components/index.ts +6 -0
  410. package/packages/orq-rc/src/models/components/security.ts +71 -0
  411. package/packages/orq-rc/src/models/errors/apierror.ts +34 -0
  412. package/packages/orq-rc/src/models/errors/createeval.ts +82 -0
  413. package/packages/orq-rc/src/models/errors/deletecontact.ts +91 -0
  414. package/packages/orq-rc/src/models/errors/deleteeval.ts +82 -0
  415. package/packages/orq-rc/src/models/errors/evalsageappropriate.ts +160 -0
  416. package/packages/orq-rc/src/models/errors/evalsbertscore.ts +158 -0
  417. package/packages/orq-rc/src/models/errors/evalsbleuscore.ts +158 -0
  418. package/packages/orq-rc/src/models/errors/evalsbotdetection.ts +159 -0
  419. package/packages/orq-rc/src/models/errors/evalscontains.ts +158 -0
  420. package/packages/orq-rc/src/models/errors/evalscontainsall.ts +159 -0
  421. package/packages/orq-rc/src/models/errors/evalscontainsany.ts +159 -0
  422. package/packages/orq-rc/src/models/errors/evalscontainsemail.ts +160 -0
  423. package/packages/orq-rc/src/models/errors/evalscontainsnone.ts +159 -0
  424. package/packages/orq-rc/src/models/errors/evalscontainsurl.ts +159 -0
  425. package/packages/orq-rc/src/models/errors/evalscontainsvalidlink.ts +161 -0
  426. package/packages/orq-rc/src/models/errors/evalsendswith.ts +158 -0
  427. package/packages/orq-rc/src/models/errors/evalsexactmatch.ts +158 -0
  428. package/packages/orq-rc/src/models/errors/evalsfactcheckingknowledgebase.ts +164 -0
  429. package/packages/orq-rc/src/models/errors/evalsgrammar.ts +158 -0
  430. package/packages/orq-rc/src/models/errors/evalslengthbetween.ts +160 -0
  431. package/packages/orq-rc/src/models/errors/evalslengthgreaterthan.ts +161 -0
  432. package/packages/orq-rc/src/models/errors/evalslengthlessthan.ts +160 -0
  433. package/packages/orq-rc/src/models/errors/evalslocalization.ts +159 -0
  434. package/packages/orq-rc/src/models/errors/evalspii.ts +158 -0
  435. package/packages/orq-rc/src/models/errors/evalsragascoherence.ts +160 -0
  436. package/packages/orq-rc/src/models/errors/evalsragasconciseness.ts +161 -0
  437. package/packages/orq-rc/src/models/errors/evalsragascontextprecision.ts +164 -0
  438. package/packages/orq-rc/src/models/errors/evalsragascorrectness.ts +161 -0
  439. package/packages/orq-rc/src/models/errors/evalsragasfaithfulness.ts +161 -0
  440. package/packages/orq-rc/src/models/errors/evalsragasharmfulness.ts +161 -0
  441. package/packages/orq-rc/src/models/errors/evalsragasmaliciousness.ts +162 -0
  442. package/packages/orq-rc/src/models/errors/evalsragasresponserelevancy.ts +164 -0
  443. package/packages/orq-rc/src/models/errors/evalsragassummarization.ts +162 -0
  444. package/packages/orq-rc/src/models/errors/evalssentimentclassification.ts +164 -0
  445. package/packages/orq-rc/src/models/errors/evalssummarization.ts +160 -0
  446. package/packages/orq-rc/src/models/errors/evalstoneofvoice.ts +159 -0
  447. package/packages/orq-rc/src/models/errors/evalstranslation.ts +159 -0
  448. package/packages/orq-rc/src/models/errors/evalsvalidjson.ts +158 -0
  449. package/packages/orq-rc/src/models/errors/getevals.ts +82 -0
  450. package/packages/orq-rc/src/models/errors/getpromptversion.ts +82 -0
  451. package/packages/orq-rc/src/models/errors/honoapierror.ts +92 -0
  452. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +62 -0
  453. package/packages/orq-rc/src/models/errors/index.ts +53 -0
  454. package/packages/orq-rc/src/models/errors/invokeeval.ts +158 -0
  455. package/packages/orq-rc/src/models/errors/orqerror.ts +35 -0
  456. package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +50 -0
  457. package/packages/orq-rc/src/models/errors/retrievecontact.ts +91 -0
  458. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +109 -0
  459. package/packages/orq-rc/src/models/errors/updatecontact.ts +85 -0
  460. package/packages/orq-rc/src/models/errors/updateeval.ts +82 -0
  461. package/packages/orq-rc/src/models/errors/updateprompt.ts +82 -0
  462. package/packages/orq-rc/src/models/operations/cleardataset.ts +75 -0
  463. package/packages/orq-rc/src/models/operations/createchunk.ts +428 -0
  464. package/packages/orq-rc/src/models/operations/createcontact.ts +267 -0
  465. package/packages/orq-rc/src/models/operations/createdataset.ts +296 -0
  466. package/packages/orq-rc/src/models/operations/createdatasetexperiment.ts +307 -0
  467. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +5222 -0
  468. package/packages/orq-rc/src/models/operations/createdatasource.ts +852 -0
  469. package/packages/orq-rc/src/models/operations/createdeploymentexperiment.ts +321 -0
  470. package/packages/orq-rc/src/models/operations/createeval.ts +3830 -0
  471. package/packages/orq-rc/src/models/operations/createfeedback.ts +286 -0
  472. package/packages/orq-rc/src/models/operations/createknowledge.ts +846 -0
  473. package/packages/orq-rc/src/models/operations/createprompt.ts +4081 -0
  474. package/packages/orq-rc/src/models/operations/deletechunk.ts +96 -0
  475. package/packages/orq-rc/src/models/operations/deletecontact.ts +69 -0
  476. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +81 -0
  477. package/packages/orq-rc/src/models/operations/deletedataset.ts +75 -0
  478. package/packages/orq-rc/src/models/operations/deletedatasource.ts +87 -0
  479. package/packages/orq-rc/src/models/operations/deleteeval.ts +66 -0
  480. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +78 -0
  481. package/packages/orq-rc/src/models/operations/deleteprompt.ts +69 -0
  482. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +5439 -0
  483. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +9378 -0
  484. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +1256 -0
  485. package/packages/orq-rc/src/models/operations/deployments.ts +2327 -0
  486. package/packages/orq-rc/src/models/operations/deploymentstream.ts +9499 -0
  487. package/packages/orq-rc/src/models/operations/evalsageappropriate.ts +253 -0
  488. package/packages/orq-rc/src/models/operations/evalsbertscore.ts +197 -0
  489. package/packages/orq-rc/src/models/operations/evalsbleuscore.ts +131 -0
  490. package/packages/orq-rc/src/models/operations/evalsbotdetection.ts +249 -0
  491. package/packages/orq-rc/src/models/operations/evalscontains.ts +250 -0
  492. package/packages/orq-rc/src/models/operations/evalscontainsall.ts +248 -0
  493. package/packages/orq-rc/src/models/operations/evalscontainsany.ts +254 -0
  494. package/packages/orq-rc/src/models/operations/evalscontainsemail.ts +181 -0
  495. package/packages/orq-rc/src/models/operations/evalscontainsnone.ts +254 -0
  496. package/packages/orq-rc/src/models/operations/evalscontainsurl.ts +181 -0
  497. package/packages/orq-rc/src/models/operations/evalscontainsvalidlink.ts +186 -0
  498. package/packages/orq-rc/src/models/operations/evalsendswith.ts +250 -0
  499. package/packages/orq-rc/src/models/operations/evalsexactmatch.ts +183 -0
  500. package/packages/orq-rc/src/models/operations/evalsfactcheckingknowledgebase.ts +299 -0
  501. package/packages/orq-rc/src/models/operations/evalsgrammar.ts +243 -0
  502. package/packages/orq-rc/src/models/operations/evalslengthbetween.ts +268 -0
  503. package/packages/orq-rc/src/models/operations/evalslengthgreaterthan.ts +266 -0
  504. package/packages/orq-rc/src/models/operations/evalslengthlessthan.ts +259 -0
  505. package/packages/orq-rc/src/models/operations/evalslocalization.ts +253 -0
  506. package/packages/orq-rc/src/models/operations/evalspii.ts +243 -0
  507. package/packages/orq-rc/src/models/operations/evalsragascoherence.ts +152 -0
  508. package/packages/orq-rc/src/models/operations/evalsragasconciseness.ts +153 -0
  509. package/packages/orq-rc/src/models/operations/evalsragascontextprecision.ts +166 -0
  510. package/packages/orq-rc/src/models/operations/evalsragascorrectness.ts +153 -0
  511. package/packages/orq-rc/src/models/operations/evalsragasfaithfulness.ts +155 -0
  512. package/packages/orq-rc/src/models/operations/evalsragasharmfulness.ts +146 -0
  513. package/packages/orq-rc/src/models/operations/evalsragasmaliciousness.ts +157 -0
  514. package/packages/orq-rc/src/models/operations/evalsragasresponserelevancy.ts +165 -0
  515. package/packages/orq-rc/src/models/operations/evalsragassummarization.ts +150 -0
  516. package/packages/orq-rc/src/models/operations/evalssentimentclassification.ts +285 -0
  517. package/packages/orq-rc/src/models/operations/evalssummarization.ts +253 -0
  518. package/packages/orq-rc/src/models/operations/evalstoneofvoice.ts +251 -0
  519. package/packages/orq-rc/src/models/operations/evalstranslation.ts +251 -0
  520. package/packages/orq-rc/src/models/operations/evalsvalidjson.ts +177 -0
  521. package/packages/orq-rc/src/models/operations/filedelete.ts +78 -0
  522. package/packages/orq-rc/src/models/operations/fileget.ts +223 -0
  523. package/packages/orq-rc/src/models/operations/filelist.ts +337 -0
  524. package/packages/orq-rc/src/models/operations/fileupload.ts +327 -0
  525. package/packages/orq-rc/src/models/operations/getallprompts.ts +2295 -0
  526. package/packages/orq-rc/src/models/operations/getevals.ts +6162 -0
  527. package/packages/orq-rc/src/models/operations/getonechunk.ts +315 -0
  528. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +537 -0
  529. package/packages/orq-rc/src/models/operations/getoneprompt.ts +2156 -0
  530. package/packages/orq-rc/src/models/operations/getpromptversion.ts +2161 -0
  531. package/packages/orq-rc/src/models/operations/index.ts +96 -0
  532. package/packages/orq-rc/src/models/operations/invokeeval.ts +2520 -0
  533. package/packages/orq-rc/src/models/operations/listchunks.ts +494 -0
  534. package/packages/orq-rc/src/models/operations/listcontacts.ts +490 -0
  535. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2784 -0
  536. package/packages/orq-rc/src/models/operations/listdatasets.ts +406 -0
  537. package/packages/orq-rc/src/models/operations/listdatasources.ts +447 -0
  538. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +663 -0
  539. package/packages/orq-rc/src/models/operations/listmodels.ts +273 -0
  540. package/packages/orq-rc/src/models/operations/listpromptversions.ts +2293 -0
  541. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +190 -0
  542. package/packages/orq-rc/src/models/operations/retrievecontact.ts +210 -0
  543. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2586 -0
  544. package/packages/orq-rc/src/models/operations/retrievedataset.ts +288 -0
  545. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +273 -0
  546. package/packages/orq-rc/src/models/operations/searchknowledge.ts +3367 -0
  547. package/packages/orq-rc/src/models/operations/updatechunk.ts +448 -0
  548. package/packages/orq-rc/src/models/operations/updatecontact.ts +325 -0
  549. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +5155 -0
  550. package/packages/orq-rc/src/models/operations/updatedataset.ts +393 -0
  551. package/packages/orq-rc/src/models/operations/updatedatasource.ts +345 -0
  552. package/packages/orq-rc/src/models/operations/updateeval.ts +4131 -0
  553. package/packages/orq-rc/src/models/operations/updateknowledge.ts +980 -0
  554. package/packages/orq-rc/src/models/operations/updateprompt.ts +4218 -0
  555. package/packages/orq-rc/src/sdk/contacts.ts +99 -0
  556. package/packages/orq-rc/src/sdk/datasets.ts +222 -0
  557. package/packages/orq-rc/src/sdk/deployments.ts +107 -0
  558. package/packages/orq-rc/src/sdk/evals.ts +594 -0
  559. package/packages/orq-rc/src/sdk/feedback.ts +27 -0
  560. package/packages/orq-rc/src/sdk/files.ts +78 -0
  561. package/packages/orq-rc/src/sdk/index.ts +5 -0
  562. package/packages/orq-rc/src/sdk/knowledge.ts +264 -0
  563. package/packages/orq-rc/src/sdk/metrics.ts +27 -0
  564. package/packages/orq-rc/src/sdk/models.ts +25 -0
  565. package/packages/orq-rc/src/sdk/prompts.ts +126 -0
  566. package/packages/orq-rc/src/sdk/remoteconfigs.ts +24 -0
  567. package/packages/orq-rc/src/sdk/sdk.ts +67 -0
  568. package/packages/orq-rc/src/types/async.ts +68 -0
  569. package/packages/orq-rc/src/types/blobs.ts +31 -0
  570. package/packages/orq-rc/src/types/constdatetime.ts +15 -0
  571. package/packages/orq-rc/src/types/enums.ts +16 -0
  572. package/packages/orq-rc/src/types/fp.ts +50 -0
  573. package/packages/orq-rc/src/types/index.ts +11 -0
  574. package/packages/orq-rc/src/types/operations.ts +105 -0
  575. package/packages/orq-rc/src/types/rfcdate.ts +54 -0
  576. package/packages/orq-rc/src/types/streams.ts +21 -0
  577. package/packages/orq-rc/tsconfig.json +41 -0
  578. package/sdk/knowledge.d.ts +1 -1
  579. package/sdk/knowledge.d.ts.map +1 -1
  580. package/sdk/sdk.d.ts +1 -16
  581. package/sdk/sdk.d.ts.map +1 -1
  582. package/sdk/sdk.js +0 -21
  583. package/sdk/sdk.js.map +1 -1
  584. package/src/funcs/filesCreate.ts +11 -4
  585. package/src/funcs/knowledgeCreateChunks.ts +4 -4
  586. package/src/lib/config.ts +3 -3
  587. package/src/lib/files.ts +42 -0
  588. package/src/lib/security.ts +2 -2
  589. package/src/mcp-server/mcp-server.ts +1 -1
  590. package/src/mcp-server/server.ts +1 -5
  591. package/src/models/components/deployments.ts +24 -24
  592. package/src/models/operations/createchunk.ts +44 -54
  593. package/src/models/operations/createcontact.ts +2 -2
  594. package/src/models/operations/createdataset.ts +2 -2
  595. package/src/models/operations/createdatasetitem.ts +26 -26
  596. package/src/models/operations/createdatasource.ts +2 -2
  597. package/src/models/operations/createeval.ts +121 -121
  598. package/src/models/operations/createfeedback.ts +16 -16
  599. package/src/models/operations/createprompt.ts +39 -39
  600. package/src/models/operations/deploymentcreatemetric.ts +30 -26
  601. package/src/models/operations/deploymentgetconfig.ts +62 -68
  602. package/src/models/operations/deploymentinvoke.ts +13 -13
  603. package/src/models/operations/deployments.ts +14 -14
  604. package/src/models/operations/deploymentstream.ts +34 -34
  605. package/src/models/operations/evalsageappropriate.ts +4 -4
  606. package/src/models/operations/evalsfactcheckingknowledgebase.ts +4 -4
  607. package/src/models/operations/evalsgrammar.ts +4 -4
  608. package/src/models/operations/evalslocalization.ts +4 -4
  609. package/src/models/operations/evalspii.ts +4 -4
  610. package/src/models/operations/evalsragascoherence.ts +4 -4
  611. package/src/models/operations/evalsragasconciseness.ts +4 -4
  612. package/src/models/operations/evalsragascontextprecision.ts +4 -4
  613. package/src/models/operations/evalsragascorrectness.ts +4 -4
  614. package/src/models/operations/evalsragasfaithfulness.ts +4 -4
  615. package/src/models/operations/evalsragasharmfulness.ts +4 -4
  616. package/src/models/operations/evalsragasmaliciousness.ts +4 -4
  617. package/src/models/operations/evalsragasresponserelevancy.ts +4 -4
  618. package/src/models/operations/evalssentimentclassification.ts +4 -4
  619. package/src/models/operations/evalssummarization.ts +4 -4
  620. package/src/models/operations/evalstoneofvoice.ts +4 -4
  621. package/src/models/operations/evalstranslation.ts +4 -4
  622. package/src/models/operations/fileget.ts +2 -2
  623. package/src/models/operations/filelist.ts +2 -2
  624. package/src/models/operations/fileupload.ts +2 -2
  625. package/src/models/operations/getallprompts.ts +22 -22
  626. package/src/models/operations/getevals.ts +339 -364
  627. package/src/models/operations/getoneprompt.ts +22 -22
  628. package/src/models/operations/getpromptversion.ts +22 -22
  629. package/src/models/operations/index.ts +0 -2
  630. package/src/models/operations/invokeeval.ts +251 -223
  631. package/src/models/operations/listcontacts.ts +2 -2
  632. package/src/models/operations/listdatasetdatapoints.ts +20 -16
  633. package/src/models/operations/listdatasets.ts +2 -2
  634. package/src/models/operations/listdatasources.ts +2 -2
  635. package/src/models/operations/listpromptversions.ts +22 -22
  636. package/src/models/operations/retrievecontact.ts +2 -2
  637. package/src/models/operations/retrievedatapoint.ts +14 -14
  638. package/src/models/operations/retrievedataset.ts +2 -2
  639. package/src/models/operations/retrievedatasource.ts +2 -2
  640. package/src/models/operations/updatecontact.ts +2 -2
  641. package/src/models/operations/updatedatapoint.ts +29 -27
  642. package/src/models/operations/updatedataset.ts +2 -2
  643. package/src/models/operations/updatedatasource.ts +2 -2
  644. package/src/models/operations/updateeval.ts +139 -139
  645. package/src/models/operations/updateprompt.ts +61 -106
  646. package/src/sdk/knowledge.ts +1 -1
  647. package/src/sdk/sdk.ts +1 -37
  648. package/src/types/constdatetime.ts +1 -1
  649. package/types/constdatetime.js +1 -1
  650. package/funcs/getV2ModelsLitellmModels.d.ts +0 -17
  651. package/funcs/getV2ModelsLitellmModels.d.ts.map +0 -1
  652. package/funcs/getV2ModelsLitellmModels.js +0 -105
  653. package/funcs/getV2ModelsLitellmModels.js.map +0 -1
  654. package/funcs/postV2ModelsLitellmImport.d.ts +0 -17
  655. package/funcs/postV2ModelsLitellmImport.d.ts.map +0 -1
  656. package/funcs/postV2ModelsLitellmImport.js +0 -117
  657. package/funcs/postV2ModelsLitellmImport.js.map +0 -1
  658. package/mcp-server/tools/getV2ModelsLitellmModels.d.ts +0 -3
  659. package/mcp-server/tools/getV2ModelsLitellmModels.d.ts.map +0 -1
  660. package/mcp-server/tools/getV2ModelsLitellmModels.js +0 -26
  661. package/mcp-server/tools/getV2ModelsLitellmModels.js.map +0 -1
  662. package/mcp-server/tools/postV2ModelsLitellmImport.d.ts +0 -9
  663. package/mcp-server/tools/postV2ModelsLitellmImport.d.ts.map +0 -1
  664. package/mcp-server/tools/postV2ModelsLitellmImport.js +0 -65
  665. package/mcp-server/tools/postV2ModelsLitellmImport.js.map +0 -1
  666. package/models/operations/getv2modelslitellmmodels.d.ts +0 -185
  667. package/models/operations/getv2modelslitellmmodels.d.ts.map +0 -1
  668. package/models/operations/getv2modelslitellmmodels.js +0 -349
  669. package/models/operations/getv2modelslitellmmodels.js.map +0 -1
  670. package/models/operations/postv2modelslitellmimport.d.ts +0 -1333
  671. package/models/operations/postv2modelslitellmimport.d.ts.map +0 -1
  672. package/models/operations/postv2modelslitellmimport.js +0 -1400
  673. package/models/operations/postv2modelslitellmimport.js.map +0 -1
  674. package/src/models/operations/getv2modelslitellmmodels.ts +0 -530
  675. package/src/models/operations/postv2modelslitellmimport.ts +0 -2408
@@ -0,0 +1,2586 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type RetrieveDatapointRequest = {
13
+ datasetId: string;
14
+ datapointId: string;
15
+ };
16
+
17
+ /**
18
+ * The role of the messages author, in this case tool.
19
+ */
20
+ export const RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole = {
21
+ Tool: "tool",
22
+ } as const;
23
+ /**
24
+ * The role of the messages author, in this case tool.
25
+ */
26
+ export type RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole =
27
+ ClosedEnum<
28
+ typeof RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole
29
+ >;
30
+
31
+ /**
32
+ * The contents of the tool message.
33
+ */
34
+ export type RetrieveDatapointMessagesDatasetsResponseContent =
35
+ | string
36
+ | Array<string>;
37
+
38
+ export type RetrieveDatapointMessagesToolMessage = {
39
+ /**
40
+ * The role of the messages author, in this case tool.
41
+ */
42
+ role: RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole;
43
+ /**
44
+ * The contents of the tool message.
45
+ */
46
+ content: string | Array<string>;
47
+ /**
48
+ * Tool call that this message is responding to.
49
+ */
50
+ toolCallId: string;
51
+ };
52
+
53
+ /**
54
+ * The type of the content part.
55
+ */
56
+ export const RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType =
57
+ {
58
+ Refusal: "refusal",
59
+ } as const;
60
+ /**
61
+ * The type of the content part.
62
+ */
63
+ export type RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType =
64
+ ClosedEnum<
65
+ typeof RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType
66
+ >;
67
+
68
+ export type RetrieveDatapoint2RefusalContentPart = {
69
+ /**
70
+ * The type of the content part.
71
+ */
72
+ type: RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType;
73
+ /**
74
+ * The refusal message generated by the model.
75
+ */
76
+ refusal: string;
77
+ };
78
+
79
+ /**
80
+ * The type of the content part.
81
+ */
82
+ export const RetrieveDatapoint2DatasetsResponse200ApplicationJSONType = {
83
+ Text: "text",
84
+ } as const;
85
+ /**
86
+ * The type of the content part.
87
+ */
88
+ export type RetrieveDatapoint2DatasetsResponse200ApplicationJSONType =
89
+ ClosedEnum<typeof RetrieveDatapoint2DatasetsResponse200ApplicationJSONType>;
90
+
91
+ export type RetrieveDatapoint2TextContentPart = {
92
+ /**
93
+ * The type of the content part.
94
+ */
95
+ type: RetrieveDatapoint2DatasetsResponse200ApplicationJSONType;
96
+ /**
97
+ * The text content.
98
+ */
99
+ text: string;
100
+ };
101
+
102
+ export type RetrieveDatapointContentDatasets2 =
103
+ | RetrieveDatapoint2TextContentPart
104
+ | RetrieveDatapoint2RefusalContentPart;
105
+
106
+ /**
107
+ * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
108
+ */
109
+ export type RetrieveDatapointMessagesDatasetsContent =
110
+ | string
111
+ | Array<
112
+ RetrieveDatapoint2TextContentPart | RetrieveDatapoint2RefusalContentPart
113
+ >;
114
+
115
+ /**
116
+ * The role of the messages author, in this case `assistant`.
117
+ */
118
+ export const RetrieveDatapointMessagesDatasetsResponse200Role = {
119
+ Assistant: "assistant",
120
+ } as const;
121
+ /**
122
+ * The role of the messages author, in this case `assistant`.
123
+ */
124
+ export type RetrieveDatapointMessagesDatasetsResponse200Role = ClosedEnum<
125
+ typeof RetrieveDatapointMessagesDatasetsResponse200Role
126
+ >;
127
+
128
+ /**
129
+ * Data about a previous audio response from the model.
130
+ */
131
+ export type RetrieveDatapointMessagesAudio = {
132
+ /**
133
+ * Unique identifier for a previous audio response from the model.
134
+ */
135
+ id: string;
136
+ };
137
+
138
+ /**
139
+ * The type of the tool. Currently, only `function` is supported.
140
+ */
141
+ export const RetrieveDatapointMessagesType = {
142
+ Function: "function",
143
+ } as const;
144
+ /**
145
+ * The type of the tool. Currently, only `function` is supported.
146
+ */
147
+ export type RetrieveDatapointMessagesType = ClosedEnum<
148
+ typeof RetrieveDatapointMessagesType
149
+ >;
150
+
151
+ export type RetrieveDatapointMessagesFunction = {
152
+ /**
153
+ * The name of the function to call.
154
+ */
155
+ name?: string | undefined;
156
+ /**
157
+ * The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
158
+ */
159
+ arguments?: string | undefined;
160
+ };
161
+
162
+ export type RetrieveDatapointMessagesToolCalls = {
163
+ /**
164
+ * The ID of the tool call.
165
+ */
166
+ id: string;
167
+ /**
168
+ * The type of the tool. Currently, only `function` is supported.
169
+ */
170
+ type: RetrieveDatapointMessagesType;
171
+ function: RetrieveDatapointMessagesFunction;
172
+ };
173
+
174
+ export type RetrieveDatapointMessagesAssistantMessage = {
175
+ /**
176
+ * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
177
+ */
178
+ content?:
179
+ | string
180
+ | Array<
181
+ RetrieveDatapoint2TextContentPart | RetrieveDatapoint2RefusalContentPart
182
+ >
183
+ | null
184
+ | undefined;
185
+ /**
186
+ * The refusal message by the assistant.
187
+ */
188
+ refusal?: string | null | undefined;
189
+ /**
190
+ * The role of the messages author, in this case `assistant`.
191
+ */
192
+ role: RetrieveDatapointMessagesDatasetsResponse200Role;
193
+ /**
194
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
195
+ */
196
+ name?: string | undefined;
197
+ /**
198
+ * Data about a previous audio response from the model.
199
+ */
200
+ audio?: RetrieveDatapointMessagesAudio | null | undefined;
201
+ /**
202
+ * The tool calls generated by the model, such as function calls.
203
+ */
204
+ toolCalls?: Array<RetrieveDatapointMessagesToolCalls> | undefined;
205
+ /**
206
+ * Internal thought process of the model
207
+ */
208
+ reasoning?: string | undefined;
209
+ /**
210
+ * The signature holds a cryptographic token which verifies that the thinking block was generated by the model, and is verified when thinking is part of a multiturn conversation. This value should not be modified and should always be sent to the API when the reasoning is redacted. Currently only supported by `Anthropic`.
211
+ */
212
+ reasoningSignature?: string | undefined;
213
+ /**
214
+ * Occasionally the model's internal reasoning will be flagged by the safety systems of the provider. When this occurs, the provider will encrypt the reasoning. These redacted reasoning is decrypted when passed back to the API, allowing the model to continue its response without losing context.
215
+ */
216
+ redactedReasoning?: string | undefined;
217
+ };
218
+
219
+ /**
220
+ * The role of the messages author, in this case `user`.
221
+ */
222
+ export const RetrieveDatapointMessagesDatasetsResponseRole = {
223
+ User: "user",
224
+ } as const;
225
+ /**
226
+ * The role of the messages author, in this case `user`.
227
+ */
228
+ export type RetrieveDatapointMessagesDatasetsResponseRole = ClosedEnum<
229
+ typeof RetrieveDatapointMessagesDatasetsResponseRole
230
+ >;
231
+
232
+ /**
233
+ * The type of the content part. Always `file`.
234
+ */
235
+ export const RetrieveDatapoint2DatasetsResponse200Type = {
236
+ File: "file",
237
+ } as const;
238
+ /**
239
+ * The type of the content part. Always `file`.
240
+ */
241
+ export type RetrieveDatapoint2DatasetsResponse200Type = ClosedEnum<
242
+ typeof RetrieveDatapoint2DatasetsResponse200Type
243
+ >;
244
+
245
+ export type RetrieveDatapoint2File = {
246
+ /**
247
+ * The base64 encoded file data, used when passing the file to the model as a string.
248
+ */
249
+ fileData: string;
250
+ /**
251
+ * The name of the file, used when passing the file to the model as a string.
252
+ */
253
+ filename: string;
254
+ };
255
+
256
+ export type RetrieveDatapoint24 = {
257
+ /**
258
+ * The type of the content part. Always `file`.
259
+ */
260
+ type: RetrieveDatapoint2DatasetsResponse200Type;
261
+ file: RetrieveDatapoint2File;
262
+ };
263
+
264
+ export const RetrieveDatapoint2DatasetsResponseType = {
265
+ InputAudio: "input_audio",
266
+ } as const;
267
+ export type RetrieveDatapoint2DatasetsResponseType = ClosedEnum<
268
+ typeof RetrieveDatapoint2DatasetsResponseType
269
+ >;
270
+
271
+ /**
272
+ * The format of the encoded audio data. Currently supports `wav` and `mp3`.
273
+ */
274
+ export const RetrieveDatapoint2Format = {
275
+ Mp3: "mp3",
276
+ Wav: "wav",
277
+ } as const;
278
+ /**
279
+ * The format of the encoded audio data. Currently supports `wav` and `mp3`.
280
+ */
281
+ export type RetrieveDatapoint2Format = ClosedEnum<
282
+ typeof RetrieveDatapoint2Format
283
+ >;
284
+
285
+ export type RetrieveDatapoint2InputAudio = {
286
+ /**
287
+ * Base64 encoded audio data.
288
+ */
289
+ data: string;
290
+ /**
291
+ * The format of the encoded audio data. Currently supports `wav` and `mp3`.
292
+ */
293
+ format: RetrieveDatapoint2Format;
294
+ };
295
+
296
+ export type RetrieveDatapoint23 = {
297
+ type: RetrieveDatapoint2DatasetsResponseType;
298
+ inputAudio: RetrieveDatapoint2InputAudio;
299
+ };
300
+
301
+ export const RetrieveDatapoint2DatasetsType = {
302
+ ImageUrl: "image_url",
303
+ } as const;
304
+ export type RetrieveDatapoint2DatasetsType = ClosedEnum<
305
+ typeof RetrieveDatapoint2DatasetsType
306
+ >;
307
+
308
+ /**
309
+ * Specifies the detail level of the image.
310
+ */
311
+ export const RetrieveDatapoint2Detail = {
312
+ Low: "low",
313
+ High: "high",
314
+ Auto: "auto",
315
+ } as const;
316
+ /**
317
+ * Specifies the detail level of the image.
318
+ */
319
+ export type RetrieveDatapoint2Detail = ClosedEnum<
320
+ typeof RetrieveDatapoint2Detail
321
+ >;
322
+
323
+ export type RetrieveDatapoint2ImageUrl = {
324
+ /**
325
+ * Either a URL of the image or the base64 encoded image data.
326
+ */
327
+ url: string;
328
+ /**
329
+ * Specifies the detail level of the image.
330
+ */
331
+ detail?: RetrieveDatapoint2Detail | undefined;
332
+ };
333
+
334
+ export type RetrieveDatapoint22 = {
335
+ type: RetrieveDatapoint2DatasetsType;
336
+ imageUrl: RetrieveDatapoint2ImageUrl;
337
+ };
338
+
339
+ export const RetrieveDatapoint2Type = {
340
+ Text: "text",
341
+ } as const;
342
+ export type RetrieveDatapoint2Type = ClosedEnum<typeof RetrieveDatapoint2Type>;
343
+
344
+ export type RetrieveDatapoint21 = {
345
+ type: RetrieveDatapoint2Type;
346
+ text: string;
347
+ };
348
+
349
+ export type RetrieveDatapointContent2 =
350
+ | RetrieveDatapoint21
351
+ | RetrieveDatapoint22
352
+ | RetrieveDatapoint23
353
+ | RetrieveDatapoint24;
354
+
355
+ /**
356
+ * The contents of the user message.
357
+ */
358
+ export type RetrieveDatapointMessagesContent =
359
+ | string
360
+ | Array<
361
+ | RetrieveDatapoint21
362
+ | RetrieveDatapoint22
363
+ | RetrieveDatapoint23
364
+ | RetrieveDatapoint24
365
+ >;
366
+
367
+ export type RetrieveDatapointMessagesUserMessage = {
368
+ /**
369
+ * The role of the messages author, in this case `user`.
370
+ */
371
+ role: RetrieveDatapointMessagesDatasetsResponseRole;
372
+ /**
373
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
374
+ */
375
+ name?: string | undefined;
376
+ /**
377
+ * The contents of the user message.
378
+ */
379
+ content:
380
+ | string
381
+ | Array<
382
+ | RetrieveDatapoint21
383
+ | RetrieveDatapoint22
384
+ | RetrieveDatapoint23
385
+ | RetrieveDatapoint24
386
+ >;
387
+ };
388
+
389
+ /**
390
+ * The role of the messages author, in this case `system`.
391
+ */
392
+ export const RetrieveDatapointMessagesDatasetsRole = {
393
+ System: "system",
394
+ } as const;
395
+ /**
396
+ * The role of the messages author, in this case `system`.
397
+ */
398
+ export type RetrieveDatapointMessagesDatasetsRole = ClosedEnum<
399
+ typeof RetrieveDatapointMessagesDatasetsRole
400
+ >;
401
+
402
+ export type RetrieveDatapointMessagesSystemMessage = {
403
+ /**
404
+ * The role of the messages author, in this case `system`.
405
+ */
406
+ role: RetrieveDatapointMessagesDatasetsRole;
407
+ /**
408
+ * The contents of the system message.
409
+ */
410
+ content: string;
411
+ /**
412
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
413
+ */
414
+ name?: string | undefined;
415
+ };
416
+
417
+ /**
418
+ * The role of the messages author, in this case `developer`.
419
+ */
420
+ export const RetrieveDatapointMessagesRole = {
421
+ Developer: "developer",
422
+ } as const;
423
+ /**
424
+ * The role of the messages author, in this case `developer`.
425
+ */
426
+ export type RetrieveDatapointMessagesRole = ClosedEnum<
427
+ typeof RetrieveDatapointMessagesRole
428
+ >;
429
+
430
+ export type RetrieveDatapointMessagesDeveloperMessage = {
431
+ /**
432
+ * The role of the messages author, in this case `developer`.
433
+ */
434
+ role: RetrieveDatapointMessagesRole;
435
+ /**
436
+ * The contents of the developer message.
437
+ */
438
+ content: string;
439
+ /**
440
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
441
+ */
442
+ name?: string | undefined;
443
+ };
444
+
445
+ export type RetrieveDatapointMessages =
446
+ | RetrieveDatapointMessagesToolMessage
447
+ | RetrieveDatapointMessagesDeveloperMessage
448
+ | RetrieveDatapointMessagesSystemMessage
449
+ | RetrieveDatapointMessagesUserMessage
450
+ | RetrieveDatapointMessagesAssistantMessage;
451
+
452
+ /**
453
+ * Datapoint retrieved.
454
+ */
455
+ export type RetrieveDatapointResponseBody = {
456
+ /**
457
+ * The unique identifier of the dataset item
458
+ */
459
+ id: string;
460
+ /**
461
+ * The unique identifier of the workspace it belongs to
462
+ */
463
+ workspaceId: string;
464
+ /**
465
+ * 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.
466
+ */
467
+ inputs?: { [k: string]: any } | undefined;
468
+ /**
469
+ * A list of messages comprising the conversation so far
470
+ */
471
+ messages?:
472
+ | Array<
473
+ | RetrieveDatapointMessagesToolMessage
474
+ | RetrieveDatapointMessagesDeveloperMessage
475
+ | RetrieveDatapointMessagesSystemMessage
476
+ | RetrieveDatapointMessagesUserMessage
477
+ | RetrieveDatapointMessagesAssistantMessage
478
+ >
479
+ | undefined;
480
+ expectedOutput?: string | undefined;
481
+ /**
482
+ * The unique identifier of the dataset
483
+ */
484
+ datasetId: string;
485
+ /**
486
+ * The unique identifier of the user who created the dataset
487
+ */
488
+ createdById?: string | undefined;
489
+ /**
490
+ * The unique identifier of the user who last updated the dataset
491
+ */
492
+ updatedById?: string | undefined;
493
+ /**
494
+ * The date and time the resource was created
495
+ */
496
+ created?: Date | undefined;
497
+ /**
498
+ * The date and time the resource was last updated
499
+ */
500
+ updated?: Date | undefined;
501
+ };
502
+
503
+ /** @internal */
504
+ export const RetrieveDatapointRequest$inboundSchema: z.ZodType<
505
+ RetrieveDatapointRequest,
506
+ z.ZodTypeDef,
507
+ unknown
508
+ > = z.object({
509
+ dataset_id: z.string(),
510
+ datapoint_id: z.string(),
511
+ }).transform((v) => {
512
+ return remap$(v, {
513
+ "dataset_id": "datasetId",
514
+ "datapoint_id": "datapointId",
515
+ });
516
+ });
517
+
518
+ /** @internal */
519
+ export type RetrieveDatapointRequest$Outbound = {
520
+ dataset_id: string;
521
+ datapoint_id: string;
522
+ };
523
+
524
+ /** @internal */
525
+ export const RetrieveDatapointRequest$outboundSchema: z.ZodType<
526
+ RetrieveDatapointRequest$Outbound,
527
+ z.ZodTypeDef,
528
+ RetrieveDatapointRequest
529
+ > = z.object({
530
+ datasetId: z.string(),
531
+ datapointId: z.string(),
532
+ }).transform((v) => {
533
+ return remap$(v, {
534
+ datasetId: "dataset_id",
535
+ datapointId: "datapoint_id",
536
+ });
537
+ });
538
+
539
+ /**
540
+ * @internal
541
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
542
+ */
543
+ export namespace RetrieveDatapointRequest$ {
544
+ /** @deprecated use `RetrieveDatapointRequest$inboundSchema` instead. */
545
+ export const inboundSchema = RetrieveDatapointRequest$inboundSchema;
546
+ /** @deprecated use `RetrieveDatapointRequest$outboundSchema` instead. */
547
+ export const outboundSchema = RetrieveDatapointRequest$outboundSchema;
548
+ /** @deprecated use `RetrieveDatapointRequest$Outbound` instead. */
549
+ export type Outbound = RetrieveDatapointRequest$Outbound;
550
+ }
551
+
552
+ export function retrieveDatapointRequestToJSON(
553
+ retrieveDatapointRequest: RetrieveDatapointRequest,
554
+ ): string {
555
+ return JSON.stringify(
556
+ RetrieveDatapointRequest$outboundSchema.parse(retrieveDatapointRequest),
557
+ );
558
+ }
559
+
560
+ export function retrieveDatapointRequestFromJSON(
561
+ jsonString: string,
562
+ ): SafeParseResult<RetrieveDatapointRequest, SDKValidationError> {
563
+ return safeParse(
564
+ jsonString,
565
+ (x) => RetrieveDatapointRequest$inboundSchema.parse(JSON.parse(x)),
566
+ `Failed to parse 'RetrieveDatapointRequest' from JSON`,
567
+ );
568
+ }
569
+
570
+ /** @internal */
571
+ export const RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole$inboundSchema:
572
+ z.ZodNativeEnum<
573
+ typeof RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole
574
+ > = z.nativeEnum(
575
+ RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole,
576
+ );
577
+
578
+ /** @internal */
579
+ export const RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole$outboundSchema:
580
+ z.ZodNativeEnum<
581
+ typeof RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole
582
+ > =
583
+ RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole$inboundSchema;
584
+
585
+ /**
586
+ * @internal
587
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
588
+ */
589
+ export namespace RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole$ {
590
+ /** @deprecated use `RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole$inboundSchema` instead. */
591
+ export const inboundSchema =
592
+ RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole$inboundSchema;
593
+ /** @deprecated use `RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole$outboundSchema` instead. */
594
+ export const outboundSchema =
595
+ RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole$outboundSchema;
596
+ }
597
+
598
+ /** @internal */
599
+ export const RetrieveDatapointMessagesDatasetsResponseContent$inboundSchema:
600
+ z.ZodType<
601
+ RetrieveDatapointMessagesDatasetsResponseContent,
602
+ z.ZodTypeDef,
603
+ unknown
604
+ > = z.union([z.string(), z.array(z.string())]);
605
+
606
+ /** @internal */
607
+ export type RetrieveDatapointMessagesDatasetsResponseContent$Outbound =
608
+ | string
609
+ | Array<string>;
610
+
611
+ /** @internal */
612
+ export const RetrieveDatapointMessagesDatasetsResponseContent$outboundSchema:
613
+ z.ZodType<
614
+ RetrieveDatapointMessagesDatasetsResponseContent$Outbound,
615
+ z.ZodTypeDef,
616
+ RetrieveDatapointMessagesDatasetsResponseContent
617
+ > = z.union([z.string(), z.array(z.string())]);
618
+
619
+ /**
620
+ * @internal
621
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
622
+ */
623
+ export namespace RetrieveDatapointMessagesDatasetsResponseContent$ {
624
+ /** @deprecated use `RetrieveDatapointMessagesDatasetsResponseContent$inboundSchema` instead. */
625
+ export const inboundSchema =
626
+ RetrieveDatapointMessagesDatasetsResponseContent$inboundSchema;
627
+ /** @deprecated use `RetrieveDatapointMessagesDatasetsResponseContent$outboundSchema` instead. */
628
+ export const outboundSchema =
629
+ RetrieveDatapointMessagesDatasetsResponseContent$outboundSchema;
630
+ /** @deprecated use `RetrieveDatapointMessagesDatasetsResponseContent$Outbound` instead. */
631
+ export type Outbound =
632
+ RetrieveDatapointMessagesDatasetsResponseContent$Outbound;
633
+ }
634
+
635
+ export function retrieveDatapointMessagesDatasetsResponseContentToJSON(
636
+ retrieveDatapointMessagesDatasetsResponseContent:
637
+ RetrieveDatapointMessagesDatasetsResponseContent,
638
+ ): string {
639
+ return JSON.stringify(
640
+ RetrieveDatapointMessagesDatasetsResponseContent$outboundSchema.parse(
641
+ retrieveDatapointMessagesDatasetsResponseContent,
642
+ ),
643
+ );
644
+ }
645
+
646
+ export function retrieveDatapointMessagesDatasetsResponseContentFromJSON(
647
+ jsonString: string,
648
+ ): SafeParseResult<
649
+ RetrieveDatapointMessagesDatasetsResponseContent,
650
+ SDKValidationError
651
+ > {
652
+ return safeParse(
653
+ jsonString,
654
+ (x) =>
655
+ RetrieveDatapointMessagesDatasetsResponseContent$inboundSchema.parse(
656
+ JSON.parse(x),
657
+ ),
658
+ `Failed to parse 'RetrieveDatapointMessagesDatasetsResponseContent' from JSON`,
659
+ );
660
+ }
661
+
662
+ /** @internal */
663
+ export const RetrieveDatapointMessagesToolMessage$inboundSchema: z.ZodType<
664
+ RetrieveDatapointMessagesToolMessage,
665
+ z.ZodTypeDef,
666
+ unknown
667
+ > = z.object({
668
+ role:
669
+ RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole$inboundSchema,
670
+ content: z.union([z.string(), z.array(z.string())]),
671
+ tool_call_id: z.string(),
672
+ }).transform((v) => {
673
+ return remap$(v, {
674
+ "tool_call_id": "toolCallId",
675
+ });
676
+ });
677
+
678
+ /** @internal */
679
+ export type RetrieveDatapointMessagesToolMessage$Outbound = {
680
+ role: string;
681
+ content: string | Array<string>;
682
+ tool_call_id: string;
683
+ };
684
+
685
+ /** @internal */
686
+ export const RetrieveDatapointMessagesToolMessage$outboundSchema: z.ZodType<
687
+ RetrieveDatapointMessagesToolMessage$Outbound,
688
+ z.ZodTypeDef,
689
+ RetrieveDatapointMessagesToolMessage
690
+ > = z.object({
691
+ role:
692
+ RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole$outboundSchema,
693
+ content: z.union([z.string(), z.array(z.string())]),
694
+ toolCallId: z.string(),
695
+ }).transform((v) => {
696
+ return remap$(v, {
697
+ toolCallId: "tool_call_id",
698
+ });
699
+ });
700
+
701
+ /**
702
+ * @internal
703
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
704
+ */
705
+ export namespace RetrieveDatapointMessagesToolMessage$ {
706
+ /** @deprecated use `RetrieveDatapointMessagesToolMessage$inboundSchema` instead. */
707
+ export const inboundSchema =
708
+ RetrieveDatapointMessagesToolMessage$inboundSchema;
709
+ /** @deprecated use `RetrieveDatapointMessagesToolMessage$outboundSchema` instead. */
710
+ export const outboundSchema =
711
+ RetrieveDatapointMessagesToolMessage$outboundSchema;
712
+ /** @deprecated use `RetrieveDatapointMessagesToolMessage$Outbound` instead. */
713
+ export type Outbound = RetrieveDatapointMessagesToolMessage$Outbound;
714
+ }
715
+
716
+ export function retrieveDatapointMessagesToolMessageToJSON(
717
+ retrieveDatapointMessagesToolMessage: RetrieveDatapointMessagesToolMessage,
718
+ ): string {
719
+ return JSON.stringify(
720
+ RetrieveDatapointMessagesToolMessage$outboundSchema.parse(
721
+ retrieveDatapointMessagesToolMessage,
722
+ ),
723
+ );
724
+ }
725
+
726
+ export function retrieveDatapointMessagesToolMessageFromJSON(
727
+ jsonString: string,
728
+ ): SafeParseResult<RetrieveDatapointMessagesToolMessage, SDKValidationError> {
729
+ return safeParse(
730
+ jsonString,
731
+ (x) =>
732
+ RetrieveDatapointMessagesToolMessage$inboundSchema.parse(JSON.parse(x)),
733
+ `Failed to parse 'RetrieveDatapointMessagesToolMessage' from JSON`,
734
+ );
735
+ }
736
+
737
+ /** @internal */
738
+ export const RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$inboundSchema:
739
+ z.ZodNativeEnum<
740
+ typeof RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType
741
+ > = z.nativeEnum(
742
+ RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType,
743
+ );
744
+
745
+ /** @internal */
746
+ export const RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$outboundSchema:
747
+ z.ZodNativeEnum<
748
+ typeof RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType
749
+ > =
750
+ RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$inboundSchema;
751
+
752
+ /**
753
+ * @internal
754
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
755
+ */
756
+ export namespace RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$ {
757
+ /** @deprecated use `RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$inboundSchema` instead. */
758
+ export const inboundSchema =
759
+ RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$inboundSchema;
760
+ /** @deprecated use `RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$outboundSchema` instead. */
761
+ export const outboundSchema =
762
+ RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$outboundSchema;
763
+ }
764
+
765
+ /** @internal */
766
+ export const RetrieveDatapoint2RefusalContentPart$inboundSchema: z.ZodType<
767
+ RetrieveDatapoint2RefusalContentPart,
768
+ z.ZodTypeDef,
769
+ unknown
770
+ > = z.object({
771
+ type:
772
+ RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$inboundSchema,
773
+ refusal: z.string(),
774
+ });
775
+
776
+ /** @internal */
777
+ export type RetrieveDatapoint2RefusalContentPart$Outbound = {
778
+ type: string;
779
+ refusal: string;
780
+ };
781
+
782
+ /** @internal */
783
+ export const RetrieveDatapoint2RefusalContentPart$outboundSchema: z.ZodType<
784
+ RetrieveDatapoint2RefusalContentPart$Outbound,
785
+ z.ZodTypeDef,
786
+ RetrieveDatapoint2RefusalContentPart
787
+ > = z.object({
788
+ type:
789
+ RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$outboundSchema,
790
+ refusal: z.string(),
791
+ });
792
+
793
+ /**
794
+ * @internal
795
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
796
+ */
797
+ export namespace RetrieveDatapoint2RefusalContentPart$ {
798
+ /** @deprecated use `RetrieveDatapoint2RefusalContentPart$inboundSchema` instead. */
799
+ export const inboundSchema =
800
+ RetrieveDatapoint2RefusalContentPart$inboundSchema;
801
+ /** @deprecated use `RetrieveDatapoint2RefusalContentPart$outboundSchema` instead. */
802
+ export const outboundSchema =
803
+ RetrieveDatapoint2RefusalContentPart$outboundSchema;
804
+ /** @deprecated use `RetrieveDatapoint2RefusalContentPart$Outbound` instead. */
805
+ export type Outbound = RetrieveDatapoint2RefusalContentPart$Outbound;
806
+ }
807
+
808
+ export function retrieveDatapoint2RefusalContentPartToJSON(
809
+ retrieveDatapoint2RefusalContentPart: RetrieveDatapoint2RefusalContentPart,
810
+ ): string {
811
+ return JSON.stringify(
812
+ RetrieveDatapoint2RefusalContentPart$outboundSchema.parse(
813
+ retrieveDatapoint2RefusalContentPart,
814
+ ),
815
+ );
816
+ }
817
+
818
+ export function retrieveDatapoint2RefusalContentPartFromJSON(
819
+ jsonString: string,
820
+ ): SafeParseResult<RetrieveDatapoint2RefusalContentPart, SDKValidationError> {
821
+ return safeParse(
822
+ jsonString,
823
+ (x) =>
824
+ RetrieveDatapoint2RefusalContentPart$inboundSchema.parse(JSON.parse(x)),
825
+ `Failed to parse 'RetrieveDatapoint2RefusalContentPart' from JSON`,
826
+ );
827
+ }
828
+
829
+ /** @internal */
830
+ export const RetrieveDatapoint2DatasetsResponse200ApplicationJSONType$inboundSchema:
831
+ z.ZodNativeEnum<
832
+ typeof RetrieveDatapoint2DatasetsResponse200ApplicationJSONType
833
+ > = z.nativeEnum(RetrieveDatapoint2DatasetsResponse200ApplicationJSONType);
834
+
835
+ /** @internal */
836
+ export const RetrieveDatapoint2DatasetsResponse200ApplicationJSONType$outboundSchema:
837
+ z.ZodNativeEnum<
838
+ typeof RetrieveDatapoint2DatasetsResponse200ApplicationJSONType
839
+ > = RetrieveDatapoint2DatasetsResponse200ApplicationJSONType$inboundSchema;
840
+
841
+ /**
842
+ * @internal
843
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
844
+ */
845
+ export namespace RetrieveDatapoint2DatasetsResponse200ApplicationJSONType$ {
846
+ /** @deprecated use `RetrieveDatapoint2DatasetsResponse200ApplicationJSONType$inboundSchema` instead. */
847
+ export const inboundSchema =
848
+ RetrieveDatapoint2DatasetsResponse200ApplicationJSONType$inboundSchema;
849
+ /** @deprecated use `RetrieveDatapoint2DatasetsResponse200ApplicationJSONType$outboundSchema` instead. */
850
+ export const outboundSchema =
851
+ RetrieveDatapoint2DatasetsResponse200ApplicationJSONType$outboundSchema;
852
+ }
853
+
854
+ /** @internal */
855
+ export const RetrieveDatapoint2TextContentPart$inboundSchema: z.ZodType<
856
+ RetrieveDatapoint2TextContentPart,
857
+ z.ZodTypeDef,
858
+ unknown
859
+ > = z.object({
860
+ type: RetrieveDatapoint2DatasetsResponse200ApplicationJSONType$inboundSchema,
861
+ text: z.string(),
862
+ });
863
+
864
+ /** @internal */
865
+ export type RetrieveDatapoint2TextContentPart$Outbound = {
866
+ type: string;
867
+ text: string;
868
+ };
869
+
870
+ /** @internal */
871
+ export const RetrieveDatapoint2TextContentPart$outboundSchema: z.ZodType<
872
+ RetrieveDatapoint2TextContentPart$Outbound,
873
+ z.ZodTypeDef,
874
+ RetrieveDatapoint2TextContentPart
875
+ > = z.object({
876
+ type: RetrieveDatapoint2DatasetsResponse200ApplicationJSONType$outboundSchema,
877
+ text: z.string(),
878
+ });
879
+
880
+ /**
881
+ * @internal
882
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
883
+ */
884
+ export namespace RetrieveDatapoint2TextContentPart$ {
885
+ /** @deprecated use `RetrieveDatapoint2TextContentPart$inboundSchema` instead. */
886
+ export const inboundSchema = RetrieveDatapoint2TextContentPart$inboundSchema;
887
+ /** @deprecated use `RetrieveDatapoint2TextContentPart$outboundSchema` instead. */
888
+ export const outboundSchema =
889
+ RetrieveDatapoint2TextContentPart$outboundSchema;
890
+ /** @deprecated use `RetrieveDatapoint2TextContentPart$Outbound` instead. */
891
+ export type Outbound = RetrieveDatapoint2TextContentPart$Outbound;
892
+ }
893
+
894
+ export function retrieveDatapoint2TextContentPartToJSON(
895
+ retrieveDatapoint2TextContentPart: RetrieveDatapoint2TextContentPart,
896
+ ): string {
897
+ return JSON.stringify(
898
+ RetrieveDatapoint2TextContentPart$outboundSchema.parse(
899
+ retrieveDatapoint2TextContentPart,
900
+ ),
901
+ );
902
+ }
903
+
904
+ export function retrieveDatapoint2TextContentPartFromJSON(
905
+ jsonString: string,
906
+ ): SafeParseResult<RetrieveDatapoint2TextContentPart, SDKValidationError> {
907
+ return safeParse(
908
+ jsonString,
909
+ (x) => RetrieveDatapoint2TextContentPart$inboundSchema.parse(JSON.parse(x)),
910
+ `Failed to parse 'RetrieveDatapoint2TextContentPart' from JSON`,
911
+ );
912
+ }
913
+
914
+ /** @internal */
915
+ export const RetrieveDatapointContentDatasets2$inboundSchema: z.ZodType<
916
+ RetrieveDatapointContentDatasets2,
917
+ z.ZodTypeDef,
918
+ unknown
919
+ > = z.union([
920
+ z.lazy(() => RetrieveDatapoint2TextContentPart$inboundSchema),
921
+ z.lazy(() => RetrieveDatapoint2RefusalContentPart$inboundSchema),
922
+ ]);
923
+
924
+ /** @internal */
925
+ export type RetrieveDatapointContentDatasets2$Outbound =
926
+ | RetrieveDatapoint2TextContentPart$Outbound
927
+ | RetrieveDatapoint2RefusalContentPart$Outbound;
928
+
929
+ /** @internal */
930
+ export const RetrieveDatapointContentDatasets2$outboundSchema: z.ZodType<
931
+ RetrieveDatapointContentDatasets2$Outbound,
932
+ z.ZodTypeDef,
933
+ RetrieveDatapointContentDatasets2
934
+ > = z.union([
935
+ z.lazy(() => RetrieveDatapoint2TextContentPart$outboundSchema),
936
+ z.lazy(() => RetrieveDatapoint2RefusalContentPart$outboundSchema),
937
+ ]);
938
+
939
+ /**
940
+ * @internal
941
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
942
+ */
943
+ export namespace RetrieveDatapointContentDatasets2$ {
944
+ /** @deprecated use `RetrieveDatapointContentDatasets2$inboundSchema` instead. */
945
+ export const inboundSchema = RetrieveDatapointContentDatasets2$inboundSchema;
946
+ /** @deprecated use `RetrieveDatapointContentDatasets2$outboundSchema` instead. */
947
+ export const outboundSchema =
948
+ RetrieveDatapointContentDatasets2$outboundSchema;
949
+ /** @deprecated use `RetrieveDatapointContentDatasets2$Outbound` instead. */
950
+ export type Outbound = RetrieveDatapointContentDatasets2$Outbound;
951
+ }
952
+
953
+ export function retrieveDatapointContentDatasets2ToJSON(
954
+ retrieveDatapointContentDatasets2: RetrieveDatapointContentDatasets2,
955
+ ): string {
956
+ return JSON.stringify(
957
+ RetrieveDatapointContentDatasets2$outboundSchema.parse(
958
+ retrieveDatapointContentDatasets2,
959
+ ),
960
+ );
961
+ }
962
+
963
+ export function retrieveDatapointContentDatasets2FromJSON(
964
+ jsonString: string,
965
+ ): SafeParseResult<RetrieveDatapointContentDatasets2, SDKValidationError> {
966
+ return safeParse(
967
+ jsonString,
968
+ (x) => RetrieveDatapointContentDatasets2$inboundSchema.parse(JSON.parse(x)),
969
+ `Failed to parse 'RetrieveDatapointContentDatasets2' from JSON`,
970
+ );
971
+ }
972
+
973
+ /** @internal */
974
+ export const RetrieveDatapointMessagesDatasetsContent$inboundSchema: z.ZodType<
975
+ RetrieveDatapointMessagesDatasetsContent,
976
+ z.ZodTypeDef,
977
+ unknown
978
+ > = z.union([
979
+ z.string(),
980
+ z.array(z.union([
981
+ z.lazy(() => RetrieveDatapoint2TextContentPart$inboundSchema),
982
+ z.lazy(() => RetrieveDatapoint2RefusalContentPart$inboundSchema),
983
+ ])),
984
+ ]);
985
+
986
+ /** @internal */
987
+ export type RetrieveDatapointMessagesDatasetsContent$Outbound =
988
+ | string
989
+ | Array<
990
+ | RetrieveDatapoint2TextContentPart$Outbound
991
+ | RetrieveDatapoint2RefusalContentPart$Outbound
992
+ >;
993
+
994
+ /** @internal */
995
+ export const RetrieveDatapointMessagesDatasetsContent$outboundSchema: z.ZodType<
996
+ RetrieveDatapointMessagesDatasetsContent$Outbound,
997
+ z.ZodTypeDef,
998
+ RetrieveDatapointMessagesDatasetsContent
999
+ > = z.union([
1000
+ z.string(),
1001
+ z.array(z.union([
1002
+ z.lazy(() => RetrieveDatapoint2TextContentPart$outboundSchema),
1003
+ z.lazy(() => RetrieveDatapoint2RefusalContentPart$outboundSchema),
1004
+ ])),
1005
+ ]);
1006
+
1007
+ /**
1008
+ * @internal
1009
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1010
+ */
1011
+ export namespace RetrieveDatapointMessagesDatasetsContent$ {
1012
+ /** @deprecated use `RetrieveDatapointMessagesDatasetsContent$inboundSchema` instead. */
1013
+ export const inboundSchema =
1014
+ RetrieveDatapointMessagesDatasetsContent$inboundSchema;
1015
+ /** @deprecated use `RetrieveDatapointMessagesDatasetsContent$outboundSchema` instead. */
1016
+ export const outboundSchema =
1017
+ RetrieveDatapointMessagesDatasetsContent$outboundSchema;
1018
+ /** @deprecated use `RetrieveDatapointMessagesDatasetsContent$Outbound` instead. */
1019
+ export type Outbound = RetrieveDatapointMessagesDatasetsContent$Outbound;
1020
+ }
1021
+
1022
+ export function retrieveDatapointMessagesDatasetsContentToJSON(
1023
+ retrieveDatapointMessagesDatasetsContent:
1024
+ RetrieveDatapointMessagesDatasetsContent,
1025
+ ): string {
1026
+ return JSON.stringify(
1027
+ RetrieveDatapointMessagesDatasetsContent$outboundSchema.parse(
1028
+ retrieveDatapointMessagesDatasetsContent,
1029
+ ),
1030
+ );
1031
+ }
1032
+
1033
+ export function retrieveDatapointMessagesDatasetsContentFromJSON(
1034
+ jsonString: string,
1035
+ ): SafeParseResult<
1036
+ RetrieveDatapointMessagesDatasetsContent,
1037
+ SDKValidationError
1038
+ > {
1039
+ return safeParse(
1040
+ jsonString,
1041
+ (x) =>
1042
+ RetrieveDatapointMessagesDatasetsContent$inboundSchema.parse(
1043
+ JSON.parse(x),
1044
+ ),
1045
+ `Failed to parse 'RetrieveDatapointMessagesDatasetsContent' from JSON`,
1046
+ );
1047
+ }
1048
+
1049
+ /** @internal */
1050
+ export const RetrieveDatapointMessagesDatasetsResponse200Role$inboundSchema:
1051
+ z.ZodNativeEnum<typeof RetrieveDatapointMessagesDatasetsResponse200Role> = z
1052
+ .nativeEnum(RetrieveDatapointMessagesDatasetsResponse200Role);
1053
+
1054
+ /** @internal */
1055
+ export const RetrieveDatapointMessagesDatasetsResponse200Role$outboundSchema:
1056
+ z.ZodNativeEnum<typeof RetrieveDatapointMessagesDatasetsResponse200Role> =
1057
+ RetrieveDatapointMessagesDatasetsResponse200Role$inboundSchema;
1058
+
1059
+ /**
1060
+ * @internal
1061
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1062
+ */
1063
+ export namespace RetrieveDatapointMessagesDatasetsResponse200Role$ {
1064
+ /** @deprecated use `RetrieveDatapointMessagesDatasetsResponse200Role$inboundSchema` instead. */
1065
+ export const inboundSchema =
1066
+ RetrieveDatapointMessagesDatasetsResponse200Role$inboundSchema;
1067
+ /** @deprecated use `RetrieveDatapointMessagesDatasetsResponse200Role$outboundSchema` instead. */
1068
+ export const outboundSchema =
1069
+ RetrieveDatapointMessagesDatasetsResponse200Role$outboundSchema;
1070
+ }
1071
+
1072
+ /** @internal */
1073
+ export const RetrieveDatapointMessagesAudio$inboundSchema: z.ZodType<
1074
+ RetrieveDatapointMessagesAudio,
1075
+ z.ZodTypeDef,
1076
+ unknown
1077
+ > = z.object({
1078
+ id: z.string(),
1079
+ });
1080
+
1081
+ /** @internal */
1082
+ export type RetrieveDatapointMessagesAudio$Outbound = {
1083
+ id: string;
1084
+ };
1085
+
1086
+ /** @internal */
1087
+ export const RetrieveDatapointMessagesAudio$outboundSchema: z.ZodType<
1088
+ RetrieveDatapointMessagesAudio$Outbound,
1089
+ z.ZodTypeDef,
1090
+ RetrieveDatapointMessagesAudio
1091
+ > = z.object({
1092
+ id: z.string(),
1093
+ });
1094
+
1095
+ /**
1096
+ * @internal
1097
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1098
+ */
1099
+ export namespace RetrieveDatapointMessagesAudio$ {
1100
+ /** @deprecated use `RetrieveDatapointMessagesAudio$inboundSchema` instead. */
1101
+ export const inboundSchema = RetrieveDatapointMessagesAudio$inboundSchema;
1102
+ /** @deprecated use `RetrieveDatapointMessagesAudio$outboundSchema` instead. */
1103
+ export const outboundSchema = RetrieveDatapointMessagesAudio$outboundSchema;
1104
+ /** @deprecated use `RetrieveDatapointMessagesAudio$Outbound` instead. */
1105
+ export type Outbound = RetrieveDatapointMessagesAudio$Outbound;
1106
+ }
1107
+
1108
+ export function retrieveDatapointMessagesAudioToJSON(
1109
+ retrieveDatapointMessagesAudio: RetrieveDatapointMessagesAudio,
1110
+ ): string {
1111
+ return JSON.stringify(
1112
+ RetrieveDatapointMessagesAudio$outboundSchema.parse(
1113
+ retrieveDatapointMessagesAudio,
1114
+ ),
1115
+ );
1116
+ }
1117
+
1118
+ export function retrieveDatapointMessagesAudioFromJSON(
1119
+ jsonString: string,
1120
+ ): SafeParseResult<RetrieveDatapointMessagesAudio, SDKValidationError> {
1121
+ return safeParse(
1122
+ jsonString,
1123
+ (x) => RetrieveDatapointMessagesAudio$inboundSchema.parse(JSON.parse(x)),
1124
+ `Failed to parse 'RetrieveDatapointMessagesAudio' from JSON`,
1125
+ );
1126
+ }
1127
+
1128
+ /** @internal */
1129
+ export const RetrieveDatapointMessagesType$inboundSchema: z.ZodNativeEnum<
1130
+ typeof RetrieveDatapointMessagesType
1131
+ > = z.nativeEnum(RetrieveDatapointMessagesType);
1132
+
1133
+ /** @internal */
1134
+ export const RetrieveDatapointMessagesType$outboundSchema: z.ZodNativeEnum<
1135
+ typeof RetrieveDatapointMessagesType
1136
+ > = RetrieveDatapointMessagesType$inboundSchema;
1137
+
1138
+ /**
1139
+ * @internal
1140
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1141
+ */
1142
+ export namespace RetrieveDatapointMessagesType$ {
1143
+ /** @deprecated use `RetrieveDatapointMessagesType$inboundSchema` instead. */
1144
+ export const inboundSchema = RetrieveDatapointMessagesType$inboundSchema;
1145
+ /** @deprecated use `RetrieveDatapointMessagesType$outboundSchema` instead. */
1146
+ export const outboundSchema = RetrieveDatapointMessagesType$outboundSchema;
1147
+ }
1148
+
1149
+ /** @internal */
1150
+ export const RetrieveDatapointMessagesFunction$inboundSchema: z.ZodType<
1151
+ RetrieveDatapointMessagesFunction,
1152
+ z.ZodTypeDef,
1153
+ unknown
1154
+ > = z.object({
1155
+ name: z.string().optional(),
1156
+ arguments: z.string().optional(),
1157
+ });
1158
+
1159
+ /** @internal */
1160
+ export type RetrieveDatapointMessagesFunction$Outbound = {
1161
+ name?: string | undefined;
1162
+ arguments?: string | undefined;
1163
+ };
1164
+
1165
+ /** @internal */
1166
+ export const RetrieveDatapointMessagesFunction$outboundSchema: z.ZodType<
1167
+ RetrieveDatapointMessagesFunction$Outbound,
1168
+ z.ZodTypeDef,
1169
+ RetrieveDatapointMessagesFunction
1170
+ > = z.object({
1171
+ name: z.string().optional(),
1172
+ arguments: z.string().optional(),
1173
+ });
1174
+
1175
+ /**
1176
+ * @internal
1177
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1178
+ */
1179
+ export namespace RetrieveDatapointMessagesFunction$ {
1180
+ /** @deprecated use `RetrieveDatapointMessagesFunction$inboundSchema` instead. */
1181
+ export const inboundSchema = RetrieveDatapointMessagesFunction$inboundSchema;
1182
+ /** @deprecated use `RetrieveDatapointMessagesFunction$outboundSchema` instead. */
1183
+ export const outboundSchema =
1184
+ RetrieveDatapointMessagesFunction$outboundSchema;
1185
+ /** @deprecated use `RetrieveDatapointMessagesFunction$Outbound` instead. */
1186
+ export type Outbound = RetrieveDatapointMessagesFunction$Outbound;
1187
+ }
1188
+
1189
+ export function retrieveDatapointMessagesFunctionToJSON(
1190
+ retrieveDatapointMessagesFunction: RetrieveDatapointMessagesFunction,
1191
+ ): string {
1192
+ return JSON.stringify(
1193
+ RetrieveDatapointMessagesFunction$outboundSchema.parse(
1194
+ retrieveDatapointMessagesFunction,
1195
+ ),
1196
+ );
1197
+ }
1198
+
1199
+ export function retrieveDatapointMessagesFunctionFromJSON(
1200
+ jsonString: string,
1201
+ ): SafeParseResult<RetrieveDatapointMessagesFunction, SDKValidationError> {
1202
+ return safeParse(
1203
+ jsonString,
1204
+ (x) => RetrieveDatapointMessagesFunction$inboundSchema.parse(JSON.parse(x)),
1205
+ `Failed to parse 'RetrieveDatapointMessagesFunction' from JSON`,
1206
+ );
1207
+ }
1208
+
1209
+ /** @internal */
1210
+ export const RetrieveDatapointMessagesToolCalls$inboundSchema: z.ZodType<
1211
+ RetrieveDatapointMessagesToolCalls,
1212
+ z.ZodTypeDef,
1213
+ unknown
1214
+ > = z.object({
1215
+ id: z.string(),
1216
+ type: RetrieveDatapointMessagesType$inboundSchema,
1217
+ function: z.lazy(() => RetrieveDatapointMessagesFunction$inboundSchema),
1218
+ });
1219
+
1220
+ /** @internal */
1221
+ export type RetrieveDatapointMessagesToolCalls$Outbound = {
1222
+ id: string;
1223
+ type: string;
1224
+ function: RetrieveDatapointMessagesFunction$Outbound;
1225
+ };
1226
+
1227
+ /** @internal */
1228
+ export const RetrieveDatapointMessagesToolCalls$outboundSchema: z.ZodType<
1229
+ RetrieveDatapointMessagesToolCalls$Outbound,
1230
+ z.ZodTypeDef,
1231
+ RetrieveDatapointMessagesToolCalls
1232
+ > = z.object({
1233
+ id: z.string(),
1234
+ type: RetrieveDatapointMessagesType$outboundSchema,
1235
+ function: z.lazy(() => RetrieveDatapointMessagesFunction$outboundSchema),
1236
+ });
1237
+
1238
+ /**
1239
+ * @internal
1240
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1241
+ */
1242
+ export namespace RetrieveDatapointMessagesToolCalls$ {
1243
+ /** @deprecated use `RetrieveDatapointMessagesToolCalls$inboundSchema` instead. */
1244
+ export const inboundSchema = RetrieveDatapointMessagesToolCalls$inboundSchema;
1245
+ /** @deprecated use `RetrieveDatapointMessagesToolCalls$outboundSchema` instead. */
1246
+ export const outboundSchema =
1247
+ RetrieveDatapointMessagesToolCalls$outboundSchema;
1248
+ /** @deprecated use `RetrieveDatapointMessagesToolCalls$Outbound` instead. */
1249
+ export type Outbound = RetrieveDatapointMessagesToolCalls$Outbound;
1250
+ }
1251
+
1252
+ export function retrieveDatapointMessagesToolCallsToJSON(
1253
+ retrieveDatapointMessagesToolCalls: RetrieveDatapointMessagesToolCalls,
1254
+ ): string {
1255
+ return JSON.stringify(
1256
+ RetrieveDatapointMessagesToolCalls$outboundSchema.parse(
1257
+ retrieveDatapointMessagesToolCalls,
1258
+ ),
1259
+ );
1260
+ }
1261
+
1262
+ export function retrieveDatapointMessagesToolCallsFromJSON(
1263
+ jsonString: string,
1264
+ ): SafeParseResult<RetrieveDatapointMessagesToolCalls, SDKValidationError> {
1265
+ return safeParse(
1266
+ jsonString,
1267
+ (x) =>
1268
+ RetrieveDatapointMessagesToolCalls$inboundSchema.parse(JSON.parse(x)),
1269
+ `Failed to parse 'RetrieveDatapointMessagesToolCalls' from JSON`,
1270
+ );
1271
+ }
1272
+
1273
+ /** @internal */
1274
+ export const RetrieveDatapointMessagesAssistantMessage$inboundSchema: z.ZodType<
1275
+ RetrieveDatapointMessagesAssistantMessage,
1276
+ z.ZodTypeDef,
1277
+ unknown
1278
+ > = z.object({
1279
+ content: z.nullable(
1280
+ z.union([
1281
+ z.string(),
1282
+ z.array(
1283
+ z.union([
1284
+ z.lazy(() => RetrieveDatapoint2TextContentPart$inboundSchema),
1285
+ z.lazy(() => RetrieveDatapoint2RefusalContentPart$inboundSchema),
1286
+ ]),
1287
+ ),
1288
+ ]),
1289
+ ).optional(),
1290
+ refusal: z.nullable(z.string()).optional(),
1291
+ role: RetrieveDatapointMessagesDatasetsResponse200Role$inboundSchema,
1292
+ name: z.string().optional(),
1293
+ audio: z.nullable(z.lazy(() => RetrieveDatapointMessagesAudio$inboundSchema))
1294
+ .optional(),
1295
+ tool_calls: z.array(
1296
+ z.lazy(() => RetrieveDatapointMessagesToolCalls$inboundSchema),
1297
+ ).optional(),
1298
+ reasoning: z.string().optional(),
1299
+ reasoning_signature: z.string().optional(),
1300
+ redacted_reasoning: z.string().optional(),
1301
+ }).transform((v) => {
1302
+ return remap$(v, {
1303
+ "tool_calls": "toolCalls",
1304
+ "reasoning_signature": "reasoningSignature",
1305
+ "redacted_reasoning": "redactedReasoning",
1306
+ });
1307
+ });
1308
+
1309
+ /** @internal */
1310
+ export type RetrieveDatapointMessagesAssistantMessage$Outbound = {
1311
+ content?:
1312
+ | string
1313
+ | Array<
1314
+ | RetrieveDatapoint2TextContentPart$Outbound
1315
+ | RetrieveDatapoint2RefusalContentPart$Outbound
1316
+ >
1317
+ | null
1318
+ | undefined;
1319
+ refusal?: string | null | undefined;
1320
+ role: string;
1321
+ name?: string | undefined;
1322
+ audio?: RetrieveDatapointMessagesAudio$Outbound | null | undefined;
1323
+ tool_calls?: Array<RetrieveDatapointMessagesToolCalls$Outbound> | undefined;
1324
+ reasoning?: string | undefined;
1325
+ reasoning_signature?: string | undefined;
1326
+ redacted_reasoning?: string | undefined;
1327
+ };
1328
+
1329
+ /** @internal */
1330
+ export const RetrieveDatapointMessagesAssistantMessage$outboundSchema:
1331
+ z.ZodType<
1332
+ RetrieveDatapointMessagesAssistantMessage$Outbound,
1333
+ z.ZodTypeDef,
1334
+ RetrieveDatapointMessagesAssistantMessage
1335
+ > = z.object({
1336
+ content: z.nullable(
1337
+ z.union([
1338
+ z.string(),
1339
+ z.array(
1340
+ z.union([
1341
+ z.lazy(() => RetrieveDatapoint2TextContentPart$outboundSchema),
1342
+ z.lazy(() => RetrieveDatapoint2RefusalContentPart$outboundSchema),
1343
+ ]),
1344
+ ),
1345
+ ]),
1346
+ ).optional(),
1347
+ refusal: z.nullable(z.string()).optional(),
1348
+ role: RetrieveDatapointMessagesDatasetsResponse200Role$outboundSchema,
1349
+ name: z.string().optional(),
1350
+ audio: z.nullable(
1351
+ z.lazy(() => RetrieveDatapointMessagesAudio$outboundSchema),
1352
+ ).optional(),
1353
+ toolCalls: z.array(
1354
+ z.lazy(() => RetrieveDatapointMessagesToolCalls$outboundSchema),
1355
+ ).optional(),
1356
+ reasoning: z.string().optional(),
1357
+ reasoningSignature: z.string().optional(),
1358
+ redactedReasoning: z.string().optional(),
1359
+ }).transform((v) => {
1360
+ return remap$(v, {
1361
+ toolCalls: "tool_calls",
1362
+ reasoningSignature: "reasoning_signature",
1363
+ redactedReasoning: "redacted_reasoning",
1364
+ });
1365
+ });
1366
+
1367
+ /**
1368
+ * @internal
1369
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1370
+ */
1371
+ export namespace RetrieveDatapointMessagesAssistantMessage$ {
1372
+ /** @deprecated use `RetrieveDatapointMessagesAssistantMessage$inboundSchema` instead. */
1373
+ export const inboundSchema =
1374
+ RetrieveDatapointMessagesAssistantMessage$inboundSchema;
1375
+ /** @deprecated use `RetrieveDatapointMessagesAssistantMessage$outboundSchema` instead. */
1376
+ export const outboundSchema =
1377
+ RetrieveDatapointMessagesAssistantMessage$outboundSchema;
1378
+ /** @deprecated use `RetrieveDatapointMessagesAssistantMessage$Outbound` instead. */
1379
+ export type Outbound = RetrieveDatapointMessagesAssistantMessage$Outbound;
1380
+ }
1381
+
1382
+ export function retrieveDatapointMessagesAssistantMessageToJSON(
1383
+ retrieveDatapointMessagesAssistantMessage:
1384
+ RetrieveDatapointMessagesAssistantMessage,
1385
+ ): string {
1386
+ return JSON.stringify(
1387
+ RetrieveDatapointMessagesAssistantMessage$outboundSchema.parse(
1388
+ retrieveDatapointMessagesAssistantMessage,
1389
+ ),
1390
+ );
1391
+ }
1392
+
1393
+ export function retrieveDatapointMessagesAssistantMessageFromJSON(
1394
+ jsonString: string,
1395
+ ): SafeParseResult<
1396
+ RetrieveDatapointMessagesAssistantMessage,
1397
+ SDKValidationError
1398
+ > {
1399
+ return safeParse(
1400
+ jsonString,
1401
+ (x) =>
1402
+ RetrieveDatapointMessagesAssistantMessage$inboundSchema.parse(
1403
+ JSON.parse(x),
1404
+ ),
1405
+ `Failed to parse 'RetrieveDatapointMessagesAssistantMessage' from JSON`,
1406
+ );
1407
+ }
1408
+
1409
+ /** @internal */
1410
+ export const RetrieveDatapointMessagesDatasetsResponseRole$inboundSchema:
1411
+ z.ZodNativeEnum<typeof RetrieveDatapointMessagesDatasetsResponseRole> = z
1412
+ .nativeEnum(RetrieveDatapointMessagesDatasetsResponseRole);
1413
+
1414
+ /** @internal */
1415
+ export const RetrieveDatapointMessagesDatasetsResponseRole$outboundSchema:
1416
+ z.ZodNativeEnum<typeof RetrieveDatapointMessagesDatasetsResponseRole> =
1417
+ RetrieveDatapointMessagesDatasetsResponseRole$inboundSchema;
1418
+
1419
+ /**
1420
+ * @internal
1421
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1422
+ */
1423
+ export namespace RetrieveDatapointMessagesDatasetsResponseRole$ {
1424
+ /** @deprecated use `RetrieveDatapointMessagesDatasetsResponseRole$inboundSchema` instead. */
1425
+ export const inboundSchema =
1426
+ RetrieveDatapointMessagesDatasetsResponseRole$inboundSchema;
1427
+ /** @deprecated use `RetrieveDatapointMessagesDatasetsResponseRole$outboundSchema` instead. */
1428
+ export const outboundSchema =
1429
+ RetrieveDatapointMessagesDatasetsResponseRole$outboundSchema;
1430
+ }
1431
+
1432
+ /** @internal */
1433
+ export const RetrieveDatapoint2DatasetsResponse200Type$inboundSchema:
1434
+ z.ZodNativeEnum<typeof RetrieveDatapoint2DatasetsResponse200Type> = z
1435
+ .nativeEnum(RetrieveDatapoint2DatasetsResponse200Type);
1436
+
1437
+ /** @internal */
1438
+ export const RetrieveDatapoint2DatasetsResponse200Type$outboundSchema:
1439
+ z.ZodNativeEnum<typeof RetrieveDatapoint2DatasetsResponse200Type> =
1440
+ RetrieveDatapoint2DatasetsResponse200Type$inboundSchema;
1441
+
1442
+ /**
1443
+ * @internal
1444
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1445
+ */
1446
+ export namespace RetrieveDatapoint2DatasetsResponse200Type$ {
1447
+ /** @deprecated use `RetrieveDatapoint2DatasetsResponse200Type$inboundSchema` instead. */
1448
+ export const inboundSchema =
1449
+ RetrieveDatapoint2DatasetsResponse200Type$inboundSchema;
1450
+ /** @deprecated use `RetrieveDatapoint2DatasetsResponse200Type$outboundSchema` instead. */
1451
+ export const outboundSchema =
1452
+ RetrieveDatapoint2DatasetsResponse200Type$outboundSchema;
1453
+ }
1454
+
1455
+ /** @internal */
1456
+ export const RetrieveDatapoint2File$inboundSchema: z.ZodType<
1457
+ RetrieveDatapoint2File,
1458
+ z.ZodTypeDef,
1459
+ unknown
1460
+ > = z.object({
1461
+ file_data: z.string(),
1462
+ filename: z.string(),
1463
+ }).transform((v) => {
1464
+ return remap$(v, {
1465
+ "file_data": "fileData",
1466
+ });
1467
+ });
1468
+
1469
+ /** @internal */
1470
+ export type RetrieveDatapoint2File$Outbound = {
1471
+ file_data: string;
1472
+ filename: string;
1473
+ };
1474
+
1475
+ /** @internal */
1476
+ export const RetrieveDatapoint2File$outboundSchema: z.ZodType<
1477
+ RetrieveDatapoint2File$Outbound,
1478
+ z.ZodTypeDef,
1479
+ RetrieveDatapoint2File
1480
+ > = z.object({
1481
+ fileData: z.string(),
1482
+ filename: z.string(),
1483
+ }).transform((v) => {
1484
+ return remap$(v, {
1485
+ fileData: "file_data",
1486
+ });
1487
+ });
1488
+
1489
+ /**
1490
+ * @internal
1491
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1492
+ */
1493
+ export namespace RetrieveDatapoint2File$ {
1494
+ /** @deprecated use `RetrieveDatapoint2File$inboundSchema` instead. */
1495
+ export const inboundSchema = RetrieveDatapoint2File$inboundSchema;
1496
+ /** @deprecated use `RetrieveDatapoint2File$outboundSchema` instead. */
1497
+ export const outboundSchema = RetrieveDatapoint2File$outboundSchema;
1498
+ /** @deprecated use `RetrieveDatapoint2File$Outbound` instead. */
1499
+ export type Outbound = RetrieveDatapoint2File$Outbound;
1500
+ }
1501
+
1502
+ export function retrieveDatapoint2FileToJSON(
1503
+ retrieveDatapoint2File: RetrieveDatapoint2File,
1504
+ ): string {
1505
+ return JSON.stringify(
1506
+ RetrieveDatapoint2File$outboundSchema.parse(retrieveDatapoint2File),
1507
+ );
1508
+ }
1509
+
1510
+ export function retrieveDatapoint2FileFromJSON(
1511
+ jsonString: string,
1512
+ ): SafeParseResult<RetrieveDatapoint2File, SDKValidationError> {
1513
+ return safeParse(
1514
+ jsonString,
1515
+ (x) => RetrieveDatapoint2File$inboundSchema.parse(JSON.parse(x)),
1516
+ `Failed to parse 'RetrieveDatapoint2File' from JSON`,
1517
+ );
1518
+ }
1519
+
1520
+ /** @internal */
1521
+ export const RetrieveDatapoint24$inboundSchema: z.ZodType<
1522
+ RetrieveDatapoint24,
1523
+ z.ZodTypeDef,
1524
+ unknown
1525
+ > = z.object({
1526
+ type: RetrieveDatapoint2DatasetsResponse200Type$inboundSchema,
1527
+ file: z.lazy(() => RetrieveDatapoint2File$inboundSchema),
1528
+ });
1529
+
1530
+ /** @internal */
1531
+ export type RetrieveDatapoint24$Outbound = {
1532
+ type: string;
1533
+ file: RetrieveDatapoint2File$Outbound;
1534
+ };
1535
+
1536
+ /** @internal */
1537
+ export const RetrieveDatapoint24$outboundSchema: z.ZodType<
1538
+ RetrieveDatapoint24$Outbound,
1539
+ z.ZodTypeDef,
1540
+ RetrieveDatapoint24
1541
+ > = z.object({
1542
+ type: RetrieveDatapoint2DatasetsResponse200Type$outboundSchema,
1543
+ file: z.lazy(() => RetrieveDatapoint2File$outboundSchema),
1544
+ });
1545
+
1546
+ /**
1547
+ * @internal
1548
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1549
+ */
1550
+ export namespace RetrieveDatapoint24$ {
1551
+ /** @deprecated use `RetrieveDatapoint24$inboundSchema` instead. */
1552
+ export const inboundSchema = RetrieveDatapoint24$inboundSchema;
1553
+ /** @deprecated use `RetrieveDatapoint24$outboundSchema` instead. */
1554
+ export const outboundSchema = RetrieveDatapoint24$outboundSchema;
1555
+ /** @deprecated use `RetrieveDatapoint24$Outbound` instead. */
1556
+ export type Outbound = RetrieveDatapoint24$Outbound;
1557
+ }
1558
+
1559
+ export function retrieveDatapoint24ToJSON(
1560
+ retrieveDatapoint24: RetrieveDatapoint24,
1561
+ ): string {
1562
+ return JSON.stringify(
1563
+ RetrieveDatapoint24$outboundSchema.parse(retrieveDatapoint24),
1564
+ );
1565
+ }
1566
+
1567
+ export function retrieveDatapoint24FromJSON(
1568
+ jsonString: string,
1569
+ ): SafeParseResult<RetrieveDatapoint24, SDKValidationError> {
1570
+ return safeParse(
1571
+ jsonString,
1572
+ (x) => RetrieveDatapoint24$inboundSchema.parse(JSON.parse(x)),
1573
+ `Failed to parse 'RetrieveDatapoint24' from JSON`,
1574
+ );
1575
+ }
1576
+
1577
+ /** @internal */
1578
+ export const RetrieveDatapoint2DatasetsResponseType$inboundSchema:
1579
+ z.ZodNativeEnum<typeof RetrieveDatapoint2DatasetsResponseType> = z.nativeEnum(
1580
+ RetrieveDatapoint2DatasetsResponseType,
1581
+ );
1582
+
1583
+ /** @internal */
1584
+ export const RetrieveDatapoint2DatasetsResponseType$outboundSchema:
1585
+ z.ZodNativeEnum<typeof RetrieveDatapoint2DatasetsResponseType> =
1586
+ RetrieveDatapoint2DatasetsResponseType$inboundSchema;
1587
+
1588
+ /**
1589
+ * @internal
1590
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1591
+ */
1592
+ export namespace RetrieveDatapoint2DatasetsResponseType$ {
1593
+ /** @deprecated use `RetrieveDatapoint2DatasetsResponseType$inboundSchema` instead. */
1594
+ export const inboundSchema =
1595
+ RetrieveDatapoint2DatasetsResponseType$inboundSchema;
1596
+ /** @deprecated use `RetrieveDatapoint2DatasetsResponseType$outboundSchema` instead. */
1597
+ export const outboundSchema =
1598
+ RetrieveDatapoint2DatasetsResponseType$outboundSchema;
1599
+ }
1600
+
1601
+ /** @internal */
1602
+ export const RetrieveDatapoint2Format$inboundSchema: z.ZodNativeEnum<
1603
+ typeof RetrieveDatapoint2Format
1604
+ > = z.nativeEnum(RetrieveDatapoint2Format);
1605
+
1606
+ /** @internal */
1607
+ export const RetrieveDatapoint2Format$outboundSchema: z.ZodNativeEnum<
1608
+ typeof RetrieveDatapoint2Format
1609
+ > = RetrieveDatapoint2Format$inboundSchema;
1610
+
1611
+ /**
1612
+ * @internal
1613
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1614
+ */
1615
+ export namespace RetrieveDatapoint2Format$ {
1616
+ /** @deprecated use `RetrieveDatapoint2Format$inboundSchema` instead. */
1617
+ export const inboundSchema = RetrieveDatapoint2Format$inboundSchema;
1618
+ /** @deprecated use `RetrieveDatapoint2Format$outboundSchema` instead. */
1619
+ export const outboundSchema = RetrieveDatapoint2Format$outboundSchema;
1620
+ }
1621
+
1622
+ /** @internal */
1623
+ export const RetrieveDatapoint2InputAudio$inboundSchema: z.ZodType<
1624
+ RetrieveDatapoint2InputAudio,
1625
+ z.ZodTypeDef,
1626
+ unknown
1627
+ > = z.object({
1628
+ data: z.string(),
1629
+ format: RetrieveDatapoint2Format$inboundSchema,
1630
+ });
1631
+
1632
+ /** @internal */
1633
+ export type RetrieveDatapoint2InputAudio$Outbound = {
1634
+ data: string;
1635
+ format: string;
1636
+ };
1637
+
1638
+ /** @internal */
1639
+ export const RetrieveDatapoint2InputAudio$outboundSchema: z.ZodType<
1640
+ RetrieveDatapoint2InputAudio$Outbound,
1641
+ z.ZodTypeDef,
1642
+ RetrieveDatapoint2InputAudio
1643
+ > = z.object({
1644
+ data: z.string(),
1645
+ format: RetrieveDatapoint2Format$outboundSchema,
1646
+ });
1647
+
1648
+ /**
1649
+ * @internal
1650
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1651
+ */
1652
+ export namespace RetrieveDatapoint2InputAudio$ {
1653
+ /** @deprecated use `RetrieveDatapoint2InputAudio$inboundSchema` instead. */
1654
+ export const inboundSchema = RetrieveDatapoint2InputAudio$inboundSchema;
1655
+ /** @deprecated use `RetrieveDatapoint2InputAudio$outboundSchema` instead. */
1656
+ export const outboundSchema = RetrieveDatapoint2InputAudio$outboundSchema;
1657
+ /** @deprecated use `RetrieveDatapoint2InputAudio$Outbound` instead. */
1658
+ export type Outbound = RetrieveDatapoint2InputAudio$Outbound;
1659
+ }
1660
+
1661
+ export function retrieveDatapoint2InputAudioToJSON(
1662
+ retrieveDatapoint2InputAudio: RetrieveDatapoint2InputAudio,
1663
+ ): string {
1664
+ return JSON.stringify(
1665
+ RetrieveDatapoint2InputAudio$outboundSchema.parse(
1666
+ retrieveDatapoint2InputAudio,
1667
+ ),
1668
+ );
1669
+ }
1670
+
1671
+ export function retrieveDatapoint2InputAudioFromJSON(
1672
+ jsonString: string,
1673
+ ): SafeParseResult<RetrieveDatapoint2InputAudio, SDKValidationError> {
1674
+ return safeParse(
1675
+ jsonString,
1676
+ (x) => RetrieveDatapoint2InputAudio$inboundSchema.parse(JSON.parse(x)),
1677
+ `Failed to parse 'RetrieveDatapoint2InputAudio' from JSON`,
1678
+ );
1679
+ }
1680
+
1681
+ /** @internal */
1682
+ export const RetrieveDatapoint23$inboundSchema: z.ZodType<
1683
+ RetrieveDatapoint23,
1684
+ z.ZodTypeDef,
1685
+ unknown
1686
+ > = z.object({
1687
+ type: RetrieveDatapoint2DatasetsResponseType$inboundSchema,
1688
+ input_audio: z.lazy(() => RetrieveDatapoint2InputAudio$inboundSchema),
1689
+ }).transform((v) => {
1690
+ return remap$(v, {
1691
+ "input_audio": "inputAudio",
1692
+ });
1693
+ });
1694
+
1695
+ /** @internal */
1696
+ export type RetrieveDatapoint23$Outbound = {
1697
+ type: string;
1698
+ input_audio: RetrieveDatapoint2InputAudio$Outbound;
1699
+ };
1700
+
1701
+ /** @internal */
1702
+ export const RetrieveDatapoint23$outboundSchema: z.ZodType<
1703
+ RetrieveDatapoint23$Outbound,
1704
+ z.ZodTypeDef,
1705
+ RetrieveDatapoint23
1706
+ > = z.object({
1707
+ type: RetrieveDatapoint2DatasetsResponseType$outboundSchema,
1708
+ inputAudio: z.lazy(() => RetrieveDatapoint2InputAudio$outboundSchema),
1709
+ }).transform((v) => {
1710
+ return remap$(v, {
1711
+ inputAudio: "input_audio",
1712
+ });
1713
+ });
1714
+
1715
+ /**
1716
+ * @internal
1717
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1718
+ */
1719
+ export namespace RetrieveDatapoint23$ {
1720
+ /** @deprecated use `RetrieveDatapoint23$inboundSchema` instead. */
1721
+ export const inboundSchema = RetrieveDatapoint23$inboundSchema;
1722
+ /** @deprecated use `RetrieveDatapoint23$outboundSchema` instead. */
1723
+ export const outboundSchema = RetrieveDatapoint23$outboundSchema;
1724
+ /** @deprecated use `RetrieveDatapoint23$Outbound` instead. */
1725
+ export type Outbound = RetrieveDatapoint23$Outbound;
1726
+ }
1727
+
1728
+ export function retrieveDatapoint23ToJSON(
1729
+ retrieveDatapoint23: RetrieveDatapoint23,
1730
+ ): string {
1731
+ return JSON.stringify(
1732
+ RetrieveDatapoint23$outboundSchema.parse(retrieveDatapoint23),
1733
+ );
1734
+ }
1735
+
1736
+ export function retrieveDatapoint23FromJSON(
1737
+ jsonString: string,
1738
+ ): SafeParseResult<RetrieveDatapoint23, SDKValidationError> {
1739
+ return safeParse(
1740
+ jsonString,
1741
+ (x) => RetrieveDatapoint23$inboundSchema.parse(JSON.parse(x)),
1742
+ `Failed to parse 'RetrieveDatapoint23' from JSON`,
1743
+ );
1744
+ }
1745
+
1746
+ /** @internal */
1747
+ export const RetrieveDatapoint2DatasetsType$inboundSchema: z.ZodNativeEnum<
1748
+ typeof RetrieveDatapoint2DatasetsType
1749
+ > = z.nativeEnum(RetrieveDatapoint2DatasetsType);
1750
+
1751
+ /** @internal */
1752
+ export const RetrieveDatapoint2DatasetsType$outboundSchema: z.ZodNativeEnum<
1753
+ typeof RetrieveDatapoint2DatasetsType
1754
+ > = RetrieveDatapoint2DatasetsType$inboundSchema;
1755
+
1756
+ /**
1757
+ * @internal
1758
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1759
+ */
1760
+ export namespace RetrieveDatapoint2DatasetsType$ {
1761
+ /** @deprecated use `RetrieveDatapoint2DatasetsType$inboundSchema` instead. */
1762
+ export const inboundSchema = RetrieveDatapoint2DatasetsType$inboundSchema;
1763
+ /** @deprecated use `RetrieveDatapoint2DatasetsType$outboundSchema` instead. */
1764
+ export const outboundSchema = RetrieveDatapoint2DatasetsType$outboundSchema;
1765
+ }
1766
+
1767
+ /** @internal */
1768
+ export const RetrieveDatapoint2Detail$inboundSchema: z.ZodNativeEnum<
1769
+ typeof RetrieveDatapoint2Detail
1770
+ > = z.nativeEnum(RetrieveDatapoint2Detail);
1771
+
1772
+ /** @internal */
1773
+ export const RetrieveDatapoint2Detail$outboundSchema: z.ZodNativeEnum<
1774
+ typeof RetrieveDatapoint2Detail
1775
+ > = RetrieveDatapoint2Detail$inboundSchema;
1776
+
1777
+ /**
1778
+ * @internal
1779
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1780
+ */
1781
+ export namespace RetrieveDatapoint2Detail$ {
1782
+ /** @deprecated use `RetrieveDatapoint2Detail$inboundSchema` instead. */
1783
+ export const inboundSchema = RetrieveDatapoint2Detail$inboundSchema;
1784
+ /** @deprecated use `RetrieveDatapoint2Detail$outboundSchema` instead. */
1785
+ export const outboundSchema = RetrieveDatapoint2Detail$outboundSchema;
1786
+ }
1787
+
1788
+ /** @internal */
1789
+ export const RetrieveDatapoint2ImageUrl$inboundSchema: z.ZodType<
1790
+ RetrieveDatapoint2ImageUrl,
1791
+ z.ZodTypeDef,
1792
+ unknown
1793
+ > = z.object({
1794
+ url: z.string(),
1795
+ detail: RetrieveDatapoint2Detail$inboundSchema.optional(),
1796
+ });
1797
+
1798
+ /** @internal */
1799
+ export type RetrieveDatapoint2ImageUrl$Outbound = {
1800
+ url: string;
1801
+ detail?: string | undefined;
1802
+ };
1803
+
1804
+ /** @internal */
1805
+ export const RetrieveDatapoint2ImageUrl$outboundSchema: z.ZodType<
1806
+ RetrieveDatapoint2ImageUrl$Outbound,
1807
+ z.ZodTypeDef,
1808
+ RetrieveDatapoint2ImageUrl
1809
+ > = z.object({
1810
+ url: z.string(),
1811
+ detail: RetrieveDatapoint2Detail$outboundSchema.optional(),
1812
+ });
1813
+
1814
+ /**
1815
+ * @internal
1816
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1817
+ */
1818
+ export namespace RetrieveDatapoint2ImageUrl$ {
1819
+ /** @deprecated use `RetrieveDatapoint2ImageUrl$inboundSchema` instead. */
1820
+ export const inboundSchema = RetrieveDatapoint2ImageUrl$inboundSchema;
1821
+ /** @deprecated use `RetrieveDatapoint2ImageUrl$outboundSchema` instead. */
1822
+ export const outboundSchema = RetrieveDatapoint2ImageUrl$outboundSchema;
1823
+ /** @deprecated use `RetrieveDatapoint2ImageUrl$Outbound` instead. */
1824
+ export type Outbound = RetrieveDatapoint2ImageUrl$Outbound;
1825
+ }
1826
+
1827
+ export function retrieveDatapoint2ImageUrlToJSON(
1828
+ retrieveDatapoint2ImageUrl: RetrieveDatapoint2ImageUrl,
1829
+ ): string {
1830
+ return JSON.stringify(
1831
+ RetrieveDatapoint2ImageUrl$outboundSchema.parse(retrieveDatapoint2ImageUrl),
1832
+ );
1833
+ }
1834
+
1835
+ export function retrieveDatapoint2ImageUrlFromJSON(
1836
+ jsonString: string,
1837
+ ): SafeParseResult<RetrieveDatapoint2ImageUrl, SDKValidationError> {
1838
+ return safeParse(
1839
+ jsonString,
1840
+ (x) => RetrieveDatapoint2ImageUrl$inboundSchema.parse(JSON.parse(x)),
1841
+ `Failed to parse 'RetrieveDatapoint2ImageUrl' from JSON`,
1842
+ );
1843
+ }
1844
+
1845
+ /** @internal */
1846
+ export const RetrieveDatapoint22$inboundSchema: z.ZodType<
1847
+ RetrieveDatapoint22,
1848
+ z.ZodTypeDef,
1849
+ unknown
1850
+ > = z.object({
1851
+ type: RetrieveDatapoint2DatasetsType$inboundSchema,
1852
+ image_url: z.lazy(() => RetrieveDatapoint2ImageUrl$inboundSchema),
1853
+ }).transform((v) => {
1854
+ return remap$(v, {
1855
+ "image_url": "imageUrl",
1856
+ });
1857
+ });
1858
+
1859
+ /** @internal */
1860
+ export type RetrieveDatapoint22$Outbound = {
1861
+ type: string;
1862
+ image_url: RetrieveDatapoint2ImageUrl$Outbound;
1863
+ };
1864
+
1865
+ /** @internal */
1866
+ export const RetrieveDatapoint22$outboundSchema: z.ZodType<
1867
+ RetrieveDatapoint22$Outbound,
1868
+ z.ZodTypeDef,
1869
+ RetrieveDatapoint22
1870
+ > = z.object({
1871
+ type: RetrieveDatapoint2DatasetsType$outboundSchema,
1872
+ imageUrl: z.lazy(() => RetrieveDatapoint2ImageUrl$outboundSchema),
1873
+ }).transform((v) => {
1874
+ return remap$(v, {
1875
+ imageUrl: "image_url",
1876
+ });
1877
+ });
1878
+
1879
+ /**
1880
+ * @internal
1881
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1882
+ */
1883
+ export namespace RetrieveDatapoint22$ {
1884
+ /** @deprecated use `RetrieveDatapoint22$inboundSchema` instead. */
1885
+ export const inboundSchema = RetrieveDatapoint22$inboundSchema;
1886
+ /** @deprecated use `RetrieveDatapoint22$outboundSchema` instead. */
1887
+ export const outboundSchema = RetrieveDatapoint22$outboundSchema;
1888
+ /** @deprecated use `RetrieveDatapoint22$Outbound` instead. */
1889
+ export type Outbound = RetrieveDatapoint22$Outbound;
1890
+ }
1891
+
1892
+ export function retrieveDatapoint22ToJSON(
1893
+ retrieveDatapoint22: RetrieveDatapoint22,
1894
+ ): string {
1895
+ return JSON.stringify(
1896
+ RetrieveDatapoint22$outboundSchema.parse(retrieveDatapoint22),
1897
+ );
1898
+ }
1899
+
1900
+ export function retrieveDatapoint22FromJSON(
1901
+ jsonString: string,
1902
+ ): SafeParseResult<RetrieveDatapoint22, SDKValidationError> {
1903
+ return safeParse(
1904
+ jsonString,
1905
+ (x) => RetrieveDatapoint22$inboundSchema.parse(JSON.parse(x)),
1906
+ `Failed to parse 'RetrieveDatapoint22' from JSON`,
1907
+ );
1908
+ }
1909
+
1910
+ /** @internal */
1911
+ export const RetrieveDatapoint2Type$inboundSchema: z.ZodNativeEnum<
1912
+ typeof RetrieveDatapoint2Type
1913
+ > = z.nativeEnum(RetrieveDatapoint2Type);
1914
+
1915
+ /** @internal */
1916
+ export const RetrieveDatapoint2Type$outboundSchema: z.ZodNativeEnum<
1917
+ typeof RetrieveDatapoint2Type
1918
+ > = RetrieveDatapoint2Type$inboundSchema;
1919
+
1920
+ /**
1921
+ * @internal
1922
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1923
+ */
1924
+ export namespace RetrieveDatapoint2Type$ {
1925
+ /** @deprecated use `RetrieveDatapoint2Type$inboundSchema` instead. */
1926
+ export const inboundSchema = RetrieveDatapoint2Type$inboundSchema;
1927
+ /** @deprecated use `RetrieveDatapoint2Type$outboundSchema` instead. */
1928
+ export const outboundSchema = RetrieveDatapoint2Type$outboundSchema;
1929
+ }
1930
+
1931
+ /** @internal */
1932
+ export const RetrieveDatapoint21$inboundSchema: z.ZodType<
1933
+ RetrieveDatapoint21,
1934
+ z.ZodTypeDef,
1935
+ unknown
1936
+ > = z.object({
1937
+ type: RetrieveDatapoint2Type$inboundSchema,
1938
+ text: z.string(),
1939
+ });
1940
+
1941
+ /** @internal */
1942
+ export type RetrieveDatapoint21$Outbound = {
1943
+ type: string;
1944
+ text: string;
1945
+ };
1946
+
1947
+ /** @internal */
1948
+ export const RetrieveDatapoint21$outboundSchema: z.ZodType<
1949
+ RetrieveDatapoint21$Outbound,
1950
+ z.ZodTypeDef,
1951
+ RetrieveDatapoint21
1952
+ > = z.object({
1953
+ type: RetrieveDatapoint2Type$outboundSchema,
1954
+ text: z.string(),
1955
+ });
1956
+
1957
+ /**
1958
+ * @internal
1959
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1960
+ */
1961
+ export namespace RetrieveDatapoint21$ {
1962
+ /** @deprecated use `RetrieveDatapoint21$inboundSchema` instead. */
1963
+ export const inboundSchema = RetrieveDatapoint21$inboundSchema;
1964
+ /** @deprecated use `RetrieveDatapoint21$outboundSchema` instead. */
1965
+ export const outboundSchema = RetrieveDatapoint21$outboundSchema;
1966
+ /** @deprecated use `RetrieveDatapoint21$Outbound` instead. */
1967
+ export type Outbound = RetrieveDatapoint21$Outbound;
1968
+ }
1969
+
1970
+ export function retrieveDatapoint21ToJSON(
1971
+ retrieveDatapoint21: RetrieveDatapoint21,
1972
+ ): string {
1973
+ return JSON.stringify(
1974
+ RetrieveDatapoint21$outboundSchema.parse(retrieveDatapoint21),
1975
+ );
1976
+ }
1977
+
1978
+ export function retrieveDatapoint21FromJSON(
1979
+ jsonString: string,
1980
+ ): SafeParseResult<RetrieveDatapoint21, SDKValidationError> {
1981
+ return safeParse(
1982
+ jsonString,
1983
+ (x) => RetrieveDatapoint21$inboundSchema.parse(JSON.parse(x)),
1984
+ `Failed to parse 'RetrieveDatapoint21' from JSON`,
1985
+ );
1986
+ }
1987
+
1988
+ /** @internal */
1989
+ export const RetrieveDatapointContent2$inboundSchema: z.ZodType<
1990
+ RetrieveDatapointContent2,
1991
+ z.ZodTypeDef,
1992
+ unknown
1993
+ > = z.union([
1994
+ z.lazy(() => RetrieveDatapoint21$inboundSchema),
1995
+ z.lazy(() => RetrieveDatapoint22$inboundSchema),
1996
+ z.lazy(() => RetrieveDatapoint23$inboundSchema),
1997
+ z.lazy(() => RetrieveDatapoint24$inboundSchema),
1998
+ ]);
1999
+
2000
+ /** @internal */
2001
+ export type RetrieveDatapointContent2$Outbound =
2002
+ | RetrieveDatapoint21$Outbound
2003
+ | RetrieveDatapoint22$Outbound
2004
+ | RetrieveDatapoint23$Outbound
2005
+ | RetrieveDatapoint24$Outbound;
2006
+
2007
+ /** @internal */
2008
+ export const RetrieveDatapointContent2$outboundSchema: z.ZodType<
2009
+ RetrieveDatapointContent2$Outbound,
2010
+ z.ZodTypeDef,
2011
+ RetrieveDatapointContent2
2012
+ > = z.union([
2013
+ z.lazy(() => RetrieveDatapoint21$outboundSchema),
2014
+ z.lazy(() => RetrieveDatapoint22$outboundSchema),
2015
+ z.lazy(() => RetrieveDatapoint23$outboundSchema),
2016
+ z.lazy(() => RetrieveDatapoint24$outboundSchema),
2017
+ ]);
2018
+
2019
+ /**
2020
+ * @internal
2021
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2022
+ */
2023
+ export namespace RetrieveDatapointContent2$ {
2024
+ /** @deprecated use `RetrieveDatapointContent2$inboundSchema` instead. */
2025
+ export const inboundSchema = RetrieveDatapointContent2$inboundSchema;
2026
+ /** @deprecated use `RetrieveDatapointContent2$outboundSchema` instead. */
2027
+ export const outboundSchema = RetrieveDatapointContent2$outboundSchema;
2028
+ /** @deprecated use `RetrieveDatapointContent2$Outbound` instead. */
2029
+ export type Outbound = RetrieveDatapointContent2$Outbound;
2030
+ }
2031
+
2032
+ export function retrieveDatapointContent2ToJSON(
2033
+ retrieveDatapointContent2: RetrieveDatapointContent2,
2034
+ ): string {
2035
+ return JSON.stringify(
2036
+ RetrieveDatapointContent2$outboundSchema.parse(retrieveDatapointContent2),
2037
+ );
2038
+ }
2039
+
2040
+ export function retrieveDatapointContent2FromJSON(
2041
+ jsonString: string,
2042
+ ): SafeParseResult<RetrieveDatapointContent2, SDKValidationError> {
2043
+ return safeParse(
2044
+ jsonString,
2045
+ (x) => RetrieveDatapointContent2$inboundSchema.parse(JSON.parse(x)),
2046
+ `Failed to parse 'RetrieveDatapointContent2' from JSON`,
2047
+ );
2048
+ }
2049
+
2050
+ /** @internal */
2051
+ export const RetrieveDatapointMessagesContent$inboundSchema: z.ZodType<
2052
+ RetrieveDatapointMessagesContent,
2053
+ z.ZodTypeDef,
2054
+ unknown
2055
+ > = z.union([
2056
+ z.string(),
2057
+ z.array(z.union([
2058
+ z.lazy(() => RetrieveDatapoint21$inboundSchema),
2059
+ z.lazy(() => RetrieveDatapoint22$inboundSchema),
2060
+ z.lazy(() => RetrieveDatapoint23$inboundSchema),
2061
+ z.lazy(() => RetrieveDatapoint24$inboundSchema),
2062
+ ])),
2063
+ ]);
2064
+
2065
+ /** @internal */
2066
+ export type RetrieveDatapointMessagesContent$Outbound =
2067
+ | string
2068
+ | Array<
2069
+ | RetrieveDatapoint21$Outbound
2070
+ | RetrieveDatapoint22$Outbound
2071
+ | RetrieveDatapoint23$Outbound
2072
+ | RetrieveDatapoint24$Outbound
2073
+ >;
2074
+
2075
+ /** @internal */
2076
+ export const RetrieveDatapointMessagesContent$outboundSchema: z.ZodType<
2077
+ RetrieveDatapointMessagesContent$Outbound,
2078
+ z.ZodTypeDef,
2079
+ RetrieveDatapointMessagesContent
2080
+ > = z.union([
2081
+ z.string(),
2082
+ z.array(z.union([
2083
+ z.lazy(() => RetrieveDatapoint21$outboundSchema),
2084
+ z.lazy(() => RetrieveDatapoint22$outboundSchema),
2085
+ z.lazy(() => RetrieveDatapoint23$outboundSchema),
2086
+ z.lazy(() => RetrieveDatapoint24$outboundSchema),
2087
+ ])),
2088
+ ]);
2089
+
2090
+ /**
2091
+ * @internal
2092
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2093
+ */
2094
+ export namespace RetrieveDatapointMessagesContent$ {
2095
+ /** @deprecated use `RetrieveDatapointMessagesContent$inboundSchema` instead. */
2096
+ export const inboundSchema = RetrieveDatapointMessagesContent$inboundSchema;
2097
+ /** @deprecated use `RetrieveDatapointMessagesContent$outboundSchema` instead. */
2098
+ export const outboundSchema = RetrieveDatapointMessagesContent$outboundSchema;
2099
+ /** @deprecated use `RetrieveDatapointMessagesContent$Outbound` instead. */
2100
+ export type Outbound = RetrieveDatapointMessagesContent$Outbound;
2101
+ }
2102
+
2103
+ export function retrieveDatapointMessagesContentToJSON(
2104
+ retrieveDatapointMessagesContent: RetrieveDatapointMessagesContent,
2105
+ ): string {
2106
+ return JSON.stringify(
2107
+ RetrieveDatapointMessagesContent$outboundSchema.parse(
2108
+ retrieveDatapointMessagesContent,
2109
+ ),
2110
+ );
2111
+ }
2112
+
2113
+ export function retrieveDatapointMessagesContentFromJSON(
2114
+ jsonString: string,
2115
+ ): SafeParseResult<RetrieveDatapointMessagesContent, SDKValidationError> {
2116
+ return safeParse(
2117
+ jsonString,
2118
+ (x) => RetrieveDatapointMessagesContent$inboundSchema.parse(JSON.parse(x)),
2119
+ `Failed to parse 'RetrieveDatapointMessagesContent' from JSON`,
2120
+ );
2121
+ }
2122
+
2123
+ /** @internal */
2124
+ export const RetrieveDatapointMessagesUserMessage$inboundSchema: z.ZodType<
2125
+ RetrieveDatapointMessagesUserMessage,
2126
+ z.ZodTypeDef,
2127
+ unknown
2128
+ > = z.object({
2129
+ role: RetrieveDatapointMessagesDatasetsResponseRole$inboundSchema,
2130
+ name: z.string().optional(),
2131
+ content: z.union([
2132
+ z.string(),
2133
+ z.array(z.union([
2134
+ z.lazy(() => RetrieveDatapoint21$inboundSchema),
2135
+ z.lazy(() => RetrieveDatapoint22$inboundSchema),
2136
+ z.lazy(() => RetrieveDatapoint23$inboundSchema),
2137
+ z.lazy(() => RetrieveDatapoint24$inboundSchema),
2138
+ ])),
2139
+ ]),
2140
+ });
2141
+
2142
+ /** @internal */
2143
+ export type RetrieveDatapointMessagesUserMessage$Outbound = {
2144
+ role: string;
2145
+ name?: string | undefined;
2146
+ content:
2147
+ | string
2148
+ | Array<
2149
+ | RetrieveDatapoint21$Outbound
2150
+ | RetrieveDatapoint22$Outbound
2151
+ | RetrieveDatapoint23$Outbound
2152
+ | RetrieveDatapoint24$Outbound
2153
+ >;
2154
+ };
2155
+
2156
+ /** @internal */
2157
+ export const RetrieveDatapointMessagesUserMessage$outboundSchema: z.ZodType<
2158
+ RetrieveDatapointMessagesUserMessage$Outbound,
2159
+ z.ZodTypeDef,
2160
+ RetrieveDatapointMessagesUserMessage
2161
+ > = z.object({
2162
+ role: RetrieveDatapointMessagesDatasetsResponseRole$outboundSchema,
2163
+ name: z.string().optional(),
2164
+ content: z.union([
2165
+ z.string(),
2166
+ z.array(z.union([
2167
+ z.lazy(() => RetrieveDatapoint21$outboundSchema),
2168
+ z.lazy(() => RetrieveDatapoint22$outboundSchema),
2169
+ z.lazy(() => RetrieveDatapoint23$outboundSchema),
2170
+ z.lazy(() => RetrieveDatapoint24$outboundSchema),
2171
+ ])),
2172
+ ]),
2173
+ });
2174
+
2175
+ /**
2176
+ * @internal
2177
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2178
+ */
2179
+ export namespace RetrieveDatapointMessagesUserMessage$ {
2180
+ /** @deprecated use `RetrieveDatapointMessagesUserMessage$inboundSchema` instead. */
2181
+ export const inboundSchema =
2182
+ RetrieveDatapointMessagesUserMessage$inboundSchema;
2183
+ /** @deprecated use `RetrieveDatapointMessagesUserMessage$outboundSchema` instead. */
2184
+ export const outboundSchema =
2185
+ RetrieveDatapointMessagesUserMessage$outboundSchema;
2186
+ /** @deprecated use `RetrieveDatapointMessagesUserMessage$Outbound` instead. */
2187
+ export type Outbound = RetrieveDatapointMessagesUserMessage$Outbound;
2188
+ }
2189
+
2190
+ export function retrieveDatapointMessagesUserMessageToJSON(
2191
+ retrieveDatapointMessagesUserMessage: RetrieveDatapointMessagesUserMessage,
2192
+ ): string {
2193
+ return JSON.stringify(
2194
+ RetrieveDatapointMessagesUserMessage$outboundSchema.parse(
2195
+ retrieveDatapointMessagesUserMessage,
2196
+ ),
2197
+ );
2198
+ }
2199
+
2200
+ export function retrieveDatapointMessagesUserMessageFromJSON(
2201
+ jsonString: string,
2202
+ ): SafeParseResult<RetrieveDatapointMessagesUserMessage, SDKValidationError> {
2203
+ return safeParse(
2204
+ jsonString,
2205
+ (x) =>
2206
+ RetrieveDatapointMessagesUserMessage$inboundSchema.parse(JSON.parse(x)),
2207
+ `Failed to parse 'RetrieveDatapointMessagesUserMessage' from JSON`,
2208
+ );
2209
+ }
2210
+
2211
+ /** @internal */
2212
+ export const RetrieveDatapointMessagesDatasetsRole$inboundSchema:
2213
+ z.ZodNativeEnum<typeof RetrieveDatapointMessagesDatasetsRole> = z.nativeEnum(
2214
+ RetrieveDatapointMessagesDatasetsRole,
2215
+ );
2216
+
2217
+ /** @internal */
2218
+ export const RetrieveDatapointMessagesDatasetsRole$outboundSchema:
2219
+ z.ZodNativeEnum<typeof RetrieveDatapointMessagesDatasetsRole> =
2220
+ RetrieveDatapointMessagesDatasetsRole$inboundSchema;
2221
+
2222
+ /**
2223
+ * @internal
2224
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2225
+ */
2226
+ export namespace RetrieveDatapointMessagesDatasetsRole$ {
2227
+ /** @deprecated use `RetrieveDatapointMessagesDatasetsRole$inboundSchema` instead. */
2228
+ export const inboundSchema =
2229
+ RetrieveDatapointMessagesDatasetsRole$inboundSchema;
2230
+ /** @deprecated use `RetrieveDatapointMessagesDatasetsRole$outboundSchema` instead. */
2231
+ export const outboundSchema =
2232
+ RetrieveDatapointMessagesDatasetsRole$outboundSchema;
2233
+ }
2234
+
2235
+ /** @internal */
2236
+ export const RetrieveDatapointMessagesSystemMessage$inboundSchema: z.ZodType<
2237
+ RetrieveDatapointMessagesSystemMessage,
2238
+ z.ZodTypeDef,
2239
+ unknown
2240
+ > = z.object({
2241
+ role: RetrieveDatapointMessagesDatasetsRole$inboundSchema,
2242
+ content: z.string(),
2243
+ name: z.string().optional(),
2244
+ });
2245
+
2246
+ /** @internal */
2247
+ export type RetrieveDatapointMessagesSystemMessage$Outbound = {
2248
+ role: string;
2249
+ content: string;
2250
+ name?: string | undefined;
2251
+ };
2252
+
2253
+ /** @internal */
2254
+ export const RetrieveDatapointMessagesSystemMessage$outboundSchema: z.ZodType<
2255
+ RetrieveDatapointMessagesSystemMessage$Outbound,
2256
+ z.ZodTypeDef,
2257
+ RetrieveDatapointMessagesSystemMessage
2258
+ > = z.object({
2259
+ role: RetrieveDatapointMessagesDatasetsRole$outboundSchema,
2260
+ content: z.string(),
2261
+ name: z.string().optional(),
2262
+ });
2263
+
2264
+ /**
2265
+ * @internal
2266
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2267
+ */
2268
+ export namespace RetrieveDatapointMessagesSystemMessage$ {
2269
+ /** @deprecated use `RetrieveDatapointMessagesSystemMessage$inboundSchema` instead. */
2270
+ export const inboundSchema =
2271
+ RetrieveDatapointMessagesSystemMessage$inboundSchema;
2272
+ /** @deprecated use `RetrieveDatapointMessagesSystemMessage$outboundSchema` instead. */
2273
+ export const outboundSchema =
2274
+ RetrieveDatapointMessagesSystemMessage$outboundSchema;
2275
+ /** @deprecated use `RetrieveDatapointMessagesSystemMessage$Outbound` instead. */
2276
+ export type Outbound = RetrieveDatapointMessagesSystemMessage$Outbound;
2277
+ }
2278
+
2279
+ export function retrieveDatapointMessagesSystemMessageToJSON(
2280
+ retrieveDatapointMessagesSystemMessage:
2281
+ RetrieveDatapointMessagesSystemMessage,
2282
+ ): string {
2283
+ return JSON.stringify(
2284
+ RetrieveDatapointMessagesSystemMessage$outboundSchema.parse(
2285
+ retrieveDatapointMessagesSystemMessage,
2286
+ ),
2287
+ );
2288
+ }
2289
+
2290
+ export function retrieveDatapointMessagesSystemMessageFromJSON(
2291
+ jsonString: string,
2292
+ ): SafeParseResult<RetrieveDatapointMessagesSystemMessage, SDKValidationError> {
2293
+ return safeParse(
2294
+ jsonString,
2295
+ (x) =>
2296
+ RetrieveDatapointMessagesSystemMessage$inboundSchema.parse(JSON.parse(x)),
2297
+ `Failed to parse 'RetrieveDatapointMessagesSystemMessage' from JSON`,
2298
+ );
2299
+ }
2300
+
2301
+ /** @internal */
2302
+ export const RetrieveDatapointMessagesRole$inboundSchema: z.ZodNativeEnum<
2303
+ typeof RetrieveDatapointMessagesRole
2304
+ > = z.nativeEnum(RetrieveDatapointMessagesRole);
2305
+
2306
+ /** @internal */
2307
+ export const RetrieveDatapointMessagesRole$outboundSchema: z.ZodNativeEnum<
2308
+ typeof RetrieveDatapointMessagesRole
2309
+ > = RetrieveDatapointMessagesRole$inboundSchema;
2310
+
2311
+ /**
2312
+ * @internal
2313
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2314
+ */
2315
+ export namespace RetrieveDatapointMessagesRole$ {
2316
+ /** @deprecated use `RetrieveDatapointMessagesRole$inboundSchema` instead. */
2317
+ export const inboundSchema = RetrieveDatapointMessagesRole$inboundSchema;
2318
+ /** @deprecated use `RetrieveDatapointMessagesRole$outboundSchema` instead. */
2319
+ export const outboundSchema = RetrieveDatapointMessagesRole$outboundSchema;
2320
+ }
2321
+
2322
+ /** @internal */
2323
+ export const RetrieveDatapointMessagesDeveloperMessage$inboundSchema: z.ZodType<
2324
+ RetrieveDatapointMessagesDeveloperMessage,
2325
+ z.ZodTypeDef,
2326
+ unknown
2327
+ > = z.object({
2328
+ role: RetrieveDatapointMessagesRole$inboundSchema,
2329
+ content: z.string(),
2330
+ name: z.string().optional(),
2331
+ });
2332
+
2333
+ /** @internal */
2334
+ export type RetrieveDatapointMessagesDeveloperMessage$Outbound = {
2335
+ role: string;
2336
+ content: string;
2337
+ name?: string | undefined;
2338
+ };
2339
+
2340
+ /** @internal */
2341
+ export const RetrieveDatapointMessagesDeveloperMessage$outboundSchema:
2342
+ z.ZodType<
2343
+ RetrieveDatapointMessagesDeveloperMessage$Outbound,
2344
+ z.ZodTypeDef,
2345
+ RetrieveDatapointMessagesDeveloperMessage
2346
+ > = z.object({
2347
+ role: RetrieveDatapointMessagesRole$outboundSchema,
2348
+ content: z.string(),
2349
+ name: z.string().optional(),
2350
+ });
2351
+
2352
+ /**
2353
+ * @internal
2354
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2355
+ */
2356
+ export namespace RetrieveDatapointMessagesDeveloperMessage$ {
2357
+ /** @deprecated use `RetrieveDatapointMessagesDeveloperMessage$inboundSchema` instead. */
2358
+ export const inboundSchema =
2359
+ RetrieveDatapointMessagesDeveloperMessage$inboundSchema;
2360
+ /** @deprecated use `RetrieveDatapointMessagesDeveloperMessage$outboundSchema` instead. */
2361
+ export const outboundSchema =
2362
+ RetrieveDatapointMessagesDeveloperMessage$outboundSchema;
2363
+ /** @deprecated use `RetrieveDatapointMessagesDeveloperMessage$Outbound` instead. */
2364
+ export type Outbound = RetrieveDatapointMessagesDeveloperMessage$Outbound;
2365
+ }
2366
+
2367
+ export function retrieveDatapointMessagesDeveloperMessageToJSON(
2368
+ retrieveDatapointMessagesDeveloperMessage:
2369
+ RetrieveDatapointMessagesDeveloperMessage,
2370
+ ): string {
2371
+ return JSON.stringify(
2372
+ RetrieveDatapointMessagesDeveloperMessage$outboundSchema.parse(
2373
+ retrieveDatapointMessagesDeveloperMessage,
2374
+ ),
2375
+ );
2376
+ }
2377
+
2378
+ export function retrieveDatapointMessagesDeveloperMessageFromJSON(
2379
+ jsonString: string,
2380
+ ): SafeParseResult<
2381
+ RetrieveDatapointMessagesDeveloperMessage,
2382
+ SDKValidationError
2383
+ > {
2384
+ return safeParse(
2385
+ jsonString,
2386
+ (x) =>
2387
+ RetrieveDatapointMessagesDeveloperMessage$inboundSchema.parse(
2388
+ JSON.parse(x),
2389
+ ),
2390
+ `Failed to parse 'RetrieveDatapointMessagesDeveloperMessage' from JSON`,
2391
+ );
2392
+ }
2393
+
2394
+ /** @internal */
2395
+ export const RetrieveDatapointMessages$inboundSchema: z.ZodType<
2396
+ RetrieveDatapointMessages,
2397
+ z.ZodTypeDef,
2398
+ unknown
2399
+ > = z.union([
2400
+ z.lazy(() => RetrieveDatapointMessagesToolMessage$inboundSchema),
2401
+ z.lazy(() => RetrieveDatapointMessagesDeveloperMessage$inboundSchema),
2402
+ z.lazy(() => RetrieveDatapointMessagesSystemMessage$inboundSchema),
2403
+ z.lazy(() => RetrieveDatapointMessagesUserMessage$inboundSchema),
2404
+ z.lazy(() => RetrieveDatapointMessagesAssistantMessage$inboundSchema),
2405
+ ]);
2406
+
2407
+ /** @internal */
2408
+ export type RetrieveDatapointMessages$Outbound =
2409
+ | RetrieveDatapointMessagesToolMessage$Outbound
2410
+ | RetrieveDatapointMessagesDeveloperMessage$Outbound
2411
+ | RetrieveDatapointMessagesSystemMessage$Outbound
2412
+ | RetrieveDatapointMessagesUserMessage$Outbound
2413
+ | RetrieveDatapointMessagesAssistantMessage$Outbound;
2414
+
2415
+ /** @internal */
2416
+ export const RetrieveDatapointMessages$outboundSchema: z.ZodType<
2417
+ RetrieveDatapointMessages$Outbound,
2418
+ z.ZodTypeDef,
2419
+ RetrieveDatapointMessages
2420
+ > = z.union([
2421
+ z.lazy(() => RetrieveDatapointMessagesToolMessage$outboundSchema),
2422
+ z.lazy(() => RetrieveDatapointMessagesDeveloperMessage$outboundSchema),
2423
+ z.lazy(() => RetrieveDatapointMessagesSystemMessage$outboundSchema),
2424
+ z.lazy(() => RetrieveDatapointMessagesUserMessage$outboundSchema),
2425
+ z.lazy(() => RetrieveDatapointMessagesAssistantMessage$outboundSchema),
2426
+ ]);
2427
+
2428
+ /**
2429
+ * @internal
2430
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2431
+ */
2432
+ export namespace RetrieveDatapointMessages$ {
2433
+ /** @deprecated use `RetrieveDatapointMessages$inboundSchema` instead. */
2434
+ export const inboundSchema = RetrieveDatapointMessages$inboundSchema;
2435
+ /** @deprecated use `RetrieveDatapointMessages$outboundSchema` instead. */
2436
+ export const outboundSchema = RetrieveDatapointMessages$outboundSchema;
2437
+ /** @deprecated use `RetrieveDatapointMessages$Outbound` instead. */
2438
+ export type Outbound = RetrieveDatapointMessages$Outbound;
2439
+ }
2440
+
2441
+ export function retrieveDatapointMessagesToJSON(
2442
+ retrieveDatapointMessages: RetrieveDatapointMessages,
2443
+ ): string {
2444
+ return JSON.stringify(
2445
+ RetrieveDatapointMessages$outboundSchema.parse(retrieveDatapointMessages),
2446
+ );
2447
+ }
2448
+
2449
+ export function retrieveDatapointMessagesFromJSON(
2450
+ jsonString: string,
2451
+ ): SafeParseResult<RetrieveDatapointMessages, SDKValidationError> {
2452
+ return safeParse(
2453
+ jsonString,
2454
+ (x) => RetrieveDatapointMessages$inboundSchema.parse(JSON.parse(x)),
2455
+ `Failed to parse 'RetrieveDatapointMessages' from JSON`,
2456
+ );
2457
+ }
2458
+
2459
+ /** @internal */
2460
+ export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
2461
+ RetrieveDatapointResponseBody,
2462
+ z.ZodTypeDef,
2463
+ unknown
2464
+ > = z.object({
2465
+ _id: z.string(),
2466
+ workspace_id: z.string(),
2467
+ inputs: z.record(z.any()).optional(),
2468
+ messages: z.array(
2469
+ z.union([
2470
+ z.lazy(() => RetrieveDatapointMessagesToolMessage$inboundSchema),
2471
+ z.lazy(() => RetrieveDatapointMessagesDeveloperMessage$inboundSchema),
2472
+ z.lazy(() => RetrieveDatapointMessagesSystemMessage$inboundSchema),
2473
+ z.lazy(() => RetrieveDatapointMessagesUserMessage$inboundSchema),
2474
+ z.lazy(() => RetrieveDatapointMessagesAssistantMessage$inboundSchema),
2475
+ ]),
2476
+ ).optional(),
2477
+ expected_output: z.string().optional(),
2478
+ dataset_id: z.string(),
2479
+ created_by_id: z.string().optional(),
2480
+ updated_by_id: z.string().optional(),
2481
+ created: z.string().datetime({ offset: true }).transform(v => new Date(v))
2482
+ .optional(),
2483
+ updated: z.string().datetime({ offset: true }).default(
2484
+ "2025-06-18T14:15:20.501Z",
2485
+ ).transform(v => new Date(v)),
2486
+ }).transform((v) => {
2487
+ return remap$(v, {
2488
+ "_id": "id",
2489
+ "workspace_id": "workspaceId",
2490
+ "expected_output": "expectedOutput",
2491
+ "dataset_id": "datasetId",
2492
+ "created_by_id": "createdById",
2493
+ "updated_by_id": "updatedById",
2494
+ });
2495
+ });
2496
+
2497
+ /** @internal */
2498
+ export type RetrieveDatapointResponseBody$Outbound = {
2499
+ _id: string;
2500
+ workspace_id: string;
2501
+ inputs?: { [k: string]: any } | undefined;
2502
+ messages?:
2503
+ | Array<
2504
+ | RetrieveDatapointMessagesToolMessage$Outbound
2505
+ | RetrieveDatapointMessagesDeveloperMessage$Outbound
2506
+ | RetrieveDatapointMessagesSystemMessage$Outbound
2507
+ | RetrieveDatapointMessagesUserMessage$Outbound
2508
+ | RetrieveDatapointMessagesAssistantMessage$Outbound
2509
+ >
2510
+ | undefined;
2511
+ expected_output?: string | undefined;
2512
+ dataset_id: string;
2513
+ created_by_id?: string | undefined;
2514
+ updated_by_id?: string | undefined;
2515
+ created?: string | undefined;
2516
+ updated: string;
2517
+ };
2518
+
2519
+ /** @internal */
2520
+ export const RetrieveDatapointResponseBody$outboundSchema: z.ZodType<
2521
+ RetrieveDatapointResponseBody$Outbound,
2522
+ z.ZodTypeDef,
2523
+ RetrieveDatapointResponseBody
2524
+ > = z.object({
2525
+ id: z.string(),
2526
+ workspaceId: z.string(),
2527
+ inputs: z.record(z.any()).optional(),
2528
+ messages: z.array(
2529
+ z.union([
2530
+ z.lazy(() => RetrieveDatapointMessagesToolMessage$outboundSchema),
2531
+ z.lazy(() => RetrieveDatapointMessagesDeveloperMessage$outboundSchema),
2532
+ z.lazy(() => RetrieveDatapointMessagesSystemMessage$outboundSchema),
2533
+ z.lazy(() => RetrieveDatapointMessagesUserMessage$outboundSchema),
2534
+ z.lazy(() => RetrieveDatapointMessagesAssistantMessage$outboundSchema),
2535
+ ]),
2536
+ ).optional(),
2537
+ expectedOutput: z.string().optional(),
2538
+ datasetId: z.string(),
2539
+ createdById: z.string().optional(),
2540
+ updatedById: z.string().optional(),
2541
+ created: z.date().transform(v => v.toISOString()).optional(),
2542
+ updated: z.date().default(() => new Date("2025-06-18T14:15:20.501Z"))
2543
+ .transform(v => v.toISOString()),
2544
+ }).transform((v) => {
2545
+ return remap$(v, {
2546
+ id: "_id",
2547
+ workspaceId: "workspace_id",
2548
+ expectedOutput: "expected_output",
2549
+ datasetId: "dataset_id",
2550
+ createdById: "created_by_id",
2551
+ updatedById: "updated_by_id",
2552
+ });
2553
+ });
2554
+
2555
+ /**
2556
+ * @internal
2557
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2558
+ */
2559
+ export namespace RetrieveDatapointResponseBody$ {
2560
+ /** @deprecated use `RetrieveDatapointResponseBody$inboundSchema` instead. */
2561
+ export const inboundSchema = RetrieveDatapointResponseBody$inboundSchema;
2562
+ /** @deprecated use `RetrieveDatapointResponseBody$outboundSchema` instead. */
2563
+ export const outboundSchema = RetrieveDatapointResponseBody$outboundSchema;
2564
+ /** @deprecated use `RetrieveDatapointResponseBody$Outbound` instead. */
2565
+ export type Outbound = RetrieveDatapointResponseBody$Outbound;
2566
+ }
2567
+
2568
+ export function retrieveDatapointResponseBodyToJSON(
2569
+ retrieveDatapointResponseBody: RetrieveDatapointResponseBody,
2570
+ ): string {
2571
+ return JSON.stringify(
2572
+ RetrieveDatapointResponseBody$outboundSchema.parse(
2573
+ retrieveDatapointResponseBody,
2574
+ ),
2575
+ );
2576
+ }
2577
+
2578
+ export function retrieveDatapointResponseBodyFromJSON(
2579
+ jsonString: string,
2580
+ ): SafeParseResult<RetrieveDatapointResponseBody, SDKValidationError> {
2581
+ return safeParse(
2582
+ jsonString,
2583
+ (x) => RetrieveDatapointResponseBody$inboundSchema.parse(JSON.parse(x)),
2584
+ `Failed to parse 'RetrieveDatapointResponseBody' from JSON`,
2585
+ );
2586
+ }