@cloudflare/deploy-helpers 0.11.1 → 0.12.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.
@@ -135,7 +135,6 @@ function createWorkerUploadForm(worker, bindings, options) {
135
135
  bindings
136
136
  );
137
137
  const ai_search = extractBindingsOfType("ai_search", bindings);
138
- const websearch = extractBindingsOfType("websearch", bindings)[0];
139
138
  const agent_memory = extractBindingsOfType("agent_memory", bindings);
140
139
  const hyperdrive = extractBindingsOfType("hyperdrive", bindings);
141
140
  const secrets_store_secrets = extractBindingsOfType(
@@ -368,12 +367,6 @@ function createWorkerUploadForm(worker, bindings, options) {
368
367
  instance_name
369
368
  });
370
369
  });
371
- if (websearch !== void 0) {
372
- metadataBindings.push({
373
- name: websearch.binding,
374
- type: "websearch"
375
- });
376
- }
377
370
  agent_memory.forEach(({ binding, namespace }) => {
378
371
  if (options?.dryRun) {
379
372
  namespace ??= INHERIT_SYMBOL;
@@ -1,5 +1,5 @@
1
- import { ContainerNormalizedConfig, BuiltContainerDeployment } from '@cloudflare/containers-shared';
2
- import { FetchResultFetcher, FetchListResultFetcher, FetchPagedListResultFetcher, FetchKVGetValueFetcher, Logger, Entry, ValidatedAssetsOptions, LegacyAssetPaths, Route, Config, CfModule, CfWorkerSourceMap, CfModuleType } from '@cloudflare/workers-utils';
1
+ import { BuiltImage, ContainerNormalizedConfig, BuiltContainerImage } from '@cloudflare/containers-shared';
2
+ import { ContainerApp, Config, FetchResultFetcher, FetchListResultFetcher, FetchPagedListResultFetcher, FetchKVGetValueFetcher, Logger, Entry, ValidatedAssetsOptions, LegacyAssetPaths, Route, CfModule, CfWorkerSourceMap, CfModuleType } from '@cloudflare/workers-utils';
3
3
 
4
4
  /**
5
5
  * client needs to handle logger and fetch/auth implementation
@@ -28,6 +28,25 @@ type DeployHelpersContext = {
28
28
  fallbackOption?: number;
29
29
  }) => Promise<Values>;
30
30
  };
31
+ type ContainerlessConfig = Omit<Config, "containers">;
32
+ type BuiltDurableObjectContainerImage = BuiltImage & {
33
+ className: string;
34
+ imageName: string;
35
+ };
36
+ type ContainerDeployConfig = {
37
+ /** Original resolved container configuration. */
38
+ source: ContainerApp[] | undefined;
39
+ standard: {
40
+ /** Normalized non-Durable-Object container applications. */
41
+ normalized: ContainerNormalizedConfig[];
42
+ /** Locally built images awaiting deployment or cleanup. */
43
+ builtImages: BuiltContainerImage[];
44
+ };
45
+ durableObjects: {
46
+ /** Locally built named images awaiting upload or cleanup. */
47
+ builtImages: BuiltDurableObjectContainerImage[];
48
+ };
49
+ };
31
50
  /**
32
51
  * Shared fields produced by merging CLI args with wrangler config.
33
52
  * After this point, no raw config/arg merging should happen.
@@ -86,6 +105,8 @@ type SharedDeployVersionsProps = {
86
105
  skipProvisioningConfigWriteback: boolean;
87
106
  /** From --strict arg. In strict mode, conflicting pre-upload checks abort instead of auto-continuing. */
88
107
  strict: boolean;
108
+ /** Container configuration and locally built image state. */
109
+ containers: ContainerDeployConfig;
89
110
  /** Whether the resolved Worker name differs from the pre-merge config/args name. */
90
111
  workerNameOverridden?: boolean;
91
112
  };
@@ -108,10 +129,6 @@ type DeployProps = SharedDeployVersionsProps & {
108
129
  oldAssetTtl: number | undefined;
109
130
  /** From --containers-rollout arg. Deploy-only. */
110
131
  containersRollout: "immediate" | "gradual" | "none" | undefined;
111
- /** Normalized Wrangler container configuration, resolved before calling deploy-helpers. */
112
- normalisedContainerConfig: ContainerNormalizedConfig[];
113
- /** Dockerfile container images built by the caller before invoking deploy-helpers. */
114
- builtContainerDeployments: BuiltContainerDeployment[];
115
132
  /**
116
133
  * When true, an existing Worker with the same name aborts the deploy instead
117
134
  * of updating it, because this run cannot confirm the local project owns the
@@ -185,4 +202,4 @@ declare let select: DeployHelpersContext["select"];
185
202
  */
186
203
  declare function initDeployHelpersContext(ctx: DeployHelpersContext): void;
187
204
 
188
- 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 };
205
+ export { type BuiltDurableObjectContainerImage as B, type ContainerlessConfig as C, 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 ContainerDeployConfig as b, type DeployHelpersContext as c, confirm as d, fetchListResult as e, fetchKVGetValue as f, fetchPagedListResult as g, fetchResult as h, initDeployHelpersContext as i, logger as l, prompt as p, select as s };
@@ -1,3 +1,3 @@
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-Bo-P841x.mjs';
1
+ export { d as confirm, f as fetchKVGetValue, e as fetchListResult, g as fetchPagedListResult, h as fetchResult, i as initDeployHelpersContext, l as logger, p as prompt, s as select } from './context-CruwKULH.mjs';
2
2
  import '@cloudflare/workers-utils';
3
3
  import '@cloudflare/containers-shared';
@@ -1,2 +1,2 @@
1
- export { createWorkerUploadForm, fromMimeType, moduleTypeMimeType } from './chunk-3G6JZQDH.mjs';
1
+ export { createWorkerUploadForm, fromMimeType, moduleTypeMimeType } from './chunk-QBZBEHZB.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-Bo-P841x.mjs';
2
- export { b as DeployHelpersContext, i as initDeployHelpersContext } from './context-Bo-P841x.mjs';
1
+ import { S as SharedDeployVersionsProps, D as DeployProps, C as ContainerlessConfig, W as WorkerBuildResult, V as VersionsUploadProps, T as TriggerProps, a as TriggerDeployment, B as BuiltDurableObjectContainerImage } from './context-CruwKULH.mjs';
2
+ export { b as ContainerDeployConfig, c as DeployHelpersContext, i as initDeployHelpersContext } from './context-CruwKULH.mjs';
3
3
  import * as _cloudflare_workers_utils from '@cloudflare/workers-utils';
4
- import { CfModule, Config, AssetsOptions, ComplianceConfig, LegacyAssetPaths, Route, ZoneIdRoute, ZoneNameRoute, CustomDomainRoute, CfPlacement, Binding as Binding$1, RawConfig, CfCapnp, CfScriptFormat, ParseError, WorkerMetadataBinding, CfUserLimits, CfWorkerInit, TailConsumer, StreamingTailConsumer, Observability, DurableObjectContainerApp, ExportsReconciliationErrorDetail, ExportsReconciliationResult, StartDevWorkerInput, CacheOptions, PreviewsConfig } from '@cloudflare/workers-utils';
4
+ import { CfModule, Config, AssetsOptions, ComplianceConfig, LegacyAssetPaths, Route, ZoneIdRoute, ZoneNameRoute, CustomDomainRoute, CfPlacement, Binding as Binding$1, RawConfig, CfCapnp, CfScriptFormat, ParseError, WorkerMetadataBinding, CfUserLimits, CfWorkerInit, TailConsumer, StreamingTailConsumer, Observability, ResolvedDurableObjectContainerApp, DurableObjectContainerApp, ExportsReconciliationErrorDetail, ExportsReconciliationResult, StartDevWorkerInput, CacheOptions, PreviewsConfig } from '@cloudflare/workers-utils';
5
5
  import { FormData } from 'undici';
6
6
  export { createWorkerUploadForm, fromMimeType, moduleTypeMimeType } from './create-worker-upload-form.mjs';
7
7
  import { Options } from '@cspotcode/source-map-support';
@@ -49,7 +49,10 @@ type DeployCallbacks = {
49
49
  } | undefined;
50
50
  namespace: string | undefined;
51
51
  }>) | undefined;
