@highstate/designer 0.19.1 → 0.20.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/.output/nitro.json +3 -3
- package/.output/public/_nuxt/57B6Rca8.js +1 -0
- package/.output/public/_nuxt/5X7smno1.js +1 -0
- package/.output/public/_nuxt/{Cp2bjttb.js → 83L43bj1.js} +1 -1
- package/.output/public/_nuxt/8MSfy8uY.js +1 -0
- package/.output/public/_nuxt/9I37tBe7.js +1 -0
- package/.output/public/_nuxt/Aopv2gwH.js +1 -0
- package/.output/public/_nuxt/B13uiJCv.js +1 -0
- package/.output/public/_nuxt/B7c-h3xW.js +1 -0
- package/.output/public/_nuxt/B8nw2aST.js +2 -0
- package/.output/public/_nuxt/{1DNp92w6.js → B93PlW-d.js} +1 -1
- package/.output/public/_nuxt/BA0jw7CM.js +1 -0
- package/.output/public/_nuxt/BBf5iR-q.js +1 -0
- package/.output/public/_nuxt/BCVaR2pQ.js +1 -0
- package/.output/public/_nuxt/BDAHnC4j.js +1 -0
- package/.output/public/_nuxt/BDa1f6PF.js +2 -0
- package/.output/public/_nuxt/{YB_1Ta41.js → BDs6uo3D.js} +1 -1
- package/.output/public/_nuxt/BEEt8Am7.js +1 -0
- package/.output/public/_nuxt/BE_Meo09.js +269 -0
- package/.output/public/_nuxt/BGHnOYBU.js +1 -0
- package/.output/public/_nuxt/BH7IYjvW.js +1 -0
- package/.output/public/_nuxt/BJDFO7_C.js +1 -0
- package/.output/public/_nuxt/BJK6uMxG.js +1 -0
- package/.output/public/_nuxt/BLF3u89x.js +1 -0
- package/.output/public/_nuxt/{Xi2tawMN.js → BLmx8bSh.js} +1 -1
- package/.output/public/_nuxt/{DlfHMoPT.js → BPQ3VLAy.js} +1 -1
- package/.output/public/_nuxt/BPcwi1q2.js +1 -0
- package/.output/public/_nuxt/{BBGuKPBd.js → BR5kRUq4.js} +1 -1
- package/.output/public/_nuxt/BTifaqeh.js +1 -0
- package/.output/public/_nuxt/BUNf2Yb8.js +1 -0
- package/.output/public/_nuxt/BUw7H-hv.js +1 -0
- package/.output/public/_nuxt/{DRprw4p4.js → BVQ-GDCI.js} +1 -1
- package/.output/public/_nuxt/{BbQj0Z2C.js → BYV0-3_D.js} +1 -1
- package/.output/public/_nuxt/BZvkOJ9d.js +1 -0
- package/.output/public/_nuxt/Ba13S78F.js +1 -0
- package/.output/public/_nuxt/BcVCzyr7.js +1 -0
- package/.output/public/_nuxt/BhRPY-oY.js +1 -0
- package/.output/public/_nuxt/{uMbE6_td.js → Bhrxn6JZ.js} +1 -1
- package/.output/public/_nuxt/BkNNRtnm.js +1 -0
- package/.output/public/_nuxt/BlfjmxyP.js +1 -0
- package/.output/public/_nuxt/Bmn6On1c.js +1 -0
- package/.output/public/_nuxt/Bo8jzlL1.js +18 -0
- package/.output/public/_nuxt/BpkvlDNi.js +1 -0
- package/.output/public/_nuxt/{BIAuTxu3.js → Br6cN0cg.js} +1 -1
- package/.output/public/_nuxt/{CUEJCptM.js → BrzmwbiE.js} +1 -1
- package/.output/public/_nuxt/{D32k8WzR.js → BtvRca6l.js} +1 -1
- package/.output/public/_nuxt/BuJgCY_C.js +1 -0
- package/.output/public/_nuxt/Bv_4Rxtq.js +1 -0
- package/.output/public/_nuxt/BvzEVeQv.js +1 -0
- package/.output/public/_nuxt/BxAss8Tj.js +1 -0
- package/.output/public/_nuxt/BxaP9l2T.js +1 -0
- package/.output/public/_nuxt/BxgE0vQu.js +1 -0
- package/.output/public/_nuxt/ByBNG4eo.js +1 -0
- package/.output/public/_nuxt/{COI20M4I.js → BzTr9Aqm.js} +1 -1
- package/.output/public/_nuxt/{CXu1NL6O.js → C-HG3fhB.js} +1 -1
- package/.output/public/_nuxt/C-sUppwS.js +1 -0
- package/.output/public/_nuxt/C1FLL1Qz.js +1 -0
- package/.output/public/_nuxt/C3Wv6jpd.js +1 -0
- package/.output/public/_nuxt/C47S-Tmv.js +1 -0
- package/.output/public/_nuxt/C4EeE6gA.js +1 -0
- package/.output/public/_nuxt/{C-Jbm3Hp.js → C4gqWexZ.js} +1 -1
- package/.output/public/_nuxt/{DTMYz4Jt.js → C5YyOfLZ.js} +1 -1
- package/.output/public/_nuxt/C7zT0LnQ.js +1 -0
- package/.output/public/_nuxt/C8lm7lgC.js +1 -0
- package/.output/public/_nuxt/C9dUb6Cb.js +1 -0
- package/.output/public/_nuxt/{DS1LvVMU.js → C9oPPf7i.js} +1 -1
- package/.output/public/_nuxt/{D1uDOp7C.js → CFHQjOhq.js} +1 -1
- package/.output/public/_nuxt/{Dtc2v4kS.js → CGscLIrv.js} +1 -1
- package/.output/public/_nuxt/{DKzvysjW.js → CH1njM8p.js} +1 -1
- package/.output/public/_nuxt/CJWmG4YP.js +12 -0
- package/.output/public/_nuxt/CLZrNe3w.js +1 -0
- package/.output/public/_nuxt/CMTm3GFP.js +1 -0
- package/.output/public/_nuxt/CMjwMIkn.js +1 -0
- package/.output/public/_nuxt/COcwbKMJ.js +1 -0
- package/.output/public/_nuxt/CPZSvMBB.js +1 -0
- package/.output/public/_nuxt/CPpO8vcZ.js +1 -0
- package/.output/public/_nuxt/CQ8jqdy-.js +1 -0
- package/.output/public/_nuxt/CV5MeYf9.js +1 -0
- package/.output/public/_nuxt/{CcyOm34o.js → CVdnzihN.js} +1 -1
- package/.output/public/_nuxt/CW8IKDeL.js +1 -0
- package/.output/public/_nuxt/{pkIJ47B4.js → CXZktZb0.js} +1 -1
- package/.output/public/_nuxt/CYsAdtH9.js +1 -0
- package/.output/public/_nuxt/{BUyGWigt.js → CZhp0h8q.js} +1 -1
- package/.output/public/_nuxt/CaJ-zn_Z.js +2 -0
- package/.output/public/_nuxt/CcOKGYBt.js +1 -0
- package/.output/public/_nuxt/{oTG82Wo1.js → CenWIFCC.js} +1 -1
- package/.output/public/_nuxt/ChaZkl1J.js +1 -0
- package/.output/public/_nuxt/CjoLj4QM.js +1 -0
- package/.output/public/_nuxt/{BtsDLbAf.js → Cl0AqbOI.js} +1 -1
- package/.output/public/_nuxt/Cm-2nZ05.js +1 -0
- package/.output/public/_nuxt/{DUSGQflk.js → Cm3UrAx6.js} +1 -1
- package/.output/public/_nuxt/{BGHREFWD.js → CmIQRyeF.js} +1 -1
- package/.output/public/_nuxt/{f7oK2omx.js → Cn7AkR1O.js} +1 -1
- package/.output/public/_nuxt/{JhPuU2gP.js → CnnebwVN.js} +1 -1
- package/.output/public/_nuxt/CnsnAmq5.js +1 -0
- package/.output/public/_nuxt/CoDkCxhg.js +1 -0
- package/.output/public/_nuxt/{B-hkwWGT.js → CpOuai2O.js} +1 -1
- package/.output/public/_nuxt/CudFwYib.js +1 -0
- package/.output/public/_nuxt/{BDzgwa52.js → CufHLc7y.js} +1 -1
- package/.output/public/_nuxt/CwoSXNpI.js +1 -0
- package/.output/public/_nuxt/CxEW7TG8.js +1 -0
- package/.output/public/_nuxt/CxLEBnE3.js +1 -0
- package/.output/public/_nuxt/{DNrj_gVY.js → CxbxFI8M.js} +1 -1
- package/.output/public/_nuxt/CzSiA7V6.js +1 -0
- package/.output/public/_nuxt/D-wGZMZP.js +1 -0
- package/.output/public/_nuxt/D27ZAKIj.js +1 -0
- package/.output/public/_nuxt/D2aToa54.js +1 -0
- package/.output/public/_nuxt/D2obegTF.js +1 -0
- package/.output/public/_nuxt/{NleAzG8P.js → D4_iv3hh.js} +1 -1
- package/.output/public/_nuxt/D53aC0YG.js +1 -0
- package/.output/public/_nuxt/D5z-4QVk.js +1 -0
- package/.output/public/_nuxt/D6fh7rEe.js +2 -0
- package/.output/public/_nuxt/D87Tk5Gz.js +1 -0
- package/.output/public/_nuxt/D8_7TLub.js +1 -0
- package/.output/public/_nuxt/D91rOou-.js +13 -0
- package/.output/public/_nuxt/DCBCRx0O.js +1 -0
- package/.output/public/_nuxt/DCR009rv.js +1 -0
- package/.output/public/_nuxt/DCinzvm1.js +1 -0
- package/.output/public/_nuxt/DEthMvLe.js +1 -0
- package/.output/public/_nuxt/DFWUc33u.js +1 -0
- package/.output/public/_nuxt/{5bLW0GMw.js → DGP4VlC8.js} +1 -1
- package/.output/public/_nuxt/{CnK8MTSM.js → DHQR4-dF.js} +1 -1
- package/.output/public/_nuxt/DJN0y8jO.js +1 -0
- package/.output/public/_nuxt/DJjDtW9f.js +1 -0
- package/.output/public/_nuxt/DKhcu7kD.js +1 -0
- package/.output/public/_nuxt/DMwsHuHA.js +1 -0
- package/.output/public/_nuxt/{GAB5JH5K.js → DNqd6Nek.js} +1 -1
- package/.output/public/_nuxt/DOMRsNpU.js +1 -0
- package/.output/public/_nuxt/DOPqH6_T.js +1 -0
- package/.output/public/_nuxt/DQHHT9y-.js +1 -0
- package/.output/public/_nuxt/{B5ZR69Tn.js → DQwYQDb2.js} +1 -1
- package/.output/public/_nuxt/DQyhUUbL.js +1 -0
- package/.output/public/_nuxt/DRfxs3PN.js +1 -0
- package/.output/public/_nuxt/{DPcUKYIF.js → DRw_LuNl.js} +1 -1
- package/.output/public/_nuxt/DV7GczEv.js +1 -0
- package/.output/public/_nuxt/DWQRqdcR.js +1 -0
- package/.output/public/_nuxt/DWa2aw6r.js +1 -0
- package/.output/public/_nuxt/DYoxhk2S.js +1 -0
- package/.output/public/_nuxt/DZf3V79B.js +1 -0
- package/.output/public/_nuxt/{BPzJO5Oe.js → DZu-aV2c.js} +1 -1
- package/.output/public/_nuxt/Dbwml2gB.js +1 -0
- package/.output/public/_nuxt/DfvKjH24.js +1 -0
- package/.output/public/_nuxt/{Cdx7mHEO.js → DhmSosst.js} +1 -1
- package/.output/public/_nuxt/DiTMzCP2.js +1 -0
- package/.output/public/_nuxt/{CA7CTBwS.js → Dph4kLrZ.js} +1 -1
- package/.output/public/_nuxt/DqQDbK_p.js +1 -0
- package/.output/public/_nuxt/DsS90Fp6.js +1 -0
- package/.output/public/_nuxt/Dspwwk_N.js +1 -0
- package/.output/public/_nuxt/DsumFeuD.js +1 -0
- package/.output/public/_nuxt/DxERyYWQ.js +1 -0
- package/.output/public/_nuxt/{D7ScPSBf.js → DxNHbxmM.js} +1 -1
- package/.output/public/_nuxt/{CLvts2aQ.js → DxSwrfjg.js} +1 -1
- package/.output/public/_nuxt/{DcmvOc98.js → DyMmfYiE.js} +1 -1
- package/.output/public/_nuxt/DzWdbJvx.js +1 -0
- package/.output/public/_nuxt/{COEtLSDF.js → Dzze3sRP.js} +1 -1
- package/.output/public/_nuxt/G13IRnB2.js +1 -0
- package/.output/public/_nuxt/GDxZ_Nvm.js +14 -0
- package/.output/public/_nuxt/GgtqCdye.js +1 -0
- package/.output/public/_nuxt/{DkhsQLT2.js → GsRaNv29.js} +1 -1
- package/.output/public/_nuxt/IF9eRakj.js +1 -0
- package/.output/public/_nuxt/RCBWmVHz.js +1 -0
- package/.output/public/_nuxt/{Cb0HU5_O.js → RNghxpo_.js} +1 -1
- package/.output/public/_nuxt/{SecretValueField.DcyO8gGc.css → SecretValueField.Dy80RlGP.css} +1 -1
- package/.output/public/_nuxt/{B8ROHVmM.js → TsXTqZ29.js} +1 -1
- package/.output/public/_nuxt/VCDPK7BO.js +1 -0
- package/.output/public/_nuxt/{CU27uY9n.js → W9tJ9s81.js} +1 -1
- package/.output/public/_nuxt/{CmALWFRB.js → XEA9GSJd.js} +16 -468
- package/.output/public/_nuxt/{DeWFVDHI.js → YqXBG_HV.js} +1 -1
- package/.output/public/_nuxt/ZbicA1ry.js +1 -0
- package/.output/public/_nuxt/_snapshotId_.ChuSNeNY.css +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/a1fec520-0c95-4ae0-af5e-964780fad341.json +1 -0
- package/.output/public/_nuxt/d-NZQb9b.js +1 -0
- package/.output/public/_nuxt/edge-router-BdPMCV6u.js +1 -0
- package/.output/public/_nuxt/{entry.dxugZJXl.css → entry.Bc0aTA0K.css} +1 -1
- package/.output/public/_nuxt/error-404.X7H_YhdC.css +1 -0
- package/.output/public/_nuxt/error-500.BOQe1fsk.css +1 -0
- package/.output/public/_nuxt/f3TOpYbw.js +1 -0
- package/.output/public/_nuxt/{DrZfEa88.js → fKv21gyL.js} +1 -1
- package/.output/public/_nuxt/graph-layout-B7wl80r3.js +1 -0
- package/.output/public/_nuxt/graph-resolver-DKNtntr2.js +180 -0
- package/.output/public/_nuxt/{CGqH5EJj.js → hJgmCMqR.js} +1 -1
- package/.output/public/_nuxt/{BoKiGodi.js → k_qm7-4y.js} +1 -1
- package/.output/public/_nuxt/{IvJ92aGK.js → m17aaUwq.js} +1 -1
- package/.output/public/_nuxt/mUFnM-_q.js +1 -0
- package/.output/public/_nuxt/mWjccvbQ.js +1 -0
- package/.output/public/_nuxt/{BXY8tDGw.js → mjskCLCv.js} +1 -1
- package/.output/public/_nuxt/n0RAZLbO.js +1 -0
- package/.output/public/_nuxt/n2N0HUVH.js +1 -0
- package/.output/public/_nuxt/o_m1mZtJ.js +6 -0
- package/.output/public/_nuxt/pxXmJ8QX.js +1 -0
- package/.output/public/_nuxt/{BHrmToEH.js → qdsjHGoJ.js} +1 -1
- package/.output/public/_nuxt/{BbcW6ACK.js → rGO070M0.js} +1 -1
- package/.output/public/_nuxt/rcFevLEP.js +2 -0
- package/.output/public/_nuxt/rgN_MdZl.js +1 -0
- package/.output/public/_nuxt/tsyQDnRt.js +5 -0
- package/.output/public/_nuxt/u5AG7uiY.js +1 -0
- package/.output/public/_nuxt/uYugtg8r.js +1 -0
- package/.output/public/_nuxt/vuetify.BzdWZaIq.css +1 -0
- package/.output/public/_nuxt/{BMMyXqK5.js → wDzz0qaB.js} +1 -1
- package/.output/public/_nuxt/xA6NntuA.js +1 -0
- package/.output/public/_nuxt/xdsXwj_J.js +1 -0
- package/.output/public/_nuxt/xp27HhqZ.js +1 -0
- package/.output/public/_nuxt/xrNU8mHG.js +3 -0
- package/.output/public/_nuxt/yaml.worker-C1Cl1y5J.js +399 -0
- package/.output/public/_nuxt/ziXKbM2N.js +1 -0
- package/.output/public/libavoid.wasm +0 -0
- package/.output/server/index.mjs +2213 -6830
- package/.output/server/index.mjs.map +1 -1
- package/.output/server/node_modules/@babel/parser/lib/index.js +427 -440
- package/.output/server/node_modules/@babel/parser/package.json +6 -6
- package/.output/server/node_modules/@trpc/server/dist/adapters/fetch/index.mjs +4 -4
- package/.output/server/node_modules/@trpc/server/dist/adapters/ws.mjs +10 -10
- package/.output/server/node_modules/@trpc/server/dist/{utils-CLZnJdb_.mjs → codes-DagpWZLc.mjs} +66 -66
- package/.output/server/node_modules/@trpc/server/dist/{getErrorShape-BH60iMC2.mjs → getErrorShape-vC8mUXJD.mjs} +3 -3
- package/.output/server/node_modules/@trpc/server/dist/index.mjs +4 -4
- package/.output/server/node_modules/@trpc/server/dist/{initTRPC-CB9uBez5.mjs → initTRPC-RoZMIBeA.mjs} +4 -4
- package/.output/server/node_modules/@trpc/server/dist/{node-http-8dtdvMrE.mjs → node-http-DtA2iLK9.mjs} +7 -5
- package/.output/server/node_modules/@trpc/server/dist/{parseTRPCMessage-BlZeZ60t.mjs → parseTRPCMessage-CTow-umk.mjs} +2 -2
- package/.output/server/node_modules/@trpc/server/dist/{resolveResponse-DngSgha6.mjs → resolveResponse-BVDlNZwN.mjs} +45 -48
- package/.output/server/node_modules/@trpc/server/dist/{tracked-Blz8XOf1.mjs → tracked-Bjtgv3wJ.mjs} +11 -9
- package/.output/server/node_modules/@trpc/server/dist/{unstable-core-do-not-import-D89CaGtL.mjs → unstable-core-do-not-import-9NNw8uQM.mjs} +5 -3
- package/.output/server/node_modules/@trpc/server/dist/{ws-BR20IWki.mjs → ws-CJgZE7Hg.mjs} +60 -20
- package/.output/server/node_modules/@trpc/server/package.json +6 -6
- package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +128 -106
- package/.output/server/node_modules/@vue/compiler-core/package.json +5 -5
- package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +54 -54
- package/.output/server/node_modules/@vue/compiler-dom/package.json +3 -3
- package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +35 -33
- package/.output/server/node_modules/@vue/compiler-ssr/package.json +3 -3
- package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +105 -42
- package/.output/server/node_modules/@vue/reactivity/package.json +2 -2
- package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +2129 -2063
- package/.output/server/node_modules/@vue/runtime-core/package.json +3 -3
- package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +78 -31
- package/.output/server/node_modules/@vue/runtime-dom/package.json +5 -5
- package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +6 -6
- package/.output/server/node_modules/@vue/server-renderer/package.json +4 -4
- package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +1 -1
- package/.output/server/node_modules/@vue/shared/package.json +1 -1
- package/.output/server/node_modules/copy-anything/dist/index.js +47 -31
- package/.output/server/node_modules/copy-anything/package.json +19 -72
- package/.output/server/node_modules/devalue/index.js +1 -0
- package/.output/server/node_modules/devalue/package.json +2 -2
- package/.output/server/node_modules/devalue/src/constants.js +1 -0
- package/.output/server/node_modules/devalue/src/parse.js +55 -4
- package/.output/server/node_modules/devalue/src/stringify.js +101 -12
- package/.output/server/node_modules/devalue/src/uneval.js +100 -13
- package/.output/server/node_modules/devalue/src/utils.js +35 -1
- package/.output/server/node_modules/entities/{lib/decode_codepoint.js → dist/commonjs/decode-codepoint.js} +16 -15
- package/.output/server/node_modules/entities/{lib → dist/commonjs}/decode.js +200 -168
- package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
- package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
- package/.output/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
- package/.output/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
- package/.output/server/node_modules/entities/dist/commonjs/package.json +3 -0
- package/.output/server/node_modules/entities/package.json +99 -69
- package/.output/server/node_modules/hookable/dist/index.mjs +244 -268
- package/.output/server/node_modules/hookable/package.json +29 -26
- package/.output/server/node_modules/is-what/dist/getType.js +4 -0
- package/.output/server/node_modules/is-what/dist/index.js +43 -171
- package/.output/server/node_modules/is-what/dist/isAnyObject.js +8 -0
- package/.output/server/node_modules/is-what/dist/isArray.js +5 -0
- package/.output/server/node_modules/is-what/dist/isBigInt.js +5 -0
- package/.output/server/node_modules/is-what/dist/isBlob.js +5 -0
- package/.output/server/node_modules/is-what/dist/isBoolean.js +5 -0
- package/.output/server/node_modules/is-what/dist/isDate.js +5 -0
- package/.output/server/node_modules/is-what/dist/isEmptyArray.js +5 -0
- package/.output/server/node_modules/is-what/dist/isEmptyObject.js +8 -0
- package/.output/server/node_modules/is-what/dist/isEmptyString.js +4 -0
- package/.output/server/node_modules/is-what/dist/isError.js +5 -0
- package/.output/server/node_modules/is-what/dist/isFile.js +5 -0
- package/.output/server/node_modules/is-what/dist/isFullArray.js +5 -0
- package/.output/server/node_modules/is-what/dist/isFullObject.js +8 -0
- package/.output/server/node_modules/is-what/dist/isFullString.js +5 -0
- package/.output/server/node_modules/is-what/dist/isFunction.js +4 -0
- package/.output/server/node_modules/is-what/dist/isHexDecimal.js +12 -0
- package/.output/server/node_modules/is-what/dist/isInstanceOf.js +19 -0
- package/.output/server/node_modules/is-what/dist/isInteger.js +5 -0
- package/.output/server/node_modules/is-what/dist/isIterable.js +16 -0
- package/.output/server/node_modules/is-what/dist/isMap.js +5 -0
- package/.output/server/node_modules/is-what/dist/isNaNValue.js +5 -0
- package/.output/server/node_modules/is-what/dist/isNegativeInteger.js +5 -0
- package/.output/server/node_modules/is-what/dist/isNegativeNumber.js +5 -0
- package/.output/server/node_modules/is-what/dist/isNull.js +5 -0
- package/.output/server/node_modules/is-what/dist/isNullOrUndefined.js +5 -0
- package/.output/server/node_modules/is-what/dist/isNumber.js +9 -0
- package/.output/server/node_modules/is-what/dist/isObject.js +8 -0
- package/.output/server/node_modules/is-what/dist/isObjectLike.js +11 -0
- package/.output/server/node_modules/is-what/dist/isOneOf.js +15 -0
- package/.output/server/node_modules/is-what/dist/isPlainObject.js +11 -0
- package/.output/server/node_modules/is-what/dist/isPositiveInteger.js +5 -0
- package/.output/server/node_modules/is-what/dist/isPositiveNumber.js +5 -0
- package/.output/server/node_modules/is-what/dist/isPrimitive.js +21 -0
- package/.output/server/node_modules/is-what/dist/isPromise.js +5 -0
- package/.output/server/node_modules/is-what/dist/isRegExp.js +5 -0
- package/.output/server/node_modules/is-what/dist/isSet.js +5 -0
- package/.output/server/node_modules/is-what/dist/isString.js +5 -0
- package/.output/server/node_modules/is-what/dist/isSymbol.js +5 -0
- package/.output/server/node_modules/is-what/dist/isType.js +20 -0
- package/.output/server/node_modules/is-what/dist/isUndefined.js +5 -0
- package/.output/server/node_modules/is-what/dist/isWeakMap.js +5 -0
- package/.output/server/node_modules/is-what/dist/isWeakSet.js +5 -0
- package/.output/server/node_modules/is-what/package.json +23 -88
- package/.output/server/node_modules/superjson/dist/index.js +9 -6
- package/.output/server/node_modules/superjson/dist/pathstringifier.js +13 -2
- package/.output/server/node_modules/superjson/dist/plainer.js +23 -11
- package/.output/server/node_modules/superjson/dist/transformer.js +4 -1
- package/.output/server/node_modules/superjson/package.json +5 -21
- package/.output/server/node_modules/ufo/dist/index.mjs +16 -9
- package/.output/server/node_modules/ufo/package.json +15 -14
- package/.output/server/node_modules/unhead/dist/plugins.mjs +2 -2
- package/.output/server/node_modules/unhead/dist/server.mjs +4 -6
- package/.output/server/node_modules/unhead/dist/shared/{unhead.DH45uomy.mjs → unhead.BFfcxOoW.mjs} +3 -3
- package/.output/server/node_modules/unhead/dist/shared/{unhead.DZbvapt-.mjs → unhead.CbpEuj3y.mjs} +3 -2
- package/.output/server/node_modules/unhead/dist/shared/{unhead.Djo8ep_Y.mjs → unhead.ckV6dpEQ.mjs} +1 -1
- package/.output/server/node_modules/unhead/dist/shared/{unhead.BpRRHAhY.mjs → unhead.eK9_7LaY.mjs} +16 -12
- package/.output/server/node_modules/unhead/dist/utils.mjs +2 -2
- package/.output/server/node_modules/unhead/package.json +2 -2
- package/.output/server/node_modules/vue/dist/vue.cjs.js +1 -1
- package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +1 -1
- package/.output/server/node_modules/vue/package.json +6 -6
- package/.output/server/node_modules/ws/lib/constants.js +1 -0
- package/.output/server/node_modules/ws/lib/websocket-server.js +5 -1
- package/.output/server/node_modules/ws/lib/websocket.js +13 -8
- package/.output/server/node_modules/ws/package.json +1 -1
- package/.output/server/node_modules/zod/package.json +1 -1
- package/.output/server/node_modules/zod/v4/classic/checks.js +1 -1
- package/.output/server/node_modules/zod/v4/classic/external.js +3 -1
- package/.output/server/node_modules/zod/v4/classic/from-json-schema.js +584 -0
- package/.output/server/node_modules/zod/v4/classic/schemas.js +121 -4
- package/.output/server/node_modules/zod/v4/core/api.js +157 -0
- package/.output/server/node_modules/zod/v4/core/checks.js +8 -2
- package/.output/server/node_modules/zod/v4/core/core.js +20 -11
- package/.output/server/node_modules/zod/v4/core/index.js +2 -0
- package/.output/server/node_modules/zod/v4/core/json-schema-generator.js +95 -0
- package/.output/server/node_modules/zod/v4/core/json-schema-processors.js +605 -0
- package/.output/server/node_modules/zod/v4/core/regexes.js +8 -2
- package/.output/server/node_modules/zod/v4/core/registries.js +3 -4
- package/.output/server/node_modules/zod/v4/core/schemas.js +204 -66
- package/.output/server/node_modules/zod/v4/core/to-json-schema.js +391 -869
- package/.output/server/node_modules/zod/v4/core/util.js +58 -8
- package/.output/server/node_modules/zod/v4/core/versions.js +2 -2
- package/.output/server/node_modules/zod/v4/locales/ar.js +14 -24
- package/.output/server/node_modules/zod/v4/locales/az.js +14 -24
- package/.output/server/node_modules/zod/v4/locales/be.js +16 -24
- package/.output/server/node_modules/zod/v4/locales/bg.js +16 -24
- package/.output/server/node_modules/zod/v4/locales/ca.js +14 -25
- package/.output/server/node_modules/zod/v4/locales/cs.js +18 -42
- package/.output/server/node_modules/zod/v4/locales/da.js +23 -39
- package/.output/server/node_modules/zod/v4/locales/de.js +16 -24
- package/.output/server/node_modules/zod/v4/locales/en.js +16 -24
- package/.output/server/node_modules/zod/v4/locales/eo.js +17 -24
- package/.output/server/node_modules/zod/v4/locales/es.js +42 -59
- package/.output/server/node_modules/zod/v4/locales/fa.js +16 -24
- package/.output/server/node_modules/zod/v4/locales/fi.js +14 -24
- package/.output/server/node_modules/zod/v4/locales/fr-CA.js +14 -24
- package/.output/server/node_modules/zod/v4/locales/fr.js +16 -24
- package/.output/server/node_modules/zod/v4/locales/he.js +175 -78
- package/.output/server/node_modules/zod/v4/locales/hu.js +16 -25
- package/.output/server/node_modules/zod/v4/locales/hy.js +147 -0
- package/.output/server/node_modules/zod/v4/locales/id.js +14 -24
- package/.output/server/node_modules/zod/v4/locales/index.js +2 -0
- package/.output/server/node_modules/zod/v4/locales/is.js +16 -24
- package/.output/server/node_modules/zod/v4/locales/it.js +16 -25
- package/.output/server/node_modules/zod/v4/locales/ja.js +16 -24
- package/.output/server/node_modules/zod/v4/locales/ka.js +19 -32
- package/.output/server/node_modules/zod/v4/locales/km.js +17 -24
- package/.output/server/node_modules/zod/v4/locales/ko.js +14 -24
- package/.output/server/node_modules/zod/v4/locales/lt.js +27 -54
- package/.output/server/node_modules/zod/v4/locales/mk.js +16 -25
- package/.output/server/node_modules/zod/v4/locales/ms.js +15 -24
- package/.output/server/node_modules/zod/v4/locales/nl.js +25 -32
- package/.output/server/node_modules/zod/v4/locales/no.js +16 -24
- package/.output/server/node_modules/zod/v4/locales/ota.js +17 -25
- package/.output/server/node_modules/zod/v4/locales/pl.js +16 -24
- package/.output/server/node_modules/zod/v4/locales/ps.js +16 -24
- package/.output/server/node_modules/zod/v4/locales/pt.js +16 -24
- package/.output/server/node_modules/zod/v4/locales/ru.js +16 -24
- package/.output/server/node_modules/zod/v4/locales/sl.js +16 -24
- package/.output/server/node_modules/zod/v4/locales/sv.js +16 -24
- package/.output/server/node_modules/zod/v4/locales/ta.js +17 -24
- package/.output/server/node_modules/zod/v4/locales/th.js +17 -24
- package/.output/server/node_modules/zod/v4/locales/tr.js +14 -24
- package/.output/server/node_modules/zod/v4/locales/uk.js +16 -25
- package/.output/server/node_modules/zod/v4/locales/ur.js +17 -24
- package/.output/server/node_modules/zod/v4/locales/uz.js +109 -0
- package/.output/server/node_modules/zod/v4/locales/vi.js +16 -24
- package/.output/server/node_modules/zod/v4/locales/yo.js +16 -24
- package/.output/server/node_modules/zod/v4/locales/zh-CN.js +17 -24
- package/.output/server/node_modules/zod/v4/locales/zh-TW.js +14 -24
- package/.output/server/package.json +22 -22
- package/package.json +6 -6
- package/.output/public/_nuxt/-oaD50UK.js +0 -1
- package/.output/public/_nuxt/0ekw3e2V.js +0 -1
- package/.output/public/_nuxt/1f5tAgHw.js +0 -1
- package/.output/public/_nuxt/5ggY4uig.js +0 -1
- package/.output/public/_nuxt/6nHXG8SA.js +0 -1
- package/.output/public/_nuxt/9hmcqHPO.js +0 -1
- package/.output/public/_nuxt/BBxmzUt6.js +0 -1
- package/.output/public/_nuxt/BE2KfCdU.js +0 -1
- package/.output/public/_nuxt/BFNM2w_f.js +0 -1
- package/.output/public/_nuxt/BGLu70Yq.js +0 -1
- package/.output/public/_nuxt/BIuj43Wh.js +0 -1
- package/.output/public/_nuxt/BLsOQd1H.js +0 -280
- package/.output/public/_nuxt/BNGfscqk.js +0 -1
- package/.output/public/_nuxt/BQvybpQq.js +0 -1
- package/.output/public/_nuxt/BU7Cl-8B.js +0 -1
- package/.output/public/_nuxt/BUXOnL59.js +0 -1
- package/.output/public/_nuxt/Bbwybh3N.js +0 -2
- package/.output/public/_nuxt/BczD6j-v.js +0 -1
- package/.output/public/_nuxt/BepWV7mh.js +0 -1
- package/.output/public/_nuxt/Bh0qehhp.js +0 -1
- package/.output/public/_nuxt/Bl2oy6fF.js +0 -1
- package/.output/public/_nuxt/BmDdxTjo.js +0 -1
- package/.output/public/_nuxt/BqeRdtD4.js +0 -2
- package/.output/public/_nuxt/BvAqAH-y.js +0 -1
- package/.output/public/_nuxt/BxZD33h1.js +0 -1
- package/.output/public/_nuxt/C4zpeTvm.js +0 -1
- package/.output/public/_nuxt/C7Pw0Ztw.js +0 -1
- package/.output/public/_nuxt/C8-UwF3o.js +0 -1
- package/.output/public/_nuxt/CCd08HS_.js +0 -1
- package/.output/public/_nuxt/CEYFgC8B.js +0 -1
- package/.output/public/_nuxt/CHadp7IV.js +0 -1
- package/.output/public/_nuxt/CHh-QcGE.js +0 -1
- package/.output/public/_nuxt/CIUZ1G5V.js +0 -1
- package/.output/public/_nuxt/CJ6lOLXp.js +0 -1
- package/.output/public/_nuxt/CN9dMhDM.js +0 -1
- package/.output/public/_nuxt/CQ4fj8p0.js +0 -1
- package/.output/public/_nuxt/CTWiQX6C.js +0 -1
- package/.output/public/_nuxt/CXxzV4dz.js +0 -1
- package/.output/public/_nuxt/CZlF05X6.js +0 -1
- package/.output/public/_nuxt/CatV_12G.js +0 -1
- package/.output/public/_nuxt/CeMkeBDb.js +0 -1
- package/.output/public/_nuxt/CelvVQyk.js +0 -1
- package/.output/public/_nuxt/CfV455SO.js +0 -1
- package/.output/public/_nuxt/CfeIJUat.js +0 -1
- package/.output/public/_nuxt/CfqrF6sE.js +0 -1
- package/.output/public/_nuxt/Cfs9EX91.js +0 -1
- package/.output/public/_nuxt/ChH_ziBE.js +0 -1
- package/.output/public/_nuxt/ChM1GEGa.js +0 -1
- package/.output/public/_nuxt/Cu8OsqJL.js +0 -1
- package/.output/public/_nuxt/CusJppg0.js +0 -1
- package/.output/public/_nuxt/Cv9koXgw.js +0 -1
- package/.output/public/_nuxt/CvELRi2k.js +0 -5
- package/.output/public/_nuxt/Cw6nGM9K.js +0 -1
- package/.output/public/_nuxt/CwUT5n6w.js +0 -1
- package/.output/public/_nuxt/D-AHKB2i.js +0 -6
- package/.output/public/_nuxt/D-kcn2fr.js +0 -1
- package/.output/public/_nuxt/D08WgyRC.js +0 -1
- package/.output/public/_nuxt/D1Jbgd7O.js +0 -13
- package/.output/public/_nuxt/D1ibY74j.js +0 -1
- package/.output/public/_nuxt/D22FLkUw.js +0 -1
- package/.output/public/_nuxt/D2CYqzqI.js +0 -1
- package/.output/public/_nuxt/D34EmFco.js +0 -1
- package/.output/public/_nuxt/D4OhWExI.js +0 -1
- package/.output/public/_nuxt/DDHikT5j.js +0 -1
- package/.output/public/_nuxt/DDTT3lYc.js +0 -1
- package/.output/public/_nuxt/DHLkt8Yr.js +0 -1
- package/.output/public/_nuxt/DHuTDtaT.js +0 -12
- package/.output/public/_nuxt/DKYwYmdq.js +0 -1
- package/.output/public/_nuxt/DMDPKkZ0.js +0 -1
- package/.output/public/_nuxt/DNEoBllO.js +0 -1
- package/.output/public/_nuxt/DRzH1pOL.js +0 -1
- package/.output/public/_nuxt/DSUF3NDE.js +0 -1
- package/.output/public/_nuxt/DTAwr92a.js +0 -1
- package/.output/public/_nuxt/DWmtspXK.js +0 -1
- package/.output/public/_nuxt/DXh9HyqW.js +0 -1
- package/.output/public/_nuxt/DXtl0MQI.js +0 -1
- package/.output/public/_nuxt/D_zCY0Xl.js +0 -1
- package/.output/public/_nuxt/DaZJpzOl.js +0 -1
- package/.output/public/_nuxt/Df68jz8_.js +0 -1
- package/.output/public/_nuxt/DhQfdAdO.js +0 -1
- package/.output/public/_nuxt/DiinP2Uv.js +0 -1
- package/.output/public/_nuxt/DljmTZ5-.js +0 -1
- package/.output/public/_nuxt/Dm4QKadl.js +0 -26
- package/.output/public/_nuxt/DmCK90gL.js +0 -1
- package/.output/public/_nuxt/Dn2_MT6a.js +0 -1
- package/.output/public/_nuxt/Don94nLk.js +0 -1
- package/.output/public/_nuxt/Dr8Zlu6v.js +0 -1
- package/.output/public/_nuxt/Drp5UXmf.js +0 -1
- package/.output/public/_nuxt/DtFoCuZo.js +0 -1
- package/.output/public/_nuxt/DxuitVdg.js +0 -2
- package/.output/public/_nuxt/DyJlTyXw.js +0 -1
- package/.output/public/_nuxt/Jep7L2Wt.js +0 -1
- package/.output/public/_nuxt/LUl67wzp.js +0 -1
- package/.output/public/_nuxt/M2rHlmBj.js +0 -1
- package/.output/public/_nuxt/N3RVRbLb.js +0 -1
- package/.output/public/_nuxt/NBseiqgx.js +0 -1
- package/.output/public/_nuxt/PoHY5YXO.js +0 -1
- package/.output/public/_nuxt/SdwduGaY.js +0 -1
- package/.output/public/_nuxt/SytC7lKg.js +0 -1
- package/.output/public/_nuxt/U3pqMjXV.js +0 -1
- package/.output/public/_nuxt/UInuXPgp.js +0 -1
- package/.output/public/_nuxt/YXI84j39.js +0 -2
- package/.output/public/_nuxt/ZZ6g6dXy.js +0 -2
- package/.output/public/_nuxt/builds/meta/033f259e-8ba9-4c82-8824-56febea80b7d.json +0 -1
- package/.output/public/_nuxt/dglhsJpM.js +0 -1
- package/.output/public/_nuxt/dwrHE3tM.js +0 -14
- package/.output/public/_nuxt/edge-router-yEORMNQw.js +0 -4
- package/.output/public/_nuxt/error-404.CttAF9VE.css +0 -1
- package/.output/public/_nuxt/error-500.DXXd6-x4.css +0 -1
- package/.output/public/_nuxt/ga9TZ2z5.js +0 -1
- package/.output/public/_nuxt/graph-layout-CFj469YF.js +0 -1
- package/.output/public/_nuxt/graph-resolver-eG1ZUsYn.js +0 -166
- package/.output/public/_nuxt/ov4D99rA.js +0 -1
- package/.output/public/_nuxt/qYU5Tabh.js +0 -1
- package/.output/public/_nuxt/qliWkHmV.js +0 -1
- package/.output/public/_nuxt/vuetify.BrkCt9t5.css +0 -5
- package/.output/public/_nuxt/yaml.worker-CQ6dFw39.js +0 -405
- package/.output/server/node_modules/entities/lib/generated/decode-data-html.js +0 -9
- package/.output/server/node_modules/entities/lib/generated/decode-data-xml.js +0 -9
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
import * as core from "../core/index.js";
|
|
2
2
|
import { util } from "../core/index.js";
|
|
3
|
+
import * as processors from "../core/json-schema-processors.js";
|
|
4
|
+
import { createStandardJSONSchemaMethod, createToJSONSchemaMethod } from "../core/to-json-schema.js";
|
|
3
5
|
import * as checks from "./checks.js";
|
|
4
6
|
import * as iso from "./iso.js";
|
|
5
7
|
import * as parse from "./parse.js";
|
|
6
8
|
export const ZodType = /*@__PURE__*/ core.$constructor("ZodType", (inst, def) => {
|
|
7
9
|
core.$ZodType.init(inst, def);
|
|
10
|
+
Object.assign(inst["~standard"], {
|
|
11
|
+
jsonSchema: {
|
|
12
|
+
input: createStandardJSONSchemaMethod(inst, "input"),
|
|
13
|
+
output: createStandardJSONSchemaMethod(inst, "output"),
|
|
14
|
+
},
|
|
15
|
+
});
|
|
16
|
+
inst.toJSONSchema = createToJSONSchemaMethod(inst, {});
|
|
8
17
|
inst.def = def;
|
|
9
18
|
inst.type = def.type;
|
|
10
19
|
Object.defineProperty(inst, "_def", { value: def });
|
|
@@ -15,8 +24,11 @@ export const ZodType = /*@__PURE__*/ core.$constructor("ZodType", (inst, def) =>
|
|
|
15
24
|
...(def.checks ?? []),
|
|
16
25
|
...checks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch),
|
|
17
26
|
],
|
|
18
|
-
})
|
|
27
|
+
}), {
|
|
28
|
+
parent: true,
|
|
29
|
+
});
|
|
19
30
|
};
|
|
31
|
+
inst.with = inst.check;
|
|
20
32
|
inst.clone = (def, params) => core.clone(inst, def, params);
|
|
21
33
|
inst.brand = () => inst;
|
|
22
34
|
inst.register = ((reg, meta) => {
|
|
@@ -44,6 +56,7 @@ export const ZodType = /*@__PURE__*/ core.$constructor("ZodType", (inst, def) =>
|
|
|
44
56
|
inst.overwrite = (fn) => inst.check(checks.overwrite(fn));
|
|
45
57
|
// wrappers
|
|
46
58
|
inst.optional = () => optional(inst);
|
|
59
|
+
inst.exactOptional = () => exactOptional(inst);
|
|
47
60
|
inst.nullable = () => nullable(inst);
|
|
48
61
|
inst.nullish = () => optional(nullable(inst));
|
|
49
62
|
inst.nonoptional = (params) => nonoptional(inst, params);
|
|
@@ -80,12 +93,14 @@ export const ZodType = /*@__PURE__*/ core.$constructor("ZodType", (inst, def) =>
|
|
|
80
93
|
// helpers
|
|
81
94
|
inst.isOptional = () => inst.safeParse(undefined).success;
|
|
82
95
|
inst.isNullable = () => inst.safeParse(null).success;
|
|
96
|
+
inst.apply = (fn) => fn(inst);
|
|
83
97
|
return inst;
|
|
84
98
|
});
|
|
85
99
|
/** @internal */
|
|
86
100
|
export const _ZodString = /*@__PURE__*/ core.$constructor("_ZodString", (inst, def) => {
|
|
87
101
|
core.$ZodString.init(inst, def);
|
|
88
102
|
ZodType.init(inst, def);
|
|
103
|
+
inst._zod.processJSONSchema = (ctx, json, params) => processors.stringProcessor(inst, ctx, json, params);
|
|
89
104
|
const bag = inst._zod.bag;
|
|
90
105
|
inst.format = bag.format ?? null;
|
|
91
106
|
inst.minLength = bag.minimum ?? null;
|
|
@@ -106,6 +121,7 @@ export const _ZodString = /*@__PURE__*/ core.$constructor("_ZodString", (inst, d
|
|
|
106
121
|
inst.normalize = (...args) => inst.check(checks.normalize(...args));
|
|
107
122
|
inst.toLowerCase = () => inst.check(checks.toLowerCase());
|
|
108
123
|
inst.toUpperCase = () => inst.check(checks.toUpperCase());
|
|
124
|
+
inst.slugify = () => inst.check(checks.slugify());
|
|
109
125
|
});
|
|
110
126
|
export const ZodString = /*@__PURE__*/ core.$constructor("ZodString", (inst, def) => {
|
|
111
127
|
core.$ZodString.init(inst, def);
|
|
@@ -260,6 +276,14 @@ export const ZodIPv4 = /*@__PURE__*/ core.$constructor("ZodIPv4", (inst, def) =>
|
|
|
260
276
|
export function ipv4(params) {
|
|
261
277
|
return core._ipv4(ZodIPv4, params);
|
|
262
278
|
}
|
|
279
|
+
export const ZodMAC = /*@__PURE__*/ core.$constructor("ZodMAC", (inst, def) => {
|
|
280
|
+
// ZodStringFormat.init(inst, def);
|
|
281
|
+
core.$ZodMAC.init(inst, def);
|
|
282
|
+
ZodStringFormat.init(inst, def);
|
|
283
|
+
});
|
|
284
|
+
export function mac(params) {
|
|
285
|
+
return core._mac(ZodMAC, params);
|
|
286
|
+
}
|
|
263
287
|
export const ZodIPv6 = /*@__PURE__*/ core.$constructor("ZodIPv6", (inst, def) => {
|
|
264
288
|
// ZodStringFormat.init(inst, def);
|
|
265
289
|
core.$ZodIPv6.init(inst, def);
|
|
@@ -339,6 +363,7 @@ export function hash(alg, params) {
|
|
|
339
363
|
export const ZodNumber = /*@__PURE__*/ core.$constructor("ZodNumber", (inst, def) => {
|
|
340
364
|
core.$ZodNumber.init(inst, def);
|
|
341
365
|
ZodType.init(inst, def);
|
|
366
|
+
inst._zod.processJSONSchema = (ctx, json, params) => processors.numberProcessor(inst, ctx, json, params);
|
|
342
367
|
inst.gt = (value, params) => inst.check(checks.gt(value, params));
|
|
343
368
|
inst.gte = (value, params) => inst.check(checks.gte(value, params));
|
|
344
369
|
inst.min = (value, params) => inst.check(checks.gte(value, params));
|
|
@@ -389,6 +414,7 @@ export function uint32(params) {
|
|
|
389
414
|
export const ZodBoolean = /*@__PURE__*/ core.$constructor("ZodBoolean", (inst, def) => {
|
|
390
415
|
core.$ZodBoolean.init(inst, def);
|
|
391
416
|
ZodType.init(inst, def);
|
|
417
|
+
inst._zod.processJSONSchema = (ctx, json, params) => processors.booleanProcessor(inst, ctx, json, params);
|
|
392
418
|
});
|
|
393
419
|
export function boolean(params) {
|
|
394
420
|
return core._boolean(ZodBoolean, params);
|
|
@@ -396,6 +422,7 @@ export function boolean(params) {
|
|
|
396
422
|
export const ZodBigInt = /*@__PURE__*/ core.$constructor("ZodBigInt", (inst, def) => {
|
|
397
423
|
core.$ZodBigInt.init(inst, def);
|
|
398
424
|
ZodType.init(inst, def);
|
|
425
|
+
inst._zod.processJSONSchema = (ctx, json, params) => processors.bigintProcessor(inst, ctx, json, params);
|
|
399
426
|
inst.gte = (value, params) => inst.check(checks.gte(value, params));
|
|
400
427
|
inst.min = (value, params) => inst.check(checks.gte(value, params));
|
|
401
428
|
inst.gt = (value, params) => inst.check(checks.gt(value, params));
|
|
@@ -432,6 +459,7 @@ export function uint64(params) {
|
|
|
432
459
|
export const ZodSymbol = /*@__PURE__*/ core.$constructor("ZodSymbol", (inst, def) => {
|
|
433
460
|
core.$ZodSymbol.init(inst, def);
|
|
434
461
|
ZodType.init(inst, def);
|
|
462
|
+
inst._zod.processJSONSchema = (ctx, json, params) => processors.symbolProcessor(inst, ctx, json, params);
|
|
435
463
|
});
|
|
436
464
|
export function symbol(params) {
|
|
437
465
|
return core._symbol(ZodSymbol, params);
|
|
@@ -439,6 +467,7 @@ export function symbol(params) {
|
|
|
439
467
|
export const ZodUndefined = /*@__PURE__*/ core.$constructor("ZodUndefined", (inst, def) => {
|
|
440
468
|
core.$ZodUndefined.init(inst, def);
|
|
441
469
|
ZodType.init(inst, def);
|
|
470
|
+
inst._zod.processJSONSchema = (ctx, json, params) => processors.undefinedProcessor(inst, ctx, json, params);
|
|
442
471
|
});
|
|
443
472
|
function _undefined(params) {
|
|
444
473
|
return core._undefined(ZodUndefined, params);
|
|
@@ -447,6 +476,7 @@ export { _undefined as undefined };
|
|
|
447
476
|
export const ZodNull = /*@__PURE__*/ core.$constructor("ZodNull", (inst, def) => {
|
|
448
477
|
core.$ZodNull.init(inst, def);
|
|
449
478
|
ZodType.init(inst, def);
|
|
479
|
+
inst._zod.processJSONSchema = (ctx, json, params) => processors.nullProcessor(inst, ctx, json, params);
|
|
450
480
|
});
|
|
451
481
|
function _null(params) {
|
|
452
482
|
return core._null(ZodNull, params);
|
|
@@ -455,6 +485,7 @@ export { _null as null };
|
|
|
455
485
|
export const ZodAny = /*@__PURE__*/ core.$constructor("ZodAny", (inst, def) => {
|
|
456
486
|
core.$ZodAny.init(inst, def);
|
|
457
487
|
ZodType.init(inst, def);
|
|
488
|
+
inst._zod.processJSONSchema = (ctx, json, params) => processors.anyProcessor(inst, ctx, json, params);
|
|
458
489
|
});
|
|
459
490
|
export function any() {
|
|
460
491
|
return core._any(ZodAny);
|
|
@@ -462,6 +493,7 @@ export function any() {
|
|
|
462
493
|
export const ZodUnknown = /*@__PURE__*/ core.$constructor("ZodUnknown", (inst, def) => {
|
|
463
494
|
core.$ZodUnknown.init(inst, def);
|
|
464
495
|
ZodType.init(inst, def);
|
|
496
|
+
inst._zod.processJSONSchema = (ctx, json, params) => processors.unknownProcessor(inst, ctx, json, params);
|
|
465
497
|
});
|
|
466
498
|
export function unknown() {
|
|
467
499
|
return core._unknown(ZodUnknown);
|
|
@@ -469,6 +501,7 @@ export function unknown() {
|
|
|
469
501
|
export const ZodNever = /*@__PURE__*/ core.$constructor("ZodNever", (inst, def) => {
|
|
470
502
|
core.$ZodNever.init(inst, def);
|
|
471
503
|
ZodType.init(inst, def);
|
|
504
|
+
inst._zod.processJSONSchema = (ctx, json, params) => processors.neverProcessor(inst, ctx, json, params);
|
|
472
505
|
});
|
|
473
506
|
export function never(params) {
|
|
474
507
|
return core._never(ZodNever, params);
|
|
@@ -476,6 +509,7 @@ export function never(params) {
|
|
|
476
509
|
export const ZodVoid = /*@__PURE__*/ core.$constructor("ZodVoid", (inst, def) => {
|
|
477
510
|
core.$ZodVoid.init(inst, def);
|
|
478
511
|
ZodType.init(inst, def);
|
|
512
|
+
inst._zod.processJSONSchema = (ctx, json, params) => processors.voidProcessor(inst, ctx, json, params);
|
|
479
513
|
});
|
|
480
514
|
function _void(params) {
|
|
481
515
|
return core._void(ZodVoid, params);
|
|
@@ -484,6 +518,7 @@ export { _void as void };
|
|
|
484
518
|
export const ZodDate = /*@__PURE__*/ core.$constructor("ZodDate", (inst, def) => {
|
|
485
519
|
core.$ZodDate.init(inst, def);
|
|
486
520
|
ZodType.init(inst, def);
|
|
521
|
+
inst._zod.processJSONSchema = (ctx, json, params) => processors.dateProcessor(inst, ctx, json, params);
|
|
487
522
|
inst.min = (value, params) => inst.check(checks.gte(value, params));
|
|
488
523
|
inst.max = (value, params) => inst.check(checks.lte(value, params));
|
|
489
524
|
const c = inst._zod.bag;
|
|
@@ -496,6 +531,7 @@ export function date(params) {
|
|
|
496
531
|
export const ZodArray = /*@__PURE__*/ core.$constructor("ZodArray", (inst, def) => {
|
|
497
532
|
core.$ZodArray.init(inst, def);
|
|
498
533
|
ZodType.init(inst, def);
|
|
534
|
+
inst._zod.processJSONSchema = (ctx, json, params) => processors.arrayProcessor(inst, ctx, json, params);
|
|
499
535
|
inst.element = def.element;
|
|
500
536
|
inst.min = (minLength, params) => inst.check(checks.minLength(minLength, params));
|
|
501
537
|
inst.nonempty = (params) => inst.check(checks.minLength(1, params));
|
|
@@ -514,6 +550,7 @@ export function keyof(schema) {
|
|
|
514
550
|
export const ZodObject = /*@__PURE__*/ core.$constructor("ZodObject", (inst, def) => {
|
|
515
551
|
core.$ZodObjectJIT.init(inst, def);
|
|
516
552
|
ZodType.init(inst, def);
|
|
553
|
+
inst._zod.processJSONSchema = (ctx, json, params) => processors.objectProcessor(inst, ctx, json, params);
|
|
517
554
|
util.defineLazy(inst, "shape", () => {
|
|
518
555
|
return def.shape;
|
|
519
556
|
});
|
|
@@ -564,6 +601,7 @@ export function looseObject(shape, params) {
|
|
|
564
601
|
export const ZodUnion = /*@__PURE__*/ core.$constructor("ZodUnion", (inst, def) => {
|
|
565
602
|
core.$ZodUnion.init(inst, def);
|
|
566
603
|
ZodType.init(inst, def);
|
|
604
|
+
inst._zod.processJSONSchema = (ctx, json, params) => processors.unionProcessor(inst, ctx, json, params);
|
|
567
605
|
inst.options = def.options;
|
|
568
606
|
});
|
|
569
607
|
export function union(options, params) {
|
|
@@ -573,6 +611,23 @@ export function union(options, params) {
|
|
|
573
611
|
...util.normalizeParams(params),
|
|
574
612
|
});
|
|
575
613
|
}
|
|
614
|
+
export const ZodXor = /*@__PURE__*/ core.$constructor("ZodXor", (inst, def) => {
|
|
615
|
+
ZodUnion.init(inst, def);
|
|
616
|
+
core.$ZodXor.init(inst, def);
|
|
617
|
+
inst._zod.processJSONSchema = (ctx, json, params) => processors.unionProcessor(inst, ctx, json, params);
|
|
618
|
+
inst.options = def.options;
|
|
619
|
+
});
|
|
620
|
+
/** Creates an exclusive union (XOR) where exactly one option must match.
|
|
621
|
+
* Unlike regular unions that succeed when any option matches, xor fails if
|
|
622
|
+
* zero or more than one option matches the input. */
|
|
623
|
+
export function xor(options, params) {
|
|
624
|
+
return new ZodXor({
|
|
625
|
+
type: "union",
|
|
626
|
+
options: options,
|
|
627
|
+
inclusive: false,
|
|
628
|
+
...util.normalizeParams(params),
|
|
629
|
+
});
|
|
630
|
+
}
|
|
576
631
|
export const ZodDiscriminatedUnion = /*@__PURE__*/ core.$constructor("ZodDiscriminatedUnion", (inst, def) => {
|
|
577
632
|
ZodUnion.init(inst, def);
|
|
578
633
|
core.$ZodDiscriminatedUnion.init(inst, def);
|
|
@@ -589,6 +644,7 @@ export function discriminatedUnion(discriminator, options, params) {
|
|
|
589
644
|
export const ZodIntersection = /*@__PURE__*/ core.$constructor("ZodIntersection", (inst, def) => {
|
|
590
645
|
core.$ZodIntersection.init(inst, def);
|
|
591
646
|
ZodType.init(inst, def);
|
|
647
|
+
inst._zod.processJSONSchema = (ctx, json, params) => processors.intersectionProcessor(inst, ctx, json, params);
|
|
592
648
|
});
|
|
593
649
|
export function intersection(left, right) {
|
|
594
650
|
return new ZodIntersection({
|
|
@@ -600,6 +656,7 @@ export function intersection(left, right) {
|
|
|
600
656
|
export const ZodTuple = /*@__PURE__*/ core.$constructor("ZodTuple", (inst, def) => {
|
|
601
657
|
core.$ZodTuple.init(inst, def);
|
|
602
658
|
ZodType.init(inst, def);
|
|
659
|
+
inst._zod.processJSONSchema = (ctx, json, params) => processors.tupleProcessor(inst, ctx, json, params);
|
|
603
660
|
inst.rest = (rest) => inst.clone({
|
|
604
661
|
...inst._zod.def,
|
|
605
662
|
rest: rest,
|
|
@@ -619,6 +676,7 @@ export function tuple(items, _paramsOrRest, _params) {
|
|
|
619
676
|
export const ZodRecord = /*@__PURE__*/ core.$constructor("ZodRecord", (inst, def) => {
|
|
620
677
|
core.$ZodRecord.init(inst, def);
|
|
621
678
|
ZodType.init(inst, def);
|
|
679
|
+
inst._zod.processJSONSchema = (ctx, json, params) => processors.recordProcessor(inst, ctx, json, params);
|
|
622
680
|
inst.keyType = def.keyType;
|
|
623
681
|
inst.valueType = def.valueType;
|
|
624
682
|
});
|
|
@@ -641,11 +699,25 @@ export function partialRecord(keyType, valueType, params) {
|
|
|
641
699
|
...util.normalizeParams(params),
|
|
642
700
|
});
|
|
643
701
|
}
|
|
702
|
+
export function looseRecord(keyType, valueType, params) {
|
|
703
|
+
return new ZodRecord({
|
|
704
|
+
type: "record",
|
|
705
|
+
keyType,
|
|
706
|
+
valueType: valueType,
|
|
707
|
+
mode: "loose",
|
|
708
|
+
...util.normalizeParams(params),
|
|
709
|
+
});
|
|
710
|
+
}
|
|
644
711
|
export const ZodMap = /*@__PURE__*/ core.$constructor("ZodMap", (inst, def) => {
|
|
645
712
|
core.$ZodMap.init(inst, def);
|
|
646
713
|
ZodType.init(inst, def);
|
|
714
|
+
inst._zod.processJSONSchema = (ctx, json, params) => processors.mapProcessor(inst, ctx, json, params);
|
|
647
715
|
inst.keyType = def.keyType;
|
|
648
716
|
inst.valueType = def.valueType;
|
|
717
|
+
inst.min = (...args) => inst.check(core._minSize(...args));
|
|
718
|
+
inst.nonempty = (params) => inst.check(core._minSize(1, params));
|
|
719
|
+
inst.max = (...args) => inst.check(core._maxSize(...args));
|
|
720
|
+
inst.size = (...args) => inst.check(core._size(...args));
|
|
649
721
|
});
|
|
650
722
|
export function map(keyType, valueType, params) {
|
|
651
723
|
return new ZodMap({
|
|
@@ -658,6 +730,7 @@ export function map(keyType, valueType, params) {
|
|
|
658
730
|
export const ZodSet = /*@__PURE__*/ core.$constructor("ZodSet", (inst, def) => {
|
|
659
731
|
core.$ZodSet.init(inst, def);
|
|
660
732
|
ZodType.init(inst, def);
|
|
733
|
+
inst._zod.processJSONSchema = (ctx, json, params) => processors.setProcessor(inst, ctx, json, params);
|
|
661
734
|
inst.min = (...args) => inst.check(core._minSize(...args));
|
|
662
735
|
inst.nonempty = (params) => inst.check(core._minSize(1, params));
|
|
663
736
|
inst.max = (...args) => inst.check(core._maxSize(...args));
|
|
@@ -673,6 +746,7 @@ export function set(valueType, params) {
|
|
|
673
746
|
export const ZodEnum = /*@__PURE__*/ core.$constructor("ZodEnum", (inst, def) => {
|
|
674
747
|
core.$ZodEnum.init(inst, def);
|
|
675
748
|
ZodType.init(inst, def);
|
|
749
|
+
inst._zod.processJSONSchema = (ctx, json, params) => processors.enumProcessor(inst, ctx, json, params);
|
|
676
750
|
inst.enum = def.entries;
|
|
677
751
|
inst.options = Object.values(def.entries);
|
|
678
752
|
const keys = new Set(Object.keys(def.entries));
|
|
@@ -735,6 +809,7 @@ export function nativeEnum(entries, params) {
|
|
|
735
809
|
export const ZodLiteral = /*@__PURE__*/ core.$constructor("ZodLiteral", (inst, def) => {
|
|
736
810
|
core.$ZodLiteral.init(inst, def);
|
|
737
811
|
ZodType.init(inst, def);
|
|
812
|
+
inst._zod.processJSONSchema = (ctx, json, params) => processors.literalProcessor(inst, ctx, json, params);
|
|
738
813
|
inst.values = new Set(def.values);
|
|
739
814
|
Object.defineProperty(inst, "value", {
|
|
740
815
|
get() {
|
|
@@ -755,6 +830,7 @@ export function literal(value, params) {
|
|
|
755
830
|
export const ZodFile = /*@__PURE__*/ core.$constructor("ZodFile", (inst, def) => {
|
|
756
831
|
core.$ZodFile.init(inst, def);
|
|
757
832
|
ZodType.init(inst, def);
|
|
833
|
+
inst._zod.processJSONSchema = (ctx, json, params) => processors.fileProcessor(inst, ctx, json, params);
|
|
758
834
|
inst.min = (size, params) => inst.check(core._minSize(size, params));
|
|
759
835
|
inst.max = (size, params) => inst.check(core._maxSize(size, params));
|
|
760
836
|
inst.mime = (types, params) => inst.check(core._mime(Array.isArray(types) ? types : [types], params));
|
|
@@ -765,6 +841,7 @@ export function file(params) {
|
|
|
765
841
|
export const ZodTransform = /*@__PURE__*/ core.$constructor("ZodTransform", (inst, def) => {
|
|
766
842
|
core.$ZodTransform.init(inst, def);
|
|
767
843
|
ZodType.init(inst, def);
|
|
844
|
+
inst._zod.processJSONSchema = (ctx, json, params) => processors.transformProcessor(inst, ctx, json, params);
|
|
768
845
|
inst._zod.parse = (payload, _ctx) => {
|
|
769
846
|
if (_ctx.direction === "backward") {
|
|
770
847
|
throw new core.$ZodEncodeError(inst.constructor.name);
|
|
@@ -805,6 +882,7 @@ export function transform(fn) {
|
|
|
805
882
|
export const ZodOptional = /*@__PURE__*/ core.$constructor("ZodOptional", (inst, def) => {
|
|
806
883
|
core.$ZodOptional.init(inst, def);
|
|
807
884
|
ZodType.init(inst, def);
|
|
885
|
+
inst._zod.processJSONSchema = (ctx, json, params) => processors.optionalProcessor(inst, ctx, json, params);
|
|
808
886
|
inst.unwrap = () => inst._zod.def.innerType;
|
|
809
887
|
});
|
|
810
888
|
export function optional(innerType) {
|
|
@@ -813,9 +891,22 @@ export function optional(innerType) {
|
|
|
813
891
|
innerType: innerType,
|
|
814
892
|
});
|
|
815
893
|
}
|
|
894
|
+
export const ZodExactOptional = /*@__PURE__*/ core.$constructor("ZodExactOptional", (inst, def) => {
|
|
895
|
+
core.$ZodExactOptional.init(inst, def);
|
|
896
|
+
ZodType.init(inst, def);
|
|
897
|
+
inst._zod.processJSONSchema = (ctx, json, params) => processors.optionalProcessor(inst, ctx, json, params);
|
|
898
|
+
inst.unwrap = () => inst._zod.def.innerType;
|
|
899
|
+
});
|
|
900
|
+
export function exactOptional(innerType) {
|
|
901
|
+
return new ZodExactOptional({
|
|
902
|
+
type: "optional",
|
|
903
|
+
innerType: innerType,
|
|
904
|
+
});
|
|
905
|
+
}
|
|
816
906
|
export const ZodNullable = /*@__PURE__*/ core.$constructor("ZodNullable", (inst, def) => {
|
|
817
907
|
core.$ZodNullable.init(inst, def);
|
|
818
908
|
ZodType.init(inst, def);
|
|
909
|
+
inst._zod.processJSONSchema = (ctx, json, params) => processors.nullableProcessor(inst, ctx, json, params);
|
|
819
910
|
inst.unwrap = () => inst._zod.def.innerType;
|
|
820
911
|
});
|
|
821
912
|
export function nullable(innerType) {
|
|
@@ -831,6 +922,7 @@ export function nullish(innerType) {
|
|
|
831
922
|
export const ZodDefault = /*@__PURE__*/ core.$constructor("ZodDefault", (inst, def) => {
|
|
832
923
|
core.$ZodDefault.init(inst, def);
|
|
833
924
|
ZodType.init(inst, def);
|
|
925
|
+
inst._zod.processJSONSchema = (ctx, json, params) => processors.defaultProcessor(inst, ctx, json, params);
|
|
834
926
|
inst.unwrap = () => inst._zod.def.innerType;
|
|
835
927
|
inst.removeDefault = inst.unwrap;
|
|
836
928
|
});
|
|
@@ -846,6 +938,7 @@ export function _default(innerType, defaultValue) {
|
|
|
846
938
|
export const ZodPrefault = /*@__PURE__*/ core.$constructor("ZodPrefault", (inst, def) => {
|
|
847
939
|
core.$ZodPrefault.init(inst, def);
|
|
848
940
|
ZodType.init(inst, def);
|
|
941
|
+
inst._zod.processJSONSchema = (ctx, json, params) => processors.prefaultProcessor(inst, ctx, json, params);
|
|
849
942
|
inst.unwrap = () => inst._zod.def.innerType;
|
|
850
943
|
});
|
|
851
944
|
export function prefault(innerType, defaultValue) {
|
|
@@ -860,6 +953,7 @@ export function prefault(innerType, defaultValue) {
|
|
|
860
953
|
export const ZodNonOptional = /*@__PURE__*/ core.$constructor("ZodNonOptional", (inst, def) => {
|
|
861
954
|
core.$ZodNonOptional.init(inst, def);
|
|
862
955
|
ZodType.init(inst, def);
|
|
956
|
+
inst._zod.processJSONSchema = (ctx, json, params) => processors.nonoptionalProcessor(inst, ctx, json, params);
|
|
863
957
|
inst.unwrap = () => inst._zod.def.innerType;
|
|
864
958
|
});
|
|
865
959
|
export function nonoptional(innerType, params) {
|
|
@@ -872,6 +966,7 @@ export function nonoptional(innerType, params) {
|
|
|
872
966
|
export const ZodSuccess = /*@__PURE__*/ core.$constructor("ZodSuccess", (inst, def) => {
|
|
873
967
|
core.$ZodSuccess.init(inst, def);
|
|
874
968
|
ZodType.init(inst, def);
|
|
969
|
+
inst._zod.processJSONSchema = (ctx, json, params) => processors.successProcessor(inst, ctx, json, params);
|
|
875
970
|
inst.unwrap = () => inst._zod.def.innerType;
|
|
876
971
|
});
|
|
877
972
|
export function success(innerType) {
|
|
@@ -883,6 +978,7 @@ export function success(innerType) {
|
|
|
883
978
|
export const ZodCatch = /*@__PURE__*/ core.$constructor("ZodCatch", (inst, def) => {
|
|
884
979
|
core.$ZodCatch.init(inst, def);
|
|
885
980
|
ZodType.init(inst, def);
|
|
981
|
+
inst._zod.processJSONSchema = (ctx, json, params) => processors.catchProcessor(inst, ctx, json, params);
|
|
886
982
|
inst.unwrap = () => inst._zod.def.innerType;
|
|
887
983
|
inst.removeCatch = inst.unwrap;
|
|
888
984
|
});
|
|
@@ -897,6 +993,7 @@ export { _catch as catch };
|
|
|
897
993
|
export const ZodNaN = /*@__PURE__*/ core.$constructor("ZodNaN", (inst, def) => {
|
|
898
994
|
core.$ZodNaN.init(inst, def);
|
|
899
995
|
ZodType.init(inst, def);
|
|
996
|
+
inst._zod.processJSONSchema = (ctx, json, params) => processors.nanProcessor(inst, ctx, json, params);
|
|
900
997
|
});
|
|
901
998
|
export function nan(params) {
|
|
902
999
|
return core._nan(ZodNaN, params);
|
|
@@ -904,6 +1001,7 @@ export function nan(params) {
|
|
|
904
1001
|
export const ZodPipe = /*@__PURE__*/ core.$constructor("ZodPipe", (inst, def) => {
|
|
905
1002
|
core.$ZodPipe.init(inst, def);
|
|
906
1003
|
ZodType.init(inst, def);
|
|
1004
|
+
inst._zod.processJSONSchema = (ctx, json, params) => processors.pipeProcessor(inst, ctx, json, params);
|
|
907
1005
|
inst.in = def.in;
|
|
908
1006
|
inst.out = def.out;
|
|
909
1007
|
});
|
|
@@ -931,6 +1029,7 @@ export function codec(in_, out, params) {
|
|
|
931
1029
|
export const ZodReadonly = /*@__PURE__*/ core.$constructor("ZodReadonly", (inst, def) => {
|
|
932
1030
|
core.$ZodReadonly.init(inst, def);
|
|
933
1031
|
ZodType.init(inst, def);
|
|
1032
|
+
inst._zod.processJSONSchema = (ctx, json, params) => processors.readonlyProcessor(inst, ctx, json, params);
|
|
934
1033
|
inst.unwrap = () => inst._zod.def.innerType;
|
|
935
1034
|
});
|
|
936
1035
|
export function readonly(innerType) {
|
|
@@ -942,6 +1041,7 @@ export function readonly(innerType) {
|
|
|
942
1041
|
export const ZodTemplateLiteral = /*@__PURE__*/ core.$constructor("ZodTemplateLiteral", (inst, def) => {
|
|
943
1042
|
core.$ZodTemplateLiteral.init(inst, def);
|
|
944
1043
|
ZodType.init(inst, def);
|
|
1044
|
+
inst._zod.processJSONSchema = (ctx, json, params) => processors.templateLiteralProcessor(inst, ctx, json, params);
|
|
945
1045
|
});
|
|
946
1046
|
export function templateLiteral(parts, params) {
|
|
947
1047
|
return new ZodTemplateLiteral({
|
|
@@ -953,6 +1053,7 @@ export function templateLiteral(parts, params) {
|
|
|
953
1053
|
export const ZodLazy = /*@__PURE__*/ core.$constructor("ZodLazy", (inst, def) => {
|
|
954
1054
|
core.$ZodLazy.init(inst, def);
|
|
955
1055
|
ZodType.init(inst, def);
|
|
1056
|
+
inst._zod.processJSONSchema = (ctx, json, params) => processors.lazyProcessor(inst, ctx, json, params);
|
|
956
1057
|
inst.unwrap = () => inst._zod.def.getter();
|
|
957
1058
|
});
|
|
958
1059
|
export function lazy(getter) {
|
|
@@ -964,6 +1065,7 @@ export function lazy(getter) {
|
|
|
964
1065
|
export const ZodPromise = /*@__PURE__*/ core.$constructor("ZodPromise", (inst, def) => {
|
|
965
1066
|
core.$ZodPromise.init(inst, def);
|
|
966
1067
|
ZodType.init(inst, def);
|
|
1068
|
+
inst._zod.processJSONSchema = (ctx, json, params) => processors.promiseProcessor(inst, ctx, json, params);
|
|
967
1069
|
inst.unwrap = () => inst._zod.def.innerType;
|
|
968
1070
|
});
|
|
969
1071
|
export function promise(innerType) {
|
|
@@ -975,6 +1077,7 @@ export function promise(innerType) {
|
|
|
975
1077
|
export const ZodFunction = /*@__PURE__*/ core.$constructor("ZodFunction", (inst, def) => {
|
|
976
1078
|
core.$ZodFunction.init(inst, def);
|
|
977
1079
|
ZodType.init(inst, def);
|
|
1080
|
+
inst._zod.processJSONSchema = (ctx, json, params) => processors.functionProcessor(inst, ctx, json, params);
|
|
978
1081
|
});
|
|
979
1082
|
export function _function(params) {
|
|
980
1083
|
return new ZodFunction({
|
|
@@ -987,6 +1090,7 @@ export { _function as function };
|
|
|
987
1090
|
export const ZodCustom = /*@__PURE__*/ core.$constructor("ZodCustom", (inst, def) => {
|
|
988
1091
|
core.$ZodCustom.init(inst, def);
|
|
989
1092
|
ZodType.init(inst, def);
|
|
1093
|
+
inst._zod.processJSONSchema = (ctx, json, params) => processors.customProcessor(inst, ctx, json, params);
|
|
990
1094
|
});
|
|
991
1095
|
// custom checks
|
|
992
1096
|
export function check(fn) {
|
|
@@ -1007,9 +1111,10 @@ export function refine(fn, _params = {}) {
|
|
|
1007
1111
|
export function superRefine(fn) {
|
|
1008
1112
|
return core._superRefine(fn);
|
|
1009
1113
|
}
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1114
|
+
// Re-export describe and meta from core
|
|
1115
|
+
export const describe = core.describe;
|
|
1116
|
+
export const meta = core.meta;
|
|
1117
|
+
function _instanceof(cls, params = {}) {
|
|
1013
1118
|
const inst = new ZodCustom({
|
|
1014
1119
|
type: "custom",
|
|
1015
1120
|
check: "custom",
|
|
@@ -1018,6 +1123,18 @@ function _instanceof(cls, params = {
|
|
|
1018
1123
|
...util.normalizeParams(params),
|
|
1019
1124
|
});
|
|
1020
1125
|
inst._zod.bag.Class = cls;
|
|
1126
|
+
// Override check to emit invalid_type instead of custom
|
|
1127
|
+
inst._zod.check = (payload) => {
|
|
1128
|
+
if (!(payload.value instanceof cls)) {
|
|
1129
|
+
payload.issues.push({
|
|
1130
|
+
code: "invalid_type",
|
|
1131
|
+
expected: cls.name,
|
|
1132
|
+
input: payload.value,
|
|
1133
|
+
inst,
|
|
1134
|
+
path: [...(inst._zod.def.path ?? [])],
|
|
1135
|
+
});
|
|
1136
|
+
}
|
|
1137
|
+
};
|
|
1021
1138
|
return inst;
|
|
1022
1139
|
}
|
|
1023
1140
|
export { _instanceof as instanceof };
|