miniflare 0.0.0-ca6001066 → 0.0.0-ca8123726

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.
@@ -110,6 +110,79 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
110
110
  compatibility_flags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
111
111
  html_handling: z.ZodOptional<z.ZodEnum<["auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none"]>>;
112
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
+ }>>;
113
186
  }, "strip", z.ZodTypeAny, {
114
187
  account_id?: number;
115
188
  script_id?: number;
@@ -117,6 +190,25 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
117
190
  compatibility_flags?: string[];
118
191
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
119
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
+ };
120
212
  }, {
121
213
  account_id?: number;
122
214
  script_id?: number;
@@ -124,6 +216,25 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
124
216
  compatibility_flags?: string[];
125
217
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
126
218
  not_found_handling?: "none" | "single-page-application" | "404-page";
219
+ redirects?: {
220
+ version?: 1;
221
+ staticRules?: Record<string, {
222
+ status?: number;
223
+ to?: string;
224
+ lineNumber?: number;
225
+ }>;
226
+ rules?: Record<string, {
227
+ status?: number;
228
+ to?: string;
229
+ }>;
230
+ };
231
+ headers?: {
232
+ version?: 2;
233
+ rules?: Record<string, {
234
+ set?: Record<string, string>;
235
+ unset?: string[];
236
+ }>;
237
+ };
127
238
  }>>;
128
239
  }, "strip", z.ZodTypeAny, {
129
240
  directory: string;
@@ -142,6 +253,25 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
142
253
  compatibility_flags?: string[];
143
254
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
144
255
  not_found_handling?: "none" | "single-page-application" | "404-page";
256
+ redirects?: {
257
+ version?: 1;
258
+ staticRules?: Record<string, {
259
+ status?: number;
260
+ to?: string;
261
+ lineNumber?: number;
262
+ }>;
263
+ rules?: Record<string, {
264
+ status?: number;
265
+ to?: string;
266
+ }>;
267
+ };
268
+ headers?: {
269
+ version?: 2;
270
+ rules?: Record<string, {
271
+ set?: Record<string, string>;
272
+ unset?: string[];
273
+ }>;
274
+ };
145
275
  } | undefined;
146
276
  }, {
147
277
  directory: string;
@@ -160,6 +290,25 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
160
290
  compatibility_flags?: string[];
161
291
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
162
292
  not_found_handling?: "none" | "single-page-application" | "404-page";
293
+ redirects?: {
294
+ version?: 1;
295
+ staticRules?: Record<string, {
296
+ status?: number;
297
+ to?: string;
298
+ lineNumber?: number;
299
+ }>;
300
+ rules?: Record<string, {
301
+ status?: number;
302
+ to?: string;
303
+ }>;
304
+ };
305
+ headers?: {
306
+ version?: 2;
307
+ rules?: Record<string, {
308
+ set?: Record<string, string>;
309
+ unset?: string[];
310
+ }>;
311
+ };
163
312
  } | undefined;
164
313
  }>>;
165
314
  }, "strip", z.ZodTypeAny, {
@@ -180,6 +329,25 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
180
329
  compatibility_flags?: string[];
181
330
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
182
331
  not_found_handling?: "none" | "single-page-application" | "404-page";
332
+ redirects?: {
333
+ version?: 1;
334
+ staticRules?: Record<string, {
335
+ status?: number;
336
+ to?: string;
337
+ lineNumber?: number;
338
+ }>;
339
+ rules?: Record<string, {
340
+ status?: number;
341
+ to?: string;
342
+ }>;
343
+ };
344
+ headers?: {
345
+ version?: 2;
346
+ rules?: Record<string, {
347
+ set?: Record<string, string>;
348
+ unset?: string[];
349
+ }>;
350
+ };
183
351
  } | undefined;
184
352
  } | undefined;
185
353
  }, {
@@ -200,6 +368,25 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
200
368
  compatibility_flags?: string[];
201
369
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
202
370
  not_found_handling?: "none" | "single-page-application" | "404-page";
371
+ redirects?: {
372
+ version?: 1;
373
+ staticRules?: Record<string, {
374
+ status?: number;
375
+ to?: string;
376
+ lineNumber?: number;
377
+ }>;
378
+ rules?: Record<string, {
379
+ status?: number;
380
+ to?: string;
381
+ }>;
382
+ };
383
+ headers?: {
384
+ version?: 2;
385
+ rules?: Record<string, {
386
+ set?: Record<string, string>;
387
+ unset?: string[];
388
+ }>;
389
+ };
203
390
  } | undefined;
204
391
  } | undefined;
205
392
  }>;
