devflare 1.0.0-next.15 → 1.0.0-next.16
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/LLM.md +9360 -1819
- package/README.md +313 -39
- package/bin/devflare.js +17 -7
- package/dist/account-0w8wdzjv.js +475 -0
- package/dist/account-eygq6qx7.js +475 -0
- package/dist/account-fw8nafav.js +475 -0
- package/dist/account-pzq69nys.js +475 -0
- package/dist/account-s66jb15j.js +475 -0
- package/dist/api-d6ekexs5.js +25 -0
- package/dist/bridge/index.d.ts +1 -1
- package/dist/bridge/index.d.ts.map +1 -1
- package/dist/bridge/miniflare.d.ts.map +1 -1
- package/dist/bridge/protocol.d.ts +1 -1
- package/dist/bridge/protocol.d.ts.map +1 -1
- package/dist/bridge/proxy.d.ts +0 -4
- package/dist/bridge/proxy.d.ts.map +1 -1
- package/dist/bridge/serialization.d.ts.map +1 -1
- package/dist/bridge/server.d.ts +1 -1
- package/dist/bridge/server.d.ts.map +1 -1
- package/dist/browser-shim/handler.d.ts +1 -1
- package/dist/browser-shim/handler.d.ts.map +1 -1
- package/dist/browser.d.ts +1648 -38
- package/dist/browser.d.ts.map +1 -1
- package/dist/build-1kmkwqgh.js +53 -0
- package/dist/build-506kjhcm.js +53 -0
- package/dist/build-66866ahs.js +53 -0
- package/dist/build-g1adm3ww.js +53 -0
- package/dist/build-p3r3117t.js +53 -0
- package/dist/bundler/do-bundler.d.ts.map +1 -1
- package/dist/bundler/rolldown-shared.d.ts +24 -0
- package/dist/bundler/rolldown-shared.d.ts.map +1 -0
- package/dist/bundler/worker-bundler.d.ts +0 -1
- package/dist/bundler/worker-bundler.d.ts.map +1 -1
- package/dist/cli/command-utils.d.ts +18 -0
- package/dist/cli/command-utils.d.ts.map +1 -0
- package/dist/cli/commands/account.d.ts +1 -1
- package/dist/cli/commands/account.d.ts.map +1 -1
- package/dist/cli/commands/build-artifacts.d.ts +27 -0
- package/dist/cli/commands/build-artifacts.d.ts.map +1 -0
- package/dist/cli/commands/build.d.ts.map +1 -1
- package/dist/cli/commands/deploy.d.ts.map +1 -1
- package/dist/cli/commands/dev.d.ts.map +1 -1
- package/dist/cli/commands/doctor.d.ts.map +1 -1
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/login.d.ts +4 -0
- package/dist/cli/commands/login.d.ts.map +1 -0
- package/dist/cli/commands/previews-support/cleanup.d.ts +9 -0
- package/dist/cli/commands/previews-support/cleanup.d.ts.map +1 -0
- package/dist/cli/commands/previews-support/family.d.ts +10 -0
- package/dist/cli/commands/previews-support/family.d.ts.map +1 -0
- package/dist/cli/commands/previews-support/render.d.ts +8 -0
- package/dist/cli/commands/previews-support/render.d.ts.map +1 -0
- package/dist/cli/commands/previews-support/theme.d.ts +10 -0
- package/dist/cli/commands/previews-support/theme.d.ts.map +1 -0
- package/dist/cli/commands/previews-support/types.d.ts +70 -0
- package/dist/cli/commands/previews-support/types.d.ts.map +1 -0
- package/dist/cli/commands/previews.d.ts +4 -0
- package/dist/cli/commands/previews.d.ts.map +1 -0
- package/dist/cli/commands/productions.d.ts +4 -0
- package/dist/cli/commands/productions.d.ts.map +1 -0
- package/dist/cli/commands/token.d.ts +4 -0
- package/dist/cli/commands/token.d.ts.map +1 -0
- package/dist/cli/commands/type-generation/discovery.d.ts +7 -0
- package/dist/cli/commands/type-generation/discovery.d.ts.map +1 -0
- package/dist/cli/commands/type-generation/generator.d.ts +44 -0
- package/dist/cli/commands/type-generation/generator.d.ts.map +1 -0
- package/dist/cli/commands/type-generation/models.d.ts +27 -0
- package/dist/cli/commands/type-generation/models.d.ts.map +1 -0
- package/dist/cli/commands/types.d.ts.map +1 -1
- package/dist/cli/commands/worker.d.ts +4 -0
- package/dist/cli/commands/worker.d.ts.map +1 -0
- package/dist/cli/config-path.d.ts +2 -1
- package/dist/cli/config-path.d.ts.map +1 -1
- package/dist/cli/deploy-strategy.d.ts +17 -0
- package/dist/cli/deploy-strategy.d.ts.map +1 -0
- package/dist/cli/deploy-target.d.ts +17 -0
- package/dist/cli/deploy-target.d.ts.map +1 -0
- package/dist/cli/generated-artifacts.d.ts +12 -0
- package/dist/cli/generated-artifacts.d.ts.map +1 -0
- package/dist/cli/help-pages/pages/account.d.ts +3 -0
- package/dist/cli/help-pages/pages/account.d.ts.map +1 -0
- package/dist/cli/help-pages/pages/core.d.ts +4 -0
- package/dist/cli/help-pages/pages/core.d.ts.map +1 -0
- package/dist/cli/help-pages/pages/index.d.ts +3 -0
- package/dist/cli/help-pages/pages/index.d.ts.map +1 -0
- package/dist/cli/help-pages/pages/misc.d.ts +3 -0
- package/dist/cli/help-pages/pages/misc.d.ts.map +1 -0
- package/dist/cli/help-pages/pages/previews.d.ts +3 -0
- package/dist/cli/help-pages/pages/previews.d.ts.map +1 -0
- package/dist/cli/help-pages/pages/productions.d.ts +3 -0
- package/dist/cli/help-pages/pages/productions.d.ts.map +1 -0
- package/dist/cli/help-pages/render.d.ts +12 -0
- package/dist/cli/help-pages/render.d.ts.map +1 -0
- package/dist/cli/help-pages/shared.d.ts +15 -0
- package/dist/cli/help-pages/shared.d.ts.map +1 -0
- package/dist/cli/help-pages/types.d.ts +23 -0
- package/dist/cli/help-pages/types.d.ts.map +1 -0
- package/dist/cli/help.d.ts +6 -0
- package/dist/cli/help.d.ts.map +1 -0
- package/dist/cli/index.d.ts +1 -0
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/preview-bindings.d.ts +42 -0
- package/dist/cli/preview-bindings.d.ts.map +1 -0
- package/dist/cli/preview.d.ts +11 -0
- package/dist/cli/preview.d.ts.map +1 -0
- package/dist/cli/ui.d.ts +37 -0
- package/dist/cli/ui.d.ts.map +1 -0
- package/dist/cli/workspace-build-guard.d.ts +14 -0
- package/dist/cli/workspace-build-guard.d.ts.map +1 -0
- package/dist/cloudflare/account-core.d.ts +6 -0
- package/dist/cloudflare/account-core.d.ts.map +1 -0
- package/dist/cloudflare/account-resources.d.ts +40 -0
- package/dist/cloudflare/account-resources.d.ts.map +1 -0
- package/dist/cloudflare/account-status.d.ts +11 -0
- package/dist/cloudflare/account-status.d.ts.map +1 -0
- package/dist/cloudflare/account-workers.d.ts +14 -0
- package/dist/cloudflare/account-workers.d.ts.map +1 -0
- package/dist/cloudflare/account.d.ts +7 -64
- package/dist/cloudflare/account.d.ts.map +1 -1
- package/dist/cloudflare/api.d.ts +4 -0
- package/dist/cloudflare/api.d.ts.map +1 -1
- package/dist/cloudflare/index.d.ts +57 -2
- package/dist/cloudflare/index.d.ts.map +1 -1
- package/dist/cloudflare/kv-namespace.d.ts +3 -0
- package/dist/cloudflare/kv-namespace.d.ts.map +1 -0
- package/dist/cloudflare/preferences.d.ts.map +1 -1
- package/dist/cloudflare/preview-registry-cache.d.ts +6 -0
- package/dist/cloudflare/preview-registry-cache.d.ts.map +1 -0
- package/dist/cloudflare/preview-registry-records.d.ts +61 -0
- package/dist/cloudflare/preview-registry-records.d.ts.map +1 -0
- package/dist/cloudflare/preview-registry-store.d.ts +14 -0
- package/dist/cloudflare/preview-registry-store.d.ts.map +1 -0
- package/dist/cloudflare/preview-registry-types.d.ts +103 -0
- package/dist/cloudflare/preview-registry-types.d.ts.map +1 -0
- package/dist/cloudflare/preview-registry.d.ts +42 -0
- package/dist/cloudflare/preview-registry.d.ts.map +1 -0
- package/dist/cloudflare/registry-schema.d.ts +253 -0
- package/dist/cloudflare/registry-schema.d.ts.map +1 -0
- package/dist/cloudflare/tokens.d.ts +18 -0
- package/dist/cloudflare/tokens.d.ts.map +1 -0
- package/dist/cloudflare/types.d.ts +122 -5
- package/dist/cloudflare/types.d.ts.map +1 -1
- package/dist/cloudflare/usage.d.ts.map +1 -1
- package/dist/config/compiler.d.ts +4 -0
- package/dist/config/compiler.d.ts.map +1 -1
- package/dist/config/framework-providers.d.ts +9 -0
- package/dist/config/framework-providers.d.ts.map +1 -0
- package/dist/config/index.d.ts +4 -3
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/loader.d.ts.map +1 -1
- package/dist/config/preview-resources.d.ts +77 -0
- package/dist/config/preview-resources.d.ts.map +1 -0
- package/dist/config/preview.d.ts +31 -0
- package/dist/config/preview.d.ts.map +1 -0
- package/dist/config/ref.d.ts +0 -22
- package/dist/config/ref.d.ts.map +1 -1
- package/dist/config/resolve.d.ts +1 -0
- package/dist/config/resolve.d.ts.map +1 -1
- package/dist/config/resource-resolution.d.ts +21 -5
- package/dist/config/resource-resolution.d.ts.map +1 -1
- package/dist/config/schema-bindings.d.ts +693 -0
- package/dist/config/schema-bindings.d.ts.map +1 -0
- package/dist/config/schema-build.d.ts +67 -0
- package/dist/config/schema-build.d.ts.map +1 -0
- package/dist/config/schema-env.d.ts +1341 -0
- package/dist/config/schema-env.d.ts.map +1 -0
- package/dist/config/schema-normalization.d.ts +64 -0
- package/dist/config/schema-normalization.d.ts.map +1 -0
- package/dist/config/schema-runtime.d.ts +230 -0
- package/dist/config/schema-runtime.d.ts.map +1 -0
- package/dist/config/schema.d.ts +542 -3736
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config-entry.d.ts +5 -0
- package/dist/config-entry.d.ts.map +1 -0
- package/dist/{config-v9tr4rts.js → config-fjwke42y.js} +6 -4
- package/dist/config-hwdqjse7.js +59 -0
- package/dist/config-pxvewrhv.js +59 -0
- package/dist/config-q0g5qdga.js +59 -0
- package/dist/decorators/durable-object.d.ts.map +1 -1
- package/dist/deploy-7nmzc9r8.js +609 -0
- package/dist/deploy-csfhdr64.js +691 -0
- package/dist/deploy-ex4g5avz.js +621 -0
- package/dist/deploy-jnb0bhka.js +609 -0
- package/dist/deploy-tp0g6qdp.js +609 -0
- package/dist/deploy-ykpcjkc2.js +690 -0
- package/dist/{dev-ymtphbkg.js → dev-2pd33m28.js} +386 -348
- package/dist/dev-7ef5e2j1.js +2409 -0
- package/dist/dev-8nssqatr.js +2409 -0
- package/dist/dev-grznx8fn.js +2409 -0
- package/dist/dev-server/d1-migrations.d.ts +14 -0
- package/dist/dev-server/d1-migrations.d.ts.map +1 -0
- package/dist/dev-server/gateway-script.d.ts +8 -0
- package/dist/dev-server/gateway-script.d.ts.map +1 -0
- package/dist/dev-server/runtime-stdio.d.ts.map +1 -1
- package/dist/dev-server/server.d.ts.map +1 -1
- package/dist/dev-server/vite-process.d.ts +14 -0
- package/dist/dev-server/vite-process.d.ts.map +1 -0
- package/dist/dev-server/vite-utils.d.ts +1 -1
- package/dist/dev-server/vite-utils.d.ts.map +1 -1
- package/dist/dev-server/worker-source-watcher.d.ts +11 -0
- package/dist/dev-server/worker-source-watcher.d.ts.map +1 -0
- package/dist/dev-server/worker-surface-paths.d.ts +6 -0
- package/dist/dev-server/worker-surface-paths.d.ts.map +1 -0
- package/dist/{doctor-xv4gm1h4.js → doctor-04ammrrh.js} +67 -32
- package/dist/doctor-fmjj65mc.js +245 -0
- package/dist/doctor-fzkznce1.js +245 -0
- package/dist/doctor-sa5xv1bz.js +245 -0
- package/dist/index-091sh1ma.js +1229 -0
- package/dist/index-0apbm26n.js +788 -0
- package/dist/index-0eqksag4.js +418 -0
- package/dist/{index-k8vh558d.js → index-0kfzdywd.js} +15 -2
- package/dist/index-0w826dsr.js +379 -0
- package/dist/{index-5s1bz1e0.js → index-11m5a8wd.js} +100 -22
- package/dist/{index-0rsa2c1t.js → index-1sp39f2f.js} +110 -57
- package/dist/index-2jnrqbny.js +1301 -0
- package/dist/index-2pb7b9mw.js +378 -0
- package/dist/{index-3a4mmn57.js → index-2x53aqjm.js} +1065 -890
- package/dist/index-3ke5d2vn.js +1229 -0
- package/dist/index-43dq8yx8.js +788 -0
- package/dist/index-4rrttqj5.js +378 -0
- package/dist/index-4v9bc2pc.js +1367 -0
- package/dist/index-61jsjnsv.js +280 -0
- package/dist/index-6jef5emv.js +176 -0
- package/dist/index-6psz1h4c.js +788 -0
- package/dist/index-72mve6vh.js +168 -0
- package/dist/{index-zvgc3e0c.js → index-74198nxd.js} +159 -63
- package/dist/{index-7bq4xq84.js → index-7g8zyws4.js} +7 -12
- package/dist/index-7kcxjhta.js +456 -0
- package/dist/index-7v583xan.js +418 -0
- package/dist/index-7x0ybbtx.js +133 -0
- package/dist/index-816krz9p.js +52 -0
- package/dist/index-82f1z98k.js +41 -0
- package/dist/index-8t5nb4qx.js +133 -0
- package/dist/index-9az6s7ad.js +52 -0
- package/dist/{index-59df49vn.js → index-9ba1etyz.js} +29 -51
- package/dist/{index-001mw014.js → index-9fbtk7gv.js} +134 -248
- package/dist/index-9n6djthj.js +490 -0
- package/dist/index-aabgympv.js +39 -0
- package/dist/index-b8m6883k.js +74 -0
- package/dist/{index-5yxg30va.js → index-cgbvmse6.js} +15 -6
- package/dist/index-d8etnfef.js +1229 -0
- package/dist/index-e9yw4d6y.js +133 -0
- package/dist/index-epw1jxz5.js +1204 -0
- package/dist/index-f85s8gj3.js +2649 -0
- package/dist/index-fe2ngvh7.js +1229 -0
- package/dist/index-fvsadj32.js +192 -0
- package/dist/index-gs4y9gdf.js +456 -0
- package/dist/{index-fef08w43.js → index-h18pxvzs.js} +7 -6
- package/dist/index-hfj1a2c4.js +2649 -0
- package/dist/{index-8gtqgb3q.js → index-hjy8ctpc.js} +14 -92
- package/dist/index-htzf0py1.js +1204 -0
- package/dist/index-j185x270.js +897 -0
- package/dist/index-jb75kwa4.js +519 -0
- package/dist/index-jwd8pcb2.js +897 -0
- package/dist/index-k29yjhv0.js +52 -0
- package/dist/index-k6vq6kkt.js +456 -0
- package/dist/{index-vky23txa.js → index-m3fmw6mx.js} +2 -2
- package/dist/index-maxpsfk8.js +402 -0
- package/dist/index-mbdmrner.js +402 -0
- package/dist/index-mea5bc45.js +418 -0
- package/dist/index-mqekt778.js +185 -0
- package/dist/index-na3mnm1k.js +74 -0
- package/dist/index-p03n4qet.js +1367 -0
- package/dist/index-p296ban8.js +191 -0
- package/dist/index-pnbs1b8k.js +280 -0
- package/dist/index-q4kaz181.js +1207 -0
- package/dist/index-ry131z23.js +378 -0
- package/dist/index-sgb7c8nm.js +402 -0
- package/dist/index-sqrksgb2.js +133 -0
- package/dist/index-stgn34cr.js +148 -0
- package/dist/{index-v8vvsn9x.js → index-t08te69w.js} +1 -18
- package/dist/index-thna1tkd.js +280 -0
- package/dist/index-v5nmqthy.js +74 -0
- package/dist/{index-n932ytmq.js → index-vt4yxkmf.js} +2 -2
- package/dist/index-wyq6c6yj.js +402 -0
- package/dist/index-wztc9stx.js +418 -0
- package/dist/index-x9cwdxw5.js +456 -0
- package/dist/index-xk9djfjp.js +519 -0
- package/dist/index-yc0gcchc.js +418 -0
- package/dist/index-yqbxjysa.js +897 -0
- package/dist/index-yzddwp02.js +788 -0
- package/dist/index-zfhq6s96.js +74 -0
- package/dist/index-zt22fe2j.js +54 -0
- package/dist/index-zyt5byt6.js +2649 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/{init-na2atvz2.js → init-r4hnxan3.js} +24 -17
- package/dist/login-2hnz4m4n.js +77 -0
- package/dist/login-5bsxxpvc.js +77 -0
- package/dist/login-6tzvczw2.js +77 -0
- package/dist/login-bhaw72zc.js +77 -0
- package/dist/login-x8tgckqm.js +77 -0
- package/dist/previews-3rn8mz2c.js +1168 -0
- package/dist/previews-d487qde5.js +1200 -0
- package/dist/previews-gm3z0syj.js +1168 -0
- package/dist/previews-j9ymq4ys.js +1169 -0
- package/dist/previews-q031mx34.js +1168 -0
- package/dist/productions-120xg0aq.js +505 -0
- package/dist/productions-5ev5qweg.js +505 -0
- package/dist/productions-me3tdvr9.js +505 -0
- package/dist/productions-p5rbgp2f.js +505 -0
- package/dist/productions-x9p0pym1.js +505 -0
- package/dist/runtime/context-events.d.ts +13 -0
- package/dist/runtime/context-events.d.ts.map +1 -0
- package/dist/runtime/context-types.d.ts +82 -0
- package/dist/runtime/context-types.d.ts.map +1 -0
- package/dist/runtime/context.d.ts +6 -267
- package/dist/runtime/context.d.ts.map +1 -1
- package/dist/runtime/exports.d.ts +3 -3
- package/dist/runtime/index.d.ts +1 -1
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/middleware.d.ts +8 -38
- package/dist/runtime/middleware.d.ts.map +1 -1
- package/dist/src/browser.js +9 -17
- package/dist/src/cli/index.js +3 -1
- package/dist/src/cloudflare/index.js +49 -3
- package/dist/src/config-entry.js +14 -0
- package/dist/src/index.js +24 -20
- package/dist/src/runtime/index.js +3 -9
- package/dist/src/sveltekit/index.js +10 -8
- package/dist/src/test/index.js +16 -19
- package/dist/src/vite/index.js +7 -5
- package/dist/sveltekit/platform.d.ts +1 -1
- package/dist/sveltekit/platform.d.ts.map +1 -1
- package/dist/test/cf.d.ts +10 -10
- package/dist/test/email.d.ts.map +1 -1
- package/dist/test/index.d.ts +1 -6
- package/dist/test/index.d.ts.map +1 -1
- package/dist/test/queue.d.ts.map +1 -1
- package/dist/test/remote-ai.d.ts.map +1 -1
- package/dist/test/remote-cloudflare.d.ts +13 -0
- package/dist/test/remote-cloudflare.d.ts.map +1 -0
- package/dist/test/remote-vectorize.d.ts.map +1 -1
- package/dist/test/resolve-service-bindings.d.ts.map +1 -1
- package/dist/test/scheduled.d.ts.map +1 -1
- package/dist/test/should-skip.d.ts +0 -18
- package/dist/test/should-skip.d.ts.map +1 -1
- package/dist/test/simple-context-durable-objects.d.ts +6 -0
- package/dist/test/simple-context-durable-objects.d.ts.map +1 -0
- package/dist/test/simple-context-gateway-script.d.ts +2 -0
- package/dist/test/simple-context-gateway-script.d.ts.map +1 -0
- package/dist/test/simple-context-paths.d.ts +40 -0
- package/dist/test/simple-context-paths.d.ts.map +1 -0
- package/dist/test/simple-context.d.ts +1 -23
- package/dist/test/simple-context.d.ts.map +1 -1
- package/dist/test/tail.d.ts.map +1 -1
- package/dist/test/worker.d.ts.map +1 -1
- package/dist/token-kedhcret.js +419 -0
- package/dist/token-m8jmnjwk.js +419 -0
- package/dist/{types-158m16vd.js → types-0sqwkp7x.js} +244 -140
- package/dist/types-1gwr2ex6.js +572 -0
- package/dist/types-6e5yx6km.js +572 -0
- package/dist/types-p0gckpn6.js +572 -0
- package/dist/utils/send-email.d.ts.map +1 -1
- package/dist/vite/config-file.d.ts.map +1 -1
- package/dist/vite/plugin.d.ts.map +1 -1
- package/dist/worker-0srh2jfr.js +513 -0
- package/dist/worker-4xrfd10a.js +513 -0
- package/dist/worker-entry/composed-worker.d.ts +0 -7
- package/dist/worker-entry/composed-worker.d.ts.map +1 -1
- package/dist/worker-entry/surface-paths.d.ts +15 -0
- package/dist/worker-entry/surface-paths.d.ts.map +1 -0
- package/dist/worker-qtam8grz.js +513 -0
- package/dist/worker-qzm0b7br.js +513 -0
- package/dist/worker-y9ha6g44.js +513 -0
- package/package.json +17 -10
- package/R2.md +0 -200
- package/dist/account-spa7gzsn.js +0 -421
- package/dist/build-zv25ke4s.js +0 -102
- package/dist/deploy-6xmqvv06.js +0 -118
- package/dist/index-2q3pmzrx.js +0 -90
- package/dist/index-6nb7w45m.js +0 -79
- package/dist/index-tksw7gpy.js +0 -503
- package/dist/index-v43z02tr.js +0 -205
- package/dist/index-xdq9ery1.js +0 -664
- package/dist/test/multi-worker-context.d.ts +0 -114
- package/dist/test/multi-worker-context.d.ts.map +0 -1
package/dist/config/schema.d.ts
CHANGED
|
@@ -1,564 +1,44 @@
|
|
|
1
|
-
import type { OutputOptions, RolldownOptions } from 'rolldown';
|
|
2
1
|
import { z } from 'zod';
|
|
3
|
-
|
|
4
|
-
* Durable Object binding input type.
|
|
5
|
-
* Accepts both string shorthand and object form (including DOBindingRef from ref()).
|
|
6
|
-
*/
|
|
7
|
-
type DurableObjectBindingInput = string | {
|
|
8
|
-
/** The Durable Object class name */
|
|
9
|
-
readonly className: string;
|
|
2
|
+
export declare const configSchema: z.ZodObject<{
|
|
10
3
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* For cross-worker DOs: worker name (e.g., 'do-service')
|
|
14
|
-
*/
|
|
15
|
-
readonly scriptName?: string;
|
|
16
|
-
/** @internal Reference marker for cross-worker DO bindings */
|
|
17
|
-
readonly __ref?: unknown;
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* Durable Object binding schema.
|
|
21
|
-
* Validates DO binding configuration in either string or object form.
|
|
22
|
-
*
|
|
23
|
-
* @example String form (local DO)
|
|
24
|
-
* ```ts
|
|
25
|
-
* durableObjects: { COUNTER: 'Counter' }
|
|
26
|
-
* ```
|
|
27
|
-
*
|
|
28
|
-
* @example Object form (cross-worker DO)
|
|
29
|
-
* ```ts
|
|
30
|
-
* durableObjects: { COUNTER: doService.COUNTER }
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
declare const durableObjectBindingSchema: z.ZodType<DurableObjectBindingInput, z.ZodTypeDef, DurableObjectBindingInput>;
|
|
34
|
-
/**
|
|
35
|
-
* Queue consumer configuration.
|
|
36
|
-
* Defines how messages are consumed from a Cloudflare Queue.
|
|
37
|
-
*/
|
|
38
|
-
declare const queueConsumerSchema: z.ZodObject<{
|
|
39
|
-
/** Queue name to consume from */
|
|
40
|
-
queue: z.ZodString;
|
|
41
|
-
/**
|
|
42
|
-
* Maximum messages per batch (1-100).
|
|
43
|
-
* @default 10
|
|
44
|
-
*/
|
|
45
|
-
maxBatchSize: z.ZodOptional<z.ZodNumber>;
|
|
46
|
-
/**
|
|
47
|
-
* Maximum seconds to wait for a full batch.
|
|
48
|
-
* @default 5
|
|
49
|
-
*/
|
|
50
|
-
maxBatchTimeout: z.ZodOptional<z.ZodNumber>;
|
|
51
|
-
/**
|
|
52
|
-
* Maximum retry attempts for failed messages.
|
|
53
|
-
* @default 3
|
|
54
|
-
*/
|
|
55
|
-
maxRetries: z.ZodOptional<z.ZodNumber>;
|
|
56
|
-
/** Queue name to send failed messages after max retries */
|
|
57
|
-
deadLetterQueue: z.ZodOptional<z.ZodString>;
|
|
58
|
-
/** Maximum concurrent batch invocations */
|
|
59
|
-
maxConcurrency: z.ZodOptional<z.ZodNumber>;
|
|
60
|
-
/** Delay in seconds between retries */
|
|
61
|
-
retryDelay: z.ZodOptional<z.ZodNumber>;
|
|
62
|
-
}, "strip", z.ZodTypeAny, {
|
|
63
|
-
queue: string;
|
|
64
|
-
maxBatchSize?: number | undefined;
|
|
65
|
-
maxBatchTimeout?: number | undefined;
|
|
66
|
-
maxRetries?: number | undefined;
|
|
67
|
-
deadLetterQueue?: string | undefined;
|
|
68
|
-
maxConcurrency?: number | undefined;
|
|
69
|
-
retryDelay?: number | undefined;
|
|
70
|
-
}, {
|
|
71
|
-
queue: string;
|
|
72
|
-
maxBatchSize?: number | undefined;
|
|
73
|
-
maxBatchTimeout?: number | undefined;
|
|
74
|
-
maxRetries?: number | undefined;
|
|
75
|
-
deadLetterQueue?: string | undefined;
|
|
76
|
-
maxConcurrency?: number | undefined;
|
|
77
|
-
retryDelay?: number | undefined;
|
|
78
|
-
}>;
|
|
79
|
-
/**
|
|
80
|
-
* Queues configuration for producers and consumers.
|
|
81
|
-
*/
|
|
82
|
-
declare const queuesConfigSchema: z.ZodObject<{
|
|
83
|
-
/**
|
|
84
|
-
* Queue producer bindings.
|
|
85
|
-
* Maps binding name to queue name.
|
|
86
|
-
* @example { TASK_QUEUE: 'task-queue' }
|
|
87
|
-
*/
|
|
88
|
-
producers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
89
|
-
/**
|
|
90
|
-
* Queue consumer configurations.
|
|
91
|
-
* Array of consumer configs for processing queue messages.
|
|
4
|
+
* Worker name (required).
|
|
5
|
+
* Used as the deployment target and in URLs.
|
|
92
6
|
*/
|
|
93
|
-
consumers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
94
|
-
/** Queue name to consume from */
|
|
95
|
-
queue: z.ZodString;
|
|
96
|
-
/**
|
|
97
|
-
* Maximum messages per batch (1-100).
|
|
98
|
-
* @default 10
|
|
99
|
-
*/
|
|
100
|
-
maxBatchSize: z.ZodOptional<z.ZodNumber>;
|
|
101
|
-
/**
|
|
102
|
-
* Maximum seconds to wait for a full batch.
|
|
103
|
-
* @default 5
|
|
104
|
-
*/
|
|
105
|
-
maxBatchTimeout: z.ZodOptional<z.ZodNumber>;
|
|
106
|
-
/**
|
|
107
|
-
* Maximum retry attempts for failed messages.
|
|
108
|
-
* @default 3
|
|
109
|
-
*/
|
|
110
|
-
maxRetries: z.ZodOptional<z.ZodNumber>;
|
|
111
|
-
/** Queue name to send failed messages after max retries */
|
|
112
|
-
deadLetterQueue: z.ZodOptional<z.ZodString>;
|
|
113
|
-
/** Maximum concurrent batch invocations */
|
|
114
|
-
maxConcurrency: z.ZodOptional<z.ZodNumber>;
|
|
115
|
-
/** Delay in seconds between retries */
|
|
116
|
-
retryDelay: z.ZodOptional<z.ZodNumber>;
|
|
117
|
-
}, "strip", z.ZodTypeAny, {
|
|
118
|
-
queue: string;
|
|
119
|
-
maxBatchSize?: number | undefined;
|
|
120
|
-
maxBatchTimeout?: number | undefined;
|
|
121
|
-
maxRetries?: number | undefined;
|
|
122
|
-
deadLetterQueue?: string | undefined;
|
|
123
|
-
maxConcurrency?: number | undefined;
|
|
124
|
-
retryDelay?: number | undefined;
|
|
125
|
-
}, {
|
|
126
|
-
queue: string;
|
|
127
|
-
maxBatchSize?: number | undefined;
|
|
128
|
-
maxBatchTimeout?: number | undefined;
|
|
129
|
-
maxRetries?: number | undefined;
|
|
130
|
-
deadLetterQueue?: string | undefined;
|
|
131
|
-
maxConcurrency?: number | undefined;
|
|
132
|
-
retryDelay?: number | undefined;
|
|
133
|
-
}>, "many">>;
|
|
134
|
-
}, "strip", z.ZodTypeAny, {
|
|
135
|
-
producers?: Record<string, string> | undefined;
|
|
136
|
-
consumers?: {
|
|
137
|
-
queue: string;
|
|
138
|
-
maxBatchSize?: number | undefined;
|
|
139
|
-
maxBatchTimeout?: number | undefined;
|
|
140
|
-
maxRetries?: number | undefined;
|
|
141
|
-
deadLetterQueue?: string | undefined;
|
|
142
|
-
maxConcurrency?: number | undefined;
|
|
143
|
-
retryDelay?: number | undefined;
|
|
144
|
-
}[] | undefined;
|
|
145
|
-
}, {
|
|
146
|
-
producers?: Record<string, string> | undefined;
|
|
147
|
-
consumers?: {
|
|
148
|
-
queue: string;
|
|
149
|
-
maxBatchSize?: number | undefined;
|
|
150
|
-
maxBatchTimeout?: number | undefined;
|
|
151
|
-
maxRetries?: number | undefined;
|
|
152
|
-
deadLetterQueue?: string | undefined;
|
|
153
|
-
maxConcurrency?: number | undefined;
|
|
154
|
-
retryDelay?: number | undefined;
|
|
155
|
-
}[] | undefined;
|
|
156
|
-
}>;
|
|
157
|
-
/**
|
|
158
|
-
* Service binding schema.
|
|
159
|
-
* Binds to another Worker for RPC-style communication.
|
|
160
|
-
* Accepts plain objects or WorkerBinding from ref().worker.
|
|
161
|
-
*/
|
|
162
|
-
declare const serviceBindingSchema: z.ZodType<{
|
|
163
|
-
/** Target worker/service name */
|
|
164
|
-
service: string;
|
|
165
|
-
/** Optional environment (staging, production, etc.) */
|
|
166
|
-
environment?: string | undefined;
|
|
167
|
-
/** Optional entrypoint class name for named exports */
|
|
168
|
-
entrypoint?: string | undefined;
|
|
169
|
-
/** @internal Reference marker for ref() bindings */
|
|
170
|
-
__ref?: unknown;
|
|
171
|
-
}, z.ZodTypeDef, {
|
|
172
|
-
/** Target worker/service name */
|
|
173
|
-
service: string;
|
|
174
|
-
/** Optional environment (staging, production, etc.) */
|
|
175
|
-
environment?: string | undefined;
|
|
176
|
-
/** Optional entrypoint class name for named exports */
|
|
177
|
-
entrypoint?: string | undefined;
|
|
178
|
-
/** @internal Reference marker for ref() bindings */
|
|
179
|
-
__ref?: unknown;
|
|
180
|
-
}>;
|
|
181
|
-
declare const d1BindingSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
182
|
-
/** Explicit D1 database ID */
|
|
183
|
-
id: z.ZodString;
|
|
184
|
-
}, "strict", z.ZodTypeAny, {
|
|
185
|
-
id: string;
|
|
186
|
-
}, {
|
|
187
|
-
id: string;
|
|
188
|
-
}>, z.ZodObject<{
|
|
189
|
-
/** Stable D1 database name to resolve to an ID at config/build/deploy time */
|
|
190
7
|
name: z.ZodString;
|
|
191
|
-
}, "strict", z.ZodTypeAny, {
|
|
192
|
-
name: string;
|
|
193
|
-
}, {
|
|
194
|
-
name: string;
|
|
195
|
-
}>]>;
|
|
196
|
-
/**
|
|
197
|
-
* Route configuration for worker deployment.
|
|
198
|
-
* Defines URL patterns that trigger the worker.
|
|
199
|
-
* @see https://developers.cloudflare.com/workers/configuration/routing/routes/
|
|
200
|
-
*/
|
|
201
|
-
declare const routeConfigSchema: z.ZodObject<{
|
|
202
|
-
/**
|
|
203
|
-
* URL pattern to match (e.g., 'example.com/*').
|
|
204
|
-
* Supports wildcards (*) for path matching.
|
|
205
|
-
*/
|
|
206
|
-
pattern: z.ZodString;
|
|
207
|
-
/** Zone name to associate the route with */
|
|
208
|
-
zone_name: z.ZodOptional<z.ZodString>;
|
|
209
|
-
/** Zone ID to associate the route with (alternative to zone_name) */
|
|
210
|
-
zone_id: z.ZodOptional<z.ZodString>;
|
|
211
|
-
/** Whether this is a custom domain route */
|
|
212
|
-
custom_domain: z.ZodOptional<z.ZodBoolean>;
|
|
213
|
-
}, "strip", z.ZodTypeAny, {
|
|
214
|
-
pattern: string;
|
|
215
|
-
zone_name?: string | undefined;
|
|
216
|
-
zone_id?: string | undefined;
|
|
217
|
-
custom_domain?: boolean | undefined;
|
|
218
|
-
}, {
|
|
219
|
-
pattern: string;
|
|
220
|
-
zone_name?: string | undefined;
|
|
221
|
-
zone_id?: string | undefined;
|
|
222
|
-
custom_domain?: boolean | undefined;
|
|
223
|
-
}>;
|
|
224
|
-
/**
|
|
225
|
-
* WebSocket route configuration for dev mode Durable Object proxying.
|
|
226
|
-
* Enables WebSocket connections to DOs in local development.
|
|
227
|
-
*
|
|
228
|
-
* @example
|
|
229
|
-
* ```ts
|
|
230
|
-
* wsRoutes: [{
|
|
231
|
-
* pattern: '/chat/api',
|
|
232
|
-
* doNamespace: 'CHAT_ROOM',
|
|
233
|
-
* idParam: 'roomId',
|
|
234
|
-
* forwardPath: '/websocket'
|
|
235
|
-
* }]
|
|
236
|
-
* ```
|
|
237
|
-
*/
|
|
238
|
-
declare const wsRouteConfigSchema: z.ZodObject<{
|
|
239
8
|
/**
|
|
240
|
-
*
|
|
241
|
-
*
|
|
242
|
-
*/
|
|
243
|
-
pattern: z.ZodString;
|
|
244
|
-
/**
|
|
245
|
-
* Durable Object namespace binding name to route to.
|
|
246
|
-
* Must match a binding name in bindings.durableObjects.
|
|
247
|
-
*/
|
|
248
|
-
doNamespace: z.ZodString;
|
|
249
|
-
/**
|
|
250
|
-
* Query parameter name used to identify DO instances.
|
|
251
|
-
* @default 'id'
|
|
252
|
-
* @example `/chat/api?roomId=room123`
|
|
253
|
-
*/
|
|
254
|
-
idParam: z.ZodDefault<z.ZodString>;
|
|
255
|
-
/**
|
|
256
|
-
* Path to forward within the Durable Object.
|
|
257
|
-
* @default '/websocket'
|
|
258
|
-
*/
|
|
259
|
-
forwardPath: z.ZodDefault<z.ZodString>;
|
|
260
|
-
}, "strip", z.ZodTypeAny, {
|
|
261
|
-
pattern: string;
|
|
262
|
-
doNamespace: string;
|
|
263
|
-
idParam: string;
|
|
264
|
-
forwardPath: string;
|
|
265
|
-
}, {
|
|
266
|
-
pattern: string;
|
|
267
|
-
doNamespace: string;
|
|
268
|
-
idParam?: string | undefined;
|
|
269
|
-
forwardPath?: string | undefined;
|
|
270
|
-
}>;
|
|
271
|
-
/**
|
|
272
|
-
* Static assets configuration.
|
|
273
|
-
* Serves static files from a directory alongside your worker.
|
|
274
|
-
* @see https://developers.cloudflare.com/workers/static-assets/
|
|
275
|
-
*/
|
|
276
|
-
declare const assetsConfigSchema: z.ZodOptional<z.ZodObject<{
|
|
277
|
-
/** Directory containing static assets (relative to config file) */
|
|
278
|
-
directory: z.ZodString;
|
|
279
|
-
/**
|
|
280
|
-
* Optional binding name to access assets programmatically.
|
|
281
|
-
* If provided, assets can be fetched via env[binding].fetch()
|
|
282
|
-
*/
|
|
283
|
-
binding: z.ZodOptional<z.ZodString>;
|
|
284
|
-
}, "strip", z.ZodTypeAny, {
|
|
285
|
-
directory: string;
|
|
286
|
-
binding?: string | undefined;
|
|
287
|
-
}, {
|
|
288
|
-
directory: string;
|
|
289
|
-
binding?: string | undefined;
|
|
290
|
-
}>>;
|
|
291
|
-
export type DevflareRolldownOutputOptions = Omit<OutputOptions, 'codeSplitting' | 'dir' | 'file' | 'format' | 'inlineDynamicImports'>;
|
|
292
|
-
export interface DevflareRolldownOptions extends Omit<RolldownOptions, 'cwd' | 'input' | 'output' | 'platform' | 'watch'> {
|
|
293
|
-
output?: DevflareRolldownOutputOptions;
|
|
294
|
-
}
|
|
295
|
-
/**
|
|
296
|
-
* Rolldown configuration for Durable Object bundling.
|
|
297
|
-
* Controls Devflare's Rolldown-based DO bundler in local development.
|
|
298
|
-
*/
|
|
299
|
-
declare const rolldownConfigSchema: z.ZodOptional<z.ZodObject<{
|
|
300
|
-
/**
|
|
301
|
-
* Bundle target environment.
|
|
302
|
-
* @example 'es2022'
|
|
303
|
-
*/
|
|
304
|
-
target: z.ZodOptional<z.ZodString>;
|
|
305
|
-
/** Enable minification for emitted DO bundles */
|
|
306
|
-
minify: z.ZodOptional<z.ZodBoolean>;
|
|
307
|
-
/** Generate source maps for emitted DO bundles */
|
|
308
|
-
sourcemap: z.ZodOptional<z.ZodBoolean>;
|
|
309
|
-
/**
|
|
310
|
-
* Additional raw Rolldown options.
|
|
311
|
-
* @see https://rolldown.rs/
|
|
312
|
-
*/
|
|
313
|
-
options: z.ZodOptional<z.ZodType<DevflareRolldownOptions, z.ZodTypeDef, DevflareRolldownOptions>>;
|
|
314
|
-
}, "strip", z.ZodTypeAny, {
|
|
315
|
-
target?: string | undefined;
|
|
316
|
-
minify?: boolean | undefined;
|
|
317
|
-
sourcemap?: boolean | undefined;
|
|
318
|
-
options?: DevflareRolldownOptions | undefined;
|
|
319
|
-
}, {
|
|
320
|
-
target?: string | undefined;
|
|
321
|
-
minify?: boolean | undefined;
|
|
322
|
-
sourcemap?: boolean | undefined;
|
|
323
|
-
options?: DevflareRolldownOptions | undefined;
|
|
324
|
-
}>>;
|
|
325
|
-
/**
|
|
326
|
-
* Vite-related configuration namespace.
|
|
327
|
-
* This keeps Vite-specific configuration distinct from Rolldown/DO bundling.
|
|
328
|
-
*
|
|
329
|
-
* Note: raw Vite build/server configuration still belongs in `vite.config.*`.
|
|
330
|
-
* Devflare currently models `plugins` here and leaves room for future Vite-side
|
|
331
|
-
* config without overloading the root config shape.
|
|
332
|
-
*/
|
|
333
|
-
declare const viteConfigSchema: z.ZodOptional<z.ZodObject<{
|
|
334
|
-
/**
|
|
335
|
-
* Devflare-level Vite plugin metadata sourced from devflare.config.ts.
|
|
336
|
-
* Raw Vite plugin wiring still belongs in `vite.config.*`.
|
|
337
|
-
*/
|
|
338
|
-
plugins: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
339
|
-
}, "strip", z.ZodUnknown, z.objectOutputType<{
|
|
340
|
-
/**
|
|
341
|
-
* Devflare-level Vite plugin metadata sourced from devflare.config.ts.
|
|
342
|
-
* Raw Vite plugin wiring still belongs in `vite.config.*`.
|
|
343
|
-
*/
|
|
344
|
-
plugins: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
345
|
-
}, z.ZodUnknown, "strip">, z.objectInputType<{
|
|
346
|
-
/**
|
|
347
|
-
* Devflare-level Vite plugin metadata sourced from devflare.config.ts.
|
|
348
|
-
* Raw Vite plugin wiring still belongs in `vite.config.*`.
|
|
349
|
-
*/
|
|
350
|
-
plugins: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
351
|
-
}, z.ZodUnknown, "strip">>>;
|
|
352
|
-
/**
|
|
353
|
-
* Legacy build alias for backward compatibility.
|
|
354
|
-
* Prefer top-level `rolldown` in new configs.
|
|
355
|
-
*/
|
|
356
|
-
declare const buildConfigSchema: z.ZodOptional<z.ZodObject<{
|
|
357
|
-
/**
|
|
358
|
-
* Legacy alias for `rolldown.target`.
|
|
359
|
-
* @example 'es2022'
|
|
360
|
-
*/
|
|
361
|
-
target: z.ZodOptional<z.ZodString>;
|
|
362
|
-
/** Legacy alias for `rolldown.minify`. */
|
|
363
|
-
minify: z.ZodOptional<z.ZodBoolean>;
|
|
364
|
-
/** Legacy alias for `rolldown.sourcemap`. */
|
|
365
|
-
sourcemap: z.ZodOptional<z.ZodBoolean>;
|
|
366
|
-
/** Legacy alias for `rolldown.options`. */
|
|
367
|
-
rolldownOptions: z.ZodOptional<z.ZodType<DevflareRolldownOptions, z.ZodTypeDef, DevflareRolldownOptions>>;
|
|
368
|
-
}, "strip", z.ZodTypeAny, {
|
|
369
|
-
target?: string | undefined;
|
|
370
|
-
minify?: boolean | undefined;
|
|
371
|
-
sourcemap?: boolean | undefined;
|
|
372
|
-
rolldownOptions?: DevflareRolldownOptions | undefined;
|
|
373
|
-
}, {
|
|
374
|
-
target?: string | undefined;
|
|
375
|
-
minify?: boolean | undefined;
|
|
376
|
-
sourcemap?: boolean | undefined;
|
|
377
|
-
rolldownOptions?: DevflareRolldownOptions | undefined;
|
|
378
|
-
}>>;
|
|
379
|
-
type LegacyBuildConfig = z.infer<typeof buildConfigSchema>;
|
|
380
|
-
/**
|
|
381
|
-
* Durable Object migration configuration.
|
|
382
|
-
* Required when changing DO class names or storage backends.
|
|
383
|
-
* @see https://developers.cloudflare.com/durable-objects/reference/durable-objects-migrations/
|
|
384
|
-
*/
|
|
385
|
-
declare const migrationSchema: z.ZodObject<{
|
|
386
|
-
/**
|
|
387
|
-
* Migration tag (version identifier).
|
|
388
|
-
* Must be unique and in chronological order.
|
|
389
|
-
* @example 'v1', 'v2'
|
|
9
|
+
* Cloudflare account ID.
|
|
10
|
+
* Required for remote bindings (AI, Vectorize, etc.).
|
|
390
11
|
*/
|
|
391
|
-
|
|
12
|
+
accountId: z.ZodOptional<z.ZodString>;
|
|
392
13
|
/**
|
|
393
|
-
*
|
|
394
|
-
*
|
|
14
|
+
* Cloudflare Workers compatibility date.
|
|
15
|
+
* @default Current date (YYYY-MM-DD)
|
|
395
16
|
*/
|
|
396
|
-
|
|
17
|
+
compatibilityDate: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
397
18
|
/**
|
|
398
|
-
*
|
|
399
|
-
*
|
|
19
|
+
* Compatibility flags to enable additional features.
|
|
20
|
+
* @default ['nodejs_compat', 'nodejs_als'] (always included)
|
|
400
21
|
*/
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
22
|
+
compatibilityFlags: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodString, "many">>, string[], string[] | undefined>;
|
|
23
|
+
/** Preview-specific Devflare behavior. */
|
|
24
|
+
previews: z.ZodOptional<z.ZodObject<{
|
|
25
|
+
includeCrons: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
404
26
|
}, "strip", z.ZodTypeAny, {
|
|
405
|
-
|
|
406
|
-
to: string;
|
|
27
|
+
includeCrons: boolean;
|
|
407
28
|
}, {
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
* Classes being deleted.
|
|
413
|
-
* ⚠️ All state in these classes will be lost!
|
|
414
|
-
*/
|
|
415
|
-
deleted_classes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
416
|
-
/**
|
|
417
|
-
* Classes migrating to SQLite storage backend.
|
|
418
|
-
* Enables SQL API for these DO classes.
|
|
419
|
-
*/
|
|
420
|
-
new_sqlite_classes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
421
|
-
}, "strip", z.ZodTypeAny, {
|
|
422
|
-
tag: string;
|
|
423
|
-
new_classes?: string[] | undefined;
|
|
424
|
-
renamed_classes?: {
|
|
425
|
-
from: string;
|
|
426
|
-
to: string;
|
|
427
|
-
}[] | undefined;
|
|
428
|
-
deleted_classes?: string[] | undefined;
|
|
429
|
-
new_sqlite_classes?: string[] | undefined;
|
|
430
|
-
}, {
|
|
431
|
-
tag: string;
|
|
432
|
-
new_classes?: string[] | undefined;
|
|
433
|
-
renamed_classes?: {
|
|
434
|
-
from: string;
|
|
435
|
-
to: string;
|
|
436
|
-
}[] | undefined;
|
|
437
|
-
deleted_classes?: string[] | undefined;
|
|
438
|
-
new_sqlite_classes?: string[] | undefined;
|
|
439
|
-
}>;
|
|
440
|
-
declare const envConfigSchemaInner: z.ZodEffects<z.ZodObject<{
|
|
441
|
-
name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
442
|
-
compatibilityDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
443
|
-
compatibilityFlags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
444
|
-
files: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
445
|
-
/**
|
|
446
|
-
* Main fetch handler file path.
|
|
447
|
-
* This handles HTTP requests to your worker.
|
|
448
|
-
* @default 'src/fetch.{ts,js}'
|
|
449
|
-
* @example 'src/fetch.ts'
|
|
450
|
-
*/
|
|
29
|
+
includeCrons?: boolean | undefined;
|
|
30
|
+
}>>;
|
|
31
|
+
/** File handlers configuration. */
|
|
32
|
+
files: z.ZodOptional<z.ZodObject<{
|
|
451
33
|
fetch: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>>;
|
|
452
|
-
/**
|
|
453
|
-
* Queue consumer handler file path.
|
|
454
|
-
* Handles messages from Cloudflare Queues.
|
|
455
|
-
* @default 'src/queue.ts'
|
|
456
|
-
* @example 'src/queue.ts'
|
|
457
|
-
*/
|
|
458
34
|
queue: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>>;
|
|
459
|
-
/**
|
|
460
|
-
* Scheduled (cron) handler file path.
|
|
461
|
-
* Handles cron trigger invocations.
|
|
462
|
-
* @default 'src/scheduled.ts'
|
|
463
|
-
* @example 'src/scheduled.ts'
|
|
464
|
-
*/
|
|
465
35
|
scheduled: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>>;
|
|
466
|
-
/**
|
|
467
|
-
* Email handler file path.
|
|
468
|
-
* Handles incoming emails via Email Routing.
|
|
469
|
-
* @default 'src/email.ts'
|
|
470
|
-
* @example 'src/email.ts'
|
|
471
|
-
*/
|
|
472
36
|
email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>>;
|
|
473
|
-
/**
|
|
474
|
-
* Durable Object class discovery glob pattern.
|
|
475
|
-
* Files matching this pattern are scanned for DO classes.
|
|
476
|
-
* Respects `.gitignore` automatically.
|
|
477
|
-
*
|
|
478
|
-
* @default `**/do.*.{ts,js}` (recursive)
|
|
479
|
-
* @example `**/do.*.{ts,js}` — Matches src/do.counter.ts, lib/do.chat.ts
|
|
480
|
-
* @example `src/do.*.ts` — Legacy single-directory pattern
|
|
481
|
-
*/
|
|
482
37
|
durableObjects: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>>;
|
|
483
|
-
/**
|
|
484
|
-
* WorkerEntrypoint class discovery glob pattern.
|
|
485
|
-
* Files matching this pattern are scanned for named entrypoint classes.
|
|
486
|
-
* Respects `.gitignore` automatically.
|
|
487
|
-
*
|
|
488
|
-
* Entrypoints enable typed cross-worker RPC via service bindings:
|
|
489
|
-
* ```ts
|
|
490
|
-
* // ep.admin.ts
|
|
491
|
-
* export class AdminEntrypoint extends WorkerEntrypoint {
|
|
492
|
-
* async getStats() { return { users: 100 } }
|
|
493
|
-
* }
|
|
494
|
-
*
|
|
495
|
-
* // Consumer worker
|
|
496
|
-
* const stats = await env.ADMIN_SERVICE.getStats()
|
|
497
|
-
* ```
|
|
498
|
-
*
|
|
499
|
-
* @default `**/ep.*.{ts,js}` (recursive)
|
|
500
|
-
* @example `**/ep.*.{ts,js}` — Matches src/ep.admin.ts, lib/ep.auth.ts
|
|
501
|
-
* @example `src/ep.*.ts` — Legacy single-directory pattern
|
|
502
|
-
*/
|
|
503
38
|
entrypoints: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>>;
|
|
504
|
-
/**
|
|
505
|
-
* Workflow class discovery glob pattern.
|
|
506
|
-
* Files matching this pattern are scanned for Workflow classes.
|
|
507
|
-
* Respects `.gitignore` automatically.
|
|
508
|
-
*
|
|
509
|
-
* Workflows enable durable multi-step execution with automatic retries:
|
|
510
|
-
* ```ts
|
|
511
|
-
* // wf.order-processor.ts
|
|
512
|
-
* export class OrderProcessingWorkflow extends Workflow {
|
|
513
|
-
* async run(event, step) {
|
|
514
|
-
* const validated = await step.do('validate', () => validate(event.payload))
|
|
515
|
-
* const charged = await step.do('charge', () => charge(validated))
|
|
516
|
-
* return { orderId: charged.id }
|
|
517
|
-
* }
|
|
518
|
-
* }
|
|
519
|
-
* ```
|
|
520
|
-
*
|
|
521
|
-
* @default `**/wf.*.{ts,js}` (recursive)
|
|
522
|
-
* @example `**/wf.*.{ts,js}` — Matches src/wf.order.ts, lib/wf.pipeline.ts
|
|
523
|
-
* @example `src/wf.*.ts` — Legacy single-directory pattern
|
|
524
|
-
*/
|
|
525
39
|
workflows: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>>;
|
|
526
|
-
/**
|
|
527
|
-
* Built-in file router configuration.
|
|
528
|
-
* Use this to customize or disable the route tree rooted at `src/routes/**`.
|
|
529
|
-
*
|
|
530
|
-
* When omitted, Devflare automatically discovers `src/routes` if that
|
|
531
|
-
* directory exists.
|
|
532
|
-
*
|
|
533
|
-
* When set:
|
|
534
|
-
* - `dir` changes the route root directory
|
|
535
|
-
* - `prefix` mounts the route tree under a fixed prefix such as `/api`
|
|
536
|
-
* - `false` disables route discovery entirely
|
|
537
|
-
*
|
|
538
|
-
* Route filename conventions:
|
|
539
|
-
* ```
|
|
540
|
-
* src/routes/
|
|
541
|
-
* ├── index.ts
|
|
542
|
-
* ├── users/
|
|
543
|
-
* │ ├── index.ts
|
|
544
|
-
* │ ├── [id].ts
|
|
545
|
-
* │ ├── [...slug].ts
|
|
546
|
-
* │ └── [id]/
|
|
547
|
-
* │ └── posts.ts
|
|
548
|
-
* └── api/
|
|
549
|
-
* └── health.ts
|
|
550
|
-
* ```
|
|
551
|
-
*
|
|
552
|
-
* Files or directories prefixed with `_` are ignored so route-local helpers
|
|
553
|
-
* can live beside handlers.
|
|
554
|
-
*/
|
|
555
40
|
routes: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
556
|
-
/** Directory containing route files (e.g., 'src/routes') */
|
|
557
41
|
dir: z.ZodString;
|
|
558
|
-
/**
|
|
559
|
-
* Optional route prefix (e.g., '/api').
|
|
560
|
-
* Devflare mounts the discovered route tree under this static pathname prefix.
|
|
561
|
-
*/
|
|
562
42
|
prefix: z.ZodOptional<z.ZodString>;
|
|
563
43
|
}, "strip", z.ZodTypeAny, {
|
|
564
44
|
dir: string;
|
|
@@ -567,18 +47,6 @@ declare const envConfigSchemaInner: z.ZodEffects<z.ZodObject<{
|
|
|
567
47
|
dir: string;
|
|
568
48
|
prefix?: string | undefined;
|
|
569
49
|
}>, z.ZodLiteral<false>]>>;
|
|
570
|
-
/**
|
|
571
|
-
* Transport file for custom RPC serialization.
|
|
572
|
-
* When omitted, Devflare auto-discovers `src/transport.{ts,js,mts,mjs}` if
|
|
573
|
-
* one of those files exists.
|
|
574
|
-
*
|
|
575
|
-
* Set this to `null` to disable transport autodiscovery explicitly.
|
|
576
|
-
*
|
|
577
|
-
* Today this is primarily used by the test/bridge serialization path.
|
|
578
|
-
*
|
|
579
|
-
* The file must export a named `transport` object.
|
|
580
|
-
* @example 'src/transport.ts'
|
|
581
|
-
*/
|
|
582
50
|
transport: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
583
51
|
}, "strip", z.ZodTypeAny, {
|
|
584
52
|
fetch?: string | false | undefined;
|
|
@@ -606,84 +74,46 @@ declare const envConfigSchemaInner: z.ZodEffects<z.ZodObject<{
|
|
|
606
74
|
prefix?: string | undefined;
|
|
607
75
|
} | undefined;
|
|
608
76
|
transport?: string | null | undefined;
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
77
|
+
}>>;
|
|
78
|
+
/** Bindings to Cloudflare services. */
|
|
79
|
+
bindings: z.ZodOptional<z.ZodObject<{
|
|
80
|
+
kv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
81
|
+
id: z.ZodString;
|
|
82
|
+
}, "strict", z.ZodTypeAny, {
|
|
83
|
+
id: string;
|
|
84
|
+
}, {
|
|
85
|
+
id: string;
|
|
86
|
+
}>, z.ZodObject<{
|
|
87
|
+
name: z.ZodString;
|
|
88
|
+
}, "strict", z.ZodTypeAny, {
|
|
89
|
+
name: string;
|
|
90
|
+
}, {
|
|
91
|
+
name: string;
|
|
92
|
+
}>]>>>;
|
|
623
93
|
d1: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
624
|
-
/** Explicit D1 database ID */
|
|
625
94
|
id: z.ZodString;
|
|
626
95
|
}, "strict", z.ZodTypeAny, {
|
|
627
96
|
id: string;
|
|
628
97
|
}, {
|
|
629
98
|
id: string;
|
|
630
99
|
}>, z.ZodObject<{
|
|
631
|
-
/** Stable D1 database name to resolve to an ID at config/build/deploy time */
|
|
632
100
|
name: z.ZodString;
|
|
633
101
|
}, "strict", z.ZodTypeAny, {
|
|
634
102
|
name: string;
|
|
635
103
|
}, {
|
|
636
104
|
name: string;
|
|
637
105
|
}>]>>>;
|
|
638
|
-
/**
|
|
639
|
-
* R2 Bucket bindings.
|
|
640
|
-
* Maps binding name to R2 bucket name.
|
|
641
|
-
* @example { IMAGES: 'images-bucket' }
|
|
642
|
-
*/
|
|
643
106
|
r2: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
644
|
-
|
|
645
|
-
* Durable Object bindings.
|
|
646
|
-
* Maps binding name to DO class configuration.
|
|
647
|
-
* @example { COUNTER: 'Counter' } or { COUNTER: { className: 'Counter' } }
|
|
648
|
-
*/
|
|
649
|
-
durableObjects: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<DurableObjectBindingInput, z.ZodTypeDef, DurableObjectBindingInput>>>;
|
|
650
|
-
/**
|
|
651
|
-
* Queue bindings for producers and consumers.
|
|
652
|
-
*/
|
|
107
|
+
durableObjects: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./schema-bindings").DurableObjectBindingInput, z.ZodTypeDef, import("./schema-bindings").DurableObjectBindingInput>>>;
|
|
653
108
|
queues: z.ZodOptional<z.ZodObject<{
|
|
654
|
-
/**
|
|
655
|
-
* Queue producer bindings.
|
|
656
|
-
* Maps binding name to queue name.
|
|
657
|
-
* @example { TASK_QUEUE: 'task-queue' }
|
|
658
|
-
*/
|
|
659
109
|
producers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
660
|
-
/**
|
|
661
|
-
* Queue consumer configurations.
|
|
662
|
-
* Array of consumer configs for processing queue messages.
|
|
663
|
-
*/
|
|
664
110
|
consumers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
665
|
-
/** Queue name to consume from */
|
|
666
111
|
queue: z.ZodString;
|
|
667
|
-
/**
|
|
668
|
-
* Maximum messages per batch (1-100).
|
|
669
|
-
* @default 10
|
|
670
|
-
*/
|
|
671
112
|
maxBatchSize: z.ZodOptional<z.ZodNumber>;
|
|
672
|
-
/**
|
|
673
|
-
* Maximum seconds to wait for a full batch.
|
|
674
|
-
* @default 5
|
|
675
|
-
*/
|
|
676
113
|
maxBatchTimeout: z.ZodOptional<z.ZodNumber>;
|
|
677
|
-
/**
|
|
678
|
-
* Maximum retry attempts for failed messages.
|
|
679
|
-
* @default 3
|
|
680
|
-
*/
|
|
681
114
|
maxRetries: z.ZodOptional<z.ZodNumber>;
|
|
682
|
-
/** Queue name to send failed messages after max retries */
|
|
683
115
|
deadLetterQueue: z.ZodOptional<z.ZodString>;
|
|
684
|
-
/** Maximum concurrent batch invocations */
|
|
685
116
|
maxConcurrency: z.ZodOptional<z.ZodNumber>;
|
|
686
|
-
/** Delay in seconds between retries */
|
|
687
117
|
retryDelay: z.ZodOptional<z.ZodNumber>;
|
|
688
118
|
}, "strip", z.ZodTypeAny, {
|
|
689
119
|
queue: string;
|
|
@@ -725,101 +155,55 @@ declare const envConfigSchemaInner: z.ZodEffects<z.ZodObject<{
|
|
|
725
155
|
retryDelay?: number | undefined;
|
|
726
156
|
}[] | undefined;
|
|
727
157
|
}>>;
|
|
728
|
-
/**
|
|
729
|
-
* Service bindings to other Workers.
|
|
730
|
-
* Enables RPC-style communication between workers.
|
|
731
|
-
* @example { MATH: mathWorker.worker }
|
|
732
|
-
*/
|
|
733
158
|
services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<{
|
|
734
|
-
/** Target worker/service name */
|
|
735
159
|
service: string;
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
/** Optional entrypoint class name for named exports */
|
|
739
|
-
entrypoint?: string | undefined;
|
|
740
|
-
/** @internal Reference marker for ref() bindings */
|
|
160
|
+
environment?: string;
|
|
161
|
+
entrypoint?: string;
|
|
741
162
|
__ref?: unknown;
|
|
742
163
|
}, z.ZodTypeDef, {
|
|
743
|
-
/** Target worker/service name */
|
|
744
164
|
service: string;
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
/** Optional entrypoint class name for named exports */
|
|
748
|
-
entrypoint?: string | undefined;
|
|
749
|
-
/** @internal Reference marker for ref() bindings */
|
|
165
|
+
environment?: string;
|
|
166
|
+
entrypoint?: string;
|
|
750
167
|
__ref?: unknown;
|
|
751
168
|
}>>>;
|
|
752
|
-
/**
|
|
753
|
-
* Workers AI binding for ML inference.
|
|
754
|
-
* @example { binding: 'AI' }
|
|
755
|
-
*/
|
|
756
169
|
ai: z.ZodOptional<z.ZodObject<{
|
|
757
|
-
/** Binding name exposed in env (e.g., 'AI') */
|
|
758
170
|
binding: z.ZodString;
|
|
759
171
|
}, "strip", z.ZodTypeAny, {
|
|
760
172
|
binding: string;
|
|
761
173
|
}, {
|
|
762
174
|
binding: string;
|
|
763
175
|
}>>;
|
|
764
|
-
/**
|
|
765
|
-
* Vectorize index bindings for vector similarity search.
|
|
766
|
-
* @example { EMBEDDINGS: { indexName: 'my-index' } }
|
|
767
|
-
*/
|
|
768
176
|
vectorize: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
769
|
-
/** Name of the Vectorize index */
|
|
770
177
|
indexName: z.ZodString;
|
|
771
178
|
}, "strip", z.ZodTypeAny, {
|
|
772
179
|
indexName: string;
|
|
773
180
|
}, {
|
|
774
181
|
indexName: string;
|
|
775
182
|
}>>>;
|
|
776
|
-
|
|
777
|
-
* Hyperdrive bindings for accelerated PostgreSQL.
|
|
778
|
-
* @example { DB: { id: 'hyperdrive-config-id' } }
|
|
779
|
-
*/
|
|
780
|
-
hyperdrive: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
781
|
-
/** Hyperdrive configuration ID */
|
|
183
|
+
hyperdrive: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
782
184
|
id: z.ZodString;
|
|
783
|
-
}, "
|
|
185
|
+
}, "strict", z.ZodTypeAny, {
|
|
784
186
|
id: string;
|
|
785
187
|
}, {
|
|
786
188
|
id: string;
|
|
787
|
-
}
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
*/
|
|
792
|
-
browser: z.ZodOptional<z.ZodObject<{
|
|
793
|
-
/** Binding name exposed in env (e.g., 'BROWSER') */
|
|
794
|
-
binding: z.ZodString;
|
|
795
|
-
}, "strip", z.ZodTypeAny, {
|
|
796
|
-
binding: string;
|
|
189
|
+
}>, z.ZodObject<{
|
|
190
|
+
name: z.ZodString;
|
|
191
|
+
}, "strict", z.ZodTypeAny, {
|
|
192
|
+
name: string;
|
|
797
193
|
}, {
|
|
798
|
-
|
|
799
|
-
}
|
|
800
|
-
|
|
801
|
-
* Analytics Engine bindings for event logging.
|
|
802
|
-
* @example { ANALYTICS: { dataset: 'my-dataset' } }
|
|
803
|
-
*/
|
|
194
|
+
name: string;
|
|
195
|
+
}>]>>>;
|
|
196
|
+
browser: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>>;
|
|
804
197
|
analyticsEngine: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
805
|
-
/** Analytics Engine dataset name */
|
|
806
198
|
dataset: z.ZodString;
|
|
807
199
|
}, "strip", z.ZodTypeAny, {
|
|
808
200
|
dataset: string;
|
|
809
201
|
}, {
|
|
810
202
|
dataset: string;
|
|
811
203
|
}>>>;
|
|
812
|
-
/**
|
|
813
|
-
* Email sending bindings.
|
|
814
|
-
* @example { EMAIL: { destinationAddress: 'admin@example.com' } }
|
|
815
|
-
* @example { BULK_EMAIL: { allowedDestinationAddresses: ['ops@example.com'], allowedSenderAddresses: ['noreply@example.com'] } }
|
|
816
|
-
*/
|
|
817
204
|
sendEmail: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
818
|
-
/** Restrict this binding to a specific verified destination address */
|
|
819
205
|
destinationAddress: z.ZodOptional<z.ZodString>;
|
|
820
|
-
/** Restrict this binding to a set of verified destination addresses */
|
|
821
206
|
allowedDestinationAddresses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
822
|
-
/** Restrict this binding to a set of verified sender addresses */
|
|
823
207
|
allowedSenderAddresses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
824
208
|
}, "strip", z.ZodTypeAny, {
|
|
825
209
|
destinationAddress?: string | undefined;
|
|
@@ -839,14 +223,18 @@ declare const envConfigSchemaInner: z.ZodEffects<z.ZodObject<{
|
|
|
839
223
|
allowedSenderAddresses?: string[] | undefined;
|
|
840
224
|
}>>>;
|
|
841
225
|
}, "strip", z.ZodTypeAny, {
|
|
842
|
-
kv?: Record<string, string
|
|
226
|
+
kv?: Record<string, string | {
|
|
227
|
+
id: string;
|
|
228
|
+
} | {
|
|
229
|
+
name: string;
|
|
230
|
+
}> | undefined;
|
|
843
231
|
d1?: Record<string, string | {
|
|
844
232
|
id: string;
|
|
845
233
|
} | {
|
|
846
234
|
name: string;
|
|
847
235
|
}> | undefined;
|
|
848
236
|
r2?: Record<string, string> | undefined;
|
|
849
|
-
durableObjects?: Record<string, DurableObjectBindingInput> | undefined;
|
|
237
|
+
durableObjects?: Record<string, import("./schema-bindings").DurableObjectBindingInput> | undefined;
|
|
850
238
|
queues?: {
|
|
851
239
|
producers?: Record<string, string> | undefined;
|
|
852
240
|
consumers?: {
|
|
@@ -860,13 +248,9 @@ declare const envConfigSchemaInner: z.ZodEffects<z.ZodObject<{
|
|
|
860
248
|
}[] | undefined;
|
|
861
249
|
} | undefined;
|
|
862
250
|
services?: Record<string, {
|
|
863
|
-
/** Target worker/service name */
|
|
864
251
|
service: string;
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
/** Optional entrypoint class name for named exports */
|
|
868
|
-
entrypoint?: string | undefined;
|
|
869
|
-
/** @internal Reference marker for ref() bindings */
|
|
252
|
+
environment?: string;
|
|
253
|
+
entrypoint?: string;
|
|
870
254
|
__ref?: unknown;
|
|
871
255
|
}> | undefined;
|
|
872
256
|
ai?: {
|
|
@@ -875,12 +259,12 @@ declare const envConfigSchemaInner: z.ZodEffects<z.ZodObject<{
|
|
|
875
259
|
vectorize?: Record<string, {
|
|
876
260
|
indexName: string;
|
|
877
261
|
}> | undefined;
|
|
878
|
-
hyperdrive?: Record<string, {
|
|
262
|
+
hyperdrive?: Record<string, string | {
|
|
879
263
|
id: string;
|
|
264
|
+
} | {
|
|
265
|
+
name: string;
|
|
880
266
|
}> | undefined;
|
|
881
|
-
browser?:
|
|
882
|
-
binding: string;
|
|
883
|
-
} | undefined;
|
|
267
|
+
browser?: Record<string, string> | undefined;
|
|
884
268
|
analyticsEngine?: Record<string, {
|
|
885
269
|
dataset: string;
|
|
886
270
|
}> | undefined;
|
|
@@ -890,14 +274,18 @@ declare const envConfigSchemaInner: z.ZodEffects<z.ZodObject<{
|
|
|
890
274
|
allowedSenderAddresses?: string[] | undefined;
|
|
891
275
|
}> | undefined;
|
|
892
276
|
}, {
|
|
893
|
-
kv?: Record<string, string
|
|
277
|
+
kv?: Record<string, string | {
|
|
278
|
+
id: string;
|
|
279
|
+
} | {
|
|
280
|
+
name: string;
|
|
281
|
+
}> | undefined;
|
|
894
282
|
d1?: Record<string, string | {
|
|
895
283
|
id: string;
|
|
896
284
|
} | {
|
|
897
285
|
name: string;
|
|
898
286
|
}> | undefined;
|
|
899
287
|
r2?: Record<string, string> | undefined;
|
|
900
|
-
durableObjects?: Record<string, DurableObjectBindingInput> | undefined;
|
|
288
|
+
durableObjects?: Record<string, import("./schema-bindings").DurableObjectBindingInput> | undefined;
|
|
901
289
|
queues?: {
|
|
902
290
|
producers?: Record<string, string> | undefined;
|
|
903
291
|
consumers?: {
|
|
@@ -911,13 +299,9 @@ declare const envConfigSchemaInner: z.ZodEffects<z.ZodObject<{
|
|
|
911
299
|
}[] | undefined;
|
|
912
300
|
} | undefined;
|
|
913
301
|
services?: Record<string, {
|
|
914
|
-
/** Target worker/service name */
|
|
915
302
|
service: string;
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
/** Optional entrypoint class name for named exports */
|
|
919
|
-
entrypoint?: string | undefined;
|
|
920
|
-
/** @internal Reference marker for ref() bindings */
|
|
303
|
+
environment?: string;
|
|
304
|
+
entrypoint?: string;
|
|
921
305
|
__ref?: unknown;
|
|
922
306
|
}> | undefined;
|
|
923
307
|
ai?: {
|
|
@@ -926,12 +310,12 @@ declare const envConfigSchemaInner: z.ZodEffects<z.ZodObject<{
|
|
|
926
310
|
vectorize?: Record<string, {
|
|
927
311
|
indexName: string;
|
|
928
312
|
}> | undefined;
|
|
929
|
-
hyperdrive?: Record<string, {
|
|
313
|
+
hyperdrive?: Record<string, string | {
|
|
930
314
|
id: string;
|
|
315
|
+
} | {
|
|
316
|
+
name: string;
|
|
931
317
|
}> | undefined;
|
|
932
|
-
browser?:
|
|
933
|
-
binding: string;
|
|
934
|
-
} | undefined;
|
|
318
|
+
browser?: Record<string, string> | undefined;
|
|
935
319
|
analyticsEngine?: Record<string, {
|
|
936
320
|
dataset: string;
|
|
937
321
|
}> | undefined;
|
|
@@ -940,46 +324,30 @@ declare const envConfigSchemaInner: z.ZodEffects<z.ZodObject<{
|
|
|
940
324
|
allowedDestinationAddresses?: string[] | undefined;
|
|
941
325
|
allowedSenderAddresses?: string[] | undefined;
|
|
942
326
|
}> | undefined;
|
|
943
|
-
}
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
* Array of cron expressions for scheduled execution.
|
|
947
|
-
*
|
|
948
|
-
* Examples:
|
|
949
|
-
* - `'0 0 * * *'` — Daily at midnight
|
|
950
|
-
* - `'0/5 * * * *'` — Every 5 minutes
|
|
951
|
-
* - `'0 9 * * 1'` — Every Monday at 9am
|
|
952
|
-
*/
|
|
327
|
+
}>>;
|
|
328
|
+
/** Trigger configuration (cron schedules). */
|
|
329
|
+
triggers: z.ZodOptional<z.ZodObject<{
|
|
953
330
|
crons: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
954
331
|
}, "strip", z.ZodTypeAny, {
|
|
955
332
|
crons?: string[] | undefined;
|
|
956
333
|
}, {
|
|
957
334
|
crons?: string[] | undefined;
|
|
958
|
-
}
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
* If true, worker will fail to start if secret is missing.
|
|
964
|
-
* @default true
|
|
965
|
-
*/
|
|
335
|
+
}>>;
|
|
336
|
+
/** Environment variables. */
|
|
337
|
+
vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
338
|
+
/** Secret declarations. */
|
|
339
|
+
secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
966
340
|
required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
967
341
|
}, "strip", z.ZodTypeAny, {
|
|
968
342
|
required: boolean;
|
|
969
343
|
}, {
|
|
970
344
|
required?: boolean | undefined;
|
|
971
|
-
}
|
|
972
|
-
routes
|
|
973
|
-
|
|
974
|
-
* URL pattern to match (e.g., 'example.com/*').
|
|
975
|
-
* Supports wildcards (*) for path matching.
|
|
976
|
-
*/
|
|
345
|
+
}>>>;
|
|
346
|
+
/** Deployment routes. */
|
|
347
|
+
routes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
977
348
|
pattern: z.ZodString;
|
|
978
|
-
/** Zone name to associate the route with */
|
|
979
349
|
zone_name: z.ZodOptional<z.ZodString>;
|
|
980
|
-
/** Zone ID to associate the route with (alternative to zone_name) */
|
|
981
350
|
zone_id: z.ZodOptional<z.ZodString>;
|
|
982
|
-
/** Whether this is a custom domain route */
|
|
983
351
|
custom_domain: z.ZodOptional<z.ZodBoolean>;
|
|
984
352
|
}, "strip", z.ZodTypeAny, {
|
|
985
353
|
pattern: string;
|
|
@@ -991,14 +359,27 @@ declare const envConfigSchemaInner: z.ZodEffects<z.ZodObject<{
|
|
|
991
359
|
zone_name?: string | undefined;
|
|
992
360
|
zone_id?: string | undefined;
|
|
993
361
|
custom_domain?: boolean | undefined;
|
|
994
|
-
}>, "many"
|
|
995
|
-
|
|
996
|
-
|
|
362
|
+
}>, "many">>;
|
|
363
|
+
/** WebSocket routes for dev mode DO proxying. */
|
|
364
|
+
wsRoutes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
365
|
+
pattern: z.ZodString;
|
|
366
|
+
doNamespace: z.ZodString;
|
|
367
|
+
idParam: z.ZodDefault<z.ZodString>;
|
|
368
|
+
forwardPath: z.ZodDefault<z.ZodString>;
|
|
369
|
+
}, "strip", z.ZodTypeAny, {
|
|
370
|
+
pattern: string;
|
|
371
|
+
doNamespace: string;
|
|
372
|
+
idParam: string;
|
|
373
|
+
forwardPath: string;
|
|
374
|
+
}, {
|
|
375
|
+
pattern: string;
|
|
376
|
+
doNamespace: string;
|
|
377
|
+
idParam?: string | undefined;
|
|
378
|
+
forwardPath?: string | undefined;
|
|
379
|
+
}>, "many">>;
|
|
380
|
+
/** Static assets configuration. */
|
|
381
|
+
assets: z.ZodOptional<z.ZodObject<{
|
|
997
382
|
directory: z.ZodString;
|
|
998
|
-
/**
|
|
999
|
-
* Optional binding name to access assets programmatically.
|
|
1000
|
-
* If provided, assets can be fetched via env[binding].fetch()
|
|
1001
|
-
*/
|
|
1002
383
|
binding: z.ZodOptional<z.ZodString>;
|
|
1003
384
|
}, "strip", z.ZodTypeAny, {
|
|
1004
385
|
directory: string;
|
|
@@ -1006,25 +387,18 @@ declare const envConfigSchemaInner: z.ZodEffects<z.ZodObject<{
|
|
|
1006
387
|
}, {
|
|
1007
388
|
directory: string;
|
|
1008
389
|
binding?: string | undefined;
|
|
1009
|
-
}
|
|
1010
|
-
limits
|
|
1011
|
-
|
|
1012
|
-
* Maximum CPU time in milliseconds.
|
|
1013
|
-
* Only applicable to Workers with Usage Model set to Unbound.
|
|
1014
|
-
*/
|
|
390
|
+
}>>;
|
|
391
|
+
/** Resource limits (CPU time). */
|
|
392
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
1015
393
|
cpu_ms: z.ZodOptional<z.ZodNumber>;
|
|
1016
394
|
}, "strip", z.ZodTypeAny, {
|
|
1017
395
|
cpu_ms?: number | undefined;
|
|
1018
396
|
}, {
|
|
1019
397
|
cpu_ms?: number | undefined;
|
|
1020
|
-
}
|
|
1021
|
-
|
|
1022
|
-
|
|
398
|
+
}>>;
|
|
399
|
+
/** Observability settings (logging, tracing). */
|
|
400
|
+
observability: z.ZodOptional<z.ZodObject<{
|
|
1023
401
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1024
|
-
/**
|
|
1025
|
-
* Head sampling rate for logs (0-1).
|
|
1026
|
-
* 1.0 = log all requests, 0.1 = log 10% of requests.
|
|
1027
|
-
*/
|
|
1028
402
|
head_sampling_rate: z.ZodOptional<z.ZodNumber>;
|
|
1029
403
|
}, "strip", z.ZodTypeAny, {
|
|
1030
404
|
enabled?: boolean | undefined;
|
|
@@ -1032,23 +406,11 @@ declare const envConfigSchemaInner: z.ZodEffects<z.ZodObject<{
|
|
|
1032
406
|
}, {
|
|
1033
407
|
enabled?: boolean | undefined;
|
|
1034
408
|
head_sampling_rate?: number | undefined;
|
|
1035
|
-
}
|
|
1036
|
-
migrations
|
|
1037
|
-
|
|
1038
|
-
* Migration tag (version identifier).
|
|
1039
|
-
* Must be unique and in chronological order.
|
|
1040
|
-
* @example 'v1', 'v2'
|
|
1041
|
-
*/
|
|
409
|
+
}>>;
|
|
410
|
+
/** Durable Object migrations. */
|
|
411
|
+
migrations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1042
412
|
tag: z.ZodString;
|
|
1043
|
-
/**
|
|
1044
|
-
* New DO classes introduced in this migration.
|
|
1045
|
-
* Classes that didn't exist before.
|
|
1046
|
-
*/
|
|
1047
413
|
new_classes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1048
|
-
/**
|
|
1049
|
-
* Classes being renamed.
|
|
1050
|
-
* State is preserved during rename.
|
|
1051
|
-
*/
|
|
1052
414
|
renamed_classes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1053
415
|
from: z.ZodString;
|
|
1054
416
|
to: z.ZodString;
|
|
@@ -1059,15 +421,7 @@ declare const envConfigSchemaInner: z.ZodEffects<z.ZodObject<{
|
|
|
1059
421
|
from: string;
|
|
1060
422
|
to: string;
|
|
1061
423
|
}>, "many">>;
|
|
1062
|
-
/**
|
|
1063
|
-
* Classes being deleted.
|
|
1064
|
-
* ⚠️ All state in these classes will be lost!
|
|
1065
|
-
*/
|
|
1066
424
|
deleted_classes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1067
|
-
/**
|
|
1068
|
-
* Classes migrating to SQLite storage backend.
|
|
1069
|
-
* Enables SQL API for these DO classes.
|
|
1070
|
-
*/
|
|
1071
425
|
new_sqlite_classes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1072
426
|
}, "strip", z.ZodTypeAny, {
|
|
1073
427
|
tag: string;
|
|
@@ -1087,2134 +441,64 @@ declare const envConfigSchemaInner: z.ZodEffects<z.ZodObject<{
|
|
|
1087
441
|
}[] | undefined;
|
|
1088
442
|
deleted_classes?: string[] | undefined;
|
|
1089
443
|
new_sqlite_classes?: string[] | undefined;
|
|
1090
|
-
}>, "many"
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
* Bundle target environment.
|
|
1094
|
-
* @example 'es2022'
|
|
1095
|
-
*/
|
|
444
|
+
}>, "many">>;
|
|
445
|
+
/** Rolldown configuration for Durable Object bundling. */
|
|
446
|
+
rolldown: z.ZodOptional<z.ZodObject<{
|
|
1096
447
|
target: z.ZodOptional<z.ZodString>;
|
|
1097
|
-
/** Enable minification for emitted DO bundles */
|
|
1098
448
|
minify: z.ZodOptional<z.ZodBoolean>;
|
|
1099
|
-
/** Generate source maps for emitted DO bundles */
|
|
1100
449
|
sourcemap: z.ZodOptional<z.ZodBoolean>;
|
|
1101
|
-
|
|
1102
|
-
* Additional raw Rolldown options.
|
|
1103
|
-
* @see https://rolldown.rs/
|
|
1104
|
-
*/
|
|
1105
|
-
options: z.ZodOptional<z.ZodType<DevflareRolldownOptions, z.ZodTypeDef, DevflareRolldownOptions>>;
|
|
450
|
+
options: z.ZodOptional<z.ZodType<import("./schema-build").DevflareRolldownOptions, z.ZodTypeDef, import("./schema-build").DevflareRolldownOptions>>;
|
|
1106
451
|
}, "strip", z.ZodTypeAny, {
|
|
1107
452
|
target?: string | undefined;
|
|
1108
453
|
minify?: boolean | undefined;
|
|
1109
454
|
sourcemap?: boolean | undefined;
|
|
1110
|
-
options?: DevflareRolldownOptions | undefined;
|
|
455
|
+
options?: import("./schema-build").DevflareRolldownOptions | undefined;
|
|
1111
456
|
}, {
|
|
1112
457
|
target?: string | undefined;
|
|
1113
458
|
minify?: boolean | undefined;
|
|
1114
459
|
sourcemap?: boolean | undefined;
|
|
1115
|
-
options?: DevflareRolldownOptions | undefined;
|
|
1116
|
-
}
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
* Devflare-level Vite plugin metadata sourced from devflare.config.ts.
|
|
1120
|
-
* Raw Vite plugin wiring still belongs in `vite.config.*`.
|
|
1121
|
-
*/
|
|
460
|
+
options?: import("./schema-build").DevflareRolldownOptions | undefined;
|
|
461
|
+
}>>;
|
|
462
|
+
/** Vite-related configuration namespace. */
|
|
463
|
+
vite: z.ZodOptional<z.ZodObject<{
|
|
1122
464
|
plugins: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
1123
465
|
}, "strip", z.ZodUnknown, z.objectOutputType<{
|
|
1124
|
-
/**
|
|
1125
|
-
* Devflare-level Vite plugin metadata sourced from devflare.config.ts.
|
|
1126
|
-
* Raw Vite plugin wiring still belongs in `vite.config.*`.
|
|
1127
|
-
*/
|
|
1128
466
|
plugins: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
1129
467
|
}, z.ZodUnknown, "strip">, z.objectInputType<{
|
|
1130
|
-
/**
|
|
1131
|
-
* Devflare-level Vite plugin metadata sourced from devflare.config.ts.
|
|
1132
|
-
* Raw Vite plugin wiring still belongs in `vite.config.*`.
|
|
1133
|
-
*/
|
|
1134
468
|
plugins: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
1135
|
-
}, z.ZodUnknown, "strip"
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
passthrough?: Record<string, unknown> | undefined;
|
|
1144
|
-
}, {
|
|
1145
|
-
passthrough?: Record<string, unknown> | undefined;
|
|
1146
|
-
}>>>;
|
|
1147
|
-
} & {
|
|
1148
|
-
/** @deprecated Use `rolldown` instead. */
|
|
1149
|
-
build: z.ZodOptional<z.ZodObject<{
|
|
1150
|
-
/**
|
|
1151
|
-
* Legacy alias for `rolldown.target`.
|
|
1152
|
-
* @example 'es2022'
|
|
1153
|
-
*/
|
|
1154
|
-
target: z.ZodOptional<z.ZodString>;
|
|
1155
|
-
/** Legacy alias for `rolldown.minify`. */
|
|
1156
|
-
minify: z.ZodOptional<z.ZodBoolean>;
|
|
1157
|
-
/** Legacy alias for `rolldown.sourcemap`. */
|
|
1158
|
-
sourcemap: z.ZodOptional<z.ZodBoolean>;
|
|
1159
|
-
/** Legacy alias for `rolldown.options`. */
|
|
1160
|
-
rolldownOptions: z.ZodOptional<z.ZodType<DevflareRolldownOptions, z.ZodTypeDef, DevflareRolldownOptions>>;
|
|
1161
|
-
}, "strip", z.ZodTypeAny, {
|
|
1162
|
-
target?: string | undefined;
|
|
1163
|
-
minify?: boolean | undefined;
|
|
1164
|
-
sourcemap?: boolean | undefined;
|
|
1165
|
-
rolldownOptions?: DevflareRolldownOptions | undefined;
|
|
1166
|
-
}, {
|
|
1167
|
-
target?: string | undefined;
|
|
1168
|
-
minify?: boolean | undefined;
|
|
1169
|
-
sourcemap?: boolean | undefined;
|
|
1170
|
-
rolldownOptions?: DevflareRolldownOptions | undefined;
|
|
1171
|
-
}>>;
|
|
1172
|
-
/** @deprecated Use `vite.plugins` instead. */
|
|
1173
|
-
plugins: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
1174
|
-
}, "strip", z.ZodTypeAny, {
|
|
1175
|
-
name?: string | undefined;
|
|
1176
|
-
compatibilityDate?: string | undefined;
|
|
1177
|
-
compatibilityFlags?: string[] | undefined;
|
|
1178
|
-
files?: {
|
|
1179
|
-
fetch?: string | false | undefined;
|
|
1180
|
-
queue?: string | false | undefined;
|
|
1181
|
-
scheduled?: string | false | undefined;
|
|
1182
|
-
email?: string | false | undefined;
|
|
1183
|
-
durableObjects?: string | false | undefined;
|
|
1184
|
-
entrypoints?: string | false | undefined;
|
|
1185
|
-
workflows?: string | false | undefined;
|
|
1186
|
-
routes?: false | {
|
|
1187
|
-
dir: string;
|
|
1188
|
-
prefix?: string | undefined;
|
|
1189
|
-
} | undefined;
|
|
1190
|
-
transport?: string | null | undefined;
|
|
1191
|
-
} | undefined;
|
|
1192
|
-
bindings?: {
|
|
1193
|
-
kv?: Record<string, string> | undefined;
|
|
1194
|
-
d1?: Record<string, string | {
|
|
1195
|
-
id: string;
|
|
1196
|
-
} | {
|
|
1197
|
-
name: string;
|
|
1198
|
-
}> | undefined;
|
|
1199
|
-
r2?: Record<string, string> | undefined;
|
|
1200
|
-
durableObjects?: Record<string, DurableObjectBindingInput> | undefined;
|
|
1201
|
-
queues?: {
|
|
1202
|
-
producers?: Record<string, string> | undefined;
|
|
1203
|
-
consumers?: {
|
|
1204
|
-
queue: string;
|
|
1205
|
-
maxBatchSize?: number | undefined;
|
|
1206
|
-
maxBatchTimeout?: number | undefined;
|
|
1207
|
-
maxRetries?: number | undefined;
|
|
1208
|
-
deadLetterQueue?: string | undefined;
|
|
1209
|
-
maxConcurrency?: number | undefined;
|
|
1210
|
-
retryDelay?: number | undefined;
|
|
1211
|
-
}[] | undefined;
|
|
1212
|
-
} | undefined;
|
|
1213
|
-
services?: Record<string, {
|
|
1214
|
-
/** Target worker/service name */
|
|
1215
|
-
service: string;
|
|
1216
|
-
/** Optional environment (staging, production, etc.) */
|
|
1217
|
-
environment?: string | undefined;
|
|
1218
|
-
/** Optional entrypoint class name for named exports */
|
|
1219
|
-
entrypoint?: string | undefined;
|
|
1220
|
-
/** @internal Reference marker for ref() bindings */
|
|
1221
|
-
__ref?: unknown;
|
|
1222
|
-
}> | undefined;
|
|
1223
|
-
ai?: {
|
|
1224
|
-
binding: string;
|
|
1225
|
-
} | undefined;
|
|
1226
|
-
vectorize?: Record<string, {
|
|
1227
|
-
indexName: string;
|
|
1228
|
-
}> | undefined;
|
|
1229
|
-
hyperdrive?: Record<string, {
|
|
1230
|
-
id: string;
|
|
1231
|
-
}> | undefined;
|
|
1232
|
-
browser?: {
|
|
1233
|
-
binding: string;
|
|
1234
|
-
} | undefined;
|
|
1235
|
-
analyticsEngine?: Record<string, {
|
|
1236
|
-
dataset: string;
|
|
1237
|
-
}> | undefined;
|
|
1238
|
-
sendEmail?: Record<string, {
|
|
1239
|
-
destinationAddress?: string | undefined;
|
|
1240
|
-
allowedDestinationAddresses?: string[] | undefined;
|
|
1241
|
-
allowedSenderAddresses?: string[] | undefined;
|
|
1242
|
-
}> | undefined;
|
|
1243
|
-
} | undefined;
|
|
1244
|
-
triggers?: {
|
|
1245
|
-
crons?: string[] | undefined;
|
|
1246
|
-
} | undefined;
|
|
1247
|
-
vars?: Record<string, string> | undefined;
|
|
1248
|
-
secrets?: Record<string, {
|
|
1249
|
-
required: boolean;
|
|
1250
|
-
}> | undefined;
|
|
1251
|
-
routes?: {
|
|
1252
|
-
pattern: string;
|
|
1253
|
-
zone_name?: string | undefined;
|
|
1254
|
-
zone_id?: string | undefined;
|
|
1255
|
-
custom_domain?: boolean | undefined;
|
|
1256
|
-
}[] | undefined;
|
|
1257
|
-
assets?: {
|
|
1258
|
-
directory: string;
|
|
1259
|
-
binding?: string | undefined;
|
|
1260
|
-
} | undefined;
|
|
1261
|
-
limits?: {
|
|
1262
|
-
cpu_ms?: number | undefined;
|
|
1263
|
-
} | undefined;
|
|
1264
|
-
observability?: {
|
|
1265
|
-
enabled?: boolean | undefined;
|
|
1266
|
-
head_sampling_rate?: number | undefined;
|
|
1267
|
-
} | undefined;
|
|
1268
|
-
migrations?: {
|
|
1269
|
-
tag: string;
|
|
1270
|
-
new_classes?: string[] | undefined;
|
|
1271
|
-
renamed_classes?: {
|
|
1272
|
-
from: string;
|
|
1273
|
-
to: string;
|
|
1274
|
-
}[] | undefined;
|
|
1275
|
-
deleted_classes?: string[] | undefined;
|
|
1276
|
-
new_sqlite_classes?: string[] | undefined;
|
|
1277
|
-
}[] | undefined;
|
|
1278
|
-
rolldown?: {
|
|
1279
|
-
target?: string | undefined;
|
|
1280
|
-
minify?: boolean | undefined;
|
|
1281
|
-
sourcemap?: boolean | undefined;
|
|
1282
|
-
options?: DevflareRolldownOptions | undefined;
|
|
1283
|
-
} | undefined;
|
|
1284
|
-
vite?: z.objectOutputType<{
|
|
1285
|
-
/**
|
|
1286
|
-
* Devflare-level Vite plugin metadata sourced from devflare.config.ts.
|
|
1287
|
-
* Raw Vite plugin wiring still belongs in `vite.config.*`.
|
|
1288
|
-
*/
|
|
1289
|
-
plugins: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
1290
|
-
}, z.ZodUnknown, "strip"> | undefined;
|
|
1291
|
-
wrangler?: {
|
|
1292
|
-
passthrough?: Record<string, unknown> | undefined;
|
|
1293
|
-
} | undefined;
|
|
1294
|
-
build?: {
|
|
1295
|
-
target?: string | undefined;
|
|
1296
|
-
minify?: boolean | undefined;
|
|
1297
|
-
sourcemap?: boolean | undefined;
|
|
1298
|
-
rolldownOptions?: DevflareRolldownOptions | undefined;
|
|
1299
|
-
} | undefined;
|
|
1300
|
-
plugins?: unknown[] | undefined;
|
|
1301
|
-
}, {
|
|
1302
|
-
name?: string | undefined;
|
|
1303
|
-
compatibilityDate?: string | undefined;
|
|
1304
|
-
compatibilityFlags?: string[] | undefined;
|
|
1305
|
-
files?: {
|
|
1306
|
-
fetch?: string | false | undefined;
|
|
1307
|
-
queue?: string | false | undefined;
|
|
1308
|
-
scheduled?: string | false | undefined;
|
|
1309
|
-
email?: string | false | undefined;
|
|
1310
|
-
durableObjects?: string | false | undefined;
|
|
1311
|
-
entrypoints?: string | false | undefined;
|
|
1312
|
-
workflows?: string | false | undefined;
|
|
1313
|
-
routes?: false | {
|
|
1314
|
-
dir: string;
|
|
1315
|
-
prefix?: string | undefined;
|
|
1316
|
-
} | undefined;
|
|
1317
|
-
transport?: string | null | undefined;
|
|
1318
|
-
} | undefined;
|
|
1319
|
-
bindings?: {
|
|
1320
|
-
kv?: Record<string, string> | undefined;
|
|
1321
|
-
d1?: Record<string, string | {
|
|
1322
|
-
id: string;
|
|
1323
|
-
} | {
|
|
1324
|
-
name: string;
|
|
1325
|
-
}> | undefined;
|
|
1326
|
-
r2?: Record<string, string> | undefined;
|
|
1327
|
-
durableObjects?: Record<string, DurableObjectBindingInput> | undefined;
|
|
1328
|
-
queues?: {
|
|
1329
|
-
producers?: Record<string, string> | undefined;
|
|
1330
|
-
consumers?: {
|
|
1331
|
-
queue: string;
|
|
1332
|
-
maxBatchSize?: number | undefined;
|
|
1333
|
-
maxBatchTimeout?: number | undefined;
|
|
1334
|
-
maxRetries?: number | undefined;
|
|
1335
|
-
deadLetterQueue?: string | undefined;
|
|
1336
|
-
maxConcurrency?: number | undefined;
|
|
1337
|
-
retryDelay?: number | undefined;
|
|
1338
|
-
}[] | undefined;
|
|
1339
|
-
} | undefined;
|
|
1340
|
-
services?: Record<string, {
|
|
1341
|
-
/** Target worker/service name */
|
|
1342
|
-
service: string;
|
|
1343
|
-
/** Optional environment (staging, production, etc.) */
|
|
1344
|
-
environment?: string | undefined;
|
|
1345
|
-
/** Optional entrypoint class name for named exports */
|
|
1346
|
-
entrypoint?: string | undefined;
|
|
1347
|
-
/** @internal Reference marker for ref() bindings */
|
|
1348
|
-
__ref?: unknown;
|
|
1349
|
-
}> | undefined;
|
|
1350
|
-
ai?: {
|
|
1351
|
-
binding: string;
|
|
1352
|
-
} | undefined;
|
|
1353
|
-
vectorize?: Record<string, {
|
|
1354
|
-
indexName: string;
|
|
1355
|
-
}> | undefined;
|
|
1356
|
-
hyperdrive?: Record<string, {
|
|
1357
|
-
id: string;
|
|
1358
|
-
}> | undefined;
|
|
1359
|
-
browser?: {
|
|
1360
|
-
binding: string;
|
|
1361
|
-
} | undefined;
|
|
1362
|
-
analyticsEngine?: Record<string, {
|
|
1363
|
-
dataset: string;
|
|
1364
|
-
}> | undefined;
|
|
1365
|
-
sendEmail?: Record<string, {
|
|
1366
|
-
destinationAddress?: string | undefined;
|
|
1367
|
-
allowedDestinationAddresses?: string[] | undefined;
|
|
1368
|
-
allowedSenderAddresses?: string[] | undefined;
|
|
1369
|
-
}> | undefined;
|
|
1370
|
-
} | undefined;
|
|
1371
|
-
triggers?: {
|
|
1372
|
-
crons?: string[] | undefined;
|
|
1373
|
-
} | undefined;
|
|
1374
|
-
vars?: Record<string, string> | undefined;
|
|
1375
|
-
secrets?: Record<string, {
|
|
1376
|
-
required?: boolean | undefined;
|
|
1377
|
-
}> | undefined;
|
|
1378
|
-
routes?: {
|
|
1379
|
-
pattern: string;
|
|
1380
|
-
zone_name?: string | undefined;
|
|
1381
|
-
zone_id?: string | undefined;
|
|
1382
|
-
custom_domain?: boolean | undefined;
|
|
1383
|
-
}[] | undefined;
|
|
1384
|
-
assets?: {
|
|
1385
|
-
directory: string;
|
|
1386
|
-
binding?: string | undefined;
|
|
1387
|
-
} | undefined;
|
|
1388
|
-
limits?: {
|
|
1389
|
-
cpu_ms?: number | undefined;
|
|
1390
|
-
} | undefined;
|
|
1391
|
-
observability?: {
|
|
1392
|
-
enabled?: boolean | undefined;
|
|
1393
|
-
head_sampling_rate?: number | undefined;
|
|
1394
|
-
} | undefined;
|
|
1395
|
-
migrations?: {
|
|
1396
|
-
tag: string;
|
|
1397
|
-
new_classes?: string[] | undefined;
|
|
1398
|
-
renamed_classes?: {
|
|
1399
|
-
from: string;
|
|
1400
|
-
to: string;
|
|
1401
|
-
}[] | undefined;
|
|
1402
|
-
deleted_classes?: string[] | undefined;
|
|
1403
|
-
new_sqlite_classes?: string[] | undefined;
|
|
1404
|
-
}[] | undefined;
|
|
1405
|
-
rolldown?: {
|
|
1406
|
-
target?: string | undefined;
|
|
1407
|
-
minify?: boolean | undefined;
|
|
1408
|
-
sourcemap?: boolean | undefined;
|
|
1409
|
-
options?: DevflareRolldownOptions | undefined;
|
|
1410
|
-
} | undefined;
|
|
1411
|
-
vite?: z.objectInputType<{
|
|
1412
|
-
/**
|
|
1413
|
-
* Devflare-level Vite plugin metadata sourced from devflare.config.ts.
|
|
1414
|
-
* Raw Vite plugin wiring still belongs in `vite.config.*`.
|
|
1415
|
-
*/
|
|
1416
|
-
plugins: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
1417
|
-
}, z.ZodUnknown, "strip"> | undefined;
|
|
1418
|
-
wrangler?: {
|
|
1419
|
-
passthrough?: Record<string, unknown> | undefined;
|
|
1420
|
-
} | undefined;
|
|
1421
|
-
build?: {
|
|
1422
|
-
target?: string | undefined;
|
|
1423
|
-
minify?: boolean | undefined;
|
|
1424
|
-
sourcemap?: boolean | undefined;
|
|
1425
|
-
rolldownOptions?: DevflareRolldownOptions | undefined;
|
|
1426
|
-
} | undefined;
|
|
1427
|
-
plugins?: unknown[] | undefined;
|
|
1428
|
-
}>, {
|
|
1429
|
-
name?: string | undefined;
|
|
1430
|
-
compatibilityDate?: string | undefined;
|
|
1431
|
-
compatibilityFlags?: string[] | undefined;
|
|
1432
|
-
files?: {
|
|
1433
|
-
fetch?: string | false | undefined;
|
|
1434
|
-
queue?: string | false | undefined;
|
|
1435
|
-
scheduled?: string | false | undefined;
|
|
1436
|
-
email?: string | false | undefined;
|
|
1437
|
-
durableObjects?: string | false | undefined;
|
|
1438
|
-
entrypoints?: string | false | undefined;
|
|
1439
|
-
workflows?: string | false | undefined;
|
|
1440
|
-
routes?: false | {
|
|
1441
|
-
dir: string;
|
|
1442
|
-
prefix?: string | undefined;
|
|
1443
|
-
} | undefined;
|
|
1444
|
-
transport?: string | null | undefined;
|
|
1445
|
-
} | undefined;
|
|
1446
|
-
bindings?: {
|
|
1447
|
-
kv?: Record<string, string> | undefined;
|
|
1448
|
-
d1?: Record<string, string | {
|
|
1449
|
-
id: string;
|
|
1450
|
-
} | {
|
|
1451
|
-
name: string;
|
|
1452
|
-
}> | undefined;
|
|
1453
|
-
r2?: Record<string, string> | undefined;
|
|
1454
|
-
durableObjects?: Record<string, DurableObjectBindingInput> | undefined;
|
|
1455
|
-
queues?: {
|
|
1456
|
-
producers?: Record<string, string> | undefined;
|
|
1457
|
-
consumers?: {
|
|
1458
|
-
queue: string;
|
|
1459
|
-
maxBatchSize?: number | undefined;
|
|
1460
|
-
maxBatchTimeout?: number | undefined;
|
|
1461
|
-
maxRetries?: number | undefined;
|
|
1462
|
-
deadLetterQueue?: string | undefined;
|
|
1463
|
-
maxConcurrency?: number | undefined;
|
|
1464
|
-
retryDelay?: number | undefined;
|
|
1465
|
-
}[] | undefined;
|
|
1466
|
-
} | undefined;
|
|
1467
|
-
services?: Record<string, {
|
|
1468
|
-
/** Target worker/service name */
|
|
1469
|
-
service: string;
|
|
1470
|
-
/** Optional environment (staging, production, etc.) */
|
|
1471
|
-
environment?: string | undefined;
|
|
1472
|
-
/** Optional entrypoint class name for named exports */
|
|
1473
|
-
entrypoint?: string | undefined;
|
|
1474
|
-
/** @internal Reference marker for ref() bindings */
|
|
1475
|
-
__ref?: unknown;
|
|
1476
|
-
}> | undefined;
|
|
1477
|
-
ai?: {
|
|
1478
|
-
binding: string;
|
|
1479
|
-
} | undefined;
|
|
1480
|
-
vectorize?: Record<string, {
|
|
1481
|
-
indexName: string;
|
|
1482
|
-
}> | undefined;
|
|
1483
|
-
hyperdrive?: Record<string, {
|
|
1484
|
-
id: string;
|
|
1485
|
-
}> | undefined;
|
|
1486
|
-
browser?: {
|
|
1487
|
-
binding: string;
|
|
1488
|
-
} | undefined;
|
|
1489
|
-
analyticsEngine?: Record<string, {
|
|
1490
|
-
dataset: string;
|
|
1491
|
-
}> | undefined;
|
|
1492
|
-
sendEmail?: Record<string, {
|
|
1493
|
-
destinationAddress?: string | undefined;
|
|
1494
|
-
allowedDestinationAddresses?: string[] | undefined;
|
|
1495
|
-
allowedSenderAddresses?: string[] | undefined;
|
|
1496
|
-
}> | undefined;
|
|
1497
|
-
} | undefined;
|
|
1498
|
-
triggers?: {
|
|
1499
|
-
crons?: string[] | undefined;
|
|
1500
|
-
} | undefined;
|
|
1501
|
-
vars?: Record<string, string> | undefined;
|
|
1502
|
-
secrets?: Record<string, {
|
|
1503
|
-
required: boolean;
|
|
1504
|
-
}> | undefined;
|
|
1505
|
-
routes?: {
|
|
1506
|
-
pattern: string;
|
|
1507
|
-
zone_name?: string | undefined;
|
|
1508
|
-
zone_id?: string | undefined;
|
|
1509
|
-
custom_domain?: boolean | undefined;
|
|
1510
|
-
}[] | undefined;
|
|
1511
|
-
assets?: {
|
|
1512
|
-
directory: string;
|
|
1513
|
-
binding?: string | undefined;
|
|
1514
|
-
} | undefined;
|
|
1515
|
-
limits?: {
|
|
1516
|
-
cpu_ms?: number | undefined;
|
|
1517
|
-
} | undefined;
|
|
1518
|
-
observability?: {
|
|
1519
|
-
enabled?: boolean | undefined;
|
|
1520
|
-
head_sampling_rate?: number | undefined;
|
|
1521
|
-
} | undefined;
|
|
1522
|
-
migrations?: {
|
|
1523
|
-
tag: string;
|
|
1524
|
-
new_classes?: string[] | undefined;
|
|
1525
|
-
renamed_classes?: {
|
|
1526
|
-
from: string;
|
|
1527
|
-
to: string;
|
|
1528
|
-
}[] | undefined;
|
|
1529
|
-
deleted_classes?: string[] | undefined;
|
|
1530
|
-
new_sqlite_classes?: string[] | undefined;
|
|
1531
|
-
}[] | undefined;
|
|
1532
|
-
rolldown?: {
|
|
1533
|
-
target?: string | undefined;
|
|
1534
|
-
minify?: boolean | undefined;
|
|
1535
|
-
sourcemap?: boolean | undefined;
|
|
1536
|
-
options?: DevflareRolldownOptions | undefined;
|
|
1537
|
-
} | undefined;
|
|
1538
|
-
vite?: z.objectOutputType<{
|
|
1539
|
-
/**
|
|
1540
|
-
* Devflare-level Vite plugin metadata sourced from devflare.config.ts.
|
|
1541
|
-
* Raw Vite plugin wiring still belongs in `vite.config.*`.
|
|
1542
|
-
*/
|
|
1543
|
-
plugins: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
1544
|
-
}, z.ZodUnknown, "strip"> | undefined;
|
|
1545
|
-
wrangler?: {
|
|
1546
|
-
passthrough?: Record<string, unknown> | undefined;
|
|
1547
|
-
} | undefined;
|
|
1548
|
-
}, {
|
|
1549
|
-
name?: string | undefined;
|
|
1550
|
-
compatibilityDate?: string | undefined;
|
|
1551
|
-
compatibilityFlags?: string[] | undefined;
|
|
1552
|
-
files?: {
|
|
1553
|
-
fetch?: string | false | undefined;
|
|
1554
|
-
queue?: string | false | undefined;
|
|
1555
|
-
scheduled?: string | false | undefined;
|
|
1556
|
-
email?: string | false | undefined;
|
|
1557
|
-
durableObjects?: string | false | undefined;
|
|
1558
|
-
entrypoints?: string | false | undefined;
|
|
1559
|
-
workflows?: string | false | undefined;
|
|
1560
|
-
routes?: false | {
|
|
1561
|
-
dir: string;
|
|
1562
|
-
prefix?: string | undefined;
|
|
1563
|
-
} | undefined;
|
|
1564
|
-
transport?: string | null | undefined;
|
|
1565
|
-
} | undefined;
|
|
1566
|
-
bindings?: {
|
|
1567
|
-
kv?: Record<string, string> | undefined;
|
|
1568
|
-
d1?: Record<string, string | {
|
|
1569
|
-
id: string;
|
|
1570
|
-
} | {
|
|
1571
|
-
name: string;
|
|
1572
|
-
}> | undefined;
|
|
1573
|
-
r2?: Record<string, string> | undefined;
|
|
1574
|
-
durableObjects?: Record<string, DurableObjectBindingInput> | undefined;
|
|
1575
|
-
queues?: {
|
|
1576
|
-
producers?: Record<string, string> | undefined;
|
|
1577
|
-
consumers?: {
|
|
1578
|
-
queue: string;
|
|
1579
|
-
maxBatchSize?: number | undefined;
|
|
1580
|
-
maxBatchTimeout?: number | undefined;
|
|
1581
|
-
maxRetries?: number | undefined;
|
|
1582
|
-
deadLetterQueue?: string | undefined;
|
|
1583
|
-
maxConcurrency?: number | undefined;
|
|
1584
|
-
retryDelay?: number | undefined;
|
|
1585
|
-
}[] | undefined;
|
|
1586
|
-
} | undefined;
|
|
1587
|
-
services?: Record<string, {
|
|
1588
|
-
/** Target worker/service name */
|
|
1589
|
-
service: string;
|
|
1590
|
-
/** Optional environment (staging, production, etc.) */
|
|
1591
|
-
environment?: string | undefined;
|
|
1592
|
-
/** Optional entrypoint class name for named exports */
|
|
1593
|
-
entrypoint?: string | undefined;
|
|
1594
|
-
/** @internal Reference marker for ref() bindings */
|
|
1595
|
-
__ref?: unknown;
|
|
1596
|
-
}> | undefined;
|
|
1597
|
-
ai?: {
|
|
1598
|
-
binding: string;
|
|
1599
|
-
} | undefined;
|
|
1600
|
-
vectorize?: Record<string, {
|
|
1601
|
-
indexName: string;
|
|
1602
|
-
}> | undefined;
|
|
1603
|
-
hyperdrive?: Record<string, {
|
|
1604
|
-
id: string;
|
|
1605
|
-
}> | undefined;
|
|
1606
|
-
browser?: {
|
|
1607
|
-
binding: string;
|
|
1608
|
-
} | undefined;
|
|
1609
|
-
analyticsEngine?: Record<string, {
|
|
1610
|
-
dataset: string;
|
|
1611
|
-
}> | undefined;
|
|
1612
|
-
sendEmail?: Record<string, {
|
|
1613
|
-
destinationAddress?: string | undefined;
|
|
1614
|
-
allowedDestinationAddresses?: string[] | undefined;
|
|
1615
|
-
allowedSenderAddresses?: string[] | undefined;
|
|
1616
|
-
}> | undefined;
|
|
1617
|
-
} | undefined;
|
|
1618
|
-
triggers?: {
|
|
1619
|
-
crons?: string[] | undefined;
|
|
1620
|
-
} | undefined;
|
|
1621
|
-
vars?: Record<string, string> | undefined;
|
|
1622
|
-
secrets?: Record<string, {
|
|
1623
|
-
required?: boolean | undefined;
|
|
1624
|
-
}> | undefined;
|
|
1625
|
-
routes?: {
|
|
1626
|
-
pattern: string;
|
|
1627
|
-
zone_name?: string | undefined;
|
|
1628
|
-
zone_id?: string | undefined;
|
|
1629
|
-
custom_domain?: boolean | undefined;
|
|
1630
|
-
}[] | undefined;
|
|
1631
|
-
assets?: {
|
|
1632
|
-
directory: string;
|
|
1633
|
-
binding?: string | undefined;
|
|
1634
|
-
} | undefined;
|
|
1635
|
-
limits?: {
|
|
1636
|
-
cpu_ms?: number | undefined;
|
|
1637
|
-
} | undefined;
|
|
1638
|
-
observability?: {
|
|
1639
|
-
enabled?: boolean | undefined;
|
|
1640
|
-
head_sampling_rate?: number | undefined;
|
|
1641
|
-
} | undefined;
|
|
1642
|
-
migrations?: {
|
|
1643
|
-
tag: string;
|
|
1644
|
-
new_classes?: string[] | undefined;
|
|
1645
|
-
renamed_classes?: {
|
|
1646
|
-
from: string;
|
|
1647
|
-
to: string;
|
|
1648
|
-
}[] | undefined;
|
|
1649
|
-
deleted_classes?: string[] | undefined;
|
|
1650
|
-
new_sqlite_classes?: string[] | undefined;
|
|
1651
|
-
}[] | undefined;
|
|
1652
|
-
rolldown?: {
|
|
1653
|
-
target?: string | undefined;
|
|
1654
|
-
minify?: boolean | undefined;
|
|
1655
|
-
sourcemap?: boolean | undefined;
|
|
1656
|
-
options?: DevflareRolldownOptions | undefined;
|
|
1657
|
-
} | undefined;
|
|
1658
|
-
vite?: z.objectInputType<{
|
|
1659
|
-
/**
|
|
1660
|
-
* Devflare-level Vite plugin metadata sourced from devflare.config.ts.
|
|
1661
|
-
* Raw Vite plugin wiring still belongs in `vite.config.*`.
|
|
1662
|
-
*/
|
|
1663
|
-
plugins: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
1664
|
-
}, z.ZodUnknown, "strip"> | undefined;
|
|
1665
|
-
wrangler?: {
|
|
1666
|
-
passthrough?: Record<string, unknown> | undefined;
|
|
1667
|
-
} | undefined;
|
|
1668
|
-
build?: {
|
|
1669
|
-
target?: string | undefined;
|
|
1670
|
-
minify?: boolean | undefined;
|
|
1671
|
-
sourcemap?: boolean | undefined;
|
|
1672
|
-
rolldownOptions?: DevflareRolldownOptions | undefined;
|
|
1673
|
-
} | undefined;
|
|
1674
|
-
plugins?: unknown[] | undefined;
|
|
1675
|
-
}>;
|
|
1676
|
-
export declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
1677
|
-
/**
|
|
1678
|
-
* Worker name (required).
|
|
1679
|
-
* Used as the deployment target and in URLs.
|
|
1680
|
-
* @example 'my-api-worker'
|
|
1681
|
-
*/
|
|
1682
|
-
name: z.ZodString;
|
|
1683
|
-
/**
|
|
1684
|
-
* Cloudflare account ID.
|
|
1685
|
-
* Required for remote bindings (AI, Vectorize, etc.).
|
|
1686
|
-
* Can also be set via CLOUDFLARE_ACCOUNT_ID environment variable.
|
|
1687
|
-
*/
|
|
1688
|
-
accountId: z.ZodOptional<z.ZodString>;
|
|
1689
|
-
/**
|
|
1690
|
-
* Cloudflare Workers compatibility date.
|
|
1691
|
-
* @default Current date (YYYY-MM-DD)
|
|
1692
|
-
* @see https://developers.cloudflare.com/workers/configuration/compatibility-dates/
|
|
1693
|
-
*/
|
|
1694
|
-
compatibilityDate: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
1695
|
-
/**
|
|
1696
|
-
* Compatibility flags to enable additional features.
|
|
1697
|
-
* @default ['nodejs_compat', 'nodejs_als'] (always included)
|
|
1698
|
-
* @see https://developers.cloudflare.com/workers/configuration/compatibility-dates/#compatibility-flags
|
|
1699
|
-
*/
|
|
1700
|
-
compatibilityFlags: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodString, "many">>, string[], string[] | undefined>;
|
|
1701
|
-
/**
|
|
1702
|
-
* File handlers configuration.
|
|
1703
|
-
* Maps handler types to source file paths.
|
|
1704
|
-
*/
|
|
1705
|
-
files: z.ZodOptional<z.ZodObject<{
|
|
1706
|
-
/**
|
|
1707
|
-
* Main fetch handler file path.
|
|
1708
|
-
* This handles HTTP requests to your worker.
|
|
1709
|
-
* @default 'src/fetch.{ts,js}'
|
|
1710
|
-
* @example 'src/fetch.ts'
|
|
1711
|
-
*/
|
|
1712
|
-
fetch: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>>;
|
|
1713
|
-
/**
|
|
1714
|
-
* Queue consumer handler file path.
|
|
1715
|
-
* Handles messages from Cloudflare Queues.
|
|
1716
|
-
* @default 'src/queue.ts'
|
|
1717
|
-
* @example 'src/queue.ts'
|
|
1718
|
-
*/
|
|
1719
|
-
queue: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>>;
|
|
1720
|
-
/**
|
|
1721
|
-
* Scheduled (cron) handler file path.
|
|
1722
|
-
* Handles cron trigger invocations.
|
|
1723
|
-
* @default 'src/scheduled.ts'
|
|
1724
|
-
* @example 'src/scheduled.ts'
|
|
1725
|
-
*/
|
|
1726
|
-
scheduled: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>>;
|
|
1727
|
-
/**
|
|
1728
|
-
* Email handler file path.
|
|
1729
|
-
* Handles incoming emails via Email Routing.
|
|
1730
|
-
* @default 'src/email.ts'
|
|
1731
|
-
* @example 'src/email.ts'
|
|
1732
|
-
*/
|
|
1733
|
-
email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>>;
|
|
1734
|
-
/**
|
|
1735
|
-
* Durable Object class discovery glob pattern.
|
|
1736
|
-
* Files matching this pattern are scanned for DO classes.
|
|
1737
|
-
* Respects `.gitignore` automatically.
|
|
1738
|
-
*
|
|
1739
|
-
* @default `**/do.*.{ts,js}` (recursive)
|
|
1740
|
-
* @example `**/do.*.{ts,js}` — Matches src/do.counter.ts, lib/do.chat.ts
|
|
1741
|
-
* @example `src/do.*.ts` — Legacy single-directory pattern
|
|
1742
|
-
*/
|
|
1743
|
-
durableObjects: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>>;
|
|
1744
|
-
/**
|
|
1745
|
-
* WorkerEntrypoint class discovery glob pattern.
|
|
1746
|
-
* Files matching this pattern are scanned for named entrypoint classes.
|
|
1747
|
-
* Respects `.gitignore` automatically.
|
|
1748
|
-
*
|
|
1749
|
-
* Entrypoints enable typed cross-worker RPC via service bindings:
|
|
1750
|
-
* ```ts
|
|
1751
|
-
* // ep.admin.ts
|
|
1752
|
-
* export class AdminEntrypoint extends WorkerEntrypoint {
|
|
1753
|
-
* async getStats() { return { users: 100 } }
|
|
1754
|
-
* }
|
|
1755
|
-
*
|
|
1756
|
-
* // Consumer worker
|
|
1757
|
-
* const stats = await env.ADMIN_SERVICE.getStats()
|
|
1758
|
-
* ```
|
|
1759
|
-
*
|
|
1760
|
-
* @default `**/ep.*.{ts,js}` (recursive)
|
|
1761
|
-
* @example `**/ep.*.{ts,js}` — Matches src/ep.admin.ts, lib/ep.auth.ts
|
|
1762
|
-
* @example `src/ep.*.ts` — Legacy single-directory pattern
|
|
1763
|
-
*/
|
|
1764
|
-
entrypoints: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>>;
|
|
1765
|
-
/**
|
|
1766
|
-
* Workflow class discovery glob pattern.
|
|
1767
|
-
* Files matching this pattern are scanned for Workflow classes.
|
|
1768
|
-
* Respects `.gitignore` automatically.
|
|
1769
|
-
*
|
|
1770
|
-
* Workflows enable durable multi-step execution with automatic retries:
|
|
1771
|
-
* ```ts
|
|
1772
|
-
* // wf.order-processor.ts
|
|
1773
|
-
* export class OrderProcessingWorkflow extends Workflow {
|
|
1774
|
-
* async run(event, step) {
|
|
1775
|
-
* const validated = await step.do('validate', () => validate(event.payload))
|
|
1776
|
-
* const charged = await step.do('charge', () => charge(validated))
|
|
1777
|
-
* return { orderId: charged.id }
|
|
1778
|
-
* }
|
|
1779
|
-
* }
|
|
1780
|
-
* ```
|
|
1781
|
-
*
|
|
1782
|
-
* @default `**/wf.*.{ts,js}` (recursive)
|
|
1783
|
-
* @example `**/wf.*.{ts,js}` — Matches src/wf.order.ts, lib/wf.pipeline.ts
|
|
1784
|
-
* @example `src/wf.*.ts` — Legacy single-directory pattern
|
|
1785
|
-
*/
|
|
1786
|
-
workflows: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>>;
|
|
1787
|
-
/**
|
|
1788
|
-
* Built-in file router configuration.
|
|
1789
|
-
* Use this to customize or disable the route tree rooted at `src/routes/**`.
|
|
1790
|
-
*
|
|
1791
|
-
* When omitted, Devflare automatically discovers `src/routes` if that
|
|
1792
|
-
* directory exists.
|
|
1793
|
-
*
|
|
1794
|
-
* When set:
|
|
1795
|
-
* - `dir` changes the route root directory
|
|
1796
|
-
* - `prefix` mounts the route tree under a fixed prefix such as `/api`
|
|
1797
|
-
* - `false` disables route discovery entirely
|
|
1798
|
-
*
|
|
1799
|
-
* Route filename conventions:
|
|
1800
|
-
* ```
|
|
1801
|
-
* src/routes/
|
|
1802
|
-
* ├── index.ts
|
|
1803
|
-
* ├── users/
|
|
1804
|
-
* │ ├── index.ts
|
|
1805
|
-
* │ ├── [id].ts
|
|
1806
|
-
* │ ├── [...slug].ts
|
|
1807
|
-
* │ └── [id]/
|
|
1808
|
-
* │ └── posts.ts
|
|
1809
|
-
* └── api/
|
|
1810
|
-
* └── health.ts
|
|
1811
|
-
* ```
|
|
1812
|
-
*
|
|
1813
|
-
* Files or directories prefixed with `_` are ignored so route-local helpers
|
|
1814
|
-
* can live beside handlers.
|
|
1815
|
-
*/
|
|
1816
|
-
routes: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1817
|
-
/** Directory containing route files (e.g., 'src/routes') */
|
|
1818
|
-
dir: z.ZodString;
|
|
1819
|
-
/**
|
|
1820
|
-
* Optional route prefix (e.g., '/api').
|
|
1821
|
-
* Devflare mounts the discovered route tree under this static pathname prefix.
|
|
1822
|
-
*/
|
|
1823
|
-
prefix: z.ZodOptional<z.ZodString>;
|
|
1824
|
-
}, "strip", z.ZodTypeAny, {
|
|
1825
|
-
dir: string;
|
|
1826
|
-
prefix?: string | undefined;
|
|
1827
|
-
}, {
|
|
1828
|
-
dir: string;
|
|
1829
|
-
prefix?: string | undefined;
|
|
1830
|
-
}>, z.ZodLiteral<false>]>>;
|
|
1831
|
-
/**
|
|
1832
|
-
* Transport file for custom RPC serialization.
|
|
1833
|
-
* When omitted, Devflare auto-discovers `src/transport.{ts,js,mts,mjs}` if
|
|
1834
|
-
* one of those files exists.
|
|
1835
|
-
*
|
|
1836
|
-
* Set this to `null` to disable transport autodiscovery explicitly.
|
|
1837
|
-
*
|
|
1838
|
-
* Today this is primarily used by the test/bridge serialization path.
|
|
1839
|
-
*
|
|
1840
|
-
* The file must export a named `transport` object.
|
|
1841
|
-
* @example 'src/transport.ts'
|
|
1842
|
-
*/
|
|
1843
|
-
transport: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
1844
|
-
}, "strip", z.ZodTypeAny, {
|
|
1845
|
-
fetch?: string | false | undefined;
|
|
1846
|
-
queue?: string | false | undefined;
|
|
1847
|
-
scheduled?: string | false | undefined;
|
|
1848
|
-
email?: string | false | undefined;
|
|
1849
|
-
durableObjects?: string | false | undefined;
|
|
1850
|
-
entrypoints?: string | false | undefined;
|
|
1851
|
-
workflows?: string | false | undefined;
|
|
1852
|
-
routes?: false | {
|
|
1853
|
-
dir: string;
|
|
1854
|
-
prefix?: string | undefined;
|
|
1855
|
-
} | undefined;
|
|
1856
|
-
transport?: string | null | undefined;
|
|
1857
|
-
}, {
|
|
1858
|
-
fetch?: string | false | undefined;
|
|
1859
|
-
queue?: string | false | undefined;
|
|
1860
|
-
scheduled?: string | false | undefined;
|
|
1861
|
-
email?: string | false | undefined;
|
|
1862
|
-
durableObjects?: string | false | undefined;
|
|
1863
|
-
entrypoints?: string | false | undefined;
|
|
1864
|
-
workflows?: string | false | undefined;
|
|
1865
|
-
routes?: false | {
|
|
1866
|
-
dir: string;
|
|
1867
|
-
prefix?: string | undefined;
|
|
1868
|
-
} | undefined;
|
|
1869
|
-
transport?: string | null | undefined;
|
|
1870
|
-
}>>;
|
|
1871
|
-
/**
|
|
1872
|
-
* Bindings to Cloudflare services.
|
|
1873
|
-
* KV, D1, R2, Durable Objects, Queues, Services, and more.
|
|
1874
|
-
*/
|
|
1875
|
-
bindings: z.ZodOptional<z.ZodObject<{
|
|
1876
|
-
/**
|
|
1877
|
-
* KV Namespace bindings.
|
|
1878
|
-
* Maps binding name to KV namespace ID.
|
|
1879
|
-
* @example { CACHE: 'cache-kv-namespace-id' }
|
|
1880
|
-
*/
|
|
1881
|
-
kv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1882
|
-
/**
|
|
1883
|
-
* D1 Database bindings.
|
|
1884
|
-
* Maps binding name to either a D1 database ID or a name-based resolver.
|
|
1885
|
-
* @example { DB: 'main-database-id' }
|
|
1886
|
-
* @example { DB: { name: 'main-database' } }
|
|
1887
|
-
*/
|
|
1888
|
-
d1: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1889
|
-
/** Explicit D1 database ID */
|
|
1890
|
-
id: z.ZodString;
|
|
1891
|
-
}, "strict", z.ZodTypeAny, {
|
|
1892
|
-
id: string;
|
|
1893
|
-
}, {
|
|
1894
|
-
id: string;
|
|
1895
|
-
}>, z.ZodObject<{
|
|
1896
|
-
/** Stable D1 database name to resolve to an ID at config/build/deploy time */
|
|
1897
|
-
name: z.ZodString;
|
|
1898
|
-
}, "strict", z.ZodTypeAny, {
|
|
1899
|
-
name: string;
|
|
1900
|
-
}, {
|
|
1901
|
-
name: string;
|
|
1902
|
-
}>]>>>;
|
|
1903
|
-
/**
|
|
1904
|
-
* R2 Bucket bindings.
|
|
1905
|
-
* Maps binding name to R2 bucket name.
|
|
1906
|
-
* @example { IMAGES: 'images-bucket' }
|
|
1907
|
-
*/
|
|
1908
|
-
r2: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1909
|
-
/**
|
|
1910
|
-
* Durable Object bindings.
|
|
1911
|
-
* Maps binding name to DO class configuration.
|
|
1912
|
-
* @example { COUNTER: 'Counter' } or { COUNTER: { className: 'Counter' } }
|
|
1913
|
-
*/
|
|
1914
|
-
durableObjects: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<DurableObjectBindingInput, z.ZodTypeDef, DurableObjectBindingInput>>>;
|
|
1915
|
-
/**
|
|
1916
|
-
* Queue bindings for producers and consumers.
|
|
1917
|
-
*/
|
|
1918
|
-
queues: z.ZodOptional<z.ZodObject<{
|
|
1919
|
-
/**
|
|
1920
|
-
* Queue producer bindings.
|
|
1921
|
-
* Maps binding name to queue name.
|
|
1922
|
-
* @example { TASK_QUEUE: 'task-queue' }
|
|
1923
|
-
*/
|
|
1924
|
-
producers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1925
|
-
/**
|
|
1926
|
-
* Queue consumer configurations.
|
|
1927
|
-
* Array of consumer configs for processing queue messages.
|
|
1928
|
-
*/
|
|
1929
|
-
consumers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1930
|
-
/** Queue name to consume from */
|
|
1931
|
-
queue: z.ZodString;
|
|
1932
|
-
/**
|
|
1933
|
-
* Maximum messages per batch (1-100).
|
|
1934
|
-
* @default 10
|
|
1935
|
-
*/
|
|
1936
|
-
maxBatchSize: z.ZodOptional<z.ZodNumber>;
|
|
1937
|
-
/**
|
|
1938
|
-
* Maximum seconds to wait for a full batch.
|
|
1939
|
-
* @default 5
|
|
1940
|
-
*/
|
|
1941
|
-
maxBatchTimeout: z.ZodOptional<z.ZodNumber>;
|
|
1942
|
-
/**
|
|
1943
|
-
* Maximum retry attempts for failed messages.
|
|
1944
|
-
* @default 3
|
|
1945
|
-
*/
|
|
1946
|
-
maxRetries: z.ZodOptional<z.ZodNumber>;
|
|
1947
|
-
/** Queue name to send failed messages after max retries */
|
|
1948
|
-
deadLetterQueue: z.ZodOptional<z.ZodString>;
|
|
1949
|
-
/** Maximum concurrent batch invocations */
|
|
1950
|
-
maxConcurrency: z.ZodOptional<z.ZodNumber>;
|
|
1951
|
-
/** Delay in seconds between retries */
|
|
1952
|
-
retryDelay: z.ZodOptional<z.ZodNumber>;
|
|
1953
|
-
}, "strip", z.ZodTypeAny, {
|
|
1954
|
-
queue: string;
|
|
1955
|
-
maxBatchSize?: number | undefined;
|
|
1956
|
-
maxBatchTimeout?: number | undefined;
|
|
1957
|
-
maxRetries?: number | undefined;
|
|
1958
|
-
deadLetterQueue?: string | undefined;
|
|
1959
|
-
maxConcurrency?: number | undefined;
|
|
1960
|
-
retryDelay?: number | undefined;
|
|
1961
|
-
}, {
|
|
1962
|
-
queue: string;
|
|
1963
|
-
maxBatchSize?: number | undefined;
|
|
1964
|
-
maxBatchTimeout?: number | undefined;
|
|
1965
|
-
maxRetries?: number | undefined;
|
|
1966
|
-
deadLetterQueue?: string | undefined;
|
|
1967
|
-
maxConcurrency?: number | undefined;
|
|
1968
|
-
retryDelay?: number | undefined;
|
|
1969
|
-
}>, "many">>;
|
|
1970
|
-
}, "strip", z.ZodTypeAny, {
|
|
1971
|
-
producers?: Record<string, string> | undefined;
|
|
1972
|
-
consumers?: {
|
|
1973
|
-
queue: string;
|
|
1974
|
-
maxBatchSize?: number | undefined;
|
|
1975
|
-
maxBatchTimeout?: number | undefined;
|
|
1976
|
-
maxRetries?: number | undefined;
|
|
1977
|
-
deadLetterQueue?: string | undefined;
|
|
1978
|
-
maxConcurrency?: number | undefined;
|
|
1979
|
-
retryDelay?: number | undefined;
|
|
1980
|
-
}[] | undefined;
|
|
1981
|
-
}, {
|
|
1982
|
-
producers?: Record<string, string> | undefined;
|
|
1983
|
-
consumers?: {
|
|
1984
|
-
queue: string;
|
|
1985
|
-
maxBatchSize?: number | undefined;
|
|
1986
|
-
maxBatchTimeout?: number | undefined;
|
|
1987
|
-
maxRetries?: number | undefined;
|
|
1988
|
-
deadLetterQueue?: string | undefined;
|
|
1989
|
-
maxConcurrency?: number | undefined;
|
|
1990
|
-
retryDelay?: number | undefined;
|
|
1991
|
-
}[] | undefined;
|
|
1992
|
-
}>>;
|
|
1993
|
-
/**
|
|
1994
|
-
* Service bindings to other Workers.
|
|
1995
|
-
* Enables RPC-style communication between workers.
|
|
1996
|
-
* @example { MATH: mathWorker.worker }
|
|
1997
|
-
*/
|
|
1998
|
-
services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<{
|
|
1999
|
-
/** Target worker/service name */
|
|
2000
|
-
service: string;
|
|
2001
|
-
/** Optional environment (staging, production, etc.) */
|
|
2002
|
-
environment?: string | undefined;
|
|
2003
|
-
/** Optional entrypoint class name for named exports */
|
|
2004
|
-
entrypoint?: string | undefined;
|
|
2005
|
-
/** @internal Reference marker for ref() bindings */
|
|
2006
|
-
__ref?: unknown;
|
|
2007
|
-
}, z.ZodTypeDef, {
|
|
2008
|
-
/** Target worker/service name */
|
|
2009
|
-
service: string;
|
|
2010
|
-
/** Optional environment (staging, production, etc.) */
|
|
2011
|
-
environment?: string | undefined;
|
|
2012
|
-
/** Optional entrypoint class name for named exports */
|
|
2013
|
-
entrypoint?: string | undefined;
|
|
2014
|
-
/** @internal Reference marker for ref() bindings */
|
|
2015
|
-
__ref?: unknown;
|
|
2016
|
-
}>>>;
|
|
2017
|
-
/**
|
|
2018
|
-
* Workers AI binding for ML inference.
|
|
2019
|
-
* @example { binding: 'AI' }
|
|
2020
|
-
*/
|
|
2021
|
-
ai: z.ZodOptional<z.ZodObject<{
|
|
2022
|
-
/** Binding name exposed in env (e.g., 'AI') */
|
|
2023
|
-
binding: z.ZodString;
|
|
2024
|
-
}, "strip", z.ZodTypeAny, {
|
|
2025
|
-
binding: string;
|
|
2026
|
-
}, {
|
|
2027
|
-
binding: string;
|
|
2028
|
-
}>>;
|
|
2029
|
-
/**
|
|
2030
|
-
* Vectorize index bindings for vector similarity search.
|
|
2031
|
-
* @example { EMBEDDINGS: { indexName: 'my-index' } }
|
|
2032
|
-
*/
|
|
2033
|
-
vectorize: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2034
|
-
/** Name of the Vectorize index */
|
|
2035
|
-
indexName: z.ZodString;
|
|
2036
|
-
}, "strip", z.ZodTypeAny, {
|
|
2037
|
-
indexName: string;
|
|
2038
|
-
}, {
|
|
2039
|
-
indexName: string;
|
|
2040
|
-
}>>>;
|
|
2041
|
-
/**
|
|
2042
|
-
* Hyperdrive bindings for accelerated PostgreSQL.
|
|
2043
|
-
* @example { DB: { id: 'hyperdrive-config-id' } }
|
|
2044
|
-
*/
|
|
2045
|
-
hyperdrive: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2046
|
-
/** Hyperdrive configuration ID */
|
|
2047
|
-
id: z.ZodString;
|
|
2048
|
-
}, "strip", z.ZodTypeAny, {
|
|
2049
|
-
id: string;
|
|
2050
|
-
}, {
|
|
2051
|
-
id: string;
|
|
2052
|
-
}>>>;
|
|
2053
|
-
/**
|
|
2054
|
-
* Browser Rendering binding for headless browser access.
|
|
2055
|
-
* @example { binding: 'BROWSER' }
|
|
2056
|
-
*/
|
|
2057
|
-
browser: z.ZodOptional<z.ZodObject<{
|
|
2058
|
-
/** Binding name exposed in env (e.g., 'BROWSER') */
|
|
2059
|
-
binding: z.ZodString;
|
|
2060
|
-
}, "strip", z.ZodTypeAny, {
|
|
2061
|
-
binding: string;
|
|
2062
|
-
}, {
|
|
2063
|
-
binding: string;
|
|
2064
|
-
}>>;
|
|
2065
|
-
/**
|
|
2066
|
-
* Analytics Engine bindings for event logging.
|
|
2067
|
-
* @example { ANALYTICS: { dataset: 'my-dataset' } }
|
|
2068
|
-
*/
|
|
2069
|
-
analyticsEngine: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2070
|
-
/** Analytics Engine dataset name */
|
|
2071
|
-
dataset: z.ZodString;
|
|
2072
|
-
}, "strip", z.ZodTypeAny, {
|
|
2073
|
-
dataset: string;
|
|
2074
|
-
}, {
|
|
2075
|
-
dataset: string;
|
|
2076
|
-
}>>>;
|
|
2077
|
-
/**
|
|
2078
|
-
* Email sending bindings.
|
|
2079
|
-
* @example { EMAIL: { destinationAddress: 'admin@example.com' } }
|
|
2080
|
-
* @example { BULK_EMAIL: { allowedDestinationAddresses: ['ops@example.com'], allowedSenderAddresses: ['noreply@example.com'] } }
|
|
2081
|
-
*/
|
|
2082
|
-
sendEmail: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
2083
|
-
/** Restrict this binding to a specific verified destination address */
|
|
2084
|
-
destinationAddress: z.ZodOptional<z.ZodString>;
|
|
2085
|
-
/** Restrict this binding to a set of verified destination addresses */
|
|
2086
|
-
allowedDestinationAddresses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2087
|
-
/** Restrict this binding to a set of verified sender addresses */
|
|
2088
|
-
allowedSenderAddresses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2089
|
-
}, "strip", z.ZodTypeAny, {
|
|
2090
|
-
destinationAddress?: string | undefined;
|
|
2091
|
-
allowedDestinationAddresses?: string[] | undefined;
|
|
2092
|
-
allowedSenderAddresses?: string[] | undefined;
|
|
2093
|
-
}, {
|
|
2094
|
-
destinationAddress?: string | undefined;
|
|
2095
|
-
allowedDestinationAddresses?: string[] | undefined;
|
|
2096
|
-
allowedSenderAddresses?: string[] | undefined;
|
|
2097
|
-
}>, {
|
|
2098
|
-
destinationAddress?: string | undefined;
|
|
2099
|
-
allowedDestinationAddresses?: string[] | undefined;
|
|
2100
|
-
allowedSenderAddresses?: string[] | undefined;
|
|
2101
|
-
}, {
|
|
2102
|
-
destinationAddress?: string | undefined;
|
|
2103
|
-
allowedDestinationAddresses?: string[] | undefined;
|
|
2104
|
-
allowedSenderAddresses?: string[] | undefined;
|
|
2105
|
-
}>>>;
|
|
2106
|
-
}, "strip", z.ZodTypeAny, {
|
|
2107
|
-
kv?: Record<string, string> | undefined;
|
|
2108
|
-
d1?: Record<string, string | {
|
|
2109
|
-
id: string;
|
|
2110
|
-
} | {
|
|
2111
|
-
name: string;
|
|
2112
|
-
}> | undefined;
|
|
2113
|
-
r2?: Record<string, string> | undefined;
|
|
2114
|
-
durableObjects?: Record<string, DurableObjectBindingInput> | undefined;
|
|
2115
|
-
queues?: {
|
|
2116
|
-
producers?: Record<string, string> | undefined;
|
|
2117
|
-
consumers?: {
|
|
2118
|
-
queue: string;
|
|
2119
|
-
maxBatchSize?: number | undefined;
|
|
2120
|
-
maxBatchTimeout?: number | undefined;
|
|
2121
|
-
maxRetries?: number | undefined;
|
|
2122
|
-
deadLetterQueue?: string | undefined;
|
|
2123
|
-
maxConcurrency?: number | undefined;
|
|
2124
|
-
retryDelay?: number | undefined;
|
|
2125
|
-
}[] | undefined;
|
|
2126
|
-
} | undefined;
|
|
2127
|
-
services?: Record<string, {
|
|
2128
|
-
/** Target worker/service name */
|
|
2129
|
-
service: string;
|
|
2130
|
-
/** Optional environment (staging, production, etc.) */
|
|
2131
|
-
environment?: string | undefined;
|
|
2132
|
-
/** Optional entrypoint class name for named exports */
|
|
2133
|
-
entrypoint?: string | undefined;
|
|
2134
|
-
/** @internal Reference marker for ref() bindings */
|
|
2135
|
-
__ref?: unknown;
|
|
2136
|
-
}> | undefined;
|
|
2137
|
-
ai?: {
|
|
2138
|
-
binding: string;
|
|
2139
|
-
} | undefined;
|
|
2140
|
-
vectorize?: Record<string, {
|
|
2141
|
-
indexName: string;
|
|
2142
|
-
}> | undefined;
|
|
2143
|
-
hyperdrive?: Record<string, {
|
|
2144
|
-
id: string;
|
|
2145
|
-
}> | undefined;
|
|
2146
|
-
browser?: {
|
|
2147
|
-
binding: string;
|
|
2148
|
-
} | undefined;
|
|
2149
|
-
analyticsEngine?: Record<string, {
|
|
2150
|
-
dataset: string;
|
|
2151
|
-
}> | undefined;
|
|
2152
|
-
sendEmail?: Record<string, {
|
|
2153
|
-
destinationAddress?: string | undefined;
|
|
2154
|
-
allowedDestinationAddresses?: string[] | undefined;
|
|
2155
|
-
allowedSenderAddresses?: string[] | undefined;
|
|
2156
|
-
}> | undefined;
|
|
2157
|
-
}, {
|
|
2158
|
-
kv?: Record<string, string> | undefined;
|
|
2159
|
-
d1?: Record<string, string | {
|
|
2160
|
-
id: string;
|
|
2161
|
-
} | {
|
|
2162
|
-
name: string;
|
|
2163
|
-
}> | undefined;
|
|
2164
|
-
r2?: Record<string, string> | undefined;
|
|
2165
|
-
durableObjects?: Record<string, DurableObjectBindingInput> | undefined;
|
|
2166
|
-
queues?: {
|
|
2167
|
-
producers?: Record<string, string> | undefined;
|
|
2168
|
-
consumers?: {
|
|
2169
|
-
queue: string;
|
|
2170
|
-
maxBatchSize?: number | undefined;
|
|
2171
|
-
maxBatchTimeout?: number | undefined;
|
|
2172
|
-
maxRetries?: number | undefined;
|
|
2173
|
-
deadLetterQueue?: string | undefined;
|
|
2174
|
-
maxConcurrency?: number | undefined;
|
|
2175
|
-
retryDelay?: number | undefined;
|
|
2176
|
-
}[] | undefined;
|
|
2177
|
-
} | undefined;
|
|
2178
|
-
services?: Record<string, {
|
|
2179
|
-
/** Target worker/service name */
|
|
2180
|
-
service: string;
|
|
2181
|
-
/** Optional environment (staging, production, etc.) */
|
|
2182
|
-
environment?: string | undefined;
|
|
2183
|
-
/** Optional entrypoint class name for named exports */
|
|
2184
|
-
entrypoint?: string | undefined;
|
|
2185
|
-
/** @internal Reference marker for ref() bindings */
|
|
2186
|
-
__ref?: unknown;
|
|
2187
|
-
}> | undefined;
|
|
2188
|
-
ai?: {
|
|
2189
|
-
binding: string;
|
|
2190
|
-
} | undefined;
|
|
2191
|
-
vectorize?: Record<string, {
|
|
2192
|
-
indexName: string;
|
|
2193
|
-
}> | undefined;
|
|
2194
|
-
hyperdrive?: Record<string, {
|
|
2195
|
-
id: string;
|
|
2196
|
-
}> | undefined;
|
|
2197
|
-
browser?: {
|
|
2198
|
-
binding: string;
|
|
2199
|
-
} | undefined;
|
|
2200
|
-
analyticsEngine?: Record<string, {
|
|
2201
|
-
dataset: string;
|
|
2202
|
-
}> | undefined;
|
|
2203
|
-
sendEmail?: Record<string, {
|
|
2204
|
-
destinationAddress?: string | undefined;
|
|
2205
|
-
allowedDestinationAddresses?: string[] | undefined;
|
|
2206
|
-
allowedSenderAddresses?: string[] | undefined;
|
|
2207
|
-
}> | undefined;
|
|
2208
|
-
}>>;
|
|
2209
|
-
/**
|
|
2210
|
-
* Trigger configuration (cron schedules).
|
|
2211
|
-
*/
|
|
2212
|
-
triggers: z.ZodOptional<z.ZodObject<{
|
|
2213
|
-
/**
|
|
2214
|
-
* Array of cron expressions for scheduled execution.
|
|
2215
|
-
*
|
|
2216
|
-
* Examples:
|
|
2217
|
-
* - `'0 0 * * *'` — Daily at midnight
|
|
2218
|
-
* - `'0/5 * * * *'` — Every 5 minutes
|
|
2219
|
-
* - `'0 9 * * 1'` — Every Monday at 9am
|
|
2220
|
-
*/
|
|
2221
|
-
crons: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2222
|
-
}, "strip", z.ZodTypeAny, {
|
|
2223
|
-
crons?: string[] | undefined;
|
|
2224
|
-
}, {
|
|
2225
|
-
crons?: string[] | undefined;
|
|
2226
|
-
}>>;
|
|
2227
|
-
/**
|
|
2228
|
-
* Environment variables.
|
|
2229
|
-
* Exposed via env.VAR_NAME in the worker.
|
|
2230
|
-
*/
|
|
2231
|
-
vars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2232
|
-
/**
|
|
2233
|
-
* Secret declarations.
|
|
2234
|
-
* Use this to declare expected runtime secret bindings and validation rules.
|
|
2235
|
-
* Secret values are supplied by Wrangler/Cloudflare runtime configuration.
|
|
2236
|
-
*/
|
|
2237
|
-
secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2238
|
-
/**
|
|
2239
|
-
* Whether this secret is required for the worker to run.
|
|
2240
|
-
* If true, worker will fail to start if secret is missing.
|
|
2241
|
-
* @default true
|
|
2242
|
-
*/
|
|
2243
|
-
required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2244
|
-
}, "strip", z.ZodTypeAny, {
|
|
2245
|
-
required: boolean;
|
|
2246
|
-
}, {
|
|
2247
|
-
required?: boolean | undefined;
|
|
2248
|
-
}>>>;
|
|
2249
|
-
/**
|
|
2250
|
-
* Deployment routes.
|
|
2251
|
-
* URL patterns that trigger this worker.
|
|
2252
|
-
*/
|
|
2253
|
-
routes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2254
|
-
/**
|
|
2255
|
-
* URL pattern to match (e.g., 'example.com/*').
|
|
2256
|
-
* Supports wildcards (*) for path matching.
|
|
2257
|
-
*/
|
|
2258
|
-
pattern: z.ZodString;
|
|
2259
|
-
/** Zone name to associate the route with */
|
|
2260
|
-
zone_name: z.ZodOptional<z.ZodString>;
|
|
2261
|
-
/** Zone ID to associate the route with (alternative to zone_name) */
|
|
2262
|
-
zone_id: z.ZodOptional<z.ZodString>;
|
|
2263
|
-
/** Whether this is a custom domain route */
|
|
2264
|
-
custom_domain: z.ZodOptional<z.ZodBoolean>;
|
|
2265
|
-
}, "strip", z.ZodTypeAny, {
|
|
2266
|
-
pattern: string;
|
|
2267
|
-
zone_name?: string | undefined;
|
|
2268
|
-
zone_id?: string | undefined;
|
|
2269
|
-
custom_domain?: boolean | undefined;
|
|
2270
|
-
}, {
|
|
2271
|
-
pattern: string;
|
|
2272
|
-
zone_name?: string | undefined;
|
|
2273
|
-
zone_id?: string | undefined;
|
|
2274
|
-
custom_domain?: boolean | undefined;
|
|
2275
|
-
}>, "many">>;
|
|
2276
|
-
/**
|
|
2277
|
-
* WebSocket routes for dev mode DO proxying.
|
|
2278
|
-
* Enables WebSocket connections to Durable Objects locally.
|
|
2279
|
-
*/
|
|
2280
|
-
wsRoutes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2281
|
-
/**
|
|
2282
|
-
* URL pattern to match for WebSocket upgrade requests.
|
|
2283
|
-
* @example '/chat/api'
|
|
2284
|
-
*/
|
|
2285
|
-
pattern: z.ZodString;
|
|
2286
|
-
/**
|
|
2287
|
-
* Durable Object namespace binding name to route to.
|
|
2288
|
-
* Must match a binding name in bindings.durableObjects.
|
|
2289
|
-
*/
|
|
2290
|
-
doNamespace: z.ZodString;
|
|
2291
|
-
/**
|
|
2292
|
-
* Query parameter name used to identify DO instances.
|
|
2293
|
-
* @default 'id'
|
|
2294
|
-
* @example `/chat/api?roomId=room123`
|
|
2295
|
-
*/
|
|
2296
|
-
idParam: z.ZodDefault<z.ZodString>;
|
|
2297
|
-
/**
|
|
2298
|
-
* Path to forward within the Durable Object.
|
|
2299
|
-
* @default '/websocket'
|
|
2300
|
-
*/
|
|
2301
|
-
forwardPath: z.ZodDefault<z.ZodString>;
|
|
2302
|
-
}, "strip", z.ZodTypeAny, {
|
|
2303
|
-
pattern: string;
|
|
2304
|
-
doNamespace: string;
|
|
2305
|
-
idParam: string;
|
|
2306
|
-
forwardPath: string;
|
|
2307
|
-
}, {
|
|
2308
|
-
pattern: string;
|
|
2309
|
-
doNamespace: string;
|
|
2310
|
-
idParam?: string | undefined;
|
|
2311
|
-
forwardPath?: string | undefined;
|
|
2312
|
-
}>, "many">>;
|
|
2313
|
-
/**
|
|
2314
|
-
* Static assets configuration.
|
|
2315
|
-
*/
|
|
2316
|
-
assets: z.ZodOptional<z.ZodObject<{
|
|
2317
|
-
/** Directory containing static assets (relative to config file) */
|
|
2318
|
-
directory: z.ZodString;
|
|
2319
|
-
/**
|
|
2320
|
-
* Optional binding name to access assets programmatically.
|
|
2321
|
-
* If provided, assets can be fetched via env[binding].fetch()
|
|
2322
|
-
*/
|
|
2323
|
-
binding: z.ZodOptional<z.ZodString>;
|
|
2324
|
-
}, "strip", z.ZodTypeAny, {
|
|
2325
|
-
directory: string;
|
|
2326
|
-
binding?: string | undefined;
|
|
2327
|
-
}, {
|
|
2328
|
-
directory: string;
|
|
2329
|
-
binding?: string | undefined;
|
|
2330
|
-
}>>;
|
|
2331
|
-
/**
|
|
2332
|
-
* Resource limits (CPU time).
|
|
2333
|
-
*/
|
|
2334
|
-
limits: z.ZodOptional<z.ZodObject<{
|
|
2335
|
-
/**
|
|
2336
|
-
* Maximum CPU time in milliseconds.
|
|
2337
|
-
* Only applicable to Workers with Usage Model set to Unbound.
|
|
2338
|
-
*/
|
|
2339
|
-
cpu_ms: z.ZodOptional<z.ZodNumber>;
|
|
2340
|
-
}, "strip", z.ZodTypeAny, {
|
|
2341
|
-
cpu_ms?: number | undefined;
|
|
2342
|
-
}, {
|
|
2343
|
-
cpu_ms?: number | undefined;
|
|
2344
|
-
}>>;
|
|
2345
|
-
/**
|
|
2346
|
-
* Observability settings (logging, tracing).
|
|
2347
|
-
*/
|
|
2348
|
-
observability: z.ZodOptional<z.ZodObject<{
|
|
2349
|
-
/** Enable Worker Logs */
|
|
2350
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
2351
|
-
/**
|
|
2352
|
-
* Head sampling rate for logs (0-1).
|
|
2353
|
-
* 1.0 = log all requests, 0.1 = log 10% of requests.
|
|
2354
|
-
*/
|
|
2355
|
-
head_sampling_rate: z.ZodOptional<z.ZodNumber>;
|
|
2356
|
-
}, "strip", z.ZodTypeAny, {
|
|
2357
|
-
enabled?: boolean | undefined;
|
|
2358
|
-
head_sampling_rate?: number | undefined;
|
|
2359
|
-
}, {
|
|
2360
|
-
enabled?: boolean | undefined;
|
|
2361
|
-
head_sampling_rate?: number | undefined;
|
|
2362
|
-
}>>;
|
|
2363
|
-
/**
|
|
2364
|
-
* Durable Object migrations.
|
|
2365
|
-
* Required when changing DO class names or storage backends.
|
|
2366
|
-
*/
|
|
2367
|
-
migrations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2368
|
-
/**
|
|
2369
|
-
* Migration tag (version identifier).
|
|
2370
|
-
* Must be unique and in chronological order.
|
|
2371
|
-
* @example 'v1', 'v2'
|
|
2372
|
-
*/
|
|
2373
|
-
tag: z.ZodString;
|
|
2374
|
-
/**
|
|
2375
|
-
* New DO classes introduced in this migration.
|
|
2376
|
-
* Classes that didn't exist before.
|
|
2377
|
-
*/
|
|
2378
|
-
new_classes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2379
|
-
/**
|
|
2380
|
-
* Classes being renamed.
|
|
2381
|
-
* State is preserved during rename.
|
|
2382
|
-
*/
|
|
2383
|
-
renamed_classes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2384
|
-
from: z.ZodString;
|
|
2385
|
-
to: z.ZodString;
|
|
2386
|
-
}, "strip", z.ZodTypeAny, {
|
|
2387
|
-
from: string;
|
|
2388
|
-
to: string;
|
|
2389
|
-
}, {
|
|
2390
|
-
from: string;
|
|
2391
|
-
to: string;
|
|
2392
|
-
}>, "many">>;
|
|
2393
|
-
/**
|
|
2394
|
-
* Classes being deleted.
|
|
2395
|
-
* ⚠️ All state in these classes will be lost!
|
|
2396
|
-
*/
|
|
2397
|
-
deleted_classes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2398
|
-
/**
|
|
2399
|
-
* Classes migrating to SQLite storage backend.
|
|
2400
|
-
* Enables SQL API for these DO classes.
|
|
2401
|
-
*/
|
|
2402
|
-
new_sqlite_classes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2403
|
-
}, "strip", z.ZodTypeAny, {
|
|
2404
|
-
tag: string;
|
|
2405
|
-
new_classes?: string[] | undefined;
|
|
2406
|
-
renamed_classes?: {
|
|
2407
|
-
from: string;
|
|
2408
|
-
to: string;
|
|
2409
|
-
}[] | undefined;
|
|
2410
|
-
deleted_classes?: string[] | undefined;
|
|
2411
|
-
new_sqlite_classes?: string[] | undefined;
|
|
2412
|
-
}, {
|
|
2413
|
-
tag: string;
|
|
2414
|
-
new_classes?: string[] | undefined;
|
|
2415
|
-
renamed_classes?: {
|
|
2416
|
-
from: string;
|
|
2417
|
-
to: string;
|
|
2418
|
-
}[] | undefined;
|
|
2419
|
-
deleted_classes?: string[] | undefined;
|
|
2420
|
-
new_sqlite_classes?: string[] | undefined;
|
|
2421
|
-
}>, "many">>;
|
|
2422
|
-
/**
|
|
2423
|
-
* Rolldown configuration for Durable Object bundling.
|
|
2424
|
-
*/
|
|
2425
|
-
rolldown: z.ZodOptional<z.ZodObject<{
|
|
2426
|
-
/**
|
|
2427
|
-
* Bundle target environment.
|
|
2428
|
-
* @example 'es2022'
|
|
2429
|
-
*/
|
|
2430
|
-
target: z.ZodOptional<z.ZodString>;
|
|
2431
|
-
/** Enable minification for emitted DO bundles */
|
|
2432
|
-
minify: z.ZodOptional<z.ZodBoolean>;
|
|
2433
|
-
/** Generate source maps for emitted DO bundles */
|
|
2434
|
-
sourcemap: z.ZodOptional<z.ZodBoolean>;
|
|
2435
|
-
/**
|
|
2436
|
-
* Additional raw Rolldown options.
|
|
2437
|
-
* @see https://rolldown.rs/
|
|
2438
|
-
*/
|
|
2439
|
-
options: z.ZodOptional<z.ZodType<DevflareRolldownOptions, z.ZodTypeDef, DevflareRolldownOptions>>;
|
|
2440
|
-
}, "strip", z.ZodTypeAny, {
|
|
2441
|
-
target?: string | undefined;
|
|
2442
|
-
minify?: boolean | undefined;
|
|
2443
|
-
sourcemap?: boolean | undefined;
|
|
2444
|
-
options?: DevflareRolldownOptions | undefined;
|
|
2445
|
-
}, {
|
|
2446
|
-
target?: string | undefined;
|
|
2447
|
-
minify?: boolean | undefined;
|
|
2448
|
-
sourcemap?: boolean | undefined;
|
|
2449
|
-
options?: DevflareRolldownOptions | undefined;
|
|
2450
|
-
}>>;
|
|
2451
|
-
/**
|
|
2452
|
-
* Vite-related configuration namespace.
|
|
2453
|
-
* Use `vite.config.*` for raw Vite config, and this field for Devflare-level
|
|
2454
|
-
* Vite-side metadata and extension points.
|
|
2455
|
-
*/
|
|
2456
|
-
vite: z.ZodOptional<z.ZodObject<{
|
|
2457
|
-
/**
|
|
2458
|
-
* Devflare-level Vite plugin metadata sourced from devflare.config.ts.
|
|
2459
|
-
* Raw Vite plugin wiring still belongs in `vite.config.*`.
|
|
2460
|
-
*/
|
|
2461
|
-
plugins: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
2462
|
-
}, "strip", z.ZodUnknown, z.objectOutputType<{
|
|
2463
|
-
/**
|
|
2464
|
-
* Devflare-level Vite plugin metadata sourced from devflare.config.ts.
|
|
2465
|
-
* Raw Vite plugin wiring still belongs in `vite.config.*`.
|
|
2466
|
-
*/
|
|
2467
|
-
plugins: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
2468
|
-
}, z.ZodUnknown, "strip">, z.objectInputType<{
|
|
2469
|
-
/**
|
|
2470
|
-
* Devflare-level Vite plugin metadata sourced from devflare.config.ts.
|
|
2471
|
-
* Raw Vite plugin wiring still belongs in `vite.config.*`.
|
|
2472
|
-
*/
|
|
2473
|
-
plugins: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
2474
|
-
}, z.ZodUnknown, "strip">>>;
|
|
2475
|
-
/**
|
|
2476
|
-
* Environment-specific configuration overrides.
|
|
2477
|
-
* @example { staging: { vars: { DEBUG: 'true' } } }
|
|
2478
|
-
*/
|
|
2479
|
-
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
2480
|
-
name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2481
|
-
compatibilityDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2482
|
-
compatibilityFlags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
2483
|
-
files: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
2484
|
-
/**
|
|
2485
|
-
* Main fetch handler file path.
|
|
2486
|
-
* This handles HTTP requests to your worker.
|
|
2487
|
-
* @default 'src/fetch.{ts,js}'
|
|
2488
|
-
* @example 'src/fetch.ts'
|
|
2489
|
-
*/
|
|
2490
|
-
fetch: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>>;
|
|
2491
|
-
/**
|
|
2492
|
-
* Queue consumer handler file path.
|
|
2493
|
-
* Handles messages from Cloudflare Queues.
|
|
2494
|
-
* @default 'src/queue.ts'
|
|
2495
|
-
* @example 'src/queue.ts'
|
|
2496
|
-
*/
|
|
2497
|
-
queue: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>>;
|
|
2498
|
-
/**
|
|
2499
|
-
* Scheduled (cron) handler file path.
|
|
2500
|
-
* Handles cron trigger invocations.
|
|
2501
|
-
* @default 'src/scheduled.ts'
|
|
2502
|
-
* @example 'src/scheduled.ts'
|
|
2503
|
-
*/
|
|
2504
|
-
scheduled: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>>;
|
|
2505
|
-
/**
|
|
2506
|
-
* Email handler file path.
|
|
2507
|
-
* Handles incoming emails via Email Routing.
|
|
2508
|
-
* @default 'src/email.ts'
|
|
2509
|
-
* @example 'src/email.ts'
|
|
2510
|
-
*/
|
|
2511
|
-
email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>>;
|
|
2512
|
-
/**
|
|
2513
|
-
* Durable Object class discovery glob pattern.
|
|
2514
|
-
* Files matching this pattern are scanned for DO classes.
|
|
2515
|
-
* Respects `.gitignore` automatically.
|
|
2516
|
-
*
|
|
2517
|
-
* @default `**/do.*.{ts,js}` (recursive)
|
|
2518
|
-
* @example `**/do.*.{ts,js}` — Matches src/do.counter.ts, lib/do.chat.ts
|
|
2519
|
-
* @example `src/do.*.ts` — Legacy single-directory pattern
|
|
2520
|
-
*/
|
|
2521
|
-
durableObjects: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>>;
|
|
2522
|
-
/**
|
|
2523
|
-
* WorkerEntrypoint class discovery glob pattern.
|
|
2524
|
-
* Files matching this pattern are scanned for named entrypoint classes.
|
|
2525
|
-
* Respects `.gitignore` automatically.
|
|
2526
|
-
*
|
|
2527
|
-
* Entrypoints enable typed cross-worker RPC via service bindings:
|
|
2528
|
-
* ```ts
|
|
2529
|
-
* // ep.admin.ts
|
|
2530
|
-
* export class AdminEntrypoint extends WorkerEntrypoint {
|
|
2531
|
-
* async getStats() { return { users: 100 } }
|
|
2532
|
-
* }
|
|
2533
|
-
*
|
|
2534
|
-
* // Consumer worker
|
|
2535
|
-
* const stats = await env.ADMIN_SERVICE.getStats()
|
|
2536
|
-
* ```
|
|
2537
|
-
*
|
|
2538
|
-
* @default `**/ep.*.{ts,js}` (recursive)
|
|
2539
|
-
* @example `**/ep.*.{ts,js}` — Matches src/ep.admin.ts, lib/ep.auth.ts
|
|
2540
|
-
* @example `src/ep.*.ts` — Legacy single-directory pattern
|
|
2541
|
-
*/
|
|
2542
|
-
entrypoints: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>>;
|
|
2543
|
-
/**
|
|
2544
|
-
* Workflow class discovery glob pattern.
|
|
2545
|
-
* Files matching this pattern are scanned for Workflow classes.
|
|
2546
|
-
* Respects `.gitignore` automatically.
|
|
2547
|
-
*
|
|
2548
|
-
* Workflows enable durable multi-step execution with automatic retries:
|
|
2549
|
-
* ```ts
|
|
2550
|
-
* // wf.order-processor.ts
|
|
2551
|
-
* export class OrderProcessingWorkflow extends Workflow {
|
|
2552
|
-
* async run(event, step) {
|
|
2553
|
-
* const validated = await step.do('validate', () => validate(event.payload))
|
|
2554
|
-
* const charged = await step.do('charge', () => charge(validated))
|
|
2555
|
-
* return { orderId: charged.id }
|
|
2556
|
-
* }
|
|
2557
|
-
* }
|
|
2558
|
-
* ```
|
|
2559
|
-
*
|
|
2560
|
-
* @default `**/wf.*.{ts,js}` (recursive)
|
|
2561
|
-
* @example `**/wf.*.{ts,js}` — Matches src/wf.order.ts, lib/wf.pipeline.ts
|
|
2562
|
-
* @example `src/wf.*.ts` — Legacy single-directory pattern
|
|
2563
|
-
*/
|
|
2564
|
-
workflows: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>>;
|
|
2565
|
-
/**
|
|
2566
|
-
* Built-in file router configuration.
|
|
2567
|
-
* Use this to customize or disable the route tree rooted at `src/routes/**`.
|
|
2568
|
-
*
|
|
2569
|
-
* When omitted, Devflare automatically discovers `src/routes` if that
|
|
2570
|
-
* directory exists.
|
|
2571
|
-
*
|
|
2572
|
-
* When set:
|
|
2573
|
-
* - `dir` changes the route root directory
|
|
2574
|
-
* - `prefix` mounts the route tree under a fixed prefix such as `/api`
|
|
2575
|
-
* - `false` disables route discovery entirely
|
|
2576
|
-
*
|
|
2577
|
-
* Route filename conventions:
|
|
2578
|
-
* ```
|
|
2579
|
-
* src/routes/
|
|
2580
|
-
* ├── index.ts
|
|
2581
|
-
* ├── users/
|
|
2582
|
-
* │ ├── index.ts
|
|
2583
|
-
* │ ├── [id].ts
|
|
2584
|
-
* │ ├── [...slug].ts
|
|
2585
|
-
* │ └── [id]/
|
|
2586
|
-
* │ └── posts.ts
|
|
2587
|
-
* └── api/
|
|
2588
|
-
* └── health.ts
|
|
2589
|
-
* ```
|
|
2590
|
-
*
|
|
2591
|
-
* Files or directories prefixed with `_` are ignored so route-local helpers
|
|
2592
|
-
* can live beside handlers.
|
|
2593
|
-
*/
|
|
2594
|
-
routes: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
2595
|
-
/** Directory containing route files (e.g., 'src/routes') */
|
|
2596
|
-
dir: z.ZodString;
|
|
2597
|
-
/**
|
|
2598
|
-
* Optional route prefix (e.g., '/api').
|
|
2599
|
-
* Devflare mounts the discovered route tree under this static pathname prefix.
|
|
2600
|
-
*/
|
|
2601
|
-
prefix: z.ZodOptional<z.ZodString>;
|
|
2602
|
-
}, "strip", z.ZodTypeAny, {
|
|
2603
|
-
dir: string;
|
|
2604
|
-
prefix?: string | undefined;
|
|
2605
|
-
}, {
|
|
2606
|
-
dir: string;
|
|
2607
|
-
prefix?: string | undefined;
|
|
2608
|
-
}>, z.ZodLiteral<false>]>>;
|
|
2609
|
-
/**
|
|
2610
|
-
* Transport file for custom RPC serialization.
|
|
2611
|
-
* When omitted, Devflare auto-discovers `src/transport.{ts,js,mts,mjs}` if
|
|
2612
|
-
* one of those files exists.
|
|
2613
|
-
*
|
|
2614
|
-
* Set this to `null` to disable transport autodiscovery explicitly.
|
|
2615
|
-
*
|
|
2616
|
-
* Today this is primarily used by the test/bridge serialization path.
|
|
2617
|
-
*
|
|
2618
|
-
* The file must export a named `transport` object.
|
|
2619
|
-
* @example 'src/transport.ts'
|
|
2620
|
-
*/
|
|
2621
|
-
transport: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
2622
|
-
}, "strip", z.ZodTypeAny, {
|
|
2623
|
-
fetch?: string | false | undefined;
|
|
2624
|
-
queue?: string | false | undefined;
|
|
2625
|
-
scheduled?: string | false | undefined;
|
|
2626
|
-
email?: string | false | undefined;
|
|
2627
|
-
durableObjects?: string | false | undefined;
|
|
2628
|
-
entrypoints?: string | false | undefined;
|
|
2629
|
-
workflows?: string | false | undefined;
|
|
2630
|
-
routes?: false | {
|
|
2631
|
-
dir: string;
|
|
2632
|
-
prefix?: string | undefined;
|
|
2633
|
-
} | undefined;
|
|
2634
|
-
transport?: string | null | undefined;
|
|
2635
|
-
}, {
|
|
2636
|
-
fetch?: string | false | undefined;
|
|
2637
|
-
queue?: string | false | undefined;
|
|
2638
|
-
scheduled?: string | false | undefined;
|
|
2639
|
-
email?: string | false | undefined;
|
|
2640
|
-
durableObjects?: string | false | undefined;
|
|
2641
|
-
entrypoints?: string | false | undefined;
|
|
2642
|
-
workflows?: string | false | undefined;
|
|
2643
|
-
routes?: false | {
|
|
2644
|
-
dir: string;
|
|
2645
|
-
prefix?: string | undefined;
|
|
2646
|
-
} | undefined;
|
|
2647
|
-
transport?: string | null | undefined;
|
|
2648
|
-
}>>>;
|
|
2649
|
-
bindings: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
2650
|
-
/**
|
|
2651
|
-
* KV Namespace bindings.
|
|
2652
|
-
* Maps binding name to KV namespace ID.
|
|
2653
|
-
* @example { CACHE: 'cache-kv-namespace-id' }
|
|
2654
|
-
*/
|
|
2655
|
-
kv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2656
|
-
/**
|
|
2657
|
-
* D1 Database bindings.
|
|
2658
|
-
* Maps binding name to either a D1 database ID or a name-based resolver.
|
|
2659
|
-
* @example { DB: 'main-database-id' }
|
|
2660
|
-
* @example { DB: { name: 'main-database' } }
|
|
2661
|
-
*/
|
|
2662
|
-
d1: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
2663
|
-
/** Explicit D1 database ID */
|
|
2664
|
-
id: z.ZodString;
|
|
2665
|
-
}, "strict", z.ZodTypeAny, {
|
|
2666
|
-
id: string;
|
|
2667
|
-
}, {
|
|
2668
|
-
id: string;
|
|
2669
|
-
}>, z.ZodObject<{
|
|
2670
|
-
/** Stable D1 database name to resolve to an ID at config/build/deploy time */
|
|
2671
|
-
name: z.ZodString;
|
|
2672
|
-
}, "strict", z.ZodTypeAny, {
|
|
2673
|
-
name: string;
|
|
2674
|
-
}, {
|
|
2675
|
-
name: string;
|
|
2676
|
-
}>]>>>;
|
|
2677
|
-
/**
|
|
2678
|
-
* R2 Bucket bindings.
|
|
2679
|
-
* Maps binding name to R2 bucket name.
|
|
2680
|
-
* @example { IMAGES: 'images-bucket' }
|
|
2681
|
-
*/
|
|
2682
|
-
r2: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2683
|
-
/**
|
|
2684
|
-
* Durable Object bindings.
|
|
2685
|
-
* Maps binding name to DO class configuration.
|
|
2686
|
-
* @example { COUNTER: 'Counter' } or { COUNTER: { className: 'Counter' } }
|
|
2687
|
-
*/
|
|
2688
|
-
durableObjects: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<DurableObjectBindingInput, z.ZodTypeDef, DurableObjectBindingInput>>>;
|
|
2689
|
-
/**
|
|
2690
|
-
* Queue bindings for producers and consumers.
|
|
2691
|
-
*/
|
|
2692
|
-
queues: z.ZodOptional<z.ZodObject<{
|
|
2693
|
-
/**
|
|
2694
|
-
* Queue producer bindings.
|
|
2695
|
-
* Maps binding name to queue name.
|
|
2696
|
-
* @example { TASK_QUEUE: 'task-queue' }
|
|
2697
|
-
*/
|
|
2698
|
-
producers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2699
|
-
/**
|
|
2700
|
-
* Queue consumer configurations.
|
|
2701
|
-
* Array of consumer configs for processing queue messages.
|
|
2702
|
-
*/
|
|
2703
|
-
consumers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2704
|
-
/** Queue name to consume from */
|
|
2705
|
-
queue: z.ZodString;
|
|
2706
|
-
/**
|
|
2707
|
-
* Maximum messages per batch (1-100).
|
|
2708
|
-
* @default 10
|
|
2709
|
-
*/
|
|
2710
|
-
maxBatchSize: z.ZodOptional<z.ZodNumber>;
|
|
2711
|
-
/**
|
|
2712
|
-
* Maximum seconds to wait for a full batch.
|
|
2713
|
-
* @default 5
|
|
2714
|
-
*/
|
|
2715
|
-
maxBatchTimeout: z.ZodOptional<z.ZodNumber>;
|
|
2716
|
-
/**
|
|
2717
|
-
* Maximum retry attempts for failed messages.
|
|
2718
|
-
* @default 3
|
|
2719
|
-
*/
|
|
2720
|
-
maxRetries: z.ZodOptional<z.ZodNumber>;
|
|
2721
|
-
/** Queue name to send failed messages after max retries */
|
|
2722
|
-
deadLetterQueue: z.ZodOptional<z.ZodString>;
|
|
2723
|
-
/** Maximum concurrent batch invocations */
|
|
2724
|
-
maxConcurrency: z.ZodOptional<z.ZodNumber>;
|
|
2725
|
-
/** Delay in seconds between retries */
|
|
2726
|
-
retryDelay: z.ZodOptional<z.ZodNumber>;
|
|
2727
|
-
}, "strip", z.ZodTypeAny, {
|
|
2728
|
-
queue: string;
|
|
2729
|
-
maxBatchSize?: number | undefined;
|
|
2730
|
-
maxBatchTimeout?: number | undefined;
|
|
2731
|
-
maxRetries?: number | undefined;
|
|
2732
|
-
deadLetterQueue?: string | undefined;
|
|
2733
|
-
maxConcurrency?: number | undefined;
|
|
2734
|
-
retryDelay?: number | undefined;
|
|
2735
|
-
}, {
|
|
2736
|
-
queue: string;
|
|
2737
|
-
maxBatchSize?: number | undefined;
|
|
2738
|
-
maxBatchTimeout?: number | undefined;
|
|
2739
|
-
maxRetries?: number | undefined;
|
|
2740
|
-
deadLetterQueue?: string | undefined;
|
|
2741
|
-
maxConcurrency?: number | undefined;
|
|
2742
|
-
retryDelay?: number | undefined;
|
|
2743
|
-
}>, "many">>;
|
|
2744
|
-
}, "strip", z.ZodTypeAny, {
|
|
2745
|
-
producers?: Record<string, string> | undefined;
|
|
2746
|
-
consumers?: {
|
|
2747
|
-
queue: string;
|
|
2748
|
-
maxBatchSize?: number | undefined;
|
|
2749
|
-
maxBatchTimeout?: number | undefined;
|
|
2750
|
-
maxRetries?: number | undefined;
|
|
2751
|
-
deadLetterQueue?: string | undefined;
|
|
2752
|
-
maxConcurrency?: number | undefined;
|
|
2753
|
-
retryDelay?: number | undefined;
|
|
2754
|
-
}[] | undefined;
|
|
2755
|
-
}, {
|
|
2756
|
-
producers?: Record<string, string> | undefined;
|
|
2757
|
-
consumers?: {
|
|
2758
|
-
queue: string;
|
|
2759
|
-
maxBatchSize?: number | undefined;
|
|
2760
|
-
maxBatchTimeout?: number | undefined;
|
|
2761
|
-
maxRetries?: number | undefined;
|
|
2762
|
-
deadLetterQueue?: string | undefined;
|
|
2763
|
-
maxConcurrency?: number | undefined;
|
|
2764
|
-
retryDelay?: number | undefined;
|
|
2765
|
-
}[] | undefined;
|
|
2766
|
-
}>>;
|
|
2767
|
-
/**
|
|
2768
|
-
* Service bindings to other Workers.
|
|
2769
|
-
* Enables RPC-style communication between workers.
|
|
2770
|
-
* @example { MATH: mathWorker.worker }
|
|
2771
|
-
*/
|
|
2772
|
-
services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<{
|
|
2773
|
-
/** Target worker/service name */
|
|
2774
|
-
service: string;
|
|
2775
|
-
/** Optional environment (staging, production, etc.) */
|
|
2776
|
-
environment?: string | undefined;
|
|
2777
|
-
/** Optional entrypoint class name for named exports */
|
|
2778
|
-
entrypoint?: string | undefined;
|
|
2779
|
-
/** @internal Reference marker for ref() bindings */
|
|
2780
|
-
__ref?: unknown;
|
|
2781
|
-
}, z.ZodTypeDef, {
|
|
2782
|
-
/** Target worker/service name */
|
|
2783
|
-
service: string;
|
|
2784
|
-
/** Optional environment (staging, production, etc.) */
|
|
2785
|
-
environment?: string | undefined;
|
|
2786
|
-
/** Optional entrypoint class name for named exports */
|
|
2787
|
-
entrypoint?: string | undefined;
|
|
2788
|
-
/** @internal Reference marker for ref() bindings */
|
|
2789
|
-
__ref?: unknown;
|
|
2790
|
-
}>>>;
|
|
2791
|
-
/**
|
|
2792
|
-
* Workers AI binding for ML inference.
|
|
2793
|
-
* @example { binding: 'AI' }
|
|
2794
|
-
*/
|
|
2795
|
-
ai: z.ZodOptional<z.ZodObject<{
|
|
2796
|
-
/** Binding name exposed in env (e.g., 'AI') */
|
|
2797
|
-
binding: z.ZodString;
|
|
2798
|
-
}, "strip", z.ZodTypeAny, {
|
|
2799
|
-
binding: string;
|
|
2800
|
-
}, {
|
|
2801
|
-
binding: string;
|
|
2802
|
-
}>>;
|
|
2803
|
-
/**
|
|
2804
|
-
* Vectorize index bindings for vector similarity search.
|
|
2805
|
-
* @example { EMBEDDINGS: { indexName: 'my-index' } }
|
|
2806
|
-
*/
|
|
2807
|
-
vectorize: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2808
|
-
/** Name of the Vectorize index */
|
|
2809
|
-
indexName: z.ZodString;
|
|
2810
|
-
}, "strip", z.ZodTypeAny, {
|
|
2811
|
-
indexName: string;
|
|
2812
|
-
}, {
|
|
2813
|
-
indexName: string;
|
|
2814
|
-
}>>>;
|
|
2815
|
-
/**
|
|
2816
|
-
* Hyperdrive bindings for accelerated PostgreSQL.
|
|
2817
|
-
* @example { DB: { id: 'hyperdrive-config-id' } }
|
|
2818
|
-
*/
|
|
2819
|
-
hyperdrive: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2820
|
-
/** Hyperdrive configuration ID */
|
|
2821
|
-
id: z.ZodString;
|
|
2822
|
-
}, "strip", z.ZodTypeAny, {
|
|
2823
|
-
id: string;
|
|
2824
|
-
}, {
|
|
2825
|
-
id: string;
|
|
2826
|
-
}>>>;
|
|
2827
|
-
/**
|
|
2828
|
-
* Browser Rendering binding for headless browser access.
|
|
2829
|
-
* @example { binding: 'BROWSER' }
|
|
2830
|
-
*/
|
|
2831
|
-
browser: z.ZodOptional<z.ZodObject<{
|
|
2832
|
-
/** Binding name exposed in env (e.g., 'BROWSER') */
|
|
2833
|
-
binding: z.ZodString;
|
|
2834
|
-
}, "strip", z.ZodTypeAny, {
|
|
2835
|
-
binding: string;
|
|
2836
|
-
}, {
|
|
2837
|
-
binding: string;
|
|
2838
|
-
}>>;
|
|
2839
|
-
/**
|
|
2840
|
-
* Analytics Engine bindings for event logging.
|
|
2841
|
-
* @example { ANALYTICS: { dataset: 'my-dataset' } }
|
|
2842
|
-
*/
|
|
2843
|
-
analyticsEngine: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2844
|
-
/** Analytics Engine dataset name */
|
|
2845
|
-
dataset: z.ZodString;
|
|
2846
|
-
}, "strip", z.ZodTypeAny, {
|
|
2847
|
-
dataset: string;
|
|
2848
|
-
}, {
|
|
2849
|
-
dataset: string;
|
|
2850
|
-
}>>>;
|
|
2851
|
-
/**
|
|
2852
|
-
* Email sending bindings.
|
|
2853
|
-
* @example { EMAIL: { destinationAddress: 'admin@example.com' } }
|
|
2854
|
-
* @example { BULK_EMAIL: { allowedDestinationAddresses: ['ops@example.com'], allowedSenderAddresses: ['noreply@example.com'] } }
|
|
2855
|
-
*/
|
|
2856
|
-
sendEmail: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
2857
|
-
/** Restrict this binding to a specific verified destination address */
|
|
2858
|
-
destinationAddress: z.ZodOptional<z.ZodString>;
|
|
2859
|
-
/** Restrict this binding to a set of verified destination addresses */
|
|
2860
|
-
allowedDestinationAddresses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2861
|
-
/** Restrict this binding to a set of verified sender addresses */
|
|
2862
|
-
allowedSenderAddresses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2863
|
-
}, "strip", z.ZodTypeAny, {
|
|
2864
|
-
destinationAddress?: string | undefined;
|
|
2865
|
-
allowedDestinationAddresses?: string[] | undefined;
|
|
2866
|
-
allowedSenderAddresses?: string[] | undefined;
|
|
2867
|
-
}, {
|
|
2868
|
-
destinationAddress?: string | undefined;
|
|
2869
|
-
allowedDestinationAddresses?: string[] | undefined;
|
|
2870
|
-
allowedSenderAddresses?: string[] | undefined;
|
|
2871
|
-
}>, {
|
|
2872
|
-
destinationAddress?: string | undefined;
|
|
2873
|
-
allowedDestinationAddresses?: string[] | undefined;
|
|
2874
|
-
allowedSenderAddresses?: string[] | undefined;
|
|
2875
|
-
}, {
|
|
2876
|
-
destinationAddress?: string | undefined;
|
|
2877
|
-
allowedDestinationAddresses?: string[] | undefined;
|
|
2878
|
-
allowedSenderAddresses?: string[] | undefined;
|
|
2879
|
-
}>>>;
|
|
2880
|
-
}, "strip", z.ZodTypeAny, {
|
|
2881
|
-
kv?: Record<string, string> | undefined;
|
|
2882
|
-
d1?: Record<string, string | {
|
|
2883
|
-
id: string;
|
|
2884
|
-
} | {
|
|
2885
|
-
name: string;
|
|
2886
|
-
}> | undefined;
|
|
2887
|
-
r2?: Record<string, string> | undefined;
|
|
2888
|
-
durableObjects?: Record<string, DurableObjectBindingInput> | undefined;
|
|
2889
|
-
queues?: {
|
|
2890
|
-
producers?: Record<string, string> | undefined;
|
|
2891
|
-
consumers?: {
|
|
2892
|
-
queue: string;
|
|
2893
|
-
maxBatchSize?: number | undefined;
|
|
2894
|
-
maxBatchTimeout?: number | undefined;
|
|
2895
|
-
maxRetries?: number | undefined;
|
|
2896
|
-
deadLetterQueue?: string | undefined;
|
|
2897
|
-
maxConcurrency?: number | undefined;
|
|
2898
|
-
retryDelay?: number | undefined;
|
|
2899
|
-
}[] | undefined;
|
|
2900
|
-
} | undefined;
|
|
2901
|
-
services?: Record<string, {
|
|
2902
|
-
/** Target worker/service name */
|
|
2903
|
-
service: string;
|
|
2904
|
-
/** Optional environment (staging, production, etc.) */
|
|
2905
|
-
environment?: string | undefined;
|
|
2906
|
-
/** Optional entrypoint class name for named exports */
|
|
2907
|
-
entrypoint?: string | undefined;
|
|
2908
|
-
/** @internal Reference marker for ref() bindings */
|
|
2909
|
-
__ref?: unknown;
|
|
2910
|
-
}> | undefined;
|
|
2911
|
-
ai?: {
|
|
2912
|
-
binding: string;
|
|
2913
|
-
} | undefined;
|
|
2914
|
-
vectorize?: Record<string, {
|
|
2915
|
-
indexName: string;
|
|
2916
|
-
}> | undefined;
|
|
2917
|
-
hyperdrive?: Record<string, {
|
|
2918
|
-
id: string;
|
|
2919
|
-
}> | undefined;
|
|
2920
|
-
browser?: {
|
|
2921
|
-
binding: string;
|
|
2922
|
-
} | undefined;
|
|
2923
|
-
analyticsEngine?: Record<string, {
|
|
2924
|
-
dataset: string;
|
|
2925
|
-
}> | undefined;
|
|
2926
|
-
sendEmail?: Record<string, {
|
|
2927
|
-
destinationAddress?: string | undefined;
|
|
2928
|
-
allowedDestinationAddresses?: string[] | undefined;
|
|
2929
|
-
allowedSenderAddresses?: string[] | undefined;
|
|
2930
|
-
}> | undefined;
|
|
2931
|
-
}, {
|
|
2932
|
-
kv?: Record<string, string> | undefined;
|
|
2933
|
-
d1?: Record<string, string | {
|
|
2934
|
-
id: string;
|
|
2935
|
-
} | {
|
|
2936
|
-
name: string;
|
|
2937
|
-
}> | undefined;
|
|
2938
|
-
r2?: Record<string, string> | undefined;
|
|
2939
|
-
durableObjects?: Record<string, DurableObjectBindingInput> | undefined;
|
|
2940
|
-
queues?: {
|
|
2941
|
-
producers?: Record<string, string> | undefined;
|
|
2942
|
-
consumers?: {
|
|
2943
|
-
queue: string;
|
|
2944
|
-
maxBatchSize?: number | undefined;
|
|
2945
|
-
maxBatchTimeout?: number | undefined;
|
|
2946
|
-
maxRetries?: number | undefined;
|
|
2947
|
-
deadLetterQueue?: string | undefined;
|
|
2948
|
-
maxConcurrency?: number | undefined;
|
|
2949
|
-
retryDelay?: number | undefined;
|
|
2950
|
-
}[] | undefined;
|
|
2951
|
-
} | undefined;
|
|
2952
|
-
services?: Record<string, {
|
|
2953
|
-
/** Target worker/service name */
|
|
2954
|
-
service: string;
|
|
2955
|
-
/** Optional environment (staging, production, etc.) */
|
|
2956
|
-
environment?: string | undefined;
|
|
2957
|
-
/** Optional entrypoint class name for named exports */
|
|
2958
|
-
entrypoint?: string | undefined;
|
|
2959
|
-
/** @internal Reference marker for ref() bindings */
|
|
2960
|
-
__ref?: unknown;
|
|
2961
|
-
}> | undefined;
|
|
2962
|
-
ai?: {
|
|
2963
|
-
binding: string;
|
|
2964
|
-
} | undefined;
|
|
2965
|
-
vectorize?: Record<string, {
|
|
2966
|
-
indexName: string;
|
|
2967
|
-
}> | undefined;
|
|
2968
|
-
hyperdrive?: Record<string, {
|
|
2969
|
-
id: string;
|
|
2970
|
-
}> | undefined;
|
|
2971
|
-
browser?: {
|
|
2972
|
-
binding: string;
|
|
2973
|
-
} | undefined;
|
|
2974
|
-
analyticsEngine?: Record<string, {
|
|
2975
|
-
dataset: string;
|
|
2976
|
-
}> | undefined;
|
|
2977
|
-
sendEmail?: Record<string, {
|
|
2978
|
-
destinationAddress?: string | undefined;
|
|
2979
|
-
allowedDestinationAddresses?: string[] | undefined;
|
|
2980
|
-
allowedSenderAddresses?: string[] | undefined;
|
|
2981
|
-
}> | undefined;
|
|
2982
|
-
}>>>;
|
|
2983
|
-
triggers: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
2984
|
-
/**
|
|
2985
|
-
* Array of cron expressions for scheduled execution.
|
|
2986
|
-
*
|
|
2987
|
-
* Examples:
|
|
2988
|
-
* - `'0 0 * * *'` — Daily at midnight
|
|
2989
|
-
* - `'0/5 * * * *'` — Every 5 minutes
|
|
2990
|
-
* - `'0 9 * * 1'` — Every Monday at 9am
|
|
2991
|
-
*/
|
|
2992
|
-
crons: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2993
|
-
}, "strip", z.ZodTypeAny, {
|
|
2994
|
-
crons?: string[] | undefined;
|
|
2995
|
-
}, {
|
|
2996
|
-
crons?: string[] | undefined;
|
|
2997
|
-
}>>>;
|
|
2998
|
-
vars: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
2999
|
-
secrets: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3000
|
-
/**
|
|
3001
|
-
* Whether this secret is required for the worker to run.
|
|
3002
|
-
* If true, worker will fail to start if secret is missing.
|
|
3003
|
-
* @default true
|
|
3004
|
-
*/
|
|
3005
|
-
required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
3006
|
-
}, "strip", z.ZodTypeAny, {
|
|
3007
|
-
required: boolean;
|
|
3008
|
-
}, {
|
|
3009
|
-
required?: boolean | undefined;
|
|
3010
|
-
}>>>>;
|
|
3011
|
-
routes: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3012
|
-
/**
|
|
3013
|
-
* URL pattern to match (e.g., 'example.com/*').
|
|
3014
|
-
* Supports wildcards (*) for path matching.
|
|
3015
|
-
*/
|
|
3016
|
-
pattern: z.ZodString;
|
|
3017
|
-
/** Zone name to associate the route with */
|
|
3018
|
-
zone_name: z.ZodOptional<z.ZodString>;
|
|
3019
|
-
/** Zone ID to associate the route with (alternative to zone_name) */
|
|
3020
|
-
zone_id: z.ZodOptional<z.ZodString>;
|
|
3021
|
-
/** Whether this is a custom domain route */
|
|
3022
|
-
custom_domain: z.ZodOptional<z.ZodBoolean>;
|
|
3023
|
-
}, "strip", z.ZodTypeAny, {
|
|
3024
|
-
pattern: string;
|
|
3025
|
-
zone_name?: string | undefined;
|
|
3026
|
-
zone_id?: string | undefined;
|
|
3027
|
-
custom_domain?: boolean | undefined;
|
|
3028
|
-
}, {
|
|
3029
|
-
pattern: string;
|
|
3030
|
-
zone_name?: string | undefined;
|
|
3031
|
-
zone_id?: string | undefined;
|
|
3032
|
-
custom_domain?: boolean | undefined;
|
|
3033
|
-
}>, "many">>>;
|
|
3034
|
-
assets: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
3035
|
-
/** Directory containing static assets (relative to config file) */
|
|
3036
|
-
directory: z.ZodString;
|
|
3037
|
-
/**
|
|
3038
|
-
* Optional binding name to access assets programmatically.
|
|
3039
|
-
* If provided, assets can be fetched via env[binding].fetch()
|
|
3040
|
-
*/
|
|
3041
|
-
binding: z.ZodOptional<z.ZodString>;
|
|
3042
|
-
}, "strip", z.ZodTypeAny, {
|
|
3043
|
-
directory: string;
|
|
3044
|
-
binding?: string | undefined;
|
|
3045
|
-
}, {
|
|
3046
|
-
directory: string;
|
|
3047
|
-
binding?: string | undefined;
|
|
3048
|
-
}>>>;
|
|
3049
|
-
limits: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
3050
|
-
/**
|
|
3051
|
-
* Maximum CPU time in milliseconds.
|
|
3052
|
-
* Only applicable to Workers with Usage Model set to Unbound.
|
|
3053
|
-
*/
|
|
3054
|
-
cpu_ms: z.ZodOptional<z.ZodNumber>;
|
|
3055
|
-
}, "strip", z.ZodTypeAny, {
|
|
3056
|
-
cpu_ms?: number | undefined;
|
|
3057
|
-
}, {
|
|
3058
|
-
cpu_ms?: number | undefined;
|
|
3059
|
-
}>>>;
|
|
3060
|
-
observability: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
3061
|
-
/** Enable Worker Logs */
|
|
3062
|
-
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
3063
|
-
/**
|
|
3064
|
-
* Head sampling rate for logs (0-1).
|
|
3065
|
-
* 1.0 = log all requests, 0.1 = log 10% of requests.
|
|
3066
|
-
*/
|
|
3067
|
-
head_sampling_rate: z.ZodOptional<z.ZodNumber>;
|
|
469
|
+
}, z.ZodUnknown, "strip">>>;
|
|
470
|
+
/** Environment-specific configuration overrides. */
|
|
471
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
472
|
+
name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
473
|
+
compatibilityDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
474
|
+
compatibilityFlags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
475
|
+
previews: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
476
|
+
includeCrons: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
3068
477
|
}, "strip", z.ZodTypeAny, {
|
|
3069
|
-
|
|
3070
|
-
head_sampling_rate?: number | undefined;
|
|
478
|
+
includeCrons: boolean;
|
|
3071
479
|
}, {
|
|
3072
|
-
|
|
3073
|
-
head_sampling_rate?: number | undefined;
|
|
480
|
+
includeCrons?: boolean | undefined;
|
|
3074
481
|
}>>>;
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
new_classes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3087
|
-
/**
|
|
3088
|
-
* Classes being renamed.
|
|
3089
|
-
* State is preserved during rename.
|
|
3090
|
-
*/
|
|
3091
|
-
renamed_classes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3092
|
-
from: z.ZodString;
|
|
3093
|
-
to: z.ZodString;
|
|
482
|
+
files: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
483
|
+
fetch: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>>;
|
|
484
|
+
queue: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>>;
|
|
485
|
+
scheduled: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>>;
|
|
486
|
+
email: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>>;
|
|
487
|
+
durableObjects: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>>;
|
|
488
|
+
entrypoints: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>>;
|
|
489
|
+
workflows: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>>;
|
|
490
|
+
routes: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
491
|
+
dir: z.ZodString;
|
|
492
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
3094
493
|
}, "strip", z.ZodTypeAny, {
|
|
3095
|
-
|
|
3096
|
-
|
|
494
|
+
dir: string;
|
|
495
|
+
prefix?: string | undefined;
|
|
3097
496
|
}, {
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
}>,
|
|
3101
|
-
|
|
3102
|
-
* Classes being deleted.
|
|
3103
|
-
* ⚠️ All state in these classes will be lost!
|
|
3104
|
-
*/
|
|
3105
|
-
deleted_classes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3106
|
-
/**
|
|
3107
|
-
* Classes migrating to SQLite storage backend.
|
|
3108
|
-
* Enables SQL API for these DO classes.
|
|
3109
|
-
*/
|
|
3110
|
-
new_sqlite_classes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3111
|
-
}, "strip", z.ZodTypeAny, {
|
|
3112
|
-
tag: string;
|
|
3113
|
-
new_classes?: string[] | undefined;
|
|
3114
|
-
renamed_classes?: {
|
|
3115
|
-
from: string;
|
|
3116
|
-
to: string;
|
|
3117
|
-
}[] | undefined;
|
|
3118
|
-
deleted_classes?: string[] | undefined;
|
|
3119
|
-
new_sqlite_classes?: string[] | undefined;
|
|
3120
|
-
}, {
|
|
3121
|
-
tag: string;
|
|
3122
|
-
new_classes?: string[] | undefined;
|
|
3123
|
-
renamed_classes?: {
|
|
3124
|
-
from: string;
|
|
3125
|
-
to: string;
|
|
3126
|
-
}[] | undefined;
|
|
3127
|
-
deleted_classes?: string[] | undefined;
|
|
3128
|
-
new_sqlite_classes?: string[] | undefined;
|
|
3129
|
-
}>, "many">>>;
|
|
3130
|
-
rolldown: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
3131
|
-
/**
|
|
3132
|
-
* Bundle target environment.
|
|
3133
|
-
* @example 'es2022'
|
|
3134
|
-
*/
|
|
3135
|
-
target: z.ZodOptional<z.ZodString>;
|
|
3136
|
-
/** Enable minification for emitted DO bundles */
|
|
3137
|
-
minify: z.ZodOptional<z.ZodBoolean>;
|
|
3138
|
-
/** Generate source maps for emitted DO bundles */
|
|
3139
|
-
sourcemap: z.ZodOptional<z.ZodBoolean>;
|
|
3140
|
-
/**
|
|
3141
|
-
* Additional raw Rolldown options.
|
|
3142
|
-
* @see https://rolldown.rs/
|
|
3143
|
-
*/
|
|
3144
|
-
options: z.ZodOptional<z.ZodType<DevflareRolldownOptions, z.ZodTypeDef, DevflareRolldownOptions>>;
|
|
3145
|
-
}, "strip", z.ZodTypeAny, {
|
|
3146
|
-
target?: string | undefined;
|
|
3147
|
-
minify?: boolean | undefined;
|
|
3148
|
-
sourcemap?: boolean | undefined;
|
|
3149
|
-
options?: DevflareRolldownOptions | undefined;
|
|
3150
|
-
}, {
|
|
3151
|
-
target?: string | undefined;
|
|
3152
|
-
minify?: boolean | undefined;
|
|
3153
|
-
sourcemap?: boolean | undefined;
|
|
3154
|
-
options?: DevflareRolldownOptions | undefined;
|
|
3155
|
-
}>>>;
|
|
3156
|
-
vite: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
3157
|
-
/**
|
|
3158
|
-
* Devflare-level Vite plugin metadata sourced from devflare.config.ts.
|
|
3159
|
-
* Raw Vite plugin wiring still belongs in `vite.config.*`.
|
|
3160
|
-
*/
|
|
3161
|
-
plugins: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
3162
|
-
}, "strip", z.ZodUnknown, z.objectOutputType<{
|
|
3163
|
-
/**
|
|
3164
|
-
* Devflare-level Vite plugin metadata sourced from devflare.config.ts.
|
|
3165
|
-
* Raw Vite plugin wiring still belongs in `vite.config.*`.
|
|
3166
|
-
*/
|
|
3167
|
-
plugins: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
3168
|
-
}, z.ZodUnknown, "strip">, z.objectInputType<{
|
|
3169
|
-
/**
|
|
3170
|
-
* Devflare-level Vite plugin metadata sourced from devflare.config.ts.
|
|
3171
|
-
* Raw Vite plugin wiring still belongs in `vite.config.*`.
|
|
3172
|
-
*/
|
|
3173
|
-
plugins: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
3174
|
-
}, z.ZodUnknown, "strip">>>>;
|
|
3175
|
-
wrangler: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
3176
|
-
/**
|
|
3177
|
-
* Arbitrary key-value pairs passed directly to wrangler.jsonc.
|
|
3178
|
-
* @example { placement: { mode: 'smart' } }
|
|
3179
|
-
*/
|
|
3180
|
-
passthrough: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3181
|
-
}, "strip", z.ZodTypeAny, {
|
|
3182
|
-
passthrough?: Record<string, unknown> | undefined;
|
|
3183
|
-
}, {
|
|
3184
|
-
passthrough?: Record<string, unknown> | undefined;
|
|
3185
|
-
}>>>;
|
|
3186
|
-
} & {
|
|
3187
|
-
/** @deprecated Use `rolldown` instead. */
|
|
3188
|
-
build: z.ZodOptional<z.ZodObject<{
|
|
3189
|
-
/**
|
|
3190
|
-
* Legacy alias for `rolldown.target`.
|
|
3191
|
-
* @example 'es2022'
|
|
3192
|
-
*/
|
|
3193
|
-
target: z.ZodOptional<z.ZodString>;
|
|
3194
|
-
/** Legacy alias for `rolldown.minify`. */
|
|
3195
|
-
minify: z.ZodOptional<z.ZodBoolean>;
|
|
3196
|
-
/** Legacy alias for `rolldown.sourcemap`. */
|
|
3197
|
-
sourcemap: z.ZodOptional<z.ZodBoolean>;
|
|
3198
|
-
/** Legacy alias for `rolldown.options`. */
|
|
3199
|
-
rolldownOptions: z.ZodOptional<z.ZodType<DevflareRolldownOptions, z.ZodTypeDef, DevflareRolldownOptions>>;
|
|
497
|
+
dir: string;
|
|
498
|
+
prefix?: string | undefined;
|
|
499
|
+
}>, z.ZodLiteral<false>]>>;
|
|
500
|
+
transport: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
3200
501
|
}, "strip", z.ZodTypeAny, {
|
|
3201
|
-
target?: string | undefined;
|
|
3202
|
-
minify?: boolean | undefined;
|
|
3203
|
-
sourcemap?: boolean | undefined;
|
|
3204
|
-
rolldownOptions?: DevflareRolldownOptions | undefined;
|
|
3205
|
-
}, {
|
|
3206
|
-
target?: string | undefined;
|
|
3207
|
-
minify?: boolean | undefined;
|
|
3208
|
-
sourcemap?: boolean | undefined;
|
|
3209
|
-
rolldownOptions?: DevflareRolldownOptions | undefined;
|
|
3210
|
-
}>>;
|
|
3211
|
-
/** @deprecated Use `vite.plugins` instead. */
|
|
3212
|
-
plugins: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
3213
|
-
}, "strip", z.ZodTypeAny, {
|
|
3214
|
-
name?: string | undefined;
|
|
3215
|
-
compatibilityDate?: string | undefined;
|
|
3216
|
-
compatibilityFlags?: string[] | undefined;
|
|
3217
|
-
files?: {
|
|
3218
502
|
fetch?: string | false | undefined;
|
|
3219
503
|
queue?: string | false | undefined;
|
|
3220
504
|
scheduled?: string | false | undefined;
|
|
@@ -3227,121 +511,7 @@ export declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3227
511
|
prefix?: string | undefined;
|
|
3228
512
|
} | undefined;
|
|
3229
513
|
transport?: string | null | undefined;
|
|
3230
|
-
}
|
|
3231
|
-
bindings?: {
|
|
3232
|
-
kv?: Record<string, string> | undefined;
|
|
3233
|
-
d1?: Record<string, string | {
|
|
3234
|
-
id: string;
|
|
3235
|
-
} | {
|
|
3236
|
-
name: string;
|
|
3237
|
-
}> | undefined;
|
|
3238
|
-
r2?: Record<string, string> | undefined;
|
|
3239
|
-
durableObjects?: Record<string, DurableObjectBindingInput> | undefined;
|
|
3240
|
-
queues?: {
|
|
3241
|
-
producers?: Record<string, string> | undefined;
|
|
3242
|
-
consumers?: {
|
|
3243
|
-
queue: string;
|
|
3244
|
-
maxBatchSize?: number | undefined;
|
|
3245
|
-
maxBatchTimeout?: number | undefined;
|
|
3246
|
-
maxRetries?: number | undefined;
|
|
3247
|
-
deadLetterQueue?: string | undefined;
|
|
3248
|
-
maxConcurrency?: number | undefined;
|
|
3249
|
-
retryDelay?: number | undefined;
|
|
3250
|
-
}[] | undefined;
|
|
3251
|
-
} | undefined;
|
|
3252
|
-
services?: Record<string, {
|
|
3253
|
-
/** Target worker/service name */
|
|
3254
|
-
service: string;
|
|
3255
|
-
/** Optional environment (staging, production, etc.) */
|
|
3256
|
-
environment?: string | undefined;
|
|
3257
|
-
/** Optional entrypoint class name for named exports */
|
|
3258
|
-
entrypoint?: string | undefined;
|
|
3259
|
-
/** @internal Reference marker for ref() bindings */
|
|
3260
|
-
__ref?: unknown;
|
|
3261
|
-
}> | undefined;
|
|
3262
|
-
ai?: {
|
|
3263
|
-
binding: string;
|
|
3264
|
-
} | undefined;
|
|
3265
|
-
vectorize?: Record<string, {
|
|
3266
|
-
indexName: string;
|
|
3267
|
-
}> | undefined;
|
|
3268
|
-
hyperdrive?: Record<string, {
|
|
3269
|
-
id: string;
|
|
3270
|
-
}> | undefined;
|
|
3271
|
-
browser?: {
|
|
3272
|
-
binding: string;
|
|
3273
|
-
} | undefined;
|
|
3274
|
-
analyticsEngine?: Record<string, {
|
|
3275
|
-
dataset: string;
|
|
3276
|
-
}> | undefined;
|
|
3277
|
-
sendEmail?: Record<string, {
|
|
3278
|
-
destinationAddress?: string | undefined;
|
|
3279
|
-
allowedDestinationAddresses?: string[] | undefined;
|
|
3280
|
-
allowedSenderAddresses?: string[] | undefined;
|
|
3281
|
-
}> | undefined;
|
|
3282
|
-
} | undefined;
|
|
3283
|
-
triggers?: {
|
|
3284
|
-
crons?: string[] | undefined;
|
|
3285
|
-
} | undefined;
|
|
3286
|
-
vars?: Record<string, string> | undefined;
|
|
3287
|
-
secrets?: Record<string, {
|
|
3288
|
-
required: boolean;
|
|
3289
|
-
}> | undefined;
|
|
3290
|
-
routes?: {
|
|
3291
|
-
pattern: string;
|
|
3292
|
-
zone_name?: string | undefined;
|
|
3293
|
-
zone_id?: string | undefined;
|
|
3294
|
-
custom_domain?: boolean | undefined;
|
|
3295
|
-
}[] | undefined;
|
|
3296
|
-
assets?: {
|
|
3297
|
-
directory: string;
|
|
3298
|
-
binding?: string | undefined;
|
|
3299
|
-
} | undefined;
|
|
3300
|
-
limits?: {
|
|
3301
|
-
cpu_ms?: number | undefined;
|
|
3302
|
-
} | undefined;
|
|
3303
|
-
observability?: {
|
|
3304
|
-
enabled?: boolean | undefined;
|
|
3305
|
-
head_sampling_rate?: number | undefined;
|
|
3306
|
-
} | undefined;
|
|
3307
|
-
migrations?: {
|
|
3308
|
-
tag: string;
|
|
3309
|
-
new_classes?: string[] | undefined;
|
|
3310
|
-
renamed_classes?: {
|
|
3311
|
-
from: string;
|
|
3312
|
-
to: string;
|
|
3313
|
-
}[] | undefined;
|
|
3314
|
-
deleted_classes?: string[] | undefined;
|
|
3315
|
-
new_sqlite_classes?: string[] | undefined;
|
|
3316
|
-
}[] | undefined;
|
|
3317
|
-
rolldown?: {
|
|
3318
|
-
target?: string | undefined;
|
|
3319
|
-
minify?: boolean | undefined;
|
|
3320
|
-
sourcemap?: boolean | undefined;
|
|
3321
|
-
options?: DevflareRolldownOptions | undefined;
|
|
3322
|
-
} | undefined;
|
|
3323
|
-
vite?: z.objectOutputType<{
|
|
3324
|
-
/**
|
|
3325
|
-
* Devflare-level Vite plugin metadata sourced from devflare.config.ts.
|
|
3326
|
-
* Raw Vite plugin wiring still belongs in `vite.config.*`.
|
|
3327
|
-
*/
|
|
3328
|
-
plugins: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
3329
|
-
}, z.ZodUnknown, "strip"> | undefined;
|
|
3330
|
-
wrangler?: {
|
|
3331
|
-
passthrough?: Record<string, unknown> | undefined;
|
|
3332
|
-
} | undefined;
|
|
3333
|
-
build?: {
|
|
3334
|
-
target?: string | undefined;
|
|
3335
|
-
minify?: boolean | undefined;
|
|
3336
|
-
sourcemap?: boolean | undefined;
|
|
3337
|
-
rolldownOptions?: DevflareRolldownOptions | undefined;
|
|
3338
|
-
} | undefined;
|
|
3339
|
-
plugins?: unknown[] | undefined;
|
|
3340
|
-
}, {
|
|
3341
|
-
name?: string | undefined;
|
|
3342
|
-
compatibilityDate?: string | undefined;
|
|
3343
|
-
compatibilityFlags?: string[] | undefined;
|
|
3344
|
-
files?: {
|
|
514
|
+
}, {
|
|
3345
515
|
fetch?: string | false | undefined;
|
|
3346
516
|
queue?: string | false | undefined;
|
|
3347
517
|
scheduled?: string | false | undefined;
|
|
@@ -3354,17 +524,64 @@ export declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3354
524
|
prefix?: string | undefined;
|
|
3355
525
|
} | undefined;
|
|
3356
526
|
transport?: string | null | undefined;
|
|
3357
|
-
}
|
|
3358
|
-
bindings
|
|
3359
|
-
kv
|
|
3360
|
-
|
|
527
|
+
}>>>;
|
|
528
|
+
bindings: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
529
|
+
kv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
530
|
+
id: z.ZodString;
|
|
531
|
+
}, "strict", z.ZodTypeAny, {
|
|
3361
532
|
id: string;
|
|
3362
|
-
}
|
|
533
|
+
}, {
|
|
534
|
+
id: string;
|
|
535
|
+
}>, z.ZodObject<{
|
|
536
|
+
name: z.ZodString;
|
|
537
|
+
}, "strict", z.ZodTypeAny, {
|
|
3363
538
|
name: string;
|
|
3364
|
-
}
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
539
|
+
}, {
|
|
540
|
+
name: string;
|
|
541
|
+
}>]>>>;
|
|
542
|
+
d1: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
543
|
+
id: z.ZodString;
|
|
544
|
+
}, "strict", z.ZodTypeAny, {
|
|
545
|
+
id: string;
|
|
546
|
+
}, {
|
|
547
|
+
id: string;
|
|
548
|
+
}>, z.ZodObject<{
|
|
549
|
+
name: z.ZodString;
|
|
550
|
+
}, "strict", z.ZodTypeAny, {
|
|
551
|
+
name: string;
|
|
552
|
+
}, {
|
|
553
|
+
name: string;
|
|
554
|
+
}>]>>>;
|
|
555
|
+
r2: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
556
|
+
durableObjects: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./schema-bindings").DurableObjectBindingInput, z.ZodTypeDef, import("./schema-bindings").DurableObjectBindingInput>>>;
|
|
557
|
+
queues: z.ZodOptional<z.ZodObject<{
|
|
558
|
+
producers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
559
|
+
consumers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
560
|
+
queue: z.ZodString;
|
|
561
|
+
maxBatchSize: z.ZodOptional<z.ZodNumber>;
|
|
562
|
+
maxBatchTimeout: z.ZodOptional<z.ZodNumber>;
|
|
563
|
+
maxRetries: z.ZodOptional<z.ZodNumber>;
|
|
564
|
+
deadLetterQueue: z.ZodOptional<z.ZodString>;
|
|
565
|
+
maxConcurrency: z.ZodOptional<z.ZodNumber>;
|
|
566
|
+
retryDelay: z.ZodOptional<z.ZodNumber>;
|
|
567
|
+
}, "strip", z.ZodTypeAny, {
|
|
568
|
+
queue: string;
|
|
569
|
+
maxBatchSize?: number | undefined;
|
|
570
|
+
maxBatchTimeout?: number | undefined;
|
|
571
|
+
maxRetries?: number | undefined;
|
|
572
|
+
deadLetterQueue?: string | undefined;
|
|
573
|
+
maxConcurrency?: number | undefined;
|
|
574
|
+
retryDelay?: number | undefined;
|
|
575
|
+
}, {
|
|
576
|
+
queue: string;
|
|
577
|
+
maxBatchSize?: number | undefined;
|
|
578
|
+
maxBatchTimeout?: number | undefined;
|
|
579
|
+
maxRetries?: number | undefined;
|
|
580
|
+
deadLetterQueue?: string | undefined;
|
|
581
|
+
maxConcurrency?: number | undefined;
|
|
582
|
+
retryDelay?: number | undefined;
|
|
583
|
+
}>, "many">>;
|
|
584
|
+
}, "strip", z.ZodTypeAny, {
|
|
3368
585
|
producers?: Record<string, string> | undefined;
|
|
3369
586
|
consumers?: {
|
|
3370
587
|
queue: string;
|
|
@@ -3375,122 +592,98 @@ export declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3375
592
|
maxConcurrency?: number | undefined;
|
|
3376
593
|
retryDelay?: number | undefined;
|
|
3377
594
|
}[] | undefined;
|
|
3378
|
-
}
|
|
3379
|
-
|
|
3380
|
-
|
|
595
|
+
}, {
|
|
596
|
+
producers?: Record<string, string> | undefined;
|
|
597
|
+
consumers?: {
|
|
598
|
+
queue: string;
|
|
599
|
+
maxBatchSize?: number | undefined;
|
|
600
|
+
maxBatchTimeout?: number | undefined;
|
|
601
|
+
maxRetries?: number | undefined;
|
|
602
|
+
deadLetterQueue?: string | undefined;
|
|
603
|
+
maxConcurrency?: number | undefined;
|
|
604
|
+
retryDelay?: number | undefined;
|
|
605
|
+
}[] | undefined;
|
|
606
|
+
}>>;
|
|
607
|
+
services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<{
|
|
3381
608
|
service: string;
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
/** Optional entrypoint class name for named exports */
|
|
3385
|
-
entrypoint?: string | undefined;
|
|
3386
|
-
/** @internal Reference marker for ref() bindings */
|
|
609
|
+
environment?: string;
|
|
610
|
+
entrypoint?: string;
|
|
3387
611
|
__ref?: unknown;
|
|
3388
|
-
}
|
|
3389
|
-
|
|
612
|
+
}, z.ZodTypeDef, {
|
|
613
|
+
service: string;
|
|
614
|
+
environment?: string;
|
|
615
|
+
entrypoint?: string;
|
|
616
|
+
__ref?: unknown;
|
|
617
|
+
}>>>;
|
|
618
|
+
ai: z.ZodOptional<z.ZodObject<{
|
|
619
|
+
binding: z.ZodString;
|
|
620
|
+
}, "strip", z.ZodTypeAny, {
|
|
3390
621
|
binding: string;
|
|
3391
|
-
}
|
|
3392
|
-
|
|
622
|
+
}, {
|
|
623
|
+
binding: string;
|
|
624
|
+
}>>;
|
|
625
|
+
vectorize: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
626
|
+
indexName: z.ZodString;
|
|
627
|
+
}, "strip", z.ZodTypeAny, {
|
|
3393
628
|
indexName: string;
|
|
3394
|
-
}
|
|
3395
|
-
|
|
629
|
+
}, {
|
|
630
|
+
indexName: string;
|
|
631
|
+
}>>>;
|
|
632
|
+
hyperdrive: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
633
|
+
id: z.ZodString;
|
|
634
|
+
}, "strict", z.ZodTypeAny, {
|
|
3396
635
|
id: string;
|
|
3397
|
-
}
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
636
|
+
}, {
|
|
637
|
+
id: string;
|
|
638
|
+
}>, z.ZodObject<{
|
|
639
|
+
name: z.ZodString;
|
|
640
|
+
}, "strict", z.ZodTypeAny, {
|
|
641
|
+
name: string;
|
|
642
|
+
}, {
|
|
643
|
+
name: string;
|
|
644
|
+
}>]>>>;
|
|
645
|
+
browser: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, Record<string, string>>>;
|
|
646
|
+
analyticsEngine: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
647
|
+
dataset: z.ZodString;
|
|
648
|
+
}, "strip", z.ZodTypeAny, {
|
|
3402
649
|
dataset: string;
|
|
3403
|
-
}
|
|
3404
|
-
|
|
650
|
+
}, {
|
|
651
|
+
dataset: string;
|
|
652
|
+
}>>>;
|
|
653
|
+
sendEmail: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
654
|
+
destinationAddress: z.ZodOptional<z.ZodString>;
|
|
655
|
+
allowedDestinationAddresses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
656
|
+
allowedSenderAddresses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
657
|
+
}, "strip", z.ZodTypeAny, {
|
|
658
|
+
destinationAddress?: string | undefined;
|
|
659
|
+
allowedDestinationAddresses?: string[] | undefined;
|
|
660
|
+
allowedSenderAddresses?: string[] | undefined;
|
|
661
|
+
}, {
|
|
3405
662
|
destinationAddress?: string | undefined;
|
|
3406
663
|
allowedDestinationAddresses?: string[] | undefined;
|
|
3407
664
|
allowedSenderAddresses?: string[] | undefined;
|
|
665
|
+
}>, {
|
|
666
|
+
destinationAddress?: string | undefined;
|
|
667
|
+
allowedDestinationAddresses?: string[] | undefined;
|
|
668
|
+
allowedSenderAddresses?: string[] | undefined;
|
|
669
|
+
}, {
|
|
670
|
+
destinationAddress?: string | undefined;
|
|
671
|
+
allowedDestinationAddresses?: string[] | undefined;
|
|
672
|
+
allowedSenderAddresses?: string[] | undefined;
|
|
673
|
+
}>>>;
|
|
674
|
+
}, "strip", z.ZodTypeAny, {
|
|
675
|
+
kv?: Record<string, string | {
|
|
676
|
+
id: string;
|
|
677
|
+
} | {
|
|
678
|
+
name: string;
|
|
3408
679
|
}> | undefined;
|
|
3409
|
-
} | undefined;
|
|
3410
|
-
triggers?: {
|
|
3411
|
-
crons?: string[] | undefined;
|
|
3412
|
-
} | undefined;
|
|
3413
|
-
vars?: Record<string, string> | undefined;
|
|
3414
|
-
secrets?: Record<string, {
|
|
3415
|
-
required?: boolean | undefined;
|
|
3416
|
-
}> | undefined;
|
|
3417
|
-
routes?: {
|
|
3418
|
-
pattern: string;
|
|
3419
|
-
zone_name?: string | undefined;
|
|
3420
|
-
zone_id?: string | undefined;
|
|
3421
|
-
custom_domain?: boolean | undefined;
|
|
3422
|
-
}[] | undefined;
|
|
3423
|
-
assets?: {
|
|
3424
|
-
directory: string;
|
|
3425
|
-
binding?: string | undefined;
|
|
3426
|
-
} | undefined;
|
|
3427
|
-
limits?: {
|
|
3428
|
-
cpu_ms?: number | undefined;
|
|
3429
|
-
} | undefined;
|
|
3430
|
-
observability?: {
|
|
3431
|
-
enabled?: boolean | undefined;
|
|
3432
|
-
head_sampling_rate?: number | undefined;
|
|
3433
|
-
} | undefined;
|
|
3434
|
-
migrations?: {
|
|
3435
|
-
tag: string;
|
|
3436
|
-
new_classes?: string[] | undefined;
|
|
3437
|
-
renamed_classes?: {
|
|
3438
|
-
from: string;
|
|
3439
|
-
to: string;
|
|
3440
|
-
}[] | undefined;
|
|
3441
|
-
deleted_classes?: string[] | undefined;
|
|
3442
|
-
new_sqlite_classes?: string[] | undefined;
|
|
3443
|
-
}[] | undefined;
|
|
3444
|
-
rolldown?: {
|
|
3445
|
-
target?: string | undefined;
|
|
3446
|
-
minify?: boolean | undefined;
|
|
3447
|
-
sourcemap?: boolean | undefined;
|
|
3448
|
-
options?: DevflareRolldownOptions | undefined;
|
|
3449
|
-
} | undefined;
|
|
3450
|
-
vite?: z.objectInputType<{
|
|
3451
|
-
/**
|
|
3452
|
-
* Devflare-level Vite plugin metadata sourced from devflare.config.ts.
|
|
3453
|
-
* Raw Vite plugin wiring still belongs in `vite.config.*`.
|
|
3454
|
-
*/
|
|
3455
|
-
plugins: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
3456
|
-
}, z.ZodUnknown, "strip"> | undefined;
|
|
3457
|
-
wrangler?: {
|
|
3458
|
-
passthrough?: Record<string, unknown> | undefined;
|
|
3459
|
-
} | undefined;
|
|
3460
|
-
build?: {
|
|
3461
|
-
target?: string | undefined;
|
|
3462
|
-
minify?: boolean | undefined;
|
|
3463
|
-
sourcemap?: boolean | undefined;
|
|
3464
|
-
rolldownOptions?: DevflareRolldownOptions | undefined;
|
|
3465
|
-
} | undefined;
|
|
3466
|
-
plugins?: unknown[] | undefined;
|
|
3467
|
-
}>, {
|
|
3468
|
-
name?: string | undefined;
|
|
3469
|
-
compatibilityDate?: string | undefined;
|
|
3470
|
-
compatibilityFlags?: string[] | undefined;
|
|
3471
|
-
files?: {
|
|
3472
|
-
fetch?: string | false | undefined;
|
|
3473
|
-
queue?: string | false | undefined;
|
|
3474
|
-
scheduled?: string | false | undefined;
|
|
3475
|
-
email?: string | false | undefined;
|
|
3476
|
-
durableObjects?: string | false | undefined;
|
|
3477
|
-
entrypoints?: string | false | undefined;
|
|
3478
|
-
workflows?: string | false | undefined;
|
|
3479
|
-
routes?: false | {
|
|
3480
|
-
dir: string;
|
|
3481
|
-
prefix?: string | undefined;
|
|
3482
|
-
} | undefined;
|
|
3483
|
-
transport?: string | null | undefined;
|
|
3484
|
-
} | undefined;
|
|
3485
|
-
bindings?: {
|
|
3486
|
-
kv?: Record<string, string> | undefined;
|
|
3487
680
|
d1?: Record<string, string | {
|
|
3488
681
|
id: string;
|
|
3489
682
|
} | {
|
|
3490
683
|
name: string;
|
|
3491
684
|
}> | undefined;
|
|
3492
685
|
r2?: Record<string, string> | undefined;
|
|
3493
|
-
durableObjects?: Record<string, DurableObjectBindingInput> | undefined;
|
|
686
|
+
durableObjects?: Record<string, import("./schema-bindings").DurableObjectBindingInput> | undefined;
|
|
3494
687
|
queues?: {
|
|
3495
688
|
producers?: Record<string, string> | undefined;
|
|
3496
689
|
consumers?: {
|
|
@@ -3504,113 +697,44 @@ export declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3504
697
|
}[] | undefined;
|
|
3505
698
|
} | undefined;
|
|
3506
699
|
services?: Record<string, {
|
|
3507
|
-
/** Target worker/service name */
|
|
3508
700
|
service: string;
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
/** Optional entrypoint class name for named exports */
|
|
3512
|
-
entrypoint?: string | undefined;
|
|
3513
|
-
/** @internal Reference marker for ref() bindings */
|
|
701
|
+
environment?: string;
|
|
702
|
+
entrypoint?: string;
|
|
3514
703
|
__ref?: unknown;
|
|
3515
704
|
}> | undefined;
|
|
3516
|
-
ai?: {
|
|
3517
|
-
binding: string;
|
|
3518
|
-
} | undefined;
|
|
3519
|
-
vectorize?: Record<string, {
|
|
3520
|
-
indexName: string;
|
|
3521
|
-
}> | undefined;
|
|
3522
|
-
hyperdrive?: Record<string, {
|
|
3523
|
-
id: string;
|
|
3524
|
-
}> | undefined;
|
|
3525
|
-
browser?: {
|
|
3526
|
-
binding: string;
|
|
3527
|
-
} | undefined;
|
|
3528
|
-
analyticsEngine?: Record<string, {
|
|
3529
|
-
dataset: string;
|
|
3530
|
-
}> | undefined;
|
|
3531
|
-
sendEmail?: Record<string, {
|
|
3532
|
-
destinationAddress?: string | undefined;
|
|
3533
|
-
allowedDestinationAddresses?: string[] | undefined;
|
|
3534
|
-
allowedSenderAddresses?: string[] | undefined;
|
|
3535
|
-
}> | undefined;
|
|
3536
|
-
} | undefined;
|
|
3537
|
-
triggers?: {
|
|
3538
|
-
crons?: string[] | undefined;
|
|
3539
|
-
} | undefined;
|
|
3540
|
-
vars?: Record<string, string> | undefined;
|
|
3541
|
-
secrets?: Record<string, {
|
|
3542
|
-
required: boolean;
|
|
3543
|
-
}> | undefined;
|
|
3544
|
-
routes?: {
|
|
3545
|
-
pattern: string;
|
|
3546
|
-
zone_name?: string | undefined;
|
|
3547
|
-
zone_id?: string | undefined;
|
|
3548
|
-
custom_domain?: boolean | undefined;
|
|
3549
|
-
}[] | undefined;
|
|
3550
|
-
assets?: {
|
|
3551
|
-
directory: string;
|
|
3552
|
-
binding?: string | undefined;
|
|
3553
|
-
} | undefined;
|
|
3554
|
-
limits?: {
|
|
3555
|
-
cpu_ms?: number | undefined;
|
|
3556
|
-
} | undefined;
|
|
3557
|
-
observability?: {
|
|
3558
|
-
enabled?: boolean | undefined;
|
|
3559
|
-
head_sampling_rate?: number | undefined;
|
|
3560
|
-
} | undefined;
|
|
3561
|
-
migrations?: {
|
|
3562
|
-
tag: string;
|
|
3563
|
-
new_classes?: string[] | undefined;
|
|
3564
|
-
renamed_classes?: {
|
|
3565
|
-
from: string;
|
|
3566
|
-
to: string;
|
|
3567
|
-
}[] | undefined;
|
|
3568
|
-
deleted_classes?: string[] | undefined;
|
|
3569
|
-
new_sqlite_classes?: string[] | undefined;
|
|
3570
|
-
}[] | undefined;
|
|
3571
|
-
rolldown?: {
|
|
3572
|
-
target?: string | undefined;
|
|
3573
|
-
minify?: boolean | undefined;
|
|
3574
|
-
sourcemap?: boolean | undefined;
|
|
3575
|
-
options?: DevflareRolldownOptions | undefined;
|
|
3576
|
-
} | undefined;
|
|
3577
|
-
vite?: z.objectOutputType<{
|
|
3578
|
-
/**
|
|
3579
|
-
* Devflare-level Vite plugin metadata sourced from devflare.config.ts.
|
|
3580
|
-
* Raw Vite plugin wiring still belongs in `vite.config.*`.
|
|
3581
|
-
*/
|
|
3582
|
-
plugins: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
3583
|
-
}, z.ZodUnknown, "strip"> | undefined;
|
|
3584
|
-
wrangler?: {
|
|
3585
|
-
passthrough?: Record<string, unknown> | undefined;
|
|
3586
|
-
} | undefined;
|
|
3587
|
-
}, {
|
|
3588
|
-
name?: string | undefined;
|
|
3589
|
-
compatibilityDate?: string | undefined;
|
|
3590
|
-
compatibilityFlags?: string[] | undefined;
|
|
3591
|
-
files?: {
|
|
3592
|
-
fetch?: string | false | undefined;
|
|
3593
|
-
queue?: string | false | undefined;
|
|
3594
|
-
scheduled?: string | false | undefined;
|
|
3595
|
-
email?: string | false | undefined;
|
|
3596
|
-
durableObjects?: string | false | undefined;
|
|
3597
|
-
entrypoints?: string | false | undefined;
|
|
3598
|
-
workflows?: string | false | undefined;
|
|
3599
|
-
routes?: false | {
|
|
3600
|
-
dir: string;
|
|
3601
|
-
prefix?: string | undefined;
|
|
705
|
+
ai?: {
|
|
706
|
+
binding: string;
|
|
3602
707
|
} | undefined;
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
708
|
+
vectorize?: Record<string, {
|
|
709
|
+
indexName: string;
|
|
710
|
+
}> | undefined;
|
|
711
|
+
hyperdrive?: Record<string, string | {
|
|
712
|
+
id: string;
|
|
713
|
+
} | {
|
|
714
|
+
name: string;
|
|
715
|
+
}> | undefined;
|
|
716
|
+
browser?: Record<string, string> | undefined;
|
|
717
|
+
analyticsEngine?: Record<string, {
|
|
718
|
+
dataset: string;
|
|
719
|
+
}> | undefined;
|
|
720
|
+
sendEmail?: Record<string, {
|
|
721
|
+
destinationAddress?: string | undefined;
|
|
722
|
+
allowedDestinationAddresses?: string[] | undefined;
|
|
723
|
+
allowedSenderAddresses?: string[] | undefined;
|
|
724
|
+
}> | undefined;
|
|
725
|
+
}, {
|
|
726
|
+
kv?: Record<string, string | {
|
|
727
|
+
id: string;
|
|
728
|
+
} | {
|
|
729
|
+
name: string;
|
|
730
|
+
}> | undefined;
|
|
3607
731
|
d1?: Record<string, string | {
|
|
3608
732
|
id: string;
|
|
3609
733
|
} | {
|
|
3610
734
|
name: string;
|
|
3611
735
|
}> | undefined;
|
|
3612
736
|
r2?: Record<string, string> | undefined;
|
|
3613
|
-
durableObjects?: Record<string, DurableObjectBindingInput> | undefined;
|
|
737
|
+
durableObjects?: Record<string, import("./schema-bindings").DurableObjectBindingInput> | undefined;
|
|
3614
738
|
queues?: {
|
|
3615
739
|
producers?: Record<string, string> | undefined;
|
|
3616
740
|
consumers?: {
|
|
@@ -3624,13 +748,9 @@ export declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3624
748
|
}[] | undefined;
|
|
3625
749
|
} | undefined;
|
|
3626
750
|
services?: Record<string, {
|
|
3627
|
-
/** Target worker/service name */
|
|
3628
751
|
service: string;
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
/** Optional entrypoint class name for named exports */
|
|
3632
|
-
entrypoint?: string | undefined;
|
|
3633
|
-
/** @internal Reference marker for ref() bindings */
|
|
752
|
+
environment?: string;
|
|
753
|
+
entrypoint?: string;
|
|
3634
754
|
__ref?: unknown;
|
|
3635
755
|
}> | undefined;
|
|
3636
756
|
ai?: {
|
|
@@ -3639,12 +759,12 @@ export declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3639
759
|
vectorize?: Record<string, {
|
|
3640
760
|
indexName: string;
|
|
3641
761
|
}> | undefined;
|
|
3642
|
-
hyperdrive?: Record<string, {
|
|
762
|
+
hyperdrive?: Record<string, string | {
|
|
3643
763
|
id: string;
|
|
764
|
+
} | {
|
|
765
|
+
name: string;
|
|
3644
766
|
}> | undefined;
|
|
3645
|
-
browser?:
|
|
3646
|
-
binding: string;
|
|
3647
|
-
} | undefined;
|
|
767
|
+
browser?: Record<string, string> | undefined;
|
|
3648
768
|
analyticsEngine?: Record<string, {
|
|
3649
769
|
dataset: string;
|
|
3650
770
|
}> | undefined;
|
|
@@ -3653,238 +773,136 @@ export declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3653
773
|
allowedDestinationAddresses?: string[] | undefined;
|
|
3654
774
|
allowedSenderAddresses?: string[] | undefined;
|
|
3655
775
|
}> | undefined;
|
|
3656
|
-
}
|
|
3657
|
-
triggers
|
|
776
|
+
}>>>;
|
|
777
|
+
triggers: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
778
|
+
crons: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
779
|
+
}, "strip", z.ZodTypeAny, {
|
|
3658
780
|
crons?: string[] | undefined;
|
|
3659
|
-
}
|
|
3660
|
-
|
|
3661
|
-
|
|
781
|
+
}, {
|
|
782
|
+
crons?: string[] | undefined;
|
|
783
|
+
}>>>;
|
|
784
|
+
vars: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
785
|
+
secrets: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
786
|
+
required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
787
|
+
}, "strip", z.ZodTypeAny, {
|
|
788
|
+
required: boolean;
|
|
789
|
+
}, {
|
|
3662
790
|
required?: boolean | undefined;
|
|
3663
|
-
}
|
|
3664
|
-
routes
|
|
791
|
+
}>>>>;
|
|
792
|
+
routes: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
793
|
+
pattern: z.ZodString;
|
|
794
|
+
zone_name: z.ZodOptional<z.ZodString>;
|
|
795
|
+
zone_id: z.ZodOptional<z.ZodString>;
|
|
796
|
+
custom_domain: z.ZodOptional<z.ZodBoolean>;
|
|
797
|
+
}, "strip", z.ZodTypeAny, {
|
|
3665
798
|
pattern: string;
|
|
3666
799
|
zone_name?: string | undefined;
|
|
3667
800
|
zone_id?: string | undefined;
|
|
3668
801
|
custom_domain?: boolean | undefined;
|
|
3669
|
-
}
|
|
3670
|
-
|
|
802
|
+
}, {
|
|
803
|
+
pattern: string;
|
|
804
|
+
zone_name?: string | undefined;
|
|
805
|
+
zone_id?: string | undefined;
|
|
806
|
+
custom_domain?: boolean | undefined;
|
|
807
|
+
}>, "many">>>;
|
|
808
|
+
assets: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
809
|
+
directory: z.ZodString;
|
|
810
|
+
binding: z.ZodOptional<z.ZodString>;
|
|
811
|
+
}, "strip", z.ZodTypeAny, {
|
|
3671
812
|
directory: string;
|
|
3672
813
|
binding?: string | undefined;
|
|
3673
|
-
}
|
|
3674
|
-
|
|
814
|
+
}, {
|
|
815
|
+
directory: string;
|
|
816
|
+
binding?: string | undefined;
|
|
817
|
+
}>>>;
|
|
818
|
+
limits: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
819
|
+
cpu_ms: z.ZodOptional<z.ZodNumber>;
|
|
820
|
+
}, "strip", z.ZodTypeAny, {
|
|
3675
821
|
cpu_ms?: number | undefined;
|
|
3676
|
-
}
|
|
3677
|
-
|
|
822
|
+
}, {
|
|
823
|
+
cpu_ms?: number | undefined;
|
|
824
|
+
}>>>;
|
|
825
|
+
observability: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
826
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
827
|
+
head_sampling_rate: z.ZodOptional<z.ZodNumber>;
|
|
828
|
+
}, "strip", z.ZodTypeAny, {
|
|
3678
829
|
enabled?: boolean | undefined;
|
|
3679
830
|
head_sampling_rate?: number | undefined;
|
|
3680
|
-
}
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
rolldownOptions?: DevflareRolldownOptions | undefined;
|
|
3750
|
-
}, {
|
|
3751
|
-
target?: string | undefined;
|
|
3752
|
-
minify?: boolean | undefined;
|
|
3753
|
-
sourcemap?: boolean | undefined;
|
|
3754
|
-
rolldownOptions?: DevflareRolldownOptions | undefined;
|
|
3755
|
-
}>>;
|
|
3756
|
-
/**
|
|
3757
|
-
* @deprecated Use `vite.plugins` instead.
|
|
3758
|
-
*/
|
|
3759
|
-
plugins: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
3760
|
-
}, "strip", z.ZodTypeAny, {
|
|
3761
|
-
name: string;
|
|
3762
|
-
accountId?: string | undefined;
|
|
3763
|
-
compatibilityDate: string;
|
|
3764
|
-
compatibilityFlags: string[];
|
|
3765
|
-
files?: {
|
|
3766
|
-
fetch?: string | false | undefined;
|
|
3767
|
-
queue?: string | false | undefined;
|
|
3768
|
-
scheduled?: string | false | undefined;
|
|
3769
|
-
email?: string | false | undefined;
|
|
3770
|
-
durableObjects?: string | false | undefined;
|
|
3771
|
-
entrypoints?: string | false | undefined;
|
|
3772
|
-
workflows?: string | false | undefined;
|
|
3773
|
-
routes?: false | {
|
|
3774
|
-
dir: string;
|
|
3775
|
-
prefix?: string | undefined;
|
|
3776
|
-
} | undefined;
|
|
3777
|
-
transport?: string | null | undefined;
|
|
3778
|
-
} | undefined;
|
|
3779
|
-
bindings?: {
|
|
3780
|
-
kv?: Record<string, string> | undefined;
|
|
3781
|
-
d1?: Record<string, string | {
|
|
3782
|
-
id: string;
|
|
3783
|
-
} | {
|
|
3784
|
-
name: string;
|
|
3785
|
-
}> | undefined;
|
|
3786
|
-
r2?: Record<string, string> | undefined;
|
|
3787
|
-
durableObjects?: Record<string, DurableObjectBindingInput> | undefined;
|
|
3788
|
-
queues?: {
|
|
3789
|
-
producers?: Record<string, string> | undefined;
|
|
3790
|
-
consumers?: {
|
|
3791
|
-
queue: string;
|
|
3792
|
-
maxBatchSize?: number | undefined;
|
|
3793
|
-
maxBatchTimeout?: number | undefined;
|
|
3794
|
-
maxRetries?: number | undefined;
|
|
3795
|
-
deadLetterQueue?: string | undefined;
|
|
3796
|
-
maxConcurrency?: number | undefined;
|
|
3797
|
-
retryDelay?: number | undefined;
|
|
3798
|
-
}[] | undefined;
|
|
3799
|
-
} | undefined;
|
|
3800
|
-
services?: Record<string, {
|
|
3801
|
-
/** Target worker/service name */
|
|
3802
|
-
service: string;
|
|
3803
|
-
/** Optional environment (staging, production, etc.) */
|
|
3804
|
-
environment?: string | undefined;
|
|
3805
|
-
/** Optional entrypoint class name for named exports */
|
|
3806
|
-
entrypoint?: string | undefined;
|
|
3807
|
-
/** @internal Reference marker for ref() bindings */
|
|
3808
|
-
__ref?: unknown;
|
|
3809
|
-
}> | undefined;
|
|
3810
|
-
ai?: {
|
|
3811
|
-
binding: string;
|
|
3812
|
-
} | undefined;
|
|
3813
|
-
vectorize?: Record<string, {
|
|
3814
|
-
indexName: string;
|
|
3815
|
-
}> | undefined;
|
|
3816
|
-
hyperdrive?: Record<string, {
|
|
3817
|
-
id: string;
|
|
3818
|
-
}> | undefined;
|
|
3819
|
-
browser?: {
|
|
3820
|
-
binding: string;
|
|
3821
|
-
} | undefined;
|
|
3822
|
-
analyticsEngine?: Record<string, {
|
|
3823
|
-
dataset: string;
|
|
3824
|
-
}> | undefined;
|
|
3825
|
-
sendEmail?: Record<string, {
|
|
3826
|
-
destinationAddress?: string | undefined;
|
|
3827
|
-
allowedDestinationAddresses?: string[] | undefined;
|
|
3828
|
-
allowedSenderAddresses?: string[] | undefined;
|
|
3829
|
-
}> | undefined;
|
|
3830
|
-
} | undefined;
|
|
3831
|
-
triggers?: {
|
|
3832
|
-
crons?: string[] | undefined;
|
|
3833
|
-
} | undefined;
|
|
3834
|
-
vars?: Record<string, string> | undefined;
|
|
3835
|
-
secrets?: Record<string, {
|
|
3836
|
-
required: boolean;
|
|
3837
|
-
}> | undefined;
|
|
3838
|
-
routes?: {
|
|
3839
|
-
pattern: string;
|
|
3840
|
-
zone_name?: string | undefined;
|
|
3841
|
-
zone_id?: string | undefined;
|
|
3842
|
-
custom_domain?: boolean | undefined;
|
|
3843
|
-
}[] | undefined;
|
|
3844
|
-
wsRoutes?: {
|
|
3845
|
-
pattern: string;
|
|
3846
|
-
doNamespace: string;
|
|
3847
|
-
idParam: string;
|
|
3848
|
-
forwardPath: string;
|
|
3849
|
-
}[] | undefined;
|
|
3850
|
-
assets?: {
|
|
3851
|
-
directory: string;
|
|
3852
|
-
binding?: string | undefined;
|
|
3853
|
-
} | undefined;
|
|
3854
|
-
limits?: {
|
|
3855
|
-
cpu_ms?: number | undefined;
|
|
3856
|
-
} | undefined;
|
|
3857
|
-
observability?: {
|
|
3858
|
-
enabled?: boolean | undefined;
|
|
3859
|
-
head_sampling_rate?: number | undefined;
|
|
3860
|
-
} | undefined;
|
|
3861
|
-
migrations?: {
|
|
3862
|
-
tag: string;
|
|
3863
|
-
new_classes?: string[] | undefined;
|
|
3864
|
-
renamed_classes?: {
|
|
3865
|
-
from: string;
|
|
3866
|
-
to: string;
|
|
3867
|
-
}[] | undefined;
|
|
3868
|
-
deleted_classes?: string[] | undefined;
|
|
3869
|
-
new_sqlite_classes?: string[] | undefined;
|
|
3870
|
-
}[] | undefined;
|
|
3871
|
-
rolldown?: {
|
|
3872
|
-
target?: string | undefined;
|
|
3873
|
-
minify?: boolean | undefined;
|
|
3874
|
-
sourcemap?: boolean | undefined;
|
|
3875
|
-
options?: DevflareRolldownOptions | undefined;
|
|
3876
|
-
} | undefined;
|
|
3877
|
-
vite?: z.objectOutputType<{
|
|
3878
|
-
/**
|
|
3879
|
-
* Devflare-level Vite plugin metadata sourced from devflare.config.ts.
|
|
3880
|
-
* Raw Vite plugin wiring still belongs in `vite.config.*`.
|
|
3881
|
-
*/
|
|
3882
|
-
plugins: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
3883
|
-
}, z.ZodUnknown, "strip"> | undefined;
|
|
3884
|
-
env?: Record<string, {
|
|
831
|
+
}, {
|
|
832
|
+
enabled?: boolean | undefined;
|
|
833
|
+
head_sampling_rate?: number | undefined;
|
|
834
|
+
}>>>;
|
|
835
|
+
migrations: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
836
|
+
tag: z.ZodString;
|
|
837
|
+
new_classes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
838
|
+
renamed_classes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
839
|
+
from: z.ZodString;
|
|
840
|
+
to: z.ZodString;
|
|
841
|
+
}, "strip", z.ZodTypeAny, {
|
|
842
|
+
from: string;
|
|
843
|
+
to: string;
|
|
844
|
+
}, {
|
|
845
|
+
from: string;
|
|
846
|
+
to: string;
|
|
847
|
+
}>, "many">>;
|
|
848
|
+
deleted_classes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
849
|
+
new_sqlite_classes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
850
|
+
}, "strip", z.ZodTypeAny, {
|
|
851
|
+
tag: string;
|
|
852
|
+
new_classes?: string[] | undefined;
|
|
853
|
+
renamed_classes?: {
|
|
854
|
+
from: string;
|
|
855
|
+
to: string;
|
|
856
|
+
}[] | undefined;
|
|
857
|
+
deleted_classes?: string[] | undefined;
|
|
858
|
+
new_sqlite_classes?: string[] | undefined;
|
|
859
|
+
}, {
|
|
860
|
+
tag: string;
|
|
861
|
+
new_classes?: string[] | undefined;
|
|
862
|
+
renamed_classes?: {
|
|
863
|
+
from: string;
|
|
864
|
+
to: string;
|
|
865
|
+
}[] | undefined;
|
|
866
|
+
deleted_classes?: string[] | undefined;
|
|
867
|
+
new_sqlite_classes?: string[] | undefined;
|
|
868
|
+
}>, "many">>>;
|
|
869
|
+
rolldown: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
870
|
+
target: z.ZodOptional<z.ZodString>;
|
|
871
|
+
minify: z.ZodOptional<z.ZodBoolean>;
|
|
872
|
+
sourcemap: z.ZodOptional<z.ZodBoolean>;
|
|
873
|
+
options: z.ZodOptional<z.ZodType<import("./schema-build").DevflareRolldownOptions, z.ZodTypeDef, import("./schema-build").DevflareRolldownOptions>>;
|
|
874
|
+
}, "strip", z.ZodTypeAny, {
|
|
875
|
+
target?: string | undefined;
|
|
876
|
+
minify?: boolean | undefined;
|
|
877
|
+
sourcemap?: boolean | undefined;
|
|
878
|
+
options?: import("./schema-build").DevflareRolldownOptions | undefined;
|
|
879
|
+
}, {
|
|
880
|
+
target?: string | undefined;
|
|
881
|
+
minify?: boolean | undefined;
|
|
882
|
+
sourcemap?: boolean | undefined;
|
|
883
|
+
options?: import("./schema-build").DevflareRolldownOptions | undefined;
|
|
884
|
+
}>>>;
|
|
885
|
+
vite: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
886
|
+
plugins: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
887
|
+
}, "strip", z.ZodUnknown, z.objectOutputType<{
|
|
888
|
+
plugins: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
889
|
+
}, z.ZodUnknown, "strip">, z.objectInputType<{
|
|
890
|
+
plugins: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
891
|
+
}, z.ZodUnknown, "strip">>>>;
|
|
892
|
+
wrangler: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
893
|
+
passthrough: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
894
|
+
}, "strip", z.ZodTypeAny, {
|
|
895
|
+
passthrough?: Record<string, unknown> | undefined;
|
|
896
|
+
}, {
|
|
897
|
+
passthrough?: Record<string, unknown> | undefined;
|
|
898
|
+
}>>>;
|
|
899
|
+
}, "strict", z.ZodTypeAny, {
|
|
3885
900
|
name?: string | undefined;
|
|
3886
901
|
compatibilityDate?: string | undefined;
|
|
3887
902
|
compatibilityFlags?: string[] | undefined;
|
|
903
|
+
previews?: {
|
|
904
|
+
includeCrons: boolean;
|
|
905
|
+
} | undefined;
|
|
3888
906
|
files?: {
|
|
3889
907
|
fetch?: string | false | undefined;
|
|
3890
908
|
queue?: string | false | undefined;
|
|
@@ -3900,14 +918,18 @@ export declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3900
918
|
transport?: string | null | undefined;
|
|
3901
919
|
} | undefined;
|
|
3902
920
|
bindings?: {
|
|
3903
|
-
kv?: Record<string, string
|
|
921
|
+
kv?: Record<string, string | {
|
|
922
|
+
id: string;
|
|
923
|
+
} | {
|
|
924
|
+
name: string;
|
|
925
|
+
}> | undefined;
|
|
3904
926
|
d1?: Record<string, string | {
|
|
3905
927
|
id: string;
|
|
3906
928
|
} | {
|
|
3907
929
|
name: string;
|
|
3908
930
|
}> | undefined;
|
|
3909
931
|
r2?: Record<string, string> | undefined;
|
|
3910
|
-
durableObjects?: Record<string, DurableObjectBindingInput> | undefined;
|
|
932
|
+
durableObjects?: Record<string, import("./schema-bindings").DurableObjectBindingInput> | undefined;
|
|
3911
933
|
queues?: {
|
|
3912
934
|
producers?: Record<string, string> | undefined;
|
|
3913
935
|
consumers?: {
|
|
@@ -3921,13 +943,9 @@ export declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3921
943
|
}[] | undefined;
|
|
3922
944
|
} | undefined;
|
|
3923
945
|
services?: Record<string, {
|
|
3924
|
-
/** Target worker/service name */
|
|
3925
946
|
service: string;
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
/** Optional entrypoint class name for named exports */
|
|
3929
|
-
entrypoint?: string | undefined;
|
|
3930
|
-
/** @internal Reference marker for ref() bindings */
|
|
947
|
+
environment?: string;
|
|
948
|
+
entrypoint?: string;
|
|
3931
949
|
__ref?: unknown;
|
|
3932
950
|
}> | undefined;
|
|
3933
951
|
ai?: {
|
|
@@ -3936,12 +954,12 @@ export declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3936
954
|
vectorize?: Record<string, {
|
|
3937
955
|
indexName: string;
|
|
3938
956
|
}> | undefined;
|
|
3939
|
-
hyperdrive?: Record<string, {
|
|
957
|
+
hyperdrive?: Record<string, string | {
|
|
3940
958
|
id: string;
|
|
959
|
+
} | {
|
|
960
|
+
name: string;
|
|
3941
961
|
}> | undefined;
|
|
3942
|
-
browser?:
|
|
3943
|
-
binding: string;
|
|
3944
|
-
} | undefined;
|
|
962
|
+
browser?: Record<string, string> | undefined;
|
|
3945
963
|
analyticsEngine?: Record<string, {
|
|
3946
964
|
dataset: string;
|
|
3947
965
|
}> | undefined;
|
|
@@ -3989,157 +1007,21 @@ export declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3989
1007
|
target?: string | undefined;
|
|
3990
1008
|
minify?: boolean | undefined;
|
|
3991
1009
|
sourcemap?: boolean | undefined;
|
|
3992
|
-
options?: DevflareRolldownOptions | undefined;
|
|
1010
|
+
options?: import("./schema-build").DevflareRolldownOptions | undefined;
|
|
3993
1011
|
} | undefined;
|
|
3994
1012
|
vite?: z.objectOutputType<{
|
|
3995
|
-
/**
|
|
3996
|
-
* Devflare-level Vite plugin metadata sourced from devflare.config.ts.
|
|
3997
|
-
* Raw Vite plugin wiring still belongs in `vite.config.*`.
|
|
3998
|
-
*/
|
|
3999
1013
|
plugins: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
4000
1014
|
}, z.ZodUnknown, "strip"> | undefined;
|
|
4001
1015
|
wrangler?: {
|
|
4002
1016
|
passthrough?: Record<string, unknown> | undefined;
|
|
4003
1017
|
} | undefined;
|
|
4004
|
-
}
|
|
4005
|
-
wrangler?: {
|
|
4006
|
-
passthrough?: Record<string, unknown> | undefined;
|
|
4007
|
-
} | undefined;
|
|
4008
|
-
build?: {
|
|
4009
|
-
target?: string | undefined;
|
|
4010
|
-
minify?: boolean | undefined;
|
|
4011
|
-
sourcemap?: boolean | undefined;
|
|
4012
|
-
rolldownOptions?: DevflareRolldownOptions | undefined;
|
|
4013
|
-
} | undefined;
|
|
4014
|
-
plugins?: unknown[] | undefined;
|
|
4015
|
-
}, {
|
|
4016
|
-
name: string;
|
|
4017
|
-
accountId?: string | undefined;
|
|
4018
|
-
compatibilityDate?: string | undefined;
|
|
4019
|
-
compatibilityFlags?: string[] | undefined;
|
|
4020
|
-
files?: {
|
|
4021
|
-
fetch?: string | false | undefined;
|
|
4022
|
-
queue?: string | false | undefined;
|
|
4023
|
-
scheduled?: string | false | undefined;
|
|
4024
|
-
email?: string | false | undefined;
|
|
4025
|
-
durableObjects?: string | false | undefined;
|
|
4026
|
-
entrypoints?: string | false | undefined;
|
|
4027
|
-
workflows?: string | false | undefined;
|
|
4028
|
-
routes?: false | {
|
|
4029
|
-
dir: string;
|
|
4030
|
-
prefix?: string | undefined;
|
|
4031
|
-
} | undefined;
|
|
4032
|
-
transport?: string | null | undefined;
|
|
4033
|
-
} | undefined;
|
|
4034
|
-
bindings?: {
|
|
4035
|
-
kv?: Record<string, string> | undefined;
|
|
4036
|
-
d1?: Record<string, string | {
|
|
4037
|
-
id: string;
|
|
4038
|
-
} | {
|
|
4039
|
-
name: string;
|
|
4040
|
-
}> | undefined;
|
|
4041
|
-
r2?: Record<string, string> | undefined;
|
|
4042
|
-
durableObjects?: Record<string, DurableObjectBindingInput> | undefined;
|
|
4043
|
-
queues?: {
|
|
4044
|
-
producers?: Record<string, string> | undefined;
|
|
4045
|
-
consumers?: {
|
|
4046
|
-
queue: string;
|
|
4047
|
-
maxBatchSize?: number | undefined;
|
|
4048
|
-
maxBatchTimeout?: number | undefined;
|
|
4049
|
-
maxRetries?: number | undefined;
|
|
4050
|
-
deadLetterQueue?: string | undefined;
|
|
4051
|
-
maxConcurrency?: number | undefined;
|
|
4052
|
-
retryDelay?: number | undefined;
|
|
4053
|
-
}[] | undefined;
|
|
4054
|
-
} | undefined;
|
|
4055
|
-
services?: Record<string, {
|
|
4056
|
-
/** Target worker/service name */
|
|
4057
|
-
service: string;
|
|
4058
|
-
/** Optional environment (staging, production, etc.) */
|
|
4059
|
-
environment?: string | undefined;
|
|
4060
|
-
/** Optional entrypoint class name for named exports */
|
|
4061
|
-
entrypoint?: string | undefined;
|
|
4062
|
-
/** @internal Reference marker for ref() bindings */
|
|
4063
|
-
__ref?: unknown;
|
|
4064
|
-
}> | undefined;
|
|
4065
|
-
ai?: {
|
|
4066
|
-
binding: string;
|
|
4067
|
-
} | undefined;
|
|
4068
|
-
vectorize?: Record<string, {
|
|
4069
|
-
indexName: string;
|
|
4070
|
-
}> | undefined;
|
|
4071
|
-
hyperdrive?: Record<string, {
|
|
4072
|
-
id: string;
|
|
4073
|
-
}> | undefined;
|
|
4074
|
-
browser?: {
|
|
4075
|
-
binding: string;
|
|
4076
|
-
} | undefined;
|
|
4077
|
-
analyticsEngine?: Record<string, {
|
|
4078
|
-
dataset: string;
|
|
4079
|
-
}> | undefined;
|
|
4080
|
-
sendEmail?: Record<string, {
|
|
4081
|
-
destinationAddress?: string | undefined;
|
|
4082
|
-
allowedDestinationAddresses?: string[] | undefined;
|
|
4083
|
-
allowedSenderAddresses?: string[] | undefined;
|
|
4084
|
-
}> | undefined;
|
|
4085
|
-
} | undefined;
|
|
4086
|
-
triggers?: {
|
|
4087
|
-
crons?: string[] | undefined;
|
|
4088
|
-
} | undefined;
|
|
4089
|
-
vars?: Record<string, string> | undefined;
|
|
4090
|
-
secrets?: Record<string, {
|
|
4091
|
-
required?: boolean | undefined;
|
|
4092
|
-
}> | undefined;
|
|
4093
|
-
routes?: {
|
|
4094
|
-
pattern: string;
|
|
4095
|
-
zone_name?: string | undefined;
|
|
4096
|
-
zone_id?: string | undefined;
|
|
4097
|
-
custom_domain?: boolean | undefined;
|
|
4098
|
-
}[] | undefined;
|
|
4099
|
-
wsRoutes?: {
|
|
4100
|
-
pattern: string;
|
|
4101
|
-
doNamespace: string;
|
|
4102
|
-
idParam?: string | undefined;
|
|
4103
|
-
forwardPath?: string | undefined;
|
|
4104
|
-
}[] | undefined;
|
|
4105
|
-
assets?: {
|
|
4106
|
-
directory: string;
|
|
4107
|
-
binding?: string | undefined;
|
|
4108
|
-
} | undefined;
|
|
4109
|
-
limits?: {
|
|
4110
|
-
cpu_ms?: number | undefined;
|
|
4111
|
-
} | undefined;
|
|
4112
|
-
observability?: {
|
|
4113
|
-
enabled?: boolean | undefined;
|
|
4114
|
-
head_sampling_rate?: number | undefined;
|
|
4115
|
-
} | undefined;
|
|
4116
|
-
migrations?: {
|
|
4117
|
-
tag: string;
|
|
4118
|
-
new_classes?: string[] | undefined;
|
|
4119
|
-
renamed_classes?: {
|
|
4120
|
-
from: string;
|
|
4121
|
-
to: string;
|
|
4122
|
-
}[] | undefined;
|
|
4123
|
-
deleted_classes?: string[] | undefined;
|
|
4124
|
-
new_sqlite_classes?: string[] | undefined;
|
|
4125
|
-
}[] | undefined;
|
|
4126
|
-
rolldown?: {
|
|
4127
|
-
target?: string | undefined;
|
|
4128
|
-
minify?: boolean | undefined;
|
|
4129
|
-
sourcemap?: boolean | undefined;
|
|
4130
|
-
options?: DevflareRolldownOptions | undefined;
|
|
4131
|
-
} | undefined;
|
|
4132
|
-
vite?: z.objectInputType<{
|
|
4133
|
-
/**
|
|
4134
|
-
* Devflare-level Vite plugin metadata sourced from devflare.config.ts.
|
|
4135
|
-
* Raw Vite plugin wiring still belongs in `vite.config.*`.
|
|
4136
|
-
*/
|
|
4137
|
-
plugins: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
4138
|
-
}, z.ZodUnknown, "strip"> | undefined;
|
|
4139
|
-
env?: Record<string, {
|
|
1018
|
+
}, {
|
|
4140
1019
|
name?: string | undefined;
|
|
4141
1020
|
compatibilityDate?: string | undefined;
|
|
4142
1021
|
compatibilityFlags?: string[] | undefined;
|
|
1022
|
+
previews?: {
|
|
1023
|
+
includeCrons?: boolean | undefined;
|
|
1024
|
+
} | undefined;
|
|
4143
1025
|
files?: {
|
|
4144
1026
|
fetch?: string | false | undefined;
|
|
4145
1027
|
queue?: string | false | undefined;
|
|
@@ -4155,14 +1037,18 @@ export declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4155
1037
|
transport?: string | null | undefined;
|
|
4156
1038
|
} | undefined;
|
|
4157
1039
|
bindings?: {
|
|
4158
|
-
kv?: Record<string, string
|
|
1040
|
+
kv?: Record<string, string | {
|
|
1041
|
+
id: string;
|
|
1042
|
+
} | {
|
|
1043
|
+
name: string;
|
|
1044
|
+
}> | undefined;
|
|
4159
1045
|
d1?: Record<string, string | {
|
|
4160
1046
|
id: string;
|
|
4161
1047
|
} | {
|
|
4162
1048
|
name: string;
|
|
4163
1049
|
}> | undefined;
|
|
4164
1050
|
r2?: Record<string, string> | undefined;
|
|
4165
|
-
durableObjects?: Record<string, DurableObjectBindingInput> | undefined;
|
|
1051
|
+
durableObjects?: Record<string, import("./schema-bindings").DurableObjectBindingInput> | undefined;
|
|
4166
1052
|
queues?: {
|
|
4167
1053
|
producers?: Record<string, string> | undefined;
|
|
4168
1054
|
consumers?: {
|
|
@@ -4176,13 +1062,9 @@ export declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4176
1062
|
}[] | undefined;
|
|
4177
1063
|
} | undefined;
|
|
4178
1064
|
services?: Record<string, {
|
|
4179
|
-
/** Target worker/service name */
|
|
4180
1065
|
service: string;
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
/** Optional entrypoint class name for named exports */
|
|
4184
|
-
entrypoint?: string | undefined;
|
|
4185
|
-
/** @internal Reference marker for ref() bindings */
|
|
1066
|
+
environment?: string;
|
|
1067
|
+
entrypoint?: string;
|
|
4186
1068
|
__ref?: unknown;
|
|
4187
1069
|
}> | undefined;
|
|
4188
1070
|
ai?: {
|
|
@@ -4191,12 +1073,12 @@ export declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4191
1073
|
vectorize?: Record<string, {
|
|
4192
1074
|
indexName: string;
|
|
4193
1075
|
}> | undefined;
|
|
4194
|
-
hyperdrive?: Record<string, {
|
|
1076
|
+
hyperdrive?: Record<string, string | {
|
|
4195
1077
|
id: string;
|
|
1078
|
+
} | {
|
|
1079
|
+
name: string;
|
|
4196
1080
|
}> | undefined;
|
|
4197
|
-
browser?:
|
|
4198
|
-
binding: string;
|
|
4199
|
-
} | undefined;
|
|
1081
|
+
browser?: Record<string, string> | undefined;
|
|
4200
1082
|
analyticsEngine?: Record<string, {
|
|
4201
1083
|
dataset: string;
|
|
4202
1084
|
}> | undefined;
|
|
@@ -4244,41 +1126,31 @@ export declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4244
1126
|
target?: string | undefined;
|
|
4245
1127
|
minify?: boolean | undefined;
|
|
4246
1128
|
sourcemap?: boolean | undefined;
|
|
4247
|
-
options?: DevflareRolldownOptions | undefined;
|
|
1129
|
+
options?: import("./schema-build").DevflareRolldownOptions | undefined;
|
|
4248
1130
|
} | undefined;
|
|
4249
1131
|
vite?: z.objectInputType<{
|
|
4250
|
-
/**
|
|
4251
|
-
* Devflare-level Vite plugin metadata sourced from devflare.config.ts.
|
|
4252
|
-
* Raw Vite plugin wiring still belongs in `vite.config.*`.
|
|
4253
|
-
*/
|
|
4254
1132
|
plugins: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
4255
1133
|
}, z.ZodUnknown, "strip"> | undefined;
|
|
4256
1134
|
wrangler?: {
|
|
4257
1135
|
passthrough?: Record<string, unknown> | undefined;
|
|
4258
1136
|
} | undefined;
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
} | undefined;
|
|
4265
|
-
plugins?: unknown[] | undefined;
|
|
4266
|
-
}> | undefined;
|
|
4267
|
-
wrangler?: {
|
|
1137
|
+
}>>>;
|
|
1138
|
+
/** Wrangler passthrough for unsupported options. */
|
|
1139
|
+
wrangler: z.ZodOptional<z.ZodObject<{
|
|
1140
|
+
passthrough: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1141
|
+
}, "strip", z.ZodTypeAny, {
|
|
4268
1142
|
passthrough?: Record<string, unknown> | undefined;
|
|
4269
|
-
}
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
sourcemap?: boolean | undefined;
|
|
4274
|
-
rolldownOptions?: DevflareRolldownOptions | undefined;
|
|
4275
|
-
} | undefined;
|
|
4276
|
-
plugins?: unknown[] | undefined;
|
|
4277
|
-
}>, {
|
|
1143
|
+
}, {
|
|
1144
|
+
passthrough?: Record<string, unknown> | undefined;
|
|
1145
|
+
}>>;
|
|
1146
|
+
}, "strict", z.ZodTypeAny, {
|
|
4278
1147
|
name: string;
|
|
4279
1148
|
accountId?: string | undefined;
|
|
4280
1149
|
compatibilityDate: string;
|
|
4281
1150
|
compatibilityFlags: string[];
|
|
1151
|
+
previews?: {
|
|
1152
|
+
includeCrons: boolean;
|
|
1153
|
+
} | undefined;
|
|
4282
1154
|
files?: {
|
|
4283
1155
|
fetch?: string | false | undefined;
|
|
4284
1156
|
queue?: string | false | undefined;
|
|
@@ -4294,14 +1166,18 @@ export declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4294
1166
|
transport?: string | null | undefined;
|
|
4295
1167
|
} | undefined;
|
|
4296
1168
|
bindings?: {
|
|
4297
|
-
kv?: Record<string, string
|
|
1169
|
+
kv?: Record<string, string | {
|
|
1170
|
+
id: string;
|
|
1171
|
+
} | {
|
|
1172
|
+
name: string;
|
|
1173
|
+
}> | undefined;
|
|
4298
1174
|
d1?: Record<string, string | {
|
|
4299
1175
|
id: string;
|
|
4300
1176
|
} | {
|
|
4301
1177
|
name: string;
|
|
4302
1178
|
}> | undefined;
|
|
4303
1179
|
r2?: Record<string, string> | undefined;
|
|
4304
|
-
durableObjects?: Record<string, DurableObjectBindingInput> | undefined;
|
|
1180
|
+
durableObjects?: Record<string, import("./schema-bindings").DurableObjectBindingInput> | undefined;
|
|
4305
1181
|
queues?: {
|
|
4306
1182
|
producers?: Record<string, string> | undefined;
|
|
4307
1183
|
consumers?: {
|
|
@@ -4315,13 +1191,9 @@ export declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4315
1191
|
}[] | undefined;
|
|
4316
1192
|
} | undefined;
|
|
4317
1193
|
services?: Record<string, {
|
|
4318
|
-
/** Target worker/service name */
|
|
4319
1194
|
service: string;
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
/** Optional entrypoint class name for named exports */
|
|
4323
|
-
entrypoint?: string | undefined;
|
|
4324
|
-
/** @internal Reference marker for ref() bindings */
|
|
1195
|
+
environment?: string;
|
|
1196
|
+
entrypoint?: string;
|
|
4325
1197
|
__ref?: unknown;
|
|
4326
1198
|
}> | undefined;
|
|
4327
1199
|
ai?: {
|
|
@@ -4330,12 +1202,12 @@ export declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4330
1202
|
vectorize?: Record<string, {
|
|
4331
1203
|
indexName: string;
|
|
4332
1204
|
}> | undefined;
|
|
4333
|
-
hyperdrive?: Record<string, {
|
|
1205
|
+
hyperdrive?: Record<string, string | {
|
|
4334
1206
|
id: string;
|
|
1207
|
+
} | {
|
|
1208
|
+
name: string;
|
|
4335
1209
|
}> | undefined;
|
|
4336
|
-
browser?:
|
|
4337
|
-
binding: string;
|
|
4338
|
-
} | undefined;
|
|
1210
|
+
browser?: Record<string, string> | undefined;
|
|
4339
1211
|
analyticsEngine?: Record<string, {
|
|
4340
1212
|
dataset: string;
|
|
4341
1213
|
}> | undefined;
|
|
@@ -4389,19 +1261,18 @@ export declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4389
1261
|
target?: string | undefined;
|
|
4390
1262
|
minify?: boolean | undefined;
|
|
4391
1263
|
sourcemap?: boolean | undefined;
|
|
4392
|
-
options?: DevflareRolldownOptions | undefined;
|
|
1264
|
+
options?: import("./schema-build").DevflareRolldownOptions | undefined;
|
|
4393
1265
|
} | undefined;
|
|
4394
1266
|
vite?: z.objectOutputType<{
|
|
4395
|
-
/**
|
|
4396
|
-
* Devflare-level Vite plugin metadata sourced from devflare.config.ts.
|
|
4397
|
-
* Raw Vite plugin wiring still belongs in `vite.config.*`.
|
|
4398
|
-
*/
|
|
4399
1267
|
plugins: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
4400
1268
|
}, z.ZodUnknown, "strip"> | undefined;
|
|
4401
1269
|
env?: Record<string, {
|
|
4402
1270
|
name?: string | undefined;
|
|
4403
1271
|
compatibilityDate?: string | undefined;
|
|
4404
1272
|
compatibilityFlags?: string[] | undefined;
|
|
1273
|
+
previews?: {
|
|
1274
|
+
includeCrons: boolean;
|
|
1275
|
+
} | undefined;
|
|
4405
1276
|
files?: {
|
|
4406
1277
|
fetch?: string | false | undefined;
|
|
4407
1278
|
queue?: string | false | undefined;
|
|
@@ -4417,14 +1288,18 @@ export declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4417
1288
|
transport?: string | null | undefined;
|
|
4418
1289
|
} | undefined;
|
|
4419
1290
|
bindings?: {
|
|
4420
|
-
kv?: Record<string, string
|
|
1291
|
+
kv?: Record<string, string | {
|
|
1292
|
+
id: string;
|
|
1293
|
+
} | {
|
|
1294
|
+
name: string;
|
|
1295
|
+
}> | undefined;
|
|
4421
1296
|
d1?: Record<string, string | {
|
|
4422
1297
|
id: string;
|
|
4423
1298
|
} | {
|
|
4424
1299
|
name: string;
|
|
4425
1300
|
}> | undefined;
|
|
4426
1301
|
r2?: Record<string, string> | undefined;
|
|
4427
|
-
durableObjects?: Record<string, DurableObjectBindingInput> | undefined;
|
|
1302
|
+
durableObjects?: Record<string, import("./schema-bindings").DurableObjectBindingInput> | undefined;
|
|
4428
1303
|
queues?: {
|
|
4429
1304
|
producers?: Record<string, string> | undefined;
|
|
4430
1305
|
consumers?: {
|
|
@@ -4438,13 +1313,9 @@ export declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4438
1313
|
}[] | undefined;
|
|
4439
1314
|
} | undefined;
|
|
4440
1315
|
services?: Record<string, {
|
|
4441
|
-
/** Target worker/service name */
|
|
4442
1316
|
service: string;
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
/** Optional entrypoint class name for named exports */
|
|
4446
|
-
entrypoint?: string | undefined;
|
|
4447
|
-
/** @internal Reference marker for ref() bindings */
|
|
1317
|
+
environment?: string;
|
|
1318
|
+
entrypoint?: string;
|
|
4448
1319
|
__ref?: unknown;
|
|
4449
1320
|
}> | undefined;
|
|
4450
1321
|
ai?: {
|
|
@@ -4453,12 +1324,12 @@ export declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4453
1324
|
vectorize?: Record<string, {
|
|
4454
1325
|
indexName: string;
|
|
4455
1326
|
}> | undefined;
|
|
4456
|
-
hyperdrive?: Record<string, {
|
|
1327
|
+
hyperdrive?: Record<string, string | {
|
|
4457
1328
|
id: string;
|
|
1329
|
+
} | {
|
|
1330
|
+
name: string;
|
|
4458
1331
|
}> | undefined;
|
|
4459
|
-
browser?:
|
|
4460
|
-
binding: string;
|
|
4461
|
-
} | undefined;
|
|
1332
|
+
browser?: Record<string, string> | undefined;
|
|
4462
1333
|
analyticsEngine?: Record<string, {
|
|
4463
1334
|
dataset: string;
|
|
4464
1335
|
}> | undefined;
|
|
@@ -4506,13 +1377,9 @@ export declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4506
1377
|
target?: string | undefined;
|
|
4507
1378
|
minify?: boolean | undefined;
|
|
4508
1379
|
sourcemap?: boolean | undefined;
|
|
4509
|
-
options?: DevflareRolldownOptions | undefined;
|
|
1380
|
+
options?: import("./schema-build").DevflareRolldownOptions | undefined;
|
|
4510
1381
|
} | undefined;
|
|
4511
1382
|
vite?: z.objectOutputType<{
|
|
4512
|
-
/**
|
|
4513
|
-
* Devflare-level Vite plugin metadata sourced from devflare.config.ts.
|
|
4514
|
-
* Raw Vite plugin wiring still belongs in `vite.config.*`.
|
|
4515
|
-
*/
|
|
4516
1383
|
plugins: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
4517
1384
|
}, z.ZodUnknown, "strip"> | undefined;
|
|
4518
1385
|
wrangler?: {
|
|
@@ -4527,6 +1394,9 @@ export declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4527
1394
|
accountId?: string | undefined;
|
|
4528
1395
|
compatibilityDate?: string | undefined;
|
|
4529
1396
|
compatibilityFlags?: string[] | undefined;
|
|
1397
|
+
previews?: {
|
|
1398
|
+
includeCrons?: boolean | undefined;
|
|
1399
|
+
} | undefined;
|
|
4530
1400
|
files?: {
|
|
4531
1401
|
fetch?: string | false | undefined;
|
|
4532
1402
|
queue?: string | false | undefined;
|
|
@@ -4542,14 +1412,18 @@ export declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4542
1412
|
transport?: string | null | undefined;
|
|
4543
1413
|
} | undefined;
|
|
4544
1414
|
bindings?: {
|
|
4545
|
-
kv?: Record<string, string
|
|
1415
|
+
kv?: Record<string, string | {
|
|
1416
|
+
id: string;
|
|
1417
|
+
} | {
|
|
1418
|
+
name: string;
|
|
1419
|
+
}> | undefined;
|
|
4546
1420
|
d1?: Record<string, string | {
|
|
4547
1421
|
id: string;
|
|
4548
1422
|
} | {
|
|
4549
1423
|
name: string;
|
|
4550
1424
|
}> | undefined;
|
|
4551
1425
|
r2?: Record<string, string> | undefined;
|
|
4552
|
-
durableObjects?: Record<string, DurableObjectBindingInput> | undefined;
|
|
1426
|
+
durableObjects?: Record<string, import("./schema-bindings").DurableObjectBindingInput> | undefined;
|
|
4553
1427
|
queues?: {
|
|
4554
1428
|
producers?: Record<string, string> | undefined;
|
|
4555
1429
|
consumers?: {
|
|
@@ -4563,13 +1437,9 @@ export declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4563
1437
|
}[] | undefined;
|
|
4564
1438
|
} | undefined;
|
|
4565
1439
|
services?: Record<string, {
|
|
4566
|
-
/** Target worker/service name */
|
|
4567
1440
|
service: string;
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
/** Optional entrypoint class name for named exports */
|
|
4571
|
-
entrypoint?: string | undefined;
|
|
4572
|
-
/** @internal Reference marker for ref() bindings */
|
|
1441
|
+
environment?: string;
|
|
1442
|
+
entrypoint?: string;
|
|
4573
1443
|
__ref?: unknown;
|
|
4574
1444
|
}> | undefined;
|
|
4575
1445
|
ai?: {
|
|
@@ -4578,12 +1448,12 @@ export declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4578
1448
|
vectorize?: Record<string, {
|
|
4579
1449
|
indexName: string;
|
|
4580
1450
|
}> | undefined;
|
|
4581
|
-
hyperdrive?: Record<string, {
|
|
1451
|
+
hyperdrive?: Record<string, string | {
|
|
4582
1452
|
id: string;
|
|
1453
|
+
} | {
|
|
1454
|
+
name: string;
|
|
4583
1455
|
}> | undefined;
|
|
4584
|
-
browser?:
|
|
4585
|
-
binding: string;
|
|
4586
|
-
} | undefined;
|
|
1456
|
+
browser?: Record<string, string> | undefined;
|
|
4587
1457
|
analyticsEngine?: Record<string, {
|
|
4588
1458
|
dataset: string;
|
|
4589
1459
|
}> | undefined;
|
|
@@ -4637,19 +1507,18 @@ export declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4637
1507
|
target?: string | undefined;
|
|
4638
1508
|
minify?: boolean | undefined;
|
|
4639
1509
|
sourcemap?: boolean | undefined;
|
|
4640
|
-
options?: DevflareRolldownOptions | undefined;
|
|
1510
|
+
options?: import("./schema-build").DevflareRolldownOptions | undefined;
|
|
4641
1511
|
} | undefined;
|
|
4642
1512
|
vite?: z.objectInputType<{
|
|
4643
|
-
/**
|
|
4644
|
-
* Devflare-level Vite plugin metadata sourced from devflare.config.ts.
|
|
4645
|
-
* Raw Vite plugin wiring still belongs in `vite.config.*`.
|
|
4646
|
-
*/
|
|
4647
1513
|
plugins: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
4648
1514
|
}, z.ZodUnknown, "strip"> | undefined;
|
|
4649
1515
|
env?: Record<string, {
|
|
4650
1516
|
name?: string | undefined;
|
|
4651
1517
|
compatibilityDate?: string | undefined;
|
|
4652
1518
|
compatibilityFlags?: string[] | undefined;
|
|
1519
|
+
previews?: {
|
|
1520
|
+
includeCrons?: boolean | undefined;
|
|
1521
|
+
} | undefined;
|
|
4653
1522
|
files?: {
|
|
4654
1523
|
fetch?: string | false | undefined;
|
|
4655
1524
|
queue?: string | false | undefined;
|
|
@@ -4665,14 +1534,18 @@ export declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4665
1534
|
transport?: string | null | undefined;
|
|
4666
1535
|
} | undefined;
|
|
4667
1536
|
bindings?: {
|
|
4668
|
-
kv?: Record<string, string
|
|
1537
|
+
kv?: Record<string, string | {
|
|
1538
|
+
id: string;
|
|
1539
|
+
} | {
|
|
1540
|
+
name: string;
|
|
1541
|
+
}> | undefined;
|
|
4669
1542
|
d1?: Record<string, string | {
|
|
4670
1543
|
id: string;
|
|
4671
1544
|
} | {
|
|
4672
1545
|
name: string;
|
|
4673
1546
|
}> | undefined;
|
|
4674
1547
|
r2?: Record<string, string> | undefined;
|
|
4675
|
-
durableObjects?: Record<string, DurableObjectBindingInput> | undefined;
|
|
1548
|
+
durableObjects?: Record<string, import("./schema-bindings").DurableObjectBindingInput> | undefined;
|
|
4676
1549
|
queues?: {
|
|
4677
1550
|
producers?: Record<string, string> | undefined;
|
|
4678
1551
|
consumers?: {
|
|
@@ -4686,13 +1559,9 @@ export declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4686
1559
|
}[] | undefined;
|
|
4687
1560
|
} | undefined;
|
|
4688
1561
|
services?: Record<string, {
|
|
4689
|
-
/** Target worker/service name */
|
|
4690
1562
|
service: string;
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
/** Optional entrypoint class name for named exports */
|
|
4694
|
-
entrypoint?: string | undefined;
|
|
4695
|
-
/** @internal Reference marker for ref() bindings */
|
|
1563
|
+
environment?: string;
|
|
1564
|
+
entrypoint?: string;
|
|
4696
1565
|
__ref?: unknown;
|
|
4697
1566
|
}> | undefined;
|
|
4698
1567
|
ai?: {
|
|
@@ -4701,12 +1570,12 @@ export declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4701
1570
|
vectorize?: Record<string, {
|
|
4702
1571
|
indexName: string;
|
|
4703
1572
|
}> | undefined;
|
|
4704
|
-
hyperdrive?: Record<string, {
|
|
1573
|
+
hyperdrive?: Record<string, string | {
|
|
4705
1574
|
id: string;
|
|
1575
|
+
} | {
|
|
1576
|
+
name: string;
|
|
4706
1577
|
}> | undefined;
|
|
4707
|
-
browser?:
|
|
4708
|
-
binding: string;
|
|
4709
|
-
} | undefined;
|
|
1578
|
+
browser?: Record<string, string> | undefined;
|
|
4710
1579
|
analyticsEngine?: Record<string, {
|
|
4711
1580
|
dataset: string;
|
|
4712
1581
|
}> | undefined;
|
|
@@ -4754,90 +1623,27 @@ export declare const configSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4754
1623
|
target?: string | undefined;
|
|
4755
1624
|
minify?: boolean | undefined;
|
|
4756
1625
|
sourcemap?: boolean | undefined;
|
|
4757
|
-
options?: DevflareRolldownOptions | undefined;
|
|
1626
|
+
options?: import("./schema-build").DevflareRolldownOptions | undefined;
|
|
4758
1627
|
} | undefined;
|
|
4759
1628
|
vite?: z.objectInputType<{
|
|
4760
|
-
/**
|
|
4761
|
-
* Devflare-level Vite plugin metadata sourced from devflare.config.ts.
|
|
4762
|
-
* Raw Vite plugin wiring still belongs in `vite.config.*`.
|
|
4763
|
-
*/
|
|
4764
1629
|
plugins: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
4765
1630
|
}, z.ZodUnknown, "strip"> | undefined;
|
|
4766
1631
|
wrangler?: {
|
|
4767
1632
|
passthrough?: Record<string, unknown> | undefined;
|
|
4768
1633
|
} | undefined;
|
|
4769
|
-
build?: {
|
|
4770
|
-
target?: string | undefined;
|
|
4771
|
-
minify?: boolean | undefined;
|
|
4772
|
-
sourcemap?: boolean | undefined;
|
|
4773
|
-
rolldownOptions?: DevflareRolldownOptions | undefined;
|
|
4774
|
-
} | undefined;
|
|
4775
|
-
plugins?: unknown[] | undefined;
|
|
4776
1634
|
}> | undefined;
|
|
4777
1635
|
wrangler?: {
|
|
4778
1636
|
passthrough?: Record<string, unknown> | undefined;
|
|
4779
1637
|
} | undefined;
|
|
4780
|
-
build?: {
|
|
4781
|
-
target?: string | undefined;
|
|
4782
|
-
minify?: boolean | undefined;
|
|
4783
|
-
sourcemap?: boolean | undefined;
|
|
4784
|
-
rolldownOptions?: DevflareRolldownOptions | undefined;
|
|
4785
|
-
} | undefined;
|
|
4786
|
-
plugins?: unknown[] | undefined;
|
|
4787
1638
|
}>;
|
|
4788
1639
|
/** Output type after Zod validation and transforms */
|
|
4789
1640
|
export type DevflareConfig = z.output<typeof configSchema>;
|
|
4790
1641
|
/** Input type for defineConfig - before Zod transforms apply defaults */
|
|
4791
1642
|
export type DevflareConfigInput = z.input<typeof configSchema>;
|
|
4792
|
-
export type
|
|
4793
|
-
export type D1Binding
|
|
4794
|
-
export type
|
|
4795
|
-
export type
|
|
4796
|
-
export type
|
|
4797
|
-
export
|
|
4798
|
-
export type RouteConfig = z.infer<typeof routeConfigSchema>;
|
|
4799
|
-
export type WsRouteConfig = z.infer<typeof wsRouteConfigSchema>;
|
|
4800
|
-
export type AssetsConfig = z.infer<typeof assetsConfigSchema>;
|
|
4801
|
-
export type ViteConfig = z.output<typeof viteConfigSchema>;
|
|
4802
|
-
export type RolldownConfig = z.output<typeof rolldownConfigSchema>;
|
|
4803
|
-
/** @deprecated Use `RolldownConfig` instead. This matches the legacy `build` shape. */
|
|
4804
|
-
export type BuildConfig = LegacyBuildConfig;
|
|
4805
|
-
export type MigrationConfig = z.infer<typeof migrationSchema>;
|
|
4806
|
-
/**
|
|
4807
|
-
* Normalized DO binding shape — consistent representation for all DO binding variants.
|
|
4808
|
-
* Used throughout devflare for DO configuration handling.
|
|
4809
|
-
*/
|
|
4810
|
-
export interface NormalizedDOBinding {
|
|
4811
|
-
/** The DO class name (e.g., 'Counter') */
|
|
4812
|
-
className: string;
|
|
4813
|
-
/** Optional script name — file path for local DOs, worker name for cross-worker DOs */
|
|
4814
|
-
scriptName?: string;
|
|
4815
|
-
/** Reference result for cross-worker DOs (from ref().DO_NAME) */
|
|
4816
|
-
__ref?: unknown;
|
|
4817
|
-
}
|
|
4818
|
-
export interface NormalizedD1Binding {
|
|
4819
|
-
/** Resolved D1 database ID when one is already known */
|
|
4820
|
-
databaseId?: string;
|
|
4821
|
-
/** Stable D1 database name when the binding is configured by name */
|
|
4822
|
-
name?: string;
|
|
4823
|
-
}
|
|
4824
|
-
/**
|
|
4825
|
-
* Normalize a DO binding to its object form.
|
|
4826
|
-
* Handles all DO binding variants:
|
|
4827
|
-
* - String: 'Counter' → { className: 'Counter' }
|
|
4828
|
-
* - Object: { className, scriptName? } → as-is
|
|
4829
|
-
* - Ref: { className, scriptName, __ref } → as-is (cross-worker DO)
|
|
4830
|
-
*/
|
|
4831
|
-
export declare function normalizeDOBinding(config: DurableObjectBinding): NormalizedDOBinding;
|
|
4832
|
-
/**
|
|
4833
|
-
* Normalize a D1 binding to a consistent object form.
|
|
4834
|
-
* String bindings are treated as explicit database IDs for backward compatibility.
|
|
4835
|
-
*/
|
|
4836
|
-
export declare function normalizeD1Binding(config: D1Binding): NormalizedD1Binding;
|
|
4837
|
-
/**
|
|
4838
|
-
* Get the identifier Devflare should use for local/runtime D1 wiring.
|
|
4839
|
-
* Local Miniflare/workerd flows can use either a real ID or the stable database name.
|
|
4840
|
-
*/
|
|
4841
|
-
export declare function getLocalD1DatabaseIdentifier(config: D1Binding): string;
|
|
4842
|
-
export {};
|
|
1643
|
+
export type { DevflareRolldownOptions, DevflareRolldownOutputOptions, RolldownConfig, ViteConfig } from './schema-build';
|
|
1644
|
+
export type { BrowserBindings, D1Binding, DurableObjectBinding, HyperdriveBinding, KVBinding, QueueConsumer, QueuesConfig, ServiceBinding } from './schema-bindings';
|
|
1645
|
+
export type { DevflareEnvConfig } from './schema-env';
|
|
1646
|
+
export type { AssetsConfig, MigrationConfig, PreviewConfig, RouteConfig, WsRouteConfig } from './schema-runtime';
|
|
1647
|
+
export type { NormalizedD1Binding, NormalizedDOBinding, NormalizedHyperdriveBinding, NormalizedKVBinding } from './schema-normalization';
|
|
1648
|
+
export { getLocalD1DatabaseIdentifier, getLocalHyperdriveConfigIdentifier, getLocalKVNamespaceIdentifier, getSingleBrowserBindingName, normalizeD1Binding, normalizeDOBinding, normalizeHyperdriveBinding, normalizeKVBinding } from './schema-normalization';
|
|
4843
1649
|
//# sourceMappingURL=schema.d.ts.map
|