@highstate/designer 0.9.16 → 0.9.19
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/.output/nitro.json +15 -0
- package/.output/public/_nuxt/00PavPNr.js +1 -0
- package/.output/public/_nuxt/0A0GXgOL.js +13 -0
- package/.output/public/_nuxt/1DNp92w6.js +1 -0
- package/.output/public/_nuxt/24pzIZRr.js +1 -0
- package/.output/public/_nuxt/2EtD6e53.js +1 -0
- package/.output/public/_nuxt/2UxHyX5q.js +1 -0
- package/.output/public/_nuxt/3e1v2bzS.js +1 -0
- package/.output/public/_nuxt/4A_iFExJ.js +1 -0
- package/.output/public/_nuxt/5bLW0GMw.js +1 -0
- package/.output/public/_nuxt/5i3qLPDT.js +1 -0
- package/.output/public/_nuxt/6nHXG8SA.js +1 -0
- package/.output/public/_nuxt/85-TOEBH.js +1 -0
- package/.output/public/_nuxt/9ZFiTIhr.js +1 -0
- package/.output/public/_nuxt/B-hkwWGT.js +1 -0
- package/.output/public/_nuxt/B0m2ddpp.js +1 -0
- package/.output/public/_nuxt/B1dDrJ26.js +1 -0
- package/.output/public/_nuxt/B1yitclQ.js +1 -0
- package/.output/public/_nuxt/B2umP1rN.js +1 -0
- package/.output/public/_nuxt/B5ZR69Tn.js +1 -0
- package/.output/public/_nuxt/B6aJPvgy.js +1 -0
- package/.output/public/_nuxt/B7mTdjB0.js +1 -0
- package/.output/public/_nuxt/B8z64P5r.js +1 -0
- package/.output/public/_nuxt/BBGuKPBd.js +1 -0
- package/.output/public/_nuxt/BDzgwa52.js +1 -0
- package/.output/public/_nuxt/BE2KfCdU.js +1 -0
- package/.output/public/_nuxt/BEDo0Tqx.js +1 -0
- package/.output/public/_nuxt/BEFlL3Zb.js +1 -0
- package/.output/public/_nuxt/BERRCDM3.js +1 -0
- package/.output/public/_nuxt/BETggiCN.js +1 -0
- package/.output/public/_nuxt/BEwlwnbL.js +1 -0
- package/.output/public/_nuxt/BFfxhgS-.js +1 -0
- package/.output/public/_nuxt/BGHREFWD.js +1 -0
- package/.output/public/_nuxt/BGJmEYvX.js +1 -0
- package/.output/public/_nuxt/BH2j9ZdL.js +2 -0
- package/.output/public/_nuxt/BHrmToEH.js +1 -0
- package/.output/public/_nuxt/BIAuTxu3.js +1 -0
- package/.output/public/_nuxt/BIGW1oBm.js +1 -0
- package/.output/public/_nuxt/BIHI7g3E.js +1 -0
- package/.output/public/_nuxt/BLIjXRbp.js +1 -0
- package/.output/public/_nuxt/BLPLmiCg.js +1 -0
- package/.output/public/_nuxt/BLtJtn59.js +1 -0
- package/.output/public/_nuxt/BLxL40Jp.js +1 -0
- package/.output/public/_nuxt/BM1_JUlF.js +1 -0
- package/.output/public/_nuxt/BMMyXqK5.js +1 -0
- package/.output/public/_nuxt/BMWR74SV.js +1 -0
- package/.output/public/_nuxt/BODfYi5x.js +1 -0
- package/.output/public/_nuxt/BPzJO5Oe.js +1 -0
- package/.output/public/_nuxt/BQ8w6xss.js +1 -0
- package/.output/public/_nuxt/BQvybpQq.js +1 -0
- package/.output/public/_nuxt/BR7mELCv.js +1 -0
- package/.output/public/_nuxt/BRHolxvo.js +1 -0
- package/.output/public/_nuxt/BRZ36xJF.js +1 -0
- package/.output/public/_nuxt/BSVaCi82.js +1 -0
- package/.output/public/_nuxt/BTJTHyun.js +1 -0
- package/.output/public/_nuxt/BU7Cl-8B.js +1 -0
- package/.output/public/_nuxt/BV7otONQ.js +1 -0
- package/.output/public/_nuxt/BWvSN4gD.js +1 -0
- package/.output/public/_nuxt/BXY8tDGw.js +1 -0
- package/.output/public/_nuxt/BXkSAIEj.js +1 -0
- package/.output/public/_nuxt/BYunw83y.js +1 -0
- package/.output/public/_nuxt/B_HjzqPZ.js +1 -0
- package/.output/public/_nuxt/B_m7g4N7.js +1 -0
- package/.output/public/_nuxt/BbcW6ACK.js +1 -0
- package/.output/public/_nuxt/BcOcwvcX.js +1 -0
- package/.output/public/_nuxt/BdImnpbu.js +1 -0
- package/.output/public/_nuxt/BdnUsdx6.js +1 -0
- package/.output/public/_nuxt/BeBKEPaV.js +1 -0
- package/.output/public/_nuxt/BepWV7mh.js +1 -0
- package/.output/public/_nuxt/BfHTSMKl.js +1 -0
- package/.output/public/_nuxt/BfjtVDDH.js +1 -0
- package/.output/public/_nuxt/BgDCqdQA.js +1 -0
- package/.output/public/_nuxt/BhOHFoWU.js +1 -0
- package/.output/public/_nuxt/BhWccYlK.js +276 -0
- package/.output/public/_nuxt/Bj2v5zwu.js +6 -0
- package/.output/public/_nuxt/BjQbGaFu.js +1 -0
- package/.output/public/_nuxt/Bk5OV074.js +1 -0
- package/.output/public/_nuxt/BkPM1oy1.js +1 -0
- package/.output/public/_nuxt/BkhU0P2a.js +1 -0
- package/.output/public/_nuxt/BkioyH1T.js +1 -0
- package/.output/public/_nuxt/Bkuqu6BP.js +1 -0
- package/.output/public/_nuxt/Bl2oy6fF.js +1 -0
- package/.output/public/_nuxt/BmXAJ9_W.js +1 -0
- package/.output/public/_nuxt/BoKiGodi.js +1 -0
- package/.output/public/_nuxt/Bp3cYrEr.js +1 -0
- package/.output/public/_nuxt/Bp6g37R7.js +1 -0
- package/.output/public/_nuxt/Bq9zGKGH.js +1 -0
- package/.output/public/_nuxt/BqTXFGrv.js +1 -0
- package/.output/public/_nuxt/BqYA7rlc.js +1 -0
- package/.output/public/_nuxt/BsS91CYL.js +1 -0
- package/.output/public/_nuxt/BspZqrRM.js +1 -0
- package/.output/public/_nuxt/BtCnVYZw.js +1 -0
- package/.output/public/_nuxt/BtOb2qkB.js +1 -0
- package/.output/public/_nuxt/BthQWCQV.js +1 -0
- package/.output/public/_nuxt/BtqSS_iP.js +1 -0
- package/.output/public/_nuxt/BtsDLbAf.js +1 -0
- package/.output/public/_nuxt/Btyk0a-E.js +1 -0
- package/.output/public/_nuxt/Buea-lGh.js +1 -0
- package/.output/public/_nuxt/BuidTy5i.js +1 -0
- package/.output/public/_nuxt/BvAqAH-y.js +1 -0
- package/.output/public/_nuxt/Bw305WKR.js +1 -0
- package/.output/public/_nuxt/Bwy6lXZI.js +1 -0
- package/.output/public/_nuxt/BzJJZx-M.js +1 -0
- package/.output/public/_nuxt/C-SQnVFl.js +1 -0
- package/.output/public/_nuxt/C0HS_06l.js +1 -0
- package/.output/public/_nuxt/C0hk2d4L.js +1 -0
- package/.output/public/_nuxt/C151Ov-r.js +1 -0
- package/.output/public/_nuxt/C28Ky4mM.js +5 -0
- package/.output/public/_nuxt/C2t-YnRu.js +1 -0
- package/.output/public/_nuxt/C39BiMTA.js +1 -0
- package/.output/public/_nuxt/C39wRh4i.js +1 -0
- package/.output/public/_nuxt/C3B-1QV4.js +1 -0
- package/.output/public/_nuxt/C3khCPGq.js +1 -0
- package/.output/public/_nuxt/C3mMm8J8.js +1 -0
- package/.output/public/_nuxt/C4IJs8-o.js +1 -0
- package/.output/public/_nuxt/C7Pw0Ztw.js +1 -0
- package/.output/public/_nuxt/C8-UwF3o.js +1 -0
- package/.output/public/_nuxt/C8M2exoo.js +1 -0
- package/.output/public/_nuxt/C8j9CRIf.js +1 -0
- package/.output/public/_nuxt/C8lEn-DE.js +1 -0
- package/.output/public/_nuxt/C98Dy4si.js +1 -0
- package/.output/public/_nuxt/C9XAeP06.js +1 -0
- package/.output/public/_nuxt/C9tS-k6U.js +1 -0
- package/.output/public/_nuxt/CA7CTBwS.js +1 -0
- package/.output/public/_nuxt/CAEVHbCq.js +1 -0
- package/.output/public/_nuxt/CBdGpnmw.js +1 -0
- package/.output/public/_nuxt/CDVJQ6XC.js +1 -0
- package/.output/public/_nuxt/CDx5xZoG.js +1 -0
- package/.output/public/_nuxt/CEL-wOlO.js +1 -0
- package/.output/public/_nuxt/CEu0bR-o.js +1 -0
- package/.output/public/_nuxt/CF10PKvl.js +1 -0
- package/.output/public/_nuxt/CF5B4EM_.js +1 -0
- package/.output/public/_nuxt/CG8Ifv2g.js +1 -0
- package/.output/public/_nuxt/CGqH5EJj.js +1 -0
- package/.output/public/_nuxt/CHLpvVh8.js +1 -0
- package/.output/public/_nuxt/CHM0blh-.js +1 -0
- package/.output/public/_nuxt/CHadp7IV.js +1 -0
- package/.output/public/_nuxt/CHdpI9cE.js +1 -0
- package/.output/public/_nuxt/CHh-QcGE.js +1 -0
- package/.output/public/_nuxt/CIv7p5Hd.js +16 -0
- package/.output/public/_nuxt/CJc9bBzg.js +1 -0
- package/.output/public/_nuxt/CKIfxQSi.js +1 -0
- package/.output/public/_nuxt/CLvts2aQ.js +1 -0
- package/.output/public/_nuxt/CLxacb5B.js +1 -0
- package/.output/public/_nuxt/CND6o3oI.js +1 -0
- package/.output/public/_nuxt/CO1LY3CK.js +1 -0
- package/.output/public/_nuxt/COCm9MC_.js +1 -0
- package/.output/public/_nuxt/COEtLSDF.js +1 -0
- package/.output/public/_nuxt/COI20M4I.js +1 -0
- package/.output/public/_nuxt/COkxafJQ.js +1 -0
- package/.output/public/_nuxt/COt5Ahok.js +1 -0
- package/.output/public/_nuxt/CPtXGFXV.js +1 -0
- package/.output/public/_nuxt/CS3Unz2-.js +1 -0
- package/.output/public/_nuxt/CSXwinHm.js +1 -0
- package/.output/public/_nuxt/CTIxkRwW.js +1 -0
- package/.output/public/_nuxt/CTRr51gU.js +1 -0
- package/.output/public/_nuxt/CTUD0bHN.js +1 -0
- package/.output/public/_nuxt/CTWiQX6C.js +1 -0
- package/.output/public/_nuxt/CU1B2r8a.js +1 -0
- package/.output/public/_nuxt/CU27uY9n.js +1 -0
- package/.output/public/_nuxt/CVO1_9PV.js +1 -0
- package/.output/public/_nuxt/CXtECtnM.js +1 -0
- package/.output/public/_nuxt/CZlF05X6.js +1 -0
- package/.output/public/_nuxt/CafNBF8u.js +1 -0
- package/.output/public/_nuxt/CasefD2V.js +1 -0
- package/.output/public/_nuxt/Cb0HU5_O.js +1 -0
- package/.output/public/_nuxt/CbFg5uaA.js +1 -0
- package/.output/public/_nuxt/CbfX1IO0.js +1 -0
- package/.output/public/_nuxt/CcyOm34o.js +1 -0
- package/.output/public/_nuxt/CdggvHu8.js +1 -0
- package/.output/public/_nuxt/CeAyd5Ju.js +1 -0
- package/.output/public/_nuxt/CeZK1NFH.js +1 -0
- package/.output/public/_nuxt/CfQXZHmo.js +1 -0
- package/.output/public/_nuxt/CfeIJUat.js +1 -0
- package/.output/public/_nuxt/Cg-RD9OK.js +1 -0
- package/.output/public/_nuxt/ChMvpjG-.js +1 -0
- package/.output/public/_nuxt/Cj5Yp3dK.js +1 -0
- package/.output/public/_nuxt/Ck1nftBx.js +1 -0
- package/.output/public/_nuxt/CkByrt1z.js +1 -0
- package/.output/public/_nuxt/CkXjmgJE.js +1 -0
- package/.output/public/_nuxt/Cmh6b_Ma.js +1 -0
- package/.output/public/_nuxt/CnK8MTSM.js +1 -0
- package/.output/public/_nuxt/CnnmHF94.js +1 -0
- package/.output/public/_nuxt/Co6uUVPk.js +1 -0
- package/.output/public/_nuxt/Cp-IABpG.js +1 -0
- package/.output/public/_nuxt/Cq5zzVJU.js +1 -0
- package/.output/public/_nuxt/CquLrc37.js +1 -0
- package/.output/public/_nuxt/CsfeWuGM.js +1 -0
- package/.output/public/_nuxt/Csfq5Kiy.js +1 -0
- package/.output/public/_nuxt/CtrldY6v.js +1 -0
- package/.output/public/_nuxt/Cuk6v7N8.js +1 -0
- package/.output/public/_nuxt/Cv9koXgw.js +1 -0
- package/.output/public/_nuxt/CxGSJlkm.js +1 -0
- package/.output/public/_nuxt/CyktbL80.js +1 -0
- package/.output/public/_nuxt/CylS5w8V.js +1 -0
- package/.output/public/_nuxt/CzTSHFRz.js +1 -0
- package/.output/public/_nuxt/CzVLS6f1.js +2 -0
- package/.output/public/_nuxt/D-2ljcwZ.js +1 -0
- package/.output/public/_nuxt/D08WgyRC.js +1 -0
- package/.output/public/_nuxt/D0YGMca9.js +1 -0
- package/.output/public/_nuxt/D0r3Knsf.js +1 -0
- package/.output/public/_nuxt/D17OF-Vu.js +1 -0
- package/.output/public/_nuxt/D1TquUAQ.js +1 -0
- package/.output/public/_nuxt/D1j8_8rp.js +1 -0
- package/.output/public/_nuxt/D1uDOp7C.js +1 -0
- package/.output/public/_nuxt/D22FLkUw.js +1 -0
- package/.output/public/_nuxt/D2AD0cA7.js +1 -0
- package/.output/public/_nuxt/D2CYqzqI.js +1 -0
- package/.output/public/_nuxt/D32k8WzR.js +1 -0
- package/.output/public/_nuxt/D3lLCCz7.js +1 -0
- package/.output/public/_nuxt/D4h5O-jR.js +1 -0
- package/.output/public/_nuxt/D5-asLiD.js +1 -0
- package/.output/public/_nuxt/D5KoaKCx.js +1 -0
- package/.output/public/_nuxt/D7ScPSBf.js +1 -0
- package/.output/public/_nuxt/D7o27uSR.js +1 -0
- package/.output/public/_nuxt/D7oLnXFd.js +1 -0
- package/.output/public/_nuxt/D82EKSYY.js +1 -0
- package/.output/public/_nuxt/D93ZcfNL.js +1 -0
- package/.output/public/_nuxt/D97Zzqfu.js +1 -0
- package/.output/public/_nuxt/D9qQxcz2.js +1 -0
- package/.output/public/_nuxt/D9rAj-Tm.js +1 -0
- package/.output/public/_nuxt/DAi9KRSo.js +1 -0
- package/.output/public/_nuxt/DDCXd-ua.js +1 -0
- package/.output/public/_nuxt/DEKgA0CD.js +1 -0
- package/.output/public/_nuxt/DFPGdAue.js +1 -0
- package/.output/public/_nuxt/DFQXde-d.js +1 -0
- package/.output/public/_nuxt/DFXneXwc.js +1 -0
- package/.output/public/_nuxt/DGztddWO.js +1 -0
- package/.output/public/_nuxt/DH5Ifo-i.js +1 -0
- package/.output/public/_nuxt/DHCkPAjA.js +1 -0
- package/.output/public/_nuxt/DHJKELXO.js +1 -0
- package/.output/public/_nuxt/DInZfUJa.js +1 -0
- package/.output/public/_nuxt/DIpLW5D5.js +1 -0
- package/.output/public/_nuxt/DKYwYmdq.js +1 -0
- package/.output/public/_nuxt/DKzvysjW.js +1 -0
- package/.output/public/_nuxt/DLQCiJf0.js +1 -0
- package/.output/public/_nuxt/DLaRxjQz.js +1 -0
- package/.output/public/_nuxt/DM8c43g1.js +1 -0
- package/.output/public/_nuxt/DMDPKkZ0.js +1 -0
- package/.output/public/_nuxt/DMzUqQB5.js +1 -0
- package/.output/public/_nuxt/DNrj_gVY.js +1 -0
- package/.output/public/_nuxt/DO3LUuFM.js +12 -0
- package/.output/public/_nuxt/DP4clH6m.js +1 -0
- package/.output/public/_nuxt/DPWtH2b9.js +1 -0
- package/.output/public/_nuxt/DPcUKYIF.js +1 -0
- package/.output/public/_nuxt/DPfMkruS.js +1 -0
- package/.output/public/_nuxt/DRg8JJMk.js +1 -0
- package/.output/public/_nuxt/DRprw4p4.js +1 -0
- package/.output/public/_nuxt/DS1LvVMU.js +1 -0
- package/.output/public/_nuxt/DTnN7l_n.js +1 -0
- package/.output/public/_nuxt/DU1UobuO.js +1 -0
- package/.output/public/_nuxt/DUSGQflk.js +1 -0
- package/.output/public/_nuxt/DUszq2jm.js +1 -0
- package/.output/public/_nuxt/DVFEvuxE.js +1 -0
- package/.output/public/_nuxt/DVMEJ2y_.js +1 -0
- package/.output/public/_nuxt/DVxCFoDh.js +1 -0
- package/.output/public/_nuxt/DWedfzmr.js +1 -0
- package/.output/public/_nuxt/DWrx1Km3.js +1 -0
- package/.output/public/_nuxt/DXbdFlpD.js +1 -0
- package/.output/public/_nuxt/DXmwc3jG.js +1 -0
- package/.output/public/_nuxt/DXvB9xmW.js +1 -0
- package/.output/public/_nuxt/DYtuF1mO.js +1 -0
- package/.output/public/_nuxt/DZxFcAj9.js +1 -0
- package/.output/public/_nuxt/D_Q5rh1f.js +1 -0
- package/.output/public/_nuxt/Da5cRb03.js +1 -0
- package/.output/public/_nuxt/DarxiN41.js +1 -0
- package/.output/public/_nuxt/DbnWrFmt.js +1 -0
- package/.output/public/_nuxt/DcaNXYhu.js +1 -0
- package/.output/public/_nuxt/DcrT2YVS.js +1 -0
- package/.output/public/_nuxt/Dd19v3D-.js +1 -0
- package/.output/public/_nuxt/DdkO51Og.js +1 -0
- package/.output/public/_nuxt/Ddv68eIx.js +1 -0
- package/.output/public/_nuxt/DeWFVDHI.js +1 -0
- package/.output/public/_nuxt/Des-eS-w.js +1 -0
- package/.output/public/_nuxt/Df68jz8_.js +1 -0
- package/.output/public/_nuxt/Df6bDoY_.js +1 -0
- package/.output/public/_nuxt/DiinP2Uv.js +1 -0
- package/.output/public/_nuxt/DjVGtenp.js +2 -0
- package/.output/public/_nuxt/DkFqJrB1.js +1 -0
- package/.output/public/_nuxt/DkhsQLT2.js +1 -0
- package/.output/public/_nuxt/DkwncUOv.js +1 -0
- package/.output/public/_nuxt/DlfHMoPT.js +1 -0
- package/.output/public/_nuxt/DljmTZ5-.js +1 -0
- package/.output/public/_nuxt/Dn2_MT6a.js +1 -0
- package/.output/public/_nuxt/DnULxvSX.js +1 -0
- package/.output/public/_nuxt/DoLmvh98.js +1 -0
- package/.output/public/_nuxt/Dpen1YoG.js +1 -0
- package/.output/public/_nuxt/DqwNpetd.js +1 -0
- package/.output/public/_nuxt/Dr8Zlu6v.js +1 -0
- package/.output/public/_nuxt/DrZfEa88.js +1 -0
- package/.output/public/_nuxt/Drp5UXmf.js +1 -0
- package/.output/public/_nuxt/DsOJ9woJ.js +1 -0
- package/.output/public/_nuxt/Dtc2v4kS.js +1 -0
- package/.output/public/_nuxt/DuztTtWK.js +1 -0
- package/.output/public/_nuxt/DwmUhPpj.js +1 -0
- package/.output/public/_nuxt/Dx-B1_4e.js +1 -0
- package/.output/public/_nuxt/DxOL29Up.js +1 -0
- package/.output/public/_nuxt/Dy4MTz6g.js +1 -0
- package/.output/public/_nuxt/DyJlTyXw.js +1 -0
- package/.output/public/_nuxt/DyxjwDmM.js +1 -0
- package/.output/public/_nuxt/E3gJ1_iC.js +1 -0
- package/.output/public/_nuxt/ETK3OkTL.js +1 -0
- package/.output/public/_nuxt/HgwTqqUo.js +1 -0
- package/.output/public/_nuxt/I3RK9BU8.js +1 -0
- package/.output/public/_nuxt/IeuSbFQv.js +1 -0
- package/.output/public/_nuxt/IvJ92aGK.js +1 -0
- package/.output/public/_nuxt/JJ2MHRK2.js +1 -0
- package/.output/public/_nuxt/JhPuU2gP.js +1 -0
- package/.output/public/_nuxt/JokPmHXv.js +1 -0
- package/.output/public/_nuxt/L9t79GZl.js +1 -0
- package/.output/public/_nuxt/MzD3tlZU.js +1 -0
- package/.output/public/_nuxt/N0qQ3IYs.js +2 -0
- package/.output/public/_nuxt/NleAzG8P.js +1 -0
- package/.output/public/_nuxt/O074qcLn.js +1 -0
- package/.output/public/_nuxt/P80f7IUj.js +1 -0
- package/.output/public/_nuxt/Pmp26Uib.js +1 -0
- package/.output/public/_nuxt/PoHY5YXO.js +1 -0
- package/.output/public/_nuxt/QIJgUcNo.js +1 -0
- package/.output/public/_nuxt/SQImb3Xm.js +1513 -0
- package/.output/public/_nuxt/SecretValueField.SMGlmIfE.css +1 -0
- package/.output/public/_nuxt/T7hNoCXG.js +1 -0
- package/.output/public/_nuxt/UInuXPgp.js +1 -0
- package/.output/public/_nuxt/UczlX-c9.js +1 -0
- package/.output/public/_nuxt/VOosw3JB.js +1 -0
- package/.output/public/_nuxt/Xi2tawMN.js +1 -0
- package/.output/public/_nuxt/Yzrsuije.js +1 -0
- package/.output/public/_nuxt/ZwEiOJEn.js +1 -0
- package/.output/public/_nuxt/_d0M4KuU.js +1 -0
- package/.output/public/_nuxt/_pageId_.Be9XJqQA.css +1 -0
- package/.output/public/_nuxt/_ykCGR6B.js +1 -0
- package/.output/public/_nuxt/bCR0ucgS.js +1 -0
- package/.output/public/_nuxt/bN70gL4F.js +1 -0
- package/.output/public/_nuxt/brDaU2vB.js +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -0
- package/.output/public/_nuxt/builds/meta/c89eb61d-80e1-4ca1-b13e-521c420f664e.json +1 -0
- package/.output/public/_nuxt/codicon.DCmgc-ay.ttf +0 -0
- package/.output/public/_nuxt/components.CIe9upZ4.css +1 -0
- package/.output/public/_nuxt/dglhsJpM.js +1 -0
- package/.output/public/_nuxt/dwOrl1Do.js +1 -0
- package/.output/public/_nuxt/edge-router-Cceh9XsC.js +4 -0
- package/.output/public/_nuxt/editor.worker-7Ic39DJY.js +12 -0
- package/.output/public/_nuxt/entry.B__IA1SB.css +1 -0
- package/.output/public/_nuxt/error-404.Ctkhr_Pq.css +1 -0
- package/.output/public/_nuxt/error-500.BsWzRwYo.css +1 -0
- package/.output/public/_nuxt/f7oK2omx.js +1 -0
- package/.output/public/_nuxt/fqUPtzRv.js +1 -0
- package/.output/public/_nuxt/fuZLfV_i.js +1 -0
- package/.output/public/_nuxt/fve9TYiY.js +1 -0
- package/.output/public/_nuxt/g9-lgVsj.js +1 -0
- package/.output/public/_nuxt/gcz8RCvz.js +1 -0
- package/.output/public/_nuxt/graph-layout-CFj469YF.js +1 -0
- package/.output/public/_nuxt/graph-resolver-DwBTX8MB.js +175 -0
- package/.output/public/_nuxt/gt3opOQe.js +1 -0
- package/.output/public/_nuxt/hegEt444.js +1 -0
- package/.output/public/_nuxt/hira-1.DuDDiA5P.png +0 -0
- package/.output/public/_nuxt/hira-unlock-impossible.B5Pl3pvF.png +0 -0
- package/.output/public/_nuxt/i3Pf1NPu.js +2 -0
- package/.output/public/_nuxt/index.CdaM9XKS.css +1 -0
- package/.output/public/_nuxt/index.cU4FhqMM.css +1 -0
- package/.output/public/_nuxt/irsrSlf-.js +1 -0
- package/.output/public/_nuxt/kFPB2rqp.js +1 -0
- package/.output/public/_nuxt/koatKMQr.js +26 -0
- package/.output/public/_nuxt/lXgVvXCa.js +1 -0
- package/.output/public/_nuxt/materialdesignicons-webfont.B6OSyW2I.woff2 +0 -0
- package/.output/public/_nuxt/materialdesignicons-webfont.BpRar1d5.ttf +0 -0
- package/.output/public/_nuxt/materialdesignicons-webfont.Bvl3VxMs.woff +0 -0
- package/.output/public/_nuxt/materialdesignicons-webfont.TEmAk13K.eot +0 -0
- package/.output/public/_nuxt/monaco-editor.D_J4ItrK.css +1 -0
- package/.output/public/_nuxt/mwDqsUrW.js +1 -0
- package/.output/public/_nuxt/oZs8U75K.js +1 -0
- package/.output/public/_nuxt/operations.3bVU1gWl.css +1 -0
- package/.output/public/_nuxt/pkIJ47B4.js +1 -0
- package/.output/public/_nuxt/q-j0iyEw.js +1 -0
- package/.output/public/_nuxt/qliWkHmV.js +1 -0
- package/.output/public/_nuxt/settings.DE1a_g5Y.css +1 -0
- package/.output/public/_nuxt/ttev5MDP.js +1 -0
- package/.output/public/_nuxt/uMbE6_td.js +1 -0
- package/.output/public/_nuxt/v9bSWb7m.js +1 -0
- package/.output/public/_nuxt/vGWfd6FD.js +1 -0
- package/.output/public/_nuxt/vuetify.uXRHzFBB.css +5 -0
- package/.output/public/_nuxt/yaml.worker-DLQcEOxU.js +410 -0
- package/.output/public/_nuxt/yv6CvBhz.js +1 -0
- package/.output/public/favicon.ico +0 -0
- package/.output/public/libavoid.wasm +0 -0
- package/.output/public/robots.txt +1 -0
- package/.output/server/index.mjs +19869 -0
- package/.output/server/index.mjs.map +1 -0
- package/.output/server/node_modules/@babel/parser/lib/index.js +14591 -0
- package/.output/server/node_modules/@babel/parser/package.json +50 -0
- package/.output/server/node_modules/@trpc/server/dist/adapters/fetch/index.mjs +58 -0
- package/.output/server/node_modules/@trpc/server/dist/adapters/ws.mjs +15 -0
- package/.output/server/node_modules/@trpc/server/dist/contentTypeParsers-SN4WL9ze.mjs +13 -0
- package/.output/server/node_modules/@trpc/server/dist/getErrorShape-Uhlrl4Bk.mjs +263 -0
- package/.output/server/node_modules/@trpc/server/dist/http-CWyjOa1l.mjs +0 -0
- package/.output/server/node_modules/@trpc/server/dist/index.mjs +6 -0
- package/.output/server/node_modules/@trpc/server/dist/initTRPC-IT_6ZYJd.mjs +358 -0
- package/.output/server/node_modules/@trpc/server/dist/node-http-ZvZKxPic.mjs +222 -0
- package/.output/server/node_modules/@trpc/server/dist/observable-CUiPknO-.mjs +158 -0
- package/.output/server/node_modules/@trpc/server/dist/observable-UMO3vUa_.mjs +158 -0
- package/.output/server/node_modules/@trpc/server/dist/parseTRPCMessage-ByIHyFRz.mjs +63 -0
- package/.output/server/node_modules/@trpc/server/dist/resolveResponse-CzlbRpCI.mjs +2183 -0
- package/.output/server/node_modules/@trpc/server/dist/tracked-gU3ttYjg.mjs +371 -0
- package/.output/server/node_modules/@trpc/server/dist/unstable-core-do-not-import-D89CaGtL.mjs +29 -0
- package/.output/server/node_modules/@trpc/server/dist/utils-DdbbrDku.mjs +137 -0
- package/.output/server/node_modules/@trpc/server/dist/ws-DsZkVWpZ.mjs +420 -0
- package/.output/server/node_modules/@trpc/server/package.json +232 -0
- package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6704 -0
- package/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
- package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +686 -0
- package/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
- package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1402 -0
- package/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
- package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1806 -0
- package/.output/server/node_modules/@vue/reactivity/package.json +55 -0
- package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6700 -0
- package/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
- package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1679 -0
- package/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
- package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +879 -0
- package/.output/server/node_modules/@vue/server-renderer/package.json +55 -0
- package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +605 -0
- package/.output/server/node_modules/@vue/shared/package.json +47 -0
- package/.output/server/node_modules/copy-anything/dist/index.js +36 -0
- package/.output/server/node_modules/copy-anything/package.json +108 -0
- package/.output/server/node_modules/devalue/index.js +3 -0
- package/.output/server/node_modules/devalue/package.json +34 -0
- package/.output/server/node_modules/devalue/src/base64.js +110 -0
- package/.output/server/node_modules/devalue/src/constants.js +6 -0
- package/.output/server/node_modules/devalue/src/parse.js +160 -0
- package/.output/server/node_modules/devalue/src/stringify.js +232 -0
- package/.output/server/node_modules/devalue/src/uneval.js +351 -0
- package/.output/server/node_modules/devalue/src/utils.js +113 -0
- package/.output/server/node_modules/entities/lib/decode.js +536 -0
- package/.output/server/node_modules/entities/lib/decode_codepoint.js +76 -0
- package/.output/server/node_modules/entities/lib/generated/decode-data-html.js +9 -0
- package/.output/server/node_modules/entities/lib/generated/decode-data-xml.js +9 -0
- package/.output/server/node_modules/entities/package.json +90 -0
- package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
- package/.output/server/node_modules/estree-walker/package.json +37 -0
- package/.output/server/node_modules/hookable/dist/index.mjs +290 -0
- package/.output/server/node_modules/hookable/package.json +49 -0
- package/.output/server/node_modules/is-what/dist/index.js +171 -0
- package/.output/server/node_modules/is-what/package.json +128 -0
- package/.output/server/node_modules/source-map-js/lib/array-set.js +121 -0
- package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
- package/.output/server/node_modules/source-map-js/lib/base64.js +67 -0
- package/.output/server/node_modules/source-map-js/lib/binary-search.js +111 -0
- package/.output/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
- package/.output/server/node_modules/source-map-js/lib/quick-sort.js +132 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +444 -0
- package/.output/server/node_modules/source-map-js/lib/source-node.js +413 -0
- package/.output/server/node_modules/source-map-js/lib/util.js +594 -0
- package/.output/server/node_modules/source-map-js/package.json +71 -0
- package/.output/server/node_modules/source-map-js/source-map.js +8 -0
- package/.output/server/node_modules/superjson/dist/accessDeep.js +123 -0
- package/.output/server/node_modules/superjson/dist/class-registry.js +22 -0
- package/.output/server/node_modules/superjson/dist/custom-transformer-registry.js +16 -0
- package/.output/server/node_modules/superjson/dist/double-indexed-kv.js +21 -0
- package/.output/server/node_modules/superjson/dist/index.js +89 -0
- package/.output/server/node_modules/superjson/dist/is.js +35 -0
- package/.output/server/node_modules/superjson/dist/pathstringifier.js +29 -0
- package/.output/server/node_modules/superjson/dist/plainer.js +173 -0
- package/.output/server/node_modules/superjson/dist/registry.js +26 -0
- package/.output/server/node_modules/superjson/dist/transformer.js +197 -0
- package/.output/server/node_modules/superjson/dist/util.js +45 -0
- package/.output/server/node_modules/superjson/package.json +79 -0
- package/.output/server/node_modules/ufo/dist/index.mjs +638 -0
- package/.output/server/node_modules/ufo/package.json +47 -0
- package/.output/server/node_modules/unhead/dist/plugins.mjs +101 -0
- package/.output/server/node_modules/unhead/dist/server.mjs +219 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BYvz9V1x.mjs +43 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BpRRHAhY.mjs +194 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CApf5sj3.mjs +148 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.DH45uomy.mjs +180 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.DQc16pHI.mjs +196 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.DZbvapt-.mjs +70 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.Djo8ep_Y.mjs +166 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.yem5I2v_.mjs +38 -0
- package/.output/server/node_modules/unhead/dist/utils.mjs +5 -0
- package/.output/server/node_modules/unhead/package.json +101 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
- package/.output/server/node_modules/vue/index.js +7 -0
- package/.output/server/node_modules/vue/index.mjs +1 -0
- package/.output/server/node_modules/vue/package.json +112 -0
- package/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
- package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +196 -0
- package/.output/server/node_modules/vue-bundle-renderer/package.json +50 -0
- package/.output/server/node_modules/ws/lib/buffer-util.js +131 -0
- package/.output/server/node_modules/ws/lib/constants.js +18 -0
- package/.output/server/node_modules/ws/lib/event-target.js +292 -0
- package/.output/server/node_modules/ws/lib/extension.js +203 -0
- package/.output/server/node_modules/ws/lib/limiter.js +55 -0
- package/.output/server/node_modules/ws/lib/permessage-deflate.js +528 -0
- package/.output/server/node_modules/ws/lib/receiver.js +706 -0
- package/.output/server/node_modules/ws/lib/sender.js +602 -0
- package/.output/server/node_modules/ws/lib/stream.js +161 -0
- package/.output/server/node_modules/ws/lib/subprotocol.js +62 -0
- package/.output/server/node_modules/ws/lib/validation.js +152 -0
- package/.output/server/node_modules/ws/lib/websocket-server.js +550 -0
- package/.output/server/node_modules/ws/lib/websocket.js +1388 -0
- package/.output/server/node_modules/ws/package.json +69 -0
- package/.output/server/node_modules/ws/wrapper.mjs +8 -0
- package/.output/server/node_modules/zod/index.js +4 -0
- package/.output/server/node_modules/zod/package.json +131 -0
- package/.output/server/node_modules/zod/v4/classic/checks.js +1 -0
- package/.output/server/node_modules/zod/v4/classic/coerce.js +17 -0
- package/.output/server/node_modules/zod/v4/classic/compat.js +31 -0
- package/.output/server/node_modules/zod/v4/classic/errors.js +41 -0
- package/.output/server/node_modules/zod/v4/classic/external.js +18 -0
- package/.output/server/node_modules/zod/v4/classic/iso.js +30 -0
- package/.output/server/node_modules/zod/v4/classic/parse.js +6 -0
- package/.output/server/node_modules/zod/v4/classic/schemas.js +1006 -0
- package/.output/server/node_modules/zod/v4/core/api.js +906 -0
- package/.output/server/node_modules/zod/v4/core/checks.js +565 -0
- package/.output/server/node_modules/zod/v4/core/core.js +61 -0
- package/.output/server/node_modules/zod/v4/core/doc.js +35 -0
- package/.output/server/node_modules/zod/v4/core/errors.js +195 -0
- package/.output/server/node_modules/zod/v4/core/function.js +75 -0
- package/.output/server/node_modules/zod/v4/core/index.js +15 -0
- package/.output/server/node_modules/zod/v4/core/json-schema.js +1 -0
- package/.output/server/node_modules/zod/v4/core/parse.js +57 -0
- package/.output/server/node_modules/zod/v4/core/regexes.js +95 -0
- package/.output/server/node_modules/zod/v4/core/registries.js +51 -0
- package/.output/server/node_modules/zod/v4/core/schemas.js +1718 -0
- package/.output/server/node_modules/zod/v4/core/to-json-schema.js +849 -0
- package/.output/server/node_modules/zod/v4/core/util.js +493 -0
- package/.output/server/node_modules/zod/v4/core/versions.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/ar.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/az.js +115 -0
- package/.output/server/node_modules/zod/v4/locales/be.js +164 -0
- package/.output/server/node_modules/zod/v4/locales/ca.js +118 -0
- package/.output/server/node_modules/zod/v4/locales/cs.js +135 -0
- package/.output/server/node_modules/zod/v4/locales/de.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/en.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/eo.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/es.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/fa.js +122 -0
- package/.output/server/node_modules/zod/v4/locales/fi.js +122 -0
- package/.output/server/node_modules/zod/v4/locales/fr-CA.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/fr.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/he.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/hu.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/id.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/index.js +39 -0
- package/.output/server/node_modules/zod/v4/locales/it.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/ja.js +115 -0
- package/.output/server/node_modules/zod/v4/locales/kh.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/ko.js +121 -0
- package/.output/server/node_modules/zod/v4/locales/mk.js +118 -0
- package/.output/server/node_modules/zod/v4/locales/ms.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/nl.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/no.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/ota.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/pl.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/ps.js +122 -0
- package/.output/server/node_modules/zod/v4/locales/pt.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/ru.js +164 -0
- package/.output/server/node_modules/zod/v4/locales/sl.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/sv.js +118 -0
- package/.output/server/node_modules/zod/v4/locales/ta.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/th.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/tr.js +115 -0
- package/.output/server/node_modules/zod/v4/locales/ua.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/ur.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/vi.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/zh-CN.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/zh-TW.js +117 -0
- package/.output/server/package.json +32 -0
- package/package.json +16 -12
|
@@ -0,0 +1,906 @@
|
|
|
1
|
+
import * as checks from "./checks.js";
|
|
2
|
+
import * as schemas from "./schemas.js";
|
|
3
|
+
import * as util from "./util.js";
|
|
4
|
+
export function _string(Class, params) {
|
|
5
|
+
return new Class({
|
|
6
|
+
type: "string",
|
|
7
|
+
...util.normalizeParams(params),
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
export function _coercedString(Class, params) {
|
|
11
|
+
return new Class({
|
|
12
|
+
type: "string",
|
|
13
|
+
coerce: true,
|
|
14
|
+
...util.normalizeParams(params),
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
export function _email(Class, params) {
|
|
18
|
+
return new Class({
|
|
19
|
+
type: "string",
|
|
20
|
+
format: "email",
|
|
21
|
+
check: "string_format",
|
|
22
|
+
abort: false,
|
|
23
|
+
...util.normalizeParams(params),
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
export function _guid(Class, params) {
|
|
27
|
+
return new Class({
|
|
28
|
+
type: "string",
|
|
29
|
+
format: "guid",
|
|
30
|
+
check: "string_format",
|
|
31
|
+
abort: false,
|
|
32
|
+
...util.normalizeParams(params),
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
export function _uuid(Class, params) {
|
|
36
|
+
return new Class({
|
|
37
|
+
type: "string",
|
|
38
|
+
format: "uuid",
|
|
39
|
+
check: "string_format",
|
|
40
|
+
abort: false,
|
|
41
|
+
...util.normalizeParams(params),
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
export function _uuidv4(Class, params) {
|
|
45
|
+
return new Class({
|
|
46
|
+
type: "string",
|
|
47
|
+
format: "uuid",
|
|
48
|
+
check: "string_format",
|
|
49
|
+
abort: false,
|
|
50
|
+
version: "v4",
|
|
51
|
+
...util.normalizeParams(params),
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
export function _uuidv6(Class, params) {
|
|
55
|
+
return new Class({
|
|
56
|
+
type: "string",
|
|
57
|
+
format: "uuid",
|
|
58
|
+
check: "string_format",
|
|
59
|
+
abort: false,
|
|
60
|
+
version: "v6",
|
|
61
|
+
...util.normalizeParams(params),
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
export function _uuidv7(Class, params) {
|
|
65
|
+
return new Class({
|
|
66
|
+
type: "string",
|
|
67
|
+
format: "uuid",
|
|
68
|
+
check: "string_format",
|
|
69
|
+
abort: false,
|
|
70
|
+
version: "v7",
|
|
71
|
+
...util.normalizeParams(params),
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
export function _url(Class, params) {
|
|
75
|
+
return new Class({
|
|
76
|
+
type: "string",
|
|
77
|
+
format: "url",
|
|
78
|
+
check: "string_format",
|
|
79
|
+
abort: false,
|
|
80
|
+
...util.normalizeParams(params),
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
export function _emoji(Class, params) {
|
|
84
|
+
return new Class({
|
|
85
|
+
type: "string",
|
|
86
|
+
format: "emoji",
|
|
87
|
+
check: "string_format",
|
|
88
|
+
abort: false,
|
|
89
|
+
...util.normalizeParams(params),
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
export function _nanoid(Class, params) {
|
|
93
|
+
return new Class({
|
|
94
|
+
type: "string",
|
|
95
|
+
format: "nanoid",
|
|
96
|
+
check: "string_format",
|
|
97
|
+
abort: false,
|
|
98
|
+
...util.normalizeParams(params),
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
export function _cuid(Class, params) {
|
|
102
|
+
return new Class({
|
|
103
|
+
type: "string",
|
|
104
|
+
format: "cuid",
|
|
105
|
+
check: "string_format",
|
|
106
|
+
abort: false,
|
|
107
|
+
...util.normalizeParams(params),
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
export function _cuid2(Class, params) {
|
|
111
|
+
return new Class({
|
|
112
|
+
type: "string",
|
|
113
|
+
format: "cuid2",
|
|
114
|
+
check: "string_format",
|
|
115
|
+
abort: false,
|
|
116
|
+
...util.normalizeParams(params),
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
export function _ulid(Class, params) {
|
|
120
|
+
return new Class({
|
|
121
|
+
type: "string",
|
|
122
|
+
format: "ulid",
|
|
123
|
+
check: "string_format",
|
|
124
|
+
abort: false,
|
|
125
|
+
...util.normalizeParams(params),
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
export function _xid(Class, params) {
|
|
129
|
+
return new Class({
|
|
130
|
+
type: "string",
|
|
131
|
+
format: "xid",
|
|
132
|
+
check: "string_format",
|
|
133
|
+
abort: false,
|
|
134
|
+
...util.normalizeParams(params),
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
export function _ksuid(Class, params) {
|
|
138
|
+
return new Class({
|
|
139
|
+
type: "string",
|
|
140
|
+
format: "ksuid",
|
|
141
|
+
check: "string_format",
|
|
142
|
+
abort: false,
|
|
143
|
+
...util.normalizeParams(params),
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
export function _ipv4(Class, params) {
|
|
147
|
+
return new Class({
|
|
148
|
+
type: "string",
|
|
149
|
+
format: "ipv4",
|
|
150
|
+
check: "string_format",
|
|
151
|
+
abort: false,
|
|
152
|
+
...util.normalizeParams(params),
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
export function _ipv6(Class, params) {
|
|
156
|
+
return new Class({
|
|
157
|
+
type: "string",
|
|
158
|
+
format: "ipv6",
|
|
159
|
+
check: "string_format",
|
|
160
|
+
abort: false,
|
|
161
|
+
...util.normalizeParams(params),
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
export function _cidrv4(Class, params) {
|
|
165
|
+
return new Class({
|
|
166
|
+
type: "string",
|
|
167
|
+
format: "cidrv4",
|
|
168
|
+
check: "string_format",
|
|
169
|
+
abort: false,
|
|
170
|
+
...util.normalizeParams(params),
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
export function _cidrv6(Class, params) {
|
|
174
|
+
return new Class({
|
|
175
|
+
type: "string",
|
|
176
|
+
format: "cidrv6",
|
|
177
|
+
check: "string_format",
|
|
178
|
+
abort: false,
|
|
179
|
+
...util.normalizeParams(params),
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
export function _base64(Class, params) {
|
|
183
|
+
return new Class({
|
|
184
|
+
type: "string",
|
|
185
|
+
format: "base64",
|
|
186
|
+
check: "string_format",
|
|
187
|
+
abort: false,
|
|
188
|
+
...util.normalizeParams(params),
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
export function _base64url(Class, params) {
|
|
192
|
+
return new Class({
|
|
193
|
+
type: "string",
|
|
194
|
+
format: "base64url",
|
|
195
|
+
check: "string_format",
|
|
196
|
+
abort: false,
|
|
197
|
+
...util.normalizeParams(params),
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
export function _e164(Class, params) {
|
|
201
|
+
return new Class({
|
|
202
|
+
type: "string",
|
|
203
|
+
format: "e164",
|
|
204
|
+
check: "string_format",
|
|
205
|
+
abort: false,
|
|
206
|
+
...util.normalizeParams(params),
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
export function _jwt(Class, params) {
|
|
210
|
+
return new Class({
|
|
211
|
+
type: "string",
|
|
212
|
+
format: "jwt",
|
|
213
|
+
check: "string_format",
|
|
214
|
+
abort: false,
|
|
215
|
+
...util.normalizeParams(params),
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
export const TimePrecision = {
|
|
219
|
+
Any: null,
|
|
220
|
+
Minute: -1,
|
|
221
|
+
Second: 0,
|
|
222
|
+
Millisecond: 3,
|
|
223
|
+
Microsecond: 6,
|
|
224
|
+
};
|
|
225
|
+
export function _isoDateTime(Class, params) {
|
|
226
|
+
return new Class({
|
|
227
|
+
type: "string",
|
|
228
|
+
format: "datetime",
|
|
229
|
+
check: "string_format",
|
|
230
|
+
offset: false,
|
|
231
|
+
local: false,
|
|
232
|
+
precision: null,
|
|
233
|
+
...util.normalizeParams(params),
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
export function _isoDate(Class, params) {
|
|
237
|
+
return new Class({
|
|
238
|
+
type: "string",
|
|
239
|
+
format: "date",
|
|
240
|
+
check: "string_format",
|
|
241
|
+
...util.normalizeParams(params),
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
export function _isoTime(Class, params) {
|
|
245
|
+
return new Class({
|
|
246
|
+
type: "string",
|
|
247
|
+
format: "time",
|
|
248
|
+
check: "string_format",
|
|
249
|
+
precision: null,
|
|
250
|
+
...util.normalizeParams(params),
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
export function _isoDuration(Class, params) {
|
|
254
|
+
return new Class({
|
|
255
|
+
type: "string",
|
|
256
|
+
format: "duration",
|
|
257
|
+
check: "string_format",
|
|
258
|
+
...util.normalizeParams(params),
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
export function _number(Class, params) {
|
|
262
|
+
return new Class({
|
|
263
|
+
type: "number",
|
|
264
|
+
checks: [],
|
|
265
|
+
...util.normalizeParams(params),
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
export function _coercedNumber(Class, params) {
|
|
269
|
+
return new Class({
|
|
270
|
+
type: "number",
|
|
271
|
+
coerce: true,
|
|
272
|
+
checks: [],
|
|
273
|
+
...util.normalizeParams(params),
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
export function _int(Class, params) {
|
|
277
|
+
return new Class({
|
|
278
|
+
type: "number",
|
|
279
|
+
check: "number_format",
|
|
280
|
+
abort: false,
|
|
281
|
+
format: "safeint",
|
|
282
|
+
...util.normalizeParams(params),
|
|
283
|
+
});
|
|
284
|
+
}
|
|
285
|
+
export function _float32(Class, params) {
|
|
286
|
+
return new Class({
|
|
287
|
+
type: "number",
|
|
288
|
+
check: "number_format",
|
|
289
|
+
abort: false,
|
|
290
|
+
format: "float32",
|
|
291
|
+
...util.normalizeParams(params),
|
|
292
|
+
});
|
|
293
|
+
}
|
|
294
|
+
export function _float64(Class, params) {
|
|
295
|
+
return new Class({
|
|
296
|
+
type: "number",
|
|
297
|
+
check: "number_format",
|
|
298
|
+
abort: false,
|
|
299
|
+
format: "float64",
|
|
300
|
+
...util.normalizeParams(params),
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
export function _int32(Class, params) {
|
|
304
|
+
return new Class({
|
|
305
|
+
type: "number",
|
|
306
|
+
check: "number_format",
|
|
307
|
+
abort: false,
|
|
308
|
+
format: "int32",
|
|
309
|
+
...util.normalizeParams(params),
|
|
310
|
+
});
|
|
311
|
+
}
|
|
312
|
+
export function _uint32(Class, params) {
|
|
313
|
+
return new Class({
|
|
314
|
+
type: "number",
|
|
315
|
+
check: "number_format",
|
|
316
|
+
abort: false,
|
|
317
|
+
format: "uint32",
|
|
318
|
+
...util.normalizeParams(params),
|
|
319
|
+
});
|
|
320
|
+
}
|
|
321
|
+
export function _boolean(Class, params) {
|
|
322
|
+
return new Class({
|
|
323
|
+
type: "boolean",
|
|
324
|
+
...util.normalizeParams(params),
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
export function _coercedBoolean(Class, params) {
|
|
328
|
+
return new Class({
|
|
329
|
+
type: "boolean",
|
|
330
|
+
coerce: true,
|
|
331
|
+
...util.normalizeParams(params),
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
export function _bigint(Class, params) {
|
|
335
|
+
return new Class({
|
|
336
|
+
type: "bigint",
|
|
337
|
+
...util.normalizeParams(params),
|
|
338
|
+
});
|
|
339
|
+
}
|
|
340
|
+
export function _coercedBigint(Class, params) {
|
|
341
|
+
return new Class({
|
|
342
|
+
type: "bigint",
|
|
343
|
+
coerce: true,
|
|
344
|
+
...util.normalizeParams(params),
|
|
345
|
+
});
|
|
346
|
+
}
|
|
347
|
+
export function _int64(Class, params) {
|
|
348
|
+
return new Class({
|
|
349
|
+
type: "bigint",
|
|
350
|
+
check: "bigint_format",
|
|
351
|
+
abort: false,
|
|
352
|
+
format: "int64",
|
|
353
|
+
...util.normalizeParams(params),
|
|
354
|
+
});
|
|
355
|
+
}
|
|
356
|
+
export function _uint64(Class, params) {
|
|
357
|
+
return new Class({
|
|
358
|
+
type: "bigint",
|
|
359
|
+
check: "bigint_format",
|
|
360
|
+
abort: false,
|
|
361
|
+
format: "uint64",
|
|
362
|
+
...util.normalizeParams(params),
|
|
363
|
+
});
|
|
364
|
+
}
|
|
365
|
+
export function _symbol(Class, params) {
|
|
366
|
+
return new Class({
|
|
367
|
+
type: "symbol",
|
|
368
|
+
...util.normalizeParams(params),
|
|
369
|
+
});
|
|
370
|
+
}
|
|
371
|
+
export function _undefined(Class, params) {
|
|
372
|
+
return new Class({
|
|
373
|
+
type: "undefined",
|
|
374
|
+
...util.normalizeParams(params),
|
|
375
|
+
});
|
|
376
|
+
}
|
|
377
|
+
export function _null(Class, params) {
|
|
378
|
+
return new Class({
|
|
379
|
+
type: "null",
|
|
380
|
+
...util.normalizeParams(params),
|
|
381
|
+
});
|
|
382
|
+
}
|
|
383
|
+
export function _any(Class) {
|
|
384
|
+
return new Class({
|
|
385
|
+
type: "any",
|
|
386
|
+
});
|
|
387
|
+
}
|
|
388
|
+
export function _unknown(Class) {
|
|
389
|
+
return new Class({
|
|
390
|
+
type: "unknown",
|
|
391
|
+
});
|
|
392
|
+
}
|
|
393
|
+
export function _never(Class, params) {
|
|
394
|
+
return new Class({
|
|
395
|
+
type: "never",
|
|
396
|
+
...util.normalizeParams(params),
|
|
397
|
+
});
|
|
398
|
+
}
|
|
399
|
+
export function _void(Class, params) {
|
|
400
|
+
return new Class({
|
|
401
|
+
type: "void",
|
|
402
|
+
...util.normalizeParams(params),
|
|
403
|
+
});
|
|
404
|
+
}
|
|
405
|
+
export function _date(Class, params) {
|
|
406
|
+
return new Class({
|
|
407
|
+
type: "date",
|
|
408
|
+
...util.normalizeParams(params),
|
|
409
|
+
});
|
|
410
|
+
}
|
|
411
|
+
export function _coercedDate(Class, params) {
|
|
412
|
+
return new Class({
|
|
413
|
+
type: "date",
|
|
414
|
+
coerce: true,
|
|
415
|
+
...util.normalizeParams(params),
|
|
416
|
+
});
|
|
417
|
+
}
|
|
418
|
+
export function _nan(Class, params) {
|
|
419
|
+
return new Class({
|
|
420
|
+
type: "nan",
|
|
421
|
+
...util.normalizeParams(params),
|
|
422
|
+
});
|
|
423
|
+
}
|
|
424
|
+
export function _lt(value, params) {
|
|
425
|
+
return new checks.$ZodCheckLessThan({
|
|
426
|
+
check: "less_than",
|
|
427
|
+
...util.normalizeParams(params),
|
|
428
|
+
value,
|
|
429
|
+
inclusive: false,
|
|
430
|
+
});
|
|
431
|
+
}
|
|
432
|
+
export function _lte(value, params) {
|
|
433
|
+
return new checks.$ZodCheckLessThan({
|
|
434
|
+
check: "less_than",
|
|
435
|
+
...util.normalizeParams(params),
|
|
436
|
+
value,
|
|
437
|
+
inclusive: true,
|
|
438
|
+
});
|
|
439
|
+
}
|
|
440
|
+
export {
|
|
441
|
+
/** @deprecated Use `z.lte()` instead. */
|
|
442
|
+
_lte as _max, };
|
|
443
|
+
export function _gt(value, params) {
|
|
444
|
+
return new checks.$ZodCheckGreaterThan({
|
|
445
|
+
check: "greater_than",
|
|
446
|
+
...util.normalizeParams(params),
|
|
447
|
+
value,
|
|
448
|
+
inclusive: false,
|
|
449
|
+
});
|
|
450
|
+
}
|
|
451
|
+
export function _gte(value, params) {
|
|
452
|
+
return new checks.$ZodCheckGreaterThan({
|
|
453
|
+
check: "greater_than",
|
|
454
|
+
...util.normalizeParams(params),
|
|
455
|
+
value,
|
|
456
|
+
inclusive: true,
|
|
457
|
+
});
|
|
458
|
+
}
|
|
459
|
+
export {
|
|
460
|
+
/** @deprecated Use `z.gte()` instead. */
|
|
461
|
+
_gte as _min, };
|
|
462
|
+
export function _positive(params) {
|
|
463
|
+
return _gt(0, params);
|
|
464
|
+
}
|
|
465
|
+
// negative
|
|
466
|
+
export function _negative(params) {
|
|
467
|
+
return _lt(0, params);
|
|
468
|
+
}
|
|
469
|
+
// nonpositive
|
|
470
|
+
export function _nonpositive(params) {
|
|
471
|
+
return _lte(0, params);
|
|
472
|
+
}
|
|
473
|
+
// nonnegative
|
|
474
|
+
export function _nonnegative(params) {
|
|
475
|
+
return _gte(0, params);
|
|
476
|
+
}
|
|
477
|
+
export function _multipleOf(value, params) {
|
|
478
|
+
return new checks.$ZodCheckMultipleOf({
|
|
479
|
+
check: "multiple_of",
|
|
480
|
+
...util.normalizeParams(params),
|
|
481
|
+
value,
|
|
482
|
+
});
|
|
483
|
+
}
|
|
484
|
+
export function _maxSize(maximum, params) {
|
|
485
|
+
return new checks.$ZodCheckMaxSize({
|
|
486
|
+
check: "max_size",
|
|
487
|
+
...util.normalizeParams(params),
|
|
488
|
+
maximum,
|
|
489
|
+
});
|
|
490
|
+
}
|
|
491
|
+
export function _minSize(minimum, params) {
|
|
492
|
+
return new checks.$ZodCheckMinSize({
|
|
493
|
+
check: "min_size",
|
|
494
|
+
...util.normalizeParams(params),
|
|
495
|
+
minimum,
|
|
496
|
+
});
|
|
497
|
+
}
|
|
498
|
+
export function _size(size, params) {
|
|
499
|
+
return new checks.$ZodCheckSizeEquals({
|
|
500
|
+
check: "size_equals",
|
|
501
|
+
...util.normalizeParams(params),
|
|
502
|
+
size,
|
|
503
|
+
});
|
|
504
|
+
}
|
|
505
|
+
export function _maxLength(maximum, params) {
|
|
506
|
+
const ch = new checks.$ZodCheckMaxLength({
|
|
507
|
+
check: "max_length",
|
|
508
|
+
...util.normalizeParams(params),
|
|
509
|
+
maximum,
|
|
510
|
+
});
|
|
511
|
+
return ch;
|
|
512
|
+
}
|
|
513
|
+
export function _minLength(minimum, params) {
|
|
514
|
+
return new checks.$ZodCheckMinLength({
|
|
515
|
+
check: "min_length",
|
|
516
|
+
...util.normalizeParams(params),
|
|
517
|
+
minimum,
|
|
518
|
+
});
|
|
519
|
+
}
|
|
520
|
+
export function _length(length, params) {
|
|
521
|
+
return new checks.$ZodCheckLengthEquals({
|
|
522
|
+
check: "length_equals",
|
|
523
|
+
...util.normalizeParams(params),
|
|
524
|
+
length,
|
|
525
|
+
});
|
|
526
|
+
}
|
|
527
|
+
export function _regex(pattern, params) {
|
|
528
|
+
return new checks.$ZodCheckRegex({
|
|
529
|
+
check: "string_format",
|
|
530
|
+
format: "regex",
|
|
531
|
+
...util.normalizeParams(params),
|
|
532
|
+
pattern,
|
|
533
|
+
});
|
|
534
|
+
}
|
|
535
|
+
export function _lowercase(params) {
|
|
536
|
+
return new checks.$ZodCheckLowerCase({
|
|
537
|
+
check: "string_format",
|
|
538
|
+
format: "lowercase",
|
|
539
|
+
...util.normalizeParams(params),
|
|
540
|
+
});
|
|
541
|
+
}
|
|
542
|
+
export function _uppercase(params) {
|
|
543
|
+
return new checks.$ZodCheckUpperCase({
|
|
544
|
+
check: "string_format",
|
|
545
|
+
format: "uppercase",
|
|
546
|
+
...util.normalizeParams(params),
|
|
547
|
+
});
|
|
548
|
+
}
|
|
549
|
+
export function _includes(includes, params) {
|
|
550
|
+
return new checks.$ZodCheckIncludes({
|
|
551
|
+
check: "string_format",
|
|
552
|
+
format: "includes",
|
|
553
|
+
...util.normalizeParams(params),
|
|
554
|
+
includes,
|
|
555
|
+
});
|
|
556
|
+
}
|
|
557
|
+
export function _startsWith(prefix, params) {
|
|
558
|
+
return new checks.$ZodCheckStartsWith({
|
|
559
|
+
check: "string_format",
|
|
560
|
+
format: "starts_with",
|
|
561
|
+
...util.normalizeParams(params),
|
|
562
|
+
prefix,
|
|
563
|
+
});
|
|
564
|
+
}
|
|
565
|
+
export function _endsWith(suffix, params) {
|
|
566
|
+
return new checks.$ZodCheckEndsWith({
|
|
567
|
+
check: "string_format",
|
|
568
|
+
format: "ends_with",
|
|
569
|
+
...util.normalizeParams(params),
|
|
570
|
+
suffix,
|
|
571
|
+
});
|
|
572
|
+
}
|
|
573
|
+
export function _property(property, schema, params) {
|
|
574
|
+
return new checks.$ZodCheckProperty({
|
|
575
|
+
check: "property",
|
|
576
|
+
property,
|
|
577
|
+
schema,
|
|
578
|
+
...util.normalizeParams(params),
|
|
579
|
+
});
|
|
580
|
+
}
|
|
581
|
+
export function _mime(types, params) {
|
|
582
|
+
return new checks.$ZodCheckMimeType({
|
|
583
|
+
check: "mime_type",
|
|
584
|
+
mime: types,
|
|
585
|
+
...util.normalizeParams(params),
|
|
586
|
+
});
|
|
587
|
+
}
|
|
588
|
+
export function _overwrite(tx) {
|
|
589
|
+
return new checks.$ZodCheckOverwrite({
|
|
590
|
+
check: "overwrite",
|
|
591
|
+
tx,
|
|
592
|
+
});
|
|
593
|
+
}
|
|
594
|
+
// normalize
|
|
595
|
+
export function _normalize(form) {
|
|
596
|
+
return _overwrite((input) => input.normalize(form));
|
|
597
|
+
}
|
|
598
|
+
// trim
|
|
599
|
+
export function _trim() {
|
|
600
|
+
return _overwrite((input) => input.trim());
|
|
601
|
+
}
|
|
602
|
+
// toLowerCase
|
|
603
|
+
export function _toLowerCase() {
|
|
604
|
+
return _overwrite((input) => input.toLowerCase());
|
|
605
|
+
}
|
|
606
|
+
// toUpperCase
|
|
607
|
+
export function _toUpperCase() {
|
|
608
|
+
return _overwrite((input) => input.toUpperCase());
|
|
609
|
+
}
|
|
610
|
+
export function _array(Class, element, params) {
|
|
611
|
+
return new Class({
|
|
612
|
+
type: "array",
|
|
613
|
+
element,
|
|
614
|
+
// get element() {
|
|
615
|
+
// return element;
|
|
616
|
+
// },
|
|
617
|
+
...util.normalizeParams(params),
|
|
618
|
+
});
|
|
619
|
+
}
|
|
620
|
+
export function _union(Class, options, params) {
|
|
621
|
+
return new Class({
|
|
622
|
+
type: "union",
|
|
623
|
+
options,
|
|
624
|
+
...util.normalizeParams(params),
|
|
625
|
+
});
|
|
626
|
+
}
|
|
627
|
+
export function _discriminatedUnion(Class, discriminator, options, params) {
|
|
628
|
+
return new Class({
|
|
629
|
+
type: "union",
|
|
630
|
+
options,
|
|
631
|
+
discriminator,
|
|
632
|
+
...util.normalizeParams(params),
|
|
633
|
+
});
|
|
634
|
+
}
|
|
635
|
+
export function _intersection(Class, left, right) {
|
|
636
|
+
return new Class({
|
|
637
|
+
type: "intersection",
|
|
638
|
+
left,
|
|
639
|
+
right,
|
|
640
|
+
});
|
|
641
|
+
}
|
|
642
|
+
// export function _tuple(
|
|
643
|
+
// Class: util.SchemaClass<schemas.$ZodTuple>,
|
|
644
|
+
// items: [],
|
|
645
|
+
// params?: string | $ZodTupleParams
|
|
646
|
+
// ): schemas.$ZodTuple<[], null>;
|
|
647
|
+
export function _tuple(Class, items, _paramsOrRest, _params) {
|
|
648
|
+
const hasRest = _paramsOrRest instanceof schemas.$ZodType;
|
|
649
|
+
const params = hasRest ? _params : _paramsOrRest;
|
|
650
|
+
const rest = hasRest ? _paramsOrRest : null;
|
|
651
|
+
return new Class({
|
|
652
|
+
type: "tuple",
|
|
653
|
+
items,
|
|
654
|
+
rest,
|
|
655
|
+
...util.normalizeParams(params),
|
|
656
|
+
});
|
|
657
|
+
}
|
|
658
|
+
export function _record(Class, keyType, valueType, params) {
|
|
659
|
+
return new Class({
|
|
660
|
+
type: "record",
|
|
661
|
+
keyType,
|
|
662
|
+
valueType,
|
|
663
|
+
...util.normalizeParams(params),
|
|
664
|
+
});
|
|
665
|
+
}
|
|
666
|
+
export function _map(Class, keyType, valueType, params) {
|
|
667
|
+
return new Class({
|
|
668
|
+
type: "map",
|
|
669
|
+
keyType,
|
|
670
|
+
valueType,
|
|
671
|
+
...util.normalizeParams(params),
|
|
672
|
+
});
|
|
673
|
+
}
|
|
674
|
+
export function _set(Class, valueType, params) {
|
|
675
|
+
return new Class({
|
|
676
|
+
type: "set",
|
|
677
|
+
valueType,
|
|
678
|
+
...util.normalizeParams(params),
|
|
679
|
+
});
|
|
680
|
+
}
|
|
681
|
+
export function _enum(Class, values, params) {
|
|
682
|
+
const entries = Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values;
|
|
683
|
+
// if (Array.isArray(values)) {
|
|
684
|
+
// for (const value of values) {
|
|
685
|
+
// entries[value] = value;
|
|
686
|
+
// }
|
|
687
|
+
// } else {
|
|
688
|
+
// Object.assign(entries, values);
|
|
689
|
+
// }
|
|
690
|
+
// const entries: util.EnumLike = {};
|
|
691
|
+
// for (const val of values) {
|
|
692
|
+
// entries[val] = val;
|
|
693
|
+
// }
|
|
694
|
+
return new Class({
|
|
695
|
+
type: "enum",
|
|
696
|
+
entries,
|
|
697
|
+
...util.normalizeParams(params),
|
|
698
|
+
});
|
|
699
|
+
}
|
|
700
|
+
/** @deprecated This API has been merged into `z.enum()`. Use `z.enum()` instead.
|
|
701
|
+
*
|
|
702
|
+
* ```ts
|
|
703
|
+
* enum Colors { red, green, blue }
|
|
704
|
+
* z.enum(Colors);
|
|
705
|
+
* ```
|
|
706
|
+
*/
|
|
707
|
+
export function _nativeEnum(Class, entries, params) {
|
|
708
|
+
return new Class({
|
|
709
|
+
type: "enum",
|
|
710
|
+
entries,
|
|
711
|
+
...util.normalizeParams(params),
|
|
712
|
+
});
|
|
713
|
+
}
|
|
714
|
+
export function _literal(Class, value, params) {
|
|
715
|
+
return new Class({
|
|
716
|
+
type: "literal",
|
|
717
|
+
values: Array.isArray(value) ? value : [value],
|
|
718
|
+
...util.normalizeParams(params),
|
|
719
|
+
});
|
|
720
|
+
}
|
|
721
|
+
export function _file(Class, params) {
|
|
722
|
+
return new Class({
|
|
723
|
+
type: "file",
|
|
724
|
+
...util.normalizeParams(params),
|
|
725
|
+
});
|
|
726
|
+
}
|
|
727
|
+
export function _transform(Class, fn) {
|
|
728
|
+
return new Class({
|
|
729
|
+
type: "transform",
|
|
730
|
+
transform: fn,
|
|
731
|
+
});
|
|
732
|
+
}
|
|
733
|
+
export function _optional(Class, innerType) {
|
|
734
|
+
return new Class({
|
|
735
|
+
type: "optional",
|
|
736
|
+
innerType,
|
|
737
|
+
});
|
|
738
|
+
}
|
|
739
|
+
export function _nullable(Class, innerType) {
|
|
740
|
+
return new Class({
|
|
741
|
+
type: "nullable",
|
|
742
|
+
innerType,
|
|
743
|
+
});
|
|
744
|
+
}
|
|
745
|
+
export function _default(Class, innerType, defaultValue) {
|
|
746
|
+
return new Class({
|
|
747
|
+
type: "default",
|
|
748
|
+
innerType,
|
|
749
|
+
get defaultValue() {
|
|
750
|
+
return typeof defaultValue === "function" ? defaultValue() : defaultValue;
|
|
751
|
+
},
|
|
752
|
+
});
|
|
753
|
+
}
|
|
754
|
+
export function _nonoptional(Class, innerType, params) {
|
|
755
|
+
return new Class({
|
|
756
|
+
type: "nonoptional",
|
|
757
|
+
innerType,
|
|
758
|
+
...util.normalizeParams(params),
|
|
759
|
+
});
|
|
760
|
+
}
|
|
761
|
+
export function _success(Class, innerType) {
|
|
762
|
+
return new Class({
|
|
763
|
+
type: "success",
|
|
764
|
+
innerType,
|
|
765
|
+
});
|
|
766
|
+
}
|
|
767
|
+
export function _catch(Class, innerType, catchValue) {
|
|
768
|
+
return new Class({
|
|
769
|
+
type: "catch",
|
|
770
|
+
innerType,
|
|
771
|
+
catchValue: (typeof catchValue === "function" ? catchValue : () => catchValue),
|
|
772
|
+
});
|
|
773
|
+
}
|
|
774
|
+
export function _pipe(Class, in_, out) {
|
|
775
|
+
return new Class({
|
|
776
|
+
type: "pipe",
|
|
777
|
+
in: in_,
|
|
778
|
+
out,
|
|
779
|
+
});
|
|
780
|
+
}
|
|
781
|
+
export function _readonly(Class, innerType) {
|
|
782
|
+
return new Class({
|
|
783
|
+
type: "readonly",
|
|
784
|
+
innerType,
|
|
785
|
+
});
|
|
786
|
+
}
|
|
787
|
+
export function _templateLiteral(Class, parts, params) {
|
|
788
|
+
return new Class({
|
|
789
|
+
type: "template_literal",
|
|
790
|
+
parts,
|
|
791
|
+
...util.normalizeParams(params),
|
|
792
|
+
});
|
|
793
|
+
}
|
|
794
|
+
export function _lazy(Class, getter) {
|
|
795
|
+
return new Class({
|
|
796
|
+
type: "lazy",
|
|
797
|
+
getter,
|
|
798
|
+
});
|
|
799
|
+
}
|
|
800
|
+
export function _promise(Class, innerType) {
|
|
801
|
+
return new Class({
|
|
802
|
+
type: "promise",
|
|
803
|
+
innerType,
|
|
804
|
+
});
|
|
805
|
+
}
|
|
806
|
+
export function _custom(Class, fn, _params) {
|
|
807
|
+
const norm = util.normalizeParams(_params);
|
|
808
|
+
norm.abort ?? (norm.abort = true); // default to abort:false
|
|
809
|
+
const schema = new Class({
|
|
810
|
+
type: "custom",
|
|
811
|
+
check: "custom",
|
|
812
|
+
fn: fn,
|
|
813
|
+
...norm,
|
|
814
|
+
});
|
|
815
|
+
return schema;
|
|
816
|
+
}
|
|
817
|
+
// export function _refine<T>(
|
|
818
|
+
// Class: util.SchemaClass<schemas.$ZodCustom>,
|
|
819
|
+
// fn: (arg: NoInfer<T>) => util.MaybeAsync<unknown>,
|
|
820
|
+
// _params: string | $ZodCustomParams = {}
|
|
821
|
+
// ): checks.$ZodCheck<T> {
|
|
822
|
+
// return _custom(Class, fn, _params);
|
|
823
|
+
// }
|
|
824
|
+
// same as _custom but defaults to abort:false
|
|
825
|
+
export function _refine(Class, fn, _params) {
|
|
826
|
+
const schema = new Class({
|
|
827
|
+
type: "custom",
|
|
828
|
+
check: "custom",
|
|
829
|
+
fn: fn,
|
|
830
|
+
...util.normalizeParams(_params),
|
|
831
|
+
});
|
|
832
|
+
return schema;
|
|
833
|
+
}
|
|
834
|
+
export function _stringbool(Classes, _params) {
|
|
835
|
+
const params = util.normalizeParams(_params);
|
|
836
|
+
let truthyArray = params.truthy ?? ["true", "1", "yes", "on", "y", "enabled"];
|
|
837
|
+
let falsyArray = params.falsy ?? ["false", "0", "no", "off", "n", "disabled"];
|
|
838
|
+
if (params.case !== "sensitive") {
|
|
839
|
+
truthyArray = truthyArray.map((v) => (typeof v === "string" ? v.toLowerCase() : v));
|
|
840
|
+
falsyArray = falsyArray.map((v) => (typeof v === "string" ? v.toLowerCase() : v));
|
|
841
|
+
}
|
|
842
|
+
const truthySet = new Set(truthyArray);
|
|
843
|
+
const falsySet = new Set(falsyArray);
|
|
844
|
+
const _Pipe = Classes.Pipe ?? schemas.$ZodPipe;
|
|
845
|
+
const _Boolean = Classes.Boolean ?? schemas.$ZodBoolean;
|
|
846
|
+
const _String = Classes.String ?? schemas.$ZodString;
|
|
847
|
+
const _Transform = Classes.Transform ?? schemas.$ZodTransform;
|
|
848
|
+
const tx = new _Transform({
|
|
849
|
+
type: "transform",
|
|
850
|
+
transform: (input, payload) => {
|
|
851
|
+
let data = input;
|
|
852
|
+
if (params.case !== "sensitive")
|
|
853
|
+
data = data.toLowerCase();
|
|
854
|
+
if (truthySet.has(data)) {
|
|
855
|
+
return true;
|
|
856
|
+
}
|
|
857
|
+
else if (falsySet.has(data)) {
|
|
858
|
+
return false;
|
|
859
|
+
}
|
|
860
|
+
else {
|
|
861
|
+
payload.issues.push({
|
|
862
|
+
code: "invalid_value",
|
|
863
|
+
expected: "stringbool",
|
|
864
|
+
values: [...truthySet, ...falsySet],
|
|
865
|
+
input: payload.value,
|
|
866
|
+
inst: tx,
|
|
867
|
+
});
|
|
868
|
+
return {};
|
|
869
|
+
}
|
|
870
|
+
},
|
|
871
|
+
error: params.error,
|
|
872
|
+
});
|
|
873
|
+
// params.error;
|
|
874
|
+
const innerPipe = new _Pipe({
|
|
875
|
+
type: "pipe",
|
|
876
|
+
in: new _String({ type: "string", error: params.error }),
|
|
877
|
+
out: tx,
|
|
878
|
+
error: params.error,
|
|
879
|
+
});
|
|
880
|
+
const outerPipe = new _Pipe({
|
|
881
|
+
type: "pipe",
|
|
882
|
+
in: innerPipe,
|
|
883
|
+
out: new _Boolean({
|
|
884
|
+
type: "boolean",
|
|
885
|
+
error: params.error,
|
|
886
|
+
}),
|
|
887
|
+
error: params.error,
|
|
888
|
+
});
|
|
889
|
+
return outerPipe;
|
|
890
|
+
}
|
|
891
|
+
export function _stringFormat(Class, format, fnOrRegex, _params = {}) {
|
|
892
|
+
const params = util.normalizeParams(_params);
|
|
893
|
+
const def = {
|
|
894
|
+
...util.normalizeParams(_params),
|
|
895
|
+
check: "string_format",
|
|
896
|
+
type: "string",
|
|
897
|
+
format,
|
|
898
|
+
fn: typeof fnOrRegex === "function" ? fnOrRegex : (val) => fnOrRegex.test(val),
|
|
899
|
+
...params,
|
|
900
|
+
};
|
|
901
|
+
if (fnOrRegex instanceof RegExp) {
|
|
902
|
+
def.pattern = fnOrRegex;
|
|
903
|
+
}
|
|
904
|
+
const inst = new Class(def);
|
|
905
|
+
return inst;
|
|
906
|
+
}
|