miniflare 0.0.0-e8975a93a → 0.0.0-e94b46ff7

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 +1266 -390
  3. package/dist/src/index.js +11064 -5171
  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 +8788 -93
  8. package/dist/src/workers/assets/assets.worker.js.map +3 -3
  9. package/dist/src/workers/assets/router.worker.js +7913 -6
  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 +9 -7
  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 +24 -21
  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 +1949 -0
  36. package/dist/src/workers/workflows/binding.worker.js.map +6 -0
  37. package/package.json +26 -25
@@ -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,52 +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<{
69
- hasUserWorker: z.ZodBoolean;
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>;
94
+ has_user_worker: z.ZodOptional<z.ZodBoolean>;
70
95
  }, "strip", z.ZodTypeAny, {
71
- hasUserWorker: boolean;
96
+ account_id?: number;
97
+ script_id?: number;
98
+ invoke_user_worker_ahead_of_assets?: boolean;
99
+ has_user_worker?: boolean;
72
100
  }, {
73
- hasUserWorker: boolean;
74
- }>;
101
+ account_id?: number;
102
+ script_id?: number;
103
+ invoke_user_worker_ahead_of_assets?: boolean;
104
+ has_user_worker?: boolean;
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">>;
111
+ html_handling: z.ZodOptional<z.ZodEnum<["auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none"]>>;
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
+ }>>;
186
+ }, "strip", z.ZodTypeAny, {
187
+ account_id?: number;
188
+ script_id?: number;
189
+ compatibility_date?: string;
190
+ compatibility_flags?: string[];
191
+ html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
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
+ };
212
+ }, {
213
+ account_id?: number;
214
+ script_id?: number;
215
+ compatibility_date?: string;
216
+ compatibility_flags?: string[];
217
+ html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
218
+ not_found_handling?: "none" | "single-page-application" | "404-page";
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
+ }>>;
75
239
  }, "strip", z.ZodTypeAny, {
76
- path: string;
77
- routingConfig: {
78
- hasUserWorker: boolean;
79
- };
240
+ directory: string;
80
241
  workerName?: string | undefined;
81
- bindingName?: string | undefined;
242
+ binding?: string | undefined;
243
+ routerConfig?: {
244
+ account_id?: number;
245
+ script_id?: number;
246
+ invoke_user_worker_ahead_of_assets?: boolean;
247
+ has_user_worker?: boolean;
248
+ } | undefined;
249
+ assetConfig?: {
250
+ account_id?: number;
251
+ script_id?: number;
252
+ compatibility_date?: string;
253
+ compatibility_flags?: string[];
254
+ html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
255
+ not_found_handling?: "none" | "single-page-application" | "404-page";
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;
82
276
  }, {
83
- path: string;
84
- routingConfig: {
85
- hasUserWorker: boolean;
86
- };
277
+ directory: string;
87
278
  workerName?: string | undefined;
88
- bindingName?: string | undefined;
279
+ binding?: string | undefined;
280
+ routerConfig?: {
281
+ account_id?: number;
282
+ script_id?: number;
283
+ invoke_user_worker_ahead_of_assets?: boolean;
284
+ has_user_worker?: boolean;
285
+ } | undefined;
286
+ assetConfig?: {
287
+ account_id?: number;
288
+ script_id?: number;
289
+ compatibility_date?: string;
290
+ compatibility_flags?: string[];
291
+ html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
292
+ not_found_handling?: "none" | "single-page-application" | "404-page";
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;
89
313
  }>>;
90
314
  }, "strip", z.ZodTypeAny, {
91
315
  assets?: {
92
- path: string;
93
- routingConfig: {
94
- hasUserWorker: boolean;
95
- };
316
+ directory: string;
96
317
  workerName?: string | undefined;
97
- bindingName?: string | undefined;
318
+ binding?: string | undefined;
319
+ routerConfig?: {
320
+ account_id?: number;
321
+ script_id?: number;
322
+ invoke_user_worker_ahead_of_assets?: boolean;
323
+ has_user_worker?: boolean;
324
+ } | undefined;
325
+ assetConfig?: {
326
+ account_id?: number;
327
+ script_id?: number;
328
+ compatibility_date?: string;
329
+ compatibility_flags?: string[];
330
+ html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
331
+ not_found_handling?: "none" | "single-page-application" | "404-page";
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;
98
352
  } | undefined;
99
353
  }, {
100
354
  assets?: {
101
- path: string;
102
- routingConfig: {
103
- hasUserWorker: boolean;
104
- };
355
+ directory: string;
105
356
  workerName?: string | undefined;
106
- bindingName?: string | undefined;
357
+ binding?: string | undefined;
358
+ routerConfig?: {
359
+ account_id?: number;
360
+ script_id?: number;
361
+ invoke_user_worker_ahead_of_assets?: boolean;
362
+ has_user_worker?: boolean;
363
+ } | undefined;
364
+ assetConfig?: {
365
+ account_id?: number;
366
+ script_id?: number;
367
+ compatibility_date?: string;
368
+ compatibility_flags?: string[];
369
+ html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
370
+ not_found_handling?: "none" | "single-page-application" | "404-page";
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;
107
391
  } | undefined;
108
392
  }>;
109
393
 
@@ -115,7 +399,19 @@ export declare function base64Encode(value: string): string;
115
399
 
116
400
  export { BodyInit }
117
401
 
118
- 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
+ }>;
119
415
 
120
416
  export declare const CACHE_PLUGIN: Plugin<typeof CacheOptionsSchema, typeof CacheSharedOptionsSchema>;
121
417
 
@@ -221,29 +517,29 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
221
517
  modules: z.ZodArray<z.ZodObject<{
222
518
  type: z.ZodEnum<["ESModule", "CommonJS", "NodeJsCompatModule", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
223
519
  path: z.ZodEffects<z.ZodString, string, string>;
224
- 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>>]>>;
225
521
  }, "strip", z.ZodTypeAny, {
226
522
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
227
523
  path: string;
228
- contents?: string | Uint8Array | undefined;
524
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
229
525
  }, {
230
526
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
231
527
  path: string;
232
- contents?: string | Uint8Array | undefined;
528
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
233
529
  }>, "many">;
234
530
  modulesRoot: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
235
531
  }, "strip", z.ZodTypeAny, {
236
532
  modules: {
237
533
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
238
534
  path: string;
239
- contents?: string | Uint8Array | undefined;
535
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
240
536
  }[];
241
537
  modulesRoot?: string | undefined;
242
538
  }, {
243
539
  modules: {
244
540
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
245
541
  path: string;
246
- contents?: string | Uint8Array | undefined;
542
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
247
543
  }[];
248
544
  modulesRoot?: string | undefined;
249
545
  }>, z.ZodObject<{
@@ -324,11 +620,12 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
324
620
  rootPath: z.ZodOptional<z.ZodEffects<z.ZodString, undefined, string>>;
325
621
  compatibilityDate: z.ZodOptional<z.ZodString>;
326
622
  compatibilityFlags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
623
+ unsafeInspectorProxy: z.ZodOptional<z.ZodBoolean>;
327
624
  routes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
328
625
  bindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<Json, z.ZodTypeDef, Json>>>;
329
- wasmBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>>>;
626
+ wasmBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>>;
330
627
  textBlobBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, string, string>>>;
331
- dataBlobBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>>>;
628
+ dataBlobBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>>;
332
629
  serviceBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodLiteral<typeof kCurrentWorker>, z.ZodObject<{
333
630
  name: z.ZodUnion<[z.ZodString, z.ZodLiteral<typeof kCurrentWorker>]>;
334
631
  entrypoint: z.ZodOptional<z.ZodString>;
@@ -356,7 +653,14 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
356
653
  requireClientCerts: z.ZodOptional<z.ZodBoolean>;
357
654
  trustBrowserCas: z.ZodOptional<z.ZodBoolean>;
358
655
  trustedCertificates: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
359
- minVersion: z.ZodOptional<z.ZodNativeEnum<TlsOptions_Version>>;
656
+ minVersion: z.ZodOptional<z.ZodNativeEnum<{
657
+ readonly GOOD_DEFAULT: 0;
658
+ readonly SSL3: 1;
659
+ readonly TLS1DOT0: 2;
660
+ readonly TLS1DOT1: 3;
661
+ readonly TLS1DOT2: 4;
662
+ readonly TLS1DOT3: 5;
663
+ }>>;
360
664
  cipherList: z.ZodOptional<z.ZodString>;
361
665
  }, "strip", z.ZodTypeAny, {
362
666
  keypair?: {
@@ -366,7 +670,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
366
670
  requireClientCerts?: boolean | undefined;
367
671
  trustBrowserCas?: boolean | undefined;
368
672
  trustedCertificates?: string[] | undefined;
369
- minVersion?: TlsOptions_Version | undefined;
673
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
370
674
  cipherList?: string | undefined;
371
675
  }, {
372
676
  keypair?: {
@@ -376,7 +680,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
376
680
  requireClientCerts?: boolean | undefined;
377
681
  trustBrowserCas?: boolean | undefined;
378
682
  trustedCertificates?: string[] | undefined;
379
- minVersion?: TlsOptions_Version | undefined;
683
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
380
684
  cipherList?: string | undefined;
381
685
  }>>;
382
686
  }, "strip", z.ZodTypeAny, {
@@ -390,7 +694,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
390
694
  requireClientCerts?: boolean | undefined;
391
695
  trustBrowserCas?: boolean | undefined;
392
696
  trustedCertificates?: string[] | undefined;
393
- minVersion?: TlsOptions_Version | undefined;
697
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
394
698
  cipherList?: string | undefined;
395
699
  } | undefined;
396
700
  }, {
@@ -404,7 +708,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
404
708
  requireClientCerts?: boolean | undefined;
405
709
  trustBrowserCas?: boolean | undefined;
406
710
  trustedCertificates?: string[] | undefined;
407
- minVersion?: TlsOptions_Version | undefined;
711
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
408
712
  cipherList?: string | undefined;
409
713
  } | undefined;
410
714
  }>;
@@ -420,7 +724,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
420
724
  requireClientCerts?: boolean | undefined;
421
725
  trustBrowserCas?: boolean | undefined;
422
726
  trustedCertificates?: string[] | undefined;
423
- minVersion?: TlsOptions_Version | undefined;
727
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
424
728
  cipherList?: string | undefined;
425
729
  } | undefined;
426
730
  };
@@ -436,16 +740,16 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
436
740
  requireClientCerts?: boolean | undefined;
437
741
  trustBrowserCas?: boolean | undefined;
438
742
  trustedCertificates?: string[] | undefined;
439
- minVersion?: TlsOptions_Version | undefined;
743
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
440
744
  cipherList?: string | undefined;
441
745
  } | undefined;
442
746
  };
443
747
  }>, z.ZodObject<{
444
- external: z.ZodType<ExternalServer, z.ZodTypeDef, ExternalServer>;
748
+ external: z.ZodType<ExternalServer_2, z.ZodTypeDef, ExternalServer_2>;
445
749
  }, "strip", z.ZodTypeAny, {
446
- external: ExternalServer & (ExternalServer | undefined);
750
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
447
751
  }, {
448
- external: ExternalServer & (ExternalServer | undefined);
752
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
449
753
  }>, z.ZodObject<{
450
754
  disk: z.ZodObject<{
451
755
  path: z.ZodString;
@@ -467,7 +771,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
467
771
  path: string;
468
772
  writable?: boolean | undefined;
469
773
  };
470
- }>, z.ZodType<(request: Request, mf: Miniflare) => Awaitable<Response>, z.ZodTypeDef, (request: Request, mf: Miniflare) => Awaitable<Response>>]>>>;
774
+ }>, z.ZodType<(request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>, z.ZodTypeDef, (request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>>]>>>;
471
775
  wrappedBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
472
776
  scriptName: z.ZodString;
473
777
  entrypoint: z.ZodOptional<z.ZodString>;
@@ -508,7 +812,14 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
508
812
  requireClientCerts: z.ZodOptional<z.ZodBoolean>;
509
813
  trustBrowserCas: z.ZodOptional<z.ZodBoolean>;
510
814
  trustedCertificates: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
511
- minVersion: z.ZodOptional<z.ZodNativeEnum<TlsOptions_Version>>;
815
+ minVersion: z.ZodOptional<z.ZodNativeEnum<{
816
+ readonly GOOD_DEFAULT: 0;
817
+ readonly SSL3: 1;
818
+ readonly TLS1DOT0: 2;
819
+ readonly TLS1DOT1: 3;
820
+ readonly TLS1DOT2: 4;
821
+ readonly TLS1DOT3: 5;
822
+ }>>;
512
823
  cipherList: z.ZodOptional<z.ZodString>;
513
824
  }, "strip", z.ZodTypeAny, {
514
825
  keypair?: {
@@ -518,7 +829,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
518
829
  requireClientCerts?: boolean | undefined;
519
830
  trustBrowserCas?: boolean | undefined;
520
831
  trustedCertificates?: string[] | undefined;
521
- minVersion?: TlsOptions_Version | undefined;
832
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
522
833
  cipherList?: string | undefined;
523
834
  }, {
524
835
  keypair?: {
@@ -528,7 +839,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
528
839
  requireClientCerts?: boolean | undefined;
529
840
  trustBrowserCas?: boolean | undefined;
530
841
  trustedCertificates?: string[] | undefined;
531
- minVersion?: TlsOptions_Version | undefined;
842
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
532
843
  cipherList?: string | undefined;
533
844
  }>>;
534
845
  }, "strip", z.ZodTypeAny, {
@@ -542,7 +853,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
542
853
  requireClientCerts?: boolean | undefined;
543
854
  trustBrowserCas?: boolean | undefined;
544
855
  trustedCertificates?: string[] | undefined;
545
- minVersion?: TlsOptions_Version | undefined;
856
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
546
857
  cipherList?: string | undefined;
547
858
  } | undefined;
548
859
  }, {
@@ -556,7 +867,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
556
867
  requireClientCerts?: boolean | undefined;
557
868
  trustBrowserCas?: boolean | undefined;
558
869
  trustedCertificates?: string[] | undefined;
559
- minVersion?: TlsOptions_Version | undefined;
870
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
560
871
  cipherList?: string | undefined;
561
872
  } | undefined;
562
873
  }>;
@@ -572,7 +883,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
572
883
  requireClientCerts?: boolean | undefined;
573
884
  trustBrowserCas?: boolean | undefined;
574
885
  trustedCertificates?: string[] | undefined;
575
- minVersion?: TlsOptions_Version | undefined;
886
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
576
887
  cipherList?: string | undefined;
577
888
  } | undefined;
578
889
  };
@@ -588,16 +899,16 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
588
899
  requireClientCerts?: boolean | undefined;
589
900
  trustBrowserCas?: boolean | undefined;
590
901
  trustedCertificates?: string[] | undefined;
591
- minVersion?: TlsOptions_Version | undefined;
902
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
592
903
  cipherList?: string | undefined;
593
904
  } | undefined;
594
905
  };
595
906
  }>, z.ZodObject<{
596
- external: z.ZodType<ExternalServer, z.ZodTypeDef, ExternalServer>;
907
+ external: z.ZodType<ExternalServer_2, z.ZodTypeDef, ExternalServer_2>;
597
908
  }, "strip", z.ZodTypeAny, {
598
- external: ExternalServer & (ExternalServer | undefined);
909
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
599
910
  }, {
600
- external: ExternalServer & (ExternalServer | undefined);
911
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
601
912
  }>, z.ZodObject<{
602
913
  disk: z.ZodObject<{
603
914
  path: z.ZodString;
@@ -619,7 +930,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
619
930
  path: string;
620
931
  writable?: boolean | undefined;
621
932
  };
622
- }>, z.ZodType<(request: Request, mf: Miniflare) => Awaitable<Response>, z.ZodTypeDef, (request: Request, mf: Miniflare) => Awaitable<Response>>]>>;
933
+ }>, z.ZodType<(request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>, z.ZodTypeDef, (request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>>]>>;
623
934
  fetchMock: z.ZodOptional<z.ZodType<MockAgent<MockAgent.Options>, z.ZodTypeDef, MockAgent<MockAgent.Options>>>;
624
935
  unsafeEphemeralDurableObjects: z.ZodOptional<z.ZodBoolean>;
625
936
  unsafeDirectSockets: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -640,16 +951,23 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
640
951
  }>, "many">>;
641
952
  unsafeEvalBinding: z.ZodOptional<z.ZodString>;
642
953
  unsafeUseModuleFallbackService: z.ZodOptional<z.ZodBoolean>;
954
+ /** Used to set the vitest pool worker SELF binding to point to the Router Worker if there are assets.
955
+ (If there are assets but we're not using vitest, the miniflare entry worker can point directly to
956
+ Router Worker)
957
+ */
958
+ hasAssetsAndIsVitest: z.ZodOptional<z.ZodBoolean>;
959
+ unsafeEnableAssetsRpc: z.ZodOptional<z.ZodBoolean>;
643
960
  }, "strip", z.ZodTypeAny, {
644
961
  name?: string | undefined;
645
962
  rootPath?: undefined;
646
963
  compatibilityDate?: string | undefined;
647
964
  compatibilityFlags?: string[] | undefined;
965
+ unsafeInspectorProxy?: boolean | undefined;
648
966
  routes?: string[] | undefined;
649
967
  bindings?: Record<string, Json> | undefined;
650
- wasmBindings?: Record<string, string | Uint8Array> | undefined;
968
+ wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
651
969
  textBlobBindings?: Record<string, string> | undefined;
652
- dataBlobBindings?: Record<string, string | Uint8Array> | undefined;
970
+ dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
653
971
  serviceBindings?: Record<string, string | typeof kCurrentWorker | {
654
972
  name: string | typeof kCurrentWorker;
655
973
  entrypoint?: string | undefined;
@@ -665,18 +983,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
665
983
  requireClientCerts?: boolean | undefined;
666
984
  trustBrowserCas?: boolean | undefined;
667
985
  trustedCertificates?: string[] | undefined;
668
- minVersion?: TlsOptions_Version | undefined;
986
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
669
987
  cipherList?: string | undefined;
670
988
  } | undefined;
671
989
  };
672
990
  } | {
673
- external: ExternalServer & (ExternalServer | undefined);
991
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
674
992
  } | {
675
993
  disk: {
676
994
  path: string;
677
995
  writable?: boolean | undefined;
678
996
  };
679
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>)> | undefined;
997
+ } | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>)> | undefined;
680
998
  wrappedBindings?: Record<string, string | {
681
999
  scriptName: string;
682
1000
  entrypoint?: string | undefined;
@@ -697,18 +1015,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
697
1015
  requireClientCerts?: boolean | undefined;
698
1016
  trustBrowserCas?: boolean | undefined;
699
1017
  trustedCertificates?: string[] | undefined;
700
- minVersion?: TlsOptions_Version | undefined;
1018
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
701
1019
  cipherList?: string | undefined;
702
1020
  } | undefined;
