miniflare 0.0.0-e4fe35cc5 → 0.0.0-e51304ca0

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 (37) hide show
  1. package/README.md +41 -0
  2. package/dist/src/index.d.ts +1192 -390
  3. package/dist/src/index.js +10364 -5040
  4. package/dist/src/index.js.map +3 -3
  5. package/dist/src/workers/assets/assets-kv.worker.js +6 -2
  6. package/dist/src/workers/assets/assets-kv.worker.js.map +1 -1
  7. package/dist/src/workers/assets/assets.worker.js +4627 -5036
  8. package/dist/src/workers/assets/assets.worker.js.map +3 -3
  9. package/dist/src/workers/assets/router.worker.js +5143 -5914
  10. package/dist/src/workers/assets/router.worker.js.map +3 -3
  11. package/dist/src/workers/assets/rpc-proxy.worker.js +11 -0
  12. package/dist/src/workers/assets/rpc-proxy.worker.js.map +6 -0
  13. package/dist/src/workers/cache/cache-entry.worker.js.map +1 -1
  14. package/dist/src/workers/cache/cache.worker.js +18 -29
  15. package/dist/src/workers/cache/cache.worker.js.map +2 -2
  16. package/dist/src/workers/core/entry.worker.js +46 -72
  17. package/dist/src/workers/core/entry.worker.js.map +1 -1
  18. package/dist/src/workers/d1/database.worker.js +3 -5
  19. package/dist/src/workers/d1/database.worker.js.map +1 -1
  20. package/dist/src/workers/kv/namespace.worker.js +2 -4
  21. package/dist/src/workers/kv/namespace.worker.js.map +1 -1
  22. package/dist/src/workers/kv/sites.worker.js +3 -6
  23. package/dist/src/workers/kv/sites.worker.js.map +1 -1
  24. package/dist/src/workers/pipelines/pipeline.worker.js +11 -0
  25. package/dist/src/workers/pipelines/pipeline.worker.js.map +6 -0
  26. package/dist/src/workers/queues/broker.worker.js +17 -20
  27. package/dist/src/workers/queues/broker.worker.js.map +1 -1
  28. package/dist/src/workers/r2/bucket.worker.js +23 -46
  29. package/dist/src/workers/r2/bucket.worker.js.map +1 -1
  30. package/dist/src/workers/ratelimit/ratelimit.worker.js.map +1 -1
  31. package/dist/src/workers/shared/index.worker.js +28 -51
  32. package/dist/src/workers/shared/index.worker.js.map +1 -1
  33. package/dist/src/workers/shared/zod.worker.js +80 -84
  34. package/dist/src/workers/shared/zod.worker.js.map +1 -1
  35. package/dist/src/workers/workflows/binding.worker.js +1946 -0
  36. package/dist/src/workers/workflows/binding.worker.js.map +6 -0
  37. package/package.json +24 -24
@@ -1,5 +1,6 @@
1
1
  import { Abortable } from 'events';
2
2
  import type { AbortSignal as AbortSignal_2 } from '@cloudflare/workers-types/experimental';
3
+ import { Awaitable as Awaitable_2 } from '..';
3
4
  import type { Blob as Blob_2 } from '@cloudflare/workers-types/experimental';
4
5
  import { Blob as Blob_3 } from 'buffer';
5
6
  import { BodyInit } from 'undici';
@@ -7,40 +8,54 @@ import type { CacheStorage } from '@cloudflare/workers-types/experimental';
7
8
  import { cspotcodeSourceMapSupport } from '@cspotcode/source-map-support';
8
9
  import type { D1Database } from '@cloudflare/workers-types/experimental';
9
10
  import type { DurableObjectNamespace } from '@cloudflare/workers-types/experimental';
11
+ import { ExternalServer as ExternalServer_2 } from '../..';
12
+ import { ExternalServer as ExternalServer_3 } from '..';
10
13
  import type { Fetcher } from '@cloudflare/workers-types/experimental';
11
14
  import { File } from 'undici';
12
15
  import type { File as File_2 } from '@cloudflare/workers-types/experimental';
13
- import { FormData } from 'undici';
14
- import { Headers } from 'undici';
15
- import type { Headers as Headers_2 } from '@cloudflare/workers-types/experimental';
16
+ import { FormData as FormData_2 } from 'undici';
17
+ import { Headers as Headers_2 } from 'undici';
18
+ import type { Headers as Headers_3 } from '@cloudflare/workers-types/experimental';
16
19
  import { HeadersInit } from 'undici';
17
20
  import http from 'http';
18
21
  import { IncomingRequestCfProperties } from '@cloudflare/workers-types/experimental';
22
+ import { Json as Json_2 } from '..';
23
+ import { kCurrentWorker as kCurrentWorker_2 } from '..';
24
+ import { kUnsafeEphemeralUniqueKey as kUnsafeEphemeralUniqueKey_2 } from './shared';
19
25
  import type { KVNamespace } from '@cloudflare/workers-types/experimental';
26
+ import { Log as Log_2 } from '..';
27
+ import { Miniflare as Miniflare_2 } from '../..';
28
+ import { Miniflare as Miniflare_3 } from '..';
20
29
  import { MockAgent } from 'undici';
21
30
  import NodeWebSocket from 'ws';
22
31
  import { ParseParams } from 'zod';
32
+ import { PeriodType as PeriodType_2 } from './ratelimit';
33
+ import { Plugin as Plugin_2 } from './shared';
23
34
  import type { Queue } from '@cloudflare/workers-types/experimental';
24
35
  import type { R2Bucket } from '@cloudflare/workers-types/experimental';
25
36
  import { Readable } from 'stream';
26
- import type { ReadableStream } from '@cloudflare/workers-types/experimental';
27
- import { ReadableStream as ReadableStream_2 } from 'stream/web';
37
+ import type { ReadableStream as ReadableStream_2 } from '@cloudflare/workers-types/experimental';
38
+ import { ReadableStream as ReadableStream_3 } from 'stream/web';
28
39
  import { ReferrerPolicy } from 'undici';
29
- import { Request as Request_2 } from 'undici';
30
- import type { Request as Request_3 } from '@cloudflare/workers-types/experimental';
40
+ import { Request as Request_3 } from '../..';
41
+ import { Request as Request_4 } from 'undici';
42
+ import type { Request as Request_5 } from '@cloudflare/workers-types/experimental';
43
+ import { Request as Request_6 } from '..';
31
44
  import { RequestCache } from 'undici';
32
45
  import { RequestCredentials } from 'undici';
33
46
  import { RequestDestination } from 'undici';
34
47
  import { RequestDuplex } from 'undici';
35
48
  import { RequestInfo as RequestInfo_2 } from 'undici';
36
- import { RequestInit as RequestInit_2 } from 'undici';
37
- import type { RequestInit as RequestInit_3 } from '@cloudflare/workers-types/experimental';
49
+ import { RequestInit as RequestInit_3 } from 'undici';
50
+ import type { RequestInit as RequestInit_4 } from '@cloudflare/workers-types/experimental';
38
51
  import type { RequestInitCfProperties } from '@cloudflare/workers-types/experimental';
39
52
  import { RequestMode } from 'undici';
40
53
  import { RequestRedirect } from 'undici';
41
- import { Response as Response_2 } from 'undici';
42
- import type { Response as Response_3 } from '@cloudflare/workers-types/experimental';
43
- import { ResponseInit as ResponseInit_2 } from 'undici';
54
+ import { Response as Response_3 } from '../..';
55
+ import { Response as Response_4 } from 'undici';
56
+ import type { Response as Response_5 } from '@cloudflare/workers-types/experimental';
57
+ import { Response as Response_6 } from '..';
58
+ import { ResponseInit as ResponseInit_3 } from 'undici';
44
59
  import { ResponseRedirectStatus } from 'undici';
45
60
  import { ResponseType } from 'undici';
46
61
  import type { ServiceWorkerGlobalScope } from '@cloudflare/workers-types/experimental';
@@ -58,78 +73,321 @@ export declare class __MiniflareFunctionWrapper {
58
73
 
59
74
  export declare type AnyHeaders = http.IncomingHttpHeaders | string[];
60
75
 
76
+ export declare type AssetReverseMap = {
77
+ [pathHash: string]: {
78
+ filePath: string;
79
+ contentType: string | null;
80
+ };
81
+ };
82
+
61
83
  export declare const ASSETS_PLUGIN: Plugin<typeof AssetsOptionsSchema>;
62
84
 
63
85
  export declare const AssetsOptionsSchema: z.ZodObject<{
64
86
  assets: z.ZodOptional<z.ZodObject<{
65
87
  workerName: z.ZodOptional<z.ZodString>;
66
- path: z.ZodEffects<z.ZodString, string, string>;
67
- bindingName: z.ZodOptional<z.ZodString>;
68
- routingConfig: z.ZodObject<{
88
+ directory: z.ZodEffects<z.ZodString, string, string>;
89
+ binding: z.ZodOptional<z.ZodString>;
90
+ routerConfig: z.ZodOptional<z.ZodObject<{
91
+ account_id: z.ZodOptional<z.ZodNumber>;
92
+ script_id: z.ZodOptional<z.ZodNumber>;
93
+ invoke_user_worker_ahead_of_assets: z.ZodOptional<z.ZodBoolean>;
69
94
  has_user_worker: z.ZodOptional<z.ZodBoolean>;
70
95
  }, "strip", z.ZodTypeAny, {
96
+ account_id?: number;
97
+ script_id?: number;
98
+ invoke_user_worker_ahead_of_assets?: boolean;
71
99
  has_user_worker?: boolean;
72
100
  }, {
101
+ account_id?: number;
102
+ script_id?: number;
103
+ invoke_user_worker_ahead_of_assets?: boolean;
73
104
  has_user_worker?: boolean;
74
- }>;
75
- assetConfig: z.ZodObject<{
105
+ }>>;
106
+ assetConfig: z.ZodOptional<z.ZodObject<{
107
+ account_id: z.ZodOptional<z.ZodNumber>;
108
+ script_id: z.ZodOptional<z.ZodNumber>;
109
+ compatibility_date: z.ZodOptional<z.ZodString>;
110
+ compatibility_flags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
76
111
  html_handling: z.ZodOptional<z.ZodEnum<["auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none"]>>;
77
112
  not_found_handling: z.ZodOptional<z.ZodEnum<["single-page-application", "404-page", "none"]>>;
113
+ redirects: z.ZodOptional<z.ZodObject<{
114
+ version: z.ZodLiteral<1>;
115
+ staticRules: z.ZodRecord<z.ZodString, z.ZodObject<{
116
+ status: z.ZodNumber;
117
+ to: z.ZodString;
118
+ lineNumber: z.ZodNumber;
119
+ }, "strip", z.ZodTypeAny, {
120
+ status?: number;
121
+ to?: string;
122
+ lineNumber?: number;
123
+ }, {
124
+ status?: number;
125
+ to?: string;
126
+ lineNumber?: number;
127
+ }>>;
128
+ rules: z.ZodRecord<z.ZodString, z.ZodObject<{
129
+ status: z.ZodNumber;
130
+ to: z.ZodString;
131
+ }, "strip", z.ZodTypeAny, {
132
+ status?: number;
133
+ to?: string;
134
+ }, {
135
+ status?: number;
136
+ to?: string;
137
+ }>>;
138
+ }, "strip", z.ZodTypeAny, {
139
+ version?: 1;
140
+ staticRules?: Record<string, {
141
+ status?: number;
142
+ to?: string;
143
+ lineNumber?: number;
144
+ }>;
145
+ rules?: Record<string, {
146
+ status?: number;
147
+ to?: string;
148
+ }>;
149
+ }, {
150
+ version?: 1;
151
+ staticRules?: Record<string, {
152
+ status?: number;
153
+ to?: string;
154
+ lineNumber?: number;
155
+ }>;
156
+ rules?: Record<string, {
157
+ status?: number;
158
+ to?: string;
159
+ }>;
160
+ }>>;
161
+ headers: z.ZodOptional<z.ZodObject<{
162
+ version: z.ZodLiteral<2>;
163
+ rules: z.ZodRecord<z.ZodString, z.ZodObject<{
164
+ set: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
165
+ unset: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
166
+ }, "strip", z.ZodTypeAny, {
167
+ set?: Record<string, string>;
168
+ unset?: string[];
169
+ }, {
170
+ set?: Record<string, string>;
171
+ unset?: string[];
172
+ }>>;
173
+ }, "strip", z.ZodTypeAny, {
174
+ version?: 2;
175
+ rules?: Record<string, {
176
+ set?: Record<string, string>;
177
+ unset?: string[];
178
+ }>;
179
+ }, {
180
+ version?: 2;
181
+ rules?: Record<string, {
182
+ set?: Record<string, string>;
183
+ unset?: string[];
184
+ }>;
185
+ }>>;
78
186
  }, "strip", z.ZodTypeAny, {
187
+ account_id?: number;
188
+ script_id?: number;
189
+ compatibility_date?: string;
190
+ compatibility_flags?: string[];
79
191
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
80
192
  not_found_handling?: "none" | "single-page-application" | "404-page";
193
+ redirects?: {
194
+ version?: 1;
195
+ staticRules?: Record<string, {
196
+ status?: number;
197
+ to?: string;
198
+ lineNumber?: number;
199
+ }>;
200
+ rules?: Record<string, {
201
+ status?: number;
202
+ to?: string;
203
+ }>;
204
+ };
205
+ headers?: {
206
+ version?: 2;
207
+ rules?: Record<string, {
208
+ set?: Record<string, string>;
209
+ unset?: string[];
210
+ }>;
211
+ };
81
212
  }, {
213
+ account_id?: number;
214
+ script_id?: number;
215
+ compatibility_date?: string;
216
+ compatibility_flags?: string[];
82
217
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
83
218
  not_found_handling?: "none" | "single-page-application" | "404-page";
84
- }>;
219
+ redirects?: {
220
+ version?: 1;
221
+ staticRules?: Record<string, {
222
+ status?: number;
223
+ to?: string;
224
+ lineNumber?: number;
225
+ }>;
226
+ rules?: Record<string, {
227
+ status?: number;
228
+ to?: string;
229
+ }>;
230
+ };
231
+ headers?: {
232
+ version?: 2;
233
+ rules?: Record<string, {
234
+ set?: Record<string, string>;
235
+ unset?: string[];
236
+ }>;
237
+ };
238
+ }>>;
85
239
  }, "strip", z.ZodTypeAny, {
86
- path: string;
87
- routingConfig: {
240
+ directory: string;
241
+ workerName?: string | undefined;
242
+ binding?: string | undefined;
243
+ routerConfig?: {
244
+ account_id?: number;
245
+ script_id?: number;
246
+ invoke_user_worker_ahead_of_assets?: boolean;
88
247
  has_user_worker?: boolean;
89
- };
90
- assetConfig: {
248
+ } | undefined;
249
+ assetConfig?: {
250
+ account_id?: number;
251
+ script_id?: number;
252
+ compatibility_date?: string;
253
+ compatibility_flags?: string[];
91
254
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
92
255
  not_found_handling?: "none" | "single-page-application" | "404-page";
93
- };
94
- workerName?: string | undefined;
95
- bindingName?: string | undefined;
256
+ redirects?: {
257
+ version?: 1;
258
+ staticRules?: Record<string, {
259
+ status?: number;
260
+ to?: string;
261
+ lineNumber?: number;
262
+ }>;
263
+ rules?: Record<string, {
264
+ status?: number;
265
+ to?: string;
266
+ }>;
267
+ };
268
+ headers?: {
269
+ version?: 2;
270
+ rules?: Record<string, {
271
+ set?: Record<string, string>;
272
+ unset?: string[];
273
+ }>;
274
+ };
275
+ } | undefined;
96
276
  }, {
97
- path: string;
98
- routingConfig: {
277
+ directory: string;
278
+ workerName?: string | undefined;
279
+ binding?: string | undefined;
280
+ routerConfig?: {
281
+ account_id?: number;
282
+ script_id?: number;
283
+ invoke_user_worker_ahead_of_assets?: boolean;
99
284
  has_user_worker?: boolean;
100
- };
101
- assetConfig: {
285
+ } | undefined;
286
+ assetConfig?: {
287
+ account_id?: number;
288
+ script_id?: number;
289
+ compatibility_date?: string;
290
+ compatibility_flags?: string[];
102
291
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
103
292
  not_found_handling?: "none" | "single-page-application" | "404-page";
104
- };
105
- workerName?: string | undefined;
106
- bindingName?: string | undefined;
293
+ redirects?: {
294
+ version?: 1;
295
+ staticRules?: Record<string, {
296
+ status?: number;
297
+ to?: string;
298
+ lineNumber?: number;
299
+ }>;
300
+ rules?: Record<string, {
301
+ status?: number;
302
+ to?: string;
303
+ }>;
304
+ };
305
+ headers?: {
306
+ version?: 2;
307
+ rules?: Record<string, {
308
+ set?: Record<string, string>;
309
+ unset?: string[];
310
+ }>;
311
+ };
312
+ } | undefined;
107
313
  }>>;
108
314
  }, "strip", z.ZodTypeAny, {
109
315
  assets?: {
110
- path: string;
111
- routingConfig: {
316
+ directory: string;
317
+ workerName?: string | undefined;
318
+ binding?: string | undefined;
319
+ routerConfig?: {
320
+ account_id?: number;
321
+ script_id?: number;
322
+ invoke_user_worker_ahead_of_assets?: boolean;
112
323
  has_user_worker?: boolean;
113
- };
114
- assetConfig: {
324
+ } | undefined;
325
+ assetConfig?: {
326
+ account_id?: number;
327
+ script_id?: number;
328
+ compatibility_date?: string;
329
+ compatibility_flags?: string[];
115
330
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
116
331
  not_found_handling?: "none" | "single-page-application" | "404-page";
117
- };
118
- workerName?: string | undefined;
119
- bindingName?: string | undefined;
332
+ redirects?: {
333
+ version?: 1;
334
+ staticRules?: Record<string, {
335
+ status?: number;
336
+ to?: string;
337
+ lineNumber?: number;
338
+ }>;
339
+ rules?: Record<string, {
340
+ status?: number;
341
+ to?: string;
342
+ }>;
343
+ };
344
+ headers?: {
345
+ version?: 2;
346
+ rules?: Record<string, {
347
+ set?: Record<string, string>;
348
+ unset?: string[];
349
+ }>;
350
+ };
351
+ } | undefined;
120
352
  } | undefined;
121
353
  }, {
122
354
  assets?: {
123
- path: string;
124
- routingConfig: {
355
+ directory: string;
356
+ workerName?: string | undefined;
357
+ binding?: string | undefined;
358
+ routerConfig?: {
359
+ account_id?: number;
360
+ script_id?: number;
361
+ invoke_user_worker_ahead_of_assets?: boolean;
125
362
  has_user_worker?: boolean;
126
- };
127
- assetConfig: {
363
+ } | undefined;
364
+ assetConfig?: {
365
+ account_id?: number;
366
+ script_id?: number;
367
+ compatibility_date?: string;
368
+ compatibility_flags?: string[];
128
369
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
129
370
  not_found_handling?: "none" | "single-page-application" | "404-page";
130
- };
131
- workerName?: string | undefined;
132
- bindingName?: string | undefined;
371
+ redirects?: {
372
+ version?: 1;
373
+ staticRules?: Record<string, {
374
+ status?: number;
375
+ to?: string;
376
+ lineNumber?: number;
377
+ }>;
378
+ rules?: Record<string, {
379
+ status?: number;
380
+ to?: string;
381
+ }>;
382
+ };
383
+ headers?: {
384
+ version?: 2;
385
+ rules?: Record<string, {
386
+ set?: Record<string, string>;
387
+ unset?: string[];
388
+ }>;
389
+ };
390
+ } | undefined;
133
391
  } | undefined;
134
392
  }>;
135
393
 
@@ -141,7 +399,19 @@ export declare function base64Encode(value: string): string;
141
399
 
142
400
  export { BodyInit }
143
401
 
144
- export declare const buildAssetsManifest: (dir: string) => Promise<Uint8Array>;
402
+ /**
403
+ * The Asset Manifest and Asset Reverse Map are used to map a request path to an asset.
404
+ * 1. Hash path of request
405
+ * 2. Use this path hash to find the manifest entry
406
+ * 3. Get content hash from manifest entry
407
+ * 4a. In prod, use content hash to get asset from KV
408
+ * 4b. In dev, we fake out the KV store and use the file system instead.
409
+ * Use content hash to get file path from asset reverse map.
410
+ */
411
+ export declare const buildAssetManifest: (dir: string) => Promise<{
412
+ encodedAssetManifest: Uint8Array<ArrayBuffer>;
413
+ assetsReverseMap: AssetReverseMap;
414
+ }>;
145
415
 
146
416
  export declare const CACHE_PLUGIN: Plugin<typeof CacheOptionsSchema, typeof CacheSharedOptionsSchema>;
147
417
 
@@ -247,29 +517,29 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
247
517
  modules: z.ZodArray<z.ZodObject<{
248
518
  type: z.ZodEnum<["ESModule", "CommonJS", "NodeJsCompatModule", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
249
519
  path: z.ZodEffects<z.ZodString, string, string>;
250
- contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>>;
520
+ contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>;
251
521
  }, "strip", z.ZodTypeAny, {
252
522
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
253
523
  path: string;
254
- contents?: string | Uint8Array | undefined;
524
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
255
525
  }, {
256
526
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
257
527
  path: string;
258
- contents?: string | Uint8Array | undefined;
528
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
259
529
  }>, "many">;
260
530
  modulesRoot: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
261
531
  }, "strip", z.ZodTypeAny, {
262
532
  modules: {
263
533
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
264
534
  path: string;
265
- contents?: string | Uint8Array | undefined;
535
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
266
536
  }[];
267
537
  modulesRoot?: string | undefined;
268
538
  }, {
269
539
  modules: {
270
540
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
271
541
  path: string;
272
- contents?: string | Uint8Array | undefined;
542
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
273
543
  }[];
274
544
  modulesRoot?: string | undefined;
275
545
  }>, z.ZodObject<{
@@ -352,9 +622,9 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
352
622
  compatibilityFlags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
353
623
  routes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
354
624
  bindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<Json, z.ZodTypeDef, Json>>>;
355
- wasmBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>>>;
625
+ wasmBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>>;
356
626
  textBlobBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, string, string>>>;
357
- dataBlobBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>>>;
627
+ dataBlobBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>>;
358
628
  serviceBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodLiteral<typeof kCurrentWorker>, z.ZodObject<{
359
629
  name: z.ZodUnion<[z.ZodString, z.ZodLiteral<typeof kCurrentWorker>]>;
360
630
  entrypoint: z.ZodOptional<z.ZodString>;
@@ -382,7 +652,14 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
382
652
  requireClientCerts: z.ZodOptional<z.ZodBoolean>;
383
653
  trustBrowserCas: z.ZodOptional<z.ZodBoolean>;
384
654
  trustedCertificates: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
385
- minVersion: z.ZodOptional<z.ZodNativeEnum<TlsOptions_Version>>;
655
+ minVersion: z.ZodOptional<z.ZodNativeEnum<{
656
+ readonly GOOD_DEFAULT: 0;
657
+ readonly SSL3: 1;
658
+ readonly TLS1DOT0: 2;
659
+ readonly TLS1DOT1: 3;
660
+ readonly TLS1DOT2: 4;
661
+ readonly TLS1DOT3: 5;
662
+ }>>;
386
663
  cipherList: z.ZodOptional<z.ZodString>;
387
664
  }, "strip", z.ZodTypeAny, {
388
665
  keypair?: {
@@ -392,7 +669,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
392
669
  requireClientCerts?: boolean | undefined;
393
670
  trustBrowserCas?: boolean | undefined;
394
671
  trustedCertificates?: string[] | undefined;
395
- minVersion?: TlsOptions_Version | undefined;
672
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
396
673
  cipherList?: string | undefined;
397
674
  }, {
398
675
  keypair?: {
@@ -402,7 +679,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
402
679
  requireClientCerts?: boolean | undefined;
403
680
  trustBrowserCas?: boolean | undefined;
404
681
  trustedCertificates?: string[] | undefined;
405
- minVersion?: TlsOptions_Version | undefined;
682
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
406
683
  cipherList?: string | undefined;
407
684
  }>>;
408
685
  }, "strip", z.ZodTypeAny, {
@@ -416,7 +693,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
416
693
  requireClientCerts?: boolean | undefined;
417
694
  trustBrowserCas?: boolean | undefined;
418
695
  trustedCertificates?: string[] | undefined;
419
- minVersion?: TlsOptions_Version | undefined;
696
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
420
697
  cipherList?: string | undefined;
421
698
  } | undefined;
422
699
  }, {
@@ -430,7 +707,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
430
707
  requireClientCerts?: boolean | undefined;
431
708
  trustBrowserCas?: boolean | undefined;
432
709
  trustedCertificates?: string[] | undefined;
433
- minVersion?: TlsOptions_Version | undefined;
710
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
434
711
  cipherList?: string | undefined;
435
712
  } | undefined;
436
713
  }>;
@@ -446,7 +723,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
446
723
  requireClientCerts?: boolean | undefined;
447
724
  trustBrowserCas?: boolean | undefined;
448
725
  trustedCertificates?: string[] | undefined;
449
- minVersion?: TlsOptions_Version | undefined;
726
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
450
727
  cipherList?: string | undefined;
451
728
  } | undefined;
