@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.
@@ -9,11 +9,16 @@ type Json = string | number | boolean | null | Json[] | {
9
9
  };
10
10
  //#endregion
11
11
  //#region src/bindings.d.ts
12
+ /** Options that control a binding during local development. */
13
+ interface BindingDevOptions {
14
+ /** Whether the binding should connect to the remote resource. */
15
+ remote?: boolean;
16
+ }
12
17
  interface AgentMemoryBindingOptions {
13
18
  /** The user-chosen namespace name. Must exist in Cloudflare at deploy time. */
14
19
  namespace: string;
15
- /** Whether the Agent Memory binding should be remote in local development. */
16
- remote?: boolean;
20
+ /** Options that only apply during local development. */
21
+ dev?: BindingDevOptions;
17
22
  }
18
23
  /**
19
24
  * Agent Memory namespace binding. Each binding is scoped to a namespace and
@@ -23,8 +28,8 @@ interface AgentMemoryBinding extends AgentMemoryBindingOptions {
23
28
  type: "agent-memory";
24
29
  }
25
30
  interface AiBindingOptions {
26
- /** Whether the AI binding should be remote or not in local development. */
27
- remote?: boolean;
31
+ /** Options that only apply during local development. */
32
+ dev?: BindingDevOptions;
28
33
  }
29
34
  /**
30
35
  * Binding to the Workers AI project.
@@ -46,8 +51,8 @@ interface TypedAiBinding<TAiModelList extends AiModelListType = AiModels> extend
46
51
  interface AiSearchBindingOptions {
47
52
  /** The user-chosen instance name. Must exist in Cloudflare at deploy time. */
48
53
  name: string;
49
- /** Whether the AI Search instance binding should be remote in local development. */
50
- remote?: boolean;
54
+ /** Options that only apply during local development. */
55
+ dev?: BindingDevOptions;
51
56
  }
52
57
  /**
53
58
  * AI Search instance binding. Each binding is bound directly to a single
@@ -59,8 +64,8 @@ interface AiSearchBinding extends AiSearchBindingOptions {
59
64
  interface AiSearchNamespaceBindingOptions {
60
65
  /** The user-chosen namespace name. Must exist in Cloudflare at deploy time. */
61
66
  namespace: string;
62
- /** Whether the AI Search namespace binding should be remote in local development. */
63
- remote?: boolean;
67
+ /** Options that only apply during local development. */
68
+ dev?: BindingDevOptions;
64
69
  }
65
70
  /**
66
71
  * AI Search namespace binding. Each binding is scoped to a namespace and
@@ -84,8 +89,8 @@ interface AnalyticsEngineDatasetBinding extends AnalyticsEngineDatasetBindingOpt
84
89
  interface ArtifactsBindingOptions {
85
90
  /** The namespace to use. */
86
91
  namespace: string;
87
- /** Whether to use the remote Artifacts service in local dev. */
88
- remote?: boolean;
92
+ /** Options that only apply during local development. */
93
+ dev?: BindingDevOptions;
89
94
  }
90
95
  /**
91
96
  * Binding to an Artifacts instance. Artifacts provides git-compatible file
@@ -103,8 +108,8 @@ interface AssetsBinding {
103
108
  type: "assets";
104
109
  }
105
110
  interface BrowserBindingOptions {
106
- /** Whether the Browser binding should be remote or not in local development. */
107
- remote?: boolean;
111
+ /** Options that only apply during local development. */
112
+ dev?: BindingDevOptions;
108
113
  }
109
114
  /**
110
115
  * Binding to a headless browser usable from the Worker.
@@ -119,8 +124,8 @@ interface D1BindingOptions {
119
124
  id?: string;
120
125
  /** The name of this D1 database. */
121
126
  name?: string;
122
- /** Whether the D1 database should be remote or not in local development. */
123
- remote?: boolean;
127
+ /** Options that only apply during local development. */
128
+ dev?: BindingDevOptions;
124
129
  }
125
130
  /**
126
131
  * Binding to a D1 database.
@@ -140,8 +145,8 @@ interface DispatchNamespaceBindingOptions {
140
145
  /** (Optional) List of parameter names, for sending context from your dispatch Worker to the outbound handler. */
