@orq-ai/node 3.2.0-rc.9 → 3.2.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 (638) hide show
  1. package/README.md +117 -1
  2. package/bin/mcp-server.js +52504 -0
  3. package/bin/mcp-server.js.map +352 -0
  4. package/docs/sdks/datasets/README.md +934 -0
  5. package/docs/sdks/files/README.md +1 -1
  6. package/docs/sdks/prompts/README.md +110 -110
  7. package/funcs/datasetsClear.d.ts +16 -0
  8. package/funcs/datasetsClear.d.ts.map +1 -0
  9. package/funcs/datasetsClear.js +118 -0
  10. package/funcs/datasetsClear.js.map +1 -0
  11. package/funcs/datasetsCreate.d.ts +16 -0
  12. package/funcs/datasetsCreate.d.ts.map +1 -0
  13. package/funcs/datasetsCreate.js +114 -0
  14. package/funcs/datasetsCreate.js.map +1 -0
  15. package/funcs/datasetsCreateDatapoint.d.ts +16 -0
  16. package/funcs/datasetsCreateDatapoint.d.ts.map +1 -0
  17. package/funcs/datasetsCreateDatapoint.js +118 -0
  18. package/funcs/datasetsCreateDatapoint.js.map +1 -0
  19. package/funcs/datasetsCreateDatapoints.d.ts +16 -0
  20. package/funcs/datasetsCreateDatapoints.d.ts.map +1 -0
  21. package/funcs/datasetsCreateDatapoints.js +119 -0
  22. package/funcs/datasetsCreateDatapoints.js.map +1 -0
  23. package/funcs/datasetsDelete.d.ts +16 -0
  24. package/funcs/datasetsDelete.d.ts.map +1 -0
  25. package/funcs/datasetsDelete.js +118 -0
  26. package/funcs/datasetsDelete.js.map +1 -0
  27. package/funcs/datasetsDeleteDatapoint.d.ts +17 -0
  28. package/funcs/datasetsDeleteDatapoint.d.ts.map +1 -0
  29. package/funcs/datasetsDeleteDatapoint.js +126 -0
  30. package/funcs/datasetsDeleteDatapoint.js.map +1 -0
  31. package/funcs/datasetsList.d.ts +16 -0
  32. package/funcs/datasetsList.d.ts.map +1 -0
  33. package/funcs/datasetsList.js +118 -0
  34. package/funcs/datasetsList.js.map +1 -0
  35. package/funcs/datasetsListDatapoints.d.ts +16 -0
  36. package/funcs/datasetsListDatapoints.d.ts.map +1 -0
  37. package/funcs/datasetsListDatapoints.js +124 -0
  38. package/funcs/datasetsListDatapoints.js.map +1 -0
  39. package/funcs/datasetsRetrieve.d.ts +17 -0
  40. package/funcs/datasetsRetrieve.d.ts.map +1 -0
  41. package/funcs/datasetsRetrieve.js +121 -0
  42. package/funcs/datasetsRetrieve.js.map +1 -0
  43. package/funcs/datasetsRetrieveDatapoint.d.ts +17 -0
  44. package/funcs/datasetsRetrieveDatapoint.d.ts.map +1 -0
  45. package/funcs/datasetsRetrieveDatapoint.js +125 -0
  46. package/funcs/datasetsRetrieveDatapoint.js.map +1 -0
  47. package/funcs/datasetsUpdate.d.ts +17 -0
  48. package/funcs/datasetsUpdate.d.ts.map +1 -0
  49. package/funcs/datasetsUpdate.js +122 -0
  50. package/funcs/datasetsUpdate.js.map +1 -0
  51. package/funcs/datasetsUpdateDatapoint.d.ts +14 -0
  52. package/funcs/datasetsUpdateDatapoint.d.ts.map +1 -0
  53. package/funcs/datasetsUpdateDatapoint.js +123 -0
  54. package/funcs/datasetsUpdateDatapoint.js.map +1 -0
  55. package/funcs/deploymentsList.js +1 -0
  56. package/funcs/deploymentsList.js.map +1 -1
  57. package/funcs/filesCreate.d.ts +1 -1
  58. package/funcs/filesCreate.js +1 -1
  59. package/funcs/filesList.js +1 -0
  60. package/funcs/filesList.js.map +1 -1
  61. package/funcs/promptsList.js +2 -1
  62. package/funcs/promptsList.js.map +1 -1
  63. package/funcs/promptsListVersions.js +1 -0
  64. package/funcs/promptsListVersions.js.map +1 -1
  65. package/jsr.json +1 -1
  66. package/lib/config.d.ts +6 -6
  67. package/lib/config.d.ts.map +1 -1
  68. package/lib/config.js +3 -3
  69. package/lib/config.js.map +1 -1
  70. package/lib/files.js.map +1 -1
  71. package/lib/primitives.d.ts +3 -0
  72. package/lib/primitives.d.ts.map +1 -1
  73. package/lib/primitives.js +7 -0
  74. package/lib/primitives.js.map +1 -1
  75. package/lib/sdks.d.ts.map +1 -1
  76. package/lib/sdks.js +2 -8
  77. package/lib/sdks.js.map +1 -1
  78. package/mcp-server/build.d.mts.map +1 -0
  79. package/mcp-server/build.mjs +14 -0
  80. package/mcp-server/build.mjs.map +1 -0
  81. package/mcp-server/cli/start/command.d.ts +2 -0
  82. package/mcp-server/cli/start/command.d.ts.map +1 -0
  83. package/mcp-server/cli/start/command.js +154 -0
  84. package/mcp-server/cli/start/command.js.map +1 -0
  85. package/mcp-server/cli/start/impl.d.ts +20 -0
  86. package/mcp-server/cli/start/impl.d.ts.map +1 -0
  87. package/mcp-server/cli/start/impl.js +108 -0
  88. package/mcp-server/cli/start/impl.js.map +1 -0
  89. package/mcp-server/cli.d.ts +6 -0
  90. package/mcp-server/cli.d.ts.map +1 -0
  91. package/mcp-server/cli.js +10 -0
  92. package/mcp-server/cli.js.map +1 -0
  93. package/mcp-server/console-logger.d.ts +7 -0
  94. package/mcp-server/console-logger.d.ts.map +1 -0
  95. package/mcp-server/console-logger.js +59 -0
  96. package/mcp-server/console-logger.js.map +1 -0
  97. package/mcp-server/extensions.d.ts +11 -0
  98. package/mcp-server/extensions.d.ts.map +1 -0
  99. package/mcp-server/extensions.js +6 -0
  100. package/mcp-server/extensions.js.map +1 -0
  101. package/mcp-server/mcp-server.d.ts +2 -0
  102. package/mcp-server/mcp-server.d.ts.map +1 -0
  103. package/mcp-server/mcp-server.js +29 -0
  104. package/mcp-server/mcp-server.js.map +1 -0
  105. package/mcp-server/prompts.d.ts +26 -0
  106. package/mcp-server/prompts.d.ts.map +1 -0
  107. package/mcp-server/prompts.js +47 -0
  108. package/mcp-server/prompts.js.map +1 -0
  109. package/mcp-server/resources.d.ts +32 -0
  110. package/mcp-server/resources.d.ts.map +1 -0
  111. package/mcp-server/resources.js +79 -0
  112. package/mcp-server/resources.js.map +1 -0
  113. package/mcp-server/scopes.d.ts +3 -0
  114. package/mcp-server/scopes.d.ts.map +1 -0
  115. package/mcp-server/scopes.js +8 -0
  116. package/mcp-server/scopes.js.map +1 -0
  117. package/mcp-server/server.d.ts +15 -0
  118. package/mcp-server/server.d.ts.map +1 -0
  119. package/mcp-server/server.js +95 -0
  120. package/mcp-server/server.js.map +1 -0
  121. package/mcp-server/shared.d.ts +7 -0
  122. package/mcp-server/shared.d.ts.map +1 -0
  123. package/mcp-server/shared.js +98 -0
  124. package/mcp-server/shared.js.map +1 -0
  125. package/mcp-server/tools/contactsCreate.d.ts +8 -0
  126. package/mcp-server/tools/contactsCreate.d.ts.map +1 -0
  127. package/mcp-server/tools/contactsCreate.js +64 -0
  128. package/mcp-server/tools/contactsCreate.js.map +1 -0
  129. package/mcp-server/tools/datasetsClear.d.ts +8 -0
  130. package/mcp-server/tools/datasetsClear.d.ts.map +1 -0
  131. package/mcp-server/tools/datasetsClear.js +63 -0
  132. package/mcp-server/tools/datasetsClear.js.map +1 -0
  133. package/mcp-server/tools/datasetsCreate.d.ts +8 -0
  134. package/mcp-server/tools/datasetsCreate.d.ts.map +1 -0
  135. package/mcp-server/tools/datasetsCreate.js +64 -0
  136. package/mcp-server/tools/datasetsCreate.js.map +1 -0
  137. package/mcp-server/tools/datasetsCreateDatapoint.d.ts +8 -0
  138. package/mcp-server/tools/datasetsCreateDatapoint.d.ts.map +1 -0
  139. package/mcp-server/tools/datasetsCreateDatapoint.js +64 -0
  140. package/mcp-server/tools/datasetsCreateDatapoint.js.map +1 -0
  141. package/mcp-server/tools/datasetsCreateDatapoints.d.ts +8 -0
  142. package/mcp-server/tools/datasetsCreateDatapoints.d.ts.map +1 -0
  143. package/mcp-server/tools/datasetsCreateDatapoints.js +64 -0
  144. package/mcp-server/tools/datasetsCreateDatapoints.js.map +1 -0
  145. package/mcp-server/tools/datasetsDelete.d.ts +8 -0
  146. package/mcp-server/tools/datasetsDelete.d.ts.map +1 -0
  147. package/mcp-server/tools/datasetsDelete.js +63 -0
  148. package/mcp-server/tools/datasetsDelete.js.map +1 -0
  149. package/mcp-server/tools/datasetsDeleteDatapoint.d.ts +8 -0
  150. package/mcp-server/tools/datasetsDeleteDatapoint.d.ts.map +1 -0
  151. package/mcp-server/tools/datasetsDeleteDatapoint.js +63 -0
  152. package/mcp-server/tools/datasetsDeleteDatapoint.js.map +1 -0
  153. package/mcp-server/tools/datasetsList.d.ts +8 -0
  154. package/mcp-server/tools/datasetsList.d.ts.map +1 -0
  155. package/mcp-server/tools/datasetsList.js +64 -0
  156. package/mcp-server/tools/datasetsList.js.map +1 -0
  157. package/mcp-server/tools/datasetsListDatapoints.d.ts +8 -0
  158. package/mcp-server/tools/datasetsListDatapoints.d.ts.map +1 -0
  159. package/mcp-server/tools/datasetsListDatapoints.js +64 -0
  160. package/mcp-server/tools/datasetsListDatapoints.js.map +1 -0
  161. package/mcp-server/tools/datasetsRetrieve.d.ts +8 -0
  162. package/mcp-server/tools/datasetsRetrieve.d.ts.map +1 -0
  163. package/mcp-server/tools/datasetsRetrieve.js +64 -0
  164. package/mcp-server/tools/datasetsRetrieve.js.map +1 -0
  165. package/mcp-server/tools/datasetsRetrieveDatapoint.d.ts +8 -0
  166. package/mcp-server/tools/datasetsRetrieveDatapoint.d.ts.map +1 -0
  167. package/mcp-server/tools/datasetsRetrieveDatapoint.js +64 -0
  168. package/mcp-server/tools/datasetsRetrieveDatapoint.js.map +1 -0
  169. package/mcp-server/tools/datasetsUpdate.d.ts +8 -0
  170. package/mcp-server/tools/datasetsUpdate.d.ts.map +1 -0
  171. package/mcp-server/tools/datasetsUpdate.js +64 -0
  172. package/mcp-server/tools/datasetsUpdate.js.map +1 -0
  173. package/mcp-server/tools/datasetsUpdateDatapoint.d.ts +8 -0
  174. package/mcp-server/tools/datasetsUpdateDatapoint.d.ts.map +1 -0
  175. package/mcp-server/tools/datasetsUpdateDatapoint.js +62 -0
  176. package/mcp-server/tools/datasetsUpdateDatapoint.js.map +1 -0
  177. package/mcp-server/tools/deploymentsGetConfig.d.ts +8 -0
  178. package/mcp-server/tools/deploymentsGetConfig.d.ts.map +1 -0
  179. package/mcp-server/tools/deploymentsGetConfig.js +64 -0
  180. package/mcp-server/tools/deploymentsGetConfig.js.map +1 -0
  181. package/mcp-server/tools/deploymentsInvoke.d.ts +8 -0
  182. package/mcp-server/tools/deploymentsInvoke.d.ts.map +1 -0
  183. package/mcp-server/tools/deploymentsInvoke.js +64 -0
  184. package/mcp-server/tools/deploymentsInvoke.js.map +1 -0
  185. package/mcp-server/tools/deploymentsList.d.ts +8 -0
  186. package/mcp-server/tools/deploymentsList.d.ts.map +1 -0
  187. package/mcp-server/tools/deploymentsList.js +64 -0
  188. package/mcp-server/tools/deploymentsList.js.map +1 -0
  189. package/mcp-server/tools/deploymentsMetricsCreate.d.ts +8 -0
  190. package/mcp-server/tools/deploymentsMetricsCreate.d.ts.map +1 -0
  191. package/mcp-server/tools/deploymentsMetricsCreate.js +64 -0
  192. package/mcp-server/tools/deploymentsMetricsCreate.js.map +1 -0
  193. package/mcp-server/tools/feedbackCreate.d.ts +8 -0
  194. package/mcp-server/tools/feedbackCreate.d.ts.map +1 -0
  195. package/mcp-server/tools/feedbackCreate.js +64 -0
  196. package/mcp-server/tools/feedbackCreate.js.map +1 -0
  197. package/mcp-server/tools/filesCreate.d.ts +8 -0
  198. package/mcp-server/tools/filesCreate.d.ts.map +1 -0
  199. package/mcp-server/tools/filesCreate.js +64 -0
  200. package/mcp-server/tools/filesCreate.js.map +1 -0
  201. package/mcp-server/tools/filesDelete.d.ts +8 -0
  202. package/mcp-server/tools/filesDelete.d.ts.map +1 -0
  203. package/mcp-server/tools/filesDelete.js +61 -0
  204. package/mcp-server/tools/filesDelete.js.map +1 -0
  205. package/mcp-server/tools/filesGet.d.ts +8 -0
  206. package/mcp-server/tools/filesGet.d.ts.map +1 -0
  207. package/mcp-server/tools/filesGet.js +64 -0
  208. package/mcp-server/tools/filesGet.js.map +1 -0
  209. package/mcp-server/tools/filesList.d.ts +8 -0
  210. package/mcp-server/tools/filesList.d.ts.map +1 -0
  211. package/mcp-server/tools/filesList.js +64 -0
  212. package/mcp-server/tools/filesList.js.map +1 -0
  213. package/mcp-server/tools/promptsCreate.d.ts +8 -0
  214. package/mcp-server/tools/promptsCreate.d.ts.map +1 -0
  215. package/mcp-server/tools/promptsCreate.js +62 -0
  216. package/mcp-server/tools/promptsCreate.js.map +1 -0
  217. package/mcp-server/tools/promptsDelete.d.ts +8 -0
  218. package/mcp-server/tools/promptsDelete.d.ts.map +1 -0
  219. package/mcp-server/tools/promptsDelete.js +61 -0
  220. package/mcp-server/tools/promptsDelete.js.map +1 -0
  221. package/mcp-server/tools/promptsGetVersion.d.ts +8 -0
  222. package/mcp-server/tools/promptsGetVersion.d.ts.map +1 -0
  223. package/mcp-server/tools/promptsGetVersion.js +64 -0
  224. package/mcp-server/tools/promptsGetVersion.js.map +1 -0
  225. package/mcp-server/tools/promptsList.d.ts +8 -0
  226. package/mcp-server/tools/promptsList.d.ts.map +1 -0
  227. package/mcp-server/tools/promptsList.js +64 -0
  228. package/mcp-server/tools/promptsList.js.map +1 -0
  229. package/mcp-server/tools/promptsListVersions.d.ts +8 -0
  230. package/mcp-server/tools/promptsListVersions.d.ts.map +1 -0
  231. package/mcp-server/tools/promptsListVersions.js +64 -0
  232. package/mcp-server/tools/promptsListVersions.js.map +1 -0
  233. package/mcp-server/tools/promptsRetrieve.d.ts +8 -0
  234. package/mcp-server/tools/promptsRetrieve.d.ts.map +1 -0
  235. package/mcp-server/tools/promptsRetrieve.js +64 -0
  236. package/mcp-server/tools/promptsRetrieve.js.map +1 -0
  237. package/mcp-server/tools/promptsUpdate.d.ts +8 -0
  238. package/mcp-server/tools/promptsUpdate.d.ts.map +1 -0
  239. package/mcp-server/tools/promptsUpdate.js +62 -0
  240. package/mcp-server/tools/promptsUpdate.js.map +1 -0
  241. package/mcp-server/tools/remoteconfigsRetrieve.d.ts +8 -0
  242. package/mcp-server/tools/remoteconfigsRetrieve.d.ts.map +1 -0
  243. package/mcp-server/tools/remoteconfigsRetrieve.js +63 -0
  244. package/mcp-server/tools/remoteconfigsRetrieve.js.map +1 -0
  245. package/mcp-server/tools.d.ts +25 -0
  246. package/mcp-server/tools.d.ts.map +1 -0
  247. package/mcp-server/tools.js +81 -0
  248. package/mcp-server/tools.js.map +1 -0
  249. package/models/components/deployments.d.ts +1716 -400
  250. package/models/components/deployments.d.ts.map +1 -1
  251. package/models/components/deployments.js +1617 -357
  252. package/models/components/deployments.js.map +1 -1
  253. package/models/operations/bulkcreatedatapoints.d.ts +873 -0
  254. package/models/operations/bulkcreatedatapoints.d.ts.map +1 -0
  255. package/models/operations/bulkcreatedatapoints.js +933 -0
  256. package/models/operations/bulkcreatedatapoints.js.map +1 -0
  257. package/models/operations/cleardataset.d.ts +29 -0
  258. package/models/operations/cleardataset.d.ts.map +1 -0
  259. package/models/operations/cleardataset.js +78 -0
  260. package/models/operations/cleardataset.js.map +1 -0
  261. package/models/operations/createcontact.js +2 -2
  262. package/models/operations/createdataset.d.ts +132 -0
  263. package/models/operations/createdataset.d.ts.map +1 -0
  264. package/models/operations/createdataset.js +182 -0
  265. package/models/operations/createdataset.js.map +1 -0
  266. package/models/operations/createdatasetitem.d.ts +851 -0
  267. package/models/operations/createdatasetitem.d.ts.map +1 -0
  268. package/models/operations/createdatasetitem.js +904 -0
  269. package/models/operations/createdatasetitem.js.map +1 -0
  270. package/models/operations/createprompt.d.ts +347 -337
  271. package/models/operations/createprompt.d.ts.map +1 -1
  272. package/models/operations/createprompt.js +474 -473
  273. package/models/operations/createprompt.js.map +1 -1
  274. package/models/operations/deletedatapoint.d.ts +31 -0
  275. package/models/operations/deletedatapoint.d.ts.map +1 -0
  276. package/models/operations/deletedatapoint.js +82 -0
  277. package/models/operations/deletedatapoint.js.map +1 -0
  278. package/models/operations/deletedataset.d.ts +29 -0
  279. package/models/operations/deletedataset.d.ts.map +1 -0
  280. package/models/operations/deletedataset.js +78 -0
  281. package/models/operations/deletedataset.js.map +1 -0
  282. package/models/operations/deploymentcreatemetric.d.ts +1706 -418
  283. package/models/operations/deploymentcreatemetric.d.ts.map +1 -1
  284. package/models/operations/deploymentcreatemetric.js +1713 -435
  285. package/models/operations/deploymentcreatemetric.js.map +1 -1
  286. package/models/operations/deploymentgetconfig.d.ts +1831 -510
  287. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  288. package/models/operations/deploymentgetconfig.js +1786 -519
  289. package/models/operations/deploymentgetconfig.js.map +1 -1
  290. package/models/operations/deploymentinvoke.d.ts +249 -177
  291. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  292. package/models/operations/deploymentinvoke.js +263 -201
  293. package/models/operations/deploymentinvoke.js.map +1 -1
  294. package/models/operations/deployments.d.ts +41 -0
  295. package/models/operations/deployments.d.ts.map +1 -1
  296. package/models/operations/deployments.js +29 -3
  297. package/models/operations/deployments.js.map +1 -1
  298. package/models/operations/fileget.d.ts +3 -0
  299. package/models/operations/fileget.d.ts.map +1 -1
  300. package/models/operations/fileget.js +3 -2
  301. package/models/operations/fileget.js.map +1 -1
  302. package/models/operations/filelist.d.ts +39 -0
  303. package/models/operations/filelist.d.ts.map +1 -1
  304. package/models/operations/filelist.js +28 -3
  305. package/models/operations/filelist.js.map +1 -1
  306. package/models/operations/fileupload.d.ts +6 -0
  307. package/models/operations/fileupload.d.ts.map +1 -1
  308. package/models/operations/fileupload.js +4 -2
  309. package/models/operations/fileupload.js.map +1 -1
  310. package/models/operations/getallprompts.d.ts +45 -4
  311. package/models/operations/getallprompts.d.ts.map +1 -1
  312. package/models/operations/getallprompts.js +33 -7
  313. package/models/operations/getallprompts.js.map +1 -1
  314. package/models/operations/getoneprompt.d.ts +9 -4
  315. package/models/operations/getoneprompt.d.ts.map +1 -1
  316. package/models/operations/getoneprompt.js +6 -4
  317. package/models/operations/getoneprompt.js.map +1 -1
  318. package/models/operations/getpromptversion.d.ts +9 -4
  319. package/models/operations/getpromptversion.d.ts.map +1 -1
  320. package/models/operations/getpromptversion.js +6 -4
  321. package/models/operations/getpromptversion.js.map +1 -1
  322. package/models/operations/index.d.ts +12 -0
  323. package/models/operations/index.d.ts.map +1 -1
  324. package/models/operations/index.js +12 -0
  325. package/models/operations/index.js.map +1 -1
  326. package/models/operations/listdatasetdatapoints.d.ts +563 -0
  327. package/models/operations/listdatasetdatapoints.d.ts.map +1 -0
  328. package/models/operations/listdatasetdatapoints.js +593 -0
  329. package/models/operations/listdatasetdatapoints.js.map +1 -0
  330. package/models/operations/listdatasets.d.ts +225 -0
  331. package/models/operations/listdatasets.d.ts.map +1 -0
  332. package/models/operations/listdatasets.js +267 -0
  333. package/models/operations/listdatasets.js.map +1 -0
  334. package/models/operations/listpromptversions.d.ts +45 -4
  335. package/models/operations/listpromptversions.d.ts.map +1 -1
  336. package/models/operations/listpromptversions.js +33 -7
  337. package/models/operations/listpromptversions.js.map +1 -1
  338. package/models/operations/retrievedatapoint.d.ts +463 -0
  339. package/models/operations/retrievedatapoint.d.ts.map +1 -0
  340. package/models/operations/retrievedatapoint.js +507 -0
  341. package/models/operations/retrievedatapoint.js.map +1 -0
  342. package/models/operations/retrievedataset.d.ts +124 -0
  343. package/models/operations/retrievedataset.d.ts.map +1 -0
  344. package/models/operations/retrievedataset.js +180 -0
  345. package/models/operations/retrievedataset.js.map +1 -0
  346. package/models/operations/updatedatapoint.d.ts +853 -0
  347. package/models/operations/updatedatapoint.d.ts.map +1 -0
  348. package/models/operations/updatedatapoint.js +909 -0
  349. package/models/operations/updatedatapoint.js.map +1 -0
  350. package/models/operations/updatedataset.d.ts +161 -0
  351. package/models/operations/updatedataset.d.ts.map +1 -0
  352. package/models/operations/updatedataset.js +225 -0
  353. package/models/operations/updatedataset.js.map +1 -0
  354. package/models/operations/updateprompt.d.ts +335 -325
  355. package/models/operations/updateprompt.d.ts.map +1 -1
  356. package/models/operations/updateprompt.js +456 -452
  357. package/models/operations/updateprompt.js.map +1 -1
  358. package/package.json +17 -4
  359. package/packages/orq-rc/FUNCTIONS.md +106 -0
  360. package/packages/orq-rc/README.md +622 -0
  361. package/packages/orq-rc/RUNTIMES.md +48 -0
  362. package/packages/orq-rc/docs/sdks/contacts/README.md +84 -0
  363. package/packages/orq-rc/docs/sdks/datasets/README.md +934 -0
  364. package/packages/orq-rc/docs/sdks/deployments/README.md +235 -0
  365. package/packages/orq-rc/docs/sdks/feedback/README.md +92 -0
  366. package/packages/orq-rc/docs/sdks/files/README.md +305 -0
  367. package/packages/orq-rc/docs/sdks/metrics/README.md +86 -0
  368. package/packages/orq-rc/docs/sdks/orq/README.md +10 -0
  369. package/packages/orq-rc/docs/sdks/prompts/README.md +608 -0
  370. package/packages/orq-rc/docs/sdks/remoteconfigs/README.md +80 -0
  371. package/packages/orq-rc/jsr.json +27 -0
  372. package/packages/orq-rc/package-lock.json +3217 -0
  373. package/packages/orq-rc/package.json +45 -0
  374. package/packages/orq-rc/src/core.ts +13 -0
  375. package/packages/orq-rc/src/funcs/contactsCreate.ts +154 -0
  376. package/packages/orq-rc/src/funcs/datasetsClear.ts +161 -0
  377. package/packages/orq-rc/src/funcs/datasetsCreate.ts +159 -0
  378. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +161 -0
  379. package/packages/orq-rc/src/funcs/datasetsCreateDatapoints.ts +165 -0
  380. package/packages/orq-rc/src/funcs/datasetsDelete.ts +161 -0
  381. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +176 -0
  382. package/packages/orq-rc/src/funcs/datasetsList.ts +162 -0
  383. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +169 -0
  384. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +169 -0
  385. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +175 -0
  386. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +170 -0
  387. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +173 -0
  388. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +162 -0
  389. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +170 -0
  390. package/packages/orq-rc/src/funcs/deploymentsList.ts +171 -0
  391. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +162 -0
  392. package/packages/orq-rc/src/funcs/feedbackCreate.ts +154 -0
  393. package/packages/orq-rc/src/funcs/filesCreate.ts +177 -0
  394. package/packages/orq-rc/src/funcs/filesDelete.ts +158 -0
  395. package/packages/orq-rc/src/funcs/filesGet.ts +160 -0
  396. package/packages/orq-rc/src/funcs/filesList.ts +162 -0
  397. package/packages/orq-rc/src/funcs/promptsCreate.ts +154 -0
  398. package/packages/orq-rc/src/funcs/promptsDelete.ts +158 -0
  399. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +175 -0
  400. package/packages/orq-rc/src/funcs/promptsList.ts +162 -0
  401. package/packages/orq-rc/src/funcs/promptsListVersions.ts +168 -0
  402. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +160 -0
  403. package/packages/orq-rc/src/funcs/promptsUpdate.ts +167 -0
  404. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +155 -0
  405. package/packages/orq-rc/src/hooks/global.ts +44 -0
  406. package/packages/orq-rc/src/hooks/hooks.ts +132 -0
  407. package/packages/orq-rc/src/hooks/index.ts +6 -0
  408. package/packages/orq-rc/src/hooks/registration.ts +15 -0
  409. package/packages/orq-rc/src/hooks/types.ts +110 -0
  410. package/packages/orq-rc/src/index.ts +7 -0
  411. package/packages/orq-rc/src/lib/base64.ts +37 -0
  412. package/packages/orq-rc/src/lib/config.ts +70 -0
  413. package/packages/orq-rc/src/lib/dlv.ts +53 -0
  414. package/packages/orq-rc/src/lib/encodings.ts +483 -0
  415. package/packages/orq-rc/src/lib/env.ts +73 -0
  416. package/packages/orq-rc/src/lib/files.ts +40 -0
  417. package/packages/orq-rc/src/lib/http.ts +323 -0
  418. package/packages/orq-rc/src/lib/is-plain-object.ts +43 -0
  419. package/packages/orq-rc/src/lib/logger.ts +9 -0
  420. package/packages/orq-rc/src/lib/matchers.ts +322 -0
  421. package/packages/orq-rc/src/lib/primitives.ts +150 -0
  422. package/packages/orq-rc/src/lib/retries.ts +218 -0
  423. package/packages/orq-rc/src/lib/schemas.ts +91 -0
  424. package/packages/orq-rc/src/lib/sdks.ts +395 -0
  425. package/packages/orq-rc/src/lib/security.ts +253 -0
  426. package/packages/orq-rc/src/lib/url.ts +33 -0
  427. package/packages/orq-rc/src/mcp-server/cli/start/command.ts +125 -0
  428. package/packages/orq-rc/src/mcp-server/cli/start/impl.ts +140 -0
  429. package/packages/orq-rc/src/mcp-server/cli.ts +13 -0
  430. package/packages/orq-rc/src/mcp-server/console-logger.ts +71 -0
  431. package/packages/orq-rc/src/mcp-server/extensions.ts +17 -0
  432. package/packages/orq-rc/src/mcp-server/mcp-server.ts +26 -0
  433. package/packages/orq-rc/src/mcp-server/prompts.ts +110 -0
  434. package/packages/orq-rc/src/mcp-server/resources.ts +158 -0
  435. package/packages/orq-rc/src/mcp-server/scopes.ts +7 -0
  436. package/packages/orq-rc/src/mcp-server/server.ts +123 -0
  437. package/packages/orq-rc/src/mcp-server/shared.ts +75 -0
  438. package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +37 -0
  439. package/packages/orq-rc/src/mcp-server/tools/datasetsClear.ts +35 -0
  440. package/packages/orq-rc/src/mcp-server/tools/datasetsCreate.ts +37 -0
  441. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoint.ts +37 -0
  442. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoints.ts +37 -0
  443. package/packages/orq-rc/src/mcp-server/tools/datasetsDelete.ts +35 -0
  444. package/packages/orq-rc/src/mcp-server/tools/datasetsDeleteDatapoint.ts +35 -0
  445. package/packages/orq-rc/src/mcp-server/tools/datasetsList.ts +37 -0
  446. package/packages/orq-rc/src/mcp-server/tools/datasetsListDatapoints.ts +37 -0
  447. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieve.ts +37 -0
  448. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieveDatapoint.ts +37 -0
  449. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdate.ts +37 -0
  450. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdateDatapoint.ts +35 -0
  451. package/packages/orq-rc/src/mcp-server/tools/deploymentsGetConfig.ts +37 -0
  452. package/packages/orq-rc/src/mcp-server/tools/deploymentsInvoke.ts +37 -0
  453. package/packages/orq-rc/src/mcp-server/tools/deploymentsList.ts +37 -0
  454. package/packages/orq-rc/src/mcp-server/tools/deploymentsMetricsCreate.ts +37 -0
  455. package/packages/orq-rc/src/mcp-server/tools/feedbackCreate.ts +37 -0
  456. package/packages/orq-rc/src/mcp-server/tools/filesCreate.ts +37 -0
  457. package/packages/orq-rc/src/mcp-server/tools/filesDelete.ts +33 -0
  458. package/packages/orq-rc/src/mcp-server/tools/filesGet.ts +37 -0
  459. package/packages/orq-rc/src/mcp-server/tools/filesList.ts +37 -0
  460. package/packages/orq-rc/src/mcp-server/tools/promptsCreate.ts +35 -0
  461. package/packages/orq-rc/src/mcp-server/tools/promptsDelete.ts +33 -0
  462. package/packages/orq-rc/src/mcp-server/tools/promptsGetVersion.ts +37 -0
  463. package/packages/orq-rc/src/mcp-server/tools/promptsList.ts +37 -0
  464. package/packages/orq-rc/src/mcp-server/tools/promptsListVersions.ts +37 -0
  465. package/packages/orq-rc/src/mcp-server/tools/promptsRetrieve.ts +37 -0
  466. package/packages/orq-rc/src/mcp-server/tools/promptsUpdate.ts +35 -0
  467. package/packages/orq-rc/src/mcp-server/tools/remoteconfigsRetrieve.ts +36 -0
  468. package/packages/orq-rc/src/mcp-server/tools.ts +126 -0
  469. package/packages/orq-rc/src/models/components/deployments.ts +4164 -0
  470. package/packages/orq-rc/src/models/components/index.ts +6 -0
  471. package/packages/orq-rc/src/models/components/security.ts +71 -0
  472. package/packages/orq-rc/src/models/errors/apierror.ts +27 -0
  473. package/packages/orq-rc/src/models/errors/getpromptversion.ts +71 -0
  474. package/packages/orq-rc/src/models/errors/honoapierror.ts +82 -0
  475. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +62 -0
  476. package/packages/orq-rc/src/models/errors/index.ts +10 -0
  477. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +97 -0
  478. package/packages/orq-rc/src/models/errors/updateprompt.ts +71 -0
  479. package/packages/orq-rc/src/models/operations/bulkcreatedatapoints.ts +1816 -0
  480. package/packages/orq-rc/src/models/operations/cleardataset.ts +75 -0
  481. package/packages/orq-rc/src/models/operations/createcontact.ts +256 -0
  482. package/packages/orq-rc/src/models/operations/createdataset.ts +296 -0
  483. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +1740 -0
  484. package/packages/orq-rc/src/models/operations/createfeedback.ts +286 -0
  485. package/packages/orq-rc/src/models/operations/createprompt.ts +3816 -0
  486. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +81 -0
  487. package/packages/orq-rc/src/models/operations/deletedataset.ts +75 -0
  488. package/packages/orq-rc/src/models/operations/deleteprompt.ts +69 -0
  489. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +4936 -0
  490. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +6090 -0
  491. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +1199 -0
  492. package/packages/orq-rc/src/models/operations/deployments.ts +2194 -0
  493. package/packages/orq-rc/src/models/operations/filedelete.ts +78 -0
  494. package/packages/orq-rc/src/models/operations/fileget.ts +223 -0
  495. package/packages/orq-rc/src/models/operations/filelist.ts +377 -0
  496. package/packages/orq-rc/src/models/operations/fileupload.ts +324 -0
  497. package/packages/orq-rc/src/models/operations/getallprompts.ts +2165 -0
  498. package/packages/orq-rc/src/models/operations/getoneprompt.ts +1989 -0
  499. package/packages/orq-rc/src/models/operations/getpromptversion.ts +1987 -0
  500. package/packages/orq-rc/src/models/operations/index.ts +34 -0
  501. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +1115 -0
  502. package/packages/orq-rc/src/models/operations/listdatasets.ts +448 -0
  503. package/packages/orq-rc/src/models/operations/listpromptversions.ts +2163 -0
  504. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +190 -0
  505. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +924 -0
  506. package/packages/orq-rc/src/models/operations/retrievedataset.ts +288 -0
  507. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +1729 -0
  508. package/packages/orq-rc/src/models/operations/updatedataset.ts +374 -0
  509. package/packages/orq-rc/src/models/operations/updateprompt.ts +3831 -0
  510. package/packages/orq-rc/src/sdk/contacts.ts +27 -0
  511. package/packages/orq-rc/src/sdk/datasets.ts +222 -0
  512. package/packages/orq-rc/src/sdk/deployments.ts +70 -0
  513. package/packages/orq-rc/src/sdk/feedback.ts +27 -0
  514. package/packages/orq-rc/src/sdk/files.ts +78 -0
  515. package/packages/orq-rc/src/sdk/index.ts +5 -0
  516. package/packages/orq-rc/src/sdk/metrics.ts +27 -0
  517. package/packages/orq-rc/src/sdk/prompts.ts +126 -0
  518. package/packages/orq-rc/src/sdk/remoteconfigs.ts +24 -0
  519. package/packages/orq-rc/src/sdk/sdk.ts +49 -0
  520. package/packages/orq-rc/src/types/async.ts +68 -0
  521. package/packages/orq-rc/src/types/blobs.ts +31 -0
  522. package/packages/orq-rc/src/types/constdatetime.ts +15 -0
  523. package/packages/orq-rc/src/types/enums.ts +16 -0
  524. package/packages/orq-rc/src/types/fp.ts +50 -0
  525. package/packages/orq-rc/src/types/index.ts +11 -0
  526. package/packages/orq-rc/src/types/operations.ts +105 -0
  527. package/packages/orq-rc/src/types/rfcdate.ts +54 -0
  528. package/packages/orq-rc/src/types/streams.ts +21 -0
  529. package/packages/orq-rc/tsconfig.json +41 -0
  530. package/sdk/datasets.d.ts +86 -0
  531. package/sdk/datasets.d.ts.map +1 -0
  532. package/sdk/datasets.js +129 -0
  533. package/sdk/datasets.js.map +1 -0
  534. package/sdk/files.d.ts +1 -1
  535. package/sdk/files.js +1 -1
  536. package/sdk/prompts.d.ts +4 -4
  537. package/sdk/prompts.d.ts.map +1 -1
  538. package/sdk/prompts.js +6 -6
  539. package/sdk/prompts.js.map +1 -1
  540. package/sdk/sdk.d.ts +3 -0
  541. package/sdk/sdk.d.ts.map +1 -1
  542. package/sdk/sdk.js +4 -0
  543. package/sdk/sdk.js.map +1 -1
  544. package/src/funcs/datasetsClear.ts +161 -0
  545. package/src/funcs/datasetsCreate.ts +159 -0
  546. package/src/funcs/datasetsCreateDatapoint.ts +161 -0
  547. package/src/funcs/datasetsCreateDatapoints.ts +165 -0
  548. package/src/funcs/datasetsDelete.ts +161 -0
  549. package/src/funcs/datasetsDeleteDatapoint.ts +176 -0
  550. package/src/funcs/datasetsList.ts +162 -0
  551. package/src/funcs/datasetsListDatapoints.ts +169 -0
  552. package/src/funcs/datasetsRetrieve.ts +169 -0
  553. package/src/funcs/datasetsRetrieveDatapoint.ts +175 -0
  554. package/src/funcs/datasetsUpdate.ts +170 -0
  555. package/src/funcs/datasetsUpdateDatapoint.ts +173 -0
  556. package/src/funcs/deploymentsList.ts +1 -0
  557. package/src/funcs/filesCreate.ts +1 -1
  558. package/src/funcs/filesList.ts +1 -0
  559. package/src/funcs/promptsList.ts +2 -1
  560. package/src/funcs/promptsListVersions.ts +1 -0
  561. package/src/lib/config.ts +6 -6
  562. package/src/lib/files.ts +1 -1
  563. package/src/lib/primitives.ts +14 -0
  564. package/src/lib/sdks.ts +2 -7
  565. package/src/mcp-server/cli/start/command.ts +125 -0
  566. package/src/mcp-server/cli/start/impl.ts +140 -0
  567. package/src/mcp-server/cli.ts +13 -0
  568. package/src/mcp-server/console-logger.ts +71 -0
  569. package/src/mcp-server/extensions.ts +17 -0
  570. package/src/mcp-server/mcp-server.ts +26 -0
  571. package/src/mcp-server/prompts.ts +110 -0
  572. package/src/mcp-server/resources.ts +158 -0
  573. package/src/mcp-server/scopes.ts +7 -0
  574. package/src/mcp-server/server.ts +123 -0
  575. package/src/mcp-server/shared.ts +75 -0
  576. package/src/mcp-server/tools/contactsCreate.ts +37 -0
  577. package/src/mcp-server/tools/datasetsClear.ts +35 -0
  578. package/src/mcp-server/tools/datasetsCreate.ts +37 -0
  579. package/src/mcp-server/tools/datasetsCreateDatapoint.ts +37 -0
  580. package/src/mcp-server/tools/datasetsCreateDatapoints.ts +37 -0
  581. package/src/mcp-server/tools/datasetsDelete.ts +35 -0
  582. package/src/mcp-server/tools/datasetsDeleteDatapoint.ts +35 -0
  583. package/src/mcp-server/tools/datasetsList.ts +37 -0
  584. package/src/mcp-server/tools/datasetsListDatapoints.ts +37 -0
  585. package/src/mcp-server/tools/datasetsRetrieve.ts +37 -0
  586. package/src/mcp-server/tools/datasetsRetrieveDatapoint.ts +37 -0
  587. package/src/mcp-server/tools/datasetsUpdate.ts +37 -0
  588. package/src/mcp-server/tools/datasetsUpdateDatapoint.ts +35 -0
  589. package/src/mcp-server/tools/deploymentsGetConfig.ts +37 -0
  590. package/src/mcp-server/tools/deploymentsInvoke.ts +37 -0
  591. package/src/mcp-server/tools/deploymentsList.ts +37 -0
  592. package/src/mcp-server/tools/deploymentsMetricsCreate.ts +37 -0
  593. package/src/mcp-server/tools/feedbackCreate.ts +37 -0
  594. package/src/mcp-server/tools/filesCreate.ts +37 -0
  595. package/src/mcp-server/tools/filesDelete.ts +33 -0
  596. package/src/mcp-server/tools/filesGet.ts +37 -0
  597. package/src/mcp-server/tools/filesList.ts +37 -0
  598. package/src/mcp-server/tools/promptsCreate.ts +35 -0
  599. package/src/mcp-server/tools/promptsDelete.ts +33 -0
  600. package/src/mcp-server/tools/promptsGetVersion.ts +37 -0
  601. package/src/mcp-server/tools/promptsList.ts +37 -0
  602. package/src/mcp-server/tools/promptsListVersions.ts +37 -0
  603. package/src/mcp-server/tools/promptsRetrieve.ts +37 -0
  604. package/src/mcp-server/tools/promptsUpdate.ts +35 -0
  605. package/src/mcp-server/tools/remoteconfigsRetrieve.ts +36 -0
  606. package/src/mcp-server/tools.ts +126 -0
  607. package/src/models/components/deployments.ts +3133 -635
  608. package/src/models/operations/bulkcreatedatapoints.ts +1816 -0
  609. package/src/models/operations/cleardataset.ts +75 -0
  610. package/src/models/operations/createcontact.ts +2 -2
  611. package/src/models/operations/createdataset.ts +296 -0
  612. package/src/models/operations/createdatasetitem.ts +1740 -0
  613. package/src/models/operations/createprompt.ts +736 -637
  614. package/src/models/operations/deletedatapoint.ts +81 -0
  615. package/src/models/operations/deletedataset.ts +75 -0
  616. package/src/models/operations/deploymentcreatemetric.ts +3983 -837
  617. package/src/models/operations/deploymentgetconfig.ts +3446 -883
  618. package/src/models/operations/deploymentinvoke.ts +434 -379
  619. package/src/models/operations/deployments.ts +46 -0
  620. package/src/models/operations/fileget.ts +3 -2
  621. package/src/models/operations/filelist.ts +43 -2
  622. package/src/models/operations/fileupload.ts +4 -2
  623. package/src/models/operations/getallprompts.ts +57 -8
  624. package/src/models/operations/getoneprompt.ts +15 -8
  625. package/src/models/operations/getpromptversion.ts +15 -8
  626. package/src/models/operations/index.ts +12 -0
  627. package/src/models/operations/listdatasetdatapoints.ts +1115 -0
  628. package/src/models/operations/listdatasets.ts +448 -0
  629. package/src/models/operations/listpromptversions.ts +57 -8
  630. package/src/models/operations/retrievedatapoint.ts +924 -0
  631. package/src/models/operations/retrievedataset.ts +288 -0
  632. package/src/models/operations/updatedatapoint.ts +1729 -0
  633. package/src/models/operations/updatedataset.ts +374 -0
  634. package/src/models/operations/updateprompt.ts +629 -698
  635. package/src/sdk/datasets.ts +222 -0
  636. package/src/sdk/files.ts +1 -1
  637. package/src/sdk/prompts.ts +14 -14
  638. package/src/sdk/sdk.ts +6 -0
