miniflare 0.0.0-e55f489db → 0.0.0-e5ae13ade

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.
@@ -27,6 +27,8 @@ import type { KVNamespaceListKey } from '@cloudflare/workers-types/experimental'
27
27
  import { Log as Log_2 } from '..';
28
28
  import { Miniflare as Miniflare_2 } from '../..';
29
29
  import { Miniflare as Miniflare_3 } from '..';
30
+ import { MixedModeConnectionString as MixedModeConnectionString_2 } from '..';
31
+ import { MixedModeConnectionString as MixedModeConnectionString_3 } from './shared';
30
32
  import { MockAgent } from 'undici';
31
33
  import NodeWebSocket from 'ws';
32
34
  import { ParseParams } from 'zod';
@@ -72,6 +74,41 @@ export declare class __MiniflareFunctionWrapper {
72
74
  });
73
75
  }
74
76
 
77
+ export declare const AI_PLUGIN: Plugin<typeof AIOptionsSchema>;
78
+
79
+ export declare const AI_PLUGIN_NAME = "ai";
80
+
81
+ export declare const AIOptionsSchema: z.ZodObject<{
82
+ ai: z.ZodOptional<z.ZodObject<{
83
+ binding: z.ZodString;
84
+ mixedModeConnectionString: z.ZodType<MixedModeConnectionString, z.ZodTypeDef, MixedModeConnectionString>;
85
+ }, "strip", z.ZodTypeAny, {
86
+ mixedModeConnectionString: URL & {
87
+ __brand: "MixedModeConnectionString";
88
+ };
89
+ binding: string;
90
+ }, {
91
+ mixedModeConnectionString: URL & {
92
+ __brand: "MixedModeConnectionString";
93
+ };
94
+ binding: string;
95
+ }>>;
96
+ }, "strip", z.ZodTypeAny, {
97
+ ai?: {
98
+ mixedModeConnectionString: URL & {
99
+ __brand: "MixedModeConnectionString";
100
+ };
101
+ binding: string;
102
+ } | undefined;
103
+ }, {
104
+ ai?: {
105
+ mixedModeConnectionString: URL & {
106
+ __brand: "MixedModeConnectionString";
107
+ };
108
+ binding: string;
109
+ } | undefined;
110
+ }>;
111
+
75
112
  export declare const ANALYTICS_ENGINE_PLUGIN: Plugin<typeof AnalyticsEngineSchemaOptionsSchema, typeof AnalyticsEngineSchemaSharedOptionsSchema>;
76
113
 
77
114
  export declare const ANALYTICS_ENGINE_PLUGIN_NAME = "analytics-engine";
@@ -123,18 +160,41 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
123
160
  script_id: z.ZodOptional<z.ZodNumber>;
124
161
  debug: z.ZodOptional<z.ZodBoolean>;
125
162
  invoke_user_worker_ahead_of_assets: z.ZodOptional<z.ZodBoolean>;
163
+ static_routing: z.ZodOptional<z.ZodObject<{
164
+ version: z.ZodLiteral<1>;
165
+ include: z.ZodArray<z.ZodString, "many">;
166
+ exclude: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
167
+ }, "strip", z.ZodTypeAny, {
168
+ version?: 1;
169
+ include?: string[];
170
+ exclude?: string[];
171
+ }, {
172
+ version?: 1;
173
+ include?: string[];
174
+ exclude?: string[];
175
+ }>>;
126
176
  has_user_worker: z.ZodOptional<z.ZodBoolean>;
127
177
  }, "strip", z.ZodTypeAny, {
128
178
  account_id?: number;
129
179
  script_id?: number;
130
180
  debug?: boolean;
131
181
  invoke_user_worker_ahead_of_assets?: boolean;
182
+ static_routing?: {
183
+ version?: 1;
184
+ include?: string[];
185
+ exclude?: string[];
186
+ };
132
187
  has_user_worker?: boolean;
133
188
  }, {
134
189
  account_id?: number;
135
190
  script_id?: number;
136
191
  debug?: boolean;
137
192
  invoke_user_worker_ahead_of_assets?: boolean;
193
+ static_routing?: {
194
+ version?: 1;
195
+ include?: string[];
196
+ exclude?: string[];
197
+ };
138
198
  has_user_worker?: boolean;
139
199
  }>>;
140
200
  assetConfig: z.ZodOptional<z.ZodObject<Omit<{
@@ -218,6 +278,7 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
218
278
  unset?: string[];
219
279
  }>;
220
280
  }>>;
281
+ has_static_routing: z.ZodOptional<z.ZodBoolean>;
221
282
  }, "compatibility_date" | "compatibility_flags">, "strip", z.ZodTypeAny, {
222
283
  headers?: {
223
284
  version?: 2;
@@ -243,6 +304,7 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
243
304
  to?: string;
244
305
  }>;
245
306
  } | undefined;
307
+ has_static_routing?: boolean | undefined;
246
308
  }, {
247
309
  headers?: {
248
310
  version?: 2;
@@ -268,6 +330,7 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
268
330
  to?: string;
269
331
  }>;
270
332
  } | undefined;
333
+ has_static_routing?: boolean | undefined;
271
334
  }>>;
272
335
  }, "strip", z.ZodTypeAny, {
273
336
  directory: string;
@@ -278,6 +341,11 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
278
341
  script_id?: number;
279
342
  debug?: boolean;
280
343
  invoke_user_worker_ahead_of_assets?: boolean;
344
+ static_routing?: {
345
+ version?: 1;
346
+ include?: string[];
347
+ exclude?: string[];
348
+ };
281
349
  has_user_worker?: boolean;
282
350
  } | undefined;
283
351
  assetConfig?: {
@@ -305,6 +373,7 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
305
373
  to?: string;
306
374
  }>;
307
375
  } | undefined;
376
+ has_static_routing?: boolean | undefined;
308
377
  } | undefined;
309
378
  }, {
310
379
  directory: string;
@@ -315,6 +384,11 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
315
384
  script_id?: number;
316
385
  debug?: boolean;
317
386
  invoke_user_worker_ahead_of_assets?: boolean;
387
+ static_routing?: {
388
+ version?: 1;
389
+ include?: string[];
390
+ exclude?: string[];
391
+ };
318
392
  has_user_worker?: boolean;
319
393
  } | undefined;
320
394
  assetConfig?: {
@@ -342,6 +416,7 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
342
416
  to?: string;
343
417
  }>;
344
418
  } | undefined;
419
+ has_static_routing?: boolean | undefined;
345
420
  } | undefined;
346
421
  }>>;
347
422
  compatibilityDate: z.ZodOptional<z.ZodString>;
@@ -356,6 +431,11 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
356
431
  script_id?: number;
357
432
  debug?: boolean;
358
433
  invoke_user_worker_ahead_of_assets?: boolean;
434
+ static_routing?: {
435
+ version?: 1;
436
+ include?: string[];
437
+ exclude?: string[];
438
+ };
359
439
  has_user_worker?: boolean;
360
440
  } | undefined;
361
441
  assetConfig?: {
@@ -383,6 +463,7 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
383
463
  to?: string;
384
464
  }>;
385
465
  } | undefined;
466
+ has_static_routing?: boolean | undefined;
386
467
  } | undefined;
387
468
  } | undefined;
388
469
  compatibilityDate?: string | undefined;
@@ -397,6 +478,11 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
397
478
  script_id?: number;
398
479
  debug?: boolean;
399
480
  invoke_user_worker_ahead_of_assets?: boolean;
481
+ static_routing?: {
482
+ version?: 1;
483
+ include?: string[];
484
+ exclude?: string[];
485
+ };
400
486
  has_user_worker?: boolean;
401
487
  } | undefined;
402
488
  assetConfig?: {
@@ -424,6 +510,7 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
424
510
  to?: string;
425
511
  }>;
426
512
  } | undefined;
513
+ has_static_routing?: boolean | undefined;
427
514
  } | undefined;
428
515
  } | undefined;
429
516
  compatibilityDate?: string | undefined;
@@ -438,6 +525,41 @@ export declare function base64Encode(value: string): string;
438
525
 
439
526
  export { BodyInit }
440
527
 
