@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,265 +2,309 @@
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
  /**
10
10
  * Parameters for FANTASY_AVATAR_GENERATION service
11
11
  */
12
12
  export type PricingCalculatorObject = {
13
- /**
14
- * The input height of the images. Must be between 32 and 1024 and be a multiple of 8. Note: Input resolution is not always the same as output resolution due to upscaling from other features
15
- */
16
- imageHeight?: number | undefined;
17
- /**
18
- * The input height of the images. Must be between 32 and 1024 and be a multiple of 8. Note: Input resolution is not always the same as output resolution due to upscaling from other features
19
- */
20
- imageWidth?: number | undefined;
21
- /**
22
- * The number of images to generate. Must be between 1 and 8. If either width or height is over 768, must be between 1 and 4.
23
- */
24
- numImages?: number | undefined;
13
+ /**
14
+ * The input height of the images. Must be between 32 and 1024 and be a multiple of 8. Note: Input resolution is not always the same as output resolution due to upscaling from other features
15
+ */
16
+ imageHeight?: number | undefined;
17
+ /**
18
+ * The input height of the images. Must be between 32 and 1024 and be a multiple of 8. Note: Input resolution is not always the same as output resolution due to upscaling from other features
19
+ */
20
+ imageWidth?: number | undefined;
21
+ /**
22
+ * The number of images to generate. Must be between 1 and 8. If either width or height is over 768, must be between 1 and 4.
23
+ */
24
+ numImages?: number | undefined;
25
25
  };
26
26
 
27
27
  /**
28
28
  * Parameters for IMAGE_GENERATION service
29
29
  */
30
30
  export type PricingCalculatorPricingCalculatorObject = {
31
- /**
32
- * Enable to use Alchemy.
33
- */
34
- alchemyMode?: boolean | undefined;
35
- /**
36
- * The total cost of controlnets input.
37
- */
38
- controlnetsCost?: number | null | undefined;
39
- /**
40
- * Enable to use high resolution.
41
- */
42
- highResolution?: boolean | undefined;
43
- /**
44
- * The input height of the images. Must be between 32 and 1024 and be a multiple of 8. Note: Input resolution is not always the same as output resolution due to upscaling from other features
45
- */
46
- imageHeight?: number | undefined;
47
- /**
48
- * The input height of the images. Must be between 32 and 1024 and be a multiple of 8. Note: Input resolution is not always the same as output resolution due to upscaling from other features
49
- */
50
- imageWidth?: number | undefined;
51
- /**
52
- * The Step Count to use for the generation. Must be between 10 and 60.
53
- */
54
- inferenceSteps?: number | undefined;
55
- /**
56
- * Enable to use custom model.
57
- */
58
- isModelCustom?: boolean | null | undefined;
59
- /**
60
- * Enable to use SDXL model.
61
- */
62
- isSDXL?: boolean | null | undefined;
63
- /**
64
- * Enable to use SDXL Lightning model.
65
- */
66
- isSDXLLightning?: boolean | null | undefined;
67
- /**
68
- * The number of elements used for the generation.
69
- */
70
- loraCount?: number | null | undefined;
71
- /**
72
- * The number of images to generate. Must be between 1 and 8. If either width or height is over 768, must be between 1 and 4.
73
- */
74
- numImages?: number | undefined;
75
- /**
76
- * Enable to use Prompt Magic.
77
- */
78
- promptMagic?: boolean | null | undefined;
79
- /**
80
- * Strength of prompt magic. Must be a float between 0.1 and 1.0
81
- */
82
- promptMagicStrength?: number | null | undefined;
83
- /**
84
- * Prompt magic version v2 or v3, for use when promptMagic: true
85
- */
86
- promptMagicVersion?: string | null | undefined;
31
+ /**
32
+ * Enable to use Alchemy.
33
+ */
34
+ alchemyMode?: boolean | undefined;
35
+ /**
36
+ * The total cost of controlnets input.
37
+ */
38
+ controlnetsCost?: number | null | undefined;
39
+ /**
40
+ * Enable to use high resolution.
41
+ */
42
+ highResolution?: boolean | undefined;
43
+ /**
44
+ * The input height of the images. Must be between 32 and 1024 and be a multiple of 8. Note: Input resolution is not always the same as output resolution due to upscaling from other features
45
+ */
46
+ imageHeight?: number | undefined;
47
+ /**
48
+ * The input height of the images. Must be between 32 and 1024 and be a multiple of 8. Note: Input resolution is not always the same as output resolution due to upscaling from other features
49
+ */
50
+ imageWidth?: number | undefined;
51
+ /**
52
+ * The Step Count to use for the generation. Must be between 10 and 60.
53
+ */
54
+ inferenceSteps?: number | undefined;
55
+ /**
56
+ * Enable to use custom model.
57
+ */
58
+ isModelCustom?: boolean | null | undefined;
59
+ /**
60
+ * Enable to use Phoenix model.
61
+ */
62
+ isPhoenix?: boolean | null | undefined;
63
+ /**
64
+ * Enable to use SDXL model.
65
+ */
66
+ isSDXL?: boolean | null | undefined;
67
+ /**
68
+ * Enable to use SDXL Lightning model.
69
+ */
70
+ isSDXLLightning?: boolean | null | undefined;
71
+ /**
72
+ * The number of elements used for the generation.
73
+ */
74
+ loraCount?: number | null | undefined;
75
+ /**
76
+ * The number of images to generate. Must be between 1 and 8. If either width or height is over 768, must be between 1 and 4.
77
+ */
78
+ numImages?: number | undefined;
79
+ /**
80
+ * Enable to use Prompt Magic.
81
+ */
82
+ promptMagic?: boolean | null | undefined;
83
+ /**
84
+ * Strength of prompt magic. Must be a float between 0.1 and 1.0
85
+ */
86
+ promptMagicStrength?: number | null | undefined;
87
+ /**
88
+ * Prompt magic version v2 or v3, for use when promptMagic: true
89
+ */
90
+ promptMagicVersion?: string | null | undefined;
91
+ /**
92
+ * Enable to use Ultra mode.
93
+ */
94
+ ultra?: boolean | null | undefined;
87
95
  };
88
96
 
89
97
  /**
90
98
  * Parameters for LCM_GENERATION service
91
99
  */
92
100
  export type PricingCalculatorPricingCalculatorRequestObject = {
93
- /**
94
- * The output height of the image. Must be 512, 640 or 1024.
95
- */
96
- height?: number | null | undefined;
97
- /**
98
- * Enable for instant upscale
99
- */
100
- instantRefine?: boolean | null | undefined;
101
- /**
102
- * Enable for normal alchemy upscale
103
- */
104
- refine?: boolean | null | undefined;
105
- /**
106
- * The output width of the image. Must be 512, 640 or 1024.
107
- */
108
- width?: number | null | undefined;
101
+ /**
102
+ * The output height of the image. Must be 512, 640 or 1024.
103
+ */
104
+ height?: number | null | undefined;
105
+ /**
106
+ * Enable for instant upscale
107
+ */
108
+ instantRefine?: boolean | null | undefined;
109
+ /**
110
+ * Enable for normal alchemy upscale
111
+ */
112
+ refine?: boolean | null | undefined;
113
+ /**
114
+ * The output width of the image. Must be 512, 640 or 1024.
115
+ */
116
+ width?: number | null | undefined;
109
117
  };
110
118
 
111
119
  /**
112
120
  * Parameters for MODEL_TRAINING service
113
121
  */
114
122
  export type PricingCalculatorPricingCalculatorRequestRequestBodyObject = {
115
- /**
116
- * The resolution for training. Must be 512 or 768.
117
- */
118
- resolution?: number | undefined;
123
+ /**
124
+ * The resolution for training. Must be 512 or 768.
125
+ */
126
+ resolution?: number | undefined;
119
127
  };
120
128
 
121
129
  /**
122
130
  * Parameters for MOTION_GENERATION service
123
131
  */
124
- export type PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject = {
132
+ export type PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject =
133
+ {
125
134
  /**
126
135
  * The total duration of the motion generation in seconds.
127
136
  */
128
137
  durationSeconds?: number | undefined;
129
- };
138
+ };
130
139
 
131
140
  /**
132
141
  * Parameters for TEXTURE_GENERATION service
133
142
  */
