@leonardo-ai/sdk 4.14.2 → 4.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (596) hide show
  1. package/README.md +193 -90
  2. package/core.d.ts +10 -0
  3. package/core.d.ts.map +1 -0
  4. package/core.js +17 -0
  5. package/core.js.map +1 -0
  6. package/docs/sdks/dataset/README.md +169 -7
  7. package/docs/sdks/elements/README.md +33 -1
  8. package/docs/sdks/image/README.md +132 -7
  9. package/docs/sdks/initimages/README.md +136 -6
  10. package/docs/sdks/leonardo/README.md +1 -5
  11. package/docs/sdks/models/README.md +135 -6
  12. package/docs/sdks/motion/README.md +34 -4
  13. package/docs/sdks/pricingcalculator/README.md +34 -2
  14. package/docs/sdks/prompt/README.md +67 -2
  15. package/docs/sdks/realtimecanvas/README.md +133 -21
  16. package/docs/sdks/texture/README.md +67 -4
  17. package/docs/sdks/threedmodelassets/README.md +67 -4
  18. package/docs/sdks/user/README.md +33 -1
  19. package/docs/sdks/variation/README.md +166 -10
  20. package/funcs/datasetCreateDataset.d.ts +15 -0
  21. package/funcs/datasetCreateDataset.d.ts.map +1 -0
  22. package/funcs/datasetCreateDataset.js +102 -0
  23. package/funcs/datasetCreateDataset.js.map +1 -0
  24. package/funcs/datasetDeleteDatasetById.d.ts +15 -0
  25. package/funcs/datasetDeleteDatasetById.d.ts.map +1 -0
  26. package/funcs/datasetDeleteDatasetById.js +109 -0
  27. package/funcs/datasetDeleteDatasetById.js.map +1 -0
  28. package/funcs/datasetGetDatasetById.d.ts +15 -0
  29. package/funcs/datasetGetDatasetById.d.ts.map +1 -0
  30. package/funcs/datasetGetDatasetById.js +109 -0
  31. package/funcs/datasetGetDatasetById.js.map +1 -0
  32. package/funcs/datasetUploadDatasetImage.d.ts +15 -0
  33. package/funcs/datasetUploadDatasetImage.d.ts.map +1 -0
  34. package/funcs/datasetUploadDatasetImage.js +111 -0
  35. package/funcs/datasetUploadDatasetImage.js.map +1 -0
  36. package/funcs/datasetUploadDatasetImageFromGen.d.ts +15 -0
  37. package/funcs/datasetUploadDatasetImageFromGen.d.ts.map +1 -0
  38. package/funcs/datasetUploadDatasetImageFromGen.js +111 -0
  39. package/funcs/datasetUploadDatasetImageFromGen.js.map +1 -0
  40. package/funcs/elementsListElements.d.ts +15 -0
  41. package/funcs/elementsListElements.d.ts.map +1 -0
  42. package/funcs/elementsListElements.js +91 -0
  43. package/funcs/elementsListElements.js.map +1 -0
  44. package/funcs/imageCreateGeneration.d.ts +15 -0
  45. package/funcs/imageCreateGeneration.d.ts.map +1 -0
  46. package/funcs/imageCreateGeneration.js +102 -0
  47. package/funcs/imageCreateGeneration.js.map +1 -0
  48. package/funcs/imageDeleteGenerationById.d.ts +15 -0
  49. package/funcs/imageDeleteGenerationById.d.ts.map +1 -0
  50. package/funcs/imageDeleteGenerationById.js +109 -0
  51. package/funcs/imageDeleteGenerationById.js.map +1 -0
  52. package/funcs/imageGetGenerationById.d.ts +15 -0
  53. package/funcs/imageGetGenerationById.d.ts.map +1 -0
  54. package/funcs/imageGetGenerationById.js +109 -0
  55. package/funcs/imageGetGenerationById.js.map +1 -0
  56. package/funcs/imageGetGenerationsByUserId.d.ts +15 -0
  57. package/funcs/imageGetGenerationsByUserId.d.ts.map +1 -0
  58. package/funcs/imageGetGenerationsByUserId.js +116 -0
  59. package/funcs/imageGetGenerationsByUserId.js.map +1 -0
  60. package/funcs/initImagesDeleteInitImageById.d.ts +15 -0
  61. package/funcs/initImagesDeleteInitImageById.d.ts.map +1 -0
  62. package/funcs/initImagesDeleteInitImageById.js +109 -0
  63. package/funcs/initImagesDeleteInitImageById.js.map +1 -0
  64. package/funcs/initImagesGetInitImageById.d.ts +15 -0
  65. package/funcs/initImagesGetInitImageById.d.ts.map +1 -0
  66. package/funcs/initImagesGetInitImageById.js +109 -0
  67. package/funcs/initImagesGetInitImageById.js.map +1 -0
  68. package/funcs/initImagesUploadCanvasInitImage.d.ts +15 -0
  69. package/funcs/initImagesUploadCanvasInitImage.d.ts.map +1 -0
  70. package/funcs/initImagesUploadCanvasInitImage.js +102 -0
  71. package/funcs/initImagesUploadCanvasInitImage.js.map +1 -0
  72. package/funcs/initImagesUploadInitImage.d.ts +15 -0
  73. package/funcs/initImagesUploadInitImage.d.ts.map +1 -0
  74. package/funcs/initImagesUploadInitImage.js +102 -0
  75. package/funcs/initImagesUploadInitImage.js.map +1 -0
  76. package/funcs/modelsCreateModel.d.ts +15 -0
  77. package/funcs/modelsCreateModel.d.ts.map +1 -0
  78. package/funcs/modelsCreateModel.js +102 -0
  79. package/funcs/modelsCreateModel.js.map +1 -0
  80. package/funcs/modelsDeleteModelById.d.ts +15 -0
  81. package/funcs/modelsDeleteModelById.d.ts.map +1 -0
  82. package/funcs/modelsDeleteModelById.js +109 -0
  83. package/funcs/modelsDeleteModelById.js.map +1 -0
  84. package/funcs/modelsGetModelById.d.ts +15 -0
  85. package/funcs/modelsGetModelById.d.ts.map +1 -0
  86. package/funcs/modelsGetModelById.js +109 -0
  87. package/funcs/modelsGetModelById.js.map +1 -0
  88. package/funcs/modelsListPlatformModels.d.ts +15 -0
  89. package/funcs/modelsListPlatformModels.d.ts.map +1 -0
  90. package/funcs/modelsListPlatformModels.js +91 -0
  91. package/funcs/modelsListPlatformModels.js.map +1 -0
  92. package/funcs/motionCreateSVDMotionGeneration.d.ts +15 -0
  93. package/funcs/motionCreateSVDMotionGeneration.d.ts.map +1 -0
  94. package/funcs/motionCreateSVDMotionGeneration.js +105 -0
  95. package/funcs/motionCreateSVDMotionGeneration.js.map +1 -0
  96. package/funcs/pricingCalculatorPricingCalculator.d.ts +15 -0
  97. package/funcs/pricingCalculatorPricingCalculator.d.ts.map +1 -0
  98. package/funcs/pricingCalculatorPricingCalculator.js +104 -0
  99. package/funcs/pricingCalculatorPricingCalculator.js.map +1 -0
  100. package/funcs/promptPromptImprove.d.ts +15 -0
  101. package/funcs/promptPromptImprove.d.ts.map +1 -0
  102. package/funcs/promptPromptImprove.js +102 -0
  103. package/funcs/promptPromptImprove.js.map +1 -0
  104. package/funcs/promptPromptRandom.d.ts +15 -0
  105. package/funcs/promptPromptRandom.d.ts.map +1 -0
  106. package/funcs/promptPromptRandom.js +91 -0
  107. package/funcs/promptPromptRandom.js.map +1 -0
  108. package/funcs/realtimeCanvasCreateLCMGeneration.d.ts +15 -0
  109. package/funcs/realtimeCanvasCreateLCMGeneration.d.ts.map +1 -0
  110. package/funcs/realtimeCanvasCreateLCMGeneration.js +104 -0
  111. package/funcs/realtimeCanvasCreateLCMGeneration.js.map +1 -0
  112. package/funcs/realtimeCanvasPerformAlchemyUpscaleLCM.d.ts +15 -0
  113. package/funcs/realtimeCanvasPerformAlchemyUpscaleLCM.d.ts.map +1 -0
  114. package/funcs/realtimeCanvasPerformAlchemyUpscaleLCM.js +105 -0
  115. package/funcs/realtimeCanvasPerformAlchemyUpscaleLCM.js.map +1 -0
  116. package/funcs/realtimeCanvasPerformInpaintingLCM.d.ts +15 -0
  117. package/funcs/realtimeCanvasPerformInpaintingLCM.d.ts.map +1 -0
  118. package/funcs/realtimeCanvasPerformInpaintingLCM.js +105 -0
  119. package/funcs/realtimeCanvasPerformInpaintingLCM.js.map +1 -0
  120. package/funcs/realtimeCanvasPerformInstantRefine.d.ts +15 -0
  121. package/funcs/realtimeCanvasPerformInstantRefine.d.ts.map +1 -0
  122. package/funcs/realtimeCanvasPerformInstantRefine.js +105 -0
  123. package/funcs/realtimeCanvasPerformInstantRefine.js.map +1 -0
  124. package/funcs/textureCreateTextureGeneration.d.ts +15 -0
  125. package/funcs/textureCreateTextureGeneration.d.ts.map +1 -0
  126. package/funcs/textureCreateTextureGeneration.js +105 -0
  127. package/funcs/textureCreateTextureGeneration.js.map +1 -0
  128. package/funcs/textureDeleteTextureGenerationById.d.ts +15 -0
  129. package/funcs/textureDeleteTextureGenerationById.d.ts.map +1 -0
  130. package/funcs/textureDeleteTextureGenerationById.js +111 -0
  131. package/funcs/textureDeleteTextureGenerationById.js.map +1 -0
  132. package/funcs/threeDModelAssetsDelete3DModelById.d.ts +15 -0
  133. package/funcs/threeDModelAssetsDelete3DModelById.d.ts.map +1 -0
  134. package/funcs/threeDModelAssetsDelete3DModelById.js +111 -0
  135. package/funcs/threeDModelAssetsDelete3DModelById.js.map +1 -0
  136. package/funcs/threeDModelAssetsUploadModelAsset.d.ts +15 -0
  137. package/funcs/threeDModelAssetsUploadModelAsset.d.ts.map +1 -0
  138. package/funcs/threeDModelAssetsUploadModelAsset.js +104 -0
  139. package/funcs/threeDModelAssetsUploadModelAsset.js.map +1 -0
  140. package/funcs/userGetUserSelf.d.ts +15 -0
  141. package/funcs/userGetUserSelf.d.ts.map +1 -0
  142. package/funcs/userGetUserSelf.js +91 -0
  143. package/funcs/userGetUserSelf.js.map +1 -0
  144. package/funcs/variationCreateUniversalUpscalerJob.d.ts +15 -0
  145. package/funcs/variationCreateUniversalUpscalerJob.d.ts.map +1 -0
  146. package/funcs/variationCreateUniversalUpscalerJob.js +102 -0
  147. package/funcs/variationCreateUniversalUpscalerJob.js.map +1 -0
  148. package/funcs/variationCreateVariationNoBG.d.ts +15 -0
  149. package/funcs/variationCreateVariationNoBG.d.ts.map +1 -0
  150. package/funcs/variationCreateVariationNoBG.js +102 -0
  151. package/funcs/variationCreateVariationNoBG.js.map +1 -0
  152. package/funcs/variationCreateVariationUnzoom.d.ts +15 -0
  153. package/funcs/variationCreateVariationUnzoom.d.ts.map +1 -0
  154. package/funcs/variationCreateVariationUnzoom.js +105 -0
  155. package/funcs/variationCreateVariationUnzoom.js.map +1 -0
  156. package/funcs/variationCreateVariationUpscale.d.ts +15 -0
  157. package/funcs/variationCreateVariationUpscale.d.ts.map +1 -0
  158. package/funcs/variationCreateVariationUpscale.js +105 -0
  159. package/funcs/variationCreateVariationUpscale.js.map +1 -0
  160. package/funcs/variationGetVariationById.d.ts +15 -0
  161. package/funcs/variationGetVariationById.d.ts.map +1 -0
  162. package/funcs/variationGetVariationById.js +109 -0
  163. package/funcs/variationGetVariationById.js.map +1 -0
  164. package/hooks/hooks.d.ts +1 -1
  165. package/hooks/hooks.d.ts.map +1 -1
  166. package/hooks/hooks.js.map +1 -1
  167. package/hooks/index.d.ts +1 -1
  168. package/hooks/index.js +1 -1
  169. package/hooks/types.d.ts.map +1 -1
  170. package/index.d.ts +2 -1
  171. package/index.d.ts.map +1 -1
  172. package/index.js +15 -1
  173. package/index.js.map +1 -1
  174. package/lib/config.d.ts +5 -3
  175. package/lib/config.d.ts.map +1 -1
  176. package/lib/config.js +3 -3
  177. package/lib/config.js.map +1 -1
  178. package/lib/dlv.d.ts +14 -0
  179. package/lib/dlv.d.ts.map +1 -0
  180. package/lib/dlv.js +50 -0
  181. package/lib/dlv.js.map +1 -0
  182. package/lib/files.d.ts +8 -0
  183. package/lib/files.d.ts.map +1 -0
  184. package/lib/files.js +37 -0
  185. package/lib/files.js.map +1 -0
  186. package/lib/http.d.ts +11 -52
  187. package/lib/http.d.ts.map +1 -1
  188. package/lib/http.js +49 -173
  189. package/lib/http.js.map +1 -1
  190. package/lib/logger.d.ts +6 -0
  191. package/lib/logger.d.ts.map +1 -0
  192. package/lib/logger.js +6 -0
  193. package/lib/logger.js.map +1 -0
  194. package/lib/matchers.d.ts +64 -0
  195. package/lib/matchers.d.ts.map +1 -0
  196. package/lib/matchers.js +202 -0
  197. package/lib/matchers.js.map +1 -0
  198. package/lib/retries.d.ts.map +1 -1
  199. package/lib/retries.js +2 -28
  200. package/lib/retries.js.map +1 -1
  201. package/lib/schemas.d.ts +8 -0
  202. package/lib/schemas.d.ts.map +1 -1
  203. package/lib/schemas.js +16 -1
  204. package/lib/schemas.js.map +1 -1
  205. package/lib/sdks.d.ts +15 -17
  206. package/lib/sdks.d.ts.map +1 -1
  207. package/lib/sdks.js +160 -37
  208. package/lib/sdks.js.map +1 -1
  209. package/lib/security.d.ts +7 -1
  210. package/lib/security.d.ts.map +1 -1
  211. package/lib/security.js +15 -2
  212. package/lib/security.js.map +1 -1
  213. package/package.json +2 -2
  214. package/sdk/dataset.d.ts +0 -3
  215. package/sdk/dataset.d.ts.map +1 -1
  216. package/sdk/dataset.js +11 -332
  217. package/sdk/dataset.js.map +1 -1
  218. package/sdk/elements.d.ts +0 -3
  219. package/sdk/elements.d.ts.map +1 -1
  220. package/sdk/elements.js +3 -93
  221. package/sdk/elements.js.map +1 -1
  222. package/sdk/image.d.ts +0 -3
  223. package/sdk/image.d.ts.map +1 -1
  224. package/sdk/image.js +9 -273
  225. package/sdk/image.js.map +1 -1
  226. package/sdk/initimages.d.ts +0 -3
  227. package/sdk/initimages.d.ts.map +1 -1
  228. package/sdk/initimages.js +9 -261
  229. package/sdk/initimages.js.map +1 -1
  230. package/sdk/models/errors/httpclienterrors.d.ts +44 -0
  231. package/sdk/models/errors/httpclienterrors.d.ts.map +1 -0
  232. package/sdk/models/errors/httpclienterrors.js +78 -0
  233. package/sdk/models/errors/httpclienterrors.js.map +1 -0
  234. package/sdk/models/errors/index.d.ts +1 -0
  235. package/sdk/models/errors/index.d.ts.map +1 -1
  236. package/sdk/models/errors/index.js +1 -0
  237. package/sdk/models/errors/index.js.map +1 -1
  238. package/sdk/models/errors/sdkerror.d.ts.map +1 -1
  239. package/sdk/models/errors/sdkerror.js.map +1 -1
  240. package/sdk/models/errors/sdkvalidationerror.d.ts +4 -1
  241. package/sdk/models/errors/sdkvalidationerror.d.ts.map +1 -1
  242. package/sdk/models/errors/sdkvalidationerror.js +3 -5
  243. package/sdk/models/errors/sdkvalidationerror.js.map +1 -1
  244. package/sdk/models/operations/createdataset.d.ts.map +1 -1
  245. package/sdk/models/operations/createdataset.js +17 -23
  246. package/sdk/models/operations/createdataset.js.map +1 -1
  247. package/sdk/models/operations/creategeneration.d.ts +6 -1
  248. package/sdk/models/operations/creategeneration.d.ts.map +1 -1
  249. package/sdk/models/operations/creategeneration.js +34 -34
  250. package/sdk/models/operations/creategeneration.js.map +1 -1
  251. package/sdk/models/operations/createlcmgeneration.d.ts +1 -1
  252. package/sdk/models/operations/createlcmgeneration.d.ts.map +1 -1
  253. package/sdk/models/operations/createlcmgeneration.js +16 -16
  254. package/sdk/models/operations/createlcmgeneration.js.map +1 -1
  255. package/sdk/models/operations/createmodel.d.ts +1 -1
  256. package/sdk/models/operations/createmodel.d.ts.map +1 -1
  257. package/sdk/models/operations/createmodel.js +18 -24
  258. package/sdk/models/operations/createmodel.js.map +1 -1
  259. package/sdk/models/operations/createsvdmotiongeneration.d.ts.map +1 -1
  260. package/sdk/models/operations/createsvdmotiongeneration.js +12 -14
  261. package/sdk/models/operations/createsvdmotiongeneration.js.map +1 -1
  262. package/sdk/models/operations/createtexturegeneration.d.ts.map +1 -1
  263. package/sdk/models/operations/createtexturegeneration.js +22 -32
  264. package/sdk/models/operations/createtexturegeneration.js.map +1 -1
  265. package/sdk/models/operations/createuniversalupscalerjob.d.ts +23 -8
  266. package/sdk/models/operations/createuniversalupscalerjob.d.ts.map +1 -1
  267. package/sdk/models/operations/createuniversalupscalerjob.js +22 -16
  268. package/sdk/models/operations/createuniversalupscalerjob.js.map +1 -1
  269. package/sdk/models/operations/createvariationnobg.d.ts.map +1 -1
  270. package/sdk/models/operations/createvariationnobg.js +12 -14
  271. package/sdk/models/operations/createvariationnobg.js.map +1 -1
  272. package/sdk/models/operations/createvariationunzoom.d.ts.map +1 -1
  273. package/sdk/models/operations/createvariationunzoom.js +16 -16
  274. package/sdk/models/operations/createvariationunzoom.js.map +1 -1
  275. package/sdk/models/operations/createvariationupscale.d.ts.map +1 -1
  276. package/sdk/models/operations/createvariationupscale.js +14 -20
  277. package/sdk/models/operations/createvariationupscale.js.map +1 -1
  278. package/sdk/models/operations/delete3dmodelbyid.d.ts.map +1 -1
  279. package/sdk/models/operations/delete3dmodelbyid.js +26 -34
  280. package/sdk/models/operations/delete3dmodelbyid.js.map +1 -1
  281. package/sdk/models/operations/deletedatasetbyid.d.ts.map +1 -1
  282. package/sdk/models/operations/deletedatasetbyid.js +15 -27
  283. package/sdk/models/operations/deletedatasetbyid.js.map +1 -1
  284. package/sdk/models/operations/deletegenerationbyid.d.ts.map +1 -1
  285. package/sdk/models/operations/deletegenerationbyid.js +21 -25
  286. package/sdk/models/operations/deletegenerationbyid.js.map +1 -1
  287. package/sdk/models/operations/deleteinitimagebyid.d.ts.map +1 -1
  288. package/sdk/models/operations/deleteinitimagebyid.js +21 -25
  289. package/sdk/models/operations/deleteinitimagebyid.js.map +1 -1
  290. package/sdk/models/operations/deletemodelbyid.d.ts.map +1 -1
  291. package/sdk/models/operations/deletemodelbyid.js +15 -22
  292. package/sdk/models/operations/deletemodelbyid.js.map +1 -1
  293. package/sdk/models/operations/deletetexturegenerationbyid.d.ts.map +1 -1
  294. package/sdk/models/operations/deletetexturegenerationbyid.js +24 -38
  295. package/sdk/models/operations/deletetexturegenerationbyid.js.map +1 -1
  296. package/sdk/models/operations/getdatasetbyid.d.ts.map +1 -1
  297. package/sdk/models/operations/getdatasetbyid.js +22 -32
  298. package/sdk/models/operations/getdatasetbyid.js.map +1 -1
  299. package/sdk/models/operations/getgenerationbyid.d.ts +6 -1
  300. package/sdk/models/operations/getgenerationbyid.d.ts.map +1 -1
  301. package/sdk/models/operations/getgenerationbyid.js +43 -59
  302. package/sdk/models/operations/getgenerationbyid.js.map +1 -1
  303. package/sdk/models/operations/getgenerationsbyuserid.d.ts +6 -1
  304. package/sdk/models/operations/getgenerationsbyuserid.d.ts.map +1 -1
  305. package/sdk/models/operations/getgenerationsbyuserid.js +32 -52
  306. package/sdk/models/operations/getgenerationsbyuserid.js.map +1 -1
  307. package/sdk/models/operations/getinitimagebyid.d.ts.map +1 -1
  308. package/sdk/models/operations/getinitimagebyid.js +15 -27
  309. package/sdk/models/operations/getinitimagebyid.js.map +1 -1
  310. package/sdk/models/operations/getmodelbyid.d.ts +1 -1
  311. package/sdk/models/operations/getmodelbyid.d.ts.map +1 -1
  312. package/sdk/models/operations/getmodelbyid.js +15 -27
  313. package/sdk/models/operations/getmodelbyid.js.map +1 -1
  314. package/sdk/models/operations/getuserself.d.ts.map +1 -1
  315. package/sdk/models/operations/getuserself.js +15 -22
  316. package/sdk/models/operations/getuserself.js.map +1 -1
  317. package/sdk/models/operations/getvariationbyid.d.ts +1 -1
  318. package/sdk/models/operations/getvariationbyid.d.ts.map +1 -1
  319. package/sdk/models/operations/getvariationbyid.js +15 -27
  320. package/sdk/models/operations/getvariationbyid.js.map +1 -1
  321. package/sdk/models/operations/listelements.d.ts +1 -1
  322. package/sdk/models/operations/listelements.d.ts.map +1 -1
  323. package/sdk/models/operations/listelements.js +10 -13
  324. package/sdk/models/operations/listelements.js.map +1 -1
  325. package/sdk/models/operations/listplatformmodels.d.ts.map +1 -1
  326. package/sdk/models/operations/listplatformmodels.js +24 -43
  327. package/sdk/models/operations/listplatformmodels.js.map +1 -1
  328. package/sdk/models/operations/performalchemyupscalelcm.d.ts +1 -1
  329. package/sdk/models/operations/performalchemyupscalelcm.d.ts.map +1 -1
  330. package/sdk/models/operations/performalchemyupscalelcm.js +14 -20
  331. package/sdk/models/operations/performalchemyupscalelcm.js.map +1 -1
  332. package/sdk/models/operations/performinpaintinglcm.d.ts +1 -1
  333. package/sdk/models/operations/performinpaintinglcm.d.ts.map +1 -1
  334. package/sdk/models/operations/performinpaintinglcm.js +14 -20
  335. package/sdk/models/operations/performinpaintinglcm.js.map +1 -1
  336. package/sdk/models/operations/performinstantrefine.d.ts +1 -1
  337. package/sdk/models/operations/performinstantrefine.d.ts.map +1 -1
  338. package/sdk/models/operations/performinstantrefine.js +14 -20
  339. package/sdk/models/operations/performinstantrefine.js.map +1 -1
  340. package/sdk/models/operations/pricingcalculator.d.ts +55 -1
  341. package/sdk/models/operations/pricingcalculator.d.ts.map +1 -1
  342. package/sdk/models/operations/pricingcalculator.js +67 -76
  343. package/sdk/models/operations/pricingcalculator.js.map +1 -1
  344. package/sdk/models/operations/promptimprove.d.ts.map +1 -1
  345. package/sdk/models/operations/promptimprove.js +12 -14
  346. package/sdk/models/operations/promptimprove.js.map +1 -1
  347. package/sdk/models/operations/promptrandom.d.ts.map +1 -1
  348. package/sdk/models/operations/promptrandom.js +8 -12
  349. package/sdk/models/operations/promptrandom.js.map +1 -1
  350. package/sdk/models/operations/uploadcanvasinitimage.d.ts.map +1 -1
  351. package/sdk/models/operations/uploadcanvasinitimage.js +14 -20
  352. package/sdk/models/operations/uploadcanvasinitimage.js.map +1 -1
  353. package/sdk/models/operations/uploaddatasetimage.d.ts.map +1 -1
  354. package/sdk/models/operations/uploaddatasetimage.js +15 -22
  355. package/sdk/models/operations/uploaddatasetimage.js.map +1 -1
  356. package/sdk/models/operations/uploaddatasetimagefromgen.d.ts.map +1 -1
  357. package/sdk/models/operations/uploaddatasetimagefromgen.js +19 -29
  358. package/sdk/models/operations/uploaddatasetimagefromgen.js.map +1 -1
  359. package/sdk/models/operations/uploadinitimage.d.ts.map +1 -1
  360. package/sdk/models/operations/uploadinitimage.js +10 -13
  361. package/sdk/models/operations/uploadinitimage.js.map +1 -1
  362. package/sdk/models/operations/uploadmodelasset.d.ts.map +1 -1
  363. package/sdk/models/operations/uploadmodelasset.js +8 -12
  364. package/sdk/models/operations/uploadmodelasset.js.map +1 -1
  365. package/sdk/models/shared/canvasrequesttype.d.ts.map +1 -1
  366. package/sdk/models/shared/canvasrequesttype.js.map +1 -1
  367. package/sdk/models/shared/controlnetinput.d.ts.map +1 -1
  368. package/sdk/models/shared/controlnetinput.js.map +1 -1
  369. package/sdk/models/shared/controlnettype.d.ts.map +1 -1
  370. package/sdk/models/shared/controlnettype.js.map +1 -1
  371. package/sdk/models/shared/custommodeltype.d.ts.map +1 -1
  372. package/sdk/models/shared/custommodeltype.js.map +1 -1
  373. package/sdk/models/shared/elementinput.d.ts.map +1 -1
  374. package/sdk/models/shared/elementinput.js.map +1 -1
  375. package/sdk/models/shared/index.d.ts +1 -0
  376. package/sdk/models/shared/index.d.ts.map +1 -1
  377. package/sdk/models/shared/index.js +1 -0
  378. package/sdk/models/shared/index.js.map +1 -1
  379. package/sdk/models/shared/jobstatus.d.ts.map +1 -1
  380. package/sdk/models/shared/jobstatus.js +2 -1
  381. package/sdk/models/shared/jobstatus.js.map +1 -1
  382. package/sdk/models/shared/lcmgenerationstyle.d.ts.map +1 -1
  383. package/sdk/models/shared/lcmgenerationstyle.js.map +1 -1
  384. package/sdk/models/shared/pricingcalculatorservices.d.ts +2 -1
  385. package/sdk/models/shared/pricingcalculatorservices.d.ts.map +1 -1
  386. package/sdk/models/shared/pricingcalculatorservices.js +1 -0
  387. package/sdk/models/shared/pricingcalculatorservices.js.map +1 -1
  388. package/sdk/models/shared/sdgenerationschedulers.d.ts.map +1 -1
  389. package/sdk/models/shared/sdgenerationschedulers.js.map +1 -1
  390. package/sdk/models/shared/sdgenerationstyle.d.ts.map +1 -1
  391. package/sdk/models/shared/sdgenerationstyle.js.map +1 -1
  392. package/sdk/models/shared/sdversions.d.ts.map +1 -1
  393. package/sdk/models/shared/sdversions.js +2 -1
  394. package/sdk/models/shared/sdversions.js.map +1 -1
  395. package/sdk/models/shared/security.d.ts.map +1 -1
  396. package/sdk/models/shared/security.js.map +1 -1
  397. package/sdk/models/shared/strength.d.ts.map +1 -1
  398. package/sdk/models/shared/strength.js +2 -1
  399. package/sdk/models/shared/strength.js.map +1 -1
  400. package/sdk/models/shared/universalupscalerstyle.d.ts +1 -1
  401. package/sdk/models/shared/universalupscalerstyle.d.ts.map +1 -1
  402. package/sdk/models/shared/universalupscalerstyle.js +1 -1
  403. package/sdk/models/shared/universalupscalerstyle.js.map +1 -1
  404. package/sdk/models/shared/universalupscalerultrastyle.d.ts +23 -0
  405. package/sdk/models/shared/universalupscalerultrastyle.d.ts.map +1 -0
  406. package/sdk/models/shared/universalupscalerultrastyle.js +54 -0
  407. package/sdk/models/shared/universalupscalerultrastyle.js.map +1 -0
  408. package/sdk/models/shared/variationtype.d.ts.map +1 -1
  409. package/sdk/models/shared/variationtype.js.map +1 -1
  410. package/sdk/models.d.ts +0 -3
  411. package/sdk/models.d.ts.map +1 -1
  412. package/sdk/models.js +9 -256
  413. package/sdk/models.js.map +1 -1
  414. package/sdk/motion.d.ts +0 -3
  415. package/sdk/motion.d.ts.map +1 -1
  416. package/sdk/motion.js +3 -102
  417. package/sdk/motion.js.map +1 -1
  418. package/sdk/pricingcalculator.d.ts +0 -3
  419. package/sdk/pricingcalculator.d.ts.map +1 -1
  420. package/sdk/pricingcalculator.js +3 -100
  421. package/sdk/pricingcalculator.js.map +1 -1
  422. package/sdk/prompt.d.ts +0 -3
  423. package/sdk/prompt.d.ts.map +1 -1
  424. package/sdk/prompt.js +5 -146
  425. package/sdk/prompt.js.map +1 -1
  426. package/sdk/realtimecanvas.d.ts +0 -3
  427. package/sdk/realtimecanvas.d.ts.map +1 -1
  428. package/sdk/realtimecanvas.js +9 -253
  429. package/sdk/realtimecanvas.js.map +1 -1
  430. package/sdk/sdk.d.ts +0 -3
  431. package/sdk/sdk.d.ts.map +1 -1
  432. package/sdk/sdk.js +0 -23
  433. package/sdk/sdk.js.map +1 -1
  434. package/sdk/texture.d.ts +0 -3
  435. package/sdk/texture.d.ts.map +1 -1
  436. package/sdk/texture.js +5 -159
  437. package/sdk/texture.js.map +1 -1
  438. package/sdk/threedmodelassets.d.ts +0 -3
  439. package/sdk/threedmodelassets.d.ts.map +1 -1
  440. package/sdk/threedmodelassets.js +5 -157
  441. package/sdk/threedmodelassets.js.map +1 -1
  442. package/sdk/types/constdatetime.d.ts +3 -0
  443. package/sdk/types/constdatetime.d.ts.map +1 -0
  444. package/sdk/types/constdatetime.js +37 -0
  445. package/sdk/types/constdatetime.js.map +1 -0
  446. package/sdk/types/fp.d.ts +31 -0
  447. package/sdk/types/fp.d.ts.map +1 -0
  448. package/sdk/types/fp.js +38 -0
  449. package/sdk/types/fp.js.map +1 -0
  450. package/sdk/types/index.d.ts +5 -4
  451. package/sdk/types/index.d.ts.map +1 -1
  452. package/sdk/types/index.js +5 -5
  453. package/sdk/types/index.js.map +1 -1
  454. package/sdk/types/operations.d.ts +22 -8
  455. package/sdk/types/operations.d.ts.map +1 -1
  456. package/sdk/types/operations.js +64 -2
  457. package/sdk/types/operations.js.map +1 -1
  458. package/sdk/types/streams.d.ts +2 -0
  459. package/sdk/types/streams.d.ts.map +1 -0
  460. package/sdk/types/streams.js +19 -0
  461. package/sdk/types/streams.js.map +1 -0
  462. package/sdk/user.d.ts +0 -3
  463. package/sdk/user.d.ts.map +1 -1
  464. package/sdk/user.js +3 -93
  465. package/sdk/user.js.map +1 -1
  466. package/sdk/variation.d.ts +0 -3
  467. package/sdk/variation.d.ts.map +1 -1
  468. package/sdk/variation.js +11 -310
  469. package/sdk/variation.js.map +1 -1
  470. package/src/core.ts +13 -0
  471. package/src/funcs/datasetCreateDataset.ts +128 -0
  472. package/src/funcs/datasetDeleteDatasetById.ts +136 -0
  473. package/src/funcs/datasetGetDatasetById.ts +135 -0
  474. package/src/funcs/datasetUploadDatasetImage.ts +142 -0
  475. package/src/funcs/datasetUploadDatasetImageFromGen.ts +142 -0
  476. package/src/funcs/elementsListElements.ts +109 -0
  477. package/src/funcs/imageCreateGeneration.ts +128 -0
  478. package/src/funcs/imageDeleteGenerationById.ts +136 -0
  479. package/src/funcs/imageGetGenerationById.ts +136 -0
  480. package/src/funcs/imageGetGenerationsByUserId.ts +149 -0
  481. package/src/funcs/initImagesDeleteInitImageById.ts +136 -0
  482. package/src/funcs/initImagesGetInitImageById.ts +135 -0
  483. package/src/funcs/initImagesUploadCanvasInitImage.ts +128 -0
  484. package/src/funcs/initImagesUploadInitImage.ts +128 -0
  485. package/src/funcs/modelsCreateModel.ts +127 -0
  486. package/src/funcs/modelsDeleteModelById.ts +135 -0
  487. package/src/funcs/modelsGetModelById.ts +135 -0
  488. package/src/funcs/modelsListPlatformModels.ts +109 -0
  489. package/src/funcs/motionCreateSVDMotionGeneration.ts +131 -0
  490. package/src/funcs/pricingCalculatorPricingCalculator.ts +132 -0
  491. package/src/funcs/promptPromptImprove.ts +128 -0
  492. package/src/funcs/promptPromptRandom.ts +109 -0
  493. package/src/funcs/realtimeCanvasCreateLCMGeneration.ts +132 -0
  494. package/src/funcs/realtimeCanvasPerformAlchemyUpscaleLCM.ts +131 -0
  495. package/src/funcs/realtimeCanvasPerformInpaintingLCM.ts +131 -0
  496. package/src/funcs/realtimeCanvasPerformInstantRefine.ts +131 -0
  497. package/src/funcs/textureCreateTextureGeneration.ts +131 -0
  498. package/src/funcs/textureDeleteTextureGenerationById.ts +144 -0
  499. package/src/funcs/threeDModelAssetsDelete3DModelById.ts +142 -0
  500. package/src/funcs/threeDModelAssetsUploadModelAsset.ts +132 -0
  501. package/src/funcs/userGetUserSelf.ts +109 -0
  502. package/src/funcs/variationCreateUniversalUpscalerJob.ts +130 -0
  503. package/src/funcs/variationCreateVariationNoBG.ts +128 -0
  504. package/src/funcs/variationCreateVariationUnzoom.ts +131 -0
  505. package/src/funcs/variationCreateVariationUpscale.ts +131 -0
  506. package/src/funcs/variationGetVariationById.ts +135 -0
  507. package/src/hooks/hooks.ts +87 -77
  508. package/src/hooks/index.ts +1 -1
  509. package/src/hooks/types.ts +58 -49
  510. package/src/index.ts +2 -1
  511. package/src/lib/config.ts +37 -35
  512. package/src/lib/dlv.ts +53 -0
  513. package/src/lib/files.ts +40 -0
  514. package/src/lib/http.ts +255 -438
  515. package/src/lib/logger.ts +9 -0
  516. package/src/lib/matchers.ts +319 -0
  517. package/src/lib/retries.ts +2 -41
  518. package/src/lib/schemas.ts +64 -34
  519. package/src/lib/sdks.ts +342 -168
  520. package/src/lib/security.ts +166 -131
  521. package/src/sdk/dataset.ts +94 -450
  522. package/src/sdk/elements.ts +16 -92
  523. package/src/sdk/image.ts +76 -368
  524. package/src/sdk/initimages.ts +72 -350
  525. package/src/sdk/models/errors/httpclienterrors.ts +62 -0
  526. package/src/sdk/models/errors/index.ts +1 -0
  527. package/src/sdk/models/errors/sdkerror.ts +17 -15
  528. package/src/sdk/models/errors/sdkvalidationerror.ts +8 -6
  529. package/src/sdk/models/operations/createdataset.ts +139 -138
  530. package/src/sdk/models/operations/creategeneration.ts +472 -457
  531. package/src/sdk/models/operations/createlcmgeneration.ts +182 -182
  532. package/src/sdk/models/operations/createmodel.ts +196 -195
  533. package/src/sdk/models/operations/createsvdmotiongeneration.ts +156 -149
  534. package/src/sdk/models/operations/createtexturegeneration.ts +169 -172
  535. package/src/sdk/models/operations/createuniversalupscalerjob.ts +199 -165
  536. package/src/sdk/models/operations/createvariationnobg.ts +120 -122
  537. package/src/sdk/models/operations/createvariationunzoom.ts +126 -122
  538. package/src/sdk/models/operations/createvariationupscale.ts +127 -122
  539. package/src/sdk/models/operations/delete3dmodelbyid.ts +166 -170
  540. package/src/sdk/models/operations/deletedatasetbyid.ts +129 -137
  541. package/src/sdk/models/operations/deletegenerationbyid.ts +131 -131
  542. package/src/sdk/models/operations/deleteinitimagebyid.ts +134 -131
  543. package/src/sdk/models/operations/deletemodelbyid.ts +130 -131
  544. package/src/sdk/models/operations/deletetexturegenerationbyid.ts +185 -179
  545. package/src/sdk/models/operations/getdatasetbyid.ts +186 -193
  546. package/src/sdk/models/operations/getgenerationbyid.ts +504 -492
  547. package/src/sdk/models/operations/getgenerationsbyuserid.ts +509 -479
  548. package/src/sdk/models/operations/getinitimagebyid.ts +137 -145
  549. package/src/sdk/models/operations/getmodelbyid.ts +186 -190
  550. package/src/sdk/models/operations/getuserself.ts +194 -193
  551. package/src/sdk/models/operations/getvariationbyid.ts +152 -156
  552. package/src/sdk/models/operations/listelements.ts +143 -142
  553. package/src/sdk/models/operations/listplatformmodels.ts +171 -178
  554. package/src/sdk/models/operations/performalchemyupscalelcm.ts +212 -200
  555. package/src/sdk/models/operations/performinpaintinglcm.ts +196 -193
  556. package/src/sdk/models/operations/performinstantrefine.ts +189 -186
  557. package/src/sdk/models/operations/pricingcalculator.ts +676 -555
  558. package/src/sdk/models/operations/promptimprove.ts +122 -124
  559. package/src/sdk/models/operations/promptrandom.ts +106 -105
  560. package/src/sdk/models/operations/uploadcanvasinitimage.ts +155 -153
  561. package/src/sdk/models/operations/uploaddatasetimage.ts +165 -168
  562. package/src/sdk/models/operations/uploaddatasetimagefromgen.ts +164 -160
  563. package/src/sdk/models/operations/uploadinitimage.ts +125 -126
  564. package/src/sdk/models/operations/uploadmodelasset.ts +127 -127
  565. package/src/sdk/models/shared/canvasrequesttype.ts +14 -12
  566. package/src/sdk/models/shared/controlnetinput.ts +73 -68
  567. package/src/sdk/models/shared/controlnettype.ts +13 -11
  568. package/src/sdk/models/shared/custommodeltype.ts +24 -22
  569. package/src/sdk/models/shared/elementinput.ts +28 -24
  570. package/src/sdk/models/shared/index.ts +1 -0
  571. package/src/sdk/models/shared/jobstatus.ts +11 -9
  572. package/src/sdk/models/shared/lcmgenerationstyle.ts +24 -22
  573. package/src/sdk/models/shared/pricingcalculatorservices.ts +14 -13
  574. package/src/sdk/models/shared/sdgenerationschedulers.ts +17 -15
  575. package/src/sdk/models/shared/sdgenerationstyle.ts +41 -39
  576. package/src/sdk/models/shared/sdversions.ts +14 -14
  577. package/src/sdk/models/shared/security.ts +21 -14
  578. package/src/sdk/models/shared/strength.ts +12 -10
  579. package/src/sdk/models/shared/universalupscalerstyle.ts +15 -13
  580. package/src/sdk/models/shared/universalupscalerultrastyle.ts +34 -0
  581. package/src/sdk/models/shared/variationtype.ts +15 -13
  582. package/src/sdk/models.ts +70 -338
  583. package/src/sdk/motion.ts +18 -114
  584. package/src/sdk/pricingcalculator.ts +18 -110
  585. package/src/sdk/prompt.ts +34 -172
  586. package/src/sdk/realtimecanvas.ts +72 -352
  587. package/src/sdk/sdk.ts +64 -93
  588. package/src/sdk/texture.ts +38 -199
  589. package/src/sdk/threedmodelassets.ts +38 -195
  590. package/src/sdk/types/constdatetime.ts +15 -0
  591. package/src/sdk/types/fp.ts +50 -0
  592. package/src/sdk/types/index.ts +5 -4
  593. package/src/sdk/types/operations.ts +81 -7
  594. package/src/sdk/types/streams.ts +21 -0
  595. package/src/sdk/user.ts +16 -92
  596. package/src/sdk/variation.ts +90 -433
