devflare 1.0.0-next.5 → 1.0.0-next.51

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.
Files changed (596) hide show
  1. package/LICENSE +21 -0
  2. package/LLM.md +17312 -2139
  3. package/README.md +397 -605
  4. package/bin/devflare.js +30 -14
  5. package/dist/_chunks/account-Csog80ie.js +462 -0
  6. package/dist/_chunks/account-resources-CsmVowJp.js +159 -0
  7. package/dist/_chunks/ai-CBEuLdoP.js +322 -0
  8. package/dist/_chunks/api-TzdliH-6.js +568 -0
  9. package/dist/_chunks/build-Ccza8VQz.js +24 -0
  10. package/dist/_chunks/build-artifacts-BNssqhxE.js +483 -0
  11. package/dist/_chunks/cli-CU7wSG1-.js +1163 -0
  12. package/dist/_chunks/cloudflare-BaloqI3H.js +157 -0
  13. package/dist/_chunks/colors-DiK6wPJ5.js +13 -0
  14. package/dist/_chunks/command-utils-_bGRraDR.js +45 -0
  15. package/dist/_chunks/compiler-BtLp9T9N.js +500 -0
  16. package/dist/_chunks/config-QU8UEWmA.js +78 -0
  17. package/dist/_chunks/config-path-1yI7BiDU.js +42 -0
  18. package/dist/_chunks/context-CX50Y2Kb.js +2250 -0
  19. package/dist/_chunks/decorators-QmV57ixr.js +19 -0
  20. package/dist/_chunks/dependencies-C2oxFjU_.js +57 -0
  21. package/dist/_chunks/deploy-aifBaMVv.js +1032 -0
  22. package/dist/_chunks/dev-DF_3baGr.js +3483 -0
  23. package/dist/_chunks/doctor-tR9kGT_Z.js +219 -0
  24. package/dist/_chunks/durable-object-DMtH0XYX.js +234 -0
  25. package/dist/_chunks/env-S0_nMVz1.js +125 -0
  26. package/dist/_chunks/family-DKPp4wqj.js +143 -0
  27. package/dist/_chunks/generated-artifacts-dMJY4KAt.js +32 -0
  28. package/dist/_chunks/glob-CmQOvunB.js +56 -0
  29. package/dist/_chunks/init-DnkJOmpW.js +165 -0
  30. package/dist/_chunks/loader-OQ2AWpqm.js +1308 -0
  31. package/dist/_chunks/local-dev-vars-CTSa-wvF.js +81 -0
  32. package/dist/_chunks/local-hyperdrive-CJ90j46O.js +119 -0
  33. package/dist/_chunks/local-media-bindings-DsAW4AMF.js +335 -0
  34. package/dist/_chunks/local-secrets-CYoHfvQ1.js +123 -0
  35. package/dist/_chunks/local-workflow-entrypoints-8d_mXh8T.js +90 -0
  36. package/dist/_chunks/login-rVWUZOKC.js +51 -0
  37. package/dist/_chunks/package-metadata-DjHBLB-z.js +39 -0
  38. package/dist/_chunks/preferences-BKp_7XJx.js +241 -0
  39. package/dist/_chunks/preview-C3Cdr8an.js +462 -0
  40. package/dist/_chunks/preview-registry-ClAbLTHH.js +1186 -0
  41. package/dist/_chunks/preview-resources-DRWR0gaB.js +359 -0
  42. package/dist/_chunks/previews-BxNq8Y_J.js +1134 -0
  43. package/dist/_chunks/productions-DK7xwbEs.js +411 -0
  44. package/dist/_chunks/ref-CYJNAAe_.js +178 -0
  45. package/dist/_chunks/remote-CZnP-HLJ.js +79 -0
  46. package/dist/_chunks/remote-config-D39BY9ji.js +132 -0
  47. package/dist/_chunks/resolve-package-qizBfCIm.js +152 -0
  48. package/dist/_chunks/rolldown-runtime-CvQ6eiug.js +14 -0
  49. package/dist/_chunks/routes-B6XiI8Sa.js +851 -0
  50. package/dist/_chunks/runtime-DL-Nz3k8.js +550 -0
  51. package/dist/_chunks/schema-normalization-GjhTATHL.js +666 -0
  52. package/dist/_chunks/secrets-qT1JaBGt.js +95 -0
  53. package/dist/_chunks/tail-CuWI04BL.js +239 -0
  54. package/dist/_chunks/token-Dmi0KXyX.js +333 -0
  55. package/dist/_chunks/tokens-iVcgNXi-.js +221 -0
  56. package/dist/_chunks/types-BquPXsFg.js +484 -0
  57. package/dist/_chunks/ui-BUoZApvE.js +103 -0
  58. package/dist/_chunks/usage-BBTGzjon.js +272 -0
  59. package/dist/_chunks/vite-D_wLDGBs.js +1267 -0
  60. package/dist/_chunks/vite-utils-OVLMV605.js +183 -0
  61. package/dist/_chunks/worker-DEF-e8LL.js +410 -0
  62. package/dist/_chunks/worker-bundler-dTTnYU3n.js +458 -0
  63. package/dist/_chunks/worker-entrypoint-CQW77lG8.js +247 -0
  64. package/dist/_chunks/workerName-CFJsLZA-.js +23 -0
  65. package/dist/bridge/client.d.ts +49 -7
  66. package/dist/bridge/client.d.ts.map +1 -1
  67. package/dist/bridge/gateway-runtime.d.ts +8 -0
  68. package/dist/bridge/gateway-runtime.d.ts.map +1 -0
  69. package/dist/bridge/index.d.ts +6 -6
  70. package/dist/bridge/index.d.ts.map +1 -1
  71. package/dist/bridge/log.d.ts +5 -0
  72. package/dist/bridge/log.d.ts.map +1 -0
  73. package/dist/bridge/miniflare.d.ts +85 -2
  74. package/dist/bridge/miniflare.d.ts.map +1 -1
  75. package/dist/bridge/proxy.d.ts +12 -11
  76. package/dist/bridge/proxy.d.ts.map +1 -1
  77. package/dist/bridge/server.d.ts +2 -1
  78. package/dist/bridge/server.d.ts.map +1 -1
  79. package/dist/bridge/v2/body-streams.d.ts +53 -0
  80. package/dist/bridge/v2/body-streams.d.ts.map +1 -0
  81. package/dist/bridge/v2/codec.d.ts +106 -0
  82. package/dist/bridge/v2/codec.d.ts.map +1 -0
  83. package/dist/bridge/v2/control-messages.d.ts +46 -0
  84. package/dist/bridge/v2/control-messages.d.ts.map +1 -0
  85. package/dist/bridge/v2/frames.d.ts +109 -0
  86. package/dist/bridge/v2/frames.d.ts.map +1 -0
  87. package/dist/bridge/v2/index.d.ts +11 -0
  88. package/dist/bridge/v2/index.d.ts.map +1 -0
  89. package/dist/bridge/v2/serialization.d.ts +48 -0
  90. package/dist/bridge/v2/serialization.d.ts.map +1 -0
  91. package/dist/bridge/v2/transport.d.ts +31 -0
  92. package/dist/bridge/v2/transport.d.ts.map +1 -0
  93. package/dist/bridge/v2/value-codec.d.ts +61 -0
  94. package/dist/bridge/v2/value-codec.d.ts.map +1 -0
  95. package/dist/bridge/{serialization.d.ts → v2/value-serialization.d.ts} +40 -18
  96. package/dist/bridge/v2/value-serialization.d.ts.map +1 -0
  97. package/dist/bridge/{protocol.d.ts → v2/wire.d.ts} +32 -8
  98. package/dist/bridge/v2/wire.d.ts.map +1 -0
  99. package/dist/bridge/v2/ws-relay.d.ts +53 -0
  100. package/dist/bridge/v2/ws-relay.d.ts.map +1 -0
  101. package/dist/browser-shim/handler.d.ts +2 -2
  102. package/dist/browser-shim/handler.d.ts.map +1 -1
  103. package/dist/browser-shim/index.d.ts +2 -2
  104. package/dist/browser-shim/server.d.ts +63 -0
  105. package/dist/browser-shim/server.d.ts.map +1 -1
  106. package/dist/browser.d.ts +5705 -0
  107. package/dist/browser.d.ts.map +1 -0
  108. package/dist/browser.js +80 -0
  109. package/dist/bundler/defaults.d.ts +23 -0
  110. package/dist/bundler/defaults.d.ts.map +1 -0
  111. package/dist/bundler/do-bundler.d.ts +7 -0
  112. package/dist/bundler/do-bundler.d.ts.map +1 -1
  113. package/dist/bundler/index.d.ts +3 -1
  114. package/dist/bundler/index.d.ts.map +1 -1
  115. package/dist/bundler/rolldown-shared.d.ts +53 -0
  116. package/dist/bundler/rolldown-shared.d.ts.map +1 -0
  117. package/dist/bundler/worker-bundler.d.ts +13 -0
  118. package/dist/bundler/worker-bundler.d.ts.map +1 -0
  119. package/dist/bundler/worker-compat.d.ts +4 -0
  120. package/dist/bundler/worker-compat.d.ts.map +1 -0
  121. package/dist/cli/build-manifest.d.ts +66 -0
  122. package/dist/cli/build-manifest.d.ts.map +1 -0
  123. package/dist/cli/command-utils.d.ts +18 -0
  124. package/dist/cli/command-utils.d.ts.map +1 -0
  125. package/dist/cli/commands/account.d.ts +2 -2
  126. package/dist/cli/commands/account.d.ts.map +1 -1
  127. package/dist/cli/commands/ai.d.ts +1 -1
  128. package/dist/cli/commands/ai.d.ts.map +1 -1
  129. package/dist/cli/commands/build-artifacts.d.ts +40 -0
  130. package/dist/cli/commands/build-artifacts.d.ts.map +1 -0
  131. package/dist/cli/commands/build.d.ts +2 -2
  132. package/dist/cli/commands/build.d.ts.map +1 -1
  133. package/dist/cli/commands/config.d.ts +4 -0
  134. package/dist/cli/commands/config.d.ts.map +1 -0
  135. package/dist/cli/commands/deploy/metadata.d.ts +18 -0
  136. package/dist/cli/commands/deploy/metadata.d.ts.map +1 -0
  137. package/dist/cli/commands/deploy/prepare.d.ts +23 -0
  138. package/dist/cli/commands/deploy/prepare.d.ts.map +1 -0
  139. package/dist/cli/commands/deploy/runtime.d.ts +4 -0
  140. package/dist/cli/commands/deploy/runtime.d.ts.map +1 -0
  141. package/dist/cli/commands/deploy/verification.d.ts +36 -0
  142. package/dist/cli/commands/deploy/verification.d.ts.map +1 -0
  143. package/dist/cli/commands/deploy.d.ts +2 -2
  144. package/dist/cli/commands/deploy.d.ts.map +1 -1
  145. package/dist/cli/commands/dev.d.ts +9 -1
  146. package/dist/cli/commands/dev.d.ts.map +1 -1
  147. package/dist/cli/commands/doctor.d.ts +2 -2
  148. package/dist/cli/commands/doctor.d.ts.map +1 -1
  149. package/dist/cli/commands/init.d.ts +2 -2
  150. package/dist/cli/commands/init.d.ts.map +1 -1
  151. package/dist/cli/commands/login.d.ts +4 -0
  152. package/dist/cli/commands/login.d.ts.map +1 -0
  153. package/dist/cli/commands/previews-support/cleanup.d.ts +9 -0
  154. package/dist/cli/commands/previews-support/cleanup.d.ts.map +1 -0
  155. package/dist/cli/commands/previews-support/family.d.ts +10 -0
  156. package/dist/cli/commands/previews-support/family.d.ts.map +1 -0
  157. package/dist/cli/commands/previews-support/render.d.ts +8 -0
  158. package/dist/cli/commands/previews-support/render.d.ts.map +1 -0
  159. package/dist/cli/commands/previews-support/theme.d.ts +10 -0
  160. package/dist/cli/commands/previews-support/theme.d.ts.map +1 -0
  161. package/dist/cli/commands/previews-support/types.d.ts +70 -0
  162. package/dist/cli/commands/previews-support/types.d.ts.map +1 -0
  163. package/dist/cli/commands/previews.d.ts +4 -0
  164. package/dist/cli/commands/previews.d.ts.map +1 -0
  165. package/dist/cli/commands/productions.d.ts +4 -0
  166. package/dist/cli/commands/productions.d.ts.map +1 -0
  167. package/dist/cli/commands/remote.d.ts +1 -1
  168. package/dist/cli/commands/remote.d.ts.map +1 -1
  169. package/dist/cli/commands/secrets.d.ts +4 -0
  170. package/dist/cli/commands/secrets.d.ts.map +1 -0
  171. package/dist/cli/commands/tail.d.ts +44 -0
  172. package/dist/cli/commands/tail.d.ts.map +1 -0
  173. package/dist/cli/commands/token.d.ts +4 -0
  174. package/dist/cli/commands/token.d.ts.map +1 -0
  175. package/dist/cli/commands/type-generation/discovery.d.ts +7 -0
  176. package/dist/cli/commands/type-generation/discovery.d.ts.map +1 -0
  177. package/dist/cli/commands/type-generation/generator.d.ts +121 -0
  178. package/dist/cli/commands/type-generation/generator.d.ts.map +1 -0
  179. package/dist/cli/commands/type-generation/models.d.ts +27 -0
  180. package/dist/cli/commands/type-generation/models.d.ts.map +1 -0
  181. package/dist/cli/commands/types.d.ts +2 -2
  182. package/dist/cli/commands/types.d.ts.map +1 -1
  183. package/dist/cli/commands/worker.d.ts +4 -0
  184. package/dist/cli/commands/worker.d.ts.map +1 -0
  185. package/dist/cli/config-path.d.ts +6 -0
  186. package/dist/cli/config-path.d.ts.map +1 -0
  187. package/dist/cli/dependencies.d.ts +2 -1
  188. package/dist/cli/dependencies.d.ts.map +1 -1
  189. package/dist/cli/deploy-strategy.d.ts +17 -0
  190. package/dist/cli/deploy-strategy.d.ts.map +1 -0
  191. package/dist/cli/deploy-target.d.ts +17 -0
  192. package/dist/cli/deploy-target.d.ts.map +1 -0
  193. package/dist/cli/generated-artifacts.d.ts +12 -0
  194. package/dist/cli/generated-artifacts.d.ts.map +1 -0
  195. package/dist/cli/gradual-deploy.d.ts +49 -0
  196. package/dist/cli/gradual-deploy.d.ts.map +1 -0
  197. package/dist/cli/help-pages/pages/account.d.ts +3 -0
  198. package/dist/cli/help-pages/pages/account.d.ts.map +1 -0
  199. package/dist/cli/help-pages/pages/core.d.ts +4 -0
  200. package/dist/cli/help-pages/pages/core.d.ts.map +1 -0
  201. package/dist/cli/help-pages/pages/index.d.ts +3 -0
  202. package/dist/cli/help-pages/pages/index.d.ts.map +1 -0
  203. package/dist/cli/help-pages/pages/misc.d.ts +3 -0
  204. package/dist/cli/help-pages/pages/misc.d.ts.map +1 -0
  205. package/dist/cli/help-pages/pages/previews.d.ts +3 -0
  206. package/dist/cli/help-pages/pages/previews.d.ts.map +1 -0
  207. package/dist/cli/help-pages/pages/productions.d.ts +3 -0
  208. package/dist/cli/help-pages/pages/productions.d.ts.map +1 -0
  209. package/dist/cli/help-pages/render.d.ts +12 -0
  210. package/dist/cli/help-pages/render.d.ts.map +1 -0
  211. package/dist/cli/help-pages/shared.d.ts +15 -0
  212. package/dist/cli/help-pages/shared.d.ts.map +1 -0
  213. package/dist/cli/help-pages/types.d.ts +23 -0
  214. package/dist/cli/help-pages/types.d.ts.map +1 -0
  215. package/dist/cli/help.d.ts +6 -0
  216. package/dist/cli/help.d.ts.map +1 -0
  217. package/dist/cli/index.d.ts +1 -0
  218. package/dist/cli/index.d.ts.map +1 -1
  219. package/dist/cli/index.js +2 -0
  220. package/dist/cli/package-metadata.d.ts +16 -0
  221. package/dist/cli/package-metadata.d.ts.map +1 -0
  222. package/dist/cli/preview-bindings.d.ts +49 -0
  223. package/dist/cli/preview-bindings.d.ts.map +1 -0
  224. package/dist/cli/preview.d.ts +10 -0
  225. package/dist/cli/preview.d.ts.map +1 -0
  226. package/dist/cli/ui.d.ts +37 -0
  227. package/dist/cli/ui.d.ts.map +1 -0
  228. package/dist/cli/workspace-build-guard.d.ts +14 -0
  229. package/dist/cli/workspace-build-guard.d.ts.map +1 -0
  230. package/dist/cli/wrangler-auth.d.ts +1 -1
  231. package/dist/cloudflare/account-core.d.ts +6 -0
  232. package/dist/cloudflare/account-core.d.ts.map +1 -0
  233. package/dist/cloudflare/account-resources.d.ts +40 -0
  234. package/dist/cloudflare/account-resources.d.ts.map +1 -0
  235. package/dist/cloudflare/account-status.d.ts +11 -0
  236. package/dist/cloudflare/account-status.d.ts.map +1 -0
  237. package/dist/cloudflare/account-workers.d.ts +14 -0
  238. package/dist/cloudflare/account-workers.d.ts.map +1 -0
  239. package/dist/cloudflare/account.d.ts +7 -64
  240. package/dist/cloudflare/account.d.ts.map +1 -1
  241. package/dist/cloudflare/api.d.ts +71 -3
  242. package/dist/cloudflare/api.d.ts.map +1 -1
  243. package/dist/cloudflare/auth.d.ts +1 -1
  244. package/dist/cloudflare/auth.d.ts.map +1 -1
  245. package/dist/cloudflare/index.d.ts +61 -6
  246. package/dist/cloudflare/index.d.ts.map +1 -1
  247. package/dist/cloudflare/index.js +4 -13
  248. package/dist/cloudflare/known-permission-group-ids.generated.d.ts +10 -0
  249. package/dist/cloudflare/known-permission-group-ids.generated.d.ts.map +1 -0
  250. package/dist/cloudflare/kv-namespace.d.ts +4 -0
  251. package/dist/cloudflare/kv-namespace.d.ts.map +1 -0
  252. package/dist/cloudflare/preferences.d.ts +7 -0
  253. package/dist/cloudflare/preferences.d.ts.map +1 -1
  254. package/dist/cloudflare/preview-registry-cache.d.ts +6 -0
  255. package/dist/cloudflare/preview-registry-cache.d.ts.map +1 -0
  256. package/dist/cloudflare/preview-registry-inference.d.ts +14 -0
  257. package/dist/cloudflare/preview-registry-inference.d.ts.map +1 -0
  258. package/dist/cloudflare/preview-registry-records.d.ts +4 -0
  259. package/dist/cloudflare/preview-registry-records.d.ts.map +1 -0
  260. package/dist/cloudflare/preview-registry-shape.d.ts +47 -0
  261. package/dist/cloudflare/preview-registry-shape.d.ts.map +1 -0
  262. package/dist/cloudflare/preview-registry-store.d.ts +14 -0
  263. package/dist/cloudflare/preview-registry-store.d.ts.map +1 -0
  264. package/dist/cloudflare/preview-registry-transport.d.ts +4 -0
  265. package/dist/cloudflare/preview-registry-transport.d.ts.map +1 -0
  266. package/dist/cloudflare/preview-registry-types.d.ts +103 -0
  267. package/dist/cloudflare/preview-registry-types.d.ts.map +1 -0
  268. package/dist/cloudflare/preview-registry.d.ts +42 -0
  269. package/dist/cloudflare/preview-registry.d.ts.map +1 -0
  270. package/dist/cloudflare/preview-urls.d.ts +3 -0
  271. package/dist/cloudflare/preview-urls.d.ts.map +1 -0
  272. package/dist/cloudflare/registry-schema.d.ts +253 -0
  273. package/dist/cloudflare/registry-schema.d.ts.map +1 -0
  274. package/dist/cloudflare/remote-config.d.ts.map +1 -1
  275. package/dist/cloudflare/tokens.d.ts +44 -0
  276. package/dist/cloudflare/tokens.d.ts.map +1 -0
  277. package/dist/cloudflare/types.d.ts +124 -7
  278. package/dist/cloudflare/types.d.ts.map +1 -1
  279. package/dist/cloudflare/usage.d.ts +31 -3
  280. package/dist/cloudflare/usage.d.ts.map +1 -1
  281. package/dist/config/binding-resolution-helpers.d.ts +41 -0
  282. package/dist/config/binding-resolution-helpers.d.ts.map +1 -0
  283. package/dist/config/compatibility.d.ts +3 -0
  284. package/dist/config/compatibility.d.ts.map +1 -0
  285. package/dist/config/compiler/bindings.d.ts +14 -0
  286. package/dist/config/compiler/bindings.d.ts.map +1 -0
  287. package/dist/config/compiler/core-helpers.d.ts +6 -0
  288. package/dist/config/compiler/core-helpers.d.ts.map +1 -0
  289. package/dist/config/compiler/do-workers.d.ts +34 -0
  290. package/dist/config/compiler/do-workers.d.ts.map +1 -0
  291. package/dist/config/compiler/paths.d.ts +18 -0
  292. package/dist/config/compiler/paths.d.ts.map +1 -0
  293. package/dist/config/compiler/types.d.ts +309 -0
  294. package/dist/config/compiler/types.d.ts.map +1 -0
  295. package/dist/config/compiler.d.ts +22 -134
  296. package/dist/config/compiler.d.ts.map +1 -1
  297. package/dist/config/cron.d.ts +19 -0
  298. package/dist/config/cron.d.ts.map +1 -0
  299. package/dist/config/define.d.ts +8 -5
  300. package/dist/config/define.d.ts.map +1 -1
  301. package/dist/config/deploy-resources.d.ts +58 -0
  302. package/dist/config/deploy-resources.d.ts.map +1 -0
  303. package/dist/config/env-vars.d.ts +309 -0
  304. package/dist/config/env-vars.d.ts.map +1 -0
  305. package/dist/config/framework-providers.d.ts +9 -0
  306. package/dist/config/framework-providers.d.ts.map +1 -0
  307. package/dist/config/index.d.ts +12 -5
  308. package/dist/config/index.d.ts.map +1 -1
  309. package/dist/config/loader.d.ts +2 -1
  310. package/dist/config/loader.d.ts.map +1 -1
  311. package/dist/config/local-dev-vars.d.ts +15 -0
  312. package/dist/config/local-dev-vars.d.ts.map +1 -0
  313. package/dist/config/preview-resources.d.ts +83 -0
  314. package/dist/config/preview-resources.d.ts.map +1 -0
  315. package/dist/config/preview.d.ts +29 -0
  316. package/dist/config/preview.d.ts.map +1 -0
  317. package/dist/config/ref.d.ts +16 -25
  318. package/dist/config/ref.d.ts.map +1 -1
  319. package/dist/config/resolve-phased.d.ts +72 -0
  320. package/dist/config/resolve-phased.d.ts.map +1 -0
  321. package/dist/config/resolve.d.ts +11 -0
  322. package/dist/config/resolve.d.ts.map +1 -0
  323. package/dist/config/resource-resolution.d.ts +80 -0
  324. package/dist/config/resource-resolution.d.ts.map +1 -0
  325. package/dist/config/schema-bindings.d.ts +2087 -0
  326. package/dist/config/schema-bindings.d.ts.map +1 -0
  327. package/dist/config/schema-build.d.ts +67 -0
  328. package/dist/config/schema-build.d.ts.map +1 -0
  329. package/dist/config/schema-env.d.ts +3771 -0
  330. package/dist/config/schema-env.d.ts.map +1 -0
  331. package/dist/config/schema-normalization.d.ts +267 -0
  332. package/dist/config/schema-normalization.d.ts.map +1 -0
  333. package/dist/config/schema-runtime.d.ts +557 -0
  334. package/dist/config/schema-runtime.d.ts.map +1 -0
  335. package/dist/config/schema-types-bindings-platform.d.ts +520 -0
  336. package/dist/config/schema-types-bindings-platform.d.ts.map +1 -0
  337. package/dist/config/schema-types-bindings-resources.d.ts +802 -0
  338. package/dist/config/schema-types-bindings-resources.d.ts.map +1 -0
  339. package/dist/config/schema-types-bindings.d.ts +293 -0
  340. package/dist/config/schema-types-bindings.d.ts.map +1 -0
  341. package/dist/config/schema-types-build.d.ts +86 -0
  342. package/dist/config/schema-types-build.d.ts.map +1 -0
  343. package/dist/config/schema-types-runtime-server.d.ts +122 -0
  344. package/dist/config/schema-types-runtime-server.d.ts.map +1 -0
  345. package/dist/config/schema-types-runtime.d.ts +913 -0
  346. package/dist/config/schema-types-runtime.d.ts.map +1 -0
  347. package/dist/config/schema-types.d.ts +458 -0
  348. package/dist/config/schema-types.d.ts.map +1 -0
  349. package/dist/config/schema.d.ts +5699 -2021
  350. package/dist/config/schema.d.ts.map +1 -1
  351. package/dist/config/service-bindings-validation.d.ts +36 -0
  352. package/dist/config/service-bindings-validation.d.ts.map +1 -0
  353. package/dist/config-entry.d.ts +7 -0
  354. package/dist/config-entry.d.ts.map +1 -0
  355. package/dist/config-entry.js +3 -0
  356. package/dist/decorators/durable-object.d.ts.map +1 -1
  357. package/dist/decorators/index.d.ts +2 -2
  358. package/dist/decorators/index.js +2 -9
  359. package/dist/dev-server/d1-migrations.d.ts +36 -0
  360. package/dist/dev-server/d1-migrations.d.ts.map +1 -0
  361. package/dist/dev-server/dev-server-state.d.ts +59 -0
  362. package/dist/dev-server/dev-server-state.d.ts.map +1 -0
  363. package/dist/dev-server/gateway-script.d.ts +21 -0
  364. package/dist/dev-server/gateway-script.d.ts.map +1 -0
  365. package/dist/dev-server/index.d.ts +1 -1
  366. package/dist/dev-server/miniflare-bindings.d.ts +90 -0
  367. package/dist/dev-server/miniflare-bindings.d.ts.map +1 -0
  368. package/dist/dev-server/miniflare-dev-config.d.ts +36 -0
  369. package/dist/dev-server/miniflare-dev-config.d.ts.map +1 -0
  370. package/dist/dev-server/miniflare-log.d.ts +20 -0
  371. package/dist/dev-server/miniflare-log.d.ts.map +1 -0
  372. package/dist/dev-server/miniflare-worker-config.d.ts +93 -0
  373. package/dist/dev-server/miniflare-worker-config.d.ts.map +1 -0
  374. package/dist/dev-server/reload-queue.d.ts +13 -0
  375. package/dist/dev-server/reload-queue.d.ts.map +1 -0
  376. package/dist/dev-server/runtime-stdio.d.ts +8 -0
  377. package/dist/dev-server/runtime-stdio.d.ts.map +1 -0
  378. package/dist/dev-server/server-startup-helpers.d.ts +84 -0
  379. package/dist/dev-server/server-startup-helpers.d.ts.map +1 -0
  380. package/dist/dev-server/server.d.ts +2 -0
  381. package/dist/dev-server/server.d.ts.map +1 -1
  382. package/dist/dev-server/vite-process.d.ts +15 -0
  383. package/dist/dev-server/vite-process.d.ts.map +1 -0
  384. package/dist/dev-server/vite-utils.d.ts +19 -1
  385. package/dist/dev-server/vite-utils.d.ts.map +1 -1
  386. package/dist/dev-server/worker-source-watcher.d.ts +17 -0
  387. package/dist/dev-server/worker-source-watcher.d.ts.map +1 -0
  388. package/dist/dev-server/worker-surface-paths.d.ts +6 -0
  389. package/dist/dev-server/worker-surface-paths.d.ts.map +1 -0
  390. package/dist/env.d.ts +10 -0
  391. package/dist/env.d.ts.map +1 -1
  392. package/dist/index.d.ts +8 -12
  393. package/dist/index.d.ts.map +1 -1
  394. package/dist/index.js +9 -298
  395. package/dist/runtime/context-events.d.ts +13 -0
  396. package/dist/runtime/context-events.d.ts.map +1 -0
  397. package/dist/runtime/context-types.d.ts +82 -0
  398. package/dist/runtime/context-types.d.ts.map +1 -0
  399. package/dist/runtime/context.d.ts +20 -44
  400. package/dist/runtime/context.d.ts.map +1 -1
  401. package/dist/runtime/exports.d.ts +70 -55
  402. package/dist/runtime/exports.d.ts.map +1 -1
  403. package/dist/runtime/index.d.ts +10 -3
  404. package/dist/runtime/index.d.ts.map +1 -1
  405. package/dist/runtime/index.js +5 -111
  406. package/dist/runtime/middleware.d.ts +119 -67
  407. package/dist/runtime/middleware.d.ts.map +1 -1
  408. package/dist/runtime/router/index.d.ts +7 -0
  409. package/dist/runtime/router/index.d.ts.map +1 -0
  410. package/dist/runtime/router/types.d.ts +24 -0
  411. package/dist/runtime/router/types.d.ts.map +1 -0
  412. package/dist/runtime/validation.d.ts +18 -4
  413. package/dist/runtime/validation.d.ts.map +1 -1
  414. package/dist/secrets/local-secrets.d.ts +46 -0
  415. package/dist/secrets/local-secrets.d.ts.map +1 -0
  416. package/dist/shims/local-hyperdrive.d.ts +12 -0
  417. package/dist/shims/local-hyperdrive.d.ts.map +1 -0
  418. package/dist/shims/local-media-bindings.d.ts +19 -0
  419. package/dist/shims/local-media-bindings.d.ts.map +1 -0
  420. package/dist/shims/local-worker-loader.d.ts +3 -0
  421. package/dist/shims/local-worker-loader.d.ts.map +1 -0
  422. package/dist/sveltekit/index.d.ts +1 -1
  423. package/dist/sveltekit/index.d.ts.map +1 -1
  424. package/dist/sveltekit/index.js +313 -167
  425. package/dist/sveltekit/local-bindings.d.ts +4 -0
  426. package/dist/sveltekit/local-bindings.d.ts.map +1 -0
  427. package/dist/sveltekit/platform.d.ts +20 -2
  428. package/dist/sveltekit/platform.d.ts.map +1 -1
  429. package/dist/test/ai-search.d.ts +39 -0
  430. package/dist/test/ai-search.d.ts.map +1 -0
  431. package/dist/test/alarm.d.ts +55 -0
  432. package/dist/test/alarm.d.ts.map +1 -0
  433. package/dist/test/binding-hints.d.ts +10 -0
  434. package/dist/test/binding-hints.d.ts.map +1 -0
  435. package/dist/test/cf.d.ts +71 -35
  436. package/dist/test/cf.d.ts.map +1 -1
  437. package/dist/test/containers.d.ts +87 -0
  438. package/dist/test/containers.d.ts.map +1 -0
  439. package/dist/test/email.d.ts +16 -7
  440. package/dist/test/email.d.ts.map +1 -1
  441. package/dist/test/index.d.ts +20 -21
  442. package/dist/test/index.d.ts.map +1 -1
  443. package/dist/test/index.js +4981 -70
  444. package/dist/test/offline-bindings.d.ts +115 -0
  445. package/dist/test/offline-bindings.d.ts.map +1 -0
  446. package/dist/test/queue.d.ts.map +1 -1
  447. package/dist/test/remote-ai.d.ts.map +1 -1
  448. package/dist/test/remote-cloudflare.d.ts +13 -0
  449. package/dist/test/remote-cloudflare.d.ts.map +1 -0
  450. package/dist/test/remote-vectorize.d.ts.map +1 -1
  451. package/dist/test/resolve-service-bindings.d.ts +64 -4
  452. package/dist/test/resolve-service-bindings.d.ts.map +1 -1
  453. package/dist/test/scheduled.d.ts.map +1 -1
  454. package/dist/test/should-skip.d.ts +14 -18
  455. package/dist/test/should-skip.d.ts.map +1 -1
  456. package/dist/test/simple-context-bindings.d.ts +13 -0
  457. package/dist/test/simple-context-bindings.d.ts.map +1 -0
  458. package/dist/test/simple-context-durable-objects.d.ts +6 -0
  459. package/dist/test/simple-context-durable-objects.d.ts.map +1 -0
  460. package/dist/test/simple-context-env.d.ts +35 -0
  461. package/dist/test/simple-context-env.d.ts.map +1 -0
  462. package/dist/test/simple-context-gateway-script.d.ts +2 -0
  463. package/dist/test/simple-context-gateway-script.d.ts.map +1 -0
  464. package/dist/test/simple-context-handlers.d.ts +12 -0
  465. package/dist/test/simple-context-handlers.d.ts.map +1 -0
  466. package/dist/test/simple-context-lifecycle.d.ts +32 -0
  467. package/dist/test/simple-context-lifecycle.d.ts.map +1 -0
  468. package/dist/test/simple-context-mfconfig.d.ts +10 -0
  469. package/dist/test/simple-context-mfconfig.d.ts.map +1 -0
  470. package/dist/test/simple-context-multi-worker.d.ts +16 -0
  471. package/dist/test/simple-context-multi-worker.d.ts.map +1 -0
  472. package/dist/test/simple-context-paths.d.ts +40 -0
  473. package/dist/test/simple-context-paths.d.ts.map +1 -0
  474. package/dist/test/simple-context-runtime.d.ts +19 -0
  475. package/dist/test/simple-context-runtime.d.ts.map +1 -0
  476. package/dist/test/simple-context-startup.d.ts +11 -0
  477. package/dist/test/simple-context-startup.d.ts.map +1 -0
  478. package/dist/test/simple-context-transport.d.ts +14 -0
  479. package/dist/test/simple-context-transport.d.ts.map +1 -0
  480. package/dist/test/simple-context.d.ts +8 -27
  481. package/dist/test/simple-context.d.ts.map +1 -1
  482. package/dist/test/tail.d.ts +3 -2
  483. package/dist/test/tail.d.ts.map +1 -1
  484. package/dist/test/utilities/analytics-engine.d.ts +22 -0
  485. package/dist/test/utilities/analytics-engine.d.ts.map +1 -0
  486. package/dist/test/utilities/artifacts.d.ts +11 -0
  487. package/dist/test/utilities/artifacts.d.ts.map +1 -0
  488. package/dist/test/utilities/context.d.ts +39 -0
  489. package/dist/test/utilities/context.d.ts.map +1 -0
  490. package/dist/test/utilities/d1.d.ts +21 -0
  491. package/dist/test/utilities/d1.d.ts.map +1 -0
  492. package/dist/test/utilities/env.d.ts +43 -0
  493. package/dist/test/utilities/env.d.ts.map +1 -0
  494. package/dist/test/utilities/kv.d.ts +11 -0
  495. package/dist/test/utilities/kv.d.ts.map +1 -0
  496. package/dist/test/utilities/media.d.ts +16 -0
  497. package/dist/test/utilities/media.d.ts.map +1 -0
  498. package/dist/test/utilities/platform.d.ts +41 -0
  499. package/dist/test/utilities/platform.d.ts.map +1 -0
  500. package/dist/test/utilities/queue.d.ts +5 -0
  501. package/dist/test/utilities/queue.d.ts.map +1 -0
  502. package/dist/test/utilities/r2.d.ts +2 -0
  503. package/dist/test/utilities/r2.d.ts.map +1 -0
  504. package/dist/test/utilities/stream-flagship.d.ts +27 -0
  505. package/dist/test/utilities/stream-flagship.d.ts.map +1 -0
  506. package/dist/test/utilities/vectorize.d.ts +38 -0
  507. package/dist/test/utilities/vectorize.d.ts.map +1 -0
  508. package/dist/test/utilities/workflows.d.ts +26 -0
  509. package/dist/test/utilities/workflows.d.ts.map +1 -0
  510. package/dist/test/utilities.d.ts +13 -98
  511. package/dist/test/utilities.d.ts.map +1 -1
  512. package/dist/test/worker.d.ts +6 -0
  513. package/dist/test/worker.d.ts.map +1 -1
  514. package/dist/transform/durable-object.d.ts.map +1 -1
  515. package/dist/transform/index.d.ts +2 -2
  516. package/dist/transform/worker-entrypoint.d.ts +5 -0
  517. package/dist/transform/worker-entrypoint.d.ts.map +1 -1
  518. package/dist/utils/entrypoint-discovery.d.ts +6 -3
  519. package/dist/utils/entrypoint-discovery.d.ts.map +1 -1
  520. package/dist/utils/glob.d.ts.map +1 -1
  521. package/dist/utils/resolve-package.d.ts.map +1 -1
  522. package/dist/utils/send-email.d.ts +15 -0
  523. package/dist/utils/send-email.d.ts.map +1 -0
  524. package/dist/utils/send-email.js +163 -0
  525. package/dist/vite/config-file.d.ts +25 -0
  526. package/dist/vite/config-file.d.ts.map +1 -0
  527. package/dist/vite/index.d.ts +3 -2
  528. package/dist/vite/index.d.ts.map +1 -1
  529. package/dist/vite/index.js +2 -339
  530. package/dist/vite/plugin-config-hook.d.ts +28 -0
  531. package/dist/vite/plugin-config-hook.d.ts.map +1 -0
  532. package/dist/vite/plugin-context.d.ts +27 -0
  533. package/dist/vite/plugin-context.d.ts.map +1 -0
  534. package/dist/vite/plugin-durable-objects.d.ts +18 -0
  535. package/dist/vite/plugin-durable-objects.d.ts.map +1 -0
  536. package/dist/vite/plugin-programmatic.d.ts +44 -0
  537. package/dist/vite/plugin-programmatic.d.ts.map +1 -0
  538. package/dist/vite/plugin-service-bindings.d.ts +13 -0
  539. package/dist/vite/plugin-service-bindings.d.ts.map +1 -0
  540. package/dist/vite/plugin-transform.d.ts +41 -0
  541. package/dist/vite/plugin-transform.d.ts.map +1 -0
  542. package/dist/vite/plugin.d.ts +10 -41
  543. package/dist/vite/plugin.d.ts.map +1 -1
  544. package/dist/worker-entry/composed-worker.d.ts +7 -0
  545. package/dist/worker-entry/composed-worker.d.ts.map +1 -0
  546. package/dist/worker-entry/durable-object-discovery.d.ts +20 -0
  547. package/dist/worker-entry/durable-object-discovery.d.ts.map +1 -0
  548. package/dist/worker-entry/extensions.d.ts +5 -0
  549. package/dist/worker-entry/extensions.d.ts.map +1 -0
  550. package/dist/worker-entry/routes.d.ts +22 -0
  551. package/dist/worker-entry/routes.d.ts.map +1 -0
  552. package/dist/worker-entry/surface-paths.d.ts +26 -0
  553. package/dist/worker-entry/surface-paths.d.ts.map +1 -0
  554. package/dist/worker-entry/validate-fetch-style.d.ts +12 -0
  555. package/dist/worker-entry/validate-fetch-style.d.ts.map +1 -0
  556. package/dist/workflows/local-workflow-entrypoints.d.ts +7 -0
  557. package/dist/workflows/local-workflow-entrypoints.d.ts.map +1 -0
  558. package/package.json +159 -116
  559. package/R2.md +0 -170
  560. package/dist/account-rvrj687w.js +0 -397
  561. package/dist/ai-dx4fr9jh.js +0 -107
  562. package/dist/bridge/protocol.d.ts.map +0 -1
  563. package/dist/bridge/serialization.d.ts.map +0 -1
  564. package/dist/browser-shim/worker.d.ts +0 -14
  565. package/dist/browser-shim/worker.d.ts.map +0 -1
  566. package/dist/build-mnf6v8gd.js +0 -53
  567. package/dist/deploy-nhceck39.js +0 -70
  568. package/dist/dev-b9dmrj7b.js +0 -2417
  569. package/dist/doctor-fmgb3d28.js +0 -190
  570. package/dist/durable-object-t4kbb0yt.js +0 -13
  571. package/dist/index-07q6yxyc.js +0 -168
  572. package/dist/index-18hvb6gb.js +0 -194
  573. package/dist/index-1xpj0m4r.js +0 -57
  574. package/dist/index-37x76zdn.js +0 -4
  575. package/dist/index-3t6rypgc.js +0 -13
  576. package/dist/index-67qcae0f.js +0 -183
  577. package/dist/index-a855bdsx.js +0 -18
  578. package/dist/index-d8bdkx2h.js +0 -109
  579. package/dist/index-ep3445yc.js +0 -2225
  580. package/dist/index-gz1gndna.js +0 -307
  581. package/dist/index-hcex3rgh.js +0 -266
  582. package/dist/index-m2q41jwa.js +0 -462
  583. package/dist/index-n7rs26ft.js +0 -77
  584. package/dist/index-pf5s73n9.js +0 -1413
  585. package/dist/index-rbht7m9r.js +0 -36
  586. package/dist/index-tfyxa77h.js +0 -850
  587. package/dist/index-tk6ej9dj.js +0 -94
  588. package/dist/index-z14anrqp.js +0 -226
  589. package/dist/init-f9mgmew3.js +0 -186
  590. package/dist/remote-q59qk463.js +0 -97
  591. package/dist/test/bridge-context.d.ts +0 -76
  592. package/dist/test/bridge-context.d.ts.map +0 -1
  593. package/dist/test/multi-worker-context.d.ts +0 -114
  594. package/dist/test/multi-worker-context.d.ts.map +0 -1
  595. package/dist/types-5nyrz1sz.js +0 -454
  596. package/dist/worker-entrypoint-m9th0rg0.js +0 -13