134
143
  export type PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject =
135
- {
136
- preview?: boolean | undefined;
137
- };
144
+ {
145
+ preview?: boolean | undefined;
146
+ };
138
147
 
139
148
  /**
140
149
  * Parameters for UNIVERSAL_UPSCALER service
141
150
  */
142
151
  export type PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject =
143
- {
144
- /**
145
- * The maximum upscaled image size is 20 megapixels.
146
- */
147
- megapixel?: number | undefined;
148
- };
152
+ {
153
+ /**
154
+ * The maximum upscaled image size is 20 megapixels.
155
+ */
156
+ megapixel?: number | undefined;
157
+ };
149
158
 
150
159
  /**
151
- * Parameters for the service
160
+ * Parameters for UNIVERSAL_UPSCALER_ULTRA service
152
161
  */
153
- export type ObjectT = {
154
- /**
155
- * Parameters for FANTASY_AVATAR_GENERATION service
156
- */
157
- fantasyAvatarGeneration?: PricingCalculatorObject | null | undefined;
162
+ export type PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERULTRAObject =
163
+ {
158
164
  /**
159
- * Parameters for IMAGE_GENERATION service
165
+ * The input height of the image.
160
166
  */
161
- imageGeneration?: PricingCalculatorPricingCalculatorObject | null | undefined;
167
+ inputHeight?: number | undefined;
162
168
  /**
163
- * Parameters for LCM_GENERATION service
169
+ * The input width of the image.
164
170
  */
165
- lcmGeneration?: PricingCalculatorPricingCalculatorRequestObject | null | undefined;
171
+ inputWidth?: number | undefined;
166
172
  /**
167
- * Parameters for MODEL_TRAINING service
173
+ * The upscale multiplier of the universal upscaler. Must be between 1.00 and 2.00.
168
174
  */
169
- modelTraining?: PricingCalculatorPricingCalculatorRequestRequestBodyObject | null | undefined;
170
- /**
171
- * Parameters for MOTION_GENERATION service
172
- */
173
- motionGeneration?:
174
- | PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject
175
- | null
176
- | undefined;
177
- /**
178
- * Parameters for TEXTURE_GENERATION service
179
- */
180
- textureGeneration?:
181
- | PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject
182
- | null
183
- | undefined;
184
- /**
185
- * Parameters for UNIVERSAL_UPSCALER service
186
- */
187
- universalUpscaler?:
188
- | PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject
189
- | null
190
- | undefined;
175
+ upscaleMultiplier?: number | undefined;
176
+ };
177
+
178
+ /**
179
+ * Parameters for the service
180
+ */
181
+ export type ObjectT = {
182
+ /**
183
+ * Parameters for FANTASY_AVATAR_GENERATION service
184
+ */
185
+ fantasyAvatarGeneration?: PricingCalculatorObject | null | undefined;
186
+ /**
187
+ * Parameters for IMAGE_GENERATION service
188
+ */
189
+ imageGeneration?: PricingCalculatorPricingCalculatorObject | null | undefined;
190
+ /**
191
+ * Parameters for LCM_GENERATION service
192
+ */
193
+ lcmGeneration?:
194
+ | PricingCalculatorPricingCalculatorRequestObject
195
+ | null
196
+ | undefined;
197
+ /**
198
+ * Parameters for MODEL_TRAINING service
199
+ */
200
+ modelTraining?:
201
+ | PricingCalculatorPricingCalculatorRequestRequestBodyObject
202
+ | null
203
+ | undefined;
204
+ /**
205
+ * Parameters for MOTION_GENERATION service
206
+ */
207
+ motionGeneration?:
208
+ | PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject
209
+ | null
210
+ | undefined;
211
+ /**
212
+ * Parameters for TEXTURE_GENERATION service
213
+ */
214
+ textureGeneration?:
215
+ | PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject
216
+ | null
217
+ | undefined;
218
+ /**
219
+ * Parameters for UNIVERSAL_UPSCALER service
220
+ */
221
+ universalUpscaler?:
222
+ | PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject
223
+ | null
224
+ | undefined;
225
+ /**
226
+ * Parameters for UNIVERSAL_UPSCALER_ULTRA service
227
+ */
228
+ universalUpscalerUltra?:
229
+ | PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERULTRAObject
230
+ | null
231
+ | undefined;
191
232
  };
192
233
 
193
234
  export type PricingCalculatorRequestBody = {
194
- /**
195
- * The services to be chosen for calculating the API credit cost.
196
- */
197
- service?: shared.PricingCalculatorServices | undefined;
198
- /**
199
- * Parameters for the service
200
- */
201
- serviceParams?: ObjectT | undefined;
235
+ /**
236
+ * The services to be chosen for calculating the API credit cost.
237
+ */
238
+ service?: shared.PricingCalculatorServices | undefined;
239
+ /**
240
+ * Parameters for the service
241
+ */
242
+ serviceParams?: ObjectT | undefined;
202
243
  };
203
244
 
204
245
  export type CalculateProductionApiServiceCost = {
205
- /**
206
- * API service cost to generate the image.
207
- */
208
- cost?: number | undefined;
246
+ /**
247
+ * API service cost to generate the image.
248
+ */
249
+ cost?: number | undefined;
209
250
  };
210
251
 
211
252
  /**
212
253
  * Responses for POST /pricing-calculator
213
254
  */
214
255
  export type PricingCalculatorResponseBody = {
215
- calculateProductionApiServiceCost?: CalculateProductionApiServiceCost | null | undefined;
256
+ calculateProductionApiServiceCost?:
257
+ | CalculateProductionApiServiceCost
258
+ | null
259
+ | undefined;
216
260
  };
217
261
 
218
262
  export type PricingCalculatorResponse = {
219
- /**
220
- * HTTP response content type for this operation
221
- */
222
- contentType: string;
223
- /**
224
- * HTTP response status code for this operation
225
- */
226
- statusCode: number;
227
- /**
228
- * Raw HTTP response; suitable for custom response parsing
229
- */
230
- rawResponse: Response;
231
- /**
232
- * Responses for POST /pricing-calculator
233
- */
234
- object?: PricingCalculatorResponseBody | undefined;
263
+ /**
264
+ * HTTP response content type for this operation
265
+ */
266
+ contentType: string;
267
+ /**
268
+ * HTTP response status code for this operation
269
+ */
270
+ statusCode: number;
271
+ /**
272
+ * Raw HTTP response; suitable for custom response parsing
273
+ */
274
+ rawResponse: Response;
275
+ /**
276
+ * Responses for POST /pricing-calculator
277
+ */
278
+ object?: PricingCalculatorResponseBody | undefined;
235
279
  };
236
280
 
237
281
  /** @internal */
238
282
  export const PricingCalculatorObject$inboundSchema: z.ZodType<
239
- PricingCalculatorObject,
240
- z.ZodTypeDef,
241
- unknown
283
+ PricingCalculatorObject,
284
+ z.ZodTypeDef,
285
+ unknown
242
286
  > = z.object({
243
- imageHeight: z.number().int().optional(),
244
- imageWidth: z.number().int().optional(),
245
- numImages: z.number().int().optional(),
287
+ imageHeight: z.number().int().optional(),
288
+ imageWidth: z.number().int().optional(),
289
+ numImages: z.number().int().optional(),
246
290
  });
247
291
 
248
292
  /** @internal */
249
293
  export type PricingCalculatorObject$Outbound = {
250
- imageHeight?: number | undefined;
251
- imageWidth?: number | undefined;
252
- numImages?: number | undefined;
294
+ imageHeight?: number | undefined;
295
+ imageWidth?: number | undefined;
296
+ numImages?: number | undefined;
253
297
  };
254
298
 
255
299
  /** @internal */
256
300
  export const PricingCalculatorObject$outboundSchema: z.ZodType<
257
- PricingCalculatorObject$Outbound,
258
- z.ZodTypeDef,
259
- PricingCalculatorObject
301
+ PricingCalculatorObject$Outbound,
302
+ z.ZodTypeDef,
303
+ PricingCalculatorObject
260
304
  > = z.object({
261
- imageHeight: z.number().int().optional(),
262
- imageWidth: z.number().int().optional(),
263
- numImages: z.number().int().optional(),
305
+ imageHeight: z.number().int().optional(),
306
+ imageWidth: z.number().int().optional(),
307
+ numImages: z.number().int().optional(),
264
308
  });
265
309
 
266
310
  /**
@@ -268,74 +312,80 @@ export const PricingCalculatorObject$outboundSchema: z.ZodType<
268
312
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
269
313
  */
270
314
  export namespace PricingCalculatorObject$ {
271
- /** @deprecated use `PricingCalculatorObject$inboundSchema` instead. */
272
- export const inboundSchema = PricingCalculatorObject$inboundSchema;
273
- /** @deprecated use `PricingCalculatorObject$outboundSchema` instead. */
274
- export const outboundSchema = PricingCalculatorObject$outboundSchema;
275
- /** @deprecated use `PricingCalculatorObject$Outbound` instead. */
276
- export type Outbound = PricingCalculatorObject$Outbound;
315
+ /** @deprecated use `PricingCalculatorObject$inboundSchema` instead. */
316
+ export const inboundSchema = PricingCalculatorObject$inboundSchema;
317
+ /** @deprecated use `PricingCalculatorObject$outboundSchema` instead. */
318
+ export const outboundSchema = PricingCalculatorObject$outboundSchema;
319
+ /** @deprecated use `PricingCalculatorObject$Outbound` instead. */
320
+ export type Outbound = PricingCalculatorObject$Outbound;
277
321
  }
278
322
 
279
323
  /** @internal */
280
324
  export const PricingCalculatorPricingCalculatorObject$inboundSchema: z.ZodType<
281
- PricingCalculatorPricingCalculatorObject,
282
- z.ZodTypeDef,
283
- unknown
325
+ PricingCalculatorPricingCalculatorObject,
326
+ z.ZodTypeDef,
327
+ unknown
284
328
  > = z.object({
285
- alchemyMode: z.boolean().optional(),
286
- controlnetsCost: z.nullable(z.number().int()).optional(),
287
- highResolution: z.boolean().optional(),
288
- imageHeight: z.number().int().optional(),
289
- imageWidth: z.number().int().optional(),
290
- inferenceSteps: z.number().int().optional(),
291
- isModelCustom: z.nullable(z.boolean()).optional(),
292
- isSDXL: z.nullable(z.boolean()).optional(),
293
- isSDXLLightning: z.nullable(z.boolean()).optional(),
294
- loraCount: z.nullable(z.number().int()).optional(),
295
- numImages: z.number().int().optional(),
296
- promptMagic: z.nullable(z.boolean()).optional(),
297
- promptMagicStrength: z.nullable(z.number()).optional(),
298
- promptMagicVersion: z.nullable(z.string()).optional(),
329
+ alchemyMode: z.boolean().optional(),
330
+ controlnetsCost: z.nullable(z.number().int()).optional(),
331
+ highResolution: z.boolean().optional(),
332
+ imageHeight: z.number().int().optional(),
333
+ imageWidth: z.number().int().optional(),
334
+ inferenceSteps: z.number().int().optional(),
335
+ isModelCustom: z.nullable(z.boolean()).optional(),
336
+ isPhoenix: z.nullable(z.boolean()).optional(),
337
+ isSDXL: z.nullable(z.boolean()).optional(),
338
+ isSDXLLightning: z.nullable(z.boolean()).optional(),
339
+ loraCount: z.nullable(z.number().int()).optional(),
340
+ numImages: z.number().int().optional(),
341
+ promptMagic: z.nullable(z.boolean()).optional(),
342
+ promptMagicStrength: z.nullable(z.number()).optional(),
343
+ promptMagicVersion: z.nullable(z.string()).optional(),
344
+ ultra: z.nullable(z.boolean()).optional(),
299
345
  });
300
346
 
301
347
  /** @internal */
302
348
  export type PricingCalculatorPricingCalculatorObject$Outbound = {
303
- alchemyMode?: boolean | undefined;
304
- controlnetsCost?: number | null | undefined;
305
- highResolution?: boolean | undefined;
306
- imageHeight?: number | undefined;
307
- imageWidth?: number | undefined;
308
- inferenceSteps?: number | undefined;
309
- isModelCustom?: boolean | null | undefined;
310
- isSDXL?: boolean | null | undefined;
311
- isSDXLLightning?: boolean | null | undefined;
312
- loraCount?: number | null | undefined;
313
- numImages?: number | undefined;
314
- promptMagic?: boolean | null | undefined;
315
- promptMagicStrength?: number | null | undefined;
316
- promptMagicVersion?: string | null | undefined;
349
+ alchemyMode?: boolean | undefined;
350
+ controlnetsCost?: number | null | undefined;
351
+ highResolution?: boolean | undefined;
352
+ imageHeight?: number | undefined;
353
+ imageWidth?: number | undefined;
354
+ inferenceSteps?: number | undefined;
355
+ isModelCustom?: boolean | null | undefined;
356
+ isPhoenix?: boolean | null | undefined;
357
+ isSDXL?: boolean | null | undefined;
358
+ isSDXLLightning?: boolean | null | undefined;
359
+ loraCount?: number | null | undefined;
360
+ numImages?: number | undefined;
361
+ promptMagic?: boolean | null | undefined;
362
+ promptMagicStrength?: number | null | undefined;
363
+ promptMagicVersion?: string | null | undefined;
364
+ ultra?: boolean | null | undefined;
317
365
  };
318
366
 
319
367
  /** @internal */
320
368
  export const PricingCalculatorPricingCalculatorObject$outboundSchema: z.ZodType<
321
- PricingCalculatorPricingCalculatorObject$Outbound,
322
- z.ZodTypeDef,
323
- PricingCalculatorPricingCalculatorObject
369
+ PricingCalculatorPricingCalculatorObject$Outbound,
370
+ z.ZodTypeDef,
371
+ PricingCalculatorPricingCalculatorObject
324
372
  > = z.object({
325
- alchemyMode: z.boolean().optional(),
326
- controlnetsCost: z.nullable(z.number().int()).optional(),
327
- highResolution: z.boolean().optional(),
328
- imageHeight: z.number().int().optional(),
329
- imageWidth: z.number().int().optional(),
330
- inferenceSteps: z.number().int().optional(),
331
- isModelCustom: z.nullable(z.boolean()).optional(),
332
- isSDXL: z.nullable(z.boolean()).optional(),
333
- isSDXLLightning: z.nullable(z.boolean()).optional(),
334
- loraCount: z.nullable(z.number().int()).optional(),
335
- numImages: z.number().int().optional(),
336
- promptMagic: z.nullable(z.boolean()).optional(),
337
- promptMagicStrength: z.nullable(z.number()).optional(),
338
- promptMagicVersion: z.nullable(z.string()).optional(),
373
+ alchemyMode: z.boolean().optional(),
374
+ controlnetsCost: z.nullable(z.number().int()).optional(),
375
+ highResolution: z.boolean().optional(),
376
+ imageHeight: z.number().int().optional(),
377
+ imageWidth: z.number().int().optional(),
378
+ inferenceSteps: z.number().int().optional(),
379
+ isModelCustom: z.nullable(z.boolean()).optional(),
380
+ isPhoenix: z.nullable(z.boolean()).optional(),
381
+ isSDXL: z.nullable(z.boolean()).optional(),
382
+ isSDXLLightning: z.nullable(z.boolean()).optional(),
383
+ loraCount: z.nullable(z.number().int()).optional(),
384
+ numImages: z.number().int().optional(),
385
+ promptMagic: z.nullable(z.boolean()).optional(),
386
+ promptMagicStrength: z.nullable(z.number()).optional(),
387
+ promptMagicVersion: z.nullable(z.string()).optional(),
388
+ ultra: z.nullable(z.boolean()).optional(),
339
389
  });
340
390
 
341
391
  /**
@@ -343,388 +393,462 @@ export const PricingCalculatorPricingCalculatorObject$outboundSchema: z.ZodType<
343
393
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
344
394
  */
345
395
  export namespace PricingCalculatorPricingCalculatorObject$ {
346
- /** @deprecated use `PricingCalculatorPricingCalculatorObject$inboundSchema` instead. */
347
- export const inboundSchema = PricingCalculatorPricingCalculatorObject$inboundSchema;
348
- /** @deprecated use `PricingCalculatorPricingCalculatorObject$outboundSchema` instead. */
349
- export const outboundSchema = PricingCalculatorPricingCalculatorObject$outboundSchema;
350
- /** @deprecated use `PricingCalculatorPricingCalculatorObject$Outbound` instead. */
351
- export type Outbound = PricingCalculatorPricingCalculatorObject$Outbound;
396
+ /** @deprecated use `PricingCalculatorPricingCalculatorObject$inboundSchema` instead. */
397
+ export const inboundSchema =
398
+ PricingCalculatorPricingCalculatorObject$inboundSchema;
399
+ /** @deprecated use `PricingCalculatorPricingCalculatorObject$outboundSchema` instead. */
400
+ export const outboundSchema =
401
+ PricingCalculatorPricingCalculatorObject$outboundSchema;
402
+ /** @deprecated use `PricingCalculatorPricingCalculatorObject$Outbound` instead. */
403
+ export type Outbound = PricingCalculatorPricingCalculatorObject$Outbound;
352
404
  }
353
405
 
354
406
  /** @internal */
355
- export const PricingCalculatorPricingCalculatorRequestObject$inboundSchema: z.ZodType<
407
+ export const PricingCalculatorPricingCalculatorRequestObject$inboundSchema:
408
+ z.ZodType<
356
409
  PricingCalculatorPricingCalculatorRequestObject,
357
410
  z.ZodTypeDef,
358
411
  unknown
359
- > = z.object({
412
+ > = z.object({
360
413
  height: z.nullable(z.number().int()).optional(),
361
414
  instantRefine: z.nullable(z.boolean()).optional(),
362
415
  refine: z.nullable(z.boolean()).optional(),
363
416
  width: z.nullable(z.number().int()).optional(),
364
- });
417
+ });
365
418
 
366
419
  /** @internal */
367
420
  export type PricingCalculatorPricingCalculatorRequestObject$Outbound = {
368
- height?: number | null | undefined;
369
- instantRefine?: boolean | null | undefined;
370
- refine?: boolean | null | undefined;
371
- width?: number | null | undefined;
421
+ height?: number | null | undefined;
422
+ instantRefine?: boolean | null | undefined;
423
+ refine?: boolean | null | undefined;
424
+ width?: number | null | undefined;
372
425
  };
373
426
 
374
427
  /** @internal */
375
- export const PricingCalculatorPricingCalculatorRequestObject$outboundSchema: z.ZodType<
428
+ export const PricingCalculatorPricingCalculatorRequestObject$outboundSchema:
429
+ z.ZodType<
376
430
  PricingCalculatorPricingCalculatorRequestObject$Outbound,
377
431
  z.ZodTypeDef,
378
432
  PricingCalculatorPricingCalculatorRequestObject
379
- > = z.object({
433
+ > = z.object({
380
434
  height: z.nullable(z.number().int()).optional(),
381
435
  instantRefine: z.nullable(z.boolean()).optional(),
382
436
  refine: z.nullable(z.boolean()).optional(),
383
437
  width: z.nullable(z.number().int()).optional(),
384
- });
438
+ });
385
439
 
386
440
  /**
387
441
  * @internal
388
442
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
389
443
  */
390
444
  export namespace PricingCalculatorPricingCalculatorRequestObject$ {
391
- /** @deprecated use `PricingCalculatorPricingCalculatorRequestObject$inboundSchema` instead. */
392
- export const inboundSchema = PricingCalculatorPricingCalculatorRequestObject$inboundSchema;
393
- /** @deprecated use `PricingCalculatorPricingCalculatorRequestObject$outboundSchema` instead. */
394
- export const outboundSchema = PricingCalculatorPricingCalculatorRequestObject$outboundSchema;
395
- /** @deprecated use `PricingCalculatorPricingCalculatorRequestObject$Outbound` instead. */
396
- export type Outbound = PricingCalculatorPricingCalculatorRequestObject$Outbound;
445
+ /** @deprecated use `PricingCalculatorPricingCalculatorRequestObject$inboundSchema` instead. */
446
+ export const inboundSchema =
447
+ PricingCalculatorPricingCalculatorRequestObject$inboundSchema;
448
+ /** @deprecated use `PricingCalculatorPricingCalculatorRequestObject$outboundSchema` instead. */
449
+ export const outboundSchema =
450
+ PricingCalculatorPricingCalculatorRequestObject$outboundSchema;
451
+ /** @deprecated use `PricingCalculatorPricingCalculatorRequestObject$Outbound` instead. */
452
+ export type Outbound =
453
+ PricingCalculatorPricingCalculatorRequestObject$Outbound;
397
454
  }
398
455
 
399
456
  /** @internal */
400
- export const PricingCalculatorPricingCalculatorRequestRequestBodyObject$inboundSchema: z.ZodType<
457
+ export const PricingCalculatorPricingCalculatorRequestRequestBodyObject$inboundSchema:
458
+ z.ZodType<
401
459
  PricingCalculatorPricingCalculatorRequestRequestBodyObject,
402
460
  z.ZodTypeDef,
403
461
  unknown
404
- > = z.object({
462
+ > = z.object({
405
463
  resolution: z.number().int().optional(),
406
- });
464
+ });
407
465
 
408
466
  /** @internal */
409
- export type PricingCalculatorPricingCalculatorRequestRequestBodyObject$Outbound = {
467
+ export type PricingCalculatorPricingCalculatorRequestRequestBodyObject$Outbound =
468
+ {
410
469
  resolution?: number | undefined;
411
- };
470
+ };
412
471
 
413
472
  /** @internal */
414
- export const PricingCalculatorPricingCalculatorRequestRequestBodyObject$outboundSchema: z.ZodType<
473
+ export const PricingCalculatorPricingCalculatorRequestRequestBodyObject$outboundSchema:
474
+ z.ZodType<
415
475
  PricingCalculatorPricingCalculatorRequestRequestBodyObject$Outbound,
416
476
  z.ZodTypeDef,
417
477
  PricingCalculatorPricingCalculatorRequestRequestBodyObject
418
- > = z.object({
478
+ > = z.object({
419
479
  resolution: z.number().int().optional(),
420
- });
480
+ });
421
481
 
422
482
  /**
423
483
  * @internal
424
484
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
425
485
  */
426
486
  export namespace PricingCalculatorPricingCalculatorRequestRequestBodyObject$ {
427
- /** @deprecated use `PricingCalculatorPricingCalculatorRequestRequestBodyObject$inboundSchema` instead. */
428
- export const inboundSchema =
429
- PricingCalculatorPricingCalculatorRequestRequestBodyObject$inboundSchema;
430
- /** @deprecated use `PricingCalculatorPricingCalculatorRequestRequestBodyObject$outboundSchema` instead. */
431
- export const outboundSchema =
432
- PricingCalculatorPricingCalculatorRequestRequestBodyObject$outboundSchema;
433
- /** @deprecated use `PricingCalculatorPricingCalculatorRequestRequestBodyObject$Outbound` instead. */
434
- export type Outbound = PricingCalculatorPricingCalculatorRequestRequestBodyObject$Outbound;
487
+ /** @deprecated use `PricingCalculatorPricingCalculatorRequestRequestBodyObject$inboundSchema` instead. */
488
+ export const inboundSchema =
489
+ PricingCalculatorPricingCalculatorRequestRequestBodyObject$inboundSchema;
490
+ /** @deprecated use `PricingCalculatorPricingCalculatorRequestRequestBodyObject$outboundSchema` instead. */
491
+ export const outboundSchema =
492
+ PricingCalculatorPricingCalculatorRequestRequestBodyObject$outboundSchema;
493
+ /** @deprecated use `PricingCalculatorPricingCalculatorRequestRequestBodyObject$Outbound` instead. */
494
+ export type Outbound =
495
+ PricingCalculatorPricingCalculatorRequestRequestBodyObject$Outbound;
435
496
  }
436
497
 
437
498
  /** @internal */
438
- export const PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$inboundSchema: z.ZodType<
499
+ export const PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$inboundSchema:
500
+ z.ZodType<
439
501
  PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject,
440
502
  z.ZodTypeDef,
441
503
  unknown
442
- > = z.object({
504
+ > = z.object({
443
505
  durationSeconds: z.number().int().optional(),
444
- });
506
+ });
445
507
 
446
508
  /** @internal */
447
- export type PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$Outbound = {
509
+ export type PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$Outbound =
510
+ {
448
511
  durationSeconds?: number | undefined;
449
- };
512
+ };
450
513
 
451
514
  /** @internal */
452
- export const PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$outboundSchema: z.ZodType<
515
+ export const PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$outboundSchema:
516
+ z.ZodType<
453
517
  PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$Outbound,
454
518
  z.ZodTypeDef,
455
519
  PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject
456
- > = z.object({
520
+ > = z.object({
457
521
  durationSeconds: z.number().int().optional(),
458
- });
522
+ });
459
523
 
460
524
  /**
461
525
  * @internal
462
526
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
463
527
  */
464
528
  export namespace PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$ {
465
- /** @deprecated use `PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$inboundSchema` instead. */
466
- export const inboundSchema =
467
- PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$inboundSchema;
468
- /** @deprecated use `PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$outboundSchema` instead. */
469
- export const outboundSchema =
470
- PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$outboundSchema;
471
- /** @deprecated use `PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$Outbound` instead. */
472
- export type Outbound =
473
- PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$Outbound;
529
+ /** @deprecated use `PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$inboundSchema` instead. */
530
+ export const inboundSchema =
531
+ PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$inboundSchema;
532
+ /** @deprecated use `PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$outboundSchema` instead. */
533
+ export const outboundSchema =
534
+ PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$outboundSchema;
535
+ /** @deprecated use `PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$Outbound` instead. */
536
+ export type Outbound =
537
+ PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$Outbound;
474
538
  }
475
539
 
476
540
  /** @internal */
477
- export const PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject$inboundSchema: z.ZodType<
541
+ export const PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject$inboundSchema:
542
+ z.ZodType<
478
543
  PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject,
479
544
  z.ZodTypeDef,
480
545
  unknown
481
- > = z.object({
546
+ > = z.object({
482
547
  preview: z.boolean().optional(),
483
- });
548
+ });
484
549
 
485
550
  /** @internal */
486
551
  export type PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject$Outbound =
487
- {
488
- preview?: boolean | undefined;
489
- };
552
+ {
553
+ preview?: boolean | undefined;
554
+ };
490
555
 
491
556
  /** @internal */
492
- export const PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject$outboundSchema: z.ZodType<
557
+ export const PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject$outboundSchema:
558
+ z.ZodType<
493
559
  PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject$Outbound,
494
560
  z.ZodTypeDef,
495
561
  PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject
496
- > = z.object({
562
+ > = z.object({
497
563
  preview: z.boolean().optional(),
498
- });
564
+ });
499
565
 
500
566
  /**
501
567
  * @internal
502
568
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
503
569
  */
504
570
  export namespace PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject$ {
505
- /** @deprecated use `PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject$inboundSchema` instead. */
506
- export const inboundSchema =
507
- PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject$inboundSchema;
508
- /** @deprecated use `PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject$outboundSchema` instead. */
509
- export const outboundSchema =
510
- PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject$outboundSchema;
511
- /** @deprecated use `PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject$Outbound` instead. */
512
- export type Outbound =
513
- PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject$Outbound;
571
+ /** @deprecated use `PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject$inboundSchema` instead. */
572
+ export const inboundSchema =
573
+ PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject$inboundSchema;
574
+ /** @deprecated use `PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject$outboundSchema` instead. */
575
+ export const outboundSchema =
576
+ PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject$outboundSchema;
577
+ /** @deprecated use `PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject$Outbound` instead. */
578
+ export type Outbound =
579
+ PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject$Outbound;
514
580
  }
515
581
 
516
582
  /** @internal */
517
- export const PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject$inboundSchema: z.ZodType<
583
+ export const PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject$inboundSchema:
584
+ z.ZodType<
518
585
  PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject,
519
586
  z.ZodTypeDef,
520
587
  unknown
521
- > = z.object({
588
+ > = z.object({
522
589
  megapixel: z.number().int().optional(),
523
- });
590
+ });
524
591
 
525
592
  /** @internal */
526
593
  export type PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject$Outbound =
527
- {
528
- megapixel?: number | undefined;
529
- };
594
+ {
595
+ megapixel?: number | undefined;
596
+ };
530
597
 
531
598
  /** @internal */
532
- export const PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject$outboundSchema: z.ZodType<
599
+ export const PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject$outboundSchema:
600
+ z.ZodType<
533
601
  PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject$Outbound,
534
602
  z.ZodTypeDef,
535
603
  PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject
536
- > = z.object({
604
+ > = z.object({
537
605
  megapixel: z.number().int().optional(),
538
- });
606
+ });
539
607
 
540
608
  /**
541
609
  * @internal
542
610
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
543
611
  */
544
612
  export namespace PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject$ {
545
- /** @deprecated use `PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject$inboundSchema` instead. */
546
- export const inboundSchema =
547
- PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject$inboundSchema;
548
- /** @deprecated use `PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject$outboundSchema` instead. */
549
- export const outboundSchema =
550
- PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject$outboundSchema;
551
- /** @deprecated use `PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject$Outbound` instead. */
552
- export type Outbound =
553
- PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject$Outbound;
613
+ /** @deprecated use `PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject$inboundSchema` instead. */
614
+ export const inboundSchema =
615
+ PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject$inboundSchema;
616
+ /** @deprecated use `PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject$outboundSchema` instead. */
617
+ export const outboundSchema =
618
+ PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject$outboundSchema;
619
+ /** @deprecated use `PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject$Outbound` instead. */
620
+ export type Outbound =
621
+ PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject$Outbound;
554
622
  }
555
623
 
556
624
  /** @internal */
557
- export const ObjectT$inboundSchema: z.ZodType<ObjectT, z.ZodTypeDef, unknown> = z
558
- .object({
559
- FANTASY_AVATAR_GENERATION: z
560
- .nullable(z.lazy(() => PricingCalculatorObject$inboundSchema))
561
- .optional(),
562
- IMAGE_GENERATION: z
563
- .nullable(z.lazy(() => PricingCalculatorPricingCalculatorObject$inboundSchema))
564
- .optional(),
565
- LCM_GENERATION: z
566
- .nullable(z.lazy(() => PricingCalculatorPricingCalculatorRequestObject$inboundSchema))
567
- .optional(),
568
- MODEL_TRAINING: z
569
- .nullable(
570
- z.lazy(
571
- () => PricingCalculatorPricingCalculatorRequestRequestBodyObject$inboundSchema
572
- )
573
- )
574
- .optional(),
575
- MOTION_GENERATION: z
576
- .nullable(
577
- z.lazy(
578
- () =>
579
- PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$inboundSchema
580
- )
581
- )
582
- .optional(),
583
- TEXTURE_GENERATION: z
584
- .nullable(
585
- z.lazy(
586
- () =>
587
- PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject$inboundSchema
588
- )
589
- )
590
- .optional(),
591
- UNIVERSAL_UPSCALER: z
592
- .nullable(
593
- z.lazy(
594
- () =>
595
- PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject$inboundSchema
596
- )
597
- )
598
- .optional(),
599
- })
600
- .transform((v) => {
601
- return remap$(v, {
602
- FANTASY_AVATAR_GENERATION: "fantasyAvatarGeneration",
603
- IMAGE_GENERATION: "imageGeneration",
604
- LCM_GENERATION: "lcmGeneration",
605
- MODEL_TRAINING: "modelTraining",
606
- MOTION_GENERATION: "motionGeneration",
607
- TEXTURE_GENERATION: "textureGeneration",
608
- UNIVERSAL_UPSCALER: "universalUpscaler",
609
- });
625
+ export const PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERULTRAObject$inboundSchema:
626
+ z.ZodType<
627
+ PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERULTRAObject,
628
+ z.ZodTypeDef,
629
+ unknown
630
+ > = z.object({
631
+ inputHeight: z.number().int().optional(),
632
+ inputWidth: z.number().int().optional(),
633
+ upscaleMultiplier: z.number().default(1.5),
634
+ });
635
+
636
+ /** @internal */
637
+ export type PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERULTRAObject$Outbound =
638
+ {
639
+ inputHeight?: number | undefined;
640
+ inputWidth?: number | undefined;
641
+ upscaleMultiplier: number;
642
+ };
643
+
644
+ /** @internal */
645
+ export const PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERULTRAObject$outboundSchema:
646
+ z.ZodType<
647
+ PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERULTRAObject$Outbound,
648
+ z.ZodTypeDef,
649
+ PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERULTRAObject
650
+ > = z.object({
651
+ inputHeight: z.number().int().optional(),
652
+ inputWidth: z.number().int().optional(),
653
+ upscaleMultiplier: z.number().default(1.5),
654
+ });
655
+
656
+ /**
657
+ * @internal
658
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
659
+ */
660
+ export namespace PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERULTRAObject$ {
661
+ /** @deprecated use `PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERULTRAObject$inboundSchema` instead. */
662
+ export const inboundSchema =
663
+ PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERULTRAObject$inboundSchema;
664
+ /** @deprecated use `PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERULTRAObject$outboundSchema` instead. */
665
+ export const outboundSchema =
666
+ PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERULTRAObject$outboundSchema;
667
+ /** @deprecated use `PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERULTRAObject$Outbound` instead. */
668
+ export type Outbound =
669
+ PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERULTRAObject$Outbound;
670
+ }
671
+
672
+ /** @internal */
673
+ export const ObjectT$inboundSchema: z.ZodType<ObjectT, z.ZodTypeDef, unknown> =
674
+ z.object({
675
+ FANTASY_AVATAR_GENERATION: z.nullable(
676
+ z.lazy(() => PricingCalculatorObject$inboundSchema),
677
+ ).optional(),
678
+ IMAGE_GENERATION: z.nullable(
679
+ z.lazy(() => PricingCalculatorPricingCalculatorObject$inboundSchema),
680
+ ).optional(),
681
+ LCM_GENERATION: z.nullable(
682
+ z.lazy(() =>
683
+ PricingCalculatorPricingCalculatorRequestObject$inboundSchema
684
+ ),
685
+ ).optional(),
686
+ MODEL_TRAINING: z.nullable(
687
+ z.lazy(() =>
688
+ PricingCalculatorPricingCalculatorRequestRequestBodyObject$inboundSchema
689
+ ),
690
+ ).optional(),
691
+ MOTION_GENERATION: z.nullable(
692
+ z.lazy(() =>
693
+ PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$inboundSchema
694
+ ),
695
+ ).optional(),
696
+ TEXTURE_GENERATION: z.nullable(
697
+ z.lazy(() =>
698
+ PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject$inboundSchema
699
+ ),
700
+ ).optional(),
701
+ UNIVERSAL_UPSCALER: z.nullable(
702
+ z.lazy(() =>
703
+ PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject$inboundSchema
704
+ ),
705
+ ).optional(),
706
+ UNIVERSAL_UPSCALER_ULTRA: z.nullable(
707
+ z.lazy(() =>
708
+ PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERULTRAObject$inboundSchema
709
+ ),
710
+ ).optional(),
711
+ }).transform((v) => {
712
+ return remap$(v, {
713
+ "FANTASY_AVATAR_GENERATION": "fantasyAvatarGeneration",
714
+ "IMAGE_GENERATION": "imageGeneration",
715
+ "LCM_GENERATION": "lcmGeneration",
716
+ "MODEL_TRAINING": "modelTraining",
717
+ "MOTION_GENERATION": "motionGeneration",
718
+ "TEXTURE_GENERATION": "textureGeneration",
719
+ "UNIVERSAL_UPSCALER": "universalUpscaler",
720
+ "UNIVERSAL_UPSCALER_ULTRA": "universalUpscalerUltra",
610
721
  });
722
+ });
611
723
 
612
724
  /** @internal */
613
725
  export type ObjectT$Outbound = {
614
- FANTASY_AVATAR_GENERATION?: PricingCalculatorObject$Outbound | null | undefined;
615
- IMAGE_GENERATION?: PricingCalculatorPricingCalculatorObject$Outbound | null | undefined;
616
- LCM_GENERATION?: PricingCalculatorPricingCalculatorRequestObject$Outbound | null | undefined;
617
- MODEL_TRAINING?:
618
- | PricingCalculatorPricingCalculatorRequestRequestBodyObject$Outbound
619
- | null
620
- | undefined;
621
- MOTION_GENERATION?:
622
- | PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$Outbound
623
- | null
624
- | undefined;
625
- TEXTURE_GENERATION?:
626
- | PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject$Outbound
627
- | null
628
- | undefined;
629
- UNIVERSAL_UPSCALER?:
630
- | PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject$Outbound
631
- | null
632
- | undefined;
726
+ FANTASY_AVATAR_GENERATION?:
727
+ | PricingCalculatorObject$Outbound
728
+ | null
729
+ | undefined;
730
+ IMAGE_GENERATION?:
731
+ | PricingCalculatorPricingCalculatorObject$Outbound
732
+ | null
733
+ | undefined;
734
+ LCM_GENERATION?:
735
+ | PricingCalculatorPricingCalculatorRequestObject$Outbound
736
+ | null
737
+ | undefined;
738
+ MODEL_TRAINING?:
739
+ | PricingCalculatorPricingCalculatorRequestRequestBodyObject$Outbound
740
+ | null
741
+ | undefined;
742
+ MOTION_GENERATION?:
743
+ | PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$Outbound
744
+ | null
745
+ | undefined;
746
+ TEXTURE_GENERATION?:
747
+ | PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject$Outbound
748
+ | null
749
+ | undefined;
750
+ UNIVERSAL_UPSCALER?:
751
+ | PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject$Outbound
752
+ | null
753
+ | undefined;
754
+ UNIVERSAL_UPSCALER_ULTRA?:
755
+ | PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERULTRAObject$Outbound
756
+ | null
757
+ | undefined;
633
758
  };
634
759
 
635
760
  /** @internal */
636
- export const ObjectT$outboundSchema: z.ZodType<ObjectT$Outbound, z.ZodTypeDef, ObjectT> = z
637
- .object({
638
- fantasyAvatarGeneration: z
639
- .nullable(z.lazy(() => PricingCalculatorObject$outboundSchema))
640
- .optional(),
641
- imageGeneration: z
642
- .nullable(z.lazy(() => PricingCalculatorPricingCalculatorObject$outboundSchema))
643
- .optional(),
644
- lcmGeneration: z
645
- .nullable(z.lazy(() => PricingCalculatorPricingCalculatorRequestObject$outboundSchema))
646
- .optional(),
647
- modelTraining: z
648
- .nullable(
649
- z.lazy(
650
- () => PricingCalculatorPricingCalculatorRequestRequestBodyObject$outboundSchema
651
- )
652
- )
653
- .optional(),
654
- motionGeneration: z
655
- .nullable(
656
- z.lazy(
657
- () =>
658
- PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$outboundSchema
659
- )
660
- )
661
- .optional(),
662
- textureGeneration: z
663
- .nullable(
664
- z.lazy(
665
- () =>
666
- PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject$outboundSchema
667
- )
668
- )
669
- .optional(),
670
- universalUpscaler: z
671
- .nullable(
672
- z.lazy(
673
- () =>
674
- PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject$outboundSchema
675
- )
676
- )
677
- .optional(),
678
- })
679
- .transform((v) => {
680
- return remap$(v, {
681
- fantasyAvatarGeneration: "FANTASY_AVATAR_GENERATION",
682
- imageGeneration: "IMAGE_GENERATION",
683
- lcmGeneration: "LCM_GENERATION",
684
- modelTraining: "MODEL_TRAINING",
685
- motionGeneration: "MOTION_GENERATION",
686
- textureGeneration: "TEXTURE_GENERATION",
687
- universalUpscaler: "UNIVERSAL_UPSCALER",
688
- });
689
- });
761
+ export const ObjectT$outboundSchema: z.ZodType<
762
+ ObjectT$Outbound,
763
+ z.ZodTypeDef,
764
+ ObjectT
765
+ > = z.object({
766
+ fantasyAvatarGeneration: z.nullable(
767
+ z.lazy(() => PricingCalculatorObject$outboundSchema),
768
+ ).optional(),
769
+ imageGeneration: z.nullable(
770
+ z.lazy(() => PricingCalculatorPricingCalculatorObject$outboundSchema),
771
+ ).optional(),
772
+ lcmGeneration: z.nullable(
773
+ z.lazy(() =>
774
+ PricingCalculatorPricingCalculatorRequestObject$outboundSchema
775
+ ),
776
+ ).optional(),
777
+ modelTraining: z.nullable(
778
+ z.lazy(() =>
779
+ PricingCalculatorPricingCalculatorRequestRequestBodyObject$outboundSchema
780
+ ),
781
+ ).optional(),
782
+ motionGeneration: z.nullable(
783
+ z.lazy(() =>
784
+ PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$outboundSchema
785
+ ),
786
+ ).optional(),
787
+ textureGeneration: z.nullable(
788
+ z.lazy(() =>
789
+ PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject$outboundSchema
790
+ ),
791
+ ).optional(),
792
+ universalUpscaler: z.nullable(
793
+ z.lazy(() =>
794
+ PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject$outboundSchema
795
+ ),
796
+ ).optional(),
797
+ universalUpscalerUltra: z.nullable(
798
+ z.lazy(() =>
799
+ PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERULTRAObject$outboundSchema
800
+ ),
801
+ ).optional(),
802
+ }).transform((v) => {
803
+ return remap$(v, {
804
+ fantasyAvatarGeneration: "FANTASY_AVATAR_GENERATION",
805
+ imageGeneration: "IMAGE_GENERATION",
806
+ lcmGeneration: "LCM_GENERATION",
807
+ modelTraining: "MODEL_TRAINING",
808
+ motionGeneration: "MOTION_GENERATION",
809
+ textureGeneration: "TEXTURE_GENERATION",
810
+ universalUpscaler: "UNIVERSAL_UPSCALER",
811
+ universalUpscalerUltra: "UNIVERSAL_UPSCALER_ULTRA",
812
+ });
813
+ });
690
814
 
691
815
  /**
692
816
  * @internal
693
817
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
694
818
  */
695
819
  export namespace ObjectT$ {
696
- /** @deprecated use `ObjectT$inboundSchema` instead. */
697
- export const inboundSchema = ObjectT$inboundSchema;
698
- /** @deprecated use `ObjectT$outboundSchema` instead. */
699
- export const outboundSchema = ObjectT$outboundSchema;
700
- /** @deprecated use `ObjectT$Outbound` instead. */
701
- export type Outbound = ObjectT$Outbound;
820
+ /** @deprecated use `ObjectT$inboundSchema` instead. */
821
+ export const inboundSchema = ObjectT$inboundSchema;
822
+ /** @deprecated use `ObjectT$outboundSchema` instead. */
823
+ export const outboundSchema = ObjectT$outboundSchema;
824
+ /** @deprecated use `ObjectT$Outbound` instead. */
825
+ export type Outbound = ObjectT$Outbound;
702
826
  }
703
827
 
704
828
  /** @internal */
705
829
  export const PricingCalculatorRequestBody$inboundSchema: z.ZodType<
706
- PricingCalculatorRequestBody,
707
- z.ZodTypeDef,
708
- unknown
830
+ PricingCalculatorRequestBody,
831
+ z.ZodTypeDef,
832
+ unknown
709
833
  > = z.object({
710
- service: shared.PricingCalculatorServices$inboundSchema.optional(),
711
- serviceParams: z.lazy(() => ObjectT$inboundSchema).optional(),
834
+ service: shared.PricingCalculatorServices$inboundSchema.optional(),
835
+ serviceParams: z.lazy(() => ObjectT$inboundSchema).optional(),
712
836
  });
713
837
 
714
838
  /** @internal */
715
839
  export type PricingCalculatorRequestBody$Outbound = {
716
- service?: string | undefined;
717
- serviceParams?: ObjectT$Outbound | undefined;
840
+ service?: string | undefined;
841
+ serviceParams?: ObjectT$Outbound | undefined;
718
842
  };
719
843
 
720
844
  /** @internal */
721
845
  export const PricingCalculatorRequestBody$outboundSchema: z.ZodType<
722
- PricingCalculatorRequestBody$Outbound,
723
- z.ZodTypeDef,
724
- PricingCalculatorRequestBody
846
+ PricingCalculatorRequestBody$Outbound,
847
+ z.ZodTypeDef,
848
+ PricingCalculatorRequestBody
725
849
  > = z.object({
726
- service: shared.PricingCalculatorServices$outboundSchema.optional(),
727
- serviceParams: z.lazy(() => ObjectT$outboundSchema).optional(),
850
+ service: shared.PricingCalculatorServices$outboundSchema.optional(),
851
+ serviceParams: z.lazy(() => ObjectT$outboundSchema).optional(),
728
852
  });
729
853
 
730
854
  /**
@@ -732,35 +856,35 @@ export const PricingCalculatorRequestBody$outboundSchema: z.ZodType<
732
856
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
733
857
  */
734
858
  export namespace PricingCalculatorRequestBody$ {
735
- /** @deprecated use `PricingCalculatorRequestBody$inboundSchema` instead. */
736
- export const inboundSchema = PricingCalculatorRequestBody$inboundSchema;
737
- /** @deprecated use `PricingCalculatorRequestBody$outboundSchema` instead. */
738
- export const outboundSchema = PricingCalculatorRequestBody$outboundSchema;
739
- /** @deprecated use `PricingCalculatorRequestBody$Outbound` instead. */
740
- export type Outbound = PricingCalculatorRequestBody$Outbound;
859
+ /** @deprecated use `PricingCalculatorRequestBody$inboundSchema` instead. */
860
+ export const inboundSchema = PricingCalculatorRequestBody$inboundSchema;
861
+ /** @deprecated use `PricingCalculatorRequestBody$outboundSchema` instead. */
862
+ export const outboundSchema = PricingCalculatorRequestBody$outboundSchema;
863
+ /** @deprecated use `PricingCalculatorRequestBody$Outbound` instead. */
864
+ export type Outbound = PricingCalculatorRequestBody$Outbound;
741
865
  }
742
866
 
743
867
  /** @internal */
744
868
  export const CalculateProductionApiServiceCost$inboundSchema: z.ZodType<
745
- CalculateProductionApiServiceCost,
746
- z.ZodTypeDef,
747
- unknown
869
+ CalculateProductionApiServiceCost,
870
+ z.ZodTypeDef,
871
+ unknown
748
872
  > = z.object({
749
- cost: z.number().int().optional(),
873
+ cost: z.number().int().optional(),
750
874
  });
751
875
 
752
876
  /** @internal */
753
877
  export type CalculateProductionApiServiceCost$Outbound = {
754
- cost?: number | undefined;
878
+ cost?: number | undefined;
755
879
  };
756
880
 
757
881
  /** @internal */
758
882
  export const CalculateProductionApiServiceCost$outboundSchema: z.ZodType<
759
- CalculateProductionApiServiceCost$Outbound,
760
- z.ZodTypeDef,
761
- CalculateProductionApiServiceCost
883
+ CalculateProductionApiServiceCost$Outbound,
884
+ z.ZodTypeDef,
885
+ CalculateProductionApiServiceCost
762
886
  > = z.object({
763
- cost: z.number().int().optional(),
887
+ cost: z.number().int().optional(),
764
888
  });
765
889
 
766
890
  /**
@@ -768,42 +892,43 @@ export const CalculateProductionApiServiceCost$outboundSchema: z.ZodType<
768
892
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
769
893
  */
770
894
  export namespace CalculateProductionApiServiceCost$ {
771
- /** @deprecated use `CalculateProductionApiServiceCost$inboundSchema` instead. */
772
- export const inboundSchema = CalculateProductionApiServiceCost$inboundSchema;
773
- /** @deprecated use `CalculateProductionApiServiceCost$outboundSchema` instead. */
774
- export const outboundSchema = CalculateProductionApiServiceCost$outboundSchema;
775
- /** @deprecated use `CalculateProductionApiServiceCost$Outbound` instead. */
776
- export type Outbound = CalculateProductionApiServiceCost$Outbound;
895
+ /** @deprecated use `CalculateProductionApiServiceCost$inboundSchema` instead. */
896
+ export const inboundSchema = CalculateProductionApiServiceCost$inboundSchema;
897
+ /** @deprecated use `CalculateProductionApiServiceCost$outboundSchema` instead. */
898
+ export const outboundSchema =
899
+ CalculateProductionApiServiceCost$outboundSchema;
900
+ /** @deprecated use `CalculateProductionApiServiceCost$Outbound` instead. */
901
+ export type Outbound = CalculateProductionApiServiceCost$Outbound;
777
902
  }
778
903
 
779
904
  /** @internal */
780
905
  export const PricingCalculatorResponseBody$inboundSchema: z.ZodType<
781
- PricingCalculatorResponseBody,
782
- z.ZodTypeDef,
783
- unknown
906
+ PricingCalculatorResponseBody,
907
+ z.ZodTypeDef,
908
+ unknown
784
909
  > = z.object({
785
- calculateProductionApiServiceCost: z
786
- .nullable(z.lazy(() => CalculateProductionApiServiceCost$inboundSchema))
787
- .optional(),
910
+ calculateProductionApiServiceCost: z.nullable(
911
+ z.lazy(() => CalculateProductionApiServiceCost$inboundSchema),
912
+ ).optional(),
788
913
  });
789
914
 
790
915
  /** @internal */
791
916
  export type PricingCalculatorResponseBody$Outbound = {
792
- calculateProductionApiServiceCost?:
793
- | CalculateProductionApiServiceCost$Outbound
794
- | null
795
- | undefined;
917
+ calculateProductionApiServiceCost?:
918
+ | CalculateProductionApiServiceCost$Outbound
919
+ | null
920
+ | undefined;
796
921
  };
797
922
 
798
923
  /** @internal */
799
924
  export const PricingCalculatorResponseBody$outboundSchema: z.ZodType<
800
- PricingCalculatorResponseBody$Outbound,
801
- z.ZodTypeDef,
802
- PricingCalculatorResponseBody
925
+ PricingCalculatorResponseBody$Outbound,
926
+ z.ZodTypeDef,
927
+ PricingCalculatorResponseBody
803
928
  > = z.object({
804
- calculateProductionApiServiceCost: z
805
- .nullable(z.lazy(() => CalculateProductionApiServiceCost$outboundSchema))
806
- .optional(),
929
+ calculateProductionApiServiceCost: z.nullable(
930
+ z.lazy(() => CalculateProductionApiServiceCost$outboundSchema),
931
+ ).optional(),
807
932
  });
808
933
 
809
934
  /**
@@ -811,73 +936,69 @@ export const PricingCalculatorResponseBody$outboundSchema: z.ZodType<
811
936
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
812
937
  */
813
938
  export namespace PricingCalculatorResponseBody$ {
814
- /** @deprecated use `PricingCalculatorResponseBody$inboundSchema` instead. */
815
- export const inboundSchema = PricingCalculatorResponseBody$inboundSchema;
816
- /** @deprecated use `PricingCalculatorResponseBody$outboundSchema` instead. */
817
- export const outboundSchema = PricingCalculatorResponseBody$outboundSchema;
818
- /** @deprecated use `PricingCalculatorResponseBody$Outbound` instead. */
819
- export type Outbound = PricingCalculatorResponseBody$Outbound;
939
+ /** @deprecated use `PricingCalculatorResponseBody$inboundSchema` instead. */
940
+ export const inboundSchema = PricingCalculatorResponseBody$inboundSchema;
941
+ /** @deprecated use `PricingCalculatorResponseBody$outboundSchema` instead. */
942
+ export const outboundSchema = PricingCalculatorResponseBody$outboundSchema;
943
+ /** @deprecated use `PricingCalculatorResponseBody$Outbound` instead. */
944
+ export type Outbound = PricingCalculatorResponseBody$Outbound;
820
945
  }
821
946
 
822
947
  /** @internal */
823
948
  export const PricingCalculatorResponse$inboundSchema: z.ZodType<
824
- PricingCalculatorResponse,
825
- z.ZodTypeDef,
826
- unknown
827
- > = z
828
- .object({
829
- ContentType: z.string(),
830
- StatusCode: z.number().int(),
831
- RawResponse: z.instanceof(Response),
832
- object: z.lazy(() => PricingCalculatorResponseBody$inboundSchema).optional(),
833
- })
834
- .transform((v) => {
835
- return remap$(v, {
836
- ContentType: "contentType",
837
- StatusCode: "statusCode",
838
- RawResponse: "rawResponse",
839
- });
840
- });
949
+ PricingCalculatorResponse,
950
+ z.ZodTypeDef,
951
+ unknown
952
+ > = z.object({
953
+ ContentType: z.string(),
954
+ StatusCode: z.number().int(),
955
+ RawResponse: z.instanceof(Response),
956
+ object: z.lazy(() => PricingCalculatorResponseBody$inboundSchema).optional(),
957
+ }).transform((v) => {
958
+ return remap$(v, {
959
+ "ContentType": "contentType",
960
+ "StatusCode": "statusCode",
961
+ "RawResponse": "rawResponse",
962
+ });
963
+ });
841
964
 
842
965
  /** @internal */
843
966
  export type PricingCalculatorResponse$Outbound = {
844
- ContentType: string;
845
- StatusCode: number;
846
- RawResponse: never;
847
- object?: PricingCalculatorResponseBody$Outbound | undefined;
967
+ ContentType: string;
968
+ StatusCode: number;
969
+ RawResponse: never;
970
+ object?: PricingCalculatorResponseBody$Outbound | undefined;
848
971
  };
849
972
 
850
973
  /** @internal */
851
974
  export const PricingCalculatorResponse$outboundSchema: z.ZodType<
852
- PricingCalculatorResponse$Outbound,
853
- z.ZodTypeDef,
854
- PricingCalculatorResponse
855
- > = z
856
- .object({
857
- contentType: z.string(),
858
- statusCode: z.number().int(),
859
- rawResponse: z.instanceof(Response).transform(() => {
860
- throw new Error("Response cannot be serialized");
861
- }),
862
- object: z.lazy(() => PricingCalculatorResponseBody$outboundSchema).optional(),
863
- })
864
- .transform((v) => {
865
- return remap$(v, {
866
- contentType: "ContentType",
867
- statusCode: "StatusCode",
868
- rawResponse: "RawResponse",
869
- });
870
- });
975
+ PricingCalculatorResponse$Outbound,
976
+ z.ZodTypeDef,
977
+ PricingCalculatorResponse
978
+ > = z.object({
979
+ contentType: z.string(),
980
+ statusCode: z.number().int(),
981
+ rawResponse: z.instanceof(Response).transform(() => {
982
+ throw new Error("Response cannot be serialized");
983
+ }),
984
+ object: z.lazy(() => PricingCalculatorResponseBody$outboundSchema).optional(),
985
+ }).transform((v) => {
986
+ return remap$(v, {
987
+ contentType: "ContentType",
988
+ statusCode: "StatusCode",
989
+ rawResponse: "RawResponse",
990
+ });
991
+ });
871
992
 
872
993
  /**
873
994
  * @internal
874
995
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
875
996
  */
876
997
  export namespace PricingCalculatorResponse$ {
877
- /** @deprecated use `PricingCalculatorResponse$inboundSchema` instead. */
878
- export const inboundSchema = PricingCalculatorResponse$inboundSchema;
879
- /** @deprecated use `PricingCalculatorResponse$outboundSchema` instead. */
880
- export const outboundSchema = PricingCalculatorResponse$outboundSchema;
881
- /** @deprecated use `PricingCalculatorResponse$Outbound` instead. */
882
- export type Outbound = PricingCalculatorResponse$Outbound;
998
+ /** @deprecated use `PricingCalculatorResponse$inboundSchema` instead. */
999
+ export const inboundSchema = PricingCalculatorResponse$inboundSchema;
1000
+ /** @deprecated use `PricingCalculatorResponse$outboundSchema` instead. */
1001
+ export const outboundSchema = PricingCalculatorResponse$outboundSchema;
1002
+ /** @deprecated use `PricingCalculatorResponse$Outbound` instead. */
1003
+ export type Outbound = PricingCalculatorResponse$Outbound;
883
1004
  }