@cloudflare/config 0.6.0 → 0.8.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
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-C3uXDKsB.mjs";
|
|
2
2
|
import * as z from "zod";
|
|
3
3
|
import { RawConfig } from "@cloudflare/workers-utils";
|
|
4
4
|
|
|
@@ -19,80 +19,118 @@ 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
|
workerName: 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
|
-
|
|
62
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
63
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
64
|
+
experimentalS3Credentials: z.ZodOptional<z.ZodObject<{
|
|
65
|
+
accessKeyId: z.ZodString;
|
|
66
|
+
secretAccessKey: z.ZodString;
|
|
67
|
+
}, z.core.$strip>>;
|
|
68
|
+
}, z.core.$strict>>;
|
|
69
|
+
}, z.core.$strict>;
|
|
70
|
+
declare const AnalyticsEngineDatasetBindingSchema: z.ZodObject<{
|
|
71
|
+
type: z.ZodLiteral<"analytics-engine-dataset">;
|
|
72
|
+
name: z.ZodOptional<z.ZodString>;
|
|
53
73
|
}, z.core.$strict>;
|
|
54
74
|
declare const FlagshipBindingSchema: z.ZodObject<{
|
|
55
75
|
type: z.ZodLiteral<"flagship">;
|
|
56
76
|
id: z.ZodOptional<z.ZodString>;
|
|
57
|
-
|
|
77
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
78
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
79
|
+
}, z.core.$strict>>;
|
|
58
80
|
}, z.core.$strict>;
|
|
59
81
|
declare const HyperdriveBindingSchema: z.ZodObject<{
|
|
60
82
|
type: z.ZodLiteral<"hyperdrive">;
|
|
61
83
|
id: z.ZodString;
|
|
62
|
-
|
|
84
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
85
|
+
connectionString: z.ZodOptional<z.ZodString>;
|
|
86
|
+
}, z.core.$strict>>;
|
|
63
87
|
}, z.core.$strict>;
|
|
64
88
|
declare const KnownBindingSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
65
89
|
type: z.ZodLiteral<"agent-memory">;
|
|
66
90
|
namespace: z.ZodString;
|
|
67
|
-
|
|
91
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
92
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
93
|
+
}, z.core.$strict>>;
|
|
68
94
|
}, z.core.$strict>, z.ZodObject<{
|
|
69
95
|
type: z.ZodLiteral<"ai">;
|
|
70
|
-
|
|
96
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
97
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
98
|
+
}, z.core.$strict>>;
|
|
71
99
|
}, z.core.$strict>, z.ZodObject<{
|
|
72
100
|
type: z.ZodLiteral<"ai-search">;
|
|
73
101
|
name: z.ZodString;
|
|
74
|
-
|
|
102
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
103
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
104
|
+
}, z.core.$strict>>;
|
|
75
105
|
}, z.core.$strict>, z.ZodObject<{
|
|
76
106
|
type: z.ZodLiteral<"ai-search-namespace">;
|
|
77
107
|
namespace: z.ZodString;
|
|
78
|
-
|
|
108
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
109
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
110
|
+
}, z.core.$strict>>;
|
|
79
111
|
}, z.core.$strict>, z.ZodObject<{
|
|
80
112
|
type: z.ZodLiteral<"analytics-engine-dataset">;
|
|
81
113
|
name: z.ZodOptional<z.ZodString>;
|
|
82
114
|
}, z.core.$strict>, z.ZodObject<{
|
|
83
115
|
type: z.ZodLiteral<"artifacts">;
|
|
84
116
|
namespace: z.ZodString;
|
|
85
|
-
|
|
117
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
118
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
119
|
+
}, z.core.$strict>>;
|
|
86
120
|
}, z.core.$strict>, z.ZodObject<{
|
|
87
121
|
type: z.ZodLiteral<"assets">;
|
|
88
122
|
}, z.core.$strict>, z.ZodObject<{
|
|
89
123
|
type: z.ZodLiteral<"browser">;
|
|
90
|
-
|
|
124
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
125
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
126
|
+
}, z.core.$strict>>;
|
|
91
127
|
}, z.core.$strict>, z.ZodObject<{
|
|
92
128
|
type: z.ZodLiteral<"d1">;
|
|
93
129
|
name: z.ZodOptional<z.ZodString>;
|
|
94
130
|
id: z.ZodOptional<z.ZodString>;
|
|
95
|
-
|
|
131
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
132
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
133
|
+
}, z.core.$strict>>;
|
|
96
134
|
}, z.core.$strict>, z.ZodObject<{
|
|
97
135
|
type: z.ZodLiteral<"dispatch-namespace">;
|
|
98
136
|
namespace: z.ZodOptional<z.ZodString>;
|
|
@@ -100,7 +138,9 @@ declare const KnownBindingSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
100
138
|
workerName: z.ZodString;
|
|
101
139
|
parameters: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
102
140
|
}, z.core.$strict>>;
|
|
103
|
-
|
|
141
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
142
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
143
|
+
}, z.core.$strict>>;
|
|
104
144
|
}, z.core.$strict>, z.ZodObject<{
|
|
105
145
|
type: z.ZodLiteral<"durable-object">;
|
|
106
146
|
workerName: z.ZodString;
|
|
@@ -108,40 +148,56 @@ declare const KnownBindingSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
108
148
|
}, z.core.$strict>, z.ZodObject<{
|
|
109
149
|
type: z.ZodLiteral<"flagship">;
|
|
110
150
|
id: z.ZodOptional<z.ZodString>;
|
|
111
|
-
|
|
151
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
152
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
153
|
+
}, z.core.$strict>>;
|
|
112
154
|
}, z.core.$strict>, z.ZodObject<{
|
|
113
155
|
type: z.ZodLiteral<"hyperdrive">;
|
|
114
156
|
id: z.ZodString;
|
|
115
|
-
|
|
157
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
158
|
+
connectionString: z.ZodOptional<z.ZodString>;
|
|
159
|
+
}, z.core.$strict>>;
|
|
116
160
|
}, z.core.$strict>, z.ZodObject<{
|
|
117
161
|
type: z.ZodLiteral<"images">;
|
|
118
|
-
|
|
162
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
163
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
164
|
+
}, z.core.$strict>>;
|
|
119
165
|
}, z.core.$strict>, z.ZodObject<{
|
|
120
166
|
type: z.ZodLiteral<"json">;
|
|
121
167
|
value: z.ZodJSONSchema;
|
|
122
168
|
}, z.core.$strict>, z.ZodObject<{
|
|
123
169
|
type: z.ZodLiteral<"kv">;
|
|
124
170
|
id: z.ZodOptional<z.ZodString>;
|
|
125
|
-
|
|
171
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
172
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
173
|
+
}, z.core.$strict>>;
|
|
126
174
|
}, z.core.$strict>, z.ZodObject<{
|
|
127
175
|
type: z.ZodLiteral<"logfwdr">;
|
|
128
176
|
destination: z.ZodString;
|
|
129
177
|
}, z.core.$strict>, z.ZodObject<{
|
|
130
178
|
type: z.ZodLiteral<"media">;
|
|
131
|
-
|
|
179
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
180
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
181
|
+
}, z.core.$strict>>;
|
|
132
182
|
}, z.core.$strict>, z.ZodObject<{
|
|
133
183
|
type: z.ZodLiteral<"mtls-certificate">;
|
|
134
184
|
id: z.ZodString;
|
|
135
|
-
|
|
185
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
186
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
187
|
+
}, z.core.$strict>>;
|
|
136
188
|
}, z.core.$strict>, z.ZodObject<{
|
|
137
189
|
type: z.ZodLiteral<"pipeline">;
|
|
138
190
|
name: z.ZodString;
|
|
139
|
-
|
|
191
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
192
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
193
|
+
}, z.core.$strict>>;
|
|
140
194
|
}, z.core.$strict>, z.ZodObject<{
|
|
141
195
|
type: z.ZodLiteral<"queue">;
|
|
142
196
|
name: z.ZodOptional<z.ZodString>;
|
|
143
197
|
deliveryDelay: z.ZodOptional<z.ZodNumber>;
|
|
144
|
-
|
|
198
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
199
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
200
|
+
}, z.core.$strict>>;
|
|
145
201
|
}, z.core.$strict>, z.ZodObject<{
|
|
146
202
|
type: z.ZodLiteral<"rate-limit">;
|
|
147
203
|
namespace: z.ZodString;
|
|
@@ -153,7 +209,13 @@ declare const KnownBindingSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
153
209
|
type: z.ZodLiteral<"r2">;
|
|
154
210
|
name: z.ZodOptional<z.ZodString>;
|
|
155
211
|
jurisdiction: z.ZodOptional<z.ZodString>;
|
|
156
|
-
|
|
212
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
213
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
214
|
+
experimentalS3Credentials: z.ZodOptional<z.ZodObject<{
|
|
215
|
+
accessKeyId: z.ZodString;
|
|
216
|
+
secretAccessKey: z.ZodString;
|
|
217
|
+
}, z.core.$strip>>;
|
|
218
|
+
}, z.core.$strict>>;
|
|
157
219
|
}, z.core.$strict>, z.ZodObject<{
|
|
158
220
|
type: z.ZodLiteral<"secret">;
|
|
159
221
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -165,37 +227,81 @@ declare const KnownBindingSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
165
227
|
destinationAddress: z.ZodOptional<z.ZodString>;
|
|
166
228
|
allowedDestinationAddresses: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
167
229
|
allowedSenderAddresses: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
168
|
-
|
|
169
|
-
|
|
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<{
|
|
170
250
|
type: z.ZodLiteral<"stream">;
|
|
171
|
-
|
|
251
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
252
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
253
|
+
}, z.core.$strict>>;
|
|
172
254
|
}, z.core.$strict>, z.ZodObject<{
|
|
173
255
|
type: z.ZodLiteral<"text">;
|
|
174
256
|
value: z.ZodString;
|
|
175
257
|
}, z.core.$strict>, z.ZodObject<{
|
|
176
258
|
type: z.ZodLiteral<"vectorize">;
|
|
177
259
|
name: z.ZodString;
|
|
178
|
-
|
|
260
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
261
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
262
|
+
}, z.core.$strict>>;
|
|
179
263
|
}, z.core.$strict>, z.ZodObject<{
|
|
180
264
|
type: z.ZodLiteral<"version-metadata">;
|
|
181
265
|
}, z.core.$strict>, z.ZodObject<{
|
|
182
266
|
type: z.ZodLiteral<"vpc-service">;
|
|
183
267
|
id: z.ZodString;
|
|
184
|
-
|
|
268
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
269
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
270
|
+
}, z.core.$strict>>;
|
|
185
271
|
}, z.core.$strict>, z.ZodObject<{
|
|
186
272
|
type: z.ZodLiteral<"vpc-network">;
|
|
187
273
|
tunnelId: z.ZodOptional<z.ZodString>;
|
|
188
274
|
networkId: z.ZodOptional<z.ZodString>;
|
|
189
|
-
|
|
190
|
-
|
|
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<{
|
|
191
293
|
type: z.ZodLiteral<"web-search">;
|
|
192
|
-
|
|
294
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
295
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
296
|
+
}, z.core.$strict>>;
|
|
193
297
|
}, z.core.$strict>, z.ZodObject<{
|
|
194
298
|
type: z.ZodLiteral<"worker">;
|
|
195
299
|
workerName: z.ZodString;
|
|
196
300
|
exportName: z.ZodOptional<z.ZodString>;
|
|
197
301
|
props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
198
|
-
|
|
302
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
303
|
+
remote: z.ZodOptional<z.ZodBoolean>;
|
|
304
|
+
}, z.core.$strict>>;
|
|
199
305
|
}, z.core.$strict>, z.ZodObject<{
|
|
200
306
|
type: z.ZodLiteral<"worker-loader">;
|
|
201
307
|
}, z.core.$strict>], "type">;
|
|
@@ -340,6 +446,13 @@ declare const InputWorkerSchema: z.ZodObject<{
|
|
|
340
446
|
}, z.core.$strict>, z.ZodObject<{
|
|
341
447
|
type: z.ZodLiteral<"scheduled">;
|
|
342
448
|
schedule: z.ZodString;
|
|
449
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
450
|
+
type: z.ZodLiteral<"connect">;
|
|
451
|
+
protocol: z.ZodEnum<{
|
|
452
|
+
tcp: "tcp";
|
|
453
|
+
}>;
|
|
454
|
+
port: z.ZodNumber;
|
|
455
|
+
address: z.ZodOptional<z.ZodString>;
|
|
343
456
|
}, z.core.$strict>], "type">>>;
|
|
344
457
|
tailConsumers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
345
458
|
workerName: z.ZodString;
|
|
@@ -448,18 +561,32 @@ declare const InputWorkerSchema: z.ZodObject<{
|
|
|
448
561
|
}, z.core.$strict>;
|
|
449
562
|
type ParsedInputWorkerConfig = z.output<typeof InputWorkerSchema>;
|
|
450
563
|
/**
|
|
451
|
-
*
|
|
564
|
+
* Input settings schema — validates the named `settings` export of a
|
|
452
565
|
* `cloudflare.config.ts`. Holds account/deployment settings shared by the other exports.
|
|
453
566
|
*/
|
|
454
|
-
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<{
|
|
455
581
|
type: z.ZodLiteral<"settings">;
|
|
456
582
|
accountId: z.ZodOptional<z.ZodString>;
|
|
457
583
|
complianceRegion: z.ZodOptional<z.ZodEnum<{
|
|
458
584
|
public: "public";
|
|
459
585
|
"fedramp-high": "fedramp-high";
|
|
460
586
|
}>>;
|
|
587
|
+
mode: z.ZodOptional<z.ZodString>;
|
|
461
588
|
}, z.core.$strict>;
|
|
462
|
-
type
|
|
589
|
+
type ParsedOutputSettingsConfig = z.output<typeof OutputSettingsSchema>;
|
|
463
590
|
/**
|
|
464
591
|
* Schema for the resolved config exports, keyed by export
|
|
465
592
|
* name. Each value is discriminated on its `type` field. Reserves the
|
|
@@ -467,7 +594,16 @@ type ParsedSettingsConfig = z.output<typeof SettingsSchema>;
|
|
|
467
594
|
* config must live on the `settings` export, and the `settings` export
|
|
468
595
|
* may only hold a `settings` config.
|
|
469
596
|
*/
|
|
470
|
-
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<{
|
|
471
607
|
type: z.ZodLiteral<"worker">;
|
|
472
608
|
name: z.ZodString;
|
|
473
609
|
compatibilityDate: z.ZodString;
|
|
@@ -507,6 +643,13 @@ declare const ConfigExportsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUn
|
|
|
507
643
|
}, z.core.$strict>, z.ZodObject<{
|
|
508
644
|
type: z.ZodLiteral<"scheduled">;
|
|
509
645
|
schedule: z.ZodString;
|
|
646
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
647
|
+
type: z.ZodLiteral<"connect">;
|
|
648
|
+
protocol: z.ZodEnum<{
|
|
649
|
+
tcp: "tcp";
|
|
650
|
+
}>;
|
|
651
|
+
port: z.ZodNumber;
|
|
652
|
+
address: z.ZodOptional<z.ZodString>;
|
|
510
653
|
}, z.core.$strict>], "type">>>;
|
|
511
654
|
tailConsumers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
512
655
|
workerName: z.ZodString;
|
|
@@ -612,14 +755,7 @@ declare const ConfigExportsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUn
|
|
|
612
755
|
}, z.core.$strict>]>, z.ZodTransform<string, string | {
|
|
613
756
|
default: string;
|
|
614
757
|
}>>>;
|
|
615
|
-
}, z.core.$strict
|
|
616
|
-
type: z.ZodLiteral<"settings">;
|
|
617
|
-
accountId: z.ZodOptional<z.ZodString>;
|
|
618
|
-
complianceRegion: z.ZodOptional<z.ZodEnum<{
|
|
619
|
-
public: "public";
|
|
620
|
-
"fedramp-high": "fedramp-high";
|
|
621
|
-
}>>;
|
|
622
|
-
}, z.core.$strict>], "type">>;
|
|
758
|
+
}, z.core.$strict>>>>;
|
|
623
759
|
type ParsedConfigExports = z.output<typeof ConfigExportsSchema>;
|
|
624
760
|
declare const ModuleTypeSchema: z.ZodEnum<{
|
|
625
761
|
json: "json";
|
|
@@ -678,6 +814,13 @@ declare const OutputWorkerSchema: z.ZodObject<{
|
|
|
678
814
|
}, z.core.$strict>, z.ZodObject<{
|
|
679
815
|
type: z.ZodLiteral<"scheduled">;
|
|
680
816
|
schedule: z.ZodString;
|
|
817
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
818
|
+
type: z.ZodLiteral<"connect">;
|
|
819
|
+
protocol: z.ZodEnum<{
|
|
820
|
+
tcp: "tcp";
|
|
821
|
+
}>;
|
|
822
|
+
port: z.ZodNumber;
|
|
823
|
+
address: z.ZodOptional<z.ZodString>;
|
|
681
824
|
}, z.core.$strict>], "type">>>;
|
|
682
825
|
tailConsumers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
683
826
|
workerName: z.ZodString;
|
|
@@ -844,7 +987,7 @@ declare function generateTypes({
|
|
|
844
987
|
* are merged onto the result.
|
|
845
988
|
* @returns The corresponding Wrangler `RawConfig`.
|
|
846
989
|
*/
|
|
847
|
-
declare function convertToWranglerConfig(workerConfig: ParsedInputWorkerConfig, settingsConfig?:
|
|
990
|
+
declare function convertToWranglerConfig(workerConfig: ParsedInputWorkerConfig, settingsConfig?: ParsedInputSettingsConfig): RawConfig;
|
|
848
991
|
//#endregion
|
|
849
992
|
//#region src/load.d.ts
|
|
850
993
|
/**
|
|
@@ -924,4 +1067,4 @@ declare function loadAndValidateConfig(configPath: string, ctx: ConfigContext, o
|
|
|
924
1067
|
include?: string[];
|
|
925
1068
|
}): Promise<LoadAndValidateConfigResult>;
|
|
926
1069
|
//#endregion
|
|
927
|
-
export { AgentMemoryBinding, AiBinding, AiSearchBinding, AiSearchNamespaceBinding, AnalyticsEngineDatasetBinding, ArtifactsBinding, AssetsBinding, AssetsSchema, BindingSchema, Bindings, BrowserBinding, BrowserBindingSchema, ConfigContext, ConfigExportsSchema, 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 };
|