141
146
  parameters?: string[];
142
147
  };
143
- /** Whether the Dispatch Namespace should be remote or not in local development. */
144
- remote?: boolean;
148
+ /** Options that only apply during local development. */
149
+ dev?: BindingDevOptions;
145
150
  }
146
151
  /**
147
152
  * Binding to a Workers for Platforms dispatch namespace.
@@ -181,8 +186,8 @@ interface TypedDurableObjectBinding<TConfig$1, TExportName$1 extends string> ext
181
186
  interface FlagshipBindingOptions {
182
187
  /** The Flagship app ID to bind to. */
183
188
  id?: string;
184
- /** Set to `true` to suppress the remote binding warning in local dev. Flagship bindings are always remote. */
185
- remote?: boolean;
189
+ /** Options that only apply during local development. */
190
+ dev?: BindingDevOptions;
186
191
  }
187
192
  /** Binding to a Flagship feature-flag service. */
188
193
  interface FlagshipBinding extends FlagshipBindingOptions {
@@ -191,8 +196,11 @@ interface FlagshipBinding extends FlagshipBindingOptions {
191
196
  interface HyperdriveBindingOptions {
192
197
  /** The ID of the Hyperdrive configuration. */
193
198
  id: string;
194
- /** The local database connection string used during local development. */
195
- localConnectionString?: string;
199
+ /** Options that only apply during local development. */
200
+ dev?: {
201
+ /** The database connection string used during local development. */
202
+ connectionString?: string;
203
+ };
196
204
  }
197
205
  /**
198
206
  * Binding to a Hyperdrive configuration.
@@ -203,8 +211,8 @@ interface HyperdriveBinding extends HyperdriveBindingOptions {
203
211
  type: "hyperdrive";
204
212
  }
205
213
  interface ImagesBindingOptions {
206
- /** Whether the Images binding should be remote or not in local development. */
207
- remote?: boolean;
214
+ /** Options that only apply during local development. */
215
+ dev?: BindingDevOptions;
208
216
  }
209
217
  /**
210
218
  * Binding to Cloudflare Images.
@@ -226,8 +234,8 @@ interface JsonBinding<T$1 extends Json = Json> {
226
234
  interface KvBindingOptions {
227
235
  /** The ID of the KV namespace. */
228
236
  id?: string;
229
- /** Whether the KV namespace should be remote or not in local development. */
230
- remote?: boolean;
237
+ /** Options that only apply during local development. */
238
+ dev?: BindingDevOptions;
231
239
  }
232
240
  /**
233
241
  * Binding to a Workers KV namespace.
@@ -255,8 +263,8 @@ interface LogfwdrBinding extends LogfwdrBindingOptions {
255
263
  type: "logfwdr";
256
264
  }
257
265
  interface MediaBindingOptions {
258
- /** Whether the Media binding should be remote or not. */
259
- remote?: boolean;
266
+ /** Options that only apply during local development. */
267
+ dev?: BindingDevOptions;
260
268
  }
261
269
  /** Binding to Cloudflare Media Transformations. */
