@orq-ai/node 3.6.0-rc.9 → 3.6.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 (403) hide show
  1. package/README.md +2 -0
  2. package/bin/mcp-server.js +4598 -1269
  3. package/bin/mcp-server.js.map +55 -43
  4. package/docs/sdks/knowledge/README.md +93 -4
  5. package/funcs/knowledgeCreateDatasource.js +2 -2
  6. package/funcs/knowledgeCreateDatasource.js.map +1 -1
  7. package/funcs/knowledgeSearch.d.ts +16 -0
  8. package/funcs/knowledgeSearch.d.ts.map +1 -0
  9. package/funcs/knowledgeSearch.js +118 -0
  10. package/funcs/knowledgeSearch.js.map +1 -0
  11. package/jsr.json +1 -1
  12. package/lib/config.d.ts +3 -3
  13. package/lib/config.js +3 -3
  14. package/lib/config.js.map +1 -1
  15. package/mcp-server/cli/start/impl.js +2 -2
  16. package/mcp-server/cli/start/impl.js.map +1 -1
  17. package/mcp-server/mcp-server.js +1 -1
  18. package/mcp-server/mcp-server.js.map +1 -1
  19. package/mcp-server/server.d.ts.map +1 -1
  20. package/mcp-server/server.js +3 -1
  21. package/mcp-server/server.js.map +1 -1
  22. package/mcp-server/tools/knowledgeSearch.d.ts +8 -0
  23. package/mcp-server/tools/knowledgeSearch.d.ts.map +1 -0
  24. package/mcp-server/tools/knowledgeSearch.js +64 -0
  25. package/mcp-server/tools/knowledgeSearch.js.map +1 -0
  26. package/models/components/deployments.d.ts +1216 -53
  27. package/models/components/deployments.d.ts.map +1 -1
  28. package/models/components/deployments.js +1461 -103
  29. package/models/components/deployments.js.map +1 -1
  30. package/models/operations/bulkcreatedatapoints.d.ts +194 -12
  31. package/models/operations/bulkcreatedatapoints.d.ts.map +1 -1
  32. package/models/operations/bulkcreatedatapoints.js +192 -4
  33. package/models/operations/bulkcreatedatapoints.js.map +1 -1
  34. package/models/operations/createchunk.d.ts +32 -17
  35. package/models/operations/createchunk.d.ts.map +1 -1
  36. package/models/operations/createchunk.js +30 -19
  37. package/models/operations/createchunk.js.map +1 -1
  38. package/models/operations/createcontact.js +2 -2
  39. package/models/operations/createdataset.js +2 -2
  40. package/models/operations/createdatasetitem.d.ts +194 -12
  41. package/models/operations/createdatasetitem.d.ts.map +1 -1
  42. package/models/operations/createdatasetitem.js +191 -4
  43. package/models/operations/createdatasetitem.js.map +1 -1
  44. package/models/operations/createdatasource.js +2 -2
  45. package/models/operations/createprompt.d.ts +194 -12
  46. package/models/operations/createprompt.d.ts.map +1 -1
  47. package/models/operations/createprompt.js +192 -5
  48. package/models/operations/createprompt.js.map +1 -1
  49. package/models/operations/deploymentgetconfig.d.ts +1343 -89
  50. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  51. package/models/operations/deploymentgetconfig.js +1451 -8
  52. package/models/operations/deploymentgetconfig.js.map +1 -1
  53. package/models/operations/deployments.d.ts +105 -14
  54. package/models/operations/deployments.d.ts.map +1 -1
  55. package/models/operations/deployments.js +108 -15
  56. package/models/operations/deployments.js.map +1 -1
  57. package/models/operations/deploymentstream.d.ts +1163 -0
  58. package/models/operations/deploymentstream.d.ts.map +1 -1
  59. package/models/operations/deploymentstream.js +1319 -2
  60. package/models/operations/deploymentstream.js.map +1 -1
  61. package/models/operations/fileget.js +2 -2
  62. package/models/operations/filelist.js +2 -2
  63. package/models/operations/fileupload.js +2 -2
  64. package/models/operations/getallprompts.d.ts +97 -6
  65. package/models/operations/getallprompts.d.ts.map +1 -1
  66. package/models/operations/getallprompts.js +96 -3
  67. package/models/operations/getallprompts.js.map +1 -1
  68. package/models/operations/getonechunk.d.ts +24 -3
  69. package/models/operations/getonechunk.d.ts.map +1 -1
  70. package/models/operations/getonechunk.js +26 -3
  71. package/models/operations/getonechunk.js.map +1 -1
  72. package/models/operations/getoneprompt.d.ts +97 -6
  73. package/models/operations/getoneprompt.d.ts.map +1 -1
  74. package/models/operations/getoneprompt.js +96 -3
  75. package/models/operations/getoneprompt.js.map +1 -1
  76. package/models/operations/getpromptversion.d.ts +97 -6
  77. package/models/operations/getpromptversion.d.ts.map +1 -1
  78. package/models/operations/getpromptversion.js +96 -3
  79. package/models/operations/getpromptversion.js.map +1 -1
  80. package/models/operations/index.d.ts +1 -0
  81. package/models/operations/index.d.ts.map +1 -1
  82. package/models/operations/index.js +1 -0
  83. package/models/operations/index.js.map +1 -1
  84. package/models/operations/listchunks.d.ts +24 -3
  85. package/models/operations/listchunks.d.ts.map +1 -1
  86. package/models/operations/listchunks.js +26 -3
  87. package/models/operations/listchunks.js.map +1 -1
  88. package/models/operations/listdatasetdatapoints.d.ts +97 -6
  89. package/models/operations/listdatasetdatapoints.d.ts.map +1 -1
  90. package/models/operations/listdatasetdatapoints.js +98 -4
  91. package/models/operations/listdatasetdatapoints.js.map +1 -1
  92. package/models/operations/listdatasets.js +2 -2
  93. package/models/operations/listdatasources.js +2 -2
  94. package/models/operations/listpromptversions.d.ts +97 -6
  95. package/models/operations/listpromptversions.d.ts.map +1 -1
  96. package/models/operations/listpromptversions.js +96 -3
  97. package/models/operations/listpromptversions.js.map +1 -1
  98. package/models/operations/retrievedatapoint.d.ts +97 -6
  99. package/models/operations/retrievedatapoint.d.ts.map +1 -1
  100. package/models/operations/retrievedatapoint.js +97 -3
  101. package/models/operations/retrievedatapoint.js.map +1 -1
  102. package/models/operations/retrievedataset.js +2 -2
  103. package/models/operations/retrievedatasource.js +2 -2
  104. package/models/operations/searchknowledge.d.ts +1379 -0
  105. package/models/operations/searchknowledge.d.ts.map +1 -0
  106. package/models/operations/searchknowledge.js +1586 -0
  107. package/models/operations/searchknowledge.js.map +1 -0
  108. package/models/operations/updatechunk.d.ts +32 -17
  109. package/models/operations/updatechunk.d.ts.map +1 -1
  110. package/models/operations/updatechunk.js +30 -19
  111. package/models/operations/updatechunk.js.map +1 -1
  112. package/models/operations/updatedatapoint.d.ts +194 -12
  113. package/models/operations/updatedatapoint.d.ts.map +1 -1
  114. package/models/operations/updatedatapoint.js +191 -4
  115. package/models/operations/updatedatapoint.js.map +1 -1
  116. package/models/operations/updatedataset.js +2 -2
  117. package/models/operations/updatedatasource.js +2 -2
  118. package/models/operations/updateprompt.d.ts +194 -12
  119. package/models/operations/updateprompt.d.ts.map +1 -1
  120. package/models/operations/updateprompt.js +192 -5
  121. package/models/operations/updateprompt.js.map +1 -1
  122. package/package.json +3 -4
  123. package/packages/orq-rc/FUNCTIONS.md +106 -0
  124. package/packages/orq-rc/README.md +707 -0
  125. package/packages/orq-rc/RUNTIMES.md +48 -0
  126. package/packages/orq-rc/docs/sdks/contacts/README.md +84 -0
  127. package/packages/orq-rc/docs/sdks/datasets/README.md +1027 -0
  128. package/packages/orq-rc/docs/sdks/deployments/README.md +405 -0
  129. package/packages/orq-rc/docs/sdks/feedback/README.md +92 -0
  130. package/packages/orq-rc/docs/sdks/files/README.md +311 -0
  131. package/packages/orq-rc/docs/sdks/knowledge/README.md +1285 -0
  132. package/packages/orq-rc/docs/sdks/metrics/README.md +86 -0
  133. package/packages/orq-rc/docs/sdks/models/README.md +79 -0
  134. package/packages/orq-rc/docs/sdks/orq/README.md +10 -0
  135. package/packages/orq-rc/docs/sdks/prompts/README.md +576 -0
  136. package/packages/orq-rc/docs/sdks/remoteconfigs/README.md +80 -0
  137. package/packages/orq-rc/jsr.json +28 -0
  138. package/packages/orq-rc/package-lock.json +3217 -0
  139. package/packages/orq-rc/package.json +45 -0
  140. package/packages/orq-rc/src/core.ts +13 -0
  141. package/packages/orq-rc/src/funcs/contactsCreate.ts +154 -0
  142. package/packages/orq-rc/src/funcs/datasetsClear.ts +161 -0
  143. package/packages/orq-rc/src/funcs/datasetsCreate.ts +159 -0
  144. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +161 -0
  145. package/packages/orq-rc/src/funcs/datasetsCreateDatapoints.ts +165 -0
  146. package/packages/orq-rc/src/funcs/datasetsCreateExperiment.ts +162 -0
  147. package/packages/orq-rc/src/funcs/datasetsDelete.ts +161 -0
  148. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +176 -0
  149. package/packages/orq-rc/src/funcs/datasetsList.ts +161 -0
  150. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +168 -0
  151. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +169 -0
  152. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +175 -0
  153. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +170 -0
  154. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +173 -0
  155. package/packages/orq-rc/src/funcs/deploymentsCreateExperiment.ts +167 -0
  156. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +162 -0
  157. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +170 -0
  158. package/packages/orq-rc/src/funcs/deploymentsList.ts +170 -0
  159. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +162 -0
  160. package/packages/orq-rc/src/funcs/deploymentsStream.ts +178 -0
  161. package/packages/orq-rc/src/funcs/feedbackCreate.ts +154 -0
  162. package/packages/orq-rc/src/funcs/filesCreate.ts +174 -0
  163. package/packages/orq-rc/src/funcs/filesDelete.ts +158 -0
  164. package/packages/orq-rc/src/funcs/filesGet.ts +160 -0
  165. package/packages/orq-rc/src/funcs/filesList.ts +161 -0
  166. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +152 -0
  167. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +165 -0
  168. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +160 -0
  169. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +161 -0
  170. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +168 -0
  171. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +167 -0
  172. package/packages/orq-rc/src/funcs/knowledgeList.ts +163 -0
  173. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +172 -0
  174. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +168 -0
  175. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +160 -0
  176. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +167 -0
  177. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +163 -0
  178. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +161 -0
  179. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +158 -0
  180. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +168 -0
  181. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +164 -0
  182. package/packages/orq-rc/src/funcs/modelsList.ts +136 -0
  183. package/packages/orq-rc/src/funcs/promptsCreate.ts +154 -0
  184. package/packages/orq-rc/src/funcs/promptsDelete.ts +158 -0
  185. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +175 -0
  186. package/packages/orq-rc/src/funcs/promptsList.ts +161 -0
  187. package/packages/orq-rc/src/funcs/promptsListVersions.ts +167 -0
  188. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +160 -0
  189. package/packages/orq-rc/src/funcs/promptsUpdate.ts +167 -0
  190. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +155 -0
  191. package/packages/orq-rc/src/hooks/global.ts +44 -0
  192. package/packages/orq-rc/src/hooks/hooks.ts +132 -0
  193. package/packages/orq-rc/src/hooks/index.ts +6 -0
  194. package/packages/orq-rc/src/hooks/registration.ts +15 -0
  195. package/packages/orq-rc/src/hooks/types.ts +110 -0
  196. package/packages/orq-rc/src/index.ts +7 -0
  197. package/packages/orq-rc/src/lib/base64.ts +37 -0
  198. package/packages/orq-rc/src/lib/config.ts +70 -0
  199. package/packages/orq-rc/src/lib/dlv.ts +53 -0
  200. package/packages/orq-rc/src/lib/encodings.ts +483 -0
  201. package/packages/orq-rc/src/lib/env.ts +73 -0
  202. package/packages/orq-rc/src/lib/event-streams.ts +264 -0
  203. package/packages/orq-rc/src/lib/files.ts +40 -0
  204. package/packages/orq-rc/src/lib/http.ts +323 -0
  205. package/packages/orq-rc/src/lib/is-plain-object.ts +43 -0
  206. package/packages/orq-rc/src/lib/logger.ts +9 -0
  207. package/packages/orq-rc/src/lib/matchers.ts +345 -0
  208. package/packages/orq-rc/src/lib/primitives.ts +150 -0
  209. package/packages/orq-rc/src/lib/retries.ts +218 -0
  210. package/packages/orq-rc/src/lib/schemas.ts +91 -0
  211. package/packages/orq-rc/src/lib/sdks.ts +401 -0
  212. package/packages/orq-rc/src/lib/security.ts +261 -0
  213. package/packages/orq-rc/src/lib/url.ts +33 -0
  214. package/packages/orq-rc/src/mcp-server/cli/start/command.ts +125 -0
  215. package/packages/orq-rc/src/mcp-server/cli/start/impl.ts +140 -0
  216. package/packages/orq-rc/src/mcp-server/cli.ts +13 -0
  217. package/packages/orq-rc/src/mcp-server/console-logger.ts +71 -0
  218. package/packages/orq-rc/src/mcp-server/extensions.ts +17 -0
  219. package/packages/orq-rc/src/mcp-server/mcp-server.ts +26 -0
  220. package/packages/orq-rc/src/mcp-server/prompts.ts +117 -0
  221. package/packages/orq-rc/src/mcp-server/resources.ts +172 -0
  222. package/packages/orq-rc/src/mcp-server/scopes.ts +7 -0
  223. package/packages/orq-rc/src/mcp-server/server.ts +163 -0
  224. package/packages/orq-rc/src/mcp-server/shared.ts +75 -0
  225. package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +37 -0
  226. package/packages/orq-rc/src/mcp-server/tools/datasetsClear.ts +35 -0
  227. package/packages/orq-rc/src/mcp-server/tools/datasetsCreate.ts +37 -0
  228. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoint.ts +37 -0
  229. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoints.ts +37 -0
  230. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateExperiment.ts +37 -0
  231. package/packages/orq-rc/src/mcp-server/tools/datasetsDelete.ts +35 -0
  232. package/packages/orq-rc/src/mcp-server/tools/datasetsDeleteDatapoint.ts +35 -0
  233. package/packages/orq-rc/src/mcp-server/tools/datasetsList.ts +37 -0
  234. package/packages/orq-rc/src/mcp-server/tools/datasetsListDatapoints.ts +37 -0
  235. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieve.ts +37 -0
  236. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieveDatapoint.ts +37 -0
  237. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdate.ts +37 -0
  238. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdateDatapoint.ts +35 -0
  239. package/packages/orq-rc/src/mcp-server/tools/deploymentsCreateExperiment.ts +37 -0
  240. package/packages/orq-rc/src/mcp-server/tools/deploymentsGetConfig.ts +37 -0
  241. package/packages/orq-rc/src/mcp-server/tools/deploymentsInvoke.ts +37 -0
  242. package/packages/orq-rc/src/mcp-server/tools/deploymentsList.ts +37 -0
  243. package/packages/orq-rc/src/mcp-server/tools/deploymentsMetricsCreate.ts +37 -0
  244. package/packages/orq-rc/src/mcp-server/tools/deploymentsStream.ts +37 -0
  245. package/packages/orq-rc/src/mcp-server/tools/feedbackCreate.ts +37 -0
  246. package/packages/orq-rc/src/mcp-server/tools/filesCreate.ts +37 -0
  247. package/packages/orq-rc/src/mcp-server/tools/filesDelete.ts +33 -0
  248. package/packages/orq-rc/src/mcp-server/tools/filesGet.ts +37 -0
  249. package/packages/orq-rc/src/mcp-server/tools/filesList.ts +37 -0
  250. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreate.ts +35 -0
  251. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateChunks.ts +35 -0
  252. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateDatasource.ts +35 -0
  253. package/packages/orq-rc/src/mcp-server/tools/knowledgeDelete.ts +35 -0
  254. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunk.ts +33 -0
  255. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteDatasource.ts +35 -0
  256. package/packages/orq-rc/src/mcp-server/tools/knowledgeList.ts +37 -0
  257. package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunks.ts +35 -0
  258. package/packages/orq-rc/src/mcp-server/tools/knowledgeListDatasources.ts +35 -0
  259. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieve.ts +37 -0
  260. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveChunk.ts +35 -0
  261. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveDatasource.ts +35 -0
  262. package/packages/orq-rc/src/mcp-server/tools/knowledgeSearch.ts +37 -0
  263. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdate.ts +35 -0
  264. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateChunk.ts +35 -0
  265. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateDatasource.ts +35 -0
  266. package/packages/orq-rc/src/mcp-server/tools/modelsList.ts +30 -0
  267. package/packages/orq-rc/src/mcp-server/tools/promptsCreate.ts +35 -0
  268. package/packages/orq-rc/src/mcp-server/tools/promptsDelete.ts +33 -0
  269. package/packages/orq-rc/src/mcp-server/tools/promptsGetVersion.ts +37 -0
  270. package/packages/orq-rc/src/mcp-server/tools/promptsList.ts +37 -0
  271. package/packages/orq-rc/src/mcp-server/tools/promptsListVersions.ts +37 -0
  272. package/packages/orq-rc/src/mcp-server/tools/promptsRetrieve.ts +37 -0
  273. package/packages/orq-rc/src/mcp-server/tools/promptsUpdate.ts +35 -0
  274. package/packages/orq-rc/src/mcp-server/tools/remoteconfigsRetrieve.ts +36 -0
  275. package/packages/orq-rc/src/mcp-server/tools.ts +129 -0
  276. package/packages/orq-rc/src/models/components/deployments.ts +7289 -0
  277. package/packages/orq-rc/src/models/components/index.ts +6 -0
  278. package/packages/orq-rc/src/models/components/security.ts +71 -0
  279. package/packages/orq-rc/src/models/errors/apierror.ts +27 -0
  280. package/packages/orq-rc/src/models/errors/getpromptversion.ts +71 -0
  281. package/packages/orq-rc/src/models/errors/honoapierror.ts +82 -0
  282. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +62 -0
  283. package/packages/orq-rc/src/models/errors/index.ts +10 -0
  284. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +97 -0
  285. package/packages/orq-rc/src/models/errors/updateprompt.ts +71 -0
  286. package/packages/orq-rc/src/models/operations/bulkcreatedatapoints.ts +2232 -0
  287. package/packages/orq-rc/src/models/operations/cleardataset.ts +75 -0
  288. package/packages/orq-rc/src/models/operations/createchunk.ts +432 -0
  289. package/packages/orq-rc/src/models/operations/createcontact.ts +256 -0
  290. package/packages/orq-rc/src/models/operations/createdataset.ts +296 -0
  291. package/packages/orq-rc/src/models/operations/createdatasetexperiment.ts +307 -0
  292. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2149 -0
  293. package/packages/orq-rc/src/models/operations/createdatasource.ts +852 -0
  294. package/packages/orq-rc/src/models/operations/createdeploymentexperiment.ts +321 -0
  295. package/packages/orq-rc/src/models/operations/createfeedback.ts +286 -0
  296. package/packages/orq-rc/src/models/operations/createknowledge.ts +846 -0
  297. package/packages/orq-rc/src/models/operations/createprompt.ts +4079 -0
  298. package/packages/orq-rc/src/models/operations/deletechunk.ts +96 -0
  299. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +81 -0
  300. package/packages/orq-rc/src/models/operations/deletedataset.ts +75 -0
  301. package/packages/orq-rc/src/models/operations/deletedatasource.ts +87 -0
  302. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +78 -0
  303. package/packages/orq-rc/src/models/operations/deleteprompt.ts +69 -0
  304. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +5435 -0
  305. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +9378 -0
  306. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +1255 -0
  307. package/packages/orq-rc/src/models/operations/deployments.ts +2316 -0
  308. package/packages/orq-rc/src/models/operations/deploymentstream.ts +9499 -0
  309. package/packages/orq-rc/src/models/operations/filedelete.ts +78 -0
  310. package/packages/orq-rc/src/models/operations/fileget.ts +223 -0
  311. package/packages/orq-rc/src/models/operations/filelist.ts +337 -0
  312. package/packages/orq-rc/src/models/operations/fileupload.ts +327 -0
  313. package/packages/orq-rc/src/models/operations/getallprompts.ts +2294 -0
  314. package/packages/orq-rc/src/models/operations/getonechunk.ts +315 -0
  315. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +537 -0
  316. package/packages/orq-rc/src/models/operations/getoneprompt.ts +2155 -0
  317. package/packages/orq-rc/src/models/operations/getpromptversion.ts +2160 -0
  318. package/packages/orq-rc/src/models/operations/index.ts +54 -0
  319. package/packages/orq-rc/src/models/operations/listchunks.ts +494 -0
  320. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +1276 -0
  321. package/packages/orq-rc/src/models/operations/listdatasets.ts +406 -0
  322. package/packages/orq-rc/src/models/operations/listdatasources.ts +447 -0
  323. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +663 -0
  324. package/packages/orq-rc/src/models/operations/listmodels.ts +273 -0
  325. package/packages/orq-rc/src/models/operations/listpromptversions.ts +2292 -0
  326. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +190 -0
  327. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +1126 -0
  328. package/packages/orq-rc/src/models/operations/retrievedataset.ts +288 -0
  329. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +273 -0
  330. package/packages/orq-rc/src/models/operations/searchknowledge.ts +3367 -0
  331. package/packages/orq-rc/src/models/operations/updatechunk.ts +448 -0
  332. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2139 -0
  333. package/packages/orq-rc/src/models/operations/updatedataset.ts +393 -0
  334. package/packages/orq-rc/src/models/operations/updatedatasource.ts +345 -0
  335. package/packages/orq-rc/src/models/operations/updateknowledge.ts +980 -0
  336. package/packages/orq-rc/src/models/operations/updateprompt.ts +4261 -0
  337. package/packages/orq-rc/src/sdk/contacts.ts +27 -0
  338. package/packages/orq-rc/src/sdk/datasets.ts +240 -0
  339. package/packages/orq-rc/src/sdk/deployments.ts +107 -0
  340. package/packages/orq-rc/src/sdk/feedback.ts +27 -0
  341. package/packages/orq-rc/src/sdk/files.ts +78 -0
  342. package/packages/orq-rc/src/sdk/index.ts +5 -0
  343. package/packages/orq-rc/src/sdk/knowledge.ts +264 -0
  344. package/packages/orq-rc/src/sdk/metrics.ts +27 -0
  345. package/packages/orq-rc/src/sdk/models.ts +25 -0
  346. package/packages/orq-rc/src/sdk/prompts.ts +126 -0
  347. package/packages/orq-rc/src/sdk/remoteconfigs.ts +24 -0
  348. package/packages/orq-rc/src/sdk/sdk.ts +61 -0
  349. package/packages/orq-rc/src/types/async.ts +68 -0
  350. package/packages/orq-rc/src/types/blobs.ts +31 -0
  351. package/packages/orq-rc/src/types/constdatetime.ts +15 -0
  352. package/packages/orq-rc/src/types/enums.ts +16 -0
  353. package/packages/orq-rc/src/types/fp.ts +50 -0
  354. package/packages/orq-rc/src/types/index.ts +11 -0
  355. package/packages/orq-rc/src/types/operations.ts +105 -0
  356. package/packages/orq-rc/src/types/rfcdate.ts +54 -0
  357. package/packages/orq-rc/src/types/streams.ts +21 -0
  358. package/packages/orq-rc/tsconfig.json +41 -0
  359. package/sdk/knowledge.d.ts +7 -0
  360. package/sdk/knowledge.d.ts.map +1 -1
  361. package/sdk/knowledge.js +10 -0
  362. package/sdk/knowledge.js.map +1 -1
  363. package/src/funcs/knowledgeCreateDatasource.ts +2 -2
  364. package/src/funcs/knowledgeSearch.ts +161 -0
  365. package/src/lib/config.ts +3 -3
  366. package/src/mcp-server/cli/start/impl.ts +2 -2
  367. package/src/mcp-server/mcp-server.ts +1 -1
  368. package/src/mcp-server/server.ts +3 -1
  369. package/src/mcp-server/tools/knowledgeSearch.ts +37 -0
  370. package/src/models/components/deployments.ts +2762 -127
  371. package/src/models/operations/bulkcreatedatapoints.ts +416 -12
  372. package/src/models/operations/createchunk.ts +65 -35
  373. package/src/models/operations/createcontact.ts +2 -2
  374. package/src/models/operations/createdataset.ts +2 -2
  375. package/src/models/operations/createdatasetitem.ts +410 -13
  376. package/src/models/operations/createdatasource.ts +2 -2
  377. package/src/models/operations/createprompt.ts +400 -12
  378. package/src/models/operations/deploymentgetconfig.ts +2906 -105
  379. package/src/models/operations/deployments.ts +211 -23
  380. package/src/models/operations/deploymentstream.ts +3074 -98
  381. package/src/models/operations/fileget.ts +2 -2
  382. package/src/models/operations/filelist.ts +2 -2
  383. package/src/models/operations/fileupload.ts +2 -2
  384. package/src/models/operations/getallprompts.ts +200 -6
  385. package/src/models/operations/getonechunk.ts +55 -5
  386. package/src/models/operations/getoneprompt.ts +195 -6
  387. package/src/models/operations/getpromptversion.ts +204 -6
  388. package/src/models/operations/index.ts +1 -0
  389. package/src/models/operations/listchunks.ts +55 -5
  390. package/src/models/operations/listdatasetdatapoints.ts +207 -8
  391. package/src/models/operations/listdatasets.ts +2 -2
  392. package/src/models/operations/listdatasources.ts +2 -2
  393. package/src/models/operations/listpromptversions.ts +202 -6
  394. package/src/models/operations/retrievedatapoint.ts +204 -8
  395. package/src/models/operations/retrievedataset.ts +2 -2
  396. package/src/models/operations/retrievedatasource.ts +2 -2
  397. package/src/models/operations/searchknowledge.ts +3367 -0
  398. package/src/models/operations/updatechunk.ts +65 -35
  399. package/src/models/operations/updatedatapoint.ts +412 -14
  400. package/src/models/operations/updatedataset.ts +2 -2
  401. package/src/models/operations/updatedatasource.ts +2 -2
  402. package/src/models/operations/updateprompt.ts +400 -12
  403. package/src/sdk/knowledge.ts +18 -0
