@leonardo-ai/sdk 4.10.1 → 4.14.2

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 (458) hide show
  1. package/README.md +130 -43
  2. package/docs/sdks/dataset/README.md +10 -5
  3. package/docs/sdks/{element → elements}/README.md +5 -4
  4. package/docs/sdks/{model → image}/README.md +32 -114
  5. package/docs/sdks/initimages/README.md +182 -0
  6. package/docs/sdks/models/README.md +180 -0
  7. package/docs/sdks/motion/README.md +50 -0
  8. package/docs/sdks/pricingcalculator/README.md +48 -0
  9. package/docs/sdks/prompt/README.md +4 -2
  10. package/docs/sdks/realtimecanvas/README.md +190 -0
  11. package/docs/sdks/texture/README.md +92 -0
  12. package/docs/sdks/{initimage → threedmodelassets}/README.md +17 -58
  13. package/docs/sdks/user/README.md +2 -1
  14. package/docs/sdks/variation/README.md +10 -5
  15. package/hooks/hooks.d.ts +2 -2
  16. package/hooks/hooks.d.ts.map +1 -1
  17. package/hooks/hooks.js +1 -1
  18. package/hooks/index.d.ts +2 -2
  19. package/hooks/index.d.ts.map +1 -1
  20. package/hooks/index.js +3 -3
  21. package/hooks/index.js.map +1 -1
  22. package/hooks/types.d.ts +1 -1
  23. package/hooks/types.d.ts.map +1 -1
  24. package/hooks/types.js +1 -1
  25. package/index.d.ts +2 -2
  26. package/index.d.ts.map +1 -1
  27. package/index.js +3 -3
  28. package/index.js.map +1 -1
  29. package/lib/base64.js +1 -1
  30. package/lib/config.d.ts +6 -5
  31. package/lib/config.d.ts.map +1 -1
  32. package/lib/config.js +6 -6
  33. package/lib/config.js.map +1 -1
  34. package/lib/encodings.d.ts +16 -0
  35. package/lib/encodings.d.ts.map +1 -1
  36. package/lib/encodings.js +56 -24
  37. package/lib/encodings.js.map +1 -1
  38. package/lib/http.d.ts +56 -2
  39. package/lib/http.d.ts.map +1 -1
  40. package/lib/http.js +173 -4
  41. package/lib/http.js.map +1 -1
  42. package/lib/is-plain-object.d.ts +2 -0
  43. package/lib/is-plain-object.d.ts.map +1 -0
  44. package/lib/is-plain-object.js +42 -0
  45. package/lib/is-plain-object.js.map +1 -0
  46. package/lib/primitives.d.ts +16 -0
  47. package/lib/primitives.d.ts.map +1 -0
  48. package/lib/primitives.js +30 -0
  49. package/lib/primitives.js.map +1 -0
  50. package/lib/retries.js +1 -1
  51. package/lib/schemas.d.ts +4 -0
  52. package/lib/schemas.d.ts.map +1 -1
  53. package/lib/schemas.js +23 -27
  54. package/lib/schemas.js.map +1 -1
  55. package/lib/sdks.d.ts +30 -8
  56. package/lib/sdks.d.ts.map +1 -1
  57. package/lib/sdks.js +59 -29
  58. package/lib/sdks.js.map +1 -1
  59. package/lib/security.d.ts +1 -1
  60. package/lib/security.d.ts.map +1 -1
  61. package/lib/security.js +1 -1
  62. package/lib/url.js +1 -1
  63. package/package.json +2 -3
  64. package/sdk/dataset.d.ts +3 -3
  65. package/sdk/dataset.d.ts.map +1 -1
  66. package/sdk/dataset.js +100 -124
  67. package/sdk/dataset.js.map +1 -1
  68. package/sdk/{element.d.ts → elements.d.ts} +5 -5
  69. package/sdk/elements.d.ts.map +1 -0
  70. package/sdk/{element.js → elements.js} +28 -35
  71. package/sdk/elements.js.map +1 -0
  72. package/sdk/image.d.ts +36 -0
  73. package/sdk/image.d.ts.map +1 -0
  74. package/sdk/image.js +316 -0
  75. package/sdk/image.js.map +1 -0
  76. package/sdk/index.d.ts +1 -1
  77. package/sdk/index.d.ts.map +1 -1
  78. package/sdk/index.js +2 -2
  79. package/sdk/index.js.map +1 -1
  80. package/sdk/{initimage.d.ts → initimages.d.ts} +12 -5
  81. package/sdk/initimages.d.ts.map +1 -0
  82. package/sdk/initimages.js +304 -0
  83. package/sdk/initimages.js.map +1 -0
  84. package/sdk/models/errors/index.d.ts +2 -2
  85. package/sdk/models/errors/index.d.ts.map +1 -1
  86. package/sdk/models/errors/index.js +3 -3
  87. package/sdk/models/errors/index.js.map +1 -1
  88. package/sdk/models/errors/sdkerror.js +1 -1
  89. package/sdk/models/errors/sdkvalidationerror.js +1 -1
  90. package/sdk/models/operations/createdataset.d.ts +72 -40
  91. package/sdk/models/operations/createdataset.d.ts.map +1 -1
  92. package/sdk/models/operations/createdataset.js +101 -96
  93. package/sdk/models/operations/createdataset.js.map +1 -1
  94. package/sdk/models/operations/creategeneration.d.ts +155 -121
  95. package/sdk/models/operations/creategeneration.d.ts.map +1 -1
  96. package/sdk/models/operations/creategeneration.js +216 -280
  97. package/sdk/models/operations/creategeneration.js.map +1 -1
  98. package/sdk/models/operations/createlcmgeneration.d.ts +83 -61
  99. package/sdk/models/operations/createlcmgeneration.d.ts.map +1 -1
  100. package/sdk/models/operations/createlcmgeneration.js +110 -149
  101. package/sdk/models/operations/createlcmgeneration.js.map +1 -1
  102. package/sdk/models/operations/createmodel.d.ts +81 -57
  103. package/sdk/models/operations/createmodel.d.ts.map +1 -1
  104. package/sdk/models/operations/createmodel.js +120 -125
  105. package/sdk/models/operations/createmodel.js.map +1 -1
  106. package/sdk/models/operations/createsvdmotiongeneration.d.ts +76 -48
  107. package/sdk/models/operations/createsvdmotiongeneration.d.ts.map +1 -1
  108. package/sdk/models/operations/createsvdmotiongeneration.js +97 -116
  109. package/sdk/models/operations/createsvdmotiongeneration.js.map +1 -1
  110. package/sdk/models/operations/createtexturegeneration.d.ts +79 -54
  111. package/sdk/models/operations/createtexturegeneration.d.ts.map +1 -1
  112. package/sdk/models/operations/createtexturegeneration.js +125 -136
  113. package/sdk/models/operations/createtexturegeneration.js.map +1 -1
  114. package/sdk/models/operations/createuniversalupscalerjob.d.ts +79 -53
  115. package/sdk/models/operations/createuniversalupscalerjob.d.ts.map +1 -1
  116. package/sdk/models/operations/createuniversalupscalerjob.js +102 -125
  117. package/sdk/models/operations/createuniversalupscalerjob.js.map +1 -1
  118. package/sdk/models/operations/createvariationnobg.d.ts +73 -42
  119. package/sdk/models/operations/createvariationnobg.d.ts.map +1 -1
  120. package/sdk/models/operations/createvariationnobg.js +91 -96
  121. package/sdk/models/operations/createvariationnobg.js.map +1 -1
  122. package/sdk/models/operations/createvariationunzoom.d.ts +73 -42
  123. package/sdk/models/operations/createvariationunzoom.d.ts.map +1 -1
  124. package/sdk/models/operations/createvariationunzoom.js +91 -96
  125. package/sdk/models/operations/createvariationunzoom.js.map +1 -1
  126. package/sdk/models/operations/createvariationupscale.d.ts +72 -40
  127. package/sdk/models/operations/createvariationupscale.d.ts.map +1 -1
  128. package/sdk/models/operations/createvariationupscale.js +93 -96
  129. package/sdk/models/operations/createvariationupscale.js.map +1 -1
  130. package/sdk/models/operations/delete3dmodelbyid.d.ts +93 -52
  131. package/sdk/models/operations/delete3dmodelbyid.d.ts.map +1 -1
  132. package/sdk/models/operations/delete3dmodelbyid.js +128 -118
  133. package/sdk/models/operations/delete3dmodelbyid.js.map +1 -1
  134. package/sdk/models/operations/deletedatasetbyid.d.ts +71 -38
  135. package/sdk/models/operations/deletedatasetbyid.d.ts.map +1 -1
  136. package/sdk/models/operations/deletedatasetbyid.js +103 -96
  137. package/sdk/models/operations/deletedatasetbyid.js.map +1 -1
  138. package/sdk/models/operations/deletegenerationbyid.d.ts +71 -38
  139. package/sdk/models/operations/deletegenerationbyid.d.ts.map +1 -1
  140. package/sdk/models/operations/deletegenerationbyid.js +99 -94
  141. package/sdk/models/operations/deletegenerationbyid.js.map +1 -1
  142. package/sdk/models/operations/deleteinitimagebyid.d.ts +71 -38
  143. package/sdk/models/operations/deleteinitimagebyid.d.ts.map +1 -1
  144. package/sdk/models/operations/deleteinitimagebyid.js +99 -94
  145. package/sdk/models/operations/deleteinitimagebyid.js.map +1 -1
  146. package/sdk/models/operations/deletemodelbyid.d.ts +71 -38
  147. package/sdk/models/operations/deletemodelbyid.d.ts.map +1 -1
  148. package/sdk/models/operations/deletemodelbyid.js +99 -96
  149. package/sdk/models/operations/deletemodelbyid.js.map +1 -1
  150. package/sdk/models/operations/deletetexturegenerationbyid.d.ts +93 -52
  151. package/sdk/models/operations/deletetexturegenerationbyid.d.ts.map +1 -1
  152. package/sdk/models/operations/deletetexturegenerationbyid.js +132 -128
  153. package/sdk/models/operations/deletetexturegenerationbyid.js.map +1 -1
  154. package/sdk/models/operations/getdatasetbyid.d.ts +95 -60
  155. package/sdk/models/operations/getdatasetbyid.d.ts.map +1 -1
  156. package/sdk/models/operations/getdatasetbyid.js +140 -138
  157. package/sdk/models/operations/getdatasetbyid.js.map +1 -1
  158. package/sdk/models/operations/getgenerationbyid.d.ts +184 -159
  159. package/sdk/models/operations/getgenerationbyid.d.ts.map +1 -1
  160. package/sdk/models/operations/getgenerationbyid.js +284 -377
  161. package/sdk/models/operations/getgenerationbyid.js.map +1 -1
  162. package/sdk/models/operations/getgenerationsbyuserid.d.ts +186 -162
  163. package/sdk/models/operations/getgenerationsbyuserid.d.ts.map +1 -1
  164. package/sdk/models/operations/getgenerationsbyuserid.js +278 -381
  165. package/sdk/models/operations/getgenerationsbyuserid.js.map +1 -1
  166. package/sdk/models/operations/getinitimagebyid.d.ts +73 -42
  167. package/sdk/models/operations/getinitimagebyid.d.ts.map +1 -1
  168. package/sdk/models/operations/getinitimagebyid.js +107 -104
  169. package/sdk/models/operations/getinitimagebyid.js.map +1 -1
  170. package/sdk/models/operations/getmodelbyid.d.ts +83 -61
  171. package/sdk/models/operations/getmodelbyid.d.ts.map +1 -1
  172. package/sdk/models/operations/getmodelbyid.js +126 -141
  173. package/sdk/models/operations/getmodelbyid.js.map +1 -1
  174. package/sdk/models/operations/getuserself.d.ts +81 -58
  175. package/sdk/models/operations/getuserself.d.ts.map +1 -1
  176. package/sdk/models/operations/getuserself.js +119 -156
  177. package/sdk/models/operations/getuserself.js.map +1 -1
  178. package/sdk/models/operations/getvariationbyid.d.ts +76 -47
  179. package/sdk/models/operations/getvariationbyid.d.ts.map +1 -1
  180. package/sdk/models/operations/getvariationbyid.js +112 -113
  181. package/sdk/models/operations/getvariationbyid.js.map +1 -1
  182. package/sdk/models/operations/index.d.ts +36 -34
  183. package/sdk/models/operations/index.d.ts.map +1 -1
  184. package/sdk/models/operations/index.js +37 -35
  185. package/sdk/models/operations/index.js.map +1 -1
  186. package/sdk/models/operations/listelements.d.ts +63 -47
  187. package/sdk/models/operations/listelements.d.ts.map +1 -1
  188. package/sdk/models/operations/listelements.js +89 -103
  189. package/sdk/models/operations/listelements.js.map +1 -1
  190. package/sdk/models/operations/listplatformmodels.d.ts +77 -50
  191. package/sdk/models/operations/listplatformmodels.d.ts.map +1 -1
  192. package/sdk/models/operations/listplatformmodels.js +131 -122
  193. package/sdk/models/operations/listplatformmodels.js.map +1 -1
  194. package/sdk/models/operations/performalchemyupscalelcm.d.ts +88 -71
  195. package/sdk/models/operations/performalchemyupscalelcm.d.ts.map +1 -1
  196. package/sdk/models/operations/performalchemyupscalelcm.js +124 -175
  197. package/sdk/models/operations/performalchemyupscalelcm.js.map +1 -1
  198. package/sdk/models/operations/performinpaintinglcm.d.ts +84 -63
  199. package/sdk/models/operations/performinpaintinglcm.d.ts.map +1 -1
  200. package/sdk/models/operations/performinpaintinglcm.js +116 -153
  201. package/sdk/models/operations/performinpaintinglcm.js.map +1 -1
  202. package/sdk/models/operations/performinstantrefine.d.ts +83 -61
  203. package/sdk/models/operations/performinstantrefine.d.ts.map +1 -1
  204. package/sdk/models/operations/performinstantrefine.js +114 -149
  205. package/sdk/models/operations/performinstantrefine.js.map +1 -1
  206. package/sdk/models/operations/pricingcalculator.d.ts +476 -0
  207. package/sdk/models/operations/pricingcalculator.d.ts.map +1 -0
  208. package/sdk/models/operations/pricingcalculator.js +391 -0
  209. package/sdk/models/operations/pricingcalculator.js.map +1 -0
  210. package/sdk/models/operations/promptimprove.d.ts +72 -40
  211. package/sdk/models/operations/promptimprove.d.ts.map +1 -1
  212. package/sdk/models/operations/promptimprove.js +89 -96
  213. package/sdk/models/operations/promptimprove.js.map +1 -1
  214. package/sdk/models/operations/promptrandom.d.ts +55 -32
  215. package/sdk/models/operations/promptrandom.d.ts.map +1 -1
  216. package/sdk/models/operations/promptrandom.js +74 -82
  217. package/sdk/models/operations/promptrandom.js.map +1 -1
  218. package/sdk/models/operations/uploadcanvasinitimage.d.ts +140 -0
  219. package/sdk/models/operations/uploadcanvasinitimage.d.ts.map +1 -0
  220. package/sdk/models/operations/uploadcanvasinitimage.js +152 -0
  221. package/sdk/models/operations/uploadcanvasinitimage.js.map +1 -0
  222. package/sdk/models/operations/uploaddatasetimage.d.ts +92 -54
  223. package/sdk/models/operations/uploaddatasetimage.d.ts.map +1 -1
  224. package/sdk/models/operations/uploaddatasetimage.js +122 -130
  225. package/sdk/models/operations/uploaddatasetimage.js.map +1 -1
  226. package/sdk/models/operations/uploaddatasetimagefromgen.d.ts +89 -48
  227. package/sdk/models/operations/uploaddatasetimagefromgen.d.ts.map +1 -1
  228. package/sdk/models/operations/uploaddatasetimagefromgen.js +120 -118
  229. package/sdk/models/operations/uploaddatasetimagefromgen.js.map +1 -1
  230. package/sdk/models/operations/uploadinitimage.d.ts +74 -44
  231. package/sdk/models/operations/uploadinitimage.d.ts.map +1 -1
  232. package/sdk/models/operations/uploadinitimage.js +93 -108
  233. package/sdk/models/operations/uploadinitimage.js.map +1 -1
  234. package/sdk/models/operations/uploadmodelasset.d.ts +75 -46
  235. package/sdk/models/operations/uploadmodelasset.d.ts.map +1 -1
  236. package/sdk/models/operations/uploadmodelasset.js +95 -112
  237. package/sdk/models/operations/uploadmodelasset.js.map +1 -1
  238. package/sdk/models/shared/canvasrequesttype.d.ts +25 -0
  239. package/sdk/models/shared/canvasrequesttype.d.ts.map +1 -0
  240. package/sdk/models/shared/canvasrequesttype.js +56 -0
  241. package/sdk/models/shared/canvasrequesttype.js.map +1 -0
  242. package/sdk/models/shared/controlnetinput.d.ts +93 -0
  243. package/sdk/models/shared/controlnetinput.d.ts.map +1 -0
  244. package/sdk/models/shared/controlnetinput.js +107 -0
  245. package/sdk/models/shared/controlnetinput.js.map +1 -0
  246. package/sdk/models/shared/controlnettype.d.ts +16 -2
  247. package/sdk/models/shared/controlnettype.d.ts.map +1 -1
  248. package/sdk/models/shared/controlnettype.js +19 -4
  249. package/sdk/models/shared/controlnettype.js.map +1 -1
  250. package/sdk/models/shared/custommodeltype.d.ts +13 -1
  251. package/sdk/models/shared/custommodeltype.d.ts.map +1 -1
  252. package/sdk/models/shared/custommodeltype.js +16 -3
  253. package/sdk/models/shared/custommodeltype.js.map +1 -1
  254. package/sdk/models/shared/elementinput.d.ts +18 -10
  255. package/sdk/models/shared/elementinput.d.ts.map +1 -1
  256. package/sdk/models/shared/elementinput.js +19 -24
  257. package/sdk/models/shared/elementinput.js.map +1 -1
  258. package/sdk/models/shared/index.d.ts +15 -12
  259. package/sdk/models/shared/index.d.ts.map +1 -1
  260. package/sdk/models/shared/index.js +16 -13
  261. package/sdk/models/shared/index.js.map +1 -1
  262. package/sdk/models/shared/jobstatus.d.ts +13 -1
  263. package/sdk/models/shared/jobstatus.d.ts.map +1 -1
  264. package/sdk/models/shared/jobstatus.js +16 -3
  265. package/sdk/models/shared/jobstatus.js.map +1 -1
  266. package/sdk/models/shared/lcmgenerationstyle.d.ts +13 -1
  267. package/sdk/models/shared/lcmgenerationstyle.d.ts.map +1 -1
  268. package/sdk/models/shared/lcmgenerationstyle.js +16 -3
  269. package/sdk/models/shared/lcmgenerationstyle.js.map +1 -1
  270. package/sdk/models/shared/pricingcalculatorservices.d.ts +28 -0
  271. package/sdk/models/shared/pricingcalculatorservices.d.ts.map +1 -0
  272. package/sdk/models/shared/pricingcalculatorservices.js +59 -0
  273. package/sdk/models/shared/pricingcalculatorservices.js.map +1 -0
  274. package/sdk/models/shared/sdgenerationschedulers.d.ts +13 -1
  275. package/sdk/models/shared/sdgenerationschedulers.d.ts.map +1 -1
  276. package/sdk/models/shared/sdgenerationschedulers.js +16 -3
  277. package/sdk/models/shared/sdgenerationschedulers.js.map +1 -1
  278. package/sdk/models/shared/sdgenerationstyle.d.ts +13 -1
  279. package/sdk/models/shared/sdgenerationstyle.d.ts.map +1 -1
  280. package/sdk/models/shared/sdgenerationstyle.js +16 -3
  281. package/sdk/models/shared/sdgenerationstyle.js.map +1 -1
  282. package/sdk/models/shared/sdversions.d.ts +13 -1
  283. package/sdk/models/shared/sdversions.d.ts.map +1 -1
  284. package/sdk/models/shared/sdversions.js +16 -3
  285. package/sdk/models/shared/sdversions.js.map +1 -1
  286. package/sdk/models/shared/security.d.ts +17 -8
  287. package/sdk/models/shared/security.d.ts.map +1 -1
  288. package/sdk/models/shared/security.js +17 -20
  289. package/sdk/models/shared/security.js.map +1 -1
  290. package/sdk/models/shared/strength.d.ts +13 -1
  291. package/sdk/models/shared/strength.d.ts.map +1 -1
  292. package/sdk/models/shared/strength.js +16 -3
  293. package/sdk/models/shared/strength.js.map +1 -1
  294. package/sdk/models/shared/universalupscalerstyle.d.ts +13 -1
  295. package/sdk/models/shared/universalupscalerstyle.d.ts.map +1 -1
  296. package/sdk/models/shared/universalupscalerstyle.js +16 -3
  297. package/sdk/models/shared/universalupscalerstyle.js.map +1 -1
  298. package/sdk/models/shared/variationtype.d.ts +13 -1
  299. package/sdk/models/shared/variationtype.d.ts.map +1 -1
  300. package/sdk/models/shared/variationtype.js +16 -3
  301. package/sdk/models/shared/variationtype.js.map +1 -1
  302. package/sdk/{model.d.ts → models.d.ts} +5 -19
  303. package/sdk/models.d.ts.map +1 -0
  304. package/sdk/models.js +299 -0
  305. package/sdk/models.js.map +1 -0
  306. package/sdk/motion.d.ts +15 -0
  307. package/sdk/motion.d.ts.map +1 -0
  308. package/sdk/motion.js +121 -0
  309. package/sdk/motion.js.map +1 -0
  310. package/sdk/pricingcalculator.d.ts +15 -0
  311. package/sdk/pricingcalculator.d.ts.map +1 -0
  312. package/sdk/pricingcalculator.js +119 -0
  313. package/sdk/pricingcalculator.js.map +1 -0
  314. package/sdk/prompt.d.ts +3 -3
  315. package/sdk/prompt.d.ts.map +1 -1
  316. package/sdk/prompt.js +44 -55
  317. package/sdk/prompt.js.map +1 -1
  318. package/sdk/realtimecanvas.d.ts +36 -0
  319. package/sdk/realtimecanvas.d.ts.map +1 -0
  320. package/sdk/realtimecanvas.js +296 -0
  321. package/sdk/realtimecanvas.js.map +1 -0
  322. package/sdk/sdk.d.ts +33 -18
  323. package/sdk/sdk.d.ts.map +1 -1
  324. package/sdk/sdk.js +55 -30
  325. package/sdk/sdk.js.map +1 -1
  326. package/sdk/texture.d.ts +22 -0
  327. package/sdk/texture.d.ts.map +1 -0
  328. package/sdk/texture.js +186 -0
  329. package/sdk/texture.js.map +1 -0
  330. package/sdk/threedmodelassets.d.ts +22 -0
  331. package/sdk/threedmodelassets.d.ts.map +1 -0
  332. package/sdk/threedmodelassets.js +184 -0
  333. package/sdk/threedmodelassets.js.map +1 -0
  334. package/sdk/types/blobs.js +1 -1
  335. package/sdk/types/enums.d.ts +12 -0
  336. package/sdk/types/enums.d.ts.map +1 -0
  337. package/sdk/types/enums.js +11 -0
  338. package/sdk/types/enums.js.map +1 -0
  339. package/sdk/types/index.d.ts +6 -4
  340. package/sdk/types/index.d.ts.map +1 -1
  341. package/sdk/types/index.js +11 -9
  342. package/sdk/types/index.js.map +1 -1
  343. package/sdk/types/operations.js +1 -1
  344. package/sdk/types/rfcdate.js +1 -1
  345. package/sdk/user.d.ts +3 -3
  346. package/sdk/user.d.ts.map +1 -1
  347. package/sdk/user.js +25 -32
  348. package/sdk/user.js.map +1 -1
  349. package/sdk/variation.d.ts +3 -3
  350. package/sdk/variation.d.ts.map +1 -1
  351. package/sdk/variation.js +99 -127
  352. package/sdk/variation.js.map +1 -1
  353. package/src/hooks/hooks.ts +3 -3
  354. package/src/hooks/index.ts +3 -3
  355. package/src/hooks/types.ts +2 -2
  356. package/src/index.ts +3 -3
  357. package/src/lib/base64.ts +1 -1
  358. package/src/lib/config.ts +8 -7
  359. package/src/lib/encodings.ts +73 -14
  360. package/src/lib/http.ts +446 -203
  361. package/src/lib/is-plain-object.ts +43 -0
  362. package/src/lib/primitives.ts +40 -0
  363. package/src/lib/retries.ts +1 -1
  364. package/src/lib/schemas.ts +38 -4
  365. package/src/lib/sdks.ts +89 -27
  366. package/src/lib/security.ts +2 -2
  367. package/src/lib/url.ts +1 -1
  368. package/src/sdk/dataset.ts +105 -154
  369. package/src/sdk/{element.ts → elements.ts} +23 -36
  370. package/src/sdk/image.ts +377 -0
  371. package/src/sdk/index.ts +2 -2
  372. package/src/sdk/{initimage.ts → initimages.ts} +140 -93
  373. package/src/sdk/models/errors/index.ts +3 -3
  374. package/src/sdk/models/errors/sdkerror.ts +1 -1
  375. package/src/sdk/models/errors/sdkvalidationerror.ts +1 -1
  376. package/src/sdk/models/operations/createdataset.ts +161 -135
  377. package/src/sdk/models/operations/creategeneration.ts +351 -395
  378. package/src/sdk/models/operations/createlcmgeneration.ts +182 -209
  379. package/src/sdk/models/operations/createmodel.ts +186 -174
  380. package/src/sdk/models/operations/createsvdmotiongeneration.ts +163 -182
  381. package/src/sdk/models/operations/createtexturegeneration.ts +194 -205
  382. package/src/sdk/models/operations/createuniversalupscalerjob.ts +174 -199
  383. package/src/sdk/models/operations/createvariationnobg.ts +161 -145
  384. package/src/sdk/models/operations/createvariationunzoom.ts +158 -153
  385. package/src/sdk/models/operations/createvariationupscale.ts +162 -162
  386. package/src/sdk/models/operations/delete3dmodelbyid.ts +210 -169
  387. package/src/sdk/models/operations/deletedatasetbyid.ts +169 -134
  388. package/src/sdk/models/operations/deletegenerationbyid.ts +162 -137
  389. package/src/sdk/models/operations/deleteinitimagebyid.ts +159 -137
  390. package/src/sdk/models/operations/deletemodelbyid.ts +161 -133
  391. package/src/sdk/models/operations/deletetexturegenerationbyid.ts +214 -211
  392. package/src/sdk/models/operations/getdatasetbyid.ts +218 -189
  393. package/src/sdk/models/operations/getgenerationbyid.ts +460 -553
  394. package/src/sdk/models/operations/getgenerationsbyuserid.ts +458 -601
  395. package/src/sdk/models/operations/getinitimagebyid.ts +175 -145
  396. package/src/sdk/models/operations/getmodelbyid.ts +197 -194
  397. package/src/sdk/models/operations/getuserself.ts +177 -207
  398. package/src/sdk/models/operations/getvariationbyid.ts +182 -163
  399. package/src/sdk/models/operations/index.ts +37 -35
  400. package/src/sdk/models/operations/listelements.ts +140 -149
  401. package/src/sdk/models/operations/listplatformmodels.ts +201 -179
  402. package/src/sdk/models/operations/performalchemyupscalelcm.ts +202 -269
  403. package/src/sdk/models/operations/performinpaintinglcm.ts +189 -227
  404. package/src/sdk/models/operations/performinstantrefine.ts +186 -221
  405. package/src/sdk/models/operations/pricingcalculator.ts +883 -0
  406. package/src/sdk/models/operations/promptimprove.ts +158 -137
  407. package/src/sdk/models/operations/promptrandom.ts +126 -122
  408. package/src/sdk/models/operations/uploadcanvasinitimage.ts +256 -0
  409. package/src/sdk/models/operations/uploaddatasetimage.ts +201 -178
  410. package/src/sdk/models/operations/uploaddatasetimagefromgen.ts +197 -188
  411. package/src/sdk/models/operations/uploadinitimage.ts +164 -153
  412. package/src/sdk/models/operations/uploadmodelasset.ts +167 -159
  413. package/src/sdk/models/shared/canvasrequesttype.ts +34 -0
  414. package/src/sdk/models/shared/controlnetinput.ts +130 -0
  415. package/src/sdk/models/shared/controlnettype.ts +21 -3
  416. package/src/sdk/models/shared/custommodeltype.ts +17 -2
  417. package/src/sdk/models/shared/elementinput.ts +30 -32
  418. package/src/sdk/models/shared/index.ts +16 -13
  419. package/src/sdk/models/shared/jobstatus.ts +16 -2
  420. package/src/sdk/models/shared/lcmgenerationstyle.ts +17 -2
  421. package/src/sdk/models/shared/pricingcalculatorservices.ts +39 -0
  422. package/src/sdk/models/shared/sdgenerationschedulers.ts +17 -2
  423. package/src/sdk/models/shared/sdgenerationstyle.ts +17 -2
  424. package/src/sdk/models/shared/sdversions.ts +18 -2
  425. package/src/sdk/models/shared/security.ts +24 -26
  426. package/src/sdk/models/shared/strength.ts +16 -2
  427. package/src/sdk/models/shared/universalupscalerstyle.ts +17 -2
  428. package/src/sdk/models/shared/variationtype.ts +18 -2
  429. package/src/sdk/models.ts +347 -0
  430. package/src/sdk/motion.ts +123 -0
  431. package/src/sdk/pricingcalculator.ts +119 -0
  432. package/src/sdk/prompt.ts +43 -65
  433. package/src/sdk/realtimecanvas.ts +361 -0
  434. package/src/sdk/sdk.ts +55 -25
  435. package/src/sdk/texture.ts +208 -0
  436. package/src/sdk/threedmodelassets.ts +204 -0
  437. package/src/sdk/types/blobs.ts +1 -1
  438. package/src/sdk/types/enums.ts +16 -0
  439. package/src/sdk/types/index.ts +7 -5
  440. package/src/sdk/types/operations.ts +1 -1
  441. package/src/sdk/types/rfcdate.ts +1 -1
  442. package/src/sdk/user.ts +22 -35
  443. package/src/sdk/variation.ts +106 -157
  444. package/docs/sdks/generation/README.md +0 -485
  445. package/sdk/element.d.ts.map +0 -1
  446. package/sdk/element.js.map +0 -1
  447. package/sdk/generation.d.ts +0 -85
  448. package/sdk/generation.d.ts.map +0 -1
  449. package/sdk/generation.js +0 -799
  450. package/sdk/generation.js.map +0 -1
  451. package/sdk/initimage.d.ts.map +0 -1
  452. package/sdk/initimage.js +0 -261
  453. package/sdk/initimage.js.map +0 -1
  454. package/sdk/model.d.ts.map +0 -1
  455. package/sdk/model.js +0 -454
  456. package/sdk/model.js.map +0 -1
  457. package/src/sdk/generation.ts +0 -1057
  458. package/src/sdk/model.ts +0 -574
