@cloudflare/config 0.17.0 → 0.19.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 Settings, A as TextBinding, B as WorkerBinding, C as QueueBinding, D as SecretsStoreSecretBinding, E as SecretBinding, F as UnsafeBinding, G as ContainerDefinition, H as WorkflowBinding, I as VectorizeBinding, J as defineConfig, K as WorkerDefinition, L as VersionMetadataBinding, M as TypedKvBinding, N as TypedPipelineBinding, O as SendEmailBinding, P as TypedQueueBinding, Q as ContainerConfig, R as VpcNetworkBinding, S as PipelineBinding, T as RateLimitBinding, U as bindings, V as WorkerLoaderBinding, W as ConfigContext, X as defineWorker, Y as defineContainer, Z as CloudflareConfig, _ as JsonBinding, _t as Exports, a as AnalyticsEngineDatasetBinding, at as ScheduledTrigger, b as MediaBinding, bt as
|
|
1
|
+
import { $ as Settings, A as TextBinding, B as WorkerBinding, C as QueueBinding, D as SecretsStoreSecretBinding, E as SecretBinding, F as UnsafeBinding, G as ContainerDefinition, H as WorkflowBinding, I as VectorizeBinding, J as defineConfig, K as WorkerDefinition, L as VersionMetadataBinding, M as TypedKvBinding, N as TypedPipelineBinding, O as SendEmailBinding, P as TypedQueueBinding, Q as ContainerConfig, R as VpcNetworkBinding, S as PipelineBinding, St as exports, T as RateLimitBinding, U as bindings, V as WorkerLoaderBinding, W as ConfigContext, X as defineWorker, Y as defineContainer, Z as CloudflareConfig, _ as JsonBinding, _t as Exports, a as AnalyticsEngineDatasetBinding, at as ScheduledTrigger, b as MediaBinding, bt as WorkflowExport, c as BindingDevOptions, ct as InferDurableNamespaces, d as D1Binding, dt as UnwrapConfig, et as WorkerConfig, f as DispatchNamespaceBinding, ft as DurableObjectCreatedExport, g as ImagesBinding, gt as DurableObjectTransferredExport, h as HyperdriveBinding, ht as DurableObjectRenamedExport, i as AiSearchNamespaceBinding, it as QueueConsumerTrigger, j as TypedAiBinding, k as StreamBinding, l as Bindings, lt as InferEnv, m as FlagshipBinding, mt as DurableObjectExpectingTransferExport, n as AiBinding, nt as EmailTrigger, o as ArtifactsBinding, ot as Triggers, p as DurableObjectBinding, pt as DurableObjectDeletedExport, q as WorkerReference, r as AiSearchBinding, rt as FetchTrigger, s as AssetsBinding, st as triggers, t as AgentMemoryBinding, tt as ConnectTrigger, u as BrowserBinding, ut as InferMainModule, v as KvBinding, vt as WorkerEntrypointExport, w as R2Binding, x as MtlsCertificateBinding, xt as WorkflowExportOptions, y as LogfwdrBinding, yt as WorkerEntrypointExportOptions, z as VpcServiceBinding } from "./public-X5O6jFLp.mjs";
|
|
2
2
|
import * as z from "zod";
|
|
3
3
|
import { RawConfig } from "@cloudflare/workers-utils";
|
|
4
4
|
|
|
@@ -545,6 +545,21 @@ declare const WorkerEntrypointExportSchema: z.ZodObject<{
|
|
|
545
545
|
enabled: z.ZodBoolean;
|
|
546
546
|
}, z.core.$strict>>;
|
|
547
547
|
}, z.core.$strict>;
|
|
548
|
+
declare const WorkflowExportSchema: z.ZodObject<{
|
|
549
|
+
type: z.ZodLiteral<"workflow">;
|
|
550
|
+
name: z.ZodString;
|
|
551
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
552
|
+
steps: z.ZodOptional<z.ZodNumber>;
|
|
553
|
+
}, z.core.$strict>>;
|
|
554
|
+
concurrency: z.ZodOptional<z.ZodObject<{
|
|
555
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
556
|
+
}, z.core.$strict>>;
|
|
557
|
+
schedules: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
558
|
+
defaultRetention: z.ZodOptional<z.ZodObject<{
|
|
559
|
+
successRetention: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
560
|
+
errorRetention: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
561
|
+
}, z.core.$strict>>;
|
|
562
|
+
}, z.core.$strict>;
|
|
548
563
|
declare const ExportSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
549
564
|
type: z.ZodLiteral<"durable-object">;
|
|
550
565
|
state: z.ZodOptional<z.ZodLiteral<"created">>;
|
|
@@ -581,6 +596,20 @@ declare const ExportSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
581
596
|
cache: z.ZodOptional<z.ZodObject<{
|
|
582
597
|
enabled: z.ZodBoolean;
|
|
583
598
|
}, z.core.$strict>>;
|
|
599
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
600
|
+
type: z.ZodLiteral<"workflow">;
|
|
601
|
+
name: z.ZodString;
|
|
602
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
603
|
+
steps: z.ZodOptional<z.ZodNumber>;
|
|
604
|
+
}, z.core.$strict>>;
|
|
605
|
+
concurrency: z.ZodOptional<z.ZodObject<{
|
|
606
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
607
|
+
}, z.core.$strict>>;
|
|
608
|
+
schedules: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
609
|
+
defaultRetention: z.ZodOptional<z.ZodObject<{
|
|
610
|
+
successRetention: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
611
|
+
errorRetention: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
612
|
+
}, z.core.$strict>>;
|
|
584
613
|
}, z.core.$strict>]>;
|
|
585
614
|
declare const TailConsumerSchema: z.ZodObject<{
|
|
586
615
|
worker: z.ZodString;
|
|
@@ -630,14 +659,19 @@ declare const InputWorkerSchema: z.ZodObject<{
|
|
|
630
659
|
}, z.core.$strict>, z.ZodObject<{
|
|
631
660
|
type: z.ZodLiteral<"scheduled">;
|
|
632
661
|
schedule: z.ZodString;
|
|
662
|
+
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
663
|
+
type: z.ZodLiteral<"connect">;
|
|
664
|
+
protocol: z.ZodLiteral<"tcp">;
|
|
665
|
+
port: z.ZodNumber;
|
|
666
|
+
address: z.ZodOptional<z.ZodString>;
|
|
633
667
|
}, z.core.$strict>, z.ZodObject<{
|
|
634
668
|
type: z.ZodLiteral<"connect">;
|
|
635
|
-
protocol: z.
|
|
636
|
-
tcp: "tcp";
|
|
637
|
-
}>;
|
|
669
|
+
protocol: z.ZodLiteral<"udp">;
|
|
638
670
|
port: z.ZodNumber;
|
|
639
671
|
address: z.ZodOptional<z.ZodString>;
|
|
640
|
-
|
|
672
|
+
idleTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
673
|
+
maxPendingBytes: z.ZodOptional<z.ZodNumber>;
|
|
674
|
+
}, z.core.$strict>], "protocol">], "type">>>;
|
|
641
675
|
tailConsumers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
642
676
|
worker: z.ZodString;
|
|
643
677
|
streaming: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -740,6 +774,20 @@ declare const InputWorkerSchema: z.ZodObject<{
|
|
|
740
774
|
cache: z.ZodOptional<z.ZodObject<{
|
|
741
775
|
enabled: z.ZodBoolean;
|
|
742
776
|
}, z.core.$strict>>;
|
|
777
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
778
|
+
type: z.ZodLiteral<"workflow">;
|
|
779
|
+
name: z.ZodString;
|
|
780
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
781
|
+
steps: z.ZodOptional<z.ZodNumber>;
|
|
782
|
+
}, z.core.$strict>>;
|
|
783
|
+
concurrency: z.ZodOptional<z.ZodObject<{
|
|
784
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
785
|
+
}, z.core.$strict>>;
|
|
786
|
+
schedules: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
787
|
+
defaultRetention: z.ZodOptional<z.ZodObject<{
|
|
788
|
+
successRetention: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
789
|
+
errorRetention: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
790
|
+
}, z.core.$strict>>;
|
|
743
791
|
}, z.core.$strict>]>>>;
|
|
744
792
|
entrypoint: z.ZodOptional<z.ZodString>;
|
|
745
793
|
}, z.core.$strict>;
|
|
@@ -798,14 +846,19 @@ declare const InputConfigSchema: z.ZodObject<{
|
|
|
798
846
|
}, z.core.$strict>, z.ZodObject<{
|
|
799
847
|
type: z.ZodLiteral<"scheduled">;
|
|
800
848
|
schedule: z.ZodString;
|
|
849
|
+
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
850
|
+
type: z.ZodLiteral<"connect">;
|
|
851
|
+
protocol: z.ZodLiteral<"tcp">;
|
|
852
|
+
port: z.ZodNumber;
|
|
853
|
+
address: z.ZodOptional<z.ZodString>;
|
|
801
854
|
}, z.core.$strict>, z.ZodObject<{
|
|
802
855
|
type: z.ZodLiteral<"connect">;
|
|
803
|
-
protocol: z.
|
|
804
|
-
tcp: "tcp";
|
|
805
|
-
}>;
|
|
856
|
+
protocol: z.ZodLiteral<"udp">;
|
|
806
857
|
port: z.ZodNumber;
|
|
807
858
|
address: z.ZodOptional<z.ZodString>;
|
|
808
|
-
|
|
859
|
+
idleTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
860
|
+
maxPendingBytes: z.ZodOptional<z.ZodNumber>;
|
|
861
|
+
}, z.core.$strict>], "protocol">], "type">>>;
|
|
809
862
|
tailConsumers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
810
863
|
worker: z.ZodString;
|
|
811
864
|
streaming: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -908,6 +961,20 @@ declare const InputConfigSchema: z.ZodObject<{
|
|
|
908
961
|
cache: z.ZodOptional<z.ZodObject<{
|
|
909
962
|
enabled: z.ZodBoolean;
|
|
910
963
|
}, z.core.$strict>>;
|
|
964
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
965
|
+
type: z.ZodLiteral<"workflow">;
|
|
966
|
+
name: z.ZodString;
|
|
967
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
968
|
+
steps: z.ZodOptional<z.ZodNumber>;
|
|
969
|
+
}, z.core.$strict>>;
|
|
970
|
+
concurrency: z.ZodOptional<z.ZodObject<{
|
|
971
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
972
|
+
}, z.core.$strict>>;
|
|
973
|
+
schedules: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
974
|
+
defaultRetention: z.ZodOptional<z.ZodObject<{
|
|
975
|
+
successRetention: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
976
|
+
errorRetention: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
977
|
+
}, z.core.$strict>>;
|
|
911
978
|
}, z.core.$strict>]>>>;
|
|
912
979
|
entrypoint: z.ZodOptional<z.ZodString>;
|
|
913
980
|
}, z.core.$strict>>;
|
|
@@ -1083,14 +1150,19 @@ declare const OutputWorkerSchema: z.ZodObject<{
|
|
|
1083
1150
|
}, z.core.$strict>, z.ZodObject<{
|
|
1084
1151
|
type: z.ZodLiteral<"scheduled">;
|
|
1085
1152
|
schedule: z.ZodString;
|
|
1153
|
+
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1154
|
+
type: z.ZodLiteral<"connect">;
|
|
1155
|
+
protocol: z.ZodLiteral<"tcp">;
|
|
1156
|
+
port: z.ZodNumber;
|
|
1157
|
+
address: z.ZodOptional<z.ZodString>;
|
|
1086
1158
|
}, z.core.$strict>, z.ZodObject<{
|
|
1087
1159
|
type: z.ZodLiteral<"connect">;
|
|
1088
|
-
protocol: z.
|
|
1089
|
-
tcp: "tcp";
|
|
1090
|
-
}>;
|
|
1160
|
+
protocol: z.ZodLiteral<"udp">;
|
|
1091
1161
|
port: z.ZodNumber;
|
|
1092
1162
|
address: z.ZodOptional<z.ZodString>;
|
|
1093
|
-
|
|
1163
|
+
idleTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1164
|
+
maxPendingBytes: z.ZodOptional<z.ZodNumber>;
|
|
1165
|
+
}, z.core.$strict>], "protocol">], "type">>>;
|
|
1094
1166
|
tailConsumers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1095
1167
|
worker: z.ZodString;
|
|
1096
1168
|
streaming: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1193,6 +1265,20 @@ declare const OutputWorkerSchema: z.ZodObject<{
|
|
|
1193
1265
|
cache: z.ZodOptional<z.ZodObject<{
|
|
1194
1266
|
enabled: z.ZodBoolean;
|
|
1195
1267
|
}, z.core.$strict>>;
|
|
1268
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1269
|
+
type: z.ZodLiteral<"workflow">;
|
|
1270
|
+
name: z.ZodString;
|
|
1271
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
1272
|
+
steps: z.ZodOptional<z.ZodNumber>;
|
|
1273
|
+
}, z.core.$strict>>;
|
|
1274
|
+
concurrency: z.ZodOptional<z.ZodObject<{
|
|
1275
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
1276
|
+
}, z.core.$strict>>;
|
|
1277
|
+
schedules: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
1278
|
+
defaultRetention: z.ZodOptional<z.ZodObject<{
|
|
1279
|
+
successRetention: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
1280
|
+
errorRetention: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
|
|
1281
|
+
}, z.core.$strict>>;
|
|
1196
1282
|
}, z.core.$strict>]>>>;
|
|
1197
1283
|
manifest: z.ZodOptional<z.ZodObject<{
|
|
1198
1284
|
type: z.ZodEnum<{
|
|
@@ -1233,7 +1319,7 @@ interface GenerateTypesOptions {
|
|
|
1233
1319
|
packageName?: string;
|
|
1234
1320
|
}
|
|
1235
1321
|
/**
|
|
1236
|
-
* Generate the content for
|
|
1322
|
+
* Generate the content for a Worker types declaration file.
|
|
1237
1323
|
*
|
|
1238
1324
|
* @example
|
|
1239
1325
|
* ```typescript
|
|
@@ -1241,10 +1327,10 @@ interface GenerateTypesOptions {
|
|
|
1241
1327
|
* import { writeFileSync } from "node:fs";
|
|
1242
1328
|
*
|
|
1243
1329
|
* const content = generateTypes({
|
|
1244
|
-
* configPath: "
|
|
1330
|
+
* configPath: "../../cloudflare.config.ts",
|
|
1245
1331
|
* });
|
|
1246
1332
|
*
|
|
1247
|
-
* writeFileSync("
|
|
1333
|
+
* writeFileSync(".cloudflare/types/index.d.ts", content);
|
|
1248
1334
|
* ```
|
|
1249
1335
|
*/
|
|
1250
1336
|
declare function generateTypes({
|
|
@@ -1339,4 +1425,4 @@ declare function loadAndParseConfig(configPath: string, ctx: ConfigContext): Pro
|
|
|
1339
1425
|
/** Load and parse only account settings from the default export. */
|
|
1340
1426
|
declare function loadAndParseConfigSettings(configPath: string, ctx: ConfigContext): Promise<LoadAndParseConfigSettingsResult>;
|
|
1341
1427
|
//#endregion
|
|
1342
|
-
export { AgentMemoryBinding, AiBinding, AiSearchBinding, AiSearchNamespaceBinding, AnalyticsEngineDatasetBinding, AnalyticsEngineDatasetBindingSchema, ArtifactsBinding, AssetsBinding, AssetsSchema, BindingDevOptions, BindingSchema, Bindings, BrowserBinding, BrowserBindingSchema, CloudflareConfig, ConfigContext, type ConfigParseResult, type ConfigSettingsParseResult, ConnectTrigger, ContainerConfig, ContainerDefinition, 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, InputConfigSchema, InputContainerSchema, InputSettingsSchema, type InputWorkerConfig, InputWorkerSchema, JsonBinding, KVBindingSchema, KnownBindingSchema, KvBinding, type LoadAndParseConfigResult, type LoadAndParseConfigSettingsResult, type LoadConfigResult, LogfwdrBinding, MediaBinding, type ModuleType, ModuleTypeSchema, MtlsCertificateBinding, OutputContainerSchema, OutputRootConfigSchema, OutputWorkerSchema, type ParsedInputConfig, type ParsedInputContainerConfig, type ParsedInputSettingsConfig, type ParsedInputWorkerConfig, type ParsedOutputContainerConfig, type ParsedOutputRootConfig, type ParsedOutputWorkerConfig, PipelineBinding, QueueBinding, QueueBindingSchema, QueueConsumerTrigger, R2Binding, R2BindingSchema, RateLimitBinding, ScheduledTrigger, SecretBinding, SecretsStoreSecretBinding, SendEmailBinding, Settings, StreamBinding, TailConsumerSchema, TextBinding, Triggers, TypedAiBinding, TypedKvBinding, TypedPipelineBinding, TypedQueueBinding, UnsafeBinding, UnsafeBindingSchema, UnwrapConfig, VectorizeBinding, VersionMetadataBinding, VpcNetworkBinding, VpcServiceBinding, WorkerBinding, WorkerBindingSchema, WorkerConfig, WorkerDefinition, WorkerEntrypointExport, WorkerEntrypointExportOptions, WorkerEntrypointExportSchema, WorkerLoaderBinding, WorkerReference, WorkflowBinding, bindings, convertToWranglerConfig, defineConfig, defineContainer, defineWorker, exports, generateTypes, loadAndParseConfig, loadAndParseConfigSettings, loadConfig, registerConfigHooks, resolveAndParseConfig, resolveAndParseConfigSettings, triggers, validateSingletonBindings };
|
|
1428
|
+
export { AgentMemoryBinding, AiBinding, AiSearchBinding, AiSearchNamespaceBinding, AnalyticsEngineDatasetBinding, AnalyticsEngineDatasetBindingSchema, ArtifactsBinding, AssetsBinding, AssetsSchema, BindingDevOptions, BindingSchema, Bindings, BrowserBinding, BrowserBindingSchema, CloudflareConfig, ConfigContext, type ConfigParseResult, type ConfigSettingsParseResult, ConnectTrigger, ContainerConfig, ContainerDefinition, 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, InputConfigSchema, InputContainerSchema, InputSettingsSchema, type InputWorkerConfig, InputWorkerSchema, JsonBinding, KVBindingSchema, KnownBindingSchema, KvBinding, type LoadAndParseConfigResult, type LoadAndParseConfigSettingsResult, type LoadConfigResult, LogfwdrBinding, MediaBinding, type ModuleType, ModuleTypeSchema, MtlsCertificateBinding, OutputContainerSchema, OutputRootConfigSchema, OutputWorkerSchema, type ParsedInputConfig, type ParsedInputContainerConfig, type ParsedInputSettingsConfig, type ParsedInputWorkerConfig, type ParsedOutputContainerConfig, type ParsedOutputRootConfig, type ParsedOutputWorkerConfig, PipelineBinding, QueueBinding, QueueBindingSchema, QueueConsumerTrigger, R2Binding, R2BindingSchema, RateLimitBinding, ScheduledTrigger, SecretBinding, SecretsStoreSecretBinding, SendEmailBinding, Settings, StreamBinding, TailConsumerSchema, TextBinding, Triggers, TypedAiBinding, TypedKvBinding, TypedPipelineBinding, TypedQueueBinding, UnsafeBinding, UnsafeBindingSchema, UnwrapConfig, VectorizeBinding, VersionMetadataBinding, VpcNetworkBinding, VpcServiceBinding, WorkerBinding, WorkerBindingSchema, WorkerConfig, WorkerDefinition, WorkerEntrypointExport, WorkerEntrypointExportOptions, WorkerEntrypointExportSchema, WorkerLoaderBinding, WorkerReference, WorkflowBinding, WorkflowExport, WorkflowExportOptions, WorkflowExportSchema, bindings, convertToWranglerConfig, defineConfig, defineContainer, defineWorker, exports, generateTypes, loadAndParseConfig, loadAndParseConfigSettings, loadConfig, registerConfigHooks, resolveAndParseConfig, resolveAndParseConfigSettings, triggers, validateSingletonBindings };
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { a as triggers, i as exports$1, n as defineContainer, o as bindings, r as defineWorker, t as defineConfig } from "./public-
|
|
1
|
+
import { a as triggers, i as exports$1, n as defineContainer, o as bindings, r as defineWorker, t as defineConfig } from "./public-CvUXcSEm.mjs";
|
|
2
2
|
import * as nodeModule from "node:module";
|
|
3
|
+
import { createRequire } from "node:module";
|
|
3
4
|
import * as z from "zod";
|
|
4
5
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
5
6
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
@@ -420,6 +421,18 @@ const WorkerEntrypointExportSchema = z.strictObject({
|
|
|
420
421
|
type: z.literal("worker"),
|
|
421
422
|
cache: z.strictObject({ enabled: z.boolean() }).optional()
|
|
422
423
|
});
|
|
424
|
+
const WorkflowRetentionSchema = z.union([z.number().int().min(1), z.string().min(1)]);
|
|
425
|
+
const WorkflowExportSchema = z.strictObject({
|
|
426
|
+
type: z.literal("workflow"),
|
|
427
|
+
name: z.string(),
|
|
428
|
+
limits: z.strictObject({ steps: z.number().int().min(1).optional() }).optional(),
|
|
429
|
+
concurrency: z.strictObject({ limit: z.number().int().min(1).optional() }).optional(),
|
|
430
|
+
schedules: z.union([z.string().min(1), z.array(z.string().min(1)).min(1)]).optional(),
|
|
431
|
+
defaultRetention: z.strictObject({
|
|
432
|
+
successRetention: WorkflowRetentionSchema.optional(),
|
|
433
|
+
errorRetention: WorkflowRetentionSchema.optional()
|
|
434
|
+
}).optional()
|
|
435
|
+
});
|
|
423
436
|
const DurableObjectCreatedSqliteExportSchema = DurableObjectCreatedExportSchema.extend({ storage: z.literal("sqlite") });
|
|
424
437
|
const DurableObjectCreatedLegacyKvExportSchema = DurableObjectCreatedExportSchema.omit({ container: true }).extend({ storage: z.literal("legacy-kv") });
|
|
425
438
|
const DurableObjectExpectingTransferSqliteExportSchema = DurableObjectExpectingTransferExportSchema.extend({ storage: z.literal("sqlite") });
|
|
@@ -432,7 +445,8 @@ const ExportSchema = z.union([
|
|
|
432
445
|
DurableObjectTransferredExportSchema,
|
|
433
446
|
DurableObjectExpectingTransferSqliteExportSchema,
|
|
434
447
|
DurableObjectExpectingTransferLegacyKvExportSchema,
|
|
435
|
-
WorkerEntrypointExportSchema
|
|
448
|
+
WorkerEntrypointExportSchema,
|
|
449
|
+
WorkflowExportSchema
|
|
436
450
|
]);
|
|
437
451
|
const LimitsSchema = z.strictObject({
|
|
438
452
|
cpuMs: z.number().optional(),
|
|
@@ -504,12 +518,19 @@ const TriggerSchema = z.discriminatedUnion("type", [
|
|
|
504
518
|
type: z.literal("scheduled"),
|
|
505
519
|
schedule: z.string()
|
|
506
520
|
}),
|
|
507
|
-
z.strictObject({
|
|
521
|
+
z.discriminatedUnion("protocol", [z.strictObject({
|
|
508
522
|
type: z.literal("connect"),
|
|
509
|
-
protocol: z.
|
|
523
|
+
protocol: z.literal("tcp"),
|
|
510
524
|
port: z.number(),
|
|
511
525
|
address: z.string().optional()
|
|
512
|
-
})
|
|
526
|
+
}), z.strictObject({
|
|
527
|
+
type: z.literal("connect"),
|
|
528
|
+
protocol: z.literal("udp"),
|
|
529
|
+
port: z.number(),
|
|
530
|
+
address: z.string().optional(),
|
|
531
|
+
idleTimeoutMs: z.number().int().min(0).max(4294967295).optional(),
|
|
532
|
+
maxPendingBytes: z.number().int().min(0).max(4294967295).optional()
|
|
533
|
+
})])
|
|
513
534
|
]);
|
|
514
535
|
const UnsafeSchema = z.strictObject({
|
|
515
536
|
metadata: z.record(z.string(), z.unknown()).optional(),
|
|
@@ -660,7 +681,7 @@ var require_dist = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/ts-ded
|
|
|
660
681
|
//#region src/generate.ts
|
|
661
682
|
var import_dist = require_dist();
|
|
662
683
|
/**
|
|
663
|
-
* Generate the content for
|
|
684
|
+
* Generate the content for a Worker types declaration file.
|
|
664
685
|
*
|
|
665
686
|
* @example
|
|
666
687
|
* ```typescript
|
|
@@ -668,10 +689,10 @@ var import_dist = require_dist();
|
|
|
668
689
|
* import { writeFileSync } from "node:fs";
|
|
669
690
|
*
|
|
670
691
|
* const content = generateTypes({
|
|
671
|
-
* configPath: "
|
|
692
|
+
* configPath: "../../cloudflare.config.ts",
|
|
672
693
|
* });
|
|
673
694
|
*
|
|
674
|
-
* writeFileSync("
|
|
695
|
+
* writeFileSync(".cloudflare/types/index.d.ts", content);
|
|
675
696
|
* ```
|
|
676
697
|
*/
|
|
677
698
|
function generateTypes({ configPath, packageName = "@cloudflare/config" }) {
|
|
@@ -695,7 +716,8 @@ function generateTypes({ configPath, packageName = "@cloudflare/config" }) {
|
|
|
695
716
|
}
|
|
696
717
|
|
|
697
718
|
//#endregion
|
|
698
|
-
//#region ../workers-utils/dist/chunk-
|
|
719
|
+
//#region ../workers-utils/dist/chunk-U6NEESU5.mjs
|
|
720
|
+
const require$1 = createRequire(import.meta.url || (typeof __filename === "string" ? __filename : "/"));
|
|
699
721
|
var __defProp = Object.defineProperty;
|
|
700
722
|
var __name = (target, value) => __defProp(target, "name", {
|
|
701
723
|
value,
|
|
@@ -703,7 +725,8 @@ var __name = (target, value) => __defProp(target, "name", {
|
|
|
703
725
|
});
|
|
704
726
|
|
|
705
727
|
//#endregion
|
|
706
|
-
//#region ../workers-utils/dist/chunk-
|
|
728
|
+
//#region ../workers-utils/dist/chunk-OWPFSLY6.mjs
|
|
729
|
+
createRequire(import.meta.url || (typeof __filename === "string" ? __filename : "/"));
|
|
707
730
|
var UserError = class extends Error {
|
|
708
731
|
static {
|
|
709
732
|
__name(this, "UserError");
|
|
@@ -1238,6 +1261,17 @@ function convertExports(config, result) {
|
|
|
1238
1261
|
converted[exportName] = value;
|
|
1239
1262
|
continue;
|
|
1240
1263
|
}
|
|
1264
|
+
if (value.type === "workflow") {
|
|
1265
|
+
const { defaultRetention,...workflow } = value;
|
|
1266
|
+
converted[exportName] = {
|
|
1267
|
+
...workflow,
|
|
1268
|
+
...defaultRetention !== void 0 && { default_retention: {
|
|
1269
|
+
...defaultRetention.successRetention !== void 0 && { success_retention: defaultRetention.successRetention },
|
|
1270
|
+
...defaultRetention.errorRetention !== void 0 && { error_retention: defaultRetention.errorRetention }
|
|
1271
|
+
} }
|
|
1272
|
+
};
|
|
1273
|
+
continue;
|
|
1274
|
+
}
|
|
1241
1275
|
if (value.type !== "durable-object") {
|
|
1242
1276
|
unknownExports[exportName] = value;
|
|
1243
1277
|
continue;
|
|
@@ -1328,7 +1362,11 @@ function convertTriggers(config, result) {
|
|
|
1328
1362
|
connectHandlers.push(omitUndefined({
|
|
1329
1363
|
protocol: trigger.protocol,
|
|
1330
1364
|
port: trigger.port,
|
|
1331
|
-
address: trigger.address
|
|
1365
|
+
address: trigger.address,
|
|
1366
|
+
...trigger.protocol === "udp" ? {
|
|
1367
|
+
idle_timeout_ms: trigger.idleTimeoutMs,
|
|
1368
|
+
max_pending_bytes: trigger.maxPendingBytes
|
|
1369
|
+
} : {}
|
|
1332
1370
|
}));
|
|
1333
1371
|
break;
|
|
1334
1372
|
}
|
|
@@ -1699,4 +1737,4 @@ async function loadAndParseConfigSettings(configPath, ctx) {
|
|
|
1699
1737
|
}
|
|
1700
1738
|
|
|
1701
1739
|
//#endregion
|
|
1702
|
-
export { AnalyticsEngineDatasetBindingSchema, AssetsSchema, BindingSchema, BrowserBindingSchema, D1BindingSchema, DurableObjectCreatedExportSchema, DurableObjectDeletedExportSchema, DurableObjectExpectingTransferExportSchema, DurableObjectRenamedExportSchema, DurableObjectTransferredExportSchema, ExportSchema, FlagshipBindingSchema, HyperdriveBindingSchema, InputConfigSchema, InputContainerSchema, InputSettingsSchema, InputWorkerSchema, KVBindingSchema, KnownBindingSchema, ModuleTypeSchema, OutputContainerSchema, OutputRootConfigSchema, OutputWorkerSchema, QueueBindingSchema, R2BindingSchema, TailConsumerSchema, UnsafeBindingSchema, WorkerBindingSchema, WorkerEntrypointExportSchema, bindings, convertToWranglerConfig, defineConfig, defineContainer, defineWorker, exports$1 as exports, generateTypes, loadAndParseConfig, loadAndParseConfigSettings, loadConfig, registerConfigHooks, resolveAndParseConfig, resolveAndParseConfigSettings, triggers, validateSingletonBindings };
|
|
1740
|
+
export { AnalyticsEngineDatasetBindingSchema, AssetsSchema, BindingSchema, BrowserBindingSchema, D1BindingSchema, DurableObjectCreatedExportSchema, DurableObjectDeletedExportSchema, DurableObjectExpectingTransferExportSchema, DurableObjectRenamedExportSchema, DurableObjectTransferredExportSchema, ExportSchema, FlagshipBindingSchema, HyperdriveBindingSchema, InputConfigSchema, InputContainerSchema, InputSettingsSchema, InputWorkerSchema, KVBindingSchema, KnownBindingSchema, ModuleTypeSchema, OutputContainerSchema, OutputRootConfigSchema, OutputWorkerSchema, QueueBindingSchema, R2BindingSchema, TailConsumerSchema, UnsafeBindingSchema, WorkerBindingSchema, WorkerEntrypointExportSchema, WorkflowExportSchema, bindings, convertToWranglerConfig, defineConfig, defineContainer, defineWorker, exports$1 as exports, generateTypes, loadAndParseConfig, loadAndParseConfigSettings, loadConfig, registerConfigHooks, resolveAndParseConfig, resolveAndParseConfigSettings, triggers, validateSingletonBindings };
|
|
@@ -188,6 +188,12 @@ function worker(options = {}) {
|
|
|
188
188
|
...options
|
|
189
189
|
};
|
|
190
190
|
}
|
|
191
|
+
function workflow(options) {
|
|
192
|
+
return {
|
|
193
|
+
type: "workflow",
|
|
194
|
+
...options
|
|
195
|
+
};
|
|
196
|
+
}
|
|
191
197
|
/**
|
|
192
198
|
* Exports builder for configuring Worker exports.
|
|
193
199
|
*
|
|
@@ -208,6 +214,7 @@ function worker(options = {}) {
|
|
|
208
214
|
* OldName: exports.durableObject({ state: "renamed", renamedTo: "NewName" }),
|
|
209
215
|
* Outgoing: exports.durableObject({ state: "transferred", transferredTo: "target-worker" }),
|
|
210
216
|
* Incoming: exports.durableObject({ state: "expecting-transfer", storage: "sqlite", transferFrom: "source-worker" }),
|
|
217
|
+
* MyWorkflow: exports.workflow({ name: "my-workflow", limits: { steps: 100 }, schedules: "0 * * * *" }),
|
|
211
218
|
* },
|
|
212
219
|
* });
|
|
213
220
|
*
|
|
@@ -216,7 +223,8 @@ function worker(options = {}) {
|
|
|
216
223
|
*/
|
|
217
224
|
const exports = {
|
|
218
225
|
durableObject,
|
|
219
|
-
worker
|
|
226
|
+
worker,
|
|
227
|
+
workflow
|
|
220
228
|
};
|
|
221
229
|
|
|
222
230
|
//#endregion
|
|
@@ -105,6 +105,37 @@ interface WorkerEntrypointExportOptions {
|
|
|
105
105
|
interface WorkerEntrypointExport extends WorkerEntrypointExportOptions {
|
|
106
106
|
type: "worker";
|
|
107
107
|
}
|
|
108
|
+
interface WorkflowExportOptions {
|
|
109
|
+
/**
|
|
110
|
+
* The name of the Workflow. It identifies the Workflow's instances and must
|
|
111
|
+
* be unique within the account.
|
|
112
|
+
*/
|
|
113
|
+
name: string;
|
|
114
|
+
limits?: {
|
|
115
|
+
/** Maximum number of steps a single Workflow instance may run. */
|
|
116
|
+
steps?: number;
|
|
117
|
+
};
|
|
118
|
+
concurrency?: {
|
|
119
|
+
/** Maximum number of Workflow instances that can run concurrently. */
|
|
120
|
+
limit?: number;
|
|
121
|
+
};
|
|
122
|
+
/** Cron schedule(s) that automatically trigger Workflow instances. */
|
|
123
|
+
schedules?: string | string[];
|
|
124
|
+
/**
|
|
125
|
+
* Default retention for instances of this Workflow, applied when an instance
|
|
126
|
+
* does not set its own retention. Accepts milliseconds or a duration string
|
|
127
|
+
* such as `"3 days"`.
|
|
128
|
+
*/
|
|
129
|
+
defaultRetention?: {
|
|
130
|
+
/** How long to retain instances that completed successfully or were terminated. */
|
|
131
|
+
successRetention?: number | string;
|
|
132
|
+
/** How long to retain errored instances. */
|
|
133
|
+
errorRetention?: number | string;
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
interface WorkflowExport extends WorkflowExportOptions {
|
|
137
|
+
type: "workflow";
|
|
138
|
+
}
|
|
108
139
|
/**
|
|
109
140
|
* Configuration for named exports declared by the Worker. Each entry's
|
|
110
141
|
* key is the exported class name; the value configures the export.
|
|
@@ -139,6 +170,14 @@ interface Exports {
|
|
|
139
170
|
durableObject(options: DurableObjectExportOptions): DurableObjectExports;
|
|
140
171
|
/** Declares a WorkerEntrypoint export defined by this Worker. */
|
|
141
172
|
worker(options?: WorkerEntrypointExportOptions): WorkerEntrypointExport;
|
|
173
|
+
/**
|
|
174
|
+
* Declares a Workflow defined by this Worker. The export's key must name a
|
|
175
|
+
* class that extends `WorkflowEntrypoint`.
|
|
176
|
+
*
|
|
177
|
+
* For more information about Workflows, see the documentation at
|
|
178
|
+
* https://developers.cloudflare.com/workflows/
|
|
179
|
+
*/
|
|
180
|
+
workflow(options: WorkflowExportOptions): WorkflowExport;
|
|
142
181
|
}
|
|
143
182
|
/**
|
|
144
183
|
* Exports builder for configuring Worker exports.
|
|
@@ -160,6 +199,7 @@ interface Exports {
|
|
|
160
199
|
* OldName: exports.durableObject({ state: "renamed", renamedTo: "NewName" }),
|
|
161
200
|
* Outgoing: exports.durableObject({ state: "transferred", transferredTo: "target-worker" }),
|
|
162
201
|
* Incoming: exports.durableObject({ state: "expecting-transfer", storage: "sqlite", transferFrom: "source-worker" }),
|
|
202
|
+
* MyWorkflow: exports.workflow({ name: "my-workflow", limits: { steps: 100 }, schedules: "0 * * * *" }),
|
|
163
203
|
* },
|
|
164
204
|
* });
|
|
165
205
|
*
|
|
@@ -456,22 +496,31 @@ interface EmailTriggerOptions {
|
|
|
456
496
|
interface EmailTrigger extends EmailTriggerOptions {
|
|
457
497
|
type: "email";
|
|
458
498
|
}
|
|
459
|
-
interface
|
|
460
|
-
/** The transport protocol to listen for. */
|
|
461
|
-
protocol: "tcp";
|
|
499
|
+
interface ConnectTriggerOptionsBase {
|
|
462
500
|
/** The port to listen on. */
|
|
463
501
|
port: number;
|
|
464
502
|
/** The address to bind to. Defaults to `127.0.0.1`. */
|
|
465
503
|
address?: string;
|
|
466
504
|
}
|
|
505
|
+
type TcpConnectTriggerOptions = ConnectTriggerOptionsBase & {
|
|
506
|
+
protocol: "tcp";
|
|
507
|
+
};
|
|
508
|
+
type UdpConnectTriggerOptions = ConnectTriggerOptionsBase & {
|
|
509
|
+
protocol: "udp";
|
|
510
|
+
/** The idle timeout in milliseconds after which a peer flow is closed. */
|
|
511
|
+
idleTimeoutMs?: number;
|
|
512
|
+
/** The maximum number of pending datagram bytes per peer flow. */
|
|
513
|
+
maxPendingBytes?: number;
|
|
514
|
+
};
|
|
515
|
+
type ConnectTriggerOptions = TcpConnectTriggerOptions | UdpConnectTriggerOptions;
|
|
467
516
|
/**
|
|
468
517
|
* Connect trigger — invokes this Worker's `connect(socket, env, ctx)`
|
|
469
518
|
* handler for raw socket connections received on the configured
|
|
470
519
|
* protocol/port.
|
|
471
520
|
*/
|
|
472
|
-
|
|
521
|
+
type ConnectTrigger = ConnectTriggerOptions & {
|
|
473
522
|
type: "connect";
|
|
474
|
-
}
|
|
523
|
+
};
|
|
475
524
|
/**
|
|
476
525
|
* Event triggers — fetch routes, queue consumers, cron schedules, Email
|
|
477
526
|
* Routing addresses, and raw sockets — that invoke this Worker.
|
|
@@ -569,9 +618,10 @@ type Trigger = ConnectTrigger | EmailTrigger | FetchTrigger | QueueConsumerTrigg
|
|
|
569
618
|
/**
|
|
570
619
|
* Union of all export definitions accepted in `exports`. Worker entries
|
|
571
620
|
* configure WorkerEntrypoint exports. Durable Object entries configure live
|
|
572
|
-
* classes and tombstone lifecycle operations.
|
|
621
|
+
* classes and tombstone lifecycle operations. Workflow entries declare the
|
|
622
|
+
* Workflows defined by the Worker.
|
|
573
623
|
*/
|
|
574
|
-
type Export = DurableObjectCreatedExport | DurableObjectDeletedExport | DurableObjectRenamedExport | DurableObjectTransferredExport | DurableObjectExpectingTransferExport | WorkerEntrypointExport;
|
|
624
|
+
type Export = DurableObjectCreatedExport | DurableObjectDeletedExport | DurableObjectRenamedExport | DurableObjectTransferredExport | DurableObjectExpectingTransferExport | WorkerEntrypointExport | WorkflowExport;
|
|
575
625
|
/** An image source accepted in an authored Container configuration. */
|
|
576
626
|
type ContainerImage = {
|
|
577
627
|
/** The path to a Dockerfile. */
|
|
@@ -1004,13 +1054,16 @@ interface WorkerConfig {
|
|
|
1004
1054
|
* Configuration for named exports declared by the Worker. Each entry's
|
|
1005
1055
|
* key is the exported class name; the value configures the export.
|
|
1006
1056
|
*
|
|
1007
|
-
* Only one export kind is currently supported:
|
|
1008
|
-
*
|
|
1009
1057
|
* - Construct entries with `exports.durableObject(...)`.
|
|
1010
1058
|
* - Declares Durable Object classes exported from this Worker.
|
|
1011
1059
|
* For more information about Durable Objects, see the documentation at
|
|
1012
1060
|
* https://developers.cloudflare.com/workers/learning/using-durable-objects.
|
|
1013
1061
|
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#durable-objects.
|
|
1062
|
+
*
|
|
1063
|
+
* - Construct entries with `exports.workflow(...)`.
|
|
1064
|
+
* - Declares Workflows defined by this Worker.
|
|
1065
|
+
* For more information about Workflows, see the documentation at
|
|
1066
|
+
* https://developers.cloudflare.com/workflows/.
|
|
1014
1067
|
*/
|
|
1015
1068
|
exports?: Record<string, Export>;
|
|
1016
1069
|
}
|
|
@@ -1775,4 +1828,4 @@ interface Bindings {
|
|
|
1775
1828
|
}
|
|
1776
1829
|
declare const bindings: Bindings;
|
|
1777
1830
|
//#endregion
|
|
1778
|
-
export { Settings as $, TextBinding as A, WorkerBinding as B, QueueBinding as C, SecretsStoreSecretBinding as D, SecretBinding as E, UnsafeBinding as F, ContainerDefinition as G, WorkflowBinding as H, VectorizeBinding as I, defineConfig as J, WorkerDefinition as K, VersionMetadataBinding as L, TypedKvBinding as M, TypedPipelineBinding as N, SendEmailBinding as O, TypedQueueBinding as P, ContainerConfig as Q, VpcNetworkBinding as R, PipelineBinding as S, RateLimitBinding as T, bindings as U, WorkerLoaderBinding as V, ConfigContext as W, defineWorker as X, defineContainer as Y, CloudflareConfig as Z, JsonBinding as _, Exports as _t, AnalyticsEngineDatasetBinding as a, ScheduledTrigger as at, MediaBinding$1 as b,
|
|
1831
|
+
export { Settings as $, TextBinding as A, WorkerBinding as B, QueueBinding as C, SecretsStoreSecretBinding as D, SecretBinding as E, UnsafeBinding as F, ContainerDefinition as G, WorkflowBinding as H, VectorizeBinding as I, defineConfig as J, WorkerDefinition as K, VersionMetadataBinding as L, TypedKvBinding as M, TypedPipelineBinding as N, SendEmailBinding as O, TypedQueueBinding as P, ContainerConfig as Q, VpcNetworkBinding as R, PipelineBinding as S, exports as St, RateLimitBinding as T, bindings as U, WorkerLoaderBinding as V, ConfigContext as W, defineWorker as X, defineContainer as Y, CloudflareConfig as Z, JsonBinding as _, Exports as _t, AnalyticsEngineDatasetBinding as a, ScheduledTrigger as at, MediaBinding$1 as b, WorkflowExport as bt, BindingDevOptions as c, InferDurableNamespaces as ct, D1Binding as d, UnwrapConfig as dt, WorkerConfig as et, DispatchNamespaceBinding as f, DurableObjectCreatedExport as ft, ImagesBinding$1 as g, DurableObjectTransferredExport as gt, HyperdriveBinding as h, DurableObjectRenamedExport as ht, AiSearchNamespaceBinding as i, QueueConsumerTrigger as it, TypedAiBinding as j, StreamBinding$1 as k, Bindings as l, InferEnv as lt, FlagshipBinding as m, DurableObjectExpectingTransferExport as mt, AiBinding as n, EmailTrigger as nt, ArtifactsBinding as o, Triggers as ot, DurableObjectBinding as p, DurableObjectDeletedExport as pt, WorkerReference as q, AiSearchBinding as r, FetchTrigger as rt, AssetsBinding as s, triggers as st, AgentMemoryBinding as t, ConnectTrigger as tt, BrowserBinding as u, InferMainModule as ut, KvBinding as v, WorkerEntrypointExport as vt, R2Binding as w, MtlsCertificateBinding as x, WorkflowExportOptions as xt, LogfwdrBinding as y, WorkerEntrypointExportOptions as yt, VpcServiceBinding as z };
|
package/dist/public.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as Settings, A as TextBinding, B as WorkerBinding, C as QueueBinding, D as SecretsStoreSecretBinding, E as SecretBinding, F as UnsafeBinding, G as ContainerDefinition, H as WorkflowBinding, I as VectorizeBinding, J as defineConfig, K as WorkerDefinition, L as VersionMetadataBinding, M as TypedKvBinding, N as TypedPipelineBinding, O as SendEmailBinding, P as TypedQueueBinding, Q as ContainerConfig, R as VpcNetworkBinding, S as PipelineBinding, T as RateLimitBinding, U as bindings, V as WorkerLoaderBinding, W as ConfigContext, X as defineWorker, Y as defineContainer, Z as CloudflareConfig, _ as JsonBinding, _t as Exports, a as AnalyticsEngineDatasetBinding, at as ScheduledTrigger, b as MediaBinding, bt as
|
|
2
|
-
export { AgentMemoryBinding, AiBinding, AiSearchBinding, AiSearchNamespaceBinding, AnalyticsEngineDatasetBinding, 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, 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, bindings, defineConfig, defineContainer, defineWorker, exports, triggers };
|
|
1
|
+
import { $ as Settings, A as TextBinding, B as WorkerBinding, C as QueueBinding, D as SecretsStoreSecretBinding, E as SecretBinding, F as UnsafeBinding, G as ContainerDefinition, H as WorkflowBinding, I as VectorizeBinding, J as defineConfig, K as WorkerDefinition, L as VersionMetadataBinding, M as TypedKvBinding, N as TypedPipelineBinding, O as SendEmailBinding, P as TypedQueueBinding, Q as ContainerConfig, R as VpcNetworkBinding, S as PipelineBinding, St as exports, T as RateLimitBinding, U as bindings, V as WorkerLoaderBinding, W as ConfigContext, X as defineWorker, Y as defineContainer, Z as CloudflareConfig, _ as JsonBinding, _t as Exports, a as AnalyticsEngineDatasetBinding, at as ScheduledTrigger, b as MediaBinding, bt as WorkflowExport, c as BindingDevOptions, ct as InferDurableNamespaces, d as D1Binding, dt as UnwrapConfig, et as WorkerConfig, f as DispatchNamespaceBinding, ft as DurableObjectCreatedExport, g as ImagesBinding, gt as DurableObjectTransferredExport, h as HyperdriveBinding, ht as DurableObjectRenamedExport, i as AiSearchNamespaceBinding, it as QueueConsumerTrigger, j as TypedAiBinding, k as StreamBinding, l as Bindings, lt as InferEnv, m as FlagshipBinding, mt as DurableObjectExpectingTransferExport, n as AiBinding, nt as EmailTrigger, o as ArtifactsBinding, ot as Triggers, p as DurableObjectBinding, pt as DurableObjectDeletedExport, q as WorkerReference, r as AiSearchBinding, rt as FetchTrigger, s as AssetsBinding, st as triggers, t as AgentMemoryBinding, tt as ConnectTrigger, u as BrowserBinding, ut as InferMainModule, v as KvBinding, vt as WorkerEntrypointExport, w as R2Binding, x as MtlsCertificateBinding, xt as WorkflowExportOptions, y as LogfwdrBinding, yt as WorkerEntrypointExportOptions, z as VpcServiceBinding } from "./public-X5O6jFLp.mjs";
|
|
2
|
+
export { AgentMemoryBinding, AiBinding, AiSearchBinding, AiSearchNamespaceBinding, AnalyticsEngineDatasetBinding, 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, 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/dist/public.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as triggers, i as exports, n as defineContainer, o as bindings, r as defineWorker, t as defineConfig } from "./public-
|
|
1
|
+
import { a as triggers, i as exports, n as defineContainer, o as bindings, r as defineWorker, t as defineConfig } from "./public-CvUXcSEm.mjs";
|
|
2
2
|
|
|
3
3
|
export { 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.19.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.20260925.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-
|
|
40
|
-
"@cloudflare/workers-
|
|
39
|
+
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
40
|
+
"@cloudflare/workers-utils": "0.44.0"
|
|
41
41
|
},
|
|
42
42
|
"workers-sdk": {
|
|
43
43
|
"prerelease": true
|