miniflare 0.0.0-e7ea6005c → 0.0.0-e8aaa3930

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.
@@ -10,9 +10,9 @@ import type { DurableObjectNamespace } from '@cloudflare/workers-types/experimen
10
10
  import type { Fetcher } from '@cloudflare/workers-types/experimental';
11
11
  import { File } from 'undici';
12
12
  import type { File as File_2 } from '@cloudflare/workers-types/experimental';
13
- import { FormData } from 'undici';
14
- import { Headers } from 'undici';
15
- import type { Headers as Headers_2 } from '@cloudflare/workers-types/experimental';
13
+ import { FormData as FormData_2 } from 'undici';
14
+ import { Headers as Headers_2 } from 'undici';
15
+ import type { Headers as Headers_3 } from '@cloudflare/workers-types/experimental';
16
16
  import { HeadersInit } from 'undici';
17
17
  import http from 'http';
18
18
  import { IncomingRequestCfProperties } from '@cloudflare/workers-types/experimental';
@@ -23,24 +23,24 @@ import { ParseParams } from 'zod';
23
23
  import type { Queue } from '@cloudflare/workers-types/experimental';
24
24
  import type { R2Bucket } from '@cloudflare/workers-types/experimental';
25
25
  import { Readable } from 'stream';
26
- import type { ReadableStream } from '@cloudflare/workers-types/experimental';
27
- import { ReadableStream as ReadableStream_2 } from 'stream/web';
26
+ import type { ReadableStream as ReadableStream_2 } from '@cloudflare/workers-types/experimental';
27
+ import { ReadableStream as ReadableStream_3 } from 'stream/web';
28
28
  import { ReferrerPolicy } from 'undici';
29
- import { Request as Request_2 } from 'undici';
30
- import type { Request as Request_3 } from '@cloudflare/workers-types/experimental';
29
+ import { Request as Request_3 } from 'undici';
30
+ import type { Request as Request_4 } from '@cloudflare/workers-types/experimental';
31
31
  import { RequestCache } from 'undici';
32
32
  import { RequestCredentials } from 'undici';
33
33
  import { RequestDestination } from 'undici';
34
34
  import { RequestDuplex } from 'undici';
35
35
  import { RequestInfo as RequestInfo_2 } from 'undici';
36
- import { RequestInit as RequestInit_2 } from 'undici';
37
- import type { RequestInit as RequestInit_3 } from '@cloudflare/workers-types/experimental';
36
+ import { RequestInit as RequestInit_3 } from 'undici';
37
+ import type { RequestInit as RequestInit_4 } from '@cloudflare/workers-types/experimental';
38
38
  import type { RequestInitCfProperties } from '@cloudflare/workers-types/experimental';
39
39
  import { RequestMode } from 'undici';
40
40
  import { RequestRedirect } from 'undici';
41
- import { Response as Response_2 } from 'undici';
42
- import type { Response as Response_3 } from '@cloudflare/workers-types/experimental';
43
- import { ResponseInit as ResponseInit_2 } from 'undici';
41
+ import { Response as Response_3 } from 'undici';
42
+ import type { Response as Response_4 } from '@cloudflare/workers-types/experimental';
43
+ import { ResponseInit as ResponseInit_3 } from 'undici';
44
44
  import { ResponseRedirectStatus } from 'undici';
45
45
  import { ResponseType } from 'undici';
46
46
  import type { ServiceWorkerGlobalScope } from '@cloudflare/workers-types/experimental';
@@ -74,20 +74,26 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
74
74
  binding: z.ZodOptional<z.ZodString>;
75
75
  routingConfig: z.ZodOptional<z.ZodObject<{
76
76
  has_user_worker: z.ZodOptional<z.ZodBoolean>;
77
+ invoke_user_worker_ahead_of_assets: z.ZodOptional<z.ZodBoolean>;
77
78
  }, "strip", z.ZodTypeAny, {
78
79
  has_user_worker?: boolean;
80
+ invoke_user_worker_ahead_of_assets?: boolean;
79
81
  }, {
80
82
  has_user_worker?: boolean;
83
+ invoke_user_worker_ahead_of_assets?: boolean;
81
84
  }>>;
82
85
  assetConfig: z.ZodOptional<z.ZodObject<{
83
86
  html_handling: z.ZodOptional<z.ZodEnum<["auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none"]>>;
84
87
  not_found_handling: z.ZodOptional<z.ZodEnum<["single-page-application", "404-page", "none"]>>;
88
+ serve_directly: z.ZodOptional<z.ZodBoolean>;
85
89
  }, "strip", z.ZodTypeAny, {
86
90
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
87
91
  not_found_handling?: "none" | "single-page-application" | "404-page";
92
+ serve_directly?: boolean;
88
93
  }, {
89
94
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
90
95
  not_found_handling?: "none" | "single-page-application" | "404-page";
96
+ serve_directly?: boolean;
91
97
  }>>;
92
98
  }, "strip", z.ZodTypeAny, {
93
99
  directory: string;
@@ -95,10 +101,12 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
95
101
  binding?: string | undefined;
96
102
  routingConfig?: {
97
103
  has_user_worker?: boolean;
104
+ invoke_user_worker_ahead_of_assets?: boolean;
98
105
  } | undefined;
99
106
  assetConfig?: {
100
107
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
101
108
  not_found_handling?: "none" | "single-page-application" | "404-page";
109
+ serve_directly?: boolean;
102
110
  } | undefined;
103
111
  }, {
104
112
  directory: string;
@@ -106,10 +114,12 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
106
114
  binding?: string | undefined;
107
115
  routingConfig?: {
108
116
  has_user_worker?: boolean;
117
+ invoke_user_worker_ahead_of_assets?: boolean;
109
118
  } | undefined;
110
119
  assetConfig?: {
111
120
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
112
121
  not_found_handling?: "none" | "single-page-application" | "404-page";
122
+ serve_directly?: boolean;
113
123
  } | undefined;
114
124
  }>>;
