@orq-ai/node 3.1.9 → 3.1.10

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 (425) hide show
  1. package/README.md +55 -1
  2. package/bin/mcp-server.js +47941 -0
  3. package/bin/mcp-server.js.map +318 -0
  4. package/funcs/contactsCreate.d.ts +2 -1
  5. package/funcs/contactsCreate.d.ts.map +1 -1
  6. package/funcs/contactsCreate.js +11 -7
  7. package/funcs/contactsCreate.js.map +1 -1
  8. package/funcs/deploymentsGetConfig.d.ts +2 -1
  9. package/funcs/deploymentsGetConfig.d.ts.map +1 -1
  10. package/funcs/deploymentsGetConfig.js +11 -7
  11. package/funcs/deploymentsGetConfig.js.map +1 -1
  12. package/funcs/deploymentsInvoke.d.ts +2 -1
  13. package/funcs/deploymentsInvoke.d.ts.map +1 -1
  14. package/funcs/deploymentsInvoke.js +11 -7
  15. package/funcs/deploymentsInvoke.js.map +1 -1
  16. package/funcs/deploymentsList.d.ts +2 -1
  17. package/funcs/deploymentsList.d.ts.map +1 -1
  18. package/funcs/deploymentsList.js +11 -7
  19. package/funcs/deploymentsList.js.map +1 -1
  20. package/funcs/deploymentsMetricsCreate.d.ts +2 -1
  21. package/funcs/deploymentsMetricsCreate.d.ts.map +1 -1
  22. package/funcs/deploymentsMetricsCreate.js +11 -7
  23. package/funcs/deploymentsMetricsCreate.js.map +1 -1
  24. package/funcs/deploymentsStream.d.ts +2 -1
  25. package/funcs/deploymentsStream.d.ts.map +1 -1
  26. package/funcs/deploymentsStream.js +11 -7
  27. package/funcs/deploymentsStream.js.map +1 -1
  28. package/funcs/feedbackCreate.d.ts +2 -1
  29. package/funcs/feedbackCreate.d.ts.map +1 -1
  30. package/funcs/feedbackCreate.js +11 -7
  31. package/funcs/feedbackCreate.js.map +1 -1
  32. package/funcs/filesCreate.d.ts +2 -1
  33. package/funcs/filesCreate.d.ts.map +1 -1
  34. package/funcs/filesCreate.js +11 -7
  35. package/funcs/filesCreate.js.map +1 -1
  36. package/funcs/filesDelete.d.ts +2 -1
  37. package/funcs/filesDelete.d.ts.map +1 -1
  38. package/funcs/filesDelete.js +11 -7
  39. package/funcs/filesDelete.js.map +1 -1
  40. package/funcs/filesGet.d.ts +2 -1
  41. package/funcs/filesGet.d.ts.map +1 -1
  42. package/funcs/filesGet.js +11 -7
  43. package/funcs/filesGet.js.map +1 -1
  44. package/funcs/filesList.d.ts +2 -1
  45. package/funcs/filesList.d.ts.map +1 -1
  46. package/funcs/filesList.js +11 -7
  47. package/funcs/filesList.js.map +1 -1
  48. package/funcs/promptsCreate.d.ts +2 -1
  49. package/funcs/promptsCreate.d.ts.map +1 -1
  50. package/funcs/promptsCreate.js +11 -7
  51. package/funcs/promptsCreate.js.map +1 -1
  52. package/funcs/promptsDelete.d.ts +2 -1
  53. package/funcs/promptsDelete.d.ts.map +1 -1
  54. package/funcs/promptsDelete.js +11 -7
  55. package/funcs/promptsDelete.js.map +1 -1
  56. package/funcs/promptsGetVersion.d.ts +2 -1
  57. package/funcs/promptsGetVersion.d.ts.map +1 -1
  58. package/funcs/promptsGetVersion.js +11 -7
  59. package/funcs/promptsGetVersion.js.map +1 -1
  60. package/funcs/promptsList.d.ts +2 -1
  61. package/funcs/promptsList.d.ts.map +1 -1
  62. package/funcs/promptsList.js +11 -7
  63. package/funcs/promptsList.js.map +1 -1
  64. package/funcs/promptsListVersions.d.ts +2 -1
  65. package/funcs/promptsListVersions.d.ts.map +1 -1
  66. package/funcs/promptsListVersions.js +11 -7
  67. package/funcs/promptsListVersions.js.map +1 -1
  68. package/funcs/promptsRetrieve.d.ts +2 -1
  69. package/funcs/promptsRetrieve.d.ts.map +1 -1
  70. package/funcs/promptsRetrieve.js +11 -7
  71. package/funcs/promptsRetrieve.js.map +1 -1
  72. package/funcs/promptsUpdate.d.ts +2 -1
  73. package/funcs/promptsUpdate.d.ts.map +1 -1
  74. package/funcs/promptsUpdate.js +11 -7
  75. package/funcs/promptsUpdate.js.map +1 -1
  76. package/funcs/remoteconfigsRetrieve.d.ts +2 -1
  77. package/funcs/remoteconfigsRetrieve.d.ts.map +1 -1
  78. package/funcs/remoteconfigsRetrieve.js +11 -7
  79. package/funcs/remoteconfigsRetrieve.js.map +1 -1
  80. package/jsr.json +1 -1
  81. package/lib/config.d.ts +6 -6
  82. package/lib/config.d.ts.map +1 -1
  83. package/lib/config.js +3 -3
  84. package/lib/config.js.map +1 -1
  85. package/lib/files.js.map +1 -1
  86. package/lib/primitives.d.ts +3 -0
  87. package/lib/primitives.d.ts.map +1 -1
  88. package/lib/primitives.js +7 -0
  89. package/lib/primitives.js.map +1 -1
  90. package/lib/sdks.d.ts +1 -1
  91. package/lib/sdks.d.ts.map +1 -1
  92. package/mcp-server/build.d.mts.map +1 -0
  93. package/mcp-server/build.mjs +14 -0
  94. package/mcp-server/build.mjs.map +1 -0
  95. package/mcp-server/cli/start/command.d.ts +2 -0
  96. package/mcp-server/cli/start/command.d.ts.map +1 -0
  97. package/mcp-server/cli/start/command.js +145 -0
  98. package/mcp-server/cli/start/command.js.map +1 -0
  99. package/mcp-server/cli/start/impl.d.ts +19 -0
  100. package/mcp-server/cli/start/impl.d.ts.map +1 -0
  101. package/mcp-server/cli/start/impl.js +106 -0
  102. package/mcp-server/cli/start/impl.js.map +1 -0
  103. package/mcp-server/cli.d.ts +6 -0
  104. package/mcp-server/cli.d.ts.map +1 -0
  105. package/mcp-server/cli.js +10 -0
  106. package/mcp-server/cli.js.map +1 -0
  107. package/mcp-server/console-logger.d.ts +7 -0
  108. package/mcp-server/console-logger.d.ts.map +1 -0
  109. package/mcp-server/console-logger.js +59 -0
  110. package/mcp-server/console-logger.js.map +1 -0
  111. package/mcp-server/mcp-server.d.ts +2 -0
  112. package/mcp-server/mcp-server.d.ts.map +1 -0
  113. package/mcp-server/mcp-server.js +29 -0
  114. package/mcp-server/mcp-server.js.map +1 -0
  115. package/mcp-server/resources.d.ts +27 -0
  116. package/mcp-server/resources.d.ts.map +1 -0
  117. package/mcp-server/resources.js +51 -0
  118. package/mcp-server/resources.js.map +1 -0
  119. package/mcp-server/scopes.d.ts +3 -0
  120. package/mcp-server/scopes.d.ts.map +1 -0
  121. package/mcp-server/scopes.js +8 -0
  122. package/mcp-server/scopes.js.map +1 -0
  123. package/mcp-server/server.d.ts +14 -0
  124. package/mcp-server/server.d.ts.map +1 -0
  125. package/mcp-server/server.js +65 -0
  126. package/mcp-server/server.js.map +1 -0
  127. package/mcp-server/shared.d.ts +7 -0
  128. package/mcp-server/shared.d.ts.map +1 -0
  129. package/mcp-server/shared.js +98 -0
  130. package/mcp-server/shared.js.map +1 -0
  131. package/mcp-server/tools/contactsCreate.d.ts +8 -0
  132. package/mcp-server/tools/contactsCreate.d.ts.map +1 -0
  133. package/mcp-server/tools/contactsCreate.js +64 -0
  134. package/mcp-server/tools/contactsCreate.js.map +1 -0
  135. package/mcp-server/tools/deploymentsGetConfig.d.ts +8 -0
  136. package/mcp-server/tools/deploymentsGetConfig.d.ts.map +1 -0
  137. package/mcp-server/tools/deploymentsGetConfig.js +64 -0
  138. package/mcp-server/tools/deploymentsGetConfig.js.map +1 -0
  139. package/mcp-server/tools/deploymentsInvoke.d.ts +8 -0
  140. package/mcp-server/tools/deploymentsInvoke.d.ts.map +1 -0
  141. package/mcp-server/tools/deploymentsInvoke.js +64 -0
  142. package/mcp-server/tools/deploymentsInvoke.js.map +1 -0
  143. package/mcp-server/tools/deploymentsList.d.ts +8 -0
  144. package/mcp-server/tools/deploymentsList.d.ts.map +1 -0
  145. package/mcp-server/tools/deploymentsList.js +64 -0
  146. package/mcp-server/tools/deploymentsList.js.map +1 -0
  147. package/mcp-server/tools/deploymentsMetricsCreate.d.ts +8 -0
  148. package/mcp-server/tools/deploymentsMetricsCreate.d.ts.map +1 -0
  149. package/mcp-server/tools/deploymentsMetricsCreate.js +64 -0
  150. package/mcp-server/tools/deploymentsMetricsCreate.js.map +1 -0
  151. package/mcp-server/tools/deploymentsStream.d.ts +8 -0
  152. package/mcp-server/tools/deploymentsStream.d.ts.map +1 -0
  153. package/mcp-server/tools/deploymentsStream.js +64 -0
  154. package/mcp-server/tools/deploymentsStream.js.map +1 -0
  155. package/mcp-server/tools/feedbackCreate.d.ts +8 -0
  156. package/mcp-server/tools/feedbackCreate.d.ts.map +1 -0
  157. package/mcp-server/tools/feedbackCreate.js +64 -0
  158. package/mcp-server/tools/feedbackCreate.js.map +1 -0
  159. package/mcp-server/tools/filesCreate.d.ts +8 -0
  160. package/mcp-server/tools/filesCreate.d.ts.map +1 -0
  161. package/mcp-server/tools/filesCreate.js +64 -0
  162. package/mcp-server/tools/filesCreate.js.map +1 -0
  163. package/mcp-server/tools/filesDelete.d.ts +8 -0
  164. package/mcp-server/tools/filesDelete.d.ts.map +1 -0
  165. package/mcp-server/tools/filesDelete.js +61 -0
  166. package/mcp-server/tools/filesDelete.js.map +1 -0
  167. package/mcp-server/tools/filesGet.d.ts +8 -0
  168. package/mcp-server/tools/filesGet.d.ts.map +1 -0
  169. package/mcp-server/tools/filesGet.js +64 -0
  170. package/mcp-server/tools/filesGet.js.map +1 -0
  171. package/mcp-server/tools/filesList.d.ts +8 -0
  172. package/mcp-server/tools/filesList.d.ts.map +1 -0
  173. package/mcp-server/tools/filesList.js +64 -0
  174. package/mcp-server/tools/filesList.js.map +1 -0
  175. package/mcp-server/tools/promptsCreate.d.ts +8 -0
  176. package/mcp-server/tools/promptsCreate.d.ts.map +1 -0
  177. package/mcp-server/tools/promptsCreate.js +62 -0
  178. package/mcp-server/tools/promptsCreate.js.map +1 -0
  179. package/mcp-server/tools/promptsDelete.d.ts +8 -0
  180. package/mcp-server/tools/promptsDelete.d.ts.map +1 -0
  181. package/mcp-server/tools/promptsDelete.js +61 -0
  182. package/mcp-server/tools/promptsDelete.js.map +1 -0
  183. package/mcp-server/tools/promptsGetVersion.d.ts +8 -0
  184. package/mcp-server/tools/promptsGetVersion.d.ts.map +1 -0
  185. package/mcp-server/tools/promptsGetVersion.js +64 -0
  186. package/mcp-server/tools/promptsGetVersion.js.map +1 -0
  187. package/mcp-server/tools/promptsList.d.ts +8 -0
  188. package/mcp-server/tools/promptsList.d.ts.map +1 -0
  189. package/mcp-server/tools/promptsList.js +64 -0
  190. package/mcp-server/tools/promptsList.js.map +1 -0
  191. package/mcp-server/tools/promptsListVersions.d.ts +8 -0
  192. package/mcp-server/tools/promptsListVersions.d.ts.map +1 -0
  193. package/mcp-server/tools/promptsListVersions.js +64 -0
  194. package/mcp-server/tools/promptsListVersions.js.map +1 -0
  195. package/mcp-server/tools/promptsRetrieve.d.ts +8 -0
  196. package/mcp-server/tools/promptsRetrieve.d.ts.map +1 -0
  197. package/mcp-server/tools/promptsRetrieve.js +64 -0
  198. package/mcp-server/tools/promptsRetrieve.js.map +1 -0
  199. package/mcp-server/tools/promptsUpdate.d.ts +8 -0
  200. package/mcp-server/tools/promptsUpdate.d.ts.map +1 -0
  201. package/mcp-server/tools/promptsUpdate.js +62 -0
  202. package/mcp-server/tools/promptsUpdate.js.map +1 -0
  203. package/mcp-server/tools/remoteconfigsRetrieve.d.ts +8 -0
  204. package/mcp-server/tools/remoteconfigsRetrieve.d.ts.map +1 -0
  205. package/mcp-server/tools/remoteconfigsRetrieve.js +63 -0
  206. package/mcp-server/tools/remoteconfigsRetrieve.js.map +1 -0
  207. package/mcp-server/tools.d.ts +25 -0
  208. package/mcp-server/tools.d.ts.map +1 -0
  209. package/mcp-server/tools.js +74 -0
  210. package/mcp-server/tools.js.map +1 -0
  211. package/models/operations/createcontact.js +2 -2
  212. package/models/operations/createprompt.d.ts +10 -0
  213. package/models/operations/createprompt.d.ts.map +1 -1
  214. package/models/operations/createprompt.js +4 -0
  215. package/models/operations/createprompt.js.map +1 -1
  216. package/models/operations/deploymentgetconfig.d.ts +5 -0
  217. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  218. package/models/operations/deploymentgetconfig.js +2 -0
  219. package/models/operations/deploymentgetconfig.js.map +1 -1
  220. package/models/operations/deployments.d.ts +5 -0
  221. package/models/operations/deployments.d.ts.map +1 -1
  222. package/models/operations/deployments.js +2 -0
  223. package/models/operations/deployments.js.map +1 -1
  224. package/models/operations/fileget.js +2 -2
  225. package/models/operations/filelist.js +2 -2
  226. package/models/operations/fileupload.js +2 -2
  227. package/models/operations/getallprompts.d.ts +5 -0
  228. package/models/operations/getallprompts.d.ts.map +1 -1
  229. package/models/operations/getallprompts.js +2 -0
  230. package/models/operations/getallprompts.js.map +1 -1
  231. package/models/operations/getoneprompt.d.ts +5 -0
  232. package/models/operations/getoneprompt.d.ts.map +1 -1
  233. package/models/operations/getoneprompt.js +2 -0
  234. package/models/operations/getoneprompt.js.map +1 -1
  235. package/models/operations/getpromptversion.d.ts +5 -0
  236. package/models/operations/getpromptversion.d.ts.map +1 -1
  237. package/models/operations/getpromptversion.js +2 -0
  238. package/models/operations/getpromptversion.js.map +1 -1
  239. package/models/operations/listpromptversions.d.ts +5 -0
  240. package/models/operations/listpromptversions.d.ts.map +1 -1
  241. package/models/operations/listpromptversions.js +2 -0
  242. package/models/operations/listpromptversions.js.map +1 -1
  243. package/models/operations/updateprompt.d.ts +10 -0
  244. package/models/operations/updateprompt.d.ts.map +1 -1
  245. package/models/operations/updateprompt.js +4 -0
  246. package/models/operations/updateprompt.js.map +1 -1
  247. package/package.json +16 -2
  248. package/packages/orq-rc/README.md +83 -2
  249. package/packages/orq-rc/docs/sdks/datasets/README.md +934 -0
  250. package/packages/orq-rc/docs/sdks/prompts/README.md +110 -110
  251. package/packages/orq-rc/jsr.json +1 -1
  252. package/packages/orq-rc/package-lock.json +1397 -41
  253. package/packages/orq-rc/package.json +16 -2
  254. package/packages/orq-rc/src/funcs/contactsCreate.ts +35 -8
  255. package/packages/orq-rc/src/funcs/datasetsClear.ts +161 -0
  256. package/packages/orq-rc/src/funcs/datasetsCreate.ts +159 -0
  257. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +161 -0
  258. package/packages/orq-rc/src/funcs/datasetsCreateDatapoints.ts +165 -0
  259. package/packages/orq-rc/src/funcs/datasetsDelete.ts +161 -0
  260. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +176 -0
  261. package/packages/orq-rc/src/funcs/datasetsList.ts +161 -0
  262. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +168 -0
  263. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +169 -0
  264. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +175 -0
  265. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +170 -0
  266. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +173 -0
  267. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +35 -8
  268. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +35 -8
  269. package/packages/orq-rc/src/funcs/deploymentsList.ts +36 -8
  270. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +35 -8
  271. package/packages/orq-rc/src/funcs/feedbackCreate.ts +35 -8
  272. package/packages/orq-rc/src/funcs/filesCreate.ts +35 -8
  273. package/packages/orq-rc/src/funcs/filesDelete.ts +35 -8
  274. package/packages/orq-rc/src/funcs/filesGet.ts +35 -8
  275. package/packages/orq-rc/src/funcs/filesList.ts +35 -8
  276. package/packages/orq-rc/src/funcs/promptsCreate.ts +35 -8
  277. package/packages/orq-rc/src/funcs/promptsDelete.ts +35 -8
  278. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +36 -8
  279. package/packages/orq-rc/src/funcs/promptsList.ts +36 -9
  280. package/packages/orq-rc/src/funcs/promptsListVersions.ts +35 -8
  281. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +35 -8
  282. package/packages/orq-rc/src/funcs/promptsUpdate.ts +36 -8
  283. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +35 -8
  284. package/packages/orq-rc/src/lib/config.ts +6 -6
  285. package/packages/orq-rc/src/lib/files.ts +1 -1
  286. package/packages/orq-rc/src/lib/primitives.ts +14 -0
  287. package/packages/orq-rc/src/lib/sdks.ts +1 -1
  288. package/packages/orq-rc/src/mcp-server/cli/start/command.ts +116 -0
  289. package/packages/orq-rc/src/mcp-server/cli/start/impl.ts +137 -0
  290. package/packages/orq-rc/src/mcp-server/cli.ts +13 -0
  291. package/packages/orq-rc/src/mcp-server/console-logger.ts +71 -0
  292. package/packages/orq-rc/src/mcp-server/mcp-server.ts +26 -0
  293. package/packages/orq-rc/src/mcp-server/resources.ts +96 -0
  294. package/packages/orq-rc/src/mcp-server/scopes.ts +7 -0
  295. package/packages/orq-rc/src/mcp-server/server.ts +98 -0
  296. package/packages/orq-rc/src/mcp-server/shared.ts +75 -0
  297. package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +37 -0
  298. package/packages/orq-rc/src/mcp-server/tools/datasetsClear.ts +35 -0
  299. package/packages/orq-rc/src/mcp-server/tools/datasetsCreate.ts +37 -0
  300. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoint.ts +37 -0
  301. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoints.ts +37 -0
  302. package/packages/orq-rc/src/mcp-server/tools/datasetsDelete.ts +35 -0
  303. package/packages/orq-rc/src/mcp-server/tools/datasetsDeleteDatapoint.ts +35 -0
  304. package/packages/orq-rc/src/mcp-server/tools/datasetsList.ts +37 -0
  305. package/packages/orq-rc/src/mcp-server/tools/datasetsListDatapoints.ts +37 -0
  306. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieve.ts +37 -0
  307. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieveDatapoint.ts +37 -0
  308. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdate.ts +37 -0
  309. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdateDatapoint.ts +35 -0
  310. package/packages/orq-rc/src/mcp-server/tools/deploymentsGetConfig.ts +37 -0
  311. package/packages/orq-rc/src/mcp-server/tools/deploymentsInvoke.ts +37 -0
  312. package/packages/orq-rc/src/mcp-server/tools/deploymentsList.ts +37 -0
  313. package/packages/orq-rc/src/mcp-server/tools/deploymentsMetricsCreate.ts +37 -0
  314. package/packages/orq-rc/src/mcp-server/tools/feedbackCreate.ts +37 -0
  315. package/packages/orq-rc/src/mcp-server/tools/filesCreate.ts +37 -0
  316. package/packages/orq-rc/src/mcp-server/tools/filesDelete.ts +33 -0
  317. package/packages/orq-rc/src/mcp-server/tools/filesGet.ts +37 -0
  318. package/packages/orq-rc/src/mcp-server/tools/filesList.ts +37 -0
  319. package/packages/orq-rc/src/mcp-server/tools/promptsCreate.ts +35 -0
  320. package/packages/orq-rc/src/mcp-server/tools/promptsDelete.ts +33 -0
  321. package/packages/orq-rc/src/mcp-server/tools/promptsGetVersion.ts +37 -0
  322. package/packages/orq-rc/src/mcp-server/tools/promptsList.ts +37 -0
  323. package/packages/orq-rc/src/mcp-server/tools/promptsListVersions.ts +37 -0
  324. package/packages/orq-rc/src/mcp-server/tools/promptsRetrieve.ts +37 -0
  325. package/packages/orq-rc/src/mcp-server/tools/promptsUpdate.ts +35 -0
  326. package/packages/orq-rc/src/mcp-server/tools/remoteconfigsRetrieve.ts +36 -0
  327. package/packages/orq-rc/src/mcp-server/tools.ts +116 -0
  328. package/packages/orq-rc/src/models/operations/bulkcreatedatapoints.ts +1816 -0
  329. package/packages/orq-rc/src/models/operations/cleardataset.ts +75 -0
  330. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  331. package/packages/orq-rc/src/models/operations/createdataset.ts +296 -0
  332. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +1740 -0
  333. package/packages/orq-rc/src/models/operations/createprompt.ts +728 -629
  334. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +81 -0
  335. package/packages/orq-rc/src/models/operations/deletedataset.ts +75 -0
  336. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +7 -0
  337. package/packages/orq-rc/src/models/operations/deployments.ts +7 -0
  338. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  339. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  340. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  341. package/packages/orq-rc/src/models/operations/getallprompts.ts +7 -0
  342. package/packages/orq-rc/src/models/operations/getoneprompt.ts +7 -0
  343. package/packages/orq-rc/src/models/operations/getpromptversion.ts +23 -48
  344. package/packages/orq-rc/src/models/operations/index.ts +12 -0
  345. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +1071 -0
  346. package/packages/orq-rc/src/models/operations/listdatasets.ts +406 -0
  347. package/packages/orq-rc/src/models/operations/listpromptversions.ts +23 -48
  348. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +924 -0
  349. package/packages/orq-rc/src/models/operations/retrievedataset.ts +288 -0
  350. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +1729 -0
  351. package/packages/orq-rc/src/models/operations/updatedataset.ts +374 -0
  352. package/packages/orq-rc/src/models/operations/updateprompt.ts +643 -716
  353. package/packages/orq-rc/src/sdk/datasets.ts +222 -0
  354. package/packages/orq-rc/src/sdk/prompts.ts +14 -14
  355. package/packages/orq-rc/src/sdk/sdk.ts +6 -0
  356. package/packages/orq-rc/src/types/async.ts +68 -0
  357. package/src/funcs/contactsCreate.ts +35 -8
  358. package/src/funcs/deploymentsGetConfig.ts +35 -8
  359. package/src/funcs/deploymentsInvoke.ts +35 -8
  360. package/src/funcs/deploymentsList.ts +36 -8
  361. package/src/funcs/deploymentsMetricsCreate.ts +35 -8
  362. package/src/funcs/deploymentsStream.ts +35 -8
  363. package/src/funcs/feedbackCreate.ts +35 -8
  364. package/src/funcs/filesCreate.ts +35 -8
  365. package/src/funcs/filesDelete.ts +35 -8
  366. package/src/funcs/filesGet.ts +35 -8
  367. package/src/funcs/filesList.ts +35 -8
  368. package/src/funcs/promptsCreate.ts +35 -8
  369. package/src/funcs/promptsDelete.ts +35 -8
  370. package/src/funcs/promptsGetVersion.ts +36 -8
  371. package/src/funcs/promptsList.ts +35 -8
  372. package/src/funcs/promptsListVersions.ts +35 -8
  373. package/src/funcs/promptsRetrieve.ts +35 -8
  374. package/src/funcs/promptsUpdate.ts +36 -8
  375. package/src/funcs/remoteconfigsRetrieve.ts +35 -8
  376. package/src/lib/config.ts +6 -6
  377. package/src/lib/files.ts +1 -1
  378. package/src/lib/primitives.ts +14 -0
  379. package/src/lib/sdks.ts +1 -1
  380. package/src/mcp-server/cli/start/command.ts +116 -0
  381. package/src/mcp-server/cli/start/impl.ts +137 -0
  382. package/src/mcp-server/cli.ts +13 -0
  383. package/src/mcp-server/console-logger.ts +71 -0
  384. package/src/mcp-server/mcp-server.ts +26 -0
  385. package/src/mcp-server/resources.ts +96 -0
  386. package/src/mcp-server/scopes.ts +7 -0
  387. package/src/mcp-server/server.ts +76 -0
  388. package/src/mcp-server/shared.ts +75 -0
  389. package/src/mcp-server/tools/contactsCreate.ts +37 -0
  390. package/src/mcp-server/tools/deploymentsGetConfig.ts +37 -0
  391. package/src/mcp-server/tools/deploymentsInvoke.ts +37 -0
  392. package/src/mcp-server/tools/deploymentsList.ts +37 -0
  393. package/src/mcp-server/tools/deploymentsMetricsCreate.ts +37 -0
  394. package/src/mcp-server/tools/deploymentsStream.ts +37 -0
  395. package/src/mcp-server/tools/feedbackCreate.ts +37 -0
  396. package/src/mcp-server/tools/filesCreate.ts +37 -0
  397. package/src/mcp-server/tools/filesDelete.ts +33 -0
  398. package/src/mcp-server/tools/filesGet.ts +37 -0
  399. package/src/mcp-server/tools/filesList.ts +37 -0
  400. package/src/mcp-server/tools/promptsCreate.ts +35 -0
  401. package/src/mcp-server/tools/promptsDelete.ts +33 -0
  402. package/src/mcp-server/tools/promptsGetVersion.ts +37 -0
  403. package/src/mcp-server/tools/promptsList.ts +37 -0
  404. package/src/mcp-server/tools/promptsListVersions.ts +37 -0
  405. package/src/mcp-server/tools/promptsRetrieve.ts +37 -0
  406. package/src/mcp-server/tools/promptsUpdate.ts +35 -0
  407. package/src/mcp-server/tools/remoteconfigsRetrieve.ts +36 -0
  408. package/src/mcp-server/tools.ts +116 -0
  409. package/src/models/operations/createcontact.ts +2 -2
  410. package/src/models/operations/createprompt.ts +14 -0
  411. package/src/models/operations/deploymentgetconfig.ts +7 -0
  412. package/src/models/operations/deployments.ts +7 -0
  413. package/src/models/operations/fileget.ts +2 -2
  414. package/src/models/operations/filelist.ts +2 -2
  415. package/src/models/operations/fileupload.ts +2 -2
  416. package/src/models/operations/getallprompts.ts +7 -0
  417. package/src/models/operations/getoneprompt.ts +7 -0
  418. package/src/models/operations/getpromptversion.ts +7 -0
  419. package/src/models/operations/listpromptversions.ts +7 -0
  420. package/src/models/operations/updateprompt.ts +14 -0
  421. package/src/types/async.ts +68 -0
  422. package/types/async.d.ts +23 -0
  423. package/types/async.d.ts.map +1 -0
  424. package/types/async.js +44 -0
  425. package/types/async.js.map +1 -0