@@ -52,6 +52,38 @@ export type ListDatasetDatapointsRole = ClosedEnum<
52
52
  typeof ListDatasetDatapointsRole
53
53
  >;
54
54
 
55
+ /**
56
+ * The type of the content part. Always `file`.
57
+ */
58
+ export const ListDatasetDatapoints2DatasetsResponseType = {
59
+ File: "file",
60
+ } as const;
61
+ /**
62
+ * The type of the content part. Always `file`.
63
+ */
64
+ export type ListDatasetDatapoints2DatasetsResponseType = ClosedEnum<
65
+ typeof ListDatasetDatapoints2DatasetsResponseType
66
+ >;
67
+
68
+ export type ListDatasetDatapoints2File = {
69
+ /**
70
+ * The base64 encoded file data, used when passing the file to the model as a string.
71
+ */
72
+ fileData: string;
73
+ /**
74
+ * The name of the file, used when passing the file to the model as a string.
75
+ */
76
+ filename?: string | undefined;
77
+ };
78
+
79
+ export type ListDatasetDatapoints23 = {
80
+ /**
81
+ * The type of the content part. Always `file`.
82
+ */
83
+ type: ListDatasetDatapoints2DatasetsResponseType;
84
+ file: ListDatasetDatapoints2File;
85
+ };
86
+
55
87
  export const ListDatasetDatapoints2DatasetsType = {
56
88
  ImageUrl: "image_url",
57
89
  } as const;