115
125
  }, "strip", z.ZodTypeAny, {
@@ -119,10 +129,12 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
119
129
  binding?: string | undefined;
120
130
  routingConfig?: {
121
131
  has_user_worker?: boolean;
132
+ invoke_user_worker_ahead_of_assets?: boolean;
122
133
  } | undefined;
123
134
  assetConfig?: {
124
135
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
125
136
  not_found_handling?: "none" | "single-page-application" | "404-page";
137
+ serve_directly?: boolean;
126
138
  } | undefined;
127
139
  } | undefined;
128
140
  }, {
@@ -132,10 +144,12 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
132
144
  binding?: string | undefined;
133
145
  routingConfig?: {
134
146
  has_user_worker?: boolean;
147
+ invoke_user_worker_ahead_of_assets?: boolean;
135
148
  } | undefined;
136
149
  assetConfig?: {
137
150
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
138
151
  not_found_handling?: "none" | "single-page-application" | "404-page";
152
+ serve_directly?: boolean;
139
153
  } | undefined;
140
154
  } | undefined;
141
155
  }>;
@@ -512,7 +526,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
512
526
  path: string;
513
527
  writable?: boolean | undefined;
514
528
  };
515
- }>, z.ZodType<(request: Request, mf: Miniflare) => Awaitable<Response>, z.ZodTypeDef, (request: Request, mf: Miniflare) => Awaitable<Response>>]>>>;
529
+ }>, z.ZodType<(request: Request_2, mf: Miniflare) => Awaitable<Response_2>, z.ZodTypeDef, (request: Request_2, mf: Miniflare) => Awaitable<Response_2>>]>>>;
516
530
  wrappedBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
517
531
  scriptName: z.ZodString;
518
532
  entrypoint: z.ZodOptional<z.ZodString>;
@@ -664,7 +678,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
664
678
  path: string;
665
679
  writable?: boolean | undefined;
666
680
  };
667
- }>, z.ZodType<(request: Request, mf: Miniflare) => Awaitable<Response>, z.ZodTypeDef, (request: Request, mf: Miniflare) => Awaitable<Response>>]>>;
681
+ }>, z.ZodType<(request: Request_2, mf: Miniflare) => Awaitable<Response_2>, z.ZodTypeDef, (request: Request_2, mf: Miniflare) => Awaitable<Response_2>>]>>;
668
682
  fetchMock: z.ZodOptional<z.ZodType<MockAgent<MockAgent.Options>, z.ZodTypeDef, MockAgent<MockAgent.Options>>>;
669
683
  unsafeEphemeralDurableObjects: z.ZodOptional<z.ZodBoolean>;
670
684
  unsafeDirectSockets: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -725,7 +739,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
725
739
  path: string;
726
740
  writable?: boolean | undefined;
727
741
  };
728
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>)> | undefined;
742
+ } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
729
743
  wrappedBindings?: Record<string, string | {
730
744
  scriptName: string;
731
745
  entrypoint?: string | undefined;
@@ -757,7 +771,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
757
771
  path: string;
758
772
  writable?: boolean | undefined;
759
773
  };
760
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
774
+ } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
761
775
  fetchMock?: MockAgent<MockAgent.Options> | undefined;
762
776
  unsafeEphemeralDurableObjects?: boolean | undefined;
763
777
  unsafeDirectSockets?: {
@@ -805,7 +819,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
805
819
  path: string;
806
820
  writable?: boolean | undefined;
807
821
  };
808
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>)> | undefined;
822
+ } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
809
823
  wrappedBindings?: Record<string, string | {
810
824
  scriptName: string;
811
825
  entrypoint?: string | undefined;
@@ -837,7 +851,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
837
851
  path: string;
838
852
  writable?: boolean | undefined;
839
853
  };
840
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
854
+ } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
841
855
  fetchMock?: MockAgent<MockAgent.Options> | undefined;
842
856
  unsafeEphemeralDurableObjects?: boolean | undefined;
843
857
  unsafeDirectSockets?: {
@@ -892,7 +906,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
892
906
  path: string;
893
907
  writable?: boolean | undefined;
894
908
  };
895
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>)> | undefined;
909
+ } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
896
910
  wrappedBindings?: Record<string, string | {
897
911
  scriptName: string;
898
912
  entrypoint?: string | undefined;
@@ -924,7 +938,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
924
938
  path: string;
925
939
  writable?: boolean | undefined;
926
940
  };
927
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
941
+ } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
928
942
  fetchMock?: MockAgent<MockAgent.Options> | undefined;
929
943
  unsafeEphemeralDurableObjects?: boolean | undefined;
930
944
  unsafeDirectSockets?: {
@@ -982,7 +996,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
982
996
  path: string;
983
997
  writable?: boolean | undefined;
984
998
  };
985
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>)> | undefined;
999
+ } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
986
1000
  wrappedBindings?: Record<string, string | {
987
1001
  scriptName: string;
988
1002
  entrypoint?: string | undefined;
@@ -1014,7 +1028,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1014
1028
  path: string;
1015
1029
  writable?: boolean | undefined;
1016
1030
  };
1017
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
1031
+ } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
1018
1032
  fetchMock?: MockAgent<MockAgent.Options> | undefined;
1019
1033
  unsafeEphemeralDurableObjects?: boolean | undefined;
1020
1034
  unsafeDirectSockets?: {
@@ -1071,7 +1085,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1071
1085
  path: string;
1072
1086
  writable?: boolean | undefined;
1073
1087
  };
