devflare 1.0.0-next.5 → 1.0.0-next.50
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/LICENSE +21 -0
- package/LLM.md +17312 -2139
- package/README.md +394 -605
- package/bin/devflare.js +30 -14
- package/dist/_chunks/account-BI3WZMDy.js +462 -0
- package/dist/_chunks/account-resources-CsmVowJp.js +159 -0
- package/dist/_chunks/ai-CBEuLdoP.js +322 -0
- package/dist/_chunks/api-TzdliH-6.js +568 -0
- package/dist/_chunks/build-artifacts-DU5V0J0Z.js +483 -0
- package/dist/_chunks/build-e0KR38-4.js +24 -0
- package/dist/_chunks/cli-DuUz10Mn.js +1163 -0
- package/dist/_chunks/cloudflare-BaloqI3H.js +157 -0
- package/dist/_chunks/colors-DiK6wPJ5.js +13 -0
- package/dist/_chunks/command-utils-DA0Qx9_K.js +45 -0
- package/dist/_chunks/compiler-Zw16C9Pi.js +489 -0
- package/dist/_chunks/config-Brju62xy.js +78 -0
- package/dist/_chunks/config-path-DaL1ylZ_.js +42 -0
- package/dist/_chunks/context-CX50Y2Kb.js +2250 -0
- package/dist/_chunks/decorators-QmV57ixr.js +19 -0
- package/dist/_chunks/dependencies-C2oxFjU_.js +57 -0
- package/dist/_chunks/deploy-B-Kku1Vk.js +1032 -0
- package/dist/_chunks/dev-D4e_RRZn.js +3471 -0
- package/dist/_chunks/doctor-jm_K4dxL.js +219 -0
- package/dist/_chunks/durable-object-DMtH0XYX.js +234 -0
- package/dist/_chunks/env-S0_nMVz1.js +125 -0
- package/dist/_chunks/family-_9-mGSfO.js +143 -0
- package/dist/_chunks/generated-artifacts-dMJY4KAt.js +32 -0
- package/dist/_chunks/glob-CmQOvunB.js +56 -0
- package/dist/_chunks/init-DnkJOmpW.js +165 -0
- package/dist/_chunks/loader-Cr0_OWPy.js +1288 -0
- package/dist/_chunks/local-dev-vars-CTSa-wvF.js +81 -0
- package/dist/_chunks/local-hyperdrive-CJ90j46O.js +119 -0
- package/dist/_chunks/local-media-bindings-DsAW4AMF.js +335 -0
- package/dist/_chunks/local-secrets-DMPkmOn3.js +123 -0
- package/dist/_chunks/local-workflow-entrypoints-Cq_WJajd.js +90 -0
- package/dist/_chunks/login-FjTAAQbi.js +51 -0
- package/dist/_chunks/package-metadata-DjHBLB-z.js +39 -0
- package/dist/_chunks/preferences-BKp_7XJx.js +241 -0
- package/dist/_chunks/preview-C3Cdr8an.js +462 -0
- package/dist/_chunks/preview-registry-ClAbLTHH.js +1186 -0
- package/dist/_chunks/preview-resources-CGMBjsYB.js +359 -0
- package/dist/_chunks/previews-C7hs9-BT.js +1134 -0
- package/dist/_chunks/productions-T9Als4fE.js +411 -0
- package/dist/_chunks/ref-CYJNAAe_.js +178 -0
- package/dist/_chunks/remote-CZnP-HLJ.js +79 -0
- package/dist/_chunks/remote-config-D39BY9ji.js +132 -0
- package/dist/_chunks/resolve-package-qizBfCIm.js +152 -0
- package/dist/_chunks/rolldown-runtime-CvQ6eiug.js +14 -0
- package/dist/_chunks/routes-BFYCqHb-.js +833 -0
- package/dist/_chunks/runtime-DL-Nz3k8.js +550 -0
- package/dist/_chunks/schema-normalization-BCwTLTGp.js +660 -0
- package/dist/_chunks/secrets-DIpJGe6C.js +95 -0
- package/dist/_chunks/tail-IY-ijYmv.js +239 -0
- package/dist/_chunks/token-Dmi0KXyX.js +333 -0
- package/dist/_chunks/tokens-iVcgNXi-.js +221 -0
- package/dist/_chunks/types-DoKsMYfm.js +484 -0
- package/dist/_chunks/ui-BUoZApvE.js +103 -0
- package/dist/_chunks/usage-BBTGzjon.js +272 -0
- package/dist/_chunks/vite-CGtVNf5E.js +1267 -0
- package/dist/_chunks/vite-utils-OVLMV605.js +183 -0
- package/dist/_chunks/worker-BEZI4od1.js +410 -0
- package/dist/_chunks/worker-bundler-dTTnYU3n.js +458 -0
- package/dist/_chunks/worker-entrypoint-CQW77lG8.js +247 -0
- package/dist/_chunks/workerName-CFJsLZA-.js +23 -0
- package/dist/bridge/client.d.ts +49 -7
- package/dist/bridge/client.d.ts.map +1 -1
- package/dist/bridge/gateway-runtime.d.ts +8 -0
- package/dist/bridge/gateway-runtime.d.ts.map +1 -0
- package/dist/bridge/index.d.ts +6 -6
- package/dist/bridge/index.d.ts.map +1 -1
- package/dist/bridge/log.d.ts +5 -0
- package/dist/bridge/log.d.ts.map +1 -0
- package/dist/bridge/miniflare.d.ts +82 -2
- package/dist/bridge/miniflare.d.ts.map +1 -1
- package/dist/bridge/proxy.d.ts +12 -11
- package/dist/bridge/proxy.d.ts.map +1 -1
- package/dist/bridge/server.d.ts +2 -1
- package/dist/bridge/server.d.ts.map +1 -1
- package/dist/bridge/v2/body-streams.d.ts +53 -0
- package/dist/bridge/v2/body-streams.d.ts.map +1 -0
- package/dist/bridge/v2/codec.d.ts +106 -0
- package/dist/bridge/v2/codec.d.ts.map +1 -0
- package/dist/bridge/v2/control-messages.d.ts +46 -0
- package/dist/bridge/v2/control-messages.d.ts.map +1 -0
- package/dist/bridge/v2/frames.d.ts +109 -0
- package/dist/bridge/v2/frames.d.ts.map +1 -0
- package/dist/bridge/v2/index.d.ts +11 -0
- package/dist/bridge/v2/index.d.ts.map +1 -0
- package/dist/bridge/v2/serialization.d.ts +48 -0
- package/dist/bridge/v2/serialization.d.ts.map +1 -0
- package/dist/bridge/v2/transport.d.ts +31 -0
- package/dist/bridge/v2/transport.d.ts.map +1 -0
- package/dist/bridge/v2/value-codec.d.ts +61 -0
- package/dist/bridge/v2/value-codec.d.ts.map +1 -0
- package/dist/bridge/{serialization.d.ts → v2/value-serialization.d.ts} +40 -18
- package/dist/bridge/v2/value-serialization.d.ts.map +1 -0
- package/dist/bridge/{protocol.d.ts → v2/wire.d.ts} +32 -8
- package/dist/bridge/v2/wire.d.ts.map +1 -0
- package/dist/bridge/v2/ws-relay.d.ts +53 -0
- package/dist/bridge/v2/ws-relay.d.ts.map +1 -0
- package/dist/browser-shim/handler.d.ts +2 -2
- package/dist/browser-shim/handler.d.ts.map +1 -1
- package/dist/browser-shim/index.d.ts +2 -2
- package/dist/browser-shim/server.d.ts +63 -0
- package/dist/browser-shim/server.d.ts.map +1 -1
- package/dist/browser.d.ts +5411 -0
- package/dist/browser.d.ts.map +1 -0
- package/dist/browser.js +80 -0
- package/dist/bundler/defaults.d.ts +23 -0
- package/dist/bundler/defaults.d.ts.map +1 -0
- package/dist/bundler/do-bundler.d.ts +7 -0
- package/dist/bundler/do-bundler.d.ts.map +1 -1
- package/dist/bundler/index.d.ts +3 -1
- package/dist/bundler/index.d.ts.map +1 -1
- package/dist/bundler/rolldown-shared.d.ts +53 -0
- package/dist/bundler/rolldown-shared.d.ts.map +1 -0
- package/dist/bundler/worker-bundler.d.ts +13 -0
- package/dist/bundler/worker-bundler.d.ts.map +1 -0
- package/dist/bundler/worker-compat.d.ts +4 -0
- package/dist/bundler/worker-compat.d.ts.map +1 -0
- package/dist/cli/build-manifest.d.ts +66 -0
- package/dist/cli/build-manifest.d.ts.map +1 -0
- 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 +2 -2
- package/dist/cli/commands/account.d.ts.map +1 -1
- package/dist/cli/commands/ai.d.ts +1 -1
- package/dist/cli/commands/ai.d.ts.map +1 -1
- package/dist/cli/commands/build-artifacts.d.ts +40 -0
- package/dist/cli/commands/build-artifacts.d.ts.map +1 -0
- package/dist/cli/commands/build.d.ts +2 -2
- 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/metadata.d.ts +18 -0
- package/dist/cli/commands/deploy/metadata.d.ts.map +1 -0
- package/dist/cli/commands/deploy/prepare.d.ts +23 -0
- package/dist/cli/commands/deploy/prepare.d.ts.map +1 -0
- package/dist/cli/commands/deploy/runtime.d.ts +4 -0
- package/dist/cli/commands/deploy/runtime.d.ts.map +1 -0
- package/dist/cli/commands/deploy/verification.d.ts +36 -0
- package/dist/cli/commands/deploy/verification.d.ts.map +1 -0
- package/dist/cli/commands/deploy.d.ts +2 -2
- package/dist/cli/commands/deploy.d.ts.map +1 -1
- package/dist/cli/commands/dev.d.ts +9 -1
- package/dist/cli/commands/dev.d.ts.map +1 -1
- package/dist/cli/commands/doctor.d.ts +2 -2
- package/dist/cli/commands/doctor.d.ts.map +1 -1
- package/dist/cli/commands/init.d.ts +2 -2
- 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/remote.d.ts +1 -1
- package/dist/cli/commands/remote.d.ts.map +1 -1
- package/dist/cli/commands/secrets.d.ts +4 -0
- package/dist/cli/commands/secrets.d.ts.map +1 -0
- package/dist/cli/commands/tail.d.ts +44 -0
- package/dist/cli/commands/tail.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 +121 -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 +2 -2
- 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 +6 -0
- package/dist/cli/config-path.d.ts.map +1 -0
- package/dist/cli/dependencies.d.ts +2 -1
- package/dist/cli/dependencies.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/gradual-deploy.d.ts +49 -0
- package/dist/cli/gradual-deploy.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/index.js +2 -0
- package/dist/cli/package-metadata.d.ts +16 -0
- package/dist/cli/package-metadata.d.ts.map +1 -0
- package/dist/cli/preview-bindings.d.ts +49 -0
- package/dist/cli/preview-bindings.d.ts.map +1 -0
- package/dist/cli/preview.d.ts +10 -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/cli/wrangler-auth.d.ts +1 -1
- 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 +71 -3
- package/dist/cloudflare/api.d.ts.map +1 -1
- package/dist/cloudflare/auth.d.ts +1 -1
- package/dist/cloudflare/auth.d.ts.map +1 -1
- package/dist/cloudflare/index.d.ts +61 -6
- package/dist/cloudflare/index.d.ts.map +1 -1
- package/dist/cloudflare/index.js +4 -13
- package/dist/cloudflare/known-permission-group-ids.generated.d.ts +10 -0
- package/dist/cloudflare/known-permission-group-ids.generated.d.ts.map +1 -0
- package/dist/cloudflare/kv-namespace.d.ts +4 -0
- package/dist/cloudflare/kv-namespace.d.ts.map +1 -0
- package/dist/cloudflare/preferences.d.ts +7 -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-inference.d.ts +14 -0
- package/dist/cloudflare/preview-registry-inference.d.ts.map +1 -0
- package/dist/cloudflare/preview-registry-records.d.ts +4 -0
- package/dist/cloudflare/preview-registry-records.d.ts.map +1 -0
- package/dist/cloudflare/preview-registry-shape.d.ts +47 -0
- package/dist/cloudflare/preview-registry-shape.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-transport.d.ts +4 -0
- package/dist/cloudflare/preview-registry-transport.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/preview-urls.d.ts +3 -0
- package/dist/cloudflare/preview-urls.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/remote-config.d.ts.map +1 -1
- package/dist/cloudflare/tokens.d.ts +44 -0
- package/dist/cloudflare/tokens.d.ts.map +1 -0
- package/dist/cloudflare/types.d.ts +124 -7
- package/dist/cloudflare/types.d.ts.map +1 -1
- package/dist/cloudflare/usage.d.ts +31 -3
- package/dist/cloudflare/usage.d.ts.map +1 -1
- package/dist/config/binding-resolution-helpers.d.ts +41 -0
- package/dist/config/binding-resolution-helpers.d.ts.map +1 -0
- package/dist/config/compatibility.d.ts +3 -0
- package/dist/config/compatibility.d.ts.map +1 -0
- package/dist/config/compiler/bindings.d.ts +14 -0
- package/dist/config/compiler/bindings.d.ts.map +1 -0
- package/dist/config/compiler/core-helpers.d.ts +6 -0
- package/dist/config/compiler/core-helpers.d.ts.map +1 -0
- package/dist/config/compiler/do-workers.d.ts +34 -0
- package/dist/config/compiler/do-workers.d.ts.map +1 -0
- package/dist/config/compiler/paths.d.ts +18 -0
- package/dist/config/compiler/paths.d.ts.map +1 -0
- package/dist/config/compiler/types.d.ts +298 -0
- package/dist/config/compiler/types.d.ts.map +1 -0
- package/dist/config/compiler.d.ts +22 -134
- package/dist/config/compiler.d.ts.map +1 -1
- package/dist/config/cron.d.ts +19 -0
- package/dist/config/cron.d.ts.map +1 -0
- package/dist/config/define.d.ts +8 -5
- package/dist/config/define.d.ts.map +1 -1
- package/dist/config/deploy-resources.d.ts +58 -0
- package/dist/config/deploy-resources.d.ts.map +1 -0
- package/dist/config/env-vars.d.ts +309 -0
- package/dist/config/env-vars.d.ts.map +1 -0
- 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 +12 -5
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/loader.d.ts +2 -1
- package/dist/config/loader.d.ts.map +1 -1
- package/dist/config/local-dev-vars.d.ts +15 -0
- package/dist/config/local-dev-vars.d.ts.map +1 -0
- package/dist/config/preview-resources.d.ts +83 -0
- package/dist/config/preview-resources.d.ts.map +1 -0
- package/dist/config/preview.d.ts +29 -0
- package/dist/config/preview.d.ts.map +1 -0
- package/dist/config/ref.d.ts +16 -25
- package/dist/config/ref.d.ts.map +1 -1
- package/dist/config/resolve-phased.d.ts +72 -0
- package/dist/config/resolve-phased.d.ts.map +1 -0
- package/dist/config/resolve.d.ts +11 -0
- package/dist/config/resolve.d.ts.map +1 -0
- package/dist/config/resource-resolution.d.ts +80 -0
- package/dist/config/resource-resolution.d.ts.map +1 -0
- package/dist/config/schema-bindings.d.ts +2025 -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 +3579 -0
- package/dist/config/schema-env.d.ts.map +1 -0
- package/dist/config/schema-normalization.d.ts +265 -0
- package/dist/config/schema-normalization.d.ts.map +1 -0
- package/dist/config/schema-runtime.d.ts +508 -0
- package/dist/config/schema-runtime.d.ts.map +1 -0
- package/dist/config/schema-types-bindings-platform.d.ts +508 -0
- package/dist/config/schema-types-bindings-platform.d.ts.map +1 -0
- package/dist/config/schema-types-bindings-resources.d.ts +767 -0
- package/dist/config/schema-types-bindings-resources.d.ts.map +1 -0
- package/dist/config/schema-types-bindings.d.ts +293 -0
- package/dist/config/schema-types-bindings.d.ts.map +1 -0
- package/dist/config/schema-types-build.d.ts +86 -0
- package/dist/config/schema-types-build.d.ts.map +1 -0
- package/dist/config/schema-types-runtime.d.ts +917 -0
- package/dist/config/schema-types-runtime.d.ts.map +1 -0
- package/dist/config/schema-types.d.ts +424 -0
- package/dist/config/schema-types.d.ts.map +1 -0
- package/dist/config/schema.d.ts +5324 -2011
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/service-bindings-validation.d.ts +36 -0
- package/dist/config/service-bindings-validation.d.ts.map +1 -0
- package/dist/config-entry.d.ts +7 -0
- package/dist/config-entry.d.ts.map +1 -0
- package/dist/config-entry.js +3 -0
- package/dist/decorators/durable-object.d.ts.map +1 -1
- package/dist/decorators/index.d.ts +2 -2
- package/dist/decorators/index.js +2 -9
- package/dist/dev-server/d1-migrations.d.ts +36 -0
- package/dist/dev-server/d1-migrations.d.ts.map +1 -0
- package/dist/dev-server/dev-server-state.d.ts +59 -0
- package/dist/dev-server/dev-server-state.d.ts.map +1 -0
- package/dist/dev-server/gateway-script.d.ts +21 -0
- package/dist/dev-server/gateway-script.d.ts.map +1 -0
- package/dist/dev-server/index.d.ts +1 -1
- package/dist/dev-server/miniflare-bindings.d.ts +81 -0
- package/dist/dev-server/miniflare-bindings.d.ts.map +1 -0
- package/dist/dev-server/miniflare-dev-config.d.ts +36 -0
- package/dist/dev-server/miniflare-dev-config.d.ts.map +1 -0
- package/dist/dev-server/miniflare-log.d.ts +20 -0
- package/dist/dev-server/miniflare-log.d.ts.map +1 -0
- package/dist/dev-server/miniflare-worker-config.d.ts +82 -0
- package/dist/dev-server/miniflare-worker-config.d.ts.map +1 -0
- package/dist/dev-server/reload-queue.d.ts +13 -0
- package/dist/dev-server/reload-queue.d.ts.map +1 -0
- package/dist/dev-server/runtime-stdio.d.ts +8 -0
- package/dist/dev-server/runtime-stdio.d.ts.map +1 -0
- package/dist/dev-server/server-startup-helpers.d.ts +84 -0
- package/dist/dev-server/server-startup-helpers.d.ts.map +1 -0
- package/dist/dev-server/server.d.ts +2 -0
- package/dist/dev-server/server.d.ts.map +1 -1
- package/dist/dev-server/vite-process.d.ts +15 -0
- package/dist/dev-server/vite-process.d.ts.map +1 -0
- package/dist/dev-server/vite-utils.d.ts +19 -1
- package/dist/dev-server/vite-utils.d.ts.map +1 -1
- package/dist/dev-server/worker-source-watcher.d.ts +17 -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/env.d.ts +10 -0
- package/dist/env.d.ts.map +1 -1
- package/dist/index.d.ts +8 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -298
- 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 +20 -44
- package/dist/runtime/context.d.ts.map +1 -1
- package/dist/runtime/exports.d.ts +70 -55
- package/dist/runtime/exports.d.ts.map +1 -1
- package/dist/runtime/index.d.ts +10 -3
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/index.js +5 -111
- package/dist/runtime/middleware.d.ts +119 -67
- package/dist/runtime/middleware.d.ts.map +1 -1
- package/dist/runtime/router/index.d.ts +7 -0
- package/dist/runtime/router/index.d.ts.map +1 -0
- package/dist/runtime/router/types.d.ts +24 -0
- package/dist/runtime/router/types.d.ts.map +1 -0
- package/dist/runtime/validation.d.ts +18 -4
- package/dist/runtime/validation.d.ts.map +1 -1
- package/dist/secrets/local-secrets.d.ts +46 -0
- package/dist/secrets/local-secrets.d.ts.map +1 -0
- package/dist/shims/local-hyperdrive.d.ts +12 -0
- package/dist/shims/local-hyperdrive.d.ts.map +1 -0
- package/dist/shims/local-media-bindings.d.ts +19 -0
- package/dist/shims/local-media-bindings.d.ts.map +1 -0
- package/dist/shims/local-worker-loader.d.ts +3 -0
- package/dist/shims/local-worker-loader.d.ts.map +1 -0
- package/dist/sveltekit/index.d.ts +1 -1
- package/dist/sveltekit/index.d.ts.map +1 -1
- package/dist/sveltekit/index.js +313 -167
- package/dist/sveltekit/local-bindings.d.ts +4 -0
- package/dist/sveltekit/local-bindings.d.ts.map +1 -0
- package/dist/sveltekit/platform.d.ts +20 -2
- package/dist/sveltekit/platform.d.ts.map +1 -1
- package/dist/test/ai-search.d.ts +39 -0
- package/dist/test/ai-search.d.ts.map +1 -0
- package/dist/test/alarm.d.ts +55 -0
- package/dist/test/alarm.d.ts.map +1 -0
- package/dist/test/binding-hints.d.ts +10 -0
- package/dist/test/binding-hints.d.ts.map +1 -0
- package/dist/test/cf.d.ts +71 -35
- package/dist/test/cf.d.ts.map +1 -1
- package/dist/test/containers.d.ts +87 -0
- package/dist/test/containers.d.ts.map +1 -0
- package/dist/test/email.d.ts +16 -7
- package/dist/test/email.d.ts.map +1 -1
- package/dist/test/index.d.ts +20 -21
- package/dist/test/index.d.ts.map +1 -1
- package/dist/test/index.js +4971 -70
- package/dist/test/offline-bindings.d.ts +115 -0
- package/dist/test/offline-bindings.d.ts.map +1 -0
- 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 +64 -4
- 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 +14 -18
- package/dist/test/should-skip.d.ts.map +1 -1
- package/dist/test/simple-context-bindings.d.ts +13 -0
- package/dist/test/simple-context-bindings.d.ts.map +1 -0
- 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-env.d.ts +35 -0
- package/dist/test/simple-context-env.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-handlers.d.ts +12 -0
- package/dist/test/simple-context-handlers.d.ts.map +1 -0
- package/dist/test/simple-context-lifecycle.d.ts +32 -0
- package/dist/test/simple-context-lifecycle.d.ts.map +1 -0
- package/dist/test/simple-context-mfconfig.d.ts +10 -0
- package/dist/test/simple-context-mfconfig.d.ts.map +1 -0
- package/dist/test/simple-context-multi-worker.d.ts +16 -0
- package/dist/test/simple-context-multi-worker.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-runtime.d.ts +19 -0
- package/dist/test/simple-context-runtime.d.ts.map +1 -0
- package/dist/test/simple-context-startup.d.ts +11 -0
- package/dist/test/simple-context-startup.d.ts.map +1 -0
- package/dist/test/simple-context-transport.d.ts +14 -0
- package/dist/test/simple-context-transport.d.ts.map +1 -0
- package/dist/test/simple-context.d.ts +8 -27
- package/dist/test/simple-context.d.ts.map +1 -1
- package/dist/test/tail.d.ts +3 -2
- package/dist/test/tail.d.ts.map +1 -1
- package/dist/test/utilities/analytics-engine.d.ts +22 -0
- package/dist/test/utilities/analytics-engine.d.ts.map +1 -0
- package/dist/test/utilities/artifacts.d.ts +11 -0
- package/dist/test/utilities/artifacts.d.ts.map +1 -0
- package/dist/test/utilities/context.d.ts +39 -0
- package/dist/test/utilities/context.d.ts.map +1 -0
- package/dist/test/utilities/d1.d.ts +21 -0
- package/dist/test/utilities/d1.d.ts.map +1 -0
- package/dist/test/utilities/env.d.ts +43 -0
- package/dist/test/utilities/env.d.ts.map +1 -0
- package/dist/test/utilities/kv.d.ts +11 -0
- package/dist/test/utilities/kv.d.ts.map +1 -0
- package/dist/test/utilities/media.d.ts +16 -0
- package/dist/test/utilities/media.d.ts.map +1 -0
- package/dist/test/utilities/platform.d.ts +41 -0
- package/dist/test/utilities/platform.d.ts.map +1 -0
- package/dist/test/utilities/queue.d.ts +5 -0
- package/dist/test/utilities/queue.d.ts.map +1 -0
- package/dist/test/utilities/r2.d.ts +2 -0
- package/dist/test/utilities/r2.d.ts.map +1 -0
- package/dist/test/utilities/stream-flagship.d.ts +27 -0
- package/dist/test/utilities/stream-flagship.d.ts.map +1 -0
- package/dist/test/utilities/vectorize.d.ts +38 -0
- package/dist/test/utilities/vectorize.d.ts.map +1 -0
- package/dist/test/utilities/workflows.d.ts +26 -0
- package/dist/test/utilities/workflows.d.ts.map +1 -0
- package/dist/test/utilities.d.ts +13 -98
- package/dist/test/utilities.d.ts.map +1 -1
- package/dist/test/worker.d.ts +6 -0
- package/dist/test/worker.d.ts.map +1 -1
- package/dist/transform/durable-object.d.ts.map +1 -1
- package/dist/transform/index.d.ts +2 -2
- package/dist/transform/worker-entrypoint.d.ts +5 -0
- package/dist/transform/worker-entrypoint.d.ts.map +1 -1
- package/dist/utils/entrypoint-discovery.d.ts +6 -3
- package/dist/utils/entrypoint-discovery.d.ts.map +1 -1
- package/dist/utils/glob.d.ts.map +1 -1
- package/dist/utils/resolve-package.d.ts.map +1 -1
- package/dist/utils/send-email.d.ts +15 -0
- package/dist/utils/send-email.d.ts.map +1 -0
- package/dist/utils/send-email.js +163 -0
- package/dist/vite/config-file.d.ts +25 -0
- package/dist/vite/config-file.d.ts.map +1 -0
- package/dist/vite/index.d.ts +3 -2
- package/dist/vite/index.d.ts.map +1 -1
- package/dist/vite/index.js +2 -339
- package/dist/vite/plugin-config-hook.d.ts +28 -0
- package/dist/vite/plugin-config-hook.d.ts.map +1 -0
- package/dist/vite/plugin-context.d.ts +27 -0
- package/dist/vite/plugin-context.d.ts.map +1 -0
- package/dist/vite/plugin-durable-objects.d.ts +18 -0
- package/dist/vite/plugin-durable-objects.d.ts.map +1 -0
- package/dist/vite/plugin-programmatic.d.ts +44 -0
- package/dist/vite/plugin-programmatic.d.ts.map +1 -0
- package/dist/vite/plugin-service-bindings.d.ts +13 -0
- package/dist/vite/plugin-service-bindings.d.ts.map +1 -0
- package/dist/vite/plugin-transform.d.ts +41 -0
- package/dist/vite/plugin-transform.d.ts.map +1 -0
- package/dist/vite/plugin.d.ts +10 -41
- package/dist/vite/plugin.d.ts.map +1 -1
- package/dist/worker-entry/composed-worker.d.ts +7 -0
- package/dist/worker-entry/composed-worker.d.ts.map +1 -0
- package/dist/worker-entry/durable-object-discovery.d.ts +20 -0
- package/dist/worker-entry/durable-object-discovery.d.ts.map +1 -0
- package/dist/worker-entry/extensions.d.ts +5 -0
- package/dist/worker-entry/extensions.d.ts.map +1 -0
- package/dist/worker-entry/routes.d.ts +22 -0
- package/dist/worker-entry/routes.d.ts.map +1 -0
- package/dist/worker-entry/surface-paths.d.ts +26 -0
- package/dist/worker-entry/surface-paths.d.ts.map +1 -0
- package/dist/worker-entry/validate-fetch-style.d.ts +12 -0
- package/dist/worker-entry/validate-fetch-style.d.ts.map +1 -0
- package/dist/workflows/local-workflow-entrypoints.d.ts +7 -0
- package/dist/workflows/local-workflow-entrypoints.d.ts.map +1 -0
- package/package.json +159 -116
- package/R2.md +0 -170
- package/dist/account-rvrj687w.js +0 -397
- package/dist/ai-dx4fr9jh.js +0 -107
- package/dist/bridge/protocol.d.ts.map +0 -1
- package/dist/bridge/serialization.d.ts.map +0 -1
- package/dist/browser-shim/worker.d.ts +0 -14
- package/dist/browser-shim/worker.d.ts.map +0 -1
- package/dist/build-mnf6v8gd.js +0 -53
- package/dist/deploy-nhceck39.js +0 -70
- package/dist/dev-b9dmrj7b.js +0 -2417
- package/dist/doctor-fmgb3d28.js +0 -190
- package/dist/durable-object-t4kbb0yt.js +0 -13
- package/dist/index-07q6yxyc.js +0 -168
- package/dist/index-18hvb6gb.js +0 -194
- package/dist/index-1xpj0m4r.js +0 -57
- package/dist/index-37x76zdn.js +0 -4
- package/dist/index-3t6rypgc.js +0 -13
- package/dist/index-67qcae0f.js +0 -183
- package/dist/index-a855bdsx.js +0 -18
- package/dist/index-d8bdkx2h.js +0 -109
- package/dist/index-ep3445yc.js +0 -2225
- package/dist/index-gz1gndna.js +0 -307
- package/dist/index-hcex3rgh.js +0 -266
- package/dist/index-m2q41jwa.js +0 -462
- package/dist/index-n7rs26ft.js +0 -77
- package/dist/index-pf5s73n9.js +0 -1413
- package/dist/index-rbht7m9r.js +0 -36
- package/dist/index-tfyxa77h.js +0 -850
- package/dist/index-tk6ej9dj.js +0 -94
- package/dist/index-z14anrqp.js +0 -226
- package/dist/init-f9mgmew3.js +0 -186
- package/dist/remote-q59qk463.js +0 -97
- package/dist/test/bridge-context.d.ts +0 -76
- package/dist/test/bridge-context.d.ts.map +0 -1
- package/dist/test/multi-worker-context.d.ts +0 -114
- package/dist/test/multi-worker-context.d.ts.map +0 -1
- package/dist/types-5nyrz1sz.js +0 -454
- package/dist/worker-entrypoint-m9th0rg0.js +0 -13
|
@@ -0,0 +1,767 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* KV namespace binding by stable namespace name, explicit ID, or resolver
|
|
3
|
+
* object.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```ts
|
|
7
|
+
* kv: { CACHE: 'cache-local' }
|
|
8
|
+
* ```
|
|
9
|
+
*/
|
|
10
|
+
export type KVBindingInput = string | KVBindingByIdInput | KVBindingByNameInput;
|
|
11
|
+
/**
|
|
12
|
+
* KV namespace binding by explicit namespace ID.
|
|
13
|
+
*/
|
|
14
|
+
export interface KVBindingByIdInput {
|
|
15
|
+
/**
|
|
16
|
+
* Explicit KV namespace ID.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* kv: { CACHE: { id: 'namespace-id' } }
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* KV namespace ID used during `wrangler dev` (preview). Compiles to
|
|
26
|
+
* wrangler's `preview_id`.
|
|
27
|
+
*
|
|
28
|
+
* @default No dedicated preview namespace.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* kv: { CACHE: { id: 'namespace-id', previewId: 'preview-namespace-id' } }
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
previewId?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Whether Wrangler local development should connect this KV namespace to
|
|
38
|
+
* the remote namespace.
|
|
39
|
+
*
|
|
40
|
+
* @default Wrangler default behavior.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* kv: { CACHE: { id: 'namespace-id', remote: true } }
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
remote?: boolean;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* KV namespace binding by stable namespace name.
|
|
51
|
+
*/
|
|
52
|
+
export interface KVBindingByNameInput {
|
|
53
|
+
/**
|
|
54
|
+
* Stable KV namespace name to resolve at config, build, or deploy time.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* kv: { CACHE: { name: 'cache-local' } }
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
name: string;
|
|
62
|
+
/**
|
|
63
|
+
* KV namespace ID used during `wrangler dev` (preview). Compiles to
|
|
64
|
+
* wrangler's `preview_id`.
|
|
65
|
+
*
|
|
66
|
+
* @default No dedicated preview namespace.
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* ```ts
|
|
70
|
+
* kv: { CACHE: { name: 'cache-local', previewId: 'preview-namespace-id' } }
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
previewId?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Whether Wrangler local development should connect this KV namespace to
|
|
76
|
+
* the remote namespace.
|
|
77
|
+
*
|
|
78
|
+
* @default Wrangler default behavior.
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* ```ts
|
|
82
|
+
* kv: { CACHE: { name: 'cache-local', remote: true } }
|
|
83
|
+
* ```
|
|
84
|
+
*/
|
|
85
|
+
remote?: boolean;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* D1 database binding by stable database name, explicit ID, or resolver object.
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* ```ts
|
|
92
|
+
* d1: { DB: 'app-db-local' }
|
|
93
|
+
* ```
|
|
94
|
+
*/
|
|
95
|
+
export type D1BindingInput = string | D1BindingByIdInput | D1BindingByNameInput;
|
|
96
|
+
/**
|
|
97
|
+
* D1 preview, migration, and remote-development fields shared by the
|
|
98
|
+
* by-id and by-name D1 binding forms.
|
|
99
|
+
*/
|
|
100
|
+
export interface D1BindingExtraInput {
|
|
101
|
+
/**
|
|
102
|
+
* D1 database ID used during `wrangler dev` (preview). Compiles to
|
|
103
|
+
* wrangler's `preview_database_id`.
|
|
104
|
+
*
|
|
105
|
+
* @default No dedicated preview database.
|
|
106
|
+
*
|
|
107
|
+
* @example
|
|
108
|
+
* ```ts
|
|
109
|
+
* d1: { DB: { id: 'database-id', previewDatabaseId: 'preview-database-id' } }
|
|
110
|
+
* ```
|
|
111
|
+
*/
|
|
112
|
+
previewDatabaseId?: string;
|
|
113
|
+
/**
|
|
114
|
+
* Name of the migrations table for this D1 database. Compiles to
|
|
115
|
+
* wrangler's `migrations_table`.
|
|
116
|
+
*
|
|
117
|
+
* @default `d1_migrations`
|
|
118
|
+
*
|
|
119
|
+
* @example
|
|
120
|
+
* ```ts
|
|
121
|
+
* d1: { DB: { id: 'database-id', migrationsTable: 'my_migrations' } }
|
|
122
|
+
* ```
|
|
123
|
+
*/
|
|
124
|
+
migrationsTable?: string;
|
|
125
|
+
/**
|
|
126
|
+
* Path to the directory of migrations for this D1 database. Compiles to
|
|
127
|
+
* wrangler's `migrations_dir`.
|
|
128
|
+
*
|
|
129
|
+
* @default `./migrations`
|
|
130
|
+
*
|
|
131
|
+
* @example
|
|
132
|
+
* ```ts
|
|
133
|
+
* d1: { DB: { id: 'database-id', migrationsDir: './db/migrations' } }
|
|
134
|
+
* ```
|
|
135
|
+
*/
|
|
136
|
+
migrationsDir?: string;
|
|
137
|
+
/**
|
|
138
|
+
* Whether Wrangler local development should connect this D1 database to
|
|
139
|
+
* the remote database.
|
|
140
|
+
*
|
|
141
|
+
* @default Wrangler default behavior.
|
|
142
|
+
*
|
|
143
|
+
* @example
|
|
144
|
+
* ```ts
|
|
145
|
+
* d1: { DB: { id: 'database-id', remote: true } }
|
|
146
|
+
* ```
|
|
147
|
+
*/
|
|
148
|
+
remote?: boolean;
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* D1 database binding by explicit database ID.
|
|
152
|
+
*/
|
|
153
|
+
export interface D1BindingByIdInput extends D1BindingExtraInput {
|
|
154
|
+
/**
|
|
155
|
+
* Explicit D1 database ID.
|
|
156
|
+
*
|
|
157
|
+
* @example
|
|
158
|
+
* ```ts
|
|
159
|
+
* d1: { DB: { id: 'database-id' } }
|
|
160
|
+
* ```
|
|
161
|
+
*/
|
|
162
|
+
id: string;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* D1 database binding by stable database name.
|
|
166
|
+
*/
|
|
167
|
+
export interface D1BindingByNameInput extends D1BindingExtraInput {
|
|
168
|
+
/**
|
|
169
|
+
* Stable D1 database name to resolve at config, build, or deploy time.
|
|
170
|
+
*
|
|
171
|
+
* @example
|
|
172
|
+
* ```ts
|
|
173
|
+
* d1: { DB: { name: 'app-db-local' } }
|
|
174
|
+
* ```
|
|
175
|
+
*/
|
|
176
|
+
name: string;
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* R2 bucket binding by bucket name or object form.
|
|
180
|
+
*
|
|
181
|
+
* The string shorthand is the bucket name. The object form additionally
|
|
182
|
+
* exposes the `remote` local-development flag plus preview-bucket and
|
|
183
|
+
* jurisdiction fields.
|
|
184
|
+
*
|
|
185
|
+
* @example
|
|
186
|
+
* ```ts
|
|
187
|
+
* r2: { BUCKET: 'uploads-local' }
|
|
188
|
+
* r2: { BUCKET: { bucketName: 'uploads-local', remote: true, jurisdiction: 'eu' } }
|
|
189
|
+
* ```
|
|
190
|
+
*/
|
|
191
|
+
export type R2BindingInput = string | R2BindingObjectInput;
|
|
192
|
+
/**
|
|
193
|
+
* R2 bucket binding object form.
|
|
194
|
+
*/
|
|
195
|
+
export interface R2BindingObjectInput {
|
|
196
|
+
/**
|
|
197
|
+
* R2 bucket name at the edge.
|
|
198
|
+
*
|
|
199
|
+
* @example
|
|
200
|
+
* ```ts
|
|
201
|
+
* r2: { BUCKET: { bucketName: 'uploads-local' } }
|
|
202
|
+
* ```
|
|
203
|
+
*/
|
|
204
|
+
bucketName: string;
|
|
205
|
+
/**
|
|
206
|
+
* R2 bucket name used during `wrangler dev` (preview). Compiles to
|
|
207
|
+
* wrangler's `preview_bucket_name`.
|
|
208
|
+
*
|
|
209
|
+
* @default No dedicated preview bucket.
|
|
210
|
+
*
|
|
211
|
+
* @example
|
|
212
|
+
* ```ts
|
|
213
|
+
* r2: { BUCKET: { bucketName: 'uploads-local', previewBucketName: 'uploads-preview' } }
|
|
214
|
+
* ```
|
|
215
|
+
*/
|
|
216
|
+
previewBucketName?: string;
|
|
217
|
+
/**
|
|
218
|
+
* Jurisdiction the bucket exists in. Compiles to wrangler's
|
|
219
|
+
* `jurisdiction`.
|
|
220
|
+
*
|
|
221
|
+
* @default Default jurisdiction.
|
|
222
|
+
*
|
|
223
|
+
* @example
|
|
224
|
+
* ```ts
|
|
225
|
+
* r2: { BUCKET: { bucketName: 'uploads-local', jurisdiction: 'eu' } }
|
|
226
|
+
* ```
|
|
227
|
+
*/
|
|
228
|
+
jurisdiction?: string;
|
|
229
|
+
/**
|
|
230
|
+
* Whether Wrangler local development should connect this R2 bucket to the
|
|
231
|
+
* remote bucket.
|
|
232
|
+
*
|
|
233
|
+
* @default Wrangler default behavior.
|
|
234
|
+
*
|
|
235
|
+
* @example
|
|
236
|
+
* ```ts
|
|
237
|
+
* r2: { BUCKET: { bucketName: 'uploads-local', remote: true } }
|
|
238
|
+
* ```
|
|
239
|
+
*/
|
|
240
|
+
remote?: boolean;
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* Durable Object binding by local class name or object form.
|
|
244
|
+
*/
|
|
245
|
+
export type DurableObjectBindingInput = string | DurableObjectBindingObjectInput;
|
|
246
|
+
/**
|
|
247
|
+
* Durable Object binding object form.
|
|
248
|
+
*/
|
|
249
|
+
export interface DurableObjectBindingObjectInput {
|
|
250
|
+
/**
|
|
251
|
+
* Durable Object class name.
|
|
252
|
+
*
|
|
253
|
+
* @example
|
|
254
|
+
* ```ts
|
|
255
|
+
* durableObjects: { COUNTER: { className: 'Counter' } }
|
|
256
|
+
* ```
|
|
257
|
+
*/
|
|
258
|
+
readonly className: string;
|
|
259
|
+
/**
|
|
260
|
+
* Script name for cross-worker Durable Object access.
|
|
261
|
+
*
|
|
262
|
+
* @example
|
|
263
|
+
* ```ts
|
|
264
|
+
* durableObjects: { COUNTER: { className: 'Counter', scriptName: 'counter-worker' } }
|
|
265
|
+
* ```
|
|
266
|
+
*/
|
|
267
|
+
readonly scriptName?: string;
|
|
268
|
+
/**
|
|
269
|
+
* Internal marker used by `ref()` Durable Object bindings.
|
|
270
|
+
*
|
|
271
|
+
* @internal
|
|
272
|
+
*/
|
|
273
|
+
readonly __ref?: unknown;
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Queue producer binding by queue name or object form.
|
|
277
|
+
*
|
|
278
|
+
* The string shorthand is the queue name. The object form additionally
|
|
279
|
+
* exposes the `remote` local-development flag.
|
|
280
|
+
*
|
|
281
|
+
* @example
|
|
282
|
+
* ```ts
|
|
283
|
+
* producers: { TASK_QUEUE: 'tasks-local' }
|
|
284
|
+
* producers: { TASK_QUEUE: { queue: 'tasks-local', remote: true } }
|
|
285
|
+
* ```
|
|
286
|
+
*/
|
|
287
|
+
export type QueueProducerInput = string | QueueProducerObjectInput;
|
|
288
|
+
/**
|
|
289
|
+
* Queue producer binding object form.
|
|
290
|
+
*/
|
|
291
|
+
export interface QueueProducerObjectInput {
|
|
292
|
+
/**
|
|
293
|
+
* Queue name this producer writes to.
|
|
294
|
+
*
|
|
295
|
+
* @example
|
|
296
|
+
* ```ts
|
|
297
|
+
* producers: { TASK_QUEUE: { queue: 'tasks-local' } }
|
|
298
|
+
* ```
|
|
299
|
+
*/
|
|
300
|
+
queue: string;
|
|
301
|
+
/**
|
|
302
|
+
* Whether Wrangler local development should connect this queue producer
|
|
303
|
+
* to the remote queue.
|
|
304
|
+
*
|
|
305
|
+
* @default Wrangler default behavior.
|
|
306
|
+
*
|
|
307
|
+
* @example
|
|
308
|
+
* ```ts
|
|
309
|
+
* producers: { TASK_QUEUE: { queue: 'tasks-local', remote: true } }
|
|
310
|
+
* ```
|
|
311
|
+
*/
|
|
312
|
+
remote?: boolean;
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
* Queue producer and consumer configuration.
|
|
316
|
+
*/
|
|
317
|
+
export interface QueuesConfigInput {
|
|
318
|
+
/**
|
|
319
|
+
* Queue producer bindings keyed by runtime binding name.
|
|
320
|
+
*
|
|
321
|
+
* @example
|
|
322
|
+
* ```ts
|
|
323
|
+
* producers: { TASK_QUEUE: 'tasks-local' }
|
|
324
|
+
* ```
|
|
325
|
+
*/
|
|
326
|
+
producers?: Record<string, QueueProducerInput>;
|
|
327
|
+
/**
|
|
328
|
+
* Queue consumer configurations used to process messages from queues.
|
|
329
|
+
*
|
|
330
|
+
* @example
|
|
331
|
+
* ```ts
|
|
332
|
+
* consumers: [{ queue: 'tasks-local', maxBatchSize: 5 }]
|
|
333
|
+
* ```
|
|
334
|
+
*/
|
|
335
|
+
consumers?: QueueConsumerInput[];
|
|
336
|
+
}
|
|
337
|
+
/**
|
|
338
|
+
* Queue consumer configuration.
|
|
339
|
+
*/
|
|
340
|
+
export interface QueueConsumerInput {
|
|
341
|
+
/**
|
|
342
|
+
* Queue name to consume from.
|
|
343
|
+
*
|
|
344
|
+
* @example
|
|
345
|
+
* ```ts
|
|
346
|
+
* { queue: 'tasks-local' }
|
|
347
|
+
* ```
|
|
348
|
+
*/
|
|
349
|
+
queue: string;
|
|
350
|
+
/**
|
|
351
|
+
* Maximum messages per batch.
|
|
352
|
+
*
|
|
353
|
+
* @default `10`
|
|
354
|
+
*
|
|
355
|
+
* @example
|
|
356
|
+
* ```ts
|
|
357
|
+
* { queue: 'tasks-local', maxBatchSize: 25 }
|
|
358
|
+
* ```
|
|
359
|
+
*/
|
|
360
|
+
maxBatchSize?: number;
|
|
361
|
+
/**
|
|
362
|
+
* Maximum seconds to wait before dispatching a partial batch.
|
|
363
|
+
*
|
|
364
|
+
* @default `5`
|
|
365
|
+
*
|
|
366
|
+
* @example
|
|
367
|
+
* ```ts
|
|
368
|
+
* { queue: 'tasks-local', maxBatchTimeout: 10 }
|
|
369
|
+
* ```
|
|
370
|
+
*/
|
|
371
|
+
maxBatchTimeout?: number;
|
|
372
|
+
/**
|
|
373
|
+
* Maximum retry attempts for failed messages.
|
|
374
|
+
*
|
|
375
|
+
* @default `3`
|
|
376
|
+
*
|
|
377
|
+
* @example
|
|
378
|
+
* ```ts
|
|
379
|
+
* { queue: 'tasks-local', maxRetries: 5 }
|
|
380
|
+
* ```
|
|
381
|
+
*/
|
|
382
|
+
maxRetries?: number;
|
|
383
|
+
/**
|
|
384
|
+
* Queue name that receives failed messages after retries are exhausted.
|
|
385
|
+
*
|
|
386
|
+
* @default No dead-letter queue.
|
|
387
|
+
*
|
|
388
|
+
* @example
|
|
389
|
+
* ```ts
|
|
390
|
+
* { queue: 'tasks-local', deadLetterQueue: 'tasks-dlq-local' }
|
|
391
|
+
* ```
|
|
392
|
+
*/
|
|
393
|
+
deadLetterQueue?: string;
|
|
394
|
+
/**
|
|
395
|
+
* Maximum concurrent batch invocations.
|
|
396
|
+
*
|
|
397
|
+
* @default Cloudflare Queues default behavior.
|
|
398
|
+
*
|
|
399
|
+
* @example
|
|
400
|
+
* ```ts
|
|
401
|
+
* { queue: 'tasks-local', maxConcurrency: 4 }
|
|
402
|
+
* ```
|
|
403
|
+
*/
|
|
404
|
+
maxConcurrency?: number;
|
|
405
|
+
/**
|
|
406
|
+
* Delay in seconds between retries.
|
|
407
|
+
*
|
|
408
|
+
* @default Cloudflare Queues default behavior.
|
|
409
|
+
*
|
|
410
|
+
* @example
|
|
411
|
+
* ```ts
|
|
412
|
+
* { queue: 'tasks-local', retryDelay: 30 }
|
|
413
|
+
* ```
|
|
414
|
+
*/
|
|
415
|
+
retryDelay?: number;
|
|
416
|
+
}
|
|
417
|
+
/**
|
|
418
|
+
* Rate Limiting binding configuration.
|
|
419
|
+
*/
|
|
420
|
+
export interface RateLimitBindingInput {
|
|
421
|
+
/**
|
|
422
|
+
* Positive integer namespace ID unique to the Cloudflare account.
|
|
423
|
+
*
|
|
424
|
+
* @example
|
|
425
|
+
* ```ts
|
|
426
|
+
* namespaceId: '1001'
|
|
427
|
+
* ```
|
|
428
|
+
*/
|
|
429
|
+
namespaceId: string;
|
|
430
|
+
/**
|
|
431
|
+
* Simple rate limiting settings.
|
|
432
|
+
*
|
|
433
|
+
* @example
|
|
434
|
+
* ```ts
|
|
435
|
+
* simple: { limit: 100, period: 60 }
|
|
436
|
+
* ```
|
|
437
|
+
*/
|
|
438
|
+
simple: RateLimitSimpleInput;
|
|
439
|
+
}
|
|
440
|
+
/**
|
|
441
|
+
* Simple rate limiting settings.
|
|
442
|
+
*/
|
|
443
|
+
export interface RateLimitSimpleInput {
|
|
444
|
+
/**
|
|
445
|
+
* Number of allowed calls within the configured period.
|
|
446
|
+
*
|
|
447
|
+
* @example
|
|
448
|
+
* ```ts
|
|
449
|
+
* limit: 100
|
|
450
|
+
* ```
|
|
451
|
+
*/
|
|
452
|
+
limit: number;
|
|
453
|
+
/**
|
|
454
|
+
* Rate limit window in seconds.
|
|
455
|
+
*
|
|
456
|
+
* @example
|
|
457
|
+
* ```ts
|
|
458
|
+
* period: 60
|
|
459
|
+
* ```
|
|
460
|
+
*/
|
|
461
|
+
period: 10 | 60;
|
|
462
|
+
}
|
|
463
|
+
/**
|
|
464
|
+
* Version Metadata binding configuration.
|
|
465
|
+
*/
|
|
466
|
+
export interface VersionMetadataBindingInput {
|
|
467
|
+
/**
|
|
468
|
+
* Binding name exposed in `env`.
|
|
469
|
+
*
|
|
470
|
+
* @example
|
|
471
|
+
* ```ts
|
|
472
|
+
* versionMetadata: { binding: 'CF_VERSION_METADATA' }
|
|
473
|
+
* ```
|
|
474
|
+
*/
|
|
475
|
+
binding: string;
|
|
476
|
+
}
|
|
477
|
+
/**
|
|
478
|
+
* Worker Loader binding configuration for Dynamic Workers.
|
|
479
|
+
*/
|
|
480
|
+
export type WorkerLoaderBindingInput = Record<string, never>;
|
|
481
|
+
/**
|
|
482
|
+
* Secrets Store binding by shorthand secret name or explicit store object.
|
|
483
|
+
*/
|
|
484
|
+
export type SecretsStoreBindingInput = string | SecretsStoreBindingObjectInput;
|
|
485
|
+
/**
|
|
486
|
+
* Explicit Secrets Store binding configuration.
|
|
487
|
+
*/
|
|
488
|
+
export interface SecretsStoreBindingObjectInput {
|
|
489
|
+
/**
|
|
490
|
+
* Secrets Store ID containing the account-level secret.
|
|
491
|
+
*
|
|
492
|
+
* @example
|
|
493
|
+
* ```ts
|
|
494
|
+
* storeId: 'store-id'
|
|
495
|
+
* ```
|
|
496
|
+
*/
|
|
497
|
+
storeId: string;
|
|
498
|
+
/**
|
|
499
|
+
* Secret name within the store.
|
|
500
|
+
*
|
|
501
|
+
* @example
|
|
502
|
+
* ```ts
|
|
503
|
+
* secretName: 'API_TOKEN'
|
|
504
|
+
* ```
|
|
505
|
+
*/
|
|
506
|
+
secretName: string;
|
|
507
|
+
}
|
|
508
|
+
/**
|
|
509
|
+
* Service binding object, including values produced by `ref().worker`.
|
|
510
|
+
*/
|
|
511
|
+
export interface ServiceBindingInput {
|
|
512
|
+
/**
|
|
513
|
+
* Target worker service name.
|
|
514
|
+
*
|
|
515
|
+
* @example
|
|
516
|
+
* ```ts
|
|
517
|
+
* services: { API: { service: 'api-worker' } }
|
|
518
|
+
* ```
|
|
519
|
+
*/
|
|
520
|
+
readonly service: string;
|
|
521
|
+
/**
|
|
522
|
+
* Optional target worker environment.
|
|
523
|
+
*
|
|
524
|
+
* @default Target worker default environment.
|
|
525
|
+
*
|
|
526
|
+
* @example
|
|
527
|
+
* ```ts
|
|
528
|
+
* services: { API: { service: 'api-worker', environment: 'staging' } }
|
|
529
|
+
* ```
|
|
530
|
+
*/
|
|
531
|
+
readonly environment?: string;
|
|
532
|
+
/**
|
|
533
|
+
* Optional named WorkerEntrypoint class.
|
|
534
|
+
*
|
|
535
|
+
* @default Target worker default export.
|
|
536
|
+
*
|
|
537
|
+
* @example
|
|
538
|
+
* ```ts
|
|
539
|
+
* services: { API: { service: 'api-worker', entrypoint: 'ApiEntrypoint' } }
|
|
540
|
+
* ```
|
|
541
|
+
*/
|
|
542
|
+
readonly entrypoint?: string;
|
|
543
|
+
/**
|
|
544
|
+
* Whether Wrangler local development should connect this service binding
|
|
545
|
+
* to the remote service.
|
|
546
|
+
*
|
|
547
|
+
* @default Wrangler default behavior.
|
|
548
|
+
*
|
|
549
|
+
* @example
|
|
550
|
+
* ```ts
|
|
551
|
+
* services: { API: { service: 'api-worker', remote: true } }
|
|
552
|
+
* ```
|
|
553
|
+
*/
|
|
554
|
+
readonly remote?: boolean;
|
|
555
|
+
/**
|
|
556
|
+
* Internal marker used by `ref()` service bindings.
|
|
557
|
+
*
|
|
558
|
+
* @internal
|
|
559
|
+
*/
|
|
560
|
+
readonly __ref?: unknown;
|
|
561
|
+
}
|
|
562
|
+
/**
|
|
563
|
+
* Workers AI binding configuration.
|
|
564
|
+
*/
|
|
565
|
+
export interface AiBindingInput {
|
|
566
|
+
/**
|
|
567
|
+
* Binding name exposed in `env`.
|
|
568
|
+
*
|
|
569
|
+
* @example
|
|
570
|
+
* ```ts
|
|
571
|
+
* ai: { binding: 'AI' }
|
|
572
|
+
* ```
|
|
573
|
+
*/
|
|
574
|
+
binding: string;
|
|
575
|
+
/**
|
|
576
|
+
* Whether Wrangler local development should use the remote Workers AI
|
|
577
|
+
* service for this binding.
|
|
578
|
+
*
|
|
579
|
+
* @default Wrangler default behavior.
|
|
580
|
+
*
|
|
581
|
+
* @example
|
|
582
|
+
* ```ts
|
|
583
|
+
* ai: { binding: 'AI', remote: true }
|
|
584
|
+
* ```
|
|
585
|
+
*/
|
|
586
|
+
remote?: boolean;
|
|
587
|
+
/**
|
|
588
|
+
* Whether to use Cloudflare's staging Workers AI environment.
|
|
589
|
+
*
|
|
590
|
+
* @default `false`
|
|
591
|
+
*
|
|
592
|
+
* @example
|
|
593
|
+
* ```ts
|
|
594
|
+
* ai: { binding: 'AI', staging: true }
|
|
595
|
+
* ```
|
|
596
|
+
*/
|
|
597
|
+
staging?: boolean;
|
|
598
|
+
}
|
|
599
|
+
/**
|
|
600
|
+
* AI Search namespace binding configuration.
|
|
601
|
+
*/
|
|
602
|
+
export interface AiSearchNamespaceBindingInput {
|
|
603
|
+
/**
|
|
604
|
+
* AI Search namespace name.
|
|
605
|
+
*
|
|
606
|
+
* @example
|
|
607
|
+
* ```ts
|
|
608
|
+
* namespace: 'docs'
|
|
609
|
+
* ```
|
|
610
|
+
*/
|
|
611
|
+
namespace: string;
|
|
612
|
+
/**
|
|
613
|
+
* Whether Wrangler local development should use the remote AI Search
|
|
614
|
+
* namespace.
|
|
615
|
+
*
|
|
616
|
+
* @default Wrangler default behavior.
|
|
617
|
+
*
|
|
618
|
+
* @example
|
|
619
|
+
* ```ts
|
|
620
|
+
* remote: true
|
|
621
|
+
* ```
|
|
622
|
+
*/
|
|
623
|
+
remote?: boolean;
|
|
624
|
+
}
|
|
625
|
+
/**
|
|
626
|
+
* AI Search instance binding configuration.
|
|
627
|
+
*/
|
|
628
|
+
export interface AiSearchInstanceBindingInput {
|
|
629
|
+
/**
|
|
630
|
+
* AI Search instance name in the default namespace.
|
|
631
|
+
*
|
|
632
|
+
* @example
|
|
633
|
+
* ```ts
|
|
634
|
+
* instanceName: 'docs-search'
|
|
635
|
+
* ```
|
|
636
|
+
*/
|
|
637
|
+
instanceName: string;
|
|
638
|
+
/**
|
|
639
|
+
* Whether Wrangler local development should use the remote AI Search
|
|
640
|
+
* instance.
|
|
641
|
+
*
|
|
642
|
+
* @default Wrangler default behavior.
|
|
643
|
+
*
|
|
644
|
+
* @example
|
|
645
|
+
* ```ts
|
|
646
|
+
* remote: true
|
|
647
|
+
* ```
|
|
648
|
+
*/
|
|
649
|
+
remote?: boolean;
|
|
650
|
+
}
|
|
651
|
+
/**
|
|
652
|
+
* Vectorize index binding configuration.
|
|
653
|
+
*/
|
|
654
|
+
export interface VectorizeBindingInput {
|
|
655
|
+
/**
|
|
656
|
+
* Vectorize index name.
|
|
657
|
+
*
|
|
658
|
+
* @example
|
|
659
|
+
* ```ts
|
|
660
|
+
* indexName: 'docs-index'
|
|
661
|
+
* ```
|
|
662
|
+
*/
|
|
663
|
+
indexName: string;
|
|
664
|
+
/**
|
|
665
|
+
* Whether Wrangler local development should use the remote Vectorize
|
|
666
|
+
* index.
|
|
667
|
+
*
|
|
668
|
+
* @default Wrangler default behavior.
|
|
669
|
+
*
|
|
670
|
+
* @example
|
|
671
|
+
* ```ts
|
|
672
|
+
* remote: true
|
|
673
|
+
* ```
|
|
674
|
+
*/
|
|
675
|
+
remote?: boolean;
|
|
676
|
+
}
|
|
677
|
+
/**
|
|
678
|
+
* Hyperdrive binding by stable name, explicit ID, or resolver object.
|
|
679
|
+
*/
|
|
680
|
+
export type HyperdriveBindingInput = string | HyperdriveBindingByIdInput | HyperdriveBindingByNameInput;
|
|
681
|
+
/**
|
|
682
|
+
* Hyperdrive binding by explicit configuration ID.
|
|
683
|
+
*/
|
|
684
|
+
export interface HyperdriveBindingByIdInput {
|
|
685
|
+
/**
|
|
686
|
+
* Explicit Hyperdrive configuration ID.
|
|
687
|
+
*
|
|
688
|
+
* @example
|
|
689
|
+
* ```ts
|
|
690
|
+
* id: 'hyperdrive-id'
|
|
691
|
+
* ```
|
|
692
|
+
*/
|
|
693
|
+
id: string;
|
|
694
|
+
/**
|
|
695
|
+
* Direct database connection string used by local Miniflare or Wrangler
|
|
696
|
+
* development.
|
|
697
|
+
*
|
|
698
|
+
* @default No local override.
|
|
699
|
+
*
|
|
700
|
+
* @example
|
|
701
|
+
* ```ts
|
|
702
|
+
* localConnectionString: 'postgres://localhost/app'
|
|
703
|
+
* ```
|
|
704
|
+
*/
|
|
705
|
+
localConnectionString?: string;
|
|
706
|
+
}
|
|
707
|
+
/**
|
|
708
|
+
* Hyperdrive binding by stable configuration name.
|
|
709
|
+
*/
|
|
710
|
+
export interface HyperdriveBindingByNameInput {
|
|
711
|
+
/**
|
|
712
|
+
* Stable Hyperdrive configuration name.
|
|
713
|
+
*
|
|
714
|
+
* @example
|
|
715
|
+
* ```ts
|
|
716
|
+
* name: 'app-postgres'
|
|
717
|
+
* ```
|
|
718
|
+
*/
|
|
719
|
+
name: string;
|
|
720
|
+
/**
|
|
721
|
+
* Direct database connection string used by local Miniflare or Wrangler
|
|
722
|
+
* development.
|
|
723
|
+
*
|
|
724
|
+
* @default No local override.
|
|
725
|
+
*
|
|
726
|
+
* @example
|
|
727
|
+
* ```ts
|
|
728
|
+
* localConnectionString: 'postgres://localhost/app'
|
|
729
|
+
* ```
|
|
730
|
+
*/
|
|
731
|
+
localConnectionString?: string;
|
|
732
|
+
/**
|
|
733
|
+
* Preview fallback behavior when no dedicated preview Hyperdrive exists.
|
|
734
|
+
*
|
|
735
|
+
* @default Missing preview Hyperdrives fail config resolution.
|
|
736
|
+
*
|
|
737
|
+
* @example
|
|
738
|
+
* ```ts
|
|
739
|
+
* previewFallback: 'base'
|
|
740
|
+
* ```
|
|
741
|
+
*/
|
|
742
|
+
previewFallback?: 'base';
|
|
743
|
+
/**
|
|
744
|
+
* Explicit dedicated preview Hyperdrive configuration ID.
|
|
745
|
+
*
|
|
746
|
+
* @default No dedicated preview ID.
|
|
747
|
+
*
|
|
748
|
+
* @example
|
|
749
|
+
* ```ts
|
|
750
|
+
* previewId: 'preview-hyperdrive-id'
|
|
751
|
+
* ```
|
|
752
|
+
*/
|
|
753
|
+
previewId?: string;
|
|
754
|
+
/**
|
|
755
|
+
* Legacy alias for a preview or development local connection string.
|
|
756
|
+
* Prefer `localConnectionString`.
|
|
757
|
+
*
|
|
758
|
+
* @default No local override.
|
|
759
|
+
*
|
|
760
|
+
* @example
|
|
761
|
+
* ```ts
|
|
762
|
+
* previewLocalConnectionString: 'postgres://localhost/app_preview'
|
|
763
|
+
* ```
|
|
764
|
+
*/
|
|
765
|
+
previewLocalConnectionString?: string;
|
|
766
|
+
}
|
|
767
|
+
//# sourceMappingURL=schema-types-bindings-resources.d.ts.map
|