@jini-ai/devops 0.7.3-next.1 → 0.7.3-next.3
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 +6 -0
- package/README.md +16 -0
- package/dist/backup/site/archive-extensions.d.ts +73 -0
- package/dist/backup/site/archive-extensions.js +129 -0
- package/dist/backup/site/archive-manifest.d.ts +85 -0
- package/dist/backup/site/archive-manifest.js +176 -0
- package/dist/backup/site/archive-media.d.ts +121 -0
- package/dist/backup/site/archive-media.js +93 -0
- package/dist/backup/site/backup-service.credentials.d.ts +31 -0
- package/dist/backup/site/backup-service.credentials.js +161 -0
- package/dist/backup/site/backup-service.d.ts +331 -0
- package/dist/backup/site/backup-service.js +125 -0
- package/dist/backup/site/backup-service.plan.d.ts +64 -0
- package/dist/backup/site/backup-service.plan.js +207 -0
- package/dist/backup/site/backup-service.push.d.ts +29 -0
- package/dist/backup/site/backup-service.push.js +82 -0
- package/dist/backup/site/backup-service.shared.d.ts +40 -0
- package/dist/backup/site/backup-service.shared.js +37 -0
- package/dist/backup/site/bundled-export-file-policy.d.ts +38 -0
- package/dist/backup/site/bundled-export-file-policy.js +40 -0
- package/dist/backup/site/credential-warnings.d.ts +41 -0
- package/dist/backup/site/credential-warnings.js +50 -0
- package/dist/backup/site/import-backend-steps.d.ts +167 -0
- package/dist/backup/site/import-backend-steps.js +170 -0
- package/dist/backup/site/import-backend.d.ts +167 -0
- package/dist/backup/site/import-backend.js +298 -0
- package/dist/backup/site/import-database.d.ts +118 -0
- package/dist/backup/site/import-database.js +167 -0
- package/dist/backup/site/import-index/admission.d.ts +54 -0
- package/dist/backup/site/import-index/admission.js +46 -0
- package/dist/backup/site/import-index/backfill.d.ts +106 -0
- package/dist/backup/site/import-index/backfill.js +137 -0
- package/dist/backup/site/import-index/errors.d.ts +28 -0
- package/dist/backup/site/import-index/errors.js +38 -0
- package/dist/backup/site/import-index/migrations/checksums.d.ts +4 -0
- package/dist/backup/site/import-index/migrations/checksums.js +4 -0
- package/dist/backup/site/import-index/migrations/site-imports-v1.d.ts +2 -0
- package/dist/backup/site/import-index/migrations/site-imports-v1.js +10 -0
- package/dist/backup/site/import-index/mode.d.ts +191 -0
- package/dist/backup/site/import-index/mode.js +272 -0
- package/dist/backup/site/import-index/open.d.ts +40 -0
- package/dist/backup/site/import-index/open.js +87 -0
- package/dist/backup/site/import-index/paging.d.ts +28 -0
- package/dist/backup/site/import-index/paging.js +66 -0
- package/dist/backup/site/import-index/payload-namespace.d.ts +80 -0
- package/dist/backup/site/import-index/payload-namespace.js +156 -0
- package/dist/backup/site/import-index/rows.d.ts +32 -0
- package/dist/backup/site/import-index/rows.js +61 -0
- package/dist/backup/site/import-index/schema.d.ts +8 -0
- package/dist/backup/site/import-index/schema.js +31 -0
- package/dist/backup/site/import-index/store.d.ts +27 -0
- package/dist/backup/site/import-index/store.js +33 -0
- package/dist/backup/site/import-index/sweep.d.ts +10 -0
- package/dist/backup/site/import-index/sweep.js +26 -0
- package/dist/backup/site/import-keep-off.d.ts +128 -0
- package/dist/backup/site/import-keep-off.js +204 -0
- package/dist/backup/site/import-plugin-state.d.ts +74 -0
- package/dist/backup/site/import-plugin-state.js +67 -0
- package/dist/backup/site/import-registry.d.ts +110 -0
- package/dist/backup/site/import-registry.js +205 -0
- package/dist/backup/site/import-restore-placement.d.ts +94 -0
- package/dist/backup/site/import-restore-placement.js +158 -0
- package/dist/backup/site/import-restore.d.ts +111 -0
- package/dist/backup/site/import-restore.js +120 -0
- package/dist/backup/site/import-verifier-inventory.d.ts +137 -0
- package/dist/backup/site/import-verifier-inventory.js +236 -0
- package/dist/backup/site/import-verifier-projection.d.ts +78 -0
- package/dist/backup/site/import-verifier-projection.js +100 -0
- package/dist/backup/site/import-verifier.d.ts +126 -0
- package/dist/backup/site/import-verifier.js +53 -0
- package/dist/backup/site/owned-temp-root.d.ts +12 -0
- package/dist/backup/site/owned-temp-root.js +2 -0
- package/dist/backup/site/package-file-inventory.d.ts +63 -0
- package/dist/backup/site/package-file-inventory.js +56 -0
- package/dist/backup/site/push-content.d.ts +70 -0
- package/dist/backup/site/push-content.js +56 -0
- package/dist/backup/site/react/ShowMoreImports.d.ts +21 -0
- package/dist/backup/site/react/ShowMoreImports.js +8 -0
- package/dist/backup/site/saved-keys-port.d.ts +47 -0
- package/dist/backup/site/saved-keys-port.js +3 -0
- package/dist/backup/site/saved-keys.d.ts +25 -0
- package/dist/backup/site/saved-keys.js +38 -0
- package/dist/backup/site/share-backend.d.ts +243 -0
- package/dist/backup/site/share-backend.js +284 -0
- package/dist/backup/site/share-database/projection.d.ts +195 -0
- package/dist/backup/site/share-database/projection.js +90 -0
- package/dist/backup/site/share-database/projection.media.d.ts +38 -0
- package/dist/backup/site/share-database/projection.media.js +179 -0
- package/dist/backup/site/share-database/projection.tables.d.ts +46 -0
- package/dist/backup/site/share-database/projection.tables.js +193 -0
- package/dist/backup/site/share-expiry.d.ts +75 -0
- package/dist/backup/site/share-expiry.js +49 -0
- package/dist/backup/site/share-export-failure.d.ts +17 -0
- package/dist/backup/site/share-export-failure.js +16 -0
- package/dist/backup/site/share-file-policy.d.ts +60 -0
- package/dist/backup/site/share-file-policy.js +146 -0
- package/dist/backup/site/share-hosting.d.ts +107 -0
- package/dist/backup/site/share-hosting.js +148 -0
- package/dist/backup/site/share-preparation-steps.d.ts +180 -0
- package/dist/backup/site/share-preparation-steps.js +109 -0
- package/dist/backup/site/share-preparation.d.ts +122 -0
- package/dist/backup/site/share-preparation.js +43 -0
- package/dist/backup/site/share-refusal.d.ts +21 -0
- package/dist/backup/site/share-refusal.js +20 -0
- package/dist/backup/site/share-registry.d.ts +124 -0
- package/dist/backup/site/share-registry.js +219 -0
- package/dist/backup/site/share-retention.d.ts +62 -0
- package/dist/backup/site/share-retention.js +126 -0
- package/dist/backup/site/share-service.d.ts +128 -0
- package/dist/backup/site/share-service.js +194 -0
- package/dist/backup/site/share-zip.d.ts +115 -0
- package/dist/backup/site/share-zip.js +144 -0
- package/dist/backup/site/sources.d.ts +344 -0
- package/dist/backup/site/sources.js +595 -0
- package/dist/backup/site/static-copy.d.ts +122 -0
- package/dist/backup/site/static-copy.js +165 -0
- package/dist/backup/site/static-download-html.d.ts +76 -0
- package/dist/backup/site/static-download-html.js +149 -0
- package/dist/backup/site/static-download-landing.d.ts +52 -0
- package/dist/backup/site/static-download-landing.js +95 -0
- package/dist/backup/site/static-download-layout.d.ts +96 -0
- package/dist/backup/site/static-download-layout.js +325 -0
- package/dist/backup/site/static-export-selection.d.ts +50 -0
- package/dist/backup/site/static-export-selection.js +76 -0
- package/dist/backup/site/static-site-packager.d.ts +42 -0
- package/dist/backup/site/static-site-packager.js +32 -0
- package/dist/backup/site/tool-registrations.d.ts +74 -0
- package/dist/backup/site/tool-registrations.js +201 -0
- package/dist/checks/complexity-debt.d.ts +100 -0
- package/dist/checks/complexity-debt.js +131 -0
- package/dist/checks/coverage/diff.js +5 -1
- package/dist/checks/env-access.d.ts +14 -1
- package/dist/checks/env-access.js +92 -6
- package/dist/checks/live-verify-checks.d.ts +29 -0
- package/dist/checks/live-verify-checks.js +30 -0
- package/dist/checks/quality-gates.d.ts +137 -0
- package/dist/checks/quality-gates.js +209 -0
- package/dist/core/deploy-types.d.ts +2 -0
- package/dist/deploy/admin-http/site-update-status.d.ts +8 -0
- package/dist/deploy/admin-http/site-update-status.js +15 -0
- package/dist/deploy/host-kit.d.ts +3 -0
- package/dist/deploy/index.d.ts +6 -0
- package/dist/deploy/index.js +6 -0
- package/dist/deploy/ops-runner.js +7 -0
- package/dist/deploy/ops-tool-contracts.d.ts +10 -1
- package/dist/deploy/react/Deployment.d.ts +37 -0
- package/dist/deploy/react/Deployment.js +94 -0
- package/dist/deploy/react/DockerfileTab.d.ts +72 -0
- package/dist/deploy/react/DockerfileTab.js +131 -0
- package/dist/deploy/react/HistoryTab.d.ts +43 -0
- package/dist/deploy/react/HistoryTab.js +12 -0
- package/dist/deploy/react/OverviewTab.d.ts +60 -0
- package/dist/deploy/react/OverviewTab.js +75 -0
- package/dist/deploy/react/PublishRunResult.d.ts +5 -1
- package/dist/deploy/react/PublishRunResult.js +4 -4
- package/dist/deploy/react/SiteUpdateNotice.d.ts +22 -0
- package/dist/deploy/react/SiteUpdateNotice.js +25 -0
- package/dist/deploy/react/StaticCredentialFields.d.ts +36 -0
- package/dist/deploy/react/StaticCredentialFields.js +63 -0
- package/dist/deploy/react/StaticCredentialSteps.d.ts +23 -0
- package/dist/deploy/react/StaticCredentialSteps.js +155 -0
- package/dist/deploy/react/StaticExportCard.d.ts +11 -0
- package/dist/deploy/react/StaticExportCard.js +97 -0
- package/dist/deploy/react/StaticPublishCredentials.d.ts +50 -0
- package/dist/deploy/react/StaticPublishCredentials.js +77 -0
- package/dist/deploy/react/StaticPublishForm.d.ts +12 -0
- package/dist/deploy/react/StaticPublishForm.js +91 -0
- package/dist/deploy/react/StaticSiteTab.d.ts +207 -0
- package/dist/deploy/react/StaticSiteTab.js +117 -0
- package/dist/deploy/react/deployment-visuals.d.ts +207 -0
- package/dist/deploy/react/deployment-visuals.js +101 -0
- package/dist/deploy/react/download-dockerfile.d.ts +14 -0
- package/dist/deploy/react/download-dockerfile.js +15 -0
- package/dist/deploy/react/hooks/publish-credential-draft.d.ts +33 -0
- package/dist/deploy/react/hooks/publish-credential-draft.js +54 -0
- package/dist/deploy/react/hooks/publish-credential-selection.d.ts +13 -0
- package/dist/deploy/react/hooks/publish-credential-selection.js +34 -0
- package/dist/deploy/react/hooks/publish-credential-writes.d.ts +20 -0
- package/dist/deploy/react/hooks/publish-credential-writes.js +99 -0
- package/dist/deploy/react/hooks/static-publish-actions.d.ts +10 -0
- package/dist/deploy/react/hooks/static-publish-actions.js +62 -0
- package/dist/deploy/react/hooks/static-publish-form.hooks.d.ts +38 -0
- package/dist/deploy/react/hooks/static-publish-form.hooks.js +103 -0
- package/dist/deploy/react/hooks/static-publish-run.hooks.d.ts +28 -0
- package/dist/deploy/react/hooks/static-publish-run.hooks.js +92 -0
- package/dist/deploy/react/hooks/use-dockerfile-source.hooks.d.ts +148 -0
- package/dist/deploy/react/hooks/use-dockerfile-source.hooks.js +155 -0
- package/dist/deploy/react/hooks/use-publish-credentials.hooks.d.ts +268 -0
- package/dist/deploy/react/hooks/use-publish-credentials.hooks.js +52 -0
- package/dist/deploy/react/hooks/use-static-export.hooks.d.ts +128 -0
- package/dist/deploy/react/hooks/use-static-export.hooks.js +159 -0
- package/dist/deploy/react/hooks/use-static-publish.hooks.d.ts +208 -0
- package/dist/deploy/react/hooks/use-static-publish.hooks.js +48 -0
- package/dist/deploy/react/index.d.ts +4 -0
- package/dist/deploy/react/index.js +2 -0
- package/dist/deploy/react/rules.d.ts +363 -0
- package/dist/deploy/react/rules.js +314 -0
- package/dist/deploy/react/use-deployment-overview.hooks.d.ts +41 -0
- package/dist/deploy/react/use-deployment-overview.hooks.js +11 -0
- package/dist/deploy/site/agent-tools.d.ts +42 -0
- package/dist/deploy/site/agent-tools.js +119 -0
- package/dist/deploy/site/deploy-config-registry.d.ts +155 -0
- package/dist/deploy/site/deploy-config-registry.js +124 -0
- package/dist/deploy/site/deploy-config.d.ts +97 -0
- package/dist/deploy/site/deploy-config.js +115 -0
- package/dist/deploy/site/deploy-ops/agent-tools.d.ts +22 -0
- package/dist/deploy/site/deploy-ops/agent-tools.js +76 -0
- package/dist/deploy/site/deploy-ops/registry.d.ts +134 -0
- package/dist/deploy/site/deploy-ops/registry.js +106 -0
- package/dist/deploy/site/deploy-ops/run-ops.d.ts +66 -0
- package/dist/deploy/site/deploy-ops/run-ops.js +34 -0
- package/dist/deploy/site/deploy-ops/secret-confirm.d.ts +36 -0
- package/dist/deploy/site/deploy-ops/secret-confirm.js +27 -0
- package/dist/deploy/site/deploy-targets/host-kit.d.ts +28 -0
- package/dist/deploy/site/deploy-targets/host-kit.js +120 -0
- package/dist/deploy/site/deploy-targets/registry.d.ts +157 -0
- package/dist/deploy/site/deploy-targets/registry.js +132 -0
- package/dist/deploy/site/deploy-targets/types.d.ts +27 -0
- package/dist/deploy/site/deploy-targets/types.js +2 -0
- package/dist/deploy/site/dockerfile.d.ts +137 -0
- package/dist/deploy/site/dockerfile.js +101 -0
- package/dist/deploy/site/export-run.d.ts +137 -0
- package/dist/deploy/site/export-run.js +152 -0
- package/dist/deploy/site/ports.d.ts +115 -0
- package/dist/deploy/site/ports.js +2 -0
- package/dist/deploy/site/publish-agent-tools.d.ts +18 -0
- package/dist/deploy/site/publish-agent-tools.js +120 -0
- package/dist/deploy/site/publish-candidate.d.ts +26 -0
- package/dist/deploy/site/publish-candidate.js +37 -0
- package/dist/deploy/site/publish-credentials/account-label-heal-scheduler.d.ts +78 -0
- package/dist/deploy/site/publish-credentials/account-label-heal-scheduler.js +88 -0
- package/dist/deploy/site/publish-credentials/compatibility-port.d.ts +38 -0
- package/dist/deploy/site/publish-credentials/compatibility-port.js +19 -0
- package/dist/deploy/site/publish-credentials/execution-mode.d.ts +43 -0
- package/dist/deploy/site/publish-credentials/execution-mode.js +19 -0
- package/dist/deploy/site/publish-credentials/store-owner.d.ts +11 -0
- package/dist/deploy/site/publish-credentials/store-owner.js +9 -0
- package/dist/deploy/site/publish-credentials/store-resolution.d.ts +55 -0
- package/dist/deploy/site/publish-credentials/store-resolution.js +100 -0
- package/dist/deploy/site/publish-credentials/store-validation.d.ts +68 -0
- package/dist/deploy/site/publish-credentials/store-validation.js +182 -0
- package/dist/deploy/site/publish-credentials/store.d.ts +322 -0
- package/dist/deploy/site/publish-credentials/store.js +372 -0
- package/dist/deploy/site/publish-credentials/types.d.ts +85 -0
- package/dist/deploy/site/publish-credentials/types.js +2 -0
- package/dist/deploy/site/publish-tool-capabilities.d.ts +123 -0
- package/dist/deploy/site/publish-tool-capabilities.js +175 -0
- package/dist/deploy/site/publish-tool-credential.d.ts +48 -0
- package/dist/deploy/site/publish-tool-credential.js +284 -0
- package/dist/deploy/site/publish-tool-deps.d.ts +205 -0
- package/dist/deploy/site/publish-tool-deps.js +15 -0
- package/dist/deploy/site/publish-tool-execution.d.ts +78 -0
- package/dist/deploy/site/publish-tool-execution.js +313 -0
- package/dist/deploy/site/publish-tool-schema.d.ts +29 -0
- package/dist/deploy/site/publish-tool-schema.js +38 -0
- package/dist/deploy/site/static-publish/adapter-export.d.ts +54 -0
- package/dist/deploy/site/static-publish/adapter-export.js +89 -0
- package/dist/deploy/site/static-publish/adapter-plan.d.ts +99 -0
- package/dist/deploy/site/static-publish/adapter-plan.js +112 -0
- package/dist/deploy/site/static-publish/adapter.d.ts +182 -0
- package/dist/deploy/site/static-publish/adapter.js +321 -0
- package/dist/deploy/site/static-publish/admin-publish-read.d.ts +209 -0
- package/dist/deploy/site/static-publish/admin-publish-read.js +116 -0
- package/dist/deploy/site/static-publish/credentials.d.ts +110 -0
- package/dist/deploy/site/static-publish/credentials.js +290 -0
- package/dist/deploy/site/static-publish/domain-publish-rows.d.ts +25 -0
- package/dist/deploy/site/static-publish/domain-publish-rows.js +43 -0
- package/dist/deploy/site/static-publish/domain-publish-tool.d.ts +19 -0
- package/dist/deploy/site/static-publish/domain-publish-tool.js +111 -0
- package/dist/deploy/site/static-publish/inspection.d.ts +24 -0
- package/dist/deploy/site/static-publish/inspection.js +69 -0
- package/dist/deploy/site/static-publish/publish-history.d.ts +197 -0
- package/dist/deploy/site/static-publish/publish-history.js +153 -0
- package/dist/deploy/site/static-publish/publish-run.d.ts +156 -0
- package/dist/deploy/site/static-publish/publish-run.js +186 -0
- package/dist/deploy/site/static-publish/types.d.ts +165 -0
- package/dist/deploy/site/static-publish/types.js +2 -0
- package/dist/deploy/site/static-publish/verify.d.ts +217 -0
- package/dist/deploy/site/static-publish/verify.js +248 -0
- package/dist/deploy/site/tool-registrations.d.ts +97 -0
- package/dist/deploy/site/tool-registrations.js +130 -0
- package/dist/deploy/site/types.d.ts +51 -0
- package/dist/deploy/site/types.js +2 -0
- package/dist/deploy/site-update/check-for-update.d.ts +19 -0
- package/dist/deploy/site-update/check-for-update.js +19 -0
- package/dist/deploy/site-update/contracts.d.ts +161 -0
- package/dist/deploy/site-update/contracts.js +94 -0
- package/dist/deploy/site-update/desktop-site-update.d.ts +66 -0
- package/dist/deploy/site-update/desktop-site-update.js +43 -0
- package/dist/deploy/site-update/fake-site-update.d.ts +39 -0
- package/dist/deploy/site-update/fake-site-update.js +52 -0
- package/dist/deploy/site-update/run-site-update.d.ts +121 -0
- package/dist/deploy/site-update/run-site-update.js +219 -0
- package/dist/deploy/site-update/self-hosted-site-update.d.ts +71 -0
- package/dist/deploy/site-update/self-hosted-site-update.js +79 -0
- package/dist/deploy/target-contracts.d.ts +3 -0
- package/dist/deploy/tool.d.ts +5 -8
- package/dist/deploy/tool.js +6 -9
- package/dist/dns/binding-sweeper.d.ts +72 -0
- package/dist/dns/binding-sweeper.js +53 -0
- package/dist/dns/index.d.ts +1 -0
- package/dist/dns/index.js +1 -0
- package/dist/dns/site/binding.repo.d.ts +71 -0
- package/dist/dns/site/binding.repo.js +45 -0
- package/dist/dns/site/dns-changes.d.ts +90 -0
- package/dist/dns/site/dns-changes.js +271 -0
- package/dist/dns/site/dns-tools.d.ts +46 -0
- package/dist/dns/site/dns-tools.js +204 -0
- package/dist/dns/site/mail-dns-status.d.ts +111 -0
- package/dist/dns/site/mail-dns-status.js +190 -0
- package/dist/dns/site/mail-dns-tools.d.ts +33 -0
- package/dist/dns/site/mail-dns-tools.js +62 -0
- package/dist/dns/site/mail-requirements.d.ts +30 -0
- package/dist/dns/site/mail-requirements.js +78 -0
- package/dist/dns/site/tool-deps.d.ts +21 -0
- package/dist/dns/site/tool-deps.js +2 -0
- package/dist/dns/site/tools.d.ts +74 -0
- package/dist/dns/site/tools.js +124 -0
- package/dist/local-dev/bind-host.d.ts +80 -0
- package/dist/local-dev/bind-host.js +90 -0
- package/dist/local-dev/dev-proxy-upstream.d.ts +69 -0
- package/dist/local-dev/dev-proxy-upstream.js +63 -0
- package/dist/local-dev/index.d.ts +28 -0
- package/dist/local-dev/index.js +25 -0
- package/dist/packaging/electron/archive.d.ts +2 -9
- package/dist/packaging/electron/asar-adapter.d.ts +2 -1
- package/dist/packaging/electron/entry.d.ts +2 -0
- package/dist/packaging/electron/move-to-applications.d.ts +165 -0
- package/dist/packaging/electron/move-to-applications.js +162 -0
- package/dist/packaging/electron/policies.d.ts +33 -4
- package/dist/packaging/electron/policies.js +29 -10
- package/dist/packaging/electron/ports.d.ts +1 -6
- package/dist/packaging/electron/staging.d.ts +11 -2
- package/dist/packaging/electron/staging.js +15 -5
- package/dist/react/site-share-expiry/ShareExpiryControls.d.ts +29 -0
- package/dist/react/site-share-expiry/ShareExpiryControls.js +7 -0
- package/dist/react/site-share-expiry/index.d.ts +2 -0
- package/dist/react/site-share-expiry/index.js +2 -0
- package/dist/source-control/react/ProvidersTab.d.ts +98 -0
- package/dist/source-control/react/ProvidersTab.js +195 -0
- package/dist/source-control/react/SourceControl.d.ts +51 -0
- package/dist/source-control/react/SourceControl.js +61 -0
- package/dist/source-control/react/hooks/use-source-control-credentials.hooks.d.ts +128 -0
- package/dist/source-control/react/hooks/use-source-control-credentials.hooks.js +102 -0
- package/dist/source-control/react/rules.d.ts +167 -0
- package/dist/source-control/react/rules.js +125 -0
- package/dist/source-control/react/source-control-visuals.d.ts +75 -0
- package/dist/source-control/react/source-control-visuals.js +48 -0
- package/dist/source-control/site/agent-tools.d.ts +5 -0
- package/dist/source-control/site/agent-tools.js +30 -0
- package/dist/source-control/site/bundled-provider-registry.d.ts +33 -0
- package/dist/source-control/site/bundled-provider-registry.js +37 -0
- package/dist/source-control/site/commit-schema.d.ts +40 -0
- package/dist/source-control/site/commit-schema.js +29 -0
- package/dist/source-control/site/commit-target.d.ts +26 -0
- package/dist/source-control/site/commit-target.js +58 -0
- package/dist/source-control/site/credential-form.d.ts +36 -0
- package/dist/source-control/site/credential-form.js +102 -0
- package/dist/source-control/site/credential-setup.d.ts +107 -0
- package/dist/source-control/site/credential-setup.js +216 -0
- package/dist/source-control/site/provider-kit.d.ts +37 -0
- package/dist/source-control/site/provider-kit.js +35 -0
- package/dist/source-control/site/provider-module.d.ts +251 -0
- package/dist/source-control/site/provider-module.js +2 -0
- package/dist/source-control/site/saved-key-bindings.d.ts +4 -0
- package/dist/source-control/site/saved-key-bindings.js +4 -0
- package/dist/source-control/site/static-site-packager-port.d.ts +37 -0
- package/dist/source-control/site/static-site-packager-port.js +2 -0
- package/dist/source-control/site/store.d.ts +209 -0
- package/dist/source-control/site/store.js +374 -0
- package/dist/source-control/site/store.validation.d.ts +72 -0
- package/dist/source-control/site/store.validation.js +168 -0
- package/dist/source-control/site/tool-registrations.d.ts +190 -0
- package/dist/source-control/site/tool-registrations.js +379 -0
- package/dist/static-export/site/export-preflight.d.ts +48 -0
- package/dist/static-export/site/export-preflight.js +82 -0
- package/dist/static-export/site/media-original-urls.d.ts +57 -0
- package/dist/static-export/site/media-original-urls.js +109 -0
- package/dist/static-export/site/ports.d.ts +82 -0
- package/dist/static-export/site/ports.js +29 -0
- package/dist/static-export/site/public-origin-policy.d.ts +32 -0
- package/dist/static-export/site/public-origin-policy.js +68 -0
- package/dist/static-export/site/route-manifest.d.ts +65 -0
- package/dist/static-export/site/route-manifest.js +139 -0
- package/dist/static-export/site/site-exporter.d.ts +158 -0
- package/dist/static-export/site/site-exporter.js +112 -0
- package/dist/static-export/site/static-security-headers.d.ts +39 -0
- package/dist/static-export/site/static-security-headers.js +43 -0
- package/dist/static-export/site/theme-preview-manifest.d.ts +35 -0
- package/dist/static-export/site/theme-preview-manifest.js +28 -0
- package/package.json +912 -8
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
import { randomUUID } from "node:crypto";
|
|
2
|
+
import { SiteShareExportFailure } from "./share-export-failure.js";
|
|
3
|
+
import { SiteBackupPushJobs } from "../push-jobs.js";
|
|
4
|
+
import { isShareExpired, isShareExpiryChoice, shareExpiresAt } from "./share-expiry.js";
|
|
5
|
+
import { SAVED_KEYS_PATH } from "./saved-keys-port.js";
|
|
6
|
+
import { SiteShareRefusal } from "./share-refusal.js";
|
|
7
|
+
const DOMAINLESS_DISCOVERY_NOTICE = "No domain was given, so sitemap.xml and feed.xml were left out.";
|
|
8
|
+
/** Keep closed refusals' class/status contracts; wrap only unexpected export exceptions. */
|
|
9
|
+
function exportFailure({ cause, step, appVersion, jiniVersion, time, host }, _options = {}) {
|
|
10
|
+
if (cause instanceof SiteShareRefusal || host.isClosedFailure({ cause }))
|
|
11
|
+
return cause;
|
|
12
|
+
return new SiteShareExportFailure({ step, cause, time, ...(appVersion ? { appVersion } : {}), ...(jiniVersion ? { jiniVersion } : {}) });
|
|
13
|
+
}
|
|
14
|
+
/** Run one export lifecycle, preserving stage evidence and releasing the site lane on every exit.
|
|
15
|
+
* Metadata is read at the failure boundary so it includes the stage and prepared app version.
|
|
16
|
+
* @throws Closed share refusals unchanged, otherwise SiteShareExportFailure with the original cause.
|
|
17
|
+
* @complexity The supplied bounded export plus O(1) stage metadata; no additional I/O.
|
|
18
|
+
*/
|
|
19
|
+
async function runExportStage({ execute, diagnostic, release }, _options = {}) {
|
|
20
|
+
try {
|
|
21
|
+
return await execute();
|
|
22
|
+
}
|
|
23
|
+
catch (cause) {
|
|
24
|
+
// Preserve closed refusals and their status/recovery contracts for both HTTP and tools.
|
|
25
|
+
throw exportFailure({ cause, ...diagnostic() });
|
|
26
|
+
}
|
|
27
|
+
finally {
|
|
28
|
+
release();
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
/** Locators/tokens stay in the private registry. The authorized caller receives the verified URL. */
|
|
32
|
+
function view(row, host) {
|
|
33
|
+
const { token: _token, storage: _storage, sealedPassword: _sealedPassword, ...publicFields } = row;
|
|
34
|
+
return { ...publicFields, credentialWarnings: row.credentialWarnings ?? [], needsAcknowledgement: row.needsAcknowledgement ?? false, downloadUrl: host.downloadUrl({ site: row.site, shareId: row.shareId }) };
|
|
35
|
+
}
|
|
36
|
+
/** What a create caller sees for one wait: the finished share, a cancellation, or in-flight progress. */
|
|
37
|
+
function createOutcome(required, _options = {}) {
|
|
38
|
+
const { waited, host } = required;
|
|
39
|
+
if (waited.state === "done") {
|
|
40
|
+
if (required.format === "static")
|
|
41
|
+
return { ...view(waited.result, host), message: (waited.result.notices?.includes(DOMAINLESS_DISCOVERY_NOTICE) ? DOMAINLESS_DISCOVERY_NOTICE + " " : "") + "Extract the ZIP, then open index.html inside the extracted folder in your browser; it lists every exported theme and page. No local server is needed to view the exported pages. README.txt lists features that need a server." };
|
|
42
|
+
return { ...view(waited.result, host), ...(waited.result.url ? {} : { message: host.zipOnlyMessage }) };
|
|
43
|
+
}
|
|
44
|
+
if (waited.state === "abandoned")
|
|
45
|
+
throw new SiteShareRefusal({ code: "CANCELLED", message: "Share export was cancelled." });
|
|
46
|
+
return { jobId: required.jobId, phase: waited.progress.filesTotal ? "archive-or-upload" : "preparing", progress: waited.progress };
|
|
47
|
+
}
|
|
48
|
+
/** Use the same full-roster allocation for options and the archive, including deselected aliases.
|
|
49
|
+
* With the theme off, offer only the current unstyled site.
|
|
50
|
+
*/
|
|
51
|
+
function staticRoster({ ports, context, host }, _options = {}) {
|
|
52
|
+
const activeThemeId = context.themeId ?? context.theme;
|
|
53
|
+
const roster = activeThemeId === host.noThemeId ? [{ themeId: host.noThemeId, title: context.theme }]
|
|
54
|
+
: ports.themes?.().map(theme => ({ ...theme })) ?? [{ themeId: activeThemeId, title: context.theme }];
|
|
55
|
+
return { activeThemeId, roster, themes: host.allocateStaticExportThemes({ themeIds: roster.map(theme => theme.themeId), siteSlug: context.slug }) };
|
|
56
|
+
}
|
|
57
|
+
/** Release repeated public-media buffers before the next render, using the layout's URL identity.
|
|
58
|
+
* Mutates job-owned file entries so each capture retains the first media bytes, just as packaging does.
|
|
59
|
+
* @throws SiteShareRefusal as soon as retained unique files/bytes exceed the existing share caps.
|
|
60
|
+
* @complexity O(files × retained files) for the existing limit policy, bounded to 2,000 unique files.
|
|
61
|
+
*/
|
|
62
|
+
function retainStaticCapture({ copy, media, sizes, host }, _options = {}) {
|
|
63
|
+
for (const file of copy.files) {
|
|
64
|
+
const shared = file.path.startsWith("m/");
|
|
65
|
+
const existing = shared ? media.get(file.path) : undefined;
|
|
66
|
+
if (existing) {
|
|
67
|
+
file.content = existing;
|
|
68
|
+
continue;
|
|
69
|
+
}
|
|
70
|
+
sizes.push({ path: file.path, bytes: file.content.length });
|
|
71
|
+
host.checkShareLimits({ files: sizes });
|
|
72
|
+
if (shared)
|
|
73
|
+
media.set(file.path, file.content);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
/** Snapshot selection/active identity/time once; isolate and clean each sequential capture.
|
|
77
|
+
* @throws SiteShareRefusal for unknown selections or any unusable selected capture.
|
|
78
|
+
* @complexity O(selected export bytes + retained files² + roster sorting); sequential under the job deadline.
|
|
79
|
+
*/
|
|
80
|
+
async function captureSelection({ ports, themeIds, signal, publicUrl, host }, _options = {}) {
|
|
81
|
+
const context = await ports.context(), instant = ports.now();
|
|
82
|
+
const { roster, themes, activeThemeId } = staticRoster({ ports, context, host });
|
|
83
|
+
const selected = themeIds ?? [activeThemeId];
|
|
84
|
+
const installed = new Map(roster.map(theme => [theme.themeId, theme]));
|
|
85
|
+
if (selected.some(id => !installed.has(id)))
|
|
86
|
+
throw new SiteShareRefusal({ code: "INVALID_INPUT", message: "Every selected theme must be installed and valid." });
|
|
87
|
+
const copies = [];
|
|
88
|
+
const media = new Map(), sizes = [];
|
|
89
|
+
for (const themeId of selected) {
|
|
90
|
+
signal.throwIfAborted();
|
|
91
|
+
const theme = installed.get(themeId);
|
|
92
|
+
if (theme === undefined)
|
|
93
|
+
throw new SiteShareRefusal({ code: "INVALID_INPUT", message: `Selected theme '${themeId}' is not installed.` });
|
|
94
|
+
const copy = await host.captureStaticSite({ ...ports, now: () => instant, context: async () => ({ ...context, themeId, theme: theme.title }) }, { themeId, publicUrl });
|
|
95
|
+
if ("reason" in copy)
|
|
96
|
+
throw new SiteShareRefusal({ code: "UNAVAILABLE", message: `${themeId}: ${copy.reason}` });
|
|
97
|
+
retainStaticCapture({ copy, media, sizes, host });
|
|
98
|
+
copies.push(copy);
|
|
99
|
+
}
|
|
100
|
+
signal.throwIfAborted();
|
|
101
|
+
const copy = copies[0];
|
|
102
|
+
if (copy === undefined)
|
|
103
|
+
throw new SiteShareRefusal({ code: "INVALID_INPUT", message: "Select at least one theme to share." });
|
|
104
|
+
return { copy, copies, activeThemeId, themes };
|
|
105
|
+
}
|
|
106
|
+
/** Retired option fails closed for internal callers as well as HTTP. */
|
|
107
|
+
/** Retired payloads cannot be published even if a stale preparation adapter returns one. */
|
|
108
|
+
function requireCredentialFreeExport({ content }) {
|
|
109
|
+
const hasKeyFile = content.bufferedFiles?.some(file => file.path === SAVED_KEYS_PATH);
|
|
110
|
+
if (content.encryptedKeys || content.sealedPassword || hasKeyFile)
|
|
111
|
+
throw new SiteShareRefusal({ code: "INVALID_INPUT", message: "Exports no longer include saved keys. Update the export adapter and create this export again." });
|
|
112
|
+
}
|
|
113
|
+
function requireNoShareCredentialWarnings({ credentialWarnings }) {
|
|
114
|
+
if (credentialWarnings.length > 0)
|
|
115
|
+
throw new SiteShareRefusal({ code: "UNSAFE_FILE", message: "The export contains files with possible credentials. Remove the credentials and export again." });
|
|
116
|
+
}
|
|
117
|
+
/** The static-site flavour of an export: capture the selected themes, archive and deliver them. */
|
|
118
|
+
async function exportStaticShare({ ctx, input, bounded, stage }) {
|
|
119
|
+
const { required } = ctx, { host } = required;
|
|
120
|
+
if (!required.staticSite)
|
|
121
|
+
throw new SiteShareRefusal({ code: "UNAVAILABLE", message: "Static exporter is unavailable in this context." });
|
|
122
|
+
const selection = await captureSelection({ ports: required.staticSite, themeIds: input.themeIds, publicUrl: input.publicUrl, signal: bounded, host });
|
|
123
|
+
const { copy } = selection;
|
|
124
|
+
const notices = copy.publicOrigin ? [] : [DOMAINLESS_DISCOVERY_NOTICE];
|
|
125
|
+
const credentialWarnings = [];
|
|
126
|
+
stage.step = "archive";
|
|
127
|
+
const archive = await host.buildStaticSiteZip({ ...selection, zip: required.zip }, { signal: bounded, progress: input.progress, notices, credentialWarnings });
|
|
128
|
+
stage.step = "delivery";
|
|
129
|
+
return await host.createSiteShare({ registry: required.registry, site: required.site, name: copy.filename, archive }, { signal: bounded, filename: copy.filename, expiresAt: input.expiresAt, notices, credentialWarnings });
|
|
130
|
+
}
|
|
131
|
+
/** The full-backup flavour of an export: prepare the content, archive and deliver it. */
|
|
132
|
+
async function exportBackupShare({ ctx, input, bounded, stage }) {
|
|
133
|
+
const { required } = ctx, { host } = required;
|
|
134
|
+
const { progress } = input;
|
|
135
|
+
const identity = host.newShareIdentity({});
|
|
136
|
+
const content = await required.prepare({ signal: bounded, shareId: identity.shareId, workspaceId: required.site });
|
|
137
|
+
stage.appVersion = host.appVersionOf({ content });
|
|
138
|
+
requireCredentialFreeExport({ content });
|
|
139
|
+
const notices = [...new Set(content.notices ?? [])];
|
|
140
|
+
const credentialWarnings = [...(content.credentialWarnings ?? [])];
|
|
141
|
+
const notes = Object.values(content.scopeNotes).map(note => host.redact({ text: note }).text);
|
|
142
|
+
// Progress's readonly totals describe the prepared backup; the ZIP collector records its exact files.
|
|
143
|
+
Object.assign(progress, { filesTotal: content.files.length + (content.bufferedFiles?.length ?? 0) + 1, bytesTotal: content.totalBytes });
|
|
144
|
+
stage.step = "archive";
|
|
145
|
+
const archive = await host.buildShareZip({ plan: content, zip: required.zip }, { signal: bounded, progress, notices, credentialWarnings });
|
|
146
|
+
stage.step = "delivery";
|
|
147
|
+
const delivery = await required.delivery({});
|
|
148
|
+
bounded.throwIfAborted();
|
|
149
|
+
if (delivery)
|
|
150
|
+
requireNoShareCredentialWarnings({ credentialWarnings });
|
|
151
|
+
const record = await host.createSiteShare({ registry: required.registry, site: required.site, name: content.site.folderName, archive }, { delivery, expiresAt: input.expiresAt, signal: bounded, identity, sealedPassword: content.sealedPassword, notices, notes, credentialWarnings });
|
|
152
|
+
// Plugins left out of the archive are told to the exporter, never dropped silently.
|
|
153
|
+
return notes.length > 0 ? { ...record, notes } : record;
|
|
154
|
+
}
|
|
155
|
+
/** Prepares, archives and delivers one share under a ten-minute bound; always frees the site's lane. */
|
|
156
|
+
async function exportShare({ ctx, input }, _options = {}) {
|
|
157
|
+
const stage = { step: "prepare", appVersion: ctx.boundaryVersion };
|
|
158
|
+
return runExportStage({ execute: async () => {
|
|
159
|
+
const bounded = AbortSignal.any([input.signal, AbortSignal.timeout(10 * 60 * 1000)]);
|
|
160
|
+
return input.format === "static" ? exportStaticShare({ ctx, input, bounded, stage }) : exportBackupShare({ ctx, input, bounded, stage });
|
|
161
|
+
}, diagnostic: () => ({ ...stage, jiniVersion: ctx.jiniVersion, time: new Date(ctx.now()).toISOString(), host: ctx.required.host }), release: () => { ctx.lane.active = null; } });
|
|
162
|
+
}
|
|
163
|
+
/** Starts a new export job, refusing a resume of an unknown job and a second export on this site. */
|
|
164
|
+
function startExport({ ctx, startRequired }, _options = {}) {
|
|
165
|
+
const { key } = startRequired;
|
|
166
|
+
if (startRequired.resumedJobId)
|
|
167
|
+
throw new SiteShareRefusal({ code: "JOB_NOT_FOUND", message: "Share job expired or belongs to another principal. Create a new export." });
|
|
168
|
+
if (ctx.lane.active)
|
|
169
|
+
throw new SiteShareRefusal({ code: "BUSY", message: "Another share export is running for this site. Wait for it to finish." });
|
|
170
|
+
ctx.lane.active = key.planId;
|
|
171
|
+
return ctx.jobs.start({ key, progress: { filesDone: 0, filesTotal: 0, bytesDone: 0, bytesTotal: 0 }, run: ({ signal, progress }) => exportShare({ ctx, input: { signal, progress, expiresAt: startRequired.expiresAt, format: startRequired.format, themeIds: startRequired.themeIds, publicUrl: startRequired.publicUrl, includeSavedKeys: startRequired.includeSavedKeys } }) });
|
|
172
|
+
}
|
|
173
|
+
async function staticShareOptions({ ctx }, _options = {}) {
|
|
174
|
+
const { required } = ctx, { host } = required;
|
|
175
|
+
if (!required.staticSite)
|
|
176
|
+
throw new SiteShareRefusal({ code: "UNAVAILABLE", message: "Static exporter is unavailable in this context." });
|
|
177
|
+
const { activeThemeId, roster } = staticRoster({ ports: required.staticSite, context: await required.staticSite.context(), host });
|
|
178
|
+
return { activeThemeId, themes: activeThemeId === host.noThemeId ? [{ themeId: host.noThemeId, name: "Current site" }]
|
|
179
|
+
: roster.map(theme => ({ themeId: theme.themeId, name: theme.title })) };
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* The new export's `expiresAt`, validated before any job starts so an unsupported choice or a
|
|
183
|
+
* destination this server does not host is refused up front, never silently made Never. The
|
|
184
|
+
* destination is resolved only for a supported date: a static export has none (no own-folder row).
|
|
185
|
+
*/
|
|
186
|
+
async function newShareExpiry({ ctx, input }, _optional = {}) {
|
|
187
|
+
const { host } = ctx.required;
|
|
188
|
+
const days = input.expiresInDays ?? null;
|
|
189
|
+
const destination = isShareExpiryChoice({ days, choices: host.expiry.choices }) && input.format !== "static" ? await ctx.required.delivery({}) : undefined;
|
|
190
|
+
return shareExpiresAt({ days, now: ctx.now(), destination, expiry: host.expiry, ownFolderProvider: host.ownFolderProvider, isOwnFolder: own => host.isOwnShareFolder(own) });
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* The day choices the admin may offer for the next export: all of them while new exports land in this
|
|
194
|
+
* server's own share folder (the only place a date is enforced), none otherwise. A failed destination
|
|
195
|
+
* lookup answers none instead of failing: Never is accepted everywhere, and create still resolves the
|
|
196
|
+
* destination itself and refuses a date in plain words. @complexity One delivery lookup.
|
|
197
|
+
*/
|
|
198
|
+
async function currentExpiryChoices({ ctx }, _optional = {}) {
|
|
199
|
+
let destination;
|
|
200
|
+
try {
|
|
201
|
+
destination = await ctx.required.delivery({});
|
|
202
|
+
}
|
|
203
|
+
catch {
|
|
204
|
+
return [];
|
|
205
|
+
}
|
|
206
|
+
return destination && ctx.required.host.isOwnShareFolder({ storage: destination }) ? ctx.required.host.expiry.choices : [];
|
|
207
|
+
}
|
|
208
|
+
async function createShare({ ctx, input, options }, _optional = {}) {
|
|
209
|
+
const { required, jobs } = ctx;
|
|
210
|
+
input.signal.throwIfAborted();
|
|
211
|
+
const selection = input.format === "static" ? required.host.parseStaticExportInput({ input: { jobId: input.jobId, themeIds: input.themeIds, publicUrl: input.publicUrl } }) : {};
|
|
212
|
+
const jobId = input.jobId ?? randomUUID();
|
|
213
|
+
const key = { planId: jobId, principalId: input.principalId, workspaceId: required.site + (input.format === "static" ? "/static" : "") };
|
|
214
|
+
const job = jobs.find(key) ?? startExport({ ctx, startRequired: { key, resumedJobId: input.jobId, expiresAt: await newShareExpiry({ ctx, input }), format: input.format, themeIds: selection.themeIds, publicUrl: selection.publicUrl, includeSavedKeys: input.includeSavedKeys } });
|
|
215
|
+
const waited = await jobs.wait({ job, signal: input.signal, budgetMs: options.waitMs ?? 1500 });
|
|
216
|
+
const outcome = waited.state === "done" ? { ...waited, result: await required.registry.get({ site: required.site, shareId: waited.result.shareId }) ?? waited.result } : waited;
|
|
217
|
+
return createOutcome({ waited: outcome, jobId, format: input.format, host: required.host });
|
|
218
|
+
}
|
|
219
|
+
async function acknowledgeShare({ ctx, shareId }, _optional = {}) {
|
|
220
|
+
const { required, lane } = ctx;
|
|
221
|
+
if (lane.active)
|
|
222
|
+
throw new SiteShareRefusal({ code: "BUSY", message: "Export acknowledgement is waiting for another export or delivery. Retry when it finishes." });
|
|
223
|
+
lane.active = shareId;
|
|
224
|
+
try {
|
|
225
|
+
const row = await required.registry.get({ site: required.site, shareId });
|
|
226
|
+
if (!row || row.status === "revoked")
|
|
227
|
+
throw new SiteShareRefusal({ code: "NOT_FOUND", message: "This export is missing or was revoked." });
|
|
228
|
+
if (row.status === "expired")
|
|
229
|
+
throw new SiteShareRefusal({ code: "EXPIRED", message: required.host.expiry.expiredMessage({ row }) });
|
|
230
|
+
const delivery = row.needsAcknowledgement && row.storage && !row.credentialWarnings?.length ? await required.delivery({ provider: row.storage.provider, binding: row.storage.binding }) : undefined;
|
|
231
|
+
return view(await required.host.acknowledgeSiteShare({ registry: required.registry, site: required.site, shareId }, { delivery }), required.host);
|
|
232
|
+
}
|
|
233
|
+
finally {
|
|
234
|
+
lane.active = null;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
async function revealSharePassword({ ctx, input }, _optional = {}) {
|
|
238
|
+
const { required } = ctx;
|
|
239
|
+
if (input.principalId !== await required.ownerPrincipalId)
|
|
240
|
+
throw new SiteShareRefusal({ code: "FORBIDDEN", message: "Only the site owner can reveal an export password." });
|
|
241
|
+
const row = await required.registry.get({ site: required.site, shareId: input.shareId });
|
|
242
|
+
if (!row?.hasEncryptedKeys || !row.sealedPassword || row.status === "revoked")
|
|
243
|
+
throw new SiteShareRefusal({ code: "NOT_FOUND", message: "Export password not found for this site." });
|
|
244
|
+
// An ended share stays ended for its secret too: a retention tombstone OR a passed `expiresAt` (before the sweep runs).
|
|
245
|
+
if (row.status === "expired" || isShareExpired({ row, now: ctx.now() }))
|
|
246
|
+
throw new SiteShareRefusal({ code: "EXPIRED", message: required.host.expiry.expiredMessage({ row }) });
|
|
247
|
+
if (!required.savedKeys)
|
|
248
|
+
throw new SiteShareRefusal({ code: "UNAVAILABLE", message: "Saved keys are unavailable." });
|
|
249
|
+
return required.savedKeys.reveal({ sealedPassword: row.sealedPassword, shareId: row.shareId, workspaceId: required.site });
|
|
250
|
+
}
|
|
251
|
+
async function revokeShare({ ctx, shareId }, _optional = {}) {
|
|
252
|
+
const { required } = ctx, { host } = required;
|
|
253
|
+
const row = await required.registry.get({ site: required.site, shareId });
|
|
254
|
+
if (!row)
|
|
255
|
+
throw new SiteShareRefusal({ code: "NOT_FOUND", message: "Share not found for this site." });
|
|
256
|
+
let delivery;
|
|
257
|
+
// Resolution failure must not prevent revoke's own disable-first/delete-local sequence.
|
|
258
|
+
if (row.storage && !host.isOwnShareFolder({ storage: row.storage })) {
|
|
259
|
+
try {
|
|
260
|
+
delivery = await required.delivery({ provider: row.storage.provider, binding: row.storage.binding });
|
|
261
|
+
}
|
|
262
|
+
catch { /* revokeSiteShare disables locally before reporting the missing remote store. */ }
|
|
263
|
+
}
|
|
264
|
+
return view(await host.revokeSiteShare({ registry: required.registry, site: required.site, shareId }, { delivery }), host);
|
|
265
|
+
}
|
|
266
|
+
/** Reuses backup jobs and the common backup plan content. Only one bounded, buffered preparation runs per site at a time.
|
|
267
|
+
* Optional host clock/build versions stamp failures when they occur, before a later poll collects them.
|
|
268
|
+
* @complexity The existing bounded export work; diagnostics add only job-local metadata, with no I/O.
|
|
269
|
+
*/
|
|
270
|
+
export function createSiteShareBackend(required, { now = Date.now, appVersion: boundaryVersion, jiniVersion } = {}) {
|
|
271
|
+
const ctx = { required, jobs: new SiteBackupPushJobs({}, { now }), lane: { active: null }, now, boundaryVersion, jiniVersion };
|
|
272
|
+
return {
|
|
273
|
+
registry: required.registry,
|
|
274
|
+
hasWork: () => ctx.lane.active !== null,
|
|
275
|
+
staticOptions: () => staticShareOptions({ ctx }),
|
|
276
|
+
create: (input, options = {}) => createShare({ ctx, input, options }),
|
|
277
|
+
acknowledge: (input) => acknowledgeShare({ ctx, shareId: input.shareId }),
|
|
278
|
+
revealPassword: (input) => revealSharePassword({ ctx, input }),
|
|
279
|
+
list: async () => (await required.registry.list({ site: required.site })).map(row => view(row, required.host)),
|
|
280
|
+
revoke: (input) => revokeShare({ ctx, shareId: input.shareId }),
|
|
281
|
+
expiryChoices: () => currentExpiryChoices({ ctx }),
|
|
282
|
+
};
|
|
283
|
+
}
|
|
284
|
+
//# sourceMappingURL=share-backend.js.map
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import type { ArchiveMediaCopy, ArchiveMediaSource, ArchiveMediaTransformParams } from "../archive-media.js";
|
|
2
|
+
import type { ShareDatabaseProjection as BaseShareDatabaseProjection } from "../share-preparation-steps.js";
|
|
3
|
+
import type { writeFile } from "node:fs/promises";
|
|
4
|
+
import type { StorageKernel, SqliteClient, ColumnInfo } from "@jini-ai/core/contracts/storage";
|
|
5
|
+
type SqliteConnectionSource = SqliteClient | {
|
|
6
|
+
readonly $client: SqliteClient;
|
|
7
|
+
};
|
|
8
|
+
interface PostSearchHostConfig {
|
|
9
|
+
searchConfig: string;
|
|
10
|
+
projectionVersionSettingId: string;
|
|
11
|
+
}
|
|
12
|
+
import type { DataModuleDecl } from "@jini-ai/core/contracts/site/db-data-modules";
|
|
13
|
+
import type { OwnedTempRootScope } from "../owned-temp-root.js";
|
|
14
|
+
export type ShareDatabaseProjection<TParams extends ArchiveMediaTransformParams = ArchiveMediaTransformParams> = BaseShareDatabaseProjection<ArchiveMediaSource<TParams>>;
|
|
15
|
+
import { prepareSharePluginTables, refuseUnknownShareTables } from "./projection.tables.js";
|
|
16
|
+
export { prepareSharePluginTables, refuseUnknownShareTables } from "./projection.tables.js";
|
|
17
|
+
export type Row = Record<string, unknown>;
|
|
18
|
+
/** Raw SQL statement built by the host's injected {@link ShareSqlTag}; `R` is the row type it yields. */
|
|
19
|
+
export interface RawStatement<R> {
|
|
20
|
+
readonly isRawBuilder: true;
|
|
21
|
+
readonly $rowType?: R;
|
|
22
|
+
}
|
|
23
|
+
/** The host's tagged-template SQL builder (a Kysely-compatible `sql` tag), injected through the host. */
|
|
24
|
+
export interface ShareSqlTag {
|
|
25
|
+
<R = unknown>(strings: TemplateStringsArray, ...values: unknown[]): RawStatement<R>;
|
|
26
|
+
/** Quotes an identifier (table or column name). */
|
|
27
|
+
id(name: string): unknown;
|
|
28
|
+
}
|
|
29
|
+
/** Filterable, executable read built by {@link ShareQueryHandle.selectFrom}. Rows are schema-agnostic. */
|
|
30
|
+
export interface ShareSelectQuery {
|
|
31
|
+
select(columns: string | readonly string[]): ShareSelectQuery;
|
|
32
|
+
selectAll(): ShareSelectQuery;
|
|
33
|
+
where(column: string, operator: "=", value: unknown): ShareSelectQuery;
|
|
34
|
+
orderBy(column: string, direction: "asc" | "desc"): ShareSelectQuery;
|
|
35
|
+
execute(): Promise<Row[]>;
|
|
36
|
+
}
|
|
37
|
+
/** Filterable, executable write (update/delete). */
|
|
38
|
+
export interface ShareMutationQuery {
|
|
39
|
+
where(column: string, operator: "=", value: unknown): ShareMutationQuery;
|
|
40
|
+
execute(): Promise<unknown>;
|
|
41
|
+
}
|
|
42
|
+
/** Upsert target for {@link ShareInsertQuery.onConflict}. */
|
|
43
|
+
export interface ShareConflictBuilder {
|
|
44
|
+
columns(columns: readonly string[]): {
|
|
45
|
+
doUpdateSet(values: Row): unknown;
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
/** Insert with optional upsert behaviour. */
|
|
49
|
+
export interface ShareInsertQuery {
|
|
50
|
+
onConflict(build: (conflict: ShareConflictBuilder) => unknown): ShareInsertQuery;
|
|
51
|
+
execute(): Promise<unknown>;
|
|
52
|
+
}
|
|
53
|
+
/** The structural slice of the host's query-builder handle the share projection uses. */
|
|
54
|
+
export interface ShareQueryHandle {
|
|
55
|
+
selectFrom(table: string): ShareSelectQuery;
|
|
56
|
+
insertInto(table: string): {
|
|
57
|
+
values(row: Row): ShareInsertQuery;
|
|
58
|
+
};
|
|
59
|
+
updateTable(table: string): {
|
|
60
|
+
set(values: Row): ShareMutationQuery;
|
|
61
|
+
};
|
|
62
|
+
deleteFrom(table: string): ShareMutationQuery;
|
|
63
|
+
}
|
|
64
|
+
export interface Kernel extends StorageKernel<ShareQueryHandle, unknown> {
|
|
65
|
+
readonly transport: "better-sqlite3" | "pglite" | "node-postgres" | "pglite-socket";
|
|
66
|
+
query<R>(statement: RawStatement<R>): Promise<R[]>;
|
|
67
|
+
execute(statement: RawStatement<unknown>): Promise<void>;
|
|
68
|
+
}
|
|
69
|
+
/** Free-space probe for the private staging directory (`node:fs/promises` `statfs` by default). */
|
|
70
|
+
export type StagingSpacePort = (path: string) => Promise<{
|
|
71
|
+
bavail: number;
|
|
72
|
+
bsize: number;
|
|
73
|
+
}>;
|
|
74
|
+
export interface ShareProjectionHost {
|
|
75
|
+
deps: {
|
|
76
|
+
listTables(required: {
|
|
77
|
+
kernel: Kernel;
|
|
78
|
+
}, optional?: Record<string, never>): Promise<string[]>;
|
|
79
|
+
listColumns(required: {
|
|
80
|
+
kernel: Kernel;
|
|
81
|
+
table: string;
|
|
82
|
+
}, optional?: Record<string, never>): Promise<ColumnInfo[]>;
|
|
83
|
+
declareDataModule(required: {
|
|
84
|
+
db: Kernel;
|
|
85
|
+
dbPath: string;
|
|
86
|
+
decl: DataModuleDecl;
|
|
87
|
+
}): Promise<{
|
|
88
|
+
ok: boolean;
|
|
89
|
+
error?: {
|
|
90
|
+
message?: string;
|
|
91
|
+
};
|
|
92
|
+
}>;
|
|
93
|
+
sqliteKernel(required: {
|
|
94
|
+
source: SqliteConnectionSource;
|
|
95
|
+
}): Kernel;
|
|
96
|
+
sqliteClientOf(required: {
|
|
97
|
+
source: SqliteConnectionSource;
|
|
98
|
+
}): {
|
|
99
|
+
serialize(): Buffer;
|
|
100
|
+
};
|
|
101
|
+
sqliteConnectionOf(required: {
|
|
102
|
+
kernel: Kernel;
|
|
103
|
+
}): {
|
|
104
|
+
serialize(): Buffer;
|
|
105
|
+
} | undefined;
|
|
106
|
+
closeSqliteConnection(required: {
|
|
107
|
+
source: SqliteConnectionSource;
|
|
108
|
+
}): void;
|
|
109
|
+
};
|
|
110
|
+
SHARE_TABLES: readonly string[];
|
|
111
|
+
SHARE_LEGACY_PRIVATE_TABLES: ReadonlySet<string>;
|
|
112
|
+
CHAT_TABLE_NAMES: readonly string[];
|
|
113
|
+
PUBLISHABLE_SETTINGS: Readonly<Record<string, unknown>>;
|
|
114
|
+
SHARE_LIMITS: {
|
|
115
|
+
maxExpandedBytes: number;
|
|
116
|
+
};
|
|
117
|
+
databaseCapMessage: string;
|
|
118
|
+
insufficientStorageMessage: string;
|
|
119
|
+
computeBlobStorageKey: (required: {
|
|
120
|
+
workspaceId: string;
|
|
121
|
+
sha256: string;
|
|
122
|
+
}) => string;
|
|
123
|
+
documentContentType: (required: {
|
|
124
|
+
filename: string;
|
|
125
|
+
}) => string;
|
|
126
|
+
redactSecretShapes: import("../credential-warnings.js").CredentialRedactor;
|
|
127
|
+
tempRoot: OwnedTempRootScope;
|
|
128
|
+
openSqliteFileKernel: (required: {
|
|
129
|
+
filePath: string;
|
|
130
|
+
}, optional?: {
|
|
131
|
+
readOnly?: boolean;
|
|
132
|
+
}) => Kernel;
|
|
133
|
+
openContentDb: (required: {
|
|
134
|
+
filePath: string;
|
|
135
|
+
}) => SqliteConnectionSource;
|
|
136
|
+
sql: ShareSqlTag;
|
|
137
|
+
schemaErasedKernel(required: {
|
|
138
|
+
store: SqliteConnectionSource;
|
|
139
|
+
}): StorageKernel<unknown, unknown>;
|
|
140
|
+
backfillPostSearchIndex(required: {
|
|
141
|
+
kernel: StorageKernel<unknown, unknown>;
|
|
142
|
+
config: PostSearchHostConfig;
|
|
143
|
+
}, optional?: {
|
|
144
|
+
batchSize?: number;
|
|
145
|
+
}): Promise<number>;
|
|
146
|
+
statfs: StagingSpacePort;
|
|
147
|
+
writeFile: typeof writeFile;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Build a fresh database from a consistent snapshot through trusted bootstrap only. Source SQL,
|
|
151
|
+
* triggers, search projections and migration rows are never copied. Queries and inserts use the
|
|
152
|
+
* existing storage kernel; source FK order is replaced by the policy's parent-before-child order.
|
|
153
|
+
* Source staging is private/read-only and always removed; the live database is never touched.
|
|
154
|
+
* `searchHost` is the host's post-search binding (the same one live post search uses), so the
|
|
155
|
+
* rebuilt projection keeps the host's search config and version-marker setting id.
|
|
156
|
+
* @throws SiteShareRefusal for caps, unknown populated tables, or unsupported schema.
|
|
157
|
+
* @complexity O(snapshot + portable rows) time/space, bounded to the v1 expanded cap.
|
|
158
|
+
*/
|
|
159
|
+
export declare function sanitizeShareDatabase<TParams extends ArchiveMediaTransformParams = ArchiveMediaTransformParams>(required: {
|
|
160
|
+
host: ShareProjectionHost;
|
|
161
|
+
snapshot: Buffer;
|
|
162
|
+
omittedMediaIds?: readonly string[];
|
|
163
|
+
modules: readonly DataModuleDecl[];
|
|
164
|
+
searchHost: PostSearchHostConfig;
|
|
165
|
+
}, optional?: {
|
|
166
|
+
signal?: AbortSignal;
|
|
167
|
+
statfs?: StagingSpacePort;
|
|
168
|
+
tempRoot?: OwnedTempRootScope;
|
|
169
|
+
}): Promise<ShareDatabaseProjection<TParams>>;
|
|
170
|
+
/** Rewrites only the fresh share projection. No live DB or blob store is changed.
|
|
171
|
+
* Rebuild sidecars so original and latest public point at the same copy; other renditions regenerate.
|
|
172
|
+
* @throws SiteShareRefusal if copies do not cover the sanitized snapshot.
|
|
173
|
+
* @complexity O(media + copies) indexed reads/writes, bounded by the share snapshot cap.
|
|
174
|
+
*/
|
|
175
|
+
export declare function rewriteArchiveMedia(required: {
|
|
176
|
+
host: ShareProjectionHost;
|
|
177
|
+
bytes: Buffer;
|
|
178
|
+
copies: readonly ArchiveMediaCopy[];
|
|
179
|
+
}, optional?: {
|
|
180
|
+
signal?: AbortSignal;
|
|
181
|
+
tempRoot?: OwnedTempRootScope;
|
|
182
|
+
}): Promise<Buffer>;
|
|
183
|
+
export declare function createShareDatabaseProjection<TParams extends ArchiveMediaTransformParams = ArchiveMediaTransformParams>(required: {
|
|
184
|
+
host: ShareProjectionHost;
|
|
185
|
+
archiveMediaTempRoot: OwnedTempRootScope;
|
|
186
|
+
}, _optional?: {}): {
|
|
187
|
+
sanitizeShareDatabase: (input: Omit<Parameters<typeof sanitizeShareDatabase>[0], "host">, optional?: Parameters<typeof sanitizeShareDatabase>[1]) => Promise<ShareDatabaseProjection<TParams>>;
|
|
188
|
+
rewriteArchiveMedia: (input: Omit<Parameters<typeof rewriteArchiveMedia>[0], "host">, optional?: Parameters<typeof rewriteArchiveMedia>[1]) => Promise<Buffer<ArrayBufferLike>>;
|
|
189
|
+
prepareSharePluginTables: (input: Omit<Parameters<typeof prepareSharePluginTables>[0], "host">, optional?: Parameters<typeof prepareSharePluginTables>[1]) => Promise<{
|
|
190
|
+
portable: Set<string>;
|
|
191
|
+
private: Set<string>;
|
|
192
|
+
}>;
|
|
193
|
+
refuseUnknownShareTables: (input: Omit<Parameters<typeof refuseUnknownShareTables>[0], "host">, optional?: Parameters<typeof refuseUnknownShareTables>[1]) => Promise<void>;
|
|
194
|
+
};
|
|
195
|
+
//# sourceMappingURL=projection.d.ts.map
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import {} from "../credential-warnings.js";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import { SiteShareRefusal } from "../share-refusal.js";
|
|
4
|
+
import { prepareSharePluginTables, refuseUnknownShareTables, copyPortableTables } from "./projection.tables.js";
|
|
5
|
+
import { documentReferences, archiveMediaSources, rewriteMediaRows } from "./projection.media.js";
|
|
6
|
+
export { prepareSharePluginTables, refuseUnknownShareTables } from "./projection.tables.js";
|
|
7
|
+
/**
|
|
8
|
+
* Build a fresh database from a consistent snapshot through trusted bootstrap only. Source SQL,
|
|
9
|
+
* triggers, search projections and migration rows are never copied. Queries and inserts use the
|
|
10
|
+
* existing storage kernel; source FK order is replaced by the policy's parent-before-child order.
|
|
11
|
+
* Source staging is private/read-only and always removed; the live database is never touched.
|
|
12
|
+
* `searchHost` is the host's post-search binding (the same one live post search uses), so the
|
|
13
|
+
* rebuilt projection keeps the host's search config and version-marker setting id.
|
|
14
|
+
* @throws SiteShareRefusal for caps, unknown populated tables, or unsupported schema.
|
|
15
|
+
* @complexity O(snapshot + portable rows) time/space, bounded to the v1 expanded cap.
|
|
16
|
+
*/
|
|
17
|
+
export async function sanitizeShareDatabase(required, optional = {}) {
|
|
18
|
+
optional.signal?.throwIfAborted();
|
|
19
|
+
if (required.snapshot.length > required.host.SHARE_LIMITS.maxExpandedBytes)
|
|
20
|
+
throw new SiteShareRefusal({ code: "LIMIT_EXCEEDED", message: required.host.databaseCapMessage });
|
|
21
|
+
const credentialWarnings = [];
|
|
22
|
+
return (optional.tempRoot ?? required.host.tempRoot)({ work: async ({ root: staging }) => {
|
|
23
|
+
let source;
|
|
24
|
+
let fresh;
|
|
25
|
+
try {
|
|
26
|
+
const filePath = path.join(staging, "snapshot.db");
|
|
27
|
+
const space = await (optional.statfs ?? required.host.statfs)(staging);
|
|
28
|
+
if (space.bavail * space.bsize < required.snapshot.length + 16 * 1024 * 1024)
|
|
29
|
+
throw new SiteShareRefusal({ code: "INSUFFICIENT_STORAGE", message: required.host.insufficientStorageMessage });
|
|
30
|
+
await required.host.writeFile(filePath, required.snapshot, { flag: "wx", mode: 0o600 });
|
|
31
|
+
source = required.host.openSqliteFileKernel({ filePath }, { readOnly: true });
|
|
32
|
+
fresh = required.host.openContentDb({ filePath: ":memory:" });
|
|
33
|
+
const target = required.host.deps.sqliteKernel({ source: fresh });
|
|
34
|
+
const from = source;
|
|
35
|
+
const present = new Set(await required.host.deps.listTables({ kernel: from }));
|
|
36
|
+
const plugins = await prepareSharePluginTables({ host: required.host, target, present, modules: required.modules });
|
|
37
|
+
await refuseUnknownShareTables({ host: required.host, source, trusted: new Set([...await required.host.deps.listTables({ kernel: target }), ...plugins.private]) });
|
|
38
|
+
await copyPortableTables({ host: required.host, source: from, target, present, plugins, credentialWarnings, omittedMediaIds: required.omittedMediaIds }, optional);
|
|
39
|
+
await required.host.backfillPostSearchIndex({ kernel: required.host.schemaErasedKernel({ store: fresh }), config: required.searchHost });
|
|
40
|
+
const documents = await documentReferences({ host: required.host, target });
|
|
41
|
+
const media = [
|
|
42
|
+
...await target.run(db => db.selectFrom("asset_blobs").select(["storage_key as storageKey", "sha256"]).execute()),
|
|
43
|
+
...await target.run(db => db.selectFrom("asset_renditions").select("storage_key as storageKey").execute()),
|
|
44
|
+
];
|
|
45
|
+
// Older shares included Trash/orphan sidecars. v2 emits only retained owners, so
|
|
46
|
+
// arbitrary unreferenced archive media must refuse rather than be pruned on import.
|
|
47
|
+
const bytes = required.host.deps.sqliteClientOf({ source: fresh }).serialize();
|
|
48
|
+
return { bytes, media, documents, credentialWarnings, archiveMedia: await archiveMediaSources({ target }) };
|
|
49
|
+
}
|
|
50
|
+
finally {
|
|
51
|
+
await source?.close();
|
|
52
|
+
if (fresh)
|
|
53
|
+
required.host.deps.closeSqliteConnection({ source: fresh });
|
|
54
|
+
}
|
|
55
|
+
} });
|
|
56
|
+
}
|
|
57
|
+
/** Rewrites only the fresh share projection. No live DB or blob store is changed.
|
|
58
|
+
* Rebuild sidecars so original and latest public point at the same copy; other renditions regenerate.
|
|
59
|
+
* @throws SiteShareRefusal if copies do not cover the sanitized snapshot.
|
|
60
|
+
* @complexity O(media + copies) indexed reads/writes, bounded by the share snapshot cap.
|
|
61
|
+
*/
|
|
62
|
+
export async function rewriteArchiveMedia(required, optional = {}) {
|
|
63
|
+
return (optional.tempRoot ?? required.host.tempRoot)({ work: async ({ root: staging }) => {
|
|
64
|
+
let target;
|
|
65
|
+
try {
|
|
66
|
+
const file = path.join(staging, "content.db");
|
|
67
|
+
await required.host.writeFile(file, required.bytes, { mode: 0o600, flag: "wx" });
|
|
68
|
+
target = required.host.openSqliteFileKernel({ filePath: file });
|
|
69
|
+
await rewriteMediaRows({ target, copies: required.copies, sql: required.host.sql }, optional);
|
|
70
|
+
const connection = required.host.deps.sqliteConnectionOf({ kernel: target });
|
|
71
|
+
if (!connection)
|
|
72
|
+
throw new Error("Share database has no SQLite connection");
|
|
73
|
+
const bytes = connection.serialize();
|
|
74
|
+
return bytes;
|
|
75
|
+
}
|
|
76
|
+
finally {
|
|
77
|
+
await target?.close();
|
|
78
|
+
}
|
|
79
|
+
} });
|
|
80
|
+
}
|
|
81
|
+
export function createShareDatabaseProjection(required, _optional = {}) {
|
|
82
|
+
const { host, archiveMediaTempRoot } = required;
|
|
83
|
+
return {
|
|
84
|
+
sanitizeShareDatabase: (input, optional = {}) => sanitizeShareDatabase({ ...input, host }, optional),
|
|
85
|
+
rewriteArchiveMedia: (input, optional = {}) => rewriteArchiveMedia({ ...input, host: { ...host, tempRoot: archiveMediaTempRoot } }, optional),
|
|
86
|
+
prepareSharePluginTables: (input, optional = {}) => prepareSharePluginTables({ ...input, host }, optional),
|
|
87
|
+
refuseUnknownShareTables: (input, optional = {}) => refuseUnknownShareTables({ ...input, host }, optional),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=projection.js.map
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { ArchiveMediaCopy, ArchiveMediaSource, ArchiveMediaTransformParams } from "../archive-media.js";
|
|
2
|
+
import type { Row, Kernel, ShareDatabaseProjection, ShareSqlTag, sanitizeShareDatabase } from "./projection.js";
|
|
3
|
+
/** Omitted media loses its rows, sidecars and application-owned links in the fresh projection.
|
|
4
|
+
* Sidecars use the retained-owner index below; posts retain their content with no featured image.
|
|
5
|
+
*/
|
|
6
|
+
export declare function omitMediaReferences(required: {
|
|
7
|
+
row: Row;
|
|
8
|
+
table: string;
|
|
9
|
+
omitted: ReadonlySet<string>;
|
|
10
|
+
}, _options?: {}): Row | null;
|
|
11
|
+
/** Select sidecars from retained editorial owners, never the filesystem or orphan blobs.
|
|
12
|
+
* One bounded owner scan per sidecar table, then O(1) lookup per row; O(media rows) space.
|
|
13
|
+
* Document ownership is sticky even when an active public-media owner shares the bytes.
|
|
14
|
+
*/
|
|
15
|
+
export declare function mediaRowProjection(required: {
|
|
16
|
+
host: Parameters<typeof sanitizeShareDatabase>[0]["host"];
|
|
17
|
+
target: Kernel;
|
|
18
|
+
table: string;
|
|
19
|
+
}, _options?: Record<string, never>): Promise<(row: Row) => Row | null>;
|
|
20
|
+
/** Validate document identity against its retained blob before reading bytes through storage.
|
|
21
|
+
* O(media + blob rows) time/space; missing/corrupt document references explicitly refuse.
|
|
22
|
+
*/
|
|
23
|
+
export declare function documentReferences(required: {
|
|
24
|
+
host: Parameters<typeof sanitizeShareDatabase>[0]["host"];
|
|
25
|
+
target: Kernel;
|
|
26
|
+
}, _options?: Record<string, never>): Promise<NonNullable<ShareDatabaseProjection["documents"]>>;
|
|
27
|
+
/** Snapshot metadata for the archive selector. Three bulk reads, then indexed lookups per item. */
|
|
28
|
+
export declare function archiveMediaSources<TParams extends ArchiveMediaTransformParams = ArchiveMediaTransformParams>({ target }: {
|
|
29
|
+
target: Kernel;
|
|
30
|
+
}): Promise<ArchiveMediaSource<TParams>[]>;
|
|
31
|
+
export declare function rewriteMediaRows(required: {
|
|
32
|
+
target: Kernel;
|
|
33
|
+
copies: readonly ArchiveMediaCopy[];
|
|
34
|
+
sql: ShareSqlTag;
|
|
35
|
+
}, optional: {
|
|
36
|
+
signal?: AbortSignal;
|
|
37
|
+
}): Promise<void>;
|
|
38
|
+
//# sourceMappingURL=projection.media.d.ts.map
|