1074
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>)> | undefined;
1088
+ } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
1075
1089
  wrappedBindings?: Record<string, string | {
1076
1090
  scriptName: string;
1077
1091
  entrypoint?: string | undefined;
@@ -1103,7 +1117,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1103
1117
  path: string;
1104
1118
  writable?: boolean | undefined;
1105
1119
  };
1106
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
1120
+ } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
1107
1121
  fetchMock?: MockAgent<MockAgent.Options> | undefined;
1108
1122
  unsafeEphemeralDurableObjects?: boolean | undefined;
1109
1123
  unsafeDirectSockets?: {
@@ -1177,7 +1191,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1177
1191
  path: string;
1178
1192
  writable?: boolean | undefined;
1179
1193
  };
1180
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>)> | undefined;
1194
+ } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
1181
1195
  wrappedBindings?: Record<string, string | {
1182
1196
  scriptName: string;
1183
1197
  entrypoint?: string | undefined;
@@ -1209,7 +1223,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1209
1223
  path: string;
1210
1224
  writable?: boolean | undefined;
1211
1225
  };
1212
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
1226
+ } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
1213
1227
  fetchMock?: MockAgent<MockAgent.Options> | undefined;
1214
1228
  unsafeEphemeralDurableObjects?: boolean | undefined;
