wrangler 0.0.0-e6c71262 → 0.0.0-e6ddf8a7

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 (316) hide show
  1. package/README.md +10 -12
  2. package/bin/wrangler.js +13 -74
  3. package/package.json +210 -199
  4. package/templates/__tests__/tsconfig.json +1 -1
  5. package/templates/checked-fetch.js +10 -3
  6. package/templates/facade.d.ts +4 -1
  7. package/templates/middleware/common.ts +9 -4
  8. package/templates/middleware/loader-modules.ts +64 -11
  9. package/templates/middleware/loader-sw.ts +2 -7
  10. package/templates/middleware/middleware-d1-beta.d.ts +3 -0
  11. package/templates/middleware/middleware-miniflare3-json-error.ts +1 -0
  12. package/templates/middleware/middleware-multiworker-dev.d.ts +4 -0
  13. package/templates/middleware/middleware-multiworker-dev.ts +68 -0
  14. package/templates/middleware/middleware-serve-static-assets.d.ts +6 -0
  15. package/templates/middleware/middleware-serve-static-assets.ts +56 -0
  16. package/templates/modules-watch-stub.js +4 -0
  17. package/templates/new-worker-scheduled.ts +1 -1
  18. package/templates/new-worker.ts +1 -1
  19. package/templates/pages-shim.ts +0 -3
  20. package/templates/pages-template-plugin.ts +12 -2
  21. package/templates/pages-template-worker.ts +11 -2
  22. package/templates/tsconfig.json +1 -1
  23. package/wrangler-dist/cli.d.ts +264 -195
  24. package/wrangler-dist/cli.js +90041 -92345
  25. package/wrangler-dist/wasm-sync.wasm +0 -0
  26. package/import_meta_url.js +0 -3
  27. package/miniflare-config-stubs/.env.empty +0 -0
  28. package/miniflare-config-stubs/package.empty.json +0 -1
  29. package/miniflare-config-stubs/wrangler.empty.toml +0 -0
  30. package/miniflare-dist/index.mjs +0 -6442
  31. package/src/__tests__/access.test.ts +0 -25
  32. package/src/__tests__/api-dev.test.ts +0 -238
  33. package/src/__tests__/api-devregistry.test.ts +0 -121
  34. package/src/__tests__/api.test.ts +0 -102
  35. package/src/__tests__/config-cache-without-cache-dir.test.ts +0 -38
  36. package/src/__tests__/config-cache.test.ts +0 -42
  37. package/src/__tests__/configuration.test.ts +0 -4671
  38. package/src/__tests__/constellation.test.ts +0 -371
  39. package/src/__tests__/d1/d1.test.ts +0 -82
  40. package/src/__tests__/d1/execute.test.ts +0 -66
  41. package/src/__tests__/d1/migrate.test.ts +0 -257
  42. package/src/__tests__/d1/splitter.test.ts +0 -255
  43. package/src/__tests__/delete.test.ts +0 -272
  44. package/src/__tests__/deployments.test.ts +0 -369
  45. package/src/__tests__/dev.test.tsx +0 -1617
  46. package/src/__tests__/generate.test.ts +0 -254
  47. package/src/__tests__/get-host-from-url.test.ts +0 -16
  48. package/src/__tests__/guess-worker-format.test.ts +0 -120
  49. package/src/__tests__/helpers/clipboardy-mock.js +0 -4
  50. package/src/__tests__/helpers/cmd-shim.d.ts +0 -11
  51. package/src/__tests__/helpers/end-event-loop.ts +0 -6
  52. package/src/__tests__/helpers/mock-account-id.ts +0 -48
  53. package/src/__tests__/helpers/mock-auth-domain.ts +0 -20
  54. package/src/__tests__/helpers/mock-bin.ts +0 -36
  55. package/src/__tests__/helpers/mock-console.ts +0 -112
  56. package/src/__tests__/helpers/mock-dialogs.ts +0 -139
  57. package/src/__tests__/helpers/mock-get-pages-upload-token.ts +0 -25
  58. package/src/__tests__/helpers/mock-get-zone-from-host.ts +0 -11
  59. package/src/__tests__/helpers/mock-http-server.ts +0 -46
  60. package/src/__tests__/helpers/mock-istty.ts +0 -74
  61. package/src/__tests__/helpers/mock-known-routes.ts +0 -12
  62. package/src/__tests__/helpers/mock-kv.ts +0 -46
  63. package/src/__tests__/helpers/mock-oauth-flow.ts +0 -263
  64. package/src/__tests__/helpers/mock-process.ts +0 -34
  65. package/src/__tests__/helpers/mock-set-timeout.ts +0 -16
  66. package/src/__tests__/helpers/mock-stdin.ts +0 -108
  67. package/src/__tests__/helpers/mock-web-socket.ts +0 -29
  68. package/src/__tests__/helpers/msw/blob-worker.cjs +0 -19
  69. package/src/__tests__/helpers/msw/handlers/access.ts +0 -13
  70. package/src/__tests__/helpers/msw/handlers/deployments.ts +0 -160
  71. package/src/__tests__/helpers/msw/handlers/namespaces.ts +0 -81
  72. package/src/__tests__/helpers/msw/handlers/oauth.ts +0 -31
  73. package/src/__tests__/helpers/msw/handlers/r2.ts +0 -60
  74. package/src/__tests__/helpers/msw/handlers/script.ts +0 -56
  75. package/src/__tests__/helpers/msw/handlers/user.ts +0 -52
  76. package/src/__tests__/helpers/msw/handlers/zones.ts +0 -20
  77. package/src/__tests__/helpers/msw/index.ts +0 -52
  78. package/src/__tests__/helpers/msw/read-file-sync.js +0 -61
  79. package/src/__tests__/helpers/run-in-tmp.ts +0 -38
  80. package/src/__tests__/helpers/run-wrangler.ts +0 -16
  81. package/src/__tests__/helpers/string-dynamic-values-matcher.ts +0 -28
  82. package/src/__tests__/helpers/worker-scripts/child-wrangler.toml +0 -1
  83. package/src/__tests__/helpers/worker-scripts/hello-world-worker.js +0 -5
  84. package/src/__tests__/helpers/worker-scripts/hello-world-wrangler.toml +0 -1
  85. package/src/__tests__/helpers/worker-scripts/parent-worker.js +0 -11
  86. package/src/__tests__/helpers/worker-scripts/parent-wrangler.toml +0 -5
  87. package/src/__tests__/helpers/write-worker-source.ts +0 -31
  88. package/src/__tests__/helpers/write-wrangler-toml.ts +0 -17
  89. package/src/__tests__/https-options.test.ts +0 -163
  90. package/src/__tests__/index.test.ts +0 -282
  91. package/src/__tests__/init.test.ts +0 -3419
  92. package/src/__tests__/jest.setup.ts +0 -179
  93. package/src/__tests__/kv.test.ts +0 -1799
  94. package/src/__tests__/logger.test.ts +0 -207
  95. package/src/__tests__/logout.test.ts +0 -47
  96. package/src/__tests__/metrics.test.ts +0 -493
  97. package/src/__tests__/middleware.scheduled.test.ts +0 -145
  98. package/src/__tests__/middleware.test.ts +0 -816
  99. package/src/__tests__/mtls-certificates.test.ts +0 -589
  100. package/src/__tests__/package-manager.test.ts +0 -353
  101. package/src/__tests__/pages/deployment-list.test.ts +0 -80
  102. package/src/__tests__/pages/functions-build.test.ts +0 -528
  103. package/src/__tests__/pages/pages.test.ts +0 -81
  104. package/src/__tests__/pages/project-create.test.ts +0 -63
  105. package/src/__tests__/pages/project-list.test.ts +0 -110
  106. package/src/__tests__/pages/project-upload.test.ts +0 -500
  107. package/src/__tests__/pages/publish.test.ts +0 -2864
  108. package/src/__tests__/pages-deployment-tail.test.ts +0 -957
  109. package/src/__tests__/parse.test.ts +0 -436
  110. package/src/__tests__/paths.test.ts +0 -39
  111. package/src/__tests__/publish.test.ts +0 -8849
  112. package/src/__tests__/pubsub.test.ts +0 -496
  113. package/src/__tests__/queues.test.ts +0 -532
  114. package/src/__tests__/r2.test.ts +0 -374
  115. package/src/__tests__/route.test.ts +0 -45
  116. package/src/__tests__/secret.test.ts +0 -693
  117. package/src/__tests__/tail.test.ts +0 -989
  118. package/src/__tests__/test-old-node-version.js +0 -31
  119. package/src/__tests__/traverse-module-graph.test.ts +0 -220
  120. package/src/__tests__/tsconfig-sanity.ts +0 -12
  121. package/src/__tests__/tsconfig.json +0 -8
  122. package/src/__tests__/tsconfig.tsbuildinfo +0 -1
  123. package/src/__tests__/type-generation.test.ts +0 -234
  124. package/src/__tests__/unstableDev.test.ts +0 -61
  125. package/src/__tests__/user.test.ts +0 -118
  126. package/src/__tests__/utils-collectKeyValues.test.ts +0 -47
  127. package/src/__tests__/validate-dev-props.test.ts +0 -56
  128. package/src/__tests__/version.test.ts +0 -35
  129. package/src/__tests__/whoami.test.tsx +0 -172
  130. package/src/__tests__/worker-namespace.test.ts +0 -340
  131. package/src/abort.d.ts +0 -3
  132. package/src/api/dev.ts +0 -321
  133. package/src/api/index.ts +0 -11
  134. package/src/api/mtls-certificate.ts +0 -148
  135. package/src/api/pages/create-worker-bundle-contents.ts +0 -79
  136. package/src/api/pages/index.ts +0 -5
  137. package/src/api/pages/publish.tsx +0 -371
  138. package/src/bundle-reporter.ts +0 -68
  139. package/src/bundle.ts +0 -929
  140. package/src/cfetch/index.ts +0 -158
  141. package/src/cfetch/internal.ts +0 -263
  142. package/src/cli.ts +0 -28
  143. package/src/config/README.md +0 -107
  144. package/src/config/config.ts +0 -282
  145. package/src/config/diagnostics.ts +0 -80
  146. package/src/config/environment.ts +0 -650
  147. package/src/config/index.ts +0 -424
  148. package/src/config/validation-helpers.ts +0 -597
  149. package/src/config/validation.ts +0 -2457
  150. package/src/config-cache.ts +0 -85
  151. package/src/constellation/createProject.tsx +0 -51
  152. package/src/constellation/deleteProject.ts +0 -51
  153. package/src/constellation/deleteProjectModel.ts +0 -76
  154. package/src/constellation/index.ts +0 -75
  155. package/src/constellation/listCatalog.tsx +0 -35
  156. package/src/constellation/listModel.tsx +0 -49
  157. package/src/constellation/listProject.tsx +0 -28
  158. package/src/constellation/listRuntime.tsx +0 -28
  159. package/src/constellation/options.ts +0 -17
  160. package/src/constellation/types.ts +0 -17
  161. package/src/constellation/uploadModel.tsx +0 -84
  162. package/src/constellation/utils.ts +0 -90
  163. package/src/create-worker-preview.ts +0 -293
  164. package/src/create-worker-upload-form.ts +0 -380
  165. package/src/d1/backups.tsx +0 -219
  166. package/src/d1/constants.ts +0 -5
  167. package/src/d1/create.tsx +0 -102
  168. package/src/d1/delete.ts +0 -53
  169. package/src/d1/execute.tsx +0 -371
  170. package/src/d1/formatTimeAgo.ts +0 -14
  171. package/src/d1/index.ts +0 -100
  172. package/src/d1/list.tsx +0 -62
  173. package/src/d1/migrations/apply.tsx +0 -235
  174. package/src/d1/migrations/create.tsx +0 -79
  175. package/src/d1/migrations/helpers.ts +0 -171
  176. package/src/d1/migrations/index.ts +0 -3
  177. package/src/d1/migrations/list.tsx +0 -95
  178. package/src/d1/migrations/options.ts +0 -23
  179. package/src/d1/options.ts +0 -22
  180. package/src/d1/splitter.ts +0 -161
  181. package/src/d1/types.ts +0 -32
  182. package/src/d1/utils.ts +0 -49
  183. package/src/delete.ts +0 -100
  184. package/src/deployments.ts +0 -368
  185. package/src/deprecated/index.ts +0 -144
  186. package/src/dev/dev-vars.ts +0 -39
  187. package/src/dev/dev.tsx +0 -605
  188. package/src/dev/get-local-persistence-path.ts +0 -31
  189. package/src/dev/local.tsx +0 -952
  190. package/src/dev/remote.tsx +0 -635
  191. package/src/dev/start-server.ts +0 -545
  192. package/src/dev/use-esbuild.ts +0 -215
  193. package/src/dev/validate-dev-props.ts +0 -40
  194. package/src/dev-registry.ts +0 -213
  195. package/src/dev.tsx +0 -937
  196. package/src/dialogs.ts +0 -136
  197. package/src/dispatch-namespace.ts +0 -211
  198. package/src/docs/helpers.ts +0 -50
  199. package/src/docs/index.ts +0 -54
  200. package/src/durable.ts +0 -102
  201. package/src/entry.ts +0 -344
  202. package/src/environment-variables/factory.ts +0 -89
  203. package/src/environment-variables/misc-variables.ts +0 -30
  204. package/src/errors.ts +0 -11
  205. package/src/generate/index.ts +0 -304
  206. package/src/git-client.ts +0 -135
  207. package/src/global-wrangler-config-path.ts +0 -26
  208. package/src/https-options.ts +0 -127
  209. package/src/index.ts +0 -769
  210. package/src/init.ts +0 -1123
  211. package/src/inspect.ts +0 -883
  212. package/src/intl-polyfill.d.ts +0 -139
  213. package/src/is-ci.ts +0 -14
  214. package/src/is-interactive.ts +0 -16
  215. package/src/jest.d.ts +0 -4
  216. package/src/kv/helpers.ts +0 -433
  217. package/src/kv/index.ts +0 -594
  218. package/src/logger.ts +0 -123
  219. package/src/metrics/index.ts +0 -5
  220. package/src/metrics/metrics-config.ts +0 -239
  221. package/src/metrics/metrics-dispatcher.ts +0 -96
  222. package/src/metrics/metrics-usage-headers.ts +0 -24
  223. package/src/metrics/send-event.ts +0 -99
  224. package/src/miniflare-cli/README.md +0 -30
  225. package/src/miniflare-cli/assets.ts +0 -251
  226. package/src/miniflare-cli/index.ts +0 -210
  227. package/src/miniflare-cli/request-context.ts +0 -40
  228. package/src/miniflare-cli/tsconfig.json +0 -9
  229. package/src/miniflare-cli/tsconfig.tsbuildinfo +0 -1
  230. package/src/miniflare-cli/types.ts +0 -11
  231. package/src/module-collection.ts +0 -333
  232. package/src/mtls-certificate/cli.ts +0 -155
  233. package/src/open-in-browser.ts +0 -17
  234. package/src/package-manager.ts +0 -219
  235. package/src/pages/build.ts +0 -423
  236. package/src/pages/buildFunctions.ts +0 -140
  237. package/src/pages/constants.ts +0 -18
  238. package/src/pages/deployment-tails.ts +0 -281
  239. package/src/pages/deployments.tsx +0 -84
  240. package/src/pages/dev.ts +0 -734
  241. package/src/pages/errors.ts +0 -67
  242. package/src/pages/functions/buildPlugin.ts +0 -114
  243. package/src/pages/functions/buildWorker.ts +0 -350
  244. package/src/pages/functions/filepath-routing.test.ts +0 -234
  245. package/src/pages/functions/filepath-routing.ts +0 -189
  246. package/src/pages/functions/identifiers.ts +0 -78
  247. package/src/pages/functions/routes-consolidation.test.ts +0 -250
  248. package/src/pages/functions/routes-consolidation.ts +0 -73
  249. package/src/pages/functions/routes-transformation.test.ts +0 -282
  250. package/src/pages/functions/routes-transformation.ts +0 -115
  251. package/src/pages/functions/routes-validation.test.ts +0 -403
  252. package/src/pages/functions/routes-validation.ts +0 -202
  253. package/src/pages/functions/routes.ts +0 -151
  254. package/src/pages/functions/tsconfig.json +0 -8
  255. package/src/pages/functions/tsconfig.tsbuildinfo +0 -1
  256. package/src/pages/functions.ts +0 -86
  257. package/src/pages/hash.ts +0 -13
  258. package/src/pages/index.ts +0 -102
  259. package/src/pages/projects.tsx +0 -159
  260. package/src/pages/prompt-select-project.tsx +0 -31
  261. package/src/pages/publish.tsx +0 -267
  262. package/src/pages/types.ts +0 -46
  263. package/src/pages/upload.tsx +0 -469
  264. package/src/pages/utils.ts +0 -23
  265. package/src/parse.ts +0 -308
  266. package/src/paths.ts +0 -71
  267. package/src/proxy.ts +0 -694
  268. package/src/publish/index.ts +0 -274
  269. package/src/publish/publish.ts +0 -1067
  270. package/src/pubsub/index.ts +0 -286
  271. package/src/pubsub/pubsub-commands.ts +0 -623
  272. package/src/queues/cli/commands/consumer/add.ts +0 -71
  273. package/src/queues/cli/commands/consumer/index.ts +0 -19
  274. package/src/queues/cli/commands/consumer/remove.ts +0 -31
  275. package/src/queues/cli/commands/create.ts +0 -25
  276. package/src/queues/cli/commands/delete.ts +0 -26
  277. package/src/queues/cli/commands/index.ts +0 -35
  278. package/src/queues/cli/commands/list.ts +0 -25
  279. package/src/queues/client.ts +0 -136
  280. package/src/queues/utils.ts +0 -18
  281. package/src/r2/constants.ts +0 -4
  282. package/src/r2/helpers.ts +0 -132
  283. package/src/r2/index.ts +0 -289
  284. package/src/routes.ts +0 -140
  285. package/src/secret/index.ts +0 -379
  286. package/src/selfsigned.d.ts +0 -29
  287. package/src/sites.ts +0 -484
  288. package/src/tail/createTail.ts +0 -415
  289. package/src/tail/filters.ts +0 -277
  290. package/src/tail/index.ts +0 -211
  291. package/src/tail/printing.ts +0 -132
  292. package/src/traverse-module-graph.ts +0 -54
  293. package/src/tsconfig-sanity.ts +0 -16
  294. package/src/type-generation.ts +0 -187
  295. package/src/update-check.ts +0 -19
  296. package/src/user/access.ts +0 -68
  297. package/src/user/auth-variables.ts +0 -113
  298. package/src/user/choose-account.tsx +0 -39
  299. package/src/user/generate-auth-url.ts +0 -33
  300. package/src/user/generate-random-state.ts +0 -16
  301. package/src/user/index.ts +0 -2
  302. package/src/user/user.ts +0 -1234
  303. package/src/utils/collectKeyValues.ts +0 -14
  304. package/src/utils/render.ts +0 -93
  305. package/src/whoami.ts +0 -135
  306. package/src/worker.ts +0 -294
  307. package/src/yargs-types.ts +0 -37
  308. package/src/zones.ts +0 -191
  309. package/templates/__tests__/tsconfig.tsbuildinfo +0 -1
  310. package/templates/d1-beta-facade.js +0 -244
  311. package/templates/first-party-worker-module-facade.ts +0 -19
  312. package/templates/format-dev-errors.ts +0 -34
  313. package/templates/serve-static-assets.ts +0 -66
  314. package/templates/service-bindings-module-facade.js +0 -55
  315. package/templates/service-bindings-sw-facade.js +0 -42
  316. package/templates/tsconfig.tsbuildinfo +0 -1
