@orq-ai/node 3.14.8 → 4.0.0-rc.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 (494) hide show
  1. package/bin/mcp-server.js +210 -213
  2. package/bin/mcp-server.js.map +38 -38
  3. package/docs/sdks/agents/README.md +8 -4
  4. package/docs/sdks/budgets/README.md +4 -2
  5. package/docs/sdks/tools/README.md +4 -2
  6. package/examples/package-lock.json +5 -6
  7. package/jsr.json +1 -1
  8. package/lib/config.d.ts +2 -2
  9. package/lib/config.js +2 -2
  10. package/lib/config.js.map +1 -1
  11. package/mcp-server/mcp-server.js +1 -1
  12. package/mcp-server/mcp-server.js.map +1 -1
  13. package/mcp-server/server.js +1 -1
  14. package/mcp-server/server.js.map +1 -1
  15. package/models/operations/createbudget.js +2 -2
  16. package/models/operations/createcontact.js +2 -2
  17. package/models/operations/createdataset.js +2 -2
  18. package/models/operations/createdatasetitem.js +8 -8
  19. package/models/operations/createdatasource.js +2 -2
  20. package/models/operations/createeval.js +28 -28
  21. package/models/operations/createtool.js +10 -10
  22. package/models/operations/duplicatetool.js +10 -10
  23. package/models/operations/fileget.js +2 -2
  24. package/models/operations/filelist.js +2 -2
  25. package/models/operations/fileupload.js +2 -2
  26. package/models/operations/getalltools.js +10 -10
  27. package/models/operations/getbudget.js +2 -2
  28. package/models/operations/getevals.js +28 -28
  29. package/models/operations/listbudgets.js +2 -2
  30. package/models/operations/listcontacts.js +2 -2
  31. package/models/operations/listdatasetdatapoints.js +8 -8
  32. package/models/operations/listdatasets.js +2 -2
  33. package/models/operations/listdatasources.js +2 -2
  34. package/models/operations/retrievecontact.js +2 -2
  35. package/models/operations/retrievedatapoint.js +8 -8
  36. package/models/operations/retrievedataset.js +2 -2
  37. package/models/operations/retrievedatasource.js +2 -2
  38. package/models/operations/retrievetool.js +10 -10
  39. package/models/operations/updatebudget.js +2 -2
  40. package/models/operations/updatecontact.js +2 -2
  41. package/models/operations/updatedatapoint.js +8 -8
  42. package/models/operations/updatedataset.js +2 -2
  43. package/models/operations/updatedatasource.js +2 -2
  44. package/models/operations/updateeval.js +28 -28
  45. package/models/operations/updatetool.js +10 -10
  46. package/package.json +4 -4
  47. package/src/lib/config.ts +2 -2
  48. package/src/mcp-server/mcp-server.ts +1 -1
  49. package/src/mcp-server/server.ts +1 -1
  50. package/src/models/operations/createbudget.ts +2 -2
  51. package/src/models/operations/createcontact.ts +2 -2
  52. package/src/models/operations/createdataset.ts +2 -2
  53. package/src/models/operations/createdatasetitem.ts +8 -8
  54. package/src/models/operations/createdatasource.ts +2 -2
  55. package/src/models/operations/createeval.ts +28 -28
  56. package/src/models/operations/createtool.ts +10 -10
  57. package/src/models/operations/duplicatetool.ts +10 -10
  58. package/src/models/operations/fileget.ts +2 -2
  59. package/src/models/operations/filelist.ts +2 -2
  60. package/src/models/operations/fileupload.ts +2 -2
  61. package/src/models/operations/getalltools.ts +10 -10
  62. package/src/models/operations/getbudget.ts +2 -2
  63. package/src/models/operations/getevals.ts +28 -28
  64. package/src/models/operations/listbudgets.ts +2 -2
  65. package/src/models/operations/listcontacts.ts +2 -2
  66. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  67. package/src/models/operations/listdatasets.ts +2 -2
  68. package/src/models/operations/listdatasources.ts +2 -2
  69. package/src/models/operations/retrievecontact.ts +2 -2
  70. package/src/models/operations/retrievedatapoint.ts +8 -8
  71. package/src/models/operations/retrievedataset.ts +2 -2
  72. package/src/models/operations/retrievedatasource.ts +2 -2
  73. package/src/models/operations/retrievetool.ts +10 -10
  74. package/src/models/operations/updatebudget.ts +2 -2
  75. package/src/models/operations/updatecontact.ts +2 -2
  76. package/src/models/operations/updatedatapoint.ts +8 -8
  77. package/src/models/operations/updatedataset.ts +2 -2
  78. package/src/models/operations/updatedatasource.ts +2 -2
  79. package/src/models/operations/updateeval.ts +28 -28
  80. package/src/models/operations/updatetool.ts +10 -10
  81. package/packages/orq-rc/FUNCTIONS.md +0 -103
  82. package/packages/orq-rc/README.md +0 -909
  83. package/packages/orq-rc/RUNTIMES.md +0 -48
  84. package/packages/orq-rc/docs/sdks/agents/README.md +0 -1319
  85. package/packages/orq-rc/docs/sdks/budgets/README.md +0 -401
  86. package/packages/orq-rc/docs/sdks/chunking/README.md +0 -95
  87. package/packages/orq-rc/docs/sdks/contacts/README.md +0 -450
  88. package/packages/orq-rc/docs/sdks/datasets/README.md +0 -836
  89. package/packages/orq-rc/docs/sdks/deployments/README.md +0 -312
  90. package/packages/orq-rc/docs/sdks/evals/README.md +0 -339
  91. package/packages/orq-rc/docs/sdks/feedback/README.md +0 -89
  92. package/packages/orq-rc/docs/sdks/files/README.md +0 -301
  93. package/packages/orq-rc/docs/sdks/knowledge/README.md +0 -1489
  94. package/packages/orq-rc/docs/sdks/memorystores/README.md +0 -1172
  95. package/packages/orq-rc/docs/sdks/metrics/README.md +0 -83
  96. package/packages/orq-rc/docs/sdks/models/README.md +0 -76
  97. package/packages/orq-rc/docs/sdks/prompts/README.md +0 -591
  98. package/packages/orq-rc/docs/sdks/remoteconfigs/README.md +0 -77
  99. package/packages/orq-rc/docs/sdks/tools/README.md +0 -490
  100. package/packages/orq-rc/examples/README.md +0 -31
  101. package/packages/orq-rc/examples/contactsCreate.example.ts +0 -42
  102. package/packages/orq-rc/examples/package-lock.json +0 -627
  103. package/packages/orq-rc/examples/package.json +0 -18
  104. package/packages/orq-rc/jsr.json +0 -28
  105. package/packages/orq-rc/package-lock.json +0 -3071
  106. package/packages/orq-rc/package.json +0 -43
  107. package/packages/orq-rc/src/core.ts +0 -13
  108. package/packages/orq-rc/src/funcs/agentsCreate.ts +0 -172
  109. package/packages/orq-rc/src/funcs/agentsDelete.ts +0 -176
  110. package/packages/orq-rc/src/funcs/agentsInvoke.ts +0 -167
  111. package/packages/orq-rc/src/funcs/agentsList.ts +0 -167
  112. package/packages/orq-rc/src/funcs/agentsListActions.ts +0 -169
  113. package/packages/orq-rc/src/funcs/agentsListTasks.ts +0 -183
  114. package/packages/orq-rc/src/funcs/agentsRetrieve.ts +0 -175
  115. package/packages/orq-rc/src/funcs/agentsRetrieveAction.ts +0 -173
  116. package/packages/orq-rc/src/funcs/agentsRetrieveTask.ts +0 -179
  117. package/packages/orq-rc/src/funcs/agentsRun.ts +0 -163
  118. package/packages/orq-rc/src/funcs/agentsStream.ts +0 -190
  119. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +0 -188
  120. package/packages/orq-rc/src/funcs/agentsUpdate.ts +0 -176
  121. package/packages/orq-rc/src/funcs/budgetsCreate.ts +0 -160
  122. package/packages/orq-rc/src/funcs/budgetsDelete.ts +0 -167
  123. package/packages/orq-rc/src/funcs/budgetsGet.ts +0 -166
  124. package/packages/orq-rc/src/funcs/budgetsList.ts +0 -170
  125. package/packages/orq-rc/src/funcs/budgetsUpdate.ts +0 -167
  126. package/packages/orq-rc/src/funcs/chunkingParse.ts +0 -160
  127. package/packages/orq-rc/src/funcs/contactsCreate.ts +0 -165
  128. package/packages/orq-rc/src/funcs/contactsDelete.ts +0 -176
  129. package/packages/orq-rc/src/funcs/contactsList.ts +0 -169
  130. package/packages/orq-rc/src/funcs/contactsRetrieve.ts +0 -175
  131. package/packages/orq-rc/src/funcs/contactsUpdate.ts +0 -176
  132. package/packages/orq-rc/src/funcs/datasetsClear.ts +0 -167
  133. package/packages/orq-rc/src/funcs/datasetsCreate.ts +0 -165
  134. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +0 -171
  135. package/packages/orq-rc/src/funcs/datasetsDelete.ts +0 -167
  136. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +0 -182
  137. package/packages/orq-rc/src/funcs/datasetsList.ts +0 -167
  138. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +0 -174
  139. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +0 -175
  140. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +0 -181
  141. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +0 -176
  142. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +0 -179
  143. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +0 -168
  144. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +0 -176
  145. package/packages/orq-rc/src/funcs/deploymentsList.ts +0 -176
  146. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +0 -168
  147. package/packages/orq-rc/src/funcs/deploymentsStream.ts +0 -183
  148. package/packages/orq-rc/src/funcs/evalsAll.ts +0 -173
  149. package/packages/orq-rc/src/funcs/evalsCreate.ts +0 -169
  150. package/packages/orq-rc/src/funcs/evalsDelete.ts +0 -173
  151. package/packages/orq-rc/src/funcs/evalsUpdate.ts +0 -173
  152. package/packages/orq-rc/src/funcs/feedbackCreate.ts +0 -160
  153. package/packages/orq-rc/src/funcs/filesCreate.ts +0 -187
  154. package/packages/orq-rc/src/funcs/filesDelete.ts +0 -164
  155. package/packages/orq-rc/src/funcs/filesGet.ts +0 -166
  156. package/packages/orq-rc/src/funcs/filesList.ts +0 -167
  157. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +0 -158
  158. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +0 -171
  159. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +0 -166
  160. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +0 -167
  161. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +0 -174
  162. package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +0 -170
  163. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +0 -173
  164. package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +0 -170
  165. package/packages/orq-rc/src/funcs/knowledgeList.ts +0 -169
  166. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +0 -178
  167. package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +0 -171
  168. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +0 -174
  169. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +0 -166
  170. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +0 -173
  171. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +0 -169
  172. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +0 -167
  173. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +0 -164
  174. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +0 -174
  175. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +0 -170
  176. package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +0 -171
  177. package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +0 -175
  178. package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +0 -170
  179. package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +0 -168
  180. package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +0 -184
  181. package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +0 -179
  182. package/packages/orq-rc/src/funcs/memoryStoresList.ts +0 -178
  183. package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +0 -181
  184. package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +0 -176
  185. package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +0 -177
  186. package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +0 -178
  187. package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +0 -173
  188. package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +0 -168
  189. package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +0 -179
  190. package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +0 -174
  191. package/packages/orq-rc/src/funcs/modelsList.ts +0 -142
  192. package/packages/orq-rc/src/funcs/promptsCreate.ts +0 -160
  193. package/packages/orq-rc/src/funcs/promptsDelete.ts +0 -164
  194. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +0 -181
  195. package/packages/orq-rc/src/funcs/promptsList.ts +0 -167
  196. package/packages/orq-rc/src/funcs/promptsListVersions.ts +0 -173
  197. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +0 -166
  198. package/packages/orq-rc/src/funcs/promptsUpdate.ts +0 -173
  199. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +0 -161
  200. package/packages/orq-rc/src/funcs/toolsCreate.ts +0 -163
  201. package/packages/orq-rc/src/funcs/toolsDelete.ts +0 -167
  202. package/packages/orq-rc/src/funcs/toolsDuplicate.ts +0 -175
  203. package/packages/orq-rc/src/funcs/toolsList.ts +0 -176
  204. package/packages/orq-rc/src/funcs/toolsRetrieve.ts +0 -166
  205. package/packages/orq-rc/src/funcs/toolsUpdate.ts +0 -176
  206. package/packages/orq-rc/src/hooks/global.ts +0 -44
  207. package/packages/orq-rc/src/hooks/hooks.ts +0 -132
  208. package/packages/orq-rc/src/hooks/index.ts +0 -6
  209. package/packages/orq-rc/src/hooks/registration.ts +0 -15
  210. package/packages/orq-rc/src/hooks/types.ts +0 -112
  211. package/packages/orq-rc/src/index.ts +0 -9
  212. package/packages/orq-rc/src/lib/base64.ts +0 -37
  213. package/packages/orq-rc/src/lib/config.ts +0 -74
  214. package/packages/orq-rc/src/lib/dlv.ts +0 -53
  215. package/packages/orq-rc/src/lib/encodings.ts +0 -483
  216. package/packages/orq-rc/src/lib/env.ts +0 -89
  217. package/packages/orq-rc/src/lib/event-streams.ts +0 -135
  218. package/packages/orq-rc/src/lib/files.ts +0 -82
  219. package/packages/orq-rc/src/lib/http.ts +0 -323
  220. package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
  221. package/packages/orq-rc/src/lib/logger.ts +0 -9
  222. package/packages/orq-rc/src/lib/matchers.ts +0 -345
  223. package/packages/orq-rc/src/lib/primitives.ts +0 -150
  224. package/packages/orq-rc/src/lib/retries.ts +0 -218
  225. package/packages/orq-rc/src/lib/schemas.ts +0 -91
  226. package/packages/orq-rc/src/lib/sdks.ts +0 -407
  227. package/packages/orq-rc/src/lib/security.ts +0 -264
  228. package/packages/orq-rc/src/lib/url.ts +0 -33
  229. package/packages/orq-rc/src/mcp-server/cli/start/command.ts +0 -111
  230. package/packages/orq-rc/src/mcp-server/cli/start/impl.ts +0 -136
  231. package/packages/orq-rc/src/mcp-server/cli.ts +0 -13
  232. package/packages/orq-rc/src/mcp-server/console-logger.ts +0 -71
  233. package/packages/orq-rc/src/mcp-server/extensions.ts +0 -17
  234. package/packages/orq-rc/src/mcp-server/mcp-server.ts +0 -26
  235. package/packages/orq-rc/src/mcp-server/prompts.ts +0 -117
  236. package/packages/orq-rc/src/mcp-server/resources.ts +0 -172
  237. package/packages/orq-rc/src/mcp-server/scopes.ts +0 -7
  238. package/packages/orq-rc/src/mcp-server/server.ts +0 -259
  239. package/packages/orq-rc/src/mcp-server/shared.ts +0 -74
  240. package/packages/orq-rc/src/mcp-server/tools/agentsCreate.ts +0 -37
  241. package/packages/orq-rc/src/mcp-server/tools/agentsDelete.ts +0 -35
  242. package/packages/orq-rc/src/mcp-server/tools/agentsInvoke.ts +0 -37
  243. package/packages/orq-rc/src/mcp-server/tools/agentsList.ts +0 -37
  244. package/packages/orq-rc/src/mcp-server/tools/agentsListActions.ts +0 -35
  245. package/packages/orq-rc/src/mcp-server/tools/agentsListTasks.ts +0 -37
  246. package/packages/orq-rc/src/mcp-server/tools/agentsRetrieve.ts +0 -37
  247. package/packages/orq-rc/src/mcp-server/tools/agentsRetrieveAction.ts +0 -35
  248. package/packages/orq-rc/src/mcp-server/tools/agentsRetrieveTask.ts +0 -37
  249. package/packages/orq-rc/src/mcp-server/tools/agentsRun.ts +0 -37
  250. package/packages/orq-rc/src/mcp-server/tools/agentsStream.ts +0 -37
  251. package/packages/orq-rc/src/mcp-server/tools/agentsStreamRun.ts +0 -37
  252. package/packages/orq-rc/src/mcp-server/tools/agentsUpdate.ts +0 -37
  253. package/packages/orq-rc/src/mcp-server/tools/budgetsCreate.ts +0 -37
  254. package/packages/orq-rc/src/mcp-server/tools/budgetsDelete.ts +0 -35
  255. package/packages/orq-rc/src/mcp-server/tools/budgetsGet.ts +0 -37
  256. package/packages/orq-rc/src/mcp-server/tools/budgetsList.ts +0 -37
  257. package/packages/orq-rc/src/mcp-server/tools/budgetsUpdate.ts +0 -37
  258. package/packages/orq-rc/src/mcp-server/tools/chunkingParse.ts +0 -37
  259. package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +0 -37
  260. package/packages/orq-rc/src/mcp-server/tools/contactsDelete.ts +0 -35
  261. package/packages/orq-rc/src/mcp-server/tools/contactsList.ts +0 -37
  262. package/packages/orq-rc/src/mcp-server/tools/contactsRetrieve.ts +0 -37
  263. package/packages/orq-rc/src/mcp-server/tools/contactsUpdate.ts +0 -37
  264. package/packages/orq-rc/src/mcp-server/tools/datasetsClear.ts +0 -35
  265. package/packages/orq-rc/src/mcp-server/tools/datasetsCreate.ts +0 -37
  266. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoint.ts +0 -37
  267. package/packages/orq-rc/src/mcp-server/tools/datasetsDelete.ts +0 -35
  268. package/packages/orq-rc/src/mcp-server/tools/datasetsDeleteDatapoint.ts +0 -35
  269. package/packages/orq-rc/src/mcp-server/tools/datasetsList.ts +0 -37
  270. package/packages/orq-rc/src/mcp-server/tools/datasetsListDatapoints.ts +0 -37
  271. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieve.ts +0 -37
  272. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieveDatapoint.ts +0 -37
  273. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdate.ts +0 -37
  274. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdateDatapoint.ts +0 -35
  275. package/packages/orq-rc/src/mcp-server/tools/deploymentsGetConfig.ts +0 -37
  276. package/packages/orq-rc/src/mcp-server/tools/deploymentsInvoke.ts +0 -37
  277. package/packages/orq-rc/src/mcp-server/tools/deploymentsList.ts +0 -37
  278. package/packages/orq-rc/src/mcp-server/tools/deploymentsMetricsCreate.ts +0 -37
  279. package/packages/orq-rc/src/mcp-server/tools/deploymentsStream.ts +0 -37
  280. package/packages/orq-rc/src/mcp-server/tools/evalsAll.ts +0 -35
  281. package/packages/orq-rc/src/mcp-server/tools/evalsCreate.ts +0 -35
  282. package/packages/orq-rc/src/mcp-server/tools/evalsDelete.ts +0 -33
  283. package/packages/orq-rc/src/mcp-server/tools/evalsUpdate.ts +0 -35
  284. package/packages/orq-rc/src/mcp-server/tools/feedbackCreate.ts +0 -37
  285. package/packages/orq-rc/src/mcp-server/tools/filesCreate.ts +0 -37
  286. package/packages/orq-rc/src/mcp-server/tools/filesDelete.ts +0 -33
  287. package/packages/orq-rc/src/mcp-server/tools/filesGet.ts +0 -37
  288. package/packages/orq-rc/src/mcp-server/tools/filesList.ts +0 -37
  289. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreate.ts +0 -35
  290. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateChunks.ts +0 -35
  291. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateDatasource.ts +0 -35
  292. package/packages/orq-rc/src/mcp-server/tools/knowledgeDelete.ts +0 -35
  293. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunk.ts +0 -33
  294. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunks.ts +0 -35
  295. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteDatasource.ts +0 -35
  296. package/packages/orq-rc/src/mcp-server/tools/knowledgeGetChunksCount.ts +0 -35
  297. package/packages/orq-rc/src/mcp-server/tools/knowledgeList.ts +0 -37
  298. package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunks.ts +0 -35
  299. package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunksPaginated.ts +0 -35
  300. package/packages/orq-rc/src/mcp-server/tools/knowledgeListDatasources.ts +0 -35
  301. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieve.ts +0 -37
  302. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveChunk.ts +0 -35
  303. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveDatasource.ts +0 -35
  304. package/packages/orq-rc/src/mcp-server/tools/knowledgeSearch.ts +0 -37
  305. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdate.ts +0 -35
  306. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateChunk.ts +0 -35
  307. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateDatasource.ts +0 -35
  308. package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreate.ts +0 -35
  309. package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreateDocument.ts +0 -37
  310. package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreateMemory.ts +0 -37
  311. package/packages/orq-rc/src/mcp-server/tools/memoryStoresDelete.ts +0 -35
  312. package/packages/orq-rc/src/mcp-server/tools/memoryStoresDeleteDocument.ts +0 -40
  313. package/packages/orq-rc/src/mcp-server/tools/memoryStoresDeleteMemory.ts +0 -40
  314. package/packages/orq-rc/src/mcp-server/tools/memoryStoresList.ts +0 -37
  315. package/packages/orq-rc/src/mcp-server/tools/memoryStoresListDocuments.ts +0 -37
  316. package/packages/orq-rc/src/mcp-server/tools/memoryStoresListMemories.ts +0 -37
  317. package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieve.ts +0 -37
  318. package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieveDocument.ts +0 -37
  319. package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieveMemory.ts +0 -37
  320. package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdate.ts +0 -37
  321. package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdateDocument.ts +0 -37
  322. package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdateMemory.ts +0 -37
  323. package/packages/orq-rc/src/mcp-server/tools/modelsList.ts +0 -30
  324. package/packages/orq-rc/src/mcp-server/tools/promptsCreate.ts +0 -35
  325. package/packages/orq-rc/src/mcp-server/tools/promptsDelete.ts +0 -33
  326. package/packages/orq-rc/src/mcp-server/tools/promptsGetVersion.ts +0 -37
  327. package/packages/orq-rc/src/mcp-server/tools/promptsList.ts +0 -37
  328. package/packages/orq-rc/src/mcp-server/tools/promptsListVersions.ts +0 -37
  329. package/packages/orq-rc/src/mcp-server/tools/promptsRetrieve.ts +0 -37
  330. package/packages/orq-rc/src/mcp-server/tools/promptsUpdate.ts +0 -35
  331. package/packages/orq-rc/src/mcp-server/tools/remoteconfigsRetrieve.ts +0 -36
  332. package/packages/orq-rc/src/mcp-server/tools/toolsCreate.ts +0 -37
  333. package/packages/orq-rc/src/mcp-server/tools/toolsDelete.ts +0 -35
  334. package/packages/orq-rc/src/mcp-server/tools/toolsDuplicate.ts +0 -37
  335. package/packages/orq-rc/src/mcp-server/tools/toolsList.ts +0 -37
  336. package/packages/orq-rc/src/mcp-server/tools/toolsRetrieve.ts +0 -37
  337. package/packages/orq-rc/src/mcp-server/tools/toolsUpdate.ts +0 -37
  338. package/packages/orq-rc/src/mcp-server/tools.ts +0 -129
  339. package/packages/orq-rc/src/models/components/deployments.ts +0 -8147
  340. package/packages/orq-rc/src/models/components/index.ts +0 -6
  341. package/packages/orq-rc/src/models/components/security.ts +0 -71
  342. package/packages/orq-rc/src/models/errors/apierror.ts +0 -40
  343. package/packages/orq-rc/src/models/errors/createagent.ts +0 -80
  344. package/packages/orq-rc/src/models/errors/createeval.ts +0 -80
  345. package/packages/orq-rc/src/models/errors/deleteagent.ts +0 -80
  346. package/packages/orq-rc/src/models/errors/deletecontact.ts +0 -91
  347. package/packages/orq-rc/src/models/errors/deleteeval.ts +0 -80
  348. package/packages/orq-rc/src/models/errors/duplicatetool.ts +0 -91
  349. package/packages/orq-rc/src/models/errors/getagent.ts +0 -80
  350. package/packages/orq-rc/src/models/errors/getagenttask.ts +0 -80
  351. package/packages/orq-rc/src/models/errors/getevals.ts +0 -80
  352. package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -80
  353. package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -90
  354. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
  355. package/packages/orq-rc/src/models/errors/index.ts +0 -29
  356. package/packages/orq-rc/src/models/errors/listagenttasks.ts +0 -80
  357. package/packages/orq-rc/src/models/errors/orqerror.ts +0 -35
  358. package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +0 -50
  359. package/packages/orq-rc/src/models/errors/retrievecontact.ts +0 -91
  360. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -109
  361. package/packages/orq-rc/src/models/errors/streamagent.ts +0 -80
  362. package/packages/orq-rc/src/models/errors/streamrunagent.ts +0 -80
  363. package/packages/orq-rc/src/models/errors/updateagent.ts +0 -80
  364. package/packages/orq-rc/src/models/errors/updatecontact.ts +0 -83
  365. package/packages/orq-rc/src/models/errors/updateeval.ts +0 -80
  366. package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -80
  367. package/packages/orq-rc/src/models/errors/updatetool.ts +0 -91
  368. package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -78
  369. package/packages/orq-rc/src/models/operations/createagent.ts +0 -3104
  370. package/packages/orq-rc/src/models/operations/createbudget.ts +0 -745
  371. package/packages/orq-rc/src/models/operations/createchunk.ts +0 -428
  372. package/packages/orq-rc/src/models/operations/createcontact.ts +0 -267
  373. package/packages/orq-rc/src/models/operations/createdataset.ts +0 -302
  374. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +0 -6943
  375. package/packages/orq-rc/src/models/operations/createdatasource.ts +0 -852
  376. package/packages/orq-rc/src/models/operations/createeval.ts +0 -9341
  377. package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -286
  378. package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -1850
  379. package/packages/orq-rc/src/models/operations/creatememory.ts +0 -274
  380. package/packages/orq-rc/src/models/operations/creatememorydocument.ts +0 -287
  381. package/packages/orq-rc/src/models/operations/creatememorystore.ts +0 -2032
  382. package/packages/orq-rc/src/models/operations/createprompt.ts +0 -7812
  383. package/packages/orq-rc/src/models/operations/createtool.ts +0 -4077
  384. package/packages/orq-rc/src/models/operations/deleteagent.ts +0 -78
  385. package/packages/orq-rc/src/models/operations/deletebudget.ts +0 -69
  386. package/packages/orq-rc/src/models/operations/deletechunk.ts +0 -96
  387. package/packages/orq-rc/src/models/operations/deletechunks.ts +0 -243
  388. package/packages/orq-rc/src/models/operations/deletecontact.ts +0 -69
  389. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -87
  390. package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -78
  391. package/packages/orq-rc/src/models/operations/deletedatasource.ts +0 -87
  392. package/packages/orq-rc/src/models/operations/deleteeval.ts +0 -66
  393. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +0 -78
  394. package/packages/orq-rc/src/models/operations/deletememory.ts +0 -87
  395. package/packages/orq-rc/src/models/operations/deletememorydocument.ts +0 -98
  396. package/packages/orq-rc/src/models/operations/deletememorystore.ts +0 -78
  397. package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -69
  398. package/packages/orq-rc/src/models/operations/deletetool.ts +0 -75
  399. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -6547
  400. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -10532
  401. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -1266
  402. package/packages/orq-rc/src/models/operations/deployments.ts +0 -2606
  403. package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -10655
  404. package/packages/orq-rc/src/models/operations/duplicatetool.ts +0 -2349
  405. package/packages/orq-rc/src/models/operations/filedelete.ts +0 -78
  406. package/packages/orq-rc/src/models/operations/fileget.ts +0 -223
  407. package/packages/orq-rc/src/models/operations/filelist.ts +0 -337
  408. package/packages/orq-rc/src/models/operations/fileupload.ts +0 -327
  409. package/packages/orq-rc/src/models/operations/getagent.ts +0 -957
  410. package/packages/orq-rc/src/models/operations/getagenttask.ts +0 -259
  411. package/packages/orq-rc/src/models/operations/getallmemories.ts +0 -318
  412. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +0 -338
  413. package/packages/orq-rc/src/models/operations/getallmemorystores.ts +0 -1277
  414. package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -2572
  415. package/packages/orq-rc/src/models/operations/getalltools.ts +0 -2308
  416. package/packages/orq-rc/src/models/operations/getbudget.ts +0 -441
  417. package/packages/orq-rc/src/models/operations/getchunkscount.ts +0 -230
  418. package/packages/orq-rc/src/models/operations/getevals.ts +0 -7486
  419. package/packages/orq-rc/src/models/operations/getonechunk.ts +0 -315
  420. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +0 -1292
  421. package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -2437
  422. package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -2444
  423. package/packages/orq-rc/src/models/operations/index.ts +0 -102
  424. package/packages/orq-rc/src/models/operations/invokeagent.ts +0 -1569
  425. package/packages/orq-rc/src/models/operations/listactions.ts +0 -526
  426. package/packages/orq-rc/src/models/operations/listagents.ts +0 -1077
  427. package/packages/orq-rc/src/models/operations/listagenttasks.ts +0 -1106
  428. package/packages/orq-rc/src/models/operations/listbudgets.ts +0 -617
  429. package/packages/orq-rc/src/models/operations/listchunks.ts +0 -494
  430. package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +0 -507
  431. package/packages/orq-rc/src/models/operations/listcontacts.ts +0 -500
  432. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +0 -4086
  433. package/packages/orq-rc/src/models/operations/listdatasets.ts +0 -406
  434. package/packages/orq-rc/src/models/operations/listdatasources.ts +0 -454
  435. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +0 -1303
  436. package/packages/orq-rc/src/models/operations/listmodels.ts +0 -273
  437. package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -2580
  438. package/packages/orq-rc/src/models/operations/parse.ts +0 -1295
  439. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -190
  440. package/packages/orq-rc/src/models/operations/retrieveaction.ts +0 -426
  441. package/packages/orq-rc/src/models/operations/retrievecontact.ts +0 -210
  442. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -3853
  443. package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -291
  444. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +0 -273
  445. package/packages/orq-rc/src/models/operations/retrievememory.ts +0 -201
  446. package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +0 -220
  447. package/packages/orq-rc/src/models/operations/retrievememorystore.ts +0 -1160
  448. package/packages/orq-rc/src/models/operations/retrievetool.ts +0 -2333
  449. package/packages/orq-rc/src/models/operations/runagent.ts +0 -4342
  450. package/packages/orq-rc/src/models/operations/searchknowledge.ts +0 -3573
  451. package/packages/orq-rc/src/models/operations/streamagent.ts +0 -1367
  452. package/packages/orq-rc/src/models/operations/streamrunagent.ts +0 -4355
  453. package/packages/orq-rc/src/models/operations/updateagent.ts +0 -3321
  454. package/packages/orq-rc/src/models/operations/updatebudget.ts +0 -628
  455. package/packages/orq-rc/src/models/operations/updatechunk.ts +0 -448
  456. package/packages/orq-rc/src/models/operations/updatecontact.ts +0 -325
  457. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +0 -6934
  458. package/packages/orq-rc/src/models/operations/updatedataset.ts +0 -386
  459. package/packages/orq-rc/src/models/operations/updatedatasource.ts +0 -345
  460. package/packages/orq-rc/src/models/operations/updateeval.ts +0 -9704
  461. package/packages/orq-rc/src/models/operations/updateknowledge.ts +0 -2341
  462. package/packages/orq-rc/src/models/operations/updatememory.ts +0 -283
  463. package/packages/orq-rc/src/models/operations/updatememorydocument.ts +0 -296
  464. package/packages/orq-rc/src/models/operations/updatememorystore.ts +0 -1363
  465. package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -8176
  466. package/packages/orq-rc/src/models/operations/updatetool.ts +0 -4288
  467. package/packages/orq-rc/src/sdk/agents.ts +0 -238
  468. package/packages/orq-rc/src/sdk/budgets.ts +0 -99
  469. package/packages/orq-rc/src/sdk/chunking.ts +0 -27
  470. package/packages/orq-rc/src/sdk/contacts.ts +0 -99
  471. package/packages/orq-rc/src/sdk/datasets.ts +0 -204
  472. package/packages/orq-rc/src/sdk/deployments.ts +0 -89
  473. package/packages/orq-rc/src/sdk/evals.ts +0 -69
  474. package/packages/orq-rc/src/sdk/feedback.ts +0 -27
  475. package/packages/orq-rc/src/sdk/files.ts +0 -78
  476. package/packages/orq-rc/src/sdk/index.ts +0 -5
  477. package/packages/orq-rc/src/sdk/knowledge.ts +0 -309
  478. package/packages/orq-rc/src/sdk/memorystores.ts +0 -286
  479. package/packages/orq-rc/src/sdk/metrics.ts +0 -27
  480. package/packages/orq-rc/src/sdk/models.ts +0 -25
  481. package/packages/orq-rc/src/sdk/prompts.ts +0 -126
  482. package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
  483. package/packages/orq-rc/src/sdk/sdk.ts +0 -97
  484. package/packages/orq-rc/src/sdk/tools.ts +0 -117
  485. package/packages/orq-rc/src/types/async.ts +0 -68
  486. package/packages/orq-rc/src/types/blobs.ts +0 -32
  487. package/packages/orq-rc/src/types/constdatetime.ts +0 -15
  488. package/packages/orq-rc/src/types/enums.ts +0 -16
  489. package/packages/orq-rc/src/types/fp.ts +0 -50
  490. package/packages/orq-rc/src/types/index.ts +0 -11
  491. package/packages/orq-rc/src/types/operations.ts +0 -105
  492. package/packages/orq-rc/src/types/rfcdate.ts +0 -54
  493. package/packages/orq-rc/src/types/streams.ts +0 -21
  494. package/packages/orq-rc/tsconfig.json +0 -41
