@leonardo-ai/sdk 4.6.0 → 4.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +132 -44
- package/docs/sdks/dataset/README.md +16 -21
- package/docs/sdks/{element → elements}/README.md +5 -4
- package/docs/sdks/{model → image}/README.md +32 -121
- package/docs/sdks/initimages/README.md +182 -0
- package/docs/sdks/models/README.md +180 -0
- package/docs/sdks/motion/README.md +50 -0
- package/docs/sdks/pricingcalculator/README.md +48 -0
- package/docs/sdks/prompt/README.md +4 -2
- package/docs/sdks/realtimecanvas/README.md +190 -0
- package/docs/sdks/texture/README.md +92 -0
- package/docs/sdks/{initimage → threedmodelassets}/README.md +17 -62
- package/docs/sdks/user/README.md +2 -1
- package/docs/sdks/variation/README.md +52 -7
- package/hooks/hooks.d.ts +5 -1
- package/hooks/hooks.d.ts.map +1 -1
- package/hooks/hooks.js +11 -0
- package/hooks/hooks.js.map +1 -1
- package/hooks/index.d.ts +2 -2
- package/hooks/index.d.ts.map +1 -1
- package/hooks/index.js +2 -2
- package/hooks/index.js.map +1 -1
- package/hooks/types.d.ts +29 -16
- package/hooks/types.d.ts.map +1 -1
- package/index.d.ts +2 -2
- package/index.d.ts.map +1 -1
- package/index.js +2 -2
- package/index.js.map +1 -1
- package/lib/config.d.ts +6 -5
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +5 -5
- package/lib/config.js.map +1 -1
- package/lib/encodings.d.ts +16 -1
- package/lib/encodings.d.ts.map +1 -1
- package/lib/encodings.js +55 -23
- package/lib/encodings.js.map +1 -1
- package/lib/http.d.ts +66 -3
- package/lib/http.d.ts.map +1 -1
- package/lib/http.js +216 -17
- package/lib/http.js.map +1 -1
- package/lib/is-plain-object.d.ts +2 -0
- package/lib/is-plain-object.d.ts.map +1 -0
- package/lib/is-plain-object.js +42 -0
- package/lib/is-plain-object.js.map +1 -0
- package/lib/primitives.d.ts +16 -0
- package/lib/primitives.d.ts.map +1 -0
- package/lib/primitives.js +30 -0
- package/lib/primitives.js.map +1 -0
- package/lib/schemas.d.ts +4 -0
- package/lib/schemas.d.ts.map +1 -1
- package/lib/schemas.js +22 -26
- package/lib/schemas.js.map +1 -1
- package/lib/sdks.d.ts +31 -9
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +66 -32
- package/lib/sdks.js.map +1 -1
- package/lib/security.d.ts +2 -2
- package/lib/security.d.ts.map +1 -1
- package/package.json +8 -9
- package/sdk/dataset.d.ts +4 -4
- package/sdk/dataset.d.ts.map +1 -1
- package/sdk/dataset.js +111 -129
- package/sdk/dataset.js.map +1 -1
- package/sdk/{element.d.ts → elements.d.ts} +5 -5
- package/sdk/elements.d.ts.map +1 -0
- package/sdk/{element.js → elements.js} +29 -35
- package/sdk/elements.js.map +1 -0
- package/sdk/image.d.ts +36 -0
- package/sdk/image.d.ts.map +1 -0
- package/sdk/image.js +316 -0
- package/sdk/image.js.map +1 -0
- package/sdk/index.d.ts +1 -1
- package/sdk/index.d.ts.map +1 -1
- package/sdk/index.js +1 -1
- package/sdk/index.js.map +1 -1
- package/sdk/initimages.d.ts +36 -0
- package/sdk/initimages.d.ts.map +1 -0
- package/sdk/initimages.js +304 -0
- package/sdk/initimages.js.map +1 -0
- package/sdk/models/errors/index.d.ts +2 -2
- package/sdk/models/errors/index.d.ts.map +1 -1
- package/sdk/models/errors/index.js +2 -2
- package/sdk/models/errors/index.js.map +1 -1
- package/sdk/models/errors/sdkerror.d.ts +1 -0
- package/sdk/models/errors/sdkerror.d.ts.map +1 -1
- package/sdk/models/errors/sdkerror.js +3 -1
- package/sdk/models/errors/sdkerror.js.map +1 -1
- package/sdk/models/operations/createdataset.d.ts +72 -40
- package/sdk/models/operations/createdataset.d.ts.map +1 -1
- package/sdk/models/operations/createdataset.js +100 -95
- package/sdk/models/operations/createdataset.js.map +1 -1
- package/sdk/models/operations/creategeneration.d.ts +166 -122
- package/sdk/models/operations/creategeneration.d.ts.map +1 -1
- package/sdk/models/operations/creategeneration.js +219 -279
- package/sdk/models/operations/creategeneration.js.map +1 -1
- package/sdk/models/operations/createlcmgeneration.d.ts +83 -61
- package/sdk/models/operations/createlcmgeneration.d.ts.map +1 -1
- package/sdk/models/operations/createlcmgeneration.js +109 -148
- package/sdk/models/operations/createlcmgeneration.js.map +1 -1
- package/sdk/models/operations/createmodel.d.ts +81 -57
- package/sdk/models/operations/createmodel.d.ts.map +1 -1
- package/sdk/models/operations/createmodel.js +119 -124
- package/sdk/models/operations/createmodel.js.map +1 -1
- package/sdk/models/operations/createsvdmotiongeneration.d.ts +76 -48
- package/sdk/models/operations/createsvdmotiongeneration.d.ts.map +1 -1
- package/sdk/models/operations/createsvdmotiongeneration.js +96 -115
- package/sdk/models/operations/createsvdmotiongeneration.js.map +1 -1
- package/sdk/models/operations/createtexturegeneration.d.ts +79 -54
- package/sdk/models/operations/createtexturegeneration.d.ts.map +1 -1
- package/sdk/models/operations/createtexturegeneration.js +124 -135
- package/sdk/models/operations/createtexturegeneration.js.map +1 -1
- package/sdk/models/operations/createuniversalupscalerjob.d.ts +157 -0
- package/sdk/models/operations/createuniversalupscalerjob.d.ts.map +1 -0
- package/sdk/models/operations/createuniversalupscalerjob.js +147 -0
- package/sdk/models/operations/createuniversalupscalerjob.js.map +1 -0
- package/sdk/models/operations/createvariationnobg.d.ts +73 -42
- package/sdk/models/operations/createvariationnobg.d.ts.map +1 -1
- package/sdk/models/operations/createvariationnobg.js +90 -95
- package/sdk/models/operations/createvariationnobg.js.map +1 -1
- package/sdk/models/operations/createvariationunzoom.d.ts +73 -42
- package/sdk/models/operations/createvariationunzoom.d.ts.map +1 -1
- package/sdk/models/operations/createvariationunzoom.js +90 -95
- package/sdk/models/operations/createvariationunzoom.js.map +1 -1
- package/sdk/models/operations/createvariationupscale.d.ts +72 -40
- package/sdk/models/operations/createvariationupscale.d.ts.map +1 -1
- package/sdk/models/operations/createvariationupscale.js +92 -95
- package/sdk/models/operations/createvariationupscale.js.map +1 -1
- package/sdk/models/operations/delete3dmodelbyid.d.ts +93 -52
- package/sdk/models/operations/delete3dmodelbyid.d.ts.map +1 -1
- package/sdk/models/operations/delete3dmodelbyid.js +127 -117
- package/sdk/models/operations/delete3dmodelbyid.js.map +1 -1
- package/sdk/models/operations/deletedatasetbyid.d.ts +71 -38
- package/sdk/models/operations/deletedatasetbyid.d.ts.map +1 -1
- package/sdk/models/operations/deletedatasetbyid.js +102 -95
- package/sdk/models/operations/deletedatasetbyid.js.map +1 -1
- package/sdk/models/operations/deletegenerationbyid.d.ts +71 -38
- package/sdk/models/operations/deletegenerationbyid.d.ts.map +1 -1
- package/sdk/models/operations/deletegenerationbyid.js +98 -93
- package/sdk/models/operations/deletegenerationbyid.js.map +1 -1
- package/sdk/models/operations/deleteinitimagebyid.d.ts +71 -38
- package/sdk/models/operations/deleteinitimagebyid.d.ts.map +1 -1
- package/sdk/models/operations/deleteinitimagebyid.js +98 -93
- package/sdk/models/operations/deleteinitimagebyid.js.map +1 -1
- package/sdk/models/operations/deletemodelbyid.d.ts +71 -38
- package/sdk/models/operations/deletemodelbyid.d.ts.map +1 -1
- package/sdk/models/operations/deletemodelbyid.js +98 -95
- package/sdk/models/operations/deletemodelbyid.js.map +1 -1
- package/sdk/models/operations/deletetexturegenerationbyid.d.ts +93 -52
- package/sdk/models/operations/deletetexturegenerationbyid.d.ts.map +1 -1
- package/sdk/models/operations/deletetexturegenerationbyid.js +131 -127
- package/sdk/models/operations/deletetexturegenerationbyid.js.map +1 -1
- package/sdk/models/operations/getdatasetbyid.d.ts +95 -60
- package/sdk/models/operations/getdatasetbyid.d.ts.map +1 -1
- package/sdk/models/operations/getdatasetbyid.js +139 -137
- package/sdk/models/operations/getdatasetbyid.js.map +1 -1
- package/sdk/models/operations/getgenerationbyid.d.ts +184 -159
- package/sdk/models/operations/getgenerationbyid.d.ts.map +1 -1
- package/sdk/models/operations/getgenerationbyid.js +283 -376
- package/sdk/models/operations/getgenerationbyid.js.map +1 -1
- package/sdk/models/operations/getgenerationsbyuserid.d.ts +186 -162
- package/sdk/models/operations/getgenerationsbyuserid.d.ts.map +1 -1
- package/sdk/models/operations/getgenerationsbyuserid.js +277 -380
- package/sdk/models/operations/getgenerationsbyuserid.js.map +1 -1
- package/sdk/models/operations/getinitimagebyid.d.ts +73 -42
- package/sdk/models/operations/getinitimagebyid.d.ts.map +1 -1
- package/sdk/models/operations/getinitimagebyid.js +106 -103
- package/sdk/models/operations/getinitimagebyid.js.map +1 -1
- package/sdk/models/operations/getmodelbyid.d.ts +83 -61
- package/sdk/models/operations/getmodelbyid.d.ts.map +1 -1
- package/sdk/models/operations/getmodelbyid.js +125 -140
- package/sdk/models/operations/getmodelbyid.js.map +1 -1
- package/sdk/models/operations/getuserself.d.ts +81 -58
- package/sdk/models/operations/getuserself.d.ts.map +1 -1
- package/sdk/models/operations/getuserself.js +118 -155
- package/sdk/models/operations/getuserself.js.map +1 -1
- package/sdk/models/operations/getvariationbyid.d.ts +76 -47
- package/sdk/models/operations/getvariationbyid.d.ts.map +1 -1
- package/sdk/models/operations/getvariationbyid.js +111 -112
- package/sdk/models/operations/getvariationbyid.js.map +1 -1
- package/sdk/models/operations/index.d.ts +36 -33
- package/sdk/models/operations/index.d.ts.map +1 -1
- package/sdk/models/operations/index.js +36 -33
- package/sdk/models/operations/index.js.map +1 -1
- package/sdk/models/operations/listelements.d.ts +63 -47
- package/sdk/models/operations/listelements.d.ts.map +1 -1
- package/sdk/models/operations/listelements.js +88 -102
- package/sdk/models/operations/listelements.js.map +1 -1
- package/sdk/models/operations/listplatformmodels.d.ts +77 -50
- package/sdk/models/operations/listplatformmodels.d.ts.map +1 -1
- package/sdk/models/operations/listplatformmodels.js +130 -121
- package/sdk/models/operations/listplatformmodels.js.map +1 -1
- package/sdk/models/operations/performalchemyupscalelcm.d.ts +88 -71
- package/sdk/models/operations/performalchemyupscalelcm.d.ts.map +1 -1
- package/sdk/models/operations/performalchemyupscalelcm.js +123 -174
- package/sdk/models/operations/performalchemyupscalelcm.js.map +1 -1
- package/sdk/models/operations/performinpaintinglcm.d.ts +84 -63
- package/sdk/models/operations/performinpaintinglcm.d.ts.map +1 -1
- package/sdk/models/operations/performinpaintinglcm.js +115 -152
- package/sdk/models/operations/performinpaintinglcm.js.map +1 -1
- package/sdk/models/operations/performinstantrefine.d.ts +83 -61
- package/sdk/models/operations/performinstantrefine.d.ts.map +1 -1
- package/sdk/models/operations/performinstantrefine.js +113 -148
- package/sdk/models/operations/performinstantrefine.js.map +1 -1
- package/sdk/models/operations/pricingcalculator.d.ts +476 -0
- package/sdk/models/operations/pricingcalculator.d.ts.map +1 -0
- package/sdk/models/operations/pricingcalculator.js +391 -0
- package/sdk/models/operations/pricingcalculator.js.map +1 -0
- package/sdk/models/operations/promptimprove.d.ts +72 -40
- package/sdk/models/operations/promptimprove.d.ts.map +1 -1
- package/sdk/models/operations/promptimprove.js +88 -95
- package/sdk/models/operations/promptimprove.js.map +1 -1
- package/sdk/models/operations/promptrandom.d.ts +55 -32
- package/sdk/models/operations/promptrandom.d.ts.map +1 -1
- package/sdk/models/operations/promptrandom.js +73 -81
- package/sdk/models/operations/promptrandom.js.map +1 -1
- package/sdk/models/operations/uploadcanvasinitimage.d.ts +140 -0
- package/sdk/models/operations/uploadcanvasinitimage.d.ts.map +1 -0
- package/sdk/models/operations/uploadcanvasinitimage.js +152 -0
- package/sdk/models/operations/uploadcanvasinitimage.js.map +1 -0
- package/sdk/models/operations/uploaddatasetimage.d.ts +92 -54
- package/sdk/models/operations/uploaddatasetimage.d.ts.map +1 -1
- package/sdk/models/operations/uploaddatasetimage.js +121 -129
- package/sdk/models/operations/uploaddatasetimage.js.map +1 -1
- package/sdk/models/operations/uploaddatasetimagefromgen.d.ts +89 -48
- package/sdk/models/operations/uploaddatasetimagefromgen.d.ts.map +1 -1
- package/sdk/models/operations/uploaddatasetimagefromgen.js +119 -117
- package/sdk/models/operations/uploaddatasetimagefromgen.js.map +1 -1
- package/sdk/models/operations/uploadinitimage.d.ts +74 -44
- package/sdk/models/operations/uploadinitimage.d.ts.map +1 -1
- package/sdk/models/operations/uploadinitimage.js +92 -107
- package/sdk/models/operations/uploadinitimage.js.map +1 -1
- package/sdk/models/operations/uploadmodelasset.d.ts +75 -46
- package/sdk/models/operations/uploadmodelasset.d.ts.map +1 -1
- package/sdk/models/operations/uploadmodelasset.js +94 -111
- package/sdk/models/operations/uploadmodelasset.js.map +1 -1
- package/sdk/models/shared/canvasrequesttype.d.ts +25 -0
- package/sdk/models/shared/canvasrequesttype.d.ts.map +1 -0
- package/sdk/models/shared/canvasrequesttype.js +56 -0
- package/sdk/models/shared/canvasrequesttype.js.map +1 -0
- package/sdk/models/shared/controlnetinput.d.ts +93 -0
- package/sdk/models/shared/controlnetinput.d.ts.map +1 -0
- package/sdk/models/shared/controlnetinput.js +107 -0
- package/sdk/models/shared/controlnetinput.js.map +1 -0
- package/sdk/models/shared/controlnettype.d.ts +16 -2
- package/sdk/models/shared/controlnettype.d.ts.map +1 -1
- package/sdk/models/shared/controlnettype.js +18 -3
- package/sdk/models/shared/controlnettype.js.map +1 -1
- package/sdk/models/shared/custommodeltype.d.ts +13 -1
- package/sdk/models/shared/custommodeltype.d.ts.map +1 -1
- package/sdk/models/shared/custommodeltype.js +15 -2
- package/sdk/models/shared/custommodeltype.js.map +1 -1
- package/sdk/models/shared/elementinput.d.ts +18 -10
- package/sdk/models/shared/elementinput.d.ts.map +1 -1
- package/sdk/models/shared/elementinput.js +18 -23
- package/sdk/models/shared/elementinput.js.map +1 -1
- package/sdk/models/shared/index.d.ts +15 -11
- package/sdk/models/shared/index.d.ts.map +1 -1
- package/sdk/models/shared/index.js +15 -11
- package/sdk/models/shared/index.js.map +1 -1
- package/sdk/models/shared/jobstatus.d.ts +13 -1
- package/sdk/models/shared/jobstatus.d.ts.map +1 -1
- package/sdk/models/shared/jobstatus.js +15 -2
- package/sdk/models/shared/jobstatus.js.map +1 -1
- package/sdk/models/shared/lcmgenerationstyle.d.ts +13 -1
- package/sdk/models/shared/lcmgenerationstyle.d.ts.map +1 -1
- package/sdk/models/shared/lcmgenerationstyle.js +15 -2
- package/sdk/models/shared/lcmgenerationstyle.js.map +1 -1
- package/sdk/models/shared/pricingcalculatorservices.d.ts +28 -0
- package/sdk/models/shared/pricingcalculatorservices.d.ts.map +1 -0
- package/sdk/models/shared/pricingcalculatorservices.js +59 -0
- package/sdk/models/shared/pricingcalculatorservices.js.map +1 -0
- package/sdk/models/shared/sdgenerationschedulers.d.ts +13 -1
- package/sdk/models/shared/sdgenerationschedulers.d.ts.map +1 -1
- package/sdk/models/shared/sdgenerationschedulers.js +15 -2
- package/sdk/models/shared/sdgenerationschedulers.js.map +1 -1
- package/sdk/models/shared/sdgenerationstyle.d.ts +13 -1
- package/sdk/models/shared/sdgenerationstyle.d.ts.map +1 -1
- package/sdk/models/shared/sdgenerationstyle.js +15 -2
- package/sdk/models/shared/sdgenerationstyle.js.map +1 -1
- package/sdk/models/shared/sdversions.d.ts +13 -1
- package/sdk/models/shared/sdversions.d.ts.map +1 -1
- package/sdk/models/shared/sdversions.js +15 -2
- package/sdk/models/shared/sdversions.js.map +1 -1
- package/sdk/models/shared/security.d.ts +17 -8
- package/sdk/models/shared/security.d.ts.map +1 -1
- package/sdk/models/shared/security.js +16 -19
- package/sdk/models/shared/security.js.map +1 -1
- package/sdk/models/shared/strength.d.ts +13 -1
- package/sdk/models/shared/strength.d.ts.map +1 -1
- package/sdk/models/shared/strength.js +15 -2
- package/sdk/models/shared/strength.js.map +1 -1
- package/sdk/models/shared/universalupscalerstyle.d.ts +25 -0
- package/sdk/models/shared/universalupscalerstyle.d.ts.map +1 -0
- package/sdk/models/shared/universalupscalerstyle.js +56 -0
- package/sdk/models/shared/universalupscalerstyle.js.map +1 -0
- package/sdk/models/shared/variationtype.d.ts +13 -1
- package/sdk/models/shared/variationtype.d.ts.map +1 -1
- package/sdk/models/shared/variationtype.js +15 -2
- package/sdk/models/shared/variationtype.js.map +1 -1
- package/sdk/models.d.ts +36 -0
- package/sdk/models.d.ts.map +1 -0
- package/sdk/models.js +299 -0
- package/sdk/models.js.map +1 -0
- package/sdk/motion.d.ts +15 -0
- package/sdk/motion.d.ts.map +1 -0
- package/sdk/motion.js +121 -0
- package/sdk/motion.js.map +1 -0
- package/sdk/pricingcalculator.d.ts +15 -0
- package/sdk/pricingcalculator.d.ts.map +1 -0
- package/sdk/pricingcalculator.js +119 -0
- package/sdk/pricingcalculator.js.map +1 -0
- package/sdk/prompt.d.ts +4 -4
- package/sdk/prompt.d.ts.map +1 -1
- package/sdk/prompt.js +49 -57
- package/sdk/prompt.js.map +1 -1
- package/sdk/realtimecanvas.d.ts +36 -0
- package/sdk/realtimecanvas.d.ts.map +1 -0
- package/sdk/realtimecanvas.js +296 -0
- package/sdk/realtimecanvas.js.map +1 -0
- package/sdk/sdk.d.ts +33 -18
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +54 -29
- package/sdk/sdk.js.map +1 -1
- package/sdk/texture.d.ts +22 -0
- package/sdk/texture.d.ts.map +1 -0
- package/sdk/texture.js +186 -0
- package/sdk/texture.js.map +1 -0
- package/sdk/threedmodelassets.d.ts +22 -0
- package/sdk/threedmodelassets.d.ts.map +1 -0
- package/sdk/threedmodelassets.js +184 -0
- package/sdk/threedmodelassets.js.map +1 -0
- package/sdk/types/enums.d.ts +12 -0
- package/sdk/types/enums.d.ts.map +1 -0
- package/sdk/types/enums.js +11 -0
- package/sdk/types/enums.js.map +1 -0
- package/sdk/types/index.d.ts +6 -4
- package/sdk/types/index.d.ts.map +1 -1
- package/sdk/types/index.js +10 -8
- package/sdk/types/index.js.map +1 -1
- package/sdk/user.d.ts +3 -3
- package/sdk/user.d.ts.map +1 -1
- package/sdk/user.js +26 -32
- package/sdk/user.js.map +1 -1
- package/sdk/variation.d.ts +13 -6
- package/sdk/variation.d.ts.map +1 -1
- package/sdk/variation.js +154 -111
- package/sdk/variation.js.map +1 -1
- package/src/hooks/hooks.ts +19 -1
- package/src/hooks/index.ts +2 -2
- package/src/hooks/types.ts +31 -16
- package/src/index.ts +2 -2
- package/src/lib/config.ts +7 -6
- package/src/lib/encodings.ts +72 -13
- package/src/lib/http.ts +450 -159
- package/src/lib/is-plain-object.ts +43 -0
- package/src/lib/primitives.ts +40 -0
- package/src/lib/schemas.ts +37 -3
- package/src/lib/sdks.ts +102 -31
- package/src/lib/security.ts +2 -2
- package/src/sdk/dataset.ts +122 -140
- package/src/sdk/{element.ts → elements.ts} +25 -32
- package/src/sdk/image.ts +377 -0
- package/src/sdk/index.ts +1 -1
- package/src/sdk/initimages.ts +359 -0
- package/src/sdk/models/errors/index.ts +2 -2
- package/src/sdk/models/errors/sdkerror.ts +4 -1
- package/src/sdk/models/operations/createdataset.ts +160 -134
- package/src/sdk/models/operations/creategeneration.ts +365 -391
- package/src/sdk/models/operations/createlcmgeneration.ts +181 -208
- package/src/sdk/models/operations/createmodel.ts +185 -173
- package/src/sdk/models/operations/createsvdmotiongeneration.ts +162 -181
- package/src/sdk/models/operations/createtexturegeneration.ts +193 -204
- package/src/sdk/models/operations/createuniversalupscalerjob.ts +271 -0
- package/src/sdk/models/operations/createvariationnobg.ts +160 -144
- package/src/sdk/models/operations/createvariationunzoom.ts +157 -152
- package/src/sdk/models/operations/createvariationupscale.ts +161 -161
- package/src/sdk/models/operations/delete3dmodelbyid.ts +209 -168
- package/src/sdk/models/operations/deletedatasetbyid.ts +168 -133
- package/src/sdk/models/operations/deletegenerationbyid.ts +161 -136
- package/src/sdk/models/operations/deleteinitimagebyid.ts +158 -136
- package/src/sdk/models/operations/deletemodelbyid.ts +160 -132
- package/src/sdk/models/operations/deletetexturegenerationbyid.ts +213 -210
- package/src/sdk/models/operations/getdatasetbyid.ts +217 -188
- package/src/sdk/models/operations/getgenerationbyid.ts +459 -548
- package/src/sdk/models/operations/getgenerationsbyuserid.ts +457 -596
- package/src/sdk/models/operations/getinitimagebyid.ts +174 -144
- package/src/sdk/models/operations/getmodelbyid.ts +196 -193
- package/src/sdk/models/operations/getuserself.ts +176 -206
- package/src/sdk/models/operations/getvariationbyid.ts +181 -162
- package/src/sdk/models/operations/index.ts +36 -33
- package/src/sdk/models/operations/listelements.ts +139 -148
- package/src/sdk/models/operations/listplatformmodels.ts +200 -178
- package/src/sdk/models/operations/performalchemyupscalelcm.ts +201 -268
- package/src/sdk/models/operations/performinpaintinglcm.ts +188 -226
- package/src/sdk/models/operations/performinstantrefine.ts +185 -220
- package/src/sdk/models/operations/pricingcalculator.ts +883 -0
- package/src/sdk/models/operations/promptimprove.ts +157 -136
- package/src/sdk/models/operations/promptrandom.ts +125 -121
- package/src/sdk/models/operations/uploadcanvasinitimage.ts +256 -0
- package/src/sdk/models/operations/uploaddatasetimage.ts +200 -177
- package/src/sdk/models/operations/uploaddatasetimagefromgen.ts +196 -187
- package/src/sdk/models/operations/uploadinitimage.ts +163 -152
- package/src/sdk/models/operations/uploadmodelasset.ts +166 -158
- package/src/sdk/models/shared/canvasrequesttype.ts +34 -0
- package/src/sdk/models/shared/controlnetinput.ts +130 -0
- package/src/sdk/models/shared/controlnettype.ts +20 -2
- package/src/sdk/models/shared/custommodeltype.ts +16 -1
- package/src/sdk/models/shared/elementinput.ts +29 -31
- package/src/sdk/models/shared/index.ts +15 -11
- package/src/sdk/models/shared/jobstatus.ts +15 -1
- package/src/sdk/models/shared/lcmgenerationstyle.ts +16 -1
- package/src/sdk/models/shared/pricingcalculatorservices.ts +39 -0
- package/src/sdk/models/shared/sdgenerationschedulers.ts +16 -1
- package/src/sdk/models/shared/sdgenerationstyle.ts +16 -1
- package/src/sdk/models/shared/sdversions.ts +17 -1
- package/src/sdk/models/shared/security.ts +23 -25
- package/src/sdk/models/shared/strength.ts +15 -1
- package/src/sdk/models/shared/universalupscalerstyle.ts +34 -0
- package/src/sdk/models/shared/variationtype.ts +17 -1
- package/src/sdk/models.ts +347 -0
- package/src/sdk/motion.ts +123 -0
- package/src/sdk/pricingcalculator.ts +119 -0
- package/src/sdk/prompt.ts +51 -60
- package/src/sdk/realtimecanvas.ts +361 -0
- package/src/sdk/sdk.ts +54 -24
- package/src/sdk/texture.ts +208 -0
- package/src/sdk/threedmodelassets.ts +204 -0
- package/src/sdk/types/enums.ts +16 -0
- package/src/sdk/types/index.ts +6 -4
- package/src/sdk/user.ts +24 -31
- package/src/sdk/variation.ts +186 -121
- package/docs/sdks/generation/README.md +0 -503
- package/sdk/element.d.ts.map +0 -1
- package/sdk/element.js.map +0 -1
- package/sdk/generation.d.ts +0 -85
- package/sdk/generation.d.ts.map +0 -1
- package/sdk/generation.js +0 -781
- package/sdk/generation.js.map +0 -1
- package/sdk/initimage.d.ts +0 -29
- package/sdk/initimage.d.ts.map +0 -1
- package/sdk/initimage.js +0 -257
- package/sdk/initimage.js.map +0 -1
- package/sdk/model.d.ts +0 -50
- package/sdk/model.d.ts.map +0 -1
- package/sdk/model.js +0 -446
- package/sdk/model.js.map +0 -1
- package/src/sdk/generation.ts +0 -984
- package/src/sdk/initimage.ts +0 -293
- package/src/sdk/model.ts +0 -536
|
@@ -0,0 +1,883 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
6
|
+
import * as shared from "../shared/index.js";
|
|
7
|
+
import * as z from "zod";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Parameters for FANTASY_AVATAR_GENERATION service
|
|
11
|
+
*/
|
|
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;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Parameters for IMAGE_GENERATION service
|
|
29
|
+
*/
|
|
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;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Parameters for LCM_GENERATION service
|
|
91
|
+
*/
|
|
92
|
+
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;
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Parameters for MODEL_TRAINING service
|
|
113
|
+
*/
|
|
114
|
+
export type PricingCalculatorPricingCalculatorRequestRequestBodyObject = {
|
|
115
|
+
/**
|
|
116
|
+
* The resolution for training. Must be 512 or 768.
|
|
117
|
+
*/
|
|
118
|
+
resolution?: number | undefined;
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Parameters for MOTION_GENERATION service
|
|
123
|
+
*/
|
|
124
|
+
export type PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject = {
|
|
125
|
+
/**
|
|
126
|
+
* The total duration of the motion generation in seconds.
|
|
127
|
+
*/
|
|
128
|
+
durationSeconds?: number | undefined;
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Parameters for TEXTURE_GENERATION service
|
|
133
|
+
*/
|
|
134
|
+
export type PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject =
|
|
135
|
+
{
|
|
136
|
+
preview?: boolean | undefined;
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Parameters for UNIVERSAL_UPSCALER service
|
|
141
|
+
*/
|
|
142
|
+
export type PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject =
|
|
143
|
+
{
|
|
144
|
+
/**
|
|
145
|
+
* The maximum upscaled image size is 20 megapixels.
|
|
146
|
+
*/
|
|
147
|
+
megapixel?: number | undefined;
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Parameters for the service
|
|
152
|
+
*/
|
|
153
|
+
export type ObjectT = {
|
|
154
|
+
/**
|
|
155
|
+
* Parameters for FANTASY_AVATAR_GENERATION service
|
|
156
|
+
*/
|
|
157
|
+
fantasyAvatarGeneration?: PricingCalculatorObject | null | undefined;
|
|
158
|
+
/**
|
|
159
|
+
* Parameters for IMAGE_GENERATION service
|
|
160
|
+
*/
|
|
161
|
+
imageGeneration?: PricingCalculatorPricingCalculatorObject | null | undefined;
|
|
162
|
+
/**
|
|
163
|
+
* Parameters for LCM_GENERATION service
|
|
164
|
+
*/
|
|
165
|
+
lcmGeneration?: PricingCalculatorPricingCalculatorRequestObject | null | undefined;
|
|
166
|
+
/**
|
|
167
|
+
* Parameters for MODEL_TRAINING service
|
|
168
|
+
*/
|
|
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;
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
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;
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
export type CalculateProductionApiServiceCost = {
|
|
205
|
+
/**
|
|
206
|
+
* API service cost to generate the image.
|
|
207
|
+
*/
|
|
208
|
+
cost?: number | undefined;
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Responses for POST /pricing-calculator
|
|
213
|
+
*/
|
|
214
|
+
export type PricingCalculatorResponseBody = {
|
|
215
|
+
calculateProductionApiServiceCost?: CalculateProductionApiServiceCost | null | undefined;
|
|
216
|
+
};
|
|
217
|
+
|
|
218
|
+
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;
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
/** @internal */
|
|
238
|
+
export const PricingCalculatorObject$inboundSchema: z.ZodType<
|
|
239
|
+
PricingCalculatorObject,
|
|
240
|
+
z.ZodTypeDef,
|
|
241
|
+
unknown
|
|
242
|
+
> = z.object({
|
|
243
|
+
imageHeight: z.number().int().optional(),
|
|
244
|
+
imageWidth: z.number().int().optional(),
|
|
245
|
+
numImages: z.number().int().optional(),
|
|
246
|
+
});
|
|
247
|
+
|
|
248
|
+
/** @internal */
|
|
249
|
+
export type PricingCalculatorObject$Outbound = {
|
|
250
|
+
imageHeight?: number | undefined;
|
|
251
|
+
imageWidth?: number | undefined;
|
|
252
|
+
numImages?: number | undefined;
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
/** @internal */
|
|
256
|
+
export const PricingCalculatorObject$outboundSchema: z.ZodType<
|
|
257
|
+
PricingCalculatorObject$Outbound,
|
|
258
|
+
z.ZodTypeDef,
|
|
259
|
+
PricingCalculatorObject
|
|
260
|
+
> = z.object({
|
|
261
|
+
imageHeight: z.number().int().optional(),
|
|
262
|
+
imageWidth: z.number().int().optional(),
|
|
263
|
+
numImages: z.number().int().optional(),
|
|
264
|
+
});
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* @internal
|
|
268
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
269
|
+
*/
|
|
270
|
+
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;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
/** @internal */
|
|
280
|
+
export const PricingCalculatorPricingCalculatorObject$inboundSchema: z.ZodType<
|
|
281
|
+
PricingCalculatorPricingCalculatorObject,
|
|
282
|
+
z.ZodTypeDef,
|
|
283
|
+
unknown
|
|
284
|
+
> = 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(),
|
|
299
|
+
});
|
|
300
|
+
|
|
301
|
+
/** @internal */
|
|
302
|
+
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;
|
|
317
|
+
};
|
|
318
|
+
|
|
319
|
+
/** @internal */
|
|
320
|
+
export const PricingCalculatorPricingCalculatorObject$outboundSchema: z.ZodType<
|
|
321
|
+
PricingCalculatorPricingCalculatorObject$Outbound,
|
|
322
|
+
z.ZodTypeDef,
|
|
323
|
+
PricingCalculatorPricingCalculatorObject
|
|
324
|
+
> = 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(),
|
|
339
|
+
});
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* @internal
|
|
343
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
344
|
+
*/
|
|
345
|
+
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;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
/** @internal */
|
|
355
|
+
export const PricingCalculatorPricingCalculatorRequestObject$inboundSchema: z.ZodType<
|
|
356
|
+
PricingCalculatorPricingCalculatorRequestObject,
|
|
357
|
+
z.ZodTypeDef,
|
|
358
|
+
unknown
|
|
359
|
+
> = z.object({
|
|
360
|
+
height: z.nullable(z.number().int()).optional(),
|
|
361
|
+
instantRefine: z.nullable(z.boolean()).optional(),
|
|
362
|
+
refine: z.nullable(z.boolean()).optional(),
|
|
363
|
+
width: z.nullable(z.number().int()).optional(),
|
|
364
|
+
});
|
|
365
|
+
|
|
366
|
+
/** @internal */
|
|
367
|
+
export type PricingCalculatorPricingCalculatorRequestObject$Outbound = {
|
|
368
|
+
height?: number | null | undefined;
|
|
369
|
+
instantRefine?: boolean | null | undefined;
|
|
370
|
+
refine?: boolean | null | undefined;
|
|
371
|
+
width?: number | null | undefined;
|
|
372
|
+
};
|
|
373
|
+
|
|
374
|
+
/** @internal */
|
|
375
|
+
export const PricingCalculatorPricingCalculatorRequestObject$outboundSchema: z.ZodType<
|
|
376
|
+
PricingCalculatorPricingCalculatorRequestObject$Outbound,
|
|
377
|
+
z.ZodTypeDef,
|
|
378
|
+
PricingCalculatorPricingCalculatorRequestObject
|
|
379
|
+
> = z.object({
|
|
380
|
+
height: z.nullable(z.number().int()).optional(),
|
|
381
|
+
instantRefine: z.nullable(z.boolean()).optional(),
|
|
382
|
+
refine: z.nullable(z.boolean()).optional(),
|
|
383
|
+
width: z.nullable(z.number().int()).optional(),
|
|
384
|
+
});
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* @internal
|
|
388
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
389
|
+
*/
|
|
390
|
+
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;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
/** @internal */
|
|
400
|
+
export const PricingCalculatorPricingCalculatorRequestRequestBodyObject$inboundSchema: z.ZodType<
|
|
401
|
+
PricingCalculatorPricingCalculatorRequestRequestBodyObject,
|
|
402
|
+
z.ZodTypeDef,
|
|
403
|
+
unknown
|
|
404
|
+
> = z.object({
|
|
405
|
+
resolution: z.number().int().optional(),
|
|
406
|
+
});
|
|
407
|
+
|
|
408
|
+
/** @internal */
|
|
409
|
+
export type PricingCalculatorPricingCalculatorRequestRequestBodyObject$Outbound = {
|
|
410
|
+
resolution?: number | undefined;
|
|
411
|
+
};
|
|
412
|
+
|
|
413
|
+
/** @internal */
|
|
414
|
+
export const PricingCalculatorPricingCalculatorRequestRequestBodyObject$outboundSchema: z.ZodType<
|
|
415
|
+
PricingCalculatorPricingCalculatorRequestRequestBodyObject$Outbound,
|
|
416
|
+
z.ZodTypeDef,
|
|
417
|
+
PricingCalculatorPricingCalculatorRequestRequestBodyObject
|
|
418
|
+
> = z.object({
|
|
419
|
+
resolution: z.number().int().optional(),
|
|
420
|
+
});
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* @internal
|
|
424
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
425
|
+
*/
|
|
426
|
+
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;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
/** @internal */
|
|
438
|
+
export const PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$inboundSchema: z.ZodType<
|
|
439
|
+
PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject,
|
|
440
|
+
z.ZodTypeDef,
|
|
441
|
+
unknown
|
|
442
|
+
> = z.object({
|
|
443
|
+
durationSeconds: z.number().int().optional(),
|
|
444
|
+
});
|
|
445
|
+
|
|
446
|
+
/** @internal */
|
|
447
|
+
export type PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$Outbound = {
|
|
448
|
+
durationSeconds?: number | undefined;
|
|
449
|
+
};
|
|
450
|
+
|
|
451
|
+
/** @internal */
|
|
452
|
+
export const PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$outboundSchema: z.ZodType<
|
|
453
|
+
PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject$Outbound,
|
|
454
|
+
z.ZodTypeDef,
|
|
455
|
+
PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsObject
|
|
456
|
+
> = z.object({
|
|
457
|
+
durationSeconds: z.number().int().optional(),
|
|
458
|
+
});
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* @internal
|
|
462
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
463
|
+
*/
|
|
464
|
+
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;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
/** @internal */
|
|
477
|
+
export const PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject$inboundSchema: z.ZodType<
|
|
478
|
+
PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject,
|
|
479
|
+
z.ZodTypeDef,
|
|
480
|
+
unknown
|
|
481
|
+
> = z.object({
|
|
482
|
+
preview: z.boolean().optional(),
|
|
483
|
+
});
|
|
484
|
+
|
|
485
|
+
/** @internal */
|
|
486
|
+
export type PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject$Outbound =
|
|
487
|
+
{
|
|
488
|
+
preview?: boolean | undefined;
|
|
489
|
+
};
|
|
490
|
+
|
|
491
|
+
/** @internal */
|
|
492
|
+
export const PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject$outboundSchema: z.ZodType<
|
|
493
|
+
PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject$Outbound,
|
|
494
|
+
z.ZodTypeDef,
|
|
495
|
+
PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsTEXTUREGENERATIONObject
|
|
496
|
+
> = z.object({
|
|
497
|
+
preview: z.boolean().optional(),
|
|
498
|
+
});
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* @internal
|
|
502
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
503
|
+
*/
|
|
504
|
+
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;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
/** @internal */
|
|
517
|
+
export const PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject$inboundSchema: z.ZodType<
|
|
518
|
+
PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject,
|
|
519
|
+
z.ZodTypeDef,
|
|
520
|
+
unknown
|
|
521
|
+
> = z.object({
|
|
522
|
+
megapixel: z.number().int().optional(),
|
|
523
|
+
});
|
|
524
|
+
|
|
525
|
+
/** @internal */
|
|
526
|
+
export type PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject$Outbound =
|
|
527
|
+
{
|
|
528
|
+
megapixel?: number | undefined;
|
|
529
|
+
};
|
|
530
|
+
|
|
531
|
+
/** @internal */
|
|
532
|
+
export const PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject$outboundSchema: z.ZodType<
|
|
533
|
+
PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject$Outbound,
|
|
534
|
+
z.ZodTypeDef,
|
|
535
|
+
PricingCalculatorPricingCalculatorRequestRequestBodyServiceParamsUNIVERSALUPSCALERObject
|
|
536
|
+
> = z.object({
|
|
537
|
+
megapixel: z.number().int().optional(),
|
|
538
|
+
});
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* @internal
|
|
542
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
543
|
+
*/
|
|
544
|
+
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;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
/** @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
|
+
});
|
|
610
|
+
});
|
|
611
|
+
|
|
612
|
+
/** @internal */
|
|
613
|
+
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;
|
|
633
|
+
};
|
|
634
|
+
|
|
635
|
+
/** @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
|
+
});
|
|
690
|
+
|
|
691
|
+
/**
|
|
692
|
+
* @internal
|
|
693
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
694
|
+
*/
|
|
695
|
+
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;
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
/** @internal */
|
|
705
|
+
export const PricingCalculatorRequestBody$inboundSchema: z.ZodType<
|
|
706
|
+
PricingCalculatorRequestBody,
|
|
707
|
+
z.ZodTypeDef,
|
|
708
|
+
unknown
|
|
709
|
+
> = z.object({
|
|
710
|
+
service: shared.PricingCalculatorServices$inboundSchema.optional(),
|
|
711
|
+
serviceParams: z.lazy(() => ObjectT$inboundSchema).optional(),
|
|
712
|
+
});
|
|
713
|
+
|
|
714
|
+
/** @internal */
|
|
715
|
+
export type PricingCalculatorRequestBody$Outbound = {
|
|
716
|
+
service?: string | undefined;
|
|
717
|
+
serviceParams?: ObjectT$Outbound | undefined;
|
|
718
|
+
};
|
|
719
|
+
|
|
720
|
+
/** @internal */
|
|
721
|
+
export const PricingCalculatorRequestBody$outboundSchema: z.ZodType<
|
|
722
|
+
PricingCalculatorRequestBody$Outbound,
|
|
723
|
+
z.ZodTypeDef,
|
|
724
|
+
PricingCalculatorRequestBody
|
|
725
|
+
> = z.object({
|
|
726
|
+
service: shared.PricingCalculatorServices$outboundSchema.optional(),
|
|
727
|
+
serviceParams: z.lazy(() => ObjectT$outboundSchema).optional(),
|
|
728
|
+
});
|
|
729
|
+
|
|
730
|
+
/**
|
|
731
|
+
* @internal
|
|
732
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
733
|
+
*/
|
|
734
|
+
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;
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
/** @internal */
|
|
744
|
+
export const CalculateProductionApiServiceCost$inboundSchema: z.ZodType<
|
|
745
|
+
CalculateProductionApiServiceCost,
|
|
746
|
+
z.ZodTypeDef,
|
|
747
|
+
unknown
|
|
748
|
+
> = z.object({
|
|
749
|
+
cost: z.number().int().optional(),
|
|
750
|
+
});
|
|
751
|
+
|
|
752
|
+
/** @internal */
|
|
753
|
+
export type CalculateProductionApiServiceCost$Outbound = {
|
|
754
|
+
cost?: number | undefined;
|
|
755
|
+
};
|
|
756
|
+
|
|
757
|
+
/** @internal */
|
|
758
|
+
export const CalculateProductionApiServiceCost$outboundSchema: z.ZodType<
|
|
759
|
+
CalculateProductionApiServiceCost$Outbound,
|
|
760
|
+
z.ZodTypeDef,
|
|
761
|
+
CalculateProductionApiServiceCost
|
|
762
|
+
> = z.object({
|
|
763
|
+
cost: z.number().int().optional(),
|
|
764
|
+
});
|
|
765
|
+
|
|
766
|
+
/**
|
|
767
|
+
* @internal
|
|
768
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
769
|
+
*/
|
|
770
|
+
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;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
/** @internal */
|
|
780
|
+
export const PricingCalculatorResponseBody$inboundSchema: z.ZodType<
|
|
781
|
+
PricingCalculatorResponseBody,
|
|
782
|
+
z.ZodTypeDef,
|
|
783
|
+
unknown
|
|
784
|
+
> = z.object({
|
|
785
|
+
calculateProductionApiServiceCost: z
|
|
786
|
+
.nullable(z.lazy(() => CalculateProductionApiServiceCost$inboundSchema))
|
|
787
|
+
.optional(),
|
|
788
|
+
});
|
|
789
|
+
|
|
790
|
+
/** @internal */
|
|
791
|
+
export type PricingCalculatorResponseBody$Outbound = {
|
|
792
|
+
calculateProductionApiServiceCost?:
|
|
793
|
+
| CalculateProductionApiServiceCost$Outbound
|
|
794
|
+
| null
|
|
795
|
+
| undefined;
|
|
796
|
+
};
|
|
797
|
+
|
|
798
|
+
/** @internal */
|
|
799
|
+
export const PricingCalculatorResponseBody$outboundSchema: z.ZodType<
|
|
800
|
+
PricingCalculatorResponseBody$Outbound,
|
|
801
|
+
z.ZodTypeDef,
|
|
802
|
+
PricingCalculatorResponseBody
|
|
803
|
+
> = z.object({
|
|
804
|
+
calculateProductionApiServiceCost: z
|
|
805
|
+
.nullable(z.lazy(() => CalculateProductionApiServiceCost$outboundSchema))
|
|
806
|
+
.optional(),
|
|
807
|
+
});
|
|
808
|
+
|
|
809
|
+
/**
|
|
810
|
+
* @internal
|
|
811
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
812
|
+
*/
|
|
813
|
+
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;
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
/** @internal */
|
|
823
|
+
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
|
+
});
|
|
841
|
+
|
|
842
|
+
/** @internal */
|
|
843
|
+
export type PricingCalculatorResponse$Outbound = {
|
|
844
|
+
ContentType: string;
|
|
845
|
+
StatusCode: number;
|
|
846
|
+
RawResponse: never;
|
|
847
|
+
object?: PricingCalculatorResponseBody$Outbound | undefined;
|
|
848
|
+
};
|
|
849
|
+
|
|
850
|
+
/** @internal */
|
|
851
|
+
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
|
+
});
|
|
871
|
+
|
|
872
|
+
/**
|
|
873
|
+
* @internal
|
|
874
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
875
|
+
*/
|
|
876
|
+
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;
|
|
883
|
+
}
|