@@ -5,11 +5,12 @@ import { ConnectionOptions } from 'tls';
5
5
  import { Duplex } from 'stream';
6
6
  import { EventEmitter } from 'events';
7
7
  import { IpcNetConnectOpts } from 'net';
8
+ import type { Json } from 'miniflare';
8
9
  import { Readable } from 'stream';
9
- import { ReadableStream } from 'stream/web';
10
- import { Socket } from 'net';
10
+ import { ReadableStream as ReadableStream_2 } from 'stream/web';
11
+ import { Socket as Socket_2 } from 'net';
11
12
  import { TcpNetConnectOpts } from 'net';
12
- import { TlsOptions } from 'tls';
13
+ import { TlsOptions as TlsOptions_2 } from 'tls';
13
14
  import { TLSSocket } from 'tls';
14
15
  import { URL as URL_2 } from 'url';
15
16
  import { URLSearchParams as URLSearchParams_2 } from 'url';
@@ -22,11 +23,11 @@ declare interface BlobPropertyBag {
22
23
  endings?: 'native' | 'transparent'
23
24
  }
24
25
 
25
- declare type BodyInit =
26
+ declare type BodyInit_2 =
26
27
  | ArrayBuffer
27
28
  | AsyncIterable<Uint8Array>
28
29
  | Blob_2