@@ -2,226 +2,230 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
+ import * as z from "zod";
5
6
  import { remap as remap$ } from "../../../lib/primitives.js";
6
7
  import * as shared from "../shared/index.js";
7
- import * as z from "zod";
8
8
 
9
9
  export type GetGenerationByIdRequest = {
10
- /**
11
- * The ID of the generation to return.
12
- */
13
- id: string;
10
+ /**
11
+ * The ID of the generation to return.
12
+ */
13
+ id: string;
14
14
  };
15
15
 
16
16
  /**
17
17
  * columns and relationships of "generated_image_variation_generic"
18
18
  */
19
19
  export type GetGenerationByIdGeneratedImageVariationGeneric = {
20
- id?: string | null | undefined;
21
- /**
22
- * The status of the current task.
23
- */
24
- status?: shared.JobStatus | undefined;
25
- /**
26
- * The type of variation.
27
- */
28
- transformType?: shared.VariationType | undefined;
29
- url?: string | null | undefined;
20
+ id?: string | null | undefined;
21
+ /**
22
+ * The status of the current task.
23
+ */
24
+ status?: shared.JobStatus | undefined;
25
+ /**
26
+ * The type of variation.
27
+ */
28
+ transformType?: shared.VariationType | undefined;
29
+ url?: string | null | undefined;
30
30
  };
