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