@camstack/server 1.2.804 → 1.2.806
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/agent/main.js +1 -1
- package/dist/api/core/addon-settings.router.js +2 -2
- package/dist/api/trpc/device-config-secret-redaction.js +3 -5
- package/dist/api/trpc/generated-cap-routers.js +10 -24
- package/dist/api/trpc/localized-schema-paths.js +0 -2
- package/dist/core/addon/addon-registry.service.js +4 -4
- package/dist/core/addon/addon-settings-provider.js +2 -49
- package/package.json +13 -15
- package/system/dist/addon-runner.js +2 -9
- package/system/dist/addon-runner.mjs +2 -9
- package/system/dist/{agent-https-BFvIRgIa.js → agent-https-CuChFRA2.js} +1 -1
- package/system/dist/{agent-https-Bp70et-W.mjs → agent-https-DS4b0ucn.mjs} +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/alerts/alerts.addon.js +1 -1
- package/system/dist/builtins/alerts/alerts.addon.mjs +1 -1
- package/system/dist/builtins/autotrack/index.js +1 -1
- package/system/dist/builtins/autotrack/index.mjs +1 -1
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
- package/system/dist/builtins/calendars/calendars.addon.js +1 -1
- package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
- package/system/dist/builtins/camera-grid/index.js +1 -1
- package/system/dist/builtins/camera-grid/index.mjs +1 -1
- package/system/dist/builtins/composer/composer.addon.js +3 -3
- package/system/dist/builtins/composer/composer.addon.mjs +3 -3
- package/system/dist/builtins/console-logging/index.js +1 -1
- package/system/dist/builtins/console-logging/index.mjs +1 -1
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +4 -5
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +4 -5
- package/system/dist/builtins/device-history/device-history.addon.js +2 -2
- package/system/dist/builtins/device-history/device-history.addon.mjs +2 -2
- package/system/dist/builtins/device-manager/device-alias-actions.d.ts +45 -0
- package/system/dist/builtins/device-manager/device-manager.addon.js +961 -768
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +961 -768
- package/system/dist/builtins/device-manager/device-meta-types.d.ts +3 -0
- package/system/dist/builtins/device-manager/device-row-store.d.ts +8 -0
- package/system/dist/builtins/device-manager/device-template/mirror-resolver.d.ts +19 -0
- package/system/dist/builtins/device-manager/device-template/nunjucks-internals.d.ts +53 -0
- package/system/dist/builtins/device-manager/device-template/template-filters.d.ts +28 -0
- package/system/dist/builtins/device-manager/device-template/template-grammar.d.ts +43 -0
- package/system/dist/builtins/device-manager/device-template/template-protocol.d.ts +33 -0
- package/system/dist/builtins/device-manager/device-template/template-renderer.d.ts +54 -0
- package/system/dist/builtins/device-manager/device-template/template-worker.d.ts +1 -0
- package/system/dist/builtins/hub-forwarder/index.js +1 -1
- package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/system/dist/builtins/keychain/index.js +4 -4
- package/system/dist/builtins/keychain/index.mjs +4 -4
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
- package/system/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
- package/system/dist/builtins/local-network/local-network.addon.js +2 -2
- package/system/dist/builtins/local-network/local-network.addon.mjs +2 -2
- package/system/dist/builtins/loki-logging/index.js +1 -1
- package/system/dist/builtins/loki-logging/index.mjs +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/system/dist/builtins/platform-probe/index.js +1 -1
- package/system/dist/builtins/platform-probe/index.mjs +1 -1
- package/system/dist/builtins/record-entries/index.js +1 -1
- package/system/dist/builtins/record-entries/index.mjs +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/snapshot/index.js +2 -2
- package/system/dist/builtins/snapshot/index.mjs +2 -2
- package/system/dist/builtins/snapshot/snapshot.addon.d.ts +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/index.js +1 -1
- package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +3 -3
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +3 -3
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/system-config/bootstrap-form-actions.d.ts +4 -4
- package/system/dist/builtins/system-config/system-config.addon.js +7 -7
- package/system/dist/builtins/system-config/system-config.addon.mjs +284 -284
- package/system/dist/builtins/winston-logging/index.js +1 -1
- package/system/dist/builtins/winston-logging/index.mjs +1 -1
- package/system/dist/{capture-engine-Sh4zAKR0.js → capture-engine-Byc5Fkp0.js} +1 -1
- package/system/dist/{capture-engine-CQBSd3V1.mjs → capture-engine-CnVIcnyN.mjs} +1 -1
- package/system/dist/{composition-sources-BxSmsp0_.mjs → composition-sources-BhM6G9QT.mjs} +1 -1
- package/system/dist/{composition-sources-rAsv2tZD.js → composition-sources-BxK6ttP9.js} +1 -1
- package/system/dist/{constants-BCQCUHl9.js → constants--xo6Q-KA.js} +1 -1
- package/system/dist/{constants-BfgfqUFH.mjs → constants-Bf1PEHRU.mjs} +1 -1
- package/system/dist/{device-ca-D7JZLEAn.mjs → device-ca-Do0-HV_h.mjs} +1 -1
- package/system/dist/{device-ca-BgCwLzMX.js → device-ca-Uq5KGFSq.js} +1 -1
- package/system/dist/device-template-worker.js +7289 -0
- package/system/dist/device-template-worker.mjs +7287 -0
- package/system/dist/{dist-BpIvMLVc.js → dist-2SHQaxaS.js} +607 -616
- package/system/dist/{dist-Bvw9utDk.mjs → dist-CogtCQxu.mjs} +590 -617
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-mdns-ciao-DZwGhLx-.js → hub-mdns-ciao-DqPrLiYH.js} +2 -2
- package/system/dist/{hub-mdns-ciao-qefBaLZn.mjs → hub-mdns-ciao-aFHCKrif.mjs} +2 -2
- package/system/dist/index.js +28 -48
- package/system/dist/index.mjs +28 -48
- package/system/dist/kernel/moleculer/addon-service-factory.d.ts +2 -3
- package/system/dist/kernel/transport/child-cap-protocol.d.ts +2 -2
- package/system/dist/kernel/transport/parent-unowned-call.d.ts +1 -1
- package/system/dist/{legacy-integration-rows-door-gqcsQX0L.js → legacy-integration-rows-door-Bz8rivxI.js} +1 -1
- package/system/dist/{legacy-integration-rows-door-DCfOpaG3.mjs → legacy-integration-rows-door-CiuxDLoc.mjs} +1 -1
- package/system/dist/{restore-archive-BS6gi0i-.mjs → restore-archive-BcsSlHR8.mjs} +78 -78
- package/system/dist/{restore-archive-BtgtMV29.js → restore-archive-D-3wmHDq.js} +1 -1
- package/system/dist/{wal-maintenance-CyyJs8fh.js → wal-maintenance-BTR55y--.js} +0 -0
- package/system/dist/{wal-maintenance-DBCFpkyy.mjs → wal-maintenance-jrhYTCn2.mjs} +0 -0
- package/system/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Bs as defineCustomActions, Cs as TransactRefusedError, Ct as MIGRATION_API_V1_METHODS, F as DATABASE_SNAPSHOT_TIMEOUT_MS, Fs as collectSecretMarkerRefs, I as DATA_STORE_DATABASES, Ia as storageAdminCapability, Ic as EventCategory, Ko as BaseAddon, Ln as catalogueIssues, N as DATABASE_SNAPSHOT_PARTIAL_SUFFIX, Ot as MigrationMetaSchema, P as DATABASE_SNAPSHOT_SUFFIX, Pc as errMsg$1, Qo as DeclarationRefusedError, Ri as orderMigrations, Rs as customAction, Ti as migrationsCapability, Tn as bareAddonId, Ts as UnknownRecordKindError, _a as resolveRunnerId, ar as dataStoreProviderCapability, fs as RUNTIME_DEFAULTS, gs as RecordKindDeclarationSchema, ls as RECORD_SWEEP_INTERVAL_MS, na as recordsCapability, ns as InvalidRecordError, oo as vectorStoreCapability, or as databaseSnapshotCapability, pc as normalizeSecretOwner, rs as NoCallerError } from "../../dist-CogtCQxu.mjs";
|
|
2
2
|
import { r as retiredKeyStoreOf, t as purgeRetiredSettingsKeys } from "../../retired-settings-keys-u6xQA6r7.mjs";
|
|
3
|
-
import { A as callRecords, D as RecordsEngine, E as databaseOfStore, M as controlTargetOf, O as callControl, T as trustResult, _ as rehydrateError, a as WalMaintenance, b as collectTransferables, c as vectorProviderOfOwnedFile, d as callMigrate, f as migrateTargetOf, g as DuplicatePlacementError, h as DatabaseBusyError, j as callVector, k as callData, l as SqliteSettingsBackend, m as CrossDatabaseTransactError, o as createVectorIndex, p as CollectionPlacementError, s as vectorProviderOf, u as HUB_MIGRATIONS, x as isFileHostMessage } from "../../wal-maintenance-
|
|
3
|
+
import { A as callRecords, D as RecordsEngine, E as databaseOfStore, M as controlTargetOf, O as callControl, T as trustResult, _ as rehydrateError, a as WalMaintenance, b as collectTransferables, c as vectorProviderOfOwnedFile, d as callMigrate, f as migrateTargetOf, g as DuplicatePlacementError, h as DatabaseBusyError, j as callVector, k as callData, l as SqliteSettingsBackend, m as CrossDatabaseTransactError, o as createVectorIndex, p as CollectionPlacementError, s as vectorProviderOf, u as HUB_MIGRATIONS, x as isFileHostMessage } from "../../wal-maintenance-jrhYTCn2.mjs";
|
|
4
4
|
import { r as isSnapshotWorkerMessage } from "../../sqlite-snapshot-protocol-2QaTouWV.mjs";
|
|
5
5
|
import { a as isWorkerMessage, t as WAL_CHECKPOINT_LARGE_PASS_FRAMES } from "../../wal-checkpoint-policy-BahrTtyD.mjs";
|
|
6
|
-
import { a as patchLegacyIntegrationRows, i as legacyIntegrationAddonId, n as clearLegacyIntegrationRows, o as readLegacyIntegrationRows, r as deleteLegacyIntegrationRowKeys } from "../../legacy-integration-rows-door-
|
|
6
|
+
import { a as patchLegacyIntegrationRows, i as legacyIntegrationAddonId, n as clearLegacyIntegrationRows, o as readLegacyIntegrationRows, r as deleteLegacyIntegrationRowKeys } from "../../legacy-integration-rows-door-CiuxDLoc.mjs";
|
|
7
7
|
import { createRequire } from "node:module";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
import { randomUUID } from "node:crypto";
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-2SHQaxaS.js");
|
|
7
7
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
8
8
|
let zod = require("zod");
|
|
9
9
|
let node_crypto = require("node:crypto");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Bs as defineCustomActions, Dc as toSecretFieldView, Di as modeMayWrite, Dr as evictionPolicyOfLocation, Ea as settingsStoreCapability, Ei as modeForSwitch, Ga as switchStateOfMode, Hs as defineRecordKinds, Ic as EventCategory, Jt as STORAGE_LOCATION_MODES, Ko as BaseAddon, La as storageCapability, Ms as buildSecretRef, Ns as collectSecretConfigKeys, Ra as storageMigrationCapability, Rs as customAction, Ur as integrationInstancesCapability, ac as isSecretMarker, bc as resolveSecretMarkers, cc as makeSecretMarker, ci as legacyModeOf, ei as isLocationEnabled, fc as normalizeNodeId, gc as parseSecretRef, ic as isSecretFieldView, in as StorageMigrationJobSchema, nn as StorageLocationModeSchema, pa as resolveLocationMode, rc as isSecretClear, rn as StorageLocationTypeSchema, tn as StorageCleanupJobSchema, uo as withLocationMode, us as REDACTED_SECRET, vc as recordSecretRef, vi as mayReadLocation, xt as LegacyStorageLocationDefaultSchema, yi as mayWriteToLocation, zr as gbToBytes, zs as defineAddonMigrations } from "../../dist-CogtCQxu.mjs";
|
|
2
2
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
* `system-config` owns nine keys that stay bootstrap `ConfigManager` values
|
|
5
5
|
* (`server.name`, `server.port|host|dataPath`, `auth.tokenExpiry|accessTokenExpiry|
|
|
6
6
|
* trustedProxies|trustedNetworks|corsOrigins`). They are NOT addon settings: no
|
|
7
|
-
* capability declares them, so the
|
|
8
|
-
* `
|
|
7
|
+
* capability declares them, so the scoped settings API (`getScopedSettings` /
|
|
8
|
+
* `updateScopedSettings`) is not their carrier. The form is served by this
|
|
9
9
|
* action pair instead (D986 §7).
|
|
10
10
|
*
|
|
11
|
-
* Reading is open to any signed-in caller, as
|
|
12
|
-
* admin-only, as `addonSettings.
|
|
11
|
+
* Reading is open to any signed-in caller, as the scoped read is; a save is
|
|
12
|
+
* admin-only, as `addonSettings.updateScopedSettings` is.
|
|
13
13
|
*/
|
|
14
14
|
import { z } from "zod";
|
|
15
15
|
import { type CustomActionsSpec } from "@camstack/types";
|
|
@@ -3,11 +3,11 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-2SHQaxaS.js");
|
|
7
7
|
const require_safe_buffer$1 = require("../../safe-buffer-D3aoa-7X.js");
|
|
8
8
|
const require_x509_es = require("../../x509.es-WtnRNyYS.js");
|
|
9
|
-
const require_agent_https = require("../../agent-https-
|
|
10
|
-
const require_constants$8 = require("../../constants-
|
|
9
|
+
const require_agent_https = require("../../agent-https-CuChFRA2.js");
|
|
10
|
+
const require_constants$8 = require("../../constants--xo6Q-KA.js");
|
|
11
11
|
const require_src$1 = require("../../src-CnAqG6EF.js");
|
|
12
12
|
let zod = require("zod");
|
|
13
13
|
let node_crypto = require("node:crypto");
|
|
@@ -88715,12 +88715,12 @@ var HubPairing = class {
|
|
|
88715
88715
|
* `system-config` owns nine keys that stay bootstrap `ConfigManager` values
|
|
88716
88716
|
* (`server.name`, `server.port|host|dataPath`, `auth.tokenExpiry|accessTokenExpiry|
|
|
88717
88717
|
* trustedProxies|trustedNetworks|corsOrigins`). They are NOT addon settings: no
|
|
88718
|
-
* capability declares them, so the
|
|
88719
|
-
* `
|
|
88718
|
+
* capability declares them, so the scoped settings API (`getScopedSettings` /
|
|
88719
|
+
* `updateScopedSettings`) is not their carrier. The form is served by this
|
|
88720
88720
|
* action pair instead (D986 §7).
|
|
88721
88721
|
*
|
|
88722
|
-
* Reading is open to any signed-in caller, as
|
|
88723
|
-
* admin-only, as `addonSettings.
|
|
88722
|
+
* Reading is open to any signed-in caller, as the scoped read is; a save is
|
|
88723
|
+
* admin-only, as `addonSettings.updateScopedSettings` is.
|
|
88724
88724
|
*/
|
|
88725
88725
|
/** The hydrated form: schema with each field's stored value inline. */
|
|
88726
88726
|
var BootstrapFormSchema = zod.z.custom((value) => typeof value === "object" && value !== null && Array.isArray(Reflect.get(value, "sections")));
|