31
31
 
32
32
  /**
33
33
  * columns and relationships of "generated_images"
34
34
  */
35
35
  export type GeneratedImages = {
36
- /**
37
- * If fantasyAvatar feature was used.
38
- */
39
- fantasyAvatar?: boolean | null | undefined;
40
- generatedImageVariationGenerics?:
41
- | Array<GetGenerationByIdGeneratedImageVariationGeneric>
42
- | undefined;
43
- id?: string | null | undefined;
44
- /**
45
- * If it is an image to video generation.
46
- */
47
- imageToVideo?: boolean | null | undefined;
48
- likeCount?: number | undefined;
49
- /**
50
- * If generation is of motion type.
51
- */
52
- motion?: boolean | null | undefined;
53
- /**
54
- * The URL of the motion MP4.
55
- */
56
- motionMp4URL?: string | null | undefined;
57
- /**
58
- * The name of the motion model.
59
- */
60
- motionModel?: string | null | undefined;
61
- /**
62
- * The motion strength.
63
- */
64
- motionStrength?: number | null | undefined;
65
- nsfw?: boolean | undefined;
66
- url?: string | undefined;
36
+ /**
37
+ * If fantasyAvatar feature was used.
38
+ */
39
+ fantasyAvatar?: boolean | null | undefined;
40
+ generatedImageVariationGenerics?:
41
+ | Array<GetGenerationByIdGeneratedImageVariationGeneric>
42
+ | undefined;
43
+ id?: string | null | undefined;
44
+ /**
45
+ * If it is an image to video generation.
46
+ */
47
+ imageToVideo?: boolean | null | undefined;
48
+ likeCount?: number | undefined;
49
+ /**
50
+ * If generation is of motion type.
51
+ */
52
+ motion?: boolean | null | undefined;
53
+ /**
54
+ * The URL of the motion MP4.
55
+ */
56
+ motionMp4URL?: string | null | undefined;
57
+ /**
58
+ * The name of the motion model.
59
+ */
60
+ motionModel?: string | null | undefined;
61
+ /**
62
+ * The motion strength.
63
+ */
64
+ motionStrength?: number | null | undefined;
65
+ nsfw?: boolean | undefined;
66
+ url?: string | undefined;
67
67
  };
