miniflare 0.0.0-e8aaa3930 → 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 +7 -0
  2. package/dist/src/index.d.ts +880 -336
  3. package/dist/src/index.js +10570 -5013
  4. package/dist/src/index.js.map +3 -3
  5. package/dist/src/workers/assets/assets-kv.worker.js +1 -1
  6. package/dist/src/workers/assets/assets-kv.worker.js.map +1 -1
  7. package/dist/src/workers/assets/assets.worker.js +4618 -5237
  8. package/dist/src/workers/assets/assets.worker.js.map +3 -3
  9. package/dist/src/workers/assets/router.worker.js +4654 -5503
  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 +12 -24
  15. package/dist/src/workers/cache/cache.worker.js.map +1 -1
  16. package/dist/src/workers/core/entry.worker.js +29 -58
  17. package/dist/src/workers/core/entry.worker.js.map +1 -1
  18. package/dist/src/workers/d1/database.worker.js +8 -6
  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 +12 -17
  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 +137 -159
  36. package/dist/src/workers/workflows/binding.worker.js.map +1 -1
  37. package/package.json +24 -24
@@ -1,5 +1,6 @@
1
1
  import { Abortable } from 'events';
2
2
  import type { AbortSignal as AbortSignal_2 } from '@cloudflare/workers-types/experimental';
3
+ import { Awaitable as Awaitable_2 } from '..';
3
4
  import type { Blob as Blob_2 } from '@cloudflare/workers-types/experimental';
4
5
  import { Blob as Blob_3 } from 'buffer';
5
6
  import { BodyInit } from 'undici';
@@ -7,6 +8,8 @@ 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';
@@ -16,18 +19,28 @@ import type { Headers as Headers_3 } from '@cloudflare/workers-types/experimenta
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
37
  import type { ReadableStream as ReadableStream_2 } from '@cloudflare/workers-types/experimental';
27
38
  import { ReadableStream as ReadableStream_3 } from 'stream/web';
28
39
  import { ReferrerPolicy } from 'undici';
29
- import { Request as Request_3 } from 'undici';
30
- import type { Request as Request_4 } 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';
@@ -38,8 +51,10 @@ import type { RequestInit as RequestInit_4 } from '@cloudflare/workers-types/exp
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_3 } from 'undici';
42
- import type { Response as Response_4 } from '@cloudflare/workers-types/experimental';
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 '..';
43
58
  import { ResponseInit as ResponseInit_3 } from 'undici';
44
59
  import { ResponseRedirectStatus } from 'undici';
45
60
  import { ResponseType } from 'undici';
@@ -61,7 +76,7 @@ export declare type AnyHeaders = http.IncomingHttpHeaders | string[];
61
76
  export declare type AssetReverseMap = {
62
77
  [pathHash: string]: {
63
78
  filePath: string;
64
- contentType: string;
79
+ contentType: string | null;
65
80
  };
66
81
  };
67
82
 
@@ -72,54 +87,228 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
72
87
  workerName: z.ZodOptional<z.ZodString>;
73
88
  directory: z.ZodEffects<z.ZodString, string, string>;
74
89
  binding: z.ZodOptional<z.ZodString>;
75
- routingConfig: z.ZodOptional<z.ZodObject<{
76
- has_user_worker: z.ZodOptional<z.ZodBoolean>;
90
+ routerConfig: z.ZodOptional<z.ZodObject<{
91
+ account_id: z.ZodOptional<z.ZodNumber>;
92
+ script_id: z.ZodOptional<z.ZodNumber>;
77
93
  invoke_user_worker_ahead_of_assets: z.ZodOptional<z.ZodBoolean>;
94
+ has_user_worker: z.ZodOptional<z.ZodBoolean>;
78
95
  }, "strip", z.ZodTypeAny, {
79
- has_user_worker?: boolean;
96
+ account_id?: number;
97
+ script_id?: number;
80
98
  invoke_user_worker_ahead_of_assets?: boolean;
81
- }, {
82
99
  has_user_worker?: boolean;
100
+ }, {
101
+ account_id?: number;
102
+ script_id?: number;
83
103
  invoke_user_worker_ahead_of_assets?: boolean;
104
+ has_user_worker?: boolean;
84
105
  }>>;
85
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">>;
86
111
  html_handling: z.ZodOptional<z.ZodEnum<["auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none"]>>;
87
112
  not_found_handling: z.ZodOptional<z.ZodEnum<["single-page-application", "404-page", "none"]>>;
88
- serve_directly: z.ZodOptional<z.ZodBoolean>;
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
+ }>>;
89
186
  }, "strip", z.ZodTypeAny, {
187
+ account_id?: number;
188
+ script_id?: number;
189
+ compatibility_date?: string;
190
+ compatibility_flags?: string[];
90
191
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
91
192
  not_found_handling?: "none" | "single-page-application" | "404-page";
92
- serve_directly?: boolean;
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
+ };
93
212
  }, {
213
+ account_id?: number;
214
+ script_id?: number;
215
+ compatibility_date?: string;
216
+ compatibility_flags?: string[];
94
217
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
95
218
  not_found_handling?: "none" | "single-page-application" | "404-page";
96
- serve_directly?: boolean;
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
+ };
97
238
  }>>;
98
239
  }, "strip", z.ZodTypeAny, {
99
240
  directory: string;
100
241
  workerName?: string | undefined;
101
242
  binding?: string | undefined;
102
- routingConfig?: {
103
- has_user_worker?: boolean;
243
+ routerConfig?: {
244
+ account_id?: number;
245
+ script_id?: number;
104
246
  invoke_user_worker_ahead_of_assets?: boolean;
247
+ has_user_worker?: boolean;
105
248
  } | undefined;
106
249
  assetConfig?: {
250
+ account_id?: number;
251
+ script_id?: number;
252
+ compatibility_date?: string;
253
+ compatibility_flags?: string[];
107
254
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
108
255
  not_found_handling?: "none" | "single-page-application" | "404-page";
109
- serve_directly?: boolean;
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
+ };
110
275
  } | undefined;
111
276
  }, {
112
277
  directory: string;
113
278
  workerName?: string | undefined;
114
279
  binding?: string | undefined;
115
- routingConfig?: {
116
- has_user_worker?: boolean;
280
+ routerConfig?: {
281
+ account_id?: number;
282
+ script_id?: number;
117
283
  invoke_user_worker_ahead_of_assets?: boolean;
284
+ has_user_worker?: boolean;
118
285
  } | undefined;
119
286
  assetConfig?: {
287
+ account_id?: number;
288
+ script_id?: number;
289
+ compatibility_date?: string;
290
+ compatibility_flags?: string[];
120
291
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
121
292
  not_found_handling?: "none" | "single-page-application" | "404-page";
122
- serve_directly?: boolean;
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
+ };
123
312
  } | undefined;
124
313
  }>>;
125
314
  }, "strip", z.ZodTypeAny, {
@@ -127,14 +316,38 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
127
316
  directory: string;
128
317
  workerName?: string | undefined;
129
318
  binding?: string | undefined;
130
- routingConfig?: {
131
- has_user_worker?: boolean;
319
+ routerConfig?: {
320
+ account_id?: number;
321
+ script_id?: number;
132
322
  invoke_user_worker_ahead_of_assets?: boolean;
323
+ has_user_worker?: boolean;
133
324
  } | undefined;
134
325
  assetConfig?: {
326
+ account_id?: number;
327
+ script_id?: number;
328
+ compatibility_date?: string;
329
+ compatibility_flags?: string[];
135
330
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
136
331
  not_found_handling?: "none" | "single-page-application" | "404-page";
137
- serve_directly?: boolean;
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
+ };
138
351
  } | undefined;
139
352
  } | undefined;
140
353
  }, {
@@ -142,14 +355,38 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
142
355
  directory: string;
143
356
  workerName?: string | undefined;
144
357
  binding?: string | undefined;
145
- routingConfig?: {
146
- has_user_worker?: boolean;
358
+ routerConfig?: {
359
+ account_id?: number;
360
+ script_id?: number;
147
361
  invoke_user_worker_ahead_of_assets?: boolean;
362
+ has_user_worker?: boolean;
148
363
  } | undefined;
149
364
  assetConfig?: {
365
+ account_id?: number;
366
+ script_id?: number;
367
+ compatibility_date?: string;
368
+ compatibility_flags?: string[];
150
369
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
151
370
  not_found_handling?: "none" | "single-page-application" | "404-page";
152
- serve_directly?: boolean;
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
+ };
153
390
  } | undefined;
154
391
  } | undefined;
155
392
  }>;
@@ -172,7 +409,7 @@ export { BodyInit }
172
409
  * Use content hash to get file path from asset reverse map.
173
410
  */
174
411
  export declare const buildAssetManifest: (dir: string) => Promise<{
175
- encodedAssetManifest: Uint8Array;
412
+ encodedAssetManifest: Uint8Array<ArrayBuffer>;
176
413
  assetsReverseMap: AssetReverseMap;
177
414
  }>;
178
415
 
@@ -280,29 +517,29 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
280
517
  modules: z.ZodArray<z.ZodObject<{
281
518
  type: z.ZodEnum<["ESModule", "CommonJS", "NodeJsCompatModule", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
282
519
  path: z.ZodEffects<z.ZodString, string, string>;
283
- 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>>]>>;
284
521
  }, "strip", z.ZodTypeAny, {
285
522
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
286
523
  path: string;
287
- contents?: string | Uint8Array | undefined;
524
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
288
525
  }, {
289
526
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
290
527
  path: string;
291
- contents?: string | Uint8Array | undefined;
528
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
292
529
  }>, "many">;
293
530
  modulesRoot: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
294
531
  }, "strip", z.ZodTypeAny, {
295
532
  modules: {
296
533
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
297
534
  path: string;
298
- contents?: string | Uint8Array | undefined;
535
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
299
536
  }[];
300
537
  modulesRoot?: string | undefined;
301
538
  }, {
302
539
  modules: {
303
540
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
304
541
  path: string;
305
- contents?: string | Uint8Array | undefined;
542
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
306
543
  }[];
307
544
  modulesRoot?: string | undefined;
308
545
  }>, z.ZodObject<{
@@ -383,11 +620,12 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
383
620
  rootPath: z.ZodOptional<z.ZodEffects<z.ZodString, undefined, string>>;
384
621
  compatibilityDate: z.ZodOptional<z.ZodString>;
385
622
  compatibilityFlags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
623
+ unsafeInspectorProxy: z.ZodOptional<z.ZodBoolean>;
386
624
  routes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
387
625
  bindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<Json, z.ZodTypeDef, Json>>>;
388
- 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>>]>>>;
389
627
  textBlobBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, string, string>>>;
390
- 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>>]>>>;
391
629
  serviceBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodLiteral<typeof kCurrentWorker>, z.ZodObject<{
392
630
  name: z.ZodUnion<[z.ZodString, z.ZodLiteral<typeof kCurrentWorker>]>;
393
631
  entrypoint: z.ZodOptional<z.ZodString>;
@@ -415,7 +653,14 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
415
653
  requireClientCerts: z.ZodOptional<z.ZodBoolean>;
416
654
  trustBrowserCas: z.ZodOptional<z.ZodBoolean>;
417
655
  trustedCertificates: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
418
- 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
+ }>>;
419
664
  cipherList: z.ZodOptional<z.ZodString>;
420
665
  }, "strip", z.ZodTypeAny, {
421
666
  keypair?: {
@@ -425,7 +670,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
425
670
  requireClientCerts?: boolean | undefined;
426
671
  trustBrowserCas?: boolean | undefined;
427
672
  trustedCertificates?: string[] | undefined;
428
- minVersion?: TlsOptions_Version | undefined;
673
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
429
674
  cipherList?: string | undefined;
430
675
  }, {
431
676
  keypair?: {
@@ -435,7 +680,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
435
680
  requireClientCerts?: boolean | undefined;
436
681
  trustBrowserCas?: boolean | undefined;
437
682
  trustedCertificates?: string[] | undefined;
438
- minVersion?: TlsOptions_Version | undefined;
683
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
439
684
  cipherList?: string | undefined;
440
685
  }>>;
441
686
  }, "strip", z.ZodTypeAny, {
@@ -449,7 +694,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
449
694
  requireClientCerts?: boolean | undefined;
450
695
  trustBrowserCas?: boolean | undefined;
451
696
  trustedCertificates?: string[] | undefined;
452
- minVersion?: TlsOptions_Version | undefined;
697
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
453
698
  cipherList?: string | undefined;
454
699
  } | undefined;
455
700
  }, {
@@ -463,7 +708,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
463
708
  requireClientCerts?: boolean | undefined;
464
709
  trustBrowserCas?: boolean | undefined;
465
710
  trustedCertificates?: string[] | undefined;
466
- minVersion?: TlsOptions_Version | undefined;
711
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
467
712
  cipherList?: string | undefined;
468
713
  } | undefined;
469
714
  }>;
@@ -479,7 +724,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
479
724
  requireClientCerts?: boolean | undefined;
480
725
  trustBrowserCas?: boolean | undefined;
481
726
  trustedCertificates?: string[] | undefined;
482
- minVersion?: TlsOptions_Version | undefined;
727
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
483
728
  cipherList?: string | undefined;
484
729
  } | undefined;
485
730
  };
@@ -495,16 +740,16 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
495
740
  requireClientCerts?: boolean | undefined;
496
741
  trustBrowserCas?: boolean | undefined;
497
742
  trustedCertificates?: string[] | undefined;
498
- minVersion?: TlsOptions_Version | undefined;
743
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
499
744
  cipherList?: string | undefined;
500
745
  } | undefined;
501
746
  };
