@cloudflare/config 0.22.0 → 0.23.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 defineConfig, A as RateLimitBinding, B as UnsafeBinding, C as KvBinding, Ct as WorkerEntrypointExport, D as PipelineBinding, Dt as exports, E as MtlsCertificateBinding, Et as WorkflowExportOptions, F as TextBinding, G as WorkerBinding, H as VersionMetadataBinding, I as TypedAiBinding, J as bindings, K as WorkerLoaderBinding, L as TypedKvBinding, M as SecretsStoreSecretBinding, N as SendEmailBinding, O as QueueBinding, P as StreamBinding, Q as WorkerReference, R as TypedPipelineBinding, S as K2Record, St as Exports, T as MediaBinding, Tt as WorkflowExport, U as VpcNetworkBinding, V as VectorizeBinding, W as VpcServiceBinding, X as ContainerDefinition, Y as ConfigContext, Z as WorkerDefinition, _ as ImagesBinding, _t as DurableObjectCreatedExport, a as AnalyticsEngineDatasetBinding, at as WorkerConfig, b as K2ProduceResult, bt as DurableObjectRenamedExport, c as AssetsBinding, ct as FetchTrigger, d as BrowserBinding, dt as Triggers, et as defineContainer, f as D1Binding, ft as triggers, g as HyperdriveBinding, gt as UnwrapConfig, h as FlagshipBinding, ht as InferMainModule, i as AiSearchNamespaceBinding, it as Settings, j as SecretBinding, k as R2Binding, l as BindingDevOptions, lt as QueueConsumerTrigger, m as DurableObjectBinding, mt as InferEnv, n as AiBinding, nt as CloudflareConfig, o as AnalyticsSQLBinding, ot as ConnectTrigger, p as DispatchNamespaceBinding, pt as InferDurableNamespaces, q as WorkflowBinding, r as AiSearchBinding, rt as ContainerConfig, s as ArtifactsBinding, st as EmailTrigger, t as AgentMemoryBinding, tt as defineWorker, u as Bindings, ut as ScheduledTrigger, v as JsonBinding, vt as DurableObjectDeletedExport, w as LogfwdrBinding, wt as WorkerEntrypointExportOptions, x as K2Producer, xt as DurableObjectTransferredExport, y as K2Binding, yt as DurableObjectExpectingTransferExport, z as TypedQueueBinding } from "./public-
|
|
1
|
+
import { $ as defineConfig, A as RateLimitBinding, B as UnsafeBinding, C as KvBinding, Ct as WorkerEntrypointExport, D as PipelineBinding, Dt as exports, E as MtlsCertificateBinding, Et as WorkflowExportOptions, F as TextBinding, G as WorkerBinding, H as VersionMetadataBinding, I as TypedAiBinding, J as bindings, K as WorkerLoaderBinding, L as TypedKvBinding, M as SecretsStoreSecretBinding, N as SendEmailBinding, O as QueueBinding, P as StreamBinding, Q as WorkerReference, R as TypedPipelineBinding, S as K2Record, St as Exports, T as MediaBinding, Tt as WorkflowExport, U as VpcNetworkBinding, V as VectorizeBinding, W as VpcServiceBinding, X as ContainerDefinition, Y as ConfigContext, Z as WorkerDefinition, _ as ImagesBinding, _t as DurableObjectCreatedExport, a as AnalyticsEngineDatasetBinding, at as WorkerConfig, b as K2ProduceResult, bt as DurableObjectRenamedExport, c as AssetsBinding, ct as FetchTrigger, d as BrowserBinding, dt as Triggers, et as defineContainer, f as D1Binding, ft as triggers, g as HyperdriveBinding, gt as UnwrapConfig, h as FlagshipBinding, ht as InferMainModule, i as AiSearchNamespaceBinding, it as Settings, j as SecretBinding, k as R2Binding, l as BindingDevOptions, lt as QueueConsumerTrigger, m as DurableObjectBinding, mt as InferEnv, n as AiBinding, nt as CloudflareConfig, o as AnalyticsSQLBinding, ot as ConnectTrigger, p as DispatchNamespaceBinding, pt as InferDurableNamespaces, q as WorkflowBinding, r as AiSearchBinding, rt as ContainerConfig, s as ArtifactsBinding, st as EmailTrigger, t as AgentMemoryBinding, tt as defineWorker, u as Bindings, ut as ScheduledTrigger, v as JsonBinding, vt as DurableObjectDeletedExport, w as LogfwdrBinding, wt as WorkerEntrypointExportOptions, x as K2Producer, xt as DurableObjectTransferredExport, y as K2Binding, yt as DurableObjectExpectingTransferExport, z as TypedQueueBinding } from "./public-Cf9CrRAi.mjs";
|
|
2
2
|
import * as z from "zod";
|
|
3
3
|
import { RawConfig } from "@cloudflare/workers-utils";
|
|
4
4
|
|
|
@@ -404,6 +404,7 @@ declare const InputContainerSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
404
404
|
jurisdiction: z.ZodOptional<z.ZodEnum<{
|
|
405
405
|
eu: "eu";
|
|
406
406
|
fedramp: "fedramp";
|
|
407
|
+
us: "us";
|
|
407
408
|
}>>;
|
|
408
409
|
}, z.core.$strict>>;
|
|
409
410
|
rollout: z.ZodOptional<z.ZodObject<{
|
|
@@ -509,6 +510,7 @@ declare const OutputContainerSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
509
510
|
jurisdiction: z.ZodOptional<z.ZodEnum<{
|
|
510
511
|
eu: "eu";
|
|
511
512
|
fedramp: "fedramp";
|
|
513
|
+
us: "us";
|
|
512
514
|
}>>;
|
|
513
515
|
}, z.core.$strict>>;
|
|
514
516
|
rollout: z.ZodOptional<z.ZodObject<{
|
|
@@ -1078,6 +1080,7 @@ declare const InputConfigSchema: z.ZodObject<{
|
|
|
1078
1080
|
jurisdiction: z.ZodOptional<z.ZodEnum<{
|
|
1079
1081
|
eu: "eu";
|
|
1080
1082
|
fedramp: "fedramp";
|
|
1083
|
+
us: "us";
|
|
1081
1084
|
}>>;
|
|
1082
1085
|
}, z.core.$strict>>;
|
|
1083
1086
|
rollout: z.ZodOptional<z.ZodObject<{
|
package/dist/index.mjs
CHANGED
|
@@ -382,7 +382,11 @@ const StandardContainerBaseSchema = BaseContainerSchema.extend({
|
|
|
382
382
|
"OC",
|
|
383
383
|
"AFR"
|
|
384
384
|
])).optional(),
|
|
385
|
-
jurisdiction: z.enum([
|
|
385
|
+
jurisdiction: z.enum([
|
|
386
|
+
"eu",
|
|
387
|
+
"fedramp",
|
|
388
|
+
"us"
|
|
389
|
+
]).optional()
|
|
386
390
|
}).optional(),
|
|
387
391
|
rollout: z.strictObject({
|
|
388
392
|
kind: z.enum([
|
|
@@ -755,7 +755,7 @@ interface StandardContainerConfig extends BaseContainerConfig {
|
|
|
755
755
|
/** Limit Container placement to specific geographic regions. */
|
|
756
756
|
regions?: Array<"ENAM" | "WNAM" | "EEUR" | "WEUR" | "APAC" | "SAM" | "ME" | "OC" | "AFR">;
|
|
757
757
|
/** Restrict Containers to compliance boundaries. */
|
|
758
|
-
jurisdiction?: "eu" | "fedramp";
|
|
758
|
+
jurisdiction?: "eu" | "fedramp" | "us";
|
|
759
759
|
};
|
|
760
760
|
rollout?: {
|
|
761
761
|
/**
|
package/dist/public.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as defineConfig, A as RateLimitBinding, B as UnsafeBinding, C as KvBinding, Ct as WorkerEntrypointExport, D as PipelineBinding, Dt as exports, E as MtlsCertificateBinding, Et as WorkflowExportOptions, F as TextBinding, G as WorkerBinding, H as VersionMetadataBinding, I as TypedAiBinding, J as bindings, K as WorkerLoaderBinding, L as TypedKvBinding, M as SecretsStoreSecretBinding, N as SendEmailBinding, O as QueueBinding, P as StreamBinding, Q as WorkerReference, R as TypedPipelineBinding, S as K2Record, St as Exports, T as MediaBinding, Tt as WorkflowExport, U as VpcNetworkBinding, V as VectorizeBinding, W as VpcServiceBinding, X as ContainerDefinition, Y as ConfigContext, Z as WorkerDefinition, _ as ImagesBinding, _t as DurableObjectCreatedExport, a as AnalyticsEngineDatasetBinding, at as WorkerConfig, b as K2ProduceResult, bt as DurableObjectRenamedExport, c as AssetsBinding, ct as FetchTrigger, d as BrowserBinding, dt as Triggers, et as defineContainer, f as D1Binding, ft as triggers, g as HyperdriveBinding, gt as UnwrapConfig, h as FlagshipBinding, ht as InferMainModule, i as AiSearchNamespaceBinding, it as Settings, j as SecretBinding, k as R2Binding, l as BindingDevOptions, lt as QueueConsumerTrigger, m as DurableObjectBinding, mt as InferEnv, n as AiBinding, nt as CloudflareConfig, o as AnalyticsSQLBinding, ot as ConnectTrigger, p as DispatchNamespaceBinding, pt as InferDurableNamespaces, q as WorkflowBinding, r as AiSearchBinding, rt as ContainerConfig, s as ArtifactsBinding, st as EmailTrigger, t as AgentMemoryBinding, tt as defineWorker, u as Bindings, ut as ScheduledTrigger, v as JsonBinding, vt as DurableObjectDeletedExport, w as LogfwdrBinding, wt as WorkerEntrypointExportOptions, x as K2Producer, xt as DurableObjectTransferredExport, y as K2Binding, yt as DurableObjectExpectingTransferExport, z as TypedQueueBinding } from "./public-
|
|
1
|
+
import { $ as defineConfig, A as RateLimitBinding, B as UnsafeBinding, C as KvBinding, Ct as WorkerEntrypointExport, D as PipelineBinding, Dt as exports, E as MtlsCertificateBinding, Et as WorkflowExportOptions, F as TextBinding, G as WorkerBinding, H as VersionMetadataBinding, I as TypedAiBinding, J as bindings, K as WorkerLoaderBinding, L as TypedKvBinding, M as SecretsStoreSecretBinding, N as SendEmailBinding, O as QueueBinding, P as StreamBinding, Q as WorkerReference, R as TypedPipelineBinding, S as K2Record, St as Exports, T as MediaBinding, Tt as WorkflowExport, U as VpcNetworkBinding, V as VectorizeBinding, W as VpcServiceBinding, X as ContainerDefinition, Y as ConfigContext, Z as WorkerDefinition, _ as ImagesBinding, _t as DurableObjectCreatedExport, a as AnalyticsEngineDatasetBinding, at as WorkerConfig, b as K2ProduceResult, bt as DurableObjectRenamedExport, c as AssetsBinding, ct as FetchTrigger, d as BrowserBinding, dt as Triggers, et as defineContainer, f as D1Binding, ft as triggers, g as HyperdriveBinding, gt as UnwrapConfig, h as FlagshipBinding, ht as InferMainModule, i as AiSearchNamespaceBinding, it as Settings, j as SecretBinding, k as R2Binding, l as BindingDevOptions, lt as QueueConsumerTrigger, m as DurableObjectBinding, mt as InferEnv, n as AiBinding, nt as CloudflareConfig, o as AnalyticsSQLBinding, ot as ConnectTrigger, p as DispatchNamespaceBinding, pt as InferDurableNamespaces, q as WorkflowBinding, r as AiSearchBinding, rt as ContainerConfig, s as ArtifactsBinding, st as EmailTrigger, t as AgentMemoryBinding, tt as defineWorker, u as Bindings, ut as ScheduledTrigger, v as JsonBinding, vt as DurableObjectDeletedExport, w as LogfwdrBinding, wt as WorkerEntrypointExportOptions, x as K2Producer, xt as DurableObjectTransferredExport, y as K2Binding, yt as DurableObjectExpectingTransferExport, z as TypedQueueBinding } from "./public-Cf9CrRAi.mjs";
|
|
2
2
|
export { AgentMemoryBinding, AiBinding, AiSearchBinding, AiSearchNamespaceBinding, AnalyticsEngineDatasetBinding, AnalyticsSQLBinding, ArtifactsBinding, AssetsBinding, BindingDevOptions, Bindings, BrowserBinding, CloudflareConfig, ConfigContext, ConnectTrigger, ContainerConfig, ContainerDefinition, D1Binding, DispatchNamespaceBinding, DurableObjectBinding, DurableObjectCreatedExport, DurableObjectDeletedExport, DurableObjectExpectingTransferExport, DurableObjectRenamedExport, DurableObjectTransferredExport, EmailTrigger, Exports, FetchTrigger, FlagshipBinding, HyperdriveBinding, ImagesBinding, InferDurableNamespaces, InferEnv, InferMainModule, JsonBinding, K2Binding, K2ProduceResult, K2Producer, K2Record, KvBinding, LogfwdrBinding, MediaBinding, MtlsCertificateBinding, PipelineBinding, QueueBinding, QueueConsumerTrigger, R2Binding, RateLimitBinding, ScheduledTrigger, SecretBinding, SecretsStoreSecretBinding, SendEmailBinding, Settings, StreamBinding, TextBinding, Triggers, TypedAiBinding, TypedKvBinding, TypedPipelineBinding, TypedQueueBinding, UnsafeBinding, UnwrapConfig, VectorizeBinding, VersionMetadataBinding, VpcNetworkBinding, VpcServiceBinding, WorkerBinding, WorkerConfig, WorkerDefinition, WorkerEntrypointExport, WorkerEntrypointExportOptions, WorkerLoaderBinding, WorkerReference, WorkflowBinding, WorkflowExport, WorkflowExportOptions, bindings, defineConfig, defineContainer, defineWorker, exports, triggers };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudflare/config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.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.
|
|
34
|
+
"@cloudflare/workers-types": "^5.20261001.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
39
|
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
40
|
-
"@cloudflare/workers-utils": "0.
|
|
40
|
+
"@cloudflare/workers-utils": "0.46.0"
|
|
41
41
|
},
|
|
42
42
|
"workers-sdk": {
|
|
43
43
|
"prerelease": true
|