52
- analyseBundle: ((workerBundle: string | FormData) => Promise<Record<string, unknown>>) | undefined;
52
+ /**
53
+ * @deprecated Startup profiling is provided by deploy-helpers automatically.
54
+ */
55
+ analyseBundle?: (workerBundle: string | FormData) => Promise<Record<string, unknown>>;
53
56
  };
54
57
  type DeployResult = {
55
58
  sourceMapSize?: number;
@@ -59,8 +62,9 @@ type DeployResult = {
59
62
  targets?: string[];
60
63
  bundleSize?: BundleSize;
61
64
  };
62
- declare function deploy(props: DeployProps, config: Config, buildResult: WorkerBuildResult, callbacks: DeployCallbacks): Promise<DeployResult>;
65
+ declare function deploy(props: DeployProps, config: ContainerlessConfig, buildResult: WorkerBuildResult, callbacks: DeployCallbacks): Promise<DeployResult>;
63
66
 
67
+ /** Compatibility callback shape for existing deploy-helpers consumers. */
64
68
  type VersionsUploadCallbacks = Pick<DeployCallbacks, "analyseBundle">;
65
69
  type VersionsUploadResult = {
66
70
  versionId: string | null;
@@ -70,7 +74,7 @@ type VersionsUploadResult = {
70
74
  versionPreviewAliasUrl?: string | undefined;
71
75
  bundleSize?: BundleSize;
72
76
  };
73
- declare function versionsUpload(props: VersionsUploadProps, config: Config, buildResult: WorkerBuildResult, callbacks: VersionsUploadCallbacks): Promise<VersionsUploadResult>;
77
+ declare function versionsUpload(props: VersionsUploadProps, config: ContainerlessConfig, buildResult: WorkerBuildResult, callbacks?: VersionsUploadCallbacks): Promise<VersionsUploadResult>;
74
78
 
75
79
  declare const PREVIEW_DOMAIN_PROVISIONING_NOTE = "Note: DNS and TLS certificate provisioning for Preview domains may continue after this deploy. If a new Preview URL does not work immediately, wait a few minutes and retry.";
76
80
  declare function triggersDeploy(props: TriggerProps): Promise<string[] | void>;
@@ -482,11 +486,12 @@ declare function applyServiceAndEnvironmentTags(config: Config, tags: string[]):
482
486
  declare function warnOnErrorUpdatingServiceAndEnvironmentTags(): void;
483
487
  declare function tagsAreEqual(a: string[], b: string[]): boolean;
484
488
 
489
+ type AnalyseBundle = (bundle: FormData | string) => Promise<unknown>;
485
490
  declare function helpIfErrorIsSizeOrScriptStartup(err: unknown, dependencies: {
486
491
  [path: string]: {
487
492
  bytesInOutput: number;
488
493
  };
489
- }, workerBundle: FormData | string, projectRoot: string | undefined, analyseBundle?: (bundle: FormData | string) => Promise<unknown>): Promise<string | null>;
494
+ }, workerBundle: FormData | string, projectRoot: string | undefined, analyseBundle?: AnalyseBundle): Promise<string | null>;
490
495
  /**
491
496
  * Returns a formatted error message that describes the script size error.
492
497
  * It includes the largest dependencies if available.
@@ -500,7 +505,7 @@ declare function diagnoseScriptSizeError(err: ParseError, dependencies: {
500
505
  * Returns a formatted error message that describes the startup error.
501
506
  * If profiling is successful, it will include a link to the generated CPU profile.
502
507
  */