@@ -99,14 +131,17 @@ export type ListDatasetDatapoints21 = {
99
131
 
100
132
  export type ListDatasetDatapointsContent2 =
101
133
  | ListDatasetDatapoints21
102
- | ListDatasetDatapoints22;
134
+ | ListDatasetDatapoints22
135
+ | ListDatasetDatapoints23;
103
136
 
104
137
  /**
105
138
  * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
106
139
  */
107
140
  export type ListDatasetDatapointsContent =
108
141
  | string
109
- | Array<ListDatasetDatapoints21 | ListDatasetDatapoints22>;
142
+ | Array<
143
+ ListDatasetDatapoints21 | ListDatasetDatapoints22 | ListDatasetDatapoints23
144
+ >;
110
145
 
111
146
  export const ListDatasetDatapointsType = {
112
147
  Function: "function",
@@ -138,7 +173,13 @@ export type ListDatasetDatapointsMessages = {
138
173
  /**
139
174
  * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
140
175
  */
141
- content: string | Array<ListDatasetDatapoints21 | ListDatasetDatapoints22>;
176
+ content:
177
+ | string
178
+ | Array<
179
+ | ListDatasetDatapoints21
180
+ | ListDatasetDatapoints22
181
+ | ListDatasetDatapoints23
182
+ >;
142
183
  toolCalls?: Array<ListDatasetDatapointsToolCalls> | undefined;
143
184
  toolCallId?: string | undefined;
144
185
  };
@@ -311,6 +352,151 @@ export namespace ListDatasetDatapointsRole$ {
311
352
  export const outboundSchema = ListDatasetDatapointsRole$outboundSchema;
312
353
  }
313
354
 
355
+ /** @internal */
356
+ export const ListDatasetDatapoints2DatasetsResponseType$inboundSchema:
357
+ z.ZodNativeEnum<typeof ListDatasetDatapoints2DatasetsResponseType> = z
358
+ .nativeEnum(ListDatasetDatapoints2DatasetsResponseType);
359
+
360
+ /** @internal */
361
+ export const ListDatasetDatapoints2DatasetsResponseType$outboundSchema:
362
+ z.ZodNativeEnum<typeof ListDatasetDatapoints2DatasetsResponseType> =
363
+ ListDatasetDatapoints2DatasetsResponseType$inboundSchema;
364
+
365
+ /**
366
+ * @internal
367
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
368
+ */
369
+ export namespace ListDatasetDatapoints2DatasetsResponseType$ {
370
+ /** @deprecated use `ListDatasetDatapoints2DatasetsResponseType$inboundSchema` instead. */
371
+ export const inboundSchema =
372
+ ListDatasetDatapoints2DatasetsResponseType$inboundSchema;
373
+ /** @deprecated use `ListDatasetDatapoints2DatasetsResponseType$outboundSchema` instead. */
374
+ export const outboundSchema =
375
+ ListDatasetDatapoints2DatasetsResponseType$outboundSchema;
376
+ }
377
+
378
+ /** @internal */
379
+ export const ListDatasetDatapoints2File$inboundSchema: z.ZodType<
380
+ ListDatasetDatapoints2File,
381
+ z.ZodTypeDef,
382
+ unknown
383
+ > = z.object({
384
+ file_data: z.string(),
385
+ filename: z.string().optional(),
386
+ }).transform((v) => {
387
+ return remap$(v, {
388
+ "file_data": "fileData",
389
+ });
390
+ });
391
+
392
+ /** @internal */
393
+ export type ListDatasetDatapoints2File$Outbound = {
394
+ file_data: string;
395
+ filename?: string | undefined;
396
+ };
397
+
398
+ /** @internal */
399
+ export const ListDatasetDatapoints2File$outboundSchema: z.ZodType<
400
+ ListDatasetDatapoints2File$Outbound,
401
+ z.ZodTypeDef,
402
+ ListDatasetDatapoints2File
403
+ > = z.object({
404
+ fileData: z.string(),
405
+ filename: z.string().optional(),
406
+ }).transform((v) => {
407
+ return remap$(v, {
408
+ fileData: "file_data",
409
+ });
410
+ });
411
+
412
+ /**
413
+ * @internal
414
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
415
+ */
416
+ export namespace ListDatasetDatapoints2File$ {
417
+ /** @deprecated use `ListDatasetDatapoints2File$inboundSchema` instead. */
418
+ export const inboundSchema = ListDatasetDatapoints2File$inboundSchema;
419
+ /** @deprecated use `ListDatasetDatapoints2File$outboundSchema` instead. */
420
+ export const outboundSchema = ListDatasetDatapoints2File$outboundSchema;
421
+ /** @deprecated use `ListDatasetDatapoints2File$Outbound` instead. */
422
+ export type Outbound = ListDatasetDatapoints2File$Outbound;
423
+ }
424
+
425
+ export function listDatasetDatapoints2FileToJSON(
426
+ listDatasetDatapoints2File: ListDatasetDatapoints2File,
427
+ ): string {
428
+ return JSON.stringify(
429
+ ListDatasetDatapoints2File$outboundSchema.parse(listDatasetDatapoints2File),
430
+ );
431
+ }
432
+
433
+ export function listDatasetDatapoints2FileFromJSON(
434
+ jsonString: string,
435
+ ): SafeParseResult<ListDatasetDatapoints2File, SDKValidationError> {
436
+ return safeParse(
437
+ jsonString,
438
+ (x) => ListDatasetDatapoints2File$inboundSchema.parse(JSON.parse(x)),
439
+ `Failed to parse 'ListDatasetDatapoints2File' from JSON`,
440
+ );
441
+ }
442
+
443
+ /** @internal */
444
+ export const ListDatasetDatapoints23$inboundSchema: z.ZodType<
445
+ ListDatasetDatapoints23,
446
+ z.ZodTypeDef,
447
+ unknown
448
+ > = z.object({
449
+ type: ListDatasetDatapoints2DatasetsResponseType$inboundSchema,
450
+ file: z.lazy(() => ListDatasetDatapoints2File$inboundSchema),
451
+ });
452
+
453
+ /** @internal */
454
+ export type ListDatasetDatapoints23$Outbound = {
455
+ type: string;
456
+ file: ListDatasetDatapoints2File$Outbound;
457
+ };
458
+
459
+ /** @internal */
460
+ export const ListDatasetDatapoints23$outboundSchema: z.ZodType<
461
+ ListDatasetDatapoints23$Outbound,
462
+ z.ZodTypeDef,
463
+ ListDatasetDatapoints23
464
+ > = z.object({
465
+ type: ListDatasetDatapoints2DatasetsResponseType$outboundSchema,
466
+ file: z.lazy(() => ListDatasetDatapoints2File$outboundSchema),
467
+ });
468
+
469
+ /**
470
+ * @internal
471
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
472
+ */
473
+ export namespace ListDatasetDatapoints23$ {
474
+ /** @deprecated use `ListDatasetDatapoints23$inboundSchema` instead. */
475
+ export const inboundSchema = ListDatasetDatapoints23$inboundSchema;
476
+ /** @deprecated use `ListDatasetDatapoints23$outboundSchema` instead. */
477
+ export const outboundSchema = ListDatasetDatapoints23$outboundSchema;
478
+ /** @deprecated use `ListDatasetDatapoints23$Outbound` instead. */
479
+ export type Outbound = ListDatasetDatapoints23$Outbound;
480
+ }
481
+
482
+ export function listDatasetDatapoints23ToJSON(
483
+ listDatasetDatapoints23: ListDatasetDatapoints23,
484
+ ): string {
485
+ return JSON.stringify(
486
+ ListDatasetDatapoints23$outboundSchema.parse(listDatasetDatapoints23),
487
+ );
488
+ }
489
+
490
+ export function listDatasetDatapoints23FromJSON(
491
+ jsonString: string,
492
+ ): SafeParseResult<ListDatasetDatapoints23, SDKValidationError> {
493
+ return safeParse(
494
+ jsonString,
495
+ (x) => ListDatasetDatapoints23$inboundSchema.parse(JSON.parse(x)),
496
+ `Failed to parse 'ListDatasetDatapoints23' from JSON`,
497
+ );
498
+ }
499
+
314
500
  /** @internal */
315
501
  export const ListDatasetDatapoints2DatasetsType$inboundSchema: z.ZodNativeEnum<
316
502
  typeof ListDatasetDatapoints2DatasetsType
@@ -546,12 +732,14 @@ export const ListDatasetDatapointsContent2$inboundSchema: z.ZodType<
546
732
  > = z.union([
547
733
  z.lazy(() => ListDatasetDatapoints21$inboundSchema),
548
734
  z.lazy(() => ListDatasetDatapoints22$inboundSchema),
735
+ z.lazy(() => ListDatasetDatapoints23$inboundSchema),
549
736
  ]);
550
737
 
551
738
  /** @internal */
552
739
  export type ListDatasetDatapointsContent2$Outbound =
553
740
  | ListDatasetDatapoints21$Outbound
554
- | ListDatasetDatapoints22$Outbound;
741
+ | ListDatasetDatapoints22$Outbound
742
+ | ListDatasetDatapoints23$Outbound;
555
743
 
556
744
  /** @internal */
557
745
  export const ListDatasetDatapointsContent2$outboundSchema: z.ZodType<
@@ -561,6 +749,7 @@ export const ListDatasetDatapointsContent2$outboundSchema: z.ZodType<
561
749
  > = z.union([
562
750
  z.lazy(() => ListDatasetDatapoints21$outboundSchema),
563
751
  z.lazy(() => ListDatasetDatapoints22$outboundSchema),
752
+ z.lazy(() => ListDatasetDatapoints23$outboundSchema),
564
753
  ]);
565
754
 
566
755
  /**
@@ -606,13 +795,18 @@ export const ListDatasetDatapointsContent$inboundSchema: z.ZodType<
606
795
  z.array(z.union([
607
796
  z.lazy(() => ListDatasetDatapoints21$inboundSchema),
608
797
  z.lazy(() => ListDatasetDatapoints22$inboundSchema),
798
+ z.lazy(() => ListDatasetDatapoints23$inboundSchema),
609
799
  ])),
610
800
  ]);
611
801
 
612
802
  /** @internal */
613
803
  export type ListDatasetDatapointsContent$Outbound =
614
804
  | string
615
- | Array<ListDatasetDatapoints21$Outbound | ListDatasetDatapoints22$Outbound>;
805
+ | Array<
806
+ | ListDatasetDatapoints21$Outbound
807
+ | ListDatasetDatapoints22$Outbound
808
+ | ListDatasetDatapoints23$Outbound
809
+ >;
616
810
 
617
811
  /** @internal */
618
812
  export const ListDatasetDatapointsContent$outboundSchema: z.ZodType<
@@ -624,6 +818,7 @@ export const ListDatasetDatapointsContent$outboundSchema: z.ZodType<
624
818
  z.array(z.union([
625
819
  z.lazy(() => ListDatasetDatapoints21$outboundSchema),
626
820
  z.lazy(() => ListDatasetDatapoints22$outboundSchema),
821
+ z.lazy(() => ListDatasetDatapoints23$outboundSchema),
627
822
  ])),
628
823
  ]);
