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,913 @@
1
+ export interface PreviewConfigInput {
2
+ /**
3
+ * Whether preview-generated config should include cron triggers.
4
+ *
5
+ * @default `false`
6
+ *
7
+ * @example
8
+ * ```ts
9
+ * previews: { includeCrons: true }
10
+ * ```
11
+ */
12
+ includeCrons?: boolean;
13
+ }
14
+ export type { ServerConfigInput, StreamingTailConsumerConfigInput, StreamingTailConsumerObjectConfigInput } from './schema-types-runtime-server.js';
15
+ /**
16
+ * Source file discovery for Worker handlers and generated support files.
17
+ */
18
+ export interface FilesConfigInput {
19
+ /**
20
+ * HTTP fetch entrypoint source file or `false` to disable fetch handler
21
+ * discovery.
22
+ *
23
+ * @default Auto-discovered from conventional fetch handler paths.
24
+ *
25
+ * @example
26
+ * ```ts
27
+ * files: { fetch: 'src/fetch.ts' }
28
+ * ```
29
+ */
30
+ fetch?: string | false;
31
+ /**
32
+ * Queue handler source file or `false` to disable queue handler discovery.
33
+ *
34
+ * @default Auto-discovered from conventional queue handler paths.
35
+ *
36
+ * @example
37
+ * ```ts
38
+ * files: { queue: 'src/queue.ts' }
39
+ * ```
40
+ */
41
+ queue?: string | false;
42
+ /**
43
+ * Scheduled event handler source file or `false` to disable scheduled
44
+ * handler discovery.
45
+ *
46
+ * @default Auto-discovered from conventional scheduled handler paths.
47
+ *
48
+ * @example
49
+ * ```ts
50
+ * files: { scheduled: 'src/scheduled.ts' }
51
+ * ```
52
+ */
53
+ scheduled?: string | false;
54
+ /**
55
+ * Email event handler source file or `false` to disable email handler
56
+ * discovery.
57
+ *
58
+ * @default Auto-discovered from conventional email handler paths.
59
+ *
60
+ * @example
61
+ * ```ts
62
+ * files: { email: 'src/email.ts' }
63
+ * ```
64
+ */
65
+ email?: string | false;
66
+ /**
67
+ * Tail event handler source file or `false` to disable tail handler
68
+ * discovery.
69
+ *
70
+ * @default Auto-discovered from conventional tail handler paths.
71
+ *
72
+ * @example
73
+ * ```ts
74
+ * files: { tail: 'src/tail.ts' }
75
+ * ```
76
+ */
77
+ tail?: string | false;
78
+ /**
79
+ * Durable Object source file glob or `false` to disable Durable Object
80
+ * class discovery.
81
+ *
82
+ * @default Auto-discovered from conventional Durable Object file paths.
83
+ *
84
+ * @example
85
+ * ```ts
86
+ * files: { durableObjects: 'src/do.*.ts' }
87
+ * ```
88
+ */
89
+ durableObjects?: string | false;
90
+ /**
91
+ * Named WorkerEntrypoint source file glob or `false` to disable entrypoint
92
+ * discovery.
93
+ *
94
+ * @default Auto-discovered from conventional entrypoint file paths.
95
+ *
96
+ * @example
97
+ * ```ts
98
+ * files: { entrypoints: 'src/ep.*.ts' }
99
+ * ```
100
+ */
101
+ entrypoints?: string | false;
102
+ /**
103
+ * Workflow source file glob or `false` to disable workflow discovery.
104
+ *
105
+ * @default Auto-discovered from conventional workflow file paths.
106
+ *
107
+ * @example
108
+ * ```ts
109
+ * files: { workflows: 'src/wf.*.ts' }
110
+ * ```
111
+ */
112
+ workflows?: string | false;
113
+ /**
114
+ * Built-in route-file discovery configuration or `false` to disable route
115
+ * file discovery.
116
+ *
117
+ * @default Auto-discovered from conventional route file paths.
118
+ *
119
+ * @example
120
+ * ```ts
121
+ * files: {
122
+ * routes: { dir: 'src/routes', prefix: '/api' }
123
+ * }
124
+ * ```
125
+ */
126
+ routes?: RouteTreeConfigInput | false;
127
+ /**
128
+ * Internal transport worker source file. Set `null` to suppress transport
129
+ * file generation when a command supports doing so.
130
+ *
131
+ * @default Devflare-managed transport file.
132
+ *
133
+ * @example
134
+ * ```ts
135
+ * files: { transport: 'src/.devflare/transport.ts' }
136
+ * ```
137
+ */
138
+ transport?: string | null;
139
+ }
140
+ /**
141
+ * Built-in file router discovery configuration.
142
+ */
143
+ export interface RouteTreeConfigInput {
144
+ /**
145
+ * Directory containing route files.
146
+ *
147
+ * @example
148
+ * ```ts
149
+ * routes: { dir: 'src/routes' }
150
+ * ```
151
+ */
152
+ dir: string;
153
+ /**
154
+ * URL prefix added before discovered route paths.
155
+ *
156
+ * @default No prefix.
157
+ *
158
+ * @example
159
+ * ```ts
160
+ * routes: { dir: 'src/routes', prefix: '/api' }
161
+ * ```
162
+ */
163
+ prefix?: string;
164
+ }
165
+ /**
166
+ * Trigger configuration for scheduled events.
167
+ */
168
+ export interface TriggersConfigInput {
169
+ /**
170
+ * Cron expressions that invoke the Worker scheduled handler.
171
+ *
172
+ * @example
173
+ * ```ts
174
+ * triggers: { crons: ['0 * * * *'] }
175
+ * ```
176
+ */
177
+ crons?: string[];
178
+ }
179
+ /**
180
+ * Wrangler module rule configuration.
181
+ */
182
+ export interface ModuleRuleConfigInput {
183
+ /**
184
+ * Module rule type.
185
+ *
186
+ * @example
187
+ * ```ts
188
+ * type: 'Text'
189
+ * ```
190
+ */
191
+ type: 'ESModule' | 'CommonJS' | 'CompiledWasm' | 'Text' | 'Data';
192
+ /**
193
+ * Glob patterns matched by this module rule.
194
+ *
195
+ * @example
196
+ * ```ts
197
+ * globs: ['content/*.txt']
198
+ * ```
199
+ */
200
+ globs: string[];
201
+ /**
202
+ * Whether Wrangler should continue evaluating later rules after this one.
203
+ *
204
+ * @default Wrangler default behavior.
205
+ *
206
+ * @example
207
+ * ```ts
208
+ * fallthrough: true
209
+ * ```
210
+ */
211
+ fallthrough?: boolean;
212
+ }
213
+ /**
214
+ * Tail Worker consumer configuration.
215
+ */
216
+ export type TailConsumerConfigInput = string | TailConsumerObjectConfigInput;
217
+ /**
218
+ * Tail Worker consumer object form.
219
+ */
220
+ export interface TailConsumerObjectConfigInput {
221
+ /**
222
+ * Tail Worker service name.
223
+ *
224
+ * @example
225
+ * ```ts
226
+ * service: 'trace-worker'
227
+ * ```
228
+ */
229
+ service: string;
230
+ /**
231
+ * Optional Tail Worker environment.
232
+ *
233
+ * @default Target worker default environment.
234
+ *
235
+ * @example
236
+ * ```ts
237
+ * environment: 'production'
238
+ * ```
239
+ */
240
+ environment?: string;
241
+ }
242
+ /**
243
+ * Secret declaration options.
244
+ */
245
+ export interface SecretConfigInput {
246
+ /**
247
+ * Whether the secret is required during validation.
248
+ *
249
+ * @default `true`
250
+ *
251
+ * @example
252
+ * ```ts
253
+ * secrets: { API_TOKEN: { required: true } }
254
+ * ```
255
+ */
256
+ required?: boolean;
257
+ }
258
+ /**
259
+ * Cloudflare Worker route configuration.
260
+ */
261
+ export interface RouteConfigInput {
262
+ /**
263
+ * Route pattern handled by the Worker.
264
+ *
265
+ * @example
266
+ * ```ts
267
+ * { pattern: 'api.example.com/*' }
268
+ * ```
269
+ */
270
+ pattern: string;
271
+ /**
272
+ * Zone name for the route.
273
+ *
274
+ * @default Cloudflare resolves the zone from the route pattern when
275
+ * possible.
276
+ *
277
+ * @example
278
+ * ```ts
279
+ * { pattern: 'api.example.com/*', zone_name: 'example.com' }
280
+ * ```
281
+ */
282
+ zone_name?: string;
283
+ /**
284
+ * Zone ID for the route.
285
+ *
286
+ * @default Cloudflare resolves the zone from the route pattern when
287
+ * possible.
288
+ *
289
+ * @example
290
+ * ```ts
291
+ * { pattern: 'api.example.com/*', zone_id: 'zone-id' }
292
+ * ```
293
+ */
294
+ zone_id?: string;
295
+ /**
296
+ * Whether this route is a custom domain route instead of a wildcard route.
297
+ * Custom Domains attach the Worker to the whole hostname, so the pattern
298
+ * must be a bare host such as `worker.example.com`. Use a normal route
299
+ * with `zone_name` or `zone_id` for wildcard or path patterns.
300
+ *
301
+ * @default `false`
302
+ *
303
+ * @example
304
+ * ```ts
305
+ * routes: [
306
+ * { pattern: 'worker.example.com', custom_domain: true }
307
+ * ]
308
+ * ```
309
+ */
310
+ custom_domain?: boolean;
311
+ /**
312
+ * Whether the custom-domain route is enabled. Compiles to `enabled`.
313
+ *
314
+ * @default Cloudflare default behavior.
315
+ *
316
+ * @example
317
+ * ```ts
318
+ * routes: [
319
+ * { pattern: 'worker.example.com', custom_domain: true, enabled: true }
320
+ * ]
321
+ * ```
322
+ */
323
+ enabled?: boolean;
324
+ /**
325
+ * Whether previews are enabled for the custom-domain route. Compiles to
326
+ * `previews_enabled`.
327
+ *
328
+ * @default Cloudflare default behavior.
329
+ *
330
+ * @example
331
+ * ```ts
332
+ * routes: [
333
+ * { pattern: 'worker.example.com', custom_domain: true, previews_enabled: false }
334
+ * ]
335
+ * ```
336
+ */
337
+ previews_enabled?: boolean;
338
+ }
339
+ /**
340
+ * Local WebSocket route for Durable Object proxying.
341
+ */
342
+ export interface WsRouteConfigInput {
343
+ /**
344
+ * Local route pattern.
345
+ *
346
+ * @example
347
+ * ```ts
348
+ * pattern: '/rooms/:id'
349
+ * ```
350
+ */
351
+ pattern: string;
352
+ /**
353
+ * Durable Object namespace binding name that should receive the socket.
354
+ *
355
+ * @example
356
+ * ```ts
357
+ * doNamespace: 'ROOM'
358
+ * ```
359
+ */
360
+ doNamespace: string;
361
+ /**
362
+ * Route parameter used as the Durable Object ID.
363
+ *
364
+ * @default `'id'`
365
+ *
366
+ * @example
367
+ * ```ts
368
+ * idParam: 'roomId'
369
+ * ```
370
+ */
371
+ idParam?: string;
372
+ /**
373
+ * Path forwarded to the Durable Object when the socket is proxied.
374
+ *
375
+ * @default `'/websocket'`
376
+ *
377
+ * @example
378
+ * ```ts
379
+ * forwardPath: '/connect'
380
+ * ```
381
+ */
382
+ forwardPath?: string;
383
+ }
384
+ /**
385
+ * Static assets configuration.
386
+ */
387
+ export interface AssetsConfigInput {
388
+ /**
389
+ * Directory containing static assets.
390
+ *
391
+ * @example
392
+ * ```ts
393
+ * assets: { directory: './dist' }
394
+ * ```
395
+ */
396
+ directory: string;
397
+ /**
398
+ * Optional asset binding name exposed to the Worker.
399
+ *
400
+ * @default Wrangler default binding behavior.
401
+ *
402
+ * @example
403
+ * ```ts
404
+ * assets: { directory: './dist', binding: 'ASSETS' }
405
+ * ```
406
+ */
407
+ binding?: string;
408
+ /**
409
+ * HTML path handling behavior.
410
+ *
411
+ * @default Wrangler default behavior.
412
+ *
413
+ * @example
414
+ * ```ts
415
+ * html_handling: 'auto-trailing-slash'
416
+ * ```
417
+ */
418
+ html_handling?: 'auto-trailing-slash' | 'force-trailing-slash' | 'drop-trailing-slash' | 'none';
419
+ /**
420
+ * Not-found handling behavior.
421
+ *
422
+ * @default Wrangler default behavior.
423
+ *
424
+ * @example
425
+ * ```ts
426
+ * not_found_handling: 'single-page-application'
427
+ * ```
428
+ */
429
+ not_found_handling?: 'single-page-application' | '404-page' | 'none';
430
+ /**
431
+ * Whether the Worker should run before serving assets, or the asset path
432
+ * patterns that should run the Worker first.
433
+ *
434
+ * @default Wrangler default behavior.
435
+ *
436
+ * @example
437
+ * ```ts
438
+ * run_worker_first: ['/api/*']
439
+ * ```
440
+ */
441
+ run_worker_first?: boolean | string[];
442
+ }
443
+ /**
444
+ * Cloudflare Container configuration.
445
+ */
446
+ export interface ContainerConfigInput {
447
+ /**
448
+ * Container class name exported by the Worker.
449
+ *
450
+ * @example
451
+ * ```ts
452
+ * className: 'RendererContainer'
453
+ * ```
454
+ */
455
+ className: string;
456
+ /**
457
+ * Container image reference or build target.
458
+ *
459
+ * @example
460
+ * ```ts
461
+ * image: './Dockerfile'
462
+ * ```
463
+ */
464
+ image: string;
465
+ /**
466
+ * Maximum number of container instances.
467
+ *
468
+ * @default Cloudflare Containers default behavior.
469
+ *
470
+ * @example
471
+ * ```ts
472
+ * maxInstances: 3
473
+ * ```
474
+ */
475
+ maxInstances?: number;
476
+ /**
477
+ * Container instance type.
478
+ *
479
+ * @default Cloudflare Containers default behavior.
480
+ *
481
+ * @example
482
+ * ```ts
483
+ * instanceType: 'standard'
484
+ * ```
485
+ */
486
+ instanceType?: string;
487
+ /**
488
+ * Optional generated container name.
489
+ *
490
+ * @default Devflare derives the name from the class when possible.
491
+ *
492
+ * @example
493
+ * ```ts
494
+ * name: 'renderer'
495
+ * ```
496
+ */
497
+ name?: string;
498
+ /**
499
+ * Docker build context.
500
+ *
501
+ * @default Container image path default.
502
+ *
503
+ * @example
504
+ * ```ts
505
+ * imageBuildContext: './containers/renderer'
506
+ * ```
507
+ */
508
+ imageBuildContext?: string;
509
+ /**
510
+ * Build-time variables for the container image.
511
+ *
512
+ * @default No image variables.
513
+ *
514
+ * @example
515
+ * ```ts
516
+ * imageVars: { NODE_ENV: 'production' }
517
+ * ```
518
+ */
519
+ imageVars?: Record<string, string>;
520
+ /**
521
+ * Active grace period in seconds during rollout.
522
+ *
523
+ * @default Cloudflare Containers default behavior.
524
+ *
525
+ * @example
526
+ * ```ts
527
+ * rolloutActiveGracePeriod: 60
528
+ * ```
529
+ */
530
+ rolloutActiveGracePeriod?: number;
531
+ /**
532
+ * Rollout step percentage or step percentages.
533
+ *
534
+ * @default Cloudflare Containers default behavior.
535
+ *
536
+ * @example
537
+ * ```ts
538
+ * rolloutStepPercentage: [10, 50, 100]
539
+ * ```
540
+ */
541
+ rolloutStepPercentage?: number | number[];
542
+ }
543
+ /**
544
+ * Worker placement configuration.
545
+ */
546
+ export type PlacementConfigInput = SmartPlacementConfigInput | TargetedRegionPlacementConfigInput | TargetedHostPlacementConfigInput | TargetedHostnamePlacementConfigInput;
547
+ /**
548
+ * Smart Placement configuration.
549
+ */
550
+ export interface SmartPlacementConfigInput {
551
+ /**
552
+ * Smart Placement mode.
553
+ *
554
+ * @example
555
+ * ```ts
556
+ * mode: 'smart'
557
+ * ```
558
+ */
559
+ mode: 'off' | 'smart';
560
+ /**
561
+ * Optional placement hint. Only valid when `mode` is `smart`.
562
+ *
563
+ * @default No placement hint.
564
+ *
565
+ * @example
566
+ * ```ts
567
+ * hint: 'wnam'
568
+ * ```
569
+ */
570
+ hint?: string;
571
+ }
572
+ /**
573
+ * Targeted placement by Cloudflare region.
574
+ */
575
+ export interface TargetedRegionPlacementConfigInput {
576
+ /**
577
+ * Targeted placement mode.
578
+ *
579
+ * @default `'targeted'`
580
+ *
581
+ * @example
582
+ * ```ts
583
+ * mode: 'targeted'
584
+ * ```
585
+ */
586
+ mode?: 'targeted';
587
+ /**
588
+ * Target Cloudflare region.
589
+ *
590
+ * @example
591
+ * ```ts
592
+ * region: 'wnam'
593
+ * ```
594
+ */
595
+ region: string;
596
+ }
597
+ /**
598
+ * Targeted placement by host.
599
+ */
600
+ export interface TargetedHostPlacementConfigInput {
601
+ /**
602
+ * Targeted placement mode.
603
+ *
604
+ * @default `'targeted'`
605
+ *
606
+ * @example
607
+ * ```ts
608
+ * mode: 'targeted'
609
+ * ```
610
+ */
611
+ mode?: 'targeted';
612
+ /**
613
+ * Target host.
614
+ *
615
+ * @example
616
+ * ```ts
617
+ * host: 'db.internal'
618
+ * ```
619
+ */
620
+ host: string;
621
+ }
622
+ /**
623
+ * Targeted placement by hostname.
624
+ */
625
+ export interface TargetedHostnamePlacementConfigInput {
626
+ /**
627
+ * Targeted placement mode.
628
+ *
629
+ * @default `'targeted'`
630
+ *
631
+ * @example
632
+ * ```ts
633
+ * mode: 'targeted'
634
+ * ```
635
+ */
636
+ mode?: 'targeted';
637
+ /**
638
+ * Target hostname.
639
+ *
640
+ * @example
641
+ * ```ts
642
+ * hostname: 'api.example.com'
643
+ * ```
644
+ */
645
+ hostname: string;
646
+ }
647
+ /**
648
+ * Worker resource limits.
649
+ */
650
+ export interface LimitsConfigInput {
651
+ /**
652
+ * CPU time limit in milliseconds.
653
+ *
654
+ * @default Cloudflare Workers account and plan default.
655
+ *
656
+ * @example
657
+ * ```ts
658
+ * cpu_ms: 50
659
+ * ```
660
+ */
661
+ cpu_ms?: number;
662
+ /**
663
+ * Subrequest limit.
664
+ *
665
+ * @default Cloudflare Workers account and plan default.
666
+ *
667
+ * @example
668
+ * ```ts
669
+ * subrequests: 1000
670
+ * ```
671
+ */
672
+ subrequests?: number;
673
+ }
674
+ /**
675
+ * Worker logs and traces observability settings.
676
+ */
677
+ export interface ObservabilityConfigInput {
678
+ /**
679
+ * Enable observability.
680
+ *
681
+ * @default Cloudflare default behavior.
682
+ *
683
+ * @example
684
+ * ```ts
685
+ * enabled: true
686
+ * ```
687
+ */
688
+ enabled?: boolean;
689
+ /**
690
+ * Head sampling rate from `0` to `1`.
691
+ *
692
+ * @default Cloudflare default sampling behavior.
693
+ *
694
+ * @example
695
+ * ```ts
696
+ * head_sampling_rate: 0.1
697
+ * ```
698
+ */
699
+ head_sampling_rate?: number;
700
+ /**
701
+ * Log-specific observability settings.
702
+ *
703
+ * @default Cloudflare default log behavior.
704
+ *
705
+ * @example
706
+ * ```ts
707
+ * logs: { enabled: true, invocation_logs: true }
708
+ * ```
709
+ */
710
+ logs?: ObservabilityLogsConfigInput;
711
+ /**
712
+ * Trace-specific observability settings.
713
+ *
714
+ * @default Cloudflare default trace behavior.
715
+ *
716
+ * @example
717
+ * ```ts
718
+ * traces: { enabled: true, head_sampling_rate: 0.05 }
719
+ * ```
720
+ */
721
+ traces?: ObservabilityTracesConfigInput;
722
+ }
723
+ /**
724
+ * Worker log observability settings.
725
+ */
726
+ export interface ObservabilityLogsConfigInput {
727
+ /**
728
+ * Enable log collection.
729
+ *
730
+ * @default Cloudflare default log behavior.
731
+ *
732
+ * @example
733
+ * ```ts
734
+ * enabled: true
735
+ * ```
736
+ */
737
+ enabled?: boolean;
738
+ /**
739
+ * Log head sampling rate from `0` to `1`.
740
+ *
741
+ * @default Cloudflare default sampling behavior.
742
+ *
743
+ * @example
744
+ * ```ts
745
+ * head_sampling_rate: 0.1
746
+ * ```
747
+ */
748
+ head_sampling_rate?: number;
749
+ /**
750
+ * Include invocation logs.
751
+ *
752
+ * @default Cloudflare default log behavior.
753
+ *
754
+ * @example
755
+ * ```ts
756
+ * invocation_logs: true
757
+ * ```
758
+ */
759
+ invocation_logs?: boolean;
760
+ /**
761
+ * Persist logs.
762
+ *
763
+ * @default Cloudflare default persistence behavior.
764
+ *
765
+ * @example
766
+ * ```ts
767
+ * persist: true
768
+ * ```
769
+ */
770
+ persist?: boolean;
771
+ /**
772
+ * Log destination names.
773
+ *
774
+ * @default Cloudflare default destinations.
775
+ *
776
+ * @example
777
+ * ```ts
778
+ * destinations: ['cloudflare']
779
+ * ```
780
+ */
781
+ destinations?: string[];
782
+ }
783
+ /**
784
+ * Worker trace observability settings.
785
+ */
786
+ export interface ObservabilityTracesConfigInput {
787
+ /**
788
+ * Enable trace collection.
789
+ *
790
+ * @default Cloudflare default trace behavior.
791
+ *
792
+ * @example
793
+ * ```ts
794
+ * enabled: true
795
+ * ```
796
+ */
797
+ enabled?: boolean;
798
+ /**
799
+ * Trace head sampling rate from `0` to `1`.
800
+ *
801
+ * @default Cloudflare default sampling behavior.
802
+ *
803
+ * @example
804
+ * ```ts
805
+ * head_sampling_rate: 0.1
806
+ * ```
807
+ */
808
+ head_sampling_rate?: number;
809
+ /**
810
+ * Persist traces.
811
+ *
812
+ * @default Cloudflare default persistence behavior.
813
+ *
814
+ * @example
815
+ * ```ts
816
+ * persist: true
817
+ * ```
818
+ */
819
+ persist?: boolean;
820
+ /**
821
+ * Trace destination names.
822
+ *
823
+ * @default Cloudflare default destinations.
824
+ *
825
+ * @example
826
+ * ```ts
827
+ * destinations: ['cloudflare']
828
+ * ```
829
+ */
830
+ destinations?: string[];
831
+ }
832
+ /**
833
+ * Durable Object migration configuration.
834
+ */
835
+ export interface MigrationConfigInput {
836
+ /**
837
+ * Unique migration tag.
838
+ *
839
+ * @example
840
+ * ```ts
841
+ * tag: 'v1'
842
+ * ```
843
+ */
844
+ tag: string;
845
+ /**
846
+ * New Durable Object class names using legacy storage.
847
+ *
848
+ * @default No new legacy-storage classes.
849
+ *
850
+ * @example
851
+ * ```ts
852
+ * new_classes: ['Counter']
853
+ * ```
854
+ */
855
+ new_classes?: string[];
856
+ /**
857
+ * Renamed Durable Object classes.
858
+ *
859
+ * @default No renamed classes.
860
+ *
861
+ * @example
862
+ * ```ts
863
+ * renamed_classes: [{ from: 'OldCounter', to: 'Counter' }]
864
+ * ```
865
+ */
866
+ renamed_classes?: RenamedClassMigrationInput[];
867
+ /**
868
+ * Deleted Durable Object class names.
869
+ *
870
+ * @default No deleted classes.
871
+ *
872
+ * @example
873
+ * ```ts
874
+ * deleted_classes: ['OldCounter']
875
+ * ```
876
+ */
877
+ deleted_classes?: string[];
878
+ /**
879
+ * New Durable Object class names using SQLite storage.
880
+ *
881
+ * @default No new SQLite classes.
882
+ *
883
+ * @example
884
+ * ```ts
885
+ * new_sqlite_classes: ['Counter']
886
+ * ```
887
+ */
888
+ new_sqlite_classes?: string[];
889
+ }
890
+ /**
891
+ * Durable Object class rename migration entry.
892
+ */
893
+ export interface RenamedClassMigrationInput {
894
+ /**
895
+ * Previous Durable Object class name.
896
+ *
897
+ * @example
898
+ * ```ts
899
+ * from: 'OldCounter'
900
+ * ```
901
+ */
902
+ from: string;
903
+ /**
904
+ * New Durable Object class name.
905
+ *
906
+ * @example
907
+ * ```ts
908
+ * to: 'Counter'
909
+ * ```
910
+ */
911
+ to: string;
912
+ }
913
+ //# sourceMappingURL=schema-types-runtime.d.ts.map