@cloudflare/workers-utils 0.41.2 → 0.43.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.
@@ -1283,6 +1283,19 @@ type File<Contents = string, Path = string> = {
1283
1283
  };
1284
1284
  type BinaryFile = File<Uint8Array>;
1285
1285
  type QueueConsumer = NonNullable<Config["queues"]["consumers"]>[number];
1286
+ type ConnectHandlerBase = {
1287
+ port: number;
1288
+ address?: string;
1289
+ };
1290
+ type TcpConnectHandler = ConnectHandlerBase & {
1291
+ protocol: "tcp";
1292
+ };
1293
+ type UdpConnectHandler = ConnectHandlerBase & {
1294
+ protocol: "udp";
1295
+ idleTimeoutMs?: number;
1296
+ maxPendingBytes?: number;
1297
+ };
1298
+ type ConnectHandler = TcpConnectHandler | UdpConnectHandler;
1286
1299
  type Trigger = {
1287
1300
  type: "workers.dev";
1288
1301
  } | {
@@ -1299,12 +1312,9 @@ type Trigger = {
1299
1312
  cron: string;
1300
1313
  } | ({
1301
1314
  type: "queue-consumer";
1302
- } & Omit<QueueConsumer, "type">) | {
1315
+ } & Omit<QueueConsumer, "type">) | ({
1303
1316
  type: "connect";
1304
- protocol: "tcp";
1305
- port: number;
1306
- address?: string;
1307
- };
1317
+ } & ConnectHandler);
1308
1318
  type DistributiveOmit<T, K extends PropertyKey> = T extends unknown ? Omit<T, K> : never;
1309
1319
  type BindingOmit<T> = DistributiveOmit<T, "binding">;
1310
1320
  type NameOmit<T> = DistributiveOmit<T, "name">;
@@ -1798,8 +1808,9 @@ type ContainerApp = {
1798
1808
  * The scheduling policy of the application
1799
1809
  * @optional
1800
1810
  * `"durable_object"` makes each Durable Object instance own its Container.
1801
- * In that mode, `name`, `class_name`, `scheduling_policy`, `images`, and
1802
- * application-wide log `observability` are supported on this entry.
1811
+ * In that mode, `name`, `class_name`, `scheduling_policy`, `images`,
1812
+ * application-wide log `observability`, `ssh`, and `authorized_keys` are
1813
+ * supported on this entry.
1803
1814
  *
1804
1815
  * @default "default"
1805
1816
  */
@@ -2063,7 +2074,18 @@ interface WorkerEntrypointExport {
2063
2074
  enabled: boolean;
2064
2075
  };
2065
2076
  }
2066
- type ConfiguredExport = DurableObjectExport | WorkerEntrypointExport;
2077
+ /**
2078
+ * A single declarative Workflow export entry in the `exports` config map. The
2079
+ * map key is the exported class name (the class extending `WorkflowEntrypoint`);
2080
+ * `name` is the workflow's stable identity, used for instance and storage
2081
+ * namespacing, and is required. The remaining settings match the ones accepted
2082
+ * by `workflows` bindings.
2083
+ */
2084
+ interface WorkflowExport extends Pick<WorkflowBinding, "limits" | "concurrency" | "schedules" | "default_retention"> {
2085
+ type: "workflow";
2086
+ name: string;
2087
+ }
2088
+ type ConfiguredExport = DurableObjectExport | WorkerEntrypointExport | WorkflowExport;
2067
2089
  /**
2068
2090
  * The declarative `exports` map keyed by export name. Durable Object exports
2069
2091
  * are mutually exclusive with `migrations` at the wrangler config layer.
@@ -2472,6 +2494,23 @@ type WorkflowBinding = {
2472
2494
  error_retention?: number | string;
2473
2495
  };
2474
2496
  };
2497
+ type ConnectHandlerConfigBase = {
2498
+ /** The port to listen on. */
2499
+ port: number;
2500
+ /** The address to bind to. Defaults to `127.0.0.1`. */
2501
+ address?: string;
2502
+ };
2503
+ type TcpConnectHandlerConfig = ConnectHandlerConfigBase & {
2504
+ protocol: "tcp";
2505
+ };
2506
+ type UdpConnectHandlerConfig = ConnectHandlerConfigBase & {
2507
+ protocol: "udp";
2508
+ /** The idle timeout in milliseconds after which a peer flow is closed. */
2509
+ idle_timeout_ms?: number;
2510
+ /** The maximum number of pending datagram bytes per peer flow. */
2511
+ max_pending_bytes?: number;
2512
+ };
2513
+ type ConnectHandlerConfig = TcpConnectHandlerConfig | UdpConnectHandlerConfig;
2475
2514
  /**
2476
2515
  * The `EnvironmentNonInheritable` interface declares all the configuration fields for an environment
2477
2516
  * that cannot be inherited from the top-level environment, and must be defined specifically.
@@ -2673,14 +2712,7 @@ interface EnvironmentNonInheritable {
2673
2712
  * @default []
2674
2713
  * @nonInheritable
2675
2714
  */