@@ -12,7 +12,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
12
  /**
13
13
  * The type of the model
14
14
  */
15
- export const UpdatePromptModelType = {
15
+ export const ModelType = {
16
16
  Chat: "chat",
17
17
  Completion: "completion",
18
18
  Embedding: "embedding",
@@ -26,12 +26,12 @@ export const UpdatePromptModelType = {
26
26
  /**
27
27
  * The type of the model
28
28
  */
29
- export type UpdatePromptModelType = ClosedEnum<typeof UpdatePromptModelType>;
29
+ export type ModelType = ClosedEnum<typeof ModelType>;
30
30
 
31
31
  /**
32
32
  * Only supported on `image` models.
33
33
  */
34
- export const UpdatePromptFormat = {
34
+ export const Format = {
35
35
  Url: "url",
36
36
  B64Json: "b64_json",
37
37
  Text: "text",
@@ -40,47 +40,45 @@ export const UpdatePromptFormat = {
40
40
  /**
41
41
  * Only supported on `image` models.
42
42
  */
43
- export type UpdatePromptFormat = ClosedEnum<typeof UpdatePromptFormat>;
43
+ export type Format = ClosedEnum<typeof Format>;
44
44
 
45
45
  /**
46
46
  * Only supported on `image` models.
47
47
  */
48
- export const UpdatePromptQuality = {
48
+ export const Quality = {
49
49
  Standard: "standard",
50
50
  Hd: "hd",
51
51
  } as const;
52
52
  /**
53
53
  * Only supported on `image` models.
54
54
  */
55
- export type UpdatePromptQuality = ClosedEnum<typeof UpdatePromptQuality>;
55
+ export type Quality = ClosedEnum<typeof Quality>;
56
56
 
57
- export const UpdatePromptResponseFormatPromptsType = {
57
+ export const UpdatePromptResponseFormatType = {
58
58
  JsonObject: "json_object",
59
59
  } as const;
60
- export type UpdatePromptResponseFormatPromptsType = ClosedEnum<
61
- typeof UpdatePromptResponseFormatPromptsType
60
+ export type UpdatePromptResponseFormatType = ClosedEnum<
61
+ typeof UpdatePromptResponseFormatType
62
62
  >;
63
63
 
64
- export type UpdatePromptResponseFormat2 = {
65
- type: UpdatePromptResponseFormatPromptsType;
64
+ export type ResponseFormat2 = {
65
+ type: UpdatePromptResponseFormatType;
66
66
  };
67
67
 
68
- export const UpdatePromptResponseFormatType = {
68
+ export const ResponseFormatType = {
69
69
  JsonSchema: "json_schema",
70
70
  } as const;
71
- export type UpdatePromptResponseFormatType = ClosedEnum<
72
- typeof UpdatePromptResponseFormatType
73
- >;
71
+ export type ResponseFormatType = ClosedEnum<typeof ResponseFormatType>;
74
72
 
75
- export type ResponseFormatJsonSchema = {
73
+ export type JsonSchema = {
76
74
  name: string;
77
75
  strict: boolean;
78
76
  schema: { [k: string]: any };
79
77
  };
80
78
 
81
- export type UpdatePromptResponseFormat1 = {
82
- type: UpdatePromptResponseFormatType;
83
- jsonSchema: ResponseFormatJsonSchema;
79
+ export type ResponseFormat1 = {
80
+ type: ResponseFormatType;
81
+ jsonSchema: JsonSchema;
84
82
  };
85
83
 
86
84
  /**
@@ -94,42 +92,36 @@ export type UpdatePromptResponseFormat1 = {
94
92
  *
95
93
  * 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.
96
94
  */
97
- export type UpdatePromptResponseFormat =
98
- | UpdatePromptResponseFormat2
99
- | UpdatePromptResponseFormat1;
95
+ export type ResponseFormat = ResponseFormat2 | ResponseFormat1;
100
96
 
101
97
  /**
102
98
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
103
99
  */
104
- export const UpdatePromptPhotoRealVersion = {
100
+ export const PhotoRealVersion = {
105
101
  V1: "v1",
106
102
  V2: "v2",
107
103
  } as const;
108
104
  /**
109
105
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
110
106
  */
111
- export type UpdatePromptPhotoRealVersion = ClosedEnum<
112
- typeof UpdatePromptPhotoRealVersion
113
- >;
107
+ export type PhotoRealVersion = ClosedEnum<typeof PhotoRealVersion>;
114
108
 
115
109
  /**
116
110
  * The format to return the embeddings
117
111
  */
118
- export const UpdatePromptEncodingFormat = {
112
+ export const EncodingFormat = {
119
113
  Float: "float",
120
114
  Base64: "base64",
121
115
  } as const;
122
116
  /**
123
117
  * The format to return the embeddings
124
118
  */
125
- export type UpdatePromptEncodingFormat = ClosedEnum<
126
- typeof UpdatePromptEncodingFormat
127
- >;
119
+ export type EncodingFormat = ClosedEnum<typeof EncodingFormat>;
128
120
 
129
121
  /**
130
122
  * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
131
123
  */
132
- export const UpdatePromptReasoningEffort = {
124
+ export const ReasoningEffort = {
133
125
  Low: "low",
134
126
  Medium: "medium",
135
127
  High: "high",
@@ -137,14 +129,12 @@ export const UpdatePromptReasoningEffort = {
137
129
  /**
138
130
  * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
139
131
  */
140
- export type UpdatePromptReasoningEffort = ClosedEnum<
141
- typeof UpdatePromptReasoningEffort
142
- >;
132
+ export type ReasoningEffort = ClosedEnum<typeof ReasoningEffort>;
143
133
 
144
134
  /**
145
135
  * Model Parameters: Not all parameters apply to every model
146
136
  */
147
- export type UpdatePromptModelParameters = {
137
+ export type ModelParameters = {
148
138
  /**
149
139
  * Only supported on `chat` and `completion` models.
150
140
  */
@@ -180,7 +170,7 @@ export type UpdatePromptModelParameters = {
180
170
  /**
181
171
  * Only supported on `image` models.
182
172
  */
183
- format?: UpdatePromptFormat | undefined;
173
+ format?: Format | undefined;
184
174
  /**
185
175
  * Only supported on `image` models.
186
176
  */
@@ -188,7 +178,7 @@ export type UpdatePromptModelParameters = {
188
178
  /**
189
179
  * Only supported on `image` models.
190
180
  */
191
- quality?: UpdatePromptQuality | undefined;
181
+ quality?: Quality | undefined;
192
182
  /**
193
183
  * Only supported on `image` models.
194
184
  */
@@ -204,26 +194,26 @@ export type UpdatePromptModelParameters = {
204
194
  *
205
195
  * 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.
206
196
  */
207
- responseFormat?:
208
- | UpdatePromptResponseFormat2
209
- | UpdatePromptResponseFormat1
210
- | null
211
- | undefined;
197
+ responseFormat?: ResponseFormat2 | ResponseFormat1 | null | undefined;
212
198
  /**
213
199
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
214
200
  */
215
- photoRealVersion?: UpdatePromptPhotoRealVersion | undefined;
201
+ photoRealVersion?: PhotoRealVersion | undefined;
216
202
  /**
217
203
  * The format to return the embeddings
218
204
  */
219
- encodingFormat?: UpdatePromptEncodingFormat | undefined;
205
+ encodingFormat?: EncodingFormat | undefined;
220
206
  /**
221
207
  * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
222
208
  */
223
- reasoningEffort?: UpdatePromptReasoningEffort | undefined;
209
+ reasoningEffort?: ReasoningEffort | undefined;
210
+ /**
211
+ * 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`
212
+ */
213
+ budgetTokens?: number | undefined;
224
214
  };
225
215
 
226
- export const UpdatePromptProvider = {
216
+ export const Provider = {
227
217
  Cohere: "cohere",
228
218
  Openai: "openai",
229
219
  Anthropic: "anthropic",
@@ -243,7 +233,7 @@ export const UpdatePromptProvider = {
243
233
  Togetherai: "togetherai",
244
234
  Elevenlabs: "elevenlabs",
245
235
  } as const;
246
- export type UpdatePromptProvider = ClosedEnum<typeof UpdatePromptProvider>;
236
+ export type Provider = ClosedEnum<typeof Provider>;
247
237
 
248
238
  /**
249
239
  * The role of the prompt message
@@ -346,23 +336,23 @@ export type UpdatePromptMessages = {
346
336
  /**
347
337
  * A list of messages compatible with the openAI schema
348
338
  */
349
- export type UpdatePromptPromptConfig = {
339
+ export type PromptConfig = {
350
340
  stream?: boolean | undefined;
351
341
  model?: string | undefined;
352
342
  /**
353
343
  * The type of the model
354
344
  */
355
- modelType?: UpdatePromptModelType | undefined;
345
+ modelType?: ModelType | undefined;
356
346
  /**
357
347
  * Model Parameters: Not all parameters apply to every model
358
348
  */
359
- modelParameters?: UpdatePromptModelParameters | undefined;
360
- provider?: UpdatePromptProvider | undefined;
349
+ modelParameters?: ModelParameters | undefined;
350
+ provider?: Provider | undefined;
361
351
  version?: string | undefined;
362
352
  messages: Array<UpdatePromptMessages>;
363
353
  };
364
354
 
365
- export const UpdatePromptUseCases = {
355
+ export const UseCases = {
366
356
  Agents: "Agents",
367
357
  AgentsSimulations: "Agents simulations",
368
358
  APIInteraction: "API interaction",
@@ -380,12 +370,12 @@ export const UpdatePromptUseCases = {
380
370
  Summarization: "Summarization",
381
371
  Tagging: "Tagging",
382
372
  } as const;
383
- export type UpdatePromptUseCases = ClosedEnum<typeof UpdatePromptUseCases>;
373
+ export type UseCases = ClosedEnum<typeof UseCases>;
384
374
 
385
375
  /**
386
376
  * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
387
377
  */
388
- export const UpdatePromptLanguage = {
378
+ export const Language = {
389
379
  Chinese: "Chinese",
390
380
  Dutch: "Dutch",
391
381
  English: "English",
@@ -397,17 +387,17 @@ export const UpdatePromptLanguage = {
397
387
  /**
398
388
  * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
399
389
  */
400
- export type UpdatePromptLanguage = ClosedEnum<typeof UpdatePromptLanguage>;
390
+ export type Language = ClosedEnum<typeof Language>;
401
391
 
402
392
  export type UpdatePromptMetadata = {
403
393
  /**
404
394
  * A list of use cases that the prompt is meant to be used for. Use this field to categorize the prompt for your own purpose
405
395
  */
406
- useCases?: Array<UpdatePromptUseCases> | undefined;
396
+ useCases?: Array<UseCases> | undefined;
407
397
  /**
408
398
  * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
409
399
  */
410
- language?: UpdatePromptLanguage | undefined;
400
+ language?: Language | undefined;
411
401
  };
412
402
 
413
403
  export type UpdatePromptRequestBody = {
@@ -428,7 +418,7 @@ export type UpdatePromptRequestBody = {
428
418
  /**
429
419
  * A list of messages compatible with the openAI schema
430
420
  */
431
- promptConfig?: UpdatePromptPromptConfig | undefined;
421
+ promptConfig?: PromptConfig | undefined;
432
422
  metadata?: UpdatePromptMetadata | undefined;
433
423
  };
434
424
 
@@ -450,7 +440,7 @@ export type UpdatePromptPromptsType = ClosedEnum<
450
440
  /**
451
441
  * The type of the model
452
442
  */
453
- export const UpdatePromptPromptsModelType = {
443
+ export const UpdatePromptModelType = {
454
444
  Chat: "chat",
455
445
  Completion: "completion",
456
446
  Embedding: "embedding",
@@ -464,14 +454,12 @@ export const UpdatePromptPromptsModelType = {
464
454
  /**
465
455
  * The type of the model
466
456
  */
467
- export type UpdatePromptPromptsModelType = ClosedEnum<
468
- typeof UpdatePromptPromptsModelType
469
- >;
457
+ export type UpdatePromptModelType = ClosedEnum<typeof UpdatePromptModelType>;
470
458
 
471
459
  /**
472
460
  * Only supported on `image` models.
473
461
  */
474
- export const UpdatePromptPromptsFormat = {
462
+ export const UpdatePromptFormat = {
475
463
  Url: "url",
476
464
  B64Json: "b64_json",
477
465
  Text: "text",
@@ -480,40 +468,36 @@ export const UpdatePromptPromptsFormat = {
480
468
  /**
481
469
  * Only supported on `image` models.
482
470
  */
483
- export type UpdatePromptPromptsFormat = ClosedEnum<
484
- typeof UpdatePromptPromptsFormat
485
- >;
471
+ export type UpdatePromptFormat = ClosedEnum<typeof UpdatePromptFormat>;
486
472
 
487
473
  /**
488
474
  * Only supported on `image` models.
489
475
  */
490
- export const UpdatePromptPromptsQuality = {
476
+ export const UpdatePromptQuality = {
491
477
  Standard: "standard",
492
478
  Hd: "hd",
493
479
  } as const;
494
480
  /**
495
481
  * Only supported on `image` models.
496
482
  */
497
- export type UpdatePromptPromptsQuality = ClosedEnum<
498
- typeof UpdatePromptPromptsQuality
499
- >;
483
+ export type UpdatePromptQuality = ClosedEnum<typeof UpdatePromptQuality>;
500
484
 
501
- export const UpdatePromptResponseFormatPromptsResponse200Type = {
485
+ export const UpdatePromptResponseFormatPromptsResponseType = {
502
486
  JsonObject: "json_object",
503
487
  } as const;
504
- export type UpdatePromptResponseFormatPromptsResponse200Type = ClosedEnum<
505
- typeof UpdatePromptResponseFormatPromptsResponse200Type
488
+ export type UpdatePromptResponseFormatPromptsResponseType = ClosedEnum<
489
+ typeof UpdatePromptResponseFormatPromptsResponseType
506
490
  >;
507
491
 
508
- export type UpdatePromptResponseFormatPrompts2 = {
509
- type: UpdatePromptResponseFormatPromptsResponse200Type;
492
+ export type UpdatePromptResponseFormat2 = {
493
+ type: UpdatePromptResponseFormatPromptsResponseType;
510
494
  };
511
495
 
512
- export const UpdatePromptResponseFormatPromptsResponseType = {
496
+ export const UpdatePromptResponseFormatPromptsType = {
513
497
  JsonSchema: "json_schema",
514
498
  } as const;
515
- export type UpdatePromptResponseFormatPromptsResponseType = ClosedEnum<
516
- typeof UpdatePromptResponseFormatPromptsResponseType
499
+ export type UpdatePromptResponseFormatPromptsType = ClosedEnum<
500
+ typeof UpdatePromptResponseFormatPromptsType
517
501
  >;
518
502
 
519
503
  export type UpdatePromptResponseFormatJsonSchema = {
@@ -522,8 +506,8 @@ export type UpdatePromptResponseFormatJsonSchema = {
522
506
  schema: { [k: string]: any };
523
507
  };
524
508
 
525
- export type UpdatePromptResponseFormatPrompts1 = {
526
- type: UpdatePromptResponseFormatPromptsResponseType;
509
+ export type UpdatePromptResponseFormat1 = {
510
+ type: UpdatePromptResponseFormatPromptsType;
527
511
  jsonSchema: UpdatePromptResponseFormatJsonSchema;
528
512
  };
529
513
 
@@ -538,42 +522,42 @@ export type UpdatePromptResponseFormatPrompts1 = {
538
522
  *
539
523
  * 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.
540
524
  */
541
- export type UpdatePromptPromptsResponseFormat =
542
- | UpdatePromptResponseFormatPrompts2
543
- | UpdatePromptResponseFormatPrompts1;
525
+ export type UpdatePromptResponseFormat =
526
+ | UpdatePromptResponseFormat2
527
+ | UpdatePromptResponseFormat1;
544
528
 
545
529
  /**
546
530
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
547
531
  */
548
- export const UpdatePromptPromptsPhotoRealVersion = {
532
+ export const UpdatePromptPhotoRealVersion = {
549
533
  V1: "v1",
550
534
  V2: "v2",
551
535
  } as const;
552
536
  /**
553
537
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
554
538
  */
555
- export type UpdatePromptPromptsPhotoRealVersion = ClosedEnum<
556
- typeof UpdatePromptPromptsPhotoRealVersion
539
+ export type UpdatePromptPhotoRealVersion = ClosedEnum<
540
+ typeof UpdatePromptPhotoRealVersion
557
541
  >;
558
542
 
559
543
  /**
560
544
  * The format to return the embeddings
561
545
  */
562
- export const UpdatePromptPromptsEncodingFormat = {
546
+ export const UpdatePromptEncodingFormat = {
563
547
  Float: "float",
564
548
  Base64: "base64",
565
549
  } as const;
566
550
  /**
567
551
  * The format to return the embeddings
568
552
  */
569
- export type UpdatePromptPromptsEncodingFormat = ClosedEnum<
570
- typeof UpdatePromptPromptsEncodingFormat
553
+ export type UpdatePromptEncodingFormat = ClosedEnum<
554
+ typeof UpdatePromptEncodingFormat
571
555
  >;
572
556
 
573
557
  /**
574
558
  * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
575
559
  */
576
- export const UpdatePromptPromptsReasoningEffort = {
560
+ export const UpdatePromptReasoningEffort = {
577
561
  Low: "low",
578
562
  Medium: "medium",
579
563
  High: "high",
@@ -581,14 +565,14 @@ export const UpdatePromptPromptsReasoningEffort = {
581
565
  /**
582
566
  * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
583
567
  */
584
- export type UpdatePromptPromptsReasoningEffort = ClosedEnum<
585
- typeof UpdatePromptPromptsReasoningEffort
568
+ export type UpdatePromptReasoningEffort = ClosedEnum<
569
+ typeof UpdatePromptReasoningEffort
586
570
  >;
587
571
 
588
572
  /**
589
573
  * Model Parameters: Not all parameters apply to every model
590
574
  */
591
- export type UpdatePromptPromptsModelParameters = {
575
+ export type UpdatePromptModelParameters = {
592
576
  /**
593
577
  * Only supported on `chat` and `completion` models.
594
578
  */
@@ -624,7 +608,7 @@ export type UpdatePromptPromptsModelParameters = {
624
608
  /**
625
609
  * Only supported on `image` models.
626
610
  */
627
- format?: UpdatePromptPromptsFormat | undefined;
611
+ format?: UpdatePromptFormat | undefined;
628
612
  /**
629
613
  * Only supported on `image` models.
630
614
  */
@@ -632,7 +616,7 @@ export type UpdatePromptPromptsModelParameters = {
632
616
  /**
633
617
  * Only supported on `image` models.
634
618
  */
635
- quality?: UpdatePromptPromptsQuality | undefined;
619
+ quality?: UpdatePromptQuality | undefined;
636
620
  /**
637
621
  * Only supported on `image` models.
638
622
  */
@@ -649,25 +633,29 @@ export type UpdatePromptPromptsModelParameters = {
649
633
  * 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.
650
634
  */
651
635
  responseFormat?:
652
- | UpdatePromptResponseFormatPrompts2
653
- | UpdatePromptResponseFormatPrompts1
636
+ | UpdatePromptResponseFormat2
637
+ | UpdatePromptResponseFormat1
654
638
  | null
655
639
  | undefined;
656
640
  /**
657
641
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
658
642
  */
659
- photoRealVersion?: UpdatePromptPromptsPhotoRealVersion | undefined;
643
+ photoRealVersion?: UpdatePromptPhotoRealVersion | undefined;
660
644
  /**
661
645
  * The format to return the embeddings
662
646
  */
663
- encodingFormat?: UpdatePromptPromptsEncodingFormat | undefined;
647
+ encodingFormat?: UpdatePromptEncodingFormat | undefined;
664
648
  /**
665
649
  * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
666
650
  */
667
- reasoningEffort?: UpdatePromptPromptsReasoningEffort | undefined;
651
+ reasoningEffort?: UpdatePromptReasoningEffort | undefined;
652
+ /**
653
+ * 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`
654
+ */
655
+ budgetTokens?: number | undefined;
668
656
  };
669
657
 
670
- export const UpdatePromptPromptsProvider = {
658
+ export const UpdatePromptProvider = {
671
659
  Cohere: "cohere",
672
660
  Openai: "openai",
673
661
  Anthropic: "anthropic",
@@ -687,9 +675,7 @@ export const UpdatePromptPromptsProvider = {
687
675
  Togetherai: "togetherai",
688
676
  Elevenlabs: "elevenlabs",
689
677
  } as const;
690
- export type UpdatePromptPromptsProvider = ClosedEnum<
691
- typeof UpdatePromptPromptsProvider
692
- >;
678
+ export type UpdatePromptProvider = ClosedEnum<typeof UpdatePromptProvider>;
693
679
 
694
680
  /**
695
681
  * The role of the prompt message
@@ -804,7 +790,7 @@ export type UpdatePromptPromptsMessages = {
804
790
  /**
805
791
  * A list of messages compatible with the openAI schema
806
792
  */
807
- export type UpdatePromptPromptsPromptConfig = {
793
+ export type UpdatePromptPromptConfig = {
808
794
  stream?: boolean | undefined;
809
795
  model?: string | undefined;
810
796
  /**
@@ -814,12 +800,12 @@ export type UpdatePromptPromptsPromptConfig = {
814
800
  /**
815
801
  * The type of the model
816
802
  */
817
- modelType?: UpdatePromptPromptsModelType | undefined;
803
+ modelType?: UpdatePromptModelType | undefined;
818
804
  /**
819
805
  * Model Parameters: Not all parameters apply to every model
820
806
  */
821
- modelParameters?: UpdatePromptPromptsModelParameters | undefined;
822
- provider?: UpdatePromptPromptsProvider | undefined;
807
+ modelParameters?: UpdatePromptModelParameters | undefined;
808
+ provider?: UpdatePromptProvider | undefined;
823
809
  /**
824
810
  * The id of the resource
825
811
  */
@@ -828,7 +814,7 @@ export type UpdatePromptPromptsPromptConfig = {
828
814
  messages: Array<UpdatePromptPromptsMessages>;
829
815
  };
830
816
 
831
- export const UpdatePromptPromptsUseCases = {
817
+ export const UpdatePromptUseCases = {
832
818
  Agents: "Agents",
833
819
  AgentsSimulations: "Agents simulations",
834
820
  APIInteraction: "API interaction",
@@ -846,14 +832,12 @@ export const UpdatePromptPromptsUseCases = {
846
832
  Summarization: "Summarization",
847
833
  Tagging: "Tagging",
848
834
  } as const;
849
- export type UpdatePromptPromptsUseCases = ClosedEnum<
850
- typeof UpdatePromptPromptsUseCases
851
- >;
835
+ export type UpdatePromptUseCases = ClosedEnum<typeof UpdatePromptUseCases>;
852
836
 
853
837
  /**
854
838
  * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
855
839
  */
856
- export const UpdatePromptPromptsLanguage = {
840
+ export const UpdatePromptLanguage = {
857
841
  Chinese: "Chinese",
858
842
  Dutch: "Dutch",
859
843
  English: "English",
@@ -865,19 +849,17 @@ export const UpdatePromptPromptsLanguage = {
865
849
  /**
866
850
  * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
867
851
  */
868
- export type UpdatePromptPromptsLanguage = ClosedEnum<
869
- typeof UpdatePromptPromptsLanguage
870
- >;
852
+ export type UpdatePromptLanguage = ClosedEnum<typeof UpdatePromptLanguage>;
871
853
 
872
854
  export type UpdatePromptPromptsMetadata = {
873
855
  /**
874
856
  * A list of use cases that the prompt is meant to be used for. Use this field to categorize the prompt for your own purpose
875
857
  */
876
- useCases?: Array<UpdatePromptPromptsUseCases> | undefined;
858
+ useCases?: Array<UpdatePromptUseCases> | undefined;
877
859
  /**
878
860
  * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
879
861
  */
880
- language?: UpdatePromptPromptsLanguage | undefined;
862
+ language?: UpdatePromptLanguage | undefined;
881
863
  };
882
864
 
883
865
  /**
@@ -903,177 +885,164 @@ export type UpdatePromptResponseBody = {
903
885
  /**
904
886
  * A list of messages compatible with the openAI schema
905
887
  */
906
- promptConfig: UpdatePromptPromptsPromptConfig;
888
+ promptConfig: UpdatePromptPromptConfig;
907
889
  metadata?: UpdatePromptPromptsMetadata | undefined;
908
890
  };
909
891
 
910
892
  /** @internal */
911
- export const UpdatePromptModelType$inboundSchema: z.ZodNativeEnum<
912
- typeof UpdatePromptModelType
913
- > = z.nativeEnum(UpdatePromptModelType);
893
+ export const ModelType$inboundSchema: z.ZodNativeEnum<typeof ModelType> = z
894
+ .nativeEnum(ModelType);
914
895
 
915
896
  /** @internal */
916
- export const UpdatePromptModelType$outboundSchema: z.ZodNativeEnum<
917
- typeof UpdatePromptModelType
918
- > = UpdatePromptModelType$inboundSchema;
897
+ export const ModelType$outboundSchema: z.ZodNativeEnum<typeof ModelType> =
898
+ ModelType$inboundSchema;
919
899
 
920
900
  /**
921
901
  * @internal
922
902
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
923
903
  */
924
- export namespace UpdatePromptModelType$ {
925
- /** @deprecated use `UpdatePromptModelType$inboundSchema` instead. */
926
- export const inboundSchema = UpdatePromptModelType$inboundSchema;
927
- /** @deprecated use `UpdatePromptModelType$outboundSchema` instead. */
928
- export const outboundSchema = UpdatePromptModelType$outboundSchema;
904
+ export namespace ModelType$ {
905
+ /** @deprecated use `ModelType$inboundSchema` instead. */
906
+ export const inboundSchema = ModelType$inboundSchema;
907
+ /** @deprecated use `ModelType$outboundSchema` instead. */
908
+ export const outboundSchema = ModelType$outboundSchema;
929
909
  }
930
910
 
931
911
  /** @internal */
932
- export const UpdatePromptFormat$inboundSchema: z.ZodNativeEnum<
933
- typeof UpdatePromptFormat
934
- > = z.nativeEnum(UpdatePromptFormat);
912
+ export const Format$inboundSchema: z.ZodNativeEnum<typeof Format> = z
913
+ .nativeEnum(Format);
935
914
 
936
915
  /** @internal */
937
- export const UpdatePromptFormat$outboundSchema: z.ZodNativeEnum<
938
- typeof UpdatePromptFormat
939
- > = UpdatePromptFormat$inboundSchema;
916
+ export const Format$outboundSchema: z.ZodNativeEnum<typeof Format> =
917
+ Format$inboundSchema;
940
918
 
941
919
  /**
942
920
  * @internal
943
921
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
944
922
  */
945
- export namespace UpdatePromptFormat$ {
946
- /** @deprecated use `UpdatePromptFormat$inboundSchema` instead. */
947
- export const inboundSchema = UpdatePromptFormat$inboundSchema;
948
- /** @deprecated use `UpdatePromptFormat$outboundSchema` instead. */
949
- export const outboundSchema = UpdatePromptFormat$outboundSchema;
923
+ export namespace Format$ {
924
+ /** @deprecated use `Format$inboundSchema` instead. */
925
+ export const inboundSchema = Format$inboundSchema;
926
+ /** @deprecated use `Format$outboundSchema` instead. */
927
+ export const outboundSchema = Format$outboundSchema;
950
928
  }
951
929
 
952
930
  /** @internal */
953
- export const UpdatePromptQuality$inboundSchema: z.ZodNativeEnum<
954
- typeof UpdatePromptQuality
955
- > = z.nativeEnum(UpdatePromptQuality);
931
+ export const Quality$inboundSchema: z.ZodNativeEnum<typeof Quality> = z
932
+ .nativeEnum(Quality);
956
933
 
957
934
  /** @internal */
958
- export const UpdatePromptQuality$outboundSchema: z.ZodNativeEnum<
959
- typeof UpdatePromptQuality
960
- > = UpdatePromptQuality$inboundSchema;
935
+ export const Quality$outboundSchema: z.ZodNativeEnum<typeof Quality> =
936
+ Quality$inboundSchema;
961
937
 
962
938
  /**
963
939
  * @internal
964
940
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
965
941
  */
966
- export namespace UpdatePromptQuality$ {
967
- /** @deprecated use `UpdatePromptQuality$inboundSchema` instead. */
968
- export const inboundSchema = UpdatePromptQuality$inboundSchema;
969
- /** @deprecated use `UpdatePromptQuality$outboundSchema` instead. */
970
- export const outboundSchema = UpdatePromptQuality$outboundSchema;
942
+ export namespace Quality$ {
943
+ /** @deprecated use `Quality$inboundSchema` instead. */
944
+ export const inboundSchema = Quality$inboundSchema;
945
+ /** @deprecated use `Quality$outboundSchema` instead. */
946
+ export const outboundSchema = Quality$outboundSchema;
971
947
  }
972
948
 
973
949
  /** @internal */
974
- export const UpdatePromptResponseFormatPromptsType$inboundSchema:
975
- z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsType> = z.nativeEnum(
976
- UpdatePromptResponseFormatPromptsType,
977
- );
950
+ export const UpdatePromptResponseFormatType$inboundSchema: z.ZodNativeEnum<
951
+ typeof UpdatePromptResponseFormatType
952
+ > = z.nativeEnum(UpdatePromptResponseFormatType);
978
953
 
979
954
  /** @internal */
980
- export const UpdatePromptResponseFormatPromptsType$outboundSchema:
981
- z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsType> =
982
- UpdatePromptResponseFormatPromptsType$inboundSchema;
955
+ export const UpdatePromptResponseFormatType$outboundSchema: z.ZodNativeEnum<
956
+ typeof UpdatePromptResponseFormatType
957
+ > = UpdatePromptResponseFormatType$inboundSchema;
983
958
 
984
959
  /**
985
960
  * @internal
986
961
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
987
962
  */
988
- export namespace UpdatePromptResponseFormatPromptsType$ {
989
- /** @deprecated use `UpdatePromptResponseFormatPromptsType$inboundSchema` instead. */
990
- export const inboundSchema =
991
- UpdatePromptResponseFormatPromptsType$inboundSchema;
992
- /** @deprecated use `UpdatePromptResponseFormatPromptsType$outboundSchema` instead. */
993
- export const outboundSchema =
994
- UpdatePromptResponseFormatPromptsType$outboundSchema;
963
+ export namespace UpdatePromptResponseFormatType$ {
964
+ /** @deprecated use `UpdatePromptResponseFormatType$inboundSchema` instead. */
965
+ export const inboundSchema = UpdatePromptResponseFormatType$inboundSchema;
966
+ /** @deprecated use `UpdatePromptResponseFormatType$outboundSchema` instead. */
967
+ export const outboundSchema = UpdatePromptResponseFormatType$outboundSchema;
995
968
  }
996
969
 
997
970
  /** @internal */
998
- export const UpdatePromptResponseFormat2$inboundSchema: z.ZodType<
999
- UpdatePromptResponseFormat2,
971
+ export const ResponseFormat2$inboundSchema: z.ZodType<
972
+ ResponseFormat2,
1000
973
  z.ZodTypeDef,
1001
974
  unknown
1002
975
  > = z.object({
1003
- type: UpdatePromptResponseFormatPromptsType$inboundSchema,
976
+ type: UpdatePromptResponseFormatType$inboundSchema,
1004
977
  });
1005
978
 
1006
979
  /** @internal */
1007
- export type UpdatePromptResponseFormat2$Outbound = {
980
+ export type ResponseFormat2$Outbound = {
1008
981
  type: string;
1009
982
  };
1010
983
 
1011
984
  /** @internal */
1012
- export const UpdatePromptResponseFormat2$outboundSchema: z.ZodType<
1013
- UpdatePromptResponseFormat2$Outbound,
985
+ export const ResponseFormat2$outboundSchema: z.ZodType<
986
+ ResponseFormat2$Outbound,
1014
987
  z.ZodTypeDef,
1015
- UpdatePromptResponseFormat2
988
+ ResponseFormat2
1016
989
  > = z.object({
1017
- type: UpdatePromptResponseFormatPromptsType$outboundSchema,
990
+ type: UpdatePromptResponseFormatType$outboundSchema,
1018
991
  });
1019
992
 
1020
993
  /**
1021
994
  * @internal
1022
995
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1023
996
  */
1024
- export namespace UpdatePromptResponseFormat2$ {
1025
- /** @deprecated use `UpdatePromptResponseFormat2$inboundSchema` instead. */
1026
- export const inboundSchema = UpdatePromptResponseFormat2$inboundSchema;
1027
- /** @deprecated use `UpdatePromptResponseFormat2$outboundSchema` instead. */
1028
- export const outboundSchema = UpdatePromptResponseFormat2$outboundSchema;
1029
- /** @deprecated use `UpdatePromptResponseFormat2$Outbound` instead. */
1030
- export type Outbound = UpdatePromptResponseFormat2$Outbound;
997
+ export namespace ResponseFormat2$ {
998
+ /** @deprecated use `ResponseFormat2$inboundSchema` instead. */
999
+ export const inboundSchema = ResponseFormat2$inboundSchema;
1000
+ /** @deprecated use `ResponseFormat2$outboundSchema` instead. */
1001
+ export const outboundSchema = ResponseFormat2$outboundSchema;
1002
+ /** @deprecated use `ResponseFormat2$Outbound` instead. */
1003
+ export type Outbound = ResponseFormat2$Outbound;
1031
1004
  }
1032
1005
 
1033
- export function updatePromptResponseFormat2ToJSON(
1034
- updatePromptResponseFormat2: UpdatePromptResponseFormat2,
1006
+ export function responseFormat2ToJSON(
1007
+ responseFormat2: ResponseFormat2,
1035
1008
  ): string {
1036
- return JSON.stringify(
1037
- UpdatePromptResponseFormat2$outboundSchema.parse(
1038
- updatePromptResponseFormat2,
1039
- ),
1040
- );
1009
+ return JSON.stringify(ResponseFormat2$outboundSchema.parse(responseFormat2));
1041
1010
  }
1042
1011
 
1043
- export function updatePromptResponseFormat2FromJSON(
1012
+ export function responseFormat2FromJSON(
1044
1013
  jsonString: string,
1045
- ): SafeParseResult<UpdatePromptResponseFormat2, SDKValidationError> {
1014
+ ): SafeParseResult<ResponseFormat2, SDKValidationError> {
1046
1015
  return safeParse(
1047
1016
  jsonString,
1048
- (x) => UpdatePromptResponseFormat2$inboundSchema.parse(JSON.parse(x)),
1049
- `Failed to parse 'UpdatePromptResponseFormat2' from JSON`,
1017
+ (x) => ResponseFormat2$inboundSchema.parse(JSON.parse(x)),
1018
+ `Failed to parse 'ResponseFormat2' from JSON`,
1050
1019
  );
1051
1020
  }
1052
1021
 
1053
1022
  /** @internal */
1054
- export const UpdatePromptResponseFormatType$inboundSchema: z.ZodNativeEnum<
1055
- typeof UpdatePromptResponseFormatType
1056
- > = z.nativeEnum(UpdatePromptResponseFormatType);
1023
+ export const ResponseFormatType$inboundSchema: z.ZodNativeEnum<
1024
+ typeof ResponseFormatType
1025
+ > = z.nativeEnum(ResponseFormatType);
1057
1026
 
1058
1027
  /** @internal */
1059
- export const UpdatePromptResponseFormatType$outboundSchema: z.ZodNativeEnum<
1060
- typeof UpdatePromptResponseFormatType
1061
- > = UpdatePromptResponseFormatType$inboundSchema;
1028
+ export const ResponseFormatType$outboundSchema: z.ZodNativeEnum<
1029
+ typeof ResponseFormatType
1030
+ > = ResponseFormatType$inboundSchema;
1062
1031
 
1063
1032
  /**
1064
1033
  * @internal
1065
1034
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1066
1035
  */
1067
- export namespace UpdatePromptResponseFormatType$ {
1068
- /** @deprecated use `UpdatePromptResponseFormatType$inboundSchema` instead. */
1069
- export const inboundSchema = UpdatePromptResponseFormatType$inboundSchema;
1070
- /** @deprecated use `UpdatePromptResponseFormatType$outboundSchema` instead. */
1071
- export const outboundSchema = UpdatePromptResponseFormatType$outboundSchema;
1036
+ export namespace ResponseFormatType$ {
1037
+ /** @deprecated use `ResponseFormatType$inboundSchema` instead. */
1038
+ export const inboundSchema = ResponseFormatType$inboundSchema;
1039
+ /** @deprecated use `ResponseFormatType$outboundSchema` instead. */
1040
+ export const outboundSchema = ResponseFormatType$outboundSchema;
1072
1041
  }
1073
1042
 
1074
1043
  /** @internal */
1075
- export const ResponseFormatJsonSchema$inboundSchema: z.ZodType<
1076
- ResponseFormatJsonSchema,
1044
+ export const JsonSchema$inboundSchema: z.ZodType<
1045
+ JsonSchema,
1077
1046
  z.ZodTypeDef,
1078
1047
  unknown
1079
1048
  > = z.object({
@@ -1083,17 +1052,17 @@ export const ResponseFormatJsonSchema$inboundSchema: z.ZodType<
1083
1052
  });
1084
1053
 
1085
1054
  /** @internal */
1086
- export type ResponseFormatJsonSchema$Outbound = {
1055
+ export type JsonSchema$Outbound = {
1087
1056
  name: string;
1088
1057
  strict: boolean;
1089
1058
  schema: { [k: string]: any };
1090
1059
  };
1091
1060
 
1092
1061
  /** @internal */
1093
- export const ResponseFormatJsonSchema$outboundSchema: z.ZodType<
1094
- ResponseFormatJsonSchema$Outbound,
1062
+ export const JsonSchema$outboundSchema: z.ZodType<
1063
+ JsonSchema$Outbound,
1095
1064
  z.ZodTypeDef,
1096
- ResponseFormatJsonSchema
1065
+ JsonSchema
1097
1066
  > = z.object({
1098
1067
  name: z.string(),
1099
1068
  strict: z.boolean(),
@@ -1104,41 +1073,37 @@ export const ResponseFormatJsonSchema$outboundSchema: z.ZodType<
1104
1073
  * @internal
1105
1074
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1106
1075
  */
1107
- export namespace ResponseFormatJsonSchema$ {
1108
- /** @deprecated use `ResponseFormatJsonSchema$inboundSchema` instead. */
1109
- export const inboundSchema = ResponseFormatJsonSchema$inboundSchema;
1110
- /** @deprecated use `ResponseFormatJsonSchema$outboundSchema` instead. */
1111
- export const outboundSchema = ResponseFormatJsonSchema$outboundSchema;
1112
- /** @deprecated use `ResponseFormatJsonSchema$Outbound` instead. */
1113
- export type Outbound = ResponseFormatJsonSchema$Outbound;
1076
+ export namespace JsonSchema$ {
1077
+ /** @deprecated use `JsonSchema$inboundSchema` instead. */
1078
+ export const inboundSchema = JsonSchema$inboundSchema;
1079
+ /** @deprecated use `JsonSchema$outboundSchema` instead. */
1080
+ export const outboundSchema = JsonSchema$outboundSchema;
1081
+ /** @deprecated use `JsonSchema$Outbound` instead. */
1082
+ export type Outbound = JsonSchema$Outbound;
1114
1083
  }
1115
1084
 
1116
- export function responseFormatJsonSchemaToJSON(
1117
- responseFormatJsonSchema: ResponseFormatJsonSchema,
1118
- ): string {
1119
- return JSON.stringify(
1120
- ResponseFormatJsonSchema$outboundSchema.parse(responseFormatJsonSchema),
1121
- );
1085
+ export function jsonSchemaToJSON(jsonSchema: JsonSchema): string {
1086
+ return JSON.stringify(JsonSchema$outboundSchema.parse(jsonSchema));
1122
1087
  }
1123
1088
 
1124
- export function responseFormatJsonSchemaFromJSON(
1089
+ export function jsonSchemaFromJSON(
1125
1090
  jsonString: string,
1126
- ): SafeParseResult<ResponseFormatJsonSchema, SDKValidationError> {
1091
+ ): SafeParseResult<JsonSchema, SDKValidationError> {
1127
1092
  return safeParse(
1128
1093
  jsonString,
1129
- (x) => ResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
1130
- `Failed to parse 'ResponseFormatJsonSchema' from JSON`,
1094
+ (x) => JsonSchema$inboundSchema.parse(JSON.parse(x)),
1095
+ `Failed to parse 'JsonSchema' from JSON`,
1131
1096
  );
1132
1097
  }
1133
1098
 
1134
1099
  /** @internal */
1135
- export const UpdatePromptResponseFormat1$inboundSchema: z.ZodType<
1136
- UpdatePromptResponseFormat1,
1100
+ export const ResponseFormat1$inboundSchema: z.ZodType<
1101
+ ResponseFormat1,
1137
1102
  z.ZodTypeDef,
1138
1103
  unknown
1139
1104
  > = z.object({
1140
- type: UpdatePromptResponseFormatType$inboundSchema,
1141
- json_schema: z.lazy(() => ResponseFormatJsonSchema$inboundSchema),
1105
+ type: ResponseFormatType$inboundSchema,
1106
+ json_schema: z.lazy(() => JsonSchema$inboundSchema),
1142
1107
  }).transform((v) => {
1143
1108
  return remap$(v, {
1144
1109
  "json_schema": "jsonSchema",
@@ -1146,19 +1111,19 @@ export const UpdatePromptResponseFormat1$inboundSchema: z.ZodType<
1146
1111
  });
1147
1112
 
1148
1113
  /** @internal */
1149
- export type UpdatePromptResponseFormat1$Outbound = {
1114
+ export type ResponseFormat1$Outbound = {
1150
1115
  type: string;
1151
- json_schema: ResponseFormatJsonSchema$Outbound;
1116
+ json_schema: JsonSchema$Outbound;
1152
1117
  };
1153
1118
 
1154
1119
  /** @internal */
1155
- export const UpdatePromptResponseFormat1$outboundSchema: z.ZodType<
1156
- UpdatePromptResponseFormat1$Outbound,
1120
+ export const ResponseFormat1$outboundSchema: z.ZodType<
1121
+ ResponseFormat1$Outbound,
1157
1122
  z.ZodTypeDef,
1158
- UpdatePromptResponseFormat1
1123
+ ResponseFormat1
1159
1124
  > = z.object({
1160
- type: UpdatePromptResponseFormatType$outboundSchema,
1161
- jsonSchema: z.lazy(() => ResponseFormatJsonSchema$outboundSchema),
1125
+ type: ResponseFormatType$outboundSchema,
1126
+ jsonSchema: z.lazy(() => JsonSchema$outboundSchema),
1162
1127
  }).transform((v) => {
1163
1128
  return remap$(v, {
1164
1129
  jsonSchema: "json_schema",
@@ -1169,157 +1134,149 @@ export const UpdatePromptResponseFormat1$outboundSchema: z.ZodType<
1169
1134
  * @internal
1170
1135
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1171
1136
  */
1172
- export namespace UpdatePromptResponseFormat1$ {
1173
- /** @deprecated use `UpdatePromptResponseFormat1$inboundSchema` instead. */
1174
- export const inboundSchema = UpdatePromptResponseFormat1$inboundSchema;
1175
- /** @deprecated use `UpdatePromptResponseFormat1$outboundSchema` instead. */
1176
- export const outboundSchema = UpdatePromptResponseFormat1$outboundSchema;
1177
- /** @deprecated use `UpdatePromptResponseFormat1$Outbound` instead. */
1178
- export type Outbound = UpdatePromptResponseFormat1$Outbound;
1137
+ export namespace ResponseFormat1$ {
1138
+ /** @deprecated use `ResponseFormat1$inboundSchema` instead. */
1139
+ export const inboundSchema = ResponseFormat1$inboundSchema;
1140
+ /** @deprecated use `ResponseFormat1$outboundSchema` instead. */
1141
+ export const outboundSchema = ResponseFormat1$outboundSchema;
1142
+ /** @deprecated use `ResponseFormat1$Outbound` instead. */
1143
+ export type Outbound = ResponseFormat1$Outbound;
1179
1144
  }
1180
1145
 
1181
- export function updatePromptResponseFormat1ToJSON(
1182
- updatePromptResponseFormat1: UpdatePromptResponseFormat1,
1146
+ export function responseFormat1ToJSON(
1147
+ responseFormat1: ResponseFormat1,
1183
1148
  ): string {
1184
- return JSON.stringify(
1185
- UpdatePromptResponseFormat1$outboundSchema.parse(
1186
- updatePromptResponseFormat1,
1187
- ),
1188
- );
1149
+ return JSON.stringify(ResponseFormat1$outboundSchema.parse(responseFormat1));
1189
1150
  }
1190
1151
 
1191
- export function updatePromptResponseFormat1FromJSON(
1152
+ export function responseFormat1FromJSON(
1192
1153
  jsonString: string,
1193
- ): SafeParseResult<UpdatePromptResponseFormat1, SDKValidationError> {
1154
+ ): SafeParseResult<ResponseFormat1, SDKValidationError> {
1194
1155
  return safeParse(
1195
1156
  jsonString,
1196
- (x) => UpdatePromptResponseFormat1$inboundSchema.parse(JSON.parse(x)),
1197
- `Failed to parse 'UpdatePromptResponseFormat1' from JSON`,
1157
+ (x) => ResponseFormat1$inboundSchema.parse(JSON.parse(x)),
1158
+ `Failed to parse 'ResponseFormat1' from JSON`,
1198
1159
  );
1199
1160
  }
1200
1161
 
1201
1162
  /** @internal */
1202
- export const UpdatePromptResponseFormat$inboundSchema: z.ZodType<
1203
- UpdatePromptResponseFormat,
1163
+ export const ResponseFormat$inboundSchema: z.ZodType<
1164
+ ResponseFormat,
1204
1165
  z.ZodTypeDef,
1205
1166
  unknown
1206
1167
  > = z.union([
1207
- z.lazy(() => UpdatePromptResponseFormat2$inboundSchema),
1208
- z.lazy(() => UpdatePromptResponseFormat1$inboundSchema),
1168
+ z.lazy(() => ResponseFormat2$inboundSchema),
1169
+ z.lazy(() => ResponseFormat1$inboundSchema),
1209
1170
  ]);
1210
1171
 
1211
1172
  /** @internal */
1212
- export type UpdatePromptResponseFormat$Outbound =
1213
- | UpdatePromptResponseFormat2$Outbound
1214
- | UpdatePromptResponseFormat1$Outbound;
1173
+ export type ResponseFormat$Outbound =
1174
+ | ResponseFormat2$Outbound
1175
+ | ResponseFormat1$Outbound;
1215
1176
 
1216
1177
  /** @internal */
1217
- export const UpdatePromptResponseFormat$outboundSchema: z.ZodType<
1218
- UpdatePromptResponseFormat$Outbound,
1178
+ export const ResponseFormat$outboundSchema: z.ZodType<
1179
+ ResponseFormat$Outbound,
1219
1180
  z.ZodTypeDef,
1220
- UpdatePromptResponseFormat
1181
+ ResponseFormat
1221
1182
  > = z.union([
1222
- z.lazy(() => UpdatePromptResponseFormat2$outboundSchema),
1223
- z.lazy(() => UpdatePromptResponseFormat1$outboundSchema),
1183
+ z.lazy(() => ResponseFormat2$outboundSchema),
1184
+ z.lazy(() => ResponseFormat1$outboundSchema),
1224
1185
  ]);
1225
1186
 
1226
1187
  /**
1227
1188
  * @internal
1228
1189
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1229
1190
  */
1230
- export namespace UpdatePromptResponseFormat$ {
1231
- /** @deprecated use `UpdatePromptResponseFormat$inboundSchema` instead. */
1232
- export const inboundSchema = UpdatePromptResponseFormat$inboundSchema;
1233
- /** @deprecated use `UpdatePromptResponseFormat$outboundSchema` instead. */
1234
- export const outboundSchema = UpdatePromptResponseFormat$outboundSchema;
1235
- /** @deprecated use `UpdatePromptResponseFormat$Outbound` instead. */
1236
- export type Outbound = UpdatePromptResponseFormat$Outbound;
1191
+ export namespace ResponseFormat$ {
1192
+ /** @deprecated use `ResponseFormat$inboundSchema` instead. */
1193
+ export const inboundSchema = ResponseFormat$inboundSchema;
1194
+ /** @deprecated use `ResponseFormat$outboundSchema` instead. */
1195
+ export const outboundSchema = ResponseFormat$outboundSchema;
1196
+ /** @deprecated use `ResponseFormat$Outbound` instead. */
1197
+ export type Outbound = ResponseFormat$Outbound;
1237
1198
  }
1238
1199
 
1239
- export function updatePromptResponseFormatToJSON(
1240
- updatePromptResponseFormat: UpdatePromptResponseFormat,
1241
- ): string {
1242
- return JSON.stringify(
1243
- UpdatePromptResponseFormat$outboundSchema.parse(updatePromptResponseFormat),
1244
- );
1200
+ export function responseFormatToJSON(responseFormat: ResponseFormat): string {
1201
+ return JSON.stringify(ResponseFormat$outboundSchema.parse(responseFormat));
1245
1202
  }
1246
1203
 
1247
- export function updatePromptResponseFormatFromJSON(
1204
+ export function responseFormatFromJSON(
1248
1205
  jsonString: string,
1249
- ): SafeParseResult<UpdatePromptResponseFormat, SDKValidationError> {
1206
+ ): SafeParseResult<ResponseFormat, SDKValidationError> {
1250
1207
  return safeParse(
1251
1208
  jsonString,
1252
- (x) => UpdatePromptResponseFormat$inboundSchema.parse(JSON.parse(x)),
1253
- `Failed to parse 'UpdatePromptResponseFormat' from JSON`,
1209
+ (x) => ResponseFormat$inboundSchema.parse(JSON.parse(x)),
1210
+ `Failed to parse 'ResponseFormat' from JSON`,
1254
1211
  );
1255
1212
  }
1256
1213
 
1257
1214
  /** @internal */
1258
- export const UpdatePromptPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
1259
- typeof UpdatePromptPhotoRealVersion
1260
- > = z.nativeEnum(UpdatePromptPhotoRealVersion);
1215
+ export const PhotoRealVersion$inboundSchema: z.ZodNativeEnum<
1216
+ typeof PhotoRealVersion
1217
+ > = z.nativeEnum(PhotoRealVersion);
1261
1218
 
1262
1219
  /** @internal */
1263
- export const UpdatePromptPhotoRealVersion$outboundSchema: z.ZodNativeEnum<
1264
- typeof UpdatePromptPhotoRealVersion
1265
- > = UpdatePromptPhotoRealVersion$inboundSchema;
1220
+ export const PhotoRealVersion$outboundSchema: z.ZodNativeEnum<
1221
+ typeof PhotoRealVersion
1222
+ > = PhotoRealVersion$inboundSchema;
1266
1223
 
1267
1224
  /**
1268
1225
  * @internal
1269
1226
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1270
1227
  */
1271
- export namespace UpdatePromptPhotoRealVersion$ {
1272
- /** @deprecated use `UpdatePromptPhotoRealVersion$inboundSchema` instead. */
1273
- export const inboundSchema = UpdatePromptPhotoRealVersion$inboundSchema;
1274
- /** @deprecated use `UpdatePromptPhotoRealVersion$outboundSchema` instead. */
1275
- export const outboundSchema = UpdatePromptPhotoRealVersion$outboundSchema;
1228
+ export namespace PhotoRealVersion$ {
1229
+ /** @deprecated use `PhotoRealVersion$inboundSchema` instead. */
1230
+ export const inboundSchema = PhotoRealVersion$inboundSchema;
1231
+ /** @deprecated use `PhotoRealVersion$outboundSchema` instead. */
1232
+ export const outboundSchema = PhotoRealVersion$outboundSchema;
1276
1233
  }
1277
1234
 
1278
1235
  /** @internal */
1279
- export const UpdatePromptEncodingFormat$inboundSchema: z.ZodNativeEnum<
1280
- typeof UpdatePromptEncodingFormat
1281
- > = z.nativeEnum(UpdatePromptEncodingFormat);
1236
+ export const EncodingFormat$inboundSchema: z.ZodNativeEnum<
1237
+ typeof EncodingFormat
1238
+ > = z.nativeEnum(EncodingFormat);
1282
1239
 
1283
1240
  /** @internal */
1284
- export const UpdatePromptEncodingFormat$outboundSchema: z.ZodNativeEnum<
1285
- typeof UpdatePromptEncodingFormat
1286
- > = UpdatePromptEncodingFormat$inboundSchema;
1241
+ export const EncodingFormat$outboundSchema: z.ZodNativeEnum<
1242
+ typeof EncodingFormat
1243
+ > = EncodingFormat$inboundSchema;
1287
1244
 
1288
1245
  /**
1289
1246
  * @internal
1290
1247
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1291
1248
  */
1292
- export namespace UpdatePromptEncodingFormat$ {
1293
- /** @deprecated use `UpdatePromptEncodingFormat$inboundSchema` instead. */
1294
- export const inboundSchema = UpdatePromptEncodingFormat$inboundSchema;
1295
- /** @deprecated use `UpdatePromptEncodingFormat$outboundSchema` instead. */
1296
- export const outboundSchema = UpdatePromptEncodingFormat$outboundSchema;
1249
+ export namespace EncodingFormat$ {
1250
+ /** @deprecated use `EncodingFormat$inboundSchema` instead. */
1251
+ export const inboundSchema = EncodingFormat$inboundSchema;
1252
+ /** @deprecated use `EncodingFormat$outboundSchema` instead. */
1253
+ export const outboundSchema = EncodingFormat$outboundSchema;
1297
1254
  }
1298
1255
 
1299
1256
  /** @internal */
1300
- export const UpdatePromptReasoningEffort$inboundSchema: z.ZodNativeEnum<
1301
- typeof UpdatePromptReasoningEffort
1302
- > = z.nativeEnum(UpdatePromptReasoningEffort);
1257
+ export const ReasoningEffort$inboundSchema: z.ZodNativeEnum<
1258
+ typeof ReasoningEffort
1259
+ > = z.nativeEnum(ReasoningEffort);
1303
1260
 
1304
1261
  /** @internal */
1305
- export const UpdatePromptReasoningEffort$outboundSchema: z.ZodNativeEnum<
1306
- typeof UpdatePromptReasoningEffort
1307
- > = UpdatePromptReasoningEffort$inboundSchema;
1262
+ export const ReasoningEffort$outboundSchema: z.ZodNativeEnum<
1263
+ typeof ReasoningEffort
1264
+ > = ReasoningEffort$inboundSchema;
1308
1265
 
1309
1266
  /**
1310
1267
  * @internal
1311
1268
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1312
1269
  */
1313
- export namespace UpdatePromptReasoningEffort$ {
1314
- /** @deprecated use `UpdatePromptReasoningEffort$inboundSchema` instead. */
1315
- export const inboundSchema = UpdatePromptReasoningEffort$inboundSchema;
1316
- /** @deprecated use `UpdatePromptReasoningEffort$outboundSchema` instead. */
1317
- export const outboundSchema = UpdatePromptReasoningEffort$outboundSchema;
1270
+ export namespace ReasoningEffort$ {
1271
+ /** @deprecated use `ReasoningEffort$inboundSchema` instead. */
1272
+ export const inboundSchema = ReasoningEffort$inboundSchema;
1273
+ /** @deprecated use `ReasoningEffort$outboundSchema` instead. */
1274
+ export const outboundSchema = ReasoningEffort$outboundSchema;
1318
1275
  }
1319
1276
 
1320
1277
  /** @internal */
1321
- export const UpdatePromptModelParameters$inboundSchema: z.ZodType<
1322
- UpdatePromptModelParameters,
1278
+ export const ModelParameters$inboundSchema: z.ZodType<
1279
+ ModelParameters,
1323
1280
  z.ZodTypeDef,
1324
1281
  unknown
1325
1282
  > = z.object({
@@ -1331,19 +1288,20 @@ export const UpdatePromptModelParameters$inboundSchema: z.ZodType<
1331
1288
  presencePenalty: z.number().optional(),
1332
1289
  numImages: z.number().optional(),
1333
1290
  seed: z.number().optional(),
1334
- format: UpdatePromptFormat$inboundSchema.optional(),
1291
+ format: Format$inboundSchema.optional(),
1335
1292
  dimensions: z.string().optional(),
1336
- quality: UpdatePromptQuality$inboundSchema.optional(),
1293
+ quality: Quality$inboundSchema.optional(),
1337
1294
  style: z.string().optional(),
1338
1295
  responseFormat: z.nullable(
1339
1296
  z.union([
1340
- z.lazy(() => UpdatePromptResponseFormat2$inboundSchema),
1341
- z.lazy(() => UpdatePromptResponseFormat1$inboundSchema),
1297
+ z.lazy(() => ResponseFormat2$inboundSchema),
1298
+ z.lazy(() => ResponseFormat1$inboundSchema),
1342
1299
  ]),
1343
1300
  ).optional(),
1344
- photoRealVersion: UpdatePromptPhotoRealVersion$inboundSchema.optional(),
1345
- encoding_format: UpdatePromptEncodingFormat$inboundSchema.optional(),
1346
- reasoningEffort: UpdatePromptReasoningEffort$inboundSchema.optional(),
1301
+ photoRealVersion: PhotoRealVersion$inboundSchema.optional(),
1302
+ encoding_format: EncodingFormat$inboundSchema.optional(),
1303
+ reasoningEffort: ReasoningEffort$inboundSchema.optional(),
1304
+ budgetTokens: z.number().optional(),
1347
1305
  }).transform((v) => {
1348
1306
  return remap$(v, {
1349
1307
  "encoding_format": "encodingFormat",
@@ -1351,7 +1309,7 @@ export const UpdatePromptModelParameters$inboundSchema: z.ZodType<
1351
1309
  });
1352
1310
 
1353
1311
  /** @internal */
1354
- export type UpdatePromptModelParameters$Outbound = {
1312
+ export type ModelParameters$Outbound = {
1355
1313
  temperature?: number | undefined;
1356
1314
  maxTokens?: number | undefined;
1357
1315
  topK?: number | undefined;
@@ -1365,20 +1323,21 @@ export type UpdatePromptModelParameters$Outbound = {
1365
1323
  quality?: string | undefined;
1366
1324
  style?: string | undefined;
1367
1325
  responseFormat?:
1368
- | UpdatePromptResponseFormat2$Outbound
1369
- | UpdatePromptResponseFormat1$Outbound
1326
+ | ResponseFormat2$Outbound
1327
+ | ResponseFormat1$Outbound
1370
1328
  | null
1371
1329
  | undefined;
1372
1330
  photoRealVersion?: string | undefined;
1373
1331
  encoding_format?: string | undefined;
1374
1332
  reasoningEffort?: string | undefined;
1333
+ budgetTokens?: number | undefined;
1375
1334
  };
1376
1335
 
1377
1336
  /** @internal */
1378
- export const UpdatePromptModelParameters$outboundSchema: z.ZodType<
1379
- UpdatePromptModelParameters$Outbound,
1337
+ export const ModelParameters$outboundSchema: z.ZodType<
1338
+ ModelParameters$Outbound,
1380
1339
  z.ZodTypeDef,
1381
- UpdatePromptModelParameters
1340
+ ModelParameters
1382
1341
  > = z.object({
1383
1342
  temperature: z.number().optional(),
1384
1343
  maxTokens: z.number().optional(),
@@ -1388,19 +1347,20 @@ export const UpdatePromptModelParameters$outboundSchema: z.ZodType<
1388
1347
  presencePenalty: z.number().optional(),
1389
1348
  numImages: z.number().optional(),
1390
1349
  seed: z.number().optional(),
1391
- format: UpdatePromptFormat$outboundSchema.optional(),
1350
+ format: Format$outboundSchema.optional(),
1392
1351
  dimensions: z.string().optional(),
1393
- quality: UpdatePromptQuality$outboundSchema.optional(),
1352
+ quality: Quality$outboundSchema.optional(),
1394
1353
  style: z.string().optional(),
1395
1354
  responseFormat: z.nullable(
1396
1355
  z.union([
1397
- z.lazy(() => UpdatePromptResponseFormat2$outboundSchema),
1398
- z.lazy(() => UpdatePromptResponseFormat1$outboundSchema),
1356
+ z.lazy(() => ResponseFormat2$outboundSchema),
1357
+ z.lazy(() => ResponseFormat1$outboundSchema),
1399
1358
  ]),
1400
1359
  ).optional(),
1401
- photoRealVersion: UpdatePromptPhotoRealVersion$outboundSchema.optional(),
1402
- encodingFormat: UpdatePromptEncodingFormat$outboundSchema.optional(),
1403
- reasoningEffort: UpdatePromptReasoningEffort$outboundSchema.optional(),
1360
+ photoRealVersion: PhotoRealVersion$outboundSchema.optional(),
1361
+ encodingFormat: EncodingFormat$outboundSchema.optional(),
1362
+ reasoningEffort: ReasoningEffort$outboundSchema.optional(),
1363
+ budgetTokens: z.number().optional(),
1404
1364
  }).transform((v) => {
1405
1365
  return remap$(v, {
1406
1366
  encodingFormat: "encoding_format",
@@ -1411,54 +1371,48 @@ export const UpdatePromptModelParameters$outboundSchema: z.ZodType<
1411
1371
  * @internal
1412
1372
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1413
1373
  */
1414
- export namespace UpdatePromptModelParameters$ {
1415
- /** @deprecated use `UpdatePromptModelParameters$inboundSchema` instead. */
1416
- export const inboundSchema = UpdatePromptModelParameters$inboundSchema;
1417
- /** @deprecated use `UpdatePromptModelParameters$outboundSchema` instead. */
1418
- export const outboundSchema = UpdatePromptModelParameters$outboundSchema;
1419
- /** @deprecated use `UpdatePromptModelParameters$Outbound` instead. */
1420
- export type Outbound = UpdatePromptModelParameters$Outbound;
1374
+ export namespace ModelParameters$ {
1375
+ /** @deprecated use `ModelParameters$inboundSchema` instead. */
1376
+ export const inboundSchema = ModelParameters$inboundSchema;
1377
+ /** @deprecated use `ModelParameters$outboundSchema` instead. */
1378
+ export const outboundSchema = ModelParameters$outboundSchema;
1379
+ /** @deprecated use `ModelParameters$Outbound` instead. */
1380
+ export type Outbound = ModelParameters$Outbound;
1421
1381
  }
1422
1382
 
1423
- export function updatePromptModelParametersToJSON(
1424
- updatePromptModelParameters: UpdatePromptModelParameters,
1383
+ export function modelParametersToJSON(
1384
+ modelParameters: ModelParameters,
1425
1385
  ): string {
1426
- return JSON.stringify(
1427
- UpdatePromptModelParameters$outboundSchema.parse(
1428
- updatePromptModelParameters,
1429
- ),
1430
- );
1386
+ return JSON.stringify(ModelParameters$outboundSchema.parse(modelParameters));
1431
1387
  }
1432
1388
 
1433
- export function updatePromptModelParametersFromJSON(
1389
+ export function modelParametersFromJSON(
1434
1390
  jsonString: string,
1435
- ): SafeParseResult<UpdatePromptModelParameters, SDKValidationError> {
1391
+ ): SafeParseResult<ModelParameters, SDKValidationError> {
1436
1392
  return safeParse(
1437
1393
  jsonString,
1438
- (x) => UpdatePromptModelParameters$inboundSchema.parse(JSON.parse(x)),
1439
- `Failed to parse 'UpdatePromptModelParameters' from JSON`,
1394
+ (x) => ModelParameters$inboundSchema.parse(JSON.parse(x)),
1395
+ `Failed to parse 'ModelParameters' from JSON`,
1440
1396
  );
1441
1397
  }
1442
1398
 
1443
1399
  /** @internal */
1444
- export const UpdatePromptProvider$inboundSchema: z.ZodNativeEnum<
1445
- typeof UpdatePromptProvider
1446
- > = z.nativeEnum(UpdatePromptProvider);
1400
+ export const Provider$inboundSchema: z.ZodNativeEnum<typeof Provider> = z
1401
+ .nativeEnum(Provider);
1447
1402
 
1448
1403
  /** @internal */
1449
- export const UpdatePromptProvider$outboundSchema: z.ZodNativeEnum<
1450
- typeof UpdatePromptProvider
1451
- > = UpdatePromptProvider$inboundSchema;
1404
+ export const Provider$outboundSchema: z.ZodNativeEnum<typeof Provider> =
1405
+ Provider$inboundSchema;
1452
1406
 
1453
1407
  /**
1454
1408
  * @internal
1455
1409
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1456
1410
  */
1457
- export namespace UpdatePromptProvider$ {
1458
- /** @deprecated use `UpdatePromptProvider$inboundSchema` instead. */
1459
- export const inboundSchema = UpdatePromptProvider$inboundSchema;
1460
- /** @deprecated use `UpdatePromptProvider$outboundSchema` instead. */
1461
- export const outboundSchema = UpdatePromptProvider$outboundSchema;
1411
+ export namespace Provider$ {
1412
+ /** @deprecated use `Provider$inboundSchema` instead. */
1413
+ export const inboundSchema = Provider$inboundSchema;
1414
+ /** @deprecated use `Provider$outboundSchema` instead. */
1415
+ export const outboundSchema = Provider$outboundSchema;
1462
1416
  }
1463
1417
 
1464
1418
  /** @internal */
@@ -2037,17 +1991,16 @@ export function updatePromptMessagesFromJSON(
2037
1991
  }
2038
1992
 
2039
1993
  /** @internal */
2040
- export const UpdatePromptPromptConfig$inboundSchema: z.ZodType<
2041
- UpdatePromptPromptConfig,
1994
+ export const PromptConfig$inboundSchema: z.ZodType<
1995
+ PromptConfig,
2042
1996
  z.ZodTypeDef,
2043
1997
  unknown
2044
1998
  > = z.object({
2045
1999
  stream: z.boolean().optional(),
2046
2000
  model: z.string().optional(),
2047
- model_type: UpdatePromptModelType$inboundSchema.optional(),
2048
- model_parameters: z.lazy(() => UpdatePromptModelParameters$inboundSchema)
2049
- .optional(),
2050
- provider: UpdatePromptProvider$inboundSchema.optional(),
2001
+ model_type: ModelType$inboundSchema.optional(),
2002
+ model_parameters: z.lazy(() => ModelParameters$inboundSchema).optional(),
2003
+ provider: Provider$inboundSchema.optional(),
2051
2004
  version: z.string().optional(),
2052
2005
  messages: z.array(z.lazy(() => UpdatePromptMessages$inboundSchema)),
2053
2006
  }).transform((v) => {
@@ -2058,28 +2011,27 @@ export const UpdatePromptPromptConfig$inboundSchema: z.ZodType<
2058
2011
  });
2059
2012
 
2060
2013
  /** @internal */
2061
- export type UpdatePromptPromptConfig$Outbound = {
2014
+ export type PromptConfig$Outbound = {
2062
2015
  stream?: boolean | undefined;
2063
2016
  model?: string | undefined;
2064
2017
  model_type?: string | undefined;
2065
- model_parameters?: UpdatePromptModelParameters$Outbound | undefined;
2018
+ model_parameters?: ModelParameters$Outbound | undefined;
2066
2019
  provider?: string | undefined;
2067
2020
  version?: string | undefined;
2068
2021
  messages: Array<UpdatePromptMessages$Outbound>;
2069
2022
  };
2070
2023
 
2071
2024
  /** @internal */
2072
- export const UpdatePromptPromptConfig$outboundSchema: z.ZodType<
2073
- UpdatePromptPromptConfig$Outbound,
2025
+ export const PromptConfig$outboundSchema: z.ZodType<
2026
+ PromptConfig$Outbound,
2074
2027
  z.ZodTypeDef,
2075
- UpdatePromptPromptConfig
2028
+ PromptConfig
2076
2029
  > = z.object({
2077
2030
  stream: z.boolean().optional(),
2078
2031
  model: z.string().optional(),
2079
- modelType: UpdatePromptModelType$outboundSchema.optional(),
2080
- modelParameters: z.lazy(() => UpdatePromptModelParameters$outboundSchema)
2081
- .optional(),
2082
- provider: UpdatePromptProvider$outboundSchema.optional(),
2032
+ modelType: ModelType$outboundSchema.optional(),
2033
+ modelParameters: z.lazy(() => ModelParameters$outboundSchema).optional(),
2034
+ provider: Provider$outboundSchema.optional(),
2083
2035
  version: z.string().optional(),
2084
2036
  messages: z.array(z.lazy(() => UpdatePromptMessages$outboundSchema)),
2085
2037
  }).transform((v) => {
@@ -2093,73 +2045,65 @@ export const UpdatePromptPromptConfig$outboundSchema: z.ZodType<
2093
2045
  * @internal
2094
2046
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2095
2047
  */
2096
- export namespace UpdatePromptPromptConfig$ {
2097
- /** @deprecated use `UpdatePromptPromptConfig$inboundSchema` instead. */
2098
- export const inboundSchema = UpdatePromptPromptConfig$inboundSchema;
2099
- /** @deprecated use `UpdatePromptPromptConfig$outboundSchema` instead. */
2100
- export const outboundSchema = UpdatePromptPromptConfig$outboundSchema;
2101
- /** @deprecated use `UpdatePromptPromptConfig$Outbound` instead. */
2102
- export type Outbound = UpdatePromptPromptConfig$Outbound;
2048
+ export namespace PromptConfig$ {
2049
+ /** @deprecated use `PromptConfig$inboundSchema` instead. */
2050
+ export const inboundSchema = PromptConfig$inboundSchema;
2051
+ /** @deprecated use `PromptConfig$outboundSchema` instead. */
2052
+ export const outboundSchema = PromptConfig$outboundSchema;
2053
+ /** @deprecated use `PromptConfig$Outbound` instead. */
2054
+ export type Outbound = PromptConfig$Outbound;
2103
2055
  }
2104
2056
 
2105
- export function updatePromptPromptConfigToJSON(
2106
- updatePromptPromptConfig: UpdatePromptPromptConfig,
2107
- ): string {
2108
- return JSON.stringify(
2109
- UpdatePromptPromptConfig$outboundSchema.parse(updatePromptPromptConfig),
2110
- );
2057
+ export function promptConfigToJSON(promptConfig: PromptConfig): string {
2058
+ return JSON.stringify(PromptConfig$outboundSchema.parse(promptConfig));
2111
2059
  }
2112
2060
 
2113
- export function updatePromptPromptConfigFromJSON(
2061
+ export function promptConfigFromJSON(
2114
2062
  jsonString: string,
2115
- ): SafeParseResult<UpdatePromptPromptConfig, SDKValidationError> {
2063
+ ): SafeParseResult<PromptConfig, SDKValidationError> {
2116
2064
  return safeParse(
2117
2065
  jsonString,
2118
- (x) => UpdatePromptPromptConfig$inboundSchema.parse(JSON.parse(x)),
2119
- `Failed to parse 'UpdatePromptPromptConfig' from JSON`,
2066
+ (x) => PromptConfig$inboundSchema.parse(JSON.parse(x)),
2067
+ `Failed to parse 'PromptConfig' from JSON`,
2120
2068
  );
2121
2069
  }
2122
2070
 
2123
2071
  /** @internal */
2124
- export const UpdatePromptUseCases$inboundSchema: z.ZodNativeEnum<
2125
- typeof UpdatePromptUseCases
2126
- > = z.nativeEnum(UpdatePromptUseCases);
2072
+ export const UseCases$inboundSchema: z.ZodNativeEnum<typeof UseCases> = z
2073
+ .nativeEnum(UseCases);
2127
2074
 
2128
2075
  /** @internal */
2129
- export const UpdatePromptUseCases$outboundSchema: z.ZodNativeEnum<
2130
- typeof UpdatePromptUseCases
2131
- > = UpdatePromptUseCases$inboundSchema;
2076
+ export const UseCases$outboundSchema: z.ZodNativeEnum<typeof UseCases> =
2077
+ UseCases$inboundSchema;
2132
2078
 
2133
2079
  /**
2134
2080
  * @internal
2135
2081
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2136
2082
  */
2137
- export namespace UpdatePromptUseCases$ {
2138
- /** @deprecated use `UpdatePromptUseCases$inboundSchema` instead. */
2139
- export const inboundSchema = UpdatePromptUseCases$inboundSchema;
2140
- /** @deprecated use `UpdatePromptUseCases$outboundSchema` instead. */
2141
- export const outboundSchema = UpdatePromptUseCases$outboundSchema;
2083
+ export namespace UseCases$ {
2084
+ /** @deprecated use `UseCases$inboundSchema` instead. */
2085
+ export const inboundSchema = UseCases$inboundSchema;
2086
+ /** @deprecated use `UseCases$outboundSchema` instead. */
2087
+ export const outboundSchema = UseCases$outboundSchema;
2142
2088
  }
2143
2089
 
2144
2090
  /** @internal */
2145
- export const UpdatePromptLanguage$inboundSchema: z.ZodNativeEnum<
2146
- typeof UpdatePromptLanguage
2147
- > = z.nativeEnum(UpdatePromptLanguage);
2091
+ export const Language$inboundSchema: z.ZodNativeEnum<typeof Language> = z
2092
+ .nativeEnum(Language);
2148
2093
 
2149
2094
  /** @internal */
2150
- export const UpdatePromptLanguage$outboundSchema: z.ZodNativeEnum<
2151
- typeof UpdatePromptLanguage
2152
- > = UpdatePromptLanguage$inboundSchema;
2095
+ export const Language$outboundSchema: z.ZodNativeEnum<typeof Language> =
2096
+ Language$inboundSchema;
2153
2097
 
2154
2098
  /**
2155
2099
  * @internal
2156
2100
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2157
2101
  */
2158
- export namespace UpdatePromptLanguage$ {
2159
- /** @deprecated use `UpdatePromptLanguage$inboundSchema` instead. */
2160
- export const inboundSchema = UpdatePromptLanguage$inboundSchema;
2161
- /** @deprecated use `UpdatePromptLanguage$outboundSchema` instead. */
2162
- export const outboundSchema = UpdatePromptLanguage$outboundSchema;
2102
+ export namespace Language$ {
2103
+ /** @deprecated use `Language$inboundSchema` instead. */
2104
+ export const inboundSchema = Language$inboundSchema;
2105
+ /** @deprecated use `Language$outboundSchema` instead. */
2106
+ export const outboundSchema = Language$outboundSchema;
2163
2107
  }
2164
2108
 
2165
2109
  /** @internal */
@@ -2168,8 +2112,8 @@ export const UpdatePromptMetadata$inboundSchema: z.ZodType<
2168
2112
  z.ZodTypeDef,
2169
2113
  unknown
2170
2114
  > = z.object({
2171
- use_cases: z.array(UpdatePromptUseCases$inboundSchema).optional(),
2172
- language: UpdatePromptLanguage$inboundSchema.optional(),
2115
+ use_cases: z.array(UseCases$inboundSchema).optional(),
2116
+ language: Language$inboundSchema.optional(),
2173
2117
  }).transform((v) => {
2174
2118
  return remap$(v, {
2175
2119
  "use_cases": "useCases",
@@ -2188,8 +2132,8 @@ export const UpdatePromptMetadata$outboundSchema: z.ZodType<
2188
2132
  z.ZodTypeDef,
2189
2133
  UpdatePromptMetadata
2190
2134
  > = z.object({
2191
- useCases: z.array(UpdatePromptUseCases$outboundSchema).optional(),
2192
- language: UpdatePromptLanguage$outboundSchema.optional(),
2135
+ useCases: z.array(UseCases$outboundSchema).optional(),
2136
+ language: Language$outboundSchema.optional(),
2193
2137
  }).transform((v) => {
2194
2138
  return remap$(v, {
2195
2139
  useCases: "use_cases",
@@ -2241,8 +2185,7 @@ export const UpdatePromptRequestBody$inboundSchema: z.ZodType<
2241
2185
  updated_by_id: z.string().optional(),
2242
2186
  display_name: z.string().optional(),
2243
2187
  description: z.nullable(z.string()).optional(),
2244
- prompt_config: z.lazy(() => UpdatePromptPromptConfig$inboundSchema)
2245
- .optional(),
2188
+ prompt_config: z.lazy(() => PromptConfig$inboundSchema).optional(),
2246
2189
  metadata: z.lazy(() => UpdatePromptMetadata$inboundSchema).optional(),
2247
2190
  }).transform((v) => {
2248
2191
  return remap$(v, {
@@ -2264,7 +2207,7 @@ export type UpdatePromptRequestBody$Outbound = {
2264
2207
  updated_by_id?: string | undefined;
2265
2208
  display_name?: string | undefined;
2266
2209
  description?: string | null | undefined;
2267
- prompt_config?: UpdatePromptPromptConfig$Outbound | undefined;
2210
+ prompt_config?: PromptConfig$Outbound | undefined;
2268
2211
  metadata?: UpdatePromptMetadata$Outbound | undefined;
2269
2212
  };
2270
2213
 
@@ -2282,8 +2225,7 @@ export const UpdatePromptRequestBody$outboundSchema: z.ZodType<
2282
2225
  updatedById: z.string().optional(),
2283
2226
  displayName: z.string().optional(),
2284
2227
  description: z.nullable(z.string()).optional(),
2285
- promptConfig: z.lazy(() => UpdatePromptPromptConfig$outboundSchema)
2286
- .optional(),
2228
+ promptConfig: z.lazy(() => PromptConfig$outboundSchema).optional(),
2287
2229
  metadata: z.lazy(() => UpdatePromptMetadata$outboundSchema).optional(),
2288
2230
  }).transform((v) => {
2289
2231
  return remap$(v, {
@@ -2413,170 +2355,169 @@ export namespace UpdatePromptPromptsType$ {
2413
2355
  }
2414
2356
 
2415
2357
  /** @internal */
2416
- export const UpdatePromptPromptsModelType$inboundSchema: z.ZodNativeEnum<
2417
- typeof UpdatePromptPromptsModelType
2418
- > = z.nativeEnum(UpdatePromptPromptsModelType);
2358
+ export const UpdatePromptModelType$inboundSchema: z.ZodNativeEnum<
2359
+ typeof UpdatePromptModelType
2360
+ > = z.nativeEnum(UpdatePromptModelType);
2419
2361
 
2420
2362
  /** @internal */
2421
- export const UpdatePromptPromptsModelType$outboundSchema: z.ZodNativeEnum<
2422
- typeof UpdatePromptPromptsModelType
2423
- > = UpdatePromptPromptsModelType$inboundSchema;
2363
+ export const UpdatePromptModelType$outboundSchema: z.ZodNativeEnum<
2364
+ typeof UpdatePromptModelType
2365
+ > = UpdatePromptModelType$inboundSchema;
2424
2366
 
2425
2367
  /**
2426
2368
  * @internal
2427
2369
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2428
2370
  */
2429
- export namespace UpdatePromptPromptsModelType$ {
2430
- /** @deprecated use `UpdatePromptPromptsModelType$inboundSchema` instead. */
2431
- export const inboundSchema = UpdatePromptPromptsModelType$inboundSchema;
2432
- /** @deprecated use `UpdatePromptPromptsModelType$outboundSchema` instead. */
2433
- export const outboundSchema = UpdatePromptPromptsModelType$outboundSchema;
2371
+ export namespace UpdatePromptModelType$ {
2372
+ /** @deprecated use `UpdatePromptModelType$inboundSchema` instead. */
2373
+ export const inboundSchema = UpdatePromptModelType$inboundSchema;
2374
+ /** @deprecated use `UpdatePromptModelType$outboundSchema` instead. */
2375
+ export const outboundSchema = UpdatePromptModelType$outboundSchema;
2434
2376
  }
2435
2377
 
2436
2378
  /** @internal */
2437
- export const UpdatePromptPromptsFormat$inboundSchema: z.ZodNativeEnum<
2438
- typeof UpdatePromptPromptsFormat
2439
- > = z.nativeEnum(UpdatePromptPromptsFormat);
2379
+ export const UpdatePromptFormat$inboundSchema: z.ZodNativeEnum<
2380
+ typeof UpdatePromptFormat
2381
+ > = z.nativeEnum(UpdatePromptFormat);
2440
2382
 
2441
2383
  /** @internal */
2442
- export const UpdatePromptPromptsFormat$outboundSchema: z.ZodNativeEnum<
2443
- typeof UpdatePromptPromptsFormat
2444
- > = UpdatePromptPromptsFormat$inboundSchema;
2384
+ export const UpdatePromptFormat$outboundSchema: z.ZodNativeEnum<
2385
+ typeof UpdatePromptFormat
2386
+ > = UpdatePromptFormat$inboundSchema;
2445
2387
 
2446
2388
  /**
2447
2389
  * @internal
2448
2390
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2449
2391
  */
2450
- export namespace UpdatePromptPromptsFormat$ {
2451
- /** @deprecated use `UpdatePromptPromptsFormat$inboundSchema` instead. */
2452
- export const inboundSchema = UpdatePromptPromptsFormat$inboundSchema;
2453
- /** @deprecated use `UpdatePromptPromptsFormat$outboundSchema` instead. */
2454
- export const outboundSchema = UpdatePromptPromptsFormat$outboundSchema;
2392
+ export namespace UpdatePromptFormat$ {
2393
+ /** @deprecated use `UpdatePromptFormat$inboundSchema` instead. */
2394
+ export const inboundSchema = UpdatePromptFormat$inboundSchema;
2395
+ /** @deprecated use `UpdatePromptFormat$outboundSchema` instead. */
2396
+ export const outboundSchema = UpdatePromptFormat$outboundSchema;
2455
2397
  }
2456
2398
 
2457
2399
  /** @internal */
2458
- export const UpdatePromptPromptsQuality$inboundSchema: z.ZodNativeEnum<
2459
- typeof UpdatePromptPromptsQuality
2460
- > = z.nativeEnum(UpdatePromptPromptsQuality);
2400
+ export const UpdatePromptQuality$inboundSchema: z.ZodNativeEnum<
2401
+ typeof UpdatePromptQuality
2402
+ > = z.nativeEnum(UpdatePromptQuality);
2461
2403
 
2462
2404
  /** @internal */
2463
- export const UpdatePromptPromptsQuality$outboundSchema: z.ZodNativeEnum<
2464
- typeof UpdatePromptPromptsQuality
2465
- > = UpdatePromptPromptsQuality$inboundSchema;
2405
+ export const UpdatePromptQuality$outboundSchema: z.ZodNativeEnum<
2406
+ typeof UpdatePromptQuality
2407
+ > = UpdatePromptQuality$inboundSchema;
2466
2408
 
2467
2409
  /**
2468
2410
  * @internal
2469
2411
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2470
2412
  */
2471
- export namespace UpdatePromptPromptsQuality$ {
2472
- /** @deprecated use `UpdatePromptPromptsQuality$inboundSchema` instead. */
2473
- export const inboundSchema = UpdatePromptPromptsQuality$inboundSchema;
2474
- /** @deprecated use `UpdatePromptPromptsQuality$outboundSchema` instead. */
2475
- export const outboundSchema = UpdatePromptPromptsQuality$outboundSchema;
2413
+ export namespace UpdatePromptQuality$ {
2414
+ /** @deprecated use `UpdatePromptQuality$inboundSchema` instead. */
2415
+ export const inboundSchema = UpdatePromptQuality$inboundSchema;
2416
+ /** @deprecated use `UpdatePromptQuality$outboundSchema` instead. */
2417
+ export const outboundSchema = UpdatePromptQuality$outboundSchema;
2476
2418
  }
2477
2419
 
2478
2420
  /** @internal */
2479
- export const UpdatePromptResponseFormatPromptsResponse200Type$inboundSchema:
2480
- z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsResponse200Type> = z
2481
- .nativeEnum(UpdatePromptResponseFormatPromptsResponse200Type);
2421
+ export const UpdatePromptResponseFormatPromptsResponseType$inboundSchema:
2422
+ z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsResponseType> = z
2423
+ .nativeEnum(UpdatePromptResponseFormatPromptsResponseType);
2482
2424
 
2483
2425
  /** @internal */
2484
- export const UpdatePromptResponseFormatPromptsResponse200Type$outboundSchema:
2485
- z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsResponse200Type> =
2486
- UpdatePromptResponseFormatPromptsResponse200Type$inboundSchema;
2426
+ export const UpdatePromptResponseFormatPromptsResponseType$outboundSchema:
2427
+ z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsResponseType> =
2428
+ UpdatePromptResponseFormatPromptsResponseType$inboundSchema;
2487
2429
 
2488
2430
  /**
2489
2431
  * @internal
2490
2432
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2491
2433
  */
2492
- export namespace UpdatePromptResponseFormatPromptsResponse200Type$ {
2493
- /** @deprecated use `UpdatePromptResponseFormatPromptsResponse200Type$inboundSchema` instead. */
2434
+ export namespace UpdatePromptResponseFormatPromptsResponseType$ {
2435
+ /** @deprecated use `UpdatePromptResponseFormatPromptsResponseType$inboundSchema` instead. */
2494
2436
  export const inboundSchema =
2495
- UpdatePromptResponseFormatPromptsResponse200Type$inboundSchema;
2496
- /** @deprecated use `UpdatePromptResponseFormatPromptsResponse200Type$outboundSchema` instead. */
2437
+ UpdatePromptResponseFormatPromptsResponseType$inboundSchema;
2438
+ /** @deprecated use `UpdatePromptResponseFormatPromptsResponseType$outboundSchema` instead. */
2497
2439
  export const outboundSchema =
2498
- UpdatePromptResponseFormatPromptsResponse200Type$outboundSchema;
2440
+ UpdatePromptResponseFormatPromptsResponseType$outboundSchema;
2499
2441
  }
2500
2442
 
2501
2443
  /** @internal */
2502
- export const UpdatePromptResponseFormatPrompts2$inboundSchema: z.ZodType<
2503
- UpdatePromptResponseFormatPrompts2,
2444
+ export const UpdatePromptResponseFormat2$inboundSchema: z.ZodType<
2445
+ UpdatePromptResponseFormat2,
2504
2446
  z.ZodTypeDef,
2505
2447
  unknown
2506
2448
  > = z.object({
2507
- type: UpdatePromptResponseFormatPromptsResponse200Type$inboundSchema,
2449
+ type: UpdatePromptResponseFormatPromptsResponseType$inboundSchema,
2508
2450
  });
2509
2451
 
2510
2452
  /** @internal */
2511
- export type UpdatePromptResponseFormatPrompts2$Outbound = {
2453
+ export type UpdatePromptResponseFormat2$Outbound = {
2512
2454
  type: string;
2513
2455
  };
2514
2456
 
2515
2457
  /** @internal */
2516
- export const UpdatePromptResponseFormatPrompts2$outboundSchema: z.ZodType<
2517
- UpdatePromptResponseFormatPrompts2$Outbound,
2458
+ export const UpdatePromptResponseFormat2$outboundSchema: z.ZodType<
2459
+ UpdatePromptResponseFormat2$Outbound,
2518
2460
  z.ZodTypeDef,
2519
- UpdatePromptResponseFormatPrompts2
2461
+ UpdatePromptResponseFormat2
2520
2462
  > = z.object({
2521
- type: UpdatePromptResponseFormatPromptsResponse200Type$outboundSchema,
2463
+ type: UpdatePromptResponseFormatPromptsResponseType$outboundSchema,
2522
2464
  });
2523
2465
 
2524
2466
  /**
2525
2467
  * @internal
2526
2468
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2527
2469
  */
2528
- export namespace UpdatePromptResponseFormatPrompts2$ {
2529
- /** @deprecated use `UpdatePromptResponseFormatPrompts2$inboundSchema` instead. */
2530
- export const inboundSchema = UpdatePromptResponseFormatPrompts2$inboundSchema;
2531
- /** @deprecated use `UpdatePromptResponseFormatPrompts2$outboundSchema` instead. */
2532
- export const outboundSchema =
2533
- UpdatePromptResponseFormatPrompts2$outboundSchema;
2534
- /** @deprecated use `UpdatePromptResponseFormatPrompts2$Outbound` instead. */
2535
- export type Outbound = UpdatePromptResponseFormatPrompts2$Outbound;
2470
+ export namespace UpdatePromptResponseFormat2$ {
2471
+ /** @deprecated use `UpdatePromptResponseFormat2$inboundSchema` instead. */
2472
+ export const inboundSchema = UpdatePromptResponseFormat2$inboundSchema;
2473
+ /** @deprecated use `UpdatePromptResponseFormat2$outboundSchema` instead. */
2474
+ export const outboundSchema = UpdatePromptResponseFormat2$outboundSchema;
2475
+ /** @deprecated use `UpdatePromptResponseFormat2$Outbound` instead. */
2476
+ export type Outbound = UpdatePromptResponseFormat2$Outbound;
2536
2477
  }
2537
2478
 
2538
- export function updatePromptResponseFormatPrompts2ToJSON(
2539
- updatePromptResponseFormatPrompts2: UpdatePromptResponseFormatPrompts2,
2479
+ export function updatePromptResponseFormat2ToJSON(
2480
+ updatePromptResponseFormat2: UpdatePromptResponseFormat2,
2540
2481
  ): string {
2541
2482
  return JSON.stringify(
2542
- UpdatePromptResponseFormatPrompts2$outboundSchema.parse(
2543
- updatePromptResponseFormatPrompts2,
2483
+ UpdatePromptResponseFormat2$outboundSchema.parse(
2484
+ updatePromptResponseFormat2,
2544
2485
  ),
2545
2486
  );
2546
2487
  }
2547
2488
 
2548
- export function updatePromptResponseFormatPrompts2FromJSON(
2489
+ export function updatePromptResponseFormat2FromJSON(
2549
2490
  jsonString: string,
2550
- ): SafeParseResult<UpdatePromptResponseFormatPrompts2, SDKValidationError> {
2491
+ ): SafeParseResult<UpdatePromptResponseFormat2, SDKValidationError> {
2551
2492
  return safeParse(
2552
2493
  jsonString,
2553
- (x) =>
2554
- UpdatePromptResponseFormatPrompts2$inboundSchema.parse(JSON.parse(x)),
2555
- `Failed to parse 'UpdatePromptResponseFormatPrompts2' from JSON`,
2494
+ (x) => UpdatePromptResponseFormat2$inboundSchema.parse(JSON.parse(x)),
2495
+ `Failed to parse 'UpdatePromptResponseFormat2' from JSON`,
2556
2496
  );
2557
2497
  }
2558
2498
 
2559
2499
  /** @internal */
2560
- export const UpdatePromptResponseFormatPromptsResponseType$inboundSchema:
2561
- z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsResponseType> = z
2562
- .nativeEnum(UpdatePromptResponseFormatPromptsResponseType);
2500
+ export const UpdatePromptResponseFormatPromptsType$inboundSchema:
2501
+ z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsType> = z.nativeEnum(
2502
+ UpdatePromptResponseFormatPromptsType,
2503
+ );
2563
2504
 
2564
2505
  /** @internal */
2565
- export const UpdatePromptResponseFormatPromptsResponseType$outboundSchema:
2566
- z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsResponseType> =
2567
- UpdatePromptResponseFormatPromptsResponseType$inboundSchema;
2506
+ export const UpdatePromptResponseFormatPromptsType$outboundSchema:
2507
+ z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsType> =
2508
+ UpdatePromptResponseFormatPromptsType$inboundSchema;
2568
2509
 
2569
2510
  /**
2570
2511
  * @internal
2571
2512
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2572
2513
  */
2573
- export namespace UpdatePromptResponseFormatPromptsResponseType$ {
2574
- /** @deprecated use `UpdatePromptResponseFormatPromptsResponseType$inboundSchema` instead. */
2514
+ export namespace UpdatePromptResponseFormatPromptsType$ {
2515
+ /** @deprecated use `UpdatePromptResponseFormatPromptsType$inboundSchema` instead. */
2575
2516
  export const inboundSchema =
2576
- UpdatePromptResponseFormatPromptsResponseType$inboundSchema;
2577
- /** @deprecated use `UpdatePromptResponseFormatPromptsResponseType$outboundSchema` instead. */
2517
+ UpdatePromptResponseFormatPromptsType$inboundSchema;
2518
+ /** @deprecated use `UpdatePromptResponseFormatPromptsType$outboundSchema` instead. */
2578
2519
  export const outboundSchema =
2579
- UpdatePromptResponseFormatPromptsResponseType$outboundSchema;
2520
+ UpdatePromptResponseFormatPromptsType$outboundSchema;
2580
2521
  }
2581
2522
 
2582
2523
  /** @internal */
@@ -2645,12 +2586,12 @@ export function updatePromptResponseFormatJsonSchemaFromJSON(
2645
2586
  }
2646
2587
 
2647
2588
  /** @internal */
2648
- export const UpdatePromptResponseFormatPrompts1$inboundSchema: z.ZodType<
2649
- UpdatePromptResponseFormatPrompts1,
2589
+ export const UpdatePromptResponseFormat1$inboundSchema: z.ZodType<
2590
+ UpdatePromptResponseFormat1,
2650
2591
  z.ZodTypeDef,
2651
2592
  unknown
2652
2593
  > = z.object({
2653
- type: UpdatePromptResponseFormatPromptsResponseType$inboundSchema,
2594
+ type: UpdatePromptResponseFormatPromptsType$inboundSchema,
2654
2595
  json_schema: z.lazy(() => UpdatePromptResponseFormatJsonSchema$inboundSchema),
2655
2596
  }).transform((v) => {
2656
2597
  return remap$(v, {
@@ -2659,18 +2600,18 @@ export const UpdatePromptResponseFormatPrompts1$inboundSchema: z.ZodType<
2659
2600
  });
2660
2601
 
2661
2602
  /** @internal */
2662
- export type UpdatePromptResponseFormatPrompts1$Outbound = {
2603
+ export type UpdatePromptResponseFormat1$Outbound = {
2663
2604
  type: string;
2664
2605
  json_schema: UpdatePromptResponseFormatJsonSchema$Outbound;
2665
2606
  };
2666
2607
 
2667
2608
  /** @internal */
2668
- export const UpdatePromptResponseFormatPrompts1$outboundSchema: z.ZodType<
2669
- UpdatePromptResponseFormatPrompts1$Outbound,
2609
+ export const UpdatePromptResponseFormat1$outboundSchema: z.ZodType<
2610
+ UpdatePromptResponseFormat1$Outbound,
2670
2611
  z.ZodTypeDef,
2671
- UpdatePromptResponseFormatPrompts1
2612
+ UpdatePromptResponseFormat1
2672
2613
  > = z.object({
2673
- type: UpdatePromptResponseFormatPromptsResponseType$outboundSchema,
2614
+ type: UpdatePromptResponseFormatPromptsType$outboundSchema,
2674
2615
  jsonSchema: z.lazy(() => UpdatePromptResponseFormatJsonSchema$outboundSchema),
2675
2616
  }).transform((v) => {
2676
2617
  return remap$(v, {
@@ -2682,166 +2623,157 @@ export const UpdatePromptResponseFormatPrompts1$outboundSchema: z.ZodType<
2682
2623
  * @internal
2683
2624
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2684
2625
  */
2685
- export namespace UpdatePromptResponseFormatPrompts1$ {
2686
- /** @deprecated use `UpdatePromptResponseFormatPrompts1$inboundSchema` instead. */
2687
- export const inboundSchema = UpdatePromptResponseFormatPrompts1$inboundSchema;
2688
- /** @deprecated use `UpdatePromptResponseFormatPrompts1$outboundSchema` instead. */
2689
- export const outboundSchema =
2690
- UpdatePromptResponseFormatPrompts1$outboundSchema;
2691
- /** @deprecated use `UpdatePromptResponseFormatPrompts1$Outbound` instead. */
2692
- export type Outbound = UpdatePromptResponseFormatPrompts1$Outbound;
2626
+ export namespace UpdatePromptResponseFormat1$ {
2627
+ /** @deprecated use `UpdatePromptResponseFormat1$inboundSchema` instead. */
2628
+ export const inboundSchema = UpdatePromptResponseFormat1$inboundSchema;
2629
+ /** @deprecated use `UpdatePromptResponseFormat1$outboundSchema` instead. */
2630
+ export const outboundSchema = UpdatePromptResponseFormat1$outboundSchema;
2631
+ /** @deprecated use `UpdatePromptResponseFormat1$Outbound` instead. */
2632
+ export type Outbound = UpdatePromptResponseFormat1$Outbound;
2693
2633
  }
2694
2634
 
2695
- export function updatePromptResponseFormatPrompts1ToJSON(
2696
- updatePromptResponseFormatPrompts1: UpdatePromptResponseFormatPrompts1,
2635
+ export function updatePromptResponseFormat1ToJSON(
2636
+ updatePromptResponseFormat1: UpdatePromptResponseFormat1,
2697
2637
  ): string {
2698
2638
  return JSON.stringify(
2699
- UpdatePromptResponseFormatPrompts1$outboundSchema.parse(
2700
- updatePromptResponseFormatPrompts1,
2639
+ UpdatePromptResponseFormat1$outboundSchema.parse(
2640
+ updatePromptResponseFormat1,
2701
2641
  ),
2702
2642
  );
2703
2643
  }
2704
2644
 
2705
- export function updatePromptResponseFormatPrompts1FromJSON(
2645
+ export function updatePromptResponseFormat1FromJSON(
2706
2646
  jsonString: string,
2707
- ): SafeParseResult<UpdatePromptResponseFormatPrompts1, SDKValidationError> {
2647
+ ): SafeParseResult<UpdatePromptResponseFormat1, SDKValidationError> {
2708
2648
  return safeParse(
2709
2649
  jsonString,
2710
- (x) =>
2711
- UpdatePromptResponseFormatPrompts1$inboundSchema.parse(JSON.parse(x)),
2712
- `Failed to parse 'UpdatePromptResponseFormatPrompts1' from JSON`,
2650
+ (x) => UpdatePromptResponseFormat1$inboundSchema.parse(JSON.parse(x)),
2651
+ `Failed to parse 'UpdatePromptResponseFormat1' from JSON`,
2713
2652
  );
2714
2653
  }
2715
2654
 
2716
2655
  /** @internal */
2717
- export const UpdatePromptPromptsResponseFormat$inboundSchema: z.ZodType<
2718
- UpdatePromptPromptsResponseFormat,
2656
+ export const UpdatePromptResponseFormat$inboundSchema: z.ZodType<
2657
+ UpdatePromptResponseFormat,
2719
2658
  z.ZodTypeDef,
2720
2659
  unknown
2721
2660
  > = z.union([
2722
- z.lazy(() => UpdatePromptResponseFormatPrompts2$inboundSchema),
2723
- z.lazy(() => UpdatePromptResponseFormatPrompts1$inboundSchema),
2661
+ z.lazy(() => UpdatePromptResponseFormat2$inboundSchema),
2662
+ z.lazy(() => UpdatePromptResponseFormat1$inboundSchema),
2724
2663
  ]);
2725
2664
 
2726
2665
  /** @internal */
2727
- export type UpdatePromptPromptsResponseFormat$Outbound =
2728
- | UpdatePromptResponseFormatPrompts2$Outbound
2729
- | UpdatePromptResponseFormatPrompts1$Outbound;
2666
+ export type UpdatePromptResponseFormat$Outbound =
2667
+ | UpdatePromptResponseFormat2$Outbound
2668
+ | UpdatePromptResponseFormat1$Outbound;
2730
2669
 
2731
2670
  /** @internal */
2732
- export const UpdatePromptPromptsResponseFormat$outboundSchema: z.ZodType<
2733
- UpdatePromptPromptsResponseFormat$Outbound,
2671
+ export const UpdatePromptResponseFormat$outboundSchema: z.ZodType<
2672
+ UpdatePromptResponseFormat$Outbound,
2734
2673
  z.ZodTypeDef,
2735
- UpdatePromptPromptsResponseFormat
2674
+ UpdatePromptResponseFormat
2736
2675
  > = z.union([
2737
- z.lazy(() => UpdatePromptResponseFormatPrompts2$outboundSchema),
2738
- z.lazy(() => UpdatePromptResponseFormatPrompts1$outboundSchema),
2676
+ z.lazy(() => UpdatePromptResponseFormat2$outboundSchema),
2677
+ z.lazy(() => UpdatePromptResponseFormat1$outboundSchema),
2739
2678
  ]);
2740
2679
 
2741
2680
  /**
2742
2681
  * @internal
2743
2682
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2744
2683
  */
2745
- export namespace UpdatePromptPromptsResponseFormat$ {
2746
- /** @deprecated use `UpdatePromptPromptsResponseFormat$inboundSchema` instead. */
2747
- export const inboundSchema = UpdatePromptPromptsResponseFormat$inboundSchema;
2748
- /** @deprecated use `UpdatePromptPromptsResponseFormat$outboundSchema` instead. */
2749
- export const outboundSchema =
2750
- UpdatePromptPromptsResponseFormat$outboundSchema;
2751
- /** @deprecated use `UpdatePromptPromptsResponseFormat$Outbound` instead. */
2752
- export type Outbound = UpdatePromptPromptsResponseFormat$Outbound;
2684
+ export namespace UpdatePromptResponseFormat$ {
2685
+ /** @deprecated use `UpdatePromptResponseFormat$inboundSchema` instead. */
2686
+ export const inboundSchema = UpdatePromptResponseFormat$inboundSchema;
2687
+ /** @deprecated use `UpdatePromptResponseFormat$outboundSchema` instead. */
2688
+ export const outboundSchema = UpdatePromptResponseFormat$outboundSchema;
2689
+ /** @deprecated use `UpdatePromptResponseFormat$Outbound` instead. */
2690
+ export type Outbound = UpdatePromptResponseFormat$Outbound;
2753
2691
  }
2754
2692
 
2755
- export function updatePromptPromptsResponseFormatToJSON(
2756
- updatePromptPromptsResponseFormat: UpdatePromptPromptsResponseFormat,
2693
+ export function updatePromptResponseFormatToJSON(
2694
+ updatePromptResponseFormat: UpdatePromptResponseFormat,
2757
2695
  ): string {
2758
2696
  return JSON.stringify(
2759
- UpdatePromptPromptsResponseFormat$outboundSchema.parse(
2760
- updatePromptPromptsResponseFormat,
2761
- ),
2697
+ UpdatePromptResponseFormat$outboundSchema.parse(updatePromptResponseFormat),
2762
2698
  );
2763
2699
  }
2764
2700
 
2765
- export function updatePromptPromptsResponseFormatFromJSON(
2701
+ export function updatePromptResponseFormatFromJSON(
2766
2702
  jsonString: string,
2767
- ): SafeParseResult<UpdatePromptPromptsResponseFormat, SDKValidationError> {
2703
+ ): SafeParseResult<UpdatePromptResponseFormat, SDKValidationError> {
2768
2704
  return safeParse(
2769
2705
  jsonString,
2770
- (x) => UpdatePromptPromptsResponseFormat$inboundSchema.parse(JSON.parse(x)),
2771
- `Failed to parse 'UpdatePromptPromptsResponseFormat' from JSON`,
2706
+ (x) => UpdatePromptResponseFormat$inboundSchema.parse(JSON.parse(x)),
2707
+ `Failed to parse 'UpdatePromptResponseFormat' from JSON`,
2772
2708
  );
2773
2709
  }
2774
2710
 
2775
2711
  /** @internal */
2776
- export const UpdatePromptPromptsPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
2777
- typeof UpdatePromptPromptsPhotoRealVersion
2778
- > = z.nativeEnum(UpdatePromptPromptsPhotoRealVersion);
2712
+ export const UpdatePromptPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
2713
+ typeof UpdatePromptPhotoRealVersion
2714
+ > = z.nativeEnum(UpdatePromptPhotoRealVersion);
2779
2715
 
2780
2716
  /** @internal */
2781
- export const UpdatePromptPromptsPhotoRealVersion$outboundSchema:
2782
- z.ZodNativeEnum<typeof UpdatePromptPromptsPhotoRealVersion> =
2783
- UpdatePromptPromptsPhotoRealVersion$inboundSchema;
2717
+ export const UpdatePromptPhotoRealVersion$outboundSchema: z.ZodNativeEnum<
2718
+ typeof UpdatePromptPhotoRealVersion
2719
+ > = UpdatePromptPhotoRealVersion$inboundSchema;
2784
2720
 
2785
2721
  /**
2786
2722
  * @internal
2787
2723
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2788
2724
  */
2789
- export namespace UpdatePromptPromptsPhotoRealVersion$ {
2790
- /** @deprecated use `UpdatePromptPromptsPhotoRealVersion$inboundSchema` instead. */
2791
- export const inboundSchema =
2792
- UpdatePromptPromptsPhotoRealVersion$inboundSchema;
2793
- /** @deprecated use `UpdatePromptPromptsPhotoRealVersion$outboundSchema` instead. */
2794
- export const outboundSchema =
2795
- UpdatePromptPromptsPhotoRealVersion$outboundSchema;
2725
+ export namespace UpdatePromptPhotoRealVersion$ {
2726
+ /** @deprecated use `UpdatePromptPhotoRealVersion$inboundSchema` instead. */
2727
+ export const inboundSchema = UpdatePromptPhotoRealVersion$inboundSchema;
2728
+ /** @deprecated use `UpdatePromptPhotoRealVersion$outboundSchema` instead. */
2729
+ export const outboundSchema = UpdatePromptPhotoRealVersion$outboundSchema;
2796
2730
  }
2797
2731
 
2798
2732
  /** @internal */
2799
- export const UpdatePromptPromptsEncodingFormat$inboundSchema: z.ZodNativeEnum<
2800
- typeof UpdatePromptPromptsEncodingFormat
2801
- > = z.nativeEnum(UpdatePromptPromptsEncodingFormat);
2733
+ export const UpdatePromptEncodingFormat$inboundSchema: z.ZodNativeEnum<
2734
+ typeof UpdatePromptEncodingFormat
2735
+ > = z.nativeEnum(UpdatePromptEncodingFormat);
2802
2736
 
2803
2737
  /** @internal */
2804
- export const UpdatePromptPromptsEncodingFormat$outboundSchema: z.ZodNativeEnum<
2805
- typeof UpdatePromptPromptsEncodingFormat
2806
- > = UpdatePromptPromptsEncodingFormat$inboundSchema;
2738
+ export const UpdatePromptEncodingFormat$outboundSchema: z.ZodNativeEnum<
2739
+ typeof UpdatePromptEncodingFormat
2740
+ > = UpdatePromptEncodingFormat$inboundSchema;
2807
2741
 
2808
2742
  /**
2809
2743
  * @internal
2810
2744
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2811
2745
  */
2812
- export namespace UpdatePromptPromptsEncodingFormat$ {
2813
- /** @deprecated use `UpdatePromptPromptsEncodingFormat$inboundSchema` instead. */
2814
- export const inboundSchema = UpdatePromptPromptsEncodingFormat$inboundSchema;
2815
- /** @deprecated use `UpdatePromptPromptsEncodingFormat$outboundSchema` instead. */
2816
- export const outboundSchema =
2817
- UpdatePromptPromptsEncodingFormat$outboundSchema;
2746
+ export namespace UpdatePromptEncodingFormat$ {
2747
+ /** @deprecated use `UpdatePromptEncodingFormat$inboundSchema` instead. */
2748
+ export const inboundSchema = UpdatePromptEncodingFormat$inboundSchema;
2749
+ /** @deprecated use `UpdatePromptEncodingFormat$outboundSchema` instead. */
2750
+ export const outboundSchema = UpdatePromptEncodingFormat$outboundSchema;
2818
2751
  }
2819
2752
 
2820
2753
  /** @internal */
2821
- export const UpdatePromptPromptsReasoningEffort$inboundSchema: z.ZodNativeEnum<
2822
- typeof UpdatePromptPromptsReasoningEffort
2823
- > = z.nativeEnum(UpdatePromptPromptsReasoningEffort);
2754
+ export const UpdatePromptReasoningEffort$inboundSchema: z.ZodNativeEnum<
2755
+ typeof UpdatePromptReasoningEffort
2756
+ > = z.nativeEnum(UpdatePromptReasoningEffort);
2824
2757
 
2825
2758
  /** @internal */
2826
- export const UpdatePromptPromptsReasoningEffort$outboundSchema: z.ZodNativeEnum<
2827
- typeof UpdatePromptPromptsReasoningEffort
2828
- > = UpdatePromptPromptsReasoningEffort$inboundSchema;
2759
+ export const UpdatePromptReasoningEffort$outboundSchema: z.ZodNativeEnum<
2760
+ typeof UpdatePromptReasoningEffort
2761
+ > = UpdatePromptReasoningEffort$inboundSchema;
2829
2762
 
2830
2763
  /**
2831
2764
  * @internal
2832
2765
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2833
2766
  */
2834
- export namespace UpdatePromptPromptsReasoningEffort$ {
2835
- /** @deprecated use `UpdatePromptPromptsReasoningEffort$inboundSchema` instead. */
2836
- export const inboundSchema = UpdatePromptPromptsReasoningEffort$inboundSchema;
2837
- /** @deprecated use `UpdatePromptPromptsReasoningEffort$outboundSchema` instead. */
2838
- export const outboundSchema =
2839
- UpdatePromptPromptsReasoningEffort$outboundSchema;
2767
+ export namespace UpdatePromptReasoningEffort$ {
2768
+ /** @deprecated use `UpdatePromptReasoningEffort$inboundSchema` instead. */
2769
+ export const inboundSchema = UpdatePromptReasoningEffort$inboundSchema;
2770
+ /** @deprecated use `UpdatePromptReasoningEffort$outboundSchema` instead. */
2771
+ export const outboundSchema = UpdatePromptReasoningEffort$outboundSchema;
2840
2772
  }
2841
2773
 
2842
2774
  /** @internal */
2843
- export const UpdatePromptPromptsModelParameters$inboundSchema: z.ZodType<
2844
- UpdatePromptPromptsModelParameters,
2775
+ export const UpdatePromptModelParameters$inboundSchema: z.ZodType<
2776
+ UpdatePromptModelParameters,
2845
2777
  z.ZodTypeDef,
2846
2778
  unknown
2847
2779
  > = z.object({
@@ -2853,20 +2785,20 @@ export const UpdatePromptPromptsModelParameters$inboundSchema: z.ZodType<
2853
2785
  presencePenalty: z.number().optional(),
2854
2786
  numImages: z.number().optional(),
2855
2787
  seed: z.number().optional(),
2856
- format: UpdatePromptPromptsFormat$inboundSchema.optional(),
2788
+ format: UpdatePromptFormat$inboundSchema.optional(),
2857
2789
  dimensions: z.string().optional(),
2858
- quality: UpdatePromptPromptsQuality$inboundSchema.optional(),
2790
+ quality: UpdatePromptQuality$inboundSchema.optional(),
2859
2791
  style: z.string().optional(),
2860
2792
  responseFormat: z.nullable(
2861
2793
  z.union([
2862
- z.lazy(() => UpdatePromptResponseFormatPrompts2$inboundSchema),
2863
- z.lazy(() => UpdatePromptResponseFormatPrompts1$inboundSchema),
2794
+ z.lazy(() => UpdatePromptResponseFormat2$inboundSchema),
2795
+ z.lazy(() => UpdatePromptResponseFormat1$inboundSchema),
2864
2796
  ]),
2865
2797
  ).optional(),
2866
- photoRealVersion: UpdatePromptPromptsPhotoRealVersion$inboundSchema
2867
- .optional(),
2868
- encoding_format: UpdatePromptPromptsEncodingFormat$inboundSchema.optional(),
2869
- reasoningEffort: UpdatePromptPromptsReasoningEffort$inboundSchema.optional(),
2798
+ photoRealVersion: UpdatePromptPhotoRealVersion$inboundSchema.optional(),
2799
+ encoding_format: UpdatePromptEncodingFormat$inboundSchema.optional(),
2800
+ reasoningEffort: UpdatePromptReasoningEffort$inboundSchema.optional(),
2801
+ budgetTokens: z.number().optional(),
2870
2802
  }).transform((v) => {
2871
2803
  return remap$(v, {
2872
2804
  "encoding_format": "encodingFormat",
@@ -2874,7 +2806,7 @@ export const UpdatePromptPromptsModelParameters$inboundSchema: z.ZodType<
2874
2806
  });
2875
2807
 
2876
2808
  /** @internal */
2877
- export type UpdatePromptPromptsModelParameters$Outbound = {
2809
+ export type UpdatePromptModelParameters$Outbound = {
2878
2810
  temperature?: number | undefined;
2879
2811
  maxTokens?: number | undefined;
2880
2812
  topK?: number | undefined;
@@ -2888,20 +2820,21 @@ export type UpdatePromptPromptsModelParameters$Outbound = {
2888
2820
  quality?: string | undefined;
2889
2821
  style?: string | undefined;
2890
2822
  responseFormat?:
2891
- | UpdatePromptResponseFormatPrompts2$Outbound
2892
- | UpdatePromptResponseFormatPrompts1$Outbound
2823
+ | UpdatePromptResponseFormat2$Outbound
2824
+ | UpdatePromptResponseFormat1$Outbound
2893
2825
  | null
2894
2826
  | undefined;
2895
2827
  photoRealVersion?: string | undefined;
2896
2828
  encoding_format?: string | undefined;
2897
2829
  reasoningEffort?: string | undefined;
2830
+ budgetTokens?: number | undefined;
2898
2831
  };
2899
2832
 
2900
2833
  /** @internal */
2901
- export const UpdatePromptPromptsModelParameters$outboundSchema: z.ZodType<
2902
- UpdatePromptPromptsModelParameters$Outbound,
2834
+ export const UpdatePromptModelParameters$outboundSchema: z.ZodType<
2835
+ UpdatePromptModelParameters$Outbound,
2903
2836
  z.ZodTypeDef,
2904
- UpdatePromptPromptsModelParameters
2837
+ UpdatePromptModelParameters
2905
2838
  > = z.object({
2906
2839
  temperature: z.number().optional(),
2907
2840
  maxTokens: z.number().optional(),
@@ -2911,20 +2844,20 @@ export const UpdatePromptPromptsModelParameters$outboundSchema: z.ZodType<
2911
2844
  presencePenalty: z.number().optional(),
2912
2845
  numImages: z.number().optional(),
2913
2846
  seed: z.number().optional(),
2914
- format: UpdatePromptPromptsFormat$outboundSchema.optional(),
2847
+ format: UpdatePromptFormat$outboundSchema.optional(),
2915
2848
  dimensions: z.string().optional(),
2916
- quality: UpdatePromptPromptsQuality$outboundSchema.optional(),
2849
+ quality: UpdatePromptQuality$outboundSchema.optional(),
2917
2850
  style: z.string().optional(),
2918
2851
  responseFormat: z.nullable(
2919
2852
  z.union([
2920
- z.lazy(() => UpdatePromptResponseFormatPrompts2$outboundSchema),
2921
- z.lazy(() => UpdatePromptResponseFormatPrompts1$outboundSchema),
2853
+ z.lazy(() => UpdatePromptResponseFormat2$outboundSchema),
2854
+ z.lazy(() => UpdatePromptResponseFormat1$outboundSchema),
2922
2855
  ]),
2923
2856
  ).optional(),
2924
- photoRealVersion: UpdatePromptPromptsPhotoRealVersion$outboundSchema
2925
- .optional(),
2926
- encodingFormat: UpdatePromptPromptsEncodingFormat$outboundSchema.optional(),
2927
- reasoningEffort: UpdatePromptPromptsReasoningEffort$outboundSchema.optional(),
2857
+ photoRealVersion: UpdatePromptPhotoRealVersion$outboundSchema.optional(),
2858
+ encodingFormat: UpdatePromptEncodingFormat$outboundSchema.optional(),
2859
+ reasoningEffort: UpdatePromptReasoningEffort$outboundSchema.optional(),
2860
+ budgetTokens: z.number().optional(),
2928
2861
  }).transform((v) => {
2929
2862
  return remap$(v, {
2930
2863
  encodingFormat: "encoding_format",
@@ -2935,56 +2868,54 @@ export const UpdatePromptPromptsModelParameters$outboundSchema: z.ZodType<
2935
2868
  * @internal
2936
2869
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2937
2870
  */
2938
- export namespace UpdatePromptPromptsModelParameters$ {
2939
- /** @deprecated use `UpdatePromptPromptsModelParameters$inboundSchema` instead. */
2940
- export const inboundSchema = UpdatePromptPromptsModelParameters$inboundSchema;
2941
- /** @deprecated use `UpdatePromptPromptsModelParameters$outboundSchema` instead. */
2942
- export const outboundSchema =
2943
- UpdatePromptPromptsModelParameters$outboundSchema;
2944
- /** @deprecated use `UpdatePromptPromptsModelParameters$Outbound` instead. */
2945
- export type Outbound = UpdatePromptPromptsModelParameters$Outbound;
2871
+ export namespace UpdatePromptModelParameters$ {
2872
+ /** @deprecated use `UpdatePromptModelParameters$inboundSchema` instead. */
2873
+ export const inboundSchema = UpdatePromptModelParameters$inboundSchema;
2874
+ /** @deprecated use `UpdatePromptModelParameters$outboundSchema` instead. */
2875
+ export const outboundSchema = UpdatePromptModelParameters$outboundSchema;
2876
+ /** @deprecated use `UpdatePromptModelParameters$Outbound` instead. */
2877
+ export type Outbound = UpdatePromptModelParameters$Outbound;
2946
2878
  }
2947
2879
 
2948
- export function updatePromptPromptsModelParametersToJSON(
2949
- updatePromptPromptsModelParameters: UpdatePromptPromptsModelParameters,
2880
+ export function updatePromptModelParametersToJSON(
2881
+ updatePromptModelParameters: UpdatePromptModelParameters,
2950
2882
  ): string {
2951
2883
  return JSON.stringify(
2952
- UpdatePromptPromptsModelParameters$outboundSchema.parse(
2953
- updatePromptPromptsModelParameters,
2884
+ UpdatePromptModelParameters$outboundSchema.parse(
2885
+ updatePromptModelParameters,
2954
2886
  ),
2955
2887
  );
2956
2888
  }
2957
2889
 
2958
- export function updatePromptPromptsModelParametersFromJSON(
2890
+ export function updatePromptModelParametersFromJSON(
2959
2891
  jsonString: string,
2960
- ): SafeParseResult<UpdatePromptPromptsModelParameters, SDKValidationError> {
2892
+ ): SafeParseResult<UpdatePromptModelParameters, SDKValidationError> {
2961
2893
  return safeParse(
2962
2894
  jsonString,
2963
- (x) =>
2964
- UpdatePromptPromptsModelParameters$inboundSchema.parse(JSON.parse(x)),
2965
- `Failed to parse 'UpdatePromptPromptsModelParameters' from JSON`,
2895
+ (x) => UpdatePromptModelParameters$inboundSchema.parse(JSON.parse(x)),
2896
+ `Failed to parse 'UpdatePromptModelParameters' from JSON`,
2966
2897
  );
2967
2898
  }
2968
2899
 
2969
2900
  /** @internal */
2970
- export const UpdatePromptPromptsProvider$inboundSchema: z.ZodNativeEnum<
2971
- typeof UpdatePromptPromptsProvider
2972
- > = z.nativeEnum(UpdatePromptPromptsProvider);
2901
+ export const UpdatePromptProvider$inboundSchema: z.ZodNativeEnum<
2902
+ typeof UpdatePromptProvider
2903
+ > = z.nativeEnum(UpdatePromptProvider);
2973
2904
 
2974
2905
  /** @internal */
2975
- export const UpdatePromptPromptsProvider$outboundSchema: z.ZodNativeEnum<
2976
- typeof UpdatePromptPromptsProvider
2977
- > = UpdatePromptPromptsProvider$inboundSchema;
2906
+ export const UpdatePromptProvider$outboundSchema: z.ZodNativeEnum<
2907
+ typeof UpdatePromptProvider
2908
+ > = UpdatePromptProvider$inboundSchema;
2978
2909
 
2979
2910
  /**
2980
2911
  * @internal
2981
2912
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2982
2913
  */
2983
- export namespace UpdatePromptPromptsProvider$ {
2984
- /** @deprecated use `UpdatePromptPromptsProvider$inboundSchema` instead. */
2985
- export const inboundSchema = UpdatePromptPromptsProvider$inboundSchema;
2986
- /** @deprecated use `UpdatePromptPromptsProvider$outboundSchema` instead. */
2987
- export const outboundSchema = UpdatePromptPromptsProvider$outboundSchema;
2914
+ export namespace UpdatePromptProvider$ {
2915
+ /** @deprecated use `UpdatePromptProvider$inboundSchema` instead. */
2916
+ export const inboundSchema = UpdatePromptProvider$inboundSchema;
2917
+ /** @deprecated use `UpdatePromptProvider$outboundSchema` instead. */
2918
+ export const outboundSchema = UpdatePromptProvider$outboundSchema;
2988
2919
  }
2989
2920
 
2990
2921
  /** @internal */
@@ -3588,19 +3519,18 @@ export function updatePromptPromptsMessagesFromJSON(
3588
3519
  }
3589
3520
 
3590
3521
  /** @internal */
3591
- export const UpdatePromptPromptsPromptConfig$inboundSchema: z.ZodType<
3592
- UpdatePromptPromptsPromptConfig,
3522
+ export const UpdatePromptPromptConfig$inboundSchema: z.ZodType<
3523
+ UpdatePromptPromptConfig,
3593
3524
  z.ZodTypeDef,
3594
3525
  unknown
3595
3526
  > = z.object({
3596
3527
  stream: z.boolean().optional(),
3597
3528
  model: z.string().optional(),
3598
3529
  model_db_id: z.string().optional(),
3599
- model_type: UpdatePromptPromptsModelType$inboundSchema.optional(),
3600
- model_parameters: z.lazy(() =>
3601
- UpdatePromptPromptsModelParameters$inboundSchema
3602
- ).optional(),
3603
- provider: UpdatePromptPromptsProvider$inboundSchema.optional(),
3530
+ model_type: UpdatePromptModelType$inboundSchema.optional(),
3531
+ model_parameters: z.lazy(() => UpdatePromptModelParameters$inboundSchema)
3532
+ .optional(),
3533
+ provider: UpdatePromptProvider$inboundSchema.optional(),
3604
3534
  integration_id: z.nullable(z.string()).optional(),
3605
3535
  version: z.string().optional(),
3606
3536
  messages: z.array(z.lazy(() => UpdatePromptPromptsMessages$inboundSchema)),
@@ -3614,12 +3544,12 @@ export const UpdatePromptPromptsPromptConfig$inboundSchema: z.ZodType<
3614
3544
  });
3615
3545
 
3616
3546
  /** @internal */
3617
- export type UpdatePromptPromptsPromptConfig$Outbound = {
3547
+ export type UpdatePromptPromptConfig$Outbound = {
3618
3548
  stream?: boolean | undefined;
3619
3549
  model?: string | undefined;
3620
3550
  model_db_id?: string | undefined;
3621
3551
  model_type?: string | undefined;
3622
- model_parameters?: UpdatePromptPromptsModelParameters$Outbound | undefined;
3552
+ model_parameters?: UpdatePromptModelParameters$Outbound | undefined;
3623
3553
  provider?: string | undefined;
3624
3554
  integration_id?: string | null | undefined;
3625
3555
  version?: string | undefined;
@@ -3627,19 +3557,18 @@ export type UpdatePromptPromptsPromptConfig$Outbound = {
3627
3557
  };
3628
3558
 
3629
3559
  /** @internal */
3630
- export const UpdatePromptPromptsPromptConfig$outboundSchema: z.ZodType<
3631
- UpdatePromptPromptsPromptConfig$Outbound,
3560
+ export const UpdatePromptPromptConfig$outboundSchema: z.ZodType<
3561
+ UpdatePromptPromptConfig$Outbound,
3632
3562
  z.ZodTypeDef,
3633
- UpdatePromptPromptsPromptConfig
3563
+ UpdatePromptPromptConfig
3634
3564
  > = z.object({
3635
3565
  stream: z.boolean().optional(),
3636
3566
  model: z.string().optional(),
3637
3567
  modelDbId: z.string().optional(),
3638
- modelType: UpdatePromptPromptsModelType$outboundSchema.optional(),
3639
- modelParameters: z.lazy(() =>
3640
- UpdatePromptPromptsModelParameters$outboundSchema
3641
- ).optional(),
3642
- provider: UpdatePromptPromptsProvider$outboundSchema.optional(),
3568
+ modelType: UpdatePromptModelType$outboundSchema.optional(),
3569
+ modelParameters: z.lazy(() => UpdatePromptModelParameters$outboundSchema)
3570
+ .optional(),
3571
+ provider: UpdatePromptProvider$outboundSchema.optional(),
3643
3572
  integrationId: z.nullable(z.string()).optional(),
3644
3573
  version: z.string().optional(),
3645
3574
  messages: z.array(z.lazy(() => UpdatePromptPromptsMessages$outboundSchema)),
@@ -3656,75 +3585,73 @@ export const UpdatePromptPromptsPromptConfig$outboundSchema: z.ZodType<
3656
3585
  * @internal
3657
3586
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3658
3587
  */
3659
- export namespace UpdatePromptPromptsPromptConfig$ {
3660
- /** @deprecated use `UpdatePromptPromptsPromptConfig$inboundSchema` instead. */
3661
- export const inboundSchema = UpdatePromptPromptsPromptConfig$inboundSchema;
3662
- /** @deprecated use `UpdatePromptPromptsPromptConfig$outboundSchema` instead. */
3663
- export const outboundSchema = UpdatePromptPromptsPromptConfig$outboundSchema;
3664
- /** @deprecated use `UpdatePromptPromptsPromptConfig$Outbound` instead. */
3665
- export type Outbound = UpdatePromptPromptsPromptConfig$Outbound;
3588
+ export namespace UpdatePromptPromptConfig$ {
3589
+ /** @deprecated use `UpdatePromptPromptConfig$inboundSchema` instead. */
3590
+ export const inboundSchema = UpdatePromptPromptConfig$inboundSchema;
3591
+ /** @deprecated use `UpdatePromptPromptConfig$outboundSchema` instead. */
3592
+ export const outboundSchema = UpdatePromptPromptConfig$outboundSchema;
3593
+ /** @deprecated use `UpdatePromptPromptConfig$Outbound` instead. */
3594
+ export type Outbound = UpdatePromptPromptConfig$Outbound;
3666
3595
  }
3667
3596
 
3668
- export function updatePromptPromptsPromptConfigToJSON(
3669
- updatePromptPromptsPromptConfig: UpdatePromptPromptsPromptConfig,
3597
+ export function updatePromptPromptConfigToJSON(
3598
+ updatePromptPromptConfig: UpdatePromptPromptConfig,
3670
3599
  ): string {
3671
3600
  return JSON.stringify(
3672
- UpdatePromptPromptsPromptConfig$outboundSchema.parse(
3673
- updatePromptPromptsPromptConfig,
3674
- ),
3601
+ UpdatePromptPromptConfig$outboundSchema.parse(updatePromptPromptConfig),
3675
3602
  );
3676
3603
  }
3677
3604
 
3678
- export function updatePromptPromptsPromptConfigFromJSON(
3605
+ export function updatePromptPromptConfigFromJSON(
3679
3606
  jsonString: string,
3680
- ): SafeParseResult<UpdatePromptPromptsPromptConfig, SDKValidationError> {
3607
+ ): SafeParseResult<UpdatePromptPromptConfig, SDKValidationError> {
3681
3608
  return safeParse(
3682
3609
  jsonString,
3683
- (x) => UpdatePromptPromptsPromptConfig$inboundSchema.parse(JSON.parse(x)),
3684
- `Failed to parse 'UpdatePromptPromptsPromptConfig' from JSON`,
3610
+ (x) => UpdatePromptPromptConfig$inboundSchema.parse(JSON.parse(x)),
3611
+ `Failed to parse 'UpdatePromptPromptConfig' from JSON`,
3685
3612
  );
3686
3613
  }
3687
3614
 
3688
3615
  /** @internal */
3689
- export const UpdatePromptPromptsUseCases$inboundSchema: z.ZodNativeEnum<
3690
- typeof UpdatePromptPromptsUseCases
3691
- > = z.nativeEnum(UpdatePromptPromptsUseCases);
3616
+ export const UpdatePromptUseCases$inboundSchema: z.ZodNativeEnum<
3617
+ typeof UpdatePromptUseCases
3618
+ > = z.nativeEnum(UpdatePromptUseCases);
3692
3619
 
3693
3620
  /** @internal */
3694
- export const UpdatePromptPromptsUseCases$outboundSchema: z.ZodNativeEnum<
3695
- typeof UpdatePromptPromptsUseCases
3696
- > = UpdatePromptPromptsUseCases$inboundSchema;
3621
+ export const UpdatePromptUseCases$outboundSchema: z.ZodNativeEnum<
3622
+ typeof UpdatePromptUseCases
3623
+ > = UpdatePromptUseCases$inboundSchema;
3697
3624
 
3698
3625
  /**
3699
3626
  * @internal
3700
3627
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3701
3628
  */
3702
- export namespace UpdatePromptPromptsUseCases$ {
3703
- /** @deprecated use `UpdatePromptPromptsUseCases$inboundSchema` instead. */
3704
- export const inboundSchema = UpdatePromptPromptsUseCases$inboundSchema;
3705
- /** @deprecated use `UpdatePromptPromptsUseCases$outboundSchema` instead. */
3706
- export const outboundSchema = UpdatePromptPromptsUseCases$outboundSchema;
3629
+ export namespace UpdatePromptUseCases$ {
3630
+ /** @deprecated use `UpdatePromptUseCases$inboundSchema` instead. */
3631
+ export const inboundSchema = UpdatePromptUseCases$inboundSchema;
3632
+ /** @deprecated use `UpdatePromptUseCases$outboundSchema` instead. */
3633
+ export const outboundSchema = UpdatePromptUseCases$outboundSchema;
3707
3634
  }
3708
3635
 
3709
3636
  /** @internal */
3710
- export const UpdatePromptPromptsLanguage$inboundSchema: z.ZodNativeEnum<
3711
- typeof UpdatePromptPromptsLanguage
3712
- > = z.nativeEnum(UpdatePromptPromptsLanguage);
3637
+ export const UpdatePromptLanguage$inboundSchema: z.ZodNativeEnum<
3638
+ typeof UpdatePromptLanguage
3639
+ > = z.nativeEnum(UpdatePromptLanguage);
3713
3640
 
3714
3641
  /** @internal */
3715
- export const UpdatePromptPromptsLanguage$outboundSchema: z.ZodNativeEnum<
3716
- typeof UpdatePromptPromptsLanguage
3717
- > = UpdatePromptPromptsLanguage$inboundSchema;
3642
+ export const UpdatePromptLanguage$outboundSchema: z.ZodNativeEnum<
3643
+ typeof UpdatePromptLanguage
3644
+ > = UpdatePromptLanguage$inboundSchema;
3718
3645
 
3719
3646
  /**
3720
3647
  * @internal
3721
3648
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3722
3649
  */
3723
- export namespace UpdatePromptPromptsLanguage$ {
3724
- /** @deprecated use `UpdatePromptPromptsLanguage$inboundSchema` instead. */
3725
- export const inboundSchema = UpdatePromptPromptsLanguage$inboundSchema;
3726
- /** @deprecated use `UpdatePromptPromptsLanguage$outboundSchema` instead. */
3727
- export const outboundSchema = UpdatePromptPromptsLanguage$outboundSchema;
3650
+ export namespace UpdatePromptLanguage$ {
3651
+ /** @deprecated use `UpdatePromptLanguage$inboundSchema` instead. */
3652
+ export const inboundSchema = UpdatePromptLanguage$inboundSchema;
3653
+ /** @deprecated use `UpdatePromptLanguage$outboundSchema` instead. */
3654
+ export const outboundSchema = UpdatePromptLanguage$outboundSchema;
3728
3655
  }
3729
3656
 
3730
3657
  /** @internal */
@@ -3733,8 +3660,8 @@ export const UpdatePromptPromptsMetadata$inboundSchema: z.ZodType<
3733
3660
  z.ZodTypeDef,
3734
3661
  unknown
3735
3662
  > = z.object({
3736
- use_cases: z.array(UpdatePromptPromptsUseCases$inboundSchema).optional(),
3737
- language: UpdatePromptPromptsLanguage$inboundSchema.optional(),
3663
+ use_cases: z.array(UpdatePromptUseCases$inboundSchema).optional(),
3664
+ language: UpdatePromptLanguage$inboundSchema.optional(),
3738
3665
  }).transform((v) => {
3739
3666
  return remap$(v, {
3740
3667
  "use_cases": "useCases",
@@ -3753,8 +3680,8 @@ export const UpdatePromptPromptsMetadata$outboundSchema: z.ZodType<
3753
3680
  z.ZodTypeDef,
3754
3681
  UpdatePromptPromptsMetadata
3755
3682
  > = z.object({
3756
- useCases: z.array(UpdatePromptPromptsUseCases$outboundSchema).optional(),
3757
- language: UpdatePromptPromptsLanguage$outboundSchema.optional(),
3683
+ useCases: z.array(UpdatePromptUseCases$outboundSchema).optional(),
3684
+ language: UpdatePromptLanguage$outboundSchema.optional(),
3758
3685
  }).transform((v) => {
3759
3686
  return remap$(v, {
3760
3687
  useCases: "use_cases",
@@ -3810,7 +3737,7 @@ export const UpdatePromptResponseBody$inboundSchema: z.ZodType<
3810
3737
  updated_by_id: z.string().optional(),
3811
3738
  display_name: z.string(),
3812
3739
  description: z.nullable(z.string()).optional(),
3813
- prompt_config: z.lazy(() => UpdatePromptPromptsPromptConfig$inboundSchema),
3740
+ prompt_config: z.lazy(() => UpdatePromptPromptConfig$inboundSchema),
3814
3741
  metadata: z.lazy(() => UpdatePromptPromptsMetadata$inboundSchema).optional(),
3815
3742
  }).transform((v) => {
3816
3743
  return remap$(v, {
@@ -3835,7 +3762,7 @@ export type UpdatePromptResponseBody$Outbound = {
3835
3762
  updated_by_id?: string | undefined;
3836
3763
  display_name: string;
3837
3764
  description?: string | null | undefined;
3838
- prompt_config: UpdatePromptPromptsPromptConfig$Outbound;
3765
+ prompt_config: UpdatePromptPromptConfig$Outbound;
3839
3766
  metadata?: UpdatePromptPromptsMetadata$Outbound | undefined;
3840
3767
  };
3841
3768
 
@@ -3855,7 +3782,7 @@ export const UpdatePromptResponseBody$outboundSchema: z.ZodType<
3855
3782
  updatedById: z.string().optional(),
3856
3783
  displayName: z.string(),
3857
3784
  description: z.nullable(z.string()).optional(),
3858
- promptConfig: z.lazy(() => UpdatePromptPromptsPromptConfig$outboundSchema),
3785
+ promptConfig: z.lazy(() => UpdatePromptPromptConfig$outboundSchema),
3859
3786
  metadata: z.lazy(() => UpdatePromptPromptsMetadata$outboundSchema).optional(),
3860
3787
  }).transform((v) => {
3861
3788
  return remap$(v, {