miniflare 0.0.0-05973bba4 → 0.0.0-05b1e8391
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 +551 -253
- package/dist/src/index.js +1184 -384
- package/dist/src/index.js.map +3 -3
- package/dist/src/workers/assets/assets.worker.js +156 -63
- 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/cache/cache.worker.js +2 -1
- package/dist/src/workers/cache/cache.worker.js.map +1 -1
- package/dist/src/workers/core/entry.worker.js +3360 -46
- package/dist/src/workers/core/entry.worker.js.map +3 -3
- package/dist/src/workers/email/email.worker.js +23 -0
- package/dist/src/workers/email/email.worker.js.map +6 -0
- package/dist/src/workers/email/send_email.worker.js +3180 -0
- package/dist/src/workers/email/send_email.worker.js.map +6 -0
- package/dist/src/workers/kv/namespace.worker.js +61 -2
- package/dist/src/workers/kv/namespace.worker.js.map +2 -2
- package/dist/src/workers/kv/sites.worker.js +2 -1
- package/dist/src/workers/kv/sites.worker.js.map +1 -1
- package/dist/src/workers/secrets-store/secret.worker.js +65 -0
- package/dist/src/workers/secrets-store/secret.worker.js.map +6 -0
- package/dist/src/workers/workflows/binding.worker.js +161 -7
- package/dist/src/workers/workflows/binding.worker.js.map +1 -1
- package/package.json +11 -8
package/dist/src/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ import { Json as Json_2 } from '..';
|
|
|
23
23
|
import { kCurrentWorker as kCurrentWorker_2 } from '..';
|
|
24
24
|
import { kUnsafeEphemeralUniqueKey as kUnsafeEphemeralUniqueKey_2 } from './shared';
|
|
25
25
|
import type { KVNamespace } from '@cloudflare/workers-types/experimental';
|
|
26
|
+
import type { KVNamespaceListKey } from '@cloudflare/workers-types/experimental';
|
|
26
27
|
import { Log as Log_2 } from '..';
|
|
27
28
|
import { Miniflare as Miniflare_2 } from '../..';
|
|
28
29
|
import { Miniflare as Miniflare_3 } from '..';
|
|
@@ -103,7 +104,7 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
103
104
|
invoke_user_worker_ahead_of_assets?: boolean;
|
|
104
105
|
has_user_worker?: boolean;
|
|
105
106
|
}>>;
|
|
106
|
-
assetConfig: z.ZodOptional<z.ZodObject<{
|
|
107
|
+
assetConfig: z.ZodOptional<z.ZodObject<Omit<{
|
|
107
108
|
account_id: z.ZodOptional<z.ZodNumber>;
|
|
108
109
|
script_id: z.ZodOptional<z.ZodNumber>;
|
|
109
110
|
compatibility_date: z.ZodOptional<z.ZodString>;
|
|
@@ -183,13 +184,18 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
183
184
|
unset?: string[];
|
|
184
185
|
}>;
|
|
185
186
|
}>>;
|
|
186
|
-
}, "strip", z.ZodTypeAny, {
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
187
|
+
}, "compatibility_date" | "compatibility_flags">, "strip", z.ZodTypeAny, {
|
|
188
|
+
headers?: {
|
|
189
|
+
version?: 2;
|
|
190
|
+
rules?: Record<string, {
|
|
191
|
+
set?: Record<string, string>;
|
|
192
|
+
unset?: string[];
|
|
193
|
+
}>;
|
|
194
|
+
} | undefined;
|
|
195
|
+
account_id?: number | undefined;
|
|
196
|
+
script_id?: number | undefined;
|
|
197
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
198
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
193
199
|
redirects?: {
|
|
194
200
|
version?: 1;
|
|
195
201
|
staticRules?: Record<string, {
|
|
@@ -201,21 +207,19 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
201
207
|
status?: number;
|
|
202
208
|
to?: string;
|
|
203
209
|
}>;
|
|
204
|
-
};
|
|
210
|
+
} | undefined;
|
|
211
|
+
}, {
|
|
205
212
|
headers?: {
|
|
206
213
|
version?: 2;
|
|
207
214
|
rules?: Record<string, {
|
|
208
215
|
set?: Record<string, string>;
|
|
209
216
|
unset?: string[];
|
|
210
217
|
}>;
|
|
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";
|
|
218
|
+
} | undefined;
|
|
219
|
+
account_id?: number | undefined;
|
|
220
|
+
script_id?: number | undefined;
|
|
221
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
222
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
219
223
|
redirects?: {
|
|
220
224
|
version?: 1;
|
|
221
225
|
staticRules?: Record<string, {
|
|
@@ -227,14 +231,7 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
227
231
|
status?: number;
|
|
228
232
|
to?: string;
|
|
229
233
|
}>;
|
|
230
|
-
};
|
|
231
|
-
headers?: {
|
|
232
|
-
version?: 2;
|
|
233
|
-
rules?: Record<string, {
|
|
234
|
-
set?: Record<string, string>;
|
|
235
|
-
unset?: string[];
|
|
236
|
-
}>;
|
|
237
|
-
};
|
|
234
|
+
} | undefined;
|
|
238
235
|
}>>;
|
|
239
236
|
}, "strip", z.ZodTypeAny, {
|
|
240
237
|
directory: string;
|
|
@@ -247,12 +244,17 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
247
244
|
has_user_worker?: boolean;
|
|
248
245
|
} | undefined;
|
|
249
246
|
assetConfig?: {
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
247
|
+
headers?: {
|
|
248
|
+
version?: 2;
|
|
249
|
+
rules?: Record<string, {
|
|
250
|
+
set?: Record<string, string>;
|
|
251
|
+
unset?: string[];
|
|
252
|
+
}>;
|
|
253
|
+
} | undefined;
|
|
254
|
+
account_id?: number | undefined;
|
|
255
|
+
script_id?: number | undefined;
|
|
256
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
257
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
256
258
|
redirects?: {
|
|
257
259
|
version?: 1;
|
|
258
260
|
staticRules?: Record<string, {
|
|
@@ -264,14 +266,7 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
264
266
|
status?: number;
|
|
265
267
|
to?: string;
|
|
266
268
|
}>;
|
|
267
|
-
};
|
|
268
|
-
headers?: {
|
|
269
|
-
version?: 2;
|
|
270
|
-
rules?: Record<string, {
|
|
271
|
-
set?: Record<string, string>;
|
|
272
|
-
unset?: string[];
|
|
273
|
-
}>;
|
|
274
|
-
};
|
|
269
|
+
} | undefined;
|
|
275
270
|
} | undefined;
|
|
276
271
|
}, {
|
|
277
272
|
directory: string;
|
|
@@ -284,12 +279,17 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
284
279
|
has_user_worker?: boolean;
|
|
285
280
|
} | undefined;
|
|
286
281
|
assetConfig?: {
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
282
|
+
headers?: {
|
|
283
|
+
version?: 2;
|
|
284
|
+
rules?: Record<string, {
|
|
285
|
+
set?: Record<string, string>;
|
|
286
|
+
unset?: string[];
|
|
287
|
+
}>;
|
|
288
|
+
} | undefined;
|
|
289
|
+
account_id?: number | undefined;
|
|
290
|
+
script_id?: number | undefined;
|
|
291
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
292
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
293
293
|
redirects?: {
|
|
294
294
|
version?: 1;
|
|
295
295
|
staticRules?: Record<string, {
|
|
@@ -301,16 +301,11 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
301
301
|
status?: number;
|
|
302
302
|
to?: string;
|
|
303
303
|
}>;
|
|
304
|
-
};
|
|
305
|
-
headers?: {
|
|
306
|
-
version?: 2;
|
|
307
|
-
rules?: Record<string, {
|
|
308
|
-
set?: Record<string, string>;
|
|
309
|
-
unset?: string[];
|
|
310
|
-
}>;
|
|
311
|
-
};
|
|
304
|
+
} | undefined;
|
|
312
305
|
} | undefined;
|
|
313
306
|
}>>;
|
|
307
|
+
compatibilityDate: z.ZodOptional<z.ZodString>;
|
|
308
|
+
compatibilityFlags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
314
309
|
}, "strip", z.ZodTypeAny, {
|
|
315
310
|
assets?: {
|
|
316
311
|
directory: string;
|
|
@@ -323,12 +318,17 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
323
318
|
has_user_worker?: boolean;
|
|
324
319
|
} | undefined;
|
|
325
320
|
assetConfig?: {
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
321
|
+
headers?: {
|
|
322
|
+
version?: 2;
|
|
323
|
+
rules?: Record<string, {
|
|
324
|
+
set?: Record<string, string>;
|
|
325
|
+
unset?: string[];
|
|
326
|
+
}>;
|
|
327
|
+
} | undefined;
|
|
328
|
+
account_id?: number | undefined;
|
|
329
|
+
script_id?: number | undefined;
|
|
330
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
331
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
332
332
|
redirects?: {
|
|
333
333
|
version?: 1;
|
|
334
334
|
staticRules?: Record<string, {
|
|
@@ -340,16 +340,11 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
340
340
|
status?: number;
|
|
341
341
|
to?: string;
|
|
342
342
|
}>;
|
|
343
|
-
};
|
|
344
|
-
headers?: {
|
|
345
|
-
version?: 2;
|
|
346
|
-
rules?: Record<string, {
|
|
347
|
-
set?: Record<string, string>;
|
|
348
|
-
unset?: string[];
|
|
349
|
-
}>;
|
|
350
|
-
};
|
|
343
|
+
} | undefined;
|
|
351
344
|
} | undefined;
|
|
352
345
|
} | undefined;
|
|
346
|
+
compatibilityDate?: string | undefined;
|
|
347
|
+
compatibilityFlags?: string[] | undefined;
|
|
353
348
|
}, {
|
|
354
349
|
assets?: {
|
|
355
350
|
directory: string;
|
|
@@ -362,12 +357,17 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
362
357
|
has_user_worker?: boolean;
|
|
363
358
|
} | undefined;
|
|
364
359
|
assetConfig?: {
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
360
|
+
headers?: {
|
|
361
|
+
version?: 2;
|
|
362
|
+
rules?: Record<string, {
|
|
363
|
+
set?: Record<string, string>;
|
|
364
|
+
unset?: string[];
|
|
365
|
+
}>;
|
|
366
|
+
} | undefined;
|
|
367
|
+
account_id?: number | undefined;
|
|
368
|
+
script_id?: number | undefined;
|
|
369
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
370
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
371
371
|
redirects?: {
|
|
372
372
|
version?: 1;
|
|
373
373
|
staticRules?: Record<string, {
|
|
@@ -379,16 +379,11 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
379
379
|
status?: number;
|
|
380
380
|
to?: string;
|
|
381
381
|
}>;
|
|
382
|
-
};
|
|
383
|
-
headers?: {
|
|
384
|
-
version?: 2;
|
|
385
|
-
rules?: Record<string, {
|
|
386
|
-
set?: Record<string, string>;
|
|
387
|
-
unset?: string[];
|
|
388
|
-
}>;
|
|
389
|
-
};
|
|
382
|
+
} | undefined;
|
|
390
383
|
} | undefined;
|
|
391
384
|
} | undefined;
|
|
385
|
+
compatibilityDate?: string | undefined;
|
|
386
|
+
compatibilityFlags?: string[] | undefined;
|
|
392
387
|
}>;
|
|
393
388
|
|
|
394
389
|
export declare type Awaitable<T> = T | Promise<T>;
|
|
@@ -494,6 +489,8 @@ export declare const CoreBindings: {
|
|
|
494
489
|
readonly DURABLE_OBJECT_NAMESPACE_PROXY: "MINIFLARE_PROXY";
|
|
495
490
|
readonly DATA_PROXY_SECRET: "MINIFLARE_PROXY_SECRET";
|
|
496
491
|
readonly DATA_PROXY_SHARED_SECRET: "MINIFLARE_PROXY_SHARED_SECRET";
|
|
492
|
+
readonly TRIGGER_HANDLERS: "TRIGGER_HANDLERS";
|
|
493
|
+
readonly LOG_REQUESTS: "LOG_REQUESTS";
|
|
497
494
|
};
|
|
498
495
|
|
|
499
496
|
export declare const CoreHeaders: {
|
|
@@ -515,29 +512,29 @@ export declare const CoreHeaders: {
|
|
|
515
512
|
|
|
516
513
|
export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
517
514
|
modules: z.ZodArray<z.ZodObject<{
|
|
518
|
-
type: z.ZodEnum<["ESModule", "CommonJS", "
|
|
515
|
+
type: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
|
|
519
516
|
path: z.ZodEffects<z.ZodString, string, string>;
|
|
520
517
|
contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>;
|
|
521
518
|
}, "strip", z.ZodTypeAny, {
|
|
522
|
-
type: "ESModule" | "CommonJS" | "
|
|
519
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
523
520
|
path: string;
|
|
524
521
|
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
525
522
|
}, {
|
|
526
|
-
type: "ESModule" | "CommonJS" | "
|
|
523
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
527
524
|
path: string;
|
|
528
525
|
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
529
526
|
}>, "many">;
|
|
530
527
|
modulesRoot: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
531
528
|
}, "strip", z.ZodTypeAny, {
|
|
532
529
|
modules: {
|
|
533
|
-
type: "ESModule" | "CommonJS" | "
|
|
530
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
534
531
|
path: string;
|
|
535
532
|
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
536
533
|
}[];
|
|
537
534
|
modulesRoot?: string | undefined;
|
|
538
535
|
}, {
|
|
539
536
|
modules: {
|
|
540
|
-
type: "ESModule" | "CommonJS" | "
|
|
537
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
541
538
|
path: string;
|
|
542
539
|
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
543
540
|
}[];
|
|
@@ -547,15 +544,15 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
547
544
|
scriptPath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
548
545
|
modules: z.ZodOptional<z.ZodBoolean>;
|
|
549
546
|
modulesRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
550
|
-
type: z.ZodEnum<["ESModule", "CommonJS", "
|
|
547
|
+
type: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
|
|
551
548
|
include: z.ZodArray<z.ZodString, "many">;
|
|
552
549
|
fallthrough: z.ZodOptional<z.ZodBoolean>;
|
|
553
550
|
}, "strip", z.ZodTypeAny, {
|
|
554
|
-
type: "ESModule" | "CommonJS" | "
|
|
551
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
555
552
|
include: string[];
|
|
556
553
|
fallthrough?: boolean | undefined;
|
|
557
554
|
}, {
|
|
558
|
-
type: "ESModule" | "CommonJS" | "
|
|
555
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
559
556
|
include: string[];
|
|
560
557
|
fallthrough?: boolean | undefined;
|
|
561
558
|
}>, "many">>;
|
|
@@ -565,7 +562,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
565
562
|
scriptPath?: string | undefined;
|
|
566
563
|
modules?: boolean | undefined;
|
|
567
564
|
modulesRules?: {
|
|
568
|
-
type: "ESModule" | "CommonJS" | "
|
|
565
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
569
566
|
include: string[];
|
|
570
567
|
fallthrough?: boolean | undefined;
|
|
571
568
|
}[] | undefined;
|
|
@@ -575,7 +572,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
575
572
|
scriptPath?: string | undefined;
|
|
576
573
|
modules?: boolean | undefined;
|
|
577
574
|
modulesRules?: {
|
|
578
|
-
type: "ESModule" | "CommonJS" | "
|
|
575
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
579
576
|
include: string[];
|
|
580
577
|
fallthrough?: boolean | undefined;
|
|
581
578
|
}[] | undefined;
|
|
@@ -584,15 +581,15 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
584
581
|
scriptPath: z.ZodEffects<z.ZodString, string, string>;
|
|
585
582
|
modules: z.ZodOptional<z.ZodBoolean>;
|
|
586
583
|
modulesRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
587
|
-
type: z.ZodEnum<["ESModule", "CommonJS", "
|
|
584
|
+
type: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
|
|
588
585
|
include: z.ZodArray<z.ZodString, "many">;
|
|
589
586
|
fallthrough: z.ZodOptional<z.ZodBoolean>;
|
|
590
587
|
}, "strip", z.ZodTypeAny, {
|
|
591
|
-
type: "ESModule" | "CommonJS" | "
|
|
588
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
592
589
|
include: string[];
|
|
593
590
|
fallthrough?: boolean | undefined;
|
|
594
591
|
}, {
|
|
595
|
-
type: "ESModule" | "CommonJS" | "
|
|
592
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
596
593
|
include: string[];
|
|
597
594
|
fallthrough?: boolean | undefined;
|
|
598
595
|
}>, "many">>;
|
|
@@ -601,7 +598,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
601
598
|
scriptPath: string;
|
|
602
599
|
modules?: boolean | undefined;
|
|
603
600
|
modulesRules?: {
|
|
604
|
-
type: "ESModule" | "CommonJS" | "
|
|
601
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
605
602
|
include: string[];
|
|
606
603
|
fallthrough?: boolean | undefined;
|
|
607
604
|
}[] | undefined;
|
|
@@ -610,7 +607,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
610
607
|
scriptPath: string;
|
|
611
608
|
modules?: boolean | undefined;
|
|
612
609
|
modulesRules?: {
|
|
613
|
-
type: "ESModule" | "CommonJS" | "
|
|
610
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
614
611
|
include: string[];
|
|
615
612
|
fallthrough?: boolean | undefined;
|
|
616
613
|
}[] | undefined;
|
|
@@ -620,6 +617,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
620
617
|
rootPath: z.ZodOptional<z.ZodEffects<z.ZodString, undefined, string>>;
|
|
621
618
|
compatibilityDate: z.ZodOptional<z.ZodString>;
|
|
622
619
|
compatibilityFlags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
620
|
+
unsafeInspectorProxy: z.ZodOptional<z.ZodBoolean>;
|
|
623
621
|
routes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
624
622
|
bindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<Json, z.ZodTypeDef, Json>>>;
|
|
625
623
|
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 +953,12 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
955
953
|
Router Worker)
|
|
956
954
|
*/
|
|
957
955
|
hasAssetsAndIsVitest: z.ZodOptional<z.ZodBoolean>;
|
|
958
|
-
unsafeEnableAssetsRpc: z.ZodOptional<z.ZodBoolean>;
|
|
959
956
|
}, "strip", z.ZodTypeAny, {
|
|
960
957
|
name?: string | undefined;
|
|
961
958
|
rootPath?: undefined;
|
|
962
959
|
compatibilityDate?: string | undefined;
|
|
963
960
|
compatibilityFlags?: string[] | undefined;
|
|
961
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
964
962
|
routes?: string[] | undefined;
|
|
965
963
|
bindings?: Record<string, Json> | undefined;
|
|
966
964
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -1036,12 +1034,12 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1036
1034
|
unsafeEvalBinding?: string | undefined;
|
|
1037
1035
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
1038
1036
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
1039
|
-
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
1040
1037
|
}, {
|
|
1041
1038
|
name?: string | undefined;
|
|
1042
1039
|
rootPath?: string | undefined;
|
|
1043
1040
|
compatibilityDate?: string | undefined;
|
|
1044
1041
|
compatibilityFlags?: string[] | undefined;
|
|
1042
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
1045
1043
|
routes?: string[] | undefined;
|
|
1046
1044
|
bindings?: Record<string, Json> | undefined;
|
|
1047
1045
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -1117,10 +1115,9 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1117
1115
|
unsafeEvalBinding?: string | undefined;
|
|
1118
1116
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
1119
1117
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
1120
|
-
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
1121
1118
|
}>>, ({
|
|
1122
1119
|
modules: {
|
|
1123
|
-
type: "ESModule" | "CommonJS" | "
|
|
1120
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
1124
1121
|
path: string;
|
|
1125
1122
|
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
1126
1123
|
}[];
|
|
@@ -1130,6 +1127,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1130
1127
|
rootPath?: undefined;
|
|
1131
1128
|
compatibilityDate?: string | undefined;
|
|
1132
1129
|
compatibilityFlags?: string[] | undefined;
|
|
1130
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
1133
1131
|
routes?: string[] | undefined;
|
|
1134
1132
|
bindings?: Record<string, Json> | undefined;
|
|
1135
1133
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -1205,13 +1203,12 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1205
1203
|
unsafeEvalBinding?: string | undefined;
|
|
1206
1204
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
1207
1205
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
1208
|
-
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
1209
1206
|
}) | ({
|
|
1210
1207
|
script: string;
|
|
1211
1208
|
scriptPath?: string | undefined;
|
|
1212
1209
|
modules?: boolean | undefined;
|
|
1213
1210
|
modulesRules?: {
|
|
1214
|
-
type: "ESModule" | "CommonJS" | "
|
|
1211
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
1215
1212
|
include: string[];
|
|
1216
1213
|
fallthrough?: boolean | undefined;
|
|
1217
1214
|
}[] | undefined;
|
|
@@ -1221,6 +1218,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1221
1218
|
rootPath?: undefined;
|
|
1222
1219
|
compatibilityDate?: string | undefined;
|
|
1223
1220
|
compatibilityFlags?: string[] | undefined;
|
|
1221
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
1224
1222
|
routes?: string[] | undefined;
|
|
1225
1223
|
bindings?: Record<string, Json> | undefined;
|
|
1226
1224
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -1296,12 +1294,11 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1296
1294
|
unsafeEvalBinding?: string | undefined;
|
|
1297
1295
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
1298
1296
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
1299
|
-
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
1300
1297
|
}) | ({
|
|
1301
1298
|
scriptPath: string;
|
|
1302
1299
|
modules?: boolean | undefined;
|
|
1303
1300
|
modulesRules?: {
|
|
1304
|
-
type: "ESModule" | "CommonJS" | "
|
|
1301
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
1305
1302
|
include: string[];
|
|
1306
1303
|
fallthrough?: boolean | undefined;
|
|
1307
1304
|
}[] | undefined;
|
|
@@ -1311,6 +1308,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1311
1308
|
rootPath?: undefined;
|
|
1312
1309
|
compatibilityDate?: string | undefined;
|
|
1313
1310
|
compatibilityFlags?: string[] | undefined;
|
|
1311
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
1314
1312
|
routes?: string[] | undefined;
|
|
1315
1313
|
bindings?: Record<string, Json> | undefined;
|
|
1316
1314
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -1386,10 +1384,9 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1386
1384
|
unsafeEvalBinding?: string | undefined;
|
|
1387
1385
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
1388
1386
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
1389
|
-
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
1390
1387
|
}), ({
|
|
1391
1388
|
modules: {
|
|
1392
|
-
type: "ESModule" | "CommonJS" | "
|
|
1389
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
1393
1390
|
path: string;
|
|
1394
1391
|
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
1395
1392
|
}[];
|
|
@@ -1399,7 +1396,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1399
1396
|
scriptPath?: string | undefined;
|
|
1400
1397
|
modules?: boolean | undefined;
|
|
1401
1398
|
modulesRules?: {
|
|
1402
|
-
type: "ESModule" | "CommonJS" | "
|
|
1399
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
1403
1400
|
include: string[];
|
|
1404
1401
|
fallthrough?: boolean | undefined;
|
|
1405
1402
|
}[] | undefined;
|
|
@@ -1408,7 +1405,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1408
1405
|
scriptPath: string;
|
|
1409
1406
|
modules?: boolean | undefined;
|
|
1410
1407
|
modulesRules?: {
|
|
1411
|
-
type: "ESModule" | "CommonJS" | "
|
|
1408
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
1412
1409
|
include: string[];
|
|
1413
1410
|
fallthrough?: boolean | undefined;
|
|
1414
1411
|
}[] | undefined;
|
|
@@ -1418,6 +1415,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1418
1415
|
rootPath?: string | undefined;
|
|
1419
1416
|
compatibilityDate?: string | undefined;
|
|
1420
1417
|
compatibilityFlags?: string[] | undefined;
|
|
1418
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
1421
1419
|
routes?: string[] | undefined;
|
|
1422
1420
|
bindings?: Record<string, Json> | undefined;
|
|
1423
1421
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -1493,7 +1491,6 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1493
1491
|
unsafeEvalBinding?: string | undefined;
|
|
1494
1492
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
1495
1493
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
1496
|
-
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
1497
1494
|
}>;
|
|
1498
1495
|
|
|
1499
1496
|
export declare const CoreSharedOptionsSchema: z.ZodObject<{
|
|
@@ -1515,8 +1512,10 @@ export declare const CoreSharedOptionsSchema: z.ZodObject<{
|
|
|
1515
1512
|
unsafeProxySharedSecret: z.ZodOptional<z.ZodString>;
|
|
1516
1513
|
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
1514
|
unsafeStickyBlobs: z.ZodOptional<z.ZodBoolean>;
|
|
1518
|
-
|
|
1515
|
+
unsafeTriggerHandlers: z.ZodOptional<z.ZodBoolean>;
|
|
1516
|
+
logRequests: z.ZodDefault<z.ZodBoolean>;
|
|
1519
1517
|
}, "strip", z.ZodTypeAny, {
|
|
1518
|
+
logRequests: boolean;
|
|
1520
1519
|
rootPath?: undefined;
|
|
1521
1520
|
host?: string | undefined;
|
|
1522
1521
|
port?: number | undefined;
|
|
@@ -1535,7 +1534,7 @@ export declare const CoreSharedOptionsSchema: z.ZodObject<{
|
|
|
1535
1534
|
unsafeProxySharedSecret?: string | undefined;
|
|
1536
1535
|
unsafeModuleFallbackService?: ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
|
|
1537
1536
|
unsafeStickyBlobs?: boolean | undefined;
|
|
1538
|
-
|
|
1537
|
+
unsafeTriggerHandlers?: boolean | undefined;
|
|
1539
1538
|
}, {
|
|
1540
1539
|
rootPath?: string | undefined;
|
|
1541
1540
|
host?: string | undefined;
|
|
@@ -1555,7 +1554,8 @@ export declare const CoreSharedOptionsSchema: z.ZodObject<{
|
|
|
1555
1554
|
unsafeProxySharedSecret?: string | undefined;
|
|
1556
1555
|
unsafeModuleFallbackService?: ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
|
|
1557
1556
|
unsafeStickyBlobs?: boolean | undefined;
|
|
1558
|
-
|
|
1557
|
+
unsafeTriggerHandlers?: boolean | undefined;
|
|
1558
|
+
logRequests?: boolean | undefined;
|
|
1559
1559
|
}>;
|
|
1560
1560
|
|
|
1561
1561
|
export declare function coupleWebSocket(ws: NodeWebSocket, pair: WebSocket): Promise<void>;
|
|
@@ -1607,6 +1607,7 @@ export declare function deserialiseSiteRegExps(siteRegExps: SerialisableSiteMatc
|
|
|
1607
1607
|
export declare interface DiskDirectory {
|
|
1608
1608
|
path?: string;
|
|
1609
1609
|
writable?: boolean;
|
|
1610
|
+
allowDotfiles?: boolean;
|
|
1610
1611
|
}
|
|
1611
1612
|
|
|
1612
1613
|
export declare type DispatchFetch = (input: RequestInfo, init?: RequestInit_2<Partial<IncomingRequestCfProperties>>) => Promise<Response_2>;
|
|
@@ -1703,6 +1704,84 @@ export declare const DurableObjectsSharedOptionsSchema: z.ZodObject<{
|
|
|
1703
1704
|
durableObjectsPersist?: string | boolean | undefined;
|
|
1704
1705
|
}>;
|
|
1705
1706
|
|
|
1707
|
+
export declare const EMAIL_PLUGIN: Plugin<typeof EmailOptionsSchema>;
|
|
1708
|
+
|
|
1709
|
+
export declare const EMAIL_PLUGIN_NAME = "email";
|
|
1710
|
+
|
|
1711
|
+
export declare const EmailOptionsSchema: z.ZodObject<{
|
|
1712
|
+
email: z.ZodOptional<z.ZodObject<{
|
|
1713
|
+
send_email: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
1714
|
+
name: z.ZodString;
|
|
1715
|
+
}, "strip", z.ZodTypeAny, {
|
|
1716
|
+
name: string;
|
|
1717
|
+
}, {
|
|
1718
|
+
name: string;
|
|
1719
|
+
}>, z.ZodUnion<[z.ZodObject<{
|
|
1720
|
+
destination_address: z.ZodOptional<z.ZodString>;
|
|
1721
|
+
allowed_destination_addresses: z.ZodOptional<z.ZodNever>;
|
|
1722
|
+
}, "strip", z.ZodTypeAny, {
|
|
1723
|
+
destination_address?: string | undefined;
|
|
1724
|
+
allowed_destination_addresses?: undefined;
|
|
1725
|
+
}, {
|
|
1726
|
+
destination_address?: string | undefined;
|
|
1727
|
+
allowed_destination_addresses?: undefined;
|
|
1728
|
+
}>, z.ZodObject<{
|
|
1729
|
+
allowed_destination_addresses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1730
|
+
destination_address: z.ZodOptional<z.ZodNever>;
|
|
1731
|
+
}, "strip", z.ZodTypeAny, {
|
|
1732
|
+
allowed_destination_addresses?: string[] | undefined;
|
|
1733
|
+
destination_address?: undefined;
|
|
1734
|
+
}, {
|
|
1735
|
+
allowed_destination_addresses?: string[] | undefined;
|
|
1736
|
+
destination_address?: undefined;
|
|
1737
|
+
}>]>>, "many">>;
|
|
1738
|
+
}, "strip", z.ZodTypeAny, {
|
|
1739
|
+
send_email?: ({
|
|
1740
|
+
name: string;
|
|
1741
|
+
} & ({
|
|
1742
|
+
destination_address?: string | undefined;
|
|
1743
|
+
allowed_destination_addresses?: undefined;
|
|
1744
|
+
} | {
|
|
1745
|
+
allowed_destination_addresses?: string[] | undefined;
|
|
1746
|
+
destination_address?: undefined;
|
|
1747
|
+
}))[] | undefined;
|
|
1748
|
+
}, {
|
|
1749
|
+
send_email?: ({
|
|
1750
|
+
name: string;
|
|
1751
|
+
} & ({
|
|
1752
|
+
destination_address?: string | undefined;
|
|
1753
|
+
allowed_destination_addresses?: undefined;
|
|
1754
|
+
} | {
|
|
1755
|
+
allowed_destination_addresses?: string[] | undefined;
|
|
1756
|
+
destination_address?: undefined;
|
|
1757
|
+
}))[] | undefined;
|
|
1758
|
+
}>>;
|
|
1759
|
+
}, "strip", z.ZodTypeAny, {
|
|
1760
|
+
email?: {
|
|
1761
|
+
send_email?: ({
|
|
1762
|
+
name: string;
|
|
1763
|
+
} & ({
|
|
1764
|
+
destination_address?: string | undefined;
|
|
1765
|
+
allowed_destination_addresses?: undefined;
|
|
1766
|
+
} | {
|
|
1767
|
+
allowed_destination_addresses?: string[] | undefined;
|
|
1768
|
+
destination_address?: undefined;
|
|
1769
|
+
}))[] | undefined;
|
|
1770
|
+
} | undefined;
|
|
1771
|
+
}, {
|
|
1772
|
+
email?: {
|
|
1773
|
+
send_email?: ({
|
|
1774
|
+
name: string;
|
|
1775
|
+
} & ({
|
|
1776
|
+
destination_address?: string | undefined;
|
|
1777
|
+
allowed_destination_addresses?: undefined;
|
|
1778
|
+
} | {
|
|
1779
|
+
allowed_destination_addresses?: string[] | undefined;
|
|
1780
|
+
destination_address?: undefined;
|
|
1781
|
+
}))[] | undefined;
|
|
1782
|
+
} | undefined;
|
|
1783
|
+
}>;
|
|
1784
|
+
|
|
1706
1785
|
/* Excluded from this release type: _enableControlEndpoints */
|
|
1707
1786
|
|
|
1708
1787
|
export declare function encodeSitesKey(key: string): string;
|
|
@@ -1926,6 +2005,7 @@ export declare const KVLimits: {
|
|
|
1926
2005
|
readonly MAX_VALUE_SIZE: number;
|
|
1927
2006
|
readonly MAX_VALUE_SIZE_TEST: 1024;
|
|
1928
2007
|
readonly MAX_METADATA_SIZE: 1024;
|
|
2008
|
+
readonly MAX_BULK_SIZE: number;
|
|
1929
2009
|
};
|
|
1930
2010
|
|
|
1931
2011
|
export declare const kVoid: unique symbol;
|
|
@@ -2012,6 +2092,8 @@ export declare interface MatcherRegExps {
|
|
|
2012
2092
|
|
|
2013
2093
|
export declare function matchRoutes(routes: WorkerRoute[], url: URL): string | null;
|
|
2014
2094
|
|
|
2095
|
+
export declare const MAX_BULK_GET_KEYS = 100;
|
|
2096
|
+
|
|
2015
2097
|
export declare function maybeApply<From, To>(f: (value: From) => To, maybeValue: From | undefined): To | undefined;
|
|
2016
2098
|
|
|
2017
2099
|
export declare function maybeParseURL(url: Persistence): URL | undefined;
|
|
@@ -2049,6 +2131,17 @@ export declare class Miniflare {
|
|
|
2049
2131
|
getD1Database(bindingName: string, workerName?: string): Promise<D1Database>;
|
|
2050
2132
|
getDurableObjectNamespace(bindingName: string, workerName?: string): Promise<ReplaceWorkersTypes<DurableObjectNamespace>>;
|
|
2051
2133
|
getKVNamespace(bindingName: string, workerName?: string): Promise<ReplaceWorkersTypes<KVNamespace>>;
|
|
2134
|
+
getSecretsStoreSecretAPI(bindingName: string, workerName?: string): Promise<() => {
|
|
2135
|
+
create: (value: string) => Promise<string>;
|
|
2136
|
+
update: (value: string, id: string) => Promise<string>;
|
|
2137
|
+
duplicate: (id: string, newName: string) => Promise<string>;
|
|
2138
|
+
delete: (id: string) => Promise<void>;
|
|
2139
|
+
list: () => Promise<KVNamespaceListKey<{
|
|
2140
|
+
uuid: string;
|
|
2141
|
+
}, string>[]>;
|
|
2142
|
+
get: (id: string) => Promise<string>;
|
|
2143
|
+
}>;
|
|
2144
|
+
getSecretsStoreSecret(bindingName: string, workerName?: string): Promise<ReplaceWorkersTypes<KVNamespace>>;
|
|
2052
2145
|
getQueueProducer<Body = unknown>(bindingName: string, workerName?: string): Promise<Queue<Body>>;
|
|
2053
2146
|
getR2Bucket(bindingName: string, workerName?: string): Promise<ReplaceWorkersTypes<R2Bucket>>;
|
|
2054
2147
|
/* Excluded from this release type: _getInternalDurableObjectNamespace */
|
|
@@ -2059,7 +2152,7 @@ export declare class Miniflare {
|
|
|
2059
2152
|
export declare class MiniflareCoreError extends MiniflareError<MiniflareCoreErrorCode> {
|
|
2060
2153
|
}
|
|
2061
2154
|
|
|
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";
|
|
2155
|
+
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
2156
|
|
|
2064
2157
|
export declare class MiniflareError<Code extends string | number = string | number> extends Error {
|
|
2065
2158
|
readonly code: Code;
|
|
@@ -2074,15 +2167,15 @@ export declare type MiniflareOptions = SharedOptions & (WorkerOptions | {
|
|
|
2074
2167
|
export declare type ModuleDefinition = z.infer<typeof ModuleDefinitionSchema>;
|
|
2075
2168
|
|
|
2076
2169
|
export declare const ModuleDefinitionSchema: z.ZodObject<{
|
|
2077
|
-
type: z.ZodEnum<["ESModule", "CommonJS", "
|
|
2170
|
+
type: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
|
|
2078
2171
|
path: z.ZodEffects<z.ZodString, string, string>;
|
|
2079
2172
|
contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>;
|
|
2080
2173
|
}, "strip", z.ZodTypeAny, {
|
|
2081
|
-
type: "ESModule" | "CommonJS" | "
|
|
2174
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2082
2175
|
path: string;
|
|
2083
2176
|
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
2084
2177
|
}, {
|
|
2085
|
-
type: "ESModule" | "CommonJS" | "
|
|
2178
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2086
2179
|
path: string;
|
|
2087
2180
|
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
2088
2181
|
}>;
|
|
@@ -2090,22 +2183,22 @@ export declare const ModuleDefinitionSchema: z.ZodObject<{
|
|
|
2090
2183
|
export declare type ModuleRule = z.infer<typeof ModuleRuleSchema>;
|
|
2091
2184
|
|
|
2092
2185
|
export declare const ModuleRuleSchema: z.ZodObject<{
|
|
2093
|
-
type: z.ZodEnum<["ESModule", "CommonJS", "
|
|
2186
|
+
type: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
|
|
2094
2187
|
include: z.ZodArray<z.ZodString, "many">;
|
|
2095
2188
|
fallthrough: z.ZodOptional<z.ZodBoolean>;
|
|
2096
2189
|
}, "strip", z.ZodTypeAny, {
|
|
2097
|
-
type: "ESModule" | "CommonJS" | "
|
|
2190
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2098
2191
|
include: string[];
|
|
2099
2192
|
fallthrough?: boolean | undefined;
|
|
2100
2193
|
}, {
|
|
2101
|
-
type: "ESModule" | "CommonJS" | "
|
|
2194
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2102
2195
|
include: string[];
|
|
2103
2196
|
fallthrough?: boolean | undefined;
|
|
2104
2197
|
}>;
|
|
2105
2198
|
|
|
2106
2199
|
export declare type ModuleRuleType = z.infer<typeof ModuleRuleTypeSchema>;
|
|
2107
2200
|
|
|
2108
|
-
export declare const ModuleRuleTypeSchema: z.ZodEnum<["ESModule", "CommonJS", "
|
|
2201
|
+
export declare const ModuleRuleTypeSchema: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
|
|
2109
2202
|
|
|
2110
2203
|
export declare class Mutex {
|
|
2111
2204
|
private locked;
|
|
@@ -2160,7 +2253,82 @@ export declare type OptionalZodTypeOf<T extends z.ZodTypeAny | undefined> = T ex
|
|
|
2160
2253
|
|
|
2161
2254
|
export declare type OverloadReplaceWorkersTypes<T> = T extends (...args: any[]) => any ? UnionToIntersection<ReplaceWorkersTypes<OverloadUnion<T>>> : ReplaceWorkersTypes<T>;
|
|
2162
2255
|
|
|
2163
|
-
export declare type OverloadUnion<T extends (...args: any[]) => any> = Parameters<T> extends [] ? T :
|
|
2256
|
+
export declare type OverloadUnion<T extends (...args: any[]) => any> = Parameters<T> extends [] ? T : OverloadUnion14<T>;
|
|
2257
|
+
|
|
2258
|
+
export declare type OverloadUnion10<T> = T extends {
|
|
2259
|
+
(...args: infer P1): infer R1;
|
|
2260
|
+
(...args: infer P2): infer R2;
|
|
2261
|
+
(...args: infer P3): infer R3;
|
|
2262
|
+
(...args: infer P4): infer R4;
|
|
2263
|
+
(...args: infer P5): infer R5;
|
|
2264
|
+
(...args: infer P6): infer R6;
|
|
2265
|
+
(...args: infer P7): infer R7;
|
|
2266
|
+
(...args: infer P8): infer R8;
|
|
2267
|
+
(...args: infer P9): infer R9;
|
|
2268
|
+
(...args: infer P10): infer R10;
|
|
2269
|
+
} ? ((...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>;
|
|
2270
|
+
|
|
2271
|
+
export declare type OverloadUnion11<T> = T extends {
|
|
2272
|
+
(...args: infer P1): infer R1;
|
|
2273
|
+
(...args: infer P2): infer R2;
|
|
2274
|
+
(...args: infer P3): infer R3;
|
|
2275
|
+
(...args: infer P4): infer R4;
|
|
2276
|
+
(...args: infer P5): infer R5;
|
|
2277
|
+
(...args: infer P6): infer R6;
|
|
2278
|
+
(...args: infer P7): infer R7;
|
|
2279
|
+
(...args: infer P8): infer R8;
|
|
2280
|
+
(...args: infer P9): infer R9;
|
|
2281
|
+
(...args: infer P10): infer R10;
|
|
2282
|
+
(...args: infer P11): infer R11;
|
|
2283
|
+
} ? ((...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>;
|
|
2284
|
+
|
|
2285
|
+
export declare type OverloadUnion12<T> = T extends {
|
|
2286
|
+
(...args: infer P1): infer R1;
|
|
2287
|
+
(...args: infer P2): infer R2;
|
|
2288
|
+
(...args: infer P3): infer R3;
|
|
2289
|
+
(...args: infer P4): infer R4;
|
|
2290
|
+
(...args: infer P5): infer R5;
|
|
2291
|
+
(...args: infer P6): infer R6;
|
|
2292
|
+
(...args: infer P7): infer R7;
|
|
2293
|
+
(...args: infer P8): infer R8;
|
|
2294
|
+
(...args: infer P9): infer R9;
|
|
2295
|
+
(...args: infer P10): infer R10;
|
|
2296
|
+
(...args: infer P11): infer R11;
|
|
2297
|
+
(...args: infer P12): infer R12;
|
|
2298
|
+
} ? ((...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>;
|
|
2299
|
+
|
|
2300
|
+
export declare type OverloadUnion13<T> = T extends {
|
|
2301
|
+
(...args: infer P1): infer R1;
|
|
2302
|
+
(...args: infer P2): infer R2;
|
|
2303
|
+
(...args: infer P3): infer R3;
|
|
2304
|
+
(...args: infer P4): infer R4;
|
|
2305
|
+
(...args: infer P5): infer R5;
|
|
2306
|
+
(...args: infer P6): infer R6;
|
|
2307
|
+
(...args: infer P7): infer R7;
|
|
2308
|
+
(...args: infer P8): infer R8;
|
|
2309
|
+
(...args: infer P9): infer R9;
|
|
2310
|
+
(...args: infer P10): infer R10;
|
|
2311
|
+
(...args: infer P11): infer R11;
|
|
2312
|
+
(...args: infer P12): infer R12;
|
|
2313
|
+
(...args: infer P13): infer R13;
|
|
2314
|
+
} ? ((...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>;
|
|
2315
|
+
|
|
2316
|
+
export declare type OverloadUnion14<T> = T extends {
|
|
2317
|
+
(...args: infer P1): infer R1;
|
|
2318
|
+
(...args: infer P2): infer R2;
|
|
2319
|
+
(...args: infer P3): infer R3;
|
|
2320
|
+
(...args: infer P4): infer R4;
|
|
2321
|
+
(...args: infer P5): infer R5;
|
|
2322
|
+
(...args: infer P6): infer R6;
|
|
2323
|
+
(...args: infer P7): infer R7;
|
|
2324
|
+
(...args: infer P8): infer R8;
|
|
2325
|
+
(...args: infer P9): infer R9;
|
|
2326
|
+
(...args: infer P10): infer R10;
|
|
2327
|
+
(...args: infer P11): infer R11;
|
|
2328
|
+
(...args: infer P12): infer R12;
|
|
2329
|
+
(...args: infer P13): infer R13;
|
|
2330
|
+
(...args: infer P14): infer R14;
|
|
2331
|
+
} ? ((...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
2332
|
|
|
2165
2333
|
export declare type OverloadUnion2<T> = T extends {
|
|
2166
2334
|
(...args: infer P1): infer R1;
|
|
@@ -2298,29 +2466,29 @@ export declare interface PluginBase<Options extends z.ZodType, SharedOptions ext
|
|
|
2298
2466
|
export declare const PLUGINS: {
|
|
2299
2467
|
core: Plugin_2<z.ZodEffects<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
2300
2468
|
modules: z.ZodArray<z.ZodObject<{
|
|
2301
|
-
type: z.ZodEnum<["ESModule", "CommonJS", "
|
|
2469
|
+
type: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
|
|
2302
2470
|
path: z.ZodEffects<z.ZodString, string, string>;
|
|
2303
2471
|
contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>;
|
|
2304
2472
|
}, "strip", z.ZodTypeAny, {
|
|
2305
|
-
type: "ESModule" | "CommonJS" | "
|
|
2473
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2306
2474
|
path: string;
|
|
2307
2475
|
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
2308
2476
|
}, {
|
|
2309
|
-
type: "ESModule" | "CommonJS" | "
|
|
2477
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2310
2478
|
path: string;
|
|
2311
2479
|
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
2312
2480
|
}>, "many">;
|
|
2313
2481
|
modulesRoot: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2314
2482
|
}, "strip", z.ZodTypeAny, {
|
|
2315
2483
|
modules: {
|
|
2316
|
-
type: "ESModule" | "CommonJS" | "
|
|
2484
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2317
2485
|
path: string;
|
|
2318
2486
|
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
2319
2487
|
}[];
|
|
2320
2488
|
modulesRoot?: string | undefined;
|
|
2321
2489
|
}, {
|
|
2322
2490
|
modules: {
|
|
2323
|
-
type: "ESModule" | "CommonJS" | "
|
|
2491
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2324
2492
|
path: string;
|
|
2325
2493
|
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
2326
2494
|
}[];
|
|
@@ -2330,15 +2498,15 @@ export declare const PLUGINS: {
|
|
|
2330
2498
|
scriptPath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2331
2499
|
modules: z.ZodOptional<z.ZodBoolean>;
|
|
2332
2500
|
modulesRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2333
|
-
type: z.ZodEnum<["ESModule", "CommonJS", "
|
|
2501
|
+
type: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
|
|
2334
2502
|
include: z.ZodArray<z.ZodString, "many">;
|
|
2335
2503
|
fallthrough: z.ZodOptional<z.ZodBoolean>;
|
|
2336
2504
|
}, "strip", z.ZodTypeAny, {
|
|
2337
|
-
type: "ESModule" | "CommonJS" | "
|
|
2505
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2338
2506
|
include: string[];
|
|
2339
2507
|
fallthrough?: boolean | undefined;
|
|
2340
2508
|
}, {
|
|
2341
|
-
type: "ESModule" | "CommonJS" | "
|
|
2509
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2342
2510
|
include: string[];
|
|
2343
2511
|
fallthrough?: boolean | undefined;
|
|
2344
2512
|
}>, "many">>;
|
|
@@ -2348,7 +2516,7 @@ export declare const PLUGINS: {
|
|
|
2348
2516
|
scriptPath?: string | undefined;
|
|
2349
2517
|
modules?: boolean | undefined;
|
|
2350
2518
|
modulesRules?: {
|
|
2351
|
-
type: "ESModule" | "CommonJS" | "
|
|
2519
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2352
2520
|
include: string[];
|
|
2353
2521
|
fallthrough?: boolean | undefined;
|
|
2354
2522
|
}[] | undefined;
|
|
@@ -2358,7 +2526,7 @@ export declare const PLUGINS: {
|
|
|
2358
2526
|
scriptPath?: string | undefined;
|
|
2359
2527
|
modules?: boolean | undefined;
|
|
2360
2528
|
modulesRules?: {
|
|
2361
|
-
type: "ESModule" | "CommonJS" | "
|
|
2529
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2362
2530
|
include: string[];
|
|
2363
2531
|
fallthrough?: boolean | undefined;
|
|
2364
2532
|
}[] | undefined;
|
|
@@ -2367,15 +2535,15 @@ export declare const PLUGINS: {
|
|
|
2367
2535
|
scriptPath: z.ZodEffects<z.ZodString, string, string>;
|
|
2368
2536
|
modules: z.ZodOptional<z.ZodBoolean>;
|
|
2369
2537
|
modulesRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2370
|
-
type: z.ZodEnum<["ESModule", "CommonJS", "
|
|
2538
|
+
type: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
|
|
2371
2539
|
include: z.ZodArray<z.ZodString, "many">;
|
|
2372
2540
|
fallthrough: z.ZodOptional<z.ZodBoolean>;
|
|
2373
2541
|
}, "strip", z.ZodTypeAny, {
|
|
2374
|
-
type: "ESModule" | "CommonJS" | "
|
|
2542
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2375
2543
|
include: string[];
|
|
2376
2544
|
fallthrough?: boolean | undefined;
|
|
2377
2545
|
}, {
|
|
2378
|
-
type: "ESModule" | "CommonJS" | "
|
|
2546
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2379
2547
|
include: string[];
|
|
2380
2548
|
fallthrough?: boolean | undefined;
|
|
2381
2549
|
}>, "many">>;
|
|
@@ -2384,7 +2552,7 @@ export declare const PLUGINS: {
|
|
|
2384
2552
|
scriptPath: string;
|
|
2385
2553
|
modules?: boolean | undefined;
|
|
2386
2554
|
modulesRules?: {
|
|
2387
|
-
type: "ESModule" | "CommonJS" | "
|
|
2555
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2388
2556
|
include: string[];
|
|
2389
2557
|
fallthrough?: boolean | undefined;
|
|
2390
2558
|
}[] | undefined;
|
|
@@ -2393,7 +2561,7 @@ export declare const PLUGINS: {
|
|
|
2393
2561
|
scriptPath: string;
|
|
2394
2562
|
modules?: boolean | undefined;
|
|
2395
2563
|
modulesRules?: {
|
|
2396
|
-
type: "ESModule" | "CommonJS" | "
|
|
2564
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2397
2565
|
include: string[];
|
|
2398
2566
|
fallthrough?: boolean | undefined;
|
|
2399
2567
|
}[] | undefined;
|
|
@@ -2403,6 +2571,7 @@ export declare const PLUGINS: {
|
|
|
2403
2571
|
rootPath: z.ZodOptional<z.ZodEffects<z.ZodString, undefined, string>>;
|
|
2404
2572
|
compatibilityDate: z.ZodOptional<z.ZodString>;
|
|
2405
2573
|
compatibilityFlags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2574
|
+
unsafeInspectorProxy: z.ZodOptional<z.ZodBoolean>;
|
|
2406
2575
|
routes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2407
2576
|
bindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<Json_2, z.ZodTypeDef, Json_2>>>;
|
|
2408
2577
|
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 +2903,12 @@ export declare const PLUGINS: {
|
|
|
2734
2903
|
unsafeEvalBinding: z.ZodOptional<z.ZodString>;
|
|
2735
2904
|
unsafeUseModuleFallbackService: z.ZodOptional<z.ZodBoolean>;
|
|
2736
2905
|
hasAssetsAndIsVitest: z.ZodOptional<z.ZodBoolean>;
|
|
2737
|
-
unsafeEnableAssetsRpc: z.ZodOptional<z.ZodBoolean>;
|
|
2738
2906
|
}, "strip", z.ZodTypeAny, {
|
|
2739
2907
|
name?: string | undefined;
|
|
2740
2908
|
rootPath?: undefined;
|
|
2741
2909
|
compatibilityDate?: string | undefined;
|
|
2742
2910
|
compatibilityFlags?: string[] | undefined;
|
|
2911
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
2743
2912
|
routes?: string[] | undefined;
|
|
2744
2913
|
bindings?: Record<string, Json_2> | undefined;
|
|
2745
2914
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -2815,12 +2984,12 @@ export declare const PLUGINS: {
|
|
|
2815
2984
|
unsafeEvalBinding?: string | undefined;
|
|
2816
2985
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
2817
2986
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
2818
|
-
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
2819
2987
|
}, {
|
|
2820
2988
|
name?: string | undefined;
|
|
2821
2989
|
rootPath?: string | undefined;
|
|
2822
2990
|
compatibilityDate?: string | undefined;
|
|
2823
2991
|
compatibilityFlags?: string[] | undefined;
|
|
2992
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
2824
2993
|
routes?: string[] | undefined;
|
|
2825
2994
|
bindings?: Record<string, Json_2> | undefined;
|
|
2826
2995
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -2896,10 +3065,9 @@ export declare const PLUGINS: {
|
|
|
2896
3065
|
unsafeEvalBinding?: string | undefined;
|
|
2897
3066
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
2898
3067
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
2899
|
-
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
2900
3068
|
}>>, ({
|
|
2901
3069
|
modules: {
|
|
2902
|
-
type: "ESModule" | "CommonJS" | "
|
|
3070
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2903
3071
|
path: string;
|
|
2904
3072
|
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
2905
3073
|
}[];
|
|
@@ -2909,6 +3077,7 @@ export declare const PLUGINS: {
|
|
|
2909
3077
|
rootPath?: undefined;
|
|
2910
3078
|
compatibilityDate?: string | undefined;
|
|
2911
3079
|
compatibilityFlags?: string[] | undefined;
|
|
3080
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
2912
3081
|
routes?: string[] | undefined;
|
|
2913
3082
|
bindings?: Record<string, Json_2> | undefined;
|
|
2914
3083
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -2984,13 +3153,12 @@ export declare const PLUGINS: {
|
|
|
2984
3153
|
unsafeEvalBinding?: string | undefined;
|
|
2985
3154
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
2986
3155
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
2987
|
-
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
2988
3156
|
}) | ({
|
|
2989
3157
|
script: string;
|
|
2990
3158
|
scriptPath?: string | undefined;
|
|
2991
3159
|
modules?: boolean | undefined;
|
|
2992
3160
|
modulesRules?: {
|
|
2993
|
-
type: "ESModule" | "CommonJS" | "
|
|
3161
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2994
3162
|
include: string[];
|
|
2995
3163
|
fallthrough?: boolean | undefined;
|
|
2996
3164
|
}[] | undefined;
|
|
@@ -3000,6 +3168,7 @@ export declare const PLUGINS: {
|
|
|
3000
3168
|
rootPath?: undefined;
|
|
3001
3169
|
compatibilityDate?: string | undefined;
|
|
3002
3170
|
compatibilityFlags?: string[] | undefined;
|
|
3171
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
3003
3172
|
routes?: string[] | undefined;
|
|
3004
3173
|
bindings?: Record<string, Json_2> | undefined;
|
|
3005
3174
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -3075,12 +3244,11 @@ export declare const PLUGINS: {
|
|
|
3075
3244
|
unsafeEvalBinding?: string | undefined;
|
|
3076
3245
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
3077
3246
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
3078
|
-
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
3079
3247
|
}) | ({
|
|
3080
3248
|
scriptPath: string;
|
|
3081
3249
|
modules?: boolean | undefined;
|
|
3082
3250
|
modulesRules?: {
|
|
3083
|
-
type: "ESModule" | "CommonJS" | "
|
|
3251
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
3084
3252
|
include: string[];
|
|
3085
3253
|
fallthrough?: boolean | undefined;
|
|
3086
3254
|
}[] | undefined;
|
|
@@ -3090,6 +3258,7 @@ export declare const PLUGINS: {
|
|
|
3090
3258
|
rootPath?: undefined;
|
|
3091
3259
|
compatibilityDate?: string | undefined;
|
|
3092
3260
|
compatibilityFlags?: string[] | undefined;
|
|
3261
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
3093
3262
|
routes?: string[] | undefined;
|
|
3094
3263
|
bindings?: Record<string, Json_2> | undefined;
|
|
3095
3264
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -3165,10 +3334,9 @@ export declare const PLUGINS: {
|
|
|
3165
3334
|
unsafeEvalBinding?: string | undefined;
|
|
3166
3335
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
3167
3336
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
3168
|
-
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
3169
3337
|
}), ({
|
|
3170
3338
|
modules: {
|
|
3171
|
-
type: "ESModule" | "CommonJS" | "
|
|
3339
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
3172
3340
|
path: string;
|
|
3173
3341
|
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
3174
3342
|
}[];
|
|
@@ -3178,7 +3346,7 @@ export declare const PLUGINS: {
|
|
|
3178
3346
|
scriptPath?: string | undefined;
|
|
3179
3347
|
modules?: boolean | undefined;
|
|
3180
3348
|
modulesRules?: {
|
|
3181
|
-
type: "ESModule" | "CommonJS" | "
|
|
3349
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
3182
3350
|
include: string[];
|
|
3183
3351
|
fallthrough?: boolean | undefined;
|
|
3184
3352
|
}[] | undefined;
|
|
@@ -3187,7 +3355,7 @@ export declare const PLUGINS: {
|
|
|
3187
3355
|
scriptPath: string;
|
|
3188
3356
|
modules?: boolean | undefined;
|
|
3189
3357
|
modulesRules?: {
|
|
3190
|
-
type: "ESModule" | "CommonJS" | "
|
|
3358
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
3191
3359
|
include: string[];
|
|
3192
3360
|
fallthrough?: boolean | undefined;
|
|
3193
3361
|
}[] | undefined;
|
|
@@ -3197,6 +3365,7 @@ export declare const PLUGINS: {
|
|
|
3197
3365
|
rootPath?: string | undefined;
|
|
3198
3366
|
compatibilityDate?: string | undefined;
|
|
3199
3367
|
compatibilityFlags?: string[] | undefined;
|
|
3368
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
3200
3369
|
routes?: string[] | undefined;
|
|
3201
3370
|
bindings?: Record<string, Json_2> | undefined;
|
|
3202
3371
|
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
@@ -3272,7 +3441,6 @@ export declare const PLUGINS: {
|
|
|
3272
3441
|
unsafeEvalBinding?: string | undefined;
|
|
3273
3442
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
3274
3443
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
3275
|
-
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
3276
3444
|
}>, z.ZodObject<{
|
|
3277
3445
|
rootPath: z.ZodOptional<z.ZodEffects<z.ZodString, undefined, string>>;
|
|
3278
3446
|
host: z.ZodOptional<z.ZodString>;
|
|
@@ -3292,8 +3460,10 @@ export declare const PLUGINS: {
|
|
|
3292
3460
|
unsafeProxySharedSecret: z.ZodOptional<z.ZodString>;
|
|
3293
3461
|
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
3462
|
unsafeStickyBlobs: z.ZodOptional<z.ZodBoolean>;
|
|
3295
|
-
|
|
3463
|
+
unsafeTriggerHandlers: z.ZodOptional<z.ZodBoolean>;
|
|
3464
|
+
logRequests: z.ZodDefault<z.ZodBoolean>;
|
|
3296
3465
|
}, "strip", z.ZodTypeAny, {
|
|
3466
|
+
logRequests: boolean;
|
|
3297
3467
|
rootPath?: undefined;
|
|
3298
3468
|
host?: string | undefined;
|
|
3299
3469
|
port?: number | undefined;
|
|
@@ -3312,7 +3482,7 @@ export declare const PLUGINS: {
|
|
|
3312
3482
|
unsafeProxySharedSecret?: string | undefined;
|
|
3313
3483
|
unsafeModuleFallbackService?: ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
|
|
3314
3484
|
unsafeStickyBlobs?: boolean | undefined;
|
|
3315
|
-
|
|
3485
|
+
unsafeTriggerHandlers?: boolean | undefined;
|
|
3316
3486
|
}, {
|
|
3317
3487
|
rootPath?: string | undefined;
|
|
3318
3488
|
host?: string | undefined;
|
|
@@ -3332,7 +3502,8 @@ export declare const PLUGINS: {
|
|
|
3332
3502
|
unsafeProxySharedSecret?: string | undefined;
|
|
3333
3503
|
unsafeModuleFallbackService?: ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
|
|
3334
3504
|
unsafeStickyBlobs?: boolean | undefined;
|
|
3335
|
-
|
|
3505
|
+
unsafeTriggerHandlers?: boolean | undefined;
|
|
3506
|
+
logRequests?: boolean | undefined;
|
|
3336
3507
|
}>>;
|
|
3337
3508
|
cache: Plugin_2<z.ZodObject<{
|
|
3338
3509
|
cache: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3581,7 +3752,7 @@ export declare const PLUGINS: {
|
|
|
3581
3752
|
invoke_user_worker_ahead_of_assets?: boolean;
|
|
3582
3753
|
has_user_worker?: boolean;
|
|
3583
3754
|
}>>;
|
|
3584
|
-
assetConfig: z.ZodOptional<z.ZodObject<{
|
|
3755
|
+
assetConfig: z.ZodOptional<z.ZodObject<Omit<{
|
|
3585
3756
|
account_id: z.ZodOptional<z.ZodNumber>;
|
|
3586
3757
|
script_id: z.ZodOptional<z.ZodNumber>;
|
|
3587
3758
|
compatibility_date: z.ZodOptional<z.ZodString>;
|
|
@@ -3661,13 +3832,18 @@ export declare const PLUGINS: {
|
|
|
3661
3832
|
unset?: string[];
|
|
3662
3833
|
}>;
|
|
3663
3834
|
}>>;
|
|
3664
|
-
}, "strip", z.ZodTypeAny, {
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3835
|
+
}, "compatibility_date" | "compatibility_flags">, "strip", z.ZodTypeAny, {
|
|
3836
|
+
headers?: {
|
|
3837
|
+
version?: 2;
|
|
3838
|
+
rules?: Record<string, {
|
|
3839
|
+
set?: Record<string, string>;
|
|
3840
|
+
unset?: string[];
|
|
3841
|
+
}>;
|
|
3842
|
+
} | undefined;
|
|
3843
|
+
account_id?: number | undefined;
|
|
3844
|
+
script_id?: number | undefined;
|
|
3845
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
3846
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
3671
3847
|
redirects?: {
|
|
3672
3848
|
version?: 1;
|
|
3673
3849
|
staticRules?: Record<string, {
|
|
@@ -3679,21 +3855,19 @@ export declare const PLUGINS: {
|
|
|
3679
3855
|
status?: number;
|
|
3680
3856
|
to?: string;
|
|
3681
3857
|
}>;
|
|
3682
|
-
};
|
|
3858
|
+
} | undefined;
|
|
3859
|
+
}, {
|
|
3683
3860
|
headers?: {
|
|
3684
3861
|
version?: 2;
|
|
3685
3862
|
rules?: Record<string, {
|
|
3686
3863
|
set?: Record<string, string>;
|
|
3687
3864
|
unset?: string[];
|
|
3688
3865
|
}>;
|
|
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";
|
|
3866
|
+
} | undefined;
|
|
3867
|
+
account_id?: number | undefined;
|
|
3868
|
+
script_id?: number | undefined;
|
|
3869
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
3870
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
3697
3871
|
redirects?: {
|
|
3698
3872
|
version?: 1;
|
|
3699
3873
|
staticRules?: Record<string, {
|
|
@@ -3705,14 +3879,7 @@ export declare const PLUGINS: {
|
|
|
3705
3879
|
status?: number;
|
|
3706
3880
|
to?: string;
|
|
3707
3881
|
}>;
|
|
3708
|
-
};
|
|
3709
|
-
headers?: {
|
|
3710
|
-
version?: 2;
|
|
3711
|
-
rules?: Record<string, {
|
|
3712
|
-
set?: Record<string, string>;
|
|
3713
|
-
unset?: string[];
|
|
3714
|
-
}>;
|
|
3715
|
-
};
|
|
3882
|
+
} | undefined;
|
|
3716
3883
|
}>>;
|
|
3717
3884
|
}, "strip", z.ZodTypeAny, {
|
|
3718
3885
|
directory: string;
|
|
@@ -3725,12 +3892,17 @@ export declare const PLUGINS: {
|
|
|
3725
3892
|
has_user_worker?: boolean;
|
|
3726
3893
|
} | undefined;
|
|
3727
3894
|
assetConfig?: {
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3895
|
+
headers?: {
|
|
3896
|
+
version?: 2;
|
|
3897
|
+
rules?: Record<string, {
|
|
3898
|
+
set?: Record<string, string>;
|
|
3899
|
+
unset?: string[];
|
|
3900
|
+
}>;
|
|
3901
|
+
} | undefined;
|
|
3902
|
+
account_id?: number | undefined;
|
|
3903
|
+
script_id?: number | undefined;
|
|
3904
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
3905
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
3734
3906
|
redirects?: {
|
|
3735
3907
|
version?: 1;
|
|
3736
3908
|
staticRules?: Record<string, {
|
|
@@ -3742,14 +3914,7 @@ export declare const PLUGINS: {
|
|
|
3742
3914
|
status?: number;
|
|
3743
3915
|
to?: string;
|
|
3744
3916
|
}>;
|
|
3745
|
-
};
|
|
3746
|
-
headers?: {
|
|
3747
|
-
version?: 2;
|
|
3748
|
-
rules?: Record<string, {
|
|
3749
|
-
set?: Record<string, string>;
|
|
3750
|
-
unset?: string[];
|
|
3751
|
-
}>;
|
|
3752
|
-
};
|
|
3917
|
+
} | undefined;
|
|
3753
3918
|
} | undefined;
|
|
3754
3919
|
}, {
|
|
3755
3920
|
directory: string;
|
|
@@ -3762,12 +3927,17 @@ export declare const PLUGINS: {
|
|
|
3762
3927
|
has_user_worker?: boolean;
|
|
3763
3928
|
} | undefined;
|
|
3764
3929
|
assetConfig?: {
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3930
|
+
headers?: {
|
|
3931
|
+
version?: 2;
|
|
3932
|
+
rules?: Record<string, {
|
|
3933
|
+
set?: Record<string, string>;
|
|
3934
|
+
unset?: string[];
|
|
3935
|
+
}>;
|
|
3936
|
+
} | undefined;
|
|
3937
|
+
account_id?: number | undefined;
|
|
3938
|
+
script_id?: number | undefined;
|
|
3939
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
3940
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
3771
3941
|
redirects?: {
|
|
3772
3942
|
version?: 1;
|
|
3773
3943
|
staticRules?: Record<string, {
|
|
@@ -3779,16 +3949,11 @@ export declare const PLUGINS: {
|
|
|
3779
3949
|
status?: number;
|
|
3780
3950
|
to?: string;
|
|
3781
3951
|
}>;
|
|
3782
|
-
};
|
|
3783
|
-
headers?: {
|
|
3784
|
-
version?: 2;
|
|
3785
|
-
rules?: Record<string, {
|
|
3786
|
-
set?: Record<string, string>;
|
|
3787
|
-
unset?: string[];
|
|
3788
|
-
}>;
|
|
3789
|
-
};
|
|
3952
|
+
} | undefined;
|
|
3790
3953
|
} | undefined;
|
|
3791
3954
|
}>>;
|
|
3955
|
+
compatibilityDate: z.ZodOptional<z.ZodString>;
|
|
3956
|
+
compatibilityFlags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3792
3957
|
}, "strip", z.ZodTypeAny, {
|
|
3793
3958
|
assets?: {
|
|
3794
3959
|
directory: string;
|
|
@@ -3801,12 +3966,17 @@ export declare const PLUGINS: {
|
|
|
3801
3966
|
has_user_worker?: boolean;
|
|
3802
3967
|
} | undefined;
|
|
3803
3968
|
assetConfig?: {
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3969
|
+
headers?: {
|
|
3970
|
+
version?: 2;
|
|
3971
|
+
rules?: Record<string, {
|
|
3972
|
+
set?: Record<string, string>;
|
|
3973
|
+
unset?: string[];
|
|
3974
|
+
}>;
|
|
3975
|
+
} | undefined;
|
|
3976
|
+
account_id?: number | undefined;
|
|
3977
|
+
script_id?: number | undefined;
|
|
3978
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
3979
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
3810
3980
|
redirects?: {
|
|
3811
3981
|
version?: 1;
|
|
3812
3982
|
staticRules?: Record<string, {
|
|
@@ -3818,16 +3988,11 @@ export declare const PLUGINS: {
|
|
|
3818
3988
|
status?: number;
|
|
3819
3989
|
to?: string;
|
|
3820
3990
|
}>;
|
|
3821
|
-
};
|
|
3822
|
-
headers?: {
|
|
3823
|
-
version?: 2;
|
|
3824
|
-
rules?: Record<string, {
|
|
3825
|
-
set?: Record<string, string>;
|
|
3826
|
-
unset?: string[];
|
|
3827
|
-
}>;
|
|
3828
|
-
};
|
|
3829
3991
|
} | undefined;
|
|
3830
3992
|
} | undefined;
|
|
3993
|
+
} | undefined;
|
|
3994
|
+
compatibilityDate?: string | undefined;
|
|
3995
|
+
compatibilityFlags?: string[] | undefined;
|
|
3831
3996
|
}, {
|
|
3832
3997
|
assets?: {
|
|
3833
3998
|
directory: string;
|
|
@@ -3840,12 +4005,17 @@ export declare const PLUGINS: {
|
|
|
3840
4005
|
has_user_worker?: boolean;
|
|
3841
4006
|
} | undefined;
|
|
3842
4007
|
assetConfig?: {
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
4008
|
+
headers?: {
|
|
4009
|
+
version?: 2;
|
|
4010
|
+
rules?: Record<string, {
|
|
4011
|
+
set?: Record<string, string>;
|
|
4012
|
+
unset?: string[];
|
|
4013
|
+
}>;
|
|
4014
|
+
} | undefined;
|
|
4015
|
+
account_id?: number | undefined;
|
|
4016
|
+
script_id?: number | undefined;
|
|
4017
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
4018
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
3849
4019
|
redirects?: {
|
|
3850
4020
|
version?: 1;
|
|
3851
4021
|
staticRules?: Record<string, {
|
|
@@ -3857,16 +4027,11 @@ export declare const PLUGINS: {
|
|
|
3857
4027
|
status?: number;
|
|
3858
4028
|
to?: string;
|
|
3859
4029
|
}>;
|
|
3860
|
-
};
|
|
3861
|
-
headers?: {
|
|
3862
|
-
version?: 2;
|
|
3863
|
-
rules?: Record<string, {
|
|
3864
|
-
set?: Record<string, string>;
|
|
3865
|
-
unset?: string[];
|
|
3866
|
-
}>;
|
|
3867
|
-
};
|
|
3868
4030
|
} | undefined;
|
|
3869
4031
|
} | undefined;
|
|
4032
|
+
} | undefined;
|
|
4033
|
+
compatibilityDate?: string | undefined;
|
|
4034
|
+
compatibilityFlags?: string[] | undefined;
|
|
3870
4035
|
}>>;
|
|
3871
4036
|
workflows: Plugin_2<z.ZodObject<{
|
|
3872
4037
|
workflows: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -3908,6 +4073,107 @@ export declare const PLUGINS: {
|
|
|
3908
4073
|
}, {
|
|
3909
4074
|
pipelines?: string[] | Record<string, string> | undefined;
|
|
3910
4075
|
}>>;
|
|
4076
|
+
"secrets-store": Plugin_2<z.ZodObject<{
|
|
4077
|
+
secretsStoreSecrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4078
|
+
store_id: z.ZodString;
|
|
4079
|
+
secret_name: z.ZodString;
|
|
4080
|
+
}, "strip", z.ZodTypeAny, {
|
|
4081
|
+
store_id: string;
|
|
4082
|
+
secret_name: string;
|
|
4083
|
+
}, {
|
|
4084
|
+
store_id: string;
|
|
4085
|
+
secret_name: string;
|
|
4086
|
+
}>>>;
|
|
4087
|
+
}, "strip", z.ZodTypeAny, {
|
|
4088
|
+
secretsStoreSecrets?: Record<string, {
|
|
4089
|
+
store_id: string;
|
|
4090
|
+
secret_name: string;
|
|
4091
|
+
}> | undefined;
|
|
4092
|
+
}, {
|
|
4093
|
+
secretsStoreSecrets?: Record<string, {
|
|
4094
|
+
store_id: string;
|
|
4095
|
+
secret_name: string;
|
|
4096
|
+
}> | undefined;
|
|
4097
|
+
}>, z.ZodObject<{
|
|
4098
|
+
secretsStorePersist: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
|
|
4099
|
+
}, "strip", z.ZodTypeAny, {
|
|
4100
|
+
secretsStorePersist?: string | boolean | undefined;
|
|
4101
|
+
}, {
|
|
4102
|
+
secretsStorePersist?: string | boolean | undefined;
|
|
4103
|
+
}>>;
|
|
4104
|
+
email: Plugin_2<z.ZodObject<{
|
|
4105
|
+
email: z.ZodOptional<z.ZodObject<{
|
|
4106
|
+
send_email: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodObject<{
|
|
4107
|
+
name: z.ZodString;
|
|
4108
|
+
}, "strip", z.ZodTypeAny, {
|
|
4109
|
+
name: string;
|
|
4110
|
+
}, {
|
|
4111
|
+
name: string;
|
|
4112
|
+
}>, z.ZodUnion<[z.ZodObject<{
|
|
4113
|
+
destination_address: z.ZodOptional<z.ZodString>;
|
|
4114
|
+
allowed_destination_addresses: z.ZodOptional<z.ZodNever>;
|
|
4115
|
+
}, "strip", z.ZodTypeAny, {
|
|
4116
|
+
destination_address?: string | undefined;
|
|
4117
|
+
allowed_destination_addresses?: undefined;
|
|
4118
|
+
}, {
|
|
4119
|
+
destination_address?: string | undefined;
|
|
4120
|
+
allowed_destination_addresses?: undefined;
|
|
4121
|
+
}>, z.ZodObject<{
|
|
4122
|
+
allowed_destination_addresses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4123
|
+
destination_address: z.ZodOptional<z.ZodNever>;
|
|
4124
|
+
}, "strip", z.ZodTypeAny, {
|
|
4125
|
+
allowed_destination_addresses?: string[] | undefined;
|
|
4126
|
+
destination_address?: undefined;
|
|
4127
|
+
}, {
|
|
4128
|
+
allowed_destination_addresses?: string[] | undefined;
|
|
4129
|
+
destination_address?: undefined;
|
|
4130
|
+
}>]>>, "many">>;
|
|
4131
|
+
}, "strip", z.ZodTypeAny, {
|
|
4132
|
+
send_email?: ({
|
|
4133
|
+
name: string;
|
|
4134
|
+
} & ({
|
|
4135
|
+
destination_address?: string | undefined;
|
|
4136
|
+
allowed_destination_addresses?: undefined;
|
|
4137
|
+
} | {
|
|
4138
|
+
allowed_destination_addresses?: string[] | undefined;
|
|
4139
|
+
destination_address?: undefined;
|
|
4140
|
+
}))[] | undefined;
|
|
4141
|
+
}, {
|
|
4142
|
+
send_email?: ({
|
|
4143
|
+
name: string;
|
|
4144
|
+
} & ({
|
|
4145
|
+
destination_address?: string | undefined;
|
|
4146
|
+
allowed_destination_addresses?: undefined;
|
|
4147
|
+
} | {
|
|
4148
|
+
allowed_destination_addresses?: string[] | undefined;
|
|
4149
|
+
destination_address?: undefined;
|
|
4150
|
+
}))[] | undefined;
|
|
4151
|
+
}>>;
|
|
4152
|
+
}, "strip", z.ZodTypeAny, {
|
|
4153
|
+
email?: {
|
|
4154
|
+
send_email?: ({
|
|
4155
|
+
name: string;
|
|
4156
|
+
} & ({
|
|
4157
|
+
destination_address?: string | undefined;
|
|
4158
|
+
allowed_destination_addresses?: undefined;
|
|
4159
|
+
} | {
|
|
4160
|
+
allowed_destination_addresses?: string[] | undefined;
|
|
4161
|
+
destination_address?: undefined;
|
|
4162
|
+
}))[] | undefined;
|
|
4163
|
+
} | undefined;
|
|
4164
|
+
}, {
|
|
4165
|
+
email?: {
|
|
4166
|
+
send_email?: ({
|
|
4167
|
+
name: string;
|
|
4168
|
+
} & ({
|
|
4169
|
+
destination_address?: string | undefined;
|
|
4170
|
+
allowed_destination_addresses?: undefined;
|
|
4171
|
+
} | {
|
|
4172
|
+
allowed_destination_addresses?: string[] | undefined;
|
|
4173
|
+
destination_address?: undefined;
|
|
4174
|
+
}))[] | undefined;
|
|
4175
|
+
} | undefined;
|
|
4176
|
+
}>>;
|
|
3911
4177
|
};
|
|
3912
4178
|
|
|
3913
4179
|
export declare type Plugins = typeof PLUGINS;
|
|
@@ -3928,7 +4194,6 @@ export declare interface PluginServicesOptions<Options extends z.ZodType, Shared
|
|
|
3928
4194
|
unsafeEphemeralDurableObjects: boolean;
|
|
3929
4195
|
queueProducers: QueueProducers;
|
|
3930
4196
|
queueConsumers: QueueConsumers;
|
|
3931
|
-
unsafeEnableAssetsRpc: boolean;
|
|
3932
4197
|
}
|
|
3933
4198
|
|
|
3934
4199
|
export declare function prefixError(prefix: string, e: any): Error;
|
|
@@ -4477,6 +4742,41 @@ export declare interface RuntimeOptions {
|
|
|
4477
4742
|
|
|
4478
4743
|
export declare function sanitisePath(unsafe: string): string;
|
|
4479
4744
|
|
|
4745
|
+
export declare const SECRET_STORE_PLUGIN: Plugin<typeof SecretsStoreSecretsOptionsSchema, typeof SecretsStoreSecretsSharedOptionsSchema>;
|
|
4746
|
+
|
|
4747
|
+
export declare const SECRET_STORE_PLUGIN_NAME = "secrets-store";
|
|
4748
|
+
|
|
4749
|
+
export declare const SecretsStoreSecretsOptionsSchema: z.ZodObject<{
|
|
4750
|
+
secretsStoreSecrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4751
|
+
store_id: z.ZodString;
|
|
4752
|
+
secret_name: z.ZodString;
|
|
4753
|
+
}, "strip", z.ZodTypeAny, {
|
|
4754
|
+
store_id: string;
|
|
4755
|
+
secret_name: string;
|
|
4756
|
+
}, {
|
|
4757
|
+
store_id: string;
|
|
4758
|
+
secret_name: string;
|
|
4759
|
+
}>>>;
|
|
4760
|
+
}, "strip", z.ZodTypeAny, {
|
|
4761
|
+
secretsStoreSecrets?: Record<string, {
|
|
4762
|
+
store_id: string;
|
|
4763
|
+
secret_name: string;
|
|
4764
|
+
}> | undefined;
|
|
4765
|
+
}, {
|
|
4766
|
+
secretsStoreSecrets?: Record<string, {
|
|
4767
|
+
store_id: string;
|
|
4768
|
+
secret_name: string;
|
|
4769
|
+
}> | undefined;
|
|
4770
|
+
}>;
|
|
4771
|
+
|
|
4772
|
+
export declare const SecretsStoreSecretsSharedOptionsSchema: z.ZodObject<{
|
|
4773
|
+
secretsStorePersist: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
|
|
4774
|
+
}, "strip", z.ZodTypeAny, {
|
|
4775
|
+
secretsStorePersist?: string | boolean | undefined;
|
|
4776
|
+
}, {
|
|
4777
|
+
secretsStorePersist?: string | boolean | undefined;
|
|
4778
|
+
}>;
|
|
4779
|
+
|
|
4480
4780
|
export declare interface SerialisableMatcherRegExps {
|
|
4481
4781
|
include: string[];
|
|
4482
4782
|
exclude: string[];
|
|
@@ -4532,7 +4832,7 @@ export declare const SharedHeaders: {
|
|
|
4532
4832
|
readonly LOG_LEVEL: "MF-Log-Level";
|
|
4533
4833
|
};
|
|
4534
4834
|
|
|
4535
|
-
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>;
|
|
4835
|
+
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> & z.input<typeof SECRET_STORE_PLUGIN.sharedOptions>;
|
|
4536
4836
|
|
|
4537
4837
|
export declare const SiteBindings: {
|
|
4538
4838
|
readonly KV_NAMESPACE_SITE: "__STATIC_CONTENT";
|
|
@@ -4574,29 +4874,29 @@ export declare type SourceOptions = z.infer<typeof SourceOptionsSchema>;
|
|
|
4574
4874
|
|
|
4575
4875
|
export declare const SourceOptionsSchema: z.ZodUnion<[z.ZodObject<{
|
|
4576
4876
|
modules: z.ZodArray<z.ZodObject<{
|
|
4577
|
-
type: z.ZodEnum<["ESModule", "CommonJS", "
|
|
4877
|
+
type: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
|
|
4578
4878
|
path: z.ZodEffects<z.ZodString, string, string>;
|
|
4579
4879
|
contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>;
|
|
4580
4880
|
}, "strip", z.ZodTypeAny, {
|
|
4581
|
-
type: "ESModule" | "CommonJS" | "
|
|
4881
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
4582
4882
|
path: string;
|
|
4583
4883
|
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
4584
4884
|
}, {
|
|
4585
|
-
type: "ESModule" | "CommonJS" | "
|
|
4885
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
4586
4886
|
path: string;
|
|
4587
4887
|
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
4588
4888
|
}>, "many">;
|
|
4589
4889
|
modulesRoot: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
4590
4890
|
}, "strip", z.ZodTypeAny, {
|
|
4591
4891
|
modules: {
|
|
4592
|
-
type: "ESModule" | "CommonJS" | "
|
|
4892
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
4593
4893
|
path: string;
|
|
4594
4894
|
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
4595
4895
|
}[];
|
|
4596
4896
|
modulesRoot?: string | undefined;
|
|
4597
4897
|
}, {
|
|
4598
4898
|
modules: {
|
|
4599
|
-
type: "ESModule" | "CommonJS" | "
|
|
4899
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
4600
4900
|
path: string;
|
|
4601
4901
|
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
4602
4902
|
}[];
|
|
@@ -4606,15 +4906,15 @@ export declare const SourceOptionsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
4606
4906
|
scriptPath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
4607
4907
|
modules: z.ZodOptional<z.ZodBoolean>;
|
|
4608
4908
|
modulesRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4609
|
-
type: z.ZodEnum<["ESModule", "CommonJS", "
|
|
4909
|
+
type: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
|
|
4610
4910
|
include: z.ZodArray<z.ZodString, "many">;
|
|
4611
4911
|
fallthrough: z.ZodOptional<z.ZodBoolean>;
|
|
4612
4912
|
}, "strip", z.ZodTypeAny, {
|
|
4613
|
-
type: "ESModule" | "CommonJS" | "
|
|
4913
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
4614
4914
|
include: string[];
|
|
4615
4915
|
fallthrough?: boolean | undefined;
|
|
4616
4916
|
}, {
|
|
4617
|
-
type: "ESModule" | "CommonJS" | "
|
|
4917
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
4618
4918
|
include: string[];
|
|
4619
4919
|
fallthrough?: boolean | undefined;
|
|
4620
4920
|
}>, "many">>;
|
|
@@ -4624,7 +4924,7 @@ export declare const SourceOptionsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
4624
4924
|
scriptPath?: string | undefined;
|
|
4625
4925
|
modules?: boolean | undefined;
|
|
4626
4926
|
modulesRules?: {
|
|
4627
|
-
type: "ESModule" | "CommonJS" | "
|
|
4927
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
4628
4928
|
include: string[];
|
|
4629
4929
|
fallthrough?: boolean | undefined;
|
|
4630
4930
|
}[] | undefined;
|
|
@@ -4634,7 +4934,7 @@ export declare const SourceOptionsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
4634
4934
|
scriptPath?: string | undefined;
|
|
4635
4935
|
modules?: boolean | undefined;
|
|
4636
4936
|
modulesRules?: {
|
|
4637
|
-
type: "ESModule" | "CommonJS" | "
|
|
4937
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
4638
4938
|
include: string[];
|
|
4639
4939
|
fallthrough?: boolean | undefined;
|
|
4640
4940
|
}[] | undefined;
|
|
@@ -4643,15 +4943,15 @@ export declare const SourceOptionsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
4643
4943
|
scriptPath: z.ZodEffects<z.ZodString, string, string>;
|
|
4644
4944
|
modules: z.ZodOptional<z.ZodBoolean>;
|
|
4645
4945
|
modulesRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4646
|
-
type: z.ZodEnum<["ESModule", "CommonJS", "
|
|
4946
|
+
type: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
|
|
4647
4947
|
include: z.ZodArray<z.ZodString, "many">;
|
|
4648
4948
|
fallthrough: z.ZodOptional<z.ZodBoolean>;
|
|
4649
4949
|
}, "strip", z.ZodTypeAny, {
|
|
4650
|
-
type: "ESModule" | "CommonJS" | "
|
|
4950
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
4651
4951
|
include: string[];
|
|
4652
4952
|
fallthrough?: boolean | undefined;
|
|
4653
4953
|
}, {
|
|
4654
|
-
type: "ESModule" | "CommonJS" | "
|
|
4954
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
4655
4955
|
include: string[];
|
|
4656
4956
|
fallthrough?: boolean | undefined;
|
|
4657
4957
|
}>, "many">>;
|
|
@@ -4660,7 +4960,7 @@ export declare const SourceOptionsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
4660
4960
|
scriptPath: string;
|
|
4661
4961
|
modules?: boolean | undefined;
|
|
4662
4962
|
modulesRules?: {
|
|
4663
|
-
type: "ESModule" | "CommonJS" | "
|
|
4963
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
4664
4964
|
include: string[];
|
|
4665
4965
|
fallthrough?: boolean | undefined;
|
|
4666
4966
|
}[] | undefined;
|
|
@@ -4669,7 +4969,7 @@ export declare const SourceOptionsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
4669
4969
|
scriptPath: string;
|
|
4670
4970
|
modules?: boolean | undefined;
|
|
4671
4971
|
modulesRules?: {
|
|
4672
|
-
type: "ESModule" | "CommonJS" | "
|
|
4972
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
4673
4973
|
include: string[];
|
|
4674
4974
|
fallthrough?: boolean | undefined;
|
|
4675
4975
|
}[] | undefined;
|
|
@@ -4975,15 +5275,13 @@ export declare type Worker_Module = {
|
|
|
4975
5275
|
wasm?: Uint8Array;
|
|
4976
5276
|
} | {
|
|
4977
5277
|
json?: string;
|
|
4978
|
-
} | {
|
|
4979
|
-
nodeJsCompatModule?: string;
|
|
4980
5278
|
} | {
|
|
4981
5279
|
pythonModule?: string;
|
|
4982
5280
|
} | {
|
|
4983
5281
|
pythonRequirement?: string;
|
|
4984
5282
|
});
|
|
4985
5283
|
|
|
4986
|
-
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> & z.input<typeof PIPELINE_PLUGIN.options>;
|
|
5284
|
+
export declare type WorkerOptions = z.input<typeof CORE_PLUGIN.options> & z.input<typeof CACHE_PLUGIN.options> & z.input<typeof D1_PLUGIN.options> & z.input<typeof DURABLE_OBJECTS_PLUGIN.options> & z.input<typeof KV_PLUGIN.options> & z.input<typeof QUEUES_PLUGIN.options> & z.input<typeof R2_PLUGIN.options> & z.input<typeof HYPERDRIVE_PLUGIN.options> & z.input<typeof RATELIMIT_PLUGIN.options> & z.input<typeof EMAIL_PLUGIN.options> & z.input<typeof ASSETS_PLUGIN.options> & z.input<typeof WORKFLOWS_PLUGIN.options> & z.input<typeof PIPELINE_PLUGIN.options> & z.input<typeof SECRET_STORE_PLUGIN.options>;
|
|
4987
5285
|
|
|
4988
5286
|
export declare interface WorkerRoute {
|
|
4989
5287
|
target: string;
|