2676
- connect: {
2677
- /** The transport protocol to listen for. */
2678
- protocol: "tcp";
2679
- /** The port to listen on. */
2680
- port: number;
2681
- /** The address to bind to. Defaults to `127.0.0.1`. */
2682
- address?: string;
2683
- }[];
2715
+ connect: ConnectHandlerConfig[];
2684
2716
  /**
2685
2717
  * Specifies R2 buckets that are bound to this Worker environment.
2686
2718
  *
@@ -3676,4 +3708,4 @@ interface EnvironmentMap {
3676
3708
  }
3677
3709
  declare const defaultWranglerConfig: Config;
3678
3710
 
3679
- export { type CfModule as $, type ApiCredentials as A, type Binding as B, type ComputedFields as C, type DurableObjectExport as D, type Exports as E, type CfAssetsBinding as F, type CfBrowserBinding as G, type CfCapnp as H, type CfD1Database as I, type CfDataBlobBindings as J, type CfDevPluginCfg as K, type Logger as L, type CfDispatchNamespace as M, type CfDurableObject as N, type CfDurableObjectMigrations as O, type CfExports as P, type CfFlagship as Q, type RawConfig as R, type CfHelloWorld as S, type CfHyperdrive as T, type CfImagesBinding as U, type CfKvNamespace as V, type WorkerEntrypointExport as W, type CfLogfwdr as X, type CfLogfwdrBinding as Y, type CfMTlsCertificate as Z, type CfMediaBinding as _, type RedirectedRawConfig as a, type LegacyAssetPaths as a$, type CfModuleType as a0, type CfPipeline as a1, type CfPlacement as a2, type CfQueue as a3, type CfR2Bucket as a4, type CfRateLimit as a5, type CfScriptFormat as a6, type CfSecretsStoreSecrets as a7, type CfSendEmailBindings as a8, type CfService as a9, type DurableObjectContainerImage as aA, type DurableObjectExportStorage as aB, type DurableObjectMigration as aC, ENVIRONMENT_TAG_PREFIX as aD, type Entry as aE, type Environment as aF, type EnvironmentNonInheritable as aG, type ExportsReconciliationEntryBase as aH, type ExportsReconciliationErrorDetail as aI, type ExportsReconciliationInfo as aJ, type ExportsReconciliationRename as aK, type ExportsReconciliationResult as aL, type ExportsReconciliationTransfer as aM, type ExportsReconciliationTransferPending as aN, type ExportsReconciliationWarning as aO, type FetchKVGetValueFetcher as aP, type FetchListResultFetcher as aQ, type FetchPagedListResultFetcher as aR, type FetchResult as aS, type FetchResultFetcher as aT, type File as aU, type Hook as aV, type HookValues as aW, INHERIT_SYMBOL as aX, JSON_CONFIG_FORMATS as aY, type Json as aZ, LOGGER_LEVELS as a_, type CfStreamBinding as aa, type CfTextBlobBindings as ab, type CfUnsafe as ac, type CfUnsafeBinding as ad, type CfUserLimits as ae, type CfVars as af, type CfVectorize as ag, type CfVersionMetadataBinding as ah, type CfVpcNetwork as ai, type CfVpcService as aj, type CfWasmModuleBindings as ak, type CfWorkerContext as al, type CfWorkerInit as am, type CfWorkerLoader as an, type CfWorkerSourceMap as ao, type CfWorkflow as ap, type CloudchamberConfig as aq, type ConfigFields as ar, type ConfigModuleRuleType as as, type ConfiguredExport as at, type ContainerEngine as au, type ContainerObservability as av, type CustomDomainRoute as aw, type DispatchNamespaceOutbound as ax, type DockerConfiguration as ay, type DurableObjectBindings as az, type Config as b, getWranglerCacheDirFromEnv as b$, type LocalS3Credentials as b0, type LogLevel as b1, type LoggerLevel as b2, type NodeJSCompatMode as b3, type Observability as b4, PATH_TO_DEPLOY_CONFIG as b5, type PreviewsConfig as b6, type RawDevConfig as b7, type RawEnvironment as b8, type Rule as b9, getCIMatchTag as bA, getCIOverrideName as bB, getCIOverrideNetworkModeHost as bC, getCfFetchEnabledFromEnv as bD, getCfFetchPathFromEnv as bE, getCloudflareApiBaseUrl as bF, getCloudflareApiEnvironmentFromEnv as bG, getCloudflareComplianceRegion as bH, getCloudflareContainerRegistry as bI, getCloudflareEnv as bJ, getCloudflareIncludeProcessEnvFromEnv as bK, getCloudflareLoadDevVarsFromDotEnv as bL, getCloudflaredPathFromEnv as bM, getComplianceRegionSubdomain as bN, getD1ExtraLocationChoices as bO, getDisableConfigWatching as bP, getLocalExplorerEnabledFromEnv as bQ, getLocalObservabilityEnabledFromEnv as bR, getNoSkillsUpdatePromptsFromEnv as bS, getOpenNextDeployFromEnv as bT, getOutputFileDirectoryFromEnv as bU, getOutputFilePathFromEnv as bV, getRegistryPath as bW, getSanitizeLogs as bX, getSubdomainMixedStateCheckDisabled as bY, getTraceHeader as bZ, getWorkersCIBranchName as b_, SERVICE_TAG_PREFIX as ba, type ServiceFetch as bb, type ServiceMetadataRes as bc, type StartDevWorkerInput as bd, type StreamingTailConsumer as be, type TailConsumer as bf, type Trigger as bg, type UserLimits as bh, type ValidatedAssetsOptions as bi, type WorkerMetadata as bj, type WorkflowBinding as bk, type ZoneIdRoute as bl, type ZoneNameRoute as bm, addAuthorizationHeader as bn, defaultWranglerConfig as bo, extractAccountTag as bp, extractWAFBlockRayId as bq, fetchInternalBase as br, fetchKVGetValueBase as bs, fetchListResultBase as bt, fetchResultBase as bu, getBrowserRenderingHeadfulFromEnv as bv, getBuildConditionsFromEnv as bw, getBuildPlatformFromEnv as bx, getC3CommandFromEnv as by, getCIGeneratePreviewAlias as bz, type ContainerApp as c, getWranglerHideBanner as c0, getWranglerSendErrorReportsFromEnv as c1, getWranglerSendMetricsFromEnv as c2, hasCursor as c3, hasMorePages as c4, isDoNotTrackEnabled as c5, isWAFBlockResponse as c6, maybeAddTraceHeader as c7, parseRetryAfterMs as c8, parseRetryAfterValue as c9, performApiFetchBase as ca, renderError as cb, throwFetchError as cc, truncate as cd, type WorkerMetadataBinding as d, type CfTailConsumer as e, type ComplianceConfig as f, type Route as g, ARTIFACTS_EVENT_TYPES as h, type Access as i, type ArtifactsEventTrigger as j, type ArtifactsEventType as k, type AssetConfigMetadata as l, type Assets as m, type AssetsOptions as n, type AsyncHook as o, type BinaryFile as p, COMPLIANCE_REGION_CONFIG_PUBLIC as q, COMPLIANCE_REGION_CONFIG_UNKNOWN as r, type CacheOptions as s, type CfAIBinding as t, type CfAISearch as u, type CfAISearchNamespace as v, type CfAccount as w, type CfAgentMemory as x, type CfAnalyticsEngineDataset as y, type CfArtifacts as z };
3711
+ export { type CfMediaBinding as $, type ApiCredentials as A, type Binding as B, type ComputedFields as C, type DurableObjectExport as D, type Exports as E, type CfArtifacts as F, type CfAssetsBinding as G, type CfBrowserBinding as H, type CfCapnp as I, type CfD1Database as J, type CfDataBlobBindings as K, type Logger as L, type CfDevPluginCfg as M, type CfDispatchNamespace as N, type CfDurableObject as O, type CfDurableObjectMigrations as P, type CfExports as Q, type RawConfig as R, type CfFlagship as S, type CfHelloWorld as T, type CfHyperdrive as U, type CfImagesBinding as V, type WorkerEntrypointExport as W, type CfKvNamespace as X, type CfLogfwdr as Y, type CfLogfwdrBinding as Z, type CfMTlsCertificate as _, type RedirectedRawConfig as a, type Json as a$, type CfModule as a0, type CfModuleType as a1, type CfPipeline as a2, type CfPlacement as a3, type CfQueue as a4, type CfR2Bucket as a5, type CfRateLimit as a6, type CfScriptFormat as a7, type CfSecretsStoreSecrets as a8, type CfSendEmailBindings as a9, type DockerConfiguration as aA, type DurableObjectBindings as aB, type DurableObjectContainerImage as aC, type DurableObjectExportStorage as aD, type DurableObjectMigration as aE, ENVIRONMENT_TAG_PREFIX as aF, type Entry as aG, type Environment as aH, type EnvironmentNonInheritable as aI, type ExportsReconciliationEntryBase as aJ, type ExportsReconciliationErrorDetail as aK, type ExportsReconciliationInfo as aL, type ExportsReconciliationRename as aM, type ExportsReconciliationResult as aN, type ExportsReconciliationTransfer as aO, type ExportsReconciliationTransferPending as aP, type ExportsReconciliationWarning as aQ, type FetchKVGetValueFetcher as aR, type FetchListResultFetcher as aS, type FetchPagedListResultFetcher as aT, type FetchResult as aU, type FetchResultFetcher as aV, type File as aW, type Hook as aX, type HookValues as aY, INHERIT_SYMBOL as aZ, JSON_CONFIG_FORMATS as a_, type CfService as aa, type CfStreamBinding as ab, type CfTextBlobBindings as ac, type CfUnsafe as ad, type CfUnsafeBinding as ae, type CfUserLimits as af, type CfVars as ag, type CfVectorize as ah, type CfVersionMetadataBinding as ai, type CfVpcNetwork as aj, type CfVpcService as ak, type CfWasmModuleBindings as al, type CfWorkerContext as am, type CfWorkerInit as an, type CfWorkerLoader as ao, type CfWorkerSourceMap as ap, type CfWorkflow as aq, type CloudchamberConfig as ar, type ConfigFields as as, type ConfigModuleRuleType as at, type ConfiguredExport as au, type ConnectHandler as av, type ContainerEngine as aw, type ContainerObservability as ax, type CustomDomainRoute as ay, type DispatchNamespaceOutbound as az, type Config as b, getSanitizeLogs as b$, LOGGER_LEVELS as b0, type LegacyAssetPaths as b1, type LocalS3Credentials as b2, type LogLevel as b3, type LoggerLevel as b4, type NodeJSCompatMode as b5, type Observability as b6, PATH_TO_DEPLOY_CONFIG as b7, type PreviewsConfig as b8, type RawDevConfig as b9, getBuildConditionsFromEnv as bA, getBuildPlatformFromEnv as bB, getC3CommandFromEnv as bC, getCIGeneratePreviewAlias as bD, getCIMatchTag as bE, getCIOverrideName as bF, getCIOverrideNetworkModeHost as bG, getCfFetchEnabledFromEnv as bH, getCfFetchPathFromEnv as bI, getCloudflareApiBaseUrl as bJ, getCloudflareApiEnvironmentFromEnv as bK, getCloudflareComplianceRegion as bL, getCloudflareContainerRegistry as bM, getCloudflareEnv as bN, getCloudflareIncludeProcessEnvFromEnv as bO, getCloudflareLoadDevVarsFromDotEnv as bP, getCloudflaredPathFromEnv as bQ, getComplianceRegionSubdomain as bR, getD1ExtraLocationChoices as bS, getDisableConfigWatching as bT, getLocalExplorerEnabledFromEnv as bU, getLocalObservabilityEnabledFromEnv as bV, getNoSkillsUpdatePromptsFromEnv as bW, getOpenNextDeployFromEnv as bX, getOutputFileDirectoryFromEnv as bY, getOutputFilePathFromEnv as bZ, getRegistryPath as b_, type RawEnvironment as ba, type Rule as bb, SERVICE_TAG_PREFIX as bc, type ServiceFetch as bd, type ServiceMetadataRes as be, type StartDevWorkerInput as bf, type StreamingTailConsumer as bg, type TailConsumer as bh, type TcpConnectHandler as bi, type Trigger as bj, type UdpConnectHandler as bk, type UserLimits as bl, type ValidatedAssetsOptions as bm, type WorkerMetadata as bn, type WorkflowBinding as bo, type ZoneIdRoute as bp, type ZoneNameRoute as bq, addAuthorizationHeader as br, defaultWranglerConfig as bs, extractAccountTag as bt, extractWAFBlockRayId as bu, fetchInternalBase as bv, fetchKVGetValueBase as bw, fetchListResultBase as bx, fetchResultBase as by, getBrowserRenderingHeadfulFromEnv as bz, type WorkflowExport as c, getSubdomainMixedStateCheckDisabled as c0, getTraceHeader as c1, getWorkersCIBranchName as c2, getWranglerCacheDirFromEnv as c3, getWranglerHideBanner as c4, getWranglerSendErrorReportsFromEnv as c5, getWranglerSendMetricsFromEnv as c6, hasCursor as c7, hasMorePages as c8, isDoNotTrackEnabled as c9, isWAFBlockResponse as ca, maybeAddTraceHeader as cb, parseRetryAfterMs as cc, parseRetryAfterValue as cd, performApiFetchBase as ce, renderError as cf, throwFetchError as cg, truncate as ch, type ContainerApp as d, type WorkerMetadataBinding as e, type CfTailConsumer as f, type ComplianceConfig as g, type Route as h, ARTIFACTS_EVENT_TYPES as i, type Access as j, type ArtifactsEventTrigger as k, type ArtifactsEventType as l, type AssetConfigMetadata as m, type Assets as n, type AssetsOptions as o, type AsyncHook as p, type BinaryFile as q, COMPLIANCE_REGION_CONFIG_PUBLIC as r, COMPLIANCE_REGION_CONFIG_UNKNOWN as s, type CacheOptions as t, type CfAIBinding as u, type CfAISearch as v, type CfAISearchNamespace as w, type CfAccount as x, type CfAgentMemory as y, type CfAnalyticsEngineDataset as z };
@@ -1,4 +1,4 @@
1
- export { q as COMPLIANCE_REGION_CONFIG_PUBLIC, r as COMPLIANCE_REGION_CONFIG_UNKNOWN, f as ComplianceConfig, bF as getCloudflareApiBaseUrl, bH as getCloudflareComplianceRegion, bI as getCloudflareContainerRegistry, bN as getComplianceRegionSubdomain } from './compliance-CLyWFvPo.mjs';
1
+ export { r as COMPLIANCE_REGION_CONFIG_PUBLIC, s as COMPLIANCE_REGION_CONFIG_UNKNOWN, g as ComplianceConfig, bJ as getCloudflareApiBaseUrl, bL as getCloudflareComplianceRegion, bM as getCloudflareContainerRegistry, bR as getComplianceRegionSubdomain } from './compliance-DzwHmPKm.mjs';
2
2
  import 'node:url';
3
3
  import 'undici';
4
4
  import '@cloudflare/workers-shared';
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as ComputedFields, B as Binding, R as RawConfig, b as Config, E as Exports, D as DurableObjectExport, W as WorkerEntrypointExport, c as ContainerApp, d as WorkerMetadataBinding, e as CfTailConsumer, L as Logger, A as ApiCredentials, f as ComplianceConfig, g as Route } from './compliance-CLyWFvPo.mjs';
2
- export { h as ARTIFACTS_EVENT_TYPES, i as Access, j as ArtifactsEventTrigger, k as ArtifactsEventType, l as AssetConfigMetadata, m as Assets, n as AssetsOptions, o as AsyncHook, p as BinaryFile, q as COMPLIANCE_REGION_CONFIG_PUBLIC, r as COMPLIANCE_REGION_CONFIG_UNKNOWN, s as CacheOptions, t as CfAIBinding, u as CfAISearch, v as CfAISearchNamespace, w as CfAccount, x as CfAgentMemory, y as CfAnalyticsEngineDataset, z as CfArtifacts, F as CfAssetsBinding, G as CfBrowserBinding, H as CfCapnp, I as CfD1Database, J as CfDataBlobBindings, K as CfDevPluginCfg, M as CfDispatchNamespace, N as CfDurableObject, O as CfDurableObjectMigrations, P as CfExports, Q as CfFlagship, S as CfHelloWorld, T as CfHyperdrive, U as CfImagesBinding, V as CfKvNamespace, X as CfLogfwdr, Y as CfLogfwdrBinding, Z as CfMTlsCertificate, _ as CfMediaBinding, $ as CfModule, a0 as CfModuleType, a1 as CfPipeline, a2 as CfPlacement, a3 as CfQueue, a4 as CfR2Bucket, a5 as CfRateLimit, a6 as CfScriptFormat, a7 as CfSecretsStoreSecrets, a8 as CfSendEmailBindings, a9 as CfService, aa as CfStreamBinding, ab as CfTextBlobBindings, ac as CfUnsafe, ad as CfUnsafeBinding, ae as CfUserLimits, af as CfVars, ag as CfVectorize, ah as CfVersionMetadataBinding, ai as CfVpcNetwork, aj as CfVpcService, ak as CfWasmModuleBindings, al as CfWorkerContext, am as CfWorkerInit, an as CfWorkerLoader, ao as CfWorkerSourceMap, ap as CfWorkflow, aq as CloudchamberConfig, ar as ConfigFields, as as ConfigModuleRuleType, at as ConfiguredExport, au as ContainerEngine, av as ContainerObservability, aw as CustomDomainRoute, ax as DispatchNamespaceOutbound, ay as DockerConfiguration, az as DurableObjectBindings, aA as DurableObjectContainerImage, aB as DurableObjectExportStorage, aC as DurableObjectMigration, aD as ENVIRONMENT_TAG_PREFIX, aE as Entry, aF as Environment, aG as EnvironmentNonInheritable, aH as ExportsReconciliationEntryBase, aI as ExportsReconciliationErrorDetail, aJ as ExportsReconciliationInfo, aK as ExportsReconciliationRename, aL as ExportsReconciliationResult, aM as ExportsReconciliationTransfer, aN as ExportsReconciliationTransferPending, aO as ExportsReconciliationWarning, aP as FetchKVGetValueFetcher, aQ as FetchListResultFetcher, aR as FetchPagedListResultFetcher, aS as FetchResult, aT as FetchResultFetcher, aU as File, aV as Hook, aW as HookValues, aX as INHERIT_SYMBOL, aY as JSON_CONFIG_FORMATS, aZ as Json, a_ as LOGGER_LEVELS, a$ as LegacyAssetPaths, b0 as LocalS3Credentials, b1 as LogLevel, b2 as LoggerLevel, b3 as NodeJSCompatMode, b4 as Observability, b5 as PATH_TO_DEPLOY_CONFIG, b6 as PreviewsConfig, b7 as RawDevConfig, b8 as RawEnvironment, a as RedirectedRawConfig, b9 as Rule, ba as SERVICE_TAG_PREFIX, bb as ServiceFetch, bc as ServiceMetadataRes, bd as StartDevWorkerInput, be as StreamingTailConsumer, bf as TailConsumer, bg as Trigger, bh as UserLimits, bi as ValidatedAssetsOptions, bj as WorkerMetadata, bk as WorkflowBinding, bl as ZoneIdRoute, bm as ZoneNameRoute, bn as addAuthorizationHeader, bo as defaultWranglerConfig, bp as extractAccountTag, bq as extractWAFBlockRayId, br as fetchInternalBase, bs as fetchKVGetValueBase, bt as fetchListResultBase, bu as fetchResultBase, bv as getBrowserRenderingHeadfulFromEnv, bw as getBuildConditionsFromEnv, bx as getBuildPlatformFromEnv, by as getC3CommandFromEnv, bz as getCIGeneratePreviewAlias, bA as getCIMatchTag, bB as getCIOverrideName, bC as getCIOverrideNetworkModeHost, bD as getCfFetchEnabledFromEnv, bE as getCfFetchPathFromEnv, bF as getCloudflareApiBaseUrl, bG as getCloudflareApiEnvironmentFromEnv, bH as getCloudflareComplianceRegion, bI as getCloudflareContainerRegistry, bJ as getCloudflareEnv, bK as getCloudflareIncludeProcessEnvFromEnv, bL as getCloudflareLoadDevVarsFromDotEnv, bM as getCloudflaredPathFromEnv, bN as getComplianceRegionSubdomain, bO as getD1ExtraLocationChoices, bP as getDisableConfigWatching, bQ as getLocalExplorerEnabledFromEnv, bR as getLocalObservabilityEnabledFromEnv, bS as getNoSkillsUpdatePromptsFromEnv, bT as getOpenNextDeployFromEnv, bU as getOutputFileDirectoryFromEnv, bV as getOutputFilePathFromEnv, bW as getRegistryPath, bX as getSanitizeLogs, bY as getSubdomainMixedStateCheckDisabled, bZ as getTraceHeader, b_ as getWorkersCIBranchName, b$ as getWranglerCacheDirFromEnv, c0 as getWranglerHideBanner, c1 as getWranglerSendErrorReportsFromEnv, c2 as getWranglerSendMetricsFromEnv, c3 as hasCursor, c4 as hasMorePages, c5 as isDoNotTrackEnabled, c6 as isWAFBlockResponse, c7 as maybeAddTraceHeader, c8 as parseRetryAfterMs, c9 as parseRetryAfterValue, ca as performApiFetchBase, cb as renderError, cc as throwFetchError, cd as truncate } from './compliance-CLyWFvPo.mjs';
1
+ import { C as ComputedFields, B as Binding, R as RawConfig, b as Config, E as Exports, D as DurableObjectExport, W as WorkerEntrypointExport, c as WorkflowExport, d as ContainerApp, e as WorkerMetadataBinding, f as CfTailConsumer, L as Logger, A as ApiCredentials, g as ComplianceConfig, h as Route } from './compliance-DzwHmPKm.mjs';
2
+ export { i as ARTIFACTS_EVENT_TYPES, j as Access, k as ArtifactsEventTrigger, l as ArtifactsEventType, m as AssetConfigMetadata, n as Assets, o as AssetsOptions, p as AsyncHook, q as BinaryFile, r as COMPLIANCE_REGION_CONFIG_PUBLIC, s as COMPLIANCE_REGION_CONFIG_UNKNOWN, t as CacheOptions, u as CfAIBinding, v as CfAISearch, w as CfAISearchNamespace, x as CfAccount, y as CfAgentMemory, z as CfAnalyticsEngineDataset, F as CfArtifacts, G as CfAssetsBinding, H as CfBrowserBinding, I as CfCapnp, J as CfD1Database, K as CfDataBlobBindings, M as CfDevPluginCfg, N as CfDispatchNamespace, O as CfDurableObject, P as CfDurableObjectMigrations, Q as CfExports, S as CfFlagship, T as CfHelloWorld, U as CfHyperdrive, V as CfImagesBinding, X as CfKvNamespace, Y as CfLogfwdr, Z as CfLogfwdrBinding, _ as CfMTlsCertificate, $ as CfMediaBinding, a0 as CfModule, a1 as CfModuleType, a2 as CfPipeline, a3 as CfPlacement, a4 as CfQueue, a5 as CfR2Bucket, a6 as CfRateLimit, a7 as CfScriptFormat, a8 as CfSecretsStoreSecrets, a9 as CfSendEmailBindings, aa as CfService, ab as CfStreamBinding, ac as CfTextBlobBindings, ad as CfUnsafe, ae as CfUnsafeBinding, af as CfUserLimits, ag as CfVars, ah as CfVectorize, ai as CfVersionMetadataBinding, aj as CfVpcNetwork, ak as CfVpcService, al as CfWasmModuleBindings, am as CfWorkerContext, an as CfWorkerInit, ao as CfWorkerLoader, ap as CfWorkerSourceMap, aq as CfWorkflow, ar as CloudchamberConfig, as as ConfigFields, at as ConfigModuleRuleType, au as ConfiguredExport, av as ConnectHandler, aw as ContainerEngine, ax as ContainerObservability, ay as CustomDomainRoute, az as DispatchNamespaceOutbound, aA as DockerConfiguration, aB as DurableObjectBindings, aC as DurableObjectContainerImage, aD as DurableObjectExportStorage, aE as DurableObjectMigration, aF as ENVIRONMENT_TAG_PREFIX, aG as Entry, aH as Environment, aI as EnvironmentNonInheritable, aJ as ExportsReconciliationEntryBase, aK as ExportsReconciliationErrorDetail, aL as ExportsReconciliationInfo, aM as ExportsReconciliationRename, aN as ExportsReconciliationResult, aO as ExportsReconciliationTransfer, aP as ExportsReconciliationTransferPending, aQ as ExportsReconciliationWarning, aR as FetchKVGetValueFetcher, aS as FetchListResultFetcher, aT as FetchPagedListResultFetcher, aU as FetchResult, aV as FetchResultFetcher, aW as File, aX as Hook, aY as HookValues, aZ as INHERIT_SYMBOL, a_ as JSON_CONFIG_FORMATS, a$ as Json, b0 as LOGGER_LEVELS, b1 as LegacyAssetPaths, b2 as LocalS3Credentials, b3 as LogLevel, b4 as LoggerLevel, b5 as NodeJSCompatMode, b6 as Observability, b7 as PATH_TO_DEPLOY_CONFIG, b8 as PreviewsConfig, b9 as RawDevConfig, ba as RawEnvironment, a as RedirectedRawConfig, bb as Rule, bc as SERVICE_TAG_PREFIX, bd as ServiceFetch, be as ServiceMetadataRes, bf as StartDevWorkerInput, bg as StreamingTailConsumer, bh as TailConsumer, bi as TcpConnectHandler, bj as Trigger, bk as UdpConnectHandler, bl as UserLimits, bm as ValidatedAssetsOptions, bn as WorkerMetadata, bo as WorkflowBinding, bp as ZoneIdRoute, bq as ZoneNameRoute, br as addAuthorizationHeader, bs as defaultWranglerConfig, bt as extractAccountTag, bu as extractWAFBlockRayId, bv as fetchInternalBase, bw as fetchKVGetValueBase, bx as fetchListResultBase, by as fetchResultBase, bz as getBrowserRenderingHeadfulFromEnv, bA as getBuildConditionsFromEnv, bB as getBuildPlatformFromEnv, bC as getC3CommandFromEnv, bD as getCIGeneratePreviewAlias, bE as getCIMatchTag, bF as getCIOverrideName, bG as getCIOverrideNetworkModeHost, bH as getCfFetchEnabledFromEnv, bI as getCfFetchPathFromEnv, bJ as getCloudflareApiBaseUrl, bK as getCloudflareApiEnvironmentFromEnv, bL as getCloudflareComplianceRegion, bM as getCloudflareContainerRegistry, bN as getCloudflareEnv, bO as getCloudflareIncludeProcessEnvFromEnv, bP as getCloudflareLoadDevVarsFromDotEnv, bQ as getCloudflaredPathFromEnv, bR as getComplianceRegionSubdomain, bS as getD1ExtraLocationChoices, bT as getDisableConfigWatching, bU as getLocalExplorerEnabledFromEnv, bV as getLocalObservabilityEnabledFromEnv, bW as getNoSkillsUpdatePromptsFromEnv, bX as getOpenNextDeployFromEnv, bY as getOutputFileDirectoryFromEnv, bZ as getOutputFilePathFromEnv, b_ as getRegistryPath, b$ as getSanitizeLogs, c0 as getSubdomainMixedStateCheckDisabled, c1 as getTraceHeader, c2 as getWorkersCIBranchName, c3 as getWranglerCacheDirFromEnv, c4 as getWranglerHideBanner, c5 as getWranglerSendErrorReportsFromEnv, c6 as getWranglerSendMetricsFromEnv, c7 as hasCursor, c8 as hasMorePages, c9 as isDoNotTrackEnabled, ca as isWAFBlockResponse, cb as maybeAddTraceHeader, cc as parseRetryAfterMs, cd as parseRetryAfterValue, ce as performApiFetchBase, cf as renderError, cg as throwFetchError, ch as truncate } from './compliance-DzwHmPKm.mjs';
3
3
  import * as jsoncParser from 'jsonc-parser';
4
4
  import { UserError, TelemetryMessage } from './errors.mjs';
5
5
  export { CommandLineArgsError, DeprecationError, FatalError, JsonFriendlyFatalError, MissingConfigError, createFatalError } from './errors.mjs';
@@ -150,6 +150,7 @@ type ExportType = Exports[string]["type"];
150
150
  interface PartitionedExports {
151
151
  "durable-object": Record<string, DurableObjectExport>;
152
152
  worker: Record<string, WorkerEntrypointExport>;
153
+ workflow: Record<string, WorkflowExport>;
153
154
  }
154
155
  declare function partitionExports(exports: Exports | undefined): PartitionedExports;
155
156
 
@@ -238,6 +239,19 @@ declare const experimental_readRawConfig: (args: ReadConfigCommandArgs, options?
238
239
  redirected: boolean;
239
240
  };
240
241
 
242
+ type LiveDurableObjectExport = Extract<DurableObjectExport, {
243
+ state?: "created";
244
+ } | {
245
+ state: "expecting-transfer";
246
+ }>;
247
+ /**
248
+ * Returns whether a Durable Object export represents a live class rather than
249
+ * a tombstone.
250
+ *
251
+ * @param exportConfig - The Durable Object export to inspect.
252
+ * @returns Whether the export is in a live lifecycle state.
253
+ */
254
+ declare function isLiveDurableObjectExport(exportConfig: DurableObjectExport): exportConfig is LiveDurableObjectExport;
241
255
  /**
242
256
  * Returns a map of exports that are only of type "durable-object".
243
257
  */