528
+ export declare const BROWSER_RENDERING_PLUGIN: Plugin<typeof BrowserRenderingOptionsSchema>;
529
+
530
+ export declare const BROWSER_RENDERING_PLUGIN_NAME = "browser-rendering";
531
+
532
+ export declare const BrowserRenderingOptionsSchema: z.ZodObject<{
533
+ browserRendering: z.ZodOptional<z.ZodObject<{
534
+ binding: z.ZodString;
535
+ mixedModeConnectionString: z.ZodType<MixedModeConnectionString, z.ZodTypeDef, MixedModeConnectionString>;
536
+ }, "strip", z.ZodTypeAny, {
537
+ mixedModeConnectionString: URL & {
538
+ __brand: "MixedModeConnectionString";
539
+ };
540
+ binding: string;
541
+ }, {
542
+ mixedModeConnectionString: URL & {
543
+ __brand: "MixedModeConnectionString";
544
+ };
545
+ binding: string;
546
+ }>>;
547
+ }, "strip", z.ZodTypeAny, {
548
+ browserRendering?: {
549
+ mixedModeConnectionString: URL & {
550
+ __brand: "MixedModeConnectionString";
551
+ };
552
+ binding: string;
553
+ } | undefined;
554
+ }, {
555
+ browserRendering?: {
556
+ mixedModeConnectionString: URL & {
557
+ __brand: "MixedModeConnectionString";
558
+ };
559
+ binding: string;
560
+ } | undefined;
561
+ }>;
562
+
441
563
  /**
442
564
  * The Asset Manifest and Asset Reverse Map are used to map a request path to an asset.
443
565
  * 1. Hash path of request
@@ -525,6 +647,7 @@ export declare const CoreBindings: {
525
647
  readonly SERVICE_USER_ROUTE_PREFIX: "MINIFLARE_USER_ROUTE_";
526
648
  readonly SERVICE_USER_FALLBACK: "MINIFLARE_USER_FALLBACK";
527
649
  readonly TEXT_CUSTOM_SERVICE: "MINIFLARE_CUSTOM_SERVICE";
650
+ readonly IMAGES_SERVICE: "MINIFLARE_IMAGES_SERVICE";
528
651
  readonly TEXT_UPSTREAM_URL: "MINIFLARE_UPSTREAM_URL";
529
652
  readonly JSON_CF_BLOB: "CF_BLOB";
530
653
  readonly JSON_ROUTES: "MINIFLARE_ROUTES";
@@ -671,14 +794,17 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
671
794
  name: z.ZodUnion<[z.ZodString, z.ZodLiteral<typeof kCurrentWorker>]>;
672
795
  entrypoint: z.ZodOptional<z.ZodString>;
673
796
  props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
797
+ mixedModeConnectionString: z.ZodOptional<z.ZodType<MixedModeConnectionString_2, z.ZodTypeDef, MixedModeConnectionString_2>>;
674
798
  }, "strip", z.ZodTypeAny, {
675
799
  name: string | typeof kCurrentWorker;
676
800
  entrypoint?: string | undefined;
677
801
  props?: Record<string, unknown> | undefined;
802
+ mixedModeConnectionString?: MixedModeConnectionString_2 | undefined;
678
803
  }, {
679
804
  name: string | typeof kCurrentWorker;
680
805
  entrypoint?: string | undefined;
681
806
  props?: Record<string, unknown> | undefined;
807
+ mixedModeConnectionString?: MixedModeConnectionString_2 | undefined;
682
808
  }>, z.ZodObject<{
683
809
  network: z.ZodObject<{
684
810
  allow: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -833,14 +959,17 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
833
959
  name: z.ZodUnion<[z.ZodString, z.ZodLiteral<typeof kCurrentWorker>]>;
834
960
  entrypoint: z.ZodOptional<z.ZodString>;
835
961
  props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
962
+ mixedModeConnectionString: z.ZodOptional<z.ZodType<MixedModeConnectionString_2, z.ZodTypeDef, MixedModeConnectionString_2>>;
836
963
  }, "strip", z.ZodTypeAny, {
837
964
  name: string | typeof kCurrentWorker;
838
965
  entrypoint?: string | undefined;
839
966
  props?: Record<string, unknown> | undefined;
967
+ mixedModeConnectionString?: MixedModeConnectionString_2 | undefined;
840
968
  }, {
841
969
  name: string | typeof kCurrentWorker;
842
970
  entrypoint?: string | undefined;
843
971
  props?: Record<string, unknown> | undefined;
972
+ mixedModeConnectionString?: MixedModeConnectionString_2 | undefined;
844
973
  }>, z.ZodObject<{
845
974
  network: z.ZodObject<{
846
975
  allow: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1007,14 +1136,17 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1007
1136
  name: z.ZodUnion<[z.ZodString, z.ZodLiteral<typeof kCurrentWorker>]>;
1008
1137
  entrypoint: z.ZodOptional<z.ZodString>;
1009
1138
  props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1139
+ mixedModeConnectionString: z.ZodOptional<z.ZodType<MixedModeConnectionString_2, z.ZodTypeDef, MixedModeConnectionString_2>>;
1010
1140
  }, "strip", z.ZodTypeAny, {
1011
1141
  name: string | typeof kCurrentWorker;
1012
1142
  entrypoint?: string | undefined;
1013
1143
  props?: Record<string, unknown> | undefined;
1144
+ mixedModeConnectionString?: MixedModeConnectionString_2 | undefined;
1014
1145
  }, {
1015
1146
  name: string | typeof kCurrentWorker;
1016
1147
  entrypoint?: string | undefined;
1017
1148
  props?: Record<string, unknown> | undefined;
1149
+ mixedModeConnectionString?: MixedModeConnectionString_2 | undefined;
1018
1150
  }>, z.ZodObject<{
1019
1151
  network: z.ZodObject<{
1020
1152
  allow: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1152,7 +1284,9 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1152
1284
  writable?: boolean | undefined;
1153
1285
  };
1154
1286
  }>, z.ZodType<(request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>, z.ZodTypeDef, (request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>>]>, "many">>;
1287
+ stripCfConnectingIp: z.ZodDefault<z.ZodBoolean>;
1155
1288
  }, "strip", z.ZodTypeAny, {
1289
+ stripCfConnectingIp: boolean;
1156
1290
  name?: string | undefined;
1157
1291
  rootPath?: undefined;
1158
1292
  compatibilityDate?: string | undefined;
@@ -1167,6 +1301,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1167
1301
  name: string | typeof kCurrentWorker;
1168
1302
  entrypoint?: string | undefined;
1169
1303
  props?: Record<string, unknown> | undefined;
1304
+ mixedModeConnectionString?: MixedModeConnectionString_2 | undefined;
1170
1305
  } | {
1171
1306
  network: {
1172
1307
  allow?: string[] | undefined;
@@ -1200,6 +1335,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1200
1335
  name: string | typeof kCurrentWorker;
1201
1336
  entrypoint?: string | undefined;
1202
1337
  props?: Record<string, unknown> | undefined;
1338
+ mixedModeConnectionString?: MixedModeConnectionString_2 | undefined;
1203
1339
  } | {
1204
1340
  network: {
1205
1341
  allow?: string[] | undefined;
@@ -1239,6 +1375,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1239
1375
  name: string | typeof kCurrentWorker;
1240
1376
  entrypoint?: string | undefined;
1241
1377
  props?: Record<string, unknown> | undefined;
1378
+ mixedModeConnectionString?: MixedModeConnectionString_2 | undefined;
1242
1379
  } | {
1243
1380
  network: {
1244
1381
  allow?: string[] | undefined;
@@ -1278,6 +1415,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1278
1415
  name: string | typeof kCurrentWorker;
1279
1416
  entrypoint?: string | undefined;
1280
1417
  props?: Record<string, unknown> | undefined;
1418
+ mixedModeConnectionString?: MixedModeConnectionString_2 | undefined;
1281
1419
  } | {
1282
1420
  network: {
1283
1421
  allow?: string[] | undefined;
@@ -1311,6 +1449,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1311
1449
  name: string | typeof kCurrentWorker;
1312
1450
  entrypoint?: string | undefined;
1313
1451
  props?: Record<string, unknown> | undefined;
1452
+ mixedModeConnectionString?: MixedModeConnectionString_2 | undefined;
1314
1453
  } | {
1315
1454
  network: {
1316
1455
  allow?: string[] | undefined;
@@ -1350,6 +1489,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1350
1489
  name: string | typeof kCurrentWorker;
1351
1490
  entrypoint?: string | undefined;
1352
1491
  props?: Record<string, unknown> | undefined;
1492
+ mixedModeConnectionString?: MixedModeConnectionString_2 | undefined;
1353
1493
  } | {
1354
1494
  network: {
1355
1495
  allow?: string[] | undefined;
@@ -1374,6 +1514,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1374
1514
  writable?: boolean | undefined;
1375
1515
  };
1376
1516
  } | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>))[] | undefined;
1517
+ stripCfConnectingIp?: boolean | undefined;
1377
1518
  }>>, ({
1378
1519
  modules: {
1379
1520
  type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
@@ -1382,6 +1523,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1382
1523
  }[];
1383
1524
  modulesRoot?: string | undefined;
1384
1525
  } & {
1526
+ stripCfConnectingIp: boolean;
1385
1527
  name?: string | undefined;
1386
1528
  rootPath?: undefined;
1387
1529
  compatibilityDate?: string | undefined;
@@ -1396,6 +1538,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1396
1538
  name: string | typeof kCurrentWorker;
1397
1539
  entrypoint?: string | undefined;
1398
1540
  props?: Record<string, unknown> | undefined;
1541
+ mixedModeConnectionString?: MixedModeConnectionString_2 | undefined;
1399
1542
  } | {
1400
1543
  network: {
1401
1544
  allow?: string[] | undefined;
@@ -1429,6 +1572,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1429
1572
  name: string | typeof kCurrentWorker;
1430
1573
  entrypoint?: string | undefined;
1431
1574
  props?: Record<string, unknown> | undefined;
1575
+ mixedModeConnectionString?: MixedModeConnectionString_2 | undefined;
1432
1576
  } | {
1433
1577
  network: {
1434
1578
  allow?: string[] | undefined;
@@ -1468,6 +1612,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1468
1612
  name: string | typeof kCurrentWorker;
1469
1613
  entrypoint?: string | undefined;
1470
1614
  props?: Record<string, unknown> | undefined;
1615
+ mixedModeConnectionString?: MixedModeConnectionString_2 | undefined;
1471
1616
  } | {
1472
1617
  network: {
1473
1618
  allow?: string[] | undefined;
@@ -1503,6 +1648,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1503
1648
  }[] | undefined;
1504
1649
  modulesRoot?: string | undefined;
1505
1650
  } & {
1651
+ stripCfConnectingIp: boolean;
1506
1652
  name?: string | undefined;
1507
1653
  rootPath?: undefined;
1508
1654
  compatibilityDate?: string | undefined;
@@ -1517,6 +1663,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1517
1663
  name: string | typeof kCurrentWorker;
1518
1664
  entrypoint?: string | undefined;
1519
1665
  props?: Record<string, unknown> | undefined;
1666
+ mixedModeConnectionString?: MixedModeConnectionString_2 | undefined;
1520
1667
  } | {
1521
1668
  network: {
1522
1669
  allow?: string[] | undefined;
@@ -1550,6 +1697,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1550
1697
  name: string | typeof kCurrentWorker;
1551
1698
  entrypoint?: string | undefined;
1552
1699
  props?: Record<string, unknown> | undefined;
1700
+ mixedModeConnectionString?: MixedModeConnectionString_2 | undefined;
1553
1701
  } | {
1554
1702
  network: {
1555
1703
  allow?: string[] | undefined;
@@ -1589,6 +1737,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1589
1737
  name: string | typeof kCurrentWorker;
1590
1738
  entrypoint?: string | undefined;
1591
1739
  props?: Record<string, unknown> | undefined;
1740
+ mixedModeConnectionString?: MixedModeConnectionString_2 | undefined;
1592
1741
  } | {
1593
1742
  network: {
1594
1743
  allow?: string[] | undefined;
@@ -1623,6 +1772,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1623
1772
  }[] | undefined;
1624
1773
  modulesRoot?: string | undefined;
1625
1774
  } & {
1775
+ stripCfConnectingIp: boolean;
1626
1776
  name?: string | undefined;
1627
1777
  rootPath?: undefined;
1628
1778
  compatibilityDate?: string | undefined;
@@ -1637,6 +1787,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1637
1787
  name: string | typeof kCurrentWorker;
1638
1788
  entrypoint?: string | undefined;
1639
1789
  props?: Record<string, unknown> | undefined;
1790
+ mixedModeConnectionString?: MixedModeConnectionString_2 | undefined;
1640
1791
  } | {
1641
1792
  network: {
1642
1793
  allow?: string[] | undefined;
@@ -1670,6 +1821,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1670
1821
  name: string | typeof kCurrentWorker;
1671
1822
  entrypoint?: string | undefined;
1672
1823
  props?: Record<string, unknown> | undefined;
1824
+ mixedModeConnectionString?: MixedModeConnectionString_2 | undefined;
1673
1825
  } | {
1674
1826
  network: {
1675
1827
  allow?: string[] | undefined;
@@ -1709,6 +1861,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1709
1861
  name: string | typeof kCurrentWorker;
1710
1862
  entrypoint?: string | undefined;
1711
1863
  props?: Record<string, unknown> | undefined;
1864
+ mixedModeConnectionString?: MixedModeConnectionString_2 | undefined;
1712
1865
  } | {
1713
1866
  network: {
1714
1867
  allow?: string[] | undefined;
@@ -1774,6 +1927,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1774
1927
  name: string | typeof kCurrentWorker;
1775
1928
  entrypoint?: string | undefined;
1776
1929
  props?: Record<string, unknown> | undefined;
1930
+ mixedModeConnectionString?: MixedModeConnectionString_2 | undefined;
1777
1931
  } | {
1778
1932
  network: {
1779
1933
  allow?: string[] | undefined;
@@ -1807,6 +1961,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1807
1961
  name: string | typeof kCurrentWorker;
1808
1962
  entrypoint?: string | undefined;
1809
1963
  props?: Record<string, unknown> | undefined;
1964
+ mixedModeConnectionString?: MixedModeConnectionString_2 | undefined;
1810
1965
  } | {
1811
1966
  network: {
1812
1967
  allow?: string[] | undefined;
@@ -1846,6 +2001,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1846
2001
  name: string | typeof kCurrentWorker;
1847
2002
  entrypoint?: string | undefined;
1848
2003
  props?: Record<string, unknown> | undefined;
2004
+ mixedModeConnectionString?: MixedModeConnectionString_2 | undefined;
1849
2005
  } | {
1850
2006
  network: {
1851
2007
  allow?: string[] | undefined;
@@ -1870,6 +2026,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1870
2026
  writable?: boolean | undefined;
1871
2027
  };
1872
2028
  } | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>))[] | undefined;
2029
+ stripCfConnectingIp?: boolean | undefined;
1873
2030
  }>;
1874
2031
 
1875
2032
  export declare const CoreSharedOptionsSchema: z.ZodObject<{
@@ -1950,11 +2107,26 @@ export declare const D1_PLUGIN: Plugin<typeof D1OptionsSchema, typeof D1SharedOp
1950
2107
  export declare const D1_PLUGIN_NAME = "d1";
1951
2108
 
1952
2109
  export declare const D1OptionsSchema: z.ZodObject<{
1953
- d1Databases: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodString, "many">]>>;
2110
+ d1Databases: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodRecord<z.ZodString, z.ZodObject<{
2111
+ id: z.ZodString;
2112
+ mixedModeConnectionString: z.ZodOptional<z.ZodType<MixedModeConnectionString, z.ZodTypeDef, MixedModeConnectionString>>;
2113
+ }, "strip", z.ZodTypeAny, {
2114
+ id: string;
2115
+ mixedModeConnectionString?: MixedModeConnectionString | undefined;
2116
+ }, {
2117
+ id: string;
2118
+ mixedModeConnectionString?: MixedModeConnectionString | undefined;
2119
+ }>>, z.ZodArray<z.ZodString, "many">]>>;
1954
2120
  }, "strip", z.ZodTypeAny, {
1955
- d1Databases?: string[] | Record<string, string> | undefined;
2121
+ d1Databases?: string[] | Record<string, string> | Record<string, {
2122
+ id: string;
2123
+ mixedModeConnectionString?: MixedModeConnectionString | undefined;
2124
+ }> | undefined;
1956
2125
  }, {
1957
- d1Databases?: string[] | Record<string, string> | undefined;
2126
+ d1Databases?: string[] | Record<string, string> | Record<string, {
2127
+ id: string;
2128
+ mixedModeConnectionString?: MixedModeConnectionString | undefined;
2129
+ }> | undefined;
1958
2130
  }>;
1959
2131
 
1960
2132
  export declare const D1SharedOptionsSchema: z.ZodObject<{
@@ -1989,6 +2161,10 @@ export declare interface DiskDirectory {
1989
2161
  allowDotfiles?: boolean;
1990
2162
  }
1991
2163
 
2164
+ export declare const DISPATCH_NAMESPACE_PLUGIN: Plugin<typeof DispatchNamespaceOptionsSchema>;
2165
+
2166
+ export declare const DISPATCH_NAMESPACE_PLUGIN_NAME = "dispatch-namespace";
2167
+
1992
2168
  export declare type DispatchFetch = (input: RequestInfo, init?: RequestInit_2<Partial<IncomingRequestCfProperties>>) => Promise<Response_2>;
1993
2169
 
1994
2170
  /**
@@ -2025,6 +2201,29 @@ export declare class DispatchFetchDispatcher extends undici.Dispatcher {
2025
2201
  get isMockActive(): boolean;
2026
2202
  }
2027
2203
 
2204
+ export declare const DispatchNamespaceOptionsSchema: z.ZodObject<{
2205
+ dispatchNamespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2206
+ namespace: z.ZodString;
2207
+ mixedModeConnectionString: z.ZodOptional<z.ZodType<MixedModeConnectionString, z.ZodTypeDef, MixedModeConnectionString>>;
2208
+ }, "strip", z.ZodTypeAny, {
2209
+ namespace: string;
2210
+ mixedModeConnectionString?: MixedModeConnectionString | undefined;
2211
+ }, {
2212
+ namespace: string;
2213
+ mixedModeConnectionString?: MixedModeConnectionString | undefined;
2214
+ }>>>;
2215
+ }, "strip", z.ZodTypeAny, {
2216
+ dispatchNamespaces?: Record<string, {
2217
+ namespace: string;
2218
+ mixedModeConnectionString?: MixedModeConnectionString | undefined;
2219
+ }> | undefined;
2220
+ }, {
2221
+ dispatchNamespaces?: Record<string, {
2222
+ namespace: string;
2223
+ mixedModeConnectionString?: MixedModeConnectionString | undefined;
2224
+ }> | undefined;
2225
+ }>;
2226
+
2028
2227
  export declare const DURABLE_OBJECTS_PLUGIN: Plugin<typeof DurableObjectsOptionsSchema, typeof DurableObjectsSharedOptionsSchema>;
2029
2228
 
2030
2229
  export declare const DURABLE_OBJECTS_PLUGIN_NAME = "do";
@@ -2044,18 +2243,21 @@ export declare const DurableObjectsOptionsSchema: z.ZodObject<{
2044
2243
  useSQLite: z.ZodOptional<z.ZodBoolean>;
2045
2244
  unsafeUniqueKey: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<typeof kUnsafeEphemeralUniqueKey>]>>;
2046
2245
  unsafePreventEviction: z.ZodOptional<z.ZodBoolean>;
2246
+ mixedModeConnectionString: z.ZodOptional<z.ZodType<MixedModeConnectionString, z.ZodTypeDef, MixedModeConnectionString>>;
2047
2247
  }, "strip", z.ZodTypeAny, {
2048
2248
  className: string;
2049
2249
  scriptName?: string | undefined;
2050
2250
  useSQLite?: boolean | undefined;
2051
2251
  unsafeUniqueKey?: string | typeof kUnsafeEphemeralUniqueKey | undefined;
2052
2252
  unsafePreventEviction?: boolean | undefined;
2253
+ mixedModeConnectionString?: MixedModeConnectionString | undefined;
2053
2254
  }, {
2054
2255
  className: string;
2055
2256
  scriptName?: string | undefined;
2056
2257
  useSQLite?: boolean | undefined;
2057
2258
  unsafeUniqueKey?: string | typeof kUnsafeEphemeralUniqueKey | undefined;
2058
2259
  unsafePreventEviction?: boolean | undefined;
2260
+ mixedModeConnectionString?: MixedModeConnectionString | undefined;
2059
2261
  }>]>>>;
2060
2262
  }, "strip", z.ZodTypeAny, {
2061
2263
  durableObjects?: Record<string, string | {
@@ -2064,6 +2266,7 @@ export declare const DurableObjectsOptionsSchema: z.ZodObject<{
2064
2266
  useSQLite?: boolean | undefined;
2065
2267
  unsafeUniqueKey?: string | typeof kUnsafeEphemeralUniqueKey | undefined;
2066
2268
  unsafePreventEviction?: boolean | undefined;
2269
+ mixedModeConnectionString?: MixedModeConnectionString | undefined;
2067
2270
  }> | undefined;
2068
2271
  }, {
2069
2272
  durableObjects?: Record<string, string | {
@@ -2072,6 +2275,7 @@ export declare const DurableObjectsOptionsSchema: z.ZodObject<{
2072
2275
  useSQLite?: boolean | undefined;
2073
2276
  unsafeUniqueKey?: string | typeof kUnsafeEphemeralUniqueKey | undefined;
2074
2277
  unsafePreventEviction?: boolean | undefined;
2278
+ mixedModeConnectionString?: MixedModeConnectionString | undefined;
2075
2279
  }> | undefined;
2076
2280
  }>;
2077
2281
 
@@ -2314,6 +2518,33 @@ export declare const HyperdriveInputOptionsSchema: z.ZodObject<{
2314
2518
 
2315
2519
  export declare const HyperdriveSchema: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodType<URL_2, z.ZodTypeDef, URL_2>]>, URL_2, string | URL_2>;
2316
2520
 
2521
+ export declare const IMAGES_PLUGIN: Plugin<typeof ImagesOptionsSchema>;
2522
+
2523
+ export declare const IMAGES_PLUGIN_NAME = "images";
2524
+
2525
+ export declare const ImagesOptionsSchema: z.ZodObject<{
2526
+ images: z.ZodOptional<z.ZodObject<{
2527
+ binding: z.ZodString;
2528
+ mixedModeConnectionString: z.ZodOptional<z.ZodType<MixedModeConnectionString, z.ZodTypeDef, MixedModeConnectionString>>;
2529
+ }, "strip", z.ZodTypeAny, {
2530
+ binding: string;
2531
+ mixedModeConnectionString?: MixedModeConnectionString | undefined;
2532
+ }, {
2533
+ binding: string;
2534
+ mixedModeConnectionString?: MixedModeConnectionString | undefined;
2535
+ }>>;
2536
+ }, "strip", z.ZodTypeAny, {
2537
+ images?: {
2538
+ binding: string;
2539
+ mixedModeConnectionString?: MixedModeConnectionString | undefined;
2540
+ } | undefined;
2541
+ }, {
2542
+ images?: {
2543
+ binding: string;
2544
+ mixedModeConnectionString?: MixedModeConnectionString | undefined;
2545
+ } | undefined;
2546
+ }>;
2547
+
2317
2548
  export declare interface InclusiveRange {
2318
2549
  start: number;
2319
2550
  end: number;
@@ -2368,6 +2599,8 @@ declare const kSend: unique symbol;
2368
2599
 
2369
2600
  export declare const kUnsafeEphemeralUniqueKey: unique symbol;
2370
2601
 
2602
+ export declare const KV_NAMESPACE_OBJECT_CLASS_NAME = "KVNamespaceObject";
2603
+
2371
2604
  export declare const KV_PLUGIN: Plugin<typeof KVOptionsSchema, typeof KVSharedOptionsSchema>;
2372
2605
 
2373
2606
  export declare const KV_PLUGIN_NAME = "kv";
@@ -2390,17 +2623,32 @@ export declare const KVLimits: {
2390
2623
  export declare const kVoid: unique symbol;
2391
2624
 
2392
2625
  export declare const KVOptionsSchema: z.ZodObject<{
2393
- kvNamespaces: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodString, "many">]>>;
2626
+ kvNamespaces: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodRecord<z.ZodString, z.ZodObject<{
2627
+ id: z.ZodString;
2628
+ mixedModeConnectionString: z.ZodOptional<z.ZodType<MixedModeConnectionString, z.ZodTypeDef, MixedModeConnectionString>>;
2629
+ }, "strip", z.ZodTypeAny, {
2630
+ id: string;
2631
+ mixedModeConnectionString?: MixedModeConnectionString | undefined;
2632
+ }, {
2633
+ id: string;
2634
+ mixedModeConnectionString?: MixedModeConnectionString | undefined;
2635
+ }>>, z.ZodArray<z.ZodString, "many">]>>;
2394
2636
  sitePath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2395
2637
  siteInclude: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2396
2638
  siteExclude: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2397
2639
  }, "strip", z.ZodTypeAny, {
2398
- kvNamespaces?: string[] | Record<string, string> | undefined;
2640
+ kvNamespaces?: string[] | Record<string, string> | Record<string, {
2641
+ id: string;
2642
+ mixedModeConnectionString?: MixedModeConnectionString | undefined;
2643
+ }> | undefined;
2399
2644
  sitePath?: string | undefined;
2400
2645
  siteInclude?: string[] | undefined;
2401
2646
  siteExclude?: string[] | undefined;
2402
2647
  }, {
2403
- kvNamespaces?: string[] | Record<string, string> | undefined;
2648
+ kvNamespaces?: string[] | Record<string, string> | Record<string, {
2649
+ id: string;
2650
+ mixedModeConnectionString?: MixedModeConnectionString | undefined;
2651
+ }> | undefined;
2404
2652
  sitePath?: string | undefined;
2405
2653
  siteInclude?: string[] | undefined;
2406
2654
  siteExclude?: string[] | undefined;
@@ -2543,6 +2791,22 @@ export declare type MiniflareOptions = SharedOptions & (WorkerOptions | {
2543
2791
  workers: WorkerOptions[];
2544
2792
  });
2545
2793
 
2794
+ export declare function mixedModeClientWorker(mixedModeConnectionString: MixedModeConnectionString, binding: string): {
2795
+ compatibilityDate: string;
2796
+ modules: {
2797
+ name: string;
2798
+ esModule: string;
2799
+ }[];
2800
+ bindings: {
2801
+ name: string;
2802
+ text: string;
2803
+ }[];
2804
+ };
2805
+
2806
+ export declare type MixedModeConnectionString = URL & {
2807
+ __brand: "MixedModeConnectionString";
2808
+ };
2809
+
2546
2810
  export declare type ModuleDefinition = z.infer<typeof ModuleDefinitionSchema>;
2547
2811
 
2548
2812
  export declare const ModuleDefinitionSchema: z.ZodObject<{
@@ -2590,9 +2854,20 @@ export declare class Mutex {
2590
2854
  drained(): Promise<void>;
2591
2855
  }
2592
2856
 
2593
- export declare function namespaceEntries(namespaces?: Record<string, string> | string[]): [bindingName: string, id: string][];
2857
+ export declare function namespaceEntries(namespaces?: Record<string, string | {
2858
+ id: string;
2859
+ mixedModeConnectionString?: MixedModeConnectionString;
2860
+ }> | string[]): [
2861
+ bindingName: string,
2862
+ {
2863
+ id: string;
2864
+ mixedModeConnectionString?: MixedModeConnectionString;
2865
+ }
2866
+ ][];
2594
2867
 
2595
- export declare function namespaceKeys(namespaces?: Record<string, string> | string[]): string[];
2868
+ export declare function namespaceKeys(namespaces?: Record<string, string | {
2869
+ id: string;
2870
+ }> | string[]): string[];
2596
2871
 
2597
2872
  export declare interface Network {
2598
2873
  allow?: string[];
@@ -2960,14 +3235,17 @@ export declare const PLUGINS: {
2960
3235
  name: z.ZodUnion<[z.ZodString, z.ZodLiteral<kCurrentWorker_2>]>;
2961
3236
  entrypoint: z.ZodOptional<z.ZodString>;
2962
3237
  props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3238
+ mixedModeConnectionString: z.ZodOptional<z.ZodType<MixedModeConnectionString_3, z.ZodTypeDef, MixedModeConnectionString_3>>;
2963
3239
  }, "strip", z.ZodTypeAny, {
2964
3240
  name: string | kCurrentWorker_2;
2965
3241
  entrypoint?: string | undefined;
2966
3242
  props?: Record<string, unknown> | undefined;
3243
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
2967
3244
  }, {
2968
3245
  name: string | kCurrentWorker_2;
2969
3246
  entrypoint?: string | undefined;
2970
3247
  props?: Record<string, unknown> | undefined;
3248
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
2971
3249
  }>, z.ZodObject<{
2972
3250
  network: z.ZodObject<{
2973
3251
  allow: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -3122,14 +3400,17 @@ export declare const PLUGINS: {
3122
3400
  name: z.ZodUnion<[z.ZodString, z.ZodLiteral<kCurrentWorker_2>]>;
3123
3401
  entrypoint: z.ZodOptional<z.ZodString>;
3124
3402
  props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3403
+ mixedModeConnectionString: z.ZodOptional<z.ZodType<MixedModeConnectionString_3, z.ZodTypeDef, MixedModeConnectionString_3>>;
3125
3404
  }, "strip", z.ZodTypeAny, {
3126
3405
  name: string | kCurrentWorker_2;
3127
3406
  entrypoint?: string | undefined;
3128
3407
  props?: Record<string, unknown> | undefined;
3408
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
3129
3409
  }, {
3130
3410
  name: string | kCurrentWorker_2;
3131
3411
  entrypoint?: string | undefined;
3132
3412
  props?: Record<string, unknown> | undefined;
3413
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
3133
3414
  }>, z.ZodObject<{
3134
3415
  network: z.ZodObject<{
3135
3416
  allow: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -3292,14 +3573,17 @@ export declare const PLUGINS: {
3292
3573
  name: z.ZodUnion<[z.ZodString, z.ZodLiteral<kCurrentWorker_2>]>;
3293
3574
  entrypoint: z.ZodOptional<z.ZodString>;
3294
3575
  props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3576
+ mixedModeConnectionString: z.ZodOptional<z.ZodType<MixedModeConnectionString_3, z.ZodTypeDef, MixedModeConnectionString_3>>;
3295
3577
  }, "strip", z.ZodTypeAny, {
3296
3578
  name: string | kCurrentWorker_2;
3297
3579
  entrypoint?: string | undefined;
3298
3580
  props?: Record<string, unknown> | undefined;
3581
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
3299
3582
  }, {
3300
3583
  name: string | kCurrentWorker_2;
3301
3584
  entrypoint?: string | undefined;
3302
3585
  props?: Record<string, unknown> | undefined;
3586
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
3303
3587
  }>, z.ZodObject<{
3304
3588
  network: z.ZodObject<{
3305
3589
  allow: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -3437,7 +3721,9 @@ export declare const PLUGINS: {
3437
3721
  writable?: boolean | undefined;
3438
3722
  };
3439
3723
  }>, z.ZodType<(request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>, z.ZodTypeDef, (request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>>]>, "many">>;
3724
+ stripCfConnectingIp: z.ZodDefault<z.ZodBoolean>;
3440
3725
  }, "strip", z.ZodTypeAny, {
3726
+ stripCfConnectingIp: boolean;
3441
3727
  name?: string | undefined;
3442
3728
  rootPath?: undefined;
3443
3729
  compatibilityDate?: string | undefined;
@@ -3452,6 +3738,7 @@ export declare const PLUGINS: {
3452
3738
  name: string | kCurrentWorker_2;
3453
3739
  entrypoint?: string | undefined;
3454
3740
  props?: Record<string, unknown> | undefined;
3741
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
3455
3742
  } | {
3456
3743
  network: {
3457
3744
  allow?: string[] | undefined;
@@ -3485,6 +3772,7 @@ export declare const PLUGINS: {
3485
3772
  name: string | kCurrentWorker_2;
3486
3773
  entrypoint?: string | undefined;
3487
3774
  props?: Record<string, unknown> | undefined;
3775
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
3488
3776
  } | {
3489
3777
  network: {
3490
3778
  allow?: string[] | undefined;
@@ -3524,6 +3812,7 @@ export declare const PLUGINS: {
3524
3812
  name: string | kCurrentWorker_2;
3525
3813
  entrypoint?: string | undefined;
3526
3814
  props?: Record<string, unknown> | undefined;
3815
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
3527
3816
  } | {
3528
3817
  network: {
3529
3818
  allow?: string[] | undefined;
@@ -3563,6 +3852,7 @@ export declare const PLUGINS: {
3563
3852
  name: string | kCurrentWorker_2;
3564
3853
  entrypoint?: string | undefined;
3565
3854
  props?: Record<string, unknown> | undefined;
3855
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
3566
3856
  } | {
3567
3857
  network: {
3568
3858
  allow?: string[] | undefined;
@@ -3596,6 +3886,7 @@ export declare const PLUGINS: {
3596
3886
  name: string | kCurrentWorker_2;
3597
3887
  entrypoint?: string | undefined;
3598
3888
  props?: Record<string, unknown> | undefined;
3889
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
3599
3890
  } | {
3600
3891
  network: {
3601
3892
  allow?: string[] | undefined;
@@ -3635,6 +3926,7 @@ export declare const PLUGINS: {
3635
3926
  name: string | kCurrentWorker_2;
3636
3927
  entrypoint?: string | undefined;
3637
3928
  props?: Record<string, unknown> | undefined;
3929
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
3638
3930
  } | {
3639
3931
  network: {
3640
3932
  allow?: string[] | undefined;
@@ -3659,6 +3951,7 @@ export declare const PLUGINS: {
3659
3951
  writable?: boolean | undefined;
3660
3952
  };
3661
3953
  } | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>))[] | undefined;
3954
+ stripCfConnectingIp?: boolean | undefined;
3662
3955
  }>>, ({
3663
3956
  modules: {
3664
3957
  type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
@@ -3667,6 +3960,7 @@ export declare const PLUGINS: {
3667
3960
  }[];
3668
3961
  modulesRoot?: string | undefined;
3669
3962
  } & {
3963
+ stripCfConnectingIp: boolean;
3670
3964
  name?: string | undefined;
3671
3965
  rootPath?: undefined;
3672
3966
  compatibilityDate?: string | undefined;
@@ -3681,6 +3975,7 @@ export declare const PLUGINS: {
3681
3975
  name: string | kCurrentWorker_2;
3682
3976
  entrypoint?: string | undefined;
3683
3977
  props?: Record<string, unknown> | undefined;
3978
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
3684
3979
  } | {
3685
3980
  network: {
3686
3981
  allow?: string[] | undefined;
@@ -3714,6 +4009,7 @@ export declare const PLUGINS: {
3714
4009
  name: string | kCurrentWorker_2;
3715
4010
  entrypoint?: string | undefined;
3716
4011
  props?: Record<string, unknown> | undefined;
4012
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
3717
4013
  } | {
3718
4014
  network: {
3719
4015
  allow?: string[] | undefined;
@@ -3753,6 +4049,7 @@ export declare const PLUGINS: {
3753
4049
  name: string | kCurrentWorker_2;
3754
4050
  entrypoint?: string | undefined;
3755
4051
  props?: Record<string, unknown> | undefined;
4052
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
3756
4053
  } | {
3757
4054
  network: {
3758
4055
  allow?: string[] | undefined;
@@ -3788,6 +4085,7 @@ export declare const PLUGINS: {
3788
4085
  }[] | undefined;
3789
4086
  modulesRoot?: string | undefined;
3790
4087
  } & {
4088
+ stripCfConnectingIp: boolean;
3791
4089
  name?: string | undefined;
3792
4090
  rootPath?: undefined;
3793
4091
  compatibilityDate?: string | undefined;
@@ -3802,6 +4100,7 @@ export declare const PLUGINS: {
3802
4100
  name: string | kCurrentWorker_2;
3803
4101
  entrypoint?: string | undefined;
3804
4102
  props?: Record<string, unknown> | undefined;
4103
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
3805
4104
  } | {
3806
4105
  network: {
3807
4106
  allow?: string[] | undefined;
@@ -3835,6 +4134,7 @@ export declare const PLUGINS: {
3835
4134
  name: string | kCurrentWorker_2;
3836
4135
  entrypoint?: string | undefined;
3837
4136
  props?: Record<string, unknown> | undefined;
4137
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
3838
4138
  } | {
3839
4139
  network: {
3840
4140
  allow?: string[] | undefined;
@@ -3874,6 +4174,7 @@ export declare const PLUGINS: {
3874
4174
  name: string | kCurrentWorker_2;
3875
4175
  entrypoint?: string | undefined;
3876
4176
  props?: Record<string, unknown> | undefined;
4177
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
3877
4178
  } | {
3878
4179
  network: {
3879
4180
  allow?: string[] | undefined;
@@ -3908,6 +4209,7 @@ export declare const PLUGINS: {
3908
4209
  }[] | undefined;
3909
4210
  modulesRoot?: string | undefined;
3910
4211
  } & {
4212
+ stripCfConnectingIp: boolean;
3911
4213
  name?: string | undefined;
3912
4214
  rootPath?: undefined;
3913
4215
  compatibilityDate?: string | undefined;
@@ -3922,6 +4224,7 @@ export declare const PLUGINS: {
3922
4224
  name: string | kCurrentWorker_2;
3923
4225
  entrypoint?: string | undefined;
3924
4226
  props?: Record<string, unknown> | undefined;
4227
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
3925
4228
  } | {
3926
4229
  network: {
3927
4230
  allow?: string[] | undefined;
@@ -3955,6 +4258,7 @@ export declare const PLUGINS: {
3955
4258
  name: string | kCurrentWorker_2;
3956
4259
  entrypoint?: string | undefined;
3957
4260
  props?: Record<string, unknown> | undefined;
4261
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
3958
4262
  } | {
3959
4263
  network: {
3960
4264
  allow?: string[] | undefined;
@@ -3994,6 +4298,7 @@ export declare const PLUGINS: {
3994
4298
  name: string | kCurrentWorker_2;
3995
4299
  entrypoint?: string | undefined;
3996
4300
  props?: Record<string, unknown> | undefined;
4301
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
3997
4302
  } | {
3998
4303
  network: {
3999
4304
  allow?: string[] | undefined;
@@ -4059,6 +4364,7 @@ export declare const PLUGINS: {
4059
4364
  name: string | kCurrentWorker_2;
4060
4365
  entrypoint?: string | undefined;
4061
4366
  props?: Record<string, unknown> | undefined;
4367
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
4062
4368
  } | {
4063
4369
  network: {
4064
4370
  allow?: string[] | undefined;
@@ -4092,6 +4398,7 @@ export declare const PLUGINS: {
4092
4398
  name: string | kCurrentWorker_2;
4093
4399
  entrypoint?: string | undefined;
4094
4400
  props?: Record<string, unknown> | undefined;
4401
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
4095
4402
  } | {
4096
4403
  network: {
4097
4404
  allow?: string[] | undefined;
@@ -4131,6 +4438,7 @@ export declare const PLUGINS: {
4131
4438
  name: string | kCurrentWorker_2;
4132
4439
  entrypoint?: string | undefined;
4133
4440
  props?: Record<string, unknown> | undefined;
4441
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
4134
4442
  } | {
4135
4443
  network: {
4136
4444
  allow?: string[] | undefined;
@@ -4155,6 +4463,7 @@ export declare const PLUGINS: {
4155
4463
  writable?: boolean | undefined;
4156
4464
  };
4157
4465
  } | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>))[] | undefined;
4466
+ stripCfConnectingIp?: boolean | undefined;
4158
4467
  }>, z.ZodObject<{
4159
4468
  rootPath: z.ZodOptional<z.ZodEffects<z.ZodString, undefined, string>>;
4160
4469
  host: z.ZodOptional<z.ZodString>;
@@ -4236,11 +4545,26 @@ export declare const PLUGINS: {
4236
4545
  cachePersist?: string | boolean | undefined;
4237
4546
  }>>;
4238
4547
  d1: Plugin_2<z.ZodObject<{
4239
- d1Databases: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodString, "many">]>>;
4548
+ d1Databases: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodRecord<z.ZodString, z.ZodObject<{
4549
+ id: z.ZodString;
4550
+ mixedModeConnectionString: z.ZodOptional<z.ZodType<MixedModeConnectionString_3, z.ZodTypeDef, MixedModeConnectionString_3>>;
4551
+ }, "strip", z.ZodTypeAny, {
4552
+ id: string;
4553
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
4554
+ }, {
4555
+ id: string;
4556
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
4557
+ }>>, z.ZodArray<z.ZodString, "many">]>>;
4240
4558
  }, "strip", z.ZodTypeAny, {
4241
- d1Databases?: string[] | Record<string, string> | undefined;
4559
+ d1Databases?: string[] | Record<string, string> | Record<string, {
4560
+ id: string;
4561
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
4562
+ }> | undefined;
4242
4563
  }, {
4243
- d1Databases?: string[] | Record<string, string> | undefined;
4564
+ d1Databases?: string[] | Record<string, string> | Record<string, {
4565
+ id: string;
4566
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
4567
+ }> | undefined;
4244
4568
  }>, z.ZodObject<{
4245
4569
  d1Persist: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
4246
4570
  }, "strip", z.ZodTypeAny, {
@@ -4255,18 +4579,21 @@ export declare const PLUGINS: {
4255
4579
  useSQLite: z.ZodOptional<z.ZodBoolean>;
4256
4580
  unsafeUniqueKey: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<kUnsafeEphemeralUniqueKey_2>]>>;
4257
4581
  unsafePreventEviction: z.ZodOptional<z.ZodBoolean>;
4582
+ mixedModeConnectionString: z.ZodOptional<z.ZodType<MixedModeConnectionString_3, z.ZodTypeDef, MixedModeConnectionString_3>>;
4258
4583
  }, "strip", z.ZodTypeAny, {
4259
4584
  className: string;
4260
4585
  scriptName?: string | undefined;
4261
4586
  useSQLite?: boolean | undefined;
4262
4587
  unsafeUniqueKey?: string | kUnsafeEphemeralUniqueKey_2 | undefined;
4263
4588
  unsafePreventEviction?: boolean | undefined;
4589
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
4264
4590
  }, {
4265
4591
  className: string;
4266
4592
  scriptName?: string | undefined;
4267
4593
  useSQLite?: boolean | undefined;
4268
4594
  unsafeUniqueKey?: string | kUnsafeEphemeralUniqueKey_2 | undefined;
4269
4595
  unsafePreventEviction?: boolean | undefined;
4596
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
4270
4597
  }>]>>>;
4271
4598
  }, "strip", z.ZodTypeAny, {
4272
4599
  durableObjects?: Record<string, string | {
@@ -4275,6 +4602,7 @@ export declare const PLUGINS: {
4275
4602
  useSQLite?: boolean | undefined;
4276
4603
  unsafeUniqueKey?: string | kUnsafeEphemeralUniqueKey_2 | undefined;
4277
4604
  unsafePreventEviction?: boolean | undefined;
4605
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
4278
4606
  }> | undefined;
4279
4607
  }, {
4280
4608
  durableObjects?: Record<string, string | {
@@ -4283,6 +4611,7 @@ export declare const PLUGINS: {
4283
4611
  useSQLite?: boolean | undefined;
4284
4612
  unsafeUniqueKey?: string | kUnsafeEphemeralUniqueKey_2 | undefined;
4285
4613
  unsafePreventEviction?: boolean | undefined;
4614
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
4286
4615
  }> | undefined;
4287
4616
  }>, z.ZodObject<{
4288
4617
  durableObjectsPersist: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
@@ -4292,17 +4621,32 @@ export declare const PLUGINS: {
4292
4621
  durableObjectsPersist?: string | boolean | undefined;
4293
4622
  }>>;
4294
4623
  kv: Plugin_2<z.ZodObject<{
4295
- kvNamespaces: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodString, "many">]>>;
4624
+ kvNamespaces: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodRecord<z.ZodString, z.ZodObject<{
4625
+ id: z.ZodString;
4626
+ mixedModeConnectionString: z.ZodOptional<z.ZodType<MixedModeConnectionString_3, z.ZodTypeDef, MixedModeConnectionString_3>>;
4627
+ }, "strip", z.ZodTypeAny, {
4628
+ id: string;
4629
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
4630
+ }, {
4631
+ id: string;
4632
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
4633
+ }>>, z.ZodArray<z.ZodString, "many">]>>;
4296
4634
  sitePath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
4297
4635
  siteInclude: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4298
4636
  siteExclude: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4299
4637
  }, "strip", z.ZodTypeAny, {
4300
- kvNamespaces?: string[] | Record<string, string> | undefined;
4638
+ kvNamespaces?: string[] | Record<string, string> | Record<string, {
4639
+ id: string;
4640
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
4641
+ }> | undefined;
4301
4642
  sitePath?: string | undefined;
4302
4643
  siteInclude?: string[] | undefined;
4303
4644
  siteExclude?: string[] | undefined;
4304
4645
  }, {
4305
- kvNamespaces?: string[] | Record<string, string> | undefined;
4646
+ kvNamespaces?: string[] | Record<string, string> | Record<string, {
4647
+ id: string;
4648
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
4649
+ }> | undefined;
4306
4650
  sitePath?: string | undefined;
4307
4651
  siteInclude?: string[] | undefined;
4308
4652
  siteExclude?: string[] | undefined;
@@ -4317,12 +4661,15 @@ export declare const PLUGINS: {
4317
4661
  queueProducers: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodObject<{
4318
4662
  queueName: z.ZodString;
4319
4663
  deliveryDelay: z.ZodOptional<z.ZodNumber>;
4664
+ mixedModeConnectionString: z.ZodOptional<z.ZodType<MixedModeConnectionString_3, z.ZodTypeDef, MixedModeConnectionString_3>>;
4320
4665
  }, "strip", z.ZodTypeAny, {
4321
4666
  queueName: string;
4322
4667
  deliveryDelay?: number | undefined;
4668
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
4323
4669
  }, {
4324
4670
  queueName: string;
4325
4671
  deliveryDelay?: number | undefined;
4672
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
4326
4673
  }>>, z.ZodArray<z.ZodString, "many">, z.ZodRecord<z.ZodString, z.ZodString>]>>;
4327
4674
  queueConsumers: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
4328
4675
  maxBatchSize: z.ZodOptional<z.ZodNumber>;
@@ -4364,6 +4711,7 @@ export declare const PLUGINS: {
4364
4711
  queueProducers?: string[] | Record<string, string> | Record<string, {
4365
4712
  queueName: string;
4366
4713
  deliveryDelay?: number | undefined;
4714
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
4367
4715
  }> | undefined;
4368
4716
  queueConsumers?: string[] | Record<string, Omit<{
4369
4717
  maxBatchSize?: number | undefined;
@@ -4377,6 +4725,7 @@ export declare const PLUGINS: {
4377
4725
  queueProducers?: string[] | Record<string, string> | Record<string, {
4378
4726
  queueName: string;
4379
4727
  deliveryDelay?: number | undefined;
4728
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
4380
4729
  }> | undefined;
4381
4730
  queueConsumers?: string[] | Record<string, {
4382
4731
  maxBatchSize?: number | undefined;
@@ -4388,11 +4737,26 @@ export declare const PLUGINS: {
4388
4737
  }> | undefined;
4389
4738
  }>>;
4390
4739
  r2: Plugin_2<z.ZodObject<{
4391
- r2Buckets: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodString, "many">]>>;
4740
+ r2Buckets: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodRecord<z.ZodString, z.ZodObject<{
4741
+ id: z.ZodString;
4742
+ mixedModeConnectionString: z.ZodOptional<z.ZodType<MixedModeConnectionString_3, z.ZodTypeDef, MixedModeConnectionString_3>>;
4392
4743
  }, "strip", z.ZodTypeAny, {
4393
- r2Buckets?: string[] | Record<string, string> | undefined;
4744
+ id: string;
4745
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
4394
4746
  }, {
4395
- r2Buckets?: string[] | Record<string, string> | undefined;
4747
+ id: string;
4748
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
4749
+ }>>, z.ZodArray<z.ZodString, "many">]>>;
4750
+ }, "strip", z.ZodTypeAny, {
4751
+ r2Buckets?: string[] | Record<string, string> | Record<string, {
4752
+ id: string;
4753
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
4754
+ }> | undefined;
4755
+ }, {
4756
+ r2Buckets?: string[] | Record<string, string> | Record<string, {
4757
+ id: string;
4758
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
4759
+ }> | undefined;
4396
4760
  }>, z.ZodObject<{
4397
4761
  r2Persist: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
4398
4762
  }, "strip", z.ZodTypeAny, {
@@ -4455,18 +4819,41 @@ export declare const PLUGINS: {
4455
4819
  script_id: z.ZodOptional<z.ZodNumber>;
4456
4820
  debug: z.ZodOptional<z.ZodBoolean>;
4457
4821
  invoke_user_worker_ahead_of_assets: z.ZodOptional<z.ZodBoolean>;
4822
+ static_routing: z.ZodOptional<z.ZodObject<{
4823
+ version: z.ZodLiteral<1>;
4824
+ include: z.ZodArray<z.ZodString, "many">;
4825
+ exclude: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4826
+ }, "strip", z.ZodTypeAny, {
4827
+ version?: 1;
4828
+ include?: string[];
4829
+ exclude?: string[];
4830
+ }, {
4831
+ version?: 1;
4832
+ include?: string[];
4833
+ exclude?: string[];
4834
+ }>>;
4458
4835
  has_user_worker: z.ZodOptional<z.ZodBoolean>;
4459
4836
  }, "strip", z.ZodTypeAny, {
4460
4837
  account_id?: number;
4461
4838
  script_id?: number;
4462
4839
  debug?: boolean;
4463
4840
  invoke_user_worker_ahead_of_assets?: boolean;
4841
+ static_routing?: {
4842
+ version?: 1;
4843
+ include?: string[];
4844
+ exclude?: string[];
4845
+ };
4464
4846
  has_user_worker?: boolean;
4465
4847
  }, {
4466
4848
  account_id?: number;
4467
4849
  script_id?: number;
4468
4850
  debug?: boolean;
4469
4851
  invoke_user_worker_ahead_of_assets?: boolean;
4852
+ static_routing?: {
4853
+ version?: 1;
4854
+ include?: string[];
4855
+ exclude?: string[];
4856
+ };
4470
4857
  has_user_worker?: boolean;
4471
4858
  }>>;
4472
4859
  assetConfig: z.ZodOptional<z.ZodObject<Omit<{
@@ -4550,6 +4937,7 @@ export declare const PLUGINS: {
4550
4937
  unset?: string[];
4551
4938
  }>;
4552
4939
  }>>;
4940
+ has_static_routing: z.ZodOptional<z.ZodBoolean>;
4553
4941
  }, "compatibility_date" | "compatibility_flags">, "strip", z.ZodTypeAny, {
4554
4942
  headers?: {
4555
4943
  version?: 2;
@@ -4575,6 +4963,7 @@ export declare const PLUGINS: {
4575
4963
  to?: string;
4576
4964
  }>;
4577
4965
  } | undefined;
4966
+ has_static_routing?: boolean | undefined;
4578
4967
  }, {
4579
4968
  headers?: {
4580
4969
  version?: 2;
@@ -4600,6 +4989,7 @@ export declare const PLUGINS: {
4600
4989
  to?: string;
4601
4990
  }>;
4602
4991
  } | undefined;
4992
+ has_static_routing?: boolean | undefined;
4603
4993
  }>>;
4604
4994
  }, "strip", z.ZodTypeAny, {
4605
4995
  directory: string;
@@ -4610,6 +5000,11 @@ export declare const PLUGINS: {
4610
5000
  script_id?: number;
4611
5001
  debug?: boolean;
4612
5002
  invoke_user_worker_ahead_of_assets?: boolean;
5003
+ static_routing?: {
5004
+ version?: 1;
5005
+ include?: string[];
5006
+ exclude?: string[];
5007
+ };
4613
5008
  has_user_worker?: boolean;
4614
5009
  } | undefined;
4615
5010
  assetConfig?: {
@@ -4637,6 +5032,7 @@ export declare const PLUGINS: {
4637
5032
  to?: string;
4638
5033
  }>;
4639
5034
  } | undefined;
5035
+ has_static_routing?: boolean | undefined;
4640
5036
  } | undefined;
4641
5037
  }, {
4642
5038
  directory: string;
@@ -4647,6 +5043,11 @@ export declare const PLUGINS: {
4647
5043
  script_id?: number;
4648
5044
  debug?: boolean;
4649
5045
  invoke_user_worker_ahead_of_assets?: boolean;
5046
+ static_routing?: {
5047
+ version?: 1;
5048
+ include?: string[];
5049
+ exclude?: string[];
5050
+ };
4650
5051
  has_user_worker?: boolean;
4651
5052
  } | undefined;
4652
5053
  assetConfig?: {
@@ -4674,6 +5075,7 @@ export declare const PLUGINS: {
4674
5075
  to?: string;
4675
5076
  }>;
4676
5077
  } | undefined;
5078
+ has_static_routing?: boolean | undefined;
4677
5079
  } | undefined;
4678
5080
  }>>;
4679
5081
  compatibilityDate: z.ZodOptional<z.ZodString>;
@@ -4688,6 +5090,11 @@ export declare const PLUGINS: {
4688
5090
  script_id?: number;
4689
5091
  debug?: boolean;
4690
5092
  invoke_user_worker_ahead_of_assets?: boolean;
5093
+ static_routing?: {
5094
+ version?: 1;
5095
+ include?: string[];
5096
+ exclude?: string[];
5097
+ };
4691
5098
  has_user_worker?: boolean;
4692
5099
  } | undefined;
4693
5100
  assetConfig?: {
@@ -4715,6 +5122,7 @@ export declare const PLUGINS: {
4715
5122
  to?: string;
4716
5123
  }>;
4717
5124
  } | undefined;
5125
+ has_static_routing?: boolean | undefined;
4718
5126
  } | undefined;
4719
5127
  } | undefined;
4720
5128
  compatibilityDate?: string | undefined;
@@ -4729,6 +5137,11 @@ export declare const PLUGINS: {
4729
5137
  script_id?: number;
4730
5138
  debug?: boolean;
4731
5139
  invoke_user_worker_ahead_of_assets?: boolean;
5140
+ static_routing?: {
5141
+ version?: 1;
5142
+ include?: string[];
5143
+ exclude?: string[];
5144
+ };
4732
5145
  has_user_worker?: boolean;
4733
5146
  } | undefined;
4734
5147
  assetConfig?: {
@@ -4756,6 +5169,7 @@ export declare const PLUGINS: {
4756
5169
  to?: string;
4757
5170
  }>;
4758
5171
  } | undefined;
5172
+ has_static_routing?: boolean | undefined;
4759
5173
  } | undefined;
4760
5174
  } | undefined;
4761
5175
  compatibilityDate?: string | undefined;
@@ -4766,26 +5180,31 @@ export declare const PLUGINS: {
4766
5180
  name: z.ZodString;
4767
5181
  className: z.ZodString;
4768
5182
  scriptName: z.ZodOptional<z.ZodString>;
5183
+ mixedModeConnectionString: z.ZodOptional<z.ZodType<MixedModeConnectionString_3, z.ZodTypeDef, MixedModeConnectionString_3>>;
4769
5184
  }, "strip", z.ZodTypeAny, {
4770
5185
  name: string;
4771
5186
  className: string;
4772
5187
  scriptName?: string | undefined;
5188
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
4773
5189
  }, {
4774
5190
  name: string;
4775
5191
  className: string;
4776
5192
  scriptName?: string | undefined;
5193
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
4777
5194
  }>>>;
4778
5195
  }, "strip", z.ZodTypeAny, {
4779
5196
  workflows?: Record<string, {
4780
5197
  name: string;
4781
5198
  className: string;
4782
5199
  scriptName?: string | undefined;
5200
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
4783
5201
  }> | undefined;
4784
5202
  }, {
4785
5203
  workflows?: Record<string, {
4786
5204
  name: string;
4787
5205
  className: string;
4788
5206
  scriptName?: string | undefined;
5207
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
4789
5208
  }> | undefined;
4790
5209
  }>, z.ZodObject<{
4791
5210
  workflowsPersist: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
@@ -4925,6 +5344,140 @@ export declare const PLUGINS: {
4925
5344
  }, {
4926
5345
  analyticsEngineDatasetsPersist?: string | boolean | undefined;
4927
5346
  }>>;
5347
+ ai: Plugin_2<z.ZodObject<{
5348
+ ai: z.ZodOptional<z.ZodObject<{
5349
+ binding: z.ZodString;
5350
+ mixedModeConnectionString: z.ZodType<MixedModeConnectionString_3, z.ZodTypeDef, MixedModeConnectionString_3>;
5351
+ }, "strip", z.ZodTypeAny, {
5352
+ mixedModeConnectionString: URL & {
5353
+ __brand: "MixedModeConnectionString";
5354
+ };
5355
+ binding: string;
5356
+ }, {
5357
+ mixedModeConnectionString: URL & {
5358
+ __brand: "MixedModeConnectionString";
5359
+ };
5360
+ binding: string;
5361
+ }>>;
5362
+ }, "strip", z.ZodTypeAny, {
5363
+ ai?: {
5364
+ mixedModeConnectionString: URL & {
5365
+ __brand: "MixedModeConnectionString";
5366
+ };
5367
+ binding: string;
5368
+ } | undefined;
5369
+ }, {
5370
+ ai?: {
5371
+ mixedModeConnectionString: URL & {
5372
+ __brand: "MixedModeConnectionString";
5373
+ };
5374
+ binding: string;
5375
+ } | undefined;
5376
+ }>>;
5377
+ "browser-rendering": Plugin_2<z.ZodObject<{
5378
+ browserRendering: z.ZodOptional<z.ZodObject<{
5379
+ binding: z.ZodString;
5380
+ mixedModeConnectionString: z.ZodType<MixedModeConnectionString_3, z.ZodTypeDef, MixedModeConnectionString_3>;
5381
+ }, "strip", z.ZodTypeAny, {
5382
+ mixedModeConnectionString: URL & {
5383
+ __brand: "MixedModeConnectionString";
5384
+ };
5385
+ binding: string;
5386
+ }, {
5387
+ mixedModeConnectionString: URL & {
5388
+ __brand: "MixedModeConnectionString";
5389
+ };
5390
+ binding: string;
5391
+ }>>;
5392
+ }, "strip", z.ZodTypeAny, {
5393
+ browserRendering?: {
5394
+ mixedModeConnectionString: URL & {
5395
+ __brand: "MixedModeConnectionString";
5396
+ };
5397
+ binding: string;
5398
+ } | undefined;
5399
+ }, {
5400
+ browserRendering?: {
5401
+ mixedModeConnectionString: URL & {
5402
+ __brand: "MixedModeConnectionString";
5403
+ };
5404
+ binding: string;
5405
+ } | undefined;
5406
+ }>>;
5407
+ "dispatch-namespace": Plugin_2<z.ZodObject<{
5408
+ dispatchNamespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
5409
+ namespace: z.ZodString;
5410
+ mixedModeConnectionString: z.ZodOptional<z.ZodType<MixedModeConnectionString_3, z.ZodTypeDef, MixedModeConnectionString_3>>;
5411
+ }, "strip", z.ZodTypeAny, {
5412
+ namespace: string;
5413
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
5414
+ }, {
5415
+ namespace: string;
5416
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
5417
+ }>>>;
5418
+ }, "strip", z.ZodTypeAny, {
5419
+ dispatchNamespaces?: Record<string, {
5420
+ namespace: string;
5421
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
5422
+ }> | undefined;
5423
+ }, {
5424
+ dispatchNamespaces?: Record<string, {
5425
+ namespace: string;
5426
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
5427
+ }> | undefined;
5428
+ }>>;
5429
+ images: Plugin_2<z.ZodObject<{
5430
+ images: z.ZodOptional<z.ZodObject<{
5431
+ binding: z.ZodString;
5432
+ mixedModeConnectionString: z.ZodOptional<z.ZodType<MixedModeConnectionString_3, z.ZodTypeDef, MixedModeConnectionString_3>>;
5433
+ }, "strip", z.ZodTypeAny, {
5434
+ binding: string;
5435
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
5436
+ }, {
5437
+ binding: string;
5438
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
5439
+ }>>;
5440
+ }, "strip", z.ZodTypeAny, {
5441
+ images?: {
5442
+ binding: string;
5443
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
5444
+ } | undefined;
5445
+ }, {
5446
+ images?: {
5447
+ binding: string;
5448
+ mixedModeConnectionString?: MixedModeConnectionString_3 | undefined;
5449
+ } | undefined;
5450
+ }>>;
5451
+ vectorize: Plugin_2<z.ZodObject<{
5452
+ vectorize: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
5453
+ index_name: z.ZodString;
5454
+ mixedModeConnectionString: z.ZodType<MixedModeConnectionString_3, z.ZodTypeDef, MixedModeConnectionString_3>;
5455
+ }, "strip", z.ZodTypeAny, {
5456
+ mixedModeConnectionString: URL & {
5457
+ __brand: "MixedModeConnectionString";
5458
+ };
5459
+ index_name: string;
5460
+ }, {
5461
+ mixedModeConnectionString: URL & {
5462
+ __brand: "MixedModeConnectionString";
5463
+ };
5464
+ index_name: string;
5465
+ }>>>;
5466
+ }, "strip", z.ZodTypeAny, {
5467
+ vectorize?: Record<string, {
5468
+ mixedModeConnectionString: URL & {
5469
+ __brand: "MixedModeConnectionString";
5470
+ };
5471
+ index_name: string;
5472
+ }> | undefined;
5473
+ }, {
5474
+ vectorize?: Record<string, {
5475
+ mixedModeConnectionString: URL & {
5476
+ __brand: "MixedModeConnectionString";
5477
+ };
5478
+ index_name: string;
5479
+ }> | undefined;
5480
+ }>>;
4928
5481
  };
4929
5482
 
4930
5483
  export declare type Plugins = typeof PLUGINS;
@@ -5245,12 +5798,15 @@ export declare const QueuesOptionsSchema: z.ZodObject<{
5245
5798
  queueProducers: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodObject<{
5246
5799
  queueName: z.ZodString;
5247
5800
  deliveryDelay: z.ZodOptional<z.ZodNumber>;
5801
+ mixedModeConnectionString: z.ZodOptional<z.ZodType<MixedModeConnectionString, z.ZodTypeDef, MixedModeConnectionString>>;
5248
5802
  }, "strip", z.ZodTypeAny, {
5249
5803
  queueName: string;
5250
5804
  deliveryDelay?: number | undefined;
5805
+ mixedModeConnectionString?: MixedModeConnectionString | undefined;
5251
5806
  }, {
5252
5807
  queueName: string;
5253
5808
  deliveryDelay?: number | undefined;
5809
+ mixedModeConnectionString?: MixedModeConnectionString | undefined;
5254
5810
  }>>, z.ZodArray<z.ZodString, "many">, z.ZodRecord<z.ZodString, z.ZodString>]>>;
5255
5811
  queueConsumers: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
5256
5812
  maxBatchSize: z.ZodOptional<z.ZodNumber>;
@@ -5292,6 +5848,7 @@ export declare const QueuesOptionsSchema: z.ZodObject<{
5292
5848
  queueProducers?: string[] | Record<string, string> | Record<string, {
5293
5849
  queueName: string;
5294
5850
  deliveryDelay?: number | undefined;
5851
+ mixedModeConnectionString?: MixedModeConnectionString | undefined;
5295
5852
  }> | undefined;
5296
5853
  queueConsumers?: string[] | Record<string, Omit<{
5297
5854
  maxBatchSize?: number | undefined;
@@ -5305,6 +5862,7 @@ export declare const QueuesOptionsSchema: z.ZodObject<{
5305
5862
  queueProducers?: string[] | Record<string, string> | Record<string, {
5306
5863
  queueName: string;
5307
5864
  deliveryDelay?: number | undefined;
5865
+ mixedModeConnectionString?: MixedModeConnectionString | undefined;
5308
5866
  }> | undefined;
5309
5867
  queueConsumers?: string[] | Record<string, {
5310
5868
  maxBatchSize?: number | undefined;
@@ -5323,11 +5881,26 @@ export declare const R2_PLUGIN: Plugin<typeof R2OptionsSchema, typeof R2SharedOp
5323
5881
  export declare const R2_PLUGIN_NAME = "r2";
5324
5882
 
5325
5883
  export declare const R2OptionsSchema: z.ZodObject<{
5326
- r2Buckets: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodString, "many">]>>;
5884
+ r2Buckets: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodRecord<z.ZodString, z.ZodObject<{
5885
+ id: z.ZodString;
5886
+ mixedModeConnectionString: z.ZodOptional<z.ZodType<MixedModeConnectionString, z.ZodTypeDef, MixedModeConnectionString>>;
5887
+ }, "strip", z.ZodTypeAny, {
5888
+ id: string;
5889
+ mixedModeConnectionString?: MixedModeConnectionString | undefined;
5890
+ }, {
5891
+ id: string;
5892
+ mixedModeConnectionString?: MixedModeConnectionString | undefined;
5893
+ }>>, z.ZodArray<z.ZodString, "many">]>>;
5327
5894
  }, "strip", z.ZodTypeAny, {
5328
- r2Buckets?: string[] | Record<string, string> | undefined;
5895
+ r2Buckets?: string[] | Record<string, string> | Record<string, {
5896
+ id: string;
5897
+ mixedModeConnectionString?: MixedModeConnectionString | undefined;
5898
+ }> | undefined;
5329
5899
  }, {
5330
- r2Buckets?: string[] | Record<string, string> | undefined;
5900
+ r2Buckets?: string[] | Record<string, string> | Record<string, {
5901
+ id: string;
5902
+ mixedModeConnectionString?: MixedModeConnectionString | undefined;
5903
+ }> | undefined;
5331
5904
  }>;
5332
5905
 
5333
5906
  export declare const R2SharedOptionsSchema: z.ZodObject<{
@@ -5792,6 +6365,41 @@ export declare type UnsafeUniqueKey = string | typeof kUnsafeEphemeralUniqueKey;
5792
6365
 
5793
6366
  export declare type ValueOf<T> = T[keyof T];
5794
6367
 
6368
+ export declare const VECTORIZE_PLUGIN: Plugin<typeof VectorizeOptionsSchema>;
6369
+
6370
+ export declare const VECTORIZE_PLUGIN_NAME = "vectorize";
6371
+
6372
+ export declare const VectorizeOptionsSchema: z.ZodObject<{
6373
+ vectorize: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
6374
+ index_name: z.ZodString;
6375
+ mixedModeConnectionString: z.ZodType<MixedModeConnectionString, z.ZodTypeDef, MixedModeConnectionString>;
6376
+ }, "strip", z.ZodTypeAny, {
6377
+ mixedModeConnectionString: URL & {
6378
+ __brand: "MixedModeConnectionString";
6379
+ };
6380
+ index_name: string;
6381
+ }, {
6382
+ mixedModeConnectionString: URL & {
6383
+ __brand: "MixedModeConnectionString";
6384
+ };
6385
+ index_name: string;
6386
+ }>>>;
6387
+ }, "strip", z.ZodTypeAny, {
6388
+ vectorize?: Record<string, {
6389
+ mixedModeConnectionString: URL & {
6390
+ __brand: "MixedModeConnectionString";
6391
+ };
6392
+ index_name: string;
6393
+ }> | undefined;
6394
+ }, {
6395
+ vectorize?: Record<string, {
6396
+ mixedModeConnectionString: URL & {
6397
+ __brand: "MixedModeConnectionString";
6398
+ };
6399
+ index_name: string;
6400
+ }> | undefined;
6401
+ }>;
6402
+
5795
6403
  export declare function viewToBuffer(view: ArrayBufferView): ArrayBuffer;
5796
6404
 
5797
6405
  export declare type Void = typeof kVoid;
@@ -6036,7 +6644,7 @@ export declare type Worker_Module = {
6036
6644
  pythonRequirement?: string;
6037
6645
  });
6038
6646
 
6039
- 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 EMAIL_PLUGIN.options> & z.input<typeof ASSETS_PLUGIN.options> & z.input<typeof WORKFLOWS_PLUGIN.options> & z.input<typeof PIPELINE_PLUGIN.options> & z.input<typeof SECRET_STORE_PLUGIN.options> & z.input<typeof ANALYTICS_ENGINE_PLUGIN.options>;
6647
+ 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 EMAIL_PLUGIN.options> & z.input<typeof ASSETS_PLUGIN.options> & z.input<typeof WORKFLOWS_PLUGIN.options> & z.input<typeof PIPELINE_PLUGIN.options> & z.input<typeof SECRET_STORE_PLUGIN.options> & z.input<typeof ANALYTICS_ENGINE_PLUGIN.options> & z.input<typeof AI_PLUGIN.options> & z.input<typeof BROWSER_RENDERING_PLUGIN.options> & z.input<typeof DISPATCH_NAMESPACE_PLUGIN.options> & z.input<typeof IMAGES_PLUGIN.options> & z.input<typeof VECTORIZE_PLUGIN.options>;
6040
6648
 
6041
6649
  export declare interface WorkerRoute {
6042
6650
  target: string;
@@ -6060,26 +6668,31 @@ export declare const WorkflowsOptionsSchema: z.ZodObject<{
6060
6668
  name: z.ZodString;
6061
6669
  className: z.ZodString;
6062
6670
  scriptName: z.ZodOptional<z.ZodString>;
6671
+ mixedModeConnectionString: z.ZodOptional<z.ZodType<MixedModeConnectionString, z.ZodTypeDef, MixedModeConnectionString>>;
6063
6672
  }, "strip", z.ZodTypeAny, {
6064
6673
  name: string;
6065
6674
  className: string;
6066
6675
  scriptName?: string | undefined;
6676
+ mixedModeConnectionString?: MixedModeConnectionString | undefined;
6067
6677
  }, {
6068
6678
  name: string;
6069
6679
  className: string;
6070
6680
  scriptName?: string | undefined;
6681
+ mixedModeConnectionString?: MixedModeConnectionString | undefined;
6071
6682
  }>>>;
6072
6683
  }, "strip", z.ZodTypeAny, {
6073
6684
  workflows?: Record<string, {
6074
6685
  name: string;
6075
6686
  className: string;
6076
6687
  scriptName?: string | undefined;
6688
+ mixedModeConnectionString?: MixedModeConnectionString | undefined;
6077
6689
  }> | undefined;
6078
6690
  }, {
6079
6691
  workflows?: Record<string, {
6080
6692
  name: string;
6081
6693
  className: string;
6082
6694
  scriptName?: string | undefined;
6695
+ mixedModeConnectionString?: MixedModeConnectionString | undefined;
6083
6696
  }> | undefined;
6084
6697
  }>;
6085
6698