@camstack/server 1.2.718 → 1.2.720
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 +13 -0
- package/dist/addon-root-inventory.js +1 -1
- package/dist/agent/addon-scan.js +11 -7
- package/dist/agent/agent-addon-updates.js +1 -1
- package/dist/agent/agent-cap-dispatch-service.js +1 -1
- package/dist/agent/agent-heap-watch.js +1 -1
- package/dist/agent/agent-http.js +1 -1
- package/dist/agent/agent-hub-addon-update.js +1 -1
- package/dist/agent/agent-hub-registration.js +1 -1
- package/dist/agent/agent-infra-capabilities.js +2 -2
- package/dist/agent/agent-mesh-gate.js +1 -1
- package/dist/agent/agent-node-certificates.js +1 -1
- package/dist/agent/agent-pairing-routes.js +1 -1
- package/dist/agent/agent-pairing-store.js +1 -1
- package/dist/agent/agent-service.js +6 -2
- package/dist/agent/agent-update-service.js +3 -1
- package/dist/agent/hub-membership-client.js +1 -1
- package/dist/agent/infra-boot-guard.js +2 -2
- package/dist/agent/main.js +9 -9
- package/dist/api/addon-upload.js +1 -1
- package/dist/api/core/addon-settings.router.js +1 -1
- package/dist/api/core/agent-pairing.router.js +1 -1
- package/dist/api/core/auth-device-cert.procedures.js +1 -1
- package/dist/api/core/cap-providers.js +6 -6
- package/dist/api/core/certificates.router.js +1 -1
- package/dist/api/core/lifecycle-job-runner.js +1 -1
- package/dist/api/core/logging-settings.js +1 -1
- package/dist/api/core/logs.router.js +2 -2
- package/dist/api/core/notifications.router.js +1 -1
- package/dist/api/core/preferences.router.js +1 -1
- package/dist/api/core/repl.router.js +1 -1
- package/dist/api/cors/cors-policy.js +1 -1
- package/dist/api/mesh-membership-routes.js +1 -1
- package/dist/api/model-distributor.js +1 -1
- package/dist/api/trpc/cap-route-error-formatter.js +1 -1
- package/dist/api/trpc/cap-router-runtime.js +2 -2
- package/dist/api/trpc/core-cap-bridge.js +1 -1
- package/dist/api/trpc/device-collection-dispatch.js +1 -1
- package/dist/api/trpc/generated-cap-routers.js +1 -1
- package/dist/api/trpc/principal-authorization.js +1 -1
- package/dist/api/trpc/principal-visibility.js +1 -1
- package/dist/api/trpc/scope-access.js +1 -1
- package/dist/api/trpc/trpc.context.js +1 -1
- package/dist/api/trpc/trpc.middleware.js +1 -1
- package/dist/api/trpc/trpc.router.js +3 -3
- package/dist/auth/auth-network-policy.js +1 -1
- package/dist/auth/client-address.js +1 -1
- package/dist/auth/hub-sessions.js +1 -1
- package/dist/auth/session-lifetimes.js +1 -1
- package/dist/auth/sso-finish-deps.js +1 -1
- package/dist/boot/boot-config.js +53 -133
- package/dist/boot/platform-keychain-key.js +1 -1
- package/dist/boot/post-boot.service.js +1 -1
- package/dist/bootstrap-packages.js +3 -3
- package/dist/core/addon/addon-call-gateway.js +1 -1
- package/dist/core/addon/addon-package.service.js +140 -21
- package/dist/core/addon/addon-registry.service.js +36 -32
- package/dist/core/addon/addon-requirements.js +81 -0
- package/dist/core/addon/hub-addon-api.js +1 -1
- package/dist/core/addon/installed-addon-versions.js +82 -0
- package/dist/core/addon/package-dir-utils.js +11 -1
- package/dist/core/addon/settings-door-wiring.js +1 -1
- package/dist/core/addon-bridge/addon-bridge.service.js +3 -3
- package/dist/core/addon-pages/addon-pages.service.js +1 -1
- package/dist/core/agent/agent-desired-set.js +1 -1
- package/dist/core/agent/agent-pairing-http.js +1 -1
- package/dist/core/agent/agent-registry.service.js +41 -7
- package/dist/core/agent/cluster-node-history-store.js +1 -1
- package/dist/core/agent/delivery-requirements.js +36 -0
- package/dist/core/agent/forgotten-node-revoker.js +1 -1
- package/dist/core/agent/node-removal-hooks.js +6 -2
- package/dist/core/auth/auth.service.js +1 -1
- package/dist/core/config/config.schema.js +2 -2
- package/dist/core/config/config.service.js +1 -1
- package/dist/core/events/event-bus.service.js +1 -1
- package/dist/core/feature/feature.service.js +1 -1
- package/dist/core/lifecycle/lifecycle-state-machine.js +2 -2
- package/dist/core/logging/log-history.js +1 -1
- package/dist/core/logging/log-ring-buffer.js +2 -2
- package/dist/core/logging/logging.service.js +2 -2
- package/dist/core/logging/scoped-logger.js +2 -2
- package/dist/core/moleculer/cap-route-authority.js +2 -2
- package/dist/core/moleculer/hub-mesh-guard.js +1 -1
- package/dist/core/moleculer/moleculer.service.js +1 -1
- package/dist/core/network/network-quality.service.js +1 -1
- package/dist/core/notification/notification-wrapper.service.js +1 -1
- package/dist/core/notification/toast-wrapper.service.js +1 -1
- package/dist/core/repl/repl-engine.service.js +1 -1
- package/dist/core/server-update/server-update.service.js +3 -0
- package/dist/core/server-update/system-ensure-prebuilds.js +3 -3
- package/dist/core/server-update/system-exec-npm.js +2 -2
- package/dist/core/storage/fs-storage-backend.js +2 -2
- package/dist/core/storage/storage-location-manager.js +2 -2
- package/dist/core/storage/storage.service.js +1 -1
- package/dist/framework-nodepath.js +14 -1
- package/dist/launcher.js +23 -23
- package/dist/legacy-package-names.js +15 -0
- package/dist/main.js +2 -2
- package/dist/manual-boot.js +4 -3
- package/dist/package-inventory.js +6 -3
- package/dist/server-root/index.js +182 -30
- package/dist/single-copy-cleanup-runner.js +3 -3
- package/dist/single-copy-cleanup.js +19 -14
- package/package.json +53 -19
- package/scripts/closure-postinstall.mjs +1 -1
- package/system/assets/addon-pages-aggregator/icon.svg +5 -0
- package/system/assets/addon-widgets-aggregator/icon.svg +6 -0
- package/system/assets/alert-center/icon.svg +5 -0
- package/system/assets/autotrack/icon.svg +5 -0
- package/system/assets/backup-orchestrator/icon.svg +5 -0
- package/system/assets/calendars/icon.svg +5 -0
- package/system/assets/camera-grid/icon.svg +10 -0
- package/system/assets/composer/icon.svg +7 -0
- package/system/assets/console-logging/icon.svg +4 -0
- package/system/assets/core-blocks/icon.svg +6 -0
- package/system/assets/device-history/icon.svg +4 -0
- package/system/assets/device-manager/icon.svg +6 -0
- package/system/assets/filesystem-storage/icon.svg +6 -0
- package/system/assets/hub-forwarder/icon.svg +7 -0
- package/system/assets/keychain/icon.svg +6 -0
- package/system/assets/liveness-monitor/icon.svg +4 -0
- package/system/assets/local-auth/icon.svg +5 -0
- package/system/assets/local-network/icon.svg +7 -0
- package/system/assets/loki-logging/icon.svg +7 -0
- package/system/assets/metrics-native/icon.svg +3 -0
- package/system/assets/platform-probe/icon.svg +5 -0
- package/system/assets/record-entries/icon.svg +8 -0
- package/system/assets/remote-access-orchestrator/icon.svg +5 -0
- package/system/assets/snapshot/icon.svg +4 -0
- package/system/assets/sqlite-settings/icon.svg +5 -0
- package/system/assets/storage-orchestrator/icon.svg +8 -0
- package/system/assets/system-config/icon.svg +4 -0
- package/system/assets/winston-logging/icon.svg +6 -0
- package/system/dist/addon/addon-api-factory.d.ts +35 -0
- package/system/dist/addon-routes/addon-route-registry.d.ts +37 -0
- package/system/dist/addon-runner.js +11894 -0
- package/system/dist/addon-runner.mjs +11840 -0
- package/system/dist/addon-utils.d.ts +23 -0
- package/system/dist/addon-utils.js +27 -0
- package/system/dist/addon-utils.mjs +3 -0
- package/system/dist/agent-https-BMbnmX5u.mjs +1042 -0
- package/system/dist/agent-https-DslXCDRW.js +1289 -0
- package/system/dist/amd-accelerators-CEuPFBBK.js +36 -0
- package/system/dist/amd-accelerators-U_RsoEDd.mjs +35 -0
- package/system/dist/auth/auth-audit-log.d.ts +45 -0
- package/system/dist/auth/auth-manager.d.ts +155 -0
- package/system/dist/auth/cidr.d.ts +22 -0
- package/system/dist/auth/device-ca-store.d.ts +57 -0
- package/system/dist/auth/device-ca.d.ts +65 -0
- package/system/dist/auth/device-credential-manager.d.ts +158 -0
- package/system/dist/auth/external-identity-manager.d.ts +42 -0
- package/system/dist/auth/jwt-signing-key.d.ts +42 -0
- package/system/dist/auth/legacy-token-tables.d.ts +16 -0
- package/system/dist/auth/login-session-manager.d.ts +140 -0
- package/system/dist/auth/origin.d.ts +34 -0
- package/system/dist/auth/parse-record.d.ts +18 -0
- package/system/dist/auth/scope-matcher.d.ts +8 -0
- package/system/dist/auth/session-revocation-bus.d.ts +32 -0
- package/system/dist/auth/token-expiry.d.ts +62 -0
- package/system/dist/auth/totp-manager.d.ts +107 -0
- package/system/dist/auth/user-management-internal.d.ts +90 -0
- package/system/dist/auth/user-manager.d.ts +69 -0
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.d.ts +57 -0
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +271 -0
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +263 -0
- package/system/dist/builtins/addon-pages-aggregator/dedupe-pages.d.ts +24 -0
- package/system/dist/builtins/addon-pages-aggregator/index.d.ts +1 -0
- package/system/dist/builtins/addon-pages-aggregator/index.js +8 -0
- package/system/dist/builtins/addon-pages-aggregator/index.mjs +2 -0
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.d.ts +57 -0
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +257 -0
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +249 -0
- package/system/dist/builtins/addon-widgets-aggregator/index.d.ts +1 -0
- package/system/dist/builtins/addon-widgets-aggregator/index.js +8 -0
- package/system/dist/builtins/addon-widgets-aggregator/index.mjs +2 -0
- package/system/dist/builtins/alerts/alert-episode-policy.d.ts +39 -0
- package/system/dist/builtins/alerts/alert-store.d.ts +32 -0
- package/system/dist/builtins/alerts/alerts.addon.d.ts +148 -0
- package/system/dist/builtins/alerts/alerts.addon.js +1566 -0
- package/system/dist/builtins/alerts/alerts.addon.mjs +1559 -0
- package/system/dist/builtins/alerts/device-label.d.ts +8 -0
- package/system/dist/builtins/alerts/emit-alert-policy.d.ts +15 -0
- package/system/dist/builtins/alerts/index.d.ts +1 -0
- package/system/dist/builtins/alerts/index.js +4 -0
- package/system/dist/builtins/alerts/index.mjs +2 -0
- package/system/dist/builtins/alerts/migration-alerts.d.ts +13 -0
- package/system/dist/builtins/alerts/prune-policy.d.ts +44 -0
- package/system/dist/builtins/alerts/record-kinds.d.ts +15 -0
- package/system/dist/builtins/alerts/runner-alert.d.ts +58 -0
- package/system/dist/builtins/autotrack/autotrack-cameras.d.ts +125 -0
- package/system/dist/builtins/autotrack/autotrack-config.d.ts +89 -0
- package/system/dist/builtins/autotrack/autotrack-decision.d.ts +86 -0
- package/system/dist/builtins/autotrack/autotrack-loop.d.ts +95 -0
- package/system/dist/builtins/autotrack/autotrack.addon.d.ts +108 -0
- package/system/dist/builtins/autotrack/frame-error.d.ts +50 -0
- package/system/dist/builtins/autotrack/frame-measurements.d.ts +97 -0
- package/system/dist/builtins/autotrack/index.d.ts +2 -0
- package/system/dist/builtins/autotrack/index.js +1018 -0
- package/system/dist/builtins/autotrack/index.mjs +1012 -0
- package/system/dist/builtins/autotrack/ptz-mirror.d.ts +54 -0
- package/system/dist/builtins/autotrack/target-selection.d.ts +46 -0
- package/system/dist/builtins/backup-orchestrator/backup-databases.d.ts +51 -0
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.d.ts +291 -0
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +3213 -0
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +3204 -0
- package/system/dist/builtins/backup-orchestrator/cron-helpers.d.ts +23 -0
- package/system/dist/builtins/backup-orchestrator/destination-policy.d.ts +91 -0
- package/system/dist/builtins/backup-orchestrator/download-helpers.d.ts +12 -0
- package/system/dist/builtins/backup-orchestrator/encryption-key-store.d.ts +49 -0
- package/system/dist/builtins/backup-orchestrator/index.d.ts +2 -0
- package/system/dist/builtins/backup-orchestrator/index.js +8 -0
- package/system/dist/builtins/backup-orchestrator/index.mjs +2 -0
- package/system/dist/builtins/backup-orchestrator/manifest-store.d.ts +134 -0
- package/system/dist/builtins/backup-orchestrator/record-kinds.d.ts +56 -0
- package/system/dist/builtins/backup-orchestrator/restore-archive.d.ts +24 -0
- package/system/dist/builtins/backup-orchestrator/run-queue.d.ts +106 -0
- package/system/dist/builtins/backup-orchestrator/schedule-store.d.ts +59 -0
- package/system/dist/builtins/backup-orchestrator/seed-marker-store.d.ts +26 -0
- package/system/dist/builtins/backup-orchestrator/staging-paths.d.ts +36 -0
- package/system/dist/builtins/backup-orchestrator/write-targets.d.ts +63 -0
- package/system/dist/builtins/calendars/calendar-color.d.ts +9 -0
- package/system/dist/builtins/calendars/calendar-prefs-store.d.ts +34 -0
- package/system/dist/builtins/calendars/calendars.addon.d.ts +19 -0
- package/system/dist/builtins/calendars/calendars.addon.js +227 -0
- package/system/dist/builtins/calendars/calendars.addon.mjs +220 -0
- package/system/dist/builtins/calendars/index.d.ts +1 -0
- package/system/dist/builtins/calendars/index.js +8 -0
- package/system/dist/builtins/calendars/index.mjs +2 -0
- package/system/dist/builtins/calendars/record-kinds.d.ts +18 -0
- package/system/dist/builtins/camera-grid/acquire-retry.d.ts +30 -0
- package/system/dist/builtins/camera-grid/addon.d.ts +205 -0
- package/system/dist/builtins/camera-grid/flv-join.d.ts +40 -0
- package/system/dist/builtins/camera-grid/grid-activity-mirror.d.ts +42 -0
- package/system/dist/builtins/camera-grid/grid-activity.d.ts +91 -0
- package/system/dist/builtins/camera-grid/grid-camera-declarations.d.ts +59 -0
- package/system/dist/builtins/camera-grid/grid-camera-device.d.ts +68 -0
- package/system/dist/builtins/camera-grid/grid-canvas-derivation.d.ts +54 -0
- package/system/dist/builtins/camera-grid/grid-canvas-seed.d.ts +112 -0
- package/system/dist/builtins/camera-grid/grid-canvas.d.ts +85 -0
- package/system/dist/builtins/camera-grid/grid-child.d.ts +32 -0
- package/system/dist/builtins/camera-grid/grid-compositor-child.d.ts +3 -0
- package/system/dist/builtins/camera-grid/grid-compositor-invocation.d.ts +47 -0
- package/system/dist/builtins/camera-grid/grid-compositor.d.ts +54 -0
- package/system/dist/builtins/camera-grid/grid-detection-mapping.d.ts +61 -0
- package/system/dist/builtins/camera-grid/grid-device-settings.d.ts +35 -0
- package/system/dist/builtins/camera-grid/grid-filter-graph.d.ts +53 -0
- package/system/dist/builtins/camera-grid/grid-frame-sample.d.ts +53 -0
- package/system/dist/builtins/camera-grid/grid-instances.d.ts +22 -0
- package/system/dist/builtins/camera-grid/grid-last-frame-store.d.ts +58 -0
- package/system/dist/builtins/camera-grid/grid-layout-native-provider.d.ts +34 -0
- package/system/dist/builtins/camera-grid/grid-plan.d.ts +34 -0
- package/system/dist/builtins/camera-grid/grid-profiles.d.ts +104 -0
- package/system/dist/builtins/camera-grid/grid-row-normalization.d.ts +10 -0
- package/system/dist/builtins/camera-grid/grid-sentry-sources.d.ts +64 -0
- package/system/dist/builtins/camera-grid/grid-snapshot.d.ts +62 -0
- package/system/dist/builtins/camera-grid/grid-stream-descriptor.d.ts +53 -0
- package/system/dist/builtins/camera-grid/grid-stream-invocation.d.ts +44 -0
- package/system/dist/builtins/camera-grid/grid-stream-relay.d.ts +35 -0
- package/system/dist/builtins/camera-grid/grid-stream-session.d.ts +143 -0
- package/system/dist/builtins/camera-grid/grid-tile-feed.d.ts +50 -0
- package/system/dist/builtins/camera-grid/grid-tile-plan.d.ts +66 -0
- package/system/dist/builtins/camera-grid/grid-wire-format.d.ts +30 -0
- package/system/dist/builtins/camera-grid/index.d.ts +45 -0
- package/system/dist/builtins/camera-grid/index.js +3994 -0
- package/system/dist/builtins/camera-grid/index.mjs +3961 -0
- package/system/dist/builtins/camera-grid/silence-analysis.d.ts +37 -0
- package/system/dist/builtins/cluster-agent/record-kinds.d.ts +49 -0
- package/system/dist/builtins/composer/actuator-dispatch.d.ts +13 -0
- package/system/dist/builtins/composer/actuator-groups.d.ts +68 -0
- package/system/dist/builtins/composer/actuator-invoke.d.ts +32 -0
- package/system/dist/builtins/composer/claim-gate.d.ts +59 -0
- package/system/dist/builtins/composer/composed-device-set.d.ts +52 -0
- package/system/dist/builtins/composer/composed-device.d.ts +57 -0
- package/system/dist/builtins/composer/composer-apply-waits.d.ts +28 -0
- package/system/dist/builtins/composer/composer-grafts.d.ts +73 -0
- package/system/dist/builtins/composer/composer-live-set.d.ts +30 -0
- package/system/dist/builtins/composer/composer-plan.d.ts +112 -0
- package/system/dist/builtins/composer/composer-runtime-factory.d.ts +30 -0
- package/system/dist/builtins/composer/composer-seeds.d.ts +28 -0
- package/system/dist/builtins/composer/composer-verdict.d.ts +33 -0
- package/system/dist/builtins/composer/composer.addon.d.ts +26 -0
- package/system/dist/builtins/composer/composer.addon.js +6229 -0
- package/system/dist/builtins/composer/composer.addon.mjs +6223 -0
- package/system/dist/builtins/composer/composer.d.ts +208 -0
- package/system/dist/builtins/composer/composition-declarations.d.ts +64 -0
- package/system/dist/builtins/composer/composition-evaluation.d.ts +53 -0
- package/system/dist/builtins/composer/composition-runtime.d.ts +203 -0
- package/system/dist/builtins/composer/composition-target.d.ts +60 -0
- package/system/dist/builtins/composer/confirmed-seed.d.ts +44 -0
- package/system/dist/builtins/composer/deadline-timer.d.ts +18 -0
- package/system/dist/builtins/composer/existing-target.d.ts +131 -0
- package/system/dist/builtins/composer/field-record.d.ts +64 -0
- package/system/dist/builtins/composer/forward-commands.d.ts +61 -0
- package/system/dist/builtins/composer/graft-host.d.ts +71 -0
- package/system/dist/builtins/composer/held-claims.d.ts +29 -0
- package/system/dist/builtins/composer/history-helpers.d.ts +67 -0
- package/system/dist/builtins/composer/index.d.ts +1 -0
- package/system/dist/builtins/composer/index.js +8 -0
- package/system/dist/builtins/composer/index.mjs +2 -0
- package/system/dist/builtins/composer/math-quantity.d.ts +20 -0
- package/system/dist/builtins/composer/own-field-reads.d.ts +30 -0
- package/system/dist/builtins/composer/owned-fields-target.d.ts +95 -0
- package/system/dist/builtins/composer/pulse-seed-resolve.d.ts +59 -0
- package/system/dist/builtins/composer/pulse-seed.d.ts +75 -0
- package/system/dist/builtins/composer/slice-assembler.d.ts +26 -0
- package/system/dist/builtins/composer/source-readings.d.ts +128 -0
- package/system/dist/builtins/composer/source-tracker.d.ts +135 -0
- package/system/dist/builtins/console-logging/console-destination.d.ts +19 -0
- package/system/dist/builtins/console-logging/console-logging.addon.d.ts +26 -0
- package/system/dist/builtins/console-logging/index.d.ts +3 -0
- package/system/dist/builtins/console-logging/index.js +108 -0
- package/system/dist/builtins/console-logging/index.mjs +99 -0
- package/system/dist/builtins/core-blocks/actions-service.d.ts +113 -0
- package/system/dist/builtins/core-blocks/actions-store.d.ts +32 -0
- package/system/dist/builtins/core-blocks/actions-wiring.d.ts +32 -0
- package/system/dist/builtins/core-blocks/block-package.d.ts +54 -0
- package/system/dist/builtins/core-blocks/block-settings-store.d.ts +93 -0
- package/system/dist/builtins/core-blocks/block-supervisor.d.ts +176 -0
- package/system/dist/builtins/core-blocks/block-type-defs.d.ts +29 -0
- package/system/dist/builtins/core-blocks/blocks-integration.d.ts +89 -0
- package/system/dist/builtins/core-blocks/compile-block.d.ts +52 -0
- package/system/dist/builtins/core-blocks/composition-api.d.ts +50 -0
- package/system/dist/builtins/core-blocks/composition-peers.d.ts +31 -0
- package/system/dist/builtins/core-blocks/composition-sources.d.ts +40 -0
- package/system/dist/builtins/core-blocks/core-block-store.d.ts +120 -0
- package/system/dist/builtins/core-blocks/core-blocks.addon.d.ts +108 -0
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +6374 -0
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +6355 -0
- package/system/dist/builtins/core-blocks/extract-settings-schema.d.ts +6 -0
- package/system/dist/builtins/core-blocks/index.d.ts +8 -0
- package/system/dist/builtins/core-blocks/index.js +21 -0
- package/system/dist/builtins/core-blocks/index.mjs +2 -0
- package/system/dist/builtins/core-blocks/lock-door-gate.d.ts +31 -0
- package/system/dist/builtins/core-blocks/lock-door-sensor.d.ts +35 -0
- package/system/dist/builtins/core-blocks/power-source-service.d.ts +70 -0
- package/system/dist/builtins/core-blocks/record-kinds.d.ts +83 -0
- package/system/dist/builtins/core-blocks/remote-call-redirect.d.ts +23 -0
- package/system/dist/builtins/core-blocks/remote-components-service.d.ts +10 -0
- package/system/dist/builtins/core-blocks/remote-service.d.ts +85 -0
- package/system/dist/builtins/core-blocks/remote-wiring.d.ts +49 -0
- package/system/dist/builtins/core-blocks/runs-api.d.ts +30 -0
- package/system/dist/builtins/core-blocks/runs-ledger.d.ts +64 -0
- package/system/dist/builtins/core-blocks/scheduler/scheduler-engine.d.ts +91 -0
- package/system/dist/builtins/core-blocks/scheduler/scheduler-holds.d.ts +54 -0
- package/system/dist/builtins/core-blocks/scheduler/scheduler-service.d.ts +76 -0
- package/system/dist/builtins/core-blocks/scheduler/scheduler-store.d.ts +23 -0
- package/system/dist/builtins/core-blocks/scheduler/scheduler-timeline.d.ts +53 -0
- package/system/dist/builtins/core-blocks/scheduler/scheduler-trace.d.ts +17 -0
- package/system/dist/builtins/core-blocks/scheduler/scheduler-types.d.ts +20 -0
- package/system/dist/builtins/core-blocks/scheduler/scheduler-wiring.d.ts +41 -0
- package/system/dist/builtins/core-blocks/templates-service.d.ts +24 -0
- package/system/dist/builtins/device-history/capture/capture-engine.d.ts +113 -0
- package/system/dist/builtins/device-history/capture/capture-filter.d.ts +37 -0
- package/system/dist/builtins/device-history/capture/device-directory.d.ts +47 -0
- package/system/dist/builtins/device-history/capture/field-path.d.ts +10 -0
- package/system/dist/builtins/device-history/capture/point-writer.d.ts +63 -0
- package/system/dist/builtins/device-history/device-history.addon.d.ts +53 -0
- package/system/dist/builtins/device-history/device-history.addon.js +2885 -0
- package/system/dist/builtins/device-history/device-history.addon.mjs +2878 -0
- package/system/dist/builtins/device-history/index.d.ts +3 -0
- package/system/dist/builtins/device-history/ingest/producer-ingest.d.ts +99 -0
- package/system/dist/builtins/device-history/query/history-query.d.ts +116 -0
- package/system/dist/builtins/device-history/query/point-shape.d.ts +31 -0
- package/system/dist/builtins/device-history/retention/departure-tracker.d.ts +33 -0
- package/system/dist/builtins/device-history/retention/orphans.d.ts +50 -0
- package/system/dist/builtins/device-history/retention/retention.d.ts +74 -0
- package/system/dist/builtins/device-history/rollup/rollup-engine.d.ts +74 -0
- package/system/dist/builtins/device-history/rollup/rollup-math.d.ts +50 -0
- package/system/dist/builtins/device-history/runtime/history-runtime.d.ts +118 -0
- package/system/dist/builtins/device-history/status/counters.d.ts +55 -0
- package/system/dist/builtins/device-history/store/history-door.d.ts +7 -0
- package/system/dist/builtins/device-history/store/history-schema.d.ts +28 -0
- package/system/dist/builtins/device-history/store/history-store.d.ts +109 -0
- package/system/dist/builtins/device-history/store/row-readers.d.ts +11 -0
- package/system/dist/builtins/device-history/store/series-registry.d.ts +64 -0
- package/system/dist/builtins/device-history/store/series-scale.d.ts +37 -0
- package/system/dist/builtins/device-history/time/bucket-time.d.ts +25 -0
- package/system/dist/builtins/device-manager/adoption-job-engine.d.ts +153 -0
- package/system/dist/builtins/device-manager/claimed-status-overlay.d.ts +45 -0
- package/system/dist/builtins/device-manager/contribution-cache.d.ts +85 -0
- package/system/dist/builtins/device-manager/day-night-config-schema.d.ts +30 -0
- package/system/dist/builtins/device-manager/device-aggregation-merge.d.ts +22 -0
- package/system/dist/builtins/device-manager/device-aggregation.d.ts +335 -0
- package/system/dist/builtins/device-manager/device-bindings-store.d.ts +278 -0
- package/system/dist/builtins/device-manager/device-config-contribution.d.ts +45 -0
- package/system/dist/builtins/device-manager/device-config-secrets.d.ts +40 -0
- package/system/dist/builtins/device-manager/device-event-propagator.d.ts +26 -0
- package/system/dist/builtins/device-manager/device-extension-linked-slot.d.ts +27 -0
- package/system/dist/builtins/device-manager/device-form-secrets.d.ts +25 -0
- package/system/dist/builtins/device-manager/device-linked-devices.d.ts +201 -0
- package/system/dist/builtins/device-manager/device-manager.addon.d.ts +234 -0
- package/system/dist/builtins/device-manager/device-manager.addon.js +11369 -0
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +11358 -0
- package/system/dist/builtins/device-manager/device-meta-actions.d.ts +338 -0
- package/system/dist/builtins/device-manager/device-meta-store.d.ts +103 -0
- package/system/dist/builtins/device-manager/device-meta-types.d.ts +277 -0
- package/system/dist/builtins/device-manager/device-online-fallback.d.ts +35 -0
- package/system/dist/builtins/device-manager/device-projection.d.ts +71 -0
- package/system/dist/builtins/device-manager/device-provider-context.d.ts +126 -0
- package/system/dist/builtins/device-manager/device-queries.d.ts +67 -0
- package/system/dist/builtins/device-manager/device-removal-hooks.d.ts +92 -0
- package/system/dist/builtins/device-manager/device-row-store.d.ts +449 -0
- package/system/dist/builtins/device-manager/device-source-activation.d.ts +103 -0
- package/system/dist/builtins/device-manager/device-state-claim-views.d.ts +92 -0
- package/system/dist/builtins/device-manager/device-state-claims.d.ts +66 -0
- package/system/dist/builtins/device-manager/device-state-mirror.d.ts +267 -0
- package/system/dist/builtins/device-manager/device-sync-resolvers.d.ts +30 -0
- package/system/dist/builtins/device-manager/device-tombstone-store.d.ts +29 -0
- package/system/dist/builtins/device-manager/discovery-orchestrator.d.ts +45 -0
- package/system/dist/builtins/device-manager/field-claims-index.d.ts +96 -0
- package/system/dist/builtins/device-manager/field-ownership.d.ts +71 -0
- package/system/dist/builtins/device-manager/fleet-read-census.d.ts +104 -0
- package/system/dist/builtins/device-manager/image-settings-config-schema.d.ts +22 -0
- package/system/dist/builtins/device-manager/index.d.ts +2 -0
- package/system/dist/builtins/device-manager/index.js +8 -0
- package/system/dist/builtins/device-manager/index.mjs +2 -0
- package/system/dist/builtins/device-manager/linked-devices-manual-backfill.d.ts +27 -0
- package/system/dist/builtins/device-manager/location-alignment.d.ts +61 -0
- package/system/dist/builtins/device-manager/migrate-device.d.ts +192 -0
- package/system/dist/builtins/device-manager/migrate-guard.d.ts +78 -0
- package/system/dist/builtins/device-manager/migrate-hardware-state.d.ts +79 -0
- package/system/dist/builtins/device-manager/migrate-reload.d.ts +46 -0
- package/system/dist/builtins/device-manager/migration-refused.d.ts +23 -0
- package/system/dist/builtins/device-manager/mirror-row-writer.d.ts +222 -0
- package/system/dist/builtins/device-manager/record-kinds.d.ts +14 -0
- package/system/dist/builtins/device-manager/recording-onboard-config-schema.d.ts +65 -0
- package/system/dist/builtins/device-manager/removal-cleanup.d.ts +50 -0
- package/system/dist/builtins/device-manager/removal-fence.d.ts +58 -0
- package/system/dist/builtins/device-manager/running-flip.d.ts +11 -0
- package/system/dist/builtins/device-manager/runtime-state-persist-gate.d.ts +64 -0
- package/system/dist/builtins/device-manager/secret-config-paths.d.ts +24 -0
- package/system/dist/builtins/device-manager/stale-wrapper-activations.d.ts +59 -0
- package/system/dist/builtins/device-manager/write-lock.d.ts +17 -0
- package/system/dist/builtins/hub-forwarder/hub-forwarder-destination.d.ts +43 -0
- package/system/dist/builtins/hub-forwarder/hub-forwarder.addon.d.ts +16 -0
- package/system/dist/builtins/hub-forwarder/index.d.ts +3 -0
- package/system/dist/builtins/hub-forwarder/index.js +151 -0
- package/system/dist/builtins/hub-forwarder/index.mjs +142 -0
- package/system/dist/builtins/keychain/index.d.ts +1 -0
- package/system/dist/builtins/keychain/index.js +2059 -0
- package/system/dist/builtins/keychain/index.mjs +2052 -0
- package/system/dist/builtins/keychain/key-sources.d.ts +37 -0
- package/system/dist/builtins/keychain/keychain-crypto.d.ts +28 -0
- package/system/dist/builtins/keychain/keychain-reset-trigger.d.ts +25 -0
- package/system/dist/builtins/keychain/keychain-service.d.ts +180 -0
- package/system/dist/builtins/keychain/keychain-store.d.ts +125 -0
- package/system/dist/builtins/keychain/keychain-usage.d.ts +17 -0
- package/system/dist/builtins/keychain/keychain.addon.d.ts +36 -0
- package/system/dist/builtins/keychain/platform-key-source.d.ts +24 -0
- package/system/dist/builtins/keychain/record-kinds.d.ts +16 -0
- package/system/dist/builtins/keychain/system-held-secrets.d.ts +25 -0
- package/system/dist/builtins/liveness-monitor/index.d.ts +2 -0
- package/system/dist/builtins/liveness-monitor/index.js +6 -0
- package/system/dist/builtins/liveness-monitor/index.mjs +2 -0
- package/system/dist/builtins/liveness-monitor/liveness-checks.d.ts +85 -0
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.d.ts +46 -0
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +443 -0
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +437 -0
- package/system/dist/builtins/liveness-monitor/liveness-reporter.d.ts +28 -0
- package/system/dist/builtins/liveness-monitor/storage-root-access.d.ts +53 -0
- package/system/dist/builtins/local-auth/admin-account-boot.d.ts +27 -0
- package/system/dist/builtins/local-auth/auth-config-reader.d.ts +39 -0
- package/system/dist/builtins/local-auth/auth-schema.d.ts +93 -0
- package/system/dist/builtins/local-auth/index.d.ts +1 -0
- package/system/dist/builtins/local-auth/index.js +4 -0
- package/system/dist/builtins/local-auth/index.mjs +2 -0
- package/system/dist/builtins/local-auth/jwt-signing-key-keeper.d.ts +30 -0
- package/system/dist/builtins/local-auth/local-auth.addon.d.ts +48 -0
- package/system/dist/builtins/local-auth/local-auth.addon.js +12418 -0
- package/system/dist/builtins/local-auth/local-auth.addon.mjs +12388 -0
- package/system/dist/builtins/local-auth/oauth-grants.d.ts +71 -0
- package/system/dist/builtins/local-auth/oauth-session-manager.d.ts +44 -0
- package/system/dist/builtins/local-auth/person-scopes.d.ts +7 -0
- package/system/dist/builtins/local-auth/preferences-record-kinds.d.ts +27 -0
- package/system/dist/builtins/local-auth/record-kinds.d.ts +137 -0
- package/system/dist/builtins/local-auth/user-preferences-store.d.ts +56 -0
- package/system/dist/builtins/local-network/address-book.d.ts +128 -0
- package/system/dist/builtins/local-network/agent-mdns.d.ts +56 -0
- package/system/dist/builtins/local-network/hub-mdns-ciao.d.ts +7 -0
- package/system/dist/builtins/local-network/hub-mdns.d.ts +58 -0
- package/system/dist/builtins/local-network/index.d.ts +1 -0
- package/system/dist/builtins/local-network/index.js +10 -0
- package/system/dist/builtins/local-network/index.mjs +2 -0
- package/system/dist/builtins/local-network/ipv6-lan.d.ts +21 -0
- package/system/dist/builtins/local-network/local-hostname.d.ts +15 -0
- package/system/dist/builtins/local-network/local-network.addon.d.ts +334 -0
- package/system/dist/builtins/local-network/local-network.addon.js +2487 -0
- package/system/dist/builtins/local-network/local-network.addon.mjs +2466 -0
- package/system/dist/builtins/local-network/scan/dns-wire.d.ts +17 -0
- package/system/dist/builtins/local-network/scan/scan-engine.d.ts +31 -0
- package/system/dist/builtins/local-network/scan/scan-io-node.d.ts +2 -0
- package/system/dist/builtins/local-network/scan/scan-io.d.ts +56 -0
- package/system/dist/builtins/local-network/scan/subnets.d.ts +57 -0
- package/system/dist/builtins/loki-logging/index.d.ts +4 -0
- package/system/dist/builtins/loki-logging/index.js +915 -0
- package/system/dist/builtins/loki-logging/index.mjs +901 -0
- package/system/dist/builtins/loki-logging/loki-destination.d.ts +142 -0
- package/system/dist/builtins/loki-logging/loki-logging.addon.d.ts +66 -0
- package/system/dist/builtins/loki-logging/loki-payload.d.ts +100 -0
- package/system/dist/builtins/loki-logging/loki-read.d.ts +51 -0
- package/system/dist/builtins/loki-logging/retire-enabled-flag.d.ts +48 -0
- package/system/dist/builtins/native-metrics/cgroup-memory.d.ts +240 -0
- package/system/dist/builtins/native-metrics/cgroup-pids.d.ts +159 -0
- package/system/dist/builtins/native-metrics/container-memory-ring.d.ts +18 -0
- package/system/dist/builtins/native-metrics/darwin-memory.d.ts +26 -0
- package/system/dist/builtins/native-metrics/gpu-probe.d.ts +18 -0
- package/system/dist/builtins/native-metrics/index.d.ts +2 -0
- package/system/dist/builtins/native-metrics/load-series-config.d.ts +83 -0
- package/system/dist/builtins/native-metrics/load-series-reader.d.ts +63 -0
- package/system/dist/builtins/native-metrics/load-series-types.d.ts +14 -0
- package/system/dist/builtins/native-metrics/native-metrics-provider.d.ts +49 -0
- package/system/dist/builtins/native-metrics/native-metrics.addon.d.ts +233 -0
- package/system/dist/builtins/native-metrics/native-metrics.addon.js +3116 -0
- package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +3106 -0
- package/system/dist/builtins/native-metrics/node-load-ring.d.ts +212 -0
- package/system/dist/builtins/native-metrics/node-metrics-history-recorder.d.ts +155 -0
- package/system/dist/builtins/native-metrics/proc-process-table.d.ts +25 -0
- package/system/dist/builtins/native-metrics/process-classification.d.ts +110 -0
- package/system/dist/builtins/native-metrics/thread-cpu-sampler.d.ts +116 -0
- package/system/dist/builtins/platform-probe/accelerator-facts-probe.d.ts +24 -0
- package/system/dist/builtins/platform-probe/accelerator-reprobe.d.ts +23 -0
- package/system/dist/builtins/platform-probe/amd-accelerators.d.ts +15 -0
- package/system/dist/builtins/platform-probe/amd-npu.d.ts +35 -0
- package/system/dist/builtins/platform-probe/coral-accelerators.d.ts +87 -0
- package/system/dist/builtins/platform-probe/index.d.ts +57 -0
- package/system/dist/builtins/platform-probe/index.js +1151 -0
- package/system/dist/builtins/platform-probe/index.mjs +1140 -0
- package/system/dist/builtins/platform-probe/inference-config-resolver.d.ts +29 -0
- package/system/dist/builtins/platform-probe/intel-accelerators.d.ts +14 -0
- package/system/dist/builtins/platform-probe/intel-npu.d.ts +38 -0
- package/system/dist/builtins/platform-probe/platform-scorer.d.ts +66 -0
- package/system/dist/builtins/platform-probe/runtime-packages.d.ts +6 -0
- package/system/dist/builtins/platform-probe/windows-hardware.d.ts +77 -0
- package/system/dist/builtins/record-entries/entries-service.d.ts +42 -0
- package/system/dist/builtins/record-entries/index.d.ts +1 -0
- package/system/dist/builtins/record-entries/index.js +162 -0
- package/system/dist/builtins/record-entries/index.mjs +156 -0
- package/system/dist/builtins/record-entries/record-entries.addon.d.ts +13 -0
- package/system/dist/builtins/records-isolated.d.ts +10 -0
- package/system/dist/builtins/remote-access-orchestrator/enabled-providers-reconcile.d.ts +96 -0
- package/system/dist/builtins/remote-access-orchestrator/index.d.ts +1 -0
- package/system/dist/builtins/remote-access-orchestrator/index.js +8 -0
- package/system/dist/builtins/remote-access-orchestrator/index.mjs +2 -0
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.d.ts +71 -0
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +214 -0
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +208 -0
- package/system/dist/builtins/shared/device-state-changed.d.ts +16 -0
- package/system/dist/builtins/shared/settle-sources.d.ts +22 -0
- package/system/dist/builtins/snapshot/index.d.ts +2 -0
- package/system/dist/builtins/snapshot/index.js +2720 -0
- package/system/dist/builtins/snapshot/index.mjs +2713 -0
- package/system/dist/builtins/snapshot/snapshot-cache.d.ts +108 -0
- package/system/dist/builtins/snapshot/snapshot-coalescing.d.ts +135 -0
- package/system/dist/builtins/snapshot/snapshot-courtesy.d.ts +68 -0
- package/system/dist/builtins/snapshot/snapshot-durable-store.d.ts +36 -0
- package/system/dist/builtins/snapshot/snapshot-fatigue.d.ts +41 -0
- package/system/dist/builtins/snapshot/snapshot-grab-pick.d.ts +20 -0
- package/system/dist/builtins/snapshot/snapshot-link-url.d.ts +66 -0
- package/system/dist/builtins/snapshot/snapshot-media-handler.d.ts +121 -0
- package/system/dist/builtins/snapshot/snapshot-resize.d.ts +75 -0
- package/system/dist/builtins/snapshot/snapshot.addon.d.ts +581 -0
- package/system/dist/builtins/sqlite-storage/analyze-stats.d.ts +83 -0
- package/system/dist/builtins/sqlite-storage/config-store.d.ts +8 -0
- package/system/dist/builtins/sqlite-storage/database-snapshot-provider.d.ts +18 -0
- package/system/dist/builtins/sqlite-storage/device-store.d.ts +23 -0
- package/system/dist/builtins/sqlite-storage/file-host-client.d.ts +75 -0
- package/system/dist/builtins/sqlite-storage/file-host-handlers.d.ts +27 -0
- package/system/dist/builtins/sqlite-storage/file-host-protocol.d.ts +167 -0
- package/system/dist/builtins/sqlite-storage/file-host-worker.d.ts +1 -0
- package/system/dist/builtins/sqlite-storage/filesystem-browse-provider.d.ts +25 -0
- package/system/dist/builtins/sqlite-storage/filesystem-storage-provider.d.ts +83 -0
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.d.ts +33 -0
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +419 -0
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +411 -0
- package/system/dist/builtins/sqlite-storage/filter-compiler.d.ts +126 -0
- package/system/dist/builtins/sqlite-storage/index.d.ts +12 -0
- package/system/dist/builtins/sqlite-storage/index.js +82 -0
- package/system/dist/builtins/sqlite-storage/index.mjs +50 -0
- package/system/dist/builtins/sqlite-storage/integration-record-kinds.d.ts +31 -0
- package/system/dist/builtins/sqlite-storage/integration-registry.d.ts +34 -0
- package/system/dist/builtins/sqlite-storage/migrations/migration-actions.d.ts +12 -0
- package/system/dist/builtins/sqlite-storage/migrations/migration-edits.d.ts +35 -0
- package/system/dist/builtins/sqlite-storage/migrations/migration-engine.d.ts +125 -0
- package/system/dist/builtins/sqlite-storage/migrations/migration-hold.d.ts +23 -0
- package/system/dist/builtins/sqlite-storage/migrations/migration-pass.d.ts +48 -0
- package/system/dist/builtins/sqlite-storage/migrations/migration-restore-marker.d.ts +3 -0
- package/system/dist/builtins/sqlite-storage/migrations/migration-types.d.ts +151 -0
- package/system/dist/builtins/sqlite-storage/migrations/migrations-provider.d.ts +61 -0
- package/system/dist/builtins/sqlite-storage/owned-sqlite-file.d.ts +173 -0
- package/system/dist/builtins/sqlite-storage/path-guard.d.ts +11 -0
- package/system/dist/builtins/sqlite-storage/placement-errors.d.ts +60 -0
- package/system/dist/builtins/sqlite-storage/placement-router.d.ts +85 -0
- package/system/dist/builtins/sqlite-storage/prefix-range.d.ts +50 -0
- package/system/dist/builtins/sqlite-storage/query-bounds.d.ts +110 -0
- package/system/dist/builtins/sqlite-storage/query-profiler.d.ts +242 -0
- package/system/dist/builtins/sqlite-storage/records/records-catalog.d.ts +27 -0
- package/system/dist/builtins/sqlite-storage/records/records-engine-types.d.ts +48 -0
- package/system/dist/builtins/sqlite-storage/records/records-engine.d.ts +115 -0
- package/system/dist/builtins/sqlite-storage/records/records-explain.d.ts +18 -0
- package/system/dist/builtins/sqlite-storage/records/records-plan.d.ts +95 -0
- package/system/dist/builtins/sqlite-storage/records/records-probe.d.ts +33 -0
- package/system/dist/builtins/sqlite-storage/records/records-provider.d.ts +72 -0
- package/system/dist/builtins/sqlite-storage/records/records-rows.d.ts +46 -0
- package/system/dist/builtins/sqlite-storage/records/records-sql.d.ts +39 -0
- package/system/dist/builtins/sqlite-storage/retired-settings-keys.d.ts +276 -0
- package/system/dist/builtins/sqlite-storage/shm-lock-canary.d.ts +60 -0
- package/system/dist/builtins/sqlite-storage/sqlite-pragmas.d.ts +191 -0
- package/system/dist/builtins/sqlite-storage/sqlite-settings-backend.d.ts +583 -0
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.d.ts +52 -0
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +2960 -0
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +2952 -0
- package/system/dist/builtins/sqlite-storage/sqlite-snapshot-protocol.d.ts +54 -0
- package/system/dist/builtins/sqlite-storage/sqlite-snapshot-worker.d.ts +33 -0
- package/system/dist/builtins/sqlite-storage/sqlite-snapshotter.d.ts +118 -0
- package/system/dist/builtins/sqlite-storage/stale-data/stale-data-audit.d.ts +81 -0
- package/system/dist/builtins/sqlite-storage/stale-data/stale-data-ports.d.ts +17 -0
- package/system/dist/builtins/sqlite-storage/statement-shape.d.ts +64 -0
- package/system/dist/builtins/sqlite-storage/storage-admin-provider.d.ts +33 -0
- package/system/dist/builtins/sqlite-storage/table-sizes.d.ts +95 -0
- package/system/dist/builtins/sqlite-storage/vector-index-shared.d.ts +81 -0
- package/system/dist/builtins/sqlite-storage/vector-index-vec.d.ts +143 -0
- package/system/dist/builtins/sqlite-storage/vector-provider.d.ts +30 -0
- package/system/dist/builtins/sqlite-storage/wal-checkpoint-policy.d.ts +196 -0
- package/system/dist/builtins/sqlite-storage/wal-checkpoint-worker.d.ts +1 -0
- package/system/dist/builtins/sqlite-storage/wal-checkpointer.d.ts +76 -0
- package/system/dist/builtins/sqlite-storage/wal-maintenance.d.ts +130 -0
- package/system/dist/builtins/storage-orchestrator/access-guards.d.ts +43 -0
- package/system/dist/builtins/storage-orchestrator/data-store-dispatch.d.ts +39 -0
- package/system/dist/builtins/storage-orchestrator/drain-ratchet.d.ts +104 -0
- package/system/dist/builtins/storage-orchestrator/drain-state-store.d.ts +26 -0
- package/system/dist/builtins/storage-orchestrator/hub-settings-forward.d.ts +128 -0
- package/system/dist/builtins/storage-orchestrator/index.d.ts +7 -0
- package/system/dist/builtins/storage-orchestrator/index.js +11 -0
- package/system/dist/builtins/storage-orchestrator/index.mjs +2 -0
- package/system/dist/builtins/storage-orchestrator/location-class-paths.d.ts +13 -0
- package/system/dist/builtins/storage-orchestrator/location-history-recorder.d.ts +76 -0
- package/system/dist/builtins/storage-orchestrator/location-occupancy-slice.d.ts +71 -0
- package/system/dist/builtins/storage-orchestrator/location-occupancy.d.ts +19 -0
- package/system/dist/builtins/storage-orchestrator/location-protection.d.ts +20 -0
- package/system/dist/builtins/storage-orchestrator/location-repoint-move.d.ts +57 -0
- package/system/dist/builtins/storage-orchestrator/location-repointer.d.ts +97 -0
- package/system/dist/builtins/storage-orchestrator/location-root-collision.d.ts +80 -0
- package/system/dist/builtins/storage-orchestrator/location-secrets.d.ts +114 -0
- package/system/dist/builtins/storage-orchestrator/location-store.d.ts +82 -0
- package/system/dist/builtins/storage-orchestrator/location-volume-capacity.d.ts +58 -0
- package/system/dist/builtins/storage-orchestrator/provider-discovery.d.ts +24 -0
- package/system/dist/builtins/storage-orchestrator/record-kinds.d.ts +43 -0
- package/system/dist/builtins/storage-orchestrator/storage-cleanup-coordinator.d.ts +68 -0
- package/system/dist/builtins/storage-orchestrator/storage-location-band-monitor.d.ts +77 -0
- package/system/dist/builtins/storage-orchestrator/storage-migration-coordinator.d.ts +241 -0
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.d.ts +318 -0
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +5280 -0
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +5264 -0
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.service.d.ts +475 -0
- package/system/dist/builtins/storage-orchestrator/storage-pressure-manager.d.ts +115 -0
- package/system/dist/builtins/system-backup/backup-encryption.d.ts +94 -0
- package/system/dist/builtins/system-backup/system-backup.service.d.ts +308 -0
- package/system/dist/builtins/system-config/index.d.ts +2 -0
- package/system/dist/builtins/system-config/index.js +10 -0
- package/system/dist/builtins/system-config/index.mjs +2 -0
- package/system/dist/builtins/system-config/mesh-actions.d.ts +3 -0
- package/system/dist/builtins/system-config/record-kinds.d.ts +32 -0
- package/system/dist/builtins/system-config/system-config.addon.d.ts +56 -0
- package/system/dist/builtins/system-config/system-config.addon.js +89334 -0
- package/system/dist/builtins/system-config/system-config.addon.mjs +89233 -0
- package/system/dist/builtins/winston-logging/index.d.ts +3 -0
- package/system/dist/builtins/winston-logging/index.js +324 -0
- package/system/dist/builtins/winston-logging/index.mjs +313 -0
- package/system/dist/builtins/winston-logging/log-file-cursor.d.ts +12 -0
- package/system/dist/builtins/winston-logging/log-file-index-store.d.ts +11 -0
- package/system/dist/builtins/winston-logging/log-file-index.d.ts +77 -0
- package/system/dist/builtins/winston-logging/log-file-read-client.d.ts +44 -0
- package/system/dist/builtins/winston-logging/log-file-read-protocol.d.ts +41 -0
- package/system/dist/builtins/winston-logging/log-file-read-worker.d.ts +1 -0
- package/system/dist/builtins/winston-logging/log-file-reader.d.ts +51 -0
- package/system/dist/builtins/winston-logging/winston-destination.d.ts +39 -0
- package/system/dist/builtins/winston-logging/winston-logging.addon.d.ts +20 -0
- package/system/dist/chunk-CNf5ZN-e.mjs +37 -0
- package/system/dist/chunk-Cek0wNdY.js +64 -0
- package/system/dist/composition-sources-C14epb_m.js +155 -0
- package/system/dist/composition-sources-EXNuxmGQ.mjs +132 -0
- package/system/dist/constants-DIGWBiNC.mjs +20 -0
- package/system/dist/constants-M7NtSiRo.js +66 -0
- package/system/dist/coral-accelerators-BSVsBVzt.js +250 -0
- package/system/dist/coral-accelerators-DBlgWB8k.mjs +231 -0
- package/system/dist/custom-action-registry-JuMHGKEc.js +1638 -0
- package/system/dist/custom-action-registry-oHl1xltx.mjs +1482 -0
- package/system/dist/device-ca-3vmBP1i0.js +474 -0
- package/system/dist/device-ca-DZlvNBWU.mjs +367 -0
- package/system/dist/dist-DcMqHB_N.mjs +108095 -0
- package/system/dist/dist-M9yHiIY7.js +110554 -0
- package/system/dist/download/hosted-model-revisions.d.ts +10 -0
- package/system/dist/download/model-download-service.d.ts +35 -0
- package/system/dist/download/model-downloader.d.ts +156 -0
- package/system/dist/events/event-bus.d.ts +10 -0
- package/system/dist/events/system-event-bus.d.ts +14 -0
- package/system/dist/feature/feature-manager.d.ts +11 -0
- package/system/dist/file-host-worker.js +160 -0
- package/system/dist/file-host-worker.mjs +160 -0
- package/system/dist/formatter-DkYZ4LXp.mjs +162 -0
- package/system/dist/formatter-xbxeV4GD.js +167 -0
- package/system/dist/framework-resolver-hook.mjs +49 -0
- package/system/dist/http/asset-compression.d.ts +55 -0
- package/system/dist/http/authenticated-file-server.d.ts +53 -0
- package/system/dist/http/data-plane-registry.d.ts +58 -0
- package/system/dist/http/file-data-plane.d.ts +18 -0
- package/system/dist/http/lan-http-bind.d.ts +41 -0
- package/system/dist/http/reverse-proxy.d.ts +42 -0
- package/system/dist/hub-mdns-ciao-CpCKuQnK.js +1163 -0
- package/system/dist/hub-mdns-ciao-Czz2ssit.mjs +942 -0
- package/system/dist/i18n/catalog-registry.d.ts +35 -0
- package/system/dist/i18n/index.d.ts +2 -0
- package/system/dist/index.d.ts +156 -0
- package/system/dist/index.js +28736 -0
- package/system/dist/index.mjs +28065 -0
- package/system/dist/intel-accelerators-BvBjZn4j.js +16 -0
- package/system/dist/intel-accelerators-idEumqk1.mjs +15 -0
- package/system/dist/intel-npu-C8HKvRQF.mjs +27 -0
- package/system/dist/intel-npu-DYF5hO5K.js +28 -0
- package/system/dist/kernel/addon-class-resolver.d.ts +4 -0
- package/system/dist/kernel/addon-engine-manager.d.ts +22 -0
- package/system/dist/kernel/addon-health-monitor.d.ts +163 -0
- package/system/dist/kernel/addon-installer.d.ts +651 -0
- package/system/dist/kernel/addon-loader.d.ts +144 -0
- package/system/dist/kernel/addon-manifest.d.ts +128 -0
- package/system/dist/kernel/addon-refused-error.d.ts +30 -0
- package/system/dist/kernel/addon-residue.d.ts +45 -0
- package/system/dist/kernel/addon-settings-store.d.ts +43 -0
- package/system/dist/kernel/addon-version-policy.d.ts +34 -0
- package/system/dist/kernel/anon-rss.d.ts +12 -0
- package/system/dist/kernel/array-buffer-census.d.ts +118 -0
- package/system/dist/kernel/bootstrap-config.d.ts +7 -0
- package/system/dist/kernel/cap-router-builder.d.ts +180 -0
- package/system/dist/kernel/capability-handle.d.ts +46 -0
- package/system/dist/kernel/capability-registry.d.ts +621 -0
- package/system/dist/kernel/config-manager.d.ts +174 -0
- package/system/dist/kernel/config-schema.d.ts +37 -0
- package/system/dist/kernel/custom-action-registry.d.ts +32 -0
- package/system/dist/kernel/deps/addon-deps-manager.d.ts +28 -0
- package/system/dist/kernel/deps/closure-dedupe.d.ts +105 -0
- package/system/dist/kernel/deps/ensure-addon-natives.d.ts +41 -0
- package/system/dist/kernel/deps/ensure-native-prebuilds.d.ts +40 -0
- package/system/dist/kernel/deps/manifest-native-deps.d.ts +42 -0
- package/system/dist/kernel/deps/manifest-python-deps.d.ts +20 -0
- package/system/dist/kernel/deps/manifest-system-deps.d.ts +18 -0
- package/system/dist/kernel/deps/npm-command.d.ts +60 -0
- package/system/dist/kernel/deps/system-package-allowlist.d.ts +12 -0
- package/system/dist/kernel/deps/system-package-broker.d.ts +31 -0
- package/system/dist/kernel/deps/system-package-client.d.ts +9 -0
- package/system/dist/kernel/device-call-redirect.d.ts +18 -0
- package/system/dist/kernel/device-registry.d.ts +29 -0
- package/system/dist/kernel/device-settings-store.d.ts +74 -0
- package/system/dist/kernel/event-loop-stall-monitor.d.ts +41 -0
- package/system/dist/kernel/event-plane-report.d.ts +225 -0
- package/system/dist/kernel/fs-utils.d.ts +88 -0
- package/system/dist/kernel/gc-census.d.ts +161 -0
- package/system/dist/kernel/heap-spaces.d.ts +112 -0
- package/system/dist/kernel/heap-watch.d.ts +816 -0
- package/system/dist/kernel/host-externals.d.ts +12 -0
- package/system/dist/kernel/hwaccel/hwaccel-resolver.d.ts +56 -0
- package/system/dist/kernel/hwaccel/vaapi-init-probe.d.ts +29 -0
- package/system/dist/kernel/index.d.ts +116 -0
- package/system/dist/kernel/inference/inference-resolver.d.ts +22 -0
- package/system/dist/kernel/inference/local-python-runtimes.d.ts +2 -0
- package/system/dist/kernel/infra-capabilities.d.ts +13 -0
- package/system/dist/kernel/isolated-builtin-phase.d.ts +57 -0
- package/system/dist/kernel/lifecycle/job-journal.d.ts +19 -0
- package/system/dist/kernel/lifecycle/lifecycle-job-engine.d.ts +106 -0
- package/system/dist/kernel/lifecycle/staging-area.d.ts +31 -0
- package/system/dist/kernel/moleculer/accessory-prune-gate.d.ts +55 -0
- package/system/dist/kernel/moleculer/addon-context-factory.d.ts +104 -0
- package/system/dist/kernel/moleculer/addon-data-plane-facility.d.ts +19 -0
- package/system/dist/kernel/moleculer/addon-deploy-source.d.ts +16 -0
- package/system/dist/kernel/moleculer/addon-peer-bytes-facility.d.ts +25 -0
- package/system/dist/kernel/moleculer/addon-runner.d.ts +1 -0
- package/system/dist/kernel/moleculer/addon-service-factory.d.ts +50 -0
- package/system/dist/kernel/moleculer/agent-event-scope.d.ts +49 -0
- package/system/dist/kernel/moleculer/agent-ui-unlock.d.ts +67 -0
- package/system/dist/kernel/moleculer/broker-factory.d.ts +95 -0
- package/system/dist/kernel/moleculer/broker-transport-swap.d.ts +60 -0
- package/system/dist/kernel/moleculer/cap-usage-registry.d.ts +126 -0
- package/system/dist/kernel/moleculer/capabilities-access.d.ts +21 -0
- package/system/dist/kernel/moleculer/child-addon-call-dispatch.d.ts +53 -0
- package/system/dist/kernel/moleculer/child-cap-descriptors.d.ts +34 -0
- package/system/dist/kernel/moleculer/child-cap-dispatch.d.ts +59 -0
- package/system/dist/kernel/moleculer/children-batch-loader.d.ts +98 -0
- package/system/dist/kernel/moleculer/core-cap-service.d.ts +65 -0
- package/system/dist/kernel/moleculer/crash-supervisor.d.ts +50 -0
- package/system/dist/kernel/moleculer/device-cap-proxy.d.ts +70 -0
- package/system/dist/kernel/moleculer/device-event-ring.d.ts +155 -0
- package/system/dist/kernel/moleculer/event-bus-core.d.ts +198 -0
- package/system/dist/kernel/moleculer/event-bus.d.ts +106 -0
- package/system/dist/kernel/moleculer/hub-log-forwarder.d.ts +36 -0
- package/system/dist/kernel/moleculer/hub-service.d.ts +39 -0
- package/system/dist/kernel/moleculer/init-watchdog.d.ts +60 -0
- package/system/dist/kernel/moleculer/mesh-access-middleware.d.ts +42 -0
- package/system/dist/kernel/moleculer/mesh-identity.d.ts +57 -0
- package/system/dist/kernel/moleculer/mesh-mtls/constants.d.ts +17 -0
- package/system/dist/kernel/moleculer/mesh-mtls/index.d.ts +12 -0
- package/system/dist/kernel/moleculer/mesh-mtls/mesh-ca-keeper.d.ts +60 -0
- package/system/dist/kernel/moleculer/mesh-mtls/mesh-ca.d.ts +49 -0
- package/system/dist/kernel/moleculer/mesh-mtls/mesh-certificate-registry.d.ts +105 -0
- package/system/dist/kernel/moleculer/mesh-mtls/mesh-crl.d.ts +16 -0
- package/system/dist/kernel/moleculer/mesh-mtls/mesh-membership.d.ts +64 -0
- package/system/dist/kernel/moleculer/mesh-mtls/mesh-peer-transport.d.ts +47 -0
- package/system/dist/kernel/moleculer/mesh-mtls/mesh-renewal.d.ts +135 -0
- package/system/dist/kernel/moleculer/mesh-mtls/mesh-tls-enabler.d.ts +9 -0
- package/system/dist/kernel/moleculer/mesh-mtls/mesh-tls-gate.d.ts +40 -0
- package/system/dist/kernel/moleculer/mesh-mtls/pairing/agent-pairing.d.ts +214 -0
- package/system/dist/kernel/moleculer/mesh-mtls/pairing/hub-pairing.d.ts +115 -0
- package/system/dist/kernel/moleculer/mesh-mtls/pairing/index.d.ts +3 -0
- package/system/dist/kernel/moleculer/mesh-mtls/pairing/pairing-protocol.d.ts +107 -0
- package/system/dist/kernel/moleculer/mesh-mtls/tls-tcp-transporter.d.ts +242 -0
- package/system/dist/kernel/moleculer/mesh-queue-report.d.ts +51 -0
- package/system/dist/kernel/moleculer/node-registry.d.ts +146 -0
- package/system/dist/kernel/moleculer/process-context.d.ts +4 -0
- package/system/dist/kernel/moleculer/process-service.d.ts +92 -0
- package/system/dist/kernel/moleculer/provider-registry.d.ts +28 -0
- package/system/dist/kernel/moleculer/readiness-context.d.ts +67 -0
- package/system/dist/kernel/moleculer/readiness-service.d.ts +37 -0
- package/system/dist/kernel/moleculer/records-api-transport.d.ts +9 -0
- package/system/dist/kernel/moleculer/register-framework-resolver.d.ts +8 -0
- package/system/dist/kernel/moleculer/register-node-client.d.ts +49 -0
- package/system/dist/kernel/moleculer/remote-logger.d.ts +43 -0
- package/system/dist/kernel/moleculer/resilient-cap-call.d.ts +28 -0
- package/system/dist/kernel/moleculer/runner-addon-settings.d.ts +29 -0
- package/system/dist/kernel/moleculer/runner-device-settings.d.ts +39 -0
- package/system/dist/kernel/moleculer/runner-heap-flags.d.ts +228 -0
- package/system/dist/kernel/moleculer/runner-native-allocator.d.ts +107 -0
- package/system/dist/kernel/moleculer/runner-process-group.d.ts +96 -0
- package/system/dist/kernel/moleculer/runner-refusal.d.ts +27 -0
- package/system/dist/kernel/moleculer/runtime-state-load.d.ts +29 -0
- package/system/dist/kernel/moleculer/settings-read-guard.d.ts +49 -0
- package/system/dist/kernel/moleculer/stream-probe-service.d.ts +28 -0
- package/system/dist/kernel/moleculer/trpc-links.d.ts +244 -0
- package/system/dist/kernel/moleculer/typed-array-serde.d.ts +14 -0
- package/system/dist/kernel/moleculer/worker-device-restore.d.ts +10 -0
- package/system/dist/kernel/outbound-queue-watch.d.ts +94 -0
- package/system/dist/kernel/prefix-walk.d.ts +39 -0
- package/system/dist/kernel/process-cpu-census.d.ts +74 -0
- package/system/dist/kernel/provider-kind-drift.d.ts +21 -0
- package/system/dist/kernel/restart-coordinator.d.ts +90 -0
- package/system/dist/kernel/sections-store.d.ts +20 -0
- package/system/dist/kernel/settings-door-view.d.ts +41 -0
- package/system/dist/kernel/settings-read-error.d.ts +35 -0
- package/system/dist/kernel/settings-view-types.d.ts +80 -0
- package/system/dist/kernel/socket-plane-report.d.ts +268 -0
- package/system/dist/kernel/status-overlay.d.ts +38 -0
- package/system/dist/kernel/storage-location-registry.d.ts +55 -0
- package/system/dist/kernel/store-settings-view.d.ts +14 -0
- package/system/dist/kernel/system-settings-mirror.d.ts +46 -0
- package/system/dist/kernel/system-settings-policy.d.ts +28 -0
- package/system/dist/kernel/transport/cap-action-census.d.ts +218 -0
- package/system/dist/kernel/transport/cap-action-name.d.ts +100 -0
- package/system/dist/kernel/transport/cap-child-index.d.ts +49 -0
- package/system/dist/kernel/transport/cap-route-resolver.d.ts +231 -0
- package/system/dist/kernel/transport/cap-route.d.ts +168 -0
- package/system/dist/kernel/transport/cap-routing-hints.d.ts +42 -0
- package/system/dist/kernel/transport/child-cap-protocol.d.ts +307 -0
- package/system/dist/kernel/transport/claimed-get-status.d.ts +39 -0
- package/system/dist/kernel/transport/create-local-transport.d.ts +7 -0
- package/system/dist/kernel/transport/device-call-redirect.d.ts +39 -0
- package/system/dist/kernel/transport/frame-codec.d.ts +122 -0
- package/system/dist/kernel/transport/hub-cap-forward.d.ts +96 -0
- package/system/dist/kernel/transport/index.d.ts +38 -0
- package/system/dist/kernel/transport/local-child-client.d.ts +199 -0
- package/system/dist/kernel/transport/local-child-registry.d.ts +654 -0
- package/system/dist/kernel/transport/local-endpoint-path.d.ts +6 -0
- package/system/dist/kernel/transport/local-transport.d.ts +122 -0
- package/system/dist/kernel/transport/parent-unowned-call.d.ts +283 -0
- package/system/dist/kernel/transport/peer-answered-error.d.ts +21 -0
- package/system/dist/kernel/transport/socket-channel.d.ts +116 -0
- package/system/dist/kernel/transport/socket-traffic.d.ts +118 -0
- package/system/dist/kernel/transport/uds-event-bridge.d.ts +85 -0
- package/system/dist/kernel/transport/uds-event-bus.d.ts +93 -0
- package/system/dist/kernel/transport/uds-local-transport.d.ts +18 -0
- package/system/dist/kernel/transport/uds-log-ingest.d.ts +43 -0
- package/system/dist/kernel/transport/uds-logger.d.ts +44 -0
- package/system/dist/kernel/utils/ring-buffer.d.ts +15 -0
- package/system/dist/kernel/workspace-detect.d.ts +9 -0
- package/system/dist/lib-5THG9eKz.mjs +15545 -0
- package/system/dist/lib-C3U1yluo.js +7110 -0
- package/system/dist/lib-CZ3g2WTS.js +15549 -0
- package/system/dist/lib-DFZblCIu.mjs +7106 -0
- package/system/dist/lifecycle/lifecycle-state-machine.d.ts +28 -0
- package/system/dist/log-file-read-protocol-B7M3X3bT.mjs +785 -0
- package/system/dist/log-file-read-protocol-D0WcLbIV.js +817 -0
- package/system/dist/log-file-read-worker.js +64 -0
- package/system/dist/log-file-read-worker.mjs +64 -0
- package/system/dist/log-read-filter-Bi066jwU.js +134 -0
- package/system/dist/log-read-filter-D7Ev3zm-.mjs +93 -0
- package/system/dist/logging/formatter.d.ts +57 -0
- package/system/dist/logging/log-manager.d.ts +145 -0
- package/system/dist/logging/log-read-filter.d.ts +43 -0
- package/system/dist/logging/log-redactor.d.ts +30 -0
- package/system/dist/logging/log-ring-buffer.d.ts +62 -0
- package/system/dist/logging/logging-gate.d.ts +76 -0
- package/system/dist/logging/logging-gate.singleton.d.ts +16 -0
- package/system/dist/logging/partitioned-log-buffer.d.ts +169 -0
- package/system/dist/logging/scoped-logger.d.ts +17 -0
- package/system/dist/migrations/hub/index.d.ts +11 -0
- package/system/dist/ms-CgH2OFlD.mjs +120 -0
- package/system/dist/ms-LB3giGoU.js +124 -0
- package/system/dist/network/network-quality.d.ts +11 -0
- package/system/dist/notification/notification-service.d.ts +43 -0
- package/system/dist/notification/toast-service.d.ts +22 -0
- package/system/dist/pipeline/engine-manager-resolver.d.ts +15 -0
- package/system/dist/pipeline/pipeline-runner.d.ts +8 -0
- package/system/dist/pipeline/pipeline-validator.d.ts +13 -0
- package/system/dist/platform-key-source-BWlq0jjn.mjs +23 -0
- package/system/dist/platform-key-source-Di7HrlGR.js +40 -0
- package/system/dist/prefix-range-D_KueXbQ.js +27 -0
- package/system/dist/prefix-range-Dl0znowN.mjs +22 -0
- package/system/dist/prefix-walk-DAOBSyH1.mjs +88 -0
- package/system/dist/prefix-walk-Dv6MLZlM.js +99 -0
- package/system/dist/process/proc-stat.d.ts +75 -0
- package/system/dist/process/resource-monitor.d.ts +28 -0
- package/system/dist/python/python-env-manager.d.ts +12 -0
- package/system/dist/read-all-rows-CVoO1ONM.js +29 -0
- package/system/dist/read-all-rows-TaPqdWNF.mjs +25 -0
- package/system/dist/records/read-all-rows.d.ts +6 -0
- package/system/dist/repl/interfaces.d.ts +31 -0
- package/system/dist/repl/repl-engine.d.ts +8 -0
- package/system/dist/resource-monitor-Di9daRwI.mjs +96 -0
- package/system/dist/resource-monitor-mio9dSCT.js +113 -0
- package/system/dist/restore-archive-Cy7jGqiD.js +4325 -0
- package/system/dist/restore-archive-DS4nvQ43.mjs +4213 -0
- package/system/dist/retention-Dqm_EiVq.mjs +893 -0
- package/system/dist/retention-Ufa2fci-.js +1024 -0
- package/system/dist/retired-settings-keys-C8nOOr5H.js +381 -0
- package/system/dist/retired-settings-keys-u6xQA6r7.mjs +364 -0
- package/system/dist/safe-buffer-B1OjL1I9.mjs +42 -0
- package/system/dist/safe-buffer-D3aoa-7X.js +46 -0
- package/system/dist/settle-sources-Bhsy57y-.js +38 -0
- package/system/dist/settle-sources-CDtNC8ub.mjs +33 -0
- package/system/dist/snapshot-courtesy-CyFs1M3I.mjs +167 -0
- package/system/dist/snapshot-courtesy-D_C5-nC0.js +192 -0
- package/system/dist/sqlite-snapshot-protocol-2QaTouWV.mjs +34 -0
- package/system/dist/sqlite-snapshot-protocol-B9OndqZv.js +51 -0
- package/system/dist/sqlite-snapshot-worker.js +185 -0
- package/system/dist/sqlite-snapshot-worker.mjs +179 -0
- package/system/dist/src-CnAqG6EF.js +714 -0
- package/system/dist/src-hG4grMU4.mjs +709 -0
- package/system/dist/storage/fs-storage-backend.d.ts +40 -0
- package/system/dist/storage/storage-location-manager.d.ts +23 -0
- package/system/dist/storage/storage-manager.d.ts +83 -0
- package/system/dist/tls/agent-https-names.d.ts +25 -0
- package/system/dist/tls/agent-https.d.ts +111 -0
- package/system/dist/tls/boot-tls.d.ts +35 -0
- package/system/dist/tls/cert-backdate.d.ts +10 -0
- package/system/dist/tls/cert-evaluation.d.ts +41 -0
- package/system/dist/tls/cert-identity.d.ts +60 -0
- package/system/dist/tls/cert-issue.d.ts +57 -0
- package/system/dist/tls/cert-manager.d.ts +124 -0
- package/system/dist/tls/cert-name-constraints.d.ts +53 -0
- package/system/dist/tls/cert-utc-time.d.ts +1 -0
- package/system/dist/tls/https-listener.d.ts +30 -0
- package/system/dist/tls/index.d.ts +12 -0
- package/system/dist/tls/tls-actions.d.ts +49 -0
- package/system/dist/tls/tls-status.d.ts +57 -0
- package/system/dist/tls/uploaded-cert.d.ts +46 -0
- package/system/dist/wal-checkpoint-policy-BahrTtyD.mjs +186 -0
- package/system/dist/wal-checkpoint-policy-d2z2qPqx.js +233 -0
- package/system/dist/wal-checkpoint-worker.js +144 -0
- package/system/dist/wal-checkpoint-worker.mjs +143 -0
- package/system/dist/wal-maintenance-BmugbgS7.js +0 -0
- package/system/dist/wal-maintenance-Bnb2QzYG.mjs +0 -0
- package/system/dist/x509.es-BRiJgOvu.mjs +11939 -0
- package/system/dist/x509.es-WtnRNyYS.js +12076 -0
- package/system/package.json +516 -0
|
@@ -0,0 +1,1163 @@
|
|
|
1
|
+
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
2
|
+
const require_dist = require("./dist-M9yHiIY7.js");
|
|
3
|
+
const require_x509_es = require("./x509.es-WtnRNyYS.js");
|
|
4
|
+
const require_agent_https = require("./agent-https-DslXCDRW.js");
|
|
5
|
+
let node_crypto = require("node:crypto");
|
|
6
|
+
let _camstack_types_node = require("@camstack/types/node");
|
|
7
|
+
let node_fs_promises = require("node:fs/promises");
|
|
8
|
+
let node_path = require("node:path");
|
|
9
|
+
let node_fs = require("node:fs");
|
|
10
|
+
let node_tls = require("node:tls");
|
|
11
|
+
let node_http = require("node:http");
|
|
12
|
+
//#region src/http/lan-http-bind.ts
|
|
13
|
+
/**
|
|
14
|
+
* Second HTTP listener that shares the hub's existing request handler.
|
|
15
|
+
*
|
|
16
|
+
* Fastify is one protocol per instance; HTTPS stays on :4443 and this
|
|
17
|
+
* binds a plain `http.Server` that emits `request` AND `upgrade` onto the
|
|
18
|
+
* same handler graph (tRPC HTTP, cookies, data-plane, static, tRPC WS).
|
|
19
|
+
*
|
|
20
|
+
* Forwarding only `request` is not enough: the viewer speaks tRPC exclusively
|
|
21
|
+
* over WebSocket (`wsLink`). `/health` wins the LAN race, then `ws://…/trpc`
|
|
22
|
+
* hangs because nobody handles the upgrade on this socket.
|
|
23
|
+
*/
|
|
24
|
+
var DEFAULT_HTTP_PORT = 4480;
|
|
25
|
+
var handlers = null;
|
|
26
|
+
var server = null;
|
|
27
|
+
var pending = null;
|
|
28
|
+
var state = {
|
|
29
|
+
listening: false,
|
|
30
|
+
error: null,
|
|
31
|
+
port: DEFAULT_HTTP_PORT
|
|
32
|
+
};
|
|
33
|
+
var boundRequestedHost = null;
|
|
34
|
+
var DEFAULT_LAN_HTTP_PORT = DEFAULT_HTTP_PORT;
|
|
35
|
+
/** Map "all IPv4" to dual-stack IPv6 (`::`, ipv6Only false) so IPv4 still works. */
|
|
36
|
+
function allFamiliesListenHost(host) {
|
|
37
|
+
if (host === "0.0.0.0" || host === "*" || host === "") return {
|
|
38
|
+
host: "::",
|
|
39
|
+
ipv6Only: false
|
|
40
|
+
};
|
|
41
|
+
return {
|
|
42
|
+
host,
|
|
43
|
+
ipv6Only: false
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function registerLanHttpHandler(next) {
|
|
47
|
+
handlers = next;
|
|
48
|
+
}
|
|
49
|
+
function readLanHttpState() {
|
|
50
|
+
return state;
|
|
51
|
+
}
|
|
52
|
+
async function applyLanHttp(options) {
|
|
53
|
+
pending = options;
|
|
54
|
+
if (!options.enabled) {
|
|
55
|
+
await closeLanHttp();
|
|
56
|
+
state = {
|
|
57
|
+
listening: false,
|
|
58
|
+
error: null,
|
|
59
|
+
port: options.port
|
|
60
|
+
};
|
|
61
|
+
return state;
|
|
62
|
+
}
|
|
63
|
+
if (handlers === null) {
|
|
64
|
+
state = {
|
|
65
|
+
listening: false,
|
|
66
|
+
error: "HTTP listener is not registered yet",
|
|
67
|
+
port: options.port
|
|
68
|
+
};
|
|
69
|
+
return state;
|
|
70
|
+
}
|
|
71
|
+
if (server !== null && state.listening && (options.port === 0 || state.port === options.port) && boundRequestedHost === options.host) return state;
|
|
72
|
+
await closeLanHttp();
|
|
73
|
+
try {
|
|
74
|
+
const bound = await listenHttp(options.port, options.host, handlers);
|
|
75
|
+
server = bound;
|
|
76
|
+
boundRequestedHost = options.host;
|
|
77
|
+
const addr = bound.address();
|
|
78
|
+
state = {
|
|
79
|
+
listening: true,
|
|
80
|
+
error: null,
|
|
81
|
+
port: typeof addr === "object" && addr !== null ? addr.port : options.port
|
|
82
|
+
};
|
|
83
|
+
return state;
|
|
84
|
+
} catch (err) {
|
|
85
|
+
server = null;
|
|
86
|
+
state = {
|
|
87
|
+
listening: false,
|
|
88
|
+
error: err instanceof Error ? err.message : String(err),
|
|
89
|
+
port: options.port
|
|
90
|
+
};
|
|
91
|
+
return state;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
/** After the hub registers the Fastify request handler, bind whatever was pending. */
|
|
95
|
+
async function bindPendingLanHttp() {
|
|
96
|
+
if (pending === null) return applyLanHttp({
|
|
97
|
+
enabled: true,
|
|
98
|
+
port: DEFAULT_HTTP_PORT,
|
|
99
|
+
host: "0.0.0.0"
|
|
100
|
+
});
|
|
101
|
+
return applyLanHttp(pending);
|
|
102
|
+
}
|
|
103
|
+
async function closeLanHttp() {
|
|
104
|
+
const current = server;
|
|
105
|
+
server = null;
|
|
106
|
+
boundRequestedHost = null;
|
|
107
|
+
if (current === null) return;
|
|
108
|
+
await new Promise((resolve) => {
|
|
109
|
+
current.close(() => resolve());
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
function listenHttp(port, host, next) {
|
|
113
|
+
const resolved = allFamiliesListenHost(host);
|
|
114
|
+
return listenOn(port, resolved, next).catch((err) => {
|
|
115
|
+
if (resolved.host === "::" && host !== "::") return listenOn(port, {
|
|
116
|
+
host: "0.0.0.0",
|
|
117
|
+
ipv6Only: false
|
|
118
|
+
}, next);
|
|
119
|
+
throw err;
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
function listenOn(port, bind, next) {
|
|
123
|
+
return new Promise((resolve, reject) => {
|
|
124
|
+
const created = (0, node_http.createServer)(next.onRequest);
|
|
125
|
+
created.on("upgrade", next.onUpgrade);
|
|
126
|
+
const onError = (err) => {
|
|
127
|
+
created.off("listening", onListening);
|
|
128
|
+
created.close();
|
|
129
|
+
reject(err);
|
|
130
|
+
};
|
|
131
|
+
const onListening = () => {
|
|
132
|
+
created.off("error", onError);
|
|
133
|
+
resolve(created);
|
|
134
|
+
};
|
|
135
|
+
created.once("error", onError);
|
|
136
|
+
created.once("listening", onListening);
|
|
137
|
+
created.listen({
|
|
138
|
+
port,
|
|
139
|
+
host: bind.host,
|
|
140
|
+
ipv6Only: bind.ipv6Only
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
//#endregion
|
|
145
|
+
//#region src/tls/cert-manager.ts
|
|
146
|
+
var DEFAULT_COMMON_NAME = "camstack.local";
|
|
147
|
+
/**
|
|
148
|
+
* Ensure the hub has a usable TLS identity under `<dataDir>/tls`, made of
|
|
149
|
+
* a long-lived local **root** (`camstack-ca.crt`) and a short **leaf**
|
|
150
|
+
* chained to it (`camstack.crt` = leaf + root, `camstack.key`).
|
|
151
|
+
*
|
|
152
|
+
* ## The regeneration rule (D227)
|
|
153
|
+
*
|
|
154
|
+
* Reissue happens when, and only when, the material on disk **cannot do
|
|
155
|
+
* its job**:
|
|
156
|
+
*
|
|
157
|
+
* - it is absent, unreadable, or the key does not match the certificate;
|
|
158
|
+
* - the root is absent (every pre-2026-08 install: one self-signed
|
|
159
|
+
* `CA:TRUE` leaf and no root) or is inside its renewal window;
|
|
160
|
+
* - the leaf is inside its 30-day renewal window;
|
|
161
|
+
* - the leaf lacks `extendedKeyUsage = serverAuth` — Apple's trustd
|
|
162
|
+
* rejects an app-supplied anchor without it;
|
|
163
|
+
* - the leaf is not actually issued by the root on disk;
|
|
164
|
+
* - the leaf's validity span exceeds {@link MAX_LEAF_VALIDITY_DAYS};
|
|
165
|
+
* - **a name or address the hub must answer for is missing from the SAN
|
|
166
|
+
* list** — a DHCP move, a new interface or a new hostname.
|
|
167
|
+
*
|
|
168
|
+
* And explicitly NOT when: the certificate names an address the machine
|
|
169
|
+
* no longer has (a superset still works — the check is one-directional),
|
|
170
|
+
* a volatile interface (docker/VPN/mesh) or **any** IPv6 address changed
|
|
171
|
+
* (global and ULA both rotate under privacy extensions / interface-id
|
|
172
|
+
* churn — `os` cannot tell temporary from permanent), or a new build shipped.
|
|
173
|
+
*
|
|
174
|
+
* Every trigger is derived from the files plus the machine, so once a
|
|
175
|
+
* reissue clears them it clears them for good: the next boot returns
|
|
176
|
+
* `generated: false`. A certificate that moved on every boot would
|
|
177
|
+
* invalidate every trust an operator granted by hand — worse than the
|
|
178
|
+
* bugs this rule fixes.
|
|
179
|
+
*
|
|
180
|
+
* **The root is rotated only for root-level reasons.** SAN drift rotates
|
|
181
|
+
* the leaf alone, so trust granted to `camstack-ca.crt` survives every
|
|
182
|
+
* address change the hub will ever see.
|
|
183
|
+
*/
|
|
184
|
+
async function ensureTlsCert(dataDir, options) {
|
|
185
|
+
const tlsDir = (0, node_path.join)(dataDir, "tls");
|
|
186
|
+
const paths = {
|
|
187
|
+
certPath: (0, node_path.join)(tlsDir, "camstack.crt"),
|
|
188
|
+
keyPath: (0, node_path.join)(tlsDir, "camstack.key"),
|
|
189
|
+
caCertPath: (0, node_path.join)(tlsDir, "camstack-ca.crt"),
|
|
190
|
+
caKeyPath: (0, node_path.join)(tlsDir, "camstack-ca.key")
|
|
191
|
+
};
|
|
192
|
+
const commonName = options?.commonName ?? DEFAULT_COMMON_NAME;
|
|
193
|
+
const validDays = Math.min(options?.validDays ?? 397, 397);
|
|
194
|
+
const rawIdentity = require_agent_https.collectCertIdentity({
|
|
195
|
+
commonName,
|
|
196
|
+
extraSans: options?.extraSans ?? [],
|
|
197
|
+
...options?.hostFacts === void 0 ? {} : { hostFacts: options.hostFacts }
|
|
198
|
+
});
|
|
199
|
+
const onDisk = constrainToDiskCa(paths, rawIdentity);
|
|
200
|
+
const reason = decideRegeneration(paths, onDisk.identity);
|
|
201
|
+
if (reason === null) return describe(paths, false, null, false, null, null, onDisk.dropped);
|
|
202
|
+
const previousFingerprint = readFingerprint(paths.certPath);
|
|
203
|
+
const caRotated = require_agent_https.reasonRequiresNewCa(reason);
|
|
204
|
+
(0, node_fs.mkdirSync)(tlsDir, { recursive: true });
|
|
205
|
+
let dropped = [];
|
|
206
|
+
try {
|
|
207
|
+
dropped = await regenerate(paths, rawIdentity, {
|
|
208
|
+
commonName,
|
|
209
|
+
caCommonName: require_agent_https.localCaCommonName(options?.hubName),
|
|
210
|
+
validDays,
|
|
211
|
+
newCa: caRotated,
|
|
212
|
+
reason
|
|
213
|
+
});
|
|
214
|
+
} catch (err) {
|
|
215
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
216
|
+
if (!canKeepServing(paths)) throw err;
|
|
217
|
+
return describe(paths, false, null, false, null, message, onDisk.dropped);
|
|
218
|
+
}
|
|
219
|
+
return describe(paths, true, reason, caRotated, previousFingerprint, null, dropped);
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* Operator "Regenerate": issue a new leaf under the existing local CA.
|
|
223
|
+
* Never rotates the root — trust granted to `camstack-ca.crt` survives.
|
|
224
|
+
*/
|
|
225
|
+
async function reissueTlsLeaf(dataDir, options) {
|
|
226
|
+
const tlsDir = (0, node_path.join)(dataDir, "tls");
|
|
227
|
+
const paths = {
|
|
228
|
+
certPath: (0, node_path.join)(tlsDir, "camstack.crt"),
|
|
229
|
+
keyPath: (0, node_path.join)(tlsDir, "camstack.key"),
|
|
230
|
+
caCertPath: (0, node_path.join)(tlsDir, "camstack-ca.crt"),
|
|
231
|
+
caKeyPath: (0, node_path.join)(tlsDir, "camstack-ca.key")
|
|
232
|
+
};
|
|
233
|
+
if (!(0, node_fs.existsSync)(paths.caCertPath) || !(0, node_fs.existsSync)(paths.caKeyPath)) return ensureTlsCert(dataDir, options);
|
|
234
|
+
const commonName = options?.commonName ?? DEFAULT_COMMON_NAME;
|
|
235
|
+
const validDays = Math.min(options?.validDays ?? 397, 397);
|
|
236
|
+
const identity = require_agent_https.collectCertIdentity({
|
|
237
|
+
commonName,
|
|
238
|
+
extraSans: options?.extraSans ?? [],
|
|
239
|
+
...options?.hostFacts === void 0 ? {} : { hostFacts: options.hostFacts }
|
|
240
|
+
});
|
|
241
|
+
const previousFingerprint = readFingerprint(paths.certPath);
|
|
242
|
+
(0, node_fs.mkdirSync)(tlsDir, { recursive: true });
|
|
243
|
+
return describe(paths, true, "san-coverage-gap", false, previousFingerprint, null, await regenerate(paths, identity, {
|
|
244
|
+
commonName,
|
|
245
|
+
caCommonName: require_agent_https.localCaCommonName(options?.hubName),
|
|
246
|
+
validDays,
|
|
247
|
+
newCa: false,
|
|
248
|
+
reason: null
|
|
249
|
+
}));
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* Uploaded mode keeps a generated CA beside the upload (agents' leaves are still signed
|
|
253
|
+
* by it). When that CA is unconstrained, replace it alone (D873): the served pair is the
|
|
254
|
+
* operator's and is never touched. Returns whether the CA was replaced.
|
|
255
|
+
*/
|
|
256
|
+
async function replaceUnconstrainedLocalCa(dataDir, options) {
|
|
257
|
+
const tlsDir = (0, node_path.join)(dataDir, "tls");
|
|
258
|
+
const paths = {
|
|
259
|
+
certPath: (0, node_path.join)(tlsDir, "camstack.crt"),
|
|
260
|
+
keyPath: (0, node_path.join)(tlsDir, "camstack.key"),
|
|
261
|
+
caCertPath: (0, node_path.join)(tlsDir, "camstack-ca.crt"),
|
|
262
|
+
caKeyPath: (0, node_path.join)(tlsDir, "camstack-ca.key")
|
|
263
|
+
};
|
|
264
|
+
if (!(0, node_fs.existsSync)(paths.caCertPath) || !(0, node_fs.existsSync)(paths.caKeyPath)) return false;
|
|
265
|
+
try {
|
|
266
|
+
if (require_agent_https.isConstrainedCa(new require_x509_es.X509Certificate((0, node_fs.readFileSync)(paths.caCertPath, "utf-8")))) return false;
|
|
267
|
+
} catch {
|
|
268
|
+
return false;
|
|
269
|
+
}
|
|
270
|
+
const identity = require_agent_https.collectCertIdentity({
|
|
271
|
+
commonName: options?.commonName ?? DEFAULT_COMMON_NAME,
|
|
272
|
+
extraSans: options?.extraSans ?? [],
|
|
273
|
+
...options?.hostFacts === void 0 ? {} : { hostFacts: options.hostFacts }
|
|
274
|
+
});
|
|
275
|
+
const ca = await require_agent_https.generateCa(/* @__PURE__ */ new Date(), identity.dnsNames, require_agent_https.localCaCommonName(options?.hubName));
|
|
276
|
+
archivePreviousCa(paths, ca);
|
|
277
|
+
await (0, node_fs_promises.writeFile)(`${paths.caCertPath}.new`, ca.certPem, "utf-8");
|
|
278
|
+
(0, _camstack_types_node.writeOwnerOnlyFileSync)(`${paths.caKeyPath}.new`, ca.keyPem);
|
|
279
|
+
(0, node_fs.renameSync)(`${paths.caCertPath}.new`, paths.caCertPath);
|
|
280
|
+
(0, node_fs.renameSync)(`${paths.caKeyPath}.new`, paths.caKeyPath);
|
|
281
|
+
return true;
|
|
282
|
+
}
|
|
283
|
+
/** True when the material already on disk can still terminate TLS. */
|
|
284
|
+
function canKeepServing(paths) {
|
|
285
|
+
if (!(0, node_fs.existsSync)(paths.certPath) || !(0, node_fs.existsSync)(paths.keyPath)) return false;
|
|
286
|
+
if (!(0, node_fs.existsSync)(paths.caCertPath)) return false;
|
|
287
|
+
return readFingerprint(paths.certPath) !== null;
|
|
288
|
+
}
|
|
289
|
+
/** Fingerprint of whatever is on disk, or `null` if there is nothing readable. */
|
|
290
|
+
function readFingerprint(certPath) {
|
|
291
|
+
try {
|
|
292
|
+
return new node_crypto.X509Certificate((0, node_fs.readFileSync)(certPath)).fingerprint256;
|
|
293
|
+
} catch {
|
|
294
|
+
return null;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
function decideRegeneration(paths, identity) {
|
|
298
|
+
if (!(0, node_fs.existsSync)(paths.certPath) || !(0, node_fs.existsSync)(paths.keyPath)) return "missing";
|
|
299
|
+
if (!(0, node_fs.existsSync)(paths.caCertPath) || !(0, node_fs.existsSync)(paths.caKeyPath)) return "no-local-ca";
|
|
300
|
+
try {
|
|
301
|
+
return require_agent_https.evaluateExistingCert({
|
|
302
|
+
chainPem: (0, node_fs.readFileSync)(paths.certPath, "utf-8"),
|
|
303
|
+
keyPem: (0, node_fs.readFileSync)(paths.keyPath, "utf-8"),
|
|
304
|
+
caPem: (0, node_fs.readFileSync)(paths.caCertPath, "utf-8"),
|
|
305
|
+
identity,
|
|
306
|
+
now: /* @__PURE__ */ new Date()
|
|
307
|
+
});
|
|
308
|
+
} catch {
|
|
309
|
+
return "unreadable";
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
async function regenerate(paths, rawIdentity, params) {
|
|
313
|
+
const { commonName, caCommonName, validDays, newCa, reason } = params;
|
|
314
|
+
const now = /* @__PURE__ */ new Date();
|
|
315
|
+
const ca = newCa ? await require_agent_https.generateCa(now, rawIdentity.dnsNames, caCommonName) : await require_agent_https.loadCa((0, node_fs.readFileSync)(paths.caCertPath, "utf-8"), (0, node_fs.readFileSync)(paths.caKeyPath, "utf-8"));
|
|
316
|
+
const constraints = require_agent_https.readNameConstraints(ca.cert);
|
|
317
|
+
const { identity, dropped } = constraints === null ? {
|
|
318
|
+
identity: rawIdentity,
|
|
319
|
+
dropped: []
|
|
320
|
+
} : require_agent_https.permitsIdentity(constraints, rawIdentity);
|
|
321
|
+
const leaf = await require_agent_https.issueLeaf(ca, identity, commonName, validDays, now);
|
|
322
|
+
const chainPem = `${leaf.certPem.trimEnd()}\n${ca.certPem.trimEnd()}\n`;
|
|
323
|
+
if (newCa) {
|
|
324
|
+
if (reason === "ca-unconstrained") archivePreviousCa(paths, ca);
|
|
325
|
+
await (0, node_fs_promises.writeFile)(`${paths.caCertPath}.new`, ca.certPem, "utf-8");
|
|
326
|
+
(0, _camstack_types_node.writeOwnerOnlyFileSync)(`${paths.caKeyPath}.new`, ca.keyPem);
|
|
327
|
+
(0, node_fs.renameSync)(`${paths.caCertPath}.new`, paths.caCertPath);
|
|
328
|
+
(0, node_fs.renameSync)(`${paths.caKeyPath}.new`, paths.caKeyPath);
|
|
329
|
+
}
|
|
330
|
+
(0, _camstack_types_node.writeOwnerOnlyFileSync)(`${paths.keyPath}.new`, leaf.keyPem);
|
|
331
|
+
await (0, node_fs_promises.writeFile)(`${paths.certPath}.new`, chainPem, "utf-8");
|
|
332
|
+
(0, node_fs.renameSync)(`${paths.keyPath}.new`, paths.keyPath);
|
|
333
|
+
(0, node_fs.renameSync)(`${paths.certPath}.new`, paths.certPath);
|
|
334
|
+
return dropped;
|
|
335
|
+
}
|
|
336
|
+
/** The identity as far as the CA on disk may certify it; unchanged while that CA is absent or unconstrained. */
|
|
337
|
+
function constrainToDiskCa(paths, identity) {
|
|
338
|
+
try {
|
|
339
|
+
const constraints = require_agent_https.readNameConstraints(new require_x509_es.X509Certificate((0, node_fs.readFileSync)(paths.caCertPath, "utf-8")));
|
|
340
|
+
return constraints === null ? {
|
|
341
|
+
identity,
|
|
342
|
+
dropped: []
|
|
343
|
+
} : require_agent_https.permitsIdentity(constraints, identity);
|
|
344
|
+
} catch {
|
|
345
|
+
return {
|
|
346
|
+
identity,
|
|
347
|
+
dropped: []
|
|
348
|
+
};
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
/**
|
|
352
|
+
* One-time replacement of an UNCONSTRAINED generated CA (D873): keep the old material
|
|
353
|
+
* beside the new one until the new leaf is serving (`retirePreviousLocalCa`), and write the
|
|
354
|
+
* marker the admin UI reads to tell the operator that clients must re-trust the CA.
|
|
355
|
+
*/
|
|
356
|
+
function archivePreviousCa(paths, replacement) {
|
|
357
|
+
if (!(0, node_fs.existsSync)(paths.caCertPath)) return;
|
|
358
|
+
const previousCert = `${paths.caCertPath}.previous`;
|
|
359
|
+
const previousKey = `${paths.caKeyPath}.previous`;
|
|
360
|
+
(0, node_fs.copyFileSync)(paths.caCertPath, previousCert);
|
|
361
|
+
if ((0, node_fs.existsSync)(paths.caKeyPath)) (0, node_fs.copyFileSync)(paths.caKeyPath, previousKey);
|
|
362
|
+
const previousFingerprint = readFingerprint(paths.caCertPath);
|
|
363
|
+
(0, _camstack_types_node.writeOwnerOnlyFileSync)((0, node_path.join)((0, node_path.dirname)(paths.caCertPath), "ca-replaced.json"), `${JSON.stringify({
|
|
364
|
+
replacedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
365
|
+
previousFingerprintSha256: previousFingerprint,
|
|
366
|
+
fingerprintSha256: new node_crypto.X509Certificate(replacement.certPem).fingerprint256
|
|
367
|
+
})}\n`);
|
|
368
|
+
}
|
|
369
|
+
/** Marker path for the status reader and the retire step. */
|
|
370
|
+
function caReplacementMarkerFile(dataDir) {
|
|
371
|
+
return (0, node_path.join)(dataDir, "tls", "ca-replaced.json");
|
|
372
|
+
}
|
|
373
|
+
/**
|
|
374
|
+
* Called once the HTTPS listener serves the leaf of the replacement CA: drop the retired
|
|
375
|
+
* unconstrained CA, key first. Idempotent; returns whether anything was removed.
|
|
376
|
+
*/
|
|
377
|
+
function retirePreviousLocalCa(dataDir) {
|
|
378
|
+
const base = (0, node_path.join)(dataDir, "tls", "camstack-ca");
|
|
379
|
+
const present = [`${base}.key.previous`, `${base}.crt.previous`].filter((file) => (0, node_fs.existsSync)(file));
|
|
380
|
+
for (const file of present) (0, node_fs.rmSync)(file, { force: true });
|
|
381
|
+
return present.length > 0;
|
|
382
|
+
}
|
|
383
|
+
function describe(paths, generated, reason, caRotated, previousFingerprintSha256, reissueError, droppedNames) {
|
|
384
|
+
const leaf = new node_crypto.X509Certificate((0, node_fs.readFileSync)(paths.certPath));
|
|
385
|
+
const ca = new node_crypto.X509Certificate((0, node_fs.readFileSync)(paths.caCertPath));
|
|
386
|
+
const san = leaf.subjectAltName ?? "";
|
|
387
|
+
return {
|
|
388
|
+
...paths,
|
|
389
|
+
generated,
|
|
390
|
+
reason,
|
|
391
|
+
caRotated,
|
|
392
|
+
fingerprintSha256: leaf.fingerprint256,
|
|
393
|
+
previousFingerprintSha256,
|
|
394
|
+
caFingerprintSha256: ca.fingerprint256,
|
|
395
|
+
validTo: new Date(leaf.validTo).toISOString(),
|
|
396
|
+
sans: san === "" ? [] : san.split(", "),
|
|
397
|
+
droppedNames,
|
|
398
|
+
reissueError
|
|
399
|
+
};
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
* Load TLS cert+key from files. Returns Buffers suitable for Node.js TLS
|
|
403
|
+
* options. `certPath` is a full chain, so the listener presents the local
|
|
404
|
+
* root alongside the leaf.
|
|
405
|
+
*/
|
|
406
|
+
function loadTlsCert(certPath, keyPath) {
|
|
407
|
+
return {
|
|
408
|
+
cert: (0, node_fs.readFileSync)(certPath),
|
|
409
|
+
key: (0, node_fs.readFileSync)(keyPath)
|
|
410
|
+
};
|
|
411
|
+
}
|
|
412
|
+
//#endregion
|
|
413
|
+
//#region src/tls/uploaded-cert.ts
|
|
414
|
+
var MESSAGES = {
|
|
415
|
+
"tls.cert-unparsable": "Certificate PEM could not be parsed.",
|
|
416
|
+
"tls.key-unparsable": "Private key PEM could not be parsed.",
|
|
417
|
+
"tls.key-mismatch": "Private key does not match the certificate.",
|
|
418
|
+
"tls.missing-server-auth": "Certificate is missing extendedKeyUsage = serverAuth.",
|
|
419
|
+
"tls.ca-required": "This certificate was not issued by a public certificate authority, so its CA certificate is required: devices need it to trust the hub. Paste the CA certificate (for mkcert, the rootCA.pem in the folder `mkcert -CAROOT` prints).",
|
|
420
|
+
"tls.ca-unparsable": "The CA certificate could not be parsed.",
|
|
421
|
+
"tls.ca-not-issuer": "The certificate was not issued by the CA certificate you supplied.",
|
|
422
|
+
"tls.ca-not-a-ca": "The supplied CA certificate is not a certificate authority (CA:TRUE is missing).",
|
|
423
|
+
"tls.ca-expired": "The supplied CA certificate has expired or is not valid yet."
|
|
424
|
+
};
|
|
425
|
+
function failure(code) {
|
|
426
|
+
return {
|
|
427
|
+
ok: false,
|
|
428
|
+
code,
|
|
429
|
+
error: MESSAGES[code]
|
|
430
|
+
};
|
|
431
|
+
}
|
|
432
|
+
/**
|
|
433
|
+
* Operator-supplied material must parse, match its key, and carry
|
|
434
|
+
* `extendedKeyUsage = serverAuth` — the same leaf defects D227 refused
|
|
435
|
+
* to keep generating.
|
|
436
|
+
*/
|
|
437
|
+
function validateUploadedTls(certPem, keyPem) {
|
|
438
|
+
let leaf;
|
|
439
|
+
try {
|
|
440
|
+
leaf = new node_crypto.X509Certificate(certPem);
|
|
441
|
+
} catch {
|
|
442
|
+
return failure("tls.cert-unparsable");
|
|
443
|
+
}
|
|
444
|
+
try {
|
|
445
|
+
if (!leaf.checkPrivateKey((0, node_crypto.createPrivateKey)(keyPem))) return failure("tls.key-mismatch");
|
|
446
|
+
} catch {
|
|
447
|
+
return failure("tls.key-unparsable");
|
|
448
|
+
}
|
|
449
|
+
const eku = leaf.keyUsage;
|
|
450
|
+
if (eku === void 0 || !eku.includes("1.3.6.1.5.5.7.3.1")) return failure("tls.missing-server-auth");
|
|
451
|
+
return {
|
|
452
|
+
ok: true,
|
|
453
|
+
fingerprintSha256: leaf.fingerprint256,
|
|
454
|
+
validTo: new Date(leaf.validTo).toISOString()
|
|
455
|
+
};
|
|
456
|
+
}
|
|
457
|
+
/** Every certificate in a PEM bundle, in order. */
|
|
458
|
+
function pemCertificates(pem) {
|
|
459
|
+
const blocks = pem.match(/-----BEGIN CERTIFICATE-----[\s\S]+?-----END CERTIFICATE-----/g);
|
|
460
|
+
return blocks === null ? [] : blocks.map((block) => `${block}\n`);
|
|
461
|
+
}
|
|
462
|
+
function parseAll(pems) {
|
|
463
|
+
const parsed = [];
|
|
464
|
+
for (const pem of pems) try {
|
|
465
|
+
parsed.push(new node_crypto.X509Certificate(pem));
|
|
466
|
+
} catch {}
|
|
467
|
+
return parsed;
|
|
468
|
+
}
|
|
469
|
+
function issuedBy(child, issuer) {
|
|
470
|
+
try {
|
|
471
|
+
return child.checkIssued(issuer) && child.verify(issuer.publicKey);
|
|
472
|
+
} catch {
|
|
473
|
+
return false;
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
var defaultPublicRoots;
|
|
477
|
+
/** The trust anchors of public CAs that ship with Node. */
|
|
478
|
+
function publicRootCertificates() {
|
|
479
|
+
defaultPublicRoots ??= parseAll(node_tls.rootCertificates);
|
|
480
|
+
return defaultPublicRoots;
|
|
481
|
+
}
|
|
482
|
+
/**
|
|
483
|
+
* True when the served chain leads to a public CA that clients already trust:
|
|
484
|
+
* the leaf, or one of the chain's own certificates, is signed by a public root.
|
|
485
|
+
* Such a certificate needs nothing installed on a device, so no CA is required.
|
|
486
|
+
*/
|
|
487
|
+
function chainsToPublicRoot(chainPem, roots = publicRootCertificates()) {
|
|
488
|
+
const [leaf, ...rest] = parseAll(pemCertificates(chainPem));
|
|
489
|
+
if (leaf === void 0) return false;
|
|
490
|
+
let current = leaf;
|
|
491
|
+
const pool = [...rest];
|
|
492
|
+
for (let depth = 0; depth < 8; depth += 1) {
|
|
493
|
+
if (roots.some((root) => issuedBy(current, root))) return true;
|
|
494
|
+
const next = pool.find((candidate) => candidate !== current && issuedBy(current, candidate));
|
|
495
|
+
if (next === void 0) return false;
|
|
496
|
+
pool.splice(pool.indexOf(next), 1);
|
|
497
|
+
current = next;
|
|
498
|
+
}
|
|
499
|
+
return false;
|
|
500
|
+
}
|
|
501
|
+
/** Is `cert` a usable CA at `now`? */
|
|
502
|
+
function caProblem(cert, now) {
|
|
503
|
+
if (!cert.ca) return "tls.ca-not-a-ca";
|
|
504
|
+
if (now < new Date(cert.validFrom) || now > new Date(cert.validTo)) return "tls.ca-expired";
|
|
505
|
+
return null;
|
|
506
|
+
}
|
|
507
|
+
/**
|
|
508
|
+
* The CA rule for an upload (D873). A CA the operator supplies must parse, be a CA, be in
|
|
509
|
+
* date and actually have signed the leaf. Without one, the upload is accepted only when
|
|
510
|
+
* its own chain carries the issuer or leads to a public root; anything else is refused,
|
|
511
|
+
* because a device cannot be told to trust a certificate nobody can hand it the CA of.
|
|
512
|
+
*/
|
|
513
|
+
function checkUploadedCa(chainPem, caPem, options) {
|
|
514
|
+
const now = options?.now ?? /* @__PURE__ */ new Date();
|
|
515
|
+
const [leaf, ...chainRest] = parseAll(pemCertificates(chainPem));
|
|
516
|
+
if (leaf === void 0) return failure("tls.cert-unparsable");
|
|
517
|
+
if (caPem !== void 0 && caPem.trim() !== "") {
|
|
518
|
+
const candidates = parseAll(pemCertificates(caPem));
|
|
519
|
+
if (candidates.length === 0) return failure("tls.ca-unparsable");
|
|
520
|
+
return pickIssuer(leaf, candidates, now, chainPem, options?.publicRoots);
|
|
521
|
+
}
|
|
522
|
+
const fromChain = chainRest.filter((cert) => issuedBy(leaf, cert));
|
|
523
|
+
if (fromChain.length > 0) return pickIssuer(leaf, fromChain, now, chainPem, options?.publicRoots);
|
|
524
|
+
if (chainsToPublicRoot(chainPem, options?.publicRoots)) return {
|
|
525
|
+
ok: true,
|
|
526
|
+
issuerPem: null,
|
|
527
|
+
publicChain: true
|
|
528
|
+
};
|
|
529
|
+
return failure("tls.ca-required");
|
|
530
|
+
}
|
|
531
|
+
function pickIssuer(leaf, candidates, now, chainPem, publicRoots) {
|
|
532
|
+
const signers = candidates.filter((candidate) => issuedBy(leaf, candidate));
|
|
533
|
+
if (signers.length === 0) return failure("tls.ca-not-issuer");
|
|
534
|
+
let firstProblem = null;
|
|
535
|
+
for (const signer of signers) {
|
|
536
|
+
const problem = caProblem(signer, now);
|
|
537
|
+
if (problem === null) return {
|
|
538
|
+
ok: true,
|
|
539
|
+
issuerPem: `${signer.toString().trimEnd()}\n`,
|
|
540
|
+
publicChain: chainsToPublicRoot(chainPem, publicRoots)
|
|
541
|
+
};
|
|
542
|
+
firstProblem ??= problem;
|
|
543
|
+
}
|
|
544
|
+
return failure(firstProblem ?? "tls.ca-not-issuer");
|
|
545
|
+
}
|
|
546
|
+
//#endregion
|
|
547
|
+
//#region src/tls/tls-status.ts
|
|
548
|
+
function tlsDir(dataDir) {
|
|
549
|
+
return (0, node_path.join)(dataDir, "tls");
|
|
550
|
+
}
|
|
551
|
+
function readTlsMode(dataDir) {
|
|
552
|
+
const marker = (0, node_path.join)(tlsDir(dataDir), "mode");
|
|
553
|
+
if ((0, node_fs.existsSync)(marker)) {
|
|
554
|
+
const raw = (0, node_fs.readFileSync)(marker, "utf-8").trim();
|
|
555
|
+
if (raw === "uploaded") return "uploaded";
|
|
556
|
+
if (raw === "disabled") return "disabled";
|
|
557
|
+
}
|
|
558
|
+
return (0, node_fs.existsSync)((0, node_path.join)(tlsDir(dataDir), "camstack.crt")) ? "generated" : "disabled";
|
|
559
|
+
}
|
|
560
|
+
function writeTlsMode(dataDir, mode) {
|
|
561
|
+
(0, node_fs.mkdirSync)(tlsDir(dataDir), { recursive: true });
|
|
562
|
+
(0, node_fs.writeFileSync)((0, node_path.join)(tlsDir(dataDir), "mode"), `${mode}\n`, "utf-8");
|
|
563
|
+
}
|
|
564
|
+
/**
|
|
565
|
+
* Does the listener serve HTTPS? The `tlsEnabled` setting of the `local-network`
|
|
566
|
+
* addon (Network → Local access) is mirrored here on every settings apply, because
|
|
567
|
+
* the listener is built before the settings database opens. Absent — first boot,
|
|
568
|
+
* or a lost marker — means HTTPS: only an explicit `false` turns it off.
|
|
569
|
+
*/
|
|
570
|
+
function readTlsEnabled(dataDir) {
|
|
571
|
+
const marker = (0, node_path.join)(tlsDir(dataDir), "enabled");
|
|
572
|
+
if (!(0, node_fs.existsSync)(marker)) return true;
|
|
573
|
+
return (0, node_fs.readFileSync)(marker, "utf-8").trim() !== "false";
|
|
574
|
+
}
|
|
575
|
+
function writeTlsEnabled(dataDir, enabled) {
|
|
576
|
+
(0, node_fs.mkdirSync)(tlsDir(dataDir), { recursive: true });
|
|
577
|
+
(0, node_fs.writeFileSync)((0, node_path.join)(tlsDir(dataDir), "enabled"), `${enabled ? "true" : "false"}\n`, "utf-8");
|
|
578
|
+
}
|
|
579
|
+
function readExtraSans(dataDir) {
|
|
580
|
+
const path = (0, node_path.join)(tlsDir(dataDir), "extra-sans.json");
|
|
581
|
+
if (!(0, node_fs.existsSync)(path)) return [];
|
|
582
|
+
try {
|
|
583
|
+
const parsed = JSON.parse((0, node_fs.readFileSync)(path, "utf-8"));
|
|
584
|
+
if (!Array.isArray(parsed)) return [];
|
|
585
|
+
return parsed.filter((entry) => typeof entry === "string" && entry.length > 0);
|
|
586
|
+
} catch {
|
|
587
|
+
return [];
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
function writeExtraSans(dataDir, sans) {
|
|
591
|
+
(0, node_fs.mkdirSync)(tlsDir(dataDir), { recursive: true });
|
|
592
|
+
(0, node_fs.writeFileSync)((0, node_path.join)(tlsDir(dataDir), "extra-sans.json"), `${JSON.stringify(sans)}\n`, "utf-8");
|
|
593
|
+
}
|
|
594
|
+
/** The kept copy of the last upload: the chain and key as the operator supplied them. */
|
|
595
|
+
var STORED_UPLOAD_CERT_FILE = "uploaded.crt";
|
|
596
|
+
var STORED_UPLOAD_KEY_FILE = "uploaded.key";
|
|
597
|
+
var CA_REPLACED_MARKER_FILE = "ca-replaced.json";
|
|
598
|
+
function readStoredUpload(dir) {
|
|
599
|
+
const certPath = (0, node_path.join)(dir, STORED_UPLOAD_CERT_FILE);
|
|
600
|
+
if (!(0, node_fs.existsSync)(certPath) || !(0, node_fs.existsSync)((0, node_path.join)(dir, "uploaded.key"))) return null;
|
|
601
|
+
try {
|
|
602
|
+
const leaf = new node_crypto.X509Certificate((0, node_fs.readFileSync)(certPath, "utf-8"));
|
|
603
|
+
return {
|
|
604
|
+
leafFingerprintSha256: leaf.fingerprint256,
|
|
605
|
+
validTo: new Date(leaf.validTo).toISOString(),
|
|
606
|
+
hasCa: (0, node_fs.existsSync)((0, node_path.join)(dir, UPLOADED_CA_FILE))
|
|
607
|
+
};
|
|
608
|
+
} catch {
|
|
609
|
+
return null;
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
function readLocalCaConstrained(dir) {
|
|
613
|
+
const caPath = (0, node_path.join)(dir, "camstack-ca.crt");
|
|
614
|
+
if (!(0, node_fs.existsSync)(caPath)) return null;
|
|
615
|
+
try {
|
|
616
|
+
return require_agent_https.isConstrainedCa(new require_x509_es.X509Certificate((0, node_fs.readFileSync)(caPath, "utf-8")));
|
|
617
|
+
} catch {
|
|
618
|
+
return null;
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
function readCaReplacedAt(dir) {
|
|
622
|
+
const path = (0, node_path.join)(dir, CA_REPLACED_MARKER_FILE);
|
|
623
|
+
if (!(0, node_fs.existsSync)(path)) return null;
|
|
624
|
+
try {
|
|
625
|
+
const parsed = JSON.parse((0, node_fs.readFileSync)(path, "utf-8"));
|
|
626
|
+
const at = parsed !== null && typeof parsed === "object" ? Reflect.get(parsed, "replacedAt") : null;
|
|
627
|
+
return typeof at === "string" ? at : null;
|
|
628
|
+
} catch {
|
|
629
|
+
return null;
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
/** Where an upload's own CA is kept — never over the local CA's `camstack-ca.crt`. */
|
|
633
|
+
var UPLOADED_CA_FILE = "uploaded-ca.crt";
|
|
634
|
+
/** Every certificate in a PEM bundle, in order. */
|
|
635
|
+
function splitPemCertificates(pem) {
|
|
636
|
+
const blocks = pem.match(/-----BEGIN CERTIFICATE-----[\s\S]+?-----END CERTIFICATE-----/g);
|
|
637
|
+
return blocks === null ? [] : blocks.map((block) => `${block}\n`);
|
|
638
|
+
}
|
|
639
|
+
/**
|
|
640
|
+
* The certificate that signed `leaf`, from the upload itself: the CA the
|
|
641
|
+
* operator supplied, else the rest of the uploaded chain. `null` when the
|
|
642
|
+
* upload did not include it — and then nothing may stand in for it: the
|
|
643
|
+
* local CA did not sign an uploaded leaf, so handing it out as "the CA" would
|
|
644
|
+
* tell a client to trust a root that verifies nothing it is served.
|
|
645
|
+
*/
|
|
646
|
+
function uploadedIssuer(dir, leaf, chainPem) {
|
|
647
|
+
const caPath = (0, node_path.join)(dir, UPLOADED_CA_FILE);
|
|
648
|
+
const candidates = [...(0, node_fs.existsSync)(caPath) ? splitPemCertificates((0, node_fs.readFileSync)(caPath, "utf-8")) : [], ...splitPemCertificates(chainPem).slice(1)];
|
|
649
|
+
for (const pem of candidates) try {
|
|
650
|
+
const cert = new node_crypto.X509Certificate(pem);
|
|
651
|
+
if (leaf.checkIssued(cert) && leaf.verify(cert.publicKey)) return {
|
|
652
|
+
pem,
|
|
653
|
+
cert
|
|
654
|
+
};
|
|
655
|
+
} catch {}
|
|
656
|
+
return null;
|
|
657
|
+
}
|
|
658
|
+
function generatedIssuer(dir) {
|
|
659
|
+
const caPath = (0, node_path.join)(dir, "camstack-ca.crt");
|
|
660
|
+
if (!(0, node_fs.existsSync)(caPath)) return null;
|
|
661
|
+
const pem = (0, node_fs.readFileSync)(caPath, "utf-8");
|
|
662
|
+
return {
|
|
663
|
+
pem,
|
|
664
|
+
cert: new node_crypto.X509Certificate(pem)
|
|
665
|
+
};
|
|
666
|
+
}
|
|
667
|
+
/**
|
|
668
|
+
* What the node's certificate is, and whether the listener serves it.
|
|
669
|
+
* `servedLeafFingerprint` is the leaf the HTTPS listener presents right now
|
|
670
|
+
* (`servedHttpsLeafFingerprint()`), or `null` when unknown; a restart is
|
|
671
|
+
* required exactly when the listener serves a different leaf than the one
|
|
672
|
+
* on disk — a measured fact, not a flag a mutation remembered to set.
|
|
673
|
+
*/
|
|
674
|
+
function readTlsAccessStatus(dataDir, servedLeafFingerprint) {
|
|
675
|
+
const dir = tlsDir(dataDir);
|
|
676
|
+
const certPath = (0, node_path.join)(dir, "camstack.crt");
|
|
677
|
+
const mode = readTlsMode(dataDir);
|
|
678
|
+
if (!(0, node_fs.existsSync)(certPath)) return {
|
|
679
|
+
mode: "disabled",
|
|
680
|
+
leafFingerprintSha256: null,
|
|
681
|
+
caFingerprintSha256: null,
|
|
682
|
+
validTo: null,
|
|
683
|
+
sans: [],
|
|
684
|
+
caCertPem: (mode === "uploaded" ? null : generatedIssuer(dir))?.pem ?? null,
|
|
685
|
+
reissueError: null,
|
|
686
|
+
restartRequired: false,
|
|
687
|
+
caMissing: false,
|
|
688
|
+
localCaConstrained: readLocalCaConstrained(dir),
|
|
689
|
+
caReplacedAt: readCaReplacedAt(dir),
|
|
690
|
+
storedUpload: readStoredUpload(dir)
|
|
691
|
+
};
|
|
692
|
+
try {
|
|
693
|
+
const chainPem = (0, node_fs.readFileSync)(certPath, "utf-8");
|
|
694
|
+
const leaf = new node_crypto.X509Certificate(chainPem);
|
|
695
|
+
const ca = mode === "uploaded" ? uploadedIssuer(dir, leaf, chainPem) : generatedIssuer(dir);
|
|
696
|
+
const san = leaf.subjectAltName ?? "";
|
|
697
|
+
return {
|
|
698
|
+
mode,
|
|
699
|
+
leafFingerprintSha256: leaf.fingerprint256,
|
|
700
|
+
caFingerprintSha256: ca?.cert.fingerprint256 ?? null,
|
|
701
|
+
validTo: new Date(leaf.validTo).toISOString(),
|
|
702
|
+
sans: san === "" ? [] : san.split(", "),
|
|
703
|
+
caCertPem: ca?.pem ?? null,
|
|
704
|
+
reissueError: null,
|
|
705
|
+
restartRequired: servedLeafFingerprint !== null && servedLeafFingerprint !== leaf.fingerprint256,
|
|
706
|
+
caMissing: mode === "uploaded" && ca === null && !chainsToPublicRoot(chainPem),
|
|
707
|
+
localCaConstrained: readLocalCaConstrained(dir),
|
|
708
|
+
caReplacedAt: readCaReplacedAt(dir),
|
|
709
|
+
storedUpload: readStoredUpload(dir)
|
|
710
|
+
};
|
|
711
|
+
} catch {
|
|
712
|
+
return {
|
|
713
|
+
mode,
|
|
714
|
+
leafFingerprintSha256: null,
|
|
715
|
+
caFingerprintSha256: null,
|
|
716
|
+
validTo: null,
|
|
717
|
+
sans: [],
|
|
718
|
+
caCertPem: null,
|
|
719
|
+
reissueError: "Certificate on disk could not be parsed.",
|
|
720
|
+
restartRequired: false,
|
|
721
|
+
caMissing: false,
|
|
722
|
+
localCaConstrained: readLocalCaConstrained(dir),
|
|
723
|
+
caReplacedAt: readCaReplacedAt(dir),
|
|
724
|
+
storedUpload: readStoredUpload(dir)
|
|
725
|
+
};
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
//#endregion
|
|
729
|
+
//#region src/tls/boot-tls.ts
|
|
730
|
+
/**
|
|
731
|
+
* Decide what the listener serves at boot. The admin UI (Network → Local
|
|
732
|
+
* access) is the only way to set a certificate (D726): it either leaves the
|
|
733
|
+
* hub on its generated local-CA leaf (D227) or uploads one, recorded by the
|
|
734
|
+
* `tls/mode` marker. An uploaded certificate is served verbatim — running it
|
|
735
|
+
* through `ensureTlsCert` would replace it on the first restart, because a
|
|
736
|
+
* leaf the local root did not issue is one of that rule's reissue triggers.
|
|
737
|
+
*/
|
|
738
|
+
async function prepareBootTls(dataDir, options) {
|
|
739
|
+
const certPath = (0, node_path.join)(dataDir, "tls", "camstack.crt");
|
|
740
|
+
const keyPath = (0, node_path.join)(dataDir, "tls", "camstack.key");
|
|
741
|
+
const marked = readTlsMode(dataDir);
|
|
742
|
+
if (marked === "uploaded" && (0, node_fs.existsSync)(certPath) && (0, node_fs.existsSync)(keyPath)) return {
|
|
743
|
+
mode: "uploaded",
|
|
744
|
+
pair: loadTlsCert(certPath, keyPath),
|
|
745
|
+
ensured: void 0,
|
|
746
|
+
uploadedMissing: false,
|
|
747
|
+
dormantCaReplaced: await replaceUnconstrainedLocalCa(dataDir, options)
|
|
748
|
+
};
|
|
749
|
+
const uploadedMissing = marked === "uploaded";
|
|
750
|
+
if (uploadedMissing) writeTlsMode(dataDir, "generated");
|
|
751
|
+
const ensured = await ensureTlsCert(dataDir, options);
|
|
752
|
+
return {
|
|
753
|
+
mode: "generated",
|
|
754
|
+
pair: loadTlsCert(ensured.certPath, ensured.keyPath),
|
|
755
|
+
ensured,
|
|
756
|
+
uploadedMissing,
|
|
757
|
+
dormantCaReplaced: false
|
|
758
|
+
};
|
|
759
|
+
}
|
|
760
|
+
//#endregion
|
|
761
|
+
//#region src/tls/https-listener.ts
|
|
762
|
+
var SLOT_KEY = Symbol.for("camstack.tls.https-listener");
|
|
763
|
+
var EMPTY_SLOT = {
|
|
764
|
+
reload: null,
|
|
765
|
+
servedLeafFingerprint: null
|
|
766
|
+
};
|
|
767
|
+
function isSlot(value) {
|
|
768
|
+
if (typeof value !== "object" || value === null) return false;
|
|
769
|
+
if (!("reload" in value) || !("servedLeafFingerprint" in value)) return false;
|
|
770
|
+
const reload = value.reload;
|
|
771
|
+
const served = value.servedLeafFingerprint;
|
|
772
|
+
return (reload === null || typeof reload === "function") && (served === null || typeof served === "string");
|
|
773
|
+
}
|
|
774
|
+
function readSlot() {
|
|
775
|
+
const current = Reflect.get(globalThis, SLOT_KEY);
|
|
776
|
+
return isSlot(current) ? current : EMPTY_SLOT;
|
|
777
|
+
}
|
|
778
|
+
function writeSlot(next) {
|
|
779
|
+
Reflect.set(globalThis, SLOT_KEY, next);
|
|
780
|
+
}
|
|
781
|
+
/** SHA-256 fingerprint of the first certificate (the leaf) in a PEM chain. */
|
|
782
|
+
function leafFingerprintOf(chain) {
|
|
783
|
+
return new node_crypto.X509Certificate(chain).fingerprint256;
|
|
784
|
+
}
|
|
785
|
+
/**
|
|
786
|
+
* Called once by the server after its HTTPS listener is up, with the pair it
|
|
787
|
+
* was started on. From here on a certificate action swaps the served
|
|
788
|
+
* certificate in place (`setSecureContext`) — new handshakes get the new
|
|
789
|
+
* leaf, open connections keep theirs, nothing restarts.
|
|
790
|
+
*/
|
|
791
|
+
function registerHttpsListener(server, pair) {
|
|
792
|
+
writeSlot({
|
|
793
|
+
reload: (next) => server.setSecureContext({
|
|
794
|
+
cert: next.cert,
|
|
795
|
+
key: next.key
|
|
796
|
+
}),
|
|
797
|
+
servedLeafFingerprint: leafFingerprintOf(pair.cert)
|
|
798
|
+
});
|
|
799
|
+
}
|
|
800
|
+
/** Forget the listener — on shutdown, and between specs. */
|
|
801
|
+
function clearHttpsListener() {
|
|
802
|
+
writeSlot(EMPTY_SLOT);
|
|
803
|
+
}
|
|
804
|
+
/**
|
|
805
|
+
* The leaf the HTTPS listener serves now, or `null` when this process has no
|
|
806
|
+
* registered listener (TLS off, or a process that does not own one) — in
|
|
807
|
+
* which case nobody can say, and `null` is the honest answer.
|
|
808
|
+
*/
|
|
809
|
+
function servedHttpsLeafFingerprint() {
|
|
810
|
+
return readSlot().servedLeafFingerprint;
|
|
811
|
+
}
|
|
812
|
+
/** Serve `pair` from now on. Never throws: the outcome says what happened. */
|
|
813
|
+
function reloadHttpsListener(pair) {
|
|
814
|
+
const slot = readSlot();
|
|
815
|
+
if (slot.reload === null) return { kind: "no-listener" };
|
|
816
|
+
try {
|
|
817
|
+
const servedLeafFingerprint = leafFingerprintOf(pair.cert);
|
|
818
|
+
slot.reload(pair);
|
|
819
|
+
writeSlot({
|
|
820
|
+
reload: slot.reload,
|
|
821
|
+
servedLeafFingerprint
|
|
822
|
+
});
|
|
823
|
+
return {
|
|
824
|
+
kind: "reloaded",
|
|
825
|
+
servedLeafFingerprint
|
|
826
|
+
};
|
|
827
|
+
} catch (err) {
|
|
828
|
+
return {
|
|
829
|
+
kind: "failed",
|
|
830
|
+
error: err instanceof Error ? err.message : String(err)
|
|
831
|
+
};
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
//#endregion
|
|
835
|
+
//#region src/tls/tls-actions.ts
|
|
836
|
+
function withNewline(pem) {
|
|
837
|
+
return pem.endsWith("\n") ? pem : `${pem}\n`;
|
|
838
|
+
}
|
|
839
|
+
/**
|
|
840
|
+
* Store an operator's certificate (D873). The material is validated first, and a
|
|
841
|
+
* certificate that does not lead to a public CA must come with the CA that signed it
|
|
842
|
+
* (validated: it is a CA, in date, and issued the leaf) - otherwise "Download CA" would
|
|
843
|
+
* have nothing to hand out. Nothing is written when anything is refused.
|
|
844
|
+
*
|
|
845
|
+
* The leaf (or chain) and key are written twice: as the served pair, and as a kept copy
|
|
846
|
+
* (`uploaded.crt` / `uploaded.key`, with the issuing CA in `uploaded-ca.crt`) that
|
|
847
|
+
* "Revert to generated" leaves in place so the upload can be selected again. The local
|
|
848
|
+
* CA (`camstack-ca.crt` + key) is never touched - it did not sign the upload, and it is
|
|
849
|
+
* what every device that trusts it still needs.
|
|
850
|
+
*/
|
|
851
|
+
async function storeUploadedCertificate(dataDir, input, options) {
|
|
852
|
+
const valid = validateUploadedTls(input.certPem, input.keyPem);
|
|
853
|
+
if (!valid.ok) throw require_dist.userError(valid.code, {}, valid.error);
|
|
854
|
+
const ca = checkUploadedCa(input.certPem, input.caPem, options);
|
|
855
|
+
if (!ca.ok) throw require_dist.userError(ca.code, {}, ca.error);
|
|
856
|
+
const dir = (0, node_path.join)(dataDir, "tls");
|
|
857
|
+
await (0, node_fs_promises.mkdir)(dir, { recursive: true });
|
|
858
|
+
const certText = withNewline(input.certPem);
|
|
859
|
+
const keyText = withNewline(input.keyPem);
|
|
860
|
+
(0, _camstack_types_node.writeOwnerOnlyFileSync)((0, node_path.join)(dir, STORED_UPLOAD_KEY_FILE), keyText);
|
|
861
|
+
await (0, node_fs_promises.writeFile)((0, node_path.join)(dir, STORED_UPLOAD_CERT_FILE), certText);
|
|
862
|
+
const caPath = (0, node_path.join)(dir, UPLOADED_CA_FILE);
|
|
863
|
+
if (ca.issuerPem !== null) await (0, node_fs_promises.writeFile)(caPath, ca.issuerPem);
|
|
864
|
+
else (0, node_fs.rmSync)(caPath, { force: true });
|
|
865
|
+
await (0, node_fs_promises.writeFile)((0, node_path.join)(dir, "camstack.crt"), certText);
|
|
866
|
+
(0, _camstack_types_node.writeOwnerOnlyFileSync)((0, node_path.join)(dir, "camstack.key"), keyText);
|
|
867
|
+
writeTlsMode(dataDir, "uploaded");
|
|
868
|
+
}
|
|
869
|
+
/**
|
|
870
|
+
* Serve the kept upload again after a revert (D873). Refused with a clear error when none
|
|
871
|
+
* is kept; the generated material stays on disk and is untouched.
|
|
872
|
+
*/
|
|
873
|
+
async function useStoredUploadedCertificate(dataDir) {
|
|
874
|
+
const dir = (0, node_path.join)(dataDir, "tls");
|
|
875
|
+
const certPath = (0, node_path.join)(dir, STORED_UPLOAD_CERT_FILE);
|
|
876
|
+
const keyPath = (0, node_path.join)(dir, STORED_UPLOAD_KEY_FILE);
|
|
877
|
+
if (!(0, node_fs.existsSync)(certPath) || !(0, node_fs.existsSync)(keyPath)) throw require_dist.userError("tls.no-stored-upload", {}, "No uploaded certificate is kept on this node.");
|
|
878
|
+
(0, node_fs.copyFileSync)(certPath, (0, node_path.join)(dir, "camstack.crt"));
|
|
879
|
+
(0, node_fs.copyFileSync)(keyPath, (0, node_path.join)(dir, "camstack.key"));
|
|
880
|
+
writeTlsMode(dataDir, "uploaded");
|
|
881
|
+
}
|
|
882
|
+
/** Issue a new generated leaf under the local CA. Refused while an upload is served. */
|
|
883
|
+
async function regenerateCertificate(dataDir, options) {
|
|
884
|
+
if (readTlsMode(dataDir) === "uploaded") throw new Error("Cannot regenerate an uploaded certificate — revert to generated first.");
|
|
885
|
+
await reissueTlsLeaf(dataDir, options);
|
|
886
|
+
}
|
|
887
|
+
/**
|
|
888
|
+
* Serve the generated local-CA leaf again (D227). The uploaded certificate and its CA stay
|
|
889
|
+
* on disk (D873) so it can be selected again; an upload made before they were kept is
|
|
890
|
+
* copied aside first, from the pair being served.
|
|
891
|
+
*/
|
|
892
|
+
async function revertToGeneratedCertificate(dataDir, options) {
|
|
893
|
+
const dir = (0, node_path.join)(dataDir, "tls");
|
|
894
|
+
const keptCert = (0, node_path.join)(dir, STORED_UPLOAD_CERT_FILE);
|
|
895
|
+
const keptKey = (0, node_path.join)(dir, STORED_UPLOAD_KEY_FILE);
|
|
896
|
+
if (readTlsMode(dataDir) === "uploaded" && !(0, node_fs.existsSync)(keptCert) && (0, node_fs.existsSync)((0, node_path.join)(dir, "camstack.crt")) && (0, node_fs.existsSync)((0, node_path.join)(dir, "camstack.key"))) {
|
|
897
|
+
(0, node_fs.copyFileSync)((0, node_path.join)(dir, "camstack.crt"), keptCert);
|
|
898
|
+
(0, node_fs.copyFileSync)((0, node_path.join)(dir, "camstack.key"), keptKey);
|
|
899
|
+
}
|
|
900
|
+
writeTlsMode(dataDir, "generated");
|
|
901
|
+
await ensureTlsCert(dataDir, options);
|
|
902
|
+
}
|
|
903
|
+
/**
|
|
904
|
+
* Put the pair on disk on the HTTPS listener. Called after every action, so
|
|
905
|
+
* "the certificate changed" and "clients see it" are the same moment.
|
|
906
|
+
*/
|
|
907
|
+
function applyCertificateToListener(dataDir) {
|
|
908
|
+
const certPath = (0, node_path.join)(dataDir, "tls", "camstack.crt");
|
|
909
|
+
const keyPath = (0, node_path.join)(dataDir, "tls", "camstack.key");
|
|
910
|
+
if (!(0, node_fs.existsSync)(certPath) || !(0, node_fs.existsSync)(keyPath)) return {
|
|
911
|
+
kind: "failed",
|
|
912
|
+
error: `No certificate pair under ${(0, node_path.join)(dataDir, "tls")}`
|
|
913
|
+
};
|
|
914
|
+
return reloadHttpsListener(loadTlsCert(certPath, keyPath));
|
|
915
|
+
}
|
|
916
|
+
//#endregion
|
|
917
|
+
//#region src/builtins/local-network/hub-mdns-ciao.ts
|
|
918
|
+
function createCiaoPublisher() {
|
|
919
|
+
return { async publish(announcement) {
|
|
920
|
+
const { getResponder } = await Promise.resolve().then(() => /* @__PURE__ */ require_chunk.__toESM(require("./lib-C3U1yluo.js").default));
|
|
921
|
+
const responder = getResponder();
|
|
922
|
+
const service = responder.createService({
|
|
923
|
+
name: announcement.name,
|
|
924
|
+
type: announcement.type,
|
|
925
|
+
port: announcement.port,
|
|
926
|
+
txt: { ...announcement.txt },
|
|
927
|
+
...announcement.address !== null ? { restrictedAddresses: [announcement.address] } : {}
|
|
928
|
+
});
|
|
929
|
+
try {
|
|
930
|
+
await service.advertise();
|
|
931
|
+
} catch (err) {
|
|
932
|
+
await responder.shutdown().catch(() => void 0);
|
|
933
|
+
throw err;
|
|
934
|
+
}
|
|
935
|
+
return { stop: async () => {
|
|
936
|
+
await service.destroy();
|
|
937
|
+
await responder.shutdown();
|
|
938
|
+
} };
|
|
939
|
+
} };
|
|
940
|
+
}
|
|
941
|
+
//#endregion
|
|
942
|
+
Object.defineProperty(exports, "DEFAULT_LAN_HTTP_PORT", {
|
|
943
|
+
enumerable: true,
|
|
944
|
+
get: function() {
|
|
945
|
+
return DEFAULT_LAN_HTTP_PORT;
|
|
946
|
+
}
|
|
947
|
+
});
|
|
948
|
+
Object.defineProperty(exports, "UPLOADED_CA_FILE", {
|
|
949
|
+
enumerable: true,
|
|
950
|
+
get: function() {
|
|
951
|
+
return UPLOADED_CA_FILE;
|
|
952
|
+
}
|
|
953
|
+
});
|
|
954
|
+
Object.defineProperty(exports, "allFamiliesListenHost", {
|
|
955
|
+
enumerable: true,
|
|
956
|
+
get: function() {
|
|
957
|
+
return allFamiliesListenHost;
|
|
958
|
+
}
|
|
959
|
+
});
|
|
960
|
+
Object.defineProperty(exports, "applyCertificateToListener", {
|
|
961
|
+
enumerable: true,
|
|
962
|
+
get: function() {
|
|
963
|
+
return applyCertificateToListener;
|
|
964
|
+
}
|
|
965
|
+
});
|
|
966
|
+
Object.defineProperty(exports, "applyLanHttp", {
|
|
967
|
+
enumerable: true,
|
|
968
|
+
get: function() {
|
|
969
|
+
return applyLanHttp;
|
|
970
|
+
}
|
|
971
|
+
});
|
|
972
|
+
Object.defineProperty(exports, "bindPendingLanHttp", {
|
|
973
|
+
enumerable: true,
|
|
974
|
+
get: function() {
|
|
975
|
+
return bindPendingLanHttp;
|
|
976
|
+
}
|
|
977
|
+
});
|
|
978
|
+
Object.defineProperty(exports, "caReplacementMarkerFile", {
|
|
979
|
+
enumerable: true,
|
|
980
|
+
get: function() {
|
|
981
|
+
return caReplacementMarkerFile;
|
|
982
|
+
}
|
|
983
|
+
});
|
|
984
|
+
Object.defineProperty(exports, "chainsToPublicRoot", {
|
|
985
|
+
enumerable: true,
|
|
986
|
+
get: function() {
|
|
987
|
+
return chainsToPublicRoot;
|
|
988
|
+
}
|
|
989
|
+
});
|
|
990
|
+
Object.defineProperty(exports, "checkUploadedCa", {
|
|
991
|
+
enumerable: true,
|
|
992
|
+
get: function() {
|
|
993
|
+
return checkUploadedCa;
|
|
994
|
+
}
|
|
995
|
+
});
|
|
996
|
+
Object.defineProperty(exports, "clearHttpsListener", {
|
|
997
|
+
enumerable: true,
|
|
998
|
+
get: function() {
|
|
999
|
+
return clearHttpsListener;
|
|
1000
|
+
}
|
|
1001
|
+
});
|
|
1002
|
+
Object.defineProperty(exports, "closeLanHttp", {
|
|
1003
|
+
enumerable: true,
|
|
1004
|
+
get: function() {
|
|
1005
|
+
return closeLanHttp;
|
|
1006
|
+
}
|
|
1007
|
+
});
|
|
1008
|
+
Object.defineProperty(exports, "createCiaoPublisher", {
|
|
1009
|
+
enumerable: true,
|
|
1010
|
+
get: function() {
|
|
1011
|
+
return createCiaoPublisher;
|
|
1012
|
+
}
|
|
1013
|
+
});
|
|
1014
|
+
Object.defineProperty(exports, "ensureTlsCert", {
|
|
1015
|
+
enumerable: true,
|
|
1016
|
+
get: function() {
|
|
1017
|
+
return ensureTlsCert;
|
|
1018
|
+
}
|
|
1019
|
+
});
|
|
1020
|
+
Object.defineProperty(exports, "leafFingerprintOf", {
|
|
1021
|
+
enumerable: true,
|
|
1022
|
+
get: function() {
|
|
1023
|
+
return leafFingerprintOf;
|
|
1024
|
+
}
|
|
1025
|
+
});
|
|
1026
|
+
Object.defineProperty(exports, "loadTlsCert", {
|
|
1027
|
+
enumerable: true,
|
|
1028
|
+
get: function() {
|
|
1029
|
+
return loadTlsCert;
|
|
1030
|
+
}
|
|
1031
|
+
});
|
|
1032
|
+
Object.defineProperty(exports, "prepareBootTls", {
|
|
1033
|
+
enumerable: true,
|
|
1034
|
+
get: function() {
|
|
1035
|
+
return prepareBootTls;
|
|
1036
|
+
}
|
|
1037
|
+
});
|
|
1038
|
+
Object.defineProperty(exports, "readExtraSans", {
|
|
1039
|
+
enumerable: true,
|
|
1040
|
+
get: function() {
|
|
1041
|
+
return readExtraSans;
|
|
1042
|
+
}
|
|
1043
|
+
});
|
|
1044
|
+
Object.defineProperty(exports, "readLanHttpState", {
|
|
1045
|
+
enumerable: true,
|
|
1046
|
+
get: function() {
|
|
1047
|
+
return readLanHttpState;
|
|
1048
|
+
}
|
|
1049
|
+
});
|
|
1050
|
+
Object.defineProperty(exports, "readTlsAccessStatus", {
|
|
1051
|
+
enumerable: true,
|
|
1052
|
+
get: function() {
|
|
1053
|
+
return readTlsAccessStatus;
|
|
1054
|
+
}
|
|
1055
|
+
});
|
|
1056
|
+
Object.defineProperty(exports, "readTlsEnabled", {
|
|
1057
|
+
enumerable: true,
|
|
1058
|
+
get: function() {
|
|
1059
|
+
return readTlsEnabled;
|
|
1060
|
+
}
|
|
1061
|
+
});
|
|
1062
|
+
Object.defineProperty(exports, "readTlsMode", {
|
|
1063
|
+
enumerable: true,
|
|
1064
|
+
get: function() {
|
|
1065
|
+
return readTlsMode;
|
|
1066
|
+
}
|
|
1067
|
+
});
|
|
1068
|
+
Object.defineProperty(exports, "regenerateCertificate", {
|
|
1069
|
+
enumerable: true,
|
|
1070
|
+
get: function() {
|
|
1071
|
+
return regenerateCertificate;
|
|
1072
|
+
}
|
|
1073
|
+
});
|
|
1074
|
+
Object.defineProperty(exports, "registerHttpsListener", {
|
|
1075
|
+
enumerable: true,
|
|
1076
|
+
get: function() {
|
|
1077
|
+
return registerHttpsListener;
|
|
1078
|
+
}
|
|
1079
|
+
});
|
|
1080
|
+
Object.defineProperty(exports, "registerLanHttpHandler", {
|
|
1081
|
+
enumerable: true,
|
|
1082
|
+
get: function() {
|
|
1083
|
+
return registerLanHttpHandler;
|
|
1084
|
+
}
|
|
1085
|
+
});
|
|
1086
|
+
Object.defineProperty(exports, "reissueTlsLeaf", {
|
|
1087
|
+
enumerable: true,
|
|
1088
|
+
get: function() {
|
|
1089
|
+
return reissueTlsLeaf;
|
|
1090
|
+
}
|
|
1091
|
+
});
|
|
1092
|
+
Object.defineProperty(exports, "reloadHttpsListener", {
|
|
1093
|
+
enumerable: true,
|
|
1094
|
+
get: function() {
|
|
1095
|
+
return reloadHttpsListener;
|
|
1096
|
+
}
|
|
1097
|
+
});
|
|
1098
|
+
Object.defineProperty(exports, "replaceUnconstrainedLocalCa", {
|
|
1099
|
+
enumerable: true,
|
|
1100
|
+
get: function() {
|
|
1101
|
+
return replaceUnconstrainedLocalCa;
|
|
1102
|
+
}
|
|
1103
|
+
});
|
|
1104
|
+
Object.defineProperty(exports, "retirePreviousLocalCa", {
|
|
1105
|
+
enumerable: true,
|
|
1106
|
+
get: function() {
|
|
1107
|
+
return retirePreviousLocalCa;
|
|
1108
|
+
}
|
|
1109
|
+
});
|
|
1110
|
+
Object.defineProperty(exports, "revertToGeneratedCertificate", {
|
|
1111
|
+
enumerable: true,
|
|
1112
|
+
get: function() {
|
|
1113
|
+
return revertToGeneratedCertificate;
|
|
1114
|
+
}
|
|
1115
|
+
});
|
|
1116
|
+
Object.defineProperty(exports, "servedHttpsLeafFingerprint", {
|
|
1117
|
+
enumerable: true,
|
|
1118
|
+
get: function() {
|
|
1119
|
+
return servedHttpsLeafFingerprint;
|
|
1120
|
+
}
|
|
1121
|
+
});
|
|
1122
|
+
Object.defineProperty(exports, "splitPemCertificates", {
|
|
1123
|
+
enumerable: true,
|
|
1124
|
+
get: function() {
|
|
1125
|
+
return splitPemCertificates;
|
|
1126
|
+
}
|
|
1127
|
+
});
|
|
1128
|
+
Object.defineProperty(exports, "storeUploadedCertificate", {
|
|
1129
|
+
enumerable: true,
|
|
1130
|
+
get: function() {
|
|
1131
|
+
return storeUploadedCertificate;
|
|
1132
|
+
}
|
|
1133
|
+
});
|
|
1134
|
+
Object.defineProperty(exports, "useStoredUploadedCertificate", {
|
|
1135
|
+
enumerable: true,
|
|
1136
|
+
get: function() {
|
|
1137
|
+
return useStoredUploadedCertificate;
|
|
1138
|
+
}
|
|
1139
|
+
});
|
|
1140
|
+
Object.defineProperty(exports, "validateUploadedTls", {
|
|
1141
|
+
enumerable: true,
|
|
1142
|
+
get: function() {
|
|
1143
|
+
return validateUploadedTls;
|
|
1144
|
+
}
|
|
1145
|
+
});
|
|
1146
|
+
Object.defineProperty(exports, "writeExtraSans", {
|
|
1147
|
+
enumerable: true,
|
|
1148
|
+
get: function() {
|
|
1149
|
+
return writeExtraSans;
|
|
1150
|
+
}
|
|
1151
|
+
});
|
|
1152
|
+
Object.defineProperty(exports, "writeTlsEnabled", {
|
|
1153
|
+
enumerable: true,
|
|
1154
|
+
get: function() {
|
|
1155
|
+
return writeTlsEnabled;
|
|
1156
|
+
}
|
|
1157
|
+
});
|
|
1158
|
+
Object.defineProperty(exports, "writeTlsMode", {
|
|
1159
|
+
enumerable: true,
|
|
1160
|
+
get: function() {
|
|
1161
|
+
return writeTlsMode;
|
|
1162
|
+
}
|
|
1163
|
+
});
|