@orq-ai/node 3.8.0-rc.9 → 3.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (675) hide show
  1. package/FUNCTIONS.md +19 -3
  2. package/README.md +165 -91
  3. package/bin/mcp-server.js +930 -2272
  4. package/bin/mcp-server.js.map +67 -73
  5. package/docs/sdks/contacts/README.md +30 -2
  6. package/docs/sdks/knowledge/README.md +1 -1
  7. package/docs/sdks/orq/README.md +0 -138
  8. package/funcs/filesCreate.d.ts.map +1 -1
  9. package/funcs/filesCreate.js +7 -3
  10. package/funcs/filesCreate.js.map +1 -1
  11. package/funcs/knowledgeCreateChunks.d.ts +1 -1
  12. package/funcs/knowledgeCreateChunks.d.ts.map +1 -1
  13. package/funcs/knowledgeCreateChunks.js +1 -1
  14. package/funcs/knowledgeCreateChunks.js.map +1 -1
  15. package/jsr.json +1 -1
  16. package/lib/config.d.ts +3 -3
  17. package/lib/config.js +3 -3
  18. package/lib/config.js.map +1 -1
  19. package/lib/files.d.ts +5 -0
  20. package/lib/files.d.ts.map +1 -1
  21. package/lib/files.js +41 -0
  22. package/lib/files.js.map +1 -1
  23. package/lib/security.d.ts +2 -2
  24. package/lib/security.d.ts.map +1 -1
  25. package/mcp-server/mcp-server.js +1 -1
  26. package/mcp-server/mcp-server.js.map +1 -1
  27. package/mcp-server/server.d.ts.map +1 -1
  28. package/mcp-server/server.js +1 -5
  29. package/mcp-server/server.js.map +1 -1
  30. package/models/components/deployments.d.ts +12 -12
  31. package/models/components/deployments.d.ts.map +1 -1
  32. package/models/components/deployments.js +12 -12
  33. package/models/components/deployments.js.map +1 -1
  34. package/models/operations/createchunk.d.ts +28 -28
  35. package/models/operations/createchunk.d.ts.map +1 -1
  36. package/models/operations/createchunk.js +33 -35
  37. package/models/operations/createchunk.js.map +1 -1
  38. package/models/operations/createcontact.js +2 -2
  39. package/models/operations/createdataset.js +2 -2
  40. package/models/operations/createdatasetitem.d.ts +12 -12
  41. package/models/operations/createdatasetitem.d.ts.map +1 -1
  42. package/models/operations/createdatasetitem.js +14 -14
  43. package/models/operations/createdatasetitem.js.map +1 -1
  44. package/models/operations/createdatasource.js +2 -2
  45. package/models/operations/createeval.d.ts +36 -36
  46. package/models/operations/createeval.d.ts.map +1 -1
  47. package/models/operations/createeval.js +56 -56
  48. package/models/operations/createeval.js.map +1 -1
  49. package/models/operations/createfeedback.d.ts +8 -8
  50. package/models/operations/createfeedback.d.ts.map +1 -1
  51. package/models/operations/createfeedback.js +8 -8
  52. package/models/operations/createfeedback.js.map +1 -1
  53. package/models/operations/createprompt.d.ts +18 -18
  54. package/models/operations/createprompt.d.ts.map +1 -1
  55. package/models/operations/createprompt.js +18 -18
  56. package/models/operations/createprompt.js.map +1 -1
  57. package/models/operations/deploymentcreatemetric.d.ts +12 -12
  58. package/models/operations/deploymentcreatemetric.d.ts.map +1 -1
  59. package/models/operations/deploymentcreatemetric.js +12 -12
  60. package/models/operations/deploymentcreatemetric.js.map +1 -1
  61. package/models/operations/deploymentgetconfig.d.ts +33 -33
  62. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  63. package/models/operations/deploymentgetconfig.js +36 -36
  64. package/models/operations/deploymentgetconfig.js.map +1 -1
  65. package/models/operations/deploymentinvoke.d.ts +4 -4
  66. package/models/operations/deploymentinvoke.js +8 -8
  67. package/models/operations/deployments.d.ts +6 -6
  68. package/models/operations/deployments.d.ts.map +1 -1
  69. package/models/operations/deployments.js +6 -6
  70. package/models/operations/deployments.js.map +1 -1
  71. package/models/operations/deploymentstream.d.ts +16 -16
  72. package/models/operations/deploymentstream.d.ts.map +1 -1
  73. package/models/operations/deploymentstream.js +16 -16
  74. package/models/operations/deploymentstream.js.map +1 -1
  75. package/models/operations/evalsageappropriate.d.ts +2 -2
  76. package/models/operations/evalsageappropriate.js +2 -2
  77. package/models/operations/evalsfactcheckingknowledgebase.d.ts +2 -2
  78. package/models/operations/evalsfactcheckingknowledgebase.js +2 -2
  79. package/models/operations/evalsgrammar.d.ts +2 -2
  80. package/models/operations/evalsgrammar.js +2 -2
  81. package/models/operations/evalslocalization.d.ts +2 -2
  82. package/models/operations/evalslocalization.js +2 -2
  83. package/models/operations/evalspii.d.ts +2 -2
  84. package/models/operations/evalspii.js +2 -2
  85. package/models/operations/evalsragascoherence.d.ts +2 -2
  86. package/models/operations/evalsragascoherence.js +2 -2
  87. package/models/operations/evalsragasconciseness.d.ts +2 -2
  88. package/models/operations/evalsragasconciseness.js +2 -2
  89. package/models/operations/evalsragascontextprecision.d.ts +2 -2
  90. package/models/operations/evalsragascontextprecision.js +2 -2
  91. package/models/operations/evalsragascorrectness.d.ts +2 -2
  92. package/models/operations/evalsragascorrectness.js +2 -2
  93. package/models/operations/evalsragasfaithfulness.d.ts +2 -2
  94. package/models/operations/evalsragasfaithfulness.js +2 -2
  95. package/models/operations/evalsragasharmfulness.d.ts +2 -2
  96. package/models/operations/evalsragasharmfulness.js +2 -2
  97. package/models/operations/evalsragasmaliciousness.d.ts +2 -2
  98. package/models/operations/evalsragasmaliciousness.js +2 -2
  99. package/models/operations/evalsragasresponserelevancy.d.ts +2 -2
  100. package/models/operations/evalsragasresponserelevancy.js +2 -2
  101. package/models/operations/evalssentimentclassification.d.ts +2 -2
  102. package/models/operations/evalssentimentclassification.js +2 -2
  103. package/models/operations/evalssummarization.d.ts +2 -2
  104. package/models/operations/evalssummarization.js +2 -2
  105. package/models/operations/evalstoneofvoice.d.ts +2 -2
  106. package/models/operations/evalstoneofvoice.js +2 -2
  107. package/models/operations/evalstranslation.d.ts +2 -2
  108. package/models/operations/evalstranslation.js +2 -2
  109. package/models/operations/fileget.js +2 -2
  110. package/models/operations/filelist.js +2 -2
  111. package/models/operations/fileupload.js +2 -2
  112. package/models/operations/getallprompts.d.ts +10 -10
  113. package/models/operations/getallprompts.d.ts.map +1 -1
  114. package/models/operations/getallprompts.js +10 -10
  115. package/models/operations/getallprompts.js.map +1 -1
  116. package/models/operations/getevals.d.ts +88 -88
  117. package/models/operations/getevals.d.ts.map +1 -1
  118. package/models/operations/getevals.js +187 -182
  119. package/models/operations/getevals.js.map +1 -1
  120. package/models/operations/getoneprompt.d.ts +10 -10
  121. package/models/operations/getoneprompt.d.ts.map +1 -1
  122. package/models/operations/getoneprompt.js +10 -10
  123. package/models/operations/getoneprompt.js.map +1 -1
  124. package/models/operations/getpromptversion.d.ts +10 -10
  125. package/models/operations/getpromptversion.d.ts.map +1 -1
  126. package/models/operations/getpromptversion.js +10 -10
  127. package/models/operations/getpromptversion.js.map +1 -1
  128. package/models/operations/index.d.ts +0 -2
  129. package/models/operations/index.d.ts.map +1 -1
  130. package/models/operations/index.js +0 -2
  131. package/models/operations/index.js.map +1 -1
  132. package/models/operations/invokeeval.d.ts +108 -108
  133. package/models/operations/invokeeval.d.ts.map +1 -1
  134. package/models/operations/invokeeval.js +141 -144
  135. package/models/operations/invokeeval.js.map +1 -1
  136. package/models/operations/listcontacts.js +2 -2
  137. package/models/operations/listdatasetdatapoints.d.ts +6 -6
  138. package/models/operations/listdatasetdatapoints.d.ts.map +1 -1
  139. package/models/operations/listdatasetdatapoints.js +8 -8
  140. package/models/operations/listdatasetdatapoints.js.map +1 -1
  141. package/models/operations/listdatasets.js +2 -2
  142. package/models/operations/listdatasources.js +2 -2
  143. package/models/operations/listpromptversions.d.ts +10 -10
  144. package/models/operations/listpromptversions.d.ts.map +1 -1
  145. package/models/operations/listpromptversions.js +10 -10
  146. package/models/operations/listpromptversions.js.map +1 -1
  147. package/models/operations/retrievecontact.js +2 -2
  148. package/models/operations/retrievedatapoint.d.ts +6 -6
  149. package/models/operations/retrievedatapoint.d.ts.map +1 -1
  150. package/models/operations/retrievedatapoint.js +8 -8
  151. package/models/operations/retrievedatapoint.js.map +1 -1
  152. package/models/operations/retrievedataset.js +2 -2
  153. package/models/operations/retrievedatasource.js +2 -2
  154. package/models/operations/updatecontact.js +2 -2
  155. package/models/operations/updatedatapoint.d.ts +12 -12
  156. package/models/operations/updatedatapoint.d.ts.map +1 -1
  157. package/models/operations/updatedatapoint.js +14 -14
  158. package/models/operations/updatedatapoint.js.map +1 -1
  159. package/models/operations/updatedataset.js +2 -2
  160. package/models/operations/updatedatasource.js +2 -2
  161. package/models/operations/updateeval.d.ts +38 -38
  162. package/models/operations/updateeval.d.ts.map +1 -1
  163. package/models/operations/updateeval.js +60 -60
  164. package/models/operations/updateeval.js.map +1 -1
  165. package/models/operations/updateprompt.d.ts +27 -86
  166. package/models/operations/updateprompt.d.ts.map +1 -1
  167. package/models/operations/updateprompt.js +39 -64
  168. package/models/operations/updateprompt.js.map +1 -1
  169. package/package.json +2 -3
  170. package/packages/orq-rc/FUNCTIONS.md +103 -0
  171. package/packages/orq-rc/README.md +947 -0
  172. package/packages/orq-rc/RUNTIMES.md +48 -0
  173. package/packages/orq-rc/docs/sdks/contacts/README.md +445 -0
  174. package/packages/orq-rc/docs/sdks/datasets/README.md +908 -0
  175. package/packages/orq-rc/docs/sdks/deployments/README.md +395 -0
  176. package/packages/orq-rc/docs/sdks/evals/README.md +2822 -0
  177. package/packages/orq-rc/docs/sdks/feedback/README.md +88 -0
  178. package/packages/orq-rc/docs/sdks/files/README.md +297 -0
  179. package/packages/orq-rc/docs/sdks/knowledge/README.md +1227 -0
  180. package/packages/orq-rc/docs/sdks/metrics/README.md +82 -0
  181. package/packages/orq-rc/docs/sdks/models/README.md +75 -0
  182. package/packages/orq-rc/docs/sdks/orq/README.md +10 -0
  183. package/packages/orq-rc/docs/sdks/prompts/README.md +550 -0
  184. package/packages/orq-rc/docs/sdks/remoteconfigs/README.md +76 -0
  185. package/packages/orq-rc/jsr.json +28 -0
  186. package/packages/orq-rc/package-lock.json +3217 -0
  187. package/packages/orq-rc/package.json +45 -0
  188. package/packages/orq-rc/src/core.ts +13 -0
  189. package/{src/funcs/postV2ModelsLitellmImport.ts → packages/orq-rc/src/funcs/contactsCreate.ts} +14 -16
  190. package/packages/orq-rc/src/funcs/contactsDelete.ts +176 -0
  191. package/packages/orq-rc/src/funcs/contactsList.ts +169 -0
  192. package/packages/orq-rc/src/funcs/contactsRetrieve.ts +175 -0
  193. package/packages/orq-rc/src/funcs/contactsUpdate.ts +176 -0
  194. package/packages/orq-rc/src/funcs/datasetsClear.ts +167 -0
  195. package/packages/orq-rc/src/funcs/datasetsCreate.ts +165 -0
  196. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +167 -0
  197. package/packages/orq-rc/src/funcs/datasetsCreateExperiment.ts +168 -0
  198. package/packages/orq-rc/src/funcs/datasetsDelete.ts +167 -0
  199. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +182 -0
  200. package/packages/orq-rc/src/funcs/datasetsList.ts +167 -0
  201. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +174 -0
  202. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +175 -0
  203. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +181 -0
  204. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +176 -0
  205. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +179 -0
  206. package/packages/orq-rc/src/funcs/deploymentsCreateExperiment.ts +173 -0
  207. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +168 -0
  208. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +176 -0
  209. package/packages/orq-rc/src/funcs/deploymentsList.ts +176 -0
  210. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +168 -0
  211. package/packages/orq-rc/src/funcs/deploymentsStream.ts +184 -0
  212. package/packages/orq-rc/src/funcs/evalsAgeAppropriate.ts +175 -0
  213. package/packages/orq-rc/src/funcs/evalsAll.ts +173 -0
  214. package/packages/orq-rc/src/funcs/evalsBertScore.ts +175 -0
  215. package/packages/orq-rc/src/funcs/evalsBleuScore.ts +175 -0
  216. package/packages/orq-rc/src/funcs/evalsBotDetection.ts +175 -0
  217. package/packages/orq-rc/src/funcs/evalsContains.ts +175 -0
  218. package/packages/orq-rc/src/funcs/evalsContainsAll.ts +175 -0
  219. package/packages/orq-rc/src/funcs/evalsContainsAny.ts +175 -0
  220. package/packages/orq-rc/src/funcs/evalsContainsEmail.ts +175 -0
  221. package/packages/orq-rc/src/funcs/evalsContainsNone.ts +175 -0
  222. package/packages/orq-rc/src/funcs/evalsContainsUrl.ts +175 -0
  223. package/packages/orq-rc/src/funcs/evalsContainsValidLink.ts +177 -0
  224. package/packages/orq-rc/src/funcs/evalsCreate.ts +169 -0
  225. package/packages/orq-rc/src/funcs/evalsDelete.ts +173 -0
  226. package/packages/orq-rc/src/funcs/evalsEndsWith.ts +175 -0
  227. package/packages/orq-rc/src/funcs/evalsExactMatch.ts +175 -0
  228. package/packages/orq-rc/src/funcs/evalsFactCheckingKnowledgeBase.ts +183 -0
  229. package/packages/orq-rc/src/funcs/evalsGrammar.ts +173 -0
  230. package/packages/orq-rc/src/funcs/evalsInvoke.ts +177 -0
  231. package/packages/orq-rc/src/funcs/evalsLengthBetween.ts +175 -0
  232. package/packages/orq-rc/src/funcs/evalsLengthGreaterThan.ts +177 -0
  233. package/packages/orq-rc/src/funcs/evalsLengthLessThan.ts +175 -0
  234. package/packages/orq-rc/src/funcs/evalsLocalization.ts +175 -0
  235. package/packages/orq-rc/src/funcs/evalsPii.ts +173 -0
  236. package/packages/orq-rc/src/funcs/evalsRagasCoherence.ts +175 -0
  237. package/packages/orq-rc/src/funcs/evalsRagasConciseness.ts +174 -0
  238. package/packages/orq-rc/src/funcs/evalsRagasContextPrecision.ts +180 -0
  239. package/packages/orq-rc/src/funcs/evalsRagasCorrectness.ts +174 -0
  240. package/packages/orq-rc/src/funcs/evalsRagasFaithfulness.ts +177 -0
  241. package/packages/orq-rc/src/funcs/evalsRagasHarmfulness.ts +174 -0
  242. package/packages/orq-rc/src/funcs/evalsRagasMaliciousness.ts +177 -0
  243. package/packages/orq-rc/src/funcs/evalsRagasResponseRelevancy.ts +183 -0
  244. package/packages/orq-rc/src/funcs/evalsRagasSummarization.ts +177 -0
  245. package/packages/orq-rc/src/funcs/evalsSentimentClassification.ts +183 -0
  246. package/packages/orq-rc/src/funcs/evalsSummarization.ts +175 -0
  247. package/packages/orq-rc/src/funcs/evalsToneOfVoice.ts +175 -0
  248. package/packages/orq-rc/src/funcs/evalsTranslation.ts +175 -0
  249. package/packages/orq-rc/src/funcs/evalsUpdate.ts +173 -0
  250. package/packages/orq-rc/src/funcs/evalsValidJson.ts +175 -0
  251. package/packages/orq-rc/src/funcs/feedbackCreate.ts +160 -0
  252. package/packages/orq-rc/src/funcs/filesCreate.ts +187 -0
  253. package/packages/orq-rc/src/funcs/filesDelete.ts +164 -0
  254. package/packages/orq-rc/src/funcs/filesGet.ts +166 -0
  255. package/packages/orq-rc/src/funcs/filesList.ts +167 -0
  256. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +158 -0
  257. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +171 -0
  258. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +166 -0
  259. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +167 -0
  260. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +174 -0
  261. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +173 -0
  262. package/packages/orq-rc/src/funcs/knowledgeList.ts +169 -0
  263. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +178 -0
  264. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +174 -0
  265. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +166 -0
  266. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +173 -0
  267. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +169 -0
  268. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +167 -0
  269. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +164 -0
  270. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +174 -0
  271. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +170 -0
  272. package/{src/funcs/getV2ModelsLitellmModels.ts → packages/orq-rc/src/funcs/modelsList.ts} +9 -10
  273. package/packages/orq-rc/src/funcs/promptsCreate.ts +160 -0
  274. package/packages/orq-rc/src/funcs/promptsDelete.ts +164 -0
  275. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +181 -0
  276. package/packages/orq-rc/src/funcs/promptsList.ts +167 -0
  277. package/packages/orq-rc/src/funcs/promptsListVersions.ts +173 -0
  278. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +166 -0
  279. package/packages/orq-rc/src/funcs/promptsUpdate.ts +173 -0
  280. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +161 -0
  281. package/packages/orq-rc/src/hooks/global.ts +44 -0
  282. package/packages/orq-rc/src/hooks/hooks.ts +132 -0
  283. package/packages/orq-rc/src/hooks/index.ts +6 -0
  284. package/packages/orq-rc/src/hooks/registration.ts +15 -0
  285. package/packages/orq-rc/src/hooks/types.ts +112 -0
  286. package/packages/orq-rc/src/index.ts +9 -0
  287. package/packages/orq-rc/src/lib/base64.ts +37 -0
  288. package/packages/orq-rc/src/lib/config.ts +74 -0
  289. package/packages/orq-rc/src/lib/dlv.ts +53 -0
  290. package/packages/orq-rc/src/lib/encodings.ts +483 -0
  291. package/packages/orq-rc/src/lib/env.ts +73 -0
  292. package/packages/orq-rc/src/lib/event-streams.ts +264 -0
  293. package/packages/orq-rc/src/lib/files.ts +82 -0
  294. package/packages/orq-rc/src/lib/http.ts +323 -0
  295. package/packages/orq-rc/src/lib/is-plain-object.ts +43 -0
  296. package/packages/orq-rc/src/lib/logger.ts +9 -0
  297. package/packages/orq-rc/src/lib/matchers.ts +348 -0
  298. package/packages/orq-rc/src/lib/primitives.ts +150 -0
  299. package/packages/orq-rc/src/lib/retries.ts +218 -0
  300. package/packages/orq-rc/src/lib/schemas.ts +91 -0
  301. package/packages/orq-rc/src/lib/sdks.ts +407 -0
  302. package/packages/orq-rc/src/lib/security.ts +261 -0
  303. package/packages/orq-rc/src/lib/url.ts +33 -0
  304. package/packages/orq-rc/src/mcp-server/cli/start/command.ts +125 -0
  305. package/packages/orq-rc/src/mcp-server/cli/start/impl.ts +140 -0
  306. package/packages/orq-rc/src/mcp-server/cli.ts +13 -0
  307. package/packages/orq-rc/src/mcp-server/console-logger.ts +71 -0
  308. package/packages/orq-rc/src/mcp-server/extensions.ts +17 -0
  309. package/packages/orq-rc/src/mcp-server/mcp-server.ts +26 -0
  310. package/packages/orq-rc/src/mcp-server/prompts.ts +117 -0
  311. package/packages/orq-rc/src/mcp-server/resources.ts +172 -0
  312. package/packages/orq-rc/src/mcp-server/scopes.ts +7 -0
  313. package/packages/orq-rc/src/mcp-server/server.ts +247 -0
  314. package/packages/orq-rc/src/mcp-server/shared.ts +75 -0
  315. package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +37 -0
  316. package/packages/orq-rc/src/mcp-server/tools/contactsDelete.ts +35 -0
  317. package/packages/orq-rc/src/mcp-server/tools/contactsList.ts +37 -0
  318. package/packages/orq-rc/src/mcp-server/tools/contactsRetrieve.ts +37 -0
  319. package/packages/orq-rc/src/mcp-server/tools/contactsUpdate.ts +37 -0
  320. package/packages/orq-rc/src/mcp-server/tools/datasetsClear.ts +35 -0
  321. package/packages/orq-rc/src/mcp-server/tools/datasetsCreate.ts +37 -0
  322. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoint.ts +37 -0
  323. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateExperiment.ts +37 -0
  324. package/packages/orq-rc/src/mcp-server/tools/datasetsDelete.ts +35 -0
  325. package/packages/orq-rc/src/mcp-server/tools/datasetsDeleteDatapoint.ts +35 -0
  326. package/packages/orq-rc/src/mcp-server/tools/datasetsList.ts +37 -0
  327. package/packages/orq-rc/src/mcp-server/tools/datasetsListDatapoints.ts +37 -0
  328. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieve.ts +37 -0
  329. package/{src/mcp-server/tools/postV2ModelsLitellmImport.ts → packages/orq-rc/src/mcp-server/tools/datasetsRetrieveDatapoint.ts} +7 -8
  330. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdate.ts +37 -0
  331. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdateDatapoint.ts +35 -0
  332. package/packages/orq-rc/src/mcp-server/tools/deploymentsCreateExperiment.ts +37 -0
  333. package/packages/orq-rc/src/mcp-server/tools/deploymentsGetConfig.ts +37 -0
  334. package/packages/orq-rc/src/mcp-server/tools/deploymentsInvoke.ts +37 -0
  335. package/packages/orq-rc/src/mcp-server/tools/deploymentsList.ts +37 -0
  336. package/packages/orq-rc/src/mcp-server/tools/deploymentsMetricsCreate.ts +37 -0
  337. package/packages/orq-rc/src/mcp-server/tools/deploymentsStream.ts +37 -0
  338. package/packages/orq-rc/src/mcp-server/tools/evalsAgeAppropriate.ts +35 -0
  339. package/packages/orq-rc/src/mcp-server/tools/evalsAll.ts +35 -0
  340. package/packages/orq-rc/src/mcp-server/tools/evalsBertScore.ts +35 -0
  341. package/packages/orq-rc/src/mcp-server/tools/evalsBleuScore.ts +35 -0
  342. package/packages/orq-rc/src/mcp-server/tools/evalsBotDetection.ts +35 -0
  343. package/packages/orq-rc/src/mcp-server/tools/evalsContains.ts +35 -0
  344. package/packages/orq-rc/src/mcp-server/tools/evalsContainsAll.ts +35 -0
  345. package/packages/orq-rc/src/mcp-server/tools/evalsContainsAny.ts +35 -0
  346. package/packages/orq-rc/src/mcp-server/tools/evalsContainsEmail.ts +35 -0
  347. package/packages/orq-rc/src/mcp-server/tools/evalsContainsNone.ts +35 -0
  348. package/packages/orq-rc/src/mcp-server/tools/evalsContainsUrl.ts +35 -0
  349. package/packages/orq-rc/src/mcp-server/tools/evalsContainsValidLink.ts +36 -0
  350. package/packages/orq-rc/src/mcp-server/tools/evalsCreate.ts +35 -0
  351. package/packages/orq-rc/src/mcp-server/tools/evalsDelete.ts +33 -0
  352. package/packages/orq-rc/src/mcp-server/tools/evalsEndsWith.ts +35 -0
  353. package/packages/orq-rc/src/mcp-server/tools/evalsExactMatch.ts +35 -0
  354. package/packages/orq-rc/src/mcp-server/tools/evalsFactCheckingKnowledgeBase.ts +37 -0
  355. package/packages/orq-rc/src/mcp-server/tools/evalsGrammar.ts +35 -0
  356. package/packages/orq-rc/src/mcp-server/tools/evalsInvoke.ts +35 -0
  357. package/packages/orq-rc/src/mcp-server/tools/evalsLengthBetween.ts +35 -0
  358. package/packages/orq-rc/src/mcp-server/tools/evalsLengthGreaterThan.ts +36 -0
  359. package/packages/orq-rc/src/mcp-server/tools/evalsLengthLessThan.ts +35 -0
  360. package/packages/orq-rc/src/mcp-server/tools/evalsLocalization.ts +35 -0
  361. package/packages/orq-rc/src/mcp-server/tools/evalsPii.ts +35 -0
  362. package/packages/orq-rc/src/mcp-server/tools/evalsRagasCoherence.ts +35 -0
  363. package/packages/orq-rc/src/mcp-server/tools/evalsRagasConciseness.ts +35 -0
  364. package/packages/orq-rc/src/mcp-server/tools/evalsRagasContextPrecision.ts +36 -0
  365. package/packages/orq-rc/src/mcp-server/tools/evalsRagasCorrectness.ts +35 -0
  366. package/packages/orq-rc/src/mcp-server/tools/evalsRagasFaithfulness.ts +36 -0
  367. package/packages/orq-rc/src/mcp-server/tools/evalsRagasHarmfulness.ts +35 -0
  368. package/packages/orq-rc/src/mcp-server/tools/evalsRagasMaliciousness.ts +36 -0
  369. package/packages/orq-rc/src/mcp-server/tools/evalsRagasResponseRelevancy.ts +36 -0
  370. package/packages/orq-rc/src/mcp-server/tools/evalsRagasSummarization.ts +36 -0
  371. package/packages/orq-rc/src/mcp-server/tools/evalsSentimentClassification.ts +36 -0
  372. package/packages/orq-rc/src/mcp-server/tools/evalsSummarization.ts +35 -0
  373. package/packages/orq-rc/src/mcp-server/tools/evalsToneOfVoice.ts +35 -0
  374. package/packages/orq-rc/src/mcp-server/tools/evalsTranslation.ts +35 -0
  375. package/packages/orq-rc/src/mcp-server/tools/evalsUpdate.ts +35 -0
  376. package/packages/orq-rc/src/mcp-server/tools/evalsValidJson.ts +35 -0
  377. package/packages/orq-rc/src/mcp-server/tools/feedbackCreate.ts +37 -0
  378. package/packages/orq-rc/src/mcp-server/tools/filesCreate.ts +37 -0
  379. package/packages/orq-rc/src/mcp-server/tools/filesDelete.ts +33 -0
  380. package/packages/orq-rc/src/mcp-server/tools/filesGet.ts +37 -0
  381. package/packages/orq-rc/src/mcp-server/tools/filesList.ts +37 -0
  382. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreate.ts +35 -0
  383. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateChunks.ts +35 -0
  384. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateDatasource.ts +35 -0
  385. package/packages/orq-rc/src/mcp-server/tools/knowledgeDelete.ts +35 -0
  386. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunk.ts +33 -0
  387. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteDatasource.ts +35 -0
  388. package/packages/orq-rc/src/mcp-server/tools/knowledgeList.ts +37 -0
  389. package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunks.ts +35 -0
  390. package/packages/orq-rc/src/mcp-server/tools/knowledgeListDatasources.ts +35 -0
  391. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieve.ts +37 -0
  392. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveChunk.ts +35 -0
  393. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveDatasource.ts +35 -0
  394. package/packages/orq-rc/src/mcp-server/tools/knowledgeSearch.ts +37 -0
  395. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdate.ts +35 -0
  396. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateChunk.ts +35 -0
  397. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateDatasource.ts +35 -0
  398. package/{src/mcp-server/tools/getV2ModelsLitellmModels.ts → packages/orq-rc/src/mcp-server/tools/modelsList.ts} +6 -6
  399. package/packages/orq-rc/src/mcp-server/tools/promptsCreate.ts +35 -0
  400. package/packages/orq-rc/src/mcp-server/tools/promptsDelete.ts +33 -0
  401. package/packages/orq-rc/src/mcp-server/tools/promptsGetVersion.ts +37 -0
  402. package/packages/orq-rc/src/mcp-server/tools/promptsList.ts +37 -0
  403. package/packages/orq-rc/src/mcp-server/tools/promptsListVersions.ts +37 -0
  404. package/packages/orq-rc/src/mcp-server/tools/promptsRetrieve.ts +37 -0
  405. package/packages/orq-rc/src/mcp-server/tools/promptsUpdate.ts +35 -0
  406. package/packages/orq-rc/src/mcp-server/tools/remoteconfigsRetrieve.ts +36 -0
  407. package/packages/orq-rc/src/mcp-server/tools.ts +129 -0
  408. package/packages/orq-rc/src/models/components/deployments.ts +7289 -0
  409. package/packages/orq-rc/src/models/components/index.ts +6 -0
  410. package/packages/orq-rc/src/models/components/security.ts +71 -0
  411. package/packages/orq-rc/src/models/errors/apierror.ts +34 -0
  412. package/packages/orq-rc/src/models/errors/createeval.ts +82 -0
  413. package/packages/orq-rc/src/models/errors/deletecontact.ts +91 -0
  414. package/packages/orq-rc/src/models/errors/deleteeval.ts +82 -0
  415. package/packages/orq-rc/src/models/errors/evalsageappropriate.ts +160 -0
  416. package/packages/orq-rc/src/models/errors/evalsbertscore.ts +158 -0
  417. package/packages/orq-rc/src/models/errors/evalsbleuscore.ts +158 -0
  418. package/packages/orq-rc/src/models/errors/evalsbotdetection.ts +159 -0
  419. package/packages/orq-rc/src/models/errors/evalscontains.ts +158 -0
  420. package/packages/orq-rc/src/models/errors/evalscontainsall.ts +159 -0
  421. package/packages/orq-rc/src/models/errors/evalscontainsany.ts +159 -0
  422. package/packages/orq-rc/src/models/errors/evalscontainsemail.ts +160 -0
  423. package/packages/orq-rc/src/models/errors/evalscontainsnone.ts +159 -0
  424. package/packages/orq-rc/src/models/errors/evalscontainsurl.ts +159 -0
  425. package/packages/orq-rc/src/models/errors/evalscontainsvalidlink.ts +161 -0
  426. package/packages/orq-rc/src/models/errors/evalsendswith.ts +158 -0
  427. package/packages/orq-rc/src/models/errors/evalsexactmatch.ts +158 -0
  428. package/packages/orq-rc/src/models/errors/evalsfactcheckingknowledgebase.ts +164 -0
  429. package/packages/orq-rc/src/models/errors/evalsgrammar.ts +158 -0
  430. package/packages/orq-rc/src/models/errors/evalslengthbetween.ts +160 -0
  431. package/packages/orq-rc/src/models/errors/evalslengthgreaterthan.ts +161 -0
  432. package/packages/orq-rc/src/models/errors/evalslengthlessthan.ts +160 -0
  433. package/packages/orq-rc/src/models/errors/evalslocalization.ts +159 -0
  434. package/packages/orq-rc/src/models/errors/evalspii.ts +158 -0
  435. package/packages/orq-rc/src/models/errors/evalsragascoherence.ts +160 -0
  436. package/packages/orq-rc/src/models/errors/evalsragasconciseness.ts +161 -0
  437. package/packages/orq-rc/src/models/errors/evalsragascontextprecision.ts +164 -0
  438. package/packages/orq-rc/src/models/errors/evalsragascorrectness.ts +161 -0
  439. package/packages/orq-rc/src/models/errors/evalsragasfaithfulness.ts +161 -0
  440. package/packages/orq-rc/src/models/errors/evalsragasharmfulness.ts +161 -0
  441. package/packages/orq-rc/src/models/errors/evalsragasmaliciousness.ts +162 -0
  442. package/packages/orq-rc/src/models/errors/evalsragasresponserelevancy.ts +164 -0
  443. package/packages/orq-rc/src/models/errors/evalsragassummarization.ts +162 -0
  444. package/packages/orq-rc/src/models/errors/evalssentimentclassification.ts +164 -0
  445. package/packages/orq-rc/src/models/errors/evalssummarization.ts +160 -0
  446. package/packages/orq-rc/src/models/errors/evalstoneofvoice.ts +159 -0
  447. package/packages/orq-rc/src/models/errors/evalstranslation.ts +159 -0
  448. package/packages/orq-rc/src/models/errors/evalsvalidjson.ts +158 -0
  449. package/packages/orq-rc/src/models/errors/getevals.ts +82 -0
  450. package/packages/orq-rc/src/models/errors/getpromptversion.ts +82 -0
  451. package/packages/orq-rc/src/models/errors/honoapierror.ts +92 -0
  452. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +62 -0
  453. package/packages/orq-rc/src/models/errors/index.ts +53 -0
  454. package/packages/orq-rc/src/models/errors/invokeeval.ts +158 -0
  455. package/packages/orq-rc/src/models/errors/orqerror.ts +35 -0
  456. package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +50 -0
  457. package/packages/orq-rc/src/models/errors/retrievecontact.ts +91 -0
  458. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +109 -0
  459. package/packages/orq-rc/src/models/errors/updatecontact.ts +85 -0
  460. package/packages/orq-rc/src/models/errors/updateeval.ts +82 -0
  461. package/packages/orq-rc/src/models/errors/updateprompt.ts +82 -0
  462. package/packages/orq-rc/src/models/operations/cleardataset.ts +75 -0
  463. package/packages/orq-rc/src/models/operations/createchunk.ts +428 -0
  464. package/packages/orq-rc/src/models/operations/createcontact.ts +267 -0
  465. package/packages/orq-rc/src/models/operations/createdataset.ts +296 -0
  466. package/packages/orq-rc/src/models/operations/createdatasetexperiment.ts +307 -0
  467. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +5222 -0
  468. package/packages/orq-rc/src/models/operations/createdatasource.ts +852 -0
  469. package/packages/orq-rc/src/models/operations/createdeploymentexperiment.ts +321 -0
  470. package/packages/orq-rc/src/models/operations/createeval.ts +3830 -0
  471. package/packages/orq-rc/src/models/operations/createfeedback.ts +286 -0
  472. package/packages/orq-rc/src/models/operations/createknowledge.ts +846 -0
  473. package/packages/orq-rc/src/models/operations/createprompt.ts +4081 -0
  474. package/packages/orq-rc/src/models/operations/deletechunk.ts +96 -0
  475. package/packages/orq-rc/src/models/operations/deletecontact.ts +69 -0
  476. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +81 -0
  477. package/packages/orq-rc/src/models/operations/deletedataset.ts +75 -0
  478. package/packages/orq-rc/src/models/operations/deletedatasource.ts +87 -0
  479. package/packages/orq-rc/src/models/operations/deleteeval.ts +66 -0
  480. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +78 -0
  481. package/packages/orq-rc/src/models/operations/deleteprompt.ts +69 -0
  482. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +5439 -0
  483. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +9378 -0
  484. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +1256 -0
  485. package/packages/orq-rc/src/models/operations/deployments.ts +2327 -0
  486. package/packages/orq-rc/src/models/operations/deploymentstream.ts +9499 -0
  487. package/packages/orq-rc/src/models/operations/evalsageappropriate.ts +253 -0
  488. package/packages/orq-rc/src/models/operations/evalsbertscore.ts +197 -0
  489. package/packages/orq-rc/src/models/operations/evalsbleuscore.ts +131 -0
  490. package/packages/orq-rc/src/models/operations/evalsbotdetection.ts +249 -0
  491. package/packages/orq-rc/src/models/operations/evalscontains.ts +250 -0
  492. package/packages/orq-rc/src/models/operations/evalscontainsall.ts +248 -0
  493. package/packages/orq-rc/src/models/operations/evalscontainsany.ts +254 -0
  494. package/packages/orq-rc/src/models/operations/evalscontainsemail.ts +181 -0
  495. package/packages/orq-rc/src/models/operations/evalscontainsnone.ts +254 -0
  496. package/packages/orq-rc/src/models/operations/evalscontainsurl.ts +181 -0
  497. package/packages/orq-rc/src/models/operations/evalscontainsvalidlink.ts +186 -0
  498. package/packages/orq-rc/src/models/operations/evalsendswith.ts +250 -0
  499. package/packages/orq-rc/src/models/operations/evalsexactmatch.ts +183 -0
  500. package/packages/orq-rc/src/models/operations/evalsfactcheckingknowledgebase.ts +299 -0
  501. package/packages/orq-rc/src/models/operations/evalsgrammar.ts +243 -0
  502. package/packages/orq-rc/src/models/operations/evalslengthbetween.ts +268 -0
  503. package/packages/orq-rc/src/models/operations/evalslengthgreaterthan.ts +266 -0
  504. package/packages/orq-rc/src/models/operations/evalslengthlessthan.ts +259 -0
  505. package/packages/orq-rc/src/models/operations/evalslocalization.ts +253 -0
  506. package/packages/orq-rc/src/models/operations/evalspii.ts +243 -0
  507. package/packages/orq-rc/src/models/operations/evalsragascoherence.ts +152 -0
  508. package/packages/orq-rc/src/models/operations/evalsragasconciseness.ts +153 -0
  509. package/packages/orq-rc/src/models/operations/evalsragascontextprecision.ts +166 -0
  510. package/packages/orq-rc/src/models/operations/evalsragascorrectness.ts +153 -0
  511. package/packages/orq-rc/src/models/operations/evalsragasfaithfulness.ts +155 -0
  512. package/packages/orq-rc/src/models/operations/evalsragasharmfulness.ts +146 -0
  513. package/packages/orq-rc/src/models/operations/evalsragasmaliciousness.ts +157 -0
  514. package/packages/orq-rc/src/models/operations/evalsragasresponserelevancy.ts +165 -0
  515. package/packages/orq-rc/src/models/operations/evalsragassummarization.ts +150 -0
  516. package/packages/orq-rc/src/models/operations/evalssentimentclassification.ts +285 -0
  517. package/packages/orq-rc/src/models/operations/evalssummarization.ts +253 -0
  518. package/packages/orq-rc/src/models/operations/evalstoneofvoice.ts +251 -0
  519. package/packages/orq-rc/src/models/operations/evalstranslation.ts +251 -0
  520. package/packages/orq-rc/src/models/operations/evalsvalidjson.ts +177 -0
  521. package/packages/orq-rc/src/models/operations/filedelete.ts +78 -0
  522. package/packages/orq-rc/src/models/operations/fileget.ts +223 -0
  523. package/packages/orq-rc/src/models/operations/filelist.ts +337 -0
  524. package/packages/orq-rc/src/models/operations/fileupload.ts +327 -0
  525. package/packages/orq-rc/src/models/operations/getallprompts.ts +2295 -0
  526. package/packages/orq-rc/src/models/operations/getevals.ts +6162 -0
  527. package/packages/orq-rc/src/models/operations/getonechunk.ts +315 -0
  528. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +537 -0
  529. package/packages/orq-rc/src/models/operations/getoneprompt.ts +2156 -0
  530. package/packages/orq-rc/src/models/operations/getpromptversion.ts +2161 -0
  531. package/packages/orq-rc/src/models/operations/index.ts +96 -0
  532. package/packages/orq-rc/src/models/operations/invokeeval.ts +2520 -0
  533. package/packages/orq-rc/src/models/operations/listchunks.ts +494 -0
  534. package/packages/orq-rc/src/models/operations/listcontacts.ts +490 -0
  535. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2784 -0
  536. package/packages/orq-rc/src/models/operations/listdatasets.ts +406 -0
  537. package/packages/orq-rc/src/models/operations/listdatasources.ts +447 -0
  538. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +663 -0
  539. package/packages/orq-rc/src/models/operations/listmodels.ts +273 -0
  540. package/packages/orq-rc/src/models/operations/listpromptversions.ts +2293 -0
  541. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +190 -0
  542. package/packages/orq-rc/src/models/operations/retrievecontact.ts +210 -0
  543. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2586 -0
  544. package/packages/orq-rc/src/models/operations/retrievedataset.ts +288 -0
  545. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +273 -0
  546. package/packages/orq-rc/src/models/operations/searchknowledge.ts +3367 -0
  547. package/packages/orq-rc/src/models/operations/updatechunk.ts +448 -0
  548. package/packages/orq-rc/src/models/operations/updatecontact.ts +325 -0
  549. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +5155 -0
  550. package/packages/orq-rc/src/models/operations/updatedataset.ts +393 -0
  551. package/packages/orq-rc/src/models/operations/updatedatasource.ts +345 -0
  552. package/packages/orq-rc/src/models/operations/updateeval.ts +4131 -0
  553. package/packages/orq-rc/src/models/operations/updateknowledge.ts +980 -0
  554. package/packages/orq-rc/src/models/operations/updateprompt.ts +4218 -0
  555. package/packages/orq-rc/src/sdk/contacts.ts +99 -0
  556. package/packages/orq-rc/src/sdk/datasets.ts +222 -0
  557. package/packages/orq-rc/src/sdk/deployments.ts +107 -0
  558. package/packages/orq-rc/src/sdk/evals.ts +594 -0
  559. package/packages/orq-rc/src/sdk/feedback.ts +27 -0
  560. package/packages/orq-rc/src/sdk/files.ts +78 -0
  561. package/packages/orq-rc/src/sdk/index.ts +5 -0
  562. package/packages/orq-rc/src/sdk/knowledge.ts +264 -0
  563. package/packages/orq-rc/src/sdk/metrics.ts +27 -0
  564. package/packages/orq-rc/src/sdk/models.ts +25 -0
  565. package/packages/orq-rc/src/sdk/prompts.ts +126 -0
  566. package/packages/orq-rc/src/sdk/remoteconfigs.ts +24 -0
  567. package/packages/orq-rc/src/sdk/sdk.ts +67 -0
  568. package/packages/orq-rc/src/types/async.ts +68 -0
  569. package/packages/orq-rc/src/types/blobs.ts +31 -0
  570. package/packages/orq-rc/src/types/constdatetime.ts +15 -0
  571. package/packages/orq-rc/src/types/enums.ts +16 -0
  572. package/packages/orq-rc/src/types/fp.ts +50 -0
  573. package/packages/orq-rc/src/types/index.ts +11 -0
  574. package/packages/orq-rc/src/types/operations.ts +105 -0
  575. package/packages/orq-rc/src/types/rfcdate.ts +54 -0
  576. package/packages/orq-rc/src/types/streams.ts +21 -0
  577. package/packages/orq-rc/tsconfig.json +41 -0
  578. package/sdk/knowledge.d.ts +1 -1
  579. package/sdk/knowledge.d.ts.map +1 -1
  580. package/sdk/sdk.d.ts +1 -16
  581. package/sdk/sdk.d.ts.map +1 -1
  582. package/sdk/sdk.js +0 -21
  583. package/sdk/sdk.js.map +1 -1
  584. package/src/funcs/filesCreate.ts +11 -4
  585. package/src/funcs/knowledgeCreateChunks.ts +4 -4
  586. package/src/lib/config.ts +3 -3
  587. package/src/lib/files.ts +42 -0
  588. package/src/lib/security.ts +2 -2
  589. package/src/mcp-server/mcp-server.ts +1 -1
  590. package/src/mcp-server/server.ts +1 -5
  591. package/src/models/components/deployments.ts +24 -24
  592. package/src/models/operations/createchunk.ts +44 -54
  593. package/src/models/operations/createcontact.ts +2 -2
  594. package/src/models/operations/createdataset.ts +2 -2
  595. package/src/models/operations/createdatasetitem.ts +26 -26
  596. package/src/models/operations/createdatasource.ts +2 -2
  597. package/src/models/operations/createeval.ts +121 -121
  598. package/src/models/operations/createfeedback.ts +16 -16
  599. package/src/models/operations/createprompt.ts +39 -39
  600. package/src/models/operations/deploymentcreatemetric.ts +30 -26
  601. package/src/models/operations/deploymentgetconfig.ts +62 -68
  602. package/src/models/operations/deploymentinvoke.ts +13 -13
  603. package/src/models/operations/deployments.ts +14 -14
  604. package/src/models/operations/deploymentstream.ts +34 -34
  605. package/src/models/operations/evalsageappropriate.ts +4 -4
  606. package/src/models/operations/evalsfactcheckingknowledgebase.ts +4 -4
  607. package/src/models/operations/evalsgrammar.ts +4 -4
  608. package/src/models/operations/evalslocalization.ts +4 -4
  609. package/src/models/operations/evalspii.ts +4 -4
  610. package/src/models/operations/evalsragascoherence.ts +4 -4
  611. package/src/models/operations/evalsragasconciseness.ts +4 -4
  612. package/src/models/operations/evalsragascontextprecision.ts +4 -4
  613. package/src/models/operations/evalsragascorrectness.ts +4 -4
  614. package/src/models/operations/evalsragasfaithfulness.ts +4 -4
  615. package/src/models/operations/evalsragasharmfulness.ts +4 -4
  616. package/src/models/operations/evalsragasmaliciousness.ts +4 -4
  617. package/src/models/operations/evalsragasresponserelevancy.ts +4 -4
  618. package/src/models/operations/evalssentimentclassification.ts +4 -4
  619. package/src/models/operations/evalssummarization.ts +4 -4
  620. package/src/models/operations/evalstoneofvoice.ts +4 -4
  621. package/src/models/operations/evalstranslation.ts +4 -4
  622. package/src/models/operations/fileget.ts +2 -2
  623. package/src/models/operations/filelist.ts +2 -2
  624. package/src/models/operations/fileupload.ts +2 -2
  625. package/src/models/operations/getallprompts.ts +22 -22
  626. package/src/models/operations/getevals.ts +339 -364
  627. package/src/models/operations/getoneprompt.ts +22 -22
  628. package/src/models/operations/getpromptversion.ts +22 -22
  629. package/src/models/operations/index.ts +0 -2
  630. package/src/models/operations/invokeeval.ts +251 -223
  631. package/src/models/operations/listcontacts.ts +2 -2
  632. package/src/models/operations/listdatasetdatapoints.ts +20 -16
  633. package/src/models/operations/listdatasets.ts +2 -2
  634. package/src/models/operations/listdatasources.ts +2 -2
  635. package/src/models/operations/listpromptversions.ts +22 -22
  636. package/src/models/operations/retrievecontact.ts +2 -2
  637. package/src/models/operations/retrievedatapoint.ts +14 -14
  638. package/src/models/operations/retrievedataset.ts +2 -2
  639. package/src/models/operations/retrievedatasource.ts +2 -2
  640. package/src/models/operations/updatecontact.ts +2 -2
  641. package/src/models/operations/updatedatapoint.ts +29 -27
  642. package/src/models/operations/updatedataset.ts +2 -2
  643. package/src/models/operations/updatedatasource.ts +2 -2
  644. package/src/models/operations/updateeval.ts +139 -139
  645. package/src/models/operations/updateprompt.ts +61 -106
  646. package/src/sdk/knowledge.ts +1 -1
  647. package/src/sdk/sdk.ts +1 -37
  648. package/src/types/constdatetime.ts +1 -1
  649. package/types/constdatetime.js +1 -1
  650. package/funcs/getV2ModelsLitellmModels.d.ts +0 -17
  651. package/funcs/getV2ModelsLitellmModels.d.ts.map +0 -1
  652. package/funcs/getV2ModelsLitellmModels.js +0 -105
  653. package/funcs/getV2ModelsLitellmModels.js.map +0 -1
  654. package/funcs/postV2ModelsLitellmImport.d.ts +0 -17
  655. package/funcs/postV2ModelsLitellmImport.d.ts.map +0 -1
  656. package/funcs/postV2ModelsLitellmImport.js +0 -117
  657. package/funcs/postV2ModelsLitellmImport.js.map +0 -1
  658. package/mcp-server/tools/getV2ModelsLitellmModels.d.ts +0 -3
  659. package/mcp-server/tools/getV2ModelsLitellmModels.d.ts.map +0 -1
  660. package/mcp-server/tools/getV2ModelsLitellmModels.js +0 -26
  661. package/mcp-server/tools/getV2ModelsLitellmModels.js.map +0 -1
  662. package/mcp-server/tools/postV2ModelsLitellmImport.d.ts +0 -9
  663. package/mcp-server/tools/postV2ModelsLitellmImport.d.ts.map +0 -1
  664. package/mcp-server/tools/postV2ModelsLitellmImport.js +0 -65
  665. package/mcp-server/tools/postV2ModelsLitellmImport.js.map +0 -1
  666. package/models/operations/getv2modelslitellmmodels.d.ts +0 -185
  667. package/models/operations/getv2modelslitellmmodels.d.ts.map +0 -1
  668. package/models/operations/getv2modelslitellmmodels.js +0 -349
  669. package/models/operations/getv2modelslitellmmodels.js.map +0 -1
  670. package/models/operations/postv2modelslitellmimport.d.ts +0 -1333
  671. package/models/operations/postv2modelslitellmimport.d.ts.map +0 -1
  672. package/models/operations/postv2modelslitellmimport.js +0 -1400
  673. package/models/operations/postv2modelslitellmimport.js.map +0 -1
  674. package/src/models/operations/getv2modelslitellmmodels.ts +0 -530
  675. package/src/models/operations/postv2modelslitellmimport.ts +0 -2408
