@farm.js/core 0.1.0-beta.95 → 0.1.0-beta.97
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/after.cjs +1 -1
- package/dist/after.mjs +1 -1
- package/dist/agent-runtime.d.mts +3 -2
- package/dist/agent-runtime.d.ts +3 -2
- package/dist/api/route-manager.cjs +43 -4
- package/dist/api/route-manager.d.mts +4 -3
- package/dist/api/route-manager.d.ts +4 -3
- package/dist/api/route-manager.mjs +7 -7
- package/dist/api/runtime.cjs +43 -4
- package/dist/api/runtime.d.mts +1 -1
- package/dist/api/runtime.d.ts +1 -1
- package/dist/api/runtime.mjs +5 -5
- package/dist/api.cjs +352 -109
- package/dist/api.d.mts +7 -6
- package/dist/api.d.ts +7 -6
- package/dist/api.mjs +19 -12
- package/dist/{app-CIIEvA4r.d.ts → app-CIOx3LvY.d.ts} +4 -4
- package/dist/{app-O4AEC1OH.d.mts → app-DBd6437H.d.mts} +4 -4
- package/dist/app-markdown.d.mts +4 -3
- package/dist/app-markdown.d.ts +4 -3
- package/dist/cache.cjs +42 -4
- package/dist/cache.d.mts +68 -1
- package/dist/cache.d.ts +68 -1
- package/dist/cache.mjs +3 -3
- package/dist/{chunk-AXVJCMVF.mjs → chunk-2HDOV47R.mjs} +3 -3
- package/dist/chunk-2HDOV47R.mjs.map +1 -0
- package/dist/{chunk-RBRLLZL5.mjs → chunk-34IAPZBG.mjs} +16 -3
- package/dist/chunk-34IAPZBG.mjs.map +1 -0
- package/dist/{chunk-VV24CC42.mjs → chunk-35NPLKQJ.mjs} +2 -2
- package/dist/{chunk-D7QH7MDU.mjs → chunk-3TWQERDE.mjs} +5 -4
- package/dist/chunk-3TWQERDE.mjs.map +1 -0
- package/dist/{chunk-RWYRFCLG.mjs → chunk-4X57GXQA.mjs} +2 -2
- package/dist/{chunk-KOTSX5JH.mjs → chunk-52BR7LTX.mjs} +30 -21
- package/dist/chunk-52BR7LTX.mjs.map +1 -0
- package/dist/{chunk-SALMKQXH.mjs → chunk-6EJHNHH4.mjs} +80 -27
- package/dist/chunk-6EJHNHH4.mjs.map +1 -0
- package/dist/{chunk-ZFNK77WN.mjs → chunk-6JNGOC37.mjs} +2 -2
- package/dist/{after.cjs.map → chunk-6JNGOC37.mjs.map} +1 -1
- package/dist/{chunk-MOW47IF5.mjs → chunk-6UYVU46O.mjs} +2 -2
- package/dist/{chunk-7MABZJIM.mjs → chunk-7PYVLJ4J.mjs} +1 -1
- package/dist/chunk-7PYVLJ4J.mjs.map +1 -0
- package/dist/{chunk-FLHLPB57.mjs → chunk-D7F7YZ7L.mjs} +93 -67
- package/dist/chunk-D7F7YZ7L.mjs.map +1 -0
- package/dist/chunk-DU3PKDVQ.mjs +35 -0
- package/dist/chunk-DU3PKDVQ.mjs.map +1 -0
- package/dist/{chunk-SCFX4UTD.mjs → chunk-EHTUKVSW.mjs} +1 -1
- package/dist/chunk-EHTUKVSW.mjs.map +1 -0
- package/dist/{chunk-KWCNQUH5.mjs → chunk-EPDIF432.mjs} +526 -50
- package/dist/chunk-EPDIF432.mjs.map +1 -0
- package/dist/{chunk-A3636IHN.mjs → chunk-FP5Q67FO.mjs} +167 -96
- package/dist/chunk-FP5Q67FO.mjs.map +1 -0
- package/dist/{chunk-HHZAOTQD.mjs → chunk-GJ7W6LNK.mjs} +7 -6
- package/dist/chunk-GJ7W6LNK.mjs.map +1 -0
- package/dist/{chunk-RLGUZ3HS.mjs → chunk-I3OOUWO5.mjs} +3 -3
- package/dist/{chunk-75CGAL6E.mjs → chunk-IZBX2TEU.mjs} +217 -105
- package/dist/chunk-IZBX2TEU.mjs.map +1 -0
- package/dist/{chunk-22VG4DFJ.mjs → chunk-J3MPQ4MQ.mjs} +2 -2
- package/dist/{chunk-22VG4DFJ.mjs.map → chunk-J3MPQ4MQ.mjs.map} +1 -1
- package/dist/{chunk-2LS3KKE7.mjs → chunk-JV7JUD7Q.mjs} +4 -4
- package/dist/{chunk-Q3OX763A.mjs → chunk-LXDASSTE.mjs} +2 -2
- package/dist/{chunk-ZRBCBOEX.mjs → chunk-N2FY2QZ7.mjs} +28 -3
- package/dist/chunk-N2FY2QZ7.mjs.map +1 -0
- package/dist/{chunk-MRVJCLYQ.mjs → chunk-PSQ7N4XP.mjs} +4 -2
- package/dist/chunk-PSQ7N4XP.mjs.map +1 -0
- package/dist/{chunk-HVG3HLQZ.mjs → chunk-Q7WGOOAI.mjs} +3 -3
- package/dist/{chunk-WTYAPO5I.mjs → chunk-RCNWMEBT.mjs} +3 -2
- package/dist/{chunk-WTYAPO5I.mjs.map → chunk-RCNWMEBT.mjs.map} +1 -1
- package/dist/{chunk-3INDBMUU.mjs → chunk-TGDIACZT.mjs} +2 -2
- package/dist/{chunk-WB75GIX2.mjs → chunk-TQTB33JS.mjs} +14 -3
- package/dist/chunk-TQTB33JS.mjs.map +1 -0
- package/dist/{chunk-MH27UH72.mjs → chunk-TT3E2JOF.mjs} +3 -3
- package/dist/{chunk-UWRGX3J3.mjs → chunk-UMUWR5XA.mjs} +2 -2
- package/dist/{chunk-XTLLHCWU.mjs → chunk-V4VRLVLW.mjs} +52 -31
- package/dist/chunk-V4VRLVLW.mjs.map +1 -0
- package/dist/{chunk-EXCGBERG.mjs → chunk-WD2EBM3I.mjs} +79 -17
- package/dist/chunk-WD2EBM3I.mjs.map +1 -0
- package/dist/{chunk-DLBUAJTK.mjs → chunk-WMJGA32P.mjs} +74 -5
- package/dist/chunk-WMJGA32P.mjs.map +1 -0
- package/dist/{chunk-TKQCJMY7.mjs → chunk-X4SFHKFH.mjs} +7 -4
- package/dist/{chunk-TKQCJMY7.mjs.map → chunk-X4SFHKFH.mjs.map} +1 -1
- package/dist/{chunk-Q7GPJZCO.mjs → chunk-YIBV77KZ.mjs} +26 -7
- package/dist/chunk-YIBV77KZ.mjs.map +1 -0
- package/dist/client/lifecycle.mjs +2 -2
- package/dist/{client-mcMC334J.d.mts → client-DWoLZ3QU.d.mts} +52 -5
- package/dist/{client-d5ONQ-Pd.d.ts → client-DuQuQC1h.d.ts} +52 -5
- package/dist/client-cache-BMxuFqwH.d.ts +18 -0
- package/dist/client-cache-CCK-fCe0.d.mts +18 -0
- package/dist/{client-plugins-BvClItiL.d.mts → client-plugins-B6-07YmP.d.mts} +52 -99
- package/dist/{client-plugins-B9Sq-iMg.d.ts → client-plugins-By6MVUX-.d.ts} +52 -99
- package/dist/client-plugins.cjs +1 -1
- package/dist/client-plugins.d.mts +3 -2
- package/dist/client-plugins.d.ts +3 -2
- package/dist/client-plugins.mjs +2 -2
- package/dist/client.cjs +1046 -211
- package/dist/client.d.mts +136 -18
- package/dist/client.d.ts +136 -18
- package/dist/client.mjs +32 -15
- package/dist/config.d.mts +3 -2
- package/dist/config.d.ts +3 -2
- package/dist/{devtools-S52RRRMN.mjs → devtools-XWZX6CCL.mjs} +5 -5
- package/dist/{devtools-client-3XRTBND5.mjs → devtools-client-Z7QQA3Q2.mjs} +56 -17
- package/dist/devtools-client-Z7QQA3Q2.mjs.map +1 -0
- package/dist/{devtools-ui-NJKFORTG.mjs → devtools-ui-2HG5M4EL.mjs} +3 -1
- package/dist/devtools-ui-2HG5M4EL.mjs.map +1 -0
- package/dist/docs.cjs +24 -5
- package/dist/docs.mjs +5 -5
- package/dist/i18n/server.cjs +13 -2
- package/dist/i18n/server.d.mts +2 -2
- package/dist/i18n/server.d.ts +2 -2
- package/dist/i18n/server.mjs +1 -1
- package/dist/index.cjs +1928 -894
- package/dist/index.d.mts +139 -21
- package/dist/index.d.ts +139 -21
- package/dist/index.mjs +57 -34
- package/dist/index.mjs.map +1 -1
- package/dist/integration-api-BT024nuJ.d.mts +97 -0
- package/dist/integration-api-BT024nuJ.d.ts +97 -0
- package/dist/integrations.d.mts +3 -2
- package/dist/integrations.d.ts +3 -2
- package/dist/internal/build-runtime.cjs +764 -547
- package/dist/internal/build-runtime.d.mts +5 -4
- package/dist/internal/build-runtime.d.ts +5 -4
- package/dist/internal/build-runtime.mjs +16 -16
- package/dist/internal/client-runtime.cjs +1 -1
- package/dist/internal/client-runtime.mjs +2 -2
- package/dist/internal/config-runtime.cjs +4 -1
- package/dist/internal/config-runtime.d.mts +4 -3
- package/dist/internal/config-runtime.d.ts +4 -3
- package/dist/internal/config-runtime.mjs +4 -4
- package/dist/internal/product-telemetry-runtime.cjs +1 -1
- package/dist/internal/product-telemetry-runtime.mjs +1 -1
- package/dist/internal/production-runtime.cjs +29 -3
- package/dist/internal/production-runtime.d.mts +8 -7
- package/dist/internal/production-runtime.d.ts +8 -7
- package/dist/internal/production-runtime.mjs +5 -5
- package/dist/{metadata-route-yV4U6X8h.d.ts → metadata-route-8_V3UonT.d.ts} +1 -1
- package/dist/{metadata-route-p4K1l92V.d.mts → metadata-route-CWP_HjGU.d.mts} +1 -1
- package/dist/middleware.cjs +28 -2
- package/dist/middleware.d.mts +5 -4
- package/dist/middleware.d.ts +5 -4
- package/dist/middleware.mjs +4 -4
- package/dist/navigation.cjs +3 -1
- package/dist/navigation.mjs +3 -3
- package/dist/observability.cjs +27 -2
- package/dist/observability.mjs +1 -1
- package/dist/plugin.cjs +528 -349
- package/dist/plugin.d.mts +3 -2
- package/dist/plugin.d.ts +3 -2
- package/dist/plugin.mjs +13 -13
- package/dist/{production-runtime-IkB0Qj4i.d.mts → production-runtime-BGRH1dKG.d.mts} +1 -1
- package/dist/{production-runtime-0JTch4_d.d.ts → production-runtime-CdmzsDax.d.ts} +1 -1
- package/dist/query/client.cjs +68 -29
- package/dist/query/client.mjs +69 -30
- package/dist/query/client.mjs.map +1 -1
- package/dist/{render-plan-Dc8CjNI7.d.ts → render-plan-0GeHiGVZ.d.ts} +1 -1
- package/dist/{render-plan-CU31j-Jk.d.mts → render-plan-DLxJYAA5.d.mts} +1 -1
- package/dist/renderer-client.cjs +169 -26
- package/dist/renderer-client.d.mts +7 -6
- package/dist/renderer-client.d.ts +7 -6
- package/dist/renderer-client.mjs +16 -19
- package/dist/renderer-client.mjs.map +1 -1
- package/dist/{request-BXa1KY8i.d.mts → request-BCNXSXLh.d.mts} +1 -1
- package/dist/{request-CUUBujZt.d.ts → request-BstWbZ6O.d.ts} +1 -1
- package/dist/request.d.mts +4 -3
- package/dist/request.d.ts +4 -3
- package/dist/{route-Y8lfz1wF.d.ts → route-4pd-EVtw.d.ts} +45 -50
- package/dist/{route-Cq3aObmj.d.mts → route-CvEr4Uc9.d.mts} +45 -50
- package/dist/routes.cjs +27 -2
- package/dist/routes.d.mts +3 -2
- package/dist/routes.d.ts +3 -2
- package/dist/routes.mjs +4 -4
- package/dist/{runtime-j1S3sDTh.d.ts → runtime-BgDQzBiu.d.ts} +1 -0
- package/dist/{runtime-DDwvDtS4.d.mts → runtime-CV2UCV-5.d.mts} +1 -0
- package/dist/server-action-security.mjs +2 -2
- package/dist/server-fn-client.cjs +102 -26
- package/dist/server-fn-client.d.mts +6 -0
- package/dist/server-fn-client.d.ts +6 -0
- package/dist/server-fn-client.mjs +2 -1
- package/dist/server-fn.cjs +42 -4
- package/dist/server-fn.mjs +5 -5
- package/dist/server-plugins.d.mts +4 -3
- package/dist/server-plugins.d.ts +4 -3
- package/dist/server-query-client.cjs +195 -34
- package/dist/server-query-client.d.mts +3 -3
- package/dist/server-query-client.d.ts +3 -3
- package/dist/server-query-client.mjs +7 -7
- package/dist/{server-query-runtime-3zAj77yv.d.ts → server-query-runtime-DXRNhX_3.d.ts} +2 -0
- package/dist/{server-query-runtime-B50KAcj5.d.mts → server-query-runtime-aP52iuL5.d.mts} +2 -0
- package/dist/server-query.cjs +44 -5
- package/dist/server-query.d.mts +4 -0
- package/dist/server-query.d.ts +4 -0
- package/dist/server-query.mjs +7 -7
- package/dist/server.cjs +553 -370
- package/dist/server.d.mts +11 -10
- package/dist/server.d.ts +11 -10
- package/dist/server.mjs +17 -17
- package/dist/{spa-router-CyLkwst6.d.mts → spa-router-BeyAVSc6.d.mts} +1 -1
- package/dist/{spa-router-BkqGXaV_.d.ts → spa-router-COgu4txb.d.ts} +1 -1
- package/dist/testing.cjs +27 -2
- package/dist/testing.d.mts +3 -2
- package/dist/testing.d.ts +3 -2
- package/dist/testing.mjs +9 -9
- package/dist/{utils-NKR6SoNv.d.mts → utils-DL2VwDQl.d.mts} +1 -1
- package/dist/{utils-B2OHrb9F.d.ts → utils-DkU2c_1B.d.ts} +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +536 -353
- package/dist/vite.d.mts +3 -2
- package/dist/vite.d.ts +3 -2
- package/dist/vite.mjs +17 -13
- package/package.json +17 -17
- package/types/client.d.ts +115 -10
- package/dist/agent-runtime.cjs.map +0 -1
- package/dist/api/route-manager.cjs.map +0 -1
- package/dist/api/runtime.cjs.map +0 -1
- package/dist/api.cjs.map +0 -1
- package/dist/app-markdown.cjs.map +0 -1
- package/dist/cache.cjs.map +0 -1
- package/dist/chunk-75CGAL6E.mjs.map +0 -1
- package/dist/chunk-7MABZJIM.mjs.map +0 -1
- package/dist/chunk-A3636IHN.mjs.map +0 -1
- package/dist/chunk-AXVJCMVF.mjs.map +0 -1
- package/dist/chunk-D7QH7MDU.mjs.map +0 -1
- package/dist/chunk-DLBUAJTK.mjs.map +0 -1
- package/dist/chunk-EXCGBERG.mjs.map +0 -1
- package/dist/chunk-FLHLPB57.mjs.map +0 -1
- package/dist/chunk-HHZAOTQD.mjs.map +0 -1
- package/dist/chunk-KOTSX5JH.mjs.map +0 -1
- package/dist/chunk-KWCNQUH5.mjs.map +0 -1
- package/dist/chunk-MRVJCLYQ.mjs.map +0 -1
- package/dist/chunk-Q7GPJZCO.mjs.map +0 -1
- package/dist/chunk-RBRLLZL5.mjs.map +0 -1
- package/dist/chunk-SALMKQXH.mjs.map +0 -1
- package/dist/chunk-SCFX4UTD.mjs.map +0 -1
- package/dist/chunk-WB75GIX2.mjs.map +0 -1
- package/dist/chunk-XTLLHCWU.mjs.map +0 -1
- package/dist/chunk-ZFNK77WN.mjs.map +0 -1
- package/dist/chunk-ZRBCBOEX.mjs.map +0 -1
- package/dist/client/lifecycle.cjs.map +0 -1
- package/dist/client-cache-CopR_MaI.d.mts +0 -6
- package/dist/client-cache-Djy_TlE8.d.ts +0 -6
- package/dist/client-plugins.cjs.map +0 -1
- package/dist/client.cjs.map +0 -1
- package/dist/config.cjs.map +0 -1
- package/dist/cron.cjs.map +0 -1
- package/dist/deferred.cjs.map +0 -1
- package/dist/deployment.cjs.map +0 -1
- package/dist/devtools-client-3XRTBND5.mjs.map +0 -1
- package/dist/devtools-ui-NJKFORTG.mjs.map +0 -1
- package/dist/docs.cjs.map +0 -1
- package/dist/env-types.cjs.map +0 -1
- package/dist/env.cjs.map +0 -1
- package/dist/environment/vite.cjs.map +0 -1
- package/dist/environment.cjs.map +0 -1
- package/dist/font.cjs.map +0 -1
- package/dist/headers.cjs.map +0 -1
- package/dist/i18n/client.cjs.map +0 -1
- package/dist/i18n/index.cjs.map +0 -1
- package/dist/i18n/server.cjs.map +0 -1
- package/dist/image/server.cjs.map +0 -1
- package/dist/image/sharp.cjs.map +0 -1
- package/dist/image.cjs.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/instrumentation.cjs.map +0 -1
- package/dist/integrations.cjs.map +0 -1
- package/dist/internal/build-runtime.cjs.map +0 -1
- package/dist/internal/client-runtime.cjs.map +0 -1
- package/dist/internal/config-runtime.cjs.map +0 -1
- package/dist/internal/isolated-boundary.cjs.map +0 -1
- package/dist/internal/metadata-image-runtime.cjs.map +0 -1
- package/dist/internal/product-telemetry-runtime.cjs.map +0 -1
- package/dist/internal/production-node-env.cjs.map +0 -1
- package/dist/internal/production-runtime.cjs.map +0 -1
- package/dist/markdown.cjs.map +0 -1
- package/dist/middleware.cjs.map +0 -1
- package/dist/navigation.cjs.map +0 -1
- package/dist/observability.cjs.map +0 -1
- package/dist/plugin.cjs.map +0 -1
- package/dist/query/client.cjs.map +0 -1
- package/dist/query/index.cjs.map +0 -1
- package/dist/query/parsers.cjs.map +0 -1
- package/dist/query/server.cjs.map +0 -1
- package/dist/renderer/react/client.cjs.map +0 -1
- package/dist/renderer/react/server.cjs.map +0 -1
- package/dist/renderer/react/vite.cjs.map +0 -1
- package/dist/renderer-client.cjs.map +0 -1
- package/dist/renderer.cjs.map +0 -1
- package/dist/request.cjs.map +0 -1
- package/dist/router.cjs.map +0 -1
- package/dist/routes.cjs.map +0 -1
- package/dist/server-action-security.cjs.map +0 -1
- package/dist/server-fn-client.cjs.map +0 -1
- package/dist/server-fn.cjs.map +0 -1
- package/dist/server-plugins.cjs.map +0 -1
- package/dist/server-query-client.cjs.map +0 -1
- package/dist/server-query.cjs.map +0 -1
- package/dist/server.cjs.map +0 -1
- package/dist/storage.cjs.map +0 -1
- package/dist/testing.cjs.map +0 -1
- package/dist/theme/client.cjs.map +0 -1
- package/dist/theme/index.cjs.map +0 -1
- package/dist/theme/runtime.cjs.map +0 -1
- package/dist/theme/server.cjs.map +0 -1
- package/dist/version.cjs.map +0 -1
- package/dist/vite.cjs.map +0 -1
- package/dist/workflows.cjs.map +0 -1
- /package/dist/{chunk-VV24CC42.mjs.map → chunk-35NPLKQJ.mjs.map} +0 -0
- /package/dist/{chunk-RWYRFCLG.mjs.map → chunk-4X57GXQA.mjs.map} +0 -0
- /package/dist/{chunk-MOW47IF5.mjs.map → chunk-6UYVU46O.mjs.map} +0 -0
- /package/dist/{chunk-RLGUZ3HS.mjs.map → chunk-I3OOUWO5.mjs.map} +0 -0
- /package/dist/{chunk-2LS3KKE7.mjs.map → chunk-JV7JUD7Q.mjs.map} +0 -0
- /package/dist/{chunk-Q3OX763A.mjs.map → chunk-LXDASSTE.mjs.map} +0 -0
- /package/dist/{chunk-HVG3HLQZ.mjs.map → chunk-Q7WGOOAI.mjs.map} +0 -0
- /package/dist/{chunk-3INDBMUU.mjs.map → chunk-TGDIACZT.mjs.map} +0 -0
- /package/dist/{chunk-MH27UH72.mjs.map → chunk-TT3E2JOF.mjs.map} +0 -0
- /package/dist/{chunk-UWRGX3J3.mjs.map → chunk-UMUWR5XA.mjs.map} +0 -0
- /package/dist/{devtools-S52RRRMN.mjs.map → devtools-XWZX6CCL.mjs.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as FarmClientCacheKey } from './client-cache-
|
|
1
|
+
import { F as FarmIntegrationAPI, a as FarmIntegrationAPIOperation } from './integration-api-BT024nuJ.mjs';
|
|
2
|
+
import { a as FarmClientCacheKey, b as FarmClientCacheEntry } from './client-cache-CCK-fCe0.mjs';
|
|
3
3
|
import { DefinedCacheKey, RouteDataCacheKey, InferCacheKeyData } from './cache.mjs';
|
|
4
|
-
import { F as FarmAPIStream, R as RoutePathParams } from './route-
|
|
4
|
+
import { F as FarmAPIStream, R as RoutePathParams } from './route-CvEr4Uc9.mjs';
|
|
5
5
|
|
|
6
6
|
/** Instance defaults, resolved once per call before cache lookup or dispatch. */
|
|
7
7
|
type ClientHeaders = Record<string, string> | (() => Record<string, string> | Promise<Record<string, string>>);
|
|
@@ -297,6 +297,8 @@ type CacheOptions = {
|
|
|
297
297
|
staleTime?: number;
|
|
298
298
|
gcTime?: number;
|
|
299
299
|
dedupeMs?: number;
|
|
300
|
+
/** Allow the configured client cache persistence adapter to store this read. */
|
|
301
|
+
persist?: boolean;
|
|
300
302
|
};
|
|
301
303
|
type RetryOptions = {
|
|
302
304
|
count?: number;
|
|
@@ -404,7 +406,11 @@ type InferEndpointInput<T> = T extends {
|
|
|
404
406
|
__types: {
|
|
405
407
|
query: infer TQuery;
|
|
406
408
|
};
|
|
407
|
-
} ? Simplify<BodyInputProp<InferEndpointBody<T>> & QueryInputProp<
|
|
409
|
+
} ? Simplify<BodyInputProp<InferEndpointBody<T>> & QueryInputProp<T extends {
|
|
410
|
+
__types: {
|
|
411
|
+
inputQuery: infer I;
|
|
412
|
+
};
|
|
413
|
+
} ? I : TQuery> & (T extends {
|
|
408
414
|
__routeParams: infer P;
|
|
409
415
|
} ? keyof P extends never ? {
|
|
410
416
|
params?: never;
|
|
@@ -548,5 +554,46 @@ declare function getAPIRouteRefMetadata(value: unknown): APIRouteRefMetadata | n
|
|
|
548
554
|
declare function createServerAPIClient<TEndpoints extends Record<string, any>>(endpoints: TEndpoints): TEndpoints;
|
|
549
555
|
declare function createServerAPIClient<TEndpoints extends Record<string, any>>(endpoints: TEndpoints, options: ServerAPIClientWithoutIntegrationsOptions): TEndpoints;
|
|
550
556
|
declare function createServerAPIClient<TEndpoints extends Record<string, any>, TIntegrations extends Record<string, any> = {}>(endpoints: TEndpoints, options?: ServerAPIClientOptions): ServerAPIClient<TEndpoints, TIntegrations>;
|
|
557
|
+
declare const API_CACHE_REFETCH: unique symbol;
|
|
558
|
+
type CacheEntry = FarmClientCacheEntry<any> & {
|
|
559
|
+
[API_CACHE_REFETCH]?: () => void;
|
|
560
|
+
};
|
|
561
|
+
type OptimisticSnapshot = {
|
|
562
|
+
key: string;
|
|
563
|
+
stack: OptimisticStack;
|
|
564
|
+
layer: OptimisticLayer;
|
|
565
|
+
};
|
|
566
|
+
type OptimisticStack = {
|
|
567
|
+
entry?: CacheEntry;
|
|
568
|
+
layers: OptimisticLayer[];
|
|
569
|
+
renderedEntry?: CacheEntry;
|
|
570
|
+
invalidatedAt?: number;
|
|
571
|
+
};
|
|
572
|
+
type OptimisticLayer = {
|
|
573
|
+
updaters: Array<(prev: any) => any>;
|
|
574
|
+
updatedAt: number;
|
|
575
|
+
staleAt: number;
|
|
576
|
+
gcAt?: number;
|
|
577
|
+
committed?: boolean;
|
|
578
|
+
};
|
|
579
|
+
/**
|
|
580
|
+
* @internal Apply key-targeted optimistic updates to the shared client cache
|
|
581
|
+
* for a server-function mutation. Route-reference update tuples need an API
|
|
582
|
+
* caller's route metadata and are skipped here; use structured cache keys.
|
|
583
|
+
*/
|
|
584
|
+
declare function applyServerFnOptimisticUpdates(updates: readonly OptimisticUpdate[], now?: number): OptimisticSnapshot[];
|
|
585
|
+
/**
|
|
586
|
+
* @internal Settle a server-function mutation's optimistic snapshots with the
|
|
587
|
+
* API client's semantics: commit on success, rollback on failure with
|
|
588
|
+
* `rollbackOnError`, and mark-stale on failure without it.
|
|
589
|
+
*/
|
|
590
|
+
declare function settleServerFnOptimisticUpdates(snapshots: OptimisticSnapshot[], outcome: "commit" | "rollback" | "invalidate"): void;
|
|
591
|
+
/**
|
|
592
|
+
* @internal Resolve a server-function mutation's invalidate targets to cache
|
|
593
|
+
* keys. Route-reference and path targets need an API caller's identity and are
|
|
594
|
+
* skipped; use structured cache keys. Keys are applied through the shared
|
|
595
|
+
* invalidation bus, matching server-declared `invalidates`.
|
|
596
|
+
*/
|
|
597
|
+
declare function resolveServerFnInvalidateTargets(invalidate: InvalidateOptions): string[];
|
|
551
598
|
|
|
552
|
-
export { type
|
|
599
|
+
export { type IntegrationClientRoot as $, type APIRouteRefMetadata as A, applyServerFnOptimisticUpdates as B, type CacheKey as C, settleServerFnOptimisticUpdates as D, resolveServerFnInvalidateTargets as E, FARM_API_ROUTE_REF_SYMBOL as F, type APIRouteManifest as G, type ClientHeaders as H, type InvalidateTarget as I, type ClientLifecycleHooks as J, type ClientRequestEvent as K, type ClientResponseEvent as L, createIntegrationClient as M, IntegrationClientError as N, type OptimisticUpdate as O, createIntegrationApi as P, createIntegrationClients as Q, type RetryOptions as R, type ServerAPIClientOptions as S, createIntegrations as T, createIntegrationServerClient as U, getIntegrationAPIManifest as V, integrationClients as W, integrationsClient as X, integrationsServer as Y, type IntegrationClient as Z, type IntegrationClientAliases as _, FARM_API_ROUTE_META_SYMBOL as a, type IntegrationClientOptions as a0, type IntegrationClientRequestOptions as a1, type IntegrationAPI as a2, type IntegrationClients as a3, type IntegrationClientData as a4, type IntegrationOperationResult as a5, type InferIntegrationOperationBody as a6, type InferIntegrationOperationQuery as a7, type InferIntegrationOperationResponse as a8, type IntegrationServerClient as a9, type IntegrationServerClientAliases as aa, type IntegrationServerClientOptions as ab, type IntegrationServerClientRequestOptions as ac, type IntegrationServerClientRoot as ad, type IntegrationServerRequestLike as ae, type APIClientOptions as b, type APIClientWithoutIntegrationsOptions as c, type ServerAPIClientWithoutIntegrationsOptions as d, type StatusPhase as e, type StatusEvent as f, type APIResult as g, APIClientError as h, type APIClientSystemError as i, type RequestEvent as j, type ResponseEvent as k, type CachePolicy as l, type CacheScope as m, type CacheOptions as n, type InvalidateOptions as o, type OptimisticOptions as p, type ClientOptions as q, type RouteAPIClient as r, type APIClient as s, type ServerAPIClient as t, type ApiClients as u, createApiClients as v, createAPIClient as w, isAPIRouteRef as x, getAPIRouteRefMetadata as y, createServerAPIClient as z };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as FarmClientCacheKey } from './client-cache-
|
|
1
|
+
import { F as FarmIntegrationAPI, a as FarmIntegrationAPIOperation } from './integration-api-BT024nuJ.js';
|
|
2
|
+
import { a as FarmClientCacheKey, b as FarmClientCacheEntry } from './client-cache-BMxuFqwH.js';
|
|
3
3
|
import { DefinedCacheKey, RouteDataCacheKey, InferCacheKeyData } from './cache.js';
|
|
4
|
-
import { F as FarmAPIStream, R as RoutePathParams } from './route-
|
|
4
|
+
import { F as FarmAPIStream, R as RoutePathParams } from './route-4pd-EVtw.js';
|
|
5
5
|
|
|
6
6
|
/** Instance defaults, resolved once per call before cache lookup or dispatch. */
|
|
7
7
|
type ClientHeaders = Record<string, string> | (() => Record<string, string> | Promise<Record<string, string>>);
|
|
@@ -297,6 +297,8 @@ type CacheOptions = {
|
|
|
297
297
|
staleTime?: number;
|
|
298
298
|
gcTime?: number;
|
|
299
299
|
dedupeMs?: number;
|
|
300
|
+
/** Allow the configured client cache persistence adapter to store this read. */
|
|
301
|
+
persist?: boolean;
|
|
300
302
|
};
|
|
301
303
|
type RetryOptions = {
|
|
302
304
|
count?: number;
|
|
@@ -404,7 +406,11 @@ type InferEndpointInput<T> = T extends {
|
|
|
404
406
|
__types: {
|
|
405
407
|
query: infer TQuery;
|
|
406
408
|
};
|
|
407
|
-
} ? Simplify<BodyInputProp<InferEndpointBody<T>> & QueryInputProp<
|
|
409
|
+
} ? Simplify<BodyInputProp<InferEndpointBody<T>> & QueryInputProp<T extends {
|
|
410
|
+
__types: {
|
|
411
|
+
inputQuery: infer I;
|
|
412
|
+
};
|
|
413
|
+
} ? I : TQuery> & (T extends {
|
|
408
414
|
__routeParams: infer P;
|
|
409
415
|
} ? keyof P extends never ? {
|
|
410
416
|
params?: never;
|
|
@@ -548,5 +554,46 @@ declare function getAPIRouteRefMetadata(value: unknown): APIRouteRefMetadata | n
|
|
|
548
554
|
declare function createServerAPIClient<TEndpoints extends Record<string, any>>(endpoints: TEndpoints): TEndpoints;
|
|
549
555
|
declare function createServerAPIClient<TEndpoints extends Record<string, any>>(endpoints: TEndpoints, options: ServerAPIClientWithoutIntegrationsOptions): TEndpoints;
|
|
550
556
|
declare function createServerAPIClient<TEndpoints extends Record<string, any>, TIntegrations extends Record<string, any> = {}>(endpoints: TEndpoints, options?: ServerAPIClientOptions): ServerAPIClient<TEndpoints, TIntegrations>;
|
|
557
|
+
declare const API_CACHE_REFETCH: unique symbol;
|
|
558
|
+
type CacheEntry = FarmClientCacheEntry<any> & {
|
|
559
|
+
[API_CACHE_REFETCH]?: () => void;
|
|
560
|
+
};
|
|
561
|
+
type OptimisticSnapshot = {
|
|
562
|
+
key: string;
|
|
563
|
+
stack: OptimisticStack;
|
|
564
|
+
layer: OptimisticLayer;
|
|
565
|
+
};
|
|
566
|
+
type OptimisticStack = {
|
|
567
|
+
entry?: CacheEntry;
|
|
568
|
+
layers: OptimisticLayer[];
|
|
569
|
+
renderedEntry?: CacheEntry;
|
|
570
|
+
invalidatedAt?: number;
|
|
571
|
+
};
|
|
572
|
+
type OptimisticLayer = {
|
|
573
|
+
updaters: Array<(prev: any) => any>;
|
|
574
|
+
updatedAt: number;
|
|
575
|
+
staleAt: number;
|
|
576
|
+
gcAt?: number;
|
|
577
|
+
committed?: boolean;
|
|
578
|
+
};
|
|
579
|
+
/**
|
|
580
|
+
* @internal Apply key-targeted optimistic updates to the shared client cache
|
|
581
|
+
* for a server-function mutation. Route-reference update tuples need an API
|
|
582
|
+
* caller's route metadata and are skipped here; use structured cache keys.
|
|
583
|
+
*/
|
|
584
|
+
declare function applyServerFnOptimisticUpdates(updates: readonly OptimisticUpdate[], now?: number): OptimisticSnapshot[];
|
|
585
|
+
/**
|
|
586
|
+
* @internal Settle a server-function mutation's optimistic snapshots with the
|
|
587
|
+
* API client's semantics: commit on success, rollback on failure with
|
|
588
|
+
* `rollbackOnError`, and mark-stale on failure without it.
|
|
589
|
+
*/
|
|
590
|
+
declare function settleServerFnOptimisticUpdates(snapshots: OptimisticSnapshot[], outcome: "commit" | "rollback" | "invalidate"): void;
|
|
591
|
+
/**
|
|
592
|
+
* @internal Resolve a server-function mutation's invalidate targets to cache
|
|
593
|
+
* keys. Route-reference and path targets need an API caller's identity and are
|
|
594
|
+
* skipped; use structured cache keys. Keys are applied through the shared
|
|
595
|
+
* invalidation bus, matching server-declared `invalidates`.
|
|
596
|
+
*/
|
|
597
|
+
declare function resolveServerFnInvalidateTargets(invalidate: InvalidateOptions): string[];
|
|
551
598
|
|
|
552
|
-
export { type
|
|
599
|
+
export { type IntegrationClientRoot as $, type APIRouteRefMetadata as A, applyServerFnOptimisticUpdates as B, type CacheKey as C, settleServerFnOptimisticUpdates as D, resolveServerFnInvalidateTargets as E, FARM_API_ROUTE_REF_SYMBOL as F, type APIRouteManifest as G, type ClientHeaders as H, type InvalidateTarget as I, type ClientLifecycleHooks as J, type ClientRequestEvent as K, type ClientResponseEvent as L, createIntegrationClient as M, IntegrationClientError as N, type OptimisticUpdate as O, createIntegrationApi as P, createIntegrationClients as Q, type RetryOptions as R, type ServerAPIClientOptions as S, createIntegrations as T, createIntegrationServerClient as U, getIntegrationAPIManifest as V, integrationClients as W, integrationsClient as X, integrationsServer as Y, type IntegrationClient as Z, type IntegrationClientAliases as _, FARM_API_ROUTE_META_SYMBOL as a, type IntegrationClientOptions as a0, type IntegrationClientRequestOptions as a1, type IntegrationAPI as a2, type IntegrationClients as a3, type IntegrationClientData as a4, type IntegrationOperationResult as a5, type InferIntegrationOperationBody as a6, type InferIntegrationOperationQuery as a7, type InferIntegrationOperationResponse as a8, type IntegrationServerClient as a9, type IntegrationServerClientAliases as aa, type IntegrationServerClientOptions as ab, type IntegrationServerClientRequestOptions as ac, type IntegrationServerClientRoot as ad, type IntegrationServerRequestLike as ae, type APIClientOptions as b, type APIClientWithoutIntegrationsOptions as c, type ServerAPIClientWithoutIntegrationsOptions as d, type StatusPhase as e, type StatusEvent as f, type APIResult as g, APIClientError as h, type APIClientSystemError as i, type RequestEvent as j, type ResponseEvent as k, type CachePolicy as l, type CacheScope as m, type CacheOptions as n, type InvalidateOptions as o, type OptimisticOptions as p, type ClientOptions as q, type RouteAPIClient as r, type APIClient as s, type ServerAPIClient as t, type ApiClients as u, createApiClients as v, createAPIClient as w, isAPIRouteRef as x, getAPIRouteRefMetadata as y, createServerAPIClient as z };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { RouteDataCacheKey } from './cache.js';
|
|
2
|
+
|
|
3
|
+
type FarmClientCacheKey = RouteDataCacheKey;
|
|
4
|
+
type FarmClientCacheStatus = "idle" | "pending" | "success" | "error";
|
|
5
|
+
type FarmClientCacheEntry<TData = unknown> = {
|
|
6
|
+
data: TData;
|
|
7
|
+
updatedAt: number;
|
|
8
|
+
staleAt: number;
|
|
9
|
+
gcAt?: number;
|
|
10
|
+
invalidatedAt?: number;
|
|
11
|
+
status?: FarmClientCacheStatus;
|
|
12
|
+
error?: Error | null;
|
|
13
|
+
fetching?: boolean;
|
|
14
|
+
/** Marks an entry the persistence layer may write to its adapter. */
|
|
15
|
+
persist?: boolean;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export type { FarmClientCacheStatus as F, FarmClientCacheKey as a, FarmClientCacheEntry as b };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { RouteDataCacheKey } from './cache.mjs';
|
|
2
|
+
|
|
3
|
+
type FarmClientCacheKey = RouteDataCacheKey;
|
|
4
|
+
type FarmClientCacheStatus = "idle" | "pending" | "success" | "error";
|
|
5
|
+
type FarmClientCacheEntry<TData = unknown> = {
|
|
6
|
+
data: TData;
|
|
7
|
+
updatedAt: number;
|
|
8
|
+
staleAt: number;
|
|
9
|
+
gcAt?: number;
|
|
10
|
+
invalidatedAt?: number;
|
|
11
|
+
status?: FarmClientCacheStatus;
|
|
12
|
+
error?: Error | null;
|
|
13
|
+
fetching?: boolean;
|
|
14
|
+
/** Marks an entry the persistence layer may write to its adapter. */
|
|
15
|
+
persist?: boolean;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export type { FarmClientCacheStatus as F, FarmClientCacheKey as a, FarmClientCacheEntry as b };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { n as FarmClientPlugin } from './lifecycle-De0vQG45.mjs';
|
|
2
|
-
import { Z as PluginRoutes, P as PluginRoutesFactory } from './route-
|
|
2
|
+
import { Z as PluginRoutes, P as PluginRoutesFactory } from './route-CvEr4Uc9.mjs';
|
|
3
3
|
import { FarmRenderer } from './renderer.mjs';
|
|
4
4
|
import { IncomingMessage, ServerResponse } from 'http';
|
|
5
5
|
import { d as FarmStorageUserConfig } from './types-Cc8l9IqS.mjs';
|
|
6
6
|
import React__default, { ComponentType, ReactNode } from 'react';
|
|
7
|
+
import { F as FarmIntegrationAPI, f as FarmIntegrationAPIMethod, e as FarmIntegrationAPIBodyFormat, a as FarmIntegrationAPIOperation, g as FarmIntegrationAPIResponseFormat, h as FarmIntegrationRouteOperationCarrier, I as InferIntegrationAPIFromRoutes } from './integration-api-BT024nuJ.mjs';
|
|
7
8
|
import { OrmClient, SchemaDefinition, ModelDefinition, FieldBuilder, JsonValue, AnyModelDefinition, SchemaModels } from '@farming-labs/orm';
|
|
8
9
|
import { a as FarmDocsUserConfig, F as FarmDocsResolvedConfig } from './types-CKwggz9n.mjs';
|
|
9
10
|
import { FarmMarkdownUserConfig, FarmMarkdownResolvedConfig } from './markdown.mjs';
|
|
@@ -24,102 +25,6 @@ import { FarmLayoutFonts } from './font.mjs';
|
|
|
24
25
|
import { _withAfterNodeMiddleware } from './after.mjs';
|
|
25
26
|
import { F as FarmIslandStrategy } from './island-CfGru1MO.mjs';
|
|
26
27
|
|
|
27
|
-
type FarmIntegrationAPIMethod = "GET" | "QUERY" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS" | "HEAD";
|
|
28
|
-
type FarmIntegrationAPIBodyFormat = "json" | "form" | "none";
|
|
29
|
-
type FarmIntegrationAPIResponseFormat = "json" | "text" | "response";
|
|
30
|
-
interface FarmIntegrationAPIOperation<TBody = never, TQuery = never, TResponse = unknown, TServer extends boolean = false, TMethod extends FarmIntegrationAPIMethod = FarmIntegrationAPIMethod> {
|
|
31
|
-
readonly kind: "farm-integration-api-operation";
|
|
32
|
-
path: string;
|
|
33
|
-
method: TMethod;
|
|
34
|
-
bodyFormat?: FarmIntegrationAPIBodyFormat;
|
|
35
|
-
responseFormat?: FarmIntegrationAPIResponseFormat;
|
|
36
|
-
headers?: Record<string, string>;
|
|
37
|
-
credentials?: RequestCredentials;
|
|
38
|
-
isServer?: TServer;
|
|
39
|
-
__pathless?: boolean;
|
|
40
|
-
__types?: {
|
|
41
|
-
body: TBody;
|
|
42
|
-
query: TQuery;
|
|
43
|
-
response: TResponse;
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
type FarmIntegrationAPI = {
|
|
47
|
-
[key: string]: FarmIntegrationAPI | FarmIntegrationAPIOperation<any, any, any, any, any>;
|
|
48
|
-
};
|
|
49
|
-
type FarmIntegrationRouteOperationCarrier<TPath extends string = string, TOperation extends FarmIntegrationAPIOperation<any, any, any, any, any> = FarmIntegrationAPIOperation<any, any, any, any, any>> = {
|
|
50
|
-
path: TPath;
|
|
51
|
-
__operation: TOperation;
|
|
52
|
-
};
|
|
53
|
-
type IntegrationAPIBuilderOptions<TServer extends boolean = false> = Omit<FarmIntegrationAPIOperation<any, any, any, TServer>, "kind" | "method" | "path" | "__pathless" | "__types">;
|
|
54
|
-
declare function defineIntegrationAPIOperation<TBody = never, TQuery = never, TResponse = unknown, TServer extends boolean = false, TMethod extends FarmIntegrationAPIMethod = FarmIntegrationAPIMethod>(operation: Omit<FarmIntegrationAPIOperation<TBody, TQuery, TResponse, TServer, TMethod>, "kind" | "__types">): FarmIntegrationAPIOperation<TBody, TQuery, TResponse, TServer, TMethod>;
|
|
55
|
-
declare function defineIntegrationAPI<TAPI extends FarmIntegrationAPI>(api: TAPI): TAPI;
|
|
56
|
-
declare function get<TResponse = unknown, TServer extends boolean = false>(path: string, options?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<never, never, TResponse, TServer, "GET">;
|
|
57
|
-
declare function get<TQuery = never, TResponse = unknown, TServer extends boolean = false>(path: string, options?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<never, TQuery, TResponse, TServer, "GET">;
|
|
58
|
-
declare function get<TResponse = unknown, TServer extends boolean = false>(options?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<never, never, TResponse, TServer, "GET">;
|
|
59
|
-
declare function get<TQuery = never, TResponse = unknown, TServer extends boolean = false>(options?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<never, TQuery, TResponse, TServer, "GET">;
|
|
60
|
-
type RouteOperationsToAPI<TOperations extends readonly FarmIntegrationAPIOperation<any, any, any, any, any>[]> = {
|
|
61
|
-
[TMethod in Lowercase<TOperations[number]["method"] & string>]: Extract<TOperations[number], {
|
|
62
|
-
method: Uppercase<TMethod>;
|
|
63
|
-
}>;
|
|
64
|
-
};
|
|
65
|
-
type StripRouteClientPrefix<TPath extends string> = TPath extends `/api/${string}/${infer TRest}` ? TRest : TPath extends `/${string}/${infer TRest}` ? TRest : TPath extends `/${infer TRest}` ? TRest : TPath;
|
|
66
|
-
type NormalizeRouteSegment<TSegment extends string> = TSegment extends `[...${infer TName}]` ? TName : TSegment extends `[${infer TName}]` ? TName : TSegment extends `${infer TName}(${string}` ? TName : CamelCaseRouteSegment<TSegment>;
|
|
67
|
-
type CamelCaseRouteSegment<TSegment extends string> = TSegment extends `${infer THead}-${infer TTail}` ? `${THead}${Capitalize<CamelCaseRouteSegment<TTail>>}` : TSegment;
|
|
68
|
-
type RouteNamespaceFromPath<TPath extends string, TOperation extends FarmIntegrationAPIOperation<any, any, any, any, any>> = TPath extends `${infer THead}/${infer TTail}` ? {
|
|
69
|
-
[TKey in NormalizeRouteSegment<THead>]: RouteNamespaceFromPath<TTail, TOperation>;
|
|
70
|
-
} : {
|
|
71
|
-
[TKey in NormalizeRouteSegment<TPath>]: {
|
|
72
|
-
[TMethod in Lowercase<TOperation["method"] & string>]: TOperation;
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
type UnionToIntersection<TUnion> = (TUnion extends unknown ? (value: TUnion) => void : never) extends (value: infer TIntersection) => void ? TIntersection : never;
|
|
76
|
-
type ExpandRecursively<TValue> = TValue extends (...args: any[]) => any ? TValue : TValue extends object ? {
|
|
77
|
-
[TKey in keyof TValue]: ExpandRecursively<TValue[TKey]>;
|
|
78
|
-
} : TValue;
|
|
79
|
-
type RoutesToAPI<TRoutes extends readonly FarmIntegrationRouteOperationCarrier<string, any>[]> = ExpandRecursively<UnionToIntersection<TRoutes[number] extends FarmIntegrationRouteOperationCarrier<infer TPath, infer TOperation> ? RouteNamespaceFromPath<StripRouteClientPrefix<TPath>, TOperation> : never>>;
|
|
80
|
-
type InferIntegrationAPIFromRoutes<TRoutes extends readonly FarmIntegrationRouteOperationCarrier<string, any>[]> = RoutesToAPI<TRoutes>;
|
|
81
|
-
declare function route<TAPI extends FarmIntegrationAPI>(path: string, definition: TAPI): TAPI;
|
|
82
|
-
declare function route<TOperations extends readonly FarmIntegrationAPIOperation<any, any, any, any, any>[]>(path: string, ...operations: TOperations): RouteOperationsToAPI<TOperations>;
|
|
83
|
-
declare function fromRoutes<TRoutes extends readonly FarmIntegrationRouteOperationCarrier<string, any>[]>(routes: TRoutes): RoutesToAPI<TRoutes>;
|
|
84
|
-
declare const api: {
|
|
85
|
-
get: typeof get;
|
|
86
|
-
route: typeof route;
|
|
87
|
-
fromRoutes: typeof fromRoutes;
|
|
88
|
-
query<TBody = never, TResponse = unknown, TQuery = never, TServer extends boolean = false>(pathOrOptions?: string | IntegrationAPIBuilderOptions<TServer>, maybeOptions?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<TBody, TQuery, TResponse, TServer, "QUERY">;
|
|
89
|
-
post<TBody = never, TResponse = unknown, TQuery = never, TServer extends boolean = false>(pathOrOptions?: string | IntegrationAPIBuilderOptions<TServer>, maybeOptions?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<TBody, TQuery, TResponse, TServer, "POST">;
|
|
90
|
-
put<TBody = never, TResponse = unknown, TQuery = never, TServer extends boolean = false>(pathOrOptions?: string | IntegrationAPIBuilderOptions<TServer>, maybeOptions?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<TBody, TQuery, TResponse, TServer, "PUT">;
|
|
91
|
-
patch<TBody = never, TResponse = unknown, TQuery = never, TServer extends boolean = false>(pathOrOptions?: string | IntegrationAPIBuilderOptions<TServer>, maybeOptions?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<TBody, TQuery, TResponse, TServer, "PATCH">;
|
|
92
|
-
delete<TBody = never, TResponse = unknown, TQuery = never, TServer extends boolean = false>(pathOrOptions?: string | IntegrationAPIBuilderOptions<TServer>, maybeOptions?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<TBody, TQuery, TResponse, TServer, "DELETE">;
|
|
93
|
-
options<TResponse = unknown, TQuery = never, TServer extends boolean = false>(pathOrOptions?: string | IntegrationAPIBuilderOptions<TServer>, maybeOptions?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<never, TQuery, TResponse, TServer, "OPTIONS">;
|
|
94
|
-
head<TResponse = unknown, TQuery = never, TServer extends boolean = false>(pathOrOptions?: string | IntegrationAPIBuilderOptions<TServer>, maybeOptions?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<never, TQuery, TResponse, TServer, "HEAD">;
|
|
95
|
-
form: {
|
|
96
|
-
query<TBody = never, TResponse = unknown, TQuery = never, TServer extends boolean = false>(pathOrOptions?: string | IntegrationAPIBuilderOptions<TServer>, maybeOptions?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<TBody, TQuery, TResponse, TServer, "QUERY">;
|
|
97
|
-
post<TBody = never, TResponse = unknown, TQuery = never, TServer extends boolean = false>(pathOrOptions?: string | IntegrationAPIBuilderOptions<TServer>, maybeOptions?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<TBody, TQuery, TResponse, TServer, "POST">;
|
|
98
|
-
put<TBody = never, TResponse = unknown, TQuery = never, TServer extends boolean = false>(pathOrOptions?: string | IntegrationAPIBuilderOptions<TServer>, maybeOptions?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<TBody, TQuery, TResponse, TServer, "PUT">;
|
|
99
|
-
patch<TBody = never, TResponse = unknown, TQuery = never, TServer extends boolean = false>(pathOrOptions?: string | IntegrationAPIBuilderOptions<TServer>, maybeOptions?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<TBody, TQuery, TResponse, TServer, "PATCH">;
|
|
100
|
-
delete<TBody = never, TResponse = unknown, TQuery = never, TServer extends boolean = false>(pathOrOptions?: string | IntegrationAPIBuilderOptions<TServer>, maybeOptions?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<TBody, TQuery, TResponse, TServer, "DELETE">;
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
declare const endpoint: {
|
|
104
|
-
get: typeof get;
|
|
105
|
-
route: typeof route;
|
|
106
|
-
fromRoutes: typeof fromRoutes;
|
|
107
|
-
query<TBody = never, TResponse = unknown, TQuery = never, TServer extends boolean = false>(pathOrOptions?: string | IntegrationAPIBuilderOptions<TServer>, maybeOptions?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<TBody, TQuery, TResponse, TServer, "QUERY">;
|
|
108
|
-
post<TBody = never, TResponse = unknown, TQuery = never, TServer extends boolean = false>(pathOrOptions?: string | IntegrationAPIBuilderOptions<TServer>, maybeOptions?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<TBody, TQuery, TResponse, TServer, "POST">;
|
|
109
|
-
put<TBody = never, TResponse = unknown, TQuery = never, TServer extends boolean = false>(pathOrOptions?: string | IntegrationAPIBuilderOptions<TServer>, maybeOptions?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<TBody, TQuery, TResponse, TServer, "PUT">;
|
|
110
|
-
patch<TBody = never, TResponse = unknown, TQuery = never, TServer extends boolean = false>(pathOrOptions?: string | IntegrationAPIBuilderOptions<TServer>, maybeOptions?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<TBody, TQuery, TResponse, TServer, "PATCH">;
|
|
111
|
-
delete<TBody = never, TResponse = unknown, TQuery = never, TServer extends boolean = false>(pathOrOptions?: string | IntegrationAPIBuilderOptions<TServer>, maybeOptions?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<TBody, TQuery, TResponse, TServer, "DELETE">;
|
|
112
|
-
options<TResponse = unknown, TQuery = never, TServer extends boolean = false>(pathOrOptions?: string | IntegrationAPIBuilderOptions<TServer>, maybeOptions?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<never, TQuery, TResponse, TServer, "OPTIONS">;
|
|
113
|
-
head<TResponse = unknown, TQuery = never, TServer extends boolean = false>(pathOrOptions?: string | IntegrationAPIBuilderOptions<TServer>, maybeOptions?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<never, TQuery, TResponse, TServer, "HEAD">;
|
|
114
|
-
form: {
|
|
115
|
-
query<TBody = never, TResponse = unknown, TQuery = never, TServer extends boolean = false>(pathOrOptions?: string | IntegrationAPIBuilderOptions<TServer>, maybeOptions?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<TBody, TQuery, TResponse, TServer, "QUERY">;
|
|
116
|
-
post<TBody = never, TResponse = unknown, TQuery = never, TServer extends boolean = false>(pathOrOptions?: string | IntegrationAPIBuilderOptions<TServer>, maybeOptions?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<TBody, TQuery, TResponse, TServer, "POST">;
|
|
117
|
-
put<TBody = never, TResponse = unknown, TQuery = never, TServer extends boolean = false>(pathOrOptions?: string | IntegrationAPIBuilderOptions<TServer>, maybeOptions?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<TBody, TQuery, TResponse, TServer, "PUT">;
|
|
118
|
-
patch<TBody = never, TResponse = unknown, TQuery = never, TServer extends boolean = false>(pathOrOptions?: string | IntegrationAPIBuilderOptions<TServer>, maybeOptions?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<TBody, TQuery, TResponse, TServer, "PATCH">;
|
|
119
|
-
delete<TBody = never, TResponse = unknown, TQuery = never, TServer extends boolean = false>(pathOrOptions?: string | IntegrationAPIBuilderOptions<TServer>, maybeOptions?: IntegrationAPIBuilderOptions<TServer>): FarmIntegrationAPIOperation<TBody, TQuery, TResponse, TServer, "DELETE">;
|
|
120
|
-
};
|
|
121
|
-
};
|
|
122
|
-
|
|
123
28
|
type RuntimeClientFactory<TClient> = () => TClient | Promise<TClient>;
|
|
124
29
|
type FarmIntegrationOrmSchema = SchemaDefinition<Record<string, AnyModelDefinition>>;
|
|
125
30
|
type FarmIntegrationOrmClient<TSchema extends FarmIntegrationOrmSchema> = OrmClient<TSchema>;
|
|
@@ -152,6 +57,31 @@ declare function resolveIntegrationOrmRuntimeClient<TClient = unknown>(options:
|
|
|
152
57
|
declare function farmIntegrationSchemaToOrmSchema(schema: FarmIntegrationSchema): Promise<FarmIntegrationOrmSchema>;
|
|
153
58
|
type IntegrationOrmModelNames<TSchema extends FarmIntegrationOrmSchema> = keyof SchemaModels<TSchema> & string;
|
|
154
59
|
|
|
60
|
+
interface ResolvedClientCacheAdapterEntry {
|
|
61
|
+
/** Absolute adapter module path with forward slashes, ready for codegen. */
|
|
62
|
+
importPath: string;
|
|
63
|
+
options: {
|
|
64
|
+
version?: string;
|
|
65
|
+
flushDelayMs?: number;
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
interface ClientCachePersistenceEntryCode {
|
|
69
|
+
imports: string;
|
|
70
|
+
init: string;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Resolve `cache.client.adapter` from configuration to an absolute module
|
|
74
|
+
* path for the generated client entries. Fails the build with an actionable
|
|
75
|
+
* error when the option is set but the module cannot be found.
|
|
76
|
+
*/
|
|
77
|
+
declare function resolveFarmClientCacheAdapterEntry(root: string, cache: FarmCacheUserConfig | undefined): ResolvedClientCacheAdapterEntry | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* Code fragments for the generated client entries: an import of the user's
|
|
80
|
+
* adapter module and an init call that runs before hydration starts. Empty
|
|
81
|
+
* strings when persistence is not configured, so entries stay unchanged.
|
|
82
|
+
*/
|
|
83
|
+
declare function generateClientCachePersistenceCode(entry: ResolvedClientCacheAdapterEntry | undefined): ClientCachePersistenceEntryCode;
|
|
84
|
+
|
|
155
85
|
/**
|
|
156
86
|
* Farm.js Middleware System
|
|
157
87
|
*
|
|
@@ -502,6 +432,11 @@ declare function loadFarmConfigFile<TConfig = Record<string, any>>(configPath: s
|
|
|
502
432
|
declare const DEFAULT_FARM_DEVTOOLS_SHORTCUT = "mod+shift+.";
|
|
503
433
|
declare const FARM_DEVTOOLS_PATH = "/__farm/devtools";
|
|
504
434
|
declare const FARM_DEVTOOLS_LAUNCH_PARAM = "__farm_devtools";
|
|
435
|
+
/**
|
|
436
|
+
* Configuration for the built-in DevTools dashboard. The dashboard is deprecated in favor
|
|
437
|
+
* of the `@farm.js/devtools` plugin, which reuses this configuration for enablement and
|
|
438
|
+
* the keyboard shortcut. Both options keep working while the built-in UI remains available.
|
|
439
|
+
*/
|
|
505
440
|
interface FarmDevtoolsConfig {
|
|
506
441
|
/** Enable the development-only DevTools UI and runtime endpoints. */
|
|
507
442
|
enabled?: boolean;
|
|
@@ -1889,7 +1824,13 @@ interface FarmConfig {
|
|
|
1889
1824
|
observability?: FarmObservabilityUserConfig;
|
|
1890
1825
|
/** Farm product telemetry for deployed server runtimes. Set to false to disable. */
|
|
1891
1826
|
telemetry?: boolean;
|
|
1892
|
-
/**
|
|
1827
|
+
/**
|
|
1828
|
+
* Development-only runtime inspector. Enabled by default during `farm dev`.
|
|
1829
|
+
*
|
|
1830
|
+
* @deprecated The built-in dashboard is deprecated. Install `@farm.js/devtools` and add
|
|
1831
|
+
* `devtools()` to `plugins` instead; it reuses this runtime and owns the maintained UI.
|
|
1832
|
+
* `devtools: false` and `shortcut` remain supported for the transition.
|
|
1833
|
+
*/
|
|
1893
1834
|
devtools?: FarmDevtoolsUserConfig;
|
|
1894
1835
|
/** Development-only browser feedback for build and HMR activity. */
|
|
1895
1836
|
devIndicators?: FarmDevIndicatorsConfig;
|
|
@@ -1901,6 +1842,17 @@ interface FarmConfig {
|
|
|
1901
1842
|
experimental?: {
|
|
1902
1843
|
serverComponents?: boolean;
|
|
1903
1844
|
serverActions?: boolean;
|
|
1845
|
+
/**
|
|
1846
|
+
* Enables Partial Prerendering (static-shell caching). Routes still opt in
|
|
1847
|
+
* individually with `export const ppr = true`, the Next-compatible
|
|
1848
|
+
* `export const experimental_ppr = true`, or a `"use ppr"` directive;
|
|
1849
|
+
* without this flag those declarations are inert and the route renders
|
|
1850
|
+
* fully dynamically.
|
|
1851
|
+
*
|
|
1852
|
+
* @experimental
|
|
1853
|
+
* @default false
|
|
1854
|
+
*/
|
|
1855
|
+
ppr?: boolean;
|
|
1904
1856
|
/**
|
|
1905
1857
|
* Controls non-RSC hydration ownership for server modules that import
|
|
1906
1858
|
* leaf `"use client"` components.
|
|
@@ -2136,6 +2088,7 @@ interface RouteModule<TRoute extends FarmRoutePropsTarget = FarmRoutePropsDefaul
|
|
|
2136
2088
|
/**
|
|
2137
2089
|
* Opt into Partial Prerendering/static-shell caching for this route.
|
|
2138
2090
|
* Compatible with Farm's `ppr` export and Next.js `experimental_ppr`.
|
|
2091
|
+
* Requires `experimental.ppr` in `farm.config.ts`; inert without it.
|
|
2139
2092
|
*/
|
|
2140
2093
|
ppr?: boolean;
|
|
2141
2094
|
experimental_ppr?: boolean;
|
|
@@ -2316,4 +2269,4 @@ interface SSGCollectionResult {
|
|
|
2316
2269
|
ssr: string[];
|
|
2317
2270
|
}
|
|
2318
2271
|
|
|
2319
|
-
export { type BuildOptions as $, type AppRoutePattern as A, type BundleResultPayload as B, type FarmContextFactoryInput as C, type FarmIsolatedClientHydrationMode as D, type LoadingProps as E, type FarmRouteRuntimeConfig as F, type ErrorProps as G, type PagePropsWithMiddleware as H, type MetadataProps as I, type LayoutMetadataProps as J, type Page as K, type LayoutProps as L, type Metadata as M, type NitroPreset as N, type Layout as O, type ParsedRoute as P, type Loading as Q, type RouteSegment as R, type ErrorBoundary as S, type StaticPathPrimitive as T, type StaticPathParams as U, type StaticRouteParams as V, type GenerateStaticParams as W, type LayoutModule as X, type FarmRequest as Y, type FarmResponse as Z, type ServerAction as _, type FarmPlugin as a, type FarmRequestStore as a$, type SSGPage as a0, type SSGCollectionResult as a1, type FarmLayerEntry as a2, type ResolvedFarmLayer as a3, type FarmSourceRoot as a4, type ResolveFarmLayersOptions as a5, type FarmLayerResolution as a6, resolveFarmLayers as a7, getFarmSourceRoots as a8, getFarmAppDirectories as a9, resolveDeployConfig as aA, resolveMigrationsConfig as aB, resolveDeployOutputPath as aC, normalizeDeployTarget as aD, getDeployTargetForPreset as aE, getPresetForDeployTarget as aF, type FarmLayerConfig as aG, type FarmPerformanceConfig as aH, type FarmPreloadMode as aI, type FarmPreloadUserConfig as aJ, type ResolvedFarmPreloadConfig as aK, type FarmCspConfig as aL, type FarmCspDirectives as aM, type FarmCspDirectiveValue as aN, type FarmCspOptions as aO, type FarmSecurityConfig as aP, type ResolvedFarmCspConfig as aQ, type FarmAuthConfig as aR, type FarmAuthDatabaseConfig as aS, type FarmAuthEmailAndPasswordConfig as aT, type FarmAuthSessionConfig as aU, type FarmAuthUserConfig as aV, type PluginRequestContext as aW, type FarmPluginContext as aX, type FarmPluginIntegrationContext as aY, type FarmPluginLifecycle as aZ, type FarmRequestPluginContext as a_, getFarmLayerAliases as aa, createFarmConfigResolutionPlugin as ab, loadFarmConfigFile as ac, type ReadonlyMiddlewareStore as ad, type FarmMiddlewareConfig as ae, type MiddlewareModule as af, type ResolvedFarmRouteRuntimeConfig as ag, type ResolvedFarmAPIConfig as ah, type ResolvedFarmDevtoolsConfig as ai, type ResolvedFarmDevIndicatorsConfig as aj, type ResolvedFarmAuthConfig as ak, type ResolvedFarmPerformanceConfig as al, type ResolvedFarmSecurityConfig as am, type FarmIntegrationAPI as an, type FarmIntegrationAPIOperation as ao, type APIRequestRuntime as ap, manageFarmDocumentPreloads as aq, manageFarmHtmlPreloads as ar, manageFarmLinkHeaderPreloads as as, reportFarmPreloadWarnings as at, type OpenAPIConfig as au, definePlugin as av, FarmRuntimeShutdownError as aw, PluginManager as ax, resolveConfig as ay, loadConfig as az, type FarmRouteRuntime as b, type FarmIntegrationConfigContext as b$, type FarmPluginRuntimeKind as b0, type FarmPluginRouteRuntimePayload as b1, type FarmPluginSetupContext as b2, type FarmPluginStateContext as b3, type FarmPluginRuntimeBaseEvent as b4, type FarmPluginRuntimeContextEvent as b5, type FarmPluginRuntimeBeforeEvent as b6, type FarmPluginRuntimeAfterEvent as b7, type FarmPluginRuntimeErrorEvent as b8, type FarmPluginRuntimeStartEvent as b9, type HeaderConfig as bA, type RewriteConfig as bB, type ImageConfig as bC, type I18nConfig as bD, type MiddlewareConfig as bE, type FarmDeployConfig as bF, type ResolvedFarmDeployConfig as bG, type FarmDeployTarget as bH, type FarmIntegrationCategory as bI, type FarmIntegrationSlot as bJ, type FarmIntegrationRouteParamValue as bK, type FarmIntegrationRouteParams as bL, type FarmIntegrationRouteMethod as bM, type FarmIntegrationRouteInputSource as bN, type FarmIntegrationValidationPathSegment as bO, type FarmIntegrationRouteInput as bP, type FarmIntegrationValidationIssue as bQ, type FarmIntegrationValidationErrorLike as bR, type FarmIntegrationValidationResult as bS, type FarmIntegrationStandardValidationResult as bT, type FarmIntegrationInputSchema as bU, type FarmIntegrationRouteInputSchemas as bV, type FarmIntegrationRequestContextStore as bW, FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY as bX, type FarmIntegrationRouteDb as bY, type FarmIntegrationRouteStorageArgs as bZ, type FarmIntegrationRouteArgs as b_, type FarmPluginRuntimeCloseEvent as ba, type FarmPluginRuntimeHooks as bb, type FarmPluginRuntimeRequestOptions as bc, type FarmPluginRuntimeRequestHandler as bd, type FarmPluginRuntimeSession as be, type FarmPluginDiscoveredRoute as bf, type FarmPluginRouterHooks as bg, type FarmPluginRenderHooks as bh, type FarmPluginBuildHooks as bi, type FarmPluginDevHooks as bj, type FarmPluginClientConfig as bk, type RouteDiscoveredPayload as bl, type RoutesGeneratedPayload as bm, type MiddlewareDiscoveredPayload as bn, type APIRouteDiscoveredPayload as bo, type RouteMatchPayload as bp, type RouteMatchResultPayload as bq, type RenderLifecyclePayload as br, type APIHandlerLifecyclePayload as bs, type ErrorLifecyclePayload as bt, type HMRUpdatePayload as bu, type BundleLifecyclePayload as bv, type NitroBuildLifecyclePayload as bw, type ShutdownPayload as bx, type ResolvedFarmConfig as by, type RedirectConfig as bz, type FarmRouteRegions as c, type FarmIntegrationAPIMethod as c$, type FarmIntegrationConfigDefinition as c0, type FarmIntegrationConfigInput as c1, type FarmIntegrationLifecycleLogLevel as c2, type FarmIntegrationLifecycleLogger as c3, type FarmIntegrationLifecycleContext as c4, type FarmIntegrationLifecycleHook as c5, type FarmIntegrationData as c6, type FarmIntegrationHandlerContext as c7, type FarmIntegrationRouteHookContext as c8, type FarmIntegrationRouteHook as c9, type FarmIntegrationRoutesFactoryContext as cA, type FarmIntegrationRoutesFactory as cB, type FarmIntegrationEndpointValue as cC, type FarmIntegrationEndpoints as cD, type FarmIntegrationEndpointsFactoryContext as cE, type FarmIntegrationEndpointsFactory as cF, createIntegrationRoute as cG, integrationRoute as cH, type DefinedIntegration as cI, defineIntegration as cJ, isFarmIntegration as cK, resolveIntegrationPlugins as cL, getIntegrationProviders as cM, isFarmIntegrationProviderComponentReference as cN, getIntegrationDocumentNavigationMatchers as cO, getIntegrationSchemas as cP, getRegisteredIntegrationRuntime as cQ, getRegisteredIntegrations as cR, getRegisteredIntegrationSchemas as cS, matchIntegrationRoute as cT, matchRegisteredIntegrationRoute as cU, getRegisteredIntegrationAPIManifest as cV, dispatchIntegrationRequest as cW, api as cX, defineIntegrationAPI as cY, defineIntegrationAPIOperation as cZ, type FarmIntegrationAPIBodyFormat as c_, type FarmIntegrationRoute as ca, type FarmTypedIntegrationRoute as cb, type FarmIntegrationRouteMiddleware as cc, type FarmIntegrationMiddleware as cd, type FarmIntegrationProviderProps as ce, type FarmIntegrationProviderComponentReference as cf, type FarmIntegrationProvider as cg, type FarmIntegrationDocumentNavigation as ch, type FarmIntegrationSchemaFieldType as ci, type FarmIntegrationSchemaReference as cj, type FarmIntegrationSchemaField as ck, type FarmIntegrationSchemaConstraint as cl, type FarmIntegrationSchemaModel as cm, type FarmIntegrationSchemaModelExtension as cn, type FarmIntegrationSchemaModelOverride as co, type FarmIntegrationSchema as cp, defineIntegrationSchema as cq, type FarmIntegrationLogPhase as cr, type FarmIntegrationLogEvent as cs, type FarmIntegrationLogger as ct, type FarmIntegrationPluginOwner as cu, type FarmIntegrationContributedPlugin as cv, type FarmIntegrationsUserConfig as cw, getFarmIntegrationPluginServerRuntime as cx, getFarmIntegrationPluginOwner as cy, type FarmIntegrationRouteFactory as cz, type FarmRouteMaxDuration as d, FARM_DEVTOOLS_LAUNCH_PARAM as d$, type FarmIntegrationAPIResponseFormat as d0, type FarmIntegrationOrmSchema as d1, type FarmIntegrationOrmClient as d2, type InferFarmIntegrationOrmField as d3, type InferFarmIntegrationOrmFields as d4, type InferFarmIntegrationOrmSchema as d5, type InferFarmIntegrationOrmClient as d6, type CreateIntegrationOrmOptions as d7, createIntegrationOrm as d8, resolveIntegrationOrmRuntimeClient as d9, type RateLimitStatus as dA, type MemoryRateLimitStorageOptions as dB, type NextFunction as dC, type MiddlewareResult as dD, type FarmRouteRuleRenderMode as dE, type FarmRouteRuleRedirect as dF, type FarmRouteRuleCors as dG, type FarmRouteRule as dH, type FarmRouteRules as dI, normalizeRouteRules as dJ, routeRulesToRedirects as dK, routeRulesToHeaders as dL, routeRulesToNitroRouteRules as dM, type FarmRouteRuntimeEntryKind as dN, type FarmRouteRenderingMode as dO, type FarmRouteRuntimeManifestEntry as dP, type FarmRouteRuntimeManifest as dQ, normalizeFarmRouteRuntimeConfig as dR, mergeFarmRouteRuntimeConfigs as dS, resolveFarmRouteRuntimeConfig as dT, hasFarmRouteRuntimeControls as dU, getFarmRouteRuntimeConfig as dV, createFarmRouteRuntimeKey as dW, resolveFarmRouteRuleRuntimeConfig as dX, farmRouteRuleMatches as dY, DEFAULT_FARM_DEVTOOLS_SHORTCUT as dZ, FARM_DEVTOOLS_PATH as d_, farmIntegrationSchemaToOrmSchema as da, type IntegrationOrmModelNames as db, type FarmIntegrationRouteOperationCarrier as dc, type InferIntegrationAPIFromRoutes as dd, endpoint as de, DEFAULT_FARM_API_BASE_PATH as df, type FarmAPIConfigResolverContext as dg, type FarmAPIConfigValue as dh, type FarmAPIConfig as di, resolveFarmAPIConfig as dj, normalizeFarmAPIConfig as dk, normalizeFarmAPIBasePath as dl, getFarmAPIBaseURL as dm, resolveFarmAPIRequestURL as dn, type MiddlewareContext as dp, type MiddlewareFunction as dq, type RequestMiddleware as dr, type RequestMiddlewareContext as ds, type MiddlewareStore as dt, type MiddlewareChain as du, type CookieJar as dv, type CookieOptions as dw, type RateLimitConfig as dx, type RateLimitIncrementResult as dy, type RateLimitStorage as dz, type FarmAppContext as e, type FarmDevtoolsConfig as e0, type FarmDevtoolsUserConfig as e1, resolveFarmDevtoolsConfig as e2, type FarmBuildActivityPosition as e3, type FarmDevIndicatorsConfig as e4, resolveFarmDevIndicatorsConfig as e5, generateFarmDevIndicatorsClientRuntime as e6, type MiddlewareConfig$1 as e7, farmI18nClientBridgePlugin as e8, withFarmRequestTracing as e9, rewriteEarlySsrRelativeImports as ea, transformIsolatedClientBoundaryModule as eb, FARM_NODE_RESPONSE_END_PENDING as ec, type PageProps as f, type PluginContextProps as g, type RouteModule as h, type FarmMdxComponents as i, type FarmMdxResolvedConfig as j, type FarmMdxComponent as k, type FarmMdxUserConfig as l, type FarmUserConfig as m, type FarmContextFactory as n, type MiddlewareProps as o, type FarmIntegration as p, type FarmConfig as q, resolveMdxConfig as r, farmPlugin as s, defineConfig as t, type FarmComponentType as u, type PageRouteParams as v, type FarmMigrationCommand as w, type FarmMigrationsConfig as x, type FarmMigrationsUserConfig as y, type ResolvedFarmMigrationsConfig as z };
|
|
2272
|
+
export { type BuildOptions as $, type AppRoutePattern as A, type BundleResultPayload as B, type FarmContextFactoryInput as C, type FarmIsolatedClientHydrationMode as D, type LoadingProps as E, type FarmRouteRuntimeConfig as F, type ErrorProps as G, type PagePropsWithMiddleware as H, type MetadataProps as I, type LayoutMetadataProps as J, type Page as K, type LayoutProps as L, type Metadata as M, type NitroPreset as N, type Layout as O, type ParsedRoute as P, type Loading as Q, type RouteSegment as R, type ErrorBoundary as S, type StaticPathPrimitive as T, type StaticPathParams as U, type StaticRouteParams as V, type GenerateStaticParams as W, type LayoutModule as X, type FarmRequest as Y, type FarmResponse as Z, type ServerAction as _, type FarmPlugin as a, type FarmPluginRouteRuntimePayload as a$, type SSGPage as a0, type SSGCollectionResult as a1, type FarmLayerEntry as a2, type ResolvedFarmLayer as a3, type FarmSourceRoot as a4, type ResolveFarmLayersOptions as a5, type FarmLayerResolution as a6, resolveFarmLayers as a7, getFarmSourceRoots as a8, getFarmAppDirectories as a9, resolveDeployOutputPath as aA, normalizeDeployTarget as aB, getDeployTargetForPreset as aC, getPresetForDeployTarget as aD, type FarmLayerConfig as aE, type FarmPerformanceConfig as aF, type FarmPreloadMode as aG, type FarmPreloadUserConfig as aH, type ResolvedFarmPreloadConfig as aI, type FarmCspConfig as aJ, type FarmCspDirectives as aK, type FarmCspDirectiveValue as aL, type FarmCspOptions as aM, type FarmSecurityConfig as aN, type ResolvedFarmCspConfig as aO, type FarmAuthConfig as aP, type FarmAuthDatabaseConfig as aQ, type FarmAuthEmailAndPasswordConfig as aR, type FarmAuthSessionConfig as aS, type FarmAuthUserConfig as aT, type PluginRequestContext as aU, type FarmPluginContext as aV, type FarmPluginIntegrationContext as aW, type FarmPluginLifecycle as aX, type FarmRequestPluginContext as aY, type FarmRequestStore as aZ, type FarmPluginRuntimeKind as a_, getFarmLayerAliases as aa, createFarmConfigResolutionPlugin as ab, loadFarmConfigFile as ac, type ReadonlyMiddlewareStore as ad, type FarmMiddlewareConfig as ae, type MiddlewareModule as af, type ResolvedFarmRouteRuntimeConfig as ag, type ResolvedFarmAPIConfig as ah, type ResolvedFarmDevtoolsConfig as ai, type ResolvedFarmDevIndicatorsConfig as aj, type ResolvedFarmAuthConfig as ak, type ResolvedFarmPerformanceConfig as al, type ResolvedFarmSecurityConfig as am, type APIRequestRuntime as an, manageFarmDocumentPreloads as ao, manageFarmHtmlPreloads as ap, manageFarmLinkHeaderPreloads as aq, reportFarmPreloadWarnings as ar, type OpenAPIConfig as as, definePlugin as at, FarmRuntimeShutdownError as au, PluginManager as av, resolveConfig as aw, loadConfig as ax, resolveDeployConfig as ay, resolveMigrationsConfig as az, type FarmRouteRuntime as b, type FarmIntegrationConfigInput as b$, type FarmPluginSetupContext as b0, type FarmPluginStateContext as b1, type FarmPluginRuntimeBaseEvent as b2, type FarmPluginRuntimeContextEvent as b3, type FarmPluginRuntimeBeforeEvent as b4, type FarmPluginRuntimeAfterEvent as b5, type FarmPluginRuntimeErrorEvent as b6, type FarmPluginRuntimeStartEvent as b7, type FarmPluginRuntimeCloseEvent as b8, type FarmPluginRuntimeHooks as b9, type ImageConfig as bA, type I18nConfig as bB, type MiddlewareConfig as bC, type FarmDeployConfig as bD, type ResolvedFarmDeployConfig as bE, type FarmDeployTarget as bF, type FarmIntegrationCategory as bG, type FarmIntegrationSlot as bH, type FarmIntegrationRouteParamValue as bI, type FarmIntegrationRouteParams as bJ, type FarmIntegrationRouteMethod as bK, type FarmIntegrationRouteInputSource as bL, type FarmIntegrationValidationPathSegment as bM, type FarmIntegrationRouteInput as bN, type FarmIntegrationValidationIssue as bO, type FarmIntegrationValidationErrorLike as bP, type FarmIntegrationValidationResult as bQ, type FarmIntegrationStandardValidationResult as bR, type FarmIntegrationInputSchema as bS, type FarmIntegrationRouteInputSchemas as bT, type FarmIntegrationRequestContextStore as bU, FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY as bV, type FarmIntegrationRouteDb as bW, type FarmIntegrationRouteStorageArgs as bX, type FarmIntegrationRouteArgs as bY, type FarmIntegrationConfigContext as bZ, type FarmIntegrationConfigDefinition as b_, type FarmPluginRuntimeRequestOptions as ba, type FarmPluginRuntimeRequestHandler as bb, type FarmPluginRuntimeSession as bc, type FarmPluginDiscoveredRoute as bd, type FarmPluginRouterHooks as be, type FarmPluginRenderHooks as bf, type FarmPluginBuildHooks as bg, type FarmPluginDevHooks as bh, type FarmPluginClientConfig as bi, type RouteDiscoveredPayload as bj, type RoutesGeneratedPayload as bk, type MiddlewareDiscoveredPayload as bl, type APIRouteDiscoveredPayload as bm, type RouteMatchPayload as bn, type RouteMatchResultPayload as bo, type RenderLifecyclePayload as bp, type APIHandlerLifecyclePayload as bq, type ErrorLifecyclePayload as br, type HMRUpdatePayload as bs, type BundleLifecyclePayload as bt, type NitroBuildLifecyclePayload as bu, type ShutdownPayload as bv, type ResolvedFarmConfig as bw, type RedirectConfig as bx, type HeaderConfig as by, type RewriteConfig as bz, type FarmRouteRegions as c, type CreateIntegrationOrmOptions as c$, type FarmIntegrationLifecycleLogLevel as c0, type FarmIntegrationLifecycleLogger as c1, type FarmIntegrationLifecycleContext as c2, type FarmIntegrationLifecycleHook as c3, type FarmIntegrationData as c4, type FarmIntegrationHandlerContext as c5, type FarmIntegrationRouteHookContext as c6, type FarmIntegrationRouteHook as c7, type FarmIntegrationRoute as c8, type FarmTypedIntegrationRoute as c9, type FarmIntegrationEndpointValue as cA, type FarmIntegrationEndpoints as cB, type FarmIntegrationEndpointsFactoryContext as cC, type FarmIntegrationEndpointsFactory as cD, createIntegrationRoute as cE, integrationRoute as cF, type DefinedIntegration as cG, defineIntegration as cH, isFarmIntegration as cI, resolveIntegrationPlugins as cJ, getIntegrationProviders as cK, isFarmIntegrationProviderComponentReference as cL, getIntegrationDocumentNavigationMatchers as cM, getIntegrationSchemas as cN, getRegisteredIntegrationRuntime as cO, getRegisteredIntegrations as cP, getRegisteredIntegrationSchemas as cQ, matchIntegrationRoute as cR, matchRegisteredIntegrationRoute as cS, getRegisteredIntegrationAPIManifest as cT, dispatchIntegrationRequest as cU, type FarmIntegrationOrmSchema as cV, type FarmIntegrationOrmClient as cW, type InferFarmIntegrationOrmField as cX, type InferFarmIntegrationOrmFields as cY, type InferFarmIntegrationOrmSchema as cZ, type InferFarmIntegrationOrmClient as c_, type FarmIntegrationRouteMiddleware as ca, type FarmIntegrationMiddleware as cb, type FarmIntegrationProviderProps as cc, type FarmIntegrationProviderComponentReference as cd, type FarmIntegrationProvider as ce, type FarmIntegrationDocumentNavigation as cf, type FarmIntegrationSchemaFieldType as cg, type FarmIntegrationSchemaReference as ch, type FarmIntegrationSchemaField as ci, type FarmIntegrationSchemaConstraint as cj, type FarmIntegrationSchemaModel as ck, type FarmIntegrationSchemaModelExtension as cl, type FarmIntegrationSchemaModelOverride as cm, type FarmIntegrationSchema as cn, defineIntegrationSchema as co, type FarmIntegrationLogPhase as cp, type FarmIntegrationLogEvent as cq, type FarmIntegrationLogger as cr, type FarmIntegrationPluginOwner as cs, type FarmIntegrationContributedPlugin as ct, type FarmIntegrationsUserConfig as cu, getFarmIntegrationPluginServerRuntime as cv, getFarmIntegrationPluginOwner as cw, type FarmIntegrationRouteFactory as cx, type FarmIntegrationRoutesFactoryContext as cy, type FarmIntegrationRoutesFactory as cz, type FarmRouteMaxDuration as d, rewriteEarlySsrRelativeImports as d$, createIntegrationOrm as d0, resolveIntegrationOrmRuntimeClient as d1, farmIntegrationSchemaToOrmSchema as d2, type IntegrationOrmModelNames as d3, DEFAULT_FARM_API_BASE_PATH as d4, type FarmAPIConfigResolverContext as d5, type FarmAPIConfigValue as d6, type FarmAPIConfig as d7, resolveFarmAPIConfig as d8, normalizeFarmAPIConfig as d9, routeRulesToHeaders as dA, routeRulesToNitroRouteRules as dB, type FarmRouteRuntimeEntryKind as dC, type FarmRouteRenderingMode as dD, type FarmRouteRuntimeManifestEntry as dE, type FarmRouteRuntimeManifest as dF, normalizeFarmRouteRuntimeConfig as dG, mergeFarmRouteRuntimeConfigs as dH, resolveFarmRouteRuntimeConfig as dI, hasFarmRouteRuntimeControls as dJ, getFarmRouteRuntimeConfig as dK, createFarmRouteRuntimeKey as dL, resolveFarmRouteRuleRuntimeConfig as dM, farmRouteRuleMatches as dN, DEFAULT_FARM_DEVTOOLS_SHORTCUT as dO, FARM_DEVTOOLS_PATH as dP, FARM_DEVTOOLS_LAUNCH_PARAM as dQ, type FarmDevtoolsConfig as dR, type FarmDevtoolsUserConfig as dS, resolveFarmDevtoolsConfig as dT, type FarmBuildActivityPosition as dU, type FarmDevIndicatorsConfig as dV, resolveFarmDevIndicatorsConfig as dW, generateFarmDevIndicatorsClientRuntime as dX, type MiddlewareConfig$1 as dY, farmI18nClientBridgePlugin as dZ, withFarmRequestTracing as d_, normalizeFarmAPIBasePath as da, getFarmAPIBaseURL as db, resolveFarmAPIRequestURL as dc, type MiddlewareContext as dd, type MiddlewareFunction as de, type RequestMiddleware as df, type RequestMiddlewareContext as dg, type MiddlewareStore as dh, type MiddlewareChain as di, type CookieJar as dj, type CookieOptions as dk, type RateLimitConfig as dl, type RateLimitIncrementResult as dm, type RateLimitStorage as dn, type RateLimitStatus as dp, type MemoryRateLimitStorageOptions as dq, type NextFunction as dr, type MiddlewareResult as ds, type FarmRouteRuleRenderMode as dt, type FarmRouteRuleRedirect as du, type FarmRouteRuleCors as dv, type FarmRouteRule as dw, type FarmRouteRules as dx, normalizeRouteRules as dy, routeRulesToRedirects as dz, type FarmAppContext as e, transformIsolatedClientBoundaryModule as e0, generateClientCachePersistenceCode as e1, resolveFarmClientCacheAdapterEntry as e2, type ClientCachePersistenceEntryCode as e3, FARM_NODE_RESPONSE_END_PENDING as e4, type PageProps as f, type PluginContextProps as g, type RouteModule as h, type FarmMdxComponents as i, type FarmMdxResolvedConfig as j, type FarmMdxComponent as k, type FarmMdxUserConfig as l, type FarmUserConfig as m, type FarmContextFactory as n, type MiddlewareProps as o, type FarmIntegration as p, type FarmConfig as q, resolveMdxConfig as r, farmPlugin as s, defineConfig as t, type FarmComponentType as u, type PageRouteParams as v, type FarmMigrationCommand as w, type FarmMigrationsConfig as x, type FarmMigrationsUserConfig as y, type ResolvedFarmMigrationsConfig as z };
|