502
747
  }>, z.ZodObject<{
503
- external: z.ZodType<ExternalServer, z.ZodTypeDef, ExternalServer>;
748
+ external: z.ZodType<ExternalServer_2, z.ZodTypeDef, ExternalServer_2>;
504
749
  }, "strip", z.ZodTypeAny, {
505
- external: ExternalServer & (ExternalServer | undefined);
750
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
506
751
  }, {
507
- external: ExternalServer & (ExternalServer | undefined);
752
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
508
753
  }>, z.ZodObject<{
509
754
  disk: z.ZodObject<{
510
755
  path: z.ZodString;
@@ -526,7 +771,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
526
771
  path: string;
527
772
  writable?: boolean | undefined;
528
773
  };
529
- }>, z.ZodType<(request: Request_2, mf: Miniflare) => Awaitable<Response_2>, z.ZodTypeDef, (request: Request_2, mf: Miniflare) => Awaitable<Response_2>>]>>>;
774
+ }>, z.ZodType<(request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>, z.ZodTypeDef, (request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>>]>>>;
530
775
  wrappedBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
531
776
  scriptName: z.ZodString;
532
777
  entrypoint: z.ZodOptional<z.ZodString>;
@@ -567,7 +812,14 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
567
812
  requireClientCerts: z.ZodOptional<z.ZodBoolean>;
568
813
  trustBrowserCas: z.ZodOptional<z.ZodBoolean>;
569
814
  trustedCertificates: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
570
- 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
+ }>>;
571
823
  cipherList: z.ZodOptional<z.ZodString>;
572
824
  }, "strip", z.ZodTypeAny, {
573
825
  keypair?: {
@@ -577,7 +829,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
577
829
  requireClientCerts?: boolean | undefined;
578
830
  trustBrowserCas?: boolean | undefined;
579
831
  trustedCertificates?: string[] | undefined;
580
- minVersion?: TlsOptions_Version | undefined;
832
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
581
833
  cipherList?: string | undefined;
582
834
  }, {
583
835
  keypair?: {
@@ -587,7 +839,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
587
839
  requireClientCerts?: boolean | undefined;
588
840
  trustBrowserCas?: boolean | undefined;
589
841
  trustedCertificates?: string[] | undefined;
590
- minVersion?: TlsOptions_Version | undefined;
842
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
591
843
  cipherList?: string | undefined;
592
844
  }>>;
593
845
  }, "strip", z.ZodTypeAny, {
@@ -601,7 +853,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
601
853
  requireClientCerts?: boolean | undefined;
602
854
  trustBrowserCas?: boolean | undefined;
603
855
  trustedCertificates?: string[] | undefined;
604
- minVersion?: TlsOptions_Version | undefined;
856
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
605
857
  cipherList?: string | undefined;
606
858
  } | undefined;
607
859
  }, {
@@ -615,7 +867,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
615
867
  requireClientCerts?: boolean | undefined;
616
868
  trustBrowserCas?: boolean | undefined;
617
869
  trustedCertificates?: string[] | undefined;
618
- minVersion?: TlsOptions_Version | undefined;
870
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
619
871
  cipherList?: string | undefined;
620
872
  } | undefined;
621
873
  }>;
@@ -631,7 +883,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
631
883
  requireClientCerts?: boolean | undefined;
632
884
  trustBrowserCas?: boolean | undefined;
633
885
  trustedCertificates?: string[] | undefined;
634
- minVersion?: TlsOptions_Version | undefined;
886
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
635
887
  cipherList?: string | undefined;
636
888
  } | undefined;
637
889
  };
@@ -647,16 +899,16 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
647
899
  requireClientCerts?: boolean | undefined;
648
900
  trustBrowserCas?: boolean | undefined;
649
901
  trustedCertificates?: string[] | undefined;
650
- minVersion?: TlsOptions_Version | undefined;
902
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
651
903
  cipherList?: string | undefined;
652
904
  } | undefined;
653
905
  };
654
906
  }>, z.ZodObject<{
655
- external: z.ZodType<ExternalServer, z.ZodTypeDef, ExternalServer>;
907
+ external: z.ZodType<ExternalServer_2, z.ZodTypeDef, ExternalServer_2>;
656
908
  }, "strip", z.ZodTypeAny, {
657
- external: ExternalServer & (ExternalServer | undefined);
909
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
658
910
  }, {
659
- external: ExternalServer & (ExternalServer | undefined);
911
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
660
912
  }>, z.ZodObject<{
661
913
  disk: z.ZodObject<{
662
914
  path: z.ZodString;
@@ -678,7 +930,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
678
930
  path: string;
679
931
  writable?: boolean | undefined;
680
932
  };
681
- }>, z.ZodType<(request: Request_2, mf: Miniflare) => Awaitable<Response_2>, z.ZodTypeDef, (request: Request_2, mf: Miniflare) => Awaitable<Response_2>>]>>;
933
+ }>, z.ZodType<(request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>, z.ZodTypeDef, (request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>>]>>;
682
934
  fetchMock: z.ZodOptional<z.ZodType<MockAgent<MockAgent.Options>, z.ZodTypeDef, MockAgent<MockAgent.Options>>>;
683
935
  unsafeEphemeralDurableObjects: z.ZodOptional<z.ZodBoolean>;
684
936
  unsafeDirectSockets: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -699,20 +951,23 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
699
951
  }>, "many">>;
700
952
  unsafeEvalBinding: z.ZodOptional<z.ZodString>;
701
953
  unsafeUseModuleFallbackService: z.ZodOptional<z.ZodBoolean>;
702
- /** Used to set the vitest pool worker SELF binding to point to the router worker if there are assets.
703
- (If there are assets but we're not using vitest, the miniflare entry worker can point directly to RW.)
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)
704
957
  */
705
958
  hasAssetsAndIsVitest: z.ZodOptional<z.ZodBoolean>;
959
+ unsafeEnableAssetsRpc: z.ZodOptional<z.ZodBoolean>;
706
960
  }, "strip", z.ZodTypeAny, {
707
961
  name?: string | undefined;
708
962
  rootPath?: undefined;
709
963
  compatibilityDate?: string | undefined;
710
964
  compatibilityFlags?: string[] | undefined;
965
+ unsafeInspectorProxy?: boolean | undefined;
711
966
  routes?: string[] | undefined;
712
967
  bindings?: Record<string, Json> | undefined;
713
- wasmBindings?: Record<string, string | Uint8Array> | undefined;
968
+ wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
714
969
  textBlobBindings?: Record<string, string> | undefined;
715
- dataBlobBindings?: Record<string, string | Uint8Array> | undefined;
970
+ dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
716
971
  serviceBindings?: Record<string, string | typeof kCurrentWorker | {
717
972
  name: string | typeof kCurrentWorker;
718
973
  entrypoint?: string | undefined;
@@ -728,18 +983,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
728
983
  requireClientCerts?: boolean | undefined;
729
984
  trustBrowserCas?: boolean | undefined;
730
985
  trustedCertificates?: string[] | undefined;
731
- minVersion?: TlsOptions_Version | undefined;
986
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
732
987
  cipherList?: string | undefined;
733
988
  } | undefined;
734
989
  };
735
990
  } | {
736
- external: ExternalServer & (ExternalServer | undefined);
991
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
737
992
  } | {
738
993
  disk: {
739
994
  path: string;
740
995
  writable?: boolean | undefined;
741
996
  };
742
- } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
997
+ } | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>)> | undefined;
743
998
  wrappedBindings?: Record<string, string | {
744
999
  scriptName: string;
745
1000
  entrypoint?: string | undefined;
@@ -760,18 +1015,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
760
1015
  requireClientCerts?: boolean | undefined;
761
1016
  trustBrowserCas?: boolean | undefined;
762
1017
  trustedCertificates?: string[] | undefined;
763
- minVersion?: TlsOptions_Version | undefined;
1018
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
764
1019
  cipherList?: string | undefined;
765
1020
  } | undefined;
766
1021
  };
767
1022
  } | {
768
- external: ExternalServer & (ExternalServer | undefined);
1023
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
769
1024
  } | {
770
1025
  disk: {
771
1026
  path: string;
772
1027
  writable?: boolean | undefined;
773
1028
  };
774
- } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
1029
+ } | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
775
1030
  fetchMock?: MockAgent<MockAgent.Options> | undefined;
776
1031
  unsafeEphemeralDurableObjects?: boolean | undefined;
777
1032
  unsafeDirectSockets?: {
@@ -783,16 +1038,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
783
1038
  unsafeEvalBinding?: string | undefined;
784
1039
  unsafeUseModuleFallbackService?: boolean | undefined;
785
1040
  hasAssetsAndIsVitest?: boolean | undefined;
1041
+ unsafeEnableAssetsRpc?: boolean | undefined;
786
1042
  }, {
787
1043
  name?: string | undefined;
788
1044
  rootPath?: string | undefined;
789
1045
  compatibilityDate?: string | undefined;
790
1046
  compatibilityFlags?: string[] | undefined;
1047
+ unsafeInspectorProxy?: boolean | undefined;
791
1048
  routes?: string[] | undefined;
792
1049
  bindings?: Record<string, Json> | undefined;
793
- wasmBindings?: Record<string, string | Uint8Array> | undefined;
1050
+ wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
794
1051
  textBlobBindings?: Record<string, string> | undefined;
795
- dataBlobBindings?: Record<string, string | Uint8Array> | undefined;
1052
+ dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
796
1053
  serviceBindings?: Record<string, string | typeof kCurrentWorker | {
797
1054
  name: string | typeof kCurrentWorker;
798
1055
  entrypoint?: string | undefined;
@@ -808,18 +1065,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
808
1065
  requireClientCerts?: boolean | undefined;
809
1066
  trustBrowserCas?: boolean | undefined;
810
1067
  trustedCertificates?: string[] | undefined;
811
- minVersion?: TlsOptions_Version | undefined;
1068
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
812
1069
  cipherList?: string | undefined;
813
1070
  } | undefined;
814
1071
  };
815
1072
  } | {
816
- external: ExternalServer & (ExternalServer | undefined);
1073
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
817
1074
  } | {
818
1075
  disk: {
819
1076
  path: string;
820
1077
  writable?: boolean | undefined;
821
1078
  };
822
- } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
1079
+ } | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>)> | undefined;
823
1080
  wrappedBindings?: Record<string, string | {
824
1081
  scriptName: string;
825
1082
  entrypoint?: string | undefined;
@@ -840,18 +1097,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
840
1097
  requireClientCerts?: boolean | undefined;
841
1098
  trustBrowserCas?: boolean | undefined;
842
1099
  trustedCertificates?: string[] | undefined;
843
- minVersion?: TlsOptions_Version | undefined;
1100
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
844
1101
  cipherList?: string | undefined;
845
1102
  } | undefined;
846
1103
  };
847
1104
  } | {
848
- external: ExternalServer & (ExternalServer | undefined);
1105
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
849
1106
  } | {
850
1107
  disk: {
851
1108
  path: string;
852
1109
  writable?: boolean | undefined;
853
1110
  };
854
- } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
1111
+ } | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
855
1112
  fetchMock?: MockAgent<MockAgent.Options> | undefined;
856
1113
  unsafeEphemeralDurableObjects?: boolean | undefined;
857
1114
  unsafeDirectSockets?: {
@@ -863,11 +1120,12 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
863
1120
  unsafeEvalBinding?: string | undefined;
864
1121
  unsafeUseModuleFallbackService?: boolean | undefined;
865
1122
  hasAssetsAndIsVitest?: boolean | undefined;
1123
+ unsafeEnableAssetsRpc?: boolean | undefined;
866
1124
  }>>, ({
867
1125
  modules: {
868
1126
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
869
1127
  path: string;
870
- contents?: string | Uint8Array | undefined;
1128
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
871
1129
  }[];
872
1130
  modulesRoot?: string | undefined;
873
1131
  } & {
@@ -875,11 +1133,12 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
875
1133
  rootPath?: undefined;
876
1134
  compatibilityDate?: string | undefined;
877
1135
  compatibilityFlags?: string[] | undefined;
1136
+ unsafeInspectorProxy?: boolean | undefined;
878
1137
  routes?: string[] | undefined;
879
1138
  bindings?: Record<string, Json> | undefined;
880
- wasmBindings?: Record<string, string | Uint8Array> | undefined;
1139
+ wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
881
1140
  textBlobBindings?: Record<string, string> | undefined;
882
- dataBlobBindings?: Record<string, string | Uint8Array> | undefined;
1141
+ dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
883
1142
  serviceBindings?: Record<string, string | typeof kCurrentWorker | {
884
1143
  name: string | typeof kCurrentWorker;
885
1144
  entrypoint?: string | undefined;
@@ -895,18 +1154,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
895
1154
  requireClientCerts?: boolean | undefined;
896
1155
  trustBrowserCas?: boolean | undefined;
897
1156
  trustedCertificates?: string[] | undefined;
898
- minVersion?: TlsOptions_Version | undefined;
1157
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
899
1158
  cipherList?: string | undefined;
900
1159
  } | undefined;
901
1160
  };
902
1161
  } | {
903
- external: ExternalServer & (ExternalServer | undefined);
1162
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
904
1163
  } | {
905
1164
  disk: {
906
1165
  path: string;
907
1166
  writable?: boolean | undefined;
908
1167
  };
909
- } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
1168
+ } | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>)> | undefined;
910
1169
  wrappedBindings?: Record<string, string | {
911
1170
  scriptName: string;
912
1171
  entrypoint?: string | undefined;
@@ -927,18 +1186,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
927
1186
  requireClientCerts?: boolean | undefined;
928
1187
  trustBrowserCas?: boolean | undefined;
929
1188
  trustedCertificates?: string[] | undefined;
930
- minVersion?: TlsOptions_Version | undefined;
1189
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
931
1190
  cipherList?: string | undefined;
932
1191
  } | undefined;
933
1192
  };
934
1193
  } | {
935
- external: ExternalServer & (ExternalServer | undefined);
1194
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
936
1195
  } | {
937
1196
  disk: {
938
1197
  path: string;
939
1198
  writable?: boolean | undefined;
940
1199
  };
941
- } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
1200
+ } | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
942
1201
  fetchMock?: MockAgent<MockAgent.Options> | undefined;