@@ -1,3853 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
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
- /**
14
- * The unique identifier of the dataset
15
- */
16
- datasetId: string;
17
- /**
18
- * The unique identifier of the datapoint
19
- */
20
- datapointId: string;
21
- };
22
-
23
- /**
24
- * The role of the messages author, in this case tool.
25
- */
26
- export const RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole = {
27
- Tool: "tool",
28
- } as const;
29
- /**
30
- * The role of the messages author, in this case tool.
31
- */
32
- export type RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole =
33
- ClosedEnum<
34
- typeof RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole
35
- >;
36
-
37
- /**
38
- * The contents of the tool message.
39
- */
40
- export type RetrieveDatapointMessagesDatasetsResponseContent =
41
- | string
42
- | Array<string>;
43
-
44
- export type RetrieveDatapointMessagesToolMessage = {
45
- /**
46
- * The role of the messages author, in this case tool.
47
- */
48
- role: RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole;
49
- /**
50
- * The contents of the tool message.
51
- */
52
- content: string | Array<string>;
53
- /**
54
- * Tool call that this message is responding to.
55
- */
56
- toolCallId: string;
57
- };
58
-
59
- /**
60
- * The type of the content part.
61
- */
62
- export const RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType =
63
- {
64
- Refusal: "refusal",
65
- } as const;
66
- /**
67
- * The type of the content part.
68
- */
69
- export type RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType =
70
- ClosedEnum<
71
- typeof RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType
72
- >;
73
-
74
- export type RetrieveDatapoint2RefusalContentPart = {
75
- /**
76
- * The type of the content part.
77
- */
78
- type: RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType;
79
- /**
80
- * The refusal message generated by the model.
81
- */
82
- refusal: string;
83
- };
84
-
85
- /**
86
- * The type of the content part.
87
- */
88
- export const RetrieveDatapoint2DatasetsResponse200ApplicationJSONType = {
89
- Text: "text",
90
- } as const;
91
- /**
92
- * The type of the content part.
93
- */
94
- export type RetrieveDatapoint2DatasetsResponse200ApplicationJSONType =
95
- ClosedEnum<typeof RetrieveDatapoint2DatasetsResponse200ApplicationJSONType>;
96
-
97
- export const RetrieveDatapointAnnotationsDatasetsType = {
98
- FilePath: "file_path",
99
- } as const;
100
- export type RetrieveDatapointAnnotationsDatasetsType = ClosedEnum<
101
- typeof RetrieveDatapointAnnotationsDatasetsType
102
- >;
103
-
104
- export type RetrieveDatapointAnnotationsFilePath = {
105
- fileId: string;
106
- };
107
-
108
- export type RetrieveDatapointAnnotations2 = {
109
- type: RetrieveDatapointAnnotationsDatasetsType;
110
- text: string;
111
- filePath: RetrieveDatapointAnnotationsFilePath;
112
- startIndex: number;
113
- endIndex: number;
114
- };
115
-
116
- export const RetrieveDatapointAnnotationsType = {
117
- FileCitation: "file_citation",
118
- } as const;
119
- export type RetrieveDatapointAnnotationsType = ClosedEnum<
120
- typeof RetrieveDatapointAnnotationsType
121
- >;
122
-
123
- export type RetrieveDatapointAnnotationsFileCitation = {
124
- fileId: string;
125
- quote?: string | undefined;
126
- };
127
-
128
- export type RetrieveDatapointAnnotations1 = {
129
- type: RetrieveDatapointAnnotationsType;
130
- text: string;
131
- fileCitation: RetrieveDatapointAnnotationsFileCitation;
132
- startIndex: number;
133
- endIndex: number;
134
- };
135
-
136
- export type RetrieveDatapoint2Annotations =
137
- | RetrieveDatapointAnnotations1
138
- | RetrieveDatapointAnnotations2;
139
-
140
- export type RetrieveDatapoint2TextContentPart = {
141
- /**
142
- * The type of the content part.
143
- */
144
- type: RetrieveDatapoint2DatasetsResponse200ApplicationJSONType;
145
- /**
146
- * The text content.
147
- */
148
- text: string;
149
- /**
150
- * Annotations for the text content.
151
- */
152
- annotations?:
153
- | Array<RetrieveDatapointAnnotations1 | RetrieveDatapointAnnotations2>
154
- | undefined;
155
- };
156
-
157
- export type RetrieveDatapointContentDatasets2 =
158
- | RetrieveDatapoint2TextContentPart
159
- | RetrieveDatapoint2RefusalContentPart;
160
-
161
- /**
162
- * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
163
- */
164
- export type RetrieveDatapointMessagesDatasetsContent =
165
- | string
166
- | Array<
167
- RetrieveDatapoint2TextContentPart | RetrieveDatapoint2RefusalContentPart
168
- >;
169
-
170
- /**
171
- * The role of the messages author, in this case `assistant`.
172
- */
173
- export const RetrieveDatapointMessagesDatasetsResponse200Role = {
174
- Assistant: "assistant",
175
- } as const;
176
- /**
177
- * The role of the messages author, in this case `assistant`.
178
- */
179
- export type RetrieveDatapointMessagesDatasetsResponse200Role = ClosedEnum<
180
- typeof RetrieveDatapointMessagesDatasetsResponse200Role
181
- >;
182
-
183
- /**
184
- * Data about a previous audio response from the model.
185
- */
186
- export type RetrieveDatapointMessagesAudio = {
187
- /**
188
- * Unique identifier for a previous audio response from the model.
189
- */
190
- id: string;
191
- };
192
-
193
- /**
194
- * The type of the tool. Currently, only `function` is supported.
195
- */
196
- export const RetrieveDatapointMessagesType = {
197
- Function: "function",
198
- } as const;
199
- /**
200
- * The type of the tool. Currently, only `function` is supported.
201
- */
202
- export type RetrieveDatapointMessagesType = ClosedEnum<
203
- typeof RetrieveDatapointMessagesType
204
- >;
205
-
206
- export type RetrieveDatapointMessagesFunction = {
207
- /**
208
- * The name of the function to call.
209
- */
210
- name?: string | undefined;
211
- /**
212
- * 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.
213
- */
214
- arguments?: string | undefined;
215
- };
216
-
217
- export type RetrieveDatapointMessagesToolCalls = {
218
- /**
219
- * The ID of the tool call.
220
- */
221
- id: string;
222
- /**
223
- * The type of the tool. Currently, only `function` is supported.
224
- */
225
- type: RetrieveDatapointMessagesType;
226
- function: RetrieveDatapointMessagesFunction;
227
- };
228
-
229
- export type RetrieveDatapointMessagesAssistantMessage = {
230
- /**
231
- * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
232
- */
233
- content?:
234
- | string
235
- | Array<
236
- RetrieveDatapoint2TextContentPart | RetrieveDatapoint2RefusalContentPart
237
- >
238
- | null
239
- | undefined;
240
- /**
241
- * The refusal message by the assistant.
242
- */
243
- refusal?: string | null | undefined;
244
- /**
245
- * The role of the messages author, in this case `assistant`.
246
- */
247
- role: RetrieveDatapointMessagesDatasetsResponse200Role;
248
- /**
249
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
250
- */
251
- name?: string | undefined;
252
- /**
253
- * Data about a previous audio response from the model.
254
- */
255
- audio?: RetrieveDatapointMessagesAudio | null | undefined;
256
- /**
257
- * The tool calls generated by the model, such as function calls.
258
- */
259
- toolCalls?: Array<RetrieveDatapointMessagesToolCalls> | undefined;
260
- /**
261
- * Internal thought process of the model
262
- */
263
- reasoning?: string | undefined;
264
- /**
265
- * 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`.
266
- */
267
- reasoningSignature?: string | undefined;
268
- /**
269
- * 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.
270
- */
271
- redactedReasoning?: string | undefined;
272
- };
273
-
274
- /**
275
- * The role of the messages author, in this case `user`.
276
- */
277
- export const RetrieveDatapointMessagesDatasetsResponseRole = {
278
- User: "user",
279
- } as const;
280
- /**
281
- * The role of the messages author, in this case `user`.
282
- */
283
- export type RetrieveDatapointMessagesDatasetsResponseRole = ClosedEnum<
284
- typeof RetrieveDatapointMessagesDatasetsResponseRole
285
- >;
286
-
287
- /**
288
- * The type of the content part. Always `file`.
289
- */
290
- export const RetrieveDatapoint2DatasetsResponse200Type = {
291
- File: "file",
292
- } as const;
293
- /**
294
- * The type of the content part. Always `file`.
295
- */
296
- export type RetrieveDatapoint2DatasetsResponse200Type = ClosedEnum<
297
- typeof RetrieveDatapoint2DatasetsResponse200Type
298
- >;
299
-
300
- /**
301
- * File data for the content part. Must contain either file_data or uri, but not both.
302
- */
303
- export type RetrieveDatapoint2File = {
304
- /**
305
- * The file data as a data URI string in the format 'data:<mime-type>;base64,<base64-encoded-data>'. Example: 'data:image/png;base64,iVBORw0KGgoAAAANS...'
306
- */
307
- fileData?: string | undefined;
308
- /**
309
- * URL to the file. Only supported by Anthropic Claude models for PDF files.
310
- */
311
- uri?: string | undefined;
312
- /**
313
- * MIME type of the file (e.g., application/pdf, image/png)
314
- */
315
- mimeType?: string | undefined;
316
- /**
317
- * The name of the file, used when passing the file to the model as a string.
318
- */
319
- filename?: string | undefined;
320
- };
321
-
322
- export type RetrieveDatapoint24 = {
323
- /**
324
- * The type of the content part. Always `file`.
325
- */
326
- type: RetrieveDatapoint2DatasetsResponse200Type;
327
- /**
328
- * File data for the content part. Must contain either file_data or uri, but not both.
329
- */
330
- file: RetrieveDatapoint2File;
331
- };
332
-
333
- export const RetrieveDatapoint2DatasetsResponseType = {
334
- InputAudio: "input_audio",
335
- } as const;
336
- export type RetrieveDatapoint2DatasetsResponseType = ClosedEnum<
337
- typeof RetrieveDatapoint2DatasetsResponseType
338
- >;
339
-
340
- /**
341
- * The format of the encoded audio data. Currently supports `wav` and `mp3`.
342
- */
343
- export const RetrieveDatapoint2Format = {
344
- Mp3: "mp3",
345
- Wav: "wav",
346
- } as const;
347
- /**
348
- * The format of the encoded audio data. Currently supports `wav` and `mp3`.
349
- */
350
- export type RetrieveDatapoint2Format = ClosedEnum<
351
- typeof RetrieveDatapoint2Format
352
- >;
353
-
354
- export type RetrieveDatapoint2InputAudio = {
355
- /**
356
- * Base64 encoded audio data.
357
- */
358
- data: string;
359
- /**
360
- * The format of the encoded audio data. Currently supports `wav` and `mp3`.
361
- */
362
- format: RetrieveDatapoint2Format;
363
- };
364
-
365
- export type RetrieveDatapoint23 = {
366
- type: RetrieveDatapoint2DatasetsResponseType;
367
- inputAudio: RetrieveDatapoint2InputAudio;
368
- };
369
-
370
- export const RetrieveDatapoint2DatasetsType = {
371
- ImageUrl: "image_url",
372
- } as const;
373
- export type RetrieveDatapoint2DatasetsType = ClosedEnum<
374
- typeof RetrieveDatapoint2DatasetsType
375
- >;
376
-
377
- /**
378
- * Specifies the detail level of the image.
379
- */
380
- export const RetrieveDatapoint2Detail = {
381
- Low: "low",
382
- High: "high",
383
- Auto: "auto",
384
- } as const;
385
- /**
386
- * Specifies the detail level of the image.
387
- */
388
- export type RetrieveDatapoint2Detail = ClosedEnum<
389
- typeof RetrieveDatapoint2Detail
390
- >;
391
-
392
- export type RetrieveDatapoint2ImageUrl = {
393
- /**
394
- * Either a URL of the image or the base64 encoded image data.
395
- */
396
- url: string;
397
- /**
398
- * Specifies the detail level of the image.
399
- */
400
- detail?: RetrieveDatapoint2Detail | undefined;
401
- };
402
-
403
- export type RetrieveDatapoint22 = {
404
- type: RetrieveDatapoint2DatasetsType;
405
- imageUrl: RetrieveDatapoint2ImageUrl;
406
- };
407
-
408
- export const RetrieveDatapoint2Type = {
409
- Text: "text",
410
- } as const;
411
- export type RetrieveDatapoint2Type = ClosedEnum<typeof RetrieveDatapoint2Type>;
412
-
413
- export type RetrieveDatapoint21 = {
414
- type: RetrieveDatapoint2Type;
415
- text: string;
416
- };
417
-
418
- export type RetrieveDatapointContent2 =
419
- | RetrieveDatapoint21
420
- | RetrieveDatapoint22
421
- | RetrieveDatapoint23
422
- | RetrieveDatapoint24;
423
-
424
- /**
425
- * The contents of the user message.
426
- */
427
- export type RetrieveDatapointMessagesContent =
428
- | string
429
- | Array<
430
- | RetrieveDatapoint21
431
- | RetrieveDatapoint22
432
- | RetrieveDatapoint23
433
- | RetrieveDatapoint24
434
- >;
435
-
436
- export type RetrieveDatapointMessagesUserMessage = {
437
- /**
438
- * The role of the messages author, in this case `user`.
439
- */
440
- role: RetrieveDatapointMessagesDatasetsResponseRole;
441
- /**
442
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
443
- */
444
- name?: string | undefined;
445
- /**
446
- * The contents of the user message.
447
- */
448
- content:
449
- | string
450
- | Array<
451
- | RetrieveDatapoint21
452
- | RetrieveDatapoint22
453
- | RetrieveDatapoint23
454
- | RetrieveDatapoint24
455
- >;
456
- };
457
-
458
- /**
459
- * The role of the messages author, in this case `system`.
460
- */
461
- export const RetrieveDatapointMessagesDatasetsRole = {
462
- System: "system",
463
- } as const;
464
- /**
465
- * The role of the messages author, in this case `system`.
466
- */
467
- export type RetrieveDatapointMessagesDatasetsRole = ClosedEnum<
468
- typeof RetrieveDatapointMessagesDatasetsRole
469
- >;
470
-
471
- export type RetrieveDatapointMessagesSystemMessage = {
472
- /**
473
- * The role of the messages author, in this case `system`.
474
- */
475
- role: RetrieveDatapointMessagesDatasetsRole;
476
- /**
477
- * The contents of the system message.
478
- */
479
- content: string;
480
- /**
481
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
482
- */
483
- name?: string | undefined;
484
- };
485
-
486
- /**
487
- * The role of the messages author, in this case `developer`.
488
- */
489
- export const RetrieveDatapointMessagesRole = {
490
- Developer: "developer",
491
- } as const;
492
- /**
493
- * The role of the messages author, in this case `developer`.
494
- */
495
- export type RetrieveDatapointMessagesRole = ClosedEnum<
496
- typeof RetrieveDatapointMessagesRole
497
- >;
498
-
499
- export type RetrieveDatapointMessagesDeveloperMessage = {
500
- /**
501
- * The role of the messages author, in this case `developer`.
502
- */
503
- role: RetrieveDatapointMessagesRole;
504
- /**
505
- * The contents of the developer message.
506
- */
507
- content: string;
508
- /**
509
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
510
- */
511
- name?: string | undefined;
512
- };
513
-
514
- export type RetrieveDatapointMessages =
515
- | RetrieveDatapointMessagesToolMessage
516
- | RetrieveDatapointMessagesDeveloperMessage
517
- | RetrieveDatapointMessagesSystemMessage
518
- | RetrieveDatapointMessagesUserMessage
519
- | RetrieveDatapointMessagesAssistantMessage;
520
-
521
- /**
522
- * The type of evaluation
523
- */
524
- export const RetrieveDatapointEvaluationsDatasetsResponseEvaluationType = {
525
- HumanReview: "human_review",
526
- } as const;
527
- /**
528
- * The type of evaluation
529
- */
530
- export type RetrieveDatapointEvaluationsDatasetsResponseEvaluationType =
531
- ClosedEnum<typeof RetrieveDatapointEvaluationsDatasetsResponseEvaluationType>;
532
-
533
- export const RetrieveDatapointEvaluationsDatasetsResponseSource = {
534
- Orq: "orq",
535
- External: "external",
536
- } as const;
537
- export type RetrieveDatapointEvaluationsDatasetsResponseSource = ClosedEnum<
538
- typeof RetrieveDatapointEvaluationsDatasetsResponseSource
539
- >;
540
-
541
- export const RetrieveDatapointEvaluationsDatasetsResponseType = {
542
- StringArray: "string_array",
543
- } as const;
544
- export type RetrieveDatapointEvaluationsDatasetsResponseType = ClosedEnum<
545
- typeof RetrieveDatapointEvaluationsDatasetsResponseType
546
- >;
547
-
548
- export type RetrieveDatapointEvaluations3 = {
549
- /**
550
- * The unique identifier of the human evaluation
551
- */
552
- id: string;
553
- /**
554
- * The type of evaluation
555
- */
556
- evaluationType: RetrieveDatapointEvaluationsDatasetsResponseEvaluationType;
557
- /**
558
- * The unique identifier of the human review
559
- */
560
- humanReviewId: string;
561
- source?: RetrieveDatapointEvaluationsDatasetsResponseSource | undefined;
562
- /**
563
- * The unique identifier of the user who reviewed the item
564
- */
565
- reviewedById: string;
566
- /**
567
- * The date and time the item was reviewed
568
- */
569
- reviewedAt?: Date | undefined;
570
- type: RetrieveDatapointEvaluationsDatasetsResponseType;
571
- values: Array<string>;
572
- };
573
-
574
- /**
575
- * The type of evaluation
576
- */
577
- export const RetrieveDatapointEvaluationsDatasetsEvaluationType = {
578
- HumanReview: "human_review",
579
- } as const;
580
- /**
581
- * The type of evaluation
582
- */
583
- export type RetrieveDatapointEvaluationsDatasetsEvaluationType = ClosedEnum<
584
- typeof RetrieveDatapointEvaluationsDatasetsEvaluationType
585
- >;
586
-
587
- export const RetrieveDatapointEvaluationsDatasetsSource = {
588
- Orq: "orq",
589
- External: "external",
590
- } as const;
591
- export type RetrieveDatapointEvaluationsDatasetsSource = ClosedEnum<
592
- typeof RetrieveDatapointEvaluationsDatasetsSource
593
- >;
594
-
595
- export const RetrieveDatapointEvaluationsDatasetsType = {
596
- Number: "number",
597
- } as const;
598
- export type RetrieveDatapointEvaluationsDatasetsType = ClosedEnum<
599
- typeof RetrieveDatapointEvaluationsDatasetsType
600
- >;
601
-
602
- export type RetrieveDatapointEvaluations2 = {
603
- /**
604
- * The unique identifier of the human evaluation
605
- */
606
- id: string;
607
- /**
608
- * The type of evaluation
609
- */
610
- evaluationType: RetrieveDatapointEvaluationsDatasetsEvaluationType;
611
- /**
612
- * The unique identifier of the human review
613
- */
614
- humanReviewId: string;
615
- source?: RetrieveDatapointEvaluationsDatasetsSource | undefined;
616
- /**
617
- * The unique identifier of the user who reviewed the item
618
- */
619
- reviewedById: string;
620
- /**
621
- * The date and time the item was reviewed
622
- */
623
- reviewedAt?: Date | undefined;
624
- type: RetrieveDatapointEvaluationsDatasetsType;
625
- value: number;
626
- };
627
-
628
- /**
629
- * The type of evaluation
630
- */
631
- export const RetrieveDatapointEvaluationsEvaluationType = {
632
- HumanReview: "human_review",
633
- } as const;
634
- /**
635
- * The type of evaluation
636
- */
637
- export type RetrieveDatapointEvaluationsEvaluationType = ClosedEnum<
638
- typeof RetrieveDatapointEvaluationsEvaluationType
639
- >;
640
-
641
- export const RetrieveDatapointEvaluationsSource = {
642
- Orq: "orq",
643
- External: "external",
644
- } as const;
645
- export type RetrieveDatapointEvaluationsSource = ClosedEnum<
646
- typeof RetrieveDatapointEvaluationsSource
647
- >;
648
-
649
- export const RetrieveDatapointEvaluationsType = {
650
- String: "string",
651
- } as const;
652
- export type RetrieveDatapointEvaluationsType = ClosedEnum<
653
- typeof RetrieveDatapointEvaluationsType
654
- >;
655
-
656
- export type RetrieveDatapointEvaluations1 = {
657
- /**
658
- * The unique identifier of the human evaluation
659
- */
660
- id: string;
661
- /**
662
- * The type of evaluation
663
- */
664
- evaluationType: RetrieveDatapointEvaluationsEvaluationType;
665
- /**
666
- * The unique identifier of the human review
667
- */
668
- humanReviewId: string;
669
- source?: RetrieveDatapointEvaluationsSource | undefined;
670
- /**
671
- * The unique identifier of the user who reviewed the item
672
- */
673
- reviewedById: string;
674
- /**
675
- * The date and time the item was reviewed
676
- */
677
- reviewedAt?: Date | undefined;
678
- type: RetrieveDatapointEvaluationsType;
679
- value: string;
680
- };
681
-
682
- export type RetrieveDatapointEvaluations =
683
- | RetrieveDatapointEvaluations1
684
- | RetrieveDatapointEvaluations2
685
- | RetrieveDatapointEvaluations3;
686
-
687
- /**
688
- * Datapoint retrieved.
689
- */
690
- export type RetrieveDatapointResponseBody = {
691
- /**
692
- * The unique identifier of the dataset item
693
- */
694
- id: string;
695
- /**
696
- * The unique identifier of the workspace it belongs to
697
- */
698
- workspaceId: string;
699
- /**
700
- * 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.
701
- */
702
- inputs?: { [k: string]: any } | undefined;
703
- /**
704
- * A list of messages comprising the conversation so far
705
- */
706
- messages?:
707
- | Array<
708
- | RetrieveDatapointMessagesToolMessage
709
- | RetrieveDatapointMessagesDeveloperMessage
710
- | RetrieveDatapointMessagesSystemMessage
711
- | RetrieveDatapointMessagesUserMessage
712
- | RetrieveDatapointMessagesAssistantMessage
713
- >
714
- | undefined;
715
- expectedOutput?: string | undefined;
716
- /**
717
- * Evaluations associated with the datapoint
718
- */
719
- evaluations?:
720
- | Array<
721
- | RetrieveDatapointEvaluations1
722
- | RetrieveDatapointEvaluations2
723
- | RetrieveDatapointEvaluations3
724
- >
725
- | undefined;
726
- /**
727
- * The unique identifier of the dataset
728
- */
729
- datasetId: string;
730
- /**
731
- * The version of the dataset snapshot
732
- */
733
- snapshotVersion?: string | undefined;
734
- /**
735
- * The unique identifier of the user who created the dataset
736
- */
737
- createdById?: string | undefined;
738
- /**
739
- * The unique identifier of the user who last updated the dataset
740
- */
741
- updatedById?: string | undefined;
742
- /**
743
- * The date and time the resource was created
744
- */
745
- created?: Date | undefined;
746
- /**
747
- * The date and time the resource was last updated
748
- */
749
- updated?: Date | undefined;
750
- };
751
-
752
- /** @internal */
753
- export const RetrieveDatapointRequest$inboundSchema: z.ZodType<
754
- RetrieveDatapointRequest,
755
- z.ZodTypeDef,
756
- unknown
757
- > = z.object({
758
- dataset_id: z.string(),
759
- datapoint_id: z.string(),
760
- }).transform((v) => {
761
- return remap$(v, {
762
- "dataset_id": "datasetId",
763
- "datapoint_id": "datapointId",
764
- });
765
- });
766
-
767
- /** @internal */
768
- export type RetrieveDatapointRequest$Outbound = {
769
- dataset_id: string;
770
- datapoint_id: string;
771
- };
772
-
773
- /** @internal */
774
- export const RetrieveDatapointRequest$outboundSchema: z.ZodType<
775
- RetrieveDatapointRequest$Outbound,
776
- z.ZodTypeDef,
777
- RetrieveDatapointRequest
778
- > = z.object({
779
- datasetId: z.string(),
780
- datapointId: z.string(),
781
- }).transform((v) => {
782
- return remap$(v, {
783
- datasetId: "dataset_id",
784
- datapointId: "datapoint_id",
785
- });
786
- });
787
-
788
- /**
789
- * @internal
790
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
791
- */
792
- export namespace RetrieveDatapointRequest$ {
793
- /** @deprecated use `RetrieveDatapointRequest$inboundSchema` instead. */
794
- export const inboundSchema = RetrieveDatapointRequest$inboundSchema;
795
- /** @deprecated use `RetrieveDatapointRequest$outboundSchema` instead. */
796
- export const outboundSchema = RetrieveDatapointRequest$outboundSchema;
797
- /** @deprecated use `RetrieveDatapointRequest$Outbound` instead. */
798
- export type Outbound = RetrieveDatapointRequest$Outbound;
799
- }
800
-
801
- export function retrieveDatapointRequestToJSON(
802
- retrieveDatapointRequest: RetrieveDatapointRequest,
803
- ): string {
804
- return JSON.stringify(
805
- RetrieveDatapointRequest$outboundSchema.parse(retrieveDatapointRequest),
806
- );
807
- }
808
-
809
- export function retrieveDatapointRequestFromJSON(
810
- jsonString: string,
811
- ): SafeParseResult<RetrieveDatapointRequest, SDKValidationError> {
812
- return safeParse(
813
- jsonString,
814
- (x) => RetrieveDatapointRequest$inboundSchema.parse(JSON.parse(x)),
815
- `Failed to parse 'RetrieveDatapointRequest' from JSON`,
816
- );
817
- }
818
-
819
- /** @internal */
820
- export const RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole$inboundSchema:
821
- z.ZodNativeEnum<
822
- typeof RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole
823
- > = z.nativeEnum(
824
- RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole,
825
- );
826
-
827
- /** @internal */
828
- export const RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole$outboundSchema:
829
- z.ZodNativeEnum<
830
- typeof RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole
831
- > =
832
- RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole$inboundSchema;
833
-
834
- /**
835
- * @internal
836
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
837
- */
838
- export namespace RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole$ {
839
- /** @deprecated use `RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole$inboundSchema` instead. */
840
- export const inboundSchema =
841
- RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole$inboundSchema;
842
- /** @deprecated use `RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole$outboundSchema` instead. */
843
- export const outboundSchema =
844
- RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole$outboundSchema;
845
- }
846
-
847
- /** @internal */
848
- export const RetrieveDatapointMessagesDatasetsResponseContent$inboundSchema:
849
- z.ZodType<
850
- RetrieveDatapointMessagesDatasetsResponseContent,
851
- z.ZodTypeDef,
852
- unknown
853
- > = z.union([z.string(), z.array(z.string())]);
854
-
855
- /** @internal */
856
- export type RetrieveDatapointMessagesDatasetsResponseContent$Outbound =
857
- | string
858
- | Array<string>;
859
-
860
- /** @internal */
861
- export const RetrieveDatapointMessagesDatasetsResponseContent$outboundSchema:
862
- z.ZodType<
863
- RetrieveDatapointMessagesDatasetsResponseContent$Outbound,
864
- z.ZodTypeDef,
865
- RetrieveDatapointMessagesDatasetsResponseContent
866
- > = z.union([z.string(), z.array(z.string())]);
867
-
868
- /**
869
- * @internal
870
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
871
- */
872
- export namespace RetrieveDatapointMessagesDatasetsResponseContent$ {
873
- /** @deprecated use `RetrieveDatapointMessagesDatasetsResponseContent$inboundSchema` instead. */
874
- export const inboundSchema =
875
- RetrieveDatapointMessagesDatasetsResponseContent$inboundSchema;
876
- /** @deprecated use `RetrieveDatapointMessagesDatasetsResponseContent$outboundSchema` instead. */
877
- export const outboundSchema =
878
- RetrieveDatapointMessagesDatasetsResponseContent$outboundSchema;
879
- /** @deprecated use `RetrieveDatapointMessagesDatasetsResponseContent$Outbound` instead. */
880
- export type Outbound =
881
- RetrieveDatapointMessagesDatasetsResponseContent$Outbound;
882
- }
883
-
884
- export function retrieveDatapointMessagesDatasetsResponseContentToJSON(
885
- retrieveDatapointMessagesDatasetsResponseContent:
886
- RetrieveDatapointMessagesDatasetsResponseContent,
887
- ): string {
888
- return JSON.stringify(
889
- RetrieveDatapointMessagesDatasetsResponseContent$outboundSchema.parse(
890
- retrieveDatapointMessagesDatasetsResponseContent,
891
- ),
892
- );
893
- }
894
-
895
- export function retrieveDatapointMessagesDatasetsResponseContentFromJSON(
896
- jsonString: string,
897
- ): SafeParseResult<
898
- RetrieveDatapointMessagesDatasetsResponseContent,
899
- SDKValidationError
900
- > {
901
- return safeParse(
902
- jsonString,
903
- (x) =>
904
- RetrieveDatapointMessagesDatasetsResponseContent$inboundSchema.parse(
905
- JSON.parse(x),
906
- ),
907
- `Failed to parse 'RetrieveDatapointMessagesDatasetsResponseContent' from JSON`,
908
- );
909
- }
910
-
911
- /** @internal */
912
- export const RetrieveDatapointMessagesToolMessage$inboundSchema: z.ZodType<
913
- RetrieveDatapointMessagesToolMessage,
914
- z.ZodTypeDef,
915
- unknown
916
- > = z.object({
917
- role:
918
- RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole$inboundSchema,
919
- content: z.union([z.string(), z.array(z.string())]),
920
- tool_call_id: z.string(),
921
- }).transform((v) => {
922
- return remap$(v, {
923
- "tool_call_id": "toolCallId",
924
- });
925
- });
926
-
927
- /** @internal */
928
- export type RetrieveDatapointMessagesToolMessage$Outbound = {
929
- role: string;
930
- content: string | Array<string>;
931
- tool_call_id: string;
932
- };
933
-
934
- /** @internal */
935
- export const RetrieveDatapointMessagesToolMessage$outboundSchema: z.ZodType<
936
- RetrieveDatapointMessagesToolMessage$Outbound,
937
- z.ZodTypeDef,
938
- RetrieveDatapointMessagesToolMessage
939
- > = z.object({
940
- role:
941
- RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole$outboundSchema,
942
- content: z.union([z.string(), z.array(z.string())]),
943
- toolCallId: z.string(),
944
- }).transform((v) => {
945
- return remap$(v, {
946
- toolCallId: "tool_call_id",
947
- });
948
- });
949
-
950
- /**
951
- * @internal
952
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
953
- */
954
- export namespace RetrieveDatapointMessagesToolMessage$ {
955
- /** @deprecated use `RetrieveDatapointMessagesToolMessage$inboundSchema` instead. */
956
- export const inboundSchema =
957
- RetrieveDatapointMessagesToolMessage$inboundSchema;
958
- /** @deprecated use `RetrieveDatapointMessagesToolMessage$outboundSchema` instead. */
959
- export const outboundSchema =
960
- RetrieveDatapointMessagesToolMessage$outboundSchema;
961
- /** @deprecated use `RetrieveDatapointMessagesToolMessage$Outbound` instead. */
962
- export type Outbound = RetrieveDatapointMessagesToolMessage$Outbound;
963
- }
964
-
965
- export function retrieveDatapointMessagesToolMessageToJSON(
966
- retrieveDatapointMessagesToolMessage: RetrieveDatapointMessagesToolMessage,
967
- ): string {
968
- return JSON.stringify(
969
- RetrieveDatapointMessagesToolMessage$outboundSchema.parse(
970
- retrieveDatapointMessagesToolMessage,
971
- ),
972
- );
973
- }
974
-
975
- export function retrieveDatapointMessagesToolMessageFromJSON(
976
- jsonString: string,
977
- ): SafeParseResult<RetrieveDatapointMessagesToolMessage, SDKValidationError> {
978
- return safeParse(
979
- jsonString,
980
- (x) =>
981
- RetrieveDatapointMessagesToolMessage$inboundSchema.parse(JSON.parse(x)),
982
- `Failed to parse 'RetrieveDatapointMessagesToolMessage' from JSON`,
983
- );
984
- }
985
-
986
- /** @internal */
987
- export const RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$inboundSchema:
988
- z.ZodNativeEnum<
989
- typeof RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType
990
- > = z.nativeEnum(
991
- RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType,
992
- );
993
-
994
- /** @internal */
995
- export const RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$outboundSchema:
996
- z.ZodNativeEnum<
997
- typeof RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType
998
- > =
999
- RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$inboundSchema;
1000
-
1001
- /**
1002
- * @internal
1003
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1004
- */
1005
- export namespace RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$ {
1006
- /** @deprecated use `RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$inboundSchema` instead. */
1007
- export const inboundSchema =
1008
- RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$inboundSchema;
1009
- /** @deprecated use `RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$outboundSchema` instead. */
1010
- export const outboundSchema =
1011
- RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$outboundSchema;
1012
- }
1013
-
1014
- /** @internal */
1015
- export const RetrieveDatapoint2RefusalContentPart$inboundSchema: z.ZodType<
1016
- RetrieveDatapoint2RefusalContentPart,
1017
- z.ZodTypeDef,
1018
- unknown
1019
- > = z.object({
1020
- type:
1021
- RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$inboundSchema,
1022
- refusal: z.string(),
1023
- });
1024
-
1025
- /** @internal */
1026
- export type RetrieveDatapoint2RefusalContentPart$Outbound = {
1027
- type: string;
1028
- refusal: string;
1029
- };
1030
-
1031
- /** @internal */
1032
- export const RetrieveDatapoint2RefusalContentPart$outboundSchema: z.ZodType<
1033
- RetrieveDatapoint2RefusalContentPart$Outbound,
1034
- z.ZodTypeDef,
1035
- RetrieveDatapoint2RefusalContentPart
1036
- > = z.object({
1037
- type:
1038
- RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$outboundSchema,
1039
- refusal: z.string(),
1040
- });
1041
-
1042
- /**
1043
- * @internal
1044
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1045
- */
1046
- export namespace RetrieveDatapoint2RefusalContentPart$ {
1047
- /** @deprecated use `RetrieveDatapoint2RefusalContentPart$inboundSchema` instead. */
1048
- export const inboundSchema =
1049
- RetrieveDatapoint2RefusalContentPart$inboundSchema;
1050
- /** @deprecated use `RetrieveDatapoint2RefusalContentPart$outboundSchema` instead. */
1051
- export const outboundSchema =
1052
- RetrieveDatapoint2RefusalContentPart$outboundSchema;
1053
- /** @deprecated use `RetrieveDatapoint2RefusalContentPart$Outbound` instead. */
1054
- export type Outbound = RetrieveDatapoint2RefusalContentPart$Outbound;
1055
- }
1056
-
1057
- export function retrieveDatapoint2RefusalContentPartToJSON(
1058
- retrieveDatapoint2RefusalContentPart: RetrieveDatapoint2RefusalContentPart,
1059
- ): string {
1060
- return JSON.stringify(
1061
- RetrieveDatapoint2RefusalContentPart$outboundSchema.parse(
1062
- retrieveDatapoint2RefusalContentPart,
1063
- ),
1064
- );
1065
- }
1066
-
1067
- export function retrieveDatapoint2RefusalContentPartFromJSON(
1068
- jsonString: string,
1069
- ): SafeParseResult<RetrieveDatapoint2RefusalContentPart, SDKValidationError> {
1070
- return safeParse(
1071
- jsonString,
1072
- (x) =>
1073
- RetrieveDatapoint2RefusalContentPart$inboundSchema.parse(JSON.parse(x)),
1074
- `Failed to parse 'RetrieveDatapoint2RefusalContentPart' from JSON`,
1075
- );
1076
- }
1077
-
1078
- /** @internal */
1079
- export const RetrieveDatapoint2DatasetsResponse200ApplicationJSONType$inboundSchema:
1080
- z.ZodNativeEnum<
1081
- typeof RetrieveDatapoint2DatasetsResponse200ApplicationJSONType
1082
- > = z.nativeEnum(RetrieveDatapoint2DatasetsResponse200ApplicationJSONType);
1083
-
1084
- /** @internal */
1085
- export const RetrieveDatapoint2DatasetsResponse200ApplicationJSONType$outboundSchema:
1086
- z.ZodNativeEnum<
1087
- typeof RetrieveDatapoint2DatasetsResponse200ApplicationJSONType
1088
- > = RetrieveDatapoint2DatasetsResponse200ApplicationJSONType$inboundSchema;
1089
-
1090
- /**
1091
- * @internal
1092
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1093
- */
1094
- export namespace RetrieveDatapoint2DatasetsResponse200ApplicationJSONType$ {
1095
- /** @deprecated use `RetrieveDatapoint2DatasetsResponse200ApplicationJSONType$inboundSchema` instead. */
1096
- export const inboundSchema =
1097
- RetrieveDatapoint2DatasetsResponse200ApplicationJSONType$inboundSchema;
1098
- /** @deprecated use `RetrieveDatapoint2DatasetsResponse200ApplicationJSONType$outboundSchema` instead. */
1099
- export const outboundSchema =
1100
- RetrieveDatapoint2DatasetsResponse200ApplicationJSONType$outboundSchema;
1101
- }
1102
-
1103
- /** @internal */
1104
- export const RetrieveDatapointAnnotationsDatasetsType$inboundSchema:
1105
- z.ZodNativeEnum<typeof RetrieveDatapointAnnotationsDatasetsType> = z
1106
- .nativeEnum(RetrieveDatapointAnnotationsDatasetsType);
1107
-
1108
- /** @internal */
1109
- export const RetrieveDatapointAnnotationsDatasetsType$outboundSchema:
1110
- z.ZodNativeEnum<typeof RetrieveDatapointAnnotationsDatasetsType> =
1111
- RetrieveDatapointAnnotationsDatasetsType$inboundSchema;
1112
-
1113
- /**
1114
- * @internal
1115
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1116
- */
1117
- export namespace RetrieveDatapointAnnotationsDatasetsType$ {
1118
- /** @deprecated use `RetrieveDatapointAnnotationsDatasetsType$inboundSchema` instead. */
1119
- export const inboundSchema =
1120
- RetrieveDatapointAnnotationsDatasetsType$inboundSchema;
1121
- /** @deprecated use `RetrieveDatapointAnnotationsDatasetsType$outboundSchema` instead. */
1122
- export const outboundSchema =
1123
- RetrieveDatapointAnnotationsDatasetsType$outboundSchema;
1124
- }
1125
-
1126
- /** @internal */
1127
- export const RetrieveDatapointAnnotationsFilePath$inboundSchema: z.ZodType<
1128
- RetrieveDatapointAnnotationsFilePath,
1129
- z.ZodTypeDef,
1130
- unknown
1131
- > = z.object({
1132
- file_id: z.string(),
1133
- }).transform((v) => {
1134
- return remap$(v, {
1135
- "file_id": "fileId",
1136
- });
1137
- });
1138
-
1139
- /** @internal */
1140
- export type RetrieveDatapointAnnotationsFilePath$Outbound = {
1141
- file_id: string;
1142
- };
1143
-
1144
- /** @internal */
1145
- export const RetrieveDatapointAnnotationsFilePath$outboundSchema: z.ZodType<
1146
- RetrieveDatapointAnnotationsFilePath$Outbound,
1147
- z.ZodTypeDef,
1148
- RetrieveDatapointAnnotationsFilePath
1149
- > = z.object({
1150
- fileId: z.string(),
1151
- }).transform((v) => {
1152
- return remap$(v, {
1153
- fileId: "file_id",
1154
- });
1155
- });
1156
-
1157
- /**
1158
- * @internal
1159
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1160
- */
1161
- export namespace RetrieveDatapointAnnotationsFilePath$ {
1162
- /** @deprecated use `RetrieveDatapointAnnotationsFilePath$inboundSchema` instead. */
1163
- export const inboundSchema =
1164
- RetrieveDatapointAnnotationsFilePath$inboundSchema;
1165
- /** @deprecated use `RetrieveDatapointAnnotationsFilePath$outboundSchema` instead. */
1166
- export const outboundSchema =
1167
- RetrieveDatapointAnnotationsFilePath$outboundSchema;
1168
- /** @deprecated use `RetrieveDatapointAnnotationsFilePath$Outbound` instead. */
1169
- export type Outbound = RetrieveDatapointAnnotationsFilePath$Outbound;
1170
- }
1171
-
1172
- export function retrieveDatapointAnnotationsFilePathToJSON(
1173
- retrieveDatapointAnnotationsFilePath: RetrieveDatapointAnnotationsFilePath,
1174
- ): string {
1175
- return JSON.stringify(
1176
- RetrieveDatapointAnnotationsFilePath$outboundSchema.parse(
1177
- retrieveDatapointAnnotationsFilePath,
1178
- ),
1179
- );
1180
- }
1181
-
1182
- export function retrieveDatapointAnnotationsFilePathFromJSON(
1183
- jsonString: string,
1184
- ): SafeParseResult<RetrieveDatapointAnnotationsFilePath, SDKValidationError> {
1185
- return safeParse(
1186
- jsonString,
1187
- (x) =>
1188
- RetrieveDatapointAnnotationsFilePath$inboundSchema.parse(JSON.parse(x)),
1189
- `Failed to parse 'RetrieveDatapointAnnotationsFilePath' from JSON`,
1190
- );
1191
- }
1192
-
1193
- /** @internal */
1194
- export const RetrieveDatapointAnnotations2$inboundSchema: z.ZodType<
1195
- RetrieveDatapointAnnotations2,
1196
- z.ZodTypeDef,
1197
- unknown
1198
- > = z.object({
1199
- type: RetrieveDatapointAnnotationsDatasetsType$inboundSchema,
1200
- text: z.string(),
1201
- file_path: z.lazy(() => RetrieveDatapointAnnotationsFilePath$inboundSchema),
1202
- start_index: z.number().int(),
1203
- end_index: z.number().int(),
1204
- }).transform((v) => {
1205
- return remap$(v, {
1206
- "file_path": "filePath",
1207
- "start_index": "startIndex",
1208
- "end_index": "endIndex",
1209
- });
1210
- });
1211
-
1212
- /** @internal */
1213
- export type RetrieveDatapointAnnotations2$Outbound = {
1214
- type: string;
1215
- text: string;
1216
- file_path: RetrieveDatapointAnnotationsFilePath$Outbound;
1217
- start_index: number;
1218
- end_index: number;
1219
- };
1220
-
1221
- /** @internal */
1222
- export const RetrieveDatapointAnnotations2$outboundSchema: z.ZodType<
1223
- RetrieveDatapointAnnotations2$Outbound,
1224
- z.ZodTypeDef,
1225
- RetrieveDatapointAnnotations2
1226
- > = z.object({
1227
- type: RetrieveDatapointAnnotationsDatasetsType$outboundSchema,
1228
- text: z.string(),
1229
- filePath: z.lazy(() => RetrieveDatapointAnnotationsFilePath$outboundSchema),
1230
- startIndex: z.number().int(),
1231
- endIndex: z.number().int(),
1232
- }).transform((v) => {
1233
- return remap$(v, {
1234
- filePath: "file_path",
1235
- startIndex: "start_index",
1236
- endIndex: "end_index",
1237
- });
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 RetrieveDatapointAnnotations2$ {
1245
- /** @deprecated use `RetrieveDatapointAnnotations2$inboundSchema` instead. */
1246
- export const inboundSchema = RetrieveDatapointAnnotations2$inboundSchema;
1247
- /** @deprecated use `RetrieveDatapointAnnotations2$outboundSchema` instead. */
1248
- export const outboundSchema = RetrieveDatapointAnnotations2$outboundSchema;
1249
- /** @deprecated use `RetrieveDatapointAnnotations2$Outbound` instead. */
1250
- export type Outbound = RetrieveDatapointAnnotations2$Outbound;
1251
- }
1252
-
1253
- export function retrieveDatapointAnnotations2ToJSON(
1254
- retrieveDatapointAnnotations2: RetrieveDatapointAnnotations2,
1255
- ): string {
1256
- return JSON.stringify(
1257
- RetrieveDatapointAnnotations2$outboundSchema.parse(
1258
- retrieveDatapointAnnotations2,
1259
- ),
1260
- );
1261
- }
1262
-
1263
- export function retrieveDatapointAnnotations2FromJSON(
1264
- jsonString: string,
1265
- ): SafeParseResult<RetrieveDatapointAnnotations2, SDKValidationError> {
1266
- return safeParse(
1267
- jsonString,
1268
- (x) => RetrieveDatapointAnnotations2$inboundSchema.parse(JSON.parse(x)),
1269
- `Failed to parse 'RetrieveDatapointAnnotations2' from JSON`,
1270
- );
1271
- }
1272
-
1273
- /** @internal */
1274
- export const RetrieveDatapointAnnotationsType$inboundSchema: z.ZodNativeEnum<
1275
- typeof RetrieveDatapointAnnotationsType
1276
- > = z.nativeEnum(RetrieveDatapointAnnotationsType);
1277
-
1278
- /** @internal */
1279
- export const RetrieveDatapointAnnotationsType$outboundSchema: z.ZodNativeEnum<
1280
- typeof RetrieveDatapointAnnotationsType
1281
- > = RetrieveDatapointAnnotationsType$inboundSchema;
1282
-
1283
- /**
1284
- * @internal
1285
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1286
- */
1287
- export namespace RetrieveDatapointAnnotationsType$ {
1288
- /** @deprecated use `RetrieveDatapointAnnotationsType$inboundSchema` instead. */
1289
- export const inboundSchema = RetrieveDatapointAnnotationsType$inboundSchema;
1290
- /** @deprecated use `RetrieveDatapointAnnotationsType$outboundSchema` instead. */
1291
- export const outboundSchema = RetrieveDatapointAnnotationsType$outboundSchema;
1292
- }
1293
-
1294
- /** @internal */
1295
- export const RetrieveDatapointAnnotationsFileCitation$inboundSchema: z.ZodType<
1296
- RetrieveDatapointAnnotationsFileCitation,
1297
- z.ZodTypeDef,
1298
- unknown
1299
- > = z.object({
1300
- file_id: z.string(),
1301
- quote: z.string().optional(),
1302
- }).transform((v) => {
1303
- return remap$(v, {
1304
- "file_id": "fileId",
1305
- });
1306
- });
1307
-
1308
- /** @internal */
1309
- export type RetrieveDatapointAnnotationsFileCitation$Outbound = {
1310
- file_id: string;
1311
- quote?: string | undefined;
1312
- };
1313
-
1314
- /** @internal */
1315
- export const RetrieveDatapointAnnotationsFileCitation$outboundSchema: z.ZodType<
1316
- RetrieveDatapointAnnotationsFileCitation$Outbound,
1317
- z.ZodTypeDef,
1318
- RetrieveDatapointAnnotationsFileCitation
1319
- > = z.object({
1320
- fileId: z.string(),
1321
- quote: z.string().optional(),
1322
- }).transform((v) => {
1323
- return remap$(v, {
1324
- fileId: "file_id",
1325
- });
1326
- });
1327
-
1328
- /**
1329
- * @internal
1330
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1331
- */
1332
- export namespace RetrieveDatapointAnnotationsFileCitation$ {
1333
- /** @deprecated use `RetrieveDatapointAnnotationsFileCitation$inboundSchema` instead. */
1334
- export const inboundSchema =
1335
- RetrieveDatapointAnnotationsFileCitation$inboundSchema;
1336
- /** @deprecated use `RetrieveDatapointAnnotationsFileCitation$outboundSchema` instead. */
1337
- export const outboundSchema =
1338
- RetrieveDatapointAnnotationsFileCitation$outboundSchema;
1339
- /** @deprecated use `RetrieveDatapointAnnotationsFileCitation$Outbound` instead. */
1340
- export type Outbound = RetrieveDatapointAnnotationsFileCitation$Outbound;
1341
- }
1342
-
1343
- export function retrieveDatapointAnnotationsFileCitationToJSON(
1344
- retrieveDatapointAnnotationsFileCitation:
1345
- RetrieveDatapointAnnotationsFileCitation,
1346
- ): string {
1347
- return JSON.stringify(
1348
- RetrieveDatapointAnnotationsFileCitation$outboundSchema.parse(
1349
- retrieveDatapointAnnotationsFileCitation,
1350
- ),
1351
- );
1352
- }
1353
-
1354
- export function retrieveDatapointAnnotationsFileCitationFromJSON(
1355
- jsonString: string,
1356
- ): SafeParseResult<
1357
- RetrieveDatapointAnnotationsFileCitation,
1358
- SDKValidationError
1359
- > {
1360
- return safeParse(
1361
- jsonString,
1362
- (x) =>
1363
- RetrieveDatapointAnnotationsFileCitation$inboundSchema.parse(
1364
- JSON.parse(x),
1365
- ),
1366
- `Failed to parse 'RetrieveDatapointAnnotationsFileCitation' from JSON`,
1367
- );
1368
- }
1369
-
1370
- /** @internal */
1371
- export const RetrieveDatapointAnnotations1$inboundSchema: z.ZodType<
1372
- RetrieveDatapointAnnotations1,
1373
- z.ZodTypeDef,
1374
- unknown
1375
- > = z.object({
1376
- type: RetrieveDatapointAnnotationsType$inboundSchema,
1377
- text: z.string(),
1378
- file_citation: z.lazy(() =>
1379
- RetrieveDatapointAnnotationsFileCitation$inboundSchema
1380
- ),
1381
- start_index: z.number().int(),
1382
- end_index: z.number().int(),
1383
- }).transform((v) => {
1384
- return remap$(v, {
1385
- "file_citation": "fileCitation",
1386
- "start_index": "startIndex",
1387
- "end_index": "endIndex",
1388
- });
1389
- });
1390
-
1391
- /** @internal */
1392
- export type RetrieveDatapointAnnotations1$Outbound = {
1393
- type: string;
1394
- text: string;
1395
- file_citation: RetrieveDatapointAnnotationsFileCitation$Outbound;
1396
- start_index: number;
1397
- end_index: number;
1398
- };
1399
-
1400
- /** @internal */
1401
- export const RetrieveDatapointAnnotations1$outboundSchema: z.ZodType<
1402
- RetrieveDatapointAnnotations1$Outbound,
1403
- z.ZodTypeDef,
1404
- RetrieveDatapointAnnotations1
1405
- > = z.object({
1406
- type: RetrieveDatapointAnnotationsType$outboundSchema,
1407
- text: z.string(),
1408
- fileCitation: z.lazy(() =>
1409
- RetrieveDatapointAnnotationsFileCitation$outboundSchema
1410
- ),
1411
- startIndex: z.number().int(),
1412
- endIndex: z.number().int(),
1413
- }).transform((v) => {
1414
- return remap$(v, {
1415
- fileCitation: "file_citation",
1416
- startIndex: "start_index",
1417
- endIndex: "end_index",
1418
- });
1419
- });
1420
-
1421
- /**
1422
- * @internal
1423
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1424
- */
1425
- export namespace RetrieveDatapointAnnotations1$ {
1426
- /** @deprecated use `RetrieveDatapointAnnotations1$inboundSchema` instead. */
1427
- export const inboundSchema = RetrieveDatapointAnnotations1$inboundSchema;
1428
- /** @deprecated use `RetrieveDatapointAnnotations1$outboundSchema` instead. */
1429
- export const outboundSchema = RetrieveDatapointAnnotations1$outboundSchema;
1430
- /** @deprecated use `RetrieveDatapointAnnotations1$Outbound` instead. */
1431
- export type Outbound = RetrieveDatapointAnnotations1$Outbound;
1432
- }
1433
-
1434
- export function retrieveDatapointAnnotations1ToJSON(
1435
- retrieveDatapointAnnotations1: RetrieveDatapointAnnotations1,
1436
- ): string {
1437
- return JSON.stringify(
1438
- RetrieveDatapointAnnotations1$outboundSchema.parse(
1439
- retrieveDatapointAnnotations1,
1440
- ),
1441
- );
1442
- }
1443
-
1444
- export function retrieveDatapointAnnotations1FromJSON(
1445
- jsonString: string,
1446
- ): SafeParseResult<RetrieveDatapointAnnotations1, SDKValidationError> {
1447
- return safeParse(
1448
- jsonString,
1449
- (x) => RetrieveDatapointAnnotations1$inboundSchema.parse(JSON.parse(x)),
1450
- `Failed to parse 'RetrieveDatapointAnnotations1' from JSON`,
1451
- );
1452
- }
1453
-
1454
- /** @internal */
1455
- export const RetrieveDatapoint2Annotations$inboundSchema: z.ZodType<
1456
- RetrieveDatapoint2Annotations,
1457
- z.ZodTypeDef,
1458
- unknown
1459
- > = z.union([
1460
- z.lazy(() => RetrieveDatapointAnnotations1$inboundSchema),
1461
- z.lazy(() => RetrieveDatapointAnnotations2$inboundSchema),
1462
- ]);
1463
-
1464
- /** @internal */
1465
- export type RetrieveDatapoint2Annotations$Outbound =
1466
- | RetrieveDatapointAnnotations1$Outbound
1467
- | RetrieveDatapointAnnotations2$Outbound;
1468
-
1469
- /** @internal */
1470
- export const RetrieveDatapoint2Annotations$outboundSchema: z.ZodType<
1471
- RetrieveDatapoint2Annotations$Outbound,
1472
- z.ZodTypeDef,
1473
- RetrieveDatapoint2Annotations
1474
- > = z.union([
1475
- z.lazy(() => RetrieveDatapointAnnotations1$outboundSchema),
1476
- z.lazy(() => RetrieveDatapointAnnotations2$outboundSchema),
1477
- ]);
1478
-
1479
- /**
1480
- * @internal
1481
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1482
- */
1483
- export namespace RetrieveDatapoint2Annotations$ {
1484
- /** @deprecated use `RetrieveDatapoint2Annotations$inboundSchema` instead. */
1485
- export const inboundSchema = RetrieveDatapoint2Annotations$inboundSchema;
1486
- /** @deprecated use `RetrieveDatapoint2Annotations$outboundSchema` instead. */
1487
- export const outboundSchema = RetrieveDatapoint2Annotations$outboundSchema;
1488
- /** @deprecated use `RetrieveDatapoint2Annotations$Outbound` instead. */
1489
- export type Outbound = RetrieveDatapoint2Annotations$Outbound;
1490
- }
1491
-
1492
- export function retrieveDatapoint2AnnotationsToJSON(
1493
- retrieveDatapoint2Annotations: RetrieveDatapoint2Annotations,
1494
- ): string {
1495
- return JSON.stringify(
1496
- RetrieveDatapoint2Annotations$outboundSchema.parse(
1497
- retrieveDatapoint2Annotations,
1498
- ),
1499
- );
1500
- }
1501
-
1502
- export function retrieveDatapoint2AnnotationsFromJSON(
1503
- jsonString: string,
1504
- ): SafeParseResult<RetrieveDatapoint2Annotations, SDKValidationError> {
1505
- return safeParse(
1506
- jsonString,
1507
- (x) => RetrieveDatapoint2Annotations$inboundSchema.parse(JSON.parse(x)),
1508
- `Failed to parse 'RetrieveDatapoint2Annotations' from JSON`,
1509
- );
1510
- }
1511
-
1512
- /** @internal */
1513
- export const RetrieveDatapoint2TextContentPart$inboundSchema: z.ZodType<
1514
- RetrieveDatapoint2TextContentPart,
1515
- z.ZodTypeDef,
1516
- unknown
1517
- > = z.object({
1518
- type: RetrieveDatapoint2DatasetsResponse200ApplicationJSONType$inboundSchema,
1519
- text: z.string(),
1520
- annotations: z.array(
1521
- z.union([
1522
- z.lazy(() => RetrieveDatapointAnnotations1$inboundSchema),
1523
- z.lazy(() => RetrieveDatapointAnnotations2$inboundSchema),
1524
- ]),
1525
- ).optional(),
1526
- });
1527
-
1528
- /** @internal */
1529
- export type RetrieveDatapoint2TextContentPart$Outbound = {
1530
- type: string;
1531
- text: string;
1532
- annotations?:
1533
- | Array<
1534
- | RetrieveDatapointAnnotations1$Outbound
1535
- | RetrieveDatapointAnnotations2$Outbound
1536
- >
1537
- | undefined;
1538
- };
1539
-
1540
- /** @internal */
1541
- export const RetrieveDatapoint2TextContentPart$outboundSchema: z.ZodType<
1542
- RetrieveDatapoint2TextContentPart$Outbound,
1543
- z.ZodTypeDef,
1544
- RetrieveDatapoint2TextContentPart
1545
- > = z.object({
1546
- type: RetrieveDatapoint2DatasetsResponse200ApplicationJSONType$outboundSchema,
1547
- text: z.string(),
1548
- annotations: z.array(
1549
- z.union([
1550
- z.lazy(() => RetrieveDatapointAnnotations1$outboundSchema),
1551
- z.lazy(() => RetrieveDatapointAnnotations2$outboundSchema),
1552
- ]),
1553
- ).optional(),
1554
- });
1555
-
1556
- /**
1557
- * @internal
1558
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1559
- */
1560
- export namespace RetrieveDatapoint2TextContentPart$ {
1561
- /** @deprecated use `RetrieveDatapoint2TextContentPart$inboundSchema` instead. */
1562
- export const inboundSchema = RetrieveDatapoint2TextContentPart$inboundSchema;
1563
- /** @deprecated use `RetrieveDatapoint2TextContentPart$outboundSchema` instead. */
1564
- export const outboundSchema =
1565
- RetrieveDatapoint2TextContentPart$outboundSchema;
1566
- /** @deprecated use `RetrieveDatapoint2TextContentPart$Outbound` instead. */
1567
- export type Outbound = RetrieveDatapoint2TextContentPart$Outbound;
1568
- }
1569
-
1570
- export function retrieveDatapoint2TextContentPartToJSON(
1571
- retrieveDatapoint2TextContentPart: RetrieveDatapoint2TextContentPart,
1572
- ): string {
1573
- return JSON.stringify(
1574
- RetrieveDatapoint2TextContentPart$outboundSchema.parse(
1575
- retrieveDatapoint2TextContentPart,
1576
- ),
1577
- );
1578
- }
1579
-
1580
- export function retrieveDatapoint2TextContentPartFromJSON(
1581
- jsonString: string,
1582
- ): SafeParseResult<RetrieveDatapoint2TextContentPart, SDKValidationError> {
1583
- return safeParse(
1584
- jsonString,
1585
- (x) => RetrieveDatapoint2TextContentPart$inboundSchema.parse(JSON.parse(x)),
1586
- `Failed to parse 'RetrieveDatapoint2TextContentPart' from JSON`,
1587
- );
1588
- }
1589
-
1590
- /** @internal */
1591
- export const RetrieveDatapointContentDatasets2$inboundSchema: z.ZodType<
1592
- RetrieveDatapointContentDatasets2,
1593
- z.ZodTypeDef,
1594
- unknown
1595
- > = z.union([
1596
- z.lazy(() => RetrieveDatapoint2TextContentPart$inboundSchema),
1597
- z.lazy(() => RetrieveDatapoint2RefusalContentPart$inboundSchema),
1598
- ]);
1599
-
1600
- /** @internal */
1601
- export type RetrieveDatapointContentDatasets2$Outbound =
1602
- | RetrieveDatapoint2TextContentPart$Outbound
1603
- | RetrieveDatapoint2RefusalContentPart$Outbound;
1604
-
1605
- /** @internal */
1606
- export const RetrieveDatapointContentDatasets2$outboundSchema: z.ZodType<
1607
- RetrieveDatapointContentDatasets2$Outbound,
1608
- z.ZodTypeDef,
1609
- RetrieveDatapointContentDatasets2
1610
- > = z.union([
1611
- z.lazy(() => RetrieveDatapoint2TextContentPart$outboundSchema),
1612
- z.lazy(() => RetrieveDatapoint2RefusalContentPart$outboundSchema),
1613
- ]);
1614
-
1615
- /**
1616
- * @internal
1617
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1618
- */
1619
- export namespace RetrieveDatapointContentDatasets2$ {
1620
- /** @deprecated use `RetrieveDatapointContentDatasets2$inboundSchema` instead. */
1621
- export const inboundSchema = RetrieveDatapointContentDatasets2$inboundSchema;
1622
- /** @deprecated use `RetrieveDatapointContentDatasets2$outboundSchema` instead. */
1623
- export const outboundSchema =
1624
- RetrieveDatapointContentDatasets2$outboundSchema;
1625
- /** @deprecated use `RetrieveDatapointContentDatasets2$Outbound` instead. */
1626
- export type Outbound = RetrieveDatapointContentDatasets2$Outbound;
1627
- }
1628
-
1629
- export function retrieveDatapointContentDatasets2ToJSON(
1630
- retrieveDatapointContentDatasets2: RetrieveDatapointContentDatasets2,
1631
- ): string {
1632
- return JSON.stringify(
1633
- RetrieveDatapointContentDatasets2$outboundSchema.parse(
1634
- retrieveDatapointContentDatasets2,
1635
- ),
1636
- );
1637
- }
1638
-
1639
- export function retrieveDatapointContentDatasets2FromJSON(
1640
- jsonString: string,
1641
- ): SafeParseResult<RetrieveDatapointContentDatasets2, SDKValidationError> {
1642
- return safeParse(
1643
- jsonString,
1644
- (x) => RetrieveDatapointContentDatasets2$inboundSchema.parse(JSON.parse(x)),
1645
- `Failed to parse 'RetrieveDatapointContentDatasets2' from JSON`,
1646
- );
1647
- }
1648
-
1649
- /** @internal */
1650
- export const RetrieveDatapointMessagesDatasetsContent$inboundSchema: z.ZodType<
1651
- RetrieveDatapointMessagesDatasetsContent,
1652
- z.ZodTypeDef,
1653
- unknown
1654
- > = z.union([
1655
- z.string(),
1656
- z.array(z.union([
1657
- z.lazy(() => RetrieveDatapoint2TextContentPart$inboundSchema),
1658
- z.lazy(() => RetrieveDatapoint2RefusalContentPart$inboundSchema),
1659
- ])),
1660
- ]);
1661
-
1662
- /** @internal */
1663
- export type RetrieveDatapointMessagesDatasetsContent$Outbound =
1664
- | string
1665
- | Array<
1666
- | RetrieveDatapoint2TextContentPart$Outbound
1667
- | RetrieveDatapoint2RefusalContentPart$Outbound
1668
- >;
1669
-
1670
- /** @internal */
1671
- export const RetrieveDatapointMessagesDatasetsContent$outboundSchema: z.ZodType<
1672
- RetrieveDatapointMessagesDatasetsContent$Outbound,
1673
- z.ZodTypeDef,
1674
- RetrieveDatapointMessagesDatasetsContent
1675
- > = z.union([
1676
- z.string(),
1677
- z.array(z.union([
1678
- z.lazy(() => RetrieveDatapoint2TextContentPart$outboundSchema),
1679
- z.lazy(() => RetrieveDatapoint2RefusalContentPart$outboundSchema),
1680
- ])),
1681
- ]);
1682
-
1683
- /**
1684
- * @internal
1685
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1686
- */
1687
- export namespace RetrieveDatapointMessagesDatasetsContent$ {
1688
- /** @deprecated use `RetrieveDatapointMessagesDatasetsContent$inboundSchema` instead. */
1689
- export const inboundSchema =
1690
- RetrieveDatapointMessagesDatasetsContent$inboundSchema;
1691
- /** @deprecated use `RetrieveDatapointMessagesDatasetsContent$outboundSchema` instead. */
1692
- export const outboundSchema =
1693
- RetrieveDatapointMessagesDatasetsContent$outboundSchema;
1694
- /** @deprecated use `RetrieveDatapointMessagesDatasetsContent$Outbound` instead. */
1695
- export type Outbound = RetrieveDatapointMessagesDatasetsContent$Outbound;
1696
- }
1697
-
1698
- export function retrieveDatapointMessagesDatasetsContentToJSON(
1699
- retrieveDatapointMessagesDatasetsContent:
1700
- RetrieveDatapointMessagesDatasetsContent,
1701
- ): string {
1702
- return JSON.stringify(
1703
- RetrieveDatapointMessagesDatasetsContent$outboundSchema.parse(
1704
- retrieveDatapointMessagesDatasetsContent,
1705
- ),
1706
- );
1707
- }
1708
-
1709
- export function retrieveDatapointMessagesDatasetsContentFromJSON(
1710
- jsonString: string,
1711
- ): SafeParseResult<
1712
- RetrieveDatapointMessagesDatasetsContent,
1713
- SDKValidationError
1714
- > {
1715
- return safeParse(
1716
- jsonString,
1717
- (x) =>
1718
- RetrieveDatapointMessagesDatasetsContent$inboundSchema.parse(
1719
- JSON.parse(x),
1720
- ),
1721
- `Failed to parse 'RetrieveDatapointMessagesDatasetsContent' from JSON`,
1722
- );
1723
- }
1724
-
1725
- /** @internal */
1726
- export const RetrieveDatapointMessagesDatasetsResponse200Role$inboundSchema:
1727
- z.ZodNativeEnum<typeof RetrieveDatapointMessagesDatasetsResponse200Role> = z
1728
- .nativeEnum(RetrieveDatapointMessagesDatasetsResponse200Role);
1729
-
1730
- /** @internal */
1731
- export const RetrieveDatapointMessagesDatasetsResponse200Role$outboundSchema:
1732
- z.ZodNativeEnum<typeof RetrieveDatapointMessagesDatasetsResponse200Role> =
1733
- RetrieveDatapointMessagesDatasetsResponse200Role$inboundSchema;
1734
-
1735
- /**
1736
- * @internal
1737
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1738
- */
1739
- export namespace RetrieveDatapointMessagesDatasetsResponse200Role$ {
1740
- /** @deprecated use `RetrieveDatapointMessagesDatasetsResponse200Role$inboundSchema` instead. */
1741
- export const inboundSchema =
1742
- RetrieveDatapointMessagesDatasetsResponse200Role$inboundSchema;
1743
- /** @deprecated use `RetrieveDatapointMessagesDatasetsResponse200Role$outboundSchema` instead. */
1744
- export const outboundSchema =
1745
- RetrieveDatapointMessagesDatasetsResponse200Role$outboundSchema;
1746
- }
1747
-
1748
- /** @internal */
1749
- export const RetrieveDatapointMessagesAudio$inboundSchema: z.ZodType<
1750
- RetrieveDatapointMessagesAudio,
1751
- z.ZodTypeDef,
1752
- unknown
1753
- > = z.object({
1754
- id: z.string(),
1755
- });
1756
-
1757
- /** @internal */
1758
- export type RetrieveDatapointMessagesAudio$Outbound = {
1759
- id: string;
1760
- };
1761
-
1762
- /** @internal */
1763
- export const RetrieveDatapointMessagesAudio$outboundSchema: z.ZodType<
1764
- RetrieveDatapointMessagesAudio$Outbound,
1765
- z.ZodTypeDef,
1766
- RetrieveDatapointMessagesAudio
1767
- > = z.object({
1768
- id: z.string(),
1769
- });
1770
-
1771
- /**
1772
- * @internal
1773
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1774
- */
1775
- export namespace RetrieveDatapointMessagesAudio$ {
1776
- /** @deprecated use `RetrieveDatapointMessagesAudio$inboundSchema` instead. */
1777
- export const inboundSchema = RetrieveDatapointMessagesAudio$inboundSchema;
1778
- /** @deprecated use `RetrieveDatapointMessagesAudio$outboundSchema` instead. */
1779
- export const outboundSchema = RetrieveDatapointMessagesAudio$outboundSchema;
1780
- /** @deprecated use `RetrieveDatapointMessagesAudio$Outbound` instead. */
1781
- export type Outbound = RetrieveDatapointMessagesAudio$Outbound;
1782
- }
1783
-
1784
- export function retrieveDatapointMessagesAudioToJSON(
1785
- retrieveDatapointMessagesAudio: RetrieveDatapointMessagesAudio,
1786
- ): string {
1787
- return JSON.stringify(
1788
- RetrieveDatapointMessagesAudio$outboundSchema.parse(
1789
- retrieveDatapointMessagesAudio,
1790
- ),
1791
- );
1792
- }
1793
-
1794
- export function retrieveDatapointMessagesAudioFromJSON(
1795
- jsonString: string,
1796
- ): SafeParseResult<RetrieveDatapointMessagesAudio, SDKValidationError> {
1797
- return safeParse(
1798
- jsonString,
1799
- (x) => RetrieveDatapointMessagesAudio$inboundSchema.parse(JSON.parse(x)),
1800
- `Failed to parse 'RetrieveDatapointMessagesAudio' from JSON`,
1801
- );
1802
- }
1803
-
1804
- /** @internal */
1805
- export const RetrieveDatapointMessagesType$inboundSchema: z.ZodNativeEnum<
1806
- typeof RetrieveDatapointMessagesType
1807
- > = z.nativeEnum(RetrieveDatapointMessagesType);
1808
-
1809
- /** @internal */
1810
- export const RetrieveDatapointMessagesType$outboundSchema: z.ZodNativeEnum<
1811
- typeof RetrieveDatapointMessagesType
1812
- > = RetrieveDatapointMessagesType$inboundSchema;
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 RetrieveDatapointMessagesType$ {
1819
- /** @deprecated use `RetrieveDatapointMessagesType$inboundSchema` instead. */
1820
- export const inboundSchema = RetrieveDatapointMessagesType$inboundSchema;
1821
- /** @deprecated use `RetrieveDatapointMessagesType$outboundSchema` instead. */
1822
- export const outboundSchema = RetrieveDatapointMessagesType$outboundSchema;
1823
- }
1824
-
1825
- /** @internal */
1826
- export const RetrieveDatapointMessagesFunction$inboundSchema: z.ZodType<
1827
- RetrieveDatapointMessagesFunction,
1828
- z.ZodTypeDef,
1829
- unknown
1830
- > = z.object({
1831
- name: z.string().optional(),
1832
- arguments: z.string().optional(),
1833
- });
1834
-
1835
- /** @internal */
1836
- export type RetrieveDatapointMessagesFunction$Outbound = {
1837
- name?: string | undefined;
1838
- arguments?: string | undefined;
1839
- };
1840
-
1841
- /** @internal */
1842
- export const RetrieveDatapointMessagesFunction$outboundSchema: z.ZodType<
1843
- RetrieveDatapointMessagesFunction$Outbound,
1844
- z.ZodTypeDef,
1845
- RetrieveDatapointMessagesFunction
1846
- > = z.object({
1847
- name: z.string().optional(),
1848
- arguments: z.string().optional(),
1849
- });
1850
-
1851
- /**
1852
- * @internal
1853
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1854
- */
1855
- export namespace RetrieveDatapointMessagesFunction$ {
1856
- /** @deprecated use `RetrieveDatapointMessagesFunction$inboundSchema` instead. */
1857
- export const inboundSchema = RetrieveDatapointMessagesFunction$inboundSchema;
1858
- /** @deprecated use `RetrieveDatapointMessagesFunction$outboundSchema` instead. */
1859
- export const outboundSchema =
1860
- RetrieveDatapointMessagesFunction$outboundSchema;
1861
- /** @deprecated use `RetrieveDatapointMessagesFunction$Outbound` instead. */
1862
- export type Outbound = RetrieveDatapointMessagesFunction$Outbound;
1863
- }
1864
-
1865
- export function retrieveDatapointMessagesFunctionToJSON(
1866
- retrieveDatapointMessagesFunction: RetrieveDatapointMessagesFunction,
1867
- ): string {
1868
- return JSON.stringify(
1869
- RetrieveDatapointMessagesFunction$outboundSchema.parse(
1870
- retrieveDatapointMessagesFunction,
1871
- ),
1872
- );
1873
- }
1874
-
1875
- export function retrieveDatapointMessagesFunctionFromJSON(
1876
- jsonString: string,
1877
- ): SafeParseResult<RetrieveDatapointMessagesFunction, SDKValidationError> {
1878
- return safeParse(
1879
- jsonString,
1880
- (x) => RetrieveDatapointMessagesFunction$inboundSchema.parse(JSON.parse(x)),
1881
- `Failed to parse 'RetrieveDatapointMessagesFunction' from JSON`,
1882
- );
1883
- }
1884
-
1885
- /** @internal */
1886
- export const RetrieveDatapointMessagesToolCalls$inboundSchema: z.ZodType<
1887
- RetrieveDatapointMessagesToolCalls,
1888
- z.ZodTypeDef,
1889
- unknown
1890
- > = z.object({
1891
- id: z.string(),
1892
- type: RetrieveDatapointMessagesType$inboundSchema,
1893
- function: z.lazy(() => RetrieveDatapointMessagesFunction$inboundSchema),
1894
- });
1895
-
1896
- /** @internal */
1897
- export type RetrieveDatapointMessagesToolCalls$Outbound = {
1898
- id: string;
1899
- type: string;
1900
- function: RetrieveDatapointMessagesFunction$Outbound;
1901
- };
1902
-
1903
- /** @internal */
1904
- export const RetrieveDatapointMessagesToolCalls$outboundSchema: z.ZodType<
1905
- RetrieveDatapointMessagesToolCalls$Outbound,
1906
- z.ZodTypeDef,
1907
- RetrieveDatapointMessagesToolCalls
1908
- > = z.object({
1909
- id: z.string(),
1910
- type: RetrieveDatapointMessagesType$outboundSchema,
1911
- function: z.lazy(() => RetrieveDatapointMessagesFunction$outboundSchema),
1912
- });
1913
-
1914
- /**
1915
- * @internal
1916
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1917
- */
1918
- export namespace RetrieveDatapointMessagesToolCalls$ {
1919
- /** @deprecated use `RetrieveDatapointMessagesToolCalls$inboundSchema` instead. */
1920
- export const inboundSchema = RetrieveDatapointMessagesToolCalls$inboundSchema;
1921
- /** @deprecated use `RetrieveDatapointMessagesToolCalls$outboundSchema` instead. */
1922
- export const outboundSchema =
1923
- RetrieveDatapointMessagesToolCalls$outboundSchema;
1924
- /** @deprecated use `RetrieveDatapointMessagesToolCalls$Outbound` instead. */
1925
- export type Outbound = RetrieveDatapointMessagesToolCalls$Outbound;
1926
- }
1927
-
1928
- export function retrieveDatapointMessagesToolCallsToJSON(
1929
- retrieveDatapointMessagesToolCalls: RetrieveDatapointMessagesToolCalls,
1930
- ): string {
1931
- return JSON.stringify(
1932
- RetrieveDatapointMessagesToolCalls$outboundSchema.parse(
1933
- retrieveDatapointMessagesToolCalls,
1934
- ),
1935
- );
1936
- }
1937
-
1938
- export function retrieveDatapointMessagesToolCallsFromJSON(
1939
- jsonString: string,
1940
- ): SafeParseResult<RetrieveDatapointMessagesToolCalls, SDKValidationError> {
1941
- return safeParse(
1942
- jsonString,
1943
- (x) =>
1944
- RetrieveDatapointMessagesToolCalls$inboundSchema.parse(JSON.parse(x)),
1945
- `Failed to parse 'RetrieveDatapointMessagesToolCalls' from JSON`,
1946
- );
1947
- }
1948
-
1949
- /** @internal */
1950
- export const RetrieveDatapointMessagesAssistantMessage$inboundSchema: z.ZodType<
1951
- RetrieveDatapointMessagesAssistantMessage,
1952
- z.ZodTypeDef,
1953
- unknown
1954
- > = z.object({
1955
- content: z.nullable(
1956
- z.union([
1957
- z.string(),
1958
- z.array(
1959
- z.union([
1960
- z.lazy(() => RetrieveDatapoint2TextContentPart$inboundSchema),
1961
- z.lazy(() => RetrieveDatapoint2RefusalContentPart$inboundSchema),
1962
- ]),
1963
- ),
1964
- ]),
1965
- ).optional(),
1966
- refusal: z.nullable(z.string()).optional(),
1967
- role: RetrieveDatapointMessagesDatasetsResponse200Role$inboundSchema,
1968
- name: z.string().optional(),
1969
- audio: z.nullable(z.lazy(() => RetrieveDatapointMessagesAudio$inboundSchema))
1970
- .optional(),
1971
- tool_calls: z.array(
1972
- z.lazy(() => RetrieveDatapointMessagesToolCalls$inboundSchema),
1973
- ).optional(),
1974
- reasoning: z.string().optional(),
1975
- reasoning_signature: z.string().optional(),
1976
- redacted_reasoning: z.string().optional(),
1977
- }).transform((v) => {
1978
- return remap$(v, {
1979
- "tool_calls": "toolCalls",
1980
- "reasoning_signature": "reasoningSignature",
1981
- "redacted_reasoning": "redactedReasoning",
1982
- });
1983
- });
1984
-
1985
- /** @internal */
1986
- export type RetrieveDatapointMessagesAssistantMessage$Outbound = {
1987
- content?:
1988
- | string
1989
- | Array<
1990
- | RetrieveDatapoint2TextContentPart$Outbound
1991
- | RetrieveDatapoint2RefusalContentPart$Outbound
1992
- >
1993
- | null
1994
- | undefined;
1995
- refusal?: string | null | undefined;
1996
- role: string;
1997
- name?: string | undefined;
1998
- audio?: RetrieveDatapointMessagesAudio$Outbound | null | undefined;
1999
- tool_calls?: Array<RetrieveDatapointMessagesToolCalls$Outbound> | undefined;
2000
- reasoning?: string | undefined;
2001
- reasoning_signature?: string | undefined;
2002
- redacted_reasoning?: string | undefined;
2003
- };
2004
-
2005
- /** @internal */
2006
- export const RetrieveDatapointMessagesAssistantMessage$outboundSchema:
2007
- z.ZodType<
2008
- RetrieveDatapointMessagesAssistantMessage$Outbound,
2009
- z.ZodTypeDef,
2010
- RetrieveDatapointMessagesAssistantMessage
2011
- > = z.object({
2012
- content: z.nullable(
2013
- z.union([
2014
- z.string(),
2015
- z.array(
2016
- z.union([
2017
- z.lazy(() => RetrieveDatapoint2TextContentPart$outboundSchema),
2018
- z.lazy(() => RetrieveDatapoint2RefusalContentPart$outboundSchema),
2019
- ]),
2020
- ),
2021
- ]),
2022
- ).optional(),
2023
- refusal: z.nullable(z.string()).optional(),
2024
- role: RetrieveDatapointMessagesDatasetsResponse200Role$outboundSchema,
2025
- name: z.string().optional(),
2026
- audio: z.nullable(
2027
- z.lazy(() => RetrieveDatapointMessagesAudio$outboundSchema),
2028
- ).optional(),
2029
- toolCalls: z.array(
2030
- z.lazy(() => RetrieveDatapointMessagesToolCalls$outboundSchema),
2031
- ).optional(),
2032
- reasoning: z.string().optional(),
2033
- reasoningSignature: z.string().optional(),
2034
- redactedReasoning: z.string().optional(),
2035
- }).transform((v) => {
2036
- return remap$(v, {
2037
- toolCalls: "tool_calls",
2038
- reasoningSignature: "reasoning_signature",
2039
- redactedReasoning: "redacted_reasoning",
2040
- });
2041
- });
2042
-
2043
- /**
2044
- * @internal
2045
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2046
- */
2047
- export namespace RetrieveDatapointMessagesAssistantMessage$ {
2048
- /** @deprecated use `RetrieveDatapointMessagesAssistantMessage$inboundSchema` instead. */
2049
- export const inboundSchema =
2050
- RetrieveDatapointMessagesAssistantMessage$inboundSchema;
2051
- /** @deprecated use `RetrieveDatapointMessagesAssistantMessage$outboundSchema` instead. */
2052
- export const outboundSchema =
2053
- RetrieveDatapointMessagesAssistantMessage$outboundSchema;
2054
- /** @deprecated use `RetrieveDatapointMessagesAssistantMessage$Outbound` instead. */
2055
- export type Outbound = RetrieveDatapointMessagesAssistantMessage$Outbound;
2056
- }
2057
-
2058
- export function retrieveDatapointMessagesAssistantMessageToJSON(
2059
- retrieveDatapointMessagesAssistantMessage:
2060
- RetrieveDatapointMessagesAssistantMessage,
2061
- ): string {
2062
- return JSON.stringify(
2063
- RetrieveDatapointMessagesAssistantMessage$outboundSchema.parse(
2064
- retrieveDatapointMessagesAssistantMessage,
2065
- ),
2066
- );
2067
- }
2068
-
2069
- export function retrieveDatapointMessagesAssistantMessageFromJSON(
2070
- jsonString: string,
2071
- ): SafeParseResult<
2072
- RetrieveDatapointMessagesAssistantMessage,
2073
- SDKValidationError
2074
- > {
2075
- return safeParse(
2076
- jsonString,
2077
- (x) =>
2078
- RetrieveDatapointMessagesAssistantMessage$inboundSchema.parse(
2079
- JSON.parse(x),
2080
- ),
2081
- `Failed to parse 'RetrieveDatapointMessagesAssistantMessage' from JSON`,
2082
- );
2083
- }
2084
-
2085
- /** @internal */
2086
- export const RetrieveDatapointMessagesDatasetsResponseRole$inboundSchema:
2087
- z.ZodNativeEnum<typeof RetrieveDatapointMessagesDatasetsResponseRole> = z
2088
- .nativeEnum(RetrieveDatapointMessagesDatasetsResponseRole);
2089
-
2090
- /** @internal */
2091
- export const RetrieveDatapointMessagesDatasetsResponseRole$outboundSchema:
2092
- z.ZodNativeEnum<typeof RetrieveDatapointMessagesDatasetsResponseRole> =
2093
- RetrieveDatapointMessagesDatasetsResponseRole$inboundSchema;
2094
-
2095
- /**
2096
- * @internal
2097
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2098
- */
2099
- export namespace RetrieveDatapointMessagesDatasetsResponseRole$ {
2100
- /** @deprecated use `RetrieveDatapointMessagesDatasetsResponseRole$inboundSchema` instead. */
2101
- export const inboundSchema =
2102
- RetrieveDatapointMessagesDatasetsResponseRole$inboundSchema;
2103
- /** @deprecated use `RetrieveDatapointMessagesDatasetsResponseRole$outboundSchema` instead. */
2104
- export const outboundSchema =
2105
- RetrieveDatapointMessagesDatasetsResponseRole$outboundSchema;
2106
- }
2107
-
2108
- /** @internal */
2109
- export const RetrieveDatapoint2DatasetsResponse200Type$inboundSchema:
2110
- z.ZodNativeEnum<typeof RetrieveDatapoint2DatasetsResponse200Type> = z
2111
- .nativeEnum(RetrieveDatapoint2DatasetsResponse200Type);
2112
-
2113
- /** @internal */
2114
- export const RetrieveDatapoint2DatasetsResponse200Type$outboundSchema:
2115
- z.ZodNativeEnum<typeof RetrieveDatapoint2DatasetsResponse200Type> =
2116
- RetrieveDatapoint2DatasetsResponse200Type$inboundSchema;
2117
-
2118
- /**
2119
- * @internal
2120
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2121
- */
2122
- export namespace RetrieveDatapoint2DatasetsResponse200Type$ {
2123
- /** @deprecated use `RetrieveDatapoint2DatasetsResponse200Type$inboundSchema` instead. */
2124
- export const inboundSchema =
2125
- RetrieveDatapoint2DatasetsResponse200Type$inboundSchema;
2126
- /** @deprecated use `RetrieveDatapoint2DatasetsResponse200Type$outboundSchema` instead. */
2127
- export const outboundSchema =
2128
- RetrieveDatapoint2DatasetsResponse200Type$outboundSchema;
2129
- }
2130
-
2131
- /** @internal */
2132
- export const RetrieveDatapoint2File$inboundSchema: z.ZodType<
2133
- RetrieveDatapoint2File,
2134
- z.ZodTypeDef,
2135
- unknown
2136
- > = z.object({
2137
- file_data: z.string().optional(),
2138
- uri: z.string().optional(),
2139
- mimeType: z.string().optional(),
2140
- filename: z.string().optional(),
2141
- }).transform((v) => {
2142
- return remap$(v, {
2143
- "file_data": "fileData",
2144
- });
2145
- });
2146
-
2147
- /** @internal */
2148
- export type RetrieveDatapoint2File$Outbound = {
2149
- file_data?: string | undefined;
2150
- uri?: string | undefined;
2151
- mimeType?: string | undefined;
2152
- filename?: string | undefined;
2153
- };
2154
-
2155
- /** @internal */
2156
- export const RetrieveDatapoint2File$outboundSchema: z.ZodType<
2157
- RetrieveDatapoint2File$Outbound,
2158
- z.ZodTypeDef,
2159
- RetrieveDatapoint2File
2160
- > = z.object({
2161
- fileData: z.string().optional(),
2162
- uri: z.string().optional(),
2163
- mimeType: z.string().optional(),
2164
- filename: z.string().optional(),
2165
- }).transform((v) => {
2166
- return remap$(v, {
2167
- fileData: "file_data",
2168
- });
2169
- });
2170
-
2171
- /**
2172
- * @internal
2173
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2174
- */
2175
- export namespace RetrieveDatapoint2File$ {
2176
- /** @deprecated use `RetrieveDatapoint2File$inboundSchema` instead. */
2177
- export const inboundSchema = RetrieveDatapoint2File$inboundSchema;
2178
- /** @deprecated use `RetrieveDatapoint2File$outboundSchema` instead. */
2179
- export const outboundSchema = RetrieveDatapoint2File$outboundSchema;
2180
- /** @deprecated use `RetrieveDatapoint2File$Outbound` instead. */
2181
- export type Outbound = RetrieveDatapoint2File$Outbound;
2182
- }
2183
-
2184
- export function retrieveDatapoint2FileToJSON(
2185
- retrieveDatapoint2File: RetrieveDatapoint2File,
2186
- ): string {
2187
- return JSON.stringify(
2188
- RetrieveDatapoint2File$outboundSchema.parse(retrieveDatapoint2File),
2189
- );
2190
- }
2191
-
2192
- export function retrieveDatapoint2FileFromJSON(
2193
- jsonString: string,
2194
- ): SafeParseResult<RetrieveDatapoint2File, SDKValidationError> {
2195
- return safeParse(
2196
- jsonString,
2197
- (x) => RetrieveDatapoint2File$inboundSchema.parse(JSON.parse(x)),
2198
- `Failed to parse 'RetrieveDatapoint2File' from JSON`,
2199
- );
2200
- }
2201
-
2202
- /** @internal */
2203
- export const RetrieveDatapoint24$inboundSchema: z.ZodType<
2204
- RetrieveDatapoint24,
2205
- z.ZodTypeDef,
2206
- unknown
2207
- > = z.object({
2208
- type: RetrieveDatapoint2DatasetsResponse200Type$inboundSchema,
2209
- file: z.lazy(() => RetrieveDatapoint2File$inboundSchema),
2210
- });
2211
-
2212
- /** @internal */
2213
- export type RetrieveDatapoint24$Outbound = {
2214
- type: string;
2215
- file: RetrieveDatapoint2File$Outbound;
2216
- };
2217
-
2218
- /** @internal */
2219
- export const RetrieveDatapoint24$outboundSchema: z.ZodType<
2220
- RetrieveDatapoint24$Outbound,
2221
- z.ZodTypeDef,
2222
- RetrieveDatapoint24
2223
- > = z.object({
2224
- type: RetrieveDatapoint2DatasetsResponse200Type$outboundSchema,
2225
- file: z.lazy(() => RetrieveDatapoint2File$outboundSchema),
2226
- });
2227
-
2228
- /**
2229
- * @internal
2230
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2231
- */
2232
- export namespace RetrieveDatapoint24$ {
2233
- /** @deprecated use `RetrieveDatapoint24$inboundSchema` instead. */
2234
- export const inboundSchema = RetrieveDatapoint24$inboundSchema;
2235
- /** @deprecated use `RetrieveDatapoint24$outboundSchema` instead. */
2236
- export const outboundSchema = RetrieveDatapoint24$outboundSchema;
2237
- /** @deprecated use `RetrieveDatapoint24$Outbound` instead. */
2238
- export type Outbound = RetrieveDatapoint24$Outbound;
2239
- }
2240
-
2241
- export function retrieveDatapoint24ToJSON(
2242
- retrieveDatapoint24: RetrieveDatapoint24,
2243
- ): string {
2244
- return JSON.stringify(
2245
- RetrieveDatapoint24$outboundSchema.parse(retrieveDatapoint24),
2246
- );
2247
- }
2248
-
2249
- export function retrieveDatapoint24FromJSON(
2250
- jsonString: string,
2251
- ): SafeParseResult<RetrieveDatapoint24, SDKValidationError> {
2252
- return safeParse(
2253
- jsonString,
2254
- (x) => RetrieveDatapoint24$inboundSchema.parse(JSON.parse(x)),
2255
- `Failed to parse 'RetrieveDatapoint24' from JSON`,
2256
- );
2257
- }
2258
-
2259
- /** @internal */
2260
- export const RetrieveDatapoint2DatasetsResponseType$inboundSchema:
2261
- z.ZodNativeEnum<typeof RetrieveDatapoint2DatasetsResponseType> = z.nativeEnum(
2262
- RetrieveDatapoint2DatasetsResponseType,
2263
- );
2264
-
2265
- /** @internal */
2266
- export const RetrieveDatapoint2DatasetsResponseType$outboundSchema:
2267
- z.ZodNativeEnum<typeof RetrieveDatapoint2DatasetsResponseType> =
2268
- RetrieveDatapoint2DatasetsResponseType$inboundSchema;
2269
-
2270
- /**
2271
- * @internal
2272
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2273
- */
2274
- export namespace RetrieveDatapoint2DatasetsResponseType$ {
2275
- /** @deprecated use `RetrieveDatapoint2DatasetsResponseType$inboundSchema` instead. */
2276
- export const inboundSchema =
2277
- RetrieveDatapoint2DatasetsResponseType$inboundSchema;
2278
- /** @deprecated use `RetrieveDatapoint2DatasetsResponseType$outboundSchema` instead. */
2279
- export const outboundSchema =
2280
- RetrieveDatapoint2DatasetsResponseType$outboundSchema;
2281
- }
2282
-
2283
- /** @internal */
2284
- export const RetrieveDatapoint2Format$inboundSchema: z.ZodNativeEnum<
2285
- typeof RetrieveDatapoint2Format
2286
- > = z.nativeEnum(RetrieveDatapoint2Format);
2287
-
2288
- /** @internal */
2289
- export const RetrieveDatapoint2Format$outboundSchema: z.ZodNativeEnum<
2290
- typeof RetrieveDatapoint2Format
2291
- > = RetrieveDatapoint2Format$inboundSchema;
2292
-
2293
- /**
2294
- * @internal
2295
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2296
- */
2297
- export namespace RetrieveDatapoint2Format$ {
2298
- /** @deprecated use `RetrieveDatapoint2Format$inboundSchema` instead. */
2299
- export const inboundSchema = RetrieveDatapoint2Format$inboundSchema;
2300
- /** @deprecated use `RetrieveDatapoint2Format$outboundSchema` instead. */
2301
- export const outboundSchema = RetrieveDatapoint2Format$outboundSchema;
2302
- }
2303
-
2304
- /** @internal */
2305
- export const RetrieveDatapoint2InputAudio$inboundSchema: z.ZodType<
2306
- RetrieveDatapoint2InputAudio,
2307
- z.ZodTypeDef,
2308
- unknown
2309
- > = z.object({
2310
- data: z.string(),
2311
- format: RetrieveDatapoint2Format$inboundSchema,
2312
- });
2313
-
2314
- /** @internal */
2315
- export type RetrieveDatapoint2InputAudio$Outbound = {
2316
- data: string;
2317
- format: string;
2318
- };
2319
-
2320
- /** @internal */
2321
- export const RetrieveDatapoint2InputAudio$outboundSchema: z.ZodType<
2322
- RetrieveDatapoint2InputAudio$Outbound,
2323
- z.ZodTypeDef,
2324
- RetrieveDatapoint2InputAudio
2325
- > = z.object({
2326
- data: z.string(),
2327
- format: RetrieveDatapoint2Format$outboundSchema,
2328
- });
2329
-
2330
- /**
2331
- * @internal
2332
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2333
- */
2334
- export namespace RetrieveDatapoint2InputAudio$ {
2335
- /** @deprecated use `RetrieveDatapoint2InputAudio$inboundSchema` instead. */
2336
- export const inboundSchema = RetrieveDatapoint2InputAudio$inboundSchema;
2337
- /** @deprecated use `RetrieveDatapoint2InputAudio$outboundSchema` instead. */
2338
- export const outboundSchema = RetrieveDatapoint2InputAudio$outboundSchema;
2339
- /** @deprecated use `RetrieveDatapoint2InputAudio$Outbound` instead. */
2340
- export type Outbound = RetrieveDatapoint2InputAudio$Outbound;
2341
- }
2342
-
2343
- export function retrieveDatapoint2InputAudioToJSON(
2344
- retrieveDatapoint2InputAudio: RetrieveDatapoint2InputAudio,
2345
- ): string {
2346
- return JSON.stringify(
2347
- RetrieveDatapoint2InputAudio$outboundSchema.parse(
2348
- retrieveDatapoint2InputAudio,
2349
- ),
2350
- );
2351
- }
2352
-
2353
- export function retrieveDatapoint2InputAudioFromJSON(
2354
- jsonString: string,
2355
- ): SafeParseResult<RetrieveDatapoint2InputAudio, SDKValidationError> {
2356
- return safeParse(
2357
- jsonString,
2358
- (x) => RetrieveDatapoint2InputAudio$inboundSchema.parse(JSON.parse(x)),
2359
- `Failed to parse 'RetrieveDatapoint2InputAudio' from JSON`,
2360
- );
2361
- }
2362
-
2363
- /** @internal */
2364
- export const RetrieveDatapoint23$inboundSchema: z.ZodType<
2365
- RetrieveDatapoint23,
2366
- z.ZodTypeDef,
2367
- unknown
2368
- > = z.object({
2369
- type: RetrieveDatapoint2DatasetsResponseType$inboundSchema,
2370
- input_audio: z.lazy(() => RetrieveDatapoint2InputAudio$inboundSchema),
2371
- }).transform((v) => {
2372
- return remap$(v, {
2373
- "input_audio": "inputAudio",
2374
- });
2375
- });
2376
-
2377
- /** @internal */
2378
- export type RetrieveDatapoint23$Outbound = {
2379
- type: string;
2380
- input_audio: RetrieveDatapoint2InputAudio$Outbound;
2381
- };
2382
-
2383
- /** @internal */
2384
- export const RetrieveDatapoint23$outboundSchema: z.ZodType<
2385
- RetrieveDatapoint23$Outbound,
2386
- z.ZodTypeDef,
2387
- RetrieveDatapoint23
2388
- > = z.object({
2389
- type: RetrieveDatapoint2DatasetsResponseType$outboundSchema,
2390
- inputAudio: z.lazy(() => RetrieveDatapoint2InputAudio$outboundSchema),
2391
- }).transform((v) => {
2392
- return remap$(v, {
2393
- inputAudio: "input_audio",
2394
- });
2395
- });
2396
-
2397
- /**
2398
- * @internal
2399
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2400
- */
2401
- export namespace RetrieveDatapoint23$ {
2402
- /** @deprecated use `RetrieveDatapoint23$inboundSchema` instead. */
2403
- export const inboundSchema = RetrieveDatapoint23$inboundSchema;
2404
- /** @deprecated use `RetrieveDatapoint23$outboundSchema` instead. */
2405
- export const outboundSchema = RetrieveDatapoint23$outboundSchema;
2406
- /** @deprecated use `RetrieveDatapoint23$Outbound` instead. */
2407
- export type Outbound = RetrieveDatapoint23$Outbound;
2408
- }
2409
-
2410
- export function retrieveDatapoint23ToJSON(
2411
- retrieveDatapoint23: RetrieveDatapoint23,
2412
- ): string {
2413
- return JSON.stringify(
2414
- RetrieveDatapoint23$outboundSchema.parse(retrieveDatapoint23),
2415
- );
2416
- }
2417
-
2418
- export function retrieveDatapoint23FromJSON(
2419
- jsonString: string,
2420
- ): SafeParseResult<RetrieveDatapoint23, SDKValidationError> {
2421
- return safeParse(
2422
- jsonString,
2423
- (x) => RetrieveDatapoint23$inboundSchema.parse(JSON.parse(x)),
2424
- `Failed to parse 'RetrieveDatapoint23' from JSON`,
2425
- );
2426
- }
2427
-
2428
- /** @internal */
2429
- export const RetrieveDatapoint2DatasetsType$inboundSchema: z.ZodNativeEnum<
2430
- typeof RetrieveDatapoint2DatasetsType
2431
- > = z.nativeEnum(RetrieveDatapoint2DatasetsType);
2432
-
2433
- /** @internal */
2434
- export const RetrieveDatapoint2DatasetsType$outboundSchema: z.ZodNativeEnum<
2435
- typeof RetrieveDatapoint2DatasetsType
2436
- > = RetrieveDatapoint2DatasetsType$inboundSchema;
2437
-
2438
- /**
2439
- * @internal
2440
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2441
- */
2442
- export namespace RetrieveDatapoint2DatasetsType$ {
2443
- /** @deprecated use `RetrieveDatapoint2DatasetsType$inboundSchema` instead. */
2444
- export const inboundSchema = RetrieveDatapoint2DatasetsType$inboundSchema;
2445
- /** @deprecated use `RetrieveDatapoint2DatasetsType$outboundSchema` instead. */
2446
- export const outboundSchema = RetrieveDatapoint2DatasetsType$outboundSchema;
2447
- }
2448
-
2449
- /** @internal */
2450
- export const RetrieveDatapoint2Detail$inboundSchema: z.ZodNativeEnum<
2451
- typeof RetrieveDatapoint2Detail
2452
- > = z.nativeEnum(RetrieveDatapoint2Detail);
2453
-
2454
- /** @internal */
2455
- export const RetrieveDatapoint2Detail$outboundSchema: z.ZodNativeEnum<
2456
- typeof RetrieveDatapoint2Detail
2457
- > = RetrieveDatapoint2Detail$inboundSchema;
2458
-
2459
- /**
2460
- * @internal
2461
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2462
- */
2463
- export namespace RetrieveDatapoint2Detail$ {
2464
- /** @deprecated use `RetrieveDatapoint2Detail$inboundSchema` instead. */
2465
- export const inboundSchema = RetrieveDatapoint2Detail$inboundSchema;
2466
- /** @deprecated use `RetrieveDatapoint2Detail$outboundSchema` instead. */
2467
- export const outboundSchema = RetrieveDatapoint2Detail$outboundSchema;
2468
- }
2469
-
2470
- /** @internal */
2471
- export const RetrieveDatapoint2ImageUrl$inboundSchema: z.ZodType<
2472
- RetrieveDatapoint2ImageUrl,
2473
- z.ZodTypeDef,
2474
- unknown
2475
- > = z.object({
2476
- url: z.string(),
2477
- detail: RetrieveDatapoint2Detail$inboundSchema.optional(),
2478
- });
2479
-
2480
- /** @internal */
2481
- export type RetrieveDatapoint2ImageUrl$Outbound = {
2482
- url: string;
2483
- detail?: string | undefined;
2484
- };
2485
-
2486
- /** @internal */
2487
- export const RetrieveDatapoint2ImageUrl$outboundSchema: z.ZodType<
2488
- RetrieveDatapoint2ImageUrl$Outbound,
2489
- z.ZodTypeDef,
2490
- RetrieveDatapoint2ImageUrl
2491
- > = z.object({
2492
- url: z.string(),
2493
- detail: RetrieveDatapoint2Detail$outboundSchema.optional(),
2494
- });
2495
-
2496
- /**
2497
- * @internal
2498
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2499
- */
2500
- export namespace RetrieveDatapoint2ImageUrl$ {
2501
- /** @deprecated use `RetrieveDatapoint2ImageUrl$inboundSchema` instead. */
2502
- export const inboundSchema = RetrieveDatapoint2ImageUrl$inboundSchema;
2503
- /** @deprecated use `RetrieveDatapoint2ImageUrl$outboundSchema` instead. */
2504
- export const outboundSchema = RetrieveDatapoint2ImageUrl$outboundSchema;
2505
- /** @deprecated use `RetrieveDatapoint2ImageUrl$Outbound` instead. */
2506
- export type Outbound = RetrieveDatapoint2ImageUrl$Outbound;
2507
- }
2508
-
2509
- export function retrieveDatapoint2ImageUrlToJSON(
2510
- retrieveDatapoint2ImageUrl: RetrieveDatapoint2ImageUrl,
2511
- ): string {
2512
- return JSON.stringify(
2513
- RetrieveDatapoint2ImageUrl$outboundSchema.parse(retrieveDatapoint2ImageUrl),
2514
- );
2515
- }
2516
-
2517
- export function retrieveDatapoint2ImageUrlFromJSON(
2518
- jsonString: string,
2519
- ): SafeParseResult<RetrieveDatapoint2ImageUrl, SDKValidationError> {
2520
- return safeParse(
2521
- jsonString,
2522
- (x) => RetrieveDatapoint2ImageUrl$inboundSchema.parse(JSON.parse(x)),
2523
- `Failed to parse 'RetrieveDatapoint2ImageUrl' from JSON`,
2524
- );
2525
- }
2526
-
2527
- /** @internal */
2528
- export const RetrieveDatapoint22$inboundSchema: z.ZodType<
2529
- RetrieveDatapoint22,
2530
- z.ZodTypeDef,
2531
- unknown
2532
- > = z.object({
2533
- type: RetrieveDatapoint2DatasetsType$inboundSchema,
2534
- image_url: z.lazy(() => RetrieveDatapoint2ImageUrl$inboundSchema),
2535
- }).transform((v) => {
2536
- return remap$(v, {
2537
- "image_url": "imageUrl",
2538
- });
2539
- });
2540
-
2541
- /** @internal */
2542
- export type RetrieveDatapoint22$Outbound = {
2543
- type: string;
2544
- image_url: RetrieveDatapoint2ImageUrl$Outbound;
2545
- };
2546
-
2547
- /** @internal */
2548
- export const RetrieveDatapoint22$outboundSchema: z.ZodType<
2549
- RetrieveDatapoint22$Outbound,
2550
- z.ZodTypeDef,
2551
- RetrieveDatapoint22
2552
- > = z.object({
2553
- type: RetrieveDatapoint2DatasetsType$outboundSchema,
2554
- imageUrl: z.lazy(() => RetrieveDatapoint2ImageUrl$outboundSchema),
2555
- }).transform((v) => {
2556
- return remap$(v, {
2557
- imageUrl: "image_url",
2558
- });
2559
- });
2560
-
2561
- /**
2562
- * @internal
2563
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2564
- */
2565
- export namespace RetrieveDatapoint22$ {
2566
- /** @deprecated use `RetrieveDatapoint22$inboundSchema` instead. */
2567
- export const inboundSchema = RetrieveDatapoint22$inboundSchema;
2568
- /** @deprecated use `RetrieveDatapoint22$outboundSchema` instead. */
2569
- export const outboundSchema = RetrieveDatapoint22$outboundSchema;
2570
- /** @deprecated use `RetrieveDatapoint22$Outbound` instead. */
2571
- export type Outbound = RetrieveDatapoint22$Outbound;
2572
- }
2573
-
2574
- export function retrieveDatapoint22ToJSON(
2575
- retrieveDatapoint22: RetrieveDatapoint22,
2576
- ): string {
2577
- return JSON.stringify(
2578
- RetrieveDatapoint22$outboundSchema.parse(retrieveDatapoint22),
2579
- );
2580
- }
2581
-
2582
- export function retrieveDatapoint22FromJSON(
2583
- jsonString: string,
2584
- ): SafeParseResult<RetrieveDatapoint22, SDKValidationError> {
2585
- return safeParse(
2586
- jsonString,
2587
- (x) => RetrieveDatapoint22$inboundSchema.parse(JSON.parse(x)),
2588
- `Failed to parse 'RetrieveDatapoint22' from JSON`,
2589
- );
2590
- }
2591
-
2592
- /** @internal */
2593
- export const RetrieveDatapoint2Type$inboundSchema: z.ZodNativeEnum<
2594
- typeof RetrieveDatapoint2Type
2595
- > = z.nativeEnum(RetrieveDatapoint2Type);
2596
-
2597
- /** @internal */
2598
- export const RetrieveDatapoint2Type$outboundSchema: z.ZodNativeEnum<
2599
- typeof RetrieveDatapoint2Type
2600
- > = RetrieveDatapoint2Type$inboundSchema;
2601
-
2602
- /**
2603
- * @internal
2604
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2605
- */
2606
- export namespace RetrieveDatapoint2Type$ {
2607
- /** @deprecated use `RetrieveDatapoint2Type$inboundSchema` instead. */
2608
- export const inboundSchema = RetrieveDatapoint2Type$inboundSchema;
2609
- /** @deprecated use `RetrieveDatapoint2Type$outboundSchema` instead. */
2610
- export const outboundSchema = RetrieveDatapoint2Type$outboundSchema;
2611
- }
2612
-
2613
- /** @internal */
2614
- export const RetrieveDatapoint21$inboundSchema: z.ZodType<
2615
- RetrieveDatapoint21,
2616
- z.ZodTypeDef,
2617
- unknown
2618
- > = z.object({
2619
- type: RetrieveDatapoint2Type$inboundSchema,
2620
- text: z.string(),
2621
- });
2622
-
2623
- /** @internal */
2624
- export type RetrieveDatapoint21$Outbound = {
2625
- type: string;
2626
- text: string;
2627
- };
2628
-
2629
- /** @internal */
2630
- export const RetrieveDatapoint21$outboundSchema: z.ZodType<
2631
- RetrieveDatapoint21$Outbound,
2632
- z.ZodTypeDef,
2633
- RetrieveDatapoint21
2634
- > = z.object({
2635
- type: RetrieveDatapoint2Type$outboundSchema,
2636
- text: z.string(),
2637
- });
2638
-
2639
- /**
2640
- * @internal
2641
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2642
- */
2643
- export namespace RetrieveDatapoint21$ {
2644
- /** @deprecated use `RetrieveDatapoint21$inboundSchema` instead. */
2645
- export const inboundSchema = RetrieveDatapoint21$inboundSchema;
2646
- /** @deprecated use `RetrieveDatapoint21$outboundSchema` instead. */
2647
- export const outboundSchema = RetrieveDatapoint21$outboundSchema;
2648
- /** @deprecated use `RetrieveDatapoint21$Outbound` instead. */
2649
- export type Outbound = RetrieveDatapoint21$Outbound;
2650
- }
2651
-
2652
- export function retrieveDatapoint21ToJSON(
2653
- retrieveDatapoint21: RetrieveDatapoint21,
2654
- ): string {
2655
- return JSON.stringify(
2656
- RetrieveDatapoint21$outboundSchema.parse(retrieveDatapoint21),
2657
- );
2658
- }
2659
-
2660
- export function retrieveDatapoint21FromJSON(
2661
- jsonString: string,
2662
- ): SafeParseResult<RetrieveDatapoint21, SDKValidationError> {
2663
- return safeParse(
2664
- jsonString,
2665
- (x) => RetrieveDatapoint21$inboundSchema.parse(JSON.parse(x)),
2666
- `Failed to parse 'RetrieveDatapoint21' from JSON`,
2667
- );
2668
- }
2669
-
2670
- /** @internal */
2671
- export const RetrieveDatapointContent2$inboundSchema: z.ZodType<
2672
- RetrieveDatapointContent2,
2673
- z.ZodTypeDef,
2674
- unknown
2675
- > = z.union([
2676
- z.lazy(() => RetrieveDatapoint21$inboundSchema),
2677
- z.lazy(() => RetrieveDatapoint22$inboundSchema),
2678
- z.lazy(() => RetrieveDatapoint23$inboundSchema),
2679
- z.lazy(() => RetrieveDatapoint24$inboundSchema),
2680
- ]);
2681
-
2682
- /** @internal */
2683
- export type RetrieveDatapointContent2$Outbound =
2684
- | RetrieveDatapoint21$Outbound
2685
- | RetrieveDatapoint22$Outbound
2686
- | RetrieveDatapoint23$Outbound
2687
- | RetrieveDatapoint24$Outbound;
2688
-
2689
- /** @internal */
2690
- export const RetrieveDatapointContent2$outboundSchema: z.ZodType<
2691
- RetrieveDatapointContent2$Outbound,
2692
- z.ZodTypeDef,
2693
- RetrieveDatapointContent2
2694
- > = z.union([
2695
- z.lazy(() => RetrieveDatapoint21$outboundSchema),
2696
- z.lazy(() => RetrieveDatapoint22$outboundSchema),
2697
- z.lazy(() => RetrieveDatapoint23$outboundSchema),
2698
- z.lazy(() => RetrieveDatapoint24$outboundSchema),
2699
- ]);
2700
-
2701
- /**
2702
- * @internal
2703
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2704
- */
2705
- export namespace RetrieveDatapointContent2$ {
2706
- /** @deprecated use `RetrieveDatapointContent2$inboundSchema` instead. */
2707
- export const inboundSchema = RetrieveDatapointContent2$inboundSchema;
2708
- /** @deprecated use `RetrieveDatapointContent2$outboundSchema` instead. */
2709
- export const outboundSchema = RetrieveDatapointContent2$outboundSchema;
2710
- /** @deprecated use `RetrieveDatapointContent2$Outbound` instead. */
2711
- export type Outbound = RetrieveDatapointContent2$Outbound;
2712
- }
2713
-
2714
- export function retrieveDatapointContent2ToJSON(
2715
- retrieveDatapointContent2: RetrieveDatapointContent2,
2716
- ): string {
2717
- return JSON.stringify(
2718
- RetrieveDatapointContent2$outboundSchema.parse(retrieveDatapointContent2),
2719
- );
2720
- }
2721
-
2722
- export function retrieveDatapointContent2FromJSON(
2723
- jsonString: string,
2724
- ): SafeParseResult<RetrieveDatapointContent2, SDKValidationError> {
2725
- return safeParse(
2726
- jsonString,
2727
- (x) => RetrieveDatapointContent2$inboundSchema.parse(JSON.parse(x)),
2728
- `Failed to parse 'RetrieveDatapointContent2' from JSON`,
2729
- );
2730
- }
2731
-
2732
- /** @internal */
2733
- export const RetrieveDatapointMessagesContent$inboundSchema: z.ZodType<
2734
- RetrieveDatapointMessagesContent,
2735
- z.ZodTypeDef,
2736
- unknown
2737
- > = z.union([
2738
- z.string(),
2739
- z.array(z.union([
2740
- z.lazy(() => RetrieveDatapoint21$inboundSchema),
2741
- z.lazy(() => RetrieveDatapoint22$inboundSchema),
2742
- z.lazy(() => RetrieveDatapoint23$inboundSchema),
2743
- z.lazy(() => RetrieveDatapoint24$inboundSchema),
2744
- ])),
2745
- ]);
2746
-
2747
- /** @internal */
2748
- export type RetrieveDatapointMessagesContent$Outbound =
2749
- | string
2750
- | Array<
2751
- | RetrieveDatapoint21$Outbound
2752
- | RetrieveDatapoint22$Outbound
2753
- | RetrieveDatapoint23$Outbound
2754
- | RetrieveDatapoint24$Outbound
2755
- >;
2756
-
2757
- /** @internal */
2758
- export const RetrieveDatapointMessagesContent$outboundSchema: z.ZodType<
2759
- RetrieveDatapointMessagesContent$Outbound,
2760
- z.ZodTypeDef,
2761
- RetrieveDatapointMessagesContent
2762
- > = z.union([
2763
- z.string(),
2764
- z.array(z.union([
2765
- z.lazy(() => RetrieveDatapoint21$outboundSchema),
2766
- z.lazy(() => RetrieveDatapoint22$outboundSchema),
2767
- z.lazy(() => RetrieveDatapoint23$outboundSchema),
2768
- z.lazy(() => RetrieveDatapoint24$outboundSchema),
2769
- ])),
2770
- ]);
2771
-
2772
- /**
2773
- * @internal
2774
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2775
- */
2776
- export namespace RetrieveDatapointMessagesContent$ {
2777
- /** @deprecated use `RetrieveDatapointMessagesContent$inboundSchema` instead. */
2778
- export const inboundSchema = RetrieveDatapointMessagesContent$inboundSchema;
2779
- /** @deprecated use `RetrieveDatapointMessagesContent$outboundSchema` instead. */
2780
- export const outboundSchema = RetrieveDatapointMessagesContent$outboundSchema;
2781
- /** @deprecated use `RetrieveDatapointMessagesContent$Outbound` instead. */
2782
- export type Outbound = RetrieveDatapointMessagesContent$Outbound;
2783
- }
2784
-
2785
- export function retrieveDatapointMessagesContentToJSON(
2786
- retrieveDatapointMessagesContent: RetrieveDatapointMessagesContent,
2787
- ): string {
2788
- return JSON.stringify(
2789
- RetrieveDatapointMessagesContent$outboundSchema.parse(
2790
- retrieveDatapointMessagesContent,
2791
- ),
2792
- );
2793
- }
2794
-
2795
- export function retrieveDatapointMessagesContentFromJSON(
2796
- jsonString: string,
2797
- ): SafeParseResult<RetrieveDatapointMessagesContent, SDKValidationError> {
2798
- return safeParse(
2799
- jsonString,
2800
- (x) => RetrieveDatapointMessagesContent$inboundSchema.parse(JSON.parse(x)),
2801
- `Failed to parse 'RetrieveDatapointMessagesContent' from JSON`,
2802
- );
2803
- }
2804
-
2805
- /** @internal */
2806
- export const RetrieveDatapointMessagesUserMessage$inboundSchema: z.ZodType<
2807
- RetrieveDatapointMessagesUserMessage,
2808
- z.ZodTypeDef,
2809
- unknown
2810
- > = z.object({
2811
- role: RetrieveDatapointMessagesDatasetsResponseRole$inboundSchema,
2812
- name: z.string().optional(),
2813
- content: z.union([
2814
- z.string(),
2815
- z.array(z.union([
2816
- z.lazy(() => RetrieveDatapoint21$inboundSchema),
2817
- z.lazy(() => RetrieveDatapoint22$inboundSchema),
2818
- z.lazy(() => RetrieveDatapoint23$inboundSchema),
2819
- z.lazy(() => RetrieveDatapoint24$inboundSchema),
2820
- ])),
2821
- ]),
2822
- });
2823
-
2824
- /** @internal */
2825
- export type RetrieveDatapointMessagesUserMessage$Outbound = {
2826
- role: string;
2827
- name?: string | undefined;
2828
- content:
2829
- | string
2830
- | Array<
2831
- | RetrieveDatapoint21$Outbound
2832
- | RetrieveDatapoint22$Outbound
2833
- | RetrieveDatapoint23$Outbound
2834
- | RetrieveDatapoint24$Outbound
2835
- >;
2836
- };
2837
-
2838
- /** @internal */
2839
- export const RetrieveDatapointMessagesUserMessage$outboundSchema: z.ZodType<
2840
- RetrieveDatapointMessagesUserMessage$Outbound,
2841
- z.ZodTypeDef,
2842
- RetrieveDatapointMessagesUserMessage
2843
- > = z.object({
2844
- role: RetrieveDatapointMessagesDatasetsResponseRole$outboundSchema,
2845
- name: z.string().optional(),
2846
- content: z.union([
2847
- z.string(),
2848
- z.array(z.union([
2849
- z.lazy(() => RetrieveDatapoint21$outboundSchema),
2850
- z.lazy(() => RetrieveDatapoint22$outboundSchema),
2851
- z.lazy(() => RetrieveDatapoint23$outboundSchema),
2852
- z.lazy(() => RetrieveDatapoint24$outboundSchema),
2853
- ])),
2854
- ]),
2855
- });
2856
-
2857
- /**
2858
- * @internal
2859
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2860
- */
2861
- export namespace RetrieveDatapointMessagesUserMessage$ {
2862
- /** @deprecated use `RetrieveDatapointMessagesUserMessage$inboundSchema` instead. */
2863
- export const inboundSchema =
2864
- RetrieveDatapointMessagesUserMessage$inboundSchema;
2865
- /** @deprecated use `RetrieveDatapointMessagesUserMessage$outboundSchema` instead. */
2866
- export const outboundSchema =
2867
- RetrieveDatapointMessagesUserMessage$outboundSchema;
2868
- /** @deprecated use `RetrieveDatapointMessagesUserMessage$Outbound` instead. */
2869
- export type Outbound = RetrieveDatapointMessagesUserMessage$Outbound;
2870
- }
2871
-
2872
- export function retrieveDatapointMessagesUserMessageToJSON(
2873
- retrieveDatapointMessagesUserMessage: RetrieveDatapointMessagesUserMessage,
2874
- ): string {
2875
- return JSON.stringify(
2876
- RetrieveDatapointMessagesUserMessage$outboundSchema.parse(
2877
- retrieveDatapointMessagesUserMessage,
2878
- ),
2879
- );
2880
- }
2881
-
2882
- export function retrieveDatapointMessagesUserMessageFromJSON(
2883
- jsonString: string,
2884
- ): SafeParseResult<RetrieveDatapointMessagesUserMessage, SDKValidationError> {
2885
- return safeParse(
2886
- jsonString,
2887
- (x) =>
2888
- RetrieveDatapointMessagesUserMessage$inboundSchema.parse(JSON.parse(x)),
2889
- `Failed to parse 'RetrieveDatapointMessagesUserMessage' from JSON`,
2890
- );
2891
- }
2892
-
2893
- /** @internal */
2894
- export const RetrieveDatapointMessagesDatasetsRole$inboundSchema:
2895
- z.ZodNativeEnum<typeof RetrieveDatapointMessagesDatasetsRole> = z.nativeEnum(
2896
- RetrieveDatapointMessagesDatasetsRole,
2897
- );
2898
-
2899
- /** @internal */
2900
- export const RetrieveDatapointMessagesDatasetsRole$outboundSchema:
2901
- z.ZodNativeEnum<typeof RetrieveDatapointMessagesDatasetsRole> =
2902
- RetrieveDatapointMessagesDatasetsRole$inboundSchema;
2903
-
2904
- /**
2905
- * @internal
2906
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2907
- */
2908
- export namespace RetrieveDatapointMessagesDatasetsRole$ {
2909
- /** @deprecated use `RetrieveDatapointMessagesDatasetsRole$inboundSchema` instead. */
2910
- export const inboundSchema =
2911
- RetrieveDatapointMessagesDatasetsRole$inboundSchema;
2912
- /** @deprecated use `RetrieveDatapointMessagesDatasetsRole$outboundSchema` instead. */
2913
- export const outboundSchema =
2914
- RetrieveDatapointMessagesDatasetsRole$outboundSchema;
2915
- }
2916
-
2917
- /** @internal */
2918
- export const RetrieveDatapointMessagesSystemMessage$inboundSchema: z.ZodType<
2919
- RetrieveDatapointMessagesSystemMessage,
2920
- z.ZodTypeDef,
2921
- unknown
2922
- > = z.object({
2923
- role: RetrieveDatapointMessagesDatasetsRole$inboundSchema,
2924
- content: z.string(),
2925
- name: z.string().optional(),
2926
- });
2927
-
2928
- /** @internal */
2929
- export type RetrieveDatapointMessagesSystemMessage$Outbound = {
2930
- role: string;
2931
- content: string;
2932
- name?: string | undefined;
2933
- };
2934
-
2935
- /** @internal */
2936
- export const RetrieveDatapointMessagesSystemMessage$outboundSchema: z.ZodType<
2937
- RetrieveDatapointMessagesSystemMessage$Outbound,
2938
- z.ZodTypeDef,
2939
- RetrieveDatapointMessagesSystemMessage
2940
- > = z.object({
2941
- role: RetrieveDatapointMessagesDatasetsRole$outboundSchema,
2942
- content: z.string(),
2943
- name: z.string().optional(),
2944
- });
2945
-
2946
- /**
2947
- * @internal
2948
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2949
- */
2950
- export namespace RetrieveDatapointMessagesSystemMessage$ {
2951
- /** @deprecated use `RetrieveDatapointMessagesSystemMessage$inboundSchema` instead. */
2952
- export const inboundSchema =
2953
- RetrieveDatapointMessagesSystemMessage$inboundSchema;
2954
- /** @deprecated use `RetrieveDatapointMessagesSystemMessage$outboundSchema` instead. */
2955
- export const outboundSchema =
2956
- RetrieveDatapointMessagesSystemMessage$outboundSchema;
2957
- /** @deprecated use `RetrieveDatapointMessagesSystemMessage$Outbound` instead. */
2958
- export type Outbound = RetrieveDatapointMessagesSystemMessage$Outbound;
2959
- }
2960
-
2961
- export function retrieveDatapointMessagesSystemMessageToJSON(
2962
- retrieveDatapointMessagesSystemMessage:
2963
- RetrieveDatapointMessagesSystemMessage,
2964
- ): string {
2965
- return JSON.stringify(
2966
- RetrieveDatapointMessagesSystemMessage$outboundSchema.parse(
2967
- retrieveDatapointMessagesSystemMessage,
2968
- ),
2969
- );
2970
- }
2971
-
2972
- export function retrieveDatapointMessagesSystemMessageFromJSON(
2973
- jsonString: string,
2974
- ): SafeParseResult<RetrieveDatapointMessagesSystemMessage, SDKValidationError> {
2975
- return safeParse(
2976
- jsonString,
2977
- (x) =>
2978
- RetrieveDatapointMessagesSystemMessage$inboundSchema.parse(JSON.parse(x)),
2979
- `Failed to parse 'RetrieveDatapointMessagesSystemMessage' from JSON`,
2980
- );
2981
- }
2982
-
2983
- /** @internal */
2984
- export const RetrieveDatapointMessagesRole$inboundSchema: z.ZodNativeEnum<
2985
- typeof RetrieveDatapointMessagesRole
2986
- > = z.nativeEnum(RetrieveDatapointMessagesRole);
2987
-
2988
- /** @internal */
2989
- export const RetrieveDatapointMessagesRole$outboundSchema: z.ZodNativeEnum<
2990
- typeof RetrieveDatapointMessagesRole
2991
- > = RetrieveDatapointMessagesRole$inboundSchema;
2992
-
2993
- /**
2994
- * @internal
2995
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2996
- */
2997
- export namespace RetrieveDatapointMessagesRole$ {
2998
- /** @deprecated use `RetrieveDatapointMessagesRole$inboundSchema` instead. */
2999
- export const inboundSchema = RetrieveDatapointMessagesRole$inboundSchema;
3000
- /** @deprecated use `RetrieveDatapointMessagesRole$outboundSchema` instead. */
3001
- export const outboundSchema = RetrieveDatapointMessagesRole$outboundSchema;
3002
- }
3003
-
3004
- /** @internal */
3005
- export const RetrieveDatapointMessagesDeveloperMessage$inboundSchema: z.ZodType<
3006
- RetrieveDatapointMessagesDeveloperMessage,
3007
- z.ZodTypeDef,
3008
- unknown
3009
- > = z.object({
3010
- role: RetrieveDatapointMessagesRole$inboundSchema,
3011
- content: z.string(),
3012
- name: z.string().optional(),
3013
- });
3014
-
3015
- /** @internal */
3016
- export type RetrieveDatapointMessagesDeveloperMessage$Outbound = {
3017
- role: string;
3018
- content: string;
3019
- name?: string | undefined;
3020
- };
3021
-
3022
- /** @internal */
3023
- export const RetrieveDatapointMessagesDeveloperMessage$outboundSchema:
3024
- z.ZodType<
3025
- RetrieveDatapointMessagesDeveloperMessage$Outbound,
3026
- z.ZodTypeDef,
3027
- RetrieveDatapointMessagesDeveloperMessage
3028
- > = z.object({
3029
- role: RetrieveDatapointMessagesRole$outboundSchema,
3030
- content: z.string(),
3031
- name: z.string().optional(),
3032
- });
3033
-
3034
- /**
3035
- * @internal
3036
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3037
- */
3038
- export namespace RetrieveDatapointMessagesDeveloperMessage$ {
3039
- /** @deprecated use `RetrieveDatapointMessagesDeveloperMessage$inboundSchema` instead. */
3040
- export const inboundSchema =
3041
- RetrieveDatapointMessagesDeveloperMessage$inboundSchema;
3042
- /** @deprecated use `RetrieveDatapointMessagesDeveloperMessage$outboundSchema` instead. */
3043
- export const outboundSchema =
3044
- RetrieveDatapointMessagesDeveloperMessage$outboundSchema;
3045
- /** @deprecated use `RetrieveDatapointMessagesDeveloperMessage$Outbound` instead. */
3046
- export type Outbound = RetrieveDatapointMessagesDeveloperMessage$Outbound;
3047
- }
3048
-
3049
- export function retrieveDatapointMessagesDeveloperMessageToJSON(
3050
- retrieveDatapointMessagesDeveloperMessage:
3051
- RetrieveDatapointMessagesDeveloperMessage,
3052
- ): string {
3053
- return JSON.stringify(
3054
- RetrieveDatapointMessagesDeveloperMessage$outboundSchema.parse(
3055
- retrieveDatapointMessagesDeveloperMessage,
3056
- ),
3057
- );
3058
- }
3059
-
3060
- export function retrieveDatapointMessagesDeveloperMessageFromJSON(
3061
- jsonString: string,
3062
- ): SafeParseResult<
3063
- RetrieveDatapointMessagesDeveloperMessage,
3064
- SDKValidationError
3065
- > {
3066
- return safeParse(
3067
- jsonString,
3068
- (x) =>
3069
- RetrieveDatapointMessagesDeveloperMessage$inboundSchema.parse(
3070
- JSON.parse(x),
3071
- ),
3072
- `Failed to parse 'RetrieveDatapointMessagesDeveloperMessage' from JSON`,
3073
- );
3074
- }
3075
-
3076
- /** @internal */
3077
- export const RetrieveDatapointMessages$inboundSchema: z.ZodType<
3078
- RetrieveDatapointMessages,
3079
- z.ZodTypeDef,
3080
- unknown
3081
- > = z.union([
3082
- z.lazy(() => RetrieveDatapointMessagesToolMessage$inboundSchema),
3083
- z.lazy(() => RetrieveDatapointMessagesDeveloperMessage$inboundSchema),
3084
- z.lazy(() => RetrieveDatapointMessagesSystemMessage$inboundSchema),
3085
- z.lazy(() => RetrieveDatapointMessagesUserMessage$inboundSchema),
3086
- z.lazy(() => RetrieveDatapointMessagesAssistantMessage$inboundSchema),
3087
- ]);
3088
-
3089
- /** @internal */
3090
- export type RetrieveDatapointMessages$Outbound =
3091
- | RetrieveDatapointMessagesToolMessage$Outbound
3092
- | RetrieveDatapointMessagesDeveloperMessage$Outbound
3093
- | RetrieveDatapointMessagesSystemMessage$Outbound
3094
- | RetrieveDatapointMessagesUserMessage$Outbound
3095
- | RetrieveDatapointMessagesAssistantMessage$Outbound;
3096
-
3097
- /** @internal */
3098
- export const RetrieveDatapointMessages$outboundSchema: z.ZodType<
3099
- RetrieveDatapointMessages$Outbound,
3100
- z.ZodTypeDef,
3101
- RetrieveDatapointMessages
3102
- > = z.union([
3103
- z.lazy(() => RetrieveDatapointMessagesToolMessage$outboundSchema),
3104
- z.lazy(() => RetrieveDatapointMessagesDeveloperMessage$outboundSchema),
3105
- z.lazy(() => RetrieveDatapointMessagesSystemMessage$outboundSchema),
3106
- z.lazy(() => RetrieveDatapointMessagesUserMessage$outboundSchema),
3107
- z.lazy(() => RetrieveDatapointMessagesAssistantMessage$outboundSchema),
3108
- ]);
3109
-
3110
- /**
3111
- * @internal
3112
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3113
- */
3114
- export namespace RetrieveDatapointMessages$ {
3115
- /** @deprecated use `RetrieveDatapointMessages$inboundSchema` instead. */
3116
- export const inboundSchema = RetrieveDatapointMessages$inboundSchema;
3117
- /** @deprecated use `RetrieveDatapointMessages$outboundSchema` instead. */
3118
- export const outboundSchema = RetrieveDatapointMessages$outboundSchema;
3119
- /** @deprecated use `RetrieveDatapointMessages$Outbound` instead. */
3120
- export type Outbound = RetrieveDatapointMessages$Outbound;
3121
- }
3122
-
3123
- export function retrieveDatapointMessagesToJSON(
3124
- retrieveDatapointMessages: RetrieveDatapointMessages,
3125
- ): string {
3126
- return JSON.stringify(
3127
- RetrieveDatapointMessages$outboundSchema.parse(retrieveDatapointMessages),
3128
- );
3129
- }
3130
-
3131
- export function retrieveDatapointMessagesFromJSON(
3132
- jsonString: string,
3133
- ): SafeParseResult<RetrieveDatapointMessages, SDKValidationError> {
3134
- return safeParse(
3135
- jsonString,
3136
- (x) => RetrieveDatapointMessages$inboundSchema.parse(JSON.parse(x)),
3137
- `Failed to parse 'RetrieveDatapointMessages' from JSON`,
3138
- );
3139
- }
3140
-
3141
- /** @internal */
3142
- export const RetrieveDatapointEvaluationsDatasetsResponseEvaluationType$inboundSchema:
3143
- z.ZodNativeEnum<
3144
- typeof RetrieveDatapointEvaluationsDatasetsResponseEvaluationType
3145
- > = z.nativeEnum(RetrieveDatapointEvaluationsDatasetsResponseEvaluationType);
3146
-
3147
- /** @internal */
3148
- export const RetrieveDatapointEvaluationsDatasetsResponseEvaluationType$outboundSchema:
3149
- z.ZodNativeEnum<
3150
- typeof RetrieveDatapointEvaluationsDatasetsResponseEvaluationType
3151
- > = RetrieveDatapointEvaluationsDatasetsResponseEvaluationType$inboundSchema;
3152
-
3153
- /**
3154
- * @internal
3155
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3156
- */
3157
- export namespace RetrieveDatapointEvaluationsDatasetsResponseEvaluationType$ {
3158
- /** @deprecated use `RetrieveDatapointEvaluationsDatasetsResponseEvaluationType$inboundSchema` instead. */
3159
- export const inboundSchema =
3160
- RetrieveDatapointEvaluationsDatasetsResponseEvaluationType$inboundSchema;
3161
- /** @deprecated use `RetrieveDatapointEvaluationsDatasetsResponseEvaluationType$outboundSchema` instead. */
3162
- export const outboundSchema =
3163
- RetrieveDatapointEvaluationsDatasetsResponseEvaluationType$outboundSchema;
3164
- }
3165
-
3166
- /** @internal */
3167
- export const RetrieveDatapointEvaluationsDatasetsResponseSource$inboundSchema:
3168
- z.ZodNativeEnum<typeof RetrieveDatapointEvaluationsDatasetsResponseSource> = z
3169
- .nativeEnum(RetrieveDatapointEvaluationsDatasetsResponseSource);
3170
-
3171
- /** @internal */
3172
- export const RetrieveDatapointEvaluationsDatasetsResponseSource$outboundSchema:
3173
- z.ZodNativeEnum<typeof RetrieveDatapointEvaluationsDatasetsResponseSource> =
3174
- RetrieveDatapointEvaluationsDatasetsResponseSource$inboundSchema;
3175
-
3176
- /**
3177
- * @internal
3178
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3179
- */
3180
- export namespace RetrieveDatapointEvaluationsDatasetsResponseSource$ {
3181
- /** @deprecated use `RetrieveDatapointEvaluationsDatasetsResponseSource$inboundSchema` instead. */
3182
- export const inboundSchema =
3183
- RetrieveDatapointEvaluationsDatasetsResponseSource$inboundSchema;
3184
- /** @deprecated use `RetrieveDatapointEvaluationsDatasetsResponseSource$outboundSchema` instead. */
3185
- export const outboundSchema =
3186
- RetrieveDatapointEvaluationsDatasetsResponseSource$outboundSchema;
3187
- }
3188
-
3189
- /** @internal */
3190
- export const RetrieveDatapointEvaluationsDatasetsResponseType$inboundSchema:
3191
- z.ZodNativeEnum<typeof RetrieveDatapointEvaluationsDatasetsResponseType> = z
3192
- .nativeEnum(RetrieveDatapointEvaluationsDatasetsResponseType);
3193
-
3194
- /** @internal */
3195
- export const RetrieveDatapointEvaluationsDatasetsResponseType$outboundSchema:
3196
- z.ZodNativeEnum<typeof RetrieveDatapointEvaluationsDatasetsResponseType> =
3197
- RetrieveDatapointEvaluationsDatasetsResponseType$inboundSchema;
3198
-
3199
- /**
3200
- * @internal
3201
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3202
- */
3203
- export namespace RetrieveDatapointEvaluationsDatasetsResponseType$ {
3204
- /** @deprecated use `RetrieveDatapointEvaluationsDatasetsResponseType$inboundSchema` instead. */
3205
- export const inboundSchema =
3206
- RetrieveDatapointEvaluationsDatasetsResponseType$inboundSchema;
3207
- /** @deprecated use `RetrieveDatapointEvaluationsDatasetsResponseType$outboundSchema` instead. */
3208
- export const outboundSchema =
3209
- RetrieveDatapointEvaluationsDatasetsResponseType$outboundSchema;
3210
- }
3211
-
3212
- /** @internal */
3213
- export const RetrieveDatapointEvaluations3$inboundSchema: z.ZodType<
3214
- RetrieveDatapointEvaluations3,
3215
- z.ZodTypeDef,
3216
- unknown
3217
- > = z.object({
3218
- id: z.string(),
3219
- evaluation_type:
3220
- RetrieveDatapointEvaluationsDatasetsResponseEvaluationType$inboundSchema,
3221
- human_review_id: z.string(),
3222
- source: RetrieveDatapointEvaluationsDatasetsResponseSource$inboundSchema
3223
- .default("orq"),
3224
- reviewed_by_id: z.string(),
3225
- reviewed_at: z.string().datetime({ offset: true }).default(
3226
- "2025-10-31T10:52:06.498Z",
3227
- ).transform(v => new Date(v)),
3228
- type: RetrieveDatapointEvaluationsDatasetsResponseType$inboundSchema,
3229
- values: z.array(z.string()),
3230
- }).transform((v) => {
3231
- return remap$(v, {
3232
- "evaluation_type": "evaluationType",
3233
- "human_review_id": "humanReviewId",
3234
- "reviewed_by_id": "reviewedById",
3235
- "reviewed_at": "reviewedAt",
3236
- });
3237
- });
3238
-
3239
- /** @internal */
3240
- export type RetrieveDatapointEvaluations3$Outbound = {
3241
- id: string;
3242
- evaluation_type: string;
3243
- human_review_id: string;
3244
- source: string;
3245
- reviewed_by_id: string;
3246
- reviewed_at: string;
3247
- type: string;
3248
- values: Array<string>;
3249
- };
3250
-
3251
- /** @internal */
3252
- export const RetrieveDatapointEvaluations3$outboundSchema: z.ZodType<
3253
- RetrieveDatapointEvaluations3$Outbound,
3254
- z.ZodTypeDef,
3255
- RetrieveDatapointEvaluations3
3256
- > = z.object({
3257
- id: z.string(),
3258
- evaluationType:
3259
- RetrieveDatapointEvaluationsDatasetsResponseEvaluationType$outboundSchema,
3260
- humanReviewId: z.string(),
3261
- source: RetrieveDatapointEvaluationsDatasetsResponseSource$outboundSchema
3262
- .default("orq"),
3263
- reviewedById: z.string(),
3264
- reviewedAt: z.date().default(() => new Date("2025-10-31T10:52:06.498Z"))
3265
- .transform(v => v.toISOString()),
3266
- type: RetrieveDatapointEvaluationsDatasetsResponseType$outboundSchema,
3267
- values: z.array(z.string()),
3268
- }).transform((v) => {
3269
- return remap$(v, {
3270
- evaluationType: "evaluation_type",
3271
- humanReviewId: "human_review_id",
3272
- reviewedById: "reviewed_by_id",
3273
- reviewedAt: "reviewed_at",
3274
- });
3275
- });
3276
-
3277
- /**
3278
- * @internal
3279
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3280
- */
3281
- export namespace RetrieveDatapointEvaluations3$ {
3282
- /** @deprecated use `RetrieveDatapointEvaluations3$inboundSchema` instead. */
3283
- export const inboundSchema = RetrieveDatapointEvaluations3$inboundSchema;
3284
- /** @deprecated use `RetrieveDatapointEvaluations3$outboundSchema` instead. */
3285
- export const outboundSchema = RetrieveDatapointEvaluations3$outboundSchema;
3286
- /** @deprecated use `RetrieveDatapointEvaluations3$Outbound` instead. */
3287
- export type Outbound = RetrieveDatapointEvaluations3$Outbound;
3288
- }
3289
-
3290
- export function retrieveDatapointEvaluations3ToJSON(
3291
- retrieveDatapointEvaluations3: RetrieveDatapointEvaluations3,
3292
- ): string {
3293
- return JSON.stringify(
3294
- RetrieveDatapointEvaluations3$outboundSchema.parse(
3295
- retrieveDatapointEvaluations3,
3296
- ),
3297
- );
3298
- }
3299
-
3300
- export function retrieveDatapointEvaluations3FromJSON(
3301
- jsonString: string,
3302
- ): SafeParseResult<RetrieveDatapointEvaluations3, SDKValidationError> {
3303
- return safeParse(
3304
- jsonString,
3305
- (x) => RetrieveDatapointEvaluations3$inboundSchema.parse(JSON.parse(x)),
3306
- `Failed to parse 'RetrieveDatapointEvaluations3' from JSON`,
3307
- );
3308
- }
3309
-
3310
- /** @internal */
3311
- export const RetrieveDatapointEvaluationsDatasetsEvaluationType$inboundSchema:
3312
- z.ZodNativeEnum<typeof RetrieveDatapointEvaluationsDatasetsEvaluationType> = z
3313
- .nativeEnum(RetrieveDatapointEvaluationsDatasetsEvaluationType);
3314
-
3315
- /** @internal */
3316
- export const RetrieveDatapointEvaluationsDatasetsEvaluationType$outboundSchema:
3317
- z.ZodNativeEnum<typeof RetrieveDatapointEvaluationsDatasetsEvaluationType> =
3318
- RetrieveDatapointEvaluationsDatasetsEvaluationType$inboundSchema;
3319
-
3320
- /**
3321
- * @internal
3322
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3323
- */
3324
- export namespace RetrieveDatapointEvaluationsDatasetsEvaluationType$ {
3325
- /** @deprecated use `RetrieveDatapointEvaluationsDatasetsEvaluationType$inboundSchema` instead. */
3326
- export const inboundSchema =
3327
- RetrieveDatapointEvaluationsDatasetsEvaluationType$inboundSchema;
3328
- /** @deprecated use `RetrieveDatapointEvaluationsDatasetsEvaluationType$outboundSchema` instead. */
3329
- export const outboundSchema =
3330
- RetrieveDatapointEvaluationsDatasetsEvaluationType$outboundSchema;
3331
- }
3332
-
3333
- /** @internal */
3334
- export const RetrieveDatapointEvaluationsDatasetsSource$inboundSchema:
3335
- z.ZodNativeEnum<typeof RetrieveDatapointEvaluationsDatasetsSource> = z
3336
- .nativeEnum(RetrieveDatapointEvaluationsDatasetsSource);
3337
-
3338
- /** @internal */
3339
- export const RetrieveDatapointEvaluationsDatasetsSource$outboundSchema:
3340
- z.ZodNativeEnum<typeof RetrieveDatapointEvaluationsDatasetsSource> =
3341
- RetrieveDatapointEvaluationsDatasetsSource$inboundSchema;
3342
-
3343
- /**
3344
- * @internal
3345
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3346
- */
3347
- export namespace RetrieveDatapointEvaluationsDatasetsSource$ {
3348
- /** @deprecated use `RetrieveDatapointEvaluationsDatasetsSource$inboundSchema` instead. */
3349
- export const inboundSchema =
3350
- RetrieveDatapointEvaluationsDatasetsSource$inboundSchema;
3351
- /** @deprecated use `RetrieveDatapointEvaluationsDatasetsSource$outboundSchema` instead. */
3352
- export const outboundSchema =
3353
- RetrieveDatapointEvaluationsDatasetsSource$outboundSchema;
3354
- }
3355
-
3356
- /** @internal */
3357
- export const RetrieveDatapointEvaluationsDatasetsType$inboundSchema:
3358
- z.ZodNativeEnum<typeof RetrieveDatapointEvaluationsDatasetsType> = z
3359
- .nativeEnum(RetrieveDatapointEvaluationsDatasetsType);
3360
-
3361
- /** @internal */
3362
- export const RetrieveDatapointEvaluationsDatasetsType$outboundSchema:
3363
- z.ZodNativeEnum<typeof RetrieveDatapointEvaluationsDatasetsType> =
3364
- RetrieveDatapointEvaluationsDatasetsType$inboundSchema;
3365
-
3366
- /**
3367
- * @internal
3368
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3369
- */
3370
- export namespace RetrieveDatapointEvaluationsDatasetsType$ {
3371
- /** @deprecated use `RetrieveDatapointEvaluationsDatasetsType$inboundSchema` instead. */
3372
- export const inboundSchema =
3373
- RetrieveDatapointEvaluationsDatasetsType$inboundSchema;
3374
- /** @deprecated use `RetrieveDatapointEvaluationsDatasetsType$outboundSchema` instead. */
3375
- export const outboundSchema =
3376
- RetrieveDatapointEvaluationsDatasetsType$outboundSchema;
3377
- }
3378
-
3379
- /** @internal */
3380
- export const RetrieveDatapointEvaluations2$inboundSchema: z.ZodType<
3381
- RetrieveDatapointEvaluations2,
3382
- z.ZodTypeDef,
3383
- unknown
3384
- > = z.object({
3385
- id: z.string(),
3386
- evaluation_type:
3387
- RetrieveDatapointEvaluationsDatasetsEvaluationType$inboundSchema,
3388
- human_review_id: z.string(),
3389
- source: RetrieveDatapointEvaluationsDatasetsSource$inboundSchema.default(
3390
- "orq",
3391
- ),
3392
- reviewed_by_id: z.string(),
3393
- reviewed_at: z.string().datetime({ offset: true }).default(
3394
- "2025-10-31T10:52:06.498Z",
3395
- ).transform(v => new Date(v)),
3396
- type: RetrieveDatapointEvaluationsDatasetsType$inboundSchema,
3397
- value: z.number(),
3398
- }).transform((v) => {
3399
- return remap$(v, {
3400
- "evaluation_type": "evaluationType",
3401
- "human_review_id": "humanReviewId",
3402
- "reviewed_by_id": "reviewedById",
3403
- "reviewed_at": "reviewedAt",
3404
- });
3405
- });
3406
-
3407
- /** @internal */
3408
- export type RetrieveDatapointEvaluations2$Outbound = {
3409
- id: string;
3410
- evaluation_type: string;
3411
- human_review_id: string;
3412
- source: string;
3413
- reviewed_by_id: string;
3414
- reviewed_at: string;
3415
- type: string;
3416
- value: number;
3417
- };
3418
-
3419
- /** @internal */
3420
- export const RetrieveDatapointEvaluations2$outboundSchema: z.ZodType<
3421
- RetrieveDatapointEvaluations2$Outbound,
3422
- z.ZodTypeDef,
3423
- RetrieveDatapointEvaluations2
3424
- > = z.object({
3425
- id: z.string(),
3426
- evaluationType:
3427
- RetrieveDatapointEvaluationsDatasetsEvaluationType$outboundSchema,
3428
- humanReviewId: z.string(),
3429
- source: RetrieveDatapointEvaluationsDatasetsSource$outboundSchema.default(
3430
- "orq",
3431
- ),
3432
- reviewedById: z.string(),
3433
- reviewedAt: z.date().default(() => new Date("2025-10-31T10:52:06.498Z"))
3434
- .transform(v => v.toISOString()),
3435
- type: RetrieveDatapointEvaluationsDatasetsType$outboundSchema,
3436
- value: z.number(),
3437
- }).transform((v) => {
3438
- return remap$(v, {
3439
- evaluationType: "evaluation_type",
3440
- humanReviewId: "human_review_id",
3441
- reviewedById: "reviewed_by_id",
3442
- reviewedAt: "reviewed_at",
3443
- });
3444
- });
3445
-
3446
- /**
3447
- * @internal
3448
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3449
- */
3450
- export namespace RetrieveDatapointEvaluations2$ {
3451
- /** @deprecated use `RetrieveDatapointEvaluations2$inboundSchema` instead. */
3452
- export const inboundSchema = RetrieveDatapointEvaluations2$inboundSchema;
3453
- /** @deprecated use `RetrieveDatapointEvaluations2$outboundSchema` instead. */
3454
- export const outboundSchema = RetrieveDatapointEvaluations2$outboundSchema;
3455
- /** @deprecated use `RetrieveDatapointEvaluations2$Outbound` instead. */
3456
- export type Outbound = RetrieveDatapointEvaluations2$Outbound;
3457
- }
3458
-
3459
- export function retrieveDatapointEvaluations2ToJSON(
3460
- retrieveDatapointEvaluations2: RetrieveDatapointEvaluations2,
3461
- ): string {
3462
- return JSON.stringify(
3463
- RetrieveDatapointEvaluations2$outboundSchema.parse(
3464
- retrieveDatapointEvaluations2,
3465
- ),
3466
- );
3467
- }
3468
-
3469
- export function retrieveDatapointEvaluations2FromJSON(
3470
- jsonString: string,
3471
- ): SafeParseResult<RetrieveDatapointEvaluations2, SDKValidationError> {
3472
- return safeParse(
3473
- jsonString,
3474
- (x) => RetrieveDatapointEvaluations2$inboundSchema.parse(JSON.parse(x)),
3475
- `Failed to parse 'RetrieveDatapointEvaluations2' from JSON`,
3476
- );
3477
- }
3478
-
3479
- /** @internal */
3480
- export const RetrieveDatapointEvaluationsEvaluationType$inboundSchema:
3481
- z.ZodNativeEnum<typeof RetrieveDatapointEvaluationsEvaluationType> = z
3482
- .nativeEnum(RetrieveDatapointEvaluationsEvaluationType);
3483
-
3484
- /** @internal */
3485
- export const RetrieveDatapointEvaluationsEvaluationType$outboundSchema:
3486
- z.ZodNativeEnum<typeof RetrieveDatapointEvaluationsEvaluationType> =
3487
- RetrieveDatapointEvaluationsEvaluationType$inboundSchema;
3488
-
3489
- /**
3490
- * @internal
3491
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3492
- */
3493
- export namespace RetrieveDatapointEvaluationsEvaluationType$ {
3494
- /** @deprecated use `RetrieveDatapointEvaluationsEvaluationType$inboundSchema` instead. */
3495
- export const inboundSchema =
3496
- RetrieveDatapointEvaluationsEvaluationType$inboundSchema;
3497
- /** @deprecated use `RetrieveDatapointEvaluationsEvaluationType$outboundSchema` instead. */
3498
- export const outboundSchema =
3499
- RetrieveDatapointEvaluationsEvaluationType$outboundSchema;
3500
- }
3501
-
3502
- /** @internal */
3503
- export const RetrieveDatapointEvaluationsSource$inboundSchema: z.ZodNativeEnum<
3504
- typeof RetrieveDatapointEvaluationsSource
3505
- > = z.nativeEnum(RetrieveDatapointEvaluationsSource);
3506
-
3507
- /** @internal */
3508
- export const RetrieveDatapointEvaluationsSource$outboundSchema: z.ZodNativeEnum<
3509
- typeof RetrieveDatapointEvaluationsSource
3510
- > = RetrieveDatapointEvaluationsSource$inboundSchema;
3511
-
3512
- /**
3513
- * @internal
3514
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3515
- */
3516
- export namespace RetrieveDatapointEvaluationsSource$ {
3517
- /** @deprecated use `RetrieveDatapointEvaluationsSource$inboundSchema` instead. */
3518
- export const inboundSchema = RetrieveDatapointEvaluationsSource$inboundSchema;
3519
- /** @deprecated use `RetrieveDatapointEvaluationsSource$outboundSchema` instead. */
3520
- export const outboundSchema =
3521
- RetrieveDatapointEvaluationsSource$outboundSchema;
3522
- }
3523
-
3524
- /** @internal */
3525
- export const RetrieveDatapointEvaluationsType$inboundSchema: z.ZodNativeEnum<
3526
- typeof RetrieveDatapointEvaluationsType
3527
- > = z.nativeEnum(RetrieveDatapointEvaluationsType);
3528
-
3529
- /** @internal */
3530
- export const RetrieveDatapointEvaluationsType$outboundSchema: z.ZodNativeEnum<
3531
- typeof RetrieveDatapointEvaluationsType
3532
- > = RetrieveDatapointEvaluationsType$inboundSchema;
3533
-
3534
- /**
3535
- * @internal
3536
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3537
- */
3538
- export namespace RetrieveDatapointEvaluationsType$ {
3539
- /** @deprecated use `RetrieveDatapointEvaluationsType$inboundSchema` instead. */
3540
- export const inboundSchema = RetrieveDatapointEvaluationsType$inboundSchema;
3541
- /** @deprecated use `RetrieveDatapointEvaluationsType$outboundSchema` instead. */
3542
- export const outboundSchema = RetrieveDatapointEvaluationsType$outboundSchema;
3543
- }
3544
-
3545
- /** @internal */
3546
- export const RetrieveDatapointEvaluations1$inboundSchema: z.ZodType<
3547
- RetrieveDatapointEvaluations1,
3548
- z.ZodTypeDef,
3549
- unknown
3550
- > = z.object({
3551
- id: z.string(),
3552
- evaluation_type: RetrieveDatapointEvaluationsEvaluationType$inboundSchema,
3553
- human_review_id: z.string(),
3554
- source: RetrieveDatapointEvaluationsSource$inboundSchema.default("orq"),
3555
- reviewed_by_id: z.string(),
3556
- reviewed_at: z.string().datetime({ offset: true }).default(
3557
- "2025-10-31T10:52:06.497Z",
3558
- ).transform(v => new Date(v)),
3559
- type: RetrieveDatapointEvaluationsType$inboundSchema,
3560
- value: z.string(),
3561
- }).transform((v) => {
3562
- return remap$(v, {
3563
- "evaluation_type": "evaluationType",
3564
- "human_review_id": "humanReviewId",
3565
- "reviewed_by_id": "reviewedById",
3566
- "reviewed_at": "reviewedAt",
3567
- });
3568
- });
3569
-
3570
- /** @internal */
3571
- export type RetrieveDatapointEvaluations1$Outbound = {
3572
- id: string;
3573
- evaluation_type: string;
3574
- human_review_id: string;
3575
- source: string;
3576
- reviewed_by_id: string;
3577
- reviewed_at: string;
3578
- type: string;
3579
- value: string;
3580
- };
3581
-
3582
- /** @internal */
3583
- export const RetrieveDatapointEvaluations1$outboundSchema: z.ZodType<
3584
- RetrieveDatapointEvaluations1$Outbound,
3585
- z.ZodTypeDef,
3586
- RetrieveDatapointEvaluations1
3587
- > = z.object({
3588
- id: z.string(),
3589
- evaluationType: RetrieveDatapointEvaluationsEvaluationType$outboundSchema,
3590
- humanReviewId: z.string(),
3591
- source: RetrieveDatapointEvaluationsSource$outboundSchema.default("orq"),
3592
- reviewedById: z.string(),
3593
- reviewedAt: z.date().default(() => new Date("2025-10-31T10:52:06.497Z"))
3594
- .transform(v => v.toISOString()),
3595
- type: RetrieveDatapointEvaluationsType$outboundSchema,
3596
- value: z.string(),
3597
- }).transform((v) => {
3598
- return remap$(v, {
3599
- evaluationType: "evaluation_type",
3600
- humanReviewId: "human_review_id",
3601
- reviewedById: "reviewed_by_id",
3602
- reviewedAt: "reviewed_at",
3603
- });
3604
- });
3605
-
3606
- /**
3607
- * @internal
3608
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3609
- */
3610
- export namespace RetrieveDatapointEvaluations1$ {
3611
- /** @deprecated use `RetrieveDatapointEvaluations1$inboundSchema` instead. */
3612
- export const inboundSchema = RetrieveDatapointEvaluations1$inboundSchema;
3613
- /** @deprecated use `RetrieveDatapointEvaluations1$outboundSchema` instead. */
3614
- export const outboundSchema = RetrieveDatapointEvaluations1$outboundSchema;
3615
- /** @deprecated use `RetrieveDatapointEvaluations1$Outbound` instead. */
3616
- export type Outbound = RetrieveDatapointEvaluations1$Outbound;
3617
- }
3618
-
3619
- export function retrieveDatapointEvaluations1ToJSON(
3620
- retrieveDatapointEvaluations1: RetrieveDatapointEvaluations1,
3621
- ): string {
3622
- return JSON.stringify(
3623
- RetrieveDatapointEvaluations1$outboundSchema.parse(
3624
- retrieveDatapointEvaluations1,
3625
- ),
3626
- );
3627
- }
3628
-
3629
- export function retrieveDatapointEvaluations1FromJSON(
3630
- jsonString: string,
3631
- ): SafeParseResult<RetrieveDatapointEvaluations1, SDKValidationError> {
3632
- return safeParse(
3633
- jsonString,
3634
- (x) => RetrieveDatapointEvaluations1$inboundSchema.parse(JSON.parse(x)),
3635
- `Failed to parse 'RetrieveDatapointEvaluations1' from JSON`,
3636
- );
3637
- }
3638
-
3639
- /** @internal */
3640
- export const RetrieveDatapointEvaluations$inboundSchema: z.ZodType<
3641
- RetrieveDatapointEvaluations,
3642
- z.ZodTypeDef,
3643
- unknown
3644
- > = z.union([
3645
- z.lazy(() => RetrieveDatapointEvaluations1$inboundSchema),
3646
- z.lazy(() => RetrieveDatapointEvaluations2$inboundSchema),
3647
- z.lazy(() => RetrieveDatapointEvaluations3$inboundSchema),
3648
- ]);
3649
-
3650
- /** @internal */
3651
- export type RetrieveDatapointEvaluations$Outbound =
3652
- | RetrieveDatapointEvaluations1$Outbound
3653
- | RetrieveDatapointEvaluations2$Outbound
3654
- | RetrieveDatapointEvaluations3$Outbound;
3655
-
3656
- /** @internal */
3657
- export const RetrieveDatapointEvaluations$outboundSchema: z.ZodType<
3658
- RetrieveDatapointEvaluations$Outbound,
3659
- z.ZodTypeDef,
3660
- RetrieveDatapointEvaluations
3661
- > = z.union([
3662
- z.lazy(() => RetrieveDatapointEvaluations1$outboundSchema),
3663
- z.lazy(() => RetrieveDatapointEvaluations2$outboundSchema),
3664
- z.lazy(() => RetrieveDatapointEvaluations3$outboundSchema),
3665
- ]);
3666
-
3667
- /**
3668
- * @internal
3669
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3670
- */
3671
- export namespace RetrieveDatapointEvaluations$ {
3672
- /** @deprecated use `RetrieveDatapointEvaluations$inboundSchema` instead. */
3673
- export const inboundSchema = RetrieveDatapointEvaluations$inboundSchema;
3674
- /** @deprecated use `RetrieveDatapointEvaluations$outboundSchema` instead. */
3675
- export const outboundSchema = RetrieveDatapointEvaluations$outboundSchema;
3676
- /** @deprecated use `RetrieveDatapointEvaluations$Outbound` instead. */
3677
- export type Outbound = RetrieveDatapointEvaluations$Outbound;
3678
- }
3679
-
3680
- export function retrieveDatapointEvaluationsToJSON(
3681
- retrieveDatapointEvaluations: RetrieveDatapointEvaluations,
3682
- ): string {
3683
- return JSON.stringify(
3684
- RetrieveDatapointEvaluations$outboundSchema.parse(
3685
- retrieveDatapointEvaluations,
3686
- ),
3687
- );
3688
- }
3689
-
3690
- export function retrieveDatapointEvaluationsFromJSON(
3691
- jsonString: string,
3692
- ): SafeParseResult<RetrieveDatapointEvaluations, SDKValidationError> {
3693
- return safeParse(
3694
- jsonString,
3695
- (x) => RetrieveDatapointEvaluations$inboundSchema.parse(JSON.parse(x)),
3696
- `Failed to parse 'RetrieveDatapointEvaluations' from JSON`,
3697
- );
3698
- }
3699
-
3700
- /** @internal */
3701
- export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
3702
- RetrieveDatapointResponseBody,
3703
- z.ZodTypeDef,
3704
- unknown
3705
- > = z.object({
3706
- _id: z.string(),
3707
- workspace_id: z.string(),
3708
- inputs: z.record(z.any()).optional(),
3709
- messages: z.array(
3710
- z.union([
3711
- z.lazy(() => RetrieveDatapointMessagesToolMessage$inboundSchema),
3712
- z.lazy(() => RetrieveDatapointMessagesDeveloperMessage$inboundSchema),
3713
- z.lazy(() => RetrieveDatapointMessagesSystemMessage$inboundSchema),
3714
- z.lazy(() => RetrieveDatapointMessagesUserMessage$inboundSchema),
3715
- z.lazy(() => RetrieveDatapointMessagesAssistantMessage$inboundSchema),
3716
- ]),
3717
- ).optional(),
3718
- expected_output: z.string().optional(),
3719
- evaluations: z.array(
3720
- z.union([
3721
- z.lazy(() => RetrieveDatapointEvaluations1$inboundSchema),
3722
- z.lazy(() => RetrieveDatapointEvaluations2$inboundSchema),
3723
- z.lazy(() => RetrieveDatapointEvaluations3$inboundSchema),
3724
- ]),
3725
- ).optional(),
3726
- dataset_id: z.string(),
3727
- snapshot_version: z.string().optional(),
3728
- created_by_id: z.string().optional(),
3729
- updated_by_id: z.string().optional(),
3730
- created: z.string().datetime({ offset: true }).transform(v => new Date(v))
3731
- .optional(),
3732
- updated: z.string().datetime({ offset: true }).default(
3733
- "2025-10-31T10:51:55.200Z",
3734
- ).transform(v => new Date(v)),
3735
- }).transform((v) => {
3736
- return remap$(v, {
3737
- "_id": "id",
3738
- "workspace_id": "workspaceId",
3739
- "expected_output": "expectedOutput",
3740
- "dataset_id": "datasetId",
3741
- "snapshot_version": "snapshotVersion",
3742
- "created_by_id": "createdById",
3743
- "updated_by_id": "updatedById",
3744
- });
3745
- });
3746
-
3747
- /** @internal */
3748
- export type RetrieveDatapointResponseBody$Outbound = {
3749
- _id: string;
3750
- workspace_id: string;
3751
- inputs?: { [k: string]: any } | undefined;
3752
- messages?:
3753
- | Array<
3754
- | RetrieveDatapointMessagesToolMessage$Outbound
3755
- | RetrieveDatapointMessagesDeveloperMessage$Outbound
3756
- | RetrieveDatapointMessagesSystemMessage$Outbound
3757
- | RetrieveDatapointMessagesUserMessage$Outbound
3758
- | RetrieveDatapointMessagesAssistantMessage$Outbound
3759
- >
3760
- | undefined;
3761
- expected_output?: string | undefined;
3762
- evaluations?:
3763
- | Array<
3764
- | RetrieveDatapointEvaluations1$Outbound
3765
- | RetrieveDatapointEvaluations2$Outbound
3766
- | RetrieveDatapointEvaluations3$Outbound
3767
- >
3768
- | undefined;
3769
- dataset_id: string;
3770
- snapshot_version?: string | undefined;
3771
- created_by_id?: string | undefined;
3772
- updated_by_id?: string | undefined;
3773
- created?: string | undefined;
3774
- updated: string;
3775
- };
3776
-
3777
- /** @internal */
3778
- export const RetrieveDatapointResponseBody$outboundSchema: z.ZodType<
3779
- RetrieveDatapointResponseBody$Outbound,
3780
- z.ZodTypeDef,
3781
- RetrieveDatapointResponseBody
3782
- > = z.object({
3783
- id: z.string(),
3784
- workspaceId: z.string(),
3785
- inputs: z.record(z.any()).optional(),
3786
- messages: z.array(
3787
- z.union([
3788
- z.lazy(() => RetrieveDatapointMessagesToolMessage$outboundSchema),
3789
- z.lazy(() => RetrieveDatapointMessagesDeveloperMessage$outboundSchema),
3790
- z.lazy(() => RetrieveDatapointMessagesSystemMessage$outboundSchema),
3791
- z.lazy(() => RetrieveDatapointMessagesUserMessage$outboundSchema),
3792
- z.lazy(() => RetrieveDatapointMessagesAssistantMessage$outboundSchema),
3793
- ]),
3794
- ).optional(),
3795
- expectedOutput: z.string().optional(),
3796
- evaluations: z.array(
3797
- z.union([
3798
- z.lazy(() => RetrieveDatapointEvaluations1$outboundSchema),
3799
- z.lazy(() => RetrieveDatapointEvaluations2$outboundSchema),
3800
- z.lazy(() => RetrieveDatapointEvaluations3$outboundSchema),
3801
- ]),
3802
- ).optional(),
3803
- datasetId: z.string(),
3804
- snapshotVersion: z.string().optional(),
3805
- createdById: z.string().optional(),
3806
- updatedById: z.string().optional(),
3807
- created: z.date().transform(v => v.toISOString()).optional(),
3808
- updated: z.date().default(() => new Date("2025-10-31T10:51:55.200Z"))
3809
- .transform(v => v.toISOString()),
3810
- }).transform((v) => {
3811
- return remap$(v, {
3812
- id: "_id",
3813
- workspaceId: "workspace_id",
3814
- expectedOutput: "expected_output",
3815
- datasetId: "dataset_id",
3816
- snapshotVersion: "snapshot_version",
3817
- createdById: "created_by_id",
3818
- updatedById: "updated_by_id",
3819
- });
3820
- });
3821
-
3822
- /**
3823
- * @internal
3824
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3825
- */
3826
- export namespace RetrieveDatapointResponseBody$ {
3827
- /** @deprecated use `RetrieveDatapointResponseBody$inboundSchema` instead. */
3828
- export const inboundSchema = RetrieveDatapointResponseBody$inboundSchema;
3829
- /** @deprecated use `RetrieveDatapointResponseBody$outboundSchema` instead. */
3830
- export const outboundSchema = RetrieveDatapointResponseBody$outboundSchema;
3831
- /** @deprecated use `RetrieveDatapointResponseBody$Outbound` instead. */
3832
- export type Outbound = RetrieveDatapointResponseBody$Outbound;
3833
- }
3834
-
3835
- export function retrieveDatapointResponseBodyToJSON(
3836
- retrieveDatapointResponseBody: RetrieveDatapointResponseBody,
3837
- ): string {
3838
- return JSON.stringify(
3839
- RetrieveDatapointResponseBody$outboundSchema.parse(
3840
- retrieveDatapointResponseBody,
3841
- ),
3842
- );
3843
- }
3844
-
3845
- export function retrieveDatapointResponseBodyFromJSON(
3846
- jsonString: string,
3847
- ): SafeParseResult<RetrieveDatapointResponseBody, SDKValidationError> {
3848
- return safeParse(
3849
- jsonString,
3850
- (x) => RetrieveDatapointResponseBody$inboundSchema.parse(JSON.parse(x)),
3851
- `Failed to parse 'RetrieveDatapointResponseBody' from JSON`,
3852
- );
3853
- }