@mastra/server 1.37.0 → 1.37.2-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +31 -0
- package/dist/_types/@internal_voice/dist/_types/@internal_core/dist/request-context/index.d.ts +147 -0
- package/dist/_types/@internal_voice/dist/_types/@internal_core/dist/routes/index.d.ts +110 -0
- package/dist/_types/@internal_voice/dist/_types/@internal_core/dist/types/index.d.ts +3 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/classic/checks.d.ts +1 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/classic/coerce.d.ts +17 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/classic/compat.d.ts +50 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/classic/errors.d.ts +30 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/classic/external.d.ts +16 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/classic/from-json-schema.d.ts +12 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/classic/index.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/classic/iso.d.ts +22 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/classic/parse.d.ts +31 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/classic/schemas.d.ts +767 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/core/api.d.ts +325 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/core/checks.d.ts +278 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/core/core.d.ts +70 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/core/doc.d.ts +14 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/core/errors.d.ts +221 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/core/index.d.ts +16 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/core/json-schema-generator.d.ts +65 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/core/json-schema-processors.d.ts +49 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/core/json-schema.d.ts +88 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/core/parse.d.ts +49 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/core/regexes.d.ts +85 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/core/registries.d.ts +35 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/core/schemas.d.ts +1184 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/core/standard-schema.d.ts +126 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/core/to-json-schema.d.ts +114 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/core/util.d.ts +200 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/core/versions.d.ts +5 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/index.d.cts +3 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/ar.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/az.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/be.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/bg.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/ca.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/cs.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/da.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/de.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/el.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/en.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/eo.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/es.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/fa.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/fi.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/fr-CA.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/fr.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/he.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/hr.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/hu.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/hy.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/id.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/index.d.ts +52 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/is.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/it.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/ja.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/ka.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/kh.d.ts +5 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/km.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/ko.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/lt.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/mk.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/ms.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/nl.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/no.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/ota.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/pl.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/ps.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/pt.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/ro.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/ru.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/sl.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/sv.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/ta.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/th.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/tr.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/ua.d.ts +5 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/uk.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/ur.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/uz.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/vi.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/yo.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/zh-CN.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/_types/zod/v4/locales/zh-TW.d.ts +4 -0
- package/dist/_types/@internal_voice/dist/routes/index.d.ts +95 -0
- package/dist/{api-schema-manifest-ASUOKM2J.js → api-schema-manifest-2HYMISCO.js} +4 -4
- package/dist/{api-schema-manifest-ASUOKM2J.js.map → api-schema-manifest-2HYMISCO.js.map} +1 -1
- package/dist/{api-schema-manifest-DVULBVRB.cjs → api-schema-manifest-T3EB4CNY.cjs} +6 -6
- package/dist/{api-schema-manifest-DVULBVRB.cjs.map → api-schema-manifest-T3EB4CNY.cjs.map} +1 -1
- package/dist/{chunk-FVUHZVRU.js → chunk-22VN45LI.js} +3 -3
- package/dist/{chunk-FVUHZVRU.js.map → chunk-22VN45LI.js.map} +1 -1
- package/dist/{chunk-CGLCGIWF.js → chunk-24Y7CNXL.js} +3 -3
- package/dist/{chunk-CGLCGIWF.js.map → chunk-24Y7CNXL.js.map} +1 -1
- package/dist/{chunk-4H2E62A6.js → chunk-2RLKKAFO.js} +5 -5
- package/dist/{chunk-4H2E62A6.js.map → chunk-2RLKKAFO.js.map} +1 -1
- package/dist/{chunk-7CO6ZZBD.js → chunk-2XDIA4LB.js} +3 -3
- package/dist/{chunk-7CO6ZZBD.js.map → chunk-2XDIA4LB.js.map} +1 -1
- package/dist/{chunk-F2WQJ326.js → chunk-3NN5XGE3.js} +3 -3
- package/dist/{chunk-F2WQJ326.js.map → chunk-3NN5XGE3.js.map} +1 -1
- package/dist/{chunk-PKZBJQS3.cjs → chunk-4QJDROC2.cjs} +101 -101
- package/dist/{chunk-PKZBJQS3.cjs.map → chunk-4QJDROC2.cjs.map} +1 -1
- package/dist/{chunk-YK45NJAN.js → chunk-4RNCG4IX.js} +4 -4
- package/dist/{chunk-YK45NJAN.js.map → chunk-4RNCG4IX.js.map} +1 -1
- package/dist/{chunk-3IDIVR56.js → chunk-4RR56AIZ.js} +3 -3
- package/dist/{chunk-3IDIVR56.js.map → chunk-4RR56AIZ.js.map} +1 -1
- package/dist/{chunk-QCSBT7CS.js → chunk-5R3TARND.js} +3 -3
- package/dist/{chunk-QCSBT7CS.js.map → chunk-5R3TARND.js.map} +1 -1
- package/dist/{chunk-6OEONRMO.js → chunk-75ODZOL7.js} +4 -4
- package/dist/{chunk-6OEONRMO.js.map → chunk-75ODZOL7.js.map} +1 -1
- package/dist/{chunk-BA4S2M7W.cjs → chunk-7UY6IS2X.cjs} +4 -4
- package/dist/{chunk-BA4S2M7W.cjs.map → chunk-7UY6IS2X.cjs.map} +1 -1
- package/dist/{chunk-TULZQMH5.js → chunk-AGFTSJZC.js} +3 -3
- package/dist/{chunk-TULZQMH5.js.map → chunk-AGFTSJZC.js.map} +1 -1
- package/dist/{chunk-4QERBYMF.cjs → chunk-AQIFUFNF.cjs} +24 -24
- package/dist/{chunk-4QERBYMF.cjs.map → chunk-AQIFUFNF.cjs.map} +1 -1
- package/dist/{chunk-RZBX26XW.js → chunk-AYPNWRLX.js} +3 -3
- package/dist/{chunk-RZBX26XW.js.map → chunk-AYPNWRLX.js.map} +1 -1
- package/dist/{chunk-3AICJPM7.js → chunk-BB3HUXJZ.js} +3 -3
- package/dist/{chunk-3AICJPM7.js.map → chunk-BB3HUXJZ.js.map} +1 -1
- package/dist/{chunk-RLITUUK6.cjs → chunk-BKMQJMWE.cjs} +8 -8
- package/dist/{chunk-RLITUUK6.cjs.map → chunk-BKMQJMWE.cjs.map} +1 -1
- package/dist/{chunk-3ZEAXXYD.js → chunk-CGFMGFKV.js} +3 -3
- package/dist/{chunk-3ZEAXXYD.js.map → chunk-CGFMGFKV.js.map} +1 -1
- package/dist/{chunk-HABZSU22.js → chunk-CKFO7257.js} +4 -4
- package/dist/{chunk-HABZSU22.js.map → chunk-CKFO7257.js.map} +1 -1
- package/dist/{chunk-NZY4VEYK.js → chunk-CYJSMHDR.js} +3 -3
- package/dist/{chunk-NZY4VEYK.js.map → chunk-CYJSMHDR.js.map} +1 -1
- package/dist/{chunk-FZPRMK2H.cjs → chunk-DNEZDNKB.cjs} +8 -8
- package/dist/{chunk-FZPRMK2H.cjs.map → chunk-DNEZDNKB.cjs.map} +1 -1
- package/dist/{chunk-A76I3XR6.js → chunk-DWVJSWSE.js} +2 -2
- package/dist/{chunk-A76I3XR6.js.map → chunk-DWVJSWSE.js.map} +1 -1
- package/dist/{chunk-GTOPUF5K.cjs → chunk-DZHJ7XCH.cjs} +6 -6
- package/dist/{chunk-GTOPUF5K.cjs.map → chunk-DZHJ7XCH.cjs.map} +1 -1
- package/dist/{chunk-76VMZPQG.js → chunk-EIKSVIW3.js} +36 -20
- package/dist/chunk-EIKSVIW3.js.map +1 -0
- package/dist/{chunk-5CCNDIQA.cjs → chunk-EKZHA5NN.cjs} +6 -6
- package/dist/{chunk-5CCNDIQA.cjs.map → chunk-EKZHA5NN.cjs.map} +1 -1
- package/dist/{chunk-KJ33BE5F.cjs → chunk-EQQVBKSD.cjs} +8 -8
- package/dist/{chunk-KJ33BE5F.cjs.map → chunk-EQQVBKSD.cjs.map} +1 -1
- package/dist/{chunk-ADOALG4G.cjs → chunk-EVIEMZPA.cjs} +4 -3
- package/dist/chunk-EVIEMZPA.cjs.map +1 -0
- package/dist/{chunk-4ZTXLUK3.js → chunk-EZL3D4PO.js} +4 -4
- package/dist/{chunk-4ZTXLUK3.js.map → chunk-EZL3D4PO.js.map} +1 -1
- package/dist/{chunk-WQMXXSIP.cjs → chunk-FMDGZHMC.cjs} +11 -11
- package/dist/{chunk-WQMXXSIP.cjs.map → chunk-FMDGZHMC.cjs.map} +1 -1
- package/dist/{chunk-3W3FK4KH.cjs → chunk-FNWCKWKM.cjs} +33 -33
- package/dist/{chunk-3W3FK4KH.cjs.map → chunk-FNWCKWKM.cjs.map} +1 -1
- package/dist/{chunk-ESXG2X6S.cjs → chunk-GB356XPX.cjs} +11 -11
- package/dist/{chunk-ESXG2X6S.cjs.map → chunk-GB356XPX.cjs.map} +1 -1
- package/dist/{chunk-X7GW7EUO.cjs → chunk-GBVZARVX.cjs} +6 -6
- package/dist/{chunk-X7GW7EUO.cjs.map → chunk-GBVZARVX.cjs.map} +1 -1
- package/dist/{chunk-XPCJPNHA.js → chunk-GBXO223Q.js} +41 -41
- package/dist/{chunk-XPCJPNHA.js.map → chunk-GBXO223Q.js.map} +1 -1
- package/dist/{chunk-K4ZZFQFX.cjs → chunk-GHNOAGKV.cjs} +13 -13
- package/dist/{chunk-K4ZZFQFX.cjs.map → chunk-GHNOAGKV.cjs.map} +1 -1
- package/dist/{chunk-N2HQIMLG.js → chunk-GXI53DFN.js} +3 -3
- package/dist/{chunk-N2HQIMLG.js.map → chunk-GXI53DFN.js.map} +1 -1
- package/dist/chunk-H7TPN2Y6.js +522 -0
- package/dist/chunk-H7TPN2Y6.js.map +1 -0
- package/dist/{chunk-C7ZX5DHM.js → chunk-HBOB5WKU.js} +5 -5
- package/dist/{chunk-C7ZX5DHM.js.map → chunk-HBOB5WKU.js.map} +1 -1
- package/dist/{chunk-FLOHCX4T.cjs → chunk-HXIX55Y4.cjs} +10 -10
- package/dist/{chunk-FLOHCX4T.cjs.map → chunk-HXIX55Y4.cjs.map} +1 -1
- package/dist/{chunk-PV2YAEGA.js → chunk-I6GXKO5J.js} +4 -4
- package/dist/{chunk-PV2YAEGA.js.map → chunk-I6GXKO5J.js.map} +1 -1
- package/dist/{chunk-RL27XDQE.js → chunk-IZZ4ZP3Y.js} +3 -3
- package/dist/{chunk-RL27XDQE.js.map → chunk-IZZ4ZP3Y.js.map} +1 -1
- package/dist/chunk-JEPACCO3.cjs +676 -0
- package/dist/{chunk-GRROKQZV.cjs.map → chunk-JEPACCO3.cjs.map} +1 -1
- package/dist/{chunk-CV4LIN3P.cjs → chunk-JTMPDRWI.cjs} +9 -9
- package/dist/{chunk-CV4LIN3P.cjs.map → chunk-JTMPDRWI.cjs.map} +1 -1
- package/dist/{chunk-UF4TR3AN.js → chunk-K3A6LAJC.js} +3 -3
- package/dist/{chunk-UF4TR3AN.js.map → chunk-K3A6LAJC.js.map} +1 -1
- package/dist/{chunk-LYEJMLZK.js → chunk-KOCE23K4.js} +4 -4
- package/dist/{chunk-LYEJMLZK.js.map → chunk-KOCE23K4.js.map} +1 -1
- package/dist/{chunk-JIB75MHZ.cjs → chunk-L3U6GXOD.cjs} +4 -29
- package/dist/chunk-L3U6GXOD.cjs.map +1 -0
- package/dist/{chunk-KQGH5TKC.cjs → chunk-LOTLWLPW.cjs} +8 -8
- package/dist/{chunk-KQGH5TKC.cjs.map → chunk-LOTLWLPW.cjs.map} +1 -1
- package/dist/{chunk-23NMT2X2.cjs → chunk-M32NLBKC.cjs} +8 -8
- package/dist/{chunk-23NMT2X2.cjs.map → chunk-M32NLBKC.cjs.map} +1 -1
- package/dist/{chunk-SWFGOOOC.cjs → chunk-M3G3V2BR.cjs} +5 -5
- package/dist/{chunk-SWFGOOOC.cjs.map → chunk-M3G3V2BR.cjs.map} +1 -1
- package/dist/{chunk-SPFE7PYM.cjs → chunk-MGG34H7P.cjs} +89 -89
- package/dist/{chunk-SPFE7PYM.cjs.map → chunk-MGG34H7P.cjs.map} +1 -1
- package/dist/{chunk-USNA4TKM.js → chunk-MN4N5SO4.js} +3 -3
- package/dist/{chunk-USNA4TKM.js.map → chunk-MN4N5SO4.js.map} +1 -1
- package/dist/{chunk-FPNN7NR6.cjs → chunk-MSKYP5LL.cjs} +8 -8
- package/dist/{chunk-FPNN7NR6.cjs.map → chunk-MSKYP5LL.cjs.map} +1 -1
- package/dist/{chunk-OP64PLRM.js → chunk-MZRE4VM6.js} +3 -3
- package/dist/{chunk-OP64PLRM.js.map → chunk-MZRE4VM6.js.map} +1 -1
- package/dist/{chunk-VVLD43MX.js → chunk-N624P3VO.js} +4 -3
- package/dist/chunk-N624P3VO.js.map +1 -0
- package/dist/{chunk-DTBEZHBA.cjs → chunk-N6DXNOYI.cjs} +7 -7
- package/dist/{chunk-DTBEZHBA.cjs.map → chunk-N6DXNOYI.cjs.map} +1 -1
- package/dist/{chunk-V5KIXCQT.cjs → chunk-NWBJNMEH.cjs} +10 -10
- package/dist/{chunk-V5KIXCQT.cjs.map → chunk-NWBJNMEH.cjs.map} +1 -1
- package/dist/{chunk-4EJPH3QV.cjs → chunk-O5QFXRHS.cjs} +155 -139
- package/dist/chunk-O5QFXRHS.cjs.map +1 -0
- package/dist/{chunk-I6LFPPPY.js → chunk-O6TVZ7JM.js} +5 -5
- package/dist/{chunk-I6LFPPPY.js.map → chunk-O6TVZ7JM.js.map} +1 -1
- package/dist/{chunk-IMALIYW3.cjs → chunk-O7P7DTEU.cjs} +5 -5
- package/dist/{chunk-IMALIYW3.cjs.map → chunk-O7P7DTEU.cjs.map} +1 -1
- package/dist/{chunk-5DNCX4VR.cjs → chunk-OJ7J57QX.cjs} +8 -8
- package/dist/{chunk-5DNCX4VR.cjs.map → chunk-OJ7J57QX.cjs.map} +1 -1
- package/dist/{chunk-QIIFFLTP.js → chunk-OWGVQMFL.js} +3 -3
- package/dist/{chunk-QIIFFLTP.js.map → chunk-OWGVQMFL.js.map} +1 -1
- package/dist/{chunk-QXTSZUOW.cjs → chunk-P2D4FXR3.cjs} +40 -40
- package/dist/{chunk-QXTSZUOW.cjs.map → chunk-P2D4FXR3.cjs.map} +1 -1
- package/dist/chunk-P4IMQYF3.cjs +536 -0
- package/dist/chunk-P4IMQYF3.cjs.map +1 -0
- package/dist/{chunk-7HBQXTEE.js → chunk-PBXPP6LG.js} +4 -4
- package/dist/{chunk-7HBQXTEE.js.map → chunk-PBXPP6LG.js.map} +1 -1
- package/dist/{chunk-RV5AACQT.js → chunk-PIJ5TCIL.js} +3 -3
- package/dist/{chunk-RV5AACQT.js.map → chunk-PIJ5TCIL.js.map} +1 -1
- package/dist/{chunk-CBLGDMKY.js → chunk-PRNDSHZW.js} +3 -3
- package/dist/{chunk-CBLGDMKY.js.map → chunk-PRNDSHZW.js.map} +1 -1
- package/dist/{chunk-MAWER4M5.cjs → chunk-QHZNXZWE.cjs} +16 -16
- package/dist/{chunk-MAWER4M5.cjs.map → chunk-QHZNXZWE.cjs.map} +1 -1
- package/dist/{chunk-GIDCL2QK.js → chunk-R5LDM3BW.js} +4 -4
- package/dist/{chunk-GIDCL2QK.js.map → chunk-R5LDM3BW.js.map} +1 -1
- package/dist/{chunk-5CCEQCYY.cjs → chunk-SCZF5DQB.cjs} +2 -2
- package/dist/{chunk-5CCEQCYY.cjs.map → chunk-SCZF5DQB.cjs.map} +1 -1
- package/dist/{chunk-7X5Y6YFV.cjs → chunk-SG33QRJ5.cjs} +10 -10
- package/dist/{chunk-7X5Y6YFV.cjs.map → chunk-SG33QRJ5.cjs.map} +1 -1
- package/dist/{chunk-KY2L7WII.cjs → chunk-SGAES7J3.cjs} +28 -28
- package/dist/{chunk-KY2L7WII.cjs.map → chunk-SGAES7J3.cjs.map} +1 -1
- package/dist/chunk-SLTGLKKQ.js +25 -0
- package/dist/chunk-SLTGLKKQ.js.map +1 -0
- package/dist/{chunk-LO3JBCO6.js → chunk-ST65ZQ6C.js} +5 -24
- package/dist/chunk-ST65ZQ6C.js.map +1 -0
- package/dist/{chunk-VDUQSJ24.js → chunk-SYLOFHAO.js} +3 -3
- package/dist/{chunk-VDUQSJ24.js.map → chunk-SYLOFHAO.js.map} +1 -1
- package/dist/{chunk-ACWLVJMM.cjs → chunk-U4CV6ZLO.cjs} +6 -6
- package/dist/{chunk-ACWLVJMM.cjs.map → chunk-U4CV6ZLO.cjs.map} +1 -1
- package/dist/{chunk-JRVTDAR3.cjs → chunk-U4MOTJPV.cjs} +71 -71
- package/dist/{chunk-JRVTDAR3.cjs.map → chunk-U4MOTJPV.cjs.map} +1 -1
- package/dist/{chunk-PYDNEKG7.js → chunk-UC4A4MTE.js} +5 -5
- package/dist/{chunk-PYDNEKG7.js.map → chunk-UC4A4MTE.js.map} +1 -1
- package/dist/{chunk-XD5A75U5.cjs → chunk-UNVDPUDB.cjs} +10 -10
- package/dist/{chunk-XD5A75U5.cjs.map → chunk-UNVDPUDB.cjs.map} +1 -1
- package/dist/{chunk-3WEFKFTW.js → chunk-V3CFHU42.js} +3 -3
- package/dist/{chunk-3WEFKFTW.js.map → chunk-V3CFHU42.js.map} +1 -1
- package/dist/{chunk-5LGNYS65.js → chunk-W2LZ3CEY.js} +3 -3
- package/dist/{chunk-5LGNYS65.js.map → chunk-W2LZ3CEY.js.map} +1 -1
- package/dist/{chunk-IDJRYGFI.js → chunk-W3BHN44U.js} +3 -3
- package/dist/{chunk-IDJRYGFI.js.map → chunk-W3BHN44U.js.map} +1 -1
- package/dist/{chunk-7T2NLNMZ.js → chunk-WAGWS64X.js} +5 -5
- package/dist/{chunk-7T2NLNMZ.js.map → chunk-WAGWS64X.js.map} +1 -1
- package/dist/{chunk-XN67PSYF.cjs → chunk-WII3RU4D.cjs} +8 -8
- package/dist/{chunk-XN67PSYF.cjs.map → chunk-WII3RU4D.cjs.map} +1 -1
- package/dist/chunk-WOMWA56V.cjs +34 -0
- package/dist/chunk-WOMWA56V.cjs.map +1 -0
- package/dist/{chunk-5J77WZVX.js → chunk-X3YYLOBX.js} +3 -3
- package/dist/{chunk-5J77WZVX.js.map → chunk-X3YYLOBX.js.map} +1 -1
- package/dist/{chunk-LZTFEWE2.cjs → chunk-X72GZOMH.cjs} +8 -8
- package/dist/{chunk-LZTFEWE2.cjs.map → chunk-X72GZOMH.cjs.map} +1 -1
- package/dist/{chunk-ISVWKG75.cjs → chunk-XRQ24547.cjs} +23 -23
- package/dist/{chunk-ISVWKG75.cjs.map → chunk-XRQ24547.cjs.map} +1 -1
- package/dist/{chunk-OULHG4PU.cjs → chunk-XZ2UECF2.cjs} +7 -7
- package/dist/{chunk-OULHG4PU.cjs.map → chunk-XZ2UECF2.cjs.map} +1 -1
- package/dist/{chunk-G2UVEO6M.cjs → chunk-YVA4JWKW.cjs} +12 -12
- package/dist/{chunk-G2UVEO6M.cjs.map → chunk-YVA4JWKW.cjs.map} +1 -1
- package/dist/{chunk-CUJ7X5PY.js → chunk-YWFPRGMQ.js} +5 -5
- package/dist/{chunk-CUJ7X5PY.js.map → chunk-YWFPRGMQ.js.map} +1 -1
- package/dist/{chunk-5OEMUJJX.cjs → chunk-ZAISELX5.cjs} +16 -16
- package/dist/{chunk-5OEMUJJX.cjs.map → chunk-ZAISELX5.cjs.map} +1 -1
- package/dist/{chunk-UVZH7OIS.cjs → chunk-ZBJ23OYY.cjs} +10 -10
- package/dist/{chunk-UVZH7OIS.cjs.map → chunk-ZBJ23OYY.cjs.map} +1 -1
- package/dist/{chunk-RQFMAS4T.cjs → chunk-ZEOCTIOC.cjs} +4 -4
- package/dist/{chunk-RQFMAS4T.cjs.map → chunk-ZEOCTIOC.cjs.map} +1 -1
- package/dist/{chunk-MZ5ZHXPD.js → chunk-ZHDQZ7TX.js} +4 -4
- package/dist/{chunk-MZ5ZHXPD.js.map → chunk-ZHDQZ7TX.js.map} +1 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/server/handlers/a2a.cjs +14 -14
- package/dist/server/handlers/a2a.js +1 -1
- package/dist/server/handlers/agent-builder.cjs +16 -16
- package/dist/server/handlers/agent-builder.js +1 -1
- package/dist/server/handlers/agent-versions.cjs +8 -8
- package/dist/server/handlers/agent-versions.js +1 -1
- package/dist/server/handlers/agents.cjs +41 -41
- package/dist/server/handlers/agents.d.ts +104 -0
- package/dist/server/handlers/agents.d.ts.map +1 -1
- package/dist/server/handlers/agents.js +1 -1
- package/dist/server/handlers/auth.cjs +12 -12
- package/dist/server/handlers/auth.js +1 -1
- package/dist/server/handlers/background-tasks.cjs +4 -4
- package/dist/server/handlers/background-tasks.js +1 -1
- package/dist/server/handlers/builder-registry.cjs +6 -6
- package/dist/server/handlers/builder-registry.js +1 -1
- package/dist/server/handlers/channels.cjs +5 -5
- package/dist/server/handlers/channels.js +1 -1
- package/dist/server/handlers/conversations.cjs +5 -5
- package/dist/server/handlers/conversations.js +1 -1
- package/dist/server/handlers/datasets.cjs +26 -26
- package/dist/server/handlers/datasets.d.ts +8 -0
- package/dist/server/handlers/datasets.d.ts.map +1 -1
- package/dist/server/handlers/datasets.js +1 -1
- package/dist/server/handlers/editor-builder.cjs +5 -5
- package/dist/server/handlers/editor-builder.js +1 -1
- package/dist/server/handlers/favorites-enrichment.cjs +3 -3
- package/dist/server/handlers/favorites-enrichment.js +1 -1
- package/dist/server/handlers/logs.cjs +4 -4
- package/dist/server/handlers/logs.js +1 -1
- package/dist/server/handlers/mcp-client-versions.cjs +8 -8
- package/dist/server/handlers/mcp-client-versions.js +1 -1
- package/dist/server/handlers/mcp.cjs +11 -11
- package/dist/server/handlers/mcp.js +1 -1
- package/dist/server/handlers/memory.cjs +27 -27
- package/dist/server/handlers/memory.js +1 -1
- package/dist/server/handlers/observability-new-endpoints.cjs +29 -29
- package/dist/server/handlers/observability-new-endpoints.d.ts +232 -232
- package/dist/server/handlers/observability-new-endpoints.js +1 -1
- package/dist/server/handlers/observability-shared.cjs +9 -9
- package/dist/server/handlers/observability-shared.js +1 -1
- package/dist/server/handlers/observability.cjs +40 -40
- package/dist/server/handlers/observability.js +2 -2
- package/dist/server/handlers/processor-providers.cjs +3 -3
- package/dist/server/handlers/processor-providers.js +1 -1
- package/dist/server/handlers/processors.cjs +4 -4
- package/dist/server/handlers/processors.js +1 -1
- package/dist/server/handlers/prompt-block-versions.cjs +8 -8
- package/dist/server/handlers/prompt-block-versions.js +1 -1
- package/dist/server/handlers/responses.cjs +4 -4
- package/dist/server/handlers/responses.js +1 -1
- package/dist/server/handlers/schedules.cjs +6 -6
- package/dist/server/handlers/schedules.js +1 -1
- package/dist/server/handlers/scorer-versions.cjs +8 -8
- package/dist/server/handlers/scorer-versions.js +1 -1
- package/dist/server/handlers/scores.cjs +7 -7
- package/dist/server/handlers/scores.js +1 -1
- package/dist/server/handlers/stored-agent-favorites.cjs +3 -3
- package/dist/server/handlers/stored-agent-favorites.js +1 -1
- package/dist/server/handlers/stored-agents.cjs +7 -7
- package/dist/server/handlers/stored-agents.js +1 -1
- package/dist/server/handlers/stored-mcp-clients.cjs +6 -6
- package/dist/server/handlers/stored-mcp-clients.js +1 -1
- package/dist/server/handlers/stored-prompt-blocks.cjs +6 -6
- package/dist/server/handlers/stored-prompt-blocks.js +1 -1
- package/dist/server/handlers/stored-scorers.cjs +6 -6
- package/dist/server/handlers/stored-scorers.js +1 -1
- package/dist/server/handlers/stored-skill-favorites.cjs +3 -3
- package/dist/server/handlers/stored-skill-favorites.js +1 -1
- package/dist/server/handlers/stored-skills.cjs +7 -7
- package/dist/server/handlers/stored-skills.js +1 -1
- package/dist/server/handlers/stored-workspaces.cjs +6 -6
- package/dist/server/handlers/stored-workspaces.js +1 -1
- package/dist/server/handlers/system.cjs +3 -3
- package/dist/server/handlers/system.js +1 -1
- package/dist/server/handlers/tool-providers.cjs +5 -5
- package/dist/server/handlers/tool-providers.js +1 -1
- package/dist/server/handlers/tools.cjs +6 -6
- package/dist/server/handlers/tools.js +1 -1
- package/dist/server/handlers/vector.cjs +16 -16
- package/dist/server/handlers/vector.js +1 -1
- package/dist/server/handlers/voice.cjs +8 -8
- package/dist/server/handlers/voice.d.ts +8 -77
- package/dist/server/handlers/voice.d.ts.map +1 -1
- package/dist/server/handlers/voice.js +1 -1
- package/dist/server/handlers/workflows.cjs +26 -26
- package/dist/server/handlers/workflows.js +1 -1
- package/dist/server/handlers/workspace.cjs +26 -26
- package/dist/server/handlers/workspace.js +1 -1
- package/dist/server/handlers.cjs +30 -30
- package/dist/server/handlers.js +15 -15
- package/dist/server/schemas/agents.d.ts +25 -37
- package/dist/server/schemas/agents.d.ts.map +1 -1
- package/dist/server/schemas/datasets.d.ts +4 -0
- package/dist/server/schemas/datasets.d.ts.map +1 -1
- package/dist/server/schemas/index.cjs +104 -103
- package/dist/server/schemas/index.js +3 -2
- package/dist/server/server-adapter/index.cjs +21 -21
- package/dist/server/server-adapter/index.js +4 -4
- package/dist/server/server-adapter/routes/datasets.d.ts +8 -0
- package/dist/server/server-adapter/routes/datasets.d.ts.map +1 -1
- package/dist/server/server-adapter/routes/index.d.ts +1 -0
- package/dist/server/server-adapter/routes/index.d.ts.map +1 -1
- package/dist/server/server-adapter/routes/legacy.d.ts +16 -0
- package/dist/server/server-adapter/routes/legacy.d.ts.map +1 -1
- package/dist/server/server-adapter/routes/observability.d.ts +116 -116
- package/dist/server/server-adapter/routes/route-builder.d.ts +1 -0
- package/dist/server/server-adapter/routes/route-builder.d.ts.map +1 -1
- package/package.json +7 -6
- package/dist/chunk-4EJPH3QV.cjs.map +0 -1
- package/dist/chunk-76VMZPQG.js.map +0 -1
- package/dist/chunk-ADOALG4G.cjs.map +0 -1
- package/dist/chunk-FABRY3EH.js +0 -195
- package/dist/chunk-FABRY3EH.js.map +0 -1
- package/dist/chunk-GRROKQZV.cjs +0 -676
- package/dist/chunk-HJRD2MOT.cjs +0 -204
- package/dist/chunk-HJRD2MOT.cjs.map +0 -1
- package/dist/chunk-JIB75MHZ.cjs.map +0 -1
- package/dist/chunk-LO3JBCO6.js.map +0 -1
- package/dist/chunk-VVLD43MX.js.map +0 -1
- /package/dist/_types/@internal_core/dist/{index.d.ts → storage/index.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# @mastra/server
|
|
2
2
|
|
|
3
|
+
## 1.37.2-alpha.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Added sseFlushOnConnect route option to scope the SSE connected comment to subscribe endpoints only ([#17158](https://github.com/mastra-ai/mastra/pull/17158))
|
|
8
|
+
|
|
9
|
+
- Fixed sub-agent version resolution in supervisor mode. Sub-agents now inherit the parent's draft/published version semantics — when chatting in the editor (draft mode), sub-agents resolve to their latest draft version; in the main agent chat (published mode), sub-agents resolve to their published version. Previously, sub-agents without explicit per-agent version overrides always fell back to the code-defined default, ignoring the parent's version context. ([#17165](https://github.com/mastra-ai/mastra/pull/17165))
|
|
10
|
+
|
|
11
|
+
- Scoped the SSE connected comment to subscribe routes only and added SSE comment passthrough for Fastify and NestJS adapters ([#17158](https://github.com/mastra-ai/mastra/pull/17158))
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [[`49f8abc`](https://github.com/mastra-ai/mastra/commit/49f8abce8258e4f2f87bd326acfbdb641264a47c)]:
|
|
14
|
+
- @mastra/core@1.37.2-alpha.1
|
|
15
|
+
|
|
16
|
+
## 1.37.2-alpha.0
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Moved shared voice primitives and route metadata into the new `@internal/voice` package so voice providers no longer depend on `@mastra/core` and server voice routes share the same route definitions. ([#16725](https://github.com/mastra-ai/mastra/pull/16725))
|
|
21
|
+
|
|
22
|
+
`@mastra/core/voice` continues to re-export the voice APIs for backwards compatibility.
|
|
23
|
+
|
|
24
|
+
- Updated dependencies [[`07c3de7`](https://github.com/mastra-ai/mastra/commit/07c3de7f7bc418beccaea3b5e6b7f7cdda79d492)]:
|
|
25
|
+
- @mastra/core@1.37.2-alpha.0
|
|
26
|
+
|
|
27
|
+
## 1.37.1
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- Updated dependencies [[`21db1a4`](https://github.com/mastra-ai/mastra/commit/21db1a4b8ac058d5a4fbe38b516cc1b81e526915)]:
|
|
32
|
+
- @mastra/core@1.37.1
|
|
33
|
+
|
|
3
34
|
## 1.37.0
|
|
4
35
|
|
|
5
36
|
### Minor Changes
|
package/dist/_types/@internal_voice/dist/_types/@internal_core/dist/request-context/index.d.ts
ADDED
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
type RecordToTuple<T> = {
|
|
2
|
+
[K in keyof T]: [K, T[K]];
|
|
3
|
+
}[keyof T][];
|
|
4
|
+
/**
|
|
5
|
+
* Reserved key for setting resourceId from middleware.
|
|
6
|
+
* When set in RequestContext, this takes precedence over client-provided values
|
|
7
|
+
* for security (prevents attackers from hijacking another user's memory).
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```typescript
|
|
11
|
+
* // In your auth middleware:
|
|
12
|
+
* const requestContext = c.get('requestContext');
|
|
13
|
+
* requestContext.set(MASTRA_RESOURCE_ID_KEY, authenticatedUser.id);
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
declare const MASTRA_RESOURCE_ID_KEY = "mastra__resourceId";
|
|
17
|
+
/**
|
|
18
|
+
* Reserved key for setting threadId from middleware.
|
|
19
|
+
* When set in RequestContext, this takes precedence over client-provided values
|
|
20
|
+
* for security (prevents attackers from hijacking another user's memory).
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```typescript
|
|
24
|
+
* // In your auth middleware:
|
|
25
|
+
* const requestContext = c.get('requestContext');
|
|
26
|
+
* requestContext.set(MASTRA_THREAD_ID_KEY, threadId);
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
declare const MASTRA_THREAD_ID_KEY = "mastra__threadId";
|
|
30
|
+
/**
|
|
31
|
+
* Reserved key for storing version overrides on RequestContext.
|
|
32
|
+
* When set, sub-agent delegation resolves versioned agents from these overrides.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```typescript
|
|
36
|
+
* requestContext.set(MASTRA_VERSIONS_KEY, {
|
|
37
|
+
* agents: { 'researcher-agent': { versionId: '123' } },
|
|
38
|
+
* });
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
declare const MASTRA_VERSIONS_KEY = "mastra__versions";
|
|
42
|
+
/**
|
|
43
|
+
* Reserved key for storing the raw auth token from the incoming request.
|
|
44
|
+
* Used by the editor to forward authentication when connecting to MCP servers
|
|
45
|
+
* that require the same auth as the Mastra server itself.
|
|
46
|
+
*/
|
|
47
|
+
declare const MASTRA_AUTH_TOKEN_KEY = "mastra__authToken";
|
|
48
|
+
type VersionSelector = {
|
|
49
|
+
versionId: string;
|
|
50
|
+
} | {
|
|
51
|
+
status: 'draft' | 'published';
|
|
52
|
+
};
|
|
53
|
+
type VersionOverrides = {
|
|
54
|
+
agents?: Record<string, VersionSelector>;
|
|
55
|
+
/** Fallback status for sub-agents (and future primitives) without an explicit entry. */
|
|
56
|
+
defaultStatus?: 'draft' | 'published';
|
|
57
|
+
};
|
|
58
|
+
declare function mergeVersionOverrides(base?: VersionOverrides, overrides?: VersionOverrides): VersionOverrides | undefined;
|
|
59
|
+
declare class RequestContext<Values extends Record<string, any> | unknown = unknown> {
|
|
60
|
+
private registry;
|
|
61
|
+
constructor(iterable?: Values extends Record<string, any> ? RecordToTuple<Partial<Values>> : Iterable<readonly [string, unknown]>);
|
|
62
|
+
/**
|
|
63
|
+
* set a value with strict typing if `Values` is a Record and the key exists in it.
|
|
64
|
+
*/
|
|
65
|
+
set<K extends Values extends Record<string, any> ? keyof Values : string>(key: K, value: Values extends Record<string, any> ? (K extends keyof Values ? Values[K] : never) : unknown): void;
|
|
66
|
+
/**
|
|
67
|
+
* Get a value with its type
|
|
68
|
+
*/
|
|
69
|
+
get<K extends Values extends Record<string, any> ? keyof Values : string, R = Values extends Record<string, any> ? (K extends keyof Values ? Values[K] : never) : unknown>(key: K): R;
|
|
70
|
+
/**
|
|
71
|
+
* Check if a key exists in the container
|
|
72
|
+
*/
|
|
73
|
+
has<K extends Values extends Record<string, any> ? keyof Values : string>(key: K): boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Delete a value by key
|
|
76
|
+
*/
|
|
77
|
+
delete<K extends Values extends Record<string, any> ? keyof Values : string>(key: K): boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Clear all values from the container
|
|
80
|
+
*/
|
|
81
|
+
clear(): void;
|
|
82
|
+
/**
|
|
83
|
+
* Get all keys in the container
|
|
84
|
+
*/
|
|
85
|
+
keys(): IterableIterator<Values extends Record<string, any> ? keyof Values : string>;
|
|
86
|
+
/**
|
|
87
|
+
* Get all values in the container
|
|
88
|
+
*/
|
|
89
|
+
values(): IterableIterator<Values extends Record<string, any> ? Values[keyof Values] : unknown>;
|
|
90
|
+
/**
|
|
91
|
+
* Get all entries in the container.
|
|
92
|
+
* Returns a discriminated union of tuples for proper type narrowing when iterating.
|
|
93
|
+
*/
|
|
94
|
+
entries(): IterableIterator<Values extends Record<string, any> ? {
|
|
95
|
+
[K in keyof Values]: [K, Values[K]];
|
|
96
|
+
}[keyof Values] : [string, unknown]>;
|
|
97
|
+
/**
|
|
98
|
+
* Get the size of the container
|
|
99
|
+
*/
|
|
100
|
+
size(): number;
|
|
101
|
+
/**
|
|
102
|
+
* Execute a function for each entry in the container.
|
|
103
|
+
* The callback receives properly typed key-value pairs.
|
|
104
|
+
*/
|
|
105
|
+
forEach<K extends Values extends Record<string, any> ? keyof Values : string>(callbackfn: (value: Values extends Record<string, any> ? (K extends keyof Values ? Values[K] : unknown) : unknown, key: K, map: Map<string, unknown>) => void): void;
|
|
106
|
+
/**
|
|
107
|
+
* Custom JSON serialization method.
|
|
108
|
+
* Converts the internal Map to a plain object for proper JSON serialization.
|
|
109
|
+
* Non-serializable values (functions, symbols, RPC proxies, in-value
|
|
110
|
+
* circular references, and values whose serialization re-enters this
|
|
111
|
+
* `toJSON` via cross-context back-references) are skipped to prevent
|
|
112
|
+
* serialization errors when storing to database.
|
|
113
|
+
*
|
|
114
|
+
* Reentry safety: if a stored value's `isSerializable` probe re-enters
|
|
115
|
+
* `toJSON()` on this same instance (through a chain of RequestContexts
|
|
116
|
+
* holding references to each other), we throw `CyclicRequestContextToJSONError`.
|
|
117
|
+
* Inner `isSerializable` calls re-throw the marker; the outermost
|
|
118
|
+
* `isSerializable` swallows it and filters the offending key, the same
|
|
119
|
+
* way it filters in-value circular references today.
|
|
120
|
+
*/
|
|
121
|
+
toJSON(): Record<string, any>;
|
|
122
|
+
/**
|
|
123
|
+
* Check if a value can be safely serialized to JSON.
|
|
124
|
+
*
|
|
125
|
+
* Re-throws `CyclicRequestContextToJSONError` when called from a nested
|
|
126
|
+
* `toJSON()` (`_toJSONDepth > 1`), so the marker propagates up to the
|
|
127
|
+
* outermost `toJSON()`'s `isSerializable`, which then swallows it and
|
|
128
|
+
* filters the offending key. This is what lets the outermost call return
|
|
129
|
+
* a clean JSON-safe dict for cross-context cycles.
|
|
130
|
+
*/
|
|
131
|
+
private isSerializable;
|
|
132
|
+
/**
|
|
133
|
+
* Get all values as a typed object for destructuring.
|
|
134
|
+
* Returns Record<string, any> when untyped, or the Values type when typed.
|
|
135
|
+
*
|
|
136
|
+
* @example
|
|
137
|
+
* ```typescript
|
|
138
|
+
* const ctx = new RequestContext<{ userId: string; apiKey: string }>();
|
|
139
|
+
* ctx.set('userId', 'user-123');
|
|
140
|
+
* ctx.set('apiKey', 'key-456');
|
|
141
|
+
* const { userId, apiKey } = ctx.all;
|
|
142
|
+
* ```
|
|
143
|
+
*/
|
|
144
|
+
get all(): Values extends Record<string, any> ? Values : Record<string, any>;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export { MASTRA_AUTH_TOKEN_KEY, MASTRA_RESOURCE_ID_KEY, MASTRA_THREAD_ID_KEY, MASTRA_VERSIONS_KEY, RequestContext, type VersionOverrides, type VersionSelector, mergeVersionOverrides };
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import * as z from '../../../zod/v4/index.d.cts';
|
|
2
|
+
import { RequestContext } from '../request-context/index.js';
|
|
3
|
+
import { ToolsInput } from '../types/index.js';
|
|
4
|
+
|
|
5
|
+
interface OpenAPIRoute {
|
|
6
|
+
summary?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
tags?: string[];
|
|
9
|
+
deprecated?: boolean;
|
|
10
|
+
requestParams?: {
|
|
11
|
+
path?: z.ZodSchema;
|
|
12
|
+
query?: z.ZodSchema;
|
|
13
|
+
};
|
|
14
|
+
requestBody?: {
|
|
15
|
+
content: {
|
|
16
|
+
'application/json': {
|
|
17
|
+
schema: z.ZodSchema;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
responses: {
|
|
22
|
+
[statusCode: string]: {
|
|
23
|
+
description: string;
|
|
24
|
+
content?: {
|
|
25
|
+
'application/json': {
|
|
26
|
+
schema: z.ZodSchema;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
interface RouteOpenAPIConfig {
|
|
33
|
+
method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
|
|
34
|
+
path: string;
|
|
35
|
+
summary?: string;
|
|
36
|
+
description?: string;
|
|
37
|
+
tags?: string[];
|
|
38
|
+
pathParamSchema?: z.ZodSchema;
|
|
39
|
+
queryParamSchema?: z.ZodSchema;
|
|
40
|
+
bodySchema?: z.ZodSchema;
|
|
41
|
+
responseSchema?: z.ZodSchema;
|
|
42
|
+
deprecated?: boolean;
|
|
43
|
+
}
|
|
44
|
+
declare function generateRouteOpenAPI({ method, path, summary, description, tags, pathParamSchema, queryParamSchema, bodySchema, responseSchema, deprecated, }: RouteOpenAPIConfig): OpenAPIRoute;
|
|
45
|
+
type ResponseType = 'stream' | 'json' | 'datastream-response' | 'mcp-http' | 'mcp-sse';
|
|
46
|
+
type InferParams<TPathSchema extends z.ZodTypeAny | undefined, TQuerySchema extends z.ZodTypeAny | undefined, TBodySchema extends z.ZodTypeAny | undefined> = (TPathSchema extends z.ZodTypeAny ? z.infer<TPathSchema> : {}) & (TQuerySchema extends z.ZodTypeAny ? z.infer<TQuerySchema> : {}) & (TBodySchema extends z.ZodTypeAny ? z.infer<TBodySchema> : {});
|
|
47
|
+
interface RouteSchemas<TPathSchema = unknown, TQuerySchema = unknown, TBodySchema = unknown, TResponseSchema = unknown> {
|
|
48
|
+
readonly pathParams: TPathSchema;
|
|
49
|
+
readonly queryParams: TQuerySchema;
|
|
50
|
+
readonly body: TBodySchema;
|
|
51
|
+
readonly response: TResponseSchema;
|
|
52
|
+
}
|
|
53
|
+
type ServerContext = {
|
|
54
|
+
mastra: any;
|
|
55
|
+
requestContext: RequestContext;
|
|
56
|
+
registeredTools?: ToolsInput;
|
|
57
|
+
taskStore?: unknown;
|
|
58
|
+
abortSignal: AbortSignal;
|
|
59
|
+
routePrefix?: string;
|
|
60
|
+
};
|
|
61
|
+
type ServerRouteHandler<TParams = Record<string, unknown>, TResponse = unknown, TResponseType extends ResponseType = 'json'> = (params: TParams & ServerContext) => Promise<TResponseType extends 'stream' ? ReadableStream : TResponseType extends 'datastream-response' ? Response : TResponse>;
|
|
62
|
+
type ValidationErrorHook = (error: z.ZodError) => {
|
|
63
|
+
status?: number;
|
|
64
|
+
body?: unknown;
|
|
65
|
+
} | void;
|
|
66
|
+
type ServerRoute<TParams = Record<string, unknown>, TResponse = unknown, TResponseType extends ResponseType = ResponseType, TSchemas extends RouteSchemas = RouteSchemas, TMethod extends string = string, TPath extends string = string> = {
|
|
67
|
+
method: TMethod;
|
|
68
|
+
path: TPath;
|
|
69
|
+
responseType: TResponseType;
|
|
70
|
+
streamFormat?: 'sse' | 'stream';
|
|
71
|
+
sseFlushOnConnect?: boolean;
|
|
72
|
+
handler(params: TParams & ServerContext): ReturnType<ServerRouteHandler<TParams, TResponse, TResponseType>>;
|
|
73
|
+
pathParamSchema?: z.ZodSchema;
|
|
74
|
+
queryParamSchema?: z.ZodSchema;
|
|
75
|
+
bodySchema?: z.ZodSchema;
|
|
76
|
+
responseSchema?: z.ZodSchema;
|
|
77
|
+
openapi?: OpenAPIRoute;
|
|
78
|
+
maxBodySize?: number;
|
|
79
|
+
deprecated?: boolean;
|
|
80
|
+
requiresAuth?: boolean;
|
|
81
|
+
requiresPermission?: any;
|
|
82
|
+
fga?: any;
|
|
83
|
+
onValidationError?: ValidationErrorHook;
|
|
84
|
+
readonly __schemas?: TSchemas;
|
|
85
|
+
};
|
|
86
|
+
interface RouteConfig<TPathSchema extends z.ZodTypeAny | undefined = undefined, TQuerySchema extends z.ZodTypeAny | undefined = undefined, TBodySchema extends z.ZodTypeAny | undefined = undefined, TResponseSchema extends z.ZodTypeAny | undefined = undefined, TResponseType extends ResponseType = 'json', TMethod extends string = string, TPath extends string = string> {
|
|
87
|
+
method: TMethod;
|
|
88
|
+
path: TPath;
|
|
89
|
+
responseType: TResponseType;
|
|
90
|
+
streamFormat?: 'sse' | 'stream';
|
|
91
|
+
sseFlushOnConnect?: boolean;
|
|
92
|
+
handler: ServerRouteHandler<InferParams<TPathSchema, TQuerySchema, TBodySchema>, TResponseSchema extends z.ZodTypeAny ? z.infer<TResponseSchema> : unknown, TResponseType>;
|
|
93
|
+
pathParamSchema?: TPathSchema;
|
|
94
|
+
queryParamSchema?: TQuerySchema;
|
|
95
|
+
bodySchema?: TBodySchema;
|
|
96
|
+
responseSchema?: TResponseSchema;
|
|
97
|
+
summary?: string;
|
|
98
|
+
description?: string;
|
|
99
|
+
tags?: string[];
|
|
100
|
+
deprecated?: boolean;
|
|
101
|
+
maxBodySize?: number;
|
|
102
|
+
requiresAuth?: boolean;
|
|
103
|
+
requiresPermission?: any;
|
|
104
|
+
fga?: any;
|
|
105
|
+
onValidationError?: ValidationErrorHook;
|
|
106
|
+
}
|
|
107
|
+
declare function createRoute<TPathSchema extends z.ZodTypeAny | undefined = undefined, TQuerySchema extends z.ZodTypeAny | undefined = undefined, TBodySchema extends z.ZodTypeAny | undefined = undefined, TResponseSchema extends z.ZodTypeAny | undefined = undefined, TResponseType extends ResponseType = 'json', TMethod extends string = string, TPath extends string = string>(config: RouteConfig<TPathSchema, TQuerySchema, TBodySchema, TResponseSchema, TResponseType, TMethod, TPath>): ServerRoute<InferParams<TPathSchema, TQuerySchema, TBodySchema>, TResponseSchema extends z.ZodTypeAny ? z.infer<TResponseSchema> : unknown, TResponseType, RouteSchemas<TPathSchema, TQuerySchema, TBodySchema, TResponseSchema>, TMethod, TPath>;
|
|
108
|
+
declare function createPublicRoute<TPathSchema extends z.ZodTypeAny | undefined = undefined, TQuerySchema extends z.ZodTypeAny | undefined = undefined, TBodySchema extends z.ZodTypeAny | undefined = undefined, TResponseSchema extends z.ZodTypeAny | undefined = undefined, TResponseType extends ResponseType = 'json', TMethod extends string = string, TPath extends string = string>(config: Omit<RouteConfig<TPathSchema, TQuerySchema, TBodySchema, TResponseSchema, TResponseType, TMethod, TPath>, 'requiresAuth'>): ServerRoute<InferParams<TPathSchema, TQuerySchema, TBodySchema>, TResponseSchema extends z.ZodTypeAny ? z.infer<TResponseSchema> : unknown, TResponseType, RouteSchemas<TPathSchema, TQuerySchema, TBodySchema, TResponseSchema>, TMethod, TPath>;
|
|
109
|
+
|
|
110
|
+
export { type InferParams, type OpenAPIRoute, type ResponseType, type RouteSchemas, type ServerContext, type ServerRoute, type ServerRouteHandler, type ValidationErrorHook, createPublicRoute, createRoute, generateRouteOpenAPI };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { _lt as lt, _lte as lte, _gt as gt, _gte as gte, _positive as positive, _negative as negative, _nonpositive as nonpositive, _nonnegative as nonnegative, _multipleOf as multipleOf, _maxSize as maxSize, _minSize as minSize, _size as size, _maxLength as maxLength, _minLength as minLength, _length as length, _regex as regex, _lowercase as lowercase, _uppercase as uppercase, _includes as includes, _startsWith as startsWith, _endsWith as endsWith, _property as property, _mime as mime, _overwrite as overwrite, _normalize as normalize, _trim as trim, _toLowerCase as toLowerCase, _toUpperCase as toUpperCase, _slugify as slugify, type $RefinementCtx as RefinementCtx, } from "../core/index.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as core from "../core/index.js";
|
|
2
|
+
import * as schemas from "./schemas.js";
|
|
3
|
+
export interface ZodCoercedString<T = unknown> extends schemas._ZodString<core.$ZodStringInternals<T>> {
|
|
4
|
+
}
|
|
5
|
+
export declare function string<T = unknown>(params?: string | core.$ZodStringParams): ZodCoercedString<T>;
|
|
6
|
+
export interface ZodCoercedNumber<T = unknown> extends schemas._ZodNumber<core.$ZodNumberInternals<T>> {
|
|
7
|
+
}
|
|
8
|
+
export declare function number<T = unknown>(params?: string | core.$ZodNumberParams): ZodCoercedNumber<T>;
|
|
9
|
+
export interface ZodCoercedBoolean<T = unknown> extends schemas._ZodBoolean<core.$ZodBooleanInternals<T>> {
|
|
10
|
+
}
|
|
11
|
+
export declare function boolean<T = unknown>(params?: string | core.$ZodBooleanParams): ZodCoercedBoolean<T>;
|
|
12
|
+
export interface ZodCoercedBigInt<T = unknown> extends schemas._ZodBigInt<core.$ZodBigIntInternals<T>> {
|
|
13
|
+
}
|
|
14
|
+
export declare function bigint<T = unknown>(params?: string | core.$ZodBigIntParams): ZodCoercedBigInt<T>;
|
|
15
|
+
export interface ZodCoercedDate<T = unknown> extends schemas._ZodDate<core.$ZodDateInternals<T>> {
|
|
16
|
+
}
|
|
17
|
+
export declare function date<T = unknown>(params?: string | core.$ZodDateParams): ZodCoercedDate<T>;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as core from "../core/index.js";
|
|
2
|
+
import type { ZodType } from "./schemas.js";
|
|
3
|
+
export type {
|
|
4
|
+
/** @deprecated Use `z.output<T>` instead. */
|
|
5
|
+
output as TypeOf,
|
|
6
|
+
/** @deprecated Use `z.output<T>` instead. */
|
|
7
|
+
output as Infer,
|
|
8
|
+
/** @deprecated Use `z.core.$$ZodFirstPartyTypes` instead */
|
|
9
|
+
$ZodTypes as ZodFirstPartySchemaTypes, } from "../core/index.js";
|
|
10
|
+
/** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
|
|
11
|
+
export declare const ZodIssueCode: {
|
|
12
|
+
readonly invalid_type: "invalid_type";
|
|
13
|
+
readonly too_big: "too_big";
|
|
14
|
+
readonly too_small: "too_small";
|
|
15
|
+
readonly invalid_format: "invalid_format";
|
|
16
|
+
readonly not_multiple_of: "not_multiple_of";
|
|
17
|
+
readonly unrecognized_keys: "unrecognized_keys";
|
|
18
|
+
readonly invalid_union: "invalid_union";
|
|
19
|
+
readonly invalid_key: "invalid_key";
|
|
20
|
+
readonly invalid_element: "invalid_element";
|
|
21
|
+
readonly invalid_value: "invalid_value";
|
|
22
|
+
readonly custom: "custom";
|
|
23
|
+
};
|
|
24
|
+
/** @deprecated Use `z.$ZodFlattenedError` */
|
|
25
|
+
export type inferFlattenedErrors<T extends core.$ZodType, U = string> = core.$ZodFlattenedError<core.output<T>, U>;
|
|
26
|
+
/** @deprecated Use `z.$ZodFormattedError` */
|
|
27
|
+
export type inferFormattedError<T extends core.$ZodType<any, any>, U = string> = core.$ZodFormattedError<core.output<T>, U>;
|
|
28
|
+
/** Use `z.$brand` instead */
|
|
29
|
+
export type BRAND<T extends string | number | symbol = string | number | symbol> = {
|
|
30
|
+
[core.$brand]: {
|
|
31
|
+
[k in T]: true;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export { $brand, config } from "../core/index.js";
|
|
35
|
+
/** @deprecated Use `z.config(params)` instead. */
|
|
36
|
+
export declare function setErrorMap(map: core.$ZodErrorMap): void;
|
|
37
|
+
/** @deprecated Use `z.config()` instead. */
|
|
38
|
+
export declare function getErrorMap(): core.$ZodErrorMap<core.$ZodIssue> | undefined;
|
|
39
|
+
export type {
|
|
40
|
+
/** @deprecated Use z.ZodType (without generics) instead. */
|
|
41
|
+
ZodType as ZodTypeAny,
|
|
42
|
+
/** @deprecated Use `z.ZodType` */
|
|
43
|
+
ZodType as ZodSchema,
|
|
44
|
+
/** @deprecated Use `z.ZodType` */
|
|
45
|
+
ZodType as Schema, };
|
|
46
|
+
/** Included for Zod 3 compatibility */
|
|
47
|
+
export type ZodRawShape = core.$ZodShape;
|
|
48
|
+
/** @deprecated Do not use. Stub definition, only included for zod-to-json-schema compatibility. */
|
|
49
|
+
export declare enum ZodFirstPartyTypeKind {
|
|
50
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as core from "../core/index.js";
|
|
2
|
+
import { $ZodError } from "../core/index.js";
|
|
3
|
+
/** @deprecated Use `z.core.$ZodIssue` from `@zod/core` instead, especially if you are building a library on top of Zod. */
|
|
4
|
+
export type ZodIssue = core.$ZodIssue;
|
|
5
|
+
/** An Error-like class used to store Zod validation issues. */
|
|
6
|
+
export interface ZodError<T = unknown> extends $ZodError<T> {
|
|
7
|
+
/** @deprecated Use the `z.treeifyError(err)` function instead. */
|
|
8
|
+
format(): core.$ZodFormattedError<T>;
|
|
9
|
+
format<U>(mapper: (issue: core.$ZodIssue) => U): core.$ZodFormattedError<T, U>;
|
|
10
|
+
/** @deprecated Use the `z.treeifyError(err)` function instead. */
|
|
11
|
+
flatten(): core.$ZodFlattenedError<T>;
|
|
12
|
+
flatten<U>(mapper: (issue: core.$ZodIssue) => U): core.$ZodFlattenedError<T, U>;
|
|
13
|
+
/** @deprecated Push directly to `.issues` instead. */
|
|
14
|
+
addIssue(issue: core.$ZodIssue): void;
|
|
15
|
+
/** @deprecated Push directly to `.issues` instead. */
|
|
16
|
+
addIssues(issues: core.$ZodIssue[]): void;
|
|
17
|
+
/** @deprecated Check `err.issues.length === 0` instead. */
|
|
18
|
+
isEmpty: boolean;
|
|
19
|
+
}
|
|
20
|
+
export declare const ZodError: core.$constructor<ZodError>;
|
|
21
|
+
export declare const ZodRealError: core.$constructor<ZodError>;
|
|
22
|
+
export type {
|
|
23
|
+
/** @deprecated Use `z.core.$ZodFlattenedError` instead. */
|
|
24
|
+
$ZodFlattenedError as ZodFlattenedError,
|
|
25
|
+
/** @deprecated Use `z.core.$ZodFormattedError` instead. */
|
|
26
|
+
$ZodFormattedError as ZodFormattedError,
|
|
27
|
+
/** @deprecated Use `z.core.$ZodErrorMap` instead. */
|
|
28
|
+
$ZodErrorMap as ZodErrorMap, } from "../core/index.js";
|
|
29
|
+
/** @deprecated Use `z.core.$ZodRawIssue` instead. */
|
|
30
|
+
export type IssueData = core.$ZodRawIssue;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export * as core from "../core/index.js";
|
|
2
|
+
export * from "./schemas.js";
|
|
3
|
+
export * from "./checks.js";
|
|
4
|
+
export * from "./errors.js";
|
|
5
|
+
export * from "./parse.js";
|
|
6
|
+
export * from "./compat.js";
|
|
7
|
+
export type { infer, output, input } from "../core/index.js";
|
|
8
|
+
export type { JSONType } from "../core/util.js";
|
|
9
|
+
export { globalRegistry, type GlobalMeta, registry, config, $output, $input, $brand, clone, regexes, treeifyError, prettifyError, formatError, flattenError, TimePrecision, util, NEVER, } from "../core/index.js";
|
|
10
|
+
export { toJSONSchema } from "../core/json-schema-processors.js";
|
|
11
|
+
export { fromJSONSchema } from "./from-json-schema.js";
|
|
12
|
+
export * as locales from "../locales/index.js";
|
|
13
|
+
export { ZodISODateTime, ZodISODate, ZodISOTime, ZodISODuration } from "./iso.js";
|
|
14
|
+
export * as iso from "./iso.js";
|
|
15
|
+
export type { ZodCoercedString, ZodCoercedNumber, ZodCoercedBigInt, ZodCoercedBoolean, ZodCoercedDate, } from "./coerce.js";
|
|
16
|
+
export * as coerce from "./coerce.js";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as JSONSchema from "../core/json-schema.js";
|
|
2
|
+
import { type $ZodRegistry } from "../core/registries.js";
|
|
3
|
+
import type { ZodType } from "./schemas.js";
|
|
4
|
+
type JSONSchemaVersion = "draft-2020-12" | "draft-7" | "draft-4" | "openapi-3.0";
|
|
5
|
+
interface FromJSONSchemaParams {
|
|
6
|
+
defaultTarget?: JSONSchemaVersion;
|
|
7
|
+
registry?: $ZodRegistry<any>;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Converts a JSON Schema to a Zod schema. This function should be considered semi-experimental. It's behavior is liable to change. */
|
|
11
|
+
export declare function fromJSONSchema(schema: JSONSchema.JSONSchema | boolean, params?: FromJSONSchemaParams): ZodType;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as core from "../core/index.js";
|
|
2
|
+
import * as schemas from "./schemas.js";
|
|
3
|
+
export interface ZodISODateTime extends schemas.ZodStringFormat {
|
|
4
|
+
_zod: core.$ZodISODateTimeInternals;
|
|
5
|
+
}
|
|
6
|
+
export declare const ZodISODateTime: core.$constructor<ZodISODateTime>;
|
|
7
|
+
export declare function datetime(params?: string | core.$ZodISODateTimeParams): ZodISODateTime;
|
|
8
|
+
export interface ZodISODate extends schemas.ZodStringFormat {
|
|
9
|
+
_zod: core.$ZodISODateInternals;
|
|
10
|
+
}
|
|
11
|
+
export declare const ZodISODate: core.$constructor<ZodISODate>;
|
|
12
|
+
export declare function date(params?: string | core.$ZodISODateParams): ZodISODate;
|
|
13
|
+
export interface ZodISOTime extends schemas.ZodStringFormat {
|
|
14
|
+
_zod: core.$ZodISOTimeInternals;
|
|
15
|
+
}
|
|
16
|
+
export declare const ZodISOTime: core.$constructor<ZodISOTime>;
|
|
17
|
+
export declare function time(params?: string | core.$ZodISOTimeParams): ZodISOTime;
|
|
18
|
+
export interface ZodISODuration extends schemas.ZodStringFormat {
|
|
19
|
+
_zod: core.$ZodISODurationInternals;
|
|
20
|
+
}
|
|
21
|
+
export declare const ZodISODuration: core.$constructor<ZodISODuration>;
|
|
22
|
+
export declare function duration(params?: string | core.$ZodISODurationParams): ZodISODuration;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as core from "../core/index.js";
|
|
2
|
+
import { type ZodError } from "./errors.js";
|
|
3
|
+
export type ZodSafeParseResult<T> = ZodSafeParseSuccess<T> | ZodSafeParseError<T>;
|
|
4
|
+
export type ZodSafeParseSuccess<T> = {
|
|
5
|
+
success: true;
|
|
6
|
+
data: T;
|
|
7
|
+
error?: never;
|
|
8
|
+
};
|
|
9
|
+
export type ZodSafeParseError<T> = {
|
|
10
|
+
success: false;
|
|
11
|
+
data?: never;
|
|
12
|
+
error: ZodError<T>;
|
|
13
|
+
};
|
|
14
|
+
export declare const parse: <T extends core.$ZodType>(schema: T, value: unknown, _ctx?: core.ParseContext<core.$ZodIssue>, _params?: {
|
|
15
|
+
callee?: core.util.AnyFunc;
|
|
16
|
+
Err?: core.$ZodErrorClass;
|
|
17
|
+
}) => core.output<T>;
|
|
18
|
+
export declare const parseAsync: <T extends core.$ZodType>(schema: T, value: unknown, _ctx?: core.ParseContext<core.$ZodIssue>, _params?: {
|
|
19
|
+
callee?: core.util.AnyFunc;
|
|
20
|
+
Err?: core.$ZodErrorClass;
|
|
21
|
+
}) => Promise<core.output<T>>;
|
|
22
|
+
export declare const safeParse: <T extends core.$ZodType>(schema: T, value: unknown, _ctx?: core.ParseContext<core.$ZodIssue>) => ZodSafeParseResult<core.output<T>>;
|
|
23
|
+
export declare const safeParseAsync: <T extends core.$ZodType>(schema: T, value: unknown, _ctx?: core.ParseContext<core.$ZodIssue>) => Promise<ZodSafeParseResult<core.output<T>>>;
|
|
24
|
+
export declare const encode: <T extends core.$ZodType>(schema: T, value: core.output<T>, _ctx?: core.ParseContext<core.$ZodIssue>) => core.input<T>;
|
|
25
|
+
export declare const decode: <T extends core.$ZodType>(schema: T, value: core.input<T>, _ctx?: core.ParseContext<core.$ZodIssue>) => core.output<T>;
|
|
26
|
+
export declare const encodeAsync: <T extends core.$ZodType>(schema: T, value: core.output<T>, _ctx?: core.ParseContext<core.$ZodIssue>) => Promise<core.input<T>>;
|
|
27
|
+
export declare const decodeAsync: <T extends core.$ZodType>(schema: T, value: core.input<T>, _ctx?: core.ParseContext<core.$ZodIssue>) => Promise<core.output<T>>;
|
|
28
|
+
export declare const safeEncode: <T extends core.$ZodType>(schema: T, value: core.output<T>, _ctx?: core.ParseContext<core.$ZodIssue>) => ZodSafeParseResult<core.input<T>>;
|
|
29
|
+
export declare const safeDecode: <T extends core.$ZodType>(schema: T, value: core.input<T>, _ctx?: core.ParseContext<core.$ZodIssue>) => ZodSafeParseResult<core.output<T>>;
|
|
30
|
+
export declare const safeEncodeAsync: <T extends core.$ZodType>(schema: T, value: core.output<T>, _ctx?: core.ParseContext<core.$ZodIssue>) => Promise<ZodSafeParseResult<core.input<T>>>;
|
|
31
|
+
export declare const safeDecodeAsync: <T extends core.$ZodType>(schema: T, value: core.input<T>, _ctx?: core.ParseContext<core.$ZodIssue>) => Promise<ZodSafeParseResult<core.output<T>>>;
|