1215
1229
  unsafeDirectSockets?: {
@@ -1240,7 +1254,7 @@ export declare const CoreSharedOptionsSchema: z.ZodObject<{
1240
1254
  cf: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>;
1241
1255
  liveReload: z.ZodOptional<z.ZodBoolean>;
1242
1256
  unsafeProxySharedSecret: z.ZodOptional<z.ZodString>;
1243
- unsafeModuleFallbackService: z.ZodOptional<z.ZodType<(request: Request, mf: Miniflare) => Awaitable<Response>, z.ZodTypeDef, (request: Request, mf: Miniflare) => Awaitable<Response>>>;
1257
+ unsafeModuleFallbackService: z.ZodOptional<z.ZodType<(request: Request_2, mf: Miniflare) => Awaitable<Response_2>, z.ZodTypeDef, (request: Request_2, mf: Miniflare) => Awaitable<Response_2>>>;
1244
1258
  unsafeStickyBlobs: z.ZodOptional<z.ZodBoolean>;
1245
1259
  }, "strip", z.ZodTypeAny, {
1246
1260
  rootPath?: undefined;
@@ -1259,7 +1273,7 @@ export declare const CoreSharedOptionsSchema: z.ZodObject<{
1259
1273
  cf?: string | boolean | Record<string, any> | undefined;
1260
1274
  liveReload?: boolean | undefined;
1261
1275
  unsafeProxySharedSecret?: string | undefined;
1262
- unsafeModuleFallbackService?: ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
1276
+ unsafeModuleFallbackService?: ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
1263
1277
  unsafeStickyBlobs?: boolean | undefined;
1264
1278
  }, {
1265
1279
  rootPath?: string | undefined;
@@ -1278,7 +1292,7 @@ export declare const CoreSharedOptionsSchema: z.ZodObject<{
1278
1292
  cf?: string | boolean | Record<string, any> | undefined;
1279
1293
  liveReload?: boolean | undefined;
1280
1294
  unsafeProxySharedSecret?: string | undefined;
1281
- unsafeModuleFallbackService?: ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
1295
+ unsafeModuleFallbackService?: ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
1282
1296
  unsafeStickyBlobs?: boolean | undefined;
1283
1297
  }>;
1284
1298
 
@@ -1333,7 +1347,7 @@ export declare interface DiskDirectory {
1333
1347
  writable?: boolean;
1334
1348
  }
1335
1349
 
1336
- export declare type DispatchFetch = (input: RequestInfo, init?: RequestInit<Partial<IncomingRequestCfProperties>>) => Promise<Response>;
1350
+ export declare type DispatchFetch = (input: RequestInfo, init?: RequestInit_2<Partial<IncomingRequestCfProperties>>) => Promise<Response_2>;
1337
1351
 
1338
1352
  /**
1339
1353
  * Dispatcher created for each `dispatchFetch()` call. Ensures request origin
@@ -1431,8 +1445,6 @@ export declare const DurableObjectsSharedOptionsSchema: z.ZodObject<{
1431
1445
 
1432
1446
  export declare function encodeSitesKey(key: string): string;
1433
1447
 
1434
- export declare const ENTRY_SOCKET_HTTP_OPTIONS: HttpOptions;
1435
-
1436
1448
  export declare class ErrorEvent extends Event {
1437
1449
  readonly error: Error | null;
1438
1450
  constructor(type: "error", init?: {
@@ -1471,7 +1483,8 @@ export declare interface ExternalServer_Tcp {
1471
1483
  certificateHost?: string;
1472
1484
  }
1473
1485
 
1474
- export declare function fetch(input: RequestInfo, init?: RequestInit | Request): Promise<Response>;
1486
+ declare function fetch_2(input: RequestInfo, init?: RequestInit_2 | Request_2): Promise<Response_2>;
1487
+ export { fetch_2 as fetch }
1475
1488
 
1476
1489
  export { File }
1477
1490
 
@@ -1479,7 +1492,7 @@ export declare function _forceColour(enabled?: boolean): void;
1479
1492
 
1480
1493
  export declare function formatZodError(error: z.ZodError, input: unknown): string;
1481
1494
 
1482
- export { FormData }
1495
+ export { FormData_2 as FormData }
1483
1496
 
1484
1497
  export declare function getAccessibleHosts(ipv4Only?: boolean): string[];
1485
1498
 
@@ -1543,7 +1556,7 @@ export declare interface GlobalServicesOptions {
1543
1556
 
1544
1557
  export declare function globsToRegExps(globs?: string[]): MatcherRegExps;
1545
1558
 
1546
- export { Headers }
1559
+ export { Headers_2 as Headers }
1547
1560
 
1548
1561
  export { HeadersInit }
1549
1562
 
@@ -1749,12 +1762,13 @@ export declare function maybeParseURL(url: Persistence): URL | undefined;
1749
1762
  */
1750
1763
  export declare function mergeWorkerOptions(a: Partial<WorkerOptions>, b: Partial<WorkerOptions>): Partial<WorkerOptions>;
1751
1764
 
1752
- export declare class MessageEvent extends Event {
1765
+ declare class MessageEvent_2 extends Event {
1753
1766
  readonly data: ArrayBuffer | string;
1754
1767
  constructor(type: "message", init: {
1755
1768
  data: ArrayBuffer | string;
1756
1769
  });
1757
1770
  }
1771
+ export { MessageEvent_2 as MessageEvent }
1758
1772
 
1759
1773
  export declare function migrateDatabase(log: Log, uniqueKey: string, persistPath: string, namespace: string): Promise<void>;
1760
1774
 
@@ -1853,7 +1867,7 @@ export declare interface Network {
1853
1867
  tlsOptions?: TlsOptions;
1854
1868
  }
1855
1869
 
1856
- export declare const NODE_PLATFORM_IMPL: PlatformImpl<ReadableStream_2>;
1870
+ export declare const NODE_PLATFORM_IMPL: PlatformImpl<ReadableStream_3>;
1857
1871
 
1858
1872
  /**
1859
1873
  * We can provide Node.js compatibility in a number of different modes:
@@ -1985,9 +1999,9 @@ export declare const PersistenceSchema: z.ZodOptional<z.ZodUnion<[z.ZodBoolean,
1985
1999
  export declare interface PlatformImpl<RS> {
1986
2000
  Blob: typeof Blob_2;
1987
2001
  File: typeof File_2;
1988
- Headers: typeof Headers_2;
1989
- Request: typeof Request_3;
1990
- Response: typeof Response_3;
2002
+ Headers: typeof Headers_3;
2003
+ Request: typeof Request_4;
2004
+ Response: typeof Response_4;
1991
2005
  isReadableStream(value: unknown): value is RS;
1992
2006
  bufferReadableStream(stream: RS): Promise<ArrayBuffer>;
1993
2007
  unbufferReadableStream(buffer: ArrayBuffer): RS;
@@ -2260,7 +2274,7 @@ export declare const PLUGINS: {
2260
2274
  path: string;
2261
2275
  writable?: boolean | undefined;
2262
2276
  };
2263
- }>, z.ZodType<(request: Request, mf: Miniflare) => Awaitable<Response>, z.ZodTypeDef, (request: Request, mf: Miniflare) => Awaitable<Response>>]>>>;
2277
+ }>, z.ZodType<(request: Request_2, mf: Miniflare) => Awaitable<Response_2>, z.ZodTypeDef, (request: Request_2, mf: Miniflare) => Awaitable<Response_2>>]>>>;
2264
2278
  wrappedBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
2265
2279
  scriptName: z.ZodString;
2266
2280
  entrypoint: z.ZodOptional<z.ZodString>;
@@ -2412,7 +2426,7 @@ export declare const PLUGINS: {
2412
2426
  path: string;
2413
2427
  writable?: boolean | undefined;
2414
2428
  };
2415
- }>, z.ZodType<(request: Request, mf: Miniflare) => Awaitable<Response>, z.ZodTypeDef, (request: Request, mf: Miniflare) => Awaitable<Response>>]>>;
2429
+ }>, z.ZodType<(request: Request_2, mf: Miniflare) => Awaitable<Response_2>, z.ZodTypeDef, (request: Request_2, mf: Miniflare) => Awaitable<Response_2>>]>>;
2416
2430
  fetchMock: z.ZodOptional<z.ZodType<MockAgent<MockAgent>, z.ZodTypeDef, MockAgent<MockAgent>>>;
2417
2431
  unsafeEphemeralDurableObjects: z.ZodOptional<z.ZodBoolean>;
2418
2432
  unsafeDirectSockets: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -2470,7 +2484,7 @@ export declare const PLUGINS: {
2470
2484
  path: string;
2471
2485
  writable?: boolean | undefined;
2472
2486
  };
2473
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>)> | undefined;
2487
+ } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
2474
2488
  wrappedBindings?: Record<string, string | {
2475
2489
  scriptName: string;
2476
2490
  entrypoint?: string | undefined;
@@ -2502,7 +2516,7 @@ export declare const PLUGINS: {
2502
2516
  path: string;
2503
2517
  writable?: boolean | undefined;
2504
2518
  };
2505
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
2519
+ } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
2506
2520
  fetchMock?: MockAgent<MockAgent> | undefined;
2507
2521
  unsafeEphemeralDurableObjects?: boolean | undefined;
2508
2522
  unsafeDirectSockets?: {
@@ -2550,7 +2564,7 @@ export declare const PLUGINS: {
2550
2564
  path: string;
2551
2565
  writable?: boolean | undefined;
2552
2566
  };
2553
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>)> | undefined;
2567
+ } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
2554
2568
  wrappedBindings?: Record<string, string | {
2555
2569
  scriptName: string;
2556
2570
  entrypoint?: string | undefined;
@@ -2582,7 +2596,7 @@ export declare const PLUGINS: {
2582
2596
  path: string;
2583
2597
  writable?: boolean | undefined;
2584
2598
  };
2585
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
2599
+ } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
2586
2600
  fetchMock?: MockAgent<MockAgent> | undefined;
2587
2601
  unsafeEphemeralDurableObjects?: boolean | undefined;
2588
2602
  unsafeDirectSockets?: {
@@ -2637,7 +2651,7 @@ export declare const PLUGINS: {
2637
2651
  path: string;
2638
2652
  writable?: boolean | undefined;
2639
2653
  };
2640
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>)> | undefined;
2654
+ } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
2641
2655
  wrappedBindings?: Record<string, string | {
2642
2656
  scriptName: string;
2643
2657
  entrypoint?: string | undefined;
@@ -2669,7 +2683,7 @@ export declare const PLUGINS: {
2669
2683
  path: string;
2670
2684
  writable?: boolean | undefined;
2671
2685
  };
2672
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
2686
+ } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
2673
2687
  fetchMock?: MockAgent<MockAgent> | undefined;
2674
2688
  unsafeEphemeralDurableObjects?: boolean | undefined;
2675
2689
  unsafeDirectSockets?: {
@@ -2727,7 +2741,7 @@ export declare const PLUGINS: {
2727
2741
  path: string;
2728
2742
  writable?: boolean | undefined;
2729
2743
  };
2730
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>)> | undefined;
2744
+ } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
2731
2745
  wrappedBindings?: Record<string, string | {
2732
2746
  scriptName: string;
2733
2747
  entrypoint?: string | undefined;
@@ -2759,7 +2773,7 @@ export declare const PLUGINS: {
2759
2773
  path: string;
2760
2774
  writable?: boolean | undefined;
2761
2775
  };
2762
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
2776
+ } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
2763
2777
  fetchMock?: MockAgent<MockAgent> | undefined;
2764
2778
  unsafeEphemeralDurableObjects?: boolean | undefined;
2765
2779
  unsafeDirectSockets?: {
@@ -2816,7 +2830,7 @@ export declare const PLUGINS: {
2816
2830
  path: string;
2817
2831
  writable?: boolean | undefined;
2818
2832
  };
2819
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>)> | undefined;
2833
+ } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
2820
2834
  wrappedBindings?: Record<string, string | {
2821
2835
  scriptName: string;
2822
2836
  entrypoint?: string | undefined;
@@ -2848,7 +2862,7 @@ export declare const PLUGINS: {
2848
2862
  path: string;
2849
2863
  writable?: boolean | undefined;
2850
2864
  };
2851
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
2865
+ } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
2852
2866
  fetchMock?: MockAgent<MockAgent> | undefined;
2853
2867
  unsafeEphemeralDurableObjects?: boolean | undefined;
2854
2868
  unsafeDirectSockets?: {
@@ -2922,7 +2936,7 @@ export declare const PLUGINS: {
2922
2936
  path: string;
2923
2937
  writable?: boolean | undefined;
2924
2938
  };
2925
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>)> | undefined;
2939
+ } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
2926
2940
  wrappedBindings?: Record<string, string | {
2927
2941
  scriptName: string;
2928
2942
  entrypoint?: string | undefined;
@@ -2954,7 +2968,7 @@ export declare const PLUGINS: {
2954
2968
  path: string;
2955
2969
  writable?: boolean | undefined;
2956
2970
  };
2957
- } | ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
2971
+ } | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
2958
2972
  fetchMock?: MockAgent<MockAgent> | undefined;
2959
2973
  unsafeEphemeralDurableObjects?: boolean | undefined;
2960
2974
  unsafeDirectSockets?: {
@@ -2983,7 +2997,7 @@ export declare const PLUGINS: {
2983
2997
  cf: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>;
2984
2998
  liveReload: z.ZodOptional<z.ZodBoolean>;
2985
2999
  unsafeProxySharedSecret: z.ZodOptional<z.ZodString>;
2986
- unsafeModuleFallbackService: z.ZodOptional<z.ZodType<(request: Request, mf: Miniflare) => Awaitable<Response>, z.ZodTypeDef, (request: Request, mf: Miniflare) => Awaitable<Response>>>;
3000
+ unsafeModuleFallbackService: z.ZodOptional<z.ZodType<(request: Request_2, mf: Miniflare) => Awaitable<Response_2>, z.ZodTypeDef, (request: Request_2, mf: Miniflare) => Awaitable<Response_2>>>;
2987
3001
  unsafeStickyBlobs: z.ZodOptional<z.ZodBoolean>;
2988
3002
  }, "strip", z.ZodTypeAny, {
2989
3003
  rootPath?: undefined;
@@ -3002,7 +3016,7 @@ export declare const PLUGINS: {
3002
3016
  cf?: string | boolean | Record<string, any> | undefined;
3003
3017
  liveReload?: boolean | undefined;
3004
3018
  unsafeProxySharedSecret?: string | undefined;
3005
- unsafeModuleFallbackService?: ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
3019
+ unsafeModuleFallbackService?: ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
3006
3020
  unsafeStickyBlobs?: boolean | undefined;
3007
3021
  }, {
3008
3022
  rootPath?: string | undefined;
@@ -3021,7 +3035,7 @@ export declare const PLUGINS: {
3021
3035
  cf?: string | boolean | Record<string, any> | undefined;
3022
3036
  liveReload?: boolean | undefined;
3023
3037
  unsafeProxySharedSecret?: string | undefined;
3024
- unsafeModuleFallbackService?: ((request: Request, mf: Miniflare) => Awaitable<Response>) | undefined;
3038
+ unsafeModuleFallbackService?: ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
3025
3039
  unsafeStickyBlobs?: boolean | undefined;
3026
3040
  }>>;
3027
3041
  cache: Plugin<z.ZodObject<{
@@ -3257,20 +3271,26 @@ export declare const PLUGINS: {
3257
3271
  binding: z.ZodOptional<z.ZodString>;
3258
3272
  routingConfig: z.ZodOptional<z.ZodObject<{
3259
3273
  has_user_worker: z.ZodOptional<z.ZodBoolean>;
3274
+ invoke_user_worker_ahead_of_assets: z.ZodOptional<z.ZodBoolean>;
3260
3275
  }, "strip", z.ZodTypeAny, {
3261
3276
  has_user_worker?: boolean;
3277
+ invoke_user_worker_ahead_of_assets?: boolean;
3262
3278
  }, {
3263
3279
  has_user_worker?: boolean;
3280
+ invoke_user_worker_ahead_of_assets?: boolean;
3264
3281
  }>>;
3265
3282
  assetConfig: z.ZodOptional<z.ZodObject<{
3266
3283
  html_handling: z.ZodOptional<z.ZodEnum<["auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none"]>>;
3267
3284
  not_found_handling: z.ZodOptional<z.ZodEnum<["single-page-application", "404-page", "none"]>>;
3285
+ serve_directly: z.ZodOptional<z.ZodBoolean>;
3268
3286
  }, "strip", z.ZodTypeAny, {
3269
3287
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
3270
3288
  not_found_handling?: "none" | "single-page-application" | "404-page";
3289
+ serve_directly?: boolean;
3271
3290
  }, {
3272
3291
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
3273
3292
  not_found_handling?: "none" | "single-page-application" | "404-page";
3293
+ serve_directly?: boolean;
3274
3294
  }>>;
3275
3295
  }, "strip", z.ZodTypeAny, {
3276
3296
  directory: string;
@@ -3278,10 +3298,12 @@ export declare const PLUGINS: {
3278
3298
  binding?: string | undefined;
3279
3299
  routingConfig?: {
3280
3300
  has_user_worker?: boolean;
3301
+ invoke_user_worker_ahead_of_assets?: boolean;
3281
3302
  } | undefined;
3282
3303
  assetConfig?: {
3283
3304
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
3284
3305
  not_found_handling?: "none" | "single-page-application" | "404-page";
3306
+ serve_directly?: boolean;
3285
3307
  } | undefined;
3286
3308
  }, {
3287
3309
  directory: string;
@@ -3289,10 +3311,12 @@ export declare const PLUGINS: {
3289
3311
  binding?: string | undefined;
3290
3312
  routingConfig?: {
3291
3313
  has_user_worker?: boolean;
3314
+ invoke_user_worker_ahead_of_assets?: boolean;
3292
3315
  } | undefined;
3293
3316
  assetConfig?: {
3294
3317
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
3295
3318
  not_found_handling?: "none" | "single-page-application" | "404-page";
3319
+ serve_directly?: boolean;
3296
3320
  } | undefined;
3297
3321
  }>>;
3298
3322
  }, "strip", z.ZodTypeAny, {
@@ -3302,10 +3326,12 @@ export declare const PLUGINS: {
3302
3326
  binding?: string | undefined;
3303
3327
  routingConfig?: {
3304
3328
  has_user_worker?: boolean;
3329
+ invoke_user_worker_ahead_of_assets?: boolean;
3305
3330
  } | undefined;
3306
3331
  assetConfig?: {
3307
3332
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
3308
3333
  not_found_handling?: "none" | "single-page-application" | "404-page";
3334
+ serve_directly?: boolean;
3309
3335
  } | undefined;
3310
3336
  } | undefined;
3311
3337
  }, {
@@ -3315,13 +3341,48 @@ export declare const PLUGINS: {
3315
3341
  binding?: string | undefined;
3316
3342
  routingConfig?: {
3317
3343
  has_user_worker?: boolean;
3344
+ invoke_user_worker_ahead_of_assets?: boolean;
3318
3345
  } | undefined;
3319
3346
  assetConfig?: {
3320
3347
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
3321
3348
  not_found_handling?: "none" | "single-page-application" | "404-page";
3349
+ serve_directly?: boolean;
3322
3350
  } | undefined;
3323
3351
  } | undefined;
3324
3352
  }>>;
3353
+ workflows: Plugin<z.ZodObject<{
3354
+ workflows: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3355
+ name: z.ZodString;
3356
+ className: z.ZodString;
3357
+ scriptName: z.ZodOptional<z.ZodString>;
3358
+ }, "strip", z.ZodTypeAny, {
3359
+ name: string;
3360
+ className: string;
3361
+ scriptName?: string | undefined;
3362
+ }, {
3363
+ name: string;
3364
+ className: string;
3365
+ scriptName?: string | undefined;
3366
+ }>>>;
3367
+ }, "strip", z.ZodTypeAny, {
3368
+ workflows?: Record<string, {
3369
+ name: string;
3370
+ className: string;
3371
+ scriptName?: string | undefined;
3372
+ }> | undefined;
3373
+ }, {
3374
+ workflows?: Record<string, {
3375
+ name: string;
3376
+ className: string;
3377
+ scriptName?: string | undefined;
3378
+ }> | undefined;
3379
+ }>, z.ZodObject<{
3380
+ workflowsPersist: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
3381
+ }, "strip", z.ZodTypeAny, {
3382
+ workflowsPersist?: string | boolean | undefined;
3383
+ }, {
3384
+ workflowsPersist?: string | boolean | undefined;
3385
+ }>>;
3325
3386
  };
3326
3387
 
3327
3388
  export declare type Plugins = typeof PLUGINS;
@@ -3346,7 +3407,7 @@ export declare interface PluginServicesOptions<Options extends z.ZodType, Shared
3346
3407
 
3347
3408
  export declare function prefixError(prefix: string, e: any): Error;
3348
3409
 
3349
- export declare function prefixStream(prefix: Uint8Array, stream: ReadableStream_2<Uint8Array>): ReadableStream_2<Uint8Array>;
3410
+ export declare function prefixStream(prefix: Uint8Array, stream: ReadableStream_3<Uint8Array>): ReadableStream_3<Uint8Array>;
3350
3411
 
3351
3412
  export declare const ProxyAddresses: {
3352
3413
  readonly GLOBAL: 0;
@@ -3801,7 +3862,7 @@ export declare const RatelimitOptionsSchema: z.ZodObject<{
3801
3862
  }> | undefined;
3802
3863
  }>;
3803
3864
 
3804
- export declare function readPrefix(stream: ReadableStream_2<Uint8Array>, prefixLength: number): Promise<[prefix: Buffer, rest: ReadableStream_2<Uint8Array>]>;
3865
+ export declare function readPrefix(stream: ReadableStream_3<Uint8Array>, prefixLength: number): Promise<[prefix: Buffer, rest: ReadableStream_3<Uint8Array>]>;
3805
3866
 
3806
3867
  export declare function reduceError(e: any): JsonError;
3807
3868
 
@@ -3811,17 +3872,18 @@ export declare type ReducersRevivers = Record<string, ReducerReviver>;
3811
3872
 
3812
3873
  export { ReferrerPolicy }
3813
3874
 
3814
- export declare type ReplaceWorkersTypes<T> = T extends Request_3 ? Request : T extends Response_3 ? Response : T extends ReadableStream ? ReadableStream_2 : Required<T> extends Required<RequestInit_3> ? RequestInit : T extends Headers_2 ? Headers : T extends Blob_2 ? Blob_3 : T extends AbortSignal_2 ? AbortSignal : T extends Promise<infer P> ? Promise<ReplaceWorkersTypes<P>> : T extends (...args: infer P) => infer R ? (...args: ReplaceWorkersTypes<P>) => ReplaceWorkersTypes<R> : T extends object ? {
3875
+ export declare type ReplaceWorkersTypes<T> = T extends Request_4 ? Request_2 : T extends Response_4 ? Response_2 : T extends ReadableStream_2 ? ReadableStream_3 : Required<T> extends Required<RequestInit_4> ? RequestInit_2 : T extends Headers_3 ? Headers_2 : T extends Blob_2 ? Blob_3 : T extends AbortSignal_2 ? AbortSignal : T extends Promise<infer P> ? Promise<ReplaceWorkersTypes<P>> : T extends (...args: infer P) => infer R ? (...args: ReplaceWorkersTypes<P>) => ReplaceWorkersTypes<R> : T extends object ? {
3815
3876
  [K in keyof T]: OverloadReplaceWorkersTypes<T[K]>;
3816
3877
  } : T;
3817
3878
 
3818
- export declare class Request<CfType extends RequestInitCfType = RequestInitCfType> extends Request_2 {
3879
+ declare class Request_2<CfType extends RequestInitCfType = RequestInitCfType> extends Request_3 {
3819
3880
  [kCf]?: CfType;
3820
- constructor(input: RequestInfo, init?: RequestInit<CfType>);
3881
+ constructor(input: RequestInfo, init?: RequestInit_2<CfType>);
3821
3882
  get cf(): CfType | undefined;
3822
3883
  /** @ts-expect-error `clone` is actually defined as a method internally */
3823
- clone(): Request<CfType>;
3884
+ clone(): Request_2<CfType>;
3824
3885
  }
3886
+ export { Request_2 as Request }
3825
3887
 
3826
3888
  export { RequestCache }
3827
3889
 
@@ -3831,11 +3893,12 @@ export { RequestDestination }
3831
3893
 
3832
3894
  export { RequestDuplex }
3833
3895
 
3834
- export declare type RequestInfo = RequestInfo_2 | Request;
3896
+ export declare type RequestInfo = RequestInfo_2 | Request_2;
3835
3897
 
3836
- export declare interface RequestInit<CfType extends RequestInitCfType = RequestInitCfType> extends RequestInit_2 {
3898
+ declare interface RequestInit_2<CfType extends RequestInitCfType = RequestInitCfType> extends RequestInit_3 {
3837
3899
  cf?: CfType;
3838
3900
  }
3901
+ export { RequestInit_2 as RequestInit }
3839
3902
 
3840
3903
  export declare type RequestInitCfType = Partial<IncomingRequestCfProperties> | RequestInitCfProperties;
3841
3904
 
@@ -3843,22 +3906,24 @@ export { RequestMode }
3843
3906
 
3844
3907
  export { RequestRedirect }
3845
3908
 
3846
- export declare class Response extends Response_2 {
3909
+ declare class Response_2 extends Response_3 {
3847
3910
  readonly [kWebSocket]: WebSocket | null;
3848
- static error(): Response;
3849
- static redirect(url: string | URL, status: ResponseRedirectStatus): Response;
3850
- static json(data: any, init?: ResponseInit): Response;
3851
- constructor(body?: BodyInit, init?: ResponseInit);
3911
+ static error(): Response_2;
3912
+ static redirect(url: string | URL, status: ResponseRedirectStatus): Response_2;
3913
+ static json(data: any, init?: ResponseInit_2): Response_2;
3914
+ constructor(body?: BodyInit, init?: ResponseInit_2);
3852
3915
  /** @ts-expect-error `status` is actually defined as a getter internally */
3853
3916
  get status(): number;
3854
3917
  get webSocket(): WebSocket | null;
3855
3918
  /** @ts-expect-error `clone` is actually defined as a method internally */
3856
- clone(): Response;
3919
+ clone(): Response_2;
3857
3920
  }
3921
+ export { Response_2 as Response }
3858
3922
 
3859
- export declare interface ResponseInit extends ResponseInit_2 {
3923
+ declare interface ResponseInit_2 extends ResponseInit_3 {
3860
3924
  webSocket?: WebSocket | null;
3861
3925
  }
3926
+ export { ResponseInit_2 as ResponseInit }
3862
3927
 
3863
3928
  export { ResponseRedirectStatus }
3864
3929
 
@@ -3941,7 +4006,7 @@ export declare const SharedHeaders: {
3941
4006
  readonly LOG_LEVEL: "MF-Log-Level";
3942
4007
  };
3943
4008
 
3944
- export declare type SharedOptions = z.input<typeof CORE_PLUGIN.sharedOptions> & z.input<typeof CACHE_PLUGIN.sharedOptions> & z.input<typeof D1_PLUGIN.sharedOptions> & z.input<typeof DURABLE_OBJECTS_PLUGIN.sharedOptions> & z.input<typeof KV_PLUGIN.sharedOptions> & z.input<typeof R2_PLUGIN.sharedOptions>;
4009
+ export declare type SharedOptions = z.input<typeof CORE_PLUGIN.sharedOptions> & z.input<typeof CACHE_PLUGIN.sharedOptions> & z.input<typeof D1_PLUGIN.sharedOptions> & z.input<typeof DURABLE_OBJECTS_PLUGIN.sharedOptions> & z.input<typeof KV_PLUGIN.sharedOptions> & z.input<typeof R2_PLUGIN.sharedOptions> & z.input<typeof WORKFLOWS_PLUGIN.sharedOptions>;
3945
4010
 
3946
4011
  export declare const SiteBindings: {
3947
4012
  readonly KV_NAMESPACE_SITE: "__STATIC_CONTENT";
@@ -4178,7 +4243,7 @@ export declare class WebSocket extends TypedEventTarget<WebSocketEventMap> {
4178
4243
  }
4179
4244
 
4180
4245
  export declare type WebSocketEventMap = {
4181
- message: MessageEvent;
4246
+ message: MessageEvent_2;
4182
4247
  close: CloseEvent;
4183
4248
  error: ErrorEvent;
4184
4249
  };
@@ -4388,7 +4453,7 @@ export declare type Worker_Module = {
4388
4453
  pythonRequirement?: string;
4389
4454
  });
4390
4455
 
4391
- export declare type WorkerOptions = z.input<typeof CORE_PLUGIN.options> & z.input<typeof CACHE_PLUGIN.options> & z.input<typeof D1_PLUGIN.options> & z.input<typeof DURABLE_OBJECTS_PLUGIN.options> & z.input<typeof KV_PLUGIN.options> & z.input<typeof QUEUES_PLUGIN.options> & z.input<typeof R2_PLUGIN.options> & z.input<typeof HYPERDRIVE_PLUGIN.options> & z.input<typeof RATELIMIT_PLUGIN.options> & z.input<typeof ASSETS_PLUGIN.options>;
4456
+ export declare type WorkerOptions = z.input<typeof CORE_PLUGIN.options> & z.input<typeof CACHE_PLUGIN.options> & z.input<typeof D1_PLUGIN.options> & z.input<typeof DURABLE_OBJECTS_PLUGIN.options> & z.input<typeof KV_PLUGIN.options> & z.input<typeof QUEUES_PLUGIN.options> & z.input<typeof R2_PLUGIN.options> & z.input<typeof HYPERDRIVE_PLUGIN.options> & z.input<typeof RATELIMIT_PLUGIN.options> & z.input<typeof ASSETS_PLUGIN.options> & z.input<typeof WORKFLOWS_PLUGIN.options>;
4392
4457
 
4393
4458
  export declare interface WorkerRoute {
4394
4459
  target: string;
@@ -4401,6 +4466,48 @@ export declare interface WorkerRoute {
4401
4466
  allowPathSuffix: boolean;
4402
4467
  }
4403
4468
 
4469
+ export declare const WORKFLOWS_PLUGIN: Plugin<typeof WorkflowsOptionsSchema, typeof WorkflowsSharedOptionsSchema>;
4470
+
4471
+ export declare const WORKFLOWS_PLUGIN_NAME = "workflows";
4472
+
4473
+ export declare const WORKFLOWS_STORAGE_SERVICE_NAME = "workflows:storage";
4474
+
4475
+ export declare const WorkflowsOptionsSchema: z.ZodObject<{
4476
+ workflows: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
4477
+ name: z.ZodString;
4478
+ className: z.ZodString;
4479
+ scriptName: z.ZodOptional<z.ZodString>;
4480
+ }, "strip", z.ZodTypeAny, {
4481
+ name: string;
4482
+ className: string;
4483
+ scriptName?: string | undefined;
4484
+ }, {
4485
+ name: string;
4486
+ className: string;
4487
+ scriptName?: string | undefined;
4488
+ }>>>;
4489
+ }, "strip", z.ZodTypeAny, {
4490
+ workflows?: Record<string, {
4491
+ name: string;
4492
+ className: string;
4493
+ scriptName?: string | undefined;
4494
+ }> | undefined;
4495
+ }, {
4496
+ workflows?: Record<string, {
4497
+ name: string;
4498
+ className: string;
4499
+ scriptName?: string | undefined;
4500
+ }> | undefined;
4501
+ }>;
4502
+
4503
+ export declare const WorkflowsSharedOptionsSchema: z.ZodObject<{
4504
+ workflowsPersist: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
4505
+ }, "strip", z.ZodTypeAny, {
4506
+ workflowsPersist?: string | boolean | undefined;
4507
+ }, {
4508
+ workflowsPersist?: string | boolean | undefined;
4509
+ }>;
4510
+
4404
4511
  export declare type WrappedBindingNames = Set<string>;
4405
4512
 
4406
4513
  export declare function zAwaitable<T extends z.ZodTypeAny>(type: T): z.ZodUnion<[T, z.ZodPromise<T>]>;