@orq-ai/node 3.1.0-rc.7 → 3.1.1

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 (437) hide show
  1. package/README.md +31 -38
  2. package/docs/sdks/deployments/README.md +25 -138
  3. package/docs/sdks/files/README.md +2 -174
  4. package/docs/sdks/orq/README.md +1 -1
  5. package/docs/sdks/prompts/README.md +154 -79
  6. package/docs/sdks/promptsnippets/README.md +488 -0
  7. package/funcs/deploymentsInvoke.d.ts +1 -7
  8. package/funcs/deploymentsInvoke.d.ts.map +1 -1
  9. package/funcs/deploymentsInvoke.js +10 -11
  10. package/funcs/deploymentsInvoke.js.map +1 -1
  11. package/funcs/deploymentsStream.d.ts +16 -0
  12. package/funcs/deploymentsStream.d.ts.map +1 -0
  13. package/funcs/{deploymentsGetLogs.js → deploymentsStream.js} +30 -18
  14. package/funcs/deploymentsStream.js.map +1 -0
  15. package/funcs/{promptSnippetsFindOne.d.ts → promptSnippetsCreate.d.ts} +3 -3
  16. package/funcs/promptSnippetsCreate.d.ts.map +1 -0
  17. package/funcs/{promptsGetAll.js → promptSnippetsCreate.js} +8 -8
  18. package/funcs/promptSnippetsCreate.js.map +1 -0
  19. package/funcs/{promptsGetOne.d.ts → promptSnippetsDelete.d.ts} +3 -3
  20. package/funcs/{promptsCreateVersion.d.ts.map → promptSnippetsDelete.d.ts.map} +1 -1
  21. package/funcs/{promptsGetOne.js → promptSnippetsDelete.js} +8 -8
  22. package/funcs/promptSnippetsDelete.js.map +1 -0
  23. package/funcs/{promptsGetAll.d.ts → promptSnippetsGet.d.ts} +3 -3
  24. package/funcs/promptSnippetsGet.d.ts.map +1 -0
  25. package/funcs/{promptSnippetsFindOne.js → promptSnippetsGet.js} +6 -6
  26. package/funcs/promptSnippetsGet.js.map +1 -0
  27. package/funcs/{filesUpdate.d.ts → promptSnippetsGetByKey.d.ts} +3 -3
  28. package/funcs/promptSnippetsGetByKey.d.ts.map +1 -0
  29. package/funcs/promptSnippetsGetByKey.js +109 -0
  30. package/funcs/promptSnippetsGetByKey.js.map +1 -0
  31. package/funcs/{promptsCreateVersion.d.ts → promptSnippetsList.d.ts} +3 -3
  32. package/funcs/promptSnippetsList.d.ts.map +1 -0
  33. package/funcs/{promptTemplatesGetAll.js → promptSnippetsList.js} +13 -13
  34. package/funcs/promptSnippetsList.js.map +1 -0
  35. package/funcs/promptSnippetsUpdate.d.ts +13 -0
  36. package/funcs/promptSnippetsUpdate.d.ts.map +1 -0
  37. package/funcs/{promptsCreateVersion.js → promptSnippetsUpdate.js} +14 -10
  38. package/funcs/promptSnippetsUpdate.js.map +1 -0
  39. package/funcs/promptsCreate.d.ts +1 -1
  40. package/funcs/promptsCreate.js +2 -2
  41. package/funcs/promptsCreate.js.map +1 -1
  42. package/funcs/promptsDelete.js +1 -1
  43. package/funcs/promptsDelete.js.map +1 -1
  44. package/funcs/promptsGetVersion.d.ts +16 -0
  45. package/funcs/promptsGetVersion.d.ts.map +1 -0
  46. package/funcs/{filesUpdate.js → promptsGetVersion.js} +22 -12
  47. package/funcs/promptsGetVersion.js.map +1 -0
  48. package/funcs/promptsList.d.ts +15 -0
  49. package/funcs/promptsList.d.ts.map +1 -0
  50. package/funcs/promptsList.js +112 -0
  51. package/funcs/promptsList.js.map +1 -0
  52. package/funcs/promptsListVersions.d.ts +15 -0
  53. package/funcs/promptsListVersions.d.ts.map +1 -0
  54. package/funcs/{deploymentsInvalidate.js → promptsListVersions.js} +18 -13
  55. package/funcs/promptsListVersions.js.map +1 -0
  56. package/funcs/{deploymentsInvalidate.d.ts → promptsRetrieve.d.ts} +4 -4
  57. package/funcs/promptsRetrieve.d.ts.map +1 -0
  58. package/funcs/{promptsDuplicate.js → promptsRetrieve.js} +12 -10
  59. package/funcs/promptsRetrieve.js.map +1 -0
  60. package/funcs/promptsUpdate.js +1 -1
  61. package/funcs/promptsUpdate.js.map +1 -1
  62. package/hooks/global.d.ts +5 -0
  63. package/hooks/global.d.ts.map +1 -0
  64. package/hooks/global.js +41 -0
  65. package/hooks/global.js.map +1 -0
  66. package/hooks/registration.d.ts.map +1 -1
  67. package/hooks/registration.js +2 -1
  68. package/hooks/registration.js.map +1 -1
  69. package/jsr.json +1 -1
  70. package/lib/config.d.ts +11 -3
  71. package/lib/config.d.ts.map +1 -1
  72. package/lib/config.js +3 -3
  73. package/lib/config.js.map +1 -1
  74. package/lib/env.d.ts +13 -0
  75. package/lib/env.d.ts.map +1 -1
  76. package/lib/env.js +17 -0
  77. package/lib/env.js.map +1 -1
  78. package/lib/retries.js +0 -1
  79. package/lib/retries.js.map +1 -1
  80. package/lib/sdks.js +1 -1
  81. package/lib/sdks.js.map +1 -1
  82. package/models/components/deployments.d.ts +0 -5
  83. package/models/components/deployments.d.ts.map +1 -1
  84. package/models/components/deployments.js +0 -2
  85. package/models/components/deployments.js.map +1 -1
  86. package/models/errors/getpromptversion.d.ts +36 -0
  87. package/models/errors/getpromptversion.d.ts.map +1 -0
  88. package/models/errors/getpromptversion.js +79 -0
  89. package/models/errors/getpromptversion.js.map +1 -0
  90. package/models/errors/index.d.ts +2 -0
  91. package/models/errors/index.d.ts.map +1 -1
  92. package/models/errors/index.js +2 -0
  93. package/models/errors/index.js.map +1 -1
  94. package/models/errors/updatepromptsnippet.d.ts +36 -0
  95. package/models/errors/updatepromptsnippet.d.ts.map +1 -0
  96. package/models/errors/updatepromptsnippet.js +79 -0
  97. package/models/errors/updatepromptsnippet.js.map +1 -0
  98. package/models/operations/createcontact.js +2 -2
  99. package/models/operations/createprompt.d.ts +690 -381
  100. package/models/operations/createprompt.d.ts.map +1 -1
  101. package/models/operations/createprompt.js +638 -482
  102. package/models/operations/createprompt.js.map +1 -1
  103. package/models/operations/createpromptsnippet.d.ts +3567 -0
  104. package/models/operations/createpromptsnippet.d.ts.map +1 -0
  105. package/models/operations/createpromptsnippet.js +3056 -0
  106. package/models/operations/createpromptsnippet.js.map +1 -0
  107. package/models/operations/deleteprompt.d.ts +1 -1
  108. package/models/operations/deletepromptsnippet.d.ts +32 -0
  109. package/models/operations/deletepromptsnippet.d.ts.map +1 -0
  110. package/models/operations/{duplicateprompt.js → deletepromptsnippet.js} +17 -17
  111. package/models/operations/deletepromptsnippet.js.map +1 -0
  112. package/models/operations/deploymentgetconfig.d.ts +39 -0
  113. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  114. package/models/operations/deploymentgetconfig.js +29 -4
  115. package/models/operations/deploymentgetconfig.js.map +1 -1
  116. package/models/operations/deploymentinvoke.d.ts +17 -683
  117. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  118. package/models/operations/deploymentinvoke.js +21 -614
  119. package/models/operations/deploymentinvoke.js.map +1 -1
  120. package/models/operations/deployments.d.ts +39 -0
  121. package/models/operations/deployments.d.ts.map +1 -1
  122. package/models/operations/deployments.js +28 -3
  123. package/models/operations/deployments.js.map +1 -1
  124. package/models/operations/deploymentstream.d.ts +1622 -0
  125. package/models/operations/deploymentstream.d.ts.map +1 -0
  126. package/models/operations/deploymentstream.js +1571 -0
  127. package/models/operations/deploymentstream.js.map +1 -0
  128. package/models/operations/fileget.js +2 -2
  129. package/models/operations/filelist.js +2 -2
  130. package/models/operations/fileupload.js +2 -2
  131. package/models/operations/findonebykeypromptsnippet.d.ts +2448 -0
  132. package/models/operations/findonebykeypromptsnippet.d.ts.map +1 -0
  133. package/models/operations/findonebykeypromptsnippet.js +2133 -0
  134. package/models/operations/findonebykeypromptsnippet.js.map +1 -0
  135. package/models/operations/findonepromptsnippet.d.ts +926 -4792
  136. package/models/operations/findonepromptsnippet.d.ts.map +1 -1
  137. package/models/operations/findonepromptsnippet.js +971 -4750
  138. package/models/operations/findonepromptsnippet.js.map +1 -1
  139. package/models/operations/getallprompts.d.ts +558 -9970
  140. package/models/operations/getallprompts.d.ts.map +1 -1
  141. package/models/operations/getallprompts.js +554 -8812
  142. package/models/operations/getallprompts.js.map +1 -1
  143. package/models/operations/getallpromptsnippets.d.ts +2512 -0
  144. package/models/operations/getallpromptsnippets.d.ts.map +1 -0
  145. package/models/operations/getallpromptsnippets.js +2195 -0
  146. package/models/operations/getallpromptsnippets.js.map +1 -0
  147. package/models/operations/getoneprompt.d.ts +1203 -1
  148. package/models/operations/getoneprompt.d.ts.map +1 -1
  149. package/models/operations/getoneprompt.js +1011 -1
  150. package/models/operations/getoneprompt.js.map +1 -1
  151. package/models/operations/getpromptversion.d.ts +1228 -0
  152. package/models/operations/getpromptversion.d.ts.map +1 -0
  153. package/models/operations/getpromptversion.js +1080 -0
  154. package/models/operations/getpromptversion.js.map +1 -0
  155. package/models/operations/index.d.ts +8 -7
  156. package/models/operations/index.d.ts.map +1 -1
  157. package/models/operations/index.js +8 -7
  158. package/models/operations/index.js.map +1 -1
  159. package/models/operations/listpromptversions.d.ts +1286 -0
  160. package/models/operations/listpromptversions.d.ts.map +1 -0
  161. package/models/operations/listpromptversions.js +1142 -0
  162. package/models/operations/listpromptversions.js.map +1 -0
  163. package/models/operations/updateprompt.d.ts +1101 -6001
  164. package/models/operations/updateprompt.d.ts.map +1 -1
  165. package/models/operations/updateprompt.js +1115 -5739
  166. package/models/operations/updateprompt.js.map +1 -1
  167. package/models/operations/updatepromptsnippet.d.ts +3595 -0
  168. package/models/operations/updatepromptsnippet.d.ts.map +1 -0
  169. package/models/operations/updatepromptsnippet.js +3116 -0
  170. package/models/operations/updatepromptsnippet.js.map +1 -0
  171. package/package.json +7 -9
  172. package/packages/orq-rc/FUNCTIONS.md +106 -0
  173. package/packages/orq-rc/README.md +559 -0
  174. package/packages/orq-rc/RUNTIMES.md +48 -0
  175. package/{docs/sdks/snippets → packages/orq-rc/docs/sdks/contacts}/README.md +12 -12
  176. package/packages/orq-rc/docs/sdks/deployments/README.md +316 -0
  177. package/packages/orq-rc/docs/sdks/feedback/README.md +92 -0
  178. package/packages/orq-rc/docs/sdks/files/README.md +305 -0
  179. package/packages/orq-rc/docs/sdks/metrics/README.md +86 -0
  180. package/packages/orq-rc/docs/sdks/orq/README.md +10 -0
  181. package/packages/orq-rc/docs/sdks/prompts/README.md +608 -0
  182. package/packages/orq-rc/docs/sdks/promptsnippets/README.md +534 -0
  183. package/{docs/sdks/templates → packages/orq-rc/docs/sdks/remoteconfig}/README.md +10 -10
  184. package/packages/orq-rc/jsr.json +28 -0
  185. package/packages/orq-rc/package-lock.json +1861 -0
  186. package/packages/orq-rc/package.json +31 -0
  187. package/packages/orq-rc/src/core.ts +13 -0
  188. package/packages/orq-rc/src/funcs/contactsCreate.ts +126 -0
  189. package/{src/funcs/deploymentsGetLogs.ts → packages/orq-rc/src/funcs/deploymentsGetConfig.ts} +20 -19
  190. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +142 -0
  191. package/packages/orq-rc/src/funcs/deploymentsList.ts +141 -0
  192. package/{src/funcs/promptsCreateVersion.ts → packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts} +14 -11
  193. package/packages/orq-rc/src/funcs/deploymentsStream.ts +150 -0
  194. package/packages/orq-rc/src/funcs/feedbackCreate.ts +126 -0
  195. package/packages/orq-rc/src/funcs/filesDelete.ts +130 -0
  196. package/{src/funcs/filesUpdate.ts → packages/orq-rc/src/funcs/filesGet.ts} +11 -12
  197. package/packages/orq-rc/src/funcs/filesList.ts +131 -0
  198. package/{src/funcs/filesBulkUpload.ts → packages/orq-rc/src/funcs/filesUpload.ts} +32 -12
  199. package/packages/orq-rc/src/funcs/promptSnippetsCreate.ts +128 -0
  200. package/{src/funcs/promptsDuplicate.ts → packages/orq-rc/src/funcs/promptSnippetsDelete.ts} +8 -7
  201. package/{src/funcs/promptSnippetsFindOne.ts → packages/orq-rc/src/funcs/promptSnippetsGet.ts} +4 -4
  202. package/packages/orq-rc/src/funcs/promptSnippetsGetByKey.ts +132 -0
  203. package/{src/funcs/promptTemplatesGetAll.ts → packages/orq-rc/src/funcs/promptSnippetsList.ts} +16 -16
  204. package/packages/orq-rc/src/funcs/promptSnippetsUpdate.ts +139 -0
  205. package/{src/funcs/promptsGetAll.ts → packages/orq-rc/src/funcs/promptsCreate.ts} +9 -11
  206. package/{src/funcs/promptsGetOne.ts → packages/orq-rc/src/funcs/promptsDelete.ts} +7 -7
  207. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +146 -0
  208. package/packages/orq-rc/src/funcs/promptsList.ts +133 -0
  209. package/packages/orq-rc/src/funcs/promptsListVersions.ts +139 -0
  210. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +132 -0
  211. package/packages/orq-rc/src/funcs/promptsUpdate.ts +138 -0
  212. package/packages/orq-rc/src/funcs/remoteconfigGetConfig.ts +127 -0
  213. package/packages/orq-rc/src/hooks/global.ts +44 -0
  214. package/packages/orq-rc/src/hooks/hooks.ts +132 -0
  215. package/packages/orq-rc/src/hooks/index.ts +6 -0
  216. package/packages/orq-rc/src/hooks/registration.ts +15 -0
  217. package/packages/orq-rc/src/hooks/types.ts +109 -0
  218. package/packages/orq-rc/src/index.ts +7 -0
  219. package/packages/orq-rc/src/lib/base64.ts +37 -0
  220. package/packages/orq-rc/src/lib/config.ts +70 -0
  221. package/packages/orq-rc/src/lib/dlv.ts +53 -0
  222. package/packages/orq-rc/src/lib/encodings.ts +483 -0
  223. package/packages/orq-rc/src/lib/env.ts +73 -0
  224. package/packages/orq-rc/src/lib/event-streams.ts +264 -0
  225. package/packages/orq-rc/src/lib/files.ts +40 -0
  226. package/packages/orq-rc/src/lib/http.ts +323 -0
  227. package/packages/orq-rc/src/lib/is-plain-object.ts +43 -0
  228. package/packages/orq-rc/src/lib/logger.ts +9 -0
  229. package/packages/orq-rc/src/lib/matchers.ts +325 -0
  230. package/packages/orq-rc/src/lib/primitives.ts +136 -0
  231. package/packages/orq-rc/src/lib/retries.ts +218 -0
  232. package/packages/orq-rc/src/lib/schemas.ts +91 -0
  233. package/packages/orq-rc/src/lib/sdks.ts +400 -0
  234. package/packages/orq-rc/src/lib/security.ts +254 -0
  235. package/packages/orq-rc/src/lib/url.ts +33 -0
  236. package/packages/orq-rc/src/models/components/deployments.ts +1666 -0
  237. package/packages/orq-rc/src/models/components/index.ts +6 -0
  238. package/packages/orq-rc/src/models/components/security.ts +71 -0
  239. package/packages/orq-rc/src/models/errors/apierror.ts +27 -0
  240. package/packages/orq-rc/src/models/errors/getpromptversion.ts +71 -0
  241. package/packages/orq-rc/src/models/errors/honoapierror.ts +82 -0
  242. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +62 -0
  243. package/packages/orq-rc/src/models/errors/index.ts +11 -0
  244. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +97 -0
  245. package/packages/orq-rc/src/models/errors/updateprompt.ts +71 -0
  246. package/packages/orq-rc/src/models/errors/updatepromptsnippet.ts +71 -0
  247. package/packages/orq-rc/src/models/operations/createcontact.ts +256 -0
  248. package/packages/orq-rc/src/models/operations/createfeedback.ts +286 -0
  249. package/packages/orq-rc/src/models/operations/createprompt.ts +3819 -0
  250. package/packages/orq-rc/src/models/operations/createpromptsnippet.ts +6239 -0
  251. package/packages/orq-rc/src/models/operations/deleteprompt.ts +69 -0
  252. package/packages/orq-rc/src/models/operations/deletepromptsnippet.ts +69 -0
  253. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +1790 -0
  254. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +3527 -0
  255. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +1144 -0
  256. package/packages/orq-rc/src/models/operations/deployments.ts +2148 -0
  257. package/packages/orq-rc/src/models/operations/deploymentstream.ts +3062 -0
  258. package/packages/orq-rc/src/models/operations/filedelete.ts +78 -0
  259. package/packages/orq-rc/src/models/operations/fileget.ts +222 -0
  260. package/packages/orq-rc/src/models/operations/filelist.ts +321 -0
  261. package/packages/orq-rc/src/models/operations/fileupload.ts +322 -0
  262. package/packages/orq-rc/src/models/operations/findonebykeypromptsnippet.ts +4483 -0
  263. package/packages/orq-rc/src/models/operations/findonepromptsnippet.ts +4343 -0
  264. package/packages/orq-rc/src/models/operations/getallprompts.ts +2116 -0
  265. package/packages/orq-rc/src/models/operations/getallpromptsnippets.ts +4472 -0
  266. package/packages/orq-rc/src/models/operations/getoneprompt.ts +1982 -0
  267. package/packages/orq-rc/src/models/operations/getpromptversion.ts +2012 -0
  268. package/packages/orq-rc/src/models/operations/index.ts +29 -0
  269. package/packages/orq-rc/src/models/operations/listpromptversions.ts +2146 -0
  270. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +190 -0
  271. package/packages/orq-rc/src/models/operations/updateprompt.ts +3917 -0
  272. package/packages/orq-rc/src/models/operations/updatepromptsnippet.ts +6544 -0
  273. package/packages/orq-rc/src/sdk/contacts.ts +27 -0
  274. package/packages/orq-rc/src/sdk/deployments.ts +89 -0
  275. package/packages/orq-rc/src/sdk/feedback.ts +27 -0
  276. package/packages/orq-rc/src/sdk/files.ts +72 -0
  277. package/packages/orq-rc/src/sdk/index.ts +5 -0
  278. package/packages/orq-rc/src/sdk/metrics.ts +27 -0
  279. package/packages/orq-rc/src/sdk/prompts.ts +126 -0
  280. package/packages/orq-rc/src/sdk/promptsnippets.ts +99 -0
  281. package/packages/orq-rc/src/sdk/remoteconfig.ts +24 -0
  282. package/packages/orq-rc/src/sdk/sdk.ts +49 -0
  283. package/packages/orq-rc/src/types/blobs.ts +31 -0
  284. package/packages/orq-rc/src/types/constdatetime.ts +15 -0
  285. package/packages/orq-rc/src/types/enums.ts +16 -0
  286. package/packages/orq-rc/src/types/fp.ts +50 -0
  287. package/packages/orq-rc/src/types/index.ts +11 -0
  288. package/packages/orq-rc/src/types/operations.ts +105 -0
  289. package/packages/orq-rc/src/types/rfcdate.ts +54 -0
  290. package/packages/orq-rc/src/types/streams.ts +21 -0
  291. package/packages/orq-rc/tsconfig.json +41 -0
  292. package/sdk/deployments.d.ts +5 -15
  293. package/sdk/deployments.d.ts.map +1 -1
  294. package/sdk/deployments.js +6 -18
  295. package/sdk/deployments.js.map +1 -1
  296. package/sdk/files.d.ts +0 -11
  297. package/sdk/files.d.ts.map +1 -1
  298. package/sdk/files.js +0 -17
  299. package/sdk/files.js.map +1 -1
  300. package/sdk/prompts.d.ts +26 -14
  301. package/sdk/prompts.d.ts.map +1 -1
  302. package/sdk/prompts.js +37 -25
  303. package/sdk/prompts.js.map +1 -1
  304. package/sdk/promptsnippets.d.ts +29 -0
  305. package/sdk/promptsnippets.d.ts.map +1 -0
  306. package/sdk/promptsnippets.js +54 -0
  307. package/sdk/promptsnippets.js.map +1 -0
  308. package/sdk/sdk.d.ts +3 -3
  309. package/sdk/sdk.d.ts.map +1 -1
  310. package/sdk/sdk.js +3 -3
  311. package/sdk/sdk.js.map +1 -1
  312. package/src/funcs/deploymentsInvoke.ts +21 -16
  313. package/src/funcs/deploymentsStream.ts +150 -0
  314. package/src/funcs/promptSnippetsCreate.ts +128 -0
  315. package/src/funcs/{deploymentsInvalidate.ts → promptSnippetsDelete.ts} +9 -13
  316. package/src/funcs/promptSnippetsGet.ts +130 -0
  317. package/src/funcs/promptSnippetsGetByKey.ts +132 -0
  318. package/src/funcs/promptSnippetsList.ts +132 -0
  319. package/src/funcs/promptSnippetsUpdate.ts +139 -0
  320. package/src/funcs/promptsCreate.ts +2 -2
  321. package/src/funcs/promptsDelete.ts +1 -1
  322. package/src/funcs/promptsGetVersion.ts +146 -0
  323. package/src/funcs/promptsList.ts +133 -0
  324. package/src/funcs/promptsListVersions.ts +139 -0
  325. package/src/funcs/promptsRetrieve.ts +132 -0
  326. package/src/funcs/promptsUpdate.ts +1 -1
  327. package/src/hooks/global.ts +44 -0
  328. package/src/hooks/registration.ts +2 -1
  329. package/src/lib/config.ts +13 -3
  330. package/src/lib/env.ts +32 -0
  331. package/src/lib/retries.ts +0 -1
  332. package/src/lib/sdks.ts +2 -2
  333. package/src/models/components/deployments.ts +0 -7
  334. package/src/models/errors/getpromptversion.ts +71 -0
  335. package/src/models/errors/index.ts +2 -0
  336. package/src/models/errors/updatepromptsnippet.ts +71 -0
  337. package/src/models/operations/createcontact.ts +2 -2
  338. package/src/models/operations/createprompt.ts +1045 -691
  339. package/src/models/operations/createpromptsnippet.ts +6239 -0
  340. package/src/models/operations/deleteprompt.ts +1 -1
  341. package/src/models/operations/deletepromptsnippet.ts +69 -0
  342. package/src/models/operations/deploymentgetconfig.ts +44 -0
  343. package/src/models/operations/deploymentinvoke.ts +180 -1423
  344. package/src/models/operations/deployments.ts +43 -0
  345. package/src/models/operations/deploymentstream.ts +3062 -0
  346. package/src/models/operations/fileget.ts +2 -2
  347. package/src/models/operations/filelist.ts +2 -2
  348. package/src/models/operations/fileupload.ts +2 -2
  349. package/src/models/operations/findonebykeypromptsnippet.ts +4483 -0
  350. package/src/models/operations/findonepromptsnippet.ts +1811 -11109
  351. package/src/models/operations/getallprompts.ts +1294 -18123
  352. package/src/models/operations/getallpromptsnippets.ts +4472 -0
  353. package/src/models/operations/getoneprompt.ts +1914 -1
  354. package/src/models/operations/getpromptversion.ts +2012 -0
  355. package/src/models/operations/index.ts +8 -7
  356. package/src/models/operations/listpromptversions.ts +2146 -0
  357. package/src/models/operations/updateprompt.ts +1999 -12503
  358. package/src/models/operations/updatepromptsnippet.ts +6544 -0
  359. package/src/sdk/deployments.ts +11 -33
  360. package/src/sdk/files.ts +0 -33
  361. package/src/sdk/prompts.ts +51 -39
  362. package/src/sdk/promptsnippets.ts +99 -0
  363. package/src/sdk/sdk.ts +4 -4
  364. package/docs/sdks/prompt/README.md +0 -6
  365. package/funcs/deploymentsGetLogs.d.ts +0 -15
  366. package/funcs/deploymentsGetLogs.d.ts.map +0 -1
  367. package/funcs/deploymentsGetLogs.js.map +0 -1
  368. package/funcs/deploymentsInvalidate.d.ts.map +0 -1
  369. package/funcs/deploymentsInvalidate.js.map +0 -1
  370. package/funcs/filesBulkUpload.d.ts +0 -15
  371. package/funcs/filesBulkUpload.d.ts.map +0 -1
  372. package/funcs/filesBulkUpload.js +0 -109
  373. package/funcs/filesBulkUpload.js.map +0 -1
  374. package/funcs/filesUpdate.d.ts.map +0 -1
  375. package/funcs/filesUpdate.js.map +0 -1
  376. package/funcs/promptSnippetsFindOne.d.ts.map +0 -1
  377. package/funcs/promptSnippetsFindOne.js.map +0 -1
  378. package/funcs/promptTemplatesGetAll.d.ts +0 -12
  379. package/funcs/promptTemplatesGetAll.d.ts.map +0 -1
  380. package/funcs/promptTemplatesGetAll.js.map +0 -1
  381. package/funcs/promptsCreateVersion.js.map +0 -1
  382. package/funcs/promptsDuplicate.d.ts +0 -12
  383. package/funcs/promptsDuplicate.d.ts.map +0 -1
  384. package/funcs/promptsDuplicate.js.map +0 -1
  385. package/funcs/promptsGetAll.d.ts.map +0 -1
  386. package/funcs/promptsGetAll.js.map +0 -1
  387. package/funcs/promptsGetOne.d.ts.map +0 -1
  388. package/funcs/promptsGetOne.js.map +0 -1
  389. package/models/operations/bulkfileupload.d.ts +0 -173
  390. package/models/operations/bulkfileupload.d.ts.map +0 -1
  391. package/models/operations/bulkfileupload.js +0 -210
  392. package/models/operations/bulkfileupload.js.map +0 -1
  393. package/models/operations/createpromptversion.d.ts +0 -2015
  394. package/models/operations/createpromptversion.d.ts.map +0 -1
  395. package/models/operations/createpromptversion.js +0 -1856
  396. package/models/operations/createpromptversion.js.map +0 -1
  397. package/models/operations/deploymentgetlogs.d.ts +0 -52406
  398. package/models/operations/deploymentgetlogs.d.ts.map +0 -1
  399. package/models/operations/deploymentgetlogs.js +0 -53803
  400. package/models/operations/deploymentgetlogs.js.map +0 -1
  401. package/models/operations/duplicateprompt.d.ts +0 -32
  402. package/models/operations/duplicateprompt.d.ts.map +0 -1
  403. package/models/operations/duplicateprompt.js.map +0 -1
  404. package/models/operations/fileupdate.d.ts +0 -143
  405. package/models/operations/fileupdate.d.ts.map +0 -1
  406. package/models/operations/fileupdate.js +0 -193
  407. package/models/operations/fileupdate.js.map +0 -1
  408. package/models/operations/getallprompttemplates.d.ts +0 -6643
  409. package/models/operations/getallprompttemplates.d.ts.map +0 -1
  410. package/models/operations/getallprompttemplates.js +0 -6234
  411. package/models/operations/getallprompttemplates.js.map +0 -1
  412. package/models/operations/invaliddeployment.d.ts +0 -29
  413. package/models/operations/invaliddeployment.d.ts.map +0 -1
  414. package/models/operations/invaliddeployment.js +0 -78
  415. package/models/operations/invaliddeployment.js.map +0 -1
  416. package/sdk/prompt.d.ts +0 -10
  417. package/sdk/prompt.d.ts.map +0 -1
  418. package/sdk/prompt.js +0 -19
  419. package/sdk/prompt.js.map +0 -1
  420. package/sdk/snippets.d.ts +0 -9
  421. package/sdk/snippets.d.ts.map +0 -1
  422. package/sdk/snippets.js +0 -19
  423. package/sdk/snippets.js.map +0 -1
  424. package/sdk/templates.d.ts +0 -9
  425. package/sdk/templates.d.ts.map +0 -1
  426. package/sdk/templates.js +0 -19
  427. package/sdk/templates.js.map +0 -1
  428. package/src/models/operations/bulkfileupload.ts +0 -315
  429. package/src/models/operations/createpromptversion.ts +0 -3707
  430. package/src/models/operations/deploymentgetlogs.ts +0 -119430
  431. package/src/models/operations/duplicateprompt.ts +0 -69
  432. package/src/models/operations/fileupdate.ts +0 -298
  433. package/src/models/operations/getallprompttemplates.ts +0 -13779
  434. package/src/models/operations/invaliddeployment.ts +0 -75
  435. package/src/sdk/prompt.ts +0 -19
  436. package/src/sdk/snippets.ts +0 -24
  437. package/src/sdk/templates.ts +0 -24