@@ -1,8 +1,9 @@
1
1
  /*
2
- * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import * as shared from "../shared";
5
+ import { remap as remap$ } from "../../../lib/primitives.js";
6
+ import * as shared from "../shared/index.js";
6
7
  import * as z from "zod";
7
8
 
8
9
  export type GetGenerationByIdRequest = {
@@ -201,592 +202,498 @@ export type GetGenerationByIdResponse = {
201
202
  };
202
203
 
203
204
  /** @internal */
204
- export namespace GetGenerationByIdRequest$ {
205
- export type Inbound = {
206
- id: string;
207
- };
208
-
209
- export const inboundSchema: z.ZodType<GetGenerationByIdRequest, z.ZodTypeDef, Inbound> = z
210
- .object({
211
- id: z.string(),
212
- })
213
- .transform((v) => {
214
- return {
215
- id: v.id,
216
- };
217
- });
205
+ export const GetGenerationByIdRequest$inboundSchema: z.ZodType<
206
+ GetGenerationByIdRequest,
207
+ z.ZodTypeDef,
208
+ unknown
209
+ > = z.object({
210
+ id: z.string(),
211
+ });
218
212
 
219
- export type Outbound = {
220
- id: string;
221
- };
222
-
223
- export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetGenerationByIdRequest> = z
224
- .object({
225
- id: z.string(),
226
- })
227
- .transform((v) => {
228
- return {
229
- id: v.id,
230
- };
231
- });
213
+ /** @internal */
214
+ export type GetGenerationByIdRequest$Outbound = {
215
+ id: string;
216
+ };
217
+
218
+ /** @internal */
219
+ export const GetGenerationByIdRequest$outboundSchema: z.ZodType<
220
+ GetGenerationByIdRequest$Outbound,
221
+ z.ZodTypeDef,
222
+ GetGenerationByIdRequest
223
+ > = z.object({
224
+ id: z.string(),
225
+ });
226
+
227
+ /**
228
+ * @internal
229
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
230
+ */
231
+ export namespace GetGenerationByIdRequest$ {
232
+ /** @deprecated use `GetGenerationByIdRequest$inboundSchema` instead. */
233
+ export const inboundSchema = GetGenerationByIdRequest$inboundSchema;
234
+ /** @deprecated use `GetGenerationByIdRequest$outboundSchema` instead. */
235
+ export const outboundSchema = GetGenerationByIdRequest$outboundSchema;
236
+ /** @deprecated use `GetGenerationByIdRequest$Outbound` instead. */
237
+ export type Outbound = GetGenerationByIdRequest$Outbound;
232
238
  }
233
239
 
234
240
  /** @internal */
235
- export namespace GetGenerationByIdGeneratedImageVariationGeneric$ {
236
- export type Inbound = {
237
- id?: string | null | undefined;
238
- status?: shared.JobStatus | undefined;
239
- transformType?: shared.VariationType | undefined;
240
- url?: string | null | undefined;
241
- };
242
-
243
- export const inboundSchema: z.ZodType<
244
- GetGenerationByIdGeneratedImageVariationGeneric,
245
- z.ZodTypeDef,
246
- Inbound
247
- > = z
248
- .object({
249
- id: z.nullable(z.string()).optional(),
250
- status: shared.JobStatus$.optional(),
251
- transformType: shared.VariationType$.optional(),
252
- url: z.nullable(z.string()).optional(),
253
- })
254
- .transform((v) => {
255
- return {
256
- ...(v.id === undefined ? null : { id: v.id }),
257
- ...(v.status === undefined ? null : { status: v.status }),
258
- ...(v.transformType === undefined ? null : { transformType: v.transformType }),
259
- ...(v.url === undefined ? null : { url: v.url }),
260
- };
261
- });
241
+ export const GetGenerationByIdGeneratedImageVariationGeneric$inboundSchema: z.ZodType<
242
+ GetGenerationByIdGeneratedImageVariationGeneric,
243
+ z.ZodTypeDef,
244
+ unknown
245
+ > = z.object({
246
+ id: z.nullable(z.string()).optional(),
247
+ status: shared.JobStatus$inboundSchema.optional(),
248
+ transformType: shared.VariationType$inboundSchema.optional(),
249
+ url: z.nullable(z.string()).optional(),
250
+ });
262
251
 
263
- export type Outbound = {
264
- id?: string | null | undefined;
265
- status?: shared.JobStatus | undefined;
266
- transformType?: shared.VariationType | undefined;
267
- url?: string | null | undefined;
268
- };
269
-
270
- export const outboundSchema: z.ZodType<
271
- Outbound,
272
- z.ZodTypeDef,
273
- GetGenerationByIdGeneratedImageVariationGeneric
274
- > = z
275
- .object({
276
- id: z.nullable(z.string()).optional(),
277
- status: shared.JobStatus$.optional(),
278
- transformType: shared.VariationType$.optional(),
279
- url: z.nullable(z.string()).optional(),
280
- })
281
- .transform((v) => {
282
- return {
283
- ...(v.id === undefined ? null : { id: v.id }),
284
- ...(v.status === undefined ? null : { status: v.status }),
285
- ...(v.transformType === undefined ? null : { transformType: v.transformType }),
286
- ...(v.url === undefined ? null : { url: v.url }),
287
- };
288
- });
252
+ /** @internal */
253
+ export type GetGenerationByIdGeneratedImageVariationGeneric$Outbound = {
254
+ id?: string | null | undefined;
255
+ status?: string | undefined;
256
+ transformType?: string | undefined;
257
+ url?: string | null | undefined;
258
+ };
259
+
260
+ /** @internal */
261
+ export const GetGenerationByIdGeneratedImageVariationGeneric$outboundSchema: z.ZodType<
262
+ GetGenerationByIdGeneratedImageVariationGeneric$Outbound,
263
+ z.ZodTypeDef,
264
+ GetGenerationByIdGeneratedImageVariationGeneric
265
+ > = z.object({
266
+ id: z.nullable(z.string()).optional(),
267
+ status: shared.JobStatus$outboundSchema.optional(),
268
+ transformType: shared.VariationType$outboundSchema.optional(),
269
+ url: z.nullable(z.string()).optional(),
270
+ });
271
+
272
+ /**
273
+ * @internal
274
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
275
+ */
276
+ export namespace GetGenerationByIdGeneratedImageVariationGeneric$ {
277
+ /** @deprecated use `GetGenerationByIdGeneratedImageVariationGeneric$inboundSchema` instead. */
278
+ export const inboundSchema = GetGenerationByIdGeneratedImageVariationGeneric$inboundSchema;
279
+ /** @deprecated use `GetGenerationByIdGeneratedImageVariationGeneric$outboundSchema` instead. */
280
+ export const outboundSchema = GetGenerationByIdGeneratedImageVariationGeneric$outboundSchema;
281
+ /** @deprecated use `GetGenerationByIdGeneratedImageVariationGeneric$Outbound` instead. */
282
+ export type Outbound = GetGenerationByIdGeneratedImageVariationGeneric$Outbound;
289
283
  }
290
284
 
291
285
  /** @internal */
292
- export namespace GeneratedImages$ {
293
- export type Inbound = {
294
- fantasyAvatar?: boolean | null | undefined;
295
- generated_image_variation_generics?:
296
- | Array<GetGenerationByIdGeneratedImageVariationGeneric$.Inbound>
297
- | undefined;
298
- id?: string | null | undefined;
299
- imageToVideo?: boolean | null | undefined;
300
- likeCount?: number | undefined;
301
- motion?: boolean | null | undefined;
302
- motionMP4URL?: string | null | undefined;
303
- motionModel?: string | null | undefined;
304
- motionStrength?: number | null | undefined;
305
- nsfw?: boolean | undefined;
306
- url?: string | undefined;
307
- };
308
-
309
- export const inboundSchema: z.ZodType<GeneratedImages, z.ZodTypeDef, Inbound> = z
310
- .object({
311
- fantasyAvatar: z.nullable(z.boolean()).optional(),
312
- generated_image_variation_generics: z
313
- .array(z.lazy(() => GetGenerationByIdGeneratedImageVariationGeneric$.inboundSchema))
314
- .optional(),
315
- id: z.nullable(z.string()).optional(),
316
- imageToVideo: z.nullable(z.boolean()).optional(),
317
- likeCount: z.number().int().optional(),
318
- motion: z.nullable(z.boolean()).optional(),
319
- motionMP4URL: z.nullable(z.string()).optional(),
320
- motionModel: z.nullable(z.string()).optional(),
321
- motionStrength: z.nullable(z.number().int()).optional(),
322
- nsfw: z.boolean().optional(),
323
- url: z.string().optional(),
324
- })
325
- .transform((v) => {
326
- return {
327
- ...(v.fantasyAvatar === undefined ? null : { fantasyAvatar: v.fantasyAvatar }),
328
- ...(v.generated_image_variation_generics === undefined
329
- ? null
330
- : { generatedImageVariationGenerics: v.generated_image_variation_generics }),
331
- ...(v.id === undefined ? null : { id: v.id }),
332
- ...(v.imageToVideo === undefined ? null : { imageToVideo: v.imageToVideo }),
333
- ...(v.likeCount === undefined ? null : { likeCount: v.likeCount }),
334
- ...(v.motion === undefined ? null : { motion: v.motion }),
335
- ...(v.motionMP4URL === undefined ? null : { motionMp4URL: v.motionMP4URL }),
336
- ...(v.motionModel === undefined ? null : { motionModel: v.motionModel }),
337
- ...(v.motionStrength === undefined ? null : { motionStrength: v.motionStrength }),
338
- ...(v.nsfw === undefined ? null : { nsfw: v.nsfw }),
339
- ...(v.url === undefined ? null : { url: v.url }),
340
- };
286
+ export const GeneratedImages$inboundSchema: z.ZodType<GeneratedImages, z.ZodTypeDef, unknown> = z
287
+ .object({
288
+ fantasyAvatar: z.nullable(z.boolean()).optional(),
289
+ generated_image_variation_generics: z
290
+ .array(z.lazy(() => GetGenerationByIdGeneratedImageVariationGeneric$inboundSchema))
291
+ .optional(),
292
+ id: z.nullable(z.string()).optional(),
293
+ imageToVideo: z.nullable(z.boolean()).optional(),
294
+ likeCount: z.number().int().optional(),
295
+ motion: z.nullable(z.boolean()).optional(),
296
+ motionMP4URL: z.nullable(z.string()).optional(),
297
+ motionModel: z.nullable(z.string()).optional(),
298
+ motionStrength: z.nullable(z.number().int()).optional(),
299
+ nsfw: z.boolean().optional(),
300
+ url: z.string().optional(),
301
+ })
302
+ .transform((v) => {
303
+ return remap$(v, {
304
+ generated_image_variation_generics: "generatedImageVariationGenerics",
305
+ motionMP4URL: "motionMp4URL",
341
306
  });
307
+ });
342
308
 
343
- export type Outbound = {
344
- fantasyAvatar?: boolean | null | undefined;
345
- generated_image_variation_generics?:
346
- | Array<GetGenerationByIdGeneratedImageVariationGeneric$.Outbound>
347
- | undefined;
348
- id?: string | null | undefined;
349
- imageToVideo?: boolean | null | undefined;
350
- likeCount?: number | undefined;
351
- motion?: boolean | null | undefined;
352
- motionMP4URL?: string | null | undefined;
353
- motionModel?: string | null | undefined;
354
- motionStrength?: number | null | undefined;
355
- nsfw?: boolean | undefined;
356
- url?: string | undefined;
357
- };
358
-
359
- export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GeneratedImages> = z
360
- .object({
361
- fantasyAvatar: z.nullable(z.boolean()).optional(),
362
- generatedImageVariationGenerics: z
363
- .array(
364
- z.lazy(() => GetGenerationByIdGeneratedImageVariationGeneric$.outboundSchema)
365
- )
366
- .optional(),
367
- id: z.nullable(z.string()).optional(),
368
- imageToVideo: z.nullable(z.boolean()).optional(),
369
- likeCount: z.number().int().optional(),
370
- motion: z.nullable(z.boolean()).optional(),
371
- motionMp4URL: z.nullable(z.string()).optional(),
372
- motionModel: z.nullable(z.string()).optional(),
373
- motionStrength: z.nullable(z.number().int()).optional(),
374
- nsfw: z.boolean().optional(),
375
- url: z.string().optional(),
376
- })
377
- .transform((v) => {
378
- return {
379
- ...(v.fantasyAvatar === undefined ? null : { fantasyAvatar: v.fantasyAvatar }),
380
- ...(v.generatedImageVariationGenerics === undefined
381
- ? null
382
- : { generated_image_variation_generics: v.generatedImageVariationGenerics }),
383
- ...(v.id === undefined ? null : { id: v.id }),
384
- ...(v.imageToVideo === undefined ? null : { imageToVideo: v.imageToVideo }),
385
- ...(v.likeCount === undefined ? null : { likeCount: v.likeCount }),
386
- ...(v.motion === undefined ? null : { motion: v.motion }),
387
- ...(v.motionMp4URL === undefined ? null : { motionMP4URL: v.motionMp4URL }),
388
- ...(v.motionModel === undefined ? null : { motionModel: v.motionModel }),
389
- ...(v.motionStrength === undefined ? null : { motionStrength: v.motionStrength }),
390
- ...(v.nsfw === undefined ? null : { nsfw: v.nsfw }),
391
- ...(v.url === undefined ? null : { url: v.url }),
392
- };
309
+ /** @internal */
310
+ export type GeneratedImages$Outbound = {
311
+ fantasyAvatar?: boolean | null | undefined;
312
+ generated_image_variation_generics?:
313
+ | Array<GetGenerationByIdGeneratedImageVariationGeneric$Outbound>
314
+ | undefined;
315
+ id?: string | null | undefined;
316
+ imageToVideo?: boolean | null | undefined;
317
+ likeCount?: number | undefined;
318
+ motion?: boolean | null | undefined;
319
+ motionMP4URL?: string | null | undefined;
320
+ motionModel?: string | null | undefined;
321
+ motionStrength?: number | null | undefined;
322
+ nsfw?: boolean | undefined;
323
+ url?: string | undefined;
324
+ };
325
+
326
+ /** @internal */
327
+ export const GeneratedImages$outboundSchema: z.ZodType<
328
+ GeneratedImages$Outbound,
329
+ z.ZodTypeDef,
330
+ GeneratedImages
331
+ > = z
332
+ .object({
333
+ fantasyAvatar: z.nullable(z.boolean()).optional(),
334
+ generatedImageVariationGenerics: z
335
+ .array(z.lazy(() => GetGenerationByIdGeneratedImageVariationGeneric$outboundSchema))
336
+ .optional(),
337
+ id: z.nullable(z.string()).optional(),
338
+ imageToVideo: z.nullable(z.boolean()).optional(),
339
+ likeCount: z.number().int().optional(),
340
+ motion: z.nullable(z.boolean()).optional(),
341
+ motionMp4URL: z.nullable(z.string()).optional(),
342
+ motionModel: z.nullable(z.string()).optional(),
343
+ motionStrength: z.nullable(z.number().int()).optional(),
344
+ nsfw: z.boolean().optional(),
345
+ url: z.string().optional(),
346
+ })
347
+ .transform((v) => {
348
+ return remap$(v, {
349
+ generatedImageVariationGenerics: "generated_image_variation_generics",
350
+ motionMp4URL: "motionMP4URL",
393
351
  });
352
+ });
353
+
354
+ /**
355
+ * @internal
356
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
357
+ */
358
+ export namespace GeneratedImages$ {
359
+ /** @deprecated use `GeneratedImages$inboundSchema` instead. */
360
+ export const inboundSchema = GeneratedImages$inboundSchema;
361
+ /** @deprecated use `GeneratedImages$outboundSchema` instead. */
362
+ export const outboundSchema = GeneratedImages$outboundSchema;
363
+ /** @deprecated use `GeneratedImages$Outbound` instead. */
364
+ export type Outbound = GeneratedImages$Outbound;
394
365
  }
395
366
 
396
367
  /** @internal */
397
- export namespace GetGenerationByIdLoras$ {
398
- export type Inbound = {
399
- akUUID?: string | null | undefined;
400
- baseModel?: shared.SdVersions | undefined;
401
- description?: string | null | undefined;
402
- name?: string | null | undefined;
403
- urlImage?: string | null | undefined;
404
- weightDefault?: number | null | undefined;
405
- weightMax?: number | null | undefined;
406
- weightMin?: number | null | undefined;
407
- };
408
-
409
- export const inboundSchema: z.ZodType<GetGenerationByIdLoras, z.ZodTypeDef, Inbound> = z
410
- .object({
411
- akUUID: z.nullable(z.string()).optional(),
412
- baseModel: shared.SdVersions$.optional(),
413
- description: z.nullable(z.string()).optional(),
414
- name: z.nullable(z.string()).optional(),
415
- urlImage: z.nullable(z.string()).optional(),
416
- weightDefault: z.nullable(z.number().int()).optional(),
417
- weightMax: z.nullable(z.number().int()).optional(),
418
- weightMin: z.nullable(z.number().int()).optional(),
419
- })
420
- .transform((v) => {
421
- return {
422
- ...(v.akUUID === undefined ? null : { akUUID: v.akUUID }),
423
- ...(v.baseModel === undefined ? null : { baseModel: v.baseModel }),
424
- ...(v.description === undefined ? null : { description: v.description }),
425
- ...(v.name === undefined ? null : { name: v.name }),
426
- ...(v.urlImage === undefined ? null : { urlImage: v.urlImage }),
427
- ...(v.weightDefault === undefined ? null : { weightDefault: v.weightDefault }),
428
- ...(v.weightMax === undefined ? null : { weightMax: v.weightMax }),
429
- ...(v.weightMin === undefined ? null : { weightMin: v.weightMin }),
430
- };
431
- });
368
+ export const GetGenerationByIdLoras$inboundSchema: z.ZodType<
369
+ GetGenerationByIdLoras,
370
+ z.ZodTypeDef,
371
+ unknown
372
+ > = z.object({
373
+ akUUID: z.nullable(z.string()).optional(),
374
+ baseModel: shared.SdVersions$inboundSchema.optional(),
375
+ description: z.nullable(z.string()).optional(),
376
+ name: z.nullable(z.string()).optional(),
377
+ urlImage: z.nullable(z.string()).optional(),
378
+ weightDefault: z.nullable(z.number().int()).optional(),
379
+ weightMax: z.nullable(z.number().int()).optional(),
380
+ weightMin: z.nullable(z.number().int()).optional(),
381
+ });
432
382
 
433
- export type Outbound = {
434
- akUUID?: string | null | undefined;
435
- baseModel?: shared.SdVersions | undefined;
436
- description?: string | null | undefined;
437
- name?: string | null | undefined;
438
- urlImage?: string | null | undefined;
439
- weightDefault?: number | null | undefined;
440
- weightMax?: number | null | undefined;
441
- weightMin?: number | null | undefined;
442
- };
443
-
444
- export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetGenerationByIdLoras> = z
445
- .object({
446
- akUUID: z.nullable(z.string()).optional(),
447
- baseModel: shared.SdVersions$.optional(),
448
- description: z.nullable(z.string()).optional(),
449
- name: z.nullable(z.string()).optional(),
450
- urlImage: z.nullable(z.string()).optional(),
451
- weightDefault: z.nullable(z.number().int()).optional(),
452
- weightMax: z.nullable(z.number().int()).optional(),
453
- weightMin: z.nullable(z.number().int()).optional(),
454
- })
455
- .transform((v) => {
456
- return {
457
- ...(v.akUUID === undefined ? null : { akUUID: v.akUUID }),
458
- ...(v.baseModel === undefined ? null : { baseModel: v.baseModel }),
459
- ...(v.description === undefined ? null : { description: v.description }),
460
- ...(v.name === undefined ? null : { name: v.name }),
461
- ...(v.urlImage === undefined ? null : { urlImage: v.urlImage }),
462
- ...(v.weightDefault === undefined ? null : { weightDefault: v.weightDefault }),
463
- ...(v.weightMax === undefined ? null : { weightMax: v.weightMax }),
464
- ...(v.weightMin === undefined ? null : { weightMin: v.weightMin }),
465
- };
466
- });
383
+ /** @internal */
384
+ export type GetGenerationByIdLoras$Outbound = {
385
+ akUUID?: string | null | undefined;
386
+ baseModel?: string | undefined;
387
+ description?: string | null | undefined;
388
+ name?: string | null | undefined;
389
+ urlImage?: string | null | undefined;
390
+ weightDefault?: number | null | undefined;
391
+ weightMax?: number | null | undefined;
392
+ weightMin?: number | null | undefined;
393
+ };
394
+
395
+ /** @internal */
396
+ export const GetGenerationByIdLoras$outboundSchema: z.ZodType<
397
+ GetGenerationByIdLoras$Outbound,
398
+ z.ZodTypeDef,
399
+ GetGenerationByIdLoras
400
+ > = z.object({
401
+ akUUID: z.nullable(z.string()).optional(),
402
+ baseModel: shared.SdVersions$outboundSchema.optional(),
403
+ description: z.nullable(z.string()).optional(),
404
+ name: z.nullable(z.string()).optional(),
405
+ urlImage: z.nullable(z.string()).optional(),
406
+ weightDefault: z.nullable(z.number().int()).optional(),
407
+ weightMax: z.nullable(z.number().int()).optional(),
408
+ weightMin: z.nullable(z.number().int()).optional(),
409
+ });
410
+
411
+ /**
412
+ * @internal
413
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
414
+ */
415
+ export namespace GetGenerationByIdLoras$ {
416
+ /** @deprecated use `GetGenerationByIdLoras$inboundSchema` instead. */
417
+ export const inboundSchema = GetGenerationByIdLoras$inboundSchema;
418
+ /** @deprecated use `GetGenerationByIdLoras$outboundSchema` instead. */
419
+ export const outboundSchema = GetGenerationByIdLoras$outboundSchema;
420
+ /** @deprecated use `GetGenerationByIdLoras$Outbound` instead. */
421
+ export type Outbound = GetGenerationByIdLoras$Outbound;
467
422
  }
468
423
 
469
424
  /** @internal */
425
+ export const GenerationElements$inboundSchema: z.ZodType<
426
+ GenerationElements,
427
+ z.ZodTypeDef,
428
+ unknown
429
+ > = z.object({
430
+ id: z.nullable(z.number().int()).optional(),
431
+ lora: z.nullable(z.lazy(() => GetGenerationByIdLoras$inboundSchema)).optional(),
432
+ weightApplied: z.nullable(z.number()).optional(),
433
+ });
434
+
435
+ /** @internal */
436
+ export type GenerationElements$Outbound = {
437
+ id?: number | null | undefined;
438
+ lora?: GetGenerationByIdLoras$Outbound | null | undefined;
439
+ weightApplied?: number | null | undefined;
440
+ };
441
+
442
+ /** @internal */
443
+ export const GenerationElements$outboundSchema: z.ZodType<
444
+ GenerationElements$Outbound,
445
+ z.ZodTypeDef,
446
+ GenerationElements
447
+ > = z.object({
448
+ id: z.nullable(z.number().int()).optional(),
449
+ lora: z.nullable(z.lazy(() => GetGenerationByIdLoras$outboundSchema)).optional(),
450
+ weightApplied: z.nullable(z.number()).optional(),
451
+ });
452
+
453
+ /**
454
+ * @internal
455
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
456
+ */
470
457
  export namespace GenerationElements$ {
471
- export type Inbound = {
472
- id?: number | null | undefined;
473
- lora?: GetGenerationByIdLoras$.Inbound | null | undefined;
474
- weightApplied?: number | null | undefined;
475
- };
476
-
477
- export const inboundSchema: z.ZodType<GenerationElements, z.ZodTypeDef, Inbound> = z
478
- .object({
479
- id: z.nullable(z.number().int()).optional(),
480
- lora: z.nullable(z.lazy(() => GetGenerationByIdLoras$.inboundSchema)).optional(),
481
- weightApplied: z.nullable(z.number()).optional(),
482
- })
483
- .transform((v) => {
484
- return {
485
- ...(v.id === undefined ? null : { id: v.id }),
486
- ...(v.lora === undefined ? null : { lora: v.lora }),
487
- ...(v.weightApplied === undefined ? null : { weightApplied: v.weightApplied }),
488
- };
458
+ /** @deprecated use `GenerationElements$inboundSchema` instead. */
459
+ export const inboundSchema = GenerationElements$inboundSchema;
460
+ /** @deprecated use `GenerationElements$outboundSchema` instead. */
461
+ export const outboundSchema = GenerationElements$outboundSchema;
462
+ /** @deprecated use `GenerationElements$Outbound` instead. */
463
+ export type Outbound = GenerationElements$Outbound;
464
+ }
465
+
466
+ /** @internal */
467
+ export const GetGenerationByIdGenerations$inboundSchema: z.ZodType<
468
+ GetGenerationByIdGenerations,
469
+ z.ZodTypeDef,
470
+ unknown
471
+ > = z
472
+ .object({
473
+ createdAt: z.string().optional(),
474
+ generated_images: z.array(z.lazy(() => GeneratedImages$inboundSchema)).optional(),
475
+ generation_elements: z.array(z.lazy(() => GenerationElements$inboundSchema)).optional(),
476
+ guidanceScale: z.nullable(z.number()).optional(),
477
+ id: z.nullable(z.string()).optional(),
478
+ imageHeight: z.number().int().optional(),
479
+ imageWidth: z.number().int().optional(),
480
+ inferenceSteps: z.nullable(z.number().int()).optional(),
481
+ initStrength: z.nullable(z.number()).optional(),
482
+ modelId: z.nullable(z.string()).optional(),
483
+ negativePrompt: z.nullable(z.string()).optional(),
484
+ photoReal: z.nullable(z.boolean()).optional(),
485
+ photoRealStrength: z.nullable(z.number()).optional(),
486
+ presetStyle: z.nullable(
487
+ shared.SdGenerationStyle$inboundSchema.default(shared.SdGenerationStyle.Dynamic)
488
+ ),
489
+ prompt: z.string().optional(),
490
+ promptMagic: z.nullable(z.boolean()).optional(),
491
+ promptMagicStrength: z.nullable(z.number()).optional(),
492
+ promptMagicVersion: z.nullable(z.string()).optional(),
493
+ public: z.boolean().optional(),
494
+ scheduler: shared.SdGenerationSchedulers$inboundSchema.optional(),
495
+ sdVersion: shared.SdVersions$inboundSchema.optional(),
496
+ seed: z.nullable(z.number().int()).optional(),
497
+ status: shared.JobStatus$inboundSchema.optional(),
498
+ })
499
+ .transform((v) => {
500
+ return remap$(v, {
501
+ generated_images: "generatedImages",
502
+ generation_elements: "generationElements",
489
503
  });
504
+ });
490
505
 
491
- export type Outbound = {
492
- id?: number | null | undefined;
493
- lora?: GetGenerationByIdLoras$.Outbound | null | undefined;
494
- weightApplied?: number | null | undefined;
495
- };
496
-
497
- export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GenerationElements> = z
498
- .object({
499
- id: z.nullable(z.number().int()).optional(),
500
- lora: z.nullable(z.lazy(() => GetGenerationByIdLoras$.outboundSchema)).optional(),
501
- weightApplied: z.nullable(z.number()).optional(),
502
- })
503
- .transform((v) => {
504
- return {
505
- ...(v.id === undefined ? null : { id: v.id }),
506
- ...(v.lora === undefined ? null : { lora: v.lora }),
507
- ...(v.weightApplied === undefined ? null : { weightApplied: v.weightApplied }),
508
- };
506
+ /** @internal */
507
+ export type GetGenerationByIdGenerations$Outbound = {
508
+ createdAt?: string | undefined;
509
+ generated_images?: Array<GeneratedImages$Outbound> | undefined;
510
+ generation_elements?: Array<GenerationElements$Outbound> | undefined;
511
+ guidanceScale?: number | null | undefined;
512
+ id?: string | null | undefined;
513
+ imageHeight?: number | undefined;
514
+ imageWidth?: number | undefined;
515
+ inferenceSteps?: number | null | undefined;
516
+ initStrength?: number | null | undefined;
517
+ modelId?: string | null | undefined;
518
+ negativePrompt?: string | null | undefined;
519
+ photoReal?: boolean | null | undefined;
520
+ photoRealStrength?: number | null | undefined;
521
+ presetStyle: string | null;
522
+ prompt?: string | undefined;
523
+ promptMagic?: boolean | null | undefined;
524
+ promptMagicStrength?: number | null | undefined;
525
+ promptMagicVersion?: string | null | undefined;
526
+ public?: boolean | undefined;
527
+ scheduler?: string | undefined;
528
+ sdVersion?: string | undefined;
529
+ seed?: number | null | undefined;
530
+ status?: string | undefined;
531
+ };
532
+
533
+ /** @internal */
534
+ export const GetGenerationByIdGenerations$outboundSchema: z.ZodType<
535
+ GetGenerationByIdGenerations$Outbound,
536
+ z.ZodTypeDef,
537
+ GetGenerationByIdGenerations
538
+ > = z
539
+ .object({
540
+ createdAt: z.string().optional(),
541
+ generatedImages: z.array(z.lazy(() => GeneratedImages$outboundSchema)).optional(),
542
+ generationElements: z.array(z.lazy(() => GenerationElements$outboundSchema)).optional(),
543
+ guidanceScale: z.nullable(z.number()).optional(),
544
+ id: z.nullable(z.string()).optional(),
545
+ imageHeight: z.number().int().optional(),
546
+ imageWidth: z.number().int().optional(),
547
+ inferenceSteps: z.nullable(z.number().int()).optional(),
548
+ initStrength: z.nullable(z.number()).optional(),
549
+ modelId: z.nullable(z.string()).optional(),
550
+ negativePrompt: z.nullable(z.string()).optional(),
551
+ photoReal: z.nullable(z.boolean()).optional(),
552
+ photoRealStrength: z.nullable(z.number()).optional(),
553
+ presetStyle: z.nullable(
554
+ shared.SdGenerationStyle$outboundSchema.default(shared.SdGenerationStyle.Dynamic)
555
+ ),
556
+ prompt: z.string().optional(),
557
+ promptMagic: z.nullable(z.boolean()).optional(),
558
+ promptMagicStrength: z.nullable(z.number()).optional(),
559
+ promptMagicVersion: z.nullable(z.string()).optional(),
560
+ public: z.boolean().optional(),
561
+ scheduler: shared.SdGenerationSchedulers$outboundSchema.optional(),
562
+ sdVersion: shared.SdVersions$outboundSchema.optional(),
563
+ seed: z.nullable(z.number().int()).optional(),
564
+ status: shared.JobStatus$outboundSchema.optional(),
565
+ })
566
+ .transform((v) => {
567
+ return remap$(v, {
568
+ generatedImages: "generated_images",
569
+ generationElements: "generation_elements",
509
570
  });
571
+ });
572
+
573
+ /**
574
+ * @internal
575
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
576
+ */
577
+ export namespace GetGenerationByIdGenerations$ {
578
+ /** @deprecated use `GetGenerationByIdGenerations$inboundSchema` instead. */
579
+ export const inboundSchema = GetGenerationByIdGenerations$inboundSchema;
580
+ /** @deprecated use `GetGenerationByIdGenerations$outboundSchema` instead. */
581
+ export const outboundSchema = GetGenerationByIdGenerations$outboundSchema;
582
+ /** @deprecated use `GetGenerationByIdGenerations$Outbound` instead. */
583
+ export type Outbound = GetGenerationByIdGenerations$Outbound;
510
584
  }
511
585
 
512
586
  /** @internal */
513
- export namespace GetGenerationByIdGenerations$ {
514
- export type Inbound = {
515
- createdAt?: string | undefined;
516
- generated_images?: Array<GeneratedImages$.Inbound> | undefined;
517
- generation_elements?: Array<GenerationElements$.Inbound> | undefined;
518
- guidanceScale?: number | null | undefined;
519
- id?: string | null | undefined;
520
- imageHeight?: number | undefined;
521
- imageWidth?: number | undefined;
522
- inferenceSteps?: number | null | undefined;
523
- initStrength?: number | null | undefined;
524
- modelId?: string | null | undefined;
525
- negativePrompt?: string | null | undefined;
526
- photoReal?: boolean | null | undefined;
527
- photoRealStrength?: number | null | undefined;
528
- presetStyle?: shared.SdGenerationStyle | null | undefined;
529
- prompt?: string | undefined;
530
- promptMagic?: boolean | null | undefined;
531
- promptMagicStrength?: number | null | undefined;
532
- promptMagicVersion?: string | null | undefined;
533
- public?: boolean | undefined;
534
- scheduler?: shared.SdGenerationSchedulers | undefined;
535
- sdVersion?: shared.SdVersions | undefined;
536
- seed?: number | null | undefined;
537
- status?: shared.JobStatus | undefined;
538
- };
539
-
540
- export const inboundSchema: z.ZodType<GetGenerationByIdGenerations, z.ZodTypeDef, Inbound> = z
541
- .object({
542
- createdAt: z.string().optional(),
543
- generated_images: z.array(z.lazy(() => GeneratedImages$.inboundSchema)).optional(),
544
- generation_elements: z
545
- .array(z.lazy(() => GenerationElements$.inboundSchema))
546
- .optional(),
547
- guidanceScale: z.nullable(z.number()).optional(),
548
- id: z.nullable(z.string()).optional(),
549
- imageHeight: z.number().int().optional(),
550
- imageWidth: z.number().int().optional(),
551
- inferenceSteps: z.nullable(z.number().int()).optional(),
552
- initStrength: z.nullable(z.number()).optional(),
553
- modelId: z.nullable(z.string()).optional(),
554
- negativePrompt: z.nullable(z.string()).optional(),
555
- photoReal: z.nullable(z.boolean()).optional(),
556
- photoRealStrength: z.nullable(z.number()).optional(),
557
- presetStyle: z.nullable(
558
- shared.SdGenerationStyle$.default(shared.SdGenerationStyle.Dynamic)
559
- ),
560
- prompt: z.string().optional(),
561
- promptMagic: z.nullable(z.boolean()).optional(),
562
- promptMagicStrength: z.nullable(z.number()).optional(),
563
- promptMagicVersion: z.nullable(z.string()).optional(),
564
- public: z.boolean().optional(),
565
- scheduler: shared.SdGenerationSchedulers$.optional(),
566
- sdVersion: shared.SdVersions$.optional(),
567
- seed: z.nullable(z.number().int()).optional(),
568
- status: shared.JobStatus$.optional(),
569
- })
570
- .transform((v) => {
571
- return {
572
- ...(v.createdAt === undefined ? null : { createdAt: v.createdAt }),
573
- ...(v.generated_images === undefined
574
- ? null
575
- : { generatedImages: v.generated_images }),
576
- ...(v.generation_elements === undefined
577
- ? null
578
- : { generationElements: v.generation_elements }),
579
- ...(v.guidanceScale === undefined ? null : { guidanceScale: v.guidanceScale }),
580
- ...(v.id === undefined ? null : { id: v.id }),
581
- ...(v.imageHeight === undefined ? null : { imageHeight: v.imageHeight }),
582
- ...(v.imageWidth === undefined ? null : { imageWidth: v.imageWidth }),
583
- ...(v.inferenceSteps === undefined ? null : { inferenceSteps: v.inferenceSteps }),
584
- ...(v.initStrength === undefined ? null : { initStrength: v.initStrength }),
585
- ...(v.modelId === undefined ? null : { modelId: v.modelId }),
586
- ...(v.negativePrompt === undefined ? null : { negativePrompt: v.negativePrompt }),
587
- ...(v.photoReal === undefined ? null : { photoReal: v.photoReal }),
588
- ...(v.photoRealStrength === undefined
589
- ? null
590
- : { photoRealStrength: v.photoRealStrength }),
591
- presetStyle: v.presetStyle,
592
- ...(v.prompt === undefined ? null : { prompt: v.prompt }),
593
- ...(v.promptMagic === undefined ? null : { promptMagic: v.promptMagic }),
594
- ...(v.promptMagicStrength === undefined
595
- ? null
596
- : { promptMagicStrength: v.promptMagicStrength }),
597
- ...(v.promptMagicVersion === undefined
598
- ? null
599
- : { promptMagicVersion: v.promptMagicVersion }),
600
- ...(v.public === undefined ? null : { public: v.public }),
601
- ...(v.scheduler === undefined ? null : { scheduler: v.scheduler }),
602
- ...(v.sdVersion === undefined ? null : { sdVersion: v.sdVersion }),
603
- ...(v.seed === undefined ? null : { seed: v.seed }),
604
- ...(v.status === undefined ? null : { status: v.status }),
605
- };
587
+ export const GetGenerationByIdResponseBody$inboundSchema: z.ZodType<
588
+ GetGenerationByIdResponseBody,
589
+ z.ZodTypeDef,
590
+ unknown
591
+ > = z
592
+ .object({
593
+ generations_by_pk: z
594
+ .nullable(z.lazy(() => GetGenerationByIdGenerations$inboundSchema))
595
+ .optional(),
596
+ })
597
+ .transform((v) => {
598
+ return remap$(v, {
599
+ generations_by_pk: "generationsByPk",
606
600
  });
601
+ });
607
602
 
608
- export type Outbound = {
609
- createdAt?: string | undefined;
610
- generated_images?: Array<GeneratedImages$.Outbound> | undefined;
611
- generation_elements?: Array<GenerationElements$.Outbound> | undefined;
612
- guidanceScale?: number | null | undefined;
613
- id?: string | null | undefined;
614
- imageHeight?: number | undefined;
615
- imageWidth?: number | undefined;
616
- inferenceSteps?: number | null | undefined;
617
- initStrength?: number | null | undefined;
618
- modelId?: string | null | undefined;
619
- negativePrompt?: string | null | undefined;
620
- photoReal?: boolean | null | undefined;
621
- photoRealStrength?: number | null | undefined;
622
- presetStyle: shared.SdGenerationStyle | null;
623
- prompt?: string | undefined;
624
- promptMagic?: boolean | null | undefined;
625
- promptMagicStrength?: number | null | undefined;
626
- promptMagicVersion?: string | null | undefined;
627
- public?: boolean | undefined;
628
- scheduler?: shared.SdGenerationSchedulers | undefined;
629
- sdVersion?: shared.SdVersions | undefined;
630
- seed?: number | null | undefined;
631
- status?: shared.JobStatus | undefined;
632
- };
633
-
634
- export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetGenerationByIdGenerations> = z
635
- .object({
636
- createdAt: z.string().optional(),
637
- generatedImages: z.array(z.lazy(() => GeneratedImages$.outboundSchema)).optional(),
638
- generationElements: z
639
- .array(z.lazy(() => GenerationElements$.outboundSchema))
640
- .optional(),
641
- guidanceScale: z.nullable(z.number()).optional(),
642
- id: z.nullable(z.string()).optional(),
643
- imageHeight: z.number().int().optional(),
644
- imageWidth: z.number().int().optional(),
645
- inferenceSteps: z.nullable(z.number().int()).optional(),
646
- initStrength: z.nullable(z.number()).optional(),
647
- modelId: z.nullable(z.string()).optional(),
648
- negativePrompt: z.nullable(z.string()).optional(),
649
- photoReal: z.nullable(z.boolean()).optional(),
650
- photoRealStrength: z.nullable(z.number()).optional(),
651
- presetStyle: z.nullable(
652
- shared.SdGenerationStyle$.default(shared.SdGenerationStyle.Dynamic)
653
- ),
654
- prompt: z.string().optional(),
655
- promptMagic: z.nullable(z.boolean()).optional(),
656
- promptMagicStrength: z.nullable(z.number()).optional(),
657
- promptMagicVersion: z.nullable(z.string()).optional(),
658
- public: z.boolean().optional(),
659
- scheduler: shared.SdGenerationSchedulers$.optional(),
660
- sdVersion: shared.SdVersions$.optional(),
661
- seed: z.nullable(z.number().int()).optional(),
662
- status: shared.JobStatus$.optional(),
663
- })
664
- .transform((v) => {
665
- return {
666
- ...(v.createdAt === undefined ? null : { createdAt: v.createdAt }),
667
- ...(v.generatedImages === undefined
668
- ? null
669
- : { generated_images: v.generatedImages }),
670
- ...(v.generationElements === undefined
671
- ? null
672
- : { generation_elements: v.generationElements }),
673
- ...(v.guidanceScale === undefined ? null : { guidanceScale: v.guidanceScale }),
674
- ...(v.id === undefined ? null : { id: v.id }),
675
- ...(v.imageHeight === undefined ? null : { imageHeight: v.imageHeight }),
676
- ...(v.imageWidth === undefined ? null : { imageWidth: v.imageWidth }),
677
- ...(v.inferenceSteps === undefined ? null : { inferenceSteps: v.inferenceSteps }),
678
- ...(v.initStrength === undefined ? null : { initStrength: v.initStrength }),
679
- ...(v.modelId === undefined ? null : { modelId: v.modelId }),
680
- ...(v.negativePrompt === undefined ? null : { negativePrompt: v.negativePrompt }),
681
- ...(v.photoReal === undefined ? null : { photoReal: v.photoReal }),
682
- ...(v.photoRealStrength === undefined
683
- ? null
684
- : { photoRealStrength: v.photoRealStrength }),
685
- presetStyle: v.presetStyle,
686
- ...(v.prompt === undefined ? null : { prompt: v.prompt }),
687
- ...(v.promptMagic === undefined ? null : { promptMagic: v.promptMagic }),
688
- ...(v.promptMagicStrength === undefined
689
- ? null
690
- : { promptMagicStrength: v.promptMagicStrength }),
691
- ...(v.promptMagicVersion === undefined
692
- ? null
693
- : { promptMagicVersion: v.promptMagicVersion }),
694
- ...(v.public === undefined ? null : { public: v.public }),
695
- ...(v.scheduler === undefined ? null : { scheduler: v.scheduler }),
696
- ...(v.sdVersion === undefined ? null : { sdVersion: v.sdVersion }),
697
- ...(v.seed === undefined ? null : { seed: v.seed }),
698
- ...(v.status === undefined ? null : { status: v.status }),
699
- };
700
- });
701
- }
603
+ /** @internal */
604
+ export type GetGenerationByIdResponseBody$Outbound = {
605
+ generations_by_pk?: GetGenerationByIdGenerations$Outbound | null | undefined;
606
+ };
702
607
 
703
608
  /** @internal */
704
- export namespace GetGenerationByIdResponseBody$ {
705
- export type Inbound = {
706
- generations_by_pk?: GetGenerationByIdGenerations$.Inbound | null | undefined;
707
- };
708
-
709
- export const inboundSchema: z.ZodType<GetGenerationByIdResponseBody, z.ZodTypeDef, Inbound> = z
710
- .object({
711
- generations_by_pk: z
712
- .nullable(z.lazy(() => GetGenerationByIdGenerations$.inboundSchema))
713
- .optional(),
714
- })
715
- .transform((v) => {
716
- return {
717
- ...(v.generations_by_pk === undefined
718
- ? null
719
- : { generationsByPk: v.generations_by_pk }),
720
- };
609
+ export const GetGenerationByIdResponseBody$outboundSchema: z.ZodType<
610
+ GetGenerationByIdResponseBody$Outbound,
611
+ z.ZodTypeDef,
612
+ GetGenerationByIdResponseBody
613
+ > = z
614
+ .object({
615
+ generationsByPk: z
616
+ .nullable(z.lazy(() => GetGenerationByIdGenerations$outboundSchema))
617
+ .optional(),
618
+ })
619
+ .transform((v) => {
620
+ return remap$(v, {
621
+ generationsByPk: "generations_by_pk",
721
622
  });
623
+ });
722
624
 
723
- export type Outbound = {
724
- generations_by_pk?: GetGenerationByIdGenerations$.Outbound | null | undefined;
725
- };
726
-
727
- export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetGenerationByIdResponseBody> =
728
- z
729
- .object({
730
- generationsByPk: z
731
- .nullable(z.lazy(() => GetGenerationByIdGenerations$.outboundSchema))
732
- .optional(),
733
- })
734
- .transform((v) => {
735
- return {
736
- ...(v.generationsByPk === undefined
737
- ? null
738
- : { generations_by_pk: v.generationsByPk }),
739
- };
740
- });
625
+ /**
626
+ * @internal
627
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
628
+ */
629
+ export namespace GetGenerationByIdResponseBody$ {
630
+ /** @deprecated use `GetGenerationByIdResponseBody$inboundSchema` instead. */
631
+ export const inboundSchema = GetGenerationByIdResponseBody$inboundSchema;
632
+ /** @deprecated use `GetGenerationByIdResponseBody$outboundSchema` instead. */
633
+ export const outboundSchema = GetGenerationByIdResponseBody$outboundSchema;
634
+ /** @deprecated use `GetGenerationByIdResponseBody$Outbound` instead. */
635
+ export type Outbound = GetGenerationByIdResponseBody$Outbound;
741
636
  }
742
637
 
743
638
  /** @internal */
744
- export namespace GetGenerationByIdResponse$ {
745
- export type Inbound = {
746
- ContentType: string;
747
- StatusCode: number;
748
- RawResponse: Response;
749
- object?: GetGenerationByIdResponseBody$.Inbound | undefined;
750
- };
751
-
752
- export const inboundSchema: z.ZodType<GetGenerationByIdResponse, z.ZodTypeDef, Inbound> = z
753
- .object({
754
- ContentType: z.string(),
755
- StatusCode: z.number().int(),
756
- RawResponse: z.instanceof(Response),
757
- object: z.lazy(() => GetGenerationByIdResponseBody$.inboundSchema).optional(),
758
- })
759
- .transform((v) => {
760
- return {
761
- contentType: v.ContentType,
762
- statusCode: v.StatusCode,
763
- rawResponse: v.RawResponse,
764
- ...(v.object === undefined ? null : { object: v.object }),
765
- };
639
+ export const GetGenerationByIdResponse$inboundSchema: z.ZodType<
640
+ GetGenerationByIdResponse,
641
+ z.ZodTypeDef,
642
+ unknown
643
+ > = z
644
+ .object({
645
+ ContentType: z.string(),
646
+ StatusCode: z.number().int(),
647
+ RawResponse: z.instanceof(Response),
648
+ object: z.lazy(() => GetGenerationByIdResponseBody$inboundSchema).optional(),
649
+ })
650
+ .transform((v) => {
651
+ return remap$(v, {
652
+ ContentType: "contentType",
653
+ StatusCode: "statusCode",
654
+ RawResponse: "rawResponse",
766
655
  });
656
+ });
657
+
658
+ /** @internal */
659
+ export type GetGenerationByIdResponse$Outbound = {
660
+ ContentType: string;
661
+ StatusCode: number;
662
+ RawResponse: never;
663
+ object?: GetGenerationByIdResponseBody$Outbound | undefined;
664
+ };
767
665
 
768
- export type Outbound = {
769
- ContentType: string;
770
- StatusCode: number;
771
- RawResponse: never;
772
- object?: GetGenerationByIdResponseBody$.Outbound | undefined;
773
- };
774
-
775
- export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetGenerationByIdResponse> = z
776
- .object({
777
- contentType: z.string(),
778
- statusCode: z.number().int(),
779
- rawResponse: z.instanceof(Response).transform(() => {
780
- throw new Error("Response cannot be serialized");
781
- }),
782
- object: z.lazy(() => GetGenerationByIdResponseBody$.outboundSchema).optional(),
783
- })
784
- .transform((v) => {
785
- return {
786
- ContentType: v.contentType,
787
- StatusCode: v.statusCode,
788
- RawResponse: v.rawResponse,
789
- ...(v.object === undefined ? null : { object: v.object }),
790
- };
666
+ /** @internal */
667
+ export const GetGenerationByIdResponse$outboundSchema: z.ZodType<
668
+ GetGenerationByIdResponse$Outbound,
669
+ z.ZodTypeDef,
670
+ GetGenerationByIdResponse
671
+ > = z
672
+ .object({
673
+ contentType: z.string(),
674
+ statusCode: z.number().int(),
675
+ rawResponse: z.instanceof(Response).transform(() => {
676
+ throw new Error("Response cannot be serialized");
677
+ }),
678
+ object: z.lazy(() => GetGenerationByIdResponseBody$outboundSchema).optional(),
679
+ })
680
+ .transform((v) => {
681
+ return remap$(v, {
682
+ contentType: "ContentType",
683
+ statusCode: "StatusCode",
684
+ rawResponse: "RawResponse",
791
685
  });
686
+ });
687
+
688
+ /**
689
+ * @internal
690
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
691
+ */
692
+ export namespace GetGenerationByIdResponse$ {
693
+ /** @deprecated use `GetGenerationByIdResponse$inboundSchema` instead. */
694
+ export const inboundSchema = GetGenerationByIdResponse$inboundSchema;
695
+ /** @deprecated use `GetGenerationByIdResponse$outboundSchema` instead. */
696
+ export const outboundSchema = GetGenerationByIdResponse$outboundSchema;
697
+ /** @deprecated use `GetGenerationByIdResponse$Outbound` instead. */
698
+ export type Outbound = GetGenerationByIdResponse$Outbound;
792
699
  }