452
729
  };
@@ -462,16 +739,16 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
462
739
  requireClientCerts?: boolean | undefined;
463
740
  trustBrowserCas?: boolean | undefined;
464
741
  trustedCertificates?: string[] | undefined;
465
- minVersion?: TlsOptions_Version | undefined;
742
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
466
743
  cipherList?: string | undefined;
467
744
  } | undefined;
468
745
  };
469
746
  }>, z.ZodObject<{
470
- external: z.ZodType<ExternalServer, z.ZodTypeDef, ExternalServer>;
747
+ external: z.ZodType<ExternalServer_2, z.ZodTypeDef, ExternalServer_2>;
471
748
  }, "strip", z.ZodTypeAny, {
472
- external: ExternalServer & (ExternalServer | undefined);
749
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
473
750
  }, {
474
- external: ExternalServer & (ExternalServer | undefined);
751
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
475
752
  }>, z.ZodObject<{
476
753
  disk: z.ZodObject<{
477
754
  path: z.ZodString;
@@ -493,7 +770,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
493
770
  path: string;
494
771
  writable?: boolean | undefined;
495
772
  };
496
- }>, z.ZodType<(request: Request, mf: Miniflare) => Awaitable<Response>, z.ZodTypeDef, (request: Request, mf: Miniflare) => Awaitable<Response>>]>>>;
773
+ }>, z.ZodType<(request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>, z.ZodTypeDef, (request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>>]>>>;
497
774
  wrappedBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
498
775
  scriptName: z.ZodString;
499
776
  entrypoint: z.ZodOptional<z.ZodString>;
@@ -534,7 +811,14 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
534
811
  requireClientCerts: z.ZodOptional<z.ZodBoolean>;
535
812
  trustBrowserCas: z.ZodOptional<z.ZodBoolean>;
536
813
  trustedCertificates: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
537
- minVersion: z.ZodOptional<z.ZodNativeEnum<TlsOptions_Version>>;
814
+ minVersion: z.ZodOptional<z.ZodNativeEnum<{
815
+ readonly GOOD_DEFAULT: 0;
816
+ readonly SSL3: 1;
817
+ readonly TLS1DOT0: 2;
818
+ readonly TLS1DOT1: 3;
819
+ readonly TLS1DOT2: 4;
820
+ readonly TLS1DOT3: 5;
821
+ }>>;
538
822
  cipherList: z.ZodOptional<z.ZodString>;
539
823
  }, "strip", z.ZodTypeAny, {
540
824
  keypair?: {
@@ -544,7 +828,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
544
828
  requireClientCerts?: boolean | undefined;
545
829
  trustBrowserCas?: boolean | undefined;
546
830
  trustedCertificates?: string[] | undefined;
547
- minVersion?: TlsOptions_Version | undefined;
831
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
548
832
  cipherList?: string | undefined;
549
833
  }, {
550
834
  keypair?: {
@@ -554,7 +838,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
554
838
  requireClientCerts?: boolean | undefined;
555
839
  trustBrowserCas?: boolean | undefined;
556
840
  trustedCertificates?: string[] | undefined;
557
- minVersion?: TlsOptions_Version | undefined;
841
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
558
842
  cipherList?: string | undefined;
559
843
  }>>;
560
844
  }, "strip", z.ZodTypeAny, {
@@ -568,7 +852,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
568
852
  requireClientCerts?: boolean | undefined;
569
853
  trustBrowserCas?: boolean | undefined;
570
854
  trustedCertificates?: string[] | undefined;
571
- minVersion?: TlsOptions_Version | undefined;
855
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
572
856
  cipherList?: string | undefined;
573
857
  } | undefined;
574
858
  }, {
@@ -582,7 +866,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
582
866
  requireClientCerts?: boolean | undefined;
583
867
  trustBrowserCas?: boolean | undefined;
584
868
  trustedCertificates?: string[] | undefined;
585
- minVersion?: TlsOptions_Version | undefined;
869
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
586
870
  cipherList?: string | undefined;
587
871
  } | undefined;
588
872
  }>;
@@ -598,7 +882,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
598
882
  requireClientCerts?: boolean | undefined;
599
883
  trustBrowserCas?: boolean | undefined;
600
884
  trustedCertificates?: string[] | undefined;
601
- minVersion?: TlsOptions_Version | undefined;
885
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
602
886
  cipherList?: string | undefined;
603
887
  } | undefined;
604
888
  };
@@ -614,16 +898,16 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
614
898
  requireClientCerts?: boolean | undefined;
615
899
  trustBrowserCas?: boolean | undefined;
616
900
  trustedCertificates?: string[] | undefined;
617
- minVersion?: TlsOptions_Version | undefined;
901
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
618
902
  cipherList?: string | undefined;
619
903
  } | undefined;
620
904
  };
621
905
  }>, z.ZodObject<{
622
- external: z.ZodType<ExternalServer, z.ZodTypeDef, ExternalServer>;
906
+ external: z.ZodType<ExternalServer_2, z.ZodTypeDef, ExternalServer_2>;
623
907
  }, "strip", z.ZodTypeAny, {
624
- external: ExternalServer & (ExternalServer | undefined);
908
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
625
909
  }, {
626
- external: ExternalServer & (ExternalServer | undefined);
910
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
627
911
  }>, z.ZodObject<{
628
912
  disk: z.ZodObject<{
629
913
  path: z.ZodString;
@@ -645,7 +929,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
645
929
  path: string;
646
930
  writable?: boolean | undefined;
647
931
  };
648
- }>, z.ZodType<(request: Request, mf: Miniflare) => Awaitable<Response>, z.ZodTypeDef, (request: Request, mf: Miniflare) => Awaitable<Response>>]>>;
932
+ }>, z.ZodType<(request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>, z.ZodTypeDef, (request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>>]>>;
649
933
  fetchMock: z.ZodOptional<z.ZodType<MockAgent<MockAgent.Options>, z.ZodTypeDef, MockAgent<MockAgent.Options>>>;
650
934
  unsafeEphemeralDurableObjects: z.ZodOptional<z.ZodBoolean>;
651
935
  unsafeDirectSockets: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -666,6 +950,12 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
666
950
  }>, "many">>;
667
951
  unsafeEvalBinding: z.ZodOptional<z.ZodString>;
668
952
  unsafeUseModuleFallbackService: z.ZodOptional<z.ZodBoolean>;
953
+ /** Used to set the vitest pool worker SELF binding to point to the Router Worker if there are assets.
954
+ (If there are assets but we're not using vitest, the miniflare entry worker can point directly to
955
+ Router Worker)
956
+ */
957
+ hasAssetsAndIsVitest: z.ZodOptional<z.ZodBoolean>;
958
+ unsafeEnableAssetsRpc: z.ZodOptional<z.ZodBoolean>;
669
959
  }, "strip", z.ZodTypeAny, {
670
960
  name?: string | undefined;
671
961
  rootPath?: undefined;
@@ -673,9 +963,9 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
673
963
  compatibilityFlags?: string[] | undefined;
674
964
  routes?: string[] | undefined;
675
965
  bindings?: Record<string, Json> | undefined;
676
- wasmBindings?: Record<string, string | Uint8Array> | undefined;
966
+ wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
677
967
  textBlobBindings?: Record<string, string> | undefined;
678
- dataBlobBindings?: Record<string, string | Uint8Array> | undefined;
968
+ dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
679
969
  serviceBindings?: Record<string, string | typeof kCurrentWorker | {
680
970
  name: string | typeof kCurrentWorker;
681
971
  entrypoint?: string | undefined;
@@ -691,18 +981,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
691
981
  requireClientCerts?: boolean | undefined;
692
982
  trustBrowserCas?: boolean | undefined;
693
983
  trustedCertificates?: string[] | undefined;
694
- minVersion?: TlsOptions_Version | undefined;
984
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
695
985
  cipherList?: string | undefined;
696
986
  } | undefined;
697
987
  };
698
988
  } | {
699
- external: ExternalServer & (ExternalServer | undefined);
989
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
700
990
  } | {
701
991
  disk: {
702
992
  path: string;
703
993
  writable?: boolean | undefined;
704
994
  };
705
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>)> | undefined;
995
+ } | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>)> | undefined;
706
996
  wrappedBindings?: Record<string, string | {
707
997
  scriptName: string;
708
998
  entrypoint?: string | undefined;
@@ -723,18 +1013,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
723
1013
  requireClientCerts?: boolean | undefined;
724
1014
  trustBrowserCas?: boolean | undefined;
725
1015
  trustedCertificates?: string[] | undefined;
726
- minVersion?: TlsOptions_Version | undefined;
1016
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
727
1017
  cipherList?: string | undefined;
728
1018
  } | undefined;
729
1019
  };
730
1020
  } | {
731
- external: ExternalServer & (ExternalServer | undefined);
1021
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
732
1022
  } | {
733
1023
  disk: {
734
1024
  path: string;
735
1025
  writable?: boolean | undefined;
736
1026
  };
737
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
1027
+ } | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
738
1028
  fetchMock?: MockAgent<MockAgent.Options> | undefined;
739
1029
  unsafeEphemeralDurableObjects?: boolean | undefined;
740
1030
  unsafeDirectSockets?: {
@@ -745,6 +1035,8 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
745
1035
  }[] | undefined;
746
1036
  unsafeEvalBinding?: string | undefined;
747
1037
  unsafeUseModuleFallbackService?: boolean | undefined;
1038
+ hasAssetsAndIsVitest?: boolean | undefined;
1039
+ unsafeEnableAssetsRpc?: boolean | undefined;
748
1040
  }, {
749
1041
  name?: string | undefined;
750
1042
  rootPath?: string | undefined;
@@ -752,9 +1044,9 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
752
1044
  compatibilityFlags?: string[] | undefined;
753
1045
  routes?: string[] | undefined;
754
1046
  bindings?: Record<string, Json> | undefined;
755
- wasmBindings?: Record<string, string | Uint8Array> | undefined;
1047
+ wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
756
1048
  textBlobBindings?: Record<string, string> | undefined;
757
- dataBlobBindings?: Record<string, string | Uint8Array> | undefined;
1049
+ dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
758
1050
  serviceBindings?: Record<string, string | typeof kCurrentWorker | {
759
1051
  name: string | typeof kCurrentWorker;
760
1052
  entrypoint?: string | undefined;
@@ -770,18 +1062,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
770
1062
  requireClientCerts?: boolean | undefined;
771
1063
  trustBrowserCas?: boolean | undefined;
772
1064
  trustedCertificates?: string[] | undefined;
773
- minVersion?: TlsOptions_Version | undefined;
1065
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
774
1066
  cipherList?: string | undefined;
775
1067
  } | undefined;
776
1068
  };
777
1069
  } | {
778
- external: ExternalServer & (ExternalServer | undefined);
1070
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
779
1071
  } | {
780
1072
  disk: {
781
1073
  path: string;
782
1074
  writable?: boolean | undefined;
783
1075
  };
784
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>)> | undefined;
1076
+ } | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>)> | undefined;
785
1077
  wrappedBindings?: Record<string, string | {
786
1078
  scriptName: string;
787
1079
  entrypoint?: string | undefined;
@@ -802,18 +1094,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
802
1094
  requireClientCerts?: boolean | undefined;
803
1095
  trustBrowserCas?: boolean | undefined;
804
1096
  trustedCertificates?: string[] | undefined;
805
- minVersion?: TlsOptions_Version | undefined;
1097
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
806
1098
  cipherList?: string | undefined;
807
1099
  } | undefined;
808
1100
  };
809
1101
  } | {
810
- external: ExternalServer & (ExternalServer | undefined);
1102
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
811
1103
  } | {
812
1104
  disk: {
813
1105
  path: string;
814
1106
  writable?: boolean | undefined;
815
1107
  };
816
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
1108
+ } | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
817
1109
  fetchMock?: MockAgent<MockAgent.Options> | undefined;
818
1110
  unsafeEphemeralDurableObjects?: boolean | undefined;
819
1111
  unsafeDirectSockets?: {
@@ -824,11 +1116,13 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
824
1116
  }[] | undefined;
825
1117
  unsafeEvalBinding?: string | undefined;
826
1118
  unsafeUseModuleFallbackService?: boolean | undefined;
1119
+ hasAssetsAndIsVitest?: boolean | undefined;
1120
+ unsafeEnableAssetsRpc?: boolean | undefined;
827
1121
  }>>, ({
828
1122
  modules: {
829
1123
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
830
1124
  path: string;
831
- contents?: string | Uint8Array | undefined;
1125
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
832
1126
  }[];
833
1127
  modulesRoot?: string | undefined;
834
1128
  } & {
@@ -838,9 +1132,9 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
838
1132
  compatibilityFlags?: string[] | undefined;
839
1133
  routes?: string[] | undefined;
840
1134
  bindings?: Record<string, Json> | undefined;
841
- wasmBindings?: Record<string, string | Uint8Array> | undefined;
1135
+ wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
842
1136
  textBlobBindings?: Record<string, string> | undefined;
843
- dataBlobBindings?: Record<string, string | Uint8Array> | undefined;
1137
+ dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
844
1138
  serviceBindings?: Record<string, string | typeof kCurrentWorker | {
845
1139
  name: string | typeof kCurrentWorker;
846
1140
  entrypoint?: string | undefined;
@@ -856,18 +1150,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
856
1150
  requireClientCerts?: boolean | undefined;
857
1151
  trustBrowserCas?: boolean | undefined;
858
1152
  trustedCertificates?: string[] | undefined;
859
- minVersion?: TlsOptions_Version | undefined;
1153
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
860
1154
  cipherList?: string | undefined;
861
1155
  } | undefined;
862
1156
  };
863
1157
  } | {
864
- external: ExternalServer & (ExternalServer | undefined);
1158
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
865
1159
  } | {
866
1160
  disk: {
867
1161
  path: string;
868
1162
  writable?: boolean | undefined;
869
1163
  };
870
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>)> | undefined;
1164
+ } | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>)> | undefined;
871
1165
  wrappedBindings?: Record<string, string | {
872
1166
  scriptName: string;
873
1167
  entrypoint?: string | undefined;
@@ -888,18 +1182,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
888
1182
  requireClientCerts?: boolean | undefined;
889
1183
  trustBrowserCas?: boolean | undefined;
890
1184
  trustedCertificates?: string[] | undefined;
891
- minVersion?: TlsOptions_Version | undefined;
1185
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
892
1186
  cipherList?: string | undefined;
893
1187
  } | undefined;
894
1188
  };
