@mastra/server 1.36.1-alpha.0 → 1.37.0-alpha.2
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 +14 -0
- package/dist/_types/@mastra_schema-compat/dist/_types/@internal_ai-sdk-v4/dist/index.d.ts +7608 -0
- package/dist/_types/@mastra_schema-compat/dist/_types/@internal_ai-sdk-v5/dist/index.d.ts +9043 -0
- package/dist/_types/@mastra_schema-compat/dist/_types/@internal_ai-v6/dist/index.d.ts +13682 -0
- package/dist/_types/@mastra_schema-compat/dist/_types/@standard-schema_spec/dist/index.d.ts +119 -0
- package/dist/_types/@mastra_schema-compat/dist/index.d.ts +19 -0
- package/dist/_types/@mastra_schema-compat/dist/null-to-undefined.d.ts +24 -0
- package/dist/_types/@mastra_schema-compat/dist/provider-compats/anthropic.d.ts +20 -0
- package/dist/_types/@mastra_schema-compat/dist/provider-compats/deepseek.d.ts +21 -0
- package/dist/_types/@mastra_schema-compat/dist/provider-compats/google.d.ts +23 -0
- package/dist/_types/@mastra_schema-compat/dist/provider-compats/meta.d.ts +21 -0
- package/dist/_types/@mastra_schema-compat/dist/provider-compats/openai-reasoning.d.ts +10 -0
- package/dist/_types/@mastra_schema-compat/dist/provider-compats/openai.d.ts +25 -0
- package/dist/_types/@mastra_schema-compat/dist/schema-compatibility-v3.d.ts +315 -0
- package/dist/_types/@mastra_schema-compat/dist/schema-compatibility-v4.d.ts +304 -0
- package/dist/_types/@mastra_schema-compat/dist/schema-compatibility.d.ts +147 -0
- package/dist/_types/@mastra_schema-compat/dist/schema.d.ts +4 -0
- package/dist/_types/@mastra_schema-compat/dist/schema.types.d.ts +19 -0
- package/dist/_types/@mastra_schema-compat/dist/standard-schema/standard-schema.d.ts +107 -0
- package/dist/_types/@mastra_schema-compat/dist/standard-schema/standard-schema.types.d.ts +24 -0
- package/dist/_types/@mastra_schema-compat/dist/standard-schema-compat.d.ts +74 -0
- package/dist/_types/@mastra_schema-compat/dist/types.d.ts +6 -0
- package/dist/_types/@mastra_schema-compat/dist/utils.d.ts +96 -0
- package/dist/_types/@mastra_schema-compat/dist/zod-to-json.d.ts +17 -0
- package/dist/{api-schema-manifest-Q6PMJOZ7.js → api-schema-manifest-QGETGMBO.js} +4 -4
- package/dist/{api-schema-manifest-Q6PMJOZ7.js.map → api-schema-manifest-QGETGMBO.js.map} +1 -1
- package/dist/{api-schema-manifest-LPJBQXPS.cjs → api-schema-manifest-QSCOKBA7.cjs} +6 -6
- package/dist/{api-schema-manifest-LPJBQXPS.cjs.map → api-schema-manifest-QSCOKBA7.cjs.map} +1 -1
- package/dist/{chunk-KFG4YQ6B.js → chunk-226WXBRR.js} +5 -5
- package/dist/{chunk-KFG4YQ6B.js.map → chunk-226WXBRR.js.map} +1 -1
- package/dist/{chunk-4KSV4WWQ.js → chunk-42P4N3DD.js} +3 -3
- package/dist/{chunk-4KSV4WWQ.js.map → chunk-42P4N3DD.js.map} +1 -1
- package/dist/{chunk-G5LQCOFZ.js → chunk-4TOPLN4A.js} +4 -4
- package/dist/{chunk-G5LQCOFZ.js.map → chunk-4TOPLN4A.js.map} +1 -1
- package/dist/{chunk-IVH5F5HB.cjs → chunk-4WDE5KPN.cjs} +68 -68
- package/dist/{chunk-IVH5F5HB.cjs.map → chunk-4WDE5KPN.cjs.map} +1 -1
- package/dist/{chunk-2JXX4IPC.js → chunk-5AHL2NUD.js} +3 -3
- package/dist/{chunk-2JXX4IPC.js.map → chunk-5AHL2NUD.js.map} +1 -1
- package/dist/{chunk-4G7S52U3.cjs → chunk-5MXFNG6G.cjs} +5 -5
- package/dist/{chunk-4G7S52U3.cjs.map → chunk-5MXFNG6G.cjs.map} +1 -1
- package/dist/{chunk-6JCLSYOU.js → chunk-5PDA7RRM.js} +3 -3
- package/dist/{chunk-6JCLSYOU.js.map → chunk-5PDA7RRM.js.map} +1 -1
- package/dist/{chunk-UAMUMYGG.js → chunk-5V23VBXY.js} +6 -6
- package/dist/{chunk-UAMUMYGG.js.map → chunk-5V23VBXY.js.map} +1 -1
- package/dist/{chunk-V52ODUI3.js → chunk-5X52OI5N.js} +5 -5
- package/dist/{chunk-V52ODUI3.js.map → chunk-5X52OI5N.js.map} +1 -1
- package/dist/{chunk-CHOCR4YO.cjs → chunk-657QZ5WB.cjs} +34 -34
- package/dist/{chunk-CHOCR4YO.cjs.map → chunk-657QZ5WB.cjs.map} +1 -1
- package/dist/{chunk-4UFLVROK.cjs → chunk-6GNW5SFN.cjs} +13 -13
- package/dist/{chunk-4UFLVROK.cjs.map → chunk-6GNW5SFN.cjs.map} +1 -1
- package/dist/{chunk-OGYYXNGI.js → chunk-6L6ZOGEE.js} +3 -3
- package/dist/{chunk-OGYYXNGI.js.map → chunk-6L6ZOGEE.js.map} +1 -1
- package/dist/{chunk-PZCVWJ2I.js → chunk-6NT2SU7C.js} +5 -5
- package/dist/{chunk-PZCVWJ2I.js.map → chunk-6NT2SU7C.js.map} +1 -1
- package/dist/{chunk-QUVYOHFH.js → chunk-7TTCVVVF.js} +4 -4
- package/dist/{chunk-QUVYOHFH.js.map → chunk-7TTCVVVF.js.map} +1 -1
- package/dist/{chunk-DG5OAPEF.cjs → chunk-A73CYKBV.cjs} +6 -6
- package/dist/{chunk-DG5OAPEF.cjs.map → chunk-A73CYKBV.cjs.map} +1 -1
- package/dist/{chunk-5GI232FP.cjs → chunk-AFCYWNZO.cjs} +8 -8
- package/dist/{chunk-5GI232FP.cjs.map → chunk-AFCYWNZO.cjs.map} +1 -1
- package/dist/{chunk-G5YFX7SD.cjs → chunk-ANCX7VWY.cjs} +46 -46
- package/dist/{chunk-G5YFX7SD.cjs.map → chunk-ANCX7VWY.cjs.map} +1 -1
- package/dist/{chunk-NRSWA4Z5.js → chunk-ANQ4YGDG.js} +8 -8
- package/dist/{chunk-NRSWA4Z5.js.map → chunk-ANQ4YGDG.js.map} +1 -1
- package/dist/{chunk-CCL4C2ZO.js → chunk-B33WOUWI.js} +3 -3
- package/dist/{chunk-CCL4C2ZO.js.map → chunk-B33WOUWI.js.map} +1 -1
- package/dist/{chunk-DLRY7A4X.js → chunk-B62YX6H5.js} +6 -6
- package/dist/{chunk-DLRY7A4X.js.map → chunk-B62YX6H5.js.map} +1 -1
- package/dist/{chunk-UKZEL5TK.js → chunk-BCLXE5A6.js} +4 -4
- package/dist/{chunk-UKZEL5TK.js.map → chunk-BCLXE5A6.js.map} +1 -1
- package/dist/{chunk-V4ATNZXG.cjs → chunk-BQBKRPLD.cjs} +4 -4
- package/dist/{chunk-V4ATNZXG.cjs.map → chunk-BQBKRPLD.cjs.map} +1 -1
- package/dist/{chunk-XTFWFQZ7.cjs → chunk-BXTQ4QZA.cjs} +5 -5
- package/dist/{chunk-XTFWFQZ7.cjs.map → chunk-BXTQ4QZA.cjs.map} +1 -1
- package/dist/{chunk-YI3WMF2D.cjs → chunk-CZDLWIPQ.cjs} +3 -3
- package/dist/{chunk-YI3WMF2D.cjs.map → chunk-CZDLWIPQ.cjs.map} +1 -1
- package/dist/{chunk-WYP25ZMM.js → chunk-DSWUKENK.js} +3 -3
- package/dist/{chunk-WYP25ZMM.js.map → chunk-DSWUKENK.js.map} +1 -1
- package/dist/{chunk-FKQCQSXF.js → chunk-E5ZGN7GA.js} +5 -5
- package/dist/{chunk-FKQCQSXF.js.map → chunk-E5ZGN7GA.js.map} +1 -1
- package/dist/{chunk-SPGVPADY.js → chunk-EDKDBIHS.js} +3 -3
- package/dist/{chunk-SPGVPADY.js.map → chunk-EDKDBIHS.js.map} +1 -1
- package/dist/{chunk-KUPT7YFR.cjs → chunk-EGWQ36XF.cjs} +13 -13
- package/dist/{chunk-KUPT7YFR.cjs.map → chunk-EGWQ36XF.cjs.map} +1 -1
- package/dist/{chunk-XR3CGVKU.cjs → chunk-FTFHM5UT.cjs} +5 -5
- package/dist/{chunk-XR3CGVKU.cjs.map → chunk-FTFHM5UT.cjs.map} +1 -1
- package/dist/{chunk-WKUSPOUB.js → chunk-FWO6WNFE.js} +8 -8
- package/dist/{chunk-WKUSPOUB.js.map → chunk-FWO6WNFE.js.map} +1 -1
- package/dist/{chunk-F2FAL5CZ.js → chunk-G6NTGBOW.js} +3 -3
- package/dist/{chunk-F2FAL5CZ.js.map → chunk-G6NTGBOW.js.map} +1 -1
- package/dist/{chunk-AOWOCCSV.js → chunk-GAGNFJYS.js} +40 -40
- package/dist/{chunk-AOWOCCSV.js.map → chunk-GAGNFJYS.js.map} +1 -1
- package/dist/{chunk-FI5FIBFG.cjs → chunk-HLXI3E4I.cjs} +28 -28
- package/dist/{chunk-FI5FIBFG.cjs.map → chunk-HLXI3E4I.cjs.map} +1 -1
- package/dist/{chunk-X2IH3GWC.cjs → chunk-IPRUOF7I.cjs} +19 -19
- package/dist/{chunk-X2IH3GWC.cjs.map → chunk-IPRUOF7I.cjs.map} +1 -1
- package/dist/{chunk-CGBDH32D.cjs → chunk-J3BXNA2G.cjs} +10 -10
- package/dist/{chunk-CGBDH32D.cjs.map → chunk-J3BXNA2G.cjs.map} +1 -1
- package/dist/{chunk-CIAFOGUT.js → chunk-JA7S4TJR.js} +4 -4
- package/dist/{chunk-CIAFOGUT.js.map → chunk-JA7S4TJR.js.map} +1 -1
- package/dist/{chunk-KLESMQPZ.js → chunk-JGRMPXAX.js} +5 -5
- package/dist/{chunk-KLESMQPZ.js.map → chunk-JGRMPXAX.js.map} +1 -1
- package/dist/{chunk-FP3SA3LK.cjs → chunk-JHG52CBB.cjs} +28 -28
- package/dist/{chunk-FP3SA3LK.cjs.map → chunk-JHG52CBB.cjs.map} +1 -1
- package/dist/{chunk-X5I45TOD.cjs → chunk-JI66GIIH.cjs} +20 -20
- package/dist/{chunk-X5I45TOD.cjs.map → chunk-JI66GIIH.cjs.map} +1 -1
- package/dist/{chunk-V2NLRL23.cjs → chunk-JTGGDYGY.cjs} +28 -28
- package/dist/{chunk-V2NLRL23.cjs.map → chunk-JTGGDYGY.cjs.map} +1 -1
- package/dist/{chunk-P5ZWPVC2.js → chunk-JWJ4FFVU.js} +3 -3
- package/dist/{chunk-P5ZWPVC2.js.map → chunk-JWJ4FFVU.js.map} +1 -1
- package/dist/{chunk-UWUPLXZN.js → chunk-K66OW2AA.js} +6 -6
- package/dist/{chunk-UWUPLXZN.js.map → chunk-K66OW2AA.js.map} +1 -1
- package/dist/{chunk-HGRG2WVX.js → chunk-KHEQHKTJ.js} +4 -4
- package/dist/{chunk-HGRG2WVX.js.map → chunk-KHEQHKTJ.js.map} +1 -1
- package/dist/{chunk-7NM7SE7Y.js → chunk-KJBLUTJT.js} +6 -6
- package/dist/{chunk-7NM7SE7Y.js.map → chunk-KJBLUTJT.js.map} +1 -1
- package/dist/{chunk-ANHJG3Z7.js → chunk-KP6VDSWV.js} +5 -5
- package/dist/{chunk-ANHJG3Z7.js.map → chunk-KP6VDSWV.js.map} +1 -1
- package/dist/{chunk-QZ6UFQ7V.cjs → chunk-KT66JFSR.cjs} +6 -6
- package/dist/{chunk-QZ6UFQ7V.cjs.map → chunk-KT66JFSR.cjs.map} +1 -1
- package/dist/{chunk-6HR2SJBP.js → chunk-L3WLRWTC.js} +5 -5
- package/dist/{chunk-6HR2SJBP.js.map → chunk-L3WLRWTC.js.map} +1 -1
- package/dist/{chunk-O7B3P2AT.cjs → chunk-LIJBEWEH.cjs} +18 -18
- package/dist/{chunk-O7B3P2AT.cjs.map → chunk-LIJBEWEH.cjs.map} +1 -1
- package/dist/{chunk-CXEQO3RE.js → chunk-LLZOPVQQ.js} +4 -4
- package/dist/{chunk-CXEQO3RE.js.map → chunk-LLZOPVQQ.js.map} +1 -1
- package/dist/{chunk-WNPUO7IZ.cjs → chunk-M45EEUJT.cjs} +23 -35
- package/dist/chunk-M45EEUJT.cjs.map +1 -0
- package/dist/{chunk-H5CDBXA4.cjs → chunk-N3IC7S4L.cjs} +20 -20
- package/dist/{chunk-H5CDBXA4.cjs.map → chunk-N3IC7S4L.cjs.map} +1 -1
- package/dist/{chunk-57H2WB7S.cjs → chunk-NE7ZXK3A.cjs} +19 -19
- package/dist/{chunk-57H2WB7S.cjs.map → chunk-NE7ZXK3A.cjs.map} +1 -1
- package/dist/{chunk-G4N6PYWY.cjs → chunk-NPMVIREN.cjs} +29 -29
- package/dist/{chunk-G4N6PYWY.cjs.map → chunk-NPMVIREN.cjs.map} +1 -1
- package/dist/{chunk-6PZLOV6Z.js → chunk-NPW7GUAP.js} +8 -8
- package/dist/{chunk-6PZLOV6Z.js.map → chunk-NPW7GUAP.js.map} +1 -1
- package/dist/{chunk-UCKK7LPQ.js → chunk-NRTOCZP6.js} +3 -3
- package/dist/{chunk-UCKK7LPQ.js.map → chunk-NRTOCZP6.js.map} +1 -1
- package/dist/{chunk-3U2E4IZQ.cjs → chunk-NVNFVNEU.cjs} +12 -12
- package/dist/{chunk-3U2E4IZQ.cjs.map → chunk-NVNFVNEU.cjs.map} +1 -1
- package/dist/{chunk-5S77OUMY.js → chunk-O4377FUW.js} +5 -5
- package/dist/{chunk-5S77OUMY.js.map → chunk-O4377FUW.js.map} +1 -1
- package/dist/{chunk-3AWUH2DT.cjs → chunk-OHOYDTN5.cjs} +71 -71
- package/dist/{chunk-3AWUH2DT.cjs.map → chunk-OHOYDTN5.cjs.map} +1 -1
- package/dist/{chunk-BZHOSRJY.cjs → chunk-OX6RKP5C.cjs} +19 -19
- package/dist/{chunk-BZHOSRJY.cjs.map → chunk-OX6RKP5C.cjs.map} +1 -1
- package/dist/{chunk-REJUB2HI.cjs → chunk-PB6X5Q6F.cjs} +11 -11
- package/dist/{chunk-REJUB2HI.cjs.map → chunk-PB6X5Q6F.cjs.map} +1 -1
- package/dist/{chunk-JUYUBEMU.js → chunk-PECE2GUW.js} +3 -3
- package/dist/{chunk-JUYUBEMU.js.map → chunk-PECE2GUW.js.map} +1 -1
- package/dist/{chunk-JUGZSL24.cjs → chunk-PQHYTLZY.cjs} +9 -9
- package/dist/{chunk-JUGZSL24.cjs.map → chunk-PQHYTLZY.cjs.map} +1 -1
- package/dist/{chunk-77A2RTNZ.js → chunk-QUNI7GBZ.js} +6 -6
- package/dist/{chunk-77A2RTNZ.js.map → chunk-QUNI7GBZ.js.map} +1 -1
- package/dist/{chunk-UGJBURIS.cjs → chunk-R7XGET77.cjs} +7 -7
- package/dist/{chunk-UGJBURIS.cjs.map → chunk-R7XGET77.cjs.map} +1 -1
- package/dist/{chunk-DA3GPZIW.js → chunk-RULY5YHQ.js} +7 -7
- package/dist/{chunk-DA3GPZIW.js.map → chunk-RULY5YHQ.js.map} +1 -1
- package/dist/{chunk-YMWAMFXW.cjs → chunk-RVGOGUYD.cjs} +7 -7
- package/dist/{chunk-YMWAMFXW.cjs.map → chunk-RVGOGUYD.cjs.map} +1 -1
- package/dist/{chunk-HTP3LBWI.cjs → chunk-SDKNFKPO.cjs} +19 -19
- package/dist/{chunk-HTP3LBWI.cjs.map → chunk-SDKNFKPO.cjs.map} +1 -1
- package/dist/{chunk-HZNJ4B7D.cjs → chunk-SSWC72OL.cjs} +24 -24
- package/dist/{chunk-HZNJ4B7D.cjs.map → chunk-SSWC72OL.cjs.map} +1 -1
- package/dist/{chunk-QJU62KP2.cjs → chunk-TFYH42DN.cjs} +10 -10
- package/dist/{chunk-QJU62KP2.cjs.map → chunk-TFYH42DN.cjs.map} +1 -1
- package/dist/{chunk-EAPGRYRG.cjs → chunk-UBMQFIZ5.cjs} +6 -6
- package/dist/{chunk-EAPGRYRG.cjs.map → chunk-UBMQFIZ5.cjs.map} +1 -1
- package/dist/{chunk-ZJVB5TZ4.js → chunk-UHMBTZ44.js} +23 -35
- package/dist/chunk-UHMBTZ44.js.map +1 -0
- package/dist/{chunk-OSN3DL34.js → chunk-V2PFC4GN.js} +3 -3
- package/dist/{chunk-OSN3DL34.js.map → chunk-V2PFC4GN.js.map} +1 -1
- package/dist/{chunk-XNR667MS.cjs → chunk-VCDXVUAX.cjs} +11 -11
- package/dist/{chunk-XNR667MS.cjs.map → chunk-VCDXVUAX.cjs.map} +1 -1
- package/dist/{chunk-J24FU42I.cjs → chunk-VEYIFLKP.cjs} +12 -12
- package/dist/{chunk-J24FU42I.cjs.map → chunk-VEYIFLKP.cjs.map} +1 -1
- package/dist/{chunk-U72BY62E.cjs → chunk-VKB5Q73O.cjs} +101 -101
- package/dist/{chunk-U72BY62E.cjs.map → chunk-VKB5Q73O.cjs.map} +1 -1
- package/dist/{chunk-4DUHTOLC.js → chunk-VM3RA22B.js} +3 -3
- package/dist/{chunk-4DUHTOLC.js.map → chunk-VM3RA22B.js.map} +1 -1
- package/dist/{chunk-XLPKT7N6.js → chunk-W6LUEOTA.js} +6 -6
- package/dist/{chunk-XLPKT7N6.js.map → chunk-W6LUEOTA.js.map} +1 -1
- package/dist/{chunk-7EDTSUCY.js → chunk-WEF5ZJPT.js} +3 -3
- package/dist/{chunk-7EDTSUCY.js.map → chunk-WEF5ZJPT.js.map} +1 -1
- package/dist/{chunk-TSF3GTOO.js → chunk-WMLAEHP2.js} +5 -5
- package/dist/{chunk-TSF3GTOO.js.map → chunk-WMLAEHP2.js.map} +1 -1
- package/dist/{chunk-UBYGPC2S.cjs → chunk-XCJ6SARN.cjs} +7 -7
- package/dist/{chunk-UBYGPC2S.cjs.map → chunk-XCJ6SARN.cjs.map} +1 -1
- package/dist/{chunk-ORWZ4QJZ.cjs → chunk-XETDRAF5.cjs} +19 -19
- package/dist/{chunk-ORWZ4QJZ.cjs.map → chunk-XETDRAF5.cjs.map} +1 -1
- package/dist/{chunk-7L6BZOXB.cjs → chunk-XIKIYQZC.cjs} +20 -20
- package/dist/{chunk-7L6BZOXB.cjs.map → chunk-XIKIYQZC.cjs.map} +1 -1
- package/dist/{chunk-Z4PDJRZT.cjs → chunk-Y2SHDKEU.cjs} +4 -4
- package/dist/{chunk-Z4PDJRZT.cjs.map → chunk-Y2SHDKEU.cjs.map} +1 -1
- package/dist/{chunk-I6WBJDRP.cjs → chunk-YM6HFQMA.cjs} +6 -6
- package/dist/{chunk-I6WBJDRP.cjs.map → chunk-YM6HFQMA.cjs.map} +1 -1
- package/dist/{chunk-TM3DGZGZ.js → chunk-YMZUKCL2.js} +7 -7
- package/dist/{chunk-TM3DGZGZ.js.map → chunk-YMZUKCL2.js.map} +1 -1
- package/dist/{chunk-MEIFOELG.js → chunk-YQABFBMF.js} +5 -5
- package/dist/{chunk-MEIFOELG.js.map → chunk-YQABFBMF.js.map} +1 -1
- package/dist/{chunk-PJFYMAGO.js → chunk-YX6VTUXY.js} +3 -3
- package/dist/{chunk-PJFYMAGO.js.map → chunk-YX6VTUXY.js.map} +1 -1
- package/dist/{chunk-4XSWMZTL.js → chunk-Z7WKF2EJ.js} +3 -3
- package/dist/{chunk-4XSWMZTL.js.map → chunk-Z7WKF2EJ.js.map} +1 -1
- package/dist/{chunk-26W4C7FO.cjs → chunk-ZA7GER4D.cjs} +15 -15
- package/dist/{chunk-26W4C7FO.cjs.map → chunk-ZA7GER4D.cjs.map} +1 -1
- package/dist/chunk-ZDQDDOKJ.cjs +655 -0
- package/dist/{chunk-AHVAFHUK.cjs.map → chunk-ZDQDDOKJ.cjs.map} +1 -1
- package/dist/{chunk-UU3HHGLK.js → chunk-ZITE7JQB.js} +4 -4
- package/dist/{chunk-UU3HHGLK.js.map → chunk-ZITE7JQB.js.map} +1 -1
- package/dist/{chunk-23BRCQHZ.cjs → chunk-ZX6LOGME.cjs} +12 -12
- package/dist/{chunk-23BRCQHZ.cjs.map → chunk-ZX6LOGME.cjs.map} +1 -1
- package/dist/{dist-HR6TOFJM.cjs → dist-TVEBMXRT.cjs} +25 -25
- package/dist/{dist-HR6TOFJM.cjs.map → dist-TVEBMXRT.cjs.map} +1 -1
- package/dist/{dist-7I6EPNH3.js → dist-ZGTEPXPM.js} +6 -6
- package/dist/{dist-7I6EPNH3.js.map → dist-ZGTEPXPM.js.map} +1 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/{observational-memory-KFKHBTCB-RX2CEPSU.js → observational-memory-CSI3OZXQ-74TPCOGT.js} +3 -3
- package/dist/{observational-memory-KFKHBTCB-RX2CEPSU.js.map → observational-memory-CSI3OZXQ-74TPCOGT.js.map} +1 -1
- package/dist/{observational-memory-KFKHBTCB-RMGPISAP.cjs → observational-memory-CSI3OZXQ-DQZZQVVM.cjs} +26 -26
- package/dist/{observational-memory-KFKHBTCB-RMGPISAP.cjs.map → observational-memory-CSI3OZXQ-DQZZQVVM.cjs.map} +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.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.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.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 +33 -33
- package/dist/server/handlers.js +15 -15
- package/dist/server/schemas/index.cjs +462 -462
- package/dist/server/schemas/index.js +7 -7
- package/dist/server/server-adapter/api-schema-manifest.d.ts +1 -1
- package/dist/server/server-adapter/index.cjs +25 -25
- package/dist/server/server-adapter/index.js +6 -6
- package/dist/server/server-adapter/openapi-utils.d.ts +1 -1
- package/dist/server/server-adapter/routes/observability.d.ts +116 -116
- package/package.json +5 -5
- package/dist/chunk-AHVAFHUK.cjs +0 -655
- package/dist/chunk-WNPUO7IZ.cjs.map +0 -1
- package/dist/chunk-ZJVB5TZ4.js.map +0 -1
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/** The Standard Typed interface. This is a base type extended by other specs. */
|
|
2
|
+
interface StandardTypedV1<Input = unknown, Output = Input> {
|
|
3
|
+
/** The Standard properties. */
|
|
4
|
+
readonly "~standard": StandardTypedV1.Props<Input, Output>;
|
|
5
|
+
}
|
|
6
|
+
declare namespace StandardTypedV1 {
|
|
7
|
+
/** The Standard Typed properties interface. */
|
|
8
|
+
interface Props<Input = unknown, Output = Input> {
|
|
9
|
+
/** The version number of the standard. */
|
|
10
|
+
readonly version: 1;
|
|
11
|
+
/** The vendor name of the schema library. */
|
|
12
|
+
readonly vendor: string;
|
|
13
|
+
/** Inferred types associated with the schema. */
|
|
14
|
+
readonly types?: Types<Input, Output> | undefined;
|
|
15
|
+
}
|
|
16
|
+
/** The Standard Typed types interface. */
|
|
17
|
+
interface Types<Input = unknown, Output = Input> {
|
|
18
|
+
/** The input type of the schema. */
|
|
19
|
+
readonly input: Input;
|
|
20
|
+
/** The output type of the schema. */
|
|
21
|
+
readonly output: Output;
|
|
22
|
+
}
|
|
23
|
+
/** Infers the input type of a Standard Typed. */
|
|
24
|
+
type InferInput<Schema extends StandardTypedV1> = NonNullable<Schema["~standard"]["types"]>["input"];
|
|
25
|
+
/** Infers the output type of a Standard Typed. */
|
|
26
|
+
type InferOutput<Schema extends StandardTypedV1> = NonNullable<Schema["~standard"]["types"]>["output"];
|
|
27
|
+
}
|
|
28
|
+
/** The Standard Schema interface. */
|
|
29
|
+
interface StandardSchemaV1<Input = unknown, Output = Input> {
|
|
30
|
+
/** The Standard Schema properties. */
|
|
31
|
+
readonly "~standard": StandardSchemaV1.Props<Input, Output>;
|
|
32
|
+
}
|
|
33
|
+
declare namespace StandardSchemaV1 {
|
|
34
|
+
/** The Standard Schema properties interface. */
|
|
35
|
+
interface Props<Input = unknown, Output = Input> extends StandardTypedV1.Props<Input, Output> {
|
|
36
|
+
/** Validates unknown input values. */
|
|
37
|
+
readonly validate: (value: unknown, options?: StandardSchemaV1.Options | undefined) => Result<Output> | Promise<Result<Output>>;
|
|
38
|
+
}
|
|
39
|
+
/** The result interface of the validate function. */
|
|
40
|
+
type Result<Output> = SuccessResult<Output> | FailureResult;
|
|
41
|
+
/** The result interface if validation succeeds. */
|
|
42
|
+
interface SuccessResult<Output> {
|
|
43
|
+
/** The typed output value. */
|
|
44
|
+
readonly value: Output;
|
|
45
|
+
/** A falsy value for `issues` indicates success. */
|
|
46
|
+
readonly issues?: undefined;
|
|
47
|
+
}
|
|
48
|
+
interface Options {
|
|
49
|
+
/** Explicit support for additional vendor-specific parameters, if needed. */
|
|
50
|
+
readonly libraryOptions?: Record<string, unknown> | undefined;
|
|
51
|
+
}
|
|
52
|
+
/** The result interface if validation fails. */
|
|
53
|
+
interface FailureResult {
|
|
54
|
+
/** The issues of failed validation. */
|
|
55
|
+
readonly issues: ReadonlyArray<Issue>;
|
|
56
|
+
}
|
|
57
|
+
/** The issue interface of the failure output. */
|
|
58
|
+
interface Issue {
|
|
59
|
+
/** The error message of the issue. */
|
|
60
|
+
readonly message: string;
|
|
61
|
+
/** The path of the issue, if any. */
|
|
62
|
+
readonly path?: ReadonlyArray<PropertyKey | PathSegment> | undefined;
|
|
63
|
+
}
|
|
64
|
+
/** The path segment interface of the issue. */
|
|
65
|
+
interface PathSegment {
|
|
66
|
+
/** The key representing a path segment. */
|
|
67
|
+
readonly key: PropertyKey;
|
|
68
|
+
}
|
|
69
|
+
/** The Standard types interface. */
|
|
70
|
+
interface Types<Input = unknown, Output = Input> extends StandardTypedV1.Types<Input, Output> {
|
|
71
|
+
}
|
|
72
|
+
/** Infers the input type of a Standard. */
|
|
73
|
+
type InferInput<Schema extends StandardTypedV1> = StandardTypedV1.InferInput<Schema>;
|
|
74
|
+
/** Infers the output type of a Standard. */
|
|
75
|
+
type InferOutput<Schema extends StandardTypedV1> = StandardTypedV1.InferOutput<Schema>;
|
|
76
|
+
}
|
|
77
|
+
/** The Standard JSON Schema interface. */
|
|
78
|
+
interface StandardJSONSchemaV1<Input = unknown, Output = Input> {
|
|
79
|
+
/** The Standard JSON Schema properties. */
|
|
80
|
+
readonly "~standard": StandardJSONSchemaV1.Props<Input, Output>;
|
|
81
|
+
}
|
|
82
|
+
declare namespace StandardJSONSchemaV1 {
|
|
83
|
+
/** The Standard JSON Schema properties interface. */
|
|
84
|
+
interface Props<Input = unknown, Output = Input> extends StandardTypedV1.Props<Input, Output> {
|
|
85
|
+
/** Methods for generating the input/output JSON Schema. */
|
|
86
|
+
readonly jsonSchema: StandardJSONSchemaV1.Converter;
|
|
87
|
+
}
|
|
88
|
+
/** The Standard JSON Schema converter interface. */
|
|
89
|
+
interface Converter {
|
|
90
|
+
/** Converts the input type to JSON Schema. May throw if conversion is not supported. */
|
|
91
|
+
readonly input: (options: StandardJSONSchemaV1.Options) => Record<string, unknown>;
|
|
92
|
+
/** Converts the output type to JSON Schema. May throw if conversion is not supported. */
|
|
93
|
+
readonly output: (options: StandardJSONSchemaV1.Options) => Record<string, unknown>;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* The target version of the generated JSON Schema.
|
|
97
|
+
*
|
|
98
|
+
* It is *strongly recommended* that implementers support `"draft-2020-12"` and `"draft-07"`, as they are both in wide use. All other targets can be implemented on a best-effort basis. Libraries should throw if they don't support a specified target.
|
|
99
|
+
*
|
|
100
|
+
* The `"openapi-3.0"` target is intended as a standardized specifier for OpenAPI 3.0 which is a superset of JSON Schema `"draft-04"`.
|
|
101
|
+
*/
|
|
102
|
+
type Target = "draft-2020-12" | "draft-07" | "openapi-3.0" | ({} & string);
|
|
103
|
+
/** The options for the input/output methods. */
|
|
104
|
+
interface Options {
|
|
105
|
+
/** Specifies the target version of the generated JSON Schema. Support for all versions is on a best-effort basis. If a given version is not supported, the library should throw. */
|
|
106
|
+
readonly target: Target;
|
|
107
|
+
/** Explicit support for additional vendor-specific parameters, if needed. */
|
|
108
|
+
readonly libraryOptions?: Record<string, unknown> | undefined;
|
|
109
|
+
}
|
|
110
|
+
/** The Standard types interface. */
|
|
111
|
+
interface Types<Input = unknown, Output = Input> extends StandardTypedV1.Types<Input, Output> {
|
|
112
|
+
}
|
|
113
|
+
/** Infers the input type of a Standard. */
|
|
114
|
+
type InferInput<Schema extends StandardTypedV1> = StandardTypedV1.InferInput<Schema>;
|
|
115
|
+
/** Infers the output type of a Standard. */
|
|
116
|
+
type InferOutput<Schema extends StandardTypedV1> = StandardTypedV1.InferOutput<Schema>;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export { StandardJSONSchemaV1, StandardSchemaV1, StandardTypedV1 };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export { SchemaCompatLayer as SchemaCompatLayerV3, ALL_STRING_CHECKS, ALL_NUMBER_CHECKS, ALL_ARRAY_CHECKS, UNSUPPORTED_ZOD_TYPES, SUPPORTED_ZOD_TYPES, ALL_ZOD_TYPES, type StringCheckType, type NumberCheckType, type ArrayCheckType, type UnsupportedZodType, type SupportedZodType, type AllZodType, type ZodShape, type ShapeKey, type ShapeValue, isOptional, isObj, isArr, isUnion, isString, isNumber, } from './schema-compatibility-v3.js';
|
|
2
|
+
export { SchemaCompatLayer as SchemaCompatLayerV4 } from './schema-compatibility-v4.js';
|
|
3
|
+
export { SchemaCompatLayer } from './schema-compatibility.js';
|
|
4
|
+
export { convertZodSchemaToAISDKSchema, applyCompatLayer, convertSchemaToZod, isZodType } from './utils.js';
|
|
5
|
+
export { wrapSchemaWithNullTransform } from './null-to-undefined.js';
|
|
6
|
+
export { ensureAllPropertiesRequired, prepareJsonSchemaForOpenAIStrictMode } from './zod-to-json.js';
|
|
7
|
+
export { extractZodSchema, applyOpenAICompatTransforms, applyOpenAICompatToTools } from './standard-schema-compat.js';
|
|
8
|
+
export { AnthropicSchemaCompatLayer } from './provider-compats/anthropic.js';
|
|
9
|
+
export { DeepSeekSchemaCompatLayer } from './provider-compats/deepseek.js';
|
|
10
|
+
export { GoogleSchemaCompatLayer } from './provider-compats/google.js';
|
|
11
|
+
export { MetaSchemaCompatLayer } from './provider-compats/meta.js';
|
|
12
|
+
export { OpenAISchemaCompatLayer } from './provider-compats/openai.js';
|
|
13
|
+
export { OpenAIReasoningSchemaCompatLayer } from './provider-compats/openai-reasoning.js';
|
|
14
|
+
export { type ModelInformation } from './types.js';
|
|
15
|
+
export { type JSONSchema7, type Schema, jsonSchema } from './json-schema/index.js';
|
|
16
|
+
export type { PublicSchema, InferPublicSchema } from './schema.types.js';
|
|
17
|
+
export type { StandardSchemaWithJSON, StandardSchemaWithJSONProps, InferInput, InferOutput, StandardSchemaIssue, } from './standard-schema/standard-schema.types.js';
|
|
18
|
+
export { toStandardSchema, isStandardSchema, isStandardJSONSchema, isStandardSchemaWithJSON, standardSchemaToJSONSchema, JSON_SCHEMA_LIBRARY_OPTIONS, } from './standard-schema/standard-schema.js';
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { StandardSchemaWithJSON } from './standard-schema/standard-schema.types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Recursively converts null values to undefined in an object based on which
|
|
4
|
+
* properties are optional in the JSON Schema. This is needed because OpenAI
|
|
5
|
+
* strict mode sends null for optional fields, but schemas like Zod's .optional()
|
|
6
|
+
* reject null.
|
|
7
|
+
*
|
|
8
|
+
* Only converts null→undefined for properties that are NOT in the schema's
|
|
9
|
+
* `required` array, preserving null for explicitly .nullable() fields.
|
|
10
|
+
*/
|
|
11
|
+
export declare function transformNullToUndefined(value: unknown, jsonSchema: Record<string, unknown>): unknown;
|
|
12
|
+
/**
|
|
13
|
+
* Wraps a StandardSchemaWithJSON to transform null values to undefined for
|
|
14
|
+
* optional fields before validation. This is a schema-agnostic solution for
|
|
15
|
+
* OpenAI strict mode, which sends null for optional fields.
|
|
16
|
+
*
|
|
17
|
+
* The wrapper:
|
|
18
|
+
* 1. Extracts the JSON Schema from the inner schema to determine optional fields
|
|
19
|
+
* 2. Before validation, transforms null→undefined for non-required properties
|
|
20
|
+
* 3. Delegates validation to the inner schema with the transformed value
|
|
21
|
+
* 4. Delegates JSON Schema conversion to the inner schema unchanged
|
|
22
|
+
*/
|
|
23
|
+
export declare function wrapSchemaWithNullTransform<Input = unknown, Output = Input>(schema: StandardSchemaWithJSON<Input, Output>): StandardSchemaWithJSON<Input, Output>;
|
|
24
|
+
//# sourceMappingURL=null-to-undefined.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { JSONSchema7 } from 'json-schema';
|
|
2
|
+
import type { ZodType as ZodTypeV3 } from 'zod/v3';
|
|
3
|
+
import type { ZodType as ZodTypeV4 } from 'zod/v4';
|
|
4
|
+
import type { Targets } from 'zod-to-json-schema';
|
|
5
|
+
import { SchemaCompatLayer } from '../schema-compatibility.js';
|
|
6
|
+
import type { PublicSchema, ZodType } from '../schema.types.js';
|
|
7
|
+
import type { StandardSchemaWithJSON } from '../standard-schema/standard-schema.types.js';
|
|
8
|
+
import type { ModelInformation } from '../types.js';
|
|
9
|
+
export declare class AnthropicSchemaCompatLayer extends SchemaCompatLayer {
|
|
10
|
+
#private;
|
|
11
|
+
constructor(model: ModelInformation);
|
|
12
|
+
getSchemaTarget(): Targets | undefined;
|
|
13
|
+
shouldApply(): boolean;
|
|
14
|
+
processZodType(value: ZodType): ZodType;
|
|
15
|
+
processToAISDKSchema(zodSchema: ZodTypeV3 | ZodTypeV4): import("../_types/@internal_ai-sdk-v4/dist/index.d.ts").Schema<any>;
|
|
16
|
+
processToCompatSchema<T>(schema: PublicSchema<T>): StandardSchemaWithJSON<T>;
|
|
17
|
+
preProcessJSONNode(schema: JSONSchema7): void;
|
|
18
|
+
postProcessJSONNode(schema: JSONSchema7): void;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=anthropic.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { JSONSchema7 } from 'json-schema';
|
|
2
|
+
import type { ZodType as ZodTypeV3 } from 'zod/v3';
|
|
3
|
+
import type { ZodType as ZodTypeV4 } from 'zod/v4';
|
|
4
|
+
import type { Targets } from 'zod-to-json-schema';
|
|
5
|
+
import { SchemaCompatLayer } from '../schema-compatibility.js';
|
|
6
|
+
import type { PublicSchema } from '../schema.types.js';
|
|
7
|
+
import type { StandardSchemaWithJSON } from '../standard-schema/standard-schema.types.js';
|
|
8
|
+
import type { ModelInformation } from '../types.js';
|
|
9
|
+
export declare class DeepSeekSchemaCompatLayer extends SchemaCompatLayer {
|
|
10
|
+
#private;
|
|
11
|
+
constructor(model: ModelInformation);
|
|
12
|
+
getSchemaTarget(): Targets | undefined;
|
|
13
|
+
shouldApply(): boolean;
|
|
14
|
+
processZodType(value: ZodTypeV3): ZodTypeV3;
|
|
15
|
+
processZodType(value: ZodTypeV4): ZodTypeV4;
|
|
16
|
+
processToAISDKSchema(zodSchema: ZodTypeV3 | ZodTypeV4): import("../_types/@internal_ai-sdk-v4/dist/index.d.ts").Schema<any>;
|
|
17
|
+
processToCompatSchema<T>(schema: PublicSchema<T>): StandardSchemaWithJSON<T>;
|
|
18
|
+
preProcessJSONNode(schema: JSONSchema7): void;
|
|
19
|
+
postProcessJSONNode(schema: JSONSchema7): void;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=deepseek.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { JSONSchema7 } from 'json-schema';
|
|
2
|
+
import type { ZodType as ZodTypeV3 } from 'zod/v3';
|
|
3
|
+
import type { ZodType as ZodTypeV4 } from 'zod/v4';
|
|
4
|
+
import type { Targets } from 'zod-to-json-schema';
|
|
5
|
+
import type { Schema } from '../json-schema/index.js';
|
|
6
|
+
import { SchemaCompatLayer } from '../schema-compatibility.js';
|
|
7
|
+
import type { PublicSchema } from '../schema.types.js';
|
|
8
|
+
import type { StandardSchemaWithJSON } from '../standard-schema/standard-schema.types.js';
|
|
9
|
+
import type { ModelInformation } from '../types.js';
|
|
10
|
+
export declare class GoogleSchemaCompatLayer extends SchemaCompatLayer {
|
|
11
|
+
#private;
|
|
12
|
+
constructor(model: ModelInformation);
|
|
13
|
+
getSchemaTarget(): Targets | undefined;
|
|
14
|
+
shouldApply(): boolean;
|
|
15
|
+
processZodType(value: ZodTypeV3): ZodTypeV3;
|
|
16
|
+
processZodType(value: ZodTypeV4): ZodTypeV4;
|
|
17
|
+
processToJSONSchema(schema: PublicSchema<any>, io?: 'input' | 'output'): JSONSchema7;
|
|
18
|
+
processToAISDKSchema(zodSchema: ZodTypeV3 | ZodTypeV4): Schema;
|
|
19
|
+
processToCompatSchema<T>(schema: PublicSchema<T>): StandardSchemaWithJSON<T>;
|
|
20
|
+
preProcessJSONNode(schema: JSONSchema7): void;
|
|
21
|
+
postProcessJSONNode(schema: JSONSchema7): void;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=google.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { JSONSchema7 } from 'json-schema';
|
|
2
|
+
import type { ZodType as ZodTypeV3 } from 'zod/v3';
|
|
3
|
+
import type { ZodType as ZodTypeV4 } from 'zod/v4';
|
|
4
|
+
import type { Targets } from 'zod-to-json-schema';
|
|
5
|
+
import { SchemaCompatLayer } from '../schema-compatibility.js';
|
|
6
|
+
import type { PublicSchema } from '../schema.types.js';
|
|
7
|
+
import type { StandardSchemaWithJSON } from '../standard-schema/standard-schema.types.js';
|
|
8
|
+
import type { ModelInformation } from '../types.js';
|
|
9
|
+
export declare class MetaSchemaCompatLayer extends SchemaCompatLayer {
|
|
10
|
+
#private;
|
|
11
|
+
constructor(model: ModelInformation);
|
|
12
|
+
getSchemaTarget(): Targets | undefined;
|
|
13
|
+
shouldApply(): boolean;
|
|
14
|
+
processZodType(value: ZodTypeV3): ZodTypeV3;
|
|
15
|
+
processZodType(value: ZodTypeV4): ZodTypeV4;
|
|
16
|
+
processToAISDKSchema(zodSchema: ZodTypeV3 | ZodTypeV4): import("../_types/@internal_ai-sdk-v4/dist/index.d.ts").Schema<any>;
|
|
17
|
+
processToCompatSchema<T>(schema: PublicSchema<T>): StandardSchemaWithJSON<T>;
|
|
18
|
+
preProcessJSONNode(schema: JSONSchema7): void;
|
|
19
|
+
postProcessJSONNode(schema: JSONSchema7): void;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=meta.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Targets } from 'zod-to-json-schema';
|
|
2
|
+
import type { ZodType } from '../schema.types.js';
|
|
3
|
+
import { OpenAISchemaCompatLayer } from './openai.js';
|
|
4
|
+
export declare class OpenAIReasoningSchemaCompatLayer extends OpenAISchemaCompatLayer {
|
|
5
|
+
getSchemaTarget(): Targets | undefined;
|
|
6
|
+
isReasoningModel(): boolean;
|
|
7
|
+
shouldApply(): boolean;
|
|
8
|
+
processZodType(value: ZodType): ZodType;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=openai-reasoning.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { JSONSchema7 } from 'json-schema';
|
|
2
|
+
import type { ZodType as ZodTypeV3 } from 'zod/v3';
|
|
3
|
+
import type { ZodType as ZodTypeV4 } from 'zod/v4';
|
|
4
|
+
import type { Targets } from 'zod-to-json-schema';
|
|
5
|
+
import type { Schema } from '../json-schema/index.js';
|
|
6
|
+
import { SchemaCompatLayer } from '../schema-compatibility.js';
|
|
7
|
+
import type { PublicSchema, ZodType } from '../schema.types.js';
|
|
8
|
+
import type { StandardSchemaWithJSON } from '../standard-schema/standard-schema.types.js';
|
|
9
|
+
export declare class OpenAISchemaCompatLayer extends SchemaCompatLayer {
|
|
10
|
+
#private;
|
|
11
|
+
getSchemaTarget(): Targets | undefined;
|
|
12
|
+
isReasoningModel(): boolean;
|
|
13
|
+
shouldApply(): boolean;
|
|
14
|
+
processZodType(value: ZodType): ZodType;
|
|
15
|
+
/**
|
|
16
|
+
* Override to apply the same JSON Schema fixes (additionalProperties, required fields)
|
|
17
|
+
* that processToJSONSchema applies. The base implementation skips JSON Schema traversal,
|
|
18
|
+
* which causes OpenAI strict mode to reject tool schemas missing additionalProperties: false.
|
|
19
|
+
*/
|
|
20
|
+
processToAISDKSchema(zodSchema: ZodTypeV3 | ZodTypeV4): Schema;
|
|
21
|
+
processToCompatSchema<T>(schema: PublicSchema<T>): StandardSchemaWithJSON<T>;
|
|
22
|
+
preProcessJSONNode(schema: JSONSchema7, _parentSchema?: JSONSchema7): void;
|
|
23
|
+
postProcessJSONNode(schema: JSONSchema7): void;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=openai.d.ts.map
|
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
import { z, ZodOptional, ZodObject, ZodArray, ZodUnion, ZodString, ZodNumber, ZodDate, ZodDefault, ZodNull, ZodNullable, ZodIntersection } from 'zod/v3';
|
|
2
|
+
import type { ZodTypeAny } from 'zod/v3';
|
|
3
|
+
import type { Targets } from 'zod-to-json-schema';
|
|
4
|
+
import type { JSONSchema7, Schema } from './json-schema/index.js';
|
|
5
|
+
import type { SchemaCompatLayer as ParentSchemaCompatLayer } from './schema-compatibility.js';
|
|
6
|
+
import type { ModelInformation } from './types.js';
|
|
7
|
+
/**
|
|
8
|
+
* All supported string validation check types that can be processed or converted to descriptions.
|
|
9
|
+
* @constant
|
|
10
|
+
*/
|
|
11
|
+
export declare const ALL_STRING_CHECKS: readonly ["regex", "emoji", "email", "url", "uuid", "cuid", "min", "max"];
|
|
12
|
+
/**
|
|
13
|
+
* All supported number validation check types that can be processed or converted to descriptions.
|
|
14
|
+
* @constant
|
|
15
|
+
*/
|
|
16
|
+
export declare const ALL_NUMBER_CHECKS: readonly ["min", "max", "multipleOf"];
|
|
17
|
+
/**
|
|
18
|
+
* All supported array validation check types that can be processed or converted to descriptions.
|
|
19
|
+
* @constant
|
|
20
|
+
*/
|
|
21
|
+
export declare const ALL_ARRAY_CHECKS: readonly ["min", "max", "length"];
|
|
22
|
+
export declare const isOptional: (v: ZodTypeAny) => v is ZodOptional<any>;
|
|
23
|
+
export declare const isObj: (v: ZodTypeAny) => v is ZodObject<any, any, any>;
|
|
24
|
+
export declare const isNull: (v: ZodTypeAny) => v is ZodNull;
|
|
25
|
+
export declare const isNullable: (v: ZodTypeAny) => v is ZodNullable<any>;
|
|
26
|
+
export declare const isArr: (v: ZodTypeAny) => v is ZodArray<any, any>;
|
|
27
|
+
export declare const isUnion: (v: ZodTypeAny) => v is ZodUnion<[ZodTypeAny, ...ZodTypeAny[]]>;
|
|
28
|
+
export declare const isString: (v: ZodTypeAny) => v is ZodString;
|
|
29
|
+
export declare const isNumber: (v: ZodTypeAny) => v is ZodNumber;
|
|
30
|
+
export declare const isDate: (v: ZodTypeAny) => v is ZodDate;
|
|
31
|
+
export declare const isDefault: (v: ZodTypeAny) => v is ZodDefault<any>;
|
|
32
|
+
export declare const isIntersection: (v: ZodTypeAny) => v is ZodIntersection<any, any>;
|
|
33
|
+
/**
|
|
34
|
+
* Zod types that are not supported by most AI model providers and should be avoided.
|
|
35
|
+
* @constant
|
|
36
|
+
*/
|
|
37
|
+
export declare const UNSUPPORTED_ZOD_TYPES: readonly ["ZodIntersection", "ZodNever", "ZodNull", "ZodTuple", "ZodUndefined"];
|
|
38
|
+
/**
|
|
39
|
+
* Zod types that are generally supported by AI model providers.
|
|
40
|
+
* @constant
|
|
41
|
+
*/
|
|
42
|
+
export declare const SUPPORTED_ZOD_TYPES: readonly ["ZodObject", "ZodArray", "ZodUnion", "ZodString", "ZodNumber", "ZodDate", "ZodAny", "ZodDefault", "ZodNullable"];
|
|
43
|
+
/**
|
|
44
|
+
* All Zod types (both supported and unsupported).
|
|
45
|
+
* @constant
|
|
46
|
+
*/
|
|
47
|
+
export declare const ALL_ZOD_TYPES: readonly ["ZodObject", "ZodArray", "ZodUnion", "ZodString", "ZodNumber", "ZodDate", "ZodAny", "ZodDefault", "ZodNullable", "ZodIntersection", "ZodNever", "ZodNull", "ZodTuple", "ZodUndefined"];
|
|
48
|
+
/**
|
|
49
|
+
* Type representing string validation checks.
|
|
50
|
+
*/
|
|
51
|
+
export type StringCheckType = (typeof ALL_STRING_CHECKS)[number];
|
|
52
|
+
/**
|
|
53
|
+
* Type representing number validation checks.
|
|
54
|
+
*/
|
|
55
|
+
export type NumberCheckType = (typeof ALL_NUMBER_CHECKS)[number];
|
|
56
|
+
/**
|
|
57
|
+
* Type representing array validation checks.
|
|
58
|
+
*/
|
|
59
|
+
export type ArrayCheckType = (typeof ALL_ARRAY_CHECKS)[number];
|
|
60
|
+
/**
|
|
61
|
+
* Type representing unsupported Zod schema types.
|
|
62
|
+
*/
|
|
63
|
+
export type UnsupportedZodType = (typeof UNSUPPORTED_ZOD_TYPES)[number];
|
|
64
|
+
/**
|
|
65
|
+
* Type representing supported Zod schema types.
|
|
66
|
+
*/
|
|
67
|
+
export type SupportedZodType = (typeof SUPPORTED_ZOD_TYPES)[number];
|
|
68
|
+
/**
|
|
69
|
+
* Type representing all Zod schema types (supported and unsupported).
|
|
70
|
+
*/
|
|
71
|
+
export type AllZodType = (typeof ALL_ZOD_TYPES)[number];
|
|
72
|
+
/**
|
|
73
|
+
* Utility type to extract the shape of a Zod object schema.
|
|
74
|
+
*/
|
|
75
|
+
export type ZodShape<T extends z.AnyZodObject> = T['shape'];
|
|
76
|
+
/**
|
|
77
|
+
* Utility type to extract the keys from a Zod object shape.
|
|
78
|
+
*/
|
|
79
|
+
export type ShapeKey<T extends z.AnyZodObject> = keyof ZodShape<T>;
|
|
80
|
+
/**
|
|
81
|
+
* Utility type to extract the value types from a Zod object shape.
|
|
82
|
+
*/
|
|
83
|
+
export type ShapeValue<T extends z.AnyZodObject> = ZodShape<T>[ShapeKey<T>];
|
|
84
|
+
type ConstraintHelperText = string[];
|
|
85
|
+
/**
|
|
86
|
+
* Abstract base class for creating schema compatibility layers for different AI model providers.
|
|
87
|
+
*
|
|
88
|
+
* This class provides a framework for transforming Zod schemas to work with specific AI model
|
|
89
|
+
* provider requirements and limitations. Each provider may have different support levels for
|
|
90
|
+
* JSON Schema features, validation constraints, and data types.
|
|
91
|
+
*
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* ```typescript
|
|
95
|
+
* import { SchemaCompatLayer } from '@mastra/schema-compat';
|
|
96
|
+
* import type { LanguageModelV1 } from 'ai';
|
|
97
|
+
*
|
|
98
|
+
* class CustomProviderCompat extends SchemaCompatLayer {
|
|
99
|
+
* constructor(model: ModelInformation) {
|
|
100
|
+
* super(model);
|
|
101
|
+
* }
|
|
102
|
+
*
|
|
103
|
+
* shouldApply(): boolean {
|
|
104
|
+
* return this.getModel().provider === 'custom-provider';
|
|
105
|
+
* }
|
|
106
|
+
*
|
|
107
|
+
* getSchemaTarget() {
|
|
108
|
+
* return 'jsonSchema7';
|
|
109
|
+
* }
|
|
110
|
+
*
|
|
111
|
+
* processZodType<T extends z.AnyZodObject>(value: z.ZodTypeAny): ShapeValue<T> {
|
|
112
|
+
* // Custom processing logic for this provider
|
|
113
|
+
* switch (value._def.typeName) {
|
|
114
|
+
* case 'ZodString':
|
|
115
|
+
* return this.defaultZodStringHandler(value, ['email', 'url']);
|
|
116
|
+
* default:
|
|
117
|
+
* return this.defaultUnsupportedZodTypeHandler(value);
|
|
118
|
+
* }
|
|
119
|
+
* }
|
|
120
|
+
* }
|
|
121
|
+
* ```
|
|
122
|
+
*/
|
|
123
|
+
export declare class SchemaCompatLayer {
|
|
124
|
+
private model;
|
|
125
|
+
private parent;
|
|
126
|
+
/**
|
|
127
|
+
* Creates a new schema compatibility instance.
|
|
128
|
+
*
|
|
129
|
+
* @param model - The language model this compatibility layer applies to
|
|
130
|
+
*/
|
|
131
|
+
constructor(model: ModelInformation, parent: ParentSchemaCompatLayer);
|
|
132
|
+
/**
|
|
133
|
+
* Gets the language model associated with this compatibility layer.
|
|
134
|
+
*
|
|
135
|
+
* @returns The language model instance
|
|
136
|
+
*/
|
|
137
|
+
getModel(): ModelInformation;
|
|
138
|
+
getUnsupportedZodTypes(): readonly string[];
|
|
139
|
+
/**
|
|
140
|
+
* Type guard for optional Zod types
|
|
141
|
+
*/
|
|
142
|
+
isOptional(v: ZodTypeAny): v is ZodOptional<any>;
|
|
143
|
+
/**
|
|
144
|
+
* Type guard for object Zod types
|
|
145
|
+
*/
|
|
146
|
+
isObj(v: ZodTypeAny): v is ZodObject<any, any, any>;
|
|
147
|
+
/**
|
|
148
|
+
* Type guard for null Zod types
|
|
149
|
+
*/
|
|
150
|
+
isNull(v: ZodTypeAny): v is ZodNull;
|
|
151
|
+
/**
|
|
152
|
+
* Type guard for nullable Zod types
|
|
153
|
+
*/
|
|
154
|
+
isNullable(v: ZodTypeAny): v is ZodNullable<any>;
|
|
155
|
+
/**
|
|
156
|
+
* Type guard for array Zod types
|
|
157
|
+
*/
|
|
158
|
+
isArr(v: ZodTypeAny): v is ZodArray<any, any>;
|
|
159
|
+
/**
|
|
160
|
+
* Type guard for union Zod types
|
|
161
|
+
*/
|
|
162
|
+
isUnion(v: ZodTypeAny): v is ZodUnion<[ZodTypeAny, ...ZodTypeAny[]]>;
|
|
163
|
+
/**
|
|
164
|
+
* Type guard for string Zod types
|
|
165
|
+
*/
|
|
166
|
+
isString(v: ZodTypeAny): v is ZodString;
|
|
167
|
+
/**
|
|
168
|
+
* Type guard for number Zod types
|
|
169
|
+
*/
|
|
170
|
+
isNumber(v: ZodTypeAny): v is ZodNumber;
|
|
171
|
+
/**
|
|
172
|
+
* Type guard for date Zod types
|
|
173
|
+
*/
|
|
174
|
+
isDate(v: ZodTypeAny): v is ZodDate;
|
|
175
|
+
/**
|
|
176
|
+
* Type guard for default Zod types
|
|
177
|
+
*/
|
|
178
|
+
isDefault(v: ZodTypeAny): v is ZodDefault<any>;
|
|
179
|
+
/**
|
|
180
|
+
* Type guard for intersection Zod types
|
|
181
|
+
*/
|
|
182
|
+
isIntersection(v: ZodTypeAny): v is ZodIntersection<any, any>;
|
|
183
|
+
/**
|
|
184
|
+
* Determines whether this compatibility layer should be applied for the current model.
|
|
185
|
+
*
|
|
186
|
+
* @returns True if this compatibility layer should be used, false otherwise
|
|
187
|
+
* @abstract
|
|
188
|
+
*/
|
|
189
|
+
shouldApply(): boolean;
|
|
190
|
+
/**
|
|
191
|
+
* Returns the JSON Schema target format for this provider.
|
|
192
|
+
*
|
|
193
|
+
* @returns The schema target format, or undefined to use the default 'jsonSchema7'
|
|
194
|
+
* @abstract
|
|
195
|
+
*/
|
|
196
|
+
getSchemaTarget(): Targets | undefined;
|
|
197
|
+
/**
|
|
198
|
+
* Processes a specific Zod type according to the provider's requirements.
|
|
199
|
+
*
|
|
200
|
+
* @param value - The Zod type to process
|
|
201
|
+
* @returns The processed Zod type
|
|
202
|
+
* @abstract
|
|
203
|
+
*/
|
|
204
|
+
processZodType(value: ZodTypeAny): ZodTypeAny;
|
|
205
|
+
/**
|
|
206
|
+
* Default handler for Zod object types. Recursively processes all properties in the object.
|
|
207
|
+
*
|
|
208
|
+
* @param value - The Zod object to process
|
|
209
|
+
* @returns The processed Zod object
|
|
210
|
+
*/
|
|
211
|
+
defaultZodObjectHandler(value: ZodObject<any, any, any>, options?: {
|
|
212
|
+
passthrough?: boolean;
|
|
213
|
+
}): ZodObject<any, any, any>;
|
|
214
|
+
/**
|
|
215
|
+
* Merges validation constraints into a parameter description.
|
|
216
|
+
*
|
|
217
|
+
* This helper method converts validation constraints that may not be supported
|
|
218
|
+
* by a provider into human-readable descriptions.
|
|
219
|
+
*
|
|
220
|
+
* @param description - The existing parameter description
|
|
221
|
+
* @param constraints - The validation constraints to merge
|
|
222
|
+
* @returns The updated description with constraints, or undefined if no constraints
|
|
223
|
+
*/
|
|
224
|
+
mergeParameterDescription(description: string | undefined, constraints: ConstraintHelperText): string | undefined;
|
|
225
|
+
/**
|
|
226
|
+
* Default handler for unsupported Zod types. Throws an error for specified unsupported types.
|
|
227
|
+
*
|
|
228
|
+
* @param value - The Zod type to check
|
|
229
|
+
* @param throwOnTypes - Array of type names to throw errors for
|
|
230
|
+
* @returns The original value if not in the throw list
|
|
231
|
+
* @throws Error if the type is in the unsupported list
|
|
232
|
+
*/
|
|
233
|
+
defaultUnsupportedZodTypeHandler<T extends z.AnyZodObject>(value: z.ZodTypeAny, throwOnTypes?: readonly UnsupportedZodType[]): ShapeValue<T>;
|
|
234
|
+
/**
|
|
235
|
+
* Default handler for Zod array types. Processes array constraints according to provider support.
|
|
236
|
+
*
|
|
237
|
+
* @param value - The Zod array to process
|
|
238
|
+
* @param handleChecks - Array constraints to convert to descriptions vs keep as validation
|
|
239
|
+
* @returns The processed Zod array
|
|
240
|
+
*/
|
|
241
|
+
defaultZodArrayHandler(value: ZodArray<any, any>, handleChecks?: readonly ArrayCheckType[]): ZodArray<any, any>;
|
|
242
|
+
/**
|
|
243
|
+
* Default handler for Zod union types. Processes all union options.
|
|
244
|
+
*
|
|
245
|
+
* @param value - The Zod union to process
|
|
246
|
+
* @returns The processed Zod union
|
|
247
|
+
* @throws Error if union has fewer than 2 options
|
|
248
|
+
*/
|
|
249
|
+
defaultZodUnionHandler(value: ZodUnion<[ZodTypeAny, ...ZodTypeAny[]]>): ZodTypeAny;
|
|
250
|
+
/**
|
|
251
|
+
* Default handler for Zod string types. Processes string validation constraints.
|
|
252
|
+
*
|
|
253
|
+
* @param value - The Zod string to process
|
|
254
|
+
* @param handleChecks - String constraints to convert to descriptions vs keep as validation
|
|
255
|
+
* @returns The processed Zod string
|
|
256
|
+
*/
|
|
257
|
+
defaultZodStringHandler(value: ZodString, handleChecks?: readonly StringCheckType[]): ZodString;
|
|
258
|
+
/**
|
|
259
|
+
* Default handler for Zod number types. Processes number validation constraints.
|
|
260
|
+
*
|
|
261
|
+
* @param value - The Zod number to process
|
|
262
|
+
* @param handleChecks - Number constraints to convert to descriptions vs keep as validation
|
|
263
|
+
* @returns The processed Zod number
|
|
264
|
+
*/
|
|
265
|
+
defaultZodNumberHandler(value: ZodNumber, handleChecks?: readonly NumberCheckType[]): ZodNumber;
|
|
266
|
+
/**
|
|
267
|
+
* Default handler for Zod date types. Converts dates to ISO strings with constraint descriptions.
|
|
268
|
+
*
|
|
269
|
+
* @param value - The Zod date to process
|
|
270
|
+
* @returns A Zod string schema representing the date in ISO format
|
|
271
|
+
*/
|
|
272
|
+
defaultZodDateHandler(value: ZodDate): ZodString;
|
|
273
|
+
/**
|
|
274
|
+
* Default handler for Zod optional types. Processes the inner type and maintains optionality.
|
|
275
|
+
*
|
|
276
|
+
* @param value - The Zod optional to process
|
|
277
|
+
* @param handleTypes - Types that should be processed vs passed through
|
|
278
|
+
* @returns The processed Zod optional
|
|
279
|
+
*/
|
|
280
|
+
defaultZodOptionalHandler(value: ZodOptional<any>, handleTypes?: readonly AllZodType[]): ZodTypeAny;
|
|
281
|
+
/**
|
|
282
|
+
* Default handler for Zod nullable types. Processes the inner type and maintains nullability.
|
|
283
|
+
*
|
|
284
|
+
* @param value - The Zod nullable to process
|
|
285
|
+
* @param handleTypes - Types that should be processed vs passed through
|
|
286
|
+
* @returns The processed Zod nullable
|
|
287
|
+
*/
|
|
288
|
+
defaultZodNullableHandler(value: ZodNullable<any>, handleTypes?: readonly AllZodType[]): ZodTypeAny;
|
|
289
|
+
/**
|
|
290
|
+
* Recursively collects leaf types from a ZodIntersection tree.
|
|
291
|
+
*/
|
|
292
|
+
private collectIntersectionLeaves;
|
|
293
|
+
/**
|
|
294
|
+
* Default handler for Zod intersection types.
|
|
295
|
+
* Flattens the intersection tree and merges object shapes into a single z.object().
|
|
296
|
+
* Falls back to z.any() for non-object intersections.
|
|
297
|
+
*/
|
|
298
|
+
defaultZodIntersectionHandler(value: ZodIntersection<any, any>): ZodTypeAny;
|
|
299
|
+
/**
|
|
300
|
+
* Processes a Zod object schema and converts it to an AI SDK Schema.
|
|
301
|
+
*
|
|
302
|
+
* @param zodSchema - The Zod object schema to process
|
|
303
|
+
* @returns An AI SDK Schema with provider-specific compatibility applied
|
|
304
|
+
*/
|
|
305
|
+
processToAISDKSchema(zodSchema: z.ZodSchema): Schema;
|
|
306
|
+
/**
|
|
307
|
+
* Processes a Zod object schema and converts it to a JSON Schema.
|
|
308
|
+
*
|
|
309
|
+
* @param zodSchema - The Zod object schema to process
|
|
310
|
+
* @returns A JSONSchema7 object with provider-specific compatibility applied
|
|
311
|
+
*/
|
|
312
|
+
processToJSONSchema(zodSchema: z.ZodSchema): JSONSchema7;
|
|
313
|
+
}
|
|
314
|
+
export {};
|
|
315
|
+
//# sourceMappingURL=schema-compatibility-v3.d.ts.map
|