@@ -1354,4 +1368,4 @@ declare function compareMigrationPaths(a: string, b: string): number;
1354
1368
  */
1355
1369
  declare const friendlyBindingNames: Record<ConfigBindingFieldName, string>;
1356
1370
 
1357
- export { APIError, ApiCredentials, Binding, type BindingLocalSupport, BunPackageManager, CfTailConsumer, CompatDate, ComplianceConfig, Config, type ConfigBindingFieldName, type ConfigBindingOptions, type ConfigCache, type ConfigCacheOptions, ContainerApp, type ConvertBindingsOptions, type D1MigrationFile, DEFAULT_COMPAT_DATE, Diagnostics, type DurableObjectContainerApp, DurableObjectExport, type EphemeralDirectory, type ExportType, Exports, type GetD1MigrationFilesOptions, type Location, Logger, type Message, type NormalizeAndValidateConfigArgs, NpmPackageManager, type NpmVersionCheckResult, NubPackageManager, type OutputEntry, type PackageJSON, type PackageManager, ParseError, type ParseFile, type PartitionedExports, PatchConfigError, PnpmPackageManager, type PrintBindingsOptions, RawConfig, type ResolveConfigPathOptions, type ResolvedDurableObjectContainerApp, Route, TelemetryMessage, type Tunnel, type TunnelOptions, type UrlPath, UserError, WorkerEntrypointExport, WorkerMetadataBinding, YarnPackageManager, assertNever, bucketFormatMessage, checkWorkerNameValidity, clearOutputFilePath, compareMigrationPaths, configFileName, configFormat, convertConfigToBindings, createConfigCache, experimental_patchConfig, experimental_readRawConfig, extractBindingsOfType, fetchLatestNpmVersion, findWranglerConfig, formatConfigSnippet, formatTime, friendlyBindingNames, getBindingLocalSupport, getBindingTypeFriendlyName, getBindings, getBooleanEnvironmentVariableFactory, getContainerDurableObjectClassNames, getContainerNameToClassNameMap, getD1MigrationFiles, getDurableObjectClassNameToUseSQLiteMap, getDurableObjectContainerApps, getDurableObjectExports, getEnvironmentVariableFactory, getHostFromRoute, getHostFromUrl, getInstalledPackageVersion, getPackagePath, getResolvedDurableObjectContainerApps, getWorkerName, getWorkerNameFromProject, getWranglerHiddenDirPath, getWranglerTmpDir, getZoneFromRoute, hasDurableObjectExports, hasProperty, indexLocation, isCI, isDockerfile, isDurableObjectContainerApp, isInteractive, isNonInteractiveOrCI, isOptionalProperty, isPackageInstalled, isPagesConfig, isRedirectedConfig, isRequiredProperty, isUnsafeBindingType, isValidR2BucketName, mapWorkerMetadataBindings, normalizeAndValidateConfig, normalizeRelativePath, openInBrowser, parseByteSize, parseHumanDuration, parseJSON, parseJSONC, parseNonHyphenedUuid, parsePackageJSON, parseTOML, partitionExports, printBindings, readFileSync, readFileSyncToBuffer, resolveContainerClassName, resolveNamedTunnel, resolveWranglerConfigPath, retryOnAPIFailure, searchLocation, spawnCloudflared, startTunnel, sweepStaleWranglerTmpDirs, toUrlPath, toValidWorkerName, validateBindingRemoteSetting, validateDurableObjectContainerApplications, validatePagesConfig, writeOutput };
1371
+ export { APIError, ApiCredentials, Binding, type BindingLocalSupport, BunPackageManager, CfTailConsumer, CompatDate, ComplianceConfig, Config, type ConfigBindingFieldName, type ConfigBindingOptions, type ConfigCache, type ConfigCacheOptions, ContainerApp, type ConvertBindingsOptions, type D1MigrationFile, DEFAULT_COMPAT_DATE, Diagnostics, type DurableObjectContainerApp, DurableObjectExport, type EphemeralDirectory, type ExportType, Exports, type GetD1MigrationFilesOptions, type LiveDurableObjectExport, type Location, Logger, type Message, type NormalizeAndValidateConfigArgs, NpmPackageManager, type NpmVersionCheckResult, NubPackageManager, type OutputEntry, type PackageJSON, type PackageManager, ParseError, type ParseFile, type PartitionedExports, PatchConfigError, PnpmPackageManager, type PrintBindingsOptions, RawConfig, type ResolveConfigPathOptions, type ResolvedDurableObjectContainerApp, Route, TelemetryMessage, type Tunnel, type TunnelOptions, type UrlPath, UserError, WorkerEntrypointExport, WorkerMetadataBinding, WorkflowExport, YarnPackageManager, assertNever, bucketFormatMessage, checkWorkerNameValidity, clearOutputFilePath, compareMigrationPaths, configFileName, configFormat, convertConfigToBindings, createConfigCache, experimental_patchConfig, experimental_readRawConfig, extractBindingsOfType, fetchLatestNpmVersion, findWranglerConfig, formatConfigSnippet, formatTime, friendlyBindingNames, getBindingLocalSupport, getBindingTypeFriendlyName, getBindings, getBooleanEnvironmentVariableFactory, getContainerDurableObjectClassNames, getContainerNameToClassNameMap, getD1MigrationFiles, getDurableObjectClassNameToUseSQLiteMap, getDurableObjectContainerApps, getDurableObjectExports, getEnvironmentVariableFactory, getHostFromRoute, getHostFromUrl, getInstalledPackageVersion, getPackagePath, getResolvedDurableObjectContainerApps, getWorkerName, getWorkerNameFromProject, getWranglerHiddenDirPath, getWranglerTmpDir, getZoneFromRoute, hasDurableObjectExports, hasProperty, indexLocation, isCI, isDockerfile, isDurableObjectContainerApp, isInteractive, isLiveDurableObjectExport, isNonInteractiveOrCI, isOptionalProperty, isPackageInstalled, isPagesConfig, isRedirectedConfig, isRequiredProperty, isUnsafeBindingType, isValidR2BucketName, mapWorkerMetadataBindings, normalizeAndValidateConfig, normalizeRelativePath, openInBrowser, parseByteSize, parseHumanDuration, parseJSON, parseJSONC, parseNonHyphenedUuid, parsePackageJSON, parseTOML, partitionExports, printBindings, readFileSync, readFileSyncToBuffer, resolveContainerClassName, resolveNamedTunnel, resolveWranglerConfigPath, retryOnAPIFailure, searchLocation, spawnCloudflared, startTunnel, sweepStaleWranglerTmpDirs, toUrlPath, toValidWorkerName, validateBindingRemoteSetting, validateDurableObjectContainerApplications, validatePagesConfig, writeOutput };