703
1021
  };
704
1022
  } | {
705
- external: ExternalServer & (ExternalServer | undefined);
1023
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
706
1024
  } | {
707
1025
  disk: {
708
1026
  path: string;
709
1027
  writable?: boolean | undefined;
710
1028
  };
711
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
1029
+ } | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
712
1030
  fetchMock?: MockAgent<MockAgent.Options> | undefined;
713
1031
  unsafeEphemeralDurableObjects?: boolean | undefined;
714
1032
  unsafeDirectSockets?: {
@@ -719,16 +1037,19 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
719
1037
  }[] | undefined;
720
1038
  unsafeEvalBinding?: string | undefined;
721
1039
  unsafeUseModuleFallbackService?: boolean | undefined;
1040
+ hasAssetsAndIsVitest?: boolean | undefined;
1041
+ unsafeEnableAssetsRpc?: boolean | undefined;
722
1042
  }, {
723
1043
  name?: string | undefined;
724
1044
  rootPath?: string | undefined;
725
1045
  compatibilityDate?: string | undefined;
726
1046
  compatibilityFlags?: string[] | undefined;
1047
+ unsafeInspectorProxy?: boolean | undefined;
727
1048
  routes?: string[] | undefined;
728
1049
  bindings?: Record<string, Json> | undefined;
729
- wasmBindings?: Record<string, string | Uint8Array> | undefined;
1050
+ wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
730
1051
  textBlobBindings?: Record<string, string> | undefined;
731
- dataBlobBindings?: Record<string, string | Uint8Array> | undefined;
1052
+ dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
732
1053
  serviceBindings?: Record<string, string | typeof kCurrentWorker | {
733
1054
  name: string | typeof kCurrentWorker;
734
1055
  entrypoint?: string | undefined;
@@ -744,18 +1065,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
744
1065
  requireClientCerts?: boolean | undefined;
745
1066
  trustBrowserCas?: boolean | undefined;
746
1067
  trustedCertificates?: string[] | undefined;
747
- minVersion?: TlsOptions_Version | undefined;
1068
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
748
1069
  cipherList?: string | undefined;
749
1070
  } | undefined;
750
1071
  };
751
1072
  } | {
752
- external: ExternalServer & (ExternalServer | undefined);
1073
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
753
1074
  } | {
754
1075
  disk: {
755
1076
  path: string;
756
1077
  writable?: boolean | undefined;
757
1078
  };
758
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>)> | undefined;
1079
+ } | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>)> | undefined;
759
1080
  wrappedBindings?: Record<string, string | {
760
1081
  scriptName: string;
761
1082
  entrypoint?: string | undefined;
@@ -776,18 +1097,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
776
1097
  requireClientCerts?: boolean | undefined;
777
1098
  trustBrowserCas?: boolean | undefined;
778
1099
  trustedCertificates?: string[] | undefined;
779
- minVersion?: TlsOptions_Version | undefined;
1100
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
780
1101
  cipherList?: string | undefined;
781
1102
  } | undefined;
782
1103
  };
783
1104
  } | {
784
- external: ExternalServer & (ExternalServer | undefined);
1105
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
785
1106
  } | {
786
1107
  disk: {
787
1108
  path: string;
788
1109
  writable?: boolean | undefined;
789
1110
  };
790
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
1111
+ } | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
791
1112
  fetchMock?: MockAgent<MockAgent.Options> | undefined;
792
1113
  unsafeEphemeralDurableObjects?: boolean | undefined;
793
1114
  unsafeDirectSockets?: {
@@ -798,11 +1119,13 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
798
1119
  }[] | undefined;
799
1120
  unsafeEvalBinding?: string | undefined;
800
1121
  unsafeUseModuleFallbackService?: boolean | undefined;
1122
+ hasAssetsAndIsVitest?: boolean | undefined;
1123
+ unsafeEnableAssetsRpc?: boolean | undefined;
801
1124
  }>>, ({
802
1125
  modules: {
803
1126
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
804
1127
  path: string;
805
- contents?: string | Uint8Array | undefined;
1128
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
806
1129
  }[];
807
1130
  modulesRoot?: string | undefined;
808
1131
  } & {
@@ -810,11 +1133,12 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
810
1133
  rootPath?: undefined;
811
1134
  compatibilityDate?: string | undefined;
812
1135
  compatibilityFlags?: string[] | undefined;
1136
+ unsafeInspectorProxy?: boolean | undefined;
813
1137
  routes?: string[] | undefined;
814
1138
  bindings?: Record<string, Json> | undefined;
815
- wasmBindings?: Record<string, string | Uint8Array> | undefined;
1139
+ wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
816
1140
  textBlobBindings?: Record<string, string> | undefined;
817
- dataBlobBindings?: Record<string, string | Uint8Array> | undefined;
1141
+ dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
818
1142
  serviceBindings?: Record<string, string | typeof kCurrentWorker | {
819
1143
  name: string | typeof kCurrentWorker;
820
1144
  entrypoint?: string | undefined;
@@ -830,18 +1154,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
830
1154
  requireClientCerts?: boolean | undefined;
831
1155
  trustBrowserCas?: boolean | undefined;
832
1156
  trustedCertificates?: string[] | undefined;
833
- minVersion?: TlsOptions_Version | undefined;
1157
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
834
1158
  cipherList?: string | undefined;
835
1159
  } | undefined;
836
1160
  };
837
1161
  } | {
838
- external: ExternalServer & (ExternalServer | undefined);
1162
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
839
1163
  } | {
840
1164
  disk: {
841
1165
  path: string;
842
1166
  writable?: boolean | undefined;
843
1167
  };
844
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>)> | undefined;
1168
+ } | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>)> | undefined;
845
1169
  wrappedBindings?: Record<string, string | {
846
1170
  scriptName: string;
847
1171
  entrypoint?: string | undefined;
@@ -862,18 +1186,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
862
1186
  requireClientCerts?: boolean | undefined;
863
1187
  trustBrowserCas?: boolean | undefined;
864
1188
  trustedCertificates?: string[] | undefined;
865
- minVersion?: TlsOptions_Version | undefined;
1189
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
866
1190
  cipherList?: string | undefined;
867
1191
  } | undefined;
868
1192
  };
869
1193
  } | {
870
- external: ExternalServer & (ExternalServer | undefined);
1194
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
871
1195
  } | {
872
1196
  disk: {
873
1197
  path: string;
874
1198
  writable?: boolean | undefined;
875
1199
  };
876
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
1200
+ } | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
877
1201
  fetchMock?: MockAgent<MockAgent.Options> | undefined;
878
1202
  unsafeEphemeralDurableObjects?: boolean | undefined;
879
1203
  unsafeDirectSockets?: {
@@ -884,6 +1208,8 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
884
1208
  }[] | undefined;
885
1209
  unsafeEvalBinding?: string | undefined;
886
1210
  unsafeUseModuleFallbackService?: boolean | undefined;
1211
+ hasAssetsAndIsVitest?: boolean | undefined;
1212
+ unsafeEnableAssetsRpc?: boolean | undefined;
887
1213
  }) | ({
888
1214
  script: string;
889
1215
  scriptPath?: string | undefined;
@@ -899,11 +1225,12 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
899
1225
  rootPath?: undefined;
900
1226
  compatibilityDate?: string | undefined;
901
1227
  compatibilityFlags?: string[] | undefined;
1228
+ unsafeInspectorProxy?: boolean | undefined;
902
1229
  routes?: string[] | undefined;
903
1230
  bindings?: Record<string, Json> | undefined;
904
- wasmBindings?: Record<string, string | Uint8Array> | undefined;
1231
+ wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
905
1232
  textBlobBindings?: Record<string, string> | undefined;
906
- dataBlobBindings?: Record<string, string | Uint8Array> | undefined;
1233
+ dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
907
1234
  serviceBindings?: Record<string, string | typeof kCurrentWorker | {
908
1235
  name: string | typeof kCurrentWorker;
909
1236
  entrypoint?: string | undefined;
@@ -919,18 +1246,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
919
1246
  requireClientCerts?: boolean | undefined;
920
1247
  trustBrowserCas?: boolean | undefined;
921
1248
  trustedCertificates?: string[] | undefined;
922
- minVersion?: TlsOptions_Version | undefined;
1249
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
923
1250
  cipherList?: string | undefined;
924
1251
  } | undefined;
925
1252
  };
926
1253
  } | {
927
- external: ExternalServer & (ExternalServer | undefined);
1254
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
928
1255
  } | {
929
1256
  disk: {
930
1257
  path: string;
931
1258
  writable?: boolean | undefined;
932
1259
  };
933
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>)> | undefined;
1260
+ } | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>)> | undefined;
934
1261
  wrappedBindings?: Record<string, string | {
935
1262
  scriptName: string;
936
1263
  entrypoint?: string | undefined;
@@ -951,18 +1278,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
951
1278
  requireClientCerts?: boolean | undefined;
952
1279
  trustBrowserCas?: boolean | undefined;
953
1280
  trustedCertificates?: string[] | undefined;
954
- minVersion?: TlsOptions_Version | undefined;
1281
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
955
1282
  cipherList?: string | undefined;
956
1283
  } | undefined;
957
1284
  };
958
1285
  } | {
959
- external: ExternalServer & (ExternalServer | undefined);
1286
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
960
1287
  } | {
961
1288
  disk: {
962
1289
  path: string;
963
1290
  writable?: boolean | undefined;
964
1291
  };
965
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
1292
+ } | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
966
1293
  fetchMock?: MockAgent<MockAgent.Options> | undefined;
967
1294
  unsafeEphemeralDurableObjects?: boolean | undefined;
968
1295
  unsafeDirectSockets?: {
@@ -973,6 +1300,8 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
973
1300
  }[] | undefined;
974
1301
  unsafeEvalBinding?: string | undefined;
975
1302
  unsafeUseModuleFallbackService?: boolean | undefined;
1303
+ hasAssetsAndIsVitest?: boolean | undefined;
1304
+ unsafeEnableAssetsRpc?: boolean | undefined;
976
1305
  }) | ({
977
1306
  scriptPath: string;
978
1307
  modules?: boolean | undefined;
@@ -987,11 +1316,12 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
987
1316
  rootPath?: undefined;
988
1317
  compatibilityDate?: string | undefined;
989
1318
  compatibilityFlags?: string[] | undefined;
1319
+ unsafeInspectorProxy?: boolean | undefined;
990
1320
  routes?: string[] | undefined;
991
1321
  bindings?: Record<string, Json> | undefined;
992
- wasmBindings?: Record<string, string | Uint8Array> | undefined;
1322
+ wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
993
1323
  textBlobBindings?: Record<string, string> | undefined;
994
- dataBlobBindings?: Record<string, string | Uint8Array> | undefined;
1324
+ dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
995
1325
  serviceBindings?: Record<string, string | typeof kCurrentWorker | {
996
1326
  name: string | typeof kCurrentWorker;
997
1327
  entrypoint?: string | undefined;
@@ -1007,18 +1337,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1007
1337
  requireClientCerts?: boolean | undefined;
1008
1338
  trustBrowserCas?: boolean | undefined;
1009
1339
  trustedCertificates?: string[] | undefined;
1010
- minVersion?: TlsOptions_Version | undefined;
1340
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
1011
1341
  cipherList?: string | undefined;
1012
1342
  } | undefined;
1013
1343
  };
1014
1344
  } | {
1015
- external: ExternalServer & (ExternalServer | undefined);
1345
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
1016
1346
  } | {
1017
1347
  disk: {
1018
1348
  path: string;
1019
1349
  writable?: boolean | undefined;
1020
1350
  };
1021
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>)> | undefined;
1351
+ } | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>)> | undefined;
1022
1352
  wrappedBindings?: Record<string, string | {
1023
1353
  scriptName: string;
1024
1354
  entrypoint?: string | undefined;
@@ -1039,18 +1369,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1039
1369
  requireClientCerts?: boolean | undefined;
1040
1370
  trustBrowserCas?: boolean | undefined;
1041
1371
  trustedCertificates?: string[] | undefined;
1042
- minVersion?: TlsOptions_Version | undefined;
1372
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
1043
1373
  cipherList?: string | undefined;
1044
1374
  } | undefined;
1045
1375
  };
1046
1376
  } | {
1047
- external: ExternalServer & (ExternalServer | undefined);
1377
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
1048
1378
  } | {
1049
1379
  disk: {
1050
1380
  path: string;
1051
1381
  writable?: boolean | undefined;
1052
1382
  };
1053
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
1383
+ } | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
1054
1384
  fetchMock?: MockAgent<MockAgent.Options> | undefined;
1055
1385
  unsafeEphemeralDurableObjects?: boolean | undefined;
1056
1386
  unsafeDirectSockets?: {
@@ -1061,11 +1391,13 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1061
1391
  }[] | undefined;
1062
1392
  unsafeEvalBinding?: string | undefined;
1063
1393
  unsafeUseModuleFallbackService?: boolean | undefined;
1394
+ hasAssetsAndIsVitest?: boolean | undefined;
1395
+ unsafeEnableAssetsRpc?: boolean | undefined;
1064
1396
  }), ({
1065
1397
  modules: {
1066
1398
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
1067
1399
  path: string;
1068
- contents?: string | Uint8Array | undefined;
1400
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
1069
1401
  }[];
1070
1402
  modulesRoot?: string | undefined;
1071
1403
  } | {
@@ -1092,11 +1424,12 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1092
1424
  rootPath?: string | undefined;
1093
1425
  compatibilityDate?: string | undefined;
1094
1426
  compatibilityFlags?: string[] | undefined;
1427
+ unsafeInspectorProxy?: boolean | undefined;
1095
1428
  routes?: string[] | undefined;
1096
1429
  bindings?: Record<string, Json> | undefined;
1097
- wasmBindings?: Record<string, string | Uint8Array> | undefined;
1430
+ wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
1098
1431
  textBlobBindings?: Record<string, string> | undefined;
1099
- dataBlobBindings?: Record<string, string | Uint8Array> | undefined;
1432
+ dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
1100
1433
  serviceBindings?: Record<string, string | typeof kCurrentWorker | {
1101
1434
  name: string | typeof kCurrentWorker;
1102
1435
  entrypoint?: string | undefined;
@@ -1112,18 +1445,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1112
1445
  requireClientCerts?: boolean | undefined;
1113
1446
  trustBrowserCas?: boolean | undefined;
1114
1447
  trustedCertificates?: string[] | undefined;
1115
- minVersion?: TlsOptions_Version | undefined;
1448
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
1116
1449
  cipherList?: string | undefined;
1117
1450
  } | undefined;
1118
1451
  };
1119
1452
  } | {
1120
- external: ExternalServer & (ExternalServer | undefined);
1453
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
1121
1454
  } | {
1122
1455
  disk: {
1123
1456
  path: string;
1124
1457
  writable?: boolean | undefined;
1125
1458
  };
1126
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>)> | undefined;
1459
+ } | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>)> | undefined;
1127
1460
  wrappedBindings?: Record<string, string | {
1128
1461
  scriptName: string;
1129
1462
  entrypoint?: string | undefined;
@@ -1144,18 +1477,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1144
1477
  requireClientCerts?: boolean | undefined;
1145
1478
  trustBrowserCas?: boolean | undefined;
1146
1479
  trustedCertificates?: string[] | undefined;
1147
- minVersion?: TlsOptions_Version | undefined;
1480
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
1148
1481
  cipherList?: string | undefined;
1149
1482
  } | undefined;
1150
1483
  };
1151
1484
  } | {
1152
- external: ExternalServer & (ExternalServer | undefined);
1485
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
1153
1486
  } | {
1154
1487
  disk: {
1155
1488
  path: string;
1156
1489
  writable?: boolean | undefined;
1157
1490
  };
1158
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
1491
+ } | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
1159
1492
  fetchMock?: MockAgent<MockAgent.Options> | undefined;
1160
1493
  unsafeEphemeralDurableObjects?: boolean | undefined;
1161
1494
  unsafeDirectSockets?: {
@@ -1166,6 +1499,8 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1166
1499
  }[] | undefined;
1167
1500
  unsafeEvalBinding?: string | undefined;
1168
1501
  unsafeUseModuleFallbackService?: boolean | undefined;
1502
+ hasAssetsAndIsVitest?: boolean | undefined;
1503
+ unsafeEnableAssetsRpc?: boolean | undefined;
1169
1504
  }>;
1170
1505
 
