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