@@ -0,0 +1,2165 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ /**
13
+ * List sorting preference.
14
+ */
15
+ export const GetAllPromptsQueryParamSort = {
16
+ Asc: "asc",
17
+ Desc: "desc",
18
+ } as const;
19
+ /**
20
+ * List sorting preference.
21
+ */
22
+ export type GetAllPromptsQueryParamSort = ClosedEnum<
23
+ typeof GetAllPromptsQueryParamSort
24
+ >;
25
+
26
+ export type GetAllPromptsRequest = {
27
+ /**
28
+ * List sorting preference.
29
+ */
30
+ sort?: GetAllPromptsQueryParamSort | undefined;
31
+ /**
32
+ * A limit on the number of objects to be returned. Limit can range between 1 and 50, and the default is 10
33
+ */
34
+ limit?: number | undefined;
35
+ /**
36
+ * A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, ending with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `after=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the next page of the list.
37
+ */
38
+ startingAfter?: string | undefined;
39
+ /**
40
+ * A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, starting with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `before=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the previous page of the list.
41
+ */
42
+ endingBefore?: string | undefined;
43
+ };
44
+
45
+ export const GetAllPromptsObject = {
46
+ List: "list",
47
+ } as const;
48
+ export type GetAllPromptsObject = ClosedEnum<typeof GetAllPromptsObject>;
49
+
50
+ export const GetAllPromptsType = {
51
+ Prompt: "prompt",
52
+ } as const;
53
+ export type GetAllPromptsType = ClosedEnum<typeof GetAllPromptsType>;
54
+
55
+ /**
56
+ * The type of the model
57
+ */
58
+ export const GetAllPromptsModelType = {
59
+ Chat: "chat",
60
+ Completion: "completion",
61
+ Embedding: "embedding",
62
+ Vision: "vision",
63
+ Image: "image",
64
+ Tts: "tts",
65
+ Stt: "stt",
66
+ Rerank: "rerank",
67
+ Moderations: "moderations",
68
+ } as const;
69
+ /**
70
+ * The type of the model
71
+ */
72
+ export type GetAllPromptsModelType = ClosedEnum<typeof GetAllPromptsModelType>;
73
+
74
+ /**
75
+ * Only supported on `image` models.
76
+ */
77
+ export const GetAllPromptsFormat = {
78
+ Url: "url",
79
+ B64Json: "b64_json",
80
+ Text: "text",
81
+ JsonObject: "json_object",
82
+ } as const;
83
+ /**
84
+ * Only supported on `image` models.
85
+ */
86
+ export type GetAllPromptsFormat = ClosedEnum<typeof GetAllPromptsFormat>;
87
+
88
+ /**
89
+ * Only supported on `image` models.
90
+ */
91
+ export const GetAllPromptsQuality = {
92
+ Standard: "standard",
93
+ Hd: "hd",
94
+ } as const;
95
+ /**
96
+ * Only supported on `image` models.
97
+ */
98
+ export type GetAllPromptsQuality = ClosedEnum<typeof GetAllPromptsQuality>;
99
+
100
+ export const GetAllPromptsResponseFormatPromptsType = {
101
+ JsonObject: "json_object",
102
+ } as const;
103
+ export type GetAllPromptsResponseFormatPromptsType = ClosedEnum<
104
+ typeof GetAllPromptsResponseFormatPromptsType
105
+ >;
106
+
107
+ export type GetAllPromptsResponseFormat2 = {
108
+ type: GetAllPromptsResponseFormatPromptsType;
109
+ };
110
+
111
+ export const GetAllPromptsResponseFormatType = {
112
+ JsonSchema: "json_schema",
113
+ } as const;
114
+ export type GetAllPromptsResponseFormatType = ClosedEnum<
115
+ typeof GetAllPromptsResponseFormatType
116
+ >;
117
+
118
+ export type GetAllPromptsResponseFormatJsonSchema = {
119
+ name: string;
120
+ strict: boolean;
121
+ schema: { [k: string]: any };
122
+ };
123
+
124
+ export type GetAllPromptsResponseFormat1 = {
125
+ type: GetAllPromptsResponseFormatType;
126
+ jsonSchema: GetAllPromptsResponseFormatJsonSchema;
127
+ };
128
+
129
+ /**
130
+ * An object specifying the format that the model must output.
131
+ *
132
+ * @remarks
133
+ *
134
+ * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
135
+ *
136
+ * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
137
+ *
138
+ * Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
139
+ */
140
+ export type GetAllPromptsResponseFormat =
141
+ | GetAllPromptsResponseFormat2
142
+ | GetAllPromptsResponseFormat1;
143
+
144
+ /**
145
+ * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
146
+ */
147
+ export const GetAllPromptsPhotoRealVersion = {
148
+ V1: "v1",
149
+ V2: "v2",
150
+ } as const;
151
+ /**
152
+ * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
153
+ */
154
+ export type GetAllPromptsPhotoRealVersion = ClosedEnum<
155
+ typeof GetAllPromptsPhotoRealVersion
156
+ >;
157
+
158
+ /**
159
+ * The format to return the embeddings
160
+ */
161
+ export const GetAllPromptsEncodingFormat = {
162
+ Float: "float",
163
+ Base64: "base64",
164
+ } as const;
165
+ /**
166
+ * The format to return the embeddings
167
+ */
168
+ export type GetAllPromptsEncodingFormat = ClosedEnum<
169
+ typeof GetAllPromptsEncodingFormat
170
+ >;
171
+
172
+ /**
173
+ * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
174
+ */
175
+ export const GetAllPromptsReasoningEffort = {
176
+ Low: "low",
177
+ Medium: "medium",
178
+ High: "high",
179
+ } as const;
180
+ /**
181
+ * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
182
+ */
183
+ export type GetAllPromptsReasoningEffort = ClosedEnum<
184
+ typeof GetAllPromptsReasoningEffort
185
+ >;
186
+
187
+ /**
188
+ * Model Parameters: Not all parameters apply to every model
189
+ */
190
+ export type GetAllPromptsModelParameters = {
191
+ /**
192
+ * Only supported on `chat` and `completion` models.
193
+ */
194
+ temperature?: number | undefined;
195
+ /**
196
+ * Only supported on `chat` and `completion` models.
197
+ */
198
+ maxTokens?: number | undefined;
199
+ /**
200
+ * Only supported on `chat` and `completion` models.
201
+ */
202
+ topK?: number | undefined;
203
+ /**
204
+ * Only supported on `chat` and `completion` models.
205
+ */
206
+ topP?: number | undefined;
207
+ /**
208
+ * Only supported on `chat` and `completion` models.
209
+ */
210
+ frequencyPenalty?: number | undefined;
211
+ /**
212
+ * Only supported on `chat` and `completion` models.
213
+ */
214
+ presencePenalty?: number | undefined;
215
+ /**
216
+ * Only supported on `image` models.
217
+ */
218
+ numImages?: number | undefined;
219
+ /**
220
+ * Best effort deterministic seed for the model. Currently only OpenAI models support these
221
+ */
222
+ seed?: number | undefined;
223
+ /**
224
+ * Only supported on `image` models.
225
+ */
226
+ format?: GetAllPromptsFormat | undefined;
227
+ /**
228
+ * Only supported on `image` models.
229
+ */
230
+ dimensions?: string | undefined;
231
+ /**
232
+ * Only supported on `image` models.
233
+ */
234
+ quality?: GetAllPromptsQuality | undefined;
235
+ /**
236
+ * Only supported on `image` models.
237
+ */
238
+ style?: string | undefined;
239
+ /**
240
+ * An object specifying the format that the model must output.
241
+ *
242
+ * @remarks
243
+ *
244
+ * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
245
+ *
246
+ * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
247
+ *
248
+ * Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
249
+ */
250
+ responseFormat?:
251
+ | GetAllPromptsResponseFormat2
252
+ | GetAllPromptsResponseFormat1
253
+ | null
254
+ | undefined;
255
+ /**
256
+ * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
257
+ */
258
+ photoRealVersion?: GetAllPromptsPhotoRealVersion | undefined;
259
+ /**
260
+ * The format to return the embeddings
261
+ */
262
+ encodingFormat?: GetAllPromptsEncodingFormat | undefined;
263
+ /**
264
+ * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
265
+ */
266
+ reasoningEffort?: GetAllPromptsReasoningEffort | undefined;
267
+ /**
268
+ * Gives the model enhanced reasoning capabilities for complex tasks. A value of 0 disables thinking. The minimum budget tokens for thinking are 1024. The Budget Tokens should never exceed the Max Tokens parameter. Only supported by `Anthropic`
269
+ */
270
+ budgetTokens?: number | undefined;
271
+ };
272
+
273
+ export const GetAllPromptsProvider = {
274
+ Cohere: "cohere",
275
+ Openai: "openai",
276
+ Anthropic: "anthropic",
277
+ Huggingface: "huggingface",
278
+ Replicate: "replicate",
279
+ Google: "google",
280
+ GoogleAi: "google-ai",
281
+ Azure: "azure",
282
+ Aws: "aws",
283
+ Anyscale: "anyscale",
284
+ Perplexity: "perplexity",
285
+ Groq: "groq",
286
+ Fal: "fal",
287
+ Leonardoai: "leonardoai",
288
+ Nvidia: "nvidia",
289
+ Jina: "jina",
290
+ Togetherai: "togetherai",
291
+ Elevenlabs: "elevenlabs",
292
+ } as const;
293
+ export type GetAllPromptsProvider = ClosedEnum<typeof GetAllPromptsProvider>;
294
+
295
+ /**
296
+ * The role of the prompt message
297
+ */
298
+ export const GetAllPromptsRole = {
299
+ System: "system",
300
+ Assistant: "assistant",
301
+ User: "user",
302
+ Exception: "exception",
303
+ Tool: "tool",
304
+ Prompt: "prompt",
305
+ Correction: "correction",
306
+ ExpectedOutput: "expected_output",
307
+ } as const;
308
+ /**
309
+ * The role of the prompt message
310
+ */
311
+ export type GetAllPromptsRole = ClosedEnum<typeof GetAllPromptsRole>;
312
+
313
+ export const GetAllPrompts2PromptsType = {
314
+ ImageUrl: "image_url",
315
+ } as const;
316
+ export type GetAllPrompts2PromptsType = ClosedEnum<
317
+ typeof GetAllPrompts2PromptsType
318
+ >;
319
+
320
+ export type GetAllPrompts2ImageUrl = {
321
+ /**
322
+ * The orq.ai id of the image
323
+ */
324
+ id?: string | undefined;
325
+ /**
326
+ * Either a URL of the image or the base64 encoded data URI.
327
+ */
328
+ url: string;
329
+ /**
330
+ * Specifies the detail level of the image. Currently only supported with OpenAI models
331
+ */
332
+ detail?: string | undefined;
333
+ };
334
+
335
+ /**
336
+ * The image part of the prompt message. Only supported with vision models.
337
+ */
338
+ export type GetAllPrompts22 = {
339
+ type: GetAllPrompts2PromptsType;
340
+ imageUrl: GetAllPrompts2ImageUrl;
341
+ };
342
+
343
+ export const GetAllPrompts2Type = {
344
+ Text: "text",
345
+ } as const;
346
+ export type GetAllPrompts2Type = ClosedEnum<typeof GetAllPrompts2Type>;
347
+
348
+ /**
349
+ * Text content part of a prompt message
350
+ */
351
+ export type GetAllPrompts21 = {
352
+ type: GetAllPrompts2Type;
353
+ text: string;
354
+ };
355
+
356
+ export type GetAllPromptsContent2 = GetAllPrompts21 | GetAllPrompts22;
357
+
358
+ /**
359
+ * 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.
360
+ */
361
+ export type GetAllPromptsContent =
362
+ | string
363
+ | Array<GetAllPrompts21 | GetAllPrompts22>;
364
+
365
+ export const GetAllPromptsPromptsType = {
366
+ Function: "function",
367
+ } as const;
368
+ export type GetAllPromptsPromptsType = ClosedEnum<
369
+ typeof GetAllPromptsPromptsType
370
+ >;
371
+
372
+ export type GetAllPromptsFunction = {
373
+ name: string;
374
+ /**
375
+ * JSON string arguments for the functions
376
+ */
377
+ arguments: string;
378
+ };
379
+
380
+ export type GetAllPromptsToolCalls = {
381
+ id?: string | undefined;
382
+ index?: number | undefined;
383
+ type: GetAllPromptsPromptsType;
384
+ function: GetAllPromptsFunction;
385
+ };
386
+
387
+ export type GetAllPromptsMessages = {
388
+ /**
389
+ * The role of the prompt message
390
+ */
391
+ role: GetAllPromptsRole;
392
+ /**
393
+ * 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.
394
+ */
395
+ content: string | Array<GetAllPrompts21 | GetAllPrompts22>;
396
+ toolCalls?: Array<GetAllPromptsToolCalls> | undefined;
397
+ };
398
+
399
+ /**
400
+ * A list of messages compatible with the openAI schema
401
+ */
402
+ export type GetAllPromptsPromptConfig = {
403
+ stream?: boolean | undefined;
404
+ model?: string | undefined;
405
+ /**
406
+ * The id of the resource
407
+ */
408
+ modelDbId?: string | undefined;
409
+ /**
410
+ * The type of the model
411
+ */
412
+ modelType?: GetAllPromptsModelType | undefined;
413
+ /**
414
+ * Model Parameters: Not all parameters apply to every model
415
+ */
416
+ modelParameters?: GetAllPromptsModelParameters | undefined;
417
+ provider?: GetAllPromptsProvider | undefined;
418
+ /**
419
+ * The id of the resource
420
+ */
421
+ integrationId?: string | null | undefined;
422
+ version?: string | undefined;
423
+ messages: Array<GetAllPromptsMessages>;
424
+ };
425
+
426
+ export const GetAllPromptsUseCases = {
427
+ Agents: "Agents",
428
+ AgentsSimulations: "Agents simulations",
429
+ APIInteraction: "API interaction",
430
+ AutonomousAgents: "Autonomous Agents",
431
+ Chatbots: "Chatbots",
432
+ Classification: "Classification",
433
+ CodeUnderstanding: "Code understanding",
434
+ CodeWriting: "Code writing",
435
+ DocumentsQA: "Documents QA",
436
+ Conversation: "Conversation",
437
+ Extraction: "Extraction",
438
+ MultiModal: "Multi-modal",
439
+ SelfChecking: "Self-checking",
440
+ Sql: "SQL",
441
+ Summarization: "Summarization",
442
+ Tagging: "Tagging",
443
+ } as const;
444
+ export type GetAllPromptsUseCases = ClosedEnum<typeof GetAllPromptsUseCases>;
445
+
446
+ /**
447
+ * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
448
+ */
449
+ export const GetAllPromptsLanguage = {
450
+ Chinese: "Chinese",
451
+ Dutch: "Dutch",
452
+ English: "English",
453
+ French: "French",
454
+ German: "German",
455
+ Russian: "Russian",
456
+ Spanish: "Spanish",
457
+ } as const;
458
+ /**
459
+ * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
460
+ */
461
+ export type GetAllPromptsLanguage = ClosedEnum<typeof GetAllPromptsLanguage>;
462
+
463
+ export type GetAllPromptsMetadata = {
464
+ /**
465
+ * A list of use cases that the prompt is meant to be used for. Use this field to categorize the prompt for your own purpose
466
+ */
467
+ useCases?: Array<GetAllPromptsUseCases> | undefined;
468
+ /**
469
+ * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
470
+ */
471
+ language?: GetAllPromptsLanguage | undefined;
472
+ };
473
+
474
+ export type GetAllPromptsData = {
475
+ id: string;
476
+ type: GetAllPromptsType;
477
+ owner: string;
478
+ domainId: string;
479
+ created: string;
480
+ updated: string;
481
+ createdById?: string | null | undefined;
482
+ updatedById?: string | null | undefined;
483
+ /**
484
+ * The prompt’s name, meant to be displayable in the UI.
485
+ */
486
+ displayName: string;
487
+ /**
488
+ * The prompt’s description, meant to be displayable in the UI. Use this field to optionally store a long form explanation of the prompt for your own purpose
489
+ */
490
+ description?: string | null | undefined;
491
+ /**
492
+ * A list of messages compatible with the openAI schema
493
+ */
494
+ promptConfig: GetAllPromptsPromptConfig;
495
+ metadata?: GetAllPromptsMetadata | undefined;
496
+ };
497
+
498
+ /**
499
+ * Prompts retrieved.
500
+ */
501
+ export type GetAllPromptsResponseBody = {
502
+ object: GetAllPromptsObject;
503
+ data: Array<GetAllPromptsData>;
504
+ hasMore: boolean;
505
+ };
506
+
507
+ /** @internal */
508
+ export const GetAllPromptsQueryParamSort$inboundSchema: z.ZodNativeEnum<
509
+ typeof GetAllPromptsQueryParamSort
510
+ > = z.nativeEnum(GetAllPromptsQueryParamSort);
511
+
512
+ /** @internal */
513
+ export const GetAllPromptsQueryParamSort$outboundSchema: z.ZodNativeEnum<
514
+ typeof GetAllPromptsQueryParamSort
515
+ > = GetAllPromptsQueryParamSort$inboundSchema;
516
+
517
+ /**
518
+ * @internal
519
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
520
+ */
521
+ export namespace GetAllPromptsQueryParamSort$ {
522
+ /** @deprecated use `GetAllPromptsQueryParamSort$inboundSchema` instead. */
523
+ export const inboundSchema = GetAllPromptsQueryParamSort$inboundSchema;
524
+ /** @deprecated use `GetAllPromptsQueryParamSort$outboundSchema` instead. */
525
+ export const outboundSchema = GetAllPromptsQueryParamSort$outboundSchema;
526
+ }
527
+
528
+ /** @internal */
529
+ export const GetAllPromptsRequest$inboundSchema: z.ZodType<
530
+ GetAllPromptsRequest,
531
+ z.ZodTypeDef,
532
+ unknown
533
+ > = z.object({
534
+ sort: GetAllPromptsQueryParamSort$inboundSchema.default("asc"),
535
+ limit: z.number().default(10),
536
+ starting_after: z.string().optional(),
537
+ ending_before: z.string().optional(),
538
+ }).transform((v) => {
539
+ return remap$(v, {
540
+ "starting_after": "startingAfter",
541
+ "ending_before": "endingBefore",
542
+ });
543
+ });
544
+
545
+ /** @internal */
546
+ export type GetAllPromptsRequest$Outbound = {
547
+ sort: string;
548
+ limit: number;
549
+ starting_after?: string | undefined;
550
+ ending_before?: string | undefined;
551
+ };
552
+
553
+ /** @internal */
554
+ export const GetAllPromptsRequest$outboundSchema: z.ZodType<
555
+ GetAllPromptsRequest$Outbound,
556
+ z.ZodTypeDef,
557
+ GetAllPromptsRequest
558
+ > = z.object({
559
+ sort: GetAllPromptsQueryParamSort$outboundSchema.default("asc"),
560
+ limit: z.number().default(10),
561
+ startingAfter: z.string().optional(),
562
+ endingBefore: z.string().optional(),
563
+ }).transform((v) => {
564
+ return remap$(v, {
565
+ startingAfter: "starting_after",
566
+ endingBefore: "ending_before",
567
+ });
568
+ });
569
+
570
+ /**
571
+ * @internal
572
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
573
+ */
574
+ export namespace GetAllPromptsRequest$ {
575
+ /** @deprecated use `GetAllPromptsRequest$inboundSchema` instead. */
576
+ export const inboundSchema = GetAllPromptsRequest$inboundSchema;
577
+ /** @deprecated use `GetAllPromptsRequest$outboundSchema` instead. */
578
+ export const outboundSchema = GetAllPromptsRequest$outboundSchema;
579
+ /** @deprecated use `GetAllPromptsRequest$Outbound` instead. */
580
+ export type Outbound = GetAllPromptsRequest$Outbound;
581
+ }
582
+
583
+ export function getAllPromptsRequestToJSON(
584
+ getAllPromptsRequest: GetAllPromptsRequest,
585
+ ): string {
586
+ return JSON.stringify(
587
+ GetAllPromptsRequest$outboundSchema.parse(getAllPromptsRequest),
588
+ );
589
+ }
590
+
591
+ export function getAllPromptsRequestFromJSON(
592
+ jsonString: string,
593
+ ): SafeParseResult<GetAllPromptsRequest, SDKValidationError> {
594
+ return safeParse(
595
+ jsonString,
596
+ (x) => GetAllPromptsRequest$inboundSchema.parse(JSON.parse(x)),
597
+ `Failed to parse 'GetAllPromptsRequest' from JSON`,
598
+ );
599
+ }
600
+
601
+ /** @internal */
602
+ export const GetAllPromptsObject$inboundSchema: z.ZodNativeEnum<
603
+ typeof GetAllPromptsObject
604
+ > = z.nativeEnum(GetAllPromptsObject);
605
+
606
+ /** @internal */
607
+ export const GetAllPromptsObject$outboundSchema: z.ZodNativeEnum<
608
+ typeof GetAllPromptsObject
609
+ > = GetAllPromptsObject$inboundSchema;
610
+
611
+ /**
612
+ * @internal
613
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
614
+ */
615
+ export namespace GetAllPromptsObject$ {
616
+ /** @deprecated use `GetAllPromptsObject$inboundSchema` instead. */
617
+ export const inboundSchema = GetAllPromptsObject$inboundSchema;
618
+ /** @deprecated use `GetAllPromptsObject$outboundSchema` instead. */
619
+ export const outboundSchema = GetAllPromptsObject$outboundSchema;
620
+ }
621
+
622
+ /** @internal */
623
+ export const GetAllPromptsType$inboundSchema: z.ZodNativeEnum<
624
+ typeof GetAllPromptsType
625
+ > = z.nativeEnum(GetAllPromptsType);
626
+
627
+ /** @internal */
628
+ export const GetAllPromptsType$outboundSchema: z.ZodNativeEnum<
629
+ typeof GetAllPromptsType
630
+ > = GetAllPromptsType$inboundSchema;
631
+
632
+ /**
633
+ * @internal
634
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
635
+ */
636
+ export namespace GetAllPromptsType$ {
637
+ /** @deprecated use `GetAllPromptsType$inboundSchema` instead. */
638
+ export const inboundSchema = GetAllPromptsType$inboundSchema;
639
+ /** @deprecated use `GetAllPromptsType$outboundSchema` instead. */
640
+ export const outboundSchema = GetAllPromptsType$outboundSchema;
641
+ }
642
+
643
+ /** @internal */
644
+ export const GetAllPromptsModelType$inboundSchema: z.ZodNativeEnum<
645
+ typeof GetAllPromptsModelType
646
+ > = z.nativeEnum(GetAllPromptsModelType);
647
+
648
+ /** @internal */
649
+ export const GetAllPromptsModelType$outboundSchema: z.ZodNativeEnum<
650
+ typeof GetAllPromptsModelType
651
+ > = GetAllPromptsModelType$inboundSchema;
652
+
653
+ /**
654
+ * @internal
655
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
656
+ */
657
+ export namespace GetAllPromptsModelType$ {
658
+ /** @deprecated use `GetAllPromptsModelType$inboundSchema` instead. */
659
+ export const inboundSchema = GetAllPromptsModelType$inboundSchema;
660
+ /** @deprecated use `GetAllPromptsModelType$outboundSchema` instead. */
661
+ export const outboundSchema = GetAllPromptsModelType$outboundSchema;
662
+ }
663
+
664
+ /** @internal */
665
+ export const GetAllPromptsFormat$inboundSchema: z.ZodNativeEnum<
666
+ typeof GetAllPromptsFormat
667
+ > = z.nativeEnum(GetAllPromptsFormat);
668
+
669
+ /** @internal */
670
+ export const GetAllPromptsFormat$outboundSchema: z.ZodNativeEnum<
671
+ typeof GetAllPromptsFormat
672
+ > = GetAllPromptsFormat$inboundSchema;
673
+
674
+ /**
675
+ * @internal
676
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
677
+ */
678
+ export namespace GetAllPromptsFormat$ {
679
+ /** @deprecated use `GetAllPromptsFormat$inboundSchema` instead. */
680
+ export const inboundSchema = GetAllPromptsFormat$inboundSchema;
681
+ /** @deprecated use `GetAllPromptsFormat$outboundSchema` instead. */
682
+ export const outboundSchema = GetAllPromptsFormat$outboundSchema;
683
+ }
684
+
685
+ /** @internal */
686
+ export const GetAllPromptsQuality$inboundSchema: z.ZodNativeEnum<
687
+ typeof GetAllPromptsQuality
688
+ > = z.nativeEnum(GetAllPromptsQuality);
689
+
690
+ /** @internal */
691
+ export const GetAllPromptsQuality$outboundSchema: z.ZodNativeEnum<
692
+ typeof GetAllPromptsQuality
693
+ > = GetAllPromptsQuality$inboundSchema;
694
+
695
+ /**
696
+ * @internal
697
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
698
+ */
699
+ export namespace GetAllPromptsQuality$ {
700
+ /** @deprecated use `GetAllPromptsQuality$inboundSchema` instead. */
701
+ export const inboundSchema = GetAllPromptsQuality$inboundSchema;
702
+ /** @deprecated use `GetAllPromptsQuality$outboundSchema` instead. */
703
+ export const outboundSchema = GetAllPromptsQuality$outboundSchema;
704
+ }
705
+
706
+ /** @internal */
707
+ export const GetAllPromptsResponseFormatPromptsType$inboundSchema:
708
+ z.ZodNativeEnum<typeof GetAllPromptsResponseFormatPromptsType> = z.nativeEnum(
709
+ GetAllPromptsResponseFormatPromptsType,
710
+ );
711
+
712
+ /** @internal */
713
+ export const GetAllPromptsResponseFormatPromptsType$outboundSchema:
714
+ z.ZodNativeEnum<typeof GetAllPromptsResponseFormatPromptsType> =
715
+ GetAllPromptsResponseFormatPromptsType$inboundSchema;
716
+
717
+ /**
718
+ * @internal
719
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
720
+ */
721
+ export namespace GetAllPromptsResponseFormatPromptsType$ {
722
+ /** @deprecated use `GetAllPromptsResponseFormatPromptsType$inboundSchema` instead. */
723
+ export const inboundSchema =
724
+ GetAllPromptsResponseFormatPromptsType$inboundSchema;
725
+ /** @deprecated use `GetAllPromptsResponseFormatPromptsType$outboundSchema` instead. */
726
+ export const outboundSchema =
727
+ GetAllPromptsResponseFormatPromptsType$outboundSchema;
728
+ }
729
+
730
+ /** @internal */
731
+ export const GetAllPromptsResponseFormat2$inboundSchema: z.ZodType<
732
+ GetAllPromptsResponseFormat2,
733
+ z.ZodTypeDef,
734
+ unknown
735
+ > = z.object({
736
+ type: GetAllPromptsResponseFormatPromptsType$inboundSchema,
737
+ });
738
+
739
+ /** @internal */
740
+ export type GetAllPromptsResponseFormat2$Outbound = {
741
+ type: string;
742
+ };
743
+
744
+ /** @internal */
745
+ export const GetAllPromptsResponseFormat2$outboundSchema: z.ZodType<
746
+ GetAllPromptsResponseFormat2$Outbound,
747
+ z.ZodTypeDef,
748
+ GetAllPromptsResponseFormat2
749
+ > = z.object({
750
+ type: GetAllPromptsResponseFormatPromptsType$outboundSchema,
751
+ });
752
+
753
+ /**
754
+ * @internal
755
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
756
+ */
757
+ export namespace GetAllPromptsResponseFormat2$ {
758
+ /** @deprecated use `GetAllPromptsResponseFormat2$inboundSchema` instead. */
759
+ export const inboundSchema = GetAllPromptsResponseFormat2$inboundSchema;
760
+ /** @deprecated use `GetAllPromptsResponseFormat2$outboundSchema` instead. */
761
+ export const outboundSchema = GetAllPromptsResponseFormat2$outboundSchema;
762
+ /** @deprecated use `GetAllPromptsResponseFormat2$Outbound` instead. */
763
+ export type Outbound = GetAllPromptsResponseFormat2$Outbound;
764
+ }
765
+
766
+ export function getAllPromptsResponseFormat2ToJSON(
767
+ getAllPromptsResponseFormat2: GetAllPromptsResponseFormat2,
768
+ ): string {
769
+ return JSON.stringify(
770
+ GetAllPromptsResponseFormat2$outboundSchema.parse(
771
+ getAllPromptsResponseFormat2,
772
+ ),
773
+ );
774
+ }
775
+
776
+ export function getAllPromptsResponseFormat2FromJSON(
777
+ jsonString: string,
778
+ ): SafeParseResult<GetAllPromptsResponseFormat2, SDKValidationError> {
779
+ return safeParse(
780
+ jsonString,
781
+ (x) => GetAllPromptsResponseFormat2$inboundSchema.parse(JSON.parse(x)),
782
+ `Failed to parse 'GetAllPromptsResponseFormat2' from JSON`,
783
+ );
784
+ }
785
+
786
+ /** @internal */
787
+ export const GetAllPromptsResponseFormatType$inboundSchema: z.ZodNativeEnum<
788
+ typeof GetAllPromptsResponseFormatType
789
+ > = z.nativeEnum(GetAllPromptsResponseFormatType);
790
+
791
+ /** @internal */
792
+ export const GetAllPromptsResponseFormatType$outboundSchema: z.ZodNativeEnum<
793
+ typeof GetAllPromptsResponseFormatType
794
+ > = GetAllPromptsResponseFormatType$inboundSchema;
795
+
796
+ /**
797
+ * @internal
798
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
799
+ */
800
+ export namespace GetAllPromptsResponseFormatType$ {
801
+ /** @deprecated use `GetAllPromptsResponseFormatType$inboundSchema` instead. */
802
+ export const inboundSchema = GetAllPromptsResponseFormatType$inboundSchema;
803
+ /** @deprecated use `GetAllPromptsResponseFormatType$outboundSchema` instead. */
804
+ export const outboundSchema = GetAllPromptsResponseFormatType$outboundSchema;
805
+ }
806
+
807
+ /** @internal */
808
+ export const GetAllPromptsResponseFormatJsonSchema$inboundSchema: z.ZodType<
809
+ GetAllPromptsResponseFormatJsonSchema,
810
+ z.ZodTypeDef,
811
+ unknown
812
+ > = z.object({
813
+ name: z.string(),
814
+ strict: z.boolean(),
815
+ schema: z.record(z.any()),
816
+ });
817
+
818
+ /** @internal */
819
+ export type GetAllPromptsResponseFormatJsonSchema$Outbound = {
820
+ name: string;
821
+ strict: boolean;
822
+ schema: { [k: string]: any };
823
+ };
824
+
825
+ /** @internal */
826
+ export const GetAllPromptsResponseFormatJsonSchema$outboundSchema: z.ZodType<
827
+ GetAllPromptsResponseFormatJsonSchema$Outbound,
828
+ z.ZodTypeDef,
829
+ GetAllPromptsResponseFormatJsonSchema
830
+ > = z.object({
831
+ name: z.string(),
832
+ strict: z.boolean(),
833
+ schema: z.record(z.any()),
834
+ });
835
+
836
+ /**
837
+ * @internal
838
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
839
+ */
840
+ export namespace GetAllPromptsResponseFormatJsonSchema$ {
841
+ /** @deprecated use `GetAllPromptsResponseFormatJsonSchema$inboundSchema` instead. */
842
+ export const inboundSchema =
843
+ GetAllPromptsResponseFormatJsonSchema$inboundSchema;
844
+ /** @deprecated use `GetAllPromptsResponseFormatJsonSchema$outboundSchema` instead. */
845
+ export const outboundSchema =
846
+ GetAllPromptsResponseFormatJsonSchema$outboundSchema;
847
+ /** @deprecated use `GetAllPromptsResponseFormatJsonSchema$Outbound` instead. */
848
+ export type Outbound = GetAllPromptsResponseFormatJsonSchema$Outbound;
849
+ }
850
+
851
+ export function getAllPromptsResponseFormatJsonSchemaToJSON(
852
+ getAllPromptsResponseFormatJsonSchema: GetAllPromptsResponseFormatJsonSchema,
853
+ ): string {
854
+ return JSON.stringify(
855
+ GetAllPromptsResponseFormatJsonSchema$outboundSchema.parse(
856
+ getAllPromptsResponseFormatJsonSchema,
857
+ ),
858
+ );
859
+ }
860
+
861
+ export function getAllPromptsResponseFormatJsonSchemaFromJSON(
862
+ jsonString: string,
863
+ ): SafeParseResult<GetAllPromptsResponseFormatJsonSchema, SDKValidationError> {
864
+ return safeParse(
865
+ jsonString,
866
+ (x) =>
867
+ GetAllPromptsResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
868
+ `Failed to parse 'GetAllPromptsResponseFormatJsonSchema' from JSON`,
869
+ );
870
+ }
871
+
872
+ /** @internal */
873
+ export const GetAllPromptsResponseFormat1$inboundSchema: z.ZodType<
874
+ GetAllPromptsResponseFormat1,
875
+ z.ZodTypeDef,
876
+ unknown
877
+ > = z.object({
878
+ type: GetAllPromptsResponseFormatType$inboundSchema,
879
+ json_schema: z.lazy(() =>
880
+ GetAllPromptsResponseFormatJsonSchema$inboundSchema
881
+ ),
882
+ }).transform((v) => {
883
+ return remap$(v, {
884
+ "json_schema": "jsonSchema",
885
+ });
886
+ });
887
+
888
+ /** @internal */
889
+ export type GetAllPromptsResponseFormat1$Outbound = {
890
+ type: string;
891
+ json_schema: GetAllPromptsResponseFormatJsonSchema$Outbound;
892
+ };
893
+
894
+ /** @internal */
895
+ export const GetAllPromptsResponseFormat1$outboundSchema: z.ZodType<
896
+ GetAllPromptsResponseFormat1$Outbound,
897
+ z.ZodTypeDef,
898
+ GetAllPromptsResponseFormat1
899
+ > = z.object({
900
+ type: GetAllPromptsResponseFormatType$outboundSchema,
901
+ jsonSchema: z.lazy(() =>
902
+ GetAllPromptsResponseFormatJsonSchema$outboundSchema
903
+ ),
904
+ }).transform((v) => {
905
+ return remap$(v, {
906
+ jsonSchema: "json_schema",
907
+ });
908
+ });
909
+
910
+ /**
911
+ * @internal
912
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
913
+ */
914
+ export namespace GetAllPromptsResponseFormat1$ {
915
+ /** @deprecated use `GetAllPromptsResponseFormat1$inboundSchema` instead. */
916
+ export const inboundSchema = GetAllPromptsResponseFormat1$inboundSchema;
917
+ /** @deprecated use `GetAllPromptsResponseFormat1$outboundSchema` instead. */
918
+ export const outboundSchema = GetAllPromptsResponseFormat1$outboundSchema;
919
+ /** @deprecated use `GetAllPromptsResponseFormat1$Outbound` instead. */
920
+ export type Outbound = GetAllPromptsResponseFormat1$Outbound;
921
+ }
922
+
923
+ export function getAllPromptsResponseFormat1ToJSON(
924
+ getAllPromptsResponseFormat1: GetAllPromptsResponseFormat1,
925
+ ): string {
926
+ return JSON.stringify(
927
+ GetAllPromptsResponseFormat1$outboundSchema.parse(
928
+ getAllPromptsResponseFormat1,
929
+ ),
930
+ );
931
+ }
932
+
933
+ export function getAllPromptsResponseFormat1FromJSON(
934
+ jsonString: string,
935
+ ): SafeParseResult<GetAllPromptsResponseFormat1, SDKValidationError> {
936
+ return safeParse(
937
+ jsonString,
938
+ (x) => GetAllPromptsResponseFormat1$inboundSchema.parse(JSON.parse(x)),
939
+ `Failed to parse 'GetAllPromptsResponseFormat1' from JSON`,
940
+ );
941
+ }
942
+
943
+ /** @internal */
944
+ export const GetAllPromptsResponseFormat$inboundSchema: z.ZodType<
945
+ GetAllPromptsResponseFormat,
946
+ z.ZodTypeDef,
947
+ unknown
948
+ > = z.union([
949
+ z.lazy(() => GetAllPromptsResponseFormat2$inboundSchema),
950
+ z.lazy(() => GetAllPromptsResponseFormat1$inboundSchema),
951
+ ]);
952
+
953
+ /** @internal */
954
+ export type GetAllPromptsResponseFormat$Outbound =
955
+ | GetAllPromptsResponseFormat2$Outbound
956
+ | GetAllPromptsResponseFormat1$Outbound;
957
+
958
+ /** @internal */
959
+ export const GetAllPromptsResponseFormat$outboundSchema: z.ZodType<
960
+ GetAllPromptsResponseFormat$Outbound,
961
+ z.ZodTypeDef,
962
+ GetAllPromptsResponseFormat
963
+ > = z.union([
964
+ z.lazy(() => GetAllPromptsResponseFormat2$outboundSchema),
965
+ z.lazy(() => GetAllPromptsResponseFormat1$outboundSchema),
966
+ ]);
967
+
968
+ /**
969
+ * @internal
970
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
971
+ */
972
+ export namespace GetAllPromptsResponseFormat$ {
973
+ /** @deprecated use `GetAllPromptsResponseFormat$inboundSchema` instead. */
974
+ export const inboundSchema = GetAllPromptsResponseFormat$inboundSchema;
975
+ /** @deprecated use `GetAllPromptsResponseFormat$outboundSchema` instead. */
976
+ export const outboundSchema = GetAllPromptsResponseFormat$outboundSchema;
977
+ /** @deprecated use `GetAllPromptsResponseFormat$Outbound` instead. */
978
+ export type Outbound = GetAllPromptsResponseFormat$Outbound;
979
+ }
980
+
981
+ export function getAllPromptsResponseFormatToJSON(
982
+ getAllPromptsResponseFormat: GetAllPromptsResponseFormat,
983
+ ): string {
984
+ return JSON.stringify(
985
+ GetAllPromptsResponseFormat$outboundSchema.parse(
986
+ getAllPromptsResponseFormat,
987
+ ),
988
+ );
989
+ }
990
+
991
+ export function getAllPromptsResponseFormatFromJSON(
992
+ jsonString: string,
993
+ ): SafeParseResult<GetAllPromptsResponseFormat, SDKValidationError> {
994
+ return safeParse(
995
+ jsonString,
996
+ (x) => GetAllPromptsResponseFormat$inboundSchema.parse(JSON.parse(x)),
997
+ `Failed to parse 'GetAllPromptsResponseFormat' from JSON`,
998
+ );
999
+ }
1000
+
1001
+ /** @internal */
1002
+ export const GetAllPromptsPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
1003
+ typeof GetAllPromptsPhotoRealVersion
1004
+ > = z.nativeEnum(GetAllPromptsPhotoRealVersion);
1005
+
1006
+ /** @internal */
1007
+ export const GetAllPromptsPhotoRealVersion$outboundSchema: z.ZodNativeEnum<
1008
+ typeof GetAllPromptsPhotoRealVersion
1009
+ > = GetAllPromptsPhotoRealVersion$inboundSchema;
1010
+
1011
+ /**
1012
+ * @internal
1013
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1014
+ */
1015
+ export namespace GetAllPromptsPhotoRealVersion$ {
1016
+ /** @deprecated use `GetAllPromptsPhotoRealVersion$inboundSchema` instead. */
1017
+ export const inboundSchema = GetAllPromptsPhotoRealVersion$inboundSchema;
1018
+ /** @deprecated use `GetAllPromptsPhotoRealVersion$outboundSchema` instead. */
1019
+ export const outboundSchema = GetAllPromptsPhotoRealVersion$outboundSchema;
1020
+ }
1021
+
1022
+ /** @internal */
1023
+ export const GetAllPromptsEncodingFormat$inboundSchema: z.ZodNativeEnum<
1024
+ typeof GetAllPromptsEncodingFormat
1025
+ > = z.nativeEnum(GetAllPromptsEncodingFormat);
1026
+
1027
+ /** @internal */
1028
+ export const GetAllPromptsEncodingFormat$outboundSchema: z.ZodNativeEnum<
1029
+ typeof GetAllPromptsEncodingFormat
1030
+ > = GetAllPromptsEncodingFormat$inboundSchema;
1031
+
1032
+ /**
1033
+ * @internal
1034
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1035
+ */
1036
+ export namespace GetAllPromptsEncodingFormat$ {
1037
+ /** @deprecated use `GetAllPromptsEncodingFormat$inboundSchema` instead. */
1038
+ export const inboundSchema = GetAllPromptsEncodingFormat$inboundSchema;
1039
+ /** @deprecated use `GetAllPromptsEncodingFormat$outboundSchema` instead. */
1040
+ export const outboundSchema = GetAllPromptsEncodingFormat$outboundSchema;
1041
+ }
1042
+
1043
+ /** @internal */
1044
+ export const GetAllPromptsReasoningEffort$inboundSchema: z.ZodNativeEnum<
1045
+ typeof GetAllPromptsReasoningEffort
1046
+ > = z.nativeEnum(GetAllPromptsReasoningEffort);
1047
+
1048
+ /** @internal */
1049
+ export const GetAllPromptsReasoningEffort$outboundSchema: z.ZodNativeEnum<
1050
+ typeof GetAllPromptsReasoningEffort
1051
+ > = GetAllPromptsReasoningEffort$inboundSchema;
1052
+
1053
+ /**
1054
+ * @internal
1055
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1056
+ */
1057
+ export namespace GetAllPromptsReasoningEffort$ {
1058
+ /** @deprecated use `GetAllPromptsReasoningEffort$inboundSchema` instead. */
1059
+ export const inboundSchema = GetAllPromptsReasoningEffort$inboundSchema;
1060
+ /** @deprecated use `GetAllPromptsReasoningEffort$outboundSchema` instead. */
1061
+ export const outboundSchema = GetAllPromptsReasoningEffort$outboundSchema;
1062
+ }
1063
+
1064
+ /** @internal */
1065
+ export const GetAllPromptsModelParameters$inboundSchema: z.ZodType<
1066
+ GetAllPromptsModelParameters,
1067
+ z.ZodTypeDef,
1068
+ unknown
1069
+ > = z.object({
1070
+ temperature: z.number().optional(),
1071
+ maxTokens: z.number().optional(),
1072
+ topK: z.number().optional(),
1073
+ topP: z.number().optional(),
1074
+ frequencyPenalty: z.number().optional(),
1075
+ presencePenalty: z.number().optional(),
1076
+ numImages: z.number().optional(),
1077
+ seed: z.number().optional(),
1078
+ format: GetAllPromptsFormat$inboundSchema.optional(),
1079
+ dimensions: z.string().optional(),
1080
+ quality: GetAllPromptsQuality$inboundSchema.optional(),
1081
+ style: z.string().optional(),
1082
+ responseFormat: z.nullable(
1083
+ z.union([
1084
+ z.lazy(() => GetAllPromptsResponseFormat2$inboundSchema),
1085
+ z.lazy(() => GetAllPromptsResponseFormat1$inboundSchema),
1086
+ ]),
1087
+ ).optional(),
1088
+ photoRealVersion: GetAllPromptsPhotoRealVersion$inboundSchema.optional(),
1089
+ encoding_format: GetAllPromptsEncodingFormat$inboundSchema.optional(),
1090
+ reasoningEffort: GetAllPromptsReasoningEffort$inboundSchema.optional(),
1091
+ budgetTokens: z.number().optional(),
1092
+ }).transform((v) => {
1093
+ return remap$(v, {
1094
+ "encoding_format": "encodingFormat",
1095
+ });
1096
+ });
1097
+
1098
+ /** @internal */
1099
+ export type GetAllPromptsModelParameters$Outbound = {
1100
+ temperature?: number | undefined;
1101
+ maxTokens?: number | undefined;
1102
+ topK?: number | undefined;
1103
+ topP?: number | undefined;
1104
+ frequencyPenalty?: number | undefined;
1105
+ presencePenalty?: number | undefined;
1106
+ numImages?: number | undefined;
1107
+ seed?: number | undefined;
1108
+ format?: string | undefined;
1109
+ dimensions?: string | undefined;
1110
+ quality?: string | undefined;
1111
+ style?: string | undefined;
1112
+ responseFormat?:
1113
+ | GetAllPromptsResponseFormat2$Outbound
1114
+ | GetAllPromptsResponseFormat1$Outbound
1115
+ | null
1116
+ | undefined;
1117
+ photoRealVersion?: string | undefined;
1118
+ encoding_format?: string | undefined;
1119
+ reasoningEffort?: string | undefined;
1120
+ budgetTokens?: number | undefined;
1121
+ };
1122
+
1123
+ /** @internal */
1124
+ export const GetAllPromptsModelParameters$outboundSchema: z.ZodType<
1125
+ GetAllPromptsModelParameters$Outbound,
1126
+ z.ZodTypeDef,
1127
+ GetAllPromptsModelParameters
1128
+ > = z.object({
1129
+ temperature: z.number().optional(),
1130
+ maxTokens: z.number().optional(),
1131
+ topK: z.number().optional(),
1132
+ topP: z.number().optional(),
1133
+ frequencyPenalty: z.number().optional(),
1134
+ presencePenalty: z.number().optional(),
1135
+ numImages: z.number().optional(),
1136
+ seed: z.number().optional(),
1137
+ format: GetAllPromptsFormat$outboundSchema.optional(),
1138
+ dimensions: z.string().optional(),
1139
+ quality: GetAllPromptsQuality$outboundSchema.optional(),
1140
+ style: z.string().optional(),
1141
+ responseFormat: z.nullable(
1142
+ z.union([
1143
+ z.lazy(() => GetAllPromptsResponseFormat2$outboundSchema),
1144
+ z.lazy(() => GetAllPromptsResponseFormat1$outboundSchema),
1145
+ ]),
1146
+ ).optional(),
1147
+ photoRealVersion: GetAllPromptsPhotoRealVersion$outboundSchema.optional(),
1148
+ encodingFormat: GetAllPromptsEncodingFormat$outboundSchema.optional(),
1149
+ reasoningEffort: GetAllPromptsReasoningEffort$outboundSchema.optional(),
1150
+ budgetTokens: z.number().optional(),
1151
+ }).transform((v) => {
1152
+ return remap$(v, {
1153
+ encodingFormat: "encoding_format",
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 GetAllPromptsModelParameters$ {
1162
+ /** @deprecated use `GetAllPromptsModelParameters$inboundSchema` instead. */
1163
+ export const inboundSchema = GetAllPromptsModelParameters$inboundSchema;
1164
+ /** @deprecated use `GetAllPromptsModelParameters$outboundSchema` instead. */
1165
+ export const outboundSchema = GetAllPromptsModelParameters$outboundSchema;
1166
+ /** @deprecated use `GetAllPromptsModelParameters$Outbound` instead. */
1167
+ export type Outbound = GetAllPromptsModelParameters$Outbound;
1168
+ }
1169
+
1170
+ export function getAllPromptsModelParametersToJSON(
1171
+ getAllPromptsModelParameters: GetAllPromptsModelParameters,
1172
+ ): string {
1173
+ return JSON.stringify(
1174
+ GetAllPromptsModelParameters$outboundSchema.parse(
1175
+ getAllPromptsModelParameters,
1176
+ ),
1177
+ );
1178
+ }
1179
+
1180
+ export function getAllPromptsModelParametersFromJSON(
1181
+ jsonString: string,
1182
+ ): SafeParseResult<GetAllPromptsModelParameters, SDKValidationError> {
1183
+ return safeParse(
1184
+ jsonString,
1185
+ (x) => GetAllPromptsModelParameters$inboundSchema.parse(JSON.parse(x)),
1186
+ `Failed to parse 'GetAllPromptsModelParameters' from JSON`,
1187
+ );
1188
+ }
1189
+
1190
+ /** @internal */
1191
+ export const GetAllPromptsProvider$inboundSchema: z.ZodNativeEnum<
1192
+ typeof GetAllPromptsProvider
1193
+ > = z.nativeEnum(GetAllPromptsProvider);
1194
+
1195
+ /** @internal */
1196
+ export const GetAllPromptsProvider$outboundSchema: z.ZodNativeEnum<
1197
+ typeof GetAllPromptsProvider
1198
+ > = GetAllPromptsProvider$inboundSchema;
1199
+
1200
+ /**
1201
+ * @internal
1202
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1203
+ */
1204
+ export namespace GetAllPromptsProvider$ {
1205
+ /** @deprecated use `GetAllPromptsProvider$inboundSchema` instead. */
1206
+ export const inboundSchema = GetAllPromptsProvider$inboundSchema;
1207
+ /** @deprecated use `GetAllPromptsProvider$outboundSchema` instead. */
1208
+ export const outboundSchema = GetAllPromptsProvider$outboundSchema;
1209
+ }
1210
+
1211
+ /** @internal */
1212
+ export const GetAllPromptsRole$inboundSchema: z.ZodNativeEnum<
1213
+ typeof GetAllPromptsRole
1214
+ > = z.nativeEnum(GetAllPromptsRole);
1215
+
1216
+ /** @internal */
1217
+ export const GetAllPromptsRole$outboundSchema: z.ZodNativeEnum<
1218
+ typeof GetAllPromptsRole
1219
+ > = GetAllPromptsRole$inboundSchema;
1220
+
1221
+ /**
1222
+ * @internal
1223
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1224
+ */
1225
+ export namespace GetAllPromptsRole$ {
1226
+ /** @deprecated use `GetAllPromptsRole$inboundSchema` instead. */
1227
+ export const inboundSchema = GetAllPromptsRole$inboundSchema;
1228
+ /** @deprecated use `GetAllPromptsRole$outboundSchema` instead. */
1229
+ export const outboundSchema = GetAllPromptsRole$outboundSchema;
1230
+ }
1231
+
1232
+ /** @internal */
1233
+ export const GetAllPrompts2PromptsType$inboundSchema: z.ZodNativeEnum<
1234
+ typeof GetAllPrompts2PromptsType
1235
+ > = z.nativeEnum(GetAllPrompts2PromptsType);
1236
+
1237
+ /** @internal */
1238
+ export const GetAllPrompts2PromptsType$outboundSchema: z.ZodNativeEnum<
1239
+ typeof GetAllPrompts2PromptsType
1240
+ > = GetAllPrompts2PromptsType$inboundSchema;
1241
+
1242
+ /**
1243
+ * @internal
1244
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1245
+ */
1246
+ export namespace GetAllPrompts2PromptsType$ {
1247
+ /** @deprecated use `GetAllPrompts2PromptsType$inboundSchema` instead. */
1248
+ export const inboundSchema = GetAllPrompts2PromptsType$inboundSchema;
1249
+ /** @deprecated use `GetAllPrompts2PromptsType$outboundSchema` instead. */
1250
+ export const outboundSchema = GetAllPrompts2PromptsType$outboundSchema;
1251
+ }
1252
+
1253
+ /** @internal */
1254
+ export const GetAllPrompts2ImageUrl$inboundSchema: z.ZodType<
1255
+ GetAllPrompts2ImageUrl,
1256
+ z.ZodTypeDef,
1257
+ unknown
1258
+ > = z.object({
1259
+ id: z.string().optional(),
1260
+ url: z.string(),
1261
+ detail: z.string().optional(),
1262
+ });
1263
+
1264
+ /** @internal */
1265
+ export type GetAllPrompts2ImageUrl$Outbound = {
1266
+ id?: string | undefined;
1267
+ url: string;
1268
+ detail?: string | undefined;
1269
+ };
1270
+
1271
+ /** @internal */
1272
+ export const GetAllPrompts2ImageUrl$outboundSchema: z.ZodType<
1273
+ GetAllPrompts2ImageUrl$Outbound,
1274
+ z.ZodTypeDef,
1275
+ GetAllPrompts2ImageUrl
1276
+ > = z.object({
1277
+ id: z.string().optional(),
1278
+ url: z.string(),
1279
+ detail: z.string().optional(),
1280
+ });
1281
+
1282
+ /**
1283
+ * @internal
1284
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1285
+ */
1286
+ export namespace GetAllPrompts2ImageUrl$ {
1287
+ /** @deprecated use `GetAllPrompts2ImageUrl$inboundSchema` instead. */
1288
+ export const inboundSchema = GetAllPrompts2ImageUrl$inboundSchema;
1289
+ /** @deprecated use `GetAllPrompts2ImageUrl$outboundSchema` instead. */
1290
+ export const outboundSchema = GetAllPrompts2ImageUrl$outboundSchema;
1291
+ /** @deprecated use `GetAllPrompts2ImageUrl$Outbound` instead. */
1292
+ export type Outbound = GetAllPrompts2ImageUrl$Outbound;
1293
+ }
1294
+
1295
+ export function getAllPrompts2ImageUrlToJSON(
1296
+ getAllPrompts2ImageUrl: GetAllPrompts2ImageUrl,
1297
+ ): string {
1298
+ return JSON.stringify(
1299
+ GetAllPrompts2ImageUrl$outboundSchema.parse(getAllPrompts2ImageUrl),
1300
+ );
1301
+ }
1302
+
1303
+ export function getAllPrompts2ImageUrlFromJSON(
1304
+ jsonString: string,
1305
+ ): SafeParseResult<GetAllPrompts2ImageUrl, SDKValidationError> {
1306
+ return safeParse(
1307
+ jsonString,
1308
+ (x) => GetAllPrompts2ImageUrl$inboundSchema.parse(JSON.parse(x)),
1309
+ `Failed to parse 'GetAllPrompts2ImageUrl' from JSON`,
1310
+ );
1311
+ }
1312
+
1313
+ /** @internal */
1314
+ export const GetAllPrompts22$inboundSchema: z.ZodType<
1315
+ GetAllPrompts22,
1316
+ z.ZodTypeDef,
1317
+ unknown
1318
+ > = z.object({
1319
+ type: GetAllPrompts2PromptsType$inboundSchema,
1320
+ image_url: z.lazy(() => GetAllPrompts2ImageUrl$inboundSchema),
1321
+ }).transform((v) => {
1322
+ return remap$(v, {
1323
+ "image_url": "imageUrl",
1324
+ });
1325
+ });
1326
+
1327
+ /** @internal */
1328
+ export type GetAllPrompts22$Outbound = {
1329
+ type: string;
1330
+ image_url: GetAllPrompts2ImageUrl$Outbound;
1331
+ };
1332
+
1333
+ /** @internal */
1334
+ export const GetAllPrompts22$outboundSchema: z.ZodType<
1335
+ GetAllPrompts22$Outbound,
1336
+ z.ZodTypeDef,
1337
+ GetAllPrompts22
1338
+ > = z.object({
1339
+ type: GetAllPrompts2PromptsType$outboundSchema,
1340
+ imageUrl: z.lazy(() => GetAllPrompts2ImageUrl$outboundSchema),
1341
+ }).transform((v) => {
1342
+ return remap$(v, {
1343
+ imageUrl: "image_url",
1344
+ });
1345
+ });
1346
+
1347
+ /**
1348
+ * @internal
1349
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1350
+ */
1351
+ export namespace GetAllPrompts22$ {
1352
+ /** @deprecated use `GetAllPrompts22$inboundSchema` instead. */
1353
+ export const inboundSchema = GetAllPrompts22$inboundSchema;
1354
+ /** @deprecated use `GetAllPrompts22$outboundSchema` instead. */
1355
+ export const outboundSchema = GetAllPrompts22$outboundSchema;
1356
+ /** @deprecated use `GetAllPrompts22$Outbound` instead. */
1357
+ export type Outbound = GetAllPrompts22$Outbound;
1358
+ }
1359
+
1360
+ export function getAllPrompts22ToJSON(
1361
+ getAllPrompts22: GetAllPrompts22,
1362
+ ): string {
1363
+ return JSON.stringify(GetAllPrompts22$outboundSchema.parse(getAllPrompts22));
1364
+ }
1365
+
1366
+ export function getAllPrompts22FromJSON(
1367
+ jsonString: string,
1368
+ ): SafeParseResult<GetAllPrompts22, SDKValidationError> {
1369
+ return safeParse(
1370
+ jsonString,
1371
+ (x) => GetAllPrompts22$inboundSchema.parse(JSON.parse(x)),
1372
+ `Failed to parse 'GetAllPrompts22' from JSON`,
1373
+ );
1374
+ }
1375
+
1376
+ /** @internal */
1377
+ export const GetAllPrompts2Type$inboundSchema: z.ZodNativeEnum<
1378
+ typeof GetAllPrompts2Type
1379
+ > = z.nativeEnum(GetAllPrompts2Type);
1380
+
1381
+ /** @internal */
1382
+ export const GetAllPrompts2Type$outboundSchema: z.ZodNativeEnum<
1383
+ typeof GetAllPrompts2Type
1384
+ > = GetAllPrompts2Type$inboundSchema;
1385
+
1386
+ /**
1387
+ * @internal
1388
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1389
+ */
1390
+ export namespace GetAllPrompts2Type$ {
1391
+ /** @deprecated use `GetAllPrompts2Type$inboundSchema` instead. */
1392
+ export const inboundSchema = GetAllPrompts2Type$inboundSchema;
1393
+ /** @deprecated use `GetAllPrompts2Type$outboundSchema` instead. */
1394
+ export const outboundSchema = GetAllPrompts2Type$outboundSchema;
1395
+ }
1396
+
1397
+ /** @internal */
1398
+ export const GetAllPrompts21$inboundSchema: z.ZodType<
1399
+ GetAllPrompts21,
1400
+ z.ZodTypeDef,
1401
+ unknown
1402
+ > = z.object({
1403
+ type: GetAllPrompts2Type$inboundSchema,
1404
+ text: z.string(),
1405
+ });
1406
+
1407
+ /** @internal */
1408
+ export type GetAllPrompts21$Outbound = {
1409
+ type: string;
1410
+ text: string;
1411
+ };
1412
+
1413
+ /** @internal */
1414
+ export const GetAllPrompts21$outboundSchema: z.ZodType<
1415
+ GetAllPrompts21$Outbound,
1416
+ z.ZodTypeDef,
1417
+ GetAllPrompts21
1418
+ > = z.object({
1419
+ type: GetAllPrompts2Type$outboundSchema,
1420
+ text: z.string(),
1421
+ });
1422
+
1423
+ /**
1424
+ * @internal
1425
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1426
+ */
1427
+ export namespace GetAllPrompts21$ {
1428
+ /** @deprecated use `GetAllPrompts21$inboundSchema` instead. */
1429
+ export const inboundSchema = GetAllPrompts21$inboundSchema;
1430
+ /** @deprecated use `GetAllPrompts21$outboundSchema` instead. */
1431
+ export const outboundSchema = GetAllPrompts21$outboundSchema;
1432
+ /** @deprecated use `GetAllPrompts21$Outbound` instead. */
1433
+ export type Outbound = GetAllPrompts21$Outbound;
1434
+ }
1435
+
1436
+ export function getAllPrompts21ToJSON(
1437
+ getAllPrompts21: GetAllPrompts21,
1438
+ ): string {
1439
+ return JSON.stringify(GetAllPrompts21$outboundSchema.parse(getAllPrompts21));
1440
+ }
1441
+
1442
+ export function getAllPrompts21FromJSON(
1443
+ jsonString: string,
1444
+ ): SafeParseResult<GetAllPrompts21, SDKValidationError> {
1445
+ return safeParse(
1446
+ jsonString,
1447
+ (x) => GetAllPrompts21$inboundSchema.parse(JSON.parse(x)),
1448
+ `Failed to parse 'GetAllPrompts21' from JSON`,
1449
+ );
1450
+ }
1451
+
1452
+ /** @internal */
1453
+ export const GetAllPromptsContent2$inboundSchema: z.ZodType<
1454
+ GetAllPromptsContent2,
1455
+ z.ZodTypeDef,
1456
+ unknown
1457
+ > = z.union([
1458
+ z.lazy(() => GetAllPrompts21$inboundSchema),
1459
+ z.lazy(() => GetAllPrompts22$inboundSchema),
1460
+ ]);
1461
+
1462
+ /** @internal */
1463
+ export type GetAllPromptsContent2$Outbound =
1464
+ | GetAllPrompts21$Outbound
1465
+ | GetAllPrompts22$Outbound;
1466
+
1467
+ /** @internal */
1468
+ export const GetAllPromptsContent2$outboundSchema: z.ZodType<
1469
+ GetAllPromptsContent2$Outbound,
1470
+ z.ZodTypeDef,
1471
+ GetAllPromptsContent2
1472
+ > = z.union([
1473
+ z.lazy(() => GetAllPrompts21$outboundSchema),
1474
+ z.lazy(() => GetAllPrompts22$outboundSchema),
1475
+ ]);
1476
+
1477
+ /**
1478
+ * @internal
1479
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1480
+ */
1481
+ export namespace GetAllPromptsContent2$ {
1482
+ /** @deprecated use `GetAllPromptsContent2$inboundSchema` instead. */
1483
+ export const inboundSchema = GetAllPromptsContent2$inboundSchema;
1484
+ /** @deprecated use `GetAllPromptsContent2$outboundSchema` instead. */
1485
+ export const outboundSchema = GetAllPromptsContent2$outboundSchema;
1486
+ /** @deprecated use `GetAllPromptsContent2$Outbound` instead. */
1487
+ export type Outbound = GetAllPromptsContent2$Outbound;
1488
+ }
1489
+
1490
+ export function getAllPromptsContent2ToJSON(
1491
+ getAllPromptsContent2: GetAllPromptsContent2,
1492
+ ): string {
1493
+ return JSON.stringify(
1494
+ GetAllPromptsContent2$outboundSchema.parse(getAllPromptsContent2),
1495
+ );
1496
+ }
1497
+
1498
+ export function getAllPromptsContent2FromJSON(
1499
+ jsonString: string,
1500
+ ): SafeParseResult<GetAllPromptsContent2, SDKValidationError> {
1501
+ return safeParse(
1502
+ jsonString,
1503
+ (x) => GetAllPromptsContent2$inboundSchema.parse(JSON.parse(x)),
1504
+ `Failed to parse 'GetAllPromptsContent2' from JSON`,
1505
+ );
1506
+ }
1507
+
1508
+ /** @internal */
1509
+ export const GetAllPromptsContent$inboundSchema: z.ZodType<
1510
+ GetAllPromptsContent,
1511
+ z.ZodTypeDef,
1512
+ unknown
1513
+ > = z.union([
1514
+ z.string(),
1515
+ z.array(z.union([
1516
+ z.lazy(() => GetAllPrompts21$inboundSchema),
1517
+ z.lazy(() => GetAllPrompts22$inboundSchema),
1518
+ ])),
1519
+ ]);
1520
+
1521
+ /** @internal */
1522
+ export type GetAllPromptsContent$Outbound =
1523
+ | string
1524
+ | Array<GetAllPrompts21$Outbound | GetAllPrompts22$Outbound>;
1525
+
1526
+ /** @internal */
1527
+ export const GetAllPromptsContent$outboundSchema: z.ZodType<
1528
+ GetAllPromptsContent$Outbound,
1529
+ z.ZodTypeDef,
1530
+ GetAllPromptsContent
1531
+ > = z.union([
1532
+ z.string(),
1533
+ z.array(z.union([
1534
+ z.lazy(() => GetAllPrompts21$outboundSchema),
1535
+ z.lazy(() => GetAllPrompts22$outboundSchema),
1536
+ ])),
1537
+ ]);
1538
+
1539
+ /**
1540
+ * @internal
1541
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1542
+ */
1543
+ export namespace GetAllPromptsContent$ {
1544
+ /** @deprecated use `GetAllPromptsContent$inboundSchema` instead. */
1545
+ export const inboundSchema = GetAllPromptsContent$inboundSchema;
1546
+ /** @deprecated use `GetAllPromptsContent$outboundSchema` instead. */
1547
+ export const outboundSchema = GetAllPromptsContent$outboundSchema;
1548
+ /** @deprecated use `GetAllPromptsContent$Outbound` instead. */
1549
+ export type Outbound = GetAllPromptsContent$Outbound;
1550
+ }
1551
+
1552
+ export function getAllPromptsContentToJSON(
1553
+ getAllPromptsContent: GetAllPromptsContent,
1554
+ ): string {
1555
+ return JSON.stringify(
1556
+ GetAllPromptsContent$outboundSchema.parse(getAllPromptsContent),
1557
+ );
1558
+ }
1559
+
1560
+ export function getAllPromptsContentFromJSON(
1561
+ jsonString: string,
1562
+ ): SafeParseResult<GetAllPromptsContent, SDKValidationError> {
1563
+ return safeParse(
1564
+ jsonString,
1565
+ (x) => GetAllPromptsContent$inboundSchema.parse(JSON.parse(x)),
1566
+ `Failed to parse 'GetAllPromptsContent' from JSON`,
1567
+ );
1568
+ }
1569
+
1570
+ /** @internal */
1571
+ export const GetAllPromptsPromptsType$inboundSchema: z.ZodNativeEnum<
1572
+ typeof GetAllPromptsPromptsType
1573
+ > = z.nativeEnum(GetAllPromptsPromptsType);
1574
+
1575
+ /** @internal */
1576
+ export const GetAllPromptsPromptsType$outboundSchema: z.ZodNativeEnum<
1577
+ typeof GetAllPromptsPromptsType
1578
+ > = GetAllPromptsPromptsType$inboundSchema;
1579
+
1580
+ /**
1581
+ * @internal
1582
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1583
+ */
1584
+ export namespace GetAllPromptsPromptsType$ {
1585
+ /** @deprecated use `GetAllPromptsPromptsType$inboundSchema` instead. */
1586
+ export const inboundSchema = GetAllPromptsPromptsType$inboundSchema;
1587
+ /** @deprecated use `GetAllPromptsPromptsType$outboundSchema` instead. */
1588
+ export const outboundSchema = GetAllPromptsPromptsType$outboundSchema;
1589
+ }
1590
+
1591
+ /** @internal */
1592
+ export const GetAllPromptsFunction$inboundSchema: z.ZodType<
1593
+ GetAllPromptsFunction,
1594
+ z.ZodTypeDef,
1595
+ unknown
1596
+ > = z.object({
1597
+ name: z.string(),
1598
+ arguments: z.string(),
1599
+ });
1600
+
1601
+ /** @internal */
1602
+ export type GetAllPromptsFunction$Outbound = {
1603
+ name: string;
1604
+ arguments: string;
1605
+ };
1606
+
1607
+ /** @internal */
1608
+ export const GetAllPromptsFunction$outboundSchema: z.ZodType<
1609
+ GetAllPromptsFunction$Outbound,
1610
+ z.ZodTypeDef,
1611
+ GetAllPromptsFunction
1612
+ > = z.object({
1613
+ name: z.string(),
1614
+ arguments: z.string(),
1615
+ });
1616
+
1617
+ /**
1618
+ * @internal
1619
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1620
+ */
1621
+ export namespace GetAllPromptsFunction$ {
1622
+ /** @deprecated use `GetAllPromptsFunction$inboundSchema` instead. */
1623
+ export const inboundSchema = GetAllPromptsFunction$inboundSchema;
1624
+ /** @deprecated use `GetAllPromptsFunction$outboundSchema` instead. */
1625
+ export const outboundSchema = GetAllPromptsFunction$outboundSchema;
1626
+ /** @deprecated use `GetAllPromptsFunction$Outbound` instead. */
1627
+ export type Outbound = GetAllPromptsFunction$Outbound;
1628
+ }
1629
+
1630
+ export function getAllPromptsFunctionToJSON(
1631
+ getAllPromptsFunction: GetAllPromptsFunction,
1632
+ ): string {
1633
+ return JSON.stringify(
1634
+ GetAllPromptsFunction$outboundSchema.parse(getAllPromptsFunction),
1635
+ );
1636
+ }
1637
+
1638
+ export function getAllPromptsFunctionFromJSON(
1639
+ jsonString: string,
1640
+ ): SafeParseResult<GetAllPromptsFunction, SDKValidationError> {
1641
+ return safeParse(
1642
+ jsonString,
1643
+ (x) => GetAllPromptsFunction$inboundSchema.parse(JSON.parse(x)),
1644
+ `Failed to parse 'GetAllPromptsFunction' from JSON`,
1645
+ );
1646
+ }
1647
+
1648
+ /** @internal */
1649
+ export const GetAllPromptsToolCalls$inboundSchema: z.ZodType<
1650
+ GetAllPromptsToolCalls,
1651
+ z.ZodTypeDef,
1652
+ unknown
1653
+ > = z.object({
1654
+ id: z.string().optional(),
1655
+ index: z.number().optional(),
1656
+ type: GetAllPromptsPromptsType$inboundSchema,
1657
+ function: z.lazy(() => GetAllPromptsFunction$inboundSchema),
1658
+ });
1659
+
1660
+ /** @internal */
1661
+ export type GetAllPromptsToolCalls$Outbound = {
1662
+ id?: string | undefined;
1663
+ index?: number | undefined;
1664
+ type: string;
1665
+ function: GetAllPromptsFunction$Outbound;
1666
+ };
1667
+
1668
+ /** @internal */
1669
+ export const GetAllPromptsToolCalls$outboundSchema: z.ZodType<
1670
+ GetAllPromptsToolCalls$Outbound,
1671
+ z.ZodTypeDef,
1672
+ GetAllPromptsToolCalls
1673
+ > = z.object({
1674
+ id: z.string().optional(),
1675
+ index: z.number().optional(),
1676
+ type: GetAllPromptsPromptsType$outboundSchema,
1677
+ function: z.lazy(() => GetAllPromptsFunction$outboundSchema),
1678
+ });
1679
+
1680
+ /**
1681
+ * @internal
1682
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1683
+ */
1684
+ export namespace GetAllPromptsToolCalls$ {
1685
+ /** @deprecated use `GetAllPromptsToolCalls$inboundSchema` instead. */
1686
+ export const inboundSchema = GetAllPromptsToolCalls$inboundSchema;
1687
+ /** @deprecated use `GetAllPromptsToolCalls$outboundSchema` instead. */
1688
+ export const outboundSchema = GetAllPromptsToolCalls$outboundSchema;
1689
+ /** @deprecated use `GetAllPromptsToolCalls$Outbound` instead. */
1690
+ export type Outbound = GetAllPromptsToolCalls$Outbound;
1691
+ }
1692
+
1693
+ export function getAllPromptsToolCallsToJSON(
1694
+ getAllPromptsToolCalls: GetAllPromptsToolCalls,
1695
+ ): string {
1696
+ return JSON.stringify(
1697
+ GetAllPromptsToolCalls$outboundSchema.parse(getAllPromptsToolCalls),
1698
+ );
1699
+ }
1700
+
1701
+ export function getAllPromptsToolCallsFromJSON(
1702
+ jsonString: string,
1703
+ ): SafeParseResult<GetAllPromptsToolCalls, SDKValidationError> {
1704
+ return safeParse(
1705
+ jsonString,
1706
+ (x) => GetAllPromptsToolCalls$inboundSchema.parse(JSON.parse(x)),
1707
+ `Failed to parse 'GetAllPromptsToolCalls' from JSON`,
1708
+ );
1709
+ }
1710
+
1711
+ /** @internal */
1712
+ export const GetAllPromptsMessages$inboundSchema: z.ZodType<
1713
+ GetAllPromptsMessages,
1714
+ z.ZodTypeDef,
1715
+ unknown
1716
+ > = z.object({
1717
+ role: GetAllPromptsRole$inboundSchema,
1718
+ content: z.union([
1719
+ z.string(),
1720
+ z.array(z.union([
1721
+ z.lazy(() => GetAllPrompts21$inboundSchema),
1722
+ z.lazy(() => GetAllPrompts22$inboundSchema),
1723
+ ])),
1724
+ ]),
1725
+ tool_calls: z.array(z.lazy(() => GetAllPromptsToolCalls$inboundSchema))
1726
+ .optional(),
1727
+ }).transform((v) => {
1728
+ return remap$(v, {
1729
+ "tool_calls": "toolCalls",
1730
+ });
1731
+ });
1732
+
1733
+ /** @internal */
1734
+ export type GetAllPromptsMessages$Outbound = {
1735
+ role: string;
1736
+ content: string | Array<GetAllPrompts21$Outbound | GetAllPrompts22$Outbound>;
1737
+ tool_calls?: Array<GetAllPromptsToolCalls$Outbound> | undefined;
1738
+ };
1739
+
1740
+ /** @internal */
1741
+ export const GetAllPromptsMessages$outboundSchema: z.ZodType<
1742
+ GetAllPromptsMessages$Outbound,
1743
+ z.ZodTypeDef,
1744
+ GetAllPromptsMessages
1745
+ > = z.object({
1746
+ role: GetAllPromptsRole$outboundSchema,
1747
+ content: z.union([
1748
+ z.string(),
1749
+ z.array(z.union([
1750
+ z.lazy(() => GetAllPrompts21$outboundSchema),
1751
+ z.lazy(() => GetAllPrompts22$outboundSchema),
1752
+ ])),
1753
+ ]),
1754
+ toolCalls: z.array(z.lazy(() => GetAllPromptsToolCalls$outboundSchema))
1755
+ .optional(),
1756
+ }).transform((v) => {
1757
+ return remap$(v, {
1758
+ toolCalls: "tool_calls",
1759
+ });
1760
+ });
1761
+
1762
+ /**
1763
+ * @internal
1764
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1765
+ */
1766
+ export namespace GetAllPromptsMessages$ {
1767
+ /** @deprecated use `GetAllPromptsMessages$inboundSchema` instead. */
1768
+ export const inboundSchema = GetAllPromptsMessages$inboundSchema;
1769
+ /** @deprecated use `GetAllPromptsMessages$outboundSchema` instead. */
1770
+ export const outboundSchema = GetAllPromptsMessages$outboundSchema;
1771
+ /** @deprecated use `GetAllPromptsMessages$Outbound` instead. */
1772
+ export type Outbound = GetAllPromptsMessages$Outbound;
1773
+ }
1774
+
1775
+ export function getAllPromptsMessagesToJSON(
1776
+ getAllPromptsMessages: GetAllPromptsMessages,
1777
+ ): string {
1778
+ return JSON.stringify(
1779
+ GetAllPromptsMessages$outboundSchema.parse(getAllPromptsMessages),
1780
+ );
1781
+ }
1782
+
1783
+ export function getAllPromptsMessagesFromJSON(
1784
+ jsonString: string,
1785
+ ): SafeParseResult<GetAllPromptsMessages, SDKValidationError> {
1786
+ return safeParse(
1787
+ jsonString,
1788
+ (x) => GetAllPromptsMessages$inboundSchema.parse(JSON.parse(x)),
1789
+ `Failed to parse 'GetAllPromptsMessages' from JSON`,
1790
+ );
1791
+ }
1792
+
1793
+ /** @internal */
1794
+ export const GetAllPromptsPromptConfig$inboundSchema: z.ZodType<
1795
+ GetAllPromptsPromptConfig,
1796
+ z.ZodTypeDef,
1797
+ unknown
1798
+ > = z.object({
1799
+ stream: z.boolean().optional(),
1800
+ model: z.string().optional(),
1801
+ model_db_id: z.string().optional(),
1802
+ model_type: GetAllPromptsModelType$inboundSchema.optional(),
1803
+ model_parameters: z.lazy(() => GetAllPromptsModelParameters$inboundSchema)
1804
+ .optional(),
1805
+ provider: GetAllPromptsProvider$inboundSchema.optional(),
1806
+ integration_id: z.nullable(z.string()).optional(),
1807
+ version: z.string().optional(),
1808
+ messages: z.array(z.lazy(() => GetAllPromptsMessages$inboundSchema)),
1809
+ }).transform((v) => {
1810
+ return remap$(v, {
1811
+ "model_db_id": "modelDbId",
1812
+ "model_type": "modelType",
1813
+ "model_parameters": "modelParameters",
1814
+ "integration_id": "integrationId",
1815
+ });
1816
+ });
1817
+
1818
+ /** @internal */
1819
+ export type GetAllPromptsPromptConfig$Outbound = {
1820
+ stream?: boolean | undefined;
1821
+ model?: string | undefined;
1822
+ model_db_id?: string | undefined;
1823
+ model_type?: string | undefined;
1824
+ model_parameters?: GetAllPromptsModelParameters$Outbound | undefined;
1825
+ provider?: string | undefined;
1826
+ integration_id?: string | null | undefined;
1827
+ version?: string | undefined;
1828
+ messages: Array<GetAllPromptsMessages$Outbound>;
1829
+ };
1830
+
1831
+ /** @internal */
1832
+ export const GetAllPromptsPromptConfig$outboundSchema: z.ZodType<
1833
+ GetAllPromptsPromptConfig$Outbound,
1834
+ z.ZodTypeDef,
1835
+ GetAllPromptsPromptConfig
1836
+ > = z.object({
1837
+ stream: z.boolean().optional(),
1838
+ model: z.string().optional(),
1839
+ modelDbId: z.string().optional(),
1840
+ modelType: GetAllPromptsModelType$outboundSchema.optional(),
1841
+ modelParameters: z.lazy(() => GetAllPromptsModelParameters$outboundSchema)
1842
+ .optional(),
1843
+ provider: GetAllPromptsProvider$outboundSchema.optional(),
1844
+ integrationId: z.nullable(z.string()).optional(),
1845
+ version: z.string().optional(),
1846
+ messages: z.array(z.lazy(() => GetAllPromptsMessages$outboundSchema)),
1847
+ }).transform((v) => {
1848
+ return remap$(v, {
1849
+ modelDbId: "model_db_id",
1850
+ modelType: "model_type",
1851
+ modelParameters: "model_parameters",
1852
+ integrationId: "integration_id",
1853
+ });
1854
+ });
1855
+
1856
+ /**
1857
+ * @internal
1858
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1859
+ */
1860
+ export namespace GetAllPromptsPromptConfig$ {
1861
+ /** @deprecated use `GetAllPromptsPromptConfig$inboundSchema` instead. */
1862
+ export const inboundSchema = GetAllPromptsPromptConfig$inboundSchema;
1863
+ /** @deprecated use `GetAllPromptsPromptConfig$outboundSchema` instead. */
1864
+ export const outboundSchema = GetAllPromptsPromptConfig$outboundSchema;
1865
+ /** @deprecated use `GetAllPromptsPromptConfig$Outbound` instead. */
1866
+ export type Outbound = GetAllPromptsPromptConfig$Outbound;
1867
+ }
1868
+
1869
+ export function getAllPromptsPromptConfigToJSON(
1870
+ getAllPromptsPromptConfig: GetAllPromptsPromptConfig,
1871
+ ): string {
1872
+ return JSON.stringify(
1873
+ GetAllPromptsPromptConfig$outboundSchema.parse(getAllPromptsPromptConfig),
1874
+ );
1875
+ }
1876
+
1877
+ export function getAllPromptsPromptConfigFromJSON(
1878
+ jsonString: string,
1879
+ ): SafeParseResult<GetAllPromptsPromptConfig, SDKValidationError> {
1880
+ return safeParse(
1881
+ jsonString,
1882
+ (x) => GetAllPromptsPromptConfig$inboundSchema.parse(JSON.parse(x)),
1883
+ `Failed to parse 'GetAllPromptsPromptConfig' from JSON`,
1884
+ );
1885
+ }
1886
+
1887
+ /** @internal */
1888
+ export const GetAllPromptsUseCases$inboundSchema: z.ZodNativeEnum<
1889
+ typeof GetAllPromptsUseCases
1890
+ > = z.nativeEnum(GetAllPromptsUseCases);
1891
+
1892
+ /** @internal */
1893
+ export const GetAllPromptsUseCases$outboundSchema: z.ZodNativeEnum<
1894
+ typeof GetAllPromptsUseCases
1895
+ > = GetAllPromptsUseCases$inboundSchema;
1896
+
1897
+ /**
1898
+ * @internal
1899
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1900
+ */
1901
+ export namespace GetAllPromptsUseCases$ {
1902
+ /** @deprecated use `GetAllPromptsUseCases$inboundSchema` instead. */
1903
+ export const inboundSchema = GetAllPromptsUseCases$inboundSchema;
1904
+ /** @deprecated use `GetAllPromptsUseCases$outboundSchema` instead. */
1905
+ export const outboundSchema = GetAllPromptsUseCases$outboundSchema;
1906
+ }
1907
+
1908
+ /** @internal */
1909
+ export const GetAllPromptsLanguage$inboundSchema: z.ZodNativeEnum<
1910
+ typeof GetAllPromptsLanguage
1911
+ > = z.nativeEnum(GetAllPromptsLanguage);
1912
+
1913
+ /** @internal */
1914
+ export const GetAllPromptsLanguage$outboundSchema: z.ZodNativeEnum<
1915
+ typeof GetAllPromptsLanguage
1916
+ > = GetAllPromptsLanguage$inboundSchema;
1917
+
1918
+ /**
1919
+ * @internal
1920
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1921
+ */
1922
+ export namespace GetAllPromptsLanguage$ {
1923
+ /** @deprecated use `GetAllPromptsLanguage$inboundSchema` instead. */
1924
+ export const inboundSchema = GetAllPromptsLanguage$inboundSchema;
1925
+ /** @deprecated use `GetAllPromptsLanguage$outboundSchema` instead. */
1926
+ export const outboundSchema = GetAllPromptsLanguage$outboundSchema;
1927
+ }
1928
+
1929
+ /** @internal */
1930
+ export const GetAllPromptsMetadata$inboundSchema: z.ZodType<
1931
+ GetAllPromptsMetadata,
1932
+ z.ZodTypeDef,
1933
+ unknown
1934
+ > = z.object({
1935
+ use_cases: z.array(GetAllPromptsUseCases$inboundSchema).optional(),
1936
+ language: GetAllPromptsLanguage$inboundSchema.optional(),
1937
+ }).transform((v) => {
1938
+ return remap$(v, {
1939
+ "use_cases": "useCases",
1940
+ });
1941
+ });
1942
+
1943
+ /** @internal */
1944
+ export type GetAllPromptsMetadata$Outbound = {
1945
+ use_cases?: Array<string> | undefined;
1946
+ language?: string | undefined;
1947
+ };
1948
+
1949
+ /** @internal */
1950
+ export const GetAllPromptsMetadata$outboundSchema: z.ZodType<
1951
+ GetAllPromptsMetadata$Outbound,
1952
+ z.ZodTypeDef,
1953
+ GetAllPromptsMetadata
1954
+ > = z.object({
1955
+ useCases: z.array(GetAllPromptsUseCases$outboundSchema).optional(),
1956
+ language: GetAllPromptsLanguage$outboundSchema.optional(),
1957
+ }).transform((v) => {
1958
+ return remap$(v, {
1959
+ useCases: "use_cases",
1960
+ });
1961
+ });
1962
+
1963
+ /**
1964
+ * @internal
1965
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1966
+ */
1967
+ export namespace GetAllPromptsMetadata$ {
1968
+ /** @deprecated use `GetAllPromptsMetadata$inboundSchema` instead. */
1969
+ export const inboundSchema = GetAllPromptsMetadata$inboundSchema;
1970
+ /** @deprecated use `GetAllPromptsMetadata$outboundSchema` instead. */
1971
+ export const outboundSchema = GetAllPromptsMetadata$outboundSchema;
1972
+ /** @deprecated use `GetAllPromptsMetadata$Outbound` instead. */
1973
+ export type Outbound = GetAllPromptsMetadata$Outbound;
1974
+ }
1975
+
1976
+ export function getAllPromptsMetadataToJSON(
1977
+ getAllPromptsMetadata: GetAllPromptsMetadata,
1978
+ ): string {
1979
+ return JSON.stringify(
1980
+ GetAllPromptsMetadata$outboundSchema.parse(getAllPromptsMetadata),
1981
+ );
1982
+ }
1983
+
1984
+ export function getAllPromptsMetadataFromJSON(
1985
+ jsonString: string,
1986
+ ): SafeParseResult<GetAllPromptsMetadata, SDKValidationError> {
1987
+ return safeParse(
1988
+ jsonString,
1989
+ (x) => GetAllPromptsMetadata$inboundSchema.parse(JSON.parse(x)),
1990
+ `Failed to parse 'GetAllPromptsMetadata' from JSON`,
1991
+ );
1992
+ }
1993
+
1994
+ /** @internal */
1995
+ export const GetAllPromptsData$inboundSchema: z.ZodType<
1996
+ GetAllPromptsData,
1997
+ z.ZodTypeDef,
1998
+ unknown
1999
+ > = z.object({
2000
+ _id: z.string(),
2001
+ type: GetAllPromptsType$inboundSchema,
2002
+ owner: z.string(),
2003
+ domain_id: z.string(),
2004
+ created: z.string(),
2005
+ updated: z.string(),
2006
+ created_by_id: z.nullable(z.string()).optional(),
2007
+ updated_by_id: z.nullable(z.string()).optional(),
2008
+ display_name: z.string(),
2009
+ description: z.nullable(z.string()).optional(),
2010
+ prompt_config: z.lazy(() => GetAllPromptsPromptConfig$inboundSchema),
2011
+ metadata: z.lazy(() => GetAllPromptsMetadata$inboundSchema).optional(),
2012
+ }).transform((v) => {
2013
+ return remap$(v, {
2014
+ "_id": "id",
2015
+ "domain_id": "domainId",
2016
+ "created_by_id": "createdById",
2017
+ "updated_by_id": "updatedById",
2018
+ "display_name": "displayName",
2019
+ "prompt_config": "promptConfig",
2020
+ });
2021
+ });
2022
+
2023
+ /** @internal */
2024
+ export type GetAllPromptsData$Outbound = {
2025
+ _id: string;
2026
+ type: string;
2027
+ owner: string;
2028
+ domain_id: string;
2029
+ created: string;
2030
+ updated: string;
2031
+ created_by_id?: string | null | undefined;
2032
+ updated_by_id?: string | null | undefined;
2033
+ display_name: string;
2034
+ description?: string | null | undefined;
2035
+ prompt_config: GetAllPromptsPromptConfig$Outbound;
2036
+ metadata?: GetAllPromptsMetadata$Outbound | undefined;
2037
+ };
2038
+
2039
+ /** @internal */
2040
+ export const GetAllPromptsData$outboundSchema: z.ZodType<
2041
+ GetAllPromptsData$Outbound,
2042
+ z.ZodTypeDef,
2043
+ GetAllPromptsData
2044
+ > = z.object({
2045
+ id: z.string(),
2046
+ type: GetAllPromptsType$outboundSchema,
2047
+ owner: z.string(),
2048
+ domainId: z.string(),
2049
+ created: z.string(),
2050
+ updated: z.string(),
2051
+ createdById: z.nullable(z.string()).optional(),
2052
+ updatedById: z.nullable(z.string()).optional(),
2053
+ displayName: z.string(),
2054
+ description: z.nullable(z.string()).optional(),
2055
+ promptConfig: z.lazy(() => GetAllPromptsPromptConfig$outboundSchema),
2056
+ metadata: z.lazy(() => GetAllPromptsMetadata$outboundSchema).optional(),
2057
+ }).transform((v) => {
2058
+ return remap$(v, {
2059
+ id: "_id",
2060
+ domainId: "domain_id",
2061
+ createdById: "created_by_id",
2062
+ updatedById: "updated_by_id",
2063
+ displayName: "display_name",
2064
+ promptConfig: "prompt_config",
2065
+ });
2066
+ });
2067
+
2068
+ /**
2069
+ * @internal
2070
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2071
+ */
2072
+ export namespace GetAllPromptsData$ {
2073
+ /** @deprecated use `GetAllPromptsData$inboundSchema` instead. */
2074
+ export const inboundSchema = GetAllPromptsData$inboundSchema;
2075
+ /** @deprecated use `GetAllPromptsData$outboundSchema` instead. */
2076
+ export const outboundSchema = GetAllPromptsData$outboundSchema;
2077
+ /** @deprecated use `GetAllPromptsData$Outbound` instead. */
2078
+ export type Outbound = GetAllPromptsData$Outbound;
2079
+ }
2080
+
2081
+ export function getAllPromptsDataToJSON(
2082
+ getAllPromptsData: GetAllPromptsData,
2083
+ ): string {
2084
+ return JSON.stringify(
2085
+ GetAllPromptsData$outboundSchema.parse(getAllPromptsData),
2086
+ );
2087
+ }
2088
+
2089
+ export function getAllPromptsDataFromJSON(
2090
+ jsonString: string,
2091
+ ): SafeParseResult<GetAllPromptsData, SDKValidationError> {
2092
+ return safeParse(
2093
+ jsonString,
2094
+ (x) => GetAllPromptsData$inboundSchema.parse(JSON.parse(x)),
2095
+ `Failed to parse 'GetAllPromptsData' from JSON`,
2096
+ );
2097
+ }
2098
+
2099
+ /** @internal */
2100
+ export const GetAllPromptsResponseBody$inboundSchema: z.ZodType<
2101
+ GetAllPromptsResponseBody,
2102
+ z.ZodTypeDef,
2103
+ unknown
2104
+ > = z.object({
2105
+ object: GetAllPromptsObject$inboundSchema,
2106
+ data: z.array(z.lazy(() => GetAllPromptsData$inboundSchema)),
2107
+ has_more: z.boolean(),
2108
+ }).transform((v) => {
2109
+ return remap$(v, {
2110
+ "has_more": "hasMore",
2111
+ });
2112
+ });
2113
+
2114
+ /** @internal */
2115
+ export type GetAllPromptsResponseBody$Outbound = {
2116
+ object: string;
2117
+ data: Array<GetAllPromptsData$Outbound>;
2118
+ has_more: boolean;
2119
+ };
2120
+
2121
+ /** @internal */
2122
+ export const GetAllPromptsResponseBody$outboundSchema: z.ZodType<
2123
+ GetAllPromptsResponseBody$Outbound,
2124
+ z.ZodTypeDef,
2125
+ GetAllPromptsResponseBody
2126
+ > = z.object({
2127
+ object: GetAllPromptsObject$outboundSchema,
2128
+ data: z.array(z.lazy(() => GetAllPromptsData$outboundSchema)),
2129
+ hasMore: z.boolean(),
2130
+ }).transform((v) => {
2131
+ return remap$(v, {
2132
+ hasMore: "has_more",
2133
+ });
2134
+ });
2135
+
2136
+ /**
2137
+ * @internal
2138
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2139
+ */
2140
+ export namespace GetAllPromptsResponseBody$ {
2141
+ /** @deprecated use `GetAllPromptsResponseBody$inboundSchema` instead. */
2142
+ export const inboundSchema = GetAllPromptsResponseBody$inboundSchema;
2143
+ /** @deprecated use `GetAllPromptsResponseBody$outboundSchema` instead. */
2144
+ export const outboundSchema = GetAllPromptsResponseBody$outboundSchema;
2145
+ /** @deprecated use `GetAllPromptsResponseBody$Outbound` instead. */
2146
+ export type Outbound = GetAllPromptsResponseBody$Outbound;
2147
+ }
2148
+
2149
+ export function getAllPromptsResponseBodyToJSON(
2150
+ getAllPromptsResponseBody: GetAllPromptsResponseBody,
2151
+ ): string {
2152
+ return JSON.stringify(
2153
+ GetAllPromptsResponseBody$outboundSchema.parse(getAllPromptsResponseBody),
2154
+ );
2155
+ }
2156
+
2157
+ export function getAllPromptsResponseBodyFromJSON(
2158
+ jsonString: string,
2159
+ ): SafeParseResult<GetAllPromptsResponseBody, SDKValidationError> {
2160
+ return safeParse(
2161
+ jsonString,
2162
+ (x) => GetAllPromptsResponseBody$inboundSchema.parse(JSON.parse(x)),
2163
+ `Failed to parse 'GetAllPromptsResponseBody' from JSON`,
2164
+ );
2165
+ }