miniflare 0.0.0-ecef68635 → 0.0.0-ee305dd67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -0
- package/dist/src/index.d.ts +252 -82
- package/dist/src/index.js +284 -141
- package/dist/src/index.js.map +3 -3
- package/dist/src/workers/assets/assets.worker.js +87 -5
- package/dist/src/workers/assets/assets.worker.js.map +2 -2
- package/dist/src/workers/assets/router.worker.js +73 -4
- package/dist/src/workers/assets/router.worker.js.map +2 -2
- package/dist/src/workers/cache/cache.worker.js +6 -5
- package/dist/src/workers/cache/cache.worker.js.map +2 -2
- package/dist/src/workers/queues/broker.worker.js +4 -2
- package/dist/src/workers/queues/broker.worker.js.map +1 -1
- package/dist/src/workers/workflows/binding.worker.js +1927 -0
- package/dist/src/workers/workflows/binding.worker.js.map +6 -0
- package/package.json +8 -6
package/dist/src/index.d.ts
CHANGED
|
@@ -10,9 +10,9 @@ import type { DurableObjectNamespace } from '@cloudflare/workers-types/experimen
|
|
|
10
10
|
import type { Fetcher } from '@cloudflare/workers-types/experimental';
|
|
11
11
|
import { File } from 'undici';
|
|
12
12
|
import type { File as File_2 } from '@cloudflare/workers-types/experimental';
|
|
13
|
-
import { FormData } from 'undici';
|
|
14
|
-
import { Headers } from 'undici';
|
|
15
|
-
import type { Headers as
|
|
13
|
+
import { FormData as FormData_2 } from 'undici';
|
|
14
|
+
import { Headers as Headers_2 } from 'undici';
|
|
15
|
+
import type { Headers as Headers_3 } from '@cloudflare/workers-types/experimental';
|
|
16
16
|
import { HeadersInit } from 'undici';
|
|
17
17
|
import http from 'http';
|
|
18
18
|
import { IncomingRequestCfProperties } from '@cloudflare/workers-types/experimental';
|
|
@@ -23,24 +23,24 @@ import { ParseParams } from 'zod';
|
|
|
23
23
|
import type { Queue } from '@cloudflare/workers-types/experimental';
|
|
24
24
|
import type { R2Bucket } from '@cloudflare/workers-types/experimental';
|
|
25
25
|
import { Readable } from 'stream';
|
|
26
|
-
import type { ReadableStream } from '@cloudflare/workers-types/experimental';
|
|
27
|
-
import { ReadableStream as
|
|
26
|
+
import type { ReadableStream as ReadableStream_2 } from '@cloudflare/workers-types/experimental';
|
|
27
|
+
import { ReadableStream as ReadableStream_3 } from 'stream/web';
|
|
28
28
|
import { ReferrerPolicy } from 'undici';
|
|
29
|
-
import { Request as
|
|
30
|
-
import type { Request as
|
|
29
|
+
import { Request as Request_3 } from 'undici';
|
|
30
|
+
import type { Request as Request_4 } from '@cloudflare/workers-types/experimental';
|
|
31
31
|
import { RequestCache } from 'undici';
|
|
32
32
|
import { RequestCredentials } from 'undici';
|
|
33
33
|
import { RequestDestination } from 'undici';
|
|
34
34
|
import { RequestDuplex } from 'undici';
|
|
35
35
|
import { RequestInfo as RequestInfo_2 } from 'undici';
|
|
36
|
-
import { RequestInit as
|
|
37
|
-
import type { RequestInit as
|
|
36
|
+
import { RequestInit as RequestInit_3 } from 'undici';
|
|
37
|
+
import type { RequestInit as RequestInit_4 } from '@cloudflare/workers-types/experimental';
|
|
38
38
|
import type { RequestInitCfProperties } from '@cloudflare/workers-types/experimental';
|
|
39
39
|
import { RequestMode } from 'undici';
|
|
40
40
|
import { RequestRedirect } from 'undici';
|
|
41
|
-
import { Response as
|
|
42
|
-
import type { Response as
|
|
43
|
-
import { ResponseInit as
|
|
41
|
+
import { Response as Response_3 } from 'undici';
|
|
42
|
+
import type { Response as Response_4 } from '@cloudflare/workers-types/experimental';
|
|
43
|
+
import { ResponseInit as ResponseInit_3 } from 'undici';
|
|
44
44
|
import { ResponseRedirectStatus } from 'undici';
|
|
45
45
|
import { ResponseType } from 'undici';
|
|
46
46
|
import type { ServiceWorkerGlobalScope } from '@cloudflare/workers-types/experimental';
|
|
@@ -512,7 +512,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
512
512
|
path: string;
|
|
513
513
|
writable?: boolean | undefined;
|
|
514
514
|
};
|
|
515
|
-
}>, z.ZodType<(request:
|
|
515
|
+
}>, z.ZodType<(request: Request_2, mf: Miniflare) => Awaitable<Response_2>, z.ZodTypeDef, (request: Request_2, mf: Miniflare) => Awaitable<Response_2>>]>>>;
|
|
516
516
|
wrappedBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
517
517
|
scriptName: z.ZodString;
|
|
518
518
|
entrypoint: z.ZodOptional<z.ZodString>;
|
|
@@ -664,7 +664,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
664
664
|
path: string;
|
|
665
665
|
writable?: boolean | undefined;
|
|
666
666
|
};
|
|
667
|
-
}>, z.ZodType<(request:
|
|
667
|
+
}>, z.ZodType<(request: Request_2, mf: Miniflare) => Awaitable<Response_2>, z.ZodTypeDef, (request: Request_2, mf: Miniflare) => Awaitable<Response_2>>]>>;
|
|
668
668
|
fetchMock: z.ZodOptional<z.ZodType<MockAgent<MockAgent.Options>, z.ZodTypeDef, MockAgent<MockAgent.Options>>>;
|
|
669
669
|
unsafeEphemeralDurableObjects: z.ZodOptional<z.ZodBoolean>;
|
|
670
670
|
unsafeDirectSockets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -725,7 +725,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
725
725
|
path: string;
|
|
726
726
|
writable?: boolean | undefined;
|
|
727
727
|
};
|
|
728
|
-
} | ((request:
|
|
728
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
|
|
729
729
|
wrappedBindings?: Record<string, string | {
|
|
730
730
|
scriptName: string;
|
|
731
731
|
entrypoint?: string | undefined;
|
|
@@ -757,7 +757,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
757
757
|
path: string;
|
|
758
758
|
writable?: boolean | undefined;
|
|
759
759
|
};
|
|
760
|
-
} | ((request:
|
|
760
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
|
|
761
761
|
fetchMock?: MockAgent<MockAgent.Options> | undefined;
|
|
762
762
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
763
763
|
unsafeDirectSockets?: {
|
|
@@ -805,7 +805,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
805
805
|
path: string;
|
|
806
806
|
writable?: boolean | undefined;
|
|
807
807
|
};
|
|
808
|
-
} | ((request:
|
|
808
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
|
|
809
809
|
wrappedBindings?: Record<string, string | {
|
|
810
810
|
scriptName: string;
|
|
811
811
|
entrypoint?: string | undefined;
|
|
@@ -837,7 +837,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
837
837
|
path: string;
|
|
838
838
|
writable?: boolean | undefined;
|
|
839
839
|
};
|
|
840
|
-
} | ((request:
|
|
840
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
|
|
841
841
|
fetchMock?: MockAgent<MockAgent.Options> | undefined;
|
|
842
842
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
843
843
|
unsafeDirectSockets?: {
|
|
@@ -892,7 +892,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
892
892
|
path: string;
|
|
893
893
|
writable?: boolean | undefined;
|
|
894
894
|
};
|
|
895
|
-
} | ((request:
|
|
895
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
|
|
896
896
|
wrappedBindings?: Record<string, string | {
|
|
897
897
|
scriptName: string;
|
|
898
898
|
entrypoint?: string | undefined;
|
|
@@ -924,7 +924,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
924
924
|
path: string;
|
|
925
925
|
writable?: boolean | undefined;
|
|
926
926
|
};
|
|
927
|
-
} | ((request:
|
|
927
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
|
|
928
928
|
fetchMock?: MockAgent<MockAgent.Options> | undefined;
|
|
929
929
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
930
930
|
unsafeDirectSockets?: {
|
|
@@ -982,7 +982,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
982
982
|
path: string;
|
|
983
983
|
writable?: boolean | undefined;
|
|
984
984
|
};
|
|
985
|
-
} | ((request:
|
|
985
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
|
|
986
986
|
wrappedBindings?: Record<string, string | {
|
|
987
987
|
scriptName: string;
|
|
988
988
|
entrypoint?: string | undefined;
|
|
@@ -1014,7 +1014,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1014
1014
|
path: string;
|
|
1015
1015
|
writable?: boolean | undefined;
|
|
1016
1016
|
};
|
|
1017
|
-
} | ((request:
|
|
1017
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
|
|
1018
1018
|
fetchMock?: MockAgent<MockAgent.Options> | undefined;
|
|
1019
1019
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
1020
1020
|
unsafeDirectSockets?: {
|
|
@@ -1071,7 +1071,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1071
1071
|
path: string;
|
|
1072
1072
|
writable?: boolean | undefined;
|
|
1073
1073
|
};
|
|
1074
|
-
} | ((request:
|
|
1074
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
|
|
1075
1075
|
wrappedBindings?: Record<string, string | {
|
|
1076
1076
|
scriptName: string;
|
|
1077
1077
|
entrypoint?: string | undefined;
|
|
@@ -1103,7 +1103,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1103
1103
|
path: string;
|
|
1104
1104
|
writable?: boolean | undefined;
|
|
1105
1105
|
};
|
|
1106
|
-
} | ((request:
|
|
1106
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
|
|
1107
1107
|
fetchMock?: MockAgent<MockAgent.Options> | undefined;
|
|
1108
1108
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
1109
1109
|
unsafeDirectSockets?: {
|
|
@@ -1177,7 +1177,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1177
1177
|
path: string;
|
|
1178
1178
|
writable?: boolean | undefined;
|
|
1179
1179
|
};
|
|
1180
|
-
} | ((request:
|
|
1180
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
|
|
1181
1181
|
wrappedBindings?: Record<string, string | {
|
|
1182
1182
|
scriptName: string;
|
|
1183
1183
|
entrypoint?: string | undefined;
|
|
@@ -1209,7 +1209,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1209
1209
|
path: string;
|
|
1210
1210
|
writable?: boolean | undefined;
|
|
1211
1211
|
};
|
|
1212
|
-
} | ((request:
|
|
1212
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
|
|
1213
1213
|
fetchMock?: MockAgent<MockAgent.Options> | undefined;
|
|
1214
1214
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
1215
1215
|
unsafeDirectSockets?: {
|
|
@@ -1240,7 +1240,7 @@ export declare const CoreSharedOptionsSchema: z.ZodObject<{
|
|
|
1240
1240
|
cf: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>;
|
|
1241
1241
|
liveReload: z.ZodOptional<z.ZodBoolean>;
|
|
1242
1242
|
unsafeProxySharedSecret: z.ZodOptional<z.ZodString>;
|
|
1243
|
-
unsafeModuleFallbackService: z.ZodOptional<z.ZodType<(request:
|
|
1243
|
+
unsafeModuleFallbackService: z.ZodOptional<z.ZodType<(request: Request_2, mf: Miniflare) => Awaitable<Response_2>, z.ZodTypeDef, (request: Request_2, mf: Miniflare) => Awaitable<Response_2>>>;
|
|
1244
1244
|
unsafeStickyBlobs: z.ZodOptional<z.ZodBoolean>;
|
|
1245
1245
|
}, "strip", z.ZodTypeAny, {
|
|
1246
1246
|
rootPath?: undefined;
|
|
@@ -1259,7 +1259,7 @@ export declare const CoreSharedOptionsSchema: z.ZodObject<{
|
|
|
1259
1259
|
cf?: string | boolean | Record<string, any> | undefined;
|
|
1260
1260
|
liveReload?: boolean | undefined;
|
|
1261
1261
|
unsafeProxySharedSecret?: string | undefined;
|
|
1262
|
-
unsafeModuleFallbackService?: ((request:
|
|
1262
|
+
unsafeModuleFallbackService?: ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
|
|
1263
1263
|
unsafeStickyBlobs?: boolean | undefined;
|
|
1264
1264
|
}, {
|
|
1265
1265
|
rootPath?: string | undefined;
|
|
@@ -1278,7 +1278,7 @@ export declare const CoreSharedOptionsSchema: z.ZodObject<{
|
|
|
1278
1278
|
cf?: string | boolean | Record<string, any> | undefined;
|
|
1279
1279
|
liveReload?: boolean | undefined;
|
|
1280
1280
|
unsafeProxySharedSecret?: string | undefined;
|
|
1281
|
-
unsafeModuleFallbackService?: ((request:
|
|
1281
|
+
unsafeModuleFallbackService?: ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
|
|
1282
1282
|
unsafeStickyBlobs?: boolean | undefined;
|
|
1283
1283
|
}>;
|
|
1284
1284
|
|
|
@@ -1333,7 +1333,7 @@ export declare interface DiskDirectory {
|
|
|
1333
1333
|
writable?: boolean;
|
|
1334
1334
|
}
|
|
1335
1335
|
|
|
1336
|
-
export declare type DispatchFetch = (input: RequestInfo, init?:
|
|
1336
|
+
export declare type DispatchFetch = (input: RequestInfo, init?: RequestInit_2<Partial<IncomingRequestCfProperties>>) => Promise<Response_2>;
|
|
1337
1337
|
|
|
1338
1338
|
/**
|
|
1339
1339
|
* Dispatcher created for each `dispatchFetch()` call. Ensures request origin
|
|
@@ -1471,7 +1471,8 @@ export declare interface ExternalServer_Tcp {
|
|
|
1471
1471
|
certificateHost?: string;
|
|
1472
1472
|
}
|
|
1473
1473
|
|
|
1474
|
-
|
|
1474
|
+
declare function fetch_2(input: RequestInfo, init?: RequestInit_2 | Request_2): Promise<Response_2>;
|
|
1475
|
+
export { fetch_2 as fetch }
|
|
1475
1476
|
|
|
1476
1477
|
export { File }
|
|
1477
1478
|
|
|
@@ -1479,7 +1480,7 @@ export declare function _forceColour(enabled?: boolean): void;
|
|
|
1479
1480
|
|
|
1480
1481
|
export declare function formatZodError(error: z.ZodError, input: unknown): string;
|
|
1481
1482
|
|
|
1482
|
-
export { FormData }
|
|
1483
|
+
export { FormData_2 as FormData }
|
|
1483
1484
|
|
|
1484
1485
|
export declare function getAccessibleHosts(ipv4Only?: boolean): string[];
|
|
1485
1486
|
|
|
@@ -1543,7 +1544,7 @@ export declare interface GlobalServicesOptions {
|
|
|
1543
1544
|
|
|
1544
1545
|
export declare function globsToRegExps(globs?: string[]): MatcherRegExps;
|
|
1545
1546
|
|
|
1546
|
-
export { Headers }
|
|
1547
|
+
export { Headers_2 as Headers }
|
|
1547
1548
|
|
|
1548
1549
|
export { HeadersInit }
|
|
1549
1550
|
|
|
@@ -1749,12 +1750,13 @@ export declare function maybeParseURL(url: Persistence): URL | undefined;
|
|
|
1749
1750
|
*/
|
|
1750
1751
|
export declare function mergeWorkerOptions(a: Partial<WorkerOptions>, b: Partial<WorkerOptions>): Partial<WorkerOptions>;
|
|
1751
1752
|
|
|
1752
|
-
|
|
1753
|
+
declare class MessageEvent_2 extends Event {
|
|
1753
1754
|
readonly data: ArrayBuffer | string;
|
|
1754
1755
|
constructor(type: "message", init: {
|
|
1755
1756
|
data: ArrayBuffer | string;
|
|
1756
1757
|
});
|
|
1757
1758
|
}
|
|
1759
|
+
export { MessageEvent_2 as MessageEvent }
|
|
1758
1760
|
|
|
1759
1761
|
export declare function migrateDatabase(log: Log, uniqueKey: string, persistPath: string, namespace: string): Promise<void>;
|
|
1760
1762
|
|
|
@@ -1853,7 +1855,7 @@ export declare interface Network {
|
|
|
1853
1855
|
tlsOptions?: TlsOptions;
|
|
1854
1856
|
}
|
|
1855
1857
|
|
|
1856
|
-
export declare const NODE_PLATFORM_IMPL: PlatformImpl<
|
|
1858
|
+
export declare const NODE_PLATFORM_IMPL: PlatformImpl<ReadableStream_3>;
|
|
1857
1859
|
|
|
1858
1860
|
/**
|
|
1859
1861
|
* We can provide Node.js compatibility in a number of different modes:
|
|
@@ -1985,9 +1987,9 @@ export declare const PersistenceSchema: z.ZodOptional<z.ZodUnion<[z.ZodBoolean,
|
|
|
1985
1987
|
export declare interface PlatformImpl<RS> {
|
|
1986
1988
|
Blob: typeof Blob_2;
|
|
1987
1989
|
File: typeof File_2;
|
|
1988
|
-
Headers: typeof
|
|
1989
|
-
Request: typeof
|
|
1990
|
-
Response: typeof
|
|
1990
|
+
Headers: typeof Headers_3;
|
|
1991
|
+
Request: typeof Request_4;
|
|
1992
|
+
Response: typeof Response_4;
|
|
1991
1993
|
isReadableStream(value: unknown): value is RS;
|
|
1992
1994
|
bufferReadableStream(stream: RS): Promise<ArrayBuffer>;
|
|
1993
1995
|
unbufferReadableStream(buffer: ArrayBuffer): RS;
|
|
@@ -2260,7 +2262,7 @@ export declare const PLUGINS: {
|
|
|
2260
2262
|
path: string;
|
|
2261
2263
|
writable?: boolean | undefined;
|
|
2262
2264
|
};
|
|
2263
|
-
}>, z.ZodType<(request:
|
|
2265
|
+
}>, z.ZodType<(request: Request_2, mf: Miniflare) => Awaitable<Response_2>, z.ZodTypeDef, (request: Request_2, mf: Miniflare) => Awaitable<Response_2>>]>>>;
|
|
2264
2266
|
wrappedBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
2265
2267
|
scriptName: z.ZodString;
|
|
2266
2268
|
entrypoint: z.ZodOptional<z.ZodString>;
|
|
@@ -2412,7 +2414,7 @@ export declare const PLUGINS: {
|
|
|
2412
2414
|
path: string;
|
|
2413
2415
|
writable?: boolean | undefined;
|
|
2414
2416
|
};
|
|
2415
|
-
}>, z.ZodType<(request:
|
|
2417
|
+
}>, z.ZodType<(request: Request_2, mf: Miniflare) => Awaitable<Response_2>, z.ZodTypeDef, (request: Request_2, mf: Miniflare) => Awaitable<Response_2>>]>>;
|
|
2416
2418
|
fetchMock: z.ZodOptional<z.ZodType<MockAgent<MockAgent>, z.ZodTypeDef, MockAgent<MockAgent>>>;
|
|
2417
2419
|
unsafeEphemeralDurableObjects: z.ZodOptional<z.ZodBoolean>;
|
|
2418
2420
|
unsafeDirectSockets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2470,7 +2472,7 @@ export declare const PLUGINS: {
|
|
|
2470
2472
|
path: string;
|
|
2471
2473
|
writable?: boolean | undefined;
|
|
2472
2474
|
};
|
|
2473
|
-
} | ((request:
|
|
2475
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
|
|
2474
2476
|
wrappedBindings?: Record<string, string | {
|
|
2475
2477
|
scriptName: string;
|
|
2476
2478
|
entrypoint?: string | undefined;
|
|
@@ -2502,7 +2504,7 @@ export declare const PLUGINS: {
|
|
|
2502
2504
|
path: string;
|
|
2503
2505
|
writable?: boolean | undefined;
|
|
2504
2506
|
};
|
|
2505
|
-
} | ((request:
|
|
2507
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
|
|
2506
2508
|
fetchMock?: MockAgent<MockAgent> | undefined;
|
|
2507
2509
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
2508
2510
|
unsafeDirectSockets?: {
|
|
@@ -2550,7 +2552,7 @@ export declare const PLUGINS: {
|
|
|
2550
2552
|
path: string;
|
|
2551
2553
|
writable?: boolean | undefined;
|
|
2552
2554
|
};
|
|
2553
|
-
} | ((request:
|
|
2555
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
|
|
2554
2556
|
wrappedBindings?: Record<string, string | {
|
|
2555
2557
|
scriptName: string;
|
|
2556
2558
|
entrypoint?: string | undefined;
|
|
@@ -2582,7 +2584,7 @@ export declare const PLUGINS: {
|
|
|
2582
2584
|
path: string;
|
|
2583
2585
|
writable?: boolean | undefined;
|
|
2584
2586
|
};
|
|
2585
|
-
} | ((request:
|
|
2587
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
|
|
2586
2588
|
fetchMock?: MockAgent<MockAgent> | undefined;
|
|
2587
2589
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
2588
2590
|
unsafeDirectSockets?: {
|
|
@@ -2637,7 +2639,7 @@ export declare const PLUGINS: {
|
|
|
2637
2639
|
path: string;
|
|
2638
2640
|
writable?: boolean | undefined;
|
|
2639
2641
|
};
|
|
2640
|
-
} | ((request:
|
|
2642
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
|
|
2641
2643
|
wrappedBindings?: Record<string, string | {
|
|
2642
2644
|
scriptName: string;
|
|
2643
2645
|
entrypoint?: string | undefined;
|
|
@@ -2669,7 +2671,7 @@ export declare const PLUGINS: {
|
|
|
2669
2671
|
path: string;
|
|
2670
2672
|
writable?: boolean | undefined;
|
|
2671
2673
|
};
|
|
2672
|
-
} | ((request:
|
|
2674
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
|
|
2673
2675
|
fetchMock?: MockAgent<MockAgent> | undefined;
|
|
2674
2676
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
2675
2677
|
unsafeDirectSockets?: {
|
|
@@ -2727,7 +2729,7 @@ export declare const PLUGINS: {
|
|
|
2727
2729
|
path: string;
|
|
2728
2730
|
writable?: boolean | undefined;
|
|
2729
2731
|
};
|
|
2730
|
-
} | ((request:
|
|
2732
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
|
|
2731
2733
|
wrappedBindings?: Record<string, string | {
|
|
2732
2734
|
scriptName: string;
|
|
2733
2735
|
entrypoint?: string | undefined;
|
|
@@ -2759,7 +2761,7 @@ export declare const PLUGINS: {
|
|
|
2759
2761
|
path: string;
|
|
2760
2762
|
writable?: boolean | undefined;
|
|
2761
2763
|
};
|
|
2762
|
-
} | ((request:
|
|
2764
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
|
|
2763
2765
|
fetchMock?: MockAgent<MockAgent> | undefined;
|
|
2764
2766
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
2765
2767
|
unsafeDirectSockets?: {
|
|
@@ -2816,7 +2818,7 @@ export declare const PLUGINS: {
|
|
|
2816
2818
|
path: string;
|
|
2817
2819
|
writable?: boolean | undefined;
|
|
2818
2820
|
};
|
|
2819
|
-
} | ((request:
|
|
2821
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
|
|
2820
2822
|
wrappedBindings?: Record<string, string | {
|
|
2821
2823
|
scriptName: string;
|
|
2822
2824
|
entrypoint?: string | undefined;
|
|
@@ -2848,7 +2850,7 @@ export declare const PLUGINS: {
|
|
|
2848
2850
|
path: string;
|
|
2849
2851
|
writable?: boolean | undefined;
|
|
2850
2852
|
};
|
|
2851
|
-
} | ((request:
|
|
2853
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
|
|
2852
2854
|
fetchMock?: MockAgent<MockAgent> | undefined;
|
|
2853
2855
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
2854
2856
|
unsafeDirectSockets?: {
|
|
@@ -2922,7 +2924,7 @@ export declare const PLUGINS: {
|
|
|
2922
2924
|
path: string;
|
|
2923
2925
|
writable?: boolean | undefined;
|
|
2924
2926
|
};
|
|
2925
|
-
} | ((request:
|
|
2927
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
|
|
2926
2928
|
wrappedBindings?: Record<string, string | {
|
|
2927
2929
|
scriptName: string;
|
|
2928
2930
|
entrypoint?: string | undefined;
|
|
@@ -2954,7 +2956,7 @@ export declare const PLUGINS: {
|
|
|
2954
2956
|
path: string;
|
|
2955
2957
|
writable?: boolean | undefined;
|
|
2956
2958
|
};
|
|
2957
|
-
} | ((request:
|
|
2959
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
|
|
2958
2960
|
fetchMock?: MockAgent<MockAgent> | undefined;
|
|
2959
2961
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
2960
2962
|
unsafeDirectSockets?: {
|
|
@@ -2983,7 +2985,7 @@ export declare const PLUGINS: {
|
|
|
2983
2985
|
cf: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>;
|
|
2984
2986
|
liveReload: z.ZodOptional<z.ZodBoolean>;
|
|
2985
2987
|
unsafeProxySharedSecret: z.ZodOptional<z.ZodString>;
|
|
2986
|
-
unsafeModuleFallbackService: z.ZodOptional<z.ZodType<(request:
|
|
2988
|
+
unsafeModuleFallbackService: z.ZodOptional<z.ZodType<(request: Request_2, mf: Miniflare) => Awaitable<Response_2>, z.ZodTypeDef, (request: Request_2, mf: Miniflare) => Awaitable<Response_2>>>;
|
|
2987
2989
|
unsafeStickyBlobs: z.ZodOptional<z.ZodBoolean>;
|
|
2988
2990
|
}, "strip", z.ZodTypeAny, {
|
|
2989
2991
|
rootPath?: undefined;
|
|
@@ -3002,7 +3004,7 @@ export declare const PLUGINS: {
|
|
|
3002
3004
|
cf?: string | boolean | Record<string, any> | undefined;
|
|
3003
3005
|
liveReload?: boolean | undefined;
|
|
3004
3006
|
unsafeProxySharedSecret?: string | undefined;
|
|
3005
|
-
unsafeModuleFallbackService?: ((request:
|
|
3007
|
+
unsafeModuleFallbackService?: ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
|
|
3006
3008
|
unsafeStickyBlobs?: boolean | undefined;
|
|
3007
3009
|
}, {
|
|
3008
3010
|
rootPath?: string | undefined;
|
|
@@ -3021,7 +3023,7 @@ export declare const PLUGINS: {
|
|
|
3021
3023
|
cf?: string | boolean | Record<string, any> | undefined;
|
|
3022
3024
|
liveReload?: boolean | undefined;
|
|
3023
3025
|
unsafeProxySharedSecret?: string | undefined;
|
|
3024
|
-
unsafeModuleFallbackService?: ((request:
|
|
3026
|
+
unsafeModuleFallbackService?: ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
|
|
3025
3027
|
unsafeStickyBlobs?: boolean | undefined;
|
|
3026
3028
|
}>>;
|
|
3027
3029
|
cache: Plugin<z.ZodObject<{
|
|
@@ -3129,22 +3131,39 @@ export declare const PLUGINS: {
|
|
|
3129
3131
|
queueName: string;
|
|
3130
3132
|
deliveryDelay?: number | undefined;
|
|
3131
3133
|
}>>, z.ZodArray<z.ZodString, "many">, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
3132
|
-
queueConsumers: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3134
|
+
queueConsumers: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
3133
3135
|
maxBatchSize: z.ZodOptional<z.ZodNumber>;
|
|
3134
3136
|
maxBatchTimeout: z.ZodOptional<z.ZodNumber>;
|
|
3135
3137
|
maxRetires: z.ZodOptional<z.ZodNumber>;
|
|
3138
|
+
maxRetries: z.ZodOptional<z.ZodNumber>;
|
|
3136
3139
|
deadLetterQueue: z.ZodOptional<z.ZodString>;
|
|
3137
3140
|
retryDelay: z.ZodOptional<z.ZodNumber>;
|
|
3138
3141
|
}, "strip", z.ZodTypeAny, {
|
|
3139
3142
|
maxBatchSize?: number | undefined;
|
|
3140
3143
|
maxBatchTimeout?: number | undefined;
|
|
3141
3144
|
maxRetires?: number | undefined;
|
|
3145
|
+
maxRetries?: number | undefined;
|
|
3142
3146
|
deadLetterQueue?: string | undefined;
|
|
3143
3147
|
retryDelay?: number | undefined;
|
|
3144
3148
|
}, {
|
|
3145
3149
|
maxBatchSize?: number | undefined;
|
|
3146
3150
|
maxBatchTimeout?: number | undefined;
|
|
3147
3151
|
maxRetires?: number | undefined;
|
|
3152
|
+
maxRetries?: number | undefined;
|
|
3153
|
+
deadLetterQueue?: string | undefined;
|
|
3154
|
+
retryDelay?: number | undefined;
|
|
3155
|
+
}>, Omit<{
|
|
3156
|
+
maxBatchSize?: number | undefined;
|
|
3157
|
+
maxBatchTimeout?: number | undefined;
|
|
3158
|
+
maxRetires?: number | undefined;
|
|
3159
|
+
maxRetries?: number | undefined;
|
|
3160
|
+
deadLetterQueue?: string | undefined;
|
|
3161
|
+
retryDelay?: number | undefined;
|
|
3162
|
+
}, "maxRetires">, {
|
|
3163
|
+
maxBatchSize?: number | undefined;
|
|
3164
|
+
maxBatchTimeout?: number | undefined;
|
|
3165
|
+
maxRetires?: number | undefined;
|
|
3166
|
+
maxRetries?: number | undefined;
|
|
3148
3167
|
deadLetterQueue?: string | undefined;
|
|
3149
3168
|
retryDelay?: number | undefined;
|
|
3150
3169
|
}>>, z.ZodArray<z.ZodString, "many">]>>;
|
|
@@ -3153,13 +3172,14 @@ export declare const PLUGINS: {
|
|
|
3153
3172
|
queueName: string;
|
|
3154
3173
|
deliveryDelay?: number | undefined;
|
|
3155
3174
|
}> | undefined;
|
|
3156
|
-
queueConsumers?: string[] | Record<string, {
|
|
3175
|
+
queueConsumers?: string[] | Record<string, Omit<{
|
|
3157
3176
|
maxBatchSize?: number | undefined;
|
|
3158
3177
|
maxBatchTimeout?: number | undefined;
|
|
3159
3178
|
maxRetires?: number | undefined;
|
|
3179
|
+
maxRetries?: number | undefined;
|
|
3160
3180
|
deadLetterQueue?: string | undefined;
|
|
3161
3181
|
retryDelay?: number | undefined;
|
|
3162
|
-
}
|
|
3182
|
+
}, "maxRetires">> | undefined;
|
|
3163
3183
|
}, {
|
|
3164
3184
|
queueProducers?: string[] | Record<string, string> | Record<string, {
|
|
3165
3185
|
queueName: string;
|
|
@@ -3169,6 +3189,7 @@ export declare const PLUGINS: {
|
|
|
3169
3189
|
maxBatchSize?: number | undefined;
|
|
3170
3190
|
maxBatchTimeout?: number | undefined;
|
|
3171
3191
|
maxRetires?: number | undefined;
|
|
3192
|
+
maxRetries?: number | undefined;
|
|
3172
3193
|
deadLetterQueue?: string | undefined;
|
|
3173
3194
|
retryDelay?: number | undefined;
|
|
3174
3195
|
}> | undefined;
|
|
@@ -3303,6 +3324,39 @@ export declare const PLUGINS: {
|
|
|
3303
3324
|
} | undefined;
|
|
3304
3325
|
} | undefined;
|
|
3305
3326
|
}>>;
|
|
3327
|
+
workflows: Plugin<z.ZodObject<{
|
|
3328
|
+
workflows: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3329
|
+
name: z.ZodString;
|
|
3330
|
+
className: z.ZodString;
|
|
3331
|
+
scriptName: z.ZodOptional<z.ZodString>;
|
|
3332
|
+
}, "strip", z.ZodTypeAny, {
|
|
3333
|
+
name: string;
|
|
3334
|
+
className: string;
|
|
3335
|
+
scriptName?: string | undefined;
|
|
3336
|
+
}, {
|
|
3337
|
+
name: string;
|
|
3338
|
+
className: string;
|
|
3339
|
+
scriptName?: string | undefined;
|
|
3340
|
+
}>>>;
|
|
3341
|
+
}, "strip", z.ZodTypeAny, {
|
|
3342
|
+
workflows?: Record<string, {
|
|
3343
|
+
name: string;
|
|
3344
|
+
className: string;
|
|
3345
|
+
scriptName?: string | undefined;
|
|
3346
|
+
}> | undefined;
|
|
3347
|
+
}, {
|
|
3348
|
+
workflows?: Record<string, {
|
|
3349
|
+
name: string;
|
|
3350
|
+
className: string;
|
|
3351
|
+
scriptName?: string | undefined;
|
|
3352
|
+
}> | undefined;
|
|
3353
|
+
}>, z.ZodObject<{
|
|
3354
|
+
workflowsPersist: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
|
|
3355
|
+
}, "strip", z.ZodTypeAny, {
|
|
3356
|
+
workflowsPersist?: string | boolean | undefined;
|
|
3357
|
+
}, {
|
|
3358
|
+
workflowsPersist?: string | boolean | undefined;
|
|
3359
|
+
}>>;
|
|
3306
3360
|
};
|
|
3307
3361
|
|
|
3308
3362
|
export declare type Plugins = typeof PLUGINS;
|
|
@@ -3327,7 +3381,7 @@ export declare interface PluginServicesOptions<Options extends z.ZodType, Shared
|
|
|
3327
3381
|
|
|
3328
3382
|
export declare function prefixError(prefix: string, e: any): Error;
|
|
3329
3383
|
|
|
3330
|
-
export declare function prefixStream(prefix: Uint8Array, stream:
|
|
3384
|
+
export declare function prefixStream(prefix: Uint8Array, stream: ReadableStream_3<Uint8Array>): ReadableStream_3<Uint8Array>;
|
|
3331
3385
|
|
|
3332
3386
|
export declare const ProxyAddresses: {
|
|
3333
3387
|
readonly GLOBAL: 0;
|
|
@@ -3366,44 +3420,78 @@ export declare const QueueBindings: {
|
|
|
3366
3420
|
|
|
3367
3421
|
export declare type QueueConsumer = z.infer<typeof QueueConsumerSchema>;
|
|
3368
3422
|
|
|
3369
|
-
export declare const QueueConsumerOptionsSchema: z.ZodObject<{
|
|
3423
|
+
export declare const QueueConsumerOptionsSchema: z.ZodEffects<z.ZodObject<{
|
|
3370
3424
|
maxBatchSize: z.ZodOptional<z.ZodNumber>;
|
|
3371
3425
|
maxBatchTimeout: z.ZodOptional<z.ZodNumber>;
|
|
3372
3426
|
maxRetires: z.ZodOptional<z.ZodNumber>;
|
|
3427
|
+
maxRetries: z.ZodOptional<z.ZodNumber>;
|
|
3373
3428
|
deadLetterQueue: z.ZodOptional<z.ZodString>;
|
|
3374
3429
|
retryDelay: z.ZodOptional<z.ZodNumber>;
|
|
3375
3430
|
}, "strip", z.ZodTypeAny, {
|
|
3376
3431
|
maxBatchSize?: number | undefined;
|
|
3377
3432
|
maxBatchTimeout?: number | undefined;
|
|
3378
3433
|
maxRetires?: number | undefined;
|
|
3434
|
+
maxRetries?: number | undefined;
|
|
3379
3435
|
deadLetterQueue?: string | undefined;
|
|
3380
3436
|
retryDelay?: number | undefined;
|
|
3381
3437
|
}, {
|
|
3382
3438
|
maxBatchSize?: number | undefined;
|
|
3383
3439
|
maxBatchTimeout?: number | undefined;
|
|
3384
3440
|
maxRetires?: number | undefined;
|
|
3441
|
+
maxRetries?: number | undefined;
|
|
3442
|
+
deadLetterQueue?: string | undefined;
|
|
3443
|
+
retryDelay?: number | undefined;
|
|
3444
|
+
}>, Omit<{
|
|
3445
|
+
maxBatchSize?: number | undefined;
|
|
3446
|
+
maxBatchTimeout?: number | undefined;
|
|
3447
|
+
maxRetires?: number | undefined;
|
|
3448
|
+
maxRetries?: number | undefined;
|
|
3449
|
+
deadLetterQueue?: string | undefined;
|
|
3450
|
+
retryDelay?: number | undefined;
|
|
3451
|
+
}, "maxRetires">, {
|
|
3452
|
+
maxBatchSize?: number | undefined;
|
|
3453
|
+
maxBatchTimeout?: number | undefined;
|
|
3454
|
+
maxRetires?: number | undefined;
|
|
3455
|
+
maxRetries?: number | undefined;
|
|
3385
3456
|
deadLetterQueue?: string | undefined;
|
|
3386
3457
|
retryDelay?: number | undefined;
|
|
3387
3458
|
}>;
|
|
3388
3459
|
|
|
3389
3460
|
export declare type QueueConsumers = Map<string, z.infer<typeof QueueConsumerSchema>>;
|
|
3390
3461
|
|
|
3391
|
-
export declare const QueueConsumerSchema: z.ZodIntersection<z.ZodObject<{
|
|
3462
|
+
export declare const QueueConsumerSchema: z.ZodIntersection<z.ZodEffects<z.ZodObject<{
|
|
3392
3463
|
maxBatchSize: z.ZodOptional<z.ZodNumber>;
|
|
3393
3464
|
maxBatchTimeout: z.ZodOptional<z.ZodNumber>;
|
|
3394
3465
|
maxRetires: z.ZodOptional<z.ZodNumber>;
|
|
3466
|
+
maxRetries: z.ZodOptional<z.ZodNumber>;
|
|
3395
3467
|
deadLetterQueue: z.ZodOptional<z.ZodString>;
|
|
3396
3468
|
retryDelay: z.ZodOptional<z.ZodNumber>;
|
|
3397
3469
|
}, "strip", z.ZodTypeAny, {
|
|
3398
3470
|
maxBatchSize?: number | undefined;
|
|
3399
3471
|
maxBatchTimeout?: number | undefined;
|
|
3400
3472
|
maxRetires?: number | undefined;
|
|
3473
|
+
maxRetries?: number | undefined;
|
|
3401
3474
|
deadLetterQueue?: string | undefined;
|
|
3402
3475
|
retryDelay?: number | undefined;
|
|
3403
3476
|
}, {
|
|
3404
3477
|
maxBatchSize?: number | undefined;
|
|
3405
3478
|
maxBatchTimeout?: number | undefined;
|
|
3406
3479
|
maxRetires?: number | undefined;
|
|
3480
|
+
maxRetries?: number | undefined;
|
|
3481
|
+
deadLetterQueue?: string | undefined;
|
|
3482
|
+
retryDelay?: number | undefined;
|
|
3483
|
+
}>, Omit<{
|
|
3484
|
+
maxBatchSize?: number | undefined;
|
|
3485
|
+
maxBatchTimeout?: number | undefined;
|
|
3486
|
+
maxRetires?: number | undefined;
|
|
3487
|
+
maxRetries?: number | undefined;
|
|
3488
|
+
deadLetterQueue?: string | undefined;
|
|
3489
|
+
retryDelay?: number | undefined;
|
|
3490
|
+
}, "maxRetires">, {
|
|
3491
|
+
maxBatchSize?: number | undefined;
|
|
3492
|
+
maxBatchTimeout?: number | undefined;
|
|
3493
|
+
maxRetires?: number | undefined;
|
|
3494
|
+
maxRetries?: number | undefined;
|
|
3407
3495
|
deadLetterQueue?: string | undefined;
|
|
3408
3496
|
retryDelay?: number | undefined;
|
|
3409
3497
|
}>, z.ZodObject<{
|
|
@@ -3414,22 +3502,39 @@ export declare const QueueConsumerSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
3414
3502
|
workerName: string;
|
|
3415
3503
|
}>>;
|
|
3416
3504
|
|
|
3417
|
-
export declare const QueueConsumersSchema: z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodObject<{
|
|
3505
|
+
export declare const QueueConsumersSchema: z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
|
|
3418
3506
|
maxBatchSize: z.ZodOptional<z.ZodNumber>;
|
|
3419
3507
|
maxBatchTimeout: z.ZodOptional<z.ZodNumber>;
|
|
3420
3508
|
maxRetires: z.ZodOptional<z.ZodNumber>;
|
|
3509
|
+
maxRetries: z.ZodOptional<z.ZodNumber>;
|
|
3421
3510
|
deadLetterQueue: z.ZodOptional<z.ZodString>;
|
|
3422
3511
|
retryDelay: z.ZodOptional<z.ZodNumber>;
|
|
3423
3512
|
}, "strip", z.ZodTypeAny, {
|
|
3424
3513
|
maxBatchSize?: number | undefined;
|
|
3425
3514
|
maxBatchTimeout?: number | undefined;
|
|
3426
3515
|
maxRetires?: number | undefined;
|
|
3516
|
+
maxRetries?: number | undefined;
|
|
3427
3517
|
deadLetterQueue?: string | undefined;
|
|
3428
3518
|
retryDelay?: number | undefined;
|
|
3429
3519
|
}, {
|
|
3430
3520
|
maxBatchSize?: number | undefined;
|
|
3431
3521
|
maxBatchTimeout?: number | undefined;
|
|
3432
3522
|
maxRetires?: number | undefined;
|
|
3523
|
+
maxRetries?: number | undefined;
|
|
3524
|
+
deadLetterQueue?: string | undefined;
|
|
3525
|
+
retryDelay?: number | undefined;
|
|
3526
|
+
}>, Omit<{
|
|
3527
|
+
maxBatchSize?: number | undefined;
|
|
3528
|
+
maxBatchTimeout?: number | undefined;
|
|
3529
|
+
maxRetires?: number | undefined;
|
|
3530
|
+
maxRetries?: number | undefined;
|
|
3531
|
+
deadLetterQueue?: string | undefined;
|
|
3532
|
+
retryDelay?: number | undefined;
|
|
3533
|
+
}, "maxRetires">, {
|
|
3534
|
+
maxBatchSize?: number | undefined;
|
|
3535
|
+
maxBatchTimeout?: number | undefined;
|
|
3536
|
+
maxRetires?: number | undefined;
|
|
3537
|
+
maxRetries?: number | undefined;
|
|
3433
3538
|
deadLetterQueue?: string | undefined;
|
|
3434
3539
|
retryDelay?: number | undefined;
|
|
3435
3540
|
}>, z.ZodObject<{
|
|
@@ -3579,22 +3684,39 @@ export declare const QueuesOptionsSchema: z.ZodObject<{
|
|
|
3579
3684
|
queueName: string;
|
|
3580
3685
|
deliveryDelay?: number | undefined;
|
|
3581
3686
|
}>>, z.ZodArray<z.ZodString, "many">, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
3582
|
-
queueConsumers: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3687
|
+
queueConsumers: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
3583
3688
|
maxBatchSize: z.ZodOptional<z.ZodNumber>;
|
|
3584
3689
|
maxBatchTimeout: z.ZodOptional<z.ZodNumber>;
|
|
3585
3690
|
maxRetires: z.ZodOptional<z.ZodNumber>;
|
|
3691
|
+
maxRetries: z.ZodOptional<z.ZodNumber>;
|
|
3586
3692
|
deadLetterQueue: z.ZodOptional<z.ZodString>;
|
|
3587
3693
|
retryDelay: z.ZodOptional<z.ZodNumber>;
|
|
3588
3694
|
}, "strip", z.ZodTypeAny, {
|
|
3589
3695
|
maxBatchSize?: number | undefined;
|
|
3590
3696
|
maxBatchTimeout?: number | undefined;
|
|
3591
3697
|
maxRetires?: number | undefined;
|
|
3698
|
+
maxRetries?: number | undefined;
|
|
3592
3699
|
deadLetterQueue?: string | undefined;
|
|
3593
3700
|
retryDelay?: number | undefined;
|
|
3594
3701
|
}, {
|
|
3595
3702
|
maxBatchSize?: number | undefined;
|
|
3596
3703
|
maxBatchTimeout?: number | undefined;
|
|
3597
3704
|
maxRetires?: number | undefined;
|
|
3705
|
+
maxRetries?: number | undefined;
|
|
3706
|
+
deadLetterQueue?: string | undefined;
|
|
3707
|
+
retryDelay?: number | undefined;
|
|
3708
|
+
}>, Omit<{
|
|
3709
|
+
maxBatchSize?: number | undefined;
|
|
3710
|
+
maxBatchTimeout?: number | undefined;
|
|
3711
|
+
maxRetires?: number | undefined;
|
|
3712
|
+
maxRetries?: number | undefined;
|
|
3713
|
+
deadLetterQueue?: string | undefined;
|
|
3714
|
+
retryDelay?: number | undefined;
|
|
3715
|
+
}, "maxRetires">, {
|
|
3716
|
+
maxBatchSize?: number | undefined;
|
|
3717
|
+
maxBatchTimeout?: number | undefined;
|
|
3718
|
+
maxRetires?: number | undefined;
|
|
3719
|
+
maxRetries?: number | undefined;
|
|
3598
3720
|
deadLetterQueue?: string | undefined;
|
|
3599
3721
|
retryDelay?: number | undefined;
|
|
3600
3722
|
}>>, z.ZodArray<z.ZodString, "many">]>>;
|
|
@@ -3603,13 +3725,14 @@ export declare const QueuesOptionsSchema: z.ZodObject<{
|
|
|
3603
3725
|
queueName: string;
|
|
3604
3726
|
deliveryDelay?: number | undefined;
|
|
3605
3727
|
}> | undefined;
|
|
3606
|
-
queueConsumers?: string[] | Record<string, {
|
|
3728
|
+
queueConsumers?: string[] | Record<string, Omit<{
|
|
3607
3729
|
maxBatchSize?: number | undefined;
|
|
3608
3730
|
maxBatchTimeout?: number | undefined;
|
|
3609
3731
|
maxRetires?: number | undefined;
|
|
3732
|
+
maxRetries?: number | undefined;
|
|
3610
3733
|
deadLetterQueue?: string | undefined;
|
|
3611
3734
|
retryDelay?: number | undefined;
|
|
3612
|
-
}
|
|
3735
|
+
}, "maxRetires">> | undefined;
|
|
3613
3736
|
}, {
|
|
3614
3737
|
queueProducers?: string[] | Record<string, string> | Record<string, {
|
|
3615
3738
|
queueName: string;
|
|
@@ -3619,6 +3742,7 @@ export declare const QueuesOptionsSchema: z.ZodObject<{
|
|
|
3619
3742
|
maxBatchSize?: number | undefined;
|
|
3620
3743
|
maxBatchTimeout?: number | undefined;
|
|
3621
3744
|
maxRetires?: number | undefined;
|
|
3745
|
+
maxRetries?: number | undefined;
|
|
3622
3746
|
deadLetterQueue?: string | undefined;
|
|
3623
3747
|
retryDelay?: number | undefined;
|
|
3624
3748
|
}> | undefined;
|
|
@@ -3712,7 +3836,7 @@ export declare const RatelimitOptionsSchema: z.ZodObject<{
|
|
|
3712
3836
|
}> | undefined;
|
|
3713
3837
|
}>;
|
|
3714
3838
|
|
|
3715
|
-
export declare function readPrefix(stream:
|
|
3839
|
+
export declare function readPrefix(stream: ReadableStream_3<Uint8Array>, prefixLength: number): Promise<[prefix: Buffer, rest: ReadableStream_3<Uint8Array>]>;
|
|
3716
3840
|
|
|
3717
3841
|
export declare function reduceError(e: any): JsonError;
|
|
3718
3842
|
|
|
@@ -3722,17 +3846,18 @@ export declare type ReducersRevivers = Record<string, ReducerReviver>;
|
|
|
3722
3846
|
|
|
3723
3847
|
export { ReferrerPolicy }
|
|
3724
3848
|
|
|
3725
|
-
export declare type ReplaceWorkersTypes<T> = T extends
|
|
3849
|
+
export declare type ReplaceWorkersTypes<T> = T extends Request_4 ? Request_2 : T extends Response_4 ? Response_2 : T extends ReadableStream_2 ? ReadableStream_3 : Required<T> extends Required<RequestInit_4> ? RequestInit_2 : T extends Headers_3 ? Headers_2 : T extends Blob_2 ? Blob_3 : T extends AbortSignal_2 ? AbortSignal : T extends Promise<infer P> ? Promise<ReplaceWorkersTypes<P>> : T extends (...args: infer P) => infer R ? (...args: ReplaceWorkersTypes<P>) => ReplaceWorkersTypes<R> : T extends object ? {
|
|
3726
3850
|
[K in keyof T]: OverloadReplaceWorkersTypes<T[K]>;
|
|
3727
3851
|
} : T;
|
|
3728
3852
|
|
|
3729
|
-
|
|
3853
|
+
declare class Request_2<CfType extends RequestInitCfType = RequestInitCfType> extends Request_3 {
|
|
3730
3854
|
[kCf]?: CfType;
|
|
3731
|
-
constructor(input: RequestInfo, init?:
|
|
3855
|
+
constructor(input: RequestInfo, init?: RequestInit_2<CfType>);
|
|
3732
3856
|
get cf(): CfType | undefined;
|
|
3733
3857
|
/** @ts-expect-error `clone` is actually defined as a method internally */
|
|
3734
|
-
clone():
|
|
3858
|
+
clone(): Request_2<CfType>;
|
|
3735
3859
|
}
|
|
3860
|
+
export { Request_2 as Request }
|
|
3736
3861
|
|
|
3737
3862
|
export { RequestCache }
|
|
3738
3863
|
|
|
@@ -3742,11 +3867,12 @@ export { RequestDestination }
|
|
|
3742
3867
|
|
|
3743
3868
|
export { RequestDuplex }
|
|
3744
3869
|
|
|
3745
|
-
export declare type RequestInfo = RequestInfo_2 |
|
|
3870
|
+
export declare type RequestInfo = RequestInfo_2 | Request_2;
|
|
3746
3871
|
|
|
3747
|
-
|
|
3872
|
+
declare interface RequestInit_2<CfType extends RequestInitCfType = RequestInitCfType> extends RequestInit_3 {
|
|
3748
3873
|
cf?: CfType;
|
|
3749
3874
|
}
|
|
3875
|
+
export { RequestInit_2 as RequestInit }
|
|
3750
3876
|
|
|
3751
3877
|
export declare type RequestInitCfType = Partial<IncomingRequestCfProperties> | RequestInitCfProperties;
|
|
3752
3878
|
|
|
@@ -3754,22 +3880,24 @@ export { RequestMode }
|
|
|
3754
3880
|
|
|
3755
3881
|
export { RequestRedirect }
|
|
3756
3882
|
|
|
3757
|
-
|
|
3883
|
+
declare class Response_2 extends Response_3 {
|
|
3758
3884
|
readonly [kWebSocket]: WebSocket | null;
|
|
3759
|
-
static error():
|
|
3760
|
-
static redirect(url: string | URL, status: ResponseRedirectStatus):
|
|
3761
|
-
static json(data: any, init?:
|
|
3762
|
-
constructor(body?: BodyInit, init?:
|
|
3885
|
+
static error(): Response_2;
|
|
3886
|
+
static redirect(url: string | URL, status: ResponseRedirectStatus): Response_2;
|
|
3887
|
+
static json(data: any, init?: ResponseInit_2): Response_2;
|
|
3888
|
+
constructor(body?: BodyInit, init?: ResponseInit_2);
|
|
3763
3889
|
/** @ts-expect-error `status` is actually defined as a getter internally */
|
|
3764
3890
|
get status(): number;
|
|
3765
3891
|
get webSocket(): WebSocket | null;
|
|
3766
3892
|
/** @ts-expect-error `clone` is actually defined as a method internally */
|
|
3767
|
-
clone():
|
|
3893
|
+
clone(): Response_2;
|
|
3768
3894
|
}
|
|
3895
|
+
export { Response_2 as Response }
|
|
3769
3896
|
|
|
3770
|
-
|
|
3897
|
+
declare interface ResponseInit_2 extends ResponseInit_3 {
|
|
3771
3898
|
webSocket?: WebSocket | null;
|
|
3772
3899
|
}
|
|
3900
|
+
export { ResponseInit_2 as ResponseInit }
|
|
3773
3901
|
|
|
3774
3902
|
export { ResponseRedirectStatus }
|
|
3775
3903
|
|
|
@@ -3852,7 +3980,7 @@ export declare const SharedHeaders: {
|
|
|
3852
3980
|
readonly LOG_LEVEL: "MF-Log-Level";
|
|
3853
3981
|
};
|
|
3854
3982
|
|
|
3855
|
-
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>;
|
|
3983
|
+
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>;
|
|
3856
3984
|
|
|
3857
3985
|
export declare const SiteBindings: {
|
|
3858
3986
|
readonly KV_NAMESPACE_SITE: "__STATIC_CONTENT";
|
|
@@ -4089,7 +4217,7 @@ export declare class WebSocket extends TypedEventTarget<WebSocketEventMap> {
|
|
|
4089
4217
|
}
|
|
4090
4218
|
|
|
4091
4219
|
export declare type WebSocketEventMap = {
|
|
4092
|
-
message:
|
|
4220
|
+
message: MessageEvent_2;
|
|
4093
4221
|
close: CloseEvent;
|
|
4094
4222
|
error: ErrorEvent;
|
|
4095
4223
|
};
|
|
@@ -4299,7 +4427,7 @@ export declare type Worker_Module = {
|
|
|
4299
4427
|
pythonRequirement?: string;
|
|
4300
4428
|
});
|
|
4301
4429
|
|
|
4302
|
-
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>;
|
|
4430
|
+
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>;
|
|
4303
4431
|
|
|
4304
4432
|
export declare interface WorkerRoute {
|
|
4305
4433
|
target: string;
|
|
@@ -4312,6 +4440,48 @@ export declare interface WorkerRoute {
|
|
|
4312
4440
|
allowPathSuffix: boolean;
|
|
4313
4441
|
}
|
|
4314
4442
|
|
|
4443
|
+
export declare const WORKFLOWS_PLUGIN: Plugin<typeof WorkflowsOptionsSchema, typeof WorkflowsSharedOptionsSchema>;
|
|
4444
|
+
|
|
4445
|
+
export declare const WORKFLOWS_PLUGIN_NAME = "workflows";
|
|
4446
|
+
|
|
4447
|
+
export declare const WORKFLOWS_STORAGE_SERVICE_NAME = "workflows:storage";
|
|
4448
|
+
|
|
4449
|
+
export declare const WorkflowsOptionsSchema: z.ZodObject<{
|
|
4450
|
+
workflows: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4451
|
+
name: z.ZodString;
|
|
4452
|
+
className: z.ZodString;
|
|
4453
|
+
scriptName: z.ZodOptional<z.ZodString>;
|
|
4454
|
+
}, "strip", z.ZodTypeAny, {
|
|
4455
|
+
name: string;
|
|
4456
|
+
className: string;
|
|
4457
|
+
scriptName?: string | undefined;
|
|
4458
|
+
}, {
|
|
4459
|
+
name: string;
|
|
4460
|
+
className: string;
|
|
4461
|
+
scriptName?: string | undefined;
|
|
4462
|
+
}>>>;
|
|
4463
|
+
}, "strip", z.ZodTypeAny, {
|
|
4464
|
+
workflows?: Record<string, {
|
|
4465
|
+
name: string;
|
|
4466
|
+
className: string;
|
|
4467
|
+
scriptName?: string | undefined;
|
|
4468
|
+
}> | undefined;
|
|
4469
|
+
}, {
|
|
4470
|
+
workflows?: Record<string, {
|
|
4471
|
+
name: string;
|
|
4472
|
+
className: string;
|
|
4473
|
+
scriptName?: string | undefined;
|
|
4474
|
+
}> | undefined;
|
|
4475
|
+
}>;
|
|
4476
|
+
|
|
4477
|
+
export declare const WorkflowsSharedOptionsSchema: z.ZodObject<{
|
|
4478
|
+
workflowsPersist: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
|
|
4479
|
+
}, "strip", z.ZodTypeAny, {
|
|
4480
|
+
workflowsPersist?: string | boolean | undefined;
|
|
4481
|
+
}, {
|
|
4482
|
+
workflowsPersist?: string | boolean | undefined;
|
|
4483
|
+
}>;
|
|
4484
|
+
|
|
4315
4485
|
export declare type WrappedBindingNames = Set<string>;
|
|
4316
4486
|
|
|
4317
4487
|
export declare function zAwaitable<T extends z.ZodTypeAny>(type: T): z.ZodUnion<[T, z.ZodPromise<T>]>;
|