68
68
 
69
69
  /**
70
70
  * Element used for the generation.
71
71
  */
72
72
  export type GetGenerationByIdLoras = {
73
- /**
74
- * Unique identifier for the element. Elements can be found from the List Elements endpoint.
75
- */
76
- akUUID?: string | null | undefined;
77
- /**
78
- * The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5. Also includes SDXL and SDXL Lightning models
79
- */
80
- baseModel?: shared.SdVersions | undefined;
81
- /**
82
- * Description for the element
83
- */
84
- description?: string | null | undefined;
85
- /**
86
- * Name of the element
87
- */
88
- name?: string | null | undefined;
89
- /**
90
- * URL of the element image
91
- */
92
- urlImage?: string | null | undefined;
93
- /**
94
- * Default weight for the element
95
- */
96
- weightDefault?: number | null | undefined;
97
- /**
98
- * Maximum weight for the element
99
- */
100
- weightMax?: number | null | undefined;
101
- /**
102
- * Minimum weight for the element
103
- */
104
- weightMin?: number | null | undefined;
73
+ /**
74
+ * Unique identifier for the element. Elements can be found from the List Elements endpoint.
75
+ */
76
+ akUUID?: string | null | undefined;
77
+ /**
78
+ * The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5. Also includes SDXL and SDXL Lightning models
79
+ */
80
+ baseModel?: shared.SdVersions | undefined;
81
+ /**
82
+ * Description for the element
83
+ */
84
+ description?: string | null | undefined;
85
+ /**
86
+ * Name of the element
87
+ */
88
+ name?: string | null | undefined;
89
+ /**
90
+ * URL of the element image
91
+ */
92
+ urlImage?: string | null | undefined;
93
+ /**
94
+ * Default weight for the element
95
+ */
96
+ weightDefault?: number | null | undefined;
97
+ /**
98
+ * Maximum weight for the element
99
+ */
100
+ weightMax?: number | null | undefined;
101
+ /**
102
+ * Minimum weight for the element
103
+ */
104
+ weightMin?: number | null | undefined;
105
105
  };
106
106
 
107
107
  /**
108
108
  * This table captures the elements that are applied to Generations.
109
109
  */
