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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (394) hide show
  1. package/README.md +6 -0
  2. package/bin/mcp-server.js +4828 -608
  3. package/bin/mcp-server.js.map +44 -35
  4. package/docs/sdks/datasets/README.md +91 -4
  5. package/docs/sdks/deployments/README.md +89 -0
  6. package/docs/sdks/knowledge/README.md +81 -4
  7. package/docs/sdks/prompts/README.md +4 -4
  8. package/funcs/datasetsCreateExperiment.d.ts +16 -0
  9. package/funcs/datasetsCreateExperiment.d.ts.map +1 -0
  10. package/funcs/datasetsCreateExperiment.js +118 -0
  11. package/funcs/datasetsCreateExperiment.js.map +1 -0
  12. package/funcs/deploymentsCreateExperiment.d.ts +16 -0
  13. package/funcs/deploymentsCreateExperiment.d.ts.map +1 -0
  14. package/funcs/deploymentsCreateExperiment.js +118 -0
  15. package/funcs/deploymentsCreateExperiment.js.map +1 -0
  16. package/funcs/knowledgeSearch.d.ts +16 -0
  17. package/funcs/knowledgeSearch.d.ts.map +1 -0
  18. package/funcs/knowledgeSearch.js +118 -0
  19. package/funcs/knowledgeSearch.js.map +1 -0
  20. package/jsr.json +1 -1
  21. package/lib/config.d.ts +2 -2
  22. package/lib/config.js +2 -2
  23. package/lib/config.js.map +1 -1
  24. package/mcp-server/mcp-server.js +1 -1
  25. package/mcp-server/mcp-server.js.map +1 -1
  26. package/mcp-server/server.d.ts.map +1 -1
  27. package/mcp-server/server.js +7 -1
  28. package/mcp-server/server.js.map +1 -1
  29. package/mcp-server/tools/datasetsCreateExperiment.d.ts +8 -0
  30. package/mcp-server/tools/datasetsCreateExperiment.d.ts.map +1 -0
  31. package/mcp-server/tools/datasetsCreateExperiment.js +64 -0
  32. package/mcp-server/tools/datasetsCreateExperiment.js.map +1 -0
  33. package/mcp-server/tools/deploymentsCreateExperiment.d.ts +8 -0
  34. package/mcp-server/tools/deploymentsCreateExperiment.d.ts.map +1 -0
  35. package/mcp-server/tools/deploymentsCreateExperiment.js +64 -0
  36. package/mcp-server/tools/deploymentsCreateExperiment.js.map +1 -0
  37. package/mcp-server/tools/knowledgeSearch.d.ts +8 -0
  38. package/mcp-server/tools/knowledgeSearch.d.ts.map +1 -0
  39. package/mcp-server/tools/knowledgeSearch.js +64 -0
  40. package/mcp-server/tools/knowledgeSearch.js.map +1 -0
  41. package/models/components/deployments.d.ts +1442 -67
  42. package/models/components/deployments.d.ts.map +1 -1
  43. package/models/components/deployments.js +1881 -126
  44. package/models/components/deployments.js.map +1 -1
  45. package/models/operations/bulkcreatedatapoints.js +2 -2
  46. package/models/operations/createchunk.d.ts +32 -17
  47. package/models/operations/createchunk.d.ts.map +1 -1
  48. package/models/operations/createchunk.js +30 -19
  49. package/models/operations/createchunk.js.map +1 -1
  50. package/models/operations/createcontact.js +2 -2
  51. package/models/operations/createdataset.js +2 -2
  52. package/models/operations/createdatasetexperiment.d.ts +140 -0
  53. package/models/operations/createdatasetexperiment.d.ts.map +1 -0
  54. package/models/operations/createdatasetexperiment.js +188 -0
  55. package/models/operations/createdatasetexperiment.js.map +1 -0
  56. package/models/operations/createdatasetitem.js +2 -2
  57. package/models/operations/createdatasource.js +2 -2
  58. package/models/operations/createdeploymentexperiment.d.ts +152 -0
  59. package/models/operations/createdeploymentexperiment.d.ts.map +1 -0
  60. package/models/operations/createdeploymentexperiment.js +189 -0
  61. package/models/operations/createdeploymentexperiment.js.map +1 -0
  62. package/models/operations/deploymentcreatemetric.d.ts +240 -28
  63. package/models/operations/deploymentcreatemetric.d.ts.map +1 -1
  64. package/models/operations/deploymentcreatemetric.js +236 -29
  65. package/models/operations/deploymentcreatemetric.js.map +1 -1
  66. package/models/operations/deploymentgetconfig.d.ts +1428 -53
  67. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  68. package/models/operations/deploymentgetconfig.js +1876 -120
  69. package/models/operations/deploymentgetconfig.js.map +1 -1
  70. package/models/operations/deploymentinvoke.d.ts +34 -4
  71. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  72. package/models/operations/deploymentinvoke.js +30 -4
  73. package/models/operations/deploymentinvoke.js.map +1 -1
  74. package/models/operations/deploymentstream.d.ts +1425 -50
  75. package/models/operations/deploymentstream.d.ts.map +1 -1
  76. package/models/operations/deploymentstream.js +1840 -88
  77. package/models/operations/deploymentstream.js.map +1 -1
  78. package/models/operations/fileget.js +2 -2
  79. package/models/operations/filelist.js +2 -2
  80. package/models/operations/fileupload.d.ts +15 -15
  81. package/models/operations/fileupload.d.ts.map +1 -1
  82. package/models/operations/fileupload.js +20 -21
  83. package/models/operations/fileupload.js.map +1 -1
  84. package/models/operations/getonechunk.d.ts +24 -3
  85. package/models/operations/getonechunk.d.ts.map +1 -1
  86. package/models/operations/getonechunk.js +26 -3
  87. package/models/operations/getonechunk.js.map +1 -1
  88. package/models/operations/index.d.ts +3 -0
  89. package/models/operations/index.d.ts.map +1 -1
  90. package/models/operations/index.js +3 -0
  91. package/models/operations/index.js.map +1 -1
  92. package/models/operations/listchunks.d.ts +24 -3
  93. package/models/operations/listchunks.d.ts.map +1 -1
  94. package/models/operations/listchunks.js +26 -3
  95. package/models/operations/listchunks.js.map +1 -1
  96. package/models/operations/listdatasetdatapoints.js +2 -2
  97. package/models/operations/listdatasets.js +2 -2
  98. package/models/operations/listdatasources.js +2 -2
  99. package/models/operations/retrievedatapoint.js +2 -2
  100. package/models/operations/retrievedataset.js +2 -2
  101. package/models/operations/retrievedatasource.js +2 -2
  102. package/models/operations/searchknowledge.d.ts +1379 -0
  103. package/models/operations/searchknowledge.d.ts.map +1 -0
  104. package/models/operations/searchknowledge.js +1817 -0
  105. package/models/operations/searchknowledge.js.map +1 -0
  106. package/models/operations/updatechunk.d.ts +32 -17
  107. package/models/operations/updatechunk.d.ts.map +1 -1
  108. package/models/operations/updatechunk.js +30 -19
  109. package/models/operations/updatechunk.js.map +1 -1
  110. package/models/operations/updatedatapoint.js +2 -2
  111. package/models/operations/updatedataset.js +2 -2
  112. package/models/operations/updatedatasource.js +2 -2
  113. package/package.json +3 -2
  114. package/sdk/datasets.d.ts +7 -0
  115. package/sdk/datasets.d.ts.map +1 -1
  116. package/sdk/datasets.js +10 -0
  117. package/sdk/datasets.js.map +1 -1
  118. package/sdk/deployments.d.ts +7 -0
  119. package/sdk/deployments.d.ts.map +1 -1
  120. package/sdk/deployments.js +10 -0
  121. package/sdk/deployments.js.map +1 -1
  122. package/sdk/knowledge.d.ts +7 -0
  123. package/sdk/knowledge.d.ts.map +1 -1
  124. package/sdk/knowledge.js +10 -0
  125. package/sdk/knowledge.js.map +1 -1
  126. package/src/lib/config.ts +2 -2
  127. package/src/mcp-server/mcp-server.ts +1 -1
  128. package/src/mcp-server/server.ts +7 -1
  129. package/src/models/components/deployments.ts +3655 -165
  130. package/src/models/operations/bulkcreatedatapoints.ts +2 -2
  131. package/src/models/operations/createchunk.ts +65 -35
  132. package/src/models/operations/createcontact.ts +2 -2
  133. package/src/models/operations/createdataset.ts +2 -2
  134. package/src/models/operations/createdatasetitem.ts +2 -2
  135. package/src/models/operations/createdatasource.ts +2 -2
  136. package/src/models/operations/deploymentcreatemetric.ts +517 -40
  137. package/src/models/operations/deploymentgetconfig.ts +3656 -118
  138. package/src/models/operations/deploymentinvoke.ts +64 -8
  139. package/src/models/operations/deploymentstream.ts +3997 -116
  140. package/src/models/operations/fileget.ts +2 -2
  141. package/src/models/operations/filelist.ts +2 -2
  142. package/src/models/operations/fileupload.ts +37 -34
  143. package/src/models/operations/getonechunk.ts +55 -5
  144. package/src/models/operations/index.ts +3 -0
  145. package/src/models/operations/listchunks.ts +55 -5
  146. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  147. package/src/models/operations/listdatasets.ts +2 -2
  148. package/src/models/operations/listdatasources.ts +2 -2
  149. package/src/models/operations/retrievedatapoint.ts +2 -2
  150. package/src/models/operations/retrievedataset.ts +2 -2
  151. package/src/models/operations/retrievedatasource.ts +2 -2
  152. package/src/models/operations/updatechunk.ts +65 -35
  153. package/src/models/operations/updatedatapoint.ts +2 -2
  154. package/src/models/operations/updatedataset.ts +2 -2
  155. package/src/models/operations/updatedatasource.ts +2 -2
  156. package/src/sdk/datasets.ts +18 -0
  157. package/src/sdk/deployments.ts +18 -0
  158. package/src/sdk/knowledge.ts +18 -0
  159. package/packages/orq-rc/FUNCTIONS.md +0 -106
  160. package/packages/orq-rc/README.md +0 -707
  161. package/packages/orq-rc/RUNTIMES.md +0 -48
  162. package/packages/orq-rc/docs/sdks/contacts/README.md +0 -84
  163. package/packages/orq-rc/docs/sdks/datasets/README.md +0 -1027
  164. package/packages/orq-rc/docs/sdks/deployments/README.md +0 -405
  165. package/packages/orq-rc/docs/sdks/feedback/README.md +0 -92
  166. package/packages/orq-rc/docs/sdks/files/README.md +0 -311
  167. package/packages/orq-rc/docs/sdks/knowledge/README.md +0 -1273
  168. package/packages/orq-rc/docs/sdks/metrics/README.md +0 -86
  169. package/packages/orq-rc/docs/sdks/models/README.md +0 -79
  170. package/packages/orq-rc/docs/sdks/orq/README.md +0 -10
  171. package/packages/orq-rc/docs/sdks/prompts/README.md +0 -576
  172. package/packages/orq-rc/docs/sdks/remoteconfigs/README.md +0 -80
  173. package/packages/orq-rc/jsr.json +0 -28
  174. package/packages/orq-rc/package-lock.json +0 -3217
  175. package/packages/orq-rc/package.json +0 -45
  176. package/packages/orq-rc/src/core.ts +0 -13
  177. package/packages/orq-rc/src/funcs/contactsCreate.ts +0 -154
  178. package/packages/orq-rc/src/funcs/datasetsClear.ts +0 -161
  179. package/packages/orq-rc/src/funcs/datasetsCreate.ts +0 -159
  180. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +0 -161
  181. package/packages/orq-rc/src/funcs/datasetsCreateDatapoints.ts +0 -165
  182. package/packages/orq-rc/src/funcs/datasetsDelete.ts +0 -161
  183. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +0 -176
  184. package/packages/orq-rc/src/funcs/datasetsList.ts +0 -161
  185. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +0 -168
  186. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +0 -169
  187. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +0 -175
  188. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +0 -170
  189. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +0 -173
  190. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +0 -162
  191. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +0 -170
  192. package/packages/orq-rc/src/funcs/deploymentsList.ts +0 -170
  193. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +0 -162
  194. package/packages/orq-rc/src/funcs/deploymentsStream.ts +0 -178
  195. package/packages/orq-rc/src/funcs/feedbackCreate.ts +0 -154
  196. package/packages/orq-rc/src/funcs/filesCreate.ts +0 -174
  197. package/packages/orq-rc/src/funcs/filesDelete.ts +0 -158
  198. package/packages/orq-rc/src/funcs/filesGet.ts +0 -160
  199. package/packages/orq-rc/src/funcs/filesList.ts +0 -161
  200. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +0 -152
  201. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +0 -165
  202. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +0 -160
  203. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +0 -161
  204. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +0 -168
  205. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +0 -167
  206. package/packages/orq-rc/src/funcs/knowledgeList.ts +0 -163
  207. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +0 -172
  208. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +0 -168
  209. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +0 -160
  210. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +0 -167
  211. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +0 -163
  212. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +0 -158
  213. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +0 -168
  214. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +0 -164
  215. package/packages/orq-rc/src/funcs/modelsList.ts +0 -136
  216. package/packages/orq-rc/src/funcs/promptsCreate.ts +0 -154
  217. package/packages/orq-rc/src/funcs/promptsDelete.ts +0 -158
  218. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +0 -175
  219. package/packages/orq-rc/src/funcs/promptsList.ts +0 -161
  220. package/packages/orq-rc/src/funcs/promptsListVersions.ts +0 -167
  221. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +0 -160
  222. package/packages/orq-rc/src/funcs/promptsUpdate.ts +0 -167
  223. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +0 -155
  224. package/packages/orq-rc/src/hooks/global.ts +0 -44
  225. package/packages/orq-rc/src/hooks/hooks.ts +0 -132
  226. package/packages/orq-rc/src/hooks/index.ts +0 -6
  227. package/packages/orq-rc/src/hooks/registration.ts +0 -15
  228. package/packages/orq-rc/src/hooks/types.ts +0 -110
  229. package/packages/orq-rc/src/index.ts +0 -7
  230. package/packages/orq-rc/src/lib/base64.ts +0 -37
  231. package/packages/orq-rc/src/lib/config.ts +0 -70
  232. package/packages/orq-rc/src/lib/dlv.ts +0 -53
  233. package/packages/orq-rc/src/lib/encodings.ts +0 -483
  234. package/packages/orq-rc/src/lib/env.ts +0 -73
  235. package/packages/orq-rc/src/lib/event-streams.ts +0 -264
  236. package/packages/orq-rc/src/lib/files.ts +0 -40
  237. package/packages/orq-rc/src/lib/http.ts +0 -323
  238. package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
  239. package/packages/orq-rc/src/lib/logger.ts +0 -9
  240. package/packages/orq-rc/src/lib/matchers.ts +0 -345
  241. package/packages/orq-rc/src/lib/primitives.ts +0 -150
  242. package/packages/orq-rc/src/lib/retries.ts +0 -218
  243. package/packages/orq-rc/src/lib/schemas.ts +0 -91
  244. package/packages/orq-rc/src/lib/sdks.ts +0 -401
  245. package/packages/orq-rc/src/lib/security.ts +0 -261
  246. package/packages/orq-rc/src/lib/url.ts +0 -33
  247. package/packages/orq-rc/src/mcp-server/cli/start/command.ts +0 -125
  248. package/packages/orq-rc/src/mcp-server/cli/start/impl.ts +0 -140
  249. package/packages/orq-rc/src/mcp-server/cli.ts +0 -13
  250. package/packages/orq-rc/src/mcp-server/console-logger.ts +0 -71
  251. package/packages/orq-rc/src/mcp-server/extensions.ts +0 -17
  252. package/packages/orq-rc/src/mcp-server/mcp-server.ts +0 -26
  253. package/packages/orq-rc/src/mcp-server/prompts.ts +0 -117
  254. package/packages/orq-rc/src/mcp-server/resources.ts +0 -172
  255. package/packages/orq-rc/src/mcp-server/scopes.ts +0 -7
  256. package/packages/orq-rc/src/mcp-server/server.ts +0 -163
  257. package/packages/orq-rc/src/mcp-server/shared.ts +0 -75
  258. package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +0 -37
  259. package/packages/orq-rc/src/mcp-server/tools/datasetsClear.ts +0 -35
  260. package/packages/orq-rc/src/mcp-server/tools/datasetsCreate.ts +0 -37
  261. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoint.ts +0 -37
  262. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoints.ts +0 -37
  263. package/packages/orq-rc/src/mcp-server/tools/datasetsDelete.ts +0 -35
  264. package/packages/orq-rc/src/mcp-server/tools/datasetsDeleteDatapoint.ts +0 -35
  265. package/packages/orq-rc/src/mcp-server/tools/datasetsList.ts +0 -37
  266. package/packages/orq-rc/src/mcp-server/tools/datasetsListDatapoints.ts +0 -37
  267. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieve.ts +0 -37
  268. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieveDatapoint.ts +0 -37
  269. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdate.ts +0 -37
  270. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdateDatapoint.ts +0 -35
  271. package/packages/orq-rc/src/mcp-server/tools/deploymentsGetConfig.ts +0 -37
  272. package/packages/orq-rc/src/mcp-server/tools/deploymentsInvoke.ts +0 -37
  273. package/packages/orq-rc/src/mcp-server/tools/deploymentsList.ts +0 -37
  274. package/packages/orq-rc/src/mcp-server/tools/deploymentsMetricsCreate.ts +0 -37
  275. package/packages/orq-rc/src/mcp-server/tools/deploymentsStream.ts +0 -37
  276. package/packages/orq-rc/src/mcp-server/tools/feedbackCreate.ts +0 -37
  277. package/packages/orq-rc/src/mcp-server/tools/filesCreate.ts +0 -37
  278. package/packages/orq-rc/src/mcp-server/tools/filesDelete.ts +0 -33
  279. package/packages/orq-rc/src/mcp-server/tools/filesGet.ts +0 -37
  280. package/packages/orq-rc/src/mcp-server/tools/filesList.ts +0 -37
  281. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreate.ts +0 -35
  282. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateChunks.ts +0 -35
  283. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateDatasource.ts +0 -35
  284. package/packages/orq-rc/src/mcp-server/tools/knowledgeDelete.ts +0 -35
  285. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunk.ts +0 -33
  286. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteDatasource.ts +0 -35
  287. package/packages/orq-rc/src/mcp-server/tools/knowledgeList.ts +0 -37
  288. package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunks.ts +0 -35
  289. package/packages/orq-rc/src/mcp-server/tools/knowledgeListDatasources.ts +0 -35
  290. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieve.ts +0 -37
  291. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveChunk.ts +0 -35
  292. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveDatasource.ts +0 -35
  293. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdate.ts +0 -35
  294. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateChunk.ts +0 -35
  295. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateDatasource.ts +0 -35
  296. package/packages/orq-rc/src/mcp-server/tools/modelsList.ts +0 -30
  297. package/packages/orq-rc/src/mcp-server/tools/promptsCreate.ts +0 -35
  298. package/packages/orq-rc/src/mcp-server/tools/promptsDelete.ts +0 -33
  299. package/packages/orq-rc/src/mcp-server/tools/promptsGetVersion.ts +0 -37
  300. package/packages/orq-rc/src/mcp-server/tools/promptsList.ts +0 -37
  301. package/packages/orq-rc/src/mcp-server/tools/promptsListVersions.ts +0 -37
  302. package/packages/orq-rc/src/mcp-server/tools/promptsRetrieve.ts +0 -37
  303. package/packages/orq-rc/src/mcp-server/tools/promptsUpdate.ts +0 -35
  304. package/packages/orq-rc/src/mcp-server/tools/remoteconfigsRetrieve.ts +0 -36
  305. package/packages/orq-rc/src/mcp-server/tools.ts +0 -129
  306. package/packages/orq-rc/src/models/components/deployments.ts +0 -7749
  307. package/packages/orq-rc/src/models/components/index.ts +0 -6
  308. package/packages/orq-rc/src/models/components/security.ts +0 -71
  309. package/packages/orq-rc/src/models/errors/apierror.ts +0 -27
  310. package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -71
  311. package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -82
  312. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
  313. package/packages/orq-rc/src/models/errors/index.ts +0 -10
  314. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -97
  315. package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -71
  316. package/packages/orq-rc/src/models/operations/bulkcreatedatapoints.ts +0 -1828
  317. package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -75
  318. package/packages/orq-rc/src/models/operations/createchunk.ts +0 -432
  319. package/packages/orq-rc/src/models/operations/createcontact.ts +0 -256
  320. package/packages/orq-rc/src/models/operations/createdataset.ts +0 -296
  321. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +0 -1752
  322. package/packages/orq-rc/src/models/operations/createdatasource.ts +0 -852
  323. package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -286
  324. package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -846
  325. package/packages/orq-rc/src/models/operations/createprompt.ts +0 -3691
  326. package/packages/orq-rc/src/models/operations/deletechunk.ts +0 -96
  327. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -81
  328. package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -75
  329. package/packages/orq-rc/src/models/operations/deletedatasource.ts +0 -87
  330. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +0 -78
  331. package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -69
  332. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -5435
  333. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -9694
  334. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -1255
  335. package/packages/orq-rc/src/models/operations/deployments.ts +0 -2128
  336. package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -9946
  337. package/packages/orq-rc/src/models/operations/filedelete.ts +0 -78
  338. package/packages/orq-rc/src/models/operations/fileget.ts +0 -223
  339. package/packages/orq-rc/src/models/operations/filelist.ts +0 -337
  340. package/packages/orq-rc/src/models/operations/fileupload.ts +0 -327
  341. package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -2100
  342. package/packages/orq-rc/src/models/operations/getonechunk.ts +0 -315
  343. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +0 -537
  344. package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -1966
  345. package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -1962
  346. package/packages/orq-rc/src/models/operations/index.ts +0 -54
  347. package/packages/orq-rc/src/models/operations/listchunks.ts +0 -494
  348. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +0 -1077
  349. package/packages/orq-rc/src/models/operations/listdatasets.ts +0 -406
  350. package/packages/orq-rc/src/models/operations/listdatasources.ts +0 -447
  351. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +0 -663
  352. package/packages/orq-rc/src/models/operations/listmodels.ts +0 -273
  353. package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -2096
  354. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -190
  355. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -930
  356. package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -288
  357. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +0 -273
  358. package/packages/orq-rc/src/models/operations/updatechunk.ts +0 -448
  359. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +0 -1741
  360. package/packages/orq-rc/src/models/operations/updatedataset.ts +0 -393
  361. package/packages/orq-rc/src/models/operations/updatedatasource.ts +0 -345
  362. package/packages/orq-rc/src/models/operations/updateknowledge.ts +0 -980
  363. package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -3873
  364. package/packages/orq-rc/src/sdk/contacts.ts +0 -27
  365. package/packages/orq-rc/src/sdk/datasets.ts +0 -240
  366. package/packages/orq-rc/src/sdk/deployments.ts +0 -107
  367. package/packages/orq-rc/src/sdk/feedback.ts +0 -27
  368. package/packages/orq-rc/src/sdk/files.ts +0 -78
  369. package/packages/orq-rc/src/sdk/index.ts +0 -5
  370. package/packages/orq-rc/src/sdk/knowledge.ts +0 -264
  371. package/packages/orq-rc/src/sdk/metrics.ts +0 -27
  372. package/packages/orq-rc/src/sdk/models.ts +0 -25
  373. package/packages/orq-rc/src/sdk/prompts.ts +0 -126
  374. package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
  375. package/packages/orq-rc/src/sdk/sdk.ts +0 -61
  376. package/packages/orq-rc/src/types/async.ts +0 -68
  377. package/packages/orq-rc/src/types/blobs.ts +0 -31
  378. package/packages/orq-rc/src/types/constdatetime.ts +0 -15
  379. package/packages/orq-rc/src/types/enums.ts +0 -16
  380. package/packages/orq-rc/src/types/fp.ts +0 -50
  381. package/packages/orq-rc/src/types/index.ts +0 -11
  382. package/packages/orq-rc/src/types/operations.ts +0 -105
  383. package/packages/orq-rc/src/types/rfcdate.ts +0 -54
  384. package/packages/orq-rc/src/types/streams.ts +0 -21
  385. package/packages/orq-rc/tsconfig.json +0 -41
  386. /package/{packages/orq-rc/src → src}/funcs/datasetsCreateExperiment.ts +0 -0
  387. /package/{packages/orq-rc/src → src}/funcs/deploymentsCreateExperiment.ts +0 -0
  388. /package/{packages/orq-rc/src → src}/funcs/knowledgeSearch.ts +0 -0
  389. /package/{packages/orq-rc/src → src}/mcp-server/tools/datasetsCreateExperiment.ts +0 -0
  390. /package/{packages/orq-rc/src → src}/mcp-server/tools/deploymentsCreateExperiment.ts +0 -0
  391. /package/{packages/orq-rc/src → src}/mcp-server/tools/knowledgeSearch.ts +0 -0
  392. /package/{packages/orq-rc/src → src}/models/operations/createdatasetexperiment.ts +0 -0
  393. /package/{packages/orq-rc/src → src}/models/operations/createdeploymentexperiment.ts +0 -0
  394. /package/{packages/orq-rc/src → src}/models/operations/searchknowledge.ts +0 -0
