@cloudflare/deploy-helpers 0.7.1 → 0.9.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.
@@ -44,8 +44,25 @@ function convertConfigToBindings(config, options) {
44
44
  if (pages) {
45
45
  break;
46
46
  }
47
- for (const { name, ...x } of info) {
48
- output[name] = { type: "send_email", ...x };
47
+ for (const {
48
+ name,
49
+ destination_address,
50
+ allowed_destination_addresses,
51
+ allowed_sender_addresses,
52
+ remote
53
+ } of info) {
54
+ const shared = {
55
+ type: "send_email",
56
+ allowed_sender_addresses,
57
+ remote
58
+ };
59
+ if (destination_address !== void 0) {
60
+ output[name] = { ...shared, destination_address };
61
+ } else if (allowed_destination_addresses !== void 0) {
62
+ output[name] = { ...shared, allowed_destination_addresses };
63
+ } else {
64
+ output[name] = shared;
65
+ }
49
66
  }
50
67
  break;
51
68
  }
@@ -554,16 +571,24 @@ function createWorkerUploadForm(worker, bindings, options) {
554
571
  }
555
572
  });
556
573
  send_email.forEach((emailBinding) => {
557
- const destination_address = "destination_address" in emailBinding ? emailBinding.destination_address : void 0;
558
- const allowed_destination_addresses = "allowed_destination_addresses" in emailBinding ? emailBinding.allowed_destination_addresses : void 0;
559
- const allowed_sender_addresses = "allowed_sender_addresses" in emailBinding ? emailBinding.allowed_sender_addresses : void 0;
560
- metadataBindings.push({
574
+ const shared = {
561
575
  name: emailBinding.name,
562
576
  type: "send_email",
563
- destination_address,
564
- allowed_destination_addresses,
565
- allowed_sender_addresses
566
- });
577
+ allowed_sender_addresses: emailBinding.allowed_sender_addresses
578
+ };
579
+ if (emailBinding.destination_address !== void 0) {
580
+ metadataBindings.push({
581
+ ...shared,
582
+ destination_address: emailBinding.destination_address
583
+ });
584
+ } else if (emailBinding.allowed_destination_addresses !== void 0) {
585
+ metadataBindings.push({
586
+ ...shared,
587
+ allowed_destination_addresses: emailBinding.allowed_destination_addresses
588
+ });
589
+ } else {
590
+ metadataBindings.push(shared);
591
+ }
567
592
  });