895
1189
  } | {
896
- external: ExternalServer & (ExternalServer | undefined);
1190
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
897
1191
  } | {
898
1192
  disk: {
899
1193
  path: string;
900
1194
  writable?: boolean | undefined;
901
1195
  };
902
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
1196
+ } | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
903
1197
  fetchMock?: MockAgent<MockAgent.Options> | undefined;
904
1198
  unsafeEphemeralDurableObjects?: boolean | undefined;
905
1199
  unsafeDirectSockets?: {
@@ -910,6 +1204,8 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
910
1204
  }[] | undefined;
911
1205
  unsafeEvalBinding?: string | undefined;
912
1206
  unsafeUseModuleFallbackService?: boolean | undefined;
1207
+ hasAssetsAndIsVitest?: boolean | undefined;
1208
+ unsafeEnableAssetsRpc?: boolean | undefined;
913
1209
  }) | ({
914
1210
  script: string;
915
1211
  scriptPath?: string | undefined;
@@ -927,9 +1223,9 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
927
1223
  compatibilityFlags?: string[] | undefined;
928
1224
  routes?: string[] | undefined;
929
1225
  bindings?: Record<string, Json> | undefined;
930
- wasmBindings?: Record<string, string | Uint8Array> | undefined;
1226
+ wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
931
1227
  textBlobBindings?: Record<string, string> | undefined;
932
- dataBlobBindings?: Record<string, string | Uint8Array> | undefined;
1228
+ dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
933
1229
  serviceBindings?: Record<string, string | typeof kCurrentWorker | {
934
1230
  name: string | typeof kCurrentWorker;
935
1231
  entrypoint?: string | undefined;
@@ -945,18 +1241,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
945
1241
  requireClientCerts?: boolean | undefined;
946
1242
  trustBrowserCas?: boolean | undefined;
947
1243
  trustedCertificates?: string[] | undefined;
948
- minVersion?: TlsOptions_Version | undefined;
1244
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
949
1245
  cipherList?: string | undefined;
950
1246
  } | undefined;
951
1247
  };
952
1248
  } | {
953
- external: ExternalServer & (ExternalServer | undefined);
1249
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
954
1250
  } | {
955
1251
  disk: {
956
1252
  path: string;
957
1253
  writable?: boolean | undefined;
958
1254
  };
959
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>)> | undefined;
1255
+ } | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>)> | undefined;
960
1256
  wrappedBindings?: Record<string, string | {
961
1257
  scriptName: string;
962
1258
  entrypoint?: string | undefined;
@@ -977,18 +1273,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
977
1273
  requireClientCerts?: boolean | undefined;
978
1274
  trustBrowserCas?: boolean | undefined;
979
1275
  trustedCertificates?: string[] | undefined;
980
- minVersion?: TlsOptions_Version | undefined;
1276
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
981
1277
  cipherList?: string | undefined;
982
1278
  } | undefined;
983
1279
  };
984
1280
  } | {
985
- external: ExternalServer & (ExternalServer | undefined);
1281
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
986
1282
  } | {
987
1283
  disk: {
988
1284
  path: string;
989
1285
  writable?: boolean | undefined;
990
1286
  };
991
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
1287
+ } | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
992
1288
  fetchMock?: MockAgent<MockAgent.Options> | undefined;
993
1289
  unsafeEphemeralDurableObjects?: boolean | undefined;
994
1290
  unsafeDirectSockets?: {
@@ -999,6 +1295,8 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
999
1295
  }[] | undefined;
1000
1296
  unsafeEvalBinding?: string | undefined;
1001
1297
  unsafeUseModuleFallbackService?: boolean | undefined;
1298
+ hasAssetsAndIsVitest?: boolean | undefined;
1299
+ unsafeEnableAssetsRpc?: boolean | undefined;
1002
1300
  }) | ({
1003
1301
  scriptPath: string;
1004
1302
  modules?: boolean | undefined;
@@ -1015,9 +1313,9 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1015
1313
  compatibilityFlags?: string[] | undefined;
1016
1314
  routes?: string[] | undefined;
1017
1315
  bindings?: Record<string, Json> | undefined;
1018
- wasmBindings?: Record<string, string | Uint8Array> | undefined;
1316
+ wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
1019
1317
  textBlobBindings?: Record<string, string> | undefined;
1020
- dataBlobBindings?: Record<string, string | Uint8Array> | undefined;
1318
+ dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
1021
1319
  serviceBindings?: Record<string, string | typeof kCurrentWorker | {
1022
1320
  name: string | typeof kCurrentWorker;
1023
1321
  entrypoint?: string | undefined;
@@ -1033,18 +1331,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1033
1331
  requireClientCerts?: boolean | undefined;
1034
1332
  trustBrowserCas?: boolean | undefined;
1035
1333
  trustedCertificates?: string[] | undefined;
1036
- minVersion?: TlsOptions_Version | undefined;
1334
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
1037
1335
  cipherList?: string | undefined;
1038
1336
  } | undefined;
1039
1337
  };
1040
1338
  } | {
1041
- external: ExternalServer & (ExternalServer | undefined);
1339
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
1042
1340
  } | {
1043
1341
  disk: {
1044
1342
  path: string;
1045
1343
  writable?: boolean | undefined;
1046
1344
  };
1047
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>)> | undefined;
1345
+ } | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>)> | undefined;
1048
1346
  wrappedBindings?: Record<string, string | {
1049
1347
  scriptName: string;
1050
1348
  entrypoint?: string | undefined;
@@ -1065,18 +1363,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1065
1363
  requireClientCerts?: boolean | undefined;
1066
1364
  trustBrowserCas?: boolean | undefined;
1067
1365
  trustedCertificates?: string[] | undefined;
1068
- minVersion?: TlsOptions_Version | undefined;
1366
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
1069
1367
  cipherList?: string | undefined;
1070
1368
  } | undefined;
1071
1369
  };
1072
1370
  } | {
1073
- external: ExternalServer & (ExternalServer | undefined);
1371
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
1074
1372
  } | {
1075
1373
  disk: {
1076
1374
  path: string;
1077
1375
  writable?: boolean | undefined;
1078
1376
  };
1079
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
1377
+ } | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
1080
1378
  fetchMock?: MockAgent<MockAgent.Options> | undefined;
1081
1379
  unsafeEphemeralDurableObjects?: boolean | undefined;
1082
1380
  unsafeDirectSockets?: {
@@ -1087,11 +1385,13 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1087
1385
  }[] | undefined;
1088
1386
  unsafeEvalBinding?: string | undefined;
1089
1387
  unsafeUseModuleFallbackService?: boolean | undefined;
1388
+ hasAssetsAndIsVitest?: boolean | undefined;
1389
+ unsafeEnableAssetsRpc?: boolean | undefined;
1090
1390
  }), ({
1091
1391
  modules: {
1092
1392
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
1093
1393
  path: string;
1094
- contents?: string | Uint8Array | undefined;
1394
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
1095
1395
  }[];
1096
1396
  modulesRoot?: string | undefined;
1097
1397
  } | {
@@ -1120,9 +1420,9 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1120
1420
  compatibilityFlags?: string[] | undefined;
1121
1421
  routes?: string[] | undefined;
1122
1422
  bindings?: Record<string, Json> | undefined;
1123
- wasmBindings?: Record<string, string | Uint8Array> | undefined;
1423
+ wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
1124
1424
  textBlobBindings?: Record<string, string> | undefined;
1125
- dataBlobBindings?: Record<string, string | Uint8Array> | undefined;
1425
+ dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
1126
1426
  serviceBindings?: Record<string, string | typeof kCurrentWorker | {
1127
1427
  name: string | typeof kCurrentWorker;
1128
1428
  entrypoint?: string | undefined;
@@ -1138,18 +1438,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1138
1438
  requireClientCerts?: boolean | undefined;
1139
1439
  trustBrowserCas?: boolean | undefined;
1140
1440
  trustedCertificates?: string[] | undefined;
1141
- minVersion?: TlsOptions_Version | undefined;
1441
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
1142
1442
  cipherList?: string | undefined;
1143
1443
  } | undefined;
1144
1444
  };
1145
1445
  } | {
1146
- external: ExternalServer & (ExternalServer | undefined);
1446
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
1147
1447
  } | {
1148
1448
  disk: {
1149
1449
  path: string;
1150
1450
  writable?: boolean | undefined;
1151
1451
  };
1152
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>)> | undefined;
1452
+ } | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>)> | undefined;
1153
1453
  wrappedBindings?: Record<string, string | {
1154
1454
  scriptName: string;
1155
1455
  entrypoint?: string | undefined;
@@ -1170,18 +1470,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1170
1470
  requireClientCerts?: boolean | undefined;
1171
1471
  trustBrowserCas?: boolean | undefined;
1172
1472
  trustedCertificates?: string[] | undefined;
1173
- minVersion?: TlsOptions_Version | undefined;
1473
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
1174
1474
  cipherList?: string | undefined;
1175
1475
  } | undefined;
1176
1476
  };
1177
1477
  } | {
1178
- external: ExternalServer & (ExternalServer | undefined);
1478
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
1179
1479
  } | {
1180
1480
  disk: {
1181
1481
  path: string;
1182
1482
  writable?: boolean | undefined;
1183
1483
  };
1184
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
1484
+ } | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
1185
1485
  fetchMock?: MockAgent<MockAgent.Options> | undefined;
1186
1486
  unsafeEphemeralDurableObjects?: boolean | undefined;
1187
1487
  unsafeDirectSockets?: {
@@ -1192,6 +1492,8 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1192
1492
  }[] | undefined;
1193
1493
  unsafeEvalBinding?: string | undefined;
1194
1494
  unsafeUseModuleFallbackService?: boolean | undefined;
1495
+ hasAssetsAndIsVitest?: boolean | undefined;
1496
+ unsafeEnableAssetsRpc?: boolean | undefined;
1195
1497
  }>;
1196
1498
 
