miniflare 0.0.0-e8aaa3930 → 0.0.0-e981d0be5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/dist/src/index.d.ts +950 -364
- package/dist/src/index.js +10578 -5010
- package/dist/src/index.js.map +3 -3
- package/dist/src/workers/assets/assets-kv.worker.js +1 -1
- package/dist/src/workers/assets/assets-kv.worker.js.map +1 -1
- package/dist/src/workers/assets/assets.worker.js +4639 -5208
- package/dist/src/workers/assets/assets.worker.js.map +3 -3
- package/dist/src/workers/assets/router.worker.js +4654 -5503
- package/dist/src/workers/assets/router.worker.js.map +3 -3
- package/dist/src/workers/assets/rpc-proxy.worker.js +18 -0
- package/dist/src/workers/assets/rpc-proxy.worker.js.map +6 -0
- package/dist/src/workers/cache/cache-entry.worker.js.map +1 -1
- package/dist/src/workers/cache/cache.worker.js +12 -24
- package/dist/src/workers/cache/cache.worker.js.map +1 -1
- package/dist/src/workers/core/entry.worker.js +32 -59
- package/dist/src/workers/core/entry.worker.js.map +1 -1
- package/dist/src/workers/d1/database.worker.js +8 -6
- package/dist/src/workers/d1/database.worker.js.map +1 -1
- package/dist/src/workers/kv/namespace.worker.js +2 -4
- package/dist/src/workers/kv/namespace.worker.js.map +1 -1
- package/dist/src/workers/kv/sites.worker.js +3 -6
- package/dist/src/workers/kv/sites.worker.js.map +1 -1
- package/dist/src/workers/pipelines/pipeline.worker.js +11 -0
- package/dist/src/workers/pipelines/pipeline.worker.js.map +6 -0
- package/dist/src/workers/queues/broker.worker.js +12 -17
- package/dist/src/workers/queues/broker.worker.js.map +1 -1
- package/dist/src/workers/r2/bucket.worker.js +23 -46
- package/dist/src/workers/r2/bucket.worker.js.map +1 -1
- package/dist/src/workers/ratelimit/ratelimit.worker.js.map +1 -1
- package/dist/src/workers/shared/index.worker.js +28 -51
- package/dist/src/workers/shared/index.worker.js.map +1 -1
- package/dist/src/workers/shared/zod.worker.js +80 -84
- package/dist/src/workers/shared/zod.worker.js.map +1 -1
- package/dist/src/workers/workflows/binding.worker.js +141 -159
- package/dist/src/workers/workflows/binding.worker.js.map +1 -1
- package/package.json +24 -24
package/dist/src/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Abortable } from 'events';
|
|
2
2
|
import type { AbortSignal as AbortSignal_2 } from '@cloudflare/workers-types/experimental';
|
|
3
|
+
import { Awaitable as Awaitable_2 } from '..';
|
|
3
4
|
import type { Blob as Blob_2 } from '@cloudflare/workers-types/experimental';
|
|
4
5
|
import { Blob as Blob_3 } from 'buffer';
|
|
5
6
|
import { BodyInit } from 'undici';
|
|
@@ -7,6 +8,8 @@ import type { CacheStorage } from '@cloudflare/workers-types/experimental';
|
|
|
7
8
|
import { cspotcodeSourceMapSupport } from '@cspotcode/source-map-support';
|
|
8
9
|
import type { D1Database } from '@cloudflare/workers-types/experimental';
|
|
9
10
|
import type { DurableObjectNamespace } from '@cloudflare/workers-types/experimental';
|
|
11
|
+
import { ExternalServer as ExternalServer_2 } from '../..';
|
|
12
|
+
import { ExternalServer as ExternalServer_3 } from '..';
|
|
10
13
|
import type { Fetcher } from '@cloudflare/workers-types/experimental';
|
|
11
14
|
import { File } from 'undici';
|
|
12
15
|
import type { File as File_2 } from '@cloudflare/workers-types/experimental';
|
|
@@ -16,18 +19,28 @@ import type { Headers as Headers_3 } from '@cloudflare/workers-types/experimenta
|
|
|
16
19
|
import { HeadersInit } from 'undici';
|
|
17
20
|
import http from 'http';
|
|
18
21
|
import { IncomingRequestCfProperties } from '@cloudflare/workers-types/experimental';
|
|
22
|
+
import { Json as Json_2 } from '..';
|
|
23
|
+
import { kCurrentWorker as kCurrentWorker_2 } from '..';
|
|
24
|
+
import { kUnsafeEphemeralUniqueKey as kUnsafeEphemeralUniqueKey_2 } from './shared';
|
|
19
25
|
import type { KVNamespace } from '@cloudflare/workers-types/experimental';
|
|
26
|
+
import { Log as Log_2 } from '..';
|
|
27
|
+
import { Miniflare as Miniflare_2 } from '../..';
|
|
28
|
+
import { Miniflare as Miniflare_3 } from '..';
|
|
20
29
|
import { MockAgent } from 'undici';
|
|
21
30
|
import NodeWebSocket from 'ws';
|
|
22
31
|
import { ParseParams } from 'zod';
|
|
32
|
+
import { PeriodType as PeriodType_2 } from './ratelimit';
|
|
33
|
+
import { Plugin as Plugin_2 } from './shared';
|
|
23
34
|
import type { Queue } from '@cloudflare/workers-types/experimental';
|
|
24
35
|
import type { R2Bucket } from '@cloudflare/workers-types/experimental';
|
|
25
36
|
import { Readable } from 'stream';
|
|
26
37
|
import type { ReadableStream as ReadableStream_2 } from '@cloudflare/workers-types/experimental';
|
|
27
38
|
import { ReadableStream as ReadableStream_3 } from 'stream/web';
|
|
28
39
|
import { ReferrerPolicy } from 'undici';
|
|
29
|
-
import { Request as Request_3 } from '
|
|
30
|
-
import
|
|
40
|
+
import { Request as Request_3 } from '../..';
|
|
41
|
+
import { Request as Request_4 } from 'undici';
|
|
42
|
+
import type { Request as Request_5 } from '@cloudflare/workers-types/experimental';
|
|
43
|
+
import { Request as Request_6 } from '..';
|
|
31
44
|
import { RequestCache } from 'undici';
|
|
32
45
|
import { RequestCredentials } from 'undici';
|
|
33
46
|
import { RequestDestination } from 'undici';
|
|
@@ -38,8 +51,10 @@ import type { RequestInit as RequestInit_4 } from '@cloudflare/workers-types/exp
|
|
|
38
51
|
import type { RequestInitCfProperties } from '@cloudflare/workers-types/experimental';
|
|
39
52
|
import { RequestMode } from 'undici';
|
|
40
53
|
import { RequestRedirect } from 'undici';
|
|
41
|
-
import { Response as Response_3 } from '
|
|
42
|
-
import
|
|
54
|
+
import { Response as Response_3 } from '../..';
|
|
55
|
+
import { Response as Response_4 } from 'undici';
|
|
56
|
+
import type { Response as Response_5 } from '@cloudflare/workers-types/experimental';
|
|
57
|
+
import { Response as Response_6 } from '..';
|
|
43
58
|
import { ResponseInit as ResponseInit_3 } from 'undici';
|
|
44
59
|
import { ResponseRedirectStatus } from 'undici';
|
|
45
60
|
import { ResponseType } from 'undici';
|
|
@@ -61,7 +76,7 @@ export declare type AnyHeaders = http.IncomingHttpHeaders | string[];
|
|
|
61
76
|
export declare type AssetReverseMap = {
|
|
62
77
|
[pathHash: string]: {
|
|
63
78
|
filePath: string;
|
|
64
|
-
contentType: string;
|
|
79
|
+
contentType: string | null;
|
|
65
80
|
};
|
|
66
81
|
};
|
|
67
82
|
|
|
@@ -72,86 +87,302 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
72
87
|
workerName: z.ZodOptional<z.ZodString>;
|
|
73
88
|
directory: z.ZodEffects<z.ZodString, string, string>;
|
|
74
89
|
binding: z.ZodOptional<z.ZodString>;
|
|
75
|
-
|
|
76
|
-
|
|
90
|
+
routerConfig: z.ZodOptional<z.ZodObject<{
|
|
91
|
+
account_id: z.ZodOptional<z.ZodNumber>;
|
|
92
|
+
script_id: z.ZodOptional<z.ZodNumber>;
|
|
77
93
|
invoke_user_worker_ahead_of_assets: z.ZodOptional<z.ZodBoolean>;
|
|
94
|
+
has_user_worker: z.ZodOptional<z.ZodBoolean>;
|
|
78
95
|
}, "strip", z.ZodTypeAny, {
|
|
79
|
-
|
|
96
|
+
account_id?: number;
|
|
97
|
+
script_id?: number;
|
|
80
98
|
invoke_user_worker_ahead_of_assets?: boolean;
|
|
81
|
-
}, {
|
|
82
99
|
has_user_worker?: boolean;
|
|
100
|
+
}, {
|
|
101
|
+
account_id?: number;
|
|
102
|
+
script_id?: number;
|
|
83
103
|
invoke_user_worker_ahead_of_assets?: boolean;
|
|
104
|
+
has_user_worker?: boolean;
|
|
84
105
|
}>>;
|
|
85
|
-
assetConfig: z.ZodOptional<z.ZodObject<{
|
|
106
|
+
assetConfig: z.ZodOptional<z.ZodObject<Omit<{
|
|
107
|
+
account_id: z.ZodOptional<z.ZodNumber>;
|
|
108
|
+
script_id: z.ZodOptional<z.ZodNumber>;
|
|
109
|
+
compatibility_date: z.ZodOptional<z.ZodString>;
|
|
110
|
+
compatibility_flags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
86
111
|
html_handling: z.ZodOptional<z.ZodEnum<["auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none"]>>;
|
|
87
112
|
not_found_handling: z.ZodOptional<z.ZodEnum<["single-page-application", "404-page", "none"]>>;
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
113
|
+
redirects: z.ZodOptional<z.ZodObject<{
|
|
114
|
+
version: z.ZodLiteral<1>;
|
|
115
|
+
staticRules: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
116
|
+
status: z.ZodNumber;
|
|
117
|
+
to: z.ZodString;
|
|
118
|
+
lineNumber: z.ZodNumber;
|
|
119
|
+
}, "strip", z.ZodTypeAny, {
|
|
120
|
+
status?: number;
|
|
121
|
+
to?: string;
|
|
122
|
+
lineNumber?: number;
|
|
123
|
+
}, {
|
|
124
|
+
status?: number;
|
|
125
|
+
to?: string;
|
|
126
|
+
lineNumber?: number;
|
|
127
|
+
}>>;
|
|
128
|
+
rules: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
129
|
+
status: z.ZodNumber;
|
|
130
|
+
to: z.ZodString;
|
|
131
|
+
}, "strip", z.ZodTypeAny, {
|
|
132
|
+
status?: number;
|
|
133
|
+
to?: string;
|
|
134
|
+
}, {
|
|
135
|
+
status?: number;
|
|
136
|
+
to?: string;
|
|
137
|
+
}>>;
|
|
138
|
+
}, "strip", z.ZodTypeAny, {
|
|
139
|
+
version?: 1;
|
|
140
|
+
staticRules?: Record<string, {
|
|
141
|
+
status?: number;
|
|
142
|
+
to?: string;
|
|
143
|
+
lineNumber?: number;
|
|
144
|
+
}>;
|
|
145
|
+
rules?: Record<string, {
|
|
146
|
+
status?: number;
|
|
147
|
+
to?: string;
|
|
148
|
+
}>;
|
|
149
|
+
}, {
|
|
150
|
+
version?: 1;
|
|
151
|
+
staticRules?: Record<string, {
|
|
152
|
+
status?: number;
|
|
153
|
+
to?: string;
|
|
154
|
+
lineNumber?: number;
|
|
155
|
+
}>;
|
|
156
|
+
rules?: Record<string, {
|
|
157
|
+
status?: number;
|
|
158
|
+
to?: string;
|
|
159
|
+
}>;
|
|
160
|
+
}>>;
|
|
161
|
+
headers: z.ZodOptional<z.ZodObject<{
|
|
162
|
+
version: z.ZodLiteral<2>;
|
|
163
|
+
rules: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
164
|
+
set: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
165
|
+
unset: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
166
|
+
}, "strip", z.ZodTypeAny, {
|
|
167
|
+
set?: Record<string, string>;
|
|
168
|
+
unset?: string[];
|
|
169
|
+
}, {
|
|
170
|
+
set?: Record<string, string>;
|
|
171
|
+
unset?: string[];
|
|
172
|
+
}>>;
|
|
173
|
+
}, "strip", z.ZodTypeAny, {
|
|
174
|
+
version?: 2;
|
|
175
|
+
rules?: Record<string, {
|
|
176
|
+
set?: Record<string, string>;
|
|
177
|
+
unset?: string[];
|
|
178
|
+
}>;
|
|
179
|
+
}, {
|
|
180
|
+
version?: 2;
|
|
181
|
+
rules?: Record<string, {
|
|
182
|
+
set?: Record<string, string>;
|
|
183
|
+
unset?: string[];
|
|
184
|
+
}>;
|
|
185
|
+
}>>;
|
|
186
|
+
}, "compatibility_date" | "compatibility_flags">, "strip", z.ZodTypeAny, {
|
|
187
|
+
headers?: {
|
|
188
|
+
version?: 2;
|
|
189
|
+
rules?: Record<string, {
|
|
190
|
+
set?: Record<string, string>;
|
|
191
|
+
unset?: string[];
|
|
192
|
+
}>;
|
|
193
|
+
} | undefined;
|
|
194
|
+
account_id?: number | undefined;
|
|
195
|
+
script_id?: number | undefined;
|
|
196
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
197
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
198
|
+
redirects?: {
|
|
199
|
+
version?: 1;
|
|
200
|
+
staticRules?: Record<string, {
|
|
201
|
+
status?: number;
|
|
202
|
+
to?: string;
|
|
203
|
+
lineNumber?: number;
|
|
204
|
+
}>;
|
|
205
|
+
rules?: Record<string, {
|
|
206
|
+
status?: number;
|
|
207
|
+
to?: string;
|
|
208
|
+
}>;
|
|
209
|
+
} | undefined;
|
|
93
210
|
}, {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
211
|
+
headers?: {
|
|
212
|
+
version?: 2;
|
|
213
|
+
rules?: Record<string, {
|
|
214
|
+
set?: Record<string, string>;
|
|
215
|
+
unset?: string[];
|
|
216
|
+
}>;
|
|
217
|
+
} | undefined;
|
|
218
|
+
account_id?: number | undefined;
|
|
219
|
+
script_id?: number | undefined;
|
|
220
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
221
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
222
|
+
redirects?: {
|
|
223
|
+
version?: 1;
|
|
224
|
+
staticRules?: Record<string, {
|
|
225
|
+
status?: number;
|
|
226
|
+
to?: string;
|
|
227
|
+
lineNumber?: number;
|
|
228
|
+
}>;
|
|
229
|
+
rules?: Record<string, {
|
|
230
|
+
status?: number;
|
|
231
|
+
to?: string;
|
|
232
|
+
}>;
|
|
233
|
+
} | undefined;
|
|
97
234
|
}>>;
|
|
98
235
|
}, "strip", z.ZodTypeAny, {
|
|
99
236
|
directory: string;
|
|
100
237
|
workerName?: string | undefined;
|
|
101
238
|
binding?: string | undefined;
|
|
102
|
-
|
|
103
|
-
|
|
239
|
+
routerConfig?: {
|
|
240
|
+
account_id?: number;
|
|
241
|
+
script_id?: number;
|
|
104
242
|
invoke_user_worker_ahead_of_assets?: boolean;
|
|
243
|
+
has_user_worker?: boolean;
|
|
105
244
|
} | undefined;
|
|
106
245
|
assetConfig?: {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
246
|
+
headers?: {
|
|
247
|
+
version?: 2;
|
|
248
|
+
rules?: Record<string, {
|
|
249
|
+
set?: Record<string, string>;
|
|
250
|
+
unset?: string[];
|
|
251
|
+
}>;
|
|
252
|
+
} | undefined;
|
|
253
|
+
account_id?: number | undefined;
|
|
254
|
+
script_id?: number | undefined;
|
|
255
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
256
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
257
|
+
redirects?: {
|
|
258
|
+
version?: 1;
|
|
259
|
+
staticRules?: Record<string, {
|
|
260
|
+
status?: number;
|
|
261
|
+
to?: string;
|
|
262
|
+
lineNumber?: number;
|
|
263
|
+
}>;
|
|
264
|
+
rules?: Record<string, {
|
|
265
|
+
status?: number;
|
|
266
|
+
to?: string;
|
|
267
|
+
}>;
|
|
268
|
+
} | undefined;
|
|
110
269
|
} | undefined;
|
|
111
270
|
}, {
|
|
112
271
|
directory: string;
|
|
113
272
|
workerName?: string | undefined;
|
|
114
273
|
binding?: string | undefined;
|
|
115
|
-
|
|
116
|
-
|
|
274
|
+
routerConfig?: {
|
|
275
|
+
account_id?: number;
|
|
276
|
+
script_id?: number;
|
|
117
277
|
invoke_user_worker_ahead_of_assets?: boolean;
|
|
278
|
+
has_user_worker?: boolean;
|
|
118
279
|
} | undefined;
|
|
119
280
|
assetConfig?: {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
281
|
+
headers?: {
|
|
282
|
+
version?: 2;
|
|
283
|
+
rules?: Record<string, {
|
|
284
|
+
set?: Record<string, string>;
|
|
285
|
+
unset?: string[];
|
|
286
|
+
}>;
|
|
287
|
+
} | undefined;
|
|
288
|
+
account_id?: number | undefined;
|
|
289
|
+
script_id?: number | undefined;
|
|
290
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
291
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
292
|
+
redirects?: {
|
|
293
|
+
version?: 1;
|
|
294
|
+
staticRules?: Record<string, {
|
|
295
|
+
status?: number;
|
|
296
|
+
to?: string;
|
|
297
|
+
lineNumber?: number;
|
|
298
|
+
}>;
|
|
299
|
+
rules?: Record<string, {
|
|
300
|
+
status?: number;
|
|
301
|
+
to?: string;
|
|
302
|
+
}>;
|
|
303
|
+
} | undefined;
|
|
123
304
|
} | undefined;
|
|
124
305
|
}>>;
|
|
306
|
+
compatibilityDate: z.ZodOptional<z.ZodString>;
|
|
307
|
+
compatibilityFlags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
125
308
|
}, "strip", z.ZodTypeAny, {
|
|
126
309
|
assets?: {
|
|
127
310
|
directory: string;
|
|
128
311
|
workerName?: string | undefined;
|
|
129
312
|
binding?: string | undefined;
|
|
130
|
-
|
|
131
|
-
|
|
313
|
+
routerConfig?: {
|
|
314
|
+
account_id?: number;
|
|
315
|
+
script_id?: number;
|
|
132
316
|
invoke_user_worker_ahead_of_assets?: boolean;
|
|
317
|
+
has_user_worker?: boolean;
|
|
133
318
|
} | undefined;
|
|
134
319
|
assetConfig?: {
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
320
|
+
headers?: {
|
|
321
|
+
version?: 2;
|
|
322
|
+
rules?: Record<string, {
|
|
323
|
+
set?: Record<string, string>;
|
|
324
|
+
unset?: string[];
|
|
325
|
+
}>;
|
|
326
|
+
} | undefined;
|
|
327
|
+
account_id?: number | undefined;
|
|
328
|
+
script_id?: number | undefined;
|
|
329
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
330
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
331
|
+
redirects?: {
|
|
332
|
+
version?: 1;
|
|
333
|
+
staticRules?: Record<string, {
|
|
334
|
+
status?: number;
|
|
335
|
+
to?: string;
|
|
336
|
+
lineNumber?: number;
|
|
337
|
+
}>;
|
|
338
|
+
rules?: Record<string, {
|
|
339
|
+
status?: number;
|
|
340
|
+
to?: string;
|
|
341
|
+
}>;
|
|
342
|
+
} | undefined;
|
|
138
343
|
} | undefined;
|
|
139
344
|
} | undefined;
|
|
345
|
+
compatibilityDate?: string | undefined;
|
|
346
|
+
compatibilityFlags?: string[] | undefined;
|
|
140
347
|
}, {
|
|
141
348
|
assets?: {
|
|
142
349
|
directory: string;
|
|
143
350
|
workerName?: string | undefined;
|
|
144
351
|
binding?: string | undefined;
|
|
145
|
-
|
|
146
|
-
|
|
352
|
+
routerConfig?: {
|
|
353
|
+
account_id?: number;
|
|
354
|
+
script_id?: number;
|
|
147
355
|
invoke_user_worker_ahead_of_assets?: boolean;
|
|
356
|
+
has_user_worker?: boolean;
|
|
148
357
|
} | undefined;
|
|
149
358
|
assetConfig?: {
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
359
|
+
headers?: {
|
|
360
|
+
version?: 2;
|
|
361
|
+
rules?: Record<string, {
|
|
362
|
+
set?: Record<string, string>;
|
|
363
|
+
unset?: string[];
|
|
364
|
+
}>;
|
|
365
|
+
} | undefined;
|
|
366
|
+
account_id?: number | undefined;
|
|
367
|
+
script_id?: number | undefined;
|
|
368
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
369
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
370
|
+
redirects?: {
|
|
371
|
+
version?: 1;
|
|
372
|
+
staticRules?: Record<string, {
|
|
373
|
+
status?: number;
|
|
374
|
+
to?: string;
|
|
375
|
+
lineNumber?: number;
|
|
376
|
+
}>;
|
|
377
|
+
rules?: Record<string, {
|
|
378
|
+
status?: number;
|
|
379
|
+
to?: string;
|
|
380
|
+
}>;
|
|
381
|
+
} | undefined;
|
|
153
382
|
} | undefined;
|
|
154
383
|
} | undefined;
|
|
384
|
+
compatibilityDate?: string | undefined;
|
|
385
|
+
compatibilityFlags?: string[] | undefined;
|
|
155
386
|
}>;
|
|
156
387
|
|
|
157
388
|
export declare type Awaitable<T> = T | Promise<T>;
|
|
@@ -172,7 +403,7 @@ export { BodyInit }
|
|
|
172
403
|
* Use content hash to get file path from asset reverse map.
|
|
173
404
|
*/
|
|
174
405
|
export declare const buildAssetManifest: (dir: string) => Promise<{
|
|
175
|
-
encodedAssetManifest: Uint8Array
|
|
406
|
+
encodedAssetManifest: Uint8Array<ArrayBuffer>;
|
|
176
407
|
assetsReverseMap: AssetReverseMap;
|
|
177
408
|
}>;
|
|
178
409
|
|
|
@@ -280,29 +511,29 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
280
511
|
modules: z.ZodArray<z.ZodObject<{
|
|
281
512
|
type: z.ZodEnum<["ESModule", "CommonJS", "NodeJsCompatModule", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
|
|
282
513
|
path: z.ZodEffects<z.ZodString, string, string>;
|
|
283
|
-
contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array
|
|
514
|
+
contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>;
|
|
284
515
|
}, "strip", z.ZodTypeAny, {
|
|
285
516
|
type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
286
517
|
path: string;
|
|
287
|
-
contents?: string | Uint8Array | undefined;
|
|
518
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
288
519
|
}, {
|
|
289
520
|
type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
290
521
|
path: string;
|
|
291
|
-
contents?: string | Uint8Array | undefined;
|
|
522
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
292
523
|
}>, "many">;
|
|
293
524
|
modulesRoot: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
294
525
|
}, "strip", z.ZodTypeAny, {
|
|
295
526
|
modules: {
|
|
296
527
|
type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
297
528
|
path: string;
|
|
298
|
-
contents?: string | Uint8Array | undefined;
|
|
529
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
299
530
|
}[];
|
|
300
531
|
modulesRoot?: string | undefined;
|
|
301
532
|
}, {
|
|
302
533
|
modules: {
|
|
303
534
|
type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
304
535
|
path: string;
|
|
305
|
-
contents?: string | Uint8Array | undefined;
|
|
536
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
306
537
|
}[];
|
|
307
538
|
modulesRoot?: string | undefined;
|
|
308
539
|
}>, z.ZodObject<{
|
|
@@ -383,11 +614,12 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
383
614
|
rootPath: z.ZodOptional<z.ZodEffects<z.ZodString, undefined, string>>;
|
|
384
615
|
compatibilityDate: z.ZodOptional<z.ZodString>;
|
|
385
616
|
compatibilityFlags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
617
|
+
unsafeInspectorProxy: z.ZodOptional<z.ZodBoolean>;
|
|
386
618
|
routes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
387
619
|
bindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<Json, z.ZodTypeDef, Json>>>;
|
|
388
|
-
wasmBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array
|
|
620
|
+
wasmBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>>;
|
|
389
621
|
textBlobBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, string, string>>>;
|
|
390
|
-
dataBlobBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array
|
|
622
|
+
dataBlobBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>>;
|
|
391
623
|
serviceBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodLiteral<typeof kCurrentWorker>, z.ZodObject<{
|
|
392
624
|
name: z.ZodUnion<[z.ZodString, z.ZodLiteral<typeof kCurrentWorker>]>;
|
|
393
625
|
entrypoint: z.ZodOptional<z.ZodString>;
|
|
@@ -415,7 +647,14 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
415
647
|
requireClientCerts: z.ZodOptional<z.ZodBoolean>;
|
|
416
648
|
trustBrowserCas: z.ZodOptional<z.ZodBoolean>;
|
|
417
649
|
trustedCertificates: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
418
|
-
minVersion: z.ZodOptional<z.ZodNativeEnum<
|
|
650
|
+
minVersion: z.ZodOptional<z.ZodNativeEnum<{
|
|
651
|
+
readonly GOOD_DEFAULT: 0;
|
|
652
|
+
readonly SSL3: 1;
|
|
653
|
+
readonly TLS1DOT0: 2;
|
|
654
|
+
readonly TLS1DOT1: 3;
|
|
655
|
+
readonly TLS1DOT2: 4;
|
|
656
|
+
readonly TLS1DOT3: 5;
|
|
657
|
+
}>>;
|
|
419
658
|
cipherList: z.ZodOptional<z.ZodString>;
|
|
420
659
|
}, "strip", z.ZodTypeAny, {
|
|
421
660
|
keypair?: {
|
|
@@ -425,7 +664,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
425
664
|
requireClientCerts?: boolean | undefined;
|
|
426
665
|
trustBrowserCas?: boolean | undefined;
|
|
427
666
|
trustedCertificates?: string[] | undefined;
|
|
428
|
-
minVersion?:
|
|
667
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
429
668
|
cipherList?: string | undefined;
|
|
430
669
|
}, {
|
|
431
670
|
keypair?: {
|
|
@@ -435,7 +674,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
435
674
|
requireClientCerts?: boolean | undefined;
|
|
436
675
|
trustBrowserCas?: boolean | undefined;
|
|
437
676
|
trustedCertificates?: string[] | undefined;
|
|
438
|
-
minVersion?:
|
|
677
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
439
678
|
cipherList?: string | undefined;
|
|
440
679
|
}>>;
|
|
441
680
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -449,7 +688,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
449
688
|
requireClientCerts?: boolean | undefined;
|
|
450
689
|
trustBrowserCas?: boolean | undefined;
|
|
451
690
|
trustedCertificates?: string[] | undefined;
|
|
452
|
-
minVersion?:
|
|
691
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
453
692
|
cipherList?: string | undefined;
|
|
454
693
|
} | undefined;
|
|
455
694
|
}, {
|
|
@@ -463,7 +702,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
463
702
|
requireClientCerts?: boolean | undefined;
|
|
464
703
|
trustBrowserCas?: boolean | undefined;
|
|
465
704
|
trustedCertificates?: string[] | undefined;
|
|
466
|
-
minVersion?:
|
|
705
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
467
706
|
cipherList?: string | undefined;
|
|
468
707
|
} | undefined;
|
|
469
708
|
}>;
|
|
@@ -479,7 +718,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
479
718
|
requireClientCerts?: boolean | undefined;
|
|
480
719
|
trustBrowserCas?: boolean | undefined;
|
|
481
720
|
trustedCertificates?: string[] | undefined;
|
|
482
|
-
minVersion?:
|
|
721
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
483
722
|
cipherList?: string | undefined;
|
|
484
723
|
} | undefined;
|
|
485
724
|
};
|
|
@@ -495,16 +734,16 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
495
734
|
requireClientCerts?: boolean | undefined;
|
|
496
735
|
trustBrowserCas?: boolean | undefined;
|
|
497
736
|
trustedCertificates?: string[] | undefined;
|
|
498
|
-
minVersion?:
|
|
737
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
499
738
|
cipherList?: string | undefined;
|
|
500
739
|
} | undefined;
|
|
501
740
|
};
|
|
502
741
|
}>, z.ZodObject<{
|
|
503
|
-
external: z.ZodType<
|
|
742
|
+
external: z.ZodType<ExternalServer_2, z.ZodTypeDef, ExternalServer_2>;
|
|
504
743
|
}, "strip", z.ZodTypeAny, {
|
|
505
|
-
external:
|
|
744
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
506
745
|
}, {
|
|
507
|
-
external:
|
|
746
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
508
747
|
}>, z.ZodObject<{
|
|
509
748
|
disk: z.ZodObject<{
|
|
510
749
|
path: z.ZodString;
|
|
@@ -526,7 +765,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
526
765
|
path: string;
|
|
527
766
|
writable?: boolean | undefined;
|
|
528
767
|
};
|
|
529
|
-
}>, z.ZodType<(request:
|
|
768
|
+
}>, z.ZodType<(request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>, z.ZodTypeDef, (request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>>]>>>;
|
|
530
769
|
wrappedBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
531
770
|
scriptName: z.ZodString;
|
|
532
771
|
entrypoint: z.ZodOptional<z.ZodString>;
|
|
@@ -567,7 +806,14 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
567
806
|
requireClientCerts: z.ZodOptional<z.ZodBoolean>;
|
|
568
807
|
trustBrowserCas: z.ZodOptional<z.ZodBoolean>;
|
|
569
808
|
trustedCertificates: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
570
|
-
minVersion: z.ZodOptional<z.ZodNativeEnum<
|
|
809
|
+
minVersion: z.ZodOptional<z.ZodNativeEnum<{
|
|
810
|
+
readonly GOOD_DEFAULT: 0;
|
|
811
|
+
readonly SSL3: 1;
|
|
812
|
+
readonly TLS1DOT0: 2;
|
|
813
|
+
readonly TLS1DOT1: 3;
|
|
814
|
+
readonly TLS1DOT2: 4;
|
|
815
|
+
readonly TLS1DOT3: 5;
|
|
816
|
+
}>>;
|
|
571
817
|
cipherList: z.ZodOptional<z.ZodString>;
|
|
572
818
|
}, "strip", z.ZodTypeAny, {
|
|
573
819
|
keypair?: {
|
|
@@ -577,7 +823,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
577
823
|
requireClientCerts?: boolean | undefined;
|
|
578
824
|
trustBrowserCas?: boolean | undefined;
|
|
579
825
|
trustedCertificates?: string[] | undefined;
|
|
580
|
-
minVersion?:
|
|
826
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
581
827
|
cipherList?: string | undefined;
|
|
582
828
|
}, {
|
|
583
829
|
keypair?: {
|
|
@@ -587,7 +833,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
587
833
|
requireClientCerts?: boolean | undefined;
|
|
588
834
|
trustBrowserCas?: boolean | undefined;
|
|
589
835
|
trustedCertificates?: string[] | undefined;
|
|
590
|
-
minVersion?:
|
|
836
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
591
837
|
cipherList?: string | undefined;
|
|
592
838
|
}>>;
|
|
593
839
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -601,7 +847,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
601
847
|
requireClientCerts?: boolean | undefined;
|
|
602
848
|
trustBrowserCas?: boolean | undefined;
|
|
603
849
|
trustedCertificates?: string[] | undefined;
|
|
604
|
-
minVersion?:
|
|
850
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
605
851
|
cipherList?: string | undefined;
|
|
606
852
|
} | undefined;
|
|
607
853
|
}, {
|
|
@@ -615,7 +861,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
615
861
|
requireClientCerts?: boolean | undefined;
|
|
616
862
|
trustBrowserCas?: boolean | undefined;
|
|
617
863
|
trustedCertificates?: string[] | undefined;
|
|
618
|
-
minVersion?:
|
|
864
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
619
865
|
cipherList?: string | undefined;
|
|
620
866
|
} | undefined;
|
|
621
867
|
}>;
|
|
@@ -631,7 +877,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
631
877
|
requireClientCerts?: boolean | undefined;
|
|
632
878
|
trustBrowserCas?: boolean | undefined;
|
|
633
879
|
trustedCertificates?: string[] | undefined;
|
|
634
|
-
minVersion?:
|
|
880
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
635
881
|
cipherList?: string | undefined;
|
|
636
882
|
} | undefined;
|
|
637
883
|
};
|
|
@@ -647,16 +893,16 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
647
893
|
requireClientCerts?: boolean | undefined;
|
|
648
894
|
trustBrowserCas?: boolean | undefined;
|
|
649
895
|
trustedCertificates?: string[] | undefined;
|
|
650
|
-
minVersion?:
|
|
896
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
651
897
|
cipherList?: string | undefined;
|
|
652
898
|
} | undefined;
|
|
653
899
|
};
|
|
654
900
|
}>, z.ZodObject<{
|
|
655
|
-
external: z.ZodType<
|
|
901
|
+
external: z.ZodType<ExternalServer_2, z.ZodTypeDef, ExternalServer_2>;
|
|
656
902
|
}, "strip", z.ZodTypeAny, {
|
|
657
|
-
external:
|
|
903
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
658
904
|
}, {
|
|
659
|
-
external:
|
|
905
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
660
906
|
}>, z.ZodObject<{
|
|
661
907
|
disk: z.ZodObject<{
|
|
662
908
|
path: z.ZodString;
|
|
@@ -678,7 +924,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
678
924
|
path: string;
|
|
679
925
|
writable?: boolean | undefined;
|
|
680
926
|
};
|
|
681
|
-
}>, z.ZodType<(request:
|
|
927
|
+
}>, z.ZodType<(request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>, z.ZodTypeDef, (request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>>]>>;
|
|
682
928
|
fetchMock: z.ZodOptional<z.ZodType<MockAgent<MockAgent.Options>, z.ZodTypeDef, MockAgent<MockAgent.Options>>>;
|
|
683
929
|
unsafeEphemeralDurableObjects: z.ZodOptional<z.ZodBoolean>;
|
|
684
930
|
unsafeDirectSockets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -699,8 +945,9 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
699
945
|
}>, "many">>;
|
|
700
946
|
unsafeEvalBinding: z.ZodOptional<z.ZodString>;
|
|
701
947
|
unsafeUseModuleFallbackService: z.ZodOptional<z.ZodBoolean>;
|
|
702
|
-
/** Used to set the vitest pool worker SELF binding to point to the
|
|
703
|
-
(If there are assets but we're not using vitest, the miniflare entry worker can point directly to
|
|
948
|
+
/** Used to set the vitest pool worker SELF binding to point to the Router Worker if there are assets.
|
|
949
|
+
(If there are assets but we're not using vitest, the miniflare entry worker can point directly to
|
|
950
|
+
Router Worker)
|
|
704
951
|
*/
|
|
705
952
|
hasAssetsAndIsVitest: z.ZodOptional<z.ZodBoolean>;
|
|
706
953
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -708,11 +955,12 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
708
955
|
rootPath?: undefined;
|
|
709
956
|
compatibilityDate?: string | undefined;
|
|
710
957
|
compatibilityFlags?: string[] | undefined;
|
|
958
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
711
959
|
routes?: string[] | undefined;
|
|
712
960
|
bindings?: Record<string, Json> | undefined;
|
|
713
|
-
wasmBindings?: Record<string, string | Uint8Array
|
|
961
|
+
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
714
962
|
textBlobBindings?: Record<string, string> | undefined;
|
|
715
|
-
dataBlobBindings?: Record<string, string | Uint8Array
|
|
963
|
+
dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
716
964
|
serviceBindings?: Record<string, string | typeof kCurrentWorker | {
|
|
717
965
|
name: string | typeof kCurrentWorker;
|
|
718
966
|
entrypoint?: string | undefined;
|
|
@@ -728,18 +976,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
728
976
|
requireClientCerts?: boolean | undefined;
|
|
729
977
|
trustBrowserCas?: boolean | undefined;
|
|
730
978
|
trustedCertificates?: string[] | undefined;
|
|
731
|
-
minVersion?:
|
|
979
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
732
980
|
cipherList?: string | undefined;
|
|
733
981
|
} | undefined;
|
|
734
982
|
};
|
|
735
983
|
} | {
|
|
736
|
-
external:
|
|
984
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
737
985
|
} | {
|
|
738
986
|
disk: {
|
|
739
987
|
path: string;
|
|
740
988
|
writable?: boolean | undefined;
|
|
741
989
|
};
|
|
742
|
-
} | ((request:
|
|
990
|
+
} | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>)> | undefined;
|
|
743
991
|
wrappedBindings?: Record<string, string | {
|
|
744
992
|
scriptName: string;
|
|
745
993
|
entrypoint?: string | undefined;
|
|
@@ -760,18 +1008,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
760
1008
|
requireClientCerts?: boolean | undefined;
|
|
761
1009
|
trustBrowserCas?: boolean | undefined;
|
|
762
1010
|
trustedCertificates?: string[] | undefined;
|
|
763
|
-
minVersion?:
|
|
1011
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
764
1012
|
cipherList?: string | undefined;
|
|
765
1013
|
} | undefined;
|
|
766
1014
|
};
|
|
767
1015
|
} | {
|
|
768
|
-
external:
|
|
1016
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
769
1017
|
} | {
|
|
770
1018
|
disk: {
|
|
771
1019
|
path: string;
|
|
772
1020
|
writable?: boolean | undefined;
|
|
773
1021
|
};
|
|
774
|
-
} | ((request:
|
|
1022
|
+
} | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
|
|
775
1023
|
fetchMock?: MockAgent<MockAgent.Options> | undefined;
|
|
776
1024
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
777
1025
|
unsafeDirectSockets?: {
|
|
@@ -788,11 +1036,12 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
788
1036
|
rootPath?: string | undefined;
|
|
789
1037
|
compatibilityDate?: string | undefined;
|
|
790
1038
|
compatibilityFlags?: string[] | undefined;
|
|
1039
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
791
1040
|
routes?: string[] | undefined;
|
|
792
1041
|
bindings?: Record<string, Json> | undefined;
|
|
793
|
-
wasmBindings?: Record<string, string | Uint8Array
|
|
1042
|
+
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
794
1043
|
textBlobBindings?: Record<string, string> | undefined;
|
|
795
|
-
dataBlobBindings?: Record<string, string | Uint8Array
|
|
1044
|
+
dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
796
1045
|
serviceBindings?: Record<string, string | typeof kCurrentWorker | {
|
|
797
1046
|
name: string | typeof kCurrentWorker;
|
|
798
1047
|
entrypoint?: string | undefined;
|
|
@@ -808,18 +1057,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
808
1057
|
requireClientCerts?: boolean | undefined;
|
|
809
1058
|
trustBrowserCas?: boolean | undefined;
|
|
810
1059
|
trustedCertificates?: string[] | undefined;
|
|
811
|
-
minVersion?:
|
|
1060
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
812
1061
|
cipherList?: string | undefined;
|
|
813
1062
|
} | undefined;
|
|
814
1063
|
};
|
|
815
1064
|
} | {
|
|
816
|
-
external:
|
|
1065
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
817
1066
|
} | {
|
|
818
1067
|
disk: {
|
|
819
1068
|
path: string;
|
|
820
1069
|
writable?: boolean | undefined;
|
|
821
1070
|
};
|
|
822
|
-
} | ((request:
|
|
1071
|
+
} | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>)> | undefined;
|
|
823
1072
|
wrappedBindings?: Record<string, string | {
|
|
824
1073
|
scriptName: string;
|
|
825
1074
|
entrypoint?: string | undefined;
|
|
@@ -840,18 +1089,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
840
1089
|
requireClientCerts?: boolean | undefined;
|
|
841
1090
|
trustBrowserCas?: boolean | undefined;
|
|
842
1091
|
trustedCertificates?: string[] | undefined;
|
|
843
|
-
minVersion?:
|
|
1092
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
844
1093
|
cipherList?: string | undefined;
|
|
845
1094
|
} | undefined;
|
|
846
1095
|
};
|
|
847
1096
|
} | {
|
|
848
|
-
external:
|
|
1097
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
849
1098
|
} | {
|
|
850
1099
|
disk: {
|
|
851
1100
|
path: string;
|
|
852
1101
|
writable?: boolean | undefined;
|
|
853
1102
|
};
|
|
854
|
-
} | ((request:
|
|
1103
|
+
} | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
|
|
855
1104
|
fetchMock?: MockAgent<MockAgent.Options> | undefined;
|
|
856
1105
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
857
1106
|
unsafeDirectSockets?: {
|
|
@@ -867,7 +1116,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
867
1116
|
modules: {
|
|
868
1117
|
type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
869
1118
|
path: string;
|
|
870
|
-
contents?: string | Uint8Array | undefined;
|
|
1119
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
871
1120
|
}[];
|
|
872
1121
|
modulesRoot?: string | undefined;
|
|
873
1122
|
} & {
|
|
@@ -875,11 +1124,12 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
875
1124
|
rootPath?: undefined;
|
|
876
1125
|
compatibilityDate?: string | undefined;
|
|
877
1126
|
compatibilityFlags?: string[] | undefined;
|
|
1127
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
878
1128
|
routes?: string[] | undefined;
|
|
879
1129
|
bindings?: Record<string, Json> | undefined;
|
|
880
|
-
wasmBindings?: Record<string, string | Uint8Array
|
|
1130
|
+
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
881
1131
|
textBlobBindings?: Record<string, string> | undefined;
|
|
882
|
-
dataBlobBindings?: Record<string, string | Uint8Array
|
|
1132
|
+
dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
883
1133
|
serviceBindings?: Record<string, string | typeof kCurrentWorker | {
|
|
884
1134
|
name: string | typeof kCurrentWorker;
|
|
885
1135
|
entrypoint?: string | undefined;
|
|
@@ -895,18 +1145,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
895
1145
|
requireClientCerts?: boolean | undefined;
|
|
896
1146
|
trustBrowserCas?: boolean | undefined;
|
|
897
1147
|
trustedCertificates?: string[] | undefined;
|
|
898
|
-
minVersion?:
|
|
1148
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
899
1149
|
cipherList?: string | undefined;
|
|
900
1150
|
} | undefined;
|
|
901
1151
|
};
|
|
902
1152
|
} | {
|
|
903
|
-
external:
|
|
1153
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
904
1154
|
} | {
|
|
905
1155
|
disk: {
|
|
906
1156
|
path: string;
|
|
907
1157
|
writable?: boolean | undefined;
|
|
908
1158
|
};
|
|
909
|
-
} | ((request:
|
|
1159
|
+
} | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>)> | undefined;
|
|
910
1160
|
wrappedBindings?: Record<string, string | {
|
|
911
1161
|
scriptName: string;
|
|
912
1162
|
entrypoint?: string | undefined;
|
|
@@ -927,18 +1177,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
927
1177
|
requireClientCerts?: boolean | undefined;
|
|
928
1178
|
trustBrowserCas?: boolean | undefined;
|
|
929
1179
|
trustedCertificates?: string[] | undefined;
|
|
930
|
-
minVersion?:
|
|
1180
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
931
1181
|
cipherList?: string | undefined;
|
|
932
1182
|
} | undefined;
|
|
933
1183
|
};
|
|
934
1184
|
} | {
|
|
935
|
-
external:
|
|
1185
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
936
1186
|
} | {
|
|
937
1187
|
disk: {
|
|
938
1188
|
path: string;
|
|
939
1189
|
writable?: boolean | undefined;
|
|
940
1190
|
};
|
|
941
|
-
} | ((request:
|
|
1191
|
+
} | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
|
|
942
1192
|
fetchMock?: MockAgent<MockAgent.Options> | undefined;
|
|
943
1193
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
944
1194
|
unsafeDirectSockets?: {
|
|
@@ -965,11 +1215,12 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
965
1215
|
rootPath?: undefined;
|
|
966
1216
|
compatibilityDate?: string | undefined;
|
|
967
1217
|
compatibilityFlags?: string[] | undefined;
|
|
1218
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
968
1219
|
routes?: string[] | undefined;
|
|
969
1220
|
bindings?: Record<string, Json> | undefined;
|
|
970
|
-
wasmBindings?: Record<string, string | Uint8Array
|
|
1221
|
+
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
971
1222
|
textBlobBindings?: Record<string, string> | undefined;
|
|
972
|
-
dataBlobBindings?: Record<string, string | Uint8Array
|
|
1223
|
+
dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
973
1224
|
serviceBindings?: Record<string, string | typeof kCurrentWorker | {
|
|
974
1225
|
name: string | typeof kCurrentWorker;
|
|
975
1226
|
entrypoint?: string | undefined;
|
|
@@ -985,18 +1236,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
985
1236
|
requireClientCerts?: boolean | undefined;
|
|
986
1237
|
trustBrowserCas?: boolean | undefined;
|
|
987
1238
|
trustedCertificates?: string[] | undefined;
|
|
988
|
-
minVersion?:
|
|
1239
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
989
1240
|
cipherList?: string | undefined;
|
|
990
1241
|
} | undefined;
|
|
991
1242
|
};
|
|
992
1243
|
} | {
|
|
993
|
-
external:
|
|
1244
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
994
1245
|
} | {
|
|
995
1246
|
disk: {
|
|
996
1247
|
path: string;
|
|
997
1248
|
writable?: boolean | undefined;
|
|
998
1249
|
};
|
|
999
|
-
} | ((request:
|
|
1250
|
+
} | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>)> | undefined;
|
|
1000
1251
|
wrappedBindings?: Record<string, string | {
|
|
1001
1252
|
scriptName: string;
|
|
1002
1253
|
entrypoint?: string | undefined;
|
|
@@ -1017,18 +1268,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1017
1268
|
requireClientCerts?: boolean | undefined;
|
|
1018
1269
|
trustBrowserCas?: boolean | undefined;
|
|
1019
1270
|
trustedCertificates?: string[] | undefined;
|
|
1020
|
-
minVersion?:
|
|
1271
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
1021
1272
|
cipherList?: string | undefined;
|
|
1022
1273
|
} | undefined;
|
|
1023
1274
|
};
|
|
1024
1275
|
} | {
|
|
1025
|
-
external:
|
|
1276
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
1026
1277
|
} | {
|
|
1027
1278
|
disk: {
|
|
1028
1279
|
path: string;
|
|
1029
1280
|
writable?: boolean | undefined;
|
|
1030
1281
|
};
|
|
1031
|
-
} | ((request:
|
|
1282
|
+
} | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
|
|
1032
1283
|
fetchMock?: MockAgent<MockAgent.Options> | undefined;
|
|
1033
1284
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
1034
1285
|
unsafeDirectSockets?: {
|
|
@@ -1054,11 +1305,12 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1054
1305
|
rootPath?: undefined;
|
|
1055
1306
|
compatibilityDate?: string | undefined;
|
|
1056
1307
|
compatibilityFlags?: string[] | undefined;
|
|
1308
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
1057
1309
|
routes?: string[] | undefined;
|
|
1058
1310
|
bindings?: Record<string, Json> | undefined;
|
|
1059
|
-
wasmBindings?: Record<string, string | Uint8Array
|
|
1311
|
+
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
1060
1312
|
textBlobBindings?: Record<string, string> | undefined;
|
|
1061
|
-
dataBlobBindings?: Record<string, string | Uint8Array
|
|
1313
|
+
dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
1062
1314
|
serviceBindings?: Record<string, string | typeof kCurrentWorker | {
|
|
1063
1315
|
name: string | typeof kCurrentWorker;
|
|
1064
1316
|
entrypoint?: string | undefined;
|
|
@@ -1074,18 +1326,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1074
1326
|
requireClientCerts?: boolean | undefined;
|
|
1075
1327
|
trustBrowserCas?: boolean | undefined;
|
|
1076
1328
|
trustedCertificates?: string[] | undefined;
|
|
1077
|
-
minVersion?:
|
|
1329
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
1078
1330
|
cipherList?: string | undefined;
|
|
1079
1331
|
} | undefined;
|
|
1080
1332
|
};
|
|
1081
1333
|
} | {
|
|
1082
|
-
external:
|
|
1334
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
1083
1335
|
} | {
|
|
1084
1336
|
disk: {
|
|
1085
1337
|
path: string;
|
|
1086
1338
|
writable?: boolean | undefined;
|
|
1087
1339
|
};
|
|
1088
|
-
} | ((request:
|
|
1340
|
+
} | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>)> | undefined;
|
|
1089
1341
|
wrappedBindings?: Record<string, string | {
|
|
1090
1342
|
scriptName: string;
|
|
1091
1343
|
entrypoint?: string | undefined;
|
|
@@ -1106,18 +1358,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1106
1358
|
requireClientCerts?: boolean | undefined;
|
|
1107
1359
|
trustBrowserCas?: boolean | undefined;
|
|
1108
1360
|
trustedCertificates?: string[] | undefined;
|
|
1109
|
-
minVersion?:
|
|
1361
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
1110
1362
|
cipherList?: string | undefined;
|
|
1111
1363
|
} | undefined;
|
|
1112
1364
|
};
|
|
1113
1365
|
} | {
|
|
1114
|
-
external:
|
|
1366
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
1115
1367
|
} | {
|
|
1116
1368
|
disk: {
|
|
1117
1369
|
path: string;
|
|
1118
1370
|
writable?: boolean | undefined;
|
|
1119
1371
|
};
|
|
1120
|
-
} | ((request:
|
|
1372
|
+
} | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
|
|
1121
1373
|
fetchMock?: MockAgent<MockAgent.Options> | undefined;
|
|
1122
1374
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
1123
1375
|
unsafeDirectSockets?: {
|
|
@@ -1133,7 +1385,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1133
1385
|
modules: {
|
|
1134
1386
|
type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
1135
1387
|
path: string;
|
|
1136
|
-
contents?: string | Uint8Array | undefined;
|
|
1388
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
1137
1389
|
}[];
|
|
1138
1390
|
modulesRoot?: string | undefined;
|
|
1139
1391
|
} | {
|
|
@@ -1160,11 +1412,12 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1160
1412
|
rootPath?: string | undefined;
|
|
1161
1413
|
compatibilityDate?: string | undefined;
|
|
1162
1414
|
compatibilityFlags?: string[] | undefined;
|
|
1415
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
1163
1416
|
routes?: string[] | undefined;
|
|
1164
1417
|
bindings?: Record<string, Json> | undefined;
|
|
1165
|
-
wasmBindings?: Record<string, string | Uint8Array
|
|
1418
|
+
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
1166
1419
|
textBlobBindings?: Record<string, string> | undefined;
|
|
1167
|
-
dataBlobBindings?: Record<string, string | Uint8Array
|
|
1420
|
+
dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
1168
1421
|
serviceBindings?: Record<string, string | typeof kCurrentWorker | {
|
|
1169
1422
|
name: string | typeof kCurrentWorker;
|
|
1170
1423
|
entrypoint?: string | undefined;
|
|
@@ -1180,18 +1433,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1180
1433
|
requireClientCerts?: boolean | undefined;
|
|
1181
1434
|
trustBrowserCas?: boolean | undefined;
|
|
1182
1435
|
trustedCertificates?: string[] | undefined;
|
|
1183
|
-
minVersion?:
|
|
1436
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
1184
1437
|
cipherList?: string | undefined;
|
|
1185
1438
|
} | undefined;
|
|
1186
1439
|
};
|
|
1187
1440
|
} | {
|
|
1188
|
-
external:
|
|
1441
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
1189
1442
|
} | {
|
|
1190
1443
|
disk: {
|
|
1191
1444
|
path: string;
|
|
1192
1445
|
writable?: boolean | undefined;
|
|
1193
1446
|
};
|
|
1194
|
-
} | ((request:
|
|
1447
|
+
} | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>)> | undefined;
|
|
1195
1448
|
wrappedBindings?: Record<string, string | {
|
|
1196
1449
|
scriptName: string;
|
|
1197
1450
|
entrypoint?: string | undefined;
|
|
@@ -1212,18 +1465,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1212
1465
|
requireClientCerts?: boolean | undefined;
|
|
1213
1466
|
trustBrowserCas?: boolean | undefined;
|
|
1214
1467
|
trustedCertificates?: string[] | undefined;
|
|
1215
|
-
minVersion?:
|
|
1468
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
1216
1469
|
cipherList?: string | undefined;
|
|
1217
1470
|
} | undefined;
|
|
1218
1471
|
};
|
|
1219
1472
|
} | {
|
|
1220
|
-
external:
|
|
1473
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
1221
1474
|
} | {
|
|
1222
1475
|
disk: {
|
|
1223
1476
|
path: string;
|
|
1224
1477
|
writable?: boolean | undefined;
|
|
1225
1478
|
};
|
|
1226
|
-
} | ((request:
|
|
1479
|
+
} | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
|
|
1227
1480
|
fetchMock?: MockAgent<MockAgent.Options> | undefined;
|
|
1228
1481
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
1229
1482
|
unsafeDirectSockets?: {
|
|
@@ -1254,7 +1507,7 @@ export declare const CoreSharedOptionsSchema: z.ZodObject<{
|
|
|
1254
1507
|
cf: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>;
|
|
1255
1508
|
liveReload: z.ZodOptional<z.ZodBoolean>;
|
|
1256
1509
|
unsafeProxySharedSecret: z.ZodOptional<z.ZodString>;
|
|
1257
|
-
unsafeModuleFallbackService: z.ZodOptional<z.ZodType<(request:
|
|
1510
|
+
unsafeModuleFallbackService: z.ZodOptional<z.ZodType<(request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>, z.ZodTypeDef, (request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>>>;
|
|
1258
1511
|
unsafeStickyBlobs: z.ZodOptional<z.ZodBoolean>;
|
|
1259
1512
|
}, "strip", z.ZodTypeAny, {
|
|
1260
1513
|
rootPath?: undefined;
|
|
@@ -1273,7 +1526,7 @@ export declare const CoreSharedOptionsSchema: z.ZodObject<{
|
|
|
1273
1526
|
cf?: string | boolean | Record<string, any> | undefined;
|
|
1274
1527
|
liveReload?: boolean | undefined;
|
|
1275
1528
|
unsafeProxySharedSecret?: string | undefined;
|
|
1276
|
-
unsafeModuleFallbackService?: ((request:
|
|
1529
|
+
unsafeModuleFallbackService?: ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
|
|
1277
1530
|
unsafeStickyBlobs?: boolean | undefined;
|
|
1278
1531
|
}, {
|
|
1279
1532
|
rootPath?: string | undefined;
|
|
@@ -1292,7 +1545,7 @@ export declare const CoreSharedOptionsSchema: z.ZodObject<{
|
|
|
1292
1545
|
cf?: string | boolean | Record<string, any> | undefined;
|
|
1293
1546
|
liveReload?: boolean | undefined;
|
|
1294
1547
|
unsafeProxySharedSecret?: string | undefined;
|
|
1295
|
-
unsafeModuleFallbackService?: ((request:
|
|
1548
|
+
unsafeModuleFallbackService?: ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
|
|
1296
1549
|
unsafeStickyBlobs?: boolean | undefined;
|
|
1297
1550
|
}>;
|
|
1298
1551
|
|
|
@@ -1526,13 +1779,10 @@ export declare function getMiniflareObjectBindings(unsafeStickyBlobs: boolean):
|
|
|
1526
1779
|
*
|
|
1527
1780
|
* @param compatibilityDateStr The compatibility date
|
|
1528
1781
|
* @param compatibilityFlags The compatibility flags
|
|
1529
|
-
* @param opts.nodeCompat Whether the legacy node_compat arg is being used
|
|
1530
1782
|
* @returns the mode and flags to indicate specific configuration for validating.
|
|
1531
1783
|
*/
|
|
1532
1784
|
export declare function getNodeCompat(compatibilityDate: string | undefined, // Default to some arbitrary old date
|
|
1533
|
-
compatibilityFlags: string[]
|
|
1534
|
-
nodeCompat?: boolean;
|
|
1535
|
-
}): {
|
|
1785
|
+
compatibilityFlags: string[]): {
|
|
1536
1786
|
mode: NodeJSCompatMode;
|
|
1537
1787
|
hasNodejsAlsFlag: boolean;
|
|
1538
1788
|
hasNodejsCompatFlag: boolean;
|
|
@@ -1576,10 +1826,12 @@ export declare interface HttpOptions_Header {
|
|
|
1576
1826
|
value?: string;
|
|
1577
1827
|
}
|
|
1578
1828
|
|
|
1579
|
-
export declare
|
|
1580
|
-
HOST
|
|
1581
|
-
PROXY
|
|
1582
|
-
}
|
|
1829
|
+
export declare const HttpOptions_Style: {
|
|
1830
|
+
readonly HOST: 0;
|
|
1831
|
+
readonly PROXY: 1;
|
|
1832
|
+
};
|
|
1833
|
+
|
|
1834
|
+
export declare type HttpOptions_Style = (typeof HttpOptions_Style)[keyof typeof HttpOptions_Style];
|
|
1583
1835
|
|
|
1584
1836
|
export declare const HYPERDRIVE_PLUGIN: Plugin<typeof HyperdriveInputOptionsSchema>;
|
|
1585
1837
|
|
|
@@ -1763,9 +2015,9 @@ export declare function maybeParseURL(url: Persistence): URL | undefined;
|
|
|
1763
2015
|
export declare function mergeWorkerOptions(a: Partial<WorkerOptions>, b: Partial<WorkerOptions>): Partial<WorkerOptions>;
|
|
1764
2016
|
|
|
1765
2017
|
declare class MessageEvent_2 extends Event {
|
|
1766
|
-
readonly data: ArrayBuffer |
|
|
2018
|
+
readonly data: string | ArrayBuffer | Uint8Array<ArrayBuffer>;
|
|
1767
2019
|
constructor(type: "message", init: {
|
|
1768
|
-
data: ArrayBuffer |
|
|
2020
|
+
data: string | ArrayBuffer | Uint8Array<ArrayBuffer>;
|
|
1769
2021
|
});
|
|
1770
2022
|
}
|
|
1771
2023
|
export { MessageEvent_2 as MessageEvent }
|
|
@@ -1798,7 +2050,7 @@ export declare class Miniflare {
|
|
|
1798
2050
|
export declare class MiniflareCoreError extends MiniflareError<MiniflareCoreErrorCode> {
|
|
1799
2051
|
}
|
|
1800
2052
|
|
|
1801
|
-
export declare type MiniflareCoreErrorCode = "ERR_RUNTIME_FAILURE" | "ERR_DISPOSED" | "ERR_MODULE_PARSE" | "ERR_MODULE_STRING_SCRIPT" | "ERR_MODULE_DYNAMIC_SPEC" | "ERR_MODULE_RULE" | "ERR_PERSIST_UNSUPPORTED" | "ERR_PERSIST_REMOTE_UNAUTHENTICATED" | "ERR_PERSIST_REMOTE_UNSUPPORTED" | "ERR_FUTURE_COMPATIBILITY_DATE" | "ERR_NO_WORKERS" | "ERR_VALIDATION" | "ERR_DUPLICATE_NAME" | "ERR_DIFFERENT_STORAGE_BACKEND" | "ERR_DIFFERENT_UNIQUE_KEYS" | "ERR_DIFFERENT_PREVENT_EVICTION" | "ERR_MULTIPLE_OUTBOUNDS" | "ERR_INVALID_WRAPPED" | "ERR_CYCLIC";
|
|
2053
|
+
export declare type MiniflareCoreErrorCode = "ERR_RUNTIME_FAILURE" | "ERR_DISPOSED" | "ERR_MODULE_PARSE" | "ERR_MODULE_STRING_SCRIPT" | "ERR_MODULE_DYNAMIC_SPEC" | "ERR_MODULE_RULE" | "ERR_PERSIST_UNSUPPORTED" | "ERR_PERSIST_REMOTE_UNAUTHENTICATED" | "ERR_PERSIST_REMOTE_UNSUPPORTED" | "ERR_FUTURE_COMPATIBILITY_DATE" | "ERR_NO_WORKERS" | "ERR_VALIDATION" | "ERR_DUPLICATE_NAME" | "ERR_DIFFERENT_STORAGE_BACKEND" | "ERR_DIFFERENT_UNIQUE_KEYS" | "ERR_DIFFERENT_PREVENT_EVICTION" | "ERR_MULTIPLE_OUTBOUNDS" | "ERR_INVALID_WRAPPED" | "ERR_CYCLIC" | "ERR_MISSING_INSPECTOR_PROXY_PORT";
|
|
1802
2054
|
|
|
1803
2055
|
export declare class MiniflareError<Code extends string | number = string | number> extends Error {
|
|
1804
2056
|
readonly code: Code;
|
|
@@ -1815,15 +2067,15 @@ export declare type ModuleDefinition = z.infer<typeof ModuleDefinitionSchema>;
|
|
|
1815
2067
|
export declare const ModuleDefinitionSchema: z.ZodObject<{
|
|
1816
2068
|
type: z.ZodEnum<["ESModule", "CommonJS", "NodeJsCompatModule", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
|
|
1817
2069
|
path: z.ZodEffects<z.ZodString, string, string>;
|
|
1818
|
-
contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array
|
|
2070
|
+
contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>;
|
|
1819
2071
|
}, "strip", z.ZodTypeAny, {
|
|
1820
2072
|
type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
1821
2073
|
path: string;
|
|
1822
|
-
contents?: string | Uint8Array | undefined;
|
|
2074
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
1823
2075
|
}, {
|
|
1824
2076
|
type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
1825
2077
|
path: string;
|
|
1826
|
-
contents?: string | Uint8Array | undefined;
|
|
2078
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
1827
2079
|
}>;
|
|
1828
2080
|
|
|
1829
2081
|
export declare type ModuleRule = z.infer<typeof ModuleRuleSchema>;
|
|
@@ -1871,14 +2123,13 @@ export declare const NODE_PLATFORM_IMPL: PlatformImpl<ReadableStream_3>;
|
|
|
1871
2123
|
|
|
1872
2124
|
/**
|
|
1873
2125
|
* We can provide Node.js compatibility in a number of different modes:
|
|
1874
|
-
* - "legacy" - this mode adds compile-time polyfills that are not well maintained and cannot work with workerd runtime builtins.
|
|
1875
2126
|
* - "als": this mode tells the workerd runtime to enable only the Async Local Storage builtin library (accessible via `node:async_hooks`).
|
|
1876
2127
|
* - "v1" - this mode tells the workerd runtime to enable some Node.js builtin libraries (accessible only via `node:...` imports) but no globals.
|
|
1877
2128
|
* - "v2" - this mode tells the workerd runtime to enable more Node.js builtin libraries (accessible both with and without the `node:` prefix)
|
|
1878
2129
|
* and also some Node.js globals such as `Buffer`; it also turns on additional compile-time polyfills for those that are not provided by the runtime.
|
|
1879
2130
|
* - null - no Node.js compatibility.
|
|
1880
2131
|
*/
|
|
1881
|
-
export declare type NodeJSCompatMode = "
|
|
2132
|
+
export declare type NodeJSCompatMode = "als" | "v1" | "v2" | null;
|
|
1882
2133
|
|
|
1883
2134
|
export declare class NoOpLog extends Log {
|
|
1884
2135
|
constructor();
|
|
@@ -1900,7 +2151,82 @@ export declare type OptionalZodTypeOf<T extends z.ZodTypeAny | undefined> = T ex
|
|
|
1900
2151
|
|
|
1901
2152
|
export declare type OverloadReplaceWorkersTypes<T> = T extends (...args: any[]) => any ? UnionToIntersection<ReplaceWorkersTypes<OverloadUnion<T>>> : ReplaceWorkersTypes<T>;
|
|
1902
2153
|
|
|
1903
|
-
export declare type OverloadUnion<T extends (...args: any[]) => any> = Parameters<T> extends [] ? T :
|
|
2154
|
+
export declare type OverloadUnion<T extends (...args: any[]) => any> = Parameters<T> extends [] ? T : OverloadUnion14<T>;
|
|
2155
|
+
|
|
2156
|
+
export declare type OverloadUnion10<T> = T extends {
|
|
2157
|
+
(...args: infer P1): infer R1;
|
|
2158
|
+
(...args: infer P2): infer R2;
|
|
2159
|
+
(...args: infer P3): infer R3;
|
|
2160
|
+
(...args: infer P4): infer R4;
|
|
2161
|
+
(...args: infer P5): infer R5;
|
|
2162
|
+
(...args: infer P6): infer R6;
|
|
2163
|
+
(...args: infer P7): infer R7;
|
|
2164
|
+
(...args: infer P8): infer R8;
|
|
2165
|
+
(...args: infer P9): infer R9;
|
|
2166
|
+
(...args: infer P10): infer R10;
|
|
2167
|
+
} ? ((...args: P1) => R1) | ((...args: P2) => R2) | ((...args: P3) => R3) | ((...args: P4) => R4) | ((...args: P5) => R5) | ((...args: P6) => R6) | ((...args: P7) => R7) | ((...args: P8) => R8) | ((...args: P9) => R9) | ((...args: P10) => R10) : OverloadUnion9<T>;
|
|
2168
|
+
|
|
2169
|
+
export declare type OverloadUnion11<T> = T extends {
|
|
2170
|
+
(...args: infer P1): infer R1;
|
|
2171
|
+
(...args: infer P2): infer R2;
|
|
2172
|
+
(...args: infer P3): infer R3;
|
|
2173
|
+
(...args: infer P4): infer R4;
|
|
2174
|
+
(...args: infer P5): infer R5;
|
|
2175
|
+
(...args: infer P6): infer R6;
|
|
2176
|
+
(...args: infer P7): infer R7;
|
|
2177
|
+
(...args: infer P8): infer R8;
|
|
2178
|
+
(...args: infer P9): infer R9;
|
|
2179
|
+
(...args: infer P10): infer R10;
|
|
2180
|
+
(...args: infer P11): infer R11;
|
|
2181
|
+
} ? ((...args: P1) => R1) | ((...args: P2) => R2) | ((...args: P3) => R3) | ((...args: P4) => R4) | ((...args: P5) => R5) | ((...args: P6) => R6) | ((...args: P7) => R7) | ((...args: P8) => R8) | ((...args: P9) => R9) | ((...args: P10) => R10) | ((...args: P11) => R11) : OverloadUnion10<T>;
|
|
2182
|
+
|
|
2183
|
+
export declare type OverloadUnion12<T> = T extends {
|
|
2184
|
+
(...args: infer P1): infer R1;
|
|
2185
|
+
(...args: infer P2): infer R2;
|
|
2186
|
+
(...args: infer P3): infer R3;
|
|
2187
|
+
(...args: infer P4): infer R4;
|
|
2188
|
+
(...args: infer P5): infer R5;
|
|
2189
|
+
(...args: infer P6): infer R6;
|
|
2190
|
+
(...args: infer P7): infer R7;
|
|
2191
|
+
(...args: infer P8): infer R8;
|
|
2192
|
+
(...args: infer P9): infer R9;
|
|
2193
|
+
(...args: infer P10): infer R10;
|
|
2194
|
+
(...args: infer P11): infer R11;
|
|
2195
|
+
(...args: infer P12): infer R12;
|
|
2196
|
+
} ? ((...args: P1) => R1) | ((...args: P2) => R2) | ((...args: P3) => R3) | ((...args: P4) => R4) | ((...args: P5) => R5) | ((...args: P6) => R6) | ((...args: P7) => R7) | ((...args: P8) => R8) | ((...args: P9) => R9) | ((...args: P10) => R10) | ((...args: P11) => R11) | ((...args: P12) => R12) : OverloadUnion11<T>;
|
|
2197
|
+
|
|
2198
|
+
export declare type OverloadUnion13<T> = T extends {
|
|
2199
|
+
(...args: infer P1): infer R1;
|
|
2200
|
+
(...args: infer P2): infer R2;
|
|
2201
|
+
(...args: infer P3): infer R3;
|
|
2202
|
+
(...args: infer P4): infer R4;
|
|
2203
|
+
(...args: infer P5): infer R5;
|
|
2204
|
+
(...args: infer P6): infer R6;
|
|
2205
|
+
(...args: infer P7): infer R7;
|
|
2206
|
+
(...args: infer P8): infer R8;
|
|
2207
|
+
(...args: infer P9): infer R9;
|
|
2208
|
+
(...args: infer P10): infer R10;
|
|
2209
|
+
(...args: infer P11): infer R11;
|
|
2210
|
+
(...args: infer P12): infer R12;
|
|
2211
|
+
(...args: infer P13): infer R13;
|
|
2212
|
+
} ? ((...args: P1) => R1) | ((...args: P2) => R2) | ((...args: P3) => R3) | ((...args: P4) => R4) | ((...args: P5) => R5) | ((...args: P6) => R6) | ((...args: P7) => R7) | ((...args: P8) => R8) | ((...args: P9) => R9) | ((...args: P10) => R10) | ((...args: P11) => R11) | ((...args: P12) => R12) | ((...args: P13) => R13) : OverloadUnion12<T>;
|
|
2213
|
+
|
|
2214
|
+
export declare type OverloadUnion14<T> = T extends {
|
|
2215
|
+
(...args: infer P1): infer R1;
|
|
2216
|
+
(...args: infer P2): infer R2;
|
|
2217
|
+
(...args: infer P3): infer R3;
|
|
2218
|
+
(...args: infer P4): infer R4;
|
|
2219
|
+
(...args: infer P5): infer R5;
|
|
2220
|
+
(...args: infer P6): infer R6;
|
|
2221
|
+
(...args: infer P7): infer R7;
|
|
2222
|
+
(...args: infer P8): infer R8;
|
|
2223
|
+
(...args: infer P9): infer R9;
|
|
2224
|
+
(...args: infer P10): infer R10;
|
|
2225
|
+
(...args: infer P11): infer R11;
|
|
2226
|
+
(...args: infer P12): infer R12;
|
|
2227
|
+
(...args: infer P13): infer R13;
|
|
2228
|
+
(...args: infer P14): infer R14;
|
|
2229
|
+
} ? ((...args: P1) => R1) | ((...args: P2) => R2) | ((...args: P3) => R3) | ((...args: P4) => R4) | ((...args: P5) => R5) | ((...args: P6) => R6) | ((...args: P7) => R7) | ((...args: P8) => R8) | ((...args: P9) => R9) | ((...args: P10) => R10) | ((...args: P11) => R11) | ((...args: P12) => R12) | ((...args: P13) => R13) | ((...args: P14) => R14) : OverloadUnion13<T>;
|
|
1904
2230
|
|
|
1905
2231
|
export declare type OverloadUnion2<T> = T extends {
|
|
1906
2232
|
(...args: infer P1): infer R1;
|
|
@@ -1996,12 +2322,24 @@ export declare type Persistence = z.infer<typeof PersistenceSchema>;
|
|
|
1996
2322
|
|
|
1997
2323
|
export declare const PersistenceSchema: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
|
|
1998
2324
|
|
|
2325
|
+
export declare const PIPELINE_PLUGIN: Plugin<typeof PipelineOptionsSchema>;
|
|
2326
|
+
|
|
2327
|
+
export declare const PipelineOptionsSchema: z.ZodObject<{
|
|
2328
|
+
pipelines: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodString, "many">]>>;
|
|
2329
|
+
}, "strip", z.ZodTypeAny, {
|
|
2330
|
+
pipelines?: string[] | Record<string, string> | undefined;
|
|
2331
|
+
}, {
|
|
2332
|
+
pipelines?: string[] | Record<string, string> | undefined;
|
|
2333
|
+
}>;
|
|
2334
|
+
|
|
2335
|
+
export declare const PIPELINES_PLUGIN_NAME = "pipelines";
|
|
2336
|
+
|
|
1999
2337
|
export declare interface PlatformImpl<RS> {
|
|
2000
2338
|
Blob: typeof Blob_2;
|
|
2001
2339
|
File: typeof File_2;
|
|
2002
2340
|
Headers: typeof Headers_3;
|
|
2003
|
-
Request: typeof
|
|
2004
|
-
Response: typeof
|
|
2341
|
+
Request: typeof Request_5;
|
|
2342
|
+
Response: typeof Response_5;
|
|
2005
2343
|
isReadableStream(value: unknown): value is RS;
|
|
2006
2344
|
bufferReadableStream(stream: RS): Promise<ArrayBuffer>;
|
|
2007
2345
|
unbufferReadableStream(buffer: ArrayBuffer): RS;
|
|
@@ -2024,33 +2362,33 @@ export declare interface PluginBase<Options extends z.ZodType, SharedOptions ext
|
|
|
2024
2362
|
}
|
|
2025
2363
|
|
|
2026
2364
|
export declare const PLUGINS: {
|
|
2027
|
-
core:
|
|
2365
|
+
core: Plugin_2<z.ZodEffects<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
2028
2366
|
modules: z.ZodArray<z.ZodObject<{
|
|
2029
2367
|
type: z.ZodEnum<["ESModule", "CommonJS", "NodeJsCompatModule", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
|
|
2030
2368
|
path: z.ZodEffects<z.ZodString, string, string>;
|
|
2031
|
-
contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array
|
|
2369
|
+
contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>;
|
|
2032
2370
|
}, "strip", z.ZodTypeAny, {
|
|
2033
2371
|
type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2034
2372
|
path: string;
|
|
2035
|
-
contents?: string | Uint8Array | undefined;
|
|
2373
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
2036
2374
|
}, {
|
|
2037
2375
|
type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2038
2376
|
path: string;
|
|
2039
|
-
contents?: string | Uint8Array | undefined;
|
|
2377
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
2040
2378
|
}>, "many">;
|
|
2041
2379
|
modulesRoot: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2042
2380
|
}, "strip", z.ZodTypeAny, {
|
|
2043
2381
|
modules: {
|
|
2044
2382
|
type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2045
2383
|
path: string;
|
|
2046
|
-
contents?: string | Uint8Array | undefined;
|
|
2384
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
2047
2385
|
}[];
|
|
2048
2386
|
modulesRoot?: string | undefined;
|
|
2049
2387
|
}, {
|
|
2050
2388
|
modules: {
|
|
2051
2389
|
type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2052
2390
|
path: string;
|
|
2053
|
-
contents?: string | Uint8Array | undefined;
|
|
2391
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
2054
2392
|
}[];
|
|
2055
2393
|
modulesRoot?: string | undefined;
|
|
2056
2394
|
}>, z.ZodObject<{
|
|
@@ -2131,19 +2469,20 @@ export declare const PLUGINS: {
|
|
|
2131
2469
|
rootPath: z.ZodOptional<z.ZodEffects<z.ZodString, undefined, string>>;
|
|
2132
2470
|
compatibilityDate: z.ZodOptional<z.ZodString>;
|
|
2133
2471
|
compatibilityFlags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2472
|
+
unsafeInspectorProxy: z.ZodOptional<z.ZodBoolean>;
|
|
2134
2473
|
routes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2135
|
-
bindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<
|
|
2136
|
-
wasmBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array
|
|
2474
|
+
bindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<Json_2, z.ZodTypeDef, Json_2>>>;
|
|
2475
|
+
wasmBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>>;
|
|
2137
2476
|
textBlobBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, string, string>>>;
|
|
2138
|
-
dataBlobBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array
|
|
2139
|
-
serviceBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodLiteral<
|
|
2140
|
-
name: z.ZodUnion<[z.ZodString, z.ZodLiteral<
|
|
2477
|
+
dataBlobBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>>;
|
|
2478
|
+
serviceBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodLiteral<kCurrentWorker_2>, z.ZodObject<{
|
|
2479
|
+
name: z.ZodUnion<[z.ZodString, z.ZodLiteral<kCurrentWorker_2>]>;
|
|
2141
2480
|
entrypoint: z.ZodOptional<z.ZodString>;
|
|
2142
2481
|
}, "strip", z.ZodTypeAny, {
|
|
2143
|
-
name: string |
|
|
2482
|
+
name: string | kCurrentWorker_2;
|
|
2144
2483
|
entrypoint?: string | undefined;
|
|
2145
2484
|
}, {
|
|
2146
|
-
name: string |
|
|
2485
|
+
name: string | kCurrentWorker_2;
|
|
2147
2486
|
entrypoint?: string | undefined;
|
|
2148
2487
|
}>, z.ZodObject<{
|
|
2149
2488
|
network: z.ZodObject<{
|
|
@@ -2163,7 +2502,14 @@ export declare const PLUGINS: {
|
|
|
2163
2502
|
requireClientCerts: z.ZodOptional<z.ZodBoolean>;
|
|
2164
2503
|
trustBrowserCas: z.ZodOptional<z.ZodBoolean>;
|
|
2165
2504
|
trustedCertificates: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2166
|
-
minVersion: z.ZodOptional<z.ZodNativeEnum<
|
|
2505
|
+
minVersion: z.ZodOptional<z.ZodNativeEnum<{
|
|
2506
|
+
readonly GOOD_DEFAULT: 0;
|
|
2507
|
+
readonly SSL3: 1;
|
|
2508
|
+
readonly TLS1DOT0: 2;
|
|
2509
|
+
readonly TLS1DOT1: 3;
|
|
2510
|
+
readonly TLS1DOT2: 4;
|
|
2511
|
+
readonly TLS1DOT3: 5;
|
|
2512
|
+
}>>;
|
|
2167
2513
|
cipherList: z.ZodOptional<z.ZodString>;
|
|
2168
2514
|
}, "strip", z.ZodTypeAny, {
|
|
2169
2515
|
keypair?: {
|
|
@@ -2173,7 +2519,7 @@ export declare const PLUGINS: {
|
|
|
2173
2519
|
requireClientCerts?: boolean | undefined;
|
|
2174
2520
|
trustBrowserCas?: boolean | undefined;
|
|
2175
2521
|
trustedCertificates?: string[] | undefined;
|
|
2176
|
-
minVersion?:
|
|
2522
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2177
2523
|
cipherList?: string | undefined;
|
|
2178
2524
|
}, {
|
|
2179
2525
|
keypair?: {
|
|
@@ -2183,7 +2529,7 @@ export declare const PLUGINS: {
|
|
|
2183
2529
|
requireClientCerts?: boolean | undefined;
|
|
2184
2530
|
trustBrowserCas?: boolean | undefined;
|
|
2185
2531
|
trustedCertificates?: string[] | undefined;
|
|
2186
|
-
minVersion?:
|
|
2532
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2187
2533
|
cipherList?: string | undefined;
|
|
2188
2534
|
}>>;
|
|
2189
2535
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2197,7 +2543,7 @@ export declare const PLUGINS: {
|
|
|
2197
2543
|
requireClientCerts?: boolean | undefined;
|
|
2198
2544
|
trustBrowserCas?: boolean | undefined;
|
|
2199
2545
|
trustedCertificates?: string[] | undefined;
|
|
2200
|
-
minVersion?:
|
|
2546
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2201
2547
|
cipherList?: string | undefined;
|
|
2202
2548
|
} | undefined;
|
|
2203
2549
|
}, {
|
|
@@ -2211,7 +2557,7 @@ export declare const PLUGINS: {
|
|
|
2211
2557
|
requireClientCerts?: boolean | undefined;
|
|
2212
2558
|
trustBrowserCas?: boolean | undefined;
|
|
2213
2559
|
trustedCertificates?: string[] | undefined;
|
|
2214
|
-
minVersion?:
|
|
2560
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2215
2561
|
cipherList?: string | undefined;
|
|
2216
2562
|
} | undefined;
|
|
2217
2563
|
}>;
|
|
@@ -2227,7 +2573,7 @@ export declare const PLUGINS: {
|
|
|
2227
2573
|
requireClientCerts?: boolean | undefined;
|
|
2228
2574
|
trustBrowserCas?: boolean | undefined;
|
|
2229
2575
|
trustedCertificates?: string[] | undefined;
|
|
2230
|
-
minVersion?:
|
|
2576
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2231
2577
|
cipherList?: string | undefined;
|
|
2232
2578
|
} | undefined;
|
|
2233
2579
|
};
|
|
@@ -2243,16 +2589,16 @@ export declare const PLUGINS: {
|
|
|
2243
2589
|
requireClientCerts?: boolean | undefined;
|
|
2244
2590
|
trustBrowserCas?: boolean | undefined;
|
|
2245
2591
|
trustedCertificates?: string[] | undefined;
|
|
2246
|
-
minVersion?:
|
|
2592
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2247
2593
|
cipherList?: string | undefined;
|
|
2248
2594
|
} | undefined;
|
|
2249
2595
|
};
|
|
2250
2596
|
}>, z.ZodObject<{
|
|
2251
|
-
external: z.ZodType<
|
|
2597
|
+
external: z.ZodType<ExternalServer_3, z.ZodTypeDef, ExternalServer_3>;
|
|
2252
2598
|
}, "strip", z.ZodTypeAny, {
|
|
2253
|
-
external:
|
|
2599
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2254
2600
|
}, {
|
|
2255
|
-
external:
|
|
2601
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2256
2602
|
}>, z.ZodObject<{
|
|
2257
2603
|
disk: z.ZodObject<{
|
|
2258
2604
|
path: z.ZodString;
|
|
@@ -2274,28 +2620,28 @@ export declare const PLUGINS: {
|
|
|
2274
2620
|
path: string;
|
|
2275
2621
|
writable?: boolean | undefined;
|
|
2276
2622
|
};
|
|
2277
|
-
}>, z.ZodType<(request:
|
|
2623
|
+
}>, z.ZodType<(request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>, z.ZodTypeDef, (request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>>]>>>;
|
|
2278
2624
|
wrappedBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
2279
2625
|
scriptName: z.ZodString;
|
|
2280
2626
|
entrypoint: z.ZodOptional<z.ZodString>;
|
|
2281
|
-
bindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<
|
|
2627
|
+
bindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<Json_2, z.ZodTypeDef, Json_2>>>;
|
|
2282
2628
|
}, "strip", z.ZodTypeAny, {
|
|
2283
2629
|
scriptName: string;
|
|
2284
2630
|
entrypoint?: string | undefined;
|
|
2285
|
-
bindings?: Record<string,
|
|
2631
|
+
bindings?: Record<string, Json_2> | undefined;
|
|
2286
2632
|
}, {
|
|
2287
2633
|
scriptName: string;
|
|
2288
2634
|
entrypoint?: string | undefined;
|
|
2289
|
-
bindings?: Record<string,
|
|
2635
|
+
bindings?: Record<string, Json_2> | undefined;
|
|
2290
2636
|
}>]>>>;
|
|
2291
|
-
outboundService: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<
|
|
2292
|
-
name: z.ZodUnion<[z.ZodString, z.ZodLiteral<
|
|
2637
|
+
outboundService: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<kCurrentWorker_2>, z.ZodObject<{
|
|
2638
|
+
name: z.ZodUnion<[z.ZodString, z.ZodLiteral<kCurrentWorker_2>]>;
|
|
2293
2639
|
entrypoint: z.ZodOptional<z.ZodString>;
|
|
2294
2640
|
}, "strip", z.ZodTypeAny, {
|
|
2295
|
-
name: string |
|
|
2641
|
+
name: string | kCurrentWorker_2;
|
|
2296
2642
|
entrypoint?: string | undefined;
|
|
2297
2643
|
}, {
|
|
2298
|
-
name: string |
|
|
2644
|
+
name: string | kCurrentWorker_2;
|
|
2299
2645
|
entrypoint?: string | undefined;
|
|
2300
2646
|
}>, z.ZodObject<{
|
|
2301
2647
|
network: z.ZodObject<{
|
|
@@ -2315,7 +2661,14 @@ export declare const PLUGINS: {
|
|
|
2315
2661
|
requireClientCerts: z.ZodOptional<z.ZodBoolean>;
|
|
2316
2662
|
trustBrowserCas: z.ZodOptional<z.ZodBoolean>;
|
|
2317
2663
|
trustedCertificates: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2318
|
-
minVersion: z.ZodOptional<z.ZodNativeEnum<
|
|
2664
|
+
minVersion: z.ZodOptional<z.ZodNativeEnum<{
|
|
2665
|
+
readonly GOOD_DEFAULT: 0;
|
|
2666
|
+
readonly SSL3: 1;
|
|
2667
|
+
readonly TLS1DOT0: 2;
|
|
2668
|
+
readonly TLS1DOT1: 3;
|
|
2669
|
+
readonly TLS1DOT2: 4;
|
|
2670
|
+
readonly TLS1DOT3: 5;
|
|
2671
|
+
}>>;
|
|
2319
2672
|
cipherList: z.ZodOptional<z.ZodString>;
|
|
2320
2673
|
}, "strip", z.ZodTypeAny, {
|
|
2321
2674
|
keypair?: {
|
|
@@ -2325,7 +2678,7 @@ export declare const PLUGINS: {
|
|
|
2325
2678
|
requireClientCerts?: boolean | undefined;
|
|
2326
2679
|
trustBrowserCas?: boolean | undefined;
|
|
2327
2680
|
trustedCertificates?: string[] | undefined;
|
|
2328
|
-
minVersion?:
|
|
2681
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2329
2682
|
cipherList?: string | undefined;
|
|
2330
2683
|
}, {
|
|
2331
2684
|
keypair?: {
|
|
@@ -2335,7 +2688,7 @@ export declare const PLUGINS: {
|
|
|
2335
2688
|
requireClientCerts?: boolean | undefined;
|
|
2336
2689
|
trustBrowserCas?: boolean | undefined;
|
|
2337
2690
|
trustedCertificates?: string[] | undefined;
|
|
2338
|
-
minVersion?:
|
|
2691
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2339
2692
|
cipherList?: string | undefined;
|
|
2340
2693
|
}>>;
|
|
2341
2694
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2349,7 +2702,7 @@ export declare const PLUGINS: {
|
|
|
2349
2702
|
requireClientCerts?: boolean | undefined;
|
|
2350
2703
|
trustBrowserCas?: boolean | undefined;
|
|
2351
2704
|
trustedCertificates?: string[] | undefined;
|
|
2352
|
-
minVersion?:
|
|
2705
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2353
2706
|
cipherList?: string | undefined;
|
|
2354
2707
|
} | undefined;
|
|
2355
2708
|
}, {
|
|
@@ -2363,7 +2716,7 @@ export declare const PLUGINS: {
|
|
|
2363
2716
|
requireClientCerts?: boolean | undefined;
|
|
2364
2717
|
trustBrowserCas?: boolean | undefined;
|
|
2365
2718
|
trustedCertificates?: string[] | undefined;
|
|
2366
|
-
minVersion?:
|
|
2719
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2367
2720
|
cipherList?: string | undefined;
|
|
2368
2721
|
} | undefined;
|
|
2369
2722
|
}>;
|
|
@@ -2379,7 +2732,7 @@ export declare const PLUGINS: {
|
|
|
2379
2732
|
requireClientCerts?: boolean | undefined;
|
|
2380
2733
|
trustBrowserCas?: boolean | undefined;
|
|
2381
2734
|
trustedCertificates?: string[] | undefined;
|
|
2382
|
-
minVersion?:
|
|
2735
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2383
2736
|
cipherList?: string | undefined;
|
|
2384
2737
|
} | undefined;
|
|
2385
2738
|
};
|
|
@@ -2395,16 +2748,16 @@ export declare const PLUGINS: {
|
|
|
2395
2748
|
requireClientCerts?: boolean | undefined;
|
|
2396
2749
|
trustBrowserCas?: boolean | undefined;
|
|
2397
2750
|
trustedCertificates?: string[] | undefined;
|
|
2398
|
-
minVersion?:
|
|
2751
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2399
2752
|
cipherList?: string | undefined;
|
|
2400
2753
|
} | undefined;
|
|
2401
2754
|
};
|
|
2402
2755
|
}>, z.ZodObject<{
|
|
2403
|
-
external: z.ZodType<
|
|
2756
|
+
external: z.ZodType<ExternalServer_3, z.ZodTypeDef, ExternalServer_3>;
|
|
2404
2757
|
}, "strip", z.ZodTypeAny, {
|
|
2405
|
-
external:
|
|
2758
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2406
2759
|
}, {
|
|
2407
|
-
external:
|
|
2760
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2408
2761
|
}>, z.ZodObject<{
|
|
2409
2762
|
disk: z.ZodObject<{
|
|
2410
2763
|
path: z.ZodString;
|
|
@@ -2426,7 +2779,7 @@ export declare const PLUGINS: {
|
|
|
2426
2779
|
path: string;
|
|
2427
2780
|
writable?: boolean | undefined;
|
|
2428
2781
|
};
|
|
2429
|
-
}>, z.ZodType<(request:
|
|
2782
|
+
}>, z.ZodType<(request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>, z.ZodTypeDef, (request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>>]>>;
|
|
2430
2783
|
fetchMock: z.ZodOptional<z.ZodType<MockAgent<MockAgent>, z.ZodTypeDef, MockAgent<MockAgent>>>;
|
|
2431
2784
|
unsafeEphemeralDurableObjects: z.ZodOptional<z.ZodBoolean>;
|
|
2432
2785
|
unsafeDirectSockets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2453,13 +2806,14 @@ export declare const PLUGINS: {
|
|
|
2453
2806
|
rootPath?: undefined;
|
|
2454
2807
|
compatibilityDate?: string | undefined;
|
|
2455
2808
|
compatibilityFlags?: string[] | undefined;
|
|
2809
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
2456
2810
|
routes?: string[] | undefined;
|
|
2457
|
-
bindings?: Record<string,
|
|
2458
|
-
wasmBindings?: Record<string, string | Uint8Array
|
|
2811
|
+
bindings?: Record<string, Json_2> | undefined;
|
|
2812
|
+
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
2459
2813
|
textBlobBindings?: Record<string, string> | undefined;
|
|
2460
|
-
dataBlobBindings?: Record<string, string | Uint8Array
|
|
2461
|
-
serviceBindings?: Record<string, string |
|
|
2462
|
-
name: string |
|
|
2814
|
+
dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
2815
|
+
serviceBindings?: Record<string, string | kCurrentWorker_2 | {
|
|
2816
|
+
name: string | kCurrentWorker_2;
|
|
2463
2817
|
entrypoint?: string | undefined;
|
|
2464
2818
|
} | {
|
|
2465
2819
|
network: {
|
|
@@ -2473,25 +2827,25 @@ export declare const PLUGINS: {
|
|
|
2473
2827
|
requireClientCerts?: boolean | undefined;
|
|
2474
2828
|
trustBrowserCas?: boolean | undefined;
|
|
2475
2829
|
trustedCertificates?: string[] | undefined;
|
|
2476
|
-
minVersion?:
|
|
2830
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2477
2831
|
cipherList?: string | undefined;
|
|
2478
2832
|
} | undefined;
|
|
2479
2833
|
};
|
|
2480
2834
|
} | {
|
|
2481
|
-
external:
|
|
2835
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2482
2836
|
} | {
|
|
2483
2837
|
disk: {
|
|
2484
2838
|
path: string;
|
|
2485
2839
|
writable?: boolean | undefined;
|
|
2486
2840
|
};
|
|
2487
|
-
} | ((request:
|
|
2841
|
+
} | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>)> | undefined;
|
|
2488
2842
|
wrappedBindings?: Record<string, string | {
|
|
2489
2843
|
scriptName: string;
|
|
2490
2844
|
entrypoint?: string | undefined;
|
|
2491
|
-
bindings?: Record<string,
|
|
2845
|
+
bindings?: Record<string, Json_2> | undefined;
|
|
2492
2846
|
}> | undefined;
|
|
2493
|
-
outboundService?: string |
|
|
2494
|
-
name: string |
|
|
2847
|
+
outboundService?: string | kCurrentWorker_2 | {
|
|
2848
|
+
name: string | kCurrentWorker_2;
|
|
2495
2849
|
entrypoint?: string | undefined;
|
|
2496
2850
|
} | {
|
|
2497
2851
|
network: {
|
|
@@ -2505,18 +2859,18 @@ export declare const PLUGINS: {
|
|
|
2505
2859
|
requireClientCerts?: boolean | undefined;
|
|
2506
2860
|
trustBrowserCas?: boolean | undefined;
|
|
2507
2861
|
trustedCertificates?: string[] | undefined;
|
|
2508
|
-
minVersion?:
|
|
2862
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2509
2863
|
cipherList?: string | undefined;
|
|
2510
2864
|
} | undefined;
|
|
2511
2865
|
};
|
|
2512
2866
|
} | {
|
|
2513
|
-
external:
|
|
2867
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2514
2868
|
} | {
|
|
2515
2869
|
disk: {
|
|
2516
2870
|
path: string;
|
|
2517
2871
|
writable?: boolean | undefined;
|
|
2518
2872
|
};
|
|
2519
|
-
} | ((request:
|
|
2873
|
+
} | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
|
|
2520
2874
|
fetchMock?: MockAgent<MockAgent> | undefined;
|
|
2521
2875
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
2522
2876
|
unsafeDirectSockets?: {
|
|
@@ -2533,13 +2887,14 @@ export declare const PLUGINS: {
|
|
|
2533
2887
|
rootPath?: string | undefined;
|
|
2534
2888
|
compatibilityDate?: string | undefined;
|
|
2535
2889
|
compatibilityFlags?: string[] | undefined;
|
|
2890
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
2536
2891
|
routes?: string[] | undefined;
|
|
2537
|
-
bindings?: Record<string,
|
|
2538
|
-
wasmBindings?: Record<string, string | Uint8Array
|
|
2892
|
+
bindings?: Record<string, Json_2> | undefined;
|
|
2893
|
+
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
2539
2894
|
textBlobBindings?: Record<string, string> | undefined;
|
|
2540
|
-
dataBlobBindings?: Record<string, string | Uint8Array
|
|
2541
|
-
serviceBindings?: Record<string, string |
|
|
2542
|
-
name: string |
|
|
2895
|
+
dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
2896
|
+
serviceBindings?: Record<string, string | kCurrentWorker_2 | {
|
|
2897
|
+
name: string | kCurrentWorker_2;
|
|
2543
2898
|
entrypoint?: string | undefined;
|
|
2544
2899
|
} | {
|
|
2545
2900
|
network: {
|
|
@@ -2553,25 +2908,25 @@ export declare const PLUGINS: {
|
|
|
2553
2908
|
requireClientCerts?: boolean | undefined;
|
|
2554
2909
|
trustBrowserCas?: boolean | undefined;
|
|
2555
2910
|
trustedCertificates?: string[] | undefined;
|
|
2556
|
-
minVersion?:
|
|
2911
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2557
2912
|
cipherList?: string | undefined;
|
|
2558
2913
|
} | undefined;
|
|
2559
2914
|
};
|
|
2560
2915
|
} | {
|
|
2561
|
-
external:
|
|
2916
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2562
2917
|
} | {
|
|
2563
2918
|
disk: {
|
|
2564
2919
|
path: string;
|
|
2565
2920
|
writable?: boolean | undefined;
|
|
2566
2921
|
};
|
|
2567
|
-
} | ((request:
|
|
2922
|
+
} | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>)> | undefined;
|
|
2568
2923
|
wrappedBindings?: Record<string, string | {
|
|
2569
2924
|
scriptName: string;
|
|
2570
2925
|
entrypoint?: string | undefined;
|
|
2571
|
-
bindings?: Record<string,
|
|
2926
|
+
bindings?: Record<string, Json_2> | undefined;
|
|
2572
2927
|
}> | undefined;
|
|
2573
|
-
outboundService?: string |
|
|
2574
|
-
name: string |
|
|
2928
|
+
outboundService?: string | kCurrentWorker_2 | {
|
|
2929
|
+
name: string | kCurrentWorker_2;
|
|
2575
2930
|
entrypoint?: string | undefined;
|
|
2576
2931
|
} | {
|
|
2577
2932
|
network: {
|
|
@@ -2585,18 +2940,18 @@ export declare const PLUGINS: {
|
|
|
2585
2940
|
requireClientCerts?: boolean | undefined;
|
|
2586
2941
|
trustBrowserCas?: boolean | undefined;
|
|
2587
2942
|
trustedCertificates?: string[] | undefined;
|
|
2588
|
-
minVersion?:
|
|
2943
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2589
2944
|
cipherList?: string | undefined;
|
|
2590
2945
|
} | undefined;
|
|
2591
2946
|
};
|
|
2592
2947
|
} | {
|
|
2593
|
-
external:
|
|
2948
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2594
2949
|
} | {
|
|
2595
2950
|
disk: {
|
|
2596
2951
|
path: string;
|
|
2597
2952
|
writable?: boolean | undefined;
|
|
2598
2953
|
};
|
|
2599
|
-
} | ((request:
|
|
2954
|
+
} | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
|
|
2600
2955
|
fetchMock?: MockAgent<MockAgent> | undefined;
|
|
2601
2956
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
2602
2957
|
unsafeDirectSockets?: {
|
|
@@ -2612,7 +2967,7 @@ export declare const PLUGINS: {
|
|
|
2612
2967
|
modules: {
|
|
2613
2968
|
type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2614
2969
|
path: string;
|
|
2615
|
-
contents?: string | Uint8Array | undefined;
|
|
2970
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
2616
2971
|
}[];
|
|
2617
2972
|
modulesRoot?: string | undefined;
|
|
2618
2973
|
} & {
|
|
@@ -2620,13 +2975,14 @@ export declare const PLUGINS: {
|
|
|
2620
2975
|
rootPath?: undefined;
|
|
2621
2976
|
compatibilityDate?: string | undefined;
|
|
2622
2977
|
compatibilityFlags?: string[] | undefined;
|
|
2978
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
2623
2979
|
routes?: string[] | undefined;
|
|
2624
|
-
bindings?: Record<string,
|
|
2625
|
-
wasmBindings?: Record<string, string | Uint8Array
|
|
2980
|
+
bindings?: Record<string, Json_2> | undefined;
|
|
2981
|
+
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
2626
2982
|
textBlobBindings?: Record<string, string> | undefined;
|
|
2627
|
-
dataBlobBindings?: Record<string, string | Uint8Array
|
|
2628
|
-
serviceBindings?: Record<string, string |
|
|
2629
|
-
name: string |
|
|
2983
|
+
dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
2984
|
+
serviceBindings?: Record<string, string | kCurrentWorker_2 | {
|
|
2985
|
+
name: string | kCurrentWorker_2;
|
|
2630
2986
|
entrypoint?: string | undefined;
|
|
2631
2987
|
} | {
|
|
2632
2988
|
network: {
|
|
@@ -2640,25 +2996,25 @@ export declare const PLUGINS: {
|
|
|
2640
2996
|
requireClientCerts?: boolean | undefined;
|
|
2641
2997
|
trustBrowserCas?: boolean | undefined;
|
|
2642
2998
|
trustedCertificates?: string[] | undefined;
|
|
2643
|
-
minVersion?:
|
|
2999
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2644
3000
|
cipherList?: string | undefined;
|
|
2645
3001
|
} | undefined;
|
|
2646
3002
|
};
|
|
2647
3003
|
} | {
|
|
2648
|
-
external:
|
|
3004
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2649
3005
|
} | {
|
|
2650
3006
|
disk: {
|
|
2651
3007
|
path: string;
|
|
2652
3008
|
writable?: boolean | undefined;
|
|
2653
3009
|
};
|
|
2654
|
-
} | ((request:
|
|
3010
|
+
} | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>)> | undefined;
|
|
2655
3011
|
wrappedBindings?: Record<string, string | {
|
|
2656
3012
|
scriptName: string;
|
|
2657
3013
|
entrypoint?: string | undefined;
|
|
2658
|
-
bindings?: Record<string,
|
|
3014
|
+
bindings?: Record<string, Json_2> | undefined;
|
|
2659
3015
|
}> | undefined;
|
|
2660
|
-
outboundService?: string |
|
|
2661
|
-
name: string |
|
|
3016
|
+
outboundService?: string | kCurrentWorker_2 | {
|
|
3017
|
+
name: string | kCurrentWorker_2;
|
|
2662
3018
|
entrypoint?: string | undefined;
|
|
2663
3019
|
} | {
|
|
2664
3020
|
network: {
|
|
@@ -2672,18 +3028,18 @@ export declare const PLUGINS: {
|
|
|
2672
3028
|
requireClientCerts?: boolean | undefined;
|
|
2673
3029
|
trustBrowserCas?: boolean | undefined;
|
|
2674
3030
|
trustedCertificates?: string[] | undefined;
|
|
2675
|
-
minVersion?:
|
|
3031
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2676
3032
|
cipherList?: string | undefined;
|
|
2677
3033
|
} | undefined;
|
|
2678
3034
|
};
|
|
2679
3035
|
} | {
|
|
2680
|
-
external:
|
|
3036
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2681
3037
|
} | {
|
|
2682
3038
|
disk: {
|
|
2683
3039
|
path: string;
|
|
2684
3040
|
writable?: boolean | undefined;
|
|
2685
3041
|
};
|
|
2686
|
-
} | ((request:
|
|
3042
|
+
} | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
|
|
2687
3043
|
fetchMock?: MockAgent<MockAgent> | undefined;
|
|
2688
3044
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
2689
3045
|
unsafeDirectSockets?: {
|
|
@@ -2710,13 +3066,14 @@ export declare const PLUGINS: {
|
|
|
2710
3066
|
rootPath?: undefined;
|
|
2711
3067
|
compatibilityDate?: string | undefined;
|
|
2712
3068
|
compatibilityFlags?: string[] | undefined;
|
|
3069
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
2713
3070
|
routes?: string[] | undefined;
|
|
2714
|
-
bindings?: Record<string,
|
|
2715
|
-
wasmBindings?: Record<string, string | Uint8Array
|
|
3071
|
+
bindings?: Record<string, Json_2> | undefined;
|
|
3072
|
+
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
2716
3073
|
textBlobBindings?: Record<string, string> | undefined;
|
|
2717
|
-
dataBlobBindings?: Record<string, string | Uint8Array
|
|
2718
|
-
serviceBindings?: Record<string, string |
|
|
2719
|
-
name: string |
|
|
3074
|
+
dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
3075
|
+
serviceBindings?: Record<string, string | kCurrentWorker_2 | {
|
|
3076
|
+
name: string | kCurrentWorker_2;
|
|
2720
3077
|
entrypoint?: string | undefined;
|
|
2721
3078
|
} | {
|
|
2722
3079
|
network: {
|
|
@@ -2730,25 +3087,25 @@ export declare const PLUGINS: {
|
|
|
2730
3087
|
requireClientCerts?: boolean | undefined;
|
|
2731
3088
|
trustBrowserCas?: boolean | undefined;
|
|
2732
3089
|
trustedCertificates?: string[] | undefined;
|
|
2733
|
-
minVersion?:
|
|
3090
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2734
3091
|
cipherList?: string | undefined;
|
|
2735
3092
|
} | undefined;
|
|
2736
3093
|
};
|
|
2737
3094
|
} | {
|
|
2738
|
-
external:
|
|
3095
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2739
3096
|
} | {
|
|
2740
3097
|
disk: {
|
|
2741
3098
|
path: string;
|
|
2742
3099
|
writable?: boolean | undefined;
|
|
2743
3100
|
};
|
|
2744
|
-
} | ((request:
|
|
3101
|
+
} | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>)> | undefined;
|
|
2745
3102
|
wrappedBindings?: Record<string, string | {
|
|
2746
3103
|
scriptName: string;
|
|
2747
3104
|
entrypoint?: string | undefined;
|
|
2748
|
-
bindings?: Record<string,
|
|
3105
|
+
bindings?: Record<string, Json_2> | undefined;
|
|
2749
3106
|
}> | undefined;
|
|
2750
|
-
outboundService?: string |
|
|
2751
|
-
name: string |
|
|
3107
|
+
outboundService?: string | kCurrentWorker_2 | {
|
|
3108
|
+
name: string | kCurrentWorker_2;
|
|
2752
3109
|
entrypoint?: string | undefined;
|
|
2753
3110
|
} | {
|
|
2754
3111
|
network: {
|
|
@@ -2762,18 +3119,18 @@ export declare const PLUGINS: {
|
|
|
2762
3119
|
requireClientCerts?: boolean | undefined;
|
|
2763
3120
|
trustBrowserCas?: boolean | undefined;
|
|
2764
3121
|
trustedCertificates?: string[] | undefined;
|
|
2765
|
-
minVersion?:
|
|
3122
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2766
3123
|
cipherList?: string | undefined;
|
|
2767
3124
|
} | undefined;
|
|
2768
3125
|
};
|
|
2769
3126
|
} | {
|
|
2770
|
-
external:
|
|
3127
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2771
3128
|
} | {
|
|
2772
3129
|
disk: {
|
|
2773
3130
|
path: string;
|
|
2774
3131
|
writable?: boolean | undefined;
|
|
2775
3132
|
};
|
|
2776
|
-
} | ((request:
|
|
3133
|
+
} | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
|
|
2777
3134
|
fetchMock?: MockAgent<MockAgent> | undefined;
|
|
2778
3135
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
2779
3136
|
unsafeDirectSockets?: {
|
|
@@ -2799,13 +3156,14 @@ export declare const PLUGINS: {
|
|
|
2799
3156
|
rootPath?: undefined;
|
|
2800
3157
|
compatibilityDate?: string | undefined;
|
|
2801
3158
|
compatibilityFlags?: string[] | undefined;
|
|
3159
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
2802
3160
|
routes?: string[] | undefined;
|
|
2803
|
-
bindings?: Record<string,
|
|
2804
|
-
wasmBindings?: Record<string, string | Uint8Array
|
|
3161
|
+
bindings?: Record<string, Json_2> | undefined;
|
|
3162
|
+
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
2805
3163
|
textBlobBindings?: Record<string, string> | undefined;
|
|
2806
|
-
dataBlobBindings?: Record<string, string | Uint8Array
|
|
2807
|
-
serviceBindings?: Record<string, string |
|
|
2808
|
-
name: string |
|
|
3164
|
+
dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
3165
|
+
serviceBindings?: Record<string, string | kCurrentWorker_2 | {
|
|
3166
|
+
name: string | kCurrentWorker_2;
|
|
2809
3167
|
entrypoint?: string | undefined;
|
|
2810
3168
|
} | {
|
|
2811
3169
|
network: {
|
|
@@ -2819,25 +3177,25 @@ export declare const PLUGINS: {
|
|
|
2819
3177
|
requireClientCerts?: boolean | undefined;
|
|
2820
3178
|
trustBrowserCas?: boolean | undefined;
|
|
2821
3179
|
trustedCertificates?: string[] | undefined;
|
|
2822
|
-
minVersion?:
|
|
3180
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2823
3181
|
cipherList?: string | undefined;
|
|
2824
3182
|
} | undefined;
|
|
2825
3183
|
};
|
|
2826
3184
|
} | {
|
|
2827
|
-
external:
|
|
3185
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2828
3186
|
} | {
|
|
2829
3187
|
disk: {
|
|
2830
3188
|
path: string;
|
|
2831
3189
|
writable?: boolean | undefined;
|
|
2832
3190
|
};
|
|
2833
|
-
} | ((request:
|
|
3191
|
+
} | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>)> | undefined;
|
|
2834
3192
|
wrappedBindings?: Record<string, string | {
|
|
2835
3193
|
scriptName: string;
|
|
2836
3194
|
entrypoint?: string | undefined;
|
|
2837
|
-
bindings?: Record<string,
|
|
3195
|
+
bindings?: Record<string, Json_2> | undefined;
|
|
2838
3196
|
}> | undefined;
|
|
2839
|
-
outboundService?: string |
|
|
2840
|
-
name: string |
|
|
3197
|
+
outboundService?: string | kCurrentWorker_2 | {
|
|
3198
|
+
name: string | kCurrentWorker_2;
|
|
2841
3199
|
entrypoint?: string | undefined;
|
|
2842
3200
|
} | {
|
|
2843
3201
|
network: {
|
|
@@ -2851,18 +3209,18 @@ export declare const PLUGINS: {
|
|
|
2851
3209
|
requireClientCerts?: boolean | undefined;
|
|
2852
3210
|
trustBrowserCas?: boolean | undefined;
|
|
2853
3211
|
trustedCertificates?: string[] | undefined;
|
|
2854
|
-
minVersion?:
|
|
3212
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2855
3213
|
cipherList?: string | undefined;
|
|
2856
3214
|
} | undefined;
|
|
2857
3215
|
};
|
|
2858
3216
|
} | {
|
|
2859
|
-
external:
|
|
3217
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2860
3218
|
} | {
|
|
2861
3219
|
disk: {
|
|
2862
3220
|
path: string;
|
|
2863
3221
|
writable?: boolean | undefined;
|
|
2864
3222
|
};
|
|
2865
|
-
} | ((request:
|
|
3223
|
+
} | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
|
|
2866
3224
|
fetchMock?: MockAgent<MockAgent> | undefined;
|
|
2867
3225
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
2868
3226
|
unsafeDirectSockets?: {
|
|
@@ -2878,7 +3236,7 @@ export declare const PLUGINS: {
|
|
|
2878
3236
|
modules: {
|
|
2879
3237
|
type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2880
3238
|
path: string;
|
|
2881
|
-
contents?: string | Uint8Array | undefined;
|
|
3239
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
2882
3240
|
}[];
|
|
2883
3241
|
modulesRoot?: string | undefined;
|
|
2884
3242
|
} | {
|
|
@@ -2905,13 +3263,14 @@ export declare const PLUGINS: {
|
|
|
2905
3263
|
rootPath?: string | undefined;
|
|
2906
3264
|
compatibilityDate?: string | undefined;
|
|
2907
3265
|
compatibilityFlags?: string[] | undefined;
|
|
3266
|
+
unsafeInspectorProxy?: boolean | undefined;
|
|
2908
3267
|
routes?: string[] | undefined;
|
|
2909
|
-
bindings?: Record<string,
|
|
2910
|
-
wasmBindings?: Record<string, string | Uint8Array
|
|
3268
|
+
bindings?: Record<string, Json_2> | undefined;
|
|
3269
|
+
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
2911
3270
|
textBlobBindings?: Record<string, string> | undefined;
|
|
2912
|
-
dataBlobBindings?: Record<string, string | Uint8Array
|
|
2913
|
-
serviceBindings?: Record<string, string |
|
|
2914
|
-
name: string |
|
|
3271
|
+
dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
3272
|
+
serviceBindings?: Record<string, string | kCurrentWorker_2 | {
|
|
3273
|
+
name: string | kCurrentWorker_2;
|
|
2915
3274
|
entrypoint?: string | undefined;
|
|
2916
3275
|
} | {
|
|
2917
3276
|
network: {
|
|
@@ -2925,25 +3284,25 @@ export declare const PLUGINS: {
|
|
|
2925
3284
|
requireClientCerts?: boolean | undefined;
|
|
2926
3285
|
trustBrowserCas?: boolean | undefined;
|
|
2927
3286
|
trustedCertificates?: string[] | undefined;
|
|
2928
|
-
minVersion?:
|
|
3287
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2929
3288
|
cipherList?: string | undefined;
|
|
2930
3289
|
} | undefined;
|
|
2931
3290
|
};
|
|
2932
3291
|
} | {
|
|
2933
|
-
external:
|
|
3292
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2934
3293
|
} | {
|
|
2935
3294
|
disk: {
|
|
2936
3295
|
path: string;
|
|
2937
3296
|
writable?: boolean | undefined;
|
|
2938
3297
|
};
|
|
2939
|
-
} | ((request:
|
|
3298
|
+
} | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>)> | undefined;
|
|
2940
3299
|
wrappedBindings?: Record<string, string | {
|
|
2941
3300
|
scriptName: string;
|
|
2942
3301
|
entrypoint?: string | undefined;
|
|
2943
|
-
bindings?: Record<string,
|
|
3302
|
+
bindings?: Record<string, Json_2> | undefined;
|
|
2944
3303
|
}> | undefined;
|
|
2945
|
-
outboundService?: string |
|
|
2946
|
-
name: string |
|
|
3304
|
+
outboundService?: string | kCurrentWorker_2 | {
|
|
3305
|
+
name: string | kCurrentWorker_2;
|
|
2947
3306
|
entrypoint?: string | undefined;
|
|
2948
3307
|
} | {
|
|
2949
3308
|
network: {
|
|
@@ -2957,18 +3316,18 @@ export declare const PLUGINS: {
|
|
|
2957
3316
|
requireClientCerts?: boolean | undefined;
|
|
2958
3317
|
trustBrowserCas?: boolean | undefined;
|
|
2959
3318
|
trustedCertificates?: string[] | undefined;
|
|
2960
|
-
minVersion?:
|
|
3319
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2961
3320
|
cipherList?: string | undefined;
|
|
2962
3321
|
} | undefined;
|
|
2963
3322
|
};
|
|
2964
3323
|
} | {
|
|
2965
|
-
external:
|
|
3324
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2966
3325
|
} | {
|
|
2967
3326
|
disk: {
|
|
2968
3327
|
path: string;
|
|
2969
3328
|
writable?: boolean | undefined;
|
|
2970
3329
|
};
|
|
2971
|
-
} | ((request:
|
|
3330
|
+
} | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
|
|
2972
3331
|
fetchMock?: MockAgent<MockAgent> | undefined;
|
|
2973
3332
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
2974
3333
|
unsafeDirectSockets?: {
|
|
@@ -2991,13 +3350,13 @@ export declare const PLUGINS: {
|
|
|
2991
3350
|
httpsCertPath: z.ZodOptional<z.ZodString>;
|
|
2992
3351
|
inspectorPort: z.ZodOptional<z.ZodNumber>;
|
|
2993
3352
|
verbose: z.ZodOptional<z.ZodBoolean>;
|
|
2994
|
-
log: z.ZodOptional<z.ZodType<
|
|
3353
|
+
log: z.ZodOptional<z.ZodType<Log_2, z.ZodTypeDef, Log_2>>;
|
|
2995
3354
|
handleRuntimeStdio: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodType<Readable, z.ZodTypeDef, Readable>, z.ZodType<Readable, z.ZodTypeDef, Readable>], null>, z.ZodUnknown>>;
|
|
2996
3355
|
upstream: z.ZodOptional<z.ZodString>;
|
|
2997
3356
|
cf: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>;
|
|
2998
3357
|
liveReload: z.ZodOptional<z.ZodBoolean>;
|
|
2999
3358
|
unsafeProxySharedSecret: z.ZodOptional<z.ZodString>;
|
|
3000
|
-
unsafeModuleFallbackService: z.ZodOptional<z.ZodType<(request:
|
|
3359
|
+
unsafeModuleFallbackService: z.ZodOptional<z.ZodType<(request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>, z.ZodTypeDef, (request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>>>;
|
|
3001
3360
|
unsafeStickyBlobs: z.ZodOptional<z.ZodBoolean>;
|
|
3002
3361
|
}, "strip", z.ZodTypeAny, {
|
|
3003
3362
|
rootPath?: undefined;
|
|
@@ -3010,13 +3369,13 @@ export declare const PLUGINS: {
|
|
|
3010
3369
|
httpsCertPath?: string | undefined;
|
|
3011
3370
|
inspectorPort?: number | undefined;
|
|
3012
3371
|
verbose?: boolean | undefined;
|
|
3013
|
-
log?:
|
|
3372
|
+
log?: Log_2 | undefined;
|
|
3014
3373
|
handleRuntimeStdio?: ((args_0: Readable, args_1: Readable) => unknown) | undefined;
|
|
3015
3374
|
upstream?: string | undefined;
|
|
3016
3375
|
cf?: string | boolean | Record<string, any> | undefined;
|
|
3017
3376
|
liveReload?: boolean | undefined;
|
|
3018
3377
|
unsafeProxySharedSecret?: string | undefined;
|
|
3019
|
-
unsafeModuleFallbackService?: ((request:
|
|
3378
|
+
unsafeModuleFallbackService?: ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
|
|
3020
3379
|
unsafeStickyBlobs?: boolean | undefined;
|
|
3021
3380
|
}, {
|
|
3022
3381
|
rootPath?: string | undefined;
|
|
@@ -3029,16 +3388,16 @@ export declare const PLUGINS: {
|
|
|
3029
3388
|
httpsCertPath?: string | undefined;
|
|
3030
3389
|
inspectorPort?: number | undefined;
|
|
3031
3390
|
verbose?: boolean | undefined;
|
|
3032
|
-
log?:
|
|
3391
|
+
log?: Log_2 | undefined;
|
|
3033
3392
|
handleRuntimeStdio?: ((args_0: Readable, args_1: Readable) => unknown) | undefined;
|
|
3034
3393
|
upstream?: string | undefined;
|
|
3035
3394
|
cf?: string | boolean | Record<string, any> | undefined;
|
|
3036
3395
|
liveReload?: boolean | undefined;
|
|
3037
3396
|
unsafeProxySharedSecret?: string | undefined;
|
|
3038
|
-
unsafeModuleFallbackService?: ((request:
|
|
3397
|
+
unsafeModuleFallbackService?: ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
|
|
3039
3398
|
unsafeStickyBlobs?: boolean | undefined;
|
|
3040
3399
|
}>>;
|
|
3041
|
-
cache:
|
|
3400
|
+
cache: Plugin_2<z.ZodObject<{
|
|
3042
3401
|
cache: z.ZodOptional<z.ZodBoolean>;
|
|
3043
3402
|
cacheWarnUsage: z.ZodOptional<z.ZodBoolean>;
|
|
3044
3403
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3054,7 +3413,7 @@ export declare const PLUGINS: {
|
|
|
3054
3413
|
}, {
|
|
3055
3414
|
cachePersist?: string | boolean | undefined;
|
|
3056
3415
|
}>>;
|
|
3057
|
-
d1:
|
|
3416
|
+
d1: Plugin_2<z.ZodObject<{
|
|
3058
3417
|
d1Databases: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodString, "many">]>>;
|
|
3059
3418
|
}, "strip", z.ZodTypeAny, {
|
|
3060
3419
|
d1Databases?: string[] | Record<string, string> | undefined;
|
|
@@ -3067,24 +3426,24 @@ export declare const PLUGINS: {
|
|
|
3067
3426
|
}, {
|
|
3068
3427
|
d1Persist?: string | boolean | undefined;
|
|
3069
3428
|
}>>;
|
|
3070
|
-
do:
|
|
3429
|
+
do: Plugin_2<z.ZodObject<{
|
|
3071
3430
|
durableObjects: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
3072
3431
|
className: z.ZodString;
|
|
3073
3432
|
scriptName: z.ZodOptional<z.ZodString>;
|
|
3074
3433
|
useSQLite: z.ZodOptional<z.ZodBoolean>;
|
|
3075
|
-
unsafeUniqueKey: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<
|
|
3434
|
+
unsafeUniqueKey: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<kUnsafeEphemeralUniqueKey_2>]>>;
|
|
3076
3435
|
unsafePreventEviction: z.ZodOptional<z.ZodBoolean>;
|
|
3077
3436
|
}, "strip", z.ZodTypeAny, {
|
|
3078
3437
|
className: string;
|
|
3079
3438
|
scriptName?: string | undefined;
|
|
3080
3439
|
useSQLite?: boolean | undefined;
|
|
3081
|
-
unsafeUniqueKey?: string |
|
|
3440
|
+
unsafeUniqueKey?: string | kUnsafeEphemeralUniqueKey_2 | undefined;
|
|
3082
3441
|
unsafePreventEviction?: boolean | undefined;
|
|
3083
3442
|
}, {
|
|
3084
3443
|
className: string;
|
|
3085
3444
|
scriptName?: string | undefined;
|
|
3086
3445
|
useSQLite?: boolean | undefined;
|
|
3087
|
-
unsafeUniqueKey?: string |
|
|
3446
|
+
unsafeUniqueKey?: string | kUnsafeEphemeralUniqueKey_2 | undefined;
|
|
3088
3447
|
unsafePreventEviction?: boolean | undefined;
|
|
3089
3448
|
}>]>>>;
|
|
3090
3449
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3092,7 +3451,7 @@ export declare const PLUGINS: {
|
|
|
3092
3451
|
className: string;
|
|
3093
3452
|
scriptName?: string | undefined;
|
|
3094
3453
|
useSQLite?: boolean | undefined;
|
|
3095
|
-
unsafeUniqueKey?: string |
|
|
3454
|
+
unsafeUniqueKey?: string | kUnsafeEphemeralUniqueKey_2 | undefined;
|
|
3096
3455
|
unsafePreventEviction?: boolean | undefined;
|
|
3097
3456
|
}> | undefined;
|
|
3098
3457
|
}, {
|
|
@@ -3100,7 +3459,7 @@ export declare const PLUGINS: {
|
|
|
3100
3459
|
className: string;
|
|
3101
3460
|
scriptName?: string | undefined;
|
|
3102
3461
|
useSQLite?: boolean | undefined;
|
|
3103
|
-
unsafeUniqueKey?: string |
|
|
3462
|
+
unsafeUniqueKey?: string | kUnsafeEphemeralUniqueKey_2 | undefined;
|
|
3104
3463
|
unsafePreventEviction?: boolean | undefined;
|
|
3105
3464
|
}> | undefined;
|
|
3106
3465
|
}>, z.ZodObject<{
|
|
@@ -3110,7 +3469,7 @@ export declare const PLUGINS: {
|
|
|
3110
3469
|
}, {
|
|
3111
3470
|
durableObjectsPersist?: string | boolean | undefined;
|
|
3112
3471
|
}>>;
|
|
3113
|
-
kv:
|
|
3472
|
+
kv: Plugin_2<z.ZodObject<{
|
|
3114
3473
|
kvNamespaces: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodString, "many">]>>;
|
|
3115
3474
|
sitePath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
3116
3475
|
siteInclude: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -3132,7 +3491,7 @@ export declare const PLUGINS: {
|
|
|
3132
3491
|
}, {
|
|
3133
3492
|
kvPersist?: string | boolean | undefined;
|
|
3134
3493
|
}>>;
|
|
3135
|
-
queues:
|
|
3494
|
+
queues: Plugin_2<z.ZodObject<{
|
|
3136
3495
|
queueProducers: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3137
3496
|
queueName: z.ZodString;
|
|
3138
3497
|
deliveryDelay: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3206,7 +3565,7 @@ export declare const PLUGINS: {
|
|
|
3206
3565
|
retryDelay?: number | undefined;
|
|
3207
3566
|
}> | undefined;
|
|
3208
3567
|
}>>;
|
|
3209
|
-
r2:
|
|
3568
|
+
r2: Plugin_2<z.ZodObject<{
|
|
3210
3569
|
r2Buckets: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodString, "many">]>>;
|
|
3211
3570
|
}, "strip", z.ZodTypeAny, {
|
|
3212
3571
|
r2Buckets?: string[] | Record<string, string> | undefined;
|
|
@@ -3219,138 +3578,354 @@ export declare const PLUGINS: {
|
|
|
3219
3578
|
}, {
|
|
3220
3579
|
r2Persist?: string | boolean | undefined;
|
|
3221
3580
|
}>>;
|
|
3222
|
-
hyperdrive:
|
|
3581
|
+
hyperdrive: Plugin_2<z.ZodObject<{
|
|
3223
3582
|
hyperdrives: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodType<URL_2, z.ZodTypeDef, URL_2>]>, URL_2, string | URL_2>>>;
|
|
3224
3583
|
}, "strip", z.ZodTypeAny, {
|
|
3225
3584
|
hyperdrives?: Record<string, URL_2> | undefined;
|
|
3226
3585
|
}, {
|
|
3227
3586
|
hyperdrives?: Record<string, string | URL_2> | undefined;
|
|
3228
3587
|
}>>;
|
|
3229
|
-
ratelimit:
|
|
3588
|
+
ratelimit: Plugin_2<z.ZodObject<{
|
|
3230
3589
|
ratelimits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3231
3590
|
simple: z.ZodObject<{
|
|
3232
3591
|
limit: z.ZodNumber;
|
|
3233
|
-
period: z.ZodOptional<z.ZodNativeEnum<
|
|
3592
|
+
period: z.ZodOptional<z.ZodNativeEnum<PeriodType_2>>;
|
|
3234
3593
|
}, "strip", z.ZodTypeAny, {
|
|
3235
3594
|
limit: number;
|
|
3236
|
-
period?:
|
|
3595
|
+
period?: PeriodType_2 | undefined;
|
|
3237
3596
|
}, {
|
|
3238
3597
|
limit: number;
|
|
3239
|
-
period?:
|
|
3598
|
+
period?: PeriodType_2 | undefined;
|
|
3240
3599
|
}>;
|
|
3241
3600
|
}, "strip", z.ZodTypeAny, {
|
|
3242
3601
|
simple: {
|
|
3243
3602
|
limit: number;
|
|
3244
|
-
period?:
|
|
3603
|
+
period?: PeriodType_2 | undefined;
|
|
3245
3604
|
};
|
|
3246
3605
|
}, {
|
|
3247
3606
|
simple: {
|
|
3248
3607
|
limit: number;
|
|
3249
|
-
period?:
|
|
3608
|
+
period?: PeriodType_2 | undefined;
|
|
3250
3609
|
};
|
|
3251
3610
|
}>>>;
|
|
3252
3611
|
}, "strip", z.ZodTypeAny, {
|
|
3253
3612
|
ratelimits?: Record<string, {
|
|
3254
3613
|
simple: {
|
|
3255
3614
|
limit: number;
|
|
3256
|
-
period?:
|
|
3615
|
+
period?: PeriodType_2 | undefined;
|
|
3257
3616
|
};
|
|
3258
3617
|
}> | undefined;
|
|
3259
3618
|
}, {
|
|
3260
3619
|
ratelimits?: Record<string, {
|
|
3261
3620
|
simple: {
|
|
3262
3621
|
limit: number;
|
|
3263
|
-
period?:
|
|
3622
|
+
period?: PeriodType_2 | undefined;
|
|
3264
3623
|
};
|
|
3265
3624
|
}> | undefined;
|
|
3266
3625
|
}>>;
|
|
3267
|
-
assets:
|
|
3626
|
+
assets: Plugin_2<z.ZodObject<{
|
|
3268
3627
|
assets: z.ZodOptional<z.ZodObject<{
|
|
3269
3628
|
workerName: z.ZodOptional<z.ZodString>;
|
|
3270
3629
|
directory: z.ZodEffects<z.ZodString, string, string>;
|
|
3271
3630
|
binding: z.ZodOptional<z.ZodString>;
|
|
3272
|
-
|
|
3273
|
-
|
|
3631
|
+
routerConfig: z.ZodOptional<z.ZodObject<{
|
|
3632
|
+
account_id: z.ZodOptional<z.ZodNumber>;
|
|
3633
|
+
script_id: z.ZodOptional<z.ZodNumber>;
|
|
3274
3634
|
invoke_user_worker_ahead_of_assets: z.ZodOptional<z.ZodBoolean>;
|
|
3635
|
+
has_user_worker: z.ZodOptional<z.ZodBoolean>;
|
|
3275
3636
|
}, "strip", z.ZodTypeAny, {
|
|
3276
|
-
|
|
3637
|
+
account_id?: number;
|
|
3638
|
+
script_id?: number;
|
|
3277
3639
|
invoke_user_worker_ahead_of_assets?: boolean;
|
|
3278
|
-
}, {
|
|
3279
3640
|
has_user_worker?: boolean;
|
|
3641
|
+
}, {
|
|
3642
|
+
account_id?: number;
|
|
3643
|
+
script_id?: number;
|
|
3280
3644
|
invoke_user_worker_ahead_of_assets?: boolean;
|
|
3645
|
+
has_user_worker?: boolean;
|
|
3281
3646
|
}>>;
|
|
3282
|
-
assetConfig: z.ZodOptional<z.ZodObject<{
|
|
3647
|
+
assetConfig: z.ZodOptional<z.ZodObject<Omit<{
|
|
3648
|
+
account_id: z.ZodOptional<z.ZodNumber>;
|
|
3649
|
+
script_id: z.ZodOptional<z.ZodNumber>;
|
|
3650
|
+
compatibility_date: z.ZodOptional<z.ZodString>;
|
|
3651
|
+
compatibility_flags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3283
3652
|
html_handling: z.ZodOptional<z.ZodEnum<["auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none"]>>;
|
|
3284
3653
|
not_found_handling: z.ZodOptional<z.ZodEnum<["single-page-application", "404-page", "none"]>>;
|
|
3285
|
-
|
|
3654
|
+
redirects: z.ZodOptional<z.ZodObject<{
|
|
3655
|
+
version: z.ZodLiteral<1>;
|
|
3656
|
+
staticRules: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3657
|
+
status: z.ZodNumber;
|
|
3658
|
+
to: z.ZodString;
|
|
3659
|
+
lineNumber: z.ZodNumber;
|
|
3660
|
+
}, "strip", z.ZodTypeAny, {
|
|
3661
|
+
status?: number;
|
|
3662
|
+
to?: string;
|
|
3663
|
+
lineNumber?: number;
|
|
3664
|
+
}, {
|
|
3665
|
+
status?: number;
|
|
3666
|
+
to?: string;
|
|
3667
|
+
lineNumber?: number;
|
|
3668
|
+
}>>;
|
|
3669
|
+
rules: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3670
|
+
status: z.ZodNumber;
|
|
3671
|
+
to: z.ZodString;
|
|
3672
|
+
}, "strip", z.ZodTypeAny, {
|
|
3673
|
+
status?: number;
|
|
3674
|
+
to?: string;
|
|
3675
|
+
}, {
|
|
3676
|
+
status?: number;
|
|
3677
|
+
to?: string;
|
|
3678
|
+
}>>;
|
|
3679
|
+
}, "strip", z.ZodTypeAny, {
|
|
3680
|
+
version?: 1;
|
|
3681
|
+
staticRules?: Record<string, {
|
|
3682
|
+
status?: number;
|
|
3683
|
+
to?: string;
|
|
3684
|
+
lineNumber?: number;
|
|
3685
|
+
}>;
|
|
3686
|
+
rules?: Record<string, {
|
|
3687
|
+
status?: number;
|
|
3688
|
+
to?: string;
|
|
3689
|
+
}>;
|
|
3690
|
+
}, {
|
|
3691
|
+
version?: 1;
|
|
3692
|
+
staticRules?: Record<string, {
|
|
3693
|
+
status?: number;
|
|
3694
|
+
to?: string;
|
|
3695
|
+
lineNumber?: number;
|
|
3696
|
+
}>;
|
|
3697
|
+
rules?: Record<string, {
|
|
3698
|
+
status?: number;
|
|
3699
|
+
to?: string;
|
|
3700
|
+
}>;
|
|
3701
|
+
}>>;
|
|
3702
|
+
headers: z.ZodOptional<z.ZodObject<{
|
|
3703
|
+
version: z.ZodLiteral<2>;
|
|
3704
|
+
rules: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3705
|
+
set: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3706
|
+
unset: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3286
3707
|
}, "strip", z.ZodTypeAny, {
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3708
|
+
set?: Record<string, string>;
|
|
3709
|
+
unset?: string[];
|
|
3710
|
+
}, {
|
|
3711
|
+
set?: Record<string, string>;
|
|
3712
|
+
unset?: string[];
|
|
3713
|
+
}>>;
|
|
3714
|
+
}, "strip", z.ZodTypeAny, {
|
|
3715
|
+
version?: 2;
|
|
3716
|
+
rules?: Record<string, {
|
|
3717
|
+
set?: Record<string, string>;
|
|
3718
|
+
unset?: string[];
|
|
3719
|
+
}>;
|
|
3720
|
+
}, {
|
|
3721
|
+
version?: 2;
|
|
3722
|
+
rules?: Record<string, {
|
|
3723
|
+
set?: Record<string, string>;
|
|
3724
|
+
unset?: string[];
|
|
3725
|
+
}>;
|
|
3726
|
+
}>>;
|
|
3727
|
+
}, "compatibility_date" | "compatibility_flags">, "strip", z.ZodTypeAny, {
|
|
3728
|
+
headers?: {
|
|
3729
|
+
version?: 2;
|
|
3730
|
+
rules?: Record<string, {
|
|
3731
|
+
set?: Record<string, string>;
|
|
3732
|
+
unset?: string[];
|
|
3733
|
+
}>;
|
|
3734
|
+
} | undefined;
|
|
3735
|
+
account_id?: number | undefined;
|
|
3736
|
+
script_id?: number | undefined;
|
|
3737
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
3738
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
3739
|
+
redirects?: {
|
|
3740
|
+
version?: 1;
|
|
3741
|
+
staticRules?: Record<string, {
|
|
3742
|
+
status?: number;
|
|
3743
|
+
to?: string;
|
|
3744
|
+
lineNumber?: number;
|
|
3745
|
+
}>;
|
|
3746
|
+
rules?: Record<string, {
|
|
3747
|
+
status?: number;
|
|
3748
|
+
to?: string;
|
|
3749
|
+
}>;
|
|
3750
|
+
} | undefined;
|
|
3290
3751
|
}, {
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3752
|
+
headers?: {
|
|
3753
|
+
version?: 2;
|
|
3754
|
+
rules?: Record<string, {
|
|
3755
|
+
set?: Record<string, string>;
|
|
3756
|
+
unset?: string[];
|
|
3757
|
+
}>;
|
|
3758
|
+
} | undefined;
|
|
3759
|
+
account_id?: number | undefined;
|
|
3760
|
+
script_id?: number | undefined;
|
|
3761
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
3762
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
3763
|
+
redirects?: {
|
|
3764
|
+
version?: 1;
|
|
3765
|
+
staticRules?: Record<string, {
|
|
3766
|
+
status?: number;
|
|
3767
|
+
to?: string;
|
|
3768
|
+
lineNumber?: number;
|
|
3769
|
+
}>;
|
|
3770
|
+
rules?: Record<string, {
|
|
3771
|
+
status?: number;
|
|
3772
|
+
to?: string;
|
|
3773
|
+
}>;
|
|
3774
|
+
} | undefined;
|
|
3294
3775
|
}>>;
|
|
3295
3776
|
}, "strip", z.ZodTypeAny, {
|
|
3296
3777
|
directory: string;
|
|
3297
3778
|
workerName?: string | undefined;
|
|
3298
3779
|
binding?: string | undefined;
|
|
3299
|
-
|
|
3300
|
-
|
|
3780
|
+
routerConfig?: {
|
|
3781
|
+
account_id?: number;
|
|
3782
|
+
script_id?: number;
|
|
3301
3783
|
invoke_user_worker_ahead_of_assets?: boolean;
|
|
3784
|
+
has_user_worker?: boolean;
|
|
3302
3785
|
} | undefined;
|
|
3303
3786
|
assetConfig?: {
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3787
|
+
headers?: {
|
|
3788
|
+
version?: 2;
|
|
3789
|
+
rules?: Record<string, {
|
|
3790
|
+
set?: Record<string, string>;
|
|
3791
|
+
unset?: string[];
|
|
3792
|
+
}>;
|
|
3793
|
+
} | undefined;
|
|
3794
|
+
account_id?: number | undefined;
|
|
3795
|
+
script_id?: number | undefined;
|
|
3796
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
3797
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
3798
|
+
redirects?: {
|
|
3799
|
+
version?: 1;
|
|
3800
|
+
staticRules?: Record<string, {
|
|
3801
|
+
status?: number;
|
|
3802
|
+
to?: string;
|
|
3803
|
+
lineNumber?: number;
|
|
3804
|
+
}>;
|
|
3805
|
+
rules?: Record<string, {
|
|
3806
|
+
status?: number;
|
|
3807
|
+
to?: string;
|
|
3808
|
+
}>;
|
|
3809
|
+
} | undefined;
|
|
3307
3810
|
} | undefined;
|
|
3308
3811
|
}, {
|
|
3309
3812
|
directory: string;
|
|
3310
3813
|
workerName?: string | undefined;
|
|
3311
3814
|
binding?: string | undefined;
|
|
3312
|
-
|
|
3313
|
-
|
|
3815
|
+
routerConfig?: {
|
|
3816
|
+
account_id?: number;
|
|
3817
|
+
script_id?: number;
|
|
3314
3818
|
invoke_user_worker_ahead_of_assets?: boolean;
|
|
3819
|
+
has_user_worker?: boolean;
|
|
3315
3820
|
} | undefined;
|
|
3316
3821
|
assetConfig?: {
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3822
|
+
headers?: {
|
|
3823
|
+
version?: 2;
|
|
3824
|
+
rules?: Record<string, {
|
|
3825
|
+
set?: Record<string, string>;
|
|
3826
|
+
unset?: string[];
|
|
3827
|
+
}>;
|
|
3828
|
+
} | undefined;
|
|
3829
|
+
account_id?: number | undefined;
|
|
3830
|
+
script_id?: number | undefined;
|
|
3831
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
3832
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
3833
|
+
redirects?: {
|
|
3834
|
+
version?: 1;
|
|
3835
|
+
staticRules?: Record<string, {
|
|
3836
|
+
status?: number;
|
|
3837
|
+
to?: string;
|
|
3838
|
+
lineNumber?: number;
|
|
3839
|
+
}>;
|
|
3840
|
+
rules?: Record<string, {
|
|
3841
|
+
status?: number;
|
|
3842
|
+
to?: string;
|
|
3843
|
+
}>;
|
|
3844
|
+
} | undefined;
|
|
3320
3845
|
} | undefined;
|
|
3321
3846
|
}>>;
|
|
3847
|
+
compatibilityDate: z.ZodOptional<z.ZodString>;
|
|
3848
|
+
compatibilityFlags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3322
3849
|
}, "strip", z.ZodTypeAny, {
|
|
3323
3850
|
assets?: {
|
|
3324
3851
|
directory: string;
|
|
3325
3852
|
workerName?: string | undefined;
|
|
3326
3853
|
binding?: string | undefined;
|
|
3327
|
-
|
|
3328
|
-
|
|
3854
|
+
routerConfig?: {
|
|
3855
|
+
account_id?: number;
|
|
3856
|
+
script_id?: number;
|
|
3329
3857
|
invoke_user_worker_ahead_of_assets?: boolean;
|
|
3858
|
+
has_user_worker?: boolean;
|
|
3330
3859
|
} | undefined;
|
|
3331
3860
|
assetConfig?: {
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3861
|
+
headers?: {
|
|
3862
|
+
version?: 2;
|
|
3863
|
+
rules?: Record<string, {
|
|
3864
|
+
set?: Record<string, string>;
|
|
3865
|
+
unset?: string[];
|
|
3866
|
+
}>;
|
|
3335
3867
|
} | undefined;
|
|
3868
|
+
account_id?: number | undefined;
|
|
3869
|
+
script_id?: number | undefined;
|
|
3870
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
3871
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
3872
|
+
redirects?: {
|
|
3873
|
+
version?: 1;
|
|
3874
|
+
staticRules?: Record<string, {
|
|
3875
|
+
status?: number;
|
|
3876
|
+
to?: string;
|
|
3877
|
+
lineNumber?: number;
|
|
3878
|
+
}>;
|
|
3879
|
+
rules?: Record<string, {
|
|
3880
|
+
status?: number;
|
|
3881
|
+
to?: string;
|
|
3882
|
+
}>;
|
|
3336
3883
|
} | undefined;
|
|
3884
|
+
} | undefined;
|
|
3885
|
+
} | undefined;
|
|
3886
|
+
compatibilityDate?: string | undefined;
|
|
3887
|
+
compatibilityFlags?: string[] | undefined;
|
|
3337
3888
|
}, {
|
|
3338
3889
|
assets?: {
|
|
3339
3890
|
directory: string;
|
|
3340
3891
|
workerName?: string | undefined;
|
|
3341
3892
|
binding?: string | undefined;
|
|
3342
|
-
|
|
3343
|
-
|
|
3893
|
+
routerConfig?: {
|
|
3894
|
+
account_id?: number;
|
|
3895
|
+
script_id?: number;
|
|
3344
3896
|
invoke_user_worker_ahead_of_assets?: boolean;
|
|
3897
|
+
has_user_worker?: boolean;
|
|
3345
3898
|
} | undefined;
|
|
3346
3899
|
assetConfig?: {
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3900
|
+
headers?: {
|
|
3901
|
+
version?: 2;
|
|
3902
|
+
rules?: Record<string, {
|
|
3903
|
+
set?: Record<string, string>;
|
|
3904
|
+
unset?: string[];
|
|
3905
|
+
}>;
|
|
3906
|
+
} | undefined;
|
|
3907
|
+
account_id?: number | undefined;
|
|
3908
|
+
script_id?: number | undefined;
|
|
3909
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash" | undefined;
|
|
3910
|
+
not_found_handling?: "none" | "single-page-application" | "404-page" | undefined;
|
|
3911
|
+
redirects?: {
|
|
3912
|
+
version?: 1;
|
|
3913
|
+
staticRules?: Record<string, {
|
|
3914
|
+
status?: number;
|
|
3915
|
+
to?: string;
|
|
3916
|
+
lineNumber?: number;
|
|
3917
|
+
}>;
|
|
3918
|
+
rules?: Record<string, {
|
|
3919
|
+
status?: number;
|
|
3920
|
+
to?: string;
|
|
3921
|
+
}>;
|
|
3922
|
+
} | undefined;
|
|
3350
3923
|
} | undefined;
|
|
3351
3924
|
} | undefined;
|
|
3925
|
+
compatibilityDate?: string | undefined;
|
|
3926
|
+
compatibilityFlags?: string[] | undefined;
|
|
3352
3927
|
}>>;
|
|
3353
|
-
workflows:
|
|
3928
|
+
workflows: Plugin_2<z.ZodObject<{
|
|
3354
3929
|
workflows: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3355
3930
|
name: z.ZodString;
|
|
3356
3931
|
className: z.ZodString;
|
|
@@ -3383,6 +3958,13 @@ export declare const PLUGINS: {
|
|
|
3383
3958
|
}, {
|
|
3384
3959
|
workflowsPersist?: string | boolean | undefined;
|
|
3385
3960
|
}>>;
|
|
3961
|
+
pipelines: Plugin_2<z.ZodObject<{
|
|
3962
|
+
pipelines: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodString, "many">]>>;
|
|
3963
|
+
}, "strip", z.ZodTypeAny, {
|
|
3964
|
+
pipelines?: string[] | Record<string, string> | undefined;
|
|
3965
|
+
}, {
|
|
3966
|
+
pipelines?: string[] | Record<string, string> | undefined;
|
|
3967
|
+
}>>;
|
|
3386
3968
|
};
|
|
3387
3969
|
|
|
3388
3970
|
export declare type Plugins = typeof PLUGINS;
|
|
@@ -3580,11 +4162,11 @@ export declare type QueueIncomingMessage = z.infer<typeof QueueIncomingMessageSc
|
|
|
3580
4162
|
export declare const QueueIncomingMessageSchema: z.ZodObject<{
|
|
3581
4163
|
contentType: z.ZodDefault<z.ZodEnum<["text", "json", "bytes", "v8"]>>;
|
|
3582
4164
|
delaySecs: z.ZodOptional<z.ZodNumber>;
|
|
3583
|
-
body: z.ZodEffects<z.ZodString, Buffer
|
|
4165
|
+
body: z.ZodEffects<z.ZodString, Buffer<ArrayBuffer>, string>;
|
|
3584
4166
|
id: z.ZodOptional<z.ZodString>;
|
|
3585
4167
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
3586
4168
|
}, "strip", z.ZodTypeAny, {
|
|
3587
|
-
body: Buffer
|
|
4169
|
+
body: Buffer<ArrayBuffer>;
|
|
3588
4170
|
contentType: "json" | "bytes" | "v8" | "text";
|
|
3589
4171
|
delaySecs?: number | undefined;
|
|
3590
4172
|
id?: string | undefined;
|
|
@@ -3660,11 +4242,11 @@ export declare const QueuesBatchRequestSchema: z.ZodObject<{
|
|
|
3660
4242
|
messages: z.ZodArray<z.ZodObject<{
|
|
3661
4243
|
contentType: z.ZodDefault<z.ZodEnum<["text", "json", "bytes", "v8"]>>;
|
|
3662
4244
|
delaySecs: z.ZodOptional<z.ZodNumber>;
|
|
3663
|
-
body: z.ZodEffects<z.ZodString, Buffer
|
|
4245
|
+
body: z.ZodEffects<z.ZodString, Buffer<ArrayBuffer>, string>;
|
|
3664
4246
|
id: z.ZodOptional<z.ZodString>;
|
|
3665
4247
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
3666
4248
|
}, "strip", z.ZodTypeAny, {
|
|
3667
|
-
body: Buffer
|
|
4249
|
+
body: Buffer<ArrayBuffer>;
|
|
3668
4250
|
contentType: "json" | "bytes" | "v8" | "text";
|
|
3669
4251
|
delaySecs?: number | undefined;
|
|
3670
4252
|
id?: string | undefined;
|
|
@@ -3678,7 +4260,7 @@ export declare const QueuesBatchRequestSchema: z.ZodObject<{
|
|
|
3678
4260
|
}>, "many">;
|
|
3679
4261
|
}, "strip", z.ZodTypeAny, {
|
|
3680
4262
|
messages: {
|
|
3681
|
-
body: Buffer
|
|
4263
|
+
body: Buffer<ArrayBuffer>;
|
|
3682
4264
|
contentType: "json" | "bytes" | "v8" | "text";
|
|
3683
4265
|
delaySecs?: number | undefined;
|
|
3684
4266
|
id?: string | undefined;
|
|
@@ -3872,11 +4454,11 @@ export declare type ReducersRevivers = Record<string, ReducerReviver>;
|
|
|
3872
4454
|
|
|
3873
4455
|
export { ReferrerPolicy }
|
|
3874
4456
|
|
|
3875
|
-
export declare type ReplaceWorkersTypes<T> = T extends
|
|
4457
|
+
export declare type ReplaceWorkersTypes<T> = T extends Request_5 ? Request_2 : T extends Response_5 ? 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 ? {
|
|
3876
4458
|
[K in keyof T]: OverloadReplaceWorkersTypes<T[K]>;
|
|
3877
4459
|
} : T;
|
|
3878
4460
|
|
|
3879
|
-
declare class Request_2<CfType extends RequestInitCfType = RequestInitCfType> extends
|
|
4461
|
+
declare class Request_2<CfType extends RequestInitCfType = RequestInitCfType> extends Request_4 {
|
|
3880
4462
|
[kCf]?: CfType;
|
|
3881
4463
|
constructor(input: RequestInfo, init?: RequestInit_2<CfType>);
|
|
3882
4464
|
get cf(): CfType | undefined;
|
|
@@ -3906,7 +4488,7 @@ export { RequestMode }
|
|
|
3906
4488
|
|
|
3907
4489
|
export { RequestRedirect }
|
|
3908
4490
|
|
|
3909
|
-
declare class Response_2 extends
|
|
4491
|
+
declare class Response_2 extends Response_4 {
|
|
3910
4492
|
readonly [kWebSocket]: WebSocket | null;
|
|
3911
4493
|
static error(): Response_2;
|
|
3912
4494
|
static redirect(url: string | URL, status: ResponseRedirectStatus): Response_2;
|
|
@@ -4050,29 +4632,29 @@ export declare const SourceOptionsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
4050
4632
|
modules: z.ZodArray<z.ZodObject<{
|
|
4051
4633
|
type: z.ZodEnum<["ESModule", "CommonJS", "NodeJsCompatModule", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
|
|
4052
4634
|
path: z.ZodEffects<z.ZodString, string, string>;
|
|
4053
|
-
contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array
|
|
4635
|
+
contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>;
|
|
4054
4636
|
}, "strip", z.ZodTypeAny, {
|
|
4055
4637
|
type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
4056
4638
|
path: string;
|
|
4057
|
-
contents?: string | Uint8Array | undefined;
|
|
4639
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
4058
4640
|
}, {
|
|
4059
4641
|
type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
4060
4642
|
path: string;
|
|
4061
|
-
contents?: string | Uint8Array | undefined;
|
|
4643
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
4062
4644
|
}>, "many">;
|
|
4063
4645
|
modulesRoot: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
4064
4646
|
}, "strip", z.ZodTypeAny, {
|
|
4065
4647
|
modules: {
|
|
4066
4648
|
type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
4067
4649
|
path: string;
|
|
4068
|
-
contents?: string | Uint8Array | undefined;
|
|
4650
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
4069
4651
|
}[];
|
|
4070
4652
|
modulesRoot?: string | undefined;
|
|
4071
4653
|
}, {
|
|
4072
4654
|
modules: {
|
|
4073
4655
|
type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
4074
4656
|
path: string;
|
|
4075
|
-
contents?: string | Uint8Array | undefined;
|
|
4657
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
4076
4658
|
}[];
|
|
4077
4659
|
modulesRoot?: string | undefined;
|
|
4078
4660
|
}>, z.ZodObject<{
|
|
@@ -4183,14 +4765,16 @@ export declare interface TlsOptions_Keypair {
|
|
|
4183
4765
|
certificateChain?: string;
|
|
4184
4766
|
}
|
|
4185
4767
|
|
|
4186
|
-
export declare
|
|
4187
|
-
GOOD_DEFAULT
|
|
4188
|
-
SSL3
|
|
4189
|
-
TLS1DOT0
|
|
4190
|
-
TLS1DOT1
|
|
4191
|
-
TLS1DOT2
|
|
4192
|
-
TLS1DOT3
|
|
4193
|
-
}
|
|
4768
|
+
export declare const TlsOptions_Version: {
|
|
4769
|
+
readonly GOOD_DEFAULT: 0;
|
|
4770
|
+
readonly SSL3: 1;
|
|
4771
|
+
readonly TLS1DOT0: 2;
|
|
4772
|
+
readonly TLS1DOT1: 3;
|
|
4773
|
+
readonly TLS1DOT2: 4;
|
|
4774
|
+
readonly TLS1DOT3: 5;
|
|
4775
|
+
};
|
|
4776
|
+
|
|
4777
|
+
export declare type TlsOptions_Version = (typeof TlsOptions_Version)[keyof typeof TlsOptions_Version];
|
|
4194
4778
|
|
|
4195
4779
|
export declare function _transformsForContentEncodingAndContentType(encoding: string | undefined, type: string | undefined | null): Transform[];
|
|
4196
4780
|
|
|
@@ -4235,8 +4819,8 @@ export declare class WebSocket extends TypedEventTarget<WebSocketEventMap> {
|
|
|
4235
4819
|
[kClosedIncoming]: boolean;
|
|
4236
4820
|
get readyState(): number;
|
|
4237
4821
|
accept(): void;
|
|
4238
|
-
send(message: ArrayBuffer |
|
|
4239
|
-
[kSend](message: ArrayBuffer |
|
|
4822
|
+
send(message: string | ArrayBuffer | Uint8Array<ArrayBuffer>): void;
|
|
4823
|
+
[kSend](message: string | ArrayBuffer | Uint8Array<ArrayBuffer>): void;
|
|
4240
4824
|
close(code?: number, reason?: string): void;
|
|
4241
4825
|
[kClose](code?: number, reason?: string): void;
|
|
4242
4826
|
[kError](error?: Error): void;
|
|
@@ -4337,16 +4921,18 @@ export declare type Worker_Binding_CryptoKey_Algorithm = {
|
|
|
4337
4921
|
json?: string;
|
|
4338
4922
|
};
|
|
4339
4923
|
|
|
4340
|
-
export declare
|
|
4341
|
-
ENCRYPT
|
|
4342
|
-
DECRYPT
|
|
4343
|
-
SIGN
|
|
4344
|
-
VERIFY
|
|
4345
|
-
DERIVE_KEY
|
|
4346
|
-
DERIVE_BITS
|
|
4347
|
-
WRAP_KEY
|
|
4348
|
-
UNWRAP_KEY
|
|
4349
|
-
}
|
|
4924
|
+
export declare const Worker_Binding_CryptoKey_Usage: {
|
|
4925
|
+
readonly ENCRYPT: 0;
|
|
4926
|
+
readonly DECRYPT: 1;
|
|
4927
|
+
readonly SIGN: 2;
|
|
4928
|
+
readonly VERIFY: 3;
|
|
4929
|
+
readonly DERIVE_KEY: 4;
|
|
4930
|
+
readonly DERIVE_BITS: 5;
|
|
4931
|
+
readonly WRAP_KEY: 6;
|
|
4932
|
+
readonly UNWRAP_KEY: 7;
|
|
4933
|
+
};
|
|
4934
|
+
|
|
4935
|
+
export declare type Worker_Binding_CryptoKey_Usage = (typeof Worker_Binding_CryptoKey_Usage)[keyof typeof Worker_Binding_CryptoKey_Usage];
|
|
4350
4936
|
|
|
4351
4937
|
export declare type Worker_Binding_DurableObjectNamespaceDesignator = {
|
|
4352
4938
|
className?: string;
|
|
@@ -4453,7 +5039,7 @@ export declare type Worker_Module = {
|
|
|
4453
5039
|
pythonRequirement?: string;
|
|
4454
5040
|
});
|
|
4455
5041
|
|
|
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>;
|
|
5042
|
+
export declare type WorkerOptions = z.input<typeof CORE_PLUGIN.options> & z.input<typeof CACHE_PLUGIN.options> & z.input<typeof D1_PLUGIN.options> & z.input<typeof DURABLE_OBJECTS_PLUGIN.options> & z.input<typeof KV_PLUGIN.options> & z.input<typeof QUEUES_PLUGIN.options> & z.input<typeof R2_PLUGIN.options> & z.input<typeof HYPERDRIVE_PLUGIN.options> & z.input<typeof RATELIMIT_PLUGIN.options> & z.input<typeof ASSETS_PLUGIN.options> & z.input<typeof WORKFLOWS_PLUGIN.options> & z.input<typeof PIPELINE_PLUGIN.options>;
|
|
4457
5043
|
|
|
4458
5044
|
export declare interface WorkerRoute {
|
|
4459
5045
|
target: string;
|