miniflare 0.0.0-e51304ca0 → 0.0.0-e5dbedd78
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/dist/src/index.d.ts +241 -185
- package/dist/src/index.js +543 -71
- package/dist/src/index.js.map +3 -3
- package/dist/src/workers/assets/assets.worker.js +78 -28
- package/dist/src/workers/assets/assets.worker.js.map +2 -2
- package/dist/src/workers/assets/rpc-proxy.worker.js +7 -0
- package/dist/src/workers/assets/rpc-proxy.worker.js.map +1 -1
- package/dist/src/workers/core/entry.worker.js +3 -1
- package/dist/src/workers/core/entry.worker.js.map +1 -1
- package/dist/src/workers/d1/database.worker.js +6 -2
- package/dist/src/workers/d1/database.worker.js.map +1 -1
- package/dist/src/workers/workflows/binding.worker.js +3 -0
- package/dist/src/workers/workflows/binding.worker.js.map +1 -1
- package/package.json +7 -6
package/dist/src/index.d.ts
CHANGED
|
@@ -103,7 +103,7 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
103
103
|
invoke_user_worker_ahead_of_assets?: boolean;
|
|
104
104
|
has_user_worker?: boolean;
|
|
105
105
|
}>>;
|
|
106
|
-
assetConfig: z.ZodOptional<z.ZodObject<{
|
|
106
|
+
assetConfig: z.ZodOptional<z.ZodObject<Omit<{
|
|
107
107
|
account_id: z.ZodOptional<z.ZodNumber>;
|
|
108
108
|
script_id: z.ZodOptional<z.ZodNumber>;
|
|
109
109
|
compatibility_date: z.ZodOptional<z.ZodString>;
|
|
@@ -183,13 +183,18 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
183
183
|
unset?: string[];
|
|
184
184
|
}>;
|
|
185
185
|
}>>;
|
|
186
|
-
}, "strip", z.ZodTypeAny, {
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
186
|
+
}, "compatibility_date" | "compatibility_flags">, "strip", z.ZodTypeAny, {
|
|
187
|
+
headers?: {
|
|
188
|
+
version?: 2;
|
|
189
|
+
rules?: Record<string, {
|
|
190
|
+
set?: Record<string, string>;
|
|
191
|
+
unset?: string[];
|
|
192
|
+
}>;
|
|
193
|
+
} | undefined;
|
|
194
|
+
account_id?: number | undefined;
|
|
195
|
+
script_id?: number | undefined;
|
|
196
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
197
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
193
198
|
redirects?: {
|
|
194
199
|
version?: 1;
|
|
195
200
|
staticRules?: Record<string, {
|
|
@@ -201,21 +206,19 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
201
206
|
status?: number;
|
|
202
207
|
to?: string;
|
|
203
208
|
}>;
|
|
204
|
-
};
|
|
209
|
+
} | undefined;
|
|
210
|
+
}, {
|
|
205
211
|
headers?: {
|
|
206
212
|
version?: 2;
|
|
207
213
|
rules?: Record<string, {
|
|
208
214
|
set?: Record<string, string>;
|
|
209
215
|
unset?: string[];
|
|
210
216
|
}>;
|
|
211
|
-
};
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
compatibility_flags?: string[];
|
|
217
|
-
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
218
|
-
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
217
|
+
} | undefined;
|
|
218
|
+
account_id?: number | undefined;
|
|
219
|
+
script_id?: number | undefined;
|
|
220
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
221
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
219
222
|
redirects?: {
|
|
220
223
|
version?: 1;
|
|
221
224
|
staticRules?: Record<string, {
|
|
@@ -227,14 +230,7 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
227
230
|
status?: number;
|
|
228
231
|
to?: string;
|
|
229
232
|
}>;
|
|
230
|
-
};
|
|
231
|
-
headers?: {
|
|
232
|
-
version?: 2;
|
|
233
|
-
rules?: Record<string, {
|
|
234
|
-
set?: Record<string, string>;
|
|
235
|
-
unset?: string[];
|
|
236
|
-
}>;
|
|
237
|
-
};
|
|
233
|
+
} | undefined;
|
|
238
234
|
}>>;
|
|
239
235
|
}, "strip", z.ZodTypeAny, {
|
|
240
236
|
directory: string;
|
|
@@ -247,12 +243,17 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
247
243
|
has_user_worker?: boolean;
|
|
248
244
|
} | undefined;
|
|
249
245
|
assetConfig?: {
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
246
|
+
headers?: {
|
|
247
|
+
version?: 2;
|
|
248
|
+
rules?: Record<string, {
|
|
249
|
+
set?: Record<string, string>;
|
|
250
|
+
unset?: string[];
|
|
251
|
+
}>;
|
|
252
|
+
} | undefined;
|
|
253
|
+
account_id?: number | undefined;
|
|
254
|
+
script_id?: number | undefined;
|
|
255
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
256
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
256
257
|
redirects?: {
|
|
257
258
|
version?: 1;
|
|
258
259
|
staticRules?: Record<string, {
|
|
@@ -264,14 +265,7 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
264
265
|
status?: number;
|
|
265
266
|
to?: string;
|
|
266
267
|
}>;
|
|
267
|
-
};
|
|
268
|
-
headers?: {
|
|
269
|
-
version?: 2;
|
|
270
|
-
rules?: Record<string, {
|
|
271
|
-
set?: Record<string, string>;
|
|
272
|
-
unset?: string[];
|
|
273
|
-
}>;
|
|
274
|
-
};
|
|
268
|
+
} | undefined;
|
|
275
269
|
} | undefined;
|
|
276
270
|
}, {
|
|
277
271
|
directory: string;
|
|
@@ -284,12 +278,17 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
284
278
|
has_user_worker?: boolean;
|
|
285
279
|
} | undefined;
|
|
286
280
|
assetConfig?: {
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
281
|
+
headers?: {
|
|
282
|
+
version?: 2;
|
|
283
|
+
rules?: Record<string, {
|
|
284
|
+
set?: Record<string, string>;
|
|
285
|
+
unset?: string[];
|
|
286
|
+
}>;
|
|
287
|
+
} | undefined;
|
|
288
|
+
account_id?: number | undefined;
|
|
289
|
+
script_id?: number | undefined;
|
|
290
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
291
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
293
292
|
redirects?: {
|
|
294
293
|
version?: 1;
|
|
295
294
|
staticRules?: Record<string, {
|
|
@@ -301,16 +300,11 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
301
300
|
status?: number;
|
|
302
301
|
to?: string;
|
|
303
302
|
}>;
|
|
304
|
-
};
|
|
305
|
-
headers?: {
|
|
306
|
-
version?: 2;
|
|
307
|
-
rules?: Record<string, {
|
|
308
|
-
set?: Record<string, string>;
|
|
309
|
-
unset?: string[];
|
|
310
|
-
}>;
|
|
311
|
-
};
|
|
303
|
+
} | undefined;
|
|
312
304
|
} | undefined;
|
|
313
305
|
}>>;
|
|
306
|
+
compatibilityDate: z.ZodOptional<z.ZodString>;
|
|
307
|
+
compatibilityFlags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
314
308
|
}, "strip", z.ZodTypeAny, {
|
|
315
309
|
assets?: {
|
|
316
310
|
directory: string;
|
|
@@ -323,12 +317,17 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
323
317
|
has_user_worker?: boolean;
|
|
324
318
|
} | undefined;
|
|
325
319
|
assetConfig?: {
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
320
|
+
headers?: {
|
|
321
|
+
version?: 2;
|
|
322
|
+
rules?: Record<string, {
|
|
323
|
+
set?: Record<string, string>;
|
|
324
|
+
unset?: string[];
|
|
325
|
+
}>;
|
|
326
|
+
} | undefined;
|
|
327
|
+
account_id?: number | undefined;
|
|
328
|
+
script_id?: number | undefined;
|
|
329
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
330
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
332
331
|
redirects?: {
|
|
333
332
|
version?: 1;
|
|
334
333
|
staticRules?: Record<string, {
|
|
@@ -340,16 +339,11 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
340
339
|
status?: number;
|
|
341
340
|
to?: string;
|
|
342
341
|
}>;
|
|
343
|
-
};
|
|
344
|
-
headers?: {
|
|
345
|
-
version?: 2;
|
|
346
|
-
rules?: Record<string, {
|
|
347
|
-
set?: Record<string, string>;
|
|
348
|
-
unset?: string[];
|
|
349
|
-
}>;
|
|
350
|
-
};
|
|
342
|
+
} | undefined;
|
|
351
343
|
} | undefined;
|
|
352
344
|
} | undefined;
|
|
345
|
+
compatibilityDate?: string | undefined;
|
|
346
|
+
compatibilityFlags?: string[] | undefined;
|
|
353
347
|
}, {
|
|
354
348
|
assets?: {
|
|
355
349
|
directory: string;
|
|
@@ -362,12 +356,17 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
362
356
|
has_user_worker?: boolean;
|
|
363
357
|
} | undefined;
|
|
364
358
|
assetConfig?: {
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
359
|
+
headers?: {
|
|
360
|
+
version?: 2;
|
|
361
|
+
rules?: Record<string, {
|
|
362
|
+
set?: Record<string, string>;
|
|
363
|
+
unset?: string[];
|
|
364
|
+
}>;
|
|
365
|
+
} | undefined;
|
|
366
|
+
account_id?: number | undefined;
|
|
367
|
+
script_id?: number | undefined;
|
|
368
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
369
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
371
370
|
redirects?: {
|
|
372
371
|
version?: 1;
|
|
373
372
|
staticRules?: Record<string, {
|
|
@@ -379,16 +378,11 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
379
378
|
status?: number;
|
|
380
379
|
to?: string;
|
|
381
380
|
}>;
|
|
382
|
-
};
|
|
383
|
-
headers?: {
|
|
384
|
-
version?: 2;
|
|
385
|
-
rules?: Record<string, {
|
|
386
|
-
set?: Record<string, string>;
|
|
387
|
-
unset?: string[];
|
|
388
|
-
}>;
|
|
389
|
-
};
|
|
381
|
+
} | undefined;
|
|
390
382
|
} | undefined;
|
|
391
383
|
} | undefined;
|
|
384
|
+
compatibilityDate?: string | undefined;
|
|
385
|
+
compatibilityFlags?: string[] | undefined;
|
|
392
386
|
}>;
|
|
393
387
|
|
|
394
388
|
export declare type Awaitable<T> = T | Promise<T>;
|
|
@@ -620,6 +614,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
620
614
|
rootPath: z.ZodOptional<z.ZodEffects<z.ZodString, undefined, string>>;
|
|
621
615
|
compatibilityDate: z.ZodOptional<z.ZodString>;
|
|
622
616
|
compatibilityFlags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
617
|
+
unsafeInspectorProxy: z.ZodOptional<z.ZodBoolean>;
|
|
623
618
|
routes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
624
619
|
bindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<Json, z.ZodTypeDef, Json>>>;
|
|
625
620
|
wasmBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>>;
|
|
@@ -955,12 +950,12 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
955
950
|
Router Worker)
|
|
956
951
|
*/
|
|
957
952
|
hasAssetsAndIsVitest: z.ZodOptional<z.ZodBoolean>;
|
|
958
|
-
unsafeEnableAssetsRpc: z.ZodOptional<z.ZodBoolean>;
|
|
959
953
|
}, "strip", z.ZodTypeAny, {
|
|
960
954
|
name?: string | undefined;
|
|
961
955
|
rootPath?: undefined;
|
|
962
956
|
compatibilityDate?: string | undefined;
|
|
963
957
|
compatibilityFlags?: string[] | undefined;
|
|
958
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
964
959
|
routes?: string[] | undefined;
|
|
965
960
|
bindings?: Record<string, Json> | undefined;
|
|
966
961
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -1036,12 +1031,12 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1036
1031
|
unsafeEvalBinding?: string | undefined;
|
|
1037
1032
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
1038
1033
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
1039
|
-
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
1040
1034
|
}, {
|
|
1041
1035
|
name?: string | undefined;
|
|
1042
1036
|
rootPath?: string | undefined;
|
|
1043
1037
|
compatibilityDate?: string | undefined;
|
|
1044
1038
|
compatibilityFlags?: string[] | undefined;
|
|
1039
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
1045
1040
|
routes?: string[] | undefined;
|
|
1046
1041
|
bindings?: Record<string, Json> | undefined;
|
|
1047
1042
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -1117,7 +1112,6 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1117
1112
|
unsafeEvalBinding?: string | undefined;
|
|
1118
1113
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
1119
1114
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
1120
|
-
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
1121
1115
|
}>>, ({
|
|
1122
1116
|
modules: {
|
|
1123
1117
|
type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
@@ -1130,6 +1124,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1130
1124
|
rootPath?: undefined;
|
|
1131
1125
|
compatibilityDate?: string | undefined;
|
|
1132
1126
|
compatibilityFlags?: string[] | undefined;
|
|
1127
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
1133
1128
|
routes?: string[] | undefined;
|
|
1134
1129
|
bindings?: Record<string, Json> | undefined;
|
|
1135
1130
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -1205,7 +1200,6 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1205
1200
|
unsafeEvalBinding?: string | undefined;
|
|
1206
1201
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
1207
1202
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
1208
|
-
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
1209
1203
|
}) | ({
|
|
1210
1204
|
script: string;
|
|
1211
1205
|
scriptPath?: string | undefined;
|
|
@@ -1221,6 +1215,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1221
1215
|
rootPath?: undefined;
|
|
1222
1216
|
compatibilityDate?: string | undefined;
|
|
1223
1217
|
compatibilityFlags?: string[] | undefined;
|
|
1218
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
1224
1219
|
routes?: string[] | undefined;
|
|
1225
1220
|
bindings?: Record<string, Json> | undefined;
|
|
1226
1221
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -1296,7 +1291,6 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1296
1291
|
unsafeEvalBinding?: string | undefined;
|
|
1297
1292
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
1298
1293
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
1299
|
-
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
1300
1294
|
}) | ({
|
|
1301
1295
|
scriptPath: string;
|
|
1302
1296
|
modules?: boolean | undefined;
|
|
@@ -1311,6 +1305,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1311
1305
|
rootPath?: undefined;
|
|
1312
1306
|
compatibilityDate?: string | undefined;
|
|
1313
1307
|
compatibilityFlags?: string[] | undefined;
|
|
1308
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
1314
1309
|
routes?: string[] | undefined;
|
|
1315
1310
|
bindings?: Record<string, Json> | undefined;
|
|
1316
1311
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -1386,7 +1381,6 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1386
1381
|
unsafeEvalBinding?: string | undefined;
|
|
1387
1382
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
1388
1383
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
1389
|
-
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
1390
1384
|
}), ({
|
|
1391
1385
|
modules: {
|
|
1392
1386
|
type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
@@ -1418,6 +1412,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1418
1412
|
rootPath?: string | undefined;
|
|
1419
1413
|
compatibilityDate?: string | undefined;
|
|
1420
1414
|
compatibilityFlags?: string[] | undefined;
|
|
1415
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
1421
1416
|
routes?: string[] | undefined;
|
|
1422
1417
|
bindings?: Record<string, Json> | undefined;
|
|
1423
1418
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -1493,7 +1488,6 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1493
1488
|
unsafeEvalBinding?: string | undefined;
|
|
1494
1489
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
1495
1490
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
1496
|
-
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
1497
1491
|
}>;
|
|
1498
1492
|
|
|
1499
1493
|
export declare const CoreSharedOptionsSchema: z.ZodObject<{
|
|
@@ -1515,7 +1509,6 @@ export declare const CoreSharedOptionsSchema: z.ZodObject<{
|
|
|
1515
1509
|
unsafeProxySharedSecret: z.ZodOptional<z.ZodString>;
|
|
1516
1510
|
unsafeModuleFallbackService: z.ZodOptional<z.ZodType<(request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>, z.ZodTypeDef, (request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>>>;
|
|
1517
1511
|
unsafeStickyBlobs: z.ZodOptional<z.ZodBoolean>;
|
|
1518
|
-
unsafeEnableAssetsRpc: z.ZodOptional<z.ZodBoolean>;
|
|
1519
1512
|
}, "strip", z.ZodTypeAny, {
|
|
1520
1513
|
rootPath?: undefined;
|
|
1521
1514
|
host?: string | undefined;
|
|
@@ -1535,7 +1528,6 @@ export declare const CoreSharedOptionsSchema: z.ZodObject<{
|
|
|
1535
1528
|
unsafeProxySharedSecret?: string | undefined;
|
|
1536
1529
|
unsafeModuleFallbackService?: ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
|
|
1537
1530
|
unsafeStickyBlobs?: boolean | undefined;
|
|
1538
|
-
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
1539
1531
|
}, {
|
|
1540
1532
|
rootPath?: string | undefined;
|
|
1541
1533
|
host?: string | undefined;
|
|
@@ -1555,7 +1547,6 @@ export declare const CoreSharedOptionsSchema: z.ZodObject<{
|
|
|
1555
1547
|
unsafeProxySharedSecret?: string | undefined;
|
|
1556
1548
|
unsafeModuleFallbackService?: ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
|
|
1557
1549
|
unsafeStickyBlobs?: boolean | undefined;
|
|
1558
|
-
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
1559
1550
|
}>;
|
|
1560
1551
|
|
|
1561
1552
|
export declare function coupleWebSocket(ws: NodeWebSocket, pair: WebSocket): Promise<void>;
|
|
@@ -2059,7 +2050,7 @@ export declare class Miniflare {
|
|
|
2059
2050
|
export declare class MiniflareCoreError extends MiniflareError<MiniflareCoreErrorCode> {
|
|
2060
2051
|
}
|
|
2061
2052
|
|
|
2062
|
-
export declare type MiniflareCoreErrorCode = "ERR_RUNTIME_FAILURE" | "ERR_DISPOSED" | "ERR_MODULE_PARSE" | "ERR_MODULE_STRING_SCRIPT" | "ERR_MODULE_DYNAMIC_SPEC" | "ERR_MODULE_RULE" | "ERR_PERSIST_UNSUPPORTED" | "ERR_PERSIST_REMOTE_UNAUTHENTICATED" | "ERR_PERSIST_REMOTE_UNSUPPORTED" | "ERR_FUTURE_COMPATIBILITY_DATE" | "ERR_NO_WORKERS" | "ERR_VALIDATION" | "ERR_DUPLICATE_NAME" | "ERR_DIFFERENT_STORAGE_BACKEND" | "ERR_DIFFERENT_UNIQUE_KEYS" | "ERR_DIFFERENT_PREVENT_EVICTION" | "ERR_MULTIPLE_OUTBOUNDS" | "ERR_INVALID_WRAPPED" | "ERR_CYCLIC";
|
|
2053
|
+
export declare type MiniflareCoreErrorCode = "ERR_RUNTIME_FAILURE" | "ERR_DISPOSED" | "ERR_MODULE_PARSE" | "ERR_MODULE_STRING_SCRIPT" | "ERR_MODULE_DYNAMIC_SPEC" | "ERR_MODULE_RULE" | "ERR_PERSIST_UNSUPPORTED" | "ERR_PERSIST_REMOTE_UNAUTHENTICATED" | "ERR_PERSIST_REMOTE_UNSUPPORTED" | "ERR_FUTURE_COMPATIBILITY_DATE" | "ERR_NO_WORKERS" | "ERR_VALIDATION" | "ERR_DUPLICATE_NAME" | "ERR_DIFFERENT_STORAGE_BACKEND" | "ERR_DIFFERENT_UNIQUE_KEYS" | "ERR_DIFFERENT_PREVENT_EVICTION" | "ERR_MULTIPLE_OUTBOUNDS" | "ERR_INVALID_WRAPPED" | "ERR_CYCLIC" | "ERR_MISSING_INSPECTOR_PROXY_PORT";
|
|
2063
2054
|
|
|
2064
2055
|
export declare class MiniflareError<Code extends string | number = string | number> extends Error {
|
|
2065
2056
|
readonly code: Code;
|
|
@@ -2160,7 +2151,82 @@ export declare type OptionalZodTypeOf<T extends z.ZodTypeAny | undefined> = T ex
|
|
|
2160
2151
|
|
|
2161
2152
|
export declare type OverloadReplaceWorkersTypes<T> = T extends (...args: any[]) => any ? UnionToIntersection<ReplaceWorkersTypes<OverloadUnion<T>>> : ReplaceWorkersTypes<T>;
|
|
2162
2153
|
|
|
2163
|
-
export declare type OverloadUnion<T extends (...args: any[]) => any> = Parameters<T> extends [] ? T :
|
|
2154
|
+
export declare type OverloadUnion<T extends (...args: any[]) => any> = Parameters<T> extends [] ? T : OverloadUnion14<T>;
|
|
2155
|
+
|
|
2156
|
+
export declare type OverloadUnion10<T> = T extends {
|
|
2157
|
+
(...args: infer P1): infer R1;
|
|
2158
|
+
(...args: infer P2): infer R2;
|
|
2159
|
+
(...args: infer P3): infer R3;
|
|
2160
|
+
(...args: infer P4): infer R4;
|
|
2161
|
+
(...args: infer P5): infer R5;
|
|
2162
|
+
(...args: infer P6): infer R6;
|
|
2163
|
+
(...args: infer P7): infer R7;
|
|
2164
|
+
(...args: infer P8): infer R8;
|
|
2165
|
+
(...args: infer P9): infer R9;
|
|
2166
|
+
(...args: infer P10): infer R10;
|
|
2167
|
+
} ? ((...args: P1) => R1) | ((...args: P2) => R2) | ((...args: P3) => R3) | ((...args: P4) => R4) | ((...args: P5) => R5) | ((...args: P6) => R6) | ((...args: P7) => R7) | ((...args: P8) => R8) | ((...args: P9) => R9) | ((...args: P10) => R10) : OverloadUnion9<T>;
|
|
2168
|
+
|
|
2169
|
+
export declare type OverloadUnion11<T> = T extends {
|
|
2170
|
+
(...args: infer P1): infer R1;
|
|
2171
|
+
(...args: infer P2): infer R2;
|
|
2172
|
+
(...args: infer P3): infer R3;
|
|
2173
|
+
(...args: infer P4): infer R4;
|
|
2174
|
+
(...args: infer P5): infer R5;
|
|
2175
|
+
(...args: infer P6): infer R6;
|
|
2176
|
+
(...args: infer P7): infer R7;
|
|
2177
|
+
(...args: infer P8): infer R8;
|
|
2178
|
+
(...args: infer P9): infer R9;
|
|
2179
|
+
(...args: infer P10): infer R10;
|
|
2180
|
+
(...args: infer P11): infer R11;
|
|
2181
|
+
} ? ((...args: P1) => R1) | ((...args: P2) => R2) | ((...args: P3) => R3) | ((...args: P4) => R4) | ((...args: P5) => R5) | ((...args: P6) => R6) | ((...args: P7) => R7) | ((...args: P8) => R8) | ((...args: P9) => R9) | ((...args: P10) => R10) | ((...args: P11) => R11) : OverloadUnion10<T>;
|
|
2182
|
+
|
|
2183
|
+
export declare type OverloadUnion12<T> = T extends {
|
|
2184
|
+
(...args: infer P1): infer R1;
|
|
2185
|
+
(...args: infer P2): infer R2;
|
|
2186
|
+
(...args: infer P3): infer R3;
|
|
2187
|
+
(...args: infer P4): infer R4;
|
|
2188
|
+
(...args: infer P5): infer R5;
|
|
2189
|
+
(...args: infer P6): infer R6;
|
|
2190
|
+
(...args: infer P7): infer R7;
|
|
2191
|
+
(...args: infer P8): infer R8;
|
|
2192
|
+
(...args: infer P9): infer R9;
|
|
2193
|
+
(...args: infer P10): infer R10;
|
|
2194
|
+
(...args: infer P11): infer R11;
|
|
2195
|
+
(...args: infer P12): infer R12;
|
|
2196
|
+
} ? ((...args: P1) => R1) | ((...args: P2) => R2) | ((...args: P3) => R3) | ((...args: P4) => R4) | ((...args: P5) => R5) | ((...args: P6) => R6) | ((...args: P7) => R7) | ((...args: P8) => R8) | ((...args: P9) => R9) | ((...args: P10) => R10) | ((...args: P11) => R11) | ((...args: P12) => R12) : OverloadUnion11<T>;
|
|
2197
|
+
|
|
2198
|
+
export declare type OverloadUnion13<T> = T extends {
|
|
2199
|
+
(...args: infer P1): infer R1;
|
|
2200
|
+
(...args: infer P2): infer R2;
|
|
2201
|
+
(...args: infer P3): infer R3;
|
|
2202
|
+
(...args: infer P4): infer R4;
|
|
2203
|
+
(...args: infer P5): infer R5;
|
|
2204
|
+
(...args: infer P6): infer R6;
|
|
2205
|
+
(...args: infer P7): infer R7;
|
|
2206
|
+
(...args: infer P8): infer R8;
|
|
2207
|
+
(...args: infer P9): infer R9;
|
|
2208
|
+
(...args: infer P10): infer R10;
|
|
2209
|
+
(...args: infer P11): infer R11;
|
|
2210
|
+
(...args: infer P12): infer R12;
|
|
2211
|
+
(...args: infer P13): infer R13;
|
|
2212
|
+
} ? ((...args: P1) => R1) | ((...args: P2) => R2) | ((...args: P3) => R3) | ((...args: P4) => R4) | ((...args: P5) => R5) | ((...args: P6) => R6) | ((...args: P7) => R7) | ((...args: P8) => R8) | ((...args: P9) => R9) | ((...args: P10) => R10) | ((...args: P11) => R11) | ((...args: P12) => R12) | ((...args: P13) => R13) : OverloadUnion12<T>;
|
|
2213
|
+
|
|
2214
|
+
export declare type OverloadUnion14<T> = T extends {
|
|
2215
|
+
(...args: infer P1): infer R1;
|
|
2216
|
+
(...args: infer P2): infer R2;
|
|
2217
|
+
(...args: infer P3): infer R3;
|
|
2218
|
+
(...args: infer P4): infer R4;
|
|
2219
|
+
(...args: infer P5): infer R5;
|
|
2220
|
+
(...args: infer P6): infer R6;
|
|
2221
|
+
(...args: infer P7): infer R7;
|
|
2222
|
+
(...args: infer P8): infer R8;
|
|
2223
|
+
(...args: infer P9): infer R9;
|
|
2224
|
+
(...args: infer P10): infer R10;
|
|
2225
|
+
(...args: infer P11): infer R11;
|
|
2226
|
+
(...args: infer P12): infer R12;
|
|
2227
|
+
(...args: infer P13): infer R13;
|
|
2228
|
+
(...args: infer P14): infer R14;
|
|
2229
|
+
} ? ((...args: P1) => R1) | ((...args: P2) => R2) | ((...args: P3) => R3) | ((...args: P4) => R4) | ((...args: P5) => R5) | ((...args: P6) => R6) | ((...args: P7) => R7) | ((...args: P8) => R8) | ((...args: P9) => R9) | ((...args: P10) => R10) | ((...args: P11) => R11) | ((...args: P12) => R12) | ((...args: P13) => R13) | ((...args: P14) => R14) : OverloadUnion13<T>;
|
|
2164
2230
|
|
|
2165
2231
|
export declare type OverloadUnion2<T> = T extends {
|
|
2166
2232
|
(...args: infer P1): infer R1;
|
|
@@ -2403,6 +2469,7 @@ export declare const PLUGINS: {
|
|
|
2403
2469
|
rootPath: z.ZodOptional<z.ZodEffects<z.ZodString, undefined, string>>;
|
|
2404
2470
|
compatibilityDate: z.ZodOptional<z.ZodString>;
|
|
2405
2471
|
compatibilityFlags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2472
|
+
unsafeInspectorProxy: z.ZodOptional<z.ZodBoolean>;
|
|
2406
2473
|
routes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2407
2474
|
bindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<Json_2, z.ZodTypeDef, Json_2>>>;
|
|
2408
2475
|
wasmBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>>;
|
|
@@ -2734,12 +2801,12 @@ export declare const PLUGINS: {
|
|
|
2734
2801
|
unsafeEvalBinding: z.ZodOptional<z.ZodString>;
|
|
2735
2802
|
unsafeUseModuleFallbackService: z.ZodOptional<z.ZodBoolean>;
|
|
2736
2803
|
hasAssetsAndIsVitest: z.ZodOptional<z.ZodBoolean>;
|
|
2737
|
-
unsafeEnableAssetsRpc: z.ZodOptional<z.ZodBoolean>;
|
|
2738
2804
|
}, "strip", z.ZodTypeAny, {
|
|
2739
2805
|
name?: string | undefined;
|
|
2740
2806
|
rootPath?: undefined;
|
|
2741
2807
|
compatibilityDate?: string | undefined;
|
|
2742
2808
|
compatibilityFlags?: string[] | undefined;
|
|
2809
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
2743
2810
|
routes?: string[] | undefined;
|
|
2744
2811
|
bindings?: Record<string, Json_2> | undefined;
|
|
2745
2812
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -2815,12 +2882,12 @@ export declare const PLUGINS: {
|
|
|
2815
2882
|
unsafeEvalBinding?: string | undefined;
|
|
2816
2883
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
2817
2884
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
2818
|
-
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
2819
2885
|
}, {
|
|
2820
2886
|
name?: string | undefined;
|
|
2821
2887
|
rootPath?: string | undefined;
|
|
2822
2888
|
compatibilityDate?: string | undefined;
|
|
2823
2889
|
compatibilityFlags?: string[] | undefined;
|
|
2890
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
2824
2891
|
routes?: string[] | undefined;
|
|
2825
2892
|
bindings?: Record<string, Json_2> | undefined;
|
|
2826
2893
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -2896,7 +2963,6 @@ export declare const PLUGINS: {
|
|
|
2896
2963
|
unsafeEvalBinding?: string | undefined;
|
|
2897
2964
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
2898
2965
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
2899
|
-
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
2900
2966
|
}>>, ({
|
|
2901
2967
|
modules: {
|
|
2902
2968
|
type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
@@ -2909,6 +2975,7 @@ export declare const PLUGINS: {
|
|
|
2909
2975
|
rootPath?: undefined;
|
|
2910
2976
|
compatibilityDate?: string | undefined;
|
|
2911
2977
|
compatibilityFlags?: string[] | undefined;
|
|
2978
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
2912
2979
|
routes?: string[] | undefined;
|
|
2913
2980
|
bindings?: Record<string, Json_2> | undefined;
|
|
2914
2981
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -2984,7 +3051,6 @@ export declare const PLUGINS: {
|
|
|
2984
3051
|
unsafeEvalBinding?: string | undefined;
|
|
2985
3052
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
2986
3053
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
2987
|
-
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
2988
3054
|
}) | ({
|
|
2989
3055
|
script: string;
|
|
2990
3056
|
scriptPath?: string | undefined;
|
|
@@ -3000,6 +3066,7 @@ export declare const PLUGINS: {
|
|
|
3000
3066
|
rootPath?: undefined;
|
|
3001
3067
|
compatibilityDate?: string | undefined;
|
|
3002
3068
|
compatibilityFlags?: string[] | undefined;
|
|
3069
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
3003
3070
|
routes?: string[] | undefined;
|
|
3004
3071
|
bindings?: Record<string, Json_2> | undefined;
|
|
3005
3072
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -3075,7 +3142,6 @@ export declare const PLUGINS: {
|
|
|
3075
3142
|
unsafeEvalBinding?: string | undefined;
|
|
3076
3143
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
3077
3144
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
3078
|
-
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
3079
3145
|
}) | ({
|
|
3080
3146
|
scriptPath: string;
|
|
3081
3147
|
modules?: boolean | undefined;
|
|
@@ -3090,6 +3156,7 @@ export declare const PLUGINS: {
|
|
|
3090
3156
|
rootPath?: undefined;
|
|
3091
3157
|
compatibilityDate?: string | undefined;
|
|
3092
3158
|
compatibilityFlags?: string[] | undefined;
|
|
3159
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
3093
3160
|
routes?: string[] | undefined;
|
|
3094
3161
|
bindings?: Record<string, Json_2> | undefined;
|
|
3095
3162
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -3165,7 +3232,6 @@ export declare const PLUGINS: {
|
|
|
3165
3232
|
unsafeEvalBinding?: string | undefined;
|
|
3166
3233
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
3167
3234
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
3168
|
-
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
3169
3235
|
}), ({
|
|
3170
3236
|
modules: {
|
|
3171
3237
|
type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
@@ -3197,6 +3263,7 @@ export declare const PLUGINS: {
|
|
|
3197
3263
|
rootPath?: string | undefined;
|
|
3198
3264
|
compatibilityDate?: string | undefined;
|
|
3199
3265
|
compatibilityFlags?: string[] | undefined;
|
|
3266
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
3200
3267
|
routes?: string[] | undefined;
|
|
3201
3268
|
bindings?: Record<string, Json_2> | undefined;
|
|
3202
3269
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -3272,7 +3339,6 @@ export declare const PLUGINS: {
|
|
|
3272
3339
|
unsafeEvalBinding?: string | undefined;
|
|
3273
3340
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
3274
3341
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
3275
|
-
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
3276
3342
|
}>, z.ZodObject<{
|
|
3277
3343
|
rootPath: z.ZodOptional<z.ZodEffects<z.ZodString, undefined, string>>;
|
|
3278
3344
|
host: z.ZodOptional<z.ZodString>;
|
|
@@ -3292,7 +3358,6 @@ export declare const PLUGINS: {
|
|
|
3292
3358
|
unsafeProxySharedSecret: z.ZodOptional<z.ZodString>;
|
|
3293
3359
|
unsafeModuleFallbackService: z.ZodOptional<z.ZodType<(request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>, z.ZodTypeDef, (request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>>>;
|
|
3294
3360
|
unsafeStickyBlobs: z.ZodOptional<z.ZodBoolean>;
|
|
3295
|
-
unsafeEnableAssetsRpc: z.ZodOptional<z.ZodBoolean>;
|
|
3296
3361
|
}, "strip", z.ZodTypeAny, {
|
|
3297
3362
|
rootPath?: undefined;
|
|
3298
3363
|
host?: string | undefined;
|
|
@@ -3312,7 +3377,6 @@ export declare const PLUGINS: {
|
|
|
3312
3377
|
unsafeProxySharedSecret?: string | undefined;
|
|
3313
3378
|
unsafeModuleFallbackService?: ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
|
|
3314
3379
|
unsafeStickyBlobs?: boolean | undefined;
|
|
3315
|
-
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
3316
3380
|
}, {
|
|
3317
3381
|
rootPath?: string | undefined;
|
|
3318
3382
|
host?: string | undefined;
|
|
@@ -3332,7 +3396,6 @@ export declare const PLUGINS: {
|
|
|
3332
3396
|
unsafeProxySharedSecret?: string | undefined;
|
|
3333
3397
|
unsafeModuleFallbackService?: ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
|
|
3334
3398
|
unsafeStickyBlobs?: boolean | undefined;
|
|
3335
|
-
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
3336
3399
|
}>>;
|
|
3337
3400
|
cache: Plugin_2<z.ZodObject<{
|
|
3338
3401
|
cache: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3581,7 +3644,7 @@ export declare const PLUGINS: {
|
|
|
3581
3644
|
invoke_user_worker_ahead_of_assets?: boolean;
|
|
3582
3645
|
has_user_worker?: boolean;
|
|
3583
3646
|
}>>;
|
|
3584
|
-
assetConfig: z.ZodOptional<z.ZodObject<{
|
|
3647
|
+
assetConfig: z.ZodOptional<z.ZodObject<Omit<{
|
|
3585
3648
|
account_id: z.ZodOptional<z.ZodNumber>;
|
|
3586
3649
|
script_id: z.ZodOptional<z.ZodNumber>;
|
|
3587
3650
|
compatibility_date: z.ZodOptional<z.ZodString>;
|
|
@@ -3661,13 +3724,18 @@ export declare const PLUGINS: {
|
|
|
3661
3724
|
unset?: string[];
|
|
3662
3725
|
}>;
|
|
3663
3726
|
}>>;
|
|
3664
|
-
}, "strip", z.ZodTypeAny, {
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3727
|
+
}, "compatibility_date" | "compatibility_flags">, "strip", z.ZodTypeAny, {
|
|
3728
|
+
headers?: {
|
|
3729
|
+
version?: 2;
|
|
3730
|
+
rules?: Record<string, {
|
|
3731
|
+
set?: Record<string, string>;
|
|
3732
|
+
unset?: string[];
|
|
3733
|
+
}>;
|
|
3734
|
+
} | undefined;
|
|
3735
|
+
account_id?: number | undefined;
|
|
3736
|
+
script_id?: number | undefined;
|
|
3737
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
3738
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
3671
3739
|
redirects?: {
|
|
3672
3740
|
version?: 1;
|
|
3673
3741
|
staticRules?: Record<string, {
|
|
@@ -3679,21 +3747,19 @@ export declare const PLUGINS: {
|
|
|
3679
3747
|
status?: number;
|
|
3680
3748
|
to?: string;
|
|
3681
3749
|
}>;
|
|
3682
|
-
};
|
|
3750
|
+
} | undefined;
|
|
3751
|
+
}, {
|
|
3683
3752
|
headers?: {
|
|
3684
3753
|
version?: 2;
|
|
3685
3754
|
rules?: Record<string, {
|
|
3686
3755
|
set?: Record<string, string>;
|
|
3687
3756
|
unset?: string[];
|
|
3688
3757
|
}>;
|
|
3689
|
-
};
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
compatibility_flags?: string[];
|
|
3695
|
-
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
3696
|
-
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
3758
|
+
} | undefined;
|
|
3759
|
+
account_id?: number | undefined;
|
|
3760
|
+
script_id?: number | undefined;
|
|
3761
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
3762
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
3697
3763
|
redirects?: {
|
|
3698
3764
|
version?: 1;
|
|
3699
3765
|
staticRules?: Record<string, {
|
|
@@ -3705,14 +3771,7 @@ export declare const PLUGINS: {
|
|
|
3705
3771
|
status?: number;
|
|
3706
3772
|
to?: string;
|
|
3707
3773
|
}>;
|
|
3708
|
-
};
|
|
3709
|
-
headers?: {
|
|
3710
|
-
version?: 2;
|
|
3711
|
-
rules?: Record<string, {
|
|
3712
|
-
set?: Record<string, string>;
|
|
3713
|
-
unset?: string[];
|
|
3714
|
-
}>;
|
|
3715
|
-
};
|
|
3774
|
+
} | undefined;
|
|
3716
3775
|
}>>;
|
|
3717
3776
|
}, "strip", z.ZodTypeAny, {
|
|
3718
3777
|
directory: string;
|
|
@@ -3725,12 +3784,17 @@ export declare const PLUGINS: {
|
|
|
3725
3784
|
has_user_worker?: boolean;
|
|
3726
3785
|
} | undefined;
|
|
3727
3786
|
assetConfig?: {
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3787
|
+
headers?: {
|
|
3788
|
+
version?: 2;
|
|
3789
|
+
rules?: Record<string, {
|
|
3790
|
+
set?: Record<string, string>;
|
|
3791
|
+
unset?: string[];
|
|
3792
|
+
}>;
|
|
3793
|
+
} | undefined;
|
|
3794
|
+
account_id?: number | undefined;
|
|
3795
|
+
script_id?: number | undefined;
|
|
3796
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
3797
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
3734
3798
|
redirects?: {
|
|
3735
3799
|
version?: 1;
|
|
3736
3800
|
staticRules?: Record<string, {
|
|
@@ -3742,14 +3806,7 @@ export declare const PLUGINS: {
|
|
|
3742
3806
|
status?: number;
|
|
3743
3807
|
to?: string;
|
|
3744
3808
|
}>;
|
|
3745
|
-
};
|
|
3746
|
-
headers?: {
|
|
3747
|
-
version?: 2;
|
|
3748
|
-
rules?: Record<string, {
|
|
3749
|
-
set?: Record<string, string>;
|
|
3750
|
-
unset?: string[];
|
|
3751
|
-
}>;
|
|
3752
|
-
};
|
|
3809
|
+
} | undefined;
|
|
3753
3810
|
} | undefined;
|
|
3754
3811
|
}, {
|
|
3755
3812
|
directory: string;
|
|
@@ -3762,12 +3819,17 @@ export declare const PLUGINS: {
|
|
|
3762
3819
|
has_user_worker?: boolean;
|
|
3763
3820
|
} | undefined;
|
|
3764
3821
|
assetConfig?: {
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3822
|
+
headers?: {
|
|
3823
|
+
version?: 2;
|
|
3824
|
+
rules?: Record<string, {
|
|
3825
|
+
set?: Record<string, string>;
|
|
3826
|
+
unset?: string[];
|
|
3827
|
+
}>;
|
|
3828
|
+
} | undefined;
|
|
3829
|
+
account_id?: number | undefined;
|
|
3830
|
+
script_id?: number | undefined;
|
|
3831
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
3832
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
3771
3833
|
redirects?: {
|
|
3772
3834
|
version?: 1;
|
|
3773
3835
|
staticRules?: Record<string, {
|
|
@@ -3779,16 +3841,11 @@ export declare const PLUGINS: {
|
|
|
3779
3841
|
status?: number;
|
|
3780
3842
|
to?: string;
|
|
3781
3843
|
}>;
|
|
3782
|
-
};
|
|
3783
|
-
headers?: {
|
|
3784
|
-
version?: 2;
|
|
3785
|
-
rules?: Record<string, {
|
|
3786
|
-
set?: Record<string, string>;
|
|
3787
|
-
unset?: string[];
|
|
3788
|
-
}>;
|
|
3789
|
-
};
|
|
3844
|
+
} | undefined;
|
|
3790
3845
|
} | undefined;
|
|
3791
3846
|
}>>;
|
|
3847
|
+
compatibilityDate: z.ZodOptional<z.ZodString>;
|
|
3848
|
+
compatibilityFlags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3792
3849
|
}, "strip", z.ZodTypeAny, {
|
|
3793
3850
|
assets?: {
|
|
3794
3851
|
directory: string;
|
|
@@ -3801,12 +3858,17 @@ export declare const PLUGINS: {
|
|
|
3801
3858
|
has_user_worker?: boolean;
|
|
3802
3859
|
} | undefined;
|
|
3803
3860
|
assetConfig?: {
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3861
|
+
headers?: {
|
|
3862
|
+
version?: 2;
|
|
3863
|
+
rules?: Record<string, {
|
|
3864
|
+
set?: Record<string, string>;
|
|
3865
|
+
unset?: string[];
|
|
3866
|
+
}>;
|
|
3867
|
+
} | undefined;
|
|
3868
|
+
account_id?: number | undefined;
|
|
3869
|
+
script_id?: number | undefined;
|
|
3870
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
3871
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
3810
3872
|
redirects?: {
|
|
3811
3873
|
version?: 1;
|
|
3812
3874
|
staticRules?: Record<string, {
|
|
@@ -3818,16 +3880,11 @@ export declare const PLUGINS: {
|
|
|
3818
3880
|
status?: number;
|
|
3819
3881
|
to?: string;
|
|
3820
3882
|
}>;
|
|
3821
|
-
};
|
|
3822
|
-
headers?: {
|
|
3823
|
-
version?: 2;
|
|
3824
|
-
rules?: Record<string, {
|
|
3825
|
-
set?: Record<string, string>;
|
|
3826
|
-
unset?: string[];
|
|
3827
|
-
}>;
|
|
3828
|
-
};
|
|
3829
3883
|
} | undefined;
|
|
3830
3884
|
} | undefined;
|
|
3885
|
+
} | undefined;
|
|
3886
|
+
compatibilityDate?: string | undefined;
|
|
3887
|
+
compatibilityFlags?: string[] | undefined;
|
|
3831
3888
|
}, {
|
|
3832
3889
|
assets?: {
|
|
3833
3890
|
directory: string;
|
|
@@ -3840,12 +3897,17 @@ export declare const PLUGINS: {
|
|
|
3840
3897
|
has_user_worker?: boolean;
|
|
3841
3898
|
} | undefined;
|
|
3842
3899
|
assetConfig?: {
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3900
|
+
headers?: {
|
|
3901
|
+
version?: 2;
|
|
3902
|
+
rules?: Record<string, {
|
|
3903
|
+
set?: Record<string, string>;
|
|
3904
|
+
unset?: string[];
|
|
3905
|
+
}>;
|
|
3906
|
+
} | undefined;
|
|
3907
|
+
account_id?: number | undefined;
|
|
3908
|
+
script_id?: number | undefined;
|
|
3909
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
3910
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
3849
3911
|
redirects?: {
|
|
3850
3912
|
version?: 1;
|
|
3851
3913
|
staticRules?: Record<string, {
|
|
@@ -3857,16 +3919,11 @@ export declare const PLUGINS: {
|
|
|
3857
3919
|
status?: number;
|
|
3858
3920
|
to?: string;
|
|
3859
3921
|
}>;
|
|
3860
|
-
};
|
|
3861
|
-
headers?: {
|
|
3862
|
-
version?: 2;
|
|
3863
|
-
rules?: Record<string, {
|
|
3864
|
-
set?: Record<string, string>;
|
|
3865
|
-
unset?: string[];
|
|
3866
|
-
}>;
|
|
3867
|
-
};
|
|
3868
3922
|
} | undefined;
|
|
3869
3923
|
} | undefined;
|
|
3924
|
+
} | undefined;
|
|
3925
|
+
compatibilityDate?: string | undefined;
|
|
3926
|
+
compatibilityFlags?: string[] | undefined;
|
|
3870
3927
|
}>>;
|
|
3871
3928
|
workflows: Plugin_2<z.ZodObject<{
|
|
3872
3929
|
workflows: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -3928,7 +3985,6 @@ export declare interface PluginServicesOptions<Options extends z.ZodType, Shared
|
|
|
3928
3985
|
unsafeEphemeralDurableObjects: boolean;
|
|
3929
3986
|
queueProducers: QueueProducers;
|
|
3930
3987
|
queueConsumers: QueueConsumers;
|
|
3931
|
-
unsafeEnableAssetsRpc: boolean;
|
|
3932
3988
|
}
|
|
3933
3989
|
|
|
3934
3990
|
export declare function prefixError(prefix: string, e: any): Error;
|