@@ -328,29 +515,29 @@ export declare const CoreHeaders: {
328
515
 
329
516
  export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
330
517
  modules: z.ZodArray<z.ZodObject<{
331
- type: z.ZodEnum<["ESModule", "CommonJS", "NodeJsCompatModule", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
518
+ type: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
332
519
  path: z.ZodEffects<z.ZodString, string, string>;
333
520
  contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>;
334
521
  }, "strip", z.ZodTypeAny, {
335
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
522
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
336
523
  path: string;
337
524
  contents?: string | Uint8Array<ArrayBuffer> | undefined;
338
525
  }, {
339
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
526
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
340
527
  path: string;
341
528
  contents?: string | Uint8Array<ArrayBuffer> | undefined;
342
529
  }>, "many">;
343
530
  modulesRoot: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
344
531
  }, "strip", z.ZodTypeAny, {
345
532
  modules: {
346
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
533
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
347
534
  path: string;
348
535
  contents?: string | Uint8Array<ArrayBuffer> | undefined;
349
536
  }[];
350
537
  modulesRoot?: string | undefined;
351
538
  }, {
352
539
  modules: {
353
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
540
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
354
541
  path: string;
355
542
  contents?: string | Uint8Array<ArrayBuffer> | undefined;
356
543
  }[];
@@ -360,15 +547,15 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
360
547
  scriptPath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
361
548
  modules: z.ZodOptional<z.ZodBoolean>;
362
549
  modulesRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
363
- type: z.ZodEnum<["ESModule", "CommonJS", "NodeJsCompatModule", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
550
+ type: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
364
551
  include: z.ZodArray<z.ZodString, "many">;
365
552
  fallthrough: z.ZodOptional<z.ZodBoolean>;
366
553
  }, "strip", z.ZodTypeAny, {
367
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
554
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
368
555
  include: string[];
369
556
  fallthrough?: boolean | undefined;
370
557
  }, {
371
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
558
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
372
559
  include: string[];
373
560
  fallthrough?: boolean | undefined;
374
561
  }>, "many">>;
@@ -378,7 +565,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
378
565
  scriptPath?: string | undefined;
379
566
  modules?: boolean | undefined;
380
567
  modulesRules?: {
381
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
568
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
382
569
  include: string[];
383
570
  fallthrough?: boolean | undefined;
384
571
  }[] | undefined;
@@ -388,7 +575,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
388
575
  scriptPath?: string | undefined;
389
576
  modules?: boolean | undefined;
390
577
  modulesRules?: {
391
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
578
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
392
579
  include: string[];
393
580
  fallthrough?: boolean | undefined;
394
581
  }[] | undefined;
@@ -397,15 +584,15 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
397
584
  scriptPath: z.ZodEffects<z.ZodString, string, string>;
398
585
  modules: z.ZodOptional<z.ZodBoolean>;
399
586
  modulesRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
400
- type: z.ZodEnum<["ESModule", "CommonJS", "NodeJsCompatModule", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
587
+ type: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
401
588
  include: z.ZodArray<z.ZodString, "many">;
402
589
  fallthrough: z.ZodOptional<z.ZodBoolean>;
403
590
  }, "strip", z.ZodTypeAny, {
404
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
591
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
405
592
  include: string[];
406
593
  fallthrough?: boolean | undefined;
407
594
  }, {
408
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
595
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
409
596
  include: string[];
410
597
  fallthrough?: boolean | undefined;
411
598
  }>, "many">>;
@@ -414,7 +601,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
414
601
  scriptPath: string;
415
602
  modules?: boolean | undefined;
416
603
  modulesRules?: {
417
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
604
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
418
605
  include: string[];
419
606
  fallthrough?: boolean | undefined;
420
607
  }[] | undefined;
@@ -423,7 +610,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
423
610
  scriptPath: string;
424
611
  modules?: boolean | undefined;
425
612
  modulesRules?: {
426
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
613
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
427
614
  include: string[];
428
615
  fallthrough?: boolean | undefined;
429
616
  }[] | undefined;
@@ -769,7 +956,9 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
769
956
  */
770
957
  hasAssetsAndIsVitest: z.ZodOptional<z.ZodBoolean>;
771
958
  unsafeEnableAssetsRpc: z.ZodOptional<z.ZodBoolean>;
959
+ stripCfConnectingIp: z.ZodDefault<z.ZodBoolean>;
772
960
  }, "strip", z.ZodTypeAny, {
961
+ stripCfConnectingIp: boolean;
773
962
  name?: string | undefined;
774
963
  rootPath?: undefined;
775
964
  compatibilityDate?: string | undefined;
@@ -931,14 +1120,16 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
931
1120
  unsafeUseModuleFallbackService?: boolean | undefined;
932
1121
  hasAssetsAndIsVitest?: boolean | undefined;
933
1122
  unsafeEnableAssetsRpc?: boolean | undefined;
1123
+ stripCfConnectingIp?: boolean | undefined;
934
1124
  }>>, ({
935
1125
  modules: {
936
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
1126
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
937
1127
  path: string;
938
1128
  contents?: string | Uint8Array<ArrayBuffer> | undefined;
939
1129
  }[];
940
1130
  modulesRoot?: string | undefined;
941
1131
  } & {
1132
+ stripCfConnectingIp: boolean;
942
1133
  name?: string | undefined;
943
1134
  rootPath?: undefined;
944
1135
  compatibilityDate?: string | undefined;
@@ -1024,12 +1215,13 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1024
1215
  scriptPath?: string | undefined;
1025
1216
  modules?: boolean | undefined;
1026
1217
  modulesRules?: {
1027
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
1218
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
1028
1219
  include: string[];
1029
1220
  fallthrough?: boolean | undefined;
1030
1221
  }[] | undefined;
1031
1222
  modulesRoot?: string | undefined;
1032
1223
  } & {
1224
+ stripCfConnectingIp: boolean;
1033
1225
  name?: string | undefined;
1034
1226
  rootPath?: undefined;
1035
1227
  compatibilityDate?: string | undefined;
@@ -1114,12 +1306,13 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1114
1306
  scriptPath: string;
1115
1307
  modules?: boolean | undefined;
1116
1308
  modulesRules?: {
1117
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
1309
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
1118
1310
  include: string[];
1119
1311
  fallthrough?: boolean | undefined;
1120
1312
  }[] | undefined;
1121
1313
  modulesRoot?: string | undefined;
1122
1314
  } & {
1315
+ stripCfConnectingIp: boolean;
1123
1316
  name?: string | undefined;
1124
1317
  rootPath?: undefined;
1125
1318
  compatibilityDate?: string | undefined;
@@ -1202,7 +1395,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1202
1395
  unsafeEnableAssetsRpc?: boolean | undefined;
1203
1396
  }), ({
1204
1397
  modules: {
1205
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
1398
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
1206
1399
  path: string;
1207
1400
  contents?: string | Uint8Array<ArrayBuffer> | undefined;
1208
1401
  }[];
@@ -1212,7 +1405,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1212
1405
  scriptPath?: string | undefined;
1213
1406
  modules?: boolean | undefined;
1214
1407
  modulesRules?: {
1215
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
1408
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
1216
1409
  include: string[];
1217
1410
  fallthrough?: boolean | undefined;
1218
1411
  }[] | undefined;
@@ -1221,7 +1414,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1221
1414
  scriptPath: string;
1222
1415
  modules?: boolean | undefined;
1223
1416
  modulesRules?: {
1224
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
1417
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
1225
1418
  include: string[];
1226
1419
  fallthrough?: boolean | undefined;
1227
1420
  }[] | undefined;
@@ -1307,6 +1500,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1307
1500
  unsafeUseModuleFallbackService?: boolean | undefined;
1308
1501
  hasAssetsAndIsVitest?: boolean | undefined;
1309
1502
  unsafeEnableAssetsRpc?: boolean | undefined;
1503
+ stripCfConnectingIp?: boolean | undefined;
1310
1504
  }>;
1311
1505
 
1312
1506
  export declare const CoreSharedOptionsSchema: z.ZodObject<{
@@ -1890,15 +2084,15 @@ export declare type MiniflareOptions = SharedOptions & (WorkerOptions | {
1890
2084
  export declare type ModuleDefinition = z.infer<typeof ModuleDefinitionSchema>;
1891
2085
 
1892
2086
  export declare const ModuleDefinitionSchema: z.ZodObject<{
1893
- type: z.ZodEnum<["ESModule", "CommonJS", "NodeJsCompatModule", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
2087
+ type: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
1894
2088
  path: z.ZodEffects<z.ZodString, string, string>;
1895
2089
  contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>;
1896
2090
  }, "strip", z.ZodTypeAny, {
1897
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
2091
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
1898
2092
  path: string;
1899
2093
  contents?: string | Uint8Array<ArrayBuffer> | undefined;
1900
2094
  }, {
1901
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
2095
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
1902
2096
  path: string;
1903
2097
  contents?: string | Uint8Array<ArrayBuffer> | undefined;
1904
2098
  }>;
@@ -1906,22 +2100,22 @@ export declare const ModuleDefinitionSchema: z.ZodObject<{
1906
2100
  export declare type ModuleRule = z.infer<typeof ModuleRuleSchema>;
1907
2101
 
1908
2102
  export declare const ModuleRuleSchema: z.ZodObject<{
1909
- type: z.ZodEnum<["ESModule", "CommonJS", "NodeJsCompatModule", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
2103
+ type: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
1910
2104
  include: z.ZodArray<z.ZodString, "many">;
1911
2105
  fallthrough: z.ZodOptional<z.ZodBoolean>;
1912
2106
  }, "strip", z.ZodTypeAny, {
1913
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
2107
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
1914
2108
  include: string[];
1915
2109
  fallthrough?: boolean | undefined;
1916
2110
  }, {
1917
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
2111
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
1918
2112
  include: string[];
1919
2113
  fallthrough?: boolean | undefined;
1920
2114
  }>;
1921
2115
 
1922
2116
  export declare type ModuleRuleType = z.infer<typeof ModuleRuleTypeSchema>;
1923
2117
 
1924
- export declare const ModuleRuleTypeSchema: z.ZodEnum<["ESModule", "CommonJS", "NodeJsCompatModule", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
2118
+ export declare const ModuleRuleTypeSchema: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
1925
2119
 
1926
2120
  export declare class Mutex {
1927
2121
  private locked;
@@ -1977,7 +2171,82 @@ export declare type OptionalZodTypeOf<T extends z.ZodTypeAny | undefined> = T ex
1977
2171
 
1978
2172
  export declare type OverloadReplaceWorkersTypes<T> = T extends (...args: any[]) => any ? UnionToIntersection<ReplaceWorkersTypes<OverloadUnion<T>>> : ReplaceWorkersTypes<T>;
1979
2173
 
1980
- export declare type OverloadUnion<T extends (...args: any[]) => any> = Parameters<T> extends [] ? T : OverloadUnion9<T>;
2174
+ export declare type OverloadUnion<T extends (...args: any[]) => any> = Parameters<T> extends [] ? T : OverloadUnion14<T>;
2175
+
2176
+ export declare type OverloadUnion10<T> = T extends {
2177
+ (...args: infer P1): infer R1;
2178
+ (...args: infer P2): infer R2;
2179
+ (...args: infer P3): infer R3;
2180
+ (...args: infer P4): infer R4;
2181
+ (...args: infer P5): infer R5;
2182
+ (...args: infer P6): infer R6;
2183
+ (...args: infer P7): infer R7;
2184
+ (...args: infer P8): infer R8;
2185
+ (...args: infer P9): infer R9;
2186
+ (...args: infer P10): infer R10;
2187
+ } ? ((...args: P1) => R1) | ((...args: P2) => R2) | ((...args: P3) => R3) | ((...args: P4) => R4) | ((...args: P5) => R5) | ((...args: P6) => R6) | ((...args: P7) => R7) | ((...args: P8) => R8) | ((...args: P9) => R9) | ((...args: P10) => R10) : OverloadUnion9<T>;
2188
+
2189
+ export declare type OverloadUnion11<T> = T extends {
2190
+ (...args: infer P1): infer R1;
2191
+ (...args: infer P2): infer R2;
2192
+ (...args: infer P3): infer R3;
2193
+ (...args: infer P4): infer R4;
2194
+ (...args: infer P5): infer R5;
2195
+ (...args: infer P6): infer R6;
2196
+ (...args: infer P7): infer R7;
2197
+ (...args: infer P8): infer R8;
2198
+ (...args: infer P9): infer R9;
2199
+ (...args: infer P10): infer R10;
2200
+ (...args: infer P11): infer R11;
2201
+ } ? ((...args: P1) => R1) | ((...args: P2) => R2) | ((...args: P3) => R3) | ((...args: P4) => R4) | ((...args: P5) => R5) | ((...args: P6) => R6) | ((...args: P7) => R7) | ((...args: P8) => R8) | ((...args: P9) => R9) | ((...args: P10) => R10) | ((...args: P11) => R11) : OverloadUnion10<T>;
2202
+
2203
+ export declare type OverloadUnion12<T> = T extends {
2204
+ (...args: infer P1): infer R1;
2205
+ (...args: infer P2): infer R2;
2206
+ (...args: infer P3): infer R3;
2207
+ (...args: infer P4): infer R4;
2208
+ (...args: infer P5): infer R5;
2209
+ (...args: infer P6): infer R6;
2210
+ (...args: infer P7): infer R7;
2211
+ (...args: infer P8): infer R8;
2212
+ (...args: infer P9): infer R9;
2213
+ (...args: infer P10): infer R10;
2214
+ (...args: infer P11): infer R11;
2215
+ (...args: infer P12): infer R12;
2216
+ } ? ((...args: P1) => R1) | ((...args: P2) => R2) | ((...args: P3) => R3) | ((...args: P4) => R4) | ((...args: P5) => R5) | ((...args: P6) => R6) | ((...args: P7) => R7) | ((...args: P8) => R8) | ((...args: P9) => R9) | ((...args: P10) => R10) | ((...args: P11) => R11) | ((...args: P12) => R12) : OverloadUnion11<T>;
2217
+
2218
+ export declare type OverloadUnion13<T> = T extends {
2219
+ (...args: infer P1): infer R1;
2220
+ (...args: infer P2): infer R2;
2221
+ (...args: infer P3): infer R3;
2222
+ (...args: infer P4): infer R4;
2223
+ (...args: infer P5): infer R5;
2224
+ (...args: infer P6): infer R6;
2225
+ (...args: infer P7): infer R7;
2226
+ (...args: infer P8): infer R8;
2227
+ (...args: infer P9): infer R9;
2228
+ (...args: infer P10): infer R10;
2229
+ (...args: infer P11): infer R11;
2230
+ (...args: infer P12): infer R12;
2231
+ (...args: infer P13): infer R13;
2232
+ } ? ((...args: P1) => R1) | ((...args: P2) => R2) | ((...args: P3) => R3) | ((...args: P4) => R4) | ((...args: P5) => R5) | ((...args: P6) => R6) | ((...args: P7) => R7) | ((...args: P8) => R8) | ((...args: P9) => R9) | ((...args: P10) => R10) | ((...args: P11) => R11) | ((...args: P12) => R12) | ((...args: P13) => R13) : OverloadUnion12<T>;
2233
+
2234
+ export declare type OverloadUnion14<T> = T extends {
2235
+ (...args: infer P1): infer R1;
2236
+ (...args: infer P2): infer R2;
2237
+ (...args: infer P3): infer R3;
2238
+ (...args: infer P4): infer R4;
2239
+ (...args: infer P5): infer R5;
2240
+ (...args: infer P6): infer R6;
2241
+ (...args: infer P7): infer R7;
2242
+ (...args: infer P8): infer R8;
2243
+ (...args: infer P9): infer R9;
2244
+ (...args: infer P10): infer R10;
2245
+ (...args: infer P11): infer R11;
2246
+ (...args: infer P12): infer R12;
2247
+ (...args: infer P13): infer R13;
2248
+ (...args: infer P14): infer R14;
2249
+ } ? ((...args: P1) => R1) | ((...args: P2) => R2) | ((...args: P3) => R3) | ((...args: P4) => R4) | ((...args: P5) => R5) | ((...args: P6) => R6) | ((...args: P7) => R7) | ((...args: P8) => R8) | ((...args: P9) => R9) | ((...args: P10) => R10) | ((...args: P11) => R11) | ((...args: P12) => R12) | ((...args: P13) => R13) | ((...args: P14) => R14) : OverloadUnion13<T>;
1981
2250
 
1982
2251
  export declare type OverloadUnion2<T> = T extends {
1983
2252
  (...args: infer P1): infer R1;
@@ -2115,29 +2384,29 @@ export declare interface PluginBase<Options extends z.ZodType, SharedOptions ext
2115
2384
  export declare const PLUGINS: {
2116
2385
  core: Plugin_2<z.ZodEffects<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2117
2386
  modules: z.ZodArray<z.ZodObject<{
2118
- type: z.ZodEnum<["ESModule", "CommonJS", "NodeJsCompatModule", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
2387
+ type: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
2119
2388
  path: z.ZodEffects<z.ZodString, string, string>;
2120
2389
  contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>;
2121
2390
  }, "strip", z.ZodTypeAny, {
2122
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
2391
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
2123
2392
  path: string;
2124
2393
  contents?: string | Uint8Array<ArrayBuffer> | undefined;
2125
2394
  }, {
2126
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
2395
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
2127
2396
  path: string;
2128
2397
  contents?: string | Uint8Array<ArrayBuffer> | undefined;
2129
2398
  }>, "many">;
2130
2399
  modulesRoot: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2131
2400
  }, "strip", z.ZodTypeAny, {
2132
2401
  modules: {
2133
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
2402
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
2134
2403
  path: string;
2135
2404
  contents?: string | Uint8Array<ArrayBuffer> | undefined;
2136
2405
  }[];
2137
2406
  modulesRoot?: string | undefined;
2138
2407
  }, {
2139
2408
  modules: {
2140
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
2409
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
2141
2410
  path: string;
2142
2411
  contents?: string | Uint8Array<ArrayBuffer> | undefined;
2143
2412
  }[];
@@ -2147,15 +2416,15 @@ export declare const PLUGINS: {
2147
2416
  scriptPath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2148
2417
  modules: z.ZodOptional<z.ZodBoolean>;
2149
2418
  modulesRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
2150
- type: z.ZodEnum<["ESModule", "CommonJS", "NodeJsCompatModule", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
2419
+ type: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
2151
2420
  include: z.ZodArray<z.ZodString, "many">;
2152
2421
  fallthrough: z.ZodOptional<z.ZodBoolean>;
2153
2422
  }, "strip", z.ZodTypeAny, {
2154
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
2423
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
2155
2424
  include: string[];
2156
2425
  fallthrough?: boolean | undefined;
2157
2426
  }, {
2158
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
2427
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
2159
2428
  include: string[];
2160
2429
  fallthrough?: boolean | undefined;
2161
2430
  }>, "many">>;
@@ -2165,7 +2434,7 @@ export declare const PLUGINS: {
2165
2434
  scriptPath?: string | undefined;
2166
2435
  modules?: boolean | undefined;
2167
2436
  modulesRules?: {
2168
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
2437
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
2169
2438
  include: string[];
2170
2439
  fallthrough?: boolean | undefined;
2171
2440
  }[] | undefined;
@@ -2175,7 +2444,7 @@ export declare const PLUGINS: {
2175
2444
  scriptPath?: string | undefined;
2176
2445
  modules?: boolean | undefined;
2177
2446
  modulesRules?: {
2178
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
2447
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
2179
2448
  include: string[];
2180
2449
  fallthrough?: boolean | undefined;
2181
2450
  }[] | undefined;
@@ -2184,15 +2453,15 @@ export declare const PLUGINS: {
2184
2453
  scriptPath: z.ZodEffects<z.ZodString, string, string>;
2185
2454
  modules: z.ZodOptional<z.ZodBoolean>;
2186
2455
  modulesRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
2187
- type: z.ZodEnum<["ESModule", "CommonJS", "NodeJsCompatModule", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
2456
+ type: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
2188
2457
  include: z.ZodArray<z.ZodString, "many">;
2189
2458
  fallthrough: z.ZodOptional<z.ZodBoolean>;
2190
2459
  }, "strip", z.ZodTypeAny, {
2191
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
2460
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
2192
2461
  include: string[];
2193
2462
  fallthrough?: boolean | undefined;
2194
2463
  }, {
2195
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
2464
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
2196
2465
  include: string[];
2197
2466
  fallthrough?: boolean | undefined;
2198
2467
  }>, "many">>;
@@ -2201,7 +2470,7 @@ export declare const PLUGINS: {
2201
2470
  scriptPath: string;
2202
2471
  modules?: boolean | undefined;
2203
2472
  modulesRules?: {
2204
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
2473
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
2205
2474
  include: string[];
2206
2475
  fallthrough?: boolean | undefined;
2207
2476
  }[] | undefined;
@@ -2210,7 +2479,7 @@ export declare const PLUGINS: {
2210
2479
  scriptPath: string;
2211
2480
  modules?: boolean | undefined;
2212
2481
  modulesRules?: {
2213
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
2482
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
2214
2483
  include: string[];
2215
2484
  fallthrough?: boolean | undefined;
2216
2485
  }[] | undefined;
@@ -2552,7 +2821,9 @@ export declare const PLUGINS: {
2552
2821
  unsafeUseModuleFallbackService: z.ZodOptional<z.ZodBoolean>;
2553
2822
  hasAssetsAndIsVitest: z.ZodOptional<z.ZodBoolean>;
2554
2823
  unsafeEnableAssetsRpc: z.ZodOptional<z.ZodBoolean>;
2824
+ stripCfConnectingIp: z.ZodDefault<z.ZodBoolean>;
2555
2825
  }, "strip", z.ZodTypeAny, {
2826
+ stripCfConnectingIp: boolean;
2556
2827
  name?: string | undefined;
2557
2828
  rootPath?: undefined;
2558
2829
  compatibilityDate?: string | undefined;
@@ -2714,14 +2985,16 @@ export declare const PLUGINS: {
2714
2985
  unsafeUseModuleFallbackService?: boolean | undefined;
2715
2986
  hasAssetsAndIsVitest?: boolean | undefined;
2716
2987
  unsafeEnableAssetsRpc?: boolean | undefined;
2988
+ stripCfConnectingIp?: boolean | undefined;
2717
2989
  }>>, ({
2718
2990
  modules: {
2719
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
2991
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
2720
2992
  path: string;
2721
2993
  contents?: string | Uint8Array<ArrayBuffer> | undefined;
2722
2994
  }[];
2723
2995
  modulesRoot?: string | undefined;
2724
2996
  } & {
2997
+ stripCfConnectingIp: boolean;
2725
2998
  name?: string | undefined;
2726
2999
  rootPath?: undefined;
2727
3000
  compatibilityDate?: string | undefined;
@@ -2807,12 +3080,13 @@ export declare const PLUGINS: {
2807
3080
  scriptPath?: string | undefined;
2808
3081
  modules?: boolean | undefined;
2809
3082
  modulesRules?: {
2810
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
3083
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
2811
3084
  include: string[];
2812
3085
  fallthrough?: boolean | undefined;
2813
3086
  }[] | undefined;
2814
3087
  modulesRoot?: string | undefined;
2815
3088
  } & {
3089
+ stripCfConnectingIp: boolean;
2816
3090
  name?: string | undefined;
2817
3091
  rootPath?: undefined;
2818
3092
  compatibilityDate?: string | undefined;
@@ -2897,12 +3171,13 @@ export declare const PLUGINS: {
2897
3171
  scriptPath: string;
2898
3172
  modules?: boolean | undefined;
2899
3173
  modulesRules?: {
2900
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
3174
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
2901
3175
  include: string[];
2902
3176
  fallthrough?: boolean | undefined;
2903
3177
  }[] | undefined;
2904
3178
  modulesRoot?: string | undefined;
2905
3179
  } & {
3180
+ stripCfConnectingIp: boolean;
2906
3181
  name?: string | undefined;
2907
3182
  rootPath?: undefined;
2908
3183
  compatibilityDate?: string | undefined;
@@ -2985,7 +3260,7 @@ export declare const PLUGINS: {
2985
3260
  unsafeEnableAssetsRpc?: boolean | undefined;
2986
3261
  }), ({
2987
3262
  modules: {
2988
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
3263
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
2989
3264
  path: string;
2990
3265
  contents?: string | Uint8Array<ArrayBuffer> | undefined;
2991
3266
  }[];
@@ -2995,7 +3270,7 @@ export declare const PLUGINS: {
2995
3270
  scriptPath?: string | undefined;
2996
3271
  modules?: boolean | undefined;
2997
3272
  modulesRules?: {
2998
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
3273
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
2999
3274
  include: string[];
3000
3275
  fallthrough?: boolean | undefined;
3001
3276
  }[] | undefined;
@@ -3004,7 +3279,7 @@ export declare const PLUGINS: {
3004
3279
  scriptPath: string;
3005
3280
  modules?: boolean | undefined;
3006
3281
  modulesRules?: {
3007
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
3282
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
3008
3283
  include: string[];
3009
3284
  fallthrough?: boolean | undefined;
3010
3285
  }[] | undefined;
@@ -3090,6 +3365,7 @@ export declare const PLUGINS: {
3090
3365
  unsafeUseModuleFallbackService?: boolean | undefined;
3091
3366
  hasAssetsAndIsVitest?: boolean | undefined;
3092
3367
  unsafeEnableAssetsRpc?: boolean | undefined;
3368
+ stripCfConnectingIp?: boolean | undefined;
3093
3369
  }>, z.ZodObject<{
3094
3370
  rootPath: z.ZodOptional<z.ZodEffects<z.ZodString, undefined, string>>;
3095
3371
  host: z.ZodOptional<z.ZodString>;
@@ -3405,6 +3681,79 @@ export declare const PLUGINS: {
3405
3681
  compatibility_flags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3406
3682
  html_handling: z.ZodOptional<z.ZodEnum<["auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none"]>>;
3407
3683
  not_found_handling: z.ZodOptional<z.ZodEnum<["single-page-application", "404-page", "none"]>>;
3684
+ redirects: z.ZodOptional<z.ZodObject<{
3685
+ version: z.ZodLiteral<1>;
3686
+ staticRules: z.ZodRecord<z.ZodString, z.ZodObject<{
3687
+ status: z.ZodNumber;
3688
+ to: z.ZodString;
3689
+ lineNumber: z.ZodNumber;
3690
+ }, "strip", z.ZodTypeAny, {
3691
+ status?: number;
3692
+ to?: string;
3693
+ lineNumber?: number;
3694
+ }, {
3695
+ status?: number;
3696
+ to?: string;
3697
+ lineNumber?: number;
3698
+ }>>;
3699
+ rules: z.ZodRecord<z.ZodString, z.ZodObject<{
3700
+ status: z.ZodNumber;
3701
+ to: z.ZodString;
3702
+ }, "strip", z.ZodTypeAny, {
3703
+ status?: number;
3704
+ to?: string;
3705
+ }, {
3706
+ status?: number;
3707
+ to?: string;
3708
+ }>>;
3709
+ }, "strip", z.ZodTypeAny, {
3710
+ version?: 1;
3711
+ staticRules?: Record<string, {
3712
+ status?: number;
3713
+ to?: string;
3714
+ lineNumber?: number;
3715
+ }>;
3716
+ rules?: Record<string, {
3717
+ status?: number;
3718
+ to?: string;
3719
+ }>;
3720
+ }, {
3721
+ version?: 1;
3722
+ staticRules?: Record<string, {
3723
+ status?: number;
3724
+ to?: string;
3725
+ lineNumber?: number;
3726
+ }>;
3727
+ rules?: Record<string, {
3728
+ status?: number;
3729
+ to?: string;
3730
+ }>;
3731
+ }>>;
3732
+ headers: z.ZodOptional<z.ZodObject<{
3733
+ version: z.ZodLiteral<2>;
3734
+ rules: z.ZodRecord<z.ZodString, z.ZodObject<{
3735
+ set: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3736
+ unset: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3737
+ }, "strip", z.ZodTypeAny, {
3738
+ set?: Record<string, string>;
3739
+ unset?: string[];
3740
+ }, {
3741
+ set?: Record<string, string>;
3742
+ unset?: string[];
3743
+ }>>;
3744
+ }, "strip", z.ZodTypeAny, {
3745
+ version?: 2;
3746
+ rules?: Record<string, {
3747
+ set?: Record<string, string>;
3748
+ unset?: string[];
3749
+ }>;
3750
+ }, {
3751
+ version?: 2;
3752
+ rules?: Record<string, {
3753
+ set?: Record<string, string>;
3754
+ unset?: string[];
3755
+ }>;
3756
+ }>>;
3408
3757
  }, "strip", z.ZodTypeAny, {
3409
3758
  account_id?: number;
3410
3759
  script_id?: number;
@@ -3412,6 +3761,25 @@ export declare const PLUGINS: {
3412
3761
  compatibility_flags?: string[];
3413
3762
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
3414
3763
  not_found_handling?: "none" | "single-page-application" | "404-page";
3764
+ redirects?: {
3765
+ version?: 1;
3766
+ staticRules?: Record<string, {
3767
+ status?: number;
3768
+ to?: string;
3769
+ lineNumber?: number;
3770
+ }>;
3771
+ rules?: Record<string, {
3772
+ status?: number;
3773
+ to?: string;
3774
+ }>;
3775
+ };
3776
+ headers?: {
3777
+ version?: 2;
3778
+ rules?: Record<string, {
3779
+ set?: Record<string, string>;
3780
+ unset?: string[];
3781
+ }>;
3782
+ };
3415
3783
  }, {
3416
3784
  account_id?: number;
3417
3785
  script_id?: number;
@@ -3419,6 +3787,25 @@ export declare const PLUGINS: {
3419
3787
  compatibility_flags?: string[];
3420
3788
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
3421
3789
  not_found_handling?: "none" | "single-page-application" | "404-page";
3790
+ redirects?: {
3791
+ version?: 1;
3792
+ staticRules?: Record<string, {
3793
+ status?: number;
3794
+ to?: string;
3795
+ lineNumber?: number;
3796
+ }>;
3797
+ rules?: Record<string, {
3798
+ status?: number;
3799
+ to?: string;
3800
+ }>;
3801
+ };
3802
+ headers?: {
3803
+ version?: 2;
3804
+ rules?: Record<string, {
3805
+ set?: Record<string, string>;
3806
+ unset?: string[];
3807
+ }>;
3808
+ };
3422
3809
  }>>;
3423
3810
  }, "strip", z.ZodTypeAny, {
3424
3811
  directory: string;
@@ -3437,6 +3824,25 @@ export declare const PLUGINS: {
3437
3824
  compatibility_flags?: string[];
3438
3825
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
3439
3826
  not_found_handling?: "none" | "single-page-application" | "404-page";
3827
+ redirects?: {
3828
+ version?: 1;
3829
+ staticRules?: Record<string, {
3830
+ status?: number;
3831
+ to?: string;
3832
+ lineNumber?: number;
3833
+ }>;
3834
+ rules?: Record<string, {
3835
+ status?: number;
3836
+ to?: string;
3837
+ }>;
3838
+ };
3839
+ headers?: {
3840
+ version?: 2;
3841
+ rules?: Record<string, {
3842
+ set?: Record<string, string>;
3843
+ unset?: string[];
3844
+ }>;
3845
+ };
3440
3846
  } | undefined;
3441
3847
  }, {
3442
3848
  directory: string;
@@ -3455,6 +3861,25 @@ export declare const PLUGINS: {
3455
3861
  compatibility_flags?: string[];
3456
3862
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
3457
3863
  not_found_handling?: "none" | "single-page-application" | "404-page";
3864
+ redirects?: {
3865
+ version?: 1;
3866
+ staticRules?: Record<string, {
3867
+ status?: number;
3868
+ to?: string;
3869
+ lineNumber?: number;
3870
+ }>;
3871
+ rules?: Record<string, {
3872
+ status?: number;
3873
+ to?: string;
3874
+ }>;
3875
+ };
3876
+ headers?: {
3877
+ version?: 2;
3878
+ rules?: Record<string, {
3879
+ set?: Record<string, string>;
3880
+ unset?: string[];
3881
+ }>;
3882
+ };
3458
3883
  } | undefined;
3459
3884
  }>>;
3460
3885
  }, "strip", z.ZodTypeAny, {
@@ -3475,6 +3900,25 @@ export declare const PLUGINS: {
3475
3900
  compatibility_flags?: string[];
3476
3901
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
3477
3902
  not_found_handling?: "none" | "single-page-application" | "404-page";
3903
+ redirects?: {
3904
+ version?: 1;
3905
+ staticRules?: Record<string, {
3906
+ status?: number;
3907
+ to?: string;
3908
+ lineNumber?: number;
3909
+ }>;
3910
+ rules?: Record<string, {
3911
+ status?: number;
3912
+ to?: string;
3913
+ }>;
3914
+ };
3915
+ headers?: {
3916
+ version?: 2;
3917
+ rules?: Record<string, {
3918
+ set?: Record<string, string>;
3919
+ unset?: string[];
3920
+ }>;
3921
+ };
3478
3922
  } | undefined;
3479
3923
  } | undefined;
3480
3924
  }, {
@@ -3495,6 +3939,25 @@ export declare const PLUGINS: {
3495
3939
  compatibility_flags?: string[];
3496
3940
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
3497
3941
  not_found_handling?: "none" | "single-page-application" | "404-page";
3942
+ redirects?: {
3943
+ version?: 1;
3944
+ staticRules?: Record<string, {
3945
+ status?: number;
3946
+ to?: string;
3947
+ lineNumber?: number;
3948
+ }>;
3949
+ rules?: Record<string, {
3950
+ status?: number;
3951
+ to?: string;
3952
+ }>;
3953
+ };
3954
+ headers?: {
3955
+ version?: 2;
3956
+ rules?: Record<string, {
3957
+ set?: Record<string, string>;
3958
+ unset?: string[];
3959
+ }>;
3960
+ };
3498
3961
  } | undefined;
3499
3962
  } | undefined;
3500
3963
  }>>;
@@ -4204,29 +4667,29 @@ export declare type SourceOptions = z.infer<typeof SourceOptionsSchema>;
4204
4667
 
4205
4668
  export declare const SourceOptionsSchema: z.ZodUnion<[z.ZodObject<{
4206
4669
  modules: z.ZodArray<z.ZodObject<{
4207
- type: z.ZodEnum<["ESModule", "CommonJS", "NodeJsCompatModule", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
4670
+ type: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
4208
4671
  path: z.ZodEffects<z.ZodString, string, string>;
4209
4672
  contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>;
4210
4673
  }, "strip", z.ZodTypeAny, {
4211
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
4674
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
4212
4675
  path: string;
4213
4676
  contents?: string | Uint8Array<ArrayBuffer> | undefined;
4214
4677
  }, {
4215
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
4678
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
4216
4679
  path: string;
4217
4680
  contents?: string | Uint8Array<ArrayBuffer> | undefined;
4218
4681
  }>, "many">;
4219
4682
  modulesRoot: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
4220
4683
  }, "strip", z.ZodTypeAny, {
4221
4684
  modules: {
4222
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
4685
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
4223
4686
  path: string;
4224
4687
  contents?: string | Uint8Array<ArrayBuffer> | undefined;
4225
4688
  }[];
4226
4689
  modulesRoot?: string | undefined;
4227
4690
  }, {
4228
4691
  modules: {
4229
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
4692
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
4230
4693
  path: string;
4231
4694
  contents?: string | Uint8Array<ArrayBuffer> | undefined;
4232
4695
  }[];
@@ -4236,15 +4699,15 @@ export declare const SourceOptionsSchema: z.ZodUnion<[z.ZodObject<{
4236
4699
  scriptPath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
4237
4700
  modules: z.ZodOptional<z.ZodBoolean>;
4238
4701
  modulesRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
4239
- type: z.ZodEnum<["ESModule", "CommonJS", "NodeJsCompatModule", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
4702
+ type: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
4240
4703
  include: z.ZodArray<z.ZodString, "many">;
4241
4704
  fallthrough: z.ZodOptional<z.ZodBoolean>;
4242
4705
  }, "strip", z.ZodTypeAny, {
4243
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
4706
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
4244
4707
  include: string[];
4245
4708
  fallthrough?: boolean | undefined;
4246
4709
  }, {
4247
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
4710
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
4248
4711
  include: string[];
4249
4712
  fallthrough?: boolean | undefined;
4250
4713
  }>, "many">>;
@@ -4254,7 +4717,7 @@ export declare const SourceOptionsSchema: z.ZodUnion<[z.ZodObject<{
4254
4717
  scriptPath?: string | undefined;
4255
4718
  modules?: boolean | undefined;
4256
4719
  modulesRules?: {
4257
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
4720
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
4258
4721
  include: string[];
4259
4722
  fallthrough?: boolean | undefined;
4260
4723
  }[] | undefined;
@@ -4264,7 +4727,7 @@ export declare const SourceOptionsSchema: z.ZodUnion<[z.ZodObject<{
4264
4727
  scriptPath?: string | undefined;
4265
4728
  modules?: boolean | undefined;
4266
4729
  modulesRules?: {
4267
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
4730
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
4268
4731
  include: string[];
4269
4732
  fallthrough?: boolean | undefined;
4270
4733
  }[] | undefined;
@@ -4273,15 +4736,15 @@ export declare const SourceOptionsSchema: z.ZodUnion<[z.ZodObject<{
4273
4736
  scriptPath: z.ZodEffects<z.ZodString, string, string>;
4274
4737
  modules: z.ZodOptional<z.ZodBoolean>;
4275
4738
  modulesRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
4276
- type: z.ZodEnum<["ESModule", "CommonJS", "NodeJsCompatModule", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
4739
+ type: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
4277
4740
  include: z.ZodArray<z.ZodString, "many">;
4278
4741
  fallthrough: z.ZodOptional<z.ZodBoolean>;
4279
4742
  }, "strip", z.ZodTypeAny, {
4280
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
4743
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
4281
4744
  include: string[];
4282
4745
  fallthrough?: boolean | undefined;
4283
4746
  }, {
4284
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
4747
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
4285
4748
  include: string[];
4286
4749
  fallthrough?: boolean | undefined;
4287
4750
  }>, "many">>;
@@ -4290,7 +4753,7 @@ export declare const SourceOptionsSchema: z.ZodUnion<[z.ZodObject<{
4290
4753
  scriptPath: string;
4291
4754
  modules?: boolean | undefined;
4292
4755
  modulesRules?: {
4293
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
4756
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
4294
4757
  include: string[];
4295
4758
  fallthrough?: boolean | undefined;
4296
4759
  }[] | undefined;
@@ -4299,7 +4762,7 @@ export declare const SourceOptionsSchema: z.ZodUnion<[z.ZodObject<{
4299
4762
  scriptPath: string;
4300
4763
  modules?: boolean | undefined;
4301
4764
  modulesRules?: {
4302
- type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
4765
+ type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
4303
4766
  include: string[];
4304
4767
  fallthrough?: boolean | undefined;
4305
4768
  }[] | undefined;
@@ -4605,8 +5068,6 @@ export declare type Worker_Module = {
4605
5068
  wasm?: Uint8Array;
4606
5069
  } | {
4607
5070
  json?: string;
4608
- } | {
4609
- nodeJsCompatModule?: string;
4610
5071
  } | {
4611
5072
  pythonModule?: string;
4612
5073
  } | {