503
- declare function diagnoseStartupError(err: ParseError, workerBundle: FormData | string, projectRoot: string | undefined, analyseBundle?: (bundle: FormData | string) => Promise<unknown>): Promise<string>;
508
+ declare function diagnoseStartupError(err: ParseError, workerBundle: FormData | string, projectRoot: string | undefined, analyseBundle?: AnalyseBundle): Promise<string>;
504
509
 
505
510
  type Percentage = number;
506
511
  type UUID = string;
@@ -689,6 +694,8 @@ type DeployDurableObjectContainerApplicationsArgs = {
689
694
  versionId: string;
690
695
  accountId: string;
691
696
  scriptName: string;
697
+ /** Version uploads may initialize a missing application, but never update one. */
698
+ updateExisting?: boolean;
692
699
  };
693
700
  type PrepareDurableObjectContainerApplicationsArgs = {
694
701
  accountId: string | undefined;
@@ -696,12 +703,19 @@ type PrepareDurableObjectContainerApplicationsArgs = {
696
703
  dryRun: boolean;
697
704
  scriptName: string;
698
705
  };
699
- type DurableObjectContainerApplication = Pick<DurableObjectContainerApp, "class_name" | "name">;
706
+ type DurableObjectContainerApplication = Pick<ResolvedDurableObjectContainerApp, "class_name" | "name">;
700
707
  type VersionedDurableObjectContainerApplication = DurableObjectContainerApplication & {
701
708
  namespaceId?: string;
702
709
  };
703
710
  type PreparedContainerImages = Record<string, Record<string, string>>;
704
711
  declare function createDurableObjectContainerApplication(application: DurableObjectContainerApplication, namespaceId: string): Promise<void>;
712
+ /**
713
+ * Read managed application identities from selected Worker versions.
714
+ *
715
+ * Versions must agree on class/name associations and known namespace IDs.
716
+ * Application-wide settings are deliberately not read from local config or
717
+ * restored with a Worker version.
718
+ */
705
719
  declare function getVersionedDurableObjectContainerApplications(versions: ApiVersion[], scriptName: string): VersionedDurableObjectContainerApplication[];
706
720
  /** Resolve every versioned application's namespace without creating applications. */
707
721
  declare function resolveVersionedDurableObjectContainerApplications(config: Config, { applications, accountId, scriptName, allowMissingNamespaces, }: {
@@ -710,14 +724,27 @@ declare function resolveVersionedDurableObjectContainerApplications(config: Conf
710
724
  scriptName: string;
711
725
  allowMissingNamespaces?: boolean;
712
726
  }): Promise<VersionedDurableObjectContainerApplication[]>;
713
- /** Create applications only after every deployed namespace has been resolved. */
727
+ /**
728
+ * Ensure selected versions have applications after every namespace is resolved.
729
+ *
730
+ * Existing settings are preserved. Missing applications are created with API
731
+ * defaults, so rolling back a Worker never rolls back application-wide settings.
732
+ */
714
733
  declare function deployVersionedDurableObjectContainerApplications(config: Config, args: {
715
734
  applications: VersionedDurableObjectContainerApplication[];
716
735
  accountId: string;
717
736
  scriptName: string;
718
737
  }): Promise<void>;
719
- declare function prepareDurableObjectContainerApplications(config: Config, { accountId, dryRun, scriptName, dispatchNamespace, }: PrepareDurableObjectContainerApplicationsArgs): Promise<PreparedContainerImages>;
720
- declare function deployDurableObjectContainerApplications(config: Config, { versionId, accountId, scriptName, dispatchNamespace, }: DeployDurableObjectContainerApplicationsArgs): Promise<void>;
738
+ /** Validate managed classes and prepare their named images before Worker upload. */
739
+ declare function prepareDurableObjectContainerApplications(config: ContainerlessConfig, durableObjectContainerConfig: DurableObjectContainerApp[], builtImages: BuiltDurableObjectContainerImage[], { accountId, dryRun, scriptName, dispatchNamespace, }: PrepareDurableObjectContainerApplicationsArgs): Promise<PreparedContainerImages>;
740
+ /**
741
+ * Apply explicit application settings after an uploaded Worker's namespaces exist.
742
+ *
743
+ * Resolve all namespaces before writing. Normal deployments initialize missing
744
+ * applications and patch supplied changes; `updateExisting: false` makes version
745
+ * uploads create-only. Omitted settings and root Worker observability are ignored.
746
+ */
747
+ declare function deployDurableObjectContainerApplications(config: ContainerlessConfig, durableObjectContainerConfig: DurableObjectContainerApp[], { versionId, accountId, scriptName, dispatchNamespace, updateExisting, }: DeployDurableObjectContainerApplicationsArgs): Promise<void>;
721
748
 
722
749
  type ResolveExportsUploadPayloadProps = Parameters<typeof resolveDoLifecyclePayload>[0];
723
750
  declare function resolveExportsUploadPayload(props: ResolveExportsUploadPayloadProps): Promise<{
@@ -853,6 +880,7 @@ interface Binding {
853
880
  database_name?: string;
854
881
  bucket_name?: string;
855
882
  index_name?: string;
883
+ instance_name?: string;
856
884
  id?: string;
857
885
  service?: string;
858
886
  dataset?: string;
@@ -1092,6 +1120,9 @@ type PreviewArgs = {
1092
1120
  ignoreBaseConfig: boolean;
1093
1121
  workerName?: string;
1094
1122
  "worker-name"?: string;
1123
+ secretsFile?: string;
1124
+ /** Parsed `--var` args. CLI-only vars; config vars flow separately via `extractConfigBindings(config)`. */
1125
+ cliVars?: Record<string, string>;
1095
1126
  };
1096
1127
  type PreviewAssetsOptions = {
1097
1128
  directory: string;
@@ -1184,4 +1215,4 @@ type DrawConnectedChildBoxOptions = {
1184
1215
  */
1185
1216
  declare function drawConnectedChildBox(contentLines: string[], options?: DrawConnectedChildBoxOptions): string;
1186
1217
 
1187
- export { ACTOR_BINDING_DEPENDS_ON_EXPORT_CODE, type ApiDeployment, type ApiVersion, type AssetManifest, type AssetUploadStats, type AssetsUploadResult, type Binding, type BulkInputNullableResult, type BulkInputResult, type BundleSize, type Consumer, type ConsumerSettings, type CreatePreviewDeploymentRequestParams, type CreatePreviewRequestParams, type CustomDomain, type CustomDomainChangeset, type DeployCallbacks, DeployProps, type DeploymentResource, type DurableObjectContainerApplication, 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, PREVIEW_DOMAIN_PROVISIONING_NOTE, type PackageDependency, type Percentage, type PostQueueBody, type PostQueueResponse, type PostTypedConsumerBody, type PreparedContainerImages, type PreviewArgs, type PreviewAssetsOptions, type PreviewBaseConfig, type PreviewBaseConfigPatch, type PreviewCallbacks, type PreviewDeleteArgs, type PreviewDeploymentModule, type PreviewRequestOptions, type PreviewResource, type PreviewResult, type Producer, type ProvisionBindingsResult, 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 VersionedDurableObjectContainerApplication, 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, assemblePreviewScriptSettings, buildAssetManifest, checkRemoteSecretsOverride, checkWorkflowConflicts, collectPackageDependencies, confirmLatestDeploymentOverwrite, createDeployment, createDurableObjectContainerApplication, createPreview, createPreviewDeployment, createPreviewDeploymentForm, createPreviewParentWorker, createTruncatedAlias, decodeJwtPayload, deletePreview, deletePullConsumer, deleteWorkerConsumer, deploy, deployDurableObjectContainerApplications, deployVersionedDurableObjectContainerApplications, deployWfpUserWorker, diagnoseScriptSizeError, diagnoseStartupError, diffJsonObjects, downloadWorkerConfig, drawBox, drawConnectedChildBox, editPreview, ensureQueuesExistByConfig, extractConfigBindings, fetchDeployableVersions, fetchDeploymentVersions, fetchLatestDeployment, fetchLatestDeployments, fetchSecrets, fetchVersion, fetchVersions, fetchWorkerConfig, formatAlignedRows, formatBindings, formatNoActivePreviewUrlsMessage, generatePreviewAlias, getBindingValue, getBranchName, getCommitSha, getConfigPatch, getDeployConfirmFunction, getEdgeKvUploadConcurrency, getHeadCommitMessage, getHeadCommitRef, getMigrationsToUpload, getPreview, getPreviewBaseConfig, getPreviewDeployment, getPreviewOwnedContainerClassNames, getPullRequestMetadata, getQueue, getRemoteConfigDiff, getRepositoryUrl, getSettings, getSize, getSourceMappedStack, getSourceMappedString, getSubdomainValues, getSubdomainValuesAPIMock, getVersionedDurableObjectContainerApplications, getWorkersDevSubdomain, getZoneForRoute, getZoneIdFromHost, handleMissingSecretsError, handleUnsafeCapnp, hasDefinedEnvironments, hashFile, helpIfErrorIsSizeOrScriptStartup, isExportsReconciliationErrorDetails, isJwtExpired, isModifiedDiffValue, isNonDestructive, isWorkerNotFoundError, listConsumers, listQueues, maybeRetrieveFileSourceMap, padToVisibleWidth, parseBulkInputToObject, parseConfigPlacement, patchNonVersionedScriptSettings, patchPreviewBaseConfig, patchPreviewDeployment, postConsumer, prepareDurableObjectContainerApplications, preview, previewContainerAppName, previewDelete, printBundleSize, printVersions, provisionBindings, publishCustomDomains, publishRoutes, putConsumer, putConsumerById, renderBindingDependsOnExportError, renderExportsReconciliationError, renderExportsReconciliationSuccess, renderInconsistentExportsAcrossVersionsError, renderRoute, resolveAssetOptions, resolveDoLifecyclePayload, resolveExportsUploadPayload, resolveVersionedDurableObjectContainerApplications, resolveWorkerName, sanitizeBranchName, shouldUseCIMetadataFallback, stripAnsi, syncAssets, tagsAreEqual, triggersDeploy, updateQueueConsumers, validateEventTriggerTargets, validateFileSecrets, validateNodeCompatMode, validateRoutes, verifyWorkerMatchesCITag, versionsUpload, visibleLength, warnOnErrorUpdatingServiceAndEnvironmentTags, workerNotFoundErrorMessage };
1218
+ export { ACTOR_BINDING_DEPENDS_ON_EXPORT_CODE, type ApiDeployment, type ApiVersion, type AssetManifest, type AssetUploadStats, type AssetsUploadResult, type Binding, BuiltDurableObjectContainerImage, type BulkInputNullableResult, type BulkInputResult, type BundleSize, type Consumer, type ConsumerSettings, ContainerlessConfig, type CreatePreviewDeploymentRequestParams, type CreatePreviewRequestParams, type CustomDomain, type CustomDomainChangeset, type DeployCallbacks, DeployProps, type DeploymentResource, type DurableObjectContainerApplication, 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, PREVIEW_DOMAIN_PROVISIONING_NOTE, type PackageDependency, type Percentage, type PostQueueBody, type PostQueueResponse, type PostTypedConsumerBody, type PreparedContainerImages, type PreviewArgs, type PreviewAssetsOptions, type PreviewBaseConfig, type PreviewBaseConfigPatch, type PreviewCallbacks, type PreviewDeleteArgs, type PreviewDeploymentModule, type PreviewRequestOptions, type PreviewResource, type PreviewResult, type Producer, type ProvisionBindingsResult, 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 VersionedDurableObjectContainerApplication, 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, assemblePreviewScriptSettings, buildAssetManifest, checkRemoteSecretsOverride, checkWorkflowConflicts, collectPackageDependencies, confirmLatestDeploymentOverwrite, createDeployment, createDurableObjectContainerApplication, createPreview, createPreviewDeployment, createPreviewDeploymentForm, createPreviewParentWorker, createTruncatedAlias, decodeJwtPayload, deletePreview, deletePullConsumer, deleteWorkerConsumer, deploy, deployDurableObjectContainerApplications, deployVersionedDurableObjectContainerApplications, deployWfpUserWorker, diagnoseScriptSizeError, diagnoseStartupError, diffJsonObjects, downloadWorkerConfig, drawBox, drawConnectedChildBox, editPreview, ensureQueuesExistByConfig, extractConfigBindings, fetchDeployableVersions, fetchDeploymentVersions, fetchLatestDeployment, fetchLatestDeployments, fetchSecrets, fetchVersion, fetchVersions, fetchWorkerConfig, formatAlignedRows, formatBindings, formatNoActivePreviewUrlsMessage, generatePreviewAlias, getBindingValue, getBranchName, getCommitSha, getConfigPatch, getDeployConfirmFunction, getEdgeKvUploadConcurrency, getHeadCommitMessage, getHeadCommitRef, getMigrationsToUpload, getPreview, getPreviewBaseConfig, getPreviewDeployment, getPreviewOwnedContainerClassNames, getPullRequestMetadata, getQueue, getRemoteConfigDiff, getRepositoryUrl, getSettings, getSize, getSourceMappedStack, getSourceMappedString, getSubdomainValues, getSubdomainValuesAPIMock, getVersionedDurableObjectContainerApplications, getWorkersDevSubdomain, getZoneForRoute, getZoneIdFromHost, handleMissingSecretsError, handleUnsafeCapnp, hasDefinedEnvironments, hashFile, helpIfErrorIsSizeOrScriptStartup, isExportsReconciliationErrorDetails, isJwtExpired, isModifiedDiffValue, isNonDestructive, isWorkerNotFoundError, listConsumers, listQueues, maybeRetrieveFileSourceMap, padToVisibleWidth, parseBulkInputToObject, parseConfigPlacement, patchNonVersionedScriptSettings, patchPreviewBaseConfig, patchPreviewDeployment, postConsumer, prepareDurableObjectContainerApplications, preview, previewContainerAppName, previewDelete, printBundleSize, printVersions, provisionBindings, publishCustomDomains, publishRoutes, putConsumer, putConsumerById, renderBindingDependsOnExportError, renderExportsReconciliationError, renderExportsReconciliationSuccess, renderInconsistentExportsAcrossVersionsError, renderRoute, resolveAssetOptions, resolveDoLifecyclePayload, resolveExportsUploadPayload, resolveVersionedDurableObjectContainerApplications, resolveWorkerName, sanitizeBranchName, shouldUseCIMetadataFallback, stripAnsi, syncAssets, tagsAreEqual, triggersDeploy, updateQueueConsumers, validateEventTriggerTargets, validateFileSecrets, validateNodeCompatMode, validateRoutes, verifyWorkerMatchesCITag, versionsUpload, visibleLength, warnOnErrorUpdatingServiceAndEnvironmentTags, workerNotFoundErrorMessage };