629
824
 
@@ -817,6 +1012,7 @@ export const ListDatasetDatapointsMessages$inboundSchema: z.ZodType<
817
1012
  z.array(z.union([
818
1013
  z.lazy(() => ListDatasetDatapoints21$inboundSchema),
819
1014
  z.lazy(() => ListDatasetDatapoints22$inboundSchema),
1015
+ z.lazy(() => ListDatasetDatapoints23$inboundSchema),
820
1016
  ])),
821
1017
  ]),
822
1018
  tool_calls: z.array(
@@ -836,7 +1032,9 @@ export type ListDatasetDatapointsMessages$Outbound = {
836
1032
  content:
837
1033
  | string
838
1034
  | Array<
839
- ListDatasetDatapoints21$Outbound | ListDatasetDatapoints22$Outbound
1035
+ | ListDatasetDatapoints21$Outbound
1036
+ | ListDatasetDatapoints22$Outbound
1037
+ | ListDatasetDatapoints23$Outbound
840
1038
  >;
841
1039
  tool_calls?: Array<ListDatasetDatapointsToolCalls$Outbound> | undefined;
842
1040
  tool_call_id?: string | undefined;
@@ -854,6 +1052,7 @@ export const ListDatasetDatapointsMessages$outboundSchema: z.ZodType<
854
1052
  z.array(z.union([
855
1053
  z.lazy(() => ListDatasetDatapoints21$outboundSchema),
856
1054
  z.lazy(() => ListDatasetDatapoints22$outboundSchema),
1055
+ z.lazy(() => ListDatasetDatapoints23$outboundSchema),
857
1056
  ])),
858
1057
  ]),