110
110
  export type GenerationElements = {
111
- id?: number | null | undefined;
112
- /**
113
- * Element used for the generation.
114
- */
115
- lora?: GetGenerationByIdLoras | null | undefined;
116
- weightApplied?: number | null | undefined;
111
+ id?: number | null | undefined;
112
+ /**
113
+ * Element used for the generation.
114
+ */
115
+ lora?: GetGenerationByIdLoras | null | undefined;
116
+ weightApplied?: number | null | undefined;
117
117
  };
118
118
 
119
119
  /**
120
120
  * columns and relationships of "generations"
121
121
  */
122
122
  export type GetGenerationByIdGenerations = {
123
- createdAt?: string | undefined;
124
- generatedImages?: Array<GeneratedImages> | undefined;
125
- generationElements?: Array<GenerationElements> | undefined;
126
- guidanceScale?: number | null | undefined;
127
- id?: string | null | undefined;
128
- imageHeight?: number | undefined;
129
- imageWidth?: number | undefined;
130
- inferenceSteps?: number | null | undefined;
131
- initStrength?: number | null | undefined;
132
- modelId?: string | null | undefined;
133
- negativePrompt?: string | null | undefined;
134
- /**
135
- * If photoReal feature was used.
136
- */
137
- photoReal?: boolean | null | undefined;
138
- /**
139
- * Depth of field of photoReal used. 0.55 is low, 0.5 is medium, and 0.45 is high. Default is 0.55.
140
- */
141
- photoRealStrength?: number | null | undefined;
142
- /**
143
- * The style to generate images with. When photoReal is enabled, refer to the Guide section for a full list. When alchemy is disabled, use LEONARDO or NONE. When alchemy is enabled, use ANIME, CREATIVE, DYNAMIC, ENVIRONMENT, GENERAL, ILLUSTRATION, PHOTOGRAPHY, RAYTRACED, RENDER_3D, SKETCH_BW, SKETCH_COLOR, or NONE.
144
- */
145
- presetStyle?: shared.SdGenerationStyle | null | undefined;
146
- prompt?: string | undefined;
147
- /**
148
- * If prompt magic was used.
149
- */
150
- promptMagic?: boolean | null | undefined;
151
- /**
152
- * Strength of prompt magic used.
153
- */
154
- promptMagicStrength?: number | null | undefined;
155
- /**
156
- * Version of prompt magic used.
157
- */
158
- promptMagicVersion?: string | null | undefined;
159
- public?: boolean | undefined;
160
- /**
161
- * The scheduler to generate images with. Defaults to EULER_DISCRETE if not specified.
162
- */
163
- scheduler?: shared.SdGenerationSchedulers | undefined;
164
- /**
165
- * The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5. Also includes SDXL and SDXL Lightning models
166
- */
167
- sdVersion?: shared.SdVersions | undefined;
168
- seed?: number | null | undefined;
169
- /**
170
- * The status of the current task.
171
- */
172
- status?: shared.JobStatus | undefined;
123
+ createdAt?: string | undefined;
124
+ generatedImages?: Array<GeneratedImages> | undefined;
125
+ generationElements?: Array<GenerationElements> | undefined;
126
+ guidanceScale?: number | null | undefined;
127
+ id?: string | null | undefined;
128
+ imageHeight?: number | undefined;
129
+ imageWidth?: number | undefined;
130
+ inferenceSteps?: number | null | undefined;
131
+ initStrength?: number | null | undefined;
132
+ modelId?: string | null | undefined;
133
+ negativePrompt?: string | null | undefined;
134
+ /**
135
+ * If photoReal feature was used.
136
+ */
137
+ photoReal?: boolean | null | undefined;
138
+ /**
139
+ * Depth of field of photoReal used. 0.55 is low, 0.5 is medium, and 0.45 is high. Default is 0.55.
140
+ */
141
+ photoRealStrength?: number | null | undefined;
142
+ /**
143
+ * The style to generate images with. When photoReal is enabled, refer to the Guide section for a full list. When alchemy is disabled, use LEONARDO or NONE. When alchemy is enabled, use ANIME, CREATIVE, DYNAMIC, ENVIRONMENT, GENERAL, ILLUSTRATION, PHOTOGRAPHY, RAYTRACED, RENDER_3D, SKETCH_BW, SKETCH_COLOR, or NONE.
144
+ */
145
+ presetStyle?: shared.SdGenerationStyle | null | undefined;
146
+ prompt?: string | undefined;
147
+ /**
148
+ * If prompt magic was used.
149
+ */
150
+ promptMagic?: boolean | null | undefined;
151
+ /**
152
+ * Strength of prompt magic used.
153
+ */
154
+ promptMagicStrength?: number | null | undefined;
155
+ /**
156
+ * Version of prompt magic used.
157
+ */
158
+ promptMagicVersion?: string | null | undefined;
159
+ public?: boolean | undefined;
160
+ /**
161
+ * The scheduler to generate images with. Defaults to EULER_DISCRETE if not specified.
162
+ */
163
+ scheduler?: shared.SdGenerationSchedulers | undefined;
164
+ /**
165
+ * The base version of stable diffusion to use if not using a custom model. v1_5 is 1.5, v2 is 2.1, if not specified it will default to v1_5. Also includes SDXL and SDXL Lightning models
166
+ */
167
+ sdVersion?: shared.SdVersions | undefined;
168
+ seed?: number | null | undefined;
169
+ /**
170
+ * The status of the current task.
171
+ */
172
+ status?: shared.JobStatus | undefined;
173
+ /**
174
+ * If ultra generation mode was used.
175
+ */
176
+ ultra?: boolean | null | undefined;
173
177
  };
174
178
 
175
179
  /**
176
180
  * Responses for GET /generations/{id}
177
181
  */
178
182
  export type GetGenerationByIdResponseBody = {
179
- /**
180
- * columns and relationships of "generations"
181
- */
182
- generationsByPk?: GetGenerationByIdGenerations | null | undefined;
183
+ /**
184
+ * columns and relationships of "generations"
185
+ */
186
+ generationsByPk?: GetGenerationByIdGenerations | null | undefined;
183
187
  };
184
188
 
185
189
  export type GetGenerationByIdResponse = {
186
- /**
187
- * HTTP response content type for this operation
188
- */
189
- contentType: string;
190
- /**
191
- * HTTP response status code for this operation
192
- */
193
- statusCode: number;
194
- /**
195
- * Raw HTTP response; suitable for custom response parsing
196
- */
197
- rawResponse: Response;
198
- /**
199
- * Responses for GET /generations/{id}
200
- */
201
- object?: GetGenerationByIdResponseBody | undefined;
190
+ /**
191
+ * HTTP response content type for this operation
192
+ */
193
+ contentType: string;
194
+ /**
195
+ * HTTP response status code for this operation
196
+ */
197
+ statusCode: number;
198
+ /**
199
+ * Raw HTTP response; suitable for custom response parsing
200
+ */
201
+ rawResponse: Response;
202
+ /**
203
+ * Responses for GET /generations/{id}
204
+ */
205
+ object?: GetGenerationByIdResponseBody | undefined;
202
206
  };
203
207
 
204
208
  /** @internal */
205
209
  export const GetGenerationByIdRequest$inboundSchema: z.ZodType<
206
- GetGenerationByIdRequest,
207
- z.ZodTypeDef,
208
- unknown
210
+ GetGenerationByIdRequest,
211
+ z.ZodTypeDef,
212
+ unknown
209
213
  > = z.object({
210
- id: z.string(),
214
+ id: z.string(),
211
215
  });
212
216
 
213
217
  /** @internal */
214
218
  export type GetGenerationByIdRequest$Outbound = {
215
- id: string;
219
+ id: string;
216
220
  };
217
221
 
218
222
  /** @internal */
219
223
  export const GetGenerationByIdRequest$outboundSchema: z.ZodType<
220
- GetGenerationByIdRequest$Outbound,
221
- z.ZodTypeDef,
222
- GetGenerationByIdRequest
224
+ GetGenerationByIdRequest$Outbound,
225
+ z.ZodTypeDef,
226
+ GetGenerationByIdRequest
223
227
  > = z.object({
224
- id: z.string(),
228
+ id: z.string(),
225
229
  });
226
230
 
227
231
  /**
@@ -229,183 +233,190 @@ export const GetGenerationByIdRequest$outboundSchema: z.ZodType<
229
233
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
230
234
  */
231
235
  export namespace GetGenerationByIdRequest$ {
232
- /** @deprecated use `GetGenerationByIdRequest$inboundSchema` instead. */
233
- export const inboundSchema = GetGenerationByIdRequest$inboundSchema;
234
- /** @deprecated use `GetGenerationByIdRequest$outboundSchema` instead. */
235
- export const outboundSchema = GetGenerationByIdRequest$outboundSchema;
236
- /** @deprecated use `GetGenerationByIdRequest$Outbound` instead. */
237
- export type Outbound = GetGenerationByIdRequest$Outbound;
236
+ /** @deprecated use `GetGenerationByIdRequest$inboundSchema` instead. */
237
+ export const inboundSchema = GetGenerationByIdRequest$inboundSchema;
238
+ /** @deprecated use `GetGenerationByIdRequest$outboundSchema` instead. */
239
+ export const outboundSchema = GetGenerationByIdRequest$outboundSchema;
240
+ /** @deprecated use `GetGenerationByIdRequest$Outbound` instead. */
241
+ export type Outbound = GetGenerationByIdRequest$Outbound;
238
242
  }
239
243
 
240
244
  /** @internal */
241
- export const GetGenerationByIdGeneratedImageVariationGeneric$inboundSchema: z.ZodType<
245
+ export const GetGenerationByIdGeneratedImageVariationGeneric$inboundSchema:
246
+ z.ZodType<
242
247
  GetGenerationByIdGeneratedImageVariationGeneric,
243
248
  z.ZodTypeDef,
244
249
  unknown
245
- > = z.object({
250
+ > = z.object({
246
251
  id: z.nullable(z.string()).optional(),
247
252
  status: shared.JobStatus$inboundSchema.optional(),
248
253
  transformType: shared.VariationType$inboundSchema.optional(),
249
254
  url: z.nullable(z.string()).optional(),
250
- });
255
+ });
251
256
 
252
257
  /** @internal */
253
258
  export type GetGenerationByIdGeneratedImageVariationGeneric$Outbound = {
254
- id?: string | null | undefined;
255
- status?: string | undefined;
256
- transformType?: string | undefined;
257
- url?: string | null | undefined;
259
+ id?: string | null | undefined;
260
+ status?: string | undefined;
261
+ transformType?: string | undefined;
262
+ url?: string | null | undefined;
258
263
  };
259
264
 
260
265
  /** @internal */
261
- export const GetGenerationByIdGeneratedImageVariationGeneric$outboundSchema: z.ZodType<
266
+ export const GetGenerationByIdGeneratedImageVariationGeneric$outboundSchema:
267
+ z.ZodType<
262
268
  GetGenerationByIdGeneratedImageVariationGeneric$Outbound,
263
269
  z.ZodTypeDef,
264
270
  GetGenerationByIdGeneratedImageVariationGeneric
265
- > = z.object({
271
+ > = z.object({
266
272
  id: z.nullable(z.string()).optional(),
267
273
  status: shared.JobStatus$outboundSchema.optional(),
268
274
  transformType: shared.VariationType$outboundSchema.optional(),
269
275
  url: z.nullable(z.string()).optional(),
270
- });
276
+ });
271
277
 
272
278
  /**
273
279
  * @internal
274
280
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
275
281
  */
