miniflare 0.0.0-e0b98fdb6 → 0.0.0-e101451a2
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 +1017 -398
- package/dist/src/index.js +10258 -4862
- 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 +4616 -5167
- package/dist/src/workers/assets/assets.worker.js.map +3 -3
- package/dist/src/workers/assets/router.worker.js +5076 -5920
- 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/core/entry.worker.js +13 -13
- package/dist/src/workers/core/entry.worker.js.map +1 -1
- package/dist/src/workers/core/strip-cf-connecting-ip.worker.js +11 -0
- package/dist/src/workers/core/strip-cf-connecting-ip.worker.js.map +6 -0
- package/dist/src/workers/d1/database.worker.js +1 -1
- package/dist/src/workers/d1/database.worker.js.map +1 -1
- package/dist/src/workers/pipelines/pipeline.worker.js +11 -0
- package/dist/src/workers/pipelines/pipeline.worker.js.map +6 -0
- package/dist/src/workers/shared/index.worker.js +4 -1
- package/dist/src/workers/shared/index.worker.js.map +1 -1
- package/dist/src/workers/workflows/binding.worker.js +45 -38
- package/dist/src/workers/workflows/binding.worker.js.map +1 -1
- package/package.json +21 -23
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,54 +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
|
-
|
|
76
|
-
|
|
90
|
+
routerConfig: z.ZodOptional<z.ZodObject<{
|
|
91
|
+
account_id: z.ZodOptional<z.ZodNumber>;
|
|
92
|
+
script_id: z.ZodOptional<z.ZodNumber>;
|
|
77
93
|
invoke_user_worker_ahead_of_assets: z.ZodOptional<z.ZodBoolean>;
|
|
94
|
+
has_user_worker: z.ZodOptional<z.ZodBoolean>;
|
|
78
95
|
}, "strip", z.ZodTypeAny, {
|
|
79
|
-
|
|
96
|
+
account_id?: number;
|
|
97
|
+
script_id?: number;
|
|
80
98
|
invoke_user_worker_ahead_of_assets?: boolean;
|
|
81
|
-
}, {
|
|
82
99
|
has_user_worker?: boolean;
|
|
100
|
+
}, {
|
|
101
|
+
account_id?: number;
|
|
102
|
+
script_id?: number;
|
|
83
103
|
invoke_user_worker_ahead_of_assets?: boolean;
|
|
104
|
+
has_user_worker?: boolean;
|
|
84
105
|
}>>;
|
|
85
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">>;
|
|
86
111
|
html_handling: z.ZodOptional<z.ZodEnum<["auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none"]>>;
|
|
87
112
|
not_found_handling: z.ZodOptional<z.ZodEnum<["single-page-application", "404-page", "none"]>>;
|
|
88
|
-
|
|
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
|
+
}>>;
|
|
89
186
|
}, "strip", z.ZodTypeAny, {
|
|
187
|
+
account_id?: number;
|
|
188
|
+
script_id?: number;
|
|
189
|
+
compatibility_date?: string;
|
|
190
|
+
compatibility_flags?: string[];
|
|
90
191
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
91
192
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
92
|
-
|
|
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
|
+
};
|
|
93
212
|
}, {
|
|
213
|
+
account_id?: number;
|
|
214
|
+
script_id?: number;
|
|
215
|
+
compatibility_date?: string;
|
|
216
|
+
compatibility_flags?: string[];
|
|
94
217
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
95
218
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
96
|
-
|
|
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
|
+
};
|
|
97
238
|
}>>;
|
|
98
239
|
}, "strip", z.ZodTypeAny, {
|
|
99
240
|
directory: string;
|
|
100
241
|
workerName?: string | undefined;
|
|
101
242
|
binding?: string | undefined;
|
|
102
|
-
|
|
103
|
-
|
|
243
|
+
routerConfig?: {
|
|
244
|
+
account_id?: number;
|
|
245
|
+
script_id?: number;
|
|
104
246
|
invoke_user_worker_ahead_of_assets?: boolean;
|
|
247
|
+
has_user_worker?: boolean;
|
|
105
248
|
} | undefined;
|
|
106
249
|
assetConfig?: {
|
|
250
|
+
account_id?: number;
|
|
251
|
+
script_id?: number;
|
|
252
|
+
compatibility_date?: string;
|
|
253
|
+
compatibility_flags?: string[];
|
|
107
254
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
108
255
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
109
|
-
|
|
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
|
+
};
|
|
110
275
|
} | undefined;
|
|
111
276
|
}, {
|
|
112
277
|
directory: string;
|
|
113
278
|
workerName?: string | undefined;
|
|
114
279
|
binding?: string | undefined;
|
|
115
|
-
|
|
116
|
-
|
|
280
|
+
routerConfig?: {
|
|
281
|
+
account_id?: number;
|
|
282
|
+
script_id?: number;
|
|
117
283
|
invoke_user_worker_ahead_of_assets?: boolean;
|
|
284
|
+
has_user_worker?: boolean;
|
|
118
285
|
} | undefined;
|
|
119
286
|
assetConfig?: {
|
|
287
|
+
account_id?: number;
|
|
288
|
+
script_id?: number;
|
|
289
|
+
compatibility_date?: string;
|
|
290
|
+
compatibility_flags?: string[];
|
|
120
291
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
121
292
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
122
|
-
|
|
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
|
+
};
|
|
123
312
|
} | undefined;
|
|
124
313
|
}>>;
|
|
125
314
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -127,14 +316,38 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
127
316
|
directory: string;
|
|
128
317
|
workerName?: string | undefined;
|
|
129
318
|
binding?: string | undefined;
|
|
130
|
-
|
|
131
|
-
|
|
319
|
+
routerConfig?: {
|
|
320
|
+
account_id?: number;
|
|
321
|
+
script_id?: number;
|
|
132
322
|
invoke_user_worker_ahead_of_assets?: boolean;
|
|
323
|
+
has_user_worker?: boolean;
|
|
133
324
|
} | undefined;
|
|
134
325
|
assetConfig?: {
|
|
326
|
+
account_id?: number;
|
|
327
|
+
script_id?: number;
|
|
328
|
+
compatibility_date?: string;
|
|
329
|
+
compatibility_flags?: string[];
|
|
135
330
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
136
331
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
137
|
-
|
|
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
|
+
};
|
|
138
351
|
} | undefined;
|
|
139
352
|
} | undefined;
|
|
140
353
|
}, {
|
|
@@ -142,14 +355,38 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
142
355
|
directory: string;
|
|
143
356
|
workerName?: string | undefined;
|
|
144
357
|
binding?: string | undefined;
|
|
145
|
-
|
|
146
|
-
|
|
358
|
+
routerConfig?: {
|
|
359
|
+
account_id?: number;
|
|
360
|
+
script_id?: number;
|
|
147
361
|
invoke_user_worker_ahead_of_assets?: boolean;
|
|
362
|
+
has_user_worker?: boolean;
|
|
148
363
|
} | undefined;
|
|
149
364
|
assetConfig?: {
|
|
365
|
+
account_id?: number;
|
|
366
|
+
script_id?: number;
|
|
367
|
+
compatibility_date?: string;
|
|
368
|
+
compatibility_flags?: string[];
|
|
150
369
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
151
370
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
152
|
-
|
|
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
|
+
};
|
|
153
390
|
} | undefined;
|
|
154
391
|
} | undefined;
|
|
155
392
|
}>;
|
|
@@ -172,7 +409,7 @@ export { BodyInit }
|
|
|
172
409
|
* Use content hash to get file path from asset reverse map.
|
|
173
410
|
*/
|
|
174
411
|
export declare const buildAssetManifest: (dir: string) => Promise<{
|
|
175
|
-
encodedAssetManifest: Uint8Array
|
|
412
|
+
encodedAssetManifest: Uint8Array<ArrayBuffer>;
|
|
176
413
|
assetsReverseMap: AssetReverseMap;
|
|
177
414
|
}>;
|
|
178
415
|
|
|
@@ -278,31 +515,31 @@ export declare const CoreHeaders: {
|
|
|
278
515
|
|
|
279
516
|
export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
280
517
|
modules: z.ZodArray<z.ZodObject<{
|
|
281
|
-
type: z.ZodEnum<["ESModule", "CommonJS", "
|
|
518
|
+
type: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
|
|
282
519
|
path: z.ZodEffects<z.ZodString, string, string>;
|
|
283
|
-
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>>]>>;
|
|
284
521
|
}, "strip", z.ZodTypeAny, {
|
|
285
|
-
type: "ESModule" | "CommonJS" | "
|
|
522
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
286
523
|
path: string;
|
|
287
|
-
contents?: string | Uint8Array | undefined;
|
|
524
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
288
525
|
}, {
|
|
289
|
-
type: "ESModule" | "CommonJS" | "
|
|
526
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
290
527
|
path: string;
|
|
291
|
-
contents?: string | Uint8Array | undefined;
|
|
528
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
292
529
|
}>, "many">;
|
|
293
530
|
modulesRoot: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
294
531
|
}, "strip", z.ZodTypeAny, {
|
|
295
532
|
modules: {
|
|
296
|
-
type: "ESModule" | "CommonJS" | "
|
|
533
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
297
534
|
path: string;
|
|
298
|
-
contents?: string | Uint8Array | undefined;
|
|
535
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
299
536
|
}[];
|
|
300
537
|
modulesRoot?: string | undefined;
|
|
301
538
|
}, {
|
|
302
539
|
modules: {
|
|
303
|
-
type: "ESModule" | "CommonJS" | "
|
|
540
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
304
541
|
path: string;
|
|
305
|
-
contents?: string | Uint8Array | undefined;
|
|
542
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
306
543
|
}[];
|
|
307
544
|
modulesRoot?: string | undefined;
|
|
308
545
|
}>, z.ZodObject<{
|
|
@@ -310,15 +547,15 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
310
547
|
scriptPath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
311
548
|
modules: z.ZodOptional<z.ZodBoolean>;
|
|
312
549
|
modulesRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
313
|
-
type: z.ZodEnum<["ESModule", "CommonJS", "
|
|
550
|
+
type: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
|
|
314
551
|
include: z.ZodArray<z.ZodString, "many">;
|
|
315
552
|
fallthrough: z.ZodOptional<z.ZodBoolean>;
|
|
316
553
|
}, "strip", z.ZodTypeAny, {
|
|
317
|
-
type: "ESModule" | "CommonJS" | "
|
|
554
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
318
555
|
include: string[];
|
|
319
556
|
fallthrough?: boolean | undefined;
|
|
320
557
|
}, {
|
|
321
|
-
type: "ESModule" | "CommonJS" | "
|
|
558
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
322
559
|
include: string[];
|
|
323
560
|
fallthrough?: boolean | undefined;
|
|
324
561
|
}>, "many">>;
|
|
@@ -328,7 +565,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
328
565
|
scriptPath?: string | undefined;
|
|
329
566
|
modules?: boolean | undefined;
|
|
330
567
|
modulesRules?: {
|
|
331
|
-
type: "ESModule" | "CommonJS" | "
|
|
568
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
332
569
|
include: string[];
|
|
333
570
|
fallthrough?: boolean | undefined;
|
|
334
571
|
}[] | undefined;
|
|
@@ -338,7 +575,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
338
575
|
scriptPath?: string | undefined;
|
|
339
576
|
modules?: boolean | undefined;
|
|
340
577
|
modulesRules?: {
|
|
341
|
-
type: "ESModule" | "CommonJS" | "
|
|
578
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
342
579
|
include: string[];
|
|
343
580
|
fallthrough?: boolean | undefined;
|
|
344
581
|
}[] | undefined;
|
|
@@ -347,15 +584,15 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
347
584
|
scriptPath: z.ZodEffects<z.ZodString, string, string>;
|
|
348
585
|
modules: z.ZodOptional<z.ZodBoolean>;
|
|
349
586
|
modulesRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
350
|
-
type: z.ZodEnum<["ESModule", "CommonJS", "
|
|
587
|
+
type: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
|
|
351
588
|
include: z.ZodArray<z.ZodString, "many">;
|
|
352
589
|
fallthrough: z.ZodOptional<z.ZodBoolean>;
|
|
353
590
|
}, "strip", z.ZodTypeAny, {
|
|
354
|
-
type: "ESModule" | "CommonJS" | "
|
|
591
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
355
592
|
include: string[];
|
|
356
593
|
fallthrough?: boolean | undefined;
|
|
357
594
|
}, {
|
|
358
|
-
type: "ESModule" | "CommonJS" | "
|
|
595
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
359
596
|
include: string[];
|
|
360
597
|
fallthrough?: boolean | undefined;
|
|
361
598
|
}>, "many">>;
|
|
@@ -364,7 +601,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
364
601
|
scriptPath: string;
|
|
365
602
|
modules?: boolean | undefined;
|
|
366
603
|
modulesRules?: {
|
|
367
|
-
type: "ESModule" | "CommonJS" | "
|
|
604
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
368
605
|
include: string[];
|
|
369
606
|
fallthrough?: boolean | undefined;
|
|
370
607
|
}[] | undefined;
|
|
@@ -373,7 +610,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
373
610
|
scriptPath: string;
|
|
374
611
|
modules?: boolean | undefined;
|
|
375
612
|
modulesRules?: {
|
|
376
|
-
type: "ESModule" | "CommonJS" | "
|
|
613
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
377
614
|
include: string[];
|
|
378
615
|
fallthrough?: boolean | undefined;
|
|
379
616
|
}[] | undefined;
|
|
@@ -385,9 +622,9 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
385
622
|
compatibilityFlags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
386
623
|
routes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
387
624
|
bindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<Json, z.ZodTypeDef, Json>>>;
|
|
388
|
-
wasmBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array
|
|
625
|
+
wasmBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>>;
|
|
389
626
|
textBlobBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, string, string>>>;
|
|
390
|
-
dataBlobBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array
|
|
627
|
+
dataBlobBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>>;
|
|
391
628
|
serviceBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodLiteral<typeof kCurrentWorker>, z.ZodObject<{
|
|
392
629
|
name: z.ZodUnion<[z.ZodString, z.ZodLiteral<typeof kCurrentWorker>]>;
|
|
393
630
|
entrypoint: z.ZodOptional<z.ZodString>;
|
|
@@ -415,7 +652,14 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
415
652
|
requireClientCerts: z.ZodOptional<z.ZodBoolean>;
|
|
416
653
|
trustBrowserCas: z.ZodOptional<z.ZodBoolean>;
|
|
417
654
|
trustedCertificates: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
418
|
-
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
|
+
}>>;
|
|
419
663
|
cipherList: z.ZodOptional<z.ZodString>;
|
|
420
664
|
}, "strip", z.ZodTypeAny, {
|
|
421
665
|
keypair?: {
|
|
@@ -425,7 +669,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
425
669
|
requireClientCerts?: boolean | undefined;
|
|
426
670
|
trustBrowserCas?: boolean | undefined;
|
|
427
671
|
trustedCertificates?: string[] | undefined;
|
|
428
|
-
minVersion?:
|
|
672
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
429
673
|
cipherList?: string | undefined;
|
|
430
674
|
}, {
|
|
431
675
|
keypair?: {
|
|
@@ -435,7 +679,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
435
679
|
requireClientCerts?: boolean | undefined;
|
|
436
680
|
trustBrowserCas?: boolean | undefined;
|
|
437
681
|
trustedCertificates?: string[] | undefined;
|
|
438
|
-
minVersion?:
|
|
682
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
439
683
|
cipherList?: string | undefined;
|
|
440
684
|
}>>;
|
|
441
685
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -449,7 +693,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
449
693
|
requireClientCerts?: boolean | undefined;
|
|
450
694
|
trustBrowserCas?: boolean | undefined;
|
|
451
695
|
trustedCertificates?: string[] | undefined;
|
|
452
|
-
minVersion?:
|
|
696
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
453
697
|
cipherList?: string | undefined;
|
|
454
698
|
} | undefined;
|
|
455
699
|
}, {
|
|
@@ -463,7 +707,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
463
707
|
requireClientCerts?: boolean | undefined;
|
|
464
708
|
trustBrowserCas?: boolean | undefined;
|
|
465
709
|
trustedCertificates?: string[] | undefined;
|
|
466
|
-
minVersion?:
|
|
710
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
467
711
|
cipherList?: string | undefined;
|
|
468
712
|
} | undefined;
|
|
469
713
|
}>;
|
|
@@ -479,7 +723,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
479
723
|
requireClientCerts?: boolean | undefined;
|
|
480
724
|
trustBrowserCas?: boolean | undefined;
|
|
481
725
|
trustedCertificates?: string[] | undefined;
|
|
482
|
-
minVersion?:
|
|
726
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
483
727
|
cipherList?: string | undefined;
|
|
484
728
|
} | undefined;
|
|
485
729
|
};
|
|
@@ -495,16 +739,16 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
495
739
|
requireClientCerts?: boolean | undefined;
|
|
496
740
|
trustBrowserCas?: boolean | undefined;
|
|
497
741
|
trustedCertificates?: string[] | undefined;
|
|
498
|
-
minVersion?:
|
|
742
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
499
743
|
cipherList?: string | undefined;
|
|
500
744
|
} | undefined;
|
|
501
745
|
};
|
|
502
746
|
}>, z.ZodObject<{
|
|
503
|
-
external: z.ZodType<
|
|
747
|
+
external: z.ZodType<ExternalServer_2, z.ZodTypeDef, ExternalServer_2>;
|
|
504
748
|
}, "strip", z.ZodTypeAny, {
|
|
505
|
-
external:
|
|
749
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
506
750
|
}, {
|
|
507
|
-
external:
|
|
751
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
508
752
|
}>, z.ZodObject<{
|
|
509
753
|
disk: z.ZodObject<{
|
|
510
754
|
path: z.ZodString;
|
|
@@ -526,7 +770,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
526
770
|
path: string;
|
|
527
771
|
writable?: boolean | undefined;
|
|
528
772
|
};
|
|
529
|
-
}>, 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>>]>>>;
|
|
530
774
|
wrappedBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
531
775
|
scriptName: z.ZodString;
|
|
532
776
|
entrypoint: z.ZodOptional<z.ZodString>;
|
|
@@ -567,7 +811,14 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
567
811
|
requireClientCerts: z.ZodOptional<z.ZodBoolean>;
|
|
568
812
|
trustBrowserCas: z.ZodOptional<z.ZodBoolean>;
|
|
569
813
|
trustedCertificates: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
570
|
-
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
|
+
}>>;
|
|
571
822
|
cipherList: z.ZodOptional<z.ZodString>;
|
|
572
823
|
}, "strip", z.ZodTypeAny, {
|
|
573
824
|
keypair?: {
|
|
@@ -577,7 +828,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
577
828
|
requireClientCerts?: boolean | undefined;
|
|
578
829
|
trustBrowserCas?: boolean | undefined;
|
|
579
830
|
trustedCertificates?: string[] | undefined;
|
|
580
|
-
minVersion?:
|
|
831
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
581
832
|
cipherList?: string | undefined;
|
|
582
833
|
}, {
|
|
583
834
|
keypair?: {
|
|
@@ -587,7 +838,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
587
838
|
requireClientCerts?: boolean | undefined;
|
|
588
839
|
trustBrowserCas?: boolean | undefined;
|
|
589
840
|
trustedCertificates?: string[] | undefined;
|
|
590
|
-
minVersion?:
|
|
841
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
591
842
|
cipherList?: string | undefined;
|
|
592
843
|
}>>;
|
|
593
844
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -601,7 +852,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
601
852
|
requireClientCerts?: boolean | undefined;
|
|
602
853
|
trustBrowserCas?: boolean | undefined;
|
|
603
854
|
trustedCertificates?: string[] | undefined;
|
|
604
|
-
minVersion?:
|
|
855
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
605
856
|
cipherList?: string | undefined;
|
|
606
857
|
} | undefined;
|
|
607
858
|
}, {
|
|
@@ -615,7 +866,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
615
866
|
requireClientCerts?: boolean | undefined;
|
|
616
867
|
trustBrowserCas?: boolean | undefined;
|
|
617
868
|
trustedCertificates?: string[] | undefined;
|
|
618
|
-
minVersion?:
|
|
869
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
619
870
|
cipherList?: string | undefined;
|
|
620
871
|
} | undefined;
|
|
621
872
|
}>;
|
|
@@ -631,7 +882,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
631
882
|
requireClientCerts?: boolean | undefined;
|
|
632
883
|
trustBrowserCas?: boolean | undefined;
|
|
633
884
|
trustedCertificates?: string[] | undefined;
|
|
634
|
-
minVersion?:
|
|
885
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
635
886
|
cipherList?: string | undefined;
|
|
636
887
|
} | undefined;
|
|
637
888
|
};
|
|
@@ -647,16 +898,16 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
647
898
|
requireClientCerts?: boolean | undefined;
|
|
648
899
|
trustBrowserCas?: boolean | undefined;
|
|
649
900
|
trustedCertificates?: string[] | undefined;
|
|
650
|
-
minVersion?:
|
|
901
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
651
902
|
cipherList?: string | undefined;
|
|
652
903
|
} | undefined;
|
|
653
904
|
};
|
|
654
905
|
}>, z.ZodObject<{
|
|
655
|
-
external: z.ZodType<
|
|
906
|
+
external: z.ZodType<ExternalServer_2, z.ZodTypeDef, ExternalServer_2>;
|
|
656
907
|
}, "strip", z.ZodTypeAny, {
|
|
657
|
-
external:
|
|
908
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
658
909
|
}, {
|
|
659
|
-
external:
|
|
910
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
660
911
|
}>, z.ZodObject<{
|
|
661
912
|
disk: z.ZodObject<{
|
|
662
913
|
path: z.ZodString;
|
|
@@ -678,7 +929,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
678
929
|
path: string;
|
|
679
930
|
writable?: boolean | undefined;
|
|
680
931
|
};
|
|
681
|
-
}>, 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>>]>>;
|
|
682
933
|
fetchMock: z.ZodOptional<z.ZodType<MockAgent<MockAgent.Options>, z.ZodTypeDef, MockAgent<MockAgent.Options>>>;
|
|
683
934
|
unsafeEphemeralDurableObjects: z.ZodOptional<z.ZodBoolean>;
|
|
684
935
|
unsafeDirectSockets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -699,20 +950,24 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
699
950
|
}>, "many">>;
|
|
700
951
|
unsafeEvalBinding: z.ZodOptional<z.ZodString>;
|
|
701
952
|
unsafeUseModuleFallbackService: z.ZodOptional<z.ZodBoolean>;
|
|
702
|
-
/** Used to set the vitest pool worker SELF binding to point to the
|
|
703
|
-
(If there are assets but we're not using vitest, the miniflare entry worker can point directly to
|
|
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)
|
|
704
956
|
*/
|
|
705
957
|
hasAssetsAndIsVitest: z.ZodOptional<z.ZodBoolean>;
|
|
958
|
+
unsafeEnableAssetsRpc: z.ZodOptional<z.ZodBoolean>;
|
|
959
|
+
stripCfConnectingIp: z.ZodDefault<z.ZodBoolean>;
|
|
706
960
|
}, "strip", z.ZodTypeAny, {
|
|
961
|
+
stripCfConnectingIp: boolean;
|
|
707
962
|
name?: string | undefined;
|
|
708
963
|
rootPath?: undefined;
|
|
709
964
|
compatibilityDate?: string | undefined;
|
|
710
965
|
compatibilityFlags?: string[] | undefined;
|
|
711
966
|
routes?: string[] | undefined;
|
|
712
967
|
bindings?: Record<string, Json> | undefined;
|
|
713
|
-
wasmBindings?: Record<string, string | Uint8Array
|
|
968
|
+
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
714
969
|
textBlobBindings?: Record<string, string> | undefined;
|
|
715
|
-
dataBlobBindings?: Record<string, string | Uint8Array
|
|
970
|
+
dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
716
971
|
serviceBindings?: Record<string, string | typeof kCurrentWorker | {
|
|
717
972
|
name: string | typeof kCurrentWorker;
|
|
718
973
|
entrypoint?: string | undefined;
|
|
@@ -728,18 +983,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
728
983
|
requireClientCerts?: boolean | undefined;
|
|
729
984
|
trustBrowserCas?: boolean | undefined;
|
|
730
985
|
trustedCertificates?: string[] | undefined;
|
|
731
|
-
minVersion?:
|
|
986
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
732
987
|
cipherList?: string | undefined;
|
|
733
988
|
} | undefined;
|
|
734
989
|
};
|
|
735
990
|
} | {
|
|
736
|
-
external:
|
|
991
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
737
992
|
} | {
|
|
738
993
|
disk: {
|
|
739
994
|
path: string;
|
|
740
995
|
writable?: boolean | undefined;
|
|
741
996
|
};
|
|
742
|
-
} | ((request:
|
|
997
|
+
} | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>)> | undefined;
|
|
743
998
|
wrappedBindings?: Record<string, string | {
|
|
744
999
|
scriptName: string;
|
|
745
1000
|
entrypoint?: string | undefined;
|
|
@@ -760,18 +1015,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
760
1015
|
requireClientCerts?: boolean | undefined;
|
|
761
1016
|
trustBrowserCas?: boolean | undefined;
|
|
762
1017
|
trustedCertificates?: string[] | undefined;
|
|
763
|
-
minVersion?:
|
|
1018
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
764
1019
|
cipherList?: string | undefined;
|
|
765
1020
|
} | undefined;
|
|
766
1021
|
};
|
|
767
1022
|
} | {
|
|
768
|
-
external:
|
|
1023
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
769
1024
|
} | {
|
|
770
1025
|
disk: {
|
|
771
1026
|
path: string;
|
|
772
1027
|
writable?: boolean | undefined;
|
|
773
1028
|
};
|
|
774
|
-
} | ((request:
|
|
1029
|
+
} | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
|
|
775
1030
|
fetchMock?: MockAgent<MockAgent.Options> | undefined;
|
|
776
1031
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
777
1032
|
unsafeDirectSockets?: {
|
|
@@ -783,6 +1038,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
783
1038
|
unsafeEvalBinding?: string | undefined;
|
|
784
1039
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
785
1040
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
1041
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
786
1042
|
}, {
|
|
787
1043
|
name?: string | undefined;
|
|
788
1044
|
rootPath?: string | undefined;
|
|
@@ -790,9 +1046,9 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
790
1046
|
compatibilityFlags?: string[] | undefined;
|
|
791
1047
|
routes?: string[] | undefined;
|
|
792
1048
|
bindings?: Record<string, Json> | undefined;
|
|
793
|
-
wasmBindings?: Record<string, string | Uint8Array
|
|
1049
|
+
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
794
1050
|
textBlobBindings?: Record<string, string> | undefined;
|
|
795
|
-
dataBlobBindings?: Record<string, string | Uint8Array
|
|
1051
|
+
dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
796
1052
|
serviceBindings?: Record<string, string | typeof kCurrentWorker | {
|
|
797
1053
|
name: string | typeof kCurrentWorker;
|
|
798
1054
|
entrypoint?: string | undefined;
|
|
@@ -808,18 +1064,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
808
1064
|
requireClientCerts?: boolean | undefined;
|
|
809
1065
|
trustBrowserCas?: boolean | undefined;
|
|
810
1066
|
trustedCertificates?: string[] | undefined;
|
|
811
|
-
minVersion?:
|
|
1067
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
812
1068
|
cipherList?: string | undefined;
|
|
813
1069
|
} | undefined;
|
|
814
1070
|
};
|
|
815
1071
|
} | {
|
|
816
|
-
external:
|
|
1072
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
817
1073
|
} | {
|
|
818
1074
|
disk: {
|
|
819
1075
|
path: string;
|
|
820
1076
|
writable?: boolean | undefined;
|
|
821
1077
|
};
|
|
822
|
-
} | ((request:
|
|
1078
|
+
} | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>)> | undefined;
|
|
823
1079
|
wrappedBindings?: Record<string, string | {
|
|
824
1080
|
scriptName: string;
|
|
825
1081
|
entrypoint?: string | undefined;
|
|
@@ -840,18 +1096,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
840
1096
|
requireClientCerts?: boolean | undefined;
|
|
841
1097
|
trustBrowserCas?: boolean | undefined;
|
|
842
1098
|
trustedCertificates?: string[] | undefined;
|
|
843
|
-
minVersion?:
|
|
1099
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
844
1100
|
cipherList?: string | undefined;
|
|
845
1101
|
} | undefined;
|
|
846
1102
|
};
|
|
847
1103
|
} | {
|
|
848
|
-
external:
|
|
1104
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
849
1105
|
} | {
|
|
850
1106
|
disk: {
|
|
851
1107
|
path: string;
|
|
852
1108
|
writable?: boolean | undefined;
|
|
853
1109
|
};
|
|
854
|
-
} | ((request:
|
|
1110
|
+
} | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
|
|
855
1111
|
fetchMock?: MockAgent<MockAgent.Options> | undefined;
|
|
856
1112
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
857
1113
|
unsafeDirectSockets?: {
|
|
@@ -863,23 +1119,26 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
863
1119
|
unsafeEvalBinding?: string | undefined;
|
|
864
1120
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
865
1121
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
1122
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
1123
|
+
stripCfConnectingIp?: boolean | undefined;
|
|
866
1124
|
}>>, ({
|
|
867
1125
|
modules: {
|
|
868
|
-
type: "ESModule" | "CommonJS" | "
|
|
1126
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
869
1127
|
path: string;
|
|
870
|
-
contents?: string | Uint8Array | undefined;
|
|
1128
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
871
1129
|
}[];
|
|
872
1130
|
modulesRoot?: string | undefined;
|
|
873
1131
|
} & {
|
|
1132
|
+
stripCfConnectingIp: boolean;
|
|
874
1133
|
name?: string | undefined;
|
|
875
1134
|
rootPath?: undefined;
|
|
876
1135
|
compatibilityDate?: string | undefined;
|
|
877
1136
|
compatibilityFlags?: string[] | undefined;
|
|
878
1137
|
routes?: string[] | undefined;
|
|
879
1138
|
bindings?: Record<string, Json> | undefined;
|
|
880
|
-
wasmBindings?: Record<string, string | Uint8Array
|
|
1139
|
+
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
881
1140
|
textBlobBindings?: Record<string, string> | undefined;
|
|
882
|
-
dataBlobBindings?: Record<string, string | Uint8Array
|
|
1141
|
+
dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
883
1142
|
serviceBindings?: Record<string, string | typeof kCurrentWorker | {
|
|
884
1143
|
name: string | typeof kCurrentWorker;
|
|
885
1144
|
entrypoint?: string | undefined;
|
|
@@ -895,18 +1154,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
895
1154
|
requireClientCerts?: boolean | undefined;
|
|
896
1155
|
trustBrowserCas?: boolean | undefined;
|
|
897
1156
|
trustedCertificates?: string[] | undefined;
|
|
898
|
-
minVersion?:
|
|
1157
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
899
1158
|
cipherList?: string | undefined;
|
|
900
1159
|
} | undefined;
|
|
901
1160
|
};
|
|
902
1161
|
} | {
|
|
903
|
-
external:
|
|
1162
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
904
1163
|
} | {
|
|
905
1164
|
disk: {
|
|
906
1165
|
path: string;
|
|
907
1166
|
writable?: boolean | undefined;
|
|
908
1167
|
};
|
|
909
|
-
} | ((request:
|
|
1168
|
+
} | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>)> | undefined;
|
|
910
1169
|
wrappedBindings?: Record<string, string | {
|
|
911
1170
|
scriptName: string;
|
|
912
1171
|
entrypoint?: string | undefined;
|
|
@@ -927,18 +1186,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
927
1186
|
requireClientCerts?: boolean | undefined;
|
|
928
1187
|
trustBrowserCas?: boolean | undefined;
|
|
929
1188
|
trustedCertificates?: string[] | undefined;
|
|
930
|
-
minVersion?:
|
|
1189
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
931
1190
|
cipherList?: string | undefined;
|
|
932
1191
|
} | undefined;
|
|
933
1192
|
};
|
|
934
1193
|
} | {
|
|
935
|
-
external:
|
|
1194
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
936
1195
|
} | {
|
|
937
1196
|
disk: {
|
|
938
1197
|
path: string;
|
|
939
1198
|
writable?: boolean | undefined;
|
|
940
1199
|
};
|
|
941
|
-
} | ((request:
|
|
1200
|
+
} | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
|
|
942
1201
|
fetchMock?: MockAgent<MockAgent.Options> | undefined;
|
|
943
1202
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
944
1203
|
unsafeDirectSockets?: {
|
|
@@ -950,26 +1209,28 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
950
1209
|
unsafeEvalBinding?: string | undefined;
|
|
951
1210
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
952
1211
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
1212
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
953
1213
|
}) | ({
|
|
954
1214
|
script: string;
|
|
955
1215
|
scriptPath?: string | undefined;
|
|
956
1216
|
modules?: boolean | undefined;
|
|
957
1217
|
modulesRules?: {
|
|
958
|
-
type: "ESModule" | "CommonJS" | "
|
|
1218
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
959
1219
|
include: string[];
|
|
960
1220
|
fallthrough?: boolean | undefined;
|
|
961
1221
|
}[] | undefined;
|
|
962
1222
|
modulesRoot?: string | undefined;
|
|
963
1223
|
} & {
|
|
1224
|
+
stripCfConnectingIp: boolean;
|
|
964
1225
|
name?: string | undefined;
|
|
965
1226
|
rootPath?: undefined;
|
|
966
1227
|
compatibilityDate?: string | undefined;
|
|
967
1228
|
compatibilityFlags?: string[] | undefined;
|
|
968
1229
|
routes?: string[] | undefined;
|
|
969
1230
|
bindings?: Record<string, Json> | undefined;
|
|
970
|
-
wasmBindings?: Record<string, string | Uint8Array
|
|
1231
|
+
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
971
1232
|
textBlobBindings?: Record<string, string> | undefined;
|
|
972
|
-
dataBlobBindings?: Record<string, string | Uint8Array
|
|
1233
|
+
dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
973
1234
|
serviceBindings?: Record<string, string | typeof kCurrentWorker | {
|
|
974
1235
|
name: string | typeof kCurrentWorker;
|
|
975
1236
|
entrypoint?: string | undefined;
|
|
@@ -985,18 +1246,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
985
1246
|
requireClientCerts?: boolean | undefined;
|
|
986
1247
|
trustBrowserCas?: boolean | undefined;
|
|
987
1248
|
trustedCertificates?: string[] | undefined;
|
|
988
|
-
minVersion?:
|
|
1249
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
989
1250
|
cipherList?: string | undefined;
|
|
990
1251
|
} | undefined;
|
|
991
1252
|
};
|
|
992
1253
|
} | {
|
|
993
|
-
external:
|
|
1254
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
994
1255
|
} | {
|
|
995
1256
|
disk: {
|
|
996
1257
|
path: string;
|
|
997
1258
|
writable?: boolean | undefined;
|
|
998
1259
|
};
|
|
999
|
-
} | ((request:
|
|
1260
|
+
} | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>)> | undefined;
|
|
1000
1261
|
wrappedBindings?: Record<string, string | {
|
|
1001
1262
|
scriptName: string;
|
|
1002
1263
|
entrypoint?: string | undefined;
|
|
@@ -1017,18 +1278,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1017
1278
|
requireClientCerts?: boolean | undefined;
|
|
1018
1279
|
trustBrowserCas?: boolean | undefined;
|
|
1019
1280
|
trustedCertificates?: string[] | undefined;
|
|
1020
|
-
minVersion?:
|
|
1281
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
1021
1282
|
cipherList?: string | undefined;
|
|
1022
1283
|
} | undefined;
|
|
1023
1284
|
};
|
|
1024
1285
|
} | {
|
|
1025
|
-
external:
|
|
1286
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
1026
1287
|
} | {
|
|
1027
1288
|
disk: {
|
|
1028
1289
|
path: string;
|
|
1029
1290
|
writable?: boolean | undefined;
|
|
1030
1291
|
};
|
|
1031
|
-
} | ((request:
|
|
1292
|
+
} | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
|
|
1032
1293
|
fetchMock?: MockAgent<MockAgent.Options> | undefined;
|
|
1033
1294
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
1034
1295
|
unsafeDirectSockets?: {
|
|
@@ -1040,25 +1301,27 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1040
1301
|
unsafeEvalBinding?: string | undefined;
|
|
1041
1302
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
1042
1303
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
1304
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
1043
1305
|
}) | ({
|
|
1044
1306
|
scriptPath: string;
|
|
1045
1307
|
modules?: boolean | undefined;
|
|
1046
1308
|
modulesRules?: {
|
|
1047
|
-
type: "ESModule" | "CommonJS" | "
|
|
1309
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
1048
1310
|
include: string[];
|
|
1049
1311
|
fallthrough?: boolean | undefined;
|
|
1050
1312
|
}[] | undefined;
|
|
1051
1313
|
modulesRoot?: string | undefined;
|
|
1052
1314
|
} & {
|
|
1315
|
+
stripCfConnectingIp: boolean;
|
|
1053
1316
|
name?: string | undefined;
|
|
1054
1317
|
rootPath?: undefined;
|
|
1055
1318
|
compatibilityDate?: string | undefined;
|
|
1056
1319
|
compatibilityFlags?: string[] | undefined;
|
|
1057
1320
|
routes?: string[] | undefined;
|
|
1058
1321
|
bindings?: Record<string, Json> | undefined;
|
|
1059
|
-
wasmBindings?: Record<string, string | Uint8Array
|
|
1322
|
+
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
1060
1323
|
textBlobBindings?: Record<string, string> | undefined;
|
|
1061
|
-
dataBlobBindings?: Record<string, string | Uint8Array
|
|
1324
|
+
dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
1062
1325
|
serviceBindings?: Record<string, string | typeof kCurrentWorker | {
|
|
1063
1326
|
name: string | typeof kCurrentWorker;
|
|
1064
1327
|
entrypoint?: string | undefined;
|
|
@@ -1074,18 +1337,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1074
1337
|
requireClientCerts?: boolean | undefined;
|
|
1075
1338
|
trustBrowserCas?: boolean | undefined;
|
|
1076
1339
|
trustedCertificates?: string[] | undefined;
|
|
1077
|
-
minVersion?:
|
|
1340
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
1078
1341
|
cipherList?: string | undefined;
|
|
1079
1342
|
} | undefined;
|
|
1080
1343
|
};
|
|
1081
1344
|
} | {
|
|
1082
|
-
external:
|
|
1345
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
1083
1346
|
} | {
|
|
1084
1347
|
disk: {
|
|
1085
1348
|
path: string;
|
|
1086
1349
|
writable?: boolean | undefined;
|
|
1087
1350
|
};
|
|
1088
|
-
} | ((request:
|
|
1351
|
+
} | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>)> | undefined;
|
|
1089
1352
|
wrappedBindings?: Record<string, string | {
|
|
1090
1353
|
scriptName: string;
|
|
1091
1354
|
entrypoint?: string | undefined;
|
|
@@ -1106,18 +1369,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1106
1369
|
requireClientCerts?: boolean | undefined;
|
|
1107
1370
|
trustBrowserCas?: boolean | undefined;
|
|
1108
1371
|
trustedCertificates?: string[] | undefined;
|
|
1109
|
-
minVersion?:
|
|
1372
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
1110
1373
|
cipherList?: string | undefined;
|
|
1111
1374
|
} | undefined;
|
|
1112
1375
|
};
|
|
1113
1376
|
} | {
|
|
1114
|
-
external:
|
|
1377
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
1115
1378
|
} | {
|
|
1116
1379
|
disk: {
|
|
1117
1380
|
path: string;
|
|
1118
1381
|
writable?: boolean | undefined;
|
|
1119
1382
|
};
|
|
1120
|
-
} | ((request:
|
|
1383
|
+
} | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
|
|
1121
1384
|
fetchMock?: MockAgent<MockAgent.Options> | undefined;
|
|
1122
1385
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
1123
1386
|
unsafeDirectSockets?: {
|
|
@@ -1129,11 +1392,12 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1129
1392
|
unsafeEvalBinding?: string | undefined;
|
|
1130
1393
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
1131
1394
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
1395
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
1132
1396
|
}), ({
|
|
1133
1397
|
modules: {
|
|
1134
|
-
type: "ESModule" | "CommonJS" | "
|
|
1398
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
1135
1399
|
path: string;
|
|
1136
|
-
contents?: string | Uint8Array | undefined;
|
|
1400
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
1137
1401
|
}[];
|
|
1138
1402
|
modulesRoot?: string | undefined;
|
|
1139
1403
|
} | {
|
|
@@ -1141,7 +1405,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1141
1405
|
scriptPath?: string | undefined;
|
|
1142
1406
|
modules?: boolean | undefined;
|
|
1143
1407
|
modulesRules?: {
|
|
1144
|
-
type: "ESModule" | "CommonJS" | "
|
|
1408
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
1145
1409
|
include: string[];
|
|
1146
1410
|
fallthrough?: boolean | undefined;
|
|
1147
1411
|
}[] | undefined;
|
|
@@ -1150,7 +1414,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1150
1414
|
scriptPath: string;
|
|
1151
1415
|
modules?: boolean | undefined;
|
|
1152
1416
|
modulesRules?: {
|
|
1153
|
-
type: "ESModule" | "CommonJS" | "
|
|
1417
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
1154
1418
|
include: string[];
|
|
1155
1419
|
fallthrough?: boolean | undefined;
|
|
1156
1420
|
}[] | undefined;
|
|
@@ -1162,9 +1426,9 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1162
1426
|
compatibilityFlags?: string[] | undefined;
|
|
1163
1427
|
routes?: string[] | undefined;
|
|
1164
1428
|
bindings?: Record<string, Json> | undefined;
|
|
1165
|
-
wasmBindings?: Record<string, string | Uint8Array
|
|
1429
|
+
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
1166
1430
|
textBlobBindings?: Record<string, string> | undefined;
|
|
1167
|
-
dataBlobBindings?: Record<string, string | Uint8Array
|
|
1431
|
+
dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
1168
1432
|
serviceBindings?: Record<string, string | typeof kCurrentWorker | {
|
|
1169
1433
|
name: string | typeof kCurrentWorker;
|
|
1170
1434
|
entrypoint?: string | undefined;
|
|
@@ -1180,18 +1444,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1180
1444
|
requireClientCerts?: boolean | undefined;
|
|
1181
1445
|
trustBrowserCas?: boolean | undefined;
|
|
1182
1446
|
trustedCertificates?: string[] | undefined;
|
|
1183
|
-
minVersion?:
|
|
1447
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
1184
1448
|
cipherList?: string | undefined;
|
|
1185
1449
|
} | undefined;
|
|
1186
1450
|
};
|
|
1187
1451
|
} | {
|
|
1188
|
-
external:
|
|
1452
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
1189
1453
|
} | {
|
|
1190
1454
|
disk: {
|
|
1191
1455
|
path: string;
|
|
1192
1456
|
writable?: boolean | undefined;
|
|
1193
1457
|
};
|
|
1194
|
-
} | ((request:
|
|
1458
|
+
} | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>)> | undefined;
|
|
1195
1459
|
wrappedBindings?: Record<string, string | {
|
|
1196
1460
|
scriptName: string;
|
|
1197
1461
|
entrypoint?: string | undefined;
|
|
@@ -1212,18 +1476,18 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1212
1476
|
requireClientCerts?: boolean | undefined;
|
|
1213
1477
|
trustBrowserCas?: boolean | undefined;
|
|
1214
1478
|
trustedCertificates?: string[] | undefined;
|
|
1215
|
-
minVersion?:
|
|
1479
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
1216
1480
|
cipherList?: string | undefined;
|
|
1217
1481
|
} | undefined;
|
|
1218
1482
|
};
|
|
1219
1483
|
} | {
|
|
1220
|
-
external:
|
|
1484
|
+
external: ExternalServer_2 & (ExternalServer_2 | undefined);
|
|
1221
1485
|
} | {
|
|
1222
1486
|
disk: {
|
|
1223
1487
|
path: string;
|
|
1224
1488
|
writable?: boolean | undefined;
|
|
1225
1489
|
};
|
|
1226
|
-
} | ((request:
|
|
1490
|
+
} | ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
|
|
1227
1491
|
fetchMock?: MockAgent<MockAgent.Options> | undefined;
|
|
1228
1492
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
1229
1493
|
unsafeDirectSockets?: {
|
|
@@ -1235,6 +1499,8 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
|
|
|
1235
1499
|
unsafeEvalBinding?: string | undefined;
|
|
1236
1500
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
1237
1501
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
1502
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
1503
|
+
stripCfConnectingIp?: boolean | undefined;
|
|
1238
1504
|
}>;
|
|
1239
1505
|
|
|
1240
1506
|
export declare const CoreSharedOptionsSchema: z.ZodObject<{
|
|
@@ -1254,8 +1520,9 @@ export declare const CoreSharedOptionsSchema: z.ZodObject<{
|
|
|
1254
1520
|
cf: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>;
|
|
1255
1521
|
liveReload: z.ZodOptional<z.ZodBoolean>;
|
|
1256
1522
|
unsafeProxySharedSecret: z.ZodOptional<z.ZodString>;
|
|
1257
|
-
unsafeModuleFallbackService: z.ZodOptional<z.ZodType<(request:
|
|
1523
|
+
unsafeModuleFallbackService: z.ZodOptional<z.ZodType<(request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>, z.ZodTypeDef, (request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>>>;
|
|
1258
1524
|
unsafeStickyBlobs: z.ZodOptional<z.ZodBoolean>;
|
|
1525
|
+
unsafeEnableAssetsRpc: z.ZodOptional<z.ZodBoolean>;
|
|
1259
1526
|
}, "strip", z.ZodTypeAny, {
|
|
1260
1527
|
rootPath?: undefined;
|
|
1261
1528
|
host?: string | undefined;
|
|
@@ -1273,8 +1540,9 @@ export declare const CoreSharedOptionsSchema: z.ZodObject<{
|
|
|
1273
1540
|
cf?: string | boolean | Record<string, any> | undefined;
|
|
1274
1541
|
liveReload?: boolean | undefined;
|
|
1275
1542
|
unsafeProxySharedSecret?: string | undefined;
|
|
1276
|
-
unsafeModuleFallbackService?: ((request:
|
|
1543
|
+
unsafeModuleFallbackService?: ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
|
|
1277
1544
|
unsafeStickyBlobs?: boolean | undefined;
|
|
1545
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
1278
1546
|
}, {
|
|
1279
1547
|
rootPath?: string | undefined;
|
|
1280
1548
|
host?: string | undefined;
|
|
@@ -1292,8 +1560,9 @@ export declare const CoreSharedOptionsSchema: z.ZodObject<{
|
|
|
1292
1560
|
cf?: string | boolean | Record<string, any> | undefined;
|
|
1293
1561
|
liveReload?: boolean | undefined;
|
|
1294
1562
|
unsafeProxySharedSecret?: string | undefined;
|
|
1295
|
-
unsafeModuleFallbackService?: ((request:
|
|
1563
|
+
unsafeModuleFallbackService?: ((request: Request_3, mf: Miniflare_2) => Awaitable<Response_3>) | undefined;
|
|
1296
1564
|
unsafeStickyBlobs?: boolean | undefined;
|
|
1565
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
1297
1566
|
}>;
|
|
1298
1567
|
|
|
1299
1568
|
export declare function coupleWebSocket(ws: NodeWebSocket, pair: WebSocket): Promise<void>;
|
|
@@ -1445,8 +1714,6 @@ export declare const DurableObjectsSharedOptionsSchema: z.ZodObject<{
|
|
|
1445
1714
|
|
|
1446
1715
|
export declare function encodeSitesKey(key: string): string;
|
|
1447
1716
|
|
|
1448
|
-
export declare const ENTRY_SOCKET_HTTP_OPTIONS: HttpOptions;
|
|
1449
|
-
|
|
1450
1717
|
export declare class ErrorEvent extends Event {
|
|
1451
1718
|
readonly error: Error | null;
|
|
1452
1719
|
constructor(type: "error", init?: {
|
|
@@ -1578,10 +1845,12 @@ export declare interface HttpOptions_Header {
|
|
|
1578
1845
|
value?: string;
|
|
1579
1846
|
}
|
|
1580
1847
|
|
|
1581
|
-
export declare
|
|
1582
|
-
HOST
|
|
1583
|
-
PROXY
|
|
1584
|
-
}
|
|
1848
|
+
export declare const HttpOptions_Style: {
|
|
1849
|
+
readonly HOST: 0;
|
|
1850
|
+
readonly PROXY: 1;
|
|
1851
|
+
};
|
|
1852
|
+
|
|
1853
|
+
export declare type HttpOptions_Style = (typeof HttpOptions_Style)[keyof typeof HttpOptions_Style];
|
|
1585
1854
|
|
|
1586
1855
|
export declare const HYPERDRIVE_PLUGIN: Plugin<typeof HyperdriveInputOptionsSchema>;
|
|
1587
1856
|
|
|
@@ -1765,9 +2034,9 @@ export declare function maybeParseURL(url: Persistence): URL | undefined;
|
|
|
1765
2034
|
export declare function mergeWorkerOptions(a: Partial<WorkerOptions>, b: Partial<WorkerOptions>): Partial<WorkerOptions>;
|
|
1766
2035
|
|
|
1767
2036
|
declare class MessageEvent_2 extends Event {
|
|
1768
|
-
readonly data: ArrayBuffer |
|
|
2037
|
+
readonly data: string | ArrayBuffer | Uint8Array<ArrayBuffer>;
|
|
1769
2038
|
constructor(type: "message", init: {
|
|
1770
|
-
data: ArrayBuffer |
|
|
2039
|
+
data: string | ArrayBuffer | Uint8Array<ArrayBuffer>;
|
|
1771
2040
|
});
|
|
1772
2041
|
}
|
|
1773
2042
|
export { MessageEvent_2 as MessageEvent }
|
|
@@ -1815,38 +2084,38 @@ export declare type MiniflareOptions = SharedOptions & (WorkerOptions | {
|
|
|
1815
2084
|
export declare type ModuleDefinition = z.infer<typeof ModuleDefinitionSchema>;
|
|
1816
2085
|
|
|
1817
2086
|
export declare const ModuleDefinitionSchema: z.ZodObject<{
|
|
1818
|
-
type: z.ZodEnum<["ESModule", "CommonJS", "
|
|
2087
|
+
type: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
|
|
1819
2088
|
path: z.ZodEffects<z.ZodString, string, string>;
|
|
1820
|
-
contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array
|
|
2089
|
+
contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>;
|
|
1821
2090
|
}, "strip", z.ZodTypeAny, {
|
|
1822
|
-
type: "ESModule" | "CommonJS" | "
|
|
2091
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
1823
2092
|
path: string;
|
|
1824
|
-
contents?: string | Uint8Array | undefined;
|
|
2093
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
1825
2094
|
}, {
|
|
1826
|
-
type: "ESModule" | "CommonJS" | "
|
|
2095
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
1827
2096
|
path: string;
|
|
1828
|
-
contents?: string | Uint8Array | undefined;
|
|
2097
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
1829
2098
|
}>;
|
|
1830
2099
|
|
|
1831
2100
|
export declare type ModuleRule = z.infer<typeof ModuleRuleSchema>;
|
|
1832
2101
|
|
|
1833
2102
|
export declare const ModuleRuleSchema: z.ZodObject<{
|
|
1834
|
-
type: z.ZodEnum<["ESModule", "CommonJS", "
|
|
2103
|
+
type: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
|
|
1835
2104
|
include: z.ZodArray<z.ZodString, "many">;
|
|
1836
2105
|
fallthrough: z.ZodOptional<z.ZodBoolean>;
|
|
1837
2106
|
}, "strip", z.ZodTypeAny, {
|
|
1838
|
-
type: "ESModule" | "CommonJS" | "
|
|
2107
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
1839
2108
|
include: string[];
|
|
1840
2109
|
fallthrough?: boolean | undefined;
|
|
1841
2110
|
}, {
|
|
1842
|
-
type: "ESModule" | "CommonJS" | "
|
|
2111
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
1843
2112
|
include: string[];
|
|
1844
2113
|
fallthrough?: boolean | undefined;
|
|
1845
2114
|
}>;
|
|
1846
2115
|
|
|
1847
2116
|
export declare type ModuleRuleType = z.infer<typeof ModuleRuleTypeSchema>;
|
|
1848
2117
|
|
|
1849
|
-
export declare const ModuleRuleTypeSchema: z.ZodEnum<["ESModule", "CommonJS", "
|
|
2118
|
+
export declare const ModuleRuleTypeSchema: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
|
|
1850
2119
|
|
|
1851
2120
|
export declare class Mutex {
|
|
1852
2121
|
private locked;
|
|
@@ -1902,7 +2171,82 @@ export declare type OptionalZodTypeOf<T extends z.ZodTypeAny | undefined> = T ex
|
|
|
1902
2171
|
|
|
1903
2172
|
export declare type OverloadReplaceWorkersTypes<T> = T extends (...args: any[]) => any ? UnionToIntersection<ReplaceWorkersTypes<OverloadUnion<T>>> : ReplaceWorkersTypes<T>;
|
|
1904
2173
|
|
|
1905
|
-
export declare type OverloadUnion<T extends (...args: any[]) => any> = Parameters<T> extends [] ? T :
|
|
2174
|
+
export declare type OverloadUnion<T extends (...args: any[]) => any> = Parameters<T> extends [] ? T : OverloadUnion14<T>;
|
|
2175
|
+
|
|
2176
|
+
export declare type OverloadUnion10<T> = T extends {
|
|
2177
|
+
(...args: infer P1): infer R1;
|
|
2178
|
+
(...args: infer P2): infer R2;
|
|
2179
|
+
(...args: infer P3): infer R3;
|
|
2180
|
+
(...args: infer P4): infer R4;
|
|
2181
|
+
(...args: infer P5): infer R5;
|
|
2182
|
+
(...args: infer P6): infer R6;
|
|
2183
|
+
(...args: infer P7): infer R7;
|
|
2184
|
+
(...args: infer P8): infer R8;
|
|
2185
|
+
(...args: infer P9): infer R9;
|
|
2186
|
+
(...args: infer P10): infer R10;
|
|
2187
|
+
} ? ((...args: P1) => R1) | ((...args: P2) => R2) | ((...args: P3) => R3) | ((...args: P4) => R4) | ((...args: P5) => R5) | ((...args: P6) => R6) | ((...args: P7) => R7) | ((...args: P8) => R8) | ((...args: P9) => R9) | ((...args: P10) => R10) : OverloadUnion9<T>;
|
|
2188
|
+
|
|
2189
|
+
export declare type OverloadUnion11<T> = T extends {
|
|
2190
|
+
(...args: infer P1): infer R1;
|
|
2191
|
+
(...args: infer P2): infer R2;
|
|
2192
|
+
(...args: infer P3): infer R3;
|
|
2193
|
+
(...args: infer P4): infer R4;
|
|
2194
|
+
(...args: infer P5): infer R5;
|
|
2195
|
+
(...args: infer P6): infer R6;
|
|
2196
|
+
(...args: infer P7): infer R7;
|
|
2197
|
+
(...args: infer P8): infer R8;
|
|
2198
|
+
(...args: infer P9): infer R9;
|
|
2199
|
+
(...args: infer P10): infer R10;
|
|
2200
|
+
(...args: infer P11): infer R11;
|
|
2201
|
+
} ? ((...args: P1) => R1) | ((...args: P2) => R2) | ((...args: P3) => R3) | ((...args: P4) => R4) | ((...args: P5) => R5) | ((...args: P6) => R6) | ((...args: P7) => R7) | ((...args: P8) => R8) | ((...args: P9) => R9) | ((...args: P10) => R10) | ((...args: P11) => R11) : OverloadUnion10<T>;
|
|
2202
|
+
|
|
2203
|
+
export declare type OverloadUnion12<T> = T extends {
|
|
2204
|
+
(...args: infer P1): infer R1;
|
|
2205
|
+
(...args: infer P2): infer R2;
|
|
2206
|
+
(...args: infer P3): infer R3;
|
|
2207
|
+
(...args: infer P4): infer R4;
|
|
2208
|
+
(...args: infer P5): infer R5;
|
|
2209
|
+
(...args: infer P6): infer R6;
|
|
2210
|
+
(...args: infer P7): infer R7;
|
|
2211
|
+
(...args: infer P8): infer R8;
|
|
2212
|
+
(...args: infer P9): infer R9;
|
|
2213
|
+
(...args: infer P10): infer R10;
|
|
2214
|
+
(...args: infer P11): infer R11;
|
|
2215
|
+
(...args: infer P12): infer R12;
|
|
2216
|
+
} ? ((...args: P1) => R1) | ((...args: P2) => R2) | ((...args: P3) => R3) | ((...args: P4) => R4) | ((...args: P5) => R5) | ((...args: P6) => R6) | ((...args: P7) => R7) | ((...args: P8) => R8) | ((...args: P9) => R9) | ((...args: P10) => R10) | ((...args: P11) => R11) | ((...args: P12) => R12) : OverloadUnion11<T>;
|
|
2217
|
+
|
|
2218
|
+
export declare type OverloadUnion13<T> = T extends {
|
|
2219
|
+
(...args: infer P1): infer R1;
|
|
2220
|
+
(...args: infer P2): infer R2;
|
|
2221
|
+
(...args: infer P3): infer R3;
|
|
2222
|
+
(...args: infer P4): infer R4;
|
|
2223
|
+
(...args: infer P5): infer R5;
|
|
2224
|
+
(...args: infer P6): infer R6;
|
|
2225
|
+
(...args: infer P7): infer R7;
|
|
2226
|
+
(...args: infer P8): infer R8;
|
|
2227
|
+
(...args: infer P9): infer R9;
|
|
2228
|
+
(...args: infer P10): infer R10;
|
|
2229
|
+
(...args: infer P11): infer R11;
|
|
2230
|
+
(...args: infer P12): infer R12;
|
|
2231
|
+
(...args: infer P13): infer R13;
|
|
2232
|
+
} ? ((...args: P1) => R1) | ((...args: P2) => R2) | ((...args: P3) => R3) | ((...args: P4) => R4) | ((...args: P5) => R5) | ((...args: P6) => R6) | ((...args: P7) => R7) | ((...args: P8) => R8) | ((...args: P9) => R9) | ((...args: P10) => R10) | ((...args: P11) => R11) | ((...args: P12) => R12) | ((...args: P13) => R13) : OverloadUnion12<T>;
|
|
2233
|
+
|
|
2234
|
+
export declare type OverloadUnion14<T> = T extends {
|
|
2235
|
+
(...args: infer P1): infer R1;
|
|
2236
|
+
(...args: infer P2): infer R2;
|
|
2237
|
+
(...args: infer P3): infer R3;
|
|
2238
|
+
(...args: infer P4): infer R4;
|
|
2239
|
+
(...args: infer P5): infer R5;
|
|
2240
|
+
(...args: infer P6): infer R6;
|
|
2241
|
+
(...args: infer P7): infer R7;
|
|
2242
|
+
(...args: infer P8): infer R8;
|
|
2243
|
+
(...args: infer P9): infer R9;
|
|
2244
|
+
(...args: infer P10): infer R10;
|
|
2245
|
+
(...args: infer P11): infer R11;
|
|
2246
|
+
(...args: infer P12): infer R12;
|
|
2247
|
+
(...args: infer P13): infer R13;
|
|
2248
|
+
(...args: infer P14): infer R14;
|
|
2249
|
+
} ? ((...args: P1) => R1) | ((...args: P2) => R2) | ((...args: P3) => R3) | ((...args: P4) => R4) | ((...args: P5) => R5) | ((...args: P6) => R6) | ((...args: P7) => R7) | ((...args: P8) => R8) | ((...args: P9) => R9) | ((...args: P10) => R10) | ((...args: P11) => R11) | ((...args: P12) => R12) | ((...args: P13) => R13) | ((...args: P14) => R14) : OverloadUnion13<T>;
|
|
1906
2250
|
|
|
1907
2251
|
export declare type OverloadUnion2<T> = T extends {
|
|
1908
2252
|
(...args: infer P1): infer R1;
|
|
@@ -1998,12 +2342,24 @@ export declare type Persistence = z.infer<typeof PersistenceSchema>;
|
|
|
1998
2342
|
|
|
1999
2343
|
export declare const PersistenceSchema: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodEffects<z.ZodString, string, string>]>>;
|
|
2000
2344
|
|
|
2345
|
+
export declare const PIPELINE_PLUGIN: Plugin<typeof PipelineOptionsSchema>;
|
|
2346
|
+
|
|
2347
|
+
export declare const PipelineOptionsSchema: z.ZodObject<{
|
|
2348
|
+
pipelines: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodString, "many">]>>;
|
|
2349
|
+
}, "strip", z.ZodTypeAny, {
|
|
2350
|
+
pipelines?: string[] | Record<string, string> | undefined;
|
|
2351
|
+
}, {
|
|
2352
|
+
pipelines?: string[] | Record<string, string> | undefined;
|
|
2353
|
+
}>;
|
|
2354
|
+
|
|
2355
|
+
export declare const PIPELINES_PLUGIN_NAME = "pipelines";
|
|
2356
|
+
|
|
2001
2357
|
export declare interface PlatformImpl<RS> {
|
|
2002
2358
|
Blob: typeof Blob_2;
|
|
2003
2359
|
File: typeof File_2;
|
|
2004
2360
|
Headers: typeof Headers_3;
|
|
2005
|
-
Request: typeof
|
|
2006
|
-
Response: typeof
|
|
2361
|
+
Request: typeof Request_5;
|
|
2362
|
+
Response: typeof Response_5;
|
|
2007
2363
|
isReadableStream(value: unknown): value is RS;
|
|
2008
2364
|
bufferReadableStream(stream: RS): Promise<ArrayBuffer>;
|
|
2009
2365
|
unbufferReadableStream(buffer: ArrayBuffer): RS;
|
|
@@ -2026,33 +2382,33 @@ export declare interface PluginBase<Options extends z.ZodType, SharedOptions ext
|
|
|
2026
2382
|
}
|
|
2027
2383
|
|
|
2028
2384
|
export declare const PLUGINS: {
|
|
2029
|
-
core:
|
|
2385
|
+
core: Plugin_2<z.ZodEffects<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
2030
2386
|
modules: z.ZodArray<z.ZodObject<{
|
|
2031
|
-
type: z.ZodEnum<["ESModule", "CommonJS", "
|
|
2387
|
+
type: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
|
|
2032
2388
|
path: z.ZodEffects<z.ZodString, string, string>;
|
|
2033
|
-
contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array
|
|
2389
|
+
contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>;
|
|
2034
2390
|
}, "strip", z.ZodTypeAny, {
|
|
2035
|
-
type: "ESModule" | "CommonJS" | "
|
|
2391
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2036
2392
|
path: string;
|
|
2037
|
-
contents?: string | Uint8Array | undefined;
|
|
2393
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
2038
2394
|
}, {
|
|
2039
|
-
type: "ESModule" | "CommonJS" | "
|
|
2395
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2040
2396
|
path: string;
|
|
2041
|
-
contents?: string | Uint8Array | undefined;
|
|
2397
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
2042
2398
|
}>, "many">;
|
|
2043
2399
|
modulesRoot: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2044
2400
|
}, "strip", z.ZodTypeAny, {
|
|
2045
2401
|
modules: {
|
|
2046
|
-
type: "ESModule" | "CommonJS" | "
|
|
2402
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2047
2403
|
path: string;
|
|
2048
|
-
contents?: string | Uint8Array | undefined;
|
|
2404
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
2049
2405
|
}[];
|
|
2050
2406
|
modulesRoot?: string | undefined;
|
|
2051
2407
|
}, {
|
|
2052
2408
|
modules: {
|
|
2053
|
-
type: "ESModule" | "CommonJS" | "
|
|
2409
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2054
2410
|
path: string;
|
|
2055
|
-
contents?: string | Uint8Array | undefined;
|
|
2411
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
2056
2412
|
}[];
|
|
2057
2413
|
modulesRoot?: string | undefined;
|
|
2058
2414
|
}>, z.ZodObject<{
|
|
@@ -2060,15 +2416,15 @@ export declare const PLUGINS: {
|
|
|
2060
2416
|
scriptPath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
2061
2417
|
modules: z.ZodOptional<z.ZodBoolean>;
|
|
2062
2418
|
modulesRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2063
|
-
type: z.ZodEnum<["ESModule", "CommonJS", "
|
|
2419
|
+
type: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
|
|
2064
2420
|
include: z.ZodArray<z.ZodString, "many">;
|
|
2065
2421
|
fallthrough: z.ZodOptional<z.ZodBoolean>;
|
|
2066
2422
|
}, "strip", z.ZodTypeAny, {
|
|
2067
|
-
type: "ESModule" | "CommonJS" | "
|
|
2423
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2068
2424
|
include: string[];
|
|
2069
2425
|
fallthrough?: boolean | undefined;
|
|
2070
2426
|
}, {
|
|
2071
|
-
type: "ESModule" | "CommonJS" | "
|
|
2427
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2072
2428
|
include: string[];
|
|
2073
2429
|
fallthrough?: boolean | undefined;
|
|
2074
2430
|
}>, "many">>;
|
|
@@ -2078,7 +2434,7 @@ export declare const PLUGINS: {
|
|
|
2078
2434
|
scriptPath?: string | undefined;
|
|
2079
2435
|
modules?: boolean | undefined;
|
|
2080
2436
|
modulesRules?: {
|
|
2081
|
-
type: "ESModule" | "CommonJS" | "
|
|
2437
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2082
2438
|
include: string[];
|
|
2083
2439
|
fallthrough?: boolean | undefined;
|
|
2084
2440
|
}[] | undefined;
|
|
@@ -2088,7 +2444,7 @@ export declare const PLUGINS: {
|
|
|
2088
2444
|
scriptPath?: string | undefined;
|
|
2089
2445
|
modules?: boolean | undefined;
|
|
2090
2446
|
modulesRules?: {
|
|
2091
|
-
type: "ESModule" | "CommonJS" | "
|
|
2447
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2092
2448
|
include: string[];
|
|
2093
2449
|
fallthrough?: boolean | undefined;
|
|
2094
2450
|
}[] | undefined;
|
|
@@ -2097,15 +2453,15 @@ export declare const PLUGINS: {
|
|
|
2097
2453
|
scriptPath: z.ZodEffects<z.ZodString, string, string>;
|
|
2098
2454
|
modules: z.ZodOptional<z.ZodBoolean>;
|
|
2099
2455
|
modulesRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2100
|
-
type: z.ZodEnum<["ESModule", "CommonJS", "
|
|
2456
|
+
type: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
|
|
2101
2457
|
include: z.ZodArray<z.ZodString, "many">;
|
|
2102
2458
|
fallthrough: z.ZodOptional<z.ZodBoolean>;
|
|
2103
2459
|
}, "strip", z.ZodTypeAny, {
|
|
2104
|
-
type: "ESModule" | "CommonJS" | "
|
|
2460
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2105
2461
|
include: string[];
|
|
2106
2462
|
fallthrough?: boolean | undefined;
|
|
2107
2463
|
}, {
|
|
2108
|
-
type: "ESModule" | "CommonJS" | "
|
|
2464
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2109
2465
|
include: string[];
|
|
2110
2466
|
fallthrough?: boolean | undefined;
|
|
2111
2467
|
}>, "many">>;
|
|
@@ -2114,7 +2470,7 @@ export declare const PLUGINS: {
|
|
|
2114
2470
|
scriptPath: string;
|
|
2115
2471
|
modules?: boolean | undefined;
|
|
2116
2472
|
modulesRules?: {
|
|
2117
|
-
type: "ESModule" | "CommonJS" | "
|
|
2473
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2118
2474
|
include: string[];
|
|
2119
2475
|
fallthrough?: boolean | undefined;
|
|
2120
2476
|
}[] | undefined;
|
|
@@ -2123,7 +2479,7 @@ export declare const PLUGINS: {
|
|
|
2123
2479
|
scriptPath: string;
|
|
2124
2480
|
modules?: boolean | undefined;
|
|
2125
2481
|
modulesRules?: {
|
|
2126
|
-
type: "ESModule" | "CommonJS" | "
|
|
2482
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2127
2483
|
include: string[];
|
|
2128
2484
|
fallthrough?: boolean | undefined;
|
|
2129
2485
|
}[] | undefined;
|
|
@@ -2134,18 +2490,18 @@ export declare const PLUGINS: {
|
|
|
2134
2490
|
compatibilityDate: z.ZodOptional<z.ZodString>;
|
|
2135
2491
|
compatibilityFlags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2136
2492
|
routes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2137
|
-
bindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<
|
|
2138
|
-
wasmBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array
|
|
2493
|
+
bindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<Json_2, z.ZodTypeDef, Json_2>>>;
|
|
2494
|
+
wasmBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>>;
|
|
2139
2495
|
textBlobBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, string, string>>>;
|
|
2140
|
-
dataBlobBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array
|
|
2141
|
-
serviceBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodLiteral<
|
|
2142
|
-
name: z.ZodUnion<[z.ZodString, z.ZodLiteral<
|
|
2496
|
+
dataBlobBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>>;
|
|
2497
|
+
serviceBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodLiteral<kCurrentWorker_2>, z.ZodObject<{
|
|
2498
|
+
name: z.ZodUnion<[z.ZodString, z.ZodLiteral<kCurrentWorker_2>]>;
|
|
2143
2499
|
entrypoint: z.ZodOptional<z.ZodString>;
|
|
2144
2500
|
}, "strip", z.ZodTypeAny, {
|
|
2145
|
-
name: string |
|
|
2501
|
+
name: string | kCurrentWorker_2;
|
|
2146
2502
|
entrypoint?: string | undefined;
|
|
2147
2503
|
}, {
|
|
2148
|
-
name: string |
|
|
2504
|
+
name: string | kCurrentWorker_2;
|
|
2149
2505
|
entrypoint?: string | undefined;
|
|
2150
2506
|
}>, z.ZodObject<{
|
|
2151
2507
|
network: z.ZodObject<{
|
|
@@ -2165,7 +2521,14 @@ export declare const PLUGINS: {
|
|
|
2165
2521
|
requireClientCerts: z.ZodOptional<z.ZodBoolean>;
|
|
2166
2522
|
trustBrowserCas: z.ZodOptional<z.ZodBoolean>;
|
|
2167
2523
|
trustedCertificates: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2168
|
-
minVersion: z.ZodOptional<z.ZodNativeEnum<
|
|
2524
|
+
minVersion: z.ZodOptional<z.ZodNativeEnum<{
|
|
2525
|
+
readonly GOOD_DEFAULT: 0;
|
|
2526
|
+
readonly SSL3: 1;
|
|
2527
|
+
readonly TLS1DOT0: 2;
|
|
2528
|
+
readonly TLS1DOT1: 3;
|
|
2529
|
+
readonly TLS1DOT2: 4;
|
|
2530
|
+
readonly TLS1DOT3: 5;
|
|
2531
|
+
}>>;
|
|
2169
2532
|
cipherList: z.ZodOptional<z.ZodString>;
|
|
2170
2533
|
}, "strip", z.ZodTypeAny, {
|
|
2171
2534
|
keypair?: {
|
|
@@ -2175,7 +2538,7 @@ export declare const PLUGINS: {
|
|
|
2175
2538
|
requireClientCerts?: boolean | undefined;
|
|
2176
2539
|
trustBrowserCas?: boolean | undefined;
|
|
2177
2540
|
trustedCertificates?: string[] | undefined;
|
|
2178
|
-
minVersion?:
|
|
2541
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2179
2542
|
cipherList?: string | undefined;
|
|
2180
2543
|
}, {
|
|
2181
2544
|
keypair?: {
|
|
@@ -2185,7 +2548,7 @@ export declare const PLUGINS: {
|
|
|
2185
2548
|
requireClientCerts?: boolean | undefined;
|
|
2186
2549
|
trustBrowserCas?: boolean | undefined;
|
|
2187
2550
|
trustedCertificates?: string[] | undefined;
|
|
2188
|
-
minVersion?:
|
|
2551
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2189
2552
|
cipherList?: string | undefined;
|
|
2190
2553
|
}>>;
|
|
2191
2554
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2199,7 +2562,7 @@ export declare const PLUGINS: {
|
|
|
2199
2562
|
requireClientCerts?: boolean | undefined;
|
|
2200
2563
|
trustBrowserCas?: boolean | undefined;
|
|
2201
2564
|
trustedCertificates?: string[] | undefined;
|
|
2202
|
-
minVersion?:
|
|
2565
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2203
2566
|
cipherList?: string | undefined;
|
|
2204
2567
|
} | undefined;
|
|
2205
2568
|
}, {
|
|
@@ -2213,7 +2576,7 @@ export declare const PLUGINS: {
|
|
|
2213
2576
|
requireClientCerts?: boolean | undefined;
|
|
2214
2577
|
trustBrowserCas?: boolean | undefined;
|
|
2215
2578
|
trustedCertificates?: string[] | undefined;
|
|
2216
|
-
minVersion?:
|
|
2579
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2217
2580
|
cipherList?: string | undefined;
|
|
2218
2581
|
} | undefined;
|
|
2219
2582
|
}>;
|
|
@@ -2229,7 +2592,7 @@ export declare const PLUGINS: {
|
|
|
2229
2592
|
requireClientCerts?: boolean | undefined;
|
|
2230
2593
|
trustBrowserCas?: boolean | undefined;
|
|
2231
2594
|
trustedCertificates?: string[] | undefined;
|
|
2232
|
-
minVersion?:
|
|
2595
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2233
2596
|
cipherList?: string | undefined;
|
|
2234
2597
|
} | undefined;
|
|
2235
2598
|
};
|
|
@@ -2245,16 +2608,16 @@ export declare const PLUGINS: {
|
|
|
2245
2608
|
requireClientCerts?: boolean | undefined;
|
|
2246
2609
|
trustBrowserCas?: boolean | undefined;
|
|
2247
2610
|
trustedCertificates?: string[] | undefined;
|
|
2248
|
-
minVersion?:
|
|
2611
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2249
2612
|
cipherList?: string | undefined;
|
|
2250
2613
|
} | undefined;
|
|
2251
2614
|
};
|
|
2252
2615
|
}>, z.ZodObject<{
|
|
2253
|
-
external: z.ZodType<
|
|
2616
|
+
external: z.ZodType<ExternalServer_3, z.ZodTypeDef, ExternalServer_3>;
|
|
2254
2617
|
}, "strip", z.ZodTypeAny, {
|
|
2255
|
-
external:
|
|
2618
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2256
2619
|
}, {
|
|
2257
|
-
external:
|
|
2620
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2258
2621
|
}>, z.ZodObject<{
|
|
2259
2622
|
disk: z.ZodObject<{
|
|
2260
2623
|
path: z.ZodString;
|
|
@@ -2276,28 +2639,28 @@ export declare const PLUGINS: {
|
|
|
2276
2639
|
path: string;
|
|
2277
2640
|
writable?: boolean | undefined;
|
|
2278
2641
|
};
|
|
2279
|
-
}>, z.ZodType<(request:
|
|
2642
|
+
}>, z.ZodType<(request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>, z.ZodTypeDef, (request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>>]>>>;
|
|
2280
2643
|
wrappedBindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
2281
2644
|
scriptName: z.ZodString;
|
|
2282
2645
|
entrypoint: z.ZodOptional<z.ZodString>;
|
|
2283
|
-
bindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<
|
|
2646
|
+
bindings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<Json_2, z.ZodTypeDef, Json_2>>>;
|
|
2284
2647
|
}, "strip", z.ZodTypeAny, {
|
|
2285
2648
|
scriptName: string;
|
|
2286
2649
|
entrypoint?: string | undefined;
|
|
2287
|
-
bindings?: Record<string,
|
|
2650
|
+
bindings?: Record<string, Json_2> | undefined;
|
|
2288
2651
|
}, {
|
|
2289
2652
|
scriptName: string;
|
|
2290
2653
|
entrypoint?: string | undefined;
|
|
2291
|
-
bindings?: Record<string,
|
|
2654
|
+
bindings?: Record<string, Json_2> | undefined;
|
|
2292
2655
|
}>]>>>;
|
|
2293
|
-
outboundService: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<
|
|
2294
|
-
name: z.ZodUnion<[z.ZodString, z.ZodLiteral<
|
|
2656
|
+
outboundService: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<kCurrentWorker_2>, z.ZodObject<{
|
|
2657
|
+
name: z.ZodUnion<[z.ZodString, z.ZodLiteral<kCurrentWorker_2>]>;
|
|
2295
2658
|
entrypoint: z.ZodOptional<z.ZodString>;
|
|
2296
2659
|
}, "strip", z.ZodTypeAny, {
|
|
2297
|
-
name: string |
|
|
2660
|
+
name: string | kCurrentWorker_2;
|
|
2298
2661
|
entrypoint?: string | undefined;
|
|
2299
2662
|
}, {
|
|
2300
|
-
name: string |
|
|
2663
|
+
name: string | kCurrentWorker_2;
|
|
2301
2664
|
entrypoint?: string | undefined;
|
|
2302
2665
|
}>, z.ZodObject<{
|
|
2303
2666
|
network: z.ZodObject<{
|
|
@@ -2317,7 +2680,14 @@ export declare const PLUGINS: {
|
|
|
2317
2680
|
requireClientCerts: z.ZodOptional<z.ZodBoolean>;
|
|
2318
2681
|
trustBrowserCas: z.ZodOptional<z.ZodBoolean>;
|
|
2319
2682
|
trustedCertificates: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2320
|
-
minVersion: z.ZodOptional<z.ZodNativeEnum<
|
|
2683
|
+
minVersion: z.ZodOptional<z.ZodNativeEnum<{
|
|
2684
|
+
readonly GOOD_DEFAULT: 0;
|
|
2685
|
+
readonly SSL3: 1;
|
|
2686
|
+
readonly TLS1DOT0: 2;
|
|
2687
|
+
readonly TLS1DOT1: 3;
|
|
2688
|
+
readonly TLS1DOT2: 4;
|
|
2689
|
+
readonly TLS1DOT3: 5;
|
|
2690
|
+
}>>;
|
|
2321
2691
|
cipherList: z.ZodOptional<z.ZodString>;
|
|
2322
2692
|
}, "strip", z.ZodTypeAny, {
|
|
2323
2693
|
keypair?: {
|
|
@@ -2327,7 +2697,7 @@ export declare const PLUGINS: {
|
|
|
2327
2697
|
requireClientCerts?: boolean | undefined;
|
|
2328
2698
|
trustBrowserCas?: boolean | undefined;
|
|
2329
2699
|
trustedCertificates?: string[] | undefined;
|
|
2330
|
-
minVersion?:
|
|
2700
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2331
2701
|
cipherList?: string | undefined;
|
|
2332
2702
|
}, {
|
|
2333
2703
|
keypair?: {
|
|
@@ -2337,7 +2707,7 @@ export declare const PLUGINS: {
|
|
|
2337
2707
|
requireClientCerts?: boolean | undefined;
|
|
2338
2708
|
trustBrowserCas?: boolean | undefined;
|
|
2339
2709
|
trustedCertificates?: string[] | undefined;
|
|
2340
|
-
minVersion?:
|
|
2710
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2341
2711
|
cipherList?: string | undefined;
|
|
2342
2712
|
}>>;
|
|
2343
2713
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2351,7 +2721,7 @@ export declare const PLUGINS: {
|
|
|
2351
2721
|
requireClientCerts?: boolean | undefined;
|
|
2352
2722
|
trustBrowserCas?: boolean | undefined;
|
|
2353
2723
|
trustedCertificates?: string[] | undefined;
|
|
2354
|
-
minVersion?:
|
|
2724
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2355
2725
|
cipherList?: string | undefined;
|
|
2356
2726
|
} | undefined;
|
|
2357
2727
|
}, {
|
|
@@ -2365,7 +2735,7 @@ export declare const PLUGINS: {
|
|
|
2365
2735
|
requireClientCerts?: boolean | undefined;
|
|
2366
2736
|
trustBrowserCas?: boolean | undefined;
|
|
2367
2737
|
trustedCertificates?: string[] | undefined;
|
|
2368
|
-
minVersion?:
|
|
2738
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2369
2739
|
cipherList?: string | undefined;
|
|
2370
2740
|
} | undefined;
|
|
2371
2741
|
}>;
|
|
@@ -2381,7 +2751,7 @@ export declare const PLUGINS: {
|
|
|
2381
2751
|
requireClientCerts?: boolean | undefined;
|
|
2382
2752
|
trustBrowserCas?: boolean | undefined;
|
|
2383
2753
|
trustedCertificates?: string[] | undefined;
|
|
2384
|
-
minVersion?:
|
|
2754
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2385
2755
|
cipherList?: string | undefined;
|
|
2386
2756
|
} | undefined;
|
|
2387
2757
|
};
|
|
@@ -2397,16 +2767,16 @@ export declare const PLUGINS: {
|
|
|
2397
2767
|
requireClientCerts?: boolean | undefined;
|
|
2398
2768
|
trustBrowserCas?: boolean | undefined;
|
|
2399
2769
|
trustedCertificates?: string[] | undefined;
|
|
2400
|
-
minVersion?:
|
|
2770
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2401
2771
|
cipherList?: string | undefined;
|
|
2402
2772
|
} | undefined;
|
|
2403
2773
|
};
|
|
2404
2774
|
}>, z.ZodObject<{
|
|
2405
|
-
external: z.ZodType<
|
|
2775
|
+
external: z.ZodType<ExternalServer_3, z.ZodTypeDef, ExternalServer_3>;
|
|
2406
2776
|
}, "strip", z.ZodTypeAny, {
|
|
2407
|
-
external:
|
|
2777
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2408
2778
|
}, {
|
|
2409
|
-
external:
|
|
2779
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2410
2780
|
}>, z.ZodObject<{
|
|
2411
2781
|
disk: z.ZodObject<{
|
|
2412
2782
|
path: z.ZodString;
|
|
@@ -2428,7 +2798,7 @@ export declare const PLUGINS: {
|
|
|
2428
2798
|
path: string;
|
|
2429
2799
|
writable?: boolean | undefined;
|
|
2430
2800
|
};
|
|
2431
|
-
}>, z.ZodType<(request:
|
|
2801
|
+
}>, z.ZodType<(request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>, z.ZodTypeDef, (request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>>]>>;
|
|
2432
2802
|
fetchMock: z.ZodOptional<z.ZodType<MockAgent<MockAgent>, z.ZodTypeDef, MockAgent<MockAgent>>>;
|
|
2433
2803
|
unsafeEphemeralDurableObjects: z.ZodOptional<z.ZodBoolean>;
|
|
2434
2804
|
unsafeDirectSockets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2450,18 +2820,21 @@ export declare const PLUGINS: {
|
|
|
2450
2820
|
unsafeEvalBinding: z.ZodOptional<z.ZodString>;
|
|
2451
2821
|
unsafeUseModuleFallbackService: z.ZodOptional<z.ZodBoolean>;
|
|
2452
2822
|
hasAssetsAndIsVitest: z.ZodOptional<z.ZodBoolean>;
|
|
2823
|
+
unsafeEnableAssetsRpc: z.ZodOptional<z.ZodBoolean>;
|
|
2824
|
+
stripCfConnectingIp: z.ZodDefault<z.ZodBoolean>;
|
|
2453
2825
|
}, "strip", z.ZodTypeAny, {
|
|
2826
|
+
stripCfConnectingIp: boolean;
|
|
2454
2827
|
name?: string | undefined;
|
|
2455
2828
|
rootPath?: undefined;
|
|
2456
2829
|
compatibilityDate?: string | undefined;
|
|
2457
2830
|
compatibilityFlags?: string[] | undefined;
|
|
2458
2831
|
routes?: string[] | undefined;
|
|
2459
|
-
bindings?: Record<string,
|
|
2460
|
-
wasmBindings?: Record<string, string | Uint8Array
|
|
2832
|
+
bindings?: Record<string, Json_2> | undefined;
|
|
2833
|
+
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
2461
2834
|
textBlobBindings?: Record<string, string> | undefined;
|
|
2462
|
-
dataBlobBindings?: Record<string, string | Uint8Array
|
|
2463
|
-
serviceBindings?: Record<string, string |
|
|
2464
|
-
name: string |
|
|
2835
|
+
dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
2836
|
+
serviceBindings?: Record<string, string | kCurrentWorker_2 | {
|
|
2837
|
+
name: string | kCurrentWorker_2;
|
|
2465
2838
|
entrypoint?: string | undefined;
|
|
2466
2839
|
} | {
|
|
2467
2840
|
network: {
|
|
@@ -2475,25 +2848,25 @@ export declare const PLUGINS: {
|
|
|
2475
2848
|
requireClientCerts?: boolean | undefined;
|
|
2476
2849
|
trustBrowserCas?: boolean | undefined;
|
|
2477
2850
|
trustedCertificates?: string[] | undefined;
|
|
2478
|
-
minVersion?:
|
|
2851
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2479
2852
|
cipherList?: string | undefined;
|
|
2480
2853
|
} | undefined;
|
|
2481
2854
|
};
|
|
2482
2855
|
} | {
|
|
2483
|
-
external:
|
|
2856
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2484
2857
|
} | {
|
|
2485
2858
|
disk: {
|
|
2486
2859
|
path: string;
|
|
2487
2860
|
writable?: boolean | undefined;
|
|
2488
2861
|
};
|
|
2489
|
-
} | ((request:
|
|
2862
|
+
} | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>)> | undefined;
|
|
2490
2863
|
wrappedBindings?: Record<string, string | {
|
|
2491
2864
|
scriptName: string;
|
|
2492
2865
|
entrypoint?: string | undefined;
|
|
2493
|
-
bindings?: Record<string,
|
|
2866
|
+
bindings?: Record<string, Json_2> | undefined;
|
|
2494
2867
|
}> | undefined;
|
|
2495
|
-
outboundService?: string |
|
|
2496
|
-
name: string |
|
|
2868
|
+
outboundService?: string | kCurrentWorker_2 | {
|
|
2869
|
+
name: string | kCurrentWorker_2;
|
|
2497
2870
|
entrypoint?: string | undefined;
|
|
2498
2871
|
} | {
|
|
2499
2872
|
network: {
|
|
@@ -2507,18 +2880,18 @@ export declare const PLUGINS: {
|
|
|
2507
2880
|
requireClientCerts?: boolean | undefined;
|
|
2508
2881
|
trustBrowserCas?: boolean | undefined;
|
|
2509
2882
|
trustedCertificates?: string[] | undefined;
|
|
2510
|
-
minVersion?:
|
|
2883
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2511
2884
|
cipherList?: string | undefined;
|
|
2512
2885
|
} | undefined;
|
|
2513
2886
|
};
|
|
2514
2887
|
} | {
|
|
2515
|
-
external:
|
|
2888
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2516
2889
|
} | {
|
|
2517
2890
|
disk: {
|
|
2518
2891
|
path: string;
|
|
2519
2892
|
writable?: boolean | undefined;
|
|
2520
2893
|
};
|
|
2521
|
-
} | ((request:
|
|
2894
|
+
} | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
|
|
2522
2895
|
fetchMock?: MockAgent<MockAgent> | undefined;
|
|
2523
2896
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
2524
2897
|
unsafeDirectSockets?: {
|
|
@@ -2530,18 +2903,19 @@ export declare const PLUGINS: {
|
|
|
2530
2903
|
unsafeEvalBinding?: string | undefined;
|
|
2531
2904
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
2532
2905
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
2906
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
2533
2907
|
}, {
|
|
2534
2908
|
name?: string | undefined;
|
|
2535
2909
|
rootPath?: string | undefined;
|
|
2536
2910
|
compatibilityDate?: string | undefined;
|
|
2537
2911
|
compatibilityFlags?: string[] | undefined;
|
|
2538
2912
|
routes?: string[] | undefined;
|
|
2539
|
-
bindings?: Record<string,
|
|
2540
|
-
wasmBindings?: Record<string, string | Uint8Array
|
|
2913
|
+
bindings?: Record<string, Json_2> | undefined;
|
|
2914
|
+
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
2541
2915
|
textBlobBindings?: Record<string, string> | undefined;
|
|
2542
|
-
dataBlobBindings?: Record<string, string | Uint8Array
|
|
2543
|
-
serviceBindings?: Record<string, string |
|
|
2544
|
-
name: string |
|
|
2916
|
+
dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
2917
|
+
serviceBindings?: Record<string, string | kCurrentWorker_2 | {
|
|
2918
|
+
name: string | kCurrentWorker_2;
|
|
2545
2919
|
entrypoint?: string | undefined;
|
|
2546
2920
|
} | {
|
|
2547
2921
|
network: {
|
|
@@ -2555,25 +2929,25 @@ export declare const PLUGINS: {
|
|
|
2555
2929
|
requireClientCerts?: boolean | undefined;
|
|
2556
2930
|
trustBrowserCas?: boolean | undefined;
|
|
2557
2931
|
trustedCertificates?: string[] | undefined;
|
|
2558
|
-
minVersion?:
|
|
2932
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2559
2933
|
cipherList?: string | undefined;
|
|
2560
2934
|
} | undefined;
|
|
2561
2935
|
};
|
|
2562
2936
|
} | {
|
|
2563
|
-
external:
|
|
2937
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2564
2938
|
} | {
|
|
2565
2939
|
disk: {
|
|
2566
2940
|
path: string;
|
|
2567
2941
|
writable?: boolean | undefined;
|
|
2568
2942
|
};
|
|
2569
|
-
} | ((request:
|
|
2943
|
+
} | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>)> | undefined;
|
|
2570
2944
|
wrappedBindings?: Record<string, string | {
|
|
2571
2945
|
scriptName: string;
|
|
2572
2946
|
entrypoint?: string | undefined;
|
|
2573
|
-
bindings?: Record<string,
|
|
2947
|
+
bindings?: Record<string, Json_2> | undefined;
|
|
2574
2948
|
}> | undefined;
|
|
2575
|
-
outboundService?: string |
|
|
2576
|
-
name: string |
|
|
2949
|
+
outboundService?: string | kCurrentWorker_2 | {
|
|
2950
|
+
name: string | kCurrentWorker_2;
|
|
2577
2951
|
entrypoint?: string | undefined;
|
|
2578
2952
|
} | {
|
|
2579
2953
|
network: {
|
|
@@ -2587,18 +2961,18 @@ export declare const PLUGINS: {
|
|
|
2587
2961
|
requireClientCerts?: boolean | undefined;
|
|
2588
2962
|
trustBrowserCas?: boolean | undefined;
|
|
2589
2963
|
trustedCertificates?: string[] | undefined;
|
|
2590
|
-
minVersion?:
|
|
2964
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2591
2965
|
cipherList?: string | undefined;
|
|
2592
2966
|
} | undefined;
|
|
2593
2967
|
};
|
|
2594
2968
|
} | {
|
|
2595
|
-
external:
|
|
2969
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2596
2970
|
} | {
|
|
2597
2971
|
disk: {
|
|
2598
2972
|
path: string;
|
|
2599
2973
|
writable?: boolean | undefined;
|
|
2600
2974
|
};
|
|
2601
|
-
} | ((request:
|
|
2975
|
+
} | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
|
|
2602
2976
|
fetchMock?: MockAgent<MockAgent> | undefined;
|
|
2603
2977
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
2604
2978
|
unsafeDirectSockets?: {
|
|
@@ -2610,25 +2984,28 @@ export declare const PLUGINS: {
|
|
|
2610
2984
|
unsafeEvalBinding?: string | undefined;
|
|
2611
2985
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
2612
2986
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
2987
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
2988
|
+
stripCfConnectingIp?: boolean | undefined;
|
|
2613
2989
|
}>>, ({
|
|
2614
2990
|
modules: {
|
|
2615
|
-
type: "ESModule" | "CommonJS" | "
|
|
2991
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2616
2992
|
path: string;
|
|
2617
|
-
contents?: string | Uint8Array | undefined;
|
|
2993
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
2618
2994
|
}[];
|
|
2619
2995
|
modulesRoot?: string | undefined;
|
|
2620
2996
|
} & {
|
|
2997
|
+
stripCfConnectingIp: boolean;
|
|
2621
2998
|
name?: string | undefined;
|
|
2622
2999
|
rootPath?: undefined;
|
|
2623
3000
|
compatibilityDate?: string | undefined;
|
|
2624
3001
|
compatibilityFlags?: string[] | undefined;
|
|
2625
3002
|
routes?: string[] | undefined;
|
|
2626
|
-
bindings?: Record<string,
|
|
2627
|
-
wasmBindings?: Record<string, string | Uint8Array
|
|
3003
|
+
bindings?: Record<string, Json_2> | undefined;
|
|
3004
|
+
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
2628
3005
|
textBlobBindings?: Record<string, string> | undefined;
|
|
2629
|
-
dataBlobBindings?: Record<string, string | Uint8Array
|
|
2630
|
-
serviceBindings?: Record<string, string |
|
|
2631
|
-
name: string |
|
|
3006
|
+
dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
3007
|
+
serviceBindings?: Record<string, string | kCurrentWorker_2 | {
|
|
3008
|
+
name: string | kCurrentWorker_2;
|
|
2632
3009
|
entrypoint?: string | undefined;
|
|
2633
3010
|
} | {
|
|
2634
3011
|
network: {
|
|
@@ -2642,25 +3019,25 @@ export declare const PLUGINS: {
|
|
|
2642
3019
|
requireClientCerts?: boolean | undefined;
|
|
2643
3020
|
trustBrowserCas?: boolean | undefined;
|
|
2644
3021
|
trustedCertificates?: string[] | undefined;
|
|
2645
|
-
minVersion?:
|
|
3022
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2646
3023
|
cipherList?: string | undefined;
|
|
2647
3024
|
} | undefined;
|
|
2648
3025
|
};
|
|
2649
3026
|
} | {
|
|
2650
|
-
external:
|
|
3027
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2651
3028
|
} | {
|
|
2652
3029
|
disk: {
|
|
2653
3030
|
path: string;
|
|
2654
3031
|
writable?: boolean | undefined;
|
|
2655
3032
|
};
|
|
2656
|
-
} | ((request:
|
|
3033
|
+
} | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>)> | undefined;
|
|
2657
3034
|
wrappedBindings?: Record<string, string | {
|
|
2658
3035
|
scriptName: string;
|
|
2659
3036
|
entrypoint?: string | undefined;
|
|
2660
|
-
bindings?: Record<string,
|
|
3037
|
+
bindings?: Record<string, Json_2> | undefined;
|
|
2661
3038
|
}> | undefined;
|
|
2662
|
-
outboundService?: string |
|
|
2663
|
-
name: string |
|
|
3039
|
+
outboundService?: string | kCurrentWorker_2 | {
|
|
3040
|
+
name: string | kCurrentWorker_2;
|
|
2664
3041
|
entrypoint?: string | undefined;
|
|
2665
3042
|
} | {
|
|
2666
3043
|
network: {
|
|
@@ -2674,18 +3051,18 @@ export declare const PLUGINS: {
|
|
|
2674
3051
|
requireClientCerts?: boolean | undefined;
|
|
2675
3052
|
trustBrowserCas?: boolean | undefined;
|
|
2676
3053
|
trustedCertificates?: string[] | undefined;
|
|
2677
|
-
minVersion?:
|
|
3054
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2678
3055
|
cipherList?: string | undefined;
|
|
2679
3056
|
} | undefined;
|
|
2680
3057
|
};
|
|
2681
3058
|
} | {
|
|
2682
|
-
external:
|
|
3059
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2683
3060
|
} | {
|
|
2684
3061
|
disk: {
|
|
2685
3062
|
path: string;
|
|
2686
3063
|
writable?: boolean | undefined;
|
|
2687
3064
|
};
|
|
2688
|
-
} | ((request:
|
|
3065
|
+
} | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
|
|
2689
3066
|
fetchMock?: MockAgent<MockAgent> | undefined;
|
|
2690
3067
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
2691
3068
|
unsafeDirectSockets?: {
|
|
@@ -2697,28 +3074,30 @@ export declare const PLUGINS: {
|
|
|
2697
3074
|
unsafeEvalBinding?: string | undefined;
|
|
2698
3075
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
2699
3076
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
3077
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
2700
3078
|
}) | ({
|
|
2701
3079
|
script: string;
|
|
2702
3080
|
scriptPath?: string | undefined;
|
|
2703
3081
|
modules?: boolean | undefined;
|
|
2704
3082
|
modulesRules?: {
|
|
2705
|
-
type: "ESModule" | "CommonJS" | "
|
|
3083
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2706
3084
|
include: string[];
|
|
2707
3085
|
fallthrough?: boolean | undefined;
|
|
2708
3086
|
}[] | undefined;
|
|
2709
3087
|
modulesRoot?: string | undefined;
|
|
2710
3088
|
} & {
|
|
3089
|
+
stripCfConnectingIp: boolean;
|
|
2711
3090
|
name?: string | undefined;
|
|
2712
3091
|
rootPath?: undefined;
|
|
2713
3092
|
compatibilityDate?: string | undefined;
|
|
2714
3093
|
compatibilityFlags?: string[] | undefined;
|
|
2715
3094
|
routes?: string[] | undefined;
|
|
2716
|
-
bindings?: Record<string,
|
|
2717
|
-
wasmBindings?: Record<string, string | Uint8Array
|
|
3095
|
+
bindings?: Record<string, Json_2> | undefined;
|
|
3096
|
+
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
2718
3097
|
textBlobBindings?: Record<string, string> | undefined;
|
|
2719
|
-
dataBlobBindings?: Record<string, string | Uint8Array
|
|
2720
|
-
serviceBindings?: Record<string, string |
|
|
2721
|
-
name: string |
|
|
3098
|
+
dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
3099
|
+
serviceBindings?: Record<string, string | kCurrentWorker_2 | {
|
|
3100
|
+
name: string | kCurrentWorker_2;
|
|
2722
3101
|
entrypoint?: string | undefined;
|
|
2723
3102
|
} | {
|
|
2724
3103
|
network: {
|
|
@@ -2732,25 +3111,25 @@ export declare const PLUGINS: {
|
|
|
2732
3111
|
requireClientCerts?: boolean | undefined;
|
|
2733
3112
|
trustBrowserCas?: boolean | undefined;
|
|
2734
3113
|
trustedCertificates?: string[] | undefined;
|
|
2735
|
-
minVersion?:
|
|
3114
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2736
3115
|
cipherList?: string | undefined;
|
|
2737
3116
|
} | undefined;
|
|
2738
3117
|
};
|
|
2739
3118
|
} | {
|
|
2740
|
-
external:
|
|
3119
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2741
3120
|
} | {
|
|
2742
3121
|
disk: {
|
|
2743
3122
|
path: string;
|
|
2744
3123
|
writable?: boolean | undefined;
|
|
2745
3124
|
};
|
|
2746
|
-
} | ((request:
|
|
3125
|
+
} | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>)> | undefined;
|
|
2747
3126
|
wrappedBindings?: Record<string, string | {
|
|
2748
3127
|
scriptName: string;
|
|
2749
3128
|
entrypoint?: string | undefined;
|
|
2750
|
-
bindings?: Record<string,
|
|
3129
|
+
bindings?: Record<string, Json_2> | undefined;
|
|
2751
3130
|
}> | undefined;
|
|
2752
|
-
outboundService?: string |
|
|
2753
|
-
name: string |
|
|
3131
|
+
outboundService?: string | kCurrentWorker_2 | {
|
|
3132
|
+
name: string | kCurrentWorker_2;
|
|
2754
3133
|
entrypoint?: string | undefined;
|
|
2755
3134
|
} | {
|
|
2756
3135
|
network: {
|
|
@@ -2764,18 +3143,18 @@ export declare const PLUGINS: {
|
|
|
2764
3143
|
requireClientCerts?: boolean | undefined;
|
|
2765
3144
|
trustBrowserCas?: boolean | undefined;
|
|
2766
3145
|
trustedCertificates?: string[] | undefined;
|
|
2767
|
-
minVersion?:
|
|
3146
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2768
3147
|
cipherList?: string | undefined;
|
|
2769
3148
|
} | undefined;
|
|
2770
3149
|
};
|
|
2771
3150
|
} | {
|
|
2772
|
-
external:
|
|
3151
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2773
3152
|
} | {
|
|
2774
3153
|
disk: {
|
|
2775
3154
|
path: string;
|
|
2776
3155
|
writable?: boolean | undefined;
|
|
2777
3156
|
};
|
|
2778
|
-
} | ((request:
|
|
3157
|
+
} | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
|
|
2779
3158
|
fetchMock?: MockAgent<MockAgent> | undefined;
|
|
2780
3159
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
2781
3160
|
unsafeDirectSockets?: {
|
|
@@ -2787,27 +3166,29 @@ export declare const PLUGINS: {
|
|
|
2787
3166
|
unsafeEvalBinding?: string | undefined;
|
|
2788
3167
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
2789
3168
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
3169
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
2790
3170
|
}) | ({
|
|
2791
3171
|
scriptPath: string;
|
|
2792
3172
|
modules?: boolean | undefined;
|
|
2793
3173
|
modulesRules?: {
|
|
2794
|
-
type: "ESModule" | "CommonJS" | "
|
|
3174
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2795
3175
|
include: string[];
|
|
2796
3176
|
fallthrough?: boolean | undefined;
|
|
2797
3177
|
}[] | undefined;
|
|
2798
3178
|
modulesRoot?: string | undefined;
|
|
2799
3179
|
} & {
|
|
3180
|
+
stripCfConnectingIp: boolean;
|
|
2800
3181
|
name?: string | undefined;
|
|
2801
3182
|
rootPath?: undefined;
|
|
2802
3183
|
compatibilityDate?: string | undefined;
|
|
2803
3184
|
compatibilityFlags?: string[] | undefined;
|
|
2804
3185
|
routes?: string[] | undefined;
|
|
2805
|
-
bindings?: Record<string,
|
|
2806
|
-
wasmBindings?: Record<string, string | Uint8Array
|
|
3186
|
+
bindings?: Record<string, Json_2> | undefined;
|
|
3187
|
+
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
2807
3188
|
textBlobBindings?: Record<string, string> | undefined;
|
|
2808
|
-
dataBlobBindings?: Record<string, string | Uint8Array
|
|
2809
|
-
serviceBindings?: Record<string, string |
|
|
2810
|
-
name: string |
|
|
3189
|
+
dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
3190
|
+
serviceBindings?: Record<string, string | kCurrentWorker_2 | {
|
|
3191
|
+
name: string | kCurrentWorker_2;
|
|
2811
3192
|
entrypoint?: string | undefined;
|
|
2812
3193
|
} | {
|
|
2813
3194
|
network: {
|
|
@@ -2821,25 +3202,25 @@ export declare const PLUGINS: {
|
|
|
2821
3202
|
requireClientCerts?: boolean | undefined;
|
|
2822
3203
|
trustBrowserCas?: boolean | undefined;
|
|
2823
3204
|
trustedCertificates?: string[] | undefined;
|
|
2824
|
-
minVersion?:
|
|
3205
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2825
3206
|
cipherList?: string | undefined;
|
|
2826
3207
|
} | undefined;
|
|
2827
3208
|
};
|
|
2828
3209
|
} | {
|
|
2829
|
-
external:
|
|
3210
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2830
3211
|
} | {
|
|
2831
3212
|
disk: {
|
|
2832
3213
|
path: string;
|
|
2833
3214
|
writable?: boolean | undefined;
|
|
2834
3215
|
};
|
|
2835
|
-
} | ((request:
|
|
3216
|
+
} | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>)> | undefined;
|
|
2836
3217
|
wrappedBindings?: Record<string, string | {
|
|
2837
3218
|
scriptName: string;
|
|
2838
3219
|
entrypoint?: string | undefined;
|
|
2839
|
-
bindings?: Record<string,
|
|
3220
|
+
bindings?: Record<string, Json_2> | undefined;
|
|
2840
3221
|
}> | undefined;
|
|
2841
|
-
outboundService?: string |
|
|
2842
|
-
name: string |
|
|
3222
|
+
outboundService?: string | kCurrentWorker_2 | {
|
|
3223
|
+
name: string | kCurrentWorker_2;
|
|
2843
3224
|
entrypoint?: string | undefined;
|
|
2844
3225
|
} | {
|
|
2845
3226
|
network: {
|
|
@@ -2853,18 +3234,18 @@ export declare const PLUGINS: {
|
|
|
2853
3234
|
requireClientCerts?: boolean | undefined;
|
|
2854
3235
|
trustBrowserCas?: boolean | undefined;
|
|
2855
3236
|
trustedCertificates?: string[] | undefined;
|
|
2856
|
-
minVersion?:
|
|
3237
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2857
3238
|
cipherList?: string | undefined;
|
|
2858
3239
|
} | undefined;
|
|
2859
3240
|
};
|
|
2860
3241
|
} | {
|
|
2861
|
-
external:
|
|
3242
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2862
3243
|
} | {
|
|
2863
3244
|
disk: {
|
|
2864
3245
|
path: string;
|
|
2865
3246
|
writable?: boolean | undefined;
|
|
2866
3247
|
};
|
|
2867
|
-
} | ((request:
|
|
3248
|
+
} | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
|
|
2868
3249
|
fetchMock?: MockAgent<MockAgent> | undefined;
|
|
2869
3250
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
2870
3251
|
unsafeDirectSockets?: {
|
|
@@ -2876,11 +3257,12 @@ export declare const PLUGINS: {
|
|
|
2876
3257
|
unsafeEvalBinding?: string | undefined;
|
|
2877
3258
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
2878
3259
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
3260
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
2879
3261
|
}), ({
|
|
2880
3262
|
modules: {
|
|
2881
|
-
type: "ESModule" | "CommonJS" | "
|
|
3263
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2882
3264
|
path: string;
|
|
2883
|
-
contents?: string | Uint8Array | undefined;
|
|
3265
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
2884
3266
|
}[];
|
|
2885
3267
|
modulesRoot?: string | undefined;
|
|
2886
3268
|
} | {
|
|
@@ -2888,7 +3270,7 @@ export declare const PLUGINS: {
|
|
|
2888
3270
|
scriptPath?: string | undefined;
|
|
2889
3271
|
modules?: boolean | undefined;
|
|
2890
3272
|
modulesRules?: {
|
|
2891
|
-
type: "ESModule" | "CommonJS" | "
|
|
3273
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2892
3274
|
include: string[];
|
|
2893
3275
|
fallthrough?: boolean | undefined;
|
|
2894
3276
|
}[] | undefined;
|
|
@@ -2897,7 +3279,7 @@ export declare const PLUGINS: {
|
|
|
2897
3279
|
scriptPath: string;
|
|
2898
3280
|
modules?: boolean | undefined;
|
|
2899
3281
|
modulesRules?: {
|
|
2900
|
-
type: "ESModule" | "CommonJS" | "
|
|
3282
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
2901
3283
|
include: string[];
|
|
2902
3284
|
fallthrough?: boolean | undefined;
|
|
2903
3285
|
}[] | undefined;
|
|
@@ -2908,12 +3290,12 @@ export declare const PLUGINS: {
|
|
|
2908
3290
|
compatibilityDate?: string | undefined;
|
|
2909
3291
|
compatibilityFlags?: string[] | undefined;
|
|
2910
3292
|
routes?: string[] | undefined;
|
|
2911
|
-
bindings?: Record<string,
|
|
2912
|
-
wasmBindings?: Record<string, string | Uint8Array
|
|
3293
|
+
bindings?: Record<string, Json_2> | undefined;
|
|
3294
|
+
wasmBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
2913
3295
|
textBlobBindings?: Record<string, string> | undefined;
|
|
2914
|
-
dataBlobBindings?: Record<string, string | Uint8Array
|
|
2915
|
-
serviceBindings?: Record<string, string |
|
|
2916
|
-
name: string |
|
|
3296
|
+
dataBlobBindings?: Record<string, string | Uint8Array<ArrayBuffer>> | undefined;
|
|
3297
|
+
serviceBindings?: Record<string, string | kCurrentWorker_2 | {
|
|
3298
|
+
name: string | kCurrentWorker_2;
|
|
2917
3299
|
entrypoint?: string | undefined;
|
|
2918
3300
|
} | {
|
|
2919
3301
|
network: {
|
|
@@ -2927,25 +3309,25 @@ export declare const PLUGINS: {
|
|
|
2927
3309
|
requireClientCerts?: boolean | undefined;
|
|
2928
3310
|
trustBrowserCas?: boolean | undefined;
|
|
2929
3311
|
trustedCertificates?: string[] | undefined;
|
|
2930
|
-
minVersion?:
|
|
3312
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2931
3313
|
cipherList?: string | undefined;
|
|
2932
3314
|
} | undefined;
|
|
2933
3315
|
};
|
|
2934
3316
|
} | {
|
|
2935
|
-
external:
|
|
3317
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2936
3318
|
} | {
|
|
2937
3319
|
disk: {
|
|
2938
3320
|
path: string;
|
|
2939
3321
|
writable?: boolean | undefined;
|
|
2940
3322
|
};
|
|
2941
|
-
} | ((request:
|
|
3323
|
+
} | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>)> | undefined;
|
|
2942
3324
|
wrappedBindings?: Record<string, string | {
|
|
2943
3325
|
scriptName: string;
|
|
2944
3326
|
entrypoint?: string | undefined;
|
|
2945
|
-
bindings?: Record<string,
|
|
3327
|
+
bindings?: Record<string, Json_2> | undefined;
|
|
2946
3328
|
}> | undefined;
|
|
2947
|
-
outboundService?: string |
|
|
2948
|
-
name: string |
|
|
3329
|
+
outboundService?: string | kCurrentWorker_2 | {
|
|
3330
|
+
name: string | kCurrentWorker_2;
|
|
2949
3331
|
entrypoint?: string | undefined;
|
|
2950
3332
|
} | {
|
|
2951
3333
|
network: {
|
|
@@ -2959,18 +3341,18 @@ export declare const PLUGINS: {
|
|
|
2959
3341
|
requireClientCerts?: boolean | undefined;
|
|
2960
3342
|
trustBrowserCas?: boolean | undefined;
|
|
2961
3343
|
trustedCertificates?: string[] | undefined;
|
|
2962
|
-
minVersion?:
|
|
3344
|
+
minVersion?: 0 | 2 | 1 | 3 | 4 | 5 | undefined;
|
|
2963
3345
|
cipherList?: string | undefined;
|
|
2964
3346
|
} | undefined;
|
|
2965
3347
|
};
|
|
2966
3348
|
} | {
|
|
2967
|
-
external:
|
|
3349
|
+
external: ExternalServer_3 & (ExternalServer_3 | undefined);
|
|
2968
3350
|
} | {
|
|
2969
3351
|
disk: {
|
|
2970
3352
|
path: string;
|
|
2971
3353
|
writable?: boolean | undefined;
|
|
2972
3354
|
};
|
|
2973
|
-
} | ((request:
|
|
3355
|
+
} | ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
|
|
2974
3356
|
fetchMock?: MockAgent<MockAgent> | undefined;
|
|
2975
3357
|
unsafeEphemeralDurableObjects?: boolean | undefined;
|
|
2976
3358
|
unsafeDirectSockets?: {
|
|
@@ -2982,6 +3364,8 @@ export declare const PLUGINS: {
|
|
|
2982
3364
|
unsafeEvalBinding?: string | undefined;
|
|
2983
3365
|
unsafeUseModuleFallbackService?: boolean | undefined;
|
|
2984
3366
|
hasAssetsAndIsVitest?: boolean | undefined;
|
|
3367
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
3368
|
+
stripCfConnectingIp?: boolean | undefined;
|
|
2985
3369
|
}>, z.ZodObject<{
|
|
2986
3370
|
rootPath: z.ZodOptional<z.ZodEffects<z.ZodString, undefined, string>>;
|
|
2987
3371
|
host: z.ZodOptional<z.ZodString>;
|
|
@@ -2993,14 +3377,15 @@ export declare const PLUGINS: {
|
|
|
2993
3377
|
httpsCertPath: z.ZodOptional<z.ZodString>;
|
|
2994
3378
|
inspectorPort: z.ZodOptional<z.ZodNumber>;
|
|
2995
3379
|
verbose: z.ZodOptional<z.ZodBoolean>;
|
|
2996
|
-
log: z.ZodOptional<z.ZodType<
|
|
3380
|
+
log: z.ZodOptional<z.ZodType<Log_2, z.ZodTypeDef, Log_2>>;
|
|
2997
3381
|
handleRuntimeStdio: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodType<Readable, z.ZodTypeDef, Readable>, z.ZodType<Readable, z.ZodTypeDef, Readable>], null>, z.ZodUnknown>>;
|
|
2998
3382
|
upstream: z.ZodOptional<z.ZodString>;
|
|
2999
3383
|
cf: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>>;
|
|
3000
3384
|
liveReload: z.ZodOptional<z.ZodBoolean>;
|
|
3001
3385
|
unsafeProxySharedSecret: z.ZodOptional<z.ZodString>;
|
|
3002
|
-
unsafeModuleFallbackService: z.ZodOptional<z.ZodType<(request:
|
|
3386
|
+
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>>>;
|
|
3003
3387
|
unsafeStickyBlobs: z.ZodOptional<z.ZodBoolean>;
|
|
3388
|
+
unsafeEnableAssetsRpc: z.ZodOptional<z.ZodBoolean>;
|
|
3004
3389
|
}, "strip", z.ZodTypeAny, {
|
|
3005
3390
|
rootPath?: undefined;
|
|
3006
3391
|
host?: string | undefined;
|
|
@@ -3012,14 +3397,15 @@ export declare const PLUGINS: {
|
|
|
3012
3397
|
httpsCertPath?: string | undefined;
|
|
3013
3398
|
inspectorPort?: number | undefined;
|
|
3014
3399
|
verbose?: boolean | undefined;
|
|
3015
|
-
log?:
|
|
3400
|
+
log?: Log_2 | undefined;
|
|
3016
3401
|
handleRuntimeStdio?: ((args_0: Readable, args_1: Readable) => unknown) | undefined;
|
|
3017
3402
|
upstream?: string | undefined;
|
|
3018
3403
|
cf?: string | boolean | Record<string, any> | undefined;
|
|
3019
3404
|
liveReload?: boolean | undefined;
|
|
3020
3405
|
unsafeProxySharedSecret?: string | undefined;
|
|
3021
|
-
unsafeModuleFallbackService?: ((request:
|
|
3406
|
+
unsafeModuleFallbackService?: ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
|
|
3022
3407
|
unsafeStickyBlobs?: boolean | undefined;
|
|
3408
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
3023
3409
|
}, {
|
|
3024
3410
|
rootPath?: string | undefined;
|
|
3025
3411
|
host?: string | undefined;
|
|
@@ -3031,16 +3417,17 @@ export declare const PLUGINS: {
|
|
|
3031
3417
|
httpsCertPath?: string | undefined;
|
|
3032
3418
|
inspectorPort?: number | undefined;
|
|
3033
3419
|
verbose?: boolean | undefined;
|
|
3034
|
-
log?:
|
|
3420
|
+
log?: Log_2 | undefined;
|
|
3035
3421
|
handleRuntimeStdio?: ((args_0: Readable, args_1: Readable) => unknown) | undefined;
|
|
3036
3422
|
upstream?: string | undefined;
|
|
3037
3423
|
cf?: string | boolean | Record<string, any> | undefined;
|
|
3038
3424
|
liveReload?: boolean | undefined;
|
|
3039
3425
|
unsafeProxySharedSecret?: string | undefined;
|
|
3040
|
-
unsafeModuleFallbackService?: ((request:
|
|
3426
|
+
unsafeModuleFallbackService?: ((request: Request_6, mf: Miniflare_3) => Awaitable_2<Response_6>) | undefined;
|
|
3041
3427
|
unsafeStickyBlobs?: boolean | undefined;
|
|
3428
|
+
unsafeEnableAssetsRpc?: boolean | undefined;
|
|
3042
3429
|
}>>;
|
|
3043
|
-
cache:
|
|
3430
|
+
cache: Plugin_2<z.ZodObject<{
|
|
3044
3431
|
cache: z.ZodOptional<z.ZodBoolean>;
|
|
3045
3432
|
cacheWarnUsage: z.ZodOptional<z.ZodBoolean>;
|
|
3046
3433
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3056,7 +3443,7 @@ export declare const PLUGINS: {
|
|
|
3056
3443
|
}, {
|
|
3057
3444
|
cachePersist?: string | boolean | undefined;
|
|
3058
3445
|
}>>;
|
|
3059
|
-
d1:
|
|
3446
|
+
d1: Plugin_2<z.ZodObject<{
|
|
3060
3447
|
d1Databases: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodString, "many">]>>;
|
|
3061
3448
|
}, "strip", z.ZodTypeAny, {
|
|
3062
3449
|
d1Databases?: string[] | Record<string, string> | undefined;
|
|
@@ -3069,24 +3456,24 @@ export declare const PLUGINS: {
|
|
|
3069
3456
|
}, {
|
|
3070
3457
|
d1Persist?: string | boolean | undefined;
|
|
3071
3458
|
}>>;
|
|
3072
|
-
do:
|
|
3459
|
+
do: Plugin_2<z.ZodObject<{
|
|
3073
3460
|
durableObjects: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
3074
3461
|
className: z.ZodString;
|
|
3075
3462
|
scriptName: z.ZodOptional<z.ZodString>;
|
|
3076
3463
|
useSQLite: z.ZodOptional<z.ZodBoolean>;
|
|
3077
|
-
unsafeUniqueKey: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<
|
|
3464
|
+
unsafeUniqueKey: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<kUnsafeEphemeralUniqueKey_2>]>>;
|
|
3078
3465
|
unsafePreventEviction: z.ZodOptional<z.ZodBoolean>;
|
|
3079
3466
|
}, "strip", z.ZodTypeAny, {
|
|
3080
3467
|
className: string;
|
|
3081
3468
|
scriptName?: string | undefined;
|
|
3082
3469
|
useSQLite?: boolean | undefined;
|
|
3083
|
-
unsafeUniqueKey?: string |
|
|
3470
|
+
unsafeUniqueKey?: string | kUnsafeEphemeralUniqueKey_2 | undefined;
|
|
3084
3471
|
unsafePreventEviction?: boolean | undefined;
|
|
3085
3472
|
}, {
|
|
3086
3473
|
className: string;
|
|
3087
3474
|
scriptName?: string | undefined;
|
|
3088
3475
|
useSQLite?: boolean | undefined;
|
|
3089
|
-
unsafeUniqueKey?: string |
|
|
3476
|
+
unsafeUniqueKey?: string | kUnsafeEphemeralUniqueKey_2 | undefined;
|
|
3090
3477
|
unsafePreventEviction?: boolean | undefined;
|
|
3091
3478
|
}>]>>>;
|
|
3092
3479
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3094,7 +3481,7 @@ export declare const PLUGINS: {
|
|
|
3094
3481
|
className: string;
|
|
3095
3482
|
scriptName?: string | undefined;
|
|
3096
3483
|
useSQLite?: boolean | undefined;
|
|
3097
|
-
unsafeUniqueKey?: string |
|
|
3484
|
+
unsafeUniqueKey?: string | kUnsafeEphemeralUniqueKey_2 | undefined;
|
|
3098
3485
|
unsafePreventEviction?: boolean | undefined;
|
|
3099
3486
|
}> | undefined;
|
|
3100
3487
|
}, {
|
|
@@ -3102,7 +3489,7 @@ export declare const PLUGINS: {
|
|
|
3102
3489
|
className: string;
|
|
3103
3490
|
scriptName?: string | undefined;
|
|
3104
3491
|
useSQLite?: boolean | undefined;
|
|
3105
|
-
unsafeUniqueKey?: string |
|
|
3492
|
+
unsafeUniqueKey?: string | kUnsafeEphemeralUniqueKey_2 | undefined;
|
|
3106
3493
|
unsafePreventEviction?: boolean | undefined;
|
|
3107
3494
|
}> | undefined;
|
|
3108
3495
|
}>, z.ZodObject<{
|
|
@@ -3112,7 +3499,7 @@ export declare const PLUGINS: {
|
|
|
3112
3499
|
}, {
|
|
3113
3500
|
durableObjectsPersist?: string | boolean | undefined;
|
|
3114
3501
|
}>>;
|
|
3115
|
-
kv:
|
|
3502
|
+
kv: Plugin_2<z.ZodObject<{
|
|
3116
3503
|
kvNamespaces: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodString, "many">]>>;
|
|
3117
3504
|
sitePath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
3118
3505
|
siteInclude: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -3134,7 +3521,7 @@ export declare const PLUGINS: {
|
|
|
3134
3521
|
}, {
|
|
3135
3522
|
kvPersist?: string | boolean | undefined;
|
|
3136
3523
|
}>>;
|
|
3137
|
-
queues:
|
|
3524
|
+
queues: Plugin_2<z.ZodObject<{
|
|
3138
3525
|
queueProducers: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3139
3526
|
queueName: z.ZodString;
|
|
3140
3527
|
deliveryDelay: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3208,7 +3595,7 @@ export declare const PLUGINS: {
|
|
|
3208
3595
|
retryDelay?: number | undefined;
|
|
3209
3596
|
}> | undefined;
|
|
3210
3597
|
}>>;
|
|
3211
|
-
r2:
|
|
3598
|
+
r2: Plugin_2<z.ZodObject<{
|
|
3212
3599
|
r2Buckets: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodString, "many">]>>;
|
|
3213
3600
|
}, "strip", z.ZodTypeAny, {
|
|
3214
3601
|
r2Buckets?: string[] | Record<string, string> | undefined;
|
|
@@ -3221,104 +3608,278 @@ export declare const PLUGINS: {
|
|
|
3221
3608
|
}, {
|
|
3222
3609
|
r2Persist?: string | boolean | undefined;
|
|
3223
3610
|
}>>;
|
|
3224
|
-
hyperdrive:
|
|
3611
|
+
hyperdrive: Plugin_2<z.ZodObject<{
|
|
3225
3612
|
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>>>;
|
|
3226
3613
|
}, "strip", z.ZodTypeAny, {
|
|
3227
3614
|
hyperdrives?: Record<string, URL_2> | undefined;
|
|
3228
3615
|
}, {
|
|
3229
3616
|
hyperdrives?: Record<string, string | URL_2> | undefined;
|
|
3230
3617
|
}>>;
|
|
3231
|
-
ratelimit:
|
|
3618
|
+
ratelimit: Plugin_2<z.ZodObject<{
|
|
3232
3619
|
ratelimits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3233
3620
|
simple: z.ZodObject<{
|
|
3234
3621
|
limit: z.ZodNumber;
|
|
3235
|
-
period: z.ZodOptional<z.ZodNativeEnum<
|
|
3622
|
+
period: z.ZodOptional<z.ZodNativeEnum<PeriodType_2>>;
|
|
3236
3623
|
}, "strip", z.ZodTypeAny, {
|
|
3237
3624
|
limit: number;
|
|
3238
|
-
period?:
|
|
3625
|
+
period?: PeriodType_2 | undefined;
|
|
3239
3626
|
}, {
|
|
3240
3627
|
limit: number;
|
|
3241
|
-
period?:
|
|
3628
|
+
period?: PeriodType_2 | undefined;
|
|
3242
3629
|
}>;
|
|
3243
3630
|
}, "strip", z.ZodTypeAny, {
|
|
3244
3631
|
simple: {
|
|
3245
3632
|
limit: number;
|
|
3246
|
-
period?:
|
|
3633
|
+
period?: PeriodType_2 | undefined;
|
|
3247
3634
|
};
|
|
3248
3635
|
}, {
|
|
3249
3636
|
simple: {
|
|
3250
3637
|
limit: number;
|
|
3251
|
-
period?:
|
|
3638
|
+
period?: PeriodType_2 | undefined;
|
|
3252
3639
|
};
|
|
3253
3640
|
}>>>;
|
|
3254
3641
|
}, "strip", z.ZodTypeAny, {
|
|
3255
3642
|
ratelimits?: Record<string, {
|
|
3256
3643
|
simple: {
|
|
3257
3644
|
limit: number;
|
|
3258
|
-
period?:
|
|
3645
|
+
period?: PeriodType_2 | undefined;
|
|
3259
3646
|
};
|
|
3260
3647
|
}> | undefined;
|
|
3261
3648
|
}, {
|
|
3262
3649
|
ratelimits?: Record<string, {
|
|
3263
3650
|
simple: {
|
|
3264
3651
|
limit: number;
|
|
3265
|
-
period?:
|
|
3652
|
+
period?: PeriodType_2 | undefined;
|
|
3266
3653
|
};
|
|
3267
3654
|
}> | undefined;
|
|
3268
3655
|
}>>;
|
|
3269
|
-
assets:
|
|
3656
|
+
assets: Plugin_2<z.ZodObject<{
|
|
3270
3657
|
assets: z.ZodOptional<z.ZodObject<{
|
|
3271
3658
|
workerName: z.ZodOptional<z.ZodString>;
|
|
3272
3659
|
directory: z.ZodEffects<z.ZodString, string, string>;
|
|
3273
3660
|
binding: z.ZodOptional<z.ZodString>;
|
|
3274
|
-
|
|
3275
|
-
|
|
3661
|
+
routerConfig: z.ZodOptional<z.ZodObject<{
|
|
3662
|
+
account_id: z.ZodOptional<z.ZodNumber>;
|
|
3663
|
+
script_id: z.ZodOptional<z.ZodNumber>;
|
|
3276
3664
|
invoke_user_worker_ahead_of_assets: z.ZodOptional<z.ZodBoolean>;
|
|
3665
|
+
has_user_worker: z.ZodOptional<z.ZodBoolean>;
|
|
3277
3666
|
}, "strip", z.ZodTypeAny, {
|
|
3278
|
-
|
|
3667
|
+
account_id?: number;
|
|
3668
|
+
script_id?: number;
|
|
3279
3669
|
invoke_user_worker_ahead_of_assets?: boolean;
|
|
3280
|
-
}, {
|
|
3281
3670
|
has_user_worker?: boolean;
|
|
3671
|
+
}, {
|
|
3672
|
+
account_id?: number;
|
|
3673
|
+
script_id?: number;
|
|
3282
3674
|
invoke_user_worker_ahead_of_assets?: boolean;
|
|
3675
|
+
has_user_worker?: boolean;
|
|
3283
3676
|
}>>;
|
|
3284
3677
|
assetConfig: z.ZodOptional<z.ZodObject<{
|
|
3678
|
+
account_id: z.ZodOptional<z.ZodNumber>;
|
|
3679
|
+
script_id: z.ZodOptional<z.ZodNumber>;
|
|
3680
|
+
compatibility_date: z.ZodOptional<z.ZodString>;
|
|
3681
|
+
compatibility_flags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3285
3682
|
html_handling: z.ZodOptional<z.ZodEnum<["auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none"]>>;
|
|
3286
3683
|
not_found_handling: z.ZodOptional<z.ZodEnum<["single-page-application", "404-page", "none"]>>;
|
|
3287
|
-
|
|
3684
|
+
redirects: z.ZodOptional<z.ZodObject<{
|
|
3685
|
+
version: z.ZodLiteral<1>;
|
|
3686
|
+
staticRules: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3687
|
+
status: z.ZodNumber;
|
|
3688
|
+
to: z.ZodString;
|
|
3689
|
+
lineNumber: z.ZodNumber;
|
|
3288
3690
|
}, "strip", z.ZodTypeAny, {
|
|
3691
|
+
status?: number;
|
|
3692
|
+
to?: string;
|
|
3693
|
+
lineNumber?: number;
|
|
3694
|
+
}, {
|
|
3695
|
+
status?: number;
|
|
3696
|
+
to?: string;
|
|
3697
|
+
lineNumber?: number;
|
|
3698
|
+
}>>;
|
|
3699
|
+
rules: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3700
|
+
status: z.ZodNumber;
|
|
3701
|
+
to: z.ZodString;
|
|
3702
|
+
}, "strip", z.ZodTypeAny, {
|
|
3703
|
+
status?: number;
|
|
3704
|
+
to?: string;
|
|
3705
|
+
}, {
|
|
3706
|
+
status?: number;
|
|
3707
|
+
to?: string;
|
|
3708
|
+
}>>;
|
|
3709
|
+
}, "strip", z.ZodTypeAny, {
|
|
3710
|
+
version?: 1;
|
|
3711
|
+
staticRules?: Record<string, {
|
|
3712
|
+
status?: number;
|
|
3713
|
+
to?: string;
|
|
3714
|
+
lineNumber?: number;
|
|
3715
|
+
}>;
|
|
3716
|
+
rules?: Record<string, {
|
|
3717
|
+
status?: number;
|
|
3718
|
+
to?: string;
|
|
3719
|
+
}>;
|
|
3720
|
+
}, {
|
|
3721
|
+
version?: 1;
|
|
3722
|
+
staticRules?: Record<string, {
|
|
3723
|
+
status?: number;
|
|
3724
|
+
to?: string;
|
|
3725
|
+
lineNumber?: number;
|
|
3726
|
+
}>;
|
|
3727
|
+
rules?: Record<string, {
|
|
3728
|
+
status?: number;
|
|
3729
|
+
to?: string;
|
|
3730
|
+
}>;
|
|
3731
|
+
}>>;
|
|
3732
|
+
headers: z.ZodOptional<z.ZodObject<{
|
|
3733
|
+
version: z.ZodLiteral<2>;
|
|
3734
|
+
rules: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3735
|
+
set: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3736
|
+
unset: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3737
|
+
}, "strip", z.ZodTypeAny, {
|
|
3738
|
+
set?: Record<string, string>;
|
|
3739
|
+
unset?: string[];
|
|
3740
|
+
}, {
|
|
3741
|
+
set?: Record<string, string>;
|
|
3742
|
+
unset?: string[];
|
|
3743
|
+
}>>;
|
|
3744
|
+
}, "strip", z.ZodTypeAny, {
|
|
3745
|
+
version?: 2;
|
|
3746
|
+
rules?: Record<string, {
|
|
3747
|
+
set?: Record<string, string>;
|
|
3748
|
+
unset?: string[];
|
|
3749
|
+
}>;
|
|
3750
|
+
}, {
|
|
3751
|
+
version?: 2;
|
|
3752
|
+
rules?: Record<string, {
|
|
3753
|
+
set?: Record<string, string>;
|
|
3754
|
+
unset?: string[];
|
|
3755
|
+
}>;
|
|
3756
|
+
}>>;
|
|
3757
|
+
}, "strip", z.ZodTypeAny, {
|
|
3758
|
+
account_id?: number;
|
|
3759
|
+
script_id?: number;
|
|
3760
|
+
compatibility_date?: string;
|
|
3761
|
+
compatibility_flags?: string[];
|
|
3289
3762
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
3290
3763
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
3291
|
-
|
|
3764
|
+
redirects?: {
|
|
3765
|
+
version?: 1;
|
|
3766
|
+
staticRules?: Record<string, {
|
|
3767
|
+
status?: number;
|
|
3768
|
+
to?: string;
|
|
3769
|
+
lineNumber?: number;
|
|
3770
|
+
}>;
|
|
3771
|
+
rules?: Record<string, {
|
|
3772
|
+
status?: number;
|
|
3773
|
+
to?: string;
|
|
3774
|
+
}>;
|
|
3775
|
+
};
|
|
3776
|
+
headers?: {
|
|
3777
|
+
version?: 2;
|
|
3778
|
+
rules?: Record<string, {
|
|
3779
|
+
set?: Record<string, string>;
|
|
3780
|
+
unset?: string[];
|
|
3781
|
+
}>;
|
|
3782
|
+
};
|
|
3292
3783
|
}, {
|
|
3784
|
+
account_id?: number;
|
|
3785
|
+
script_id?: number;
|
|
3786
|
+
compatibility_date?: string;
|
|
3787
|
+
compatibility_flags?: string[];
|
|
3293
3788
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
3294
3789
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
3295
|
-
|
|
3790
|
+
redirects?: {
|
|
3791
|
+
version?: 1;
|
|
3792
|
+
staticRules?: Record<string, {
|
|
3793
|
+
status?: number;
|
|
3794
|
+
to?: string;
|
|
3795
|
+
lineNumber?: number;
|
|
3796
|
+
}>;
|
|
3797
|
+
rules?: Record<string, {
|
|
3798
|
+
status?: number;
|
|
3799
|
+
to?: string;
|
|
3800
|
+
}>;
|
|
3801
|
+
};
|
|
3802
|
+
headers?: {
|
|
3803
|
+
version?: 2;
|
|
3804
|
+
rules?: Record<string, {
|
|
3805
|
+
set?: Record<string, string>;
|
|
3806
|
+
unset?: string[];
|
|
3807
|
+
}>;
|
|
3808
|
+
};
|
|
3296
3809
|
}>>;
|
|
3297
3810
|
}, "strip", z.ZodTypeAny, {
|
|
3298
3811
|
directory: string;
|
|
3299
3812
|
workerName?: string | undefined;
|
|
3300
3813
|
binding?: string | undefined;
|
|
3301
|
-
|
|
3302
|
-
|
|
3814
|
+
routerConfig?: {
|
|
3815
|
+
account_id?: number;
|
|
3816
|
+
script_id?: number;
|
|
3303
3817
|
invoke_user_worker_ahead_of_assets?: boolean;
|
|
3818
|
+
has_user_worker?: boolean;
|
|
3304
3819
|
} | undefined;
|
|
3305
3820
|
assetConfig?: {
|
|
3821
|
+
account_id?: number;
|
|
3822
|
+
script_id?: number;
|
|
3823
|
+
compatibility_date?: string;
|
|
3824
|
+
compatibility_flags?: string[];
|
|
3306
3825
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
3307
3826
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
3308
|
-
|
|
3827
|
+
redirects?: {
|
|
3828
|
+
version?: 1;
|
|
3829
|
+
staticRules?: Record<string, {
|
|
3830
|
+
status?: number;
|
|
3831
|
+
to?: string;
|
|
3832
|
+
lineNumber?: number;
|
|
3833
|
+
}>;
|
|
3834
|
+
rules?: Record<string, {
|
|
3835
|
+
status?: number;
|
|
3836
|
+
to?: string;
|
|
3837
|
+
}>;
|
|
3838
|
+
};
|
|
3839
|
+
headers?: {
|
|
3840
|
+
version?: 2;
|
|
3841
|
+
rules?: Record<string, {
|
|
3842
|
+
set?: Record<string, string>;
|
|
3843
|
+
unset?: string[];
|
|
3844
|
+
}>;
|
|
3845
|
+
};
|
|
3309
3846
|
} | undefined;
|
|
3310
3847
|
}, {
|
|
3311
3848
|
directory: string;
|
|
3312
3849
|
workerName?: string | undefined;
|
|
3313
3850
|
binding?: string | undefined;
|
|
3314
|
-
|
|
3315
|
-
|
|
3851
|
+
routerConfig?: {
|
|
3852
|
+
account_id?: number;
|
|
3853
|
+
script_id?: number;
|
|
3316
3854
|
invoke_user_worker_ahead_of_assets?: boolean;
|
|
3855
|
+
has_user_worker?: boolean;
|
|
3317
3856
|
} | undefined;
|
|
3318
3857
|
assetConfig?: {
|
|
3858
|
+
account_id?: number;
|
|
3859
|
+
script_id?: number;
|
|
3860
|
+
compatibility_date?: string;
|
|
3861
|
+
compatibility_flags?: string[];
|
|
3319
3862
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
3320
3863
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
3321
|
-
|
|
3864
|
+
redirects?: {
|
|
3865
|
+
version?: 1;
|
|
3866
|
+
staticRules?: Record<string, {
|
|
3867
|
+
status?: number;
|
|
3868
|
+
to?: string;
|
|
3869
|
+
lineNumber?: number;
|
|
3870
|
+
}>;
|
|
3871
|
+
rules?: Record<string, {
|
|
3872
|
+
status?: number;
|
|
3873
|
+
to?: string;
|
|
3874
|
+
}>;
|
|
3875
|
+
};
|
|
3876
|
+
headers?: {
|
|
3877
|
+
version?: 2;
|
|
3878
|
+
rules?: Record<string, {
|
|
3879
|
+
set?: Record<string, string>;
|
|
3880
|
+
unset?: string[];
|
|
3881
|
+
}>;
|
|
3882
|
+
};
|
|
3322
3883
|
} | undefined;
|
|
3323
3884
|
}>>;
|
|
3324
3885
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3326,14 +3887,38 @@ export declare const PLUGINS: {
|
|
|
3326
3887
|
directory: string;
|
|
3327
3888
|
workerName?: string | undefined;
|
|
3328
3889
|
binding?: string | undefined;
|
|
3329
|
-
|
|
3330
|
-
|
|
3890
|
+
routerConfig?: {
|
|
3891
|
+
account_id?: number;
|
|
3892
|
+
script_id?: number;
|
|
3331
3893
|
invoke_user_worker_ahead_of_assets?: boolean;
|
|
3894
|
+
has_user_worker?: boolean;
|
|
3332
3895
|
} | undefined;
|
|
3333
3896
|
assetConfig?: {
|
|
3897
|
+
account_id?: number;
|
|
3898
|
+
script_id?: number;
|
|
3899
|
+
compatibility_date?: string;
|
|
3900
|
+
compatibility_flags?: string[];
|
|
3334
3901
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
3335
3902
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
3336
|
-
|
|
3903
|
+
redirects?: {
|
|
3904
|
+
version?: 1;
|
|
3905
|
+
staticRules?: Record<string, {
|
|
3906
|
+
status?: number;
|
|
3907
|
+
to?: string;
|
|
3908
|
+
lineNumber?: number;
|
|
3909
|
+
}>;
|
|
3910
|
+
rules?: Record<string, {
|
|
3911
|
+
status?: number;
|
|
3912
|
+
to?: string;
|
|
3913
|
+
}>;
|
|
3914
|
+
};
|
|
3915
|
+
headers?: {
|
|
3916
|
+
version?: 2;
|
|
3917
|
+
rules?: Record<string, {
|
|
3918
|
+
set?: Record<string, string>;
|
|
3919
|
+
unset?: string[];
|
|
3920
|
+
}>;
|
|
3921
|
+
};
|
|
3337
3922
|
} | undefined;
|
|
3338
3923
|
} | undefined;
|
|
3339
3924
|
}, {
|
|
@@ -3341,18 +3926,42 @@ export declare const PLUGINS: {
|
|
|
3341
3926
|
directory: string;
|
|
3342
3927
|
workerName?: string | undefined;
|
|
3343
3928
|
binding?: string | undefined;
|
|
3344
|
-
|
|
3345
|
-
|
|
3929
|
+
routerConfig?: {
|
|
3930
|
+
account_id?: number;
|
|
3931
|
+
script_id?: number;
|
|
3346
3932
|
invoke_user_worker_ahead_of_assets?: boolean;
|
|
3933
|
+
has_user_worker?: boolean;
|
|
3347
3934
|
} | undefined;
|
|
3348
3935
|
assetConfig?: {
|
|
3936
|
+
account_id?: number;
|
|
3937
|
+
script_id?: number;
|
|
3938
|
+
compatibility_date?: string;
|
|
3939
|
+
compatibility_flags?: string[];
|
|
3349
3940
|
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
3350
3941
|
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
3351
|
-
|
|
3942
|
+
redirects?: {
|
|
3943
|
+
version?: 1;
|
|
3944
|
+
staticRules?: Record<string, {
|
|
3945
|
+
status?: number;
|
|
3946
|
+
to?: string;
|
|
3947
|
+
lineNumber?: number;
|
|
3948
|
+
}>;
|
|
3949
|
+
rules?: Record<string, {
|
|
3950
|
+
status?: number;
|
|
3951
|
+
to?: string;
|
|
3952
|
+
}>;
|
|
3953
|
+
};
|
|
3954
|
+
headers?: {
|
|
3955
|
+
version?: 2;
|
|
3956
|
+
rules?: Record<string, {
|
|
3957
|
+
set?: Record<string, string>;
|
|
3958
|
+
unset?: string[];
|
|
3959
|
+
}>;
|
|
3960
|
+
};
|
|
3352
3961
|
} | undefined;
|
|
3353
3962
|
} | undefined;
|
|
3354
3963
|
}>>;
|
|
3355
|
-
workflows:
|
|
3964
|
+
workflows: Plugin_2<z.ZodObject<{
|
|
3356
3965
|
workflows: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3357
3966
|
name: z.ZodString;
|
|
3358
3967
|
className: z.ZodString;
|
|
@@ -3385,6 +3994,13 @@ export declare const PLUGINS: {
|
|
|
3385
3994
|
}, {
|
|
3386
3995
|
workflowsPersist?: string | boolean | undefined;
|
|
3387
3996
|
}>>;
|
|
3997
|
+
pipelines: Plugin_2<z.ZodObject<{
|
|
3998
|
+
pipelines: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodArray<z.ZodString, "many">]>>;
|
|
3999
|
+
}, "strip", z.ZodTypeAny, {
|
|
4000
|
+
pipelines?: string[] | Record<string, string> | undefined;
|
|
4001
|
+
}, {
|
|
4002
|
+
pipelines?: string[] | Record<string, string> | undefined;
|
|
4003
|
+
}>>;
|
|
3388
4004
|
};
|
|
3389
4005
|
|
|
3390
4006
|
export declare type Plugins = typeof PLUGINS;
|
|
@@ -3405,6 +4021,7 @@ export declare interface PluginServicesOptions<Options extends z.ZodType, Shared
|
|
|
3405
4021
|
unsafeEphemeralDurableObjects: boolean;
|
|
3406
4022
|
queueProducers: QueueProducers;
|
|
3407
4023
|
queueConsumers: QueueConsumers;
|
|
4024
|
+
unsafeEnableAssetsRpc: boolean;
|
|
3408
4025
|
}
|
|
3409
4026
|
|
|
3410
4027
|
export declare function prefixError(prefix: string, e: any): Error;
|
|
@@ -3582,11 +4199,11 @@ export declare type QueueIncomingMessage = z.infer<typeof QueueIncomingMessageSc
|
|
|
3582
4199
|
export declare const QueueIncomingMessageSchema: z.ZodObject<{
|
|
3583
4200
|
contentType: z.ZodDefault<z.ZodEnum<["text", "json", "bytes", "v8"]>>;
|
|
3584
4201
|
delaySecs: z.ZodOptional<z.ZodNumber>;
|
|
3585
|
-
body: z.ZodEffects<z.ZodString, Buffer
|
|
4202
|
+
body: z.ZodEffects<z.ZodString, Buffer<ArrayBuffer>, string>;
|
|
3586
4203
|
id: z.ZodOptional<z.ZodString>;
|
|
3587
4204
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
3588
4205
|
}, "strip", z.ZodTypeAny, {
|
|
3589
|
-
body: Buffer
|
|
4206
|
+
body: Buffer<ArrayBuffer>;
|
|
3590
4207
|
contentType: "json" | "bytes" | "v8" | "text";
|
|
3591
4208
|
delaySecs?: number | undefined;
|
|
3592
4209
|
id?: string | undefined;
|
|
@@ -3662,11 +4279,11 @@ export declare const QueuesBatchRequestSchema: z.ZodObject<{
|
|
|
3662
4279
|
messages: z.ZodArray<z.ZodObject<{
|
|
3663
4280
|
contentType: z.ZodDefault<z.ZodEnum<["text", "json", "bytes", "v8"]>>;
|
|
3664
4281
|
delaySecs: z.ZodOptional<z.ZodNumber>;
|
|
3665
|
-
body: z.ZodEffects<z.ZodString, Buffer
|
|
4282
|
+
body: z.ZodEffects<z.ZodString, Buffer<ArrayBuffer>, string>;
|
|
3666
4283
|
id: z.ZodOptional<z.ZodString>;
|
|
3667
4284
|
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
3668
4285
|
}, "strip", z.ZodTypeAny, {
|
|
3669
|
-
body: Buffer
|
|
4286
|
+
body: Buffer<ArrayBuffer>;
|
|
3670
4287
|
contentType: "json" | "bytes" | "v8" | "text";
|
|
3671
4288
|
delaySecs?: number | undefined;
|
|
3672
4289
|
id?: string | undefined;
|
|
@@ -3680,7 +4297,7 @@ export declare const QueuesBatchRequestSchema: z.ZodObject<{
|
|
|
3680
4297
|
}>, "many">;
|
|
3681
4298
|
}, "strip", z.ZodTypeAny, {
|
|
3682
4299
|
messages: {
|
|
3683
|
-
body: Buffer
|
|
4300
|
+
body: Buffer<ArrayBuffer>;
|
|
3684
4301
|
contentType: "json" | "bytes" | "v8" | "text";
|
|
3685
4302
|
delaySecs?: number | undefined;
|
|
3686
4303
|
id?: string | undefined;
|
|
@@ -3874,11 +4491,11 @@ export declare type ReducersRevivers = Record<string, ReducerReviver>;
|
|
|
3874
4491
|
|
|
3875
4492
|
export { ReferrerPolicy }
|
|
3876
4493
|
|
|
3877
|
-
export declare type ReplaceWorkersTypes<T> = T extends
|
|
4494
|
+
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 ? {
|
|
3878
4495
|
[K in keyof T]: OverloadReplaceWorkersTypes<T[K]>;
|
|
3879
4496
|
} : T;
|
|
3880
4497
|
|
|
3881
|
-
declare class Request_2<CfType extends RequestInitCfType = RequestInitCfType> extends
|
|
4498
|
+
declare class Request_2<CfType extends RequestInitCfType = RequestInitCfType> extends Request_4 {
|
|
3882
4499
|
[kCf]?: CfType;
|
|
3883
4500
|
constructor(input: RequestInfo, init?: RequestInit_2<CfType>);
|
|
3884
4501
|
get cf(): CfType | undefined;
|
|
@@ -3908,7 +4525,7 @@ export { RequestMode }
|
|
|
3908
4525
|
|
|
3909
4526
|
export { RequestRedirect }
|
|
3910
4527
|
|
|
3911
|
-
declare class Response_2 extends
|
|
4528
|
+
declare class Response_2 extends Response_4 {
|
|
3912
4529
|
readonly [kWebSocket]: WebSocket | null;
|
|
3913
4530
|
static error(): Response_2;
|
|
3914
4531
|
static redirect(url: string | URL, status: ResponseRedirectStatus): Response_2;
|
|
@@ -4050,31 +4667,31 @@ export declare type SourceOptions = z.infer<typeof SourceOptionsSchema>;
|
|
|
4050
4667
|
|
|
4051
4668
|
export declare const SourceOptionsSchema: z.ZodUnion<[z.ZodObject<{
|
|
4052
4669
|
modules: z.ZodArray<z.ZodObject<{
|
|
4053
|
-
type: z.ZodEnum<["ESModule", "CommonJS", "
|
|
4670
|
+
type: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
|
|
4054
4671
|
path: z.ZodEffects<z.ZodString, string, string>;
|
|
4055
|
-
contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array
|
|
4672
|
+
contents: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>]>>;
|
|
4056
4673
|
}, "strip", z.ZodTypeAny, {
|
|
4057
|
-
type: "ESModule" | "CommonJS" | "
|
|
4674
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
4058
4675
|
path: string;
|
|
4059
|
-
contents?: string | Uint8Array | undefined;
|
|
4676
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
4060
4677
|
}, {
|
|
4061
|
-
type: "ESModule" | "CommonJS" | "
|
|
4678
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
4062
4679
|
path: string;
|
|
4063
|
-
contents?: string | Uint8Array | undefined;
|
|
4680
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
4064
4681
|
}>, "many">;
|
|
4065
4682
|
modulesRoot: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
4066
4683
|
}, "strip", z.ZodTypeAny, {
|
|
4067
4684
|
modules: {
|
|
4068
|
-
type: "ESModule" | "CommonJS" | "
|
|
4685
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
4069
4686
|
path: string;
|
|
4070
|
-
contents?: string | Uint8Array | undefined;
|
|
4687
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
4071
4688
|
}[];
|
|
4072
4689
|
modulesRoot?: string | undefined;
|
|
4073
4690
|
}, {
|
|
4074
4691
|
modules: {
|
|
4075
|
-
type: "ESModule" | "CommonJS" | "
|
|
4692
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
4076
4693
|
path: string;
|
|
4077
|
-
contents?: string | Uint8Array | undefined;
|
|
4694
|
+
contents?: string | Uint8Array<ArrayBuffer> | undefined;
|
|
4078
4695
|
}[];
|
|
4079
4696
|
modulesRoot?: string | undefined;
|
|
4080
4697
|
}>, z.ZodObject<{
|
|
@@ -4082,15 +4699,15 @@ export declare const SourceOptionsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
4082
4699
|
scriptPath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
4083
4700
|
modules: z.ZodOptional<z.ZodBoolean>;
|
|
4084
4701
|
modulesRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4085
|
-
type: z.ZodEnum<["ESModule", "CommonJS", "
|
|
4702
|
+
type: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
|
|
4086
4703
|
include: z.ZodArray<z.ZodString, "many">;
|
|
4087
4704
|
fallthrough: z.ZodOptional<z.ZodBoolean>;
|
|
4088
4705
|
}, "strip", z.ZodTypeAny, {
|
|
4089
|
-
type: "ESModule" | "CommonJS" | "
|
|
4706
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
4090
4707
|
include: string[];
|
|
4091
4708
|
fallthrough?: boolean | undefined;
|
|
4092
4709
|
}, {
|
|
4093
|
-
type: "ESModule" | "CommonJS" | "
|
|
4710
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
4094
4711
|
include: string[];
|
|
4095
4712
|
fallthrough?: boolean | undefined;
|
|
4096
4713
|
}>, "many">>;
|
|
@@ -4100,7 +4717,7 @@ export declare const SourceOptionsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
4100
4717
|
scriptPath?: string | undefined;
|
|
4101
4718
|
modules?: boolean | undefined;
|
|
4102
4719
|
modulesRules?: {
|
|
4103
|
-
type: "ESModule" | "CommonJS" | "
|
|
4720
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
4104
4721
|
include: string[];
|
|
4105
4722
|
fallthrough?: boolean | undefined;
|
|
4106
4723
|
}[] | undefined;
|
|
@@ -4110,7 +4727,7 @@ export declare const SourceOptionsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
4110
4727
|
scriptPath?: string | undefined;
|
|
4111
4728
|
modules?: boolean | undefined;
|
|
4112
4729
|
modulesRules?: {
|
|
4113
|
-
type: "ESModule" | "CommonJS" | "
|
|
4730
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
4114
4731
|
include: string[];
|
|
4115
4732
|
fallthrough?: boolean | undefined;
|
|
4116
4733
|
}[] | undefined;
|
|
@@ -4119,15 +4736,15 @@ export declare const SourceOptionsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
4119
4736
|
scriptPath: z.ZodEffects<z.ZodString, string, string>;
|
|
4120
4737
|
modules: z.ZodOptional<z.ZodBoolean>;
|
|
4121
4738
|
modulesRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4122
|
-
type: z.ZodEnum<["ESModule", "CommonJS", "
|
|
4739
|
+
type: z.ZodEnum<["ESModule", "CommonJS", "Text", "Data", "CompiledWasm", "PythonModule", "PythonRequirement"]>;
|
|
4123
4740
|
include: z.ZodArray<z.ZodString, "many">;
|
|
4124
4741
|
fallthrough: z.ZodOptional<z.ZodBoolean>;
|
|
4125
4742
|
}, "strip", z.ZodTypeAny, {
|
|
4126
|
-
type: "ESModule" | "CommonJS" | "
|
|
4743
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
4127
4744
|
include: string[];
|
|
4128
4745
|
fallthrough?: boolean | undefined;
|
|
4129
4746
|
}, {
|
|
4130
|
-
type: "ESModule" | "CommonJS" | "
|
|
4747
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
4131
4748
|
include: string[];
|
|
4132
4749
|
fallthrough?: boolean | undefined;
|
|
4133
4750
|
}>, "many">>;
|
|
@@ -4136,7 +4753,7 @@ export declare const SourceOptionsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
4136
4753
|
scriptPath: string;
|
|
4137
4754
|
modules?: boolean | undefined;
|
|
4138
4755
|
modulesRules?: {
|
|
4139
|
-
type: "ESModule" | "CommonJS" | "
|
|
4756
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
4140
4757
|
include: string[];
|
|
4141
4758
|
fallthrough?: boolean | undefined;
|
|
4142
4759
|
}[] | undefined;
|
|
@@ -4145,7 +4762,7 @@ export declare const SourceOptionsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
4145
4762
|
scriptPath: string;
|
|
4146
4763
|
modules?: boolean | undefined;
|
|
4147
4764
|
modulesRules?: {
|
|
4148
|
-
type: "ESModule" | "CommonJS" | "
|
|
4765
|
+
type: "ESModule" | "CommonJS" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
|
|
4149
4766
|
include: string[];
|
|
4150
4767
|
fallthrough?: boolean | undefined;
|
|
4151
4768
|
}[] | undefined;
|
|
@@ -4185,14 +4802,16 @@ export declare interface TlsOptions_Keypair {
|
|
|
4185
4802
|
certificateChain?: string;
|
|
4186
4803
|
}
|
|
4187
4804
|
|
|
4188
|
-
export declare
|
|
4189
|
-
GOOD_DEFAULT
|
|
4190
|
-
SSL3
|
|
4191
|
-
TLS1DOT0
|
|
4192
|
-
TLS1DOT1
|
|
4193
|
-
TLS1DOT2
|
|
4194
|
-
TLS1DOT3
|
|
4195
|
-
}
|
|
4805
|
+
export declare const TlsOptions_Version: {
|
|
4806
|
+
readonly GOOD_DEFAULT: 0;
|
|
4807
|
+
readonly SSL3: 1;
|
|
4808
|
+
readonly TLS1DOT0: 2;
|
|
4809
|
+
readonly TLS1DOT1: 3;
|
|
4810
|
+
readonly TLS1DOT2: 4;
|
|
4811
|
+
readonly TLS1DOT3: 5;
|
|
4812
|
+
};
|
|
4813
|
+
|
|
4814
|
+
export declare type TlsOptions_Version = (typeof TlsOptions_Version)[keyof typeof TlsOptions_Version];
|
|
4196
4815
|
|
|
4197
4816
|
export declare function _transformsForContentEncodingAndContentType(encoding: string | undefined, type: string | undefined | null): Transform[];
|
|
4198
4817
|
|
|
@@ -4237,8 +4856,8 @@ export declare class WebSocket extends TypedEventTarget<WebSocketEventMap> {
|
|
|
4237
4856
|
[kClosedIncoming]: boolean;
|
|
4238
4857
|
get readyState(): number;
|
|
4239
4858
|
accept(): void;
|
|
4240
|
-
send(message: ArrayBuffer |
|
|
4241
|
-
[kSend](message: ArrayBuffer |
|
|
4859
|
+
send(message: string | ArrayBuffer | Uint8Array<ArrayBuffer>): void;
|
|
4860
|
+
[kSend](message: string | ArrayBuffer | Uint8Array<ArrayBuffer>): void;
|
|
4242
4861
|
close(code?: number, reason?: string): void;
|
|
4243
4862
|
[kClose](code?: number, reason?: string): void;
|
|
4244
4863
|
[kError](error?: Error): void;
|
|
@@ -4339,16 +4958,18 @@ export declare type Worker_Binding_CryptoKey_Algorithm = {
|
|
|
4339
4958
|
json?: string;
|
|
4340
4959
|
};
|
|
4341
4960
|
|
|
4342
|
-
export declare
|
|
4343
|
-
ENCRYPT
|
|
4344
|
-
DECRYPT
|
|
4345
|
-
SIGN
|
|
4346
|
-
VERIFY
|
|
4347
|
-
DERIVE_KEY
|
|
4348
|
-
DERIVE_BITS
|
|
4349
|
-
WRAP_KEY
|
|
4350
|
-
UNWRAP_KEY
|
|
4351
|
-
}
|
|
4961
|
+
export declare const Worker_Binding_CryptoKey_Usage: {
|
|
4962
|
+
readonly ENCRYPT: 0;
|
|
4963
|
+
readonly DECRYPT: 1;
|
|
4964
|
+
readonly SIGN: 2;
|
|
4965
|
+
readonly VERIFY: 3;
|
|
4966
|
+
readonly DERIVE_KEY: 4;
|
|
4967
|
+
readonly DERIVE_BITS: 5;
|
|
4968
|
+
readonly WRAP_KEY: 6;
|
|
4969
|
+
readonly UNWRAP_KEY: 7;
|
|
4970
|
+
};
|
|
4971
|
+
|
|
4972
|
+
export declare type Worker_Binding_CryptoKey_Usage = (typeof Worker_Binding_CryptoKey_Usage)[keyof typeof Worker_Binding_CryptoKey_Usage];
|
|
4352
4973
|
|
|
4353
4974
|
export declare type Worker_Binding_DurableObjectNamespaceDesignator = {
|
|
4354
4975
|
className?: string;
|
|
@@ -4447,15 +5068,13 @@ export declare type Worker_Module = {
|
|
|
4447
5068
|
wasm?: Uint8Array;
|
|
4448
5069
|
} | {
|
|
4449
5070
|
json?: string;
|
|
4450
|
-
} | {
|
|
4451
|
-
nodeJsCompatModule?: string;
|
|
4452
5071
|
} | {
|
|
4453
5072
|
pythonModule?: string;
|
|
4454
5073
|
} | {
|
|
4455
5074
|
pythonRequirement?: string;
|
|
4456
5075
|
});
|
|
4457
5076
|
|
|
4458
|
-
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>;
|
|
5077
|
+
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>;
|
|
4459
5078
|
|
|
4460
5079
|
export declare interface WorkerRoute {
|
|
4461
5080
|
target: string;
|