@@ -12,7 +12,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
12
  /**
13
13
  * The type of the model
14
14
  */
15
- export const ModelType = {
15
+ export const CreatePromptModelType = {
16
16
  Chat: "chat",
17
17
  Completion: "completion",
18
18
  Embedding: "embedding",
@@ -26,12 +26,12 @@ export const ModelType = {
26
26
  /**
27
27
  * The type of the model
28
28
  */
29
- export type ModelType = ClosedEnum<typeof ModelType>;
29
+ export type CreatePromptModelType = ClosedEnum<typeof CreatePromptModelType>;
30
30
 
31
31
  /**
32
32
  * Only supported on `image` models.
33
33
  */
34
- export const Format = {
34
+ export const CreatePromptFormat = {
35
35
  Url: "url",
36
36
  B64Json: "b64_json",
37
37
  Text: "text",
@@ -40,45 +40,47 @@ export const Format = {
40
40
  /**
41
41
  * Only supported on `image` models.
42
42
  */
43
- export type Format = ClosedEnum<typeof Format>;
43
+ export type CreatePromptFormat = ClosedEnum<typeof CreatePromptFormat>;
44
44
 
45
45
  /**
46
46
  * Only supported on `image` models.
47
47
  */
48
- export const Quality = {
48
+ export const CreatePromptQuality = {
49
49
  Standard: "standard",
50
50
  Hd: "hd",
51
51
  } as const;
52
52
  /**
53
53
  * Only supported on `image` models.
54
54
  */
55
- export type Quality = ClosedEnum<typeof Quality>;
55
+ export type CreatePromptQuality = ClosedEnum<typeof CreatePromptQuality>;
56
56
 
57
- export const CreatePromptResponseFormatType = {
57
+ export const CreatePromptResponseFormatPromptsType = {
58
58
  JsonObject: "json_object",
59
59
  } as const;
60
- export type CreatePromptResponseFormatType = ClosedEnum<
61
- typeof CreatePromptResponseFormatType
60
+ export type CreatePromptResponseFormatPromptsType = ClosedEnum<
61
+ typeof CreatePromptResponseFormatPromptsType
62
62
  >;
63
63
 
64
- export type ResponseFormat2 = {
65
- type: CreatePromptResponseFormatType;
64
+ export type CreatePromptResponseFormat2 = {
65
+ type: CreatePromptResponseFormatPromptsType;
66
66
  };
67
67
 
68
- export const ResponseFormatType = {
68
+ export const CreatePromptResponseFormatType = {
69
69
  JsonSchema: "json_schema",
70
70
  } as const;
71
- export type ResponseFormatType = ClosedEnum<typeof ResponseFormatType>;
71
+ export type CreatePromptResponseFormatType = ClosedEnum<
72
+ typeof CreatePromptResponseFormatType
73
+ >;
72
74
 
73
- export type JsonSchema = {
75
+ export type CreatePromptResponseFormatJsonSchema = {
74
76
  name: string;
75
77
  strict: boolean;
76
78
  schema: { [k: string]: any };
77
79
  };
78
80
 
79
- export type ResponseFormat1 = {
80
- type: ResponseFormatType;
81
- jsonSchema: JsonSchema;
81
+ export type CreatePromptResponseFormat1 = {
82
+ type: CreatePromptResponseFormatType;
83
+ jsonSchema: CreatePromptResponseFormatJsonSchema;
82
84
  };
83
85
 
84
86
  /**
@@ -92,36 +94,57 @@ export type ResponseFormat1 = {
92
94
  *
93
95
  * 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.
94
96
  */
95
- export type ResponseFormat = ResponseFormat2 | ResponseFormat1;
97
+ export type CreatePromptResponseFormat =
98
+ | CreatePromptResponseFormat2
99
+ | CreatePromptResponseFormat1;
96
100
 
97
101
  /**
98
102
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
99
103
  */
100
- export const PhotoRealVersion = {
104
+ export const CreatePromptPhotoRealVersion = {
101
105
  V1: "v1",
102
106
  V2: "v2",
103
107
  } as const;
104
108
  /**
105
109
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
106
110
  */
107
- export type PhotoRealVersion = ClosedEnum<typeof PhotoRealVersion>;
111
+ export type CreatePromptPhotoRealVersion = ClosedEnum<
112
+ typeof CreatePromptPhotoRealVersion
113
+ >;
108
114
 
109
115
  /**
110
116
  * The format to return the embeddings
111
117
  */
112
- export const EncodingFormat = {
118
+ export const CreatePromptEncodingFormat = {
113
119
  Float: "float",
114
120
  Base64: "base64",
115
121
  } as const;
116
122
  /**
117
123
  * The format to return the embeddings
118
124
  */
119
- export type EncodingFormat = ClosedEnum<typeof EncodingFormat>;
125
+ export type CreatePromptEncodingFormat = ClosedEnum<
126
+ typeof CreatePromptEncodingFormat
127
+ >;
128
+
129
+ /**
130
+ * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
131
+ */
132
+ export const CreatePromptReasoningEffort = {
133
+ Low: "low",
134
+ Medium: "medium",
135
+ High: "high",
136
+ } as const;
137
+ /**
138
+ * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
139
+ */
140
+ export type CreatePromptReasoningEffort = ClosedEnum<
141
+ typeof CreatePromptReasoningEffort
142
+ >;
120
143
 
121
144
  /**
122
145
  * Model Parameters: Not all parameters apply to every model
123
146
  */
124
- export type ModelParameters = {
147
+ export type CreatePromptModelParameters = {
125
148
  /**
126
149
  * Only supported on `chat` and `completion` models.
127
150
  */
@@ -157,7 +180,7 @@ export type ModelParameters = {
157
180
  /**
158
181
  * Only supported on `image` models.
159
182
  */
160
- format?: Format | undefined;
183
+ format?: CreatePromptFormat | undefined;
161
184
  /**
162
185
  * Only supported on `image` models.
163
186
  */
@@ -165,7 +188,7 @@ export type ModelParameters = {
165
188
  /**
166
189
  * Only supported on `image` models.
167
190
  */
168
- quality?: Quality | undefined;
191
+ quality?: CreatePromptQuality | undefined;
169
192
  /**
170
193
  * Only supported on `image` models.
171
194
  */
@@ -181,18 +204,26 @@ export type ModelParameters = {
181
204
  *
182
205
  * 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.
183
206
  */
184
- responseFormat?: ResponseFormat2 | ResponseFormat1 | null | undefined;
207
+ responseFormat?:
208
+ | CreatePromptResponseFormat2
209
+ | CreatePromptResponseFormat1
210
+ | null
211
+ | undefined;
185
212
  /**
186
213
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
187
214
  */
188
- photoRealVersion?: PhotoRealVersion | undefined;
215
+ photoRealVersion?: CreatePromptPhotoRealVersion | undefined;
189
216
  /**
190
217
  * The format to return the embeddings
191
218
  */
192
- encodingFormat?: EncodingFormat | undefined;
219
+ encodingFormat?: CreatePromptEncodingFormat | undefined;
220
+ /**
221
+ * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
222
+ */
223
+ reasoningEffort?: CreatePromptReasoningEffort | undefined;
193
224
  };
194
225
 
195
- export const Provider = {
226
+ export const CreatePromptProvider = {
196
227
  Cohere: "cohere",
197
228
  Openai: "openai",
198
229
  Anthropic: "anthropic",
@@ -212,7 +243,7 @@ export const Provider = {
212
243
  Togetherai: "togetherai",
213
244
  Elevenlabs: "elevenlabs",
214
245
  } as const;
215
- export type Provider = ClosedEnum<typeof Provider>;
246
+ export type CreatePromptProvider = ClosedEnum<typeof CreatePromptProvider>;
216
247
 
217
248
  /**
218
249
  * The role of the prompt message
@@ -312,49 +343,104 @@ export type CreatePromptMessages = {
312
343
  toolCalls?: Array<CreatePromptToolCalls> | undefined;
313
344
  };
314
345
 
315
- export type PromptConfig = {
346
+ /**
347
+ * A list of messages compatible with the openAI schema
348
+ */
349
+ export type CreatePromptPromptConfig = {
316
350
  stream?: boolean | undefined;
317
351
  model?: string | undefined;
318
352
  /**
319
353
  * The type of the model
320
354
  */
321
- modelType?: ModelType | undefined;
355
+ modelType?: CreatePromptModelType | undefined;
322
356
  /**
323
357
  * Model Parameters: Not all parameters apply to every model
324
358
  */
325
- modelParameters?: ModelParameters | undefined;
326
- provider?: Provider | undefined;
359
+ modelParameters?: CreatePromptModelParameters | undefined;
360
+ provider?: CreatePromptProvider | undefined;
327
361
  version?: string | undefined;
328
362
  messages: Array<CreatePromptMessages>;
329
363
  };
330
364
 
365
+ export const CreatePromptUseCases = {
366
+ Agents: "Agents",
367
+ AgentsSimulations: "Agents simulations",
368
+ APIInteraction: "API interaction",
369
+ AutonomousAgents: "Autonomous Agents",
370
+ Chatbots: "Chatbots",
371
+ Classification: "Classification",
372
+ CodeUnderstanding: "Code understanding",
373
+ CodeWriting: "Code writing",
374
+ DocumentsQA: "Documents QA",
375
+ Conversation: "Conversation",
376
+ Extraction: "Extraction",
377
+ MultiModal: "Multi-modal",
378
+ SelfChecking: "Self-checking",
379
+ Sql: "SQL",
380
+ Summarization: "Summarization",
381
+ Tagging: "Tagging",
382
+ } as const;
383
+ export type CreatePromptUseCases = ClosedEnum<typeof CreatePromptUseCases>;
384
+
385
+ /**
386
+ * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
387
+ */
388
+ export const CreatePromptLanguage = {
389
+ Chinese: "Chinese",
390
+ Dutch: "Dutch",
391
+ English: "English",
392
+ French: "French",
393
+ German: "German",
394
+ Russian: "Russian",
395
+ Spanish: "Spanish",
396
+ } as const;
397
+ /**
398
+ * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
399
+ */
400
+ export type CreatePromptLanguage = ClosedEnum<typeof CreatePromptLanguage>;
401
+
331
402
  export type CreatePromptMetadata = {
332
- useCases?: Array<string> | undefined;
333
- language?: string | undefined;
403
+ /**
404
+ * A list of use cases that the prompt is meant to be used for. Use this field to categorize the prompt for your own purpose
405
+ */
406
+ useCases?: Array<CreatePromptUseCases> | undefined;
407
+ /**
408
+ * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
409
+ */
410
+ language?: CreatePromptLanguage | undefined;
411
+ };
412
+
413
+ export type CreatePromptRequestBody = {
414
+ /**
415
+ * The prompt’s name, meant to be displayable in the UI.
416
+ */
417
+ displayName: string;
418
+ /**
419
+ * 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
420
+ */
421
+ description?: string | null | undefined;
422
+ /**
423
+ * A list of messages compatible with the openAI schema
424
+ */
425
+ promptConfig: CreatePromptPromptConfig;
426
+ metadata?: CreatePromptMetadata | undefined;
427
+ /**
428
+ * 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.
429
+ */
430
+ path: string;
334
431
  };
335
432
 
336
433
  export const CreatePromptPromptsType = {
337
434
  Prompt: "prompt",
338
- Snippet: "snippet",
339
- Template: "template",
340
435
  } as const;
341
436
  export type CreatePromptPromptsType = ClosedEnum<
342
437
  typeof CreatePromptPromptsType
343
438
  >;
344
439
 
345
- export type CreatePromptRequestBody = {
346
- displayName: string;
347
- description?: string | null | undefined;
348
- promptConfig?: PromptConfig | undefined;
349
- metadata?: CreatePromptMetadata | undefined;
350
- key?: string | undefined;
351
- type: CreatePromptPromptsType;
352
- };
353
-
354
440
  /**
355
441
  * The type of the model
356
442
  */
357
- export const CreatePromptModelType = {
443
+ export const CreatePromptPromptsModelType = {
358
444
  Chat: "chat",
359
445
  Completion: "completion",
360
446
  Embedding: "embedding",
@@ -368,12 +454,14 @@ export const CreatePromptModelType = {
368
454
  /**
369
455
  * The type of the model
370
456
  */
371
- export type CreatePromptModelType = ClosedEnum<typeof CreatePromptModelType>;
457
+ export type CreatePromptPromptsModelType = ClosedEnum<
458
+ typeof CreatePromptPromptsModelType
459
+ >;
372
460
 
373
461
  /**
374
462
  * Only supported on `image` models.
375
463
  */
376
- export const CreatePromptFormat = {
464
+ export const CreatePromptPromptsFormat = {
377
465
  Url: "url",
378
466
  B64Json: "b64_json",
379
467
  Text: "text",
@@ -382,47 +470,51 @@ export const CreatePromptFormat = {
382
470
  /**
383
471
  * Only supported on `image` models.
384
472
  */
385
- export type CreatePromptFormat = ClosedEnum<typeof CreatePromptFormat>;
473
+ export type CreatePromptPromptsFormat = ClosedEnum<
474
+ typeof CreatePromptPromptsFormat
475
+ >;
386
476
 
387
477
  /**
388
478
  * Only supported on `image` models.
389
479
  */
390
- export const CreatePromptQuality = {
480
+ export const CreatePromptPromptsQuality = {
391
481
  Standard: "standard",
392
482
  Hd: "hd",
393
483
  } as const;
394
484
  /**
395
485
  * Only supported on `image` models.
396
486
  */
397
- export type CreatePromptQuality = ClosedEnum<typeof CreatePromptQuality>;
487
+ export type CreatePromptPromptsQuality = ClosedEnum<
488
+ typeof CreatePromptPromptsQuality
489
+ >;
398
490
 
399
- export const CreatePromptResponseFormatPromptsResponseType = {
491
+ export const CreatePromptResponseFormatPromptsResponse200Type = {
400
492
  JsonObject: "json_object",
401
493
  } as const;
402
- export type CreatePromptResponseFormatPromptsResponseType = ClosedEnum<
403
- typeof CreatePromptResponseFormatPromptsResponseType
494
+ export type CreatePromptResponseFormatPromptsResponse200Type = ClosedEnum<
495
+ typeof CreatePromptResponseFormatPromptsResponse200Type
404
496
  >;
405
497
 
406
- export type CreatePromptResponseFormat2 = {
407
- type: CreatePromptResponseFormatPromptsResponseType;
498
+ export type CreatePromptResponseFormatPrompts2 = {
499
+ type: CreatePromptResponseFormatPromptsResponse200Type;
408
500
  };
409
501
 
410
- export const CreatePromptResponseFormatPromptsType = {
502
+ export const CreatePromptResponseFormatPromptsResponseType = {
411
503
  JsonSchema: "json_schema",
412
504
  } as const;
413
- export type CreatePromptResponseFormatPromptsType = ClosedEnum<
414
- typeof CreatePromptResponseFormatPromptsType
505
+ export type CreatePromptResponseFormatPromptsResponseType = ClosedEnum<
506
+ typeof CreatePromptResponseFormatPromptsResponseType
415
507
  >;
416
508
 
417
- export type CreatePromptResponseFormatJsonSchema = {
509
+ export type CreatePromptResponseFormatPromptsJsonSchema = {
418
510
  name: string;
419
511
  strict: boolean;
420
512
  schema: { [k: string]: any };
421
513
  };
422
514
 
423
- export type CreatePromptResponseFormat1 = {
424
- type: CreatePromptResponseFormatPromptsType;
425
- jsonSchema: CreatePromptResponseFormatJsonSchema;
515
+ export type CreatePromptResponseFormatPrompts1 = {
516
+ type: CreatePromptResponseFormatPromptsResponseType;
517
+ jsonSchema: CreatePromptResponseFormatPromptsJsonSchema;
426
518
  };
427
519
 
428
520
  /**
@@ -436,42 +528,57 @@ export type CreatePromptResponseFormat1 = {
436
528
  *
437
529
  * 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.
438
530
  */
439
- export type CreatePromptResponseFormat =
440
- | CreatePromptResponseFormat2
441
- | CreatePromptResponseFormat1;
531
+ export type CreatePromptPromptsResponseFormat =
532
+ | CreatePromptResponseFormatPrompts2
533
+ | CreatePromptResponseFormatPrompts1;
442
534
 
443
535
  /**
444
536
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
445
537
  */
446
- export const CreatePromptPhotoRealVersion = {
538
+ export const CreatePromptPromptsPhotoRealVersion = {
447
539
  V1: "v1",
448
540
  V2: "v2",
449
541
  } as const;
450
542
  /**
451
543
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
452
544
  */
453
- export type CreatePromptPhotoRealVersion = ClosedEnum<
454
- typeof CreatePromptPhotoRealVersion
545
+ export type CreatePromptPromptsPhotoRealVersion = ClosedEnum<
546
+ typeof CreatePromptPromptsPhotoRealVersion
455
547
  >;
456
548
 
457
549
  /**
458
550
  * The format to return the embeddings
459
551
  */
460
- export const CreatePromptEncodingFormat = {
552
+ export const CreatePromptPromptsEncodingFormat = {
461
553
  Float: "float",
462
554
  Base64: "base64",
463
555
  } as const;
464
556
  /**
465
557
  * The format to return the embeddings
466
558
  */
467
- export type CreatePromptEncodingFormat = ClosedEnum<
468
- typeof CreatePromptEncodingFormat
559
+ export type CreatePromptPromptsEncodingFormat = ClosedEnum<
560
+ typeof CreatePromptPromptsEncodingFormat
561
+ >;
562
+
563
+ /**
564
+ * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
565
+ */
566
+ export const CreatePromptPromptsReasoningEffort = {
567
+ Low: "low",
568
+ Medium: "medium",
569
+ High: "high",
570
+ } as const;
571
+ /**
572
+ * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
573
+ */
574
+ export type CreatePromptPromptsReasoningEffort = ClosedEnum<
575
+ typeof CreatePromptPromptsReasoningEffort
469
576
  >;
470
577
 
471
578
  /**
472
579
  * Model Parameters: Not all parameters apply to every model
473
580
  */
474
- export type CreatePromptModelParameters = {
581
+ export type CreatePromptPromptsModelParameters = {
475
582
  /**
476
583
  * Only supported on `chat` and `completion` models.
477
584
  */
@@ -507,7 +614,7 @@ export type CreatePromptModelParameters = {
507
614
  /**
508
615
  * Only supported on `image` models.
509
616
  */
510
- format?: CreatePromptFormat | undefined;
617
+ format?: CreatePromptPromptsFormat | undefined;
511
618
  /**
512
619
  * Only supported on `image` models.
513
620
  */
@@ -515,7 +622,7 @@ export type CreatePromptModelParameters = {
515
622
  /**
516
623
  * Only supported on `image` models.
517
624
  */
518
- quality?: CreatePromptQuality | undefined;
625
+ quality?: CreatePromptPromptsQuality | undefined;
519
626
  /**
520
627
  * Only supported on `image` models.
521
628
  */
@@ -532,21 +639,25 @@ export type CreatePromptModelParameters = {
532
639
  * 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.
533
640
  */
534
641
  responseFormat?:
535
- | CreatePromptResponseFormat2
536
- | CreatePromptResponseFormat1
642
+ | CreatePromptResponseFormatPrompts2
643
+ | CreatePromptResponseFormatPrompts1
537
644
  | null
538
645
  | undefined;
539
646
  /**
540
647
  * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
541
648
  */
542
- photoRealVersion?: CreatePromptPhotoRealVersion | undefined;
649
+ photoRealVersion?: CreatePromptPromptsPhotoRealVersion | undefined;
543
650
  /**
544
651
  * The format to return the embeddings
545
652
  */
546
- encodingFormat?: CreatePromptEncodingFormat | undefined;
653
+ encodingFormat?: CreatePromptPromptsEncodingFormat | undefined;
654
+ /**
655
+ * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
656
+ */
657
+ reasoningEffort?: CreatePromptPromptsReasoningEffort | undefined;
547
658
  };
548
659
 
549
- export const CreatePromptProvider = {
660
+ export const CreatePromptPromptsProvider = {
550
661
  Cohere: "cohere",
551
662
  Openai: "openai",
552
663
  Anthropic: "anthropic",
@@ -566,7 +677,9 @@ export const CreatePromptProvider = {
566
677
  Togetherai: "togetherai",
567
678
  Elevenlabs: "elevenlabs",
568
679
  } as const;
569
- export type CreatePromptProvider = ClosedEnum<typeof CreatePromptProvider>;
680
+ export type CreatePromptPromptsProvider = ClosedEnum<
681
+ typeof CreatePromptPromptsProvider
682
+ >;
570
683
 
571
684
  /**
572
685
  * The role of the prompt message
@@ -644,11 +757,11 @@ export type CreatePromptPromptsContent =
644
757
  | string
645
758
  | Array<CreatePrompt2Prompts1 | CreatePrompt2Prompts2>;
646
759
 
647
- export const CreatePromptPromptsResponse200Type = {
760
+ export const CreatePromptPromptsResponseType = {
648
761
  Function: "function",
649
762
  } as const;
650
- export type CreatePromptPromptsResponse200Type = ClosedEnum<
651
- typeof CreatePromptPromptsResponse200Type
763
+ export type CreatePromptPromptsResponseType = ClosedEnum<
764
+ typeof CreatePromptPromptsResponseType
652
765
  >;
653
766
 
654
767
  export type CreatePromptPromptsFunction = {
@@ -662,7 +775,7 @@ export type CreatePromptPromptsFunction = {
662
775
  export type CreatePromptPromptsToolCalls = {
663
776
  id?: string | undefined;
664
777
  index?: number | undefined;
665
- type: CreatePromptPromptsResponse200Type;
778
+ type: CreatePromptPromptsResponseType;
666
779
  function: CreatePromptPromptsFunction;
667
780
  };
668
781
 
@@ -678,7 +791,10 @@ export type CreatePromptPromptsMessages = {
678
791
  toolCalls?: Array<CreatePromptPromptsToolCalls> | undefined;
679
792
  };
680
793
 
681
- export type CreatePromptPromptConfig = {
794
+ /**
795
+ * A list of messages compatible with the openAI schema
796
+ */
797
+ export type CreatePromptPromptsPromptConfig = {
682
798
  stream?: boolean | undefined;
683
799
  model?: string | undefined;
684
800
  /**
@@ -688,12 +804,12 @@ export type CreatePromptPromptConfig = {
688
804
  /**
689
805
  * The type of the model
690
806
  */
691
- modelType?: CreatePromptModelType | undefined;
807
+ modelType?: CreatePromptPromptsModelType | undefined;
692
808
  /**
693
809
  * Model Parameters: Not all parameters apply to every model
694
810
  */
695
- modelParameters?: CreatePromptModelParameters | undefined;
696
- provider?: CreatePromptProvider | undefined;
811
+ modelParameters?: CreatePromptPromptsModelParameters | undefined;
812
+ provider?: CreatePromptPromptsProvider | undefined;
697
813
  /**
698
814
  * The id of the resource
699
815
  */
@@ -702,194 +818,252 @@ export type CreatePromptPromptConfig = {
702
818
  messages: Array<CreatePromptPromptsMessages>;
703
819
  };
704
820
 
705
- export type CreatePromptPromptsMetadata = {
706
- useCases?: Array<string> | undefined;
707
- language?: string | undefined;
708
- };
821
+ export const CreatePromptPromptsUseCases = {
822
+ Agents: "Agents",
823
+ AgentsSimulations: "Agents simulations",
824
+ APIInteraction: "API interaction",
825
+ AutonomousAgents: "Autonomous Agents",
826
+ Chatbots: "Chatbots",
827
+ Classification: "Classification",
828
+ CodeUnderstanding: "Code understanding",
829
+ CodeWriting: "Code writing",
830
+ DocumentsQA: "Documents QA",
831
+ Conversation: "Conversation",
832
+ Extraction: "Extraction",
833
+ MultiModal: "Multi-modal",
834
+ SelfChecking: "Self-checking",
835
+ Sql: "SQL",
836
+ Summarization: "Summarization",
837
+ Tagging: "Tagging",
838
+ } as const;
839
+ export type CreatePromptPromptsUseCases = ClosedEnum<
840
+ typeof CreatePromptPromptsUseCases
841
+ >;
709
842
 
710
- export const CreatePromptPromptsResponseType = {
711
- Prompt: "prompt",
712
- Snippet: "snippet",
713
- Template: "template",
843
+ /**
844
+ * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
845
+ */
846
+ export const CreatePromptPromptsLanguage = {
847
+ Chinese: "Chinese",
848
+ Dutch: "Dutch",
849
+ English: "English",
850
+ French: "French",
851
+ German: "German",
852
+ Russian: "Russian",
853
+ Spanish: "Spanish",
714
854
  } as const;
715
- export type CreatePromptPromptsResponseType = ClosedEnum<
716
- typeof CreatePromptPromptsResponseType
855
+ /**
856
+ * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
857
+ */
858
+ export type CreatePromptPromptsLanguage = ClosedEnum<
859
+ typeof CreatePromptPromptsLanguage
717
860
  >;
718
861
 
862
+ export type CreatePromptPromptsMetadata = {
863
+ /**
864
+ * 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
865
+ */
866
+ useCases?: Array<CreatePromptPromptsUseCases> | undefined;
867
+ /**
868
+ * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
869
+ */
870
+ language?: CreatePromptPromptsLanguage | undefined;
871
+ };
872
+
719
873
  /**
720
874
  * Prompt created.
721
875
  */
722
876
  export type CreatePromptResponseBody = {
877
+ id: string;
878
+ type: CreatePromptPromptsType;
879
+ owner: string;
880
+ domainId: string;
881
+ created: string;
882
+ updated: string;
883
+ createdById?: string | undefined;
884
+ updatedById?: string | undefined;
723
885
  /**
724
- * The id of the resource
886
+ * The prompt’s name, meant to be displayable in the UI.
725
887
  */
726
- id: string;
727
888
  displayName: string;
728
889
  /**
729
- * The id of the resource
890
+ * 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
730
891
  */
731
- domainId: string;
732
892
  description?: string | null | undefined;
733
- promptConfig?: CreatePromptPromptConfig | undefined;
893
+ /**
894
+ * A list of messages compatible with the openAI schema
895
+ */
896
+ promptConfig: CreatePromptPromptsPromptConfig;
734
897
  metadata?: CreatePromptPromptsMetadata | undefined;
735
- key?: string | undefined;
736
- type: CreatePromptPromptsResponseType;
737
898
  };
738
899
 
739
900
  /** @internal */
740
- export const ModelType$inboundSchema: z.ZodNativeEnum<typeof ModelType> = z
741
- .nativeEnum(ModelType);
901
+ export const CreatePromptModelType$inboundSchema: z.ZodNativeEnum<
902
+ typeof CreatePromptModelType
903
+ > = z.nativeEnum(CreatePromptModelType);
742
904
 
743
905
  /** @internal */
744
- export const ModelType$outboundSchema: z.ZodNativeEnum<typeof ModelType> =
745
- ModelType$inboundSchema;
906
+ export const CreatePromptModelType$outboundSchema: z.ZodNativeEnum<
907
+ typeof CreatePromptModelType
908
+ > = CreatePromptModelType$inboundSchema;
746
909
 
747
910
  /**
748
911
  * @internal
749
912
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
750
913
  */
751
- export namespace ModelType$ {
752
- /** @deprecated use `ModelType$inboundSchema` instead. */
753
- export const inboundSchema = ModelType$inboundSchema;
754
- /** @deprecated use `ModelType$outboundSchema` instead. */
755
- export const outboundSchema = ModelType$outboundSchema;
914
+ export namespace CreatePromptModelType$ {
915
+ /** @deprecated use `CreatePromptModelType$inboundSchema` instead. */
916
+ export const inboundSchema = CreatePromptModelType$inboundSchema;
917
+ /** @deprecated use `CreatePromptModelType$outboundSchema` instead. */
918
+ export const outboundSchema = CreatePromptModelType$outboundSchema;
756
919
  }
757
920
 
758
921
  /** @internal */
759
- export const Format$inboundSchema: z.ZodNativeEnum<typeof Format> = z
760
- .nativeEnum(Format);
922
+ export const CreatePromptFormat$inboundSchema: z.ZodNativeEnum<
923
+ typeof CreatePromptFormat
924
+ > = z.nativeEnum(CreatePromptFormat);
761
925
 
762
926
  /** @internal */
763
- export const Format$outboundSchema: z.ZodNativeEnum<typeof Format> =
764
- Format$inboundSchema;
927
+ export const CreatePromptFormat$outboundSchema: z.ZodNativeEnum<
928
+ typeof CreatePromptFormat
929
+ > = CreatePromptFormat$inboundSchema;
765
930
 
766
931
  /**
767
932
  * @internal
768
933
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
769
934
  */
770
- export namespace Format$ {
771
- /** @deprecated use `Format$inboundSchema` instead. */
772
- export const inboundSchema = Format$inboundSchema;
773
- /** @deprecated use `Format$outboundSchema` instead. */
774
- export const outboundSchema = Format$outboundSchema;
935
+ export namespace CreatePromptFormat$ {
936
+ /** @deprecated use `CreatePromptFormat$inboundSchema` instead. */
937
+ export const inboundSchema = CreatePromptFormat$inboundSchema;
938
+ /** @deprecated use `CreatePromptFormat$outboundSchema` instead. */
939
+ export const outboundSchema = CreatePromptFormat$outboundSchema;
775
940
  }
776
941
 
777
942
  /** @internal */
778
- export const Quality$inboundSchema: z.ZodNativeEnum<typeof Quality> = z
779
- .nativeEnum(Quality);
943
+ export const CreatePromptQuality$inboundSchema: z.ZodNativeEnum<
944
+ typeof CreatePromptQuality
945
+ > = z.nativeEnum(CreatePromptQuality);
780
946
 
781
947
  /** @internal */
782
- export const Quality$outboundSchema: z.ZodNativeEnum<typeof Quality> =
783
- Quality$inboundSchema;
948
+ export const CreatePromptQuality$outboundSchema: z.ZodNativeEnum<
949
+ typeof CreatePromptQuality
950
+ > = CreatePromptQuality$inboundSchema;
784
951
 
785
952
  /**
786
953
  * @internal
787
954
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
788
955
  */
789
- export namespace Quality$ {
790
- /** @deprecated use `Quality$inboundSchema` instead. */
791
- export const inboundSchema = Quality$inboundSchema;
792
- /** @deprecated use `Quality$outboundSchema` instead. */
793
- export const outboundSchema = Quality$outboundSchema;
956
+ export namespace CreatePromptQuality$ {
957
+ /** @deprecated use `CreatePromptQuality$inboundSchema` instead. */
958
+ export const inboundSchema = CreatePromptQuality$inboundSchema;
959
+ /** @deprecated use `CreatePromptQuality$outboundSchema` instead. */
960
+ export const outboundSchema = CreatePromptQuality$outboundSchema;
794
961
  }
795
962
 
796
963
  /** @internal */
797
- export const CreatePromptResponseFormatType$inboundSchema: z.ZodNativeEnum<
798
- typeof CreatePromptResponseFormatType
799
- > = z.nativeEnum(CreatePromptResponseFormatType);
964
+ export const CreatePromptResponseFormatPromptsType$inboundSchema:
965
+ z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsType> = z.nativeEnum(
966
+ CreatePromptResponseFormatPromptsType,
967
+ );
800
968
 
801
969
  /** @internal */
802
- export const CreatePromptResponseFormatType$outboundSchema: z.ZodNativeEnum<
803
- typeof CreatePromptResponseFormatType
804
- > = CreatePromptResponseFormatType$inboundSchema;
970
+ export const CreatePromptResponseFormatPromptsType$outboundSchema:
971
+ z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsType> =
972
+ CreatePromptResponseFormatPromptsType$inboundSchema;
805
973
 
806
974
  /**
807
975
  * @internal
808
976
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
809
977
  */
810
- export namespace CreatePromptResponseFormatType$ {
811
- /** @deprecated use `CreatePromptResponseFormatType$inboundSchema` instead. */
812
- export const inboundSchema = CreatePromptResponseFormatType$inboundSchema;
813
- /** @deprecated use `CreatePromptResponseFormatType$outboundSchema` instead. */
814
- export const outboundSchema = CreatePromptResponseFormatType$outboundSchema;
978
+ export namespace CreatePromptResponseFormatPromptsType$ {
979
+ /** @deprecated use `CreatePromptResponseFormatPromptsType$inboundSchema` instead. */
980
+ export const inboundSchema =
981
+ CreatePromptResponseFormatPromptsType$inboundSchema;
982
+ /** @deprecated use `CreatePromptResponseFormatPromptsType$outboundSchema` instead. */
983
+ export const outboundSchema =
984
+ CreatePromptResponseFormatPromptsType$outboundSchema;
815
985
  }
816
986
 
817
987
  /** @internal */
818
- export const ResponseFormat2$inboundSchema: z.ZodType<
819
- ResponseFormat2,
988
+ export const CreatePromptResponseFormat2$inboundSchema: z.ZodType<
989
+ CreatePromptResponseFormat2,
820
990
  z.ZodTypeDef,
821
991
  unknown
822
992
  > = z.object({
823
- type: CreatePromptResponseFormatType$inboundSchema,
993
+ type: CreatePromptResponseFormatPromptsType$inboundSchema,
824
994
  });
825
995
 
826
996
  /** @internal */
827
- export type ResponseFormat2$Outbound = {
997
+ export type CreatePromptResponseFormat2$Outbound = {
828
998
  type: string;
829
999
  };
830
1000
 
831
1001
  /** @internal */
832
- export const ResponseFormat2$outboundSchema: z.ZodType<
833
- ResponseFormat2$Outbound,
1002
+ export const CreatePromptResponseFormat2$outboundSchema: z.ZodType<
1003
+ CreatePromptResponseFormat2$Outbound,
834
1004
  z.ZodTypeDef,
835
- ResponseFormat2
1005
+ CreatePromptResponseFormat2
836
1006
  > = z.object({
837
- type: CreatePromptResponseFormatType$outboundSchema,
1007
+ type: CreatePromptResponseFormatPromptsType$outboundSchema,
838
1008
  });
839
1009
 
840
1010
  /**
841
1011
  * @internal
842
1012
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
843
1013
  */
844
- export namespace ResponseFormat2$ {
845
- /** @deprecated use `ResponseFormat2$inboundSchema` instead. */
846
- export const inboundSchema = ResponseFormat2$inboundSchema;
847
- /** @deprecated use `ResponseFormat2$outboundSchema` instead. */
848
- export const outboundSchema = ResponseFormat2$outboundSchema;
849
- /** @deprecated use `ResponseFormat2$Outbound` instead. */
850
- export type Outbound = ResponseFormat2$Outbound;
1014
+ export namespace CreatePromptResponseFormat2$ {
1015
+ /** @deprecated use `CreatePromptResponseFormat2$inboundSchema` instead. */
1016
+ export const inboundSchema = CreatePromptResponseFormat2$inboundSchema;
1017
+ /** @deprecated use `CreatePromptResponseFormat2$outboundSchema` instead. */
1018
+ export const outboundSchema = CreatePromptResponseFormat2$outboundSchema;
1019
+ /** @deprecated use `CreatePromptResponseFormat2$Outbound` instead. */
1020
+ export type Outbound = CreatePromptResponseFormat2$Outbound;
851
1021
  }
852
1022
 
853
- export function responseFormat2ToJSON(
854
- responseFormat2: ResponseFormat2,
1023
+ export function createPromptResponseFormat2ToJSON(
1024
+ createPromptResponseFormat2: CreatePromptResponseFormat2,
855
1025
  ): string {
856
- return JSON.stringify(ResponseFormat2$outboundSchema.parse(responseFormat2));
1026
+ return JSON.stringify(
1027
+ CreatePromptResponseFormat2$outboundSchema.parse(
1028
+ createPromptResponseFormat2,
1029
+ ),
1030
+ );
857
1031
  }
858
1032
 
859
- export function responseFormat2FromJSON(
1033
+ export function createPromptResponseFormat2FromJSON(
860
1034
  jsonString: string,
861
- ): SafeParseResult<ResponseFormat2, SDKValidationError> {
1035
+ ): SafeParseResult<CreatePromptResponseFormat2, SDKValidationError> {
862
1036
  return safeParse(
863
1037
  jsonString,
864
- (x) => ResponseFormat2$inboundSchema.parse(JSON.parse(x)),
865
- `Failed to parse 'ResponseFormat2' from JSON`,
1038
+ (x) => CreatePromptResponseFormat2$inboundSchema.parse(JSON.parse(x)),
1039
+ `Failed to parse 'CreatePromptResponseFormat2' from JSON`,
866
1040
  );
867
1041
  }
868
1042
 
869
1043
  /** @internal */
870
- export const ResponseFormatType$inboundSchema: z.ZodNativeEnum<
871
- typeof ResponseFormatType
872
- > = z.nativeEnum(ResponseFormatType);
1044
+ export const CreatePromptResponseFormatType$inboundSchema: z.ZodNativeEnum<
1045
+ typeof CreatePromptResponseFormatType
1046
+ > = z.nativeEnum(CreatePromptResponseFormatType);
873
1047
 
874
1048
  /** @internal */
875
- export const ResponseFormatType$outboundSchema: z.ZodNativeEnum<
876
- typeof ResponseFormatType
877
- > = ResponseFormatType$inboundSchema;
1049
+ export const CreatePromptResponseFormatType$outboundSchema: z.ZodNativeEnum<
1050
+ typeof CreatePromptResponseFormatType
1051
+ > = CreatePromptResponseFormatType$inboundSchema;
878
1052
 
879
1053
  /**
880
1054
  * @internal
881
1055
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
882
1056
  */
883
- export namespace ResponseFormatType$ {
884
- /** @deprecated use `ResponseFormatType$inboundSchema` instead. */
885
- export const inboundSchema = ResponseFormatType$inboundSchema;
886
- /** @deprecated use `ResponseFormatType$outboundSchema` instead. */
887
- export const outboundSchema = ResponseFormatType$outboundSchema;
1057
+ export namespace CreatePromptResponseFormatType$ {
1058
+ /** @deprecated use `CreatePromptResponseFormatType$inboundSchema` instead. */
1059
+ export const inboundSchema = CreatePromptResponseFormatType$inboundSchema;
1060
+ /** @deprecated use `CreatePromptResponseFormatType$outboundSchema` instead. */
1061
+ export const outboundSchema = CreatePromptResponseFormatType$outboundSchema;
888
1062
  }
889
1063
 
890
1064
  /** @internal */
891
- export const JsonSchema$inboundSchema: z.ZodType<
892
- JsonSchema,
1065
+ export const CreatePromptResponseFormatJsonSchema$inboundSchema: z.ZodType<
1066
+ CreatePromptResponseFormatJsonSchema,
893
1067
  z.ZodTypeDef,
894
1068
  unknown
895
1069
  > = z.object({
@@ -899,17 +1073,17 @@ export const JsonSchema$inboundSchema: z.ZodType<
899
1073
  });
900
1074
 
901
1075
  /** @internal */
902
- export type JsonSchema$Outbound = {
1076
+ export type CreatePromptResponseFormatJsonSchema$Outbound = {
903
1077
  name: string;
904
1078
  strict: boolean;
905
1079
  schema: { [k: string]: any };
906
1080
  };
907
1081
 
908
1082
  /** @internal */
909
- export const JsonSchema$outboundSchema: z.ZodType<
910
- JsonSchema$Outbound,
1083
+ export const CreatePromptResponseFormatJsonSchema$outboundSchema: z.ZodType<
1084
+ CreatePromptResponseFormatJsonSchema$Outbound,
911
1085
  z.ZodTypeDef,
912
- JsonSchema
1086
+ CreatePromptResponseFormatJsonSchema
913
1087
  > = z.object({
914
1088
  name: z.string(),
915
1089
  strict: z.boolean(),
@@ -920,37 +1094,46 @@ export const JsonSchema$outboundSchema: z.ZodType<
920
1094
  * @internal
921
1095
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
922
1096
  */
923
- export namespace JsonSchema$ {
924
- /** @deprecated use `JsonSchema$inboundSchema` instead. */
925
- export const inboundSchema = JsonSchema$inboundSchema;
926
- /** @deprecated use `JsonSchema$outboundSchema` instead. */
927
- export const outboundSchema = JsonSchema$outboundSchema;
928
- /** @deprecated use `JsonSchema$Outbound` instead. */
929
- export type Outbound = JsonSchema$Outbound;
1097
+ export namespace CreatePromptResponseFormatJsonSchema$ {
1098
+ /** @deprecated use `CreatePromptResponseFormatJsonSchema$inboundSchema` instead. */
1099
+ export const inboundSchema =
1100
+ CreatePromptResponseFormatJsonSchema$inboundSchema;
1101
+ /** @deprecated use `CreatePromptResponseFormatJsonSchema$outboundSchema` instead. */
1102
+ export const outboundSchema =
1103
+ CreatePromptResponseFormatJsonSchema$outboundSchema;
1104
+ /** @deprecated use `CreatePromptResponseFormatJsonSchema$Outbound` instead. */
1105
+ export type Outbound = CreatePromptResponseFormatJsonSchema$Outbound;
930
1106
  }
931
1107
 
932
- export function jsonSchemaToJSON(jsonSchema: JsonSchema): string {
933
- return JSON.stringify(JsonSchema$outboundSchema.parse(jsonSchema));
1108
+ export function createPromptResponseFormatJsonSchemaToJSON(
1109
+ createPromptResponseFormatJsonSchema: CreatePromptResponseFormatJsonSchema,
1110
+ ): string {
1111
+ return JSON.stringify(
1112
+ CreatePromptResponseFormatJsonSchema$outboundSchema.parse(
1113
+ createPromptResponseFormatJsonSchema,
1114
+ ),
1115
+ );
934
1116
  }
935
1117
 
936
- export function jsonSchemaFromJSON(
1118
+ export function createPromptResponseFormatJsonSchemaFromJSON(
937
1119
  jsonString: string,
938
- ): SafeParseResult<JsonSchema, SDKValidationError> {
1120
+ ): SafeParseResult<CreatePromptResponseFormatJsonSchema, SDKValidationError> {
939
1121
  return safeParse(
940
1122
  jsonString,
941
- (x) => JsonSchema$inboundSchema.parse(JSON.parse(x)),
942
- `Failed to parse 'JsonSchema' from JSON`,
1123
+ (x) =>
1124
+ CreatePromptResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
1125
+ `Failed to parse 'CreatePromptResponseFormatJsonSchema' from JSON`,
943
1126
  );
944
1127
  }
945
1128
 
946
1129
  /** @internal */
947
- export const ResponseFormat1$inboundSchema: z.ZodType<
948
- ResponseFormat1,
1130
+ export const CreatePromptResponseFormat1$inboundSchema: z.ZodType<
1131
+ CreatePromptResponseFormat1,
949
1132
  z.ZodTypeDef,
950
1133
  unknown
951
1134
  > = z.object({
952
- type: ResponseFormatType$inboundSchema,
953
- json_schema: z.lazy(() => JsonSchema$inboundSchema),
1135
+ type: CreatePromptResponseFormatType$inboundSchema,
1136
+ json_schema: z.lazy(() => CreatePromptResponseFormatJsonSchema$inboundSchema),
954
1137
  }).transform((v) => {
955
1138
  return remap$(v, {
956
1139
  "json_schema": "jsonSchema",
@@ -958,19 +1141,19 @@ export const ResponseFormat1$inboundSchema: z.ZodType<
958
1141
  });
959
1142
 
960
1143
  /** @internal */
961
- export type ResponseFormat1$Outbound = {
1144
+ export type CreatePromptResponseFormat1$Outbound = {
962
1145
  type: string;
963
- json_schema: JsonSchema$Outbound;
1146
+ json_schema: CreatePromptResponseFormatJsonSchema$Outbound;
964
1147
  };
965
1148
 
966
1149
  /** @internal */
967
- export const ResponseFormat1$outboundSchema: z.ZodType<
968
- ResponseFormat1$Outbound,
1150
+ export const CreatePromptResponseFormat1$outboundSchema: z.ZodType<
1151
+ CreatePromptResponseFormat1$Outbound,
969
1152
  z.ZodTypeDef,
970
- ResponseFormat1
1153
+ CreatePromptResponseFormat1
971
1154
  > = z.object({
972
- type: ResponseFormatType$outboundSchema,
973
- jsonSchema: z.lazy(() => JsonSchema$outboundSchema),
1155
+ type: CreatePromptResponseFormatType$outboundSchema,
1156
+ jsonSchema: z.lazy(() => CreatePromptResponseFormatJsonSchema$outboundSchema),
974
1157
  }).transform((v) => {
975
1158
  return remap$(v, {
976
1159
  jsonSchema: "json_schema",
@@ -981,128 +1164,157 @@ export const ResponseFormat1$outboundSchema: z.ZodType<
981
1164
  * @internal
982
1165
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
983
1166
  */
984
- export namespace ResponseFormat1$ {
985
- /** @deprecated use `ResponseFormat1$inboundSchema` instead. */
986
- export const inboundSchema = ResponseFormat1$inboundSchema;
987
- /** @deprecated use `ResponseFormat1$outboundSchema` instead. */
988
- export const outboundSchema = ResponseFormat1$outboundSchema;
989
- /** @deprecated use `ResponseFormat1$Outbound` instead. */
990
- export type Outbound = ResponseFormat1$Outbound;
1167
+ export namespace CreatePromptResponseFormat1$ {
1168
+ /** @deprecated use `CreatePromptResponseFormat1$inboundSchema` instead. */
1169
+ export const inboundSchema = CreatePromptResponseFormat1$inboundSchema;
1170
+ /** @deprecated use `CreatePromptResponseFormat1$outboundSchema` instead. */
1171
+ export const outboundSchema = CreatePromptResponseFormat1$outboundSchema;
1172
+ /** @deprecated use `CreatePromptResponseFormat1$Outbound` instead. */
1173
+ export type Outbound = CreatePromptResponseFormat1$Outbound;
991
1174
  }
992
1175
 
993
- export function responseFormat1ToJSON(
994
- responseFormat1: ResponseFormat1,
1176
+ export function createPromptResponseFormat1ToJSON(
1177
+ createPromptResponseFormat1: CreatePromptResponseFormat1,
995
1178
  ): string {
996
- return JSON.stringify(ResponseFormat1$outboundSchema.parse(responseFormat1));
1179
+ return JSON.stringify(
1180
+ CreatePromptResponseFormat1$outboundSchema.parse(
1181
+ createPromptResponseFormat1,
1182
+ ),
1183
+ );
997
1184
  }
998
1185
 
999
- export function responseFormat1FromJSON(
1186
+ export function createPromptResponseFormat1FromJSON(
1000
1187
  jsonString: string,
1001
- ): SafeParseResult<ResponseFormat1, SDKValidationError> {
1188
+ ): SafeParseResult<CreatePromptResponseFormat1, SDKValidationError> {
1002
1189
  return safeParse(
1003
1190
  jsonString,
1004
- (x) => ResponseFormat1$inboundSchema.parse(JSON.parse(x)),
1005
- `Failed to parse 'ResponseFormat1' from JSON`,
1191
+ (x) => CreatePromptResponseFormat1$inboundSchema.parse(JSON.parse(x)),
1192
+ `Failed to parse 'CreatePromptResponseFormat1' from JSON`,
1006
1193
  );
1007
1194
  }
1008
1195
 
1009
1196
  /** @internal */
1010
- export const ResponseFormat$inboundSchema: z.ZodType<
1011
- ResponseFormat,
1197
+ export const CreatePromptResponseFormat$inboundSchema: z.ZodType<
1198
+ CreatePromptResponseFormat,
1012
1199
  z.ZodTypeDef,
1013
1200
  unknown
1014
1201
  > = z.union([
1015
- z.lazy(() => ResponseFormat2$inboundSchema),
1016
- z.lazy(() => ResponseFormat1$inboundSchema),
1202
+ z.lazy(() => CreatePromptResponseFormat2$inboundSchema),
1203
+ z.lazy(() => CreatePromptResponseFormat1$inboundSchema),
1017
1204
  ]);
1018
1205
 
1019
1206
  /** @internal */
1020
- export type ResponseFormat$Outbound =
1021
- | ResponseFormat2$Outbound
1022
- | ResponseFormat1$Outbound;
1207
+ export type CreatePromptResponseFormat$Outbound =
1208
+ | CreatePromptResponseFormat2$Outbound
1209
+ | CreatePromptResponseFormat1$Outbound;
1023
1210
 
1024
1211
  /** @internal */
1025
- export const ResponseFormat$outboundSchema: z.ZodType<
1026
- ResponseFormat$Outbound,
1212
+ export const CreatePromptResponseFormat$outboundSchema: z.ZodType<
1213
+ CreatePromptResponseFormat$Outbound,
1027
1214
  z.ZodTypeDef,
1028
- ResponseFormat
1215
+ CreatePromptResponseFormat
1029
1216
  > = z.union([
1030
- z.lazy(() => ResponseFormat2$outboundSchema),
1031
- z.lazy(() => ResponseFormat1$outboundSchema),
1217
+ z.lazy(() => CreatePromptResponseFormat2$outboundSchema),
1218
+ z.lazy(() => CreatePromptResponseFormat1$outboundSchema),
1032
1219
  ]);
1033
1220
 
1034
1221
  /**
1035
1222
  * @internal
1036
1223
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1037
1224
  */
1038
- export namespace ResponseFormat$ {
1039
- /** @deprecated use `ResponseFormat$inboundSchema` instead. */
1040
- export const inboundSchema = ResponseFormat$inboundSchema;
1041
- /** @deprecated use `ResponseFormat$outboundSchema` instead. */
1042
- export const outboundSchema = ResponseFormat$outboundSchema;
1043
- /** @deprecated use `ResponseFormat$Outbound` instead. */
1044
- export type Outbound = ResponseFormat$Outbound;
1225
+ export namespace CreatePromptResponseFormat$ {
1226
+ /** @deprecated use `CreatePromptResponseFormat$inboundSchema` instead. */
1227
+ export const inboundSchema = CreatePromptResponseFormat$inboundSchema;
1228
+ /** @deprecated use `CreatePromptResponseFormat$outboundSchema` instead. */
1229
+ export const outboundSchema = CreatePromptResponseFormat$outboundSchema;
1230
+ /** @deprecated use `CreatePromptResponseFormat$Outbound` instead. */
1231
+ export type Outbound = CreatePromptResponseFormat$Outbound;
1045
1232
  }
1046
1233
 
1047
- export function responseFormatToJSON(responseFormat: ResponseFormat): string {
1048
- return JSON.stringify(ResponseFormat$outboundSchema.parse(responseFormat));
1234
+ export function createPromptResponseFormatToJSON(
1235
+ createPromptResponseFormat: CreatePromptResponseFormat,
1236
+ ): string {
1237
+ return JSON.stringify(
1238
+ CreatePromptResponseFormat$outboundSchema.parse(createPromptResponseFormat),
1239
+ );
1049
1240
  }
1050
1241
 
1051
- export function responseFormatFromJSON(
1242
+ export function createPromptResponseFormatFromJSON(
1052
1243
  jsonString: string,
1053
- ): SafeParseResult<ResponseFormat, SDKValidationError> {
1244
+ ): SafeParseResult<CreatePromptResponseFormat, SDKValidationError> {
1054
1245
  return safeParse(
1055
1246
  jsonString,
1056
- (x) => ResponseFormat$inboundSchema.parse(JSON.parse(x)),
1057
- `Failed to parse 'ResponseFormat' from JSON`,
1247
+ (x) => CreatePromptResponseFormat$inboundSchema.parse(JSON.parse(x)),
1248
+ `Failed to parse 'CreatePromptResponseFormat' from JSON`,
1058
1249
  );
1059
1250
  }
1060
1251
 
1061
1252
  /** @internal */
1062
- export const PhotoRealVersion$inboundSchema: z.ZodNativeEnum<
1063
- typeof PhotoRealVersion
1064
- > = z.nativeEnum(PhotoRealVersion);
1253
+ export const CreatePromptPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
1254
+ typeof CreatePromptPhotoRealVersion
1255
+ > = z.nativeEnum(CreatePromptPhotoRealVersion);
1256
+
1257
+ /** @internal */
1258
+ export const CreatePromptPhotoRealVersion$outboundSchema: z.ZodNativeEnum<
1259
+ typeof CreatePromptPhotoRealVersion
1260
+ > = CreatePromptPhotoRealVersion$inboundSchema;
1261
+
1262
+ /**
1263
+ * @internal
1264
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1265
+ */
1266
+ export namespace CreatePromptPhotoRealVersion$ {
1267
+ /** @deprecated use `CreatePromptPhotoRealVersion$inboundSchema` instead. */
1268
+ export const inboundSchema = CreatePromptPhotoRealVersion$inboundSchema;
1269
+ /** @deprecated use `CreatePromptPhotoRealVersion$outboundSchema` instead. */
1270
+ export const outboundSchema = CreatePromptPhotoRealVersion$outboundSchema;
1271
+ }
1272
+
1273
+ /** @internal */
1274
+ export const CreatePromptEncodingFormat$inboundSchema: z.ZodNativeEnum<
1275
+ typeof CreatePromptEncodingFormat
1276
+ > = z.nativeEnum(CreatePromptEncodingFormat);
1065
1277
 
1066
1278
  /** @internal */
1067
- export const PhotoRealVersion$outboundSchema: z.ZodNativeEnum<
1068
- typeof PhotoRealVersion
1069
- > = PhotoRealVersion$inboundSchema;
1279
+ export const CreatePromptEncodingFormat$outboundSchema: z.ZodNativeEnum<
1280
+ typeof CreatePromptEncodingFormat
1281
+ > = CreatePromptEncodingFormat$inboundSchema;
1070
1282
 
1071
1283
  /**
1072
1284
  * @internal
1073
1285
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1074
1286
  */
1075
- export namespace PhotoRealVersion$ {
1076
- /** @deprecated use `PhotoRealVersion$inboundSchema` instead. */
1077
- export const inboundSchema = PhotoRealVersion$inboundSchema;
1078
- /** @deprecated use `PhotoRealVersion$outboundSchema` instead. */
1079
- export const outboundSchema = PhotoRealVersion$outboundSchema;
1287
+ export namespace CreatePromptEncodingFormat$ {
1288
+ /** @deprecated use `CreatePromptEncodingFormat$inboundSchema` instead. */
1289
+ export const inboundSchema = CreatePromptEncodingFormat$inboundSchema;
1290
+ /** @deprecated use `CreatePromptEncodingFormat$outboundSchema` instead. */
1291
+ export const outboundSchema = CreatePromptEncodingFormat$outboundSchema;
1080
1292
  }
1081
1293
 
1082
1294
  /** @internal */
1083
- export const EncodingFormat$inboundSchema: z.ZodNativeEnum<
1084
- typeof EncodingFormat
1085
- > = z.nativeEnum(EncodingFormat);
1295
+ export const CreatePromptReasoningEffort$inboundSchema: z.ZodNativeEnum<
1296
+ typeof CreatePromptReasoningEffort
1297
+ > = z.nativeEnum(CreatePromptReasoningEffort);
1086
1298
 
1087
1299
  /** @internal */
1088
- export const EncodingFormat$outboundSchema: z.ZodNativeEnum<
1089
- typeof EncodingFormat
1090
- > = EncodingFormat$inboundSchema;
1300
+ export const CreatePromptReasoningEffort$outboundSchema: z.ZodNativeEnum<
1301
+ typeof CreatePromptReasoningEffort
1302
+ > = CreatePromptReasoningEffort$inboundSchema;
1091
1303
 
1092
1304
  /**
1093
1305
  * @internal
1094
1306
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1095
1307
  */
1096
- export namespace EncodingFormat$ {
1097
- /** @deprecated use `EncodingFormat$inboundSchema` instead. */
1098
- export const inboundSchema = EncodingFormat$inboundSchema;
1099
- /** @deprecated use `EncodingFormat$outboundSchema` instead. */
1100
- export const outboundSchema = EncodingFormat$outboundSchema;
1308
+ export namespace CreatePromptReasoningEffort$ {
1309
+ /** @deprecated use `CreatePromptReasoningEffort$inboundSchema` instead. */
1310
+ export const inboundSchema = CreatePromptReasoningEffort$inboundSchema;
1311
+ /** @deprecated use `CreatePromptReasoningEffort$outboundSchema` instead. */
1312
+ export const outboundSchema = CreatePromptReasoningEffort$outboundSchema;
1101
1313
  }
1102
1314
 
1103
1315
  /** @internal */
1104
- export const ModelParameters$inboundSchema: z.ZodType<
1105
- ModelParameters,
1316
+ export const CreatePromptModelParameters$inboundSchema: z.ZodType<
1317
+ CreatePromptModelParameters,
1106
1318
  z.ZodTypeDef,
1107
1319
  unknown
1108
1320
  > = z.object({
@@ -1114,18 +1326,19 @@ export const ModelParameters$inboundSchema: z.ZodType<
1114
1326
  presencePenalty: z.number().optional(),
1115
1327
  numImages: z.number().optional(),
1116
1328
  seed: z.number().optional(),
1117
- format: Format$inboundSchema.optional(),
1329
+ format: CreatePromptFormat$inboundSchema.optional(),
1118
1330
  dimensions: z.string().optional(),
1119
- quality: Quality$inboundSchema.optional(),
1331
+ quality: CreatePromptQuality$inboundSchema.optional(),
1120
1332
  style: z.string().optional(),
1121
1333
  responseFormat: z.nullable(
1122
1334
  z.union([
1123
- z.lazy(() => ResponseFormat2$inboundSchema),
1124
- z.lazy(() => ResponseFormat1$inboundSchema),
1335
+ z.lazy(() => CreatePromptResponseFormat2$inboundSchema),
1336
+ z.lazy(() => CreatePromptResponseFormat1$inboundSchema),
1125
1337
  ]),
1126
1338
  ).optional(),
1127
- photoRealVersion: PhotoRealVersion$inboundSchema.optional(),
1128
- encoding_format: EncodingFormat$inboundSchema.optional(),
1339
+ photoRealVersion: CreatePromptPhotoRealVersion$inboundSchema.optional(),
1340
+ encoding_format: CreatePromptEncodingFormat$inboundSchema.optional(),
1341
+ reasoningEffort: CreatePromptReasoningEffort$inboundSchema.optional(),
1129
1342
  }).transform((v) => {
1130
1343
  return remap$(v, {
1131
1344
  "encoding_format": "encodingFormat",
@@ -1133,7 +1346,7 @@ export const ModelParameters$inboundSchema: z.ZodType<
1133
1346
  });
1134
1347
 
1135
1348
  /** @internal */
1136
- export type ModelParameters$Outbound = {
1349
+ export type CreatePromptModelParameters$Outbound = {
1137
1350
  temperature?: number | undefined;
1138
1351
  maxTokens?: number | undefined;
1139
1352
  topK?: number | undefined;
@@ -1147,19 +1360,20 @@ export type ModelParameters$Outbound = {
1147
1360
  quality?: string | undefined;
1148
1361
  style?: string | undefined;
1149
1362
  responseFormat?:
1150
- | ResponseFormat2$Outbound
1151
- | ResponseFormat1$Outbound
1363
+ | CreatePromptResponseFormat2$Outbound
1364
+ | CreatePromptResponseFormat1$Outbound
1152
1365
  | null
1153
1366
  | undefined;
1154
1367
  photoRealVersion?: string | undefined;
1155
1368
  encoding_format?: string | undefined;
1369
+ reasoningEffort?: string | undefined;
1156
1370
  };
1157
1371
 
1158
1372
  /** @internal */
1159
- export const ModelParameters$outboundSchema: z.ZodType<
1160
- ModelParameters$Outbound,
1373
+ export const CreatePromptModelParameters$outboundSchema: z.ZodType<
1374
+ CreatePromptModelParameters$Outbound,
1161
1375
  z.ZodTypeDef,
1162
- ModelParameters
1376
+ CreatePromptModelParameters
1163
1377
  > = z.object({
1164
1378
  temperature: z.number().optional(),
1165
1379
  maxTokens: z.number().optional(),
@@ -1169,18 +1383,19 @@ export const ModelParameters$outboundSchema: z.ZodType<
1169
1383
  presencePenalty: z.number().optional(),
1170
1384
  numImages: z.number().optional(),
1171
1385
  seed: z.number().optional(),
1172
- format: Format$outboundSchema.optional(),
1386
+ format: CreatePromptFormat$outboundSchema.optional(),
1173
1387
  dimensions: z.string().optional(),
1174
- quality: Quality$outboundSchema.optional(),
1388
+ quality: CreatePromptQuality$outboundSchema.optional(),
1175
1389
  style: z.string().optional(),
1176
1390
  responseFormat: z.nullable(
1177
1391
  z.union([
1178
- z.lazy(() => ResponseFormat2$outboundSchema),
1179
- z.lazy(() => ResponseFormat1$outboundSchema),
1392
+ z.lazy(() => CreatePromptResponseFormat2$outboundSchema),
1393
+ z.lazy(() => CreatePromptResponseFormat1$outboundSchema),
1180
1394
  ]),
1181
1395
  ).optional(),
1182
- photoRealVersion: PhotoRealVersion$outboundSchema.optional(),
1183
- encodingFormat: EncodingFormat$outboundSchema.optional(),
1396
+ photoRealVersion: CreatePromptPhotoRealVersion$outboundSchema.optional(),
1397
+ encodingFormat: CreatePromptEncodingFormat$outboundSchema.optional(),
1398
+ reasoningEffort: CreatePromptReasoningEffort$outboundSchema.optional(),
1184
1399
  }).transform((v) => {
1185
1400
  return remap$(v, {
1186
1401
  encodingFormat: "encoding_format",
@@ -1191,48 +1406,54 @@ export const ModelParameters$outboundSchema: z.ZodType<
1191
1406
  * @internal
1192
1407
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1193
1408
  */
1194
- export namespace ModelParameters$ {
1195
- /** @deprecated use `ModelParameters$inboundSchema` instead. */
1196
- export const inboundSchema = ModelParameters$inboundSchema;
1197
- /** @deprecated use `ModelParameters$outboundSchema` instead. */
1198
- export const outboundSchema = ModelParameters$outboundSchema;
1199
- /** @deprecated use `ModelParameters$Outbound` instead. */
1200
- export type Outbound = ModelParameters$Outbound;
1409
+ export namespace CreatePromptModelParameters$ {
1410
+ /** @deprecated use `CreatePromptModelParameters$inboundSchema` instead. */
1411
+ export const inboundSchema = CreatePromptModelParameters$inboundSchema;
1412
+ /** @deprecated use `CreatePromptModelParameters$outboundSchema` instead. */
1413
+ export const outboundSchema = CreatePromptModelParameters$outboundSchema;
1414
+ /** @deprecated use `CreatePromptModelParameters$Outbound` instead. */
1415
+ export type Outbound = CreatePromptModelParameters$Outbound;
1201
1416
  }
1202
1417
 
1203
- export function modelParametersToJSON(
1204
- modelParameters: ModelParameters,
1418
+ export function createPromptModelParametersToJSON(
1419
+ createPromptModelParameters: CreatePromptModelParameters,
1205
1420
  ): string {
1206
- return JSON.stringify(ModelParameters$outboundSchema.parse(modelParameters));
1421
+ return JSON.stringify(
1422
+ CreatePromptModelParameters$outboundSchema.parse(
1423
+ createPromptModelParameters,
1424
+ ),
1425
+ );
1207
1426
  }
1208
1427
 
1209
- export function modelParametersFromJSON(
1428
+ export function createPromptModelParametersFromJSON(
1210
1429
  jsonString: string,
1211
- ): SafeParseResult<ModelParameters, SDKValidationError> {
1430
+ ): SafeParseResult<CreatePromptModelParameters, SDKValidationError> {
1212
1431
  return safeParse(
1213
1432
  jsonString,
1214
- (x) => ModelParameters$inboundSchema.parse(JSON.parse(x)),
1215
- `Failed to parse 'ModelParameters' from JSON`,
1433
+ (x) => CreatePromptModelParameters$inboundSchema.parse(JSON.parse(x)),
1434
+ `Failed to parse 'CreatePromptModelParameters' from JSON`,
1216
1435
  );
1217
1436
  }
1218
1437
 
1219
1438
  /** @internal */
1220
- export const Provider$inboundSchema: z.ZodNativeEnum<typeof Provider> = z
1221
- .nativeEnum(Provider);
1439
+ export const CreatePromptProvider$inboundSchema: z.ZodNativeEnum<
1440
+ typeof CreatePromptProvider
1441
+ > = z.nativeEnum(CreatePromptProvider);
1222
1442
 
1223
1443
  /** @internal */
1224
- export const Provider$outboundSchema: z.ZodNativeEnum<typeof Provider> =
1225
- Provider$inboundSchema;
1444
+ export const CreatePromptProvider$outboundSchema: z.ZodNativeEnum<
1445
+ typeof CreatePromptProvider
1446
+ > = CreatePromptProvider$inboundSchema;
1226
1447
 
1227
1448
  /**
1228
1449
  * @internal
1229
1450
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1230
1451
  */
1231
- export namespace Provider$ {
1232
- /** @deprecated use `Provider$inboundSchema` instead. */
1233
- export const inboundSchema = Provider$inboundSchema;
1234
- /** @deprecated use `Provider$outboundSchema` instead. */
1235
- export const outboundSchema = Provider$outboundSchema;
1452
+ export namespace CreatePromptProvider$ {
1453
+ /** @deprecated use `CreatePromptProvider$inboundSchema` instead. */
1454
+ export const inboundSchema = CreatePromptProvider$inboundSchema;
1455
+ /** @deprecated use `CreatePromptProvider$outboundSchema` instead. */
1456
+ export const outboundSchema = CreatePromptProvider$outboundSchema;
1236
1457
  }
1237
1458
 
1238
1459
  /** @internal */
@@ -1811,16 +2032,17 @@ export function createPromptMessagesFromJSON(
1811
2032
  }
1812
2033
 
1813
2034
  /** @internal */
1814
- export const PromptConfig$inboundSchema: z.ZodType<
1815
- PromptConfig,
2035
+ export const CreatePromptPromptConfig$inboundSchema: z.ZodType<
2036
+ CreatePromptPromptConfig,
1816
2037
  z.ZodTypeDef,
1817
2038
  unknown
1818
2039
  > = z.object({
1819
2040
  stream: z.boolean().optional(),
1820
2041
  model: z.string().optional(),
1821
- model_type: ModelType$inboundSchema.optional(),
1822
- model_parameters: z.lazy(() => ModelParameters$inboundSchema).optional(),
1823
- provider: Provider$inboundSchema.optional(),
2042
+ model_type: CreatePromptModelType$inboundSchema.optional(),
2043
+ model_parameters: z.lazy(() => CreatePromptModelParameters$inboundSchema)
2044
+ .optional(),
2045
+ provider: CreatePromptProvider$inboundSchema.optional(),
1824
2046
  version: z.string().optional(),
1825
2047
  messages: z.array(z.lazy(() => CreatePromptMessages$inboundSchema)),
1826
2048
  }).transform((v) => {
@@ -1831,27 +2053,28 @@ export const PromptConfig$inboundSchema: z.ZodType<
1831
2053
  });
1832
2054
 
1833
2055
  /** @internal */
1834
- export type PromptConfig$Outbound = {
2056
+ export type CreatePromptPromptConfig$Outbound = {
1835
2057
  stream?: boolean | undefined;
1836
2058
  model?: string | undefined;
1837
2059
  model_type?: string | undefined;
1838
- model_parameters?: ModelParameters$Outbound | undefined;
2060
+ model_parameters?: CreatePromptModelParameters$Outbound | undefined;
1839
2061
  provider?: string | undefined;
1840
2062
  version?: string | undefined;
1841
2063
  messages: Array<CreatePromptMessages$Outbound>;
1842
2064
  };
1843
2065
 
1844
2066
  /** @internal */
1845
- export const PromptConfig$outboundSchema: z.ZodType<
1846
- PromptConfig$Outbound,
2067
+ export const CreatePromptPromptConfig$outboundSchema: z.ZodType<
2068
+ CreatePromptPromptConfig$Outbound,
1847
2069
  z.ZodTypeDef,
1848
- PromptConfig
2070
+ CreatePromptPromptConfig
1849
2071
  > = z.object({
1850
2072
  stream: z.boolean().optional(),
1851
2073
  model: z.string().optional(),
1852
- modelType: ModelType$outboundSchema.optional(),
1853
- modelParameters: z.lazy(() => ModelParameters$outboundSchema).optional(),
1854
- provider: Provider$outboundSchema.optional(),
2074
+ modelType: CreatePromptModelType$outboundSchema.optional(),
2075
+ modelParameters: z.lazy(() => CreatePromptModelParameters$outboundSchema)
2076
+ .optional(),
2077
+ provider: CreatePromptProvider$outboundSchema.optional(),
1855
2078
  version: z.string().optional(),
1856
2079
  messages: z.array(z.lazy(() => CreatePromptMessages$outboundSchema)),
1857
2080
  }).transform((v) => {
@@ -1865,37 +2088,83 @@ export const PromptConfig$outboundSchema: z.ZodType<
1865
2088
  * @internal
1866
2089
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1867
2090
  */
1868
- export namespace PromptConfig$ {
1869
- /** @deprecated use `PromptConfig$inboundSchema` instead. */
1870
- export const inboundSchema = PromptConfig$inboundSchema;
1871
- /** @deprecated use `PromptConfig$outboundSchema` instead. */
1872
- export const outboundSchema = PromptConfig$outboundSchema;
1873
- /** @deprecated use `PromptConfig$Outbound` instead. */
1874
- export type Outbound = PromptConfig$Outbound;
2091
+ export namespace CreatePromptPromptConfig$ {
2092
+ /** @deprecated use `CreatePromptPromptConfig$inboundSchema` instead. */
2093
+ export const inboundSchema = CreatePromptPromptConfig$inboundSchema;
2094
+ /** @deprecated use `CreatePromptPromptConfig$outboundSchema` instead. */
2095
+ export const outboundSchema = CreatePromptPromptConfig$outboundSchema;
2096
+ /** @deprecated use `CreatePromptPromptConfig$Outbound` instead. */
2097
+ export type Outbound = CreatePromptPromptConfig$Outbound;
1875
2098
  }
1876
2099
 
1877
- export function promptConfigToJSON(promptConfig: PromptConfig): string {
1878
- return JSON.stringify(PromptConfig$outboundSchema.parse(promptConfig));
2100
+ export function createPromptPromptConfigToJSON(
2101
+ createPromptPromptConfig: CreatePromptPromptConfig,
2102
+ ): string {
2103
+ return JSON.stringify(
2104
+ CreatePromptPromptConfig$outboundSchema.parse(createPromptPromptConfig),
2105
+ );
1879
2106
  }
1880
2107
 
1881
- export function promptConfigFromJSON(
2108
+ export function createPromptPromptConfigFromJSON(
1882
2109
  jsonString: string,
1883
- ): SafeParseResult<PromptConfig, SDKValidationError> {
2110
+ ): SafeParseResult<CreatePromptPromptConfig, SDKValidationError> {
1884
2111
  return safeParse(
1885
2112
  jsonString,
1886
- (x) => PromptConfig$inboundSchema.parse(JSON.parse(x)),
1887
- `Failed to parse 'PromptConfig' from JSON`,
2113
+ (x) => CreatePromptPromptConfig$inboundSchema.parse(JSON.parse(x)),
2114
+ `Failed to parse 'CreatePromptPromptConfig' from JSON`,
1888
2115
  );
1889
2116
  }
1890
2117
 
2118
+ /** @internal */
2119
+ export const CreatePromptUseCases$inboundSchema: z.ZodNativeEnum<
2120
+ typeof CreatePromptUseCases
2121
+ > = z.nativeEnum(CreatePromptUseCases);
2122
+
2123
+ /** @internal */
2124
+ export const CreatePromptUseCases$outboundSchema: z.ZodNativeEnum<
2125
+ typeof CreatePromptUseCases
2126
+ > = CreatePromptUseCases$inboundSchema;
2127
+
2128
+ /**
2129
+ * @internal
2130
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2131
+ */
2132
+ export namespace CreatePromptUseCases$ {
2133
+ /** @deprecated use `CreatePromptUseCases$inboundSchema` instead. */
2134
+ export const inboundSchema = CreatePromptUseCases$inboundSchema;
2135
+ /** @deprecated use `CreatePromptUseCases$outboundSchema` instead. */
2136
+ export const outboundSchema = CreatePromptUseCases$outboundSchema;
2137
+ }
2138
+
2139
+ /** @internal */
2140
+ export const CreatePromptLanguage$inboundSchema: z.ZodNativeEnum<
2141
+ typeof CreatePromptLanguage
2142
+ > = z.nativeEnum(CreatePromptLanguage);
2143
+
2144
+ /** @internal */
2145
+ export const CreatePromptLanguage$outboundSchema: z.ZodNativeEnum<
2146
+ typeof CreatePromptLanguage
2147
+ > = CreatePromptLanguage$inboundSchema;
2148
+
2149
+ /**
2150
+ * @internal
2151
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2152
+ */
2153
+ export namespace CreatePromptLanguage$ {
2154
+ /** @deprecated use `CreatePromptLanguage$inboundSchema` instead. */
2155
+ export const inboundSchema = CreatePromptLanguage$inboundSchema;
2156
+ /** @deprecated use `CreatePromptLanguage$outboundSchema` instead. */
2157
+ export const outboundSchema = CreatePromptLanguage$outboundSchema;
2158
+ }
2159
+
1891
2160
  /** @internal */
1892
2161
  export const CreatePromptMetadata$inboundSchema: z.ZodType<
1893
2162
  CreatePromptMetadata,
1894
2163
  z.ZodTypeDef,
1895
2164
  unknown
1896
2165
  > = z.object({
1897
- use_cases: z.array(z.string()).optional(),
1898
- language: z.string().optional(),
2166
+ use_cases: z.array(CreatePromptUseCases$inboundSchema).optional(),
2167
+ language: CreatePromptLanguage$inboundSchema.optional(),
1899
2168
  }).transform((v) => {
1900
2169
  return remap$(v, {
1901
2170
  "use_cases": "useCases",
@@ -1914,8 +2183,8 @@ export const CreatePromptMetadata$outboundSchema: z.ZodType<
1914
2183
  z.ZodTypeDef,
1915
2184
  CreatePromptMetadata
1916
2185
  > = z.object({
1917
- useCases: z.array(z.string()).optional(),
1918
- language: z.string().optional(),
2186
+ useCases: z.array(CreatePromptUseCases$outboundSchema).optional(),
2187
+ language: CreatePromptLanguage$outboundSchema.optional(),
1919
2188
  }).transform((v) => {
1920
2189
  return remap$(v, {
1921
2190
  useCases: "use_cases",
@@ -1953,27 +2222,6 @@ export function createPromptMetadataFromJSON(
1953
2222
  );
1954
2223
  }
1955
2224
 
1956
- /** @internal */
1957
- export const CreatePromptPromptsType$inboundSchema: z.ZodNativeEnum<
1958
- typeof CreatePromptPromptsType
1959
- > = z.nativeEnum(CreatePromptPromptsType);
1960
-
1961
- /** @internal */
1962
- export const CreatePromptPromptsType$outboundSchema: z.ZodNativeEnum<
1963
- typeof CreatePromptPromptsType
1964
- > = CreatePromptPromptsType$inboundSchema;
1965
-
1966
- /**
1967
- * @internal
1968
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1969
- */
1970
- export namespace CreatePromptPromptsType$ {
1971
- /** @deprecated use `CreatePromptPromptsType$inboundSchema` instead. */
1972
- export const inboundSchema = CreatePromptPromptsType$inboundSchema;
1973
- /** @deprecated use `CreatePromptPromptsType$outboundSchema` instead. */
1974
- export const outboundSchema = CreatePromptPromptsType$outboundSchema;
1975
- }
1976
-
1977
2225
  /** @internal */
1978
2226
  export const CreatePromptRequestBody$inboundSchema: z.ZodType<
1979
2227
  CreatePromptRequestBody,
@@ -1982,10 +2230,9 @@ export const CreatePromptRequestBody$inboundSchema: z.ZodType<
1982
2230
  > = z.object({
1983
2231
  display_name: z.string(),
1984
2232
  description: z.nullable(z.string()).optional(),
1985
- prompt_config: z.lazy(() => PromptConfig$inboundSchema).optional(),
2233
+ prompt_config: z.lazy(() => CreatePromptPromptConfig$inboundSchema),
1986
2234
  metadata: z.lazy(() => CreatePromptMetadata$inboundSchema).optional(),
1987
- key: z.string().optional(),
1988
- type: CreatePromptPromptsType$inboundSchema,
2235
+ path: z.string(),
1989
2236
  }).transform((v) => {
1990
2237
  return remap$(v, {
1991
2238
  "display_name": "displayName",
@@ -1997,10 +2244,9 @@ export const CreatePromptRequestBody$inboundSchema: z.ZodType<
1997
2244
  export type CreatePromptRequestBody$Outbound = {
1998
2245
  display_name: string;
1999
2246
  description?: string | null | undefined;
2000
- prompt_config?: PromptConfig$Outbound | undefined;
2247
+ prompt_config: CreatePromptPromptConfig$Outbound;
2001
2248
  metadata?: CreatePromptMetadata$Outbound | undefined;
2002
- key?: string | undefined;
2003
- type: string;
2249
+ path: string;
2004
2250
  };
2005
2251
 
2006
2252
  /** @internal */
@@ -2011,10 +2257,9 @@ export const CreatePromptRequestBody$outboundSchema: z.ZodType<
2011
2257
  > = z.object({
2012
2258
  displayName: z.string(),
2013
2259
  description: z.nullable(z.string()).optional(),
2014
- promptConfig: z.lazy(() => PromptConfig$outboundSchema).optional(),
2260
+ promptConfig: z.lazy(() => CreatePromptPromptConfig$outboundSchema),
2015
2261
  metadata: z.lazy(() => CreatePromptMetadata$outboundSchema).optional(),
2016
- key: z.string().optional(),
2017
- type: CreatePromptPromptsType$outboundSchema,
2262
+ path: z.string(),
2018
2263
  }).transform((v) => {
2019
2264
  return remap$(v, {
2020
2265
  displayName: "display_name",
@@ -2054,244 +2299,276 @@ export function createPromptRequestBodyFromJSON(
2054
2299
  }
2055
2300
 
2056
2301
  /** @internal */
2057
- export const CreatePromptModelType$inboundSchema: z.ZodNativeEnum<
2058
- typeof CreatePromptModelType
2059
- > = z.nativeEnum(CreatePromptModelType);
2302
+ export const CreatePromptPromptsType$inboundSchema: z.ZodNativeEnum<
2303
+ typeof CreatePromptPromptsType
2304
+ > = z.nativeEnum(CreatePromptPromptsType);
2060
2305
 
2061
2306
  /** @internal */
2062
- export const CreatePromptModelType$outboundSchema: z.ZodNativeEnum<
2063
- typeof CreatePromptModelType
2064
- > = CreatePromptModelType$inboundSchema;
2307
+ export const CreatePromptPromptsType$outboundSchema: z.ZodNativeEnum<
2308
+ typeof CreatePromptPromptsType
2309
+ > = CreatePromptPromptsType$inboundSchema;
2065
2310
 
2066
2311
  /**
2067
2312
  * @internal
2068
2313
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2069
2314
  */
2070
- export namespace CreatePromptModelType$ {
2071
- /** @deprecated use `CreatePromptModelType$inboundSchema` instead. */
2072
- export const inboundSchema = CreatePromptModelType$inboundSchema;
2073
- /** @deprecated use `CreatePromptModelType$outboundSchema` instead. */
2074
- export const outboundSchema = CreatePromptModelType$outboundSchema;
2315
+ export namespace CreatePromptPromptsType$ {
2316
+ /** @deprecated use `CreatePromptPromptsType$inboundSchema` instead. */
2317
+ export const inboundSchema = CreatePromptPromptsType$inboundSchema;
2318
+ /** @deprecated use `CreatePromptPromptsType$outboundSchema` instead. */
2319
+ export const outboundSchema = CreatePromptPromptsType$outboundSchema;
2075
2320
  }
2076
2321
 
2077
2322
  /** @internal */
2078
- export const CreatePromptFormat$inboundSchema: z.ZodNativeEnum<
2079
- typeof CreatePromptFormat
2080
- > = z.nativeEnum(CreatePromptFormat);
2323
+ export const CreatePromptPromptsModelType$inboundSchema: z.ZodNativeEnum<
2324
+ typeof CreatePromptPromptsModelType
2325
+ > = z.nativeEnum(CreatePromptPromptsModelType);
2081
2326
 
2082
2327
  /** @internal */
2083
- export const CreatePromptFormat$outboundSchema: z.ZodNativeEnum<
2084
- typeof CreatePromptFormat
2085
- > = CreatePromptFormat$inboundSchema;
2328
+ export const CreatePromptPromptsModelType$outboundSchema: z.ZodNativeEnum<
2329
+ typeof CreatePromptPromptsModelType
2330
+ > = CreatePromptPromptsModelType$inboundSchema;
2086
2331
 
2087
2332
  /**
2088
2333
  * @internal
2089
2334
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2090
2335
  */
2091
- export namespace CreatePromptFormat$ {
2092
- /** @deprecated use `CreatePromptFormat$inboundSchema` instead. */
2093
- export const inboundSchema = CreatePromptFormat$inboundSchema;
2094
- /** @deprecated use `CreatePromptFormat$outboundSchema` instead. */
2095
- export const outboundSchema = CreatePromptFormat$outboundSchema;
2336
+ export namespace CreatePromptPromptsModelType$ {
2337
+ /** @deprecated use `CreatePromptPromptsModelType$inboundSchema` instead. */
2338
+ export const inboundSchema = CreatePromptPromptsModelType$inboundSchema;
2339
+ /** @deprecated use `CreatePromptPromptsModelType$outboundSchema` instead. */
2340
+ export const outboundSchema = CreatePromptPromptsModelType$outboundSchema;
2096
2341
  }
2097
2342
 
2098
2343
  /** @internal */
2099
- export const CreatePromptQuality$inboundSchema: z.ZodNativeEnum<
2100
- typeof CreatePromptQuality
2101
- > = z.nativeEnum(CreatePromptQuality);
2344
+ export const CreatePromptPromptsFormat$inboundSchema: z.ZodNativeEnum<
2345
+ typeof CreatePromptPromptsFormat
2346
+ > = z.nativeEnum(CreatePromptPromptsFormat);
2102
2347
 
2103
2348
  /** @internal */
2104
- export const CreatePromptQuality$outboundSchema: z.ZodNativeEnum<
2105
- typeof CreatePromptQuality
2106
- > = CreatePromptQuality$inboundSchema;
2349
+ export const CreatePromptPromptsFormat$outboundSchema: z.ZodNativeEnum<
2350
+ typeof CreatePromptPromptsFormat
2351
+ > = CreatePromptPromptsFormat$inboundSchema;
2107
2352
 
2108
2353
  /**
2109
2354
  * @internal
2110
2355
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2111
2356
  */
2112
- export namespace CreatePromptQuality$ {
2113
- /** @deprecated use `CreatePromptQuality$inboundSchema` instead. */
2114
- export const inboundSchema = CreatePromptQuality$inboundSchema;
2115
- /** @deprecated use `CreatePromptQuality$outboundSchema` instead. */
2116
- export const outboundSchema = CreatePromptQuality$outboundSchema;
2357
+ export namespace CreatePromptPromptsFormat$ {
2358
+ /** @deprecated use `CreatePromptPromptsFormat$inboundSchema` instead. */
2359
+ export const inboundSchema = CreatePromptPromptsFormat$inboundSchema;
2360
+ /** @deprecated use `CreatePromptPromptsFormat$outboundSchema` instead. */
2361
+ export const outboundSchema = CreatePromptPromptsFormat$outboundSchema;
2117
2362
  }
2118
2363
 
2119
2364
  /** @internal */
2120
- export const CreatePromptResponseFormatPromptsResponseType$inboundSchema:
2121
- z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponseType> = z
2122
- .nativeEnum(CreatePromptResponseFormatPromptsResponseType);
2365
+ export const CreatePromptPromptsQuality$inboundSchema: z.ZodNativeEnum<
2366
+ typeof CreatePromptPromptsQuality
2367
+ > = z.nativeEnum(CreatePromptPromptsQuality);
2123
2368
 
2124
2369
  /** @internal */
2125
- export const CreatePromptResponseFormatPromptsResponseType$outboundSchema:
2126
- z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponseType> =
2127
- CreatePromptResponseFormatPromptsResponseType$inboundSchema;
2370
+ export const CreatePromptPromptsQuality$outboundSchema: z.ZodNativeEnum<
2371
+ typeof CreatePromptPromptsQuality
2372
+ > = CreatePromptPromptsQuality$inboundSchema;
2128
2373
 
2129
2374
  /**
2130
2375
  * @internal
2131
2376
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2132
2377
  */
2133
- export namespace CreatePromptResponseFormatPromptsResponseType$ {
2134
- /** @deprecated use `CreatePromptResponseFormatPromptsResponseType$inboundSchema` instead. */
2378
+ export namespace CreatePromptPromptsQuality$ {
2379
+ /** @deprecated use `CreatePromptPromptsQuality$inboundSchema` instead. */
2380
+ export const inboundSchema = CreatePromptPromptsQuality$inboundSchema;
2381
+ /** @deprecated use `CreatePromptPromptsQuality$outboundSchema` instead. */
2382
+ export const outboundSchema = CreatePromptPromptsQuality$outboundSchema;
2383
+ }
2384
+
2385
+ /** @internal */
2386
+ export const CreatePromptResponseFormatPromptsResponse200Type$inboundSchema:
2387
+ z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponse200Type> = z
2388
+ .nativeEnum(CreatePromptResponseFormatPromptsResponse200Type);
2389
+
2390
+ /** @internal */
2391
+ export const CreatePromptResponseFormatPromptsResponse200Type$outboundSchema:
2392
+ z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponse200Type> =
2393
+ CreatePromptResponseFormatPromptsResponse200Type$inboundSchema;
2394
+
2395
+ /**
2396
+ * @internal
2397
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2398
+ */
2399
+ export namespace CreatePromptResponseFormatPromptsResponse200Type$ {
2400
+ /** @deprecated use `CreatePromptResponseFormatPromptsResponse200Type$inboundSchema` instead. */
2135
2401
  export const inboundSchema =
2136
- CreatePromptResponseFormatPromptsResponseType$inboundSchema;
2137
- /** @deprecated use `CreatePromptResponseFormatPromptsResponseType$outboundSchema` instead. */
2402
+ CreatePromptResponseFormatPromptsResponse200Type$inboundSchema;
2403
+ /** @deprecated use `CreatePromptResponseFormatPromptsResponse200Type$outboundSchema` instead. */
2138
2404
  export const outboundSchema =
2139
- CreatePromptResponseFormatPromptsResponseType$outboundSchema;
2405
+ CreatePromptResponseFormatPromptsResponse200Type$outboundSchema;
2140
2406
  }
2141
2407
 
2142
2408
  /** @internal */
2143
- export const CreatePromptResponseFormat2$inboundSchema: z.ZodType<
2144
- CreatePromptResponseFormat2,
2409
+ export const CreatePromptResponseFormatPrompts2$inboundSchema: z.ZodType<
2410
+ CreatePromptResponseFormatPrompts2,
2145
2411
  z.ZodTypeDef,
2146
2412
  unknown
2147
2413
  > = z.object({
2148
- type: CreatePromptResponseFormatPromptsResponseType$inboundSchema,
2414
+ type: CreatePromptResponseFormatPromptsResponse200Type$inboundSchema,
2149
2415
  });
2150
2416
 
2151
2417
  /** @internal */
2152
- export type CreatePromptResponseFormat2$Outbound = {
2418
+ export type CreatePromptResponseFormatPrompts2$Outbound = {
2153
2419
  type: string;
2154
2420
  };
2155
2421
 
2156
2422
  /** @internal */
2157
- export const CreatePromptResponseFormat2$outboundSchema: z.ZodType<
2158
- CreatePromptResponseFormat2$Outbound,
2423
+ export const CreatePromptResponseFormatPrompts2$outboundSchema: z.ZodType<
2424
+ CreatePromptResponseFormatPrompts2$Outbound,
2159
2425
  z.ZodTypeDef,
2160
- CreatePromptResponseFormat2
2426
+ CreatePromptResponseFormatPrompts2
2161
2427
  > = z.object({
2162
- type: CreatePromptResponseFormatPromptsResponseType$outboundSchema,
2428
+ type: CreatePromptResponseFormatPromptsResponse200Type$outboundSchema,
2163
2429
  });
2164
2430
 
2165
2431
  /**
2166
2432
  * @internal
2167
2433
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2168
2434
  */
2169
- export namespace CreatePromptResponseFormat2$ {
2170
- /** @deprecated use `CreatePromptResponseFormat2$inboundSchema` instead. */
2171
- export const inboundSchema = CreatePromptResponseFormat2$inboundSchema;
2172
- /** @deprecated use `CreatePromptResponseFormat2$outboundSchema` instead. */
2173
- export const outboundSchema = CreatePromptResponseFormat2$outboundSchema;
2174
- /** @deprecated use `CreatePromptResponseFormat2$Outbound` instead. */
2175
- export type Outbound = CreatePromptResponseFormat2$Outbound;
2435
+ export namespace CreatePromptResponseFormatPrompts2$ {
2436
+ /** @deprecated use `CreatePromptResponseFormatPrompts2$inboundSchema` instead. */
2437
+ export const inboundSchema = CreatePromptResponseFormatPrompts2$inboundSchema;
2438
+ /** @deprecated use `CreatePromptResponseFormatPrompts2$outboundSchema` instead. */
2439
+ export const outboundSchema =
2440
+ CreatePromptResponseFormatPrompts2$outboundSchema;
2441
+ /** @deprecated use `CreatePromptResponseFormatPrompts2$Outbound` instead. */
2442
+ export type Outbound = CreatePromptResponseFormatPrompts2$Outbound;
2176
2443
  }
2177
2444
 
2178
- export function createPromptResponseFormat2ToJSON(
2179
- createPromptResponseFormat2: CreatePromptResponseFormat2,
2445
+ export function createPromptResponseFormatPrompts2ToJSON(
2446
+ createPromptResponseFormatPrompts2: CreatePromptResponseFormatPrompts2,
2180
2447
  ): string {
2181
2448
  return JSON.stringify(
2182
- CreatePromptResponseFormat2$outboundSchema.parse(
2183
- createPromptResponseFormat2,
2449
+ CreatePromptResponseFormatPrompts2$outboundSchema.parse(
2450
+ createPromptResponseFormatPrompts2,
2184
2451
  ),
2185
2452
  );
2186
2453
  }
2187
2454
 
2188
- export function createPromptResponseFormat2FromJSON(
2455
+ export function createPromptResponseFormatPrompts2FromJSON(
2189
2456
  jsonString: string,
2190
- ): SafeParseResult<CreatePromptResponseFormat2, SDKValidationError> {
2457
+ ): SafeParseResult<CreatePromptResponseFormatPrompts2, SDKValidationError> {
2191
2458
  return safeParse(
2192
2459
  jsonString,
2193
- (x) => CreatePromptResponseFormat2$inboundSchema.parse(JSON.parse(x)),
2194
- `Failed to parse 'CreatePromptResponseFormat2' from JSON`,
2460
+ (x) =>
2461
+ CreatePromptResponseFormatPrompts2$inboundSchema.parse(JSON.parse(x)),
2462
+ `Failed to parse 'CreatePromptResponseFormatPrompts2' from JSON`,
2195
2463
  );
2196
2464
  }
2197
2465
 
2198
2466
  /** @internal */
2199
- export const CreatePromptResponseFormatPromptsType$inboundSchema:
2200
- z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsType> = z.nativeEnum(
2201
- CreatePromptResponseFormatPromptsType,
2202
- );
2467
+ export const CreatePromptResponseFormatPromptsResponseType$inboundSchema:
2468
+ z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponseType> = z
2469
+ .nativeEnum(CreatePromptResponseFormatPromptsResponseType);
2203
2470
 
2204
2471
  /** @internal */
2205
- export const CreatePromptResponseFormatPromptsType$outboundSchema:
2206
- z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsType> =
2207
- CreatePromptResponseFormatPromptsType$inboundSchema;
2472
+ export const CreatePromptResponseFormatPromptsResponseType$outboundSchema:
2473
+ z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponseType> =
2474
+ CreatePromptResponseFormatPromptsResponseType$inboundSchema;
2208
2475
 
2209
2476
  /**
2210
2477
  * @internal
2211
2478
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2212
2479
  */
2213
- export namespace CreatePromptResponseFormatPromptsType$ {
2214
- /** @deprecated use `CreatePromptResponseFormatPromptsType$inboundSchema` instead. */
2480
+ export namespace CreatePromptResponseFormatPromptsResponseType$ {
2481
+ /** @deprecated use `CreatePromptResponseFormatPromptsResponseType$inboundSchema` instead. */
2215
2482
  export const inboundSchema =
2216
- CreatePromptResponseFormatPromptsType$inboundSchema;
2217
- /** @deprecated use `CreatePromptResponseFormatPromptsType$outboundSchema` instead. */
2483
+ CreatePromptResponseFormatPromptsResponseType$inboundSchema;
2484
+ /** @deprecated use `CreatePromptResponseFormatPromptsResponseType$outboundSchema` instead. */
2218
2485
  export const outboundSchema =
2219
- CreatePromptResponseFormatPromptsType$outboundSchema;
2486
+ CreatePromptResponseFormatPromptsResponseType$outboundSchema;
2220
2487
  }
2221
2488
 
2222
2489
  /** @internal */
2223
- export const CreatePromptResponseFormatJsonSchema$inboundSchema: z.ZodType<
2224
- CreatePromptResponseFormatJsonSchema,
2225
- z.ZodTypeDef,
2226
- unknown
2227
- > = z.object({
2228
- name: z.string(),
2229
- strict: z.boolean(),
2230
- schema: z.record(z.any()),
2231
- });
2490
+ export const CreatePromptResponseFormatPromptsJsonSchema$inboundSchema:
2491
+ z.ZodType<
2492
+ CreatePromptResponseFormatPromptsJsonSchema,
2493
+ z.ZodTypeDef,
2494
+ unknown
2495
+ > = z.object({
2496
+ name: z.string(),
2497
+ strict: z.boolean(),
2498
+ schema: z.record(z.any()),
2499
+ });
2232
2500
 
2233
2501
  /** @internal */
2234
- export type CreatePromptResponseFormatJsonSchema$Outbound = {
2502
+ export type CreatePromptResponseFormatPromptsJsonSchema$Outbound = {
2235
2503
  name: string;
2236
2504
  strict: boolean;
2237
2505
  schema: { [k: string]: any };
2238
2506
  };
2239
2507
 
2240
2508
  /** @internal */
2241
- export const CreatePromptResponseFormatJsonSchema$outboundSchema: z.ZodType<
2242
- CreatePromptResponseFormatJsonSchema$Outbound,
2243
- z.ZodTypeDef,
2244
- CreatePromptResponseFormatJsonSchema
2245
- > = z.object({
2246
- name: z.string(),
2247
- strict: z.boolean(),
2248
- schema: z.record(z.any()),
2249
- });
2509
+ export const CreatePromptResponseFormatPromptsJsonSchema$outboundSchema:
2510
+ z.ZodType<
2511
+ CreatePromptResponseFormatPromptsJsonSchema$Outbound,
2512
+ z.ZodTypeDef,
2513
+ CreatePromptResponseFormatPromptsJsonSchema
2514
+ > = z.object({
2515
+ name: z.string(),
2516
+ strict: z.boolean(),
2517
+ schema: z.record(z.any()),
2518
+ });
2250
2519
 
2251
2520
  /**
2252
2521
  * @internal
2253
2522
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2254
2523
  */
2255
- export namespace CreatePromptResponseFormatJsonSchema$ {
2256
- /** @deprecated use `CreatePromptResponseFormatJsonSchema$inboundSchema` instead. */
2524
+ export namespace CreatePromptResponseFormatPromptsJsonSchema$ {
2525
+ /** @deprecated use `CreatePromptResponseFormatPromptsJsonSchema$inboundSchema` instead. */
2257
2526
  export const inboundSchema =
2258
- CreatePromptResponseFormatJsonSchema$inboundSchema;
2259
- /** @deprecated use `CreatePromptResponseFormatJsonSchema$outboundSchema` instead. */
2527
+ CreatePromptResponseFormatPromptsJsonSchema$inboundSchema;
2528
+ /** @deprecated use `CreatePromptResponseFormatPromptsJsonSchema$outboundSchema` instead. */
2260
2529
  export const outboundSchema =
2261
- CreatePromptResponseFormatJsonSchema$outboundSchema;
2262
- /** @deprecated use `CreatePromptResponseFormatJsonSchema$Outbound` instead. */
2263
- export type Outbound = CreatePromptResponseFormatJsonSchema$Outbound;
2530
+ CreatePromptResponseFormatPromptsJsonSchema$outboundSchema;
2531
+ /** @deprecated use `CreatePromptResponseFormatPromptsJsonSchema$Outbound` instead. */
2532
+ export type Outbound = CreatePromptResponseFormatPromptsJsonSchema$Outbound;
2264
2533
  }
2265
-
2266
- export function createPromptResponseFormatJsonSchemaToJSON(
2267
- createPromptResponseFormatJsonSchema: CreatePromptResponseFormatJsonSchema,
2534
+
2535
+ export function createPromptResponseFormatPromptsJsonSchemaToJSON(
2536
+ createPromptResponseFormatPromptsJsonSchema:
2537
+ CreatePromptResponseFormatPromptsJsonSchema,
2268
2538
  ): string {
2269
2539
  return JSON.stringify(
2270
- CreatePromptResponseFormatJsonSchema$outboundSchema.parse(
2271
- createPromptResponseFormatJsonSchema,
2540
+ CreatePromptResponseFormatPromptsJsonSchema$outboundSchema.parse(
2541
+ createPromptResponseFormatPromptsJsonSchema,
2272
2542
  ),
2273
2543
  );
2274
2544
  }
2275
2545
 
2276
- export function createPromptResponseFormatJsonSchemaFromJSON(
2546
+ export function createPromptResponseFormatPromptsJsonSchemaFromJSON(
2277
2547
  jsonString: string,
2278
- ): SafeParseResult<CreatePromptResponseFormatJsonSchema, SDKValidationError> {
2548
+ ): SafeParseResult<
2549
+ CreatePromptResponseFormatPromptsJsonSchema,
2550
+ SDKValidationError
2551
+ > {
2279
2552
  return safeParse(
2280
2553
  jsonString,
2281
2554
  (x) =>
2282
- CreatePromptResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
2283
- `Failed to parse 'CreatePromptResponseFormatJsonSchema' from JSON`,
2555
+ CreatePromptResponseFormatPromptsJsonSchema$inboundSchema.parse(
2556
+ JSON.parse(x),
2557
+ ),
2558
+ `Failed to parse 'CreatePromptResponseFormatPromptsJsonSchema' from JSON`,
2284
2559
  );
2285
2560
  }
2286
2561
 
2287
2562
  /** @internal */
2288
- export const CreatePromptResponseFormat1$inboundSchema: z.ZodType<
2289
- CreatePromptResponseFormat1,
2563
+ export const CreatePromptResponseFormatPrompts1$inboundSchema: z.ZodType<
2564
+ CreatePromptResponseFormatPrompts1,
2290
2565
  z.ZodTypeDef,
2291
2566
  unknown
2292
2567
  > = z.object({
2293
- type: CreatePromptResponseFormatPromptsType$inboundSchema,
2294
- json_schema: z.lazy(() => CreatePromptResponseFormatJsonSchema$inboundSchema),
2568
+ type: CreatePromptResponseFormatPromptsResponseType$inboundSchema,
2569
+ json_schema: z.lazy(() =>
2570
+ CreatePromptResponseFormatPromptsJsonSchema$inboundSchema
2571
+ ),
2295
2572
  }).transform((v) => {
2296
2573
  return remap$(v, {
2297
2574
  "json_schema": "jsonSchema",
@@ -2299,19 +2576,21 @@ export const CreatePromptResponseFormat1$inboundSchema: z.ZodType<
2299
2576
  });
2300
2577
 
2301
2578
  /** @internal */
2302
- export type CreatePromptResponseFormat1$Outbound = {
2579
+ export type CreatePromptResponseFormatPrompts1$Outbound = {
2303
2580
  type: string;
2304
- json_schema: CreatePromptResponseFormatJsonSchema$Outbound;
2581
+ json_schema: CreatePromptResponseFormatPromptsJsonSchema$Outbound;
2305
2582
  };
2306
2583
 
2307
2584
  /** @internal */
2308
- export const CreatePromptResponseFormat1$outboundSchema: z.ZodType<
2309
- CreatePromptResponseFormat1$Outbound,
2585
+ export const CreatePromptResponseFormatPrompts1$outboundSchema: z.ZodType<
2586
+ CreatePromptResponseFormatPrompts1$Outbound,
2310
2587
  z.ZodTypeDef,
2311
- CreatePromptResponseFormat1
2588
+ CreatePromptResponseFormatPrompts1
2312
2589
  > = z.object({
2313
- type: CreatePromptResponseFormatPromptsType$outboundSchema,
2314
- jsonSchema: z.lazy(() => CreatePromptResponseFormatJsonSchema$outboundSchema),
2590
+ type: CreatePromptResponseFormatPromptsResponseType$outboundSchema,
2591
+ jsonSchema: z.lazy(() =>
2592
+ CreatePromptResponseFormatPromptsJsonSchema$outboundSchema
2593
+ ),
2315
2594
  }).transform((v) => {
2316
2595
  return remap$(v, {
2317
2596
  jsonSchema: "json_schema",
@@ -2322,136 +2601,166 @@ export const CreatePromptResponseFormat1$outboundSchema: z.ZodType<
2322
2601
  * @internal
2323
2602
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2324
2603
  */
2325
- export namespace CreatePromptResponseFormat1$ {
2326
- /** @deprecated use `CreatePromptResponseFormat1$inboundSchema` instead. */
2327
- export const inboundSchema = CreatePromptResponseFormat1$inboundSchema;
2328
- /** @deprecated use `CreatePromptResponseFormat1$outboundSchema` instead. */
2329
- export const outboundSchema = CreatePromptResponseFormat1$outboundSchema;
2330
- /** @deprecated use `CreatePromptResponseFormat1$Outbound` instead. */
2331
- export type Outbound = CreatePromptResponseFormat1$Outbound;
2604
+ export namespace CreatePromptResponseFormatPrompts1$ {
2605
+ /** @deprecated use `CreatePromptResponseFormatPrompts1$inboundSchema` instead. */
2606
+ export const inboundSchema = CreatePromptResponseFormatPrompts1$inboundSchema;
2607
+ /** @deprecated use `CreatePromptResponseFormatPrompts1$outboundSchema` instead. */
2608
+ export const outboundSchema =
2609
+ CreatePromptResponseFormatPrompts1$outboundSchema;
2610
+ /** @deprecated use `CreatePromptResponseFormatPrompts1$Outbound` instead. */
2611
+ export type Outbound = CreatePromptResponseFormatPrompts1$Outbound;
2332
2612
  }
2333
2613
 
2334
- export function createPromptResponseFormat1ToJSON(
2335
- createPromptResponseFormat1: CreatePromptResponseFormat1,
2614
+ export function createPromptResponseFormatPrompts1ToJSON(
2615
+ createPromptResponseFormatPrompts1: CreatePromptResponseFormatPrompts1,
2336
2616
  ): string {
2337
2617
  return JSON.stringify(
2338
- CreatePromptResponseFormat1$outboundSchema.parse(
2339
- createPromptResponseFormat1,
2618
+ CreatePromptResponseFormatPrompts1$outboundSchema.parse(
2619
+ createPromptResponseFormatPrompts1,
2340
2620
  ),
2341
2621
  );
2342
2622
  }
2343
2623
 
2344
- export function createPromptResponseFormat1FromJSON(
2624
+ export function createPromptResponseFormatPrompts1FromJSON(
2345
2625
  jsonString: string,
2346
- ): SafeParseResult<CreatePromptResponseFormat1, SDKValidationError> {
2626
+ ): SafeParseResult<CreatePromptResponseFormatPrompts1, SDKValidationError> {
2347
2627
  return safeParse(
2348
2628
  jsonString,
2349
- (x) => CreatePromptResponseFormat1$inboundSchema.parse(JSON.parse(x)),
2350
- `Failed to parse 'CreatePromptResponseFormat1' from JSON`,
2629
+ (x) =>
2630
+ CreatePromptResponseFormatPrompts1$inboundSchema.parse(JSON.parse(x)),
2631
+ `Failed to parse 'CreatePromptResponseFormatPrompts1' from JSON`,
2351
2632
  );
2352
2633
  }
2353
2634
 
2354
2635
  /** @internal */
2355
- export const CreatePromptResponseFormat$inboundSchema: z.ZodType<
2356
- CreatePromptResponseFormat,
2636
+ export const CreatePromptPromptsResponseFormat$inboundSchema: z.ZodType<
2637
+ CreatePromptPromptsResponseFormat,
2357
2638
  z.ZodTypeDef,
2358
2639
  unknown
2359
2640
  > = z.union([
2360
- z.lazy(() => CreatePromptResponseFormat2$inboundSchema),
2361
- z.lazy(() => CreatePromptResponseFormat1$inboundSchema),
2641
+ z.lazy(() => CreatePromptResponseFormatPrompts2$inboundSchema),
2642
+ z.lazy(() => CreatePromptResponseFormatPrompts1$inboundSchema),
2362
2643
  ]);
2363
2644
 
2364
2645
  /** @internal */
2365
- export type CreatePromptResponseFormat$Outbound =
2366
- | CreatePromptResponseFormat2$Outbound
2367
- | CreatePromptResponseFormat1$Outbound;
2646
+ export type CreatePromptPromptsResponseFormat$Outbound =
2647
+ | CreatePromptResponseFormatPrompts2$Outbound
2648
+ | CreatePromptResponseFormatPrompts1$Outbound;
2368
2649
 
2369
2650
  /** @internal */
2370
- export const CreatePromptResponseFormat$outboundSchema: z.ZodType<
2371
- CreatePromptResponseFormat$Outbound,
2651
+ export const CreatePromptPromptsResponseFormat$outboundSchema: z.ZodType<
2652
+ CreatePromptPromptsResponseFormat$Outbound,
2372
2653
  z.ZodTypeDef,
2373
- CreatePromptResponseFormat
2654
+ CreatePromptPromptsResponseFormat
2374
2655
  > = z.union([
2375
- z.lazy(() => CreatePromptResponseFormat2$outboundSchema),
2376
- z.lazy(() => CreatePromptResponseFormat1$outboundSchema),
2656
+ z.lazy(() => CreatePromptResponseFormatPrompts2$outboundSchema),
2657
+ z.lazy(() => CreatePromptResponseFormatPrompts1$outboundSchema),
2377
2658
  ]);
2378
2659
 
2379
2660
  /**
2380
2661
  * @internal
2381
2662
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2382
2663
  */
2383
- export namespace CreatePromptResponseFormat$ {
2384
- /** @deprecated use `CreatePromptResponseFormat$inboundSchema` instead. */
2385
- export const inboundSchema = CreatePromptResponseFormat$inboundSchema;
2386
- /** @deprecated use `CreatePromptResponseFormat$outboundSchema` instead. */
2387
- export const outboundSchema = CreatePromptResponseFormat$outboundSchema;
2388
- /** @deprecated use `CreatePromptResponseFormat$Outbound` instead. */
2389
- export type Outbound = CreatePromptResponseFormat$Outbound;
2664
+ export namespace CreatePromptPromptsResponseFormat$ {
2665
+ /** @deprecated use `CreatePromptPromptsResponseFormat$inboundSchema` instead. */
2666
+ export const inboundSchema = CreatePromptPromptsResponseFormat$inboundSchema;
2667
+ /** @deprecated use `CreatePromptPromptsResponseFormat$outboundSchema` instead. */
2668
+ export const outboundSchema =
2669
+ CreatePromptPromptsResponseFormat$outboundSchema;
2670
+ /** @deprecated use `CreatePromptPromptsResponseFormat$Outbound` instead. */
2671
+ export type Outbound = CreatePromptPromptsResponseFormat$Outbound;
2390
2672
  }
2391
2673
 
2392
- export function createPromptResponseFormatToJSON(
2393
- createPromptResponseFormat: CreatePromptResponseFormat,
2674
+ export function createPromptPromptsResponseFormatToJSON(
2675
+ createPromptPromptsResponseFormat: CreatePromptPromptsResponseFormat,
2394
2676
  ): string {
2395
2677
  return JSON.stringify(
2396
- CreatePromptResponseFormat$outboundSchema.parse(createPromptResponseFormat),
2678
+ CreatePromptPromptsResponseFormat$outboundSchema.parse(
2679
+ createPromptPromptsResponseFormat,
2680
+ ),
2397
2681
  );
2398
2682
  }
2399
2683
 
2400
- export function createPromptResponseFormatFromJSON(
2684
+ export function createPromptPromptsResponseFormatFromJSON(
2401
2685
  jsonString: string,
2402
- ): SafeParseResult<CreatePromptResponseFormat, SDKValidationError> {
2686
+ ): SafeParseResult<CreatePromptPromptsResponseFormat, SDKValidationError> {
2403
2687
  return safeParse(
2404
2688
  jsonString,
2405
- (x) => CreatePromptResponseFormat$inboundSchema.parse(JSON.parse(x)),
2406
- `Failed to parse 'CreatePromptResponseFormat' from JSON`,
2689
+ (x) => CreatePromptPromptsResponseFormat$inboundSchema.parse(JSON.parse(x)),
2690
+ `Failed to parse 'CreatePromptPromptsResponseFormat' from JSON`,
2407
2691
  );
2408
2692
  }
2409
2693
 
2410
2694
  /** @internal */
2411
- export const CreatePromptPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
2412
- typeof CreatePromptPhotoRealVersion
2413
- > = z.nativeEnum(CreatePromptPhotoRealVersion);
2695
+ export const CreatePromptPromptsPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
2696
+ typeof CreatePromptPromptsPhotoRealVersion
2697
+ > = z.nativeEnum(CreatePromptPromptsPhotoRealVersion);
2414
2698
 
2415
2699
  /** @internal */
2416
- export const CreatePromptPhotoRealVersion$outboundSchema: z.ZodNativeEnum<
2417
- typeof CreatePromptPhotoRealVersion
2418
- > = CreatePromptPhotoRealVersion$inboundSchema;
2700
+ export const CreatePromptPromptsPhotoRealVersion$outboundSchema:
2701
+ z.ZodNativeEnum<typeof CreatePromptPromptsPhotoRealVersion> =
2702
+ CreatePromptPromptsPhotoRealVersion$inboundSchema;
2419
2703
 
2420
2704
  /**
2421
2705
  * @internal
2422
2706
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2423
2707
  */
2424
- export namespace CreatePromptPhotoRealVersion$ {
2425
- /** @deprecated use `CreatePromptPhotoRealVersion$inboundSchema` instead. */
2426
- export const inboundSchema = CreatePromptPhotoRealVersion$inboundSchema;
2427
- /** @deprecated use `CreatePromptPhotoRealVersion$outboundSchema` instead. */
2428
- export const outboundSchema = CreatePromptPhotoRealVersion$outboundSchema;
2708
+ export namespace CreatePromptPromptsPhotoRealVersion$ {
2709
+ /** @deprecated use `CreatePromptPromptsPhotoRealVersion$inboundSchema` instead. */
2710
+ export const inboundSchema =
2711
+ CreatePromptPromptsPhotoRealVersion$inboundSchema;
2712
+ /** @deprecated use `CreatePromptPromptsPhotoRealVersion$outboundSchema` instead. */
2713
+ export const outboundSchema =
2714
+ CreatePromptPromptsPhotoRealVersion$outboundSchema;
2429
2715
  }
2430
2716
 
2431
2717
  /** @internal */
2432
- export const CreatePromptEncodingFormat$inboundSchema: z.ZodNativeEnum<
2433
- typeof CreatePromptEncodingFormat
2434
- > = z.nativeEnum(CreatePromptEncodingFormat);
2718
+ export const CreatePromptPromptsEncodingFormat$inboundSchema: z.ZodNativeEnum<
2719
+ typeof CreatePromptPromptsEncodingFormat
2720
+ > = z.nativeEnum(CreatePromptPromptsEncodingFormat);
2435
2721
 
2436
2722
  /** @internal */
2437
- export const CreatePromptEncodingFormat$outboundSchema: z.ZodNativeEnum<
2438
- typeof CreatePromptEncodingFormat
2439
- > = CreatePromptEncodingFormat$inboundSchema;
2723
+ export const CreatePromptPromptsEncodingFormat$outboundSchema: z.ZodNativeEnum<
2724
+ typeof CreatePromptPromptsEncodingFormat
2725
+ > = CreatePromptPromptsEncodingFormat$inboundSchema;
2440
2726
 
2441
2727
  /**
2442
2728
  * @internal
2443
2729
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2444
2730
  */
2445
- export namespace CreatePromptEncodingFormat$ {
2446
- /** @deprecated use `CreatePromptEncodingFormat$inboundSchema` instead. */
2447
- export const inboundSchema = CreatePromptEncodingFormat$inboundSchema;
2448
- /** @deprecated use `CreatePromptEncodingFormat$outboundSchema` instead. */
2449
- export const outboundSchema = CreatePromptEncodingFormat$outboundSchema;
2731
+ export namespace CreatePromptPromptsEncodingFormat$ {
2732
+ /** @deprecated use `CreatePromptPromptsEncodingFormat$inboundSchema` instead. */
2733
+ export const inboundSchema = CreatePromptPromptsEncodingFormat$inboundSchema;
2734
+ /** @deprecated use `CreatePromptPromptsEncodingFormat$outboundSchema` instead. */
2735
+ export const outboundSchema =
2736
+ CreatePromptPromptsEncodingFormat$outboundSchema;
2450
2737
  }
2451
2738
 
2452
2739
  /** @internal */
2453
- export const CreatePromptModelParameters$inboundSchema: z.ZodType<
2454
- CreatePromptModelParameters,
2740
+ export const CreatePromptPromptsReasoningEffort$inboundSchema: z.ZodNativeEnum<
2741
+ typeof CreatePromptPromptsReasoningEffort
2742
+ > = z.nativeEnum(CreatePromptPromptsReasoningEffort);
2743
+
2744
+ /** @internal */
2745
+ export const CreatePromptPromptsReasoningEffort$outboundSchema: z.ZodNativeEnum<
2746
+ typeof CreatePromptPromptsReasoningEffort
2747
+ > = CreatePromptPromptsReasoningEffort$inboundSchema;
2748
+
2749
+ /**
2750
+ * @internal
2751
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2752
+ */
2753
+ export namespace CreatePromptPromptsReasoningEffort$ {
2754
+ /** @deprecated use `CreatePromptPromptsReasoningEffort$inboundSchema` instead. */
2755
+ export const inboundSchema = CreatePromptPromptsReasoningEffort$inboundSchema;
2756
+ /** @deprecated use `CreatePromptPromptsReasoningEffort$outboundSchema` instead. */
2757
+ export const outboundSchema =
2758
+ CreatePromptPromptsReasoningEffort$outboundSchema;
2759
+ }
2760
+
2761
+ /** @internal */
2762
+ export const CreatePromptPromptsModelParameters$inboundSchema: z.ZodType<
2763
+ CreatePromptPromptsModelParameters,
2455
2764
  z.ZodTypeDef,
2456
2765
  unknown
2457
2766
  > = z.object({
@@ -2463,18 +2772,20 @@ export const CreatePromptModelParameters$inboundSchema: z.ZodType<
2463
2772
  presencePenalty: z.number().optional(),
2464
2773
  numImages: z.number().optional(),
2465
2774
  seed: z.number().optional(),
2466
- format: CreatePromptFormat$inboundSchema.optional(),
2775
+ format: CreatePromptPromptsFormat$inboundSchema.optional(),
2467
2776
  dimensions: z.string().optional(),
2468
- quality: CreatePromptQuality$inboundSchema.optional(),
2777
+ quality: CreatePromptPromptsQuality$inboundSchema.optional(),
2469
2778
  style: z.string().optional(),
2470
2779
  responseFormat: z.nullable(
2471
2780
  z.union([
2472
- z.lazy(() => CreatePromptResponseFormat2$inboundSchema),
2473
- z.lazy(() => CreatePromptResponseFormat1$inboundSchema),
2781
+ z.lazy(() => CreatePromptResponseFormatPrompts2$inboundSchema),
2782
+ z.lazy(() => CreatePromptResponseFormatPrompts1$inboundSchema),
2474
2783
  ]),
2475
2784
  ).optional(),
2476
- photoRealVersion: CreatePromptPhotoRealVersion$inboundSchema.optional(),
2477
- encoding_format: CreatePromptEncodingFormat$inboundSchema.optional(),
2785
+ photoRealVersion: CreatePromptPromptsPhotoRealVersion$inboundSchema
2786
+ .optional(),
2787
+ encoding_format: CreatePromptPromptsEncodingFormat$inboundSchema.optional(),
2788
+ reasoningEffort: CreatePromptPromptsReasoningEffort$inboundSchema.optional(),
2478
2789
  }).transform((v) => {
2479
2790
  return remap$(v, {
2480
2791
  "encoding_format": "encodingFormat",
@@ -2482,7 +2793,7 @@ export const CreatePromptModelParameters$inboundSchema: z.ZodType<
2482
2793
  });
2483
2794
 
2484
2795
  /** @internal */
2485
- export type CreatePromptModelParameters$Outbound = {
2796
+ export type CreatePromptPromptsModelParameters$Outbound = {
2486
2797
  temperature?: number | undefined;
2487
2798
  maxTokens?: number | undefined;
2488
2799
  topK?: number | undefined;
@@ -2496,19 +2807,20 @@ export type CreatePromptModelParameters$Outbound = {
2496
2807
  quality?: string | undefined;
2497
2808
  style?: string | undefined;
2498
2809
  responseFormat?:
2499
- | CreatePromptResponseFormat2$Outbound
2500
- | CreatePromptResponseFormat1$Outbound
2810
+ | CreatePromptResponseFormatPrompts2$Outbound
2811
+ | CreatePromptResponseFormatPrompts1$Outbound
2501
2812
  | null
2502
2813
  | undefined;
2503
2814
  photoRealVersion?: string | undefined;
2504
2815
  encoding_format?: string | undefined;
2816
+ reasoningEffort?: string | undefined;
2505
2817
  };
2506
2818
 
2507
2819
  /** @internal */
2508
- export const CreatePromptModelParameters$outboundSchema: z.ZodType<
2509
- CreatePromptModelParameters$Outbound,
2820
+ export const CreatePromptPromptsModelParameters$outboundSchema: z.ZodType<
2821
+ CreatePromptPromptsModelParameters$Outbound,
2510
2822
  z.ZodTypeDef,
2511
- CreatePromptModelParameters
2823
+ CreatePromptPromptsModelParameters
2512
2824
  > = z.object({
2513
2825
  temperature: z.number().optional(),
2514
2826
  maxTokens: z.number().optional(),
@@ -2518,18 +2830,20 @@ export const CreatePromptModelParameters$outboundSchema: z.ZodType<
2518
2830
  presencePenalty: z.number().optional(),
2519
2831
  numImages: z.number().optional(),
2520
2832
  seed: z.number().optional(),
2521
- format: CreatePromptFormat$outboundSchema.optional(),
2833
+ format: CreatePromptPromptsFormat$outboundSchema.optional(),
2522
2834
  dimensions: z.string().optional(),
2523
- quality: CreatePromptQuality$outboundSchema.optional(),
2835
+ quality: CreatePromptPromptsQuality$outboundSchema.optional(),
2524
2836
  style: z.string().optional(),
2525
2837
  responseFormat: z.nullable(
2526
2838
  z.union([
2527
- z.lazy(() => CreatePromptResponseFormat2$outboundSchema),
2528
- z.lazy(() => CreatePromptResponseFormat1$outboundSchema),
2839
+ z.lazy(() => CreatePromptResponseFormatPrompts2$outboundSchema),
2840
+ z.lazy(() => CreatePromptResponseFormatPrompts1$outboundSchema),
2529
2841
  ]),
2530
2842
  ).optional(),
2531
- photoRealVersion: CreatePromptPhotoRealVersion$outboundSchema.optional(),
2532
- encodingFormat: CreatePromptEncodingFormat$outboundSchema.optional(),
2843
+ photoRealVersion: CreatePromptPromptsPhotoRealVersion$outboundSchema
2844
+ .optional(),
2845
+ encodingFormat: CreatePromptPromptsEncodingFormat$outboundSchema.optional(),
2846
+ reasoningEffort: CreatePromptPromptsReasoningEffort$outboundSchema.optional(),
2533
2847
  }).transform((v) => {
2534
2848
  return remap$(v, {
2535
2849
  encodingFormat: "encoding_format",
@@ -2540,54 +2854,56 @@ export const CreatePromptModelParameters$outboundSchema: z.ZodType<
2540
2854
  * @internal
2541
2855
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2542
2856
  */
2543
- export namespace CreatePromptModelParameters$ {
2544
- /** @deprecated use `CreatePromptModelParameters$inboundSchema` instead. */
2545
- export const inboundSchema = CreatePromptModelParameters$inboundSchema;
2546
- /** @deprecated use `CreatePromptModelParameters$outboundSchema` instead. */
2547
- export const outboundSchema = CreatePromptModelParameters$outboundSchema;
2548
- /** @deprecated use `CreatePromptModelParameters$Outbound` instead. */
2549
- export type Outbound = CreatePromptModelParameters$Outbound;
2857
+ export namespace CreatePromptPromptsModelParameters$ {
2858
+ /** @deprecated use `CreatePromptPromptsModelParameters$inboundSchema` instead. */
2859
+ export const inboundSchema = CreatePromptPromptsModelParameters$inboundSchema;
2860
+ /** @deprecated use `CreatePromptPromptsModelParameters$outboundSchema` instead. */
2861
+ export const outboundSchema =
2862
+ CreatePromptPromptsModelParameters$outboundSchema;
2863
+ /** @deprecated use `CreatePromptPromptsModelParameters$Outbound` instead. */
2864
+ export type Outbound = CreatePromptPromptsModelParameters$Outbound;
2550
2865
  }
2551
2866
 
2552
- export function createPromptModelParametersToJSON(
2553
- createPromptModelParameters: CreatePromptModelParameters,
2867
+ export function createPromptPromptsModelParametersToJSON(
2868
+ createPromptPromptsModelParameters: CreatePromptPromptsModelParameters,
2554
2869
  ): string {
2555
2870
  return JSON.stringify(
2556
- CreatePromptModelParameters$outboundSchema.parse(
2557
- createPromptModelParameters,
2871
+ CreatePromptPromptsModelParameters$outboundSchema.parse(
2872
+ createPromptPromptsModelParameters,
2558
2873
  ),
2559
2874
  );
2560
2875
  }
2561
2876
 
2562
- export function createPromptModelParametersFromJSON(
2877
+ export function createPromptPromptsModelParametersFromJSON(
2563
2878
  jsonString: string,
2564
- ): SafeParseResult<CreatePromptModelParameters, SDKValidationError> {
2879
+ ): SafeParseResult<CreatePromptPromptsModelParameters, SDKValidationError> {
2565
2880
  return safeParse(
2566
2881
  jsonString,
2567
- (x) => CreatePromptModelParameters$inboundSchema.parse(JSON.parse(x)),
2568
- `Failed to parse 'CreatePromptModelParameters' from JSON`,
2882
+ (x) =>
2883
+ CreatePromptPromptsModelParameters$inboundSchema.parse(JSON.parse(x)),
2884
+ `Failed to parse 'CreatePromptPromptsModelParameters' from JSON`,
2569
2885
  );
2570
2886
  }
2571
2887
 
2572
2888
  /** @internal */
2573
- export const CreatePromptProvider$inboundSchema: z.ZodNativeEnum<
2574
- typeof CreatePromptProvider
2575
- > = z.nativeEnum(CreatePromptProvider);
2889
+ export const CreatePromptPromptsProvider$inboundSchema: z.ZodNativeEnum<
2890
+ typeof CreatePromptPromptsProvider
2891
+ > = z.nativeEnum(CreatePromptPromptsProvider);
2576
2892
 
2577
2893
  /** @internal */
2578
- export const CreatePromptProvider$outboundSchema: z.ZodNativeEnum<
2579
- typeof CreatePromptProvider
2580
- > = CreatePromptProvider$inboundSchema;
2894
+ export const CreatePromptPromptsProvider$outboundSchema: z.ZodNativeEnum<
2895
+ typeof CreatePromptPromptsProvider
2896
+ > = CreatePromptPromptsProvider$inboundSchema;
2581
2897
 
2582
2898
  /**
2583
2899
  * @internal
2584
2900
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2585
2901
  */
2586
- export namespace CreatePromptProvider$ {
2587
- /** @deprecated use `CreatePromptProvider$inboundSchema` instead. */
2588
- export const inboundSchema = CreatePromptProvider$inboundSchema;
2589
- /** @deprecated use `CreatePromptProvider$outboundSchema` instead. */
2590
- export const outboundSchema = CreatePromptProvider$outboundSchema;
2902
+ export namespace CreatePromptPromptsProvider$ {
2903
+ /** @deprecated use `CreatePromptPromptsProvider$inboundSchema` instead. */
2904
+ export const inboundSchema = CreatePromptPromptsProvider$inboundSchema;
2905
+ /** @deprecated use `CreatePromptPromptsProvider$outboundSchema` instead. */
2906
+ export const outboundSchema = CreatePromptPromptsProvider$outboundSchema;
2591
2907
  }
2592
2908
 
2593
2909
  /** @internal */
@@ -2960,25 +3276,24 @@ export function createPromptPromptsContentFromJSON(
2960
3276
  }
2961
3277
 
2962
3278
  /** @internal */
2963
- export const CreatePromptPromptsResponse200Type$inboundSchema: z.ZodNativeEnum<
2964
- typeof CreatePromptPromptsResponse200Type
2965
- > = z.nativeEnum(CreatePromptPromptsResponse200Type);
3279
+ export const CreatePromptPromptsResponseType$inboundSchema: z.ZodNativeEnum<
3280
+ typeof CreatePromptPromptsResponseType
3281
+ > = z.nativeEnum(CreatePromptPromptsResponseType);
2966
3282
 
2967
3283
  /** @internal */
2968
- export const CreatePromptPromptsResponse200Type$outboundSchema: z.ZodNativeEnum<
2969
- typeof CreatePromptPromptsResponse200Type
2970
- > = CreatePromptPromptsResponse200Type$inboundSchema;
3284
+ export const CreatePromptPromptsResponseType$outboundSchema: z.ZodNativeEnum<
3285
+ typeof CreatePromptPromptsResponseType
3286
+ > = CreatePromptPromptsResponseType$inboundSchema;
2971
3287
 
2972
3288
  /**
2973
3289
  * @internal
2974
3290
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2975
3291
  */
2976
- export namespace CreatePromptPromptsResponse200Type$ {
2977
- /** @deprecated use `CreatePromptPromptsResponse200Type$inboundSchema` instead. */
2978
- export const inboundSchema = CreatePromptPromptsResponse200Type$inboundSchema;
2979
- /** @deprecated use `CreatePromptPromptsResponse200Type$outboundSchema` instead. */
2980
- export const outboundSchema =
2981
- CreatePromptPromptsResponse200Type$outboundSchema;
3292
+ export namespace CreatePromptPromptsResponseType$ {
3293
+ /** @deprecated use `CreatePromptPromptsResponseType$inboundSchema` instead. */
3294
+ export const inboundSchema = CreatePromptPromptsResponseType$inboundSchema;
3295
+ /** @deprecated use `CreatePromptPromptsResponseType$outboundSchema` instead. */
3296
+ export const outboundSchema = CreatePromptPromptsResponseType$outboundSchema;
2982
3297
  }
2983
3298
 
2984
3299
  /** @internal */
@@ -3048,7 +3363,7 @@ export const CreatePromptPromptsToolCalls$inboundSchema: z.ZodType<
3048
3363
  > = z.object({
3049
3364
  id: z.string().optional(),
3050
3365
  index: z.number().optional(),
3051
- type: CreatePromptPromptsResponse200Type$inboundSchema,
3366
+ type: CreatePromptPromptsResponseType$inboundSchema,
3052
3367
  function: z.lazy(() => CreatePromptPromptsFunction$inboundSchema),
3053
3368
  });
3054
3369
 
@@ -3068,7 +3383,7 @@ export const CreatePromptPromptsToolCalls$outboundSchema: z.ZodType<
3068
3383
  > = z.object({
3069
3384
  id: z.string().optional(),
3070
3385
  index: z.number().optional(),
3071
- type: CreatePromptPromptsResponse200Type$outboundSchema,
3386
+ type: CreatePromptPromptsResponseType$outboundSchema,
3072
3387
  function: z.lazy(() => CreatePromptPromptsFunction$outboundSchema),
3073
3388
  });
3074
3389
 
@@ -3192,18 +3507,19 @@ export function createPromptPromptsMessagesFromJSON(
3192
3507
  }
3193
3508
 
3194
3509
  /** @internal */
3195
- export const CreatePromptPromptConfig$inboundSchema: z.ZodType<
3196
- CreatePromptPromptConfig,
3510
+ export const CreatePromptPromptsPromptConfig$inboundSchema: z.ZodType<
3511
+ CreatePromptPromptsPromptConfig,
3197
3512
  z.ZodTypeDef,
3198
3513
  unknown
3199
3514
  > = z.object({
3200
3515
  stream: z.boolean().optional(),
3201
3516
  model: z.string().optional(),
3202
3517
  model_db_id: z.string().optional(),
3203
- model_type: CreatePromptModelType$inboundSchema.optional(),
3204
- model_parameters: z.lazy(() => CreatePromptModelParameters$inboundSchema)
3205
- .optional(),
3206
- provider: CreatePromptProvider$inboundSchema.optional(),
3518
+ model_type: CreatePromptPromptsModelType$inboundSchema.optional(),
3519
+ model_parameters: z.lazy(() =>
3520
+ CreatePromptPromptsModelParameters$inboundSchema
3521
+ ).optional(),
3522
+ provider: CreatePromptPromptsProvider$inboundSchema.optional(),
3207
3523
  integration_id: z.nullable(z.string()).optional(),
3208
3524
  version: z.string().optional(),
3209
3525
  messages: z.array(z.lazy(() => CreatePromptPromptsMessages$inboundSchema)),
@@ -3217,12 +3533,12 @@ export const CreatePromptPromptConfig$inboundSchema: z.ZodType<
3217
3533
  });
3218
3534
 
3219
3535
  /** @internal */
3220
- export type CreatePromptPromptConfig$Outbound = {
3536
+ export type CreatePromptPromptsPromptConfig$Outbound = {
3221
3537
  stream?: boolean | undefined;
3222
3538
  model?: string | undefined;
3223
3539
  model_db_id?: string | undefined;
3224
3540
  model_type?: string | undefined;
3225
- model_parameters?: CreatePromptModelParameters$Outbound | undefined;
3541
+ model_parameters?: CreatePromptPromptsModelParameters$Outbound | undefined;
3226
3542
  provider?: string | undefined;
3227
3543
  integration_id?: string | null | undefined;
3228
3544
  version?: string | undefined;
@@ -3230,18 +3546,19 @@ export type CreatePromptPromptConfig$Outbound = {
3230
3546
  };
3231
3547
 
3232
3548
  /** @internal */
3233
- export const CreatePromptPromptConfig$outboundSchema: z.ZodType<
3234
- CreatePromptPromptConfig$Outbound,
3549
+ export const CreatePromptPromptsPromptConfig$outboundSchema: z.ZodType<
3550
+ CreatePromptPromptsPromptConfig$Outbound,
3235
3551
  z.ZodTypeDef,
3236
- CreatePromptPromptConfig
3552
+ CreatePromptPromptsPromptConfig
3237
3553
  > = z.object({
3238
3554
  stream: z.boolean().optional(),
3239
3555
  model: z.string().optional(),
3240
3556
  modelDbId: z.string().optional(),
3241
- modelType: CreatePromptModelType$outboundSchema.optional(),
3242
- modelParameters: z.lazy(() => CreatePromptModelParameters$outboundSchema)
3243
- .optional(),
3244
- provider: CreatePromptProvider$outboundSchema.optional(),
3557
+ modelType: CreatePromptPromptsModelType$outboundSchema.optional(),
3558
+ modelParameters: z.lazy(() =>
3559
+ CreatePromptPromptsModelParameters$outboundSchema
3560
+ ).optional(),
3561
+ provider: CreatePromptPromptsProvider$outboundSchema.optional(),
3245
3562
  integrationId: z.nullable(z.string()).optional(),
3246
3563
  version: z.string().optional(),
3247
3564
  messages: z.array(z.lazy(() => CreatePromptPromptsMessages$outboundSchema)),
@@ -3258,41 +3575,85 @@ export const CreatePromptPromptConfig$outboundSchema: z.ZodType<
3258
3575
  * @internal
3259
3576
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3260
3577
  */
3261
- export namespace CreatePromptPromptConfig$ {
3262
- /** @deprecated use `CreatePromptPromptConfig$inboundSchema` instead. */
3263
- export const inboundSchema = CreatePromptPromptConfig$inboundSchema;
3264
- /** @deprecated use `CreatePromptPromptConfig$outboundSchema` instead. */
3265
- export const outboundSchema = CreatePromptPromptConfig$outboundSchema;
3266
- /** @deprecated use `CreatePromptPromptConfig$Outbound` instead. */
3267
- export type Outbound = CreatePromptPromptConfig$Outbound;
3578
+ export namespace CreatePromptPromptsPromptConfig$ {
3579
+ /** @deprecated use `CreatePromptPromptsPromptConfig$inboundSchema` instead. */
3580
+ export const inboundSchema = CreatePromptPromptsPromptConfig$inboundSchema;
3581
+ /** @deprecated use `CreatePromptPromptsPromptConfig$outboundSchema` instead. */
3582
+ export const outboundSchema = CreatePromptPromptsPromptConfig$outboundSchema;
3583
+ /** @deprecated use `CreatePromptPromptsPromptConfig$Outbound` instead. */
3584
+ export type Outbound = CreatePromptPromptsPromptConfig$Outbound;
3268
3585
  }
3269
3586
 
3270
- export function createPromptPromptConfigToJSON(
3271
- createPromptPromptConfig: CreatePromptPromptConfig,
3587
+ export function createPromptPromptsPromptConfigToJSON(
3588
+ createPromptPromptsPromptConfig: CreatePromptPromptsPromptConfig,
3272
3589
  ): string {
3273
3590
  return JSON.stringify(
3274
- CreatePromptPromptConfig$outboundSchema.parse(createPromptPromptConfig),
3591
+ CreatePromptPromptsPromptConfig$outboundSchema.parse(
3592
+ createPromptPromptsPromptConfig,
3593
+ ),
3275
3594
  );
3276
3595
  }
3277
3596
 
3278
- export function createPromptPromptConfigFromJSON(
3597
+ export function createPromptPromptsPromptConfigFromJSON(
3279
3598
  jsonString: string,
3280
- ): SafeParseResult<CreatePromptPromptConfig, SDKValidationError> {
3599
+ ): SafeParseResult<CreatePromptPromptsPromptConfig, SDKValidationError> {
3281
3600
  return safeParse(
3282
3601
  jsonString,
3283
- (x) => CreatePromptPromptConfig$inboundSchema.parse(JSON.parse(x)),
3284
- `Failed to parse 'CreatePromptPromptConfig' from JSON`,
3602
+ (x) => CreatePromptPromptsPromptConfig$inboundSchema.parse(JSON.parse(x)),
3603
+ `Failed to parse 'CreatePromptPromptsPromptConfig' from JSON`,
3285
3604
  );
3286
3605
  }
3287
3606
 
3607
+ /** @internal */
3608
+ export const CreatePromptPromptsUseCases$inboundSchema: z.ZodNativeEnum<
3609
+ typeof CreatePromptPromptsUseCases
3610
+ > = z.nativeEnum(CreatePromptPromptsUseCases);
3611
+
3612
+ /** @internal */
3613
+ export const CreatePromptPromptsUseCases$outboundSchema: z.ZodNativeEnum<
3614
+ typeof CreatePromptPromptsUseCases
3615
+ > = CreatePromptPromptsUseCases$inboundSchema;
3616
+
3617
+ /**
3618
+ * @internal
3619
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3620
+ */
3621
+ export namespace CreatePromptPromptsUseCases$ {
3622
+ /** @deprecated use `CreatePromptPromptsUseCases$inboundSchema` instead. */
3623
+ export const inboundSchema = CreatePromptPromptsUseCases$inboundSchema;
3624
+ /** @deprecated use `CreatePromptPromptsUseCases$outboundSchema` instead. */
3625
+ export const outboundSchema = CreatePromptPromptsUseCases$outboundSchema;
3626
+ }
3627
+
3628
+ /** @internal */
3629
+ export const CreatePromptPromptsLanguage$inboundSchema: z.ZodNativeEnum<
3630
+ typeof CreatePromptPromptsLanguage
3631
+ > = z.nativeEnum(CreatePromptPromptsLanguage);
3632
+
3633
+ /** @internal */
3634
+ export const CreatePromptPromptsLanguage$outboundSchema: z.ZodNativeEnum<
3635
+ typeof CreatePromptPromptsLanguage
3636
+ > = CreatePromptPromptsLanguage$inboundSchema;
3637
+
3638
+ /**
3639
+ * @internal
3640
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3641
+ */
3642
+ export namespace CreatePromptPromptsLanguage$ {
3643
+ /** @deprecated use `CreatePromptPromptsLanguage$inboundSchema` instead. */
3644
+ export const inboundSchema = CreatePromptPromptsLanguage$inboundSchema;
3645
+ /** @deprecated use `CreatePromptPromptsLanguage$outboundSchema` instead. */
3646
+ export const outboundSchema = CreatePromptPromptsLanguage$outboundSchema;
3647
+ }
3648
+
3288
3649
  /** @internal */
3289
3650
  export const CreatePromptPromptsMetadata$inboundSchema: z.ZodType<
3290
3651
  CreatePromptPromptsMetadata,
3291
3652
  z.ZodTypeDef,
3292
3653
  unknown
3293
3654
  > = z.object({
3294
- use_cases: z.array(z.string()).optional(),
3295
- language: z.string().optional(),
3655
+ use_cases: z.array(CreatePromptPromptsUseCases$inboundSchema).optional(),
3656
+ language: CreatePromptPromptsLanguage$inboundSchema.optional(),
3296
3657
  }).transform((v) => {
3297
3658
  return remap$(v, {
3298
3659
  "use_cases": "useCases",
@@ -3311,8 +3672,8 @@ export const CreatePromptPromptsMetadata$outboundSchema: z.ZodType<
3311
3672
  z.ZodTypeDef,
3312
3673
  CreatePromptPromptsMetadata
3313
3674
  > = z.object({
3314
- useCases: z.array(z.string()).optional(),
3315
- language: z.string().optional(),
3675
+ useCases: z.array(CreatePromptPromptsUseCases$outboundSchema).optional(),
3676
+ language: CreatePromptPromptsLanguage$outboundSchema.optional(),
3316
3677
  }).transform((v) => {
3317
3678
  return remap$(v, {
3318
3679
  useCases: "use_cases",
@@ -3352,27 +3713,6 @@ export function createPromptPromptsMetadataFromJSON(
3352
3713
  );
3353
3714
  }
3354
3715
 
3355
- /** @internal */
3356
- export const CreatePromptPromptsResponseType$inboundSchema: z.ZodNativeEnum<
3357
- typeof CreatePromptPromptsResponseType
3358
- > = z.nativeEnum(CreatePromptPromptsResponseType);
3359
-
3360
- /** @internal */
3361
- export const CreatePromptPromptsResponseType$outboundSchema: z.ZodNativeEnum<
3362
- typeof CreatePromptPromptsResponseType
3363
- > = CreatePromptPromptsResponseType$inboundSchema;
3364
-
3365
- /**
3366
- * @internal
3367
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3368
- */
3369
- export namespace CreatePromptPromptsResponseType$ {
3370
- /** @deprecated use `CreatePromptPromptsResponseType$inboundSchema` instead. */
3371
- export const inboundSchema = CreatePromptPromptsResponseType$inboundSchema;
3372
- /** @deprecated use `CreatePromptPromptsResponseType$outboundSchema` instead. */
3373
- export const outboundSchema = CreatePromptPromptsResponseType$outboundSchema;
3374
- }
3375
-
3376
3716
  /** @internal */
3377
3717
  export const CreatePromptResponseBody$inboundSchema: z.ZodType<
3378
3718
  CreatePromptResponseBody,
@@ -3380,19 +3720,24 @@ export const CreatePromptResponseBody$inboundSchema: z.ZodType<
3380
3720
  unknown
3381
3721
  > = z.object({
3382
3722
  _id: z.string(),
3383
- display_name: z.string(),
3723
+ type: CreatePromptPromptsType$inboundSchema,
3724
+ owner: z.string(),
3384
3725
  domain_id: z.string(),
3726
+ created: z.string(),
3727
+ updated: z.string(),
3728
+ created_by_id: z.string().optional(),
3729
+ updated_by_id: z.string().optional(),
3730
+ display_name: z.string(),
3385
3731
  description: z.nullable(z.string()).optional(),
3386
- prompt_config: z.lazy(() => CreatePromptPromptConfig$inboundSchema)
3387
- .optional(),
3732
+ prompt_config: z.lazy(() => CreatePromptPromptsPromptConfig$inboundSchema),
3388
3733
  metadata: z.lazy(() => CreatePromptPromptsMetadata$inboundSchema).optional(),
3389
- key: z.string().optional(),
3390
- type: CreatePromptPromptsResponseType$inboundSchema,
3391
3734
  }).transform((v) => {
3392
3735
  return remap$(v, {
3393
3736
  "_id": "id",
3394
- "display_name": "displayName",
3395
3737
  "domain_id": "domainId",
3738
+ "created_by_id": "createdById",
3739
+ "updated_by_id": "updatedById",
3740
+ "display_name": "displayName",
3396
3741
  "prompt_config": "promptConfig",
3397
3742
  });
3398
3743
  });
@@ -3400,13 +3745,17 @@ export const CreatePromptResponseBody$inboundSchema: z.ZodType<
3400
3745
  /** @internal */
3401
3746
  export type CreatePromptResponseBody$Outbound = {
3402
3747
  _id: string;
3403
- display_name: string;
3748
+ type: string;
3749
+ owner: string;
3404
3750
  domain_id: string;
3751
+ created: string;
3752
+ updated: string;
3753
+ created_by_id?: string | undefined;
3754
+ updated_by_id?: string | undefined;
3755
+ display_name: string;
3405
3756
  description?: string | null | undefined;
3406
- prompt_config?: CreatePromptPromptConfig$Outbound | undefined;
3757
+ prompt_config: CreatePromptPromptsPromptConfig$Outbound;
3407
3758
  metadata?: CreatePromptPromptsMetadata$Outbound | undefined;
3408
- key?: string | undefined;
3409
- type: string;
3410
3759
  };
3411
3760
 
3412
3761
  /** @internal */
@@ -3416,19 +3765,24 @@ export const CreatePromptResponseBody$outboundSchema: z.ZodType<
3416
3765
  CreatePromptResponseBody
3417
3766
  > = z.object({
3418
3767
  id: z.string(),
3419
- displayName: z.string(),
3768
+ type: CreatePromptPromptsType$outboundSchema,
3769
+ owner: z.string(),
3420
3770
  domainId: z.string(),
3771
+ created: z.string(),
3772
+ updated: z.string(),
3773
+ createdById: z.string().optional(),
3774
+ updatedById: z.string().optional(),
3775
+ displayName: z.string(),
3421
3776
  description: z.nullable(z.string()).optional(),
3422
- promptConfig: z.lazy(() => CreatePromptPromptConfig$outboundSchema)
3423
- .optional(),
3777
+ promptConfig: z.lazy(() => CreatePromptPromptsPromptConfig$outboundSchema),
3424
3778
  metadata: z.lazy(() => CreatePromptPromptsMetadata$outboundSchema).optional(),
3425
- key: z.string().optional(),
3426
- type: CreatePromptPromptsResponseType$outboundSchema,
3427
3779
  }).transform((v) => {
3428
3780
  return remap$(v, {
3429
3781
  id: "_id",
3430
- displayName: "display_name",
3431
3782
  domainId: "domain_id",
3783
+ createdById: "created_by_id",
3784
+ updatedById: "updated_by_id",
3785
+ displayName: "display_name",
3432
3786
  promptConfig: "prompt_config",
3433
3787
  });
3434
3788
  });