@@ -0,0 +1,2087 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Durable Object binding input type.
4
+ * Accepts both string shorthand and object form (including DOBindingRef from ref()).
5
+ */
6
+ export type DurableObjectBindingInput = string | {
7
+ /** The Durable Object class name */
8
+ readonly className: string;
9
+ /**
10
+ * Script name for cross-worker DO access.
11
+ * For local DOs: file path (e.g., 'do.counter.ts')
12
+ * For cross-worker DOs: worker name (e.g., 'do-service')
13
+ */
14
+ readonly scriptName?: string;
15
+ /** @internal Reference marker for cross-worker DO bindings */
16
+ readonly __ref?: unknown;
17
+ };
18
+ /**
19
+ * Durable Object binding schema.
20
+ * Validates DO binding configuration in either string or object form.
21
+ */
22
+ export declare const durableObjectBindingSchema: z.ZodType<DurableObjectBindingInput, z.ZodTypeDef, DurableObjectBindingInput>;
23
+ /**
24
+ * Queue consumer configuration.
25
+ * Defines how messages are consumed from a Cloudflare Queue.
26
+ */
27
+ export declare const queueConsumerSchema: z.ZodObject<{
28
+ /** Queue name to consume from */
29
+ queue: z.ZodString;
30
+ /**
31
+ * Maximum messages per batch (1-100).
32
+ * @default 10
33
+ */
34
+ maxBatchSize: z.ZodOptional<z.ZodNumber>;
35
+ /**
36
+ * Maximum seconds to wait for a full batch.
37
+ * @default 5
38
+ */
39
+ maxBatchTimeout: z.ZodOptional<z.ZodNumber>;
40
+ /**
41
+ * Maximum retry attempts for failed messages.
42
+ * @default 3
43
+ */
44
+ maxRetries: z.ZodOptional<z.ZodNumber>;
45
+ /** Queue name to send failed messages after max retries */
46
+ deadLetterQueue: z.ZodOptional<z.ZodString>;
47
+ /** Maximum concurrent batch invocations */
48
+ maxConcurrency: z.ZodOptional<z.ZodNumber>;
49
+ /** Delay in seconds between retries */
50
+ retryDelay: z.ZodOptional<z.ZodNumber>;
51
+ /** Milliseconds to wait for pulled messages to become visible again; compiles to `visibility_timeout_ms` */
52
+ visibilityTimeoutMs: z.ZodOptional<z.ZodNumber>;
53
+ }, "strip", z.ZodTypeAny, {
54
+ queue: string;
55
+ maxBatchSize?: number | undefined;
56
+ maxBatchTimeout?: number | undefined;
57
+ maxRetries?: number | undefined;
58
+ deadLetterQueue?: string | undefined;
59
+ maxConcurrency?: number | undefined;
60
+ retryDelay?: number | undefined;
61
+ visibilityTimeoutMs?: number | undefined;
62
+ }, {
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
+ visibilityTimeoutMs?: number | undefined;
71
+ }>;
72
+ /**
73
+ * Queue producer binding schema.
74
+ * Accepts the queue-name string shorthand or an object form exposing `remote`.
75
+ */
76
+ export declare const queueProducerSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
77
+ /** Queue name this producer writes to */
78
+ queue: z.ZodString;
79
+ /** Ask Wrangler local development to connect this producer to the remote queue */
80
+ remote: z.ZodOptional<z.ZodBoolean>;
81
+ /** Number of seconds to delay messages sent by this producer; compiles to `delivery_delay` */
82
+ deliveryDelay: z.ZodOptional<z.ZodNumber>;
83
+ }, "strict", z.ZodTypeAny, {
84
+ queue: string;
85
+ remote?: boolean | undefined;
86
+ deliveryDelay?: number | undefined;
87
+ }, {
88
+ queue: string;
89
+ remote?: boolean | undefined;
90
+ deliveryDelay?: number | undefined;
91
+ }>]>;
92
+ /**
93
+ * Queues configuration for producers and consumers.
94
+ */
95
+ export declare const queuesConfigSchema: z.ZodObject<{
96
+ /**
97
+ * Queue producer bindings.
98
+ * Maps binding name to queue name or an object form exposing `remote`.
99
+ * @example { TASK_QUEUE: 'task-queue' }
100
+ */
101
+ producers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
102
+ /** Queue name this producer writes to */
103
+ queue: z.ZodString;
104
+ /** Ask Wrangler local development to connect this producer to the remote queue */
105
+ remote: z.ZodOptional<z.ZodBoolean>;
106
+ /** Number of seconds to delay messages sent by this producer; compiles to `delivery_delay` */
107
+ deliveryDelay: z.ZodOptional<z.ZodNumber>;
108
+ }, "strict", z.ZodTypeAny, {
109
+ queue: string;
110
+ remote?: boolean | undefined;
111
+ deliveryDelay?: number | undefined;
112
+ }, {
113
+ queue: string;
114
+ remote?: boolean | undefined;
115
+ deliveryDelay?: number | undefined;
116
+ }>]>>>;
117
+ /**
118
+ * Queue consumer configurations.
119
+ * Array of consumer configs for processing queue messages.
120
+ */
121
+ consumers: z.ZodOptional<z.ZodArray<z.ZodObject<{
122
+ /** Queue name to consume from */
123
+ queue: z.ZodString;
124
+ /**
125
+ * Maximum messages per batch (1-100).
126
+ * @default 10
127
+ */
128
+ maxBatchSize: z.ZodOptional<z.ZodNumber>;
129
+ /**
130
+ * Maximum seconds to wait for a full batch.
131
+ * @default 5
132
+ */
133
+ maxBatchTimeout: z.ZodOptional<z.ZodNumber>;
134
+ /**
135
+ * Maximum retry attempts for failed messages.
136
+ * @default 3
137
+ */
138
+ maxRetries: z.ZodOptional<z.ZodNumber>;
139
+ /** Queue name to send failed messages after max retries */
140
+ deadLetterQueue: z.ZodOptional<z.ZodString>;
141
+ /** Maximum concurrent batch invocations */
142
+ maxConcurrency: z.ZodOptional<z.ZodNumber>;
143
+ /** Delay in seconds between retries */
144
+ retryDelay: z.ZodOptional<z.ZodNumber>;
145
+ /** Milliseconds to wait for pulled messages to become visible again; compiles to `visibility_timeout_ms` */
146
+ visibilityTimeoutMs: z.ZodOptional<z.ZodNumber>;
147
+ }, "strip", z.ZodTypeAny, {
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
+ visibilityTimeoutMs?: number | undefined;
156
+ }, {
157
+ queue: string;
158
+ maxBatchSize?: number | undefined;
159
+ maxBatchTimeout?: number | undefined;
160
+ maxRetries?: number | undefined;
161
+ deadLetterQueue?: string | undefined;
162
+ maxConcurrency?: number | undefined;
163
+ retryDelay?: number | undefined;
164
+ visibilityTimeoutMs?: number | undefined;
165
+ }>, "many">>;
166
+ }, "strip", z.ZodTypeAny, {
167
+ producers?: Record<string, string | {
168
+ queue: string;
169
+ remote?: boolean | undefined;
170
+ deliveryDelay?: number | undefined;
171
+ }> | undefined;
172
+ consumers?: {
173
+ queue: string;
174
+ maxBatchSize?: number | undefined;
175
+ maxBatchTimeout?: number | undefined;
176
+ maxRetries?: number | undefined;
177
+ deadLetterQueue?: string | undefined;
178
+ maxConcurrency?: number | undefined;
179
+ retryDelay?: number | undefined;
180
+ visibilityTimeoutMs?: number | undefined;
181
+ }[] | undefined;
182
+ }, {
183
+ producers?: Record<string, string | {
184
+ queue: string;
185
+ remote?: boolean | undefined;
186
+ deliveryDelay?: number | undefined;
187
+ }> | undefined;
188
+ consumers?: {
189
+ queue: string;
190
+ maxBatchSize?: number | undefined;
191
+ maxBatchTimeout?: number | undefined;
192
+ maxRetries?: number | undefined;
193
+ deadLetterQueue?: string | undefined;
194
+ maxConcurrency?: number | undefined;
195
+ retryDelay?: number | undefined;
196
+ visibilityTimeoutMs?: number | undefined;
197
+ }[] | undefined;
198
+ }>;
199
+ /**
200
+ * Rate Limiting binding configuration.
201
+ * Devflare uses camelCase authoring and compiles to Wrangler's `ratelimits`
202
+ * array (`namespace_id`, `simple.limit`, `simple.period`).
203
+ */
204
+ export declare const rateLimitBindingSchema: z.ZodObject<{
205
+ /** Positive integer string unique to the Cloudflare account */
206
+ namespaceId: z.ZodString;
207
+ /** Simple rate limiting is the only currently supported Cloudflare mode */
208
+ simple: z.ZodObject<{
209
+ /** Number of allowed calls within the configured period */
210
+ limit: z.ZodNumber;
211
+ /** Rate limit window in seconds */
212
+ period: z.ZodUnion<[z.ZodLiteral<10>, z.ZodLiteral<60>]>;
213
+ }, "strict", z.ZodTypeAny, {
214
+ limit: number;
215
+ period: 10 | 60;
216
+ }, {
217
+ limit: number;
218
+ period: 10 | 60;
219
+ }>;
220
+ }, "strict", z.ZodTypeAny, {
221
+ namespaceId: string;
222
+ simple: {
223
+ limit: number;
224
+ period: 10 | 60;
225
+ };
226
+ }, {
227
+ namespaceId: string;
228
+ simple: {
229
+ limit: number;
230
+ period: 10 | 60;
231
+ };
232
+ }>;
233
+ /**
234
+ * Version Metadata binding configuration.
235
+ */
236
+ export declare const versionMetadataBindingSchema: z.ZodObject<{
237
+ /** Binding name exposed in env (for example, CF_VERSION_METADATA) */
238
+ binding: z.ZodString;
239
+ }, "strict", z.ZodTypeAny, {
240
+ binding: string;
241
+ }, {
242
+ binding: string;
243
+ }>;
244
+ /**
245
+ * Worker Loader binding configuration for Dynamic Workers.
246
+ */
247
+ export declare const workerLoaderBindingSchema: z.ZodObject<{}, "strict", z.ZodTypeAny, {}, {}>;
248
+ /**
249
+ * Secrets Store binding configuration.
250
+ * Devflare accepts object form for explicit per-binding store IDs and string
251
+ * shorthand when the worker sets a top-level `secretsStoreId`.
252
+ */
253
+ export declare const secretsStoreBindingSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
254
+ /** Secrets Store ID containing the account-level secret */
255
+ storeId: z.ZodString;
256
+ /** Secret name within the store */
257
+ secretName: z.ZodString;
258
+ }, "strict", z.ZodTypeAny, {
259
+ storeId: string;
260
+ secretName: string;
261
+ }, {
262
+ storeId: string;
263
+ secretName: string;
264
+ }>]>;
265
+ export declare const serviceBindingSchema: z.ZodType<{
266
+ /** Target worker/service name */
267
+ service: string;
268
+ /** Optional environment (staging, production, etc.) */
269
+ environment?: string;
270
+ /** Optional entrypoint class name for named exports */
271
+ entrypoint?: string;
272
+ /** Ask Wrangler local development to connect this binding to the remote service */
273
+ remote?: boolean;
274
+ /** Arbitrary props made available to the target worker via `ctx.props` */
275
+ props?: Record<string, unknown>;
276
+ /** @internal Reference marker for ref() bindings */
277
+ __ref?: unknown;
278
+ }, z.ZodTypeDef, {
279
+ /** Target worker/service name */
280
+ service: string;
281
+ /** Optional environment (staging, production, etc.) */
282
+ environment?: string;
283
+ /** Optional entrypoint class name for named exports */
284
+ entrypoint?: string;
285
+ /** Ask Wrangler local development to connect this binding to the remote service */
286
+ remote?: boolean;
287
+ /** Arbitrary props made available to the target worker via `ctx.props` */
288
+ props?: Record<string, unknown>;
289
+ /** @internal Reference marker for ref() bindings */
290
+ __ref?: unknown;
291
+ }>;
292
+ /**
293
+ * AI binding configuration.
294
+ * Provides access to Cloudflare Workers AI for inference.
295
+ */
296
+ export declare const aiBindingSchema: z.ZodObject<{
297
+ /** Binding name exposed in env (e.g., 'AI') */
298
+ binding: z.ZodString;
299
+ /** Ask Wrangler local development to connect this binding to the remote Workers AI service */
300
+ remote: z.ZodOptional<z.ZodBoolean>;
301
+ /** Use Cloudflare's staging Workers AI environment for this binding */
302
+ staging: z.ZodOptional<z.ZodBoolean>;
303
+ }, "strict", z.ZodTypeAny, {
304
+ binding: string;
305
+ remote?: boolean | undefined;
306
+ staging?: boolean | undefined;
307
+ }, {
308
+ binding: string;
309
+ remote?: boolean | undefined;
310
+ staging?: boolean | undefined;
311
+ }>;
312
+ /**
313
+ * AI Search namespace binding configuration.
314
+ * Provides access to all AI Search instances in a namespace.
315
+ */
316
+ export declare const aiSearchNamespaceBindingSchema: z.ZodObject<{
317
+ /** AI Search namespace name */
318
+ namespace: z.ZodString;
319
+ /** Ask Wrangler local development to connect this binding remotely */
320
+ remote: z.ZodOptional<z.ZodBoolean>;
321
+ }, "strict", z.ZodTypeAny, {
322
+ namespace: string;
323
+ remote?: boolean | undefined;
324
+ }, {
325
+ namespace: string;
326
+ remote?: boolean | undefined;
327
+ }>;
328
+ /**
329
+ * AI Search instance binding configuration.
330
+ * Provides direct access to one AI Search instance in the default namespace.
331
+ */
332
+ export declare const aiSearchInstanceBindingSchema: z.ZodObject<{
333
+ /** AI Search instance name */
334
+ instanceName: z.ZodString;
335
+ /** Ask Wrangler local development to connect this binding remotely */
336
+ remote: z.ZodOptional<z.ZodBoolean>;
337
+ }, "strict", z.ZodTypeAny, {
338
+ instanceName: string;
339
+ remote?: boolean | undefined;
340
+ }, {
341
+ instanceName: string;
342
+ remote?: boolean | undefined;
343
+ }>;
344
+ /**
345
+ * Vectorize index binding configuration.
346
+ * Provides access to a Cloudflare Vectorize index for similarity search.
347
+ */
348
+ export declare const vectorizeBindingSchema: z.ZodObject<{
349
+ /** Name of the Vectorize index */
350
+ indexName: z.ZodString;
351
+ /** Ask Wrangler local development to connect this binding to the remote index */
352
+ remote: z.ZodOptional<z.ZodBoolean>;
353
+ }, "strip", z.ZodTypeAny, {
354
+ indexName: string;
355
+ remote?: boolean | undefined;
356
+ }, {
357
+ indexName: string;
358
+ remote?: boolean | undefined;
359
+ }>;
360
+ /**
361
+ * Hyperdrive binding configuration.
362
+ * Provides accelerated PostgreSQL connections via connection pooling.
363
+ */
364
+ export declare const hyperdriveBindingByIdSchema: z.ZodObject<{
365
+ /** Explicit Hyperdrive configuration ID */
366
+ id: z.ZodString;
367
+ /** Direct database connection string used by local Miniflare/Wrangler dev */
368
+ localConnectionString: z.ZodOptional<z.ZodString>;
369
+ }, "strict", z.ZodTypeAny, {
370
+ id: string;
371
+ localConnectionString?: string | undefined;
372
+ }, {
373
+ id: string;
374
+ localConnectionString?: string | undefined;
375
+ }>;
376
+ export declare const hyperdriveBindingByNameSchema: z.ZodObject<{
377
+ /** Stable Hyperdrive configuration name to resolve to an ID at config/build/deploy time */
378
+ name: z.ZodString;
379
+ /** Direct database connection string used by local Miniflare/Wrangler dev */
380
+ localConnectionString: z.ZodOptional<z.ZodString>;
381
+ /**
382
+ * Opt-in fallback behavior for preview-scoped Hyperdrive bindings.
383
+ * When set to `'base'`, Devflare is permitted to reuse the base Hyperdrive
384
+ * configuration if no dedicated preview Hyperdrive exists in the account.
385
+ * When omitted, missing preview Hyperdrives cause a config-resolution error.
386
+ */
387
+ previewFallback: z.ZodOptional<z.ZodLiteral<"base">>;
388
+ /** Explicit dedicated preview Hyperdrive configuration ID */
389
+ previewId: z.ZodOptional<z.ZodString>;
390
+ /** Legacy alias for a preview/dev local connection string; prefer localConnectionString */
391
+ previewLocalConnectionString: z.ZodOptional<z.ZodString>;
392
+ }, "strict", z.ZodTypeAny, {
393
+ name: string;
394
+ localConnectionString?: string | undefined;
395
+ previewFallback?: "base" | undefined;
396
+ previewId?: string | undefined;
397
+ previewLocalConnectionString?: string | undefined;
398
+ }, {
399
+ name: string;
400
+ localConnectionString?: string | undefined;
401
+ previewFallback?: "base" | undefined;
402
+ previewId?: string | undefined;
403
+ previewLocalConnectionString?: string | undefined;
404
+ }>;
405
+ export declare const hyperdriveBindingSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
406
+ /** Explicit Hyperdrive configuration ID */
407
+ id: z.ZodString;
408
+ /** Direct database connection string used by local Miniflare/Wrangler dev */
409
+ localConnectionString: z.ZodOptional<z.ZodString>;
410
+ }, "strict", z.ZodTypeAny, {
411
+ id: string;
412
+ localConnectionString?: string | undefined;
413
+ }, {
414
+ id: string;
415
+ localConnectionString?: string | undefined;
416
+ }>, z.ZodObject<{
417
+ /** Stable Hyperdrive configuration name to resolve to an ID at config/build/deploy time */
418
+ name: z.ZodString;
419
+ /** Direct database connection string used by local Miniflare/Wrangler dev */
420
+ localConnectionString: z.ZodOptional<z.ZodString>;
421
+ /**
422
+ * Opt-in fallback behavior for preview-scoped Hyperdrive bindings.
423
+ * When set to `'base'`, Devflare is permitted to reuse the base Hyperdrive
424
+ * configuration if no dedicated preview Hyperdrive exists in the account.
425
+ * When omitted, missing preview Hyperdrives cause a config-resolution error.
426
+ */
427
+ previewFallback: z.ZodOptional<z.ZodLiteral<"base">>;
428
+ /** Explicit dedicated preview Hyperdrive configuration ID */
429
+ previewId: z.ZodOptional<z.ZodString>;
430
+ /** Legacy alias for a preview/dev local connection string; prefer localConnectionString */
431
+ previewLocalConnectionString: z.ZodOptional<z.ZodString>;
432
+ }, "strict", z.ZodTypeAny, {
433
+ name: string;
434
+ localConnectionString?: string | undefined;
435
+ previewFallback?: "base" | undefined;
436
+ previewId?: string | undefined;
437
+ previewLocalConnectionString?: string | undefined;
438
+ }, {
439
+ name: string;
440
+ localConnectionString?: string | undefined;
441
+ previewFallback?: "base" | undefined;
442
+ previewId?: string | undefined;
443
+ previewLocalConnectionString?: string | undefined;
444
+ }>]>;
445
+ export declare function formatBrowserBindingLimitMessage(bindingNames: string[]): string;
446
+ export declare function getBrowserBindingNames(bindings: Record<string, unknown> | undefined): string[];
447
+ /**
448
+ * Browser Rendering binding configuration.
449
+ * Provides headless browser access for rendering/screenshots.
450
+ */
451
+ export declare const browserBindingValueSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
452
+ /** Ask Wrangler local development to connect this binding to the remote Browser Rendering service */
453
+ remote: z.ZodOptional<z.ZodBoolean>;
454
+ }, "strict", z.ZodTypeAny, {
455
+ remote?: boolean | undefined;
456
+ }, {
457
+ remote?: boolean | undefined;
458
+ }>]>;
459
+ export declare const browserBindingSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
460
+ /** Ask Wrangler local development to connect this binding to the remote Browser Rendering service */
461
+ remote: z.ZodOptional<z.ZodBoolean>;
462
+ }, "strict", z.ZodTypeAny, {
463
+ remote?: boolean | undefined;
464
+ }, {
465
+ remote?: boolean | undefined;
466
+ }>]>>, Record<string, string | {
467
+ remote?: boolean | undefined;
468
+ }>, Record<string, string | {
469
+ remote?: boolean | undefined;
470
+ }>>;
471
+ /**
472
+ * Analytics Engine binding configuration.
473
+ * Provides access to Cloudflare Analytics Engine for event logging.
474
+ */
475
+ export declare const analyticsBindingSchema: z.ZodObject<{
476
+ /** Analytics Engine dataset name */
477
+ dataset: z.ZodString;
478
+ }, "strip", z.ZodTypeAny, {
479
+ dataset: string;
480
+ }, {
481
+ dataset: string;
482
+ }>;
483
+ /**
484
+ * Email sending binding configuration.
485
+ * Enables sending emails via Cloudflare Email Routing.
486
+ */
487
+ export declare const sendEmailBindingSchema: z.ZodEffects<z.ZodObject<{
488
+ /** Restrict this binding to a specific verified destination address */
489
+ destinationAddress: z.ZodOptional<z.ZodString>;
490
+ /** Restrict this binding to a set of verified destination addresses */
491
+ allowedDestinationAddresses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
492
+ /** Restrict this binding to a set of verified sender addresses */
493
+ allowedSenderAddresses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
494
+ /** Ask Wrangler local development to connect this binding to the remote Email Routing service */
495
+ remote: z.ZodOptional<z.ZodBoolean>;
496
+ }, "strip", z.ZodTypeAny, {
497
+ destinationAddress?: string | undefined;
498
+ allowedDestinationAddresses?: string[] | undefined;
499
+ allowedSenderAddresses?: string[] | undefined;
500
+ remote?: boolean | undefined;
501
+ }, {
502
+ destinationAddress?: string | undefined;
503
+ allowedDestinationAddresses?: string[] | undefined;
504
+ allowedSenderAddresses?: string[] | undefined;
505
+ remote?: boolean | undefined;
506
+ }>, {
507
+ destinationAddress?: string | undefined;
508
+ allowedDestinationAddresses?: string[] | undefined;
509
+ allowedSenderAddresses?: string[] | undefined;
510
+ remote?: boolean | undefined;
511
+ }, {
512
+ destinationAddress?: string | undefined;
513
+ allowedDestinationAddresses?: string[] | undefined;
514
+ allowedSenderAddresses?: string[] | undefined;
515
+ remote?: boolean | undefined;
516
+ }>;
517
+ export declare const d1BindingByIdSchema: z.ZodObject<{
518
+ /** D1 database ID used during `wrangler dev`; compiles to `preview_database_id` */
519
+ previewDatabaseId: z.ZodOptional<z.ZodString>;
520
+ /** Name of the migrations table; compiles to `migrations_table` */
521
+ migrationsTable: z.ZodOptional<z.ZodString>;
522
+ /** Path to the migrations directory; compiles to `migrations_dir` */
523
+ migrationsDir: z.ZodOptional<z.ZodString>;
524
+ /** Ask Wrangler local development to connect this binding to the remote database */
525
+ remote: z.ZodOptional<z.ZodBoolean>;
526
+ /** Explicit D1 database ID */
527
+ id: z.ZodString;
528
+ }, "strict", z.ZodTypeAny, {
529
+ previewDatabaseId?: string | undefined;
530
+ migrationsTable?: string | undefined;
531
+ migrationsDir?: string | undefined;
532
+ remote?: boolean | undefined;
533
+ id: string;
534
+ }, {
535
+ previewDatabaseId?: string | undefined;
536
+ migrationsTable?: string | undefined;
537
+ migrationsDir?: string | undefined;
538
+ remote?: boolean | undefined;
539
+ id: string;
540
+ }>;
541
+ export declare const d1BindingByNameSchema: z.ZodObject<{
542
+ /** D1 database ID used during `wrangler dev`; compiles to `preview_database_id` */
543
+ previewDatabaseId: z.ZodOptional<z.ZodString>;
544
+ /** Name of the migrations table; compiles to `migrations_table` */
545
+ migrationsTable: z.ZodOptional<z.ZodString>;
546
+ /** Path to the migrations directory; compiles to `migrations_dir` */
547
+ migrationsDir: z.ZodOptional<z.ZodString>;
548
+ /** Ask Wrangler local development to connect this binding to the remote database */
549
+ remote: z.ZodOptional<z.ZodBoolean>;
550
+ /** Stable D1 database name to resolve to an ID at config/build/deploy time */
551
+ name: z.ZodString;
552
+ }, "strict", z.ZodTypeAny, {
553
+ previewDatabaseId?: string | undefined;
554
+ migrationsTable?: string | undefined;
555
+ migrationsDir?: string | undefined;
556
+ remote?: boolean | undefined;
557
+ name: string;
558
+ }, {
559
+ previewDatabaseId?: string | undefined;
560
+ migrationsTable?: string | undefined;
561
+ migrationsDir?: string | undefined;
562
+ remote?: boolean | undefined;
563
+ name: string;
564
+ }>;
565
+ export declare const d1BindingSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
566
+ /** D1 database ID used during `wrangler dev`; compiles to `preview_database_id` */
567
+ previewDatabaseId: z.ZodOptional<z.ZodString>;
568
+ /** Name of the migrations table; compiles to `migrations_table` */
569
+ migrationsTable: z.ZodOptional<z.ZodString>;
570
+ /** Path to the migrations directory; compiles to `migrations_dir` */
571
+ migrationsDir: z.ZodOptional<z.ZodString>;
572
+ /** Ask Wrangler local development to connect this binding to the remote database */
573
+ remote: z.ZodOptional<z.ZodBoolean>;
574
+ /** Explicit D1 database ID */
575
+ id: z.ZodString;
576
+ }, "strict", z.ZodTypeAny, {
577
+ previewDatabaseId?: string | undefined;
578
+ migrationsTable?: string | undefined;
579
+ migrationsDir?: string | undefined;
580
+ remote?: boolean | undefined;
581
+ id: string;
582
+ }, {
583
+ previewDatabaseId?: string | undefined;
584
+ migrationsTable?: string | undefined;
585
+ migrationsDir?: string | undefined;
586
+ remote?: boolean | undefined;
587
+ id: string;
588
+ }>, z.ZodObject<{
589
+ /** D1 database ID used during `wrangler dev`; compiles to `preview_database_id` */
590
+ previewDatabaseId: z.ZodOptional<z.ZodString>;
591
+ /** Name of the migrations table; compiles to `migrations_table` */
592
+ migrationsTable: z.ZodOptional<z.ZodString>;
593
+ /** Path to the migrations directory; compiles to `migrations_dir` */
594
+ migrationsDir: z.ZodOptional<z.ZodString>;
595
+ /** Ask Wrangler local development to connect this binding to the remote database */
596
+ remote: z.ZodOptional<z.ZodBoolean>;
597
+ /** Stable D1 database name to resolve to an ID at config/build/deploy time */
598
+ name: z.ZodString;
599
+ }, "strict", z.ZodTypeAny, {
600
+ previewDatabaseId?: string | undefined;
601
+ migrationsTable?: string | undefined;
602
+ migrationsDir?: string | undefined;
603
+ remote?: boolean | undefined;
604
+ name: string;
605
+ }, {
606
+ previewDatabaseId?: string | undefined;
607
+ migrationsTable?: string | undefined;
608
+ migrationsDir?: string | undefined;
609
+ remote?: boolean | undefined;
610
+ name: string;
611
+ }>]>;
612
+ export declare const kvBindingByIdSchema: z.ZodObject<{
613
+ /** KV namespace ID used during `wrangler dev`; compiles to `preview_id` */
614
+ previewId: z.ZodOptional<z.ZodString>;
615
+ /** Ask Wrangler local development to connect this binding to the remote namespace */
616
+ remote: z.ZodOptional<z.ZodBoolean>;
617
+ /** Explicit KV namespace ID */
618
+ id: z.ZodString;
619
+ }, "strict", z.ZodTypeAny, {
620
+ previewId?: string | undefined;
621
+ remote?: boolean | undefined;
622
+ id: string;
623
+ }, {
624
+ previewId?: string | undefined;
625
+ remote?: boolean | undefined;
626
+ id: string;
627
+ }>;
628
+ export declare const kvBindingByNameSchema: z.ZodObject<{
629
+ /** KV namespace ID used during `wrangler dev`; compiles to `preview_id` */
630
+ previewId: z.ZodOptional<z.ZodString>;
631
+ /** Ask Wrangler local development to connect this binding to the remote namespace */
632
+ remote: z.ZodOptional<z.ZodBoolean>;
633
+ /** Stable KV namespace name to resolve to an ID at config/build/deploy time */
634
+ name: z.ZodString;
635
+ }, "strict", z.ZodTypeAny, {
636
+ previewId?: string | undefined;
637
+ remote?: boolean | undefined;
638
+ name: string;
639
+ }, {
640
+ previewId?: string | undefined;
641
+ remote?: boolean | undefined;
642
+ name: string;
643
+ }>;
644
+ export declare const kvBindingSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
645
+ /** KV namespace ID used during `wrangler dev`; compiles to `preview_id` */
646
+ previewId: z.ZodOptional<z.ZodString>;
647
+ /** Ask Wrangler local development to connect this binding to the remote namespace */
648
+ remote: z.ZodOptional<z.ZodBoolean>;
649
+ /** Explicit KV namespace ID */
650
+ id: z.ZodString;
651
+ }, "strict", z.ZodTypeAny, {
652
+ previewId?: string | undefined;
653
+ remote?: boolean | undefined;
654
+ id: string;
655
+ }, {
656
+ previewId?: string | undefined;
657
+ remote?: boolean | undefined;
658
+ id: string;
659
+ }>, z.ZodObject<{
660
+ /** KV namespace ID used during `wrangler dev`; compiles to `preview_id` */
661
+ previewId: z.ZodOptional<z.ZodString>;
662
+ /** Ask Wrangler local development to connect this binding to the remote namespace */
663
+ remote: z.ZodOptional<z.ZodBoolean>;
664
+ /** Stable KV namespace name to resolve to an ID at config/build/deploy time */
665
+ name: z.ZodString;
666
+ }, "strict", z.ZodTypeAny, {
667
+ previewId?: string | undefined;
668
+ remote?: boolean | undefined;
669
+ name: string;
670
+ }, {
671
+ previewId?: string | undefined;
672
+ remote?: boolean | undefined;
673
+ name: string;
674
+ }>]>;
675
+ /**
676
+ * R2 bucket binding schema.
677
+ * Accepts the bucket-name string shorthand or an object form exposing
678
+ * `remote`, `previewBucketName`, and `jurisdiction`.
679
+ */
680
+ export declare const r2BindingObjectSchema: z.ZodObject<{
681
+ /** R2 bucket name at the edge */
682
+ bucketName: z.ZodString;
683
+ /** R2 bucket name used during `wrangler dev`; compiles to `preview_bucket_name` */
684
+ previewBucketName: z.ZodOptional<z.ZodString>;
685
+ /** Jurisdiction the bucket exists in; compiles to `jurisdiction` */
686
+ jurisdiction: z.ZodOptional<z.ZodString>;
687
+ /** Ask Wrangler local development to connect this binding to the remote bucket */
688
+ remote: z.ZodOptional<z.ZodBoolean>;
689
+ }, "strict", z.ZodTypeAny, {
690
+ bucketName: string;
691
+ previewBucketName?: string | undefined;
692
+ jurisdiction?: string | undefined;
693
+ remote?: boolean | undefined;
694
+ }, {
695
+ bucketName: string;
696
+ previewBucketName?: string | undefined;
697
+ jurisdiction?: string | undefined;
698
+ remote?: boolean | undefined;
699
+ }>;
700
+ export declare const r2BindingSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
701
+ /** R2 bucket name at the edge */
702
+ bucketName: z.ZodString;
703
+ /** R2 bucket name used during `wrangler dev`; compiles to `preview_bucket_name` */
704
+ previewBucketName: z.ZodOptional<z.ZodString>;
705
+ /** Jurisdiction the bucket exists in; compiles to `jurisdiction` */
706
+ jurisdiction: z.ZodOptional<z.ZodString>;
707
+ /** Ask Wrangler local development to connect this binding to the remote bucket */
708
+ remote: z.ZodOptional<z.ZodBoolean>;
709
+ }, "strict", z.ZodTypeAny, {
710
+ bucketName: string;
711
+ previewBucketName?: string | undefined;
712
+ jurisdiction?: string | undefined;
713
+ remote?: boolean | undefined;
714
+ }, {
715
+ bucketName: string;
716
+ previewBucketName?: string | undefined;
717
+ jurisdiction?: string | undefined;
718
+ remote?: boolean | undefined;
719
+ }>]>;
720
+ export declare const mtlsCertificateBindingByIdSchema: z.ZodObject<{
721
+ /** Uploaded mTLS certificate UUID from `wrangler mtls-certificate upload` */
722
+ certificateId: z.ZodString;
723
+ /** Ask Wrangler local development to use the remote binding when available */
724
+ remote: z.ZodOptional<z.ZodBoolean>;
725
+ }, "strict", z.ZodTypeAny, {
726
+ certificateId: string;
727
+ remote?: boolean | undefined;
728
+ }, {
729
+ certificateId: string;
730
+ remote?: boolean | undefined;
731
+ }>;
732
+ export declare const mtlsCertificateBindingByWranglerIdSchema: z.ZodObject<{
733
+ /** Wrangler-native uploaded mTLS certificate UUID */
734
+ certificate_id: z.ZodString;
735
+ /** Ask Wrangler local development to use the remote binding when available */
736
+ remote: z.ZodOptional<z.ZodBoolean>;
737
+ }, "strict", z.ZodTypeAny, {
738
+ certificate_id: string;
739
+ remote?: boolean | undefined;
740
+ }, {
741
+ certificate_id: string;
742
+ remote?: boolean | undefined;
743
+ }>;
744
+ /**
745
+ * C17 — mTLS Certificate binding.
746
+ * The id is the UUID returned by `wrangler mtls-certificate upload`.
747
+ */
748
+ export declare const mtlsCertificateBindingSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
749
+ /** Uploaded mTLS certificate UUID from `wrangler mtls-certificate upload` */
750
+ certificateId: z.ZodString;
751
+ /** Ask Wrangler local development to use the remote binding when available */
752
+ remote: z.ZodOptional<z.ZodBoolean>;
753
+ }, "strict", z.ZodTypeAny, {
754
+ certificateId: string;
755
+ remote?: boolean | undefined;
756
+ }, {
757
+ certificateId: string;
758
+ remote?: boolean | undefined;
759
+ }>, z.ZodObject<{
760
+ /** Wrangler-native uploaded mTLS certificate UUID */
761
+ certificate_id: z.ZodString;
762
+ /** Ask Wrangler local development to use the remote binding when available */
763
+ remote: z.ZodOptional<z.ZodBoolean>;
764
+ }, "strict", z.ZodTypeAny, {
765
+ certificate_id: string;
766
+ remote?: boolean | undefined;
767
+ }, {
768
+ certificate_id: string;
769
+ remote?: boolean | undefined;
770
+ }>]>;
771
+ /**
772
+ * C17 — Workers for Platforms (Dispatch Namespace) binding.
773
+ */
774
+ export declare const dispatchNamespaceBindingSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
775
+ namespace: z.ZodString;
776
+ outbound: z.ZodOptional<z.ZodObject<{
777
+ service: z.ZodString;
778
+ environment: z.ZodOptional<z.ZodString>;
779
+ parameters: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
780
+ }, "strict", z.ZodTypeAny, {
781
+ service: string;
782
+ environment?: string | undefined;
783
+ parameters?: string[] | undefined;
784
+ }, {
785
+ service: string;
786
+ environment?: string | undefined;
787
+ parameters?: string[] | undefined;
788
+ }>>;
789
+ remote: z.ZodOptional<z.ZodBoolean>;
790
+ }, "strict", z.ZodTypeAny, {
791
+ namespace: string;
792
+ outbound?: {
793
+ service: string;
794
+ environment?: string | undefined;
795
+ parameters?: string[] | undefined;
796
+ } | undefined;
797
+ remote?: boolean | undefined;
798
+ }, {
799
+ namespace: string;
800
+ outbound?: {
801
+ service: string;
802
+ environment?: string | undefined;
803
+ parameters?: string[] | undefined;
804
+ } | undefined;
805
+ remote?: boolean | undefined;
806
+ }>]>;
807
+ /**
808
+ * C17 — Workflows-as-binding (a workflow class exposed for another worker
809
+ * to invoke). Distinct from a worker declaring its own workflows.
810
+ */
811
+ export declare const workflowBindingSchema: z.ZodObject<{
812
+ name: z.ZodString;
813
+ className: z.ZodString;
814
+ scriptName: z.ZodOptional<z.ZodString>;
815
+ remote: z.ZodOptional<z.ZodBoolean>;
816
+ limits: z.ZodOptional<z.ZodObject<{
817
+ steps: z.ZodNumber;
818
+ }, "strict", z.ZodTypeAny, {
819
+ steps: number;
820
+ }, {
821
+ steps: number;
822
+ }>>;
823
+ }, "strict", z.ZodTypeAny, {
824
+ name: string;
825
+ className: string;
826
+ scriptName?: string | undefined;
827
+ remote?: boolean | undefined;
828
+ limits?: {
829
+ steps: number;
830
+ } | undefined;
831
+ }, {
832
+ name: string;
833
+ className: string;
834
+ scriptName?: string | undefined;
835
+ remote?: boolean | undefined;
836
+ limits?: {
837
+ steps: number;
838
+ } | undefined;
839
+ }>;
840
+ /**
841
+ * C17 — Cloudflare Pipelines binding.
842
+ */
843
+ export declare const pipelineBindingSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
844
+ pipeline: z.ZodString;
845
+ remote: z.ZodOptional<z.ZodBoolean>;
846
+ }, "strict", z.ZodTypeAny, {
847
+ pipeline: string;
848
+ remote?: boolean | undefined;
849
+ }, {
850
+ pipeline: string;
851
+ remote?: boolean | undefined;
852
+ }>]>;
853
+ /**
854
+ * C17 — Cloudflare Images binding (transformation/upload service).
855
+ */
856
+ export declare const imagesBindingSchema: z.ZodUnion<[z.ZodObject<{
857
+ remote: z.ZodOptional<z.ZodBoolean>;
858
+ }, "strict", z.ZodTypeAny, {
859
+ remote?: boolean | undefined;
860
+ }, {
861
+ remote?: boolean | undefined;
862
+ }>, z.ZodLiteral<true>]>;
863
+ /**
864
+ * C17 — Cloudflare Media Transformations binding.
865
+ */
866
+ export declare const mediaBindingSchema: z.ZodUnion<[z.ZodObject<{
867
+ remote: z.ZodOptional<z.ZodBoolean>;
868
+ }, "strict", z.ZodTypeAny, {
869
+ remote?: boolean | undefined;
870
+ }, {
871
+ remote?: boolean | undefined;
872
+ }>, z.ZodLiteral<true>]>;
873
+ /**
874
+ * C17 — Cloudflare Artifacts binding.
875
+ */
876
+ export declare const artifactsBindingSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
877
+ namespace: z.ZodString;
878
+ remote: z.ZodOptional<z.ZodBoolean>;
879
+ }, "strict", z.ZodTypeAny, {
880
+ namespace: string;
881
+ remote?: boolean | undefined;
882
+ }, {
883
+ namespace: string;
884
+ remote?: boolean | undefined;
885
+ }>]>;
886
+ /**
887
+ * CF-2 — Cloudflare Stream binding (video upload/playback service).
888
+ * Mirrors the Images/Media singleton shape: `true` shorthand or `{ remote? }`.
889
+ */
890
+ export declare const streamBindingSchema: z.ZodUnion<[z.ZodObject<{
891
+ /** Ask Wrangler local development to connect this binding to the remote Stream service */
892
+ remote: z.ZodOptional<z.ZodBoolean>;
893
+ }, "strict", z.ZodTypeAny, {
894
+ remote?: boolean | undefined;
895
+ }, {
896
+ remote?: boolean | undefined;
897
+ }>, z.ZodLiteral<true>]>;
898
+ /**
899
+ * CF-2 — VPC service binding. Connects the Worker to a private service through
900
+ * a Cloudflare VPC connectivity service. Compiles to wrangler's `vpc_services`.
901
+ */
902
+ export declare const vpcServiceBindingSchema: z.ZodObject<{
903
+ /** Service ID of the VPC connectivity service; compiles to `service_id` */
904
+ serviceId: z.ZodString;
905
+ /** Ask Wrangler local development to connect this binding to the remote VPC service */
906
+ remote: z.ZodOptional<z.ZodBoolean>;
907
+ }, "strict", z.ZodTypeAny, {
908
+ serviceId: string;
909
+ remote?: boolean | undefined;
910
+ }, {
911
+ serviceId: string;
912
+ remote?: boolean | undefined;
913
+ }>;
914
+ /**
915
+ * CF-2 — VPC network binding routed through a Cloudflare Tunnel (`tunnelId`).
916
+ */
917
+ export declare const vpcNetworkByTunnelSchema: z.ZodObject<{
918
+ /** Tunnel ID of the Cloudflare Tunnel; compiles to `tunnel_id`. Mutually exclusive with networkId */
919
+ tunnelId: z.ZodString;
920
+ /** Ask Wrangler local development to connect this binding to the remote VPC network */
921
+ remote: z.ZodOptional<z.ZodBoolean>;
922
+ }, "strict", z.ZodTypeAny, {
923
+ tunnelId: string;
924
+ remote?: boolean | undefined;
925
+ }, {
926
+ tunnelId: string;
927
+ remote?: boolean | undefined;
928
+ }>;
929
+ /**
930
+ * CF-2 — VPC network binding routed through a network ID (`networkId`).
931
+ */
932
+ export declare const vpcNetworkByNetworkSchema: z.ZodObject<{
933
+ /** Network ID to route traffic through; compiles to `network_id`. Mutually exclusive with tunnelId */
934
+ networkId: z.ZodString;
935
+ /** Ask Wrangler local development to connect this binding to the remote VPC network */
936
+ remote: z.ZodOptional<z.ZodBoolean>;
937
+ }, "strict", z.ZodTypeAny, {
938
+ networkId: string;
939
+ remote?: boolean | undefined;
940
+ }, {
941
+ networkId: string;
942
+ remote?: boolean | undefined;
943
+ }>;
944
+ /**
945
+ * CF-2 — VPC network binding. Use exactly one of `tunnelId` or `networkId`.
946
+ */
947
+ export declare const vpcNetworkBindingSchema: z.ZodUnion<[z.ZodObject<{
948
+ /** Tunnel ID of the Cloudflare Tunnel; compiles to `tunnel_id`. Mutually exclusive with networkId */
949
+ tunnelId: z.ZodString;
950
+ /** Ask Wrangler local development to connect this binding to the remote VPC network */
951
+ remote: z.ZodOptional<z.ZodBoolean>;
952
+ }, "strict", z.ZodTypeAny, {
953
+ tunnelId: string;
954
+ remote?: boolean | undefined;
955
+ }, {
956
+ tunnelId: string;
957
+ remote?: boolean | undefined;
958
+ }>, z.ZodObject<{
959
+ /** Network ID to route traffic through; compiles to `network_id`. Mutually exclusive with tunnelId */
960
+ networkId: z.ZodString;
961
+ /** Ask Wrangler local development to connect this binding to the remote VPC network */
962
+ remote: z.ZodOptional<z.ZodBoolean>;
963
+ }, "strict", z.ZodTypeAny, {
964
+ networkId: string;
965
+ remote?: boolean | undefined;
966
+ }, {
967
+ networkId: string;
968
+ remote?: boolean | undefined;
969
+ }>]>;
970
+ /**
971
+ * CF-2 — Flagship feature-flag binding. Compiles to wrangler's `flagship`
972
+ * array (`app_id`).
973
+ */
974
+ export declare const flagshipBindingSchema: z.ZodObject<{
975
+ /** Flagship app ID to bind to; compiles to `app_id` */
976
+ appId: z.ZodString;
977
+ /** Ask Wrangler local development to use the remote Flagship service for flag evaluation */
978
+ remote: z.ZodOptional<z.ZodBoolean>;
979
+ }, "strict", z.ZodTypeAny, {
980
+ appId: string;
981
+ remote?: boolean | undefined;
982
+ }, {
983
+ appId: string;
984
+ remote?: boolean | undefined;
985
+ }>;
986
+ /**
987
+ * All worker bindings configuration.
988
+ * Defines connections to Cloudflare services and resources.
989
+ */
990
+ export declare const bindingsSchema: z.ZodOptional<z.ZodObject<{
991
+ /**
992
+ * KV Namespace bindings.
993
+ * Maps binding name to either a stable KV namespace name or an explicit resolver object.
994
+ */
995
+ kv: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
996
+ /** KV namespace ID used during `wrangler dev`; compiles to `preview_id` */
997
+ previewId: z.ZodOptional<z.ZodString>;
998
+ /** Ask Wrangler local development to connect this binding to the remote namespace */
999
+ remote: z.ZodOptional<z.ZodBoolean>;
1000
+ /** Explicit KV namespace ID */
1001
+ id: z.ZodString;
1002
+ }, "strict", z.ZodTypeAny, {
1003
+ previewId?: string | undefined;
1004
+ remote?: boolean | undefined;
1005
+ id: string;
1006
+ }, {
1007
+ previewId?: string | undefined;
1008
+ remote?: boolean | undefined;
1009
+ id: string;
1010
+ }>, z.ZodObject<{
1011
+ /** KV namespace ID used during `wrangler dev`; compiles to `preview_id` */
1012
+ previewId: z.ZodOptional<z.ZodString>;
1013
+ /** Ask Wrangler local development to connect this binding to the remote namespace */
1014
+ remote: z.ZodOptional<z.ZodBoolean>;
1015
+ /** Stable KV namespace name to resolve to an ID at config/build/deploy time */
1016
+ name: z.ZodString;
1017
+ }, "strict", z.ZodTypeAny, {
1018
+ previewId?: string | undefined;
1019
+ remote?: boolean | undefined;
1020
+ name: string;
1021
+ }, {
1022
+ previewId?: string | undefined;
1023
+ remote?: boolean | undefined;
1024
+ name: string;
1025
+ }>]>>>;
1026
+ /**
1027
+ * D1 Database bindings.
1028
+ * Maps binding name to either a stable D1 database name or an explicit resolver object.
1029
+ */
1030
+ d1: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
1031
+ /** D1 database ID used during `wrangler dev`; compiles to `preview_database_id` */
1032
+ previewDatabaseId: z.ZodOptional<z.ZodString>;
1033
+ /** Name of the migrations table; compiles to `migrations_table` */
1034
+ migrationsTable: z.ZodOptional<z.ZodString>;
1035
+ /** Path to the migrations directory; compiles to `migrations_dir` */
1036
+ migrationsDir: z.ZodOptional<z.ZodString>;
1037
+ /** Ask Wrangler local development to connect this binding to the remote database */
1038
+ remote: z.ZodOptional<z.ZodBoolean>;
1039
+ /** Explicit D1 database ID */
1040
+ id: z.ZodString;
1041
+ }, "strict", z.ZodTypeAny, {
1042
+ previewDatabaseId?: string | undefined;
1043
+ migrationsTable?: string | undefined;
1044
+ migrationsDir?: string | undefined;
1045
+ remote?: boolean | undefined;
1046
+ id: string;
1047
+ }, {
1048
+ previewDatabaseId?: string | undefined;
1049
+ migrationsTable?: string | undefined;
1050
+ migrationsDir?: string | undefined;
1051
+ remote?: boolean | undefined;
1052
+ id: string;
1053
+ }>, z.ZodObject<{
1054
+ /** D1 database ID used during `wrangler dev`; compiles to `preview_database_id` */
1055
+ previewDatabaseId: z.ZodOptional<z.ZodString>;
1056
+ /** Name of the migrations table; compiles to `migrations_table` */
1057
+ migrationsTable: z.ZodOptional<z.ZodString>;
1058
+ /** Path to the migrations directory; compiles to `migrations_dir` */
1059
+ migrationsDir: z.ZodOptional<z.ZodString>;
1060
+ /** Ask Wrangler local development to connect this binding to the remote database */
1061
+ remote: z.ZodOptional<z.ZodBoolean>;
1062
+ /** Stable D1 database name to resolve to an ID at config/build/deploy time */
1063
+ name: z.ZodString;
1064
+ }, "strict", z.ZodTypeAny, {
1065
+ previewDatabaseId?: string | undefined;
1066
+ migrationsTable?: string | undefined;
1067
+ migrationsDir?: string | undefined;
1068
+ remote?: boolean | undefined;
1069
+ name: string;
1070
+ }, {
1071
+ previewDatabaseId?: string | undefined;
1072
+ migrationsTable?: string | undefined;
1073
+ migrationsDir?: string | undefined;
1074
+ remote?: boolean | undefined;
1075
+ name: string;
1076
+ }>]>>>;
1077
+ /**
1078
+ * R2 Bucket bindings.
1079
+ * Maps binding name to an R2 bucket name or an explicit object form.
1080
+ */
1081
+ r2: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
1082
+ /** R2 bucket name at the edge */
1083
+ bucketName: z.ZodString;
1084
+ /** R2 bucket name used during `wrangler dev`; compiles to `preview_bucket_name` */
1085
+ previewBucketName: z.ZodOptional<z.ZodString>;
1086
+ /** Jurisdiction the bucket exists in; compiles to `jurisdiction` */
1087
+ jurisdiction: z.ZodOptional<z.ZodString>;
1088
+ /** Ask Wrangler local development to connect this binding to the remote bucket */
1089
+ remote: z.ZodOptional<z.ZodBoolean>;
1090
+ }, "strict", z.ZodTypeAny, {
1091
+ bucketName: string;
1092
+ previewBucketName?: string | undefined;
1093
+ jurisdiction?: string | undefined;
1094
+ remote?: boolean | undefined;
1095
+ }, {
1096
+ bucketName: string;
1097
+ previewBucketName?: string | undefined;
1098
+ jurisdiction?: string | undefined;
1099
+ remote?: boolean | undefined;
1100
+ }>]>>>;
1101
+ /**
1102
+ * Durable Object bindings.
1103
+ * Maps binding name to DO class configuration.
1104
+ */
1105
+ durableObjects: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<DurableObjectBindingInput, z.ZodTypeDef, DurableObjectBindingInput>>>;
1106
+ /**
1107
+ * Queue bindings for producers and consumers.
1108
+ */
1109
+ queues: z.ZodOptional<z.ZodObject<{
1110
+ /**
1111
+ * Queue producer bindings.
1112
+ * Maps binding name to queue name or an object form exposing `remote`.
1113
+ * @example { TASK_QUEUE: 'task-queue' }
1114
+ */
1115
+ producers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
1116
+ /** Queue name this producer writes to */
1117
+ queue: z.ZodString;
1118
+ /** Ask Wrangler local development to connect this producer to the remote queue */
1119
+ remote: z.ZodOptional<z.ZodBoolean>;
1120
+ /** Number of seconds to delay messages sent by this producer; compiles to `delivery_delay` */
1121
+ deliveryDelay: z.ZodOptional<z.ZodNumber>;
1122
+ }, "strict", z.ZodTypeAny, {
1123
+ queue: string;
1124
+ remote?: boolean | undefined;
1125
+ deliveryDelay?: number | undefined;
1126
+ }, {
1127
+ queue: string;
1128
+ remote?: boolean | undefined;
1129
+ deliveryDelay?: number | undefined;
1130
+ }>]>>>;
1131
+ /**
1132
+ * Queue consumer configurations.
1133
+ * Array of consumer configs for processing queue messages.
1134
+ */
1135
+ consumers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1136
+ /** Queue name to consume from */
1137
+ queue: z.ZodString;
1138
+ /**
1139
+ * Maximum messages per batch (1-100).
1140
+ * @default 10
1141
+ */
1142
+ maxBatchSize: z.ZodOptional<z.ZodNumber>;
1143
+ /**
1144
+ * Maximum seconds to wait for a full batch.
1145
+ * @default 5
1146
+ */
1147
+ maxBatchTimeout: z.ZodOptional<z.ZodNumber>;
1148
+ /**
1149
+ * Maximum retry attempts for failed messages.
1150
+ * @default 3
1151
+ */
1152
+ maxRetries: z.ZodOptional<z.ZodNumber>;
1153
+ /** Queue name to send failed messages after max retries */
1154
+ deadLetterQueue: z.ZodOptional<z.ZodString>;
1155
+ /** Maximum concurrent batch invocations */
1156
+ maxConcurrency: z.ZodOptional<z.ZodNumber>;
1157
+ /** Delay in seconds between retries */
1158
+ retryDelay: z.ZodOptional<z.ZodNumber>;
1159
+ /** Milliseconds to wait for pulled messages to become visible again; compiles to `visibility_timeout_ms` */
1160
+ visibilityTimeoutMs: z.ZodOptional<z.ZodNumber>;
1161
+ }, "strip", z.ZodTypeAny, {
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
+ visibilityTimeoutMs?: number | undefined;
1170
+ }, {
1171
+ queue: string;
1172
+ maxBatchSize?: number | undefined;
1173
+ maxBatchTimeout?: number | undefined;
1174
+ maxRetries?: number | undefined;
1175
+ deadLetterQueue?: string | undefined;
1176
+ maxConcurrency?: number | undefined;
1177
+ retryDelay?: number | undefined;
1178
+ visibilityTimeoutMs?: number | undefined;
1179
+ }>, "many">>;
1180
+ }, "strip", z.ZodTypeAny, {
1181
+ producers?: Record<string, string | {
1182
+ queue: string;
1183
+ remote?: boolean | undefined;
1184
+ deliveryDelay?: number | undefined;
1185
+ }> | undefined;
1186
+ consumers?: {
1187
+ queue: string;
1188
+ maxBatchSize?: number | undefined;
1189
+ maxBatchTimeout?: number | undefined;
1190
+ maxRetries?: number | undefined;
1191
+ deadLetterQueue?: string | undefined;
1192
+ maxConcurrency?: number | undefined;
1193
+ retryDelay?: number | undefined;
1194
+ visibilityTimeoutMs?: number | undefined;
1195
+ }[] | undefined;
1196
+ }, {
1197
+ producers?: Record<string, string | {
1198
+ queue: string;
1199
+ remote?: boolean | undefined;
1200
+ deliveryDelay?: number | undefined;
1201
+ }> | undefined;
1202
+ consumers?: {
1203
+ queue: string;
1204
+ maxBatchSize?: number | undefined;
1205
+ maxBatchTimeout?: number | undefined;
1206
+ maxRetries?: number | undefined;
1207
+ deadLetterQueue?: string | undefined;
1208
+ maxConcurrency?: number | undefined;
1209
+ retryDelay?: number | undefined;
1210
+ visibilityTimeoutMs?: number | undefined;
1211
+ }[] | undefined;
1212
+ }>>;
1213
+ /**
1214
+ * Rate Limiting bindings.
1215
+ */
1216
+ rateLimits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1217
+ /** Positive integer string unique to the Cloudflare account */
1218
+ namespaceId: z.ZodString;
1219
+ /** Simple rate limiting is the only currently supported Cloudflare mode */
1220
+ simple: z.ZodObject<{
1221
+ /** Number of allowed calls within the configured period */
1222
+ limit: z.ZodNumber;
1223
+ /** Rate limit window in seconds */
1224
+ period: z.ZodUnion<[z.ZodLiteral<10>, z.ZodLiteral<60>]>;
1225
+ }, "strict", z.ZodTypeAny, {
1226
+ limit: number;
1227
+ period: 10 | 60;
1228
+ }, {
1229
+ limit: number;
1230
+ period: 10 | 60;
1231
+ }>;
1232
+ }, "strict", z.ZodTypeAny, {
1233
+ namespaceId: string;
1234
+ simple: {
1235
+ limit: number;
1236
+ period: 10 | 60;
1237
+ };
1238
+ }, {
1239
+ namespaceId: string;
1240
+ simple: {
1241
+ limit: number;
1242
+ period: 10 | 60;
1243
+ };
1244
+ }>>>;
1245
+ /**
1246
+ * Version Metadata binding.
1247
+ */
1248
+ versionMetadata: z.ZodOptional<z.ZodObject<{
1249
+ /** Binding name exposed in env (for example, CF_VERSION_METADATA) */
1250
+ binding: z.ZodString;
1251
+ }, "strict", z.ZodTypeAny, {
1252
+ binding: string;
1253
+ }, {
1254
+ binding: string;
1255
+ }>>;
1256
+ /**
1257
+ * Worker Loader bindings for Dynamic Workers.
1258
+ */
1259
+ workerLoaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{}, "strict", z.ZodTypeAny, {}, {}>>>;
1260
+ /**
1261
+ * Secrets Store bindings.
1262
+ */
1263
+ secretsStore: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
1264
+ /** Secrets Store ID containing the account-level secret */
1265
+ storeId: z.ZodString;
1266
+ /** Secret name within the store */
1267
+ secretName: z.ZodString;
1268
+ }, "strict", z.ZodTypeAny, {
1269
+ storeId: string;
1270
+ secretName: string;
1271
+ }, {
1272
+ storeId: string;
1273
+ secretName: string;
1274
+ }>]>>>;
1275
+ /**
1276
+ * Service bindings to other Workers.
1277
+ * Enables RPC-style communication between workers.
1278
+ */
1279
+ services: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<{
1280
+ /** Target worker/service name */
1281
+ service: string;
1282
+ /** Optional environment (staging, production, etc.) */
1283
+ environment?: string;
1284
+ /** Optional entrypoint class name for named exports */
1285
+ entrypoint?: string;
1286
+ /** Ask Wrangler local development to connect this binding to the remote service */
1287
+ remote?: boolean;
1288
+ /** Arbitrary props made available to the target worker via `ctx.props` */
1289
+ props?: Record<string, unknown>;
1290
+ /** @internal Reference marker for ref() bindings */
1291
+ __ref?: unknown;
1292
+ }, z.ZodTypeDef, {
1293
+ /** Target worker/service name */
1294
+ service: string;
1295
+ /** Optional environment (staging, production, etc.) */
1296
+ environment?: string;
1297
+ /** Optional entrypoint class name for named exports */
1298
+ entrypoint?: string;
1299
+ /** Ask Wrangler local development to connect this binding to the remote service */
1300
+ remote?: boolean;
1301
+ /** Arbitrary props made available to the target worker via `ctx.props` */
1302
+ props?: Record<string, unknown>;
1303
+ /** @internal Reference marker for ref() bindings */
1304
+ __ref?: unknown;
1305
+ }>>>;
1306
+ /**
1307
+ * Workers AI binding for ML inference.
1308
+ */
1309
+ ai: z.ZodOptional<z.ZodObject<{
1310
+ /** Binding name exposed in env (e.g., 'AI') */
1311
+ binding: z.ZodString;
1312
+ /** Ask Wrangler local development to connect this binding to the remote Workers AI service */
1313
+ remote: z.ZodOptional<z.ZodBoolean>;
1314
+ /** Use Cloudflare's staging Workers AI environment for this binding */
1315
+ staging: z.ZodOptional<z.ZodBoolean>;
1316
+ }, "strict", z.ZodTypeAny, {
1317
+ binding: string;
1318
+ remote?: boolean | undefined;
1319
+ staging?: boolean | undefined;
1320
+ }, {
1321
+ binding: string;
1322
+ remote?: boolean | undefined;
1323
+ staging?: boolean | undefined;
1324
+ }>>;
1325
+ /**
1326
+ * AI Search namespace bindings.
1327
+ */
1328
+ aiSearchNamespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1329
+ /** AI Search namespace name */
1330
+ namespace: z.ZodString;
1331
+ /** Ask Wrangler local development to connect this binding remotely */
1332
+ remote: z.ZodOptional<z.ZodBoolean>;
1333
+ }, "strict", z.ZodTypeAny, {
1334
+ namespace: string;
1335
+ remote?: boolean | undefined;
1336
+ }, {
1337
+ namespace: string;
1338
+ remote?: boolean | undefined;
1339
+ }>>>;
1340
+ /**
1341
+ * AI Search instance bindings.
1342
+ */
1343
+ aiSearch: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1344
+ /** AI Search instance name */
1345
+ instanceName: z.ZodString;
1346
+ /** Ask Wrangler local development to connect this binding remotely */
1347
+ remote: z.ZodOptional<z.ZodBoolean>;
1348
+ }, "strict", z.ZodTypeAny, {
1349
+ instanceName: string;
1350
+ remote?: boolean | undefined;
1351
+ }, {
1352
+ instanceName: string;
1353
+ remote?: boolean | undefined;
1354
+ }>>>;
1355
+ /**
1356
+ * Vectorize index bindings for vector similarity search.
1357
+ */
1358
+ vectorize: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1359
+ /** Name of the Vectorize index */
1360
+ indexName: z.ZodString;
1361
+ /** Ask Wrangler local development to connect this binding to the remote index */
1362
+ remote: z.ZodOptional<z.ZodBoolean>;
1363
+ }, "strip", z.ZodTypeAny, {
1364
+ indexName: string;
1365
+ remote?: boolean | undefined;
1366
+ }, {
1367
+ indexName: string;
1368
+ remote?: boolean | undefined;
1369
+ }>>>;
1370
+ /**
1371
+ * Hyperdrive bindings for accelerated PostgreSQL.
1372
+ */
1373
+ hyperdrive: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
1374
+ /** Explicit Hyperdrive configuration ID */
1375
+ id: z.ZodString;
1376
+ /** Direct database connection string used by local Miniflare/Wrangler dev */
1377
+ localConnectionString: z.ZodOptional<z.ZodString>;
1378
+ }, "strict", z.ZodTypeAny, {
1379
+ id: string;
1380
+ localConnectionString?: string | undefined;
1381
+ }, {
1382
+ id: string;
1383
+ localConnectionString?: string | undefined;
1384
+ }>, z.ZodObject<{
1385
+ /** Stable Hyperdrive configuration name to resolve to an ID at config/build/deploy time */
1386
+ name: z.ZodString;
1387
+ /** Direct database connection string used by local Miniflare/Wrangler dev */
1388
+ localConnectionString: z.ZodOptional<z.ZodString>;
1389
+ /**
1390
+ * Opt-in fallback behavior for preview-scoped Hyperdrive bindings.
1391
+ * When set to `'base'`, Devflare is permitted to reuse the base Hyperdrive
1392
+ * configuration if no dedicated preview Hyperdrive exists in the account.
1393
+ * When omitted, missing preview Hyperdrives cause a config-resolution error.
1394
+ */
1395
+ previewFallback: z.ZodOptional<z.ZodLiteral<"base">>;
1396
+ /** Explicit dedicated preview Hyperdrive configuration ID */
1397
+ previewId: z.ZodOptional<z.ZodString>;
1398
+ /** Legacy alias for a preview/dev local connection string; prefer localConnectionString */
1399
+ previewLocalConnectionString: z.ZodOptional<z.ZodString>;
1400
+ }, "strict", z.ZodTypeAny, {
1401
+ name: string;
1402
+ localConnectionString?: string | undefined;
1403
+ previewFallback?: "base" | undefined;
1404
+ previewId?: string | undefined;
1405
+ previewLocalConnectionString?: string | undefined;
1406
+ }, {
1407
+ name: string;
1408
+ localConnectionString?: string | undefined;
1409
+ previewFallback?: "base" | undefined;
1410
+ previewId?: string | undefined;
1411
+ previewLocalConnectionString?: string | undefined;
1412
+ }>]>>>;
1413
+ /**
1414
+ * Browser Rendering binding for headless browser access.
1415
+ */
1416
+ browser: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
1417
+ /** Ask Wrangler local development to connect this binding to the remote Browser Rendering service */
1418
+ remote: z.ZodOptional<z.ZodBoolean>;
1419
+ }, "strict", z.ZodTypeAny, {
1420
+ remote?: boolean | undefined;
1421
+ }, {
1422
+ remote?: boolean | undefined;
1423
+ }>]>>, Record<string, string | {
1424
+ remote?: boolean | undefined;
1425
+ }>, Record<string, string | {
1426
+ remote?: boolean | undefined;
1427
+ }>>>;
1428
+ /**
1429
+ * Analytics Engine bindings for event logging.
1430
+ */
1431
+ analyticsEngine: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1432
+ /** Analytics Engine dataset name */
1433
+ dataset: z.ZodString;
1434
+ }, "strip", z.ZodTypeAny, {
1435
+ dataset: string;
1436
+ }, {
1437
+ dataset: string;
1438
+ }>>>;
1439
+ /**
1440
+ * Email sending bindings.
1441
+ */
1442
+ sendEmail: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
1443
+ /** Restrict this binding to a specific verified destination address */
1444
+ destinationAddress: z.ZodOptional<z.ZodString>;
1445
+ /** Restrict this binding to a set of verified destination addresses */
1446
+ allowedDestinationAddresses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1447
+ /** Restrict this binding to a set of verified sender addresses */
1448
+ allowedSenderAddresses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1449
+ /** Ask Wrangler local development to connect this binding to the remote Email Routing service */
1450
+ remote: z.ZodOptional<z.ZodBoolean>;
1451
+ }, "strip", z.ZodTypeAny, {
1452
+ destinationAddress?: string | undefined;
1453
+ allowedDestinationAddresses?: string[] | undefined;
1454
+ allowedSenderAddresses?: string[] | undefined;
1455
+ remote?: boolean | undefined;
1456
+ }, {
1457
+ destinationAddress?: string | undefined;
1458
+ allowedDestinationAddresses?: string[] | undefined;
1459
+ allowedSenderAddresses?: string[] | undefined;
1460
+ remote?: boolean | undefined;
1461
+ }>, {
1462
+ destinationAddress?: string | undefined;
1463
+ allowedDestinationAddresses?: string[] | undefined;
1464
+ allowedSenderAddresses?: string[] | undefined;
1465
+ remote?: boolean | undefined;
1466
+ }, {
1467
+ destinationAddress?: string | undefined;
1468
+ allowedDestinationAddresses?: string[] | undefined;
1469
+ allowedSenderAddresses?: string[] | undefined;
1470
+ remote?: boolean | undefined;
1471
+ }>>>;
1472
+ /**
1473
+ * C17 — mTLS Certificate bindings.
1474
+ * Maps a binding name to the certificate UUID issued via
1475
+ * `wrangler mtls-certificate upload`. The runtime exposes the certificate
1476
+ * to the worker as `env.<binding>` for use with `fetch`'s `mTLS` option.
1477
+ */
1478
+ mtlsCertificates: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
1479
+ /** Uploaded mTLS certificate UUID from `wrangler mtls-certificate upload` */
1480
+ certificateId: z.ZodString;
1481
+ /** Ask Wrangler local development to use the remote binding when available */
1482
+ remote: z.ZodOptional<z.ZodBoolean>;
1483
+ }, "strict", z.ZodTypeAny, {
1484
+ certificateId: string;
1485
+ remote?: boolean | undefined;
1486
+ }, {
1487
+ certificateId: string;
1488
+ remote?: boolean | undefined;
1489
+ }>, z.ZodObject<{
1490
+ /** Wrangler-native uploaded mTLS certificate UUID */
1491
+ certificate_id: z.ZodString;
1492
+ /** Ask Wrangler local development to use the remote binding when available */
1493
+ remote: z.ZodOptional<z.ZodBoolean>;
1494
+ }, "strict", z.ZodTypeAny, {
1495
+ certificate_id: string;
1496
+ remote?: boolean | undefined;
1497
+ }, {
1498
+ certificate_id: string;
1499
+ remote?: boolean | undefined;
1500
+ }>]>>>;
1501
+ /**
1502
+ * C17 — Workers for Platforms (Dispatch Namespace) bindings.
1503
+ * Maps a binding name to the dispatch namespace name. Allows a parent
1504
+ * worker to look up and dispatch to user workers stored in the namespace.
1505
+ */
1506
+ dispatchNamespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
1507
+ namespace: z.ZodString;
1508
+ outbound: z.ZodOptional<z.ZodObject<{
1509
+ service: z.ZodString;
1510
+ environment: z.ZodOptional<z.ZodString>;
1511
+ parameters: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1512
+ }, "strict", z.ZodTypeAny, {
1513
+ service: string;
1514
+ environment?: string | undefined;
1515
+ parameters?: string[] | undefined;
1516
+ }, {
1517
+ service: string;
1518
+ environment?: string | undefined;
1519
+ parameters?: string[] | undefined;
1520
+ }>>;
1521
+ remote: z.ZodOptional<z.ZodBoolean>;
1522
+ }, "strict", z.ZodTypeAny, {
1523
+ namespace: string;
1524
+ outbound?: {
1525
+ service: string;
1526
+ environment?: string | undefined;
1527
+ parameters?: string[] | undefined;
1528
+ } | undefined;
1529
+ remote?: boolean | undefined;
1530
+ }, {
1531
+ namespace: string;
1532
+ outbound?: {
1533
+ service: string;
1534
+ environment?: string | undefined;
1535
+ parameters?: string[] | undefined;
1536
+ } | undefined;
1537
+ remote?: boolean | undefined;
1538
+ }>]>>>;
1539
+ /**
1540
+ * C17 — Workflows-as-binding.
1541
+ * Maps a binding name to a workflow class hosted by another worker (or
1542
+ * the same worker, via `scriptName`). Distinct from `bindings.workflows`
1543
+ * declarations of workflows defined IN this worker.
1544
+ */
1545
+ workflows: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1546
+ name: z.ZodString;
1547
+ className: z.ZodString;
1548
+ scriptName: z.ZodOptional<z.ZodString>;
1549
+ remote: z.ZodOptional<z.ZodBoolean>;
1550
+ limits: z.ZodOptional<z.ZodObject<{
1551
+ steps: z.ZodNumber;
1552
+ }, "strict", z.ZodTypeAny, {
1553
+ steps: number;
1554
+ }, {
1555
+ steps: number;
1556
+ }>>;
1557
+ }, "strict", z.ZodTypeAny, {
1558
+ name: string;
1559
+ className: string;
1560
+ scriptName?: string | undefined;
1561
+ remote?: boolean | undefined;
1562
+ limits?: {
1563
+ steps: number;
1564
+ } | undefined;
1565
+ }, {
1566
+ name: string;
1567
+ className: string;
1568
+ scriptName?: string | undefined;
1569
+ remote?: boolean | undefined;
1570
+ limits?: {
1571
+ steps: number;
1572
+ } | undefined;
1573
+ }>>>;
1574
+ /**
1575
+ * C17 — Pipelines bindings.
1576
+ * Maps a binding name to a Cloudflare Pipelines pipeline (R2-backed
1577
+ * streaming ingestion).
1578
+ */
1579
+ pipelines: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
1580
+ pipeline: z.ZodString;
1581
+ remote: z.ZodOptional<z.ZodBoolean>;
1582
+ }, "strict", z.ZodTypeAny, {
1583
+ pipeline: string;
1584
+ remote?: boolean | undefined;
1585
+ }, {
1586
+ pipeline: string;
1587
+ remote?: boolean | undefined;
1588
+ }>]>>>;
1589
+ /**
1590
+ * C17 — Cloudflare Images binding.
1591
+ * Maps a binding name to access the Images service from the worker
1592
+ * (transformation/upload via `env.<binding>`).
1593
+ */
1594
+ images: z.ZodEffects<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
1595
+ remote: z.ZodOptional<z.ZodBoolean>;
1596
+ }, "strict", z.ZodTypeAny, {
1597
+ remote?: boolean | undefined;
1598
+ }, {
1599
+ remote?: boolean | undefined;
1600
+ }>, z.ZodLiteral<true>]>>>, Record<string, true | {
1601
+ remote?: boolean | undefined;
1602
+ }> | undefined, Record<string, true | {
1603
+ remote?: boolean | undefined;
1604
+ }> | undefined>;
1605
+ /**
1606
+ * C17 — Cloudflare Media Transformations binding.
1607
+ * Maps a binding name to access the Media Transformations service from
1608
+ * the worker (video/audio/frame extraction via `env.<binding>`).
1609
+ */
1610
+ media: z.ZodEffects<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
1611
+ remote: z.ZodOptional<z.ZodBoolean>;
1612
+ }, "strict", z.ZodTypeAny, {
1613
+ remote?: boolean | undefined;
1614
+ }, {
1615
+ remote?: boolean | undefined;
1616
+ }>, z.ZodLiteral<true>]>>>, Record<string, true | {
1617
+ remote?: boolean | undefined;
1618
+ }> | undefined, Record<string, true | {
1619
+ remote?: boolean | undefined;
1620
+ }> | undefined>;
1621
+ /**
1622
+ * C17 — Cloudflare Artifacts bindings.
1623
+ * Maps a binding name to an Artifacts namespace for Git-compatible
1624
+ * file storage.
1625
+ */
1626
+ artifacts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
1627
+ namespace: z.ZodString;
1628
+ remote: z.ZodOptional<z.ZodBoolean>;
1629
+ }, "strict", z.ZodTypeAny, {
1630
+ namespace: string;
1631
+ remote?: boolean | undefined;
1632
+ }, {
1633
+ namespace: string;
1634
+ remote?: boolean | undefined;
1635
+ }>]>>>;
1636
+ /**
1637
+ * CF-2 — Cloudflare Stream binding.
1638
+ * Maps a binding name to access the Stream service from the worker
1639
+ * (video upload/playback via `env.<binding>`).
1640
+ */
1641
+ stream: z.ZodEffects<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
1642
+ /** Ask Wrangler local development to connect this binding to the remote Stream service */
1643
+ remote: z.ZodOptional<z.ZodBoolean>;
1644
+ }, "strict", z.ZodTypeAny, {
1645
+ remote?: boolean | undefined;
1646
+ }, {
1647
+ remote?: boolean | undefined;
1648
+ }>, z.ZodLiteral<true>]>>>, Record<string, true | {
1649
+ remote?: boolean | undefined;
1650
+ }> | undefined, Record<string, true | {
1651
+ remote?: boolean | undefined;
1652
+ }> | undefined>;
1653
+ /**
1654
+ * CF-2 — VPC service bindings.
1655
+ * Maps a binding name to a Cloudflare VPC connectivity service that
1656
+ * reaches a private service.
1657
+ */
1658
+ vpcServices: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1659
+ /** Service ID of the VPC connectivity service; compiles to `service_id` */
1660
+ serviceId: z.ZodString;
1661
+ /** Ask Wrangler local development to connect this binding to the remote VPC service */
1662
+ remote: z.ZodOptional<z.ZodBoolean>;
1663
+ }, "strict", z.ZodTypeAny, {
1664
+ serviceId: string;
1665
+ remote?: boolean | undefined;
1666
+ }, {
1667
+ serviceId: string;
1668
+ remote?: boolean | undefined;
1669
+ }>>>;
1670
+ /**
1671
+ * CF-2 — VPC network bindings.
1672
+ * Maps a binding name to a VPC network routed through a Cloudflare
1673
+ * Tunnel or a network ID.
1674
+ */
1675
+ vpcNetworks: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
1676
+ /** Tunnel ID of the Cloudflare Tunnel; compiles to `tunnel_id`. Mutually exclusive with networkId */
1677
+ tunnelId: z.ZodString;
1678
+ /** Ask Wrangler local development to connect this binding to the remote VPC network */
1679
+ remote: z.ZodOptional<z.ZodBoolean>;
1680
+ }, "strict", z.ZodTypeAny, {
1681
+ tunnelId: string;
1682
+ remote?: boolean | undefined;
1683
+ }, {
1684
+ tunnelId: string;
1685
+ remote?: boolean | undefined;
1686
+ }>, z.ZodObject<{
1687
+ /** Network ID to route traffic through; compiles to `network_id`. Mutually exclusive with tunnelId */
1688
+ networkId: z.ZodString;
1689
+ /** Ask Wrangler local development to connect this binding to the remote VPC network */
1690
+ remote: z.ZodOptional<z.ZodBoolean>;
1691
+ }, "strict", z.ZodTypeAny, {
1692
+ networkId: string;
1693
+ remote?: boolean | undefined;
1694
+ }, {
1695
+ networkId: string;
1696
+ remote?: boolean | undefined;
1697
+ }>]>>>;
1698
+ /**
1699
+ * CF-2 — Flagship feature-flag bindings.
1700
+ * Maps a binding name to a Flagship app for feature-flag evaluation.
1701
+ */
1702
+ flagship: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1703
+ /** Flagship app ID to bind to; compiles to `app_id` */
1704
+ appId: z.ZodString;
1705
+ /** Ask Wrangler local development to use the remote Flagship service for flag evaluation */
1706
+ remote: z.ZodOptional<z.ZodBoolean>;
1707
+ }, "strict", z.ZodTypeAny, {
1708
+ appId: string;
1709
+ remote?: boolean | undefined;
1710
+ }, {
1711
+ appId: string;
1712
+ remote?: boolean | undefined;
1713
+ }>>>;
1714
+ }, "strip", z.ZodTypeAny, {
1715
+ kv?: Record<string, string | {
1716
+ previewId?: string | undefined;
1717
+ remote?: boolean | undefined;
1718
+ id: string;
1719
+ } | {
1720
+ previewId?: string | undefined;
1721
+ remote?: boolean | undefined;
1722
+ name: string;
1723
+ }> | undefined;
1724
+ d1?: Record<string, string | {
1725
+ previewDatabaseId?: string | undefined;
1726
+ migrationsTable?: string | undefined;
1727
+ migrationsDir?: string | undefined;
1728
+ remote?: boolean | undefined;
1729
+ id: string;
1730
+ } | {
1731
+ previewDatabaseId?: string | undefined;
1732
+ migrationsTable?: string | undefined;
1733
+ migrationsDir?: string | undefined;
1734
+ remote?: boolean | undefined;
1735
+ name: string;
1736
+ }> | undefined;
1737
+ r2?: Record<string, string | {
1738
+ bucketName: string;
1739
+ previewBucketName?: string | undefined;
1740
+ jurisdiction?: string | undefined;
1741
+ remote?: boolean | undefined;
1742
+ }> | undefined;
1743
+ durableObjects?: Record<string, DurableObjectBindingInput> | undefined;
1744
+ queues?: {
1745
+ producers?: Record<string, string | {
1746
+ queue: string;
1747
+ remote?: boolean | undefined;
1748
+ deliveryDelay?: number | undefined;
1749
+ }> | undefined;
1750
+ consumers?: {
1751
+ queue: string;
1752
+ maxBatchSize?: number | undefined;
1753
+ maxBatchTimeout?: number | undefined;
1754
+ maxRetries?: number | undefined;
1755
+ deadLetterQueue?: string | undefined;
1756
+ maxConcurrency?: number | undefined;
1757
+ retryDelay?: number | undefined;
1758
+ visibilityTimeoutMs?: number | undefined;
1759
+ }[] | undefined;
1760
+ } | undefined;
1761
+ rateLimits?: Record<string, {
1762
+ namespaceId: string;
1763
+ simple: {
1764
+ limit: number;
1765
+ period: 10 | 60;
1766
+ };
1767
+ }> | undefined;
1768
+ versionMetadata?: {
1769
+ binding: string;
1770
+ } | undefined;
1771
+ workerLoaders?: Record<string, {}> | undefined;
1772
+ secretsStore?: Record<string, string | {
1773
+ storeId: string;
1774
+ secretName: string;
1775
+ }> | undefined;
1776
+ services?: Record<string, {
1777
+ /** Target worker/service name */
1778
+ service: string;
1779
+ /** Optional environment (staging, production, etc.) */
1780
+ environment?: string;
1781
+ /** Optional entrypoint class name for named exports */
1782
+ entrypoint?: string;
1783
+ /** Ask Wrangler local development to connect this binding to the remote service */
1784
+ remote?: boolean;
1785
+ /** Arbitrary props made available to the target worker via `ctx.props` */
1786
+ props?: Record<string, unknown>;
1787
+ /** @internal Reference marker for ref() bindings */
1788
+ __ref?: unknown;
1789
+ }> | undefined;
1790
+ ai?: {
1791
+ binding: string;
1792
+ remote?: boolean | undefined;
1793
+ staging?: boolean | undefined;
1794
+ } | undefined;
1795
+ aiSearchNamespaces?: Record<string, {
1796
+ namespace: string;
1797
+ remote?: boolean | undefined;
1798
+ }> | undefined;
1799
+ aiSearch?: Record<string, {
1800
+ instanceName: string;
1801
+ remote?: boolean | undefined;
1802
+ }> | undefined;
1803
+ vectorize?: Record<string, {
1804
+ indexName: string;
1805
+ remote?: boolean | undefined;
1806
+ }> | undefined;
1807
+ hyperdrive?: Record<string, string | {
1808
+ id: string;
1809
+ localConnectionString?: string | undefined;
1810
+ } | {
1811
+ name: string;
1812
+ localConnectionString?: string | undefined;
1813
+ previewFallback?: "base" | undefined;
1814
+ previewId?: string | undefined;
1815
+ previewLocalConnectionString?: string | undefined;
1816
+ }> | undefined;
1817
+ browser?: Record<string, string | {
1818
+ remote?: boolean | undefined;
1819
+ }> | undefined;
1820
+ analyticsEngine?: Record<string, {
1821
+ dataset: string;
1822
+ }> | undefined;
1823
+ sendEmail?: Record<string, {
1824
+ destinationAddress?: string | undefined;
1825
+ allowedDestinationAddresses?: string[] | undefined;
1826
+ allowedSenderAddresses?: string[] | undefined;
1827
+ remote?: boolean | undefined;
1828
+ }> | undefined;
1829
+ mtlsCertificates?: Record<string, string | {
1830
+ certificateId: string;
1831
+ remote?: boolean | undefined;
1832
+ } | {
1833
+ certificate_id: string;
1834
+ remote?: boolean | undefined;
1835
+ }> | undefined;
1836
+ dispatchNamespaces?: Record<string, string | {
1837
+ namespace: string;
1838
+ outbound?: {
1839
+ service: string;
1840
+ environment?: string | undefined;
1841
+ parameters?: string[] | undefined;
1842
+ } | undefined;
1843
+ remote?: boolean | undefined;
1844
+ }> | undefined;
1845
+ workflows?: Record<string, {
1846
+ name: string;
1847
+ className: string;
1848
+ scriptName?: string | undefined;
1849
+ remote?: boolean | undefined;
1850
+ limits?: {
1851
+ steps: number;
1852
+ } | undefined;
1853
+ }> | undefined;
1854
+ pipelines?: Record<string, string | {
1855
+ pipeline: string;
1856
+ remote?: boolean | undefined;
1857
+ }> | undefined;
1858
+ images?: Record<string, true | {
1859
+ remote?: boolean | undefined;
1860
+ }> | undefined;
1861
+ media?: Record<string, true | {
1862
+ remote?: boolean | undefined;
1863
+ }> | undefined;
1864
+ artifacts?: Record<string, string | {
1865
+ namespace: string;
1866
+ remote?: boolean | undefined;
1867
+ }> | undefined;
1868
+ stream?: Record<string, true | {
1869
+ remote?: boolean | undefined;
1870
+ }> | undefined;
1871
+ vpcServices?: Record<string, {
1872
+ serviceId: string;
1873
+ remote?: boolean | undefined;
1874
+ }> | undefined;
1875
+ vpcNetworks?: Record<string, {
1876
+ tunnelId: string;
1877
+ remote?: boolean | undefined;
1878
+ } | {
1879
+ networkId: string;
1880
+ remote?: boolean | undefined;
1881
+ }> | undefined;
1882
+ flagship?: Record<string, {
1883
+ appId: string;
1884
+ remote?: boolean | undefined;
1885
+ }> | undefined;
1886
+ }, {
1887
+ kv?: Record<string, string | {
1888
+ previewId?: string | undefined;
1889
+ remote?: boolean | undefined;
1890
+ id: string;
1891
+ } | {
1892
+ previewId?: string | undefined;
1893
+ remote?: boolean | undefined;
1894
+ name: string;
1895
+ }> | undefined;
1896
+ d1?: Record<string, string | {
1897
+ previewDatabaseId?: string | undefined;
1898
+ migrationsTable?: string | undefined;
1899
+ migrationsDir?: string | undefined;
1900
+ remote?: boolean | undefined;
1901
+ id: string;
1902
+ } | {
1903
+ previewDatabaseId?: string | undefined;
1904
+ migrationsTable?: string | undefined;
1905
+ migrationsDir?: string | undefined;
1906
+ remote?: boolean | undefined;
1907
+ name: string;
1908
+ }> | undefined;
1909
+ r2?: Record<string, string | {
1910
+ bucketName: string;
1911
+ previewBucketName?: string | undefined;
1912
+ jurisdiction?: string | undefined;
1913
+ remote?: boolean | undefined;
1914
+ }> | undefined;
1915
+ durableObjects?: Record<string, DurableObjectBindingInput> | undefined;
1916
+ queues?: {
1917
+ producers?: Record<string, string | {
1918
+ queue: string;
1919
+ remote?: boolean | undefined;
1920
+ deliveryDelay?: number | undefined;
1921
+ }> | undefined;
1922
+ consumers?: {
1923
+ queue: string;
1924
+ maxBatchSize?: number | undefined;
1925
+ maxBatchTimeout?: number | undefined;
1926
+ maxRetries?: number | undefined;
1927
+ deadLetterQueue?: string | undefined;
1928
+ maxConcurrency?: number | undefined;
1929
+ retryDelay?: number | undefined;
1930
+ visibilityTimeoutMs?: number | undefined;
1931
+ }[] | undefined;
1932
+ } | undefined;
1933
+ rateLimits?: Record<string, {
1934
+ namespaceId: string;
1935
+ simple: {
1936
+ limit: number;
1937
+ period: 10 | 60;
1938
+ };
1939
+ }> | undefined;
1940
+ versionMetadata?: {
1941
+ binding: string;
1942
+ } | undefined;
1943
+ workerLoaders?: Record<string, {}> | undefined;
1944
+ secretsStore?: Record<string, string | {
1945
+ storeId: string;
1946
+ secretName: string;
1947
+ }> | undefined;
1948
+ services?: Record<string, {
1949
+ /** Target worker/service name */
1950
+ service: string;
1951
+ /** Optional environment (staging, production, etc.) */
1952
+ environment?: string;
1953
+ /** Optional entrypoint class name for named exports */
1954
+ entrypoint?: string;
1955
+ /** Ask Wrangler local development to connect this binding to the remote service */
1956
+ remote?: boolean;
1957
+ /** Arbitrary props made available to the target worker via `ctx.props` */
1958
+ props?: Record<string, unknown>;
1959
+ /** @internal Reference marker for ref() bindings */
1960
+ __ref?: unknown;
1961
+ }> | undefined;
1962
+ ai?: {
1963
+ binding: string;
1964
+ remote?: boolean | undefined;
1965
+ staging?: boolean | undefined;
1966
+ } | undefined;
1967
+ aiSearchNamespaces?: Record<string, {
1968
+ namespace: string;
1969
+ remote?: boolean | undefined;
1970
+ }> | undefined;
1971
+ aiSearch?: Record<string, {
1972
+ instanceName: string;
1973
+ remote?: boolean | undefined;
1974
+ }> | undefined;
1975
+ vectorize?: Record<string, {
1976
+ indexName: string;
1977
+ remote?: boolean | undefined;
1978
+ }> | undefined;
1979
+ hyperdrive?: Record<string, string | {
1980
+ id: string;
1981
+ localConnectionString?: string | undefined;
1982
+ } | {
1983
+ name: string;
1984
+ localConnectionString?: string | undefined;
1985
+ previewFallback?: "base" | undefined;
1986
+ previewId?: string | undefined;
1987
+ previewLocalConnectionString?: string | undefined;
1988
+ }> | undefined;
1989
+ browser?: Record<string, string | {
1990
+ remote?: boolean | undefined;
1991
+ }> | undefined;
1992
+ analyticsEngine?: Record<string, {
1993
+ dataset: string;
1994
+ }> | undefined;
1995
+ sendEmail?: Record<string, {
1996
+ destinationAddress?: string | undefined;
1997
+ allowedDestinationAddresses?: string[] | undefined;
1998
+ allowedSenderAddresses?: string[] | undefined;
1999
+ remote?: boolean | undefined;
2000
+ }> | undefined;
2001
+ mtlsCertificates?: Record<string, string | {
2002
+ certificateId: string;
2003
+ remote?: boolean | undefined;
2004
+ } | {
2005
+ certificate_id: string;
2006
+ remote?: boolean | undefined;
2007
+ }> | undefined;
2008
+ dispatchNamespaces?: Record<string, string | {
2009
+ namespace: string;
2010
+ outbound?: {
2011
+ service: string;
2012
+ environment?: string | undefined;
2013
+ parameters?: string[] | undefined;
2014
+ } | undefined;
2015
+ remote?: boolean | undefined;
2016
+ }> | undefined;
2017
+ workflows?: Record<string, {
2018
+ name: string;
2019
+ className: string;
2020
+ scriptName?: string | undefined;
2021
+ remote?: boolean | undefined;
2022
+ limits?: {
2023
+ steps: number;
2024
+ } | undefined;
2025
+ }> | undefined;
2026
+ pipelines?: Record<string, string | {
2027
+ pipeline: string;
2028
+ remote?: boolean | undefined;
2029
+ }> | undefined;
2030
+ images?: Record<string, true | {
2031
+ remote?: boolean | undefined;
2032
+ }> | undefined;
2033
+ media?: Record<string, true | {
2034
+ remote?: boolean | undefined;
2035
+ }> | undefined;
2036
+ artifacts?: Record<string, string | {
2037
+ namespace: string;
2038
+ remote?: boolean | undefined;
2039
+ }> | undefined;
2040
+ stream?: Record<string, true | {
2041
+ remote?: boolean | undefined;
2042
+ }> | undefined;
2043
+ vpcServices?: Record<string, {
2044
+ serviceId: string;
2045
+ remote?: boolean | undefined;
2046
+ }> | undefined;
2047
+ vpcNetworks?: Record<string, {
2048
+ tunnelId: string;
2049
+ remote?: boolean | undefined;
2050
+ } | {
2051
+ networkId: string;
2052
+ remote?: boolean | undefined;
2053
+ }> | undefined;
2054
+ flagship?: Record<string, {
2055
+ appId: string;
2056
+ remote?: boolean | undefined;
2057
+ }> | undefined;
2058
+ }>>;
2059
+ export type BrowserBindings = z.infer<typeof browserBindingSchema>;
2060
+ export type BrowserBinding = z.infer<typeof browserBindingValueSchema>;
2061
+ export type D1Binding = z.infer<typeof d1BindingSchema>;
2062
+ export type DurableObjectBinding = z.infer<typeof durableObjectBindingSchema>;
2063
+ export type HyperdriveBinding = z.infer<typeof hyperdriveBindingSchema>;
2064
+ export type KVBinding = z.infer<typeof kvBindingSchema>;
2065
+ export type R2Binding = z.infer<typeof r2BindingSchema>;
2066
+ export type QueueProducer = z.infer<typeof queueProducerSchema>;
2067
+ export type QueueConsumer = z.infer<typeof queueConsumerSchema>;
2068
+ export type QueuesConfig = z.infer<typeof queuesConfigSchema>;
2069
+ export type RateLimitBinding = z.infer<typeof rateLimitBindingSchema>;
2070
+ export type VersionMetadataBinding = z.infer<typeof versionMetadataBindingSchema>;
2071
+ export type WorkerLoaderBinding = z.infer<typeof workerLoaderBindingSchema>;
2072
+ export type SecretsStoreBinding = z.infer<typeof secretsStoreBindingSchema>;
2073
+ export type ServiceBinding = z.infer<typeof serviceBindingSchema>;
2074
+ export type AiSearchNamespaceBinding = z.infer<typeof aiSearchNamespaceBindingSchema>;
2075
+ export type AiSearchInstanceBinding = z.infer<typeof aiSearchInstanceBindingSchema>;
2076
+ export type MtlsCertificateBinding = z.infer<typeof mtlsCertificateBindingSchema>;
2077
+ export type DispatchNamespaceBinding = z.infer<typeof dispatchNamespaceBindingSchema>;
2078
+ export type WorkflowBinding = z.infer<typeof workflowBindingSchema>;
2079
+ export type PipelineBinding = z.infer<typeof pipelineBindingSchema>;
2080
+ export type ImagesBinding = z.infer<typeof imagesBindingSchema>;
2081
+ export type MediaBinding = z.infer<typeof mediaBindingSchema>;
2082
+ export type ArtifactsBinding = z.infer<typeof artifactsBindingSchema>;
2083
+ export type StreamBinding = z.infer<typeof streamBindingSchema>;
2084
+ export type VpcServiceBinding = z.infer<typeof vpcServiceBindingSchema>;
2085
+ export type VpcNetworkBinding = z.infer<typeof vpcNetworkBindingSchema>;
2086
+ export type FlagshipBinding = z.infer<typeof flagshipBindingSchema>;
2087
+ //# sourceMappingURL=schema-bindings.d.ts.map