@nodaro/sdk 2.28.0 → 2.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -2
- package/dist/chunk-2DZWWIJ4.cjs +32 -0
- package/dist/chunk-2DZWWIJ4.cjs.map +1 -0
- package/dist/chunk-34PU2DAT.cjs +118 -0
- package/dist/chunk-34PU2DAT.cjs.map +1 -0
- package/dist/chunk-37Y5QAVA.js +3 -0
- package/dist/chunk-37Y5QAVA.js.map +1 -0
- package/dist/chunk-37YCKZX4.cjs +4 -0
- package/dist/chunk-37YCKZX4.cjs.map +1 -0
- package/dist/chunk-3B47IHB3.cjs +65 -0
- package/dist/chunk-3B47IHB3.cjs.map +1 -0
- package/dist/chunk-3BELHJBN.cjs +4 -0
- package/dist/chunk-3BELHJBN.cjs.map +1 -0
- package/dist/chunk-3PPSGM5X.js +3 -0
- package/dist/chunk-3PPSGM5X.js.map +1 -0
- package/dist/chunk-3QBH2VE2.cjs +80 -0
- package/dist/chunk-3QBH2VE2.cjs.map +1 -0
- package/dist/chunk-3QFTP5P5.js +102 -0
- package/dist/chunk-3QFTP5P5.js.map +1 -0
- package/dist/chunk-43FVH6LJ.cjs +123 -0
- package/dist/chunk-43FVH6LJ.cjs.map +1 -0
- package/dist/chunk-43NO4SGC.cjs +4 -0
- package/dist/chunk-43NO4SGC.cjs.map +1 -0
- package/dist/chunk-45CK55BH.cjs +4 -0
- package/dist/chunk-45CK55BH.cjs.map +1 -0
- package/dist/chunk-4NLVBYMW.js +280 -0
- package/dist/chunk-4NLVBYMW.js.map +1 -0
- package/dist/chunk-4WRDR4GN.js +102 -0
- package/dist/chunk-4WRDR4GN.js.map +1 -0
- package/dist/chunk-4WWSHV5G.cjs +4 -0
- package/dist/chunk-4WWSHV5G.cjs.map +1 -0
- package/dist/chunk-53SXNN3A.js +80 -0
- package/dist/chunk-53SXNN3A.js.map +1 -0
- package/dist/chunk-5ALNFATQ.cjs +27 -0
- package/dist/chunk-5ALNFATQ.cjs.map +1 -0
- package/dist/chunk-5UQNMNUE.cjs +4 -0
- package/dist/chunk-5UQNMNUE.cjs.map +1 -0
- package/dist/chunk-5WAI7VGO.js +184 -0
- package/dist/chunk-5WAI7VGO.js.map +1 -0
- package/dist/chunk-65E3JBFZ.js +52 -0
- package/dist/chunk-65E3JBFZ.js.map +1 -0
- package/dist/chunk-6JFNBAKV.js +3 -0
- package/dist/chunk-6JFNBAKV.js.map +1 -0
- package/dist/chunk-6OC6OKLY.cjs +4 -0
- package/dist/chunk-6OC6OKLY.cjs.map +1 -0
- package/dist/chunk-6OGGJQVA.js +25 -0
- package/dist/chunk-6OGGJQVA.js.map +1 -0
- package/dist/chunk-7A7HYFGM.js +3 -0
- package/dist/chunk-7A7HYFGM.js.map +1 -0
- package/dist/chunk-7ISSKQ6S.cjs +106 -0
- package/dist/chunk-7ISSKQ6S.cjs.map +1 -0
- package/dist/chunk-7LSFG2AF.js +194 -0
- package/dist/chunk-7LSFG2AF.js.map +1 -0
- package/dist/chunk-7MYKT2L4.cjs +4 -0
- package/dist/chunk-7MYKT2L4.cjs.map +1 -0
- package/dist/chunk-7QOCWJKD.cjs +25 -0
- package/dist/chunk-7QOCWJKD.cjs.map +1 -0
- package/dist/chunk-A2ZAFAWC.cjs +4 -0
- package/dist/chunk-A2ZAFAWC.cjs.map +1 -0
- package/dist/chunk-A3S55XGF.cjs +54 -0
- package/dist/chunk-A3S55XGF.cjs.map +1 -0
- package/dist/chunk-A3THLBFG.js +3 -0
- package/dist/chunk-A3THLBFG.js.map +1 -0
- package/dist/chunk-AJVSMNPZ.js +78 -0
- package/dist/chunk-AJVSMNPZ.js.map +1 -0
- package/dist/chunk-ALSLZG3U.js +124 -0
- package/dist/chunk-ALSLZG3U.js.map +1 -0
- package/dist/chunk-ALUUBPDG.cjs +4 -0
- package/dist/chunk-ALUUBPDG.cjs.map +1 -0
- package/dist/chunk-AO3W45LT.cjs +4 -0
- package/dist/chunk-AO3W45LT.cjs.map +1 -0
- package/dist/chunk-AUDHV3OE.js +3 -0
- package/dist/chunk-AUDHV3OE.js.map +1 -0
- package/dist/chunk-BAL576G2.cjs +4 -0
- package/dist/chunk-BAL576G2.cjs.map +1 -0
- package/dist/chunk-BFMKPELU.cjs +212 -0
- package/dist/chunk-BFMKPELU.cjs.map +1 -0
- package/dist/chunk-BKP6F2IX.js +3 -0
- package/dist/chunk-BKP6F2IX.js.map +1 -0
- package/dist/chunk-BLA44UCM.js +32 -0
- package/dist/chunk-BLA44UCM.js.map +1 -0
- package/dist/chunk-BPWUWUZ3.cjs +20 -0
- package/dist/chunk-BPWUWUZ3.cjs.map +1 -0
- package/dist/chunk-BRV7Z4GD.cjs +17 -0
- package/dist/chunk-BRV7Z4GD.cjs.map +1 -0
- package/dist/chunk-BU5A6K4C.js +122 -0
- package/dist/chunk-BU5A6K4C.js.map +1 -0
- package/dist/chunk-C22RJDW3.js +3 -0
- package/dist/chunk-C22RJDW3.js.map +1 -0
- package/dist/chunk-CGNVHN4V.js +3 -0
- package/dist/chunk-CGNVHN4V.js.map +1 -0
- package/dist/chunk-CJFIOVBA.js +3 -0
- package/dist/chunk-CJFIOVBA.js.map +1 -0
- package/dist/chunk-CJLLIVSB.cjs +4 -0
- package/dist/chunk-CJLLIVSB.cjs.map +1 -0
- package/dist/chunk-CK3AMMSC.js +194 -0
- package/dist/chunk-CK3AMMSC.js.map +1 -0
- package/dist/chunk-COCKKMNP.cjs +205 -0
- package/dist/chunk-COCKKMNP.cjs.map +1 -0
- package/dist/chunk-CR5E2SF3.cjs +212 -0
- package/dist/chunk-CR5E2SF3.cjs.map +1 -0
- package/dist/chunk-CRCPRZFN.js +3 -0
- package/dist/chunk-CRCPRZFN.js.map +1 -0
- package/dist/chunk-CYRFD6KR.cjs +4 -0
- package/dist/chunk-CYRFD6KR.cjs.map +1 -0
- package/dist/chunk-D3PW7AHZ.js +3 -0
- package/dist/chunk-D3PW7AHZ.js.map +1 -0
- package/dist/chunk-DKEYSJCE.cjs +82 -0
- package/dist/chunk-DKEYSJCE.cjs.map +1 -0
- package/dist/chunk-DPSMVOM3.js +15 -0
- package/dist/chunk-DPSMVOM3.js.map +1 -0
- package/dist/chunk-E2ZXHS6E.js +20 -0
- package/dist/chunk-E2ZXHS6E.js.map +1 -0
- package/dist/chunk-E37CVHWW.js +33 -0
- package/dist/chunk-E37CVHWW.js.map +1 -0
- package/dist/chunk-E5BM4BLO.js +78 -0
- package/dist/chunk-E5BM4BLO.js.map +1 -0
- package/dist/chunk-EHRWTYGR.cjs +4 -0
- package/dist/chunk-EHRWTYGR.cjs.map +1 -0
- package/dist/chunk-EJSGJDZY.js +212 -0
- package/dist/chunk-EJSGJDZY.js.map +1 -0
- package/dist/chunk-ELSOVJPF.js +3 -0
- package/dist/chunk-ELSOVJPF.js.map +1 -0
- package/dist/chunk-ERLXU47J.js +29 -0
- package/dist/chunk-ERLXU47J.js.map +1 -0
- package/dist/chunk-ES2E65HT.js +3 -0
- package/dist/chunk-ES2E65HT.js.map +1 -0
- package/dist/chunk-EXLAHZKF.js +3 -0
- package/dist/chunk-EXLAHZKF.js.map +1 -0
- package/dist/chunk-FHEYAW5H.js +3 -0
- package/dist/chunk-FHEYAW5H.js.map +1 -0
- package/dist/chunk-GA4LZZKQ.cjs +104 -0
- package/dist/chunk-GA4LZZKQ.cjs.map +1 -0
- package/dist/chunk-GAZJ2PA3.js +3 -0
- package/dist/chunk-GAZJ2PA3.js.map +1 -0
- package/dist/chunk-GB6C5OEZ.cjs +32 -0
- package/dist/chunk-GB6C5OEZ.cjs.map +1 -0
- package/dist/chunk-GD24ZRFD.js +3 -0
- package/dist/chunk-GD24ZRFD.js.map +1 -0
- package/dist/chunk-GI7LROLL.cjs +4 -0
- package/dist/chunk-GI7LROLL.cjs.map +1 -0
- package/dist/chunk-GRFLPEM2.cjs +16 -0
- package/dist/chunk-GRFLPEM2.cjs.map +1 -0
- package/dist/chunk-GVIFLUYZ.cjs +40 -0
- package/dist/chunk-GVIFLUYZ.cjs.map +1 -0
- package/dist/chunk-H7VQTG4M.js +35 -0
- package/dist/chunk-H7VQTG4M.js.map +1 -0
- package/dist/chunk-HAKYPZLB.cjs +242 -0
- package/dist/chunk-HAKYPZLB.cjs.map +1 -0
- package/dist/chunk-HFBR6G36.js +3 -0
- package/dist/chunk-HFBR6G36.js.map +1 -0
- package/dist/chunk-HGCVWOGK.cjs +209 -0
- package/dist/chunk-HGCVWOGK.cjs.map +1 -0
- package/dist/chunk-HLHR3R4P.js +3 -0
- package/dist/chunk-HLHR3R4P.js.map +1 -0
- package/dist/chunk-HRXXGGSJ.js +3 -0
- package/dist/chunk-HRXXGGSJ.js.map +1 -0
- package/dist/chunk-I3TYBAOX.js +3 -0
- package/dist/chunk-I3TYBAOX.js.map +1 -0
- package/dist/chunk-I4A5VJRL.js +352 -0
- package/dist/chunk-I4A5VJRL.js.map +1 -0
- package/dist/chunk-I6CXC345.js +102 -0
- package/dist/chunk-I6CXC345.js.map +1 -0
- package/dist/chunk-IGOPUMEX.cjs +4 -0
- package/dist/chunk-IGOPUMEX.cjs.map +1 -0
- package/dist/chunk-IHKIYVZQ.js +30 -0
- package/dist/chunk-IHKIYVZQ.js.map +1 -0
- package/dist/chunk-IMC2M5YM.cjs +12 -0
- package/dist/chunk-IMC2M5YM.cjs.map +1 -0
- package/dist/chunk-IQ6KWSXP.js +3 -0
- package/dist/chunk-IQ6KWSXP.js.map +1 -0
- package/dist/chunk-IS26FJO7.cjs +4 -0
- package/dist/chunk-IS26FJO7.cjs.map +1 -0
- package/dist/chunk-J4WFSKY6.js +50 -0
- package/dist/chunk-J4WFSKY6.js.map +1 -0
- package/dist/chunk-J5LGGCAS.cjs +126 -0
- package/dist/chunk-J5LGGCAS.cjs.map +1 -0
- package/dist/chunk-JDEZHITT.js +43 -0
- package/dist/chunk-JDEZHITT.js.map +1 -0
- package/dist/chunk-JGS6YBDW.js +260 -0
- package/dist/chunk-JGS6YBDW.js.map +1 -0
- package/dist/chunk-JMOKD6ZP.js +46 -0
- package/dist/chunk-JMOKD6ZP.js.map +1 -0
- package/dist/chunk-JOX5BJ6K.cjs +4 -0
- package/dist/chunk-JOX5BJ6K.cjs.map +1 -0
- package/dist/chunk-JTAW54UM.js +116 -0
- package/dist/chunk-JTAW54UM.js.map +1 -0
- package/dist/chunk-K4RQOSJH.js +203 -0
- package/dist/chunk-K4RQOSJH.js.map +1 -0
- package/dist/chunk-KAIE6WJB.cjs +4 -0
- package/dist/chunk-KAIE6WJB.cjs.map +1 -0
- package/dist/chunk-KEDPGWIK.cjs +4 -0
- package/dist/chunk-KEDPGWIK.cjs.map +1 -0
- package/dist/chunk-KG4R454Z.js +18 -0
- package/dist/chunk-KG4R454Z.js.map +1 -0
- package/dist/chunk-KGKCAGRD.cjs +22 -0
- package/dist/chunk-KGKCAGRD.cjs.map +1 -0
- package/dist/chunk-KNMW722T.cjs +48 -0
- package/dist/chunk-KNMW722T.cjs.map +1 -0
- package/dist/chunk-KTTL7BND.cjs +4 -0
- package/dist/chunk-KTTL7BND.cjs.map +1 -0
- package/dist/chunk-KXEWTYS4.cjs +80 -0
- package/dist/chunk-KXEWTYS4.cjs.map +1 -0
- package/dist/chunk-KZQKFBRN.js +3 -0
- package/dist/chunk-KZQKFBRN.js.map +1 -0
- package/dist/chunk-LAWYFC4G.cjs +37 -0
- package/dist/chunk-LAWYFC4G.cjs.map +1 -0
- package/dist/chunk-LHP2CWHD.js +228 -0
- package/dist/chunk-LHP2CWHD.js.map +1 -0
- package/dist/chunk-LHRQXWI5.js +3 -0
- package/dist/chunk-LHRQXWI5.js.map +1 -0
- package/dist/chunk-LKH5M44B.cjs +114 -0
- package/dist/chunk-LKH5M44B.cjs.map +1 -0
- package/dist/chunk-LLNNHLCE.cjs +4 -0
- package/dist/chunk-LLNNHLCE.cjs.map +1 -0
- package/dist/chunk-LWZLWSXD.cjs +4 -0
- package/dist/chunk-LWZLWSXD.cjs.map +1 -0
- package/dist/chunk-M6Y5TOYE.js +3 -0
- package/dist/chunk-M6Y5TOYE.js.map +1 -0
- package/dist/chunk-MBFUMWI5.cjs +31 -0
- package/dist/chunk-MBFUMWI5.cjs.map +1 -0
- package/dist/chunk-MEKI37WI.js +3 -0
- package/dist/chunk-MEKI37WI.js.map +1 -0
- package/dist/chunk-MQ74AKA2.cjs +200 -0
- package/dist/chunk-MQ74AKA2.cjs.map +1 -0
- package/dist/chunk-N6GLZOE4.cjs +282 -0
- package/dist/chunk-N6GLZOE4.cjs.map +1 -0
- package/dist/chunk-NBVARNVA.cjs +38 -0
- package/dist/chunk-NBVARNVA.cjs.map +1 -0
- package/dist/chunk-NCCBS6GU.js +42 -0
- package/dist/chunk-NCCBS6GU.js.map +1 -0
- package/dist/chunk-NGKODS3J.cjs +52 -0
- package/dist/chunk-NGKODS3J.cjs.map +1 -0
- package/dist/chunk-NJVSKUL2.cjs +4 -0
- package/dist/chunk-NJVSKUL2.cjs.map +1 -0
- package/dist/chunk-NLQQHJ25.cjs +104 -0
- package/dist/chunk-NLQQHJ25.cjs.map +1 -0
- package/dist/chunk-NNHWH7ER.js +181 -0
- package/dist/chunk-NNHWH7ER.js.map +1 -0
- package/dist/chunk-NX67YIF3.js +3 -0
- package/dist/chunk-NX67YIF3.js.map +1 -0
- package/dist/chunk-OA6FWYZF.cjs +4 -0
- package/dist/chunk-OA6FWYZF.cjs.map +1 -0
- package/dist/chunk-OJDBSKC2.js +3 -0
- package/dist/chunk-OJDBSKC2.js.map +1 -0
- package/dist/chunk-OLPA44QJ.js +3 -0
- package/dist/chunk-OLPA44QJ.js.map +1 -0
- package/dist/chunk-OMH7ATOQ.js +3 -0
- package/dist/chunk-OMH7ATOQ.js.map +1 -0
- package/dist/chunk-OPR4TULG.js +3 -0
- package/dist/chunk-OPR4TULG.js.map +1 -0
- package/dist/chunk-OSX2GVZ2.cjs +34 -0
- package/dist/chunk-OSX2GVZ2.cjs.map +1 -0
- package/dist/chunk-OXQKE5EG.cjs +282 -0
- package/dist/chunk-OXQKE5EG.cjs.map +1 -0
- package/dist/chunk-P6E4QDJN.js +30 -0
- package/dist/chunk-P6E4QDJN.js.map +1 -0
- package/dist/chunk-PEMLIAPZ.cjs +64 -0
- package/dist/chunk-PEMLIAPZ.cjs.map +1 -0
- package/dist/chunk-PGYQ754I.js +3 -0
- package/dist/chunk-PGYQ754I.js.map +1 -0
- package/dist/chunk-PHKYIWE4.cjs +16 -0
- package/dist/chunk-PHKYIWE4.cjs.map +1 -0
- package/dist/chunk-PMTM26LL.js +3 -0
- package/dist/chunk-PMTM26LL.js.map +1 -0
- package/dist/chunk-PY4OEKNX.cjs +4 -0
- package/dist/chunk-PY4OEKNX.cjs.map +1 -0
- package/dist/chunk-PZS2EXDR.cjs +4 -0
- package/dist/chunk-PZS2EXDR.cjs.map +1 -0
- package/dist/chunk-QITJGSFA.js +210 -0
- package/dist/chunk-QITJGSFA.js.map +1 -0
- package/dist/chunk-QRHJEITQ.cjs +4 -0
- package/dist/chunk-QRHJEITQ.cjs.map +1 -0
- package/dist/chunk-QUFU5RJ7.cjs +4 -0
- package/dist/chunk-QUFU5RJ7.cjs.map +1 -0
- package/dist/chunk-QVQCKOBM.js +3 -0
- package/dist/chunk-QVQCKOBM.js.map +1 -0
- package/dist/chunk-R63TTR35.cjs +200 -0
- package/dist/chunk-R63TTR35.cjs.map +1 -0
- package/dist/chunk-RA42NMWV.cjs +4 -0
- package/dist/chunk-RA42NMWV.cjs.map +1 -0
- package/dist/chunk-RAZN6C5R.cjs +12 -0
- package/dist/chunk-RAZN6C5R.cjs.map +1 -0
- package/dist/chunk-REUFPWM7.cjs +233 -0
- package/dist/chunk-REUFPWM7.cjs.map +1 -0
- package/dist/chunk-RHETJOUM.cjs +4 -0
- package/dist/chunk-RHETJOUM.cjs.map +1 -0
- package/dist/chunk-RJIJVVXS.js +3 -0
- package/dist/chunk-RJIJVVXS.js.map +1 -0
- package/dist/chunk-RKVRCNMB.js +3 -0
- package/dist/chunk-RKVRCNMB.js.map +1 -0
- package/dist/chunk-SBV5MWEL.cjs +53 -0
- package/dist/chunk-SBV5MWEL.cjs.map +1 -0
- package/dist/chunk-SFB4YLCS.js +121 -0
- package/dist/chunk-SFB4YLCS.js.map +1 -0
- package/dist/chunk-SLPD47SR.js +3 -0
- package/dist/chunk-SLPD47SR.js.map +1 -0
- package/dist/chunk-SS3B6PHT.cjs +35 -0
- package/dist/chunk-SS3B6PHT.cjs.map +1 -0
- package/dist/chunk-SUCHGNYT.js +3 -0
- package/dist/chunk-SUCHGNYT.js.map +1 -0
- package/dist/chunk-SYVNY3AH.cjs +44 -0
- package/dist/chunk-SYVNY3AH.cjs.map +1 -0
- package/dist/chunk-T3SYREY4.js +29 -0
- package/dist/chunk-T3SYREY4.js.map +1 -0
- package/dist/chunk-T7N7DFQJ.js +198 -0
- package/dist/chunk-T7N7DFQJ.js.map +1 -0
- package/dist/chunk-TRCENAIY.cjs +4 -0
- package/dist/chunk-TRCENAIY.cjs.map +1 -0
- package/dist/chunk-TVENC6PH.js +186 -0
- package/dist/chunk-TVENC6PH.js.map +1 -0
- package/dist/chunk-U4T3Z3K7.cjs +325 -0
- package/dist/chunk-U4T3Z3K7.cjs.map +1 -0
- package/dist/chunk-UI2NXUML.cjs +187 -0
- package/dist/chunk-UI2NXUML.cjs.map +1 -0
- package/dist/chunk-UIFFNTUX.js +3 -0
- package/dist/chunk-UIFFNTUX.js.map +1 -0
- package/dist/chunk-V4GPQ6Y2.js +3 -0
- package/dist/chunk-V4GPQ6Y2.js.map +1 -0
- package/dist/chunk-VGTRKXF2.js +93 -0
- package/dist/chunk-VGTRKXF2.js.map +1 -0
- package/dist/chunk-VGWOIWRQ.cjs +202 -0
- package/dist/chunk-VGWOIWRQ.cjs.map +1 -0
- package/dist/chunk-VLCNNA76.cjs +4 -0
- package/dist/chunk-VLCNNA76.cjs.map +1 -0
- package/dist/chunk-VPAUN75Q.js +3 -0
- package/dist/chunk-VPAUN75Q.js.map +1 -0
- package/dist/chunk-VT237QF2.js +3 -0
- package/dist/chunk-VT237QF2.js.map +1 -0
- package/dist/chunk-VV4TZG5S.js +321 -0
- package/dist/chunk-VV4TZG5S.js.map +1 -0
- package/dist/chunk-VYK6MBL4.cjs +4 -0
- package/dist/chunk-VYK6MBL4.cjs.map +1 -0
- package/dist/chunk-W33CKW6Q.cjs +4 -0
- package/dist/chunk-W33CKW6Q.cjs.map +1 -0
- package/dist/chunk-W5VHATSR.cjs +31 -0
- package/dist/chunk-W5VHATSR.cjs.map +1 -0
- package/dist/chunk-W7YI5UT3.js +3 -0
- package/dist/chunk-W7YI5UT3.js.map +1 -0
- package/dist/chunk-WEQWU2IC.js +34 -0
- package/dist/chunk-WEQWU2IC.js.map +1 -0
- package/dist/chunk-WK4VXPPZ.cjs +104 -0
- package/dist/chunk-WK4VXPPZ.cjs.map +1 -0
- package/dist/chunk-WSA4LMWR.cjs +96 -0
- package/dist/chunk-WSA4LMWR.cjs.map +1 -0
- package/dist/chunk-WUIEZ6Z4.cjs +360 -0
- package/dist/chunk-WUIEZ6Z4.cjs.map +1 -0
- package/dist/chunk-WUKIJJG2.cjs +45 -0
- package/dist/chunk-WUKIJJG2.cjs.map +1 -0
- package/dist/chunk-WVFAQBS7.js +29 -0
- package/dist/chunk-WVFAQBS7.js.map +1 -0
- package/dist/chunk-X7RDNMN7.js +3 -0
- package/dist/chunk-X7RDNMN7.js.map +1 -0
- package/dist/chunk-X7XP5WBP.cjs +4 -0
- package/dist/chunk-X7XP5WBP.cjs.map +1 -0
- package/dist/chunk-XQAIEPAZ.js +104 -0
- package/dist/chunk-XQAIEPAZ.js.map +1 -0
- package/dist/chunk-XWKNE6DH.cjs +4 -0
- package/dist/chunk-XWKNE6DH.cjs.map +1 -0
- package/dist/chunk-Y6V6CBY5.js +23 -0
- package/dist/chunk-Y6V6CBY5.js.map +1 -0
- package/dist/chunk-Y6VDCZPB.js +62 -0
- package/dist/chunk-Y6VDCZPB.js.map +1 -0
- package/dist/chunk-YDRXBRW2.cjs +184 -0
- package/dist/chunk-YDRXBRW2.cjs.map +1 -0
- package/dist/chunk-YFS2LMG4.cjs +124 -0
- package/dist/chunk-YFS2LMG4.cjs.map +1 -0
- package/dist/chunk-YN6CBIIB.js +63 -0
- package/dist/chunk-YN6CBIIB.js.map +1 -0
- package/dist/chunk-YOJ2XNQX.cjs +4 -0
- package/dist/chunk-YOJ2XNQX.cjs.map +1 -0
- package/dist/chunk-YOOZB4RL.js +3 -0
- package/dist/chunk-YOOZB4RL.js.map +1 -0
- package/dist/chunk-YVU2M7MI.js +34 -0
- package/dist/chunk-YVU2M7MI.js.map +1 -0
- package/dist/chunk-YXBZRB5H.cjs +4 -0
- package/dist/chunk-YXBZRB5H.cjs.map +1 -0
- package/dist/chunk-Z3ZKFI2M.js +43 -0
- package/dist/chunk-Z3ZKFI2M.js.map +1 -0
- package/dist/chunk-Z5GLY4R3.js +112 -0
- package/dist/chunk-Z5GLY4R3.js.map +1 -0
- package/dist/chunk-Z5OMWAQX.js +3 -0
- package/dist/chunk-Z5OMWAQX.js.map +1 -0
- package/dist/chunk-Z7LGWNI7.js +38 -0
- package/dist/chunk-Z7LGWNI7.js.map +1 -0
- package/dist/chunk-ZCWKX4V6.cjs +38 -0
- package/dist/chunk-ZCWKX4V6.cjs.map +1 -0
- package/dist/chunk-ZE5RISBZ.cjs +4 -0
- package/dist/chunk-ZE5RISBZ.cjs.map +1 -0
- package/dist/chunk-ZH4F2P2G.js +3 -0
- package/dist/chunk-ZH4F2P2G.js.map +1 -0
- package/dist/chunk-ZJGFLJ2Z.cjs +4 -0
- package/dist/chunk-ZJGFLJ2Z.cjs.map +1 -0
- package/dist/chunk-ZKBHD27K.cjs +4 -0
- package/dist/chunk-ZKBHD27K.cjs.map +1 -0
- package/dist/chunk-ZQPLRNKX.cjs +4 -0
- package/dist/chunk-ZQPLRNKX.cjs.map +1 -0
- package/dist/chunk-ZQQABQMH.cjs +31 -0
- package/dist/chunk-ZQQABQMH.cjs.map +1 -0
- package/dist/chunk-ZXJQSFIA.js +200 -0
- package/dist/chunk-ZXJQSFIA.js.map +1 -0
- package/dist/developer-apps-zSQXWmEG.d.cts +294 -0
- package/dist/developer-apps-zSQXWmEG.d.ts +294 -0
- package/dist/entries/apps.cjs +13 -0
- package/dist/entries/apps.cjs.map +1 -0
- package/dist/entries/apps.d.cts +300 -0
- package/dist/entries/apps.d.ts +300 -0
- package/dist/entries/apps.js +4 -0
- package/dist/entries/apps.js.map +1 -0
- package/dist/entries/audio.cjs +13 -0
- package/dist/entries/audio.cjs.map +1 -0
- package/dist/entries/audio.d.cts +200 -0
- package/dist/entries/audio.d.ts +200 -0
- package/dist/entries/audio.js +4 -0
- package/dist/entries/audio.js.map +1 -0
- package/dist/entries/billing.cjs +13 -0
- package/dist/entries/billing.cjs.map +1 -0
- package/dist/entries/billing.d.cts +208 -0
- package/dist/entries/billing.d.ts +208 -0
- package/dist/entries/billing.js +4 -0
- package/dist/entries/billing.js.map +1 -0
- package/dist/entries/catalogs.cjs +13 -0
- package/dist/entries/catalogs.cjs.map +1 -0
- package/dist/entries/catalogs.d.cts +82 -0
- package/dist/entries/catalogs.d.ts +82 -0
- package/dist/entries/catalogs.js +4 -0
- package/dist/entries/catalogs.js.map +1 -0
- package/dist/entries/characters.cjs +45 -0
- package/dist/entries/characters.cjs.map +1 -0
- package/dist/entries/characters.d.cts +741 -0
- package/dist/entries/characters.d.ts +741 -0
- package/dist/entries/characters.js +4 -0
- package/dist/entries/characters.js.map +1 -0
- package/dist/entries/client.cjs +78 -0
- package/dist/entries/client.cjs.map +1 -0
- package/dist/entries/client.d.cts +147 -0
- package/dist/entries/client.d.ts +147 -0
- package/dist/entries/client.js +53 -0
- package/dist/entries/client.js.map +1 -0
- package/dist/entries/collections.cjs +13 -0
- package/dist/entries/collections.cjs.map +1 -0
- package/dist/entries/collections.d.cts +77 -0
- package/dist/entries/collections.d.ts +77 -0
- package/dist/entries/collections.js +4 -0
- package/dist/entries/collections.js.map +1 -0
- package/dist/entries/community.cjs +13 -0
- package/dist/entries/community.cjs.map +1 -0
- package/dist/entries/community.d.cts +87 -0
- package/dist/entries/community.d.ts +87 -0
- package/dist/entries/community.js +4 -0
- package/dist/entries/community.js.map +1 -0
- package/dist/entries/competitors.cjs +13 -0
- package/dist/entries/competitors.cjs.map +1 -0
- package/dist/entries/competitors.d.cts +96 -0
- package/dist/entries/competitors.d.ts +96 -0
- package/dist/entries/competitors.js +4 -0
- package/dist/entries/competitors.js.map +1 -0
- package/dist/entries/copilot.cjs +15 -0
- package/dist/entries/copilot.cjs.map +1 -0
- package/dist/entries/copilot.d.cts +296 -0
- package/dist/entries/copilot.d.ts +296 -0
- package/dist/entries/copilot.js +6 -0
- package/dist/entries/copilot.js.map +1 -0
- package/dist/entries/core.cjs +26 -0
- package/dist/entries/core.cjs.map +1 -0
- package/dist/entries/core.d.cts +3 -0
- package/dist/entries/core.d.ts +3 -0
- package/dist/entries/core.js +5 -0
- package/dist/entries/core.js.map +1 -0
- package/dist/entries/creatures.cjs +29 -0
- package/dist/entries/creatures.cjs.map +1 -0
- package/dist/entries/creatures.d.cts +594 -0
- package/dist/entries/creatures.d.ts +594 -0
- package/dist/entries/creatures.js +4 -0
- package/dist/entries/creatures.js.map +1 -0
- package/dist/entries/credits.cjs +13 -0
- package/dist/entries/credits.cjs.map +1 -0
- package/dist/entries/credits.d.cts +229 -0
- package/dist/entries/credits.d.ts +229 -0
- package/dist/entries/credits.js +4 -0
- package/dist/entries/credits.js.map +1 -0
- package/dist/entries/developer-apps.cjs +13 -0
- package/dist/entries/developer-apps.cjs.map +1 -0
- package/dist/entries/developer-apps.d.cts +3 -0
- package/dist/entries/developer-apps.d.ts +3 -0
- package/dist/entries/developer-apps.js +4 -0
- package/dist/entries/developer-apps.js.map +1 -0
- package/dist/entries/edit.cjs +34 -0
- package/dist/entries/edit.cjs.map +1 -0
- package/dist/entries/edit.d.cts +705 -0
- package/dist/entries/edit.d.ts +705 -0
- package/dist/entries/edit.js +5 -0
- package/dist/entries/edit.js.map +1 -0
- package/dist/entries/errors.cjs +93 -0
- package/dist/entries/errors.cjs.map +1 -0
- package/dist/entries/errors.d.cts +338 -0
- package/dist/entries/errors.d.ts +338 -0
- package/dist/entries/errors.js +4 -0
- package/dist/entries/errors.js.map +1 -0
- package/dist/entries/executions.cjs +21 -0
- package/dist/entries/executions.cjs.map +1 -0
- package/dist/entries/executions.d.cts +120 -0
- package/dist/entries/executions.d.ts +120 -0
- package/dist/entries/executions.js +4 -0
- package/dist/entries/executions.js.map +1 -0
- package/dist/entries/gallery.cjs +13 -0
- package/dist/entries/gallery.cjs.map +1 -0
- package/dist/entries/gallery.d.cts +85 -0
- package/dist/entries/gallery.d.ts +85 -0
- package/dist/entries/gallery.js +4 -0
- package/dist/entries/gallery.js.map +1 -0
- package/dist/entries/jobs.cjs +13 -0
- package/dist/entries/jobs.cjs.map +1 -0
- package/dist/entries/jobs.d.cts +252 -0
- package/dist/entries/jobs.d.ts +252 -0
- package/dist/entries/jobs.js +4 -0
- package/dist/entries/jobs.js.map +1 -0
- package/dist/entries/library.cjs +13 -0
- package/dist/entries/library.cjs.map +1 -0
- package/dist/entries/library.d.cts +109 -0
- package/dist/entries/library.d.ts +109 -0
- package/dist/entries/library.js +4 -0
- package/dist/entries/library.js.map +1 -0
- package/dist/entries/llm.cjs +13 -0
- package/dist/entries/llm.cjs.map +1 -0
- package/dist/entries/llm.d.cts +98 -0
- package/dist/entries/llm.d.ts +98 -0
- package/dist/entries/llm.js +4 -0
- package/dist/entries/llm.js.map +1 -0
- package/dist/entries/locations.cjs +25 -0
- package/dist/entries/locations.cjs.map +1 -0
- package/dist/entries/locations.d.cts +573 -0
- package/dist/entries/locations.d.ts +573 -0
- package/dist/entries/locations.js +4 -0
- package/dist/entries/locations.js.map +1 -0
- package/dist/entries/media.cjs +15 -0
- package/dist/entries/media.cjs.map +1 -0
- package/dist/entries/media.d.cts +548 -0
- package/dist/entries/media.d.ts +548 -0
- package/dist/entries/media.js +6 -0
- package/dist/entries/media.js.map +1 -0
- package/dist/entries/models.cjs +13 -0
- package/dist/entries/models.cjs.map +1 -0
- package/dist/entries/models.d.cts +92 -0
- package/dist/entries/models.d.ts +92 -0
- package/dist/entries/models.js +4 -0
- package/dist/entries/models.js.map +1 -0
- package/dist/entries/moodboards.cjs +21 -0
- package/dist/entries/moodboards.cjs.map +1 -0
- package/dist/entries/moodboards.d.cts +77 -0
- package/dist/entries/moodboards.d.ts +77 -0
- package/dist/entries/moodboards.js +4 -0
- package/dist/entries/moodboards.js.map +1 -0
- package/dist/entries/node-presets.cjs +13 -0
- package/dist/entries/node-presets.cjs.map +1 -0
- package/dist/entries/node-presets.d.cts +217 -0
- package/dist/entries/node-presets.d.ts +217 -0
- package/dist/entries/node-presets.js +4 -0
- package/dist/entries/node-presets.js.map +1 -0
- package/dist/entries/nodes.cjs +22 -0
- package/dist/entries/nodes.cjs.map +1 -0
- package/dist/entries/nodes.d.cts +18 -0
- package/dist/entries/nodes.d.ts +18 -0
- package/dist/entries/nodes.js +5 -0
- package/dist/entries/nodes.js.map +1 -0
- package/dist/entries/oauth.cjs +13 -0
- package/dist/entries/oauth.cjs.map +1 -0
- package/dist/entries/oauth.d.cts +69 -0
- package/dist/entries/oauth.d.ts +69 -0
- package/dist/entries/oauth.js +4 -0
- package/dist/entries/oauth.js.map +1 -0
- package/dist/entries/objects.cjs +29 -0
- package/dist/entries/objects.cjs.map +1 -0
- package/dist/entries/objects.d.cts +544 -0
- package/dist/entries/objects.d.ts +544 -0
- package/dist/entries/objects.js +4 -0
- package/dist/entries/objects.js.map +1 -0
- package/dist/entries/organizations.cjs +21 -0
- package/dist/entries/organizations.cjs.map +1 -0
- package/dist/entries/organizations.d.cts +164 -0
- package/dist/entries/organizations.d.ts +164 -0
- package/dist/entries/organizations.js +4 -0
- package/dist/entries/organizations.js.map +1 -0
- package/dist/entries/palettes.cjs +21 -0
- package/dist/entries/palettes.cjs.map +1 -0
- package/dist/entries/palettes.d.cts +69 -0
- package/dist/entries/palettes.d.ts +69 -0
- package/dist/entries/palettes.js +4 -0
- package/dist/entries/palettes.js.map +1 -0
- package/dist/entries/picker-catalogs.cjs +13 -0
- package/dist/entries/picker-catalogs.cjs.map +1 -0
- package/dist/entries/picker-catalogs.d.cts +148 -0
- package/dist/entries/picker-catalogs.d.ts +148 -0
- package/dist/entries/picker-catalogs.js +4 -0
- package/dist/entries/picker-catalogs.js.map +1 -0
- package/dist/entries/pipelines.cjs +13 -0
- package/dist/entries/pipelines.cjs.map +1 -0
- package/dist/entries/pipelines.d.cts +255 -0
- package/dist/entries/pipelines.d.ts +255 -0
- package/dist/entries/pipelines.js +4 -0
- package/dist/entries/pipelines.js.map +1 -0
- package/dist/entries/projects.cjs +13 -0
- package/dist/entries/projects.cjs.map +1 -0
- package/dist/entries/projects.d.cts +49 -0
- package/dist/entries/projects.d.ts +49 -0
- package/dist/entries/projects.js +4 -0
- package/dist/entries/projects.js.map +1 -0
- package/dist/entries/prompt-helper.cjs +13 -0
- package/dist/entries/prompt-helper.cjs.map +1 -0
- package/dist/entries/prompt-helper.d.cts +73 -0
- package/dist/entries/prompt-helper.d.ts +73 -0
- package/dist/entries/prompt-helper.js +4 -0
- package/dist/entries/prompt-helper.js.map +1 -0
- package/dist/entries/recast.cjs +17 -0
- package/dist/entries/recast.cjs.map +1 -0
- package/dist/entries/recast.d.cts +229 -0
- package/dist/entries/recast.d.ts +229 -0
- package/dist/entries/recast.js +4 -0
- package/dist/entries/recast.js.map +1 -0
- package/dist/entries/reduce.cjs +13 -0
- package/dist/entries/reduce.cjs.map +1 -0
- package/dist/entries/reduce.d.cts +56 -0
- package/dist/entries/reduce.d.ts +56 -0
- package/dist/entries/reduce.js +4 -0
- package/dist/entries/reduce.js.map +1 -0
- package/dist/entries/saved-posts.cjs +13 -0
- package/dist/entries/saved-posts.cjs.map +1 -0
- package/dist/entries/saved-posts.d.cts +33 -0
- package/dist/entries/saved-posts.d.ts +33 -0
- package/dist/entries/saved-posts.js +4 -0
- package/dist/entries/saved-posts.js.map +1 -0
- package/dist/entries/scene3d.cjs +17 -0
- package/dist/entries/scene3d.cjs.map +1 -0
- package/dist/entries/scene3d.d.cts +131 -0
- package/dist/entries/scene3d.d.ts +131 -0
- package/dist/entries/scene3d.js +4 -0
- package/dist/entries/scene3d.js.map +1 -0
- package/dist/entries/sessions.cjs +13 -0
- package/dist/entries/sessions.cjs.map +1 -0
- package/dist/entries/sessions.d.cts +122 -0
- package/dist/entries/sessions.d.ts +122 -0
- package/dist/entries/sessions.js +4 -0
- package/dist/entries/sessions.js.map +1 -0
- package/dist/entries/shots.cjs +13 -0
- package/dist/entries/shots.cjs.map +1 -0
- package/dist/entries/shots.d.cts +78 -0
- package/dist/entries/shots.d.ts +78 -0
- package/dist/entries/shots.js +4 -0
- package/dist/entries/shots.js.map +1 -0
- package/dist/entries/studio.cjs +22 -0
- package/dist/entries/studio.cjs.map +1 -0
- package/dist/entries/studio.d.cts +281 -0
- package/dist/entries/studio.d.ts +281 -0
- package/dist/entries/studio.js +5 -0
- package/dist/entries/studio.js.map +1 -0
- package/dist/entries/templates.cjs +13 -0
- package/dist/entries/templates.cjs.map +1 -0
- package/dist/entries/templates.d.cts +110 -0
- package/dist/entries/templates.d.ts +110 -0
- package/dist/entries/templates.js +4 -0
- package/dist/entries/templates.js.map +1 -0
- package/dist/entries/tutorials.cjs +13 -0
- package/dist/entries/tutorials.cjs.map +1 -0
- package/dist/entries/tutorials.d.cts +63 -0
- package/dist/entries/tutorials.d.ts +63 -0
- package/dist/entries/tutorials.js +4 -0
- package/dist/entries/tutorials.js.map +1 -0
- package/dist/entries/uploads.cjs +13 -0
- package/dist/entries/uploads.cjs.map +1 -0
- package/dist/entries/uploads.d.cts +44 -0
- package/dist/entries/uploads.d.ts +44 -0
- package/dist/entries/uploads.js +4 -0
- package/dist/entries/uploads.js.map +1 -0
- package/dist/entries/video-pro.cjs +13 -0
- package/dist/entries/video-pro.cjs.map +1 -0
- package/dist/entries/video-pro.d.cts +60 -0
- package/dist/entries/video-pro.d.ts +60 -0
- package/dist/entries/video-pro.js +4 -0
- package/dist/entries/video-pro.js.map +1 -0
- package/dist/entries/voices.cjs +13 -0
- package/dist/entries/voices.cjs.map +1 -0
- package/dist/entries/voices.d.cts +498 -0
- package/dist/entries/voices.d.ts +498 -0
- package/dist/entries/voices.js +4 -0
- package/dist/entries/voices.js.map +1 -0
- package/dist/entries/webhooks.cjs +21 -0
- package/dist/entries/webhooks.cjs.map +1 -0
- package/dist/entries/webhooks.d.cts +64 -0
- package/dist/entries/webhooks.d.ts +64 -0
- package/dist/entries/webhooks.js +4 -0
- package/dist/entries/webhooks.js.map +1 -0
- package/dist/entries/workflows.cjs +13 -0
- package/dist/entries/workflows.cjs.map +1 -0
- package/dist/entries/workflows.d.cts +393 -0
- package/dist/entries/workflows.d.ts +393 -0
- package/dist/entries/workflows.js +4 -0
- package/dist/entries/workflows.js.map +1 -0
- package/dist/entries/workspaces.cjs +13 -0
- package/dist/entries/workspaces.cjs.map +1 -0
- package/dist/entries/workspaces.d.cts +124 -0
- package/dist/entries/workspaces.d.ts +124 -0
- package/dist/entries/workspaces.js +4 -0
- package/dist/entries/workspaces.js.map +1 -0
- package/dist/index.cjs +501 -4618
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +66 -9651
- package/dist/index.d.ts +66 -9651
- package/dist/index.js +100 -4511
- package/dist/index.js.map +1 -1
- package/dist/nodes-BPvrAoUs.d.cts +1264 -0
- package/dist/nodes-C2zu3uqn.d.ts +1264 -0
- package/dist/studio-productions-DUHvdSvk.d.cts +572 -0
- package/dist/studio-productions-vbCNSbtf.d.ts +572 -0
- package/dist/webhooks-BJawEIz8.d.ts +198 -0
- package/dist/webhooks-Dn_DtNTD.d.cts +198 -0
- package/package.json +253 -3
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
// src/resources/collections.ts
|
|
2
|
+
var CollectionsResource = class {
|
|
3
|
+
constructor(client) {
|
|
4
|
+
this.client = client;
|
|
5
|
+
}
|
|
6
|
+
client;
|
|
7
|
+
/** `GET /v1/collections` → your collections with their record counts, whether the server has collections at all, and your caps. */
|
|
8
|
+
list() {
|
|
9
|
+
return this.client.request("GET", "/v1/collections");
|
|
10
|
+
}
|
|
11
|
+
/** `GET /v1/collections/:id` → one collection. */
|
|
12
|
+
get(id) {
|
|
13
|
+
return this.client.request("GET", `/v1/collections/${encodeURIComponent(id)}`);
|
|
14
|
+
}
|
|
15
|
+
/** `POST /v1/collections` → a new collection (`409 name_taken` when you have one by that name, `403 collection_limit_reached` at your cap). */
|
|
16
|
+
create(input) {
|
|
17
|
+
return this.client.request("POST", "/v1/collections", { body: input });
|
|
18
|
+
}
|
|
19
|
+
/** `PATCH /v1/collections/:id` → rename or re-describe a collection. */
|
|
20
|
+
update(id, input) {
|
|
21
|
+
return this.client.request("PATCH", `/v1/collections/${encodeURIComponent(id)}`, { body: input });
|
|
22
|
+
}
|
|
23
|
+
/** `DELETE /v1/collections/:id` → remove a collection and every record in it. */
|
|
24
|
+
async delete(id) {
|
|
25
|
+
await this.client.request("DELETE", `/v1/collections/${encodeURIComponent(id)}`);
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* `GET /v1/collections/:id/records` → the records, newest first (`order: "oldest"`
|
|
29
|
+
* flips it). Narrow with `q` (words), `since` / `until` (ISO) and `usage`
|
|
30
|
+
* (`all`, `unused` — not used yet — or `used`); page with `cursor` / `limit`
|
|
31
|
+
* (1-100, default 50). Each record carries `usedAt` / `usedBy`, and its
|
|
32
|
+
* `source` the saving workflow's name and project when it is yours.
|
|
33
|
+
*/
|
|
34
|
+
records(id, params = {}) {
|
|
35
|
+
return this.client.request("GET", `/v1/collections/${encodeURIComponent(id)}/records`, {
|
|
36
|
+
query: {
|
|
37
|
+
q: params.q,
|
|
38
|
+
since: params.since,
|
|
39
|
+
until: params.until,
|
|
40
|
+
usage: params.usage,
|
|
41
|
+
status: params.status,
|
|
42
|
+
order: params.order,
|
|
43
|
+
cursor: params.cursor,
|
|
44
|
+
offset: params.offset,
|
|
45
|
+
limit: params.limit
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
/** `POST /v1/collections/:id/records/:recordId/restore` → bring a record back from the Trash; the record. */
|
|
50
|
+
restoreRecord(id, recordId) {
|
|
51
|
+
return this.client.request("POST", `/v1/collections/${encodeURIComponent(id)}/records/${encodeURIComponent(recordId)}/restore`);
|
|
52
|
+
}
|
|
53
|
+
/** `POST /v1/collections/:id/records/bulk` → move up to 100 records to the Trash, bring them back, or delete records already in the Trash for good, in one call. */
|
|
54
|
+
bulkRecords(id, input) {
|
|
55
|
+
return this.client.request("POST", `/v1/collections/${encodeURIComponent(id)}/records/bulk`, { body: input });
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* `PATCH /v1/collections/:id/records/:recordId` → mark a record used (or not
|
|
59
|
+
* used again). `source` says who is marking it (defaults to the API). A
|
|
60
|
+
* server before the usage release answers `503 not_available`.
|
|
61
|
+
*/
|
|
62
|
+
setUsed(id, recordId, used, source) {
|
|
63
|
+
return this.client.request("PATCH", `/v1/collections/${encodeURIComponent(id)}/records/${encodeURIComponent(recordId)}`, {
|
|
64
|
+
body: { used, ...source ? { source } : {} }
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* `POST /v1/collections/:id/records` → save one record. Give the fields, or
|
|
69
|
+
* `item` (any JSON — a feed post, a search result) and let the server map it;
|
|
70
|
+
* explicit fields win. `outcome` is `inserted`, `duplicate` (the same link or
|
|
71
|
+
* dedupe key is already there — the existing record comes back) or `replayed`
|
|
72
|
+
* (a write with the same `idempotencyKey` already happened).
|
|
73
|
+
*/
|
|
74
|
+
addRecord(id, input, opts = {}) {
|
|
75
|
+
return this.client.request("POST", `/v1/collections/${encodeURIComponent(id)}/records`, {
|
|
76
|
+
body: input,
|
|
77
|
+
...opts.idempotencyKey ? { headers: { "Idempotency-Key": opts.idempotencyKey } } : {}
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* `DELETE /v1/collections/:id/records/:recordId` → the record moves to the
|
|
82
|
+
* collection's Trash (`restoreRecord` brings it back; `deleteRecordForever`
|
|
83
|
+
* removes it for good).
|
|
84
|
+
*/
|
|
85
|
+
async deleteRecord(id, recordId) {
|
|
86
|
+
await this.client.request("DELETE", `/v1/collections/${encodeURIComponent(id)}/records/${encodeURIComponent(recordId)}`);
|
|
87
|
+
}
|
|
88
|
+
/** `DELETE /v1/collections/:id/records/:recordId/permanent` → a record already in the Trash is deleted for good (`409 not_in_trash` for a live one). */
|
|
89
|
+
async deleteRecordForever(id, recordId) {
|
|
90
|
+
await this.client.request("DELETE", `/v1/collections/${encodeURIComponent(id)}/records/${encodeURIComponent(recordId)}/permanent`);
|
|
91
|
+
}
|
|
92
|
+
/** `GET /v1/collections/:id/export` → the whole collection as CSV (default) or JSON text, newest first; `since`, `until`, `usage` and `q` narrow it. */
|
|
93
|
+
export(id, params = {}) {
|
|
94
|
+
return this.client.requestText("GET", `/v1/collections/${encodeURIComponent(id)}/export`, {
|
|
95
|
+
query: { format: params.format, since: params.since, until: params.until, usage: params.usage, q: params.q }
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
export { CollectionsResource };
|
|
101
|
+
//# sourceMappingURL=chunk-4WRDR4GN.js.map
|
|
102
|
+
//# sourceMappingURL=chunk-4WRDR4GN.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/collections.ts"],"names":[],"mappings":";AA6BO,IAAM,sBAAN,MAA0B;AAAA,EAC/B,YAAoB,MAAA,EAA0B;AAA1B,IAAA,IAAA,CAAA,MAAA,GAAA,MAAA;AAAA,EAA2B;AAAA,EAA3B,MAAA;AAAA;AAAA,EAGpB,IAAA,GAAuC;AACrC,IAAA,OAAO,IAAA,CAAK,MAAA,CAAO,OAAA,CAA+B,KAAA,EAAO,iBAAiB,CAAA;AAAA,EAC5E;AAAA;AAAA,EAG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AI,IAAA,CAAK,cAAA,GAAiB,EAAE,OAAA,EAAS,EAAE,iBAAA,EAAmB,IAAA,CAAK,cAAA,EAAe,EAAE,GAAI;AAAC,KACtF,CAAA;AAAA,EACH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,MAAM,YAAA,CAAa,EAAA,EAAY,QAAA,EAAiC;AAC9D,IAAA,MAAM,IAAA,CAAK,MAAA,CAAO,OAAA,CAA2B,QAAA,EAAU,CAAA,gBAAA,EAAmB,kBAAA,CAAmB,EAAE,CAAC,CAAA,SAAA,EAAY,kBAAA,CAAmB,QAAQ,CAAC,CAAA,CAAE,CAAA;AAAA,EAC5I;AAAA;AAAA,EAGA,MAAM,mBAAA,CAAoB,EAAA,EAAY,QAAA,EAAiC;AACrE,IAAA,MAAM,IAAA,CAAK,MAAA,CAAO,OAAA,CAA2B,QAAA,EAAU,CAAA,gBAAA,EAAmB,kBAAA,CAAmB,EAAE,CAAC,CAAA,SAAA,EAAY,kBAAA,CAAmB,QAAQ,CAAC,CAAA,UAAA,CAAY,CAAA;AAAA,EACtJ;AAAA;AAAA,EAGA,MAAA,CAAO,EAAA,EAAY,MAAA,GAAmH,EAAC,EAAoB;AACzJ,IAAA,OAAO,IAAA,CAAK,OAAO,WAAA,CAAY,KAAA,EAAO,mBAAmB,kBAAA,CAAmB,EAAE,CAAC,CAAA,OAAA,CAAA,EAAW;AAAA,MACxF,OAAO,EAAE,MAAA,EAAQ,MAAA,CAAO,MAAA,EAAQ,OAAO,MAAA,CAAO,KAAA,EAAO,KAAA,EAAO,MAAA,CAAO,OAAO,KAAA,EAAO,MAAA,CAAO,KAAA,EAAO,CAAA,EAAG,OAAO,CAAA;AAAE,KAC5G,CAAA;AAAA,EACH;AACF","file":"chunk-4WRDR4GN.js","sourcesContent":["import type { NodaroClientCore } from \"../core.js\"\nimport type {\n AddCollectionRecordInput,\n AddCollectionRecordResult,\n BulkCollectionRecordsInput,\n BulkCollectionRecordsResult,\n Collection,\n CollectionExportFormat,\n CollectionRecord,\n CollectionRecordSource,\n CollectionUsage,\n CreateCollectionInput,\n ListCollectionRecordsParams,\n ListCollectionRecordsResult,\n ListCollectionsResult,\n UpdateCollectionInput,\n} from \"@nodaro/shared/nodes\"\n\n/**\n * Collections — where a workflow's records live.\n *\n * A collection is a named set of records (a title, a text, a link, media\n * links, extra fields) that the Save to Collection node writes one record per\n * item into and the Read Collection node reads back; this resource browses,\n * searches, adds, removes and exports them from code. Text and links only,\n * never files. The same link saved twice is one record. Past the plan's cap the\n * oldest records are evicted after a write (the answer says how many).\n * OAuth app tokens need `assets:read` for reads and `assets:write` for writes.\n */\nexport class CollectionsResource {\n constructor(private client: NodaroClientCore) {}\n\n /** `GET /v1/collections` → your collections with their record counts, whether the server has collections at all, and your caps. */\n list(): Promise<ListCollectionsResult> {\n return this.client.request<ListCollectionsResult>(\"GET\", \"/v1/collections\")\n }\n\n /** `GET /v1/collections/:id` → one collection. */\n get(id: string): Promise<Collection> {\n return this.client.request<Collection>(\"GET\", `/v1/collections/${encodeURIComponent(id)}`)\n }\n\n /** `POST /v1/collections` → a new collection (`409 name_taken` when you have one by that name, `403 collection_limit_reached` at your cap). */\n create(input: CreateCollectionInput): Promise<Collection> {\n return this.client.request<Collection>(\"POST\", \"/v1/collections\", { body: input })\n }\n\n /** `PATCH /v1/collections/:id` → rename or re-describe a collection. */\n update(id: string, input: UpdateCollectionInput): Promise<Collection> {\n return this.client.request<Collection>(\"PATCH\", `/v1/collections/${encodeURIComponent(id)}`, { body: input })\n }\n\n /** `DELETE /v1/collections/:id` → remove a collection and every record in it. */\n async delete(id: string): Promise<void> {\n await this.client.request<{ success: true }>(\"DELETE\", `/v1/collections/${encodeURIComponent(id)}`)\n }\n\n /**\n * `GET /v1/collections/:id/records` → the records, newest first (`order: \"oldest\"`\n * flips it). Narrow with `q` (words), `since` / `until` (ISO) and `usage`\n * (`all`, `unused` — not used yet — or `used`); page with `cursor` / `limit`\n * (1-100, default 50). Each record carries `usedAt` / `usedBy`, and its\n * `source` the saving workflow's name and project when it is yours.\n */\n records(id: string, params: ListCollectionRecordsParams = {}): Promise<ListCollectionRecordsResult> {\n return this.client.request<ListCollectionRecordsResult>(\"GET\", `/v1/collections/${encodeURIComponent(id)}/records`, {\n query: {\n q: params.q,\n since: params.since,\n until: params.until,\n usage: params.usage,\n status: params.status,\n order: params.order,\n cursor: params.cursor,\n offset: params.offset,\n limit: params.limit,\n },\n })\n }\n\n /** `POST /v1/collections/:id/records/:recordId/restore` → bring a record back from the Trash; the record. */\n restoreRecord(id: string, recordId: string): Promise<CollectionRecord> {\n return this.client.request<CollectionRecord>(\"POST\", `/v1/collections/${encodeURIComponent(id)}/records/${encodeURIComponent(recordId)}/restore`)\n }\n\n /** `POST /v1/collections/:id/records/bulk` → move up to 100 records to the Trash, bring them back, or delete records already in the Trash for good, in one call. */\n bulkRecords(id: string, input: BulkCollectionRecordsInput): Promise<BulkCollectionRecordsResult> {\n return this.client.request<BulkCollectionRecordsResult>(\"POST\", `/v1/collections/${encodeURIComponent(id)}/records/bulk`, { body: input })\n }\n\n /**\n * `PATCH /v1/collections/:id/records/:recordId` → mark a record used (or not\n * used again). `source` says who is marking it (defaults to the API). A\n * server before the usage release answers `503 not_available`.\n */\n setUsed(id: string, recordId: string, used: boolean, source?: CollectionRecordSource): Promise<CollectionRecord> {\n return this.client.request<CollectionRecord>(\"PATCH\", `/v1/collections/${encodeURIComponent(id)}/records/${encodeURIComponent(recordId)}`, {\n body: { used, ...(source ? { source } : {}) },\n })\n }\n\n /**\n * `POST /v1/collections/:id/records` → save one record. Give the fields, or\n * `item` (any JSON — a feed post, a search result) and let the server map it;\n * explicit fields win. `outcome` is `inserted`, `duplicate` (the same link or\n * dedupe key is already there — the existing record comes back) or `replayed`\n * (a write with the same `idempotencyKey` already happened).\n */\n addRecord(id: string, input: AddCollectionRecordInput, opts: { idempotencyKey?: string } = {}): Promise<AddCollectionRecordResult> {\n return this.client.request<AddCollectionRecordResult>(\"POST\", `/v1/collections/${encodeURIComponent(id)}/records`, {\n body: input,\n ...(opts.idempotencyKey ? { headers: { \"Idempotency-Key\": opts.idempotencyKey } } : {}),\n })\n }\n\n /**\n * `DELETE /v1/collections/:id/records/:recordId` → the record moves to the\n * collection's Trash (`restoreRecord` brings it back; `deleteRecordForever`\n * removes it for good).\n */\n async deleteRecord(id: string, recordId: string): Promise<void> {\n await this.client.request<{ success: true }>(\"DELETE\", `/v1/collections/${encodeURIComponent(id)}/records/${encodeURIComponent(recordId)}`)\n }\n\n /** `DELETE /v1/collections/:id/records/:recordId/permanent` → a record already in the Trash is deleted for good (`409 not_in_trash` for a live one). */\n async deleteRecordForever(id: string, recordId: string): Promise<void> {\n await this.client.request<{ success: true }>(\"DELETE\", `/v1/collections/${encodeURIComponent(id)}/records/${encodeURIComponent(recordId)}/permanent`)\n }\n\n /** `GET /v1/collections/:id/export` → the whole collection as CSV (default) or JSON text, newest first; `since`, `until`, `usage` and `q` narrow it. */\n export(id: string, params: { format?: CollectionExportFormat; since?: string; until?: string; usage?: CollectionUsage; q?: string } = {}): Promise<string> {\n return this.client.requestText(\"GET\", `/v1/collections/${encodeURIComponent(id)}/export`, {\n query: { format: params.format, since: params.since, until: params.until, usage: params.usage, q: params.q },\n })\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"chunk-4WWSHV5G.cjs"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
// src/resources/apps.ts
|
|
2
|
+
var AppsResource = class {
|
|
3
|
+
constructor(client) {
|
|
4
|
+
this.client = client;
|
|
5
|
+
}
|
|
6
|
+
client;
|
|
7
|
+
/** List published apps. Public — no auth required for community apps. */
|
|
8
|
+
list(params = {}) {
|
|
9
|
+
const qs = new URLSearchParams();
|
|
10
|
+
if (params.search) qs.set("search", params.search);
|
|
11
|
+
if (params.limit !== void 0) qs.set("limit", String(params.limit));
|
|
12
|
+
if (params.cursor) qs.set("cursor", params.cursor);
|
|
13
|
+
if (params.category) qs.set("category", params.category);
|
|
14
|
+
const query = qs.toString();
|
|
15
|
+
return this.client.request("GET", `/v1/apps/browse${query ? `?${query}` : ""}`);
|
|
16
|
+
}
|
|
17
|
+
/** Get one app's metadata + input schema by slug. */
|
|
18
|
+
get(slug) {
|
|
19
|
+
return this.client.request("GET", `/v1/app/${encodeURIComponent(slug)}`);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Trigger an app run with the given input values. The keys in `inputs` must
|
|
23
|
+
* match the app's input-schema field names (see `get(slug).inputSchema`).
|
|
24
|
+
* `opts.inputOverrides` adds raw per-node overrides (see {@link RunAppOptions}).
|
|
25
|
+
* Returns the execution-id for status polling via client.executions.get().
|
|
26
|
+
*/
|
|
27
|
+
run(slug, inputs = {}, opts = {}) {
|
|
28
|
+
return this.client.request("POST", `/v1/app/${encodeURIComponent(slug)}/run`, {
|
|
29
|
+
body: { inputs, ...opts.inputOverrides ? { inputOverrides: opts.inputOverrides } : {} }
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
/** List past runs for an app (the caller must own the app or the runs). */
|
|
33
|
+
listRuns(slug, params = {}) {
|
|
34
|
+
const qs = new URLSearchParams();
|
|
35
|
+
if (params.limit !== void 0) qs.set("limit", String(params.limit));
|
|
36
|
+
if (params.cursor) qs.set("cursor", params.cursor);
|
|
37
|
+
const query = qs.toString();
|
|
38
|
+
return this.client.request(
|
|
39
|
+
"GET",
|
|
40
|
+
`/v1/app/${encodeURIComponent(slug)}/runs${query ? `?${query}` : ""}`
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
/** Get one app-run by id. */
|
|
44
|
+
getRun(slug, runId) {
|
|
45
|
+
return this.client.request(
|
|
46
|
+
"GET",
|
|
47
|
+
`/v1/app/${encodeURIComponent(slug)}/runs/${encodeURIComponent(runId)}`
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
resume(slug, runId, opts = {}) {
|
|
51
|
+
return this.client.request(
|
|
52
|
+
"POST",
|
|
53
|
+
`/v1/app/${encodeURIComponent(slug)}/runs/${encodeURIComponent(runId)}/resume`,
|
|
54
|
+
{
|
|
55
|
+
body: {
|
|
56
|
+
...opts.dryRun ? { dryRun: true } : {},
|
|
57
|
+
...opts.version !== void 0 ? { version: opts.version } : {}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Archive (soft-delete) a published-app run. The run is hidden from the
|
|
64
|
+
* default run list and can be restored or permanently deleted from the
|
|
65
|
+
* archive view at https://app.nodaro.ai/archived-runs.
|
|
66
|
+
*
|
|
67
|
+
* @param slug The published app's slug (the last path segment of its URL).
|
|
68
|
+
* @param runId The run's UUID.
|
|
69
|
+
*/
|
|
70
|
+
deleteRun(slug, runId) {
|
|
71
|
+
return this.client.request(
|
|
72
|
+
"DELETE",
|
|
73
|
+
`/v1/app/${encodeURIComponent(slug)}/runs/${encodeURIComponent(runId)}`
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
export { AppsResource };
|
|
79
|
+
//# sourceMappingURL=chunk-53SXNN3A.js.map
|
|
80
|
+
//# sourceMappingURL=chunk-53SXNN3A.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/apps.ts"],"names":[],"mappings":";AAgPO,IAAM,eAAN,MAAmB;AAAA,EACxB,YAAoB,MAAA,EAA0B;AAA1B,IAAA,IAAA,CAAA,MAAA,GAAA,MAAA;AAAA,EAA2B;AAAA,EAA3B,MAAA;AAAA;AAAA,EAGpB,IAAA,CAAK,MAAA,GAAyB,EAAC,EAA4B;AACzD,IAAA,MAAM,EAAA,GAAK,IAAI,eAAA,EAAgB;AAC/B,IAAA,IAAI,OAAO,MAAA,EAAQ,EAAA,CAAG,GAAA,CAAI,QAAA,EAAU,OAAO,MAAM,CAAA;AACjD,IAAA,IAAI,MAAA,CAAO,UAAU,M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AAA,CAAO,OAAA;AAAA,MACjB,QAAA;AAAA,MACA,WAAW,kBAAA,CAAmB,IAAI,CAAC,CAAA,MAAA,EAAS,kBAAA,CAAmB,KAAK,CAAC,CAAA;AAAA,KACvE;AAAA,EACF;AACF","file":"chunk-53SXNN3A.js","sourcesContent":["import type { NodaroClientCore } from \"../core.js\"\n\n/**\n * A published app — a workflow wrapped in a curated input/output presentation.\n * Returned by the public `/v1/apps/browse` endpoint.\n */\nexport interface PublishedApp {\n id: string\n slug: string\n name: string\n description?: string | null\n creatorId: string\n creatorName?: string | null\n thumbnailUrl?: string | null\n category?: string | null\n isFeatured?: boolean\n runCount?: number\n /** The listed price per run; when `perMinuteCredits` is above 0, its fixed part. */\n estimatedCredits?: number | null\n /**\n * Credits per minute of the recording the app is given, when its price\n * follows that recording's length: the price is `estimatedCredits` plus\n * this per minute. 0 or absent when the price does not depend on a\n * recording's length.\n */\n perMinuteCredits?: number\n /**\n * Credits for each item beyond the creator's saved items of a list input\n * the app's user fills: the price is the listed one plus this per further\n * item. 0 or absent when the app has no such input.\n */\n perItemCredits?: number\n /**\n * The listed price is a range: `estimatedCredits` (with `perMinuteCredits` /\n * `perItemCredits`) is \"from\" — the app's saved settings — and these are\n * \"up to\": the most a run can cost over the choices the app's user has (every\n * exposed field, at the creator's restricted values where set). Present only\n * when they differ from \"from\"; absent on an app published before the range\n * existed until its next publish.\n */\n maxEstimatedCredits?: number\n maxPerMinuteCredits?: number\n maxPerItemCredits?: number\n createdAt: string\n updatedAt: string\n}\n\nexport interface ListAppsParams {\n /** Substring search across app name + description. */\n search?: string\n /** Page size; backend caps at 50. */\n limit?: number\n /** Cursor token returned by the previous page. */\n cursor?: string\n /** Filter to a single category slug. */\n category?: string\n}\n\nexport interface ListAppsResult {\n data: PublishedApp[]\n nextCursor?: string | null\n}\n\n/**\n * App detail — includes the input schema (required + optional fields end users\n * fill in) and the output mapping (which workflow nodes produce which display\n * cards).\n */\nexport interface PublishedAppDetail extends PublishedApp {\n inputSchema: Record<string, unknown>\n outputs: Array<{ nodeId: string; label: string; type: string }>\n /**\n * The app run alone: the listed price less its Render final part (run and\n * charged separately) — fixed, per minute of the recording and per further\n * list item. Absent from a server that predates them; read the listed\n * `estimatedCredits` / `perMinuteCredits` / `perItemCredits` instead.\n */\n runEstimatedCredits?: number\n runPerMinuteCredits?: number\n runPerItemCredits?: number\n /**\n * Whether this server charges Edit Plan per started minute of the recording\n * (otherwise in 15/30/60/90/120/180-minute steps). Absent from a server that\n * predates it: read it as the steps.\n */\n editPlanPerMinute?: boolean\n}\n\nexport interface AppRunResult {\n /** The execution-id that was started — poll via client.executions.get(). */\n executionId: string\n status: \"pending\" | \"running\"\n /** App-run id (distinct from executionId — used by listRuns/getRun). */\n runId?: string\n}\n\nexport interface AppRun {\n id: string\n appSlug: string\n executionId: string\n status: \"pending\" | \"running\" | \"completed\" | \"failed\" | \"cancelled\"\n inputs: Record<string, unknown>\n outputs?: Array<{ nodeId: string; type: string; url?: string; text?: string }>\n startedAt: string\n finishedAt?: string | null\n}\n\nexport interface ListAppRunsParams {\n limit?: number\n cursor?: string\n}\n\n/**\n * Result of a soft-delete (archive) operation. The run is moved to the user's\n * archive in the Nodaro UI; restoration and permanent deletion are UI-only by\n * design — SDK / MCP / API delete callers can't accidentally destroy data.\n */\nexport interface DeleteAppRunResult {\n success: true\n archived: true\n}\n\n/** Advanced per-run options for `apps.run`. */\nexport interface RunAppOptions {\n /**\n * Raw node-data overrides keyed by node id → field → value, merged onto the\n * app's workflow for THIS run only. Reaches fields that are NOT exposed as app\n * inputs — e.g. `{ [nodeId]: { promptPrefix: \"…\", promptSuffix: \"…\" } }` to\n * wrap the end user's prompt with text they never see.\n */\n inputOverrides?: Record<string, Record<string, unknown>>\n}\n\n/** Options for `apps.resume` — the Retry of a failed app run. */\nexport interface ResumeAppRunOptions {\n /** Answer what the Retry would run and charge, and start nothing. */\n dryRun?: boolean\n /**\n * The app version you expect the Retry to run — the one starting over would\n * run. Absent: the app's latest. A run of another version is refused with\n * `app_run_version_changed`; send the run's own version (the refusal's\n * `runVersion`) to continue on it anyway.\n */\n version?: number\n}\n\n/** One step a Retry runs again. */\nexport interface AppRunResumeStep {\n nodeId: string\n type: string\n /** The node's label, or `null` when it has none. */\n label: string | null\n}\n\n/** What a Retry would do (`apps.resume(…, { dryRun: true })`); nothing is started. */\nexport interface AppRunResumePlan {\n runId: string\n /** The failed execution the Retry continues. */\n continuesExecutionId: string\n /** The app version the Retry runs (the run's own). */\n appVersion: number | null\n /** Every node the Retry runs, in graph order. */\n nodeIds: string[]\n /** The steps that run again. */\n steps: AppRunResumeStep[]\n /** What the Retry is expected to charge, the creator's fee included; `null` without credits. */\n estimatedCredits: number | null\n /** Clips handed back at no cost. */\n reusedClips: number\n /** Whether your balance and your app credits cover what the Retry holds while it runs; `null` without credits. */\n sufficient: boolean | null\n /** Your spendable balance; `null` without credits. */\n available: number | null\n /** Your app credits, present only when they are what stops the Retry (it would be refused `insufficient_app_credits`). */\n appCreditsAllowance?: number\n}\n\n/**\n * A Retry that started. `deduped: true` when a concurrent double press reached\n * the same Retry; a second call made while the first is pending is refused\n * with `already_running` (`AlreadyRunningError`) instead.\n */\nexport interface AppRunResumeResult {\n /** The Retry's execution — the run now points at it. Poll via client.executions.get(). */\n executionId: string\n runId: string\n status: \"pending\"\n /** Every node the Retry runs. */\n nodeIds: string[]\n /** `true` when a concurrent press had already started this Retry. */\n deduped?: true\n}\n\n/**\n * The `code` the server gives an `apps.resume` refusal. Nothing is written or\n * billed when a Retry is refused. How each arrives:\n * - `app_run_version_changed` as `AppRunVersionChangedError`;\n * - `already_running` as `AlreadyRunningError` (with the live `executionId`);\n * - `not_found` and `continuation_not_found` as `NotFoundError`, whose `code`\n * is always `not_found` (the server's message is kept);\n * - `insufficient_credits` and `insufficient_app_credits` as\n * `InsufficientCreditsError`, whose `code` is always `insufficient_credits`\n * (the server's message says which);\n * - the rest as `NodaroError` carrying this code.\n */\nexport type AppRunResumeRefusalCode =\n /** No such run of yours under this app. */\n | \"not_found\"\n /** The run's execution is not yours. */\n | \"continuation_not_found\"\n /** A malformed run id or body, or a component's run (continued by the run that called it). */\n | \"validation_error\"\n /** The app version the run ran is gone: start the run over. */\n | \"app_run_version_unavailable\"\n /** The app is on another version than the run ran: start over, or send `version` = the run's. */\n | \"app_run_version_changed\"\n /** The run's execution ran another workflow, or another version of it (rare). */\n | \"continuation_workflow_mismatch\"\n | \"continuation_version_mismatch\"\n /** The run did not fail (it completed or was stopped): start it over. */\n | \"continuation_not_failed\"\n /** The run is still running, a Retry of it is pending, or it was started again elsewhere. */\n | \"already_running\"\n /** Nothing is left to retry: every step completed (409), or the app runs no step (400). */\n | \"continuation_subset_required\"\n /** An input the run applied sets a field the app does not let a runner set. */\n | \"locked_field\"\n /**\n * The Retry would stop at a Preview with nobody to review it: retry it from the app page.\n * (The same refusal arrives under the other preview refusal codes when a review-on use-case\n * node holds the run; `isPreviewRefusalCode` in `@nodaro/shared/nodes` asks for all of them.)\n */\n | \"preview_review_required\"\n /** Your app credits cannot cover it. */\n | \"insufficient_app_credits\"\n /** Your balance cannot cover it. */\n | \"insufficient_credits\"\n /** Billing is briefly unavailable for a workspace run (503): try again shortly. */\n | \"billing_unavailable\"\n\nexport class AppsResource {\n constructor(private client: NodaroClientCore) {}\n\n /** List published apps. Public — no auth required for community apps. */\n list(params: ListAppsParams = {}): Promise<ListAppsResult> {\n const qs = new URLSearchParams()\n if (params.search) qs.set(\"search\", params.search)\n if (params.limit !== undefined) qs.set(\"limit\", String(params.limit))\n if (params.cursor) qs.set(\"cursor\", params.cursor)\n if (params.category) qs.set(\"category\", params.category)\n const query = qs.toString()\n return this.client.request(\"GET\", `/v1/apps/browse${query ? `?${query}` : \"\"}`)\n }\n\n /** Get one app's metadata + input schema by slug. */\n get(slug: string): Promise<{ data: PublishedAppDetail }> {\n return this.client.request(\"GET\", `/v1/app/${encodeURIComponent(slug)}`)\n }\n\n /**\n * Trigger an app run with the given input values. The keys in `inputs` must\n * match the app's input-schema field names (see `get(slug).inputSchema`).\n * `opts.inputOverrides` adds raw per-node overrides (see {@link RunAppOptions}).\n * Returns the execution-id for status polling via client.executions.get().\n */\n run(\n slug: string,\n inputs: Record<string, unknown> = {},\n opts: RunAppOptions = {},\n ): Promise<AppRunResult> {\n return this.client.request(\"POST\", `/v1/app/${encodeURIComponent(slug)}/run`, {\n body: { inputs, ...(opts.inputOverrides ? { inputOverrides: opts.inputOverrides } : {}) },\n })\n }\n\n /** List past runs for an app (the caller must own the app or the runs). */\n listRuns(slug: string, params: ListAppRunsParams = {}): Promise<{ data: AppRun[]; nextCursor?: string | null }> {\n const qs = new URLSearchParams()\n if (params.limit !== undefined) qs.set(\"limit\", String(params.limit))\n if (params.cursor) qs.set(\"cursor\", params.cursor)\n const query = qs.toString()\n return this.client.request(\n \"GET\",\n `/v1/app/${encodeURIComponent(slug)}/runs${query ? `?${query}` : \"\"}`,\n )\n }\n\n /** Get one app-run by id. */\n getRun(slug: string, runId: string): Promise<{ data: AppRun }> {\n return this.client.request(\n \"GET\",\n `/v1/app/${encodeURIComponent(slug)}/runs/${encodeURIComponent(runId)}`,\n )\n }\n\n /**\n * Retry a FAILED app run from where it stopped: only the steps it did not\n * complete run, and only those are charged; every step it completed hands\n * on its result. It runs the version the run ran, with the inputs the run\n * applied (it takes none of its own). The run's execution moves to the\n * Retry's.\n *\n * `{ dryRun: true }` answers what the Retry would run and charge\n * ({@link AppRunResumePlan}) and starts nothing — show it before a Retry.\n * Refusals are listed in {@link AppRunResumeRefusalCode}; to run with other\n * inputs or on the app's current version, start over with\n * `run(slug, inputs)` instead.\n *\n * @param slug The published app's slug.\n * @param runId The run's UUID (`AppRunResult.runId`, `AppRun.id`).\n */\n resume(slug: string, runId: string, opts: ResumeAppRunOptions & { dryRun: true }): Promise<{ data: AppRunResumePlan }>\n resume(slug: string, runId: string, opts?: ResumeAppRunOptions & { dryRun?: false }): Promise<AppRunResumeResult>\n resume(slug: string, runId: string, opts?: ResumeAppRunOptions): Promise<{ data: AppRunResumePlan } | AppRunResumeResult>\n resume(slug: string, runId: string, opts: ResumeAppRunOptions = {}): Promise<{ data: AppRunResumePlan } | AppRunResumeResult> {\n return this.client.request(\n \"POST\",\n `/v1/app/${encodeURIComponent(slug)}/runs/${encodeURIComponent(runId)}/resume`,\n {\n body: {\n ...(opts.dryRun ? { dryRun: true } : {}),\n ...(opts.version !== undefined ? { version: opts.version } : {}),\n },\n },\n )\n }\n\n /**\n * Archive (soft-delete) a published-app run. The run is hidden from the\n * default run list and can be restored or permanently deleted from the\n * archive view at https://app.nodaro.ai/archived-runs.\n *\n * @param slug The published app's slug (the last path segment of its URL).\n * @param runId The run's UUID.\n */\n deleteRun(slug: string, runId: string): Promise<DeleteAppRunResult> {\n return this.client.request(\n \"DELETE\",\n `/v1/app/${encodeURIComponent(slug)}/runs/${encodeURIComponent(runId)}`,\n )\n }\n}\n"]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// src/resources/templates.ts
|
|
4
|
+
var TemplatesResource = class {
|
|
5
|
+
constructor(client) {
|
|
6
|
+
this.client = client;
|
|
7
|
+
}
|
|
8
|
+
client;
|
|
9
|
+
/** Browse the public template marketplace (cursor-paginated, no auth required). */
|
|
10
|
+
browse(params = {}) {
|
|
11
|
+
return this.client.request("GET", "/v1/templates/browse", { query: { ...params } });
|
|
12
|
+
}
|
|
13
|
+
/** Fetch one public template by slug, including its full workflow snapshot. */
|
|
14
|
+
get(slug) {
|
|
15
|
+
return this.client.request("GET", `/v1/templates/${encodeURIComponent(slug)}`);
|
|
16
|
+
}
|
|
17
|
+
/** Clone a template into one of the caller's projects. Free — no credits charged. */
|
|
18
|
+
clone(slug, params) {
|
|
19
|
+
return this.client.request("POST", `/v1/templates/${encodeURIComponent(slug)}/clone`, {
|
|
20
|
+
body: params
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
exports.TemplatesResource = TemplatesResource;
|
|
26
|
+
//# sourceMappingURL=chunk-5ALNFATQ.cjs.map
|
|
27
|
+
//# sourceMappingURL=chunk-5ALNFATQ.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/templates.ts"],"names":[],"mappings":";;;AAwGO,IAAM,oBAAN,MAAwB;AAAA,EAC7B,YAAoB,MAAA,EAA0B;AAA1B,IAAA,IAAA,CAAA,MAAA,GAAA,MAAA;AAAA,EAA2B;AAAA,EAA3B,MAAA;AAAA;AAAA,EAGpB,MAAA,CAAO,MAAA,GAAgC,EAAC,EAAmC;AACzE,IAAA,OAAO,IAAA,CAAK,MAAA,CAAO,OAAA,CAAQ,KAAA,EAAO,sBAAA,EAAwB,EAAE,KAAA,EAAO,EAAE,GAAG,MAAA,EAAO,EAAG,CAAA;AAAA,EACpF;AAAA;AAAA,EAGA,IAAI,IAAA,EAAiC;AACnC,IAAA,OAAO,IAAA,CAAK,OAAO,OAAA,CAAQ,KAAA,EAAO,iBAAiB,kBAAA,CAAmB,IAAI,CAAC,CAAA,CAAE,CAAA;AAAA,EAC/E;AAAA;AAAA,EAGA,KAAA,CAAM,MAAc,MAAA,EAA2D;AAC7E,IAAA,OAAO,IAAA,CAAK,OAAO,OAAA,CAAQ,MAAA,EAAQ,iBAAiB,kBAAA,CAAmB,IAAI,CAAC,CAAA,MAAA,CAAA,EAAU;AAAA,MACpF,IAAA,EAAM;AAAA,KACP,CAAA;AAAA,EACH;AACF","file":"chunk-5ALNFATQ.cjs","sourcesContent":["import type { NodaroClientCore } from \"../core.js\"\n\n/**\n * Workflow-template marketplace — the PUBLIC-BY-DESIGN surfaces only:\n * browse cards, a single template with its full snapshot, and the free\n * clone-into-my-project action. Creator/admin surfaces (publish, mine,\n * favorites, metadata patch, tutorial flags) are deliberately NOT part of\n * the public SDK contract; first-party apps reach them via\n * `client.request()`.\n */\n\n/** Card returned by the marketplace browse (no snapshot payload). */\nexport interface TemplateBrowseCard {\n id: string\n slug: string\n name: string\n description: string | null\n /** The listed price; when `estimatedPerMinuteCredits` is above 0, its fixed part. */\n estimatedCredits: number\n /**\n * Credits per minute of the recording the template is given, when its price\n * follows that recording's length (an Apply EDL render of a whole episode,\n * an Edit Plan pass): the price is `estimatedCredits` plus this per minute.\n * 0 or absent when the price does not depend on a recording's length.\n */\n estimatedPerMinuteCredits?: number\n /**\n * The listed price is a range: `estimatedCredits` / `estimatedPerMinuteCredits`\n * are \"from\" (the saved settings), these \"up to\" — the most a run can cost over\n * the template's exposed fields. Present only when they differ from \"from\".\n */\n maxEstimatedCredits?: number\n maxEstimatedPerMinuteCredits?: number\n category: string\n outputTypes: string[]\n tags: string[]\n nodeTypesUsed: string[]\n providersUsed: string[]\n nodeCount: number\n complexity: string\n previewMediaUrl: string | null\n previewMediaType: \"image\" | \"video\" | null\n creatorId: string\n creatorDisplayName: string | null\n cloneCount: number\n favoriteCount: number\n createdAt: string\n}\n\nexport type TemplateSort = \"newest\" | \"popular\" | \"most-favorited\"\n\nexport interface BrowseTemplatesParams {\n /** Opaque cursor from the previous page's `nextCursor`. */\n cursor?: string\n limit?: number\n category?: string\n outputType?: string\n tag?: string\n /** Full-text search over name/description/tags. */\n search?: string\n sort?: TemplateSort\n /** Only templates using this node type. */\n nodeType?: string\n /** Only templates using this provider/model id. */\n provider?: string\n complexity?: string\n}\n\nexport interface BrowseTemplatesResult {\n data: TemplateBrowseCard[]\n /** Pass back as `cursor` to fetch the next page; `null` on the last page. */\n nextCursor: string | null\n}\n\n/**\n * A single public template (`GET /v1/templates/:slug`) — the browse-card\n * fields plus the full workflow snapshot the viewer/clone consume. The route\n * returns the whole camelCased row, so additional columns may appear beyond\n * the ones typed here; the index signature keeps them reachable without\n * casting.\n */\nexport interface Template extends TemplateBrowseCard {\n markdownDescription: string | null\n /** React Flow node snapshots (generic node JSON, execution data stripped on clone). */\n snapshotNodes: unknown[]\n snapshotEdges: unknown[]\n snapshotSettings: Record<string, unknown>\n /** Channels the template is listed in (e.g. \"marketplace\", \"tutorial\"). */\n listedIn: string[]\n readonly [key: string]: unknown\n}\n\nexport interface CloneTemplateParams {\n /** Target project (must belong to the caller). */\n projectId: string\n /** Optional name for the cloned workflow; defaults to the template's name. */\n name?: string\n}\n\nexport interface CloneTemplateResult {\n workflowId: string\n projectId: string\n}\n\nexport class TemplatesResource {\n constructor(private client: NodaroClientCore) {}\n\n /** Browse the public template marketplace (cursor-paginated, no auth required). */\n browse(params: BrowseTemplatesParams = {}): Promise<BrowseTemplatesResult> {\n return this.client.request(\"GET\", \"/v1/templates/browse\", { query: { ...params } })\n }\n\n /** Fetch one public template by slug, including its full workflow snapshot. */\n get(slug: string): Promise<Template> {\n return this.client.request(\"GET\", `/v1/templates/${encodeURIComponent(slug)}`)\n }\n\n /** Clone a template into one of the caller's projects. Free — no credits charged. */\n clone(slug: string, params: CloneTemplateParams): Promise<CloneTemplateResult> {\n return this.client.request(\"POST\", `/v1/templates/${encodeURIComponent(slug)}/clone`, {\n body: params,\n })\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"chunk-5UQNMNUE.cjs"}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { WebhooksResource } from './chunk-YN6CBIIB.js';
|
|
2
|
+
import { WorkflowsResource } from './chunk-ZXJQSFIA.js';
|
|
3
|
+
import { WorkspacesResource } from './chunk-Z5GLY4R3.js';
|
|
4
|
+
import { SessionsResource } from './chunk-Y6VDCZPB.js';
|
|
5
|
+
import { ShotsResource } from './chunk-WVFAQBS7.js';
|
|
6
|
+
import { StudioResource } from './chunk-VV4TZG5S.js';
|
|
7
|
+
import { TemplatesResource } from './chunk-6OGGJQVA.js';
|
|
8
|
+
import { TutorialsResource } from './chunk-DPSMVOM3.js';
|
|
9
|
+
import { UploadsResource } from './chunk-T3SYREY4.js';
|
|
10
|
+
import { VideoProResource } from './chunk-ERLXU47J.js';
|
|
11
|
+
import { VoicesResource } from './chunk-T7N7DFQJ.js';
|
|
12
|
+
import { PickerCatalogsResource } from './chunk-BLA44UCM.js';
|
|
13
|
+
import { PipelinesResource } from './chunk-K4RQOSJH.js';
|
|
14
|
+
import { ProjectsResource } from './chunk-H7VQTG4M.js';
|
|
15
|
+
import { PromptHelperResource } from './chunk-E2ZXHS6E.js';
|
|
16
|
+
import { RecastResource } from './chunk-AJVSMNPZ.js';
|
|
17
|
+
import { ReduceResource } from './chunk-IHKIYVZQ.js';
|
|
18
|
+
import { SavedPostsResource } from './chunk-NCCBS6GU.js';
|
|
19
|
+
import { Scene3DResource } from './chunk-NNHWH7ER.js';
|
|
20
|
+
import { ModelsResource } from './chunk-Y6V6CBY5.js';
|
|
21
|
+
import { MoodboardsResource } from './chunk-YVU2M7MI.js';
|
|
22
|
+
import { PresetsResource } from './chunk-JTAW54UM.js';
|
|
23
|
+
import { NodesResource } from './chunk-QITJGSFA.js';
|
|
24
|
+
import { OAuthResource } from './chunk-Z7LGWNI7.js';
|
|
25
|
+
import { ObjectsResource } from './chunk-7LSFG2AF.js';
|
|
26
|
+
import { OrganizationsResource } from './chunk-ALSLZG3U.js';
|
|
27
|
+
import { PalettesResource } from './chunk-WEQWU2IC.js';
|
|
28
|
+
import { ExecutionsResource } from './chunk-Z3ZKFI2M.js';
|
|
29
|
+
import { GalleryResource } from './chunk-JDEZHITT.js';
|
|
30
|
+
import { JobsResource } from './chunk-E5BM4BLO.js';
|
|
31
|
+
import { LibraryResource } from './chunk-P6E4QDJN.js';
|
|
32
|
+
import { LlmResource } from './chunk-E37CVHWW.js';
|
|
33
|
+
import { LocationsResource } from './chunk-TVENC6PH.js';
|
|
34
|
+
import { MediaResource } from './chunk-4NLVBYMW.js';
|
|
35
|
+
import { CommunityResource } from './chunk-SFB4YLCS.js';
|
|
36
|
+
import { CompetitorsResource } from './chunk-BU5A6K4C.js';
|
|
37
|
+
import { CopilotResource } from './chunk-I6CXC345.js';
|
|
38
|
+
import { NodaroClientCore } from './chunk-LHP2CWHD.js';
|
|
39
|
+
import { CreaturesResource } from './chunk-CK3AMMSC.js';
|
|
40
|
+
import { CreditsResource } from './chunk-XQAIEPAZ.js';
|
|
41
|
+
import { DeveloperAppsResource } from './chunk-65E3JBFZ.js';
|
|
42
|
+
import { EditResource } from './chunk-I4A5VJRL.js';
|
|
43
|
+
import { AppsResource } from './chunk-53SXNN3A.js';
|
|
44
|
+
import { AudioResource } from './chunk-3QFTP5P5.js';
|
|
45
|
+
import { BillingResource } from './chunk-J4WFSKY6.js';
|
|
46
|
+
import { CatalogsResource } from './chunk-KG4R454Z.js';
|
|
47
|
+
import { CharactersResource } from './chunk-EJSGJDZY.js';
|
|
48
|
+
import { CollectionsResource } from './chunk-4WRDR4GN.js';
|
|
49
|
+
|
|
50
|
+
// src/client.ts
|
|
51
|
+
var NodaroClient = class _NodaroClient extends NodaroClientCore {
|
|
52
|
+
workflows;
|
|
53
|
+
projects;
|
|
54
|
+
/** Generation sessions inside projects (Create Image / Video / Music). */
|
|
55
|
+
sessions;
|
|
56
|
+
jobs;
|
|
57
|
+
videoPro;
|
|
58
|
+
executions;
|
|
59
|
+
nodes;
|
|
60
|
+
scene3d;
|
|
61
|
+
developerApps;
|
|
62
|
+
oauth;
|
|
63
|
+
/** Outbound webhooks: endpoints that receive your job.completed / job.failed. */
|
|
64
|
+
webhooks;
|
|
65
|
+
apps;
|
|
66
|
+
characters;
|
|
67
|
+
locations;
|
|
68
|
+
objects;
|
|
69
|
+
creatures;
|
|
70
|
+
pipelines;
|
|
71
|
+
reduce;
|
|
72
|
+
promptHelper;
|
|
73
|
+
voices;
|
|
74
|
+
llm;
|
|
75
|
+
media;
|
|
76
|
+
audio;
|
|
77
|
+
credits;
|
|
78
|
+
/** Plans and prices, the subscription, and how this deployment bills. */
|
|
79
|
+
billing;
|
|
80
|
+
uploads;
|
|
81
|
+
library;
|
|
82
|
+
/** The public gallery and your favorites. */
|
|
83
|
+
gallery;
|
|
84
|
+
presets;
|
|
85
|
+
savedPosts;
|
|
86
|
+
collections;
|
|
87
|
+
/** Your colour palettes — a generate-image direction (`direction.colorLook: paletteDirectionId(id)`). */
|
|
88
|
+
palettes;
|
|
89
|
+
/** Your moodboards — a generate-image direction (`direction.style: moodboardDirectionId(id)`). */
|
|
90
|
+
moodboards;
|
|
91
|
+
competitors;
|
|
92
|
+
pickerCatalogs;
|
|
93
|
+
catalogs;
|
|
94
|
+
models;
|
|
95
|
+
shots;
|
|
96
|
+
recast;
|
|
97
|
+
studio;
|
|
98
|
+
copilot;
|
|
99
|
+
community;
|
|
100
|
+
templates;
|
|
101
|
+
tutorials;
|
|
102
|
+
organizations;
|
|
103
|
+
workspaces;
|
|
104
|
+
edit;
|
|
105
|
+
constructor(opts) {
|
|
106
|
+
super(opts);
|
|
107
|
+
this.workflows = new WorkflowsResource(this);
|
|
108
|
+
this.projects = new ProjectsResource(this);
|
|
109
|
+
this.sessions = new SessionsResource(this);
|
|
110
|
+
this.jobs = new JobsResource(this);
|
|
111
|
+
this.videoPro = new VideoProResource(this);
|
|
112
|
+
this.executions = new ExecutionsResource(this);
|
|
113
|
+
this.nodes = new NodesResource(this);
|
|
114
|
+
this.scene3d = new Scene3DResource(this);
|
|
115
|
+
this.developerApps = new DeveloperAppsResource(this);
|
|
116
|
+
this.oauth = new OAuthResource(this);
|
|
117
|
+
this.webhooks = new WebhooksResource(this);
|
|
118
|
+
this.apps = new AppsResource(this);
|
|
119
|
+
this.characters = new CharactersResource(this);
|
|
120
|
+
this.locations = new LocationsResource(this);
|
|
121
|
+
this.objects = new ObjectsResource(this);
|
|
122
|
+
this.creatures = new CreaturesResource(this);
|
|
123
|
+
this.pipelines = new PipelinesResource(this);
|
|
124
|
+
this.reduce = new ReduceResource(this);
|
|
125
|
+
this.promptHelper = new PromptHelperResource(this);
|
|
126
|
+
this.voices = new VoicesResource(this);
|
|
127
|
+
this.llm = new LlmResource(this);
|
|
128
|
+
this.media = new MediaResource(this);
|
|
129
|
+
this.audio = new AudioResource(this);
|
|
130
|
+
this.credits = new CreditsResource(this);
|
|
131
|
+
this.billing = new BillingResource(this);
|
|
132
|
+
this.uploads = new UploadsResource(this);
|
|
133
|
+
this.library = new LibraryResource(this);
|
|
134
|
+
this.gallery = new GalleryResource(this);
|
|
135
|
+
this.presets = new PresetsResource(this);
|
|
136
|
+
this.savedPosts = new SavedPostsResource(this);
|
|
137
|
+
this.collections = new CollectionsResource(this);
|
|
138
|
+
this.palettes = new PalettesResource(this);
|
|
139
|
+
this.moodboards = new MoodboardsResource(this);
|
|
140
|
+
this.competitors = new CompetitorsResource(this);
|
|
141
|
+
this.pickerCatalogs = new PickerCatalogsResource(this);
|
|
142
|
+
this.catalogs = new CatalogsResource(this);
|
|
143
|
+
this.models = new ModelsResource(this);
|
|
144
|
+
this.shots = new ShotsResource(this);
|
|
145
|
+
this.recast = new RecastResource(this);
|
|
146
|
+
this.studio = new StudioResource(this);
|
|
147
|
+
this.copilot = new CopilotResource(this);
|
|
148
|
+
this.community = new CommunityResource(this);
|
|
149
|
+
this.templates = new TemplatesResource(this);
|
|
150
|
+
this.tutorials = new TutorialsResource(this);
|
|
151
|
+
this.organizations = new OrganizationsResource(this);
|
|
152
|
+
this.workspaces = new WorkspacesResource(this);
|
|
153
|
+
this.edit = new EditResource(this);
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* A client that acts in `workspaceId`, sharing this one's auth and config.
|
|
157
|
+
*
|
|
158
|
+
* A NEW client rather than a setter, deliberately. A mutable selection is
|
|
159
|
+
* the bug this whole axis exists to prevent: two concurrent operations
|
|
160
|
+
* against one client would race over which workspace they were in, and the
|
|
161
|
+
* loser would create work in the wrong place with nothing failing. A
|
|
162
|
+
* per-workspace client cannot be raced.
|
|
163
|
+
*
|
|
164
|
+
* Pass `null` for the personal space.
|
|
165
|
+
*/
|
|
166
|
+
withWorkspace(workspaceId) {
|
|
167
|
+
const fetchOverride = this["fetchOverride"];
|
|
168
|
+
return new _NodaroClient({
|
|
169
|
+
baseUrl: this.baseUrl,
|
|
170
|
+
auth: this.auth,
|
|
171
|
+
timeoutMs: this.timeoutMs,
|
|
172
|
+
...fetchOverride ? { fetch: fetchOverride } : {},
|
|
173
|
+
...this["sendClientHeader"] ? { clientLabel: this.clientLabel } : {},
|
|
174
|
+
...workspaceId ? { workspaceId } : {}
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
function createClient(opts) {
|
|
179
|
+
return new NodaroClient(opts);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export { NodaroClient, createClient };
|
|
183
|
+
//# sourceMappingURL=chunk-5WAI7VGO.js.map
|
|
184
|
+
//# sourceMappingURL=chunk-5WAI7VGO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwDO,IAAM,YAAA,GAAN,MAAM,aAAA,SAAqB,gBAAA,CAAiB;AAAA,EACxC,SAAA;AAAA,EACA,QAAA;AAAA;AAAA,EAEA,QAAA;AAAA,EACA,IAAA;AAAA,EACA,QAAA;AAAA,EACA,UAAA;AAAA,EACA,KAAA;AAAA,EACA,OAAA;AAAA,EACA,aAAA;AAAA,EACA,KAAA;AAAA;AAAA,EAEA,QAAA;AAAA,EACA,IAAA;AAAA,EACA,UAAA;AAAA,EACA,SAAA;AAAA,EACA,OAAA;AAAA,EACA,SAAA;AAAA,EACA,SAAA;AAAA,EACA,MAAA;AAAA,EACA,YAAA;AAAA,EACA,MAAA;AAAA,EACA,GAAA;AAAA,EACA,KAAA;AAAA,EACA,KAAA;AAAA,EACA,OAAA;AAAA;AAAA,EAEA,OAAA;AAAA,EACA,OAAA;AAAA,EACA,OAAA;AAAA;AAAA,EAEA,OAAA;AAAA,EACA,OAAA;AAAA,EACA,UAAA;AAAA,EACA,WAAA;AAAA;AAAA,EAEA,QAAA;AAAA;AAAA,EAEA,UAAA;AAAA,E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Aa;AAAA,MACtB,SAAS,IAAA,CAAK,OAAA;AAAA,MACd,MAAM,IAAA,CAAK,IAAA;AAAA,MACX,WAAW,IAAA,CAAK,SAAA;AAAA,MAChB,GAAI,aAAA,GAAgB,EAAE,KAAA,EAAO,aAAA,KAAkB,EAAC;AAAA,MAChD,GAAI,KAAK,kBAAkB,CAAA,GAAI,EAAE,WAAA,EAAa,IAAA,CAAK,WAAA,EAAY,GAAI,EAAC;AAAA,MACpE,GAAI,WAAA,GAAc,EAAE,WAAA,KAAgB;AAAC,KACtC,CAAA;AAAA,EACH;AACF;AAGO,SAAS,aAAa,IAAA,EAAmC;AAC9D,EAAA,OAAO,IAAI,aAAa,IAAI,CAAA;AAC9B","file":"chunk-5WAI7VGO.js","sourcesContent":["import { WorkflowsResource } from \"./resources/workflows.js\"\nimport { ProjectsResource } from \"./resources/projects.js\"\nimport { SessionsResource } from \"./resources/sessions.js\"\nimport { JobsResource } from \"./resources/jobs.js\"\nimport { VideoProResource } from \"./resources/video-pro.js\"\nimport { ExecutionsResource } from \"./resources/executions.js\"\nimport { NodesResource } from \"./resources/nodes.js\"\nimport { Scene3DResource } from \"./resources/scene3d.js\"\nimport { DeveloperAppsResource } from \"./resources/developer-apps.js\"\nimport { OAuthResource } from \"./resources/oauth.js\"\nimport { WebhooksResource } from \"./resources/webhooks.js\"\nimport { AppsResource } from \"./resources/apps.js\"\nimport { CharactersResource } from \"./resources/characters.js\"\nimport { LocationsResource } from \"./resources/locations.js\"\nimport { ObjectsResource } from \"./resources/objects.js\"\nimport { CreaturesResource } from \"./resources/creatures.js\"\nimport { PipelinesResource } from \"./resources/pipelines.js\"\nimport { ReduceResource } from \"./resources/reduce.js\"\nimport { PromptHelperResource } from \"./resources/prompt-helper.js\"\nimport { VoicesResource } from \"./resources/voices.js\"\nimport { LlmResource } from \"./resources/llm.js\"\nimport { MediaResource } from \"./resources/media.js\"\nimport { AudioResource } from \"./resources/audio.js\"\nimport { CreditsResource } from \"./resources/credits.js\"\nimport { BillingResource } from \"./resources/billing.js\"\nimport { UploadsResource } from \"./resources/uploads.js\"\nimport { LibraryResource } from \"./resources/library.js\"\nimport { GalleryResource } from \"./resources/gallery.js\"\nimport { PresetsResource } from \"./resources/node-presets.js\"\nimport { SavedPostsResource } from \"./resources/saved-posts.js\"\nimport { CollectionsResource } from \"./resources/collections.js\"\nimport { PalettesResource } from \"./resources/palettes.js\"\nimport { MoodboardsResource } from \"./resources/moodboards.js\"\nimport { CompetitorsResource } from \"./resources/competitors.js\"\nimport { PickerCatalogsResource } from \"./resources/picker-catalogs.js\"\nimport { CatalogsResource } from \"./resources/catalogs.js\"\nimport { ModelsResource } from \"./resources/models.js\"\nimport { ShotsResource } from \"./resources/shots.js\"\nimport { RecastResource } from \"./resources/recast.js\"\nimport { StudioResource } from \"./resources/studio.js\"\nimport { CopilotResource } from \"./resources/copilot.js\"\nimport { CommunityResource } from \"./resources/community.js\"\nimport { TemplatesResource } from \"./resources/templates.js\"\nimport { TutorialsResource } from \"./resources/tutorials.js\"\nimport { OrganizationsResource } from \"./resources/organizations.js\"\nimport { WorkspacesResource } from \"./resources/workspaces.js\"\nimport { EditResource } from \"./resources/edit.js\"\nimport { NodaroClientCore, type ClientOptions } from \"./core.js\"\n\nexport { CLIENT_HEADER } from \"./core.js\"\nexport type { ClientOptions, UserIdentity, ConnectedApp } from \"./core.js\"\n\n/**\n * The full client: the core (`./core.ts` — config, transport, identity) and\n * every resource.\n */\nexport class NodaroClient extends NodaroClientCore {\n readonly workflows: WorkflowsResource\n readonly projects: ProjectsResource\n /** Generation sessions inside projects (Create Image / Video / Music). */\n readonly sessions: SessionsResource\n readonly jobs: JobsResource\n readonly videoPro: VideoProResource\n readonly executions: ExecutionsResource\n readonly nodes: NodesResource\n readonly scene3d: Scene3DResource\n readonly developerApps: DeveloperAppsResource\n readonly oauth: OAuthResource\n /** Outbound webhooks: endpoints that receive your job.completed / job.failed. */\n readonly webhooks: WebhooksResource\n readonly apps: AppsResource\n readonly characters: CharactersResource\n readonly locations: LocationsResource\n readonly objects: ObjectsResource\n readonly creatures: CreaturesResource\n readonly pipelines: PipelinesResource\n readonly reduce: ReduceResource\n readonly promptHelper: PromptHelperResource\n readonly voices: VoicesResource\n readonly llm: LlmResource\n readonly media: MediaResource\n readonly audio: AudioResource\n readonly credits: CreditsResource\n /** Plans and prices, the subscription, and how this deployment bills. */\n readonly billing: BillingResource\n readonly uploads: UploadsResource\n readonly library: LibraryResource\n /** The public gallery and your favorites. */\n readonly gallery: GalleryResource\n readonly presets: PresetsResource\n readonly savedPosts: SavedPostsResource\n readonly collections: CollectionsResource\n /** Your colour palettes — a generate-image direction (`direction.colorLook: paletteDirectionId(id)`). */\n readonly palettes: PalettesResource\n /** Your moodboards — a generate-image direction (`direction.style: moodboardDirectionId(id)`). */\n readonly moodboards: MoodboardsResource\n readonly competitors: CompetitorsResource\n readonly pickerCatalogs: PickerCatalogsResource\n readonly catalogs: CatalogsResource\n readonly models: ModelsResource\n readonly shots: ShotsResource\n readonly recast: RecastResource\n readonly studio: StudioResource\n readonly copilot: CopilotResource\n readonly community: CommunityResource\n readonly templates: TemplatesResource\n readonly tutorials: TutorialsResource\n readonly organizations: OrganizationsResource\n readonly workspaces: WorkspacesResource\n readonly edit: EditResource\n\n constructor(opts: ClientOptions) {\n super(opts)\n\n this.workflows = new WorkflowsResource(this)\n this.projects = new ProjectsResource(this)\n this.sessions = new SessionsResource(this)\n this.jobs = new JobsResource(this)\n this.videoPro = new VideoProResource(this)\n this.executions = new ExecutionsResource(this)\n this.nodes = new NodesResource(this)\n this.scene3d = new Scene3DResource(this)\n this.developerApps = new DeveloperAppsResource(this)\n this.oauth = new OAuthResource(this)\n this.webhooks = new WebhooksResource(this)\n this.apps = new AppsResource(this)\n this.characters = new CharactersResource(this)\n this.locations = new LocationsResource(this)\n this.objects = new ObjectsResource(this)\n this.creatures = new CreaturesResource(this)\n this.pipelines = new PipelinesResource(this)\n this.reduce = new ReduceResource(this)\n this.promptHelper = new PromptHelperResource(this)\n this.voices = new VoicesResource(this)\n this.llm = new LlmResource(this)\n this.media = new MediaResource(this)\n this.audio = new AudioResource(this)\n this.credits = new CreditsResource(this)\n this.billing = new BillingResource(this)\n this.uploads = new UploadsResource(this)\n this.library = new LibraryResource(this)\n this.gallery = new GalleryResource(this)\n this.presets = new PresetsResource(this)\n this.savedPosts = new SavedPostsResource(this)\n this.collections = new CollectionsResource(this)\n this.palettes = new PalettesResource(this)\n this.moodboards = new MoodboardsResource(this)\n this.competitors = new CompetitorsResource(this)\n this.pickerCatalogs = new PickerCatalogsResource(this)\n this.catalogs = new CatalogsResource(this)\n this.models = new ModelsResource(this)\n this.shots = new ShotsResource(this)\n this.recast = new RecastResource(this)\n this.studio = new StudioResource(this)\n this.copilot = new CopilotResource(this)\n this.community = new CommunityResource(this)\n this.templates = new TemplatesResource(this)\n this.tutorials = new TutorialsResource(this)\n this.organizations = new OrganizationsResource(this)\n this.workspaces = new WorkspacesResource(this)\n this.edit = new EditResource(this)\n }\n\n /**\n * A client that acts in `workspaceId`, sharing this one's auth and config.\n *\n * A NEW client rather than a setter, deliberately. A mutable selection is\n * the bug this whole axis exists to prevent: two concurrent operations\n * against one client would race over which workspace they were in, and the\n * loser would create work in the wrong place with nothing failing. A\n * per-workspace client cannot be raced.\n *\n * Pass `null` for the personal space.\n */\n withWorkspace(workspaceId: string | null): NodaroClient {\n // The two private settings are read by bracket access, which TypeScript\n // allows on a subclass and which adds no member to the declarations. Read\n // through `this` (not a side table keyed by the instance), so a client\n // wrapped in a Proxy (Vue/Pinia `reactive()`) or reached through\n // `Object.create(client)` still works.\n const fetchOverride = this[\"fetchOverride\"]\n return new NodaroClient({\n baseUrl: this.baseUrl,\n auth: this.auth,\n timeoutMs: this.timeoutMs,\n ...(fetchOverride ? { fetch: fetchOverride } : {}),\n ...(this[\"sendClientHeader\"] ? { clientLabel: this.clientLabel } : {}),\n ...(workspaceId ? { workspaceId } : {}),\n })\n }\n}\n\n/** Factory function — preferred entry point. */\nexport function createClient(opts: ClientOptions): NodaroClient {\n return new NodaroClient(opts)\n}\n"]}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// src/resources/developer-apps.ts
|
|
2
|
+
var DeveloperAppsResource = class {
|
|
3
|
+
constructor(client) {
|
|
4
|
+
this.client = client;
|
|
5
|
+
}
|
|
6
|
+
client;
|
|
7
|
+
/** List the authenticated user's developer apps. */
|
|
8
|
+
list() {
|
|
9
|
+
return this.client.request("GET", "/v1/developer-apps");
|
|
10
|
+
}
|
|
11
|
+
/** Get a developer app by ID. */
|
|
12
|
+
get(id) {
|
|
13
|
+
return this.client.request("GET", `/v1/developer-apps/${encodeURIComponent(id)}`);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Create a new developer app. Returns the app PLUS a one-time `clientSecret`
|
|
17
|
+
* — store it now, the secret hash is the only copy kept server-side.
|
|
18
|
+
*/
|
|
19
|
+
create(input) {
|
|
20
|
+
return this.client.request("POST", "/v1/developer-apps", { body: input });
|
|
21
|
+
}
|
|
22
|
+
/** Update a developer app's metadata, redirect URIs, origins, or requested scopes. */
|
|
23
|
+
update(id, input) {
|
|
24
|
+
return this.client.request(
|
|
25
|
+
"PATCH",
|
|
26
|
+
`/v1/developer-apps/${encodeURIComponent(id)}`,
|
|
27
|
+
{ body: input }
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
/** Delete a developer app. Returns `{ success: true }`. Throws
|
|
31
|
+
* `NotFoundError` when the id doesn't exist or isn't yours. */
|
|
32
|
+
delete(id) {
|
|
33
|
+
return this.client.request(
|
|
34
|
+
"DELETE",
|
|
35
|
+
`/v1/developer-apps/${encodeURIComponent(id)}`
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Generate a new `clientSecret`. The previous secret is invalidated.
|
|
40
|
+
* Server returns ONLY the new secret, not the full app record.
|
|
41
|
+
*/
|
|
42
|
+
rotateSecret(id) {
|
|
43
|
+
return this.client.request(
|
|
44
|
+
"POST",
|
|
45
|
+
`/v1/developer-apps/${encodeURIComponent(id)}/rotate-secret`
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export { DeveloperAppsResource };
|
|
51
|
+
//# sourceMappingURL=chunk-65E3JBFZ.js.map
|
|
52
|
+
//# sourceMappingURL=chunk-65E3JBFZ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/developer-apps.ts"],"names":[],"mappings":";AAwEO,IAAM,wBAAN,MAA4B;AAAA,EACjC,YAAoB,MAAA,EAA0B;AAA1B,IAAA,IAAA,CAAA,MAAA,GAAA,MAAA;AAAA,EAA2B;AAAA,EAA3B,MAAA;AAAA;AAAA,EAGpB,IAAA,GAA0C;AACxC,IAAA,OAAO,IAAA,CAAK,MAAA,CAAO,OAAA,CAAQ,KAAA,EAAO,oBAAoB,CAAA;AAAA,EACxD;AAAA;AAAA,EAGA,IAAI,EAAA,EAA6C;AAC/C,IAAA,OAAO,IAAA,CAAK,OAAO,OAAA,CAAQ,KAAA,EAAO,sBAAsB,kBAAA,CAAmB,EAAE,CAAC,CAAA,CAAE,CAAA;AAAA,EAClF;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,OAAO,KAAA,EAA6E;AAClF,IAAA,OAAO,IAAA,CAAK,OAAO,OAAA,CAAQ,MAAA,EAAQ,sBAAsB,EAAE,IAAA,EAAM,OAAO,CAAA;AAAA,EAC1E;AAAA;AAAA,EAGA,MAAA,CAAO,IAAY,KAAA,EAAiE;AAClF,IAAA,OAAO,KAAK,MAAA,CAAO,OAAA;AAAA,MACjB,OAAA;AAAA,MACA,CAAA,mBAAA,EAAsB,kBAAA,CAAmB,EAAE,CAAC,CAAA,CAAA;AAAA,MAC5C,EAAE,MAAM,KAAA;AAAM,KAChB;AAAA,EACF;AAAA;AAAA;AAAA,EAIA,OAAO,EAAA,EAAwC;AAC7C,IAAA,OAAO,KAAK,MAAA,CAAO,OAAA;AAAA,MACjB,QAAA;AAAA,MACA,CAAA,mBAAA,EAAsB,kBAAA,CAAmB,EAAE,CAAC,CAAA;AAAA,KAC9C;AAAA,EACF;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,aAAa,EAAA,EAAyC;AACpD,IAAA,OAAO,KAAK,MAAA,CAAO,OAAA;AAAA,MACjB,MAAA;AAAA,MACA,CAAA,mBAAA,EAAsB,kBAAA,CAAmB,EAAE,CAAC,CAAA,cAAA;AAAA,KAC9C;AAAA,EACF;AACF","file":"chunk-65E3JBFZ.js","sourcesContent":["import type { OAuthScope } from \"@nodaro/shared/apps\"\nimport type { NodaroClientCore } from \"../core.js\"\n\n/**\n * OAuth scopes that a developer app may request — the server's own list\n * (`OAUTH_SCOPES` in `@nodaro/shared`), so it cannot fall behind.\n */\nexport type DeveloperAppScope = OAuthScope\n\nexport type DeveloperAppStatus = \"active\" | \"suspended\" | \"pending_review\"\n\n/**\n * How the app came to exist. `user` is an app someone registered by hand in\n * the dashboard; the others register themselves (MCP clients via Dynamic\n * Client Registration, first-party MCP, a connected community instance).\n * Only `user` apps count toward the per-user registration cap.\n */\nexport type DeveloperAppKind = \"user\" | \"dynamic_mcp\" | \"first_party_mcp\" | \"community_instance\"\n\nexport interface DeveloperApp {\n id: string\n name: string\n description: string | null\n logoUrl: string | null\n homepageUrl: string | null\n redirectUris: string[]\n allowedOrigins: string[]\n scopesRequested: DeveloperAppScope[]\n clientId: string\n status: DeveloperAppStatus\n /** Absent from servers older than this field; treat missing as `\"user\"`. */\n kind?: DeveloperAppKind | (string & {})\n createdAt: string\n updatedAt: string\n}\n\n/**\n * One-shot create response — `clientSecret` is returned exactly ONCE here.\n * Store it securely; subsequent `get`/`list` calls will not include it.\n */\nexport interface CreateDeveloperAppResult extends DeveloperApp {\n clientSecret: string\n}\n\nexport interface CreateDeveloperAppInput {\n name: string\n description?: string\n homepageUrl?: string\n logoUrl?: string\n /** At least 1, at most 10 redirect URIs. Each must be https or http://localhost. */\n redirectUris: string[]\n /** Up to 5 bare origins (no path/query/hash), e.g. \"https://example.com\". */\n allowedOrigins?: string[]\n /** At least 1 scope required. */\n scopesRequested: DeveloperAppScope[]\n}\n\nexport interface UpdateDeveloperAppInput {\n name?: string\n description?: string\n homepageUrl?: string\n logoUrl?: string\n redirectUris?: string[]\n allowedOrigins?: string[]\n scopesRequested?: DeveloperAppScope[]\n}\n\nexport interface RotateSecretResult {\n /** New client secret. Returned exactly once — old secret is invalidated. */\n clientSecret: string\n}\n\nexport class DeveloperAppsResource {\n constructor(private client: NodaroClientCore) {}\n\n /** List the authenticated user's developer apps. */\n list(): Promise<{ data: DeveloperApp[] }> {\n return this.client.request(\"GET\", \"/v1/developer-apps\")\n }\n\n /** Get a developer app by ID. */\n get(id: string): Promise<{ data: DeveloperApp }> {\n return this.client.request(\"GET\", `/v1/developer-apps/${encodeURIComponent(id)}`)\n }\n\n /**\n * Create a new developer app. Returns the app PLUS a one-time `clientSecret`\n * — store it now, the secret hash is the only copy kept server-side.\n */\n create(input: CreateDeveloperAppInput): Promise<{ data: CreateDeveloperAppResult }> {\n return this.client.request(\"POST\", \"/v1/developer-apps\", { body: input })\n }\n\n /** Update a developer app's metadata, redirect URIs, origins, or requested scopes. */\n update(id: string, input: UpdateDeveloperAppInput): Promise<{ data: DeveloperApp }> {\n return this.client.request(\n \"PATCH\",\n `/v1/developer-apps/${encodeURIComponent(id)}`,\n { body: input },\n )\n }\n\n /** Delete a developer app. Returns `{ success: true }`. Throws\n * `NotFoundError` when the id doesn't exist or isn't yours. */\n delete(id: string): Promise<{ success: true }> {\n return this.client.request(\n \"DELETE\",\n `/v1/developer-apps/${encodeURIComponent(id)}`,\n )\n }\n\n /**\n * Generate a new `clientSecret`. The previous secret is invalidated.\n * Server returns ONLY the new secret, not the full app record.\n */\n rotateSecret(id: string): Promise<RotateSecretResult> {\n return this.client.request(\n \"POST\",\n `/v1/developer-apps/${encodeURIComponent(id)}/rotate-secret`,\n )\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"chunk-6JFNBAKV.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"chunk-6OC6OKLY.cjs"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// src/resources/templates.ts
|
|
2
|
+
var TemplatesResource = class {
|
|
3
|
+
constructor(client) {
|
|
4
|
+
this.client = client;
|
|
5
|
+
}
|
|
6
|
+
client;
|
|
7
|
+
/** Browse the public template marketplace (cursor-paginated, no auth required). */
|
|
8
|
+
browse(params = {}) {
|
|
9
|
+
return this.client.request("GET", "/v1/templates/browse", { query: { ...params } });
|
|
10
|
+
}
|
|
11
|
+
/** Fetch one public template by slug, including its full workflow snapshot. */
|
|
12
|
+
get(slug) {
|
|
13
|
+
return this.client.request("GET", `/v1/templates/${encodeURIComponent(slug)}`);
|
|
14
|
+
}
|
|
15
|
+
/** Clone a template into one of the caller's projects. Free — no credits charged. */
|
|
16
|
+
clone(slug, params) {
|
|
17
|
+
return this.client.request("POST", `/v1/templates/${encodeURIComponent(slug)}/clone`, {
|
|
18
|
+
body: params
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export { TemplatesResource };
|
|
24
|
+
//# sourceMappingURL=chunk-6OGGJQVA.js.map
|
|
25
|
+
//# sourceMappingURL=chunk-6OGGJQVA.js.map
|