276
282
  export namespace GetGenerationByIdGeneratedImageVariationGeneric$ {
277
- /** @deprecated use `GetGenerationByIdGeneratedImageVariationGeneric$inboundSchema` instead. */
278
- export const inboundSchema = GetGenerationByIdGeneratedImageVariationGeneric$inboundSchema;
279
- /** @deprecated use `GetGenerationByIdGeneratedImageVariationGeneric$outboundSchema` instead. */
280
- export const outboundSchema = GetGenerationByIdGeneratedImageVariationGeneric$outboundSchema;
281
- /** @deprecated use `GetGenerationByIdGeneratedImageVariationGeneric$Outbound` instead. */
282
- export type Outbound = GetGenerationByIdGeneratedImageVariationGeneric$Outbound;
283
+ /** @deprecated use `GetGenerationByIdGeneratedImageVariationGeneric$inboundSchema` instead. */
284
+ export const inboundSchema =
285
+ GetGenerationByIdGeneratedImageVariationGeneric$inboundSchema;
286
+ /** @deprecated use `GetGenerationByIdGeneratedImageVariationGeneric$outboundSchema` instead. */
287
+ export const outboundSchema =
288
+ GetGenerationByIdGeneratedImageVariationGeneric$outboundSchema;
289
+ /** @deprecated use `GetGenerationByIdGeneratedImageVariationGeneric$Outbound` instead. */
290
+ export type Outbound =
291
+ GetGenerationByIdGeneratedImageVariationGeneric$Outbound;
283
292
  }
284
293
 
285
294
  /** @internal */
286
- export const GeneratedImages$inboundSchema: z.ZodType<GeneratedImages, z.ZodTypeDef, unknown> = z
287
- .object({
288
- fantasyAvatar: z.nullable(z.boolean()).optional(),
289
- generated_image_variation_generics: z
290
- .array(z.lazy(() => GetGenerationByIdGeneratedImageVariationGeneric$inboundSchema))
291
- .optional(),
292
- id: z.nullable(z.string()).optional(),
293
- imageToVideo: z.nullable(z.boolean()).optional(),
294
- likeCount: z.number().int().optional(),
295
- motion: z.nullable(z.boolean()).optional(),
296
- motionMP4URL: z.nullable(z.string()).optional(),
297
- motionModel: z.nullable(z.string()).optional(),
298
- motionStrength: z.nullable(z.number().int()).optional(),
299
- nsfw: z.boolean().optional(),
300
- url: z.string().optional(),
301
- })
302
- .transform((v) => {
303
- return remap$(v, {
304
- generated_image_variation_generics: "generatedImageVariationGenerics",
305
- motionMP4URL: "motionMp4URL",
306
- });
307
- });
295
+ export const GeneratedImages$inboundSchema: z.ZodType<
296
+ GeneratedImages,
297
+ z.ZodTypeDef,
298
+ unknown
299
+ > = z.object({
300
+ fantasyAvatar: z.nullable(z.boolean()).optional(),
301
+ generated_image_variation_generics: z.array(
302
+ z.lazy(() => GetGenerationByIdGeneratedImageVariationGeneric$inboundSchema),
303
+ ).optional(),
304
+ id: z.nullable(z.string()).optional(),
305
+ imageToVideo: z.nullable(z.boolean()).optional(),
306
+ likeCount: z.number().int().optional(),
307
+ motion: z.nullable(z.boolean()).optional(),
308
+ motionMP4URL: z.nullable(z.string()).optional(),
309
+ motionModel: z.nullable(z.string()).optional(),
310
+ motionStrength: z.nullable(z.number().int()).optional(),
311
+ nsfw: z.boolean().optional(),
312
+ url: z.string().optional(),
313
+ }).transform((v) => {
314
+ return remap$(v, {
315
+ "generated_image_variation_generics": "generatedImageVariationGenerics",
316
+ "motionMP4URL": "motionMp4URL",
317
+ });
318
+ });
308
319
 
309
320
  /** @internal */
310
321
  export type GeneratedImages$Outbound = {
311
- fantasyAvatar?: boolean | null | undefined;
312
- generated_image_variation_generics?:
313
- | Array<GetGenerationByIdGeneratedImageVariationGeneric$Outbound>
314
- | undefined;
315
- id?: string | null | undefined;
316
- imageToVideo?: boolean | null | undefined;
317
- likeCount?: number | undefined;
318
- motion?: boolean | null | undefined;
319
- motionMP4URL?: string | null | undefined;
320
- motionModel?: string | null | undefined;
321
- motionStrength?: number | null | undefined;
322
- nsfw?: boolean | undefined;
323
- url?: string | undefined;
322
+ fantasyAvatar?: boolean | null | undefined;
323
+ generated_image_variation_generics?:
324
+ | Array<GetGenerationByIdGeneratedImageVariationGeneric$Outbound>
325
+ | undefined;
326
+ id?: string | null | undefined;
327
+ imageToVideo?: boolean | null | undefined;
328
+ likeCount?: number | undefined;
329
+ motion?: boolean | null | undefined;
330
+ motionMP4URL?: string | null | undefined;
331
+ motionModel?: string | null | undefined;
332
+ motionStrength?: number | null | undefined;
333
+ nsfw?: boolean | undefined;
334
+ url?: string | undefined;
324
335
  };
325
336
 
326
337
  /** @internal */
327
338
  export const GeneratedImages$outboundSchema: z.ZodType<
328
- GeneratedImages$Outbound,
329
- z.ZodTypeDef,
330
- GeneratedImages
331
- > = z
332
- .object({
333
- fantasyAvatar: z.nullable(z.boolean()).optional(),
334
- generatedImageVariationGenerics: z
335
- .array(z.lazy(() => GetGenerationByIdGeneratedImageVariationGeneric$outboundSchema))
336
- .optional(),
337
- id: z.nullable(z.string()).optional(),
338
- imageToVideo: z.nullable(z.boolean()).optional(),
339
- likeCount: z.number().int().optional(),
340
- motion: z.nullable(z.boolean()).optional(),
341
- motionMp4URL: z.nullable(z.string()).optional(),
342
- motionModel: z.nullable(z.string()).optional(),
343
- motionStrength: z.nullable(z.number().int()).optional(),
344
- nsfw: z.boolean().optional(),
345
- url: z.string().optional(),
346
- })
347
- .transform((v) => {
348
- return remap$(v, {
349
- generatedImageVariationGenerics: "generated_image_variation_generics",
350
- motionMp4URL: "motionMP4URL",
351
- });
352
- });
339
+ GeneratedImages$Outbound,
340
+ z.ZodTypeDef,
341
+ GeneratedImages
342
+ > = z.object({
343
+ fantasyAvatar: z.nullable(z.boolean()).optional(),
344
+ generatedImageVariationGenerics: z.array(
345
+ z.lazy(() =>
346
+ GetGenerationByIdGeneratedImageVariationGeneric$outboundSchema
347
+ ),
348
+ ).optional(),
349
+ id: z.nullable(z.string()).optional(),
350
+ imageToVideo: z.nullable(z.boolean()).optional(),
351
+ likeCount: z.number().int().optional(),
352
+ motion: z.nullable(z.boolean()).optional(),
353
+ motionMp4URL: z.nullable(z.string()).optional(),
354
+ motionModel: z.nullable(z.string()).optional(),
355
+ motionStrength: z.nullable(z.number().int()).optional(),
356
+ nsfw: z.boolean().optional(),
357
+ url: z.string().optional(),
358
+ }).transform((v) => {
359
+ return remap$(v, {
360
+ generatedImageVariationGenerics: "generated_image_variation_generics",
361
+ motionMp4URL: "motionMP4URL",
362
+ });
363
+ });
353
364
 
354
365
  /**
355
366
  * @internal
356
367
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
357
368
  */
358
369
  export namespace GeneratedImages$ {
359
- /** @deprecated use `GeneratedImages$inboundSchema` instead. */
360
- export const inboundSchema = GeneratedImages$inboundSchema;
361
- /** @deprecated use `GeneratedImages$outboundSchema` instead. */
362
- export const outboundSchema = GeneratedImages$outboundSchema;
363
- /** @deprecated use `GeneratedImages$Outbound` instead. */
364
- export type Outbound = GeneratedImages$Outbound;
370
+ /** @deprecated use `GeneratedImages$inboundSchema` instead. */
371
+ export const inboundSchema = GeneratedImages$inboundSchema;
372
+ /** @deprecated use `GeneratedImages$outboundSchema` instead. */
373
+ export const outboundSchema = GeneratedImages$outboundSchema;
374
+ /** @deprecated use `GeneratedImages$Outbound` instead. */
375
+ export type Outbound = GeneratedImages$Outbound;
365
376
  }
366
377
 
367
378
  /** @internal */
368
379
  export const GetGenerationByIdLoras$inboundSchema: z.ZodType<
369
- GetGenerationByIdLoras,
370
- z.ZodTypeDef,
371
- unknown
380
+ GetGenerationByIdLoras,
381
+ z.ZodTypeDef,
382
+ unknown
372
383
  > = z.object({
373
- akUUID: z.nullable(z.string()).optional(),
374
- baseModel: shared.SdVersions$inboundSchema.optional(),
375
- description: z.nullable(z.string()).optional(),
376
- name: z.nullable(z.string()).optional(),
377
- urlImage: z.nullable(z.string()).optional(),
378
- weightDefault: z.nullable(z.number().int()).optional(),
379
- weightMax: z.nullable(z.number().int()).optional(),
380
- weightMin: z.nullable(z.number().int()).optional(),
384
+ akUUID: z.nullable(z.string()).optional(),
385
+ baseModel: shared.SdVersions$inboundSchema.optional(),
386
+ description: z.nullable(z.string()).optional(),
387
+ name: z.nullable(z.string()).optional(),
388
+ urlImage: z.nullable(z.string()).optional(),
389
+ weightDefault: z.nullable(z.number().int()).optional(),
390
+ weightMax: z.nullable(z.number().int()).optional(),
391
+ weightMin: z.nullable(z.number().int()).optional(),
381
392
  });
382
393
 
383
394
  /** @internal */
384
395
  export type GetGenerationByIdLoras$Outbound = {
385
- akUUID?: string | null | undefined;
386
- baseModel?: string | undefined;
387
- description?: string | null | undefined;
388
- name?: string | null | undefined;
389
- urlImage?: string | null | undefined;
390
- weightDefault?: number | null | undefined;
391
- weightMax?: number | null | undefined;
392
- weightMin?: number | null | undefined;
396
+ akUUID?: string | null | undefined;
397
+ baseModel?: string | undefined;
398
+ description?: string | null | undefined;
399
+ name?: string | null | undefined;
400
+ urlImage?: string | null | undefined;
401
+ weightDefault?: number | null | undefined;
402
+ weightMax?: number | null | undefined;
403
+ weightMin?: number | null | undefined;
393
404
  };
394
405
 
395
406
  /** @internal */
396
407
  export const GetGenerationByIdLoras$outboundSchema: z.ZodType<
397
- GetGenerationByIdLoras$Outbound,
398
- z.ZodTypeDef,
399
- GetGenerationByIdLoras
408
+ GetGenerationByIdLoras$Outbound,
409
+ z.ZodTypeDef,
410
+ GetGenerationByIdLoras
400
411
  > = z.object({
401
- akUUID: z.nullable(z.string()).optional(),
402
- baseModel: shared.SdVersions$outboundSchema.optional(),
403
- description: z.nullable(z.string()).optional(),
404
- name: z.nullable(z.string()).optional(),
405
- urlImage: z.nullable(z.string()).optional(),
406
- weightDefault: z.nullable(z.number().int()).optional(),
407
- weightMax: z.nullable(z.number().int()).optional(),
408
- weightMin: z.nullable(z.number().int()).optional(),
412
+ akUUID: z.nullable(z.string()).optional(),
413
+ baseModel: shared.SdVersions$outboundSchema.optional(),
414
+ description: z.nullable(z.string()).optional(),
415
+ name: z.nullable(z.string()).optional(),
416
+ urlImage: z.nullable(z.string()).optional(),
417
+ weightDefault: z.nullable(z.number().int()).optional(),
418
+ weightMax: z.nullable(z.number().int()).optional(),
419
+ weightMin: z.nullable(z.number().int()).optional(),
409
420
  });
410
421
 
411
422
  /**
@@ -413,41 +424,43 @@ export const GetGenerationByIdLoras$outboundSchema: z.ZodType<
413
424
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
414
425
  */
