theokit 0.48.13 → 0.50.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/{actions-virtual-module-YQXRSSMW.js → actions-virtual-module-5WBVSDOM.js} +22 -12
- package/dist/actions-virtual-module-5WBVSDOM.js.map +1 -0
- package/dist/{actions-virtual-module-LB4NGONI.js → actions-virtual-module-ZYLMNW6K.js} +13 -8
- package/dist/{actions-virtual-module-LB4NGONI.js.map → actions-virtual-module-ZYLMNW6K.js.map} +1 -1
- package/dist/adapters/agent-mount.d.ts +127 -0
- package/dist/adapters/agent-mount.js +24 -0
- package/dist/adapters/security-headers.d.ts +132 -0
- package/dist/adapters/security-headers.js +64 -0
- package/dist/adapters/security-headers.js.map +1 -0
- package/dist/adapters/web-shim.d.ts +100 -13
- package/dist/adapters/web-shim.js +158 -54
- package/dist/adapters/web-shim.js.map +1 -1
- package/dist/agent-GKUEL6OH.js +15 -0
- package/dist/agent-scan-BZa-pagG.d.ts +16 -0
- package/dist/{app-typed-client-GHO3EWZK.js → app-typed-client-4LAIEGFX.js} +23 -13
- package/dist/app-typed-client-4LAIEGFX.js.map +1 -0
- package/dist/{app-typed-client-G3J5G7E5.js → app-typed-client-DQM3Y6YY.js} +14 -9
- package/dist/app-typed-client-DQM3Y6YY.js.map +1 -0
- package/dist/aws-lambda-VKMYUMP2.js +261 -0
- package/dist/aws-lambda-VKMYUMP2.js.map +1 -0
- package/dist/{build-WU6AKKIB.js → build-FLX6VF7Q.js} +71 -26
- package/dist/build-FLX6VF7Q.js.map +1 -0
- package/dist/{bun-33RD6K7O.js → bun-L7PP6ID5.js} +105 -13
- package/dist/bun-L7PP6ID5.js.map +1 -0
- package/dist/{check-45NKUVSQ.js → check-GIPZBFTX.js} +2 -2
- package/dist/{chunk-KD5G3YXI.js → chunk-2AMLGJJA.js} +35 -9
- package/dist/chunk-2AMLGJJA.js.map +1 -0
- package/dist/chunk-3PBAN2YE.js +146 -0
- package/dist/chunk-3PBAN2YE.js.map +1 -0
- package/dist/{chunk-HBU2GIMZ.js → chunk-3QPVEJ7D.js} +15 -9
- package/dist/chunk-3QPVEJ7D.js.map +1 -0
- package/dist/{chunk-47CINLWF.js → chunk-44J2ANQC.js} +2 -2
- package/dist/{chunk-IEES3CHD.js → chunk-47MM2JUK.js} +8 -2
- package/dist/chunk-47MM2JUK.js.map +1 -0
- package/dist/chunk-4X6H2BXP.js +108 -0
- package/dist/chunk-4X6H2BXP.js.map +1 -0
- package/dist/{chunk-A7JBF5FO.js → chunk-5K4TDLRG.js} +8 -5
- package/dist/chunk-5K4TDLRG.js.map +1 -0
- package/dist/chunk-5YPXXSYY.js +181 -0
- package/dist/chunk-5YPXXSYY.js.map +1 -0
- package/dist/{chunk-YGAXV5HR.js → chunk-6J4JWHDJ.js} +191 -112
- package/dist/chunk-6J4JWHDJ.js.map +1 -0
- package/dist/chunk-72DMJBXI.js +424 -0
- package/dist/chunk-72DMJBXI.js.map +1 -0
- package/dist/chunk-7PM6K5EV.js +513 -0
- package/dist/chunk-7PM6K5EV.js.map +1 -0
- package/dist/{chunk-MTEWLGVY.js → chunk-BPYMC7SU.js} +4 -48
- package/dist/chunk-BPYMC7SU.js.map +1 -0
- package/dist/chunk-BU6RJPPJ.js +421 -0
- package/dist/chunk-BU6RJPPJ.js.map +1 -0
- package/dist/{chunk-FB2HBNIC.js → chunk-BX6EUYHU.js} +6 -2
- package/dist/chunk-BX6EUYHU.js.map +1 -0
- package/dist/{chunk-BIVCP6X5.js → chunk-C62IZEJI.js} +465 -202
- package/dist/chunk-C62IZEJI.js.map +1 -0
- package/dist/chunk-D4VP2QPR.js +16 -0
- package/dist/chunk-D4VP2QPR.js.map +1 -0
- package/dist/{chunk-J5MXCGKA.js → chunk-DHAD2O3S.js} +6 -6
- package/dist/chunk-DHAD2O3S.js.map +1 -0
- package/dist/chunk-E43VJ3E5.js +188 -0
- package/dist/chunk-E43VJ3E5.js.map +1 -0
- package/dist/chunk-EVZKNA2W.js +110 -0
- package/dist/chunk-EVZKNA2W.js.map +1 -0
- package/dist/chunk-FD4ZDTQ6.js +181 -0
- package/dist/chunk-FD4ZDTQ6.js.map +1 -0
- package/dist/chunk-FDOOBTXJ.js +17 -0
- package/dist/chunk-FDOOBTXJ.js.map +1 -0
- package/dist/chunk-FH3SQR6P.js +275 -0
- package/dist/chunk-FH3SQR6P.js.map +1 -0
- package/dist/chunk-HJHGTFEJ.js +23 -0
- package/dist/chunk-HJHGTFEJ.js.map +1 -0
- package/dist/{chunk-LXAESF4Y.js → chunk-HK4AZBKX.js} +7 -4
- package/dist/chunk-HK4AZBKX.js.map +1 -0
- package/dist/{chunk-T5C46IIU.js → chunk-HWBRS4DZ.js} +28 -269
- package/dist/chunk-HWBRS4DZ.js.map +1 -0
- package/dist/chunk-IRQGAC4L.js +52 -0
- package/dist/chunk-IRQGAC4L.js.map +1 -0
- package/dist/{chunk-FNTLKHZ7.js → chunk-JDN5SAAD.js} +7 -4
- package/dist/chunk-JDN5SAAD.js.map +1 -0
- package/dist/{chunk-GXEX4CBH.js → chunk-JIKNR5LX.js} +673 -484
- package/dist/chunk-JIKNR5LX.js.map +1 -0
- package/dist/{chunk-GRI4XHBJ.js → chunk-JWRCZIA4.js} +266 -108
- package/dist/chunk-JWRCZIA4.js.map +1 -0
- package/dist/{chunk-E576KYYT.js → chunk-KI4DOTN4.js} +25 -2
- package/dist/chunk-KI4DOTN4.js.map +1 -0
- package/dist/{chunk-ZB7D62OA.js → chunk-KUZVRJ7M.js} +3 -3
- package/dist/chunk-L4VFNFDL.js +248 -0
- package/dist/chunk-L4VFNFDL.js.map +1 -0
- package/dist/chunk-M2WC5MF7.js +127 -0
- package/dist/chunk-M2WC5MF7.js.map +1 -0
- package/dist/{chunk-O3JIAU3V.js → chunk-MCTC6HSE.js} +157 -103
- package/dist/chunk-MCTC6HSE.js.map +1 -0
- package/dist/{chunk-PXFXSFJL.js → chunk-NZ5JU6D3.js} +9 -9
- package/dist/{chunk-YRBR424R.js → chunk-OAUI273L.js} +338 -165
- package/dist/chunk-OAUI273L.js.map +1 -0
- package/dist/chunk-OGLS76RN.js +43 -0
- package/dist/chunk-OGLS76RN.js.map +1 -0
- package/dist/{chunk-7LVM22VG.js → chunk-OQCRCXCP.js} +6 -6
- package/dist/chunk-OQCRCXCP.js.map +1 -0
- package/dist/{chunk-OLGPYOLO.js → chunk-P6OS7652.js} +5 -2
- package/dist/chunk-P6OS7652.js.map +1 -0
- package/dist/chunk-Q5L5EGWZ.js +26 -0
- package/dist/chunk-Q5L5EGWZ.js.map +1 -0
- package/dist/{chunk-S433N3CT.js → chunk-QTHVHNJJ.js} +6 -36
- package/dist/chunk-QTHVHNJJ.js.map +1 -0
- package/dist/chunk-RPET332G.js +84 -0
- package/dist/chunk-RPET332G.js.map +1 -0
- package/dist/{chunk-646CA6RV.js → chunk-RQW5YMH7.js} +12 -4
- package/dist/chunk-RQW5YMH7.js.map +1 -0
- package/dist/{chunk-XALU5LCU.js → chunk-RWNYIU6A.js} +550 -146
- package/dist/chunk-RWNYIU6A.js.map +1 -0
- package/dist/chunk-SL7YUHPV.js +111 -0
- package/dist/chunk-SL7YUHPV.js.map +1 -0
- package/dist/chunk-U5PWXS3J.js +39 -0
- package/dist/chunk-U5PWXS3J.js.map +1 -0
- package/dist/chunk-ULDCFL2O.js +273 -0
- package/dist/chunk-ULDCFL2O.js.map +1 -0
- package/dist/{chunk-RWNSW4FM.js → chunk-UMNXCU3K.js} +12 -6
- package/dist/{chunk-RWNSW4FM.js.map → chunk-UMNXCU3K.js.map} +1 -1
- package/dist/chunk-VI7ZANB3.js +193 -0
- package/dist/chunk-VI7ZANB3.js.map +1 -0
- package/dist/chunk-VQPHPQ5L.js +14 -0
- package/dist/chunk-VQPHPQ5L.js.map +1 -0
- package/dist/chunk-WNJTJRM6.js +147 -0
- package/dist/chunk-WNJTJRM6.js.map +1 -0
- package/dist/chunk-WOBSEO75.js +790 -0
- package/dist/chunk-WOBSEO75.js.map +1 -0
- package/dist/{chunk-BMHS4WAN.js → chunk-XS7EX55U.js} +156 -42
- package/dist/chunk-XS7EX55U.js.map +1 -0
- package/dist/chunk-YN4W7LCX.js +31 -0
- package/dist/chunk-YN4W7LCX.js.map +1 -0
- package/dist/chunk-YSJOZEI6.js +1 -0
- package/dist/{chunk-JA2ZAT5Q.js → chunk-Z4PJMZLM.js} +2 -2
- package/dist/chunk-Z4PJMZLM.js.map +1 -0
- package/dist/{chunk-7VPQHEAJ.js → chunk-ZNZISJDZ.js} +6 -2
- package/dist/chunk-ZNZISJDZ.js.map +1 -0
- package/dist/chunk-ZWN3AODA.js +11 -0
- package/dist/chunk-ZWN3AODA.js.map +1 -0
- package/dist/cli/index.js +25 -10
- package/dist/cli/index.js.map +1 -1
- package/dist/client/core.d.ts +1 -1
- package/dist/client/core.js +2 -0
- package/dist/client/core.js.map +1 -1
- package/dist/client/index.d.ts +44 -10
- package/dist/client/index.js +35 -0
- package/dist/client/index.js.map +1 -1
- package/dist/cloudflare-SIG42OIW.js +335 -0
- package/dist/cloudflare-SIG42OIW.js.map +1 -0
- package/dist/config-support-WQHQIJTA.js +104 -0
- package/dist/config-support-WQHQIJTA.js.map +1 -0
- package/dist/{csrf-BBrEZSBW.d.ts → csrf-Dgot9qSM.d.ts} +1 -1
- package/dist/deno-deploy-LQAYOOPW.js +196 -0
- package/dist/deno-deploy-LQAYOOPW.js.map +1 -0
- package/dist/{dev-MUWJAZRD.js → dev-ANDSEVLB.js} +28 -18
- package/dist/dev-ANDSEVLB.js.map +1 -0
- package/dist/{dev-emit-GWD6IXV7.js → dev-emit-BFNMDCPB.js} +5 -5
- package/dist/{dev-emit-NBT6JD7R.js → dev-emit-MVAJAFGX.js} +5 -3
- package/dist/dev-emit-MVAJAFGX.js.map +1 -0
- package/dist/engine-singleton-X4R7AZBJ.js +315 -0
- package/dist/engine-singleton-X4R7AZBJ.js.map +1 -0
- package/dist/{generate-Y3GWM57K.js → generate-EN6EDITF.js} +43 -4
- package/dist/generate-EN6EDITF.js.map +1 -0
- package/dist/index-CzxtQcnp.d.ts +1058 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +24 -13
- package/dist/index.js.map +1 -1
- package/dist/{info-XW7HGUPH.js → info-Y55RWS42.js} +8 -6
- package/dist/{info-XW7HGUPH.js.map → info-Y55RWS42.js.map} +1 -1
- package/dist/{internal-api-V5L65YSJ.js → internal-api-IP35YU3G.js} +22 -12
- package/dist/{internal-api-WEOSTMSN.js → internal-api-OPU456AT.js} +30 -16
- package/dist/internal-api-OPU456AT.js.map +1 -0
- package/dist/load-config-4ATXQUN3.js +16 -0
- package/dist/match-DmGgxjIU.d.ts +44 -0
- package/dist/{mcp-ULUFJNSZ.js → mcp-5LLNAGKA.js} +7 -7
- package/dist/netlify-C2IRCZKI.js +245 -0
- package/dist/netlify-C2IRCZKI.js.map +1 -0
- package/dist/node-OSVPYQ3D.js +10 -0
- package/dist/nonce-BXt7Qu_C.d.ts +31 -0
- package/dist/observability-bootstrap-MZMSOE66.js +15 -0
- package/dist/{openapi-HZXR335W.js → openapi-VFPEZSRI.js} +13 -11
- package/dist/{openapi-HZXR335W.js.map → openapi-VFPEZSRI.js.map} +1 -1
- package/dist/{plugin-runner-BFEcgtmJ.d.ts → plugin-runner-BVMOSxvb.d.ts} +1 -1
- package/dist/{plugin-types-D69-lJZ9.d.ts → plugin-types-BUVfUQ0V.d.ts} +13 -1
- package/dist/preview-GHPT2EQ5.js +23 -0
- package/dist/preview-GHPT2EQ5.js.map +1 -0
- package/dist/provider-resolver-Dx6QuWrw.d.ts +128 -0
- package/dist/registry-KBZDCFVQ.js +23 -0
- package/dist/route-config-Cm_ZMA1C.d.ts +72 -0
- package/dist/route-policy-BxOycCDq.d.ts +65 -0
- package/dist/router/element-scroll-restoration.d.ts +28 -0
- package/dist/router/element-scroll-restoration.js +96 -0
- package/dist/router/element-scroll-restoration.js.map +1 -0
- package/dist/{routes-OLNQX7CT.js → routes-BPLU3ISV.js} +11 -9
- package/dist/{routes-OLNQX7CT.js.map → routes-BPLU3ISV.js.map} +1 -1
- package/dist/{scan-7MJC6PYU.js → scan-YJEE4KQK.js} +2 -2
- package/dist/{schema-ZO3OSWVG.js → schema-SOAD43RQ.js} +7 -5
- package/dist/schemas-4AXHQMV3.js +25 -0
- package/dist/schemas-4AXHQMV3.js.map +1 -0
- package/dist/security-headers-Ccj7ncNx.d.ts +129 -0
- package/dist/server/agent/index.d.ts +2 -90
- package/dist/server/agent/index.js +1 -1
- package/dist/server/auth/index.d.ts +2 -21
- package/dist/server/auth/index.js +3 -2
- package/dist/server/cron/index.js +4 -3
- package/dist/server/define/index.d.ts +51 -57
- package/dist/server/define/index.js +10 -1
- package/dist/server/http/index.d.ts +7 -5
- package/dist/server/http/index.js +56 -12
- package/dist/server/index.d.ts +47 -439
- package/dist/server/index.js +119 -201
- package/dist/server/index.js.map +1 -1
- package/dist/server/jobs/index.js +4 -3
- package/dist/server/observability/index.d.ts +109 -35
- package/dist/server/observability/index.js +10 -7
- package/dist/server/plugins/index.d.ts +3 -3
- package/dist/server/scan/index.d.ts +47 -12
- package/dist/server/scan/index.js +13 -4
- package/dist/server/security/index.d.ts +61 -103
- package/dist/server/security/index.js +15 -6
- package/dist/server/webhook/index.d.ts +90 -3
- package/dist/server/webhook/index.js +12 -2
- package/dist/server-boundary-6B4ZQUY7.js +148 -0
- package/dist/server-boundary-6B4ZQUY7.js.map +1 -0
- package/dist/server-boundary-7VZQRPPX.js +133 -0
- package/dist/server-boundary-7VZQRPPX.js.map +1 -0
- package/dist/{services-typed-client-PSAGRPFF.js → services-typed-client-XGT5SUUN.js} +2 -2
- package/dist/{start-KR2JJR7K.js → start-UZDMOT7I.js} +342 -111
- package/dist/start-UZDMOT7I.js.map +1 -0
- package/dist/{static-M2W4HUWS.js → static-SVDWIOXJ.js} +24 -13
- package/dist/static-SVDWIOXJ.js.map +1 -0
- package/dist/{theo-cloud-XAHWOUFK.js → theo-cloud-3ET4G5T6.js} +9 -2
- package/dist/theo-cloud-3ET4G5T6.js.map +1 -0
- package/dist/vercel-BMCQKCWE.js +277 -0
- package/dist/vercel-BMCQKCWE.js.map +1 -0
- package/dist/vite-plugin/index.js +24 -13
- package/dist/vite-plugin-VKCT2LF2.js +42 -0
- package/dist/vite-plugin-VKCT2LF2.js.map +1 -0
- package/package.json +19 -6
- package/dist/actions-virtual-module-YQXRSSMW.js.map +0 -1
- package/dist/agent-7JJW3TPB.js +0 -15
- package/dist/app-typed-client-G3J5G7E5.js.map +0 -1
- package/dist/app-typed-client-GHO3EWZK.js.map +0 -1
- package/dist/aws-lambda-CYNDGU5O.js +0 -172
- package/dist/aws-lambda-CYNDGU5O.js.map +0 -1
- package/dist/build-WU6AKKIB.js.map +0 -1
- package/dist/bun-33RD6K7O.js.map +0 -1
- package/dist/chunk-646CA6RV.js.map +0 -1
- package/dist/chunk-6E5WKMDS.js +0 -67
- package/dist/chunk-6E5WKMDS.js.map +0 -1
- package/dist/chunk-6GGWS7J3.js +0 -91
- package/dist/chunk-6GGWS7J3.js.map +0 -1
- package/dist/chunk-7LVM22VG.js.map +0 -1
- package/dist/chunk-7VPQHEAJ.js.map +0 -1
- package/dist/chunk-A7JBF5FO.js.map +0 -1
- package/dist/chunk-AM3QABW5.js +0 -161
- package/dist/chunk-AM3QABW5.js.map +0 -1
- package/dist/chunk-BIVCP6X5.js.map +0 -1
- package/dist/chunk-BMHS4WAN.js.map +0 -1
- package/dist/chunk-E576KYYT.js.map +0 -1
- package/dist/chunk-FB2HBNIC.js.map +0 -1
- package/dist/chunk-FNTLKHZ7.js.map +0 -1
- package/dist/chunk-GRI4XHBJ.js.map +0 -1
- package/dist/chunk-GVW5EKEU.js +0 -422
- package/dist/chunk-GVW5EKEU.js.map +0 -1
- package/dist/chunk-GXEX4CBH.js.map +0 -1
- package/dist/chunk-HBU2GIMZ.js.map +0 -1
- package/dist/chunk-IEES3CHD.js.map +0 -1
- package/dist/chunk-J5MXCGKA.js.map +0 -1
- package/dist/chunk-JA2ZAT5Q.js.map +0 -1
- package/dist/chunk-KD5G3YXI.js.map +0 -1
- package/dist/chunk-LNVMHQ2Z.js +0 -54
- package/dist/chunk-LNVMHQ2Z.js.map +0 -1
- package/dist/chunk-LXAESF4Y.js.map +0 -1
- package/dist/chunk-MTEWLGVY.js.map +0 -1
- package/dist/chunk-O3JIAU3V.js.map +0 -1
- package/dist/chunk-OJLL4YD6.js +0 -403
- package/dist/chunk-OJLL4YD6.js.map +0 -1
- package/dist/chunk-OLGPYOLO.js.map +0 -1
- package/dist/chunk-S433N3CT.js.map +0 -1
- package/dist/chunk-T5C46IIU.js.map +0 -1
- package/dist/chunk-U267AOWS.js +0 -28
- package/dist/chunk-U267AOWS.js.map +0 -1
- package/dist/chunk-UW2TEAGR.js +0 -77
- package/dist/chunk-UW2TEAGR.js.map +0 -1
- package/dist/chunk-WPJOTQA5.js +0 -1
- package/dist/chunk-XALU5LCU.js.map +0 -1
- package/dist/chunk-XR74JD4M.js +0 -457
- package/dist/chunk-XR74JD4M.js.map +0 -1
- package/dist/chunk-YGAXV5HR.js.map +0 -1
- package/dist/chunk-YRBR424R.js.map +0 -1
- package/dist/cloudflare-KYUWCEPL.js +0 -122
- package/dist/cloudflare-KYUWCEPL.js.map +0 -1
- package/dist/deno-deploy-CCTB7HGS.js +0 -107
- package/dist/deno-deploy-CCTB7HGS.js.map +0 -1
- package/dist/dev-MUWJAZRD.js.map +0 -1
- package/dist/dev-emit-NBT6JD7R.js.map +0 -1
- package/dist/generate-Y3GWM57K.js.map +0 -1
- package/dist/index-BEtEv6ZH.d.ts +0 -575
- package/dist/load-config-VKD6LKWU.js +0 -14
- package/dist/match-CfbEFRG4.d.ts +0 -26
- package/dist/netlify-AFMDNKT4.js +0 -150
- package/dist/netlify-AFMDNKT4.js.map +0 -1
- package/dist/node-ZJQEJSP3.js +0 -10
- package/dist/registry-GKR3EWRW.js +0 -23
- package/dist/start-KR2JJR7K.js.map +0 -1
- package/dist/static-M2W4HUWS.js.map +0 -1
- package/dist/theo-cloud-XAHWOUFK.js.map +0 -1
- package/dist/vercel-SRS2DH6O.js +0 -133
- package/dist/vercel-SRS2DH6O.js.map +0 -1
- package/dist/vite-plugin-VPJFD4HK.js +0 -36
- /package/dist/{chunk-WPJOTQA5.js.map → adapters/agent-mount.js.map} +0 -0
- /package/dist/{agent-7JJW3TPB.js.map → agent-GKUEL6OH.js.map} +0 -0
- /package/dist/{check-45NKUVSQ.js.map → check-GIPZBFTX.js.map} +0 -0
- /package/dist/{chunk-47CINLWF.js.map → chunk-44J2ANQC.js.map} +0 -0
- /package/dist/{chunk-ZB7D62OA.js.map → chunk-KUZVRJ7M.js.map} +0 -0
- /package/dist/{chunk-PXFXSFJL.js.map → chunk-NZ5JU6D3.js.map} +0 -0
- /package/dist/{internal-api-WEOSTMSN.js.map → chunk-YSJOZEI6.js.map} +0 -0
- /package/dist/{dev-emit-GWD6IXV7.js.map → dev-emit-BFNMDCPB.js.map} +0 -0
- /package/dist/{internal-api-V5L65YSJ.js.map → internal-api-IP35YU3G.js.map} +0 -0
- /package/dist/{load-config-VKD6LKWU.js.map → load-config-4ATXQUN3.js.map} +0 -0
- /package/dist/{mcp-ULUFJNSZ.js.map → mcp-5LLNAGKA.js.map} +0 -0
- /package/dist/{node-ZJQEJSP3.js.map → node-OSVPYQ3D.js.map} +0 -0
- /package/dist/{scan-7MJC6PYU.js.map → observability-bootstrap-MZMSOE66.js.map} +0 -0
- /package/dist/{registry-GKR3EWRW.js.map → registry-KBZDCFVQ.js.map} +0 -0
- /package/dist/{schema-ZO3OSWVG.js.map → scan-YJEE4KQK.js.map} +0 -0
- /package/dist/{vite-plugin-VPJFD4HK.js.map → schema-SOAD43RQ.js.map} +0 -0
- /package/dist/{services-typed-client-PSAGRPFF.js.map → services-typed-client-XGT5SUUN.js.map} +0 -0
package/dist/server/index.d.ts
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import { RouteConfig } from '
|
|
1
|
+
import { R as RouteConfig } from '../route-config-Cm_ZMA1C.js';
|
|
2
2
|
export { ActionAccept, ActionBuilder, ActionConfig, ChannelHandler, MiddlewareBuilder, MiddlewareHandler, PluginBuilder, RouteBuilder, ToolBuilder, WebChannelHandler, WebSocketBuilder, action, defineChannel, defineWebChannel, middleware, plugin, route, tool, uiMessageStreamResponse, websocket } from './define/index.js';
|
|
3
3
|
export { W as WebSocketHandler, a as WebSocketHandlerWeb, b as WebSocketLike } from '../define-websocket-DzPn1sR6.js';
|
|
4
4
|
export { C as CustomTool, D as DefineAgentToolSpec, T as ToolContextMessage, a as ToolHandlerContext, b as ToolTransform, c as applyTransform } from '../define-agent-tool-cRuSpidb.js';
|
|
5
|
+
export { A as AccessDecision, R as RoutePolicy, b as RoutePolicyInput, a as RouteSubject, e as evaluateRoutePolicy, r as requireOwner, s as subjectFromContext } from '../route-policy-BxOycCDq.js';
|
|
5
6
|
export { H as HEALTH_PATH, a as HealthRouteConfig, b as READY_PATH, c as ReadyRouteConfig, d as ReservedResponse, R as ReservedRoutes, e as defineHealthRoute, f as defineReadyRoute, s as serveReservedRoute } from '../health-route-C0hk64_U.js';
|
|
6
|
-
export { B as BATCH_PATH,
|
|
7
|
-
export { ActionNode, ActionScanError, LoadedManifest, ManifestAction, ManifestAgent, ManifestRoute, ManifestWebSocket, TheoManifest, WebSocketRouteNode, generateManifest, loadManifest, scanMiddlewares, scanServerActions, scanServerActionsEnriched, scanServerRoutes, scanWebSocketRoutes, writeManifest } from './scan/index.js';
|
|
8
|
-
export { L as LoadModule, S as ServerRouteNode, c as compilePattern, a as createProductionLoader, b as createViteLoader, m as matchRoute } from '../match-
|
|
9
|
-
|
|
10
|
-
export { AcpToolConfig, AppResource, AppResourceInput, ChannelMessage, ChannelWebhookConfig, CodeModeApi, CodeModeConfig, CodeModePermission, CodeModePermissionDeniedError, McpResourceContents, McpResourceDescriptor, NodeAcpTransport, ProviderDescriptor, ResolvedProvider, Sandbox, StdioStreams, VendorAgentClient, VendorAgentToolConfig, WorkflowLike, WorkflowToolConfig, buildResourceDescriptors, createACPTool, createCodeMode, createVendorAgentTool, createWorkflowTool, defineAppResource, extractAppResources, handleChannelWebhook, handleMcpStdioLine, isChannelPath, listProviders, parseChannelPath, readAppResource, registerProvider, resetProviderRegistry, resolveProvider, serveMcpStdio, tryResolveProvider } from './agent/index.js';
|
|
7
|
+
export { A as ActionError, a as ActionErrorCode, b as ActionInputError, c as ActionManifestEntry, d as ActionResult, B as BATCH_PATH, e as BatchExecuteFn, f as BatchPathConflictError, g as BatchPayload, h as BatchRequestItem, i as BatchResponse, j as BatchResultItem, k as BodyParserOptions, C as CookieOptions, l as CorsConfig, m as CorsHandler, n as CorsOrigin, o as CorsWebHandler, p as CustomErrorPages, E as ExecuteActionOptions, q as ExecuteRouteContext, F as FileTooLargeError, H as HandleBatchOptions, M as MAX_ERROR_HTML_BYTES, r as MiddlewareResult, N as NotFoundError, O as OpenApiDocsOptions, P as ParsedBody, s as ProcedureInput, t as ProcedureInputError, u as ProcedureOutputError, R as RawRouteInput, v as RouteInputChannel, w as RouteInputSchemas, x as RouteInputValidation, S as STRIPPED_HEADERS, y as SendErrorInput, z as SendErrorOptions, D as SerializedActionResult, T as TRACE_HEADER, G as TRACE_PARENT_HEADER, I as TheoError, J as TheoTransformer, U as UniversalZodIssue, K as UploadedFile, W as W3CTraceContext, _ as _resetMiddlewareCacheForTests, L as appendCookieToHeaders, Q as appendDeleteCookieToHeaders, V as callProcedure, X as createCorsHandler, Y as createCorsWebHandler, Z as createOpenApiHandler, $ as createServerContext, a0 as deleteCookie, a1 as envelopeCodeToStatus, a2 as executeAction, a3 as executeRoute, a4 as executeWebRequest, a5 as extractTraceId, a6 as extractTraceIdFromRequest, a7 as extractUniversalIssues, a8 as extractW3CTraceContext, a9 as fromUnknown, aa as getCookie, ab as getCookieFromRequest, ac as handleBatchRequest, ad as handleRequestError, ae as handleWebRequestError, af as isActionError, ag as isInputError, ah as jsonTransformer, ai as loadCustomErrorPages, aj as matchesOrigin, ak as parseCookieHeader, al as parseRequestBody, am as parseTraceparent, an as parseTraceparentContext, ao as resolveTransformer, ap as runMiddlewareAndContext, aq as sendError, ar as sendJson, as as serializeCookie, at as serveStaticFile, au as serverErrorToEnvelope, av as setCookie, aw as superjsonTransformer, ax as validateRouteInput } from '../index-CzxtQcnp.js';
|
|
8
|
+
export { ACTION_SCHEMAS_DIR, ActionNode, ActionScanError, LoadedManifest, ManifestAction, ManifestAgent, ManifestRoute, ManifestWebSocket, TheoManifest, WebSocketRouteNode, _resetRouteScanCacheForTests, compareRouteSpecificity, generateManifest, loadManifest, scanMiddlewares, scanServerActions, scanServerActionsEnriched, scanServerRoutes, scanWebSocketRoutes, writeManifest } from './scan/index.js';
|
|
9
|
+
export { L as LoadModule, S as ServerRouteNode, c as compilePattern, a as createProductionLoader, b as createViteLoader, m as matchRoute } from '../match-DmGgxjIU.js';
|
|
10
|
+
export { AcpToolConfig, AppResource, AppResourceInput, ChannelMessage, ChannelWebhookConfig, CodeModeApi, CodeModeConfig, CodeModePermission, CodeModePermissionDeniedError, McpResourceContents, McpResourceDescriptor, NodeAcpTransport, Sandbox, StdioStreams, VendorAgentClient, VendorAgentToolConfig, WorkflowLike, WorkflowToolConfig, buildResourceDescriptors, createACPTool, createCodeMode, createVendorAgentTool, createWorkflowTool, defineAppResource, extractAppResources, handleChannelWebhook, handleMcpStdioLine, isChannelPath, parseChannelPath, readAppResource, serveMcpStdio } from './agent/index.js';
|
|
11
11
|
export { InProcessApprovalRequest, InProcessApprovalRequiredError, InProcessAwaitApproval, StreamAgentTurnDeps, StreamAgentTurnInProcessInput, streamAgentTurnInProcess } from '@theokit/agents';
|
|
12
|
-
export {
|
|
12
|
+
export { P as ProviderDescriptor, R as ResolvedProvider, l as listProviders, a as registerProvider, b as resetProviderRegistry, r as resolveProvider, t as tryResolveProvider } from '../provider-resolver-Dx6QuWrw.js';
|
|
13
|
+
export { AuthRequiredError, BackupCode, BackupCodeOptions, OidcMetadata, PkceChallenge, SessionConfig, SessionManager, SessionManagerWeb, SessionMeta, ThrottleOptions, ThrottleState, TotpAlgorithm, TotpOptions, TotpUriOptions, VerifyTotpOptions, _resetKeyCacheForTests, assertProductionSecret, checkThrottle, clearOidcCache, createSessionManager, createSessionManagerWeb, decrypt, discoverOidcProvider, encrypt, generateBackupCodes, generateOAuthState, generatePkceChallenge, generateTotp, generateTotpSecret, pkceChallengeFromVerifier, recordAttempt, requireAuth, rotateIfNeeded, rotateIfNeededWeb, totpUri, verifyBackupCode, verifyOAuthState, verifyTotp } from './auth/index.js';
|
|
14
|
+
export { g as generateNonce } from '../nonce-BXt7Qu_C.js';
|
|
13
15
|
export { InMemoryUsageStorage, ToolHookEvent, ToolUsageRecord, TrackAgentRunInput, TrackAgentRunOptions, TrackAgentToolsHooks, TrackAgentToolsOptions, UsageQuery, UsageRecord, UsageResult, UsageStorageAdapter, trackAgentRun, trackAgentTools } from './cost/index.js';
|
|
14
16
|
export { InMemoryUsageStorage as NeutralUsageStorage } from '@theokit/agents/usage';
|
|
15
17
|
export { CRON_MANIFEST_SCHEMA_VERSION, CronConcurrencyPolicy, CronContext, CronDefinition, CronManifest, CronManifestEntry, CronNode, CronOptions, CronScheduler, DuplicateCronNameError, ExistingConfigUnparseableError, buildCronManifest, convertToAwsCron, createCronScheduler, defineCron, scanCronDirs, scanCrons, translateCronToAws, translateCronToCloudflare, translateCronToDeno, translateCronToVercel, validateCronSchedule, writeCronManifest } from './cron/index.js';
|
|
@@ -17,211 +19,32 @@ export { DuplicateContextKeyError, DuplicateJobNameError, EnqueueOptions, InMemo
|
|
|
17
19
|
export { J as JobBackend, a as JobEnqueueInput, b as JobLease, N as NonRetryableError } from '../job-backend-CgC8Xf33.js';
|
|
18
20
|
export { ConsoleObservabilityAdapter, LogLevel, LoggerFn, NoopObservabilityAdapter, NoopSpan, ObservabilityAdapter, RequestLog, SpanAttributes, SpanHandle, SpanImpl, StructuredLog, TheoCloudObservabilityAdapter, TheoLogger, _resetWarnOnceForTests, createLogger, createObservabilityPlugin, defineObservabilityAdapter, findSuggestion, levenshtein, logRequest, resolveAdapter, serializeSpansToOtlp, warnOnce } from './observability/index.js';
|
|
19
21
|
export { a as AuditEvent, A as AuditLogger, J as JsonStdoutSink, c as createNoOpLogger, s as safeAudit } from '../audit-log-BQWM5YLG.js';
|
|
20
|
-
export { D as DuplicateDecorationError, a as DuplicatePluginError, P as PluginRunner } from '../plugin-runner-
|
|
22
|
+
export { D as DuplicateDecorationError, a as DuplicatePluginError, P as PluginRunner } from '../plugin-runner-BVMOSxvb.js';
|
|
21
23
|
export { InvalidPluginShapeError, createPluginRunnerFromConfig } from './plugins/index.js';
|
|
22
24
|
export { R as RateLimitConfig, a as RateLimitResult, c as createRateLimiter, b as createRateLimiterWeb } from '../rate-limit-BdNDZ3vt.js';
|
|
23
25
|
export { I as InMemoryStore, a as RateLimitState, R as RateLimitStore } from '../rate-limit-store-BEJnhWdw.js';
|
|
24
26
|
export { DeriveKeyRequestContext, KeyByMode, RouteRateLimitConfig, createRouteRateLimiter, createRouteRateLimiterWeb, deriveKey, deriveKeyFromRequest, matchRoutePattern } from './rate-limit/index.js';
|
|
25
27
|
export { ChannelManager } from './realtime/index.js';
|
|
26
|
-
export { CSP_REPORT_PATH, CSRF_READINESS_PATH, CSRF_READINESS_RESET_PATH,
|
|
27
|
-
export {
|
|
28
|
+
export { CSP_REPORT_PATH, CSRF_READINESS_PATH, CSRF_READINESS_RESET_PATH, CspReportHandlerOptions, CspViolation, CsrfDecision, CsrfMultiHeaderOptions, applySecurityHeaders, evaluateCsrfMultiHeaderRequest, handleCspReport, handleCspReportRequest, handleCsrfReadiness, handleCsrfReadinessRequest, isCsrfOriginAllowed, matchWildcardDomain, normalizeLegacy, normalizeNew } from './security/index.js';
|
|
29
|
+
export { a as CSRF_WARN_CODE, b as CSRF_WARN_DOCS_URL, c as CsrfLogger, C as CsrfMode, d as CsrfWarnPayload, D as DisallowedConfig, e as enforceCsrf, m as matchDisallowed, v as validateCsrf, f as validateCsrfRequest } from '../csrf-Dgot9qSM.js';
|
|
28
30
|
export { a as CsrfReadinessRouteSummary, C as CsrfReadinessStore, b as CsrfReadinessSummary, c as CsrfWarnRecord } from '../csrf-readiness-store-CjIoub3U.js';
|
|
29
31
|
export { P as PostgresFactory, R as RedisFactory, S as StorageManager, g as getStorageManager } from '../storage-manager-C6hmsaer.js';
|
|
30
32
|
export { Db0Database, UnstorageInstance, useDatabase, useUnstorage } from './storage/index.js';
|
|
31
33
|
export { G as GenericFactory, a as PoolLike, P as PostgresDatabaseConfig, c as RedisLike, R as RedisServerConfig, S as ServerConfig, d as StorageAdapter, b as StorageConfig, T as TlsConfig } from '../storage-types-DsDTCPbp.js';
|
|
32
|
-
export { BodyTooLargeError, DEFAULT_MAX_BODY_BYTES, RawBodyResult, ReadRawBodyOptions, defineWebhook, dispatchWebhook, readRawBody, timingSafeEqual } from './webhook/index.js';
|
|
34
|
+
export { BodyTooLargeError, DEFAULT_MAX_BODY_BYTES, DiscordWebhookOptions, GitHubWebhookOptions, RawBodyResult, ReadRawBodyOptions, SlackWebhookOptions, StripeWebhookOptions, TelegramWebhookOptions, defineWebhook, discord, dispatchWebhook, github, readRawBody, slack, stripe, telegram, timingSafeEqual } from './webhook/index.js';
|
|
33
35
|
export { D as DefineWebhookOptions, V as VerifyFn, a as VerifyResult, W as WebhookContext, b as WebhookDefinition } from '../webhook-types-DGIjjcaI.js';
|
|
34
36
|
import { z } from 'zod';
|
|
35
|
-
|
|
36
|
-
import { W as WebOnRequestHook, b as WebPreHandlerHook, c as WebOnResponseHook, d as WebOnErrorHook } from '../plugin-types-D69-lJZ9.js';
|
|
37
|
-
export { e as HookName, H as HookResult, O as OnErrorHook, f as OnRequestHook, g as OnResponseHook, P as PluginContext, h as PluginErrorContext, i as PreHandlerHook, R as RunHookOptions, a as TheoApp, T as TheoPlugin } from '../plugin-types-D69-lJZ9.js';
|
|
37
|
+
export { b as HookName, H as HookResult, O as OnErrorHook, c as OnRequestHook, d as OnResponseHook, P as PluginContext, e as PluginErrorContext, f as PreHandlerHook, R as RunHookOptions, a as TheoApp, T as TheoPlugin } from '../plugin-types-BUVfUQ0V.js';
|
|
38
38
|
export { ComposeInstructionsOptions, ComposedInstructions, ConfigLayer, ContextPressure, ContextPressureThresholdError, ContextPressureThresholds, CustomCommand, CustomCommandsResult, DEFAULT_CONTEXT_PRESSURE_THRESHOLDS, InstructionBlock, InstructionSource, InstructionTree, InstructionTreeBudget, LayerOutOfOrderError, LayeredConfig, LayeredConfigInput, LayeredConfigResult, LoadCustomCommandsInput, LoadInstructionTreeInput, ParsedFrontmatter, PrecedenceReport, ProvenancePerKey, TrustRecord, TrustStore, TrustStorePermissionsError, composeInstructions, contextPressure, effectiveContextWindow, frontmatterValue, loadCustomCommands, loadInstructionTree, splitFrontmatter } from '@theokit/agents/config';
|
|
39
39
|
export { a as ServiceDefinition, S as ServicesConfig, b as ServicesConfigInput, c as ServicesConfigOutput } from '../schema-BdakLtuC.js';
|
|
40
|
+
export { C as CspMode, D as DEFAULT_CSP, a as DEFAULT_PERMISSIONS_POLICY, c as SecurityEnv, S as SecurityHeadersConfig, d as SecurityHeadersOptions, b as buildSecurityHeaders } from '../security-headers-Ccj7ncNx.js';
|
|
40
41
|
import '@theokit/presenter/wire';
|
|
42
|
+
import 'node:http';
|
|
43
|
+
import '../error-envelope-DG47lt8E.js';
|
|
44
|
+
import '../agent-scan-BZa-pagG.js';
|
|
41
45
|
import 'vite';
|
|
42
46
|
import '@theokit/sdk';
|
|
43
47
|
|
|
44
|
-
/**
|
|
45
|
-
* Action protocol — cross-boundary contract for `defineAction` + `useAction`.
|
|
46
|
-
*
|
|
47
|
-
* Per plan g3-server-actions-and-useaction v1.2 § Phase 0 / T0.1, ADRs D1 (encoding)
|
|
48
|
-
* + D6 (full dot-notation path) + D7 (PII mask) — types and runtime referenced
|
|
49
|
-
* by server (`server/http/action-execute.ts`, `server/define/define-action.ts`)
|
|
50
|
-
* and client (`@theokit/react/useAction`, `vite-plugin/actions-virtual-module`).
|
|
51
|
-
*
|
|
52
|
-
* Lives in `core/contracts/` per architecture.md v3.1 exception — cross-module
|
|
53
|
-
* deep imports ALLOWED for this file. Core depends on NOTHING intra-monorepo;
|
|
54
|
-
* `extractUniversalIssues` is implemented INLINE (NOT imported from `@theokit/sdk`)
|
|
55
|
-
* to honor dep-cruiser `core-depends-on-nothing` invariant (EC-1 absorbed).
|
|
56
|
-
*
|
|
57
|
-
* Field-key convention (D6 + EC-13): dot-notation full path. Nested objects use
|
|
58
|
-
* `'user.address.zip'`; array indices use `'items.0.name'` (NOT bracket
|
|
59
|
-
* `'items[0].name'`). Root-level errors (path = []) use empty string `''`
|
|
60
|
-
* (EC-7). Consumers needing bracket notation can write a small `dotToBracket`
|
|
61
|
-
* helper in userland.
|
|
62
|
-
*/
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* HTTP-status mapping per IANA HTTP Status Code Registry (subset relevant to
|
|
66
|
-
* action surface). VALIDATION_ERROR → 422 is preferred over Astro's BAD_REQUEST/400
|
|
67
|
-
* (more semantic for input-shape mismatch). PAYLOAD_TOO_LARGE → 413 covers EC-3
|
|
68
|
-
* (response-side size limit; request-side reuses standard 413).
|
|
69
|
-
*/
|
|
70
|
-
type ActionErrorCode = 'VALIDATION_ERROR' | 'BAD_REQUEST' | 'UNAUTHORIZED' | 'FORBIDDEN' | 'NOT_FOUND' | 'METHOD_NOT_ALLOWED' | 'CONFLICT' | 'CONTENT_TOO_LARGE' | 'PAYLOAD_TOO_LARGE' | 'UNSUPPORTED_MEDIA_TYPE' | 'TOO_MANY_REQUESTS' | 'INTERNAL_SERVER_ERROR';
|
|
71
|
-
/**
|
|
72
|
-
* Universal zod issue shape covering BOTH v3 (`z.ZodIssue`) and v4 (`$ZodIssue`).
|
|
73
|
-
* Duck-typed minimum surface: `{path, message}`. Implemented per EC-1 absorbed —
|
|
74
|
-
* consumers chain may ship either zod major; constructor accepts `unknown` and
|
|
75
|
-
* normalizes via `extractUniversalIssues`.
|
|
76
|
-
*/
|
|
77
|
-
interface UniversalZodIssue {
|
|
78
|
-
readonly path: readonly (string | number)[];
|
|
79
|
-
readonly message: string;
|
|
80
|
-
readonly code?: string;
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* `ActionError` — general server-side action failure. Discriminator `type` is
|
|
84
|
-
* literal `'TheoActionError'`; used by `ActionError.fromJson` to distinguish
|
|
85
|
-
* from `ActionInputError`.
|
|
86
|
-
*/
|
|
87
|
-
declare class ActionError extends Error {
|
|
88
|
-
readonly type: 'TheoActionError' | 'TheoActionInputError';
|
|
89
|
-
readonly code: ActionErrorCode;
|
|
90
|
-
readonly status: number;
|
|
91
|
-
constructor(params: {
|
|
92
|
-
code: ActionErrorCode;
|
|
93
|
-
message?: string;
|
|
94
|
-
stack?: string;
|
|
95
|
-
});
|
|
96
|
-
/**
|
|
97
|
-
* G5 T2.4 — canonical envelope view of the action error. Maps the G3
|
|
98
|
-
* ActionErrorCode to a canonical TheoErrorCode (VALIDATION_ERROR ↔
|
|
99
|
-
* UNPROCESSABLE_ENTITY, CONTENT_TOO_LARGE ↔ PAYLOAD_TOO_LARGE) so consumer
|
|
100
|
-
* UI / SDK code can switch on the unified envelope.
|
|
101
|
-
*
|
|
102
|
-
* Subclasses override to populate `ext` (see `ActionInputError.envelope`).
|
|
103
|
-
*/
|
|
104
|
-
get envelope(): TheoErrorEnvelope;
|
|
105
|
-
/**
|
|
106
|
-
* Translate G3 ActionErrorCode → canonical TheoErrorCode (blueprint
|
|
107
|
-
* Recommendations § "G3 ActionError becomes inaugural envelope user").
|
|
108
|
-
*/
|
|
109
|
-
static toTheoErrorCode(code: ActionErrorCode): TheoErrorCode;
|
|
110
|
-
static codeToStatus(code: ActionErrorCode): number;
|
|
111
|
-
static statusToCode(status: number): ActionErrorCode;
|
|
112
|
-
/**
|
|
113
|
-
* Parse a serialized error JSON back into the typed class hierarchy.
|
|
114
|
-
* Distinguishes `TheoActionInputError` (with `issues` array) from
|
|
115
|
-
* `TheoActionError` via the `type` discriminator. Falls back to
|
|
116
|
-
* `INTERNAL_SERVER_ERROR` for malformed bodies (non-object, missing
|
|
117
|
-
* `type`, unknown `code`).
|
|
118
|
-
*/
|
|
119
|
-
static fromJson(body: unknown): ActionError;
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* `ActionInputError` — validation failure with field-level mapping.
|
|
123
|
-
*
|
|
124
|
-
* `fields` is auto-derived from `issues`: for each issue, key = full
|
|
125
|
-
* dot-notation path (`'user.address.zip'`; root-level `path:[]` → `''`;
|
|
126
|
-
* array indices as numeric segments → `'items.0.name'`). Multiple messages
|
|
127
|
-
* for the same key accumulate; duplicate (path, message) tuples are deduped.
|
|
128
|
-
*/
|
|
129
|
-
declare class ActionInputError extends ActionError {
|
|
130
|
-
readonly type: "TheoActionInputError";
|
|
131
|
-
readonly issues: readonly UniversalZodIssue[];
|
|
132
|
-
readonly fields: Record<string, string[]>;
|
|
133
|
-
constructor(rawIssues: unknown);
|
|
134
|
-
/**
|
|
135
|
-
* G5 T2.4 — envelope view with ValidationFieldsExt populated from .fields.
|
|
136
|
-
* UI consumers can `switch (env.code)` on `UNPROCESSABLE_ENTITY` and read
|
|
137
|
-
* `(env.ext as ValidationFieldsExt).fields` for field-level rendering.
|
|
138
|
-
*/
|
|
139
|
-
get envelope(): TheoErrorEnvelope<ValidationFieldsExt>;
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* Normalize zod v3 (`z.ZodIssue`) and v4 (`$ZodIssue`) raw issues to
|
|
143
|
-
* `UniversalZodIssue[]` (EC-1 absorbed). Duck-typed on `{path, message}` —
|
|
144
|
-
* does NOT import zod types (`core/contracts/` depends on no intra-monorepo
|
|
145
|
-
* + zod is consumer-controlled across the boundary).
|
|
146
|
-
*
|
|
147
|
-
* Silently skips entries missing required fields or shape mismatches; returns
|
|
148
|
-
* empty array on non-array input.
|
|
149
|
-
*/
|
|
150
|
-
declare function extractUniversalIssues(raw: unknown): UniversalZodIssue[];
|
|
151
|
-
/**
|
|
152
|
-
* Type guard for `ActionError` (and its subclass `ActionInputError`). True
|
|
153
|
-
* iff the value is an instance of `ActionError`. Use `isInputError` to
|
|
154
|
-
* narrow specifically to validation failures.
|
|
155
|
-
*/
|
|
156
|
-
declare function isActionError(value: unknown): value is ActionError;
|
|
157
|
-
/**
|
|
158
|
-
* Type guard narrowing to `ActionInputError`. Requires `instanceof` check
|
|
159
|
-
* (not duck-typing on `type`) to prevent attacker-controlled JSON from
|
|
160
|
-
* being mistaken for a real error instance.
|
|
161
|
-
*/
|
|
162
|
-
declare function isInputError(value: unknown): value is ActionInputError;
|
|
163
|
-
/**
|
|
164
|
-
* `ActionResult<TData, TError>` — discriminated union returned by client-side
|
|
165
|
-
* action invocation. Either `{data, error: undefined}` (success) or
|
|
166
|
-
* `{data: undefined, error}` (failure). Mirrors Astro `SafeResult` shape.
|
|
167
|
-
*/
|
|
168
|
-
type ActionResult<TData = unknown, TError extends ActionError = ActionError> = {
|
|
169
|
-
data: TData;
|
|
170
|
-
error: undefined;
|
|
171
|
-
} | {
|
|
172
|
-
data: undefined;
|
|
173
|
-
error: TError;
|
|
174
|
-
};
|
|
175
|
-
/**
|
|
176
|
-
* `SerializedActionResult` — wire-shape emitted by `serializeActionResult`
|
|
177
|
-
* in `server/http/serialize-action-result.ts` (T1.3). Discriminator `type`
|
|
178
|
-
* distinguishes data (devalue-encoded), error (JSON), and empty (204) cases.
|
|
179
|
-
*/
|
|
180
|
-
type SerializedActionResult = {
|
|
181
|
-
type: 'data';
|
|
182
|
-
status: number;
|
|
183
|
-
contentType: 'application/json+devalue';
|
|
184
|
-
body: string;
|
|
185
|
-
} | {
|
|
186
|
-
type: 'error';
|
|
187
|
-
status: number;
|
|
188
|
-
contentType: 'application/json';
|
|
189
|
-
body: string;
|
|
190
|
-
} | {
|
|
191
|
-
type: 'empty';
|
|
192
|
-
status: 204;
|
|
193
|
-
};
|
|
194
|
-
/**
|
|
195
|
-
* `ActionManifestEntry` — per-action metadata emitted by `action-scan.ts`
|
|
196
|
-
* (T1.4) into `.theokit/actions-manifest.json`. Consumed by virtual module
|
|
197
|
-
* `@theo/actions` (T3.1) and G4 devtools "Actions" tab (T5.1).
|
|
198
|
-
*/
|
|
199
|
-
interface ActionManifestEntry {
|
|
200
|
-
readonly name: string;
|
|
201
|
-
readonly filePath: string;
|
|
202
|
-
readonly urlPath: string;
|
|
203
|
-
readonly accept: 'form' | 'json';
|
|
204
|
-
readonly hasInput: boolean;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
interface OpenApiDocsOptions {
|
|
208
|
-
/** Path to serve Scalar UI (default: '/api/docs'). */
|
|
209
|
-
docsPath?: string;
|
|
210
|
-
/** Path to serve the JSON spec (default: '/api/docs/openapi.json'). */
|
|
211
|
-
openapiJsonPath?: string;
|
|
212
|
-
/** Path to the spec file on disk (default: '.theokit/openapi.json'). */
|
|
213
|
-
specFilePath?: string;
|
|
214
|
-
/** Page title (default: 'API Reference'). */
|
|
215
|
-
pageTitle?: string;
|
|
216
|
-
/** Scalar CDN URL (default: jsdelivr). Must be HTTPS. */
|
|
217
|
-
cdnUrl?: string;
|
|
218
|
-
}
|
|
219
|
-
/**
|
|
220
|
-
* Creates a request handler that serves OpenAPI docs.
|
|
221
|
-
* Returns `null` for non-matching requests (passthrough).
|
|
222
|
-
*/
|
|
223
|
-
declare function createOpenApiHandler(opts?: OpenApiDocsOptions): (request: Request) => Response | null;
|
|
224
|
-
|
|
225
48
|
/**
|
|
226
49
|
* A cached value persisted by a CacheStorageAdapter.
|
|
227
50
|
*
|
|
@@ -296,13 +119,30 @@ interface CacheStoreAdmin {
|
|
|
296
119
|
type CacheStorageAdapter = CacheStore & Partial<CacheStoreAdmin>;
|
|
297
120
|
|
|
298
121
|
type CacheStatus = 'hit' | 'stale' | 'miss';
|
|
122
|
+
/**
|
|
123
|
+
* Process-wide fallbacks for the options a cache wrapper takes per call site.
|
|
124
|
+
*
|
|
125
|
+
* The engine reads none of them: `getOrCompute` and `tryReadCached` always
|
|
126
|
+
* receive explicit values. They are carried here because the engine is the one
|
|
127
|
+
* object every wrapper (`defineCachedRoute`) already holds, and a wrapper with
|
|
128
|
+
* no declared value has nowhere else to look. Per-call-site options always win.
|
|
129
|
+
*
|
|
130
|
+
* Shaped to accept `NormalizedCacheConfig['defaults']` whole (#352): every field
|
|
131
|
+
* the config schema declares is honoured, none is dropped on the way in.
|
|
132
|
+
*/
|
|
133
|
+
interface CacheDefaults {
|
|
134
|
+
/** seconds; fallback for a wrapper that declares no `maxAge`. */
|
|
135
|
+
maxAge?: number;
|
|
136
|
+
/** seconds; fallback stale-while-revalidate window. */
|
|
137
|
+
swr?: number;
|
|
138
|
+
/** whether responses with status >= 400 may be cached. */
|
|
139
|
+
cacheErrors?: boolean;
|
|
140
|
+
/** version stamp applied to entries written without an explicit one. */
|
|
141
|
+
cacheVersion?: string;
|
|
142
|
+
}
|
|
299
143
|
interface CacheEngineOptions {
|
|
300
144
|
storage: CacheStorageAdapter;
|
|
301
|
-
defaults?:
|
|
302
|
-
maxAge?: number;
|
|
303
|
-
swr?: number;
|
|
304
|
-
cacheVersion?: string;
|
|
305
|
-
};
|
|
145
|
+
defaults?: CacheDefaults;
|
|
306
146
|
onError?: (err: unknown, ctx: {
|
|
307
147
|
phase: 'get' | 'set' | 'revalidate';
|
|
308
148
|
key: string;
|
|
@@ -353,6 +193,11 @@ interface CacheEngine {
|
|
|
353
193
|
revalidatePath(path: string, type?: 'layout' | 'page'): Promise<number>;
|
|
354
194
|
/** Storage adapter passthrough (read-only access for diagnostics). */
|
|
355
195
|
readonly storage: CacheStorageAdapter;
|
|
196
|
+
/**
|
|
197
|
+
* Process-wide defaults the wrappers fall back to. Normalized to `{}` when the
|
|
198
|
+
* factory received none, so a caller never has to guard the access.
|
|
199
|
+
*/
|
|
200
|
+
readonly defaults: CacheDefaults;
|
|
356
201
|
}
|
|
357
202
|
/**
|
|
358
203
|
* Build a cache engine wrapping a storage adapter.
|
|
@@ -448,7 +293,7 @@ interface CachedRouteConfig<TQuery extends z.ZodType = z.ZodUndefined, TBody ext
|
|
|
448
293
|
* 2. Derive key (path + sortedQuery + varies, prefix by method)
|
|
449
294
|
* 3. Cache lookup → HIT/STALE return cached Response
|
|
450
295
|
* 4. Miss → run handler, check cacheability (Set-Cookie / status / size / SSE / streaming)
|
|
451
|
-
* 5. Cacheable → write entry + return Response with X-Theo-Cache: MISS
|
|
296
|
+
* 5. Cacheable → write entry + return Response with X-Theo-Cache: MISS
|
|
452
297
|
* 6. Not cacheable → return original Response unchanged
|
|
453
298
|
*
|
|
454
299
|
* Concurrent dedupe is INTENTIONALLY NOT used for routes — Response objects
|
|
@@ -654,33 +499,6 @@ declare const THEO_T_PREFIX = "_THEO_T_";
|
|
|
654
499
|
declare const DEFAULT_MAX_AGE = 1;
|
|
655
500
|
declare const DEFAULT_SWR_MULTIPLIER = 60;
|
|
656
501
|
|
|
657
|
-
interface UploadedFile {
|
|
658
|
-
fieldname: string;
|
|
659
|
-
filename: string;
|
|
660
|
-
encoding: string;
|
|
661
|
-
mimeType: string;
|
|
662
|
-
buffer: Buffer;
|
|
663
|
-
size: number;
|
|
664
|
-
}
|
|
665
|
-
interface ParsedBody {
|
|
666
|
-
fields: Record<string, string>;
|
|
667
|
-
files: UploadedFile[];
|
|
668
|
-
json?: unknown;
|
|
669
|
-
}
|
|
670
|
-
interface BodyParserOptions {
|
|
671
|
-
maxFileSize?: number;
|
|
672
|
-
maxFiles?: number;
|
|
673
|
-
maxFieldSize?: number;
|
|
674
|
-
}
|
|
675
|
-
declare class FileTooLargeError extends Error {
|
|
676
|
-
readonly truncatedFilenames: string[];
|
|
677
|
-
readonly maxFileSize: number;
|
|
678
|
-
readonly code = "FILE_TOO_LARGE";
|
|
679
|
-
readonly status = 413;
|
|
680
|
-
constructor(message: string, truncatedFilenames: string[], maxFileSize: number);
|
|
681
|
-
}
|
|
682
|
-
declare function parseRequestBody(req: IncomingMessage, options?: BodyParserOptions): Promise<ParsedBody>;
|
|
683
|
-
|
|
684
502
|
interface SerializedResponse {
|
|
685
503
|
json: unknown;
|
|
686
504
|
meta?: unknown;
|
|
@@ -694,216 +512,6 @@ declare function serializeResponse(data: unknown): SerializedResponse;
|
|
|
694
512
|
*/
|
|
695
513
|
declare function deserializeResponse(serialized: SerializedResponse): unknown;
|
|
696
514
|
|
|
697
|
-
/**
|
|
698
|
-
* T3.2 — Web-Standards middleware runner for the `executeWebRequest` path.
|
|
699
|
-
*
|
|
700
|
-
* The Node request path (`http/execute.ts`) runs middleware via
|
|
701
|
-
* `runMiddlewareAndContext`, which is coupled to Node `req`/`res`. Per G8
|
|
702
|
-
* (Web Standards over Node APIs) the Web path needs a `Request`-shaped runner;
|
|
703
|
-
* this is it. Extracted to a sibling so `web-handler.ts` stays under its LoC
|
|
704
|
-
* budget (G6).
|
|
705
|
-
*
|
|
706
|
-
* Ordering invariant (EC-3): the caller runs the CSRF gate BEFORE invoking this
|
|
707
|
-
* runner, mirroring the Node path (CSRF stage precedes user middleware).
|
|
708
|
-
*
|
|
709
|
-
* NOTE (D4 / EC-12): this is its own middleware contract — `(request, context)`.
|
|
710
|
-
* Full semantic parity with the Node `defineMiddleware` contract is part of the
|
|
711
|
-
* deferred Node→Web pipeline convergence, not this slice.
|
|
712
|
-
*/
|
|
713
|
-
/** A Web-path middleware: mutate `context`, or return a `Response` to short-circuit. */
|
|
714
|
-
type WebMiddleware = (request: Request, context: Record<string, unknown>) => Promise<Response | undefined> | Response | undefined | void;
|
|
715
|
-
|
|
716
|
-
/**
|
|
717
|
-
* The route module exported by a `server/routes/*.ts` file (after T2.6 G6
|
|
718
|
-
* router lockdown). Method-named exports map to `defineRoute` results.
|
|
719
|
-
*/
|
|
720
|
-
type WebRouteModule = Partial<Record<'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE', unknown>>;
|
|
721
|
-
/**
|
|
722
|
-
* Optional behavior knobs for `executeWebRequest`. Each knob defaults to
|
|
723
|
-
* the safe "no-op" stance so existing Phase A consumers (T1.2 fixture
|
|
724
|
-
* tests) keep working unchanged.
|
|
725
|
-
*
|
|
726
|
-
* **`csrfMode`** (T5a.2 Phase B slice 1/6) — when set to `'strict'`, the
|
|
727
|
-
* Web-Standards request gate runs `validateCsrfRequest` BEFORE method
|
|
728
|
-
* dispatch on state-changing methods (POST/PUT/PATCH/DELETE) and emits a
|
|
729
|
-
* `403 FORBIDDEN` envelope when the check fails. Default: `'off'` (no
|
|
730
|
-
* CSRF enforcement) to preserve Phase A backward compat. Production
|
|
731
|
-
* consumers SHOULD pass `csrfMode: 'strict'`.
|
|
732
|
-
*
|
|
733
|
-
* Per the T5a.2 plan v1.0 § Phase B header-only leaves: csrf.ts is the
|
|
734
|
-
* first leaf to be migrated (slice 1/6); 5 more sibling leaves remain
|
|
735
|
-
* (csrf-multi-header, csrf-readiness-endpoint, csp-report, cors, cookies).
|
|
736
|
-
*/
|
|
737
|
-
interface ExecuteWebRequestOptions {
|
|
738
|
-
csrfMode?: 'off' | 'strict';
|
|
739
|
-
/**
|
|
740
|
-
* T3.1 — route params resolved upstream by `matchRoute` (e.g. `{ id: '42' }`
|
|
741
|
-
* for `/users/:id`). Threaded to the handler's `params` input and validated
|
|
742
|
-
* against `config.params` (Zod) when declared. Defaults to `{}` — callers
|
|
743
|
-
* that don't supply params keep the prior behavior (additive, backward-compat).
|
|
744
|
-
*/
|
|
745
|
-
params?: Record<string, string>;
|
|
746
|
-
/**
|
|
747
|
-
* T3.2 — Web-Standards middleware chain. Runs in order AFTER the CSRF gate
|
|
748
|
-
* (EC-3) and BEFORE the handler. A middleware returning a `Response`
|
|
749
|
-
* short-circuits (handler not reached); mutating `context` passes data to
|
|
750
|
-
* the handler. Omitted → zero overhead (handler runs directly).
|
|
751
|
-
*/
|
|
752
|
-
middleware?: readonly WebMiddleware[];
|
|
753
|
-
/**
|
|
754
|
-
* T5a.2 Phase E — body parser strategy.
|
|
755
|
-
*
|
|
756
|
-
* - `'inline'` (default): handle `application/json` + `text/*` only.
|
|
757
|
-
* Returns the parsed value (object for JSON, string for text). Other
|
|
758
|
-
* content-types (e.g., multipart) return `undefined`.
|
|
759
|
-
* - `'full'`: delegate to `parseWebRequestBody` for multipart support
|
|
760
|
-
* + per-file size caps + max-files cap (Web Standards `request.formData()`
|
|
761
|
-
* under the hood). Returns a `ParsedWebBody` object:
|
|
762
|
-
* `{ json?, fields, files }`. Multipart consumers MUST opt into this
|
|
763
|
-
* mode; JSON-only routes pay zero cost staying on `'inline'`.
|
|
764
|
-
*/
|
|
765
|
-
bodyParser?: 'inline' | 'full';
|
|
766
|
-
/**
|
|
767
|
-
* T5a.2 Phase G slice 1/N — plugin lifecycle hooks.
|
|
768
|
-
*
|
|
769
|
-
* Adapters (Node, CF Workers, Bun, Deno) wire `WebPluginContext`-shaped
|
|
770
|
-
* hooks at the executeWebRequest lifecycle. Lifecycle order mirrors the
|
|
771
|
-
* Fastify / Hono convention:
|
|
772
|
-
*
|
|
773
|
-
* 1. CSRF check (when opts.csrfMode === 'strict')
|
|
774
|
-
* 2. onRequest — earliest, before body parsing. Plugins can short-circuit
|
|
775
|
-
* by setting `ctx.response` (handler skipped; subsequent hooks see
|
|
776
|
-
* the short-circuit response).
|
|
777
|
-
* 3. body parse (inline OR full per opts.bodyParser)
|
|
778
|
-
* 4. preHandler — after body parsed, before handler runs. Same
|
|
779
|
-
* short-circuit semantic.
|
|
780
|
-
* 5. handler invocation
|
|
781
|
-
* 6. onResponse — after handler returns OR after a hook short-circuit.
|
|
782
|
-
* `ctx.response` is populated.
|
|
783
|
-
* 7. onError — fires if any of (handler, onRequest, preHandler) throws.
|
|
784
|
-
* `ctx.response` is the envelope-shaped error response built via
|
|
785
|
-
* serverErrorToEnvelope.
|
|
786
|
-
*
|
|
787
|
-
* `responseHeaders` is shared across hooks; the final Response merges
|
|
788
|
-
* them with the handler's Response headers (handler headers win on
|
|
789
|
-
* conflict; hook headers add new ones). Decorations made via
|
|
790
|
-
* `ctx.ctx[key] = value` persist across hooks (request-scoped state).
|
|
791
|
-
*
|
|
792
|
-
* `hooks: undefined` (default) → no plugin lifecycle, Phase A behavior
|
|
793
|
-
* preserved. Production consumers wire via the WebPluginRunner facade
|
|
794
|
-
* (a future Phase G slice).
|
|
795
|
-
*/
|
|
796
|
-
hooks?: {
|
|
797
|
-
onRequest?: readonly WebOnRequestHook[];
|
|
798
|
-
preHandler?: readonly WebPreHandlerHook[];
|
|
799
|
-
onResponse?: readonly WebOnResponseHook[];
|
|
800
|
-
onError?: readonly WebOnErrorHook[];
|
|
801
|
-
};
|
|
802
|
-
/**
|
|
803
|
-
* Stable request identifier propagated into hook contexts. Adapters
|
|
804
|
-
* resolve via traceparent / x-request-id / generated UUID (see
|
|
805
|
-
* `extractTraceIdFromRequest` from Phase C slice 1/2). Default:
|
|
806
|
-
* `globalThis.crypto.randomUUID()`.
|
|
807
|
-
*/
|
|
808
|
-
requestId?: string;
|
|
809
|
-
}
|
|
810
|
-
declare function executeWebRequest(request: Request, routeModule: WebRouteModule, opts?: ExecuteWebRequestOptions): Promise<Response>;
|
|
811
|
-
|
|
812
|
-
/**
|
|
813
|
-
* M33 — the SINGLE route-input validation pipeline, shared by the HTTP path (`web-handler.ts`
|
|
814
|
-
* `runHandler`) and the in-process caller (`in-process-caller.ts` `callProcedure`).
|
|
815
|
-
*
|
|
816
|
-
* Both surfaces validate the same three channels (`query`/`body`/`params`) against the same
|
|
817
|
-
* `RouteConfig` Zod schemas. Extracting the logic here means there is ONE validation pipeline
|
|
818
|
-
* (no duplication, no drift) — each caller only differs in how it MAPS a failure: the HTTP path
|
|
819
|
-
* emits a 400 Response, the in-process path throws a typed error.
|
|
820
|
-
*/
|
|
821
|
-
|
|
822
|
-
/** The three request-input channels a route may declare a Zod schema for. */
|
|
823
|
-
type RouteInputChannel = 'query' | 'body' | 'params';
|
|
824
|
-
/**
|
|
825
|
-
* The minimal structural shape the validator needs: the three optional channel schemas. Both
|
|
826
|
-
* `RouteConfig` (the 5-arity generic contract) and `WebRouteHandlerConfig` (the Web runtime shape)
|
|
827
|
-
* satisfy this — the validator depends only on the schemas, not the full route generic.
|
|
828
|
-
*/
|
|
829
|
-
interface RouteInputSchemas {
|
|
830
|
-
query?: z.ZodType;
|
|
831
|
-
body?: z.ZodType;
|
|
832
|
-
params?: z.ZodType;
|
|
833
|
-
}
|
|
834
|
-
/** Raw (pre-validation) channel values. A channel absent from the config passes through unchanged. */
|
|
835
|
-
interface RawRouteInput {
|
|
836
|
-
query?: unknown;
|
|
837
|
-
body?: unknown;
|
|
838
|
-
params?: unknown;
|
|
839
|
-
}
|
|
840
|
-
/** Discriminated result — each caller maps `ok:false` to its own surface (Response vs throw). */
|
|
841
|
-
type RouteInputValidation = {
|
|
842
|
-
ok: true;
|
|
843
|
-
query: unknown;
|
|
844
|
-
body: unknown;
|
|
845
|
-
params: unknown;
|
|
846
|
-
} | {
|
|
847
|
-
ok: false;
|
|
848
|
-
channel: RouteInputChannel;
|
|
849
|
-
error: z.ZodError;
|
|
850
|
-
};
|
|
851
|
-
/**
|
|
852
|
-
* Validate the three input channels against the route's declared Zod schemas. A channel with no
|
|
853
|
-
* declared schema passes its raw value through. First failing channel short-circuits (query → body
|
|
854
|
-
* → params order, matching `runHandler`).
|
|
855
|
-
*/
|
|
856
|
-
declare function validateRouteInput(config: RouteInputSchemas, raw: RawRouteInput): RouteInputValidation;
|
|
857
|
-
|
|
858
|
-
/**
|
|
859
|
-
* M33 Phase 1 — `callProcedure`, the in-process typed caller.
|
|
860
|
-
*
|
|
861
|
-
* The load-bearing seam for non-HTTP surfaces (TUI / Tauri / MCP-tools): invoke a route's shared
|
|
862
|
-
* logic with STRUCTURED input, WITHOUT going through the HTTP transport (no URL/body parsing, no
|
|
863
|
-
* middleware chain, no Response). It reuses the SAME Zod validation pipeline as the HTTP path
|
|
864
|
-
* (`validateRouteInput`) so there is no drift, and reuses the SAME `config.response` server-fault
|
|
865
|
-
* check. Failures throw typed errors (there is no HTTP status off-web).
|
|
866
|
-
*
|
|
867
|
-
* Prior art: tRPC `callProcedure` / `createCallerFactory`
|
|
868
|
-
*
|
|
869
|
-
* Design (ADR-0044 / blueprint §5.4): the AUTHOR passes structured input `{query?, body?, params?}`
|
|
870
|
-
* — never synthesizes a Request. A minimal in-process `Request` is provided to the handler ONLY so
|
|
871
|
-
* handlers that read `request.headers`/`request.url` still work (opencode's proven pattern); the
|
|
872
|
-
* input itself is NOT parsed from it.
|
|
873
|
-
*/
|
|
874
|
-
|
|
875
|
-
/** Structured input for an in-process procedure call — one object per declared channel. */
|
|
876
|
-
type ProcedureInput = RawRouteInput;
|
|
877
|
-
/**
|
|
878
|
-
* Thrown when structured input fails the route's Zod validation. The in-process analog of the HTTP
|
|
879
|
-
* 400 — carries the failing channel + the Zod issues (typed error, not a magic value; Rule 8).
|
|
880
|
-
*/
|
|
881
|
-
declare class ProcedureInputError extends Error {
|
|
882
|
-
readonly channel: RouteInputChannel;
|
|
883
|
-
readonly issues: z.core.$ZodIssue[];
|
|
884
|
-
constructor(channel: RouteInputChannel, error: z.ZodError);
|
|
885
|
-
}
|
|
886
|
-
/**
|
|
887
|
-
* Thrown when the handler's plain-object return drifts from `config.response` — a SERVER fault
|
|
888
|
-
* (the handler violated its own declared contract), mirroring the HTTP path's 500 as a throw.
|
|
889
|
-
*/
|
|
890
|
-
declare class ProcedureOutputError extends Error {
|
|
891
|
-
readonly issues: z.core.$ZodIssue[];
|
|
892
|
-
constructor(error: z.ZodError);
|
|
893
|
-
}
|
|
894
|
-
/**
|
|
895
|
-
* Invoke a route/procedure's handler in-process with structured, Zod-validated input.
|
|
896
|
-
*
|
|
897
|
-
* @param config the `RouteConfig` (what `route().build()` produces).
|
|
898
|
-
* @param input structured `{query?, body?, params?}` — validated by the route's schemas.
|
|
899
|
-
* @param ctx the typed run-context the handler receives (built by the CALLER — a TUI/Tauri/MCP
|
|
900
|
-
* surface supplies its own ctx factory; there is no HTTP middleware chain here).
|
|
901
|
-
* @returns the handler's result (validated against `config.response` when declared).
|
|
902
|
-
* @throws ProcedureInputError on invalid structured input (the off-web analog of a 400).
|
|
903
|
-
* @throws ProcedureOutputError on a handler output that drifts from `config.response` (server fault).
|
|
904
|
-
*/
|
|
905
|
-
declare function callProcedure(config: RouteConfig<z.ZodType, z.ZodType, z.ZodType>, input?: ProcedureInput, ctx?: unknown): Promise<unknown>;
|
|
906
|
-
|
|
907
515
|
/**
|
|
908
516
|
* M33 Phase 1 — the ctx reconciliation contract (ADR-0044 D4 / blueprint §5.2, §8.5).
|
|
909
517
|
*
|
|
@@ -1009,4 +617,4 @@ interface LoadEnvResult {
|
|
|
1009
617
|
declare function _resetEnvCache(): void;
|
|
1010
618
|
declare function loadEnv(options?: LoadEnvOptions): LoadEnvResult;
|
|
1011
619
|
|
|
1012
|
-
export {
|
|
620
|
+
export { DEFAULT_MAX_AGE as CACHE_DEFAULT_MAX_AGE, DEFAULT_MAX_ENTRY_SIZE as CACHE_DEFAULT_MAX_ENTRY_SIZE, DEFAULT_SWR_MULTIPLIER as CACHE_DEFAULT_SWR_MULTIPLIER, CACHE_TAG_MAX_ITEMS, CACHE_TAG_MAX_LENGTH, CTX_WRITERS, type CacheControlInput, type CacheEngine, type CacheEngineOptions, type CacheEntry, type CacheStatus, type CacheStorageAdapter, type CacheStore, type CacheStoreAdmin, type ValidationResult as CacheValidationResult, type CachedFunction, type CachedRouteConfig, type CompiledRouteRule, type ContextValue, DEFAULT_EXCLUDED_QUERY_PARAMS, type DefineCachedFunctionOptions, type GetOrComputeOptions, InMemoryCacheAdapter, type InMemoryCacheAdapterOptions, type JobsAugmentedCtx, type KeyDerivationOptions, type LoadEnvOptions, type LoadEnvResult, type NormalizedCacheConfig, type QueueClientLike, type RevalidateResult, type RouteCacheOptions, RouteConfig, type RouteRule, type RouteRules, type SerializedResponse, THEO_T_PREFIX, _resetCacheEngine, _resetEnvCache, compileRouteRules, createCacheEngine, defineCachedFunction, defineCachedRoute, deriveKey as deriveCacheKey, deserializeResponse, getCacheControlHeader, getCacheEngine, initCacheEngine, loadEnv, resolveRouteRule, revalidatePath, revalidateTag, serializeResponse, updateTag, validateExpire as validateCacheExpire, validateMaxAge as validateCacheMaxAge, validateTags as validateCacheTags };
|