@@ -0,0 +1,4218 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ /**
13
+ * Only supported on `image` models.
14
+ */
15
+ export const UpdatePromptFormat = {
16
+ Url: "url",
17
+ B64Json: "b64_json",
18
+ Text: "text",
19
+ JsonObject: "json_object",
20
+ } as const;
21
+ /**
22
+ * Only supported on `image` models.
23
+ */
24
+ export type UpdatePromptFormat = ClosedEnum<typeof UpdatePromptFormat>;
25
+
26
+ export const UpdatePromptResponseFormatPromptsType = {
27
+ JsonObject: "json_object",
28
+ } as const;
29
+ export type UpdatePromptResponseFormatPromptsType = ClosedEnum<
30
+ typeof UpdatePromptResponseFormatPromptsType
31
+ >;
32
+
33
+ export type UpdatePromptResponseFormat2 = {
34
+ type: UpdatePromptResponseFormatPromptsType;
35
+ };
36
+
37
+ export const UpdatePromptResponseFormatType = {
38
+ JsonSchema: "json_schema",
39
+ } as const;
40
+ export type UpdatePromptResponseFormatType = ClosedEnum<
41
+ typeof UpdatePromptResponseFormatType
42
+ >;
43
+
44
+ export type ResponseFormatJsonSchema = {
45
+ name: string;
46
+ strict?: boolean | undefined;
47
+ schema: { [k: string]: any };
48
+ };
49
+
50
+ export type UpdatePromptResponseFormat1 = {
51
+ type: UpdatePromptResponseFormatType;
52
+ jsonSchema: ResponseFormatJsonSchema;
53
+ };
54
+
55
+ /**
56
+ * An object specifying the format that the model must output.
57
+ *
58
+ * @remarks
59
+ *
60
+ * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
61
+ *
62
+ * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
63
+ *
64
+ * 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.
65
+ */
66
+ export type UpdatePromptResponseFormat =
67
+ | UpdatePromptResponseFormat1
68
+ | UpdatePromptResponseFormat2;
69
+
70
+ /**
71
+ * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
72
+ */
73
+ export const UpdatePromptPhotoRealVersion = {
74
+ V1: "v1",
75
+ V2: "v2",
76
+ } as const;
77
+ /**
78
+ * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
79
+ */
80
+ export type UpdatePromptPhotoRealVersion = ClosedEnum<
81
+ typeof UpdatePromptPhotoRealVersion
82
+ >;
83
+
84
+ /**
85
+ * The format to return the embeddings
86
+ */
87
+ export const UpdatePromptEncodingFormat = {
88
+ Float: "float",
89
+ Base64: "base64",
90
+ } as const;
91
+ /**
92
+ * The format to return the embeddings
93
+ */
94
+ export type UpdatePromptEncodingFormat = ClosedEnum<
95
+ typeof UpdatePromptEncodingFormat
96
+ >;
97
+
98
+ /**
99
+ * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
100
+ */
101
+ export const UpdatePromptReasoningEffort = {
102
+ Low: "low",
103
+ Medium: "medium",
104
+ High: "high",
105
+ } as const;
106
+ /**
107
+ * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
108
+ */
109
+ export type UpdatePromptReasoningEffort = ClosedEnum<
110
+ typeof UpdatePromptReasoningEffort
111
+ >;
112
+
113
+ /**
114
+ * Model Parameters: Not all parameters apply to every model
115
+ */
116
+ export type UpdatePromptModelParameters = {
117
+ /**
118
+ * Only supported on `chat` and `completion` models.
119
+ */
120
+ temperature?: number | undefined;
121
+ /**
122
+ * Only supported on `chat` and `completion` models.
123
+ */
124
+ maxTokens?: number | undefined;
125
+ /**
126
+ * Only supported on `chat` and `completion` models.
127
+ */
128
+ topK?: number | undefined;
129
+ /**
130
+ * Only supported on `chat` and `completion` models.
131
+ */
132
+ topP?: number | undefined;
133
+ /**
134
+ * Only supported on `chat` and `completion` models.
135
+ */
136
+ frequencyPenalty?: number | undefined;
137
+ /**
138
+ * Only supported on `chat` and `completion` models.
139
+ */
140
+ presencePenalty?: number | undefined;
141
+ /**
142
+ * Only supported on `image` models.
143
+ */
144
+ numImages?: number | undefined;
145
+ /**
146
+ * Best effort deterministic seed for the model. Currently only OpenAI models support these
147
+ */
148
+ seed?: number | undefined;
149
+ /**
150
+ * Only supported on `image` models.
151
+ */
152
+ format?: UpdatePromptFormat | undefined;
153
+ /**
154
+ * Only supported on `image` models.
155
+ */
156
+ dimensions?: string | undefined;
157
+ /**
158
+ * Only supported on `image` models.
159
+ */
160
+ quality?: string | undefined;
161
+ /**
162
+ * Only supported on `image` models.
163
+ */
164
+ style?: string | undefined;
165
+ /**
166
+ * An object specifying the format that the model must output.
167
+ *
168
+ * @remarks
169
+ *
170
+ * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
171
+ *
172
+ * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
173
+ *
174
+ * 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.
175
+ */
176
+ responseFormat?:
177
+ | UpdatePromptResponseFormat1
178
+ | UpdatePromptResponseFormat2
179
+ | null
180
+ | undefined;
181
+ /**
182
+ * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
183
+ */
184
+ photoRealVersion?: UpdatePromptPhotoRealVersion | undefined;
185
+ /**
186
+ * The format to return the embeddings
187
+ */
188
+ encodingFormat?: UpdatePromptEncodingFormat | undefined;
189
+ /**
190
+ * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
191
+ */
192
+ reasoningEffort?: UpdatePromptReasoningEffort | undefined;
193
+ /**
194
+ * 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`
195
+ */
196
+ budgetTokens?: number | undefined;
197
+ };
198
+
199
+ export const UpdatePromptProvider = {
200
+ Cohere: "cohere",
201
+ Openai: "openai",
202
+ Anthropic: "anthropic",
203
+ Huggingface: "huggingface",
204
+ Replicate: "replicate",
205
+ Google: "google",
206
+ GoogleAi: "google-ai",
207
+ Azure: "azure",
208
+ Aws: "aws",
209
+ Anyscale: "anyscale",
210
+ Perplexity: "perplexity",
211
+ Groq: "groq",
212
+ Fal: "fal",
213
+ Leonardoai: "leonardoai",
214
+ Nvidia: "nvidia",
215
+ Jina: "jina",
216
+ Togetherai: "togetherai",
217
+ Elevenlabs: "elevenlabs",
218
+ Litellm: "litellm",
219
+ } as const;
220
+ export type UpdatePromptProvider = ClosedEnum<typeof UpdatePromptProvider>;
221
+
222
+ /**
223
+ * The role of the prompt message
224
+ */
225
+ export const UpdatePromptRole = {
226
+ System: "system",
227
+ Assistant: "assistant",
228
+ User: "user",
229
+ Exception: "exception",
230
+ Tool: "tool",
231
+ Prompt: "prompt",
232
+ Correction: "correction",
233
+ ExpectedOutput: "expected_output",
234
+ } as const;
235
+ /**
236
+ * The role of the prompt message
237
+ */
238
+ export type UpdatePromptRole = ClosedEnum<typeof UpdatePromptRole>;
239
+
240
+ /**
241
+ * The type of the content part. Always `file`.
242
+ */
243
+ export const UpdatePrompt2PromptsRequestType = {
244
+ File: "file",
245
+ } as const;
246
+ /**
247
+ * The type of the content part. Always `file`.
248
+ */
249
+ export type UpdatePrompt2PromptsRequestType = ClosedEnum<
250
+ typeof UpdatePrompt2PromptsRequestType
251
+ >;
252
+
253
+ export type UpdatePrompt2File = {
254
+ /**
255
+ * The base64 encoded file data, used when passing the file to the model as a string.
256
+ */
257
+ fileData: string;
258
+ /**
259
+ * The name of the file, used when passing the file to the model as a string.
260
+ */
261
+ filename?: string | undefined;
262
+ };
263
+
264
+ export type UpdatePrompt23 = {
265
+ /**
266
+ * The type of the content part. Always `file`.
267
+ */
268
+ type: UpdatePrompt2PromptsRequestType;
269
+ file: UpdatePrompt2File;
270
+ };
271
+
272
+ export const UpdatePrompt2PromptsType = {
273
+ ImageUrl: "image_url",
274
+ } as const;
275
+ export type UpdatePrompt2PromptsType = ClosedEnum<
276
+ typeof UpdatePrompt2PromptsType
277
+ >;
278
+
279
+ export type UpdatePrompt2ImageUrl = {
280
+ /**
281
+ * Either a URL of the image or the base64 encoded data URI.
282
+ */
283
+ url: string;
284
+ /**
285
+ * Specifies the detail level of the image. Currently only supported with OpenAI models
286
+ */
287
+ detail?: string | undefined;
288
+ };
289
+
290
+ /**
291
+ * The image part of the prompt message. Only supported with vision models.
292
+ */
293
+ export type UpdatePrompt22 = {
294
+ type: UpdatePrompt2PromptsType;
295
+ imageUrl: UpdatePrompt2ImageUrl;
296
+ };
297
+
298
+ export const UpdatePrompt2Type = {
299
+ Text: "text",
300
+ } as const;
301
+ export type UpdatePrompt2Type = ClosedEnum<typeof UpdatePrompt2Type>;
302
+
303
+ /**
304
+ * Text content part of a prompt message
305
+ */
306
+ export type UpdatePrompt21 = {
307
+ type: UpdatePrompt2Type;
308
+ text: string;
309
+ };
310
+
311
+ export type UpdatePromptContent2 =
312
+ | UpdatePrompt21
313
+ | UpdatePrompt22
314
+ | UpdatePrompt23;
315
+
316
+ /**
317
+ * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
318
+ */
319
+ export type UpdatePromptContent =
320
+ | string
321
+ | Array<UpdatePrompt21 | UpdatePrompt22 | UpdatePrompt23>;
322
+
323
+ export const UpdatePromptType = {
324
+ Function: "function",
325
+ } as const;
326
+ export type UpdatePromptType = ClosedEnum<typeof UpdatePromptType>;
327
+
328
+ export type UpdatePromptFunction = {
329
+ name: string;
330
+ /**
331
+ * JSON string arguments for the functions
332
+ */
333
+ arguments: string;
334
+ };
335
+
336
+ export type UpdatePromptToolCalls = {
337
+ id?: string | undefined;
338
+ index?: number | undefined;
339
+ type: UpdatePromptType;
340
+ function: UpdatePromptFunction;
341
+ };
342
+
343
+ export type UpdatePromptMessages = {
344
+ /**
345
+ * The role of the prompt message
346
+ */
347
+ role: UpdatePromptRole;
348
+ /**
349
+ * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
350
+ */
351
+ content: string | Array<UpdatePrompt21 | UpdatePrompt22 | UpdatePrompt23>;
352
+ toolCalls?: Array<UpdatePromptToolCalls> | undefined;
353
+ toolCallId?: string | undefined;
354
+ };
355
+
356
+ export type UpdatePromptPromptConfig = {
357
+ stream?: boolean | undefined;
358
+ model?: string | undefined;
359
+ /**
360
+ * Model Parameters: Not all parameters apply to every model
361
+ */
362
+ modelParameters?: UpdatePromptModelParameters | undefined;
363
+ provider?: UpdatePromptProvider | undefined;
364
+ version?: string | undefined;
365
+ messages: Array<UpdatePromptMessages>;
366
+ modelDbId?: string | null | undefined;
367
+ modelType?: string | null | undefined;
368
+ };
369
+
370
+ export const UpdatePromptUseCases = {
371
+ AgentsSimulations: "Agents simulations",
372
+ Agents: "Agents",
373
+ APIInteraction: "API interaction",
374
+ AutonomousAgents: "Autonomous Agents",
375
+ Chatbots: "Chatbots",
376
+ Classification: "Classification",
377
+ CodeUnderstanding: "Code understanding",
378
+ CodeWriting: "Code writing",
379
+ Conversation: "Conversation",
380
+ DocumentsQA: "Documents QA",
381
+ Evaluation: "Evaluation",
382
+ Extraction: "Extraction",
383
+ MultiModal: "Multi-modal",
384
+ SelfChecking: "Self-checking",
385
+ SentimentAnalysis: "Sentiment analysis",
386
+ Sql: "SQL",
387
+ Summarization: "Summarization",
388
+ Tagging: "Tagging",
389
+ TranslationDocument: "Translation (document)",
390
+ TranslationSentences: "Translation (sentences)",
391
+ } as const;
392
+ export type UpdatePromptUseCases = ClosedEnum<typeof UpdatePromptUseCases>;
393
+
394
+ /**
395
+ * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
396
+ */
397
+ export const UpdatePromptLanguage = {
398
+ Chinese: "Chinese",
399
+ Dutch: "Dutch",
400
+ English: "English",
401
+ French: "French",
402
+ German: "German",
403
+ Russian: "Russian",
404
+ Spanish: "Spanish",
405
+ } as const;
406
+ /**
407
+ * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
408
+ */
409
+ export type UpdatePromptLanguage = ClosedEnum<typeof UpdatePromptLanguage>;
410
+
411
+ export type UpdatePromptMetadata = {
412
+ /**
413
+ * 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
414
+ */
415
+ useCases?: Array<UpdatePromptUseCases> | undefined;
416
+ /**
417
+ * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
418
+ */
419
+ language?: UpdatePromptLanguage | null | undefined;
420
+ };
421
+
422
+ export type UpdatePromptRequestBody = {
423
+ owner?: string | undefined;
424
+ domainId?: string | undefined;
425
+ created?: string | undefined;
426
+ updated?: string | undefined;
427
+ createdById?: string | null | undefined;
428
+ updatedById?: string | null | undefined;
429
+ /**
430
+ * The prompt’s name, meant to be displayable in the UI.
431
+ */
432
+ displayName?: string | undefined;
433
+ /**
434
+ * The prompt’s description, meant to be displayable in the UI. Use this field to optionally store a long form explanation of the prompt for your own purpose
435
+ */
436
+ description?: string | null | undefined;
437
+ promptConfig?: UpdatePromptPromptConfig | undefined;
438
+ metadata?: UpdatePromptMetadata | undefined;
439
+ /**
440
+ * The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
441
+ */
442
+ path?: string | undefined;
443
+ };
444
+
445
+ export type UpdatePromptRequest = {
446
+ /**
447
+ * Unique identifier of the prompt
448
+ */
449
+ id: string;
450
+ requestBody?: UpdatePromptRequestBody | undefined;
451
+ };
452
+
453
+ export const UpdatePromptPromptsType = {
454
+ Prompt: "prompt",
455
+ } as const;
456
+ export type UpdatePromptPromptsType = ClosedEnum<
457
+ typeof UpdatePromptPromptsType
458
+ >;
459
+
460
+ /**
461
+ * The modality of the model
462
+ */
463
+ export const UpdatePromptModelType = {
464
+ Chat: "chat",
465
+ Completion: "completion",
466
+ Embedding: "embedding",
467
+ Vision: "vision",
468
+ Image: "image",
469
+ Tts: "tts",
470
+ Stt: "stt",
471
+ Rerank: "rerank",
472
+ Moderations: "moderations",
473
+ } as const;
474
+ /**
475
+ * The modality of the model
476
+ */
477
+ export type UpdatePromptModelType = ClosedEnum<typeof UpdatePromptModelType>;
478
+
479
+ /**
480
+ * Only supported on `image` models.
481
+ */
482
+ export const UpdatePromptPromptsFormat = {
483
+ Url: "url",
484
+ B64Json: "b64_json",
485
+ Text: "text",
486
+ JsonObject: "json_object",
487
+ } as const;
488
+ /**
489
+ * Only supported on `image` models.
490
+ */
491
+ export type UpdatePromptPromptsFormat = ClosedEnum<
492
+ typeof UpdatePromptPromptsFormat
493
+ >;
494
+
495
+ export const UpdatePromptResponseFormatPromptsResponse200Type = {
496
+ JsonObject: "json_object",
497
+ } as const;
498
+ export type UpdatePromptResponseFormatPromptsResponse200Type = ClosedEnum<
499
+ typeof UpdatePromptResponseFormatPromptsResponse200Type
500
+ >;
501
+
502
+ export type UpdatePromptResponseFormatPrompts2 = {
503
+ type: UpdatePromptResponseFormatPromptsResponse200Type;
504
+ };
505
+
506
+ export const UpdatePromptResponseFormatPromptsResponseType = {
507
+ JsonSchema: "json_schema",
508
+ } as const;
509
+ export type UpdatePromptResponseFormatPromptsResponseType = ClosedEnum<
510
+ typeof UpdatePromptResponseFormatPromptsResponseType
511
+ >;
512
+
513
+ export type UpdatePromptResponseFormatJsonSchema = {
514
+ name: string;
515
+ strict?: boolean | undefined;
516
+ schema: { [k: string]: any };
517
+ };
518
+
519
+ export type UpdatePromptResponseFormatPrompts1 = {
520
+ type: UpdatePromptResponseFormatPromptsResponseType;
521
+ jsonSchema: UpdatePromptResponseFormatJsonSchema;
522
+ };
523
+
524
+ /**
525
+ * An object specifying the format that the model must output.
526
+ *
527
+ * @remarks
528
+ *
529
+ * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
530
+ *
531
+ * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
532
+ *
533
+ * 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.
534
+ */
535
+ export type UpdatePromptPromptsResponseFormat =
536
+ | UpdatePromptResponseFormatPrompts1
537
+ | UpdatePromptResponseFormatPrompts2;
538
+
539
+ /**
540
+ * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
541
+ */
542
+ export const UpdatePromptPromptsPhotoRealVersion = {
543
+ V1: "v1",
544
+ V2: "v2",
545
+ } as const;
546
+ /**
547
+ * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
548
+ */
549
+ export type UpdatePromptPromptsPhotoRealVersion = ClosedEnum<
550
+ typeof UpdatePromptPromptsPhotoRealVersion
551
+ >;
552
+
553
+ /**
554
+ * The format to return the embeddings
555
+ */
556
+ export const UpdatePromptPromptsEncodingFormat = {
557
+ Float: "float",
558
+ Base64: "base64",
559
+ } as const;
560
+ /**
561
+ * The format to return the embeddings
562
+ */
563
+ export type UpdatePromptPromptsEncodingFormat = ClosedEnum<
564
+ typeof UpdatePromptPromptsEncodingFormat
565
+ >;
566
+
567
+ /**
568
+ * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
569
+ */
570
+ export const UpdatePromptPromptsReasoningEffort = {
571
+ Low: "low",
572
+ Medium: "medium",
573
+ High: "high",
574
+ } as const;
575
+ /**
576
+ * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
577
+ */
578
+ export type UpdatePromptPromptsReasoningEffort = ClosedEnum<
579
+ typeof UpdatePromptPromptsReasoningEffort
580
+ >;
581
+
582
+ /**
583
+ * Model Parameters: Not all parameters apply to every model
584
+ */
585
+ export type UpdatePromptPromptsModelParameters = {
586
+ /**
587
+ * Only supported on `chat` and `completion` models.
588
+ */
589
+ temperature?: number | undefined;
590
+ /**
591
+ * Only supported on `chat` and `completion` models.
592
+ */
593
+ maxTokens?: number | undefined;
594
+ /**
595
+ * Only supported on `chat` and `completion` models.
596
+ */
597
+ topK?: number | undefined;
598
+ /**
599
+ * Only supported on `chat` and `completion` models.
600
+ */
601
+ topP?: number | undefined;
602
+ /**
603
+ * Only supported on `chat` and `completion` models.
604
+ */
605
+ frequencyPenalty?: number | undefined;
606
+ /**
607
+ * Only supported on `chat` and `completion` models.
608
+ */
609
+ presencePenalty?: number | undefined;
610
+ /**
611
+ * Only supported on `image` models.
612
+ */
613
+ numImages?: number | undefined;
614
+ /**
615
+ * Best effort deterministic seed for the model. Currently only OpenAI models support these
616
+ */
617
+ seed?: number | undefined;
618
+ /**
619
+ * Only supported on `image` models.
620
+ */
621
+ format?: UpdatePromptPromptsFormat | undefined;
622
+ /**
623
+ * Only supported on `image` models.
624
+ */
625
+ dimensions?: string | undefined;
626
+ /**
627
+ * Only supported on `image` models.
628
+ */
629
+ quality?: string | undefined;
630
+ /**
631
+ * Only supported on `image` models.
632
+ */
633
+ style?: string | undefined;
634
+ /**
635
+ * An object specifying the format that the model must output.
636
+ *
637
+ * @remarks
638
+ *
639
+ * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
640
+ *
641
+ * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
642
+ *
643
+ * 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.
644
+ */
645
+ responseFormat?:
646
+ | UpdatePromptResponseFormatPrompts1
647
+ | UpdatePromptResponseFormatPrompts2
648
+ | null
649
+ | undefined;
650
+ /**
651
+ * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
652
+ */
653
+ photoRealVersion?: UpdatePromptPromptsPhotoRealVersion | undefined;
654
+ /**
655
+ * The format to return the embeddings
656
+ */
657
+ encodingFormat?: UpdatePromptPromptsEncodingFormat | undefined;
658
+ /**
659
+ * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
660
+ */
661
+ reasoningEffort?: UpdatePromptPromptsReasoningEffort | undefined;
662
+ /**
663
+ * 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`
664
+ */
665
+ budgetTokens?: number | undefined;
666
+ };
667
+
668
+ export const UpdatePromptPromptsProvider = {
669
+ Cohere: "cohere",
670
+ Openai: "openai",
671
+ Anthropic: "anthropic",
672
+ Huggingface: "huggingface",
673
+ Replicate: "replicate",
674
+ Google: "google",
675
+ GoogleAi: "google-ai",
676
+ Azure: "azure",
677
+ Aws: "aws",
678
+ Anyscale: "anyscale",
679
+ Perplexity: "perplexity",
680
+ Groq: "groq",
681
+ Fal: "fal",
682
+ Leonardoai: "leonardoai",
683
+ Nvidia: "nvidia",
684
+ Jina: "jina",
685
+ Togetherai: "togetherai",
686
+ Elevenlabs: "elevenlabs",
687
+ Litellm: "litellm",
688
+ } as const;
689
+ export type UpdatePromptPromptsProvider = ClosedEnum<
690
+ typeof UpdatePromptPromptsProvider
691
+ >;
692
+
693
+ /**
694
+ * The role of the prompt message
695
+ */
696
+ export const UpdatePromptPromptsRole = {
697
+ System: "system",
698
+ Assistant: "assistant",
699
+ User: "user",
700
+ Exception: "exception",
701
+ Tool: "tool",
702
+ Prompt: "prompt",
703
+ Correction: "correction",
704
+ ExpectedOutput: "expected_output",
705
+ } as const;
706
+ /**
707
+ * The role of the prompt message
708
+ */
709
+ export type UpdatePromptPromptsRole = ClosedEnum<
710
+ typeof UpdatePromptPromptsRole
711
+ >;
712
+
713
+ /**
714
+ * The type of the content part. Always `file`.
715
+ */
716
+ export const UpdatePrompt2PromptsResponse200ApplicationJSONType = {
717
+ File: "file",
718
+ } as const;
719
+ /**
720
+ * The type of the content part. Always `file`.
721
+ */
722
+ export type UpdatePrompt2PromptsResponse200ApplicationJSONType = ClosedEnum<
723
+ typeof UpdatePrompt2PromptsResponse200ApplicationJSONType
724
+ >;
725
+
726
+ export type UpdatePrompt2PromptsFile = {
727
+ /**
728
+ * The base64 encoded file data, used when passing the file to the model as a string.
729
+ */
730
+ fileData: string;
731
+ /**
732
+ * The name of the file, used when passing the file to the model as a string.
733
+ */
734
+ filename?: string | undefined;
735
+ };
736
+
737
+ export type UpdatePrompt2Prompts3 = {
738
+ /**
739
+ * The type of the content part. Always `file`.
740
+ */
741
+ type: UpdatePrompt2PromptsResponse200ApplicationJSONType;
742
+ file: UpdatePrompt2PromptsFile;
743
+ };
744
+
745
+ export const UpdatePrompt2PromptsResponse200Type = {
746
+ ImageUrl: "image_url",
747
+ } as const;
748
+ export type UpdatePrompt2PromptsResponse200Type = ClosedEnum<
749
+ typeof UpdatePrompt2PromptsResponse200Type
750
+ >;
751
+
752
+ export type UpdatePrompt2PromptsImageUrl = {
753
+ /**
754
+ * The orq.ai id of the image
755
+ */
756
+ id?: string | undefined;
757
+ /**
758
+ * Either a URL of the image or the base64 encoded data URI.
759
+ */
760
+ url: string;
761
+ /**
762
+ * Specifies the detail level of the image. Currently only supported with OpenAI models
763
+ */
764
+ detail?: string | undefined;
765
+ };
766
+
767
+ /**
768
+ * The image part of the prompt message. Only supported with vision models.
769
+ */
770
+ export type UpdatePrompt2Prompts2 = {
771
+ type: UpdatePrompt2PromptsResponse200Type;
772
+ imageUrl: UpdatePrompt2PromptsImageUrl;
773
+ };
774
+
775
+ export const UpdatePrompt2PromptsResponseType = {
776
+ Text: "text",
777
+ } as const;
778
+ export type UpdatePrompt2PromptsResponseType = ClosedEnum<
779
+ typeof UpdatePrompt2PromptsResponseType
780
+ >;
781
+
782
+ /**
783
+ * Text content part of a prompt message
784
+ */
785
+ export type UpdatePrompt2Prompts1 = {
786
+ type: UpdatePrompt2PromptsResponseType;
787
+ text: string;
788
+ };
789
+
790
+ export type UpdatePromptContentPrompts2 =
791
+ | UpdatePrompt2Prompts1
792
+ | UpdatePrompt2Prompts2
793
+ | UpdatePrompt2Prompts3;
794
+
795
+ /**
796
+ * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
797
+ */
798
+ export type UpdatePromptPromptsContent =
799
+ | string
800
+ | Array<
801
+ UpdatePrompt2Prompts1 | UpdatePrompt2Prompts2 | UpdatePrompt2Prompts3
802
+ >;
803
+
804
+ export const UpdatePromptPromptsResponseType = {
805
+ Function: "function",
806
+ } as const;
807
+ export type UpdatePromptPromptsResponseType = ClosedEnum<
808
+ typeof UpdatePromptPromptsResponseType
809
+ >;
810
+
811
+ export type UpdatePromptPromptsFunction = {
812
+ name: string;
813
+ /**
814
+ * JSON string arguments for the functions
815
+ */
816
+ arguments: string;
817
+ };
818
+
819
+ export type UpdatePromptPromptsToolCalls = {
820
+ id?: string | undefined;
821
+ index?: number | undefined;
822
+ type: UpdatePromptPromptsResponseType;
823
+ function: UpdatePromptPromptsFunction;
824
+ };
825
+
826
+ export type UpdatePromptPromptsMessages = {
827
+ /**
828
+ * The role of the prompt message
829
+ */
830
+ role: UpdatePromptPromptsRole;
831
+ /**
832
+ * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
833
+ */
834
+ content:
835
+ | string
836
+ | Array<
837
+ UpdatePrompt2Prompts1 | UpdatePrompt2Prompts2 | UpdatePrompt2Prompts3
838
+ >;
839
+ toolCalls?: Array<UpdatePromptPromptsToolCalls> | undefined;
840
+ toolCallId?: string | undefined;
841
+ };
842
+
843
+ /**
844
+ * A list of messages compatible with the openAI schema
845
+ */
846
+ export type UpdatePromptPromptsPromptConfig = {
847
+ stream?: boolean | undefined;
848
+ model?: string | undefined;
849
+ /**
850
+ * The id of the resource
851
+ */
852
+ modelDbId?: string | null | undefined;
853
+ /**
854
+ * The modality of the model
855
+ */
856
+ modelType?: UpdatePromptModelType | null | undefined;
857
+ /**
858
+ * Model Parameters: Not all parameters apply to every model
859
+ */
860
+ modelParameters?: UpdatePromptPromptsModelParameters | undefined;
861
+ provider?: UpdatePromptPromptsProvider | undefined;
862
+ /**
863
+ * The id of the resource
864
+ */
865
+ integrationId?: string | null | undefined;
866
+ version?: string | undefined;
867
+ messages: Array<UpdatePromptPromptsMessages>;
868
+ };
869
+
870
+ export const UpdatePromptPromptsUseCases = {
871
+ AgentsSimulations: "Agents simulations",
872
+ Agents: "Agents",
873
+ APIInteraction: "API interaction",
874
+ AutonomousAgents: "Autonomous Agents",
875
+ Chatbots: "Chatbots",
876
+ Classification: "Classification",
877
+ CodeUnderstanding: "Code understanding",
878
+ CodeWriting: "Code writing",
879
+ Conversation: "Conversation",
880
+ DocumentsQA: "Documents QA",
881
+ Evaluation: "Evaluation",
882
+ Extraction: "Extraction",
883
+ MultiModal: "Multi-modal",
884
+ SelfChecking: "Self-checking",
885
+ SentimentAnalysis: "Sentiment analysis",
886
+ Sql: "SQL",
887
+ Summarization: "Summarization",
888
+ Tagging: "Tagging",
889
+ TranslationDocument: "Translation (document)",
890
+ TranslationSentences: "Translation (sentences)",
891
+ } as const;
892
+ export type UpdatePromptPromptsUseCases = ClosedEnum<
893
+ typeof UpdatePromptPromptsUseCases
894
+ >;
895
+
896
+ /**
897
+ * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
898
+ */
899
+ export const UpdatePromptPromptsLanguage = {
900
+ Chinese: "Chinese",
901
+ Dutch: "Dutch",
902
+ English: "English",
903
+ French: "French",
904
+ German: "German",
905
+ Russian: "Russian",
906
+ Spanish: "Spanish",
907
+ } as const;
908
+ /**
909
+ * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
910
+ */
911
+ export type UpdatePromptPromptsLanguage = ClosedEnum<
912
+ typeof UpdatePromptPromptsLanguage
913
+ >;
914
+
915
+ export type UpdatePromptPromptsMetadata = {
916
+ /**
917
+ * 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
918
+ */
919
+ useCases?: Array<UpdatePromptPromptsUseCases> | undefined;
920
+ /**
921
+ * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
922
+ */
923
+ language?: UpdatePromptPromptsLanguage | null | undefined;
924
+ };
925
+
926
+ /**
927
+ * Prompt updated.
928
+ */
929
+ export type UpdatePromptResponseBody = {
930
+ id: string;
931
+ type: UpdatePromptPromptsType;
932
+ owner: string;
933
+ domainId: string;
934
+ created: string;
935
+ updated: string;
936
+ createdById?: string | null | undefined;
937
+ updatedById?: string | null | undefined;
938
+ /**
939
+ * The prompt’s name, meant to be displayable in the UI.
940
+ */
941
+ displayName: string;
942
+ /**
943
+ * The prompt’s description, meant to be displayable in the UI. Use this field to optionally store a long form explanation of the prompt for your own purpose
944
+ */
945
+ description?: string | null | undefined;
946
+ /**
947
+ * A list of messages compatible with the openAI schema
948
+ */
949
+ promptConfig: UpdatePromptPromptsPromptConfig;
950
+ metadata?: UpdatePromptPromptsMetadata | undefined;
951
+ };
952
+
953
+ /** @internal */
954
+ export const UpdatePromptFormat$inboundSchema: z.ZodNativeEnum<
955
+ typeof UpdatePromptFormat
956
+ > = z.nativeEnum(UpdatePromptFormat);
957
+
958
+ /** @internal */
959
+ export const UpdatePromptFormat$outboundSchema: z.ZodNativeEnum<
960
+ typeof UpdatePromptFormat
961
+ > = UpdatePromptFormat$inboundSchema;
962
+
963
+ /**
964
+ * @internal
965
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
966
+ */
967
+ export namespace UpdatePromptFormat$ {
968
+ /** @deprecated use `UpdatePromptFormat$inboundSchema` instead. */
969
+ export const inboundSchema = UpdatePromptFormat$inboundSchema;
970
+ /** @deprecated use `UpdatePromptFormat$outboundSchema` instead. */
971
+ export const outboundSchema = UpdatePromptFormat$outboundSchema;
972
+ }
973
+
974
+ /** @internal */
975
+ export const UpdatePromptResponseFormatPromptsType$inboundSchema:
976
+ z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsType> = z.nativeEnum(
977
+ UpdatePromptResponseFormatPromptsType,
978
+ );
979
+
980
+ /** @internal */
981
+ export const UpdatePromptResponseFormatPromptsType$outboundSchema:
982
+ z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsType> =
983
+ UpdatePromptResponseFormatPromptsType$inboundSchema;
984
+
985
+ /**
986
+ * @internal
987
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
988
+ */
989
+ export namespace UpdatePromptResponseFormatPromptsType$ {
990
+ /** @deprecated use `UpdatePromptResponseFormatPromptsType$inboundSchema` instead. */
991
+ export const inboundSchema =
992
+ UpdatePromptResponseFormatPromptsType$inboundSchema;
993
+ /** @deprecated use `UpdatePromptResponseFormatPromptsType$outboundSchema` instead. */
994
+ export const outboundSchema =
995
+ UpdatePromptResponseFormatPromptsType$outboundSchema;
996
+ }
997
+
998
+ /** @internal */
999
+ export const UpdatePromptResponseFormat2$inboundSchema: z.ZodType<
1000
+ UpdatePromptResponseFormat2,
1001
+ z.ZodTypeDef,
1002
+ unknown
1003
+ > = z.object({
1004
+ type: UpdatePromptResponseFormatPromptsType$inboundSchema,
1005
+ });
1006
+
1007
+ /** @internal */
1008
+ export type UpdatePromptResponseFormat2$Outbound = {
1009
+ type: string;
1010
+ };
1011
+
1012
+ /** @internal */
1013
+ export const UpdatePromptResponseFormat2$outboundSchema: z.ZodType<
1014
+ UpdatePromptResponseFormat2$Outbound,
1015
+ z.ZodTypeDef,
1016
+ UpdatePromptResponseFormat2
1017
+ > = z.object({
1018
+ type: UpdatePromptResponseFormatPromptsType$outboundSchema,
1019
+ });
1020
+
1021
+ /**
1022
+ * @internal
1023
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1024
+ */
1025
+ export namespace UpdatePromptResponseFormat2$ {
1026
+ /** @deprecated use `UpdatePromptResponseFormat2$inboundSchema` instead. */
1027
+ export const inboundSchema = UpdatePromptResponseFormat2$inboundSchema;
1028
+ /** @deprecated use `UpdatePromptResponseFormat2$outboundSchema` instead. */
1029
+ export const outboundSchema = UpdatePromptResponseFormat2$outboundSchema;
1030
+ /** @deprecated use `UpdatePromptResponseFormat2$Outbound` instead. */
1031
+ export type Outbound = UpdatePromptResponseFormat2$Outbound;
1032
+ }
1033
+
1034
+ export function updatePromptResponseFormat2ToJSON(
1035
+ updatePromptResponseFormat2: UpdatePromptResponseFormat2,
1036
+ ): string {
1037
+ return JSON.stringify(
1038
+ UpdatePromptResponseFormat2$outboundSchema.parse(
1039
+ updatePromptResponseFormat2,
1040
+ ),
1041
+ );
1042
+ }
1043
+
1044
+ export function updatePromptResponseFormat2FromJSON(
1045
+ jsonString: string,
1046
+ ): SafeParseResult<UpdatePromptResponseFormat2, SDKValidationError> {
1047
+ return safeParse(
1048
+ jsonString,
1049
+ (x) => UpdatePromptResponseFormat2$inboundSchema.parse(JSON.parse(x)),
1050
+ `Failed to parse 'UpdatePromptResponseFormat2' from JSON`,
1051
+ );
1052
+ }
1053
+
1054
+ /** @internal */
1055
+ export const UpdatePromptResponseFormatType$inboundSchema: z.ZodNativeEnum<
1056
+ typeof UpdatePromptResponseFormatType
1057
+ > = z.nativeEnum(UpdatePromptResponseFormatType);
1058
+
1059
+ /** @internal */
1060
+ export const UpdatePromptResponseFormatType$outboundSchema: z.ZodNativeEnum<
1061
+ typeof UpdatePromptResponseFormatType
1062
+ > = UpdatePromptResponseFormatType$inboundSchema;
1063
+
1064
+ /**
1065
+ * @internal
1066
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1067
+ */
1068
+ export namespace UpdatePromptResponseFormatType$ {
1069
+ /** @deprecated use `UpdatePromptResponseFormatType$inboundSchema` instead. */
1070
+ export const inboundSchema = UpdatePromptResponseFormatType$inboundSchema;
1071
+ /** @deprecated use `UpdatePromptResponseFormatType$outboundSchema` instead. */
1072
+ export const outboundSchema = UpdatePromptResponseFormatType$outboundSchema;
1073
+ }
1074
+
1075
+ /** @internal */
1076
+ export const ResponseFormatJsonSchema$inboundSchema: z.ZodType<
1077
+ ResponseFormatJsonSchema,
1078
+ z.ZodTypeDef,
1079
+ unknown
1080
+ > = z.object({
1081
+ name: z.string(),
1082
+ strict: z.boolean().optional(),
1083
+ schema: z.record(z.any()),
1084
+ });
1085
+
1086
+ /** @internal */
1087
+ export type ResponseFormatJsonSchema$Outbound = {
1088
+ name: string;
1089
+ strict?: boolean | undefined;
1090
+ schema: { [k: string]: any };
1091
+ };
1092
+
1093
+ /** @internal */
1094
+ export const ResponseFormatJsonSchema$outboundSchema: z.ZodType<
1095
+ ResponseFormatJsonSchema$Outbound,
1096
+ z.ZodTypeDef,
1097
+ ResponseFormatJsonSchema
1098
+ > = z.object({
1099
+ name: z.string(),
1100
+ strict: z.boolean().optional(),
1101
+ schema: z.record(z.any()),
1102
+ });
1103
+
1104
+ /**
1105
+ * @internal
1106
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1107
+ */
1108
+ export namespace ResponseFormatJsonSchema$ {
1109
+ /** @deprecated use `ResponseFormatJsonSchema$inboundSchema` instead. */
1110
+ export const inboundSchema = ResponseFormatJsonSchema$inboundSchema;
1111
+ /** @deprecated use `ResponseFormatJsonSchema$outboundSchema` instead. */
1112
+ export const outboundSchema = ResponseFormatJsonSchema$outboundSchema;
1113
+ /** @deprecated use `ResponseFormatJsonSchema$Outbound` instead. */
1114
+ export type Outbound = ResponseFormatJsonSchema$Outbound;
1115
+ }
1116
+
1117
+ export function responseFormatJsonSchemaToJSON(
1118
+ responseFormatJsonSchema: ResponseFormatJsonSchema,
1119
+ ): string {
1120
+ return JSON.stringify(
1121
+ ResponseFormatJsonSchema$outboundSchema.parse(responseFormatJsonSchema),
1122
+ );
1123
+ }
1124
+
1125
+ export function responseFormatJsonSchemaFromJSON(
1126
+ jsonString: string,
1127
+ ): SafeParseResult<ResponseFormatJsonSchema, SDKValidationError> {
1128
+ return safeParse(
1129
+ jsonString,
1130
+ (x) => ResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
1131
+ `Failed to parse 'ResponseFormatJsonSchema' from JSON`,
1132
+ );
1133
+ }
1134
+
1135
+ /** @internal */
1136
+ export const UpdatePromptResponseFormat1$inboundSchema: z.ZodType<
1137
+ UpdatePromptResponseFormat1,
1138
+ z.ZodTypeDef,
1139
+ unknown
1140
+ > = z.object({
1141
+ type: UpdatePromptResponseFormatType$inboundSchema,
1142
+ json_schema: z.lazy(() => ResponseFormatJsonSchema$inboundSchema),
1143
+ }).transform((v) => {
1144
+ return remap$(v, {
1145
+ "json_schema": "jsonSchema",
1146
+ });
1147
+ });
1148
+
1149
+ /** @internal */
1150
+ export type UpdatePromptResponseFormat1$Outbound = {
1151
+ type: string;
1152
+ json_schema: ResponseFormatJsonSchema$Outbound;
1153
+ };
1154
+
1155
+ /** @internal */
1156
+ export const UpdatePromptResponseFormat1$outboundSchema: z.ZodType<
1157
+ UpdatePromptResponseFormat1$Outbound,
1158
+ z.ZodTypeDef,
1159
+ UpdatePromptResponseFormat1
1160
+ > = z.object({
1161
+ type: UpdatePromptResponseFormatType$outboundSchema,
1162
+ jsonSchema: z.lazy(() => ResponseFormatJsonSchema$outboundSchema),
1163
+ }).transform((v) => {
1164
+ return remap$(v, {
1165
+ jsonSchema: "json_schema",
1166
+ });
1167
+ });
1168
+
1169
+ /**
1170
+ * @internal
1171
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1172
+ */
1173
+ export namespace UpdatePromptResponseFormat1$ {
1174
+ /** @deprecated use `UpdatePromptResponseFormat1$inboundSchema` instead. */
1175
+ export const inboundSchema = UpdatePromptResponseFormat1$inboundSchema;
1176
+ /** @deprecated use `UpdatePromptResponseFormat1$outboundSchema` instead. */
1177
+ export const outboundSchema = UpdatePromptResponseFormat1$outboundSchema;
1178
+ /** @deprecated use `UpdatePromptResponseFormat1$Outbound` instead. */
1179
+ export type Outbound = UpdatePromptResponseFormat1$Outbound;
1180
+ }
1181
+
1182
+ export function updatePromptResponseFormat1ToJSON(
1183
+ updatePromptResponseFormat1: UpdatePromptResponseFormat1,
1184
+ ): string {
1185
+ return JSON.stringify(
1186
+ UpdatePromptResponseFormat1$outboundSchema.parse(
1187
+ updatePromptResponseFormat1,
1188
+ ),
1189
+ );
1190
+ }
1191
+
1192
+ export function updatePromptResponseFormat1FromJSON(
1193
+ jsonString: string,
1194
+ ): SafeParseResult<UpdatePromptResponseFormat1, SDKValidationError> {
1195
+ return safeParse(
1196
+ jsonString,
1197
+ (x) => UpdatePromptResponseFormat1$inboundSchema.parse(JSON.parse(x)),
1198
+ `Failed to parse 'UpdatePromptResponseFormat1' from JSON`,
1199
+ );
1200
+ }
1201
+
1202
+ /** @internal */
1203
+ export const UpdatePromptResponseFormat$inboundSchema: z.ZodType<
1204
+ UpdatePromptResponseFormat,
1205
+ z.ZodTypeDef,
1206
+ unknown
1207
+ > = z.union([
1208
+ z.lazy(() => UpdatePromptResponseFormat1$inboundSchema),
1209
+ z.lazy(() => UpdatePromptResponseFormat2$inboundSchema),
1210
+ ]);
1211
+
1212
+ /** @internal */
1213
+ export type UpdatePromptResponseFormat$Outbound =
1214
+ | UpdatePromptResponseFormat1$Outbound
1215
+ | UpdatePromptResponseFormat2$Outbound;
1216
+
1217
+ /** @internal */
1218
+ export const UpdatePromptResponseFormat$outboundSchema: z.ZodType<
1219
+ UpdatePromptResponseFormat$Outbound,
1220
+ z.ZodTypeDef,
1221
+ UpdatePromptResponseFormat
1222
+ > = z.union([
1223
+ z.lazy(() => UpdatePromptResponseFormat1$outboundSchema),
1224
+ z.lazy(() => UpdatePromptResponseFormat2$outboundSchema),
1225
+ ]);
1226
+
1227
+ /**
1228
+ * @internal
1229
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1230
+ */
1231
+ export namespace UpdatePromptResponseFormat$ {
1232
+ /** @deprecated use `UpdatePromptResponseFormat$inboundSchema` instead. */
1233
+ export const inboundSchema = UpdatePromptResponseFormat$inboundSchema;
1234
+ /** @deprecated use `UpdatePromptResponseFormat$outboundSchema` instead. */
1235
+ export const outboundSchema = UpdatePromptResponseFormat$outboundSchema;
1236
+ /** @deprecated use `UpdatePromptResponseFormat$Outbound` instead. */
1237
+ export type Outbound = UpdatePromptResponseFormat$Outbound;
1238
+ }
1239
+
1240
+ export function updatePromptResponseFormatToJSON(
1241
+ updatePromptResponseFormat: UpdatePromptResponseFormat,
1242
+ ): string {
1243
+ return JSON.stringify(
1244
+ UpdatePromptResponseFormat$outboundSchema.parse(updatePromptResponseFormat),
1245
+ );
1246
+ }
1247
+
1248
+ export function updatePromptResponseFormatFromJSON(
1249
+ jsonString: string,
1250
+ ): SafeParseResult<UpdatePromptResponseFormat, SDKValidationError> {
1251
+ return safeParse(
1252
+ jsonString,
1253
+ (x) => UpdatePromptResponseFormat$inboundSchema.parse(JSON.parse(x)),
1254
+ `Failed to parse 'UpdatePromptResponseFormat' from JSON`,
1255
+ );
1256
+ }
1257
+
1258
+ /** @internal */
1259
+ export const UpdatePromptPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
1260
+ typeof UpdatePromptPhotoRealVersion
1261
+ > = z.nativeEnum(UpdatePromptPhotoRealVersion);
1262
+
1263
+ /** @internal */
1264
+ export const UpdatePromptPhotoRealVersion$outboundSchema: z.ZodNativeEnum<
1265
+ typeof UpdatePromptPhotoRealVersion
1266
+ > = UpdatePromptPhotoRealVersion$inboundSchema;
1267
+
1268
+ /**
1269
+ * @internal
1270
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1271
+ */
1272
+ export namespace UpdatePromptPhotoRealVersion$ {
1273
+ /** @deprecated use `UpdatePromptPhotoRealVersion$inboundSchema` instead. */
1274
+ export const inboundSchema = UpdatePromptPhotoRealVersion$inboundSchema;
1275
+ /** @deprecated use `UpdatePromptPhotoRealVersion$outboundSchema` instead. */
1276
+ export const outboundSchema = UpdatePromptPhotoRealVersion$outboundSchema;
1277
+ }
1278
+
1279
+ /** @internal */
1280
+ export const UpdatePromptEncodingFormat$inboundSchema: z.ZodNativeEnum<
1281
+ typeof UpdatePromptEncodingFormat
1282
+ > = z.nativeEnum(UpdatePromptEncodingFormat);
1283
+
1284
+ /** @internal */
1285
+ export const UpdatePromptEncodingFormat$outboundSchema: z.ZodNativeEnum<
1286
+ typeof UpdatePromptEncodingFormat
1287
+ > = UpdatePromptEncodingFormat$inboundSchema;
1288
+
1289
+ /**
1290
+ * @internal
1291
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1292
+ */
1293
+ export namespace UpdatePromptEncodingFormat$ {
1294
+ /** @deprecated use `UpdatePromptEncodingFormat$inboundSchema` instead. */
1295
+ export const inboundSchema = UpdatePromptEncodingFormat$inboundSchema;
1296
+ /** @deprecated use `UpdatePromptEncodingFormat$outboundSchema` instead. */
1297
+ export const outboundSchema = UpdatePromptEncodingFormat$outboundSchema;
1298
+ }
1299
+
1300
+ /** @internal */
1301
+ export const UpdatePromptReasoningEffort$inboundSchema: z.ZodNativeEnum<
1302
+ typeof UpdatePromptReasoningEffort
1303
+ > = z.nativeEnum(UpdatePromptReasoningEffort);
1304
+
1305
+ /** @internal */
1306
+ export const UpdatePromptReasoningEffort$outboundSchema: z.ZodNativeEnum<
1307
+ typeof UpdatePromptReasoningEffort
1308
+ > = UpdatePromptReasoningEffort$inboundSchema;
1309
+
1310
+ /**
1311
+ * @internal
1312
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1313
+ */
1314
+ export namespace UpdatePromptReasoningEffort$ {
1315
+ /** @deprecated use `UpdatePromptReasoningEffort$inboundSchema` instead. */
1316
+ export const inboundSchema = UpdatePromptReasoningEffort$inboundSchema;
1317
+ /** @deprecated use `UpdatePromptReasoningEffort$outboundSchema` instead. */
1318
+ export const outboundSchema = UpdatePromptReasoningEffort$outboundSchema;
1319
+ }
1320
+
1321
+ /** @internal */
1322
+ export const UpdatePromptModelParameters$inboundSchema: z.ZodType<
1323
+ UpdatePromptModelParameters,
1324
+ z.ZodTypeDef,
1325
+ unknown
1326
+ > = z.object({
1327
+ temperature: z.number().optional(),
1328
+ maxTokens: z.number().optional(),
1329
+ topK: z.number().optional(),
1330
+ topP: z.number().optional(),
1331
+ frequencyPenalty: z.number().optional(),
1332
+ presencePenalty: z.number().optional(),
1333
+ numImages: z.number().optional(),
1334
+ seed: z.number().optional(),
1335
+ format: UpdatePromptFormat$inboundSchema.optional(),
1336
+ dimensions: z.string().optional(),
1337
+ quality: z.string().optional(),
1338
+ style: z.string().optional(),
1339
+ responseFormat: z.nullable(
1340
+ z.union([
1341
+ z.lazy(() => UpdatePromptResponseFormat1$inboundSchema),
1342
+ z.lazy(() => UpdatePromptResponseFormat2$inboundSchema),
1343
+ ]),
1344
+ ).optional(),
1345
+ photoRealVersion: UpdatePromptPhotoRealVersion$inboundSchema.optional(),
1346
+ encoding_format: UpdatePromptEncodingFormat$inboundSchema.optional(),
1347
+ reasoningEffort: UpdatePromptReasoningEffort$inboundSchema.optional(),
1348
+ budgetTokens: z.number().optional(),
1349
+ }).transform((v) => {
1350
+ return remap$(v, {
1351
+ "encoding_format": "encodingFormat",
1352
+ });
1353
+ });
1354
+
1355
+ /** @internal */
1356
+ export type UpdatePromptModelParameters$Outbound = {
1357
+ temperature?: number | undefined;
1358
+ maxTokens?: number | undefined;
1359
+ topK?: number | undefined;
1360
+ topP?: number | undefined;
1361
+ frequencyPenalty?: number | undefined;
1362
+ presencePenalty?: number | undefined;
1363
+ numImages?: number | undefined;
1364
+ seed?: number | undefined;
1365
+ format?: string | undefined;
1366
+ dimensions?: string | undefined;
1367
+ quality?: string | undefined;
1368
+ style?: string | undefined;
1369
+ responseFormat?:
1370
+ | UpdatePromptResponseFormat1$Outbound
1371
+ | UpdatePromptResponseFormat2$Outbound
1372
+ | null
1373
+ | undefined;
1374
+ photoRealVersion?: string | undefined;
1375
+ encoding_format?: string | undefined;
1376
+ reasoningEffort?: string | undefined;
1377
+ budgetTokens?: number | undefined;
1378
+ };
1379
+
1380
+ /** @internal */
1381
+ export const UpdatePromptModelParameters$outboundSchema: z.ZodType<
1382
+ UpdatePromptModelParameters$Outbound,
1383
+ z.ZodTypeDef,
1384
+ UpdatePromptModelParameters
1385
+ > = z.object({
1386
+ temperature: z.number().optional(),
1387
+ maxTokens: z.number().optional(),
1388
+ topK: z.number().optional(),
1389
+ topP: z.number().optional(),
1390
+ frequencyPenalty: z.number().optional(),
1391
+ presencePenalty: z.number().optional(),
1392
+ numImages: z.number().optional(),
1393
+ seed: z.number().optional(),
1394
+ format: UpdatePromptFormat$outboundSchema.optional(),
1395
+ dimensions: z.string().optional(),
1396
+ quality: z.string().optional(),
1397
+ style: z.string().optional(),
1398
+ responseFormat: z.nullable(
1399
+ z.union([
1400
+ z.lazy(() => UpdatePromptResponseFormat1$outboundSchema),
1401
+ z.lazy(() => UpdatePromptResponseFormat2$outboundSchema),
1402
+ ]),
1403
+ ).optional(),
1404
+ photoRealVersion: UpdatePromptPhotoRealVersion$outboundSchema.optional(),
1405
+ encodingFormat: UpdatePromptEncodingFormat$outboundSchema.optional(),
1406
+ reasoningEffort: UpdatePromptReasoningEffort$outboundSchema.optional(),
1407
+ budgetTokens: z.number().optional(),
1408
+ }).transform((v) => {
1409
+ return remap$(v, {
1410
+ encodingFormat: "encoding_format",
1411
+ });
1412
+ });
1413
+
1414
+ /**
1415
+ * @internal
1416
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1417
+ */
1418
+ export namespace UpdatePromptModelParameters$ {
1419
+ /** @deprecated use `UpdatePromptModelParameters$inboundSchema` instead. */
1420
+ export const inboundSchema = UpdatePromptModelParameters$inboundSchema;
1421
+ /** @deprecated use `UpdatePromptModelParameters$outboundSchema` instead. */
1422
+ export const outboundSchema = UpdatePromptModelParameters$outboundSchema;
1423
+ /** @deprecated use `UpdatePromptModelParameters$Outbound` instead. */
1424
+ export type Outbound = UpdatePromptModelParameters$Outbound;
1425
+ }
1426
+
1427
+ export function updatePromptModelParametersToJSON(
1428
+ updatePromptModelParameters: UpdatePromptModelParameters,
1429
+ ): string {
1430
+ return JSON.stringify(
1431
+ UpdatePromptModelParameters$outboundSchema.parse(
1432
+ updatePromptModelParameters,
1433
+ ),
1434
+ );
1435
+ }
1436
+
1437
+ export function updatePromptModelParametersFromJSON(
1438
+ jsonString: string,
1439
+ ): SafeParseResult<UpdatePromptModelParameters, SDKValidationError> {
1440
+ return safeParse(
1441
+ jsonString,
1442
+ (x) => UpdatePromptModelParameters$inboundSchema.parse(JSON.parse(x)),
1443
+ `Failed to parse 'UpdatePromptModelParameters' from JSON`,
1444
+ );
1445
+ }
1446
+
1447
+ /** @internal */
1448
+ export const UpdatePromptProvider$inboundSchema: z.ZodNativeEnum<
1449
+ typeof UpdatePromptProvider
1450
+ > = z.nativeEnum(UpdatePromptProvider);
1451
+
1452
+ /** @internal */
1453
+ export const UpdatePromptProvider$outboundSchema: z.ZodNativeEnum<
1454
+ typeof UpdatePromptProvider
1455
+ > = UpdatePromptProvider$inboundSchema;
1456
+
1457
+ /**
1458
+ * @internal
1459
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1460
+ */
1461
+ export namespace UpdatePromptProvider$ {
1462
+ /** @deprecated use `UpdatePromptProvider$inboundSchema` instead. */
1463
+ export const inboundSchema = UpdatePromptProvider$inboundSchema;
1464
+ /** @deprecated use `UpdatePromptProvider$outboundSchema` instead. */
1465
+ export const outboundSchema = UpdatePromptProvider$outboundSchema;
1466
+ }
1467
+
1468
+ /** @internal */
1469
+ export const UpdatePromptRole$inboundSchema: z.ZodNativeEnum<
1470
+ typeof UpdatePromptRole
1471
+ > = z.nativeEnum(UpdatePromptRole);
1472
+
1473
+ /** @internal */
1474
+ export const UpdatePromptRole$outboundSchema: z.ZodNativeEnum<
1475
+ typeof UpdatePromptRole
1476
+ > = UpdatePromptRole$inboundSchema;
1477
+
1478
+ /**
1479
+ * @internal
1480
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1481
+ */
1482
+ export namespace UpdatePromptRole$ {
1483
+ /** @deprecated use `UpdatePromptRole$inboundSchema` instead. */
1484
+ export const inboundSchema = UpdatePromptRole$inboundSchema;
1485
+ /** @deprecated use `UpdatePromptRole$outboundSchema` instead. */
1486
+ export const outboundSchema = UpdatePromptRole$outboundSchema;
1487
+ }
1488
+
1489
+ /** @internal */
1490
+ export const UpdatePrompt2PromptsRequestType$inboundSchema: z.ZodNativeEnum<
1491
+ typeof UpdatePrompt2PromptsRequestType
1492
+ > = z.nativeEnum(UpdatePrompt2PromptsRequestType);
1493
+
1494
+ /** @internal */
1495
+ export const UpdatePrompt2PromptsRequestType$outboundSchema: z.ZodNativeEnum<
1496
+ typeof UpdatePrompt2PromptsRequestType
1497
+ > = UpdatePrompt2PromptsRequestType$inboundSchema;
1498
+
1499
+ /**
1500
+ * @internal
1501
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1502
+ */
1503
+ export namespace UpdatePrompt2PromptsRequestType$ {
1504
+ /** @deprecated use `UpdatePrompt2PromptsRequestType$inboundSchema` instead. */
1505
+ export const inboundSchema = UpdatePrompt2PromptsRequestType$inboundSchema;
1506
+ /** @deprecated use `UpdatePrompt2PromptsRequestType$outboundSchema` instead. */
1507
+ export const outboundSchema = UpdatePrompt2PromptsRequestType$outboundSchema;
1508
+ }
1509
+
1510
+ /** @internal */
1511
+ export const UpdatePrompt2File$inboundSchema: z.ZodType<
1512
+ UpdatePrompt2File,
1513
+ z.ZodTypeDef,
1514
+ unknown
1515
+ > = z.object({
1516
+ file_data: z.string(),
1517
+ filename: z.string().optional(),
1518
+ }).transform((v) => {
1519
+ return remap$(v, {
1520
+ "file_data": "fileData",
1521
+ });
1522
+ });
1523
+
1524
+ /** @internal */
1525
+ export type UpdatePrompt2File$Outbound = {
1526
+ file_data: string;
1527
+ filename?: string | undefined;
1528
+ };
1529
+
1530
+ /** @internal */
1531
+ export const UpdatePrompt2File$outboundSchema: z.ZodType<
1532
+ UpdatePrompt2File$Outbound,
1533
+ z.ZodTypeDef,
1534
+ UpdatePrompt2File
1535
+ > = z.object({
1536
+ fileData: z.string(),
1537
+ filename: z.string().optional(),
1538
+ }).transform((v) => {
1539
+ return remap$(v, {
1540
+ fileData: "file_data",
1541
+ });
1542
+ });
1543
+
1544
+ /**
1545
+ * @internal
1546
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1547
+ */
1548
+ export namespace UpdatePrompt2File$ {
1549
+ /** @deprecated use `UpdatePrompt2File$inboundSchema` instead. */
1550
+ export const inboundSchema = UpdatePrompt2File$inboundSchema;
1551
+ /** @deprecated use `UpdatePrompt2File$outboundSchema` instead. */
1552
+ export const outboundSchema = UpdatePrompt2File$outboundSchema;
1553
+ /** @deprecated use `UpdatePrompt2File$Outbound` instead. */
1554
+ export type Outbound = UpdatePrompt2File$Outbound;
1555
+ }
1556
+
1557
+ export function updatePrompt2FileToJSON(
1558
+ updatePrompt2File: UpdatePrompt2File,
1559
+ ): string {
1560
+ return JSON.stringify(
1561
+ UpdatePrompt2File$outboundSchema.parse(updatePrompt2File),
1562
+ );
1563
+ }
1564
+
1565
+ export function updatePrompt2FileFromJSON(
1566
+ jsonString: string,
1567
+ ): SafeParseResult<UpdatePrompt2File, SDKValidationError> {
1568
+ return safeParse(
1569
+ jsonString,
1570
+ (x) => UpdatePrompt2File$inboundSchema.parse(JSON.parse(x)),
1571
+ `Failed to parse 'UpdatePrompt2File' from JSON`,
1572
+ );
1573
+ }
1574
+
1575
+ /** @internal */
1576
+ export const UpdatePrompt23$inboundSchema: z.ZodType<
1577
+ UpdatePrompt23,
1578
+ z.ZodTypeDef,
1579
+ unknown
1580
+ > = z.object({
1581
+ type: UpdatePrompt2PromptsRequestType$inboundSchema,
1582
+ file: z.lazy(() => UpdatePrompt2File$inboundSchema),
1583
+ });
1584
+
1585
+ /** @internal */
1586
+ export type UpdatePrompt23$Outbound = {
1587
+ type: string;
1588
+ file: UpdatePrompt2File$Outbound;
1589
+ };
1590
+
1591
+ /** @internal */
1592
+ export const UpdatePrompt23$outboundSchema: z.ZodType<
1593
+ UpdatePrompt23$Outbound,
1594
+ z.ZodTypeDef,
1595
+ UpdatePrompt23
1596
+ > = z.object({
1597
+ type: UpdatePrompt2PromptsRequestType$outboundSchema,
1598
+ file: z.lazy(() => UpdatePrompt2File$outboundSchema),
1599
+ });
1600
+
1601
+ /**
1602
+ * @internal
1603
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1604
+ */
1605
+ export namespace UpdatePrompt23$ {
1606
+ /** @deprecated use `UpdatePrompt23$inboundSchema` instead. */
1607
+ export const inboundSchema = UpdatePrompt23$inboundSchema;
1608
+ /** @deprecated use `UpdatePrompt23$outboundSchema` instead. */
1609
+ export const outboundSchema = UpdatePrompt23$outboundSchema;
1610
+ /** @deprecated use `UpdatePrompt23$Outbound` instead. */
1611
+ export type Outbound = UpdatePrompt23$Outbound;
1612
+ }
1613
+
1614
+ export function updatePrompt23ToJSON(updatePrompt23: UpdatePrompt23): string {
1615
+ return JSON.stringify(UpdatePrompt23$outboundSchema.parse(updatePrompt23));
1616
+ }
1617
+
1618
+ export function updatePrompt23FromJSON(
1619
+ jsonString: string,
1620
+ ): SafeParseResult<UpdatePrompt23, SDKValidationError> {
1621
+ return safeParse(
1622
+ jsonString,
1623
+ (x) => UpdatePrompt23$inboundSchema.parse(JSON.parse(x)),
1624
+ `Failed to parse 'UpdatePrompt23' from JSON`,
1625
+ );
1626
+ }
1627
+
1628
+ /** @internal */
1629
+ export const UpdatePrompt2PromptsType$inboundSchema: z.ZodNativeEnum<
1630
+ typeof UpdatePrompt2PromptsType
1631
+ > = z.nativeEnum(UpdatePrompt2PromptsType);
1632
+
1633
+ /** @internal */
1634
+ export const UpdatePrompt2PromptsType$outboundSchema: z.ZodNativeEnum<
1635
+ typeof UpdatePrompt2PromptsType
1636
+ > = UpdatePrompt2PromptsType$inboundSchema;
1637
+
1638
+ /**
1639
+ * @internal
1640
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1641
+ */
1642
+ export namespace UpdatePrompt2PromptsType$ {
1643
+ /** @deprecated use `UpdatePrompt2PromptsType$inboundSchema` instead. */
1644
+ export const inboundSchema = UpdatePrompt2PromptsType$inboundSchema;
1645
+ /** @deprecated use `UpdatePrompt2PromptsType$outboundSchema` instead. */
1646
+ export const outboundSchema = UpdatePrompt2PromptsType$outboundSchema;
1647
+ }
1648
+
1649
+ /** @internal */
1650
+ export const UpdatePrompt2ImageUrl$inboundSchema: z.ZodType<
1651
+ UpdatePrompt2ImageUrl,
1652
+ z.ZodTypeDef,
1653
+ unknown
1654
+ > = z.object({
1655
+ url: z.string(),
1656
+ detail: z.string().optional(),
1657
+ });
1658
+
1659
+ /** @internal */
1660
+ export type UpdatePrompt2ImageUrl$Outbound = {
1661
+ url: string;
1662
+ detail?: string | undefined;
1663
+ };
1664
+
1665
+ /** @internal */
1666
+ export const UpdatePrompt2ImageUrl$outboundSchema: z.ZodType<
1667
+ UpdatePrompt2ImageUrl$Outbound,
1668
+ z.ZodTypeDef,
1669
+ UpdatePrompt2ImageUrl
1670
+ > = z.object({
1671
+ url: z.string(),
1672
+ detail: z.string().optional(),
1673
+ });
1674
+
1675
+ /**
1676
+ * @internal
1677
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1678
+ */
1679
+ export namespace UpdatePrompt2ImageUrl$ {
1680
+ /** @deprecated use `UpdatePrompt2ImageUrl$inboundSchema` instead. */
1681
+ export const inboundSchema = UpdatePrompt2ImageUrl$inboundSchema;
1682
+ /** @deprecated use `UpdatePrompt2ImageUrl$outboundSchema` instead. */
1683
+ export const outboundSchema = UpdatePrompt2ImageUrl$outboundSchema;
1684
+ /** @deprecated use `UpdatePrompt2ImageUrl$Outbound` instead. */
1685
+ export type Outbound = UpdatePrompt2ImageUrl$Outbound;
1686
+ }
1687
+
1688
+ export function updatePrompt2ImageUrlToJSON(
1689
+ updatePrompt2ImageUrl: UpdatePrompt2ImageUrl,
1690
+ ): string {
1691
+ return JSON.stringify(
1692
+ UpdatePrompt2ImageUrl$outboundSchema.parse(updatePrompt2ImageUrl),
1693
+ );
1694
+ }
1695
+
1696
+ export function updatePrompt2ImageUrlFromJSON(
1697
+ jsonString: string,
1698
+ ): SafeParseResult<UpdatePrompt2ImageUrl, SDKValidationError> {
1699
+ return safeParse(
1700
+ jsonString,
1701
+ (x) => UpdatePrompt2ImageUrl$inboundSchema.parse(JSON.parse(x)),
1702
+ `Failed to parse 'UpdatePrompt2ImageUrl' from JSON`,
1703
+ );
1704
+ }
1705
+
1706
+ /** @internal */
1707
+ export const UpdatePrompt22$inboundSchema: z.ZodType<
1708
+ UpdatePrompt22,
1709
+ z.ZodTypeDef,
1710
+ unknown
1711
+ > = z.object({
1712
+ type: UpdatePrompt2PromptsType$inboundSchema,
1713
+ image_url: z.lazy(() => UpdatePrompt2ImageUrl$inboundSchema),
1714
+ }).transform((v) => {
1715
+ return remap$(v, {
1716
+ "image_url": "imageUrl",
1717
+ });
1718
+ });
1719
+
1720
+ /** @internal */
1721
+ export type UpdatePrompt22$Outbound = {
1722
+ type: string;
1723
+ image_url: UpdatePrompt2ImageUrl$Outbound;
1724
+ };
1725
+
1726
+ /** @internal */
1727
+ export const UpdatePrompt22$outboundSchema: z.ZodType<
1728
+ UpdatePrompt22$Outbound,
1729
+ z.ZodTypeDef,
1730
+ UpdatePrompt22
1731
+ > = z.object({
1732
+ type: UpdatePrompt2PromptsType$outboundSchema,
1733
+ imageUrl: z.lazy(() => UpdatePrompt2ImageUrl$outboundSchema),
1734
+ }).transform((v) => {
1735
+ return remap$(v, {
1736
+ imageUrl: "image_url",
1737
+ });
1738
+ });
1739
+
1740
+ /**
1741
+ * @internal
1742
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1743
+ */
1744
+ export namespace UpdatePrompt22$ {
1745
+ /** @deprecated use `UpdatePrompt22$inboundSchema` instead. */
1746
+ export const inboundSchema = UpdatePrompt22$inboundSchema;
1747
+ /** @deprecated use `UpdatePrompt22$outboundSchema` instead. */
1748
+ export const outboundSchema = UpdatePrompt22$outboundSchema;
1749
+ /** @deprecated use `UpdatePrompt22$Outbound` instead. */
1750
+ export type Outbound = UpdatePrompt22$Outbound;
1751
+ }
1752
+
1753
+ export function updatePrompt22ToJSON(updatePrompt22: UpdatePrompt22): string {
1754
+ return JSON.stringify(UpdatePrompt22$outboundSchema.parse(updatePrompt22));
1755
+ }
1756
+
1757
+ export function updatePrompt22FromJSON(
1758
+ jsonString: string,
1759
+ ): SafeParseResult<UpdatePrompt22, SDKValidationError> {
1760
+ return safeParse(
1761
+ jsonString,
1762
+ (x) => UpdatePrompt22$inboundSchema.parse(JSON.parse(x)),
1763
+ `Failed to parse 'UpdatePrompt22' from JSON`,
1764
+ );
1765
+ }
1766
+
1767
+ /** @internal */
1768
+ export const UpdatePrompt2Type$inboundSchema: z.ZodNativeEnum<
1769
+ typeof UpdatePrompt2Type
1770
+ > = z.nativeEnum(UpdatePrompt2Type);
1771
+
1772
+ /** @internal */
1773
+ export const UpdatePrompt2Type$outboundSchema: z.ZodNativeEnum<
1774
+ typeof UpdatePrompt2Type
1775
+ > = UpdatePrompt2Type$inboundSchema;
1776
+
1777
+ /**
1778
+ * @internal
1779
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1780
+ */
1781
+ export namespace UpdatePrompt2Type$ {
1782
+ /** @deprecated use `UpdatePrompt2Type$inboundSchema` instead. */
1783
+ export const inboundSchema = UpdatePrompt2Type$inboundSchema;
1784
+ /** @deprecated use `UpdatePrompt2Type$outboundSchema` instead. */
1785
+ export const outboundSchema = UpdatePrompt2Type$outboundSchema;
1786
+ }
1787
+
1788
+ /** @internal */
1789
+ export const UpdatePrompt21$inboundSchema: z.ZodType<
1790
+ UpdatePrompt21,
1791
+ z.ZodTypeDef,
1792
+ unknown
1793
+ > = z.object({
1794
+ type: UpdatePrompt2Type$inboundSchema,
1795
+ text: z.string(),
1796
+ });
1797
+
1798
+ /** @internal */
1799
+ export type UpdatePrompt21$Outbound = {
1800
+ type: string;
1801
+ text: string;
1802
+ };
1803
+
1804
+ /** @internal */
1805
+ export const UpdatePrompt21$outboundSchema: z.ZodType<
1806
+ UpdatePrompt21$Outbound,
1807
+ z.ZodTypeDef,
1808
+ UpdatePrompt21
1809
+ > = z.object({
1810
+ type: UpdatePrompt2Type$outboundSchema,
1811
+ text: z.string(),
1812
+ });
1813
+
1814
+ /**
1815
+ * @internal
1816
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1817
+ */
1818
+ export namespace UpdatePrompt21$ {
1819
+ /** @deprecated use `UpdatePrompt21$inboundSchema` instead. */
1820
+ export const inboundSchema = UpdatePrompt21$inboundSchema;
1821
+ /** @deprecated use `UpdatePrompt21$outboundSchema` instead. */
1822
+ export const outboundSchema = UpdatePrompt21$outboundSchema;
1823
+ /** @deprecated use `UpdatePrompt21$Outbound` instead. */
1824
+ export type Outbound = UpdatePrompt21$Outbound;
1825
+ }
1826
+
1827
+ export function updatePrompt21ToJSON(updatePrompt21: UpdatePrompt21): string {
1828
+ return JSON.stringify(UpdatePrompt21$outboundSchema.parse(updatePrompt21));
1829
+ }
1830
+
1831
+ export function updatePrompt21FromJSON(
1832
+ jsonString: string,
1833
+ ): SafeParseResult<UpdatePrompt21, SDKValidationError> {
1834
+ return safeParse(
1835
+ jsonString,
1836
+ (x) => UpdatePrompt21$inboundSchema.parse(JSON.parse(x)),
1837
+ `Failed to parse 'UpdatePrompt21' from JSON`,
1838
+ );
1839
+ }
1840
+
1841
+ /** @internal */
1842
+ export const UpdatePromptContent2$inboundSchema: z.ZodType<
1843
+ UpdatePromptContent2,
1844
+ z.ZodTypeDef,
1845
+ unknown
1846
+ > = z.union([
1847
+ z.lazy(() => UpdatePrompt21$inboundSchema),
1848
+ z.lazy(() => UpdatePrompt22$inboundSchema),
1849
+ z.lazy(() => UpdatePrompt23$inboundSchema),
1850
+ ]);
1851
+
1852
+ /** @internal */
1853
+ export type UpdatePromptContent2$Outbound =
1854
+ | UpdatePrompt21$Outbound
1855
+ | UpdatePrompt22$Outbound
1856
+ | UpdatePrompt23$Outbound;
1857
+
1858
+ /** @internal */
1859
+ export const UpdatePromptContent2$outboundSchema: z.ZodType<
1860
+ UpdatePromptContent2$Outbound,
1861
+ z.ZodTypeDef,
1862
+ UpdatePromptContent2
1863
+ > = z.union([
1864
+ z.lazy(() => UpdatePrompt21$outboundSchema),
1865
+ z.lazy(() => UpdatePrompt22$outboundSchema),
1866
+ z.lazy(() => UpdatePrompt23$outboundSchema),
1867
+ ]);
1868
+
1869
+ /**
1870
+ * @internal
1871
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1872
+ */
1873
+ export namespace UpdatePromptContent2$ {
1874
+ /** @deprecated use `UpdatePromptContent2$inboundSchema` instead. */
1875
+ export const inboundSchema = UpdatePromptContent2$inboundSchema;
1876
+ /** @deprecated use `UpdatePromptContent2$outboundSchema` instead. */
1877
+ export const outboundSchema = UpdatePromptContent2$outboundSchema;
1878
+ /** @deprecated use `UpdatePromptContent2$Outbound` instead. */
1879
+ export type Outbound = UpdatePromptContent2$Outbound;
1880
+ }
1881
+
1882
+ export function updatePromptContent2ToJSON(
1883
+ updatePromptContent2: UpdatePromptContent2,
1884
+ ): string {
1885
+ return JSON.stringify(
1886
+ UpdatePromptContent2$outboundSchema.parse(updatePromptContent2),
1887
+ );
1888
+ }
1889
+
1890
+ export function updatePromptContent2FromJSON(
1891
+ jsonString: string,
1892
+ ): SafeParseResult<UpdatePromptContent2, SDKValidationError> {
1893
+ return safeParse(
1894
+ jsonString,
1895
+ (x) => UpdatePromptContent2$inboundSchema.parse(JSON.parse(x)),
1896
+ `Failed to parse 'UpdatePromptContent2' from JSON`,
1897
+ );
1898
+ }
1899
+
1900
+ /** @internal */
1901
+ export const UpdatePromptContent$inboundSchema: z.ZodType<
1902
+ UpdatePromptContent,
1903
+ z.ZodTypeDef,
1904
+ unknown
1905
+ > = z.union([
1906
+ z.string(),
1907
+ z.array(z.union([
1908
+ z.lazy(() => UpdatePrompt21$inboundSchema),
1909
+ z.lazy(() => UpdatePrompt22$inboundSchema),
1910
+ z.lazy(() => UpdatePrompt23$inboundSchema),
1911
+ ])),
1912
+ ]);
1913
+
1914
+ /** @internal */
1915
+ export type UpdatePromptContent$Outbound =
1916
+ | string
1917
+ | Array<
1918
+ UpdatePrompt21$Outbound | UpdatePrompt22$Outbound | UpdatePrompt23$Outbound
1919
+ >;
1920
+
1921
+ /** @internal */
1922
+ export const UpdatePromptContent$outboundSchema: z.ZodType<
1923
+ UpdatePromptContent$Outbound,
1924
+ z.ZodTypeDef,
1925
+ UpdatePromptContent
1926
+ > = z.union([
1927
+ z.string(),
1928
+ z.array(z.union([
1929
+ z.lazy(() => UpdatePrompt21$outboundSchema),
1930
+ z.lazy(() => UpdatePrompt22$outboundSchema),
1931
+ z.lazy(() => UpdatePrompt23$outboundSchema),
1932
+ ])),
1933
+ ]);
1934
+
1935
+ /**
1936
+ * @internal
1937
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1938
+ */
1939
+ export namespace UpdatePromptContent$ {
1940
+ /** @deprecated use `UpdatePromptContent$inboundSchema` instead. */
1941
+ export const inboundSchema = UpdatePromptContent$inboundSchema;
1942
+ /** @deprecated use `UpdatePromptContent$outboundSchema` instead. */
1943
+ export const outboundSchema = UpdatePromptContent$outboundSchema;
1944
+ /** @deprecated use `UpdatePromptContent$Outbound` instead. */
1945
+ export type Outbound = UpdatePromptContent$Outbound;
1946
+ }
1947
+
1948
+ export function updatePromptContentToJSON(
1949
+ updatePromptContent: UpdatePromptContent,
1950
+ ): string {
1951
+ return JSON.stringify(
1952
+ UpdatePromptContent$outboundSchema.parse(updatePromptContent),
1953
+ );
1954
+ }
1955
+
1956
+ export function updatePromptContentFromJSON(
1957
+ jsonString: string,
1958
+ ): SafeParseResult<UpdatePromptContent, SDKValidationError> {
1959
+ return safeParse(
1960
+ jsonString,
1961
+ (x) => UpdatePromptContent$inboundSchema.parse(JSON.parse(x)),
1962
+ `Failed to parse 'UpdatePromptContent' from JSON`,
1963
+ );
1964
+ }
1965
+
1966
+ /** @internal */
1967
+ export const UpdatePromptType$inboundSchema: z.ZodNativeEnum<
1968
+ typeof UpdatePromptType
1969
+ > = z.nativeEnum(UpdatePromptType);
1970
+
1971
+ /** @internal */
1972
+ export const UpdatePromptType$outboundSchema: z.ZodNativeEnum<
1973
+ typeof UpdatePromptType
1974
+ > = UpdatePromptType$inboundSchema;
1975
+
1976
+ /**
1977
+ * @internal
1978
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1979
+ */
1980
+ export namespace UpdatePromptType$ {
1981
+ /** @deprecated use `UpdatePromptType$inboundSchema` instead. */
1982
+ export const inboundSchema = UpdatePromptType$inboundSchema;
1983
+ /** @deprecated use `UpdatePromptType$outboundSchema` instead. */
1984
+ export const outboundSchema = UpdatePromptType$outboundSchema;
1985
+ }
1986
+
1987
+ /** @internal */
1988
+ export const UpdatePromptFunction$inboundSchema: z.ZodType<
1989
+ UpdatePromptFunction,
1990
+ z.ZodTypeDef,
1991
+ unknown
1992
+ > = z.object({
1993
+ name: z.string(),
1994
+ arguments: z.string(),
1995
+ });
1996
+
1997
+ /** @internal */
1998
+ export type UpdatePromptFunction$Outbound = {
1999
+ name: string;
2000
+ arguments: string;
2001
+ };
2002
+
2003
+ /** @internal */
2004
+ export const UpdatePromptFunction$outboundSchema: z.ZodType<
2005
+ UpdatePromptFunction$Outbound,
2006
+ z.ZodTypeDef,
2007
+ UpdatePromptFunction
2008
+ > = z.object({
2009
+ name: z.string(),
2010
+ arguments: z.string(),
2011
+ });
2012
+
2013
+ /**
2014
+ * @internal
2015
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2016
+ */
2017
+ export namespace UpdatePromptFunction$ {
2018
+ /** @deprecated use `UpdatePromptFunction$inboundSchema` instead. */
2019
+ export const inboundSchema = UpdatePromptFunction$inboundSchema;
2020
+ /** @deprecated use `UpdatePromptFunction$outboundSchema` instead. */
2021
+ export const outboundSchema = UpdatePromptFunction$outboundSchema;
2022
+ /** @deprecated use `UpdatePromptFunction$Outbound` instead. */
2023
+ export type Outbound = UpdatePromptFunction$Outbound;
2024
+ }
2025
+
2026
+ export function updatePromptFunctionToJSON(
2027
+ updatePromptFunction: UpdatePromptFunction,
2028
+ ): string {
2029
+ return JSON.stringify(
2030
+ UpdatePromptFunction$outboundSchema.parse(updatePromptFunction),
2031
+ );
2032
+ }
2033
+
2034
+ export function updatePromptFunctionFromJSON(
2035
+ jsonString: string,
2036
+ ): SafeParseResult<UpdatePromptFunction, SDKValidationError> {
2037
+ return safeParse(
2038
+ jsonString,
2039
+ (x) => UpdatePromptFunction$inboundSchema.parse(JSON.parse(x)),
2040
+ `Failed to parse 'UpdatePromptFunction' from JSON`,
2041
+ );
2042
+ }
2043
+
2044
+ /** @internal */
2045
+ export const UpdatePromptToolCalls$inboundSchema: z.ZodType<
2046
+ UpdatePromptToolCalls,
2047
+ z.ZodTypeDef,
2048
+ unknown
2049
+ > = z.object({
2050
+ id: z.string().optional(),
2051
+ index: z.number().optional(),
2052
+ type: UpdatePromptType$inboundSchema,
2053
+ function: z.lazy(() => UpdatePromptFunction$inboundSchema),
2054
+ });
2055
+
2056
+ /** @internal */
2057
+ export type UpdatePromptToolCalls$Outbound = {
2058
+ id?: string | undefined;
2059
+ index?: number | undefined;
2060
+ type: string;
2061
+ function: UpdatePromptFunction$Outbound;
2062
+ };
2063
+
2064
+ /** @internal */
2065
+ export const UpdatePromptToolCalls$outboundSchema: z.ZodType<
2066
+ UpdatePromptToolCalls$Outbound,
2067
+ z.ZodTypeDef,
2068
+ UpdatePromptToolCalls
2069
+ > = z.object({
2070
+ id: z.string().optional(),
2071
+ index: z.number().optional(),
2072
+ type: UpdatePromptType$outboundSchema,
2073
+ function: z.lazy(() => UpdatePromptFunction$outboundSchema),
2074
+ });
2075
+
2076
+ /**
2077
+ * @internal
2078
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2079
+ */
2080
+ export namespace UpdatePromptToolCalls$ {
2081
+ /** @deprecated use `UpdatePromptToolCalls$inboundSchema` instead. */
2082
+ export const inboundSchema = UpdatePromptToolCalls$inboundSchema;
2083
+ /** @deprecated use `UpdatePromptToolCalls$outboundSchema` instead. */
2084
+ export const outboundSchema = UpdatePromptToolCalls$outboundSchema;
2085
+ /** @deprecated use `UpdatePromptToolCalls$Outbound` instead. */
2086
+ export type Outbound = UpdatePromptToolCalls$Outbound;
2087
+ }
2088
+
2089
+ export function updatePromptToolCallsToJSON(
2090
+ updatePromptToolCalls: UpdatePromptToolCalls,
2091
+ ): string {
2092
+ return JSON.stringify(
2093
+ UpdatePromptToolCalls$outboundSchema.parse(updatePromptToolCalls),
2094
+ );
2095
+ }
2096
+
2097
+ export function updatePromptToolCallsFromJSON(
2098
+ jsonString: string,
2099
+ ): SafeParseResult<UpdatePromptToolCalls, SDKValidationError> {
2100
+ return safeParse(
2101
+ jsonString,
2102
+ (x) => UpdatePromptToolCalls$inboundSchema.parse(JSON.parse(x)),
2103
+ `Failed to parse 'UpdatePromptToolCalls' from JSON`,
2104
+ );
2105
+ }
2106
+
2107
+ /** @internal */
2108
+ export const UpdatePromptMessages$inboundSchema: z.ZodType<
2109
+ UpdatePromptMessages,
2110
+ z.ZodTypeDef,
2111
+ unknown
2112
+ > = z.object({
2113
+ role: UpdatePromptRole$inboundSchema,
2114
+ content: z.union([
2115
+ z.string(),
2116
+ z.array(z.union([
2117
+ z.lazy(() => UpdatePrompt21$inboundSchema),
2118
+ z.lazy(() => UpdatePrompt22$inboundSchema),
2119
+ z.lazy(() => UpdatePrompt23$inboundSchema),
2120
+ ])),
2121
+ ]),
2122
+ tool_calls: z.array(z.lazy(() => UpdatePromptToolCalls$inboundSchema))
2123
+ .optional(),
2124
+ tool_call_id: z.string().optional(),
2125
+ }).transform((v) => {
2126
+ return remap$(v, {
2127
+ "tool_calls": "toolCalls",
2128
+ "tool_call_id": "toolCallId",
2129
+ });
2130
+ });
2131
+
2132
+ /** @internal */
2133
+ export type UpdatePromptMessages$Outbound = {
2134
+ role: string;
2135
+ content:
2136
+ | string
2137
+ | Array<
2138
+ | UpdatePrompt21$Outbound
2139
+ | UpdatePrompt22$Outbound
2140
+ | UpdatePrompt23$Outbound
2141
+ >;
2142
+ tool_calls?: Array<UpdatePromptToolCalls$Outbound> | undefined;
2143
+ tool_call_id?: string | undefined;
2144
+ };
2145
+
2146
+ /** @internal */
2147
+ export const UpdatePromptMessages$outboundSchema: z.ZodType<
2148
+ UpdatePromptMessages$Outbound,
2149
+ z.ZodTypeDef,
2150
+ UpdatePromptMessages
2151
+ > = z.object({
2152
+ role: UpdatePromptRole$outboundSchema,
2153
+ content: z.union([
2154
+ z.string(),
2155
+ z.array(z.union([
2156
+ z.lazy(() => UpdatePrompt21$outboundSchema),
2157
+ z.lazy(() => UpdatePrompt22$outboundSchema),
2158
+ z.lazy(() => UpdatePrompt23$outboundSchema),
2159
+ ])),
2160
+ ]),
2161
+ toolCalls: z.array(z.lazy(() => UpdatePromptToolCalls$outboundSchema))
2162
+ .optional(),
2163
+ toolCallId: z.string().optional(),
2164
+ }).transform((v) => {
2165
+ return remap$(v, {
2166
+ toolCalls: "tool_calls",
2167
+ toolCallId: "tool_call_id",
2168
+ });
2169
+ });
2170
+
2171
+ /**
2172
+ * @internal
2173
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2174
+ */
2175
+ export namespace UpdatePromptMessages$ {
2176
+ /** @deprecated use `UpdatePromptMessages$inboundSchema` instead. */
2177
+ export const inboundSchema = UpdatePromptMessages$inboundSchema;
2178
+ /** @deprecated use `UpdatePromptMessages$outboundSchema` instead. */
2179
+ export const outboundSchema = UpdatePromptMessages$outboundSchema;
2180
+ /** @deprecated use `UpdatePromptMessages$Outbound` instead. */
2181
+ export type Outbound = UpdatePromptMessages$Outbound;
2182
+ }
2183
+
2184
+ export function updatePromptMessagesToJSON(
2185
+ updatePromptMessages: UpdatePromptMessages,
2186
+ ): string {
2187
+ return JSON.stringify(
2188
+ UpdatePromptMessages$outboundSchema.parse(updatePromptMessages),
2189
+ );
2190
+ }
2191
+
2192
+ export function updatePromptMessagesFromJSON(
2193
+ jsonString: string,
2194
+ ): SafeParseResult<UpdatePromptMessages, SDKValidationError> {
2195
+ return safeParse(
2196
+ jsonString,
2197
+ (x) => UpdatePromptMessages$inboundSchema.parse(JSON.parse(x)),
2198
+ `Failed to parse 'UpdatePromptMessages' from JSON`,
2199
+ );
2200
+ }
2201
+
2202
+ /** @internal */
2203
+ export const UpdatePromptPromptConfig$inboundSchema: z.ZodType<
2204
+ UpdatePromptPromptConfig,
2205
+ z.ZodTypeDef,
2206
+ unknown
2207
+ > = z.object({
2208
+ stream: z.boolean().optional(),
2209
+ model: z.string().optional(),
2210
+ model_parameters: z.lazy(() => UpdatePromptModelParameters$inboundSchema)
2211
+ .optional(),
2212
+ provider: UpdatePromptProvider$inboundSchema.optional(),
2213
+ version: z.string().optional(),
2214
+ messages: z.array(z.lazy(() => UpdatePromptMessages$inboundSchema)),
2215
+ model_db_id: z.nullable(z.string()).optional(),
2216
+ model_type: z.nullable(z.string()).optional(),
2217
+ }).transform((v) => {
2218
+ return remap$(v, {
2219
+ "model_parameters": "modelParameters",
2220
+ "model_db_id": "modelDbId",
2221
+ "model_type": "modelType",
2222
+ });
2223
+ });
2224
+
2225
+ /** @internal */
2226
+ export type UpdatePromptPromptConfig$Outbound = {
2227
+ stream?: boolean | undefined;
2228
+ model?: string | undefined;
2229
+ model_parameters?: UpdatePromptModelParameters$Outbound | undefined;
2230
+ provider?: string | undefined;
2231
+ version?: string | undefined;
2232
+ messages: Array<UpdatePromptMessages$Outbound>;
2233
+ model_db_id?: string | null | undefined;
2234
+ model_type?: string | null | undefined;
2235
+ };
2236
+
2237
+ /** @internal */
2238
+ export const UpdatePromptPromptConfig$outboundSchema: z.ZodType<
2239
+ UpdatePromptPromptConfig$Outbound,
2240
+ z.ZodTypeDef,
2241
+ UpdatePromptPromptConfig
2242
+ > = z.object({
2243
+ stream: z.boolean().optional(),
2244
+ model: z.string().optional(),
2245
+ modelParameters: z.lazy(() => UpdatePromptModelParameters$outboundSchema)
2246
+ .optional(),
2247
+ provider: UpdatePromptProvider$outboundSchema.optional(),
2248
+ version: z.string().optional(),
2249
+ messages: z.array(z.lazy(() => UpdatePromptMessages$outboundSchema)),
2250
+ modelDbId: z.nullable(z.string()).optional(),
2251
+ modelType: z.nullable(z.string()).optional(),
2252
+ }).transform((v) => {
2253
+ return remap$(v, {
2254
+ modelParameters: "model_parameters",
2255
+ modelDbId: "model_db_id",
2256
+ modelType: "model_type",
2257
+ });
2258
+ });
2259
+
2260
+ /**
2261
+ * @internal
2262
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2263
+ */
2264
+ export namespace UpdatePromptPromptConfig$ {
2265
+ /** @deprecated use `UpdatePromptPromptConfig$inboundSchema` instead. */
2266
+ export const inboundSchema = UpdatePromptPromptConfig$inboundSchema;
2267
+ /** @deprecated use `UpdatePromptPromptConfig$outboundSchema` instead. */
2268
+ export const outboundSchema = UpdatePromptPromptConfig$outboundSchema;
2269
+ /** @deprecated use `UpdatePromptPromptConfig$Outbound` instead. */
2270
+ export type Outbound = UpdatePromptPromptConfig$Outbound;
2271
+ }
2272
+
2273
+ export function updatePromptPromptConfigToJSON(
2274
+ updatePromptPromptConfig: UpdatePromptPromptConfig,
2275
+ ): string {
2276
+ return JSON.stringify(
2277
+ UpdatePromptPromptConfig$outboundSchema.parse(updatePromptPromptConfig),
2278
+ );
2279
+ }
2280
+
2281
+ export function updatePromptPromptConfigFromJSON(
2282
+ jsonString: string,
2283
+ ): SafeParseResult<UpdatePromptPromptConfig, SDKValidationError> {
2284
+ return safeParse(
2285
+ jsonString,
2286
+ (x) => UpdatePromptPromptConfig$inboundSchema.parse(JSON.parse(x)),
2287
+ `Failed to parse 'UpdatePromptPromptConfig' from JSON`,
2288
+ );
2289
+ }
2290
+
2291
+ /** @internal */
2292
+ export const UpdatePromptUseCases$inboundSchema: z.ZodNativeEnum<
2293
+ typeof UpdatePromptUseCases
2294
+ > = z.nativeEnum(UpdatePromptUseCases);
2295
+
2296
+ /** @internal */
2297
+ export const UpdatePromptUseCases$outboundSchema: z.ZodNativeEnum<
2298
+ typeof UpdatePromptUseCases
2299
+ > = UpdatePromptUseCases$inboundSchema;
2300
+
2301
+ /**
2302
+ * @internal
2303
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2304
+ */
2305
+ export namespace UpdatePromptUseCases$ {
2306
+ /** @deprecated use `UpdatePromptUseCases$inboundSchema` instead. */
2307
+ export const inboundSchema = UpdatePromptUseCases$inboundSchema;
2308
+ /** @deprecated use `UpdatePromptUseCases$outboundSchema` instead. */
2309
+ export const outboundSchema = UpdatePromptUseCases$outboundSchema;
2310
+ }
2311
+
2312
+ /** @internal */
2313
+ export const UpdatePromptLanguage$inboundSchema: z.ZodNativeEnum<
2314
+ typeof UpdatePromptLanguage
2315
+ > = z.nativeEnum(UpdatePromptLanguage);
2316
+
2317
+ /** @internal */
2318
+ export const UpdatePromptLanguage$outboundSchema: z.ZodNativeEnum<
2319
+ typeof UpdatePromptLanguage
2320
+ > = UpdatePromptLanguage$inboundSchema;
2321
+
2322
+ /**
2323
+ * @internal
2324
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2325
+ */
2326
+ export namespace UpdatePromptLanguage$ {
2327
+ /** @deprecated use `UpdatePromptLanguage$inboundSchema` instead. */
2328
+ export const inboundSchema = UpdatePromptLanguage$inboundSchema;
2329
+ /** @deprecated use `UpdatePromptLanguage$outboundSchema` instead. */
2330
+ export const outboundSchema = UpdatePromptLanguage$outboundSchema;
2331
+ }
2332
+
2333
+ /** @internal */
2334
+ export const UpdatePromptMetadata$inboundSchema: z.ZodType<
2335
+ UpdatePromptMetadata,
2336
+ z.ZodTypeDef,
2337
+ unknown
2338
+ > = z.object({
2339
+ use_cases: z.array(UpdatePromptUseCases$inboundSchema).optional(),
2340
+ language: z.nullable(UpdatePromptLanguage$inboundSchema).optional(),
2341
+ }).transform((v) => {
2342
+ return remap$(v, {
2343
+ "use_cases": "useCases",
2344
+ });
2345
+ });
2346
+
2347
+ /** @internal */
2348
+ export type UpdatePromptMetadata$Outbound = {
2349
+ use_cases?: Array<string> | undefined;
2350
+ language?: string | null | undefined;
2351
+ };
2352
+
2353
+ /** @internal */
2354
+ export const UpdatePromptMetadata$outboundSchema: z.ZodType<
2355
+ UpdatePromptMetadata$Outbound,
2356
+ z.ZodTypeDef,
2357
+ UpdatePromptMetadata
2358
+ > = z.object({
2359
+ useCases: z.array(UpdatePromptUseCases$outboundSchema).optional(),
2360
+ language: z.nullable(UpdatePromptLanguage$outboundSchema).optional(),
2361
+ }).transform((v) => {
2362
+ return remap$(v, {
2363
+ useCases: "use_cases",
2364
+ });
2365
+ });
2366
+
2367
+ /**
2368
+ * @internal
2369
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2370
+ */
2371
+ export namespace UpdatePromptMetadata$ {
2372
+ /** @deprecated use `UpdatePromptMetadata$inboundSchema` instead. */
2373
+ export const inboundSchema = UpdatePromptMetadata$inboundSchema;
2374
+ /** @deprecated use `UpdatePromptMetadata$outboundSchema` instead. */
2375
+ export const outboundSchema = UpdatePromptMetadata$outboundSchema;
2376
+ /** @deprecated use `UpdatePromptMetadata$Outbound` instead. */
2377
+ export type Outbound = UpdatePromptMetadata$Outbound;
2378
+ }
2379
+
2380
+ export function updatePromptMetadataToJSON(
2381
+ updatePromptMetadata: UpdatePromptMetadata,
2382
+ ): string {
2383
+ return JSON.stringify(
2384
+ UpdatePromptMetadata$outboundSchema.parse(updatePromptMetadata),
2385
+ );
2386
+ }
2387
+
2388
+ export function updatePromptMetadataFromJSON(
2389
+ jsonString: string,
2390
+ ): SafeParseResult<UpdatePromptMetadata, SDKValidationError> {
2391
+ return safeParse(
2392
+ jsonString,
2393
+ (x) => UpdatePromptMetadata$inboundSchema.parse(JSON.parse(x)),
2394
+ `Failed to parse 'UpdatePromptMetadata' from JSON`,
2395
+ );
2396
+ }
2397
+
2398
+ /** @internal */
2399
+ export const UpdatePromptRequestBody$inboundSchema: z.ZodType<
2400
+ UpdatePromptRequestBody,
2401
+ z.ZodTypeDef,
2402
+ unknown
2403
+ > = z.object({
2404
+ owner: z.string().optional(),
2405
+ domain_id: z.string().optional(),
2406
+ created: z.string().optional(),
2407
+ updated: z.string().optional(),
2408
+ created_by_id: z.nullable(z.string()).optional(),
2409
+ updated_by_id: z.nullable(z.string()).optional(),
2410
+ display_name: z.string().optional(),
2411
+ description: z.nullable(z.string()).optional(),
2412
+ prompt_config: z.lazy(() => UpdatePromptPromptConfig$inboundSchema)
2413
+ .optional(),
2414
+ metadata: z.lazy(() => UpdatePromptMetadata$inboundSchema).optional(),
2415
+ path: z.string().optional(),
2416
+ }).transform((v) => {
2417
+ return remap$(v, {
2418
+ "domain_id": "domainId",
2419
+ "created_by_id": "createdById",
2420
+ "updated_by_id": "updatedById",
2421
+ "display_name": "displayName",
2422
+ "prompt_config": "promptConfig",
2423
+ });
2424
+ });
2425
+
2426
+ /** @internal */
2427
+ export type UpdatePromptRequestBody$Outbound = {
2428
+ owner?: string | undefined;
2429
+ domain_id?: string | undefined;
2430
+ created?: string | undefined;
2431
+ updated?: string | undefined;
2432
+ created_by_id?: string | null | undefined;
2433
+ updated_by_id?: string | null | undefined;
2434
+ display_name?: string | undefined;
2435
+ description?: string | null | undefined;
2436
+ prompt_config?: UpdatePromptPromptConfig$Outbound | undefined;
2437
+ metadata?: UpdatePromptMetadata$Outbound | undefined;
2438
+ path?: string | undefined;
2439
+ };
2440
+
2441
+ /** @internal */
2442
+ export const UpdatePromptRequestBody$outboundSchema: z.ZodType<
2443
+ UpdatePromptRequestBody$Outbound,
2444
+ z.ZodTypeDef,
2445
+ UpdatePromptRequestBody
2446
+ > = z.object({
2447
+ owner: z.string().optional(),
2448
+ domainId: z.string().optional(),
2449
+ created: z.string().optional(),
2450
+ updated: z.string().optional(),
2451
+ createdById: z.nullable(z.string()).optional(),
2452
+ updatedById: z.nullable(z.string()).optional(),
2453
+ displayName: z.string().optional(),
2454
+ description: z.nullable(z.string()).optional(),
2455
+ promptConfig: z.lazy(() => UpdatePromptPromptConfig$outboundSchema)
2456
+ .optional(),
2457
+ metadata: z.lazy(() => UpdatePromptMetadata$outboundSchema).optional(),
2458
+ path: z.string().optional(),
2459
+ }).transform((v) => {
2460
+ return remap$(v, {
2461
+ domainId: "domain_id",
2462
+ createdById: "created_by_id",
2463
+ updatedById: "updated_by_id",
2464
+ displayName: "display_name",
2465
+ promptConfig: "prompt_config",
2466
+ });
2467
+ });
2468
+
2469
+ /**
2470
+ * @internal
2471
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2472
+ */
2473
+ export namespace UpdatePromptRequestBody$ {
2474
+ /** @deprecated use `UpdatePromptRequestBody$inboundSchema` instead. */
2475
+ export const inboundSchema = UpdatePromptRequestBody$inboundSchema;
2476
+ /** @deprecated use `UpdatePromptRequestBody$outboundSchema` instead. */
2477
+ export const outboundSchema = UpdatePromptRequestBody$outboundSchema;
2478
+ /** @deprecated use `UpdatePromptRequestBody$Outbound` instead. */
2479
+ export type Outbound = UpdatePromptRequestBody$Outbound;
2480
+ }
2481
+
2482
+ export function updatePromptRequestBodyToJSON(
2483
+ updatePromptRequestBody: UpdatePromptRequestBody,
2484
+ ): string {
2485
+ return JSON.stringify(
2486
+ UpdatePromptRequestBody$outboundSchema.parse(updatePromptRequestBody),
2487
+ );
2488
+ }
2489
+
2490
+ export function updatePromptRequestBodyFromJSON(
2491
+ jsonString: string,
2492
+ ): SafeParseResult<UpdatePromptRequestBody, SDKValidationError> {
2493
+ return safeParse(
2494
+ jsonString,
2495
+ (x) => UpdatePromptRequestBody$inboundSchema.parse(JSON.parse(x)),
2496
+ `Failed to parse 'UpdatePromptRequestBody' from JSON`,
2497
+ );
2498
+ }
2499
+
2500
+ /** @internal */
2501
+ export const UpdatePromptRequest$inboundSchema: z.ZodType<
2502
+ UpdatePromptRequest,
2503
+ z.ZodTypeDef,
2504
+ unknown
2505
+ > = z.object({
2506
+ id: z.string(),
2507
+ RequestBody: z.lazy(() => UpdatePromptRequestBody$inboundSchema).optional(),
2508
+ }).transform((v) => {
2509
+ return remap$(v, {
2510
+ "RequestBody": "requestBody",
2511
+ });
2512
+ });
2513
+
2514
+ /** @internal */
2515
+ export type UpdatePromptRequest$Outbound = {
2516
+ id: string;
2517
+ RequestBody?: UpdatePromptRequestBody$Outbound | undefined;
2518
+ };
2519
+
2520
+ /** @internal */
2521
+ export const UpdatePromptRequest$outboundSchema: z.ZodType<
2522
+ UpdatePromptRequest$Outbound,
2523
+ z.ZodTypeDef,
2524
+ UpdatePromptRequest
2525
+ > = z.object({
2526
+ id: z.string(),
2527
+ requestBody: z.lazy(() => UpdatePromptRequestBody$outboundSchema).optional(),
2528
+ }).transform((v) => {
2529
+ return remap$(v, {
2530
+ requestBody: "RequestBody",
2531
+ });
2532
+ });
2533
+
2534
+ /**
2535
+ * @internal
2536
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2537
+ */
2538
+ export namespace UpdatePromptRequest$ {
2539
+ /** @deprecated use `UpdatePromptRequest$inboundSchema` instead. */
2540
+ export const inboundSchema = UpdatePromptRequest$inboundSchema;
2541
+ /** @deprecated use `UpdatePromptRequest$outboundSchema` instead. */
2542
+ export const outboundSchema = UpdatePromptRequest$outboundSchema;
2543
+ /** @deprecated use `UpdatePromptRequest$Outbound` instead. */
2544
+ export type Outbound = UpdatePromptRequest$Outbound;
2545
+ }
2546
+
2547
+ export function updatePromptRequestToJSON(
2548
+ updatePromptRequest: UpdatePromptRequest,
2549
+ ): string {
2550
+ return JSON.stringify(
2551
+ UpdatePromptRequest$outboundSchema.parse(updatePromptRequest),
2552
+ );
2553
+ }
2554
+
2555
+ export function updatePromptRequestFromJSON(
2556
+ jsonString: string,
2557
+ ): SafeParseResult<UpdatePromptRequest, SDKValidationError> {
2558
+ return safeParse(
2559
+ jsonString,
2560
+ (x) => UpdatePromptRequest$inboundSchema.parse(JSON.parse(x)),
2561
+ `Failed to parse 'UpdatePromptRequest' from JSON`,
2562
+ );
2563
+ }
2564
+
2565
+ /** @internal */
2566
+ export const UpdatePromptPromptsType$inboundSchema: z.ZodNativeEnum<
2567
+ typeof UpdatePromptPromptsType
2568
+ > = z.nativeEnum(UpdatePromptPromptsType);
2569
+
2570
+ /** @internal */
2571
+ export const UpdatePromptPromptsType$outboundSchema: z.ZodNativeEnum<
2572
+ typeof UpdatePromptPromptsType
2573
+ > = UpdatePromptPromptsType$inboundSchema;
2574
+
2575
+ /**
2576
+ * @internal
2577
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2578
+ */
2579
+ export namespace UpdatePromptPromptsType$ {
2580
+ /** @deprecated use `UpdatePromptPromptsType$inboundSchema` instead. */
2581
+ export const inboundSchema = UpdatePromptPromptsType$inboundSchema;
2582
+ /** @deprecated use `UpdatePromptPromptsType$outboundSchema` instead. */
2583
+ export const outboundSchema = UpdatePromptPromptsType$outboundSchema;
2584
+ }
2585
+
2586
+ /** @internal */
2587
+ export const UpdatePromptModelType$inboundSchema: z.ZodNativeEnum<
2588
+ typeof UpdatePromptModelType
2589
+ > = z.nativeEnum(UpdatePromptModelType);
2590
+
2591
+ /** @internal */
2592
+ export const UpdatePromptModelType$outboundSchema: z.ZodNativeEnum<
2593
+ typeof UpdatePromptModelType
2594
+ > = UpdatePromptModelType$inboundSchema;
2595
+
2596
+ /**
2597
+ * @internal
2598
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2599
+ */
2600
+ export namespace UpdatePromptModelType$ {
2601
+ /** @deprecated use `UpdatePromptModelType$inboundSchema` instead. */
2602
+ export const inboundSchema = UpdatePromptModelType$inboundSchema;
2603
+ /** @deprecated use `UpdatePromptModelType$outboundSchema` instead. */
2604
+ export const outboundSchema = UpdatePromptModelType$outboundSchema;
2605
+ }
2606
+
2607
+ /** @internal */
2608
+ export const UpdatePromptPromptsFormat$inboundSchema: z.ZodNativeEnum<
2609
+ typeof UpdatePromptPromptsFormat
2610
+ > = z.nativeEnum(UpdatePromptPromptsFormat);
2611
+
2612
+ /** @internal */
2613
+ export const UpdatePromptPromptsFormat$outboundSchema: z.ZodNativeEnum<
2614
+ typeof UpdatePromptPromptsFormat
2615
+ > = UpdatePromptPromptsFormat$inboundSchema;
2616
+
2617
+ /**
2618
+ * @internal
2619
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2620
+ */
2621
+ export namespace UpdatePromptPromptsFormat$ {
2622
+ /** @deprecated use `UpdatePromptPromptsFormat$inboundSchema` instead. */
2623
+ export const inboundSchema = UpdatePromptPromptsFormat$inboundSchema;
2624
+ /** @deprecated use `UpdatePromptPromptsFormat$outboundSchema` instead. */
2625
+ export const outboundSchema = UpdatePromptPromptsFormat$outboundSchema;
2626
+ }
2627
+
2628
+ /** @internal */
2629
+ export const UpdatePromptResponseFormatPromptsResponse200Type$inboundSchema:
2630
+ z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsResponse200Type> = z
2631
+ .nativeEnum(UpdatePromptResponseFormatPromptsResponse200Type);
2632
+
2633
+ /** @internal */
2634
+ export const UpdatePromptResponseFormatPromptsResponse200Type$outboundSchema:
2635
+ z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsResponse200Type> =
2636
+ UpdatePromptResponseFormatPromptsResponse200Type$inboundSchema;
2637
+
2638
+ /**
2639
+ * @internal
2640
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2641
+ */
2642
+ export namespace UpdatePromptResponseFormatPromptsResponse200Type$ {
2643
+ /** @deprecated use `UpdatePromptResponseFormatPromptsResponse200Type$inboundSchema` instead. */
2644
+ export const inboundSchema =
2645
+ UpdatePromptResponseFormatPromptsResponse200Type$inboundSchema;
2646
+ /** @deprecated use `UpdatePromptResponseFormatPromptsResponse200Type$outboundSchema` instead. */
2647
+ export const outboundSchema =
2648
+ UpdatePromptResponseFormatPromptsResponse200Type$outboundSchema;
2649
+ }
2650
+
2651
+ /** @internal */
2652
+ export const UpdatePromptResponseFormatPrompts2$inboundSchema: z.ZodType<
2653
+ UpdatePromptResponseFormatPrompts2,
2654
+ z.ZodTypeDef,
2655
+ unknown
2656
+ > = z.object({
2657
+ type: UpdatePromptResponseFormatPromptsResponse200Type$inboundSchema,
2658
+ });
2659
+
2660
+ /** @internal */
2661
+ export type UpdatePromptResponseFormatPrompts2$Outbound = {
2662
+ type: string;
2663
+ };
2664
+
2665
+ /** @internal */
2666
+ export const UpdatePromptResponseFormatPrompts2$outboundSchema: z.ZodType<
2667
+ UpdatePromptResponseFormatPrompts2$Outbound,
2668
+ z.ZodTypeDef,
2669
+ UpdatePromptResponseFormatPrompts2
2670
+ > = z.object({
2671
+ type: UpdatePromptResponseFormatPromptsResponse200Type$outboundSchema,
2672
+ });
2673
+
2674
+ /**
2675
+ * @internal
2676
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2677
+ */
2678
+ export namespace UpdatePromptResponseFormatPrompts2$ {
2679
+ /** @deprecated use `UpdatePromptResponseFormatPrompts2$inboundSchema` instead. */
2680
+ export const inboundSchema = UpdatePromptResponseFormatPrompts2$inboundSchema;
2681
+ /** @deprecated use `UpdatePromptResponseFormatPrompts2$outboundSchema` instead. */
2682
+ export const outboundSchema =
2683
+ UpdatePromptResponseFormatPrompts2$outboundSchema;
2684
+ /** @deprecated use `UpdatePromptResponseFormatPrompts2$Outbound` instead. */
2685
+ export type Outbound = UpdatePromptResponseFormatPrompts2$Outbound;
2686
+ }
2687
+
2688
+ export function updatePromptResponseFormatPrompts2ToJSON(
2689
+ updatePromptResponseFormatPrompts2: UpdatePromptResponseFormatPrompts2,
2690
+ ): string {
2691
+ return JSON.stringify(
2692
+ UpdatePromptResponseFormatPrompts2$outboundSchema.parse(
2693
+ updatePromptResponseFormatPrompts2,
2694
+ ),
2695
+ );
2696
+ }
2697
+
2698
+ export function updatePromptResponseFormatPrompts2FromJSON(
2699
+ jsonString: string,
2700
+ ): SafeParseResult<UpdatePromptResponseFormatPrompts2, SDKValidationError> {
2701
+ return safeParse(
2702
+ jsonString,
2703
+ (x) =>
2704
+ UpdatePromptResponseFormatPrompts2$inboundSchema.parse(JSON.parse(x)),
2705
+ `Failed to parse 'UpdatePromptResponseFormatPrompts2' from JSON`,
2706
+ );
2707
+ }
2708
+
2709
+ /** @internal */
2710
+ export const UpdatePromptResponseFormatPromptsResponseType$inboundSchema:
2711
+ z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsResponseType> = z
2712
+ .nativeEnum(UpdatePromptResponseFormatPromptsResponseType);
2713
+
2714
+ /** @internal */
2715
+ export const UpdatePromptResponseFormatPromptsResponseType$outboundSchema:
2716
+ z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsResponseType> =
2717
+ UpdatePromptResponseFormatPromptsResponseType$inboundSchema;
2718
+
2719
+ /**
2720
+ * @internal
2721
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2722
+ */
2723
+ export namespace UpdatePromptResponseFormatPromptsResponseType$ {
2724
+ /** @deprecated use `UpdatePromptResponseFormatPromptsResponseType$inboundSchema` instead. */
2725
+ export const inboundSchema =
2726
+ UpdatePromptResponseFormatPromptsResponseType$inboundSchema;
2727
+ /** @deprecated use `UpdatePromptResponseFormatPromptsResponseType$outboundSchema` instead. */
2728
+ export const outboundSchema =
2729
+ UpdatePromptResponseFormatPromptsResponseType$outboundSchema;
2730
+ }
2731
+
2732
+ /** @internal */
2733
+ export const UpdatePromptResponseFormatJsonSchema$inboundSchema: z.ZodType<
2734
+ UpdatePromptResponseFormatJsonSchema,
2735
+ z.ZodTypeDef,
2736
+ unknown
2737
+ > = z.object({
2738
+ name: z.string(),
2739
+ strict: z.boolean().optional(),
2740
+ schema: z.record(z.any()),
2741
+ });
2742
+
2743
+ /** @internal */
2744
+ export type UpdatePromptResponseFormatJsonSchema$Outbound = {
2745
+ name: string;
2746
+ strict?: boolean | undefined;
2747
+ schema: { [k: string]: any };
2748
+ };
2749
+
2750
+ /** @internal */
2751
+ export const UpdatePromptResponseFormatJsonSchema$outboundSchema: z.ZodType<
2752
+ UpdatePromptResponseFormatJsonSchema$Outbound,
2753
+ z.ZodTypeDef,
2754
+ UpdatePromptResponseFormatJsonSchema
2755
+ > = z.object({
2756
+ name: z.string(),
2757
+ strict: z.boolean().optional(),
2758
+ schema: z.record(z.any()),
2759
+ });
2760
+
2761
+ /**
2762
+ * @internal
2763
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2764
+ */
2765
+ export namespace UpdatePromptResponseFormatJsonSchema$ {
2766
+ /** @deprecated use `UpdatePromptResponseFormatJsonSchema$inboundSchema` instead. */
2767
+ export const inboundSchema =
2768
+ UpdatePromptResponseFormatJsonSchema$inboundSchema;
2769
+ /** @deprecated use `UpdatePromptResponseFormatJsonSchema$outboundSchema` instead. */
2770
+ export const outboundSchema =
2771
+ UpdatePromptResponseFormatJsonSchema$outboundSchema;
2772
+ /** @deprecated use `UpdatePromptResponseFormatJsonSchema$Outbound` instead. */
2773
+ export type Outbound = UpdatePromptResponseFormatJsonSchema$Outbound;
2774
+ }
2775
+
2776
+ export function updatePromptResponseFormatJsonSchemaToJSON(
2777
+ updatePromptResponseFormatJsonSchema: UpdatePromptResponseFormatJsonSchema,
2778
+ ): string {
2779
+ return JSON.stringify(
2780
+ UpdatePromptResponseFormatJsonSchema$outboundSchema.parse(
2781
+ updatePromptResponseFormatJsonSchema,
2782
+ ),
2783
+ );
2784
+ }
2785
+
2786
+ export function updatePromptResponseFormatJsonSchemaFromJSON(
2787
+ jsonString: string,
2788
+ ): SafeParseResult<UpdatePromptResponseFormatJsonSchema, SDKValidationError> {
2789
+ return safeParse(
2790
+ jsonString,
2791
+ (x) =>
2792
+ UpdatePromptResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
2793
+ `Failed to parse 'UpdatePromptResponseFormatJsonSchema' from JSON`,
2794
+ );
2795
+ }
2796
+
2797
+ /** @internal */
2798
+ export const UpdatePromptResponseFormatPrompts1$inboundSchema: z.ZodType<
2799
+ UpdatePromptResponseFormatPrompts1,
2800
+ z.ZodTypeDef,
2801
+ unknown
2802
+ > = z.object({
2803
+ type: UpdatePromptResponseFormatPromptsResponseType$inboundSchema,
2804
+ json_schema: z.lazy(() => UpdatePromptResponseFormatJsonSchema$inboundSchema),
2805
+ }).transform((v) => {
2806
+ return remap$(v, {
2807
+ "json_schema": "jsonSchema",
2808
+ });
2809
+ });
2810
+
2811
+ /** @internal */
2812
+ export type UpdatePromptResponseFormatPrompts1$Outbound = {
2813
+ type: string;
2814
+ json_schema: UpdatePromptResponseFormatJsonSchema$Outbound;
2815
+ };
2816
+
2817
+ /** @internal */
2818
+ export const UpdatePromptResponseFormatPrompts1$outboundSchema: z.ZodType<
2819
+ UpdatePromptResponseFormatPrompts1$Outbound,
2820
+ z.ZodTypeDef,
2821
+ UpdatePromptResponseFormatPrompts1
2822
+ > = z.object({
2823
+ type: UpdatePromptResponseFormatPromptsResponseType$outboundSchema,
2824
+ jsonSchema: z.lazy(() => UpdatePromptResponseFormatJsonSchema$outboundSchema),
2825
+ }).transform((v) => {
2826
+ return remap$(v, {
2827
+ jsonSchema: "json_schema",
2828
+ });
2829
+ });
2830
+
2831
+ /**
2832
+ * @internal
2833
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2834
+ */
2835
+ export namespace UpdatePromptResponseFormatPrompts1$ {
2836
+ /** @deprecated use `UpdatePromptResponseFormatPrompts1$inboundSchema` instead. */
2837
+ export const inboundSchema = UpdatePromptResponseFormatPrompts1$inboundSchema;
2838
+ /** @deprecated use `UpdatePromptResponseFormatPrompts1$outboundSchema` instead. */
2839
+ export const outboundSchema =
2840
+ UpdatePromptResponseFormatPrompts1$outboundSchema;
2841
+ /** @deprecated use `UpdatePromptResponseFormatPrompts1$Outbound` instead. */
2842
+ export type Outbound = UpdatePromptResponseFormatPrompts1$Outbound;
2843
+ }
2844
+
2845
+ export function updatePromptResponseFormatPrompts1ToJSON(
2846
+ updatePromptResponseFormatPrompts1: UpdatePromptResponseFormatPrompts1,
2847
+ ): string {
2848
+ return JSON.stringify(
2849
+ UpdatePromptResponseFormatPrompts1$outboundSchema.parse(
2850
+ updatePromptResponseFormatPrompts1,
2851
+ ),
2852
+ );
2853
+ }
2854
+
2855
+ export function updatePromptResponseFormatPrompts1FromJSON(
2856
+ jsonString: string,
2857
+ ): SafeParseResult<UpdatePromptResponseFormatPrompts1, SDKValidationError> {
2858
+ return safeParse(
2859
+ jsonString,
2860
+ (x) =>
2861
+ UpdatePromptResponseFormatPrompts1$inboundSchema.parse(JSON.parse(x)),
2862
+ `Failed to parse 'UpdatePromptResponseFormatPrompts1' from JSON`,
2863
+ );
2864
+ }
2865
+
2866
+ /** @internal */
2867
+ export const UpdatePromptPromptsResponseFormat$inboundSchema: z.ZodType<
2868
+ UpdatePromptPromptsResponseFormat,
2869
+ z.ZodTypeDef,
2870
+ unknown
2871
+ > = z.union([
2872
+ z.lazy(() => UpdatePromptResponseFormatPrompts1$inboundSchema),
2873
+ z.lazy(() => UpdatePromptResponseFormatPrompts2$inboundSchema),
2874
+ ]);
2875
+
2876
+ /** @internal */
2877
+ export type UpdatePromptPromptsResponseFormat$Outbound =
2878
+ | UpdatePromptResponseFormatPrompts1$Outbound
2879
+ | UpdatePromptResponseFormatPrompts2$Outbound;
2880
+
2881
+ /** @internal */
2882
+ export const UpdatePromptPromptsResponseFormat$outboundSchema: z.ZodType<
2883
+ UpdatePromptPromptsResponseFormat$Outbound,
2884
+ z.ZodTypeDef,
2885
+ UpdatePromptPromptsResponseFormat
2886
+ > = z.union([
2887
+ z.lazy(() => UpdatePromptResponseFormatPrompts1$outboundSchema),
2888
+ z.lazy(() => UpdatePromptResponseFormatPrompts2$outboundSchema),
2889
+ ]);
2890
+
2891
+ /**
2892
+ * @internal
2893
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2894
+ */
2895
+ export namespace UpdatePromptPromptsResponseFormat$ {
2896
+ /** @deprecated use `UpdatePromptPromptsResponseFormat$inboundSchema` instead. */
2897
+ export const inboundSchema = UpdatePromptPromptsResponseFormat$inboundSchema;
2898
+ /** @deprecated use `UpdatePromptPromptsResponseFormat$outboundSchema` instead. */
2899
+ export const outboundSchema =
2900
+ UpdatePromptPromptsResponseFormat$outboundSchema;
2901
+ /** @deprecated use `UpdatePromptPromptsResponseFormat$Outbound` instead. */
2902
+ export type Outbound = UpdatePromptPromptsResponseFormat$Outbound;
2903
+ }
2904
+
2905
+ export function updatePromptPromptsResponseFormatToJSON(
2906
+ updatePromptPromptsResponseFormat: UpdatePromptPromptsResponseFormat,
2907
+ ): string {
2908
+ return JSON.stringify(
2909
+ UpdatePromptPromptsResponseFormat$outboundSchema.parse(
2910
+ updatePromptPromptsResponseFormat,
2911
+ ),
2912
+ );
2913
+ }
2914
+
2915
+ export function updatePromptPromptsResponseFormatFromJSON(
2916
+ jsonString: string,
2917
+ ): SafeParseResult<UpdatePromptPromptsResponseFormat, SDKValidationError> {
2918
+ return safeParse(
2919
+ jsonString,
2920
+ (x) => UpdatePromptPromptsResponseFormat$inboundSchema.parse(JSON.parse(x)),
2921
+ `Failed to parse 'UpdatePromptPromptsResponseFormat' from JSON`,
2922
+ );
2923
+ }
2924
+
2925
+ /** @internal */
2926
+ export const UpdatePromptPromptsPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
2927
+ typeof UpdatePromptPromptsPhotoRealVersion
2928
+ > = z.nativeEnum(UpdatePromptPromptsPhotoRealVersion);
2929
+
2930
+ /** @internal */
2931
+ export const UpdatePromptPromptsPhotoRealVersion$outboundSchema:
2932
+ z.ZodNativeEnum<typeof UpdatePromptPromptsPhotoRealVersion> =
2933
+ UpdatePromptPromptsPhotoRealVersion$inboundSchema;
2934
+
2935
+ /**
2936
+ * @internal
2937
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2938
+ */
2939
+ export namespace UpdatePromptPromptsPhotoRealVersion$ {
2940
+ /** @deprecated use `UpdatePromptPromptsPhotoRealVersion$inboundSchema` instead. */
2941
+ export const inboundSchema =
2942
+ UpdatePromptPromptsPhotoRealVersion$inboundSchema;
2943
+ /** @deprecated use `UpdatePromptPromptsPhotoRealVersion$outboundSchema` instead. */
2944
+ export const outboundSchema =
2945
+ UpdatePromptPromptsPhotoRealVersion$outboundSchema;
2946
+ }
2947
+
2948
+ /** @internal */
2949
+ export const UpdatePromptPromptsEncodingFormat$inboundSchema: z.ZodNativeEnum<
2950
+ typeof UpdatePromptPromptsEncodingFormat
2951
+ > = z.nativeEnum(UpdatePromptPromptsEncodingFormat);
2952
+
2953
+ /** @internal */
2954
+ export const UpdatePromptPromptsEncodingFormat$outboundSchema: z.ZodNativeEnum<
2955
+ typeof UpdatePromptPromptsEncodingFormat
2956
+ > = UpdatePromptPromptsEncodingFormat$inboundSchema;
2957
+
2958
+ /**
2959
+ * @internal
2960
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2961
+ */
2962
+ export namespace UpdatePromptPromptsEncodingFormat$ {
2963
+ /** @deprecated use `UpdatePromptPromptsEncodingFormat$inboundSchema` instead. */
2964
+ export const inboundSchema = UpdatePromptPromptsEncodingFormat$inboundSchema;
2965
+ /** @deprecated use `UpdatePromptPromptsEncodingFormat$outboundSchema` instead. */
2966
+ export const outboundSchema =
2967
+ UpdatePromptPromptsEncodingFormat$outboundSchema;
2968
+ }
2969
+
2970
+ /** @internal */
2971
+ export const UpdatePromptPromptsReasoningEffort$inboundSchema: z.ZodNativeEnum<
2972
+ typeof UpdatePromptPromptsReasoningEffort
2973
+ > = z.nativeEnum(UpdatePromptPromptsReasoningEffort);
2974
+
2975
+ /** @internal */
2976
+ export const UpdatePromptPromptsReasoningEffort$outboundSchema: z.ZodNativeEnum<
2977
+ typeof UpdatePromptPromptsReasoningEffort
2978
+ > = UpdatePromptPromptsReasoningEffort$inboundSchema;
2979
+
2980
+ /**
2981
+ * @internal
2982
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2983
+ */
2984
+ export namespace UpdatePromptPromptsReasoningEffort$ {
2985
+ /** @deprecated use `UpdatePromptPromptsReasoningEffort$inboundSchema` instead. */
2986
+ export const inboundSchema = UpdatePromptPromptsReasoningEffort$inboundSchema;
2987
+ /** @deprecated use `UpdatePromptPromptsReasoningEffort$outboundSchema` instead. */
2988
+ export const outboundSchema =
2989
+ UpdatePromptPromptsReasoningEffort$outboundSchema;
2990
+ }
2991
+
2992
+ /** @internal */
2993
+ export const UpdatePromptPromptsModelParameters$inboundSchema: z.ZodType<
2994
+ UpdatePromptPromptsModelParameters,
2995
+ z.ZodTypeDef,
2996
+ unknown
2997
+ > = z.object({
2998
+ temperature: z.number().optional(),
2999
+ maxTokens: z.number().optional(),
3000
+ topK: z.number().optional(),
3001
+ topP: z.number().optional(),
3002
+ frequencyPenalty: z.number().optional(),
3003
+ presencePenalty: z.number().optional(),
3004
+ numImages: z.number().optional(),
3005
+ seed: z.number().optional(),
3006
+ format: UpdatePromptPromptsFormat$inboundSchema.optional(),
3007
+ dimensions: z.string().optional(),
3008
+ quality: z.string().optional(),
3009
+ style: z.string().optional(),
3010
+ responseFormat: z.nullable(
3011
+ z.union([
3012
+ z.lazy(() => UpdatePromptResponseFormatPrompts1$inboundSchema),
3013
+ z.lazy(() => UpdatePromptResponseFormatPrompts2$inboundSchema),
3014
+ ]),
3015
+ ).optional(),
3016
+ photoRealVersion: UpdatePromptPromptsPhotoRealVersion$inboundSchema
3017
+ .optional(),
3018
+ encoding_format: UpdatePromptPromptsEncodingFormat$inboundSchema.optional(),
3019
+ reasoningEffort: UpdatePromptPromptsReasoningEffort$inboundSchema.optional(),
3020
+ budgetTokens: z.number().optional(),
3021
+ }).transform((v) => {
3022
+ return remap$(v, {
3023
+ "encoding_format": "encodingFormat",
3024
+ });
3025
+ });
3026
+
3027
+ /** @internal */
3028
+ export type UpdatePromptPromptsModelParameters$Outbound = {
3029
+ temperature?: number | undefined;
3030
+ maxTokens?: number | undefined;
3031
+ topK?: number | undefined;
3032
+ topP?: number | undefined;
3033
+ frequencyPenalty?: number | undefined;
3034
+ presencePenalty?: number | undefined;
3035
+ numImages?: number | undefined;
3036
+ seed?: number | undefined;
3037
+ format?: string | undefined;
3038
+ dimensions?: string | undefined;
3039
+ quality?: string | undefined;
3040
+ style?: string | undefined;
3041
+ responseFormat?:
3042
+ | UpdatePromptResponseFormatPrompts1$Outbound
3043
+ | UpdatePromptResponseFormatPrompts2$Outbound
3044
+ | null
3045
+ | undefined;
3046
+ photoRealVersion?: string | undefined;
3047
+ encoding_format?: string | undefined;
3048
+ reasoningEffort?: string | undefined;
3049
+ budgetTokens?: number | undefined;
3050
+ };
3051
+
3052
+ /** @internal */
3053
+ export const UpdatePromptPromptsModelParameters$outboundSchema: z.ZodType<
3054
+ UpdatePromptPromptsModelParameters$Outbound,
3055
+ z.ZodTypeDef,
3056
+ UpdatePromptPromptsModelParameters
3057
+ > = z.object({
3058
+ temperature: z.number().optional(),
3059
+ maxTokens: z.number().optional(),
3060
+ topK: z.number().optional(),
3061
+ topP: z.number().optional(),
3062
+ frequencyPenalty: z.number().optional(),
3063
+ presencePenalty: z.number().optional(),
3064
+ numImages: z.number().optional(),
3065
+ seed: z.number().optional(),
3066
+ format: UpdatePromptPromptsFormat$outboundSchema.optional(),
3067
+ dimensions: z.string().optional(),
3068
+ quality: z.string().optional(),
3069
+ style: z.string().optional(),
3070
+ responseFormat: z.nullable(
3071
+ z.union([
3072
+ z.lazy(() => UpdatePromptResponseFormatPrompts1$outboundSchema),
3073
+ z.lazy(() => UpdatePromptResponseFormatPrompts2$outboundSchema),
3074
+ ]),
3075
+ ).optional(),
3076
+ photoRealVersion: UpdatePromptPromptsPhotoRealVersion$outboundSchema
3077
+ .optional(),
3078
+ encodingFormat: UpdatePromptPromptsEncodingFormat$outboundSchema.optional(),
3079
+ reasoningEffort: UpdatePromptPromptsReasoningEffort$outboundSchema.optional(),
3080
+ budgetTokens: z.number().optional(),
3081
+ }).transform((v) => {
3082
+ return remap$(v, {
3083
+ encodingFormat: "encoding_format",
3084
+ });
3085
+ });
3086
+
3087
+ /**
3088
+ * @internal
3089
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3090
+ */
3091
+ export namespace UpdatePromptPromptsModelParameters$ {
3092
+ /** @deprecated use `UpdatePromptPromptsModelParameters$inboundSchema` instead. */
3093
+ export const inboundSchema = UpdatePromptPromptsModelParameters$inboundSchema;
3094
+ /** @deprecated use `UpdatePromptPromptsModelParameters$outboundSchema` instead. */
3095
+ export const outboundSchema =
3096
+ UpdatePromptPromptsModelParameters$outboundSchema;
3097
+ /** @deprecated use `UpdatePromptPromptsModelParameters$Outbound` instead. */
3098
+ export type Outbound = UpdatePromptPromptsModelParameters$Outbound;
3099
+ }
3100
+
3101
+ export function updatePromptPromptsModelParametersToJSON(
3102
+ updatePromptPromptsModelParameters: UpdatePromptPromptsModelParameters,
3103
+ ): string {
3104
+ return JSON.stringify(
3105
+ UpdatePromptPromptsModelParameters$outboundSchema.parse(
3106
+ updatePromptPromptsModelParameters,
3107
+ ),
3108
+ );
3109
+ }
3110
+
3111
+ export function updatePromptPromptsModelParametersFromJSON(
3112
+ jsonString: string,
3113
+ ): SafeParseResult<UpdatePromptPromptsModelParameters, SDKValidationError> {
3114
+ return safeParse(
3115
+ jsonString,
3116
+ (x) =>
3117
+ UpdatePromptPromptsModelParameters$inboundSchema.parse(JSON.parse(x)),
3118
+ `Failed to parse 'UpdatePromptPromptsModelParameters' from JSON`,
3119
+ );
3120
+ }
3121
+
3122
+ /** @internal */
3123
+ export const UpdatePromptPromptsProvider$inboundSchema: z.ZodNativeEnum<
3124
+ typeof UpdatePromptPromptsProvider
3125
+ > = z.nativeEnum(UpdatePromptPromptsProvider);
3126
+
3127
+ /** @internal */
3128
+ export const UpdatePromptPromptsProvider$outboundSchema: z.ZodNativeEnum<
3129
+ typeof UpdatePromptPromptsProvider
3130
+ > = UpdatePromptPromptsProvider$inboundSchema;
3131
+
3132
+ /**
3133
+ * @internal
3134
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3135
+ */
3136
+ export namespace UpdatePromptPromptsProvider$ {
3137
+ /** @deprecated use `UpdatePromptPromptsProvider$inboundSchema` instead. */
3138
+ export const inboundSchema = UpdatePromptPromptsProvider$inboundSchema;
3139
+ /** @deprecated use `UpdatePromptPromptsProvider$outboundSchema` instead. */
3140
+ export const outboundSchema = UpdatePromptPromptsProvider$outboundSchema;
3141
+ }
3142
+
3143
+ /** @internal */
3144
+ export const UpdatePromptPromptsRole$inboundSchema: z.ZodNativeEnum<
3145
+ typeof UpdatePromptPromptsRole
3146
+ > = z.nativeEnum(UpdatePromptPromptsRole);
3147
+
3148
+ /** @internal */
3149
+ export const UpdatePromptPromptsRole$outboundSchema: z.ZodNativeEnum<
3150
+ typeof UpdatePromptPromptsRole
3151
+ > = UpdatePromptPromptsRole$inboundSchema;
3152
+
3153
+ /**
3154
+ * @internal
3155
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3156
+ */
3157
+ export namespace UpdatePromptPromptsRole$ {
3158
+ /** @deprecated use `UpdatePromptPromptsRole$inboundSchema` instead. */
3159
+ export const inboundSchema = UpdatePromptPromptsRole$inboundSchema;
3160
+ /** @deprecated use `UpdatePromptPromptsRole$outboundSchema` instead. */
3161
+ export const outboundSchema = UpdatePromptPromptsRole$outboundSchema;
3162
+ }
3163
+
3164
+ /** @internal */
3165
+ export const UpdatePrompt2PromptsResponse200ApplicationJSONType$inboundSchema:
3166
+ z.ZodNativeEnum<typeof UpdatePrompt2PromptsResponse200ApplicationJSONType> = z
3167
+ .nativeEnum(UpdatePrompt2PromptsResponse200ApplicationJSONType);
3168
+
3169
+ /** @internal */
3170
+ export const UpdatePrompt2PromptsResponse200ApplicationJSONType$outboundSchema:
3171
+ z.ZodNativeEnum<typeof UpdatePrompt2PromptsResponse200ApplicationJSONType> =
3172
+ UpdatePrompt2PromptsResponse200ApplicationJSONType$inboundSchema;
3173
+
3174
+ /**
3175
+ * @internal
3176
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3177
+ */
3178
+ export namespace UpdatePrompt2PromptsResponse200ApplicationJSONType$ {
3179
+ /** @deprecated use `UpdatePrompt2PromptsResponse200ApplicationJSONType$inboundSchema` instead. */
3180
+ export const inboundSchema =
3181
+ UpdatePrompt2PromptsResponse200ApplicationJSONType$inboundSchema;
3182
+ /** @deprecated use `UpdatePrompt2PromptsResponse200ApplicationJSONType$outboundSchema` instead. */
3183
+ export const outboundSchema =
3184
+ UpdatePrompt2PromptsResponse200ApplicationJSONType$outboundSchema;
3185
+ }
3186
+
3187
+ /** @internal */
3188
+ export const UpdatePrompt2PromptsFile$inboundSchema: z.ZodType<
3189
+ UpdatePrompt2PromptsFile,
3190
+ z.ZodTypeDef,
3191
+ unknown
3192
+ > = z.object({
3193
+ file_data: z.string(),
3194
+ filename: z.string().optional(),
3195
+ }).transform((v) => {
3196
+ return remap$(v, {
3197
+ "file_data": "fileData",
3198
+ });
3199
+ });
3200
+
3201
+ /** @internal */
3202
+ export type UpdatePrompt2PromptsFile$Outbound = {
3203
+ file_data: string;
3204
+ filename?: string | undefined;
3205
+ };
3206
+
3207
+ /** @internal */
3208
+ export const UpdatePrompt2PromptsFile$outboundSchema: z.ZodType<
3209
+ UpdatePrompt2PromptsFile$Outbound,
3210
+ z.ZodTypeDef,
3211
+ UpdatePrompt2PromptsFile
3212
+ > = z.object({
3213
+ fileData: z.string(),
3214
+ filename: z.string().optional(),
3215
+ }).transform((v) => {
3216
+ return remap$(v, {
3217
+ fileData: "file_data",
3218
+ });
3219
+ });
3220
+
3221
+ /**
3222
+ * @internal
3223
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3224
+ */
3225
+ export namespace UpdatePrompt2PromptsFile$ {
3226
+ /** @deprecated use `UpdatePrompt2PromptsFile$inboundSchema` instead. */
3227
+ export const inboundSchema = UpdatePrompt2PromptsFile$inboundSchema;
3228
+ /** @deprecated use `UpdatePrompt2PromptsFile$outboundSchema` instead. */
3229
+ export const outboundSchema = UpdatePrompt2PromptsFile$outboundSchema;
3230
+ /** @deprecated use `UpdatePrompt2PromptsFile$Outbound` instead. */
3231
+ export type Outbound = UpdatePrompt2PromptsFile$Outbound;
3232
+ }
3233
+
3234
+ export function updatePrompt2PromptsFileToJSON(
3235
+ updatePrompt2PromptsFile: UpdatePrompt2PromptsFile,
3236
+ ): string {
3237
+ return JSON.stringify(
3238
+ UpdatePrompt2PromptsFile$outboundSchema.parse(updatePrompt2PromptsFile),
3239
+ );
3240
+ }
3241
+
3242
+ export function updatePrompt2PromptsFileFromJSON(
3243
+ jsonString: string,
3244
+ ): SafeParseResult<UpdatePrompt2PromptsFile, SDKValidationError> {
3245
+ return safeParse(
3246
+ jsonString,
3247
+ (x) => UpdatePrompt2PromptsFile$inboundSchema.parse(JSON.parse(x)),
3248
+ `Failed to parse 'UpdatePrompt2PromptsFile' from JSON`,
3249
+ );
3250
+ }
3251
+
3252
+ /** @internal */
3253
+ export const UpdatePrompt2Prompts3$inboundSchema: z.ZodType<
3254
+ UpdatePrompt2Prompts3,
3255
+ z.ZodTypeDef,
3256
+ unknown
3257
+ > = z.object({
3258
+ type: UpdatePrompt2PromptsResponse200ApplicationJSONType$inboundSchema,
3259
+ file: z.lazy(() => UpdatePrompt2PromptsFile$inboundSchema),
3260
+ });
3261
+
3262
+ /** @internal */
3263
+ export type UpdatePrompt2Prompts3$Outbound = {
3264
+ type: string;
3265
+ file: UpdatePrompt2PromptsFile$Outbound;
3266
+ };
3267
+
3268
+ /** @internal */
3269
+ export const UpdatePrompt2Prompts3$outboundSchema: z.ZodType<
3270
+ UpdatePrompt2Prompts3$Outbound,
3271
+ z.ZodTypeDef,
3272
+ UpdatePrompt2Prompts3
3273
+ > = z.object({
3274
+ type: UpdatePrompt2PromptsResponse200ApplicationJSONType$outboundSchema,
3275
+ file: z.lazy(() => UpdatePrompt2PromptsFile$outboundSchema),
3276
+ });
3277
+
3278
+ /**
3279
+ * @internal
3280
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3281
+ */
3282
+ export namespace UpdatePrompt2Prompts3$ {
3283
+ /** @deprecated use `UpdatePrompt2Prompts3$inboundSchema` instead. */
3284
+ export const inboundSchema = UpdatePrompt2Prompts3$inboundSchema;
3285
+ /** @deprecated use `UpdatePrompt2Prompts3$outboundSchema` instead. */
3286
+ export const outboundSchema = UpdatePrompt2Prompts3$outboundSchema;
3287
+ /** @deprecated use `UpdatePrompt2Prompts3$Outbound` instead. */
3288
+ export type Outbound = UpdatePrompt2Prompts3$Outbound;
3289
+ }
3290
+
3291
+ export function updatePrompt2Prompts3ToJSON(
3292
+ updatePrompt2Prompts3: UpdatePrompt2Prompts3,
3293
+ ): string {
3294
+ return JSON.stringify(
3295
+ UpdatePrompt2Prompts3$outboundSchema.parse(updatePrompt2Prompts3),
3296
+ );
3297
+ }
3298
+
3299
+ export function updatePrompt2Prompts3FromJSON(
3300
+ jsonString: string,
3301
+ ): SafeParseResult<UpdatePrompt2Prompts3, SDKValidationError> {
3302
+ return safeParse(
3303
+ jsonString,
3304
+ (x) => UpdatePrompt2Prompts3$inboundSchema.parse(JSON.parse(x)),
3305
+ `Failed to parse 'UpdatePrompt2Prompts3' from JSON`,
3306
+ );
3307
+ }
3308
+
3309
+ /** @internal */
3310
+ export const UpdatePrompt2PromptsResponse200Type$inboundSchema: z.ZodNativeEnum<
3311
+ typeof UpdatePrompt2PromptsResponse200Type
3312
+ > = z.nativeEnum(UpdatePrompt2PromptsResponse200Type);
3313
+
3314
+ /** @internal */
3315
+ export const UpdatePrompt2PromptsResponse200Type$outboundSchema:
3316
+ z.ZodNativeEnum<typeof UpdatePrompt2PromptsResponse200Type> =
3317
+ UpdatePrompt2PromptsResponse200Type$inboundSchema;
3318
+
3319
+ /**
3320
+ * @internal
3321
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3322
+ */
3323
+ export namespace UpdatePrompt2PromptsResponse200Type$ {
3324
+ /** @deprecated use `UpdatePrompt2PromptsResponse200Type$inboundSchema` instead. */
3325
+ export const inboundSchema =
3326
+ UpdatePrompt2PromptsResponse200Type$inboundSchema;
3327
+ /** @deprecated use `UpdatePrompt2PromptsResponse200Type$outboundSchema` instead. */
3328
+ export const outboundSchema =
3329
+ UpdatePrompt2PromptsResponse200Type$outboundSchema;
3330
+ }
3331
+
3332
+ /** @internal */
3333
+ export const UpdatePrompt2PromptsImageUrl$inboundSchema: z.ZodType<
3334
+ UpdatePrompt2PromptsImageUrl,
3335
+ z.ZodTypeDef,
3336
+ unknown
3337
+ > = z.object({
3338
+ id: z.string().optional(),
3339
+ url: z.string(),
3340
+ detail: z.string().optional(),
3341
+ });
3342
+
3343
+ /** @internal */
3344
+ export type UpdatePrompt2PromptsImageUrl$Outbound = {
3345
+ id?: string | undefined;
3346
+ url: string;
3347
+ detail?: string | undefined;
3348
+ };
3349
+
3350
+ /** @internal */
3351
+ export const UpdatePrompt2PromptsImageUrl$outboundSchema: z.ZodType<
3352
+ UpdatePrompt2PromptsImageUrl$Outbound,
3353
+ z.ZodTypeDef,
3354
+ UpdatePrompt2PromptsImageUrl
3355
+ > = z.object({
3356
+ id: z.string().optional(),
3357
+ url: z.string(),
3358
+ detail: z.string().optional(),
3359
+ });
3360
+
3361
+ /**
3362
+ * @internal
3363
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3364
+ */
3365
+ export namespace UpdatePrompt2PromptsImageUrl$ {
3366
+ /** @deprecated use `UpdatePrompt2PromptsImageUrl$inboundSchema` instead. */
3367
+ export const inboundSchema = UpdatePrompt2PromptsImageUrl$inboundSchema;
3368
+ /** @deprecated use `UpdatePrompt2PromptsImageUrl$outboundSchema` instead. */
3369
+ export const outboundSchema = UpdatePrompt2PromptsImageUrl$outboundSchema;
3370
+ /** @deprecated use `UpdatePrompt2PromptsImageUrl$Outbound` instead. */
3371
+ export type Outbound = UpdatePrompt2PromptsImageUrl$Outbound;
3372
+ }
3373
+
3374
+ export function updatePrompt2PromptsImageUrlToJSON(
3375
+ updatePrompt2PromptsImageUrl: UpdatePrompt2PromptsImageUrl,
3376
+ ): string {
3377
+ return JSON.stringify(
3378
+ UpdatePrompt2PromptsImageUrl$outboundSchema.parse(
3379
+ updatePrompt2PromptsImageUrl,
3380
+ ),
3381
+ );
3382
+ }
3383
+
3384
+ export function updatePrompt2PromptsImageUrlFromJSON(
3385
+ jsonString: string,
3386
+ ): SafeParseResult<UpdatePrompt2PromptsImageUrl, SDKValidationError> {
3387
+ return safeParse(
3388
+ jsonString,
3389
+ (x) => UpdatePrompt2PromptsImageUrl$inboundSchema.parse(JSON.parse(x)),
3390
+ `Failed to parse 'UpdatePrompt2PromptsImageUrl' from JSON`,
3391
+ );
3392
+ }
3393
+
3394
+ /** @internal */
3395
+ export const UpdatePrompt2Prompts2$inboundSchema: z.ZodType<
3396
+ UpdatePrompt2Prompts2,
3397
+ z.ZodTypeDef,
3398
+ unknown
3399
+ > = z.object({
3400
+ type: UpdatePrompt2PromptsResponse200Type$inboundSchema,
3401
+ image_url: z.lazy(() => UpdatePrompt2PromptsImageUrl$inboundSchema),
3402
+ }).transform((v) => {
3403
+ return remap$(v, {
3404
+ "image_url": "imageUrl",
3405
+ });
3406
+ });
3407
+
3408
+ /** @internal */
3409
+ export type UpdatePrompt2Prompts2$Outbound = {
3410
+ type: string;
3411
+ image_url: UpdatePrompt2PromptsImageUrl$Outbound;
3412
+ };
3413
+
3414
+ /** @internal */
3415
+ export const UpdatePrompt2Prompts2$outboundSchema: z.ZodType<
3416
+ UpdatePrompt2Prompts2$Outbound,
3417
+ z.ZodTypeDef,
3418
+ UpdatePrompt2Prompts2
3419
+ > = z.object({
3420
+ type: UpdatePrompt2PromptsResponse200Type$outboundSchema,
3421
+ imageUrl: z.lazy(() => UpdatePrompt2PromptsImageUrl$outboundSchema),
3422
+ }).transform((v) => {
3423
+ return remap$(v, {
3424
+ imageUrl: "image_url",
3425
+ });
3426
+ });
3427
+
3428
+ /**
3429
+ * @internal
3430
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3431
+ */
3432
+ export namespace UpdatePrompt2Prompts2$ {
3433
+ /** @deprecated use `UpdatePrompt2Prompts2$inboundSchema` instead. */
3434
+ export const inboundSchema = UpdatePrompt2Prompts2$inboundSchema;
3435
+ /** @deprecated use `UpdatePrompt2Prompts2$outboundSchema` instead. */
3436
+ export const outboundSchema = UpdatePrompt2Prompts2$outboundSchema;
3437
+ /** @deprecated use `UpdatePrompt2Prompts2$Outbound` instead. */
3438
+ export type Outbound = UpdatePrompt2Prompts2$Outbound;
3439
+ }
3440
+
3441
+ export function updatePrompt2Prompts2ToJSON(
3442
+ updatePrompt2Prompts2: UpdatePrompt2Prompts2,
3443
+ ): string {
3444
+ return JSON.stringify(
3445
+ UpdatePrompt2Prompts2$outboundSchema.parse(updatePrompt2Prompts2),
3446
+ );
3447
+ }
3448
+
3449
+ export function updatePrompt2Prompts2FromJSON(
3450
+ jsonString: string,
3451
+ ): SafeParseResult<UpdatePrompt2Prompts2, SDKValidationError> {
3452
+ return safeParse(
3453
+ jsonString,
3454
+ (x) => UpdatePrompt2Prompts2$inboundSchema.parse(JSON.parse(x)),
3455
+ `Failed to parse 'UpdatePrompt2Prompts2' from JSON`,
3456
+ );
3457
+ }
3458
+
3459
+ /** @internal */
3460
+ export const UpdatePrompt2PromptsResponseType$inboundSchema: z.ZodNativeEnum<
3461
+ typeof UpdatePrompt2PromptsResponseType
3462
+ > = z.nativeEnum(UpdatePrompt2PromptsResponseType);
3463
+
3464
+ /** @internal */
3465
+ export const UpdatePrompt2PromptsResponseType$outboundSchema: z.ZodNativeEnum<
3466
+ typeof UpdatePrompt2PromptsResponseType
3467
+ > = UpdatePrompt2PromptsResponseType$inboundSchema;
3468
+
3469
+ /**
3470
+ * @internal
3471
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3472
+ */
3473
+ export namespace UpdatePrompt2PromptsResponseType$ {
3474
+ /** @deprecated use `UpdatePrompt2PromptsResponseType$inboundSchema` instead. */
3475
+ export const inboundSchema = UpdatePrompt2PromptsResponseType$inboundSchema;
3476
+ /** @deprecated use `UpdatePrompt2PromptsResponseType$outboundSchema` instead. */
3477
+ export const outboundSchema = UpdatePrompt2PromptsResponseType$outboundSchema;
3478
+ }
3479
+
3480
+ /** @internal */
3481
+ export const UpdatePrompt2Prompts1$inboundSchema: z.ZodType<
3482
+ UpdatePrompt2Prompts1,
3483
+ z.ZodTypeDef,
3484
+ unknown
3485
+ > = z.object({
3486
+ type: UpdatePrompt2PromptsResponseType$inboundSchema,
3487
+ text: z.string(),
3488
+ });
3489
+
3490
+ /** @internal */
3491
+ export type UpdatePrompt2Prompts1$Outbound = {
3492
+ type: string;
3493
+ text: string;
3494
+ };
3495
+
3496
+ /** @internal */
3497
+ export const UpdatePrompt2Prompts1$outboundSchema: z.ZodType<
3498
+ UpdatePrompt2Prompts1$Outbound,
3499
+ z.ZodTypeDef,
3500
+ UpdatePrompt2Prompts1
3501
+ > = z.object({
3502
+ type: UpdatePrompt2PromptsResponseType$outboundSchema,
3503
+ text: z.string(),
3504
+ });
3505
+
3506
+ /**
3507
+ * @internal
3508
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3509
+ */
3510
+ export namespace UpdatePrompt2Prompts1$ {
3511
+ /** @deprecated use `UpdatePrompt2Prompts1$inboundSchema` instead. */
3512
+ export const inboundSchema = UpdatePrompt2Prompts1$inboundSchema;
3513
+ /** @deprecated use `UpdatePrompt2Prompts1$outboundSchema` instead. */
3514
+ export const outboundSchema = UpdatePrompt2Prompts1$outboundSchema;
3515
+ /** @deprecated use `UpdatePrompt2Prompts1$Outbound` instead. */
3516
+ export type Outbound = UpdatePrompt2Prompts1$Outbound;
3517
+ }
3518
+
3519
+ export function updatePrompt2Prompts1ToJSON(
3520
+ updatePrompt2Prompts1: UpdatePrompt2Prompts1,
3521
+ ): string {
3522
+ return JSON.stringify(
3523
+ UpdatePrompt2Prompts1$outboundSchema.parse(updatePrompt2Prompts1),
3524
+ );
3525
+ }
3526
+
3527
+ export function updatePrompt2Prompts1FromJSON(
3528
+ jsonString: string,
3529
+ ): SafeParseResult<UpdatePrompt2Prompts1, SDKValidationError> {
3530
+ return safeParse(
3531
+ jsonString,
3532
+ (x) => UpdatePrompt2Prompts1$inboundSchema.parse(JSON.parse(x)),
3533
+ `Failed to parse 'UpdatePrompt2Prompts1' from JSON`,
3534
+ );
3535
+ }
3536
+
3537
+ /** @internal */
3538
+ export const UpdatePromptContentPrompts2$inboundSchema: z.ZodType<
3539
+ UpdatePromptContentPrompts2,
3540
+ z.ZodTypeDef,
3541
+ unknown
3542
+ > = z.union([
3543
+ z.lazy(() => UpdatePrompt2Prompts1$inboundSchema),
3544
+ z.lazy(() => UpdatePrompt2Prompts2$inboundSchema),
3545
+ z.lazy(() => UpdatePrompt2Prompts3$inboundSchema),
3546
+ ]);
3547
+
3548
+ /** @internal */
3549
+ export type UpdatePromptContentPrompts2$Outbound =
3550
+ | UpdatePrompt2Prompts1$Outbound
3551
+ | UpdatePrompt2Prompts2$Outbound
3552
+ | UpdatePrompt2Prompts3$Outbound;
3553
+
3554
+ /** @internal */
3555
+ export const UpdatePromptContentPrompts2$outboundSchema: z.ZodType<
3556
+ UpdatePromptContentPrompts2$Outbound,
3557
+ z.ZodTypeDef,
3558
+ UpdatePromptContentPrompts2
3559
+ > = z.union([
3560
+ z.lazy(() => UpdatePrompt2Prompts1$outboundSchema),
3561
+ z.lazy(() => UpdatePrompt2Prompts2$outboundSchema),
3562
+ z.lazy(() => UpdatePrompt2Prompts3$outboundSchema),
3563
+ ]);
3564
+
3565
+ /**
3566
+ * @internal
3567
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3568
+ */
3569
+ export namespace UpdatePromptContentPrompts2$ {
3570
+ /** @deprecated use `UpdatePromptContentPrompts2$inboundSchema` instead. */
3571
+ export const inboundSchema = UpdatePromptContentPrompts2$inboundSchema;
3572
+ /** @deprecated use `UpdatePromptContentPrompts2$outboundSchema` instead. */
3573
+ export const outboundSchema = UpdatePromptContentPrompts2$outboundSchema;
3574
+ /** @deprecated use `UpdatePromptContentPrompts2$Outbound` instead. */
3575
+ export type Outbound = UpdatePromptContentPrompts2$Outbound;
3576
+ }
3577
+
3578
+ export function updatePromptContentPrompts2ToJSON(
3579
+ updatePromptContentPrompts2: UpdatePromptContentPrompts2,
3580
+ ): string {
3581
+ return JSON.stringify(
3582
+ UpdatePromptContentPrompts2$outboundSchema.parse(
3583
+ updatePromptContentPrompts2,
3584
+ ),
3585
+ );
3586
+ }
3587
+
3588
+ export function updatePromptContentPrompts2FromJSON(
3589
+ jsonString: string,
3590
+ ): SafeParseResult<UpdatePromptContentPrompts2, SDKValidationError> {
3591
+ return safeParse(
3592
+ jsonString,
3593
+ (x) => UpdatePromptContentPrompts2$inboundSchema.parse(JSON.parse(x)),
3594
+ `Failed to parse 'UpdatePromptContentPrompts2' from JSON`,
3595
+ );
3596
+ }
3597
+
3598
+ /** @internal */
3599
+ export const UpdatePromptPromptsContent$inboundSchema: z.ZodType<
3600
+ UpdatePromptPromptsContent,
3601
+ z.ZodTypeDef,
3602
+ unknown
3603
+ > = z.union([
3604
+ z.string(),
3605
+ z.array(z.union([
3606
+ z.lazy(() => UpdatePrompt2Prompts1$inboundSchema),
3607
+ z.lazy(() => UpdatePrompt2Prompts2$inboundSchema),
3608
+ z.lazy(() => UpdatePrompt2Prompts3$inboundSchema),
3609
+ ])),
3610
+ ]);
3611
+
3612
+ /** @internal */
3613
+ export type UpdatePromptPromptsContent$Outbound =
3614
+ | string
3615
+ | Array<
3616
+ | UpdatePrompt2Prompts1$Outbound
3617
+ | UpdatePrompt2Prompts2$Outbound
3618
+ | UpdatePrompt2Prompts3$Outbound
3619
+ >;
3620
+
3621
+ /** @internal */
3622
+ export const UpdatePromptPromptsContent$outboundSchema: z.ZodType<
3623
+ UpdatePromptPromptsContent$Outbound,
3624
+ z.ZodTypeDef,
3625
+ UpdatePromptPromptsContent
3626
+ > = z.union([
3627
+ z.string(),
3628
+ z.array(z.union([
3629
+ z.lazy(() => UpdatePrompt2Prompts1$outboundSchema),
3630
+ z.lazy(() => UpdatePrompt2Prompts2$outboundSchema),
3631
+ z.lazy(() => UpdatePrompt2Prompts3$outboundSchema),
3632
+ ])),
3633
+ ]);
3634
+
3635
+ /**
3636
+ * @internal
3637
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3638
+ */
3639
+ export namespace UpdatePromptPromptsContent$ {
3640
+ /** @deprecated use `UpdatePromptPromptsContent$inboundSchema` instead. */
3641
+ export const inboundSchema = UpdatePromptPromptsContent$inboundSchema;
3642
+ /** @deprecated use `UpdatePromptPromptsContent$outboundSchema` instead. */
3643
+ export const outboundSchema = UpdatePromptPromptsContent$outboundSchema;
3644
+ /** @deprecated use `UpdatePromptPromptsContent$Outbound` instead. */
3645
+ export type Outbound = UpdatePromptPromptsContent$Outbound;
3646
+ }
3647
+
3648
+ export function updatePromptPromptsContentToJSON(
3649
+ updatePromptPromptsContent: UpdatePromptPromptsContent,
3650
+ ): string {
3651
+ return JSON.stringify(
3652
+ UpdatePromptPromptsContent$outboundSchema.parse(updatePromptPromptsContent),
3653
+ );
3654
+ }
3655
+
3656
+ export function updatePromptPromptsContentFromJSON(
3657
+ jsonString: string,
3658
+ ): SafeParseResult<UpdatePromptPromptsContent, SDKValidationError> {
3659
+ return safeParse(
3660
+ jsonString,
3661
+ (x) => UpdatePromptPromptsContent$inboundSchema.parse(JSON.parse(x)),
3662
+ `Failed to parse 'UpdatePromptPromptsContent' from JSON`,
3663
+ );
3664
+ }
3665
+
3666
+ /** @internal */
3667
+ export const UpdatePromptPromptsResponseType$inboundSchema: z.ZodNativeEnum<
3668
+ typeof UpdatePromptPromptsResponseType
3669
+ > = z.nativeEnum(UpdatePromptPromptsResponseType);
3670
+
3671
+ /** @internal */
3672
+ export const UpdatePromptPromptsResponseType$outboundSchema: z.ZodNativeEnum<
3673
+ typeof UpdatePromptPromptsResponseType
3674
+ > = UpdatePromptPromptsResponseType$inboundSchema;
3675
+
3676
+ /**
3677
+ * @internal
3678
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3679
+ */
3680
+ export namespace UpdatePromptPromptsResponseType$ {
3681
+ /** @deprecated use `UpdatePromptPromptsResponseType$inboundSchema` instead. */
3682
+ export const inboundSchema = UpdatePromptPromptsResponseType$inboundSchema;
3683
+ /** @deprecated use `UpdatePromptPromptsResponseType$outboundSchema` instead. */
3684
+ export const outboundSchema = UpdatePromptPromptsResponseType$outboundSchema;
3685
+ }
3686
+
3687
+ /** @internal */
3688
+ export const UpdatePromptPromptsFunction$inboundSchema: z.ZodType<
3689
+ UpdatePromptPromptsFunction,
3690
+ z.ZodTypeDef,
3691
+ unknown
3692
+ > = z.object({
3693
+ name: z.string(),
3694
+ arguments: z.string(),
3695
+ });
3696
+
3697
+ /** @internal */
3698
+ export type UpdatePromptPromptsFunction$Outbound = {
3699
+ name: string;
3700
+ arguments: string;
3701
+ };
3702
+
3703
+ /** @internal */
3704
+ export const UpdatePromptPromptsFunction$outboundSchema: z.ZodType<
3705
+ UpdatePromptPromptsFunction$Outbound,
3706
+ z.ZodTypeDef,
3707
+ UpdatePromptPromptsFunction
3708
+ > = z.object({
3709
+ name: z.string(),
3710
+ arguments: z.string(),
3711
+ });
3712
+
3713
+ /**
3714
+ * @internal
3715
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3716
+ */
3717
+ export namespace UpdatePromptPromptsFunction$ {
3718
+ /** @deprecated use `UpdatePromptPromptsFunction$inboundSchema` instead. */
3719
+ export const inboundSchema = UpdatePromptPromptsFunction$inboundSchema;
3720
+ /** @deprecated use `UpdatePromptPromptsFunction$outboundSchema` instead. */
3721
+ export const outboundSchema = UpdatePromptPromptsFunction$outboundSchema;
3722
+ /** @deprecated use `UpdatePromptPromptsFunction$Outbound` instead. */
3723
+ export type Outbound = UpdatePromptPromptsFunction$Outbound;
3724
+ }
3725
+
3726
+ export function updatePromptPromptsFunctionToJSON(
3727
+ updatePromptPromptsFunction: UpdatePromptPromptsFunction,
3728
+ ): string {
3729
+ return JSON.stringify(
3730
+ UpdatePromptPromptsFunction$outboundSchema.parse(
3731
+ updatePromptPromptsFunction,
3732
+ ),
3733
+ );
3734
+ }
3735
+
3736
+ export function updatePromptPromptsFunctionFromJSON(
3737
+ jsonString: string,
3738
+ ): SafeParseResult<UpdatePromptPromptsFunction, SDKValidationError> {
3739
+ return safeParse(
3740
+ jsonString,
3741
+ (x) => UpdatePromptPromptsFunction$inboundSchema.parse(JSON.parse(x)),
3742
+ `Failed to parse 'UpdatePromptPromptsFunction' from JSON`,
3743
+ );
3744
+ }
3745
+
3746
+ /** @internal */
3747
+ export const UpdatePromptPromptsToolCalls$inboundSchema: z.ZodType<
3748
+ UpdatePromptPromptsToolCalls,
3749
+ z.ZodTypeDef,
3750
+ unknown
3751
+ > = z.object({
3752
+ id: z.string().optional(),
3753
+ index: z.number().optional(),
3754
+ type: UpdatePromptPromptsResponseType$inboundSchema,
3755
+ function: z.lazy(() => UpdatePromptPromptsFunction$inboundSchema),
3756
+ });
3757
+
3758
+ /** @internal */
3759
+ export type UpdatePromptPromptsToolCalls$Outbound = {
3760
+ id?: string | undefined;
3761
+ index?: number | undefined;
3762
+ type: string;
3763
+ function: UpdatePromptPromptsFunction$Outbound;
3764
+ };
3765
+
3766
+ /** @internal */
3767
+ export const UpdatePromptPromptsToolCalls$outboundSchema: z.ZodType<
3768
+ UpdatePromptPromptsToolCalls$Outbound,
3769
+ z.ZodTypeDef,
3770
+ UpdatePromptPromptsToolCalls
3771
+ > = z.object({
3772
+ id: z.string().optional(),
3773
+ index: z.number().optional(),
3774
+ type: UpdatePromptPromptsResponseType$outboundSchema,
3775
+ function: z.lazy(() => UpdatePromptPromptsFunction$outboundSchema),
3776
+ });
3777
+
3778
+ /**
3779
+ * @internal
3780
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3781
+ */
3782
+ export namespace UpdatePromptPromptsToolCalls$ {
3783
+ /** @deprecated use `UpdatePromptPromptsToolCalls$inboundSchema` instead. */
3784
+ export const inboundSchema = UpdatePromptPromptsToolCalls$inboundSchema;
3785
+ /** @deprecated use `UpdatePromptPromptsToolCalls$outboundSchema` instead. */
3786
+ export const outboundSchema = UpdatePromptPromptsToolCalls$outboundSchema;
3787
+ /** @deprecated use `UpdatePromptPromptsToolCalls$Outbound` instead. */
3788
+ export type Outbound = UpdatePromptPromptsToolCalls$Outbound;
3789
+ }
3790
+
3791
+ export function updatePromptPromptsToolCallsToJSON(
3792
+ updatePromptPromptsToolCalls: UpdatePromptPromptsToolCalls,
3793
+ ): string {
3794
+ return JSON.stringify(
3795
+ UpdatePromptPromptsToolCalls$outboundSchema.parse(
3796
+ updatePromptPromptsToolCalls,
3797
+ ),
3798
+ );
3799
+ }
3800
+
3801
+ export function updatePromptPromptsToolCallsFromJSON(
3802
+ jsonString: string,
3803
+ ): SafeParseResult<UpdatePromptPromptsToolCalls, SDKValidationError> {
3804
+ return safeParse(
3805
+ jsonString,
3806
+ (x) => UpdatePromptPromptsToolCalls$inboundSchema.parse(JSON.parse(x)),
3807
+ `Failed to parse 'UpdatePromptPromptsToolCalls' from JSON`,
3808
+ );
3809
+ }
3810
+
3811
+ /** @internal */
3812
+ export const UpdatePromptPromptsMessages$inboundSchema: z.ZodType<
3813
+ UpdatePromptPromptsMessages,
3814
+ z.ZodTypeDef,
3815
+ unknown
3816
+ > = z.object({
3817
+ role: UpdatePromptPromptsRole$inboundSchema,
3818
+ content: z.union([
3819
+ z.string(),
3820
+ z.array(z.union([
3821
+ z.lazy(() => UpdatePrompt2Prompts1$inboundSchema),
3822
+ z.lazy(() => UpdatePrompt2Prompts2$inboundSchema),
3823
+ z.lazy(() => UpdatePrompt2Prompts3$inboundSchema),
3824
+ ])),
3825
+ ]),
3826
+ tool_calls: z.array(z.lazy(() => UpdatePromptPromptsToolCalls$inboundSchema))
3827
+ .optional(),
3828
+ tool_call_id: z.string().optional(),
3829
+ }).transform((v) => {
3830
+ return remap$(v, {
3831
+ "tool_calls": "toolCalls",
3832
+ "tool_call_id": "toolCallId",
3833
+ });
3834
+ });
3835
+
3836
+ /** @internal */
3837
+ export type UpdatePromptPromptsMessages$Outbound = {
3838
+ role: string;
3839
+ content:
3840
+ | string
3841
+ | Array<
3842
+ | UpdatePrompt2Prompts1$Outbound
3843
+ | UpdatePrompt2Prompts2$Outbound
3844
+ | UpdatePrompt2Prompts3$Outbound
3845
+ >;
3846
+ tool_calls?: Array<UpdatePromptPromptsToolCalls$Outbound> | undefined;
3847
+ tool_call_id?: string | undefined;
3848
+ };
3849
+
3850
+ /** @internal */
3851
+ export const UpdatePromptPromptsMessages$outboundSchema: z.ZodType<
3852
+ UpdatePromptPromptsMessages$Outbound,
3853
+ z.ZodTypeDef,
3854
+ UpdatePromptPromptsMessages
3855
+ > = z.object({
3856
+ role: UpdatePromptPromptsRole$outboundSchema,
3857
+ content: z.union([
3858
+ z.string(),
3859
+ z.array(z.union([
3860
+ z.lazy(() => UpdatePrompt2Prompts1$outboundSchema),
3861
+ z.lazy(() => UpdatePrompt2Prompts2$outboundSchema),
3862
+ z.lazy(() => UpdatePrompt2Prompts3$outboundSchema),
3863
+ ])),
3864
+ ]),
3865
+ toolCalls: z.array(z.lazy(() => UpdatePromptPromptsToolCalls$outboundSchema))
3866
+ .optional(),
3867
+ toolCallId: z.string().optional(),
3868
+ }).transform((v) => {
3869
+ return remap$(v, {
3870
+ toolCalls: "tool_calls",
3871
+ toolCallId: "tool_call_id",
3872
+ });
3873
+ });
3874
+
3875
+ /**
3876
+ * @internal
3877
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3878
+ */
3879
+ export namespace UpdatePromptPromptsMessages$ {
3880
+ /** @deprecated use `UpdatePromptPromptsMessages$inboundSchema` instead. */
3881
+ export const inboundSchema = UpdatePromptPromptsMessages$inboundSchema;
3882
+ /** @deprecated use `UpdatePromptPromptsMessages$outboundSchema` instead. */
3883
+ export const outboundSchema = UpdatePromptPromptsMessages$outboundSchema;
3884
+ /** @deprecated use `UpdatePromptPromptsMessages$Outbound` instead. */
3885
+ export type Outbound = UpdatePromptPromptsMessages$Outbound;
3886
+ }
3887
+
3888
+ export function updatePromptPromptsMessagesToJSON(
3889
+ updatePromptPromptsMessages: UpdatePromptPromptsMessages,
3890
+ ): string {
3891
+ return JSON.stringify(
3892
+ UpdatePromptPromptsMessages$outboundSchema.parse(
3893
+ updatePromptPromptsMessages,
3894
+ ),
3895
+ );
3896
+ }
3897
+
3898
+ export function updatePromptPromptsMessagesFromJSON(
3899
+ jsonString: string,
3900
+ ): SafeParseResult<UpdatePromptPromptsMessages, SDKValidationError> {
3901
+ return safeParse(
3902
+ jsonString,
3903
+ (x) => UpdatePromptPromptsMessages$inboundSchema.parse(JSON.parse(x)),
3904
+ `Failed to parse 'UpdatePromptPromptsMessages' from JSON`,
3905
+ );
3906
+ }
3907
+
3908
+ /** @internal */
3909
+ export const UpdatePromptPromptsPromptConfig$inboundSchema: z.ZodType<
3910
+ UpdatePromptPromptsPromptConfig,
3911
+ z.ZodTypeDef,
3912
+ unknown
3913
+ > = z.object({
3914
+ stream: z.boolean().optional(),
3915
+ model: z.string().optional(),
3916
+ model_db_id: z.nullable(z.string()).optional(),
3917
+ model_type: z.nullable(UpdatePromptModelType$inboundSchema).optional(),
3918
+ model_parameters: z.lazy(() =>
3919
+ UpdatePromptPromptsModelParameters$inboundSchema
3920
+ ).optional(),
3921
+ provider: UpdatePromptPromptsProvider$inboundSchema.optional(),
3922
+ integration_id: z.nullable(z.string()).optional(),
3923
+ version: z.string().optional(),
3924
+ messages: z.array(z.lazy(() => UpdatePromptPromptsMessages$inboundSchema)),
3925
+ }).transform((v) => {
3926
+ return remap$(v, {
3927
+ "model_db_id": "modelDbId",
3928
+ "model_type": "modelType",
3929
+ "model_parameters": "modelParameters",
3930
+ "integration_id": "integrationId",
3931
+ });
3932
+ });
3933
+
3934
+ /** @internal */
3935
+ export type UpdatePromptPromptsPromptConfig$Outbound = {
3936
+ stream?: boolean | undefined;
3937
+ model?: string | undefined;
3938
+ model_db_id?: string | null | undefined;
3939
+ model_type?: string | null | undefined;
3940
+ model_parameters?: UpdatePromptPromptsModelParameters$Outbound | undefined;
3941
+ provider?: string | undefined;
3942
+ integration_id?: string | null | undefined;
3943
+ version?: string | undefined;
3944
+ messages: Array<UpdatePromptPromptsMessages$Outbound>;
3945
+ };
3946
+
3947
+ /** @internal */
3948
+ export const UpdatePromptPromptsPromptConfig$outboundSchema: z.ZodType<
3949
+ UpdatePromptPromptsPromptConfig$Outbound,
3950
+ z.ZodTypeDef,
3951
+ UpdatePromptPromptsPromptConfig
3952
+ > = z.object({
3953
+ stream: z.boolean().optional(),
3954
+ model: z.string().optional(),
3955
+ modelDbId: z.nullable(z.string()).optional(),
3956
+ modelType: z.nullable(UpdatePromptModelType$outboundSchema).optional(),
3957
+ modelParameters: z.lazy(() =>
3958
+ UpdatePromptPromptsModelParameters$outboundSchema
3959
+ ).optional(),
3960
+ provider: UpdatePromptPromptsProvider$outboundSchema.optional(),
3961
+ integrationId: z.nullable(z.string()).optional(),
3962
+ version: z.string().optional(),
3963
+ messages: z.array(z.lazy(() => UpdatePromptPromptsMessages$outboundSchema)),
3964
+ }).transform((v) => {
3965
+ return remap$(v, {
3966
+ modelDbId: "model_db_id",
3967
+ modelType: "model_type",
3968
+ modelParameters: "model_parameters",
3969
+ integrationId: "integration_id",
3970
+ });
3971
+ });
3972
+
3973
+ /**
3974
+ * @internal
3975
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3976
+ */
3977
+ export namespace UpdatePromptPromptsPromptConfig$ {
3978
+ /** @deprecated use `UpdatePromptPromptsPromptConfig$inboundSchema` instead. */
3979
+ export const inboundSchema = UpdatePromptPromptsPromptConfig$inboundSchema;
3980
+ /** @deprecated use `UpdatePromptPromptsPromptConfig$outboundSchema` instead. */
3981
+ export const outboundSchema = UpdatePromptPromptsPromptConfig$outboundSchema;
3982
+ /** @deprecated use `UpdatePromptPromptsPromptConfig$Outbound` instead. */
3983
+ export type Outbound = UpdatePromptPromptsPromptConfig$Outbound;
3984
+ }
3985
+
3986
+ export function updatePromptPromptsPromptConfigToJSON(
3987
+ updatePromptPromptsPromptConfig: UpdatePromptPromptsPromptConfig,
3988
+ ): string {
3989
+ return JSON.stringify(
3990
+ UpdatePromptPromptsPromptConfig$outboundSchema.parse(
3991
+ updatePromptPromptsPromptConfig,
3992
+ ),
3993
+ );
3994
+ }
3995
+
3996
+ export function updatePromptPromptsPromptConfigFromJSON(
3997
+ jsonString: string,
3998
+ ): SafeParseResult<UpdatePromptPromptsPromptConfig, SDKValidationError> {
3999
+ return safeParse(
4000
+ jsonString,
4001
+ (x) => UpdatePromptPromptsPromptConfig$inboundSchema.parse(JSON.parse(x)),
4002
+ `Failed to parse 'UpdatePromptPromptsPromptConfig' from JSON`,
4003
+ );
4004
+ }
4005
+
4006
+ /** @internal */
4007
+ export const UpdatePromptPromptsUseCases$inboundSchema: z.ZodNativeEnum<
4008
+ typeof UpdatePromptPromptsUseCases
4009
+ > = z.nativeEnum(UpdatePromptPromptsUseCases);
4010
+
4011
+ /** @internal */
4012
+ export const UpdatePromptPromptsUseCases$outboundSchema: z.ZodNativeEnum<
4013
+ typeof UpdatePromptPromptsUseCases
4014
+ > = UpdatePromptPromptsUseCases$inboundSchema;
4015
+
4016
+ /**
4017
+ * @internal
4018
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4019
+ */
4020
+ export namespace UpdatePromptPromptsUseCases$ {
4021
+ /** @deprecated use `UpdatePromptPromptsUseCases$inboundSchema` instead. */
4022
+ export const inboundSchema = UpdatePromptPromptsUseCases$inboundSchema;
4023
+ /** @deprecated use `UpdatePromptPromptsUseCases$outboundSchema` instead. */
4024
+ export const outboundSchema = UpdatePromptPromptsUseCases$outboundSchema;
4025
+ }
4026
+
4027
+ /** @internal */
4028
+ export const UpdatePromptPromptsLanguage$inboundSchema: z.ZodNativeEnum<
4029
+ typeof UpdatePromptPromptsLanguage
4030
+ > = z.nativeEnum(UpdatePromptPromptsLanguage);
4031
+
4032
+ /** @internal */
4033
+ export const UpdatePromptPromptsLanguage$outboundSchema: z.ZodNativeEnum<
4034
+ typeof UpdatePromptPromptsLanguage
4035
+ > = UpdatePromptPromptsLanguage$inboundSchema;
4036
+
4037
+ /**
4038
+ * @internal
4039
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4040
+ */
4041
+ export namespace UpdatePromptPromptsLanguage$ {
4042
+ /** @deprecated use `UpdatePromptPromptsLanguage$inboundSchema` instead. */
4043
+ export const inboundSchema = UpdatePromptPromptsLanguage$inboundSchema;
4044
+ /** @deprecated use `UpdatePromptPromptsLanguage$outboundSchema` instead. */
4045
+ export const outboundSchema = UpdatePromptPromptsLanguage$outboundSchema;
4046
+ }
4047
+
4048
+ /** @internal */
4049
+ export const UpdatePromptPromptsMetadata$inboundSchema: z.ZodType<
4050
+ UpdatePromptPromptsMetadata,
4051
+ z.ZodTypeDef,
4052
+ unknown
4053
+ > = z.object({
4054
+ use_cases: z.array(UpdatePromptPromptsUseCases$inboundSchema).optional(),
4055
+ language: z.nullable(UpdatePromptPromptsLanguage$inboundSchema).optional(),
4056
+ }).transform((v) => {
4057
+ return remap$(v, {
4058
+ "use_cases": "useCases",
4059
+ });
4060
+ });
4061
+
4062
+ /** @internal */
4063
+ export type UpdatePromptPromptsMetadata$Outbound = {
4064
+ use_cases?: Array<string> | undefined;
4065
+ language?: string | null | undefined;
4066
+ };
4067
+
4068
+ /** @internal */
4069
+ export const UpdatePromptPromptsMetadata$outboundSchema: z.ZodType<
4070
+ UpdatePromptPromptsMetadata$Outbound,
4071
+ z.ZodTypeDef,
4072
+ UpdatePromptPromptsMetadata
4073
+ > = z.object({
4074
+ useCases: z.array(UpdatePromptPromptsUseCases$outboundSchema).optional(),
4075
+ language: z.nullable(UpdatePromptPromptsLanguage$outboundSchema).optional(),
4076
+ }).transform((v) => {
4077
+ return remap$(v, {
4078
+ useCases: "use_cases",
4079
+ });
4080
+ });
4081
+
4082
+ /**
4083
+ * @internal
4084
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4085
+ */
4086
+ export namespace UpdatePromptPromptsMetadata$ {
4087
+ /** @deprecated use `UpdatePromptPromptsMetadata$inboundSchema` instead. */
4088
+ export const inboundSchema = UpdatePromptPromptsMetadata$inboundSchema;
4089
+ /** @deprecated use `UpdatePromptPromptsMetadata$outboundSchema` instead. */
4090
+ export const outboundSchema = UpdatePromptPromptsMetadata$outboundSchema;
4091
+ /** @deprecated use `UpdatePromptPromptsMetadata$Outbound` instead. */
4092
+ export type Outbound = UpdatePromptPromptsMetadata$Outbound;
4093
+ }
4094
+
4095
+ export function updatePromptPromptsMetadataToJSON(
4096
+ updatePromptPromptsMetadata: UpdatePromptPromptsMetadata,
4097
+ ): string {
4098
+ return JSON.stringify(
4099
+ UpdatePromptPromptsMetadata$outboundSchema.parse(
4100
+ updatePromptPromptsMetadata,
4101
+ ),
4102
+ );
4103
+ }
4104
+
4105
+ export function updatePromptPromptsMetadataFromJSON(
4106
+ jsonString: string,
4107
+ ): SafeParseResult<UpdatePromptPromptsMetadata, SDKValidationError> {
4108
+ return safeParse(
4109
+ jsonString,
4110
+ (x) => UpdatePromptPromptsMetadata$inboundSchema.parse(JSON.parse(x)),
4111
+ `Failed to parse 'UpdatePromptPromptsMetadata' from JSON`,
4112
+ );
4113
+ }
4114
+
4115
+ /** @internal */
4116
+ export const UpdatePromptResponseBody$inboundSchema: z.ZodType<
4117
+ UpdatePromptResponseBody,
4118
+ z.ZodTypeDef,
4119
+ unknown
4120
+ > = z.object({
4121
+ _id: z.string(),
4122
+ type: UpdatePromptPromptsType$inboundSchema,
4123
+ owner: z.string(),
4124
+ domain_id: z.string(),
4125
+ created: z.string(),
4126
+ updated: z.string(),
4127
+ created_by_id: z.nullable(z.string()).optional(),
4128
+ updated_by_id: z.nullable(z.string()).optional(),
4129
+ display_name: z.string(),
4130
+ description: z.nullable(z.string()).optional(),
4131
+ prompt_config: z.lazy(() => UpdatePromptPromptsPromptConfig$inboundSchema),
4132
+ metadata: z.lazy(() => UpdatePromptPromptsMetadata$inboundSchema).optional(),
4133
+ }).transform((v) => {
4134
+ return remap$(v, {
4135
+ "_id": "id",
4136
+ "domain_id": "domainId",
4137
+ "created_by_id": "createdById",
4138
+ "updated_by_id": "updatedById",
4139
+ "display_name": "displayName",
4140
+ "prompt_config": "promptConfig",
4141
+ });
4142
+ });
4143
+
4144
+ /** @internal */
4145
+ export type UpdatePromptResponseBody$Outbound = {
4146
+ _id: string;
4147
+ type: string;
4148
+ owner: string;
4149
+ domain_id: string;
4150
+ created: string;
4151
+ updated: string;
4152
+ created_by_id?: string | null | undefined;
4153
+ updated_by_id?: string | null | undefined;
4154
+ display_name: string;
4155
+ description?: string | null | undefined;
4156
+ prompt_config: UpdatePromptPromptsPromptConfig$Outbound;
4157
+ metadata?: UpdatePromptPromptsMetadata$Outbound | undefined;
4158
+ };
4159
+
4160
+ /** @internal */
4161
+ export const UpdatePromptResponseBody$outboundSchema: z.ZodType<
4162
+ UpdatePromptResponseBody$Outbound,
4163
+ z.ZodTypeDef,
4164
+ UpdatePromptResponseBody
4165
+ > = z.object({
4166
+ id: z.string(),
4167
+ type: UpdatePromptPromptsType$outboundSchema,
4168
+ owner: z.string(),
4169
+ domainId: z.string(),
4170
+ created: z.string(),
4171
+ updated: z.string(),
4172
+ createdById: z.nullable(z.string()).optional(),
4173
+ updatedById: z.nullable(z.string()).optional(),
4174
+ displayName: z.string(),
4175
+ description: z.nullable(z.string()).optional(),
4176
+ promptConfig: z.lazy(() => UpdatePromptPromptsPromptConfig$outboundSchema),
4177
+ metadata: z.lazy(() => UpdatePromptPromptsMetadata$outboundSchema).optional(),
4178
+ }).transform((v) => {
4179
+ return remap$(v, {
4180
+ id: "_id",
4181
+ domainId: "domain_id",
4182
+ createdById: "created_by_id",
4183
+ updatedById: "updated_by_id",
4184
+ displayName: "display_name",
4185
+ promptConfig: "prompt_config",
4186
+ });
4187
+ });
4188
+
4189
+ /**
4190
+ * @internal
4191
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4192
+ */
4193
+ export namespace UpdatePromptResponseBody$ {
4194
+ /** @deprecated use `UpdatePromptResponseBody$inboundSchema` instead. */
4195
+ export const inboundSchema = UpdatePromptResponseBody$inboundSchema;
4196
+ /** @deprecated use `UpdatePromptResponseBody$outboundSchema` instead. */
4197
+ export const outboundSchema = UpdatePromptResponseBody$outboundSchema;
4198
+ /** @deprecated use `UpdatePromptResponseBody$Outbound` instead. */
4199
+ export type Outbound = UpdatePromptResponseBody$Outbound;
4200
+ }
4201
+
4202
+ export function updatePromptResponseBodyToJSON(
4203
+ updatePromptResponseBody: UpdatePromptResponseBody,
4204
+ ): string {
4205
+ return JSON.stringify(
4206
+ UpdatePromptResponseBody$outboundSchema.parse(updatePromptResponseBody),
4207
+ );
4208
+ }
4209
+
4210
+ export function updatePromptResponseBodyFromJSON(
4211
+ jsonString: string,
4212
+ ): SafeParseResult<UpdatePromptResponseBody, SDKValidationError> {
4213
+ return safeParse(
4214
+ jsonString,
4215
+ (x) => UpdatePromptResponseBody$inboundSchema.parse(JSON.parse(x)),
4216
+ `Failed to parse 'UpdatePromptResponseBody' from JSON`,
4217
+ );
4218
+ }