415
426
  export namespace GetGenerationByIdLoras$ {
416
- /** @deprecated use `GetGenerationByIdLoras$inboundSchema` instead. */
417
- export const inboundSchema = GetGenerationByIdLoras$inboundSchema;
418
- /** @deprecated use `GetGenerationByIdLoras$outboundSchema` instead. */
419
- export const outboundSchema = GetGenerationByIdLoras$outboundSchema;
420
- /** @deprecated use `GetGenerationByIdLoras$Outbound` instead. */
421
- export type Outbound = GetGenerationByIdLoras$Outbound;
427
+ /** @deprecated use `GetGenerationByIdLoras$inboundSchema` instead. */
428
+ export const inboundSchema = GetGenerationByIdLoras$inboundSchema;
429
+ /** @deprecated use `GetGenerationByIdLoras$outboundSchema` instead. */
430
+ export const outboundSchema = GetGenerationByIdLoras$outboundSchema;
431
+ /** @deprecated use `GetGenerationByIdLoras$Outbound` instead. */
432
+ export type Outbound = GetGenerationByIdLoras$Outbound;
422
433
  }
423
434
 
424
435
  /** @internal */
425
436
  export const GenerationElements$inboundSchema: z.ZodType<
426
- GenerationElements,
427
- z.ZodTypeDef,
428
- unknown
437
+ GenerationElements,
438
+ z.ZodTypeDef,
439
+ unknown
429
440
  > = z.object({
430
- id: z.nullable(z.number().int()).optional(),
431
- lora: z.nullable(z.lazy(() => GetGenerationByIdLoras$inboundSchema)).optional(),
432
- weightApplied: z.nullable(z.number()).optional(),
441
+ id: z.nullable(z.number().int()).optional(),
442
+ lora: z.nullable(z.lazy(() => GetGenerationByIdLoras$inboundSchema))
443
+ .optional(),
444
+ weightApplied: z.nullable(z.number()).optional(),
433
445
  });
434
446
 
435
447
  /** @internal */
436
448
  export type GenerationElements$Outbound = {
437
- id?: number | null | undefined;
438
- lora?: GetGenerationByIdLoras$Outbound | null | undefined;
439
- weightApplied?: number | null | undefined;
449
+ id?: number | null | undefined;
450
+ lora?: GetGenerationByIdLoras$Outbound | null | undefined;
451
+ weightApplied?: number | null | undefined;
440
452
  };
441
453
 
442
454
  /** @internal */
443
455
  export const GenerationElements$outboundSchema: z.ZodType<
444
- GenerationElements$Outbound,
445
- z.ZodTypeDef,
446
- GenerationElements
456
+ GenerationElements$Outbound,
457
+ z.ZodTypeDef,
458
+ GenerationElements
447
459
  > = z.object({
448
- id: z.nullable(z.number().int()).optional(),
449
- lora: z.nullable(z.lazy(() => GetGenerationByIdLoras$outboundSchema)).optional(),
450
- weightApplied: z.nullable(z.number()).optional(),
460
+ id: z.nullable(z.number().int()).optional(),
461
+ lora: z.nullable(z.lazy(() => GetGenerationByIdLoras$outboundSchema))
462
+ .optional(),
463
+ weightApplied: z.nullable(z.number()).optional(),
451
464
  });
452
465
 
453
466
  /**
@@ -455,245 +468,244 @@ export const GenerationElements$outboundSchema: z.ZodType<
455
468
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
456
469
  */
457
470
  export namespace GenerationElements$ {
458
- /** @deprecated use `GenerationElements$inboundSchema` instead. */
459
- export const inboundSchema = GenerationElements$inboundSchema;
460
- /** @deprecated use `GenerationElements$outboundSchema` instead. */
461
- export const outboundSchema = GenerationElements$outboundSchema;
462
- /** @deprecated use `GenerationElements$Outbound` instead. */
463
- export type Outbound = GenerationElements$Outbound;
471
+ /** @deprecated use `GenerationElements$inboundSchema` instead. */
472
+ export const inboundSchema = GenerationElements$inboundSchema;
473
+ /** @deprecated use `GenerationElements$outboundSchema` instead. */
474
+ export const outboundSchema = GenerationElements$outboundSchema;
475
+ /** @deprecated use `GenerationElements$Outbound` instead. */
476
+ export type Outbound = GenerationElements$Outbound;
464
477
  }
465
478
 
466
479
  /** @internal */
467
480
  export const GetGenerationByIdGenerations$inboundSchema: z.ZodType<
468
- GetGenerationByIdGenerations,
469
- z.ZodTypeDef,
470
- unknown
471
- > = z
472
- .object({
473
- createdAt: z.string().optional(),
474
- generated_images: z.array(z.lazy(() => GeneratedImages$inboundSchema)).optional(),
475
- generation_elements: z.array(z.lazy(() => GenerationElements$inboundSchema)).optional(),
476
- guidanceScale: z.nullable(z.number()).optional(),
477
- id: z.nullable(z.string()).optional(),
478
- imageHeight: z.number().int().optional(),
479
- imageWidth: z.number().int().optional(),
480
- inferenceSteps: z.nullable(z.number().int()).optional(),
481
- initStrength: z.nullable(z.number()).optional(),
482
- modelId: z.nullable(z.string()).optional(),
483
- negativePrompt: z.nullable(z.string()).optional(),
484
- photoReal: z.nullable(z.boolean()).optional(),
485
- photoRealStrength: z.nullable(z.number()).optional(),
486
- presetStyle: z.nullable(
487
- shared.SdGenerationStyle$inboundSchema.default(shared.SdGenerationStyle.Dynamic)
488
- ),
489
- prompt: z.string().optional(),
490
- promptMagic: z.nullable(z.boolean()).optional(),
491
- promptMagicStrength: z.nullable(z.number()).optional(),
492
- promptMagicVersion: z.nullable(z.string()).optional(),
493
- public: z.boolean().optional(),
494
- scheduler: shared.SdGenerationSchedulers$inboundSchema.optional(),
495
- sdVersion: shared.SdVersions$inboundSchema.optional(),
496
- seed: z.nullable(z.number().int()).optional(),
497
- status: shared.JobStatus$inboundSchema.optional(),
498
- })
499
- .transform((v) => {
500
- return remap$(v, {
501
- generated_images: "generatedImages",
502
- generation_elements: "generationElements",
503
- });
504
- });
481
+ GetGenerationByIdGenerations,
482
+ z.ZodTypeDef,
483
+ unknown
484
+ > = z.object({
485
+ createdAt: z.string().optional(),
486
+ generated_images: z.array(z.lazy(() => GeneratedImages$inboundSchema))
487
+ .optional(),
488
+ generation_elements: z.array(z.lazy(() => GenerationElements$inboundSchema))
489
+ .optional(),
490
+ guidanceScale: z.nullable(z.number()).optional(),
491
+ id: z.nullable(z.string()).optional(),
492
+ imageHeight: z.number().int().optional(),
493
+ imageWidth: z.number().int().optional(),
494
+ inferenceSteps: z.nullable(z.number().int()).optional(),
495
+ initStrength: z.nullable(z.number()).optional(),
496
+ modelId: z.nullable(z.string()).optional(),
497
+ negativePrompt: z.nullable(z.string()).optional(),
498
+ photoReal: z.nullable(z.boolean()).optional(),
499
+ photoRealStrength: z.nullable(z.number()).optional(),
500
+ presetStyle: z.nullable(
501
+ shared.SdGenerationStyle$inboundSchema.default(
502
+ shared.SdGenerationStyle.Dynamic,
503
+ ),
504
+ ),
505
+ prompt: z.string().optional(),
506
+ promptMagic: z.nullable(z.boolean()).optional(),
507
+ promptMagicStrength: z.nullable(z.number()).optional(),
508
+ promptMagicVersion: z.nullable(z.string()).optional(),
509
+ public: z.boolean().optional(),
510
+ scheduler: shared.SdGenerationSchedulers$inboundSchema.optional(),
511
+ sdVersion: shared.SdVersions$inboundSchema.optional(),
512
+ seed: z.nullable(z.number().int()).optional(),
513
+ status: shared.JobStatus$inboundSchema.optional(),
514
+ ultra: z.nullable(z.boolean()).optional(),
515
+ }).transform((v) => {
516
+ return remap$(v, {
517
+ "generated_images": "generatedImages",
518
+ "generation_elements": "generationElements",
519
+ });
520
+ });
505
521
 
506
522
  /** @internal */
507
523
  export type GetGenerationByIdGenerations$Outbound = {
508
- createdAt?: string | undefined;
509
- generated_images?: Array<GeneratedImages$Outbound> | undefined;
510
- generation_elements?: Array<GenerationElements$Outbound> | undefined;
511
- guidanceScale?: number | null | undefined;
512
- id?: string | null | undefined;
513
- imageHeight?: number | undefined;
514
- imageWidth?: number | undefined;
515
- inferenceSteps?: number | null | undefined;
516
- initStrength?: number | null | undefined;
517
- modelId?: string | null | undefined;
518
- negativePrompt?: string | null | undefined;
519
- photoReal?: boolean | null | undefined;
520
- photoRealStrength?: number | null | undefined;
521
- presetStyle: string | null;
522
- prompt?: string | undefined;
523
- promptMagic?: boolean | null | undefined;
524
- promptMagicStrength?: number | null | undefined;
525
- promptMagicVersion?: string | null | undefined;
526
- public?: boolean | undefined;
527
- scheduler?: string | undefined;
528
- sdVersion?: string | undefined;
529
- seed?: number | null | undefined;
530
- status?: string | undefined;
524
+ createdAt?: string | undefined;
525
+ generated_images?: Array<GeneratedImages$Outbound> | undefined;
526
+ generation_elements?: Array<GenerationElements$Outbound> | undefined;
527
+ guidanceScale?: number | null | undefined;
528
+ id?: string | null | undefined;
529
+ imageHeight?: number | undefined;
530
+ imageWidth?: number | undefined;
531
+ inferenceSteps?: number | null | undefined;
532
+ initStrength?: number | null | undefined;
533
+ modelId?: string | null | undefined;
534
+ negativePrompt?: string | null | undefined;
535
+ photoReal?: boolean | null | undefined;
536
+ photoRealStrength?: number | null | undefined;
537
+ presetStyle: string | null;
538
+ prompt?: string | undefined;
539
+ promptMagic?: boolean | null | undefined;
540
+ promptMagicStrength?: number | null | undefined;
541
+ promptMagicVersion?: string | null | undefined;
542
+ public?: boolean | undefined;
543
+ scheduler?: string | undefined;
544
+ sdVersion?: string | undefined;
545
+ seed?: number | null | undefined;
546
+ status?: string | undefined;
547
+ ultra?: boolean | null | undefined;
531
548
  };
532
549
 
533
550
  /** @internal */
534
551
  export const GetGenerationByIdGenerations$outboundSchema: z.ZodType<