262
270
  interface MediaBinding$1 extends MediaBindingOptions {
@@ -265,8 +273,8 @@ interface MediaBinding$1 extends MediaBindingOptions {
265
273
  interface MtlsCertificateBindingOptions {
266
274
  /** The UUID of the uploaded mTLS certificate. */
267
275
  id: string;
268
- /** Whether the mTLS fetcher should be remote or not in local development. */
269
- remote?: boolean;
276
+ /** Options that only apply during local development. */
277
+ dev?: BindingDevOptions;
270
278
  }
271
279
  /**
272
280
  * Binding to an uploaded mTLS certificate.
@@ -279,8 +287,8 @@ interface MtlsCertificateBinding extends MtlsCertificateBindingOptions {
279
287
  interface PipelineBindingOptions {
280
288
  /** Name of the Pipeline to bind. */
281
289
  name: string;
282
- /** Whether the pipeline should be remote or not in local development. */
283
- remote?: boolean;
290
+ /** Options that only apply during local development. */
291
+ dev?: BindingDevOptions;
284
292
  }
285
293
  /** Binding to a Cloudflare Pipeline. */
286
294
  interface PipelineBinding extends PipelineBindingOptions {
@@ -296,8 +304,8 @@ interface QueueBindingOptions {
296
304
  name?: string;
297
305
  /** The number of seconds to wait before delivering a message. */
298
306
  deliveryDelay?: number;
299
- /** Whether the Queue producer should be remote or not in local development. */
300
- remote?: boolean;
307
+ /** Options that only apply during local development. */
308
+ dev?: BindingDevOptions;
301
309
  }
302
310
  /**
303
311
  * Producer binding to a Cloudflare Queue.
@@ -321,8 +329,14 @@ interface R2BindingOptions {
321
329
  name?: string;
322
330
  /** The jurisdiction that the bucket exists in. Default if not present. */
323
331
  jurisdiction?: string;
324
- /** Whether the R2 bucket should be remote or not in local development. */
325
- remote?: boolean;
332
+ /** Settings that only apply to local development. */
333
+ dev?: BindingDevOptions & {
334
+ /** EXPERIMENTAL: credentials for the local S3-compatible endpoint. */
335
+ experimentalS3Credentials?: {
336
+ accessKeyId: string;
337
+ secretAccessKey: string;
338
+ };
339
+ };
326
340
  }
327
341
  /**
328
342
  * Binding to an R2 bucket.
@@ -370,27 +384,35 @@ interface SecretsStoreSecretBindingOptions {
370
384
  interface SecretsStoreSecretBinding extends SecretsStoreSecretBindingOptions {
371
385
  type: "secrets-store-secret";
372
386
  }
373
- interface SendEmailBindingOptions {
387
+ type SendEmailDestinationOptions = {
374
388
  /** If this binding should be restricted to a specific verified address. */
375
- destinationAddress?: string;
389
+ destinationAddress: string;
390
+ allowedDestinationAddresses?: never;
391
+ } | {
392
+ destinationAddress?: never;
376
393
  /** If this binding should be restricted to a set of verified addresses. */
377
- allowedDestinationAddresses?: string[];
394
+ allowedDestinationAddresses: string[];
395
+ } | {
396
+ destinationAddress?: never;
397
+ allowedDestinationAddresses?: never;
398
+ };
399
+ type SendEmailBindingOptions = SendEmailDestinationOptions & {
378
400
  /** If this binding should be restricted to a set of sender addresses. */
379
401
  allowedSenderAddresses?: string[];
380
- /** Whether the binding should be remote or not in local development. */
381
- remote?: boolean;
382
- }
402
+ /** Options that only apply during local development. */
403
+ dev?: BindingDevOptions;
404
+ };
383
405
  /**
384
406
  * Binding for sending email from inside the Worker.
385
407
  *
386
408
  * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#email-bindings
387
409
  */
388
- interface SendEmailBinding extends SendEmailBindingOptions {
410
+ type SendEmailBinding = SendEmailBindingOptions & {
389
411
  type: "send-email";
390
- }
412
+ };
391
413
  interface StreamBindingOptions {
392
- /** Whether the Stream binding should be remote or not in local development. */
393
- remote?: boolean;
414
+ /** Options that only apply during local development. */
415
+ dev?: BindingDevOptions;
394
416
  }
395
417
  /** Binding to Cloudflare Stream. */
