miniflare 0.0.0-e94b46ff7 → 0.0.0-e981d0be5
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 +226 -184
- package/dist/src/index.js +68 -57
- package/dist/src/index.js.map +1 -1
- 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/workflows/binding.worker.js +6 -2
- package/dist/src/workers/workflows/binding.worker.js.map +1 -1
- package/package.json +5 -5
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>;
|
|
@@ -956,7 +950,6 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
956
950
|
Router Worker)
|
|
957
951
|
*/
|
|
958
952
|
hasAssetsAndIsVitest: z.ZodOptional<z.ZodBoolean>;
|
|
959
|
-
unsafeEnableAssetsRpc: z.ZodOptional<z.ZodBoolean>;
|
|
960
953
|
}, "strip", z.ZodTypeAny, {
|
|
961
954
|
name?: string | undefined;
|
|
962
955
|
rootPath?: undefined;
|
|
@@ -1038,7 +1031,6 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1038
1031
|
unsafeEvalBinding?: string | undefined;
|
|
1039
1032
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
1040
1033
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
1041
|
-
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
1042
1034
|
}, {
|
|
1043
1035
|
name?: string | undefined;
|
|
1044
1036
|
rootPath?: string | undefined;
|
|
@@ -1120,7 +1112,6 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1120
1112
|
unsafeEvalBinding?: string | undefined;
|
|
1121
1113
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
1122
1114
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
1123
|
-
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
1124
1115
|
}>>, ({
|
|
1125
1116
|
modules: {
|
|
1126
1117
|
type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
@@ -1209,7 +1200,6 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1209
1200
|
unsafeEvalBinding?: string | undefined;
|
|
1210
1201
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
1211
1202
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
1212
|
-
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
1213
1203
|
}) | ({
|
|
1214
1204
|
script: string;
|
|
1215
1205
|
scriptPath?: string | undefined;
|
|
@@ -1301,7 +1291,6 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1301
1291
|
unsafeEvalBinding?: string | undefined;
|
|
1302
1292
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
1303
1293
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
1304
|
-
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
1305
1294
|
}) | ({
|
|
1306
1295
|
scriptPath: string;
|
|
1307
1296
|
modules?: boolean | undefined;
|
|
@@ -1392,7 +1381,6 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1392
1381
|
unsafeEvalBinding?: string | undefined;
|
|
1393
1382
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
1394
1383
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
1395
|
-
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
1396
1384
|
}), ({
|
|
1397
1385
|
modules: {
|
|
1398
1386
|
type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
@@ -1500,7 +1488,6 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1500
1488
|
unsafeEvalBinding?: string | undefined;
|
|
1501
1489
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
1502
1490
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
1503
|
-
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
1504
1491
|
}>;
|
|
1505
1492
|
|
|
1506
1493
|
export declare const CoreSharedOptionsSchema: z.ZodObject<{
|
|
@@ -1522,7 +1509,6 @@ export declare const CoreSharedOptionsSchema: z.ZodObject<{
|
|
|
1522
1509
|
unsafeProxySharedSecret: z.ZodOptional<z.ZodString>;
|
|
1523
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>>>;
|
|
1524
1511
|
unsafeStickyBlobs: z.ZodOptional<z.ZodBoolean>;
|
|
1525
|
-
unsafeEnableAssetsRpc: z.ZodOptional<z.ZodBoolean>;
|
|
1526
1512
|
}, "strip", z.ZodTypeAny, {
|
|
1527
1513
|
rootPath?: undefined;
|
|
1528
1514
|
host?: string | undefined;
|
|
@@ -1542,7 +1528,6 @@ export declare const CoreSharedOptionsSchema: z.ZodObject<{
|
|
|
1542
1528
|
unsafeProxySharedSecret?: string | undefined;
|
|
1543
1529
|
unsafeModuleFallbackService?: ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
|
|
1544
1530
|
unsafeStickyBlobs?: boolean | undefined;
|
|
1545
|
-
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
1546
1531
|
}, {
|
|
1547
1532
|
rootPath?: string | undefined;
|
|
1548
1533
|
host?: string | undefined;
|
|
@@ -1562,7 +1547,6 @@ export declare const CoreSharedOptionsSchema: z.ZodObject<{
|
|
|
1562
1547
|
unsafeProxySharedSecret?: string | undefined;
|
|
1563
1548
|
unsafeModuleFallbackService?: ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
|
|
1564
1549
|
unsafeStickyBlobs?: boolean | undefined;
|
|
1565
|
-
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
1566
1550
|
}>;
|
|
1567
1551
|
|
|
1568
1552
|
export declare function coupleWebSocket(ws: NodeWebSocket, pair: WebSocket): Promise<void>;
|
|
@@ -2167,7 +2151,82 @@ export declare type OptionalZodTypeOf<T extends z.ZodTypeAny | undefined> = T ex
|
|
|
2167
2151
|
|
|
2168
2152
|
export declare type OverloadReplaceWorkersTypes<T> = T extends (...args: any[]) => any ? UnionToIntersection<ReplaceWorkersTypes<OverloadUnion<T>>> : ReplaceWorkersTypes<T>;
|
|
2169
2153
|
|
|
2170
|
-
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>;
|
|
2171
2230
|
|
|
2172
2231
|
export declare type OverloadUnion2<T> = T extends {
|
|
2173
2232
|
(...args: infer P1): infer R1;
|
|
@@ -2742,7 +2801,6 @@ export declare const PLUGINS: {
|
|
|
2742
2801
|
unsafeEvalBinding: z.ZodOptional<z.ZodString>;
|
|
2743
2802
|
unsafeUseModuleFallbackService: z.ZodOptional<z.ZodBoolean>;
|
|
2744
2803
|
hasAssetsAndIsVitest: z.ZodOptional<z.ZodBoolean>;
|
|
2745
|
-
unsafeEnableAssetsRpc: z.ZodOptional<z.ZodBoolean>;
|
|
2746
2804
|
}, "strip", z.ZodTypeAny, {
|
|
2747
2805
|
name?: string | undefined;
|
|
2748
2806
|
rootPath?: undefined;
|
|
@@ -2824,7 +2882,6 @@ export declare const PLUGINS: {
|
|
|
2824
2882
|
unsafeEvalBinding?: string | undefined;
|
|
2825
2883
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
2826
2884
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
2827
|
-
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
2828
2885
|
}, {
|
|
2829
2886
|
name?: string | undefined;
|
|
2830
2887
|
rootPath?: string | undefined;
|
|
@@ -2906,7 +2963,6 @@ export declare const PLUGINS: {
|
|
|
2906
2963
|
unsafeEvalBinding?: string | undefined;
|
|
2907
2964
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
2908
2965
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
2909
|
-
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
2910
2966
|
}>>, ({
|
|
2911
2967
|
modules: {
|
|
2912
2968
|
type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
@@ -2995,7 +3051,6 @@ export declare const PLUGINS: {
|
|
|
2995
3051
|
unsafeEvalBinding?: string | undefined;
|
|
2996
3052
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
2997
3053
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
2998
|
-
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
2999
3054
|
}) | ({
|
|
3000
3055
|
script: string;
|
|
3001
3056
|
scriptPath?: string | undefined;
|
|
@@ -3087,7 +3142,6 @@ export declare const PLUGINS: {
|
|
|
3087
3142
|
unsafeEvalBinding?: string | undefined;
|
|
3088
3143
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
3089
3144
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
3090
|
-
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
3091
3145
|
}) | ({
|
|
3092
3146
|
scriptPath: string;
|
|
3093
3147
|
modules?: boolean | undefined;
|
|
@@ -3178,7 +3232,6 @@ export declare const PLUGINS: {
|
|
|
3178
3232
|
unsafeEvalBinding?: string | undefined;
|
|
3179
3233
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
3180
3234
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
3181
|
-
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
3182
3235
|
}), ({
|
|
3183
3236
|
modules: {
|
|
3184
3237
|
type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
@@ -3286,7 +3339,6 @@ export declare const PLUGINS: {
|
|
|
3286
3339
|
unsafeEvalBinding?: string | undefined;
|
|
3287
3340
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
3288
3341
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
3289
|
-
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
3290
3342
|
}>, z.ZodObject<{
|
|
3291
3343
|
rootPath: z.ZodOptional<z.ZodEffects<z.ZodString, undefined, string>>;
|
|
3292
3344
|
host: z.ZodOptional<z.ZodString>;
|
|
@@ -3306,7 +3358,6 @@ export declare const PLUGINS: {
|
|
|
3306
3358
|
unsafeProxySharedSecret: z.ZodOptional<z.ZodString>;
|
|
3307
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>>>;
|
|
3308
3360
|
unsafeStickyBlobs: z.ZodOptional<z.ZodBoolean>;
|
|
3309
|
-
unsafeEnableAssetsRpc: z.ZodOptional<z.ZodBoolean>;
|
|
3310
3361
|
}, "strip", z.ZodTypeAny, {
|
|
3311
3362
|
rootPath?: undefined;
|
|
3312
3363
|
host?: string | undefined;
|
|
@@ -3326,7 +3377,6 @@ export declare const PLUGINS: {
|
|
|
3326
3377
|
unsafeProxySharedSecret?: string | undefined;
|
|
3327
3378
|
unsafeModuleFallbackService?: ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
|
|
3328
3379
|
unsafeStickyBlobs?: boolean | undefined;
|
|
3329
|
-
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
3330
3380
|
}, {
|
|
3331
3381
|
rootPath?: string | undefined;
|
|
3332
3382
|
host?: string | undefined;
|
|
@@ -3346,7 +3396,6 @@ export declare const PLUGINS: {
|
|
|
3346
3396
|
unsafeProxySharedSecret?: string | undefined;
|
|
3347
3397
|
unsafeModuleFallbackService?: ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
|
|
3348
3398
|
unsafeStickyBlobs?: boolean | undefined;
|
|
3349
|
-
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
3350
3399
|
}>>;
|
|
3351
3400
|
cache: Plugin_2<z.ZodObject<{
|
|
3352
3401
|
cache: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3595,7 +3644,7 @@ export declare const PLUGINS: {
|
|
|
3595
3644
|
invoke_user_worker_ahead_of_assets?: boolean;
|
|
3596
3645
|
has_user_worker?: boolean;
|
|
3597
3646
|
}>>;
|
|
3598
|
-
assetConfig: z.ZodOptional<z.ZodObject<{
|
|
3647
|
+
assetConfig: z.ZodOptional<z.ZodObject<Omit<{
|
|
3599
3648
|
account_id: z.ZodOptional<z.ZodNumber>;
|
|
3600
3649
|
script_id: z.ZodOptional<z.ZodNumber>;
|
|
3601
3650
|
compatibility_date: z.ZodOptional<z.ZodString>;
|
|
@@ -3675,13 +3724,18 @@ export declare const PLUGINS: {
|
|
|
3675
3724
|
unset?: string[];
|
|
3676
3725
|
}>;
|
|
3677
3726
|
}>>;
|
|
3678
|
-
}, "strip", z.ZodTypeAny, {
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
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;
|
|
3685
3739
|
redirects?: {
|
|
3686
3740
|
version?: 1;
|
|
3687
3741
|
staticRules?: Record<string, {
|
|
@@ -3693,21 +3747,19 @@ export declare const PLUGINS: {
|
|
|
3693
3747
|
status?: number;
|
|
3694
3748
|
to?: string;
|
|
3695
3749
|
}>;
|
|
3696
|
-
};
|
|
3750
|
+
} | undefined;
|
|
3751
|
+
}, {
|
|
3697
3752
|
headers?: {
|
|
3698
3753
|
version?: 2;
|
|
3699
3754
|
rules?: Record<string, {
|
|
3700
3755
|
set?: Record<string, string>;
|
|
3701
3756
|
unset?: string[];
|
|
3702
3757
|
}>;
|
|
3703
|
-
};
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
compatibility_flags?: string[];
|
|
3709
|
-
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
3710
|
-
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;
|
|
3711
3763
|
redirects?: {
|
|
3712
3764
|
version?: 1;
|
|
3713
3765
|
staticRules?: Record<string, {
|
|
@@ -3719,14 +3771,7 @@ export declare const PLUGINS: {
|
|
|
3719
3771
|
status?: number;
|
|
3720
3772
|
to?: string;
|
|
3721
3773
|
}>;
|
|
3722
|
-
};
|
|
3723
|
-
headers?: {
|
|
3724
|
-
version?: 2;
|
|
3725
|
-
rules?: Record<string, {
|
|
3726
|
-
set?: Record<string, string>;
|
|
3727
|
-
unset?: string[];
|
|
3728
|
-
}>;
|
|
3729
|
-
};
|
|
3774
|
+
} | undefined;
|
|
3730
3775
|
}>>;
|
|
3731
3776
|
}, "strip", z.ZodTypeAny, {
|
|
3732
3777
|
directory: string;
|
|
@@ -3739,12 +3784,17 @@ export declare const PLUGINS: {
|
|
|
3739
3784
|
has_user_worker?: boolean;
|
|
3740
3785
|
} | undefined;
|
|
3741
3786
|
assetConfig?: {
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
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;
|
|
3748
3798
|
redirects?: {
|
|
3749
3799
|
version?: 1;
|
|
3750
3800
|
staticRules?: Record<string, {
|
|
@@ -3756,14 +3806,7 @@ export declare const PLUGINS: {
|
|
|
3756
3806
|
status?: number;
|
|
3757
3807
|
to?: string;
|
|
3758
3808
|
}>;
|
|
3759
|
-
};
|
|
3760
|
-
headers?: {
|
|
3761
|
-
version?: 2;
|
|
3762
|
-
rules?: Record<string, {
|
|
3763
|
-
set?: Record<string, string>;
|
|
3764
|
-
unset?: string[];
|
|
3765
|
-
}>;
|
|
3766
|
-
};
|
|
3809
|
+
} | undefined;
|
|
3767
3810
|
} | undefined;
|
|
3768
3811
|
}, {
|
|
3769
3812
|
directory: string;
|
|
@@ -3776,12 +3819,17 @@ export declare const PLUGINS: {
|
|
|
3776
3819
|
has_user_worker?: boolean;
|
|
3777
3820
|
} | undefined;
|
|
3778
3821
|
assetConfig?: {
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
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;
|
|
3785
3833
|
redirects?: {
|
|
3786
3834
|
version?: 1;
|
|
3787
3835
|
staticRules?: Record<string, {
|
|
@@ -3793,16 +3841,11 @@ export declare const PLUGINS: {
|
|
|
3793
3841
|
status?: number;
|
|
3794
3842
|
to?: string;
|
|
3795
3843
|
}>;
|
|
3796
|
-
};
|
|
3797
|
-
headers?: {
|
|
3798
|
-
version?: 2;
|
|
3799
|
-
rules?: Record<string, {
|
|
3800
|
-
set?: Record<string, string>;
|
|
3801
|
-
unset?: string[];
|
|
3802
|
-
}>;
|
|
3803
|
-
};
|
|
3844
|
+
} | undefined;
|
|
3804
3845
|
} | undefined;
|
|
3805
3846
|
}>>;
|
|
3847
|
+
compatibilityDate: z.ZodOptional<z.ZodString>;
|
|
3848
|
+
compatibilityFlags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3806
3849
|
}, "strip", z.ZodTypeAny, {
|
|
3807
3850
|
assets?: {
|
|
3808
3851
|
directory: string;
|
|
@@ -3815,12 +3858,17 @@ export declare const PLUGINS: {
|
|
|
3815
3858
|
has_user_worker?: boolean;
|
|
3816
3859
|
} | undefined;
|
|
3817
3860
|
assetConfig?: {
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
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;
|
|
3824
3872
|
redirects?: {
|
|
3825
3873
|
version?: 1;
|
|
3826
3874
|
staticRules?: Record<string, {
|
|
@@ -3832,16 +3880,11 @@ export declare const PLUGINS: {
|
|
|
3832
3880
|
status?: number;
|
|
3833
3881
|
to?: string;
|
|
3834
3882
|
}>;
|
|
3835
|
-
};
|
|
3836
|
-
headers?: {
|
|
3837
|
-
version?: 2;
|
|
3838
|
-
rules?: Record<string, {
|
|
3839
|
-
set?: Record<string, string>;
|
|
3840
|
-
unset?: string[];
|
|
3841
|
-
}>;
|
|
3842
|
-
};
|
|
3843
3883
|
} | undefined;
|
|
3844
3884
|
} | undefined;
|
|
3885
|
+
} | undefined;
|
|
3886
|
+
compatibilityDate?: string | undefined;
|
|
3887
|
+
compatibilityFlags?: string[] | undefined;
|
|
3845
3888
|
}, {
|
|
3846
3889
|
assets?: {
|
|
3847
3890
|
directory: string;
|
|
@@ -3854,12 +3897,17 @@ export declare const PLUGINS: {
|
|
|
3854
3897
|
has_user_worker?: boolean;
|
|
3855
3898
|
} | undefined;
|
|
3856
3899
|
assetConfig?: {
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
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;
|
|
3863
3911
|
redirects?: {
|
|
3864
3912
|
version?: 1;
|
|
3865
3913
|
staticRules?: Record<string, {
|
|
@@ -3871,16 +3919,11 @@ export declare const PLUGINS: {
|
|
|
3871
3919
|
status?: number;
|
|
3872
3920
|
to?: string;
|
|
3873
3921
|
}>;
|
|
3874
|
-
};
|
|
3875
|
-
headers?: {
|
|
3876
|
-
version?: 2;
|
|
3877
|
-
rules?: Record<string, {
|
|
3878
|
-
set?: Record<string, string>;
|
|
3879
|
-
unset?: string[];
|
|
3880
|
-
}>;
|
|
3881
|
-
};
|
|
3882
3922
|
} | undefined;
|
|
3883
3923
|
} | undefined;
|
|
3924
|
+
} | undefined;
|
|
3925
|
+
compatibilityDate?: string | undefined;
|
|
3926
|
+
compatibilityFlags?: string[] | undefined;
|
|
3884
3927
|
}>>;
|
|
3885
3928
|
workflows: Plugin_2<z.ZodObject<{
|
|
3886
3929
|
workflows: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -3942,7 +3985,6 @@ export declare interface PluginServicesOptions<Options extends z.ZodType, Shared
|
|
|
3942
3985
|
unsafeEphemeralDurableObjects: boolean;
|
|
3943
3986
|
queueProducers: QueueProducers;
|
|
3944
3987
|
queueConsumers: QueueConsumers;
|
|
3945
|
-
unsafeEnableAssetsRpc: boolean;
|
|
3946
3988
|
}
|
|
3947
3989
|
|
|
3948
3990
|
export declare function prefixError(prefix: string, e: any): Error;
|