miniflare 0.0.0-e44f496a8 → 0.0.0-e4716cc87
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.
- package/README.md +23 -0
- package/dist/src/index.d.ts +182 -73
- package/dist/src/index.js +280 -143
- package/dist/src/index.js.map +3 -3
- package/dist/src/workers/assets/assets.worker.js +109 -12
- package/dist/src/workers/assets/assets.worker.js.map +2 -2
- package/dist/src/workers/assets/router.worker.js +33 -20
- package/dist/src/workers/assets/router.worker.js.map +2 -2
- package/dist/src/workers/queues/broker.worker.js +1 -1
- package/dist/src/workers/workflows/binding.worker.js +1971 -0
- package/dist/src/workers/workflows/binding.worker.js.map +6 -0
- package/package.json +8 -6
package/dist/src/index.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
30
|
-
import type { Request as
|
|
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
|
|
37
|
-
import type { RequestInit as
|
|
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
|
|
42
|
-
import type { Response as
|
|
43
|
-
import { ResponseInit as
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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?:
|
|
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
|
|
@@ -1471,7 +1485,8 @@ export declare interface ExternalServer_Tcp {
|
|
|
1471
1485
|
certificateHost?: string;
|
|
1472
1486
|
}
|
|
1473
1487
|
|
|
1474
|
-
|
|
1488
|
+
declare function fetch_2(input: RequestInfo, init?: RequestInit_2 | Request_2): Promise<Response_2>;
|
|
1489
|
+
export { fetch_2 as fetch }
|
|
1475
1490
|
|
|
1476
1491
|
export { File }
|
|
1477
1492
|
|
|
@@ -1479,7 +1494,7 @@ export declare function _forceColour(enabled?: boolean): void;
|
|
|
1479
1494
|
|
|
1480
1495
|
export declare function formatZodError(error: z.ZodError, input: unknown): string;
|
|
1481
1496
|
|
|
1482
|
-
export { FormData }
|
|
1497
|
+
export { FormData_2 as FormData }
|
|
1483
1498
|
|
|
1484
1499
|
export declare function getAccessibleHosts(ipv4Only?: boolean): string[];
|
|
1485
1500
|
|
|
@@ -1543,7 +1558,7 @@ export declare interface GlobalServicesOptions {
|
|
|
1543
1558
|
|
|
1544
1559
|
export declare function globsToRegExps(globs?: string[]): MatcherRegExps;
|
|
1545
1560
|
|
|
1546
|
-
export { Headers }
|
|
1561
|
+
export { Headers_2 as Headers }
|
|
1547
1562
|
|
|
1548
1563
|
export { HeadersInit }
|
|
1549
1564
|
|
|
@@ -1749,12 +1764,13 @@ export declare function maybeParseURL(url: Persistence): URL | undefined;
|
|
|
1749
1764
|
*/
|
|
1750
1765
|
export declare function mergeWorkerOptions(a: Partial<WorkerOptions>, b: Partial<WorkerOptions>): Partial<WorkerOptions>;
|
|
1751
1766
|
|
|
1752
|
-
|
|
1767
|
+
declare class MessageEvent_2 extends Event {
|
|
1753
1768
|
readonly data: ArrayBuffer | string;
|
|
1754
1769
|
constructor(type: "message", init: {
|
|
1755
1770
|
data: ArrayBuffer | string;
|
|
1756
1771
|
});
|
|
1757
1772
|
}
|
|
1773
|
+
export { MessageEvent_2 as MessageEvent }
|
|
1758
1774
|
|
|
1759
1775
|
export declare function migrateDatabase(log: Log, uniqueKey: string, persistPath: string, namespace: string): Promise<void>;
|
|
1760
1776
|
|
|
@@ -1853,7 +1869,7 @@ export declare interface Network {
|
|
|
1853
1869
|
tlsOptions?: TlsOptions;
|
|
1854
1870
|
}
|
|
1855
1871
|
|
|
1856
|
-
export declare const NODE_PLATFORM_IMPL: PlatformImpl<
|
|
1872
|
+
export declare const NODE_PLATFORM_IMPL: PlatformImpl<ReadableStream_3>;
|
|
1857
1873
|
|
|
1858
1874
|
/**
|
|
1859
1875
|
* We can provide Node.js compatibility in a number of different modes:
|
|
@@ -1985,9 +2001,9 @@ export declare const PersistenceSchema: z.ZodOptional<z.ZodUnion<[z.ZodBoolean,
|
|
|
1985
2001
|
export declare interface PlatformImpl<RS> {
|
|
1986
2002
|
Blob: typeof Blob_2;
|
|
1987
2003
|
File: typeof File_2;
|
|
1988
|
-
Headers: typeof
|
|
1989
|
-
Request: typeof
|
|
1990
|
-
Response: typeof
|
|
2004
|
+
Headers: typeof Headers_3;
|
|
2005
|
+
Request: typeof Request_4;
|
|
2006
|
+
Response: typeof Response_4;
|
|
1991
2007
|
isReadableStream(value: unknown): value is RS;
|
|
1992
2008
|
bufferReadableStream(stream: RS): Promise<ArrayBuffer>;
|
|
1993
2009
|
unbufferReadableStream(buffer: ArrayBuffer): RS;
|
|
@@ -2260,7 +2276,7 @@ export declare const PLUGINS: {
|
|
|
2260
2276
|
path: string;
|
|
2261
2277
|
writable?: boolean | undefined;
|
|
2262
2278
|
};
|
|
2263
|
-
}>, z.ZodType<(request:
|
|
2279
|
+
}>, z.ZodType<(request: Request_2, mf: Miniflare) => Awaitable<Response_2>, z.ZodTypeDef, (request: Request_2, mf: Miniflare) => Awaitable<Response_2>>]>>>;
|
|
2264
2280
|
wrappedBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
2265
2281
|
scriptName: z.ZodString;
|
|
2266
2282
|
entrypoint: z.ZodOptional<z.ZodString>;
|
|
@@ -2412,7 +2428,7 @@ export declare const PLUGINS: {
|
|
|
2412
2428
|
path: string;
|
|
2413
2429
|
writable?: boolean | undefined;
|
|
2414
2430
|
};
|
|
2415
|
-
}>, z.ZodType<(request:
|
|
2431
|
+
}>, z.ZodType<(request: Request_2, mf: Miniflare) => Awaitable<Response_2>, z.ZodTypeDef, (request: Request_2, mf: Miniflare) => Awaitable<Response_2>>]>>;
|
|
2416
2432
|
fetchMock: z.ZodOptional<z.ZodType<MockAgent<MockAgent>, z.ZodTypeDef, MockAgent<MockAgent>>>;
|
|
2417
2433
|
unsafeEphemeralDurableObjects: z.ZodOptional<z.ZodBoolean>;
|
|
2418
2434
|
unsafeDirectSockets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2470,7 +2486,7 @@ export declare const PLUGINS: {
|
|
|
2470
2486
|
path: string;
|
|
2471
2487
|
writable?: boolean | undefined;
|
|
2472
2488
|
};
|
|
2473
|
-
} | ((request:
|
|
2489
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
|
|
2474
2490
|
wrappedBindings?: Record<string, string | {
|
|
2475
2491
|
scriptName: string;
|
|
2476
2492
|
entrypoint?: string | undefined;
|
|
@@ -2502,7 +2518,7 @@ export declare const PLUGINS: {
|
|
|
2502
2518
|
path: string;
|
|
2503
2519
|
writable?: boolean | undefined;
|
|
2504
2520
|
};
|
|
2505
|
-
} | ((request:
|
|
2521
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
|
|
2506
2522
|
fetchMock?: MockAgent<MockAgent> | undefined;
|
|
2507
2523
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
2508
2524
|
unsafeDirectSockets?: {
|
|
@@ -2550,7 +2566,7 @@ export declare const PLUGINS: {
|
|
|
2550
2566
|
path: string;
|
|
2551
2567
|
writable?: boolean | undefined;
|
|
2552
2568
|
};
|
|
2553
|
-
} | ((request:
|
|
2569
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
|
|
2554
2570
|
wrappedBindings?: Record<string, string | {
|
|
2555
2571
|
scriptName: string;
|
|
2556
2572
|
entrypoint?: string | undefined;
|
|
@@ -2582,7 +2598,7 @@ export declare const PLUGINS: {
|
|
|
2582
2598
|
path: string;
|
|
2583
2599
|
writable?: boolean | undefined;
|
|
2584
2600
|
};
|
|
2585
|
-
} | ((request:
|
|
2601
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
|
|
2586
2602
|
fetchMock?: MockAgent<MockAgent> | undefined;
|
|
2587
2603
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
2588
2604
|
unsafeDirectSockets?: {
|
|
@@ -2637,7 +2653,7 @@ export declare const PLUGINS: {
|
|
|
2637
2653
|
path: string;
|
|
2638
2654
|
writable?: boolean | undefined;
|
|
2639
2655
|
};
|
|
2640
|
-
} | ((request:
|
|
2656
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
|
|
2641
2657
|
wrappedBindings?: Record<string, string | {
|
|
2642
2658
|
scriptName: string;
|
|
2643
2659
|
entrypoint?: string | undefined;
|
|
@@ -2669,7 +2685,7 @@ export declare const PLUGINS: {
|
|
|
2669
2685
|
path: string;
|
|
2670
2686
|
writable?: boolean | undefined;
|
|
2671
2687
|
};
|
|
2672
|
-
} | ((request:
|
|
2688
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
|
|
2673
2689
|
fetchMock?: MockAgent<MockAgent> | undefined;
|
|
2674
2690
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
2675
2691
|
unsafeDirectSockets?: {
|
|
@@ -2727,7 +2743,7 @@ export declare const PLUGINS: {
|
|
|
2727
2743
|
path: string;
|
|
2728
2744
|
writable?: boolean | undefined;
|
|
2729
2745
|
};
|
|
2730
|
-
} | ((request:
|
|
2746
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
|
|
2731
2747
|
wrappedBindings?: Record<string, string | {
|
|
2732
2748
|
scriptName: string;
|
|
2733
2749
|
entrypoint?: string | undefined;
|
|
@@ -2759,7 +2775,7 @@ export declare const PLUGINS: {
|
|
|
2759
2775
|
path: string;
|
|
2760
2776
|
writable?: boolean | undefined;
|
|
2761
2777
|
};
|
|
2762
|
-
} | ((request:
|
|
2778
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
|
|
2763
2779
|
fetchMock?: MockAgent<MockAgent> | undefined;
|
|
2764
2780
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
2765
2781
|
unsafeDirectSockets?: {
|
|
@@ -2816,7 +2832,7 @@ export declare const PLUGINS: {
|
|
|
2816
2832
|
path: string;
|
|
2817
2833
|
writable?: boolean | undefined;
|
|
2818
2834
|
};
|
|
2819
|
-
} | ((request:
|
|
2835
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
|
|
2820
2836
|
wrappedBindings?: Record<string, string | {
|
|
2821
2837
|
scriptName: string;
|
|
2822
2838
|
entrypoint?: string | undefined;
|
|
@@ -2848,7 +2864,7 @@ export declare const PLUGINS: {
|
|
|
2848
2864
|
path: string;
|
|
2849
2865
|
writable?: boolean | undefined;
|
|
2850
2866
|
};
|
|
2851
|
-
} | ((request:
|
|
2867
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
|
|
2852
2868
|
fetchMock?: MockAgent<MockAgent> | undefined;
|
|
2853
2869
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
2854
2870
|
unsafeDirectSockets?: {
|
|
@@ -2922,7 +2938,7 @@ export declare const PLUGINS: {
|
|
|
2922
2938
|
path: string;
|
|
2923
2939
|
writable?: boolean | undefined;
|
|
2924
2940
|
};
|
|
2925
|
-
} | ((request:
|
|
2941
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
|
|
2926
2942
|
wrappedBindings?: Record<string, string | {
|
|
2927
2943
|
scriptName: string;
|
|
2928
2944
|
entrypoint?: string | undefined;
|
|
@@ -2954,7 +2970,7 @@ export declare const PLUGINS: {
|
|
|
2954
2970
|
path: string;
|
|
2955
2971
|
writable?: boolean | undefined;
|
|
2956
2972
|
};
|
|
2957
|
-
} | ((request:
|
|
2973
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
|
|
2958
2974
|
fetchMock?: MockAgent<MockAgent> | undefined;
|
|
2959
2975
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
2960
2976
|
unsafeDirectSockets?: {
|
|
@@ -2983,7 +2999,7 @@ export declare const PLUGINS: {
|
|
|
2983
2999
|
cf: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>;
|
|
2984
3000
|
liveReload: z.ZodOptional<z.ZodBoolean>;
|
|
2985
3001
|
unsafeProxySharedSecret: z.ZodOptional<z.ZodString>;
|
|
2986
|
-
unsafeModuleFallbackService: z.ZodOptional<z.ZodType<(request:
|
|
3002
|
+
unsafeModuleFallbackService: z.ZodOptional<z.ZodType<(request: Request_2, mf: Miniflare) => Awaitable<Response_2>, z.ZodTypeDef, (request: Request_2, mf: Miniflare) => Awaitable<Response_2>>>;
|
|
2987
3003
|
unsafeStickyBlobs: z.ZodOptional<z.ZodBoolean>;
|
|
2988
3004
|
}, "strip", z.ZodTypeAny, {
|
|
2989
3005
|
rootPath?: undefined;
|
|
@@ -3002,7 +3018,7 @@ export declare const PLUGINS: {
|
|
|
3002
3018
|
cf?: string | boolean | Record<string, any> | undefined;
|
|
3003
3019
|
liveReload?: boolean | undefined;
|
|
3004
3020
|
unsafeProxySharedSecret?: string | undefined;
|
|
3005
|
-
unsafeModuleFallbackService?: ((request:
|
|
3021
|
+
unsafeModuleFallbackService?: ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
|
|
3006
3022
|
unsafeStickyBlobs?: boolean | undefined;
|
|
3007
3023
|
}, {
|
|
3008
3024
|
rootPath?: string | undefined;
|
|
@@ -3021,7 +3037,7 @@ export declare const PLUGINS: {
|
|
|
3021
3037
|
cf?: string | boolean | Record<string, any> | undefined;
|
|
3022
3038
|
liveReload?: boolean | undefined;
|
|
3023
3039
|
unsafeProxySharedSecret?: string | undefined;
|
|
3024
|
-
unsafeModuleFallbackService?: ((request:
|
|
3040
|
+
unsafeModuleFallbackService?: ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
|
|
3025
3041
|
unsafeStickyBlobs?: boolean | undefined;
|
|
3026
3042
|
}>>;
|
|
3027
3043
|
cache: Plugin<z.ZodObject<{
|
|
@@ -3257,20 +3273,26 @@ export declare const PLUGINS: {
|
|
|
3257
3273
|
binding: z.ZodOptional<z.ZodString>;
|
|
3258
3274
|
routingConfig: z.ZodOptional<z.ZodObject<{
|
|
3259
3275
|
has_user_worker: z.ZodOptional<z.ZodBoolean>;
|
|
3276
|
+
invoke_user_worker_ahead_of_assets: z.ZodOptional<z.ZodBoolean>;
|
|
3260
3277
|
}, "strip", z.ZodTypeAny, {
|
|
3261
3278
|
has_user_worker?: boolean;
|
|
3279
|
+
invoke_user_worker_ahead_of_assets?: boolean;
|
|
3262
3280
|
}, {
|
|
3263
3281
|
has_user_worker?: boolean;
|
|
3282
|
+
invoke_user_worker_ahead_of_assets?: boolean;
|
|
3264
3283
|
}>>;
|
|
3265
3284
|
assetConfig: z.ZodOptional<z.ZodObject<{
|
|
3266
3285
|
html_handling: z.ZodOptional<z.ZodEnum<["auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none"]>>;
|
|
3267
3286
|
not_found_handling: z.ZodOptional<z.ZodEnum<["single-page-application", "404-page", "none"]>>;
|
|
3287
|
+
serve_directly: z.ZodOptional<z.ZodBoolean>;
|
|
3268
3288
|
}, "strip", z.ZodTypeAny, {
|
|
3269
3289
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
3270
3290
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
3291
|
+
serve_directly?: boolean;
|
|
3271
3292
|
}, {
|
|
3272
3293
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
3273
3294
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
3295
|
+
serve_directly?: boolean;
|
|
3274
3296
|
}>>;
|
|
3275
3297
|
}, "strip", z.ZodTypeAny, {
|
|
3276
3298
|
directory: string;
|
|
@@ -3278,10 +3300,12 @@ export declare const PLUGINS: {
|
|
|
3278
3300
|
binding?: string | undefined;
|
|
3279
3301
|
routingConfig?: {
|
|
3280
3302
|
has_user_worker?: boolean;
|
|
3303
|
+
invoke_user_worker_ahead_of_assets?: boolean;
|
|
3281
3304
|
} | undefined;
|
|
3282
3305
|
assetConfig?: {
|
|
3283
3306
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
3284
3307
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
3308
|
+
serve_directly?: boolean;
|
|
3285
3309
|
} | undefined;
|
|
3286
3310
|
}, {
|
|
3287
3311
|
directory: string;
|
|
@@ -3289,10 +3313,12 @@ export declare const PLUGINS: {
|
|
|
3289
3313
|
binding?: string | undefined;
|
|
3290
3314
|
routingConfig?: {
|
|
3291
3315
|
has_user_worker?: boolean;
|
|
3316
|
+
invoke_user_worker_ahead_of_assets?: boolean;
|
|
3292
3317
|
} | undefined;
|
|
3293
3318
|
assetConfig?: {
|
|
3294
3319
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
3295
3320
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
3321
|
+
serve_directly?: boolean;
|
|
3296
3322
|
} | undefined;
|
|
3297
3323
|
}>>;
|
|
3298
3324
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3302,10 +3328,12 @@ export declare const PLUGINS: {
|
|
|
3302
3328
|
binding?: string | undefined;
|
|
3303
3329
|
routingConfig?: {
|
|
3304
3330
|
has_user_worker?: boolean;
|
|
3331
|
+
invoke_user_worker_ahead_of_assets?: boolean;
|
|
3305
3332
|
} | undefined;
|
|
3306
3333
|
assetConfig?: {
|
|
3307
3334
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
3308
3335
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
3336
|
+
serve_directly?: boolean;
|
|
3309
3337
|
} | undefined;
|
|
3310
3338
|
} | undefined;
|
|
3311
3339
|
}, {
|
|
@@ -3315,13 +3343,48 @@ export declare const PLUGINS: {
|
|
|
3315
3343
|
binding?: string | undefined;
|
|
3316
3344
|
routingConfig?: {
|
|
3317
3345
|
has_user_worker?: boolean;
|
|
3346
|
+
invoke_user_worker_ahead_of_assets?: boolean;
|
|
3318
3347
|
} | undefined;
|
|
3319
3348
|
assetConfig?: {
|
|
3320
3349
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
3321
3350
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
3351
|
+
serve_directly?: boolean;
|
|
3322
3352
|
} | undefined;
|
|
3323
3353
|
} | undefined;
|
|
3324
3354
|
}>>;
|
|
3355
|
+
workflows: Plugin<z.ZodObject<{
|
|
3356
|
+
workflows: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3357
|
+
name: z.ZodString;
|
|
3358
|
+
className: z.ZodString;
|
|
3359
|
+
scriptName: z.ZodOptional<z.ZodString>;
|
|
3360
|
+
}, "strip", z.ZodTypeAny, {
|
|
3361
|
+
name: string;
|
|
3362
|
+
className: string;
|
|
3363
|
+
scriptName?: string | undefined;
|
|
3364
|
+
}, {
|
|
3365
|
+
name: string;
|
|
3366
|
+
className: string;
|
|
3367
|
+
scriptName?: string | undefined;
|
|
3368
|
+
}>>>;
|
|
3369
|
+
}, "strip", z.ZodTypeAny, {
|
|
3370
|
+
workflows?: Record<string, {
|
|
3371
|
+
name: string;
|
|
3372
|
+
className: string;
|
|
3373
|
+
scriptName?: string | undefined;
|
|
3374
|
+
}> | undefined;
|
|
3375
|
+
}, {
|
|
3376
|
+
workflows?: Record<string, {
|
|
3377
|
+
name: string;
|
|
3378
|
+
className: string;
|
|
3379
|
+
scriptName?: string | undefined;
|
|
3380
|
+
}> | undefined;
|
|
3381
|
+
}>, z.ZodObject<{
|
|
3382
|
+
workflowsPersist: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
|
|
3383
|
+
}, "strip", z.ZodTypeAny, {
|
|
3384
|
+
workflowsPersist?: string | boolean | undefined;
|
|
3385
|
+
}, {
|
|
3386
|
+
workflowsPersist?: string | boolean | undefined;
|
|
3387
|
+
}>>;
|
|
3325
3388
|
};
|
|
3326
3389
|
|
|
3327
3390
|
export declare type Plugins = typeof PLUGINS;
|
|
@@ -3346,7 +3409,7 @@ export declare interface PluginServicesOptions<Options extends z.ZodType, Shared
|
|
|
3346
3409
|
|
|
3347
3410
|
export declare function prefixError(prefix: string, e: any): Error;
|
|
3348
3411
|
|
|
3349
|
-
export declare function prefixStream(prefix: Uint8Array, stream:
|
|
3412
|
+
export declare function prefixStream(prefix: Uint8Array, stream: ReadableStream_3<Uint8Array>): ReadableStream_3<Uint8Array>;
|
|
3350
3413
|
|
|
3351
3414
|
export declare const ProxyAddresses: {
|
|
3352
3415
|
readonly GLOBAL: 0;
|
|
@@ -3801,7 +3864,7 @@ export declare const RatelimitOptionsSchema: z.ZodObject<{
|
|
|
3801
3864
|
}> | undefined;
|
|
3802
3865
|
}>;
|
|
3803
3866
|
|
|
3804
|
-
export declare function readPrefix(stream:
|
|
3867
|
+
export declare function readPrefix(stream: ReadableStream_3<Uint8Array>, prefixLength: number): Promise<[prefix: Buffer, rest: ReadableStream_3<Uint8Array>]>;
|
|
3805
3868
|
|
|
3806
3869
|
export declare function reduceError(e: any): JsonError;
|
|
3807
3870
|
|
|
@@ -3811,17 +3874,18 @@ export declare type ReducersRevivers = Record<string, ReducerReviver>;
|
|
|
3811
3874
|
|
|
3812
3875
|
export { ReferrerPolicy }
|
|
3813
3876
|
|
|
3814
|
-
export declare type ReplaceWorkersTypes<T> = T extends
|
|
3877
|
+
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
3878
|
[K in keyof T]: OverloadReplaceWorkersTypes<T[K]>;
|
|
3816
3879
|
} : T;
|
|
3817
3880
|
|
|
3818
|
-
|
|
3881
|
+
declare class Request_2<CfType extends RequestInitCfType = RequestInitCfType> extends Request_3 {
|
|
3819
3882
|
[kCf]?: CfType;
|
|
3820
|
-
constructor(input: RequestInfo, init?:
|
|
3883
|
+
constructor(input: RequestInfo, init?: RequestInit_2<CfType>);
|
|
3821
3884
|
get cf(): CfType | undefined;
|
|
3822
3885
|
/** @ts-expect-error `clone` is actually defined as a method internally */
|
|
3823
|
-
clone():
|
|
3886
|
+
clone(): Request_2<CfType>;
|
|
3824
3887
|
}
|
|
3888
|
+
export { Request_2 as Request }
|
|
3825
3889
|
|
|
3826
3890
|
export { RequestCache }
|
|
3827
3891
|
|
|
@@ -3831,11 +3895,12 @@ export { RequestDestination }
|
|
|
3831
3895
|
|
|
3832
3896
|
export { RequestDuplex }
|
|
3833
3897
|
|
|
3834
|
-
export declare type RequestInfo = RequestInfo_2 |
|
|
3898
|
+
export declare type RequestInfo = RequestInfo_2 | Request_2;
|
|
3835
3899
|
|
|
3836
|
-
|
|
3900
|
+
declare interface RequestInit_2<CfType extends RequestInitCfType = RequestInitCfType> extends RequestInit_3 {
|
|
3837
3901
|
cf?: CfType;
|
|
3838
3902
|
}
|
|
3903
|
+
export { RequestInit_2 as RequestInit }
|
|
3839
3904
|
|
|
3840
3905
|
export declare type RequestInitCfType = Partial<IncomingRequestCfProperties> | RequestInitCfProperties;
|
|
3841
3906
|
|
|
@@ -3843,22 +3908,24 @@ export { RequestMode }
|
|
|
3843
3908
|
|
|
3844
3909
|
export { RequestRedirect }
|
|
3845
3910
|
|
|
3846
|
-
|
|
3911
|
+
declare class Response_2 extends Response_3 {
|
|
3847
3912
|
readonly [kWebSocket]: WebSocket | null;
|
|
3848
|
-
static error():
|
|
3849
|
-
static redirect(url: string | URL, status: ResponseRedirectStatus):
|
|
3850
|
-
static json(data: any, init?:
|
|
3851
|
-
constructor(body?: BodyInit, init?:
|
|
3913
|
+
static error(): Response_2;
|
|
3914
|
+
static redirect(url: string | URL, status: ResponseRedirectStatus): Response_2;
|
|
3915
|
+
static json(data: any, init?: ResponseInit_2): Response_2;
|
|
3916
|
+
constructor(body?: BodyInit, init?: ResponseInit_2);
|
|
3852
3917
|
/** @ts-expect-error `status` is actually defined as a getter internally */
|
|
3853
3918
|
get status(): number;
|
|
3854
3919
|
get webSocket(): WebSocket | null;
|
|
3855
3920
|
/** @ts-expect-error `clone` is actually defined as a method internally */
|
|
3856
|
-
clone():
|
|
3921
|
+
clone(): Response_2;
|
|
3857
3922
|
}
|
|
3923
|
+
export { Response_2 as Response }
|
|
3858
3924
|
|
|
3859
|
-
|
|
3925
|
+
declare interface ResponseInit_2 extends ResponseInit_3 {
|
|
3860
3926
|
webSocket?: WebSocket | null;
|
|
3861
3927
|
}
|
|
3928
|
+
export { ResponseInit_2 as ResponseInit }
|
|
3862
3929
|
|
|
3863
3930
|
export { ResponseRedirectStatus }
|
|
3864
3931
|
|
|
@@ -3941,7 +4008,7 @@ export declare const SharedHeaders: {
|
|
|
3941
4008
|
readonly LOG_LEVEL: "MF-Log-Level";
|
|
3942
4009
|
};
|
|
3943
4010
|
|
|
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>;
|
|
4011
|
+
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
4012
|
|
|
3946
4013
|
export declare const SiteBindings: {
|
|
3947
4014
|
readonly KV_NAMESPACE_SITE: "__STATIC_CONTENT";
|
|
@@ -4178,7 +4245,7 @@ export declare class WebSocket extends TypedEventTarget<WebSocketEventMap> {
|
|
|
4178
4245
|
}
|
|
4179
4246
|
|
|
4180
4247
|
export declare type WebSocketEventMap = {
|
|
4181
|
-
message:
|
|
4248
|
+
message: MessageEvent_2;
|
|
4182
4249
|
close: CloseEvent;
|
|
4183
4250
|
error: ErrorEvent;
|
|
4184
4251
|
};
|
|
@@ -4388,7 +4455,7 @@ export declare type Worker_Module = {
|
|
|
4388
4455
|
pythonRequirement?: string;
|
|
4389
4456
|
});
|
|
4390
4457
|
|
|
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>;
|
|
4458
|
+
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
4459
|
|
|
4393
4460
|
export declare interface WorkerRoute {
|
|
4394
4461
|
target: string;
|
|
@@ -4401,6 +4468,48 @@ export declare interface WorkerRoute {
|
|
|
4401
4468
|
allowPathSuffix: boolean;
|
|
4402
4469
|
}
|
|
4403
4470
|
|
|
4471
|
+
export declare const WORKFLOWS_PLUGIN: Plugin<typeof WorkflowsOptionsSchema, typeof WorkflowsSharedOptionsSchema>;
|
|
4472
|
+
|
|
4473
|
+
export declare const WORKFLOWS_PLUGIN_NAME = "workflows";
|
|
4474
|
+
|
|
4475
|
+
export declare const WORKFLOWS_STORAGE_SERVICE_NAME = "workflows:storage";
|
|
4476
|
+
|
|
4477
|
+
export declare const WorkflowsOptionsSchema: z.ZodObject<{
|
|
4478
|
+
workflows: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4479
|
+
name: z.ZodString;
|
|
4480
|
+
className: z.ZodString;
|
|
4481
|
+
scriptName: z.ZodOptional<z.ZodString>;
|
|
4482
|
+
}, "strip", z.ZodTypeAny, {
|
|
4483
|
+
name: string;
|
|
4484
|
+
className: string;
|
|
4485
|
+
scriptName?: string | undefined;
|
|
4486
|
+
}, {
|
|
4487
|
+
name: string;
|
|
4488
|
+
className: string;
|
|
4489
|
+
scriptName?: string | undefined;
|
|
4490
|
+
}>>>;
|
|
4491
|
+
}, "strip", z.ZodTypeAny, {
|
|
4492
|
+
workflows?: Record<string, {
|
|
4493
|
+
name: string;
|
|
4494
|
+
className: string;
|
|
4495
|
+
scriptName?: string | undefined;
|
|
4496
|
+
}> | undefined;
|
|
4497
|
+
}, {
|
|
4498
|
+
workflows?: Record<string, {
|
|
4499
|
+
name: string;
|
|
4500
|
+
className: string;
|
|
4501
|
+
scriptName?: string | undefined;
|
|
4502
|
+
}> | undefined;
|
|
4503
|
+
}>;
|
|
4504
|
+
|
|
4505
|
+
export declare const WorkflowsSharedOptionsSchema: z.ZodObject<{
|
|
4506
|
+
workflowsPersist: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
|
|
4507
|
+
}, "strip", z.ZodTypeAny, {
|
|
4508
|
+
workflowsPersist?: string | boolean | undefined;
|
|
4509
|
+
}, {
|
|
4510
|
+
workflowsPersist?: string | boolean | undefined;
|
|
4511
|
+
}>;
|
|
4512
|
+
|
|
4404
4513
|
export declare type WrappedBindingNames = Set<string>;
|
|
4405
4514
|
|
|
4406
4515
|
export declare function zAwaitable<T extends z.ZodTypeAny>(type: T): z.ZodUnion<[T, z.ZodPromise<T>]>;
|