@voltro/cms 0.87.0 → 0.88.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/CHANGELOG.md +169 -6
- package/THIRD-PARTY-NOTICES.md +644 -48
- package/dist/ContentForm.js +1 -2
- package/dist/RichDocumentEditor.js +1 -2
- package/dist/RichDocumentView.js +1 -2
- package/dist/RichTextSurface.js +1 -2
- package/dist/aiCandidates.js +1 -2
- package/dist/aiOperations.js +1 -2
- package/dist/applicationBuildSnapshotService.js +1 -2
- package/dist/assetRenditions.js +1 -2
- package/dist/assetRevision.js +1 -2
- package/dist/assetUseRights.js +1 -2
- package/dist/audiences.js +1 -2
- package/dist/availability.js +1 -2
- package/dist/blueprint.js +1 -2
- package/dist/buildApplicationAdmission.js +1 -2
- package/dist/buildApplicationCatalog.js +1 -2
- package/dist/buildApplicationCatalogTable.js +1 -2
- package/dist/buildApplicationRest.js +1 -2
- package/dist/buildApplicationUpload.js +1 -2
- package/dist/buildSnapshot.js +1 -2
- package/dist/buildSnapshotApplicationPin.js +1 -2
- package/dist/buildSnapshotRest.js +1 -2
- package/dist/buildSnapshotService.js +1 -2
- package/dist/buildSnapshotTables.js +1 -2
- package/dist/bulk.js +1 -2
- package/dist/cacheIdentity.js +1 -2
- package/dist/changes.js +1 -2
- package/dist/cmsContext.js +1 -2
- package/dist/collections.js +1 -2
- package/dist/consent.js +1 -2
- package/dist/contentLocations.js +1 -2
- package/dist/contentProjection.js +1 -2
- package/dist/contentRouteIdentity.js +1 -2
- package/dist/contentRouteMaterializer.js +1 -2
- package/dist/contentRouteTypes.js +1 -2
- package/dist/contentSeo.js +1 -2
- package/dist/contentTreePath.js +1 -2
- package/dist/contentType.js +4 -5
- package/dist/contentValues.js +1 -2
- package/dist/contentfulImport.js +1 -2
- package/dist/copies.js +1 -2
- package/dist/cutover.js +1 -2
- package/dist/deliveryChecks.js +1 -2
- package/dist/domainHost.js +1 -2
- package/dist/domains.js +1 -2
- package/dist/draftTexts.js +1 -2
- package/dist/duplicates.js +1 -2
- package/dist/edgePurge.js +1 -2
- package/dist/editHistory.js +1 -2
- package/dist/effectForm.js +1 -2
- package/dist/environmentAliases.js +1 -2
- package/dist/environments.js +1 -2
- package/dist/errors.js +1 -2
- package/dist/experiments.js +1 -2
- package/dist/exposure.js +1 -2
- package/dist/extensionManifest.js +2 -3
- package/dist/extensions.js +1 -2
- package/dist/fieldSchema.js +1 -2
- package/dist/formStrings.js +1 -2
- package/dist/frontendBindings.js +1 -2
- package/dist/frontendMedia.js +1 -2
- package/dist/glossary.js +1 -2
- package/dist/history.js +1 -2
- package/dist/htmlImport.js +1 -2
- package/dist/initializePublicRoutes.js +1 -2
- package/dist/liveContentRouteView.js +1 -2
- package/dist/media.js +1 -2
- package/dist/metrics.js +1 -2
- package/dist/migration.js +1 -2
- package/dist/migrationStages.js +1 -2
- package/dist/nativeOutputDeploymentService.js +1 -2
- package/dist/outputActivation.js +1 -2
- package/dist/outputActivationOrigin.js +1 -2
- package/dist/outputActivationStore.js +1 -2
- package/dist/outputActivationTables.js +1 -2
- package/dist/outputActivationTarget.js +1 -2
- package/dist/outputActivationTargetTable.js +1 -2
- package/dist/outputDeployment.js +1 -2
- package/dist/outputDeploymentRest.js +1 -2
- package/dist/outputDeploymentService.js +1 -2
- package/dist/outputRouteGraph.js +1 -2
- package/dist/outputSafetyArtifact.js +1 -2
- package/dist/outputTargetRest.js +1 -2
- package/dist/pathSegmentEncoding.js +1 -2
- package/dist/presenceAnchors.js +1 -2
- package/dist/preview.js +1 -2
- package/dist/privateCmsTransport.js +1 -2
- package/dist/privateNativeRouteReservation.js +1 -2
- package/dist/promotion.js +1 -2
- package/dist/publicBuild.js +1 -2
- package/dist/publicBuildRest.js +1 -2
- package/dist/publicBuildService.js +1 -2
- package/dist/publicOutputHttp.js +1 -2
- package/dist/publicOutputService.js +1 -2
- package/dist/publicPresentation.js +1 -2
- package/dist/publicRouteDispositionAdmission.js +1 -2
- package/dist/publicRouteHistoryStore.js +1 -2
- package/dist/publicRouteHistoryView.js +1 -2
- package/dist/publicRouteIntegrity.js +1 -2
- package/dist/publicRouteMutation.js +1 -2
- package/dist/publicRouteNamespace.js +1 -2
- package/dist/publicRoutePublication.js +1 -2
- package/dist/publicRouteRegistry.js +1 -2
- package/dist/publicRouteRegistryBinding.js +1 -2
- package/dist/publicRouteRegistryDefinition.js +1 -2
- package/dist/publicRouteSitePublication.js +1 -2
- package/dist/publicRouteTables.js +1 -2
- package/dist/publicRouteUrl.js +1 -2
- package/dist/publicationSeo.js +1 -2
- package/dist/publicationState.js +1 -2
- package/dist/quality.js +1 -2
- package/dist/reconfigurePublicRoutes.js +1 -2
- package/dist/recurrence.js +1 -2
- package/dist/redirects.js +1 -2
- package/dist/referenceGraph.js +1 -2
- package/dist/references.js +1 -2
- package/dist/release.js +1 -2
- package/dist/renderReadAuthority.js +1 -2
- package/dist/renderReadGrant.js +1 -2
- package/dist/rest.js +1 -2
- package/dist/review.js +1 -2
- package/dist/richDocument.js +2 -3
- package/dist/richInline.js +1 -2
- package/dist/routeDispositionGraph.js +1 -2
- package/dist/routeDispositionRest.js +1 -2
- package/dist/routeDispositionService.js +1 -2
- package/dist/routeDispositionStore.js +1 -2
- package/dist/routeDispositionTables.js +1 -2
- package/dist/routeDispositions.js +1 -2
- package/dist/routeHistoryStorage.js +2 -3
- package/dist/routeHistoryStore.js +1 -2
- package/dist/schedule.js +1 -2
- package/dist/search.js +1 -2
- package/dist/selectionIntent.js +1 -2
- package/dist/seo.js +1 -2
- package/dist/series.js +1 -2
- package/dist/share.js +1 -2
- package/dist/siteBindings.js +1 -2
- package/dist/siteBuildCandidate.js +1 -2
- package/dist/siteDelivery.js +1 -2
- package/dist/siteState.js +1 -2
- package/dist/snapshotAddressGraph.js +1 -2
- package/dist/snapshotAddressRead.js +1 -2
- package/dist/snapshotAppConsumer.js +1 -2
- package/dist/snapshotAppExecution.js +1 -2
- package/dist/snapshotApplication.js +1 -2
- package/dist/snapshotApprovedRouteDispositions.js +1 -2
- package/dist/snapshotAssetAssembly.js +1 -2
- package/dist/snapshotAssetAssemblyRest.js +1 -2
- package/dist/snapshotBindingRead.js +1 -2
- package/dist/snapshotCodeSeo.js +1 -2
- package/dist/snapshotComponent.js +1 -2
- package/dist/snapshotComponentSource.js +1 -2
- package/dist/snapshotConsumer.js +1 -2
- package/dist/snapshotContentIdentity.js +1 -2
- package/dist/snapshotDefinitions.js +1 -2
- package/dist/snapshotDocumentAssembly.js +1 -2
- package/dist/snapshotDocumentAssemblyRest.js +1 -2
- package/dist/snapshotDocumentProjection.js +1 -2
- package/dist/snapshotDocumentTransfer.js +1 -2
- package/dist/snapshotDocumentTransferRest.js +1 -2
- package/dist/snapshotDomains.js +1 -2
- package/dist/snapshotEnvironment.js +1 -2
- package/dist/snapshotFieldPlan.js +1 -2
- package/dist/snapshotFrontend.js +1 -2
- package/dist/snapshotLink.js +1 -2
- package/dist/snapshotMedia.js +1 -2
- package/dist/snapshotMediaCapture.js +1 -2
- package/dist/snapshotMediaFields.js +1 -2
- package/dist/snapshotMediaRead.js +1 -2
- package/dist/snapshotMediaReader.js +1 -2
- package/dist/snapshotObservation.js +1 -2
- package/dist/snapshotObservedRouteHistory.js +1 -2
- package/dist/snapshotOutputTransfer.js +1 -2
- package/dist/snapshotPageLoader.js +1 -2
- package/dist/snapshotPageSeo.js +1 -2
- package/dist/snapshotPathLocale.js +1 -2
- package/dist/snapshotPresentation.js +1 -2
- package/dist/snapshotPresentationPolicy.js +1 -2
- package/dist/snapshotProjection.js +1 -2
- package/dist/snapshotPublicAccess.js +1 -2
- package/dist/snapshotPublicRouteHistory.js +1 -2
- package/dist/snapshotReadAdmission.js +1 -2
- package/dist/snapshotRedirectOutput.js +1 -2
- package/dist/snapshotRedirectTargets.js +1 -2
- package/dist/snapshotRedirects.js +1 -2
- package/dist/snapshotReference.js +1 -2
- package/dist/snapshotReferenceAddress.js +1 -2
- package/dist/snapshotReferenceGraph.js +1 -2
- package/dist/snapshotReferenceRead.js +1 -2
- package/dist/snapshotRelease.js +1 -2
- package/dist/snapshotRender.js +1 -2
- package/dist/snapshotRenderDependencies.js +1 -2
- package/dist/snapshotRenditions.js +1 -2
- package/dist/snapshotRichDocument.js +1 -2
- package/dist/snapshotRoleTransfer.js +1 -2
- package/dist/snapshotRoleTransferRest.js +1 -2
- package/dist/snapshotRouteAdmission.js +1 -2
- package/dist/snapshotRouteDispatch.js +1 -2
- package/dist/snapshotRouteDispositionPlan.js +1 -2
- package/dist/snapshotRouteRead.js +1 -2
- package/dist/snapshotRoutes.js +1 -2
- package/dist/snapshotRouting.js +1 -2
- package/dist/snapshotSeo.js +1 -2
- package/dist/snapshotSeoControls.js +1 -2
- package/dist/snapshotSeoDocumentInventory.js +1 -2
- package/dist/snapshotSeoDocuments.js +1 -2
- package/dist/snapshotSeoMerge.js +1 -2
- package/dist/snapshotSeoMetadata.js +1 -2
- package/dist/snapshotSeoOutput.js +1 -2
- package/dist/snapshotSeoPathSets.js +1 -2
- package/dist/snapshotSeoRead.js +1 -2
- package/dist/snapshotSite.js +1 -2
- package/dist/snapshotSitemapFiles.js +1 -2
- package/dist/snapshotTreeDependencies.js +1 -2
- package/dist/snapshotTreeLoader.js +1 -2
- package/dist/snapshotTreeRead.js +1 -2
- package/dist/staticPathSet.js +1 -2
- package/dist/staticPathSetRest.js +1 -2
- package/dist/staticPathSetService.js +1 -2
- package/dist/staticPathSetStore.js +1 -2
- package/dist/stewardship.js +2 -3
- package/dist/taxonomy.js +1 -2
- package/dist/team.js +1 -2
- package/dist/templates.js +2 -3
- package/dist/trackChanges.js +1 -2
- package/dist/translation.js +1 -2
- package/dist/tree.js +1 -2
- package/dist/usage.js +1 -2
- package/dist/validation.js +1 -2
- package/dist/visualEditing.js +1 -2
- package/dist/workflow.js +1 -2
- package/dist/write.js +1 -2
- package/dist/xliff.js +1 -2
- package/package.json +9 -9
package/dist/cutover.js
CHANGED
|
@@ -2,7 +2,7 @@ import { asTyped as e } from "./effectForm.js";
|
|
|
2
2
|
import { CMS_REVISIONS_TABLE as t } from "./contentType.js";
|
|
3
3
|
import { and as n, eq as r, gt as i, id as a, inSet as o, json as s, table as c, text as l, timestamp as u } from "@voltro/database";
|
|
4
4
|
import { tenant as d } from "@voltro/plugin-multitenancy/mixin";
|
|
5
|
-
|
|
5
|
+
// src/cutover.ts
|
|
6
6
|
var f = "cms_cutover_issues", p = "cms_cutover_decisions", m = c(f, {
|
|
7
7
|
id: a({ prefix: "ccis" }),
|
|
8
8
|
source: l().maxLength(200),
|
|
@@ -198,5 +198,4 @@ var f = "cms_cutover_issues", p = "cms_cutover_decisions", m = c(f, {
|
|
|
198
198
|
decidedBy: String(e.decidedBy),
|
|
199
199
|
decidedAt: e.decidedAt instanceof Date ? e.decidedAt : new Date(String(e.decidedAt))
|
|
200
200
|
})), E = (...t) => e(() => b(...t)), D = (...t) => e(() => x(...t)), O = (...t) => e(() => S(...t)), k = (...t) => e(() => C(...t)), A = (...t) => e(() => w(...t)), j = (...t) => e(() => T(...t));
|
|
201
|
-
//#endregion
|
|
202
201
|
export { p as CMS_CUTOVER_DECISIONS_TABLE, f as CMS_CUTOVER_ISSUES_TABLE, g as MAX_ROLLBACK_DAYS, h as cmsCutoverDecisionsTable, m as cmsCutoverIssuesTable, C as cutoverAdoption, k as cutoverAdoptionEffect, T as cutoverDecisions, j as cutoverDecisionsEffect, x as cutoverIssues, D as cutoverIssuesEffect, _ as cutoverPlanProblem, w as decideCutover, A as decideCutoverEffect, v as evaluateCutover, b as recordCutoverIssues, E as recordCutoverIssuesEffect, S as resolveCutoverIssue, O as resolveCutoverIssueEffect };
|
package/dist/deliveryChecks.js
CHANGED
|
@@ -2,7 +2,7 @@ import { asTyped as e } from "./effectForm.js";
|
|
|
2
2
|
import { CMS_RELEASES_TABLE as t, CMS_RELEASE_ITEMS_TABLE as n } from "./release.js";
|
|
3
3
|
import { and as r, eq as i, id as a, integer as o, table as s, text as c, timestamp as l } from "@voltro/database";
|
|
4
4
|
import { tenant as u } from "@voltro/plugin-multitenancy/mixin";
|
|
5
|
-
|
|
5
|
+
// src/deliveryChecks.ts
|
|
6
6
|
var d = "cms_delivery_checks", f = s(d, {
|
|
7
7
|
id: a({ prefix: "cdlv" }),
|
|
8
8
|
contentType: c().maxLength(64),
|
|
@@ -134,5 +134,4 @@ var d = "cms_delivery_checks", f = s(d, {
|
|
|
134
134
|
complete: u.length > 0 && f === u.length
|
|
135
135
|
};
|
|
136
136
|
}, b = (...t) => e(() => h(...t)), x = (...t) => e(() => g(...t)), S = (...t) => e(() => _(...t)), C = (...t) => e(() => y(...t));
|
|
137
|
-
//#endregion
|
|
138
137
|
export { d as CMS_DELIVERY_CHECKS_TABLE, f as cmsDeliveryChecksTable, _ as deliveryChecks, S as deliveryChecksEffect, y as releaseCheckpoint, C as releaseCheckpointEffect, h as requestDeliveryCheck, b as requestDeliveryCheckEffect, g as runDeliveryChecks, x as runDeliveryChecksEffect };
|
package/dist/domainHost.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
// src/domainHost.ts
|
|
2
2
|
var e = /^(?=.{1,253}$)(?!-)[a-z0-9-]{1,63}(?<!-)(\.(?!-)[a-z0-9-]{1,63}(?<!-))+$/, t = (t) => {
|
|
3
3
|
let n = t.trim().toLowerCase().replace(/\.$/, "");
|
|
4
4
|
return e.test(n) && !/^\d+(\.\d+){3}$/.test(n) ? n : null;
|
|
5
5
|
};
|
|
6
|
-
//#endregion
|
|
7
6
|
export { t as normalizeHost };
|
package/dist/domains.js
CHANGED
|
@@ -8,7 +8,7 @@ import { reconcileDomainPublication as l } from "./publicRouteSitePublication.js
|
|
|
8
8
|
import { and as u, boolean as d, eq as f, id as p, table as m, text as h, timestamp as g } from "@voltro/database";
|
|
9
9
|
import { tenant as _ } from "@voltro/plugin-multitenancy/mixin";
|
|
10
10
|
import { randomBytes as v } from "node:crypto";
|
|
11
|
-
|
|
11
|
+
// src/domains.ts
|
|
12
12
|
var y = "cms_site_domains", b = m(y, {
|
|
13
13
|
id: p({ prefix: "cdom" }),
|
|
14
14
|
site: h().maxLength(64),
|
|
@@ -135,5 +135,4 @@ var y = "cms_site_domains", b = m(y, {
|
|
|
135
135
|
});
|
|
136
136
|
return n === void 0 ? null : String(n.host);
|
|
137
137
|
}, k = (...e) => r(() => S(...e), n), A = (...e) => r(() => C(...e), n), j = (...i) => r(() => T(...i), n, t, e), M = (...i) => r(() => E(...i), n, t, e), N = (...i) => r(() => D(...i), n, t, e), P = (...e) => r(() => O(...e), n);
|
|
138
|
-
//#endregion
|
|
139
138
|
export { y as CMS_SITE_DOMAINS_TABLE, C as addDomain, A as addDomainEffect, b as cmsSiteDomainsTable, s as normalizeHost, O as primaryDomain, P as primaryDomainEffect, D as removeDomain, N as removeDomainEffect, E as setPrimaryDomain, M as setPrimaryDomainEffect, S as siteDomains, k as siteDomainsEffect, T as verifyDomain, j as verifyDomainEffect };
|
package/dist/draftTexts.js
CHANGED
|
@@ -6,7 +6,7 @@ import { changedFields as o } from "./history.js";
|
|
|
6
6
|
import { crdtText as s, eq as c, id as l, table as u, text as d } from "@voltro/database";
|
|
7
7
|
import { tenant as f } from "@voltro/plugin-multitenancy/mixin";
|
|
8
8
|
import { crdtText as p, crdtTextEdit as m, decodeCrdtText as h, mergeCrdtStates as g } from "@voltro/local-first";
|
|
9
|
-
|
|
9
|
+
// src/draftTexts.ts
|
|
10
10
|
var _ = "cms_draft_texts", v = u(_, {
|
|
11
11
|
id: l({ prefix: "cdtx" }),
|
|
12
12
|
contentType: d().maxLength(64),
|
|
@@ -160,5 +160,4 @@ var _ = "cms_draft_texts", v = u(_, {
|
|
|
160
160
|
}, L = async (e, t, n) => {
|
|
161
161
|
for (let r of t) await e.update(_, String(r.id), { baseRevision: n });
|
|
162
162
|
}, R = [e], z = (...e) => i(() => I(...e), ...R), B = (...e) => i(() => M(...e), ...R), V = (...e) => i(() => j(...e), ...R), H = (...e) => i(() => L(...e), ...R), U = (...e) => i(() => P(...e), ...R);
|
|
163
|
-
//#endregion
|
|
164
163
|
export { _ as CMS_DRAFT_TEXTS_TABLE, O as changedApartFromShared, v as cmsDraftTextsTable, y as collaborativeFields, I as liveDraftTexts, z as liveDraftTextsEffect, b as movedTogether, M as openDraftTexts, B as openDraftTextsEffect, N as openNewBlockTexts, j as readDraftTexts, V as readDraftTextsEffect, L as rebaseDraftTexts, H as rebaseDraftTextsEffect, S as richBlockOfKey, x as richBlockTextKey, F as setDraftText, T as sharedRichBlocks, P as typeDraftText, U as typeDraftTextEffect, E as withSharedBlocks };
|
package/dist/duplicates.js
CHANGED
|
@@ -3,7 +3,7 @@ import { asTyped as n } from "./effectForm.js";
|
|
|
3
3
|
import { usedBy as r } from "./references.js";
|
|
4
4
|
import { archive as i } from "./write.js";
|
|
5
5
|
import { and as a, eq as o, neq as s } from "@voltro/database";
|
|
6
|
-
|
|
6
|
+
// src/duplicates.ts
|
|
7
7
|
var c = async (e, t, n, r) => {
|
|
8
8
|
let i = await e.query({
|
|
9
9
|
table: `${t.name}_drafts`,
|
|
@@ -74,5 +74,4 @@ var c = async (e, t, n, r) => {
|
|
|
74
74
|
usedBy: g
|
|
75
75
|
} : (await i(e, n, c.copyId, s), { ok: !0 });
|
|
76
76
|
}, u = (...e) => n(() => c(...e)), d = (...r) => n(() => l(...r), t, e);
|
|
77
|
-
//#endregion
|
|
78
77
|
export { c as duplicateGroups, u as duplicateGroupsEffect, l as retireDuplicate, d as retireDuplicateEffect };
|
package/dist/edgePurge.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/edgePurge.ts
|
|
2
2
|
var e = /^[\w:.\-/@]{1,256}$/, t = (e) => {
|
|
3
3
|
if (e.length > 2048 || /[\s]/.test(e)) return null;
|
|
4
4
|
try {
|
|
@@ -65,5 +65,4 @@ var e = /^[\w:.\-/@]{1,256}$/, t = (e) => {
|
|
|
65
65
|
for (let n = 0; n < e.length; n += 30) t.push(e.slice(n, n + 30));
|
|
66
66
|
return t;
|
|
67
67
|
};
|
|
68
|
-
//#endregion
|
|
69
68
|
export { n as edgePurgeRequests };
|
package/dist/editHistory.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { changedFields as e } from "./history.js";
|
|
2
|
-
|
|
2
|
+
// src/editHistory.ts
|
|
3
3
|
var t = (e, t, n) => (Array.isArray(e) ? e : []).flatMap((e) => {
|
|
4
4
|
let r = e;
|
|
5
5
|
return typeof r == "object" && r && typeof r[t] == "string" ? [{
|
|
@@ -109,5 +109,4 @@ var t = (e, t, n) => (Array.isArray(e) ? e : []).flatMap((e) => {
|
|
|
109
109
|
}
|
|
110
110
|
};
|
|
111
111
|
};
|
|
112
|
-
//#endregion
|
|
113
112
|
export { i as EMPTY_EDIT_HISTORY, r as describeEdit, a as recordEdit, s as redoEdit, o as undoEdit };
|
package/dist/effectForm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Effect as e } from "effect";
|
|
2
|
-
|
|
2
|
+
// src/effectForm.ts
|
|
3
3
|
var t = (t, ...n) => {
|
|
4
4
|
let r = (e) => n.some((t) => e instanceof t);
|
|
5
5
|
return e.tryPromise({
|
|
@@ -7,5 +7,4 @@ var t = (t, ...n) => {
|
|
|
7
7
|
catch: (e) => e
|
|
8
8
|
}).pipe(e.catch((t) => r(t) ? e.fail(t) : e.die(t)));
|
|
9
9
|
};
|
|
10
|
-
//#endregion
|
|
11
10
|
export { t as asTyped };
|
|
@@ -2,7 +2,7 @@ import { EnvironmentAliasUnavailable as e } from "./errors.js";
|
|
|
2
2
|
import { asTyped as t } from "./effectForm.js";
|
|
3
3
|
import { and as n, eq as r, generateId as i, id as a, table as o, text as s } from "@voltro/database";
|
|
4
4
|
import { tenant as c } from "@voltro/plugin-multitenancy/mixin";
|
|
5
|
-
|
|
5
|
+
// src/environmentAliases.ts
|
|
6
6
|
var l = "cms_environment_aliases", u = "cms_environment_alias_revisions", d = o(l, {
|
|
7
7
|
id: a({ prefix: "ceal" }),
|
|
8
8
|
site: s().maxLength(64),
|
|
@@ -134,5 +134,4 @@ var l = "cms_environment_aliases", u = "cms_environment_alias_revisions", d = o(
|
|
|
134
134
|
let o = await T(e, t, r, i.revisionId);
|
|
135
135
|
return v(n, o.environment), D(e, t, a, o.environment, "rolledBack", o.id);
|
|
136
136
|
}, A = (...n) => t(() => w(...n), e), j = (...n) => t(() => C(...n), e), M = (...n) => t(() => T(...n), e), N = (...n) => t(() => O(...n), e), P = (...n) => t(() => k(...n), e);
|
|
137
|
-
//#endregion
|
|
138
137
|
export { l as CMS_ENVIRONMENT_ALIASES_TABLE, u as CMS_ENVIRONMENT_ALIAS_REVISIONS_TABLE, f as cmsEnvironmentAliasRevisionsTable, d as cmsEnvironmentAliasesTable, w as createEnvironmentAlias, A as createEnvironmentAliasEffect, T as environmentAliasRevision, M as environmentAliasRevisionEffect, S as lockEnvironmentAlias, C as resolveEnvironmentAlias, j as resolveEnvironmentAliasEffect, k as rollbackEnvironmentAlias, P as rollbackEnvironmentAliasEffect, O as swapEnvironmentAlias, N as swapEnvironmentAliasEffect };
|
package/dist/environments.js
CHANGED
|
@@ -10,7 +10,7 @@ import { reconcilePublishedContentRoutes as u, withPublicRoutePublicationBatch a
|
|
|
10
10
|
import { writeAvailability as f } from "./availability.js";
|
|
11
11
|
import { newVariantId as p, scopeColumns as m, writeRevision as h } from "./write.js";
|
|
12
12
|
import { and as g, eq as _, neq as v } from "@voltro/database";
|
|
13
|
-
|
|
13
|
+
// src/environments.ts
|
|
14
14
|
var y = (e, t, n, r) => e.query({
|
|
15
15
|
table: t,
|
|
16
16
|
predicate: g(_("site", n), _("environment", r), v("status", "archived")),
|
|
@@ -143,5 +143,4 @@ var y = (e, t, n, r) => e.query({
|
|
|
143
143
|
}
|
|
144
144
|
return r;
|
|
145
145
|
}, T = (...e) => n(() => w(...e)), E = (...r) => n(() => x(...r), t, e);
|
|
146
|
-
//#endregion
|
|
147
146
|
export { w as compareEnvironments, T as compareEnvironmentsEffect, x as copyEnvironment, E as copyEnvironmentEffect, b as lockEnvironmentPairForPublication };
|
package/dist/errors.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema as e } from "effect";
|
|
2
|
-
|
|
2
|
+
// src/errors.ts
|
|
3
3
|
var t = class extends e.TaggedError()("EnvironmentAliasUnavailable", { reason: e.Literals([
|
|
4
4
|
"scope",
|
|
5
5
|
"name",
|
|
@@ -103,5 +103,4 @@ var t = class extends e.TaggedError()("EnvironmentAliasUnavailable", { reason: e
|
|
|
103
103
|
"values",
|
|
104
104
|
"scope"
|
|
105
105
|
]) }) {};
|
|
106
|
-
//#endregion
|
|
107
106
|
export { m as ChangeFeedUnavailable, a as ContentGone, o as ContentIdConflict, v as ContentLocationUnavailable, i as ContentNotFound, y as ContentSeoUnavailable, r as ContentValidationFailed, t as EnvironmentAliasUnavailable, l as PreviewShareRejected, p as QuotaExceeded, f as ReferenceUnavailable, c as ReleaseNotEditable, u as ReviewRequired, d as ReviewStepRefused, s as RevisionMismatch, g as SiteBindingUnavailable, _ as SiteDeliveryUnavailable, h as SiteStateUnavailable };
|
package/dist/experiments.js
CHANGED
|
@@ -4,7 +4,7 @@ import { saveDraft as o } from "./write.js";
|
|
|
4
4
|
import { CMS_RELEASE_ITEMS_TABLE as s, addToRelease as c, createRelease as l, releaseStatusOf as u } from "./release.js";
|
|
5
5
|
import { and as d, eq as f, id as p, integer as m, json as h, table as g, text as _, timestamp as v } from "@voltro/database";
|
|
6
6
|
import { tenant as y } from "@voltro/plugin-multitenancy/mixin";
|
|
7
|
-
|
|
7
|
+
// src/experiments.ts
|
|
8
8
|
var b = "cms_experiments", x = "cms_experiment_events", S = g(b, {
|
|
9
9
|
id: p({ prefix: "cexp" }),
|
|
10
10
|
site: _().maxLength(64),
|
|
@@ -524,5 +524,4 @@ var b = "cms_experiments", x = "cms_experiment_events", S = g(b, {
|
|
|
524
524
|
i,
|
|
525
525
|
r
|
|
526
526
|
], X = (...e) => a(() => V(...e)), Z = (...e) => a(() => K(...e)), Q = (...e) => a(() => H(...e)), $ = (...e) => a(() => U(...e)), ee = (...e) => a(() => B(...e)), te = (...e) => a(() => P(...e)), ne = (...e) => a(() => z(...e)), re = (...e) => a(() => q(...e), ...Y), ie = (...e) => a(() => L(...e)), ae = (...e) => a(() => J(...e));
|
|
527
|
-
//#endregion
|
|
528
527
|
export { b as CMS_EXPERIMENTS_TABLE, x as CMS_EXPERIMENT_EVENTS_TABLE, W as MIN_READERS, q as adoptWinner, re as adoptWinnerEffect, A as applyVariant, O as assignVariant, C as cmsExperimentEventsTable, S as cmsExperimentsTable, V as experimentById, X as experimentByIdEffect, j as experimentFields, J as experimentLineage, ae as experimentLineageEffect, M as experimentOverrideKeys, R as experimentReleaseHook, K as experimentResults, Z as experimentResultsEffect, H as listExperiments, Q as listExperimentsEffect, L as planExperiment, ie as planExperimentEffect, U as recordExperimentEvent, $ as recordExperimentEventEffect, B as runningExperiment, ee as runningExperimentEffect, P as startExperiment, te as startExperimentEffect, z as stopExperiment, ne as stopExperimentEffect };
|
package/dist/exposure.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/exposure.ts
|
|
2
2
|
var e = (e) => Array.isArray(e) ? e.filter((e) => typeof e == "string") : [], t = (t) => {
|
|
3
3
|
let n = new Map(t.ceiling.map((e) => [e, {
|
|
4
4
|
tool: e,
|
|
@@ -24,5 +24,4 @@ var e = (e) => Array.isArray(e) ? e.filter((e) => typeof e == "string") : [], t
|
|
|
24
24
|
explained: r
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
|
-
//#endregion
|
|
28
27
|
export { t as effectiveExposure };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema as e } from "effect";
|
|
2
|
-
|
|
2
|
+
// src/extensionManifest.ts
|
|
3
3
|
var t = [
|
|
4
4
|
"dashboard",
|
|
5
5
|
"sidebar",
|
|
@@ -12,7 +12,7 @@ var t = [
|
|
|
12
12
|
let n = new Map((e.settings ?? []).map((e) => [e.key, e])), r = [];
|
|
13
13
|
for (let [i, a] of Object.entries(t)) {
|
|
14
14
|
let t = n.get(i);
|
|
15
|
-
t === void 0 ? r.push(`"${i}" is not a setting of ${e.id}`) : t.kind === "number" ? typeof a != "number" || !Number.isFinite(a) ? r.push(`"${i}" is a number`) : (t.min !== void 0 && a < t.min || t.max !== void 0 && a > t.max) && r.push(`"${i}" is between ${t.min ?? "…"} and ${t.max ?? "…"}`) : t.kind === "boolean" ? typeof a != "boolean" && r.push(`"${i}" is true or false`) :
|
|
15
|
+
t === void 0 ? r.push(`"${i}" is not a setting of ${e.id}`) : t.kind === "number" ? typeof a != "number" || !Number.isFinite(a) ? r.push(`"${i}" is a number`) : (t.min !== void 0 && a < t.min || t.max !== void 0 && a > t.max) && r.push(`"${i}" is between ${t.min ?? "…"} and ${t.max ?? "…"}`) : t.kind === "boolean" ? typeof a != "boolean" && r.push(`"${i}" is true or false`) : typeof a == "string" && t.options.includes(a) || r.push(`"${i}" is one of ${t.options.join(", ")}`);
|
|
16
16
|
}
|
|
17
17
|
return r;
|
|
18
18
|
}, r = (e, t) => Object.fromEntries((e.settings ?? []).map((r) => {
|
|
@@ -77,5 +77,4 @@ var t = [
|
|
|
77
77
|
})
|
|
78
78
|
])))
|
|
79
79
|
});
|
|
80
|
-
//#endregion
|
|
81
80
|
export { t as EXTENSION_SLOTS, p as ExtensionAccessDenied, m as ExtensionManifestSchema, d as compareVersions, l as isExtensionCapability, u as manifestProblems, f as newCapabilities, n as settingsProblems, r as settingsWithDefaults };
|
package/dist/extensions.js
CHANGED
|
@@ -2,7 +2,7 @@ import { asTyped as e } from "./effectForm.js";
|
|
|
2
2
|
import { ExtensionAccessDenied as t, compareVersions as n, manifestProblems as r, newCapabilities as i, settingsProblems as a, settingsWithDefaults as o } from "./extensionManifest.js";
|
|
3
3
|
import { and as s, eq as c, id as l, json as u, table as d, text as f } from "@voltro/database";
|
|
4
4
|
import { tenant as p } from "@voltro/plugin-multitenancy/mixin";
|
|
5
|
-
|
|
5
|
+
// src/extensions.ts
|
|
6
6
|
var m = "cms_extensions", h = "cms_extension_data", g = "cms_extension_secrets", _ = d(m, {
|
|
7
7
|
id: l({ prefix: "cext" }),
|
|
8
8
|
extensionId: f(),
|
|
@@ -310,5 +310,4 @@ var m = "cms_extensions", h = "cms_extension_data", g = "cms_extension_secrets",
|
|
|
310
310
|
}
|
|
311
311
|
};
|
|
312
312
|
}, R = (...t) => e(() => F(...t)), z = (...t) => e(() => D(...t)), B = (...t) => e(() => I(...t)), V = (...t) => e(() => M(...t)), H = (...t) => e(() => N(...t)), U = (...t) => e(() => T(...t)), W = (...t) => e(() => w(...t)), G = (...t) => e(() => C(...t)), K = (...t) => e(() => A(...t)), q = (...t) => e(() => k(...t)), J = (...t) => e(() => O(...t)), Y = (...t) => e(() => P(...t)), X = (...t) => e(() => E(...t));
|
|
313
|
-
//#endregion
|
|
314
313
|
export { m as CMS_EXTENSIONS_TABLE, h as CMS_EXTENSION_DATA_TABLE, g as CMS_EXTENSION_SECRETS_TABLE, F as bindExtensionSecret, R as bindExtensionSecretEffect, v as cmsExtensionDataTable, y as cmsExtensionSecretsTable, _ as cmsExtensionsTable, D as consentToUpgrade, z as consentToUpgradeEffect, L as extensionSandbox, I as extensionSecret, B as extensionSecretEffect, M as extensionSettings, V as extensionSettingsEffect, T as installExtension, U as installExtensionEffect, w as installedExtension, W as installedExtensionEffect, C as installedExtensions, G as installedExtensionsEffect, A as regrantExtension, K as regrantExtensionEffect, k as revokeExtension, q as revokeExtensionEffect, O as rollbackExtension, J as rollbackExtensionEffect, N as setExtensionSettings, H as setExtensionSettingsEffect, P as uninstallExtension, Y as uninstallExtensionEffect, E as upgradeExtension, X as upgradeExtensionEffect };
|
package/dist/fieldSchema.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/fieldSchema.ts
|
|
2
2
|
var e = (t) => ({
|
|
3
3
|
...t,
|
|
4
4
|
pipe(...n) {
|
|
@@ -195,5 +195,4 @@ var e = (t) => ({
|
|
|
195
195
|
đ: "d",
|
|
196
196
|
þ: "th"
|
|
197
197
|
}, m = (e) => String(e).normalize("NFC").toLowerCase().trim().replace(/[äöüßæœøåłđþ]/g, (e) => p[e] ?? e).normalize("NFKD").replace(/[\u0300-\u036f]/g, "").replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
|
|
198
|
-
//#endregion
|
|
199
198
|
export { a as Schema, c as componentFingerprint, d as defineComponent, l as defineDesignTokens, u as defineRichTextProfile, f as derivedFrom, s as fnv1a, t as maxLength, n as pattern, m as slugify, r as unique };
|
package/dist/formStrings.js
CHANGED
package/dist/frontendBindings.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createFrontendMediaReader as e } from "./frontendMedia.js";
|
|
2
2
|
import { admitSnapshotPresentation as t } from "./snapshotPresentation.js";
|
|
3
3
|
import { Schema as n } from "effect";
|
|
4
|
-
|
|
4
|
+
// src/frontendBindings.ts
|
|
5
5
|
var r = [
|
|
6
6
|
"empty",
|
|
7
7
|
"loading",
|
|
@@ -95,5 +95,4 @@ var r = [
|
|
|
95
95
|
...i.source === void 0 ? {} : { source: i.source }
|
|
96
96
|
}) : s[i.state](m);
|
|
97
97
|
};
|
|
98
|
-
//#endregion
|
|
99
98
|
export { i as FrontendBindingUnavailable, d as copyFrontendContexts, l as copyFrontendOutputContext, c as copyFrontendOutputSelection, p as defineFrontendBindings, u as frontendContextKey, o as frontendRendererId, r as frontendStates, m as renderCapturedFrontendComponent, f as supportsFrontendContext };
|
package/dist/frontendMedia.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/frontendMedia.ts
|
|
2
2
|
var e = (e, t = [], n) => {
|
|
3
3
|
let r = [...t];
|
|
4
4
|
return (t, i = { kind: "original" }) => {
|
|
@@ -14,5 +14,4 @@ var e = (e, t = [], n) => {
|
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
|
-
//#endregion
|
|
18
17
|
export { e as createFrontendMediaReader };
|
package/dist/glossary.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { asTyped as e } from "./effectForm.js";
|
|
2
2
|
import { and as t, eq as n, id as r, json as i, table as a, text as o } from "@voltro/database";
|
|
3
3
|
import { tenant as s } from "@voltro/plugin-multitenancy/mixin";
|
|
4
|
-
|
|
4
|
+
// src/glossary.ts
|
|
5
5
|
var c = "cms_glossary", l = a(c, {
|
|
6
6
|
id: r({ prefix: "cgl" }),
|
|
7
7
|
term: o(),
|
|
@@ -69,5 +69,4 @@ var c = "cms_glossary", l = a(c, {
|
|
|
69
69
|
found: e,
|
|
70
70
|
use: t.translation
|
|
71
71
|
}))), b = (...t) => e(() => h(...t)), x = (...t) => e(() => m(...t)), S = (...t) => e(() => p(...t));
|
|
72
|
-
//#endregion
|
|
73
72
|
export { c as CMS_GLOSSARY_TABLE, l as cmsGlossaryTable, h as glossary, b as glossaryEffect, f as glossaryInputProblems, y as glossaryProblems, m as removeGlossaryTerm, x as removeGlossaryTermEffect, p as setGlossaryTerm, S as setGlossaryTermEffect, v as termsIn };
|
package/dist/history.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { plainTextOf as e } from "./richDocument.js";
|
|
2
|
-
|
|
2
|
+
// src/history.ts
|
|
3
3
|
var t = (e) => Array.isArray(e) ? e.map(t) : typeof e == "object" && e && !(e instanceof Date) ? Object.fromEntries(Object.keys(e).sort().map((n) => [n, t(e[n])])) : e instanceof Date ? e.toISOString() : e === void 0 ? null : e, n = (e, n, r) => Object.keys(e).filter((e) => JSON.stringify(t(n[e])) !== JSON.stringify(t(r[e]))), r = (e, n) => {
|
|
4
4
|
let r = [...e].sort((e, t) => Number(e.number) - Number(t.number)), i = [], a;
|
|
5
5
|
for (let e of r) {
|
|
@@ -50,5 +50,4 @@ var t = (e) => Array.isArray(e) ? e.map(t) : typeof e == "object" && e && !(e in
|
|
|
50
50
|
field: e,
|
|
51
51
|
segments: o(c(t[e]), c(r[e]))
|
|
52
52
|
}));
|
|
53
|
-
//#endregion
|
|
54
53
|
export { n as changedFields, o as diffWords, l as fieldDiffs, r as fieldVersions, c as valueText };
|
package/dist/htmlImport.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { contactLiteralProblem as e } from "./richDocument.js";
|
|
2
|
-
|
|
2
|
+
// src/htmlImport.ts
|
|
3
3
|
var t = {
|
|
4
4
|
amp: "&",
|
|
5
5
|
lt: "<",
|
|
@@ -293,5 +293,4 @@ var t = {
|
|
|
293
293
|
findings: d
|
|
294
294
|
};
|
|
295
295
|
};
|
|
296
|
-
//#endregion
|
|
297
296
|
export { n as decodeEntities, c as richDocumentFromHtml };
|
|
@@ -3,7 +3,7 @@ import { ChangeFeedUnavailable as t, SiteStateUnavailable as n } from "./errors.
|
|
|
3
3
|
import { asTyped as r } from "./effectForm.js";
|
|
4
4
|
import { compilePublicRouteRegistryDefinition as i, compilePublicRouteRouting as a } from "./publicRouteRegistryDefinition.js";
|
|
5
5
|
import { bindInitialPublicRouteDefinition as o } from "./publicRouteRegistryBinding.js";
|
|
6
|
-
|
|
6
|
+
// src/initializePublicRoutes.ts
|
|
7
7
|
var s = (t) => {
|
|
8
8
|
try {
|
|
9
9
|
return i({
|
|
@@ -24,5 +24,4 @@ var s = (t) => {
|
|
|
24
24
|
now: l.now ?? Date.now()
|
|
25
25
|
}))).revision };
|
|
26
26
|
}, e, t, n);
|
|
27
|
-
//#endregion
|
|
28
27
|
export { s as compileCmsPublicRouteDeclaration, c as initializeCmsPublicRoutes };
|
|
@@ -5,7 +5,7 @@ import { copyOutputActivationScope as r } from "./outputActivation.js";
|
|
|
5
5
|
import { readContentModificationTime as i } from "./contentValues.js";
|
|
6
6
|
import { readPublicRouteBinding as a } from "./publicRouteRegistryBinding.js";
|
|
7
7
|
import { and as o, eq as s, gt as c } from "@voltro/database";
|
|
8
|
-
|
|
8
|
+
// src/liveContentRouteView.ts
|
|
9
9
|
var l = (e) => typeof e == "string" && e.length > 0, u = async (u, d) => {
|
|
10
10
|
let f;
|
|
11
11
|
try {
|
|
@@ -72,5 +72,4 @@ var l = (e) => typeof e == "string" && e.length > 0, u = async (u, d) => {
|
|
|
72
72
|
}
|
|
73
73
|
};
|
|
74
74
|
};
|
|
75
|
-
//#endregion
|
|
76
75
|
export { u as readLiveContentRouteView };
|
package/dist/media.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { asTyped as e } from "./effectForm.js";
|
|
2
|
-
|
|
2
|
+
// src/media.ts
|
|
3
3
|
var t = (e) => Object.entries(e.fields).filter(([, e]) => e.kind === "media").map(([e]) => e), n = async (e, t, r) => {
|
|
4
4
|
if (t == null) return t;
|
|
5
5
|
switch (e.kind) {
|
|
@@ -25,5 +25,4 @@ var t = (e) => Object.entries(e.fields).filter(([, e]) => e.kind === "media").ma
|
|
|
25
25
|
}
|
|
26
26
|
return i;
|
|
27
27
|
}, i = async (e, t, n) => Promise.all(t.map((t) => r(e, t, n))), a = (e) => t(e), o = (...t) => e(() => r(...t)), s = (...t) => e(() => i(...t));
|
|
28
|
-
//#endregion
|
|
29
28
|
export { a as mediaFields, r as resolveMedia, i as resolveMediaAll, s as resolveMediaAllEffect, o as resolveMediaEffect };
|
package/dist/metrics.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { fnv1a as e } from "./fieldSchema.js";
|
|
2
|
-
|
|
2
|
+
// src/metrics.ts
|
|
3
3
|
var t = (e) => JSON.stringify([
|
|
4
4
|
e.id,
|
|
5
5
|
e.formula,
|
|
@@ -42,5 +42,4 @@ var t = (e) => JSON.stringify([
|
|
|
42
42
|
unattributed: r
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
|
-
//#endregion
|
|
46
45
|
export { i as attributeToRevisions, n as defineMetric, r as metricVersionDrift };
|
package/dist/migration.js
CHANGED
|
@@ -2,7 +2,7 @@ import { asTyped as e } from "./effectForm.js";
|
|
|
2
2
|
import { MIGRATION_STAGES as t } from "./migrationStages.js";
|
|
3
3
|
import { and as n, eq as r, id as i, table as a, text as o, timestamp as s } from "@voltro/database";
|
|
4
4
|
import { tenant as c } from "@voltro/plugin-multitenancy/mixin";
|
|
5
|
-
|
|
5
|
+
// src/migration.ts
|
|
6
6
|
var l = "cms_migration_stages", u = "cms_migration_records", d = a(l, {
|
|
7
7
|
id: i({ prefix: "cmst" }),
|
|
8
8
|
source: o().maxLength(200),
|
|
@@ -189,5 +189,4 @@ var l = "cms_migration_stages", u = "cms_migration_records", d = a(l, {
|
|
|
189
189
|
records: [...o].sort((e, t) => c(t) - c(e)).slice(0, n)
|
|
190
190
|
};
|
|
191
191
|
}, x = (...t) => e(() => m(...t)), S = (...t) => e(() => g(...t)), C = (...t) => e(() => _(...t)), w = (...t) => e(() => v(...t)), T = (...t) => e(() => y(...t)), E = (...t) => e(() => b(...t));
|
|
192
|
-
//#endregion
|
|
193
192
|
export { u as CMS_MIGRATION_RECORDS_TABLE, l as CMS_MIGRATION_STAGES_TABLE, t as MIGRATION_STAGES, f as cmsMigrationRecordsTable, d as cmsMigrationStagesTable, b as migrationLedger, E as migrationLedgerEffect, m as migrationStages, x as migrationStagesEffect, _ as passStage, C as passStageEffect, y as recordMigrationRecords, T as recordMigrationRecordsEffect, v as reopenStage, w as reopenStageEffect, g as setStageOwner, S as setStageOwnerEffect };
|
package/dist/migrationStages.js
CHANGED
|
@@ -8,7 +8,7 @@ import { OUTPUT_ACTIVATION_TARGETS as u } from "./outputActivationTargetTable.js
|
|
|
8
8
|
import { readOutputActivationTarget as d, retainOutputActivationTarget as f } from "./outputActivationTarget.js";
|
|
9
9
|
import { and as p, eq as m } from "@voltro/database";
|
|
10
10
|
import { canonicalJson as h } from "@voltro/protocol";
|
|
11
|
-
|
|
11
|
+
// src/nativeOutputDeploymentService.ts
|
|
12
12
|
var g = (e) => {
|
|
13
13
|
throw new s({ reason: e });
|
|
14
14
|
}, _ = (e, t) => h(e) === h(t), v = (e) => typeof e?.id != "string" || !/^[A-Za-z0-9_-]{1,64}$/.test(e.id) || !(e.material instanceof Uint8Array) || e.material.byteLength < 32 ? g("configuration") : {
|
|
@@ -201,5 +201,4 @@ var g = (e) => {
|
|
|
201
201
|
}
|
|
202
202
|
};
|
|
203
203
|
};
|
|
204
|
-
//#endregion
|
|
205
204
|
export { y as createCmsNativeOutputDeployments };
|
package/dist/outputActivation.js
CHANGED
|
@@ -2,7 +2,7 @@ import { normalizeHost as e } from "./domainHost.js";
|
|
|
2
2
|
import { Schema as t } from "effect";
|
|
3
3
|
import { createHash as n, createHmac as r, timingSafeEqual as i } from "node:crypto";
|
|
4
4
|
import { canonicalJson as a } from "@voltro/runtime";
|
|
5
|
-
|
|
5
|
+
// src/outputActivation.ts
|
|
6
6
|
var o = class extends t.TaggedError()("OutputActivationUnavailable", { reason: t.Literals([
|
|
7
7
|
"input",
|
|
8
8
|
"integrity",
|
|
@@ -230,5 +230,4 @@ var o = class extends t.TaggedError()("OutputActivationUnavailable", { reason: t
|
|
|
230
230
|
});
|
|
231
231
|
return i.size < e.manifest.regions.quorum ? l("regions") : a.sort((e, t) => e.region < t.region ? -1 : +(e.region > t.region));
|
|
232
232
|
};
|
|
233
|
-
//#endregion
|
|
234
233
|
export { o as OutputActivationUnavailable, _ as copyOutputActivationApp, v as copyOutputActivationManifest, g as copyOutputActivationObservation, m as copyOutputActivationScope, b as copyOutputActivationSet, y as createOutputActivationSet, C as makeOutputActivationProbe, T as makeOutputRegionReceipt, h as outputActivationContractDigest, c as outputActivationFail, s as outputActivationHash, w as verifyOutputActivationProbe, E as verifyOutputRegionReceipts };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { copyOutputActivationManifest as e, outputActivationFail as t, outputActivationHash as n } from "./outputActivation.js";
|
|
2
2
|
import { copySnapshotResource as r } from "./buildSnapshot.js";
|
|
3
|
-
|
|
3
|
+
// src/outputActivationOrigin.ts
|
|
4
4
|
var i = (e) => !e || typeof e != "object" || Array.isArray(e) ? t("input") : e, a = (a) => {
|
|
5
5
|
if (!/^[A-Za-z0-9_-]{1,64}$/.test(a.activationId) || !Number.isSafeInteger(a.generation) || a.generation < 1) return t("input");
|
|
6
6
|
let o = i(r({
|
|
@@ -47,5 +47,4 @@ var i = (e) => !e || typeof e != "object" || Array.isArray(e) ? t("input") : e,
|
|
|
47
47
|
})
|
|
48
48
|
};
|
|
49
49
|
};
|
|
50
|
-
//#endregion
|
|
51
50
|
export { a as copyStoredOutputActivationOrigin };
|
|
@@ -7,7 +7,7 @@ import { iterateRouteHistory as m, readRouteHistoryPage as h, replaceRouteHistor
|
|
|
7
7
|
import { and as v, eq as y, generateId as b, gt as x, id as S, integer as C, json as w, table as T, text as E, timestamp as D } from "@voltro/database";
|
|
8
8
|
import { tenant as O } from "@voltro/plugin-multitenancy/mixin";
|
|
9
9
|
import { canonicalJson as k } from "@voltro/runtime";
|
|
10
|
-
|
|
10
|
+
// src/outputActivationStore.ts
|
|
11
11
|
var A = "_voltro_cms_output_heads", j = "_voltro_cms_output_activations", M = "_voltro_cms_output_denies", N = T(A, {
|
|
12
12
|
id: S({ prefix: "couth" }),
|
|
13
13
|
site: E().maxLength(64),
|
|
@@ -407,5 +407,4 @@ var A = "_voltro_cms_output_heads", j = "_voltro_cms_output_activations", M = "_
|
|
|
407
407
|
safetyGeneration: l.safetyGeneration
|
|
408
408
|
});
|
|
409
409
|
};
|
|
410
|
-
//#endregion
|
|
411
410
|
export { j as OUTPUT_ACTIVATIONS, A as OUTPUT_ACTIVATION_HEADS, M as OUTPUT_SAFETY_DENIES, Y as activateOutputSet, Q as denyOutputTarget, q as initializeOutputRouteHistory, V as lockOutputRouteHistoryCapture, N as outputActivationHeadsTable, I as outputActivationTables, P as outputActivationsTable, F as outputSafetyDeniesTable, J as probeOutputActivation, te as readActiveOutput, ee as readOutputActivationMarker, Z as readOutputSafetyPage };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { outputActivationTables as e } from "./outputActivationStore.js";
|
|
2
2
|
import { outputDeploymentTables as t } from "./outputDeployment.js";
|
|
3
3
|
import { outputActivationTargetsTable as n } from "./outputActivationTargetTable.js";
|
|
4
|
-
|
|
4
|
+
// src/outputActivationTables.ts
|
|
5
5
|
var r = Object.freeze([
|
|
6
6
|
...e,
|
|
7
7
|
...t,
|
|
8
8
|
n
|
|
9
9
|
]);
|
|
10
|
-
//#endregion
|
|
11
10
|
export { r as cmsOutputActivationTables };
|
|
@@ -4,7 +4,7 @@ import { readStaticPathSetEvidence as i } from "./staticPathSetStore.js";
|
|
|
4
4
|
import { OUTPUT_ACTIVATION_TARGETS as a } from "./outputActivationTargetTable.js";
|
|
5
5
|
import { and as o, eq as s } from "@voltro/database";
|
|
6
6
|
import { canonicalJson as c } from "@voltro/protocol";
|
|
7
|
-
|
|
7
|
+
// src/outputActivationTarget.ts
|
|
8
8
|
var l = (e, t) => typeof e != "object" || !e || Array.isArray(e) || Object.keys(e).sort().join(",") !== t ? n("input") : e, u = (e) => {
|
|
9
9
|
let i = l(r({
|
|
10
10
|
key: "output-target",
|
|
@@ -77,5 +77,4 @@ var l = (e, t) => typeof e != "object" || !e || Array.isArray(e) || Object.keys(
|
|
|
77
77
|
let m = await f(t, l, p.id);
|
|
78
78
|
return c(m) === c(d) ? m : n("changed");
|
|
79
79
|
};
|
|
80
|
-
//#endregion
|
|
81
80
|
export { f as readOutputActivationTarget, p as retainOutputActivationTarget };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { id as e, json as t, table as n, text as r } from "@voltro/database";
|
|
2
2
|
import { tenant as i } from "@voltro/plugin-multitenancy/mixin";
|
|
3
|
-
|
|
3
|
+
// src/outputActivationTargetTable.ts
|
|
4
4
|
var a = "_voltro_cms_output_targets", o = n("_voltro_cms_output_targets", {
|
|
5
5
|
id: e({ prefix: "coutt" }),
|
|
6
6
|
site: r().maxLength(64),
|
|
@@ -21,5 +21,4 @@ var a = "_voltro_cms_output_targets", o = n("_voltro_cms_output_targets", {
|
|
|
21
21
|
"environment",
|
|
22
22
|
"deploymentId"
|
|
23
23
|
]);
|
|
24
|
-
//#endregion
|
|
25
24
|
export { a as OUTPUT_ACTIVATION_TARGETS, o as outputActivationTargetsTable };
|
package/dist/outputDeployment.js
CHANGED
|
@@ -8,7 +8,7 @@ import { admitOutputRouteGraph as f } from "./outputRouteGraph.js";
|
|
|
8
8
|
import { and as p, eq as m, generateId as h, id as g, integer as _, json as v, table as y, text as b } from "@voltro/database";
|
|
9
9
|
import { tenant as x } from "@voltro/plugin-multitenancy/mixin";
|
|
10
10
|
import { canonicalJson as S } from "@voltro/runtime";
|
|
11
|
-
|
|
11
|
+
// src/outputDeployment.ts
|
|
12
12
|
var C = "_voltro_cms_output_deployments", w = "_voltro_cms_output_deployment_builds", T = y(C, {
|
|
13
13
|
id: g({ prefix: "coutdep" }),
|
|
14
14
|
site: b().maxLength(64),
|
|
@@ -170,5 +170,4 @@ var C = "_voltro_cms_output_deployments", w = "_voltro_cms_output_deployment_bui
|
|
|
170
170
|
if (S(await M(n, s, r.manifest.app.deploymentId, "share")) !== S(r.manifest.app)) return c("changed");
|
|
171
171
|
P(l, r), await e(n, r, i, a);
|
|
172
172
|
};
|
|
173
|
-
//#endregion
|
|
174
173
|
export { C as OUTPUT_DEPLOYMENTS, w as OUTPUT_DEPLOYMENT_BUILDS, N as bindOutputDeployment, I as makeOutputActivationAdmission, F as makeOutputDeploymentAdmission, L as makeOutputServingAdmission, E as outputDeploymentBuildsTable, D as outputDeploymentTables, T as outputDeploymentsTable, j as readOutputDeployment };
|
|
@@ -2,7 +2,7 @@ import { cmsCredential as e, privateCmsHttpRoutes as t, privateCmsOperation as n
|
|
|
2
2
|
import { CmsOutputDeploymentUnavailable as r } from "./outputDeploymentService.js";
|
|
3
3
|
import { Schema as i } from "effect";
|
|
4
4
|
import { strictInput as a } from "@voltro/protocol";
|
|
5
|
-
|
|
5
|
+
// src/outputDeploymentRest.ts
|
|
6
6
|
var o = i.String.pipe(i.check(i.isPattern(/^[a-f0-9]{64}$/))), s = i.String.pipe(i.check(i.isPattern(/^[A-Za-z0-9_-]{1,64}$/))), c = i.String.pipe(i.check(i.isPattern(/^\d{20}$/))), l = i.Struct({
|
|
7
7
|
tenantId: s,
|
|
8
8
|
site: s,
|
|
@@ -164,5 +164,4 @@ var o = i.String.pipe(i.check(i.isPattern(/^[a-f0-9]{64}$/))), s = i.String.pipe
|
|
|
164
164
|
httpRoutes: t(n)
|
|
165
165
|
};
|
|
166
166
|
};
|
|
167
|
-
//#endregion
|
|
168
167
|
export { C as cmsOutputDeploymentRest, g as outputDeploymentManifestSchema };
|
|
@@ -6,7 +6,7 @@ import { activateOutputSet as d, lockOutputRouteHistoryCapture as f, probeOutput
|
|
|
6
6
|
import { bindOutputDeployment as h, readOutputDeployment as g } from "./outputDeployment.js";
|
|
7
7
|
import { Effect as _, Schema as v } from "effect";
|
|
8
8
|
import { canonicalJson as y, dataStoreApiKeyStore as b, makeApiKeyService as x } from "@voltro/runtime";
|
|
9
|
-
|
|
9
|
+
// src/outputDeploymentService.ts
|
|
10
10
|
var S = "cms:deploy", C = class extends v.TaggedError()("CmsOutputDeploymentUnavailable", { reason: v.Literals([
|
|
11
11
|
"configuration",
|
|
12
12
|
"credential",
|
|
@@ -237,5 +237,4 @@ var S = "cms:deploy", C = class extends v.TaggedError()("CmsOutputDeploymentUnav
|
|
|
237
237
|
}
|
|
238
238
|
};
|
|
239
239
|
};
|
|
240
|
-
//#endregion
|
|
241
240
|
export { S as CMS_OUTPUT_DEPLOY_SCOPE, C as CmsOutputDeploymentUnavailable, O as createCmsOutputDeploymentAuthority, k as createCmsOutputDeployments };
|
package/dist/outputRouteGraph.js
CHANGED
|
@@ -12,7 +12,7 @@ import { admitCapturedAssetUseRights as u } from "./assetUseRights.js";
|
|
|
12
12
|
import { isPrivateNativeRouteReservation as d } from "./privateNativeRouteReservation.js";
|
|
13
13
|
import { planExactRouteDispositions as f } from "./routeDispositionGraph.js";
|
|
14
14
|
import { canonicalJson as p } from "@voltro/runtime";
|
|
15
|
-
|
|
15
|
+
// src/outputRouteGraph.ts
|
|
16
16
|
var m = (t) => {
|
|
17
17
|
throw new e({ reason: t });
|
|
18
18
|
}, h = (e, t) => {
|
|
@@ -173,5 +173,4 @@ var m = (t) => {
|
|
|
173
173
|
if (p(le) !== p($)) return m("changed");
|
|
174
174
|
for (let e of $) if (X.has(e.source.url) || e.action.kind === "redirect" && X.has(e.action.target.url)) return m("denied");
|
|
175
175
|
};
|
|
176
|
-
//#endregion
|
|
177
176
|
export { y as admitOutputRouteGraph };
|
|
@@ -5,7 +5,7 @@ import { readOutputSafetyPage as r } from "./outputActivationStore.js";
|
|
|
5
5
|
import { Schema as i } from "effect";
|
|
6
6
|
import { createHash as a } from "node:crypto";
|
|
7
7
|
import { canonicalJson as o } from "@voltro/runtime";
|
|
8
|
-
|
|
8
|
+
// src/outputSafetyArtifact.ts
|
|
9
9
|
var s = class extends i.TaggedError()("OutputSafetyArtifactUnavailable", { reason: i.Literals([
|
|
10
10
|
"binding",
|
|
11
11
|
"changed",
|
|
@@ -143,5 +143,4 @@ var s = class extends i.TaggedError()("OutputSafetyArtifactUnavailable", { reaso
|
|
|
143
143
|
}
|
|
144
144
|
};
|
|
145
145
|
}, S = async (...e) => (await x(...e)).verification;
|
|
146
|
-
//#endregion
|
|
147
146
|
export { s as OutputSafetyArtifactUnavailable, b as captureOutputSafetyArtifact, m as copyOutputSafetySelection, x as readCurrentOutputSafetyArtifact, g as readOutputSafetySnapshot, S as readVerifiedOutputSafetyArtifact };
|