29
- | FormData
30
+ | FormData_2
30
31
  | Iterable<Uint8Array>
31
32
  | NodeJS.ArrayBufferView
32
33
  | URLSearchParams_2
@@ -34,12 +35,12 @@ declare type BodyInit =
34
35
  | string
35
36
 
36
37
  declare interface BodyMixin {
37
- readonly body: ReadableStream | null
38
+ readonly body: ReadableStream_2 | null
38
39
  readonly bodyUsed: boolean
39
40
 
40
41
  readonly arrayBuffer: () => Promise<ArrayBuffer>
41
42
  readonly blob: () => Promise<Blob_2>
42
- readonly formData: () => Promise<FormData>
43
+ readonly formData: () => Promise<FormData_2>
43
44
  readonly json: () => Promise<unknown>
44
45
  readonly text: () => Promise<string>
45
46
  }
@@ -120,16 +121,16 @@ declare namespace buildConnector {
120
121
  port: string
121
122
  servername?: string
122
123
  localAddress?: string | null
123
- httpSocket?: Socket
124
+ httpSocket?: Socket_2
124
125
  }
125
126
 
126
127
  type Callback = (...args: CallbackArgs) => void
127
- type CallbackArgs = [null, Socket | TLSSocket] | [Error, null]
128
+ type CallbackArgs = [null, Socket_2 | TLSSocket] | [Error, null]
128
129
 