396
418
  interface StreamBinding$1 extends StreamBindingOptions {
@@ -431,8 +453,8 @@ interface UnsafeBinding extends UnsafeBindingOptions {
431
453
  interface VectorizeBindingOptions {
432
454
  /** The name of the Vectorize index. */
433
455
  name: string;
434
- /** Whether the Vectorize index should be remote or not in local development. */
435
- remote?: boolean;
456
+ /** Options that only apply during local development. */
457
+ dev?: BindingDevOptions;
436
458
  }
437
459
  /**
438
460
  * Binding to a Vectorize index.
@@ -449,13 +471,15 @@ interface VersionMetadataBinding {
449
471
  type VpcNetworkBindingOptions = {
450
472
  /** The tunnel ID of the Cloudflare Tunnel to route traffic through. Mutually exclusive with `networkId`. */
451
473
  tunnelId: string;
452
- /** Whether the VPC network is remote or not. */
453
- remote?: boolean;
474
+ networkId?: never;
475
+ /** Options that only apply during local development. */
476
+ dev?: BindingDevOptions;
454
477
  } | {
478
+ tunnelId?: never;
455
479
  /** The network ID to route traffic through. Mutually exclusive with `tunnelId`. */
456
480
  networkId: string;
457
- /** Whether the VPC network is remote or not. */
458
- remote?: boolean;
481
+ /** Options that only apply during local development. */
482
+ dev?: BindingDevOptions;
459
483
  };
460
484
  /** Binding to a VPC network. */
461
485
  type VpcNetworkBinding = VpcNetworkBindingOptions & {
@@ -464,16 +488,16 @@ type VpcNetworkBinding = VpcNetworkBindingOptions & {
464
488
  interface VpcServiceBindingOptions {
465
489
  /** The service ID of the VPC connectivity service. */
466
490
  id: string;
467
- /** Whether the VPC service is remote or not. */
468
- remote?: boolean;
491
+ /** Options that only apply during local development. */
492
+ dev?: BindingDevOptions;
469
493
  }
470
494
  /** Binding to a VPC service. */
471
495
  interface VpcServiceBinding extends VpcServiceBindingOptions {
472
496
  type: "vpc-service";
473
497
  }
474
498
  interface WebSearchBindingOptions {
475
- /** Whether the Web Search binding should be remote or not in local development. */
476
- remote?: boolean;
499
+ /** Options that only apply during local development. */
500
+ dev?: BindingDevOptions;
477
501
  }
478
502
  /**
479
503
  * Cloudflare Web Search binding. There is exactly one shared web corpus, so
@@ -489,8 +513,8 @@ interface WorkerBindingOptions {
489
513
  exportName?: string;
490
514
  /** Optional properties that will be made available to the service via `ctx.props`. */
491
515
  props?: Record<string, unknown>;
492
- /** Whether the service binding should be remote or not in local development. */
493
- remote?: boolean;
516
+ /** Options that only apply during local development. */
517
+ dev?: BindingDevOptions;
494
518
  }
495
519
  /**
496
520
  * Service binding (Worker-to-Worker). `workerName` is the name of the bound
@@ -524,8 +548,6 @@ interface WorkflowBindingOptions {
524
548
  workerName: string;
525
549
  /** The exported class name of the Workflow. */
526
550
  exportName: string;
527
- /** Whether the Workflow binding should be remote or not in local development. */
528
- remote?: boolean;
529
551
  }
530
552
  /**
531
553
  * Binding to a Workflow. `workerName` is the name of the Worker that defines
@@ -804,11 +826,27 @@ interface EmailTriggerOptions {
804
826
  interface EmailTrigger extends EmailTriggerOptions {
805
827
  type: "email";
806
828
  }
829
+ interface ConnectTriggerOptions {
830
+ /** The transport protocol to listen for. */
831
+ protocol: "tcp";
832
+ /** The port to listen on. */
833
+ port: number;
834
+ /** The address to bind to. Defaults to `127.0.0.1`. */
835
+ address?: string;
836
+ }
837
+ /**
838
+ * Connect trigger — invokes this Worker's `connect(socket, env, ctx)`
839
+ * handler for raw socket connections received on the configured
840
+ * protocol/port.
841
+ */
842
+ interface ConnectTrigger extends ConnectTriggerOptions {
843
+ type: "connect";
844
+ }
807
845
  /**
808
- * Event triggers — fetch routes, queue consumers, cron schedules, and Email
809
- * Routing addresses — that invoke this Worker. Construct entries with
810
- * `triggers.fetch(...)`, `triggers.queue(...)`, `triggers.scheduled(...)`, or
811
- * `triggers.email(...)`.
846
+ * Event triggers — fetch routes, queue consumers, cron schedules, Email
847
+ * Routing addresses, and raw sockets — that invoke this Worker.
848
+ * Construct entries with `triggers.fetch(...)`, `triggers.queue(...)`,
849
+ * `triggers.scheduled(...)`, `triggers.email(...)`, or `triggers.connect(...)`.
812
850
  *
813
851
  * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#triggers
814
852
  */