859
1058
  toolCalls: z.array(
@@ -918,7 +1117,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
918
1117
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
919
1118
  .optional(),
920
1119
  updated: z.string().datetime({ offset: true }).default(
921
- "2025-05-16T10:06:22.724Z",
1120
+ "2025-05-28T21:13:36.386Z",
922
1121
  ).transform(v => new Date(v)),
923
1122
  }).transform((v) => {
924
1123
  return remap$(v, {
@@ -961,7 +1160,7 @@ export const ListDatasetDatapointsData$outboundSchema: z.ZodType<
961
1160
  createdById: z.string().optional(),
962
1161
  updatedById: z.string().optional(),
963
1162
  created: z.date().transform(v => v.toISOString()).optional(),
964
- updated: z.date().default(() => new Date("2025-05-16T10:06:22.724Z"))
1163
+ updated: z.date().default(() => new Date("2025-05-28T21:13:36.386Z"))
965
1164
  .transform(v => v.toISOString()),
966
1165
  }).transform((v) => {
967
1166
  return remap$(v, {
@@ -253,7 +253,7 @@ export const ListDatasetsData$inboundSchema: z.ZodType<
253
253
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
254
254
  .optional(),
255
255
  updated: z.string().datetime({ offset: true }).default(
256
- "2025-05-16T10:06:22.724Z",
256
+ "2025-05-28T21:13:36.386Z",
257
257
  ).transform(v => new Date(v)),
258
258
  }).transform((v) => {
259
259
  return remap$(v, {
@@ -293,7 +293,7 @@ export const ListDatasetsData$outboundSchema: z.ZodType<
293
293
  updatedById: z.string().optional(),
294
294
  metadata: z.lazy(() => ListDatasetsMetadata$outboundSchema),
295
295
  created: z.date().transform(v => v.toISOString()).optional(),
296
- updated: z.date().default(() => new Date("2025-05-16T10:06:22.724Z"))
296
+ updated: z.date().default(() => new Date("2025-05-28T21:13:36.386Z"))
297
297
  .transform(v => v.toISOString()),
298
298
  }).transform((v) => {
299
299
  return remap$(v, {
@@ -278,7 +278,7 @@ export const ListDatasourcesData$inboundSchema: z.ZodType<
278
278
  z.ZodTypeDef,
279
279
  unknown
280
280
  > = z.object({
281
- _id: z.string().default("01JVC8YGP2BJSGFWHXXWKWRQ13"),
281
+ _id: z.string().default("01JWCBWVVG7K061VH0RC5S5EQV"),
282
282
  display_name: z.string(),
283
283
  description: z.string().optional(),
284
284
  status: ListDatasourcesStatus$inboundSchema,
@@ -322,7 +322,7 @@ export const ListDatasourcesData$outboundSchema: z.ZodType<
322
322
  z.ZodTypeDef,
323
323
  ListDatasourcesData
324
324
  > = z.object({
325
- id: z.string().default("01JVC8YGP2BJSGFWHXXWKWRQ13"),
325
+ id: z.string().default("01JWCBWVVG7K061VH0RC5S5EQV"),
326
326
  displayName: z.string(),
327
327
  description: z.string().optional(),
328
328
  status: ListDatasourcesStatus$outboundSchema,
@@ -284,6 +284,38 @@ export const ListPromptVersionsRole = {
284
284
  */
285
285
  export type ListPromptVersionsRole = ClosedEnum<typeof ListPromptVersionsRole>;
286
286
 
287
+ /**
288
+ * The type of the content part. Always `file`.
289
+ */
290
+ export const ListPromptVersions2PromptsResponseType = {
291
+ File: "file",
292
+ } as const;
293
+ /**
294
+ * The type of the content part. Always `file`.
295
+ */
296
+ export type ListPromptVersions2PromptsResponseType = ClosedEnum<
297
+ typeof ListPromptVersions2PromptsResponseType
298
+ >;
299
+
300
+ export type ListPromptVersions2File = {
301
+ /**
302
+ * The base64 encoded file data, used when passing the file to the model as a string.
303
+ */
304
+ fileData: string;
305
+ /**
306
+ * The name of the file, used when passing the file to the model as a string.
307
+ */
308
+ filename?: string | undefined;
309
+ };
310
+
311
+ export type ListPromptVersions23 = {
312
+ /**
313
+ * The type of the content part. Always `file`.
314
+ */
315
+ type: ListPromptVersions2PromptsResponseType;
316
+ file: ListPromptVersions2File;
317
+ };
318
+
287
319
  export const ListPromptVersions2PromptsType = {
288
320
  ImageUrl: "image_url",
289
321
  } as const;
@@ -331,14 +363,15 @@ export type ListPromptVersions21 = {
331
363
 
332
364
  export type ListPromptVersionsContent2 =
333
365
  | ListPromptVersions21
334
- | ListPromptVersions22;
366
+ | ListPromptVersions22
367
+ | ListPromptVersions23;
335
368
 
336
369
  /**
337
370
  * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
338
371
  */
339
372
  export type ListPromptVersionsContent =
340
373
  | string
341
- | Array<ListPromptVersions21 | ListPromptVersions22>;
374
+ | Array<ListPromptVersions21 | ListPromptVersions22 | ListPromptVersions23>;
342
375
 
343
376
  export const ListPromptVersionsType = {
344
377
  Function: "function",
@@ -368,7 +401,9 @@ export type ListPromptVersionsMessages = {
368
401
  /**
369
402
  * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
370
403
  */
371
- content: string | Array<ListPromptVersions21 | ListPromptVersions22>;
404
+ content:
405
+ | string
406
+ | Array<ListPromptVersions21 | ListPromptVersions22 | ListPromptVersions23>;
372
407
  toolCalls?: Array<ListPromptVersionsToolCalls> | undefined;
373
408
  toolCallId?: string | undefined;
374
409
  };
@@ -1158,6 +1193,152 @@ export namespace ListPromptVersionsRole$ {
1158
1193
  export const outboundSchema = ListPromptVersionsRole$outboundSchema;
1159
1194
  }
1160
1195
 
1196
+ /** @internal */
1197
+ export const ListPromptVersions2PromptsResponseType$inboundSchema:
1198
+ z.ZodNativeEnum<typeof ListPromptVersions2PromptsResponseType> = z.nativeEnum(
1199
+ ListPromptVersions2PromptsResponseType,
1200
+ );
1201
+
1202
+ /** @internal */
1203
+ export const ListPromptVersions2PromptsResponseType$outboundSchema:
1204
+ z.ZodNativeEnum<typeof ListPromptVersions2PromptsResponseType> =
1205
+ ListPromptVersions2PromptsResponseType$inboundSchema;
1206
+
1207
+ /**
1208
+ * @internal
1209
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1210
+ */
1211
+ export namespace ListPromptVersions2PromptsResponseType$ {
1212
+ /** @deprecated use `ListPromptVersions2PromptsResponseType$inboundSchema` instead. */
1213
+ export const inboundSchema =
1214
+ ListPromptVersions2PromptsResponseType$inboundSchema;
1215
+ /** @deprecated use `ListPromptVersions2PromptsResponseType$outboundSchema` instead. */
1216
+ export const outboundSchema =
1217
+ ListPromptVersions2PromptsResponseType$outboundSchema;
1218
+ }
1219
+
1220
+ /** @internal */
1221
+ export const ListPromptVersions2File$inboundSchema: z.ZodType<
1222
+ ListPromptVersions2File,
1223
+ z.ZodTypeDef,
1224
+ unknown
1225
+ > = z.object({
1226
+ file_data: z.string(),
1227
+ filename: z.string().optional(),
1228
+ }).transform((v) => {
1229
+ return remap$(v, {
1230
+ "file_data": "fileData",
1231
+ });
1232
+ });
1233
+
1234
+ /** @internal */
1235
+ export type ListPromptVersions2File$Outbound = {
1236
+ file_data: string;
1237
+ filename?: string | undefined;
1238
+ };
1239
+
1240
+ /** @internal */
1241
+ export const ListPromptVersions2File$outboundSchema: z.ZodType<
1242
+ ListPromptVersions2File$Outbound,
1243
+ z.ZodTypeDef,
1244
+ ListPromptVersions2File
1245
+ > = z.object({
1246
+ fileData: z.string(),
1247
+ filename: z.string().optional(),
1248
+ }).transform((v) => {
1249
+ return remap$(v, {
1250
+ fileData: "file_data",
1251
+ });
1252
+ });
1253
+
1254
+ /**
1255
+ * @internal
1256
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1257
+ */
1258
+ export namespace ListPromptVersions2File$ {
1259
+ /** @deprecated use `ListPromptVersions2File$inboundSchema` instead. */
1260
+ export const inboundSchema = ListPromptVersions2File$inboundSchema;
1261
+ /** @deprecated use `ListPromptVersions2File$outboundSchema` instead. */
1262
+ export const outboundSchema = ListPromptVersions2File$outboundSchema;
1263
+ /** @deprecated use `ListPromptVersions2File$Outbound` instead. */
1264
+ export type Outbound = ListPromptVersions2File$Outbound;
1265
+ }
1266
+
1267
+ export function listPromptVersions2FileToJSON(
1268
+ listPromptVersions2File: ListPromptVersions2File,
1269
+ ): string {
1270
+ return JSON.stringify(
1271
+ ListPromptVersions2File$outboundSchema.parse(listPromptVersions2File),
1272
+ );
1273
+ }
1274
+
1275
+ export function listPromptVersions2FileFromJSON(
1276
+ jsonString: string,
1277
+ ): SafeParseResult<ListPromptVersions2File, SDKValidationError> {
1278
+ return safeParse(
1279
+ jsonString,
1280
+ (x) => ListPromptVersions2File$inboundSchema.parse(JSON.parse(x)),
1281
+ `Failed to parse 'ListPromptVersions2File' from JSON`,
1282
+ );
1283
+ }
1284
+
1285
+ /** @internal */
1286
+ export const ListPromptVersions23$inboundSchema: z.ZodType<
1287
+ ListPromptVersions23,
1288
+ z.ZodTypeDef,
1289
+ unknown
1290
+ > = z.object({
1291
+ type: ListPromptVersions2PromptsResponseType$inboundSchema,
1292
+ file: z.lazy(() => ListPromptVersions2File$inboundSchema),
1293
+ });
1294
+
1295
+ /** @internal */
1296
+ export type ListPromptVersions23$Outbound = {
1297
+ type: string;
1298
+ file: ListPromptVersions2File$Outbound;
1299
+ };
1300
+
1301
+ /** @internal */
1302
+ export const ListPromptVersions23$outboundSchema: z.ZodType<
1303
+ ListPromptVersions23$Outbound,
1304
+ z.ZodTypeDef,
1305
+ ListPromptVersions23
1306
+ > = z.object({
1307
+ type: ListPromptVersions2PromptsResponseType$outboundSchema,
1308
+ file: z.lazy(() => ListPromptVersions2File$outboundSchema),
1309
+ });
1310
+
1311
+ /**
1312
+ * @internal
1313
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1314
+ */
1315
+ export namespace ListPromptVersions23$ {
1316
+ /** @deprecated use `ListPromptVersions23$inboundSchema` instead. */
1317
+ export const inboundSchema = ListPromptVersions23$inboundSchema;
1318
+ /** @deprecated use `ListPromptVersions23$outboundSchema` instead. */
1319
+ export const outboundSchema = ListPromptVersions23$outboundSchema;
1320
+ /** @deprecated use `ListPromptVersions23$Outbound` instead. */
1321
+ export type Outbound = ListPromptVersions23$Outbound;
1322
+ }
1323
+
1324
+ export function listPromptVersions23ToJSON(
1325
+ listPromptVersions23: ListPromptVersions23,
1326
+ ): string {
1327
+ return JSON.stringify(
1328
+ ListPromptVersions23$outboundSchema.parse(listPromptVersions23),
1329
+ );
1330
+ }
1331
+
1332
+ export function listPromptVersions23FromJSON(
1333
+ jsonString: string,
1334
+ ): SafeParseResult<ListPromptVersions23, SDKValidationError> {
1335
+ return safeParse(
1336
+ jsonString,
1337
+ (x) => ListPromptVersions23$inboundSchema.parse(JSON.parse(x)),
1338
+ `Failed to parse 'ListPromptVersions23' from JSON`,
1339
+ );
1340
+ }
1341
+
1161
1342
  /** @internal */
1162
1343
  export const ListPromptVersions2PromptsType$inboundSchema: z.ZodNativeEnum<
1163
1344
  typeof ListPromptVersions2PromptsType
@@ -1392,12 +1573,14 @@ export const ListPromptVersionsContent2$inboundSchema: z.ZodType<
1392
1573
  > = z.union([
1393
1574
  z.lazy(() => ListPromptVersions21$inboundSchema),
1394
1575
  z.lazy(() => ListPromptVersions22$inboundSchema),
1576
+ z.lazy(() => ListPromptVersions23$inboundSchema),
1395
1577
  ]);
1396
1578
 
1397
1579
  /** @internal */
1398
1580
  export type ListPromptVersionsContent2$Outbound =
1399
1581
  | ListPromptVersions21$Outbound
1400
- | ListPromptVersions22$Outbound;
1582
+ | ListPromptVersions22$Outbound
1583
+ | ListPromptVersions23$Outbound;
1401
1584
 
1402
1585
  /** @internal */
1403
1586
  export const ListPromptVersionsContent2$outboundSchema: z.ZodType<
@@ -1407,6 +1590,7 @@ export const ListPromptVersionsContent2$outboundSchema: z.ZodType<
1407
1590
  > = z.union([
1408
1591
  z.lazy(() => ListPromptVersions21$outboundSchema),
1409
1592
  z.lazy(() => ListPromptVersions22$outboundSchema),
1593
+ z.lazy(() => ListPromptVersions23$outboundSchema),
1410
1594
  ]);
1411
1595
 
1412
1596
  /**
@@ -1450,13 +1634,18 @@ export const ListPromptVersionsContent$inboundSchema: z.ZodType<
1450
1634
  z.array(z.union([
1451
1635
  z.lazy(() => ListPromptVersions21$inboundSchema),
1452
1636
  z.lazy(() => ListPromptVersions22$inboundSchema),
1637
+ z.lazy(() => ListPromptVersions23$inboundSchema),
1453
1638
  ])),
1454
1639
  ]);
1455
1640
 
1456
1641
  /** @internal */
1457
1642
  export type ListPromptVersionsContent$Outbound =
1458
1643
  | string
1459
- | Array<ListPromptVersions21$Outbound | ListPromptVersions22$Outbound>;
1644
+ | Array<
1645
+ | ListPromptVersions21$Outbound
1646
+ | ListPromptVersions22$Outbound
1647
+ | ListPromptVersions23$Outbound
1648
+ >;
1460
1649
 
1461
1650
  /** @internal */
1462
1651
  export const ListPromptVersionsContent$outboundSchema: z.ZodType<
@@ -1468,6 +1657,7 @@ export const ListPromptVersionsContent$outboundSchema: z.ZodType<
1468
1657
  z.array(z.union([
1469
1658
  z.lazy(() => ListPromptVersions21$outboundSchema),
1470
1659
  z.lazy(() => ListPromptVersions22$outboundSchema),
1660
+ z.lazy(() => ListPromptVersions23$outboundSchema),
1471
1661
  ])),
1472
1662
  ]);
1473
1663
 
@@ -1657,6 +1847,7 @@ export const ListPromptVersionsMessages$inboundSchema: z.ZodType<
1657
1847
  z.array(z.union([
1658
1848
  z.lazy(() => ListPromptVersions21$inboundSchema),
1659
1849
  z.lazy(() => ListPromptVersions22$inboundSchema),
1850
+ z.lazy(() => ListPromptVersions23$inboundSchema),
1660
1851
  ])),
1661
1852
  ]),
1662
1853
  tool_calls: z.array(z.lazy(() => ListPromptVersionsToolCalls$inboundSchema))
@@ -1674,7 +1865,11 @@ export type ListPromptVersionsMessages$Outbound = {
1674
1865
  role: string;
1675
1866
  content:
1676
1867
  | string
1677
- | Array<ListPromptVersions21$Outbound | ListPromptVersions22$Outbound>;
1868
+ | Array<
1869
+ | ListPromptVersions21$Outbound
1870
+ | ListPromptVersions22$Outbound
1871
+ | ListPromptVersions23$Outbound
1872
+ >;
1678
1873
  tool_calls?: Array<ListPromptVersionsToolCalls$Outbound> | undefined;
1679
1874
  tool_call_id?: string | undefined;
1680
1875
  };
@@ -1691,6 +1886,7 @@ export const ListPromptVersionsMessages$outboundSchema: z.ZodType<
1691
1886
  z.array(z.union([
1692
1887
  z.lazy(() => ListPromptVersions21$outboundSchema),
1693
1888
  z.lazy(() => ListPromptVersions22$outboundSchema),
1889
+ z.lazy(() => ListPromptVersions23$outboundSchema),
1694
1890
  ])),
1695
1891
  ]),
1696
1892
  toolCalls: z.array(z.lazy(() => ListPromptVersionsToolCalls$outboundSchema))