129
130
  type connector = connectorAsync | connectorSync
130
131
 
131
132
  interface connectorSync {
132
- (options: buildConnector.Options): Socket | TLSSocket
133
+ (options: buildConnector.Options): Socket_2 | TLSSocket
133
134
  }
134
135
 
135
136
  interface connectorAsync {
@@ -137,6 +138,50 @@ declare namespace buildConnector {
137
138
  }
138
139
  }
139
140
 
141
+ /**
142
+ * An imported module.
143
+ */
144
+ declare interface CfModule {
145
+ /**
146
+ * The module name.
147
+ *
148
+ * @example
149
+ * './src/index.js'
150
+ */
151
+ name: string;
152
+ /**
153
+ * The absolute path of the module on disk, or `undefined` if this is a
154
+ * virtual module. Used as the source URL for this module, so source maps are
155
+ * correctly resolved.
156
+ *
157
+ * @example
158
+ * '/path/to/src/index.js'
159
+ */
160
+ filePath: string | undefined;
161
+ /**
162
+ * The module content, usually JavaScript or WASM code.
163
+ *
164
+ * @example
165
+ * export default {
166
+ * async fetch(request) {
167
+ * return new Response('Ok')
168
+ * }
169
+ * }
170
+ */
171
+ content: string | Buffer;
172
+ /**
173
+ * The module type.
174
+ *
175
+ * If absent, will default to the main module's type.
176
+ */
177
+ type?: CfModuleType;
178
+ }
179
+
180
+ /**
181
+ * A module type.
182
+ */
183
+ declare type CfModuleType = "esm" | "commonjs" | "compiled-wasm" | "text" | "buffer";
184
+
140
185
  /** A basic HTTP/1.1 client, mapped on top a single TCP/TLS connection. Pipelining is disabled by default. */