535
- GetGenerationByIdGenerations$Outbound,
536
- z.ZodTypeDef,
537
- GetGenerationByIdGenerations
538
- > = z
539
- .object({
540
- createdAt: z.string().optional(),
541
- generatedImages: z.array(z.lazy(() => GeneratedImages$outboundSchema)).optional(),
542
- generationElements: z.array(z.lazy(() => GenerationElements$outboundSchema)).optional(),
543
- guidanceScale: z.nullable(z.number()).optional(),
544
- id: z.nullable(z.string()).optional(),
545
- imageHeight: z.number().int().optional(),
546
- imageWidth: z.number().int().optional(),
547
- inferenceSteps: z.nullable(z.number().int()).optional(),
548
- initStrength: z.nullable(z.number()).optional(),
549
- modelId: z.nullable(z.string()).optional(),
550
- negativePrompt: z.nullable(z.string()).optional(),
551
- photoReal: z.nullable(z.boolean()).optional(),
552
- photoRealStrength: z.nullable(z.number()).optional(),
553
- presetStyle: z.nullable(
554
- shared.SdGenerationStyle$outboundSchema.default(shared.SdGenerationStyle.Dynamic)
555
- ),
556
- prompt: z.string().optional(),
557
- promptMagic: z.nullable(z.boolean()).optional(),
558
- promptMagicStrength: z.nullable(z.number()).optional(),
559
- promptMagicVersion: z.nullable(z.string()).optional(),
560
- public: z.boolean().optional(),
561
- scheduler: shared.SdGenerationSchedulers$outboundSchema.optional(),
562
- sdVersion: shared.SdVersions$outboundSchema.optional(),
563
- seed: z.nullable(z.number().int()).optional(),
564
- status: shared.JobStatus$outboundSchema.optional(),
565
- })
566
- .transform((v) => {
567
- return remap$(v, {
568
- generatedImages: "generated_images",
569
- generationElements: "generation_elements",
570
- });
571
- });
552
+ GetGenerationByIdGenerations$Outbound,
553
+ z.ZodTypeDef,
554
+ GetGenerationByIdGenerations
555
+ > = z.object({
556
+ createdAt: z.string().optional(),
557
+ generatedImages: z.array(z.lazy(() => GeneratedImages$outboundSchema))
558
+ .optional(),
559
+ generationElements: z.array(z.lazy(() => GenerationElements$outboundSchema))
560
+ .optional(),
561
+ guidanceScale: z.nullable(z.number()).optional(),
562
+ id: z.nullable(z.string()).optional(),
563
+ imageHeight: z.number().int().optional(),
564
+ imageWidth: z.number().int().optional(),
565
+ inferenceSteps: z.nullable(z.number().int()).optional(),
566
+ initStrength: z.nullable(z.number()).optional(),
567
+ modelId: z.nullable(z.string()).optional(),
568
+ negativePrompt: z.nullable(z.string()).optional(),
569
+ photoReal: z.nullable(z.boolean()).optional(),
570
+ photoRealStrength: z.nullable(z.number()).optional(),
571
+ presetStyle: z.nullable(
572
+ shared.SdGenerationStyle$outboundSchema.default(
573
+ shared.SdGenerationStyle.Dynamic,
574
+ ),
575
+ ),
576
+ prompt: z.string().optional(),
577
+ promptMagic: z.nullable(z.boolean()).optional(),
578
+ promptMagicStrength: z.nullable(z.number()).optional(),
579
+ promptMagicVersion: z.nullable(z.string()).optional(),
580
+ public: z.boolean().optional(),
581
+ scheduler: shared.SdGenerationSchedulers$outboundSchema.optional(),
582
+ sdVersion: shared.SdVersions$outboundSchema.optional(),
583
+ seed: z.nullable(z.number().int()).optional(),
584
+ status: shared.JobStatus$outboundSchema.optional(),
585
+ ultra: z.nullable(z.boolean()).optional(),
586
+ }).transform((v) => {
587
+ return remap$(v, {
588
+ generatedImages: "generated_images",
589
+ generationElements: "generation_elements",
590
+ });
591
+ });
572
592
 
573
593
  /**
574
594
  * @internal
575
595
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
576
596
  */
577
597
  export namespace GetGenerationByIdGenerations$ {
578
- /** @deprecated use `GetGenerationByIdGenerations$inboundSchema` instead. */
579
- export const inboundSchema = GetGenerationByIdGenerations$inboundSchema;
580
- /** @deprecated use `GetGenerationByIdGenerations$outboundSchema` instead. */
581
- export const outboundSchema = GetGenerationByIdGenerations$outboundSchema;
582
- /** @deprecated use `GetGenerationByIdGenerations$Outbound` instead. */
583
- export type Outbound = GetGenerationByIdGenerations$Outbound;
598
+ /** @deprecated use `GetGenerationByIdGenerations$inboundSchema` instead. */
599
+ export const inboundSchema = GetGenerationByIdGenerations$inboundSchema;
600
+ /** @deprecated use `GetGenerationByIdGenerations$outboundSchema` instead. */
601
+ export const outboundSchema = GetGenerationByIdGenerations$outboundSchema;
602
+ /** @deprecated use `GetGenerationByIdGenerations$Outbound` instead. */
603
+ export type Outbound = GetGenerationByIdGenerations$Outbound;
584
604
  }
585
605
 
586
606
  /** @internal */
587
607
  export const GetGenerationByIdResponseBody$inboundSchema: z.ZodType<
588
- GetGenerationByIdResponseBody,
589
- z.ZodTypeDef,
590
- unknown
591
- > = z
592
- .object({
593
- generations_by_pk: z
594
- .nullable(z.lazy(() => GetGenerationByIdGenerations$inboundSchema))
595
- .optional(),
596
- })
597
- .transform((v) => {
598
- return remap$(v, {
599
- generations_by_pk: "generationsByPk",
600
- });
601
- });
608
+ GetGenerationByIdResponseBody,
609
+ z.ZodTypeDef,
610
+ unknown
611
+ > = z.object({
612
+ generations_by_pk: z.nullable(
613
+ z.lazy(() => GetGenerationByIdGenerations$inboundSchema),
614
+ ).optional(),
615
+ }).transform((v) => {
616
+ return remap$(v, {
617
+ "generations_by_pk": "generationsByPk",
618
+ });
619
+ });
602
620
 
603
621
  /** @internal */
604
622
  export type GetGenerationByIdResponseBody$Outbound = {
605
- generations_by_pk?: GetGenerationByIdGenerations$Outbound | null | undefined;
623
+ generations_by_pk?: GetGenerationByIdGenerations$Outbound | null | undefined;
606
624
  };
607
625
 
608
626
  /** @internal */
609
627
  export const GetGenerationByIdResponseBody$outboundSchema: z.ZodType<
610
- GetGenerationByIdResponseBody$Outbound,
611
- z.ZodTypeDef,
612
- GetGenerationByIdResponseBody
613
- > = z
614
- .object({
615
- generationsByPk: z
616
- .nullable(z.lazy(() => GetGenerationByIdGenerations$outboundSchema))
617
- .optional(),
618
- })
619
- .transform((v) => {
620
- return remap$(v, {
621
- generationsByPk: "generations_by_pk",
622
- });
623
- });
628
+ GetGenerationByIdResponseBody$Outbound,
629
+ z.ZodTypeDef,
630
+ GetGenerationByIdResponseBody
631
+ > = z.object({
632
+ generationsByPk: z.nullable(
633
+ z.lazy(() => GetGenerationByIdGenerations$outboundSchema),
634
+ ).optional(),
635
+ }).transform((v) => {
636
+ return remap$(v, {
637
+ generationsByPk: "generations_by_pk",
638
+ });
639
+ });
624
640
 
625
641
  /**
626
642
  * @internal
627
643
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
628
644
  */
629
645
  export namespace GetGenerationByIdResponseBody$ {
630
- /** @deprecated use `GetGenerationByIdResponseBody$inboundSchema` instead. */
631
- export const inboundSchema = GetGenerationByIdResponseBody$inboundSchema;
632
- /** @deprecated use `GetGenerationByIdResponseBody$outboundSchema` instead. */
633
- export const outboundSchema = GetGenerationByIdResponseBody$outboundSchema;
634
- /** @deprecated use `GetGenerationByIdResponseBody$Outbound` instead. */
635
- export type Outbound = GetGenerationByIdResponseBody$Outbound;
646
+ /** @deprecated use `GetGenerationByIdResponseBody$inboundSchema` instead. */
647
+ export const inboundSchema = GetGenerationByIdResponseBody$inboundSchema;
648
+ /** @deprecated use `GetGenerationByIdResponseBody$outboundSchema` instead. */
649
+ export const outboundSchema = GetGenerationByIdResponseBody$outboundSchema;
650
+ /** @deprecated use `GetGenerationByIdResponseBody$Outbound` instead. */
651
+ export type Outbound = GetGenerationByIdResponseBody$Outbound;
636
652
  }
637
653
 
638
654
  /** @internal */
639
655
  export const GetGenerationByIdResponse$inboundSchema: z.ZodType<
640
- GetGenerationByIdResponse,
641
- z.ZodTypeDef,
642
- unknown
643
- > = z
644
- .object({
645
- ContentType: z.string(),
646
- StatusCode: z.number().int(),
647
- RawResponse: z.instanceof(Response),
648
- object: z.lazy(() => GetGenerationByIdResponseBody$inboundSchema).optional(),
649
- })
650
- .transform((v) => {
651
- return remap$(v, {
652
- ContentType: "contentType",
653
- StatusCode: "statusCode",
654
- RawResponse: "rawResponse",
655
- });
656
- });
656
+ GetGenerationByIdResponse,
657
+ z.ZodTypeDef,
658
+ unknown
659
+ > = z.object({
660
+ ContentType: z.string(),
661
+ StatusCode: z.number().int(),
662
+ RawResponse: z.instanceof(Response),
663
+ object: z.lazy(() => GetGenerationByIdResponseBody$inboundSchema).optional(),
664
+ }).transform((v) => {
665
+ return remap$(v, {
666
+ "ContentType": "contentType",
667
+ "StatusCode": "statusCode",
668
+ "RawResponse": "rawResponse",
669
+ });
670
+ });
657
671
 
658
672
  /** @internal */
659
673
  export type GetGenerationByIdResponse$Outbound = {
660
- ContentType: string;
661
- StatusCode: number;
662
- RawResponse: never;
663
- object?: GetGenerationByIdResponseBody$Outbound | undefined;
674
+ ContentType: string;
675
+ StatusCode: number;
676
+ RawResponse: never;
677
+ object?: GetGenerationByIdResponseBody$Outbound | undefined;
664
678
  };
665
679
 
666
680
  /** @internal */
667
681
  export const GetGenerationByIdResponse$outboundSchema: z.ZodType<
668
- GetGenerationByIdResponse$Outbound,
669
- z.ZodTypeDef,
670
- GetGenerationByIdResponse
671
- > = z
672
- .object({
673
- contentType: z.string(),
674
- statusCode: z.number().int(),
675
- rawResponse: z.instanceof(Response).transform(() => {
676
- throw new Error("Response cannot be serialized");
677
- }),
678
- object: z.lazy(() => GetGenerationByIdResponseBody$outboundSchema).optional(),
679
- })
680
- .transform((v) => {
681
- return remap$(v, {
682
- contentType: "ContentType",
683
- statusCode: "StatusCode",
684
- rawResponse: "RawResponse",
685
- });
686
- });
682
+ GetGenerationByIdResponse$Outbound,
683
+ z.ZodTypeDef,
684
+ GetGenerationByIdResponse
685
+ > = z.object({
686
+ contentType: z.string(),
687
+ statusCode: z.number().int(),
688
+ rawResponse: z.instanceof(Response).transform(() => {
689
+ throw new Error("Response cannot be serialized");
690
+ }),
691
+ object: z.lazy(() => GetGenerationByIdResponseBody$outboundSchema).optional(),
692
+ }).transform((v) => {
693
+ return remap$(v, {
694
+ contentType: "ContentType",
695
+ statusCode: "StatusCode",
696
+ rawResponse: "RawResponse",
697
+ });
698
+ });
687
699
 
688
700
  /**
689
701
  * @internal
690
702
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
691
703
  */
692
704
  export namespace GetGenerationByIdResponse$ {
693
- /** @deprecated use `GetGenerationByIdResponse$inboundSchema` instead. */
694
- export const inboundSchema = GetGenerationByIdResponse$inboundSchema;
695
- /** @deprecated use `GetGenerationByIdResponse$outboundSchema` instead. */
696
- export const outboundSchema = GetGenerationByIdResponse$outboundSchema;
697
- /** @deprecated use `GetGenerationByIdResponse$Outbound` instead. */
698
- export type Outbound = GetGenerationByIdResponse$Outbound;
705
+ /** @deprecated use `GetGenerationByIdResponse$inboundSchema` instead. */
706
+ export const inboundSchema = GetGenerationByIdResponse$inboundSchema;
707
+ /** @deprecated use `GetGenerationByIdResponse$outboundSchema` instead. */
708
+ export const outboundSchema = GetGenerationByIdResponse$outboundSchema;
709
+ /** @deprecated use `GetGenerationByIdResponse$Outbound` instead. */
710
+ export type Outbound = GetGenerationByIdResponse$Outbound;
699
711
  }