@@ -1,1741 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
- import { safeParse } from "../../lib/schemas.js";
8
- import { ClosedEnum } from "../../types/enums.js";
9
- import { Result as SafeParseResult } from "../../types/fp.js";
10
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
-
12
- /**
13
- * The role of the prompt message
14
- */
15
- export const UpdateDatapointRole = {
16
- System: "system",
17
- Assistant: "assistant",
18
- User: "user",
19
- Exception: "exception",
20
- Tool: "tool",
21
- Prompt: "prompt",
22
- Correction: "correction",
23
- ExpectedOutput: "expected_output",
24
- } as const;
25
- /**
26
- * The role of the prompt message
27
- */
28
- export type UpdateDatapointRole = ClosedEnum<typeof UpdateDatapointRole>;
29
-
30
- export const UpdateDatapoint2DatasetsType = {
31
- ImageUrl: "image_url",
32
- } as const;
33
- export type UpdateDatapoint2DatasetsType = ClosedEnum<
34
- typeof UpdateDatapoint2DatasetsType
35
- >;
36
-
37
- export type UpdateDatapoint2ImageUrl = {
38
- /**
39
- * Either a URL of the image or the base64 encoded data URI.
40
- */
41
- url: string;
42
- /**
43
- * Specifies the detail level of the image. Currently only supported with OpenAI models
44
- */
45
- detail?: string | undefined;
46
- };
47
-
48
- /**
49
- * The image part of the prompt message. Only supported with vision models.
50
- */
51
- export type UpdateDatapoint22 = {
52
- type: UpdateDatapoint2DatasetsType;
53
- imageUrl: UpdateDatapoint2ImageUrl;
54
- };
55
-
56
- export const UpdateDatapoint2Type = {
57
- Text: "text",
58
- } as const;
59
- export type UpdateDatapoint2Type = ClosedEnum<typeof UpdateDatapoint2Type>;
60
-
61
- /**
62
- * Text content part of a prompt message
63
- */
64
- export type UpdateDatapoint21 = {
65
- type: UpdateDatapoint2Type;
66
- text: string;
67
- };
68
-
69
- export type UpdateDatapointContent2 = UpdateDatapoint21 | UpdateDatapoint22;
70
-
71
- /**
72
- * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
73
- */
74
- export type UpdateDatapointContent =
75
- | string
76
- | Array<UpdateDatapoint21 | UpdateDatapoint22>;
77
-
78
- export const UpdateDatapointType = {
79
- Function: "function",
80
- } as const;
81
- export type UpdateDatapointType = ClosedEnum<typeof UpdateDatapointType>;
82
-
83
- export type UpdateDatapointFunction = {
84
- name: string;
85
- /**
86
- * JSON string arguments for the functions
87
- */
88
- arguments: string;
89
- };
90
-
91
- export type UpdateDatapointToolCalls = {
92
- id?: string | undefined;
93
- index?: number | undefined;
94
- type: UpdateDatapointType;
95
- function: UpdateDatapointFunction;
96
- };
97
-
98
- export type UpdateDatapointMessages = {
99
- /**
100
- * The role of the prompt message
101
- */
102
- role: UpdateDatapointRole;
103
- /**
104
- * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
105
- */
106
- content: string | Array<UpdateDatapoint21 | UpdateDatapoint22>;
107
- toolCalls?: Array<UpdateDatapointToolCalls> | undefined;
108
- toolCallId?: string | undefined;
109
- };
110
-
111
- export type UpdateDatapointRequestBody = {
112
- /**
113
- * 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.
114
- */
115
- inputs?: { [k: string]: any } | undefined;
116
- /**
117
- * The prompt template messages
118
- */
119
- messages?: Array<UpdateDatapointMessages> | undefined;
120
- expectedOutput?: string | undefined;
121
- };
122
-
123
- export type UpdateDatapointRequest = {
124
- datasetId: string;
125
- datapointId: string;
126
- requestBody?: UpdateDatapointRequestBody | undefined;
127
- };
128
-
129
- /**
130
- * The role of the prompt message
131
- */
132
- export const UpdateDatapointDatasetsRole = {
133
- System: "system",
134
- Assistant: "assistant",
135
- User: "user",
136
- Exception: "exception",
137
- Tool: "tool",
138
- Prompt: "prompt",
139
- Correction: "correction",
140
- ExpectedOutput: "expected_output",
141
- } as const;
142
- /**
143
- * The role of the prompt message
144
- */
145
- export type UpdateDatapointDatasetsRole = ClosedEnum<
146
- typeof UpdateDatapointDatasetsRole
147
- >;
148
-
149
- export const UpdateDatapoint2DatasetsResponse200Type = {
150
- ImageUrl: "image_url",
151
- } as const;
152
- export type UpdateDatapoint2DatasetsResponse200Type = ClosedEnum<
153
- typeof UpdateDatapoint2DatasetsResponse200Type
154
- >;
155
-
156
- export type UpdateDatapoint2DatasetsImageUrl = {
157
- /**
158
- * The orq.ai id of the image
159
- */
160
- id?: string | undefined;
161
- /**
162
- * Either a URL of the image or the base64 encoded data URI.
163
- */
164
- url: string;
165
- /**
166
- * Specifies the detail level of the image. Currently only supported with OpenAI models
167
- */
168
- detail?: string | undefined;
169
- };
170
-
171
- /**
172
- * The image part of the prompt message. Only supported with vision models.
173
- */
174
- export type UpdateDatapoint2Datasets2 = {
175
- type: UpdateDatapoint2DatasetsResponse200Type;
176
- imageUrl: UpdateDatapoint2DatasetsImageUrl;
177
- };
178
-
179
- export const UpdateDatapoint2DatasetsResponseType = {
180
- Text: "text",
181
- } as const;
182
- export type UpdateDatapoint2DatasetsResponseType = ClosedEnum<
183
- typeof UpdateDatapoint2DatasetsResponseType
184
- >;
185
-
186
- /**
187
- * Text content part of a prompt message
188
- */
189
- export type UpdateDatapoint2Datasets1 = {
190
- type: UpdateDatapoint2DatasetsResponseType;
191
- text: string;
192
- };
193
-
194
- export type UpdateDatapointContentDatasets2 =
195
- | UpdateDatapoint2Datasets1
196
- | UpdateDatapoint2Datasets2;
197
-
198
- /**
199
- * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
200
- */
201
- export type UpdateDatapointDatasetsContent =
202
- | string
203
- | Array<UpdateDatapoint2Datasets1 | UpdateDatapoint2Datasets2>;
204
-
205
- export const UpdateDatapointDatasetsType = {
206
- Function: "function",
207
- } as const;
208
- export type UpdateDatapointDatasetsType = ClosedEnum<
209
- typeof UpdateDatapointDatasetsType
210
- >;
211
-
212
- export type UpdateDatapointDatasetsFunction = {
213
- name: string;
214
- /**
215
- * JSON string arguments for the functions
216
- */
217
- arguments: string;
218
- };
219
-
220
- export type UpdateDatapointDatasetsToolCalls = {
221
- id?: string | undefined;
222
- index?: number | undefined;
223
- type: UpdateDatapointDatasetsType;
224
- function: UpdateDatapointDatasetsFunction;
225
- };
226
-
227
- export type UpdateDatapointDatasetsMessages = {
228
- /**
229
- * The role of the prompt message
230
- */
231
- role: UpdateDatapointDatasetsRole;
232
- /**
233
- * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
234
- */
235
- content:
236
- | string
237
- | Array<UpdateDatapoint2Datasets1 | UpdateDatapoint2Datasets2>;
238
- toolCalls?: Array<UpdateDatapointDatasetsToolCalls> | undefined;
239
- toolCallId?: string | undefined;
240
- };
241
-
242
- /**
243
- * Dataset item updated.
244
- */
245
- export type UpdateDatapointResponseBody = {
246
- /**
247
- * The unique identifier of the dataset item
248
- */
249
- id: string;
250
- /**
251
- * The unique identifier of the workspace it belongs to
252
- */
253
- workspaceId: string;
254
- /**
255
- * 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.
256
- */
257
- inputs?: { [k: string]: any } | undefined;
258
- /**
259
- * The prompt template messages
260
- */
261
- messages?: Array<UpdateDatapointDatasetsMessages> | undefined;
262
- expectedOutput?: string | undefined;
263
- /**
264
- * The unique identifier of the dataset
265
- */
266
- datasetId: string;
267
- /**
268
- * The unique identifier of the user who created the dataset
269
- */
270
- createdById?: string | undefined;
271
- /**
272
- * The unique identifier of the user who last updated the dataset
273
- */
274
- updatedById?: string | undefined;
275
- /**
276
- * The date and time the resource was created
277
- */
278
- created?: Date | undefined;
279
- /**
280
- * The date and time the resource was last updated
281
- */
282
- updated?: Date | undefined;
283
- };
284
-
285
- /** @internal */
286
- export const UpdateDatapointRole$inboundSchema: z.ZodNativeEnum<
287
- typeof UpdateDatapointRole
288
- > = z.nativeEnum(UpdateDatapointRole);
289
-
290
- /** @internal */
291
- export const UpdateDatapointRole$outboundSchema: z.ZodNativeEnum<
292
- typeof UpdateDatapointRole
293
- > = UpdateDatapointRole$inboundSchema;
294
-
295
- /**
296
- * @internal
297
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
298
- */
299
- export namespace UpdateDatapointRole$ {
300
- /** @deprecated use `UpdateDatapointRole$inboundSchema` instead. */
301
- export const inboundSchema = UpdateDatapointRole$inboundSchema;
302
- /** @deprecated use `UpdateDatapointRole$outboundSchema` instead. */
303
- export const outboundSchema = UpdateDatapointRole$outboundSchema;
304
- }
305
-
306
- /** @internal */
307
- export const UpdateDatapoint2DatasetsType$inboundSchema: z.ZodNativeEnum<
308
- typeof UpdateDatapoint2DatasetsType
309
- > = z.nativeEnum(UpdateDatapoint2DatasetsType);
310
-
311
- /** @internal */
312
- export const UpdateDatapoint2DatasetsType$outboundSchema: z.ZodNativeEnum<
313
- typeof UpdateDatapoint2DatasetsType
314
- > = UpdateDatapoint2DatasetsType$inboundSchema;
315
-
316
- /**
317
- * @internal
318
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
319
- */
320
- export namespace UpdateDatapoint2DatasetsType$ {
321
- /** @deprecated use `UpdateDatapoint2DatasetsType$inboundSchema` instead. */
322
- export const inboundSchema = UpdateDatapoint2DatasetsType$inboundSchema;
323
- /** @deprecated use `UpdateDatapoint2DatasetsType$outboundSchema` instead. */
324
- export const outboundSchema = UpdateDatapoint2DatasetsType$outboundSchema;
325
- }
326
-
327
- /** @internal */
328
- export const UpdateDatapoint2ImageUrl$inboundSchema: z.ZodType<
329
- UpdateDatapoint2ImageUrl,
330
- z.ZodTypeDef,
331
- unknown
332
- > = z.object({
333
- url: z.string(),
334
- detail: z.string().optional(),
335
- });
336
-
337
- /** @internal */
338
- export type UpdateDatapoint2ImageUrl$Outbound = {
339
- url: string;
340
- detail?: string | undefined;
341
- };
342
-
343
- /** @internal */
344
- export const UpdateDatapoint2ImageUrl$outboundSchema: z.ZodType<
345
- UpdateDatapoint2ImageUrl$Outbound,
346
- z.ZodTypeDef,
347
- UpdateDatapoint2ImageUrl
348
- > = z.object({
349
- url: z.string(),
350
- detail: z.string().optional(),
351
- });
352
-
353
- /**
354
- * @internal
355
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
356
- */
357
- export namespace UpdateDatapoint2ImageUrl$ {
358
- /** @deprecated use `UpdateDatapoint2ImageUrl$inboundSchema` instead. */
359
- export const inboundSchema = UpdateDatapoint2ImageUrl$inboundSchema;
360
- /** @deprecated use `UpdateDatapoint2ImageUrl$outboundSchema` instead. */
361
- export const outboundSchema = UpdateDatapoint2ImageUrl$outboundSchema;
362
- /** @deprecated use `UpdateDatapoint2ImageUrl$Outbound` instead. */
363
- export type Outbound = UpdateDatapoint2ImageUrl$Outbound;
364
- }
365
-
366
- export function updateDatapoint2ImageUrlToJSON(
367
- updateDatapoint2ImageUrl: UpdateDatapoint2ImageUrl,
368
- ): string {
369
- return JSON.stringify(
370
- UpdateDatapoint2ImageUrl$outboundSchema.parse(updateDatapoint2ImageUrl),
371
- );
372
- }
373
-
374
- export function updateDatapoint2ImageUrlFromJSON(
375
- jsonString: string,
376
- ): SafeParseResult<UpdateDatapoint2ImageUrl, SDKValidationError> {
377
- return safeParse(
378
- jsonString,
379
- (x) => UpdateDatapoint2ImageUrl$inboundSchema.parse(JSON.parse(x)),
380
- `Failed to parse 'UpdateDatapoint2ImageUrl' from JSON`,
381
- );
382
- }
383
-
384
- /** @internal */
385
- export const UpdateDatapoint22$inboundSchema: z.ZodType<
386
- UpdateDatapoint22,
387
- z.ZodTypeDef,
388
- unknown
389
- > = z.object({
390
- type: UpdateDatapoint2DatasetsType$inboundSchema,
391
- image_url: z.lazy(() => UpdateDatapoint2ImageUrl$inboundSchema),
392
- }).transform((v) => {
393
- return remap$(v, {
394
- "image_url": "imageUrl",
395
- });
396
- });
397
-
398
- /** @internal */
399
- export type UpdateDatapoint22$Outbound = {
400
- type: string;
401
- image_url: UpdateDatapoint2ImageUrl$Outbound;
402
- };
403
-
404
- /** @internal */
405
- export const UpdateDatapoint22$outboundSchema: z.ZodType<
406
- UpdateDatapoint22$Outbound,
407
- z.ZodTypeDef,
408
- UpdateDatapoint22
409
- > = z.object({
410
- type: UpdateDatapoint2DatasetsType$outboundSchema,
411
- imageUrl: z.lazy(() => UpdateDatapoint2ImageUrl$outboundSchema),
412
- }).transform((v) => {
413
- return remap$(v, {
414
- imageUrl: "image_url",
415
- });
416
- });
417
-
418
- /**
419
- * @internal
420
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
421
- */
422
- export namespace UpdateDatapoint22$ {
423
- /** @deprecated use `UpdateDatapoint22$inboundSchema` instead. */
424
- export const inboundSchema = UpdateDatapoint22$inboundSchema;
425
- /** @deprecated use `UpdateDatapoint22$outboundSchema` instead. */
426
- export const outboundSchema = UpdateDatapoint22$outboundSchema;
427
- /** @deprecated use `UpdateDatapoint22$Outbound` instead. */
428
- export type Outbound = UpdateDatapoint22$Outbound;
429
- }
430
-
431
- export function updateDatapoint22ToJSON(
432
- updateDatapoint22: UpdateDatapoint22,
433
- ): string {
434
- return JSON.stringify(
435
- UpdateDatapoint22$outboundSchema.parse(updateDatapoint22),
436
- );
437
- }
438
-
439
- export function updateDatapoint22FromJSON(
440
- jsonString: string,
441
- ): SafeParseResult<UpdateDatapoint22, SDKValidationError> {
442
- return safeParse(
443
- jsonString,
444
- (x) => UpdateDatapoint22$inboundSchema.parse(JSON.parse(x)),
445
- `Failed to parse 'UpdateDatapoint22' from JSON`,
446
- );
447
- }
448
-
449
- /** @internal */
450
- export const UpdateDatapoint2Type$inboundSchema: z.ZodNativeEnum<
451
- typeof UpdateDatapoint2Type
452
- > = z.nativeEnum(UpdateDatapoint2Type);
453
-
454
- /** @internal */
455
- export const UpdateDatapoint2Type$outboundSchema: z.ZodNativeEnum<
456
- typeof UpdateDatapoint2Type
457
- > = UpdateDatapoint2Type$inboundSchema;
458
-
459
- /**
460
- * @internal
461
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
462
- */
463
- export namespace UpdateDatapoint2Type$ {
464
- /** @deprecated use `UpdateDatapoint2Type$inboundSchema` instead. */
465
- export const inboundSchema = UpdateDatapoint2Type$inboundSchema;
466
- /** @deprecated use `UpdateDatapoint2Type$outboundSchema` instead. */
467
- export const outboundSchema = UpdateDatapoint2Type$outboundSchema;
468
- }
469
-
470
- /** @internal */
471
- export const UpdateDatapoint21$inboundSchema: z.ZodType<
472
- UpdateDatapoint21,
473
- z.ZodTypeDef,
474
- unknown
475
- > = z.object({
476
- type: UpdateDatapoint2Type$inboundSchema,
477
- text: z.string(),
478
- });
479
-
480
- /** @internal */
481
- export type UpdateDatapoint21$Outbound = {
482
- type: string;
483
- text: string;
484
- };
485
-
486
- /** @internal */
487
- export const UpdateDatapoint21$outboundSchema: z.ZodType<
488
- UpdateDatapoint21$Outbound,
489
- z.ZodTypeDef,
490
- UpdateDatapoint21
491
- > = z.object({
492
- type: UpdateDatapoint2Type$outboundSchema,
493
- text: z.string(),
494
- });
495
-
496
- /**
497
- * @internal
498
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
499
- */
500
- export namespace UpdateDatapoint21$ {
501
- /** @deprecated use `UpdateDatapoint21$inboundSchema` instead. */
502
- export const inboundSchema = UpdateDatapoint21$inboundSchema;
503
- /** @deprecated use `UpdateDatapoint21$outboundSchema` instead. */
504
- export const outboundSchema = UpdateDatapoint21$outboundSchema;
505
- /** @deprecated use `UpdateDatapoint21$Outbound` instead. */
506
- export type Outbound = UpdateDatapoint21$Outbound;
507
- }
508
-
509
- export function updateDatapoint21ToJSON(
510
- updateDatapoint21: UpdateDatapoint21,
511
- ): string {
512
- return JSON.stringify(
513
- UpdateDatapoint21$outboundSchema.parse(updateDatapoint21),
514
- );
515
- }
516
-
517
- export function updateDatapoint21FromJSON(
518
- jsonString: string,
519
- ): SafeParseResult<UpdateDatapoint21, SDKValidationError> {
520
- return safeParse(
521
- jsonString,
522
- (x) => UpdateDatapoint21$inboundSchema.parse(JSON.parse(x)),
523
- `Failed to parse 'UpdateDatapoint21' from JSON`,
524
- );
525
- }
526
-
527
- /** @internal */
528
- export const UpdateDatapointContent2$inboundSchema: z.ZodType<
529
- UpdateDatapointContent2,
530
- z.ZodTypeDef,
531
- unknown
532
- > = z.union([
533
- z.lazy(() => UpdateDatapoint21$inboundSchema),
534
- z.lazy(() => UpdateDatapoint22$inboundSchema),
535
- ]);
536
-
537
- /** @internal */
538
- export type UpdateDatapointContent2$Outbound =
539
- | UpdateDatapoint21$Outbound
540
- | UpdateDatapoint22$Outbound;
541
-
542
- /** @internal */
543
- export const UpdateDatapointContent2$outboundSchema: z.ZodType<
544
- UpdateDatapointContent2$Outbound,
545
- z.ZodTypeDef,
546
- UpdateDatapointContent2
547
- > = z.union([
548
- z.lazy(() => UpdateDatapoint21$outboundSchema),
549
- z.lazy(() => UpdateDatapoint22$outboundSchema),
550
- ]);
551
-
552
- /**
553
- * @internal
554
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
555
- */
556
- export namespace UpdateDatapointContent2$ {
557
- /** @deprecated use `UpdateDatapointContent2$inboundSchema` instead. */
558
- export const inboundSchema = UpdateDatapointContent2$inboundSchema;
559
- /** @deprecated use `UpdateDatapointContent2$outboundSchema` instead. */
560
- export const outboundSchema = UpdateDatapointContent2$outboundSchema;
561
- /** @deprecated use `UpdateDatapointContent2$Outbound` instead. */
562
- export type Outbound = UpdateDatapointContent2$Outbound;
563
- }
564
-
565
- export function updateDatapointContent2ToJSON(
566
- updateDatapointContent2: UpdateDatapointContent2,
567
- ): string {
568
- return JSON.stringify(
569
- UpdateDatapointContent2$outboundSchema.parse(updateDatapointContent2),
570
- );
571
- }
572
-
573
- export function updateDatapointContent2FromJSON(
574
- jsonString: string,
575
- ): SafeParseResult<UpdateDatapointContent2, SDKValidationError> {
576
- return safeParse(
577
- jsonString,
578
- (x) => UpdateDatapointContent2$inboundSchema.parse(JSON.parse(x)),
579
- `Failed to parse 'UpdateDatapointContent2' from JSON`,
580
- );
581
- }
582
-
583
- /** @internal */
584
- export const UpdateDatapointContent$inboundSchema: z.ZodType<
585
- UpdateDatapointContent,
586
- z.ZodTypeDef,
587
- unknown
588
- > = z.union([
589
- z.string(),
590
- z.array(z.union([
591
- z.lazy(() => UpdateDatapoint21$inboundSchema),
592
- z.lazy(() => UpdateDatapoint22$inboundSchema),
593
- ])),
594
- ]);
595
-
596
- /** @internal */
597
- export type UpdateDatapointContent$Outbound =
598
- | string
599
- | Array<UpdateDatapoint21$Outbound | UpdateDatapoint22$Outbound>;
600
-
601
- /** @internal */
602
- export const UpdateDatapointContent$outboundSchema: z.ZodType<
603
- UpdateDatapointContent$Outbound,
604
- z.ZodTypeDef,
605
- UpdateDatapointContent
606
- > = z.union([
607
- z.string(),
608
- z.array(z.union([
609
- z.lazy(() => UpdateDatapoint21$outboundSchema),
610
- z.lazy(() => UpdateDatapoint22$outboundSchema),
611
- ])),
612
- ]);
613
-
614
- /**
615
- * @internal
616
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
617
- */
618
- export namespace UpdateDatapointContent$ {
619
- /** @deprecated use `UpdateDatapointContent$inboundSchema` instead. */
620
- export const inboundSchema = UpdateDatapointContent$inboundSchema;
621
- /** @deprecated use `UpdateDatapointContent$outboundSchema` instead. */
622
- export const outboundSchema = UpdateDatapointContent$outboundSchema;
623
- /** @deprecated use `UpdateDatapointContent$Outbound` instead. */
624
- export type Outbound = UpdateDatapointContent$Outbound;
625
- }
626
-
627
- export function updateDatapointContentToJSON(
628
- updateDatapointContent: UpdateDatapointContent,
629
- ): string {
630
- return JSON.stringify(
631
- UpdateDatapointContent$outboundSchema.parse(updateDatapointContent),
632
- );
633
- }
634
-
635
- export function updateDatapointContentFromJSON(
636
- jsonString: string,
637
- ): SafeParseResult<UpdateDatapointContent, SDKValidationError> {
638
- return safeParse(
639
- jsonString,
640
- (x) => UpdateDatapointContent$inboundSchema.parse(JSON.parse(x)),
641
- `Failed to parse 'UpdateDatapointContent' from JSON`,
642
- );
643
- }
644
-
645
- /** @internal */
646
- export const UpdateDatapointType$inboundSchema: z.ZodNativeEnum<
647
- typeof UpdateDatapointType
648
- > = z.nativeEnum(UpdateDatapointType);
649
-
650
- /** @internal */
651
- export const UpdateDatapointType$outboundSchema: z.ZodNativeEnum<
652
- typeof UpdateDatapointType
653
- > = UpdateDatapointType$inboundSchema;
654
-
655
- /**
656
- * @internal
657
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
658
- */
659
- export namespace UpdateDatapointType$ {
660
- /** @deprecated use `UpdateDatapointType$inboundSchema` instead. */
661
- export const inboundSchema = UpdateDatapointType$inboundSchema;
662
- /** @deprecated use `UpdateDatapointType$outboundSchema` instead. */
663
- export const outboundSchema = UpdateDatapointType$outboundSchema;
664
- }
665
-
666
- /** @internal */
667
- export const UpdateDatapointFunction$inboundSchema: z.ZodType<
668
- UpdateDatapointFunction,
669
- z.ZodTypeDef,
670
- unknown
671
- > = z.object({
672
- name: z.string(),
673
- arguments: z.string(),
674
- });
675
-
676
- /** @internal */
677
- export type UpdateDatapointFunction$Outbound = {
678
- name: string;
679
- arguments: string;
680
- };
681
-
682
- /** @internal */
683
- export const UpdateDatapointFunction$outboundSchema: z.ZodType<
684
- UpdateDatapointFunction$Outbound,
685
- z.ZodTypeDef,
686
- UpdateDatapointFunction
687
- > = z.object({
688
- name: z.string(),
689
- arguments: z.string(),
690
- });
691
-
692
- /**
693
- * @internal
694
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
695
- */
696
- export namespace UpdateDatapointFunction$ {
697
- /** @deprecated use `UpdateDatapointFunction$inboundSchema` instead. */
698
- export const inboundSchema = UpdateDatapointFunction$inboundSchema;
699
- /** @deprecated use `UpdateDatapointFunction$outboundSchema` instead. */
700
- export const outboundSchema = UpdateDatapointFunction$outboundSchema;
701
- /** @deprecated use `UpdateDatapointFunction$Outbound` instead. */
702
- export type Outbound = UpdateDatapointFunction$Outbound;
703
- }
704
-
705
- export function updateDatapointFunctionToJSON(
706
- updateDatapointFunction: UpdateDatapointFunction,
707
- ): string {
708
- return JSON.stringify(
709
- UpdateDatapointFunction$outboundSchema.parse(updateDatapointFunction),
710
- );
711
- }
712
-
713
- export function updateDatapointFunctionFromJSON(
714
- jsonString: string,
715
- ): SafeParseResult<UpdateDatapointFunction, SDKValidationError> {
716
- return safeParse(
717
- jsonString,
718
- (x) => UpdateDatapointFunction$inboundSchema.parse(JSON.parse(x)),
719
- `Failed to parse 'UpdateDatapointFunction' from JSON`,
720
- );
721
- }
722
-
723
- /** @internal */
724
- export const UpdateDatapointToolCalls$inboundSchema: z.ZodType<
725
- UpdateDatapointToolCalls,
726
- z.ZodTypeDef,
727
- unknown
728
- > = z.object({
729
- id: z.string().optional(),
730
- index: z.number().optional(),
731
- type: UpdateDatapointType$inboundSchema,
732
- function: z.lazy(() => UpdateDatapointFunction$inboundSchema),
733
- });
734
-
735
- /** @internal */
736
- export type UpdateDatapointToolCalls$Outbound = {
737
- id?: string | undefined;
738
- index?: number | undefined;
739
- type: string;
740
- function: UpdateDatapointFunction$Outbound;
741
- };
742
-
743
- /** @internal */
744
- export const UpdateDatapointToolCalls$outboundSchema: z.ZodType<
745
- UpdateDatapointToolCalls$Outbound,
746
- z.ZodTypeDef,
747
- UpdateDatapointToolCalls
748
- > = z.object({
749
- id: z.string().optional(),
750
- index: z.number().optional(),
751
- type: UpdateDatapointType$outboundSchema,
752
- function: z.lazy(() => UpdateDatapointFunction$outboundSchema),
753
- });
754
-
755
- /**
756
- * @internal
757
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
758
- */
759
- export namespace UpdateDatapointToolCalls$ {
760
- /** @deprecated use `UpdateDatapointToolCalls$inboundSchema` instead. */
761
- export const inboundSchema = UpdateDatapointToolCalls$inboundSchema;
762
- /** @deprecated use `UpdateDatapointToolCalls$outboundSchema` instead. */
763
- export const outboundSchema = UpdateDatapointToolCalls$outboundSchema;
764
- /** @deprecated use `UpdateDatapointToolCalls$Outbound` instead. */
765
- export type Outbound = UpdateDatapointToolCalls$Outbound;
766
- }
767
-
768
- export function updateDatapointToolCallsToJSON(
769
- updateDatapointToolCalls: UpdateDatapointToolCalls,
770
- ): string {
771
- return JSON.stringify(
772
- UpdateDatapointToolCalls$outboundSchema.parse(updateDatapointToolCalls),
773
- );
774
- }
775
-
776
- export function updateDatapointToolCallsFromJSON(
777
- jsonString: string,
778
- ): SafeParseResult<UpdateDatapointToolCalls, SDKValidationError> {
779
- return safeParse(
780
- jsonString,
781
- (x) => UpdateDatapointToolCalls$inboundSchema.parse(JSON.parse(x)),
782
- `Failed to parse 'UpdateDatapointToolCalls' from JSON`,
783
- );
784
- }
785
-
786
- /** @internal */
787
- export const UpdateDatapointMessages$inboundSchema: z.ZodType<
788
- UpdateDatapointMessages,
789
- z.ZodTypeDef,
790
- unknown
791
- > = z.object({
792
- role: UpdateDatapointRole$inboundSchema,
793
- content: z.union([
794
- z.string(),
795
- z.array(z.union([
796
- z.lazy(() => UpdateDatapoint21$inboundSchema),
797
- z.lazy(() => UpdateDatapoint22$inboundSchema),
798
- ])),
799
- ]),
800
- tool_calls: z.array(z.lazy(() => UpdateDatapointToolCalls$inboundSchema))
801
- .optional(),
802
- tool_call_id: z.string().optional(),
803
- }).transform((v) => {
804
- return remap$(v, {
805
- "tool_calls": "toolCalls",
806
- "tool_call_id": "toolCallId",
807
- });
808
- });
809
-
810
- /** @internal */
811
- export type UpdateDatapointMessages$Outbound = {
812
- role: string;
813
- content:
814
- | string
815
- | Array<UpdateDatapoint21$Outbound | UpdateDatapoint22$Outbound>;
816
- tool_calls?: Array<UpdateDatapointToolCalls$Outbound> | undefined;
817
- tool_call_id?: string | undefined;
818
- };
819
-
820
- /** @internal */
821
- export const UpdateDatapointMessages$outboundSchema: z.ZodType<
822
- UpdateDatapointMessages$Outbound,
823
- z.ZodTypeDef,
824
- UpdateDatapointMessages
825
- > = z.object({
826
- role: UpdateDatapointRole$outboundSchema,
827
- content: z.union([
828
- z.string(),
829
- z.array(z.union([
830
- z.lazy(() => UpdateDatapoint21$outboundSchema),
831
- z.lazy(() => UpdateDatapoint22$outboundSchema),
832
- ])),
833
- ]),
834
- toolCalls: z.array(z.lazy(() => UpdateDatapointToolCalls$outboundSchema))
835
- .optional(),
836
- toolCallId: z.string().optional(),
837
- }).transform((v) => {
838
- return remap$(v, {
839
- toolCalls: "tool_calls",
840
- toolCallId: "tool_call_id",
841
- });
842
- });
843
-
844
- /**
845
- * @internal
846
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
847
- */
848
- export namespace UpdateDatapointMessages$ {
849
- /** @deprecated use `UpdateDatapointMessages$inboundSchema` instead. */
850
- export const inboundSchema = UpdateDatapointMessages$inboundSchema;
851
- /** @deprecated use `UpdateDatapointMessages$outboundSchema` instead. */
852
- export const outboundSchema = UpdateDatapointMessages$outboundSchema;
853
- /** @deprecated use `UpdateDatapointMessages$Outbound` instead. */
854
- export type Outbound = UpdateDatapointMessages$Outbound;
855
- }
856
-
857
- export function updateDatapointMessagesToJSON(
858
- updateDatapointMessages: UpdateDatapointMessages,
859
- ): string {
860
- return JSON.stringify(
861
- UpdateDatapointMessages$outboundSchema.parse(updateDatapointMessages),
862
- );
863
- }
864
-
865
- export function updateDatapointMessagesFromJSON(
866
- jsonString: string,
867
- ): SafeParseResult<UpdateDatapointMessages, SDKValidationError> {
868
- return safeParse(
869
- jsonString,
870
- (x) => UpdateDatapointMessages$inboundSchema.parse(JSON.parse(x)),
871
- `Failed to parse 'UpdateDatapointMessages' from JSON`,
872
- );
873
- }
874
-
875
- /** @internal */
876
- export const UpdateDatapointRequestBody$inboundSchema: z.ZodType<
877
- UpdateDatapointRequestBody,
878
- z.ZodTypeDef,
879
- unknown
880
- > = z.object({
881
- inputs: z.record(z.any()).optional(),
882
- messages: z.array(z.lazy(() => UpdateDatapointMessages$inboundSchema))
883
- .optional(),
884
- expected_output: z.string().optional(),
885
- }).transform((v) => {
886
- return remap$(v, {
887
- "expected_output": "expectedOutput",
888
- });
889
- });
890
-
891
- /** @internal */
892
- export type UpdateDatapointRequestBody$Outbound = {
893
- inputs?: { [k: string]: any } | undefined;
894
- messages?: Array<UpdateDatapointMessages$Outbound> | undefined;
895
- expected_output?: string | undefined;
896
- };
897
-
898
- /** @internal */
899
- export const UpdateDatapointRequestBody$outboundSchema: z.ZodType<
900
- UpdateDatapointRequestBody$Outbound,
901
- z.ZodTypeDef,
902
- UpdateDatapointRequestBody
903
- > = z.object({
904
- inputs: z.record(z.any()).optional(),
905
- messages: z.array(z.lazy(() => UpdateDatapointMessages$outboundSchema))
906
- .optional(),
907
- expectedOutput: z.string().optional(),
908
- }).transform((v) => {
909
- return remap$(v, {
910
- expectedOutput: "expected_output",
911
- });
912
- });
913
-
914
- /**
915
- * @internal
916
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
917
- */
918
- export namespace UpdateDatapointRequestBody$ {
919
- /** @deprecated use `UpdateDatapointRequestBody$inboundSchema` instead. */
920
- export const inboundSchema = UpdateDatapointRequestBody$inboundSchema;
921
- /** @deprecated use `UpdateDatapointRequestBody$outboundSchema` instead. */
922
- export const outboundSchema = UpdateDatapointRequestBody$outboundSchema;
923
- /** @deprecated use `UpdateDatapointRequestBody$Outbound` instead. */
924
- export type Outbound = UpdateDatapointRequestBody$Outbound;
925
- }
926
-
927
- export function updateDatapointRequestBodyToJSON(
928
- updateDatapointRequestBody: UpdateDatapointRequestBody,
929
- ): string {
930
- return JSON.stringify(
931
- UpdateDatapointRequestBody$outboundSchema.parse(updateDatapointRequestBody),
932
- );
933
- }
934
-
935
- export function updateDatapointRequestBodyFromJSON(
936
- jsonString: string,
937
- ): SafeParseResult<UpdateDatapointRequestBody, SDKValidationError> {
938
- return safeParse(
939
- jsonString,
940
- (x) => UpdateDatapointRequestBody$inboundSchema.parse(JSON.parse(x)),
941
- `Failed to parse 'UpdateDatapointRequestBody' from JSON`,
942
- );
943
- }
944
-
945
- /** @internal */
946
- export const UpdateDatapointRequest$inboundSchema: z.ZodType<
947
- UpdateDatapointRequest,
948
- z.ZodTypeDef,
949
- unknown
950
- > = z.object({
951
- dataset_id: z.string(),
952
- datapoint_id: z.string(),
953
- RequestBody: z.lazy(() => UpdateDatapointRequestBody$inboundSchema)
954
- .optional(),
955
- }).transform((v) => {
956
- return remap$(v, {
957
- "dataset_id": "datasetId",
958
- "datapoint_id": "datapointId",
959
- "RequestBody": "requestBody",
960
- });
961
- });
962
-
963
- /** @internal */
964
- export type UpdateDatapointRequest$Outbound = {
965
- dataset_id: string;
966
- datapoint_id: string;
967
- RequestBody?: UpdateDatapointRequestBody$Outbound | undefined;
968
- };
969
-
970
- /** @internal */
971
- export const UpdateDatapointRequest$outboundSchema: z.ZodType<
972
- UpdateDatapointRequest$Outbound,
973
- z.ZodTypeDef,
974
- UpdateDatapointRequest
975
- > = z.object({
976
- datasetId: z.string(),
977
- datapointId: z.string(),
978
- requestBody: z.lazy(() => UpdateDatapointRequestBody$outboundSchema)
979
- .optional(),
980
- }).transform((v) => {
981
- return remap$(v, {
982
- datasetId: "dataset_id",
983
- datapointId: "datapoint_id",
984
- requestBody: "RequestBody",
985
- });
986
- });
987
-
988
- /**
989
- * @internal
990
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
991
- */
992
- export namespace UpdateDatapointRequest$ {
993
- /** @deprecated use `UpdateDatapointRequest$inboundSchema` instead. */
994
- export const inboundSchema = UpdateDatapointRequest$inboundSchema;
995
- /** @deprecated use `UpdateDatapointRequest$outboundSchema` instead. */
996
- export const outboundSchema = UpdateDatapointRequest$outboundSchema;
997
- /** @deprecated use `UpdateDatapointRequest$Outbound` instead. */
998
- export type Outbound = UpdateDatapointRequest$Outbound;
999
- }
1000
-
1001
- export function updateDatapointRequestToJSON(
1002
- updateDatapointRequest: UpdateDatapointRequest,
1003
- ): string {
1004
- return JSON.stringify(
1005
- UpdateDatapointRequest$outboundSchema.parse(updateDatapointRequest),
1006
- );
1007
- }
1008
-
1009
- export function updateDatapointRequestFromJSON(
1010
- jsonString: string,
1011
- ): SafeParseResult<UpdateDatapointRequest, SDKValidationError> {
1012
- return safeParse(
1013
- jsonString,
1014
- (x) => UpdateDatapointRequest$inboundSchema.parse(JSON.parse(x)),
1015
- `Failed to parse 'UpdateDatapointRequest' from JSON`,
1016
- );
1017
- }
1018
-
1019
- /** @internal */
1020
- export const UpdateDatapointDatasetsRole$inboundSchema: z.ZodNativeEnum<
1021
- typeof UpdateDatapointDatasetsRole
1022
- > = z.nativeEnum(UpdateDatapointDatasetsRole);
1023
-
1024
- /** @internal */
1025
- export const UpdateDatapointDatasetsRole$outboundSchema: z.ZodNativeEnum<
1026
- typeof UpdateDatapointDatasetsRole
1027
- > = UpdateDatapointDatasetsRole$inboundSchema;
1028
-
1029
- /**
1030
- * @internal
1031
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1032
- */
1033
- export namespace UpdateDatapointDatasetsRole$ {
1034
- /** @deprecated use `UpdateDatapointDatasetsRole$inboundSchema` instead. */
1035
- export const inboundSchema = UpdateDatapointDatasetsRole$inboundSchema;
1036
- /** @deprecated use `UpdateDatapointDatasetsRole$outboundSchema` instead. */
1037
- export const outboundSchema = UpdateDatapointDatasetsRole$outboundSchema;
1038
- }
1039
-
1040
- /** @internal */
1041
- export const UpdateDatapoint2DatasetsResponse200Type$inboundSchema:
1042
- z.ZodNativeEnum<typeof UpdateDatapoint2DatasetsResponse200Type> = z
1043
- .nativeEnum(UpdateDatapoint2DatasetsResponse200Type);
1044
-
1045
- /** @internal */
1046
- export const UpdateDatapoint2DatasetsResponse200Type$outboundSchema:
1047
- z.ZodNativeEnum<typeof UpdateDatapoint2DatasetsResponse200Type> =
1048
- UpdateDatapoint2DatasetsResponse200Type$inboundSchema;
1049
-
1050
- /**
1051
- * @internal
1052
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1053
- */
1054
- export namespace UpdateDatapoint2DatasetsResponse200Type$ {
1055
- /** @deprecated use `UpdateDatapoint2DatasetsResponse200Type$inboundSchema` instead. */
1056
- export const inboundSchema =
1057
- UpdateDatapoint2DatasetsResponse200Type$inboundSchema;
1058
- /** @deprecated use `UpdateDatapoint2DatasetsResponse200Type$outboundSchema` instead. */
1059
- export const outboundSchema =
1060
- UpdateDatapoint2DatasetsResponse200Type$outboundSchema;
1061
- }
1062
-
1063
- /** @internal */
1064
- export const UpdateDatapoint2DatasetsImageUrl$inboundSchema: z.ZodType<
1065
- UpdateDatapoint2DatasetsImageUrl,
1066
- z.ZodTypeDef,
1067
- unknown
1068
- > = z.object({
1069
- id: z.string().optional(),
1070
- url: z.string(),
1071
- detail: z.string().optional(),
1072
- });
1073
-
1074
- /** @internal */
1075
- export type UpdateDatapoint2DatasetsImageUrl$Outbound = {
1076
- id?: string | undefined;
1077
- url: string;
1078
- detail?: string | undefined;
1079
- };
1080
-
1081
- /** @internal */
1082
- export const UpdateDatapoint2DatasetsImageUrl$outboundSchema: z.ZodType<
1083
- UpdateDatapoint2DatasetsImageUrl$Outbound,
1084
- z.ZodTypeDef,
1085
- UpdateDatapoint2DatasetsImageUrl
1086
- > = z.object({
1087
- id: z.string().optional(),
1088
- url: z.string(),
1089
- detail: z.string().optional(),
1090
- });
1091
-
1092
- /**
1093
- * @internal
1094
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1095
- */
1096
- export namespace UpdateDatapoint2DatasetsImageUrl$ {
1097
- /** @deprecated use `UpdateDatapoint2DatasetsImageUrl$inboundSchema` instead. */
1098
- export const inboundSchema = UpdateDatapoint2DatasetsImageUrl$inboundSchema;
1099
- /** @deprecated use `UpdateDatapoint2DatasetsImageUrl$outboundSchema` instead. */
1100
- export const outboundSchema = UpdateDatapoint2DatasetsImageUrl$outboundSchema;
1101
- /** @deprecated use `UpdateDatapoint2DatasetsImageUrl$Outbound` instead. */
1102
- export type Outbound = UpdateDatapoint2DatasetsImageUrl$Outbound;
1103
- }
1104
-
1105
- export function updateDatapoint2DatasetsImageUrlToJSON(
1106
- updateDatapoint2DatasetsImageUrl: UpdateDatapoint2DatasetsImageUrl,
1107
- ): string {
1108
- return JSON.stringify(
1109
- UpdateDatapoint2DatasetsImageUrl$outboundSchema.parse(
1110
- updateDatapoint2DatasetsImageUrl,
1111
- ),
1112
- );
1113
- }
1114
-
1115
- export function updateDatapoint2DatasetsImageUrlFromJSON(
1116
- jsonString: string,
1117
- ): SafeParseResult<UpdateDatapoint2DatasetsImageUrl, SDKValidationError> {
1118
- return safeParse(
1119
- jsonString,
1120
- (x) => UpdateDatapoint2DatasetsImageUrl$inboundSchema.parse(JSON.parse(x)),
1121
- `Failed to parse 'UpdateDatapoint2DatasetsImageUrl' from JSON`,
1122
- );
1123
- }
1124
-
1125
- /** @internal */
1126
- export const UpdateDatapoint2Datasets2$inboundSchema: z.ZodType<
1127
- UpdateDatapoint2Datasets2,
1128
- z.ZodTypeDef,
1129
- unknown
1130
- > = z.object({
1131
- type: UpdateDatapoint2DatasetsResponse200Type$inboundSchema,
1132
- image_url: z.lazy(() => UpdateDatapoint2DatasetsImageUrl$inboundSchema),
1133
- }).transform((v) => {
1134
- return remap$(v, {
1135
- "image_url": "imageUrl",
1136
- });
1137
- });
1138
-
1139
- /** @internal */
1140
- export type UpdateDatapoint2Datasets2$Outbound = {
1141
- type: string;
1142
- image_url: UpdateDatapoint2DatasetsImageUrl$Outbound;
1143
- };
1144
-
1145
- /** @internal */
1146
- export const UpdateDatapoint2Datasets2$outboundSchema: z.ZodType<
1147
- UpdateDatapoint2Datasets2$Outbound,
1148
- z.ZodTypeDef,
1149
- UpdateDatapoint2Datasets2
1150
- > = z.object({
1151
- type: UpdateDatapoint2DatasetsResponse200Type$outboundSchema,
1152
- imageUrl: z.lazy(() => UpdateDatapoint2DatasetsImageUrl$outboundSchema),
1153
- }).transform((v) => {
1154
- return remap$(v, {
1155
- imageUrl: "image_url",
1156
- });
1157
- });
1158
-
1159
- /**
1160
- * @internal
1161
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1162
- */
1163
- export namespace UpdateDatapoint2Datasets2$ {
1164
- /** @deprecated use `UpdateDatapoint2Datasets2$inboundSchema` instead. */
1165
- export const inboundSchema = UpdateDatapoint2Datasets2$inboundSchema;
1166
- /** @deprecated use `UpdateDatapoint2Datasets2$outboundSchema` instead. */
1167
- export const outboundSchema = UpdateDatapoint2Datasets2$outboundSchema;
1168
- /** @deprecated use `UpdateDatapoint2Datasets2$Outbound` instead. */
1169
- export type Outbound = UpdateDatapoint2Datasets2$Outbound;
1170
- }
1171
-
1172
- export function updateDatapoint2Datasets2ToJSON(
1173
- updateDatapoint2Datasets2: UpdateDatapoint2Datasets2,
1174
- ): string {
1175
- return JSON.stringify(
1176
- UpdateDatapoint2Datasets2$outboundSchema.parse(updateDatapoint2Datasets2),
1177
- );
1178
- }
1179
-
1180
- export function updateDatapoint2Datasets2FromJSON(
1181
- jsonString: string,
1182
- ): SafeParseResult<UpdateDatapoint2Datasets2, SDKValidationError> {
1183
- return safeParse(
1184
- jsonString,
1185
- (x) => UpdateDatapoint2Datasets2$inboundSchema.parse(JSON.parse(x)),
1186
- `Failed to parse 'UpdateDatapoint2Datasets2' from JSON`,
1187
- );
1188
- }
1189
-
1190
- /** @internal */
1191
- export const UpdateDatapoint2DatasetsResponseType$inboundSchema:
1192
- z.ZodNativeEnum<typeof UpdateDatapoint2DatasetsResponseType> = z.nativeEnum(
1193
- UpdateDatapoint2DatasetsResponseType,
1194
- );
1195
-
1196
- /** @internal */
1197
- export const UpdateDatapoint2DatasetsResponseType$outboundSchema:
1198
- z.ZodNativeEnum<typeof UpdateDatapoint2DatasetsResponseType> =
1199
- UpdateDatapoint2DatasetsResponseType$inboundSchema;
1200
-
1201
- /**
1202
- * @internal
1203
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1204
- */
1205
- export namespace UpdateDatapoint2DatasetsResponseType$ {
1206
- /** @deprecated use `UpdateDatapoint2DatasetsResponseType$inboundSchema` instead. */
1207
- export const inboundSchema =
1208
- UpdateDatapoint2DatasetsResponseType$inboundSchema;
1209
- /** @deprecated use `UpdateDatapoint2DatasetsResponseType$outboundSchema` instead. */
1210
- export const outboundSchema =
1211
- UpdateDatapoint2DatasetsResponseType$outboundSchema;
1212
- }
1213
-
1214
- /** @internal */
1215
- export const UpdateDatapoint2Datasets1$inboundSchema: z.ZodType<
1216
- UpdateDatapoint2Datasets1,
1217
- z.ZodTypeDef,
1218
- unknown
1219
- > = z.object({
1220
- type: UpdateDatapoint2DatasetsResponseType$inboundSchema,
1221
- text: z.string(),
1222
- });
1223
-
1224
- /** @internal */
1225
- export type UpdateDatapoint2Datasets1$Outbound = {
1226
- type: string;
1227
- text: string;
1228
- };
1229
-
1230
- /** @internal */
1231
- export const UpdateDatapoint2Datasets1$outboundSchema: z.ZodType<
1232
- UpdateDatapoint2Datasets1$Outbound,
1233
- z.ZodTypeDef,
1234
- UpdateDatapoint2Datasets1
1235
- > = z.object({
1236
- type: UpdateDatapoint2DatasetsResponseType$outboundSchema,
1237
- text: z.string(),
1238
- });
1239
-
1240
- /**
1241
- * @internal
1242
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1243
- */
1244
- export namespace UpdateDatapoint2Datasets1$ {
1245
- /** @deprecated use `UpdateDatapoint2Datasets1$inboundSchema` instead. */
1246
- export const inboundSchema = UpdateDatapoint2Datasets1$inboundSchema;
1247
- /** @deprecated use `UpdateDatapoint2Datasets1$outboundSchema` instead. */
1248
- export const outboundSchema = UpdateDatapoint2Datasets1$outboundSchema;
1249
- /** @deprecated use `UpdateDatapoint2Datasets1$Outbound` instead. */
1250
- export type Outbound = UpdateDatapoint2Datasets1$Outbound;
1251
- }
1252
-
1253
- export function updateDatapoint2Datasets1ToJSON(
1254
- updateDatapoint2Datasets1: UpdateDatapoint2Datasets1,
1255
- ): string {
1256
- return JSON.stringify(
1257
- UpdateDatapoint2Datasets1$outboundSchema.parse(updateDatapoint2Datasets1),
1258
- );
1259
- }
1260
-
1261
- export function updateDatapoint2Datasets1FromJSON(
1262
- jsonString: string,
1263
- ): SafeParseResult<UpdateDatapoint2Datasets1, SDKValidationError> {
1264
- return safeParse(
1265
- jsonString,
1266
- (x) => UpdateDatapoint2Datasets1$inboundSchema.parse(JSON.parse(x)),
1267
- `Failed to parse 'UpdateDatapoint2Datasets1' from JSON`,
1268
- );
1269
- }
1270
-
1271
- /** @internal */
1272
- export const UpdateDatapointContentDatasets2$inboundSchema: z.ZodType<
1273
- UpdateDatapointContentDatasets2,
1274
- z.ZodTypeDef,
1275
- unknown
1276
- > = z.union([
1277
- z.lazy(() => UpdateDatapoint2Datasets1$inboundSchema),
1278
- z.lazy(() => UpdateDatapoint2Datasets2$inboundSchema),
1279
- ]);
1280
-
1281
- /** @internal */
1282
- export type UpdateDatapointContentDatasets2$Outbound =
1283
- | UpdateDatapoint2Datasets1$Outbound
1284
- | UpdateDatapoint2Datasets2$Outbound;
1285
-
1286
- /** @internal */
1287
- export const UpdateDatapointContentDatasets2$outboundSchema: z.ZodType<
1288
- UpdateDatapointContentDatasets2$Outbound,
1289
- z.ZodTypeDef,
1290
- UpdateDatapointContentDatasets2
1291
- > = z.union([
1292
- z.lazy(() => UpdateDatapoint2Datasets1$outboundSchema),
1293
- z.lazy(() => UpdateDatapoint2Datasets2$outboundSchema),
1294
- ]);
1295
-
1296
- /**
1297
- * @internal
1298
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1299
- */
1300
- export namespace UpdateDatapointContentDatasets2$ {
1301
- /** @deprecated use `UpdateDatapointContentDatasets2$inboundSchema` instead. */
1302
- export const inboundSchema = UpdateDatapointContentDatasets2$inboundSchema;
1303
- /** @deprecated use `UpdateDatapointContentDatasets2$outboundSchema` instead. */
1304
- export const outboundSchema = UpdateDatapointContentDatasets2$outboundSchema;
1305
- /** @deprecated use `UpdateDatapointContentDatasets2$Outbound` instead. */
1306
- export type Outbound = UpdateDatapointContentDatasets2$Outbound;
1307
- }
1308
-
1309
- export function updateDatapointContentDatasets2ToJSON(
1310
- updateDatapointContentDatasets2: UpdateDatapointContentDatasets2,
1311
- ): string {
1312
- return JSON.stringify(
1313
- UpdateDatapointContentDatasets2$outboundSchema.parse(
1314
- updateDatapointContentDatasets2,
1315
- ),
1316
- );
1317
- }
1318
-
1319
- export function updateDatapointContentDatasets2FromJSON(
1320
- jsonString: string,
1321
- ): SafeParseResult<UpdateDatapointContentDatasets2, SDKValidationError> {
1322
- return safeParse(
1323
- jsonString,
1324
- (x) => UpdateDatapointContentDatasets2$inboundSchema.parse(JSON.parse(x)),
1325
- `Failed to parse 'UpdateDatapointContentDatasets2' from JSON`,
1326
- );
1327
- }
1328
-
1329
- /** @internal */
1330
- export const UpdateDatapointDatasetsContent$inboundSchema: z.ZodType<
1331
- UpdateDatapointDatasetsContent,
1332
- z.ZodTypeDef,
1333
- unknown
1334
- > = z.union([
1335
- z.string(),
1336
- z.array(z.union([
1337
- z.lazy(() => UpdateDatapoint2Datasets1$inboundSchema),
1338
- z.lazy(() => UpdateDatapoint2Datasets2$inboundSchema),
1339
- ])),
1340
- ]);
1341
-
1342
- /** @internal */
1343
- export type UpdateDatapointDatasetsContent$Outbound =
1344
- | string
1345
- | Array<
1346
- UpdateDatapoint2Datasets1$Outbound | UpdateDatapoint2Datasets2$Outbound
1347
- >;
1348
-
1349
- /** @internal */
1350
- export const UpdateDatapointDatasetsContent$outboundSchema: z.ZodType<
1351
- UpdateDatapointDatasetsContent$Outbound,
1352
- z.ZodTypeDef,
1353
- UpdateDatapointDatasetsContent
1354
- > = z.union([
1355
- z.string(),
1356
- z.array(z.union([
1357
- z.lazy(() => UpdateDatapoint2Datasets1$outboundSchema),
1358
- z.lazy(() => UpdateDatapoint2Datasets2$outboundSchema),
1359
- ])),
1360
- ]);
1361
-
1362
- /**
1363
- * @internal
1364
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1365
- */
1366
- export namespace UpdateDatapointDatasetsContent$ {
1367
- /** @deprecated use `UpdateDatapointDatasetsContent$inboundSchema` instead. */
1368
- export const inboundSchema = UpdateDatapointDatasetsContent$inboundSchema;
1369
- /** @deprecated use `UpdateDatapointDatasetsContent$outboundSchema` instead. */
1370
- export const outboundSchema = UpdateDatapointDatasetsContent$outboundSchema;
1371
- /** @deprecated use `UpdateDatapointDatasetsContent$Outbound` instead. */
1372
- export type Outbound = UpdateDatapointDatasetsContent$Outbound;
1373
- }
1374
-
1375
- export function updateDatapointDatasetsContentToJSON(
1376
- updateDatapointDatasetsContent: UpdateDatapointDatasetsContent,
1377
- ): string {
1378
- return JSON.stringify(
1379
- UpdateDatapointDatasetsContent$outboundSchema.parse(
1380
- updateDatapointDatasetsContent,
1381
- ),
1382
- );
1383
- }
1384
-
1385
- export function updateDatapointDatasetsContentFromJSON(
1386
- jsonString: string,
1387
- ): SafeParseResult<UpdateDatapointDatasetsContent, SDKValidationError> {
1388
- return safeParse(
1389
- jsonString,
1390
- (x) => UpdateDatapointDatasetsContent$inboundSchema.parse(JSON.parse(x)),
1391
- `Failed to parse 'UpdateDatapointDatasetsContent' from JSON`,
1392
- );
1393
- }
1394
-
1395
- /** @internal */
1396
- export const UpdateDatapointDatasetsType$inboundSchema: z.ZodNativeEnum<
1397
- typeof UpdateDatapointDatasetsType
1398
- > = z.nativeEnum(UpdateDatapointDatasetsType);
1399
-
1400
- /** @internal */
1401
- export const UpdateDatapointDatasetsType$outboundSchema: z.ZodNativeEnum<
1402
- typeof UpdateDatapointDatasetsType
1403
- > = UpdateDatapointDatasetsType$inboundSchema;
1404
-
1405
- /**
1406
- * @internal
1407
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1408
- */
1409
- export namespace UpdateDatapointDatasetsType$ {
1410
- /** @deprecated use `UpdateDatapointDatasetsType$inboundSchema` instead. */
1411
- export const inboundSchema = UpdateDatapointDatasetsType$inboundSchema;
1412
- /** @deprecated use `UpdateDatapointDatasetsType$outboundSchema` instead. */
1413
- export const outboundSchema = UpdateDatapointDatasetsType$outboundSchema;
1414
- }
1415
-
1416
- /** @internal */
1417
- export const UpdateDatapointDatasetsFunction$inboundSchema: z.ZodType<
1418
- UpdateDatapointDatasetsFunction,
1419
- z.ZodTypeDef,
1420
- unknown
1421
- > = z.object({
1422
- name: z.string(),
1423
- arguments: z.string(),
1424
- });
1425
-
1426
- /** @internal */
1427
- export type UpdateDatapointDatasetsFunction$Outbound = {
1428
- name: string;
1429
- arguments: string;
1430
- };
1431
-
1432
- /** @internal */
1433
- export const UpdateDatapointDatasetsFunction$outboundSchema: z.ZodType<
1434
- UpdateDatapointDatasetsFunction$Outbound,
1435
- z.ZodTypeDef,
1436
- UpdateDatapointDatasetsFunction
1437
- > = z.object({
1438
- name: z.string(),
1439
- arguments: z.string(),
1440
- });
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 UpdateDatapointDatasetsFunction$ {
1447
- /** @deprecated use `UpdateDatapointDatasetsFunction$inboundSchema` instead. */
1448
- export const inboundSchema = UpdateDatapointDatasetsFunction$inboundSchema;
1449
- /** @deprecated use `UpdateDatapointDatasetsFunction$outboundSchema` instead. */
1450
- export const outboundSchema = UpdateDatapointDatasetsFunction$outboundSchema;
1451
- /** @deprecated use `UpdateDatapointDatasetsFunction$Outbound` instead. */
1452
- export type Outbound = UpdateDatapointDatasetsFunction$Outbound;
1453
- }
1454
-
1455
- export function updateDatapointDatasetsFunctionToJSON(
1456
- updateDatapointDatasetsFunction: UpdateDatapointDatasetsFunction,
1457
- ): string {
1458
- return JSON.stringify(
1459
- UpdateDatapointDatasetsFunction$outboundSchema.parse(
1460
- updateDatapointDatasetsFunction,
1461
- ),
1462
- );
1463
- }
1464
-
1465
- export function updateDatapointDatasetsFunctionFromJSON(
1466
- jsonString: string,
1467
- ): SafeParseResult<UpdateDatapointDatasetsFunction, SDKValidationError> {
1468
- return safeParse(
1469
- jsonString,
1470
- (x) => UpdateDatapointDatasetsFunction$inboundSchema.parse(JSON.parse(x)),
1471
- `Failed to parse 'UpdateDatapointDatasetsFunction' from JSON`,
1472
- );
1473
- }
1474
-
1475
- /** @internal */
1476
- export const UpdateDatapointDatasetsToolCalls$inboundSchema: z.ZodType<
1477
- UpdateDatapointDatasetsToolCalls,
1478
- z.ZodTypeDef,
1479
- unknown
1480
- > = z.object({
1481
- id: z.string().optional(),
1482
- index: z.number().optional(),
1483
- type: UpdateDatapointDatasetsType$inboundSchema,
1484
- function: z.lazy(() => UpdateDatapointDatasetsFunction$inboundSchema),
1485
- });
1486
-
1487
- /** @internal */
1488
- export type UpdateDatapointDatasetsToolCalls$Outbound = {
1489
- id?: string | undefined;
1490
- index?: number | undefined;
1491
- type: string;
1492
- function: UpdateDatapointDatasetsFunction$Outbound;
1493
- };
1494
-
1495
- /** @internal */
1496
- export const UpdateDatapointDatasetsToolCalls$outboundSchema: z.ZodType<
1497
- UpdateDatapointDatasetsToolCalls$Outbound,
1498
- z.ZodTypeDef,
1499
- UpdateDatapointDatasetsToolCalls
1500
- > = z.object({
1501
- id: z.string().optional(),
1502
- index: z.number().optional(),
1503
- type: UpdateDatapointDatasetsType$outboundSchema,
1504
- function: z.lazy(() => UpdateDatapointDatasetsFunction$outboundSchema),
1505
- });
1506
-
1507
- /**
1508
- * @internal
1509
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1510
- */
1511
- export namespace UpdateDatapointDatasetsToolCalls$ {
1512
- /** @deprecated use `UpdateDatapointDatasetsToolCalls$inboundSchema` instead. */
1513
- export const inboundSchema = UpdateDatapointDatasetsToolCalls$inboundSchema;
1514
- /** @deprecated use `UpdateDatapointDatasetsToolCalls$outboundSchema` instead. */
1515
- export const outboundSchema = UpdateDatapointDatasetsToolCalls$outboundSchema;
1516
- /** @deprecated use `UpdateDatapointDatasetsToolCalls$Outbound` instead. */
1517
- export type Outbound = UpdateDatapointDatasetsToolCalls$Outbound;
1518
- }
1519
-
1520
- export function updateDatapointDatasetsToolCallsToJSON(
1521
- updateDatapointDatasetsToolCalls: UpdateDatapointDatasetsToolCalls,
1522
- ): string {
1523
- return JSON.stringify(
1524
- UpdateDatapointDatasetsToolCalls$outboundSchema.parse(
1525
- updateDatapointDatasetsToolCalls,
1526
- ),
1527
- );
1528
- }
1529
-
1530
- export function updateDatapointDatasetsToolCallsFromJSON(
1531
- jsonString: string,
1532
- ): SafeParseResult<UpdateDatapointDatasetsToolCalls, SDKValidationError> {
1533
- return safeParse(
1534
- jsonString,
1535
- (x) => UpdateDatapointDatasetsToolCalls$inboundSchema.parse(JSON.parse(x)),
1536
- `Failed to parse 'UpdateDatapointDatasetsToolCalls' from JSON`,
1537
- );
1538
- }
1539
-
1540
- /** @internal */
1541
- export const UpdateDatapointDatasetsMessages$inboundSchema: z.ZodType<
1542
- UpdateDatapointDatasetsMessages,
1543
- z.ZodTypeDef,
1544
- unknown
1545
- > = z.object({
1546
- role: UpdateDatapointDatasetsRole$inboundSchema,
1547
- content: z.union([
1548
- z.string(),
1549
- z.array(z.union([
1550
- z.lazy(() => UpdateDatapoint2Datasets1$inboundSchema),
1551
- z.lazy(() => UpdateDatapoint2Datasets2$inboundSchema),
1552
- ])),
1553
- ]),
1554
- tool_calls: z.array(
1555
- z.lazy(() => UpdateDatapointDatasetsToolCalls$inboundSchema),
1556
- ).optional(),
1557
- tool_call_id: z.string().optional(),
1558
- }).transform((v) => {
1559
- return remap$(v, {
1560
- "tool_calls": "toolCalls",
1561
- "tool_call_id": "toolCallId",
1562
- });
1563
- });
1564
-
1565
- /** @internal */
1566
- export type UpdateDatapointDatasetsMessages$Outbound = {
1567
- role: string;
1568
- content:
1569
- | string
1570
- | Array<
1571
- UpdateDatapoint2Datasets1$Outbound | UpdateDatapoint2Datasets2$Outbound
1572
- >;
1573
- tool_calls?: Array<UpdateDatapointDatasetsToolCalls$Outbound> | undefined;
1574
- tool_call_id?: string | undefined;
1575
- };
1576
-
1577
- /** @internal */
1578
- export const UpdateDatapointDatasetsMessages$outboundSchema: z.ZodType<
1579
- UpdateDatapointDatasetsMessages$Outbound,
1580
- z.ZodTypeDef,
1581
- UpdateDatapointDatasetsMessages
1582
- > = z.object({
1583
- role: UpdateDatapointDatasetsRole$outboundSchema,
1584
- content: z.union([
1585
- z.string(),
1586
- z.array(z.union([
1587
- z.lazy(() => UpdateDatapoint2Datasets1$outboundSchema),
1588
- z.lazy(() => UpdateDatapoint2Datasets2$outboundSchema),
1589
- ])),
1590
- ]),
1591
- toolCalls: z.array(
1592
- z.lazy(() => UpdateDatapointDatasetsToolCalls$outboundSchema),
1593
- ).optional(),
1594
- toolCallId: z.string().optional(),
1595
- }).transform((v) => {
1596
- return remap$(v, {
1597
- toolCalls: "tool_calls",
1598
- toolCallId: "tool_call_id",
1599
- });
1600
- });
1601
-
1602
- /**
1603
- * @internal
1604
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1605
- */
1606
- export namespace UpdateDatapointDatasetsMessages$ {
1607
- /** @deprecated use `UpdateDatapointDatasetsMessages$inboundSchema` instead. */
1608
- export const inboundSchema = UpdateDatapointDatasetsMessages$inboundSchema;
1609
- /** @deprecated use `UpdateDatapointDatasetsMessages$outboundSchema` instead. */
1610
- export const outboundSchema = UpdateDatapointDatasetsMessages$outboundSchema;
1611
- /** @deprecated use `UpdateDatapointDatasetsMessages$Outbound` instead. */
1612
- export type Outbound = UpdateDatapointDatasetsMessages$Outbound;
1613
- }
1614
-
1615
- export function updateDatapointDatasetsMessagesToJSON(
1616
- updateDatapointDatasetsMessages: UpdateDatapointDatasetsMessages,
1617
- ): string {
1618
- return JSON.stringify(
1619
- UpdateDatapointDatasetsMessages$outboundSchema.parse(
1620
- updateDatapointDatasetsMessages,
1621
- ),
1622
- );
1623
- }
1624
-
1625
- export function updateDatapointDatasetsMessagesFromJSON(
1626
- jsonString: string,
1627
- ): SafeParseResult<UpdateDatapointDatasetsMessages, SDKValidationError> {
1628
- return safeParse(
1629
- jsonString,
1630
- (x) => UpdateDatapointDatasetsMessages$inboundSchema.parse(JSON.parse(x)),
1631
- `Failed to parse 'UpdateDatapointDatasetsMessages' from JSON`,
1632
- );
1633
- }
1634
-
1635
- /** @internal */
1636
- export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
1637
- UpdateDatapointResponseBody,
1638
- z.ZodTypeDef,
1639
- unknown
1640
- > = z.object({
1641
- _id: z.string(),
1642
- workspace_id: z.string(),
1643
- inputs: z.record(z.any()).optional(),
1644
- messages: z.array(z.lazy(() => UpdateDatapointDatasetsMessages$inboundSchema))
1645
- .optional(),
1646
- expected_output: z.string().optional(),
1647
- dataset_id: z.string(),
1648
- created_by_id: z.string().optional(),
1649
- updated_by_id: z.string().optional(),
1650
- created: z.string().datetime({ offset: true }).transform(v => new Date(v))
1651
- .optional(),
1652
- updated: z.string().datetime({ offset: true }).default(
1653
- "2025-05-18T21:00:21.233Z",
1654
- ).transform(v => new Date(v)),
1655
- }).transform((v) => {
1656
- return remap$(v, {
1657
- "_id": "id",
1658
- "workspace_id": "workspaceId",
1659
- "expected_output": "expectedOutput",
1660
- "dataset_id": "datasetId",
1661
- "created_by_id": "createdById",
1662
- "updated_by_id": "updatedById",
1663
- });
1664
- });
1665
-
1666
- /** @internal */
1667
- export type UpdateDatapointResponseBody$Outbound = {
1668
- _id: string;
1669
- workspace_id: string;
1670
- inputs?: { [k: string]: any } | undefined;
1671
- messages?: Array<UpdateDatapointDatasetsMessages$Outbound> | undefined;
1672
- expected_output?: string | undefined;
1673
- dataset_id: string;
1674
- created_by_id?: string | undefined;
1675
- updated_by_id?: string | undefined;
1676
- created?: string | undefined;
1677
- updated: string;
1678
- };
1679
-
1680
- /** @internal */
1681
- export const UpdateDatapointResponseBody$outboundSchema: z.ZodType<
1682
- UpdateDatapointResponseBody$Outbound,
1683
- z.ZodTypeDef,
1684
- UpdateDatapointResponseBody
1685
- > = z.object({
1686
- id: z.string(),
1687
- workspaceId: z.string(),
1688
- inputs: z.record(z.any()).optional(),
1689
- messages: z.array(
1690
- z.lazy(() => UpdateDatapointDatasetsMessages$outboundSchema),
1691
- ).optional(),
1692
- expectedOutput: z.string().optional(),
1693
- datasetId: z.string(),
1694
- createdById: z.string().optional(),
1695
- updatedById: z.string().optional(),
1696
- created: z.date().transform(v => v.toISOString()).optional(),
1697
- updated: z.date().default(() => new Date("2025-05-18T21:00:21.233Z"))
1698
- .transform(v => v.toISOString()),
1699
- }).transform((v) => {
1700
- return remap$(v, {
1701
- id: "_id",
1702
- workspaceId: "workspace_id",
1703
- expectedOutput: "expected_output",
1704
- datasetId: "dataset_id",
1705
- createdById: "created_by_id",
1706
- updatedById: "updated_by_id",
1707
- });
1708
- });
1709
-
1710
- /**
1711
- * @internal
1712
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1713
- */
1714
- export namespace UpdateDatapointResponseBody$ {
1715
- /** @deprecated use `UpdateDatapointResponseBody$inboundSchema` instead. */
1716
- export const inboundSchema = UpdateDatapointResponseBody$inboundSchema;
1717
- /** @deprecated use `UpdateDatapointResponseBody$outboundSchema` instead. */
1718
- export const outboundSchema = UpdateDatapointResponseBody$outboundSchema;
1719
- /** @deprecated use `UpdateDatapointResponseBody$Outbound` instead. */
1720
- export type Outbound = UpdateDatapointResponseBody$Outbound;
1721
- }
1722
-
1723
- export function updateDatapointResponseBodyToJSON(
1724
- updateDatapointResponseBody: UpdateDatapointResponseBody,
1725
- ): string {
1726
- return JSON.stringify(
1727
- UpdateDatapointResponseBody$outboundSchema.parse(
1728
- updateDatapointResponseBody,
1729
- ),
1730
- );
1731
- }
1732
-
1733
- export function updateDatapointResponseBodyFromJSON(
1734
- jsonString: string,
1735
- ): SafeParseResult<UpdateDatapointResponseBody, SDKValidationError> {
1736
- return safeParse(
1737
- jsonString,
1738
- (x) => UpdateDatapointResponseBody$inboundSchema.parse(JSON.parse(x)),
1739
- `Failed to parse 'UpdateDatapointResponseBody' from JSON`,
1740
- );
1741
- }