141
186
  declare class Client extends Dispatcher {
142
187
  constructor(url: string | URL_2, options?: Client.Options);
@@ -169,7 +214,7 @@ declare namespace Client {
169
214
  /** If `true`, an error is thrown when the request content-length header doesn't match the length of the request body. Default: `true`. */
170
215
  strictContentLength?: boolean;
171
216
  /** @deprecated use the connect option instead */
172
- tls?: TlsOptions | null;
217
+ tls?: TlsOptions_2 | null;
173
218
  /** */
174
219
  maxRequestsPerClient?: number;
175
220
  /** Max response body size in bytes, -1 is disabled */
@@ -206,7 +251,73 @@ declare type CustomDomainRoute = {
206
251
  custom_domain: boolean;
207
252
  };
208
253
 
209
- export declare function deleteMTlsCertificate(accountId: string, certificateId: string): Promise<unknown>;
254
+ /**
255
+ * Publish a directory to an account/project.
256
+ * NOTE: You will need the `CLOUDFLARE_API_KEY` environment
257
+ * variable set
258
+ */
259
+ declare function deploy({ directory, accountId, projectName, branch, skipCaching, commitMessage, commitHash, commitDirty, functionsDirectory: customFunctionsDirectory, bundle, }: PagesDeployOptions): Promise<{
260
+ url: string;
261
+ environment: "production" | "preview";
262
+ id: string;
263
+ project_id: string;
264
+ project_name: string;
265
+ build_config: {
266
+ build_command: string;
267
+ destination_dir: string;
268
+ root_dir: string;
269
+ web_analytics_tag?: string | undefined;
270
+ web_analytics_token?: string | undefined;
271
+ fast_builds?: boolean | undefined;
272
+ };
273
+ created_on: string;
274
+ production_branch: string;
275
+ deployment_trigger: {
276
+ metadata: {
277
+ branch: string;
278
+ commit_hash: string;
279
+ commit_message: string;
280
+ };
281
+ type: string;
282
+ };
283
+ latest_stage: {
284
+ name: "build" | "deploy" | "queued" | "initialize" | "clone_repo";
285
+ status: "active" | "idle" | "canceled" | "success" | "failure" | "skipped";
286
+ started_on: string | null;
287
+ ended_on: string | null;
288
+ };
289
+ stages: {
290
+ name: "build" | "deploy" | "queued" | "initialize" | "clone_repo";
291
+ status: "active" | "idle" | "canceled" | "success" | "failure" | "skipped";
292
+ started_on: string | null;
293
+ ended_on: string | null;
294
+ }[];
295
+ aliases: string[];
296
+ modified_on: string;
297
+ short_id: string;
298
+ build_image_major_version: number;
299
+ kv_namespaces?: any;
300
+ source?: {
301
+ type: "github" | "gitlab";
302
+ config: {
303
+ owner: string;
304
+ repo_name: string;
305
+ production_branch?: string | undefined;
306
+ pr_comments_enabled?: boolean | undefined;
307
+ deployments_enabled?: boolean | undefined;
308
+ production_deployments_enabled?: boolean | undefined;
309
+ preview_deployment_setting?: "none" | "all" | "custom" | undefined;
310
+ preview_branch_includes?: string[] | undefined;
311
+ preview_branch_excludes?: string[] | undefined;
312
+ };
313
+ } | undefined;
314
+ env_vars?: any;
315
+ durable_object_namespaces?: any;
316
+ is_skipped?: boolean | undefined;
317
+ files?: {
318
+ [x: string]: string | undefined;
319
+ } | undefined;
320
+ }>;
210
321
 
211
322
  /**
212
323
  * Deprecated upload configuration.
@@ -326,7 +437,7 @@ declare namespace Dispatcher {
326
437
  path: string;
327
438
  method: HttpMethod;
328
439
  /** Default: `null` */
329
- body?: string | Buffer | Uint8Array | Readable | null | FormData;
440
+ body?: string | Buffer | Uint8Array | Readable | null | FormData_2;
330
441
  /** Default: `null` */
331
442
  headers?: IncomingHttpHeaders | string[] | null;
332
443
  /** Query string params to be embedded in the request URL. Default: `null` */
@@ -464,6 +575,15 @@ declare namespace Dispatcher {
464
575
  }
465
576
  }
466
577
 
578
+ declare interface DispatchNamespaceOutbound {
579
+ /** Name of the service handling the outbound requests */
580
+ service: string;
581
+ /** (Optional) Name of the environment handling the outbound requests. */
582
+ environment?: string;
583
+ /** (Optional) List of parameter names, for sending context from your dispatch worker to the outbound handler */
584
+ parameters?: string[];
585
+ }
586
+
467
587
  declare type DurableObjectBindings = {
468
588
  /** The name of the binding used to refer to the Durable Object */
469
589
  name: string;
@@ -533,8 +653,18 @@ declare interface EnvironmentInheritable {
533
653
  */
534
654
  main: string | undefined;
535
655
  /**
536
- * The directory in which module rules should be evaluated in a `--no-bundle` worker
537
- * This defaults to dirname(main) when left undefined
656
+ * If true then Wrangler will traverse the file tree below `base_dir`;
657
+ * Any files that match `rules` will be included in the deployed worker.
658
+ * Defaults to true if `no_bundle` is true, otherwise false.
659
+ *
660
+ * @inheritable
661
+ */
662
+ find_additional_modules: boolean | undefined;
663
+ /**
664
+ * The directory in which module rules should be evaluated when including additional files into a worker deployment.
665
+ * This defaults to the directory containing the `main` entry point of the worker if not specified.
666
+ *
667
+ * @inheritable
538
668
  */
539
669
  base_dir: string | undefined;
540
670
  /**
@@ -608,6 +738,13 @@ declare interface EnvironmentInheritable {
608
738
  * @inheritable
609
739
  */
610
740
  usage_model: "bundled" | "unbound" | undefined;
741
+ /**
742
+ * Specify limits for runtime behavior.
743
+ * Only supported for the "standard" Usage Model
744
+ *
745
+ * @inheritable
746
+ */
747
+ limits: UserLimits | undefined;
611
748
  /**
612
749
  * An ordered list of rules that define which modules to import,
613
750
  * and what type to import them as. You will need to specify rules
@@ -639,7 +776,7 @@ declare interface EnvironmentInheritable {
639
776
  upload?: DeprecatedUpload;
640
777
  };
641
778
  /**
642
- * Skip internal build steps and directly publish script
779
+ * Skip internal build steps and directly deploy script
643
780
  * @inheritable
644
781
  */
645
782
  no_bundle: boolean | undefined;
@@ -667,6 +804,8 @@ declare interface EnvironmentInheritable {
667
804
  binding: string;
668
805
  /** The namespace to bind to. */
669
806
  namespace: string;
807
+ /** Details about the outbound worker which will handle outbound requests from your namespace */
808
+ outbound?: DispatchNamespaceOutbound;
670
809
  }[];
671
810
  /**
672
811
  * Designates this worker as an internal-only "first-party" worker.
@@ -680,15 +819,12 @@ declare interface EnvironmentInheritable {
680
819
  */
681
820
  zone_id?: string;
682
821
  /**
683
- * Specify a compiled capnp schema to use
684
- * Then add a binding per field in the top level message that you will send to logfwdr
822
+ * List of bindings that you will send to logfwdr
685
823
  *
686
- * @default `{schema:undefined,bindings:[]}`
824
+ * @default `{bindings:[]}`
687
825
  * @inheritable
688
826
  */
689
827
  logfwdr: {
690
- /** capnp schema filename */
691
- schema: string | undefined;
692
828
  bindings: {
693
829
  /** The binding name used to refer to logfwdr */
694
830
  name: string;
@@ -744,9 +880,7 @@ declare interface EnvironmentNonInheritable {
744
880
  * @default `{}`
745
881
  * @nonInheritable
746
882
  */
747
- vars: {
748
- [key: string]: unknown;
749
- };
883
+ vars: Record<string, string | Json>;
750
884
  /**
751
885
  * A list of durable objects that your worker should be bound to.
752
886
  *
@@ -849,6 +983,8 @@ declare interface EnvironmentNonInheritable {
849
983
  bucket_name: string;
850
984
  /** The preview name of this R2 bucket at the edge. */
851
985
  preview_bucket_name?: string;
986
+ /** The jurisdiction that the bucket exists in. Default if not present. */
987
+ jurisdiction?: string;
852
988
  }[];
853
989
  /**
854
990
  * Specifies D1 databases that are bound to this Worker environment.
@@ -875,6 +1011,21 @@ declare interface EnvironmentNonInheritable {
875
1011
  /** Internal use only. */
876
1012
  database_internal_env?: string;
877
1013
  }[];
1014
+ /**
1015
+ * Specifies Vectorize indexes that are bound to this Worker environment.
1016
+ *
1017
+ * NOTE: This field is not automatically inherited from the top level environment,
1018
+ * and so must be specified in every named environment.
1019
+ *
1020
+ * @default `[]`
1021
+ * @nonInheritable
1022
+ */
1023
+ vectorize: {
1024
+ /** The binding name used to refer to the Vectorize index in the worker. */
1025
+ binding: string;
1026
+ /** The name of the index. */
1027
+ index_name: string;
1028
+ }[];
878
1029
  /**
879
1030
  * Specifies Constellation projects that are bound to this Worker environment.
880
1031
  *
@@ -890,6 +1041,23 @@ declare interface EnvironmentNonInheritable {
890
1041
  /** The id of the project. */
891
1042
  project_id: string;
892
1043
  }[];
1044
+ /**
1045
+ * Specifies Hyperdrive configs that are bound to this Worker environment.
1046
+ *
1047
+ * NOTE: This field is not automatically inherited from the top level environment,
1048
+ * and so must be specified in every named environment.
1049
+ *
1050
+ * @default `[]`
1051
+ * @nonInheritable
1052
+ */
1053
+ hyperdrive: {
1054
+ /** The binding name used to refer to the project in the worker. */
1055
+ binding: string;
1056
+ /** The id of the database. */
1057
+ id: string;
1058
+ /** The local database connection string for `wrangler dev` */
1059
+ localConnectionString?: string;
1060
+ }[];
893
1061
  /**
894
1062
  * Specifies service bindings (worker-to-worker) that are bound to this Worker environment.
895
1063
  *
@@ -928,6 +1096,12 @@ declare interface EnvironmentNonInheritable {
928
1096
  browser: {
929
1097
  binding: string;
930
1098
  } | undefined;
1099
+ /**
1100
+ * Binding to the AI project.
1101
+ */
1102
+ ai: {
1103
+ binding: string;
1104
+ } | undefined;
931
1105
  /**
932
1106
  * "Unsafe" tables for features that aren't directly supported by wrangler.
933
1107
  *
@@ -954,6 +1128,18 @@ declare interface EnvironmentNonInheritable {
954
1128
  metadata?: {
955
1129
  [key: string]: string;
956
1130
  };
1131
+ /**
1132
+ * Used for internal capnp uploads for the Workers runtime
1133
+ */
1134
+ capnp?: {
1135
+ base_path: string;
1136
+ source_schemas: string[];
1137
+ compiled_schema?: never;
1138
+ } | {
1139
+ base_path?: never;
1140
+ source_schemas?: never;
1141
+ compiled_schema: string;
1142
+ };
957
1143
  };
958
1144
  mtls_certificates: {
959
1145
  /** The binding name used to refer to the certificate in the worker */
@@ -961,6 +1147,7 @@ declare interface EnvironmentNonInheritable {
961
1147
  /** The uuid of the uploaded mTLS certificate */
962
1148
  certificate_id: string;
963
1149
  }[];
1150
+ tail_consumers?: TailConsumer[];
964
1151
  }
965
1152
 
966
1153
  declare namespace Errors {
@@ -1078,7 +1265,7 @@ declare namespace Errors {
1078
1265
  }
1079
1266
  }
1080
1267
 
1081
- declare class File extends Blob_2 {
1268
+ declare class File_2 extends Blob_2 {
1082
1269
  /**
1083
1270
  * Creates a new File instance.
1084
1271
  *
@@ -1111,7 +1298,7 @@ declare interface FilePropertyBag extends BlobPropertyBag {
1111
1298
  /**
1112
1299
  * Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using fetch().
1113
1300
  */
1114
- declare class FormData {
1301
+ declare class FormData_2 {
1115
1302
  /**
1116
1303
  * Appends a new value onto an existing key inside a FormData object,
1117
1304
  * or adds the key if it does not already exist.
@@ -1176,7 +1363,7 @@ declare class FormData {
1176
1363
  * Executes given callback function for each field of the FormData instance
1177
1364
  */
1178
1365
  forEach: (
1179
- callbackfn: (value: FormDataEntryValue, key: string, iterable: FormData) => void,
1366
+ callbackfn: (value: FormDataEntryValue, key: string, iterable: FormData_2) => void,
1180
1367
  thisArg?: unknown
1181
1368
  ) => void
1182
1369
 
@@ -1209,20 +1396,10 @@ declare class FormData {
1209
1396
  /**
1210
1397
  * A `string` or `File` that represents a single value from a set of `FormData` key-value pairs.
1211
1398
  */
1212
- declare type FormDataEntryValue = string | File
1399
+ declare type FormDataEntryValue = string | File_2
1213
1400
 
1214
- /**
1215
- * fetches an mTLS certificate from the account mTLS certificate store by ID
1216
- */
1217
- export declare function getMTlsCertificate(accountId: string, id: string): Promise<MTlsCertificateResponse>;
1218
-
1219
- /**
1220
- * fetches an mTLS certificate from the account mTLS certificate store by name. will throw an error if no certificates are found, or multiple are found with that name
1221
- */
1222
- export declare function getMTlsCertificateByName(accountId: string, name: string): Promise<MTlsCertificateResponse>;
1223
-
1224
- declare class Headers implements SpecIterable<[string, string]> {
1225
- constructor (init?: HeadersInit)
1401
+ declare class Headers_2 implements SpecIterable<[string, string]> {
1402
+ constructor (init?: HeadersInit_2)
1226
1403
  readonly append: (name: string, value: string) => void
1227
1404
  readonly delete: (name: string) => void
1228
1405
  readonly get: (name: string) => string | null
@@ -1230,7 +1407,7 @@ declare class Headers implements SpecIterable<[string, string]> {
1230
1407
  readonly set: (name: string, value: string) => void
1231
1408
  readonly getSetCookie: () => string[]
1232
1409
  readonly forEach: (
1233
- callbackfn: (value: string, key: string, iterable: Headers) => void,
1410
+ callbackfn: (value: string, key: string, iterable: Headers_2) => void,
1234
1411
  thisArg?: unknown
1235
1412
  ) => void
1236
1413
 
@@ -1240,61 +1417,16 @@ declare class Headers implements SpecIterable<[string, string]> {
1240
1417
  readonly [Symbol.iterator]: () => SpecIterator<[string, string]>
1241
1418
  }
1242
1419
 
1243
- declare type HeadersInit = string[][] | Record<string, string | ReadonlyArray<string>> | Headers
1420
+ declare type HeadersInit_2 = string[][] | Record<string, string | ReadonlyArray<string>> | Headers_2
1244
1421
 
1245
1422
  /**
1246
1423
  * The header type declaration of `undici`.
1247
1424
  */
1248
1425
  declare type IncomingHttpHeaders = Record<string, string | string[] | undefined>;
1249
1426
 
1250
- /**
1251
- * lists mTLS certificates for an account. filtering by name is supported
1252
- */
1253
- export declare function listMTlsCertificates(accountId: string, filter: MTlsCertificateListFilter): Promise<MTlsCertificateResponse[]>;
1254
-
1255
- /**
1256
- * details for uploading an mTLS certificate via the ssl api
1257
- */
1258
- declare interface MTlsCertificateBody {
1259
- certificateChain: string;
1260
- privateKey: string;
1261
- name?: string;
1262
- }
1263
-
1264
- /**
1265
- * supported filters for listing mTLS certificates via the ssl api
1266
- */
1267
- declare interface MTlsCertificateListFilter {
1268
- name?: string;
1269
- }
1270
-
1271
- /**
1272
- * the representation of an mTLS certificate in the account certificate store
1273
- */
1274
- declare interface MTlsCertificateResponse {
1275
- id: string;
1276
- name?: string;
1277
- ca: boolean;
1278
- certificates: string;
1279
- expires_on: string;
1280
- issuer: string;
1281
- serial_number: string;
1282
- signature: string;
1283
- uploaded_on: string;
1284
- }
1285
-
1286
- /**
1287
- * details for uploading an mTLS certificate from disk
1288
- */
1289
- declare interface MTlsCertificateUploadDetails {
1290
- certificateChainFilename: string;
1291
- privateKeyFilename: string;
1292
- name?: string;
1293
- }
1294
-
1295
- declare interface PagesPublishOptions {
1427
+ declare interface PagesDeployOptions {
1296
1428
  /**
1297
- * Path to static assets to publish to Pages
1429
+ * Path to static assets to deploy to Pages
1298
1430
  */
1299
1431
  directory: string;
1300
1432
  /**
@@ -1340,74 +1472,6 @@ declare interface PagesPublishOptions {
1340
1472
  bundle?: boolean;
1341
1473
  }
1342
1474
 
1343
- /**
1344
- * Publish a directory to an account/project.
1345
- * NOTE: You will need the `CLOUDFLARE_API_KEY` environment
1346
- * variable set
1347
- */
1348
- declare function publish({ directory, accountId, projectName, branch, skipCaching, commitMessage, commitHash, commitDirty, functionsDirectory: customFunctionsDirectory, bundle, }: PagesPublishOptions): Promise<{
1349
- environment: "production" | "preview";
1350
- id: string;
1351
- project_id: string;
1352
- url: string;
1353
- project_name: string;
1354
- build_config: {
1355
- build_command: string;
1356
- destination_dir: string;
1357
- root_dir: string;
1358
- web_analytics_tag?: string | undefined;
1359
- web_analytics_token?: string | undefined;
1360
- fast_builds?: boolean | undefined;
1361
- };
1362
- created_on: string;
1363
- production_branch: string;
1364
- deployment_trigger: {
1365
- type: string;
1366
- metadata: {
1367
- branch: string;
1368
- commit_hash: string;
1369
- commit_message: string;
1370
- };
1371
- };
1372
- latest_stage: {
1373
- name: "build" | "queued" | "initialize" | "clone_repo" | "deploy";
1374
- status: "active" | "canceled" | "success" | "idle" | "failure" | "skipped";
1375
- started_on: string | null;
1376
- ended_on: string | null;
1377
- };
1378
- stages: {
1379
- name: "build" | "queued" | "initialize" | "clone_repo" | "deploy";
1380
- status: "active" | "canceled" | "success" | "idle" | "failure" | "skipped";
1381
- started_on: string | null;
1382
- ended_on: string | null;
1383
- }[];
1384
- aliases: string[];
1385
- modified_on: string;
1386
- short_id: string;
1387
- build_image_major_version: number;
1388
- kv_namespaces?: any;
1389
- source?: {
1390
- type: "github" | "gitlab";
1391
- config: {
1392
- owner: string;
1393
- repo_name: string;
1394
- production_branch?: string | undefined;
1395
- pr_comments_enabled?: boolean | undefined;
1396
- deployments_enabled?: boolean | undefined;
1397
- production_deployments_enabled?: boolean | undefined;
1398
- preview_deployment_setting?: "none" | "all" | "custom" | undefined;
1399
- preview_branch_includes?: string[] | undefined;
1400
- preview_branch_excludes?: string[] | undefined;
1401
- };
1402
- } | undefined;
1403
- env_vars?: any;
1404
- durable_object_namespaces?: any;
1405
- is_skipped?: boolean | undefined;
1406
- files?: {
1407
- [x: string]: string | undefined;
1408
- } | undefined;
1409
- }>;
1410
-
1411
1475
  declare type ReferrerPolicy =
1412
1476
  | ''
1413
1477
  | 'no-referrer'
@@ -1419,13 +1483,13 @@ declare type ReferrerPolicy =
1419
1483
  | 'strict-origin-when-cross-origin'
1420
1484
  | 'unsafe-url';
1421
1485
 
1422
- declare class Request implements BodyMixin {
1423
- constructor (input: RequestInfo, init?: RequestInit)
1486
+ declare class Request_2 implements BodyMixin {
1487
+ constructor (input: RequestInfo_2, init?: RequestInit_2)
1424
1488
 
1425
1489
  readonly cache: RequestCache
1426
1490
  readonly credentials: RequestCredentials
1427
1491
  readonly destination: RequestDestination
1428
- readonly headers: Headers
1492
+ readonly headers: Headers_2
1429
1493
  readonly integrity: string
1430
1494
  readonly method: string
1431
1495
  readonly mode: RequestMode
@@ -1437,16 +1501,16 @@ declare class Request implements BodyMixin {
1437
1501
  readonly signal: AbortSignal
1438
1502
  readonly duplex: RequestDuplex
1439
1503
 
1440
- readonly body: ReadableStream | null
1504
+ readonly body: ReadableStream_2 | null
1441
1505
  readonly bodyUsed: boolean
1442
1506
 
1443
1507
  readonly arrayBuffer: () => Promise<ArrayBuffer>
1444
1508
  readonly blob: () => Promise<Blob_2>
1445
- readonly formData: () => Promise<FormData>
1509
+ readonly formData: () => Promise<FormData_2>
1446
1510
  readonly json: () => Promise<unknown>
1447
1511
  readonly text: () => Promise<string>
1448
1512
 
1449
- readonly clone: () => Request
1513
+ readonly clone: () => Request_2
1450
1514
  }
1451
1515
 
1452
1516
  declare type RequestCache =
@@ -1481,13 +1545,13 @@ declare type RequestDestination =
1481
1545
 
1482
1546
  declare type RequestDuplex = 'half'
1483
1547
 
1484
- declare type RequestInfo = string | URL_2 | Request
1548
+ declare type RequestInfo_2 = string | URL_2 | Request_2
1485
1549
 
1486
- declare interface RequestInit {
1550
+ declare interface RequestInit_2 {
1487
1551
  method?: string
1488
1552
  keepalive?: boolean
1489
- headers?: HeadersInit
1490
- body?: BodyInit
1553
+ headers?: HeadersInit_2
1554
+ body?: BodyInit_2
1491
1555
  redirect?: RequestRedirect
1492
1556
  integrity?: string
1493
1557
  signal?: AbortSignal
@@ -1504,10 +1568,10 @@ declare type RequestMode = 'cors' | 'navigate' | 'no-cors' | 'same-origin'
1504
1568
 
1505
1569
  declare type RequestRedirect = 'error' | 'follow' | 'manual'
1506
1570
 
1507
- declare class Response implements BodyMixin {
1508
- constructor (body?: BodyInit, init?: ResponseInit)
1571
+ declare class Response_2 implements BodyMixin {
1572
+ constructor (body?: BodyInit_2, init?: ResponseInit_2)
1509
1573
 
1510
- readonly headers: Headers
1574
+ readonly headers: Headers_2
1511
1575
  readonly ok: boolean
1512
1576
  readonly status: number
1513
1577
  readonly statusText: string
@@ -1515,26 +1579,26 @@ declare class Response implements BodyMixin {
1515
1579
  readonly url: string
1516
1580
  readonly redirected: boolean
1517
1581
 
1518
- readonly body: ReadableStream | null
1582
+ readonly body: ReadableStream_2 | null
1519
1583
  readonly bodyUsed: boolean
1520
1584
 
1521
1585
  readonly arrayBuffer: () => Promise<ArrayBuffer>
1522
1586
  readonly blob: () => Promise<Blob_2>
1523
- readonly formData: () => Promise<FormData>
1587
+ readonly formData: () => Promise<FormData_2>
1524
1588
  readonly json: () => Promise<unknown>
1525
1589
  readonly text: () => Promise<string>
1526
1590
 
1527
- readonly clone: () => Response
1591
+ readonly clone: () => Response_2
1528
1592
 
1529
- static error (): Response
1530
- static json(data: any, init?: ResponseInit): Response
1531
- static redirect (url: string | URL_2, status: ResponseRedirectStatus): Response
1593
+ static error (): Response_2
1594
+ static json(data: any, init?: ResponseInit_2): Response_2
1595
+ static redirect (url: string | URL_2, status: ResponseRedirectStatus): Response_2
1532
1596
  }
1533
1597
 
1534
- declare interface ResponseInit {
1598
+ declare interface ResponseInit_2 {
1535
1599
  readonly status?: number
1536
1600
  readonly statusText?: string
1537
- readonly headers?: HeadersInit
1601
+ readonly headers?: HeadersInit_2
1538
1602
  }
1539
1603
 
1540
1604
  declare type ResponseRedirectStatus = 301 | 302 | 303 | 307 | 308
@@ -1572,13 +1636,20 @@ declare interface SpecIterator<T, TReturn = any, TNext = undefined> {
1572
1636
  next(...args: [] | [TNext]): IteratorResult<T, TReturn>;
1573
1637
  }
1574
1638
 
1639
+ declare type TailConsumer = {
1640
+ /** The name of the service tail events will be forwarded to. */
1641
+ service: string;
1642
+ /** (Optional) The environt of the service. */
1643
+ environment?: string;
1644
+ };
1645
+
1575
1646
  /**
1576
1647
  * unstable_dev starts a wrangler dev server, and returns a promise that resolves with utility functions to interact with it.
1577
1648
  */
1578
1649
  export declare function unstable_dev(script: string, options?: UnstableDevOptions, apiOptions?: unknown): Promise<UnstableDevWorker>;
1579
1650
 
1580
1651
  export declare const unstable_pages: {
1581
- publish: typeof publish;
1652
+ deploy: typeof deploy;
1582
1653
  };
1583
1654
 
1584
1655
  export declare interface UnstableDevOptions {
@@ -1598,9 +1669,7 @@ export declare interface UnstableDevOptions {
1598
1669
  compatibilityFlags?: string[];
1599
1670
  persist?: boolean;
1600
1671
  persistTo?: string;
1601
- vars?: {
1602
- [key: string]: unknown;
1603
- };
1672
+ vars?: Record<string, string | Json>;
1604
1673
  kv?: {
1605
1674
  binding: string;
1606
1675
  id: string;
@@ -1612,25 +1681,30 @@ export declare interface UnstableDevOptions {
1612
1681
  script_name?: string | undefined;
1613
1682
  environment?: string | undefined;
1614
1683
  }[];
1684
+ services?: {
1685
+ binding: string;
1686
+ service: string;
1687
+ environment?: string | undefined;
1688
+ }[];
1615
1689
  r2?: {
1616
1690
  binding: string;
1617
1691
  bucket_name: string;
1618
1692
  preview_bucket_name?: string;
1619
1693
  }[];
1620
- processEntrypoint?: boolean;
1621
1694
  moduleRoot?: string;
1622
1695
  rules?: Rule[];
1623
1696
  logLevel?: "none" | "info" | "error" | "log" | "warn" | "debug";
1624
1697
  inspect?: boolean;
1625
1698
  local?: boolean;
1626
1699
  accountId?: string;
1700
+ updateCheck?: boolean;
1627
1701
  experimental?: {
1702
+ processEntrypoint?: boolean;
1703
+ additionalModules?: CfModule[];
1628
1704
  d1Databases?: Environment["d1_databases"];
1629
1705
  disableExperimentalWarning?: boolean;
1630
1706
  disableDevRegistry?: boolean;
1631
1707
  enablePagesAssetsServiceBinding?: EnablePagesAssetsServiceBindingOptions;
1632
- experimentalLocal?: boolean;
1633
- experimentalLocalRemoteKv?: boolean;
1634
1708
  forceLocal?: boolean;
1635
1709
  liveReload?: boolean;
1636
1710
  showInteractiveDevSession?: boolean;
@@ -1644,19 +1718,14 @@ export declare interface UnstableDevWorker {
1644
1718
  port: number;
1645
1719
  address: string;
1646
1720
  stop: () => Promise<void>;
1647
- fetch: (input?: RequestInfo, init?: RequestInit) => Promise<Response>;
1721
+ fetch: (input?: RequestInfo_2, init?: RequestInit_2) => Promise<Response_2>;
1648
1722
  waitUntilExit: () => Promise<void>;
1649
1723
  }
1650
1724
 
1651
- /**
1652
- * uploads an mTLS certificate and private key pair to the account mTLS certificate store
1653
- */
1654
- export declare function uploadMTlsCertificate(accountId: string, body: MTlsCertificateBody): Promise<MTlsCertificateResponse>;
1655
-
1656
- /**
1657
- * reads an mTLS certificate and private key pair from disk and uploads it to the account mTLS certificate store
1658
- */
1659
- export declare function uploadMTlsCertificateFromFs(accountId: string, details: MTlsCertificateUploadDetails): Promise<MTlsCertificateResponse>;
1725
+ declare interface UserLimits {
1726
+ /** Maximum allowed CPU time for a worker's invocation in milliseconds */
1727
+ cpu_ms: number;
1728
+ }
1660
1729
 
1661
1730
  declare type ZoneIdRoute = {
1662
1731
  pattern: string;