miniflare 0.0.0-e5037b92a → 0.0.0-e5ebdb143
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 +280 -84
- package/dist/src/index.js +319 -168
- package/dist/src/index.js.map +3 -3
- package/dist/src/workers/assets/assets.worker.js +183 -21
- package/dist/src/workers/assets/assets.worker.js.map +2 -2
- package/dist/src/workers/assets/router.worker.js +33 -20
- package/dist/src/workers/assets/router.worker.js.map +2 -2
- package/dist/src/workers/cache/cache.worker.js +6 -5
- package/dist/src/workers/cache/cache.worker.js.map +2 -2
- package/dist/src/workers/core/entry.worker.js +13 -13
- package/dist/src/workers/core/entry.worker.js.map +1 -1
- package/dist/src/workers/d1/database.worker.js +1 -1
- package/dist/src/workers/d1/database.worker.js.map +1 -1
- package/dist/src/workers/queues/broker.worker.js +5 -3
- package/dist/src/workers/queues/broker.worker.js.map +1 -1
- package/dist/src/workers/workflows/binding.worker.js +1971 -0
- package/dist/src/workers/workflows/binding.worker.js.map +6 -0
- package/package.json +9 -8
package/dist/src/index.d.ts
CHANGED
|
@@ -10,9 +10,9 @@ import type { DurableObjectNamespace } from '@cloudflare/workers-types/experimen
|
|
|
10
10
|
import type { Fetcher } from '@cloudflare/workers-types/experimental';
|
|
11
11
|
import { File } from 'undici';
|
|
12
12
|
import type { File as File_2 } from '@cloudflare/workers-types/experimental';
|
|
13
|
-
import { FormData } from 'undici';
|
|
14
|
-
import { Headers } from 'undici';
|
|
15
|
-
import type { Headers as
|
|
13
|
+
import { FormData as FormData_2 } from 'undici';
|
|
14
|
+
import { Headers as Headers_2 } from 'undici';
|
|
15
|
+
import type { Headers as Headers_3 } from '@cloudflare/workers-types/experimental';
|
|
16
16
|
import { HeadersInit } from 'undici';
|
|
17
17
|
import http from 'http';
|
|
18
18
|
import { IncomingRequestCfProperties } from '@cloudflare/workers-types/experimental';
|
|
@@ -23,24 +23,24 @@ import { ParseParams } from 'zod';
|
|
|
23
23
|
import type { Queue } from '@cloudflare/workers-types/experimental';
|
|
24
24
|
import type { R2Bucket } from '@cloudflare/workers-types/experimental';
|
|
25
25
|
import { Readable } from 'stream';
|
|
26
|
-
import type { ReadableStream } from '@cloudflare/workers-types/experimental';
|
|
27
|
-
import { ReadableStream as
|
|
26
|
+
import type { ReadableStream as ReadableStream_2 } from '@cloudflare/workers-types/experimental';
|
|
27
|
+
import { ReadableStream as ReadableStream_3 } from 'stream/web';
|
|
28
28
|
import { ReferrerPolicy } from 'undici';
|
|
29
|
-
import { Request as
|
|
30
|
-
import type { Request as
|
|
29
|
+
import { Request as Request_3 } from 'undici';
|
|
30
|
+
import type { Request as Request_4 } from '@cloudflare/workers-types/experimental';
|
|
31
31
|
import { RequestCache } from 'undici';
|
|
32
32
|
import { RequestCredentials } from 'undici';
|
|
33
33
|
import { RequestDestination } from 'undici';
|
|
34
34
|
import { RequestDuplex } from 'undici';
|
|
35
35
|
import { RequestInfo as RequestInfo_2 } from 'undici';
|
|
36
|
-
import { RequestInit as
|
|
37
|
-
import type { RequestInit as
|
|
36
|
+
import { RequestInit as RequestInit_3 } from 'undici';
|
|
37
|
+
import type { RequestInit as RequestInit_4 } from '@cloudflare/workers-types/experimental';
|
|
38
38
|
import type { RequestInitCfProperties } from '@cloudflare/workers-types/experimental';
|
|
39
39
|
import { RequestMode } from 'undici';
|
|
40
40
|
import { RequestRedirect } from 'undici';
|
|
41
|
-
import { Response as
|
|
42
|
-
import type { Response as
|
|
43
|
-
import { ResponseInit as
|
|
41
|
+
import { Response as Response_3 } from 'undici';
|
|
42
|
+
import type { Response as Response_4 } from '@cloudflare/workers-types/experimental';
|
|
43
|
+
import { ResponseInit as ResponseInit_3 } from 'undici';
|
|
44
44
|
import { ResponseRedirectStatus } from 'undici';
|
|
45
45
|
import { ResponseType } from 'undici';
|
|
46
46
|
import type { ServiceWorkerGlobalScope } from '@cloudflare/workers-types/experimental';
|
|
@@ -74,20 +74,26 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
74
74
|
binding: z.ZodOptional<z.ZodString>;
|
|
75
75
|
routingConfig: z.ZodOptional<z.ZodObject<{
|
|
76
76
|
has_user_worker: z.ZodOptional<z.ZodBoolean>;
|
|
77
|
+
invoke_user_worker_ahead_of_assets: z.ZodOptional<z.ZodBoolean>;
|
|
77
78
|
}, "strip", z.ZodTypeAny, {
|
|
78
79
|
has_user_worker?: boolean;
|
|
80
|
+
invoke_user_worker_ahead_of_assets?: boolean;
|
|
79
81
|
}, {
|
|
80
82
|
has_user_worker?: boolean;
|
|
83
|
+
invoke_user_worker_ahead_of_assets?: boolean;
|
|
81
84
|
}>>;
|
|
82
85
|
assetConfig: z.ZodOptional<z.ZodObject<{
|
|
83
86
|
html_handling: z.ZodOptional<z.ZodEnum<["auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none"]>>;
|
|
84
87
|
not_found_handling: z.ZodOptional<z.ZodEnum<["single-page-application", "404-page", "none"]>>;
|
|
88
|
+
serve_directly: z.ZodOptional<z.ZodBoolean>;
|
|
85
89
|
}, "strip", z.ZodTypeAny, {
|
|
86
90
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
87
91
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
92
|
+
serve_directly?: boolean;
|
|
88
93
|
}, {
|
|
89
94
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
90
95
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
96
|
+
serve_directly?: boolean;
|
|
91
97
|
}>>;
|
|
92
98
|
}, "strip", z.ZodTypeAny, {
|
|
93
99
|
directory: string;
|
|
@@ -95,10 +101,12 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
95
101
|
binding?: string | undefined;
|
|
96
102
|
routingConfig?: {
|
|
97
103
|
has_user_worker?: boolean;
|
|
104
|
+
invoke_user_worker_ahead_of_assets?: boolean;
|
|
98
105
|
} | undefined;
|
|
99
106
|
assetConfig?: {
|
|
100
107
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
101
108
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
109
|
+
serve_directly?: boolean;
|
|
102
110
|
} | undefined;
|
|
103
111
|
}, {
|
|
104
112
|
directory: string;
|
|
@@ -106,10 +114,12 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
106
114
|
binding?: string | undefined;
|
|
107
115
|
routingConfig?: {
|
|
108
116
|
has_user_worker?: boolean;
|
|
117
|
+
invoke_user_worker_ahead_of_assets?: boolean;
|
|
109
118
|
} | undefined;
|
|
110
119
|
assetConfig?: {
|
|
111
120
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
112
121
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
122
|
+
serve_directly?: boolean;
|
|
113
123
|
} | undefined;
|
|
114
124
|
}>>;
|
|
115
125
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -119,10 +129,12 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
119
129
|
binding?: string | undefined;
|
|
120
130
|
routingConfig?: {
|
|
121
131
|
has_user_worker?: boolean;
|
|
132
|
+
invoke_user_worker_ahead_of_assets?: boolean;
|
|
122
133
|
} | undefined;
|
|
123
134
|
assetConfig?: {
|
|
124
135
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
125
136
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
137
|
+
serve_directly?: boolean;
|
|
126
138
|
} | undefined;
|
|
127
139
|
} | undefined;
|
|
128
140
|
}, {
|
|
@@ -132,10 +144,12 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
132
144
|
binding?: string | undefined;
|
|
133
145
|
routingConfig?: {
|
|
134
146
|
has_user_worker?: boolean;
|
|
147
|
+
invoke_user_worker_ahead_of_assets?: boolean;
|
|
135
148
|
} | undefined;
|
|
136
149
|
assetConfig?: {
|
|
137
150
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
138
151
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
152
|
+
serve_directly?: boolean;
|
|
139
153
|
} | undefined;
|
|
140
154
|
} | undefined;
|
|
141
155
|
}>;
|
|
@@ -512,7 +526,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
512
526
|
path: string;
|
|
513
527
|
writable?: boolean | undefined;
|
|
514
528
|
};
|
|
515
|
-
}>, z.ZodType<(request:
|
|
529
|
+
}>, z.ZodType<(request: Request_2, mf: Miniflare) => Awaitable<Response_2>, z.ZodTypeDef, (request: Request_2, mf: Miniflare) => Awaitable<Response_2>>]>>>;
|
|
516
530
|
wrappedBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
517
531
|
scriptName: z.ZodString;
|
|
518
532
|
entrypoint: z.ZodOptional<z.ZodString>;
|
|
@@ -664,7 +678,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
664
678
|
path: string;
|
|
665
679
|
writable?: boolean | undefined;
|
|
666
680
|
};
|
|
667
|
-
}>, z.ZodType<(request:
|
|
681
|
+
}>, z.ZodType<(request: Request_2, mf: Miniflare) => Awaitable<Response_2>, z.ZodTypeDef, (request: Request_2, mf: Miniflare) => Awaitable<Response_2>>]>>;
|
|
668
682
|
fetchMock: z.ZodOptional<z.ZodType<MockAgent<MockAgent.Options>, z.ZodTypeDef, MockAgent<MockAgent.Options>>>;
|
|
669
683
|
unsafeEphemeralDurableObjects: z.ZodOptional<z.ZodBoolean>;
|
|
670
684
|
unsafeDirectSockets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -725,7 +739,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
725
739
|
path: string;
|
|
726
740
|
writable?: boolean | undefined;
|
|
727
741
|
};
|
|
728
|
-
} | ((request:
|
|
742
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
|
|
729
743
|
wrappedBindings?: Record<string, string | {
|
|
730
744
|
scriptName: string;
|
|
731
745
|
entrypoint?: string | undefined;
|
|
@@ -757,7 +771,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
757
771
|
path: string;
|
|
758
772
|
writable?: boolean | undefined;
|
|
759
773
|
};
|
|
760
|
-
} | ((request:
|
|
774
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
|
|
761
775
|
fetchMock?: MockAgent<MockAgent.Options> | undefined;
|
|
762
776
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
763
777
|
unsafeDirectSockets?: {
|
|
@@ -805,7 +819,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
805
819
|
path: string;
|
|
806
820
|
writable?: boolean | undefined;
|
|
807
821
|
};
|
|
808
|
-
} | ((request:
|
|
822
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
|
|
809
823
|
wrappedBindings?: Record<string, string | {
|
|
810
824
|
scriptName: string;
|
|
811
825
|
entrypoint?: string | undefined;
|
|
@@ -837,7 +851,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
837
851
|
path: string;
|
|
838
852
|
writable?: boolean | undefined;
|
|
839
853
|
};
|
|
840
|
-
} | ((request:
|
|
854
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
|
|
841
855
|
fetchMock?: MockAgent<MockAgent.Options> | undefined;
|
|
842
856
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
843
857
|
unsafeDirectSockets?: {
|
|
@@ -892,7 +906,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
892
906
|
path: string;
|
|
893
907
|
writable?: boolean | undefined;
|
|
894
908
|
};
|
|
895
|
-
} | ((request:
|
|
909
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
|
|
896
910
|
wrappedBindings?: Record<string, string | {
|
|
897
911
|
scriptName: string;
|
|
898
912
|
entrypoint?: string | undefined;
|
|
@@ -924,7 +938,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
924
938
|
path: string;
|
|
925
939
|
writable?: boolean | undefined;
|
|
926
940
|
};
|
|
927
|
-
} | ((request:
|
|
941
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
|
|
928
942
|
fetchMock?: MockAgent<MockAgent.Options> | undefined;
|
|
929
943
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
930
944
|
unsafeDirectSockets?: {
|
|
@@ -982,7 +996,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
982
996
|
path: string;
|
|
983
997
|
writable?: boolean | undefined;
|
|
984
998
|
};
|
|
985
|
-
} | ((request:
|
|
999
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
|
|
986
1000
|
wrappedBindings?: Record<string, string | {
|
|
987
1001
|
scriptName: string;
|
|
988
1002
|
entrypoint?: string | undefined;
|
|
@@ -1014,7 +1028,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1014
1028
|
path: string;
|
|
1015
1029
|
writable?: boolean | undefined;
|
|
1016
1030
|
};
|
|
1017
|
-
} | ((request:
|
|
1031
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
|
|
1018
1032
|
fetchMock?: MockAgent<MockAgent.Options> | undefined;
|
|
1019
1033
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
1020
1034
|
unsafeDirectSockets?: {
|
|
@@ -1071,7 +1085,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1071
1085
|
path: string;
|
|
1072
1086
|
writable?: boolean | undefined;
|
|
1073
1087
|
};
|
|
1074
|
-
} | ((request:
|
|
1088
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
|
|
1075
1089
|
wrappedBindings?: Record<string, string | {
|
|
1076
1090
|
scriptName: string;
|
|
1077
1091
|
entrypoint?: string | undefined;
|
|
@@ -1103,7 +1117,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1103
1117
|
path: string;
|
|
1104
1118
|
writable?: boolean | undefined;
|
|
1105
1119
|
};
|
|
1106
|
-
} | ((request:
|
|
1120
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
|
|
1107
1121
|
fetchMock?: MockAgent<MockAgent.Options> | undefined;
|
|
1108
1122
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
1109
1123
|
unsafeDirectSockets?: {
|
|
@@ -1177,7 +1191,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1177
1191
|
path: string;
|
|
1178
1192
|
writable?: boolean | undefined;
|
|
1179
1193
|
};
|
|
1180
|
-
} | ((request:
|
|
1194
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
|
|
1181
1195
|
wrappedBindings?: Record<string, string | {
|
|
1182
1196
|
scriptName: string;
|
|
1183
1197
|
entrypoint?: string | undefined;
|
|
@@ -1209,7 +1223,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1209
1223
|
path: string;
|
|
1210
1224
|
writable?: boolean | undefined;
|
|
1211
1225
|
};
|
|
1212
|
-
} | ((request:
|
|
1226
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
|
|
1213
1227
|
fetchMock?: MockAgent<MockAgent.Options> | undefined;
|
|
1214
1228
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
1215
1229
|
unsafeDirectSockets?: {
|
|
@@ -1240,7 +1254,7 @@ export declare const CoreSharedOptionsSchema: z.ZodObject<{
|
|
|
1240
1254
|
cf: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>;
|
|
1241
1255
|
liveReload: z.ZodOptional<z.ZodBoolean>;
|
|
1242
1256
|
unsafeProxySharedSecret: z.ZodOptional<z.ZodString>;
|
|
1243
|
-
unsafeModuleFallbackService: z.ZodOptional<z.ZodType<(request:
|
|
1257
|
+
unsafeModuleFallbackService: z.ZodOptional<z.ZodType<(request: Request_2, mf: Miniflare) => Awaitable<Response_2>, z.ZodTypeDef, (request: Request_2, mf: Miniflare) => Awaitable<Response_2>>>;
|
|
1244
1258
|
unsafeStickyBlobs: z.ZodOptional<z.ZodBoolean>;
|
|
1245
1259
|
}, "strip", z.ZodTypeAny, {
|
|
1246
1260
|
rootPath?: undefined;
|
|
@@ -1259,7 +1273,7 @@ export declare const CoreSharedOptionsSchema: z.ZodObject<{
|
|
|
1259
1273
|
cf?: string | boolean | Record<string, any> | undefined;
|
|
1260
1274
|
liveReload?: boolean | undefined;
|
|
1261
1275
|
unsafeProxySharedSecret?: string | undefined;
|
|
1262
|
-
unsafeModuleFallbackService?: ((request:
|
|
1276
|
+
unsafeModuleFallbackService?: ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
|
|
1263
1277
|
unsafeStickyBlobs?: boolean | undefined;
|
|
1264
1278
|
}, {
|
|
1265
1279
|
rootPath?: string | undefined;
|
|
@@ -1278,7 +1292,7 @@ export declare const CoreSharedOptionsSchema: z.ZodObject<{
|
|
|
1278
1292
|
cf?: string | boolean | Record<string, any> | undefined;
|
|
1279
1293
|
liveReload?: boolean | undefined;
|
|
1280
1294
|
unsafeProxySharedSecret?: string | undefined;
|
|
1281
|
-
unsafeModuleFallbackService?: ((request:
|
|
1295
|
+
unsafeModuleFallbackService?: ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
|
|
1282
1296
|
unsafeStickyBlobs?: boolean | undefined;
|
|
1283
1297
|
}>;
|
|
1284
1298
|
|
|
@@ -1333,7 +1347,7 @@ export declare interface DiskDirectory {
|
|
|
1333
1347
|
writable?: boolean;
|
|
1334
1348
|
}
|
|
1335
1349
|
|
|
1336
|
-
export declare type DispatchFetch = (input: RequestInfo, init?:
|
|
1350
|
+
export declare type DispatchFetch = (input: RequestInfo, init?: RequestInit_2<Partial<IncomingRequestCfProperties>>) => Promise<Response_2>;
|
|
1337
1351
|
|
|
1338
1352
|
/**
|
|
1339
1353
|
* Dispatcher created for each `dispatchFetch()` call. Ensures request origin
|
|
@@ -1431,8 +1445,6 @@ export declare const DurableObjectsSharedOptionsSchema: z.ZodObject<{
|
|
|
1431
1445
|
|
|
1432
1446
|
export declare function encodeSitesKey(key: string): string;
|
|
1433
1447
|
|
|
1434
|
-
export declare const ENTRY_SOCKET_HTTP_OPTIONS: HttpOptions;
|
|
1435
|
-
|
|
1436
1448
|
export declare class ErrorEvent extends Event {
|
|
1437
1449
|
readonly error: Error | null;
|
|
1438
1450
|
constructor(type: "error", init?: {
|
|
@@ -1471,7 +1483,8 @@ export declare interface ExternalServer_Tcp {
|
|
|
1471
1483
|
certificateHost?: string;
|
|
1472
1484
|
}
|
|
1473
1485
|
|
|
1474
|
-
|
|
1486
|
+
declare function fetch_2(input: RequestInfo, init?: RequestInit_2 | Request_2): Promise<Response_2>;
|
|
1487
|
+
export { fetch_2 as fetch }
|
|
1475
1488
|
|
|
1476
1489
|
export { File }
|
|
1477
1490
|
|
|
@@ -1479,7 +1492,7 @@ export declare function _forceColour(enabled?: boolean): void;
|
|
|
1479
1492
|
|
|
1480
1493
|
export declare function formatZodError(error: z.ZodError, input: unknown): string;
|
|
1481
1494
|
|
|
1482
|
-
export { FormData }
|
|
1495
|
+
export { FormData_2 as FormData }
|
|
1483
1496
|
|
|
1484
1497
|
export declare function getAccessibleHosts(ipv4Only?: boolean): string[];
|
|
1485
1498
|
|
|
@@ -1543,7 +1556,7 @@ export declare interface GlobalServicesOptions {
|
|
|
1543
1556
|
|
|
1544
1557
|
export declare function globsToRegExps(globs?: string[]): MatcherRegExps;
|
|
1545
1558
|
|
|
1546
|
-
export { Headers }
|
|
1559
|
+
export { Headers_2 as Headers }
|
|
1547
1560
|
|
|
1548
1561
|
export { HeadersInit }
|
|
1549
1562
|
|
|
@@ -1749,12 +1762,13 @@ export declare function maybeParseURL(url: Persistence): URL | undefined;
|
|
|
1749
1762
|
*/
|
|
1750
1763
|
export declare function mergeWorkerOptions(a: Partial<WorkerOptions>, b: Partial<WorkerOptions>): Partial<WorkerOptions>;
|
|
1751
1764
|
|
|
1752
|
-
|
|
1765
|
+
declare class MessageEvent_2 extends Event {
|
|
1753
1766
|
readonly data: ArrayBuffer | string;
|
|
1754
1767
|
constructor(type: "message", init: {
|
|
1755
1768
|
data: ArrayBuffer | string;
|
|
1756
1769
|
});
|
|
1757
1770
|
}
|
|
1771
|
+
export { MessageEvent_2 as MessageEvent }
|
|
1758
1772
|
|
|
1759
1773
|
export declare function migrateDatabase(log: Log, uniqueKey: string, persistPath: string, namespace: string): Promise<void>;
|
|
1760
1774
|
|
|
@@ -1853,7 +1867,7 @@ export declare interface Network {
|
|
|
1853
1867
|
tlsOptions?: TlsOptions;
|
|
1854
1868
|
}
|
|
1855
1869
|
|
|
1856
|
-
export declare const NODE_PLATFORM_IMPL: PlatformImpl<
|
|
1870
|
+
export declare const NODE_PLATFORM_IMPL: PlatformImpl<ReadableStream_3>;
|
|
1857
1871
|
|
|
1858
1872
|
/**
|
|
1859
1873
|
* We can provide Node.js compatibility in a number of different modes:
|
|
@@ -1985,9 +1999,9 @@ export declare const PersistenceSchema: z.ZodOptional<z.ZodUnion<[z.ZodBoolean,
|
|
|
1985
1999
|
export declare interface PlatformImpl<RS> {
|
|
1986
2000
|
Blob: typeof Blob_2;
|
|
1987
2001
|
File: typeof File_2;
|
|
1988
|
-
Headers: typeof
|
|
1989
|
-
Request: typeof
|
|
1990
|
-
Response: typeof
|
|
2002
|
+
Headers: typeof Headers_3;
|
|
2003
|
+
Request: typeof Request_4;
|
|
2004
|
+
Response: typeof Response_4;
|
|
1991
2005
|
isReadableStream(value: unknown): value is RS;
|
|
1992
2006
|
bufferReadableStream(stream: RS): Promise<ArrayBuffer>;
|
|
1993
2007
|
unbufferReadableStream(buffer: ArrayBuffer): RS;
|
|
@@ -2260,7 +2274,7 @@ export declare const PLUGINS: {
|
|
|
2260
2274
|
path: string;
|
|
2261
2275
|
writable?: boolean | undefined;
|
|
2262
2276
|
};
|
|
2263
|
-
}>, z.ZodType<(request:
|
|
2277
|
+
}>, z.ZodType<(request: Request_2, mf: Miniflare) => Awaitable<Response_2>, z.ZodTypeDef, (request: Request_2, mf: Miniflare) => Awaitable<Response_2>>]>>>;
|
|
2264
2278
|
wrappedBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
2265
2279
|
scriptName: z.ZodString;
|
|
2266
2280
|
entrypoint: z.ZodOptional<z.ZodString>;
|
|
@@ -2412,7 +2426,7 @@ export declare const PLUGINS: {
|
|
|
2412
2426
|
path: string;
|
|
2413
2427
|
writable?: boolean | undefined;
|
|
2414
2428
|
};
|
|
2415
|
-
}>, z.ZodType<(request:
|
|
2429
|
+
}>, z.ZodType<(request: Request_2, mf: Miniflare) => Awaitable<Response_2>, z.ZodTypeDef, (request: Request_2, mf: Miniflare) => Awaitable<Response_2>>]>>;
|
|
2416
2430
|
fetchMock: z.ZodOptional<z.ZodType<MockAgent<MockAgent>, z.ZodTypeDef, MockAgent<MockAgent>>>;
|
|
2417
2431
|
unsafeEphemeralDurableObjects: z.ZodOptional<z.ZodBoolean>;
|
|
2418
2432
|
unsafeDirectSockets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2470,7 +2484,7 @@ export declare const PLUGINS: {
|
|
|
2470
2484
|
path: string;
|
|
2471
2485
|
writable?: boolean | undefined;
|
|
2472
2486
|
};
|
|
2473
|
-
} | ((request:
|
|
2487
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
|
|
2474
2488
|
wrappedBindings?: Record<string, string | {
|
|
2475
2489
|
scriptName: string;
|
|
2476
2490
|
entrypoint?: string | undefined;
|
|
@@ -2502,7 +2516,7 @@ export declare const PLUGINS: {
|
|
|
2502
2516
|
path: string;
|
|
2503
2517
|
writable?: boolean | undefined;
|
|
2504
2518
|
};
|
|
2505
|
-
} | ((request:
|
|
2519
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
|
|
2506
2520
|
fetchMock?: MockAgent<MockAgent> | undefined;
|
|
2507
2521
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
2508
2522
|
unsafeDirectSockets?: {
|
|
@@ -2550,7 +2564,7 @@ export declare const PLUGINS: {
|
|
|
2550
2564
|
path: string;
|
|
2551
2565
|
writable?: boolean | undefined;
|
|
2552
2566
|
};
|
|
2553
|
-
} | ((request:
|
|
2567
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
|
|
2554
2568
|
wrappedBindings?: Record<string, string | {
|
|
2555
2569
|
scriptName: string;
|
|
2556
2570
|
entrypoint?: string | undefined;
|
|
@@ -2582,7 +2596,7 @@ export declare const PLUGINS: {
|
|
|
2582
2596
|
path: string;
|
|
2583
2597
|
writable?: boolean | undefined;
|
|
2584
2598
|
};
|
|
2585
|
-
} | ((request:
|
|
2599
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
|
|
2586
2600
|
fetchMock?: MockAgent<MockAgent> | undefined;
|
|
2587
2601
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
2588
2602
|
unsafeDirectSockets?: {
|
|
@@ -2637,7 +2651,7 @@ export declare const PLUGINS: {
|
|
|
2637
2651
|
path: string;
|
|
2638
2652
|
writable?: boolean | undefined;
|
|
2639
2653
|
};
|
|
2640
|
-
} | ((request:
|
|
2654
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
|
|
2641
2655
|
wrappedBindings?: Record<string, string | {
|
|
2642
2656
|
scriptName: string;
|
|
2643
2657
|
entrypoint?: string | undefined;
|
|
@@ -2669,7 +2683,7 @@ export declare const PLUGINS: {
|
|
|
2669
2683
|
path: string;
|
|
2670
2684
|
writable?: boolean | undefined;
|
|
2671
2685
|
};
|
|
2672
|
-
} | ((request:
|
|
2686
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
|
|
2673
2687
|
fetchMock?: MockAgent<MockAgent> | undefined;
|
|
2674
2688
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
2675
2689
|
unsafeDirectSockets?: {
|
|
@@ -2727,7 +2741,7 @@ export declare const PLUGINS: {
|
|
|
2727
2741
|
path: string;
|
|
2728
2742
|
writable?: boolean | undefined;
|
|
2729
2743
|
};
|
|
2730
|
-
} | ((request:
|
|
2744
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
|
|
2731
2745
|
wrappedBindings?: Record<string, string | {
|
|
2732
2746
|
scriptName: string;
|
|
2733
2747
|
entrypoint?: string | undefined;
|
|
@@ -2759,7 +2773,7 @@ export declare const PLUGINS: {
|
|
|
2759
2773
|
path: string;
|
|
2760
2774
|
writable?: boolean | undefined;
|
|
2761
2775
|
};
|
|
2762
|
-
} | ((request:
|
|
2776
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
|
|
2763
2777
|
fetchMock?: MockAgent<MockAgent> | undefined;
|
|
2764
2778
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
2765
2779
|
unsafeDirectSockets?: {
|
|
@@ -2816,7 +2830,7 @@ export declare const PLUGINS: {
|
|
|
2816
2830
|
path: string;
|
|
2817
2831
|
writable?: boolean | undefined;
|
|
2818
2832
|
};
|
|
2819
|
-
} | ((request:
|
|
2833
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
|
|
2820
2834
|
wrappedBindings?: Record<string, string | {
|
|
2821
2835
|
scriptName: string;
|
|
2822
2836
|
entrypoint?: string | undefined;
|
|
@@ -2848,7 +2862,7 @@ export declare const PLUGINS: {
|
|
|
2848
2862
|
path: string;
|
|
2849
2863
|
writable?: boolean | undefined;
|
|
2850
2864
|
};
|
|
2851
|
-
} | ((request:
|
|
2865
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
|
|
2852
2866
|
fetchMock?: MockAgent<MockAgent> | undefined;
|
|
2853
2867
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
2854
2868
|
unsafeDirectSockets?: {
|
|
@@ -2922,7 +2936,7 @@ export declare const PLUGINS: {
|
|
|
2922
2936
|
path: string;
|
|
2923
2937
|
writable?: boolean | undefined;
|
|
2924
2938
|
};
|
|
2925
|
-
} | ((request:
|
|
2939
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>)> | undefined;
|
|
2926
2940
|
wrappedBindings?: Record<string, string | {
|
|
2927
2941
|
scriptName: string;
|
|
2928
2942
|
entrypoint?: string | undefined;
|
|
@@ -2954,7 +2968,7 @@ export declare const PLUGINS: {
|
|
|
2954
2968
|
path: string;
|
|
2955
2969
|
writable?: boolean | undefined;
|
|
2956
2970
|
};
|
|
2957
|
-
} | ((request:
|
|
2971
|
+
} | ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
|
|
2958
2972
|
fetchMock?: MockAgent<MockAgent> | undefined;
|
|
2959
2973
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
2960
2974
|
unsafeDirectSockets?: {
|
|
@@ -2983,7 +2997,7 @@ export declare const PLUGINS: {
|
|
|
2983
2997
|
cf: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>;
|
|
2984
2998
|
liveReload: z.ZodOptional<z.ZodBoolean>;
|
|
2985
2999
|
unsafeProxySharedSecret: z.ZodOptional<z.ZodString>;
|
|
2986
|
-
unsafeModuleFallbackService: z.ZodOptional<z.ZodType<(request:
|
|
3000
|
+
unsafeModuleFallbackService: z.ZodOptional<z.ZodType<(request: Request_2, mf: Miniflare) => Awaitable<Response_2>, z.ZodTypeDef, (request: Request_2, mf: Miniflare) => Awaitable<Response_2>>>;
|
|
2987
3001
|
unsafeStickyBlobs: z.ZodOptional<z.ZodBoolean>;
|
|
2988
3002
|
}, "strip", z.ZodTypeAny, {
|
|
2989
3003
|
rootPath?: undefined;
|
|
@@ -3002,7 +3016,7 @@ export declare const PLUGINS: {
|
|
|
3002
3016
|
cf?: string | boolean | Record<string, any> | undefined;
|
|
3003
3017
|
liveReload?: boolean | undefined;
|
|
3004
3018
|
unsafeProxySharedSecret?: string | undefined;
|
|
3005
|
-
unsafeModuleFallbackService?: ((request:
|
|
3019
|
+
unsafeModuleFallbackService?: ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
|
|
3006
3020
|
unsafeStickyBlobs?: boolean | undefined;
|
|
3007
3021
|
}, {
|
|
3008
3022
|
rootPath?: string | undefined;
|
|
@@ -3021,7 +3035,7 @@ export declare const PLUGINS: {
|
|
|
3021
3035
|
cf?: string | boolean | Record<string, any> | undefined;
|
|
3022
3036
|
liveReload?: boolean | undefined;
|
|
3023
3037
|
unsafeProxySharedSecret?: string | undefined;
|
|
3024
|
-
unsafeModuleFallbackService?: ((request:
|
|
3038
|
+
unsafeModuleFallbackService?: ((request: Request_2, mf: Miniflare) => Awaitable<Response_2>) | undefined;
|
|
3025
3039
|
unsafeStickyBlobs?: boolean | undefined;
|
|
3026
3040
|
}>>;
|
|
3027
3041
|
cache: Plugin<z.ZodObject<{
|
|
@@ -3129,22 +3143,39 @@ export declare const PLUGINS: {
|
|
|
3129
3143
|
queueName: string;
|
|
3130
3144
|
deliveryDelay?: number | undefined;
|
|
3131
3145
|
}>>, z.ZodArray<z.ZodString, "many">, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
3132
|
-
queueConsumers: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3146
|
+
queueConsumers: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
3133
3147
|
maxBatchSize: z.ZodOptional<z.ZodNumber>;
|
|
3134
3148
|
maxBatchTimeout: z.ZodOptional<z.ZodNumber>;
|
|
3135
3149
|
maxRetires: z.ZodOptional<z.ZodNumber>;
|
|
3150
|
+
maxRetries: z.ZodOptional<z.ZodNumber>;
|
|
3136
3151
|
deadLetterQueue: z.ZodOptional<z.ZodString>;
|
|
3137
3152
|
retryDelay: z.ZodOptional<z.ZodNumber>;
|
|
3138
3153
|
}, "strip", z.ZodTypeAny, {
|
|
3139
3154
|
maxBatchSize?: number | undefined;
|
|
3140
3155
|
maxBatchTimeout?: number | undefined;
|
|
3141
3156
|
maxRetires?: number | undefined;
|
|
3157
|
+
maxRetries?: number | undefined;
|
|
3142
3158
|
deadLetterQueue?: string | undefined;
|
|
3143
3159
|
retryDelay?: number | undefined;
|
|
3144
3160
|
}, {
|
|
3145
3161
|
maxBatchSize?: number | undefined;
|
|
3146
3162
|
maxBatchTimeout?: number | undefined;
|
|
3147
3163
|
maxRetires?: number | undefined;
|
|
3164
|
+
maxRetries?: number | undefined;
|
|
3165
|
+
deadLetterQueue?: string | undefined;
|
|
3166
|
+
retryDelay?: number | undefined;
|
|
3167
|
+
}>, Omit<{
|
|
3168
|
+
maxBatchSize?: number | undefined;
|
|
3169
|
+
maxBatchTimeout?: number | undefined;
|
|
3170
|
+
maxRetires?: number | undefined;
|
|
3171
|
+
maxRetries?: number | undefined;
|
|
3172
|
+
deadLetterQueue?: string | undefined;
|
|
3173
|
+
retryDelay?: number | undefined;
|
|
3174
|
+
}, "maxRetires">, {
|
|
3175
|
+
maxBatchSize?: number | undefined;
|
|
3176
|
+
maxBatchTimeout?: number | undefined;
|
|
3177
|
+
maxRetires?: number | undefined;
|
|
3178
|
+
maxRetries?: number | undefined;
|
|
3148
3179
|
deadLetterQueue?: string | undefined;
|
|
3149
3180
|
retryDelay?: number | undefined;
|
|
3150
3181
|
}>>, z.ZodArray<z.ZodString, "many">]>>;
|
|
@@ -3153,13 +3184,14 @@ export declare const PLUGINS: {
|
|
|
3153
3184
|
queueName: string;
|
|
3154
3185
|
deliveryDelay?: number | undefined;
|
|
3155
3186
|
}> | undefined;
|
|
3156
|
-
queueConsumers?: string[] | Record<string, {
|
|
3187
|
+
queueConsumers?: string[] | Record<string, Omit<{
|
|
3157
3188
|
maxBatchSize?: number | undefined;
|
|
3158
3189
|
maxBatchTimeout?: number | undefined;
|
|
3159
3190
|
maxRetires?: number | undefined;
|
|
3191
|
+
maxRetries?: number | undefined;
|
|
3160
3192
|
deadLetterQueue?: string | undefined;
|
|
3161
3193
|
retryDelay?: number | undefined;
|
|
3162
|
-
}
|
|
3194
|
+
}, "maxRetires">> | undefined;
|
|
3163
3195
|
}, {
|
|
3164
3196
|
queueProducers?: string[] | Record<string, string> | Record<string, {
|
|
3165
3197
|
queueName: string;
|
|
@@ -3169,6 +3201,7 @@ export declare const PLUGINS: {
|
|
|
3169
3201
|
maxBatchSize?: number | undefined;
|
|
3170
3202
|
maxBatchTimeout?: number | undefined;
|
|
3171
3203
|
maxRetires?: number | undefined;
|
|
3204
|
+
maxRetries?: number | undefined;
|
|
3172
3205
|
deadLetterQueue?: string | undefined;
|
|
3173
3206
|
retryDelay?: number | undefined;
|
|
3174
3207
|
}> | undefined;
|
|
@@ -3238,20 +3271,26 @@ export declare const PLUGINS: {
|
|
|
3238
3271
|
binding: z.ZodOptional<z.ZodString>;
|
|
3239
3272
|
routingConfig: z.ZodOptional<z.ZodObject<{
|
|
3240
3273
|
has_user_worker: z.ZodOptional<z.ZodBoolean>;
|
|
3274
|
+
invoke_user_worker_ahead_of_assets: z.ZodOptional<z.ZodBoolean>;
|
|
3241
3275
|
}, "strip", z.ZodTypeAny, {
|
|
3242
3276
|
has_user_worker?: boolean;
|
|
3277
|
+
invoke_user_worker_ahead_of_assets?: boolean;
|
|
3243
3278
|
}, {
|
|
3244
3279
|
has_user_worker?: boolean;
|
|
3280
|
+
invoke_user_worker_ahead_of_assets?: boolean;
|
|
3245
3281
|
}>>;
|
|
3246
3282
|
assetConfig: z.ZodOptional<z.ZodObject<{
|
|
3247
3283
|
html_handling: z.ZodOptional<z.ZodEnum<["auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none"]>>;
|
|
3248
3284
|
not_found_handling: z.ZodOptional<z.ZodEnum<["single-page-application", "404-page", "none"]>>;
|
|
3285
|
+
serve_directly: z.ZodOptional<z.ZodBoolean>;
|
|
3249
3286
|
}, "strip", z.ZodTypeAny, {
|
|
3250
3287
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
3251
3288
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
3289
|
+
serve_directly?: boolean;
|
|
3252
3290
|
}, {
|
|
3253
3291
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
3254
3292
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
3293
|
+
serve_directly?: boolean;
|
|
3255
3294
|
}>>;
|
|
3256
3295
|
}, "strip", z.ZodTypeAny, {
|
|
3257
3296
|
directory: string;
|
|
@@ -3259,10 +3298,12 @@ export declare const PLUGINS: {
|
|
|
3259
3298
|
binding?: string | undefined;
|
|
3260
3299
|
routingConfig?: {
|
|
3261
3300
|
has_user_worker?: boolean;
|
|
3301
|
+
invoke_user_worker_ahead_of_assets?: boolean;
|
|
3262
3302
|
} | undefined;
|
|
3263
3303
|
assetConfig?: {
|
|
3264
3304
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
3265
3305
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
3306
|
+
serve_directly?: boolean;
|
|
3266
3307
|
} | undefined;
|
|
3267
3308
|
}, {
|
|
3268
3309
|
directory: string;
|
|
@@ -3270,10 +3311,12 @@ export declare const PLUGINS: {
|
|
|
3270
3311
|
binding?: string | undefined;
|
|
3271
3312
|
routingConfig?: {
|
|
3272
3313
|
has_user_worker?: boolean;
|
|
3314
|
+
invoke_user_worker_ahead_of_assets?: boolean;
|
|
3273
3315
|
} | undefined;
|
|
3274
3316
|
assetConfig?: {
|
|
3275
3317
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
3276
3318
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
3319
|
+
serve_directly?: boolean;
|
|
3277
3320
|
} | undefined;
|
|
3278
3321
|
}>>;
|
|
3279
3322
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3283,10 +3326,12 @@ export declare const PLUGINS: {
|
|
|
3283
3326
|
binding?: string | undefined;
|
|
3284
3327
|
routingConfig?: {
|
|
3285
3328
|
has_user_worker?: boolean;
|
|
3329
|
+
invoke_user_worker_ahead_of_assets?: boolean;
|
|
3286
3330
|
} | undefined;
|
|
3287
3331
|
assetConfig?: {
|
|
3288
3332
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
3289
3333
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
3334
|
+
serve_directly?: boolean;
|
|
3290
3335
|
} | undefined;
|
|
3291
3336
|
} | undefined;
|
|
3292
3337
|
}, {
|
|
@@ -3296,13 +3341,48 @@ export declare const PLUGINS: {
|
|
|
3296
3341
|
binding?: string | undefined;
|
|
3297
3342
|
routingConfig?: {
|
|
3298
3343
|
has_user_worker?: boolean;
|
|
3344
|
+
invoke_user_worker_ahead_of_assets?: boolean;
|
|
3299
3345
|
} | undefined;
|
|
3300
3346
|
assetConfig?: {
|
|
3301
3347
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
3302
3348
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
3349
|
+
serve_directly?: boolean;
|
|
3303
3350
|
} | undefined;
|
|
3304
3351
|
} | undefined;
|
|
3305
3352
|
}>>;
|
|
3353
|
+
workflows: Plugin<z.ZodObject<{
|
|
3354
|
+
workflows: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3355
|
+
name: z.ZodString;
|
|
3356
|
+
className: z.ZodString;
|
|
3357
|
+
scriptName: z.ZodOptional<z.ZodString>;
|
|
3358
|
+
}, "strip", z.ZodTypeAny, {
|
|
3359
|
+
name: string;
|
|
3360
|
+
className: string;
|
|
3361
|
+
scriptName?: string | undefined;
|
|
3362
|
+
}, {
|
|
3363
|
+
name: string;
|
|
3364
|
+
className: string;
|
|
3365
|
+
scriptName?: string | undefined;
|
|
3366
|
+
}>>>;
|
|
3367
|
+
}, "strip", z.ZodTypeAny, {
|
|
3368
|
+
workflows?: Record<string, {
|
|
3369
|
+
name: string;
|
|
3370
|
+
className: string;
|
|
3371
|
+
scriptName?: string | undefined;
|
|
3372
|
+
}> | undefined;
|
|
3373
|
+
}, {
|
|
3374
|
+
workflows?: Record<string, {
|
|
3375
|
+
name: string;
|
|
3376
|
+
className: string;
|
|
3377
|
+
scriptName?: string | undefined;
|
|
3378
|
+
}> | undefined;
|
|
3379
|
+
}>, z.ZodObject<{
|
|
3380
|
+
workflowsPersist: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
|
|
3381
|
+
}, "strip", z.ZodTypeAny, {
|
|
3382
|
+
workflowsPersist?: string | boolean | undefined;
|
|
3383
|
+
}, {
|
|
3384
|
+
workflowsPersist?: string | boolean | undefined;
|
|
3385
|
+
}>>;
|
|
3306
3386
|
};
|
|
3307
3387
|
|
|
3308
3388
|
export declare type Plugins = typeof PLUGINS;
|
|
@@ -3327,7 +3407,7 @@ export declare interface PluginServicesOptions<Options extends z.ZodType, Shared
|
|
|
3327
3407
|
|
|
3328
3408
|
export declare function prefixError(prefix: string, e: any): Error;
|
|
3329
3409
|
|
|
3330
|
-
export declare function prefixStream(prefix: Uint8Array, stream:
|
|
3410
|
+
export declare function prefixStream(prefix: Uint8Array, stream: ReadableStream_3<Uint8Array>): ReadableStream_3<Uint8Array>;
|
|
3331
3411
|
|
|
3332
3412
|
export declare const ProxyAddresses: {
|
|
3333
3413
|
readonly GLOBAL: 0;
|
|
@@ -3366,44 +3446,78 @@ export declare const QueueBindings: {
|
|
|
3366
3446
|
|
|
3367
3447
|
export declare type QueueConsumer = z.infer<typeof QueueConsumerSchema>;
|
|
3368
3448
|
|
|
3369
|
-
export declare const QueueConsumerOptionsSchema: z.ZodObject<{
|
|
3449
|
+
export declare const QueueConsumerOptionsSchema: z.ZodEffects<z.ZodObject<{
|
|
3370
3450
|
maxBatchSize: z.ZodOptional<z.ZodNumber>;
|
|
3371
3451
|
maxBatchTimeout: z.ZodOptional<z.ZodNumber>;
|
|
3372
3452
|
maxRetires: z.ZodOptional<z.ZodNumber>;
|
|
3453
|
+
maxRetries: z.ZodOptional<z.ZodNumber>;
|
|
3373
3454
|
deadLetterQueue: z.ZodOptional<z.ZodString>;
|
|
3374
3455
|
retryDelay: z.ZodOptional<z.ZodNumber>;
|
|
3375
3456
|
}, "strip", z.ZodTypeAny, {
|
|
3376
3457
|
maxBatchSize?: number | undefined;
|
|
3377
3458
|
maxBatchTimeout?: number | undefined;
|
|
3378
3459
|
maxRetires?: number | undefined;
|
|
3460
|
+
maxRetries?: number | undefined;
|
|
3379
3461
|
deadLetterQueue?: string | undefined;
|
|
3380
3462
|
retryDelay?: number | undefined;
|
|
3381
3463
|
}, {
|
|
3382
3464
|
maxBatchSize?: number | undefined;
|
|
3383
3465
|
maxBatchTimeout?: number | undefined;
|
|
3384
3466
|
maxRetires?: number | undefined;
|
|
3467
|
+
maxRetries?: number | undefined;
|
|
3468
|
+
deadLetterQueue?: string | undefined;
|
|
3469
|
+
retryDelay?: number | undefined;
|
|
3470
|
+
}>, Omit<{
|
|
3471
|
+
maxBatchSize?: number | undefined;
|
|
3472
|
+
maxBatchTimeout?: number | undefined;
|
|
3473
|
+
maxRetires?: number | undefined;
|
|
3474
|
+
maxRetries?: number | undefined;
|
|
3475
|
+
deadLetterQueue?: string | undefined;
|
|
3476
|
+
retryDelay?: number | undefined;
|
|
3477
|
+
}, "maxRetires">, {
|
|
3478
|
+
maxBatchSize?: number | undefined;
|
|
3479
|
+
maxBatchTimeout?: number | undefined;
|
|
3480
|
+
maxRetires?: number | undefined;
|
|
3481
|
+
maxRetries?: number | undefined;
|
|
3385
3482
|
deadLetterQueue?: string | undefined;
|
|
3386
3483
|
retryDelay?: number | undefined;
|
|
3387
3484
|
}>;
|
|
3388
3485
|
|
|
3389
3486
|
export declare type QueueConsumers = Map<string, z.infer<typeof QueueConsumerSchema>>;
|
|
3390
3487
|
|
|
3391
|
-
export declare const QueueConsumerSchema: z.ZodIntersection<z.ZodObject<{
|
|
3488
|
+
export declare const QueueConsumerSchema: z.ZodIntersection<z.ZodEffects<z.ZodObject<{
|
|
3392
3489
|
maxBatchSize: z.ZodOptional<z.ZodNumber>;
|
|
3393
3490
|
maxBatchTimeout: z.ZodOptional<z.ZodNumber>;
|
|
3394
3491
|
maxRetires: z.ZodOptional<z.ZodNumber>;
|
|
3492
|
+
maxRetries: z.ZodOptional<z.ZodNumber>;
|
|
3395
3493
|
deadLetterQueue: z.ZodOptional<z.ZodString>;
|
|
3396
3494
|
retryDelay: z.ZodOptional<z.ZodNumber>;
|
|
3397
3495
|
}, "strip", z.ZodTypeAny, {
|
|
3398
3496
|
maxBatchSize?: number | undefined;
|
|
3399
3497
|
maxBatchTimeout?: number | undefined;
|
|
3400
3498
|
maxRetires?: number | undefined;
|
|
3499
|
+
maxRetries?: number | undefined;
|
|
3401
3500
|
deadLetterQueue?: string | undefined;
|
|
3402
3501
|
retryDelay?: number | undefined;
|
|
3403
3502
|
}, {
|
|
3404
3503
|
maxBatchSize?: number | undefined;
|
|
3405
3504
|
maxBatchTimeout?: number | undefined;
|
|
3406
3505
|
maxRetires?: number | undefined;
|
|
3506
|
+
maxRetries?: number | undefined;
|
|
3507
|
+
deadLetterQueue?: string | undefined;
|
|
3508
|
+
retryDelay?: number | undefined;
|
|
3509
|
+
}>, Omit<{
|
|
3510
|
+
maxBatchSize?: number | undefined;
|
|
3511
|
+
maxBatchTimeout?: number | undefined;
|
|
3512
|
+
maxRetires?: number | undefined;
|
|
3513
|
+
maxRetries?: number | undefined;
|
|
3514
|
+
deadLetterQueue?: string | undefined;
|
|
3515
|
+
retryDelay?: number | undefined;
|
|
3516
|
+
}, "maxRetires">, {
|
|
3517
|
+
maxBatchSize?: number | undefined;
|
|
3518
|
+
maxBatchTimeout?: number | undefined;
|
|
3519
|
+
maxRetires?: number | undefined;
|
|
3520
|
+
maxRetries?: number | undefined;
|
|
3407
3521
|
deadLetterQueue?: string | undefined;
|
|
3408
3522
|
retryDelay?: number | undefined;
|
|
3409
3523
|
}>, z.ZodObject<{
|
|
@@ -3414,22 +3528,39 @@ export declare const QueueConsumerSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
3414
3528
|
workerName: string;
|
|
3415
3529
|
}>>;
|
|
3416
3530
|
|
|
3417
|
-
export declare const QueueConsumersSchema: z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodObject<{
|
|
3531
|
+
export declare const QueueConsumersSchema: z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
|
|
3418
3532
|
maxBatchSize: z.ZodOptional<z.ZodNumber>;
|
|
3419
3533
|
maxBatchTimeout: z.ZodOptional<z.ZodNumber>;
|
|
3420
3534
|
maxRetires: z.ZodOptional<z.ZodNumber>;
|
|
3535
|
+
maxRetries: z.ZodOptional<z.ZodNumber>;
|
|
3421
3536
|
deadLetterQueue: z.ZodOptional<z.ZodString>;
|
|
3422
3537
|
retryDelay: z.ZodOptional<z.ZodNumber>;
|
|
3423
3538
|
}, "strip", z.ZodTypeAny, {
|
|
3424
3539
|
maxBatchSize?: number | undefined;
|
|
3425
3540
|
maxBatchTimeout?: number | undefined;
|
|
3426
3541
|
maxRetires?: number | undefined;
|
|
3542
|
+
maxRetries?: number | undefined;
|
|
3427
3543
|
deadLetterQueue?: string | undefined;
|
|
3428
3544
|
retryDelay?: number | undefined;
|
|
3429
3545
|
}, {
|
|
3430
3546
|
maxBatchSize?: number | undefined;
|
|
3431
3547
|
maxBatchTimeout?: number | undefined;
|
|
3432
3548
|
maxRetires?: number | undefined;
|
|
3549
|
+
maxRetries?: number | undefined;
|
|
3550
|
+
deadLetterQueue?: string | undefined;
|
|
3551
|
+
retryDelay?: number | undefined;
|
|
3552
|
+
}>, Omit<{
|
|
3553
|
+
maxBatchSize?: number | undefined;
|
|
3554
|
+
maxBatchTimeout?: number | undefined;
|
|
3555
|
+
maxRetires?: number | undefined;
|
|
3556
|
+
maxRetries?: number | undefined;
|
|
3557
|
+
deadLetterQueue?: string | undefined;
|
|
3558
|
+
retryDelay?: number | undefined;
|
|
3559
|
+
}, "maxRetires">, {
|
|
3560
|
+
maxBatchSize?: number | undefined;
|
|
3561
|
+
maxBatchTimeout?: number | undefined;
|
|
3562
|
+
maxRetires?: number | undefined;
|
|
3563
|
+
maxRetries?: number | undefined;
|
|
3433
3564
|
deadLetterQueue?: string | undefined;
|
|
3434
3565
|
retryDelay?: number | undefined;
|
|
3435
3566
|
}>, z.ZodObject<{
|
|
@@ -3579,22 +3710,39 @@ export declare const QueuesOptionsSchema: z.ZodObject<{
|
|
|
3579
3710
|
queueName: string;
|
|
3580
3711
|
deliveryDelay?: number | undefined;
|
|
3581
3712
|
}>>, z.ZodArray<z.ZodString, "many">, z.ZodRecord<z.ZodString, z.ZodString>]>>;
|
|
3582
|
-
queueConsumers: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3713
|
+
queueConsumers: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
|
|
3583
3714
|
maxBatchSize: z.ZodOptional<z.ZodNumber>;
|
|
3584
3715
|
maxBatchTimeout: z.ZodOptional<z.ZodNumber>;
|
|
3585
3716
|
maxRetires: z.ZodOptional<z.ZodNumber>;
|
|
3717
|
+
maxRetries: z.ZodOptional<z.ZodNumber>;
|
|
3586
3718
|
deadLetterQueue: z.ZodOptional<z.ZodString>;
|
|
3587
3719
|
retryDelay: z.ZodOptional<z.ZodNumber>;
|
|
3588
3720
|
}, "strip", z.ZodTypeAny, {
|
|
3589
3721
|
maxBatchSize?: number | undefined;
|
|
3590
3722
|
maxBatchTimeout?: number | undefined;
|
|
3591
3723
|
maxRetires?: number | undefined;
|
|
3724
|
+
maxRetries?: number | undefined;
|
|
3592
3725
|
deadLetterQueue?: string | undefined;
|
|
3593
3726
|
retryDelay?: number | undefined;
|
|
3594
3727
|
}, {
|
|
3595
3728
|
maxBatchSize?: number | undefined;
|
|
3596
3729
|
maxBatchTimeout?: number | undefined;
|
|
3597
3730
|
maxRetires?: number | undefined;
|
|
3731
|
+
maxRetries?: number | undefined;
|
|
3732
|
+
deadLetterQueue?: string | undefined;
|
|
3733
|
+
retryDelay?: number | undefined;
|
|
3734
|
+
}>, Omit<{
|
|
3735
|
+
maxBatchSize?: number | undefined;
|
|
3736
|
+
maxBatchTimeout?: number | undefined;
|
|
3737
|
+
maxRetires?: number | undefined;
|
|
3738
|
+
maxRetries?: number | undefined;
|
|
3739
|
+
deadLetterQueue?: string | undefined;
|
|
3740
|
+
retryDelay?: number | undefined;
|
|
3741
|
+
}, "maxRetires">, {
|
|
3742
|
+
maxBatchSize?: number | undefined;
|
|
3743
|
+
maxBatchTimeout?: number | undefined;
|
|
3744
|
+
maxRetires?: number | undefined;
|
|
3745
|
+
maxRetries?: number | undefined;
|
|
3598
3746
|
deadLetterQueue?: string | undefined;
|
|
3599
3747
|
retryDelay?: number | undefined;
|
|
3600
3748
|
}>>, z.ZodArray<z.ZodString, "many">]>>;
|
|
@@ -3603,13 +3751,14 @@ export declare const QueuesOptionsSchema: z.ZodObject<{
|
|
|
3603
3751
|
queueName: string;
|
|
3604
3752
|
deliveryDelay?: number | undefined;
|
|
3605
3753
|
}> | undefined;
|
|
3606
|
-
queueConsumers?: string[] | Record<string, {
|
|
3754
|
+
queueConsumers?: string[] | Record<string, Omit<{
|
|
3607
3755
|
maxBatchSize?: number | undefined;
|
|
3608
3756
|
maxBatchTimeout?: number | undefined;
|
|
3609
3757
|
maxRetires?: number | undefined;
|
|
3758
|
+
maxRetries?: number | undefined;
|
|
3610
3759
|
deadLetterQueue?: string | undefined;
|
|
3611
3760
|
retryDelay?: number | undefined;
|
|
3612
|
-
}
|
|
3761
|
+
}, "maxRetires">> | undefined;
|
|
3613
3762
|
}, {
|
|
3614
3763
|
queueProducers?: string[] | Record<string, string> | Record<string, {
|
|
3615
3764
|
queueName: string;
|
|
@@ -3619,6 +3768,7 @@ export declare const QueuesOptionsSchema: z.ZodObject<{
|
|
|
3619
3768
|
maxBatchSize?: number | undefined;
|
|
3620
3769
|
maxBatchTimeout?: number | undefined;
|
|
3621
3770
|
maxRetires?: number | undefined;
|
|
3771
|
+
maxRetries?: number | undefined;
|
|
3622
3772
|
deadLetterQueue?: string | undefined;
|
|
3623
3773
|
retryDelay?: number | undefined;
|
|
3624
3774
|
}> | undefined;
|
|
@@ -3712,7 +3862,7 @@ export declare const RatelimitOptionsSchema: z.ZodObject<{
|
|
|
3712
3862
|
}> | undefined;
|
|
3713
3863
|
}>;
|
|
3714
3864
|
|
|
3715
|
-
export declare function readPrefix(stream:
|
|
3865
|
+
export declare function readPrefix(stream: ReadableStream_3<Uint8Array>, prefixLength: number): Promise<[prefix: Buffer, rest: ReadableStream_3<Uint8Array>]>;
|
|
3716
3866
|
|
|
3717
3867
|
export declare function reduceError(e: any): JsonError;
|
|
3718
3868
|
|
|
@@ -3722,17 +3872,18 @@ export declare type ReducersRevivers = Record<string, ReducerReviver>;
|
|
|
3722
3872
|
|
|
3723
3873
|
export { ReferrerPolicy }
|
|
3724
3874
|
|
|
3725
|
-
export declare type ReplaceWorkersTypes<T> = T extends
|
|
3875
|
+
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
3876
|
[K in keyof T]: OverloadReplaceWorkersTypes<T[K]>;
|
|
3727
3877
|
} : T;
|
|
3728
3878
|
|
|
3729
|
-
|
|
3879
|
+
declare class Request_2<CfType extends RequestInitCfType = RequestInitCfType> extends Request_3 {
|
|
3730
3880
|
[kCf]?: CfType;
|
|
3731
|
-
constructor(input: RequestInfo, init?:
|
|
3881
|
+
constructor(input: RequestInfo, init?: RequestInit_2<CfType>);
|
|
3732
3882
|
get cf(): CfType | undefined;
|
|
3733
3883
|
/** @ts-expect-error `clone` is actually defined as a method internally */
|
|
3734
|
-
clone():
|
|
3884
|
+
clone(): Request_2<CfType>;
|
|
3735
3885
|
}
|
|
3886
|
+
export { Request_2 as Request }
|
|
3736
3887
|
|
|
3737
3888
|
export { RequestCache }
|
|
3738
3889
|
|
|
@@ -3742,11 +3893,12 @@ export { RequestDestination }
|
|
|
3742
3893
|
|
|
3743
3894
|
export { RequestDuplex }
|
|
3744
3895
|
|
|
3745
|
-
export declare type RequestInfo = RequestInfo_2 |
|
|
3896
|
+
export declare type RequestInfo = RequestInfo_2 | Request_2;
|
|
3746
3897
|
|
|
3747
|
-
|
|
3898
|
+
declare interface RequestInit_2<CfType extends RequestInitCfType = RequestInitCfType> extends RequestInit_3 {
|
|
3748
3899
|
cf?: CfType;
|
|
3749
3900
|
}
|
|
3901
|
+
export { RequestInit_2 as RequestInit }
|
|
3750
3902
|
|
|
3751
3903
|
export declare type RequestInitCfType = Partial<IncomingRequestCfProperties> | RequestInitCfProperties;
|
|
3752
3904
|
|
|
@@ -3754,22 +3906,24 @@ export { RequestMode }
|
|
|
3754
3906
|
|
|
3755
3907
|
export { RequestRedirect }
|
|
3756
3908
|
|
|
3757
|
-
|
|
3909
|
+
declare class Response_2 extends Response_3 {
|
|
3758
3910
|
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?:
|
|
3911
|
+
static error(): Response_2;
|
|
3912
|
+
static redirect(url: string | URL, status: ResponseRedirectStatus): Response_2;
|
|
3913
|
+
static json(data: any, init?: ResponseInit_2): Response_2;
|
|
3914
|
+
constructor(body?: BodyInit, init?: ResponseInit_2);
|
|
3763
3915
|
/** @ts-expect-error `status` is actually defined as a getter internally */
|
|
3764
3916
|
get status(): number;
|
|
3765
3917
|
get webSocket(): WebSocket | null;
|
|
3766
3918
|
/** @ts-expect-error `clone` is actually defined as a method internally */
|
|
3767
|
-
clone():
|
|
3919
|
+
clone(): Response_2;
|
|
3768
3920
|
}
|
|
3921
|
+
export { Response_2 as Response }
|
|
3769
3922
|
|
|
3770
|
-
|
|
3923
|
+
declare interface ResponseInit_2 extends ResponseInit_3 {
|
|
3771
3924
|
webSocket?: WebSocket | null;
|
|
3772
3925
|
}
|
|
3926
|
+
export { ResponseInit_2 as ResponseInit }
|
|
3773
3927
|
|
|
3774
3928
|
export { ResponseRedirectStatus }
|
|
3775
3929
|
|
|
@@ -3852,7 +4006,7 @@ export declare const SharedHeaders: {
|
|
|
3852
4006
|
readonly LOG_LEVEL: "MF-Log-Level";
|
|
3853
4007
|
};
|
|
3854
4008
|
|
|
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>;
|
|
4009
|
+
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
4010
|
|
|
3857
4011
|
export declare const SiteBindings: {
|
|
3858
4012
|
readonly KV_NAMESPACE_SITE: "__STATIC_CONTENT";
|
|
@@ -4089,7 +4243,7 @@ export declare class WebSocket extends TypedEventTarget<WebSocketEventMap> {
|
|
|
4089
4243
|
}
|
|
4090
4244
|
|
|
4091
4245
|
export declare type WebSocketEventMap = {
|
|
4092
|
-
message:
|
|
4246
|
+
message: MessageEvent_2;
|
|
4093
4247
|
close: CloseEvent;
|
|
4094
4248
|
error: ErrorEvent;
|
|
4095
4249
|
};
|
|
@@ -4299,7 +4453,7 @@ export declare type Worker_Module = {
|
|
|
4299
4453
|
pythonRequirement?: string;
|
|
4300
4454
|
});
|
|
4301
4455
|
|
|
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>;
|
|
4456
|
+
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
4457
|
|
|
4304
4458
|
export declare interface WorkerRoute {
|
|
4305
4459
|
target: string;
|
|
@@ -4312,6 +4466,48 @@ export declare interface WorkerRoute {
|
|
|
4312
4466
|
allowPathSuffix: boolean;
|
|
4313
4467
|
}
|
|
4314
4468
|
|
|
4469
|
+
export declare const WORKFLOWS_PLUGIN: Plugin<typeof WorkflowsOptionsSchema, typeof WorkflowsSharedOptionsSchema>;
|
|
4470
|
+
|
|
4471
|
+
export declare const WORKFLOWS_PLUGIN_NAME = "workflows";
|
|
4472
|
+
|
|
4473
|
+
export declare const WORKFLOWS_STORAGE_SERVICE_NAME = "workflows:storage";
|
|
4474
|
+
|
|
4475
|
+
export declare const WorkflowsOptionsSchema: z.ZodObject<{
|
|
4476
|
+
workflows: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4477
|
+
name: z.ZodString;
|
|
4478
|
+
className: z.ZodString;
|
|
4479
|
+
scriptName: z.ZodOptional<z.ZodString>;
|
|
4480
|
+
}, "strip", z.ZodTypeAny, {
|
|
4481
|
+
name: string;
|
|
4482
|
+
className: string;
|
|
4483
|
+
scriptName?: string | undefined;
|
|
4484
|
+
}, {
|
|
4485
|
+
name: string;
|
|
4486
|
+
className: string;
|
|
4487
|
+
scriptName?: string | undefined;
|
|
4488
|
+
}>>>;
|
|
4489
|
+
}, "strip", z.ZodTypeAny, {
|
|
4490
|
+
workflows?: Record<string, {
|
|
4491
|
+
name: string;
|
|
4492
|
+
className: string;
|
|
4493
|
+
scriptName?: string | undefined;
|
|
4494
|
+
}> | undefined;
|
|
4495
|
+
}, {
|
|
4496
|
+
workflows?: Record<string, {
|
|
4497
|
+
name: string;
|
|
4498
|
+
className: string;
|
|
4499
|
+
scriptName?: string | undefined;
|
|
4500
|
+
}> | undefined;
|
|
4501
|
+
}>;
|
|
4502
|
+
|
|
4503
|
+
export declare const WorkflowsSharedOptionsSchema: z.ZodObject<{
|
|
4504
|
+
workflowsPersist: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
|
|
4505
|
+
}, "strip", z.ZodTypeAny, {
|
|
4506
|
+
workflowsPersist?: string | boolean | undefined;
|
|
4507
|
+
}, {
|
|
4508
|
+
workflowsPersist?: string | boolean | undefined;
|
|
4509
|
+
}>;
|
|
4510
|
+
|
|
4315
4511
|
export declare type WrappedBindingNames = Set<string>;
|
|
4316
4512
|
|
|
4317
4513
|
export declare function zAwaitable<T extends z.ZodTypeAny>(type: T): z.ZodUnion<[T, z.ZodPromise<T>]>;
|