@cloudflare/config 0.7.0 → 0.9.0
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/dist/index.d.mts +165 -59
- package/dist/index.mjs +98 -83
- package/dist/{public-CCrtkZee.d.mts → public-CN_InYwn.d.mts} +104 -84
- package/dist/public.d.mts +2 -2
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as PipelineBinding, A as Triggers, B as Bindings, C as WorkerEntrypointExportOptions, Ct as WorkflowBinding, D as FetchTrigger, E as EmailTrigger, F as AiSearchNamespaceBinding, G as FlagshipBinding, H as D1Binding, I as AnalyticsEngineDatasetBinding, J as JsonBinding, K as HyperdriveBinding, L as ArtifactsBinding, M as AgentMemoryBinding, N as AiBinding, O as QueueConsumerTrigger, P as AiSearchBinding, Q as MtlsCertificateBinding, R as AssetsBinding, S as WorkerEntrypointExport, St as WorkerLoaderBinding, T as ConnectTrigger, U as DispatchNamespaceBinding, V as BrowserBinding, W as DurableObjectBinding, X as LogfwdrBinding, Y as KvBinding, Z as MediaBinding, _ as DurableObjectDeletedExport, _t as VersionMetadataBinding, a as InferEnv, at as SendEmailBinding, b as DurableObjectTransferredExport, bt as WebSearchBinding, c as TypedWorkerDefinition, ct as TypedAiBinding, d as defineWorker, dt as TypedPipelineBinding, et as QueueBinding, f as SettingsConfig, ft as TypedQueueBinding, g as DurableObjectCreatedExport, gt as VectorizeBinding, h as resolveExportDefinition, ht as UnsafeBinding, i as InferDurableNamespaces, it as SecretsStoreSecretBinding, j as triggers, k as ScheduledTrigger, l as WorkerConfigExport, lt as TypedDurableObjectBinding, m as ConfigContext, mt as TypedWorkflowBinding, n as SettingsDefinition, nt as RateLimitBinding, o as InferMainModule, ot as StreamBinding, p as WorkerConfig, pt as TypedWorkerBinding, q as ImagesBinding, r as defineSettings, rt as SecretBinding, s as UnwrapConfig, st as TextBinding, t as SettingsConfigInput, tt as R2Binding, u as WorkerConfigInput, ut as TypedKvBinding, v as DurableObjectExpectingTransferExport, vt as VpcNetworkBinding, w as exports, wt as bindings, x as Exports, xt as WorkerBinding, y as DurableObjectRenamedExport, yt as VpcServiceBinding, z as BindingDevOptions } from "./public-CN_InYwn.mjs";
|
|
2
2
|
import * as z from "zod";
|
|
3
3
|
import { RawConfig } from "@cloudflare/workers-utils";
|
|
4
4
|
|
|
@@ -19,38 +19,48 @@ declare const AssetsSchema: z.ZodObject<{
|
|
|
19
19
|
}, z.core.$strict>;
|
|
20
20
|
declare const BrowserBindingSchema: z.ZodObject<{
|
|
21
21
|
type: z.ZodLiteral<"browser">;
|
|
22
|
-
|
|
22
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
23
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
+
}, z.core.$strict>>;
|
|
23
25
|
}, z.core.$strict>;
|
|
24
26
|
declare const WorkerBindingSchema: z.ZodObject<{
|
|
25
27
|
type: z.ZodLiteral<"worker">;
|
|
26
|
-
|
|
28
|
+
worker: z.ZodString;
|
|
27
29
|
exportName: z.ZodOptional<z.ZodString>;
|
|
28
30
|
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
29
|
-
|
|
31
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
32
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
33
|
+
}, z.core.$strict>>;
|
|
30
34
|
}, z.core.$strict>;
|
|
31
35
|
declare const D1BindingSchema: z.ZodObject<{
|
|
32
36
|
type: z.ZodLiteral<"d1">;
|
|
33
37
|
name: z.ZodOptional<z.ZodString>;
|
|
34
38
|
id: z.ZodOptional<z.ZodString>;
|
|
35
|
-
|
|
39
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
40
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
41
|
+
}, z.core.$strict>>;
|
|
36
42
|
}, z.core.$strict>;
|
|
37
43
|
declare const KVBindingSchema: z.ZodObject<{
|
|
38
44
|
type: z.ZodLiteral<"kv">;
|
|
39
45
|
id: z.ZodOptional<z.ZodString>;
|
|
40
|
-
|
|
46
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
47
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
48
|
+
}, z.core.$strict>>;
|
|
41
49
|
}, z.core.$strict>;
|
|
42
50
|
declare const QueueBindingSchema: z.ZodObject<{
|
|
43
51
|
type: z.ZodLiteral<"queue">;
|
|
44
52
|
name: z.ZodOptional<z.ZodString>;
|
|
45
53
|
deliveryDelay: z.ZodOptional<z.ZodNumber>;
|
|
46
|
-
|
|
54
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
55
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
56
|
+
}, z.core.$strict>>;
|
|
47
57
|
}, z.core.$strict>;
|
|
48
58
|
declare const R2BindingSchema: z.ZodObject<{
|
|
49
59
|
type: z.ZodLiteral<"r2">;
|
|
50
60
|
name: z.ZodOptional<z.ZodString>;
|
|
51
61
|
jurisdiction: z.ZodOptional<z.ZodString>;
|
|
52
|
-
|
|
53
|
-
|
|
62
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
63
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
54
64
|
experimentalS3Credentials: z.ZodOptional<z.ZodObject<{
|
|
55
65
|
accessKeyId: z.ZodString;
|
|
56
66
|
secretAccessKey: z.ZodString;
|
|
@@ -64,94 +74,130 @@ declare const AnalyticsEngineDatasetBindingSchema: z.ZodObject<{
|
|
|
64
74
|
declare const FlagshipBindingSchema: z.ZodObject<{
|
|
65
75
|
type: z.ZodLiteral<"flagship">;
|
|
66
76
|
id: z.ZodOptional<z.ZodString>;
|
|
67
|
-
|
|
77
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
78
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
79
|
+
}, z.core.$strict>>;
|
|
68
80
|
}, z.core.$strict>;
|
|
69
81
|
declare const HyperdriveBindingSchema: z.ZodObject<{
|
|
70
82
|
type: z.ZodLiteral<"hyperdrive">;
|
|
71
83
|
id: z.ZodString;
|
|
72
|
-
|
|
84
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
85
|
+
connectionString: z.ZodOptional<z.ZodString>;
|
|
86
|
+
}, z.core.$strict>>;
|
|
73
87
|
}, z.core.$strict>;
|
|
74
88
|
declare const KnownBindingSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
75
89
|
type: z.ZodLiteral<"agent-memory">;
|
|
76
90
|
namespace: z.ZodString;
|
|
77
|
-
|
|
91
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
92
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
93
|
+
}, z.core.$strict>>;
|
|
78
94
|
}, z.core.$strict>, z.ZodObject<{
|
|
79
95
|
type: z.ZodLiteral<"ai">;
|
|
80
|
-
|
|
96
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
97
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
98
|
+
}, z.core.$strict>>;
|
|
81
99
|
}, z.core.$strict>, z.ZodObject<{
|
|
82
100
|
type: z.ZodLiteral<"ai-search">;
|
|
83
101
|
name: z.ZodString;
|
|
84
|
-
|
|
102
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
103
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
104
|
+
}, z.core.$strict>>;
|
|
85
105
|
}, z.core.$strict>, z.ZodObject<{
|
|
86
106
|
type: z.ZodLiteral<"ai-search-namespace">;
|
|
87
107
|
namespace: z.ZodString;
|
|
88
|
-
|
|
108
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
109
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
110
|
+
}, z.core.$strict>>;
|
|
89
111
|
}, z.core.$strict>, z.ZodObject<{
|
|
90
112
|
type: z.ZodLiteral<"analytics-engine-dataset">;
|
|
91
113
|
name: z.ZodOptional<z.ZodString>;
|
|
92
114
|
}, z.core.$strict>, z.ZodObject<{
|
|
93
115
|
type: z.ZodLiteral<"artifacts">;
|
|
94
116
|
namespace: z.ZodString;
|
|
95
|
-
|
|
117
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
118
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
119
|
+
}, z.core.$strict>>;
|
|
96
120
|
}, z.core.$strict>, z.ZodObject<{
|
|
97
121
|
type: z.ZodLiteral<"assets">;
|
|
98
122
|
}, z.core.$strict>, z.ZodObject<{
|
|
99
123
|
type: z.ZodLiteral<"browser">;
|
|
100
|
-
|
|
124
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
125
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
126
|
+
}, z.core.$strict>>;
|
|
101
127
|
}, z.core.$strict>, z.ZodObject<{
|
|
102
128
|
type: z.ZodLiteral<"d1">;
|
|
103
129
|
name: z.ZodOptional<z.ZodString>;
|
|
104
130
|
id: z.ZodOptional<z.ZodString>;
|
|
105
|
-
|
|
131
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
132
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
133
|
+
}, z.core.$strict>>;
|
|
106
134
|
}, z.core.$strict>, z.ZodObject<{
|
|
107
135
|
type: z.ZodLiteral<"dispatch-namespace">;
|
|
108
136
|
namespace: z.ZodOptional<z.ZodString>;
|
|
109
137
|
outbound: z.ZodOptional<z.ZodObject<{
|
|
110
|
-
|
|
138
|
+
worker: z.ZodString;
|
|
111
139
|
parameters: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
112
140
|
}, z.core.$strict>>;
|
|
113
|
-
|
|
141
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
142
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
143
|
+
}, z.core.$strict>>;
|
|
114
144
|
}, z.core.$strict>, z.ZodObject<{
|
|
115
145
|
type: z.ZodLiteral<"durable-object">;
|
|
116
|
-
|
|
146
|
+
worker: z.ZodString;
|
|
117
147
|
exportName: z.ZodString;
|
|
118
148
|
}, z.core.$strict>, z.ZodObject<{
|
|
119
149
|
type: z.ZodLiteral<"flagship">;
|
|
120
150
|
id: z.ZodOptional<z.ZodString>;
|
|
121
|
-
|
|
151
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
152
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
153
|
+
}, z.core.$strict>>;
|
|
122
154
|
}, z.core.$strict>, z.ZodObject<{
|
|
123
155
|
type: z.ZodLiteral<"hyperdrive">;
|
|
124
156
|
id: z.ZodString;
|
|
125
|
-
|
|
157
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
158
|
+
connectionString: z.ZodOptional<z.ZodString>;
|
|
159
|
+
}, z.core.$strict>>;
|
|
126
160
|
}, z.core.$strict>, z.ZodObject<{
|
|
127
161
|
type: z.ZodLiteral<"images">;
|
|
128
|
-
|
|
162
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
163
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
164
|
+
}, z.core.$strict>>;
|
|
129
165
|
}, z.core.$strict>, z.ZodObject<{
|
|
130
166
|
type: z.ZodLiteral<"json">;
|
|
131
167
|
value: z.ZodJSONSchema;
|
|
132
168
|
}, z.core.$strict>, z.ZodObject<{
|
|
133
169
|
type: z.ZodLiteral<"kv">;
|
|
134
170
|
id: z.ZodOptional<z.ZodString>;
|
|
135
|
-
|
|
171
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
172
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
173
|
+
}, z.core.$strict>>;
|
|
136
174
|
}, z.core.$strict>, z.ZodObject<{
|
|
137
175
|
type: z.ZodLiteral<"logfwdr">;
|
|
138
176
|
destination: z.ZodString;
|
|
139
177
|
}, z.core.$strict>, z.ZodObject<{
|
|
140
178
|
type: z.ZodLiteral<"media">;
|
|
141
|
-
|
|
179
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
180
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
181
|
+
}, z.core.$strict>>;
|
|
142
182
|
}, z.core.$strict>, z.ZodObject<{
|
|
143
183
|
type: z.ZodLiteral<"mtls-certificate">;
|
|
144
184
|
id: z.ZodString;
|
|
145
|
-
|
|
185
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
186
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
187
|
+
}, z.core.$strict>>;
|
|
146
188
|
}, z.core.$strict>, z.ZodObject<{
|
|
147
189
|
type: z.ZodLiteral<"pipeline">;
|
|
148
190
|
name: z.ZodString;
|
|
149
|
-
|
|
191
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
192
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
193
|
+
}, z.core.$strict>>;
|
|
150
194
|
}, z.core.$strict>, z.ZodObject<{
|
|
151
195
|
type: z.ZodLiteral<"queue">;
|
|
152
196
|
name: z.ZodOptional<z.ZodString>;
|
|
153
197
|
deliveryDelay: z.ZodOptional<z.ZodNumber>;
|
|
154
|
-
|
|
198
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
199
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
200
|
+
}, z.core.$strict>>;
|
|
155
201
|
}, z.core.$strict>, z.ZodObject<{
|
|
156
202
|
type: z.ZodLiteral<"rate-limit">;
|
|
157
203
|
namespace: z.ZodString;
|
|
@@ -163,8 +209,8 @@ declare const KnownBindingSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
163
209
|
type: z.ZodLiteral<"r2">;
|
|
164
210
|
name: z.ZodOptional<z.ZodString>;
|
|
165
211
|
jurisdiction: z.ZodOptional<z.ZodString>;
|
|
166
|
-
|
|
167
|
-
|
|
212
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
213
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
168
214
|
experimentalS3Credentials: z.ZodOptional<z.ZodObject<{
|
|
169
215
|
accessKeyId: z.ZodString;
|
|
170
216
|
secretAccessKey: z.ZodString;
|
|
@@ -181,37 +227,81 @@ declare const KnownBindingSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
181
227
|
destinationAddress: z.ZodOptional<z.ZodString>;
|
|
182
228
|
allowedDestinationAddresses: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
183
229
|
allowedSenderAddresses: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
184
|
-
|
|
185
|
-
|
|
230
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
231
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
232
|
+
}, z.core.$strict>>;
|
|
233
|
+
}, z.core.$strict> & z.ZodType<SendEmailBinding, {
|
|
234
|
+
type: "send-email";
|
|
235
|
+
destinationAddress?: string | undefined;
|
|
236
|
+
allowedDestinationAddresses?: string[] | undefined;
|
|
237
|
+
allowedSenderAddresses?: string[] | undefined;
|
|
238
|
+
dev?: {
|
|
239
|
+
remote?: boolean | undefined;
|
|
240
|
+
} | undefined;
|
|
241
|
+
}, z.core.$ZodTypeInternals<SendEmailBinding, {
|
|
242
|
+
type: "send-email";
|
|
243
|
+
destinationAddress?: string | undefined;
|
|
244
|
+
allowedDestinationAddresses?: string[] | undefined;
|
|
245
|
+
allowedSenderAddresses?: string[] | undefined;
|
|
246
|
+
dev?: {
|
|
247
|
+
remote?: boolean | undefined;
|
|
248
|
+
} | undefined;
|
|
249
|
+
}>>, z.ZodObject<{
|
|
186
250
|
type: z.ZodLiteral<"stream">;
|
|
187
|
-
|
|
251
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
252
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
253
|
+
}, z.core.$strict>>;
|
|
188
254
|
}, z.core.$strict>, z.ZodObject<{
|
|
189
255
|
type: z.ZodLiteral<"text">;
|
|
190
256
|
value: z.ZodString;
|
|
191
257
|
}, z.core.$strict>, z.ZodObject<{
|
|
192
258
|
type: z.ZodLiteral<"vectorize">;
|
|
193
259
|
name: z.ZodString;
|
|
194
|
-
|
|
260
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
261
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
262
|
+
}, z.core.$strict>>;
|
|
195
263
|
}, z.core.$strict>, z.ZodObject<{
|
|
196
264
|
type: z.ZodLiteral<"version-metadata">;
|
|
197
265
|
}, z.core.$strict>, z.ZodObject<{
|
|
198
266
|
type: z.ZodLiteral<"vpc-service">;
|
|
199
267
|
id: z.ZodString;
|
|
200
|
-
|
|
268
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
269
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
270
|
+
}, z.core.$strict>>;
|
|
201
271
|
}, z.core.$strict>, z.ZodObject<{
|
|
202
272
|
type: z.ZodLiteral<"vpc-network">;
|
|
203
273
|
tunnelId: z.ZodOptional<z.ZodString>;
|
|
204
274
|
networkId: z.ZodOptional<z.ZodString>;
|
|
205
|
-
|
|
206
|
-
|
|
275
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
276
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
277
|
+
}, z.core.$strict>>;
|
|
278
|
+
}, z.core.$strict> & z.ZodType<VpcNetworkBinding, {
|
|
279
|
+
type: "vpc-network";
|
|
280
|
+
tunnelId?: string | undefined;
|
|
281
|
+
networkId?: string | undefined;
|
|
282
|
+
dev?: {
|
|
283
|
+
remote?: boolean | undefined;
|
|
284
|
+
} | undefined;
|
|
285
|
+
}, z.core.$ZodTypeInternals<VpcNetworkBinding, {
|
|
286
|
+
type: "vpc-network";
|
|
287
|
+
tunnelId?: string | undefined;
|
|
288
|
+
networkId?: string | undefined;
|
|
289
|
+
dev?: {
|
|
290
|
+
remote?: boolean | undefined;
|
|
291
|
+
} | undefined;
|
|
292
|
+
}>>, z.ZodObject<{
|
|
207
293
|
type: z.ZodLiteral<"web-search">;
|
|
208
|
-
|
|
294
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
295
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
296
|
+
}, z.core.$strict>>;
|
|
209
297
|
}, z.core.$strict>, z.ZodObject<{
|
|
210
298
|
type: z.ZodLiteral<"worker">;
|
|
211
|
-
|
|
299
|
+
worker: z.ZodString;
|
|
212
300
|
exportName: z.ZodOptional<z.ZodString>;
|
|
213
301
|
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
214
|
-
|
|
302
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
303
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
304
|
+
}, z.core.$strict>>;
|
|
215
305
|
}, z.core.$strict>, z.ZodObject<{
|
|
216
306
|
type: z.ZodLiteral<"worker-loader">;
|
|
217
307
|
}, z.core.$strict>], "type">;
|
|
@@ -308,7 +398,7 @@ declare const ExportSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
308
398
|
}, z.core.$strict>>;
|
|
309
399
|
}, z.core.$strict>]>;
|
|
310
400
|
declare const TailConsumerSchema: z.ZodObject<{
|
|
311
|
-
|
|
401
|
+
worker: z.ZodString;
|
|
312
402
|
streaming: z.ZodOptional<z.ZodBoolean>;
|
|
313
403
|
}, z.core.$strict>;
|
|
314
404
|
/**
|
|
@@ -365,7 +455,7 @@ declare const InputWorkerSchema: z.ZodObject<{
|
|
|
365
455
|
address: z.ZodOptional<z.ZodString>;
|
|
366
456
|
}, z.core.$strict>], "type">>>;
|
|
367
457
|
tailConsumers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
368
|
-
|
|
458
|
+
worker: z.ZodString;
|
|
369
459
|
streaming: z.ZodOptional<z.ZodBoolean>;
|
|
370
460
|
}, z.core.$strict>>>;
|
|
371
461
|
cache: z.ZodOptional<z.ZodObject<{
|
|
@@ -471,18 +561,32 @@ declare const InputWorkerSchema: z.ZodObject<{
|
|
|
471
561
|
}, z.core.$strict>;
|
|
472
562
|
type ParsedInputWorkerConfig = z.output<typeof InputWorkerSchema>;
|
|
473
563
|
/**
|
|
474
|
-
*
|
|
564
|
+
* Input settings schema — validates the named `settings` export of a
|
|
475
565
|
* `cloudflare.config.ts`. Holds account/deployment settings shared by the other exports.
|
|
476
566
|
*/
|
|
477
|
-
declare const
|
|
567
|
+
declare const InputSettingsSchema: z.ZodObject<{
|
|
568
|
+
type: z.ZodLiteral<"settings">;
|
|
569
|
+
accountId: z.ZodOptional<z.ZodString>;
|
|
570
|
+
complianceRegion: z.ZodOptional<z.ZodEnum<{
|
|
571
|
+
public: "public";
|
|
572
|
+
"fedramp-high": "fedramp-high";
|
|
573
|
+
}>>;
|
|
574
|
+
}, z.core.$strict>;
|
|
575
|
+
type ParsedInputSettingsConfig = z.output<typeof InputSettingsSchema>;
|
|
576
|
+
/**
|
|
577
|
+
* Output settings schema — the shape of the top-level `config.json` in the
|
|
578
|
+
* Build Output Specification. Adds the `mode` the build was produced in.
|
|
579
|
+
*/
|
|
580
|
+
declare const OutputSettingsSchema: z.ZodObject<{
|
|
478
581
|
type: z.ZodLiteral<"settings">;
|
|
479
582
|
accountId: z.ZodOptional<z.ZodString>;
|
|
480
583
|
complianceRegion: z.ZodOptional<z.ZodEnum<{
|
|
481
584
|
public: "public";
|
|
482
585
|
"fedramp-high": "fedramp-high";
|
|
483
586
|
}>>;
|
|
587
|
+
mode: z.ZodOptional<z.ZodString>;
|
|
484
588
|
}, z.core.$strict>;
|
|
485
|
-
type
|
|
589
|
+
type ParsedOutputSettingsConfig = z.output<typeof OutputSettingsSchema>;
|
|
486
590
|
/**
|
|
487
591
|
* Schema for the resolved config exports, keyed by export
|
|
488
592
|
* name. Each value is discriminated on its `type` field. Reserves the
|
|
@@ -490,7 +594,16 @@ type ParsedSettingsConfig = z.output<typeof SettingsSchema>;
|
|
|
490
594
|
* config must live on the `settings` export, and the `settings` export
|
|
491
595
|
* may only hold a `settings` config.
|
|
492
596
|
*/
|
|
493
|
-
declare const ConfigExportsSchema: z.ZodRecord<z.ZodString, z.
|
|
597
|
+
declare const ConfigExportsSchema: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodObject<{
|
|
598
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
599
|
+
type: z.ZodLiteral<"settings">;
|
|
600
|
+
accountId: z.ZodOptional<z.ZodString>;
|
|
601
|
+
complianceRegion: z.ZodOptional<z.ZodEnum<{
|
|
602
|
+
public: "public";
|
|
603
|
+
"fedramp-high": "fedramp-high";
|
|
604
|
+
}>>;
|
|
605
|
+
}, z.core.$strict>>;
|
|
606
|
+
}, z.core.$catchall<z.ZodObject<{
|
|
494
607
|
type: z.ZodLiteral<"worker">;
|
|
495
608
|
name: z.ZodString;
|
|
496
609
|
compatibilityDate: z.ZodString;
|
|
@@ -539,7 +652,7 @@ declare const ConfigExportsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUn
|
|
|
539
652
|
address: z.ZodOptional<z.ZodString>;
|
|
540
653
|
}, z.core.$strict>], "type">>>;
|
|
541
654
|
tailConsumers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
542
|
-
|
|
655
|
+
worker: z.ZodString;
|
|
543
656
|
streaming: z.ZodOptional<z.ZodBoolean>;
|
|
544
657
|
}, z.core.$strict>>>;
|
|
545
658
|
cache: z.ZodOptional<z.ZodObject<{
|
|
@@ -642,14 +755,7 @@ declare const ConfigExportsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUn
|
|
|
642
755
|
}, z.core.$strict>]>, z.ZodTransform<string, string | {
|
|
643
756
|
default: string;
|
|
644
757
|
}>>>;
|
|
645
|
-
}, z.core.$strict
|
|
646
|
-
type: z.ZodLiteral<"settings">;
|
|
647
|
-
accountId: z.ZodOptional<z.ZodString>;
|
|
648
|
-
complianceRegion: z.ZodOptional<z.ZodEnum<{
|
|
649
|
-
public: "public";
|
|
650
|
-
"fedramp-high": "fedramp-high";
|
|
651
|
-
}>>;
|
|
652
|
-
}, z.core.$strict>], "type">>;
|
|
758
|
+
}, z.core.$strict>>>>;
|
|
653
759
|
type ParsedConfigExports = z.output<typeof ConfigExportsSchema>;
|
|
654
760
|
declare const ModuleTypeSchema: z.ZodEnum<{
|
|
655
761
|
json: "json";
|
|
@@ -717,7 +823,7 @@ declare const OutputWorkerSchema: z.ZodObject<{
|
|
|
717
823
|
address: z.ZodOptional<z.ZodString>;
|
|
718
824
|
}, z.core.$strict>], "type">>>;
|
|
719
825
|
tailConsumers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
720
|
-
|
|
826
|
+
worker: z.ZodString;
|
|
721
827
|
streaming: z.ZodOptional<z.ZodBoolean>;
|
|
722
828
|
}, z.core.$strict>>>;
|
|
723
829
|
cache: z.ZodOptional<z.ZodObject<{
|
|
@@ -881,7 +987,7 @@ declare function generateTypes({
|
|
|
881
987
|
* are merged onto the result.
|
|
882
988
|
* @returns The corresponding Wrangler `RawConfig`.
|
|
883
989
|
*/
|
|
884
|
-
declare function convertToWranglerConfig(workerConfig: ParsedInputWorkerConfig, settingsConfig?:
|
|
990
|
+
declare function convertToWranglerConfig(workerConfig: ParsedInputWorkerConfig, settingsConfig?: ParsedInputSettingsConfig): RawConfig;
|
|
885
991
|
//#endregion
|
|
886
992
|
//#region src/load.d.ts
|
|
887
993
|
/**
|
|
@@ -961,4 +1067,4 @@ declare function loadAndValidateConfig(configPath: string, ctx: ConfigContext, o
|
|
|
961
1067
|
include?: string[];
|
|
962
1068
|
}): Promise<LoadAndValidateConfigResult>;
|
|
963
1069
|
//#endregion
|
|
964
|
-
export { AgentMemoryBinding, AiBinding, AiSearchBinding, AiSearchNamespaceBinding, AnalyticsEngineDatasetBinding, AnalyticsEngineDatasetBindingSchema, ArtifactsBinding, AssetsBinding, AssetsSchema, BindingSchema, Bindings, BrowserBinding, BrowserBindingSchema, ConfigContext, ConfigExportsSchema, ConnectTrigger, D1Binding, D1BindingSchema, DispatchNamespaceBinding, DurableObjectBinding, DurableObjectCreatedExport, DurableObjectCreatedExportSchema, DurableObjectDeletedExport, DurableObjectDeletedExportSchema, DurableObjectExpectingTransferExport, DurableObjectExpectingTransferExportSchema, DurableObjectRenamedExport, DurableObjectRenamedExportSchema, DurableObjectTransferredExport, DurableObjectTransferredExportSchema, EmailTrigger, ExportSchema, Exports, FetchTrigger, FlagshipBinding, FlagshipBindingSchema, HyperdriveBinding, HyperdriveBindingSchema, ImagesBinding, InferDurableNamespaces, InferEnv, InferMainModule, InputWorkerSchema, JsonBinding, KVBindingSchema, KnownBindingSchema, KvBinding, type LoadAndValidateConfigResult, type LoadConfigResult, LogfwdrBinding, MediaBinding, type ModuleType, ModuleTypeSchema, MtlsCertificateBinding, OutputWorkerSchema, type ParsedConfigExports, type ParsedInputWorkerConfig, type
|
|
1070
|
+
export { AgentMemoryBinding, AiBinding, AiSearchBinding, AiSearchNamespaceBinding, AnalyticsEngineDatasetBinding, AnalyticsEngineDatasetBindingSchema, ArtifactsBinding, AssetsBinding, AssetsSchema, BindingDevOptions, BindingSchema, Bindings, BrowserBinding, BrowserBindingSchema, ConfigContext, ConfigExportsSchema, ConnectTrigger, D1Binding, D1BindingSchema, DispatchNamespaceBinding, DurableObjectBinding, DurableObjectCreatedExport, DurableObjectCreatedExportSchema, DurableObjectDeletedExport, DurableObjectDeletedExportSchema, DurableObjectExpectingTransferExport, DurableObjectExpectingTransferExportSchema, DurableObjectRenamedExport, DurableObjectRenamedExportSchema, DurableObjectTransferredExport, DurableObjectTransferredExportSchema, EmailTrigger, ExportSchema, Exports, FetchTrigger, FlagshipBinding, FlagshipBindingSchema, HyperdriveBinding, HyperdriveBindingSchema, ImagesBinding, InferDurableNamespaces, InferEnv, InferMainModule, InputSettingsSchema, InputWorkerSchema, JsonBinding, KVBindingSchema, KnownBindingSchema, KvBinding, type LoadAndValidateConfigResult, type LoadConfigResult, LogfwdrBinding, MediaBinding, type ModuleType, ModuleTypeSchema, MtlsCertificateBinding, OutputSettingsSchema, OutputWorkerSchema, type ParsedConfigExports, type ParsedInputSettingsConfig, type ParsedInputWorkerConfig, type ParsedOutputSettingsConfig, type ParsedOutputWorkerConfig, PipelineBinding, QueueBinding, QueueBindingSchema, QueueConsumerTrigger, R2Binding, R2BindingSchema, RateLimitBinding, ScheduledTrigger, SecretBinding, SecretsStoreSecretBinding, SendEmailBinding, SettingsConfig, SettingsConfigInput, SettingsDefinition, StreamBinding, TailConsumerSchema, TextBinding, Triggers, TypedAiBinding, TypedDurableObjectBinding, TypedKvBinding, TypedPipelineBinding, TypedQueueBinding, TypedWorkerBinding, TypedWorkerDefinition, TypedWorkflowBinding, UnsafeBinding, UnsafeBindingSchema, UnwrapConfig, VectorizeBinding, VersionMetadataBinding, VpcNetworkBinding, VpcServiceBinding, WebSearchBinding, WorkerBinding, WorkerBindingSchema, WorkerConfig, WorkerConfigExport, WorkerConfigInput, WorkerEntrypointExport, WorkerEntrypointExportOptions, WorkerEntrypointExportSchema, WorkerLoaderBinding, WorkflowBinding, bindings, convertToWranglerConfig, defineSettings, defineWorker, exports, generateTypes, loadAndValidateConfig, loadConfig, registerConfigHooks, resolveExportDefinition, triggers, validateSingletonBindings };
|