943
1202
  unsafeEphemeralDurableObjects?: boolean | undefined;
944
1203
  unsafeDirectSockets?: {
@@ -950,6 +1209,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
950
1209
  unsafeEvalBinding?: string | undefined;
951
1210
  unsafeUseModuleFallbackService?: boolean | undefined;
952
1211
  hasAssetsAndIsVitest?: boolean | undefined;
1212
+ unsafeEnableAssetsRpc?: boolean | undefined;
953
1213
  }) | ({
954
1214
  script: string;
955
1215
  scriptPath?: string | undefined;
@@ -965,11 +1225,12 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
965
1225
  rootPath?: undefined;
966
1226
  compatibilityDate?: string | undefined;
967
1227
  compatibilityFlags?: string[] | undefined;
1228
+ unsafeInspectorProxy?: boolean | undefined;
968
1229
  routes?: string[] | undefined;
969
1230
  bindings?: Record<string, Json> | undefined;
970
- wasmBindings?: Record<string, string | Uint8Array> | undefined;
1231
+ wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
971
1232
  textBlobBindings?: Record<string, string> | undefined;
972
- dataBlobBindings?: Record<string, string | Uint8Array> | undefined;
1233
+ dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
973
1234
  serviceBindings?: Record<string, string | typeof kCurrentWorker | {
974
1235
  name: string | typeof kCurrentWorker;
975
1236
  entrypoint?: string | undefined;
@@ -985,18 +1246,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
985
1246
  requireClientCerts?: boolean | undefined;
986
1247
  trustBrowserCas?: boolean | undefined;
987
1248
  trustedCertificates?: string[] | undefined;
988
- minVersion?: TlsOptions_Version | undefined;
1249
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
989
1250
  cipherList?: string | undefined;
990
1251
  } | undefined;
991
1252
  };
992
1253
  } | {
993
- external: ExternalServer & (ExternalServer | undefined);
1254
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
994
1255
  } | {
995
1256
  disk: {
996
1257
  path: string;
997
1258
  writable?: boolean | undefined;
998
1259
  };
999
- } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
1260
+ } | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>)> | undefined;
1000
1261
  wrappedBindings?: Record<string, string | {
1001
1262
  scriptName: string;
1002
1263
  entrypoint?: string | undefined;
@@ -1017,18 +1278,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1017
1278
  requireClientCerts?: boolean | undefined;
1018
1279
  trustBrowserCas?: boolean | undefined;
1019
1280
  trustedCertificates?: string[] | undefined;
1020
- minVersion?: TlsOptions_Version | undefined;
1281
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
1021
1282
  cipherList?: string | undefined;
1022
1283
  } | undefined;
1023
1284
  };
1024
1285
  } | {
1025
- external: ExternalServer & (ExternalServer | undefined);
1286
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
1026
1287
  } | {
1027
1288
  disk: {
1028
1289
  path: string;
1029
1290
  writable?: boolean | undefined;
1030
1291
  };
1031
- } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
1292
+ } | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
1032
1293
  fetchMock?: MockAgent<MockAgent.Options> | undefined;
1033
1294
  unsafeEphemeralDurableObjects?: boolean | undefined;
1034
1295
  unsafeDirectSockets?: {
@@ -1040,6 +1301,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1040
1301
  unsafeEvalBinding?: string | undefined;
1041
1302
  unsafeUseModuleFallbackService?: boolean | undefined;
1042
1303
  hasAssetsAndIsVitest?: boolean | undefined;
1304
+ unsafeEnableAssetsRpc?: boolean | undefined;
1043
1305
  }) | ({
1044
1306
  scriptPath: string;
1045
1307
  modules?: boolean | undefined;
@@ -1054,11 +1316,12 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1054
1316
  rootPath?: undefined;
1055
1317
  compatibilityDate?: string | undefined;
1056
1318
  compatibilityFlags?: string[] | undefined;
1319
+ unsafeInspectorProxy?: boolean | undefined;
1057
1320
  routes?: string[] | undefined;
1058
1321
  bindings?: Record<string, Json> | undefined;
1059
- wasmBindings?: Record<string, string | Uint8Array> | undefined;
1322
+ wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
1060
1323
  textBlobBindings?: Record<string, string> | undefined;
1061
- dataBlobBindings?: Record<string, string | Uint8Array> | undefined;
1324
+ dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
1062
1325
  serviceBindings?: Record<string, string | typeof kCurrentWorker | {
1063
1326
  name: string | typeof kCurrentWorker;
1064
1327
  entrypoint?: string | undefined;
@@ -1074,18 +1337,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1074
1337
  requireClientCerts?: boolean | undefined;
1075
1338
  trustBrowserCas?: boolean | undefined;
1076
1339
  trustedCertificates?: string[] | undefined;
1077
- minVersion?: TlsOptions_Version | undefined;
1340
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
1078
1341
  cipherList?: string | undefined;
1079
1342
  } | undefined;
1080
1343
  };
1081
1344
  } | {
1082
- external: ExternalServer & (ExternalServer | undefined);
1345
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
1083
1346
  } | {
1084
1347
  disk: {
1085
1348
  path: string;
1086
1349
  writable?: boolean | undefined;
1087
1350
  };
1088
- } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
1351
+ } | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>)> | undefined;
1089
1352
  wrappedBindings?: Record<string, string | {
1090
1353
  scriptName: string;
1091
1354
  entrypoint?: string | undefined;
@@ -1106,18 +1369,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1106
1369
  requireClientCerts?: boolean | undefined;
1107
1370
  trustBrowserCas?: boolean | undefined;
1108
1371
  trustedCertificates?: string[] | undefined;
1109
- minVersion?: TlsOptions_Version | undefined;
1372
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
1110
1373
  cipherList?: string | undefined;
1111
1374
  } | undefined;
1112
1375
  };
1113
1376
  } | {
1114
- external: ExternalServer & (ExternalServer | undefined);
1377
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
1115
1378
  } | {
1116
1379
  disk: {
1117
1380
  path: string;
1118
1381
  writable?: boolean | undefined;
1119
1382
  };
1120
- } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
1383
+ } | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
1121
1384
  fetchMock?: MockAgent<MockAgent.Options> | undefined;
1122
1385
  unsafeEphemeralDurableObjects?: boolean | undefined;
1123
1386
  unsafeDirectSockets?: {
@@ -1129,11 +1392,12 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1129
1392
  unsafeEvalBinding?: string | undefined;
1130
1393
  unsafeUseModuleFallbackService?: boolean | undefined;
1131
1394
  hasAssetsAndIsVitest?: boolean | undefined;
1395
+ unsafeEnableAssetsRpc?: boolean | undefined;
1132
1396
  }), ({
1133
1397
  modules: {
1134
1398
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
1135
1399
  path: string;
1136
- contents?: string | Uint8Array | undefined;
1400
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
1137
1401
  }[];
1138
1402
  modulesRoot?: string | undefined;
1139
1403
  } | {
@@ -1160,11 +1424,12 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1160
1424
  rootPath?: string | undefined;
1161
1425
  compatibilityDate?: string | undefined;
1162
1426
  compatibilityFlags?: string[] | undefined;
1427
+ unsafeInspectorProxy?: boolean | undefined;
1163
1428
  routes?: string[] | undefined;
1164
1429
  bindings?: Record<string, Json> | undefined;
1165
- wasmBindings?: Record<string, string | Uint8Array> | undefined;
1430
+ wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
1166
1431
  textBlobBindings?: Record<string, string> | undefined;
1167
- dataBlobBindings?: Record<string, string | Uint8Array> | undefined;
1432
+ dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
1168
1433
  serviceBindings?: Record<string, string | typeof kCurrentWorker | {
1169
1434
  name: string | typeof kCurrentWorker;
1170
1435
  entrypoint?: string | undefined;
@@ -1180,18 +1445,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1180
1445
  requireClientCerts?: boolean | undefined;
1181
1446
  trustBrowserCas?: boolean | undefined;
1182
1447
  trustedCertificates?: string[] | undefined;
1183
- minVersion?: TlsOptions_Version | undefined;
1448
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
1184
1449
  cipherList?: string | undefined;
1185
1450
  } | undefined;
1186
1451
  };
1187
1452
  } | {
1188
- external: ExternalServer & (ExternalServer | undefined);
1453
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
1189
1454
  } | {
1190
1455
  disk: {
1191
1456
  path: string;
1192
1457
  writable?: boolean | undefined;
1193
1458
  };
1194
- } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
1459
+ } | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>)> | undefined;
1195
1460
  wrappedBindings?: Record<string, string | {
1196
1461
  scriptName: string;
1197
1462
  entrypoint?: string | undefined;
@@ -1212,18 +1477,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1212
1477
  requireClientCerts?: boolean | undefined;
1213
1478
  trustBrowserCas?: boolean | undefined;
1214
1479
  trustedCertificates?: string[] | undefined;
1215
- minVersion?: TlsOptions_Version | undefined;
1480
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
1216
1481
  cipherList?: string | undefined;
1217
1482
  } | undefined;
1218
1483
  };
1219
1484
  } | {
1220
- external: ExternalServer & (ExternalServer | undefined);
1485
+ external: ExternalServer_2 & (ExternalServer_2 | undefined);
1221
1486
  } | {
1222
1487
  disk: {
1223
1488
  path: string;
1224
1489
  writable?: boolean | undefined;
1225
1490
  };
1226
- } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
1491
+ } | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
1227
1492
  fetchMock?: MockAgent<MockAgent.Options> | undefined;
1228
1493
  unsafeEphemeralDurableObjects?: boolean | undefined;
1229
1494
  unsafeDirectSockets?: {
@@ -1235,6 +1500,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1235
1500
  unsafeEvalBinding?: string | undefined;
1236
1501
  unsafeUseModuleFallbackService?: boolean | undefined;
1237
1502
  hasAssetsAndIsVitest?: boolean | undefined;
1503
+ unsafeEnableAssetsRpc?: boolean | undefined;
1238
1504
  }>;
1239
1505
 
