@cloudflare/config 0.24.1 → 0.26.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 RateLimitBindingOptions, $t as triggers, A as ImagesBinding, At as WorkerReference, B as LogfwdrBinding, Bt as WorkerConfig, C as DispatchNamespaceBindingOptions, Ct as WorkflowBinding, D as FlagshipBindingOptions, Dt as ConfigContext, E as FlagshipBinding, Et as Json, F as K2ProduceResult, Ft as ContainerConfig, G as MtlsCertificateBindingOptions, Gt as EmailTriggerOptions, H as MediaBinding, Ht as ConnectTriggerOptions, I as K2Producer, It as ContainerObservabilityConfig, J as QueueBinding, Jt as QueueConsumerTrigger, K as PipelineBinding, Kt as FetchTrigger, L as K2Record, Lt as DurableObjectContainerConfig, M as JsonBinding, Mt as defineContainer, N as K2Binding, Nt as defineWorker, O as HyperdriveBinding, Ot as ContainerDefinition, P as K2BindingOptions, Pt as CloudflareConfig, Q as RateLimitBinding, Qt as Triggers, R as KvBinding, Rt as Settings, S as DispatchNamespaceBinding, St as WorkerLoaderBinding, T as DurableObjectBindingOptions, Tt as bindings, U as MediaBindingOptions, Ut as ConnectTriggerOptionsBase, V as LogfwdrBindingOptions, Vt as ConnectTrigger, W as MtlsCertificateBinding, Wt as EmailTrigger, X as R2Binding, Xt as ScheduledTrigger, Y as QueueBindingOptions, Yt as QueueConsumerTriggerOptions, Z as R2BindingOptions, Zt as ScheduledTriggerOptions, _ as Bindings, _n as WorkerEntrypointExport, _t as VpcNetworkBindingOptions, a as AiSearchBinding, an as DurableObjectCreatedExport, at as StreamBinding, b as D1Binding, bn as WorkflowExportOptions, bt as WorkerBinding, c as AiSearchNamespaceBindingOptions, cn as DurableObjectDeletedExportOptions, ct as TypedAiBinding, d as AnalyticsSQLBinding, dn as DurableObjectExportOptions, dt as TypedQueueBinding, en as DefaultModule, et as SecretBinding, f as AnalyticsSQLBindingOptions, fn as DurableObjectRenamedExport, ft as UnsafeBinding, g as BindingDevOptions, gn as Exports, gt as VpcNetworkBinding, h as AssetsBinding, hn as DurableObjectTransferredExportOptions, ht as VersionMetadataBinding, i as AiBindingOptions, in as UnwrapConfig, it as SendEmailBindingOptions, j as ImagesBindingOptions, jt as defineConfig, k as HyperdriveBindingOptions, kt as WorkerDefinition, l as AnalyticsEngineDatasetBinding, ln as DurableObjectExpectingTransferExport, lt as TypedKvBinding, m as ArtifactsBindingOptions, mn as DurableObjectTransferredExport, mt as VectorizeBindingOptions, n as AgentMemoryBindingOptions, nn as InferEnv, nt as SecretsStoreSecretBindingOptions, o as AiSearchBindingOptions, on as DurableObjectCreatedExportOptions, ot as StreamBindingOptions, p as ArtifactsBinding, pn as DurableObjectRenamedExportOptions, pt as VectorizeBinding, q as PipelineBindingOptions, qt as FetchTriggerOptions, r as AiBinding, rn as InferMainModule, rt as SendEmailBinding, s as AiSearchNamespaceBinding, sn as DurableObjectDeletedExport, st as TextBinding, t as AgentMemoryBinding, tn as InferDurableNamespaces, tt as SecretsStoreSecretBinding, u as AnalyticsEngineDatasetBindingOptions, un as DurableObjectExpectingTransferExportOptions, ut as TypedPipelineBinding, v as BrowserBinding, vn as WorkerEntrypointExportOptions, vt as VpcServiceBinding, w as DurableObjectBinding, wt as WorkflowBindingOptions, x as D1BindingOptions, xn as exports, xt as WorkerBindingOptions, y as BrowserBindingOptions, yn as WorkflowExport, yt as VpcServiceBindingOptions, z as KvBindingOptions, zt as StandardContainerConfig } from "./public-
|
|
1
|
+
import { $ as RateLimitBindingOptions, $t as triggers, A as ImagesBinding, At as WorkerReference, B as LogfwdrBinding, Bt as WorkerConfig, C as DispatchNamespaceBindingOptions, Ct as WorkflowBinding, D as FlagshipBindingOptions, Dt as ConfigContext, E as FlagshipBinding, Et as Json, F as K2ProduceResult, Ft as ContainerConfig, G as MtlsCertificateBindingOptions, Gt as EmailTriggerOptions, H as MediaBinding, Ht as ConnectTriggerOptions, I as K2Producer, It as ContainerObservabilityConfig, J as QueueBinding, Jt as QueueConsumerTrigger, K as PipelineBinding, Kt as FetchTrigger, L as K2Record, Lt as DurableObjectContainerConfig, M as JsonBinding, Mt as defineContainer, N as K2Binding, Nt as defineWorker, O as HyperdriveBinding, Ot as ContainerDefinition, P as K2BindingOptions, Pt as CloudflareConfig, Q as RateLimitBinding, Qt as Triggers, R as KvBinding, Rt as Settings, S as DispatchNamespaceBinding, St as WorkerLoaderBinding, T as DurableObjectBindingOptions, Tt as bindings, U as MediaBindingOptions, Ut as ConnectTriggerOptionsBase, V as LogfwdrBindingOptions, Vt as ConnectTrigger, W as MtlsCertificateBinding, Wt as EmailTrigger, X as R2Binding, Xt as ScheduledTrigger, Y as QueueBindingOptions, Yt as QueueConsumerTriggerOptions, Z as R2BindingOptions, Zt as ScheduledTriggerOptions, _ as Bindings, _n as WorkerEntrypointExport, _t as VpcNetworkBindingOptions, a as AiSearchBinding, an as DurableObjectCreatedExport, at as StreamBinding, b as D1Binding, bn as WorkflowExportOptions, bt as WorkerBinding, c as AiSearchNamespaceBindingOptions, cn as DurableObjectDeletedExportOptions, ct as TypedAiBinding, d as AnalyticsSQLBinding, dn as DurableObjectExportOptions, dt as TypedQueueBinding, en as DefaultModule, et as SecretBinding, f as AnalyticsSQLBindingOptions, fn as DurableObjectRenamedExport, ft as UnsafeBinding, g as BindingDevOptions, gn as Exports, gt as VpcNetworkBinding, h as AssetsBinding, hn as DurableObjectTransferredExportOptions, ht as VersionMetadataBinding, i as AiBindingOptions, in as UnwrapConfig, it as SendEmailBindingOptions, j as ImagesBindingOptions, jt as defineConfig, k as HyperdriveBindingOptions, kt as WorkerDefinition, l as AnalyticsEngineDatasetBinding, ln as DurableObjectExpectingTransferExport, lt as TypedKvBinding, m as ArtifactsBindingOptions, mn as DurableObjectTransferredExport, mt as VectorizeBindingOptions, n as AgentMemoryBindingOptions, nn as InferEnv, nt as SecretsStoreSecretBindingOptions, o as AiSearchBindingOptions, on as DurableObjectCreatedExportOptions, ot as StreamBindingOptions, p as ArtifactsBinding, pn as DurableObjectRenamedExportOptions, pt as VectorizeBinding, q as PipelineBindingOptions, qt as FetchTriggerOptions, r as AiBinding, rn as InferMainModule, rt as SendEmailBinding, s as AiSearchNamespaceBinding, sn as DurableObjectDeletedExport, st as TextBinding, t as AgentMemoryBinding, tn as InferDurableNamespaces, tt as SecretsStoreSecretBinding, u as AnalyticsEngineDatasetBindingOptions, un as DurableObjectExpectingTransferExportOptions, ut as TypedPipelineBinding, v as BrowserBinding, vn as WorkerEntrypointExportOptions, vt as VpcServiceBinding, w as DurableObjectBinding, wt as WorkflowBindingOptions, x as D1BindingOptions, xn as exports, xt as WorkerBindingOptions, y as BrowserBindingOptions, yn as WorkflowExport, yt as VpcServiceBindingOptions, z as KvBindingOptions, zt as StandardContainerConfig } from "./public-tQ5CqH1S.mjs";
|
|
2
2
|
import * as z from "zod";
|
|
3
3
|
import { RawConfig } from "@cloudflare/workers-utils";
|
|
4
4
|
|
|
@@ -770,6 +770,12 @@ declare const InputWorkerSchema: z.ZodObject<{
|
|
|
770
770
|
destinations: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
771
771
|
}, z.core.$strict>>;
|
|
772
772
|
}, z.core.$strict>>;
|
|
773
|
+
access: z.ZodOptional<z.ZodObject<{
|
|
774
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
775
|
+
aud: z.ZodString;
|
|
776
|
+
identity: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
777
|
+
}, z.core.$strict>>;
|
|
778
|
+
}, z.core.$strict>>;
|
|
773
779
|
workersDev: z.ZodOptional<z.ZodBoolean>;
|
|
774
780
|
previewUrls: z.ZodOptional<z.ZodBoolean>;
|
|
775
781
|
firstPartyWorker: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -958,6 +964,12 @@ declare const InputConfigSchema: z.ZodObject<{
|
|
|
958
964
|
destinations: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
959
965
|
}, z.core.$strict>>;
|
|
960
966
|
}, z.core.$strict>>;
|
|
967
|
+
access: z.ZodOptional<z.ZodObject<{
|
|
968
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
969
|
+
aud: z.ZodString;
|
|
970
|
+
identity: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
971
|
+
}, z.core.$strict>>;
|
|
972
|
+
}, z.core.$strict>>;
|
|
961
973
|
workersDev: z.ZodOptional<z.ZodBoolean>;
|
|
962
974
|
previewUrls: z.ZodOptional<z.ZodBoolean>;
|
|
963
975
|
firstPartyWorker: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1272,6 +1284,12 @@ declare const OutputWorkerSchema: z.ZodObject<{
|
|
|
1272
1284
|
destinations: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1273
1285
|
}, z.core.$strict>>;
|
|
1274
1286
|
}, z.core.$strict>>;
|
|
1287
|
+
access: z.ZodOptional<z.ZodObject<{
|
|
1288
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
1289
|
+
aud: z.ZodString;
|
|
1290
|
+
identity: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1291
|
+
}, z.core.$strict>>;
|
|
1292
|
+
}, z.core.$strict>>;
|
|
1275
1293
|
workersDev: z.ZodOptional<z.ZodBoolean>;
|
|
1276
1294
|
previewUrls: z.ZodOptional<z.ZodBoolean>;
|
|
1277
1295
|
firstPartyWorker: z.ZodOptional<z.ZodBoolean>;
|
package/dist/index.mjs
CHANGED
|
@@ -494,6 +494,10 @@ const ObservabilitySchema = z.strictObject({
|
|
|
494
494
|
destinations: z.array(z.string()).optional()
|
|
495
495
|
}).optional()
|
|
496
496
|
});
|
|
497
|
+
const AccessSchema = z.strictObject({ dev: z.strictObject({
|
|
498
|
+
aud: z.string(),
|
|
499
|
+
identity: z.record(z.string(), z.unknown()).optional()
|
|
500
|
+
}).optional() });
|
|
497
501
|
const PlacementSchema = z.union([
|
|
498
502
|
z.strictObject({
|
|
499
503
|
mode: z.enum(["off", "smart"]),
|
|
@@ -584,6 +588,7 @@ const BaseWorkerSchema = z.strictObject({
|
|
|
584
588
|
limits: LimitsSchema.optional(),
|
|
585
589
|
logpush: z.boolean().optional(),
|
|
586
590
|
observability: ObservabilitySchema.optional(),
|
|
591
|
+
access: AccessSchema.optional(),
|
|
587
592
|
workersDev: z.boolean().optional(),
|
|
588
593
|
previewUrls: z.boolean().optional(),
|
|
589
594
|
firstPartyWorker: z.boolean().optional(),
|
|
@@ -914,6 +919,7 @@ function convertTopLevel(config, result) {
|
|
|
914
919
|
result.limits = limits;
|
|
915
920
|
}
|
|
916
921
|
if (config.observability !== void 0) result.observability = convertObservability(config.observability);
|
|
922
|
+
if (config.access !== void 0) result.access = config.access;
|
|
917
923
|
if (config.cache !== void 0) {
|
|
918
924
|
const cache = { enabled: config.cache.enabled };
|
|
919
925
|
if (config.cache.crossVersionCache !== void 0) cache.cross_version_cache = config.cache.crossVersionCache;
|
|
@@ -1599,10 +1605,14 @@ function createDefinitionResolver(ctx) {
|
|
|
1599
1605
|
return resolved;
|
|
1600
1606
|
};
|
|
1601
1607
|
}
|
|
1602
|
-
async function
|
|
1608
|
+
async function normalizeWorkerEnv(resolved, resolveDefinition) {
|
|
1603
1609
|
if (!isRecord(resolved) || !isRecord(resolved.env)) return resolved;
|
|
1604
1610
|
const env = { ...resolved.env };
|
|
1605
1611
|
for (const [bindingName, binding] of Object.entries(env)) {
|
|
1612
|
+
if (binding === false || binding === null || binding === void 0) {
|
|
1613
|
+
delete env[bindingName];
|
|
1614
|
+
continue;
|
|
1615
|
+
}
|
|
1606
1616
|
if (!isRecord(binding) || typeof binding.type !== "string" || !CROSS_WORKER_BINDING_TYPES.has(binding.type) || typeof binding.worker === "string") continue;
|
|
1607
1617
|
const target = await resolveDefinition(binding.worker);
|
|
1608
1618
|
env[bindingName] = {
|
|
@@ -1681,7 +1691,7 @@ async function normalizeContainerReferences(resolved, resolveDefinition, contain
|
|
|
1681
1691
|
};
|
|
1682
1692
|
}
|
|
1683
1693
|
async function normalizeWorkerConfig(resolved, resolveDefinition, containers) {
|
|
1684
|
-
return normalizeContainerReferences(await
|
|
1694
|
+
return normalizeContainerReferences(await normalizeWorkerEnv(normalizeWorkerEntrypoint(resolved), resolveDefinition), resolveDefinition, containers);
|
|
1685
1695
|
}
|
|
1686
1696
|
function prefixIssues(issues, prefix) {
|
|
1687
1697
|
return issues.map((issue) => ({
|
|
@@ -343,15 +343,20 @@ type InferWorkerEntrypointExports<TUnwrappedConfig> = Exclude<keyof InferMainMod
|
|
|
343
343
|
*/
|
|
344
344
|
type UnwrapConfig<TConfig> = TConfig extends ((...args: any[]) => infer TReturn) ? UnwrapConfig<TReturn> : TConfig extends Promise<infer TCompletion> ? UnwrapConfig<TCompletion> : TConfig;
|
|
345
345
|
/** Extract the authored binding map from each possible config branch. */
|
|
346
|
-
type
|
|
346
|
+
type ExtractEnv<TConfig> = TConfig extends {
|
|
347
347
|
env: infer TEnv extends Record<string, any>;
|
|
348
348
|
} ? TEnv : Record<never, never>;
|
|
349
349
|
/** Collect every property name from a union of object types. */
|
|
350
350
|
type KeysOfUnion<T$1> = T$1 extends unknown ? keyof T$1 : never;
|
|
351
351
|
/** Read a property distributively from every member of a union. */
|
|
352
352
|
type UnionProperty<T$1, K$1 extends PropertyKey> = T$1 extends unknown ? K$1 extends keyof T$1 ? T$1[K$1] : never : never;
|
|
353
|
-
|
|
354
|
-
|
|
353
|
+
type OmittedEnvBinding = false | null | undefined;
|
|
354
|
+
/** Collect keys that can produce a binding in at least one branch. */
|
|
355
|
+
type EnabledEnvKeys<TEnv$1> = { [K in KeysOfUnion<TEnv$1>]: Exclude<UnionProperty<TEnv$1, K>, OmittedEnvBinding> extends never ? never : K }[KeysOfUnion<TEnv$1>];
|
|
356
|
+
/** Collect keys that are present and enabled in every binding-map branch. */
|
|
357
|
+
type RequiredEnvKeys<TEnv$1> = { [K in EnabledEnvKeys<TEnv$1>]: [TEnv$1] extends [Record<K, unknown>] ? Extract<UnionProperty<TEnv$1, K>, OmittedEnvBinding> extends never ? K : never : never }[EnabledEnvKeys<TEnv$1>];
|
|
358
|
+
/** Merge binding maps, making absent or conditionally omitted bindings optional. */
|
|
359
|
+
type MergeEnv<TEnv$1> = { [K in RequiredEnvKeys<TEnv$1>]: InferBindingType<Exclude<UnionProperty<TEnv$1, K>, OmittedEnvBinding>> } & { [K in Exclude<EnabledEnvKeys<TEnv$1>, RequiredEnvKeys<TEnv$1>>]?: InferBindingType<Exclude<UnionProperty<TEnv$1, K>, OmittedEnvBinding>> };
|
|
355
360
|
/**
|
|
356
361
|
* Infer the `Env` interface type from a Worker config.
|
|
357
362
|
*
|
|
@@ -375,7 +380,7 @@ type MergeEnv<TEnv$1, TRequiredKey extends PropertyKey = keyof TEnv$1, TOptional
|
|
|
375
380
|
* export type Env = InferEnv<WorkerConfig>;
|
|
376
381
|
* ```
|
|
377
382
|
*/
|
|
378
|
-
type InferEnv<TUnwrappedConfig> = MergeEnv<
|
|
383
|
+
type InferEnv<TUnwrappedConfig> = MergeEnv<ExtractEnv<TUnwrappedConfig>>;
|
|
379
384
|
/**
|
|
380
385
|
* Infer the Durable Object namespace names from a Worker config's exports.
|
|
381
386
|
* Returns a union of export names that declare a *live* Durable Object —
|
|
@@ -1011,6 +1016,18 @@ interface WorkerConfig {
|
|
|
1011
1016
|
destinations?: string[];
|
|
1012
1017
|
};
|
|
1013
1018
|
};
|
|
1019
|
+
/**
|
|
1020
|
+
* Cloudflare Access configuration for this Worker.
|
|
1021
|
+
*/
|
|
1022
|
+
access?: {
|
|
1023
|
+
/** Local development simulation of Cloudflare Access authentication. */
|
|
1024
|
+
dev?: {
|
|
1025
|
+
/** The Access application audience tag (`aud`). */
|
|
1026
|
+
aud: string;
|
|
1027
|
+
/** Mock identity returned by `ctx.access.getIdentity()`. */
|
|
1028
|
+
identity?: Record<string, unknown>;
|
|
1029
|
+
};
|
|
1030
|
+
};
|
|
1014
1031
|
/**
|
|
1015
1032
|
* Whether we use `<name>.<subdomain>.workers.dev` to
|
|
1016
1033
|
* test and deploy your Worker.
|
|
@@ -1061,9 +1078,11 @@ interface WorkerConfig {
|
|
|
1061
1078
|
};
|
|
1062
1079
|
/**
|
|
1063
1080
|
* Bindings exposed on the Worker's `env` object. Construct entries with
|
|
1064
|
-
* `bindings.kv(...)`, `bindings.r2(...)`, etc.
|
|
1081
|
+
* `bindings.kv(...)`, `bindings.r2(...)`, etc. Entries set to `false`,
|
|
1082
|
+
* `null`, or `undefined` are omitted, which allows bindings to be included
|
|
1083
|
+
* conditionally.
|
|
1065
1084
|
*/
|
|
1066
|
-
env?: Record<string, Binding>;
|
|
1085
|
+
env?: Record<string, Binding | false | null | undefined>;
|
|
1067
1086
|
/**
|
|
1068
1087
|
* Configuration for named exports declared by the Worker. Each entry's
|
|
1069
1088
|
* key is the exported class name; the value configures the export.
|
package/dist/public.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as RateLimitBindingOptions, $t as triggers, A as ImagesBinding, At as WorkerReference, B as LogfwdrBinding, Bt as WorkerConfig, C as DispatchNamespaceBindingOptions, Ct as WorkflowBinding, D as FlagshipBindingOptions, Dt as ConfigContext, E as FlagshipBinding, Et as Json, F as K2ProduceResult, Ft as ContainerConfig, G as MtlsCertificateBindingOptions, Gt as EmailTriggerOptions, H as MediaBinding, Ht as ConnectTriggerOptions, I as K2Producer, It as ContainerObservabilityConfig, J as QueueBinding, Jt as QueueConsumerTrigger, K as PipelineBinding, Kt as FetchTrigger, L as K2Record, Lt as DurableObjectContainerConfig, M as JsonBinding, Mt as defineContainer, N as K2Binding, Nt as defineWorker, O as HyperdriveBinding, Ot as ContainerDefinition, P as K2BindingOptions, Pt as CloudflareConfig, Q as RateLimitBinding, Qt as Triggers, R as KvBinding, Rt as Settings, S as DispatchNamespaceBinding, St as WorkerLoaderBinding, T as DurableObjectBindingOptions, Tt as bindings, U as MediaBindingOptions, Ut as ConnectTriggerOptionsBase, V as LogfwdrBindingOptions, Vt as ConnectTrigger, W as MtlsCertificateBinding, Wt as EmailTrigger, X as R2Binding, Xt as ScheduledTrigger, Y as QueueBindingOptions, Yt as QueueConsumerTriggerOptions, Z as R2BindingOptions, Zt as ScheduledTriggerOptions, _ as Bindings, _n as WorkerEntrypointExport, _t as VpcNetworkBindingOptions, a as AiSearchBinding, an as DurableObjectCreatedExport, at as StreamBinding, b as D1Binding, bn as WorkflowExportOptions, bt as WorkerBinding, c as AiSearchNamespaceBindingOptions, cn as DurableObjectDeletedExportOptions, ct as TypedAiBinding, d as AnalyticsSQLBinding, dn as DurableObjectExportOptions, dt as TypedQueueBinding, en as DefaultModule, et as SecretBinding, f as AnalyticsSQLBindingOptions, fn as DurableObjectRenamedExport, ft as UnsafeBinding, g as BindingDevOptions, gn as Exports, gt as VpcNetworkBinding, h as AssetsBinding, hn as DurableObjectTransferredExportOptions, ht as VersionMetadataBinding, i as AiBindingOptions, in as UnwrapConfig, it as SendEmailBindingOptions, j as ImagesBindingOptions, jt as defineConfig, k as HyperdriveBindingOptions, kt as WorkerDefinition, l as AnalyticsEngineDatasetBinding, ln as DurableObjectExpectingTransferExport, lt as TypedKvBinding, m as ArtifactsBindingOptions, mn as DurableObjectTransferredExport, mt as VectorizeBindingOptions, n as AgentMemoryBindingOptions, nn as InferEnv, nt as SecretsStoreSecretBindingOptions, o as AiSearchBindingOptions, on as DurableObjectCreatedExportOptions, ot as StreamBindingOptions, p as ArtifactsBinding, pn as DurableObjectRenamedExportOptions, pt as VectorizeBinding, q as PipelineBindingOptions, qt as FetchTriggerOptions, r as AiBinding, rn as InferMainModule, rt as SendEmailBinding, s as AiSearchNamespaceBinding, sn as DurableObjectDeletedExport, st as TextBinding, t as AgentMemoryBinding, tn as InferDurableNamespaces, tt as SecretsStoreSecretBinding, u as AnalyticsEngineDatasetBindingOptions, un as DurableObjectExpectingTransferExportOptions, ut as TypedPipelineBinding, v as BrowserBinding, vn as WorkerEntrypointExportOptions, vt as VpcServiceBinding, w as DurableObjectBinding, wt as WorkflowBindingOptions, x as D1BindingOptions, xn as exports, xt as WorkerBindingOptions, y as BrowserBindingOptions, yn as WorkflowExport, yt as VpcServiceBindingOptions, z as KvBindingOptions, zt as StandardContainerConfig } from "./public-
|
|
1
|
+
import { $ as RateLimitBindingOptions, $t as triggers, A as ImagesBinding, At as WorkerReference, B as LogfwdrBinding, Bt as WorkerConfig, C as DispatchNamespaceBindingOptions, Ct as WorkflowBinding, D as FlagshipBindingOptions, Dt as ConfigContext, E as FlagshipBinding, Et as Json, F as K2ProduceResult, Ft as ContainerConfig, G as MtlsCertificateBindingOptions, Gt as EmailTriggerOptions, H as MediaBinding, Ht as ConnectTriggerOptions, I as K2Producer, It as ContainerObservabilityConfig, J as QueueBinding, Jt as QueueConsumerTrigger, K as PipelineBinding, Kt as FetchTrigger, L as K2Record, Lt as DurableObjectContainerConfig, M as JsonBinding, Mt as defineContainer, N as K2Binding, Nt as defineWorker, O as HyperdriveBinding, Ot as ContainerDefinition, P as K2BindingOptions, Pt as CloudflareConfig, Q as RateLimitBinding, Qt as Triggers, R as KvBinding, Rt as Settings, S as DispatchNamespaceBinding, St as WorkerLoaderBinding, T as DurableObjectBindingOptions, Tt as bindings, U as MediaBindingOptions, Ut as ConnectTriggerOptionsBase, V as LogfwdrBindingOptions, Vt as ConnectTrigger, W as MtlsCertificateBinding, Wt as EmailTrigger, X as R2Binding, Xt as ScheduledTrigger, Y as QueueBindingOptions, Yt as QueueConsumerTriggerOptions, Z as R2BindingOptions, Zt as ScheduledTriggerOptions, _ as Bindings, _n as WorkerEntrypointExport, _t as VpcNetworkBindingOptions, a as AiSearchBinding, an as DurableObjectCreatedExport, at as StreamBinding, b as D1Binding, bn as WorkflowExportOptions, bt as WorkerBinding, c as AiSearchNamespaceBindingOptions, cn as DurableObjectDeletedExportOptions, ct as TypedAiBinding, d as AnalyticsSQLBinding, dn as DurableObjectExportOptions, dt as TypedQueueBinding, en as DefaultModule, et as SecretBinding, f as AnalyticsSQLBindingOptions, fn as DurableObjectRenamedExport, ft as UnsafeBinding, g as BindingDevOptions, gn as Exports, gt as VpcNetworkBinding, h as AssetsBinding, hn as DurableObjectTransferredExportOptions, ht as VersionMetadataBinding, i as AiBindingOptions, in as UnwrapConfig, it as SendEmailBindingOptions, j as ImagesBindingOptions, jt as defineConfig, k as HyperdriveBindingOptions, kt as WorkerDefinition, l as AnalyticsEngineDatasetBinding, ln as DurableObjectExpectingTransferExport, lt as TypedKvBinding, m as ArtifactsBindingOptions, mn as DurableObjectTransferredExport, mt as VectorizeBindingOptions, n as AgentMemoryBindingOptions, nn as InferEnv, nt as SecretsStoreSecretBindingOptions, o as AiSearchBindingOptions, on as DurableObjectCreatedExportOptions, ot as StreamBindingOptions, p as ArtifactsBinding, pn as DurableObjectRenamedExportOptions, pt as VectorizeBinding, q as PipelineBindingOptions, qt as FetchTriggerOptions, r as AiBinding, rn as InferMainModule, rt as SendEmailBinding, s as AiSearchNamespaceBinding, sn as DurableObjectDeletedExport, st as TextBinding, t as AgentMemoryBinding, tn as InferDurableNamespaces, tt as SecretsStoreSecretBinding, u as AnalyticsEngineDatasetBindingOptions, un as DurableObjectExpectingTransferExportOptions, ut as TypedPipelineBinding, v as BrowserBinding, vn as WorkerEntrypointExportOptions, vt as VpcServiceBinding, w as DurableObjectBinding, wt as WorkflowBindingOptions, x as D1BindingOptions, xn as exports, xt as WorkerBindingOptions, y as BrowserBindingOptions, yn as WorkflowExport, yt as VpcServiceBindingOptions, z as KvBindingOptions, zt as StandardContainerConfig } from "./public-tQ5CqH1S.mjs";
|
|
2
2
|
export { AgentMemoryBinding, AgentMemoryBindingOptions, AiBinding, AiBindingOptions, AiSearchBinding, AiSearchBindingOptions, AiSearchNamespaceBinding, AiSearchNamespaceBindingOptions, AnalyticsEngineDatasetBinding, AnalyticsEngineDatasetBindingOptions, AnalyticsSQLBinding, AnalyticsSQLBindingOptions, ArtifactsBinding, ArtifactsBindingOptions, AssetsBinding, BindingDevOptions, Bindings, BrowserBinding, BrowserBindingOptions, CloudflareConfig, ConfigContext, ConnectTrigger, ConnectTriggerOptions, ConnectTriggerOptionsBase, ContainerConfig, ContainerDefinition, ContainerObservabilityConfig, D1Binding, D1BindingOptions, DefaultModule, DispatchNamespaceBinding, DispatchNamespaceBindingOptions, DurableObjectBinding, DurableObjectBindingOptions, DurableObjectContainerConfig, DurableObjectCreatedExport, DurableObjectCreatedExportOptions, DurableObjectDeletedExport, DurableObjectDeletedExportOptions, DurableObjectExpectingTransferExport, DurableObjectExpectingTransferExportOptions, DurableObjectExportOptions, DurableObjectRenamedExport, DurableObjectRenamedExportOptions, DurableObjectTransferredExport, DurableObjectTransferredExportOptions, EmailTrigger, EmailTriggerOptions, Exports, FetchTrigger, FetchTriggerOptions, FlagshipBinding, FlagshipBindingOptions, HyperdriveBinding, HyperdriveBindingOptions, ImagesBinding, ImagesBindingOptions, InferDurableNamespaces, InferEnv, InferMainModule, Json, JsonBinding, K2Binding, K2BindingOptions, K2ProduceResult, K2Producer, K2Record, KvBinding, KvBindingOptions, LogfwdrBinding, LogfwdrBindingOptions, MediaBinding, MediaBindingOptions, MtlsCertificateBinding, MtlsCertificateBindingOptions, PipelineBinding, PipelineBindingOptions, QueueBinding, QueueBindingOptions, QueueConsumerTrigger, QueueConsumerTriggerOptions, R2Binding, R2BindingOptions, RateLimitBinding, RateLimitBindingOptions, ScheduledTrigger, ScheduledTriggerOptions, SecretBinding, SecretsStoreSecretBinding, SecretsStoreSecretBindingOptions, SendEmailBinding, SendEmailBindingOptions, Settings, StandardContainerConfig, StreamBinding, StreamBindingOptions, TextBinding, Triggers, TypedAiBinding, TypedKvBinding, TypedPipelineBinding, TypedQueueBinding, UnsafeBinding, UnwrapConfig, VectorizeBinding, VectorizeBindingOptions, VersionMetadataBinding, VpcNetworkBinding, VpcNetworkBindingOptions, VpcServiceBinding, VpcServiceBindingOptions, WorkerBinding, WorkerBindingOptions, WorkerConfig, WorkerDefinition, WorkerEntrypointExport, WorkerEntrypointExportOptions, WorkerLoaderBinding, WorkerReference, WorkflowBinding, WorkflowBindingOptions, 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.26.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": {
|
|
@@ -37,7 +37,7 @@
|
|
|
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.47.
|
|
40
|
+
"@cloudflare/workers-utils": "0.47.2"
|
|
41
41
|
},
|
|
42
42
|
"workers-sdk": {
|
|
43
43
|
"prerelease": true
|