@inkeep/open-knowledge 0.3.0 → 0.4.0-beta.8
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/dist/THIRD_PARTY_NOTICES.md +658 -0
- package/dist/alias-JE7RI5QX-Bia4gLMF.mjs +1 -0
- package/dist/assets/skills/open-knowledge/SKILL.md +145 -52
- package/dist/awk2-POPGKRAI-DDrFV-7v.mjs +1 -0
- package/dist/{banner-BxI1wnW9.mjs → banner-DdbR6AZr.mjs} +2 -2
- package/dist/base64-4YMZCVJ5-DDKKOjMm.mjs +1 -0
- package/dist/basename-AA2KJYZQ-BK5zVs3W.mjs +1 -0
- package/dist/bash-IJWYRKFO-B9r1a0X9.mjs +1 -0
- package/dist/build-B6buVrsB.mjs +2 -0
- package/dist/cat-RDUMLXKC-CeNrSElK.mjs +1 -0
- package/dist/chmod-SYMGL4JA-DFJ4ylQU.mjs +1 -0
- package/dist/{chokidar-CblsKfnx.mjs → chokidar-CxU7f6JW.mjs} +1 -1
- package/dist/{chunk-24IMIIXA-Bz7rlZT3.mjs → chunk-24IMIIXA-B6yIPkk2.mjs} +2 -2
- package/dist/{chunk-3THT3N7L-klp8GP84.mjs → chunk-3THT3N7L-DztAF386.mjs} +1 -1
- package/dist/{chunk-3ZUFRYJ4-C93H8j0V.mjs → chunk-3ZUFRYJ4-qsYuZX7b.mjs} +1 -1
- package/dist/{chunk-44UOCSGV-BUBpWxXm.mjs → chunk-44UOCSGV-CaFxJDHm.mjs} +1 -1
- package/dist/{chunk-4GTNDTRF-_OVmXcJ-.mjs → chunk-4GTNDTRF-PuLVuVJW.mjs} +2 -2
- package/dist/{chunk-4HHKTUW3-Dm69hDaZ.mjs → chunk-4HHKTUW3-CQ53AiA_.mjs} +1 -1
- package/dist/{chunk-4Q4SM6WR-DDQRsilN.mjs → chunk-4Q4SM6WR-BlQvqCag.mjs} +2 -2
- package/dist/{chunk-55VFSPNA-DVZfQAzN.mjs → chunk-55VFSPNA-DLwfww5b.mjs} +2 -2
- package/dist/{chunk-5QMZ5MUS-DWTkM0vM.mjs → chunk-5QMZ5MUS-CAp625aG.mjs} +2 -2
- package/dist/{chunk-5QVNJEHU-BvsipSFW.mjs → chunk-5QVNJEHU-dbrKfPGl.mjs} +2 -2
- package/dist/{chunk-5V6VZH6T-BCr5_GDF.mjs → chunk-5V6VZH6T-DMPvCPbn.mjs} +2 -2
- package/dist/{chunk-62RKD26F-D-luOa0m.mjs → chunk-62RKD26F-B9la0pfD.mjs} +2 -2
- package/dist/{chunk-64BAICW3-CTJNEx4Q.mjs → chunk-64BAICW3-D92CLSK-.mjs} +2 -2
- package/dist/{chunk-74CEPOFO-D1bzz49u.mjs → chunk-74CEPOFO-BcZUJMO1.mjs} +1 -1
- package/dist/{chunk-7L36YK2X-RiPZFKaV.mjs → chunk-7L36YK2X-D7Z_Qw_C.mjs} +1 -1
- package/dist/{chunk-7TSDKFEO-a-GUGBTu.mjs → chunk-7TSDKFEO-DUQhJkDy.mjs} +1 -1
- package/dist/{chunk-A4HU7SVR-hefV_YmW.mjs → chunk-A4HU7SVR-DKLaJeys.mjs} +1 -1
- package/dist/{chunk-A4JSPFCI-U-xWmMMC.mjs → chunk-A4JSPFCI-CEm2r8SB.mjs} +2 -2
- package/dist/{chunk-A5O5YHGN-C7BVq0eF.mjs → chunk-A5O5YHGN-DvJz5Cpw.mjs} +2 -2
- package/dist/{chunk-A65PWWJC-D7J5l9eq.mjs → chunk-A65PWWJC-DV6RO_es.mjs} +2 -2
- package/dist/{chunk-A7A2DBEE-PLfkXLI4.mjs → chunk-A7A2DBEE-dTNL-45u.mjs} +1 -1
- package/dist/{chunk-A7ICOL4V-Drb3XsEL.mjs → chunk-A7ICOL4V-BvXPAaHu.mjs} +2 -2
- package/dist/{chunk-ALLTKNUZ-BMiTDN50.mjs → chunk-ALLTKNUZ-Cu6JFoC4.mjs} +2 -2
- package/dist/{chunk-APT7OOP2-CXHnSuct.mjs → chunk-APT7OOP2-DmUrFuRy.mjs} +2 -2
- package/dist/{chunk-BBXLRYSX-DURjrblE.mjs → chunk-BBXLRYSX-K758HlCs.mjs} +2 -2
- package/dist/{chunk-BRGMQKJV-CdrkqzRA.mjs → chunk-BRGMQKJV-BXc-9Cgj.mjs} +3 -3
- package/dist/{chunk-CR5AFCPT-ROmyDFrB.mjs → chunk-CR5AFCPT-DxNsgM0M.mjs} +2 -2
- package/dist/{chunk-CWQS3NFK-DFdwmFxJ.mjs → chunk-CWQS3NFK-Co4ALolT.mjs} +1 -1
- package/dist/{chunk-D4J545R4-C8nMOauR.mjs → chunk-D4J545R4-DkHLjHX6.mjs} +2 -2
- package/dist/{chunk-D6CWQ5DW-B-J4LN9N.mjs → chunk-D6CWQ5DW-7lvT8dGP.mjs} +2 -2
- package/dist/{chunk-D7MEQ3VN-Csvth_Ss.mjs → chunk-D7MEQ3VN-D8jJZr4A.mjs} +2 -2
- package/dist/{chunk-DCAAORBQ-BdrR5ttw.mjs → chunk-DCAAORBQ-C3s1D8OY.mjs} +2 -2
- package/dist/{chunk-DXB73IDG-C774okS0.mjs → chunk-DXB73IDG-DIKSLkPq.mjs} +1 -1
- package/dist/{chunk-EEXR5ZDP-C5AJH114.mjs → chunk-EEXR5ZDP-CETL3_Uw.mjs} +1 -1
- package/dist/{chunk-EIZGF4BS-8bsVXqW0.mjs → chunk-EIZGF4BS-DOoQW9jQ.mjs} +2 -2
- package/dist/{chunk-F23WWYKW-DST0dB7V.mjs → chunk-F23WWYKW-BK2tpXPf.mjs} +2 -2
- package/dist/{chunk-F55TLFGB-DqkrAMO5.mjs → chunk-F55TLFGB-Vy5RU2P3.mjs} +2 -2
- package/dist/{chunk-FEIOJCZD-C4x0A4rb.mjs → chunk-FEIOJCZD-C25Und0M.mjs} +2 -2
- package/dist/{chunk-GCTKCWKD-Deqi1D_N.mjs → chunk-GCTKCWKD-Di-RB9Qt.mjs} +1 -1
- package/dist/{chunk-GFQRA5P5-1fzItQ8F.mjs → chunk-GFQRA5P5-DnjwTqP3.mjs} +1 -1
- package/dist/{chunk-GOV5EKKI-PN17n-Z0.mjs → chunk-GOV5EKKI-CKV9jOGv.mjs} +2 -2
- package/dist/{chunk-GXVXFKBA-993FoPmq.mjs → chunk-GXVXFKBA-CUKDClxt.mjs} +2 -2
- package/dist/{chunk-HDQ56CKY-pGV4pOJA.mjs → chunk-HDQ56CKY-MTQ75a8z.mjs} +2 -2
- package/dist/{chunk-HJQJAYMS-Ci3vsKQW.mjs → chunk-HJQJAYMS-D-8Vc6Zb.mjs} +1 -1
- package/dist/{chunk-HJWBQKYG-UZig4wUt.mjs → chunk-HJWBQKYG-XrOcsn2f.mjs} +2 -2
- package/dist/{chunk-HWBSOZZR-Dikp87Ww.mjs → chunk-HWBSOZZR-BZF8XsyZ.mjs} +2 -2
- package/dist/{chunk-HWKDQ44K-CPSjqtR_.mjs → chunk-HWKDQ44K-wgmyck2O.mjs} +2 -2
- package/dist/{chunk-I57KEIP3-B1DoH8rp.mjs → chunk-I57KEIP3-DipCOPKf.mjs} +2 -2
- package/dist/{chunk-IPJHKYVM-BbWncVr2.mjs → chunk-IPJHKYVM-C3IodQq7.mjs} +1 -1
- package/dist/{chunk-J642UCRS-DB77Y2Wt.mjs → chunk-J642UCRS-YiNealfn.mjs} +2 -2
- package/dist/{chunk-JVPRLUMK-DnQCNjpq.mjs → chunk-JVPRLUMK-VMFWXimu.mjs} +2 -2
- package/dist/{chunk-KMEYNNUA-DfdK88O_.mjs → chunk-KMEYNNUA-pRogdye4.mjs} +2 -2
- package/dist/{chunk-LL3S3NLB-DxXgE3kY.mjs → chunk-LL3S3NLB-ByBS5IDP.mjs} +2 -2
- package/dist/{chunk-LPQPILI2-BXfU9TgM.mjs → chunk-LPQPILI2-FRQB9gt5.mjs} +2 -2
- package/dist/{chunk-LTZRCH7N-GAjTFNwG.mjs → chunk-LTZRCH7N-46S7WKw8.mjs} +2 -2
- package/dist/{chunk-LWEGUNWT-BALY4RLC.mjs → chunk-LWEGUNWT-DdGmM3wr.mjs} +2 -2
- package/dist/{chunk-MDDMCKUK-D6GWoJsI.mjs → chunk-MDDMCKUK-CuRdI1Uv.mjs} +2 -2
- package/dist/{chunk-MDLLFABN-oBQf6bGE.mjs → chunk-MDLLFABN-Wd1iVjXi.mjs} +2 -2
- package/dist/{chunk-MHTUABJP-dKmK6Hw7.mjs → chunk-MHTUABJP-BWrqic3t.mjs} +1 -1
- package/dist/{chunk-MIZPJHVH-z-geAni9.mjs → chunk-MIZPJHVH-DWdPvcYR.mjs} +2 -2
- package/dist/{chunk-MLXIYONF-DB-C8Hx8.mjs → chunk-MLXIYONF-CiCzoeGt.mjs} +2 -2
- package/dist/{chunk-MYE6AGBJ-B4pRo9ma.mjs → chunk-MYE6AGBJ-DJo74dVC.mjs} +2 -2
- package/dist/{chunk-NAERJDUW-CX0lf-xx.mjs → chunk-NAERJDUW-CIHrNgJB.mjs} +2 -2
- package/dist/{chunk-NCNPKYJZ-BFGan4lR.mjs → chunk-NCNPKYJZ-BVljycUZ.mjs} +2 -2
- package/dist/{chunk-NUYSJFDK-D2NXm2ND.mjs → chunk-NUYSJFDK-BTseBdxv.mjs} +2 -2
- package/dist/{chunk-NYQYO467-Degkom4D.mjs → chunk-NYQYO467-BgXuDHUQ.mjs} +2 -2
- package/dist/{chunk-OARHFVLG-CY8D2Qov.mjs → chunk-OARHFVLG-Cr0x3Si_.mjs} +2 -2
- package/dist/{chunk-OCLXQMOG-BMsyLQhm.mjs → chunk-OCLXQMOG-BW6rwyzS.mjs} +2 -2
- package/dist/{chunk-OCS6LSEM-BHslttnj.mjs → chunk-OCS6LSEM-D7VAOziZ.mjs} +2 -2
- package/dist/{chunk-OJDRYQWQ-BV5MVRVg.mjs → chunk-OJDRYQWQ-ikvLWpfV.mjs} +1 -1
- package/dist/{chunk-OL3S66CO-Bmgu4tW4.mjs → chunk-OL3S66CO-CQnF8cPH.mjs} +2 -2
- package/dist/{chunk-PBXLG62G-lGjqkk78.mjs → chunk-PBXLG62G-CgbPJTiw.mjs} +2 -2
- package/dist/{chunk-PP6PSHAB-DMC_XCfO.mjs → chunk-PP6PSHAB-CO4MYU__.mjs} +1 -1
- package/dist/{chunk-PYSFUGCK-CY7pclEB.mjs → chunk-PYSFUGCK-DsRn64Ef.mjs} +2 -2
- package/dist/{chunk-QCDB2VPH-D1RuXtOm.mjs → chunk-QCDB2VPH-BUMOhlW7.mjs} +2 -2
- package/dist/{chunk-QJ7O6ZN3-BH67tCjg.mjs → chunk-QJ7O6ZN3-F0_rcDPM.mjs} +2 -2
- package/dist/{chunk-R6QSAL5T-CtbJTvt9.mjs → chunk-R6QSAL5T-CeW6f7-x.mjs} +1 -1
- package/dist/{chunk-R6VWJ2ZL-B0CcMPyK.mjs → chunk-R6VWJ2ZL-FwG_Za20.mjs} +1 -1
- package/dist/{chunk-RPNGRAAP-BughPjdR.mjs → chunk-RPNGRAAP-BmkapBPD.mjs} +2 -2
- package/dist/{chunk-SDNKECQQ-C3GEf3VZ.mjs → chunk-SDNKECQQ-DkebEzkd.mjs} +2 -2
- package/dist/{chunk-SYMJJMQ4-CWTh95-4.mjs → chunk-SYMJJMQ4-DOZMaECk.mjs} +2 -2
- package/dist/{chunk-T56QNPHK-DlKQeuXU.mjs → chunk-T56QNPHK-DPXaSSfC.mjs} +2 -2
- package/dist/{chunk-TLSUDHID-B8UnqY4U.mjs → chunk-TLSUDHID-BovZg0r1.mjs} +2 -2
- package/dist/{chunk-TOMNU26N-BcdbBQ2p.mjs → chunk-TOMNU26N-AAglMy4J.mjs} +2 -2
- package/dist/{chunk-TXBZCHCQ-l48TczF5.mjs → chunk-TXBZCHCQ-WeVWfqYv.mjs} +2 -2
- package/dist/{chunk-UNYNJIFU-DwPQMz0F.mjs → chunk-UNYNJIFU-CqGlXAg7.mjs} +3 -3
- package/dist/{chunk-V7TAPXDL-CnKUp2df.mjs → chunk-V7TAPXDL-DQgGPvBY.mjs} +2 -2
- package/dist/{chunk-VJFXDYWH-IiUXkKX0.mjs → chunk-VJFXDYWH-DIo0Ia0_.mjs} +2 -2
- package/dist/{chunk-VLGZJRPG-D4NVKJYL.mjs → chunk-VLGZJRPG-DymOu90-.mjs} +2 -2
- package/dist/{chunk-VOBGTVA6-BT7gUxqf.mjs → chunk-VOBGTVA6-Bfa1NTzt.mjs} +2 -2
- package/dist/{chunk-VYOJP4TV-BvibOnKG.mjs → chunk-VYOJP4TV-PBsHe2md.mjs} +2 -2
- package/dist/{chunk-WKFATFPP-DCZdrA8x.mjs → chunk-WKFATFPP-KO2zkfs2.mjs} +2 -2
- package/dist/{chunk-X2AJGDEF-BaH6i1Rq.mjs → chunk-X2AJGDEF-D5w6wtaX.mjs} +1 -1
- package/dist/{chunk-XHM67O4N-Cg35xc6b.mjs → chunk-XHM67O4N-akBjDPaR.mjs} +1 -1
- package/dist/{chunk-XKQRETAK-cVWA9gEB.mjs → chunk-XKQRETAK-RHzVmuiF.mjs} +2 -2
- package/dist/{chunk-XORM457F-CRToN1RQ.mjs → chunk-XORM457F-wr_DBBnV.mjs} +2 -2
- package/dist/{chunk-XVDPCNWR-CtK-Xs2O.mjs → chunk-XVDPCNWR-DxaG1FfA.mjs} +2 -2
- package/dist/{chunk-YCFVLTST-Ox9Z0Nk6.mjs → chunk-YCFVLTST-Dzwevuc3.mjs} +2 -2
- package/dist/{chunk-YFG2CMIF-Csgr05KV.mjs → chunk-YFG2CMIF-BoZQym0L.mjs} +2 -2
- package/dist/{chunk-YNYSPYQ5-BpP11HXS.mjs → chunk-YNYSPYQ5-DesxOVHh.mjs} +1 -1
- package/dist/{chunk-YS3AZT3J-BEZxz_aQ.mjs → chunk-YS3AZT3J-CBc9LHIy.mjs} +2 -2
- package/dist/{chunk-YTNYSM6T-DuBR2-TM.mjs → chunk-YTNYSM6T-WMIf3AF8.mjs} +2 -2
- package/dist/{chunk-Z6LRHWXI-DbRghyzT.mjs → chunk-Z6LRHWXI-DGTVoTuf.mjs} +2 -2
- package/dist/{chunk-Z7JVV2SM-BzR-yvwK.mjs → chunk-Z7JVV2SM-Cb4YKOCM.mjs} +2 -2
- package/dist/clear-5CZ5X4YR-CadVxKrq.mjs +1 -0
- package/dist/cli.mjs +58 -1400
- package/dist/colors-BNufdynn.mjs +2 -0
- package/dist/colors-T3xmlXQT.mjs +1 -0
- package/dist/column-WLPMMSTS-6o4DDsDk.mjs +1 -0
- package/dist/comm-5SLSESQG-C2GatHU6.mjs +1 -0
- package/dist/config-schema.json +87 -0
- package/dist/config.project-local.schema.json +30 -0
- package/dist/config.project.schema.json +59 -0
- package/dist/config.user.schema.json +58 -0
- package/dist/constants-B1fw1n69.mjs +2 -0
- package/dist/cp-XOYR4ABJ-DmS6dER-.mjs +1 -0
- package/dist/{curl-47BFPSFW-Kn_Na_aU.mjs → curl-47BFPSFW-C2kRcGkX.mjs} +2 -2
- package/dist/cut-OPC3VAGB-s4tQWhL5.mjs +1 -0
- package/dist/date-DD7FVA2V-Dubgjr6a.mjs +1 -0
- package/dist/diff-HJF2MPDN-DjGBLQph.mjs +1 -0
- package/dist/dirname-LEMTZZFS-B477CImE.mjs +1 -0
- package/dist/dist-BToVkFhc.mjs +1 -0
- package/dist/dist-DVM7wH81.mjs +359 -0
- package/dist/dist-ou5qina8.mjs +1609 -0
- package/dist/du-WO2ENHXQ-C4c5wweW.mjs +1 -0
- package/dist/echo-O45JWWI2-TudodhHR.mjs +1 -0
- package/dist/env-5EPCWSXR-CTcNEMpy.mjs +1 -0
- package/dist/{esm-BFkWzFey.mjs → esm-BbkJd7ro.mjs} +1 -1
- package/dist/{esm-wByiX8MO.mjs → esm-CEs3LWY3.mjs} +2 -2
- package/dist/{execAsync-0jii24p9.mjs → execAsync-CulVJBMN.mjs} +1 -1
- package/dist/{execAsync-Czqc-yAz.mjs → execAsync-CzW9fUYQ.mjs} +1 -1
- package/dist/{execAsync-DgmLXmTx.mjs → execAsync-DuQoqWaW.mjs} +1 -1
- package/dist/expand-DTNXU4LQ-BT6M2Tdc.mjs +1 -0
- package/dist/expansion-ENLSRCXJ-Cy7j--Iy.mjs +1 -0
- package/dist/expr-5T3UU5KE-D2Kr5nuJ.mjs +1 -0
- package/dist/file-ZIGAJ4YS-BH3jYcuM.mjs +1 -0
- package/dist/find-TPUOAIUQ-RFxkUcGN.mjs +1 -0
- package/dist/flag-coverage-QT4N2Z44--nNG-HLV.mjs +2 -0
- package/dist/fold-LDSORVYE-CfKQmrJ1.mjs +1 -0
- package/dist/{getMachineId-bsd-C1M346yz.mjs → getMachineId-bsd-DAmB-Ym0.mjs} +2 -2
- package/dist/{getMachineId-bsd-CPESl3L6.mjs → getMachineId-bsd-FYDP9w5Q.mjs} +2 -2
- package/dist/{getMachineId-bsd-DEUypOXJ.mjs → getMachineId-bsd-mPrX3ckm.mjs} +2 -2
- package/dist/{getMachineId-darwin-0hBTy7c8.mjs → getMachineId-darwin-B0Qw-MTj.mjs} +2 -2
- package/dist/{getMachineId-darwin-CJK3eX9q.mjs → getMachineId-darwin-C79HtyON.mjs} +2 -2
- package/dist/{getMachineId-darwin-Vupnt-kR.mjs → getMachineId-darwin-Co8Jnu5v.mjs} +2 -2
- package/dist/{getMachineId-linux-BGQn48cN.mjs → getMachineId-linux-BBORs2cS.mjs} +2 -2
- package/dist/{getMachineId-linux-CIp07XEX.mjs → getMachineId-linux-BizmCjYq.mjs} +2 -2
- package/dist/{getMachineId-linux-B2nkqMir.mjs → getMachineId-linux-BvLCCmKQ.mjs} +2 -2
- package/dist/{getMachineId-unsupported-CH1Q20xN.mjs → getMachineId-unsupported-Bgp-Es9j.mjs} +2 -2
- package/dist/{getMachineId-unsupported-DfSmC7Gy.mjs → getMachineId-unsupported-CbR45h2D.mjs} +2 -2
- package/dist/{getMachineId-unsupported-BnsanXR2.mjs → getMachineId-unsupported-DbGFOAw1.mjs} +2 -2
- package/dist/{getMachineId-win-BmmB_8yL.mjs → getMachineId-win-CT_Y5i_4.mjs} +2 -2
- package/dist/{getMachineId-win-DlPRChXs.mjs → getMachineId-win-Cy0XHq4X.mjs} +2 -2
- package/dist/{getMachineId-win-JnMJbIaW.mjs → getMachineId-win-D5gDnBHa.mjs} +2 -2
- package/dist/{git-handle-BhGnmvTB-BMB_49Sb.mjs → git-handle-DwfYp_z--CfyPz4Dz.mjs} +2 -2
- package/dist/git-handle-DwfYp_z--DreW3fNC.mjs +1 -0
- package/dist/grep-3AIAIJVR-DgQJLmW0.mjs +1 -0
- package/dist/gzip-AQXSGOVS-yXjpnIVd.mjs +1 -0
- package/dist/head-HT2B6D2J-BR4RHRTk.mjs +1 -0
- package/dist/help-VVWX7SA5-M6C6klSC.mjs +1 -0
- package/dist/history-J4QRNGRO-C1r7-kvT.mjs +1 -0
- package/dist/hostname-BK6HG2DE-BBBcRrtV.mjs +1 -0
- package/dist/html-to-markdown-TFCECAGV-B9oYuMVf.mjs +1 -0
- package/dist/index.d.mts +9 -2278
- package/dist/index.mjs +1 -1
- package/dist/init-BZSwVuuW.mjs +1 -0
- package/dist/init-CUXehDND.mjs +397 -0
- package/dist/{is-object-BNVklKxg.mjs → is-object-DF0ZeuvD.mjs} +1 -1
- package/dist/join-GG2LDHE5-xeTE0Mi4.mjs +1 -0
- package/dist/jq-ODXZBPLY-C5v6qNu_.mjs +1 -0
- package/dist/{js-exec-M6UR76J5-DSk5_wnx.mjs → js-exec-M6UR76J5-IyD-lpzv.mjs} +3 -3
- package/dist/{lib-Dl2j2VNl.mjs → lib-BOCdCkg7.mjs} +1 -1
- package/dist/{libesm-DC4M2SkF.mjs → libesm-YL3Bqolr.mjs} +1 -1
- package/dist/ln-4TRFBYAT-4XMTO1OQ.mjs +1 -0
- package/dist/loader-CkZHH0EN.mjs +4 -0
- package/dist/loader-DlIwgUOY.mjs +1 -0
- package/dist/ls-KSXFZCWH-Bw_Cf-VY.mjs +1 -0
- package/dist/{lzma-0LJzVZpl.mjs → lzma-vr8hBkhz.mjs} +2 -2
- package/dist/md5sum-INMIK4DX-CAIH4ZVI.mjs +1 -0
- package/dist/mkdir-TDEMSB6C-D1oUG8Jf.mjs +1 -0
- package/dist/mrmime-C2W7cgq2.mjs +2 -0
- package/dist/mv-Z6MORUFL-CN471qcL.mjs +1 -0
- package/dist/nl-U5YJDM32-CFzXKze3.mjs +1 -0
- package/dist/od-VJEF2UR5-C2R4Accu.mjs +1 -0
- package/dist/{open-browser-BzMQ6cLf.mjs → open-browser-BZZK_gJj.mjs} +1 -1
- package/dist/paste-7N6AFSDS-bUl2Dwz3.mjs +1 -0
- package/dist/preview-1aNziE5D.mjs +1 -0
- package/dist/preview-BK6QYYA7.mjs +3 -0
- package/dist/printf-CX64KX2P-Ce--gWAq.mjs +1 -0
- package/dist/public/assets/ActivityModeContent-1ymqlcHI.js +2 -0
- package/dist/public/assets/{ActivityPanelDiffView-D-EUyEh6.js → ActivityPanelDiffView-DoHWP1ak.js} +1 -1
- package/dist/public/assets/DocumentContext-bvfr7pL2.js +37 -0
- package/dist/public/assets/GraphPanel-DdVygxYk.js +46 -0
- package/dist/public/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/dist/public/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/dist/public/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/dist/public/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/dist/public/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/dist/public/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/dist/public/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/dist/public/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/dist/public/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/dist/public/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/dist/public/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/dist/public/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/dist/public/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/dist/public/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/dist/public/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/dist/public/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/dist/public/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/dist/public/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/dist/public/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/dist/public/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/dist/public/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/dist/public/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/dist/public/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/dist/public/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/dist/public/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/dist/public/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/dist/public/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/dist/public/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/dist/public/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/dist/public/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/dist/public/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/dist/public/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/dist/public/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/dist/public/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/dist/public/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/dist/public/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/dist/public/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/dist/public/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/dist/public/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/dist/public/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/dist/public/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/dist/public/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/dist/public/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/dist/public/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/dist/public/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/dist/public/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/dist/public/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/dist/public/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/dist/public/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/dist/public/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/dist/public/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/dist/public/assets/McpConsentDialogBody-CJwPf_uv.js +1 -0
- package/dist/public/assets/OutlinePanel-dumodx-h.js +2 -0
- package/dist/public/assets/SettingsPane-CtgbQZxP.js +6 -0
- package/dist/public/assets/SourceEditor-CR_7DOAH.js +2 -0
- package/dist/public/assets/__vite-browser-external-FEGw1XPd.js +1 -0
- package/dist/public/assets/_baseFor-CX8dsZbW.js +1 -0
- package/dist/public/assets/{agent-presence-BXsx4eTl.js → agent-presence-Ds2n3U5P.js} +1 -1
- package/dist/public/assets/arc-BL_OKZmE.js +1 -0
- package/dist/public/assets/architecture-YZFGNWBL-DVxNz-zn.js +1 -0
- package/dist/public/assets/architectureDiagram-Q4EWVU46-BKKtWWhU.js +36 -0
- package/dist/public/assets/array-X0JlPOfd.js +1 -0
- package/dist/public/assets/blockDiagram-DXYQGD6D-fzO4vZye.js +132 -0
- package/dist/public/assets/{button-BPXuMr5W.js → button-BsFpqlpT.js} +1 -1
- package/dist/public/assets/c4Diagram-AHTNJAMY-BkXqEjiP.js +10 -0
- package/dist/public/assets/channel-CR-xJel6.js +1 -0
- package/dist/public/assets/chunk-2KRD3SAO-DQj0pw3H.js +1 -0
- package/dist/public/assets/chunk-336JU56O-CBajDulv.js +2 -0
- package/dist/public/assets/chunk-426QAEUC-BoBKbVmN.js +1 -0
- package/dist/public/assets/chunk-4BX2VUAB-D8pbSOlJ.js +1 -0
- package/dist/public/assets/chunk-4TB4RGXK-mA6CujZO.js +206 -0
- package/dist/public/assets/chunk-55IACEB6-CqVyNzhX.js +1 -0
- package/dist/public/assets/chunk-5FUZZQ4R-BVDLgFg2.js +62 -0
- package/dist/public/assets/chunk-5PVQY5BW-Cxi5d3lT.js +2 -0
- package/dist/public/assets/chunk-67CJDMHE-CdrAY8qZ.js +1 -0
- package/dist/public/assets/chunk-7N4EOEYR-CJ3HBg3c.js +1 -0
- package/dist/public/assets/chunk-AA7GKIK3-D0ckJAXt.js +1 -0
- package/dist/public/assets/chunk-BSJP7CBP-D4bNhKd7.js +1 -0
- package/dist/public/assets/chunk-CFjPhJqf.js +1 -0
- package/dist/public/assets/chunk-CIAEETIT-D1Fpp2md.js +1 -0
- package/dist/public/assets/chunk-EDXVE4YY-ChhT3Iyo.js +1 -0
- package/dist/public/assets/chunk-ENJZ2VHE-Bby39so4.js +10 -0
- package/dist/public/assets/chunk-FMBD7UC4-pRkDIOZn.js +15 -0
- package/dist/public/assets/chunk-FOC6F5B3-BsB4oTj4.js +1 -0
- package/dist/public/assets/chunk-ICPOFSXX-CrnuSfeJ.js +122 -0
- package/dist/public/assets/chunk-K5T4RW27-CtREah_n.js +94 -0
- package/dist/public/assets/chunk-KGLVRYIC-DtDxSfKu.js +1 -0
- package/dist/public/assets/chunk-LIHQZDEY-D63TRk6j.js +1 -0
- package/dist/public/assets/chunk-ORNJ4GCN-Dv2PvYVu.js +1 -0
- package/dist/public/assets/chunk-OYMX7WX6-BhfqKepC.js +231 -0
- package/dist/public/assets/chunk-QZHKN3VN-DBRWHtgj.js +1 -0
- package/dist/public/assets/chunk-U2HBQHQK-6BAKH95D.js +70 -0
- package/dist/public/assets/chunk-X2U36JSP-Cqpkx90-.js +1 -0
- package/dist/public/assets/chunk-XPW4576I-DSytTnq4.js +32 -0
- package/dist/public/assets/chunk-YZCP3GAM-Dt9awjVh.js +1 -0
- package/dist/public/assets/chunk-ZZ45TVLE-JGFITgiO.js +1 -0
- package/dist/public/assets/classDiagram-6PBFFD2Q-oopM_Z0m.js +1 -0
- package/dist/public/assets/classDiagram-v2-HSJHXN6E-ZAL74u9S.js +1 -0
- package/dist/public/assets/clone-C5y6xhRJ.js +1 -0
- package/dist/public/assets/colors-XIJoz9Bd.js +1 -0
- package/dist/public/assets/{compiler-runtime-Y11fyRVL.js → compiler-runtime-CVnuRdak.js} +1 -1
- package/dist/public/assets/config-validation-events-BvuBj41U.js +1 -0
- package/dist/public/assets/cose-bilkent-S5V4N54A-B9nG-SHi.js +1 -0
- package/dist/public/assets/cytoscape.esm-BkjNfcSF.js +321 -0
- package/dist/public/assets/dagre-BEdPLXba.js +1 -0
- package/dist/public/assets/dagre-KV5264BT-DKn5nGCC.js +4 -0
- package/dist/public/assets/defaultLocale-ZxyFnXCb.js +1 -0
- package/dist/public/assets/diagram-5BDNPKRD-BQuwYEd0.js +10 -0
- package/dist/public/assets/diagram-G4DWMVQ6-BmzIMyV5.js +24 -0
- package/dist/public/assets/diagram-MMDJMWI5-CI5eJfgr.js +43 -0
- package/dist/public/assets/diagram-TYMM5635-Cc8TJ7v3.js +24 -0
- package/dist/public/assets/dialog-Cv1qneWl.js +45 -0
- package/dist/public/assets/{dist-DR1MrLJC.js → dist-B4kUko7n.js} +1 -1
- package/dist/public/assets/{dist-BqO6NfD-.js → dist-BH1b1nWB.js} +1 -1
- package/dist/public/assets/{dist-DlS42TIP.js → dist-BOapDt7N.js} +1 -1
- package/dist/public/assets/dist-CIRuNcH5.js +1 -0
- package/dist/public/assets/{dist-GlH2KPqY.js → dist-D08h1pJc.js} +1 -1
- package/dist/public/assets/{dist-D2wwoXzm.js → dist-S8LJmtzL.js} +1 -1
- package/dist/public/assets/{dist-DeDgmJv2.js → dist-VyzSEzD4.js} +1 -1
- package/dist/public/assets/{dist-CgLbXgrr.js → dist-nPpvoMNC.js} +1 -1
- package/dist/public/assets/doc-hash-Q6dTjwu5.js +421 -0
- package/dist/public/assets/erDiagram-SMLLAGMA-BkrhGWMT.js +85 -0
- package/dist/public/assets/flatten-UmyAv3V9.js +1 -0
- package/dist/public/assets/flowDiagram-DWJPFMVM-qh62fanI.js +162 -0
- package/dist/public/assets/ganttDiagram-T4ZO3ILL-DXuCeCk6.js +292 -0
- package/dist/public/assets/gitGraph-7Q5UKJZL-CYhZlmk3.js +1 -0
- package/dist/public/assets/gitGraphDiagram-UUTBAWPF-BbcuenPj.js +106 -0
- package/dist/public/assets/graphlib-CasrTmMJ.js +1 -0
- package/dist/public/assets/image-preview-BJSGEOo4.png +0 -0
- package/dist/public/assets/index-BBbaN3Kd.js +1858 -0
- package/dist/public/assets/index-DOkkqO-8.css +1 -0
- package/dist/public/assets/info-OMHHGYJF-BslcKZhH.js +1 -0
- package/dist/public/assets/infoDiagram-42DDH7IO-WFAMbO2S.js +2 -0
- package/dist/public/assets/init-CBj3ecIW.js +1 -0
- package/dist/public/assets/isEmpty-DWJlzxR1.js +1 -0
- package/dist/public/assets/isObjectLike-AdQZ65l0.js +1 -0
- package/dist/public/assets/isSymbol-BP7IOIqG.js +1 -0
- package/dist/public/assets/ishikawaDiagram-UXIWVN3A-BJBiReWg.js +70 -0
- package/dist/public/assets/journeyDiagram-VCZTEJTY-Boq77pl6.js +139 -0
- package/dist/public/assets/kanban-definition-6JOO6SKY-DYMSr18F.js +89 -0
- package/dist/public/assets/katex-qwlL5fSd.js +257 -0
- package/dist/public/assets/line-_p5Px7MV.js +1 -0
- package/dist/public/assets/linear-DwuDS4qT.js +1 -0
- package/dist/public/assets/mcp-consent-store-BBTXqzE6.js +1 -0
- package/dist/public/assets/mermaid-parser.core-BcBb_Ows.js +4 -0
- package/dist/public/assets/mermaid.core-ZLTnLqVQ.js +11 -0
- package/dist/public/assets/min-HKuGSUqa.js +1 -0
- package/dist/public/assets/mindmap-definition-QFDTVHPH-BSxM4djR.js +96 -0
- package/dist/public/assets/now-BBH4UqDm.js +1 -0
- package/dist/public/assets/ordinal-CeOFUmRv.js +1 -0
- package/dist/public/assets/packet-4T2RLAQJ-QVnYA304.js +1 -0
- package/dist/public/assets/{panel-BCRdtBla.js → panel-BgMqDESF.js} +1 -1
- package/dist/public/assets/path-rUlDLHdA.js +1 -0
- package/dist/public/assets/pdf-a35ddrIO.js +54 -0
- package/dist/public/assets/pdf.worker-B1D2UnXD.mjs +63133 -0
- package/dist/public/assets/pdf.worker-CM-zAFN-.js +1 -0
- package/dist/public/assets/pie-ZZUOXDRM-C61c5byc.js +1 -0
- package/dist/public/assets/pieDiagram-DEJITSTG-CHRE_Jie.js +30 -0
- package/dist/public/assets/preload-helper-2ej06EnG.js +1 -0
- package/dist/public/assets/propagation-api-qAYD7s-v.js +1 -0
- package/dist/public/assets/quadrantDiagram-34T5L4WZ-CQkE5TwH.js +7 -0
- package/dist/public/assets/radar-PYXPWWZC-CMxjRtd8.js +1 -0
- package/dist/public/assets/reduce-DotyoGA7.js +1 -0
- package/dist/public/assets/requirementDiagram-MS252O5E-DHK98tKS.js +84 -0
- package/dist/public/assets/rough.esm-BFJ-MgcB.js +1 -0
- package/dist/public/assets/sankeyDiagram-XADWPNL6-BIXaStZh.js +10 -0
- package/dist/public/assets/sequenceDiagram-FGHM5R23-BCNH3kJo.js +157 -0
- package/dist/public/assets/src-C9jsS3p4.js +1 -0
- package/dist/public/assets/src-zyMpT2LE.js +1 -0
- package/dist/public/assets/stateDiagram-FHFEXIEX-BC5mjB6x.js +1 -0
- package/dist/public/assets/stateDiagram-v2-QKLJ7IA2-B8L3BBt1.js +1 -0
- package/dist/public/assets/stex-BKMR5xQj.js +1 -0
- package/dist/public/assets/target-navigation-intent-BfGOumP6.js +1 -0
- package/dist/public/assets/telemetry-impl-CMeDUVKn.js +2 -0
- package/dist/public/assets/timeline-definition-GMOUNBTQ-VNxUGgXp.js +120 -0
- package/dist/public/assets/tooltip-CBGDOTMI.js +1 -0
- package/dist/public/assets/trace-api-DPMyR1_m.js +1 -0
- package/dist/public/assets/treeView-SZITEDCU-DfSa_Oiv.js +1 -0
- package/dist/public/assets/treemap-W4RFUUIX-Cp0s5wEq.js +1 -0
- package/dist/public/assets/vennDiagram-DHZGUBPP-DV2Y2j0r.js +34 -0
- package/dist/public/assets/video-preview-vLovc_Vy.png +0 -0
- package/dist/public/assets/wardley-RL74JXVD-CXcBKCuj.js +1 -0
- package/dist/public/assets/wardleyDiagram-NUSXRM2D-C1mMZ3kx.js +20 -0
- package/dist/public/assets/xychartDiagram-5P7HB3ND-CxFcwN2X.js +7 -0
- package/dist/public/index.html +43 -18
- package/dist/pwd-D4OZ7N27-C18XewhV.mjs +1 -0
- package/dist/{python3-AUFTPCU6-MeZyx8_A.mjs → python3-AUFTPCU6-BaJugIdp.mjs} +2 -2
- package/dist/readlink-MI4GCHJF-CHvs7DDT.mjs +1 -0
- package/dist/rev-XOSYPP45-2mnFFZWW.mjs +1 -0
- package/dist/rg-FOQSCCX3-BJahNfSe.mjs +1 -0
- package/dist/rm-RTZG23RL-D9-0WGRY.mjs +1 -0
- package/dist/rmdir-XTQXT7RK-Br7eH9kL.mjs +1 -0
- package/dist/{rolldown-runtime-wcPFST8Q-BB0WpHs3.mjs → rolldown-runtime-twds-ZHy-Dxr-RWJs.mjs} +1 -1
- package/dist/schemas/v0/config.project-local.schema.json +30 -0
- package/dist/schemas/v0/config.project.schema.json +59 -0
- package/dist/schemas/v0/config.user.schema.json +58 -0
- package/dist/sed-VFTTATXJ-mYhAmixc.mjs +1 -0
- package/dist/seq-RN5ZUASB-CKf5MNNO.mjs +1 -0
- package/dist/server-lock-D7DXNVql-B5nINglj.mjs +1 -0
- package/dist/server-lock-D7DXNVql-BRVVzA6T.mjs +2 -0
- package/dist/sha1sum-VJPNLNU6-DuOHap1X.mjs +1 -0
- package/dist/sha256sum-PI32XWXY-D9fEipQ7.mjs +1 -0
- package/dist/sleep-VZFPZFWA-B1fSoYuO.mjs +1 -0
- package/dist/sort-DCNRDA7U-DDCY4JZu.mjs +1 -0
- package/dist/split-SITCSYCZ-b9hfEJw7.mjs +1 -0
- package/dist/sqlite3-56UMWEY3-BQEx5i3P.mjs +1 -0
- package/dist/src-DyJycG37.mjs +1 -0
- package/dist/start-BAIlolZU.mjs +3 -0
- package/dist/start-C7apYJ7u.mjs +1 -0
- package/dist/stat-BT5A227F-Dzp4sgau.mjs +1 -0
- package/dist/strings-7PLOGTPD-DT41jX9d.mjs +1 -0
- package/dist/tac-SJGXQ4T2-BpdVoP8b.mjs +1 -0
- package/dist/tail-S5ULNTJU-0-sYrYik.mjs +1 -0
- package/dist/tar-ANUBEFJY-Wh3na_NU.mjs +1 -0
- package/dist/tee-O7VXZDCO-CwnGG0go.mjs +1 -0
- package/dist/time-DEUO3QV2-DzkqaQ1k.mjs +1 -0
- package/dist/timeout-VRKMCG72-BtPBpIRq.mjs +1 -0
- package/dist/touch-DX2IJOQ4-KW0Ui-lB.mjs +1 -0
- package/dist/tr-2HXZRDSW-C6Kf0M8T.mjs +1 -0
- package/dist/tree-LYXBS7DC-BN1FBqvM.mjs +1 -0
- package/dist/true-WHJNXCHG-DxCMVdqj.mjs +1 -0
- package/dist/unexpand-RGTMIGZM-DZ4Kf6Xq.mjs +1 -0
- package/dist/uniq-SUNANL47-Ceg51JdA.mjs +1 -0
- package/dist/wc-TQB3VNOX-BzWNq0MY.mjs +1 -0
- package/dist/which-XZHEH76L-DH_U2-Cj.mjs +1 -0
- package/dist/whoami-DGKU3D2X-BholYNPM.mjs +1 -0
- package/dist/xan-BXDXYEIB-b1eAtgch.mjs +1 -0
- package/dist/xan-view-ECQUO7AJ-DWDC57b_.mjs +1 -0
- package/dist/xargs-I6EZUCYF-Cov-i7kW.mjs +1 -0
- package/dist/yq-MJMAR36V-1r29nH4p.mjs +1 -0
- package/package.json +12 -15
- package/scripts/build-config-schema.mjs +69 -0
- package/scripts/postinstall.mjs +0 -20
- package/scripts/probe-exec.ts +7 -10
- package/scripts/probe-read-document.ts +1 -13
- package/dist/alias-JE7RI5QX-TirEebNy.mjs +0 -1
- package/dist/awk2-POPGKRAI-DigGXYmO.mjs +0 -1
- package/dist/base64-4YMZCVJ5-B4GnvJtR.mjs +0 -1
- package/dist/basename-AA2KJYZQ-DlZHEU5f.mjs +0 -1
- package/dist/bash-IJWYRKFO-BA1gxmDh.mjs +0 -1
- package/dist/build-D4l8tfO0.mjs +0 -2
- package/dist/cat-RDUMLXKC-CAQOzqfy.mjs +0 -1
- package/dist/chmod-SYMGL4JA-BC2VVHCa.mjs +0 -1
- package/dist/clear-5CZ5X4YR-B5oRhK00.mjs +0 -1
- package/dist/colors-BnZ-i-vb.mjs +0 -1
- package/dist/colors-DoPZvo1q.mjs +0 -2
- package/dist/column-WLPMMSTS-fFssyAvW.mjs +0 -1
- package/dist/comm-5SLSESQG-DRcwK9Gt.mjs +0 -1
- package/dist/constants-ekUaxW9F.mjs +0 -2
- package/dist/cp-XOYR4ABJ-BUZu7KNi.mjs +0 -1
- package/dist/cut-OPC3VAGB-BIRZEN2Y.mjs +0 -1
- package/dist/date-DD7FVA2V-DRxppxbV.mjs +0 -1
- package/dist/diff-HJF2MPDN-Yo3lE_58.mjs +0 -1
- package/dist/dirname-LEMTZZFS-2cTXnmQf.mjs +0 -1
- package/dist/dist-0qFIeeXA.mjs +0 -142
- package/dist/dist-BCyi1oM7.mjs +0 -116
- package/dist/dist-CXdg7KnM.mjs +0 -199
- package/dist/dist-Ct-gJ7iD.mjs +0 -1
- package/dist/du-WO2ENHXQ-B5uda2-L.mjs +0 -1
- package/dist/echo-O45JWWI2-B9QCpaZR.mjs +0 -1
- package/dist/env-5EPCWSXR--4eujSrM.mjs +0 -1
- package/dist/expand-DTNXU4LQ-BWwDphsm.mjs +0 -1
- package/dist/expansion-ENLSRCXJ-BBTiIHJS.mjs +0 -1
- package/dist/expr-5T3UU5KE-D5OdgUlD.mjs +0 -1
- package/dist/file-ZIGAJ4YS-zZfB3nws.mjs +0 -1
- package/dist/find-TPUOAIUQ-DaW1-9Vm.mjs +0 -1
- package/dist/flag-coverage-QT4N2Z44-B8zntJyb.mjs +0 -2
- package/dist/fold-LDSORVYE-CAfX9d8n.mjs +0 -1
- package/dist/git-handle-BhGnmvTB-Di8EsrYa.mjs +0 -1
- package/dist/grep-3AIAIJVR-C9A_aSMK.mjs +0 -1
- package/dist/gzip-AQXSGOVS-CL228lzk.mjs +0 -1
- package/dist/head-HT2B6D2J-DyNkF3aY.mjs +0 -1
- package/dist/help-VVWX7SA5-D5WzpTIY.mjs +0 -1
- package/dist/history-J4QRNGRO-DUTsR2Sf.mjs +0 -1
- package/dist/hostname-BK6HG2DE-zmNkhqtV.mjs +0 -1
- package/dist/html-to-markdown-TFCECAGV-Ux5cbjMV.mjs +0 -1
- package/dist/init-Ccjx3YjD.mjs +0 -1
- package/dist/init-DOTyF3_B.mjs +0 -1
- package/dist/init-Dc2dCgGt.mjs +0 -255
- package/dist/init-DeV-MdCs.mjs +0 -120
- package/dist/join-GG2LDHE5-B6C3-ghI.mjs +0 -1
- package/dist/jq-ODXZBPLY-Uj_VahOC.mjs +0 -1
- package/dist/keepalive-CZzB5k1h.mjs +0 -2
- package/dist/ln-4TRFBYAT-DiYK6FgR.mjs +0 -1
- package/dist/loader-Bveym9GJ.mjs +0 -1
- package/dist/loader-C3jzK-Dy.mjs +0 -3
- package/dist/ls-KSXFZCWH-B0la1Q-P.mjs +0 -1
- package/dist/md5sum-INMIK4DX-DAG8dmoX.mjs +0 -1
- package/dist/mkdir-TDEMSB6C-CRMB4_AE.mjs +0 -1
- package/dist/mv-Z6MORUFL-1iTO8NY5.mjs +0 -1
- package/dist/nl-U5YJDM32-IRiMqQcZ.mjs +0 -1
- package/dist/od-VJEF2UR5-PasvdXXR.mjs +0 -1
- package/dist/paste-7N6AFSDS-C3M5_YM6.mjs +0 -1
- package/dist/paths-BA1xev5m.mjs +0 -1
- package/dist/paths-DtQI2_ER.mjs +0 -2
- package/dist/preview-BTFflPaA.mjs +0 -1
- package/dist/preview-BuXqi6nl.mjs +0 -3
- package/dist/printf-CX64KX2P-uTOF6Zpa.mjs +0 -1
- package/dist/public/assets/ActivityModeContent-Ccu_n0bV.js +0 -2
- package/dist/public/assets/DocumentContext-C1msvcHp.js +0 -5
- package/dist/public/assets/GraphPanel-CJ_U3W3L.js +0 -46
- package/dist/public/assets/McpConsentDialogBody-Csjet19t.js +0 -1
- package/dist/public/assets/PageListContext-B5SWnlyE.js +0 -278
- package/dist/public/assets/SourceEditor-OFesfBB2.js +0 -3
- package/dist/public/assets/__vite-browser-external-Dz2JgTKm.js +0 -1
- package/dist/public/assets/chunk-DECur_0Z.js +0 -1
- package/dist/public/assets/clipboard-DAcKCHl1.js +0 -32
- package/dist/public/assets/dialog-CtSN0d2b.js +0 -45
- package/dist/public/assets/index-CwFTGDhe.js +0 -1843
- package/dist/public/assets/index-DjR45Lon.css +0 -1
- package/dist/public/assets/propagation-api-Bugyj7xy.js +0 -1
- package/dist/public/assets/telemetry-impl-D8K_lJGH.js +0 -2
- package/dist/public/assets/toggle-group-LDOO6zaV.js +0 -1
- package/dist/public/assets/tooltip-D0MnQ7ZX.js +0 -1
- package/dist/pwd-D4OZ7N27-DNkGMjtD.mjs +0 -1
- package/dist/readlink-MI4GCHJF-DRVZBAvY.mjs +0 -1
- package/dist/rev-XOSYPP45-q2MQLs41.mjs +0 -1
- package/dist/rg-FOQSCCX3-Cssz8GNh.mjs +0 -1
- package/dist/rm-RTZG23RL-fjvVauiI.mjs +0 -1
- package/dist/rmdir-XTQXT7RK-C13HY1h7.mjs +0 -1
- package/dist/sed-VFTTATXJ-DO49xc40.mjs +0 -1
- package/dist/seq-RN5ZUASB-D9r6kc_Z.mjs +0 -1
- package/dist/server-lock-n3Y5JWNv-3o7br8XE.mjs +0 -2
- package/dist/server-lock-n3Y5JWNv-DXpg9_eU.mjs +0 -1
- package/dist/sha1sum-VJPNLNU6-4uBt63v6.mjs +0 -1
- package/dist/sha256sum-PI32XWXY-_uaXSgBK.mjs +0 -1
- package/dist/sleep-VZFPZFWA-CS7jDpXp.mjs +0 -1
- package/dist/sort-DCNRDA7U-Dmp_2ZoH.mjs +0 -1
- package/dist/split-SITCSYCZ-Cu9ifXuc.mjs +0 -1
- package/dist/sqlite3-56UMWEY3-D1Xq8d4g.mjs +0 -1
- package/dist/src-CCtbSzLe.mjs +0 -1
- package/dist/start-D7mCFrVn.mjs +0 -1
- package/dist/start-RnYkhoRl.mjs +0 -2
- package/dist/stat-BT5A227F-Dqepjl-k.mjs +0 -1
- package/dist/strings-7PLOGTPD-g6FhPS64.mjs +0 -1
- package/dist/tac-SJGXQ4T2-DczI7HKk.mjs +0 -1
- package/dist/tail-S5ULNTJU-Bk22kVUG.mjs +0 -1
- package/dist/tar-ANUBEFJY-1lwT6ndQ.mjs +0 -1
- package/dist/tee-O7VXZDCO-Ftqr8Jad.mjs +0 -1
- package/dist/time-DEUO3QV2-BtzQ0nVf.mjs +0 -1
- package/dist/timeout-VRKMCG72-Cpzi9cz-.mjs +0 -1
- package/dist/touch-DX2IJOQ4-ewCHfbB3.mjs +0 -1
- package/dist/tr-2HXZRDSW-DrrobhxR.mjs +0 -1
- package/dist/tree-LYXBS7DC-DZnTMKSh.mjs +0 -1
- package/dist/true-WHJNXCHG-BaLssNp9.mjs +0 -1
- package/dist/unexpand-RGTMIGZM-BOmSL08U.mjs +0 -1
- package/dist/uniq-SUNANL47-Cn_JDmUJ.mjs +0 -1
- package/dist/wc-TQB3VNOX-DkOBrQlr.mjs +0 -1
- package/dist/which-XZHEH76L-DxZJ58G5.mjs +0 -1
- package/dist/whoami-DGKU3D2X-Bn1LP0m_.mjs +0 -1
- package/dist/wrapper-BTT6637Z.mjs +0 -7
- package/dist/xan-BXDXYEIB-_Vtao535.mjs +0 -1
- package/dist/xan-view-ECQUO7AJ-6vlhfSF-.mjs +0 -1
- package/dist/xargs-I6EZUCYF-dHdg4qaj.mjs +0 -1
- package/dist/yq-MJMAR36V-pRBq87Ya.mjs +0 -1
- /package/dist/public/assets/{go-DatQmDtN.js → go-a33xvodr.js} +0 -0
- /package/dist/public/assets/{shell-7yok6dsz.js → shell-40VLet8r.js} +0 -0
- /package/dist/public/assets/{w3c-keyname-CSlwavrd.js → w3c-keyname-Dfj2imOv.js} +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -1,73 +1,26 @@
|
|
|
1
1
|
//#region src/commands/editors.d.ts
|
|
2
2
|
type EditorId = 'claude' | 'claude-desktop' | 'cursor' | 'vscode' | 'windsurf' | 'codex';
|
|
3
3
|
declare const ALL_EDITOR_IDS: EditorId[];
|
|
4
|
-
|
|
5
|
-
* MCP install modes for `ok init`-written editor configs.
|
|
6
|
-
*
|
|
7
|
-
* - `'published'` (default) — `{command: 'npx', args: ['@inkeep/open-knowledge', 'mcp']}`.
|
|
8
|
-
* Self-heals after CLI reinstalls; the version each editor's MCP child runs
|
|
9
|
-
* may drift over time (the protocol gate at `cli/mcp/server-discovery.ts`
|
|
10
|
-
* refuses on mismatch).
|
|
11
|
-
* - `'dev'` — `{command: 'node', args: [<dist/cli.mjs>, 'mcp'], env: {...}}`.
|
|
12
|
-
* Used by `--dev-mcp` for monorepo development against a worktree-local CLI.
|
|
13
|
-
* - `'pinned'` — `{command: 'node', args: [<absolute process.argv[1]>, 'mcp']}`.
|
|
14
|
-
* Used by `ok init --pin` (specs/2026-04-24-cross-install-version-handshake
|
|
15
|
-
* §3 G7 + D14). The absolute path is the cli entry of whatever ran `ok init`.
|
|
16
|
-
* Recommended pin target is M6's stable shim at `/usr/local/bin/ok` (the
|
|
17
|
-
* desktop's auto-updater replaces the symlink target atomically); volatile
|
|
18
|
-
* pins (worktree dist, npx-cache) silently stale.
|
|
19
|
-
*/
|
|
20
|
-
type McpInstallMode = 'published' | 'dev' | 'pinned';
|
|
4
|
+
type McpInstallMode = 'published' | 'dev';
|
|
21
5
|
interface McpInstallOptions {
|
|
22
6
|
mode?: McpInstallMode;
|
|
23
|
-
cliEntryPath?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Absolute path to a CLI binary that spawns the Open Knowledge MCP server
|
|
26
|
-
* directly (e.g. the Electron-bundled `ok.sh` wrapper, or the `/usr/local/bin/ok`
|
|
27
|
-
* symlink when M6a is installed). When set, the managed entry is
|
|
28
|
-
* `{ command: cliPath, args: ['mcp'] }` — bypasses `npx` entirely.
|
|
29
|
-
*
|
|
30
|
-
* Highest-precedence branch of `buildManagedServerEntry`: takes effect even
|
|
31
|
-
* when `mode === 'dev'` is also set. Intended for Electron main's first-launch
|
|
32
|
-
* MCP wiring (M6b / D-M6-R9); the CLI `ok init` path never sets this.
|
|
33
|
-
*/
|
|
34
7
|
cliPath?: string;
|
|
35
|
-
/**
|
|
36
|
-
* Skip `writeEditorMcpConfig`'s `isEditorTargetAvailable` check. Default
|
|
37
|
-
* `ok init` behavior (main branch PR #282) rejects writes for editors
|
|
38
|
-
* whose config dir doesn't exist — reasonable when the default editor list
|
|
39
|
-
* is being fanned out without user intent. M6b's consent dialog shows
|
|
40
|
-
* every editor with a checkbox and the user explicitly toggles; their
|
|
41
|
-
* click IS the consent, so the availability check would silently drop
|
|
42
|
-
* the selection. `writeUserMcpConfigs` (the M6b entry point) sets this
|
|
43
|
-
* to `true`; terminal-invoked `ok init` never sets it.
|
|
44
|
-
*/
|
|
45
8
|
skipAvailabilityCheck?: boolean;
|
|
46
9
|
}
|
|
47
10
|
interface EditorMcpTarget {
|
|
48
11
|
id: EditorId;
|
|
49
|
-
/** Human-friendly name for CLI output. */
|
|
50
12
|
label: string;
|
|
51
|
-
/** Resolve the absolute path to the MCP config file. */
|
|
52
13
|
configPath: (cwd: string, home?: string) => string;
|
|
53
|
-
/** On-disk config format for this editor. */
|
|
54
14
|
format: 'json' | 'toml';
|
|
55
|
-
/** Top-level key that holds the server map. */
|
|
56
15
|
topLevelKey: 'mcpServers' | 'servers' | 'mcp_servers';
|
|
57
|
-
/** Config key used for this project's MCP server entry. */
|
|
58
16
|
serverName: (cwd: string) => string;
|
|
59
|
-
/** Build the server entry object for this editor. */
|
|
60
17
|
buildEntry: (cwd: string, options?: McpInstallOptions) => Record<string, unknown>;
|
|
61
|
-
/** True when the managed MCP fields already match the target entry. */
|
|
62
18
|
isCompatible: (existing: Record<string, unknown>, cwd: string, options?: McpInstallOptions) => boolean;
|
|
63
|
-
/** Merge only the managed MCP fields into an existing entry. */
|
|
64
19
|
mergeManagedFields: (existing: Record<string, unknown>, cwd: string, options?: McpInstallOptions) => Record<string, unknown>;
|
|
65
|
-
/** Whether the config is project-local or user-global. */
|
|
66
20
|
scope: 'project' | 'global';
|
|
67
|
-
/** Filesystem path whose existence implies the editor is installed. */
|
|
68
21
|
detectPath?: (cwd: string, home?: string) => string;
|
|
69
|
-
/** Project-local MCP config path (used for project-scope installs). */
|
|
70
22
|
projectConfigPath?: (cwd: string) => string;
|
|
23
|
+
projectSkillPath?: (cwd: string) => string;
|
|
71
24
|
}
|
|
72
25
|
declare const EDITOR_TARGETS: Record<EditorId, EditorMcpTarget>;
|
|
73
26
|
//#endregion
|
|
@@ -79,2225 +32,18 @@ interface EditorMcpResult {
|
|
|
79
32
|
configPath: string;
|
|
80
33
|
serverName: string;
|
|
81
34
|
error?: string;
|
|
82
|
-
/** Set to 'project' when the result came from a project-scope write. */
|
|
83
35
|
configScope?: 'project';
|
|
84
36
|
}
|
|
85
|
-
/**
|
|
86
|
-
* Per-editor MCP config writer. Exported (US-006) so `@inkeep/open-knowledge`
|
|
87
|
-
* consumers — specifically Electron main's M6b first-launch consent flow via
|
|
88
|
-
* `writeUserMcpConfigs` — can invoke the same write logic that the terminal-
|
|
89
|
-
* origin `ok init` command uses. The `installOptions.skipAvailabilityCheck`
|
|
90
|
-
* flag distinguishes the two call sites: `ok init` enforces
|
|
91
|
-
* `isEditorTargetAvailable` so users don't get empty config dirs for editors
|
|
92
|
-
* they haven't installed; the M6b consent flow bypasses the check because
|
|
93
|
-
* the user explicitly toggled the editor checkbox in the dialog.
|
|
94
|
-
*/
|
|
95
37
|
declare function writeEditorMcpConfig(target: EditorMcpTarget, cwd: string, installOptions: McpInstallOptions, home?: string, configPathOverride?: string): EditorMcpResult;
|
|
96
38
|
interface UserMcpConfigsOptions {
|
|
97
|
-
/**
|
|
98
|
-
* Editors whose MCP config to write. Caller (mcp-wiring.ts confirmHandler)
|
|
99
|
-
* is responsible for filtering out editors whose existing entry is a
|
|
100
|
-
* customized shape that should be preserved — those are classified via
|
|
101
|
-
* `readExistingMcpEntry` + `computeForce` and excluded from this array
|
|
102
|
-
* BEFORE the call. This function unconditionally overwrites every editor
|
|
103
|
-
* it receives (aligning with main's `writeEditorMcpConfig` always-rewrite
|
|
104
|
-
* semantic from PR #282 / "installs stay aligned with current defaults").
|
|
105
|
-
*/
|
|
106
39
|
editors: EditorId[];
|
|
107
|
-
/**
|
|
108
|
-
* Absolute path to the MCP-spawning CLI binary. Written into every editor's
|
|
109
|
-
* entry as `{ command: cliPath, args: ['mcp'] }`. When unset, falls back to
|
|
110
|
-
* the canonical `{command:'npx', args:['@inkeep/open-knowledge','mcp']}` shape.
|
|
111
|
-
*/
|
|
112
40
|
cliPath?: string;
|
|
113
|
-
/** Override `$HOME` for resolving user-scoped config paths (test hook). */
|
|
114
41
|
home?: string;
|
|
115
42
|
}
|
|
116
|
-
/**
|
|
117
|
-
* Write MCP config entries for a set of editors without any of `runInit`'s
|
|
118
|
-
* project-scoped side effects.
|
|
119
|
-
*
|
|
120
|
-
* Specifically does NOT run:
|
|
121
|
-
* - `ensureProjectGit` — would `git init` wherever `cwd` is (packaged Electron
|
|
122
|
-
* apps have `process.cwd() === '/'` by default)
|
|
123
|
-
* - `initContent` — scaffolds `.open-knowledge/` in a project
|
|
124
|
-
* - `scaffoldLaunchJson` — writes `.claude/launch.json`
|
|
125
|
-
* - `upsertRootInstructions` — mutates `AGENTS.md` / `CLAUDE.md`
|
|
126
|
-
* - `collectLegacyProjectConfig` — scans for `.mcp.json` / `.cursor/mcp.json`
|
|
127
|
-
*
|
|
128
|
-
* Per D-M6-R8, this is the entry point Electron main's first-launch MCP
|
|
129
|
-
* consent flow calls after the user clicks Add. The terminal-invoked `ok init`
|
|
130
|
-
* path still uses `runInit` and never sets `cliPath`, so backward compatibility
|
|
131
|
-
* of the `{command:'npx',...}` shape is preserved.
|
|
132
|
-
*
|
|
133
|
-
* Bypasses `isEditorTargetAvailable` via `skipAvailabilityCheck: true` — the
|
|
134
|
-
* user explicitly toggled the editor checkbox; their click IS the consent,
|
|
135
|
-
* so skip-on-missing would silently drop their selection.
|
|
136
|
-
*/
|
|
137
43
|
declare function writeUserMcpConfigs(opts: UserMcpConfigsOptions): Promise<EditorMcpResult[]>;
|
|
138
|
-
/**
|
|
139
|
-
* Read a single editor's existing MCP server entry for use with
|
|
140
|
-
* `computeForce`-style classification (M6b). Reads the user-scoped config
|
|
141
|
-
* (format-aware — JSON or TOML), looks up `config[topLevelKey][serverName]`,
|
|
142
|
-
* and returns it as a plain object. Returns `null` when the config file is
|
|
143
|
-
* absent, unreadable, unparseable, or has no entry for this editor's
|
|
144
|
-
* server name.
|
|
145
|
-
*
|
|
146
|
-
* **Never-throws contract (load-bearing — Pass 0 Major #13):** the M6b
|
|
147
|
-
* first-launch consent flow MUST be able to classify every selected editor
|
|
148
|
-
* without aborting on one malformed config. A corrupt user config (e.g.,
|
|
149
|
-
* stale `~/.codex/config.toml` from a half-completed third-party edit) on
|
|
150
|
-
* ANY selected editor would otherwise crash `confirmHandler`, leave the
|
|
151
|
-
* marker absent, and create an infinite dialog re-fire loop on the user's
|
|
152
|
-
* machine. Every reachable failure path here returns `null`:
|
|
153
|
-
* - configPath() throws → null (platform-mismatched target, e.g.
|
|
154
|
-
* Claude Desktop on Linux)
|
|
155
|
-
* - readJson/readToml throws → null (unparseable config)
|
|
156
|
-
* - top-level mcpServers/servers/mcp_servers key absent → null
|
|
157
|
-
* - top-level key value not a plain object → null (e.g., array)
|
|
158
|
-
* - server entry value not a plain object → null (e.g., bare string)
|
|
159
|
-
*
|
|
160
|
-
* Note: `null` deliberately conflates "absent" with "malformed" — both mean
|
|
161
|
-
* "no compatible existing entry to merge into" from `computeForce`'s
|
|
162
|
-
* perspective. The downstream `writeEditorMcpConfig` re-reads via the same
|
|
163
|
-
* format-aware parser and would itself throw on truly corrupt files; that
|
|
164
|
-
* write-side error path is what surfaces the corruption to the user via
|
|
165
|
-
* the `mcp-wiring-write-failed` event in `mcp-wiring.ts` (Pass 0 Critical
|
|
166
|
-
* #1's toast contract).
|
|
167
|
-
*/
|
|
168
44
|
declare function readExistingMcpEntry(target: EditorMcpTarget, cwd: string, home?: string): Record<string, unknown> | null;
|
|
169
|
-
/**
|
|
170
|
-
* Detect every editor whose global config surface already exists. Each target
|
|
171
|
-
* can override the probe path when the config file itself is a poor signal
|
|
172
|
-
* (for example Claude Code writes `~/.claude.json`, but installation is better
|
|
173
|
-
* inferred from the presence of `~/.claude/`).
|
|
174
|
-
*
|
|
175
|
-
* Used by `runInit()` and the CLI to install to every editor that already has
|
|
176
|
-
* a config root on disk without creating new user-home directories for tools
|
|
177
|
-
* the user does not have.
|
|
178
|
-
*/
|
|
179
45
|
declare function detectInstalledEditors(cwd: string, home?: string): EditorId[];
|
|
180
46
|
//#endregion
|
|
181
|
-
//#region ../../node_modules/zod/v4/core/json-schema.d.cts
|
|
182
|
-
type _JSONSchema = boolean | JSONSchema;
|
|
183
|
-
type JSONSchema = {
|
|
184
|
-
[k: string]: unknown;
|
|
185
|
-
$schema?: "https://json-schema.org/draft/2020-12/schema" | "http://json-schema.org/draft-07/schema#" | "http://json-schema.org/draft-04/schema#";
|
|
186
|
-
$id?: string;
|
|
187
|
-
$anchor?: string;
|
|
188
|
-
$ref?: string;
|
|
189
|
-
$dynamicRef?: string;
|
|
190
|
-
$dynamicAnchor?: string;
|
|
191
|
-
$vocabulary?: Record<string, boolean>;
|
|
192
|
-
$comment?: string;
|
|
193
|
-
$defs?: Record<string, JSONSchema>;
|
|
194
|
-
type?: "object" | "array" | "string" | "number" | "boolean" | "null" | "integer";
|
|
195
|
-
additionalItems?: _JSONSchema;
|
|
196
|
-
unevaluatedItems?: _JSONSchema;
|
|
197
|
-
prefixItems?: _JSONSchema[];
|
|
198
|
-
items?: _JSONSchema | _JSONSchema[];
|
|
199
|
-
contains?: _JSONSchema;
|
|
200
|
-
additionalProperties?: _JSONSchema;
|
|
201
|
-
unevaluatedProperties?: _JSONSchema;
|
|
202
|
-
properties?: Record<string, _JSONSchema>;
|
|
203
|
-
patternProperties?: Record<string, _JSONSchema>;
|
|
204
|
-
dependentSchemas?: Record<string, _JSONSchema>;
|
|
205
|
-
propertyNames?: _JSONSchema;
|
|
206
|
-
if?: _JSONSchema;
|
|
207
|
-
then?: _JSONSchema;
|
|
208
|
-
else?: _JSONSchema;
|
|
209
|
-
allOf?: JSONSchema[];
|
|
210
|
-
anyOf?: JSONSchema[];
|
|
211
|
-
oneOf?: JSONSchema[];
|
|
212
|
-
not?: _JSONSchema;
|
|
213
|
-
multipleOf?: number;
|
|
214
|
-
maximum?: number;
|
|
215
|
-
exclusiveMaximum?: number | boolean;
|
|
216
|
-
minimum?: number;
|
|
217
|
-
exclusiveMinimum?: number | boolean;
|
|
218
|
-
maxLength?: number;
|
|
219
|
-
minLength?: number;
|
|
220
|
-
pattern?: string;
|
|
221
|
-
maxItems?: number;
|
|
222
|
-
minItems?: number;
|
|
223
|
-
uniqueItems?: boolean;
|
|
224
|
-
maxContains?: number;
|
|
225
|
-
minContains?: number;
|
|
226
|
-
maxProperties?: number;
|
|
227
|
-
minProperties?: number;
|
|
228
|
-
required?: string[];
|
|
229
|
-
dependentRequired?: Record<string, string[]>;
|
|
230
|
-
enum?: Array<string | number | boolean | null>;
|
|
231
|
-
const?: string | number | boolean | null;
|
|
232
|
-
id?: string;
|
|
233
|
-
title?: string;
|
|
234
|
-
description?: string;
|
|
235
|
-
default?: unknown;
|
|
236
|
-
deprecated?: boolean;
|
|
237
|
-
readOnly?: boolean;
|
|
238
|
-
writeOnly?: boolean;
|
|
239
|
-
nullable?: boolean;
|
|
240
|
-
examples?: unknown[];
|
|
241
|
-
format?: string;
|
|
242
|
-
contentMediaType?: string;
|
|
243
|
-
contentEncoding?: string;
|
|
244
|
-
contentSchema?: JSONSchema;
|
|
245
|
-
_prefault?: unknown;
|
|
246
|
-
};
|
|
247
|
-
type BaseSchema = JSONSchema;
|
|
248
|
-
//#endregion
|
|
249
|
-
//#region ../../node_modules/zod/v4/core/standard-schema.d.cts
|
|
250
|
-
/** The Standard interface. */
|
|
251
|
-
interface StandardTypedV1<Input = unknown, Output = Input> {
|
|
252
|
-
/** The Standard properties. */
|
|
253
|
-
readonly "~standard": StandardTypedV1.Props<Input, Output>;
|
|
254
|
-
}
|
|
255
|
-
declare namespace StandardTypedV1 {
|
|
256
|
-
/** The Standard properties interface. */
|
|
257
|
-
interface Props<Input = unknown, Output = Input> {
|
|
258
|
-
/** The version number of the standard. */
|
|
259
|
-
readonly version: 1;
|
|
260
|
-
/** The vendor name of the schema library. */
|
|
261
|
-
readonly vendor: string;
|
|
262
|
-
/** Inferred types associated with the schema. */
|
|
263
|
-
readonly types?: Types<Input, Output> | undefined;
|
|
264
|
-
}
|
|
265
|
-
/** The Standard types interface. */
|
|
266
|
-
interface Types<Input = unknown, Output = Input> {
|
|
267
|
-
/** The input type of the schema. */
|
|
268
|
-
readonly input: Input;
|
|
269
|
-
/** The output type of the schema. */
|
|
270
|
-
readonly output: Output;
|
|
271
|
-
}
|
|
272
|
-
/** Infers the input type of a Standard. */
|
|
273
|
-
type InferInput<Schema extends StandardTypedV1> = NonNullable<Schema["~standard"]["types"]>["input"];
|
|
274
|
-
/** Infers the output type of a Standard. */
|
|
275
|
-
type InferOutput<Schema extends StandardTypedV1> = NonNullable<Schema["~standard"]["types"]>["output"];
|
|
276
|
-
}
|
|
277
|
-
/** The Standard Schema interface. */
|
|
278
|
-
interface StandardSchemaV1<Input = unknown, Output = Input> {
|
|
279
|
-
/** The Standard Schema properties. */
|
|
280
|
-
readonly "~standard": StandardSchemaV1.Props<Input, Output>;
|
|
281
|
-
}
|
|
282
|
-
declare namespace StandardSchemaV1 {
|
|
283
|
-
/** The Standard Schema properties interface. */
|
|
284
|
-
interface Props<Input = unknown, Output = Input> extends StandardTypedV1.Props<Input, Output> {
|
|
285
|
-
/** Validates unknown input values. */
|
|
286
|
-
readonly validate: (value: unknown, options?: StandardSchemaV1.Options | undefined) => Result<Output> | Promise<Result<Output>>;
|
|
287
|
-
}
|
|
288
|
-
/** The result interface of the validate function. */
|
|
289
|
-
type Result<Output> = SuccessResult<Output> | FailureResult;
|
|
290
|
-
/** The result interface if validation succeeds. */
|
|
291
|
-
interface SuccessResult<Output> {
|
|
292
|
-
/** The typed output value. */
|
|
293
|
-
readonly value: Output;
|
|
294
|
-
/** The absence of issues indicates success. */
|
|
295
|
-
readonly issues?: undefined;
|
|
296
|
-
}
|
|
297
|
-
interface Options {
|
|
298
|
-
/** Implicit support for additional vendor-specific parameters, if needed. */
|
|
299
|
-
readonly libraryOptions?: Record<string, unknown> | undefined;
|
|
300
|
-
}
|
|
301
|
-
/** The result interface if validation fails. */
|
|
302
|
-
interface FailureResult {
|
|
303
|
-
/** The issues of failed validation. */
|
|
304
|
-
readonly issues: ReadonlyArray<Issue>;
|
|
305
|
-
}
|
|
306
|
-
/** The issue interface of the failure output. */
|
|
307
|
-
interface Issue {
|
|
308
|
-
/** The error message of the issue. */
|
|
309
|
-
readonly message: string;
|
|
310
|
-
/** The path of the issue, if any. */
|
|
311
|
-
readonly path?: ReadonlyArray<PropertyKey | PathSegment> | undefined;
|
|
312
|
-
}
|
|
313
|
-
/** The path segment interface of the issue. */
|
|
314
|
-
interface PathSegment {
|
|
315
|
-
/** The key representing a path segment. */
|
|
316
|
-
readonly key: PropertyKey;
|
|
317
|
-
}
|
|
318
|
-
/** The Standard types interface. */
|
|
319
|
-
interface Types<Input = unknown, Output = Input> extends StandardTypedV1.Types<Input, Output> {}
|
|
320
|
-
/** Infers the input type of a Standard. */
|
|
321
|
-
type InferInput<Schema extends StandardTypedV1> = StandardTypedV1.InferInput<Schema>;
|
|
322
|
-
/** Infers the output type of a Standard. */
|
|
323
|
-
type InferOutput<Schema extends StandardTypedV1> = StandardTypedV1.InferOutput<Schema>;
|
|
324
|
-
}
|
|
325
|
-
/** The Standard JSON Schema interface. */
|
|
326
|
-
interface StandardJSONSchemaV1<Input = unknown, Output = Input> {
|
|
327
|
-
/** The Standard JSON Schema properties. */
|
|
328
|
-
readonly "~standard": StandardJSONSchemaV1.Props<Input, Output>;
|
|
329
|
-
}
|
|
330
|
-
declare namespace StandardJSONSchemaV1 {
|
|
331
|
-
/** The Standard JSON Schema properties interface. */
|
|
332
|
-
interface Props<Input = unknown, Output = Input> extends StandardTypedV1.Props<Input, Output> {
|
|
333
|
-
/** Methods for generating the input/output JSON Schema. */
|
|
334
|
-
readonly jsonSchema: Converter;
|
|
335
|
-
}
|
|
336
|
-
/** The Standard JSON Schema converter interface. */
|
|
337
|
-
interface Converter {
|
|
338
|
-
/** Converts the input type to JSON Schema. May throw if conversion is not supported. */
|
|
339
|
-
readonly input: (options: StandardJSONSchemaV1.Options) => Record<string, unknown>;
|
|
340
|
-
/** Converts the output type to JSON Schema. May throw if conversion is not supported. */
|
|
341
|
-
readonly output: (options: StandardJSONSchemaV1.Options) => Record<string, unknown>;
|
|
342
|
-
}
|
|
343
|
-
/** The target version of the generated JSON Schema.
|
|
344
|
-
*
|
|
345
|
-
* It is *strongly recommended* that implementers support `"draft-2020-12"` and `"draft-07"`, as they are both in wide use.
|
|
346
|
-
*
|
|
347
|
-
* The `"openapi-3.0"` target is intended as a standardized specifier for OpenAPI 3.0 which is a superset of JSON Schema `"draft-04"`.
|
|
348
|
-
*
|
|
349
|
-
* All other targets can be implemented on a best-effort basis. Libraries should throw if they don't support a specified target.
|
|
350
|
-
*/
|
|
351
|
-
type Target = "draft-2020-12" | "draft-07" | "openapi-3.0" | ({} & string);
|
|
352
|
-
/** The options for the input/output methods. */
|
|
353
|
-
interface Options {
|
|
354
|
-
/** 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. */
|
|
355
|
-
readonly target: Target;
|
|
356
|
-
/** Implicit support for additional vendor-specific parameters, if needed. */
|
|
357
|
-
readonly libraryOptions?: Record<string, unknown> | undefined;
|
|
358
|
-
}
|
|
359
|
-
/** The Standard types interface. */
|
|
360
|
-
interface Types<Input = unknown, Output = Input> extends StandardTypedV1.Types<Input, Output> {}
|
|
361
|
-
/** Infers the input type of a Standard. */
|
|
362
|
-
type InferInput<Schema extends StandardTypedV1> = StandardTypedV1.InferInput<Schema>;
|
|
363
|
-
/** Infers the output type of a Standard. */
|
|
364
|
-
type InferOutput<Schema extends StandardTypedV1> = StandardTypedV1.InferOutput<Schema>;
|
|
365
|
-
}
|
|
366
|
-
interface StandardSchemaWithJSONProps<Input = unknown, Output = Input> extends StandardSchemaV1.Props<Input, Output>, StandardJSONSchemaV1.Props<Input, Output> {}
|
|
367
|
-
//#endregion
|
|
368
|
-
//#region ../../node_modules/zod/v4/core/registries.d.cts
|
|
369
|
-
declare const $output: unique symbol;
|
|
370
|
-
type $output = typeof $output;
|
|
371
|
-
declare const $input: unique symbol;
|
|
372
|
-
type $input = typeof $input;
|
|
373
|
-
type $replace<Meta, S extends $ZodType> = Meta extends $output ? output<S> : Meta extends $input ? input<S> : Meta extends (infer M)[] ? $replace<M, S>[] : Meta extends ((...args: infer P) => infer R) ? (...args: { [K in keyof P]: $replace<P[K], S> }) => $replace<R, S> : Meta extends object ? { [K in keyof Meta]: $replace<Meta[K], S> } : Meta;
|
|
374
|
-
type MetadataType = object | undefined;
|
|
375
|
-
declare class $ZodRegistry<Meta extends MetadataType = MetadataType, Schema extends $ZodType = $ZodType> {
|
|
376
|
-
_meta: Meta;
|
|
377
|
-
_schema: Schema;
|
|
378
|
-
_map: WeakMap<Schema, $replace<Meta, Schema>>;
|
|
379
|
-
_idmap: Map<string, Schema>;
|
|
380
|
-
add<S extends Schema>(schema: S, ..._meta: undefined extends Meta ? [$replace<Meta, S>?] : [$replace<Meta, S>]): this;
|
|
381
|
-
clear(): this;
|
|
382
|
-
remove(schema: Schema): this;
|
|
383
|
-
get<S extends Schema>(schema: S): $replace<Meta, S> | undefined;
|
|
384
|
-
has(schema: Schema): boolean;
|
|
385
|
-
}
|
|
386
|
-
interface JSONSchemaMeta {
|
|
387
|
-
id?: string | undefined;
|
|
388
|
-
title?: string | undefined;
|
|
389
|
-
description?: string | undefined;
|
|
390
|
-
deprecated?: boolean | undefined;
|
|
391
|
-
[k: string]: unknown;
|
|
392
|
-
}
|
|
393
|
-
interface GlobalMeta extends JSONSchemaMeta {}
|
|
394
|
-
//#endregion
|
|
395
|
-
//#region ../../node_modules/zod/v4/core/to-json-schema.d.cts
|
|
396
|
-
type Processor<T extends $ZodType = $ZodType> = (schema: T, ctx: ToJSONSchemaContext, json: BaseSchema, params: ProcessParams) => void;
|
|
397
|
-
interface JSONSchemaGeneratorParams {
|
|
398
|
-
processors: Record<string, Processor>;
|
|
399
|
-
/** A registry used to look up metadata for each schema. Any schema with an `id` property will be extracted as a $def.
|
|
400
|
-
* @default globalRegistry */
|
|
401
|
-
metadata?: $ZodRegistry<Record<string, any>>;
|
|
402
|
-
/** The JSON Schema version to target.
|
|
403
|
-
* - `"draft-2020-12"` — Default. JSON Schema Draft 2020-12
|
|
404
|
-
* - `"draft-07"` — JSON Schema Draft 7
|
|
405
|
-
* - `"draft-04"` — JSON Schema Draft 4
|
|
406
|
-
* - `"openapi-3.0"` — OpenAPI 3.0 Schema Object */
|
|
407
|
-
target?: "draft-04" | "draft-07" | "draft-2020-12" | "openapi-3.0" | ({} & string) | undefined;
|
|
408
|
-
/** How to handle unrepresentable types.
|
|
409
|
-
* - `"throw"` — Default. Unrepresentable types throw an error
|
|
410
|
-
* - `"any"` — Unrepresentable types become `{}` */
|
|
411
|
-
unrepresentable?: "throw" | "any";
|
|
412
|
-
/** Arbitrary custom logic that can be used to modify the generated JSON Schema. */
|
|
413
|
-
override?: (ctx: {
|
|
414
|
-
zodSchema: $ZodTypes;
|
|
415
|
-
jsonSchema: BaseSchema;
|
|
416
|
-
path: (string | number)[];
|
|
417
|
-
}) => void;
|
|
418
|
-
/** Whether to extract the `"input"` or `"output"` type. Relevant to transforms, defaults, coerced primitives, etc.
|
|
419
|
-
* - `"output"` — Default. Convert the output schema.
|
|
420
|
-
* - `"input"` — Convert the input schema. */
|
|
421
|
-
io?: "input" | "output";
|
|
422
|
-
cycles?: "ref" | "throw";
|
|
423
|
-
reused?: "ref" | "inline";
|
|
424
|
-
external?: {
|
|
425
|
-
registry: $ZodRegistry<{
|
|
426
|
-
id?: string | undefined;
|
|
427
|
-
}>;
|
|
428
|
-
uri?: ((id: string) => string) | undefined;
|
|
429
|
-
defs: Record<string, BaseSchema>;
|
|
430
|
-
} | undefined;
|
|
431
|
-
}
|
|
432
|
-
/**
|
|
433
|
-
* Parameters for the toJSONSchema function.
|
|
434
|
-
*/
|
|
435
|
-
type ToJSONSchemaParams = Omit<JSONSchemaGeneratorParams, "processors" | "external">;
|
|
436
|
-
interface ProcessParams {
|
|
437
|
-
schemaPath: $ZodType[];
|
|
438
|
-
path: (string | number)[];
|
|
439
|
-
}
|
|
440
|
-
interface Seen {
|
|
441
|
-
/** JSON Schema result for this Zod schema */
|
|
442
|
-
schema: BaseSchema;
|
|
443
|
-
/** A cached version of the schema that doesn't get overwritten during ref resolution */
|
|
444
|
-
def?: BaseSchema;
|
|
445
|
-
defId?: string | undefined;
|
|
446
|
-
/** Number of times this schema was encountered during traversal */
|
|
447
|
-
count: number;
|
|
448
|
-
/** Cycle path */
|
|
449
|
-
cycle?: (string | number)[] | undefined;
|
|
450
|
-
isParent?: boolean | undefined;
|
|
451
|
-
/** Schema to inherit JSON Schema properties from (set by processor for wrappers) */
|
|
452
|
-
ref?: $ZodType | null;
|
|
453
|
-
/** JSON Schema property path for this schema */
|
|
454
|
-
path?: (string | number)[] | undefined;
|
|
455
|
-
}
|
|
456
|
-
interface ToJSONSchemaContext {
|
|
457
|
-
processors: Record<string, Processor>;
|
|
458
|
-
metadataRegistry: $ZodRegistry<Record<string, any>>;
|
|
459
|
-
target: "draft-04" | "draft-07" | "draft-2020-12" | "openapi-3.0" | ({} & string);
|
|
460
|
-
unrepresentable: "throw" | "any";
|
|
461
|
-
override: (ctx: {
|
|
462
|
-
zodSchema: $ZodType;
|
|
463
|
-
jsonSchema: BaseSchema;
|
|
464
|
-
path: (string | number)[];
|
|
465
|
-
}) => void;
|
|
466
|
-
io: "input" | "output";
|
|
467
|
-
counter: number;
|
|
468
|
-
seen: Map<$ZodType, Seen>;
|
|
469
|
-
cycles: "ref" | "throw";
|
|
470
|
-
reused: "ref" | "inline";
|
|
471
|
-
external?: {
|
|
472
|
-
registry: $ZodRegistry<{
|
|
473
|
-
id?: string | undefined;
|
|
474
|
-
}>;
|
|
475
|
-
uri?: ((id: string) => string) | undefined;
|
|
476
|
-
defs: Record<string, BaseSchema>;
|
|
477
|
-
} | undefined;
|
|
478
|
-
}
|
|
479
|
-
type ZodStandardSchemaWithJSON$1<T> = StandardSchemaWithJSONProps<input<T>, output<T>>;
|
|
480
|
-
interface ZodStandardJSONSchemaPayload<T> extends BaseSchema {
|
|
481
|
-
"~standard": ZodStandardSchemaWithJSON$1<T>;
|
|
482
|
-
}
|
|
483
|
-
//#endregion
|
|
484
|
-
//#region ../../node_modules/zod/v4/core/util.d.cts
|
|
485
|
-
type JWTAlgorithm = "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | (string & {});
|
|
486
|
-
type MimeTypes = "application/json" | "application/xml" | "application/x-www-form-urlencoded" | "application/javascript" | "application/pdf" | "application/zip" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.ms-powerpoint" | "application/vnd.openxmlformats-officedocument.presentationml.presentation" | "application/octet-stream" | "application/graphql" | "text/html" | "text/plain" | "text/css" | "text/javascript" | "text/csv" | "image/png" | "image/jpeg" | "image/gif" | "image/svg+xml" | "image/webp" | "audio/mpeg" | "audio/ogg" | "audio/wav" | "audio/webm" | "video/mp4" | "video/webm" | "video/ogg" | "font/woff" | "font/woff2" | "font/ttf" | "font/otf" | "multipart/form-data" | (string & {});
|
|
487
|
-
type IsAny<T> = 0 extends 1 & T ? true : false;
|
|
488
|
-
type Omit$1<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
|
489
|
-
type MakePartial<T, K extends keyof T> = Omit$1<T, K> & InexactPartial<Pick<T, K>>;
|
|
490
|
-
type NoUndefined<T> = T extends undefined ? never : T;
|
|
491
|
-
type LoosePartial<T extends object> = InexactPartial<T> & {
|
|
492
|
-
[k: string]: unknown;
|
|
493
|
-
};
|
|
494
|
-
type Mask<Keys extends PropertyKey> = { [K in Keys]?: true };
|
|
495
|
-
type InexactPartial<T> = { [P in keyof T]?: T[P] | undefined };
|
|
496
|
-
type BuiltIn = (((...args: any[]) => any) | (new (...args: any[]) => any)) | {
|
|
497
|
-
readonly [Symbol.toStringTag]: string;
|
|
498
|
-
} | Date | Error | Generator | Promise<unknown> | RegExp;
|
|
499
|
-
type MakeReadonly<T> = T extends Map<infer K, infer V> ? ReadonlyMap<K, V> : T extends Set<infer V> ? ReadonlySet<V> : T extends [infer Head, ...infer Tail] ? readonly [Head, ...Tail] : T extends Array<infer V> ? ReadonlyArray<V> : T extends BuiltIn ? T : Readonly<T>;
|
|
500
|
-
type SomeObject = Record<PropertyKey, any>;
|
|
501
|
-
type Identity<T> = T;
|
|
502
|
-
type Flatten<T> = Identity<{ [k in keyof T]: T[k] }>;
|
|
503
|
-
type Prettify<T> = { [K in keyof T]: T[K] } & {};
|
|
504
|
-
type Extend<A extends SomeObject, B extends SomeObject> = Flatten<keyof A & keyof B extends never ? A & B : { [K in keyof A as K extends keyof B ? never : K]: A[K] } & { [K in keyof B]: B[K] }>;
|
|
505
|
-
type TupleItems = ReadonlyArray<SomeType>;
|
|
506
|
-
type AnyFunc = (...args: any[]) => any;
|
|
507
|
-
type MaybeAsync<T> = T | Promise<T>;
|
|
508
|
-
type EnumValue = string | number;
|
|
509
|
-
type EnumLike = Readonly<Record<string, EnumValue>>;
|
|
510
|
-
type ToEnum<T extends EnumValue> = Flatten<{ [k in T]: k }>;
|
|
511
|
-
type Literal = string | number | bigint | boolean | null | undefined;
|
|
512
|
-
type Primitive = string | number | symbol | bigint | boolean | null | undefined;
|
|
513
|
-
type HasLength = {
|
|
514
|
-
length: number;
|
|
515
|
-
};
|
|
516
|
-
type Numeric = number | bigint | Date;
|
|
517
|
-
type PropValues = Record<string, Set<Primitive>>;
|
|
518
|
-
type PrimitiveSet = Set<Primitive>;
|
|
519
|
-
type EmptyToNever<T> = keyof T extends never ? never : T;
|
|
520
|
-
declare abstract class Class {
|
|
521
|
-
constructor(..._args: any[]);
|
|
522
|
-
}
|
|
523
|
-
//#endregion
|
|
524
|
-
//#region ../../node_modules/zod/v4/core/versions.d.cts
|
|
525
|
-
declare const version: {
|
|
526
|
-
readonly major: 4;
|
|
527
|
-
readonly minor: 3;
|
|
528
|
-
readonly patch: number;
|
|
529
|
-
};
|
|
530
|
-
//#endregion
|
|
531
|
-
//#region ../../node_modules/zod/v4/core/schemas.d.cts
|
|
532
|
-
interface ParseContext<T extends $ZodIssueBase = never> {
|
|
533
|
-
/** Customize error messages. */
|
|
534
|
-
readonly error?: $ZodErrorMap<T>;
|
|
535
|
-
/** Include the `input` field in issue objects. Default `false`. */
|
|
536
|
-
readonly reportInput?: boolean;
|
|
537
|
-
/** Skip eval-based fast path. Default `false`. */
|
|
538
|
-
readonly jitless?: boolean;
|
|
539
|
-
}
|
|
540
|
-
/** @internal */
|
|
541
|
-
interface ParseContextInternal<T extends $ZodIssueBase = never> extends ParseContext<T> {
|
|
542
|
-
readonly async?: boolean | undefined;
|
|
543
|
-
readonly direction?: "forward" | "backward";
|
|
544
|
-
readonly skipChecks?: boolean;
|
|
545
|
-
}
|
|
546
|
-
interface ParsePayload<T = unknown> {
|
|
547
|
-
value: T;
|
|
548
|
-
issues: $ZodRawIssue[];
|
|
549
|
-
/** A may to mark a whole payload as aborted. Used in codecs/pipes. */
|
|
550
|
-
aborted?: boolean;
|
|
551
|
-
}
|
|
552
|
-
type CheckFn<T> = (input: ParsePayload<T>) => MaybeAsync<void>;
|
|
553
|
-
interface $ZodTypeDef {
|
|
554
|
-
type: "string" | "number" | "int" | "boolean" | "bigint" | "symbol" | "null" | "undefined" | "void" | "never" | "any" | "unknown" | "date" | "object" | "record" | "file" | "array" | "tuple" | "union" | "intersection" | "map" | "set" | "enum" | "literal" | "nullable" | "optional" | "nonoptional" | "success" | "transform" | "default" | "prefault" | "catch" | "nan" | "pipe" | "readonly" | "template_literal" | "promise" | "lazy" | "function" | "custom";
|
|
555
|
-
error?: $ZodErrorMap<never> | undefined;
|
|
556
|
-
checks?: $ZodCheck<never>[];
|
|
557
|
-
}
|
|
558
|
-
interface _$ZodTypeInternals {
|
|
559
|
-
/** The `@zod/core` version of this schema */
|
|
560
|
-
version: typeof version;
|
|
561
|
-
/** Schema definition. */
|
|
562
|
-
def: $ZodTypeDef;
|
|
563
|
-
/** @internal Randomly generated ID for this schema. */
|
|
564
|
-
/** @internal List of deferred initializers. */
|
|
565
|
-
deferred: AnyFunc[] | undefined;
|
|
566
|
-
/** @internal Parses input and runs all checks (refinements). */
|
|
567
|
-
run(payload: ParsePayload<any>, ctx: ParseContextInternal): MaybeAsync<ParsePayload>;
|
|
568
|
-
/** @internal Parses input, doesn't run checks. */
|
|
569
|
-
parse(payload: ParsePayload<any>, ctx: ParseContextInternal): MaybeAsync<ParsePayload>;
|
|
570
|
-
/** @internal Stores identifiers for the set of traits implemented by this schema. */
|
|
571
|
-
traits: Set<string>;
|
|
572
|
-
/** @internal Indicates that a schema output type should be considered optional inside objects.
|
|
573
|
-
* @default Required
|
|
574
|
-
*/
|
|
575
|
-
/** @internal */
|
|
576
|
-
optin?: "optional" | undefined;
|
|
577
|
-
/** @internal */
|
|
578
|
-
optout?: "optional" | undefined;
|
|
579
|
-
/** @internal The set of literal values that will pass validation. Must be an exhaustive set. Used to determine optionality in z.record().
|
|
580
|
-
*
|
|
581
|
-
* Defined on: enum, const, literal, null, undefined
|
|
582
|
-
* Passthrough: optional, nullable, branded, default, catch, pipe
|
|
583
|
-
* Todo: unions?
|
|
584
|
-
*/
|
|
585
|
-
values?: PrimitiveSet | undefined;
|
|
586
|
-
/** Default value bubbled up from */
|
|
587
|
-
/** @internal A set of literal discriminators used for the fast path in discriminated unions. */
|
|
588
|
-
propValues?: PropValues | undefined;
|
|
589
|
-
/** @internal This flag indicates that a schema validation can be represented with a regular expression. Used to determine allowable schemas in z.templateLiteral(). */
|
|
590
|
-
pattern: RegExp | undefined;
|
|
591
|
-
/** @internal The constructor function of this schema. */
|
|
592
|
-
constr: new (def: any) => $ZodType;
|
|
593
|
-
/** @internal A catchall object for bag metadata related to this schema. Commonly modified by checks using `onattach`. */
|
|
594
|
-
bag: Record<string, unknown>;
|
|
595
|
-
/** @internal The set of issues this schema might throw during type checking. */
|
|
596
|
-
isst: $ZodIssueBase;
|
|
597
|
-
/** @internal Subject to change, not a public API. */
|
|
598
|
-
processJSONSchema?: ((ctx: ToJSONSchemaContext, json: BaseSchema, params: ProcessParams) => void) | undefined;
|
|
599
|
-
/** An optional method used to override `toJSONSchema` logic. */
|
|
600
|
-
toJSONSchema?: () => unknown;
|
|
601
|
-
/** @internal The parent of this schema. Only set during certain clone operations. */
|
|
602
|
-
parent?: $ZodType | undefined;
|
|
603
|
-
}
|
|
604
|
-
/** @internal */
|
|
605
|
-
interface $ZodTypeInternals<out O = unknown, out I = unknown> extends _$ZodTypeInternals {
|
|
606
|
-
/** @internal The inferred output type */
|
|
607
|
-
output: O;
|
|
608
|
-
/** @internal The inferred input type */
|
|
609
|
-
input: I;
|
|
610
|
-
}
|
|
611
|
-
type $ZodStandardSchema<T> = StandardSchemaV1.Props<input<T>, output<T>>;
|
|
612
|
-
type SomeType = {
|
|
613
|
-
_zod: _$ZodTypeInternals;
|
|
614
|
-
};
|
|
615
|
-
interface $ZodType<O = unknown, I = unknown, Internals extends $ZodTypeInternals<O, I> = $ZodTypeInternals<O, I>> {
|
|
616
|
-
_zod: Internals;
|
|
617
|
-
"~standard": $ZodStandardSchema<this>;
|
|
618
|
-
}
|
|
619
|
-
interface _$ZodType<T extends $ZodTypeInternals = $ZodTypeInternals> extends $ZodType<T["output"], T["input"], T> {}
|
|
620
|
-
declare const $ZodType: $constructor<$ZodType>;
|
|
621
|
-
interface $ZodStringDef extends $ZodTypeDef {
|
|
622
|
-
type: "string";
|
|
623
|
-
coerce?: boolean;
|
|
624
|
-
checks?: $ZodCheck<string>[];
|
|
625
|
-
}
|
|
626
|
-
interface $ZodStringInternals<Input> extends $ZodTypeInternals<string, Input> {
|
|
627
|
-
def: $ZodStringDef;
|
|
628
|
-
/** @deprecated Internal API, use with caution (not deprecated) */
|
|
629
|
-
pattern: RegExp;
|
|
630
|
-
/** @deprecated Internal API, use with caution (not deprecated) */
|
|
631
|
-
isst: $ZodIssueInvalidType;
|
|
632
|
-
bag: LoosePartial<{
|
|
633
|
-
minimum: number;
|
|
634
|
-
maximum: number;
|
|
635
|
-
patterns: Set<RegExp>;
|
|
636
|
-
format: string;
|
|
637
|
-
contentEncoding: string;
|
|
638
|
-
}>;
|
|
639
|
-
}
|
|
640
|
-
interface $ZodString<Input = unknown> extends _$ZodType<$ZodStringInternals<Input>> {}
|
|
641
|
-
declare const $ZodString: $constructor<$ZodString>;
|
|
642
|
-
interface $ZodStringFormatDef<Format extends string = string> extends $ZodStringDef, $ZodCheckStringFormatDef<Format> {}
|
|
643
|
-
interface $ZodStringFormatInternals<Format extends string = string> extends $ZodStringInternals<string>, $ZodCheckStringFormatInternals {
|
|
644
|
-
def: $ZodStringFormatDef<Format>;
|
|
645
|
-
}
|
|
646
|
-
interface $ZodStringFormat<Format extends string = string> extends $ZodType {
|
|
647
|
-
_zod: $ZodStringFormatInternals<Format>;
|
|
648
|
-
}
|
|
649
|
-
declare const $ZodStringFormat: $constructor<$ZodStringFormat>;
|
|
650
|
-
interface $ZodGUIDInternals extends $ZodStringFormatInternals<"guid"> {}
|
|
651
|
-
interface $ZodGUID extends $ZodType {
|
|
652
|
-
_zod: $ZodGUIDInternals;
|
|
653
|
-
}
|
|
654
|
-
declare const $ZodGUID: $constructor<$ZodGUID>;
|
|
655
|
-
interface $ZodUUIDDef extends $ZodStringFormatDef<"uuid"> {
|
|
656
|
-
version?: "v1" | "v2" | "v3" | "v4" | "v5" | "v6" | "v7" | "v8";
|
|
657
|
-
}
|
|
658
|
-
interface $ZodUUIDInternals extends $ZodStringFormatInternals<"uuid"> {
|
|
659
|
-
def: $ZodUUIDDef;
|
|
660
|
-
}
|
|
661
|
-
interface $ZodUUID extends $ZodType {
|
|
662
|
-
_zod: $ZodUUIDInternals;
|
|
663
|
-
}
|
|
664
|
-
declare const $ZodUUID: $constructor<$ZodUUID>;
|
|
665
|
-
interface $ZodEmailInternals extends $ZodStringFormatInternals<"email"> {}
|
|
666
|
-
interface $ZodEmail extends $ZodType {
|
|
667
|
-
_zod: $ZodEmailInternals;
|
|
668
|
-
}
|
|
669
|
-
declare const $ZodEmail: $constructor<$ZodEmail>;
|
|
670
|
-
interface $ZodURLDef extends $ZodStringFormatDef<"url"> {
|
|
671
|
-
hostname?: RegExp | undefined;
|
|
672
|
-
protocol?: RegExp | undefined;
|
|
673
|
-
normalize?: boolean | undefined;
|
|
674
|
-
}
|
|
675
|
-
interface $ZodURLInternals extends $ZodStringFormatInternals<"url"> {
|
|
676
|
-
def: $ZodURLDef;
|
|
677
|
-
}
|
|
678
|
-
interface $ZodURL extends $ZodType {
|
|
679
|
-
_zod: $ZodURLInternals;
|
|
680
|
-
}
|
|
681
|
-
declare const $ZodURL: $constructor<$ZodURL>;
|
|
682
|
-
interface $ZodEmojiInternals extends $ZodStringFormatInternals<"emoji"> {}
|
|
683
|
-
interface $ZodEmoji extends $ZodType {
|
|
684
|
-
_zod: $ZodEmojiInternals;
|
|
685
|
-
}
|
|
686
|
-
declare const $ZodEmoji: $constructor<$ZodEmoji>;
|
|
687
|
-
interface $ZodNanoIDInternals extends $ZodStringFormatInternals<"nanoid"> {}
|
|
688
|
-
interface $ZodNanoID extends $ZodType {
|
|
689
|
-
_zod: $ZodNanoIDInternals;
|
|
690
|
-
}
|
|
691
|
-
declare const $ZodNanoID: $constructor<$ZodNanoID>;
|
|
692
|
-
interface $ZodCUIDInternals extends $ZodStringFormatInternals<"cuid"> {}
|
|
693
|
-
interface $ZodCUID extends $ZodType {
|
|
694
|
-
_zod: $ZodCUIDInternals;
|
|
695
|
-
}
|
|
696
|
-
declare const $ZodCUID: $constructor<$ZodCUID>;
|
|
697
|
-
interface $ZodCUID2Internals extends $ZodStringFormatInternals<"cuid2"> {}
|
|
698
|
-
interface $ZodCUID2 extends $ZodType {
|
|
699
|
-
_zod: $ZodCUID2Internals;
|
|
700
|
-
}
|
|
701
|
-
declare const $ZodCUID2: $constructor<$ZodCUID2>;
|
|
702
|
-
interface $ZodULIDInternals extends $ZodStringFormatInternals<"ulid"> {}
|
|
703
|
-
interface $ZodULID extends $ZodType {
|
|
704
|
-
_zod: $ZodULIDInternals;
|
|
705
|
-
}
|
|
706
|
-
declare const $ZodULID: $constructor<$ZodULID>;
|
|
707
|
-
interface $ZodXIDInternals extends $ZodStringFormatInternals<"xid"> {}
|
|
708
|
-
interface $ZodXID extends $ZodType {
|
|
709
|
-
_zod: $ZodXIDInternals;
|
|
710
|
-
}
|
|
711
|
-
declare const $ZodXID: $constructor<$ZodXID>;
|
|
712
|
-
interface $ZodKSUIDInternals extends $ZodStringFormatInternals<"ksuid"> {}
|
|
713
|
-
interface $ZodKSUID extends $ZodType {
|
|
714
|
-
_zod: $ZodKSUIDInternals;
|
|
715
|
-
}
|
|
716
|
-
declare const $ZodKSUID: $constructor<$ZodKSUID>;
|
|
717
|
-
interface $ZodISODateTimeDef extends $ZodStringFormatDef<"datetime"> {
|
|
718
|
-
precision: number | null;
|
|
719
|
-
offset: boolean;
|
|
720
|
-
local: boolean;
|
|
721
|
-
}
|
|
722
|
-
interface $ZodISODateTimeInternals extends $ZodStringFormatInternals {
|
|
723
|
-
def: $ZodISODateTimeDef;
|
|
724
|
-
}
|
|
725
|
-
interface $ZodISODateTime extends $ZodType {
|
|
726
|
-
_zod: $ZodISODateTimeInternals;
|
|
727
|
-
}
|
|
728
|
-
declare const $ZodISODateTime: $constructor<$ZodISODateTime>;
|
|
729
|
-
interface $ZodISODateInternals extends $ZodStringFormatInternals<"date"> {}
|
|
730
|
-
interface $ZodISODate extends $ZodType {
|
|
731
|
-
_zod: $ZodISODateInternals;
|
|
732
|
-
}
|
|
733
|
-
declare const $ZodISODate: $constructor<$ZodISODate>;
|
|
734
|
-
interface $ZodISOTimeDef extends $ZodStringFormatDef<"time"> {
|
|
735
|
-
precision?: number | null;
|
|
736
|
-
}
|
|
737
|
-
interface $ZodISOTimeInternals extends $ZodStringFormatInternals<"time"> {
|
|
738
|
-
def: $ZodISOTimeDef;
|
|
739
|
-
}
|
|
740
|
-
interface $ZodISOTime extends $ZodType {
|
|
741
|
-
_zod: $ZodISOTimeInternals;
|
|
742
|
-
}
|
|
743
|
-
declare const $ZodISOTime: $constructor<$ZodISOTime>;
|
|
744
|
-
interface $ZodISODurationInternals extends $ZodStringFormatInternals<"duration"> {}
|
|
745
|
-
interface $ZodISODuration extends $ZodType {
|
|
746
|
-
_zod: $ZodISODurationInternals;
|
|
747
|
-
}
|
|
748
|
-
declare const $ZodISODuration: $constructor<$ZodISODuration>;
|
|
749
|
-
interface $ZodIPv4Def extends $ZodStringFormatDef<"ipv4"> {
|
|
750
|
-
version?: "v4";
|
|
751
|
-
}
|
|
752
|
-
interface $ZodIPv4Internals extends $ZodStringFormatInternals<"ipv4"> {
|
|
753
|
-
def: $ZodIPv4Def;
|
|
754
|
-
}
|
|
755
|
-
interface $ZodIPv4 extends $ZodType {
|
|
756
|
-
_zod: $ZodIPv4Internals;
|
|
757
|
-
}
|
|
758
|
-
declare const $ZodIPv4: $constructor<$ZodIPv4>;
|
|
759
|
-
interface $ZodIPv6Def extends $ZodStringFormatDef<"ipv6"> {
|
|
760
|
-
version?: "v6";
|
|
761
|
-
}
|
|
762
|
-
interface $ZodIPv6Internals extends $ZodStringFormatInternals<"ipv6"> {
|
|
763
|
-
def: $ZodIPv6Def;
|
|
764
|
-
}
|
|
765
|
-
interface $ZodIPv6 extends $ZodType {
|
|
766
|
-
_zod: $ZodIPv6Internals;
|
|
767
|
-
}
|
|
768
|
-
declare const $ZodIPv6: $constructor<$ZodIPv6>;
|
|
769
|
-
interface $ZodCIDRv4Def extends $ZodStringFormatDef<"cidrv4"> {
|
|
770
|
-
version?: "v4";
|
|
771
|
-
}
|
|
772
|
-
interface $ZodCIDRv4Internals extends $ZodStringFormatInternals<"cidrv4"> {
|
|
773
|
-
def: $ZodCIDRv4Def;
|
|
774
|
-
}
|
|
775
|
-
interface $ZodCIDRv4 extends $ZodType {
|
|
776
|
-
_zod: $ZodCIDRv4Internals;
|
|
777
|
-
}
|
|
778
|
-
declare const $ZodCIDRv4: $constructor<$ZodCIDRv4>;
|
|
779
|
-
interface $ZodCIDRv6Def extends $ZodStringFormatDef<"cidrv6"> {
|
|
780
|
-
version?: "v6";
|
|
781
|
-
}
|
|
782
|
-
interface $ZodCIDRv6Internals extends $ZodStringFormatInternals<"cidrv6"> {
|
|
783
|
-
def: $ZodCIDRv6Def;
|
|
784
|
-
}
|
|
785
|
-
interface $ZodCIDRv6 extends $ZodType {
|
|
786
|
-
_zod: $ZodCIDRv6Internals;
|
|
787
|
-
}
|
|
788
|
-
declare const $ZodCIDRv6: $constructor<$ZodCIDRv6>;
|
|
789
|
-
interface $ZodBase64Internals extends $ZodStringFormatInternals<"base64"> {}
|
|
790
|
-
interface $ZodBase64 extends $ZodType {
|
|
791
|
-
_zod: $ZodBase64Internals;
|
|
792
|
-
}
|
|
793
|
-
declare const $ZodBase64: $constructor<$ZodBase64>;
|
|
794
|
-
interface $ZodBase64URLInternals extends $ZodStringFormatInternals<"base64url"> {}
|
|
795
|
-
interface $ZodBase64URL extends $ZodType {
|
|
796
|
-
_zod: $ZodBase64URLInternals;
|
|
797
|
-
}
|
|
798
|
-
declare const $ZodBase64URL: $constructor<$ZodBase64URL>;
|
|
799
|
-
interface $ZodE164Internals extends $ZodStringFormatInternals<"e164"> {}
|
|
800
|
-
interface $ZodE164 extends $ZodType {
|
|
801
|
-
_zod: $ZodE164Internals;
|
|
802
|
-
}
|
|
803
|
-
declare const $ZodE164: $constructor<$ZodE164>;
|
|
804
|
-
interface $ZodJWTDef extends $ZodStringFormatDef<"jwt"> {
|
|
805
|
-
alg?: JWTAlgorithm | undefined;
|
|
806
|
-
}
|
|
807
|
-
interface $ZodJWTInternals extends $ZodStringFormatInternals<"jwt"> {
|
|
808
|
-
def: $ZodJWTDef;
|
|
809
|
-
}
|
|
810
|
-
interface $ZodJWT extends $ZodType {
|
|
811
|
-
_zod: $ZodJWTInternals;
|
|
812
|
-
}
|
|
813
|
-
declare const $ZodJWT: $constructor<$ZodJWT>;
|
|
814
|
-
interface $ZodNumberDef extends $ZodTypeDef {
|
|
815
|
-
type: "number";
|
|
816
|
-
coerce?: boolean;
|
|
817
|
-
}
|
|
818
|
-
interface $ZodNumberInternals<Input = unknown> extends $ZodTypeInternals<number, Input> {
|
|
819
|
-
def: $ZodNumberDef;
|
|
820
|
-
/** @deprecated Internal API, use with caution (not deprecated) */
|
|
821
|
-
pattern: RegExp;
|
|
822
|
-
/** @deprecated Internal API, use with caution (not deprecated) */
|
|
823
|
-
isst: $ZodIssueInvalidType;
|
|
824
|
-
bag: LoosePartial<{
|
|
825
|
-
minimum: number;
|
|
826
|
-
maximum: number;
|
|
827
|
-
exclusiveMinimum: number;
|
|
828
|
-
exclusiveMaximum: number;
|
|
829
|
-
format: string;
|
|
830
|
-
pattern: RegExp;
|
|
831
|
-
}>;
|
|
832
|
-
}
|
|
833
|
-
interface $ZodNumber<Input = unknown> extends $ZodType {
|
|
834
|
-
_zod: $ZodNumberInternals<Input>;
|
|
835
|
-
}
|
|
836
|
-
declare const $ZodNumber: $constructor<$ZodNumber>;
|
|
837
|
-
interface $ZodBooleanDef extends $ZodTypeDef {
|
|
838
|
-
type: "boolean";
|
|
839
|
-
coerce?: boolean;
|
|
840
|
-
checks?: $ZodCheck<boolean>[];
|
|
841
|
-
}
|
|
842
|
-
interface $ZodBooleanInternals<T = unknown> extends $ZodTypeInternals<boolean, T> {
|
|
843
|
-
pattern: RegExp;
|
|
844
|
-
def: $ZodBooleanDef;
|
|
845
|
-
isst: $ZodIssueInvalidType;
|
|
846
|
-
}
|
|
847
|
-
interface $ZodBoolean<T = unknown> extends $ZodType {
|
|
848
|
-
_zod: $ZodBooleanInternals<T>;
|
|
849
|
-
}
|
|
850
|
-
declare const $ZodBoolean: $constructor<$ZodBoolean>;
|
|
851
|
-
interface $ZodBigIntDef extends $ZodTypeDef {
|
|
852
|
-
type: "bigint";
|
|
853
|
-
coerce?: boolean;
|
|
854
|
-
}
|
|
855
|
-
interface $ZodBigIntInternals<T = unknown> extends $ZodTypeInternals<bigint, T> {
|
|
856
|
-
pattern: RegExp;
|
|
857
|
-
/** @internal Internal API, use with caution */
|
|
858
|
-
def: $ZodBigIntDef;
|
|
859
|
-
isst: $ZodIssueInvalidType;
|
|
860
|
-
bag: LoosePartial<{
|
|
861
|
-
minimum: bigint;
|
|
862
|
-
maximum: bigint;
|
|
863
|
-
format: string;
|
|
864
|
-
}>;
|
|
865
|
-
}
|
|
866
|
-
interface $ZodBigInt<T = unknown> extends $ZodType {
|
|
867
|
-
_zod: $ZodBigIntInternals<T>;
|
|
868
|
-
}
|
|
869
|
-
declare const $ZodBigInt: $constructor<$ZodBigInt>;
|
|
870
|
-
interface $ZodSymbolDef extends $ZodTypeDef {
|
|
871
|
-
type: "symbol";
|
|
872
|
-
}
|
|
873
|
-
interface $ZodSymbolInternals extends $ZodTypeInternals<symbol, symbol> {
|
|
874
|
-
def: $ZodSymbolDef;
|
|
875
|
-
isst: $ZodIssueInvalidType;
|
|
876
|
-
}
|
|
877
|
-
interface $ZodSymbol extends $ZodType {
|
|
878
|
-
_zod: $ZodSymbolInternals;
|
|
879
|
-
}
|
|
880
|
-
declare const $ZodSymbol: $constructor<$ZodSymbol>;
|
|
881
|
-
interface $ZodUndefinedDef extends $ZodTypeDef {
|
|
882
|
-
type: "undefined";
|
|
883
|
-
}
|
|
884
|
-
interface $ZodUndefinedInternals extends $ZodTypeInternals<undefined, undefined> {
|
|
885
|
-
pattern: RegExp;
|
|
886
|
-
def: $ZodUndefinedDef;
|
|
887
|
-
values: PrimitiveSet;
|
|
888
|
-
isst: $ZodIssueInvalidType;
|
|
889
|
-
}
|
|
890
|
-
interface $ZodUndefined extends $ZodType {
|
|
891
|
-
_zod: $ZodUndefinedInternals;
|
|
892
|
-
}
|
|
893
|
-
declare const $ZodUndefined: $constructor<$ZodUndefined>;
|
|
894
|
-
interface $ZodNullDef extends $ZodTypeDef {
|
|
895
|
-
type: "null";
|
|
896
|
-
}
|
|
897
|
-
interface $ZodNullInternals extends $ZodTypeInternals<null, null> {
|
|
898
|
-
pattern: RegExp;
|
|
899
|
-
def: $ZodNullDef;
|
|
900
|
-
values: PrimitiveSet;
|
|
901
|
-
isst: $ZodIssueInvalidType;
|
|
902
|
-
}
|
|
903
|
-
interface $ZodNull extends $ZodType {
|
|
904
|
-
_zod: $ZodNullInternals;
|
|
905
|
-
}
|
|
906
|
-
declare const $ZodNull: $constructor<$ZodNull>;
|
|
907
|
-
interface $ZodAnyDef extends $ZodTypeDef {
|
|
908
|
-
type: "any";
|
|
909
|
-
}
|
|
910
|
-
interface $ZodAnyInternals extends $ZodTypeInternals<any, any> {
|
|
911
|
-
def: $ZodAnyDef;
|
|
912
|
-
isst: never;
|
|
913
|
-
}
|
|
914
|
-
interface $ZodAny extends $ZodType {
|
|
915
|
-
_zod: $ZodAnyInternals;
|
|
916
|
-
}
|
|
917
|
-
declare const $ZodAny: $constructor<$ZodAny>;
|
|
918
|
-
interface $ZodUnknownDef extends $ZodTypeDef {
|
|
919
|
-
type: "unknown";
|
|
920
|
-
}
|
|
921
|
-
interface $ZodUnknownInternals extends $ZodTypeInternals<unknown, unknown> {
|
|
922
|
-
def: $ZodUnknownDef;
|
|
923
|
-
isst: never;
|
|
924
|
-
}
|
|
925
|
-
interface $ZodUnknown extends $ZodType {
|
|
926
|
-
_zod: $ZodUnknownInternals;
|
|
927
|
-
}
|
|
928
|
-
declare const $ZodUnknown: $constructor<$ZodUnknown>;
|
|
929
|
-
interface $ZodNeverDef extends $ZodTypeDef {
|
|
930
|
-
type: "never";
|
|
931
|
-
}
|
|
932
|
-
interface $ZodNeverInternals extends $ZodTypeInternals<never, never> {
|
|
933
|
-
def: $ZodNeverDef;
|
|
934
|
-
isst: $ZodIssueInvalidType;
|
|
935
|
-
}
|
|
936
|
-
interface $ZodNever extends $ZodType {
|
|
937
|
-
_zod: $ZodNeverInternals;
|
|
938
|
-
}
|
|
939
|
-
declare const $ZodNever: $constructor<$ZodNever>;
|
|
940
|
-
interface $ZodVoidDef extends $ZodTypeDef {
|
|
941
|
-
type: "void";
|
|
942
|
-
}
|
|
943
|
-
interface $ZodVoidInternals extends $ZodTypeInternals<void, void> {
|
|
944
|
-
def: $ZodVoidDef;
|
|
945
|
-
isst: $ZodIssueInvalidType;
|
|
946
|
-
}
|
|
947
|
-
interface $ZodVoid extends $ZodType {
|
|
948
|
-
_zod: $ZodVoidInternals;
|
|
949
|
-
}
|
|
950
|
-
declare const $ZodVoid: $constructor<$ZodVoid>;
|
|
951
|
-
interface $ZodDateDef extends $ZodTypeDef {
|
|
952
|
-
type: "date";
|
|
953
|
-
coerce?: boolean;
|
|
954
|
-
}
|
|
955
|
-
interface $ZodDateInternals<T = unknown> extends $ZodTypeInternals<Date, T> {
|
|
956
|
-
def: $ZodDateDef;
|
|
957
|
-
isst: $ZodIssueInvalidType;
|
|
958
|
-
bag: LoosePartial<{
|
|
959
|
-
minimum: Date;
|
|
960
|
-
maximum: Date;
|
|
961
|
-
format: string;
|
|
962
|
-
}>;
|
|
963
|
-
}
|
|
964
|
-
interface $ZodDate<T = unknown> extends $ZodType {
|
|
965
|
-
_zod: $ZodDateInternals<T>;
|
|
966
|
-
}
|
|
967
|
-
declare const $ZodDate: $constructor<$ZodDate>;
|
|
968
|
-
interface $ZodArrayDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
969
|
-
type: "array";
|
|
970
|
-
element: T;
|
|
971
|
-
}
|
|
972
|
-
interface $ZodArrayInternals<T extends SomeType = $ZodType> extends _$ZodTypeInternals {
|
|
973
|
-
def: $ZodArrayDef<T>;
|
|
974
|
-
isst: $ZodIssueInvalidType;
|
|
975
|
-
output: output<T>[];
|
|
976
|
-
input: input<T>[];
|
|
977
|
-
}
|
|
978
|
-
interface $ZodArray<T extends SomeType = $ZodType> extends $ZodType<any, any, $ZodArrayInternals<T>> {}
|
|
979
|
-
declare const $ZodArray: $constructor<$ZodArray>;
|
|
980
|
-
type OptionalOutSchema = {
|
|
981
|
-
_zod: {
|
|
982
|
-
optout: "optional";
|
|
983
|
-
};
|
|
984
|
-
};
|
|
985
|
-
type OptionalInSchema = {
|
|
986
|
-
_zod: {
|
|
987
|
-
optin: "optional";
|
|
988
|
-
};
|
|
989
|
-
};
|
|
990
|
-
type $InferObjectOutput<T extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T ? IsAny<T[keyof T]> extends true ? Record<string, unknown> : Record<string, output<T[keyof T]>> : keyof (T & Extra) extends never ? Record<string, never> : Prettify<{ -readonly [k in keyof T as T[k] extends OptionalOutSchema ? never : k]: T[k]["_zod"]["output"] } & { -readonly [k in keyof T as T[k] extends OptionalOutSchema ? k : never]?: T[k]["_zod"]["output"] } & Extra>;
|
|
991
|
-
type $InferObjectInput<T extends $ZodLooseShape, Extra extends Record<string, unknown>> = string extends keyof T ? IsAny<T[keyof T]> extends true ? Record<string, unknown> : Record<string, input<T[keyof T]>> : keyof (T & Extra) extends never ? Record<string, never> : Prettify<{ -readonly [k in keyof T as T[k] extends OptionalInSchema ? never : k]: T[k]["_zod"]["input"] } & { -readonly [k in keyof T as T[k] extends OptionalInSchema ? k : never]?: T[k]["_zod"]["input"] } & Extra>;
|
|
992
|
-
type $ZodObjectConfig = {
|
|
993
|
-
out: Record<string, unknown>;
|
|
994
|
-
in: Record<string, unknown>;
|
|
995
|
-
};
|
|
996
|
-
type $loose = {
|
|
997
|
-
out: Record<string, unknown>;
|
|
998
|
-
in: Record<string, unknown>;
|
|
999
|
-
};
|
|
1000
|
-
type $strict = {
|
|
1001
|
-
out: {};
|
|
1002
|
-
in: {};
|
|
1003
|
-
};
|
|
1004
|
-
type $strip = {
|
|
1005
|
-
out: {};
|
|
1006
|
-
in: {};
|
|
1007
|
-
};
|
|
1008
|
-
type $catchall<T extends SomeType> = {
|
|
1009
|
-
out: {
|
|
1010
|
-
[k: string]: output<T>;
|
|
1011
|
-
};
|
|
1012
|
-
in: {
|
|
1013
|
-
[k: string]: input<T>;
|
|
1014
|
-
};
|
|
1015
|
-
};
|
|
1016
|
-
type $ZodShape = Readonly<{
|
|
1017
|
-
[k: string]: $ZodType;
|
|
1018
|
-
}>;
|
|
1019
|
-
interface $ZodObjectDef<Shape extends $ZodShape = $ZodShape> extends $ZodTypeDef {
|
|
1020
|
-
type: "object";
|
|
1021
|
-
shape: Shape;
|
|
1022
|
-
catchall?: $ZodType | undefined;
|
|
1023
|
-
}
|
|
1024
|
-
interface $ZodObjectInternals< /** @ts-ignore Cast variance */out Shape extends $ZodShape = $ZodShape, out Config extends $ZodObjectConfig = $ZodObjectConfig> extends _$ZodTypeInternals {
|
|
1025
|
-
def: $ZodObjectDef<Shape>;
|
|
1026
|
-
config: Config;
|
|
1027
|
-
isst: $ZodIssueInvalidType | $ZodIssueUnrecognizedKeys;
|
|
1028
|
-
propValues: PropValues;
|
|
1029
|
-
output: $InferObjectOutput<Shape, Config["out"]>;
|
|
1030
|
-
input: $InferObjectInput<Shape, Config["in"]>;
|
|
1031
|
-
optin?: "optional" | undefined;
|
|
1032
|
-
optout?: "optional" | undefined;
|
|
1033
|
-
}
|
|
1034
|
-
type $ZodLooseShape = Record<string, any>;
|
|
1035
|
-
interface $ZodObject< /** @ts-ignore Cast variance */out Shape extends Readonly<$ZodShape> = Readonly<$ZodShape>, out Params extends $ZodObjectConfig = $ZodObjectConfig> extends $ZodType<any, any, $ZodObjectInternals<Shape, Params>> {}
|
|
1036
|
-
declare const $ZodObject: $constructor<$ZodObject>;
|
|
1037
|
-
type $InferUnionOutput<T extends SomeType> = T extends any ? output<T> : never;
|
|
1038
|
-
type $InferUnionInput<T extends SomeType> = T extends any ? input<T> : never;
|
|
1039
|
-
interface $ZodUnionDef<Options extends readonly SomeType[] = readonly $ZodType[]> extends $ZodTypeDef {
|
|
1040
|
-
type: "union";
|
|
1041
|
-
options: Options;
|
|
1042
|
-
inclusive?: boolean;
|
|
1043
|
-
}
|
|
1044
|
-
type IsOptionalIn<T extends SomeType> = T extends OptionalInSchema ? true : false;
|
|
1045
|
-
type IsOptionalOut<T extends SomeType> = T extends OptionalOutSchema ? true : false;
|
|
1046
|
-
interface $ZodUnionInternals<T extends readonly SomeType[] = readonly $ZodType[]> extends _$ZodTypeInternals {
|
|
1047
|
-
def: $ZodUnionDef<T>;
|
|
1048
|
-
isst: $ZodIssueInvalidUnion;
|
|
1049
|
-
pattern: T[number]["_zod"]["pattern"];
|
|
1050
|
-
values: T[number]["_zod"]["values"];
|
|
1051
|
-
output: $InferUnionOutput<T[number]>;
|
|
1052
|
-
input: $InferUnionInput<T[number]>;
|
|
1053
|
-
optin: IsOptionalIn<T[number]> extends false ? "optional" | undefined : "optional";
|
|
1054
|
-
optout: IsOptionalOut<T[number]> extends false ? "optional" | undefined : "optional";
|
|
1055
|
-
}
|
|
1056
|
-
interface $ZodUnion<T extends readonly SomeType[] = readonly $ZodType[]> extends $ZodType<any, any, $ZodUnionInternals<T>> {
|
|
1057
|
-
_zod: $ZodUnionInternals<T>;
|
|
1058
|
-
}
|
|
1059
|
-
declare const $ZodUnion: $constructor<$ZodUnion>;
|
|
1060
|
-
interface $ZodIntersectionDef<Left extends SomeType = $ZodType, Right extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
1061
|
-
type: "intersection";
|
|
1062
|
-
left: Left;
|
|
1063
|
-
right: Right;
|
|
1064
|
-
}
|
|
1065
|
-
interface $ZodIntersectionInternals<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends _$ZodTypeInternals {
|
|
1066
|
-
def: $ZodIntersectionDef<A, B>;
|
|
1067
|
-
isst: never;
|
|
1068
|
-
optin: A["_zod"]["optin"] | B["_zod"]["optin"];
|
|
1069
|
-
optout: A["_zod"]["optout"] | B["_zod"]["optout"];
|
|
1070
|
-
output: output<A> & output<B>;
|
|
1071
|
-
input: input<A> & input<B>;
|
|
1072
|
-
}
|
|
1073
|
-
interface $ZodIntersection<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodType {
|
|
1074
|
-
_zod: $ZodIntersectionInternals<A, B>;
|
|
1075
|
-
}
|
|
1076
|
-
declare const $ZodIntersection: $constructor<$ZodIntersection>;
|
|
1077
|
-
interface $ZodTupleDef<T extends TupleItems = readonly $ZodType[], Rest extends SomeType | null = $ZodType | null> extends $ZodTypeDef {
|
|
1078
|
-
type: "tuple";
|
|
1079
|
-
items: T;
|
|
1080
|
-
rest: Rest;
|
|
1081
|
-
}
|
|
1082
|
-
type $InferTupleInputType<T extends TupleItems, Rest extends SomeType | null> = [...TupleInputTypeWithOptionals<T>, ...(Rest extends SomeType ? input<Rest>[] : [])];
|
|
1083
|
-
type TupleInputTypeNoOptionals<T extends TupleItems> = { [k in keyof T]: input<T[k]> };
|
|
1084
|
-
type TupleInputTypeWithOptionals<T extends TupleItems> = T extends readonly [...infer Prefix extends SomeType[], infer Tail extends SomeType] ? Tail["_zod"]["optin"] extends "optional" ? [...TupleInputTypeWithOptionals<Prefix>, input<Tail>?] : TupleInputTypeNoOptionals<T> : [];
|
|
1085
|
-
type $InferTupleOutputType<T extends TupleItems, Rest extends SomeType | null> = [...TupleOutputTypeWithOptionals<T>, ...(Rest extends SomeType ? output<Rest>[] : [])];
|
|
1086
|
-
type TupleOutputTypeNoOptionals<T extends TupleItems> = { [k in keyof T]: output<T[k]> };
|
|
1087
|
-
type TupleOutputTypeWithOptionals<T extends TupleItems> = T extends readonly [...infer Prefix extends SomeType[], infer Tail extends SomeType] ? Tail["_zod"]["optout"] extends "optional" ? [...TupleOutputTypeWithOptionals<Prefix>, output<Tail>?] : TupleOutputTypeNoOptionals<T> : [];
|
|
1088
|
-
interface $ZodTupleInternals<T extends TupleItems = readonly $ZodType[], Rest extends SomeType | null = $ZodType | null> extends _$ZodTypeInternals {
|
|
1089
|
-
def: $ZodTupleDef<T, Rest>;
|
|
1090
|
-
isst: $ZodIssueInvalidType | $ZodIssueTooBig<unknown[]> | $ZodIssueTooSmall<unknown[]>;
|
|
1091
|
-
output: $InferTupleOutputType<T, Rest>;
|
|
1092
|
-
input: $InferTupleInputType<T, Rest>;
|
|
1093
|
-
}
|
|
1094
|
-
interface $ZodTuple<T extends TupleItems = readonly $ZodType[], Rest extends SomeType | null = $ZodType | null> extends $ZodType {
|
|
1095
|
-
_zod: $ZodTupleInternals<T, Rest>;
|
|
1096
|
-
}
|
|
1097
|
-
declare const $ZodTuple: $constructor<$ZodTuple>;
|
|
1098
|
-
type $ZodRecordKey = $ZodType<string | number | symbol, unknown>;
|
|
1099
|
-
interface $ZodRecordDef<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
1100
|
-
type: "record";
|
|
1101
|
-
keyType: Key;
|
|
1102
|
-
valueType: Value;
|
|
1103
|
-
/** @default "strict" - errors on keys not matching keyType. "loose" passes through non-matching keys unchanged. */
|
|
1104
|
-
mode?: "strict" | "loose";
|
|
1105
|
-
}
|
|
1106
|
-
type $InferZodRecordOutput<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> = Key extends $partial ? Partial<Record<output<Key>, output<Value>>> : Record<output<Key>, output<Value>>;
|
|
1107
|
-
type $InferZodRecordInput<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> = Key extends $partial ? Partial<Record<input<Key> & PropertyKey, input<Value>>> : Record<input<Key> & PropertyKey, input<Value>>;
|
|
1108
|
-
interface $ZodRecordInternals<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodTypeInternals<$InferZodRecordOutput<Key, Value>, $InferZodRecordInput<Key, Value>> {
|
|
1109
|
-
def: $ZodRecordDef<Key, Value>;
|
|
1110
|
-
isst: $ZodIssueInvalidType | $ZodIssueInvalidKey<Record<PropertyKey, unknown>>;
|
|
1111
|
-
optin?: "optional" | undefined;
|
|
1112
|
-
optout?: "optional" | undefined;
|
|
1113
|
-
}
|
|
1114
|
-
type $partial = {
|
|
1115
|
-
"~~partial": true;
|
|
1116
|
-
};
|
|
1117
|
-
interface $ZodRecord<Key extends $ZodRecordKey = $ZodRecordKey, Value extends SomeType = $ZodType> extends $ZodType {
|
|
1118
|
-
_zod: $ZodRecordInternals<Key, Value>;
|
|
1119
|
-
}
|
|
1120
|
-
declare const $ZodRecord: $constructor<$ZodRecord>;
|
|
1121
|
-
interface $ZodMapDef<Key extends SomeType = $ZodType, Value extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
1122
|
-
type: "map";
|
|
1123
|
-
keyType: Key;
|
|
1124
|
-
valueType: Value;
|
|
1125
|
-
}
|
|
1126
|
-
interface $ZodMapInternals<Key extends SomeType = $ZodType, Value extends SomeType = $ZodType> extends $ZodTypeInternals<Map<output<Key>, output<Value>>, Map<input<Key>, input<Value>>> {
|
|
1127
|
-
def: $ZodMapDef<Key, Value>;
|
|
1128
|
-
isst: $ZodIssueInvalidType | $ZodIssueInvalidKey | $ZodIssueInvalidElement<unknown>;
|
|
1129
|
-
optin?: "optional" | undefined;
|
|
1130
|
-
optout?: "optional" | undefined;
|
|
1131
|
-
}
|
|
1132
|
-
interface $ZodMap<Key extends SomeType = $ZodType, Value extends SomeType = $ZodType> extends $ZodType {
|
|
1133
|
-
_zod: $ZodMapInternals<Key, Value>;
|
|
1134
|
-
}
|
|
1135
|
-
declare const $ZodMap: $constructor<$ZodMap>;
|
|
1136
|
-
interface $ZodSetDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
1137
|
-
type: "set";
|
|
1138
|
-
valueType: T;
|
|
1139
|
-
}
|
|
1140
|
-
interface $ZodSetInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<Set<output<T>>, Set<input<T>>> {
|
|
1141
|
-
def: $ZodSetDef<T>;
|
|
1142
|
-
isst: $ZodIssueInvalidType;
|
|
1143
|
-
optin?: "optional" | undefined;
|
|
1144
|
-
optout?: "optional" | undefined;
|
|
1145
|
-
}
|
|
1146
|
-
interface $ZodSet<T extends SomeType = $ZodType> extends $ZodType {
|
|
1147
|
-
_zod: $ZodSetInternals<T>;
|
|
1148
|
-
}
|
|
1149
|
-
declare const $ZodSet: $constructor<$ZodSet>;
|
|
1150
|
-
type $InferEnumOutput<T extends EnumLike> = T[keyof T] & {};
|
|
1151
|
-
type $InferEnumInput<T extends EnumLike> = T[keyof T] & {};
|
|
1152
|
-
interface $ZodEnumDef<T extends EnumLike = EnumLike> extends $ZodTypeDef {
|
|
1153
|
-
type: "enum";
|
|
1154
|
-
entries: T;
|
|
1155
|
-
}
|
|
1156
|
-
interface $ZodEnumInternals< /** @ts-ignore Cast variance */out T extends EnumLike = EnumLike> extends $ZodTypeInternals<$InferEnumOutput<T>, $InferEnumInput<T>> {
|
|
1157
|
-
def: $ZodEnumDef<T>;
|
|
1158
|
-
/** @deprecated Internal API, use with caution (not deprecated) */
|
|
1159
|
-
values: PrimitiveSet;
|
|
1160
|
-
/** @deprecated Internal API, use with caution (not deprecated) */
|
|
1161
|
-
pattern: RegExp;
|
|
1162
|
-
isst: $ZodIssueInvalidValue;
|
|
1163
|
-
}
|
|
1164
|
-
interface $ZodEnum<T extends EnumLike = EnumLike> extends $ZodType {
|
|
1165
|
-
_zod: $ZodEnumInternals<T>;
|
|
1166
|
-
}
|
|
1167
|
-
declare const $ZodEnum: $constructor<$ZodEnum>;
|
|
1168
|
-
interface $ZodLiteralDef<T extends Literal> extends $ZodTypeDef {
|
|
1169
|
-
type: "literal";
|
|
1170
|
-
values: T[];
|
|
1171
|
-
}
|
|
1172
|
-
interface $ZodLiteralInternals<T extends Literal = Literal> extends $ZodTypeInternals<T, T> {
|
|
1173
|
-
def: $ZodLiteralDef<T>;
|
|
1174
|
-
values: Set<T>;
|
|
1175
|
-
pattern: RegExp;
|
|
1176
|
-
isst: $ZodIssueInvalidValue;
|
|
1177
|
-
}
|
|
1178
|
-
interface $ZodLiteral<T extends Literal = Literal> extends $ZodType {
|
|
1179
|
-
_zod: $ZodLiteralInternals<T>;
|
|
1180
|
-
}
|
|
1181
|
-
declare const $ZodLiteral: $constructor<$ZodLiteral>;
|
|
1182
|
-
type _File = typeof globalThis extends {
|
|
1183
|
-
File: infer F extends new (...args: any[]) => any;
|
|
1184
|
-
} ? InstanceType<F> : {};
|
|
1185
|
-
/** Do not reference this directly. */
|
|
1186
|
-
interface File extends _File {
|
|
1187
|
-
readonly type: string;
|
|
1188
|
-
readonly size: number;
|
|
1189
|
-
}
|
|
1190
|
-
interface $ZodFileDef extends $ZodTypeDef {
|
|
1191
|
-
type: "file";
|
|
1192
|
-
}
|
|
1193
|
-
interface $ZodFileInternals extends $ZodTypeInternals<File, File> {
|
|
1194
|
-
def: $ZodFileDef;
|
|
1195
|
-
isst: $ZodIssueInvalidType;
|
|
1196
|
-
bag: LoosePartial<{
|
|
1197
|
-
minimum: number;
|
|
1198
|
-
maximum: number;
|
|
1199
|
-
mime: MimeTypes[];
|
|
1200
|
-
}>;
|
|
1201
|
-
}
|
|
1202
|
-
interface $ZodFile extends $ZodType {
|
|
1203
|
-
_zod: $ZodFileInternals;
|
|
1204
|
-
}
|
|
1205
|
-
declare const $ZodFile: $constructor<$ZodFile>;
|
|
1206
|
-
interface $ZodTransformDef extends $ZodTypeDef {
|
|
1207
|
-
type: "transform";
|
|
1208
|
-
transform: (input: unknown, payload: ParsePayload<unknown>) => MaybeAsync<unknown>;
|
|
1209
|
-
}
|
|
1210
|
-
interface $ZodTransformInternals<O = unknown, I = unknown> extends $ZodTypeInternals<O, I> {
|
|
1211
|
-
def: $ZodTransformDef;
|
|
1212
|
-
isst: never;
|
|
1213
|
-
}
|
|
1214
|
-
interface $ZodTransform<O = unknown, I = unknown> extends $ZodType {
|
|
1215
|
-
_zod: $ZodTransformInternals<O, I>;
|
|
1216
|
-
}
|
|
1217
|
-
declare const $ZodTransform: $constructor<$ZodTransform>;
|
|
1218
|
-
interface $ZodOptionalDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
1219
|
-
type: "optional";
|
|
1220
|
-
innerType: T;
|
|
1221
|
-
}
|
|
1222
|
-
interface $ZodOptionalInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output<T> | undefined, input<T> | undefined> {
|
|
1223
|
-
def: $ZodOptionalDef<T>;
|
|
1224
|
-
optin: "optional";
|
|
1225
|
-
optout: "optional";
|
|
1226
|
-
isst: never;
|
|
1227
|
-
values: T["_zod"]["values"];
|
|
1228
|
-
pattern: T["_zod"]["pattern"];
|
|
1229
|
-
}
|
|
1230
|
-
interface $ZodOptional<T extends SomeType = $ZodType> extends $ZodType {
|
|
1231
|
-
_zod: $ZodOptionalInternals<T>;
|
|
1232
|
-
}
|
|
1233
|
-
declare const $ZodOptional: $constructor<$ZodOptional>;
|
|
1234
|
-
interface $ZodExactOptionalDef<T extends SomeType = $ZodType> extends $ZodOptionalDef<T> {}
|
|
1235
|
-
interface $ZodExactOptionalInternals<T extends SomeType = $ZodType> extends $ZodOptionalInternals<T> {
|
|
1236
|
-
def: $ZodExactOptionalDef<T>;
|
|
1237
|
-
output: output<T>;
|
|
1238
|
-
input: input<T>;
|
|
1239
|
-
}
|
|
1240
|
-
interface $ZodExactOptional<T extends SomeType = $ZodType> extends $ZodType {
|
|
1241
|
-
_zod: $ZodExactOptionalInternals<T>;
|
|
1242
|
-
}
|
|
1243
|
-
declare const $ZodExactOptional: $constructor<$ZodExactOptional>;
|
|
1244
|
-
interface $ZodNullableDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
1245
|
-
type: "nullable";
|
|
1246
|
-
innerType: T;
|
|
1247
|
-
}
|
|
1248
|
-
interface $ZodNullableInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output<T> | null, input<T> | null> {
|
|
1249
|
-
def: $ZodNullableDef<T>;
|
|
1250
|
-
optin: T["_zod"]["optin"];
|
|
1251
|
-
optout: T["_zod"]["optout"];
|
|
1252
|
-
isst: never;
|
|
1253
|
-
values: T["_zod"]["values"];
|
|
1254
|
-
pattern: T["_zod"]["pattern"];
|
|
1255
|
-
}
|
|
1256
|
-
interface $ZodNullable<T extends SomeType = $ZodType> extends $ZodType {
|
|
1257
|
-
_zod: $ZodNullableInternals<T>;
|
|
1258
|
-
}
|
|
1259
|
-
declare const $ZodNullable: $constructor<$ZodNullable>;
|
|
1260
|
-
interface $ZodDefaultDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
1261
|
-
type: "default";
|
|
1262
|
-
innerType: T;
|
|
1263
|
-
/** The default value. May be a getter. */
|
|
1264
|
-
defaultValue: NoUndefined<output<T>>;
|
|
1265
|
-
}
|
|
1266
|
-
interface $ZodDefaultInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T>>, input<T> | undefined> {
|
|
1267
|
-
def: $ZodDefaultDef<T>;
|
|
1268
|
-
optin: "optional";
|
|
1269
|
-
optout?: "optional" | undefined;
|
|
1270
|
-
isst: never;
|
|
1271
|
-
values: T["_zod"]["values"];
|
|
1272
|
-
}
|
|
1273
|
-
interface $ZodDefault<T extends SomeType = $ZodType> extends $ZodType {
|
|
1274
|
-
_zod: $ZodDefaultInternals<T>;
|
|
1275
|
-
}
|
|
1276
|
-
declare const $ZodDefault: $constructor<$ZodDefault>;
|
|
1277
|
-
interface $ZodPrefaultDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
1278
|
-
type: "prefault";
|
|
1279
|
-
innerType: T;
|
|
1280
|
-
/** The default value. May be a getter. */
|
|
1281
|
-
defaultValue: input<T>;
|
|
1282
|
-
}
|
|
1283
|
-
interface $ZodPrefaultInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T>>, input<T> | undefined> {
|
|
1284
|
-
def: $ZodPrefaultDef<T>;
|
|
1285
|
-
optin: "optional";
|
|
1286
|
-
optout?: "optional" | undefined;
|
|
1287
|
-
isst: never;
|
|
1288
|
-
values: T["_zod"]["values"];
|
|
1289
|
-
}
|
|
1290
|
-
interface $ZodPrefault<T extends SomeType = $ZodType> extends $ZodType {
|
|
1291
|
-
_zod: $ZodPrefaultInternals<T>;
|
|
1292
|
-
}
|
|
1293
|
-
declare const $ZodPrefault: $constructor<$ZodPrefault>;
|
|
1294
|
-
interface $ZodNonOptionalDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
1295
|
-
type: "nonoptional";
|
|
1296
|
-
innerType: T;
|
|
1297
|
-
}
|
|
1298
|
-
interface $ZodNonOptionalInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<NoUndefined<output<T>>, NoUndefined<input<T>>> {
|
|
1299
|
-
def: $ZodNonOptionalDef<T>;
|
|
1300
|
-
isst: $ZodIssueInvalidType;
|
|
1301
|
-
values: T["_zod"]["values"];
|
|
1302
|
-
optin: "optional" | undefined;
|
|
1303
|
-
optout: "optional" | undefined;
|
|
1304
|
-
}
|
|
1305
|
-
interface $ZodNonOptional<T extends SomeType = $ZodType> extends $ZodType {
|
|
1306
|
-
_zod: $ZodNonOptionalInternals<T>;
|
|
1307
|
-
}
|
|
1308
|
-
declare const $ZodNonOptional: $constructor<$ZodNonOptional>;
|
|
1309
|
-
interface $ZodSuccessDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
1310
|
-
type: "success";
|
|
1311
|
-
innerType: T;
|
|
1312
|
-
}
|
|
1313
|
-
interface $ZodSuccessInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<boolean, input<T>> {
|
|
1314
|
-
def: $ZodSuccessDef<T>;
|
|
1315
|
-
isst: never;
|
|
1316
|
-
optin: T["_zod"]["optin"];
|
|
1317
|
-
optout: "optional" | undefined;
|
|
1318
|
-
}
|
|
1319
|
-
interface $ZodSuccess<T extends SomeType = $ZodType> extends $ZodType {
|
|
1320
|
-
_zod: $ZodSuccessInternals<T>;
|
|
1321
|
-
}
|
|
1322
|
-
declare const $ZodSuccess: $constructor<$ZodSuccess>;
|
|
1323
|
-
interface $ZodCatchCtx extends ParsePayload {
|
|
1324
|
-
/** @deprecated Use `ctx.issues` */
|
|
1325
|
-
error: {
|
|
1326
|
-
issues: $ZodIssue[];
|
|
1327
|
-
};
|
|
1328
|
-
/** @deprecated Use `ctx.value` */
|
|
1329
|
-
input: unknown;
|
|
1330
|
-
}
|
|
1331
|
-
interface $ZodCatchDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
1332
|
-
type: "catch";
|
|
1333
|
-
innerType: T;
|
|
1334
|
-
catchValue: (ctx: $ZodCatchCtx) => unknown;
|
|
1335
|
-
}
|
|
1336
|
-
interface $ZodCatchInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output<T>, input<T>> {
|
|
1337
|
-
def: $ZodCatchDef<T>;
|
|
1338
|
-
optin: T["_zod"]["optin"];
|
|
1339
|
-
optout: T["_zod"]["optout"];
|
|
1340
|
-
isst: never;
|
|
1341
|
-
values: T["_zod"]["values"];
|
|
1342
|
-
}
|
|
1343
|
-
interface $ZodCatch<T extends SomeType = $ZodType> extends $ZodType {
|
|
1344
|
-
_zod: $ZodCatchInternals<T>;
|
|
1345
|
-
}
|
|
1346
|
-
declare const $ZodCatch: $constructor<$ZodCatch>;
|
|
1347
|
-
interface $ZodNaNDef extends $ZodTypeDef {
|
|
1348
|
-
type: "nan";
|
|
1349
|
-
}
|
|
1350
|
-
interface $ZodNaNInternals extends $ZodTypeInternals<number, number> {
|
|
1351
|
-
def: $ZodNaNDef;
|
|
1352
|
-
isst: $ZodIssueInvalidType;
|
|
1353
|
-
}
|
|
1354
|
-
interface $ZodNaN extends $ZodType {
|
|
1355
|
-
_zod: $ZodNaNInternals;
|
|
1356
|
-
}
|
|
1357
|
-
declare const $ZodNaN: $constructor<$ZodNaN>;
|
|
1358
|
-
interface $ZodPipeDef<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
1359
|
-
type: "pipe";
|
|
1360
|
-
in: A;
|
|
1361
|
-
out: B;
|
|
1362
|
-
/** Only defined inside $ZodCodec instances. */
|
|
1363
|
-
transform?: (value: output<A>, payload: ParsePayload<output<A>>) => MaybeAsync<input<B>>;
|
|
1364
|
-
/** Only defined inside $ZodCodec instances. */
|
|
1365
|
-
reverseTransform?: (value: input<B>, payload: ParsePayload<input<B>>) => MaybeAsync<output<A>>;
|
|
1366
|
-
}
|
|
1367
|
-
interface $ZodPipeInternals<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodTypeInternals<output<B>, input<A>> {
|
|
1368
|
-
def: $ZodPipeDef<A, B>;
|
|
1369
|
-
isst: never;
|
|
1370
|
-
values: A["_zod"]["values"];
|
|
1371
|
-
optin: A["_zod"]["optin"];
|
|
1372
|
-
optout: B["_zod"]["optout"];
|
|
1373
|
-
propValues: A["_zod"]["propValues"];
|
|
1374
|
-
}
|
|
1375
|
-
interface $ZodPipe<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends $ZodType {
|
|
1376
|
-
_zod: $ZodPipeInternals<A, B>;
|
|
1377
|
-
}
|
|
1378
|
-
declare const $ZodPipe: $constructor<$ZodPipe>;
|
|
1379
|
-
interface $ZodReadonlyDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
1380
|
-
type: "readonly";
|
|
1381
|
-
innerType: T;
|
|
1382
|
-
}
|
|
1383
|
-
interface $ZodReadonlyInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<MakeReadonly<output<T>>, MakeReadonly<input<T>>> {
|
|
1384
|
-
def: $ZodReadonlyDef<T>;
|
|
1385
|
-
optin: T["_zod"]["optin"];
|
|
1386
|
-
optout: T["_zod"]["optout"];
|
|
1387
|
-
isst: never;
|
|
1388
|
-
propValues: T["_zod"]["propValues"];
|
|
1389
|
-
values: T["_zod"]["values"];
|
|
1390
|
-
}
|
|
1391
|
-
interface $ZodReadonly<T extends SomeType = $ZodType> extends $ZodType {
|
|
1392
|
-
_zod: $ZodReadonlyInternals<T>;
|
|
1393
|
-
}
|
|
1394
|
-
declare const $ZodReadonly: $constructor<$ZodReadonly>;
|
|
1395
|
-
interface $ZodTemplateLiteralDef extends $ZodTypeDef {
|
|
1396
|
-
type: "template_literal";
|
|
1397
|
-
parts: $ZodTemplateLiteralPart[];
|
|
1398
|
-
format?: string | undefined;
|
|
1399
|
-
}
|
|
1400
|
-
interface $ZodTemplateLiteralInternals<Template extends string = string> extends $ZodTypeInternals<Template, Template> {
|
|
1401
|
-
pattern: RegExp;
|
|
1402
|
-
def: $ZodTemplateLiteralDef;
|
|
1403
|
-
isst: $ZodIssueInvalidType;
|
|
1404
|
-
}
|
|
1405
|
-
interface $ZodTemplateLiteral<Template extends string = string> extends $ZodType {
|
|
1406
|
-
_zod: $ZodTemplateLiteralInternals<Template>;
|
|
1407
|
-
}
|
|
1408
|
-
type LiteralPart = Exclude<Literal, symbol>;
|
|
1409
|
-
interface SchemaPartInternals extends $ZodTypeInternals<LiteralPart, LiteralPart> {
|
|
1410
|
-
pattern: RegExp;
|
|
1411
|
-
}
|
|
1412
|
-
interface SchemaPart extends $ZodType {
|
|
1413
|
-
_zod: SchemaPartInternals;
|
|
1414
|
-
}
|
|
1415
|
-
type $ZodTemplateLiteralPart = LiteralPart | SchemaPart;
|
|
1416
|
-
declare const $ZodTemplateLiteral: $constructor<$ZodTemplateLiteral>;
|
|
1417
|
-
type $ZodFunctionArgs = $ZodType<unknown[], unknown[]>;
|
|
1418
|
-
type $ZodFunctionIn = $ZodFunctionArgs;
|
|
1419
|
-
type $ZodFunctionOut = $ZodType;
|
|
1420
|
-
type $InferInnerFunctionType<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : output<Args>) => input<Returns>;
|
|
1421
|
-
type $InferInnerFunctionTypeAsync<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : output<Args>) => MaybeAsync<input<Returns>>;
|
|
1422
|
-
type $InferOuterFunctionType<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : input<Args>) => output<Returns>;
|
|
1423
|
-
type $InferOuterFunctionTypeAsync<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> = (...args: $ZodFunctionIn extends Args ? never[] : input<Args>) => Promise<output<Returns>>;
|
|
1424
|
-
interface $ZodFunctionDef<In extends $ZodFunctionIn = $ZodFunctionIn, Out extends $ZodFunctionOut = $ZodFunctionOut> extends $ZodTypeDef {
|
|
1425
|
-
type: "function";
|
|
1426
|
-
input: In;
|
|
1427
|
-
output: Out;
|
|
1428
|
-
}
|
|
1429
|
-
interface $ZodFunctionInternals<Args extends $ZodFunctionIn, Returns extends $ZodFunctionOut> extends $ZodTypeInternals<$InferOuterFunctionType<Args, Returns>, $InferInnerFunctionType<Args, Returns>> {
|
|
1430
|
-
def: $ZodFunctionDef<Args, Returns>;
|
|
1431
|
-
isst: $ZodIssueInvalidType;
|
|
1432
|
-
}
|
|
1433
|
-
interface $ZodFunction<Args extends $ZodFunctionIn = $ZodFunctionIn, Returns extends $ZodFunctionOut = $ZodFunctionOut> extends $ZodType<any, any, $ZodFunctionInternals<Args, Returns>> {
|
|
1434
|
-
/** @deprecated */
|
|
1435
|
-
_def: $ZodFunctionDef<Args, Returns>;
|
|
1436
|
-
_input: $InferInnerFunctionType<Args, Returns>;
|
|
1437
|
-
_output: $InferOuterFunctionType<Args, Returns>;
|
|
1438
|
-
implement<F extends $InferInnerFunctionType<Args, Returns>>(func: F): (...args: Parameters<this["_output"]>) => ReturnType<F> extends ReturnType<this["_output"]> ? ReturnType<F> : ReturnType<this["_output"]>;
|
|
1439
|
-
implementAsync<F extends $InferInnerFunctionTypeAsync<Args, Returns>>(func: F): F extends $InferOuterFunctionTypeAsync<Args, Returns> ? F : $InferOuterFunctionTypeAsync<Args, Returns>;
|
|
1440
|
-
input<const Items extends TupleItems, const Rest extends $ZodFunctionOut = $ZodFunctionOut>(args: Items, rest?: Rest): $ZodFunction<$ZodTuple<Items, Rest>, Returns>;
|
|
1441
|
-
input<NewArgs extends $ZodFunctionIn>(args: NewArgs): $ZodFunction<NewArgs, Returns>;
|
|
1442
|
-
input(...args: any[]): $ZodFunction<any, Returns>;
|
|
1443
|
-
output<NewReturns extends $ZodType>(output: NewReturns): $ZodFunction<Args, NewReturns>;
|
|
1444
|
-
}
|
|
1445
|
-
declare const $ZodFunction: $constructor<$ZodFunction>;
|
|
1446
|
-
interface $ZodPromiseDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
1447
|
-
type: "promise";
|
|
1448
|
-
innerType: T;
|
|
1449
|
-
}
|
|
1450
|
-
interface $ZodPromiseInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<Promise<output<T>>, MaybeAsync<input<T>>> {
|
|
1451
|
-
def: $ZodPromiseDef<T>;
|
|
1452
|
-
isst: never;
|
|
1453
|
-
}
|
|
1454
|
-
interface $ZodPromise<T extends SomeType = $ZodType> extends $ZodType {
|
|
1455
|
-
_zod: $ZodPromiseInternals<T>;
|
|
1456
|
-
}
|
|
1457
|
-
declare const $ZodPromise: $constructor<$ZodPromise>;
|
|
1458
|
-
interface $ZodLazyDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
1459
|
-
type: "lazy";
|
|
1460
|
-
getter: () => T;
|
|
1461
|
-
}
|
|
1462
|
-
interface $ZodLazyInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output<T>, input<T>> {
|
|
1463
|
-
def: $ZodLazyDef<T>;
|
|
1464
|
-
isst: never;
|
|
1465
|
-
/** Auto-cached way to retrieve the inner schema */
|
|
1466
|
-
innerType: T;
|
|
1467
|
-
pattern: T["_zod"]["pattern"];
|
|
1468
|
-
propValues: T["_zod"]["propValues"];
|
|
1469
|
-
optin: T["_zod"]["optin"];
|
|
1470
|
-
optout: T["_zod"]["optout"];
|
|
1471
|
-
}
|
|
1472
|
-
interface $ZodLazy<T extends SomeType = $ZodType> extends $ZodType {
|
|
1473
|
-
_zod: $ZodLazyInternals<T>;
|
|
1474
|
-
}
|
|
1475
|
-
declare const $ZodLazy: $constructor<$ZodLazy>;
|
|
1476
|
-
interface $ZodCustomDef<O = unknown> extends $ZodTypeDef, $ZodCheckDef {
|
|
1477
|
-
type: "custom";
|
|
1478
|
-
check: "custom";
|
|
1479
|
-
path?: PropertyKey[] | undefined;
|
|
1480
|
-
error?: $ZodErrorMap | undefined;
|
|
1481
|
-
params?: Record<string, any> | undefined;
|
|
1482
|
-
fn: (arg: O) => unknown;
|
|
1483
|
-
}
|
|
1484
|
-
interface $ZodCustomInternals<O = unknown, I = unknown> extends $ZodTypeInternals<O, I>, $ZodCheckInternals<O> {
|
|
1485
|
-
def: $ZodCustomDef;
|
|
1486
|
-
issc: $ZodIssue;
|
|
1487
|
-
isst: never;
|
|
1488
|
-
bag: LoosePartial<{
|
|
1489
|
-
Class: typeof Class;
|
|
1490
|
-
}>;
|
|
1491
|
-
}
|
|
1492
|
-
interface $ZodCustom<O = unknown, I = unknown> extends $ZodType {
|
|
1493
|
-
_zod: $ZodCustomInternals<O, I>;
|
|
1494
|
-
}
|
|
1495
|
-
declare const $ZodCustom: $constructor<$ZodCustom>;
|
|
1496
|
-
type $ZodTypes = $ZodString | $ZodNumber | $ZodBigInt | $ZodBoolean | $ZodDate | $ZodSymbol | $ZodUndefined | $ZodNullable | $ZodNull | $ZodAny | $ZodUnknown | $ZodNever | $ZodVoid | $ZodArray | $ZodObject | $ZodUnion | $ZodIntersection | $ZodTuple | $ZodRecord | $ZodMap | $ZodSet | $ZodLiteral | $ZodEnum | $ZodFunction | $ZodPromise | $ZodLazy | $ZodOptional | $ZodDefault | $ZodPrefault | $ZodTemplateLiteral | $ZodCustom | $ZodTransform | $ZodNonOptional | $ZodReadonly | $ZodNaN | $ZodPipe | $ZodSuccess | $ZodCatch | $ZodFile;
|
|
1497
|
-
//#endregion
|
|
1498
|
-
//#region ../../node_modules/zod/v4/core/checks.d.cts
|
|
1499
|
-
interface $ZodCheckDef {
|
|
1500
|
-
check: string;
|
|
1501
|
-
error?: $ZodErrorMap<never> | undefined;
|
|
1502
|
-
/** If true, no later checks will be executed if this check fails. Default `false`. */
|
|
1503
|
-
abort?: boolean | undefined;
|
|
1504
|
-
/** If provided, this check will only be executed if the function returns `true`. Defaults to `payload => z.util.isAborted(payload)`. */
|
|
1505
|
-
when?: ((payload: ParsePayload) => boolean) | undefined;
|
|
1506
|
-
}
|
|
1507
|
-
interface $ZodCheckInternals<T> {
|
|
1508
|
-
def: $ZodCheckDef;
|
|
1509
|
-
/** The set of issues this check might throw. */
|
|
1510
|
-
issc?: $ZodIssueBase;
|
|
1511
|
-
check(payload: ParsePayload<T>): MaybeAsync<void>;
|
|
1512
|
-
onattach: ((schema: $ZodType) => void)[];
|
|
1513
|
-
}
|
|
1514
|
-
interface $ZodCheck<in T = never> {
|
|
1515
|
-
_zod: $ZodCheckInternals<T>;
|
|
1516
|
-
}
|
|
1517
|
-
declare const $ZodCheck: $constructor<$ZodCheck<any>>;
|
|
1518
|
-
interface $ZodCheckLessThanDef extends $ZodCheckDef {
|
|
1519
|
-
check: "less_than";
|
|
1520
|
-
value: Numeric;
|
|
1521
|
-
inclusive: boolean;
|
|
1522
|
-
}
|
|
1523
|
-
interface $ZodCheckLessThanInternals<T extends Numeric = Numeric> extends $ZodCheckInternals<T> {
|
|
1524
|
-
def: $ZodCheckLessThanDef;
|
|
1525
|
-
issc: $ZodIssueTooBig<T>;
|
|
1526
|
-
}
|
|
1527
|
-
interface $ZodCheckLessThan<T extends Numeric = Numeric> extends $ZodCheck<T> {
|
|
1528
|
-
_zod: $ZodCheckLessThanInternals<T>;
|
|
1529
|
-
}
|
|
1530
|
-
declare const $ZodCheckLessThan: $constructor<$ZodCheckLessThan>;
|
|
1531
|
-
interface $ZodCheckGreaterThanDef extends $ZodCheckDef {
|
|
1532
|
-
check: "greater_than";
|
|
1533
|
-
value: Numeric;
|
|
1534
|
-
inclusive: boolean;
|
|
1535
|
-
}
|
|
1536
|
-
interface $ZodCheckGreaterThanInternals<T extends Numeric = Numeric> extends $ZodCheckInternals<T> {
|
|
1537
|
-
def: $ZodCheckGreaterThanDef;
|
|
1538
|
-
issc: $ZodIssueTooSmall<T>;
|
|
1539
|
-
}
|
|
1540
|
-
interface $ZodCheckGreaterThan<T extends Numeric = Numeric> extends $ZodCheck<T> {
|
|
1541
|
-
_zod: $ZodCheckGreaterThanInternals<T>;
|
|
1542
|
-
}
|
|
1543
|
-
declare const $ZodCheckGreaterThan: $constructor<$ZodCheckGreaterThan>;
|
|
1544
|
-
interface $ZodCheckMultipleOfDef<T extends number | bigint = number | bigint> extends $ZodCheckDef {
|
|
1545
|
-
check: "multiple_of";
|
|
1546
|
-
value: T;
|
|
1547
|
-
}
|
|
1548
|
-
interface $ZodCheckMultipleOfInternals<T extends number | bigint = number | bigint> extends $ZodCheckInternals<T> {
|
|
1549
|
-
def: $ZodCheckMultipleOfDef<T>;
|
|
1550
|
-
issc: $ZodIssueNotMultipleOf;
|
|
1551
|
-
}
|
|
1552
|
-
interface $ZodCheckMultipleOf<T extends number | bigint = number | bigint> extends $ZodCheck<T> {
|
|
1553
|
-
_zod: $ZodCheckMultipleOfInternals<T>;
|
|
1554
|
-
}
|
|
1555
|
-
declare const $ZodCheckMultipleOf: $constructor<$ZodCheckMultipleOf<number | bigint>>;
|
|
1556
|
-
type $ZodNumberFormats = "int32" | "uint32" | "float32" | "float64" | "safeint";
|
|
1557
|
-
interface $ZodCheckNumberFormatDef extends $ZodCheckDef {
|
|
1558
|
-
check: "number_format";
|
|
1559
|
-
format: $ZodNumberFormats;
|
|
1560
|
-
}
|
|
1561
|
-
interface $ZodCheckNumberFormatInternals extends $ZodCheckInternals<number> {
|
|
1562
|
-
def: $ZodCheckNumberFormatDef;
|
|
1563
|
-
issc: $ZodIssueInvalidType | $ZodIssueTooBig<"number"> | $ZodIssueTooSmall<"number">;
|
|
1564
|
-
}
|
|
1565
|
-
interface $ZodCheckNumberFormat extends $ZodCheck<number> {
|
|
1566
|
-
_zod: $ZodCheckNumberFormatInternals;
|
|
1567
|
-
}
|
|
1568
|
-
declare const $ZodCheckNumberFormat: $constructor<$ZodCheckNumberFormat>;
|
|
1569
|
-
interface $ZodCheckMaxLengthDef extends $ZodCheckDef {
|
|
1570
|
-
check: "max_length";
|
|
1571
|
-
maximum: number;
|
|
1572
|
-
}
|
|
1573
|
-
interface $ZodCheckMaxLengthInternals<T extends HasLength = HasLength> extends $ZodCheckInternals<T> {
|
|
1574
|
-
def: $ZodCheckMaxLengthDef;
|
|
1575
|
-
issc: $ZodIssueTooBig<T>;
|
|
1576
|
-
}
|
|
1577
|
-
interface $ZodCheckMaxLength<T extends HasLength = HasLength> extends $ZodCheck<T> {
|
|
1578
|
-
_zod: $ZodCheckMaxLengthInternals<T>;
|
|
1579
|
-
}
|
|
1580
|
-
declare const $ZodCheckMaxLength: $constructor<$ZodCheckMaxLength>;
|
|
1581
|
-
interface $ZodCheckMinLengthDef extends $ZodCheckDef {
|
|
1582
|
-
check: "min_length";
|
|
1583
|
-
minimum: number;
|
|
1584
|
-
}
|
|
1585
|
-
interface $ZodCheckMinLengthInternals<T extends HasLength = HasLength> extends $ZodCheckInternals<T> {
|
|
1586
|
-
def: $ZodCheckMinLengthDef;
|
|
1587
|
-
issc: $ZodIssueTooSmall<T>;
|
|
1588
|
-
}
|
|
1589
|
-
interface $ZodCheckMinLength<T extends HasLength = HasLength> extends $ZodCheck<T> {
|
|
1590
|
-
_zod: $ZodCheckMinLengthInternals<T>;
|
|
1591
|
-
}
|
|
1592
|
-
declare const $ZodCheckMinLength: $constructor<$ZodCheckMinLength>;
|
|
1593
|
-
interface $ZodCheckLengthEqualsDef extends $ZodCheckDef {
|
|
1594
|
-
check: "length_equals";
|
|
1595
|
-
length: number;
|
|
1596
|
-
}
|
|
1597
|
-
interface $ZodCheckLengthEqualsInternals<T extends HasLength = HasLength> extends $ZodCheckInternals<T> {
|
|
1598
|
-
def: $ZodCheckLengthEqualsDef;
|
|
1599
|
-
issc: $ZodIssueTooBig<T> | $ZodIssueTooSmall<T>;
|
|
1600
|
-
}
|
|
1601
|
-
interface $ZodCheckLengthEquals<T extends HasLength = HasLength> extends $ZodCheck<T> {
|
|
1602
|
-
_zod: $ZodCheckLengthEqualsInternals<T>;
|
|
1603
|
-
}
|
|
1604
|
-
declare const $ZodCheckLengthEquals: $constructor<$ZodCheckLengthEquals>;
|
|
1605
|
-
type $ZodStringFormats = "email" | "url" | "emoji" | "uuid" | "guid" | "nanoid" | "cuid" | "cuid2" | "ulid" | "xid" | "ksuid" | "datetime" | "date" | "time" | "duration" | "ipv4" | "ipv6" | "cidrv4" | "cidrv6" | "base64" | "base64url" | "json_string" | "e164" | "lowercase" | "uppercase" | "regex" | "jwt" | "starts_with" | "ends_with" | "includes";
|
|
1606
|
-
interface $ZodCheckStringFormatDef<Format extends string = string> extends $ZodCheckDef {
|
|
1607
|
-
check: "string_format";
|
|
1608
|
-
format: Format;
|
|
1609
|
-
pattern?: RegExp | undefined;
|
|
1610
|
-
}
|
|
1611
|
-
interface $ZodCheckStringFormatInternals extends $ZodCheckInternals<string> {
|
|
1612
|
-
def: $ZodCheckStringFormatDef;
|
|
1613
|
-
issc: $ZodIssueInvalidStringFormat;
|
|
1614
|
-
}
|
|
1615
|
-
interface $ZodCheckRegexDef extends $ZodCheckStringFormatDef {
|
|
1616
|
-
format: "regex";
|
|
1617
|
-
pattern: RegExp;
|
|
1618
|
-
}
|
|
1619
|
-
interface $ZodCheckRegexInternals extends $ZodCheckInternals<string> {
|
|
1620
|
-
def: $ZodCheckRegexDef;
|
|
1621
|
-
issc: $ZodIssueInvalidStringFormat;
|
|
1622
|
-
}
|
|
1623
|
-
interface $ZodCheckRegex extends $ZodCheck<string> {
|
|
1624
|
-
_zod: $ZodCheckRegexInternals;
|
|
1625
|
-
}
|
|
1626
|
-
declare const $ZodCheckRegex: $constructor<$ZodCheckRegex>;
|
|
1627
|
-
interface $ZodCheckLowerCaseDef extends $ZodCheckStringFormatDef<"lowercase"> {}
|
|
1628
|
-
interface $ZodCheckLowerCaseInternals extends $ZodCheckInternals<string> {
|
|
1629
|
-
def: $ZodCheckLowerCaseDef;
|
|
1630
|
-
issc: $ZodIssueInvalidStringFormat;
|
|
1631
|
-
}
|
|
1632
|
-
interface $ZodCheckLowerCase extends $ZodCheck<string> {
|
|
1633
|
-
_zod: $ZodCheckLowerCaseInternals;
|
|
1634
|
-
}
|
|
1635
|
-
declare const $ZodCheckLowerCase: $constructor<$ZodCheckLowerCase>;
|
|
1636
|
-
interface $ZodCheckUpperCaseDef extends $ZodCheckStringFormatDef<"uppercase"> {}
|
|
1637
|
-
interface $ZodCheckUpperCaseInternals extends $ZodCheckInternals<string> {
|
|
1638
|
-
def: $ZodCheckUpperCaseDef;
|
|
1639
|
-
issc: $ZodIssueInvalidStringFormat;
|
|
1640
|
-
}
|
|
1641
|
-
interface $ZodCheckUpperCase extends $ZodCheck<string> {
|
|
1642
|
-
_zod: $ZodCheckUpperCaseInternals;
|
|
1643
|
-
}
|
|
1644
|
-
declare const $ZodCheckUpperCase: $constructor<$ZodCheckUpperCase>;
|
|
1645
|
-
interface $ZodCheckIncludesDef extends $ZodCheckStringFormatDef<"includes"> {
|
|
1646
|
-
includes: string;
|
|
1647
|
-
position?: number | undefined;
|
|
1648
|
-
}
|
|
1649
|
-
interface $ZodCheckIncludesInternals extends $ZodCheckInternals<string> {
|
|
1650
|
-
def: $ZodCheckIncludesDef;
|
|
1651
|
-
issc: $ZodIssueInvalidStringFormat;
|
|
1652
|
-
}
|
|
1653
|
-
interface $ZodCheckIncludes extends $ZodCheck<string> {
|
|
1654
|
-
_zod: $ZodCheckIncludesInternals;
|
|
1655
|
-
}
|
|
1656
|
-
declare const $ZodCheckIncludes: $constructor<$ZodCheckIncludes>;
|
|
1657
|
-
interface $ZodCheckStartsWithDef extends $ZodCheckStringFormatDef<"starts_with"> {
|
|
1658
|
-
prefix: string;
|
|
1659
|
-
}
|
|
1660
|
-
interface $ZodCheckStartsWithInternals extends $ZodCheckInternals<string> {
|
|
1661
|
-
def: $ZodCheckStartsWithDef;
|
|
1662
|
-
issc: $ZodIssueInvalidStringFormat;
|
|
1663
|
-
}
|
|
1664
|
-
interface $ZodCheckStartsWith extends $ZodCheck<string> {
|
|
1665
|
-
_zod: $ZodCheckStartsWithInternals;
|
|
1666
|
-
}
|
|
1667
|
-
declare const $ZodCheckStartsWith: $constructor<$ZodCheckStartsWith>;
|
|
1668
|
-
interface $ZodCheckEndsWithDef extends $ZodCheckStringFormatDef<"ends_with"> {
|
|
1669
|
-
suffix: string;
|
|
1670
|
-
}
|
|
1671
|
-
interface $ZodCheckEndsWithInternals extends $ZodCheckInternals<string> {
|
|
1672
|
-
def: $ZodCheckEndsWithDef;
|
|
1673
|
-
issc: $ZodIssueInvalidStringFormat;
|
|
1674
|
-
}
|
|
1675
|
-
interface $ZodCheckEndsWith extends $ZodCheckInternals<string> {
|
|
1676
|
-
_zod: $ZodCheckEndsWithInternals;
|
|
1677
|
-
}
|
|
1678
|
-
declare const $ZodCheckEndsWith: $constructor<$ZodCheckEndsWith>;
|
|
1679
|
-
//#endregion
|
|
1680
|
-
//#region ../../node_modules/zod/v4/core/errors.d.cts
|
|
1681
|
-
interface $ZodIssueBase {
|
|
1682
|
-
readonly code?: string;
|
|
1683
|
-
readonly input?: unknown;
|
|
1684
|
-
readonly path: PropertyKey[];
|
|
1685
|
-
readonly message: string;
|
|
1686
|
-
}
|
|
1687
|
-
type $ZodInvalidTypeExpected = "string" | "number" | "int" | "boolean" | "bigint" | "symbol" | "undefined" | "null" | "never" | "void" | "date" | "array" | "object" | "tuple" | "record" | "map" | "set" | "file" | "nonoptional" | "nan" | "function" | (string & {});
|
|
1688
|
-
interface $ZodIssueInvalidType<Input = unknown> extends $ZodIssueBase {
|
|
1689
|
-
readonly code: "invalid_type";
|
|
1690
|
-
readonly expected: $ZodInvalidTypeExpected;
|
|
1691
|
-
readonly input?: Input;
|
|
1692
|
-
}
|
|
1693
|
-
interface $ZodIssueTooBig<Input = unknown> extends $ZodIssueBase {
|
|
1694
|
-
readonly code: "too_big";
|
|
1695
|
-
readonly origin: "number" | "int" | "bigint" | "date" | "string" | "array" | "set" | "file" | (string & {});
|
|
1696
|
-
readonly maximum: number | bigint;
|
|
1697
|
-
readonly inclusive?: boolean;
|
|
1698
|
-
readonly exact?: boolean;
|
|
1699
|
-
readonly input?: Input;
|
|
1700
|
-
}
|
|
1701
|
-
interface $ZodIssueTooSmall<Input = unknown> extends $ZodIssueBase {
|
|
1702
|
-
readonly code: "too_small";
|
|
1703
|
-
readonly origin: "number" | "int" | "bigint" | "date" | "string" | "array" | "set" | "file" | (string & {});
|
|
1704
|
-
readonly minimum: number | bigint;
|
|
1705
|
-
/** True if the allowable range includes the minimum */
|
|
1706
|
-
readonly inclusive?: boolean;
|
|
1707
|
-
/** True if the allowed value is fixed (e.g.` z.length(5)`), not a range (`z.minLength(5)`) */
|
|
1708
|
-
readonly exact?: boolean;
|
|
1709
|
-
readonly input?: Input;
|
|
1710
|
-
}
|
|
1711
|
-
interface $ZodIssueInvalidStringFormat extends $ZodIssueBase {
|
|
1712
|
-
readonly code: "invalid_format";
|
|
1713
|
-
readonly format: $ZodStringFormats | (string & {});
|
|
1714
|
-
readonly pattern?: string;
|
|
1715
|
-
readonly input?: string;
|
|
1716
|
-
}
|
|
1717
|
-
interface $ZodIssueNotMultipleOf<Input extends number | bigint = number | bigint> extends $ZodIssueBase {
|
|
1718
|
-
readonly code: "not_multiple_of";
|
|
1719
|
-
readonly divisor: number;
|
|
1720
|
-
readonly input?: Input;
|
|
1721
|
-
}
|
|
1722
|
-
interface $ZodIssueUnrecognizedKeys extends $ZodIssueBase {
|
|
1723
|
-
readonly code: "unrecognized_keys";
|
|
1724
|
-
readonly keys: string[];
|
|
1725
|
-
readonly input?: Record<string, unknown>;
|
|
1726
|
-
}
|
|
1727
|
-
interface $ZodIssueInvalidUnionNoMatch extends $ZodIssueBase {
|
|
1728
|
-
readonly code: "invalid_union";
|
|
1729
|
-
readonly errors: $ZodIssue[][];
|
|
1730
|
-
readonly input?: unknown;
|
|
1731
|
-
readonly discriminator?: string | undefined;
|
|
1732
|
-
readonly inclusive?: true;
|
|
1733
|
-
}
|
|
1734
|
-
interface $ZodIssueInvalidUnionMultipleMatch extends $ZodIssueBase {
|
|
1735
|
-
readonly code: "invalid_union";
|
|
1736
|
-
readonly errors: [];
|
|
1737
|
-
readonly input?: unknown;
|
|
1738
|
-
readonly discriminator?: string | undefined;
|
|
1739
|
-
readonly inclusive: false;
|
|
1740
|
-
}
|
|
1741
|
-
type $ZodIssueInvalidUnion = $ZodIssueInvalidUnionNoMatch | $ZodIssueInvalidUnionMultipleMatch;
|
|
1742
|
-
interface $ZodIssueInvalidKey<Input = unknown> extends $ZodIssueBase {
|
|
1743
|
-
readonly code: "invalid_key";
|
|
1744
|
-
readonly origin: "map" | "record";
|
|
1745
|
-
readonly issues: $ZodIssue[];
|
|
1746
|
-
readonly input?: Input;
|
|
1747
|
-
}
|
|
1748
|
-
interface $ZodIssueInvalidElement<Input = unknown> extends $ZodIssueBase {
|
|
1749
|
-
readonly code: "invalid_element";
|
|
1750
|
-
readonly origin: "map" | "set";
|
|
1751
|
-
readonly key: unknown;
|
|
1752
|
-
readonly issues: $ZodIssue[];
|
|
1753
|
-
readonly input?: Input;
|
|
1754
|
-
}
|
|
1755
|
-
interface $ZodIssueInvalidValue<Input = unknown> extends $ZodIssueBase {
|
|
1756
|
-
readonly code: "invalid_value";
|
|
1757
|
-
readonly values: Primitive[];
|
|
1758
|
-
readonly input?: Input;
|
|
1759
|
-
}
|
|
1760
|
-
interface $ZodIssueCustom extends $ZodIssueBase {
|
|
1761
|
-
readonly code: "custom";
|
|
1762
|
-
readonly params?: Record<string, any> | undefined;
|
|
1763
|
-
readonly input?: unknown;
|
|
1764
|
-
}
|
|
1765
|
-
type $ZodIssue = $ZodIssueInvalidType | $ZodIssueTooBig | $ZodIssueTooSmall | $ZodIssueInvalidStringFormat | $ZodIssueNotMultipleOf | $ZodIssueUnrecognizedKeys | $ZodIssueInvalidUnion | $ZodIssueInvalidKey | $ZodIssueInvalidElement | $ZodIssueInvalidValue | $ZodIssueCustom;
|
|
1766
|
-
type $ZodInternalIssue<T extends $ZodIssueBase = $ZodIssue> = T extends any ? RawIssue$1<T> : never;
|
|
1767
|
-
type RawIssue$1<T extends $ZodIssueBase> = T extends any ? Flatten<MakePartial<T, "message" | "path"> & {
|
|
1768
|
-
/** The input data */readonly input: unknown; /** The schema or check that originated this issue. */
|
|
1769
|
-
readonly inst?: $ZodType | $ZodCheck; /** If `true`, Zod will continue executing checks/refinements after this issue. */
|
|
1770
|
-
readonly continue?: boolean | undefined;
|
|
1771
|
-
} & Record<string, unknown>> : never;
|
|
1772
|
-
type $ZodRawIssue<T extends $ZodIssueBase = $ZodIssue> = $ZodInternalIssue<T>;
|
|
1773
|
-
interface $ZodErrorMap<T extends $ZodIssueBase = $ZodIssue> {
|
|
1774
|
-
(issue: $ZodRawIssue<T>): {
|
|
1775
|
-
message: string;
|
|
1776
|
-
} | string | undefined | null;
|
|
1777
|
-
}
|
|
1778
|
-
interface $ZodError<T = unknown> extends Error {
|
|
1779
|
-
type: T;
|
|
1780
|
-
issues: $ZodIssue[];
|
|
1781
|
-
_zod: {
|
|
1782
|
-
output: T;
|
|
1783
|
-
def: $ZodIssue[];
|
|
1784
|
-
};
|
|
1785
|
-
stack?: string;
|
|
1786
|
-
name: string;
|
|
1787
|
-
}
|
|
1788
|
-
declare const $ZodError: $constructor<$ZodError>;
|
|
1789
|
-
type $ZodFlattenedError<T, U = string> = _FlattenedError<T, U>;
|
|
1790
|
-
type _FlattenedError<T, U = string> = {
|
|
1791
|
-
formErrors: U[];
|
|
1792
|
-
fieldErrors: { [P in keyof T]?: U[] };
|
|
1793
|
-
};
|
|
1794
|
-
type _ZodFormattedError<T, U = string> = T extends [any, ...any[]] ? { [K in keyof T]?: $ZodFormattedError<T[K], U> } : T extends any[] ? {
|
|
1795
|
-
[k: number]: $ZodFormattedError<T[number], U>;
|
|
1796
|
-
} : T extends object ? Flatten<{ [K in keyof T]?: $ZodFormattedError<T[K], U> }> : any;
|
|
1797
|
-
type $ZodFormattedError<T, U = string> = {
|
|
1798
|
-
_errors: U[];
|
|
1799
|
-
} & Flatten<_ZodFormattedError<T, U>>;
|
|
1800
|
-
//#endregion
|
|
1801
|
-
//#region ../../node_modules/zod/v4/core/core.d.cts
|
|
1802
|
-
type ZodTrait = {
|
|
1803
|
-
_zod: {
|
|
1804
|
-
def: any;
|
|
1805
|
-
[k: string]: any;
|
|
1806
|
-
};
|
|
1807
|
-
};
|
|
1808
|
-
interface $constructor<T extends ZodTrait, D = T["_zod"]["def"]> {
|
|
1809
|
-
new (def: D): T;
|
|
1810
|
-
init(inst: T, def: D): asserts inst is T;
|
|
1811
|
-
}
|
|
1812
|
-
declare function $constructor<T extends ZodTrait, D = T["_zod"]["def"]>(name: string, initializer: (inst: T, def: D) => void, params?: {
|
|
1813
|
-
Parent?: typeof Class;
|
|
1814
|
-
}): $constructor<T, D>;
|
|
1815
|
-
declare const $brand: unique symbol;
|
|
1816
|
-
type $brand<T extends string | number | symbol = string | number | symbol> = {
|
|
1817
|
-
[$brand]: { [k in T]: true };
|
|
1818
|
-
};
|
|
1819
|
-
type $ZodBranded<T extends SomeType, Brand extends string | number | symbol, Dir extends "in" | "out" | "inout" = "out"> = T & (Dir extends "inout" ? {
|
|
1820
|
-
_zod: {
|
|
1821
|
-
input: input<T> & $brand<Brand>;
|
|
1822
|
-
output: output<T> & $brand<Brand>;
|
|
1823
|
-
};
|
|
1824
|
-
} : Dir extends "in" ? {
|
|
1825
|
-
_zod: {
|
|
1826
|
-
input: input<T> & $brand<Brand>;
|
|
1827
|
-
};
|
|
1828
|
-
} : {
|
|
1829
|
-
_zod: {
|
|
1830
|
-
output: output<T> & $brand<Brand>;
|
|
1831
|
-
};
|
|
1832
|
-
});
|
|
1833
|
-
type input<T> = T extends {
|
|
1834
|
-
_zod: {
|
|
1835
|
-
input: any;
|
|
1836
|
-
};
|
|
1837
|
-
} ? T["_zod"]["input"] : unknown;
|
|
1838
|
-
type output<T> = T extends {
|
|
1839
|
-
_zod: {
|
|
1840
|
-
output: any;
|
|
1841
|
-
};
|
|
1842
|
-
} ? T["_zod"]["output"] : unknown;
|
|
1843
|
-
//#endregion
|
|
1844
|
-
//#region ../../node_modules/zod/v4/core/api.d.cts
|
|
1845
|
-
type Params<T extends $ZodType | $ZodCheck, IssueTypes extends $ZodIssueBase, OmitKeys extends keyof T["_zod"]["def"] = never> = Flatten<Partial<EmptyToNever<Omit<T["_zod"]["def"], OmitKeys> & ([IssueTypes] extends [never] ? {} : {
|
|
1846
|
-
error?: string | $ZodErrorMap<IssueTypes> | undefined; /** @deprecated This parameter is deprecated. Use `error` instead. */
|
|
1847
|
-
message?: string | undefined;
|
|
1848
|
-
})>>>;
|
|
1849
|
-
type TypeParams<T extends $ZodType = $ZodType & {
|
|
1850
|
-
_isst: never;
|
|
1851
|
-
}, AlsoOmit extends Exclude<keyof T["_zod"]["def"], "type" | "checks" | "error"> = never> = Params<T, NonNullable<T["_zod"]["isst"]>, "type" | "checks" | "error" | AlsoOmit>;
|
|
1852
|
-
type CheckParams<T extends $ZodCheck = $ZodCheck, // & { _issc: never },
|
|
1853
|
-
AlsoOmit extends Exclude<keyof T["_zod"]["def"], "check" | "error"> = never> = Params<T, NonNullable<T["_zod"]["issc"]>, "check" | "error" | AlsoOmit>;
|
|
1854
|
-
type CheckStringFormatParams<T extends $ZodStringFormat = $ZodStringFormat, AlsoOmit extends Exclude<keyof T["_zod"]["def"], "type" | "coerce" | "checks" | "error" | "check" | "format"> = never> = Params<T, NonNullable<T["_zod"]["issc"]>, "type" | "coerce" | "checks" | "error" | "check" | "format" | AlsoOmit>;
|
|
1855
|
-
type CheckTypeParams<T extends $ZodType & $ZodCheck = $ZodType & $ZodCheck, AlsoOmit extends Exclude<keyof T["_zod"]["def"], "type" | "checks" | "error" | "check"> = never> = Params<T, NonNullable<T["_zod"]["isst"] | T["_zod"]["issc"]>, "type" | "checks" | "error" | "check" | AlsoOmit>;
|
|
1856
|
-
type $ZodCheckEmailParams = CheckStringFormatParams<$ZodEmail, "when">;
|
|
1857
|
-
type $ZodCheckGUIDParams = CheckStringFormatParams<$ZodGUID, "pattern" | "when">;
|
|
1858
|
-
type $ZodCheckUUIDParams = CheckStringFormatParams<$ZodUUID, "pattern" | "when">;
|
|
1859
|
-
type $ZodCheckURLParams = CheckStringFormatParams<$ZodURL, "when">;
|
|
1860
|
-
type $ZodCheckEmojiParams = CheckStringFormatParams<$ZodEmoji, "when">;
|
|
1861
|
-
type $ZodCheckNanoIDParams = CheckStringFormatParams<$ZodNanoID, "when">;
|
|
1862
|
-
type $ZodCheckCUIDParams = CheckStringFormatParams<$ZodCUID, "when">;
|
|
1863
|
-
type $ZodCheckCUID2Params = CheckStringFormatParams<$ZodCUID2, "when">;
|
|
1864
|
-
type $ZodCheckULIDParams = CheckStringFormatParams<$ZodULID, "when">;
|
|
1865
|
-
type $ZodCheckXIDParams = CheckStringFormatParams<$ZodXID, "when">;
|
|
1866
|
-
type $ZodCheckKSUIDParams = CheckStringFormatParams<$ZodKSUID, "when">;
|
|
1867
|
-
type $ZodCheckIPv4Params = CheckStringFormatParams<$ZodIPv4, "pattern" | "when" | "version">;
|
|
1868
|
-
type $ZodCheckIPv6Params = CheckStringFormatParams<$ZodIPv6, "pattern" | "when" | "version">;
|
|
1869
|
-
type $ZodCheckCIDRv4Params = CheckStringFormatParams<$ZodCIDRv4, "pattern" | "when">;
|
|
1870
|
-
type $ZodCheckCIDRv6Params = CheckStringFormatParams<$ZodCIDRv6, "pattern" | "when">;
|
|
1871
|
-
type $ZodCheckBase64Params = CheckStringFormatParams<$ZodBase64, "pattern" | "when">;
|
|
1872
|
-
type $ZodCheckBase64URLParams = CheckStringFormatParams<$ZodBase64URL, "pattern" | "when">;
|
|
1873
|
-
type $ZodCheckE164Params = CheckStringFormatParams<$ZodE164, "when">;
|
|
1874
|
-
type $ZodCheckJWTParams = CheckStringFormatParams<$ZodJWT, "pattern" | "when">;
|
|
1875
|
-
type $ZodCheckISODateTimeParams = CheckStringFormatParams<$ZodISODateTime, "pattern" | "when">;
|
|
1876
|
-
type $ZodCheckISODateParams = CheckStringFormatParams<$ZodISODate, "pattern" | "when">;
|
|
1877
|
-
type $ZodCheckISOTimeParams = CheckStringFormatParams<$ZodISOTime, "pattern" | "when">;
|
|
1878
|
-
type $ZodCheckISODurationParams = CheckStringFormatParams<$ZodISODuration, "when">;
|
|
1879
|
-
type $ZodCheckNumberFormatParams = CheckParams<$ZodCheckNumberFormat, "format" | "when">;
|
|
1880
|
-
type $ZodCheckLessThanParams = CheckParams<$ZodCheckLessThan, "inclusive" | "value" | "when">;
|
|
1881
|
-
type $ZodCheckGreaterThanParams = CheckParams<$ZodCheckGreaterThan, "inclusive" | "value" | "when">;
|
|
1882
|
-
type $ZodCheckMultipleOfParams = CheckParams<$ZodCheckMultipleOf, "value" | "when">;
|
|
1883
|
-
type $ZodCheckMaxLengthParams = CheckParams<$ZodCheckMaxLength, "maximum" | "when">;
|
|
1884
|
-
type $ZodCheckMinLengthParams = CheckParams<$ZodCheckMinLength, "minimum" | "when">;
|
|
1885
|
-
type $ZodCheckLengthEqualsParams = CheckParams<$ZodCheckLengthEquals, "length" | "when">;
|
|
1886
|
-
type $ZodCheckRegexParams = CheckParams<$ZodCheckRegex, "format" | "pattern" | "when">;
|
|
1887
|
-
type $ZodCheckLowerCaseParams = CheckParams<$ZodCheckLowerCase, "format" | "when">;
|
|
1888
|
-
type $ZodCheckUpperCaseParams = CheckParams<$ZodCheckUpperCase, "format" | "when">;
|
|
1889
|
-
type $ZodCheckIncludesParams = CheckParams<$ZodCheckIncludes, "includes" | "format" | "when" | "pattern">;
|
|
1890
|
-
type $ZodCheckStartsWithParams = CheckParams<$ZodCheckStartsWith, "prefix" | "format" | "when" | "pattern">;
|
|
1891
|
-
type $ZodCheckEndsWithParams = CheckParams<$ZodCheckEndsWith, "suffix" | "format" | "pattern" | "when">;
|
|
1892
|
-
type $ZodEnumParams = TypeParams<$ZodEnum, "entries">;
|
|
1893
|
-
type $ZodNonOptionalParams = TypeParams<$ZodNonOptional, "innerType">;
|
|
1894
|
-
type $ZodCustomParams = CheckTypeParams<$ZodCustom, "fn">;
|
|
1895
|
-
type $ZodSuperRefineIssue<T extends $ZodIssueBase = $ZodIssue> = T extends any ? RawIssue<T> : never;
|
|
1896
|
-
type RawIssue<T extends $ZodIssueBase> = T extends any ? Flatten<MakePartial<T, "message" | "path"> & {
|
|
1897
|
-
/** The schema or check that originated this issue. */readonly inst?: $ZodType | $ZodCheck; /** If `true`, Zod will execute subsequent checks/refinements instead of immediately aborting */
|
|
1898
|
-
readonly continue?: boolean | undefined;
|
|
1899
|
-
} & Record<string, unknown>> : never;
|
|
1900
|
-
interface $RefinementCtx<T = unknown> extends ParsePayload<T> {
|
|
1901
|
-
addIssue(arg: string | $ZodSuperRefineIssue): void;
|
|
1902
|
-
}
|
|
1903
|
-
//#endregion
|
|
1904
|
-
//#region ../../node_modules/zod/v4/classic/errors.d.cts
|
|
1905
|
-
/** An Error-like class used to store Zod validation issues. */
|
|
1906
|
-
interface ZodError<T = unknown> extends $ZodError<T> {
|
|
1907
|
-
/** @deprecated Use the `z.treeifyError(err)` function instead. */
|
|
1908
|
-
format(): $ZodFormattedError<T>;
|
|
1909
|
-
format<U>(mapper: (issue: $ZodIssue) => U): $ZodFormattedError<T, U>;
|
|
1910
|
-
/** @deprecated Use the `z.treeifyError(err)` function instead. */
|
|
1911
|
-
flatten(): $ZodFlattenedError<T>;
|
|
1912
|
-
flatten<U>(mapper: (issue: $ZodIssue) => U): $ZodFlattenedError<T, U>;
|
|
1913
|
-
/** @deprecated Push directly to `.issues` instead. */
|
|
1914
|
-
addIssue(issue: $ZodIssue): void;
|
|
1915
|
-
/** @deprecated Push directly to `.issues` instead. */
|
|
1916
|
-
addIssues(issues: $ZodIssue[]): void;
|
|
1917
|
-
/** @deprecated Check `err.issues.length === 0` instead. */
|
|
1918
|
-
isEmpty: boolean;
|
|
1919
|
-
}
|
|
1920
|
-
declare const ZodError: $constructor<ZodError>;
|
|
1921
|
-
//#endregion
|
|
1922
|
-
//#region ../../node_modules/zod/v4/classic/parse.d.cts
|
|
1923
|
-
type ZodSafeParseResult<T> = ZodSafeParseSuccess<T> | ZodSafeParseError<T>;
|
|
1924
|
-
type ZodSafeParseSuccess<T> = {
|
|
1925
|
-
success: true;
|
|
1926
|
-
data: T;
|
|
1927
|
-
error?: never;
|
|
1928
|
-
};
|
|
1929
|
-
type ZodSafeParseError<T> = {
|
|
1930
|
-
success: false;
|
|
1931
|
-
data?: never;
|
|
1932
|
-
error: ZodError<T>;
|
|
1933
|
-
};
|
|
1934
|
-
//#endregion
|
|
1935
|
-
//#region ../../node_modules/zod/v4/classic/schemas.d.cts
|
|
1936
|
-
type ZodStandardSchemaWithJSON<T> = StandardSchemaWithJSONProps<input<T>, output<T>>;
|
|
1937
|
-
interface ZodType<out Output = unknown, out Input = unknown, out Internals extends $ZodTypeInternals<Output, Input> = $ZodTypeInternals<Output, Input>> extends $ZodType<Output, Input, Internals> {
|
|
1938
|
-
def: Internals["def"];
|
|
1939
|
-
type: Internals["def"]["type"];
|
|
1940
|
-
/** @deprecated Use `.def` instead. */
|
|
1941
|
-
_def: Internals["def"];
|
|
1942
|
-
/** @deprecated Use `z.output<typeof schema>` instead. */
|
|
1943
|
-
_output: Internals["output"];
|
|
1944
|
-
/** @deprecated Use `z.input<typeof schema>` instead. */
|
|
1945
|
-
_input: Internals["input"];
|
|
1946
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
1947
|
-
/** Converts this schema to a JSON Schema representation. */
|
|
1948
|
-
toJSONSchema(params?: ToJSONSchemaParams): ZodStandardJSONSchemaPayload<this>;
|
|
1949
|
-
check(...checks: (CheckFn<output<this>> | $ZodCheck<output<this>>)[]): this;
|
|
1950
|
-
with(...checks: (CheckFn<output<this>> | $ZodCheck<output<this>>)[]): this;
|
|
1951
|
-
clone(def?: Internals["def"], params?: {
|
|
1952
|
-
parent: boolean;
|
|
1953
|
-
}): this;
|
|
1954
|
-
register<R extends $ZodRegistry>(registry: R, ...meta: this extends R["_schema"] ? undefined extends R["_meta"] ? [$replace<R["_meta"], this>?] : [$replace<R["_meta"], this>] : ["Incompatible schema"]): this;
|
|
1955
|
-
brand<T extends PropertyKey = PropertyKey, Dir extends "in" | "out" | "inout" = "out">(value?: T): PropertyKey extends T ? this : $ZodBranded<this, T, Dir>;
|
|
1956
|
-
parse(data: unknown, params?: ParseContext<$ZodIssue>): output<this>;
|
|
1957
|
-
safeParse(data: unknown, params?: ParseContext<$ZodIssue>): ZodSafeParseResult<output<this>>;
|
|
1958
|
-
parseAsync(data: unknown, params?: ParseContext<$ZodIssue>): Promise<output<this>>;
|
|
1959
|
-
safeParseAsync(data: unknown, params?: ParseContext<$ZodIssue>): Promise<ZodSafeParseResult<output<this>>>;
|
|
1960
|
-
spa: (data: unknown, params?: ParseContext<$ZodIssue>) => Promise<ZodSafeParseResult<output<this>>>;
|
|
1961
|
-
encode(data: output<this>, params?: ParseContext<$ZodIssue>): input<this>;
|
|
1962
|
-
decode(data: input<this>, params?: ParseContext<$ZodIssue>): output<this>;
|
|
1963
|
-
encodeAsync(data: output<this>, params?: ParseContext<$ZodIssue>): Promise<input<this>>;
|
|
1964
|
-
decodeAsync(data: input<this>, params?: ParseContext<$ZodIssue>): Promise<output<this>>;
|
|
1965
|
-
safeEncode(data: output<this>, params?: ParseContext<$ZodIssue>): ZodSafeParseResult<input<this>>;
|
|
1966
|
-
safeDecode(data: input<this>, params?: ParseContext<$ZodIssue>): ZodSafeParseResult<output<this>>;
|
|
1967
|
-
safeEncodeAsync(data: output<this>, params?: ParseContext<$ZodIssue>): Promise<ZodSafeParseResult<input<this>>>;
|
|
1968
|
-
safeDecodeAsync(data: input<this>, params?: ParseContext<$ZodIssue>): Promise<ZodSafeParseResult<output<this>>>;
|
|
1969
|
-
refine<Ch extends (arg: output<this>) => unknown | Promise<unknown>>(check: Ch, params?: string | $ZodCustomParams): Ch extends ((arg: any) => arg is infer R) ? this & ZodType<R, input<this>> : this;
|
|
1970
|
-
superRefine(refinement: (arg: output<this>, ctx: $RefinementCtx<output<this>>) => void | Promise<void>): this;
|
|
1971
|
-
overwrite(fn: (x: output<this>) => output<this>): this;
|
|
1972
|
-
optional(): ZodOptional<this>;
|
|
1973
|
-
exactOptional(): ZodExactOptional<this>;
|
|
1974
|
-
nonoptional(params?: string | $ZodNonOptionalParams): ZodNonOptional<this>;
|
|
1975
|
-
nullable(): ZodNullable<this>;
|
|
1976
|
-
nullish(): ZodOptional<ZodNullable<this>>;
|
|
1977
|
-
default(def: NoUndefined<output<this>>): ZodDefault<this>;
|
|
1978
|
-
default(def: () => NoUndefined<output<this>>): ZodDefault<this>;
|
|
1979
|
-
prefault(def: () => input<this>): ZodPrefault<this>;
|
|
1980
|
-
prefault(def: input<this>): ZodPrefault<this>;
|
|
1981
|
-
array(): ZodArray<this>;
|
|
1982
|
-
or<T extends SomeType>(option: T): ZodUnion<[this, T]>;
|
|
1983
|
-
and<T extends SomeType>(incoming: T): ZodIntersection<this, T>;
|
|
1984
|
-
transform<NewOut>(transform: (arg: output<this>, ctx: $RefinementCtx<output<this>>) => NewOut | Promise<NewOut>): ZodPipe<this, ZodTransform<Awaited<NewOut>, output<this>>>;
|
|
1985
|
-
catch(def: output<this>): ZodCatch<this>;
|
|
1986
|
-
catch(def: (ctx: $ZodCatchCtx) => output<this>): ZodCatch<this>;
|
|
1987
|
-
pipe<T extends $ZodType<any, output<this>>>(target: T | $ZodType<any, output<this>>): ZodPipe<this, T>;
|
|
1988
|
-
readonly(): ZodReadonly<this>;
|
|
1989
|
-
/** Returns a new instance that has been registered in `z.globalRegistry` with the specified description */
|
|
1990
|
-
describe(description: string): this;
|
|
1991
|
-
description?: string;
|
|
1992
|
-
/** Returns the metadata associated with this instance in `z.globalRegistry` */
|
|
1993
|
-
meta(): $replace<GlobalMeta, this> | undefined;
|
|
1994
|
-
/** Returns a new instance that has been registered in `z.globalRegistry` with the specified metadata */
|
|
1995
|
-
meta(data: $replace<GlobalMeta, this>): this;
|
|
1996
|
-
/** @deprecated Try safe-parsing `undefined` (this is what `isOptional` does internally):
|
|
1997
|
-
*
|
|
1998
|
-
* ```ts
|
|
1999
|
-
* const schema = z.string().optional();
|
|
2000
|
-
* const isOptional = schema.safeParse(undefined).success; // true
|
|
2001
|
-
* ```
|
|
2002
|
-
*/
|
|
2003
|
-
isOptional(): boolean;
|
|
2004
|
-
/**
|
|
2005
|
-
* @deprecated Try safe-parsing `null` (this is what `isNullable` does internally):
|
|
2006
|
-
*
|
|
2007
|
-
* ```ts
|
|
2008
|
-
* const schema = z.string().nullable();
|
|
2009
|
-
* const isNullable = schema.safeParse(null).success; // true
|
|
2010
|
-
* ```
|
|
2011
|
-
*/
|
|
2012
|
-
isNullable(): boolean;
|
|
2013
|
-
apply<T>(fn: (schema: this) => T): T;
|
|
2014
|
-
}
|
|
2015
|
-
interface _ZodType<out Internals extends $ZodTypeInternals = $ZodTypeInternals> extends ZodType<any, any, Internals> {}
|
|
2016
|
-
declare const ZodType: $constructor<ZodType>;
|
|
2017
|
-
interface _ZodString<T extends $ZodStringInternals<unknown> = $ZodStringInternals<unknown>> extends _ZodType<T> {
|
|
2018
|
-
format: string | null;
|
|
2019
|
-
minLength: number | null;
|
|
2020
|
-
maxLength: number | null;
|
|
2021
|
-
regex(regex: RegExp, params?: string | $ZodCheckRegexParams): this;
|
|
2022
|
-
includes(value: string, params?: string | $ZodCheckIncludesParams): this;
|
|
2023
|
-
startsWith(value: string, params?: string | $ZodCheckStartsWithParams): this;
|
|
2024
|
-
endsWith(value: string, params?: string | $ZodCheckEndsWithParams): this;
|
|
2025
|
-
min(minLength: number, params?: string | $ZodCheckMinLengthParams): this;
|
|
2026
|
-
max(maxLength: number, params?: string | $ZodCheckMaxLengthParams): this;
|
|
2027
|
-
length(len: number, params?: string | $ZodCheckLengthEqualsParams): this;
|
|
2028
|
-
nonempty(params?: string | $ZodCheckMinLengthParams): this;
|
|
2029
|
-
lowercase(params?: string | $ZodCheckLowerCaseParams): this;
|
|
2030
|
-
uppercase(params?: string | $ZodCheckUpperCaseParams): this;
|
|
2031
|
-
trim(): this;
|
|
2032
|
-
normalize(form?: "NFC" | "NFD" | "NFKC" | "NFKD" | (string & {})): this;
|
|
2033
|
-
toLowerCase(): this;
|
|
2034
|
-
toUpperCase(): this;
|
|
2035
|
-
slugify(): this;
|
|
2036
|
-
}
|
|
2037
|
-
/** @internal */
|
|
2038
|
-
declare const _ZodString: $constructor<_ZodString>;
|
|
2039
|
-
interface ZodString extends _ZodString<$ZodStringInternals<string>> {
|
|
2040
|
-
/** @deprecated Use `z.email()` instead. */
|
|
2041
|
-
email(params?: string | $ZodCheckEmailParams): this;
|
|
2042
|
-
/** @deprecated Use `z.url()` instead. */
|
|
2043
|
-
url(params?: string | $ZodCheckURLParams): this;
|
|
2044
|
-
/** @deprecated Use `z.jwt()` instead. */
|
|
2045
|
-
jwt(params?: string | $ZodCheckJWTParams): this;
|
|
2046
|
-
/** @deprecated Use `z.emoji()` instead. */
|
|
2047
|
-
emoji(params?: string | $ZodCheckEmojiParams): this;
|
|
2048
|
-
/** @deprecated Use `z.guid()` instead. */
|
|
2049
|
-
guid(params?: string | $ZodCheckGUIDParams): this;
|
|
2050
|
-
/** @deprecated Use `z.uuid()` instead. */
|
|
2051
|
-
uuid(params?: string | $ZodCheckUUIDParams): this;
|
|
2052
|
-
/** @deprecated Use `z.uuid()` instead. */
|
|
2053
|
-
uuidv4(params?: string | $ZodCheckUUIDParams): this;
|
|
2054
|
-
/** @deprecated Use `z.uuid()` instead. */
|
|
2055
|
-
uuidv6(params?: string | $ZodCheckUUIDParams): this;
|
|
2056
|
-
/** @deprecated Use `z.uuid()` instead. */
|
|
2057
|
-
uuidv7(params?: string | $ZodCheckUUIDParams): this;
|
|
2058
|
-
/** @deprecated Use `z.nanoid()` instead. */
|
|
2059
|
-
nanoid(params?: string | $ZodCheckNanoIDParams): this;
|
|
2060
|
-
/** @deprecated Use `z.guid()` instead. */
|
|
2061
|
-
guid(params?: string | $ZodCheckGUIDParams): this;
|
|
2062
|
-
/** @deprecated Use `z.cuid()` instead. */
|
|
2063
|
-
cuid(params?: string | $ZodCheckCUIDParams): this;
|
|
2064
|
-
/** @deprecated Use `z.cuid2()` instead. */
|
|
2065
|
-
cuid2(params?: string | $ZodCheckCUID2Params): this;
|
|
2066
|
-
/** @deprecated Use `z.ulid()` instead. */
|
|
2067
|
-
ulid(params?: string | $ZodCheckULIDParams): this;
|
|
2068
|
-
/** @deprecated Use `z.base64()` instead. */
|
|
2069
|
-
base64(params?: string | $ZodCheckBase64Params): this;
|
|
2070
|
-
/** @deprecated Use `z.base64url()` instead. */
|
|
2071
|
-
base64url(params?: string | $ZodCheckBase64URLParams): this;
|
|
2072
|
-
/** @deprecated Use `z.xid()` instead. */
|
|
2073
|
-
xid(params?: string | $ZodCheckXIDParams): this;
|
|
2074
|
-
/** @deprecated Use `z.ksuid()` instead. */
|
|
2075
|
-
ksuid(params?: string | $ZodCheckKSUIDParams): this;
|
|
2076
|
-
/** @deprecated Use `z.ipv4()` instead. */
|
|
2077
|
-
ipv4(params?: string | $ZodCheckIPv4Params): this;
|
|
2078
|
-
/** @deprecated Use `z.ipv6()` instead. */
|
|
2079
|
-
ipv6(params?: string | $ZodCheckIPv6Params): this;
|
|
2080
|
-
/** @deprecated Use `z.cidrv4()` instead. */
|
|
2081
|
-
cidrv4(params?: string | $ZodCheckCIDRv4Params): this;
|
|
2082
|
-
/** @deprecated Use `z.cidrv6()` instead. */
|
|
2083
|
-
cidrv6(params?: string | $ZodCheckCIDRv6Params): this;
|
|
2084
|
-
/** @deprecated Use `z.e164()` instead. */
|
|
2085
|
-
e164(params?: string | $ZodCheckE164Params): this;
|
|
2086
|
-
/** @deprecated Use `z.iso.datetime()` instead. */
|
|
2087
|
-
datetime(params?: string | $ZodCheckISODateTimeParams): this;
|
|
2088
|
-
/** @deprecated Use `z.iso.date()` instead. */
|
|
2089
|
-
date(params?: string | $ZodCheckISODateParams): this;
|
|
2090
|
-
/** @deprecated Use `z.iso.time()` instead. */
|
|
2091
|
-
time(params?: string | $ZodCheckISOTimeParams): this;
|
|
2092
|
-
/** @deprecated Use `z.iso.duration()` instead. */
|
|
2093
|
-
duration(params?: string | $ZodCheckISODurationParams): this;
|
|
2094
|
-
}
|
|
2095
|
-
declare const ZodString: $constructor<ZodString>;
|
|
2096
|
-
interface ZodStringFormat<Format extends string = string> extends _ZodString<$ZodStringFormatInternals<Format>> {}
|
|
2097
|
-
declare const ZodStringFormat: $constructor<ZodStringFormat>;
|
|
2098
|
-
interface ZodURL extends ZodStringFormat<"url"> {
|
|
2099
|
-
_zod: $ZodURLInternals;
|
|
2100
|
-
}
|
|
2101
|
-
declare const ZodURL: $constructor<ZodURL>;
|
|
2102
|
-
interface _ZodNumber<Internals extends $ZodNumberInternals = $ZodNumberInternals> extends _ZodType<Internals> {
|
|
2103
|
-
gt(value: number, params?: string | $ZodCheckGreaterThanParams): this;
|
|
2104
|
-
/** Identical to .min() */
|
|
2105
|
-
gte(value: number, params?: string | $ZodCheckGreaterThanParams): this;
|
|
2106
|
-
min(value: number, params?: string | $ZodCheckGreaterThanParams): this;
|
|
2107
|
-
lt(value: number, params?: string | $ZodCheckLessThanParams): this;
|
|
2108
|
-
/** Identical to .max() */
|
|
2109
|
-
lte(value: number, params?: string | $ZodCheckLessThanParams): this;
|
|
2110
|
-
max(value: number, params?: string | $ZodCheckLessThanParams): this;
|
|
2111
|
-
/** Consider `z.int()` instead. This API is considered *legacy*; it will never be removed but a better alternative exists. */
|
|
2112
|
-
int(params?: string | $ZodCheckNumberFormatParams): this;
|
|
2113
|
-
/** @deprecated This is now identical to `.int()`. Only numbers in the safe integer range are accepted. */
|
|
2114
|
-
safe(params?: string | $ZodCheckNumberFormatParams): this;
|
|
2115
|
-
positive(params?: string | $ZodCheckGreaterThanParams): this;
|
|
2116
|
-
nonnegative(params?: string | $ZodCheckGreaterThanParams): this;
|
|
2117
|
-
negative(params?: string | $ZodCheckLessThanParams): this;
|
|
2118
|
-
nonpositive(params?: string | $ZodCheckLessThanParams): this;
|
|
2119
|
-
multipleOf(value: number, params?: string | $ZodCheckMultipleOfParams): this;
|
|
2120
|
-
/** @deprecated Use `.multipleOf()` instead. */
|
|
2121
|
-
step(value: number, params?: string | $ZodCheckMultipleOfParams): this;
|
|
2122
|
-
/** @deprecated In v4 and later, z.number() does not allow infinite values by default. This is a no-op. */
|
|
2123
|
-
finite(params?: unknown): this;
|
|
2124
|
-
minValue: number | null;
|
|
2125
|
-
maxValue: number | null;
|
|
2126
|
-
/** @deprecated Check the `format` property instead. */
|
|
2127
|
-
isInt: boolean;
|
|
2128
|
-
/** @deprecated Number schemas no longer accept infinite values, so this always returns `true`. */
|
|
2129
|
-
isFinite: boolean;
|
|
2130
|
-
format: string | null;
|
|
2131
|
-
}
|
|
2132
|
-
interface ZodNumber extends _ZodNumber<$ZodNumberInternals<number>> {}
|
|
2133
|
-
declare const ZodNumber: $constructor<ZodNumber>;
|
|
2134
|
-
interface _ZodBoolean<T extends $ZodBooleanInternals = $ZodBooleanInternals> extends _ZodType<T> {}
|
|
2135
|
-
interface ZodBoolean extends _ZodBoolean<$ZodBooleanInternals<boolean>> {}
|
|
2136
|
-
declare const ZodBoolean: $constructor<ZodBoolean>;
|
|
2137
|
-
interface ZodArray<T extends SomeType = $ZodType> extends _ZodType<$ZodArrayInternals<T>>, $ZodArray<T> {
|
|
2138
|
-
element: T;
|
|
2139
|
-
min(minLength: number, params?: string | $ZodCheckMinLengthParams): this;
|
|
2140
|
-
nonempty(params?: string | $ZodCheckMinLengthParams): this;
|
|
2141
|
-
max(maxLength: number, params?: string | $ZodCheckMaxLengthParams): this;
|
|
2142
|
-
length(len: number, params?: string | $ZodCheckLengthEqualsParams): this;
|
|
2143
|
-
unwrap(): T;
|
|
2144
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
2145
|
-
}
|
|
2146
|
-
declare const ZodArray: $constructor<ZodArray>;
|
|
2147
|
-
type SafeExtendShape<Base extends $ZodShape, Ext extends $ZodLooseShape> = { [K in keyof Ext]: K extends keyof Base ? output<Ext[K]> extends output<Base[K]> ? input<Ext[K]> extends input<Base[K]> ? Ext[K] : never : never : Ext[K] };
|
|
2148
|
-
interface ZodObject< /** @ts-ignore Cast variance */out Shape extends $ZodShape = $ZodLooseShape, out Config extends $ZodObjectConfig = $strip> extends _ZodType<$ZodObjectInternals<Shape, Config>>, $ZodObject<Shape, Config> {
|
|
2149
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
2150
|
-
shape: Shape;
|
|
2151
|
-
keyof(): ZodEnum<ToEnum<keyof Shape & string>>;
|
|
2152
|
-
/** Define a schema to validate all unrecognized keys. This overrides the existing strict/loose behavior. */
|
|
2153
|
-
catchall<T extends SomeType>(schema: T): ZodObject<Shape, $catchall<T>>;
|
|
2154
|
-
/** @deprecated Use `z.looseObject()` or `.loose()` instead. */
|
|
2155
|
-
passthrough(): ZodObject<Shape, $loose>;
|
|
2156
|
-
/** Consider `z.looseObject(A.shape)` instead */
|
|
2157
|
-
loose(): ZodObject<Shape, $loose>;
|
|
2158
|
-
/** Consider `z.strictObject(A.shape)` instead */
|
|
2159
|
-
strict(): ZodObject<Shape, $strict>;
|
|
2160
|
-
/** This is the default behavior. This method call is likely unnecessary. */
|
|
2161
|
-
strip(): ZodObject<Shape, $strip>;
|
|
2162
|
-
extend<U extends $ZodLooseShape>(shape: U): ZodObject<Extend<Shape, U>, Config>;
|
|
2163
|
-
safeExtend<U extends $ZodLooseShape>(shape: SafeExtendShape<Shape, U> & Partial<Record<keyof Shape, SomeType>>): ZodObject<Extend<Shape, U>, Config>;
|
|
2164
|
-
/**
|
|
2165
|
-
* @deprecated Use [`A.extend(B.shape)`](https://zod.dev/api?id=extend) instead.
|
|
2166
|
-
*/
|
|
2167
|
-
merge<U extends ZodObject>(other: U): ZodObject<Extend<Shape, U["shape"]>, U["_zod"]["config"]>;
|
|
2168
|
-
pick<M extends Mask<keyof Shape>>(mask: M & Record<Exclude<keyof M, keyof Shape>, never>): ZodObject<Flatten<Pick<Shape, Extract<keyof Shape, keyof M>>>, Config>;
|
|
2169
|
-
omit<M extends Mask<keyof Shape>>(mask: M & Record<Exclude<keyof M, keyof Shape>, never>): ZodObject<Flatten<Omit<Shape, Extract<keyof Shape, keyof M>>>, Config>;
|
|
2170
|
-
partial(): ZodObject<{ [k in keyof Shape]: ZodOptional<Shape[k]> }, Config>;
|
|
2171
|
-
partial<M extends Mask<keyof Shape>>(mask: M & Record<Exclude<keyof M, keyof Shape>, never>): ZodObject<{ [k in keyof Shape]: k extends keyof M ? ZodOptional<Shape[k]> : Shape[k] }, Config>;
|
|
2172
|
-
required(): ZodObject<{ [k in keyof Shape]: ZodNonOptional<Shape[k]> }, Config>;
|
|
2173
|
-
required<M extends Mask<keyof Shape>>(mask: M & Record<Exclude<keyof M, keyof Shape>, never>): ZodObject<{ [k in keyof Shape]: k extends keyof M ? ZodNonOptional<Shape[k]> : Shape[k] }, Config>;
|
|
2174
|
-
}
|
|
2175
|
-
declare const ZodObject: $constructor<ZodObject>;
|
|
2176
|
-
interface ZodUnion<T extends readonly SomeType[] = readonly $ZodType[]> extends _ZodType<$ZodUnionInternals<T>>, $ZodUnion<T> {
|
|
2177
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
2178
|
-
options: T;
|
|
2179
|
-
}
|
|
2180
|
-
declare const ZodUnion: $constructor<ZodUnion>;
|
|
2181
|
-
interface ZodIntersection<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends _ZodType<$ZodIntersectionInternals<A, B>>, $ZodIntersection<A, B> {
|
|
2182
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
2183
|
-
}
|
|
2184
|
-
declare const ZodIntersection: $constructor<ZodIntersection>;
|
|
2185
|
-
interface ZodEnum< /** @ts-ignore Cast variance */out T extends EnumLike = EnumLike> extends _ZodType<$ZodEnumInternals<T>>, $ZodEnum<T> {
|
|
2186
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
2187
|
-
enum: T;
|
|
2188
|
-
options: Array<T[keyof T]>;
|
|
2189
|
-
extract<const U extends readonly (keyof T)[]>(values: U, params?: string | $ZodEnumParams): ZodEnum<Flatten<Pick<T, U[number]>>>;
|
|
2190
|
-
exclude<const U extends readonly (keyof T)[]>(values: U, params?: string | $ZodEnumParams): ZodEnum<Flatten<Omit<T, U[number]>>>;
|
|
2191
|
-
}
|
|
2192
|
-
declare const ZodEnum: $constructor<ZodEnum>;
|
|
2193
|
-
interface ZodTransform<O = unknown, I = unknown> extends _ZodType<$ZodTransformInternals<O, I>>, $ZodTransform<O, I> {
|
|
2194
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
2195
|
-
}
|
|
2196
|
-
declare const ZodTransform: $constructor<ZodTransform>;
|
|
2197
|
-
interface ZodOptional<T extends SomeType = $ZodType> extends _ZodType<$ZodOptionalInternals<T>>, $ZodOptional<T> {
|
|
2198
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
2199
|
-
unwrap(): T;
|
|
2200
|
-
}
|
|
2201
|
-
declare const ZodOptional: $constructor<ZodOptional>;
|
|
2202
|
-
interface ZodExactOptional<T extends SomeType = $ZodType> extends _ZodType<$ZodExactOptionalInternals<T>>, $ZodExactOptional<T> {
|
|
2203
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
2204
|
-
unwrap(): T;
|
|
2205
|
-
}
|
|
2206
|
-
declare const ZodExactOptional: $constructor<ZodExactOptional>;
|
|
2207
|
-
interface ZodNullable<T extends SomeType = $ZodType> extends _ZodType<$ZodNullableInternals<T>>, $ZodNullable<T> {
|
|
2208
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
2209
|
-
unwrap(): T;
|
|
2210
|
-
}
|
|
2211
|
-
declare const ZodNullable: $constructor<ZodNullable>;
|
|
2212
|
-
interface ZodDefault<T extends SomeType = $ZodType> extends _ZodType<$ZodDefaultInternals<T>>, $ZodDefault<T> {
|
|
2213
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
2214
|
-
unwrap(): T;
|
|
2215
|
-
/** @deprecated Use `.unwrap()` instead. */
|
|
2216
|
-
removeDefault(): T;
|
|
2217
|
-
}
|
|
2218
|
-
declare const ZodDefault: $constructor<ZodDefault>;
|
|
2219
|
-
interface ZodPrefault<T extends SomeType = $ZodType> extends _ZodType<$ZodPrefaultInternals<T>>, $ZodPrefault<T> {
|
|
2220
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
2221
|
-
unwrap(): T;
|
|
2222
|
-
}
|
|
2223
|
-
declare const ZodPrefault: $constructor<ZodPrefault>;
|
|
2224
|
-
interface ZodNonOptional<T extends SomeType = $ZodType> extends _ZodType<$ZodNonOptionalInternals<T>>, $ZodNonOptional<T> {
|
|
2225
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
2226
|
-
unwrap(): T;
|
|
2227
|
-
}
|
|
2228
|
-
declare const ZodNonOptional: $constructor<ZodNonOptional>;
|
|
2229
|
-
interface ZodCatch<T extends SomeType = $ZodType> extends _ZodType<$ZodCatchInternals<T>>, $ZodCatch<T> {
|
|
2230
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
2231
|
-
unwrap(): T;
|
|
2232
|
-
/** @deprecated Use `.unwrap()` instead. */
|
|
2233
|
-
removeCatch(): T;
|
|
2234
|
-
}
|
|
2235
|
-
declare const ZodCatch: $constructor<ZodCatch>;
|
|
2236
|
-
interface ZodPipe<A extends SomeType = $ZodType, B extends SomeType = $ZodType> extends _ZodType<$ZodPipeInternals<A, B>>, $ZodPipe<A, B> {
|
|
2237
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
2238
|
-
in: A;
|
|
2239
|
-
out: B;
|
|
2240
|
-
}
|
|
2241
|
-
declare const ZodPipe: $constructor<ZodPipe>;
|
|
2242
|
-
interface ZodReadonly<T extends SomeType = $ZodType> extends _ZodType<$ZodReadonlyInternals<T>>, $ZodReadonly<T> {
|
|
2243
|
-
"~standard": ZodStandardSchemaWithJSON<this>;
|
|
2244
|
-
unwrap(): T;
|
|
2245
|
-
}
|
|
2246
|
-
declare const ZodReadonly: $constructor<ZodReadonly>;
|
|
2247
|
-
//#endregion
|
|
2248
|
-
//#region src/config/schema.d.ts
|
|
2249
|
-
declare const ConfigSchema: ZodObject<{
|
|
2250
|
-
content: ZodDefault<ZodObject<{
|
|
2251
|
-
dir: ZodDefault<ZodString>;
|
|
2252
|
-
include: ZodDefault<ZodArray<ZodString>>;
|
|
2253
|
-
exclude: ZodDefault<ZodArray<ZodString>>;
|
|
2254
|
-
}, $strip>>;
|
|
2255
|
-
github: ZodDefault<ZodObject<{
|
|
2256
|
-
oauthAppClientId: ZodDefault<ZodString>;
|
|
2257
|
-
}, $strip>>;
|
|
2258
|
-
sync: ZodDefault<ZodObject<{
|
|
2259
|
-
enabled: ZodOptional<ZodBoolean>;
|
|
2260
|
-
pushIntervalSeconds: ZodDefault<ZodNumber>;
|
|
2261
|
-
pullIntervalSeconds: ZodDefault<ZodNumber>;
|
|
2262
|
-
autoCommit: ZodDefault<ZodBoolean>;
|
|
2263
|
-
autoPush: ZodDefault<ZodBoolean>;
|
|
2264
|
-
autoPull: ZodDefault<ZodBoolean>;
|
|
2265
|
-
commitMessage: ZodDefault<ZodString>;
|
|
2266
|
-
}, $strip>>;
|
|
2267
|
-
server: ZodDefault<ZodObject<{
|
|
2268
|
-
port: ZodDefault<ZodNumber>;
|
|
2269
|
-
host: ZodDefault<ZodString>;
|
|
2270
|
-
openOnAgentEdit: ZodDefault<ZodBoolean>;
|
|
2271
|
-
}, $strip>>;
|
|
2272
|
-
persistence: ZodDefault<ZodObject<{
|
|
2273
|
-
debounceMs: ZodDefault<ZodNumber>;
|
|
2274
|
-
maxDebounceMs: ZodDefault<ZodNumber>;
|
|
2275
|
-
}, $strip>>;
|
|
2276
|
-
preview: ZodDefault<ZodObject<{
|
|
2277
|
-
baseUrl: ZodOptional<ZodURL>;
|
|
2278
|
-
}, $strip>>;
|
|
2279
|
-
folders: ZodDefault<ZodArray<ZodObject<{
|
|
2280
|
-
match: ZodString;
|
|
2281
|
-
frontmatter: ZodObject<{
|
|
2282
|
-
title: ZodOptional<ZodString>;
|
|
2283
|
-
description: ZodOptional<ZodString>;
|
|
2284
|
-
tags: ZodOptional<ZodArray<ZodString>>;
|
|
2285
|
-
}, $strict>;
|
|
2286
|
-
}, $strict>>>;
|
|
2287
|
-
mcp: ZodDefault<ZodObject<{
|
|
2288
|
-
autoStart: ZodDefault<ZodBoolean>;
|
|
2289
|
-
tools: ZodDefault<ZodObject<{
|
|
2290
|
-
read_document: ZodDefault<ZodObject<{
|
|
2291
|
-
historyDepth: ZodDefault<ZodNumber>;
|
|
2292
|
-
}, $strip>>;
|
|
2293
|
-
search: ZodDefault<ZodObject<{
|
|
2294
|
-
maxResults: ZodDefault<ZodNumber>;
|
|
2295
|
-
}, $strip>>;
|
|
2296
|
-
}, $strip>>;
|
|
2297
|
-
}, $strip>>;
|
|
2298
|
-
}, $strip>;
|
|
2299
|
-
type Config = output<typeof ConfigSchema>;
|
|
2300
|
-
//#endregion
|
|
2301
47
|
//#region src/config/loader.d.ts
|
|
2302
48
|
interface LoadConfigResult {
|
|
2303
49
|
config: Config;
|
|
@@ -2305,27 +51,12 @@ interface LoadConfigResult {
|
|
|
2305
51
|
}
|
|
2306
52
|
declare function loadConfig(cwd?: string): LoadConfigResult;
|
|
2307
53
|
//#endregion
|
|
2308
|
-
//#region src/
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
* long-lived identity is separate from short-lived session concerns.
|
|
2315
|
-
*/
|
|
2316
|
-
interface AgentIdentity {
|
|
2317
|
-
connectionId: string;
|
|
2318
|
-
clientInfo?: {
|
|
2319
|
-
name: string;
|
|
2320
|
-
version: string;
|
|
2321
|
-
};
|
|
2322
|
-
/** User-provided via AGENT_LABEL env var in the editor MCP config */
|
|
2323
|
-
label?: string;
|
|
2324
|
-
/** Derived: label || clientInfo.name || "Agent" */
|
|
2325
|
-
displayName: string;
|
|
2326
|
-
/** Derived: label ?? clientInfo?.name ?? connectionId — stable seed hierarchy */
|
|
2327
|
-
colorSeed: string;
|
|
2328
|
-
}
|
|
54
|
+
//#region src/content/init.d.ts
|
|
55
|
+
declare function initContent(projectDir: string): {
|
|
56
|
+
created: string[];
|
|
57
|
+
updated: string[];
|
|
58
|
+
skipped: string[];
|
|
59
|
+
};
|
|
2329
60
|
//#endregion
|
|
2330
|
-
export { ALL_EDITOR_IDS,
|
|
61
|
+
export { ALL_EDITOR_IDS, EDITOR_TARGETS, type EditorId, type EditorMcpResult, type EditorMcpTarget, type LoadConfigResult, type McpInstallOptions, type UserMcpConfigsOptions, detectInstalledEditors, initContent, loadConfig, readExistingMcpEntry, writeEditorMcpConfig, writeUserMcpConfigs };
|
|
2331
62
|
//# sourceMappingURL=index.d.mts.map
|