568
593
  durable_objects.forEach(({ name, class_name, script_name, environment }) => {
569
594
  metadataBindings.push({
@@ -1,4 +1,4 @@
1
- import { FetchResultFetcher, FetchListResultFetcher, FetchPagedListResultFetcher, FetchKVGetValueFetcher, Logger, Entry, ValidatedAssetsOptions, LegacyAssetPaths, Route, CfModule, CfWorkerSourceMap, CfModuleType, Config } from '@cloudflare/workers-utils';
1
+ import { FetchResultFetcher, FetchListResultFetcher, FetchPagedListResultFetcher, FetchKVGetValueFetcher, Logger, Entry, ValidatedAssetsOptions, LegacyAssetPaths, Route, Config, CfModule, CfWorkerSourceMap, CfModuleType } from '@cloudflare/workers-utils';
2
2
 
3
3
  /**
4
4
  * client needs to handle logger and fetch/auth implementation
@@ -85,6 +85,8 @@ type SharedDeployVersionsProps = {
85
85
  skipProvisioningConfigWriteback: boolean;
86
86
  /** From --strict arg. In strict mode, conflicting pre-upload checks abort instead of auto-continuing. */
87
87
  strict: boolean;
88
+ /** Whether the resolved Worker name differs from the pre-merge config/args name. */
89
+ workerNameOverridden?: boolean;
88
90
  };
89
91
  type DeployProps = SharedDeployVersionsProps & {
90
92
  /** Discriminant for DeployProps vs VersionsUploadProps */
@@ -141,13 +143,14 @@ interface TriggerDeployment {
141
143
  }
142
144
  type TriggerProps = {
143
145
  config: Config;
144
- accountId: string;
146
+ accountId: string | undefined;
145
147
  scriptName: string;
146
148
  workerTag?: string | null;
147
- env: string | undefined;
148
149
  crons: string[] | undefined;
149
150
  routes: Route[];
150
151
  firstDeploy: boolean;
152
+ dryRun: boolean;
153
+ validated: boolean;
151
154
  };
152
155
 
153
156
  /**
@@ -176,4 +179,4 @@ declare let select: DeployHelpersContext["select"];
176
179
  */
177
180
  declare function initDeployHelpersContext(ctx: DeployHelpersContext): void;
178
181
 
179
- export { type DeployProps as D, type SharedDeployVersionsProps as S, type TriggerProps as T, type VersionsUploadProps as V, type WorkerBuildResult as W, type TriggerDeployment as a, type DeployHelpersContext as b, fetchListResult as c, fetchPagedListResult as d, fetchKVGetValue as e, fetchResult as f, confirm as g, initDeployHelpersContext as i, logger as l, prompt as p, select as s };
182
+ export { type DeployProps as D, type SharedDeployVersionsProps as S, type TriggerProps as T, type VersionsUploadProps as V, type WorkerBuildResult as W, type TriggerDeployment as a, type DeployHelpersContext as b, confirm as c, fetchListResult as d, fetchPagedListResult as e, fetchKVGetValue as f, fetchResult as g, initDeployHelpersContext as i, logger as l, prompt as p, select as s };
@@ -1,2 +1,2 @@
1
- export { g as confirm, e as fetchKVGetValue, c as fetchListResult, d as fetchPagedListResult, f as fetchResult, i as initDeployHelpersContext, l as logger, p as prompt, s as select } from './context-DPzCSVQh.mjs';
1
+ export { c as confirm, f as fetchKVGetValue, d as fetchListResult, e as fetchPagedListResult, g as fetchResult, i as initDeployHelpersContext, l as logger, p as prompt, s as select } from './context-nFHuelHB.mjs';
2
2
  import '@cloudflare/workers-utils';
@@ -1,5 +1,5 @@
1
1
  import { FormData } from 'undici';
2
- import { CfModuleType, CfWorkerInit, Binding, CfCapnp } from '@cloudflare/workers-utils';
2
+ import { CfWorkerInit, Binding, CfCapnp, CfModuleType } from '@cloudflare/workers-utils';
3
3
 
4
4
  declare const moduleTypeMimeType: {
5
5
  [type in CfModuleType]: string | undefined;
@@ -1,2 +1,2 @@
1
- export { createWorkerUploadForm, fromMimeType, moduleTypeMimeType } from './chunk-LRKPOFWK.mjs';
1
+ export { createWorkerUploadForm, fromMimeType, moduleTypeMimeType } from './chunk-ZV7SJ2MZ.mjs';
2
2
  import './chunk-Q72B4Q5Z.mjs';
package/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
- import { S as SharedDeployVersionsProps, D as DeployProps, W as WorkerBuildResult, V as VersionsUploadProps, T as TriggerProps, a as TriggerDeployment } from './context-DPzCSVQh.mjs';
2
- export { b as DeployHelpersContext, i as initDeployHelpersContext } from './context-DPzCSVQh.mjs';
1
+ import { S as SharedDeployVersionsProps, D as DeployProps, W as WorkerBuildResult, V as VersionsUploadProps, T as TriggerProps, a as TriggerDeployment } from './context-nFHuelHB.mjs';
2
+ export { b as DeployHelpersContext, i as initDeployHelpersContext } from './context-nFHuelHB.mjs';
3
3
  import * as _cloudflare_workers_utils from '@cloudflare/workers-utils';
4
- import { ComplianceConfig, Config, AssetsOptions, LegacyAssetPaths, Route, ZoneIdRoute, ZoneNameRoute, CustomDomainRoute, CfPlacement, Binding as Binding$1, RawConfig, ConfigBindingFieldName, CfCapnp, CfScriptFormat, CfModule, ParseError, WorkerMetadataBinding, CfUserLimits, TailConsumer, StreamingTailConsumer, Observability, CfWorkerInit, ExportsReconciliationResult, ExportsReconciliationErrorDetail, StartDevWorkerInput, CfTailConsumer, ContainerApp, CacheOptions } from '@cloudflare/workers-utils';
4
+ import { Config, AssetsOptions, ComplianceConfig, LegacyAssetPaths, Route, ZoneIdRoute, ZoneNameRoute, CustomDomainRoute, CfPlacement, Binding as Binding$1, RawConfig, ConfigBindingFieldName, CfCapnp, CfScriptFormat, CfModule, ParseError, WorkerMetadataBinding, CfUserLimits, TailConsumer, StreamingTailConsumer, Observability, CfWorkerInit, ExportsReconciliationErrorDetail, ExportsReconciliationResult, StartDevWorkerInput, CfTailConsumer, ContainerApp, CacheOptions, PreviewsConfig } from '@cloudflare/workers-utils';
5
5
  import { ContainerNormalizedConfig, ImageURIConfig } from '@cloudflare/containers-shared';
6
6
  import { FormData } from 'undici';
7
7
  export { createWorkerUploadForm, fromMimeType, moduleTypeMimeType } from './create-worker-upload-form.mjs';
@@ -54,22 +54,24 @@ type DeployCallbacks = {
54
54
  }) => Promise<void>) | undefined;
55
55
  analyseBundle: ((workerBundle: string | FormData) => Promise<Record<string, unknown>>) | undefined;
56
56
  };
57
- declare function deploy(props: DeployProps, config: Config, buildResult: WorkerBuildResult, callbacks: DeployCallbacks): Promise<{
57
+ type DeployResult = {
58
58
  sourceMapSize?: number;
59
59
  versionId: string | null;
60
60
  workerTag: string | null;
61
61
  assetUploadStats?: AssetUploadStats;
62
62
  targets?: string[];
63
- }>;
63
+ };
64
+ declare function deploy(props: DeployProps, config: Config, buildResult: WorkerBuildResult, callbacks: DeployCallbacks): Promise<DeployResult>;
64
65
 
65
66
  type VersionsUploadCallbacks = Pick<DeployCallbacks, "analyseBundle">;
66
- declare function versionsUpload(props: VersionsUploadProps, config: Config, buildResult: WorkerBuildResult, callbacks: VersionsUploadCallbacks): Promise<{
67
+ type VersionsUploadResult = {
67
68
  versionId: string | null;
68
69
  workerTag: string | null;
69
70
  assetUploadStats?: AssetUploadStats;
70
71
  versionPreviewUrl?: string | undefined;
71
72
  versionPreviewAliasUrl?: string | undefined;
72
- }>;
73
+ };
74
+ declare function versionsUpload(props: VersionsUploadProps, config: Config, buildResult: WorkerBuildResult, callbacks: VersionsUploadCallbacks): Promise<VersionsUploadResult>;
73
75
 
74
76
  declare function triggersDeploy(props: TriggerProps): Promise<string[] | void>;
75
77
  declare function getSubdomainValues(config_workers_dev: boolean | undefined, config_preview_urls: boolean | undefined, routes: Route[]): {
@@ -932,6 +934,15 @@ interface DeploymentResource {
932
934
  limits?: CfUserLimits;
933
935
  placement?: CfPlacement;
934
936
  cache?: CacheOptions;
937
+ annotations?: {
938
+ "workers/commit_sha"?: string;
939
+ "workers/message"?: string;
940
+ "workers/pull_request_number"?: string;
941
+ "workers/pull_request_title"?: string;
942
+ "workers/pull_request_url"?: string;
943
+ "workers/repository_url"?: string;
944
+ "workers/tag"?: string;
945
+ };
935
946
  env?: EnvBindings;
936
947
  created_on: string;
937
948
  }
@@ -953,7 +964,12 @@ type CreatePreviewDeploymentRequestParams = {
953
964
  compatibility_date?: string;
954
965
  compatibility_flags?: string[];
955
966
  annotations?: {
967
+ "workers/commit_sha"?: string;
956
968
  "workers/message"?: string;
969
+ "workers/pull_request_number"?: string;
970
+ "workers/pull_request_title"?: string;
971
+ "workers/pull_request_url"?: string;
972
+ "workers/repository_url"?: string;
957
973
  "workers/tag"?: string;
958
974
  };
959
975
  migrations?: CfWorkerInit["migrations"];
@@ -961,6 +977,9 @@ type CreatePreviewDeploymentRequestParams = {
961
977
  placement?: CfPlacement;
962
978
  cache?: CacheOptions;
963
979
  env?: EnvBindings;
980
+ containers?: Array<{
981
+ class_name: string;
982
+ }>;
964
983
  };
965
984
  type CreatePreviewRequestParams = {
966
985
  name: string;
@@ -1002,6 +1021,8 @@ type PreviewBaseConfig = {
1002
1021
  type PreviewBaseConfigPatch = Partial<Omit<PreviewBaseConfig, "env">> & {
1003
1022
  env?: Record<string, Binding | null>;
1004
1023
  };
1024
+ /** Create an undeployed Worker that can own Preview resources. */
1025
+ declare function createPreviewParentWorker(config: Config, accountId: string, workerName: string, workersDevEnabled: boolean, previewsEnabled: boolean): Promise<void>;
1005
1026
  declare function getPreview(config: Config, accountId: string, workerName: string, previewIdentifier: string): Promise<PreviewResource>;
1006
1027
  declare function createPreview(config: Config, accountId: string, workerName: string, request: CreatePreviewRequestParams, options?: PreviewRequestOptions): Promise<PreviewResource>;
1007
1028
  declare function editPreview(config: Config, accountId: string, workerName: string, previewIdentifier: string, request: UpdatePreviewRequestParams): Promise<PreviewResource>;
@@ -1021,6 +1042,43 @@ declare function getBranchName(): string | undefined;
1021
1042
  declare function shouldUseCIMetadataFallback(): boolean;
1022
1043
  declare function getHeadCommitRef(): string | undefined;
1023
1044
  declare function getHeadCommitMessage(): string | undefined;
1045
+ /**
1046
+ * Detects the current commit's full SHA from well-known CI provider
1047
+ * environment variables (GitHub Actions, GitLab CI, CircleCI), falling back
1048
+ * to a generic `COMMIT_SHA` env var for providers without dedicated support.
1049
+ */
1050
+ declare function getCommitSha(): string | undefined;
1051
+ /**
1052
+ * Detects the current repository's URL from well-known CI provider
1053
+ * environment variables (GitLab CI, CircleCI, Buildkite, Bitbucket, GitHub
1054
+ * Actions, and a generic `REPOSITORY_URL` fallback), or from the local git
1055
+ * remote when running in CI and no env var matched.
1056
+ *
1057
+ * The local git remote fallback is intentionally gated behind
1058
+ * {@link shouldUseCIMetadataFallback}: unlike the env var checks, it shells
1059
+ * out to read the developer's `git config`, so it's only attempted in CI to
1060
+ * avoid uploading a local machine's repository details on every
1061
+ * `wrangler preview` run outside CI.
1062
+ */
1063
+ declare function getRepositoryUrl(): string | undefined;
1064
+ /**
1065
+ * The pull/merge request number, URL, and title detected from the current CI
1066
+ * environment. Any field may be missing depending on what the detected CI
1067
+ * provider exposes.
1068
+ */
1069
+ type PullRequestMetadata = {
1070
+ number?: string;
1071
+ url?: string;
1072
+ title?: string;
1073
+ };
1074
+ /**
1075
+ * Detects the pull/merge request associated with the current CI run, trying
1076
+ * each supported source in order: direct/generic env vars, GitHub Actions,
1077
+ * then GitLab CI. This is best effort — if none of the sources match (e.g.
1078
+ * an unsupported CI provider, or running locally), the deployment proceeds
1079
+ * without pull request metadata.
1080
+ */
1081
+ declare function getPullRequestMetadata(): PullRequestMetadata | undefined;
1024
1082
  declare function resolveWorkerName(args: {
1025
1083
  workerName?: string;
1026
1084
  "worker-name"?: string;
@@ -1031,6 +1089,33 @@ declare function resolveWorkerName(args: {
1031
1089
  */
1032
1090
  declare function getBindingValue(binding: Binding): string;
1033
1091
  declare function extractConfigBindings(config: Config): EnvBindings;
1092
+ /**
1093
+ * Returns the DO `class_name`s whose containers this preview owns: the classes
1094
+ * the script declares through `migrations` or `exports`, plus the classes bound
1095
+ * in the preview without a `script_name`.
1096
+ *
1097
+ * A binding is not required. A Durable Object reached only through
1098
+ * `ctx.exports` is still implemented by this script, so its container belongs
1099
+ * to this preview. A class reachable only through a `script_name` binding is
1100
+ * implemented by another Worker, which owns its own container application.
1101
+ */
1102
+ declare function getPreviewOwnedContainerClassNames(config: Config, previews: PreviewsConfig | undefined): Set<string>;
1103
+ /**
1104
+ * Compose the auto-generated container application name for a preview-scoped
1105
+ * container, in the form `{parentWorkerName}_{previewSlug}_{className}`.
1106
+ *
1107
+ * A container application name is capped at 253 characters and may not start
1108
+ * or end with a dash, contain consecutive dashes, or start with a digit. A
1109
+ * worker name is allowed all four, and the preview slug is derived from a
1110
+ * branch name, so the composed name is normalised here rather than passed
1111
+ * through.
1112
+ *
1113
+ * Wrangler looks an application up by name to choose between create and
1114
+ * modify, so a name must identify one preview container. Both normalising and
1115
+ * truncating can map two inputs onto one output, so either one earns a digest
1116
+ * of the composed name.
1117
+ */
1118
+ declare function previewContainerAppName(parentWorkerName: string, previewSlug: string, className: string): string;
1034
1119
  declare function assemblePreviewScriptSettings(config: Config): Record<string, unknown>;
1035
1120
  declare function assemblePreviewDefaults(config: Config): PreviewDefaults;
1036
1121
 
@@ -1065,11 +1150,18 @@ type PreviewResult = {
1065
1150
  deployment: DeploymentResource;
1066
1151
  isNewPreview: boolean;
1067
1152
  };
1153
+ type PreviewCallbacks = Pick<DeployCallbacks, "getNormalizedContainerOptions"> & {
1154
+ deployPreviewContainers: ((scopedConfig: Config, normalisedContainerConfig: ContainerNormalizedConfig[], deployment: DeploymentResource, accountId: string, options: {
1155
+ quiet: boolean;
1156
+ }) => Promise<void>) | undefined;
1157
+ verifyContainersScope?: (scopedConfig: Config) => Promise<void>;
1158
+ };
1159
+ declare const NO_ACTIVE_PREVIEW_URLS_MESSAGE = "Note: This Preview deployment has no active URLs. To get one, enable Preview Deployments on workers.dev or a custom domain. See https://developers.cloudflare.com/workers/previews/custom-domains/ for more information";
1068
1160
  /**
1069
1161
  * Full preview create/update + deployment orchestration.
1070
1162
  * The wrangler handler calls this after auth + build.
1071
1163
  */
1072
- declare function preview(accountId: string, args: PreviewArgs, config: Config, buildResult: WorkerBuildResult, assetsOptions: PreviewAssetsOptions | undefined): Promise<PreviewResult>;
1164
+ declare function preview(accountId: string, args: PreviewArgs, config: Config, buildResult: WorkerBuildResult, assetsOptions: PreviewAssetsOptions | undefined, callbacks: PreviewCallbacks): Promise<PreviewResult>;
1073
1165
  /**
1074
1166
  * Delete a preview and all its deployments.
1075
1167
  */
@@ -1149,4 +1241,4 @@ type DrawConnectedChildBoxOptions = {
1149
1241
  */
1150
1242
  declare function drawConnectedChildBox(contentLines: string[], options?: DrawConnectedChildBoxOptions): string;
1151
1243
 
1152
- export { ACTOR_BINDING_DEPENDS_ON_EXPORT_CODE, type ApiDeployment, type ApiVersion, type AssetManifest, type AssetUploadStats, type AssetsUploadResult, type Binding, type BulkInputNullableResult, type BulkInputResult, type Consumer, type ConsumerSettings, type CreatePreviewDeploymentRequestParams, type CreatePreviewRequestParams, type CustomDomain, type CustomDomainChangeset, type DeployCallbacks, DeployProps, type DeploymentResource, EXPORTS_RECONCILIATION_ERROR_CODE, type EnvBindings, INCONSISTENT_EXPORTS_ACROSS_VERSIONS_CODE, INVALID_INHERIT_BINDING_CODE, type JsonLike, NoInputError, type NonVersionedScriptSettings, type PackageDependency, type Percentage, type PostQueueBody, type PostQueueResponse, type PostTypedConsumerBody, type PreviewArgs, type PreviewAssetsOptions, type PreviewBaseConfig, type PreviewBaseConfigPatch, type PreviewDefaults, type PreviewDefaultsPatch, type PreviewDeleteArgs, type PreviewRequestOptions, type PreviewResource, type PreviewResult, type PreviewSettingsArgs, type PreviewSettingsUpdateArgs, type Producer, type PurgeQueueBody, type PurgeQueueResponse, type QueueResponse, type QueueSettings, type RetrieveSourceMapFunction, type RouteObject, type ScriptReference, type Settings, SharedDeployVersionsProps, TriggerDeployment, TriggerProps, type TypedConsumerResponse, type UpdatePreviewRequestParams, type VersionCache, type VersionId, type VersionsUploadCallbacks, VersionsUploadProps, WORKER_LEGACY_ENVIRONMENT_NOT_FOUND_ERR_CODE, WORKER_NOT_FOUND_ERR_CODE, WORKFLOW_CRON_REQUIRES_PAID_PLAN_CODE, WORKFLOW_NOT_FOUND_CODE, WorkerBuildResult, type Workflow, type WorkflowConflict, type Zone, type ZoneIdCache, addRequiredSecretsInheritBindings, addWorkersSitesBindings, applyServiceAndEnvironmentTags, assemblePreviewDefaults, assemblePreviewScriptSettings, buildAssetManifest, checkRemoteSecretsOverride, checkWorkflowConflicts, collectPackageDependencies, confirmLatestDeploymentOverwrite, convertConfigToBindings, createDeployment, createPreview, createPreviewDeployment, createTruncatedAlias, decodeJwtPayload, deletePreview, deletePullConsumer, deleteWorkerConsumer, deploy, deployWfpUserWorker, diagnoseScriptSizeError, diagnoseStartupError, diffJsonObjects, downloadWorkerConfig, drawBox, drawConnectedChildBox, editPreview, editWorkerPreviewDefaults, ensureQueuesExistByConfig, extractBindingsOfType, extractConfigBindings, fetchDeployableVersions, fetchDeploymentVersions, fetchLatestDeployment, fetchLatestDeployments, fetchSecrets, fetchVersion, fetchVersions, fetchWorkerConfig, formatAlignedRows, formatBindings, formatPreviewsSettings, generatePreviewAlias, getBindingValue, getBindings, getBranchName, getConfigPatch, getDeployConfirmFunction, getEdgeKvUploadConcurrency, getHeadCommitMessage, getHeadCommitRef, getMigrationsToUpload, getPreview, getPreviewBaseConfig, getPreviewDeployment, getQueue, getRemoteConfigDiff, getSettings, getSourceMappedStack, getSourceMappedString, getSubdomainValues, getSubdomainValuesAPIMock, getWorkerPreviewDefaults, getWorkersDevSubdomain, getZoneForRoute, getZoneIdFromHost, handleMissingSecretsError, handleUnsafeCapnp, hasDefinedEnvironments, hashFile, helpIfErrorIsSizeOrScriptStartup, isExportsReconciliationErrorDetails, isJwtExpired, isModifiedDiffValue, isNonDestructive, isUnsafeBindingType, isWorkerNotFoundError, listConsumers, listQueues, maybeRetrieveFileSourceMap, mergeDeep, padToVisibleWidth, parseBulkInputToObject, parseConfigPlacement, patchNonVersionedScriptSettings, patchPreviewBaseConfig, patchPreviewDeployment, postConsumer, preview, previewDelete, previewSettingsGet, previewSettingsUpdate, printBindings, printBundleSize, printVersions, provisionBindings, publishCustomDomains, publishRoutes, putConsumer, putConsumerById, renderBindingDependsOnExportError, renderExportsReconciliationError, renderExportsReconciliationSuccess, renderInconsistentExportsAcrossVersionsError, renderRoute, resolveAssetOptions, resolveDoLifecyclePayload, resolveExportsUploadPayload, resolveWorkerName, sanitizeBranchName, shouldUseCIMetadataFallback, stripAnsi, syncAssets, tagsAreEqual, triggersDeploy, updateQueueConsumers, validateEventTriggerTargets, validateFileSecrets, validateNodeCompatMode, validateRoutes, verifyWorkerMatchesCITag, versionsUpload, visibleLength, warnOnErrorUpdatingServiceAndEnvironmentTags, warnOrError, workerNotFoundErrorMessage };
1244
+ export { ACTOR_BINDING_DEPENDS_ON_EXPORT_CODE, type ApiDeployment, type ApiVersion, type AssetManifest, type AssetUploadStats, type AssetsUploadResult, type Binding, type BulkInputNullableResult, type BulkInputResult, type Consumer, type ConsumerSettings, type CreatePreviewDeploymentRequestParams, type CreatePreviewRequestParams, type CustomDomain, type CustomDomainChangeset, type DeployCallbacks, DeployProps, type DeploymentResource, EXPORTS_RECONCILIATION_ERROR_CODE, type EnvBindings, INCONSISTENT_EXPORTS_ACROSS_VERSIONS_CODE, INVALID_INHERIT_BINDING_CODE, type JsonLike, NO_ACTIVE_PREVIEW_URLS_MESSAGE, NoInputError, type NonVersionedScriptSettings, type PackageDependency, type Percentage, type PostQueueBody, type PostQueueResponse, type PostTypedConsumerBody, type PreviewArgs, type PreviewAssetsOptions, type PreviewBaseConfig, type PreviewBaseConfigPatch, type PreviewCallbacks, type PreviewDefaults, type PreviewDefaultsPatch, type PreviewDeleteArgs, type PreviewRequestOptions, type PreviewResource, type PreviewResult, type PreviewSettingsArgs, type PreviewSettingsUpdateArgs, type Producer, type PullRequestMetadata, type PurgeQueueBody, type PurgeQueueResponse, type QueueResponse, type QueueSettings, type RetrieveSourceMapFunction, type RouteObject, type ScriptReference, type Settings, SharedDeployVersionsProps, TriggerDeployment, TriggerProps, type TypedConsumerResponse, type UpdatePreviewRequestParams, type VersionCache, type VersionId, type VersionsUploadCallbacks, VersionsUploadProps, WORKER_LEGACY_ENVIRONMENT_NOT_FOUND_ERR_CODE, WORKER_NOT_FOUND_ERR_CODE, WORKFLOW_CRON_REQUIRES_PAID_PLAN_CODE, WORKFLOW_NOT_FOUND_CODE, WorkerBuildResult, type Workflow, type WorkflowConflict, type Zone, type ZoneIdCache, addRequiredSecretsInheritBindings, addWorkersSitesBindings, applyServiceAndEnvironmentTags, assemblePreviewDefaults, assemblePreviewScriptSettings, buildAssetManifest, checkRemoteSecretsOverride, checkWorkflowConflicts, collectPackageDependencies, confirmLatestDeploymentOverwrite, convertConfigToBindings, createDeployment, createPreview, createPreviewDeployment, createPreviewParentWorker, createTruncatedAlias, decodeJwtPayload, deletePreview, deletePullConsumer, deleteWorkerConsumer, deploy, deployWfpUserWorker, diagnoseScriptSizeError, diagnoseStartupError, diffJsonObjects, downloadWorkerConfig, drawBox, drawConnectedChildBox, editPreview, editWorkerPreviewDefaults, ensureQueuesExistByConfig, extractBindingsOfType, extractConfigBindings, fetchDeployableVersions, fetchDeploymentVersions, fetchLatestDeployment, fetchLatestDeployments, fetchSecrets, fetchVersion, fetchVersions, fetchWorkerConfig, formatAlignedRows, formatBindings, formatPreviewsSettings, generatePreviewAlias, getBindingValue, getBindings, getBranchName, getCommitSha, getConfigPatch, getDeployConfirmFunction, getEdgeKvUploadConcurrency, getHeadCommitMessage, getHeadCommitRef, getMigrationsToUpload, getPreview, getPreviewBaseConfig, getPreviewDeployment, getPreviewOwnedContainerClassNames, getPullRequestMetadata, getQueue, getRemoteConfigDiff, getRepositoryUrl, getSettings, getSourceMappedStack, getSourceMappedString, getSubdomainValues, getSubdomainValuesAPIMock, getWorkerPreviewDefaults, getWorkersDevSubdomain, getZoneForRoute, getZoneIdFromHost, handleMissingSecretsError, handleUnsafeCapnp, hasDefinedEnvironments, hashFile, helpIfErrorIsSizeOrScriptStartup, isExportsReconciliationErrorDetails, isJwtExpired, isModifiedDiffValue, isNonDestructive, isUnsafeBindingType, isWorkerNotFoundError, listConsumers, listQueues, maybeRetrieveFileSourceMap, mergeDeep, padToVisibleWidth, parseBulkInputToObject, parseConfigPlacement, patchNonVersionedScriptSettings, patchPreviewBaseConfig, patchPreviewDeployment, postConsumer, preview, previewContainerAppName, previewDelete, previewSettingsGet, previewSettingsUpdate, printBindings, printBundleSize, printVersions, provisionBindings, publishCustomDomains, publishRoutes, putConsumer, putConsumerById, renderBindingDependsOnExportError, renderExportsReconciliationError, renderExportsReconciliationSuccess, renderInconsistentExportsAcrossVersionsError, renderRoute, resolveAssetOptions, resolveDoLifecyclePayload, resolveExportsUploadPayload, resolveWorkerName, sanitizeBranchName, shouldUseCIMetadataFallback, stripAnsi, syncAssets, tagsAreEqual, triggersDeploy, updateQueueConsumers, validateEventTriggerTargets, validateFileSecrets, validateNodeCompatMode, validateRoutes, verifyWorkerMatchesCITag, versionsUpload, visibleLength, warnOnErrorUpdatingServiceAndEnvironmentTags, warnOrError, workerNotFoundErrorMessage };