1171
1506
  export declare const CoreSharedOptionsSchema: z.ZodObject<{
@@ -1185,8 +1520,9 @@ export declare const CoreSharedOptionsSchema: z.ZodObject<{
1185
1520
  cf: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>;
1186
1521
  liveReload: z.ZodOptional<z.ZodBoolean>;
1187
1522
  unsafeProxySharedSecret: z.ZodOptional<z.ZodString>;
1188
- unsafeModuleFallbackService: z.ZodOptional<z.ZodType<(request: Request, mf: Miniflare) => Awaitable<Response>, z.ZodTypeDef, (request: Request, mf: Miniflare) => Awaitable<Response>>>;
1523
+ 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>>>;
1189
1524
  unsafeStickyBlobs: z.ZodOptional<z.ZodBoolean>;
1525
+ unsafeEnableAssetsRpc: z.ZodOptional<z.ZodBoolean>;
1190
1526
  }, "strip", z.ZodTypeAny, {
1191
1527
  rootPath?: undefined;
1192
1528
  host?: string | undefined;
@@ -1204,8 +1540,9 @@ export declare const CoreSharedOptionsSchema: z.ZodObject<{
1204
1540
  cf?: string | boolean | Record<string, any> | undefined;
1205
1541
  liveReload?: boolean | undefined;
1206
1542
  unsafeProxySharedSecret?: string | undefined;
1207
- unsafeModuleFallbackService?: ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
1543
+ unsafeModuleFallbackService?: ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
1208
1544
  unsafeStickyBlobs?: boolean | undefined;
1545
+ unsafeEnableAssetsRpc?: boolean | undefined;
1209
1546
  }, {
1210
1547
  rootPath?: string | undefined;
1211
1548
  host?: string | undefined;
@@ -1223,8 +1560,9 @@ export declare const CoreSharedOptionsSchema: z.ZodObject<{
1223
1560
  cf?: string | boolean | Record<string, any> | undefined;
1224
1561
  liveReload?: boolean | undefined;
1225
1562
  unsafeProxySharedSecret?: string | undefined;
1226
- unsafeModuleFallbackService?: ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
1563
+ unsafeModuleFallbackService?: ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
1227
1564
  unsafeStickyBlobs?: boolean | undefined;
1565
+ unsafeEnableAssetsRpc?: boolean | undefined;
1228
1566
  }>;
1229
1567
 
1230
1568
  export declare function coupleWebSocket(ws: NodeWebSocket, pair: WebSocket): Promise<void>;
@@ -1278,7 +1616,7 @@ export declare interface DiskDirectory {
1278
1616
  writable?: boolean;
1279
1617
  }
1280
1618
 
1281
- export declare type DispatchFetch = (input: RequestInfo, init?: RequestInit<Partial<IncomingRequestCfProperties>>) => Promise<Response>;
1619
+ export declare type DispatchFetch = (input: RequestInfo, init?: RequestInit_2<Partial<IncomingRequestCfProperties>>) => Promise<Response_2>;
1282
1620
 
1283
1621
  /**
1284
1622
  * Dispatcher created for each `dispatchFetch()` call. Ensures request origin
@@ -1321,6 +1659,7 @@ export declare const DURABLE_OBJECTS_PLUGIN_NAME = "do";
1321
1659
  export declare const DURABLE_OBJECTS_STORAGE_SERVICE_NAME = "do:storage";
1322
1660
 
1323
1661
  export declare type DurableObjectClassNames = Map<string, Map<string, {
1662
+ enableSql?: boolean;
1324
1663
  unsafeUniqueKey?: UnsafeUniqueKey;
1325
1664
  unsafePreventEviction?: boolean;
1326
1665
  }>>;
@@ -1329,16 +1668,19 @@ export declare const DurableObjectsOptionsSchema: z.ZodObject<{
1329
1668
  durableObjects: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
1330
1669
  className: z.ZodString;
1331
1670
  scriptName: z.ZodOptional<z.ZodString>;
1671
+ useSQLite: z.ZodOptional<z.ZodBoolean>;
1332
1672
  unsafeUniqueKey: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<typeof kUnsafeEphemeralUniqueKey>]>>;
1333
1673
  unsafePreventEviction: z.ZodOptional<z.ZodBoolean>;
1334
1674
  }, "strip", z.ZodTypeAny, {
1335
1675
  className: string;
1336
1676
  scriptName?: string | undefined;
1677
+ useSQLite?: boolean | undefined;
1337
1678
  unsafeUniqueKey?: string | typeof kUnsafeEphemeralUniqueKey | undefined;
1338
1679
  unsafePreventEviction?: boolean | undefined;
1339
1680
  }, {
1340
1681
  className: string;
1341
1682
  scriptName?: string | undefined;
1683
+ useSQLite?: boolean | undefined;
1342
1684
  unsafeUniqueKey?: string | typeof kUnsafeEphemeralUniqueKey | undefined;
1343
1685
  unsafePreventEviction?: boolean | undefined;
1344
1686
  }>]>>>;
@@ -1346,6 +1688,7 @@ export declare const DurableObjectsOptionsSchema: z.ZodObject<{
1346
1688
  durableObjects?: Record<string, string | {
1347
1689
  className: string;
1348
1690
  scriptName?: string | undefined;
1691
+ useSQLite?: boolean | undefined;
1349
1692
  unsafeUniqueKey?: string | typeof kUnsafeEphemeralUniqueKey | undefined;
1350
1693
  unsafePreventEviction?: boolean | undefined;
1351
1694
  }> | undefined;
@@ -1353,6 +1696,7 @@ export declare const DurableObjectsOptionsSchema: z.ZodObject<{
1353
1696
  durableObjects?: Record<string, string | {
1354
1697
  className: string;
1355
1698
  scriptName?: string | undefined;
1699
+ useSQLite?: boolean | undefined;
1356
1700
  unsafeUniqueKey?: string | typeof kUnsafeEphemeralUniqueKey | undefined;
1357
1701
  unsafePreventEviction?: boolean | undefined;
1358
1702
  }> | undefined;
@@ -1370,8 +1714,6 @@ export declare const DurableObjectsSharedOptionsSchema: z.ZodObject<{
1370
1714
 
1371
1715
  export declare function encodeSitesKey(key: string): string;
1372
1716
 
1373
- export declare const ENTRY_SOCKET_HTTP_OPTIONS: HttpOptions;
1374
-
1375
1717
  export declare class ErrorEvent extends Event {
1376
1718
  readonly error: Error | null;
1377
1719
  constructor(type: "error", init?: {
@@ -1410,7 +1752,8 @@ export declare interface ExternalServer_Tcp {
1410
1752
  certificateHost?: string;
1411
1753
  }
1412
1754
 
1413
- export declare function fetch(input: RequestInfo, init?: RequestInit | Request): Promise<Response>;
1755
+ declare function fetch_2(input: RequestInfo, init?: RequestInit_2 | Request_2): Promise<Response_2>;
1756
+ export { fetch_2 as fetch }
1414
1757
 
1415
1758
  export { File }
1416
1759
 
@@ -1418,7 +1761,7 @@ export declare function _forceColour(enabled?: boolean): void;
1418
1761
 
1419
1762
  export declare function formatZodError(error: z.ZodError, input: unknown): string;
1420
1763
 
1421
- export { FormData }
1764
+ export { FormData_2 as FormData }
1422
1765
 
1423
1766
  export declare function getAccessibleHosts(ipv4Only?: boolean): string[];
1424
1767
 
@@ -1443,6 +1786,27 @@ export declare function getGlobalServices({ sharedOptions, allWorkerRoutes, fall
1443
1786
 
1444
1787
  export declare function getMiniflareObjectBindings(unsafeStickyBlobs: boolean): Worker_Binding[];
1445
1788
 
1789
+ /**
1790
+ * Computes the Node.js compatibility mode we are running.
1791
+ *
1792
+ * NOTES:
1793
+ * - 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.
1794
+ * - See `EnvironmentInheritable` for `nodeCompat` and `noBundle`.
1795
+ *
1796
+ * @param compatibilityDateStr The compatibility date
1797
+ * @param compatibilityFlags The compatibility flags
1798
+ * @returns the mode and flags to indicate specific configuration for validating.
1799
+ */
1800
+ export declare function getNodeCompat(compatibilityDate: string | undefined, // Default to some arbitrary old date
1801
+ compatibilityFlags: string[]): {
1802
+ mode: NodeJSCompatMode;
1803
+ hasNodejsAlsFlag: boolean;
1804
+ hasNodejsCompatFlag: boolean;
1805
+ hasNodejsCompatV2Flag: boolean;
1806
+ hasNoNodejsCompatV2Flag: boolean;
1807
+ hasExperimentalNodejsCompatV2Flag: boolean;
1808
+ };
1809
+
1446
1810
  export declare function getPersistPath(pluginName: string, tmpPath: string, persist: Persistence): string;
1447
1811
 
1448
1812
  export declare function getRootPath(opts: unknown): string;
@@ -1458,7 +1822,7 @@ export declare interface GlobalServicesOptions {
1458
1822
 
1459
1823
  export declare function globsToRegExps(globs?: string[]): MatcherRegExps;
1460
1824
 
1461
- export { Headers }
1825
+ export { Headers_2 as Headers }
1462
1826
 
1463
1827
  export { HeadersInit }
1464
1828
 
@@ -1478,10 +1842,12 @@ export declare interface HttpOptions_Header {
1478
1842
  value?: string;
1479
1843
  }
1480
1844
 
1481
- export declare enum HttpOptions_Style {
1482
- HOST = 0,
1483
- PROXY = 1
1484
- }
1845
+ export declare const HttpOptions_Style: {
1846
+ readonly HOST: 0;
1847
+ readonly PROXY: 1;
1848
+ };
1849
+
1850
+ export declare type HttpOptions_Style = (typeof HttpOptions_Style)[keyof typeof HttpOptions_Style];
1485
1851
 
1486
1852
  export declare const HYPERDRIVE_PLUGIN: Plugin<typeof HyperdriveInputOptionsSchema>;
1487
1853
 
@@ -1547,8 +1913,6 @@ export declare const kInspectorSocket: unique symbol;
1547
1913
 
1548
1914
  declare const kPair: unique symbol;
1549
1915
 
1550
- export declare const kProxyNodeBinding: unique symbol;
1551
-
1552
1916
  declare const kSend: unique symbol;
1553
1917
 
1554
1918
  export declare const kUnsafeEphemeralUniqueKey: unique symbol;
@@ -1643,6 +2007,11 @@ export declare interface LogOptions {
1643
2007
  suffix?: string;
1644
2008
  }
1645
2009
 
2010
+ export declare type ManifestEntry = {
2011
+ pathHash: Uint8Array;
2012
+ contentHash: Uint8Array;
2013
+ };
2014
+
1646
2015
  export declare interface MatcherRegExps {
1647
2016
  include: RegExp[];
1648
2017
  exclude: RegExp[];
@@ -1661,12 +2030,13 @@ export declare function maybeParseURL(url: Persistence): URL | undefined;
1661
2030
  */
1662
2031
  export declare function mergeWorkerOptions(a: Partial<WorkerOptions>, b: Partial<WorkerOptions>): Partial<WorkerOptions>;
1663
2032
 
1664
- export declare class MessageEvent extends Event {
1665
- readonly data: ArrayBuffer | string;
2033
+ declare class MessageEvent_2 extends Event {
2034
+ readonly data: string | ArrayBuffer | Uint8Array<ArrayBuffer>;
1666
2035
  constructor(type: "message", init: {
1667
- data: ArrayBuffer | string;
2036
+ data: string | ArrayBuffer | Uint8Array<ArrayBuffer>;
1668
2037
  });
1669
2038
  }
2039
+ export { MessageEvent_2 as MessageEvent }
1670
2040
 
1671
2041
  export declare function migrateDatabase(log: Log, uniqueKey: string, persistPath: string, namespace: string): Promise<void>;
1672
2042
 
@@ -1696,7 +2066,7 @@ export declare class Miniflare {
1696
2066
  export declare class MiniflareCoreError extends MiniflareError<MiniflareCoreErrorCode> {
1697
2067
  }
1698
2068
 
1699
- export declare type MiniflareCoreErrorCode = "ERR_RUNTIME_FAILURE" | "ERR_DISPOSED" | "ERR_MODULE_PARSE" | "ERR_MODULE_STRING_SCRIPT" | "ERR_MODULE_DYNAMIC_SPEC" | "ERR_MODULE_RULE" | "ERR_PERSIST_UNSUPPORTED" | "ERR_PERSIST_REMOTE_UNAUTHENTICATED" | "ERR_PERSIST_REMOTE_UNSUPPORTED" | "ERR_FUTURE_COMPATIBILITY_DATE" | "ERR_NO_WORKERS" | "ERR_VALIDATION" | "ERR_DUPLICATE_NAME" | "ERR_DIFFERENT_UNIQUE_KEYS" | "ERR_DIFFERENT_PREVENT_EVICTION" | "ERR_MULTIPLE_OUTBOUNDS" | "ERR_INVALID_WRAPPED" | "ERR_CYCLIC";
2069
+ export declare type MiniflareCoreErrorCode = "ERR_RUNTIME_FAILURE" | "ERR_DISPOSED" | "ERR_MODULE_PARSE" | "ERR_MODULE_STRING_SCRIPT" | "ERR_MODULE_DYNAMIC_SPEC" | "ERR_MODULE_RULE" | "ERR_PERSIST_UNSUPPORTED" | "ERR_PERSIST_REMOTE_UNAUTHENTICATED" | "ERR_PERSIST_REMOTE_UNSUPPORTED" | "ERR_FUTURE_COMPATIBILITY_DATE" | "ERR_NO_WORKERS" | "ERR_VALIDATION" | "ERR_DUPLICATE_NAME" | "ERR_DIFFERENT_STORAGE_BACKEND" | "ERR_DIFFERENT_UNIQUE_KEYS" | "ERR_DIFFERENT_PREVENT_EVICTION" | "ERR_MULTIPLE_OUTBOUNDS" | "ERR_INVALID_WRAPPED" | "ERR_CYCLIC" | "ERR_MISSING_INSPECTOR_PROXY_PORT";
1700
2070
 
1701
2071
  export declare class MiniflareError<Code extends string | number = string | number> extends Error {
1702
2072
  readonly code: Code;
@@ -1713,15 +2083,15 @@ export declare type ModuleDefinition = z.infer<typeof ModuleDefinitionSchema>;
1713
2083
  export declare const ModuleDefinitionSchema: z.ZodObject<{
1714
2084
  type: z.ZodEnum<["ESModule", "CommonJS", "NodeJsCompatModule", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
1715
2085
  path: z.ZodEffects<z.ZodString, string, string>;
1716
- contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>>;
2086
+ contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>;
1717
2087
  }, "strip", z.ZodTypeAny, {
1718
2088
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
1719
2089
  path: string;
1720
- contents?: string | Uint8Array | undefined;
2090
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
1721
2091
  }, {
1722
2092
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
1723
2093
  path: string;
1724
- contents?: string | Uint8Array | undefined;
2094
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
1725
2095
  }>;
1726
2096
 
1727
2097
  export declare type ModuleRule = z.infer<typeof ModuleRuleSchema>;
@@ -1765,7 +2135,17 @@ export declare interface Network {
1765
2135
  tlsOptions?: TlsOptions;
1766
2136
  }
1767
2137
 
1768
- export declare const NODE_PLATFORM_IMPL: PlatformImpl<ReadableStream_2>;
2138
+ export declare const NODE_PLATFORM_IMPL: PlatformImpl<ReadableStream_3>;
2139
+
2140
+ /**
2141
+ * We can provide Node.js compatibility in a number of different modes:
2142
+ * - "als": this mode tells the workerd runtime to enable only the Async Local Storage builtin library (accessible via `node:async_hooks`).
2143
+ * - "v1" - this mode tells the workerd runtime to enable some Node.js builtin libraries (accessible only via `node:...` imports) but no globals.
2144
+ * - "v2" - this mode tells the workerd runtime to enable more Node.js builtin libraries (accessible both with and without the `node:` prefix)
2145
+ * 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.
2146
+ * - null - no Node.js compatibility.
2147
+ */
2148
+ export declare type NodeJSCompatMode = "als" | "v1" | "v2" | null;
1769
2149
 
1770
2150
  export declare class NoOpLog extends Log {
1771
2151
  constructor();
@@ -1776,6 +2156,7 @@ export declare class NoOpLog extends Log {
1776
2156
  export declare function normaliseDurableObject(designator: NonNullable<z.infer<typeof DurableObjectsOptionsSchema>["durableObjects"]>[string]): {
1777
2157
  className: string;
1778
2158
  serviceName?: string;
2159
+ enableSql?: boolean;
1779
2160
  unsafeUniqueKey?: UnsafeUniqueKey;
1780
2161
  unsafePreventEviction?: boolean;
1781
2162
  };
@@ -1882,12 +2263,24 @@ export declare type Persistence = z.infer<typeof PersistenceSchema>;
1882
2263
 
1883
2264
  export declare const PersistenceSchema: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
1884
2265
 
2266
+ export declare const PIPELINE_PLUGIN: Plugin<typeof PipelineOptionsSchema>;
2267
+
2268
+ export declare const PipelineOptionsSchema: z.ZodObject<{
2269
+ pipelines: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodString, "many">]>>;
2270
+ }, "strip", z.ZodTypeAny, {
2271
+ pipelines?: string[] | Record<string, string> | undefined;
2272
+ }, {
2273
+ pipelines?: string[] | Record<string, string> | undefined;
2274
+ }>;
2275
+
2276
+ export declare const PIPELINES_PLUGIN_NAME = "pipelines";
2277
+
1885
2278
  export declare interface PlatformImpl<RS> {
1886
2279
  Blob: typeof Blob_2;
1887
2280
  File: typeof File_2;
1888
- Headers: typeof Headers_2;
1889
- Request: typeof Request_3;
1890
- Response: typeof Response_3;
2281
+ Headers: typeof Headers_3;
2282
+ Request: typeof Request_5;
2283
+ Response: typeof Response_5;
1891
2284
  isReadableStream(value: unknown): value is RS;
1892
2285
  bufferReadableStream(stream: RS): Promise<ArrayBuffer>;
1893
2286
  unbufferReadableStream(buffer: ArrayBuffer): RS;
@@ -1910,33 +2303,33 @@ export declare interface PluginBase<Options extends z.ZodType, SharedOptions ext
1910
2303
  }
1911
2304
 
1912
2305
  export declare const PLUGINS: {
1913
- core: Plugin<z.ZodEffects<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2306
+ core: Plugin_2<z.ZodEffects<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
1914
2307
  modules: z.ZodArray<z.ZodObject<{
1915
2308
  type: z.ZodEnum<["ESModule", "CommonJS", "NodeJsCompatModule", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
1916
2309
  path: z.ZodEffects<z.ZodString, string, string>;
1917
- contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>>;
2310
+ contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>;
1918
2311
  }, "strip", z.ZodTypeAny, {
1919
2312
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
1920
2313
  path: string;
1921
- contents?: string | Uint8Array | undefined;
2314
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
1922
2315
  }, {
1923
2316
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
1924
2317
  path: string;
1925
- contents?: string | Uint8Array | undefined;
2318
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
1926
2319
  }>, "many">;
1927
2320
  modulesRoot: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1928
2321
  }, "strip", z.ZodTypeAny, {
1929
2322
  modules: {
1930
2323
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
1931
2324
  path: string;
1932
- contents?: string | Uint8Array | undefined;
2325
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
1933
2326
  }[];
1934
2327
  modulesRoot?: string | undefined;
1935
2328
  }, {
1936
2329
  modules: {
1937
2330
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
1938
2331
  path: string;
1939
- contents?: string | Uint8Array | undefined;
2332
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
1940
2333
  }[];
1941
2334
  modulesRoot?: string | undefined;
1942
2335
  }>, z.ZodObject<{
@@ -2017,19 +2410,20 @@ export declare const PLUGINS: {
2017
2410
  rootPath: z.ZodOptional<z.ZodEffects<z.ZodString, undefined, string>>;
2018
2411
  compatibilityDate: z.ZodOptional<z.ZodString>;
2019
2412
  compatibilityFlags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2413
+ unsafeInspectorProxy: z.ZodOptional<z.ZodBoolean>;
2020
2414
  routes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2021
- bindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<Json, z.ZodTypeDef, Json>>>;
2022
- wasmBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>>>;
2415
+ bindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<Json_2, z.ZodTypeDef, Json_2>>>;
2416
+ wasmBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>>;
2023
2417
  textBlobBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, string, string>>>;
2024
- dataBlobBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>>>;
2025
- serviceBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodLiteral<kCurrentWorker>, z.ZodObject<{
2026
- name: z.ZodUnion<[z.ZodString, z.ZodLiteral<kCurrentWorker>]>;
2418
+ dataBlobBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>>;
2419
+ serviceBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodLiteral<kCurrentWorker_2>, z.ZodObject<{
2420
+ name: z.ZodUnion<[z.ZodString, z.ZodLiteral<kCurrentWorker_2>]>;
2027
2421
  entrypoint: z.ZodOptional<z.ZodString>;
2028
2422
  }, "strip", z.ZodTypeAny, {
2029
- name: string | kCurrentWorker;
2423
+ name: string | kCurrentWorker_2;
2030
2424
  entrypoint?: string | undefined;
2031
2425
  }, {
2032
- name: string | kCurrentWorker;
2426
+ name: string | kCurrentWorker_2;
2033
2427
  entrypoint?: string | undefined;
2034
2428
  }>, z.ZodObject<{
2035
2429
  network: z.ZodObject<{
@@ -2049,7 +2443,14 @@ export declare const PLUGINS: {
2049
2443
  requireClientCerts: z.ZodOptional<z.ZodBoolean>;
2050
2444
  trustBrowserCas: z.ZodOptional<z.ZodBoolean>;
2051
2445
  trustedCertificates: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2052
- minVersion: z.ZodOptional<z.ZodNativeEnum<TlsOptions_Version>>;
2446
+ minVersion: z.ZodOptional<z.ZodNativeEnum<{
2447
+ readonly GOOD_DEFAULT: 0;
2448
+ readonly SSL3: 1;
2449
+ readonly TLS1DOT0: 2;
2450
+ readonly TLS1DOT1: 3;
2451
+ readonly TLS1DOT2: 4;
2452
+ readonly TLS1DOT3: 5;
2453
+ }>>;
2053
2454
  cipherList: z.ZodOptional<z.ZodString>;
2054
2455
  }, "strip", z.ZodTypeAny, {
2055
2456
  keypair?: {
@@ -2059,7 +2460,7 @@ export declare const PLUGINS: {
2059
2460
  requireClientCerts?: boolean | undefined;
2060
2461
  trustBrowserCas?: boolean | undefined;
2061
2462
  trustedCertificates?: string[] | undefined;
2062
- minVersion?: TlsOptions_Version | undefined;
2463
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2063
2464
  cipherList?: string | undefined;
2064
2465
  }, {
2065
2466
  keypair?: {
@@ -2069,7 +2470,7 @@ export declare const PLUGINS: {
2069
2470
  requireClientCerts?: boolean | undefined;
2070
2471
  trustBrowserCas?: boolean | undefined;
2071
2472
  trustedCertificates?: string[] | undefined;
2072
- minVersion?: TlsOptions_Version | undefined;
2473
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2073
2474
  cipherList?: string | undefined;
2074
2475
  }>>;
2075
2476
  }, "strip", z.ZodTypeAny, {
@@ -2083,7 +2484,7 @@ export declare const PLUGINS: {
2083
2484
  requireClientCerts?: boolean | undefined;
2084
2485
  trustBrowserCas?: boolean | undefined;
2085
2486
  trustedCertificates?: string[] | undefined;
2086
- minVersion?: TlsOptions_Version | undefined;
2487
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2087
2488
  cipherList?: string | undefined;
2088
2489
  } | undefined;
2089
2490
  }, {
@@ -2097,7 +2498,7 @@ export declare const PLUGINS: {
2097
2498
  requireClientCerts?: boolean | undefined;
2098
2499
  trustBrowserCas?: boolean | undefined;
2099
2500
  trustedCertificates?: string[] | undefined;
2100
- minVersion?: TlsOptions_Version | undefined;
2501
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2101
2502
  cipherList?: string | undefined;
2102
2503
  } | undefined;
2103
2504
  }>;
@@ -2113,7 +2514,7 @@ export declare const PLUGINS: {
2113
2514
  requireClientCerts?: boolean | undefined;
2114
2515
  trustBrowserCas?: boolean | undefined;
2115
2516
  trustedCertificates?: string[] | undefined;
2116
- minVersion?: TlsOptions_Version | undefined;
2517
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2117
2518
  cipherList?: string | undefined;
2118
2519
  } | undefined;
2119
2520
  };
@@ -2129,16 +2530,16 @@ export declare const PLUGINS: {
2129
2530
  requireClientCerts?: boolean | undefined;
2130
2531
  trustBrowserCas?: boolean | undefined;
2131
2532
  trustedCertificates?: string[] | undefined;
2132
- minVersion?: TlsOptions_Version | undefined;
2533
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2133
2534
  cipherList?: string | undefined;
2134
2535
  } | undefined;
2135
2536
  };
2136
2537
  }>, z.ZodObject<{
2137
- external: z.ZodType<ExternalServer, z.ZodTypeDef, ExternalServer>;
2538
+ external: z.ZodType<ExternalServer_3, z.ZodTypeDef, ExternalServer_3>;
2138
2539
  }, "strip", z.ZodTypeAny, {
2139
- external: ExternalServer & (ExternalServer | undefined);
2540
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2140
2541
  }, {
2141
- external: ExternalServer & (ExternalServer | undefined);
2542
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2142
2543
  }>, z.ZodObject<{
2143
2544
  disk: z.ZodObject<{
2144
2545
  path: z.ZodString;
@@ -2160,28 +2561,28 @@ export declare const PLUGINS: {
2160
2561
  path: string;
2161
2562
  writable?: boolean | undefined;
2162
2563
  };
2163
- }>, z.ZodType<(request: Request, mf: Miniflare) => Awaitable<Response>, z.ZodTypeDef, (request: Request, mf: Miniflare) => Awaitable<Response>>]>>>;
2564
+ }>, z.ZodType<(request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>, z.ZodTypeDef, (request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>>]>>>;
2164
2565
  wrappedBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
2165
2566
  scriptName: z.ZodString;
2166
2567
  entrypoint: z.ZodOptional<z.ZodString>;
2167
- bindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<Json, z.ZodTypeDef, Json>>>;
2568
+ bindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<Json_2, z.ZodTypeDef, Json_2>>>;
2168
2569
  }, "strip", z.ZodTypeAny, {
2169
2570
  scriptName: string;
2170
2571
  entrypoint?: string | undefined;
2171
- bindings?: Record<string, Json> | undefined;
2572
+ bindings?: Record<string, Json_2> | undefined;
2172
2573
  }, {
2173
2574
  scriptName: string;
2174
2575
  entrypoint?: string | undefined;
2175
- bindings?: Record<string, Json> | undefined;
2576
+ bindings?: Record<string, Json_2> | undefined;
2176
2577
  }>]>>>;
2177
- outboundService: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<kCurrentWorker>, z.ZodObject<{
2178
- name: z.ZodUnion<[z.ZodString, z.ZodLiteral<kCurrentWorker>]>;
2578
+ outboundService: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<kCurrentWorker_2>, z.ZodObject<{
2579
+ name: z.ZodUnion<[z.ZodString, z.ZodLiteral<kCurrentWorker_2>]>;
2179
2580
  entrypoint: z.ZodOptional<z.ZodString>;
2180
2581
  }, "strip", z.ZodTypeAny, {
2181
- name: string | kCurrentWorker;
2582
+ name: string | kCurrentWorker_2;
2182
2583
  entrypoint?: string | undefined;
2183
2584
  }, {
2184
- name: string | kCurrentWorker;
2585
+ name: string | kCurrentWorker_2;
2185
2586
  entrypoint?: string | undefined;
2186
2587
  }>, z.ZodObject<{
2187
2588
  network: z.ZodObject<{
@@ -2201,7 +2602,14 @@ export declare const PLUGINS: {
2201
2602
  requireClientCerts: z.ZodOptional<z.ZodBoolean>;
2202
2603
  trustBrowserCas: z.ZodOptional<z.ZodBoolean>;
2203
2604
  trustedCertificates: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2204
- minVersion: z.ZodOptional<z.ZodNativeEnum<TlsOptions_Version>>;
2605
+ minVersion: z.ZodOptional<z.ZodNativeEnum<{
2606
+ readonly GOOD_DEFAULT: 0;
2607
+ readonly SSL3: 1;
2608
+ readonly TLS1DOT0: 2;
2609
+ readonly TLS1DOT1: 3;
2610
+ readonly TLS1DOT2: 4;
2611
+ readonly TLS1DOT3: 5;
2612
+ }>>;
2205
2613
  cipherList: z.ZodOptional<z.ZodString>;
2206
2614
  }, "strip", z.ZodTypeAny, {
2207
2615
  keypair?: {
@@ -2211,7 +2619,7 @@ export declare const PLUGINS: {
2211
2619
  requireClientCerts?: boolean | undefined;
2212
2620
  trustBrowserCas?: boolean | undefined;
2213
2621
  trustedCertificates?: string[] | undefined;
2214
- minVersion?: TlsOptions_Version | undefined;
2622
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2215
2623
  cipherList?: string | undefined;
2216
2624
  }, {
2217
2625
  keypair?: {
@@ -2221,7 +2629,7 @@ export declare const PLUGINS: {
2221
2629
  requireClientCerts?: boolean | undefined;
2222
2630
  trustBrowserCas?: boolean | undefined;
2223
2631
  trustedCertificates?: string[] | undefined;
2224
- minVersion?: TlsOptions_Version | undefined;
2632
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2225
2633
  cipherList?: string | undefined;
2226
2634
  }>>;
2227
2635
  }, "strip", z.ZodTypeAny, {
@@ -2235,7 +2643,7 @@ export declare const PLUGINS: {
2235
2643
  requireClientCerts?: boolean | undefined;
2236
2644
  trustBrowserCas?: boolean | undefined;
2237
2645
  trustedCertificates?: string[] | undefined;
2238
- minVersion?: TlsOptions_Version | undefined;
2646
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2239
2647
  cipherList?: string | undefined;
2240
2648
  } | undefined;
2241
2649
  }, {
@@ -2249,7 +2657,7 @@ export declare const PLUGINS: {
2249
2657
  requireClientCerts?: boolean | undefined;
2250
2658
  trustBrowserCas?: boolean | undefined;
2251
2659
  trustedCertificates?: string[] | undefined;
2252
- minVersion?: TlsOptions_Version | undefined;
2660
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2253
2661
  cipherList?: string | undefined;
2254
2662
  } | undefined;
2255
2663
  }>;
@@ -2265,7 +2673,7 @@ export declare const PLUGINS: {
2265
2673
  requireClientCerts?: boolean | undefined;
2266
2674
  trustBrowserCas?: boolean | undefined;
2267
2675
  trustedCertificates?: string[] | undefined;
2268
- minVersion?: TlsOptions_Version | undefined;
2676
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2269
2677
  cipherList?: string | undefined;
2270
2678
  } | undefined;
2271
2679
  };
@@ -2281,16 +2689,16 @@ export declare const PLUGINS: {
2281
2689
  requireClientCerts?: boolean | undefined;
2282
2690
  trustBrowserCas?: boolean | undefined;
2283
2691
  trustedCertificates?: string[] | undefined;
2284
- minVersion?: TlsOptions_Version | undefined;
2692
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2285
2693
  cipherList?: string | undefined;
2286
2694
  } | undefined;
2287
2695
  };
2288
2696
  }>, z.ZodObject<{
2289
- external: z.ZodType<ExternalServer, z.ZodTypeDef, ExternalServer>;
2697
+ external: z.ZodType<ExternalServer_3, z.ZodTypeDef, ExternalServer_3>;
2290
2698
  }, "strip", z.ZodTypeAny, {
2291
- external: ExternalServer & (ExternalServer | undefined);
2699
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2292
2700
  }, {
2293
- external: ExternalServer & (ExternalServer | undefined);
2701
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2294
2702
  }>, z.ZodObject<{
2295
2703
  disk: z.ZodObject<{
2296
2704
  path: z.ZodString;
@@ -2312,7 +2720,7 @@ export declare const PLUGINS: {
2312
2720
  path: string;
2313
2721
  writable?: boolean | undefined;
2314
2722
  };
2315
- }>, z.ZodType<(request: Request, mf: Miniflare) => Awaitable<Response>, z.ZodTypeDef, (request: Request, mf: Miniflare) => Awaitable<Response>>]>>;
2723
+ }>, z.ZodType<(request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>, z.ZodTypeDef, (request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>>]>>;
2316
2724
  fetchMock: z.ZodOptional<z.ZodType<MockAgent<MockAgent>, z.ZodTypeDef, MockAgent<MockAgent>>>;
2317
2725
  unsafeEphemeralDurableObjects: z.ZodOptional<z.ZodBoolean>;
2318
2726
  unsafeDirectSockets: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -2333,18 +2741,21 @@ export declare const PLUGINS: {
2333
2741
  }>, "many">>;
2334
2742
  unsafeEvalBinding: z.ZodOptional<z.ZodString>;
2335
2743
  unsafeUseModuleFallbackService: z.ZodOptional<z.ZodBoolean>;
2744
+ hasAssetsAndIsVitest: z.ZodOptional<z.ZodBoolean>;
2745
+ unsafeEnableAssetsRpc: z.ZodOptional<z.ZodBoolean>;
2336
2746
  }, "strip", z.ZodTypeAny, {
2337
2747
  name?: string | undefined;
2338
2748
  rootPath?: undefined;
2339
2749
  compatibilityDate?: string | undefined;
2340
2750
  compatibilityFlags?: string[] | undefined;
2751
+ unsafeInspectorProxy?: boolean | undefined;
2341
2752
  routes?: string[] | undefined;
2342
- bindings?: Record<string, Json> | undefined;
2343
- wasmBindings?: Record<string, string | Uint8Array> | undefined;
2753
+ bindings?: Record<string, Json_2> | undefined;
2754
+ wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
2344
2755
  textBlobBindings?: Record<string, string> | undefined;
2345
- dataBlobBindings?: Record<string, string | Uint8Array> | undefined;
2346
- serviceBindings?: Record<string, string | kCurrentWorker | {
2347
- name: string | kCurrentWorker;
2756
+ dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
2757
+ serviceBindings?: Record<string, string | kCurrentWorker_2 | {
2758
+ name: string | kCurrentWorker_2;
2348
2759
  entrypoint?: string | undefined;
2349
2760
  } | {
2350
2761
  network: {
@@ -2358,25 +2769,25 @@ export declare const PLUGINS: {
2358
2769
  requireClientCerts?: boolean | undefined;
2359
2770
  trustBrowserCas?: boolean | undefined;
2360
2771
  trustedCertificates?: string[] | undefined;
2361
- minVersion?: TlsOptions_Version | undefined;
2772
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2362
2773
  cipherList?: string | undefined;
2363
2774
  } | undefined;
2364
2775
  };
2365
2776
  } | {
2366
- external: ExternalServer & (ExternalServer | undefined);
2777
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2367
2778
  } | {
2368
2779
  disk: {
2369
2780
  path: string;
2370
2781
  writable?: boolean | undefined;
2371
2782
  };
2372
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>)> | undefined;
2783
+ } | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>)> | undefined;
2373
2784
  wrappedBindings?: Record<string, string | {
2374
2785
  scriptName: string;
2375
2786
  entrypoint?: string | undefined;
2376
- bindings?: Record<string, Json> | undefined;
2787
+ bindings?: Record<string, Json_2> | undefined;
2377
2788
  }> | undefined;
2378
- outboundService?: string | kCurrentWorker | {
2379
- name: string | kCurrentWorker;
2789
+ outboundService?: string | kCurrentWorker_2 | {
2790
+ name: string | kCurrentWorker_2;
2380
2791
  entrypoint?: string | undefined;
2381
2792
  } | {
2382
2793
  network: {
@@ -2390,18 +2801,18 @@ export declare const PLUGINS: {
2390
2801
  requireClientCerts?: boolean | undefined;
2391
2802
  trustBrowserCas?: boolean | undefined;
2392
2803
  trustedCertificates?: string[] | undefined;
2393
- minVersion?: TlsOptions_Version | undefined;
2804
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2394
2805
  cipherList?: string | undefined;
2395
2806
  } | undefined;
2396
2807
  };
2397
2808
  } | {
2398
- external: ExternalServer & (ExternalServer | undefined);
2809
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2399
2810
  } | {
2400
2811
  disk: {
2401
2812
  path: string;
2402
2813
  writable?: boolean | undefined;
2403
2814
  };
2404
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
2815
+ } | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
2405
2816
  fetchMock?: MockAgent<MockAgent> | undefined;
2406
2817
  unsafeEphemeralDurableObjects?: boolean | undefined;
2407
2818
  unsafeDirectSockets?: {
@@ -2412,18 +2823,21 @@ export declare const PLUGINS: {
2412
2823
  }[] | undefined;
2413
2824
  unsafeEvalBinding?: string | undefined;
2414
2825
  unsafeUseModuleFallbackService?: boolean | undefined;
2826
+ hasAssetsAndIsVitest?: boolean | undefined;
2827
+ unsafeEnableAssetsRpc?: boolean | undefined;
2415
2828
  }, {
2416
2829
  name?: string | undefined;
2417
2830
  rootPath?: string | undefined;
2418
2831
  compatibilityDate?: string | undefined;
2419
2832
  compatibilityFlags?: string[] | undefined;
2833
+ unsafeInspectorProxy?: boolean | undefined;
2420
2834
  routes?: string[] | undefined;
2421
- bindings?: Record<string, Json> | undefined;
2422
- wasmBindings?: Record<string, string | Uint8Array> | undefined;
2835
+ bindings?: Record<string, Json_2> | undefined;
2836
+ wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
2423
2837
  textBlobBindings?: Record<string, string> | undefined;
2424
- dataBlobBindings?: Record<string, string | Uint8Array> | undefined;
2425
- serviceBindings?: Record<string, string | kCurrentWorker | {
2426
- name: string | kCurrentWorker;
2838
+ dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
2839
+ serviceBindings?: Record<string, string | kCurrentWorker_2 | {
2840
+ name: string | kCurrentWorker_2;
2427
2841
  entrypoint?: string | undefined;
2428
2842
  } | {
2429
2843
  network: {
@@ -2437,25 +2851,25 @@ export declare const PLUGINS: {
2437
2851
  requireClientCerts?: boolean | undefined;
2438
2852
  trustBrowserCas?: boolean | undefined;
2439
2853
  trustedCertificates?: string[] | undefined;
2440
- minVersion?: TlsOptions_Version | undefined;
2854
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2441
2855
  cipherList?: string | undefined;
2442
2856
  } | undefined;
2443
2857
  };
2444
2858
  } | {
2445
- external: ExternalServer & (ExternalServer | undefined);
2859
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2446
2860
  } | {
2447
2861
  disk: {
2448
2862
  path: string;
2449
2863
  writable?: boolean | undefined;
2450
2864
  };
2451
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>)> | undefined;
2865
+ } | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>)> | undefined;
2452
2866
  wrappedBindings?: Record<string, string | {
2453
2867
  scriptName: string;
2454
2868
  entrypoint?: string | undefined;
2455
- bindings?: Record<string, Json> | undefined;
2869
+ bindings?: Record<string, Json_2> | undefined;
2456
2870
  }> | undefined;
2457
- outboundService?: string | kCurrentWorker | {
2458
- name: string | kCurrentWorker;
2871
+ outboundService?: string | kCurrentWorker_2 | {
2872
+ name: string | kCurrentWorker_2;
2459
2873
  entrypoint?: string | undefined;
2460
2874
  } | {
2461
2875
  network: {
@@ -2469,18 +2883,18 @@ export declare const PLUGINS: {
2469
2883
  requireClientCerts?: boolean | undefined;
2470
2884
  trustBrowserCas?: boolean | undefined;
2471
2885
  trustedCertificates?: string[] | undefined;
2472
- minVersion?: TlsOptions_Version | undefined;
2886
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2473
2887
  cipherList?: string | undefined;
2474
2888
  } | undefined;
2475
2889
  };
2476
2890
  } | {
2477
- external: ExternalServer & (ExternalServer | undefined);
2891
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2478
2892
  } | {
2479
2893
  disk: {
2480
2894
  path: string;
2481
2895
  writable?: boolean | undefined;
2482
2896
  };
2483
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
2897
+ } | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
2484
2898
  fetchMock?: MockAgent<MockAgent> | undefined;
2485
2899
  unsafeEphemeralDurableObjects?: boolean | undefined;
2486
2900
  unsafeDirectSockets?: {
@@ -2491,11 +2905,13 @@ export declare const PLUGINS: {
2491
2905
  }[] | undefined;
2492
2906
  unsafeEvalBinding?: string | undefined;
2493
2907
  unsafeUseModuleFallbackService?: boolean | undefined;
2908
+ hasAssetsAndIsVitest?: boolean | undefined;
2909
+ unsafeEnableAssetsRpc?: boolean | undefined;
2494
2910
  }>>, ({
2495
2911
  modules: {
2496
2912
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
2497
2913
  path: string;
2498
- contents?: string | Uint8Array | undefined;
2914
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
2499
2915
  }[];
2500
2916
  modulesRoot?: string | undefined;
2501
2917
  } & {
@@ -2503,13 +2919,14 @@ export declare const PLUGINS: {
2503
2919
  rootPath?: undefined;
2504
2920
  compatibilityDate?: string | undefined;
2505
2921
  compatibilityFlags?: string[] | undefined;
2922
+ unsafeInspectorProxy?: boolean | undefined;
2506
2923
  routes?: string[] | undefined;
2507
- bindings?: Record<string, Json> | undefined;
2508
- wasmBindings?: Record<string, string | Uint8Array> | undefined;
2924
+ bindings?: Record<string, Json_2> | undefined;
2925
+ wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
2509
2926
  textBlobBindings?: Record<string, string> | undefined;
2510
- dataBlobBindings?: Record<string, string | Uint8Array> | undefined;
2511
- serviceBindings?: Record<string, string | kCurrentWorker | {
2512
- name: string | kCurrentWorker;
2927
+ dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
2928
+ serviceBindings?: Record<string, string | kCurrentWorker_2 | {
2929
+ name: string | kCurrentWorker_2;
2513
2930
  entrypoint?: string | undefined;
2514
2931
  } | {
2515
2932
  network: {
@@ -2523,25 +2940,25 @@ export declare const PLUGINS: {
2523
2940
  requireClientCerts?: boolean | undefined;
2524
2941
  trustBrowserCas?: boolean | undefined;
2525
2942
  trustedCertificates?: string[] | undefined;
2526
- minVersion?: TlsOptions_Version | undefined;
2943
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2527
2944
  cipherList?: string | undefined;
2528
2945
  } | undefined;
2529
2946
  };
2530
2947
  } | {
2531
- external: ExternalServer & (ExternalServer | undefined);
2948
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2532
2949
  } | {
2533
2950
  disk: {
2534
2951
  path: string;
2535
2952
  writable?: boolean | undefined;
2536
2953
  };
2537
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>)> | undefined;
2954
+ } | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>)> | undefined;
2538
2955
  wrappedBindings?: Record<string, string | {
2539
2956
  scriptName: string;
2540
2957
  entrypoint?: string | undefined;
2541
- bindings?: Record<string, Json> | undefined;
2958
+ bindings?: Record<string, Json_2> | undefined;
2542
2959
  }> | undefined;
2543
- outboundService?: string | kCurrentWorker | {
2544
- name: string | kCurrentWorker;
2960
+ outboundService?: string | kCurrentWorker_2 | {
2961
+ name: string | kCurrentWorker_2;
2545
2962
  entrypoint?: string | undefined;
2546
2963
  } | {
2547
2964
  network: {
@@ -2555,18 +2972,18 @@ export declare const PLUGINS: {
2555
2972
  requireClientCerts?: boolean | undefined;
2556
2973
  trustBrowserCas?: boolean | undefined;
2557
2974
  trustedCertificates?: string[] | undefined;
2558
- minVersion?: TlsOptions_Version | undefined;
2975
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2559
2976
  cipherList?: string | undefined;
2560
2977
  } | undefined;
2561
2978
  };
2562
2979
  } | {
2563
- external: ExternalServer & (ExternalServer | undefined);
2980
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2564
2981
  } | {
2565
2982
  disk: {
2566
2983
  path: string;
2567
2984
  writable?: boolean | undefined;
2568
2985
  };
2569
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
2986
+ } | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
2570
2987
  fetchMock?: MockAgent<MockAgent> | undefined;
2571
2988
  unsafeEphemeralDurableObjects?: boolean | undefined;
2572
2989
  unsafeDirectSockets?: {
@@ -2577,6 +2994,8 @@ export declare const PLUGINS: {
2577
2994
  }[] | undefined;
2578
2995
  unsafeEvalBinding?: string | undefined;
2579
2996
  unsafeUseModuleFallbackService?: boolean | undefined;
2997
+ hasAssetsAndIsVitest?: boolean | undefined;
2998
+ unsafeEnableAssetsRpc?: boolean | undefined;
2580
2999
  }) | ({
2581
3000
  script: string;
2582
3001
  scriptPath?: string | undefined;
@@ -2592,13 +3011,14 @@ export declare const PLUGINS: {
2592
3011
  rootPath?: undefined;
2593
3012
  compatibilityDate?: string | undefined;
2594
3013
  compatibilityFlags?: string[] | undefined;
3014
+ unsafeInspectorProxy?: boolean | undefined;
2595
3015
  routes?: string[] | undefined;
2596
- bindings?: Record<string, Json> | undefined;
2597
- wasmBindings?: Record<string, string | Uint8Array> | undefined;
3016
+ bindings?: Record<string, Json_2> | undefined;
3017
+ wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
2598
3018
  textBlobBindings?: Record<string, string> | undefined;
2599
- dataBlobBindings?: Record<string, string | Uint8Array> | undefined;
2600
- serviceBindings?: Record<string, string | kCurrentWorker | {
2601
- name: string | kCurrentWorker;
3019
+ dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
3020
+ serviceBindings?: Record<string, string | kCurrentWorker_2 | {
3021
+ name: string | kCurrentWorker_2;
2602
3022
  entrypoint?: string | undefined;
2603
3023
  } | {
2604
3024
  network: {
@@ -2612,25 +3032,25 @@ export declare const PLUGINS: {
2612
3032
  requireClientCerts?: boolean | undefined;
2613
3033
  trustBrowserCas?: boolean | undefined;
2614
3034
  trustedCertificates?: string[] | undefined;
2615
- minVersion?: TlsOptions_Version | undefined;
3035
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2616
3036
  cipherList?: string | undefined;
2617
3037
  } | undefined;
2618
3038
  };
2619
3039
  } | {
2620
- external: ExternalServer & (ExternalServer | undefined);
3040
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2621
3041
  } | {
2622
3042
  disk: {
2623
3043
  path: string;
2624
3044
  writable?: boolean | undefined;
2625
3045
  };
2626
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>)> | undefined;
3046
+ } | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>)> | undefined;
2627
3047
  wrappedBindings?: Record<string, string | {
2628
3048
  scriptName: string;
2629
3049
  entrypoint?: string | undefined;
2630
- bindings?: Record<string, Json> | undefined;
3050
+ bindings?: Record<string, Json_2> | undefined;
2631
3051
  }> | undefined;
2632
- outboundService?: string | kCurrentWorker | {
2633
- name: string | kCurrentWorker;
3052
+ outboundService?: string | kCurrentWorker_2 | {
3053
+ name: string | kCurrentWorker_2;
2634
3054
  entrypoint?: string | undefined;
2635
3055
  } | {
2636
3056
  network: {
@@ -2644,18 +3064,18 @@ export declare const PLUGINS: {
2644
3064
  requireClientCerts?: boolean | undefined;
2645
3065
  trustBrowserCas?: boolean | undefined;
2646
3066
  trustedCertificates?: string[] | undefined;
2647
- minVersion?: TlsOptions_Version | undefined;
3067
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2648
3068
  cipherList?: string | undefined;
2649
3069
  } | undefined;
2650
3070
  };
2651
3071
  } | {
2652
- external: ExternalServer & (ExternalServer | undefined);
3072
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2653
3073
  } | {
2654
3074
  disk: {
2655
3075
  path: string;
2656
3076
  writable?: boolean | undefined;
2657
3077
  };
2658
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
3078
+ } | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
2659
3079
  fetchMock?: MockAgent<MockAgent> | undefined;
2660
3080
  unsafeEphemeralDurableObjects?: boolean | undefined;
2661
3081
  unsafeDirectSockets?: {
@@ -2666,6 +3086,8 @@ export declare const PLUGINS: {
2666
3086
  }[] | undefined;
2667
3087
  unsafeEvalBinding?: string | undefined;
2668
3088
  unsafeUseModuleFallbackService?: boolean | undefined;
3089
+ hasAssetsAndIsVitest?: boolean | undefined;
3090
+ unsafeEnableAssetsRpc?: boolean | undefined;
2669
3091
  }) | ({
2670
3092
  scriptPath: string;
2671
3093
  modules?: boolean | undefined;
@@ -2680,13 +3102,14 @@ export declare const PLUGINS: {
2680
3102
  rootPath?: undefined;
2681
3103
  compatibilityDate?: string | undefined;
2682
3104
  compatibilityFlags?: string[] | undefined;
3105
+ unsafeInspectorProxy?: boolean | undefined;
2683
3106
  routes?: string[] | undefined;
2684
- bindings?: Record<string, Json> | undefined;
2685
- wasmBindings?: Record<string, string | Uint8Array> | undefined;
3107
+ bindings?: Record<string, Json_2> | undefined;
3108
+ wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
2686
3109
  textBlobBindings?: Record<string, string> | undefined;
2687
- dataBlobBindings?: Record<string, string | Uint8Array> | undefined;
2688
- serviceBindings?: Record<string, string | kCurrentWorker | {
2689
- name: string | kCurrentWorker;
3110
+ dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
3111
+ serviceBindings?: Record<string, string | kCurrentWorker_2 | {
3112
+ name: string | kCurrentWorker_2;
2690
3113
  entrypoint?: string | undefined;
2691
3114
  } | {
2692
3115
  network: {
@@ -2700,25 +3123,25 @@ export declare const PLUGINS: {
2700
3123
  requireClientCerts?: boolean | undefined;
2701
3124
  trustBrowserCas?: boolean | undefined;
2702
3125
  trustedCertificates?: string[] | undefined;
2703
- minVersion?: TlsOptions_Version | undefined;
3126
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2704
3127
  cipherList?: string | undefined;
2705
3128
  } | undefined;
2706
3129
  };
2707
3130
  } | {
2708
- external: ExternalServer & (ExternalServer | undefined);
3131
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2709
3132
  } | {
2710
3133
  disk: {
2711
3134
  path: string;
2712
3135
  writable?: boolean | undefined;
2713
3136
  };
2714
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>)> | undefined;
3137
+ } | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>)> | undefined;
2715
3138
  wrappedBindings?: Record<string, string | {
2716
3139
  scriptName: string;
2717
3140
  entrypoint?: string | undefined;
2718
- bindings?: Record<string, Json> | undefined;
3141
+ bindings?: Record<string, Json_2> | undefined;
2719
3142
  }> | undefined;
2720
- outboundService?: string | kCurrentWorker | {
2721
- name: string | kCurrentWorker;
3143
+ outboundService?: string | kCurrentWorker_2 | {
3144
+ name: string | kCurrentWorker_2;
2722
3145
  entrypoint?: string | undefined;
2723
3146
  } | {
2724
3147
  network: {
@@ -2732,18 +3155,18 @@ export declare const PLUGINS: {
2732
3155
  requireClientCerts?: boolean | undefined;
2733
3156
  trustBrowserCas?: boolean | undefined;
2734
3157
  trustedCertificates?: string[] | undefined;
2735
- minVersion?: TlsOptions_Version | undefined;
3158
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2736
3159
  cipherList?: string | undefined;
2737
3160
  } | undefined;
2738
3161
  };
2739
3162
  } | {
2740
- external: ExternalServer & (ExternalServer | undefined);
3163
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2741
3164
  } | {
2742
3165
  disk: {
2743
3166
  path: string;
2744
3167
  writable?: boolean | undefined;
2745
3168
  };
2746
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
3169
+ } | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
2747
3170
  fetchMock?: MockAgent<MockAgent> | undefined;
2748
3171
  unsafeEphemeralDurableObjects?: boolean | undefined;
2749
3172
  unsafeDirectSockets?: {
@@ -2754,11 +3177,13 @@ export declare const PLUGINS: {
2754
3177
  }[] | undefined;
2755
3178
  unsafeEvalBinding?: string | undefined;
2756
3179
  unsafeUseModuleFallbackService?: boolean | undefined;
3180
+ hasAssetsAndIsVitest?: boolean | undefined;
3181
+ unsafeEnableAssetsRpc?: boolean | undefined;
2757
3182
  }), ({
2758
3183
  modules: {
2759
3184
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
2760
3185
  path: string;
2761
- contents?: string | Uint8Array | undefined;
3186
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
2762
3187
  }[];
2763
3188
  modulesRoot?: string | undefined;
2764
3189
  } | {
@@ -2785,13 +3210,14 @@ export declare const PLUGINS: {
2785
3210
  rootPath?: string | undefined;
2786
3211
  compatibilityDate?: string | undefined;
2787
3212
  compatibilityFlags?: string[] | undefined;
3213
+ unsafeInspectorProxy?: boolean | undefined;
2788
3214
  routes?: string[] | undefined;
2789
- bindings?: Record<string, Json> | undefined;
2790
- wasmBindings?: Record<string, string | Uint8Array> | undefined;
3215
+ bindings?: Record<string, Json_2> | undefined;
3216
+ wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
2791
3217
  textBlobBindings?: Record<string, string> | undefined;
2792
- dataBlobBindings?: Record<string, string | Uint8Array> | undefined;
2793
- serviceBindings?: Record<string, string | kCurrentWorker | {
2794
- name: string | kCurrentWorker;
3218
+ dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
3219
+ serviceBindings?: Record<string, string | kCurrentWorker_2 | {
3220
+ name: string | kCurrentWorker_2;
2795
3221
  entrypoint?: string | undefined;
2796
3222
  } | {
2797
3223
  network: {
@@ -2805,25 +3231,25 @@ export declare const PLUGINS: {
2805
3231
  requireClientCerts?: boolean | undefined;
2806
3232
  trustBrowserCas?: boolean | undefined;
2807
3233
  trustedCertificates?: string[] | undefined;
2808
- minVersion?: TlsOptions_Version | undefined;
3234
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2809
3235
  cipherList?: string | undefined;
2810
3236
  } | undefined;
2811
3237
  };
2812
3238
  } | {
2813
- external: ExternalServer & (ExternalServer | undefined);
3239
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2814
3240
  } | {
2815
3241
  disk: {
2816
3242
  path: string;
2817
3243
  writable?: boolean | undefined;
2818
3244
  };
2819
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>)> | undefined;
3245
+ } | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>)> | undefined;
2820
3246
  wrappedBindings?: Record<string, string | {
2821
3247
  scriptName: string;
2822
3248
  entrypoint?: string | undefined;
2823
- bindings?: Record<string, Json> | undefined;
3249
+ bindings?: Record<string, Json_2> | undefined;
2824
3250
  }> | undefined;
2825
- outboundService?: string | kCurrentWorker | {
2826
- name: string | kCurrentWorker;
3251
+ outboundService?: string | kCurrentWorker_2 | {
3252
+ name: string | kCurrentWorker_2;
2827
3253
  entrypoint?: string | undefined;
2828
3254
  } | {
2829
3255
  network: {
@@ -2837,18 +3263,18 @@ export declare const PLUGINS: {
2837
3263
  requireClientCerts?: boolean | undefined;
2838
3264
  trustBrowserCas?: boolean | undefined;
2839
3265
  trustedCertificates?: string[] | undefined;
2840
- minVersion?: TlsOptions_Version | undefined;
3266
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2841
3267
  cipherList?: string | undefined;
2842
3268
  } | undefined;
2843
3269
  };
2844
3270
  } | {
2845
- external: ExternalServer & (ExternalServer | undefined);
3271
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2846
3272
  } | {
2847
3273
  disk: {
2848
3274
  path: string;
2849
3275
  writable?: boolean | undefined;
2850
3276
  };
2851
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
3277
+ } | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
2852
3278
  fetchMock?: MockAgent<MockAgent> | undefined;
2853
3279
  unsafeEphemeralDurableObjects?: boolean | undefined;
2854
3280
  unsafeDirectSockets?: {
@@ -2859,6 +3285,8 @@ export declare const PLUGINS: {
2859
3285
  }[] | undefined;
2860
3286
  unsafeEvalBinding?: string | undefined;
2861
3287
  unsafeUseModuleFallbackService?: boolean | undefined;
3288
+ hasAssetsAndIsVitest?: boolean | undefined;
3289
+ unsafeEnableAssetsRpc?: boolean | undefined;
2862
3290
  }>, z.ZodObject<{
2863
3291
  rootPath: z.ZodOptional<z.ZodEffects<z.ZodString, undefined, string>>;
2864
3292
  host: z.ZodOptional<z.ZodString>;
@@ -2870,14 +3298,15 @@ export declare const PLUGINS: {
2870
3298
  httpsCertPath: z.ZodOptional<z.ZodString>;
2871
3299
  inspectorPort: z.ZodOptional<z.ZodNumber>;
2872
3300
  verbose: z.ZodOptional<z.ZodBoolean>;
2873
- log: z.ZodOptional<z.ZodType<Log, z.ZodTypeDef, Log>>;
3301
+ log: z.ZodOptional<z.ZodType<Log_2, z.ZodTypeDef, Log_2>>;
2874
3302
  handleRuntimeStdio: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodType<Readable, z.ZodTypeDef, Readable>, z.ZodType<Readable, z.ZodTypeDef, Readable>], null>, z.ZodUnknown>>;
2875
3303
  upstream: z.ZodOptional<z.ZodString>;
2876
3304
  cf: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>;
2877
3305
  liveReload: z.ZodOptional<z.ZodBoolean>;
2878
3306
  unsafeProxySharedSecret: z.ZodOptional<z.ZodString>;
2879
- unsafeModuleFallbackService: z.ZodOptional<z.ZodType<(request: Request, mf: Miniflare) => Awaitable<Response>, z.ZodTypeDef, (request: Request, mf: Miniflare) => Awaitable<Response>>>;
3307
+ 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>>>;
2880
3308
  unsafeStickyBlobs: z.ZodOptional<z.ZodBoolean>;
3309
+ unsafeEnableAssetsRpc: z.ZodOptional<z.ZodBoolean>;
2881
3310
  }, "strip", z.ZodTypeAny, {
2882
3311
  rootPath?: undefined;
2883
3312
  host?: string | undefined;
@@ -2889,14 +3318,15 @@ export declare const PLUGINS: {
2889
3318
  httpsCertPath?: string | undefined;
2890
3319
  inspectorPort?: number | undefined;
2891
3320
  verbose?: boolean | undefined;
2892
- log?: Log | undefined;
3321
+ log?: Log_2 | undefined;
2893
3322
  handleRuntimeStdio?: ((args_0: Readable, args_1: Readable) => unknown) | undefined;
2894
3323
  upstream?: string | undefined;
2895
3324
  cf?: string | boolean | Record<string, any> | undefined;
2896
3325
  liveReload?: boolean | undefined;
2897
3326
  unsafeProxySharedSecret?: string | undefined;
2898
- unsafeModuleFallbackService?: ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
3327
+ unsafeModuleFallbackService?: ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
2899
3328
  unsafeStickyBlobs?: boolean | undefined;
3329
+ unsafeEnableAssetsRpc?: boolean | undefined;
2900
3330
  }, {
2901
3331
  rootPath?: string | undefined;
2902
3332
  host?: string | undefined;
@@ -2908,16 +3338,17 @@ export declare const PLUGINS: {
2908
3338
  httpsCertPath?: string | undefined;
2909
3339
  inspectorPort?: number | undefined;
2910
3340
  verbose?: boolean | undefined;
2911
- log?: Log | undefined;
3341
+ log?: Log_2 | undefined;
2912
3342
  handleRuntimeStdio?: ((args_0: Readable, args_1: Readable) => unknown) | undefined;
2913
3343
  upstream?: string | undefined;
2914
3344
  cf?: string | boolean | Record<string, any> | undefined;
2915
3345
  liveReload?: boolean | undefined;
2916
3346
  unsafeProxySharedSecret?: string | undefined;
2917
- unsafeModuleFallbackService?: ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
3347
+ unsafeModuleFallbackService?: ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
2918
3348
  unsafeStickyBlobs?: boolean | undefined;
3349
+ unsafeEnableAssetsRpc?: boolean | undefined;
2919
3350
  }>>;
2920
- cache: Plugin<z.ZodObject<{
3351
+ cache: Plugin_2<z.ZodObject<{
2921
3352
  cache: z.ZodOptional<z.ZodBoolean>;
2922
3353
  cacheWarnUsage: z.ZodOptional<z.ZodBoolean>;
2923
3354
  }, "strip", z.ZodTypeAny, {
@@ -2933,7 +3364,7 @@ export declare const PLUGINS: {
2933
3364
  }, {
2934
3365
  cachePersist?: string | boolean | undefined;
2935
3366
  }>>;
2936
- d1: Plugin<z.ZodObject<{
3367
+ d1: Plugin_2<z.ZodObject<{
2937
3368
  d1Databases: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodString, "many">]>>;
2938
3369
  }, "strip", z.ZodTypeAny, {
2939
3370
  d1Databases?: string[] | Record<string, string> | undefined;
@@ -2946,35 +3377,40 @@ export declare const PLUGINS: {
2946
3377
  }, {
2947
3378
  d1Persist?: string | boolean | undefined;
2948
3379
  }>>;
2949
- do: Plugin<z.ZodObject<{
3380
+ do: Plugin_2<z.ZodObject<{
2950
3381
  durableObjects: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
2951
3382
  className: z.ZodString;
2952
3383
  scriptName: z.ZodOptional<z.ZodString>;
2953
- unsafeUniqueKey: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<kUnsafeEphemeralUniqueKey>]>>;
3384
+ useSQLite: z.ZodOptional<z.ZodBoolean>;
3385
+ unsafeUniqueKey: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<kUnsafeEphemeralUniqueKey_2>]>>;
2954
3386
  unsafePreventEviction: z.ZodOptional<z.ZodBoolean>;
2955
3387
  }, "strip", z.ZodTypeAny, {
2956
3388
  className: string;
2957
3389
  scriptName?: string | undefined;
2958
- unsafeUniqueKey?: string | kUnsafeEphemeralUniqueKey | undefined;
3390
+ useSQLite?: boolean | undefined;
3391
+ unsafeUniqueKey?: string | kUnsafeEphemeralUniqueKey_2 | undefined;
2959
3392
  unsafePreventEviction?: boolean | undefined;
2960
3393
  }, {
2961
3394
  className: string;
2962
3395
  scriptName?: string | undefined;
2963
- unsafeUniqueKey?: string | kUnsafeEphemeralUniqueKey | undefined;
3396
+ useSQLite?: boolean | undefined;
3397
+ unsafeUniqueKey?: string | kUnsafeEphemeralUniqueKey_2 | undefined;
2964
3398
  unsafePreventEviction?: boolean | undefined;
2965
3399
  }>]>>>;
2966
3400
  }, "strip", z.ZodTypeAny, {
2967
3401
  durableObjects?: Record<string, string | {
2968
3402
  className: string;
2969
3403
  scriptName?: string | undefined;
2970
- unsafeUniqueKey?: string | kUnsafeEphemeralUniqueKey | undefined;
3404
+ useSQLite?: boolean | undefined;
3405
+ unsafeUniqueKey?: string | kUnsafeEphemeralUniqueKey_2 | undefined;
2971
3406
  unsafePreventEviction?: boolean | undefined;
2972
3407
  }> | undefined;
2973
3408
  }, {
2974
3409
  durableObjects?: Record<string, string | {
2975
3410
  className: string;
2976
3411
  scriptName?: string | undefined;
2977
- unsafeUniqueKey?: string | kUnsafeEphemeralUniqueKey | undefined;
3412
+ useSQLite?: boolean | undefined;
3413
+ unsafeUniqueKey?: string | kUnsafeEphemeralUniqueKey_2 | undefined;
2978
3414
  unsafePreventEviction?: boolean | undefined;
2979
3415
  }> | undefined;
2980
3416
  }>, z.ZodObject<{
@@ -2984,7 +3420,7 @@ export declare const PLUGINS: {
2984
3420
  }, {
2985
3421
  durableObjectsPersist?: string | boolean | undefined;
2986
3422
  }>>;
2987
- kv: Plugin<z.ZodObject<{
3423
+ kv: Plugin_2<z.ZodObject<{
2988
3424
  kvNamespaces: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodString, "many">]>>;
2989
3425
  sitePath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2990
3426
  siteInclude: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -3006,7 +3442,7 @@ export declare const PLUGINS: {
3006
3442
  }, {
3007
3443
  kvPersist?: string | boolean | undefined;
3008
3444
  }>>;
3009
- queues: Plugin<z.ZodObject<{
3445
+ queues: Plugin_2<z.ZodObject<{
3010
3446
  queueProducers: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodObject<{
3011
3447
  queueName: z.ZodString;
3012
3448
  deliveryDelay: z.ZodOptional<z.ZodNumber>;
@@ -3017,22 +3453,39 @@ export declare const PLUGINS: {
3017
3453
  queueName: string;
3018
3454
  deliveryDelay?: number | undefined;
3019
3455
  }>>, z.ZodArray<z.ZodString, "many">, z.ZodRecord<z.ZodString, z.ZodString>]>>;
3020
- queueConsumers: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodObject<{
3456
+ queueConsumers: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
3021
3457
  maxBatchSize: z.ZodOptional<z.ZodNumber>;
3022
3458
  maxBatchTimeout: z.ZodOptional<z.ZodNumber>;
3023
3459
  maxRetires: z.ZodOptional<z.ZodNumber>;
3460
+ maxRetries: z.ZodOptional<z.ZodNumber>;
3024
3461
  deadLetterQueue: z.ZodOptional<z.ZodString>;
3025
3462
  retryDelay: z.ZodOptional<z.ZodNumber>;
3026
3463
  }, "strip", z.ZodTypeAny, {
3027
3464
  maxBatchSize?: number | undefined;
3028
3465
  maxBatchTimeout?: number | undefined;
3029
3466
  maxRetires?: number | undefined;
3467
+ maxRetries?: number | undefined;
3030
3468
  deadLetterQueue?: string | undefined;
3031
3469
  retryDelay?: number | undefined;
3032
3470
  }, {
3033
3471
  maxBatchSize?: number | undefined;
3034
3472
  maxBatchTimeout?: number | undefined;
3035
3473
  maxRetires?: number | undefined;
3474
+ maxRetries?: number | undefined;
3475
+ deadLetterQueue?: string | undefined;
3476
+ retryDelay?: number | undefined;
3477
+ }>, Omit<{
3478
+ maxBatchSize?: number | undefined;
3479
+ maxBatchTimeout?: number | undefined;
3480
+ maxRetires?: number | undefined;
3481
+ maxRetries?: number | undefined;
3482
+ deadLetterQueue?: string | undefined;
3483
+ retryDelay?: number | undefined;
3484
+ }, "maxRetires">, {
3485
+ maxBatchSize?: number | undefined;
3486
+ maxBatchTimeout?: number | undefined;
3487
+ maxRetires?: number | undefined;
3488
+ maxRetries?: number | undefined;
3036
3489
  deadLetterQueue?: string | undefined;
3037
3490
  retryDelay?: number | undefined;
3038
3491
  }>>, z.ZodArray<z.ZodString, "many">]>>;
@@ -3041,13 +3494,14 @@ export declare const PLUGINS: {
3041
3494
  queueName: string;
3042
3495
  deliveryDelay?: number | undefined;
3043
3496
  }> | undefined;
3044
- queueConsumers?: string[] | Record<string, {
3497
+ queueConsumers?: string[] | Record<string, Omit<{
3045
3498
  maxBatchSize?: number | undefined;
3046
3499
  maxBatchTimeout?: number | undefined;
3047
3500
  maxRetires?: number | undefined;
3501
+ maxRetries?: number | undefined;
3048
3502
  deadLetterQueue?: string | undefined;
3049
3503
  retryDelay?: number | undefined;
3050
- }> | undefined;
3504
+ }, "maxRetires">> | undefined;
3051
3505
  }, {
3052
3506
  queueProducers?: string[] | Record<string, string> | Record<string, {
3053
3507
  queueName: string;
@@ -3057,11 +3511,12 @@ export declare const PLUGINS: {
3057
3511
  maxBatchSize?: number | undefined;
3058
3512
  maxBatchTimeout?: number | undefined;
3059
3513
  maxRetires?: number | undefined;
3514
+ maxRetries?: number | undefined;
3060
3515
  deadLetterQueue?: string | undefined;
3061
3516
  retryDelay?: number | undefined;
3062
3517
  }> | undefined;
3063
3518
  }>>;
3064
- r2: Plugin<z.ZodObject<{
3519
+ r2: Plugin_2<z.ZodObject<{
3065
3520
  r2Buckets: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodString, "many">]>>;
3066
3521
  }, "strip", z.ZodTypeAny, {
3067
3522
  r2Buckets?: string[] | Record<string, string> | undefined;
@@ -3074,97 +3529,399 @@ export declare const PLUGINS: {
3074
3529
  }, {
3075
3530
  r2Persist?: string | boolean | undefined;
3076
3531
  }>>;
3077
- hyperdrive: Plugin<z.ZodObject<{
3532
+ hyperdrive: Plugin_2<z.ZodObject<{
3078
3533
  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>>>;
3079
3534
  }, "strip", z.ZodTypeAny, {
3080
3535
  hyperdrives?: Record<string, URL_2> | undefined;
3081
3536
  }, {
3082
3537
  hyperdrives?: Record<string, string | URL_2> | undefined;
3083
3538
  }>>;
3084
- ratelimit: Plugin<z.ZodObject<{
3539
+ ratelimit: Plugin_2<z.ZodObject<{
3085
3540
  ratelimits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3086
3541
  simple: z.ZodObject<{
3087
3542
  limit: z.ZodNumber;
3088
- period: z.ZodOptional<z.ZodNativeEnum<PeriodType>>;
3543
+ period: z.ZodOptional<z.ZodNativeEnum<PeriodType_2>>;
3089
3544
  }, "strip", z.ZodTypeAny, {
3090
3545
  limit: number;
3091
- period?: PeriodType | undefined;
3546
+ period?: PeriodType_2 | undefined;
3092
3547
  }, {
3093
3548
  limit: number;
3094
- period?: PeriodType | undefined;
3549
+ period?: PeriodType_2 | undefined;
3095
3550
  }>;
3096
3551
  }, "strip", z.ZodTypeAny, {
3097
3552
  simple: {
3098
3553
  limit: number;
3099
- period?: PeriodType | undefined;
3554
+ period?: PeriodType_2 | undefined;
3100
3555
  };
3101
3556
  }, {
3102
3557
  simple: {
3103
3558
  limit: number;
3104
- period?: PeriodType | undefined;
3559
+ period?: PeriodType_2 | undefined;
3105
3560
  };
3106
3561
  }>>>;
3107
3562
  }, "strip", z.ZodTypeAny, {
3108
3563
  ratelimits?: Record<string, {
3109
3564
  simple: {
3110
3565
  limit: number;
3111
- period?: PeriodType | undefined;
3566
+ period?: PeriodType_2 | undefined;
3112
3567
  };
3113
3568
  }> | undefined;
3114
3569
  }, {
3115
3570
  ratelimits?: Record<string, {
3116
3571
  simple: {
3117
3572
  limit: number;
3118
- period?: PeriodType | undefined;
3573
+ period?: PeriodType_2 | undefined;
3119
3574
  };
3120
3575
  }> | undefined;
3121
3576
  }>>;
3122
- assets: Plugin<z.ZodObject<{
3577
+ assets: Plugin_2<z.ZodObject<{
3123
3578
  assets: z.ZodOptional<z.ZodObject<{
3124
3579
  workerName: z.ZodOptional<z.ZodString>;
3125
- path: z.ZodEffects<z.ZodString, string, string>;
3126
- bindingName: z.ZodOptional<z.ZodString>;
3127
- routingConfig: z.ZodObject<{
3128
- hasUserWorker: z.ZodBoolean;
3580
+ directory: z.ZodEffects<z.ZodString, string, string>;
3581
+ binding: z.ZodOptional<z.ZodString>;
3582
+ routerConfig: z.ZodOptional<z.ZodObject<{
3583
+ account_id: z.ZodOptional<z.ZodNumber>;
3584
+ script_id: z.ZodOptional<z.ZodNumber>;
3585
+ invoke_user_worker_ahead_of_assets: z.ZodOptional<z.ZodBoolean>;
3586
+ has_user_worker: z.ZodOptional<z.ZodBoolean>;
3587
+ }, "strip", z.ZodTypeAny, {
3588
+ account_id?: number;
3589
+ script_id?: number;
3590
+ invoke_user_worker_ahead_of_assets?: boolean;
3591
+ has_user_worker?: boolean;
3592
+ }, {
3593
+ account_id?: number;
3594
+ script_id?: number;
3595
+ invoke_user_worker_ahead_of_assets?: boolean;
3596
+ has_user_worker?: boolean;
3597
+ }>>;
3598
+ assetConfig: z.ZodOptional<z.ZodObject<{
3599
+ account_id: z.ZodOptional<z.ZodNumber>;
3600
+ script_id: z.ZodOptional<z.ZodNumber>;
3601
+ compatibility_date: z.ZodOptional<z.ZodString>;
3602
+ compatibility_flags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3603
+ html_handling: z.ZodOptional<z.ZodEnum<["auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none"]>>;
3604
+ not_found_handling: z.ZodOptional<z.ZodEnum<["single-page-application", "404-page", "none"]>>;
3605
+ redirects: z.ZodOptional<z.ZodObject<{
3606
+ version: z.ZodLiteral<1>;
3607
+ staticRules: z.ZodRecord<z.ZodString, z.ZodObject<{
3608
+ status: z.ZodNumber;
3609
+ to: z.ZodString;
3610
+ lineNumber: z.ZodNumber;
3611
+ }, "strip", z.ZodTypeAny, {
3612
+ status?: number;
3613
+ to?: string;
3614
+ lineNumber?: number;
3615
+ }, {
3616
+ status?: number;
3617
+ to?: string;
3618
+ lineNumber?: number;
3619
+ }>>;
3620
+ rules: z.ZodRecord<z.ZodString, z.ZodObject<{
3621
+ status: z.ZodNumber;
3622
+ to: z.ZodString;
3623
+ }, "strip", z.ZodTypeAny, {
3624
+ status?: number;
3625
+ to?: string;
3626
+ }, {
3627
+ status?: number;
3628
+ to?: string;
3629
+ }>>;
3630
+ }, "strip", z.ZodTypeAny, {
3631
+ version?: 1;
3632
+ staticRules?: Record<string, {
3633
+ status?: number;
3634
+ to?: string;
3635
+ lineNumber?: number;
3636
+ }>;
3637
+ rules?: Record<string, {
3638
+ status?: number;
3639
+ to?: string;
3640
+ }>;
3641
+ }, {
3642
+ version?: 1;
3643
+ staticRules?: Record<string, {
3644
+ status?: number;
3645
+ to?: string;
3646
+ lineNumber?: number;
3647
+ }>;
3648
+ rules?: Record<string, {
3649
+ status?: number;
3650
+ to?: string;
3651
+ }>;
3652
+ }>>;
3653
+ headers: z.ZodOptional<z.ZodObject<{
3654
+ version: z.ZodLiteral<2>;
3655
+ rules: z.ZodRecord<z.ZodString, z.ZodObject<{
3656
+ set: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3657
+ unset: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3129
3658
  }, "strip", z.ZodTypeAny, {
3130
- hasUserWorker: boolean;
3659
+ set?: Record<string, string>;
3660
+ unset?: string[];
3131
3661
  }, {
3132
- hasUserWorker: boolean;
3662
+ set?: Record<string, string>;
3663
+ unset?: string[];
3664
+ }>>;
3665
+ }, "strip", z.ZodTypeAny, {
3666
+ version?: 2;
3667
+ rules?: Record<string, {
3668
+ set?: Record<string, string>;
3669
+ unset?: string[];
3133
3670
  }>;
3671
+ }, {
3672
+ version?: 2;
3673
+ rules?: Record<string, {
3674
+ set?: Record<string, string>;
3675
+ unset?: string[];
3676
+ }>;
3677
+ }>>;
3134
3678
  }, "strip", z.ZodTypeAny, {
3135
- path: string;
3136
- routingConfig: {
3137
- hasUserWorker: boolean;
3679
+ account_id?: number;
3680
+ script_id?: number;
3681
+ compatibility_date?: string;
3682
+ compatibility_flags?: string[];
3683
+ html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
3684
+ not_found_handling?: "none" | "single-page-application" | "404-page";
3685
+ redirects?: {
3686
+ version?: 1;
3687
+ staticRules?: Record<string, {
3688
+ status?: number;
3689
+ to?: string;
3690
+ lineNumber?: number;
3691
+ }>;
3692
+ rules?: Record<string, {
3693
+ status?: number;
3694
+ to?: string;
3695
+ }>;
3696
+ };
3697
+ headers?: {
3698
+ version?: 2;
3699
+ rules?: Record<string, {
3700
+ set?: Record<string, string>;
3701
+ unset?: string[];
3702
+ }>;
3138
3703
  };
3139
- workerName?: string | undefined;
3140
- bindingName?: string | undefined;
3141
3704
  }, {
3142
- path: string;
3143
- routingConfig: {
3144
- hasUserWorker: boolean;
3705
+ account_id?: number;
3706
+ script_id?: number;
3707
+ compatibility_date?: string;
3708
+ compatibility_flags?: string[];
3709
+ html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
3710
+ not_found_handling?: "none" | "single-page-application" | "404-page";
3711
+ redirects?: {
3712
+ version?: 1;
3713
+ staticRules?: Record<string, {
3714
+ status?: number;
3715
+ to?: string;
3716
+ lineNumber?: number;
3717
+ }>;
3718
+ rules?: Record<string, {
3719
+ status?: number;
3720
+ to?: string;
3721
+ }>;
3722
+ };
3723
+ headers?: {
3724
+ version?: 2;
3725
+ rules?: Record<string, {
3726
+ set?: Record<string, string>;
3727
+ unset?: string[];
3728
+ }>;
3729
+ };
3730
+ }>>;
3731
+ }, "strip", z.ZodTypeAny, {
3732
+ directory: string;
3733
+ workerName?: string | undefined;
3734
+ binding?: string | undefined;
3735
+ routerConfig?: {
3736
+ account_id?: number;
3737
+ script_id?: number;
3738
+ invoke_user_worker_ahead_of_assets?: boolean;
3739
+ has_user_worker?: boolean;
3740
+ } | undefined;
3741
+ assetConfig?: {
3742
+ account_id?: number;
3743
+ script_id?: number;
3744
+ compatibility_date?: string;
3745
+ compatibility_flags?: string[];
3746
+ html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
3747
+ not_found_handling?: "none" | "single-page-application" | "404-page";
3748
+ redirects?: {
3749
+ version?: 1;
3750
+ staticRules?: Record<string, {
3751
+ status?: number;
3752
+ to?: string;
3753
+ lineNumber?: number;
3754
+ }>;
3755
+ rules?: Record<string, {
3756
+ status?: number;
3757
+ to?: string;
3758
+ }>;
3145
3759
  };
3760
+ headers?: {
3761
+ version?: 2;
3762
+ rules?: Record<string, {
3763
+ set?: Record<string, string>;
3764
+ unset?: string[];
3765
+ }>;
3766
+ };
3767
+ } | undefined;
3768
+ }, {
3769
+ directory: string;
3146
3770
  workerName?: string | undefined;
3147
- bindingName?: string | undefined;
3771
+ binding?: string | undefined;
3772
+ routerConfig?: {
3773
+ account_id?: number;
3774
+ script_id?: number;
3775
+ invoke_user_worker_ahead_of_assets?: boolean;
3776
+ has_user_worker?: boolean;
3777
+ } | undefined;
3778
+ assetConfig?: {
3779
+ account_id?: number;
3780
+ script_id?: number;
3781
+ compatibility_date?: string;
3782
+ compatibility_flags?: string[];
3783
+ html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
3784
+ not_found_handling?: "none" | "single-page-application" | "404-page";
3785
+ redirects?: {
3786
+ version?: 1;
3787
+ staticRules?: Record<string, {
3788
+ status?: number;
3789
+ to?: string;
3790
+ lineNumber?: number;
3791
+ }>;
3792
+ rules?: Record<string, {
3793
+ status?: number;
3794
+ to?: string;
3795
+ }>;
3796
+ };
3797
+ headers?: {
3798
+ version?: 2;
3799
+ rules?: Record<string, {
3800
+ set?: Record<string, string>;
3801
+ unset?: string[];
3802
+ }>;
3803
+ };
3804
+ } | undefined;
3148
3805
  }>>;
3149
3806
  }, "strip", z.ZodTypeAny, {
3150
3807
  assets?: {
3151
- path: string;
3152
- routingConfig: {
3153
- hasUserWorker: boolean;
3154
- };
3808
+ directory: string;
3155
3809
  workerName?: string | undefined;
3156
- bindingName?: string | undefined;
3810
+ binding?: string | undefined;
3811
+ routerConfig?: {
3812
+ account_id?: number;
3813
+ script_id?: number;
3814
+ invoke_user_worker_ahead_of_assets?: boolean;
3815
+ has_user_worker?: boolean;
3816
+ } | undefined;
3817
+ assetConfig?: {
3818
+ account_id?: number;
3819
+ script_id?: number;
3820
+ compatibility_date?: string;
3821
+ compatibility_flags?: string[];
3822
+ html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
3823
+ not_found_handling?: "none" | "single-page-application" | "404-page";
3824
+ redirects?: {
3825
+ version?: 1;
3826
+ staticRules?: Record<string, {
3827
+ status?: number;
3828
+ to?: string;
3829
+ lineNumber?: number;
3830
+ }>;
3831
+ rules?: Record<string, {
3832
+ status?: number;
3833
+ to?: string;
3834
+ }>;
3835
+ };
3836
+ headers?: {
3837
+ version?: 2;
3838
+ rules?: Record<string, {
3839
+ set?: Record<string, string>;
3840
+ unset?: string[];
3841
+ }>;
3842
+ };
3843
+ } | undefined;
3157
3844
  } | undefined;
3158
3845
  }, {
3159
3846
  assets?: {
3160
- path: string;
3161
- routingConfig: {
3162
- hasUserWorker: boolean;
3163
- };
3847
+ directory: string;
3164
3848
  workerName?: string | undefined;
3165
- bindingName?: string | undefined;
3849
+ binding?: string | undefined;
3850
+ routerConfig?: {
3851
+ account_id?: number;
3852
+ script_id?: number;
3853
+ invoke_user_worker_ahead_of_assets?: boolean;
3854
+ has_user_worker?: boolean;
3855
+ } | undefined;
3856
+ assetConfig?: {
3857
+ account_id?: number;
3858
+ script_id?: number;
3859
+ compatibility_date?: string;
3860
+ compatibility_flags?: string[];
3861
+ html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
3862
+ not_found_handling?: "none" | "single-page-application" | "404-page";
3863
+ redirects?: {
3864
+ version?: 1;
3865
+ staticRules?: Record<string, {
3866
+ status?: number;
3867
+ to?: string;
3868
+ lineNumber?: number;
3869
+ }>;
3870
+ rules?: Record<string, {
3871
+ status?: number;
3872
+ to?: string;
3873
+ }>;
3874
+ };
3875
+ headers?: {
3876
+ version?: 2;
3877
+ rules?: Record<string, {
3878
+ set?: Record<string, string>;
3879
+ unset?: string[];
3880
+ }>;
3881
+ };
3882
+ } | undefined;
3166
3883
  } | undefined;
3167
3884
  }>>;
3885
+ workflows: Plugin_2<z.ZodObject<{
3886
+ workflows: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3887
+ name: z.ZodString;
3888
+ className: z.ZodString;
3889
+ scriptName: z.ZodOptional<z.ZodString>;
3890
+ }, "strip", z.ZodTypeAny, {
3891
+ name: string;
3892
+ className: string;
3893
+ scriptName?: string | undefined;
3894
+ }, {
3895
+ name: string;
3896
+ className: string;
3897
+ scriptName?: string | undefined;
3898
+ }>>>;
3899
+ }, "strip", z.ZodTypeAny, {
3900
+ workflows?: Record<string, {
3901
+ name: string;
3902
+ className: string;
3903
+ scriptName?: string | undefined;
3904
+ }> | undefined;
3905
+ }, {
3906
+ workflows?: Record<string, {
3907
+ name: string;
3908
+ className: string;
3909
+ scriptName?: string | undefined;
3910
+ }> | undefined;
3911
+ }>, z.ZodObject<{
3912
+ workflowsPersist: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
3913
+ }, "strip", z.ZodTypeAny, {
3914
+ workflowsPersist?: string | boolean | undefined;
3915
+ }, {
3916
+ workflowsPersist?: string | boolean | undefined;
3917
+ }>>;
3918
+ pipelines: Plugin_2<z.ZodObject<{
3919
+ pipelines: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodString, "many">]>>;
3920
+ }, "strip", z.ZodTypeAny, {
3921
+ pipelines?: string[] | Record<string, string> | undefined;
3922
+ }, {
3923
+ pipelines?: string[] | Record<string, string> | undefined;
3924
+ }>>;
3168
3925
  };
3169
3926
 
3170
3927
  export declare type Plugins = typeof PLUGINS;
@@ -3185,11 +3942,12 @@ export declare interface PluginServicesOptions<Options extends z.ZodType, Shared
3185
3942
  unsafeEphemeralDurableObjects: boolean;
3186
3943
  queueProducers: QueueProducers;
3187
3944
  queueConsumers: QueueConsumers;
3945
+ unsafeEnableAssetsRpc: boolean;
3188
3946
  }
3189
3947
 
3190
3948
  export declare function prefixError(prefix: string, e: any): Error;
3191
3949
 
3192
- export declare function prefixStream(prefix: Uint8Array, stream: ReadableStream_2<Uint8Array>): ReadableStream_2<Uint8Array>;
3950
+ export declare function prefixStream(prefix: Uint8Array, stream: ReadableStream_3<Uint8Array>): ReadableStream_3<Uint8Array>;
3193
3951
 
3194
3952
  export declare const ProxyAddresses: {
3195
3953
  readonly GLOBAL: 0;
@@ -3207,6 +3965,11 @@ export declare class ProxyClient {
3207
3965
  dispose(): Promise<void>;
3208
3966
  }
3209
3967
 
3968
+ export declare class ProxyNodeBinding {
3969
+ proxyOverrideHandler?: ProxyHandler<any> | undefined;
3970
+ constructor(proxyOverrideHandler?: ProxyHandler<any> | undefined);
3971
+ }
3972
+
3210
3973
  export declare const ProxyOps: {
3211
3974
  readonly GET: "GET";
3212
3975
  readonly GET_OWN_DESCRIPTOR: "GET_OWN_DESCRIPTOR";
@@ -3223,44 +3986,78 @@ export declare const QueueBindings: {
3223
3986
 
3224
3987
  export declare type QueueConsumer = z.infer<typeof QueueConsumerSchema>;
3225
3988
 
3226
- export declare const QueueConsumerOptionsSchema: z.ZodObject<{
3989
+ export declare const QueueConsumerOptionsSchema: z.ZodEffects<z.ZodObject<{
3227
3990
  maxBatchSize: z.ZodOptional<z.ZodNumber>;
3228
3991
  maxBatchTimeout: z.ZodOptional<z.ZodNumber>;
3229
3992
  maxRetires: z.ZodOptional<z.ZodNumber>;
3993
+ maxRetries: z.ZodOptional<z.ZodNumber>;
3230
3994
  deadLetterQueue: z.ZodOptional<z.ZodString>;
3231
3995
  retryDelay: z.ZodOptional<z.ZodNumber>;
3232
3996
  }, "strip", z.ZodTypeAny, {
3233
3997
  maxBatchSize?: number | undefined;
3234
3998
  maxBatchTimeout?: number | undefined;
3235
3999
  maxRetires?: number | undefined;
4000
+ maxRetries?: number | undefined;
3236
4001
  deadLetterQueue?: string | undefined;
3237
4002
  retryDelay?: number | undefined;
3238
4003
  }, {
3239
4004
  maxBatchSize?: number | undefined;
3240
4005
  maxBatchTimeout?: number | undefined;
3241
4006
  maxRetires?: number | undefined;
4007
+ maxRetries?: number | undefined;
4008
+ deadLetterQueue?: string | undefined;
4009
+ retryDelay?: number | undefined;
4010
+ }>, Omit<{
4011
+ maxBatchSize?: number | undefined;
4012
+ maxBatchTimeout?: number | undefined;
4013
+ maxRetires?: number | undefined;
4014
+ maxRetries?: number | undefined;
4015
+ deadLetterQueue?: string | undefined;
4016
+ retryDelay?: number | undefined;
4017
+ }, "maxRetires">, {
4018
+ maxBatchSize?: number | undefined;
4019
+ maxBatchTimeout?: number | undefined;
4020
+ maxRetires?: number | undefined;
4021
+ maxRetries?: number | undefined;
3242
4022
  deadLetterQueue?: string | undefined;
3243
4023
  retryDelay?: number | undefined;
3244
4024
  }>;
3245
4025
 
3246
4026
  export declare type QueueConsumers = Map<string, z.infer<typeof QueueConsumerSchema>>;
3247
4027
 
3248
- export declare const QueueConsumerSchema: z.ZodIntersection<z.ZodObject<{
4028
+ export declare const QueueConsumerSchema: z.ZodIntersection<z.ZodEffects<z.ZodObject<{
3249
4029
  maxBatchSize: z.ZodOptional<z.ZodNumber>;
3250
4030
  maxBatchTimeout: z.ZodOptional<z.ZodNumber>;
3251
4031
  maxRetires: z.ZodOptional<z.ZodNumber>;
4032
+ maxRetries: z.ZodOptional<z.ZodNumber>;
3252
4033
  deadLetterQueue: z.ZodOptional<z.ZodString>;
3253
4034
  retryDelay: z.ZodOptional<z.ZodNumber>;
3254
4035
  }, "strip", z.ZodTypeAny, {
3255
4036
  maxBatchSize?: number | undefined;
3256
4037
  maxBatchTimeout?: number | undefined;
3257
4038
  maxRetires?: number | undefined;
4039
+ maxRetries?: number | undefined;
3258
4040
  deadLetterQueue?: string | undefined;
3259
4041
  retryDelay?: number | undefined;
3260
4042
  }, {
3261
4043
  maxBatchSize?: number | undefined;
3262
4044
  maxBatchTimeout?: number | undefined;
3263
4045
  maxRetires?: number | undefined;
4046
+ maxRetries?: number | undefined;
4047
+ deadLetterQueue?: string | undefined;
4048
+ retryDelay?: number | undefined;
4049
+ }>, Omit<{
4050
+ maxBatchSize?: number | undefined;
4051
+ maxBatchTimeout?: number | undefined;
4052
+ maxRetires?: number | undefined;
4053
+ maxRetries?: number | undefined;
4054
+ deadLetterQueue?: string | undefined;
4055
+ retryDelay?: number | undefined;
4056
+ }, "maxRetires">, {
4057
+ maxBatchSize?: number | undefined;
4058
+ maxBatchTimeout?: number | undefined;
4059
+ maxRetires?: number | undefined;
4060
+ maxRetries?: number | undefined;
3264
4061
  deadLetterQueue?: string | undefined;
3265
4062
  retryDelay?: number | undefined;
3266
4063
  }>, z.ZodObject<{
@@ -3271,22 +4068,39 @@ export declare const QueueConsumerSchema: z.ZodIntersection<z.ZodObject<{
3271
4068
  workerName: string;
3272
4069
  }>>;
3273
4070
 
3274
- export declare const QueueConsumersSchema: z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodObject<{
4071
+ export declare const QueueConsumersSchema: z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
3275
4072
  maxBatchSize: z.ZodOptional<z.ZodNumber>;
3276
4073
  maxBatchTimeout: z.ZodOptional<z.ZodNumber>;
3277
4074
  maxRetires: z.ZodOptional<z.ZodNumber>;
4075
+ maxRetries: z.ZodOptional<z.ZodNumber>;
3278
4076
  deadLetterQueue: z.ZodOptional<z.ZodString>;
3279
4077
  retryDelay: z.ZodOptional<z.ZodNumber>;
3280
4078
  }, "strip", z.ZodTypeAny, {
3281
4079
  maxBatchSize?: number | undefined;
3282
4080
  maxBatchTimeout?: number | undefined;
3283
4081
  maxRetires?: number | undefined;
4082
+ maxRetries?: number | undefined;
3284
4083
  deadLetterQueue?: string | undefined;
3285
4084
  retryDelay?: number | undefined;
3286
4085
  }, {
3287
4086
  maxBatchSize?: number | undefined;
3288
4087
  maxBatchTimeout?: number | undefined;
3289
4088
  maxRetires?: number | undefined;
4089
+ maxRetries?: number | undefined;
4090
+ deadLetterQueue?: string | undefined;
4091
+ retryDelay?: number | undefined;
4092
+ }>, Omit<{
4093
+ maxBatchSize?: number | undefined;
4094
+ maxBatchTimeout?: number | undefined;
4095
+ maxRetires?: number | undefined;
4096
+ maxRetries?: number | undefined;
4097
+ deadLetterQueue?: string | undefined;
4098
+ retryDelay?: number | undefined;
4099
+ }, "maxRetires">, {
4100
+ maxBatchSize?: number | undefined;
4101
+ maxBatchTimeout?: number | undefined;
4102
+ maxRetires?: number | undefined;
4103
+ maxRetries?: number | undefined;
3290
4104
  deadLetterQueue?: string | undefined;
3291
4105
  retryDelay?: number | undefined;
3292
4106
  }>, z.ZodObject<{
@@ -3306,11 +4120,11 @@ export declare type QueueIncomingMessage = z.infer<typeof QueueIncomingMessageSc
3306
4120
  export declare const QueueIncomingMessageSchema: z.ZodObject<{
3307
4121
  contentType: z.ZodDefault<z.ZodEnum<["text", "json", "bytes", "v8"]>>;
3308
4122
  delaySecs: z.ZodOptional<z.ZodNumber>;
3309
- body: z.ZodEffects<z.ZodString, Buffer, string>;
4123
+ body: z.ZodEffects<z.ZodString, Buffer<ArrayBuffer>, string>;
3310
4124
  id: z.ZodOptional<z.ZodString>;
3311
4125
  timestamp: z.ZodOptional<z.ZodNumber>;
3312
4126
  }, "strip", z.ZodTypeAny, {
3313
- body: Buffer;
4127
+ body: Buffer<ArrayBuffer>;
3314
4128
  contentType: "json" | "bytes" | "v8" | "text";
3315
4129
  delaySecs?: number | undefined;
3316
4130
  id?: string | undefined;
@@ -3386,11 +4200,11 @@ export declare const QueuesBatchRequestSchema: z.ZodObject<{
3386
4200
  messages: z.ZodArray<z.ZodObject<{
3387
4201
  contentType: z.ZodDefault<z.ZodEnum<["text", "json", "bytes", "v8"]>>;
3388
4202
  delaySecs: z.ZodOptional<z.ZodNumber>;
3389
- body: z.ZodEffects<z.ZodString, Buffer, string>;
4203
+ body: z.ZodEffects<z.ZodString, Buffer<ArrayBuffer>, string>;
3390
4204
  id: z.ZodOptional<z.ZodString>;
3391
4205
  timestamp: z.ZodOptional<z.ZodNumber>;
3392
4206
  }, "strip", z.ZodTypeAny, {
3393
- body: Buffer;
4207
+ body: Buffer<ArrayBuffer>;
3394
4208
  contentType: "json" | "bytes" | "v8" | "text";
3395
4209
  delaySecs?: number | undefined;
3396
4210
  id?: string | undefined;
@@ -3404,7 +4218,7 @@ export declare const QueuesBatchRequestSchema: z.ZodObject<{
3404
4218
  }>, "many">;
3405
4219
  }, "strip", z.ZodTypeAny, {
3406
4220
  messages: {
3407
- body: Buffer;
4221
+ body: Buffer<ArrayBuffer>;
3408
4222
  contentType: "json" | "bytes" | "v8" | "text";
3409
4223
  delaySecs?: number | undefined;
3410
4224
  id?: string | undefined;
@@ -3436,22 +4250,39 @@ export declare const QueuesOptionsSchema: z.ZodObject<{
3436
4250
  queueName: string;
3437
4251
  deliveryDelay?: number | undefined;
3438
4252
  }>>, z.ZodArray<z.ZodString, "many">, z.ZodRecord<z.ZodString, z.ZodString>]>>;
3439
- queueConsumers: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodObject<{
4253
+ queueConsumers: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
3440
4254
  maxBatchSize: z.ZodOptional<z.ZodNumber>;
3441
4255
  maxBatchTimeout: z.ZodOptional<z.ZodNumber>;
3442
4256
  maxRetires: z.ZodOptional<z.ZodNumber>;
4257
+ maxRetries: z.ZodOptional<z.ZodNumber>;
3443
4258
  deadLetterQueue: z.ZodOptional<z.ZodString>;
3444
4259
  retryDelay: z.ZodOptional<z.ZodNumber>;
3445
4260
  }, "strip", z.ZodTypeAny, {
3446
4261
  maxBatchSize?: number | undefined;
3447
4262
  maxBatchTimeout?: number | undefined;
3448
4263
  maxRetires?: number | undefined;
4264
+ maxRetries?: number | undefined;
3449
4265
  deadLetterQueue?: string | undefined;
3450
4266
  retryDelay?: number | undefined;
3451
4267
  }, {
3452
4268
  maxBatchSize?: number | undefined;
3453
4269
  maxBatchTimeout?: number | undefined;
3454
4270
  maxRetires?: number | undefined;
4271
+ maxRetries?: number | undefined;
4272
+ deadLetterQueue?: string | undefined;
4273
+ retryDelay?: number | undefined;
4274
+ }>, Omit<{
4275
+ maxBatchSize?: number | undefined;
4276
+ maxBatchTimeout?: number | undefined;
4277
+ maxRetires?: number | undefined;
4278
+ maxRetries?: number | undefined;
4279
+ deadLetterQueue?: string | undefined;
4280
+ retryDelay?: number | undefined;
4281
+ }, "maxRetires">, {
4282
+ maxBatchSize?: number | undefined;
4283
+ maxBatchTimeout?: number | undefined;
4284
+ maxRetires?: number | undefined;
4285
+ maxRetries?: number | undefined;
3455
4286
  deadLetterQueue?: string | undefined;
3456
4287
  retryDelay?: number | undefined;
3457
4288
  }>>, z.ZodArray<z.ZodString, "many">]>>;
@@ -3460,13 +4291,14 @@ export declare const QueuesOptionsSchema: z.ZodObject<{
3460
4291
  queueName: string;
3461
4292
  deliveryDelay?: number | undefined;
3462
4293
  }> | undefined;
3463
- queueConsumers?: string[] | Record<string, {
4294
+ queueConsumers?: string[] | Record<string, Omit<{
3464
4295
  maxBatchSize?: number | undefined;
3465
4296
  maxBatchTimeout?: number | undefined;
3466
4297
  maxRetires?: number | undefined;
4298
+ maxRetries?: number | undefined;
3467
4299
  deadLetterQueue?: string | undefined;
3468
4300
  retryDelay?: number | undefined;
3469
- }> | undefined;
4301
+ }, "maxRetires">> | undefined;
3470
4302
  }, {
3471
4303
  queueProducers?: string[] | Record<string, string> | Record<string, {
3472
4304
  queueName: string;
@@ -3476,6 +4308,7 @@ export declare const QueuesOptionsSchema: z.ZodObject<{
3476
4308
  maxBatchSize?: number | undefined;
3477
4309
  maxBatchTimeout?: number | undefined;
3478
4310
  maxRetires?: number | undefined;
4311
+ maxRetries?: number | undefined;
3479
4312
  deadLetterQueue?: string | undefined;
3480
4313
  retryDelay?: number | undefined;
3481
4314
  }> | undefined;
@@ -3569,7 +4402,7 @@ export declare const RatelimitOptionsSchema: z.ZodObject<{
3569
4402
  }> | undefined;
3570
4403
  }>;
3571
4404
 
3572
- export declare function readPrefix(stream: ReadableStream_2<Uint8Array>, prefixLength: number): Promise<[prefix: Buffer, rest: ReadableStream_2<Uint8Array>]>;
4405
+ export declare function readPrefix(stream: ReadableStream_3<Uint8Array>, prefixLength: number): Promise<[prefix: Buffer, rest: ReadableStream_3<Uint8Array>]>;
3573
4406
 
3574
4407
  export declare function reduceError(e: any): JsonError;
3575
4408
 
@@ -3579,17 +4412,18 @@ export declare type ReducersRevivers = Record<string, ReducerReviver>;
3579
4412
 
3580
4413
  export { ReferrerPolicy }
3581
4414
 
3582
- 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 ? {
4415
+ 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 ? {
3583
4416
  [K in keyof T]: OverloadReplaceWorkersTypes<T[K]>;
3584
4417
  } : T;
3585
4418
 
3586
- export declare class Request<CfType extends RequestInitCfType = RequestInitCfType> extends Request_2 {
4419
+ declare class Request_2<CfType extends RequestInitCfType = RequestInitCfType> extends Request_4 {
3587
4420
  [kCf]?: CfType;
3588
- constructor(input: RequestInfo, init?: RequestInit<CfType>);
4421
+ constructor(input: RequestInfo, init?: RequestInit_2<CfType>);
3589
4422
  get cf(): CfType | undefined;
3590
4423
  /** @ts-expect-error `clone` is actually defined as a method internally */
3591
- clone(): Request<CfType>;
4424
+ clone(): Request_2<CfType>;
3592
4425
  }
4426
+ export { Request_2 as Request }
3593
4427
 
3594
4428
  export { RequestCache }
3595
4429
 
@@ -3599,11 +4433,12 @@ export { RequestDestination }
3599
4433
 
3600
4434
  export { RequestDuplex }
3601
4435
 
3602
- export declare type RequestInfo = RequestInfo_2 | Request;
4436
+ export declare type RequestInfo = RequestInfo_2 | Request_2;
3603
4437
 
3604
- export declare interface RequestInit<CfType extends RequestInitCfType = RequestInitCfType> extends RequestInit_2 {
4438
+ declare interface RequestInit_2<CfType extends RequestInitCfType = RequestInitCfType> extends RequestInit_3 {
3605
4439
  cf?: CfType;
3606
4440
  }
4441
+ export { RequestInit_2 as RequestInit }
3607
4442
 
3608
4443
  export declare type RequestInitCfType = Partial<IncomingRequestCfProperties> | RequestInitCfProperties;
3609
4444
 
@@ -3611,22 +4446,24 @@ export { RequestMode }
3611
4446
 
3612
4447
  export { RequestRedirect }
3613
4448
 
3614
- export declare class Response extends Response_2 {
4449
+ declare class Response_2 extends Response_4 {
3615
4450
  readonly [kWebSocket]: WebSocket | null;
3616
- static error(): Response;
3617
- static redirect(url: string | URL, status: ResponseRedirectStatus): Response;
3618
- static json(data: any, init?: ResponseInit): Response;
3619
- constructor(body?: BodyInit, init?: ResponseInit);
4451
+ static error(): Response_2;
4452
+ static redirect(url: string | URL, status: ResponseRedirectStatus): Response_2;
4453
+ static json(data: any, init?: ResponseInit_2): Response_2;
4454
+ constructor(body?: BodyInit, init?: ResponseInit_2);
3620
4455
  /** @ts-expect-error `status` is actually defined as a getter internally */
3621
4456
  get status(): number;
3622
4457
  get webSocket(): WebSocket | null;
3623
4458
  /** @ts-expect-error `clone` is actually defined as a method internally */
3624
- clone(): Response;
4459
+ clone(): Response_2;
3625
4460
  }
4461
+ export { Response_2 as Response }
3626
4462
 
3627
- export declare interface ResponseInit extends ResponseInit_2 {
4463
+ declare interface ResponseInit_2 extends ResponseInit_3 {
3628
4464
  webSocket?: WebSocket | null;
3629
4465
  }
4466
+ export { ResponseInit_2 as ResponseInit }
3630
4467
 
3631
4468
  export { ResponseRedirectStatus }
3632
4469
 
@@ -3637,14 +4474,6 @@ export declare class RouterError extends MiniflareError<RouterErrorCode> {
3637
4474
 
3638
4475
  export declare type RouterErrorCode = "ERR_QUERY_STRING" | "ERR_INFIX_WILDCARD";
3639
4476
 
3640
- export declare const RoutingConfigSchema: z.ZodObject<{
3641
- hasUserWorker: z.ZodBoolean;
3642
- }, "strip", z.ZodTypeAny, {
3643
- hasUserWorker: boolean;
3644
- }, {
3645
- hasUserWorker: boolean;
3646
- }>;
3647
-
3648
4477
  export declare class Runtime {
3649
4478
  #private;
3650
4479
  updateConfig(configBuffer: Buffer, options: Abortable & RuntimeOptions): Promise<SocketPorts | undefined>;
@@ -3717,7 +4546,7 @@ export declare const SharedHeaders: {
3717
4546
  readonly LOG_LEVEL: "MF-Log-Level";
3718
4547
  };
3719
4548
 
3720
- 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>;
4549
+ 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>;
3721
4550
 
3722
4551
  export declare const SiteBindings: {
3723
4552
  readonly KV_NAMESPACE_SITE: "__STATIC_CONTENT";
@@ -3761,29 +4590,29 @@ export declare const SourceOptionsSchema: z.ZodUnion<[z.ZodObject<{
3761
4590
  modules: z.ZodArray<z.ZodObject<{
3762
4591
  type: z.ZodEnum<["ESModule", "CommonJS", "NodeJsCompatModule", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
3763
4592
  path: z.ZodEffects<z.ZodString, string, string>;
3764
- contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>>;
4593
+ contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>;
3765
4594
  }, "strip", z.ZodTypeAny, {
3766
4595
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
3767
4596
  path: string;
3768
- contents?: string | Uint8Array | undefined;
4597
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
3769
4598
  }, {
3770
4599
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
3771
4600
  path: string;
3772
- contents?: string | Uint8Array | undefined;
4601
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
3773
4602
  }>, "many">;
3774
4603
  modulesRoot: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
3775
4604
  }, "strip", z.ZodTypeAny, {
3776
4605
  modules: {
3777
4606
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
3778
4607
  path: string;
3779
- contents?: string | Uint8Array | undefined;
4608
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
3780
4609
  }[];
3781
4610
  modulesRoot?: string | undefined;
3782
4611
  }, {
3783
4612
  modules: {
3784
4613
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
3785
4614
  path: string;
3786
- contents?: string | Uint8Array | undefined;
4615
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
3787
4616
  }[];
3788
4617
  modulesRoot?: string | undefined;
3789
4618
  }>, z.ZodObject<{
@@ -3894,14 +4723,16 @@ export declare interface TlsOptions_Keypair {
3894
4723
  certificateChain?: string;
3895
4724
  }
3896
4725
 
3897
- export declare enum TlsOptions_Version {
3898
- GOOD_DEFAULT = 0,
3899
- SSL3 = 1,
3900
- TLS1DOT0 = 2,
3901
- TLS1DOT1 = 3,
3902
- TLS1DOT2 = 4,
3903
- TLS1DOT3 = 5
3904
- }
4726
+ export declare const TlsOptions_Version: {
4727
+ readonly GOOD_DEFAULT: 0;
4728
+ readonly SSL3: 1;
4729
+ readonly TLS1DOT0: 2;
4730
+ readonly TLS1DOT1: 3;
4731
+ readonly TLS1DOT2: 4;
4732
+ readonly TLS1DOT3: 5;
4733
+ };
4734
+
4735
+ export declare type TlsOptions_Version = (typeof TlsOptions_Version)[keyof typeof TlsOptions_Version];
3905
4736
 
3906
4737
  export declare function _transformsForContentEncodingAndContentType(encoding: string | undefined, type: string | undefined | null): Transform[];
3907
4738
 
@@ -3946,15 +4777,15 @@ export declare class WebSocket extends TypedEventTarget<WebSocketEventMap> {
3946
4777
  [kClosedIncoming]: boolean;
3947
4778
  get readyState(): number;
3948
4779
  accept(): void;
3949
- send(message: ArrayBuffer | string): void;
3950
- [kSend](message: ArrayBuffer | string): void;
4780
+ send(message: string | ArrayBuffer | Uint8Array<ArrayBuffer>): void;
4781
+ [kSend](message: string | ArrayBuffer | Uint8Array<ArrayBuffer>): void;
3951
4782
  close(code?: number, reason?: string): void;
3952
4783
  [kClose](code?: number, reason?: string): void;
3953
4784
  [kError](error?: Error): void;
3954
4785
  }
3955
4786
 
3956
4787
  export declare type WebSocketEventMap = {
3957
- message: MessageEvent;
4788
+ message: MessageEvent_2;
3958
4789
  close: CloseEvent;
3959
4790
  error: ErrorEvent;
3960
4791
  };
@@ -4048,16 +4879,18 @@ export declare type Worker_Binding_CryptoKey_Algorithm = {
4048
4879
  json?: string;
4049
4880
  };
4050
4881
 
4051
- export declare enum Worker_Binding_CryptoKey_Usage {
4052
- ENCRYPT = 0,
4053
- DECRYPT = 1,
4054
- SIGN = 2,
4055
- VERIFY = 3,
4056
- DERIVE_KEY = 4,
4057
- DERIVE_BITS = 5,
4058
- WRAP_KEY = 6,
4059
- UNWRAP_KEY = 7
4060
- }
4882
+ export declare const Worker_Binding_CryptoKey_Usage: {
4883
+ readonly ENCRYPT: 0;
4884
+ readonly DECRYPT: 1;
4885
+ readonly SIGN: 2;
4886
+ readonly VERIFY: 3;
4887
+ readonly DERIVE_KEY: 4;
4888
+ readonly DERIVE_BITS: 5;
4889
+ readonly WRAP_KEY: 6;
4890
+ readonly UNWRAP_KEY: 7;
4891
+ };
4892
+
4893
+ export declare type Worker_Binding_CryptoKey_Usage = (typeof Worker_Binding_CryptoKey_Usage)[keyof typeof Worker_Binding_CryptoKey_Usage];
4061
4894
 
4062
4895
  export declare type Worker_Binding_DurableObjectNamespaceDesignator = {
4063
4896
  className?: string;
@@ -4127,6 +4960,7 @@ export declare interface Worker_Binding_WrappedBinding {
4127
4960
  export declare type Worker_DurableObjectNamespace = {
4128
4961
  className?: string;
4129
4962
  preventEviction?: boolean;
4963
+ enableSql?: boolean;
4130
4964
  } & ({
4131
4965
  uniqueKey?: string;
4132
4966
  } | {
@@ -4163,7 +4997,7 @@ export declare type Worker_Module = {
4163
4997
  pythonRequirement?: string;
4164
4998
  });
4165
4999
 
4166
- 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>;
5000
+ 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>;
4167
5001
 
4168
5002
  export declare interface WorkerRoute {
4169
5003
  target: string;
@@ -4176,6 +5010,48 @@ export declare interface WorkerRoute {
4176
5010
  allowPathSuffix: boolean;
4177
5011
  }
4178
5012
 
5013
+ export declare const WORKFLOWS_PLUGIN: Plugin<typeof WorkflowsOptionsSchema, typeof WorkflowsSharedOptionsSchema>;
5014
+
5015
+ export declare const WORKFLOWS_PLUGIN_NAME = "workflows";
5016
+
5017
+ export declare const WORKFLOWS_STORAGE_SERVICE_NAME = "workflows:storage";
5018
+
5019
+ export declare const WorkflowsOptionsSchema: z.ZodObject<{
5020
+ workflows: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
5021
+ name: z.ZodString;
5022
+ className: z.ZodString;
5023
+ scriptName: z.ZodOptional<z.ZodString>;
5024
+ }, "strip", z.ZodTypeAny, {
5025
+ name: string;
5026
+ className: string;
5027
+ scriptName?: string | undefined;
5028
+ }, {
5029
+ name: string;
5030
+ className: string;
5031
+ scriptName?: string | undefined;
5032
+ }>>>;
5033
+ }, "strip", z.ZodTypeAny, {
5034
+ workflows?: Record<string, {
5035
+ name: string;
5036
+ className: string;
5037
+ scriptName?: string | undefined;
5038
+ }> | undefined;
5039
+ }, {
5040
+ workflows?: Record<string, {
5041
+ name: string;
5042
+ className: string;
5043
+ scriptName?: string | undefined;
5044
+ }> | undefined;
5045
+ }>;
5046
+
5047
+ export declare const WorkflowsSharedOptionsSchema: z.ZodObject<{
5048
+ workflowsPersist: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
5049
+ }, "strip", z.ZodTypeAny, {
5050
+ workflowsPersist?: string | boolean | undefined;
5051
+ }, {
5052
+ workflowsPersist?: string | boolean | undefined;
5053
+ }>;
5054
+
4179
5055
  export declare type WrappedBindingNames = Set<string>;
4180
5056
 
4181
5057
  export declare function zAwaitable<T extends z.ZodTypeAny>(type: T): z.ZodUnion<[T, z.ZodPromise<T>]>;