miniflare 0.0.0-04a8feda8 → 0.0.0-05973bba4

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