1240
1506
  export declare const CoreSharedOptionsSchema: z.ZodObject<{
@@ -1254,8 +1520,9 @@ export declare const CoreSharedOptionsSchema: z.ZodObject<{
1254
1520
  cf: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>;
1255
1521
  liveReload: z.ZodOptional<z.ZodBoolean>;
1256
1522
  unsafeProxySharedSecret: z.ZodOptional<z.ZodString>;
1257
- unsafeModuleFallbackService: z.ZodOptional<z.ZodType<(request: Request_2, mf: Miniflare) => Awaitable<Response_2>, z.ZodTypeDef, (request: Request_2, mf: Miniflare) => Awaitable<Response_2>>>;
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>>>;
1258
1524
  unsafeStickyBlobs: z.ZodOptional<z.ZodBoolean>;
1525
+ unsafeEnableAssetsRpc: z.ZodOptional<z.ZodBoolean>;
1259
1526
  }, "strip", z.ZodTypeAny, {
1260
1527
  rootPath?: undefined;
1261
1528
  host?: string | undefined;
@@ -1273,8 +1540,9 @@ export declare const CoreSharedOptionsSchema: z.ZodObject<{
1273
1540
  cf?: string | boolean | Record<string, any> | undefined;
1274
1541
  liveReload?: boolean | undefined;
1275
1542
  unsafeProxySharedSecret?: string | undefined;
1276
- unsafeModuleFallbackService?: ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
1543
+ unsafeModuleFallbackService?: ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
1277
1544
  unsafeStickyBlobs?: boolean | undefined;
1545
+ unsafeEnableAssetsRpc?: boolean | undefined;
1278
1546
  }, {
1279
1547
  rootPath?: string | undefined;
1280
1548
  host?: string | undefined;
@@ -1292,8 +1560,9 @@ export declare const CoreSharedOptionsSchema: z.ZodObject<{
1292
1560
  cf?: string | boolean | Record<string, any> | undefined;
1293
1561
  liveReload?: boolean | undefined;
1294
1562
  unsafeProxySharedSecret?: string | undefined;
1295
- unsafeModuleFallbackService?: ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
1563
+ unsafeModuleFallbackService?: ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
1296
1564
  unsafeStickyBlobs?: boolean | undefined;
1565
+ unsafeEnableAssetsRpc?: boolean | undefined;
1297
1566
  }>;
1298
1567
 
1299
1568
  export declare function coupleWebSocket(ws: NodeWebSocket, pair: WebSocket): Promise<void>;
@@ -1526,13 +1795,10 @@ export declare function getMiniflareObjectBindings(unsafeStickyBlobs: boolean):
1526
1795
  *
1527
1796
  * @param compatibilityDateStr The compatibility date
1528
1797
  * @param compatibilityFlags The compatibility flags
1529
- * @param opts.nodeCompat Whether the legacy node_compat arg is being used
1530
1798
  * @returns the mode and flags to indicate specific configuration for validating.
1531
1799
  */
1532
1800
  export declare function getNodeCompat(compatibilityDate: string | undefined, // Default to some arbitrary old date
1533
- compatibilityFlags: string[], opts?: {
1534
- nodeCompat?: boolean;
1535
- }): {
1801
+ compatibilityFlags: string[]): {
1536
1802
  mode: NodeJSCompatMode;
1537
1803
  hasNodejsAlsFlag: boolean;
1538
1804
  hasNodejsCompatFlag: boolean;
@@ -1576,10 +1842,12 @@ export declare interface HttpOptions_Header {
1576
1842
  value?: string;
1577
1843
  }
1578
1844
 
1579
- export declare enum HttpOptions_Style {
1580
- HOST = 0,
1581
- PROXY = 1
1582
- }
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];
1583
1851
 
1584
1852
  export declare const HYPERDRIVE_PLUGIN: Plugin<typeof HyperdriveInputOptionsSchema>;
1585
1853
 
@@ -1763,9 +2031,9 @@ export declare function maybeParseURL(url: Persistence): URL | undefined;
1763
2031
  export declare function mergeWorkerOptions(a: Partial<WorkerOptions>, b: Partial<WorkerOptions>): Partial<WorkerOptions>;
1764
2032
 
1765
2033
  declare class MessageEvent_2 extends Event {
1766
- readonly data: ArrayBuffer | string;
2034
+ readonly data: string | ArrayBuffer | Uint8Array<ArrayBuffer>;
1767
2035
  constructor(type: "message", init: {
1768
- data: ArrayBuffer | string;
2036
+ data: string | ArrayBuffer | Uint8Array<ArrayBuffer>;
1769
2037
  });
1770
2038
  }
1771
2039
  export { MessageEvent_2 as MessageEvent }
@@ -1798,7 +2066,7 @@ export declare class Miniflare {
1798
2066
  export declare class MiniflareCoreError extends MiniflareError<MiniflareCoreErrorCode> {
1799
2067
  }
1800
2068
 
1801
- 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";
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";
1802
2070
 
1803
2071
  export declare class MiniflareError<Code extends string | number = string | number> extends Error {
1804
2072
  readonly code: Code;
@@ -1815,15 +2083,15 @@ export declare type ModuleDefinition = z.infer<typeof ModuleDefinitionSchema>;
1815
2083
  export declare const ModuleDefinitionSchema: z.ZodObject<{
1816
2084
  type: z.ZodEnum<["ESModule", "CommonJS", "NodeJsCompatModule", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
1817
2085
  path: z.ZodEffects<z.ZodString, string, string>;
1818
- 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>>]>>;
1819
2087
  }, "strip", z.ZodTypeAny, {
1820
2088
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
1821
2089
  path: string;
1822
- contents?: string | Uint8Array | undefined;
2090
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
1823
2091
  }, {
1824
2092
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
1825
2093
  path: string;
1826
- contents?: string | Uint8Array | undefined;
2094
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
1827
2095
  }>;
1828
2096
 
1829
2097
  export declare type ModuleRule = z.infer<typeof ModuleRuleSchema>;
@@ -1871,14 +2139,13 @@ export declare const NODE_PLATFORM_IMPL: PlatformImpl<ReadableStream_3>;
1871
2139
 
1872
2140
  /**
1873
2141
  * We can provide Node.js compatibility in a number of different modes:
1874
- * - "legacy" - this mode adds compile-time polyfills that are not well maintained and cannot work with workerd runtime builtins.
1875
2142
  * - "als": this mode tells the workerd runtime to enable only the Async Local Storage builtin library (accessible via `node:async_hooks`).
1876
2143
  * - "v1" - this mode tells the workerd runtime to enable some Node.js builtin libraries (accessible only via `node:...` imports) but no globals.
1877
2144
  * - "v2" - this mode tells the workerd runtime to enable more Node.js builtin libraries (accessible both with and without the `node:` prefix)
1878
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.
1879
2146
  * - null - no Node.js compatibility.
1880
2147
  */
1881
- export declare type NodeJSCompatMode = "legacy" | "als" | "v1" | "v2" | null;
2148
+ export declare type NodeJSCompatMode = "als" | "v1" | "v2" | null;
1882
2149
 
1883
2150
  export declare class NoOpLog extends Log {
1884
2151
  constructor();
@@ -1996,12 +2263,24 @@ export declare type Persistence = z.infer<typeof PersistenceSchema>;
1996
2263
 
1997
2264
  export declare const PersistenceSchema: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
1998
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
+
1999
2278
  export declare interface PlatformImpl<RS> {
2000
2279
  Blob: typeof Blob_2;
2001
2280
  File: typeof File_2;
2002
2281
  Headers: typeof Headers_3;
2003
- Request: typeof Request_4;
2004
- Response: typeof Response_4;
2282
+ Request: typeof Request_5;
2283
+ Response: typeof Response_5;
2005
2284
  isReadableStream(value: unknown): value is RS;
2006
2285
  bufferReadableStream(stream: RS): Promise<ArrayBuffer>;
2007
2286
  unbufferReadableStream(buffer: ArrayBuffer): RS;
@@ -2024,33 +2303,33 @@ export declare interface PluginBase<Options extends z.ZodType, SharedOptions ext
2024
2303
  }
2025
2304
 
2026
2305
  export declare const PLUGINS: {
2027
- core: Plugin<z.ZodEffects<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2306
+ core: Plugin_2<z.ZodEffects<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2028
2307
  modules: z.ZodArray<z.ZodObject<{
2029
2308
  type: z.ZodEnum<["ESModule", "CommonJS", "NodeJsCompatModule", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
2030
2309
  path: z.ZodEffects<z.ZodString, string, string>;
2031
- 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>>]>>;
2032
2311
  }, "strip", z.ZodTypeAny, {
2033
2312
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
2034
2313
  path: string;
2035
- contents?: string | Uint8Array | undefined;
2314
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
2036
2315
  }, {
2037
2316
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
2038
2317
  path: string;
2039
- contents?: string | Uint8Array | undefined;
2318
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
2040
2319
  }>, "many">;
2041
2320
  modulesRoot: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2042
2321
  }, "strip", z.ZodTypeAny, {
2043
2322
  modules: {
2044
2323
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
2045
2324
  path: string;
2046
- contents?: string | Uint8Array | undefined;
2325
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
2047
2326
  }[];
2048
2327
  modulesRoot?: string | undefined;
2049
2328
  }, {
2050
2329
  modules: {
2051
2330
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
2052
2331
  path: string;
2053
- contents?: string | Uint8Array | undefined;
2332
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
2054
2333
  }[];
2055
2334
  modulesRoot?: string | undefined;
2056
2335
  }>, z.ZodObject<{
@@ -2131,19 +2410,20 @@ export declare const PLUGINS: {
2131
2410
  rootPath: z.ZodOptional<z.ZodEffects<z.ZodString, undefined, string>>;
2132
2411
  compatibilityDate: z.ZodOptional<z.ZodString>;
2133
2412
  compatibilityFlags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2413
+ unsafeInspectorProxy: z.ZodOptional<z.ZodBoolean>;
2134
2414
  routes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2135
- bindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<Json, z.ZodTypeDef, Json>>>;
2136
- 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>>]>>>;
2137
2417
  textBlobBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, string, string>>>;
2138
- dataBlobBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>]>>>;
2139
- serviceBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodLiteral<kCurrentWorker>, z.ZodObject<{
2140
- 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>]>;
2141
2421
  entrypoint: z.ZodOptional<z.ZodString>;
2142
2422
  }, "strip", z.ZodTypeAny, {
2143
- name: string | kCurrentWorker;
2423
+ name: string | kCurrentWorker_2;
2144
2424
  entrypoint?: string | undefined;
2145
2425
  }, {
2146
- name: string | kCurrentWorker;
2426
+ name: string | kCurrentWorker_2;
2147
2427
  entrypoint?: string | undefined;
2148
2428
  }>, z.ZodObject<{
2149
2429
  network: z.ZodObject<{
@@ -2163,7 +2443,14 @@ export declare const PLUGINS: {
2163
2443
  requireClientCerts: z.ZodOptional<z.ZodBoolean>;
2164
2444
  trustBrowserCas: z.ZodOptional<z.ZodBoolean>;
2165
2445
  trustedCertificates: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2166
- 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
+ }>>;
2167
2454
  cipherList: z.ZodOptional<z.ZodString>;
2168
2455
  }, "strip", z.ZodTypeAny, {
2169
2456
  keypair?: {
@@ -2173,7 +2460,7 @@ export declare const PLUGINS: {
2173
2460
  requireClientCerts?: boolean | undefined;
2174
2461
  trustBrowserCas?: boolean | undefined;
2175
2462
  trustedCertificates?: string[] | undefined;
2176
- minVersion?: TlsOptions_Version | undefined;
2463
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2177
2464
  cipherList?: string | undefined;
2178
2465
  }, {
2179
2466
  keypair?: {
@@ -2183,7 +2470,7 @@ export declare const PLUGINS: {
2183
2470
  requireClientCerts?: boolean | undefined;
2184
2471
  trustBrowserCas?: boolean | undefined;
2185
2472
  trustedCertificates?: string[] | undefined;
2186
- minVersion?: TlsOptions_Version | undefined;
2473
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2187
2474
  cipherList?: string | undefined;
2188
2475
  }>>;
2189
2476
  }, "strip", z.ZodTypeAny, {
@@ -2197,7 +2484,7 @@ export declare const PLUGINS: {
2197
2484
  requireClientCerts?: boolean | undefined;
2198
2485
  trustBrowserCas?: boolean | undefined;
2199
2486
  trustedCertificates?: string[] | undefined;
2200
- minVersion?: TlsOptions_Version | undefined;
2487
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2201
2488
  cipherList?: string | undefined;
2202
2489
  } | undefined;
2203
2490
  }, {
@@ -2211,7 +2498,7 @@ export declare const PLUGINS: {
2211
2498
  requireClientCerts?: boolean | undefined;
2212
2499
  trustBrowserCas?: boolean | undefined;
2213
2500
  trustedCertificates?: string[] | undefined;
2214
- minVersion?: TlsOptions_Version | undefined;
2501
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2215
2502
  cipherList?: string | undefined;
2216
2503
  } | undefined;
2217
2504
  }>;
@@ -2227,7 +2514,7 @@ export declare const PLUGINS: {
2227
2514
  requireClientCerts?: boolean | undefined;
2228
2515
  trustBrowserCas?: boolean | undefined;
2229
2516
  trustedCertificates?: string[] | undefined;
2230
- minVersion?: TlsOptions_Version | undefined;
2517
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2231
2518
  cipherList?: string | undefined;
2232
2519
  } | undefined;
2233
2520
  };
@@ -2243,16 +2530,16 @@ export declare const PLUGINS: {
2243
2530
  requireClientCerts?: boolean | undefined;
2244
2531
  trustBrowserCas?: boolean | undefined;
2245
2532
  trustedCertificates?: string[] | undefined;
2246
- minVersion?: TlsOptions_Version | undefined;
2533
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2247
2534
  cipherList?: string | undefined;
2248
2535
  } | undefined;
2249
2536
  };
2250
2537
  }>, z.ZodObject<{
2251
- external: z.ZodType<ExternalServer, z.ZodTypeDef, ExternalServer>;
2538
+ external: z.ZodType<ExternalServer_3, z.ZodTypeDef, ExternalServer_3>;
2252
2539
  }, "strip", z.ZodTypeAny, {
2253
- external: ExternalServer & (ExternalServer | undefined);
2540
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2254
2541
  }, {
2255
- external: ExternalServer & (ExternalServer | undefined);
2542
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2256
2543
  }>, z.ZodObject<{
2257
2544
  disk: z.ZodObject<{
2258
2545
  path: z.ZodString;
@@ -2274,28 +2561,28 @@ export declare const PLUGINS: {
2274
2561
  path: string;
2275
2562
  writable?: boolean | undefined;
2276
2563
  };
2277
- }>, z.ZodType<(request: Request_2, mf: Miniflare) => Awaitable<Response_2>, z.ZodTypeDef, (request: Request_2, mf: Miniflare) => Awaitable<Response_2>>]>>>;
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>>]>>>;
2278
2565
  wrappedBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
2279
2566
  scriptName: z.ZodString;
2280
2567
  entrypoint: z.ZodOptional<z.ZodString>;
2281
- 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>>>;
2282
2569
  }, "strip", z.ZodTypeAny, {
2283
2570
  scriptName: string;
2284
2571
  entrypoint?: string | undefined;
2285
- bindings?: Record<string, Json> | undefined;
2572
+ bindings?: Record<string, Json_2> | undefined;
2286
2573
  }, {
2287
2574
  scriptName: string;
2288
2575
  entrypoint?: string | undefined;
2289
- bindings?: Record<string, Json> | undefined;
2576
+ bindings?: Record<string, Json_2> | undefined;
2290
2577
  }>]>>>;
2291
- outboundService: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<kCurrentWorker>, z.ZodObject<{
2292
- 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>]>;
2293
2580
  entrypoint: z.ZodOptional<z.ZodString>;
2294
2581
  }, "strip", z.ZodTypeAny, {
2295
- name: string | kCurrentWorker;
2582
+ name: string | kCurrentWorker_2;
2296
2583
  entrypoint?: string | undefined;
2297
2584
  }, {
2298
- name: string | kCurrentWorker;
2585
+ name: string | kCurrentWorker_2;
2299
2586
  entrypoint?: string | undefined;
2300
2587
  }>, z.ZodObject<{
2301
2588
  network: z.ZodObject<{
@@ -2315,7 +2602,14 @@ export declare const PLUGINS: {
2315
2602
  requireClientCerts: z.ZodOptional<z.ZodBoolean>;
2316
2603
  trustBrowserCas: z.ZodOptional<z.ZodBoolean>;
2317
2604
  trustedCertificates: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2318
- 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
+ }>>;
2319
2613
  cipherList: z.ZodOptional<z.ZodString>;
2320
2614
  }, "strip", z.ZodTypeAny, {
2321
2615
  keypair?: {
@@ -2325,7 +2619,7 @@ export declare const PLUGINS: {
2325
2619
  requireClientCerts?: boolean | undefined;
2326
2620
  trustBrowserCas?: boolean | undefined;
2327
2621
  trustedCertificates?: string[] | undefined;
2328
- minVersion?: TlsOptions_Version | undefined;
2622
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2329
2623
  cipherList?: string | undefined;
2330
2624
  }, {
2331
2625
  keypair?: {
@@ -2335,7 +2629,7 @@ export declare const PLUGINS: {
2335
2629
  requireClientCerts?: boolean | undefined;
2336
2630
  trustBrowserCas?: boolean | undefined;
2337
2631
  trustedCertificates?: string[] | undefined;
2338
- minVersion?: TlsOptions_Version | undefined;
2632
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2339
2633
  cipherList?: string | undefined;
2340
2634
  }>>;
2341
2635
  }, "strip", z.ZodTypeAny, {
@@ -2349,7 +2643,7 @@ export declare const PLUGINS: {
2349
2643
  requireClientCerts?: boolean | undefined;
2350
2644
  trustBrowserCas?: boolean | undefined;
2351
2645
  trustedCertificates?: string[] | undefined;
2352
- minVersion?: TlsOptions_Version | undefined;
2646
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2353
2647
  cipherList?: string | undefined;
2354
2648
  } | undefined;
2355
2649
  }, {
@@ -2363,7 +2657,7 @@ export declare const PLUGINS: {
2363
2657
  requireClientCerts?: boolean | undefined;
2364
2658
  trustBrowserCas?: boolean | undefined;
2365
2659
  trustedCertificates?: string[] | undefined;
2366
- minVersion?: TlsOptions_Version | undefined;
2660
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2367
2661
  cipherList?: string | undefined;
2368
2662
  } | undefined;
2369
2663
  }>;
@@ -2379,7 +2673,7 @@ export declare const PLUGINS: {
2379
2673
  requireClientCerts?: boolean | undefined;
2380
2674
  trustBrowserCas?: boolean | undefined;
2381
2675
  trustedCertificates?: string[] | undefined;
2382
- minVersion?: TlsOptions_Version | undefined;
2676
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2383
2677
  cipherList?: string | undefined;
2384
2678
  } | undefined;
2385
2679
  };
@@ -2395,16 +2689,16 @@ export declare const PLUGINS: {
2395
2689
  requireClientCerts?: boolean | undefined;
2396
2690
  trustBrowserCas?: boolean | undefined;
2397
2691
  trustedCertificates?: string[] | undefined;
2398
- minVersion?: TlsOptions_Version | undefined;
2692
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2399
2693
  cipherList?: string | undefined;
2400
2694
  } | undefined;
2401
2695
  };
2402
2696
  }>, z.ZodObject<{
2403
- external: z.ZodType<ExternalServer, z.ZodTypeDef, ExternalServer>;
2697
+ external: z.ZodType<ExternalServer_3, z.ZodTypeDef, ExternalServer_3>;
2404
2698
  }, "strip", z.ZodTypeAny, {
2405
- external: ExternalServer & (ExternalServer | undefined);
2699
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2406
2700
  }, {
2407
- external: ExternalServer & (ExternalServer | undefined);
2701
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2408
2702
  }>, z.ZodObject<{
2409
2703
  disk: z.ZodObject<{
2410
2704
  path: z.ZodString;
@@ -2426,7 +2720,7 @@ export declare const PLUGINS: {
2426
2720
  path: string;
2427
2721
  writable?: boolean | undefined;
2428
2722
  };
2429
- }>, z.ZodType<(request: Request_2, mf: Miniflare) => Awaitable<Response_2>, z.ZodTypeDef, (request: Request_2, mf: Miniflare) => Awaitable<Response_2>>]>>;
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>>]>>;
2430
2724
  fetchMock: z.ZodOptional<z.ZodType<MockAgent<MockAgent>, z.ZodTypeDef, MockAgent<MockAgent>>>;
2431
2725
  unsafeEphemeralDurableObjects: z.ZodOptional<z.ZodBoolean>;
2432
2726
  unsafeDirectSockets: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -2448,18 +2742,20 @@ export declare const PLUGINS: {
2448
2742
  unsafeEvalBinding: z.ZodOptional<z.ZodString>;
2449
2743
  unsafeUseModuleFallbackService: z.ZodOptional<z.ZodBoolean>;
2450
2744
  hasAssetsAndIsVitest: z.ZodOptional<z.ZodBoolean>;
2745
+ unsafeEnableAssetsRpc: z.ZodOptional<z.ZodBoolean>;
2451
2746
  }, "strip", z.ZodTypeAny, {
2452
2747
  name?: string | undefined;
2453
2748
  rootPath?: undefined;
2454
2749
  compatibilityDate?: string | undefined;
2455
2750
  compatibilityFlags?: string[] | undefined;
2751
+ unsafeInspectorProxy?: boolean | undefined;
2456
2752
  routes?: string[] | undefined;
2457
- bindings?: Record<string, Json> | undefined;
2458
- wasmBindings?: Record<string, string | Uint8Array> | undefined;
2753
+ bindings?: Record<string, Json_2> | undefined;
2754
+ wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
2459
2755
  textBlobBindings?: Record<string, string> | undefined;
2460
- dataBlobBindings?: Record<string, string | Uint8Array> | undefined;
2461
- serviceBindings?: Record<string, string | kCurrentWorker | {
2462
- name: string | kCurrentWorker;
2756
+ dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
2757
+ serviceBindings?: Record<string, string | kCurrentWorker_2 | {
2758
+ name: string | kCurrentWorker_2;
2463
2759
  entrypoint?: string | undefined;
2464
2760
  } | {
2465
2761
  network: {
@@ -2473,25 +2769,25 @@ export declare const PLUGINS: {
2473
2769
  requireClientCerts?: boolean | undefined;
2474
2770
  trustBrowserCas?: boolean | undefined;
2475
2771
  trustedCertificates?: string[] | undefined;
2476
- minVersion?: TlsOptions_Version | undefined;
2772
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2477
2773
  cipherList?: string | undefined;
2478
2774
  } | undefined;
2479
2775
  };
2480
2776
  } | {
2481
- external: ExternalServer & (ExternalServer | undefined);
2777
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2482
2778
  } | {
2483
2779
  disk: {
2484
2780
  path: string;
2485
2781
  writable?: boolean | undefined;
2486
2782
  };
2487
- } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
2783
+ } | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>)> | undefined;
2488
2784
  wrappedBindings?: Record<string, string | {
2489
2785
  scriptName: string;
2490
2786
  entrypoint?: string | undefined;
2491
- bindings?: Record<string, Json> | undefined;
2787
+ bindings?: Record<string, Json_2> | undefined;
2492
2788
  }> | undefined;
2493
- outboundService?: string | kCurrentWorker | {
2494
- name: string | kCurrentWorker;
2789
+ outboundService?: string | kCurrentWorker_2 | {
2790
+ name: string | kCurrentWorker_2;
2495
2791
  entrypoint?: string | undefined;
2496
2792
  } | {
2497
2793
  network: {
@@ -2505,18 +2801,18 @@ export declare const PLUGINS: {
2505
2801
  requireClientCerts?: boolean | undefined;
2506
2802
  trustBrowserCas?: boolean | undefined;
2507
2803
  trustedCertificates?: string[] | undefined;
2508
- minVersion?: TlsOptions_Version | undefined;
2804
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2509
2805
  cipherList?: string | undefined;
2510
2806
  } | undefined;
2511
2807
  };
2512
2808
  } | {
2513
- external: ExternalServer & (ExternalServer | undefined);
2809
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2514
2810
  } | {
2515
2811
  disk: {
2516
2812
  path: string;
2517
2813
  writable?: boolean | undefined;
2518
2814
  };
2519
- } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
2815
+ } | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
2520
2816
  fetchMock?: MockAgent<MockAgent> | undefined;
2521
2817
  unsafeEphemeralDurableObjects?: boolean | undefined;
2522
2818
  unsafeDirectSockets?: {
@@ -2528,18 +2824,20 @@ export declare const PLUGINS: {
2528
2824
  unsafeEvalBinding?: string | undefined;
2529
2825
  unsafeUseModuleFallbackService?: boolean | undefined;
2530
2826
  hasAssetsAndIsVitest?: boolean | undefined;
2827
+ unsafeEnableAssetsRpc?: boolean | undefined;
2531
2828
  }, {
2532
2829
  name?: string | undefined;
2533
2830
  rootPath?: string | undefined;
2534
2831
  compatibilityDate?: string | undefined;
2535
2832
  compatibilityFlags?: string[] | undefined;
2833
+ unsafeInspectorProxy?: boolean | undefined;
2536
2834
  routes?: string[] | undefined;
2537
- bindings?: Record<string, Json> | undefined;
2538
- wasmBindings?: Record<string, string | Uint8Array> | undefined;
2835
+ bindings?: Record<string, Json_2> | undefined;
2836
+ wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
2539
2837
  textBlobBindings?: Record<string, string> | undefined;
2540
- dataBlobBindings?: Record<string, string | Uint8Array> | undefined;
2541
- serviceBindings?: Record<string, string | kCurrentWorker | {
2542
- name: string | kCurrentWorker;
2838
+ dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
2839
+ serviceBindings?: Record<string, string | kCurrentWorker_2 | {
2840
+ name: string | kCurrentWorker_2;
2543
2841
  entrypoint?: string | undefined;
2544
2842
  } | {
2545
2843
  network: {
@@ -2553,25 +2851,25 @@ export declare const PLUGINS: {
2553
2851
  requireClientCerts?: boolean | undefined;
2554
2852
  trustBrowserCas?: boolean | undefined;
2555
2853
  trustedCertificates?: string[] | undefined;
2556
- minVersion?: TlsOptions_Version | undefined;
2854
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2557
2855
  cipherList?: string | undefined;
2558
2856
  } | undefined;
2559
2857
  };
2560
2858
  } | {
2561
- external: ExternalServer & (ExternalServer | undefined);
2859
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2562
2860
  } | {
2563
2861
  disk: {
2564
2862
  path: string;
2565
2863
  writable?: boolean | undefined;
2566
2864
  };
2567
- } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
2865
+ } | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>)> | undefined;
2568
2866
  wrappedBindings?: Record<string, string | {
2569
2867
  scriptName: string;
2570
2868
  entrypoint?: string | undefined;
2571
- bindings?: Record<string, Json> | undefined;
2869
+ bindings?: Record<string, Json_2> | undefined;
2572
2870
  }> | undefined;
2573
- outboundService?: string | kCurrentWorker | {
2574
- name: string | kCurrentWorker;
2871
+ outboundService?: string | kCurrentWorker_2 | {
2872
+ name: string | kCurrentWorker_2;
2575
2873
  entrypoint?: string | undefined;
2576
2874
  } | {
2577
2875
  network: {
@@ -2585,18 +2883,18 @@ export declare const PLUGINS: {
2585
2883
  requireClientCerts?: boolean | undefined;
2586
2884
  trustBrowserCas?: boolean | undefined;
2587
2885
  trustedCertificates?: string[] | undefined;
2588
- minVersion?: TlsOptions_Version | undefined;
2886
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2589
2887
  cipherList?: string | undefined;
2590
2888
  } | undefined;
2591
2889
  };
2592
2890
  } | {
2593
- external: ExternalServer & (ExternalServer | undefined);
2891
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2594
2892
  } | {
2595
2893
  disk: {
2596
2894
  path: string;
2597
2895
  writable?: boolean | undefined;
2598
2896
  };
2599
- } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
2897
+ } | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
2600
2898
  fetchMock?: MockAgent<MockAgent> | undefined;
2601
2899
  unsafeEphemeralDurableObjects?: boolean | undefined;
2602
2900
  unsafeDirectSockets?: {
@@ -2608,11 +2906,12 @@ export declare const PLUGINS: {
2608
2906
  unsafeEvalBinding?: string | undefined;
2609
2907
  unsafeUseModuleFallbackService?: boolean | undefined;
2610
2908
  hasAssetsAndIsVitest?: boolean | undefined;
2909
+ unsafeEnableAssetsRpc?: boolean | undefined;
2611
2910
  }>>, ({
2612
2911
  modules: {
2613
2912
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
2614
2913
  path: string;
2615
- contents?: string | Uint8Array | undefined;
2914
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
2616
2915
  }[];
2617
2916
  modulesRoot?: string | undefined;
2618
2917
  } & {
@@ -2620,13 +2919,14 @@ export declare const PLUGINS: {
2620
2919
  rootPath?: undefined;
2621
2920
  compatibilityDate?: string | undefined;
2622
2921
  compatibilityFlags?: string[] | undefined;
2922
+ unsafeInspectorProxy?: boolean | undefined;
2623
2923
  routes?: string[] | undefined;
2624
- bindings?: Record<string, Json> | undefined;
2625
- wasmBindings?: Record<string, string | Uint8Array> | undefined;
2924
+ bindings?: Record<string, Json_2> | undefined;
2925
+ wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
2626
2926
  textBlobBindings?: Record<string, string> | undefined;
2627
- dataBlobBindings?: Record<string, string | Uint8Array> | undefined;
2628
- serviceBindings?: Record<string, string | kCurrentWorker | {
2629
- name: string | kCurrentWorker;
2927
+ dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
2928
+ serviceBindings?: Record<string, string | kCurrentWorker_2 | {
2929
+ name: string | kCurrentWorker_2;
2630
2930
  entrypoint?: string | undefined;
2631
2931
  } | {
2632
2932
  network: {
@@ -2640,25 +2940,25 @@ export declare const PLUGINS: {
2640
2940
  requireClientCerts?: boolean | undefined;
2641
2941
  trustBrowserCas?: boolean | undefined;
2642
2942
  trustedCertificates?: string[] | undefined;
2643
- minVersion?: TlsOptions_Version | undefined;
2943
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2644
2944
  cipherList?: string | undefined;
2645
2945
  } | undefined;
2646
2946
  };
2647
2947
  } | {
2648
- external: ExternalServer & (ExternalServer | undefined);
2948
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2649
2949
  } | {
2650
2950
  disk: {
2651
2951
  path: string;
2652
2952
  writable?: boolean | undefined;
2653
2953
  };
2654
- } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
2954
+ } | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>)> | undefined;
2655
2955
  wrappedBindings?: Record<string, string | {
2656
2956
  scriptName: string;
2657
2957
  entrypoint?: string | undefined;
2658
- bindings?: Record<string, Json> | undefined;
2958
+ bindings?: Record<string, Json_2> | undefined;
2659
2959
  }> | undefined;
2660
- outboundService?: string | kCurrentWorker | {
2661
- name: string | kCurrentWorker;
2960
+ outboundService?: string | kCurrentWorker_2 | {
2961
+ name: string | kCurrentWorker_2;
2662
2962
  entrypoint?: string | undefined;
2663
2963
  } | {
2664
2964
  network: {
@@ -2672,18 +2972,18 @@ export declare const PLUGINS: {
2672
2972
  requireClientCerts?: boolean | undefined;
2673
2973
  trustBrowserCas?: boolean | undefined;
2674
2974
  trustedCertificates?: string[] | undefined;
2675
- minVersion?: TlsOptions_Version | undefined;
2975
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2676
2976
  cipherList?: string | undefined;
2677
2977
  } | undefined;
2678
2978
  };
2679
2979
  } | {
2680
- external: ExternalServer & (ExternalServer | undefined);
2980
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2681
2981
  } | {
2682
2982
  disk: {
2683
2983
  path: string;
2684
2984
  writable?: boolean | undefined;
2685
2985
  };
2686
- } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
2986
+ } | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
2687
2987
  fetchMock?: MockAgent<MockAgent> | undefined;
2688
2988
  unsafeEphemeralDurableObjects?: boolean | undefined;
2689
2989
  unsafeDirectSockets?: {
@@ -2695,6 +2995,7 @@ export declare const PLUGINS: {
2695
2995
  unsafeEvalBinding?: string | undefined;
2696
2996
  unsafeUseModuleFallbackService?: boolean | undefined;
2697
2997
  hasAssetsAndIsVitest?: boolean | undefined;
2998
+ unsafeEnableAssetsRpc?: boolean | undefined;
2698
2999
  }) | ({
2699
3000
  script: string;
2700
3001
  scriptPath?: string | undefined;
@@ -2710,13 +3011,14 @@ export declare const PLUGINS: {
2710
3011
  rootPath?: undefined;
2711
3012
  compatibilityDate?: string | undefined;
2712
3013
  compatibilityFlags?: string[] | undefined;
3014
+ unsafeInspectorProxy?: boolean | undefined;
2713
3015
  routes?: string[] | undefined;
2714
- bindings?: Record<string, Json> | undefined;
2715
- wasmBindings?: Record<string, string | Uint8Array> | undefined;
3016
+ bindings?: Record<string, Json_2> | undefined;
3017
+ wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
2716
3018
  textBlobBindings?: Record<string, string> | undefined;
2717
- dataBlobBindings?: Record<string, string | Uint8Array> | undefined;
2718
- serviceBindings?: Record<string, string | kCurrentWorker | {
2719
- name: string | kCurrentWorker;
3019
+ dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
3020
+ serviceBindings?: Record<string, string | kCurrentWorker_2 | {
3021
+ name: string | kCurrentWorker_2;
2720
3022
  entrypoint?: string | undefined;
2721
3023
  } | {
2722
3024
  network: {
@@ -2730,25 +3032,25 @@ export declare const PLUGINS: {
2730
3032
  requireClientCerts?: boolean | undefined;
2731
3033
  trustBrowserCas?: boolean | undefined;
2732
3034
  trustedCertificates?: string[] | undefined;
2733
- minVersion?: TlsOptions_Version | undefined;
3035
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2734
3036
  cipherList?: string | undefined;
2735
3037
  } | undefined;
2736
3038
  };
2737
3039
  } | {
2738
- external: ExternalServer & (ExternalServer | undefined);
3040
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2739
3041
  } | {
2740
3042
  disk: {
2741
3043
  path: string;
2742
3044
  writable?: boolean | undefined;
2743
3045
  };
2744
- } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
3046
+ } | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>)> | undefined;
2745
3047
  wrappedBindings?: Record<string, string | {
2746
3048
  scriptName: string;
2747
3049
  entrypoint?: string | undefined;
2748
- bindings?: Record<string, Json> | undefined;
3050
+ bindings?: Record<string, Json_2> | undefined;
2749
3051
  }> | undefined;
2750
- outboundService?: string | kCurrentWorker | {
2751
- name: string | kCurrentWorker;
3052
+ outboundService?: string | kCurrentWorker_2 | {
3053
+ name: string | kCurrentWorker_2;
2752
3054
  entrypoint?: string | undefined;
2753
3055
  } | {
2754
3056
  network: {
@@ -2762,18 +3064,18 @@ export declare const PLUGINS: {
2762
3064
  requireClientCerts?: boolean | undefined;
2763
3065
  trustBrowserCas?: boolean | undefined;
2764
3066
  trustedCertificates?: string[] | undefined;
2765
- minVersion?: TlsOptions_Version | undefined;
3067
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2766
3068
  cipherList?: string | undefined;
2767
3069
  } | undefined;
2768
3070
  };
2769
3071
  } | {
2770
- external: ExternalServer & (ExternalServer | undefined);
3072
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2771
3073
  } | {
2772
3074
  disk: {
2773
3075
  path: string;
2774
3076
  writable?: boolean | undefined;
2775
3077
  };
2776
- } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
3078
+ } | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
2777
3079
  fetchMock?: MockAgent<MockAgent> | undefined;
2778
3080
  unsafeEphemeralDurableObjects?: boolean | undefined;
2779
3081
  unsafeDirectSockets?: {
@@ -2785,6 +3087,7 @@ export declare const PLUGINS: {
2785
3087
  unsafeEvalBinding?: string | undefined;
2786
3088
  unsafeUseModuleFallbackService?: boolean | undefined;
2787
3089
  hasAssetsAndIsVitest?: boolean | undefined;
3090
+ unsafeEnableAssetsRpc?: boolean | undefined;
2788
3091
  }) | ({
2789
3092
  scriptPath: string;
2790
3093
  modules?: boolean | undefined;
@@ -2799,13 +3102,14 @@ export declare const PLUGINS: {
2799
3102
  rootPath?: undefined;
2800
3103
  compatibilityDate?: string | undefined;
2801
3104
  compatibilityFlags?: string[] | undefined;
3105
+ unsafeInspectorProxy?: boolean | undefined;
2802
3106
  routes?: string[] | undefined;
2803
- bindings?: Record<string, Json> | undefined;
2804
- wasmBindings?: Record<string, string | Uint8Array> | undefined;
3107
+ bindings?: Record<string, Json_2> | undefined;
3108
+ wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
2805
3109
  textBlobBindings?: Record<string, string> | undefined;
2806
- dataBlobBindings?: Record<string, string | Uint8Array> | undefined;
2807
- serviceBindings?: Record<string, string | kCurrentWorker | {
2808
- name: string | kCurrentWorker;
3110
+ dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
3111
+ serviceBindings?: Record<string, string | kCurrentWorker_2 | {
3112
+ name: string | kCurrentWorker_2;
2809
3113
  entrypoint?: string | undefined;
2810
3114
  } | {
2811
3115
  network: {
@@ -2819,25 +3123,25 @@ export declare const PLUGINS: {
2819
3123
  requireClientCerts?: boolean | undefined;
2820
3124
  trustBrowserCas?: boolean | undefined;
2821
3125
  trustedCertificates?: string[] | undefined;
2822
- minVersion?: TlsOptions_Version | undefined;
3126
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2823
3127
  cipherList?: string | undefined;
2824
3128
  } | undefined;
2825
3129
  };
2826
3130
  } | {
2827
- external: ExternalServer & (ExternalServer | undefined);
3131
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2828
3132
  } | {
2829
3133
  disk: {
2830
3134
  path: string;
2831
3135
  writable?: boolean | undefined;
2832
3136
  };
2833
- } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
3137
+ } | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>)> | undefined;
2834
3138
  wrappedBindings?: Record<string, string | {
2835
3139
  scriptName: string;
2836
3140
  entrypoint?: string | undefined;
2837
- bindings?: Record<string, Json> | undefined;
3141
+ bindings?: Record<string, Json_2> | undefined;
2838
3142
  }> | undefined;
2839
- outboundService?: string | kCurrentWorker | {
2840
- name: string | kCurrentWorker;
3143
+ outboundService?: string | kCurrentWorker_2 | {
3144
+ name: string | kCurrentWorker_2;
2841
3145
  entrypoint?: string | undefined;
2842
3146
  } | {
2843
3147
  network: {
@@ -2851,18 +3155,18 @@ export declare const PLUGINS: {
2851
3155
  requireClientCerts?: boolean | undefined;
2852
3156
  trustBrowserCas?: boolean | undefined;
2853
3157
  trustedCertificates?: string[] | undefined;
2854
- minVersion?: TlsOptions_Version | undefined;
3158
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2855
3159
  cipherList?: string | undefined;
2856
3160
  } | undefined;
2857
3161
  };
2858
3162
  } | {
2859
- external: ExternalServer & (ExternalServer | undefined);
3163
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2860
3164
  } | {
2861
3165
  disk: {
2862
3166
  path: string;
2863
3167
  writable?: boolean | undefined;
2864
3168
  };
2865
- } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
3169
+ } | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
2866
3170
  fetchMock?: MockAgent<MockAgent> | undefined;
2867
3171
  unsafeEphemeralDurableObjects?: boolean | undefined;
2868
3172
  unsafeDirectSockets?: {
@@ -2874,11 +3178,12 @@ export declare const PLUGINS: {
2874
3178
  unsafeEvalBinding?: string | undefined;
2875
3179
  unsafeUseModuleFallbackService?: boolean | undefined;
2876
3180
  hasAssetsAndIsVitest?: boolean | undefined;
3181
+ unsafeEnableAssetsRpc?: boolean | undefined;
2877
3182
  }), ({
2878
3183
  modules: {
2879
3184
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
2880
3185
  path: string;
2881
- contents?: string | Uint8Array | undefined;
3186
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
2882
3187
  }[];
2883
3188
  modulesRoot?: string | undefined;
2884
3189
  } | {
@@ -2905,13 +3210,14 @@ export declare const PLUGINS: {
2905
3210
  rootPath?: string | undefined;
2906
3211
  compatibilityDate?: string | undefined;
2907
3212
  compatibilityFlags?: string[] | undefined;
3213
+ unsafeInspectorProxy?: boolean | undefined;
2908
3214
  routes?: string[] | undefined;
2909
- bindings?: Record<string, Json> | undefined;
2910
- wasmBindings?: Record<string, string | Uint8Array> | undefined;
3215
+ bindings?: Record<string, Json_2> | undefined;
3216
+ wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
2911
3217
  textBlobBindings?: Record<string, string> | undefined;
2912
- dataBlobBindings?: Record<string, string | Uint8Array> | undefined;
2913
- serviceBindings?: Record<string, string | kCurrentWorker | {
2914
- name: string | kCurrentWorker;
3218
+ dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
3219
+ serviceBindings?: Record<string, string | kCurrentWorker_2 | {
3220
+ name: string | kCurrentWorker_2;
2915
3221
  entrypoint?: string | undefined;
2916
3222
  } | {
2917
3223
  network: {
@@ -2925,25 +3231,25 @@ export declare const PLUGINS: {
2925
3231
  requireClientCerts?: boolean | undefined;
2926
3232
  trustBrowserCas?: boolean | undefined;
2927
3233
  trustedCertificates?: string[] | undefined;
2928
- minVersion?: TlsOptions_Version | undefined;
3234
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2929
3235
  cipherList?: string | undefined;
2930
3236
  } | undefined;
2931
3237
  };
2932
3238
  } | {
2933
- external: ExternalServer & (ExternalServer | undefined);
3239
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2934
3240
  } | {
2935
3241
  disk: {
2936
3242
  path: string;
2937
3243
  writable?: boolean | undefined;
2938
3244
  };
2939
- } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
3245
+ } | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>)> | undefined;
2940
3246
  wrappedBindings?: Record<string, string | {
2941
3247
  scriptName: string;
2942
3248
  entrypoint?: string | undefined;
2943
- bindings?: Record<string, Json> | undefined;
3249
+ bindings?: Record<string, Json_2> | undefined;
2944
3250
  }> | undefined;
2945
- outboundService?: string | kCurrentWorker | {
2946
- name: string | kCurrentWorker;
3251
+ outboundService?: string | kCurrentWorker_2 | {
3252
+ name: string | kCurrentWorker_2;
2947
3253
  entrypoint?: string | undefined;
2948
3254
  } | {
2949
3255
  network: {
@@ -2957,18 +3263,18 @@ export declare const PLUGINS: {
2957
3263
  requireClientCerts?: boolean | undefined;
2958
3264
  trustBrowserCas?: boolean | undefined;
2959
3265
  trustedCertificates?: string[] | undefined;
2960
- minVersion?: TlsOptions_Version | undefined;
3266
+ minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
2961
3267
  cipherList?: string | undefined;
2962
3268
  } | undefined;
2963
3269
  };
2964
3270
  } | {
2965
- external: ExternalServer & (ExternalServer | undefined);
3271
+ external: ExternalServer_3 & (ExternalServer_3 | undefined);
2966
3272
  } | {
2967
3273
  disk: {
2968
3274
  path: string;
2969
3275
  writable?: boolean | undefined;
2970
3276
  };
2971
- } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
3277
+ } | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
2972
3278
  fetchMock?: MockAgent<MockAgent> | undefined;
2973
3279
  unsafeEphemeralDurableObjects?: boolean | undefined;
2974
3280
  unsafeDirectSockets?: {
@@ -2980,6 +3286,7 @@ export declare const PLUGINS: {
2980
3286
  unsafeEvalBinding?: string | undefined;
2981
3287
  unsafeUseModuleFallbackService?: boolean | undefined;
2982
3288
  hasAssetsAndIsVitest?: boolean | undefined;
3289
+ unsafeEnableAssetsRpc?: boolean | undefined;
2983
3290
  }>, z.ZodObject<{
2984
3291
  rootPath: z.ZodOptional<z.ZodEffects<z.ZodString, undefined, string>>;
2985
3292
  host: z.ZodOptional<z.ZodString>;
@@ -2991,14 +3298,15 @@ export declare const PLUGINS: {
2991
3298
  httpsCertPath: z.ZodOptional<z.ZodString>;
2992
3299
  inspectorPort: z.ZodOptional<z.ZodNumber>;
2993
3300
  verbose: z.ZodOptional<z.ZodBoolean>;
2994
- log: z.ZodOptional<z.ZodType<Log, z.ZodTypeDef, Log>>;
3301
+ log: z.ZodOptional<z.ZodType<Log_2, z.ZodTypeDef, Log_2>>;
2995
3302
  handleRuntimeStdio: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodType<Readable, z.ZodTypeDef, Readable>, z.ZodType<Readable, z.ZodTypeDef, Readable>], null>, z.ZodUnknown>>;
2996
3303
  upstream: z.ZodOptional<z.ZodString>;
2997
3304
  cf: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>;
2998
3305
  liveReload: z.ZodOptional<z.ZodBoolean>;
2999
3306
  unsafeProxySharedSecret: z.ZodOptional<z.ZodString>;
3000
- unsafeModuleFallbackService: z.ZodOptional<z.ZodType<(request: Request_2, mf: Miniflare) => Awaitable<Response_2>, z.ZodTypeDef, (request: Request_2, mf: Miniflare) => Awaitable<Response_2>>>;
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>>>;
3001
3308
  unsafeStickyBlobs: z.ZodOptional<z.ZodBoolean>;
3309
+ unsafeEnableAssetsRpc: z.ZodOptional<z.ZodBoolean>;
3002
3310
  }, "strip", z.ZodTypeAny, {
3003
3311
  rootPath?: undefined;
3004
3312
  host?: string | undefined;
@@ -3010,14 +3318,15 @@ export declare const PLUGINS: {
3010
3318
  httpsCertPath?: string | undefined;
3011
3319
  inspectorPort?: number | undefined;
3012
3320
  verbose?: boolean | undefined;
3013
- log?: Log | undefined;
3321
+ log?: Log_2 | undefined;
3014
3322
  handleRuntimeStdio?: ((args_0: Readable, args_1: Readable) => unknown) | undefined;
3015
3323
  upstream?: string | undefined;
3016
3324
  cf?: string | boolean | Record<string, any> | undefined;
3017
3325
  liveReload?: boolean | undefined;
3018
3326
  unsafeProxySharedSecret?: string | undefined;
3019
- unsafeModuleFallbackService?: ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
3327
+ unsafeModuleFallbackService?: ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
3020
3328
  unsafeStickyBlobs?: boolean | undefined;
3329
+ unsafeEnableAssetsRpc?: boolean | undefined;
3021
3330
  }, {
3022
3331
  rootPath?: string | undefined;
3023
3332
  host?: string | undefined;
@@ -3029,16 +3338,17 @@ export declare const PLUGINS: {
3029
3338
  httpsCertPath?: string | undefined;
3030
3339
  inspectorPort?: number | undefined;
3031
3340
  verbose?: boolean | undefined;
3032
- log?: Log | undefined;
3341
+ log?: Log_2 | undefined;
3033
3342
  handleRuntimeStdio?: ((args_0: Readable, args_1: Readable) => unknown) | undefined;
3034
3343
  upstream?: string | undefined;
3035
3344
  cf?: string | boolean | Record<string, any> | undefined;
3036
3345
  liveReload?: boolean | undefined;
3037
3346
  unsafeProxySharedSecret?: string | undefined;
3038
- unsafeModuleFallbackService?: ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
3347
+ unsafeModuleFallbackService?: ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
3039
3348
  unsafeStickyBlobs?: boolean | undefined;
3349
+ unsafeEnableAssetsRpc?: boolean | undefined;
3040
3350
  }>>;
3041
- cache: Plugin<z.ZodObject<{
3351
+ cache: Plugin_2<z.ZodObject<{
3042
3352
  cache: z.ZodOptional<z.ZodBoolean>;
3043
3353
  cacheWarnUsage: z.ZodOptional<z.ZodBoolean>;
3044
3354
  }, "strip", z.ZodTypeAny, {
@@ -3054,7 +3364,7 @@ export declare const PLUGINS: {
3054
3364
  }, {
3055
3365
  cachePersist?: string | boolean | undefined;
3056
3366
  }>>;
3057
- d1: Plugin<z.ZodObject<{
3367
+ d1: Plugin_2<z.ZodObject<{
3058
3368
  d1Databases: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodString, "many">]>>;
3059
3369
  }, "strip", z.ZodTypeAny, {
3060
3370
  d1Databases?: string[] | Record<string, string> | undefined;
@@ -3067,24 +3377,24 @@ export declare const PLUGINS: {
3067
3377
  }, {
3068
3378
  d1Persist?: string | boolean | undefined;
3069
3379
  }>>;
3070
- do: Plugin<z.ZodObject<{
3380
+ do: Plugin_2<z.ZodObject<{
3071
3381
  durableObjects: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
3072
3382
  className: z.ZodString;
3073
3383
  scriptName: z.ZodOptional<z.ZodString>;
3074
3384
  useSQLite: z.ZodOptional<z.ZodBoolean>;
3075
- unsafeUniqueKey: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<kUnsafeEphemeralUniqueKey>]>>;
3385
+ unsafeUniqueKey: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<kUnsafeEphemeralUniqueKey_2>]>>;
3076
3386
  unsafePreventEviction: z.ZodOptional<z.ZodBoolean>;
3077
3387
  }, "strip", z.ZodTypeAny, {
3078
3388
  className: string;
3079
3389
  scriptName?: string | undefined;
3080
3390
  useSQLite?: boolean | undefined;
3081
- unsafeUniqueKey?: string | kUnsafeEphemeralUniqueKey | undefined;
3391
+ unsafeUniqueKey?: string | kUnsafeEphemeralUniqueKey_2 | undefined;
3082
3392
  unsafePreventEviction?: boolean | undefined;
3083
3393
  }, {
3084
3394
  className: string;
3085
3395
  scriptName?: string | undefined;
3086
3396
  useSQLite?: boolean | undefined;
3087
- unsafeUniqueKey?: string | kUnsafeEphemeralUniqueKey | undefined;
3397
+ unsafeUniqueKey?: string | kUnsafeEphemeralUniqueKey_2 | undefined;
3088
3398
  unsafePreventEviction?: boolean | undefined;
3089
3399
  }>]>>>;
3090
3400
  }, "strip", z.ZodTypeAny, {
@@ -3092,7 +3402,7 @@ export declare const PLUGINS: {
3092
3402
  className: string;
3093
3403
  scriptName?: string | undefined;
3094
3404
  useSQLite?: boolean | undefined;
3095
- unsafeUniqueKey?: string | kUnsafeEphemeralUniqueKey | undefined;
3405
+ unsafeUniqueKey?: string | kUnsafeEphemeralUniqueKey_2 | undefined;
3096
3406
  unsafePreventEviction?: boolean | undefined;
3097
3407
  }> | undefined;
3098
3408
  }, {
@@ -3100,7 +3410,7 @@ export declare const PLUGINS: {
3100
3410
  className: string;
3101
3411
  scriptName?: string | undefined;
3102
3412
  useSQLite?: boolean | undefined;
3103
- unsafeUniqueKey?: string | kUnsafeEphemeralUniqueKey | undefined;
3413
+ unsafeUniqueKey?: string | kUnsafeEphemeralUniqueKey_2 | undefined;
3104
3414
  unsafePreventEviction?: boolean | undefined;
3105
3415
  }> | undefined;
3106
3416
  }>, z.ZodObject<{
@@ -3110,7 +3420,7 @@ export declare const PLUGINS: {
3110
3420
  }, {
3111
3421
  durableObjectsPersist?: string | boolean | undefined;
3112
3422
  }>>;
3113
- kv: Plugin<z.ZodObject<{
3423
+ kv: Plugin_2<z.ZodObject<{
3114
3424
  kvNamespaces: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodString, "many">]>>;
3115
3425
  sitePath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
3116
3426
  siteInclude: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -3132,7 +3442,7 @@ export declare const PLUGINS: {
3132
3442
  }, {
3133
3443
  kvPersist?: string | boolean | undefined;
3134
3444
  }>>;
3135
- queues: Plugin<z.ZodObject<{
3445
+ queues: Plugin_2<z.ZodObject<{
3136
3446
  queueProducers: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodObject<{
3137
3447
  queueName: z.ZodString;
3138
3448
  deliveryDelay: z.ZodOptional<z.ZodNumber>;
@@ -3206,7 +3516,7 @@ export declare const PLUGINS: {
3206
3516
  retryDelay?: number | undefined;
3207
3517
  }> | undefined;
3208
3518
  }>>;
3209
- r2: Plugin<z.ZodObject<{
3519
+ r2: Plugin_2<z.ZodObject<{
3210
3520
  r2Buckets: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodString, "many">]>>;
3211
3521
  }, "strip", z.ZodTypeAny, {
3212
3522
  r2Buckets?: string[] | Record<string, string> | undefined;
@@ -3219,104 +3529,278 @@ export declare const PLUGINS: {
3219
3529
  }, {
3220
3530
  r2Persist?: string | boolean | undefined;
3221
3531
  }>>;
3222
- hyperdrive: Plugin<z.ZodObject<{
3532
+ hyperdrive: Plugin_2<z.ZodObject<{
3223
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>>>;
3224
3534
  }, "strip", z.ZodTypeAny, {
3225
3535
  hyperdrives?: Record<string, URL_2> | undefined;
3226
3536
  }, {
3227
3537
  hyperdrives?: Record<string, string | URL_2> | undefined;
3228
3538
  }>>;
3229
- ratelimit: Plugin<z.ZodObject<{
3539
+ ratelimit: Plugin_2<z.ZodObject<{
3230
3540
  ratelimits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3231
3541
  simple: z.ZodObject<{
3232
3542
  limit: z.ZodNumber;
3233
- period: z.ZodOptional<z.ZodNativeEnum<PeriodType>>;
3543
+ period: z.ZodOptional<z.ZodNativeEnum<PeriodType_2>>;
3234
3544
  }, "strip", z.ZodTypeAny, {
3235
3545
  limit: number;
3236
- period?: PeriodType | undefined;
3546
+ period?: PeriodType_2 | undefined;
3237
3547
  }, {
3238
3548
  limit: number;
3239
- period?: PeriodType | undefined;
3549
+ period?: PeriodType_2 | undefined;
3240
3550
  }>;
3241
3551
  }, "strip", z.ZodTypeAny, {
3242
3552
  simple: {
3243
3553
  limit: number;
3244
- period?: PeriodType | undefined;
3554
+ period?: PeriodType_2 | undefined;
3245
3555
  };
3246
3556
  }, {
3247
3557
  simple: {
3248
3558
  limit: number;
3249
- period?: PeriodType | undefined;
3559
+ period?: PeriodType_2 | undefined;
3250
3560
  };
3251
3561
  }>>>;
3252
3562
  }, "strip", z.ZodTypeAny, {
3253
3563
  ratelimits?: Record<string, {
3254
3564
  simple: {
3255
3565
  limit: number;
3256
- period?: PeriodType | undefined;
3566
+ period?: PeriodType_2 | undefined;
3257
3567
  };
3258
3568
  }> | undefined;
3259
3569
  }, {
3260
3570
  ratelimits?: Record<string, {
3261
3571
  simple: {
3262
3572
  limit: number;
3263
- period?: PeriodType | undefined;
3573
+ period?: PeriodType_2 | undefined;
3264
3574
  };
3265
3575
  }> | undefined;
3266
3576
  }>>;
3267
- assets: Plugin<z.ZodObject<{
3577
+ assets: Plugin_2<z.ZodObject<{
3268
3578
  assets: z.ZodOptional<z.ZodObject<{
3269
3579
  workerName: z.ZodOptional<z.ZodString>;
3270
3580
  directory: z.ZodEffects<z.ZodString, string, string>;
3271
3581
  binding: z.ZodOptional<z.ZodString>;
3272
- routingConfig: z.ZodOptional<z.ZodObject<{
3273
- has_user_worker: z.ZodOptional<z.ZodBoolean>;
3582
+ routerConfig: z.ZodOptional<z.ZodObject<{
3583
+ account_id: z.ZodOptional<z.ZodNumber>;
3584
+ script_id: z.ZodOptional<z.ZodNumber>;
3274
3585
  invoke_user_worker_ahead_of_assets: z.ZodOptional<z.ZodBoolean>;
3586
+ has_user_worker: z.ZodOptional<z.ZodBoolean>;
3275
3587
  }, "strip", z.ZodTypeAny, {
3276
- has_user_worker?: boolean;
3588
+ account_id?: number;
3589
+ script_id?: number;
3277
3590
  invoke_user_worker_ahead_of_assets?: boolean;
3278
- }, {
3279
3591
  has_user_worker?: boolean;
3592
+ }, {
3593
+ account_id?: number;
3594
+ script_id?: number;
3280
3595
  invoke_user_worker_ahead_of_assets?: boolean;
3596
+ has_user_worker?: boolean;
3281
3597
  }>>;
3282
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">>;
3283
3603
  html_handling: z.ZodOptional<z.ZodEnum<["auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none"]>>;
3284
3604
  not_found_handling: z.ZodOptional<z.ZodEnum<["single-page-application", "404-page", "none"]>>;
3285
- serve_directly: z.ZodOptional<z.ZodBoolean>;
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;
3286
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">>;
3658
+ }, "strip", z.ZodTypeAny, {
3659
+ set?: Record<string, string>;
3660
+ unset?: string[];
3661
+ }, {
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[];
3670
+ }>;
3671
+ }, {
3672
+ version?: 2;
3673
+ rules?: Record<string, {
3674
+ set?: Record<string, string>;
3675
+ unset?: string[];
3676
+ }>;
3677
+ }>>;
3678
+ }, "strip", z.ZodTypeAny, {
3679
+ account_id?: number;
3680
+ script_id?: number;
3681
+ compatibility_date?: string;
3682
+ compatibility_flags?: string[];
3287
3683
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
3288
3684
  not_found_handling?: "none" | "single-page-application" | "404-page";
3289
- serve_directly?: boolean;
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
+ }>;
3703
+ };
3290
3704
  }, {
3705
+ account_id?: number;
3706
+ script_id?: number;
3707
+ compatibility_date?: string;
3708
+ compatibility_flags?: string[];
3291
3709
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
3292
3710
  not_found_handling?: "none" | "single-page-application" | "404-page";
3293
- serve_directly?: boolean;
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
+ };
3294
3730
  }>>;
3295
3731
  }, "strip", z.ZodTypeAny, {
3296
3732
  directory: string;
3297
3733
  workerName?: string | undefined;
3298
3734
  binding?: string | undefined;
3299
- routingConfig?: {
3300
- has_user_worker?: boolean;
3735
+ routerConfig?: {
3736
+ account_id?: number;
3737
+ script_id?: number;
3301
3738
  invoke_user_worker_ahead_of_assets?: boolean;
3739
+ has_user_worker?: boolean;
3302
3740
  } | undefined;
3303
3741
  assetConfig?: {
3742
+ account_id?: number;
3743
+ script_id?: number;
3744
+ compatibility_date?: string;
3745
+ compatibility_flags?: string[];
3304
3746
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
3305
3747
  not_found_handling?: "none" | "single-page-application" | "404-page";
3306
- serve_directly?: boolean;
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
+ }>;
3759
+ };
3760
+ headers?: {
3761
+ version?: 2;
3762
+ rules?: Record<string, {
3763
+ set?: Record<string, string>;
3764
+ unset?: string[];
3765
+ }>;
3766
+ };
3307
3767
  } | undefined;
3308
3768
  }, {
3309
3769
  directory: string;
3310
3770
  workerName?: string | undefined;
3311
3771
  binding?: string | undefined;
3312
- routingConfig?: {
3313
- has_user_worker?: boolean;
3772
+ routerConfig?: {
3773
+ account_id?: number;
3774
+ script_id?: number;
3314
3775
  invoke_user_worker_ahead_of_assets?: boolean;
3776
+ has_user_worker?: boolean;
3315
3777
  } | undefined;
3316
3778
  assetConfig?: {
3779
+ account_id?: number;
3780
+ script_id?: number;
3781
+ compatibility_date?: string;
3782
+ compatibility_flags?: string[];
3317
3783
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
3318
3784
  not_found_handling?: "none" | "single-page-application" | "404-page";
3319
- serve_directly?: boolean;
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
+ };
3320
3804
  } | undefined;
3321
3805
  }>>;
3322
3806
  }, "strip", z.ZodTypeAny, {
@@ -3324,14 +3808,38 @@ export declare const PLUGINS: {
3324
3808
  directory: string;
3325
3809
  workerName?: string | undefined;
3326
3810
  binding?: string | undefined;
3327
- routingConfig?: {
3328
- has_user_worker?: boolean;
3811
+ routerConfig?: {
3812
+ account_id?: number;
3813
+ script_id?: number;
3329
3814
  invoke_user_worker_ahead_of_assets?: boolean;
3815
+ has_user_worker?: boolean;
3330
3816
  } | undefined;
3331
3817
  assetConfig?: {
3818
+ account_id?: number;
3819
+ script_id?: number;
3820
+ compatibility_date?: string;
3821
+ compatibility_flags?: string[];
3332
3822
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
3333
3823
  not_found_handling?: "none" | "single-page-application" | "404-page";
3334
- serve_directly?: boolean;
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
+ };
3335
3843
  } | undefined;
3336
3844
  } | undefined;
3337
3845
  }, {
@@ -3339,18 +3847,42 @@ export declare const PLUGINS: {
3339
3847
  directory: string;
3340
3848
  workerName?: string | undefined;
3341
3849
  binding?: string | undefined;
3342
- routingConfig?: {
3343
- has_user_worker?: boolean;
3850
+ routerConfig?: {
3851
+ account_id?: number;
3852
+ script_id?: number;
3344
3853
  invoke_user_worker_ahead_of_assets?: boolean;
3854
+ has_user_worker?: boolean;
3345
3855
  } | undefined;
3346
3856
  assetConfig?: {
3857
+ account_id?: number;
3858
+ script_id?: number;
3859
+ compatibility_date?: string;
3860
+ compatibility_flags?: string[];
3347
3861
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
3348
3862
  not_found_handling?: "none" | "single-page-application" | "404-page";
3349
- serve_directly?: boolean;
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
+ };
3350
3882
  } | undefined;
3351
3883
  } | undefined;
3352
3884
  }>>;
3353
- workflows: Plugin<z.ZodObject<{
3885
+ workflows: Plugin_2<z.ZodObject<{
3354
3886
  workflows: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3355
3887
  name: z.ZodString;
3356
3888
  className: z.ZodString;
@@ -3383,6 +3915,13 @@ export declare const PLUGINS: {
3383
3915
  }, {
3384
3916
  workflowsPersist?: string | boolean | undefined;
3385
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
+ }>>;
3386
3925
  };
3387
3926
 
3388
3927
  export declare type Plugins = typeof PLUGINS;
@@ -3403,6 +3942,7 @@ export declare interface PluginServicesOptions<Options extends z.ZodType, Shared
3403
3942
  unsafeEphemeralDurableObjects: boolean;
3404
3943
  queueProducers: QueueProducers;
3405
3944
  queueConsumers: QueueConsumers;
3945
+ unsafeEnableAssetsRpc: boolean;
3406
3946
  }
3407
3947
 
3408
3948
  export declare function prefixError(prefix: string, e: any): Error;
@@ -3580,11 +4120,11 @@ export declare type QueueIncomingMessage = z.infer<typeof QueueIncomingMessageSc
3580
4120
  export declare const QueueIncomingMessageSchema: z.ZodObject<{
3581
4121
  contentType: z.ZodDefault<z.ZodEnum<["text", "json", "bytes", "v8"]>>;
3582
4122
  delaySecs: z.ZodOptional<z.ZodNumber>;
3583
- body: z.ZodEffects<z.ZodString, Buffer, string>;
4123
+ body: z.ZodEffects<z.ZodString, Buffer<ArrayBuffer>, string>;
3584
4124
  id: z.ZodOptional<z.ZodString>;
3585
4125
  timestamp: z.ZodOptional<z.ZodNumber>;
3586
4126
  }, "strip", z.ZodTypeAny, {
3587
- body: Buffer;
4127
+ body: Buffer<ArrayBuffer>;
3588
4128
  contentType: "json" | "bytes" | "v8" | "text";
3589
4129
  delaySecs?: number | undefined;
3590
4130
  id?: string | undefined;
@@ -3660,11 +4200,11 @@ export declare const QueuesBatchRequestSchema: z.ZodObject<{
3660
4200
  messages: z.ZodArray<z.ZodObject<{
3661
4201
  contentType: z.ZodDefault<z.ZodEnum<["text", "json", "bytes", "v8"]>>;
3662
4202
  delaySecs: z.ZodOptional<z.ZodNumber>;
3663
- body: z.ZodEffects<z.ZodString, Buffer, string>;
4203
+ body: z.ZodEffects<z.ZodString, Buffer<ArrayBuffer>, string>;
3664
4204
  id: z.ZodOptional<z.ZodString>;
3665
4205
  timestamp: z.ZodOptional<z.ZodNumber>;
3666
4206
  }, "strip", z.ZodTypeAny, {
3667
- body: Buffer;
4207
+ body: Buffer<ArrayBuffer>;
3668
4208
  contentType: "json" | "bytes" | "v8" | "text";
3669
4209
  delaySecs?: number | undefined;
3670
4210
  id?: string | undefined;
@@ -3678,7 +4218,7 @@ export declare const QueuesBatchRequestSchema: z.ZodObject<{
3678
4218
  }>, "many">;
3679
4219
  }, "strip", z.ZodTypeAny, {
3680
4220
  messages: {
3681
- body: Buffer;
4221
+ body: Buffer<ArrayBuffer>;
3682
4222
  contentType: "json" | "bytes" | "v8" | "text";
3683
4223
  delaySecs?: number | undefined;
3684
4224
  id?: string | undefined;
@@ -3872,11 +4412,11 @@ export declare type ReducersRevivers = Record<string, ReducerReviver>;
3872
4412
 
3873
4413
  export { ReferrerPolicy }
3874
4414
 
3875
- export declare type ReplaceWorkersTypes<T> = T extends Request_4 ? Request_2 : T extends Response_4 ? 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 ? {
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 ? {
3876
4416
  [K in keyof T]: OverloadReplaceWorkersTypes<T[K]>;
3877
4417
  } : T;
3878
4418
 
3879
- declare class Request_2<CfType extends RequestInitCfType = RequestInitCfType> extends Request_3 {
4419
+ declare class Request_2<CfType extends RequestInitCfType = RequestInitCfType> extends Request_4 {
3880
4420
  [kCf]?: CfType;
3881
4421
  constructor(input: RequestInfo, init?: RequestInit_2<CfType>);
3882
4422
  get cf(): CfType | undefined;
@@ -3906,7 +4446,7 @@ export { RequestMode }
3906
4446
 
3907
4447
  export { RequestRedirect }
3908
4448
 
3909
- declare class Response_2 extends Response_3 {
4449
+ declare class Response_2 extends Response_4 {
3910
4450
  readonly [kWebSocket]: WebSocket | null;
3911
4451
  static error(): Response_2;
3912
4452
  static redirect(url: string | URL, status: ResponseRedirectStatus): Response_2;
@@ -4050,29 +4590,29 @@ export declare const SourceOptionsSchema: z.ZodUnion<[z.ZodObject<{
4050
4590
  modules: z.ZodArray<z.ZodObject<{
4051
4591
  type: z.ZodEnum<["ESModule", "CommonJS", "NodeJsCompatModule", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
4052
4592
  path: z.ZodEffects<z.ZodString, string, string>;
4053
- 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>>]>>;
4054
4594
  }, "strip", z.ZodTypeAny, {
4055
4595
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
4056
4596
  path: string;
4057
- contents?: string | Uint8Array | undefined;
4597
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
4058
4598
  }, {
4059
4599
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
4060
4600
  path: string;
4061
- contents?: string | Uint8Array | undefined;
4601
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
4062
4602
  }>, "many">;
4063
4603
  modulesRoot: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
4064
4604
  }, "strip", z.ZodTypeAny, {
4065
4605
  modules: {
4066
4606
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
4067
4607
  path: string;
4068
- contents?: string | Uint8Array | undefined;
4608
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
4069
4609
  }[];
4070
4610
  modulesRoot?: string | undefined;
4071
4611
  }, {
4072
4612
  modules: {
4073
4613
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
4074
4614
  path: string;
4075
- contents?: string | Uint8Array | undefined;
4615
+ contents?: string | Uint8Array<ArrayBuffer> | undefined;
4076
4616
  }[];
4077
4617
  modulesRoot?: string | undefined;
4078
4618
  }>, z.ZodObject<{
@@ -4183,14 +4723,16 @@ export declare interface TlsOptions_Keypair {
4183
4723
  certificateChain?: string;
4184
4724
  }
4185
4725
 
4186
- export declare enum TlsOptions_Version {
4187
- GOOD_DEFAULT = 0,
4188
- SSL3 = 1,
4189
- TLS1DOT0 = 2,
4190
- TLS1DOT1 = 3,
4191
- TLS1DOT2 = 4,
4192
- TLS1DOT3 = 5
4193
- }
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];
4194
4736
 
4195
4737
  export declare function _transformsForContentEncodingAndContentType(encoding: string | undefined, type: string | undefined | null): Transform[];
4196
4738
 
@@ -4235,8 +4777,8 @@ export declare class WebSocket extends TypedEventTarget<WebSocketEventMap> {
4235
4777
  [kClosedIncoming]: boolean;
4236
4778
  get readyState(): number;
4237
4779
  accept(): void;
4238
- send(message: ArrayBuffer | string): void;
4239
- [kSend](message: ArrayBuffer | string): void;
4780
+ send(message: string | ArrayBuffer | Uint8Array<ArrayBuffer>): void;
4781
+ [kSend](message: string | ArrayBuffer | Uint8Array<ArrayBuffer>): void;
4240
4782
  close(code?: number, reason?: string): void;
4241
4783
  [kClose](code?: number, reason?: string): void;
4242
4784
  [kError](error?: Error): void;
@@ -4337,16 +4879,18 @@ export declare type Worker_Binding_CryptoKey_Algorithm = {
4337
4879
  json?: string;
4338
4880
  };
4339
4881
 
4340
- export declare enum Worker_Binding_CryptoKey_Usage {
4341
- ENCRYPT = 0,
4342
- DECRYPT = 1,
4343
- SIGN = 2,
4344
- VERIFY = 3,
4345
- DERIVE_KEY = 4,
4346
- DERIVE_BITS = 5,
4347
- WRAP_KEY = 6,
4348
- UNWRAP_KEY = 7
4349
- }
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];
4350
4894
 
4351
4895
  export declare type Worker_Binding_DurableObjectNamespaceDesignator = {
4352
4896
  className?: string;
@@ -4453,7 +4997,7 @@ export declare type Worker_Module = {
4453
4997
  pythonRequirement?: string;
4454
4998
  });
4455
4999
 
4456
- 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>;
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>;
4457
5001
 
4458
5002
  export declare interface WorkerRoute {
4459
5003
  target: string;