miniflare 0.0.0-e1d2fd668 → 0.0.0-e2472f152
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 +865 -309
- package/dist/src/index.js +10123 -5016
- 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 +4720 -5266
- package/dist/src/workers/assets/assets.worker.js.map +3 -3
- package/dist/src/workers/assets/router.worker.js +5095 -5931
- package/dist/src/workers/assets/router.worker.js.map +3 -3
- package/dist/src/workers/assets/rpc-proxy.worker.js +11 -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 +41 -70
- package/dist/src/workers/core/entry.worker.js.map +1 -1
- package/dist/src/workers/d1/database.worker.js +9 -7
- 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 +13 -18
- 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 +212 -193
- package/dist/src/workers/workflows/binding.worker.js.map +1 -1
- package/package.json +24 -26
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,44 +87,228 @@ 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
|
-
|
|
90
|
+
routerConfig: z.ZodOptional<z.ZodObject<{
|
|
91
|
+
account_id: z.ZodOptional<z.ZodNumber>;
|
|
92
|
+
script_id: z.ZodOptional<z.ZodNumber>;
|
|
93
|
+
invoke_user_worker_ahead_of_assets: z.ZodOptional<z.ZodBoolean>;
|
|
76
94
|
has_user_worker: z.ZodOptional<z.ZodBoolean>;
|
|
77
95
|
}, "strip", z.ZodTypeAny, {
|
|
96
|
+
account_id?: number;
|
|
97
|
+
script_id?: number;
|
|
98
|
+
invoke_user_worker_ahead_of_assets?: boolean;
|
|
78
99
|
has_user_worker?: boolean;
|
|
79
100
|
}, {
|
|
101
|
+
account_id?: number;
|
|
102
|
+
script_id?: number;
|
|
103
|
+
invoke_user_worker_ahead_of_assets?: boolean;
|
|
80
104
|
has_user_worker?: boolean;
|
|
81
105
|
}>>;
|
|
82
106
|
assetConfig: z.ZodOptional<z.ZodObject<{
|
|
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">>;
|
|
83
111
|
html_handling: z.ZodOptional<z.ZodEnum<["auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none"]>>;
|
|
84
112
|
not_found_handling: z.ZodOptional<z.ZodEnum<["single-page-application", "404-page", "none"]>>;
|
|
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
|
+
}>>;
|
|
85
186
|
}, "strip", z.ZodTypeAny, {
|
|
187
|
+
account_id?: number;
|
|
188
|
+
script_id?: number;
|
|
189
|
+
compatibility_date?: string;
|
|
190
|
+
compatibility_flags?: string[];
|
|
86
191
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
87
192
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
193
|
+
redirects?: {
|
|
194
|
+
version?: 1;
|
|
195
|
+
staticRules?: Record<string, {
|
|
196
|
+
status?: number;
|
|
197
|
+
to?: string;
|
|
198
|
+
lineNumber?: number;
|
|
199
|
+
}>;
|
|
200
|
+
rules?: Record<string, {
|
|
201
|
+
status?: number;
|
|
202
|
+
to?: string;
|
|
203
|
+
}>;
|
|
204
|
+
};
|
|
205
|
+
headers?: {
|
|
206
|
+
version?: 2;
|
|
207
|
+
rules?: Record<string, {
|
|
208
|
+
set?: Record<string, string>;
|
|
209
|
+
unset?: string[];
|
|
210
|
+
}>;
|
|
211
|
+
};
|
|
88
212
|
}, {
|
|
213
|
+
account_id?: number;
|
|
214
|
+
script_id?: number;
|
|
215
|
+
compatibility_date?: string;
|
|
216
|
+
compatibility_flags?: string[];
|
|
89
217
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
90
218
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
219
|
+
redirects?: {
|
|
220
|
+
version?: 1;
|
|
221
|
+
staticRules?: Record<string, {
|
|
222
|
+
status?: number;
|
|
223
|
+
to?: string;
|
|
224
|
+
lineNumber?: number;
|
|
225
|
+
}>;
|
|
226
|
+
rules?: Record<string, {
|
|
227
|
+
status?: number;
|
|
228
|
+
to?: string;
|
|
229
|
+
}>;
|
|
230
|
+
};
|
|
231
|
+
headers?: {
|
|
232
|
+
version?: 2;
|
|
233
|
+
rules?: Record<string, {
|
|
234
|
+
set?: Record<string, string>;
|
|
235
|
+
unset?: string[];
|
|
236
|
+
}>;
|
|
237
|
+
};
|
|
91
238
|
}>>;
|
|
92
239
|
}, "strip", z.ZodTypeAny, {
|
|
93
240
|
directory: string;
|
|
94
241
|
workerName?: string | undefined;
|
|
95
242
|
binding?: string | undefined;
|
|
96
|
-
|
|
243
|
+
routerConfig?: {
|
|
244
|
+
account_id?: number;
|
|
245
|
+
script_id?: number;
|
|
246
|
+
invoke_user_worker_ahead_of_assets?: boolean;
|
|
97
247
|
has_user_worker?: boolean;
|
|
98
248
|
} | undefined;
|
|
99
249
|
assetConfig?: {
|
|
250
|
+
account_id?: number;
|
|
251
|
+
script_id?: number;
|
|
252
|
+
compatibility_date?: string;
|
|
253
|
+
compatibility_flags?: string[];
|
|
100
254
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
101
255
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
256
|
+
redirects?: {
|
|
257
|
+
version?: 1;
|
|
258
|
+
staticRules?: Record<string, {
|
|
259
|
+
status?: number;
|
|
260
|
+
to?: string;
|
|
261
|
+
lineNumber?: number;
|
|
262
|
+
}>;
|
|
263
|
+
rules?: Record<string, {
|
|
264
|
+
status?: number;
|
|
265
|
+
to?: string;
|
|
266
|
+
}>;
|
|
267
|
+
};
|
|
268
|
+
headers?: {
|
|
269
|
+
version?: 2;
|
|
270
|
+
rules?: Record<string, {
|
|
271
|
+
set?: Record<string, string>;
|
|
272
|
+
unset?: string[];
|
|
273
|
+
}>;
|
|
274
|
+
};
|
|
102
275
|
} | undefined;
|
|
103
276
|
}, {
|
|
104
277
|
directory: string;
|
|
105
278
|
workerName?: string | undefined;
|
|
106
279
|
binding?: string | undefined;
|
|
107
|
-
|
|
280
|
+
routerConfig?: {
|
|
281
|
+
account_id?: number;
|
|
282
|
+
script_id?: number;
|
|
283
|
+
invoke_user_worker_ahead_of_assets?: boolean;
|
|
108
284
|
has_user_worker?: boolean;
|
|
109
285
|
} | undefined;
|
|
110
286
|
assetConfig?: {
|
|
287
|
+
account_id?: number;
|
|
288
|
+
script_id?: number;
|
|
289
|
+
compatibility_date?: string;
|
|
290
|
+
compatibility_flags?: string[];
|
|
111
291
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
112
292
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
293
|
+
redirects?: {
|
|
294
|
+
version?: 1;
|
|
295
|
+
staticRules?: Record<string, {
|
|
296
|
+
status?: number;
|
|
297
|
+
to?: string;
|
|
298
|
+
lineNumber?: number;
|
|
299
|
+
}>;
|
|
300
|
+
rules?: Record<string, {
|
|
301
|
+
status?: number;
|
|
302
|
+
to?: string;
|
|
303
|
+
}>;
|
|
304
|
+
};
|
|
305
|
+
headers?: {
|
|
306
|
+
version?: 2;
|
|
307
|
+
rules?: Record<string, {
|
|
308
|
+
set?: Record<string, string>;
|
|
309
|
+
unset?: string[];
|
|
310
|
+
}>;
|
|
311
|
+
};
|
|
113
312
|
} | undefined;
|
|
114
313
|
}>>;
|
|
115
314
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -117,12 +316,38 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
117
316
|
directory: string;
|
|
118
317
|
workerName?: string | undefined;
|
|
119
318
|
binding?: string | undefined;
|
|
120
|
-
|
|
319
|
+
routerConfig?: {
|
|
320
|
+
account_id?: number;
|
|
321
|
+
script_id?: number;
|
|
322
|
+
invoke_user_worker_ahead_of_assets?: boolean;
|
|
121
323
|
has_user_worker?: boolean;
|
|
122
324
|
} | undefined;
|
|
123
325
|
assetConfig?: {
|
|
326
|
+
account_id?: number;
|
|
327
|
+
script_id?: number;
|
|
328
|
+
compatibility_date?: string;
|
|
329
|
+
compatibility_flags?: string[];
|
|
124
330
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
125
331
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
332
|
+
redirects?: {
|
|
333
|
+
version?: 1;
|
|
334
|
+
staticRules?: Record<string, {
|
|
335
|
+
status?: number;
|
|
336
|
+
to?: string;
|
|
337
|
+
lineNumber?: number;
|
|
338
|
+
}>;
|
|
339
|
+
rules?: Record<string, {
|
|
340
|
+
status?: number;
|
|
341
|
+
to?: string;
|
|
342
|
+
}>;
|
|
343
|
+
};
|
|
344
|
+
headers?: {
|
|
345
|
+
version?: 2;
|
|
346
|
+
rules?: Record<string, {
|
|
347
|
+
set?: Record<string, string>;
|
|
348
|
+
unset?: string[];
|
|
349
|
+
}>;
|
|
350
|
+
};
|
|
126
351
|
} | undefined;
|
|
127
352
|
} | undefined;
|
|
128
353
|
}, {
|
|
@@ -130,12 +355,38 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
130
355
|
directory: string;
|
|
131
356
|
workerName?: string | undefined;
|
|
132
357
|
binding?: string | undefined;
|
|
133
|
-
|
|
358
|
+
routerConfig?: {
|
|
359
|
+
account_id?: number;
|
|
360
|
+
script_id?: number;
|
|
361
|
+
invoke_user_worker_ahead_of_assets?: boolean;
|
|
134
362
|
has_user_worker?: boolean;
|
|
135
363
|
} | undefined;
|
|
136
364
|
assetConfig?: {
|
|
365
|
+
account_id?: number;
|
|
366
|
+
script_id?: number;
|
|
367
|
+
compatibility_date?: string;
|
|
368
|
+
compatibility_flags?: string[];
|
|
137
369
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
138
370
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
371
|
+
redirects?: {
|
|
372
|
+
version?: 1;
|
|
373
|
+
staticRules?: Record<string, {
|
|
374
|
+
status?: number;
|
|
375
|
+
to?: string;
|
|
376
|
+
lineNumber?: number;
|
|
377
|
+
}>;
|
|
378
|
+
rules?: Record<string, {
|
|
379
|
+
status?: number;
|
|
380
|
+
to?: string;
|
|
381
|
+
}>;
|
|
382
|
+
};
|
|
383
|
+
headers?: {
|
|
384
|
+
version?: 2;
|
|
385
|
+
rules?: Record<string, {
|
|
386
|
+
set?: Record<string, string>;
|
|
387
|
+
unset?: string[];
|
|
388
|
+
}>;
|
|
389
|
+
};
|
|
139
390
|
} | undefined;
|
|
140
391
|
} | undefined;
|
|
141
392
|
}>;
|
|
@@ -158,7 +409,7 @@ export { BodyInit }
|
|
|
158
409
|
* Use content hash to get file path from asset reverse map.
|
|
159
410
|
*/
|
|
160
411
|
export declare const buildAssetManifest: (dir: string) => Promise<{
|
|
161
|
-
encodedAssetManifest: Uint8Array
|
|
412
|
+
encodedAssetManifest: Uint8Array<ArrayBuffer>;
|
|
162
413
|
assetsReverseMap: AssetReverseMap;
|
|
163
414
|
}>;
|
|
164
415
|
|
|
@@ -266,29 +517,29 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
266
517
|
modules: z.ZodArray<z.ZodObject<{
|
|
267
518
|
type: z.ZodEnum<["ESModule", "CommonJS", "NodeJsCompatModule", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
|
|
268
519
|
path: z.ZodEffects<z.ZodString, string, string>;
|
|
269
|
-
contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array
|
|
520
|
+
contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>;
|
|
270
521
|
}, "strip", z.ZodTypeAny, {
|
|
271
522
|
type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
272
523
|
path: string;
|
|
273
|
-
contents?: string | Uint8Array | undefined;
|
|
524
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
274
525
|
}, {
|
|
275
526
|
type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
276
527
|
path: string;
|
|
277
|
-
contents?: string | Uint8Array | undefined;
|
|
528
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
278
529
|
}>, "many">;
|
|
279
530
|
modulesRoot: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
280
531
|
}, "strip", z.ZodTypeAny, {
|
|
281
532
|
modules: {
|
|
282
533
|
type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
283
534
|
path: string;
|
|
284
|
-
contents?: string | Uint8Array | undefined;
|
|
535
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
285
536
|
}[];
|
|
286
537
|
modulesRoot?: string | undefined;
|
|
287
538
|
}, {
|
|
288
539
|
modules: {
|
|
289
540
|
type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
290
541
|
path: string;
|
|
291
|
-
contents?: string | Uint8Array | undefined;
|
|
542
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
292
543
|
}[];
|
|
293
544
|
modulesRoot?: string | undefined;
|
|
294
545
|
}>, z.ZodObject<{
|
|
@@ -371,9 +622,9 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
371
622
|
compatibilityFlags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
372
623
|
routes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
373
624
|
bindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<Json, z.ZodTypeDef, Json>>>;
|
|
374
|
-
wasmBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array
|
|
625
|
+
wasmBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>>;
|
|
375
626
|
textBlobBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, string, string>>>;
|
|
376
|
-
dataBlobBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array
|
|
627
|
+
dataBlobBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>>;
|
|
377
628
|
serviceBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodLiteral<typeof kCurrentWorker>, z.ZodObject<{
|
|
378
629
|
name: z.ZodUnion<[z.ZodString, z.ZodLiteral<typeof kCurrentWorker>]>;
|
|
379
630
|
entrypoint: z.ZodOptional<z.ZodString>;
|
|
@@ -401,7 +652,14 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
401
652
|
requireClientCerts: z.ZodOptional<z.ZodBoolean>;
|
|
402
653
|
trustBrowserCas: z.ZodOptional<z.ZodBoolean>;
|
|
403
654
|
trustedCertificates: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
404
|
-
minVersion: z.ZodOptional<z.ZodNativeEnum<
|
|
655
|
+
minVersion: z.ZodOptional<z.ZodNativeEnum<{
|
|
656
|
+
readonly GOOD_DEFAULT: 0;
|
|
657
|
+
readonly SSL3: 1;
|
|
658
|
+
readonly TLS1DOT0: 2;
|
|
659
|
+
readonly TLS1DOT1: 3;
|
|
660
|
+
readonly TLS1DOT2: 4;
|
|
661
|
+
readonly TLS1DOT3: 5;
|
|
662
|
+
}>>;
|
|
405
663
|
cipherList: z.ZodOptional<z.ZodString>;
|
|
406
664
|
}, "strip", z.ZodTypeAny, {
|
|
407
665
|
keypair?: {
|
|
@@ -411,7 +669,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
411
669
|
requireClientCerts?: boolean | undefined;
|
|
412
670
|
trustBrowserCas?: boolean | undefined;
|
|
413
671
|
trustedCertificates?: string[] | undefined;
|
|
414
|
-
minVersion?:
|
|
672
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
415
673
|
cipherList?: string | undefined;
|
|
416
674
|
}, {
|
|
417
675
|
keypair?: {
|
|
@@ -421,7 +679,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
421
679
|
requireClientCerts?: boolean | undefined;
|
|
422
680
|
trustBrowserCas?: boolean | undefined;
|
|
423
681
|
trustedCertificates?: string[] | undefined;
|
|
424
|
-
minVersion?:
|
|
682
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
425
683
|
cipherList?: string | undefined;
|
|
426
684
|
}>>;
|
|
427
685
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -435,7 +693,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
435
693
|
requireClientCerts?: boolean | undefined;
|
|
436
694
|
trustBrowserCas?: boolean | undefined;
|
|
437
695
|
trustedCertificates?: string[] | undefined;
|
|
438
|
-
minVersion?:
|
|
696
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
439
697
|
cipherList?: string | undefined;
|
|
440
698
|
} | undefined;
|
|
441
699
|
}, {
|
|
@@ -449,7 +707,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
449
707
|
requireClientCerts?: boolean | undefined;
|
|
450
708
|
trustBrowserCas?: boolean | undefined;
|
|
451
709
|
trustedCertificates?: string[] | undefined;
|
|
452
|
-
minVersion?:
|
|
710
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
453
711
|
cipherList?: string | undefined;
|
|
454
712
|
} | undefined;
|
|
455
713
|
}>;
|
|
@@ -465,7 +723,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
465
723
|
requireClientCerts?: boolean | undefined;
|
|
466
724
|
trustBrowserCas?: boolean | undefined;
|
|
467
725
|
trustedCertificates?: string[] | undefined;
|
|
468
|
-
minVersion?:
|
|
726
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
469
727
|
cipherList?: string | undefined;
|
|
470
728
|
} | undefined;
|
|
471
729
|
};
|
|
@@ -481,16 +739,16 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
481
739
|
requireClientCerts?: boolean | undefined;
|
|
482
740
|
trustBrowserCas?: boolean | undefined;
|
|
483
741
|
trustedCertificates?: string[] | undefined;
|
|
484
|
-
minVersion?:
|
|
742
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
485
743
|
cipherList?: string | undefined;
|
|
486
744
|
} | undefined;
|
|
487
745
|
};
|
|
488
746
|
}>, z.ZodObject<{
|
|
489
|
-
external: z.ZodType<
|
|
747
|
+
external: z.ZodType<ExternalServer_2, z.ZodTypeDef, ExternalServer_2>;
|
|
490
748
|
}, "strip", z.ZodTypeAny, {
|
|
491
|
-
external:
|
|
749
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
492
750
|
}, {
|
|
493
|
-
external:
|
|
751
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
494
752
|
}>, z.ZodObject<{
|
|
495
753
|
disk: z.ZodObject<{
|
|
496
754
|
path: z.ZodString;
|
|
@@ -512,7 +770,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
512
770
|
path: string;
|
|
513
771
|
writable?: boolean | undefined;
|
|
514
772
|
};
|
|
515
|
-
}>, z.ZodType<(request:
|
|
773
|
+
}>, z.ZodType<(request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>, z.ZodTypeDef, (request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>>]>>>;
|
|
516
774
|
wrappedBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
517
775
|
scriptName: z.ZodString;
|
|
518
776
|
entrypoint: z.ZodOptional<z.ZodString>;
|
|
@@ -553,7 +811,14 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
553
811
|
requireClientCerts: z.ZodOptional<z.ZodBoolean>;
|
|
554
812
|
trustBrowserCas: z.ZodOptional<z.ZodBoolean>;
|
|
555
813
|
trustedCertificates: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
556
|
-
minVersion: z.ZodOptional<z.ZodNativeEnum<
|
|
814
|
+
minVersion: z.ZodOptional<z.ZodNativeEnum<{
|
|
815
|
+
readonly GOOD_DEFAULT: 0;
|
|
816
|
+
readonly SSL3: 1;
|
|
817
|
+
readonly TLS1DOT0: 2;
|
|
818
|
+
readonly TLS1DOT1: 3;
|
|
819
|
+
readonly TLS1DOT2: 4;
|
|
820
|
+
readonly TLS1DOT3: 5;
|
|
821
|
+
}>>;
|
|
557
822
|
cipherList: z.ZodOptional<z.ZodString>;
|
|
558
823
|
}, "strip", z.ZodTypeAny, {
|
|
559
824
|
keypair?: {
|
|
@@ -563,7 +828,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
563
828
|
requireClientCerts?: boolean | undefined;
|
|
564
829
|
trustBrowserCas?: boolean | undefined;
|
|
565
830
|
trustedCertificates?: string[] | undefined;
|
|
566
|
-
minVersion?:
|
|
831
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
567
832
|
cipherList?: string | undefined;
|
|
568
833
|
}, {
|
|
569
834
|
keypair?: {
|
|
@@ -573,7 +838,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
573
838
|
requireClientCerts?: boolean | undefined;
|
|
574
839
|
trustBrowserCas?: boolean | undefined;
|
|
575
840
|
trustedCertificates?: string[] | undefined;
|
|
576
|
-
minVersion?:
|
|
841
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
577
842
|
cipherList?: string | undefined;
|
|
578
843
|
}>>;
|
|
579
844
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -587,7 +852,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
587
852
|
requireClientCerts?: boolean | undefined;
|
|
588
853
|
trustBrowserCas?: boolean | undefined;
|
|
589
854
|
trustedCertificates?: string[] | undefined;
|
|
590
|
-
minVersion?:
|
|
855
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
591
856
|
cipherList?: string | undefined;
|
|
592
857
|
} | undefined;
|
|
593
858
|
}, {
|
|
@@ -601,7 +866,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
601
866
|
requireClientCerts?: boolean | undefined;
|
|
602
867
|
trustBrowserCas?: boolean | undefined;
|
|
603
868
|
trustedCertificates?: string[] | undefined;
|
|
604
|
-
minVersion?:
|
|
869
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
605
870
|
cipherList?: string | undefined;
|
|
606
871
|
} | undefined;
|
|
607
872
|
}>;
|
|
@@ -617,7 +882,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
617
882
|
requireClientCerts?: boolean | undefined;
|
|
618
883
|
trustBrowserCas?: boolean | undefined;
|
|
619
884
|
trustedCertificates?: string[] | undefined;
|
|
620
|
-
minVersion?:
|
|
885
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
621
886
|
cipherList?: string | undefined;
|
|
622
887
|
} | undefined;
|
|
623
888
|
};
|
|
@@ -633,16 +898,16 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
633
898
|
requireClientCerts?: boolean | undefined;
|
|
634
899
|
trustBrowserCas?: boolean | undefined;
|
|
635
900
|
trustedCertificates?: string[] | undefined;
|
|
636
|
-
minVersion?:
|
|
901
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
637
902
|
cipherList?: string | undefined;
|
|
638
903
|
} | undefined;
|
|
639
904
|
};
|
|
640
905
|
}>, z.ZodObject<{
|
|
641
|
-
external: z.ZodType<
|
|
906
|
+
external: z.ZodType<ExternalServer_2, z.ZodTypeDef, ExternalServer_2>;
|
|
642
907
|
}, "strip", z.ZodTypeAny, {
|
|
643
|
-
external:
|
|
908
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
644
909
|
}, {
|
|
645
|
-
external:
|
|
910
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
646
911
|
}>, z.ZodObject<{
|
|
647
912
|
disk: z.ZodObject<{
|
|
648
913
|
path: z.ZodString;
|
|
@@ -664,7 +929,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
664
929
|
path: string;
|
|
665
930
|
writable?: boolean | undefined;
|
|
666
931
|
};
|
|
667
|
-
}>, z.ZodType<(request:
|
|
932
|
+
}>, z.ZodType<(request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>, z.ZodTypeDef, (request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>>]>>;
|
|
668
933
|
fetchMock: z.ZodOptional<z.ZodType<MockAgent<MockAgent.Options>, z.ZodTypeDef, MockAgent<MockAgent.Options>>>;
|
|
669
934
|
unsafeEphemeralDurableObjects: z.ZodOptional<z.ZodBoolean>;
|
|
670
935
|
unsafeDirectSockets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -685,10 +950,12 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
685
950
|
}>, "many">>;
|
|
686
951
|
unsafeEvalBinding: z.ZodOptional<z.ZodString>;
|
|
687
952
|
unsafeUseModuleFallbackService: z.ZodOptional<z.ZodBoolean>;
|
|
688
|
-
/** Used to set the vitest pool worker SELF binding to point to the
|
|
689
|
-
(If there are assets but we're not using vitest, the miniflare entry worker can point directly to
|
|
953
|
+
/** Used to set the vitest pool worker SELF binding to point to the Router Worker if there are assets.
|
|
954
|
+
(If there are assets but we're not using vitest, the miniflare entry worker can point directly to
|
|
955
|
+
Router Worker)
|
|
690
956
|
*/
|
|
691
957
|
hasAssetsAndIsVitest: z.ZodOptional<z.ZodBoolean>;
|
|
958
|
+
unsafeEnableAssetsRpc: z.ZodOptional<z.ZodBoolean>;
|
|
692
959
|
}, "strip", z.ZodTypeAny, {
|
|
693
960
|
name?: string | undefined;
|
|
694
961
|
rootPath?: undefined;
|
|
@@ -696,9 +963,9 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
696
963
|
compatibilityFlags?: string[] | undefined;
|
|
697
964
|
routes?: string[] | undefined;
|
|
698
965
|
bindings?: Record<string, Json> | undefined;
|
|
699
|
-
wasmBindings?: Record<string, string | Uint8Array
|
|
966
|
+
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
700
967
|
textBlobBindings?: Record<string, string> | undefined;
|
|
701
|
-
dataBlobBindings?: Record<string, string | Uint8Array
|
|
968
|
+
dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
702
969
|
serviceBindings?: Record<string, string | typeof kCurrentWorker | {
|
|
703
970
|
name: string | typeof kCurrentWorker;
|
|
704
971
|
entrypoint?: string | undefined;
|
|
@@ -714,18 +981,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
714
981
|
requireClientCerts?: boolean | undefined;
|
|
715
982
|
trustBrowserCas?: boolean | undefined;
|
|
716
983
|
trustedCertificates?: string[] | undefined;
|
|
717
|
-
minVersion?:
|
|
984
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
718
985
|
cipherList?: string | undefined;
|
|
719
986
|
} | undefined;
|
|
720
987
|
};
|
|
721
988
|
} | {
|
|
722
|
-
external:
|
|
989
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
723
990
|
} | {
|
|
724
991
|
disk: {
|
|
725
992
|
path: string;
|
|
726
993
|
writable?: boolean | undefined;
|
|
727
994
|
};
|
|
728
|
-
} | ((request:
|
|
995
|
+
} | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>)> | undefined;
|
|
729
996
|
wrappedBindings?: Record<string, string | {
|
|
730
997
|
scriptName: string;
|
|
731
998
|
entrypoint?: string | undefined;
|
|
@@ -746,18 +1013,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
746
1013
|
requireClientCerts?: boolean | undefined;
|
|
747
1014
|
trustBrowserCas?: boolean | undefined;
|
|
748
1015
|
trustedCertificates?: string[] | undefined;
|
|
749
|
-
minVersion?:
|
|
1016
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
750
1017
|
cipherList?: string | undefined;
|
|
751
1018
|
} | undefined;
|
|
752
1019
|
};
|
|
753
1020
|
} | {
|
|
754
|
-
external:
|
|
1021
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
755
1022
|
} | {
|
|
756
1023
|
disk: {
|
|
757
1024
|
path: string;
|
|
758
1025
|
writable?: boolean | undefined;
|
|
759
1026
|
};
|
|
760
|
-
} | ((request:
|
|
1027
|
+
} | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
|
|
761
1028
|
fetchMock?: MockAgent<MockAgent.Options> | undefined;
|
|
762
1029
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
763
1030
|
unsafeDirectSockets?: {
|
|
@@ -769,6 +1036,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
769
1036
|
unsafeEvalBinding?: string | undefined;
|
|
770
1037
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
771
1038
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
1039
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
772
1040
|
}, {
|
|
773
1041
|
name?: string | undefined;
|
|
774
1042
|
rootPath?: string | undefined;
|
|
@@ -776,9 +1044,9 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
776
1044
|
compatibilityFlags?: string[] | undefined;
|
|
777
1045
|
routes?: string[] | undefined;
|
|
778
1046
|
bindings?: Record<string, Json> | undefined;
|
|
779
|
-
wasmBindings?: Record<string, string | Uint8Array
|
|
1047
|
+
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
780
1048
|
textBlobBindings?: Record<string, string> | undefined;
|
|
781
|
-
dataBlobBindings?: Record<string, string | Uint8Array
|
|
1049
|
+
dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
782
1050
|
serviceBindings?: Record<string, string | typeof kCurrentWorker | {
|
|
783
1051
|
name: string | typeof kCurrentWorker;
|
|
784
1052
|
entrypoint?: string | undefined;
|
|
@@ -794,18 +1062,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
794
1062
|
requireClientCerts?: boolean | undefined;
|
|
795
1063
|
trustBrowserCas?: boolean | undefined;
|
|
796
1064
|
trustedCertificates?: string[] | undefined;
|
|
797
|
-
minVersion?:
|
|
1065
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
798
1066
|
cipherList?: string | undefined;
|
|
799
1067
|
} | undefined;
|
|
800
1068
|
};
|
|
801
1069
|
} | {
|
|
802
|
-
external:
|
|
1070
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
803
1071
|
} | {
|
|
804
1072
|
disk: {
|
|
805
1073
|
path: string;
|
|
806
1074
|
writable?: boolean | undefined;
|
|
807
1075
|
};
|
|
808
|
-
} | ((request:
|
|
1076
|
+
} | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>)> | undefined;
|
|
809
1077
|
wrappedBindings?: Record<string, string | {
|
|
810
1078
|
scriptName: string;
|
|
811
1079
|
entrypoint?: string | undefined;
|
|
@@ -826,18 +1094,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
826
1094
|
requireClientCerts?: boolean | undefined;
|
|
827
1095
|
trustBrowserCas?: boolean | undefined;
|
|
828
1096
|
trustedCertificates?: string[] | undefined;
|
|
829
|
-
minVersion?:
|
|
1097
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
830
1098
|
cipherList?: string | undefined;
|
|
831
1099
|
} | undefined;
|
|
832
1100
|
};
|
|
833
1101
|
} | {
|
|
834
|
-
external:
|
|
1102
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
835
1103
|
} | {
|
|
836
1104
|
disk: {
|
|
837
1105
|
path: string;
|
|
838
1106
|
writable?: boolean | undefined;
|
|
839
1107
|
};
|
|
840
|
-
} | ((request:
|
|
1108
|
+
} | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
|
|
841
1109
|
fetchMock?: MockAgent<MockAgent.Options> | undefined;
|
|
842
1110
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
843
1111
|
unsafeDirectSockets?: {
|
|
@@ -849,11 +1117,12 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
849
1117
|
unsafeEvalBinding?: string | undefined;
|
|
850
1118
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
851
1119
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
1120
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
852
1121
|
}>>, ({
|
|
853
1122
|
modules: {
|
|
854
1123
|
type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
855
1124
|
path: string;
|
|
856
|
-
contents?: string | Uint8Array | undefined;
|
|
1125
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
857
1126
|
}[];
|
|
858
1127
|
modulesRoot?: string | undefined;
|
|
859
1128
|
} & {
|
|
@@ -863,9 +1132,9 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
863
1132
|
compatibilityFlags?: string[] | undefined;
|
|
864
1133
|
routes?: string[] | undefined;
|
|
865
1134
|
bindings?: Record<string, Json> | undefined;
|
|
866
|
-
wasmBindings?: Record<string, string | Uint8Array
|
|
1135
|
+
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
867
1136
|
textBlobBindings?: Record<string, string> | undefined;
|
|
868
|
-
dataBlobBindings?: Record<string, string | Uint8Array
|
|
1137
|
+
dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
869
1138
|
serviceBindings?: Record<string, string | typeof kCurrentWorker | {
|
|
870
1139
|
name: string | typeof kCurrentWorker;
|
|
871
1140
|
entrypoint?: string | undefined;
|
|
@@ -881,18 +1150,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
881
1150
|
requireClientCerts?: boolean | undefined;
|
|
882
1151
|
trustBrowserCas?: boolean | undefined;
|
|
883
1152
|
trustedCertificates?: string[] | undefined;
|
|
884
|
-
minVersion?:
|
|
1153
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
885
1154
|
cipherList?: string | undefined;
|
|
886
1155
|
} | undefined;
|
|
887
1156
|
};
|
|
888
1157
|
} | {
|
|
889
|
-
external:
|
|
1158
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
890
1159
|
} | {
|
|
891
1160
|
disk: {
|
|
892
1161
|
path: string;
|
|
893
1162
|
writable?: boolean | undefined;
|
|
894
1163
|
};
|
|
895
|
-
} | ((request:
|
|
1164
|
+
} | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>)> | undefined;
|
|
896
1165
|
wrappedBindings?: Record<string, string | {
|
|
897
1166
|
scriptName: string;
|
|
898
1167
|
entrypoint?: string | undefined;
|
|
@@ -913,18 +1182,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
913
1182
|
requireClientCerts?: boolean | undefined;
|
|
914
1183
|
trustBrowserCas?: boolean | undefined;
|
|
915
1184
|
trustedCertificates?: string[] | undefined;
|
|
916
|
-
minVersion?:
|
|
1185
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
917
1186
|
cipherList?: string | undefined;
|
|
918
1187
|
} | undefined;
|
|
919
1188
|
};
|
|
920
1189
|
} | {
|
|
921
|
-
external:
|
|
1190
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
922
1191
|
} | {
|
|
923
1192
|
disk: {
|
|
924
1193
|
path: string;
|
|
925
1194
|
writable?: boolean | undefined;
|
|
926
1195
|
};
|
|
927
|
-
} | ((request:
|
|
1196
|
+
} | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
|
|
928
1197
|
fetchMock?: MockAgent<MockAgent.Options> | undefined;
|
|
929
1198
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
930
1199
|
unsafeDirectSockets?: {
|
|
@@ -936,6 +1205,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
936
1205
|
unsafeEvalBinding?: string | undefined;
|
|
937
1206
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
938
1207
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
1208
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
939
1209
|
}) | ({
|
|
940
1210
|
script: string;
|
|
941
1211
|
scriptPath?: string | undefined;
|
|
@@ -953,9 +1223,9 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
953
1223
|
compatibilityFlags?: string[] | undefined;
|
|
954
1224
|
routes?: string[] | undefined;
|
|
955
1225
|
bindings?: Record<string, Json> | undefined;
|
|
956
|
-
wasmBindings?: Record<string, string | Uint8Array
|
|
1226
|
+
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
957
1227
|
textBlobBindings?: Record<string, string> | undefined;
|
|
958
|
-
dataBlobBindings?: Record<string, string | Uint8Array
|
|
1228
|
+
dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
959
1229
|
serviceBindings?: Record<string, string | typeof kCurrentWorker | {
|
|
960
1230
|
name: string | typeof kCurrentWorker;
|
|
961
1231
|
entrypoint?: string | undefined;
|
|
@@ -971,18 +1241,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
971
1241
|
requireClientCerts?: boolean | undefined;
|
|
972
1242
|
trustBrowserCas?: boolean | undefined;
|
|
973
1243
|
trustedCertificates?: string[] | undefined;
|
|
974
|
-
minVersion?:
|
|
1244
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
975
1245
|
cipherList?: string | undefined;
|
|
976
1246
|
} | undefined;
|
|
977
1247
|
};
|
|
978
1248
|
} | {
|
|
979
|
-
external:
|
|
1249
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
980
1250
|
} | {
|
|
981
1251
|
disk: {
|
|
982
1252
|
path: string;
|
|
983
1253
|
writable?: boolean | undefined;
|
|
984
1254
|
};
|
|
985
|
-
} | ((request:
|
|
1255
|
+
} | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>)> | undefined;
|
|
986
1256
|
wrappedBindings?: Record<string, string | {
|
|
987
1257
|
scriptName: string;
|
|
988
1258
|
entrypoint?: string | undefined;
|
|
@@ -1003,18 +1273,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1003
1273
|
requireClientCerts?: boolean | undefined;
|
|
1004
1274
|
trustBrowserCas?: boolean | undefined;
|
|
1005
1275
|
trustedCertificates?: string[] | undefined;
|
|
1006
|
-
minVersion?:
|
|
1276
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
1007
1277
|
cipherList?: string | undefined;
|
|
1008
1278
|
} | undefined;
|
|
1009
1279
|
};
|
|
1010
1280
|
} | {
|
|
1011
|
-
external:
|
|
1281
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
1012
1282
|
} | {
|
|
1013
1283
|
disk: {
|
|
1014
1284
|
path: string;
|
|
1015
1285
|
writable?: boolean | undefined;
|
|
1016
1286
|
};
|
|
1017
|
-
} | ((request:
|
|
1287
|
+
} | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
|
|
1018
1288
|
fetchMock?: MockAgent<MockAgent.Options> | undefined;
|
|
1019
1289
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
1020
1290
|
unsafeDirectSockets?: {
|
|
@@ -1026,6 +1296,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1026
1296
|
unsafeEvalBinding?: string | undefined;
|
|
1027
1297
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
1028
1298
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
1299
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
1029
1300
|
}) | ({
|
|
1030
1301
|
scriptPath: string;
|
|
1031
1302
|
modules?: boolean | undefined;
|
|
@@ -1042,9 +1313,9 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1042
1313
|
compatibilityFlags?: string[] | undefined;
|
|
1043
1314
|
routes?: string[] | undefined;
|
|
1044
1315
|
bindings?: Record<string, Json> | undefined;
|
|
1045
|
-
wasmBindings?: Record<string, string | Uint8Array
|
|
1316
|
+
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
1046
1317
|
textBlobBindings?: Record<string, string> | undefined;
|
|
1047
|
-
dataBlobBindings?: Record<string, string | Uint8Array
|
|
1318
|
+
dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
1048
1319
|
serviceBindings?: Record<string, string | typeof kCurrentWorker | {
|
|
1049
1320
|
name: string | typeof kCurrentWorker;
|
|
1050
1321
|
entrypoint?: string | undefined;
|
|
@@ -1060,18 +1331,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1060
1331
|
requireClientCerts?: boolean | undefined;
|
|
1061
1332
|
trustBrowserCas?: boolean | undefined;
|
|
1062
1333
|
trustedCertificates?: string[] | undefined;
|
|
1063
|
-
minVersion?:
|
|
1334
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
1064
1335
|
cipherList?: string | undefined;
|
|
1065
1336
|
} | undefined;
|
|
1066
1337
|
};
|
|
1067
1338
|
} | {
|
|
1068
|
-
external:
|
|
1339
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
1069
1340
|
} | {
|
|
1070
1341
|
disk: {
|
|
1071
1342
|
path: string;
|
|
1072
1343
|
writable?: boolean | undefined;
|
|
1073
1344
|
};
|
|
1074
|
-
} | ((request:
|
|
1345
|
+
} | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>)> | undefined;
|
|
1075
1346
|
wrappedBindings?: Record<string, string | {
|
|
1076
1347
|
scriptName: string;
|
|
1077
1348
|
entrypoint?: string | undefined;
|
|
@@ -1092,18 +1363,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1092
1363
|
requireClientCerts?: boolean | undefined;
|
|
1093
1364
|
trustBrowserCas?: boolean | undefined;
|
|
1094
1365
|
trustedCertificates?: string[] | undefined;
|
|
1095
|
-
minVersion?:
|
|
1366
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
1096
1367
|
cipherList?: string | undefined;
|
|
1097
1368
|
} | undefined;
|
|
1098
1369
|
};
|
|
1099
1370
|
} | {
|
|
1100
|
-
external:
|
|
1371
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
1101
1372
|
} | {
|
|
1102
1373
|
disk: {
|
|
1103
1374
|
path: string;
|
|
1104
1375
|
writable?: boolean | undefined;
|
|
1105
1376
|
};
|
|
1106
|
-
} | ((request:
|
|
1377
|
+
} | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
|
|
1107
1378
|
fetchMock?: MockAgent<MockAgent.Options> | undefined;
|
|
1108
1379
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
1109
1380
|
unsafeDirectSockets?: {
|
|
@@ -1115,11 +1386,12 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1115
1386
|
unsafeEvalBinding?: string | undefined;
|
|
1116
1387
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
1117
1388
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
1389
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
1118
1390
|
}), ({
|
|
1119
1391
|
modules: {
|
|
1120
1392
|
type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
1121
1393
|
path: string;
|
|
1122
|
-
contents?: string | Uint8Array | undefined;
|
|
1394
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
1123
1395
|
}[];
|
|
1124
1396
|
modulesRoot?: string | undefined;
|
|
1125
1397
|
} | {
|
|
@@ -1148,9 +1420,9 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1148
1420
|
compatibilityFlags?: string[] | undefined;
|
|
1149
1421
|
routes?: string[] | undefined;
|
|
1150
1422
|
bindings?: Record<string, Json> | undefined;
|
|
1151
|
-
wasmBindings?: Record<string, string | Uint8Array
|
|
1423
|
+
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
1152
1424
|
textBlobBindings?: Record<string, string> | undefined;
|
|
1153
|
-
dataBlobBindings?: Record<string, string | Uint8Array
|
|
1425
|
+
dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
1154
1426
|
serviceBindings?: Record<string, string | typeof kCurrentWorker | {
|
|
1155
1427
|
name: string | typeof kCurrentWorker;
|
|
1156
1428
|
entrypoint?: string | undefined;
|
|
@@ -1166,18 +1438,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1166
1438
|
requireClientCerts?: boolean | undefined;
|
|
1167
1439
|
trustBrowserCas?: boolean | undefined;
|
|
1168
1440
|
trustedCertificates?: string[] | undefined;
|
|
1169
|
-
minVersion?:
|
|
1441
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
1170
1442
|
cipherList?: string | undefined;
|
|
1171
1443
|
} | undefined;
|
|
1172
1444
|
};
|
|
1173
1445
|
} | {
|
|
1174
|
-
external:
|
|
1446
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
1175
1447
|
} | {
|
|
1176
1448
|
disk: {
|
|
1177
1449
|
path: string;
|
|
1178
1450
|
writable?: boolean | undefined;
|
|
1179
1451
|
};
|
|
1180
|
-
} | ((request:
|
|
1452
|
+
} | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>)> | undefined;
|
|
1181
1453
|
wrappedBindings?: Record<string, string | {
|
|
1182
1454
|
scriptName: string;
|
|
1183
1455
|
entrypoint?: string | undefined;
|
|
@@ -1198,18 +1470,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1198
1470
|
requireClientCerts?: boolean | undefined;
|
|
1199
1471
|
trustBrowserCas?: boolean | undefined;
|
|
1200
1472
|
trustedCertificates?: string[] | undefined;
|
|
1201
|
-
minVersion?:
|
|
1473
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
1202
1474
|
cipherList?: string | undefined;
|
|
1203
1475
|
} | undefined;
|
|
1204
1476
|
};
|
|
1205
1477
|
} | {
|
|
1206
|
-
external:
|
|
1478
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
1207
1479
|
} | {
|
|
1208
1480
|
disk: {
|
|
1209
1481
|
path: string;
|
|
1210
1482
|
writable?: boolean | undefined;
|
|
1211
1483
|
};
|
|
1212
|
-
} | ((request:
|
|
1484
|
+
} | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
|
|
1213
1485
|
fetchMock?: MockAgent<MockAgent.Options> | undefined;
|
|
1214
1486
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
1215
1487
|
unsafeDirectSockets?: {
|
|
@@ -1221,6 +1493,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1221
1493
|
unsafeEvalBinding?: string | undefined;
|
|
1222
1494
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
1223
1495
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
1496
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
1224
1497
|
}>;
|
|
1225
1498
|
|
|
1226
1499
|
export declare const CoreSharedOptionsSchema: z.ZodObject<{
|
|
@@ -1240,8 +1513,9 @@ export declare const CoreSharedOptionsSchema: z.ZodObject<{
|
|
|
1240
1513
|
cf: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>;
|
|
1241
1514
|
liveReload: z.ZodOptional<z.ZodBoolean>;
|
|
1242
1515
|
unsafeProxySharedSecret: z.ZodOptional<z.ZodString>;
|
|
1243
|
-
unsafeModuleFallbackService: z.ZodOptional<z.ZodType<(request:
|
|
1516
|
+
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>>>;
|
|
1244
1517
|
unsafeStickyBlobs: z.ZodOptional<z.ZodBoolean>;
|
|
1518
|
+
unsafeEnableAssetsRpc: z.ZodOptional<z.ZodBoolean>;
|
|
1245
1519
|
}, "strip", z.ZodTypeAny, {
|
|
1246
1520
|
rootPath?: undefined;
|
|
1247
1521
|
host?: string | undefined;
|
|
@@ -1259,8 +1533,9 @@ export declare const CoreSharedOptionsSchema: z.ZodObject<{
|
|
|
1259
1533
|
cf?: string | boolean | Record<string, any> | undefined;
|
|
1260
1534
|
liveReload?: boolean | undefined;
|
|
1261
1535
|
unsafeProxySharedSecret?: string | undefined;
|
|
1262
|
-
unsafeModuleFallbackService?: ((request:
|
|
1536
|
+
unsafeModuleFallbackService?: ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
|
|
1263
1537
|
unsafeStickyBlobs?: boolean | undefined;
|
|
1538
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
1264
1539
|
}, {
|
|
1265
1540
|
rootPath?: string | undefined;
|
|
1266
1541
|
host?: string | undefined;
|
|
@@ -1278,8 +1553,9 @@ export declare const CoreSharedOptionsSchema: z.ZodObject<{
|
|
|
1278
1553
|
cf?: string | boolean | Record<string, any> | undefined;
|
|
1279
1554
|
liveReload?: boolean | undefined;
|
|
1280
1555
|
unsafeProxySharedSecret?: string | undefined;
|
|
1281
|
-
unsafeModuleFallbackService?: ((request:
|
|
1556
|
+
unsafeModuleFallbackService?: ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
|
|
1282
1557
|
unsafeStickyBlobs?: boolean | undefined;
|
|
1558
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
1283
1559
|
}>;
|
|
1284
1560
|
|
|
1285
1561
|
export declare function coupleWebSocket(ws: NodeWebSocket, pair: WebSocket): Promise<void>;
|
|
@@ -1431,8 +1707,6 @@ export declare const DurableObjectsSharedOptionsSchema: z.ZodObject<{
|
|
|
1431
1707
|
|
|
1432
1708
|
export declare function encodeSitesKey(key: string): string;
|
|
1433
1709
|
|
|
1434
|
-
export declare const ENTRY_SOCKET_HTTP_OPTIONS: HttpOptions;
|
|
1435
|
-
|
|
1436
1710
|
export declare class ErrorEvent extends Event {
|
|
1437
1711
|
readonly error: Error | null;
|
|
1438
1712
|
constructor(type: "error", init?: {
|
|
@@ -1514,13 +1788,10 @@ export declare function getMiniflareObjectBindings(unsafeStickyBlobs: boolean):
|
|
|
1514
1788
|
*
|
|
1515
1789
|
* @param compatibilityDateStr The compatibility date
|
|
1516
1790
|
* @param compatibilityFlags The compatibility flags
|
|
1517
|
-
* @param opts.nodeCompat Whether the legacy node_compat arg is being used
|
|
1518
1791
|
* @returns the mode and flags to indicate specific configuration for validating.
|
|
1519
1792
|
*/
|
|
1520
1793
|
export declare function getNodeCompat(compatibilityDate: string | undefined, // Default to some arbitrary old date
|
|
1521
|
-
compatibilityFlags: string[]
|
|
1522
|
-
nodeCompat?: boolean;
|
|
1523
|
-
}): {
|
|
1794
|
+
compatibilityFlags: string[]): {
|
|
1524
1795
|
mode: NodeJSCompatMode;
|
|
1525
1796
|
hasNodejsAlsFlag: boolean;
|
|
1526
1797
|
hasNodejsCompatFlag: boolean;
|
|
@@ -1564,10 +1835,12 @@ export declare interface HttpOptions_Header {
|
|
|
1564
1835
|
value?: string;
|
|
1565
1836
|
}
|
|
1566
1837
|
|
|
1567
|
-
export declare
|
|
1568
|
-
HOST
|
|
1569
|
-
PROXY
|
|
1570
|
-
}
|
|
1838
|
+
export declare const HttpOptions_Style: {
|
|
1839
|
+
readonly HOST: 0;
|
|
1840
|
+
readonly PROXY: 1;
|
|
1841
|
+
};
|
|
1842
|
+
|
|
1843
|
+
export declare type HttpOptions_Style = (typeof HttpOptions_Style)[keyof typeof HttpOptions_Style];
|
|
1571
1844
|
|
|
1572
1845
|
export declare const HYPERDRIVE_PLUGIN: Plugin<typeof HyperdriveInputOptionsSchema>;
|
|
1573
1846
|
|
|
@@ -1751,9 +2024,9 @@ export declare function maybeParseURL(url: Persistence): URL | undefined;
|
|
|
1751
2024
|
export declare function mergeWorkerOptions(a: Partial<WorkerOptions>, b: Partial<WorkerOptions>): Partial<WorkerOptions>;
|
|
1752
2025
|
|
|
1753
2026
|
declare class MessageEvent_2 extends Event {
|
|
1754
|
-
readonly data: ArrayBuffer |
|
|
2027
|
+
readonly data: string | ArrayBuffer | Uint8Array<ArrayBuffer>;
|
|
1755
2028
|
constructor(type: "message", init: {
|
|
1756
|
-
data: ArrayBuffer |
|
|
2029
|
+
data: string | ArrayBuffer | Uint8Array<ArrayBuffer>;
|
|
1757
2030
|
});
|
|
1758
2031
|
}
|
|
1759
2032
|
export { MessageEvent_2 as MessageEvent }
|
|
@@ -1803,15 +2076,15 @@ export declare type ModuleDefinition = z.infer<typeof ModuleDefinitionSchema>;
|
|
|
1803
2076
|
export declare const ModuleDefinitionSchema: z.ZodObject<{
|
|
1804
2077
|
type: z.ZodEnum<["ESModule", "CommonJS", "NodeJsCompatModule", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
|
|
1805
2078
|
path: z.ZodEffects<z.ZodString, string, string>;
|
|
1806
|
-
contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array
|
|
2079
|
+
contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>;
|
|
1807
2080
|
}, "strip", z.ZodTypeAny, {
|
|
1808
2081
|
type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
1809
2082
|
path: string;
|
|
1810
|
-
contents?: string | Uint8Array | undefined;
|
|
2083
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
1811
2084
|
}, {
|
|
1812
2085
|
type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
1813
2086
|
path: string;
|
|
1814
|
-
contents?: string | Uint8Array | undefined;
|
|
2087
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
1815
2088
|
}>;
|
|
1816
2089
|
|
|
1817
2090
|
export declare type ModuleRule = z.infer<typeof ModuleRuleSchema>;
|
|
@@ -1859,14 +2132,13 @@ export declare const NODE_PLATFORM_IMPL: PlatformImpl<ReadableStream_3>;
|
|
|
1859
2132
|
|
|
1860
2133
|
/**
|
|
1861
2134
|
* We can provide Node.js compatibility in a number of different modes:
|
|
1862
|
-
* - "legacy" - this mode adds compile-time polyfills that are not well maintained and cannot work with workerd runtime builtins.
|
|
1863
2135
|
* - "als": this mode tells the workerd runtime to enable only the Async Local Storage builtin library (accessible via `node:async_hooks`).
|
|
1864
2136
|
* - "v1" - this mode tells the workerd runtime to enable some Node.js builtin libraries (accessible only via `node:...` imports) but no globals.
|
|
1865
2137
|
* - "v2" - this mode tells the workerd runtime to enable more Node.js builtin libraries (accessible both with and without the `node:` prefix)
|
|
1866
2138
|
* 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.
|
|
1867
2139
|
* - null - no Node.js compatibility.
|
|
1868
2140
|
*/
|
|
1869
|
-
export declare type NodeJSCompatMode = "
|
|
2141
|
+
export declare type NodeJSCompatMode = "als" | "v1" | "v2" | null;
|
|
1870
2142
|
|
|
1871
2143
|
export declare class NoOpLog extends Log {
|
|
1872
2144
|
constructor();
|
|
@@ -1984,12 +2256,24 @@ export declare type Persistence = z.infer<typeof PersistenceSchema>;
|
|
|
1984
2256
|
|
|
1985
2257
|
export declare const PersistenceSchema: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
|
|
1986
2258
|
|
|
2259
|
+
export declare const PIPELINE_PLUGIN: Plugin<typeof PipelineOptionsSchema>;
|
|
2260
|
+
|
|
2261
|
+
export declare const PipelineOptionsSchema: z.ZodObject<{
|
|
2262
|
+
pipelines: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodString, "many">]>>;
|
|
2263
|
+
}, "strip", z.ZodTypeAny, {
|
|
2264
|
+
pipelines?: string[] | Record<string, string> | undefined;
|
|
2265
|
+
}, {
|
|
2266
|
+
pipelines?: string[] | Record<string, string> | undefined;
|
|
2267
|
+
}>;
|
|
2268
|
+
|
|
2269
|
+
export declare const PIPELINES_PLUGIN_NAME = "pipelines";
|
|
2270
|
+
|
|
1987
2271
|
export declare interface PlatformImpl<RS> {
|
|
1988
2272
|
Blob: typeof Blob_2;
|
|
1989
2273
|
File: typeof File_2;
|
|
1990
2274
|
Headers: typeof Headers_3;
|
|
1991
|
-
Request: typeof
|
|
1992
|
-
Response: typeof
|
|
2275
|
+
Request: typeof Request_5;
|
|
2276
|
+
Response: typeof Response_5;
|
|
1993
2277
|
isReadableStream(value: unknown): value is RS;
|
|
1994
2278
|
bufferReadableStream(stream: RS): Promise<ArrayBuffer>;
|
|
1995
2279
|
unbufferReadableStream(buffer: ArrayBuffer): RS;
|
|
@@ -2012,33 +2296,33 @@ export declare interface PluginBase<Options extends z.ZodType, SharedOptions ext
|
|
|
2012
2296
|
}
|
|
2013
2297
|
|
|
2014
2298
|
export declare const PLUGINS: {
|
|
2015
|
-
core:
|
|
2299
|
+
core: Plugin_2<z.ZodEffects<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
2016
2300
|
modules: z.ZodArray<z.ZodObject<{
|
|
2017
2301
|
type: z.ZodEnum<["ESModule", "CommonJS", "NodeJsCompatModule", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
|
|
2018
2302
|
path: z.ZodEffects<z.ZodString, string, string>;
|
|
2019
|
-
contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array
|
|
2303
|
+
contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>;
|
|
2020
2304
|
}, "strip", z.ZodTypeAny, {
|
|
2021
2305
|
type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2022
2306
|
path: string;
|
|
2023
|
-
contents?: string | Uint8Array | undefined;
|
|
2307
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
2024
2308
|
}, {
|
|
2025
2309
|
type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2026
2310
|
path: string;
|
|
2027
|
-
contents?: string | Uint8Array | undefined;
|
|
2311
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
2028
2312
|
}>, "many">;
|
|
2029
2313
|
modulesRoot: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2030
2314
|
}, "strip", z.ZodTypeAny, {
|
|
2031
2315
|
modules: {
|
|
2032
2316
|
type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2033
2317
|
path: string;
|
|
2034
|
-
contents?: string | Uint8Array | undefined;
|
|
2318
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
2035
2319
|
}[];
|
|
2036
2320
|
modulesRoot?: string | undefined;
|
|
2037
2321
|
}, {
|
|
2038
2322
|
modules: {
|
|
2039
2323
|
type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2040
2324
|
path: string;
|
|
2041
|
-
contents?: string | Uint8Array | undefined;
|
|
2325
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
2042
2326
|
}[];
|
|
2043
2327
|
modulesRoot?: string | undefined;
|
|
2044
2328
|
}>, z.ZodObject<{
|
|
@@ -2120,18 +2404,18 @@ export declare const PLUGINS: {
|
|
|
2120
2404
|
compatibilityDate: z.ZodOptional<z.ZodString>;
|
|
2121
2405
|
compatibilityFlags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2122
2406
|
routes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2123
|
-
bindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<
|
|
2124
|
-
wasmBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array
|
|
2407
|
+
bindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<Json_2, z.ZodTypeDef, Json_2>>>;
|
|
2408
|
+
wasmBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>>;
|
|
2125
2409
|
textBlobBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, string, string>>>;
|
|
2126
|
-
dataBlobBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array
|
|
2127
|
-
serviceBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodLiteral<
|
|
2128
|
-
name: z.ZodUnion<[z.ZodString, z.ZodLiteral<
|
|
2410
|
+
dataBlobBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>>;
|
|
2411
|
+
serviceBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodLiteral<kCurrentWorker_2>, z.ZodObject<{
|
|
2412
|
+
name: z.ZodUnion<[z.ZodString, z.ZodLiteral<kCurrentWorker_2>]>;
|
|
2129
2413
|
entrypoint: z.ZodOptional<z.ZodString>;
|
|
2130
2414
|
}, "strip", z.ZodTypeAny, {
|
|
2131
|
-
name: string |
|
|
2415
|
+
name: string | kCurrentWorker_2;
|
|
2132
2416
|
entrypoint?: string | undefined;
|
|
2133
2417
|
}, {
|
|
2134
|
-
name: string |
|
|
2418
|
+
name: string | kCurrentWorker_2;
|
|
2135
2419
|
entrypoint?: string | undefined;
|
|
2136
2420
|
}>, z.ZodObject<{
|
|
2137
2421
|
network: z.ZodObject<{
|
|
@@ -2151,7 +2435,14 @@ export declare const PLUGINS: {
|
|
|
2151
2435
|
requireClientCerts: z.ZodOptional<z.ZodBoolean>;
|
|
2152
2436
|
trustBrowserCas: z.ZodOptional<z.ZodBoolean>;
|
|
2153
2437
|
trustedCertificates: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2154
|
-
minVersion: z.ZodOptional<z.ZodNativeEnum<
|
|
2438
|
+
minVersion: z.ZodOptional<z.ZodNativeEnum<{
|
|
2439
|
+
readonly GOOD_DEFAULT: 0;
|
|
2440
|
+
readonly SSL3: 1;
|
|
2441
|
+
readonly TLS1DOT0: 2;
|
|
2442
|
+
readonly TLS1DOT1: 3;
|
|
2443
|
+
readonly TLS1DOT2: 4;
|
|
2444
|
+
readonly TLS1DOT3: 5;
|
|
2445
|
+
}>>;
|
|
2155
2446
|
cipherList: z.ZodOptional<z.ZodString>;
|
|
2156
2447
|
}, "strip", z.ZodTypeAny, {
|
|
2157
2448
|
keypair?: {
|
|
@@ -2161,7 +2452,7 @@ export declare const PLUGINS: {
|
|
|
2161
2452
|
requireClientCerts?: boolean | undefined;
|
|
2162
2453
|
trustBrowserCas?: boolean | undefined;
|
|
2163
2454
|
trustedCertificates?: string[] | undefined;
|
|
2164
|
-
minVersion?:
|
|
2455
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2165
2456
|
cipherList?: string | undefined;
|
|
2166
2457
|
}, {
|
|
2167
2458
|
keypair?: {
|
|
@@ -2171,7 +2462,7 @@ export declare const PLUGINS: {
|
|
|
2171
2462
|
requireClientCerts?: boolean | undefined;
|
|
2172
2463
|
trustBrowserCas?: boolean | undefined;
|
|
2173
2464
|
trustedCertificates?: string[] | undefined;
|
|
2174
|
-
minVersion?:
|
|
2465
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2175
2466
|
cipherList?: string | undefined;
|
|
2176
2467
|
}>>;
|
|
2177
2468
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2185,7 +2476,7 @@ export declare const PLUGINS: {
|
|
|
2185
2476
|
requireClientCerts?: boolean | undefined;
|
|
2186
2477
|
trustBrowserCas?: boolean | undefined;
|
|
2187
2478
|
trustedCertificates?: string[] | undefined;
|
|
2188
|
-
minVersion?:
|
|
2479
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2189
2480
|
cipherList?: string | undefined;
|
|
2190
2481
|
} | undefined;
|
|
2191
2482
|
}, {
|
|
@@ -2199,7 +2490,7 @@ export declare const PLUGINS: {
|
|
|
2199
2490
|
requireClientCerts?: boolean | undefined;
|
|
2200
2491
|
trustBrowserCas?: boolean | undefined;
|
|
2201
2492
|
trustedCertificates?: string[] | undefined;
|
|
2202
|
-
minVersion?:
|
|
2493
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2203
2494
|
cipherList?: string | undefined;
|
|
2204
2495
|
} | undefined;
|
|
2205
2496
|
}>;
|
|
@@ -2215,7 +2506,7 @@ export declare const PLUGINS: {
|
|
|
2215
2506
|
requireClientCerts?: boolean | undefined;
|
|
2216
2507
|
trustBrowserCas?: boolean | undefined;
|
|
2217
2508
|
trustedCertificates?: string[] | undefined;
|
|
2218
|
-
minVersion?:
|
|
2509
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2219
2510
|
cipherList?: string | undefined;
|
|
2220
2511
|
} | undefined;
|
|
2221
2512
|
};
|
|
@@ -2231,16 +2522,16 @@ export declare const PLUGINS: {
|
|
|
2231
2522
|
requireClientCerts?: boolean | undefined;
|
|
2232
2523
|
trustBrowserCas?: boolean | undefined;
|
|
2233
2524
|
trustedCertificates?: string[] | undefined;
|
|
2234
|
-
minVersion?:
|
|
2525
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2235
2526
|
cipherList?: string | undefined;
|
|
2236
2527
|
} | undefined;
|
|
2237
2528
|
};
|
|
2238
2529
|
}>, z.ZodObject<{
|
|
2239
|
-
external: z.ZodType<
|
|
2530
|
+
external: z.ZodType<ExternalServer_3, z.ZodTypeDef, ExternalServer_3>;
|
|
2240
2531
|
}, "strip", z.ZodTypeAny, {
|
|
2241
|
-
external:
|
|
2532
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2242
2533
|
}, {
|
|
2243
|
-
external:
|
|
2534
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2244
2535
|
}>, z.ZodObject<{
|
|
2245
2536
|
disk: z.ZodObject<{
|
|
2246
2537
|
path: z.ZodString;
|
|
@@ -2262,28 +2553,28 @@ export declare const PLUGINS: {
|
|
|
2262
2553
|
path: string;
|
|
2263
2554
|
writable?: boolean | undefined;
|
|
2264
2555
|
};
|
|
2265
|
-
}>, z.ZodType<(request:
|
|
2556
|
+
}>, z.ZodType<(request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>, z.ZodTypeDef, (request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>>]>>>;
|
|
2266
2557
|
wrappedBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
2267
2558
|
scriptName: z.ZodString;
|
|
2268
2559
|
entrypoint: z.ZodOptional<z.ZodString>;
|
|
2269
|
-
bindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<
|
|
2560
|
+
bindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<Json_2, z.ZodTypeDef, Json_2>>>;
|
|
2270
2561
|
}, "strip", z.ZodTypeAny, {
|
|
2271
2562
|
scriptName: string;
|
|
2272
2563
|
entrypoint?: string | undefined;
|
|
2273
|
-
bindings?: Record<string,
|
|
2564
|
+
bindings?: Record<string, Json_2> | undefined;
|
|
2274
2565
|
}, {
|
|
2275
2566
|
scriptName: string;
|
|
2276
2567
|
entrypoint?: string | undefined;
|
|
2277
|
-
bindings?: Record<string,
|
|
2568
|
+
bindings?: Record<string, Json_2> | undefined;
|
|
2278
2569
|
}>]>>>;
|
|
2279
|
-
outboundService: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<
|
|
2280
|
-
name: z.ZodUnion<[z.ZodString, z.ZodLiteral<
|
|
2570
|
+
outboundService: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<kCurrentWorker_2>, z.ZodObject<{
|
|
2571
|
+
name: z.ZodUnion<[z.ZodString, z.ZodLiteral<kCurrentWorker_2>]>;
|
|
2281
2572
|
entrypoint: z.ZodOptional<z.ZodString>;
|
|
2282
2573
|
}, "strip", z.ZodTypeAny, {
|
|
2283
|
-
name: string |
|
|
2574
|
+
name: string | kCurrentWorker_2;
|
|
2284
2575
|
entrypoint?: string | undefined;
|
|
2285
2576
|
}, {
|
|
2286
|
-
name: string |
|
|
2577
|
+
name: string | kCurrentWorker_2;
|
|
2287
2578
|
entrypoint?: string | undefined;
|
|
2288
2579
|
}>, z.ZodObject<{
|
|
2289
2580
|
network: z.ZodObject<{
|
|
@@ -2303,7 +2594,14 @@ export declare const PLUGINS: {
|
|
|
2303
2594
|
requireClientCerts: z.ZodOptional<z.ZodBoolean>;
|
|
2304
2595
|
trustBrowserCas: z.ZodOptional<z.ZodBoolean>;
|
|
2305
2596
|
trustedCertificates: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2306
|
-
minVersion: z.ZodOptional<z.ZodNativeEnum<
|
|
2597
|
+
minVersion: z.ZodOptional<z.ZodNativeEnum<{
|
|
2598
|
+
readonly GOOD_DEFAULT: 0;
|
|
2599
|
+
readonly SSL3: 1;
|
|
2600
|
+
readonly TLS1DOT0: 2;
|
|
2601
|
+
readonly TLS1DOT1: 3;
|
|
2602
|
+
readonly TLS1DOT2: 4;
|
|
2603
|
+
readonly TLS1DOT3: 5;
|
|
2604
|
+
}>>;
|
|
2307
2605
|
cipherList: z.ZodOptional<z.ZodString>;
|
|
2308
2606
|
}, "strip", z.ZodTypeAny, {
|
|
2309
2607
|
keypair?: {
|
|
@@ -2313,7 +2611,7 @@ export declare const PLUGINS: {
|
|
|
2313
2611
|
requireClientCerts?: boolean | undefined;
|
|
2314
2612
|
trustBrowserCas?: boolean | undefined;
|
|
2315
2613
|
trustedCertificates?: string[] | undefined;
|
|
2316
|
-
minVersion?:
|
|
2614
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2317
2615
|
cipherList?: string | undefined;
|
|
2318
2616
|
}, {
|
|
2319
2617
|
keypair?: {
|
|
@@ -2323,7 +2621,7 @@ export declare const PLUGINS: {
|
|
|
2323
2621
|
requireClientCerts?: boolean | undefined;
|
|
2324
2622
|
trustBrowserCas?: boolean | undefined;
|
|
2325
2623
|
trustedCertificates?: string[] | undefined;
|
|
2326
|
-
minVersion?:
|
|
2624
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2327
2625
|
cipherList?: string | undefined;
|
|
2328
2626
|
}>>;
|
|
2329
2627
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2337,7 +2635,7 @@ export declare const PLUGINS: {
|
|
|
2337
2635
|
requireClientCerts?: boolean | undefined;
|
|
2338
2636
|
trustBrowserCas?: boolean | undefined;
|
|
2339
2637
|
trustedCertificates?: string[] | undefined;
|
|
2340
|
-
minVersion?:
|
|
2638
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2341
2639
|
cipherList?: string | undefined;
|
|
2342
2640
|
} | undefined;
|
|
2343
2641
|
}, {
|
|
@@ -2351,7 +2649,7 @@ export declare const PLUGINS: {
|
|
|
2351
2649
|
requireClientCerts?: boolean | undefined;
|
|
2352
2650
|
trustBrowserCas?: boolean | undefined;
|
|
2353
2651
|
trustedCertificates?: string[] | undefined;
|
|
2354
|
-
minVersion?:
|
|
2652
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2355
2653
|
cipherList?: string | undefined;
|
|
2356
2654
|
} | undefined;
|
|
2357
2655
|
}>;
|
|
@@ -2367,7 +2665,7 @@ export declare const PLUGINS: {
|
|
|
2367
2665
|
requireClientCerts?: boolean | undefined;
|
|
2368
2666
|
trustBrowserCas?: boolean | undefined;
|
|
2369
2667
|
trustedCertificates?: string[] | undefined;
|
|
2370
|
-
minVersion?:
|
|
2668
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2371
2669
|
cipherList?: string | undefined;
|
|
2372
2670
|
} | undefined;
|
|
2373
2671
|
};
|
|
@@ -2383,16 +2681,16 @@ export declare const PLUGINS: {
|
|
|
2383
2681
|
requireClientCerts?: boolean | undefined;
|
|
2384
2682
|
trustBrowserCas?: boolean | undefined;
|
|
2385
2683
|
trustedCertificates?: string[] | undefined;
|
|
2386
|
-
minVersion?:
|
|
2684
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2387
2685
|
cipherList?: string | undefined;
|
|
2388
2686
|
} | undefined;
|
|
2389
2687
|
};
|
|
2390
2688
|
}>, z.ZodObject<{
|
|
2391
|
-
external: z.ZodType<
|
|
2689
|
+
external: z.ZodType<ExternalServer_3, z.ZodTypeDef, ExternalServer_3>;
|
|
2392
2690
|
}, "strip", z.ZodTypeAny, {
|
|
2393
|
-
external:
|
|
2691
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2394
2692
|
}, {
|
|
2395
|
-
external:
|
|
2693
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2396
2694
|
}>, z.ZodObject<{
|
|
2397
2695
|
disk: z.ZodObject<{
|
|
2398
2696
|
path: z.ZodString;
|
|
@@ -2414,7 +2712,7 @@ export declare const PLUGINS: {
|
|
|
2414
2712
|
path: string;
|
|
2415
2713
|
writable?: boolean | undefined;
|
|
2416
2714
|
};
|
|
2417
|
-
}>, z.ZodType<(request:
|
|
2715
|
+
}>, z.ZodType<(request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>, z.ZodTypeDef, (request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>>]>>;
|
|
2418
2716
|
fetchMock: z.ZodOptional<z.ZodType<MockAgent<MockAgent>, z.ZodTypeDef, MockAgent<MockAgent>>>;
|
|
2419
2717
|
unsafeEphemeralDurableObjects: z.ZodOptional<z.ZodBoolean>;
|
|
2420
2718
|
unsafeDirectSockets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2436,18 +2734,19 @@ export declare const PLUGINS: {
|
|
|
2436
2734
|
unsafeEvalBinding: z.ZodOptional<z.ZodString>;
|
|
2437
2735
|
unsafeUseModuleFallbackService: z.ZodOptional<z.ZodBoolean>;
|
|
2438
2736
|
hasAssetsAndIsVitest: z.ZodOptional<z.ZodBoolean>;
|
|
2737
|
+
unsafeEnableAssetsRpc: z.ZodOptional<z.ZodBoolean>;
|
|
2439
2738
|
}, "strip", z.ZodTypeAny, {
|
|
2440
2739
|
name?: string | undefined;
|
|
2441
2740
|
rootPath?: undefined;
|
|
2442
2741
|
compatibilityDate?: string | undefined;
|
|
2443
2742
|
compatibilityFlags?: string[] | undefined;
|
|
2444
2743
|
routes?: string[] | undefined;
|
|
2445
|
-
bindings?: Record<string,
|
|
2446
|
-
wasmBindings?: Record<string, string | Uint8Array
|
|
2744
|
+
bindings?: Record<string, Json_2> | undefined;
|
|
2745
|
+
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
2447
2746
|
textBlobBindings?: Record<string, string> | undefined;
|
|
2448
|
-
dataBlobBindings?: Record<string, string | Uint8Array
|
|
2449
|
-
serviceBindings?: Record<string, string |
|
|
2450
|
-
name: string |
|
|
2747
|
+
dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
2748
|
+
serviceBindings?: Record<string, string | kCurrentWorker_2 | {
|
|
2749
|
+
name: string | kCurrentWorker_2;
|
|
2451
2750
|
entrypoint?: string | undefined;
|
|
2452
2751
|
} | {
|
|
2453
2752
|
network: {
|
|
@@ -2461,25 +2760,25 @@ export declare const PLUGINS: {
|
|
|
2461
2760
|
requireClientCerts?: boolean | undefined;
|
|
2462
2761
|
trustBrowserCas?: boolean | undefined;
|
|
2463
2762
|
trustedCertificates?: string[] | undefined;
|
|
2464
|
-
minVersion?:
|
|
2763
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2465
2764
|
cipherList?: string | undefined;
|
|
2466
2765
|
} | undefined;
|
|
2467
2766
|
};
|
|
2468
2767
|
} | {
|
|
2469
|
-
external:
|
|
2768
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2470
2769
|
} | {
|
|
2471
2770
|
disk: {
|
|
2472
2771
|
path: string;
|
|
2473
2772
|
writable?: boolean | undefined;
|
|
2474
2773
|
};
|
|
2475
|
-
} | ((request:
|
|
2774
|
+
} | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>)> | undefined;
|
|
2476
2775
|
wrappedBindings?: Record<string, string | {
|
|
2477
2776
|
scriptName: string;
|
|
2478
2777
|
entrypoint?: string | undefined;
|
|
2479
|
-
bindings?: Record<string,
|
|
2778
|
+
bindings?: Record<string, Json_2> | undefined;
|
|
2480
2779
|
}> | undefined;
|
|
2481
|
-
outboundService?: string |
|
|
2482
|
-
name: string |
|
|
2780
|
+
outboundService?: string | kCurrentWorker_2 | {
|
|
2781
|
+
name: string | kCurrentWorker_2;
|
|
2483
2782
|
entrypoint?: string | undefined;
|
|
2484
2783
|
} | {
|
|
2485
2784
|
network: {
|
|
@@ -2493,18 +2792,18 @@ export declare const PLUGINS: {
|
|
|
2493
2792
|
requireClientCerts?: boolean | undefined;
|
|
2494
2793
|
trustBrowserCas?: boolean | undefined;
|
|
2495
2794
|
trustedCertificates?: string[] | undefined;
|
|
2496
|
-
minVersion?:
|
|
2795
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2497
2796
|
cipherList?: string | undefined;
|
|
2498
2797
|
} | undefined;
|
|
2499
2798
|
};
|
|
2500
2799
|
} | {
|
|
2501
|
-
external:
|
|
2800
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2502
2801
|
} | {
|
|
2503
2802
|
disk: {
|
|
2504
2803
|
path: string;
|
|
2505
2804
|
writable?: boolean | undefined;
|
|
2506
2805
|
};
|
|
2507
|
-
} | ((request:
|
|
2806
|
+
} | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
|
|
2508
2807
|
fetchMock?: MockAgent<MockAgent> | undefined;
|
|
2509
2808
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
2510
2809
|
unsafeDirectSockets?: {
|
|
@@ -2516,18 +2815,19 @@ export declare const PLUGINS: {
|
|
|
2516
2815
|
unsafeEvalBinding?: string | undefined;
|
|
2517
2816
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
2518
2817
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
2818
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
2519
2819
|
}, {
|
|
2520
2820
|
name?: string | undefined;
|
|
2521
2821
|
rootPath?: string | undefined;
|
|
2522
2822
|
compatibilityDate?: string | undefined;
|
|
2523
2823
|
compatibilityFlags?: string[] | undefined;
|
|
2524
2824
|
routes?: string[] | undefined;
|
|
2525
|
-
bindings?: Record<string,
|
|
2526
|
-
wasmBindings?: Record<string, string | Uint8Array
|
|
2825
|
+
bindings?: Record<string, Json_2> | undefined;
|
|
2826
|
+
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
2527
2827
|
textBlobBindings?: Record<string, string> | undefined;
|
|
2528
|
-
dataBlobBindings?: Record<string, string | Uint8Array
|
|
2529
|
-
serviceBindings?: Record<string, string |
|
|
2530
|
-
name: string |
|
|
2828
|
+
dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
2829
|
+
serviceBindings?: Record<string, string | kCurrentWorker_2 | {
|
|
2830
|
+
name: string | kCurrentWorker_2;
|
|
2531
2831
|
entrypoint?: string | undefined;
|
|
2532
2832
|
} | {
|
|
2533
2833
|
network: {
|
|
@@ -2541,25 +2841,25 @@ export declare const PLUGINS: {
|
|
|
2541
2841
|
requireClientCerts?: boolean | undefined;
|
|
2542
2842
|
trustBrowserCas?: boolean | undefined;
|
|
2543
2843
|
trustedCertificates?: string[] | undefined;
|
|
2544
|
-
minVersion?:
|
|
2844
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2545
2845
|
cipherList?: string | undefined;
|
|
2546
2846
|
} | undefined;
|
|
2547
2847
|
};
|
|
2548
2848
|
} | {
|
|
2549
|
-
external:
|
|
2849
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2550
2850
|
} | {
|
|
2551
2851
|
disk: {
|
|
2552
2852
|
path: string;
|
|
2553
2853
|
writable?: boolean | undefined;
|
|
2554
2854
|
};
|
|
2555
|
-
} | ((request:
|
|
2855
|
+
} | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>)> | undefined;
|
|
2556
2856
|
wrappedBindings?: Record<string, string | {
|
|
2557
2857
|
scriptName: string;
|
|
2558
2858
|
entrypoint?: string | undefined;
|
|
2559
|
-
bindings?: Record<string,
|
|
2859
|
+
bindings?: Record<string, Json_2> | undefined;
|
|
2560
2860
|
}> | undefined;
|
|
2561
|
-
outboundService?: string |
|
|
2562
|
-
name: string |
|
|
2861
|
+
outboundService?: string | kCurrentWorker_2 | {
|
|
2862
|
+
name: string | kCurrentWorker_2;
|
|
2563
2863
|
entrypoint?: string | undefined;
|
|
2564
2864
|
} | {
|
|
2565
2865
|
network: {
|
|
@@ -2573,18 +2873,18 @@ export declare const PLUGINS: {
|
|
|
2573
2873
|
requireClientCerts?: boolean | undefined;
|
|
2574
2874
|
trustBrowserCas?: boolean | undefined;
|
|
2575
2875
|
trustedCertificates?: string[] | undefined;
|
|
2576
|
-
minVersion?:
|
|
2876
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2577
2877
|
cipherList?: string | undefined;
|
|
2578
2878
|
} | undefined;
|
|
2579
2879
|
};
|
|
2580
2880
|
} | {
|
|
2581
|
-
external:
|
|
2881
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2582
2882
|
} | {
|
|
2583
2883
|
disk: {
|
|
2584
2884
|
path: string;
|
|
2585
2885
|
writable?: boolean | undefined;
|
|
2586
2886
|
};
|
|
2587
|
-
} | ((request:
|
|
2887
|
+
} | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
|
|
2588
2888
|
fetchMock?: MockAgent<MockAgent> | undefined;
|
|
2589
2889
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
2590
2890
|
unsafeDirectSockets?: {
|
|
@@ -2596,11 +2896,12 @@ export declare const PLUGINS: {
|
|
|
2596
2896
|
unsafeEvalBinding?: string | undefined;
|
|
2597
2897
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
2598
2898
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
2899
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
2599
2900
|
}>>, ({
|
|
2600
2901
|
modules: {
|
|
2601
2902
|
type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2602
2903
|
path: string;
|
|
2603
|
-
contents?: string | Uint8Array | undefined;
|
|
2904
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
2604
2905
|
}[];
|
|
2605
2906
|
modulesRoot?: string | undefined;
|
|
2606
2907
|
} & {
|
|
@@ -2609,12 +2910,12 @@ export declare const PLUGINS: {
|
|
|
2609
2910
|
compatibilityDate?: string | undefined;
|
|
2610
2911
|
compatibilityFlags?: string[] | undefined;
|
|
2611
2912
|
routes?: string[] | undefined;
|
|
2612
|
-
bindings?: Record<string,
|
|
2613
|
-
wasmBindings?: Record<string, string | Uint8Array
|
|
2913
|
+
bindings?: Record<string, Json_2> | undefined;
|
|
2914
|
+
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
2614
2915
|
textBlobBindings?: Record<string, string> | undefined;
|
|
2615
|
-
dataBlobBindings?: Record<string, string | Uint8Array
|
|
2616
|
-
serviceBindings?: Record<string, string |
|
|
2617
|
-
name: string |
|
|
2916
|
+
dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
2917
|
+
serviceBindings?: Record<string, string | kCurrentWorker_2 | {
|
|
2918
|
+
name: string | kCurrentWorker_2;
|
|
2618
2919
|
entrypoint?: string | undefined;
|
|
2619
2920
|
} | {
|
|
2620
2921
|
network: {
|
|
@@ -2628,25 +2929,25 @@ export declare const PLUGINS: {
|
|
|
2628
2929
|
requireClientCerts?: boolean | undefined;
|
|
2629
2930
|
trustBrowserCas?: boolean | undefined;
|
|
2630
2931
|
trustedCertificates?: string[] | undefined;
|
|
2631
|
-
minVersion?:
|
|
2932
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2632
2933
|
cipherList?: string | undefined;
|
|
2633
2934
|
} | undefined;
|
|
2634
2935
|
};
|
|
2635
2936
|
} | {
|
|
2636
|
-
external:
|
|
2937
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2637
2938
|
} | {
|
|
2638
2939
|
disk: {
|
|
2639
2940
|
path: string;
|
|
2640
2941
|
writable?: boolean | undefined;
|
|
2641
2942
|
};
|
|
2642
|
-
} | ((request:
|
|
2943
|
+
} | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>)> | undefined;
|
|
2643
2944
|
wrappedBindings?: Record<string, string | {
|
|
2644
2945
|
scriptName: string;
|
|
2645
2946
|
entrypoint?: string | undefined;
|
|
2646
|
-
bindings?: Record<string,
|
|
2947
|
+
bindings?: Record<string, Json_2> | undefined;
|
|
2647
2948
|
}> | undefined;
|
|
2648
|
-
outboundService?: string |
|
|
2649
|
-
name: string |
|
|
2949
|
+
outboundService?: string | kCurrentWorker_2 | {
|
|
2950
|
+
name: string | kCurrentWorker_2;
|
|
2650
2951
|
entrypoint?: string | undefined;
|
|
2651
2952
|
} | {
|
|
2652
2953
|
network: {
|
|
@@ -2660,18 +2961,18 @@ export declare const PLUGINS: {
|
|
|
2660
2961
|
requireClientCerts?: boolean | undefined;
|
|
2661
2962
|
trustBrowserCas?: boolean | undefined;
|
|
2662
2963
|
trustedCertificates?: string[] | undefined;
|
|
2663
|
-
minVersion?:
|
|
2964
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2664
2965
|
cipherList?: string | undefined;
|
|
2665
2966
|
} | undefined;
|
|
2666
2967
|
};
|
|
2667
2968
|
} | {
|
|
2668
|
-
external:
|
|
2969
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2669
2970
|
} | {
|
|
2670
2971
|
disk: {
|
|
2671
2972
|
path: string;
|
|
2672
2973
|
writable?: boolean | undefined;
|
|
2673
2974
|
};
|
|
2674
|
-
} | ((request:
|
|
2975
|
+
} | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
|
|
2675
2976
|
fetchMock?: MockAgent<MockAgent> | undefined;
|
|
2676
2977
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
2677
2978
|
unsafeDirectSockets?: {
|
|
@@ -2683,6 +2984,7 @@ export declare const PLUGINS: {
|
|
|
2683
2984
|
unsafeEvalBinding?: string | undefined;
|
|
2684
2985
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
2685
2986
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
2987
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
2686
2988
|
}) | ({
|
|
2687
2989
|
script: string;
|
|
2688
2990
|
scriptPath?: string | undefined;
|
|
@@ -2699,12 +3001,12 @@ export declare const PLUGINS: {
|
|
|
2699
3001
|
compatibilityDate?: string | undefined;
|
|
2700
3002
|
compatibilityFlags?: string[] | undefined;
|
|
2701
3003
|
routes?: string[] | undefined;
|
|
2702
|
-
bindings?: Record<string,
|
|
2703
|
-
wasmBindings?: Record<string, string | Uint8Array
|
|
3004
|
+
bindings?: Record<string, Json_2> | undefined;
|
|
3005
|
+
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
2704
3006
|
textBlobBindings?: Record<string, string> | undefined;
|
|
2705
|
-
dataBlobBindings?: Record<string, string | Uint8Array
|
|
2706
|
-
serviceBindings?: Record<string, string |
|
|
2707
|
-
name: string |
|
|
3007
|
+
dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
3008
|
+
serviceBindings?: Record<string, string | kCurrentWorker_2 | {
|
|
3009
|
+
name: string | kCurrentWorker_2;
|
|
2708
3010
|
entrypoint?: string | undefined;
|
|
2709
3011
|
} | {
|
|
2710
3012
|
network: {
|
|
@@ -2718,25 +3020,25 @@ export declare const PLUGINS: {
|
|
|
2718
3020
|
requireClientCerts?: boolean | undefined;
|
|
2719
3021
|
trustBrowserCas?: boolean | undefined;
|
|
2720
3022
|
trustedCertificates?: string[] | undefined;
|
|
2721
|
-
minVersion?:
|
|
3023
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2722
3024
|
cipherList?: string | undefined;
|
|
2723
3025
|
} | undefined;
|
|
2724
3026
|
};
|
|
2725
3027
|
} | {
|
|
2726
|
-
external:
|
|
3028
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2727
3029
|
} | {
|
|
2728
3030
|
disk: {
|
|
2729
3031
|
path: string;
|
|
2730
3032
|
writable?: boolean | undefined;
|
|
2731
3033
|
};
|
|
2732
|
-
} | ((request:
|
|
3034
|
+
} | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>)> | undefined;
|
|
2733
3035
|
wrappedBindings?: Record<string, string | {
|
|
2734
3036
|
scriptName: string;
|
|
2735
3037
|
entrypoint?: string | undefined;
|
|
2736
|
-
bindings?: Record<string,
|
|
3038
|
+
bindings?: Record<string, Json_2> | undefined;
|
|
2737
3039
|
}> | undefined;
|
|
2738
|
-
outboundService?: string |
|
|
2739
|
-
name: string |
|
|
3040
|
+
outboundService?: string | kCurrentWorker_2 | {
|
|
3041
|
+
name: string | kCurrentWorker_2;
|
|
2740
3042
|
entrypoint?: string | undefined;
|
|
2741
3043
|
} | {
|
|
2742
3044
|
network: {
|
|
@@ -2750,18 +3052,18 @@ export declare const PLUGINS: {
|
|
|
2750
3052
|
requireClientCerts?: boolean | undefined;
|
|
2751
3053
|
trustBrowserCas?: boolean | undefined;
|
|
2752
3054
|
trustedCertificates?: string[] | undefined;
|
|
2753
|
-
minVersion?:
|
|
3055
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2754
3056
|
cipherList?: string | undefined;
|
|
2755
3057
|
} | undefined;
|
|
2756
3058
|
};
|
|
2757
3059
|
} | {
|
|
2758
|
-
external:
|
|
3060
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2759
3061
|
} | {
|
|
2760
3062
|
disk: {
|
|
2761
3063
|
path: string;
|
|
2762
3064
|
writable?: boolean | undefined;
|
|
2763
3065
|
};
|
|
2764
|
-
} | ((request:
|
|
3066
|
+
} | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
|
|
2765
3067
|
fetchMock?: MockAgent<MockAgent> | undefined;
|
|
2766
3068
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
2767
3069
|
unsafeDirectSockets?: {
|
|
@@ -2773,6 +3075,7 @@ export declare const PLUGINS: {
|
|
|
2773
3075
|
unsafeEvalBinding?: string | undefined;
|
|
2774
3076
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
2775
3077
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
3078
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
2776
3079
|
}) | ({
|
|
2777
3080
|
scriptPath: string;
|
|
2778
3081
|
modules?: boolean | undefined;
|
|
@@ -2788,12 +3091,12 @@ export declare const PLUGINS: {
|
|
|
2788
3091
|
compatibilityDate?: string | undefined;
|
|
2789
3092
|
compatibilityFlags?: string[] | undefined;
|
|
2790
3093
|
routes?: string[] | undefined;
|
|
2791
|
-
bindings?: Record<string,
|
|
2792
|
-
wasmBindings?: Record<string, string | Uint8Array
|
|
3094
|
+
bindings?: Record<string, Json_2> | undefined;
|
|
3095
|
+
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
2793
3096
|
textBlobBindings?: Record<string, string> | undefined;
|
|
2794
|
-
dataBlobBindings?: Record<string, string | Uint8Array
|
|
2795
|
-
serviceBindings?: Record<string, string |
|
|
2796
|
-
name: string |
|
|
3097
|
+
dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
3098
|
+
serviceBindings?: Record<string, string | kCurrentWorker_2 | {
|
|
3099
|
+
name: string | kCurrentWorker_2;
|
|
2797
3100
|
entrypoint?: string | undefined;
|
|
2798
3101
|
} | {
|
|
2799
3102
|
network: {
|
|
@@ -2807,25 +3110,25 @@ export declare const PLUGINS: {
|
|
|
2807
3110
|
requireClientCerts?: boolean | undefined;
|
|
2808
3111
|
trustBrowserCas?: boolean | undefined;
|
|
2809
3112
|
trustedCertificates?: string[] | undefined;
|
|
2810
|
-
minVersion?:
|
|
3113
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2811
3114
|
cipherList?: string | undefined;
|
|
2812
3115
|
} | undefined;
|
|
2813
3116
|
};
|
|
2814
3117
|
} | {
|
|
2815
|
-
external:
|
|
3118
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2816
3119
|
} | {
|
|
2817
3120
|
disk: {
|
|
2818
3121
|
path: string;
|
|
2819
3122
|
writable?: boolean | undefined;
|
|
2820
3123
|
};
|
|
2821
|
-
} | ((request:
|
|
3124
|
+
} | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>)> | undefined;
|
|
2822
3125
|
wrappedBindings?: Record<string, string | {
|
|
2823
3126
|
scriptName: string;
|
|
2824
3127
|
entrypoint?: string | undefined;
|
|
2825
|
-
bindings?: Record<string,
|
|
3128
|
+
bindings?: Record<string, Json_2> | undefined;
|
|
2826
3129
|
}> | undefined;
|
|
2827
|
-
outboundService?: string |
|
|
2828
|
-
name: string |
|
|
3130
|
+
outboundService?: string | kCurrentWorker_2 | {
|
|
3131
|
+
name: string | kCurrentWorker_2;
|
|
2829
3132
|
entrypoint?: string | undefined;
|
|
2830
3133
|
} | {
|
|
2831
3134
|
network: {
|
|
@@ -2839,18 +3142,18 @@ export declare const PLUGINS: {
|
|
|
2839
3142
|
requireClientCerts?: boolean | undefined;
|
|
2840
3143
|
trustBrowserCas?: boolean | undefined;
|
|
2841
3144
|
trustedCertificates?: string[] | undefined;
|
|
2842
|
-
minVersion?:
|
|
3145
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2843
3146
|
cipherList?: string | undefined;
|
|
2844
3147
|
} | undefined;
|
|
2845
3148
|
};
|
|
2846
3149
|
} | {
|
|
2847
|
-
external:
|
|
3150
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2848
3151
|
} | {
|
|
2849
3152
|
disk: {
|
|
2850
3153
|
path: string;
|
|
2851
3154
|
writable?: boolean | undefined;
|
|
2852
3155
|
};
|
|
2853
|
-
} | ((request:
|
|
3156
|
+
} | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
|
|
2854
3157
|
fetchMock?: MockAgent<MockAgent> | undefined;
|
|
2855
3158
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
2856
3159
|
unsafeDirectSockets?: {
|
|
@@ -2862,11 +3165,12 @@ export declare const PLUGINS: {
|
|
|
2862
3165
|
unsafeEvalBinding?: string | undefined;
|
|
2863
3166
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
2864
3167
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
3168
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
2865
3169
|
}), ({
|
|
2866
3170
|
modules: {
|
|
2867
3171
|
type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2868
3172
|
path: string;
|
|
2869
|
-
contents?: string | Uint8Array | undefined;
|
|
3173
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
2870
3174
|
}[];
|
|
2871
3175
|
modulesRoot?: string | undefined;
|
|
2872
3176
|
} | {
|
|
@@ -2894,12 +3198,12 @@ export declare const PLUGINS: {
|
|
|
2894
3198
|
compatibilityDate?: string | undefined;
|
|
2895
3199
|
compatibilityFlags?: string[] | undefined;
|
|
2896
3200
|
routes?: string[] | undefined;
|
|
2897
|
-
bindings?: Record<string,
|
|
2898
|
-
wasmBindings?: Record<string, string | Uint8Array
|
|
3201
|
+
bindings?: Record<string, Json_2> | undefined;
|
|
3202
|
+
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
2899
3203
|
textBlobBindings?: Record<string, string> | undefined;
|
|
2900
|
-
dataBlobBindings?: Record<string, string | Uint8Array
|
|
2901
|
-
serviceBindings?: Record<string, string |
|
|
2902
|
-
name: string |
|
|
3204
|
+
dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
3205
|
+
serviceBindings?: Record<string, string | kCurrentWorker_2 | {
|
|
3206
|
+
name: string | kCurrentWorker_2;
|
|
2903
3207
|
entrypoint?: string | undefined;
|
|
2904
3208
|
} | {
|
|
2905
3209
|
network: {
|
|
@@ -2913,25 +3217,25 @@ export declare const PLUGINS: {
|
|
|
2913
3217
|
requireClientCerts?: boolean | undefined;
|
|
2914
3218
|
trustBrowserCas?: boolean | undefined;
|
|
2915
3219
|
trustedCertificates?: string[] | undefined;
|
|
2916
|
-
minVersion?:
|
|
3220
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2917
3221
|
cipherList?: string | undefined;
|
|
2918
3222
|
} | undefined;
|
|
2919
3223
|
};
|
|
2920
3224
|
} | {
|
|
2921
|
-
external:
|
|
3225
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2922
3226
|
} | {
|
|
2923
3227
|
disk: {
|
|
2924
3228
|
path: string;
|
|
2925
3229
|
writable?: boolean | undefined;
|
|
2926
3230
|
};
|
|
2927
|
-
} | ((request:
|
|
3231
|
+
} | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>)> | undefined;
|
|
2928
3232
|
wrappedBindings?: Record<string, string | {
|
|
2929
3233
|
scriptName: string;
|
|
2930
3234
|
entrypoint?: string | undefined;
|
|
2931
|
-
bindings?: Record<string,
|
|
3235
|
+
bindings?: Record<string, Json_2> | undefined;
|
|
2932
3236
|
}> | undefined;
|
|
2933
|
-
outboundService?: string |
|
|
2934
|
-
name: string |
|
|
3237
|
+
outboundService?: string | kCurrentWorker_2 | {
|
|
3238
|
+
name: string | kCurrentWorker_2;
|
|
2935
3239
|
entrypoint?: string | undefined;
|
|
2936
3240
|
} | {
|
|
2937
3241
|
network: {
|
|
@@ -2945,18 +3249,18 @@ export declare const PLUGINS: {
|
|
|
2945
3249
|
requireClientCerts?: boolean | undefined;
|
|
2946
3250
|
trustBrowserCas?: boolean | undefined;
|
|
2947
3251
|
trustedCertificates?: string[] | undefined;
|
|
2948
|
-
minVersion?:
|
|
3252
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2949
3253
|
cipherList?: string | undefined;
|
|
2950
3254
|
} | undefined;
|
|
2951
3255
|
};
|
|
2952
3256
|
} | {
|
|
2953
|
-
external:
|
|
3257
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2954
3258
|
} | {
|
|
2955
3259
|
disk: {
|
|
2956
3260
|
path: string;
|
|
2957
3261
|
writable?: boolean | undefined;
|
|
2958
3262
|
};
|
|
2959
|
-
} | ((request:
|
|
3263
|
+
} | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
|
|
2960
3264
|
fetchMock?: MockAgent<MockAgent> | undefined;
|
|
2961
3265
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
2962
3266
|
unsafeDirectSockets?: {
|
|
@@ -2968,6 +3272,7 @@ export declare const PLUGINS: {
|
|
|
2968
3272
|
unsafeEvalBinding?: string | undefined;
|
|
2969
3273
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
2970
3274
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
3275
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
2971
3276
|
}>, z.ZodObject<{
|
|
2972
3277
|
rootPath: z.ZodOptional<z.ZodEffects<z.ZodString, undefined, string>>;
|
|
2973
3278
|
host: z.ZodOptional<z.ZodString>;
|
|
@@ -2979,14 +3284,15 @@ export declare const PLUGINS: {
|
|
|
2979
3284
|
httpsCertPath: z.ZodOptional<z.ZodString>;
|
|
2980
3285
|
inspectorPort: z.ZodOptional<z.ZodNumber>;
|
|
2981
3286
|
verbose: z.ZodOptional<z.ZodBoolean>;
|
|
2982
|
-
log: z.ZodOptional<z.ZodType<
|
|
3287
|
+
log: z.ZodOptional<z.ZodType<Log_2, z.ZodTypeDef, Log_2>>;
|
|
2983
3288
|
handleRuntimeStdio: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodType<Readable, z.ZodTypeDef, Readable>, z.ZodType<Readable, z.ZodTypeDef, Readable>], null>, z.ZodUnknown>>;
|
|
2984
3289
|
upstream: z.ZodOptional<z.ZodString>;
|
|
2985
3290
|
cf: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>;
|
|
2986
3291
|
liveReload: z.ZodOptional<z.ZodBoolean>;
|
|
2987
3292
|
unsafeProxySharedSecret: z.ZodOptional<z.ZodString>;
|
|
2988
|
-
unsafeModuleFallbackService: z.ZodOptional<z.ZodType<(request:
|
|
3293
|
+
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>>>;
|
|
2989
3294
|
unsafeStickyBlobs: z.ZodOptional<z.ZodBoolean>;
|
|
3295
|
+
unsafeEnableAssetsRpc: z.ZodOptional<z.ZodBoolean>;
|
|
2990
3296
|
}, "strip", z.ZodTypeAny, {
|
|
2991
3297
|
rootPath?: undefined;
|
|
2992
3298
|
host?: string | undefined;
|
|
@@ -2998,14 +3304,15 @@ export declare const PLUGINS: {
|
|
|
2998
3304
|
httpsCertPath?: string | undefined;
|
|
2999
3305
|
inspectorPort?: number | undefined;
|
|
3000
3306
|
verbose?: boolean | undefined;
|
|
3001
|
-
log?:
|
|
3307
|
+
log?: Log_2 | undefined;
|
|
3002
3308
|
handleRuntimeStdio?: ((args_0: Readable, args_1: Readable) => unknown) | undefined;
|
|
3003
3309
|
upstream?: string | undefined;
|
|
3004
3310
|
cf?: string | boolean | Record<string, any> | undefined;
|
|
3005
3311
|
liveReload?: boolean | undefined;
|
|
3006
3312
|
unsafeProxySharedSecret?: string | undefined;
|
|
3007
|
-
unsafeModuleFallbackService?: ((request:
|
|
3313
|
+
unsafeModuleFallbackService?: ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
|
|
3008
3314
|
unsafeStickyBlobs?: boolean | undefined;
|
|
3315
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
3009
3316
|
}, {
|
|
3010
3317
|
rootPath?: string | undefined;
|
|
3011
3318
|
host?: string | undefined;
|
|
@@ -3017,16 +3324,17 @@ export declare const PLUGINS: {
|
|
|
3017
3324
|
httpsCertPath?: string | undefined;
|
|
3018
3325
|
inspectorPort?: number | undefined;
|
|
3019
3326
|
verbose?: boolean | undefined;
|
|
3020
|
-
log?:
|
|
3327
|
+
log?: Log_2 | undefined;
|
|
3021
3328
|
handleRuntimeStdio?: ((args_0: Readable, args_1: Readable) => unknown) | undefined;
|
|
3022
3329
|
upstream?: string | undefined;
|
|
3023
3330
|
cf?: string | boolean | Record<string, any> | undefined;
|
|
3024
3331
|
liveReload?: boolean | undefined;
|
|
3025
3332
|
unsafeProxySharedSecret?: string | undefined;
|
|
3026
|
-
unsafeModuleFallbackService?: ((request:
|
|
3333
|
+
unsafeModuleFallbackService?: ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
|
|
3027
3334
|
unsafeStickyBlobs?: boolean | undefined;
|
|
3335
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
3028
3336
|
}>>;
|
|
3029
|
-
cache:
|
|
3337
|
+
cache: Plugin_2<z.ZodObject<{
|
|
3030
3338
|
cache: z.ZodOptional<z.ZodBoolean>;
|
|
3031
3339
|
cacheWarnUsage: z.ZodOptional<z.ZodBoolean>;
|
|
3032
3340
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3042,7 +3350,7 @@ export declare const PLUGINS: {
|
|
|
3042
3350
|
}, {
|
|
3043
3351
|
cachePersist?: string | boolean | undefined;
|
|
3044
3352
|
}>>;
|
|
3045
|
-
d1:
|
|
3353
|
+
d1: Plugin_2<z.ZodObject<{
|
|
3046
3354
|
d1Databases: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodString, "many">]>>;
|
|
3047
3355
|
}, "strip", z.ZodTypeAny, {
|
|
3048
3356
|
d1Databases?: string[] | Record<string, string> | undefined;
|
|
@@ -3055,24 +3363,24 @@ export declare const PLUGINS: {
|
|
|
3055
3363
|
}, {
|
|
3056
3364
|
d1Persist?: string | boolean | undefined;
|
|
3057
3365
|
}>>;
|
|
3058
|
-
do:
|
|
3366
|
+
do: Plugin_2<z.ZodObject<{
|
|
3059
3367
|
durableObjects: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
3060
3368
|
className: z.ZodString;
|
|
3061
3369
|
scriptName: z.ZodOptional<z.ZodString>;
|
|
3062
3370
|
useSQLite: z.ZodOptional<z.ZodBoolean>;
|
|
3063
|
-
unsafeUniqueKey: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<
|
|
3371
|
+
unsafeUniqueKey: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<kUnsafeEphemeralUniqueKey_2>]>>;
|
|
3064
3372
|
unsafePreventEviction: z.ZodOptional<z.ZodBoolean>;
|
|
3065
3373
|
}, "strip", z.ZodTypeAny, {
|
|
3066
3374
|
className: string;
|
|
3067
3375
|
scriptName?: string | undefined;
|
|
3068
3376
|
useSQLite?: boolean | undefined;
|
|
3069
|
-
unsafeUniqueKey?: string |
|
|
3377
|
+
unsafeUniqueKey?: string | kUnsafeEphemeralUniqueKey_2 | undefined;
|
|
3070
3378
|
unsafePreventEviction?: boolean | undefined;
|
|
3071
3379
|
}, {
|
|
3072
3380
|
className: string;
|
|
3073
3381
|
scriptName?: string | undefined;
|
|
3074
3382
|
useSQLite?: boolean | undefined;
|
|
3075
|
-
unsafeUniqueKey?: string |
|
|
3383
|
+
unsafeUniqueKey?: string | kUnsafeEphemeralUniqueKey_2 | undefined;
|
|
3076
3384
|
unsafePreventEviction?: boolean | undefined;
|
|
3077
3385
|
}>]>>>;
|
|
3078
3386
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3080,7 +3388,7 @@ export declare const PLUGINS: {
|
|
|
3080
3388
|
className: string;
|
|
3081
3389
|
scriptName?: string | undefined;
|
|
3082
3390
|
useSQLite?: boolean | undefined;
|
|
3083
|
-
unsafeUniqueKey?: string |
|
|
3391
|
+
unsafeUniqueKey?: string | kUnsafeEphemeralUniqueKey_2 | undefined;
|
|
3084
3392
|
unsafePreventEviction?: boolean | undefined;
|
|
3085
3393
|
}> | undefined;
|
|
3086
3394
|
}, {
|
|
@@ -3088,7 +3396,7 @@ export declare const PLUGINS: {
|
|
|
3088
3396
|
className: string;
|
|
3089
3397
|
scriptName?: string | undefined;
|
|
3090
3398
|
useSQLite?: boolean | undefined;
|
|
3091
|
-
unsafeUniqueKey?: string |
|
|
3399
|
+
unsafeUniqueKey?: string | kUnsafeEphemeralUniqueKey_2 | undefined;
|
|
3092
3400
|
unsafePreventEviction?: boolean | undefined;
|
|
3093
3401
|
}> | undefined;
|
|
3094
3402
|
}>, z.ZodObject<{
|
|
@@ -3098,7 +3406,7 @@ export declare const PLUGINS: {
|
|
|
3098
3406
|
}, {
|
|
3099
3407
|
durableObjectsPersist?: string | boolean | undefined;
|
|
3100
3408
|
}>>;
|
|
3101
|
-
kv:
|
|
3409
|
+
kv: Plugin_2<z.ZodObject<{
|
|
3102
3410
|
kvNamespaces: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodString, "many">]>>;
|
|
3103
3411
|
sitePath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
3104
3412
|
siteInclude: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -3120,7 +3428,7 @@ export declare const PLUGINS: {
|
|
|
3120
3428
|
}, {
|
|
3121
3429
|
kvPersist?: string | boolean | undefined;
|
|
3122
3430
|
}>>;
|
|
3123
|
-
queues:
|
|
3431
|
+
queues: Plugin_2<z.ZodObject<{
|
|
3124
3432
|
queueProducers: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3125
3433
|
queueName: z.ZodString;
|
|
3126
3434
|
deliveryDelay: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3194,7 +3502,7 @@ export declare const PLUGINS: {
|
|
|
3194
3502
|
retryDelay?: number | undefined;
|
|
3195
3503
|
}> | undefined;
|
|
3196
3504
|
}>>;
|
|
3197
|
-
r2:
|
|
3505
|
+
r2: Plugin_2<z.ZodObject<{
|
|
3198
3506
|
r2Buckets: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodString, "many">]>>;
|
|
3199
3507
|
}, "strip", z.ZodTypeAny, {
|
|
3200
3508
|
r2Buckets?: string[] | Record<string, string> | undefined;
|
|
@@ -3207,94 +3515,278 @@ export declare const PLUGINS: {
|
|
|
3207
3515
|
}, {
|
|
3208
3516
|
r2Persist?: string | boolean | undefined;
|
|
3209
3517
|
}>>;
|
|
3210
|
-
hyperdrive:
|
|
3518
|
+
hyperdrive: Plugin_2<z.ZodObject<{
|
|
3211
3519
|
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>>>;
|
|
3212
3520
|
}, "strip", z.ZodTypeAny, {
|
|
3213
3521
|
hyperdrives?: Record<string, URL_2> | undefined;
|
|
3214
3522
|
}, {
|
|
3215
3523
|
hyperdrives?: Record<string, string | URL_2> | undefined;
|
|
3216
3524
|
}>>;
|
|
3217
|
-
ratelimit:
|
|
3525
|
+
ratelimit: Plugin_2<z.ZodObject<{
|
|
3218
3526
|
ratelimits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3219
3527
|
simple: z.ZodObject<{
|
|
3220
3528
|
limit: z.ZodNumber;
|
|
3221
|
-
period: z.ZodOptional<z.ZodNativeEnum<
|
|
3529
|
+
period: z.ZodOptional<z.ZodNativeEnum<PeriodType_2>>;
|
|
3222
3530
|
}, "strip", z.ZodTypeAny, {
|
|
3223
3531
|
limit: number;
|
|
3224
|
-
period?:
|
|
3532
|
+
period?: PeriodType_2 | undefined;
|
|
3225
3533
|
}, {
|
|
3226
3534
|
limit: number;
|
|
3227
|
-
period?:
|
|
3535
|
+
period?: PeriodType_2 | undefined;
|
|
3228
3536
|
}>;
|
|
3229
3537
|
}, "strip", z.ZodTypeAny, {
|
|
3230
3538
|
simple: {
|
|
3231
3539
|
limit: number;
|
|
3232
|
-
period?:
|
|
3540
|
+
period?: PeriodType_2 | undefined;
|
|
3233
3541
|
};
|
|
3234
3542
|
}, {
|
|
3235
3543
|
simple: {
|
|
3236
3544
|
limit: number;
|
|
3237
|
-
period?:
|
|
3545
|
+
period?: PeriodType_2 | undefined;
|
|
3238
3546
|
};
|
|
3239
3547
|
}>>>;
|
|
3240
3548
|
}, "strip", z.ZodTypeAny, {
|
|
3241
3549
|
ratelimits?: Record<string, {
|
|
3242
3550
|
simple: {
|
|
3243
3551
|
limit: number;
|
|
3244
|
-
period?:
|
|
3552
|
+
period?: PeriodType_2 | undefined;
|
|
3245
3553
|
};
|
|
3246
3554
|
}> | undefined;
|
|
3247
3555
|
}, {
|
|
3248
3556
|
ratelimits?: Record<string, {
|
|
3249
3557
|
simple: {
|
|
3250
3558
|
limit: number;
|
|
3251
|
-
period?:
|
|
3559
|
+
period?: PeriodType_2 | undefined;
|
|
3252
3560
|
};
|
|
3253
3561
|
}> | undefined;
|
|
3254
3562
|
}>>;
|
|
3255
|
-
assets:
|
|
3563
|
+
assets: Plugin_2<z.ZodObject<{
|
|
3256
3564
|
assets: z.ZodOptional<z.ZodObject<{
|
|
3257
3565
|
workerName: z.ZodOptional<z.ZodString>;
|
|
3258
3566
|
directory: z.ZodEffects<z.ZodString, string, string>;
|
|
3259
3567
|
binding: z.ZodOptional<z.ZodString>;
|
|
3260
|
-
|
|
3568
|
+
routerConfig: z.ZodOptional<z.ZodObject<{
|
|
3569
|
+
account_id: z.ZodOptional<z.ZodNumber>;
|
|
3570
|
+
script_id: z.ZodOptional<z.ZodNumber>;
|
|
3571
|
+
invoke_user_worker_ahead_of_assets: z.ZodOptional<z.ZodBoolean>;
|
|
3261
3572
|
has_user_worker: z.ZodOptional<z.ZodBoolean>;
|
|
3262
3573
|
}, "strip", z.ZodTypeAny, {
|
|
3574
|
+
account_id?: number;
|
|
3575
|
+
script_id?: number;
|
|
3576
|
+
invoke_user_worker_ahead_of_assets?: boolean;
|
|
3263
3577
|
has_user_worker?: boolean;
|
|
3264
3578
|
}, {
|
|
3579
|
+
account_id?: number;
|
|
3580
|
+
script_id?: number;
|
|
3581
|
+
invoke_user_worker_ahead_of_assets?: boolean;
|
|
3265
3582
|
has_user_worker?: boolean;
|
|
3266
3583
|
}>>;
|
|
3267
3584
|
assetConfig: z.ZodOptional<z.ZodObject<{
|
|
3585
|
+
account_id: z.ZodOptional<z.ZodNumber>;
|
|
3586
|
+
script_id: z.ZodOptional<z.ZodNumber>;
|
|
3587
|
+
compatibility_date: z.ZodOptional<z.ZodString>;
|
|
3588
|
+
compatibility_flags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3268
3589
|
html_handling: z.ZodOptional<z.ZodEnum<["auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none"]>>;
|
|
3269
3590
|
not_found_handling: z.ZodOptional<z.ZodEnum<["single-page-application", "404-page", "none"]>>;
|
|
3591
|
+
redirects: z.ZodOptional<z.ZodObject<{
|
|
3592
|
+
version: z.ZodLiteral<1>;
|
|
3593
|
+
staticRules: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3594
|
+
status: z.ZodNumber;
|
|
3595
|
+
to: z.ZodString;
|
|
3596
|
+
lineNumber: z.ZodNumber;
|
|
3597
|
+
}, "strip", z.ZodTypeAny, {
|
|
3598
|
+
status?: number;
|
|
3599
|
+
to?: string;
|
|
3600
|
+
lineNumber?: number;
|
|
3601
|
+
}, {
|
|
3602
|
+
status?: number;
|
|
3603
|
+
to?: string;
|
|
3604
|
+
lineNumber?: number;
|
|
3605
|
+
}>>;
|
|
3606
|
+
rules: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3607
|
+
status: z.ZodNumber;
|
|
3608
|
+
to: z.ZodString;
|
|
3609
|
+
}, "strip", z.ZodTypeAny, {
|
|
3610
|
+
status?: number;
|
|
3611
|
+
to?: string;
|
|
3612
|
+
}, {
|
|
3613
|
+
status?: number;
|
|
3614
|
+
to?: string;
|
|
3615
|
+
}>>;
|
|
3270
3616
|
}, "strip", z.ZodTypeAny, {
|
|
3617
|
+
version?: 1;
|
|
3618
|
+
staticRules?: Record<string, {
|
|
3619
|
+
status?: number;
|
|
3620
|
+
to?: string;
|
|
3621
|
+
lineNumber?: number;
|
|
3622
|
+
}>;
|
|
3623
|
+
rules?: Record<string, {
|
|
3624
|
+
status?: number;
|
|
3625
|
+
to?: string;
|
|
3626
|
+
}>;
|
|
3627
|
+
}, {
|
|
3628
|
+
version?: 1;
|
|
3629
|
+
staticRules?: Record<string, {
|
|
3630
|
+
status?: number;
|
|
3631
|
+
to?: string;
|
|
3632
|
+
lineNumber?: number;
|
|
3633
|
+
}>;
|
|
3634
|
+
rules?: Record<string, {
|
|
3635
|
+
status?: number;
|
|
3636
|
+
to?: string;
|
|
3637
|
+
}>;
|
|
3638
|
+
}>>;
|
|
3639
|
+
headers: z.ZodOptional<z.ZodObject<{
|
|
3640
|
+
version: z.ZodLiteral<2>;
|
|
3641
|
+
rules: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3642
|
+
set: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3643
|
+
unset: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3644
|
+
}, "strip", z.ZodTypeAny, {
|
|
3645
|
+
set?: Record<string, string>;
|
|
3646
|
+
unset?: string[];
|
|
3647
|
+
}, {
|
|
3648
|
+
set?: Record<string, string>;
|
|
3649
|
+
unset?: string[];
|
|
3650
|
+
}>>;
|
|
3651
|
+
}, "strip", z.ZodTypeAny, {
|
|
3652
|
+
version?: 2;
|
|
3653
|
+
rules?: Record<string, {
|
|
3654
|
+
set?: Record<string, string>;
|
|
3655
|
+
unset?: string[];
|
|
3656
|
+
}>;
|
|
3657
|
+
}, {
|
|
3658
|
+
version?: 2;
|
|
3659
|
+
rules?: Record<string, {
|
|
3660
|
+
set?: Record<string, string>;
|
|
3661
|
+
unset?: string[];
|
|
3662
|
+
}>;
|
|
3663
|
+
}>>;
|
|
3664
|
+
}, "strip", z.ZodTypeAny, {
|
|
3665
|
+
account_id?: number;
|
|
3666
|
+
script_id?: number;
|
|
3667
|
+
compatibility_date?: string;
|
|
3668
|
+
compatibility_flags?: string[];
|
|
3271
3669
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
3272
3670
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
3671
|
+
redirects?: {
|
|
3672
|
+
version?: 1;
|
|
3673
|
+
staticRules?: Record<string, {
|
|
3674
|
+
status?: number;
|
|
3675
|
+
to?: string;
|
|
3676
|
+
lineNumber?: number;
|
|
3677
|
+
}>;
|
|
3678
|
+
rules?: Record<string, {
|
|
3679
|
+
status?: number;
|
|
3680
|
+
to?: string;
|
|
3681
|
+
}>;
|
|
3682
|
+
};
|
|
3683
|
+
headers?: {
|
|
3684
|
+
version?: 2;
|
|
3685
|
+
rules?: Record<string, {
|
|
3686
|
+
set?: Record<string, string>;
|
|
3687
|
+
unset?: string[];
|
|
3688
|
+
}>;
|
|
3689
|
+
};
|
|
3273
3690
|
}, {
|
|
3691
|
+
account_id?: number;
|
|
3692
|
+
script_id?: number;
|
|
3693
|
+
compatibility_date?: string;
|
|
3694
|
+
compatibility_flags?: string[];
|
|
3274
3695
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
3275
3696
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
3697
|
+
redirects?: {
|
|
3698
|
+
version?: 1;
|
|
3699
|
+
staticRules?: Record<string, {
|
|
3700
|
+
status?: number;
|
|
3701
|
+
to?: string;
|
|
3702
|
+
lineNumber?: number;
|
|
3703
|
+
}>;
|
|
3704
|
+
rules?: Record<string, {
|
|
3705
|
+
status?: number;
|
|
3706
|
+
to?: string;
|
|
3707
|
+
}>;
|
|
3708
|
+
};
|
|
3709
|
+
headers?: {
|
|
3710
|
+
version?: 2;
|
|
3711
|
+
rules?: Record<string, {
|
|
3712
|
+
set?: Record<string, string>;
|
|
3713
|
+
unset?: string[];
|
|
3714
|
+
}>;
|
|
3715
|
+
};
|
|
3276
3716
|
}>>;
|
|
3277
3717
|
}, "strip", z.ZodTypeAny, {
|
|
3278
3718
|
directory: string;
|
|
3279
3719
|
workerName?: string | undefined;
|
|
3280
3720
|
binding?: string | undefined;
|
|
3281
|
-
|
|
3721
|
+
routerConfig?: {
|
|
3722
|
+
account_id?: number;
|
|
3723
|
+
script_id?: number;
|
|
3724
|
+
invoke_user_worker_ahead_of_assets?: boolean;
|
|
3282
3725
|
has_user_worker?: boolean;
|
|
3283
3726
|
} | undefined;
|
|
3284
3727
|
assetConfig?: {
|
|
3728
|
+
account_id?: number;
|
|
3729
|
+
script_id?: number;
|
|
3730
|
+
compatibility_date?: string;
|
|
3731
|
+
compatibility_flags?: string[];
|
|
3285
3732
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
3286
3733
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
3734
|
+
redirects?: {
|
|
3735
|
+
version?: 1;
|
|
3736
|
+
staticRules?: Record<string, {
|
|
3737
|
+
status?: number;
|
|
3738
|
+
to?: string;
|
|
3739
|
+
lineNumber?: number;
|
|
3740
|
+
}>;
|
|
3741
|
+
rules?: Record<string, {
|
|
3742
|
+
status?: number;
|
|
3743
|
+
to?: string;
|
|
3744
|
+
}>;
|
|
3745
|
+
};
|
|
3746
|
+
headers?: {
|
|
3747
|
+
version?: 2;
|
|
3748
|
+
rules?: Record<string, {
|
|
3749
|
+
set?: Record<string, string>;
|
|
3750
|
+
unset?: string[];
|
|
3751
|
+
}>;
|
|
3752
|
+
};
|
|
3287
3753
|
} | undefined;
|
|
3288
3754
|
}, {
|
|
3289
3755
|
directory: string;
|
|
3290
3756
|
workerName?: string | undefined;
|
|
3291
3757
|
binding?: string | undefined;
|
|
3292
|
-
|
|
3758
|
+
routerConfig?: {
|
|
3759
|
+
account_id?: number;
|
|
3760
|
+
script_id?: number;
|
|
3761
|
+
invoke_user_worker_ahead_of_assets?: boolean;
|
|
3293
3762
|
has_user_worker?: boolean;
|
|
3294
3763
|
} | undefined;
|
|
3295
3764
|
assetConfig?: {
|
|
3765
|
+
account_id?: number;
|
|
3766
|
+
script_id?: number;
|
|
3767
|
+
compatibility_date?: string;
|
|
3768
|
+
compatibility_flags?: string[];
|
|
3296
3769
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
3297
3770
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
3771
|
+
redirects?: {
|
|
3772
|
+
version?: 1;
|
|
3773
|
+
staticRules?: Record<string, {
|
|
3774
|
+
status?: number;
|
|
3775
|
+
to?: string;
|
|
3776
|
+
lineNumber?: number;
|
|
3777
|
+
}>;
|
|
3778
|
+
rules?: Record<string, {
|
|
3779
|
+
status?: number;
|
|
3780
|
+
to?: string;
|
|
3781
|
+
}>;
|
|
3782
|
+
};
|
|
3783
|
+
headers?: {
|
|
3784
|
+
version?: 2;
|
|
3785
|
+
rules?: Record<string, {
|
|
3786
|
+
set?: Record<string, string>;
|
|
3787
|
+
unset?: string[];
|
|
3788
|
+
}>;
|
|
3789
|
+
};
|
|
3298
3790
|
} | undefined;
|
|
3299
3791
|
}>>;
|
|
3300
3792
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3302,12 +3794,38 @@ export declare const PLUGINS: {
|
|
|
3302
3794
|
directory: string;
|
|
3303
3795
|
workerName?: string | undefined;
|
|
3304
3796
|
binding?: string | undefined;
|
|
3305
|
-
|
|
3797
|
+
routerConfig?: {
|
|
3798
|
+
account_id?: number;
|
|
3799
|
+
script_id?: number;
|
|
3800
|
+
invoke_user_worker_ahead_of_assets?: boolean;
|
|
3306
3801
|
has_user_worker?: boolean;
|
|
3307
3802
|
} | undefined;
|
|
3308
3803
|
assetConfig?: {
|
|
3804
|
+
account_id?: number;
|
|
3805
|
+
script_id?: number;
|
|
3806
|
+
compatibility_date?: string;
|
|
3807
|
+
compatibility_flags?: string[];
|
|
3309
3808
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
3310
3809
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
3810
|
+
redirects?: {
|
|
3811
|
+
version?: 1;
|
|
3812
|
+
staticRules?: Record<string, {
|
|
3813
|
+
status?: number;
|
|
3814
|
+
to?: string;
|
|
3815
|
+
lineNumber?: number;
|
|
3816
|
+
}>;
|
|
3817
|
+
rules?: Record<string, {
|
|
3818
|
+
status?: number;
|
|
3819
|
+
to?: string;
|
|
3820
|
+
}>;
|
|
3821
|
+
};
|
|
3822
|
+
headers?: {
|
|
3823
|
+
version?: 2;
|
|
3824
|
+
rules?: Record<string, {
|
|
3825
|
+
set?: Record<string, string>;
|
|
3826
|
+
unset?: string[];
|
|
3827
|
+
}>;
|
|
3828
|
+
};
|
|
3311
3829
|
} | undefined;
|
|
3312
3830
|
} | undefined;
|
|
3313
3831
|
}, {
|
|
@@ -3315,16 +3833,42 @@ export declare const PLUGINS: {
|
|
|
3315
3833
|
directory: string;
|
|
3316
3834
|
workerName?: string | undefined;
|
|
3317
3835
|
binding?: string | undefined;
|
|
3318
|
-
|
|
3836
|
+
routerConfig?: {
|
|
3837
|
+
account_id?: number;
|
|
3838
|
+
script_id?: number;
|
|
3839
|
+
invoke_user_worker_ahead_of_assets?: boolean;
|
|
3319
3840
|
has_user_worker?: boolean;
|
|
3320
3841
|
} | undefined;
|
|
3321
3842
|
assetConfig?: {
|
|
3843
|
+
account_id?: number;
|
|
3844
|
+
script_id?: number;
|
|
3845
|
+
compatibility_date?: string;
|
|
3846
|
+
compatibility_flags?: string[];
|
|
3322
3847
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
3323
3848
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
3849
|
+
redirects?: {
|
|
3850
|
+
version?: 1;
|
|
3851
|
+
staticRules?: Record<string, {
|
|
3852
|
+
status?: number;
|
|
3853
|
+
to?: string;
|
|
3854
|
+
lineNumber?: number;
|
|
3855
|
+
}>;
|
|
3856
|
+
rules?: Record<string, {
|
|
3857
|
+
status?: number;
|
|
3858
|
+
to?: string;
|
|
3859
|
+
}>;
|
|
3860
|
+
};
|
|
3861
|
+
headers?: {
|
|
3862
|
+
version?: 2;
|
|
3863
|
+
rules?: Record<string, {
|
|
3864
|
+
set?: Record<string, string>;
|
|
3865
|
+
unset?: string[];
|
|
3866
|
+
}>;
|
|
3867
|
+
};
|
|
3324
3868
|
} | undefined;
|
|
3325
3869
|
} | undefined;
|
|
3326
3870
|
}>>;
|
|
3327
|
-
workflows:
|
|
3871
|
+
workflows: Plugin_2<z.ZodObject<{
|
|
3328
3872
|
workflows: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3329
3873
|
name: z.ZodString;
|
|
3330
3874
|
className: z.ZodString;
|
|
@@ -3357,6 +3901,13 @@ export declare const PLUGINS: {
|
|
|
3357
3901
|
}, {
|
|
3358
3902
|
workflowsPersist?: string | boolean | undefined;
|
|
3359
3903
|
}>>;
|
|
3904
|
+
pipelines: Plugin_2<z.ZodObject<{
|
|
3905
|
+
pipelines: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodString, "many">]>>;
|
|
3906
|
+
}, "strip", z.ZodTypeAny, {
|
|
3907
|
+
pipelines?: string[] | Record<string, string> | undefined;
|
|
3908
|
+
}, {
|
|
3909
|
+
pipelines?: string[] | Record<string, string> | undefined;
|
|
3910
|
+
}>>;
|
|
3360
3911
|
};
|
|
3361
3912
|
|
|
3362
3913
|
export declare type Plugins = typeof PLUGINS;
|
|
@@ -3377,6 +3928,7 @@ export declare interface PluginServicesOptions<Options extends z.ZodType, Shared
|
|
|
3377
3928
|
unsafeEphemeralDurableObjects: boolean;
|
|
3378
3929
|
queueProducers: QueueProducers;
|
|
3379
3930
|
queueConsumers: QueueConsumers;
|
|
3931
|
+
unsafeEnableAssetsRpc: boolean;
|
|
3380
3932
|
}
|
|
3381
3933
|
|
|
3382
3934
|
export declare function prefixError(prefix: string, e: any): Error;
|
|
@@ -3554,11 +4106,11 @@ export declare type QueueIncomingMessage = z.infer<typeof QueueIncomingMessageSc
|
|
|
3554
4106
|
export declare const QueueIncomingMessageSchema: z.ZodObject<{
|
|
3555
4107
|
contentType: z.ZodDefault<z.ZodEnum<["text", "json", "bytes", "v8"]>>;
|
|
3556
4108
|
delaySecs: z.ZodOptional<z.ZodNumber>;
|
|
3557
|
-
body: z.ZodEffects<z.ZodString, Buffer
|
|
4109
|
+
body: z.ZodEffects<z.ZodString, Buffer<ArrayBuffer>, string>;
|
|
3558
4110
|
id: z.ZodOptional<z.ZodString>;
|
|
3559
4111
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
3560
4112
|
}, "strip", z.ZodTypeAny, {
|
|
3561
|
-
body: Buffer
|
|
4113
|
+
body: Buffer<ArrayBuffer>;
|
|
3562
4114
|
contentType: "json" | "bytes" | "v8" | "text";
|
|
3563
4115
|
delaySecs?: number | undefined;
|
|
3564
4116
|
id?: string | undefined;
|
|
@@ -3634,11 +4186,11 @@ export declare const QueuesBatchRequestSchema: z.ZodObject<{
|
|
|
3634
4186
|
messages: z.ZodArray<z.ZodObject<{
|
|
3635
4187
|
contentType: z.ZodDefault<z.ZodEnum<["text", "json", "bytes", "v8"]>>;
|
|
3636
4188
|
delaySecs: z.ZodOptional<z.ZodNumber>;
|
|
3637
|
-
body: z.ZodEffects<z.ZodString, Buffer
|
|
4189
|
+
body: z.ZodEffects<z.ZodString, Buffer<ArrayBuffer>, string>;
|
|
3638
4190
|
id: z.ZodOptional<z.ZodString>;
|
|
3639
4191
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
3640
4192
|
}, "strip", z.ZodTypeAny, {
|
|
3641
|
-
body: Buffer
|
|
4193
|
+
body: Buffer<ArrayBuffer>;
|
|
3642
4194
|
contentType: "json" | "bytes" | "v8" | "text";
|
|
3643
4195
|
delaySecs?: number | undefined;
|
|
3644
4196
|
id?: string | undefined;
|
|
@@ -3652,7 +4204,7 @@ export declare const QueuesBatchRequestSchema: z.ZodObject<{
|
|
|
3652
4204
|
}>, "many">;
|
|
3653
4205
|
}, "strip", z.ZodTypeAny, {
|
|
3654
4206
|
messages: {
|
|
3655
|
-
body: Buffer
|
|
4207
|
+
body: Buffer<ArrayBuffer>;
|
|
3656
4208
|
contentType: "json" | "bytes" | "v8" | "text";
|
|
3657
4209
|
delaySecs?: number | undefined;
|
|
3658
4210
|
id?: string | undefined;
|
|
@@ -3846,11 +4398,11 @@ export declare type ReducersRevivers = Record<string, ReducerReviver>;
|
|
|
3846
4398
|
|
|
3847
4399
|
export { ReferrerPolicy }
|
|
3848
4400
|
|
|
3849
|
-
export declare type ReplaceWorkersTypes<T> = T extends
|
|
4401
|
+
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 ? {
|
|
3850
4402
|
[K in keyof T]: OverloadReplaceWorkersTypes<T[K]>;
|
|
3851
4403
|
} : T;
|
|
3852
4404
|
|
|
3853
|
-
declare class Request_2<CfType extends RequestInitCfType = RequestInitCfType> extends
|
|
4405
|
+
declare class Request_2<CfType extends RequestInitCfType = RequestInitCfType> extends Request_4 {
|
|
3854
4406
|
[kCf]?: CfType;
|
|
3855
4407
|
constructor(input: RequestInfo, init?: RequestInit_2<CfType>);
|
|
3856
4408
|
get cf(): CfType | undefined;
|
|
@@ -3880,7 +4432,7 @@ export { RequestMode }
|
|
|
3880
4432
|
|
|
3881
4433
|
export { RequestRedirect }
|
|
3882
4434
|
|
|
3883
|
-
declare class Response_2 extends
|
|
4435
|
+
declare class Response_2 extends Response_4 {
|
|
3884
4436
|
readonly [kWebSocket]: WebSocket | null;
|
|
3885
4437
|
static error(): Response_2;
|
|
3886
4438
|
static redirect(url: string | URL, status: ResponseRedirectStatus): Response_2;
|
|
@@ -4024,29 +4576,29 @@ export declare const SourceOptionsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
4024
4576
|
modules: z.ZodArray<z.ZodObject<{
|
|
4025
4577
|
type: z.ZodEnum<["ESModule", "CommonJS", "NodeJsCompatModule", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
|
|
4026
4578
|
path: z.ZodEffects<z.ZodString, string, string>;
|
|
4027
|
-
contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array
|
|
4579
|
+
contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>;
|
|
4028
4580
|
}, "strip", z.ZodTypeAny, {
|
|
4029
4581
|
type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
4030
4582
|
path: string;
|
|
4031
|
-
contents?: string | Uint8Array | undefined;
|
|
4583
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
4032
4584
|
}, {
|
|
4033
4585
|
type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
4034
4586
|
path: string;
|
|
4035
|
-
contents?: string | Uint8Array | undefined;
|
|
4587
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
4036
4588
|
}>, "many">;
|
|
4037
4589
|
modulesRoot: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
4038
4590
|
}, "strip", z.ZodTypeAny, {
|
|
4039
4591
|
modules: {
|
|
4040
4592
|
type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
4041
4593
|
path: string;
|
|
4042
|
-
contents?: string | Uint8Array | undefined;
|
|
4594
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
4043
4595
|
}[];
|
|
4044
4596
|
modulesRoot?: string | undefined;
|
|
4045
4597
|
}, {
|
|
4046
4598
|
modules: {
|
|
4047
4599
|
type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
4048
4600
|
path: string;
|
|
4049
|
-
contents?: string | Uint8Array | undefined;
|
|
4601
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
4050
4602
|
}[];
|
|
4051
4603
|
modulesRoot?: string | undefined;
|
|
4052
4604
|
}>, z.ZodObject<{
|
|
@@ -4157,14 +4709,16 @@ export declare interface TlsOptions_Keypair {
|
|
|
4157
4709
|
certificateChain?: string;
|
|
4158
4710
|
}
|
|
4159
4711
|
|
|
4160
|
-
export declare
|
|
4161
|
-
GOOD_DEFAULT
|
|
4162
|
-
SSL3
|
|
4163
|
-
TLS1DOT0
|
|
4164
|
-
TLS1DOT1
|
|
4165
|
-
TLS1DOT2
|
|
4166
|
-
TLS1DOT3
|
|
4167
|
-
}
|
|
4712
|
+
export declare const TlsOptions_Version: {
|
|
4713
|
+
readonly GOOD_DEFAULT: 0;
|
|
4714
|
+
readonly SSL3: 1;
|
|
4715
|
+
readonly TLS1DOT0: 2;
|
|
4716
|
+
readonly TLS1DOT1: 3;
|
|
4717
|
+
readonly TLS1DOT2: 4;
|
|
4718
|
+
readonly TLS1DOT3: 5;
|
|
4719
|
+
};
|
|
4720
|
+
|
|
4721
|
+
export declare type TlsOptions_Version = (typeof TlsOptions_Version)[keyof typeof TlsOptions_Version];
|
|
4168
4722
|
|
|
4169
4723
|
export declare function _transformsForContentEncodingAndContentType(encoding: string | undefined, type: string | undefined | null): Transform[];
|
|
4170
4724
|
|
|
@@ -4209,8 +4763,8 @@ export declare class WebSocket extends TypedEventTarget<WebSocketEventMap> {
|
|
|
4209
4763
|
[kClosedIncoming]: boolean;
|
|
4210
4764
|
get readyState(): number;
|
|
4211
4765
|
accept(): void;
|
|
4212
|
-
send(message: ArrayBuffer |
|
|
4213
|
-
[kSend](message: ArrayBuffer |
|
|
4766
|
+
send(message: string | ArrayBuffer | Uint8Array<ArrayBuffer>): void;
|
|
4767
|
+
[kSend](message: string | ArrayBuffer | Uint8Array<ArrayBuffer>): void;
|
|
4214
4768
|
close(code?: number, reason?: string): void;
|
|
4215
4769
|
[kClose](code?: number, reason?: string): void;
|
|
4216
4770
|
[kError](error?: Error): void;
|
|
@@ -4311,16 +4865,18 @@ export declare type Worker_Binding_CryptoKey_Algorithm = {
|
|
|
4311
4865
|
json?: string;
|
|
4312
4866
|
};
|
|
4313
4867
|
|
|
4314
|
-
export declare
|
|
4315
|
-
ENCRYPT
|
|
4316
|
-
DECRYPT
|
|
4317
|
-
SIGN
|
|
4318
|
-
VERIFY
|
|
4319
|
-
DERIVE_KEY
|
|
4320
|
-
DERIVE_BITS
|
|
4321
|
-
WRAP_KEY
|
|
4322
|
-
UNWRAP_KEY
|
|
4323
|
-
}
|
|
4868
|
+
export declare const Worker_Binding_CryptoKey_Usage: {
|
|
4869
|
+
readonly ENCRYPT: 0;
|
|
4870
|
+
readonly DECRYPT: 1;
|
|
4871
|
+
readonly SIGN: 2;
|
|
4872
|
+
readonly VERIFY: 3;
|
|
4873
|
+
readonly DERIVE_KEY: 4;
|
|
4874
|
+
readonly DERIVE_BITS: 5;
|
|
4875
|
+
readonly WRAP_KEY: 6;
|
|
4876
|
+
readonly UNWRAP_KEY: 7;
|
|
4877
|
+
};
|
|
4878
|
+
|
|
4879
|
+
export declare type Worker_Binding_CryptoKey_Usage = (typeof Worker_Binding_CryptoKey_Usage)[keyof typeof Worker_Binding_CryptoKey_Usage];
|
|
4324
4880
|
|
|
4325
4881
|
export declare type Worker_Binding_DurableObjectNamespaceDesignator = {
|
|
4326
4882
|
className?: string;
|
|
@@ -4427,7 +4983,7 @@ export declare type Worker_Module = {
|
|
|
4427
4983
|
pythonRequirement?: string;
|
|
4428
4984
|
});
|
|
4429
4985
|
|
|
4430
|
-
export declare type WorkerOptions = z.input<typeof CORE_PLUGIN.options> & z.input<typeof CACHE_PLUGIN.options> & z.input<typeof D1_PLUGIN.options> & z.input<typeof DURABLE_OBJECTS_PLUGIN.options> & z.input<typeof KV_PLUGIN.options> & z.input<typeof QUEUES_PLUGIN.options> & z.input<typeof R2_PLUGIN.options> & z.input<typeof HYPERDRIVE_PLUGIN.options> & z.input<typeof RATELIMIT_PLUGIN.options> & z.input<typeof ASSETS_PLUGIN.options> & z.input<typeof WORKFLOWS_PLUGIN.options>;
|
|
4986
|
+
export declare type WorkerOptions = z.input<typeof CORE_PLUGIN.options> & z.input<typeof CACHE_PLUGIN.options> & z.input<typeof D1_PLUGIN.options> & z.input<typeof DURABLE_OBJECTS_PLUGIN.options> & z.input<typeof KV_PLUGIN.options> & z.input<typeof QUEUES_PLUGIN.options> & z.input<typeof R2_PLUGIN.options> & z.input<typeof HYPERDRIVE_PLUGIN.options> & z.input<typeof RATELIMIT_PLUGIN.options> & z.input<typeof ASSETS_PLUGIN.options> & z.input<typeof WORKFLOWS_PLUGIN.options> & z.input<typeof PIPELINE_PLUGIN.options>;
|
|
4431
4987
|
|
|
4432
4988
|
export declare interface WorkerRoute {
|
|
4433
4989
|
target: string;
|