@cloudflare/config 0.8.0 → 0.10.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 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";
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-DZgNmLyp.mjs";
2
2
  import * as z from "zod";
3
3
  import { RawConfig } from "@cloudflare/workers-utils";
4
4
 
@@ -25,7 +25,7 @@ declare const BrowserBindingSchema: z.ZodObject<{
25
25
  }, z.core.$strict>;
26
26
  declare const WorkerBindingSchema: z.ZodObject<{
27
27
  type: z.ZodLiteral<"worker">;
28
- workerName: z.ZodString;
28
+ worker: z.ZodString;
29
29
  exportName: z.ZodOptional<z.ZodString>;
30
30
  props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
31
31
  dev: z.ZodOptional<z.ZodObject<{
@@ -135,7 +135,7 @@ declare const KnownBindingSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
135
135
  type: z.ZodLiteral<"dispatch-namespace">;
136
136
  namespace: z.ZodOptional<z.ZodString>;
137
137
  outbound: z.ZodOptional<z.ZodObject<{
138
- workerName: z.ZodString;
138
+ worker: z.ZodString;
139
139
  parameters: z.ZodOptional<z.ZodArray<z.ZodString>>;
140
140
  }, z.core.$strict>>;
141
141
  dev: z.ZodOptional<z.ZodObject<{
@@ -143,7 +143,7 @@ declare const KnownBindingSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
143
143
  }, z.core.$strict>>;
144
144
  }, z.core.$strict>, z.ZodObject<{
145
145
  type: z.ZodLiteral<"durable-object">;
146
- workerName: z.ZodString;
146
+ worker: z.ZodString;
147
147
  exportName: z.ZodString;
148
148
  }, z.core.$strict>, z.ZodObject<{
149
149
  type: z.ZodLiteral<"flagship">;
@@ -296,7 +296,7 @@ declare const KnownBindingSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
296
296
  }, z.core.$strict>>;
297
297
  }, z.core.$strict>, z.ZodObject<{
298
298
  type: z.ZodLiteral<"worker">;
299
- workerName: z.ZodString;
299
+ worker: z.ZodString;
300
300
  exportName: z.ZodOptional<z.ZodString>;
301
301
  props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
302
302
  dev: z.ZodOptional<z.ZodObject<{
@@ -398,7 +398,7 @@ declare const ExportSchema: z.ZodUnion<readonly [z.ZodObject<{
398
398
  }, z.core.$strict>>;
399
399
  }, z.core.$strict>]>;
400
400
  declare const TailConsumerSchema: z.ZodObject<{
401
- workerName: z.ZodString;
401
+ worker: z.ZodString;
402
402
  streaming: z.ZodOptional<z.ZodBoolean>;
403
403
  }, z.core.$strict>;
404
404
  /**
@@ -455,7 +455,7 @@ declare const InputWorkerSchema: z.ZodObject<{
455
455
  address: z.ZodOptional<z.ZodString>;
456
456
  }, z.core.$strict>], "type">>>;
457
457
  tailConsumers: z.ZodOptional<z.ZodArray<z.ZodObject<{
458
- workerName: z.ZodString;
458
+ worker: z.ZodString;
459
459
  streaming: z.ZodOptional<z.ZodBoolean>;
460
460
  }, z.core.$strict>>>;
461
461
  cache: z.ZodOptional<z.ZodObject<{
@@ -486,6 +486,7 @@ declare const InputWorkerSchema: z.ZodObject<{
486
486
  observability: z.ZodOptional<z.ZodObject<{
487
487
  enabled: z.ZodOptional<z.ZodBoolean>;
488
488
  headSamplingRate: z.ZodOptional<z.ZodNumber>;
489
+ redactQueryString: z.ZodOptional<z.ZodBoolean>;
489
490
  logs: z.ZodOptional<z.ZodObject<{
490
491
  enabled: z.ZodOptional<z.ZodBoolean>;
491
492
  headSamplingRate: z.ZodOptional<z.ZodNumber>;
@@ -652,7 +653,7 @@ declare const ConfigExportsSchema: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodUnkno
652
653
  address: z.ZodOptional<z.ZodString>;
653
654
  }, z.core.$strict>], "type">>>;
654
655
  tailConsumers: z.ZodOptional<z.ZodArray<z.ZodObject<{
655
- workerName: z.ZodString;
656
+ worker: z.ZodString;
656
657
  streaming: z.ZodOptional<z.ZodBoolean>;
657
658
  }, z.core.$strict>>>;
658
659
  cache: z.ZodOptional<z.ZodObject<{
@@ -683,6 +684,7 @@ declare const ConfigExportsSchema: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodUnkno
683
684
  observability: z.ZodOptional<z.ZodObject<{
684
685
  enabled: z.ZodOptional<z.ZodBoolean>;
685
686
  headSamplingRate: z.ZodOptional<z.ZodNumber>;
687
+ redactQueryString: z.ZodOptional<z.ZodBoolean>;
686
688
  logs: z.ZodOptional<z.ZodObject<{
687
689
  enabled: z.ZodOptional<z.ZodBoolean>;
688
690
  headSamplingRate: z.ZodOptional<z.ZodNumber>;
@@ -823,7 +825,7 @@ declare const OutputWorkerSchema: z.ZodObject<{
823
825
  address: z.ZodOptional<z.ZodString>;
824
826
  }, z.core.$strict>], "type">>>;
825
827
  tailConsumers: z.ZodOptional<z.ZodArray<z.ZodObject<{
826
- workerName: z.ZodString;
828
+ worker: z.ZodString;
827
829
  streaming: z.ZodOptional<z.ZodBoolean>;
828
830
  }, z.core.$strict>>>;
829
831
  cache: z.ZodOptional<z.ZodObject<{
@@ -854,6 +856,7 @@ declare const OutputWorkerSchema: z.ZodObject<{
854
856
  observability: z.ZodOptional<z.ZodObject<{
855
857
  enabled: z.ZodOptional<z.ZodBoolean>;
856
858
  headSamplingRate: z.ZodOptional<z.ZodNumber>;
859
+ redactQueryString: z.ZodOptional<z.ZodBoolean>;
857
860
  logs: z.ZodOptional<z.ZodObject<{
858
861
  enabled: z.ZodOptional<z.ZodBoolean>;
859
862
  headSamplingRate: z.ZodOptional<z.ZodNumber>;
@@ -922,6 +925,10 @@ declare const OutputWorkerSchema: z.ZodObject<{
922
925
  }, z.core.$strict>>;
923
926
  }, z.core.$strict>]>>>;
924
927
  manifest: z.ZodOptional<z.ZodObject<{
928
+ type: z.ZodEnum<{
929
+ partial: "partial";
930
+ complete: "complete";
931
+ }>;
925
932
  mainModule: z.ZodString;
926
933
  modules: z.ZodRecord<z.ZodString, z.ZodObject<{
927
934
  type: z.ZodEnum<{