@@ -837,6 +875,12 @@ interface Triggers {
837
875
  * addresses.
838
876
  */
839
877
  email(options: EmailTriggerOptions): EmailTrigger;
878
+ /**
879
+ * Connect trigger — invokes this Worker's `connect(socket, env, ctx)`
880
+ * handler for raw socket connections received on the configured
881
+ * protocol/port.
882
+ */
883
+ connect(options: ConnectTriggerOptions): ConnectTrigger;
840
884
  }
841
885
  /**
842
886
  * Triggers builder for configuring event triggers.
@@ -852,6 +896,7 @@ interface Triggers {
852
896
  * triggers.scheduled({ schedule: "0 * * * *" }),
853
897
  * triggers.scheduled({ schedule: "30 0 * * *" }),
854
898
  * triggers.email({ addresses: ["support@example.com"] }),
899
+ * triggers.connect({ protocol: "tcp", port: 5432 }),
855
900
  * ],
856
901
  * });
857
902
  * ```
@@ -1053,7 +1098,7 @@ type Binding = AgentMemoryBinding | AiBinding | AiSearchBinding | AiSearchNamesp
1053
1098
  /**
1054
1099
  * Union of all trigger definitions accepted in `triggers`.
1055
1100
  */
1056
- type Trigger = EmailTrigger | FetchTrigger | QueueConsumerTrigger | ScheduledTrigger;
1101
+ type Trigger = ConnectTrigger | EmailTrigger | FetchTrigger | QueueConsumerTrigger | ScheduledTrigger;
1057
1102
  /**
1058
1103
  * Union of all export definitions accepted in `exports`. Worker entries
1059
1104
  * configure WorkerEntrypoint exports. Durable Object entries configure live
@@ -1134,10 +1179,11 @@ interface WorkerConfig {
1134
1179
  */
1135
1180
  domains?: string[];
1136
1181
  /**
1137
- * Event triggers — fetch routes, queue consumers, cron schedules, and Email
1138
- * Routing addresses
1139
- * — that invoke this Worker. Construct entries with `triggers.fetch(...)`,
1140
- * `triggers.queue(...)`, `triggers.scheduled(...)`, or `triggers.email(...)`.
1182
+ * Event triggers — fetch routes, queue consumers, cron schedules, Email
1183
+ * Routing addresses, and raw sockets — that invoke this Worker.
1184
+ * Construct entries with `triggers.fetch(...)`, `triggers.queue(...)`,
1185
+ * `triggers.scheduled(...)`, `triggers.email(...)`, or
1186
+ * `triggers.connect(...)`.
1141
1187
  *
1142
1188
  * For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#triggers
1143
1189
  */
@@ -1384,7 +1430,7 @@ interface TypedWorkerDefinition<TConfig$1 extends WorkerConfig, TWorkerName exte
1384
1430
  workerName: TWorkerName;
1385
1431
  exportName?: TExportName$1;
1386
1432
  props?: Record<string, unknown>;
1387
- remote?: boolean;
1433
+ dev?: BindingDevOptions;
1388
1434
  }): TypedWorkerBinding<TConfig$1, TExportName$1 extends string ? TExportName$1 : "default">;
1389
1435
  }
1390
1436
  type WorkerConfigExport<T$1 extends WorkerConfig = WorkerConfig> = ConfigInput<T$1>;