1197
1499
  export declare const CoreSharedOptionsSchema: z.ZodObject<{
@@ -1211,8 +1513,9 @@ export declare const CoreSharedOptionsSchema: z.ZodObject<{
1211
1513
  cf: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>;
1212
1514
  liveReload: z.ZodOptional<z.ZodBoolean>;
1213
1515
  unsafeProxySharedSecret: z.ZodOptional<z.ZodString>;
1214
- unsafeModuleFallbackService: z.ZodOptional<z.ZodType<(request: Request, mf: Miniflare) => Awaitable<Response>, z.ZodTypeDef, (request: Request, mf: Miniflare) => Awaitable<Response>>>;
1516
+ unsafeModuleFallbackService: z.ZodOptional<z.ZodType<(request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>, z.ZodTypeDef, (request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>>>;
1215
1517
  unsafeStickyBlobs: z.ZodOptional<z.ZodBoolean>;
1518
+ unsafeEnableAssetsRpc: z.ZodOptional<z.ZodBoolean>;
1216
1519
  }, "strip", z.ZodTypeAny, {
1217
1520
  rootPath?: undefined;
1218
1521
  host?: string | undefined;
@@ -1230,8 +1533,9 @@ export declare const CoreSharedOptionsSchema: z.ZodObject<{
1230
1533
  cf?: string | boolean | Record<string, any> | undefined;
1231
1534
  liveReload?: boolean | undefined;
1232
1535
  unsafeProxySharedSecret?: string | undefined;
1233
- unsafeModuleFallbackService?: ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
1536
+ unsafeModuleFallbackService?: ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
1234
1537
  unsafeStickyBlobs?: boolean | undefined;
1538
+ unsafeEnableAssetsRpc?: boolean | undefined;
1235
1539
  }, {
1236
1540
  rootPath?: string | undefined;
1237
1541
  host?: string | undefined;
@@ -1249,8 +1553,9 @@ export declare const CoreSharedOptionsSchema: z.ZodObject<{
1249
1553
  cf?: string | boolean | Record<string, any> | undefined;
1250
1554
  liveReload?: boolean | undefined;
1251
1555
  unsafeProxySharedSecret?: string | undefined;
1252
- unsafeModuleFallbackService?: ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
1556
+ unsafeModuleFallbackService?: ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
1253
1557
  unsafeStickyBlobs?: boolean | undefined;
1558
+ unsafeEnableAssetsRpc?: boolean | undefined;
1254
1559
  }>;
1255
1560
 
1256
1561
  export declare function coupleWebSocket(ws: NodeWebSocket, pair: WebSocket): Promise<void>;
@@ -1304,7 +1609,7 @@ export declare interface DiskDirectory {
1304
1609
  writable?: boolean;
1305
1610
  }
1306
1611
 
1307
- export declare type DispatchFetch = (input: RequestInfo, init?: RequestInit<Partial<IncomingRequestCfProperties>>) => Promise<Response>;
1612
+ export declare type DispatchFetch = (input: RequestInfo, init?: RequestInit_2<Partial<IncomingRequestCfProperties>>) => Promise<Response_2>;
1308
1613
 
1309
1614
  /**
1310
1615
  * Dispatcher created for each `dispatchFetch()` call. Ensures request origin
@@ -1402,8 +1707,6 @@ export declare const DurableObjectsSharedOptionsSchema: z.ZodObject<{
1402
1707
 
1403
1708
  export declare function encodeSitesKey(key: string): string;
1404
1709
 
1405
- export declare const ENTRY_SOCKET_HTTP_OPTIONS: HttpOptions;
1406
-
1407
1710
  export declare class ErrorEvent extends Event {
1408
1711
  readonly error: Error | null;
1409
1712
  constructor(type: "error", init?: {
@@ -1442,7 +1745,8 @@ export declare interface ExternalServer_Tcp {
1442
1745
  certificateHost?: string;
1443
1746
  }
1444
1747
 
1445
- export declare function fetch(input: RequestInfo, init?: RequestInit | Request): Promise<Response>;
1748
+ declare function fetch_2(input: RequestInfo, init?: RequestInit_2 | Request_2): Promise<Response_2>;
1749
+ export { fetch_2 as fetch }
1446
1750
 
1447
1751
  export { File }
1448
1752
 
@@ -1450,7 +1754,7 @@ export declare function _forceColour(enabled?: boolean): void;
1450
1754
 
1451
1755
  export declare function formatZodError(error: z.ZodError, input: unknown): string;
1452
1756
 
1453
- export { FormData }
1757
+ export { FormData_2 as FormData }
1454
1758
 
1455
1759
  export declare function getAccessibleHosts(ipv4Only?: boolean): string[];
1456
1760
 
@@ -1475,6 +1779,27 @@ export declare function getGlobalServices({ sharedOptions, allWorkerRoutes, fall
1475
1779
 
1476
1780
  export declare function getMiniflareObjectBindings(unsafeStickyBlobs: boolean): Worker_Binding[];
1477
1781
 
1782
+ /**
1783
+ * Computes the Node.js compatibility mode we are running.
1784
+ *
1785
+ * NOTES:
1786
+ * - The v2 mode is configured via `nodejs_compat_v2` compat flag or via `nodejs_compat` plus a compatibility date of Sept 23rd. 2024 or later.
1787
+ * - See `EnvironmentInheritable` for `nodeCompat` and `noBundle`.
1788
+ *
1789
+ * @param compatibilityDateStr The compatibility date
1790
+ * @param compatibilityFlags The compatibility flags
1791
+ * @returns the mode and flags to indicate specific configuration for validating.
1792
+ */
1793
+ export declare function getNodeCompat(compatibilityDate: string | undefined, // Default to some arbitrary old date
1794
+ compatibilityFlags: string[]): {
1795
+ mode: NodeJSCompatMode;
1796
+ hasNodejsAlsFlag: boolean;
1797
+ hasNodejsCompatFlag: boolean;
1798
+ hasNodejsCompatV2Flag: boolean;
1799
+ hasNoNodejsCompatV2Flag: boolean;
1800
+ hasExperimentalNodejsCompatV2Flag: boolean;
1801
+ };
1802
+
1478
1803
  export declare function getPersistPath(pluginName: string, tmpPath: string, persist: Persistence): string;
1479
1804
 
1480
1805
  export declare function getRootPath(opts: unknown): string;
@@ -1490,7 +1815,7 @@ export declare interface GlobalServicesOptions {
1490
1815
 
1491
1816
  export declare function globsToRegExps(globs?: string[]): MatcherRegExps;
1492
1817
 
1493
- export { Headers }
1818
+ export { Headers_2 as Headers }
1494
1819
 
1495
1820
  export { HeadersInit }
1496
1821
 
@@ -1510,10 +1835,12 @@ export declare interface HttpOptions_Header {
1510
1835
  value?: string;
1511
1836
  }
1512
1837
 
1513
- export declare enum HttpOptions_Style {
1514
- HOST = 0,
1515
- PROXY = 1
1516
- }
1838
+ export declare const HttpOptions_Style: {
1839
+ readonly HOST: 0;
1840
+ readonly PROXY: 1;
1841
+ };
1842
+
1843
+ export declare type HttpOptions_Style = (typeof HttpOptions_Style)[keyof typeof HttpOptions_Style];
1517
1844
 
1518
1845
  export declare const HYPERDRIVE_PLUGIN: Plugin<typeof HyperdriveInputOptionsSchema>;
1519
1846
 
@@ -1673,6 +2000,11 @@ export declare interface LogOptions {
1673
2000
  suffix?: string;
1674
2001
  }
1675
2002
 
2003
+ export declare type ManifestEntry = {
2004
+ pathHash: Uint8Array;
2005
+ contentHash: Uint8Array;
2006
+ };
2007
+
1676
2008
  export declare interface MatcherRegExps {
1677
2009
  include: RegExp[];
1678
2010
  exclude: RegExp[];
@@ -1691,12 +2023,13 @@ export declare function maybeParseURL(url: Persistence): URL | undefined;
1691
2023
  */
1692
2024
  export declare function mergeWorkerOptions(a: Partial<WorkerOptions>, b: Partial<WorkerOptions>): Partial<WorkerOptions>;
1693
2025
 
1694
- export declare class MessageEvent extends Event {
1695
- readonly data: ArrayBuffer | string;
2026
+ declare class MessageEvent_2 extends Event {
2027
+ readonly data: string | ArrayBuffer | Uint8Array<ArrayBuffer>;
1696
2028
  constructor(type: "message", init: {
1697
- data: ArrayBuffer | string;
2029
+ data: string | ArrayBuffer | Uint8Array<ArrayBuffer>;
1698
2030
  });
1699
2031
  }
2032
+ export { MessageEvent_2 as MessageEvent }
1700
2033
 
1701
2034
  export declare function migrateDatabase(log: Log, uniqueKey: string, persistPath: string, namespace: string): Promise<void>;
1702
2035
 
@@ -1743,15 +2076,15 @@ export declare type ModuleDefinition = z.infer<typeof ModuleDefinitionSchema>;
1743
2076
  export declare const ModuleDefinitionSchema: z.ZodObject<{
1744
2077
  type: z.ZodEnum<["ESModule", "CommonJS", "NodeJsCompatModule", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
1745
2078
  path: z.ZodEffects<z.ZodString, string, string>;
1746
- contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>>;
2079
+ contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>;
1747
2080
  }, "strip", z.ZodTypeAny, {
1748
2081
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
1749
2082
  path: string;
1750
- contents?: string | Uint8Array | undefined;
2083
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
1751
2084
  }, {
1752
2085
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
1753
2086
  path: string;
1754
- contents?: string | Uint8Array | undefined;
2087
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
1755
2088
  }>;
1756
2089
 
1757
2090
  export declare type ModuleRule = z.infer<typeof ModuleRuleSchema>;
@@ -1795,7 +2128,17 @@ export declare interface Network {
1795
2128
  tlsOptions?: TlsOptions;
1796
2129
  }
1797
2130
 
1798
- export declare const NODE_PLATFORM_IMPL: PlatformImpl<ReadableStream_2>;
2131
+ export declare const NODE_PLATFORM_IMPL: PlatformImpl<ReadableStream_3>;
2132
+
2133
+ /**
2134
+ * We can provide Node.js compatibility in a number of different modes:
2135
+ * - "als": this mode tells the workerd runtime to enable only the Async Local Storage builtin library (accessible via `node:async_hooks`).
2136
+ * - "v1" - this mode tells the workerd runtime to enable some Node.js builtin libraries (accessible only via `node:...` imports) but no globals.
2137
+ * - "v2" - this mode tells the workerd runtime to enable more Node.js builtin libraries (accessible both with and without the `node:` prefix)
2138
+ * and also some Node.js globals such as `Buffer`; it also turns on additional compile-time polyfills for those that are not provided by the runtime.
2139
+ * - null - no Node.js compatibility.
2140
+ */
2141
+ export declare type NodeJSCompatMode = "als" | "v1" | "v2" | null;
1799
2142
 
1800
2143
  export declare class NoOpLog extends Log {
1801
2144
  constructor();
@@ -1913,12 +2256,24 @@ export declare type Persistence = z.infer<typeof PersistenceSchema>;
1913
2256
 
1914
2257
  export declare const PersistenceSchema: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
1915
2258
 
2259
+ export declare const PIPELINE_PLUGIN: Plugin<typeof PipelineOptionsSchema>;
2260
+
2261
+ export declare const PipelineOptionsSchema: z.ZodObject<{
2262
+ pipelines: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodString, "many">]>>;
2263
+ }, "strip", z.ZodTypeAny, {
2264
+ pipelines?: string[] | Record<string, string> | undefined;
2265
+ }, {
2266
+ pipelines?: string[] | Record<string, string> | undefined;
2267
+ }>;
2268
+
2269
+ export declare const PIPELINES_PLUGIN_NAME = "pipelines";
2270
+
1916
2271
  export declare interface PlatformImpl<RS> {
1917
2272
  Blob: typeof Blob_2;
1918
2273
  File: typeof File_2;
1919
- Headers: typeof Headers_2;
1920
- Request: typeof Request_3;
1921
- Response: typeof Response_3;
2274
+ Headers: typeof Headers_3;
2275
+ Request: typeof Request_5;
2276
+ Response: typeof Response_5;
1922
2277
  isReadableStream(value: unknown): value is RS;
1923
2278
  bufferReadableStream(stream: RS): Promise<ArrayBuffer>;
1924
2279
  unbufferReadableStream(buffer: ArrayBuffer): RS;
@@ -1941,33 +2296,33 @@ export declare interface PluginBase<Options extends z.ZodType, SharedOptions ext
1941
2296
  }
1942
2297
 
1943
2298
  export declare const PLUGINS: {
1944
- core: Plugin<z.ZodEffects<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2299
+ core: Plugin_2<z.ZodEffects<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
1945
2300
  modules: z.ZodArray<z.ZodObject<{
1946
2301
  type: z.ZodEnum<["ESModule", "CommonJS", "NodeJsCompatModule", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
1947
2302
  path: z.ZodEffects<z.ZodString, string, string>;
1948
- contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>>;
2303
+ contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>;
1949
2304
  }, "strip", z.ZodTypeAny, {
1950
2305
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
1951
2306
  path: string;
1952
- contents?: string | Uint8Array | undefined;
2307
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
1953
2308
  }, {
1954
2309
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
1955
2310
  path: string;
1956
- contents?: string | Uint8Array | undefined;
2311
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
1957
2312
  }>, "many">;
1958
2313
  modulesRoot: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1959
2314
  }, "strip", z.ZodTypeAny, {
1960
2315
  modules: {
1961
2316
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
1962
2317
  path: string;
1963
- contents?: string | Uint8Array | undefined;
2318
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
1964
2319
  }[];
1965
2320
  modulesRoot?: string | undefined;
1966
2321
  }, {
1967
2322
  modules: {
1968
2323
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
1969
2324
  path: string;
1970
- contents?: string | Uint8Array | undefined;
2325
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
1971
2326
  }[];
1972
2327
  modulesRoot?: string | undefined;
1973
2328
  }>, z.ZodObject<{
@@ -2049,18 +2404,18 @@ export declare const PLUGINS: {
2049
2404
  compatibilityDate: z.ZodOptional<z.ZodString>;
2050
2405
  compatibilityFlags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2051
2406
  routes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2052
- bindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<Json, z.ZodTypeDef, Json>>>;
2053
- wasmBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>>>;
2407
+ bindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<Json_2, z.ZodTypeDef, Json_2>>>;
2408
+ wasmBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>>;
2054
2409
  textBlobBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, string, string>>>;
2055
- dataBlobBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>>>;
2056
- serviceBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodLiteral<kCurrentWorker>, z.ZodObject<{
2057
- name: z.ZodUnion<[z.ZodString, z.ZodLiteral<kCurrentWorker>]>;
2410
+ dataBlobBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>>;
2411
+ serviceBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodLiteral<kCurrentWorker_2>, z.ZodObject<{
2412
+ name: z.ZodUnion<[z.ZodString, z.ZodLiteral<kCurrentWorker_2>]>;
2058
2413
  entrypoint: z.ZodOptional<z.ZodString>;
2059
2414
  }, "strip", z.ZodTypeAny, {
2060
- name: string | kCurrentWorker;
2415
+ name: string | kCurrentWorker_2;
2061
2416
  entrypoint?: string | undefined;
2062
2417
  }, {
2063
- name: string | kCurrentWorker;
2418
+ name: string | kCurrentWorker_2;
2064
2419
  entrypoint?: string | undefined;
2065
2420
  }>, z.ZodObject<{
2066
2421
  network: z.ZodObject<{
@@ -2080,7 +2435,14 @@ export declare const PLUGINS: {
2080
2435
  requireClientCerts: z.ZodOptional<z.ZodBoolean>;
2081
2436
  trustBrowserCas: z.ZodOptional<z.ZodBoolean>;
2082
2437
  trustedCertificates: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2083
- minVersion: z.ZodOptional<z.ZodNativeEnum<TlsOptions_Version>>;
2438
+ minVersion: z.ZodOptional<z.ZodNativeEnum<{
2439
+ readonly GOOD_DEFAULT: 0;
2440
+ readonly SSL3: 1;
2441
+ readonly TLS1DOT0: 2;
2442
+ readonly TLS1DOT1: 3;
2443
+ readonly TLS1DOT2: 4;
2444
+ readonly TLS1DOT3: 5;
2445
+ }>>;
2084
2446
  cipherList: z.ZodOptional<z.ZodString>;
2085
2447
  }, "strip", z.ZodTypeAny, {
2086
2448
  keypair?: {
@@ -2090,7 +2452,7 @@ export declare const PLUGINS: {
2090
2452
  requireClientCerts?: boolean | undefined;
2091
2453
  trustBrowserCas?: boolean | undefined;
2092
2454
  trustedCertificates?: string[] | undefined;
2093
- minVersion?: TlsOptions_Version | undefined;
2455
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2094
2456
  cipherList?: string | undefined;
2095
2457
  }, {
2096
2458
  keypair?: {
@@ -2100,7 +2462,7 @@ export declare const PLUGINS: {
2100
2462
  requireClientCerts?: boolean | undefined;
2101
2463
  trustBrowserCas?: boolean | undefined;
2102
2464
  trustedCertificates?: string[] | undefined;
2103
- minVersion?: TlsOptions_Version | undefined;
2465
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2104
2466
  cipherList?: string | undefined;
2105
2467
  }>>;
2106
2468
  }, "strip", z.ZodTypeAny, {
@@ -2114,7 +2476,7 @@ export declare const PLUGINS: {
2114
2476
  requireClientCerts?: boolean | undefined;
2115
2477
  trustBrowserCas?: boolean | undefined;
2116
2478
  trustedCertificates?: string[] | undefined;
2117
- minVersion?: TlsOptions_Version | undefined;
2479
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2118
2480
  cipherList?: string | undefined;
2119
2481
  } | undefined;
2120
2482
  }, {
@@ -2128,7 +2490,7 @@ export declare const PLUGINS: {
2128
2490
  requireClientCerts?: boolean | undefined;
2129
2491
  trustBrowserCas?: boolean | undefined;
2130
2492
  trustedCertificates?: string[] | undefined;
2131
- minVersion?: TlsOptions_Version | undefined;
2493
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2132
2494
  cipherList?: string | undefined;
2133
2495
  } | undefined;
2134
2496
  }>;
@@ -2144,7 +2506,7 @@ export declare const PLUGINS: {
2144
2506
  requireClientCerts?: boolean | undefined;
2145
2507
  trustBrowserCas?: boolean | undefined;
2146
2508
  trustedCertificates?: string[] | undefined;
2147
- minVersion?: TlsOptions_Version | undefined;
2509
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2148
2510
  cipherList?: string | undefined;
2149
2511
  } | undefined;
2150
2512
  };
@@ -2160,16 +2522,16 @@ export declare const PLUGINS: {
2160
2522
  requireClientCerts?: boolean | undefined;
2161
2523
  trustBrowserCas?: boolean | undefined;
2162
2524
  trustedCertificates?: string[] | undefined;
2163
- minVersion?: TlsOptions_Version | undefined;
2525
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2164
2526
  cipherList?: string | undefined;
2165
2527
  } | undefined;
2166
2528
  };
2167
2529
  }>, z.ZodObject<{
2168
- external: z.ZodType<ExternalServer, z.ZodTypeDef, ExternalServer>;
2530
+ external: z.ZodType<ExternalServer_3, z.ZodTypeDef, ExternalServer_3>;
2169
2531
  }, "strip", z.ZodTypeAny, {
2170
- external: ExternalServer & (ExternalServer | undefined);
2532
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2171
2533
  }, {
2172
- external: ExternalServer & (ExternalServer | undefined);
2534
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2173
2535
  }>, z.ZodObject<{
2174
2536
  disk: z.ZodObject<{
2175
2537
  path: z.ZodString;
@@ -2191,28 +2553,28 @@ export declare const PLUGINS: {
2191
2553
  path: string;
2192
2554
  writable?: boolean | undefined;
2193
2555
  };
2194
- }>, z.ZodType<(request: Request, mf: Miniflare) => Awaitable<Response>, z.ZodTypeDef, (request: Request, mf: Miniflare) => Awaitable<Response>>]>>>;
2556
+ }>, z.ZodType<(request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>, z.ZodTypeDef, (request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>>]>>>;
2195
2557
  wrappedBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
2196
2558
  scriptName: z.ZodString;
2197
2559
  entrypoint: z.ZodOptional<z.ZodString>;
2198
- bindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<Json, z.ZodTypeDef, Json>>>;
2560
+ bindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<Json_2, z.ZodTypeDef, Json_2>>>;
2199
2561
  }, "strip", z.ZodTypeAny, {
2200
2562
  scriptName: string;
2201
2563
  entrypoint?: string | undefined;
2202
- bindings?: Record<string, Json> | undefined;
2564
+ bindings?: Record<string, Json_2> | undefined;
2203
2565
  }, {
2204
2566
  scriptName: string;
2205
2567
  entrypoint?: string | undefined;
2206
- bindings?: Record<string, Json> | undefined;
2568
+ bindings?: Record<string, Json_2> | undefined;
2207
2569
  }>]>>>;
2208
- outboundService: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<kCurrentWorker>, z.ZodObject<{
2209
- name: z.ZodUnion<[z.ZodString, z.ZodLiteral<kCurrentWorker>]>;
2570
+ outboundService: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<kCurrentWorker_2>, z.ZodObject<{
2571
+ name: z.ZodUnion<[z.ZodString, z.ZodLiteral<kCurrentWorker_2>]>;
2210
2572
  entrypoint: z.ZodOptional<z.ZodString>;
2211
2573
  }, "strip", z.ZodTypeAny, {
2212
- name: string | kCurrentWorker;
2574
+ name: string | kCurrentWorker_2;
2213
2575
  entrypoint?: string | undefined;
2214
2576
  }, {
2215
- name: string | kCurrentWorker;
2577
+ name: string | kCurrentWorker_2;
2216
2578
  entrypoint?: string | undefined;
2217
2579
  }>, z.ZodObject<{
2218
2580
  network: z.ZodObject<{
@@ -2232,7 +2594,14 @@ export declare const PLUGINS: {
2232
2594
  requireClientCerts: z.ZodOptional<z.ZodBoolean>;
2233
2595
  trustBrowserCas: z.ZodOptional<z.ZodBoolean>;
2234
2596
  trustedCertificates: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2235
- minVersion: z.ZodOptional<z.ZodNativeEnum<TlsOptions_Version>>;
2597
+ minVersion: z.ZodOptional<z.ZodNativeEnum<{
2598
+ readonly GOOD_DEFAULT: 0;
2599
+ readonly SSL3: 1;
2600
+ readonly TLS1DOT0: 2;
2601
+ readonly TLS1DOT1: 3;
2602
+ readonly TLS1DOT2: 4;
2603
+ readonly TLS1DOT3: 5;
2604
+ }>>;
2236
2605
  cipherList: z.ZodOptional<z.ZodString>;
2237
2606
  }, "strip", z.ZodTypeAny, {
2238
2607
  keypair?: {
@@ -2242,7 +2611,7 @@ export declare const PLUGINS: {
2242
2611
  requireClientCerts?: boolean | undefined;
2243
2612
  trustBrowserCas?: boolean | undefined;
2244
2613
  trustedCertificates?: string[] | undefined;
2245
- minVersion?: TlsOptions_Version | undefined;
2614
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2246
2615
  cipherList?: string | undefined;
2247
2616
  }, {
2248
2617
  keypair?: {
@@ -2252,7 +2621,7 @@ export declare const PLUGINS: {
2252
2621
  requireClientCerts?: boolean | undefined;
2253
2622
  trustBrowserCas?: boolean | undefined;
2254
2623
  trustedCertificates?: string[] | undefined;
2255
- minVersion?: TlsOptions_Version | undefined;
2624
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2256
2625
  cipherList?: string | undefined;
2257
2626
  }>>;
2258
2627
  }, "strip", z.ZodTypeAny, {
@@ -2266,7 +2635,7 @@ export declare const PLUGINS: {
2266
2635
  requireClientCerts?: boolean | undefined;
2267
2636
  trustBrowserCas?: boolean | undefined;
2268
2637
  trustedCertificates?: string[] | undefined;
2269
- minVersion?: TlsOptions_Version | undefined;
2638
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2270
2639
  cipherList?: string | undefined;
2271
2640
  } | undefined;
2272
2641
  }, {
@@ -2280,7 +2649,7 @@ export declare const PLUGINS: {
2280
2649
  requireClientCerts?: boolean | undefined;
2281
2650
  trustBrowserCas?: boolean | undefined;
2282
2651
  trustedCertificates?: string[] | undefined;
2283
- minVersion?: TlsOptions_Version | undefined;
2652
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2284
2653
  cipherList?: string | undefined;
2285
2654
  } | undefined;
2286
2655
  }>;
@@ -2296,7 +2665,7 @@ export declare const PLUGINS: {
2296
2665
  requireClientCerts?: boolean | undefined;
2297
2666
  trustBrowserCas?: boolean | undefined;
2298
2667
  trustedCertificates?: string[] | undefined;
2299
- minVersion?: TlsOptions_Version | undefined;
2668
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2300
2669
  cipherList?: string | undefined;
2301
2670
  } | undefined;
2302
2671
  };
@@ -2312,16 +2681,16 @@ export declare const PLUGINS: {
2312
2681
  requireClientCerts?: boolean | undefined;
2313
2682
  trustBrowserCas?: boolean | undefined;
2314
2683
  trustedCertificates?: string[] | undefined;
2315
- minVersion?: TlsOptions_Version | undefined;
2684
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2316
2685
  cipherList?: string | undefined;
2317
2686
  } | undefined;
2318
2687
  };
2319
2688
  }>, z.ZodObject<{
2320
- external: z.ZodType<ExternalServer, z.ZodTypeDef, ExternalServer>;
2689
+ external: z.ZodType<ExternalServer_3, z.ZodTypeDef, ExternalServer_3>;
2321
2690
  }, "strip", z.ZodTypeAny, {
2322
- external: ExternalServer & (ExternalServer | undefined);
2691
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2323
2692
  }, {
2324
- external: ExternalServer & (ExternalServer | undefined);
2693
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2325
2694
  }>, z.ZodObject<{
2326
2695
  disk: z.ZodObject<{
2327
2696
  path: z.ZodString;
@@ -2343,7 +2712,7 @@ export declare const PLUGINS: {
2343
2712
  path: string;
2344
2713
  writable?: boolean | undefined;
2345
2714
  };
2346
- }>, z.ZodType<(request: Request, mf: Miniflare) => Awaitable<Response>, z.ZodTypeDef, (request: Request, mf: Miniflare) => Awaitable<Response>>]>>;
2715
+ }>, z.ZodType<(request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>, z.ZodTypeDef, (request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>>]>>;
2347
2716
  fetchMock: z.ZodOptional<z.ZodType<MockAgent<MockAgent>, z.ZodTypeDef, MockAgent<MockAgent>>>;
2348
2717
  unsafeEphemeralDurableObjects: z.ZodOptional<z.ZodBoolean>;
2349
2718
  unsafeDirectSockets: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -2364,18 +2733,20 @@ export declare const PLUGINS: {
2364
2733
  }>, "many">>;
2365
2734
  unsafeEvalBinding: z.ZodOptional<z.ZodString>;
2366
2735
  unsafeUseModuleFallbackService: z.ZodOptional<z.ZodBoolean>;
2736
+ hasAssetsAndIsVitest: z.ZodOptional<z.ZodBoolean>;
2737
+ unsafeEnableAssetsRpc: z.ZodOptional<z.ZodBoolean>;
2367
2738
  }, "strip", z.ZodTypeAny, {
2368
2739
  name?: string | undefined;
2369
2740
  rootPath?: undefined;
2370
2741
  compatibilityDate?: string | undefined;
2371
2742
  compatibilityFlags?: string[] | undefined;
2372
2743
  routes?: string[] | undefined;
2373
- bindings?: Record<string, Json> | undefined;
2374
- wasmBindings?: Record<string, string | Uint8Array> | undefined;
2744
+ bindings?: Record<string, Json_2> | undefined;
2745
+ wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
2375
2746
  textBlobBindings?: Record<string, string> | undefined;
2376
- dataBlobBindings?: Record<string, string | Uint8Array> | undefined;
2377
- serviceBindings?: Record<string, string | kCurrentWorker | {
2378
- name: string | kCurrentWorker;
2747
+ dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
2748
+ serviceBindings?: Record<string, string | kCurrentWorker_2 | {
2749
+ name: string | kCurrentWorker_2;
2379
2750
  entrypoint?: string | undefined;
2380
2751
  } | {
2381
2752
  network: {
@@ -2389,25 +2760,25 @@ export declare const PLUGINS: {
2389
2760
  requireClientCerts?: boolean | undefined;
2390
2761
  trustBrowserCas?: boolean | undefined;
2391
2762
  trustedCertificates?: string[] | undefined;
2392
- minVersion?: TlsOptions_Version | undefined;
2763
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2393
2764
  cipherList?: string | undefined;
2394
2765
  } | undefined;
2395
2766
  };
2396
2767
  } | {
2397
- external: ExternalServer & (ExternalServer | undefined);
2768
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2398
2769
  } | {
2399
2770
  disk: {
2400
2771
  path: string;
2401
2772
  writable?: boolean | undefined;
2402
2773
  };
2403
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>)> | undefined;
2774
+ } | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>)> | undefined;
2404
2775
  wrappedBindings?: Record<string, string | {
2405
2776
  scriptName: string;
2406
2777
  entrypoint?: string | undefined;
2407
- bindings?: Record<string, Json> | undefined;
2778
+ bindings?: Record<string, Json_2> | undefined;
2408
2779
  }> | undefined;
2409
- outboundService?: string | kCurrentWorker | {
2410
- name: string | kCurrentWorker;
2780
+ outboundService?: string | kCurrentWorker_2 | {
2781
+ name: string | kCurrentWorker_2;
2411
2782
  entrypoint?: string | undefined;
2412
2783
  } | {
2413
2784
  network: {
@@ -2421,18 +2792,18 @@ export declare const PLUGINS: {
2421
2792
  requireClientCerts?: boolean | undefined;
2422
2793
  trustBrowserCas?: boolean | undefined;
2423
2794
  trustedCertificates?: string[] | undefined;
2424
- minVersion?: TlsOptions_Version | undefined;
2795
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2425
2796
  cipherList?: string | undefined;
2426
2797
  } | undefined;
2427
2798
  };
2428
2799
  } | {
2429
- external: ExternalServer & (ExternalServer | undefined);
2800
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2430
2801
  } | {
2431
2802
  disk: {
2432
2803
  path: string;
2433
2804
  writable?: boolean | undefined;
2434
2805
  };
2435
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
2806
+ } | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
2436
2807
  fetchMock?: MockAgent<MockAgent> | undefined;
2437
2808
  unsafeEphemeralDurableObjects?: boolean | undefined;
2438
2809
  unsafeDirectSockets?: {
@@ -2443,18 +2814,20 @@ export declare const PLUGINS: {
2443
2814
  }[] | undefined;
2444
2815
  unsafeEvalBinding?: string | undefined;
2445
2816
  unsafeUseModuleFallbackService?: boolean | undefined;
2817
+ hasAssetsAndIsVitest?: boolean | undefined;
2818
+ unsafeEnableAssetsRpc?: boolean | undefined;
2446
2819
  }, {
2447
2820
  name?: string | undefined;
2448
2821
  rootPath?: string | undefined;
2449
2822
  compatibilityDate?: string | undefined;
2450
2823
  compatibilityFlags?: string[] | undefined;
2451
2824
  routes?: string[] | undefined;
2452
- bindings?: Record<string, Json> | undefined;
2453
- wasmBindings?: Record<string, string | Uint8Array> | undefined;
2825
+ bindings?: Record<string, Json_2> | undefined;
2826
+ wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
2454
2827
  textBlobBindings?: Record<string, string> | undefined;
2455
- dataBlobBindings?: Record<string, string | Uint8Array> | undefined;
2456
- serviceBindings?: Record<string, string | kCurrentWorker | {
2457
- name: string | kCurrentWorker;
2828
+ dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
2829
+ serviceBindings?: Record<string, string | kCurrentWorker_2 | {
2830
+ name: string | kCurrentWorker_2;
2458
2831
  entrypoint?: string | undefined;
2459
2832
  } | {
2460
2833
  network: {
@@ -2468,25 +2841,25 @@ export declare const PLUGINS: {
2468
2841
  requireClientCerts?: boolean | undefined;
2469
2842
  trustBrowserCas?: boolean | undefined;
2470
2843
  trustedCertificates?: string[] | undefined;
2471
- minVersion?: TlsOptions_Version | undefined;
2844
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2472
2845
  cipherList?: string | undefined;
2473
2846
  } | undefined;
2474
2847
  };
2475
2848
  } | {
2476
- external: ExternalServer & (ExternalServer | undefined);
2849
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2477
2850
  } | {
2478
2851
  disk: {
2479
2852
  path: string;
2480
2853
  writable?: boolean | undefined;
2481
2854
  };
2482
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>)> | undefined;
2855
+ } | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>)> | undefined;
2483
2856
  wrappedBindings?: Record<string, string | {
2484
2857
  scriptName: string;
2485
2858
  entrypoint?: string | undefined;
2486
- bindings?: Record<string, Json> | undefined;
2859
+ bindings?: Record<string, Json_2> | undefined;
2487
2860
  }> | undefined;
2488
- outboundService?: string | kCurrentWorker | {
2489
- name: string | kCurrentWorker;
2861
+ outboundService?: string | kCurrentWorker_2 | {
2862
+ name: string | kCurrentWorker_2;
2490
2863
  entrypoint?: string | undefined;
2491
2864
  } | {
2492
2865
  network: {
@@ -2500,18 +2873,18 @@ export declare const PLUGINS: {
2500
2873
  requireClientCerts?: boolean | undefined;
2501
2874
  trustBrowserCas?: boolean | undefined;
2502
2875
  trustedCertificates?: string[] | undefined;
2503
- minVersion?: TlsOptions_Version | undefined;
2876
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2504
2877
  cipherList?: string | undefined;
2505
2878
  } | undefined;
2506
2879
  };
2507
2880
  } | {
2508
- external: ExternalServer & (ExternalServer | undefined);
2881
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2509
2882
  } | {
2510
2883
  disk: {
2511
2884
  path: string;
2512
2885
  writable?: boolean | undefined;
2513
2886
  };
2514
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
2887
+ } | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
2515
2888
  fetchMock?: MockAgent<MockAgent> | undefined;
2516
2889
  unsafeEphemeralDurableObjects?: boolean | undefined;
2517
2890
  unsafeDirectSockets?: {
@@ -2522,11 +2895,13 @@ export declare const PLUGINS: {
2522
2895
  }[] | undefined;
2523
2896
  unsafeEvalBinding?: string | undefined;
2524
2897
  unsafeUseModuleFallbackService?: boolean | undefined;
2898
+ hasAssetsAndIsVitest?: boolean | undefined;
2899
+ unsafeEnableAssetsRpc?: boolean | undefined;
2525
2900
  }>>, ({
2526
2901
  modules: {
2527
2902
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
2528
2903
  path: string;
2529
- contents?: string | Uint8Array | undefined;
2904
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
2530
2905
  }[];
2531
2906
  modulesRoot?: string | undefined;
2532
2907
  } & {
@@ -2535,12 +2910,12 @@ export declare const PLUGINS: {
2535
2910
  compatibilityDate?: string | undefined;
2536
2911
  compatibilityFlags?: string[] | undefined;
2537
2912
  routes?: string[] | undefined;
2538
- bindings?: Record<string, Json> | undefined;
2539
- wasmBindings?: Record<string, string | Uint8Array> | undefined;
2913
+ bindings?: Record<string, Json_2> | undefined;
2914
+ wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
2540
2915
  textBlobBindings?: Record<string, string> | undefined;
2541
- dataBlobBindings?: Record<string, string | Uint8Array> | undefined;
2542
- serviceBindings?: Record<string, string | kCurrentWorker | {
2543
- name: string | kCurrentWorker;
2916
+ dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
2917
+ serviceBindings?: Record<string, string | kCurrentWorker_2 | {
2918
+ name: string | kCurrentWorker_2;
2544
2919
  entrypoint?: string | undefined;
2545
2920
  } | {
2546
2921
  network: {
@@ -2554,25 +2929,25 @@ export declare const PLUGINS: {
2554
2929
  requireClientCerts?: boolean | undefined;
2555
2930
  trustBrowserCas?: boolean | undefined;
2556
2931
  trustedCertificates?: string[] | undefined;
2557
- minVersion?: TlsOptions_Version | undefined;
2932
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2558
2933
  cipherList?: string | undefined;
2559
2934
  } | undefined;
2560
2935
  };
2561
2936
  } | {
2562
- external: ExternalServer & (ExternalServer | undefined);
2937
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2563
2938
  } | {
2564
2939
  disk: {
2565
2940
  path: string;
2566
2941
  writable?: boolean | undefined;
2567
2942
  };
2568
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>)> | undefined;
2943
+ } | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>)> | undefined;
2569
2944
  wrappedBindings?: Record<string, string | {
2570
2945
  scriptName: string;
2571
2946
  entrypoint?: string | undefined;
2572
- bindings?: Record<string, Json> | undefined;
2947
+ bindings?: Record<string, Json_2> | undefined;
2573
2948
  }> | undefined;
2574
- outboundService?: string | kCurrentWorker | {
2575
- name: string | kCurrentWorker;
2949
+ outboundService?: string | kCurrentWorker_2 | {
2950
+ name: string | kCurrentWorker_2;
2576
2951
  entrypoint?: string | undefined;
2577
2952
  } | {
2578
2953
  network: {
@@ -2586,18 +2961,18 @@ export declare const PLUGINS: {
2586
2961
  requireClientCerts?: boolean | undefined;
2587
2962
  trustBrowserCas?: boolean | undefined;
2588
2963
  trustedCertificates?: string[] | undefined;
2589
- minVersion?: TlsOptions_Version | undefined;
2964
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2590
2965
  cipherList?: string | undefined;
2591
2966
  } | undefined;
2592
2967
  };
2593
2968
  } | {
2594
- external: ExternalServer & (ExternalServer | undefined);
2969
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2595
2970
  } | {
2596
2971
  disk: {
2597
2972
  path: string;
2598
2973
  writable?: boolean | undefined;
2599
2974
  };
2600
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
2975
+ } | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
2601
2976
  fetchMock?: MockAgent<MockAgent> | undefined;
2602
2977
  unsafeEphemeralDurableObjects?: boolean | undefined;
2603
2978
  unsafeDirectSockets?: {
@@ -2608,6 +2983,8 @@ export declare const PLUGINS: {
2608
2983
  }[] | undefined;
2609
2984
  unsafeEvalBinding?: string | undefined;
2610
2985
  unsafeUseModuleFallbackService?: boolean | undefined;
2986
+ hasAssetsAndIsVitest?: boolean | undefined;
2987
+ unsafeEnableAssetsRpc?: boolean | undefined;
2611
2988
  }) | ({
2612
2989
  script: string;
2613
2990
  scriptPath?: string | undefined;
@@ -2624,12 +3001,12 @@ export declare const PLUGINS: {
2624
3001
  compatibilityDate?: string | undefined;
2625
3002
  compatibilityFlags?: string[] | undefined;
2626
3003
  routes?: string[] | undefined;
2627
- bindings?: Record<string, Json> | undefined;
2628
- wasmBindings?: Record<string, string | Uint8Array> | undefined;
3004
+ bindings?: Record<string, Json_2> | undefined;
3005
+ wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
2629
3006
  textBlobBindings?: Record<string, string> | undefined;
2630
- dataBlobBindings?: Record<string, string | Uint8Array> | undefined;
2631
- serviceBindings?: Record<string, string | kCurrentWorker | {
2632
- name: string | kCurrentWorker;
3007
+ dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
3008
+ serviceBindings?: Record<string, string | kCurrentWorker_2 | {
3009
+ name: string | kCurrentWorker_2;
2633
3010
  entrypoint?: string | undefined;
2634
3011
  } | {
2635
3012
  network: {
@@ -2643,25 +3020,25 @@ export declare const PLUGINS: {
2643
3020
  requireClientCerts?: boolean | undefined;
2644
3021
  trustBrowserCas?: boolean | undefined;
2645
3022
  trustedCertificates?: string[] | undefined;
2646
- minVersion?: TlsOptions_Version | undefined;
3023
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2647
3024
  cipherList?: string | undefined;
2648
3025
  } | undefined;
2649
3026
  };
2650
3027
  } | {
2651
- external: ExternalServer & (ExternalServer | undefined);
3028
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2652
3029
  } | {
2653
3030
  disk: {
2654
3031
  path: string;
2655
3032
  writable?: boolean | undefined;
2656
3033
  };
2657
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>)> | undefined;
3034
+ } | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>)> | undefined;
2658
3035
  wrappedBindings?: Record<string, string | {
2659
3036
  scriptName: string;
2660
3037
  entrypoint?: string | undefined;
2661
- bindings?: Record<string, Json> | undefined;
3038
+ bindings?: Record<string, Json_2> | undefined;
2662
3039
  }> | undefined;
2663
- outboundService?: string | kCurrentWorker | {
2664
- name: string | kCurrentWorker;
3040
+ outboundService?: string | kCurrentWorker_2 | {
3041
+ name: string | kCurrentWorker_2;
2665
3042
  entrypoint?: string | undefined;
2666
3043
  } | {
2667
3044
  network: {
@@ -2675,18 +3052,18 @@ export declare const PLUGINS: {
2675
3052
  requireClientCerts?: boolean | undefined;
2676
3053
  trustBrowserCas?: boolean | undefined;
2677
3054
  trustedCertificates?: string[] | undefined;
2678
- minVersion?: TlsOptions_Version | undefined;
3055
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2679
3056
  cipherList?: string | undefined;
2680
3057
  } | undefined;
2681
3058
  };
2682
3059
  } | {
2683
- external: ExternalServer & (ExternalServer | undefined);
3060
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2684
3061
  } | {
2685
3062
  disk: {
2686
3063
  path: string;
2687
3064
  writable?: boolean | undefined;
2688
3065
  };
2689
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
3066
+ } | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
2690
3067
  fetchMock?: MockAgent<MockAgent> | undefined;
2691
3068
  unsafeEphemeralDurableObjects?: boolean | undefined;
2692
3069
  unsafeDirectSockets?: {
@@ -2697,6 +3074,8 @@ export declare const PLUGINS: {
2697
3074
  }[] | undefined;
2698
3075
  unsafeEvalBinding?: string | undefined;
2699
3076
  unsafeUseModuleFallbackService?: boolean | undefined;
3077
+ hasAssetsAndIsVitest?: boolean | undefined;
3078
+ unsafeEnableAssetsRpc?: boolean | undefined;
2700
3079
  }) | ({
2701
3080
  scriptPath: string;
2702
3081
  modules?: boolean | undefined;
@@ -2712,12 +3091,12 @@ export declare const PLUGINS: {
2712
3091
  compatibilityDate?: string | undefined;
2713
3092
  compatibilityFlags?: string[] | undefined;
2714
3093
  routes?: string[] | undefined;
2715
- bindings?: Record<string, Json> | undefined;
2716
- wasmBindings?: Record<string, string | Uint8Array> | undefined;
3094
+ bindings?: Record<string, Json_2> | undefined;
3095
+ wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
2717
3096
  textBlobBindings?: Record<string, string> | undefined;
2718
- dataBlobBindings?: Record<string, string | Uint8Array> | undefined;
2719
- serviceBindings?: Record<string, string | kCurrentWorker | {
2720
- name: string | kCurrentWorker;
3097
+ dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
3098
+ serviceBindings?: Record<string, string | kCurrentWorker_2 | {
3099
+ name: string | kCurrentWorker_2;
2721
3100
  entrypoint?: string | undefined;
2722
3101
  } | {
2723
3102
  network: {
@@ -2731,25 +3110,25 @@ export declare const PLUGINS: {
2731
3110
  requireClientCerts?: boolean | undefined;
2732
3111
  trustBrowserCas?: boolean | undefined;
2733
3112
  trustedCertificates?: string[] | undefined;
2734
- minVersion?: TlsOptions_Version | undefined;
3113
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2735
3114
  cipherList?: string | undefined;
2736
3115
  } | undefined;
2737
3116
  };
2738
3117
  } | {
2739
- external: ExternalServer & (ExternalServer | undefined);
3118
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2740
3119
  } | {
2741
3120
  disk: {
2742
3121
  path: string;
2743
3122
  writable?: boolean | undefined;
2744
3123
  };
2745
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>)> | undefined;
3124
+ } | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>)> | undefined;
2746
3125
  wrappedBindings?: Record<string, string | {
2747
3126
  scriptName: string;
2748
3127
  entrypoint?: string | undefined;
2749
- bindings?: Record<string, Json> | undefined;
3128
+ bindings?: Record<string, Json_2> | undefined;
2750
3129
  }> | undefined;
2751
- outboundService?: string | kCurrentWorker | {
2752
- name: string | kCurrentWorker;
3130
+ outboundService?: string | kCurrentWorker_2 | {
3131
+ name: string | kCurrentWorker_2;
2753
3132
  entrypoint?: string | undefined;
2754
3133
  } | {
2755
3134
  network: {
@@ -2763,18 +3142,18 @@ export declare const PLUGINS: {
2763
3142
  requireClientCerts?: boolean | undefined;
2764
3143
  trustBrowserCas?: boolean | undefined;
2765
3144
  trustedCertificates?: string[] | undefined;
2766
- minVersion?: TlsOptions_Version | undefined;
3145
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2767
3146
  cipherList?: string | undefined;
2768
3147
  } | undefined;
2769
3148
  };
2770
3149
  } | {
2771
- external: ExternalServer & (ExternalServer | undefined);
3150
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2772
3151
  } | {
2773
3152
  disk: {
2774
3153
  path: string;
2775
3154
  writable?: boolean | undefined;
2776
3155
  };
2777
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
3156
+ } | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
2778
3157
  fetchMock?: MockAgent<MockAgent> | undefined;
2779
3158
  unsafeEphemeralDurableObjects?: boolean | undefined;
2780
3159
  unsafeDirectSockets?: {
@@ -2785,11 +3164,13 @@ export declare const PLUGINS: {
2785
3164
  }[] | undefined;
2786
3165
  unsafeEvalBinding?: string | undefined;
2787
3166
  unsafeUseModuleFallbackService?: boolean | undefined;
3167
+ hasAssetsAndIsVitest?: boolean | undefined;
3168
+ unsafeEnableAssetsRpc?: boolean | undefined;
2788
3169
  }), ({
2789
3170
  modules: {
2790
3171
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
2791
3172
  path: string;
2792
- contents?: string | Uint8Array | undefined;
3173
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
2793
3174
  }[];
2794
3175
  modulesRoot?: string | undefined;
2795
3176
  } | {
@@ -2817,12 +3198,12 @@ export declare const PLUGINS: {
2817
3198
  compatibilityDate?: string | undefined;
2818
3199
  compatibilityFlags?: string[] | undefined;
2819
3200
  routes?: string[] | undefined;
2820
- bindings?: Record<string, Json> | undefined;
2821
- wasmBindings?: Record<string, string | Uint8Array> | undefined;
3201
+ bindings?: Record<string, Json_2> | undefined;
3202
+ wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
2822
3203
  textBlobBindings?: Record<string, string> | undefined;
2823
- dataBlobBindings?: Record<string, string | Uint8Array> | undefined;
2824
- serviceBindings?: Record<string, string | kCurrentWorker | {
2825
- name: string | kCurrentWorker;
3204
+ dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
3205
+ serviceBindings?: Record<string, string | kCurrentWorker_2 | {
3206
+ name: string | kCurrentWorker_2;
2826
3207
  entrypoint?: string | undefined;
2827
3208
  } | {
2828
3209
  network: {
@@ -2836,25 +3217,25 @@ export declare const PLUGINS: {
2836
3217
  requireClientCerts?: boolean | undefined;
2837
3218
  trustBrowserCas?: boolean | undefined;
2838
3219
  trustedCertificates?: string[] | undefined;
2839
- minVersion?: TlsOptions_Version | undefined;
3220
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2840
3221
  cipherList?: string | undefined;
2841
3222
  } | undefined;
2842
3223
  };
2843
3224
  } | {
2844
- external: ExternalServer & (ExternalServer | undefined);
3225
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2845
3226
  } | {
2846
3227
  disk: {
2847
3228
  path: string;
2848
3229
  writable?: boolean | undefined;
2849
3230
  };
2850
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>)> | undefined;
3231
+ } | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>)> | undefined;
2851
3232
  wrappedBindings?: Record<string, string | {
2852
3233
  scriptName: string;
2853
3234
  entrypoint?: string | undefined;
2854
- bindings?: Record<string, Json> | undefined;
3235
+ bindings?: Record<string, Json_2> | undefined;
2855
3236
  }> | undefined;
2856
- outboundService?: string | kCurrentWorker | {
2857
- name: string | kCurrentWorker;
3237
+ outboundService?: string | kCurrentWorker_2 | {
3238
+ name: string | kCurrentWorker_2;
2858
3239
  entrypoint?: string | undefined;
2859
3240
  } | {
2860
3241
  network: {
@@ -2868,18 +3249,18 @@ export declare const PLUGINS: {
2868
3249
  requireClientCerts?: boolean | undefined;
2869
3250
  trustBrowserCas?: boolean | undefined;
2870
3251
  trustedCertificates?: string[] | undefined;
2871
- minVersion?: TlsOptions_Version | undefined;
3252
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2872
3253
  cipherList?: string | undefined;
2873
3254
  } | undefined;
2874
3255
  };
2875
3256
  } | {
2876
- external: ExternalServer & (ExternalServer | undefined);
3257
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2877
3258
  } | {
2878
3259
  disk: {
2879
3260
  path: string;
2880
3261
  writable?: boolean | undefined;
2881
3262
  };
2882
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
3263
+ } | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
2883
3264
  fetchMock?: MockAgent<MockAgent> | undefined;
2884
3265
  unsafeEphemeralDurableObjects?: boolean | undefined;
2885
3266
  unsafeDirectSockets?: {
@@ -2890,6 +3271,8 @@ export declare const PLUGINS: {
2890
3271
  }[] | undefined;
2891
3272
  unsafeEvalBinding?: string | undefined;
2892
3273
  unsafeUseModuleFallbackService?: boolean | undefined;
3274
+ hasAssetsAndIsVitest?: boolean | undefined;
3275
+ unsafeEnableAssetsRpc?: boolean | undefined;
2893
3276
  }>, z.ZodObject<{
2894
3277
  rootPath: z.ZodOptional<z.ZodEffects<z.ZodString, undefined, string>>;
2895
3278
  host: z.ZodOptional<z.ZodString>;
@@ -2901,14 +3284,15 @@ export declare const PLUGINS: {
2901
3284
  httpsCertPath: z.ZodOptional<z.ZodString>;
2902
3285
  inspectorPort: z.ZodOptional<z.ZodNumber>;
2903
3286
  verbose: z.ZodOptional<z.ZodBoolean>;
2904
- log: z.ZodOptional<z.ZodType<Log, z.ZodTypeDef, Log>>;
3287
+ log: z.ZodOptional<z.ZodType<Log_2, z.ZodTypeDef, Log_2>>;
2905
3288
  handleRuntimeStdio: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodType<Readable, z.ZodTypeDef, Readable>, z.ZodType<Readable, z.ZodTypeDef, Readable>], null>, z.ZodUnknown>>;
2906
3289
  upstream: z.ZodOptional<z.ZodString>;
2907
3290
  cf: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>;
2908
3291
  liveReload: z.ZodOptional<z.ZodBoolean>;
2909
3292
  unsafeProxySharedSecret: z.ZodOptional<z.ZodString>;
2910
- unsafeModuleFallbackService: z.ZodOptional<z.ZodType<(request: Request, mf: Miniflare) => Awaitable<Response>, z.ZodTypeDef, (request: Request, mf: Miniflare) => Awaitable<Response>>>;
3293
+ unsafeModuleFallbackService: z.ZodOptional<z.ZodType<(request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>, z.ZodTypeDef, (request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>>>;
2911
3294
  unsafeStickyBlobs: z.ZodOptional<z.ZodBoolean>;
3295
+ unsafeEnableAssetsRpc: z.ZodOptional<z.ZodBoolean>;
2912
3296
  }, "strip", z.ZodTypeAny, {
2913
3297
  rootPath?: undefined;
2914
3298
  host?: string | undefined;
@@ -2920,14 +3304,15 @@ export declare const PLUGINS: {
2920
3304
  httpsCertPath?: string | undefined;
2921
3305
  inspectorPort?: number | undefined;
2922
3306
  verbose?: boolean | undefined;
2923
- log?: Log | undefined;
3307
+ log?: Log_2 | undefined;
2924
3308
  handleRuntimeStdio?: ((args_0: Readable, args_1: Readable) => unknown) | undefined;
2925
3309
  upstream?: string | undefined;
2926
3310
  cf?: string | boolean | Record<string, any> | undefined;
2927
3311
  liveReload?: boolean | undefined;
2928
3312
  unsafeProxySharedSecret?: string | undefined;
2929
- unsafeModuleFallbackService?: ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
3313
+ unsafeModuleFallbackService?: ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
2930
3314
  unsafeStickyBlobs?: boolean | undefined;
3315
+ unsafeEnableAssetsRpc?: boolean | undefined;
2931
3316
  }, {
2932
3317
  rootPath?: string | undefined;
2933
3318
  host?: string | undefined;
@@ -2939,16 +3324,17 @@ export declare const PLUGINS: {
2939
3324
  httpsCertPath?: string | undefined;
2940
3325
  inspectorPort?: number | undefined;
2941
3326
  verbose?: boolean | undefined;
2942
- log?: Log | undefined;
3327
+ log?: Log_2 | undefined;
2943
3328
  handleRuntimeStdio?: ((args_0: Readable, args_1: Readable) => unknown) | undefined;
2944
3329
  upstream?: string | undefined;
2945
3330
  cf?: string | boolean | Record<string, any> | undefined;
2946
3331
  liveReload?: boolean | undefined;
2947
3332
  unsafeProxySharedSecret?: string | undefined;
2948
- unsafeModuleFallbackService?: ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
3333
+ unsafeModuleFallbackService?: ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
2949
3334
  unsafeStickyBlobs?: boolean | undefined;
3335
+ unsafeEnableAssetsRpc?: boolean | undefined;
2950
3336
  }>>;
2951
- cache: Plugin<z.ZodObject<{
3337
+ cache: Plugin_2<z.ZodObject<{
2952
3338
  cache: z.ZodOptional<z.ZodBoolean>;
2953
3339
  cacheWarnUsage: z.ZodOptional<z.ZodBoolean>;
2954
3340
  }, "strip", z.ZodTypeAny, {
@@ -2964,7 +3350,7 @@ export declare const PLUGINS: {
2964
3350
  }, {
2965
3351
  cachePersist?: string | boolean | undefined;
2966
3352
  }>>;
2967
- d1: Plugin<z.ZodObject<{
3353
+ d1: Plugin_2<z.ZodObject<{
2968
3354
  d1Databases: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodString, "many">]>>;
2969
3355
  }, "strip", z.ZodTypeAny, {
2970
3356
  d1Databases?: string[] | Record<string, string> | undefined;
@@ -2977,24 +3363,24 @@ export declare const PLUGINS: {
2977
3363
  }, {
2978
3364
  d1Persist?: string | boolean | undefined;
2979
3365
  }>>;
2980
- do: Plugin<z.ZodObject<{
3366
+ do: Plugin_2<z.ZodObject<{
2981
3367
  durableObjects: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
2982
3368
  className: z.ZodString;
2983
3369
  scriptName: z.ZodOptional<z.ZodString>;
2984
3370
  useSQLite: z.ZodOptional<z.ZodBoolean>;
2985
- unsafeUniqueKey: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<kUnsafeEphemeralUniqueKey>]>>;
3371
+ unsafeUniqueKey: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<kUnsafeEphemeralUniqueKey_2>]>>;
2986
3372
  unsafePreventEviction: z.ZodOptional<z.ZodBoolean>;
2987
3373
  }, "strip", z.ZodTypeAny, {
2988
3374
  className: string;
2989
3375
  scriptName?: string | undefined;
2990
3376
  useSQLite?: boolean | undefined;
2991
- unsafeUniqueKey?: string | kUnsafeEphemeralUniqueKey | undefined;
3377
+ unsafeUniqueKey?: string | kUnsafeEphemeralUniqueKey_2 | undefined;
2992
3378
  unsafePreventEviction?: boolean | undefined;
2993
3379
  }, {
2994
3380
  className: string;
2995
3381
  scriptName?: string | undefined;
2996
3382
  useSQLite?: boolean | undefined;
2997
- unsafeUniqueKey?: string | kUnsafeEphemeralUniqueKey | undefined;
3383
+ unsafeUniqueKey?: string | kUnsafeEphemeralUniqueKey_2 | undefined;
2998
3384
  unsafePreventEviction?: boolean | undefined;
2999
3385
  }>]>>>;
3000
3386
  }, "strip", z.ZodTypeAny, {
@@ -3002,7 +3388,7 @@ export declare const PLUGINS: {
3002
3388
  className: string;
3003
3389
  scriptName?: string | undefined;
3004
3390
  useSQLite?: boolean | undefined;
3005
- unsafeUniqueKey?: string | kUnsafeEphemeralUniqueKey | undefined;
3391
+ unsafeUniqueKey?: string | kUnsafeEphemeralUniqueKey_2 | undefined;
3006
3392
  unsafePreventEviction?: boolean | undefined;
3007
3393
  }> | undefined;
3008
3394
  }, {
@@ -3010,7 +3396,7 @@ export declare const PLUGINS: {
3010
3396
  className: string;
3011
3397
  scriptName?: string | undefined;
3012
3398
  useSQLite?: boolean | undefined;
3013
- unsafeUniqueKey?: string | kUnsafeEphemeralUniqueKey | undefined;
3399
+ unsafeUniqueKey?: string | kUnsafeEphemeralUniqueKey_2 | undefined;
3014
3400
  unsafePreventEviction?: boolean | undefined;
3015
3401
  }> | undefined;
3016
3402
  }>, z.ZodObject<{
@@ -3020,7 +3406,7 @@ export declare const PLUGINS: {
3020
3406
  }, {
3021
3407
  durableObjectsPersist?: string | boolean | undefined;
3022
3408
  }>>;
3023
- kv: Plugin<z.ZodObject<{
3409
+ kv: Plugin_2<z.ZodObject<{
3024
3410
  kvNamespaces: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodString, "many">]>>;
3025
3411
  sitePath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
3026
3412
  siteInclude: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -3042,7 +3428,7 @@ export declare const PLUGINS: {
3042
3428
  }, {
3043
3429
  kvPersist?: string | boolean | undefined;
3044
3430
  }>>;
3045
- queues: Plugin<z.ZodObject<{
3431
+ queues: Plugin_2<z.ZodObject<{
3046
3432
  queueProducers: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodObject<{
3047
3433
  queueName: z.ZodString;
3048
3434
  deliveryDelay: z.ZodOptional<z.ZodNumber>;
@@ -3053,22 +3439,39 @@ export declare const PLUGINS: {
3053
3439
  queueName: string;
3054
3440
  deliveryDelay?: number | undefined;
3055
3441
  }>>, z.ZodArray<z.ZodString, "many">, z.ZodRecord<z.ZodString, z.ZodString>]>>;
3056
- queueConsumers: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodObject<{
3442
+ queueConsumers: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
3057
3443
  maxBatchSize: z.ZodOptional<z.ZodNumber>;
3058
3444
  maxBatchTimeout: z.ZodOptional<z.ZodNumber>;
3059
3445
  maxRetires: z.ZodOptional<z.ZodNumber>;
3446
+ maxRetries: z.ZodOptional<z.ZodNumber>;
3060
3447
  deadLetterQueue: z.ZodOptional<z.ZodString>;
3061
3448
  retryDelay: z.ZodOptional<z.ZodNumber>;
3062
3449
  }, "strip", z.ZodTypeAny, {
3063
3450
  maxBatchSize?: number | undefined;
3064
3451
  maxBatchTimeout?: number | undefined;
3065
3452
  maxRetires?: number | undefined;
3453
+ maxRetries?: number | undefined;
3066
3454
  deadLetterQueue?: string | undefined;
3067
3455
  retryDelay?: number | undefined;
3068
3456
  }, {
3069
3457
  maxBatchSize?: number | undefined;
3070
3458
  maxBatchTimeout?: number | undefined;
3071
3459
  maxRetires?: number | undefined;
3460
+ maxRetries?: number | undefined;
3461
+ deadLetterQueue?: string | undefined;
3462
+ retryDelay?: number | undefined;
3463
+ }>, Omit<{
3464
+ maxBatchSize?: number | undefined;
3465
+ maxBatchTimeout?: number | undefined;
3466
+ maxRetires?: number | undefined;
3467
+ maxRetries?: number | undefined;
3468
+ deadLetterQueue?: string | undefined;
3469
+ retryDelay?: number | undefined;
3470
+ }, "maxRetires">, {
3471
+ maxBatchSize?: number | undefined;
3472
+ maxBatchTimeout?: number | undefined;
3473
+ maxRetires?: number | undefined;
3474
+ maxRetries?: number | undefined;
3072
3475
  deadLetterQueue?: string | undefined;
3073
3476
  retryDelay?: number | undefined;
3074
3477
  }>>, z.ZodArray<z.ZodString, "many">]>>;
@@ -3077,13 +3480,14 @@ export declare const PLUGINS: {
3077
3480
  queueName: string;
3078
3481
  deliveryDelay?: number | undefined;
3079
3482
  }> | undefined;
3080
- queueConsumers?: string[] | Record<string, {
3483
+ queueConsumers?: string[] | Record<string, Omit<{
3081
3484
  maxBatchSize?: number | undefined;
3082
3485
  maxBatchTimeout?: number | undefined;
3083
3486
  maxRetires?: number | undefined;
3487
+ maxRetries?: number | undefined;
3084
3488
  deadLetterQueue?: string | undefined;
3085
3489
  retryDelay?: number | undefined;
3086
- }> | undefined;
3490
+ }, "maxRetires">> | undefined;
3087
3491
  }, {
3088
3492
  queueProducers?: string[] | Record<string, string> | Record<string, {
3089
3493
  queueName: string;
@@ -3093,11 +3497,12 @@ export declare const PLUGINS: {
3093
3497
  maxBatchSize?: number | undefined;
3094
3498
  maxBatchTimeout?: number | undefined;
3095
3499
  maxRetires?: number | undefined;
3500
+ maxRetries?: number | undefined;
3096
3501
  deadLetterQueue?: string | undefined;
3097
3502
  retryDelay?: number | undefined;
3098
3503
  }> | undefined;
3099
3504
  }>>;
3100
- r2: Plugin<z.ZodObject<{
3505
+ r2: Plugin_2<z.ZodObject<{
3101
3506
  r2Buckets: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodString, "many">]>>;
3102
3507
  }, "strip", z.ZodTypeAny, {
3103
3508
  r2Buckets?: string[] | Record<string, string> | undefined;
@@ -3110,123 +3515,399 @@ export declare const PLUGINS: {
3110
3515
  }, {
3111
3516
  r2Persist?: string | boolean | undefined;
3112
3517
  }>>;
3113
- hyperdrive: Plugin<z.ZodObject<{
3518
+ hyperdrive: Plugin_2<z.ZodObject<{
3114
3519
  hyperdrives: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodType<URL_2, z.ZodTypeDef, URL_2>]>, URL_2, string | URL_2>>>;
3115
3520
  }, "strip", z.ZodTypeAny, {
3116
3521
  hyperdrives?: Record<string, URL_2> | undefined;
3117
3522
  }, {
3118
3523
  hyperdrives?: Record<string, string | URL_2> | undefined;
3119
3524
  }>>;
3120
- ratelimit: Plugin<z.ZodObject<{
3525
+ ratelimit: Plugin_2<z.ZodObject<{
3121
3526
  ratelimits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3122
3527
  simple: z.ZodObject<{
3123
3528
  limit: z.ZodNumber;
3124
- period: z.ZodOptional<z.ZodNativeEnum<PeriodType>>;
3529
+ period: z.ZodOptional<z.ZodNativeEnum<PeriodType_2>>;
3125
3530
  }, "strip", z.ZodTypeAny, {
3126
3531
  limit: number;
3127
- period?: PeriodType | undefined;
3532
+ period?: PeriodType_2 | undefined;
3128
3533
  }, {
3129
3534
  limit: number;
3130
- period?: PeriodType | undefined;
3535
+ period?: PeriodType_2 | undefined;
3131
3536
  }>;
3132
3537
  }, "strip", z.ZodTypeAny, {
3133
3538
  simple: {
3134
3539
  limit: number;
3135
- period?: PeriodType | undefined;
3540
+ period?: PeriodType_2 | undefined;
3136
3541
  };
3137
3542
  }, {
3138
3543
  simple: {
3139
3544
  limit: number;
3140
- period?: PeriodType | undefined;
3545
+ period?: PeriodType_2 | undefined;
3141
3546
  };
3142
3547
  }>>>;
3143
3548
  }, "strip", z.ZodTypeAny, {
3144
3549
  ratelimits?: Record<string, {
3145
3550
  simple: {
3146
3551
  limit: number;
3147
- period?: PeriodType | undefined;
3552
+ period?: PeriodType_2 | undefined;
3148
3553
  };
3149
3554
  }> | undefined;
3150
3555
  }, {
3151
3556
  ratelimits?: Record<string, {
3152
3557
  simple: {
3153
3558
  limit: number;
3154
- period?: PeriodType | undefined;
3559
+ period?: PeriodType_2 | undefined;
3155
3560
  };
3156
3561
  }> | undefined;
3157
3562
  }>>;
3158
- assets: Plugin<z.ZodObject<{
3563
+ assets: Plugin_2<z.ZodObject<{
3159
3564
  assets: z.ZodOptional<z.ZodObject<{
3160
3565
  workerName: z.ZodOptional<z.ZodString>;
3161
- path: z.ZodEffects<z.ZodString, string, string>;
3162
- bindingName: z.ZodOptional<z.ZodString>;
3163
- routingConfig: z.ZodObject<{
3566
+ directory: z.ZodEffects<z.ZodString, string, string>;
3567
+ binding: z.ZodOptional<z.ZodString>;
3568
+ routerConfig: z.ZodOptional<z.ZodObject<{
3569
+ account_id: z.ZodOptional<z.ZodNumber>;
3570
+ script_id: z.ZodOptional<z.ZodNumber>;
3571
+ invoke_user_worker_ahead_of_assets: z.ZodOptional<z.ZodBoolean>;
3164
3572
  has_user_worker: z.ZodOptional<z.ZodBoolean>;
3165
3573
  }, "strip", z.ZodTypeAny, {
3574
+ account_id?: number;
3575
+ script_id?: number;
3576
+ invoke_user_worker_ahead_of_assets?: boolean;
3166
3577
  has_user_worker?: boolean;
3167
3578
  }, {
3579
+ account_id?: number;
3580
+ script_id?: number;
3581
+ invoke_user_worker_ahead_of_assets?: boolean;
3168
3582
  has_user_worker?: boolean;
3169
- }>;
3170
- assetConfig: z.ZodObject<{
3583
+ }>>;
3584
+ assetConfig: z.ZodOptional<z.ZodObject<{
3585
+ account_id: z.ZodOptional<z.ZodNumber>;
3586
+ script_id: z.ZodOptional<z.ZodNumber>;
3587
+ compatibility_date: z.ZodOptional<z.ZodString>;
3588
+ compatibility_flags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3171
3589
  html_handling: z.ZodOptional<z.ZodEnum<["auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none"]>>;
3172
3590
  not_found_handling: z.ZodOptional<z.ZodEnum<["single-page-application", "404-page", "none"]>>;
3591
+ redirects: z.ZodOptional<z.ZodObject<{
3592
+ version: z.ZodLiteral<1>;
3593
+ staticRules: z.ZodRecord<z.ZodString, z.ZodObject<{
3594
+ status: z.ZodNumber;
3595
+ to: z.ZodString;
3596
+ lineNumber: z.ZodNumber;
3173
3597
  }, "strip", z.ZodTypeAny, {
3598
+ status?: number;
3599
+ to?: string;
3600
+ lineNumber?: number;
3601
+ }, {
3602
+ status?: number;
3603
+ to?: string;
3604
+ lineNumber?: number;
3605
+ }>>;
3606
+ rules: z.ZodRecord<z.ZodString, z.ZodObject<{
3607
+ status: z.ZodNumber;
3608
+ to: z.ZodString;
3609
+ }, "strip", z.ZodTypeAny, {
3610
+ status?: number;
3611
+ to?: string;
3612
+ }, {
3613
+ status?: number;
3614
+ to?: string;
3615
+ }>>;
3616
+ }, "strip", z.ZodTypeAny, {
3617
+ version?: 1;
3618
+ staticRules?: Record<string, {
3619
+ status?: number;
3620
+ to?: string;
3621
+ lineNumber?: number;
3622
+ }>;
3623
+ rules?: Record<string, {
3624
+ status?: number;
3625
+ to?: string;
3626
+ }>;
3627
+ }, {
3628
+ version?: 1;
3629
+ staticRules?: Record<string, {
3630
+ status?: number;
3631
+ to?: string;
3632
+ lineNumber?: number;
3633
+ }>;
3634
+ rules?: Record<string, {
3635
+ status?: number;
3636
+ to?: string;
3637
+ }>;
3638
+ }>>;
3639
+ headers: z.ZodOptional<z.ZodObject<{
3640
+ version: z.ZodLiteral<2>;
3641
+ rules: z.ZodRecord<z.ZodString, z.ZodObject<{
3642
+ set: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3643
+ unset: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3644
+ }, "strip", z.ZodTypeAny, {
3645
+ set?: Record<string, string>;
3646
+ unset?: string[];
3647
+ }, {
3648
+ set?: Record<string, string>;
3649
+ unset?: string[];
3650
+ }>>;
3651
+ }, "strip", z.ZodTypeAny, {
3652
+ version?: 2;
3653
+ rules?: Record<string, {
3654
+ set?: Record<string, string>;
3655
+ unset?: string[];
3656
+ }>;
3657
+ }, {
3658
+ version?: 2;
3659
+ rules?: Record<string, {
3660
+ set?: Record<string, string>;
3661
+ unset?: string[];
3662
+ }>;
3663
+ }>>;
3664
+ }, "strip", z.ZodTypeAny, {
3665
+ account_id?: number;
3666
+ script_id?: number;
3667
+ compatibility_date?: string;
3668
+ compatibility_flags?: string[];
3174
3669
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
3175
3670
  not_found_handling?: "none" | "single-page-application" | "404-page";
3671
+ redirects?: {
3672
+ version?: 1;
3673
+ staticRules?: Record<string, {
3674
+ status?: number;
3675
+ to?: string;
3676
+ lineNumber?: number;
3677
+ }>;
3678
+ rules?: Record<string, {
3679
+ status?: number;
3680
+ to?: string;
3681
+ }>;
3682
+ };
3683
+ headers?: {
3684
+ version?: 2;
3685
+ rules?: Record<string, {
3686
+ set?: Record<string, string>;
3687
+ unset?: string[];
3688
+ }>;
3689
+ };
3176
3690
  }, {
3691
+ account_id?: number;
3692
+ script_id?: number;
3693
+ compatibility_date?: string;
3694
+ compatibility_flags?: string[];
3177
3695
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
3178
3696
  not_found_handling?: "none" | "single-page-application" | "404-page";
3697
+ redirects?: {
3698
+ version?: 1;
3699
+ staticRules?: Record<string, {
3700
+ status?: number;
3701
+ to?: string;
3702
+ lineNumber?: number;
3179
3703
  }>;
3704
+ rules?: Record<string, {
3705
+ status?: number;
3706
+ to?: string;
3707
+ }>;
3708
+ };
3709
+ headers?: {
3710
+ version?: 2;
3711
+ rules?: Record<string, {
3712
+ set?: Record<string, string>;
3713
+ unset?: string[];
3714
+ }>;
3715
+ };
3716
+ }>>;
3180
3717
  }, "strip", z.ZodTypeAny, {
3181
- path: string;
3182
- routingConfig: {
3718
+ directory: string;
3719
+ workerName?: string | undefined;
3720
+ binding?: string | undefined;
3721
+ routerConfig?: {
3722
+ account_id?: number;
3723
+ script_id?: number;
3724
+ invoke_user_worker_ahead_of_assets?: boolean;
3183
3725
  has_user_worker?: boolean;
3184
- };
3185
- assetConfig: {
3726
+ } | undefined;
3727
+ assetConfig?: {
3728
+ account_id?: number;
3729
+ script_id?: number;
3730
+ compatibility_date?: string;
3731
+ compatibility_flags?: string[];
3186
3732
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
3187
3733
  not_found_handling?: "none" | "single-page-application" | "404-page";
3734
+ redirects?: {
3735
+ version?: 1;
3736
+ staticRules?: Record<string, {
3737
+ status?: number;
3738
+ to?: string;
3739
+ lineNumber?: number;
3740
+ }>;
3741
+ rules?: Record<string, {
3742
+ status?: number;
3743
+ to?: string;
3744
+ }>;
3188
3745
  };
3189
- workerName?: string | undefined;
3190
- bindingName?: string | undefined;
3746
+ headers?: {
3747
+ version?: 2;
3748
+ rules?: Record<string, {
3749
+ set?: Record<string, string>;
3750
+ unset?: string[];
3751
+ }>;
3752
+ };
3753
+ } | undefined;
3191
3754
  }, {
3192
- path: string;
3193
- routingConfig: {
3755
+ directory: string;
3756
+ workerName?: string | undefined;
3757
+ binding?: string | undefined;
3758
+ routerConfig?: {
3759
+ account_id?: number;
3760
+ script_id?: number;
3761
+ invoke_user_worker_ahead_of_assets?: boolean;
3194
3762
  has_user_worker?: boolean;
3195
- };
3196
- assetConfig: {
3763
+ } | undefined;
3764
+ assetConfig?: {
3765
+ account_id?: number;
3766
+ script_id?: number;
3767
+ compatibility_date?: string;
3768
+ compatibility_flags?: string[];
3197
3769
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
3198
3770
  not_found_handling?: "none" | "single-page-application" | "404-page";
3771
+ redirects?: {
3772
+ version?: 1;
3773
+ staticRules?: Record<string, {
3774
+ status?: number;
3775
+ to?: string;
3776
+ lineNumber?: number;
3777
+ }>;
3778
+ rules?: Record<string, {
3779
+ status?: number;
3780
+ to?: string;
3781
+ }>;
3199
3782
  };
3200
- workerName?: string | undefined;
3201
- bindingName?: string | undefined;
3783
+ headers?: {
3784
+ version?: 2;
3785
+ rules?: Record<string, {
3786
+ set?: Record<string, string>;
3787
+ unset?: string[];
3788
+ }>;
3789
+ };
3790
+ } | undefined;
3202
3791
  }>>;
3203
3792
  }, "strip", z.ZodTypeAny, {
3204
3793
  assets?: {
3205
- path: string;
3206
- routingConfig: {
3794
+ directory: string;
3795
+ workerName?: string | undefined;
3796
+ binding?: string | undefined;
3797
+ routerConfig?: {
3798
+ account_id?: number;
3799
+ script_id?: number;
3800
+ invoke_user_worker_ahead_of_assets?: boolean;
3207
3801
  has_user_worker?: boolean;
3208
- };
3209
- assetConfig: {
3802
+ } | undefined;
3803
+ assetConfig?: {
3804
+ account_id?: number;
3805
+ script_id?: number;
3806
+ compatibility_date?: string;
3807
+ compatibility_flags?: string[];
3210
3808
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
3211
3809
  not_found_handling?: "none" | "single-page-application" | "404-page";
3810
+ redirects?: {
3811
+ version?: 1;
3812
+ staticRules?: Record<string, {
3813
+ status?: number;
3814
+ to?: string;
3815
+ lineNumber?: number;
3816
+ }>;
3817
+ rules?: Record<string, {
3818
+ status?: number;
3819
+ to?: string;
3820
+ }>;
3212
3821
  };
3213
- workerName?: string | undefined;
3214
- bindingName?: string | undefined;
3822
+ headers?: {
3823
+ version?: 2;
3824
+ rules?: Record<string, {
3825
+ set?: Record<string, string>;
3826
+ unset?: string[];
3827
+ }>;
3828
+ };
3829
+ } | undefined;
3215
3830
  } | undefined;
3216
3831
  }, {
3217
3832
  assets?: {
3218
- path: string;
3219
- routingConfig: {
3833
+ directory: string;
3834
+ workerName?: string | undefined;
3835
+ binding?: string | undefined;
3836
+ routerConfig?: {
3837
+ account_id?: number;
3838
+ script_id?: number;
3839
+ invoke_user_worker_ahead_of_assets?: boolean;
3220
3840
  has_user_worker?: boolean;
3221
- };
3222
- assetConfig: {
3841
+ } | undefined;
3842
+ assetConfig?: {
3843
+ account_id?: number;
3844
+ script_id?: number;
3845
+ compatibility_date?: string;
3846
+ compatibility_flags?: string[];
3223
3847
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
3224
3848
  not_found_handling?: "none" | "single-page-application" | "404-page";
3849
+ redirects?: {
3850
+ version?: 1;
3851
+ staticRules?: Record<string, {
3852
+ status?: number;
3853
+ to?: string;
3854
+ lineNumber?: number;
3855
+ }>;
3856
+ rules?: Record<string, {
3857
+ status?: number;
3858
+ to?: string;
3859
+ }>;
3225
3860
  };
3226
- workerName?: string | undefined;
3227
- bindingName?: string | undefined;
3861
+ headers?: {
3862
+ version?: 2;
3863
+ rules?: Record<string, {
3864
+ set?: Record<string, string>;
3865
+ unset?: string[];
3866
+ }>;
3867
+ };
3868
+ } | undefined;
3228
3869
  } | undefined;
3229
3870
  }>>;
3871
+ workflows: Plugin_2<z.ZodObject<{
3872
+ workflows: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3873
+ name: z.ZodString;
3874
+ className: z.ZodString;
3875
+ scriptName: z.ZodOptional<z.ZodString>;
3876
+ }, "strip", z.ZodTypeAny, {
3877
+ name: string;
3878
+ className: string;
3879
+ scriptName?: string | undefined;
3880
+ }, {
3881
+ name: string;
3882
+ className: string;
3883
+ scriptName?: string | undefined;
3884
+ }>>>;
3885
+ }, "strip", z.ZodTypeAny, {
3886
+ workflows?: Record<string, {
3887
+ name: string;
3888
+ className: string;
3889
+ scriptName?: string | undefined;
3890
+ }> | undefined;
3891
+ }, {
3892
+ workflows?: Record<string, {
3893
+ name: string;
3894
+ className: string;
3895
+ scriptName?: string | undefined;
3896
+ }> | undefined;
3897
+ }>, z.ZodObject<{
3898
+ workflowsPersist: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
3899
+ }, "strip", z.ZodTypeAny, {
3900
+ workflowsPersist?: string | boolean | undefined;
3901
+ }, {
3902
+ workflowsPersist?: string | boolean | undefined;
3903
+ }>>;
3904
+ pipelines: Plugin_2<z.ZodObject<{
3905
+ pipelines: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodString, "many">]>>;
3906
+ }, "strip", z.ZodTypeAny, {
3907
+ pipelines?: string[] | Record<string, string> | undefined;
3908
+ }, {
3909
+ pipelines?: string[] | Record<string, string> | undefined;
3910
+ }>>;
3230
3911
  };
3231
3912
 
3232
3913
  export declare type Plugins = typeof PLUGINS;
@@ -3247,11 +3928,12 @@ export declare interface PluginServicesOptions<Options extends z.ZodType, Shared
3247
3928
  unsafeEphemeralDurableObjects: boolean;
3248
3929
  queueProducers: QueueProducers;
3249
3930
  queueConsumers: QueueConsumers;
3931
+ unsafeEnableAssetsRpc: boolean;
3250
3932
  }
3251
3933
 
3252
3934
  export declare function prefixError(prefix: string, e: any): Error;
3253
3935
 
3254
- export declare function prefixStream(prefix: Uint8Array, stream: ReadableStream_2<Uint8Array>): ReadableStream_2<Uint8Array>;
3936
+ export declare function prefixStream(prefix: Uint8Array, stream: ReadableStream_3<Uint8Array>): ReadableStream_3<Uint8Array>;
3255
3937
 
3256
3938
  export declare const ProxyAddresses: {
3257
3939
  readonly GLOBAL: 0;
@@ -3290,44 +3972,78 @@ export declare const QueueBindings: {
3290
3972
 
3291
3973
  export declare type QueueConsumer = z.infer<typeof QueueConsumerSchema>;
3292
3974
 
3293
- export declare const QueueConsumerOptionsSchema: z.ZodObject<{
3975
+ export declare const QueueConsumerOptionsSchema: z.ZodEffects<z.ZodObject<{
3294
3976
  maxBatchSize: z.ZodOptional<z.ZodNumber>;
3295
3977
  maxBatchTimeout: z.ZodOptional<z.ZodNumber>;
3296
3978
  maxRetires: z.ZodOptional<z.ZodNumber>;
3979
+ maxRetries: z.ZodOptional<z.ZodNumber>;
3297
3980
  deadLetterQueue: z.ZodOptional<z.ZodString>;
3298
3981
  retryDelay: z.ZodOptional<z.ZodNumber>;
3299
3982
  }, "strip", z.ZodTypeAny, {
3300
3983
  maxBatchSize?: number | undefined;
3301
3984
  maxBatchTimeout?: number | undefined;
3302
3985
  maxRetires?: number | undefined;
3986
+ maxRetries?: number | undefined;
3303
3987
  deadLetterQueue?: string | undefined;
3304
3988
  retryDelay?: number | undefined;
3305
3989
  }, {
3306
3990
  maxBatchSize?: number | undefined;
3307
3991
  maxBatchTimeout?: number | undefined;
3308
3992
  maxRetires?: number | undefined;
3993
+ maxRetries?: number | undefined;
3994
+ deadLetterQueue?: string | undefined;
3995
+ retryDelay?: number | undefined;
3996
+ }>, Omit<{
3997
+ maxBatchSize?: number | undefined;
3998
+ maxBatchTimeout?: number | undefined;
3999
+ maxRetires?: number | undefined;
4000
+ maxRetries?: number | undefined;
4001
+ deadLetterQueue?: string | undefined;
4002
+ retryDelay?: number | undefined;
4003
+ }, "maxRetires">, {
4004
+ maxBatchSize?: number | undefined;
4005
+ maxBatchTimeout?: number | undefined;
4006
+ maxRetires?: number | undefined;
4007
+ maxRetries?: number | undefined;
3309
4008
  deadLetterQueue?: string | undefined;
3310
4009
  retryDelay?: number | undefined;
3311
4010
  }>;
3312
4011
 
3313
4012
  export declare type QueueConsumers = Map<string, z.infer<typeof QueueConsumerSchema>>;
3314
4013
 
3315
- export declare const QueueConsumerSchema: z.ZodIntersection<z.ZodObject<{
4014
+ export declare const QueueConsumerSchema: z.ZodIntersection<z.ZodEffects<z.ZodObject<{
3316
4015
  maxBatchSize: z.ZodOptional<z.ZodNumber>;
3317
4016
  maxBatchTimeout: z.ZodOptional<z.ZodNumber>;
3318
4017
  maxRetires: z.ZodOptional<z.ZodNumber>;
4018
+ maxRetries: z.ZodOptional<z.ZodNumber>;
3319
4019
  deadLetterQueue: z.ZodOptional<z.ZodString>;
3320
4020
  retryDelay: z.ZodOptional<z.ZodNumber>;
3321
4021
  }, "strip", z.ZodTypeAny, {
3322
4022
  maxBatchSize?: number | undefined;
3323
4023
  maxBatchTimeout?: number | undefined;
3324
4024
  maxRetires?: number | undefined;
4025
+ maxRetries?: number | undefined;
3325
4026
  deadLetterQueue?: string | undefined;
3326
4027
  retryDelay?: number | undefined;
3327
4028
  }, {
3328
4029
  maxBatchSize?: number | undefined;
3329
4030
  maxBatchTimeout?: number | undefined;
3330
4031
  maxRetires?: number | undefined;
4032
+ maxRetries?: number | undefined;
4033
+ deadLetterQueue?: string | undefined;
4034
+ retryDelay?: number | undefined;
4035
+ }>, Omit<{
4036
+ maxBatchSize?: number | undefined;
4037
+ maxBatchTimeout?: number | undefined;
4038
+ maxRetires?: number | undefined;
4039
+ maxRetries?: number | undefined;
4040
+ deadLetterQueue?: string | undefined;
4041
+ retryDelay?: number | undefined;
4042
+ }, "maxRetires">, {
4043
+ maxBatchSize?: number | undefined;
4044
+ maxBatchTimeout?: number | undefined;
4045
+ maxRetires?: number | undefined;
4046
+ maxRetries?: number | undefined;
3331
4047
  deadLetterQueue?: string | undefined;
3332
4048
  retryDelay?: number | undefined;
3333
4049
  }>, z.ZodObject<{
@@ -3338,22 +4054,39 @@ export declare const QueueConsumerSchema: z.ZodIntersection<z.ZodObject<{
3338
4054
  workerName: string;
3339
4055
  }>>;
3340
4056
 
3341
- export declare const QueueConsumersSchema: z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodObject<{
4057
+ export declare const QueueConsumersSchema: z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
3342
4058
  maxBatchSize: z.ZodOptional<z.ZodNumber>;
3343
4059
  maxBatchTimeout: z.ZodOptional<z.ZodNumber>;
3344
4060
  maxRetires: z.ZodOptional<z.ZodNumber>;
4061
+ maxRetries: z.ZodOptional<z.ZodNumber>;
3345
4062
  deadLetterQueue: z.ZodOptional<z.ZodString>;
3346
4063
  retryDelay: z.ZodOptional<z.ZodNumber>;
3347
4064
  }, "strip", z.ZodTypeAny, {
3348
4065
  maxBatchSize?: number | undefined;
3349
4066
  maxBatchTimeout?: number | undefined;
3350
4067
  maxRetires?: number | undefined;
4068
+ maxRetries?: number | undefined;
3351
4069
  deadLetterQueue?: string | undefined;
3352
4070
  retryDelay?: number | undefined;
3353
4071
  }, {
3354
4072
  maxBatchSize?: number | undefined;
3355
4073
  maxBatchTimeout?: number | undefined;
3356
4074
  maxRetires?: number | undefined;
4075
+ maxRetries?: number | undefined;
4076
+ deadLetterQueue?: string | undefined;
4077
+ retryDelay?: number | undefined;
4078
+ }>, Omit<{
4079
+ maxBatchSize?: number | undefined;
4080
+ maxBatchTimeout?: number | undefined;
4081
+ maxRetires?: number | undefined;
4082
+ maxRetries?: number | undefined;
4083
+ deadLetterQueue?: string | undefined;
4084
+ retryDelay?: number | undefined;
4085
+ }, "maxRetires">, {
4086
+ maxBatchSize?: number | undefined;
4087
+ maxBatchTimeout?: number | undefined;
4088
+ maxRetires?: number | undefined;
4089
+ maxRetries?: number | undefined;
3357
4090
  deadLetterQueue?: string | undefined;
3358
4091
  retryDelay?: number | undefined;
3359
4092
  }>, z.ZodObject<{
@@ -3373,11 +4106,11 @@ export declare type QueueIncomingMessage = z.infer<typeof QueueIncomingMessageSc
3373
4106
  export declare const QueueIncomingMessageSchema: z.ZodObject<{
3374
4107
  contentType: z.ZodDefault<z.ZodEnum<["text", "json", "bytes", "v8"]>>;
3375
4108
  delaySecs: z.ZodOptional<z.ZodNumber>;
3376
- body: z.ZodEffects<z.ZodString, Buffer, string>;
4109
+ body: z.ZodEffects<z.ZodString, Buffer<ArrayBuffer>, string>;
3377
4110
  id: z.ZodOptional<z.ZodString>;
3378
4111
  timestamp: z.ZodOptional<z.ZodNumber>;
3379
4112
  }, "strip", z.ZodTypeAny, {
3380
- body: Buffer;
4113
+ body: Buffer<ArrayBuffer>;
3381
4114
  contentType: "json" | "bytes" | "v8" | "text";
3382
4115
  delaySecs?: number | undefined;
3383
4116
  id?: string | undefined;
@@ -3453,11 +4186,11 @@ export declare const QueuesBatchRequestSchema: z.ZodObject<{
3453
4186
  messages: z.ZodArray<z.ZodObject<{
3454
4187
  contentType: z.ZodDefault<z.ZodEnum<["text", "json", "bytes", "v8"]>>;
3455
4188
  delaySecs: z.ZodOptional<z.ZodNumber>;
3456
- body: z.ZodEffects<z.ZodString, Buffer, string>;
4189
+ body: z.ZodEffects<z.ZodString, Buffer<ArrayBuffer>, string>;
3457
4190
  id: z.ZodOptional<z.ZodString>;
3458
4191
  timestamp: z.ZodOptional<z.ZodNumber>;
3459
4192
  }, "strip", z.ZodTypeAny, {
3460
- body: Buffer;
4193
+ body: Buffer<ArrayBuffer>;
3461
4194
  contentType: "json" | "bytes" | "v8" | "text";
3462
4195
  delaySecs?: number | undefined;
3463
4196
  id?: string | undefined;
@@ -3471,7 +4204,7 @@ export declare const QueuesBatchRequestSchema: z.ZodObject<{
3471
4204
  }>, "many">;
3472
4205
  }, "strip", z.ZodTypeAny, {
3473
4206
  messages: {
3474
- body: Buffer;
4207
+ body: Buffer<ArrayBuffer>;
3475
4208
  contentType: "json" | "bytes" | "v8" | "text";
3476
4209
  delaySecs?: number | undefined;
3477
4210
  id?: string | undefined;
@@ -3503,22 +4236,39 @@ export declare const QueuesOptionsSchema: z.ZodObject<{
3503
4236
  queueName: string;
3504
4237
  deliveryDelay?: number | undefined;
3505
4238
  }>>, z.ZodArray<z.ZodString, "many">, z.ZodRecord<z.ZodString, z.ZodString>]>>;
3506
- queueConsumers: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodObject<{
4239
+ queueConsumers: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
3507
4240
  maxBatchSize: z.ZodOptional<z.ZodNumber>;
3508
4241
  maxBatchTimeout: z.ZodOptional<z.ZodNumber>;
3509
4242
  maxRetires: z.ZodOptional<z.ZodNumber>;
4243
+ maxRetries: z.ZodOptional<z.ZodNumber>;
3510
4244
  deadLetterQueue: z.ZodOptional<z.ZodString>;
3511
4245
  retryDelay: z.ZodOptional<z.ZodNumber>;
3512
4246
  }, "strip", z.ZodTypeAny, {
3513
4247
  maxBatchSize?: number | undefined;
3514
4248
  maxBatchTimeout?: number | undefined;
3515
4249
  maxRetires?: number | undefined;
4250
+ maxRetries?: number | undefined;
3516
4251
  deadLetterQueue?: string | undefined;
3517
4252
  retryDelay?: number | undefined;
3518
4253
  }, {
3519
4254
  maxBatchSize?: number | undefined;
3520
4255
  maxBatchTimeout?: number | undefined;
3521
4256
  maxRetires?: number | undefined;
4257
+ maxRetries?: number | undefined;
4258
+ deadLetterQueue?: string | undefined;
4259
+ retryDelay?: number | undefined;
4260
+ }>, Omit<{
4261
+ maxBatchSize?: number | undefined;
4262
+ maxBatchTimeout?: number | undefined;
4263
+ maxRetires?: number | undefined;
4264
+ maxRetries?: number | undefined;
4265
+ deadLetterQueue?: string | undefined;
4266
+ retryDelay?: number | undefined;
4267
+ }, "maxRetires">, {
4268
+ maxBatchSize?: number | undefined;
4269
+ maxBatchTimeout?: number | undefined;
4270
+ maxRetires?: number | undefined;
4271
+ maxRetries?: number | undefined;
3522
4272
  deadLetterQueue?: string | undefined;
3523
4273
  retryDelay?: number | undefined;
3524
4274
  }>>, z.ZodArray<z.ZodString, "many">]>>;
@@ -3527,13 +4277,14 @@ export declare const QueuesOptionsSchema: z.ZodObject<{
3527
4277
  queueName: string;
3528
4278
  deliveryDelay?: number | undefined;
3529
4279
  }> | undefined;
3530
- queueConsumers?: string[] | Record<string, {
4280
+ queueConsumers?: string[] | Record<string, Omit<{
3531
4281
  maxBatchSize?: number | undefined;
3532
4282
  maxBatchTimeout?: number | undefined;
3533
4283
  maxRetires?: number | undefined;
4284
+ maxRetries?: number | undefined;
3534
4285
  deadLetterQueue?: string | undefined;
3535
4286
  retryDelay?: number | undefined;
3536
- }> | undefined;
4287
+ }, "maxRetires">> | undefined;
3537
4288
  }, {
3538
4289
  queueProducers?: string[] | Record<string, string> | Record<string, {
3539
4290
  queueName: string;
@@ -3543,6 +4294,7 @@ export declare const QueuesOptionsSchema: z.ZodObject<{
3543
4294
  maxBatchSize?: number | undefined;
3544
4295
  maxBatchTimeout?: number | undefined;
3545
4296
  maxRetires?: number | undefined;
4297
+ maxRetries?: number | undefined;
3546
4298
  deadLetterQueue?: string | undefined;
3547
4299
  retryDelay?: number | undefined;
3548
4300
  }> | undefined;
@@ -3636,7 +4388,7 @@ export declare const RatelimitOptionsSchema: z.ZodObject<{
3636
4388
  }> | undefined;
3637
4389
  }>;
3638
4390
 
3639
- export declare function readPrefix(stream: ReadableStream_2<Uint8Array>, prefixLength: number): Promise<[prefix: Buffer, rest: ReadableStream_2<Uint8Array>]>;
4391
+ export declare function readPrefix(stream: ReadableStream_3<Uint8Array>, prefixLength: number): Promise<[prefix: Buffer, rest: ReadableStream_3<Uint8Array>]>;
3640
4392
 
3641
4393
  export declare function reduceError(e: any): JsonError;
3642
4394
 
@@ -3646,17 +4398,18 @@ export declare type ReducersRevivers = Record<string, ReducerReviver>;
3646
4398
 
3647
4399
  export { ReferrerPolicy }
3648
4400
 
3649
- export declare type ReplaceWorkersTypes<T> = T extends Request_3 ? Request : T extends Response_3 ? Response : T extends ReadableStream ? ReadableStream_2 : Required<T> extends Required<RequestInit_3> ? RequestInit : T extends Headers_2 ? Headers : T extends Blob_2 ? Blob_3 : T extends AbortSignal_2 ? AbortSignal : T extends Promise<infer P> ? Promise<ReplaceWorkersTypes<P>> : T extends (...args: infer P) => infer R ? (...args: ReplaceWorkersTypes<P>) => ReplaceWorkersTypes<R> : T extends object ? {
4401
+ export declare type ReplaceWorkersTypes<T> = T extends Request_5 ? Request_2 : T extends Response_5 ? Response_2 : T extends ReadableStream_2 ? ReadableStream_3 : Required<T> extends Required<RequestInit_4> ? RequestInit_2 : T extends Headers_3 ? Headers_2 : T extends Blob_2 ? Blob_3 : T extends AbortSignal_2 ? AbortSignal : T extends Promise<infer P> ? Promise<ReplaceWorkersTypes<P>> : T extends (...args: infer P) => infer R ? (...args: ReplaceWorkersTypes<P>) => ReplaceWorkersTypes<R> : T extends object ? {
3650
4402
  [K in keyof T]: OverloadReplaceWorkersTypes<T[K]>;
3651
4403
  } : T;
3652
4404
 
3653
- export declare class Request<CfType extends RequestInitCfType = RequestInitCfType> extends Request_2 {
4405
+ declare class Request_2<CfType extends RequestInitCfType = RequestInitCfType> extends Request_4 {
3654
4406
  [kCf]?: CfType;
3655
- constructor(input: RequestInfo, init?: RequestInit<CfType>);
4407
+ constructor(input: RequestInfo, init?: RequestInit_2<CfType>);
3656
4408
  get cf(): CfType | undefined;
3657
4409
  /** @ts-expect-error `clone` is actually defined as a method internally */
3658
- clone(): Request<CfType>;
4410
+ clone(): Request_2<CfType>;
3659
4411
  }
4412
+ export { Request_2 as Request }
3660
4413
 
3661
4414
  export { RequestCache }
3662
4415
 
@@ -3666,11 +4419,12 @@ export { RequestDestination }
3666
4419
 
3667
4420
  export { RequestDuplex }
3668
4421
 
3669
- export declare type RequestInfo = RequestInfo_2 | Request;
4422
+ export declare type RequestInfo = RequestInfo_2 | Request_2;
3670
4423
 
3671
- export declare interface RequestInit<CfType extends RequestInitCfType = RequestInitCfType> extends RequestInit_2 {
4424
+ declare interface RequestInit_2<CfType extends RequestInitCfType = RequestInitCfType> extends RequestInit_3 {
3672
4425
  cf?: CfType;
3673
4426
  }
4427
+ export { RequestInit_2 as RequestInit }
3674
4428
 
3675
4429
  export declare type RequestInitCfType = Partial<IncomingRequestCfProperties> | RequestInitCfProperties;
3676
4430
 
@@ -3678,22 +4432,24 @@ export { RequestMode }
3678
4432
 
3679
4433
  export { RequestRedirect }
3680
4434
 
3681
- export declare class Response extends Response_2 {
4435
+ declare class Response_2 extends Response_4 {
3682
4436
  readonly [kWebSocket]: WebSocket | null;
3683
- static error(): Response;
3684
- static redirect(url: string | URL, status: ResponseRedirectStatus): Response;
3685
- static json(data: any, init?: ResponseInit): Response;
3686
- constructor(body?: BodyInit, init?: ResponseInit);
4437
+ static error(): Response_2;
4438
+ static redirect(url: string | URL, status: ResponseRedirectStatus): Response_2;
4439
+ static json(data: any, init?: ResponseInit_2): Response_2;
4440
+ constructor(body?: BodyInit, init?: ResponseInit_2);
3687
4441
  /** @ts-expect-error `status` is actually defined as a getter internally */
3688
4442
  get status(): number;
3689
4443
  get webSocket(): WebSocket | null;
3690
4444
  /** @ts-expect-error `clone` is actually defined as a method internally */
3691
- clone(): Response;
4445
+ clone(): Response_2;
3692
4446
  }
4447
+ export { Response_2 as Response }
3693
4448
 
3694
- export declare interface ResponseInit extends ResponseInit_2 {
4449
+ declare interface ResponseInit_2 extends ResponseInit_3 {
3695
4450
  webSocket?: WebSocket | null;
3696
4451
  }
4452
+ export { ResponseInit_2 as ResponseInit }
3697
4453
 
3698
4454
  export { ResponseRedirectStatus }
3699
4455
 
@@ -3776,7 +4532,7 @@ export declare const SharedHeaders: {
3776
4532
  readonly LOG_LEVEL: "MF-Log-Level";
3777
4533
  };
3778
4534
 
3779
- export declare type SharedOptions = z.input<typeof CORE_PLUGIN.sharedOptions> & z.input<typeof CACHE_PLUGIN.sharedOptions> & z.input<typeof D1_PLUGIN.sharedOptions> & z.input<typeof DURABLE_OBJECTS_PLUGIN.sharedOptions> & z.input<typeof KV_PLUGIN.sharedOptions> & z.input<typeof R2_PLUGIN.sharedOptions>;
4535
+ export declare type SharedOptions = z.input<typeof CORE_PLUGIN.sharedOptions> & z.input<typeof CACHE_PLUGIN.sharedOptions> & z.input<typeof D1_PLUGIN.sharedOptions> & z.input<typeof DURABLE_OBJECTS_PLUGIN.sharedOptions> & z.input<typeof KV_PLUGIN.sharedOptions> & z.input<typeof R2_PLUGIN.sharedOptions> & z.input<typeof WORKFLOWS_PLUGIN.sharedOptions>;
3780
4536
 
3781
4537
  export declare const SiteBindings: {
3782
4538
  readonly KV_NAMESPACE_SITE: "__STATIC_CONTENT";
@@ -3820,29 +4576,29 @@ export declare const SourceOptionsSchema: z.ZodUnion<[z.ZodObject<{
3820
4576
  modules: z.ZodArray<z.ZodObject<{
3821
4577
  type: z.ZodEnum<["ESModule", "CommonJS", "NodeJsCompatModule", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
3822
4578
  path: z.ZodEffects<z.ZodString, string, string>;
3823
- contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>>;
4579
+ contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>;
3824
4580
  }, "strip", z.ZodTypeAny, {
3825
4581
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
3826
4582
  path: string;
3827
- contents?: string | Uint8Array | undefined;
4583
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
3828
4584
  }, {
3829
4585
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
3830
4586
  path: string;
3831
- contents?: string | Uint8Array | undefined;
4587
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
3832
4588
  }>, "many">;
3833
4589
  modulesRoot: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
3834
4590
  }, "strip", z.ZodTypeAny, {
3835
4591
  modules: {
3836
4592
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
3837
4593
  path: string;
3838
- contents?: string | Uint8Array | undefined;
4594
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
3839
4595
  }[];
3840
4596
  modulesRoot?: string | undefined;
3841
4597
  }, {
3842
4598
  modules: {
3843
4599
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
3844
4600
  path: string;
3845
- contents?: string | Uint8Array | undefined;
4601
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
3846
4602
  }[];
3847
4603
  modulesRoot?: string | undefined;
3848
4604
  }>, z.ZodObject<{
@@ -3953,14 +4709,16 @@ export declare interface TlsOptions_Keypair {
3953
4709
  certificateChain?: string;
3954
4710
  }
3955
4711
 
3956
- export declare enum TlsOptions_Version {
3957
- GOOD_DEFAULT = 0,
3958
- SSL3 = 1,
3959
- TLS1DOT0 = 2,
3960
- TLS1DOT1 = 3,
3961
- TLS1DOT2 = 4,
3962
- TLS1DOT3 = 5
3963
- }
4712
+ export declare const TlsOptions_Version: {
4713
+ readonly GOOD_DEFAULT: 0;
4714
+ readonly SSL3: 1;
4715
+ readonly TLS1DOT0: 2;
4716
+ readonly TLS1DOT1: 3;
4717
+ readonly TLS1DOT2: 4;
4718
+ readonly TLS1DOT3: 5;
4719
+ };
4720
+
4721
+ export declare type TlsOptions_Version = (typeof TlsOptions_Version)[keyof typeof TlsOptions_Version];
3964
4722
 
3965
4723
  export declare function _transformsForContentEncodingAndContentType(encoding: string | undefined, type: string | undefined | null): Transform[];
3966
4724
 
@@ -4005,15 +4763,15 @@ export declare class WebSocket extends TypedEventTarget<WebSocketEventMap> {
4005
4763
  [kClosedIncoming]: boolean;
4006
4764
  get readyState(): number;
4007
4765
  accept(): void;
4008
- send(message: ArrayBuffer | string): void;
4009
- [kSend](message: ArrayBuffer | string): void;
4766
+ send(message: string | ArrayBuffer | Uint8Array<ArrayBuffer>): void;
4767
+ [kSend](message: string | ArrayBuffer | Uint8Array<ArrayBuffer>): void;
4010
4768
  close(code?: number, reason?: string): void;
4011
4769
  [kClose](code?: number, reason?: string): void;
4012
4770
  [kError](error?: Error): void;
4013
4771
  }
4014
4772
 
4015
4773
  export declare type WebSocketEventMap = {
4016
- message: MessageEvent;
4774
+ message: MessageEvent_2;
4017
4775
  close: CloseEvent;
4018
4776
  error: ErrorEvent;
4019
4777
  };
@@ -4107,16 +4865,18 @@ export declare type Worker_Binding_CryptoKey_Algorithm = {
4107
4865
  json?: string;
4108
4866
  };
4109
4867
 
4110
- export declare enum Worker_Binding_CryptoKey_Usage {
4111
- ENCRYPT = 0,
4112
- DECRYPT = 1,
4113
- SIGN = 2,
4114
- VERIFY = 3,
4115
- DERIVE_KEY = 4,
4116
- DERIVE_BITS = 5,
4117
- WRAP_KEY = 6,
4118
- UNWRAP_KEY = 7
4119
- }
4868
+ export declare const Worker_Binding_CryptoKey_Usage: {
4869
+ readonly ENCRYPT: 0;
4870
+ readonly DECRYPT: 1;
4871
+ readonly SIGN: 2;
4872
+ readonly VERIFY: 3;
4873
+ readonly DERIVE_KEY: 4;
4874
+ readonly DERIVE_BITS: 5;
4875
+ readonly WRAP_KEY: 6;
4876
+ readonly UNWRAP_KEY: 7;
4877
+ };
4878
+
4879
+ export declare type Worker_Binding_CryptoKey_Usage = (typeof Worker_Binding_CryptoKey_Usage)[keyof typeof Worker_Binding_CryptoKey_Usage];
4120
4880
 
4121
4881
  export declare type Worker_Binding_DurableObjectNamespaceDesignator = {
4122
4882
  className?: string;
@@ -4223,7 +4983,7 @@ export declare type Worker_Module = {
4223
4983
  pythonRequirement?: string;
4224
4984
  });
4225
4985
 
4226
- export declare type WorkerOptions = z.input<typeof CORE_PLUGIN.options> & z.input<typeof CACHE_PLUGIN.options> & z.input<typeof D1_PLUGIN.options> & z.input<typeof DURABLE_OBJECTS_PLUGIN.options> & z.input<typeof KV_PLUGIN.options> & z.input<typeof QUEUES_PLUGIN.options> & z.input<typeof R2_PLUGIN.options> & z.input<typeof HYPERDRIVE_PLUGIN.options> & z.input<typeof RATELIMIT_PLUGIN.options> & z.input<typeof ASSETS_PLUGIN.options>;
4986
+ export declare type WorkerOptions = z.input<typeof CORE_PLUGIN.options> & z.input<typeof CACHE_PLUGIN.options> & z.input<typeof D1_PLUGIN.options> & z.input<typeof DURABLE_OBJECTS_PLUGIN.options> & z.input<typeof KV_PLUGIN.options> & z.input<typeof QUEUES_PLUGIN.options> & z.input<typeof R2_PLUGIN.options> & z.input<typeof HYPERDRIVE_PLUGIN.options> & z.input<typeof RATELIMIT_PLUGIN.options> & z.input<typeof ASSETS_PLUGIN.options> & z.input<typeof WORKFLOWS_PLUGIN.options> & z.input<typeof PIPELINE_PLUGIN.options>;
4227
4987
 
4228
4988
  export declare interface WorkerRoute {
4229
4989
  target: string;
@@ -4236,6 +4996,48 @@ export declare interface WorkerRoute {
4236
4996
  allowPathSuffix: boolean;
4237
4997
  }
4238
4998
 
4999
+ export declare const WORKFLOWS_PLUGIN: Plugin<typeof WorkflowsOptionsSchema, typeof WorkflowsSharedOptionsSchema>;
5000
+
5001
+ export declare const WORKFLOWS_PLUGIN_NAME = "workflows";
5002
+
5003
+ export declare const WORKFLOWS_STORAGE_SERVICE_NAME = "workflows:storage";
5004
+
5005
+ export declare const WorkflowsOptionsSchema: z.ZodObject<{
5006
+ workflows: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
5007
+ name: z.ZodString;
5008
+ className: z.ZodString;
5009
+ scriptName: z.ZodOptional<z.ZodString>;
5010
+ }, "strip", z.ZodTypeAny, {
5011
+ name: string;
5012
+ className: string;
5013
+ scriptName?: string | undefined;
5014
+ }, {
5015
+ name: string;
5016
+ className: string;
5017
+ scriptName?: string | undefined;
5018
+ }>>>;
5019
+ }, "strip", z.ZodTypeAny, {
5020
+ workflows?: Record<string, {
5021
+ name: string;
5022
+ className: string;
5023
+ scriptName?: string | undefined;
5024
+ }> | undefined;
5025
+ }, {
5026
+ workflows?: Record<string, {
5027
+ name: string;
5028
+ className: string;
5029
+ scriptName?: string | undefined;
5030
+ }> | undefined;
5031
+ }>;
5032
+
5033
+ export declare const WorkflowsSharedOptionsSchema: z.ZodObject<{
5034
+ workflowsPersist: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
5035
+ }, "strip", z.ZodTypeAny, {
5036
+ workflowsPersist?: string | boolean | undefined;
5037
+ }, {
5038
+ workflowsPersist?: string | boolean | undefined;
5039
+ }>;
5040
+
4239
5041
  export declare type WrappedBindingNames = Set<string>;
4240
5042
 
4241
5043
  export declare function zAwaitable<T extends z.ZodTypeAny>(type: T): z.ZodUnion<[T, z.ZodPromise<T>]>;