@@ -1613,14 +1659,18 @@ type InferMainModule<TUnwrappedConfig$1> = TUnwrappedConfig$1 extends {
1613
1659
  */
1614
1660
  type SettingsConfigInput = Omit<SettingsConfig, "type">;
1615
1661
  /**
1616
- * Declare shared settings.
1617
- * Authored as a named `settings` export.
1662
+ * A settings definition created by {@link defineSettings}.
1618
1663
  */
1619
- declare function defineSettings(config: ConfigInput<SettingsConfigInput>): {
1664
+ interface SettingsDefinition {
1620
1665
  [DEFINITION]: {
1621
1666
  config: ConfigInput<SettingsConfigInput>;
1622
- type: string;
1667
+ type: "settings";
1623
1668
  };
1624
- };
1669
+ }
1670
+ /**
1671
+ * Declare shared settings.
1672
+ * Authored as a named `settings` export.
1673
+ */
1674
+ declare function defineSettings(config: ConfigInput<SettingsConfigInput>): SettingsDefinition;
1625
1675
  //#endregion
1626
- export { RateLimitBinding as $, AgentMemoryBinding as A, DispatchNamespaceBinding as B, exports as C, ScheduledTrigger as D, QueueConsumerTrigger as E, ArtifactsBinding as F, JsonBinding as G, FlagshipBinding as H, AssetsBinding as I, MediaBinding$1 as J, KvBinding as K, Bindings as L, AiSearchBinding as M, AiSearchNamespaceBinding as N, Triggers as O, AnalyticsEngineDatasetBinding as P, R2Binding as Q, BrowserBinding as R, WorkerEntrypointExportOptions as S, FetchTrigger as T, HyperdriveBinding as U, DurableObjectBinding as V, ImagesBinding$1 as W, PipelineBinding as X, MtlsCertificateBinding as Y, QueueBinding as Z, DurableObjectExpectingTransferExport as _, WebSearchBinding as _t, InferMainModule as a, TypedAiBinding as at, Exports as b, WorkflowBinding as bt, WorkerConfigExport as c, TypedPipelineBinding as ct, SettingsConfig as d, TypedWorkflowBinding as dt, SecretBinding as et, WorkerConfig as f, UnsafeBinding as ft, DurableObjectDeletedExport as g, VpcServiceBinding as gt, DurableObjectCreatedExport as h, VpcNetworkBinding as ht, InferEnv as i, TextBinding as it, AiBinding as j, triggers as k, WorkerConfigInput as l, TypedQueueBinding as lt, resolveExportDefinition as m, VersionMetadataBinding as mt, defineSettings as n, SendEmailBinding as nt, UnwrapConfig as o, TypedDurableObjectBinding as ot, ConfigContext as p, VectorizeBinding as pt, LogfwdrBinding as q, InferDurableNamespaces as r, StreamBinding$1 as rt, TypedWorkerDefinition as s, TypedKvBinding as st, SettingsConfigInput as t, SecretsStoreSecretBinding as tt, defineWorker as u, TypedWorkerBinding as ut, DurableObjectRenamedExport as v, WorkerBinding as vt, EmailTrigger as w, WorkerEntrypointExport as x, bindings as xt, DurableObjectTransferredExport as y, WorkerLoaderBinding as yt, D1Binding as z };
1676
+ export { PipelineBinding as $, Triggers as A, Bindings as B, WorkerEntrypointExportOptions as C, WorkflowBinding as Ct, FetchTrigger as D, EmailTrigger as E, AiSearchNamespaceBinding as F, FlagshipBinding as G, D1Binding as H, AnalyticsEngineDatasetBinding as I, JsonBinding as J, HyperdriveBinding as K, ArtifactsBinding as L, AgentMemoryBinding as M, AiBinding as N, QueueConsumerTrigger as O, AiSearchBinding as P, MtlsCertificateBinding as Q, AssetsBinding as R, WorkerEntrypointExport as S, WorkerLoaderBinding as St, ConnectTrigger as T, DispatchNamespaceBinding as U, BrowserBinding as V, DurableObjectBinding as W, LogfwdrBinding as X, KvBinding as Y, MediaBinding$1 as Z, DurableObjectDeletedExport as _, VersionMetadataBinding as _t, InferEnv as a, SendEmailBinding as at, DurableObjectTransferredExport as b, WebSearchBinding as bt, TypedWorkerDefinition as c, TypedAiBinding as ct, defineWorker as d, TypedPipelineBinding as dt, QueueBinding as et, SettingsConfig as f, TypedQueueBinding as ft, DurableObjectCreatedExport as g, VectorizeBinding as gt, resolveExportDefinition as h, UnsafeBinding as ht, InferDurableNamespaces as i, SecretsStoreSecretBinding as it, triggers as j, ScheduledTrigger as k, WorkerConfigExport as l, TypedDurableObjectBinding as lt, ConfigContext as m, TypedWorkflowBinding as mt, SettingsDefinition as n, RateLimitBinding as nt, InferMainModule as o, StreamBinding$1 as ot, WorkerConfig as p, TypedWorkerBinding as pt, ImagesBinding$1 as q, defineSettings as r, SecretBinding as rt, UnwrapConfig as s, TextBinding as st, SettingsConfigInput as t, R2Binding as tt, WorkerConfigInput as u, TypedKvBinding as ut, DurableObjectExpectingTransferExport as v, VpcNetworkBinding as vt, exports as w, bindings as wt, Exports as x, WorkerBinding as xt, DurableObjectRenamedExport as y, VpcServiceBinding as yt, BindingDevOptions as z };
package/dist/public.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as RateLimitBinding, A as AgentMemoryBinding, B as DispatchNamespaceBinding, C as exports, D as ScheduledTrigger, E as QueueConsumerTrigger, F as ArtifactsBinding, G as JsonBinding, H as FlagshipBinding, I as AssetsBinding, J as MediaBinding, K as KvBinding, L as Bindings, M as AiSearchBinding, N as AiSearchNamespaceBinding, O as Triggers, P as AnalyticsEngineDatasetBinding, Q as R2Binding, R as BrowserBinding, S as WorkerEntrypointExportOptions, T as FetchTrigger, U as HyperdriveBinding, V as DurableObjectBinding, W as ImagesBinding, X as PipelineBinding, Y as MtlsCertificateBinding, Z as QueueBinding, _ as DurableObjectExpectingTransferExport, _t as WebSearchBinding, a as InferMainModule, at as TypedAiBinding, b as Exports, bt as WorkflowBinding, c as WorkerConfigExport, ct as TypedPipelineBinding, d as SettingsConfig, dt as TypedWorkflowBinding, et as SecretBinding, f as WorkerConfig, ft as UnsafeBinding, g as DurableObjectDeletedExport, gt as VpcServiceBinding, h as DurableObjectCreatedExport, ht as VpcNetworkBinding, i as InferEnv, it as TextBinding, j as AiBinding, k as triggers, l as WorkerConfigInput, lt as TypedQueueBinding, mt as VersionMetadataBinding, n as defineSettings, nt as SendEmailBinding, o as UnwrapConfig, ot as TypedDurableObjectBinding, p as ConfigContext, pt as VectorizeBinding, q as LogfwdrBinding, r as InferDurableNamespaces, rt as StreamBinding, s as TypedWorkerDefinition, st as TypedKvBinding, t as SettingsConfigInput, tt as SecretsStoreSecretBinding, u as defineWorker, ut as TypedWorkerBinding, v as DurableObjectRenamedExport, vt as WorkerBinding, w as EmailTrigger, x as WorkerEntrypointExport, xt as bindings, y as DurableObjectTransferredExport, yt as WorkerLoaderBinding, z as D1Binding } from "./public-CwG0JcrK.mjs";
2
- export { AgentMemoryBinding, AiBinding, AiSearchBinding, AiSearchNamespaceBinding, AnalyticsEngineDatasetBinding, ArtifactsBinding, AssetsBinding, Bindings, BrowserBinding, ConfigContext, D1Binding, DispatchNamespaceBinding, DurableObjectBinding, DurableObjectCreatedExport, DurableObjectDeletedExport, DurableObjectExpectingTransferExport, DurableObjectRenamedExport, DurableObjectTransferredExport, EmailTrigger, Exports, FetchTrigger, FlagshipBinding, HyperdriveBinding, ImagesBinding, InferDurableNamespaces, InferEnv, InferMainModule, JsonBinding, KvBinding, LogfwdrBinding, MediaBinding, MtlsCertificateBinding, PipelineBinding, QueueBinding, QueueConsumerTrigger, R2Binding, RateLimitBinding, ScheduledTrigger, SecretBinding, SecretsStoreSecretBinding, SendEmailBinding, SettingsConfig, SettingsConfigInput, StreamBinding, TextBinding, Triggers, TypedAiBinding, TypedDurableObjectBinding, TypedKvBinding, TypedPipelineBinding, TypedQueueBinding, TypedWorkerBinding, TypedWorkerDefinition, TypedWorkflowBinding, UnsafeBinding, UnwrapConfig, VectorizeBinding, VersionMetadataBinding, VpcNetworkBinding, VpcServiceBinding, WebSearchBinding, WorkerBinding, WorkerConfig, WorkerConfigExport, WorkerConfigInput, WorkerEntrypointExport, WorkerEntrypointExportOptions, WorkerLoaderBinding, WorkflowBinding, bindings, defineSettings, defineWorker, exports, triggers };
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, 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
+ export { AgentMemoryBinding, AiBinding, AiSearchBinding, AiSearchNamespaceBinding, AnalyticsEngineDatasetBinding, ArtifactsBinding, AssetsBinding, BindingDevOptions, Bindings, BrowserBinding, ConfigContext, ConnectTrigger, D1Binding, DispatchNamespaceBinding, DurableObjectBinding, DurableObjectCreatedExport, DurableObjectDeletedExport, DurableObjectExpectingTransferExport, DurableObjectRenamedExport, DurableObjectTransferredExport, EmailTrigger, Exports, FetchTrigger, FlagshipBinding, HyperdriveBinding, ImagesBinding, InferDurableNamespaces, InferEnv, InferMainModule, JsonBinding, KvBinding, LogfwdrBinding, MediaBinding, MtlsCertificateBinding, PipelineBinding, QueueBinding, QueueConsumerTrigger, R2Binding, RateLimitBinding, ScheduledTrigger, SecretBinding, SecretsStoreSecretBinding, SendEmailBinding, SettingsConfig, SettingsConfigInput, SettingsDefinition, StreamBinding, TextBinding, Triggers, TypedAiBinding, TypedDurableObjectBinding, TypedKvBinding, TypedPipelineBinding, TypedQueueBinding, TypedWorkerBinding, TypedWorkerDefinition, TypedWorkflowBinding, UnsafeBinding, UnwrapConfig, VectorizeBinding, VersionMetadataBinding, VpcNetworkBinding, VpcServiceBinding, WebSearchBinding, WorkerBinding, WorkerConfig, WorkerConfigExport, WorkerConfigInput, WorkerEntrypointExport, WorkerEntrypointExportOptions, WorkerLoaderBinding, WorkflowBinding, bindings, defineSettings, defineWorker, exports, triggers };
package/dist/public.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { a as triggers, i as exports, n as defineWorker, o as bindings, t as defineSettings } from "./public-CgtRnd2s.mjs";
1
+ import { a as triggers, i as exports, n as defineWorker, o as bindings, t as defineSettings } from "./public-BwQqexwo.mjs";
2
2
 
3
3
  export { bindings, defineSettings, defineWorker, exports, triggers };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudflare/config",
3
- "version": "0.6.0",
3
+ "version": "0.8.0",
4
4
  "description": "Definitions and utilities for configuring Cloudflare Workers and related products. This is not yet stable enough for external use — APIs may change without notice.",
5
5
  "homepage": "https://github.com/cloudflare/workers-sdk/tree/main/packages/config#readme",
6
6
  "bugs": {
@@ -31,13 +31,13 @@
31
31
  "zod": "4.4.3"
32
32
  },
33
33
  "devDependencies": {
34
- "@cloudflare/workers-types": "^5.20260815.1",
34
+ "@cloudflare/workers-types": "^5.20260825.1",
35
35
  "ts-dedent": "^2.2.0",
36
36
  "tsdown": "0.16.3",
37
37
  "typescript": "5.8.3",
38
38
  "vitest": "4.1.0",
39
- "@cloudflare/workers-utils": "0.33.1",
40
- "@cloudflare/workers-tsconfig": "0.0.0"
39
+ "@cloudflare/workers-tsconfig": "0.0.0",
40
+ "@cloudflare/workers-utils": "0.34.0"
41
41
  },
42
42
  "workers-sdk": {
43
43
  "prerelease": true