@camstack/server 1.2.936 → 1.2.938
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/api/core/api-catalog.js +4 -0
- package/dist/api/trpc/generated-cap-routers.js +8 -0
- package/package.json +11 -9
- package/system/dist/{addon-pages.cap-Df9FQwN1.js → addon-pages.cap-B3gHFDYW.js} +4 -2
- package/system/dist/{addon-pages.cap-DksUlE8j.mjs → addon-pages.cap-BLNN6ypr.mjs} +4 -2
- package/system/dist/{addon-settings.cap-3-TIIMq_.mjs → addon-settings.cap-CZ4MC7ha.mjs} +9 -1
- package/system/dist/{addon-settings.cap-DAiE0Nb0.js → addon-settings.cap-DrLdMFIe.js} +9 -1
- package/system/dist/{addon-widgets.cap-D9m48X78.mjs → addon-widgets.cap-BbmWMzIH.mjs} +4 -2
- package/system/dist/{addon-widgets.cap-C4jxflbF.js → addon-widgets.cap-DuCe2VRj.js} +4 -2
- package/system/dist/{base-device-Bwiblqmn.mjs → base-device-BcGO6LTT.mjs} +2 -2
- package/system/dist/{base-device-C1z4zYGR.js → base-device-CH8rfD9j.js} +2 -2
- 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 +2 -2
- package/system/dist/builtins/alerts/alerts.addon.mjs +2 -2
- 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 +4 -4
- package/system/dist/builtins/camera-grid/index.mjs +4 -4
- package/system/dist/builtins/composer/composer.addon.js +8 -8
- package/system/dist/builtins/composer/composer.addon.mjs +8 -8
- 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 +11 -11
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +11 -11
- package/system/dist/builtins/core-notifier/core-notifier.addon.js +3 -3
- package/system/dist/builtins/core-notifier/core-notifier.addon.mjs +3 -3
- package/system/dist/builtins/device-history/device-history.addon.js +3 -3
- package/system/dist/builtins/device-history/device-history.addon.mjs +3 -3
- package/system/dist/builtins/device-manager/device-manager.addon.js +16 -9
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +16 -9
- 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 +1 -1
- package/system/dist/builtins/keychain/index.mjs +1 -1
- 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 +1 -1
- package/system/dist/builtins/local-auth/local-auth.addon.mjs +1 -1
- 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 +3 -3
- package/system/dist/builtins/loki-logging/index.mjs +3 -3
- 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/snapshot/index.js +2 -2
- package/system/dist/builtins/snapshot/index.mjs +2 -2
- 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 +7 -7
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +7 -7
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +3 -3
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +3 -3
- package/system/dist/builtins/winston-logging/index.js +2 -2
- package/system/dist/builtins/winston-logging/index.mjs +2 -2
- package/system/dist/{calendars.cap-CaFlShS9.js → calendars.cap-CGeOtL7Q.js} +7 -1
- package/system/dist/{calendars.cap-_C4eD4fi.mjs → calendars.cap-DQc6Q6qS.mjs} +7 -1
- package/system/dist/{capability-definition-HCmTem8c.js → capability-definition-BEVd01Xj.js} +9 -4
- package/system/dist/{capability-definition-C2rJdVeX.mjs → capability-definition-C1TLUVJR.mjs} +9 -4
- package/system/dist/{capture-engine-DiwbjoWp.mjs → capture-engine-CUZ3W0oZ.mjs} +1 -1
- package/system/dist/{capture-engine-DZ0LIUqA.js → capture-engine-mtDXEBAq.js} +1 -1
- package/system/dist/{composition-sources-BtUx1MfU.js → composition-sources-DCi-ldEb.js} +2 -2
- package/system/dist/{composition-sources-B0QW4g86.mjs → composition-sources-DgayqgHH.mjs} +2 -2
- package/system/dist/{core-blocks.cap-CnwBuf7E.mjs → core-blocks.cap-CWKQSevR.mjs} +38 -3
- package/system/dist/{core-blocks.cap-DlEuHq-S.js → core-blocks.cap-yLx6soaY.js} +38 -3
- package/system/dist/{database-snapshot.cap-DF38e-0P.js → database-snapshot.cap-BNS5c60M.js} +2 -2
- package/system/dist/{database-snapshot.cap-dhrc9xnY.mjs → database-snapshot.cap-a3lSf4hl.mjs} +2 -2
- package/system/dist/{device-manager.cap-CFZSPfUh.mjs → device-manager.cap-DIBK62-r.mjs} +14 -3
- package/system/dist/{device-manager.cap-2abwVLCM.js → device-manager.cap-DyHOIh5T.js} +14 -3
- package/system/dist/{device-provider.cap-D7TV2kVH.js → device-provider.cap-BKUGJSo0.js} +9 -1
- package/system/dist/{device-provider.cap-3Uvk6f5-.mjs → device-provider.cap-DU6HMUXH.mjs} +9 -1
- package/system/dist/{device-row-store-YF3jtmkk.mjs → device-row-store-C-_R-h1Z.mjs} +1 -1
- package/system/dist/{device-row-store-doTfMOqn.js → device-row-store-O4mNbp5q.js} +1 -1
- package/system/dist/{device-transitions.cap-DojcwEuX.mjs → device-transitions.cap-DCXP3zwY.mjs} +7 -1
- package/system/dist/{device-transitions.cap-B5w5PYU_.js → device-transitions.cap-zOGvAIHz.js} +7 -1
- package/system/dist/{error.cap-BCqzFlo2.js → error.cap-BxLEHP6z.js} +1 -1
- package/system/dist/{error.cap-5zNPAgU2.mjs → error.cap-DCwbIGEF.mjs} +1 -1
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/index.js +7 -7
- package/system/dist/index.mjs +7 -7
- package/system/dist/{integration-instances.cap-Cl9O-k4h.mjs → integration-instances.cap-BWttO42A.mjs} +10 -1
- package/system/dist/{integration-instances.cap-dJIxg2_s.js → integration-instances.cap-DSieF1w3.js} +10 -1
- package/system/dist/{keychain-admin.cap-GtM7gVGG.mjs → keychain-admin.cap-DOvL8TMG.mjs} +5 -1
- package/system/dist/{keychain-admin.cap-Db_oFX4H.js → keychain-admin.cap-DcRCRWtu.js} +5 -1
- package/system/dist/{log-destination.cap-DELPJkZ0.js → log-destination.cap-BzTWMj-T.js} +4 -1
- package/system/dist/{log-destination.cap-CxZzAVaR.mjs → log-destination.cap-QYMJPJwK.mjs} +4 -1
- package/system/dist/{low-power-sleep.cap-7lfVU41N.js → low-power-sleep.cap-B6mz6ojP.js} +1 -1
- package/system/dist/{low-power-sleep.cap-tGPmaZ_V.mjs → low-power-sleep.cap-C3Vi8Vxj.mjs} +1 -1
- package/system/dist/{metrics-provider.cap-BNmcHDkQ.mjs → metrics-provider.cap-01SwpLu5.mjs} +1 -1
- package/system/dist/{metrics-provider.cap-BcmQUt6l.js → metrics-provider.cap-BMKD5FH3.js} +1 -1
- package/system/dist/{migration-BMjgkyG2.js → migration-BOQlFZCN.js} +1 -1
- package/system/dist/{migration-DRJAtdy7.mjs → migration-DGAc6ywR.mjs} +1 -1
- package/system/dist/{network-access.cap-B5TWLDCC.js → network-access.cap-BEN_uRVb.js} +12 -2
- package/system/dist/{network-access.cap-BJnGbE6n.mjs → network-access.cap-Dy8FNNVs.mjs} +12 -2
- package/system/dist/{notification-rules.cap-DUmiMBQB.mjs → notification-rules.cap-0vVvsxQ1.mjs} +14 -1
- package/system/dist/{notification-rules.cap-BDh0LDhV.js → notification-rules.cap-Drwz-A4n.js} +14 -1
- package/system/dist/{notification-targets-CRH-9Dy5.js → notification-targets-Cc_3OBH9.js} +1 -1
- package/system/dist/{notification-targets-DaNE-pIt.mjs → notification-targets-DR-D-vIt.mjs} +1 -1
- package/system/dist/{platform-probe.cap-1WrMhWHx.js → platform-probe.cap-C0N9CugQ.js} +5 -1
- package/system/dist/{platform-probe.cap-BFeqFLtQ.mjs → platform-probe.cap-DzZ7xUfS.mjs} +5 -1
- package/system/dist/{prefix-walk-DD1BM923.js → prefix-walk-BRlQiqVg.js} +2 -2
- package/system/dist/{prefix-walk-CRnbYJcC.mjs → prefix-walk-BrrMuJBM.mjs} +2 -2
- package/system/dist/{ptz-autotrack.cap-DT2GypXw.mjs → ptz-autotrack.cap-CDF6FeTK.mjs} +1 -1
- package/system/dist/{ptz-autotrack.cap-BW7w0zHD.js → ptz-autotrack.cap-DOz0xL0O.js} +1 -1
- package/system/dist/{record-entries.cap-sMUhTvTU.mjs → record-entries.cap-BINjYZ1Q.mjs} +5 -2
- package/system/dist/{record-entries.cap-ti1C046R.js → record-entries.cap-NYExLM0O.js} +5 -2
- package/system/dist/{recording-archive.cap-D7bo-QSM.js → recording-archive.cap-BPJ7kvnd.js} +6 -1
- package/system/dist/{recording-archive.cap-7OrIn9e5.mjs → recording-archive.cap-RHAN45fa.mjs} +6 -1
- package/system/dist/{records.cap-CwLT2ByG.mjs → records.cap-DRwT1JbL.mjs} +10 -1
- package/system/dist/{records.cap-ClcWV64i.js → records.cap-wLi7r4Hj.js} +10 -1
- package/system/dist/{rename-composition-block-BRgyBO25.js → rename-composition-block-D44wnN_m.js} +464 -45
- package/system/dist/{rename-composition-block-BYRBlx-V.mjs → rename-composition-block-SPaUkmam.mjs} +464 -45
- package/system/dist/{restore-archive-CjAyKpgX.mjs → restore-archive-BHkSRJYW.mjs} +2 -2
- package/system/dist/{restore-archive-CkTkv3Ss.js → restore-archive-DRv1bPY7.js} +2 -2
- package/system/dist/{settings-store.cap-wlJhCspr.js → settings-store.cap-BhOIBtO4.js} +1 -1
- package/system/dist/{settings-store.cap-Ci4F2zul.mjs → settings-store.cap-CaDSOqgK.mjs} +1 -1
- package/system/dist/{snapshot.cap-Bs8Oyaqh.mjs → snapshot.cap-BkfHpJVO.mjs} +3 -1
- package/system/dist/{snapshot.cap-3suPdBHV.js → snapshot.cap-Cis6JRwn.js} +3 -1
- package/system/dist/{storage-admin.cap-BSv1NjKJ.mjs → storage-admin.cap-Ci4QbL6P.mjs} +4 -4
- package/system/dist/{storage-admin.cap-he0OqvVM.js → storage-admin.cap-DqW1ol4j.js} +4 -4
- package/system/dist/{storage-migration.cap-CyyATY_p.js → storage-migration.cap-CDOhpCQw.js} +23 -1
- package/system/dist/{storage-migration.cap-D7QqGobp.mjs → storage-migration.cap-Ciw84XPm.mjs} +23 -1
- package/system/dist/{storage-occupancy.cap-2rmnS58Z.js → storage-occupancy.cap-B-Z8f8TZ.js} +5 -3
- package/system/dist/{storage-occupancy.cap-CqBztTl9.mjs → storage-occupancy.cap-B-wbMPmx.mjs} +5 -3
- package/system/dist/{storage-provider.cap-Bw0CfxVc.js → storage-provider.cap-B3Hm_BGM.js} +15 -1
- package/system/dist/{storage-provider.cap-CMeck2w4.mjs → storage-provider.cap-CnN9ULbc.mjs} +15 -1
- package/system/dist/{stream-catalog.cap-Bp7SkgIf.mjs → stream-catalog.cap-D1Hy19Yc.mjs} +126 -10
- package/system/dist/{stream-catalog.cap-D3uwePiA.js → stream-catalog.cap-D8Y-uXcy.js} +131 -9
- package/system/dist/{user-management.cap-DBIi77sB.mjs → user-management.cap-Ctd4c_im.mjs} +26 -1
- package/system/dist/{user-management.cap-B9QDu8NE.js → user-management.cap-DyVb68rY.js} +26 -1
- package/system/dist/{vector-store.cap-DnyfrYDn.js → vector-store.cap-DEVI-XJC.js} +6 -1
- package/system/dist/{vector-store.cap-h2GHWQ1t.mjs → vector-store.cap-Df60cnrJ.mjs} +6 -1
- package/system/dist/{wal-maintenance-BG01rOn9.mjs → wal-maintenance-O6zTzaI7.mjs} +0 -0
- package/system/dist/{wal-maintenance-DyrebYKF.js → wal-maintenance-mV4OR3LR.js} +0 -0
- package/system/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as method } from "./capability-definition-
|
|
1
|
+
import { c as method } from "./capability-definition-C1TLUVJR.mjs";
|
|
2
2
|
import { n as baseUnitOf } from "./quantity-D3g5SxsZ.mjs";
|
|
3
3
|
import { n as DeviceRole, r as DeviceType, t as DeviceFeature } from "./device-type-DgEvK3ch.mjs";
|
|
4
4
|
import { t as canonicalStoredDeviceType } from "./device-kind-BJ2pfsjw.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
require("./chunk-Cek0wNdY.js");
|
|
2
|
-
const require_wal_maintenance = require("./wal-maintenance-
|
|
2
|
+
const require_wal_maintenance = require("./wal-maintenance-mV4OR3LR.js");
|
|
3
3
|
let node_worker_threads = require("node:worker_threads");
|
|
4
4
|
//#region src/builtins/sqlite-storage/file-host-worker.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as callRecords, C as isFileHostWorkerData, D as RecordsEngine, M as controlTargetOf, O as callControl, S as isFileHostRequest, a as WalMaintenance, b as collectTransferables, d as callMigrate, f as migrateTargetOf, j as callVector, k as callData, l as SqliteSettingsBackend, o as createVectorIndex, s as vectorProviderOf, u as HUB_MIGRATIONS, v as serializeError, w as trustInput } from "./wal-maintenance-
|
|
1
|
+
import { A as callRecords, C as isFileHostWorkerData, D as RecordsEngine, M as controlTargetOf, O as callControl, S as isFileHostRequest, a as WalMaintenance, b as collectTransferables, d as callMigrate, f as migrateTargetOf, j as callVector, k as callData, l as SqliteSettingsBackend, o as createVectorIndex, s as vectorProviderOf, u as HUB_MIGRATIONS, v as serializeError, w as trustInput } from "./wal-maintenance-O6zTzaI7.mjs";
|
|
2
2
|
import { parentPort, threadId, workerData } from "node:worker_threads";
|
|
3
3
|
//#region src/builtins/sqlite-storage/file-host-worker.ts
|
|
4
4
|
/**
|
package/system/dist/index.js
CHANGED
|
@@ -2,15 +2,15 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
3
3
|
const require_base_addon = require("./base-addon-DD5dIfcZ.js");
|
|
4
4
|
const require_scoped_settings = require("./scoped-settings-CylSSq_8.js");
|
|
5
|
-
const require_rename_composition_block = require("./rename-composition-block-
|
|
5
|
+
const require_rename_composition_block = require("./rename-composition-block-D44wnN_m.js");
|
|
6
6
|
const require_camstack_error = require("./camstack-error-DJ-TUAi1.js");
|
|
7
|
-
const require_capability_definition = require("./capability-definition-
|
|
7
|
+
const require_capability_definition = require("./capability-definition-BEVd01Xj.js");
|
|
8
8
|
const require_record_kind = require("./record-kind-DoBfYHCs.js");
|
|
9
|
-
const require_wal_maintenance = require("./wal-maintenance-
|
|
9
|
+
const require_wal_maintenance = require("./wal-maintenance-mV4OR3LR.js");
|
|
10
10
|
const require_device_certificate = require("./device-certificate-CguVACQO.js");
|
|
11
|
-
const require_addon_settings_cap = require("./addon-settings.cap-
|
|
12
|
-
const require_prefix_walk = require("./prefix-walk-
|
|
13
|
-
const require_network_access_cap = require("./network-access.cap-
|
|
11
|
+
const require_addon_settings_cap = require("./addon-settings.cap-DrLdMFIe.js");
|
|
12
|
+
const require_prefix_walk = require("./prefix-walk-BRlQiqVg.js");
|
|
13
|
+
const require_network_access_cap = require("./network-access.cap-BEN_uRVb.js");
|
|
14
14
|
const require_constants = require("./constants-C860Y6U4.js");
|
|
15
15
|
const require_addon_id = require("./addon-id-Di0lNJ89.js");
|
|
16
16
|
const require_coral_accelerators = require("./coral-accelerators-7o8hqvcN.js");
|
|
@@ -56,7 +56,7 @@ const require_custom_action_registry = require("./custom-action-registry-CmWpSeM
|
|
|
56
56
|
const require_hub_mdns_ciao = require("./hub-mdns-ciao--0v1TKME.js");
|
|
57
57
|
const require_platform_key_source = require("./platform-key-source-Di7HrlGR.js");
|
|
58
58
|
const require_resource_monitor = require("./resource-monitor-mio9dSCT.js");
|
|
59
|
-
const require_restore_archive = require("./restore-archive-
|
|
59
|
+
const require_restore_archive = require("./restore-archive-DRv1bPY7.js");
|
|
60
60
|
let zod = require("zod");
|
|
61
61
|
let node_crypto = require("node:crypto");
|
|
62
62
|
node_crypto = require_chunk.__toESM(node_crypto);
|
package/system/dist/index.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { i as __require } from "./chunk-CNf5ZN-e.mjs";
|
|
2
2
|
import { b as EventCategory$1, i as collectSecretMarkerRefs, p as createEvent$1 } from "./base-addon-Md14i7pe.mjs";
|
|
3
3
|
import { Z as errMsg$1 } from "./scoped-settings-DVWUIP7Z.mjs";
|
|
4
|
-
import { Un as lifecycleJobSchema, a as isCollectionArrayMethod, c as kebabToCamel$1, d as objectInputDeclaresRequiredDeviceId, dr as compareVersions, f as procedureAuthKey, fr as describeUnmet, i as isArrayOutputSchema, l as looseSchema, m as ALL_CAPABILITY_DEFINITIONS, o as isObjectInput, p as resolveMethodAuth, pr as unmetRequirements, r as extractNestedAddonId, s as isVoidInput, u as objectInputDeclaresAddonId, ur as PackageRequiresSchema } from "./rename-composition-block-
|
|
4
|
+
import { Un as lifecycleJobSchema, a as isCollectionArrayMethod, c as kebabToCamel$1, d as objectInputDeclaresRequiredDeviceId, dr as compareVersions, f as procedureAuthKey, fr as describeUnmet, i as isArrayOutputSchema, l as looseSchema, m as ALL_CAPABILITY_DEFINITIONS, o as isObjectInput, p as resolveMethodAuth, pr as unmetRequirements, r as extractNestedAddonId, s as isVoidInput, u as objectInputDeclaresAddonId, ur as PackageRequiresSchema } from "./rename-composition-block-SPaUkmam.mjs";
|
|
5
5
|
import { t as userError } from "./camstack-error-viZYfcj9.mjs";
|
|
6
|
-
import { a as expandCapMethods, n as DEVICE_STATUS_METHOD, t as DEVICE_SETTINGS_CONTRIBUTION_METHODS, u as resolveCapMount } from "./capability-definition-
|
|
6
|
+
import { a as expandCapMethods, n as DEVICE_STATUS_METHOD, t as DEVICE_SETTINGS_CONTRIBUTION_METHODS, u as resolveCapMount } from "./capability-definition-C1TLUVJR.mjs";
|
|
7
7
|
import { s as defineRecordKinds } from "./record-kind-ub6NXqfh.mjs";
|
|
8
|
-
import { D as RecordsEngine, J as asNumber, X as parseJsonObject, Y as asString$1, Z as parseJsonUnknown, l as SqliteSettingsBackend, q as asJsonObject$1 } from "./wal-maintenance-
|
|
8
|
+
import { D as RecordsEngine, J as asNumber, X as parseJsonObject, Y as asString$1, Z as parseJsonUnknown, l as SqliteSettingsBackend, q as asJsonObject$1 } from "./wal-maintenance-O6zTzaI7.mjs";
|
|
9
9
|
import { f as AppPageLangSchema } from "./device-certificate-Cddm4Idn.mjs";
|
|
10
|
-
import { i as addonSettingsCapability } from "./addon-settings.cap-
|
|
11
|
-
import { t as loadPrefixed } from "./prefix-walk-
|
|
12
|
-
import { a as AGENT_MDNS_TXT_KEYS, i as AGENT_MDNS_SERVICE_TYPE } from "./network-access.cap-
|
|
10
|
+
import { i as addonSettingsCapability } from "./addon-settings.cap-CZ4MC7ha.mjs";
|
|
11
|
+
import { t as loadPrefixed } from "./prefix-walk-BrrMuJBM.mjs";
|
|
12
|
+
import { a as AGENT_MDNS_TXT_KEYS, i as AGENT_MDNS_SERVICE_TYPE } from "./network-access.cap-Dy8FNNVs.mjs";
|
|
13
13
|
import { t as RUNTIME_DEFAULTS } from "./constants-DCLpoF4L.mjs";
|
|
14
14
|
import { t as bareAddonId } from "./addon-id-CVg1_r5E.mjs";
|
|
15
15
|
import { r as nodeCoralFs, s as supportedRuntimes, t as classifyCoralAccelerator } from "./coral-accelerators-BKcXP59c.mjs";
|
|
@@ -55,7 +55,7 @@ import { C as isModelDownloaded, E as setHuggingFaceReachabilityObserver, T as r
|
|
|
55
55
|
import { A as retirePreviousLocalCa, C as checkUploadedCa, D as loadTlsCert, E as ensureTlsCert, F as closeLanHttp, I as readLanHttpState, L as registerLanHttpHandler, M as allFamiliesListenHost, N as applyLanHttp, O as reissueTlsLeaf, P as bindPendingLanHttp, S as chainsToPublicRoot, T as caReplacementMarkerFile, _ as readTlsMode, a as storeUploadedCertificate, b as writeTlsEnabled, c as leafFingerprintOf, d as servedHttpsLeafFingerprint, f as prepareBootTls, g as readTlsEnabled, h as readTlsAccessStatus, i as revertToGeneratedCertificate, j as DEFAULT_LAN_HTTP_PORT, k as replaceUnconstrainedLocalCa, l as registerHttpsListener, m as readExtraSans, n as applyCertificateToListener, o as useStoredUploadedCertificate, p as UPLOADED_CA_FILE, r as regenerateCertificate, s as clearHttpsListener, t as createCiaoPublisher, u as reloadHttpsListener, v as splitPemCertificates, w as validateUploadedTls, x as writeTlsMode, y as writeExtraSans } from "./hub-mdns-ciao-DBrtHOcc.mjs";
|
|
56
56
|
import { n as getPlatformKeychainKey, r as setPlatformKeychainKey, t as clearPlatformKeychainKey } from "./platform-key-source-BWlq0jjn.mjs";
|
|
57
57
|
import { n as getSinglePidStats, t as getPidStats } from "./resource-monitor-Di9daRwI.mjs";
|
|
58
|
-
import { _ as backupRecordStoresOf, c as BackupDecryptError, f as generateBackupKeyPair, g as backupOrchestratorRecordKinds, h as readBackupEncryptionHeader, l as BackupKeyFormatError, r as prepareRestoreArchive, s as SystemBackupService, t as BackupKeyRequiredError, u as BackupKeyMismatchError } from "./restore-archive-
|
|
58
|
+
import { _ as backupRecordStoresOf, c as BackupDecryptError, f as generateBackupKeyPair, g as backupOrchestratorRecordKinds, h as readBackupEncryptionHeader, l as BackupKeyFormatError, r as prepareRestoreArchive, s as SystemBackupService, t as BackupKeyRequiredError, u as BackupKeyMismatchError } from "./restore-archive-BHkSRJYW.mjs";
|
|
59
59
|
import { z } from "zod";
|
|
60
60
|
import * as crypto$1 from "node:crypto";
|
|
61
61
|
import { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as method, l as optionalMethod } from "./capability-definition-
|
|
1
|
+
import { c as method, l as optionalMethod } from "./capability-definition-C1TLUVJR.mjs";
|
|
2
2
|
import { t as NOT_A_DEVICE } from "./system-reasons-CYj4qwyS.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region ../types/dist/esm/capabilities/integrations.cap.mjs
|
|
@@ -157,7 +157,9 @@ var integrationsCapability = {
|
|
|
157
157
|
scope: "system",
|
|
158
158
|
mode: "singleton",
|
|
159
159
|
methods: {
|
|
160
|
+
/** List the integrations with their current state. */
|
|
160
161
|
list: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), /* @__PURE__ */ z.array(IntegrationWithStateSchema)),
|
|
162
|
+
/** Fetch one integration with its state. */
|
|
161
163
|
get: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ id: /* @__PURE__ */ z.string() }), IntegrationWithStateSchema),
|
|
162
164
|
/** The devices-role row of an addon; a services instance row never answers for its addon. */
|
|
163
165
|
getByAddonId: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ addonId: /* @__PURE__ */ z.string() }), /* @__PURE__ */ IntegrationLiteSchema.nullable()),
|
|
@@ -197,6 +199,7 @@ var integrationsCapability = {
|
|
|
197
199
|
kind: "mutation",
|
|
198
200
|
auth: "admin"
|
|
199
201
|
}),
|
|
202
|
+
/** Change an integration's settings. */
|
|
200
203
|
update: /* @__PURE__ */ method(UpdateIntegrationInputSchema, IntegrationLiteSchema, {
|
|
201
204
|
kind: "mutation",
|
|
202
205
|
auth: "admin"
|
|
@@ -212,6 +215,7 @@ var integrationsCapability = {
|
|
|
212
215
|
kind: "mutation",
|
|
213
216
|
auth: "admin"
|
|
214
217
|
}),
|
|
218
|
+
/** List the integration types that can be added. */
|
|
215
219
|
getAvailableTypes: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), /* @__PURE__ */ z.array(AvailableIntegrationTypeSchema), { auth: "admin" })
|
|
216
220
|
},
|
|
217
221
|
/** BIG PLAN 2: declarative mount hint — read by `@camstack/server/system` `buildCapRouters`. */
|
|
@@ -435,6 +439,7 @@ var integrationInstancesCapability = {
|
|
|
435
439
|
scope: "system",
|
|
436
440
|
mode: "collection",
|
|
437
441
|
methods: {
|
|
442
|
+
/** What kind of instances this addon's integration holds and how to configure them. */
|
|
438
443
|
describe: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), IntegrationInstanceDescriptionSchema, { auth: "admin" }),
|
|
439
444
|
/** The form; `id: null` is the create form. */
|
|
440
445
|
instanceFormSchema: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
@@ -450,10 +455,12 @@ var integrationInstancesCapability = {
|
|
|
450
455
|
/** The discovery candidate the wizard was seeded from (`stableId`), if any. */
|
|
451
456
|
candidateStableId: /* @__PURE__ */ z.string().min(1).optional()
|
|
452
457
|
}), ConfigSchemaPassthrough, { auth: "admin" }),
|
|
458
|
+
/** List the integration's instances (accounts, relays, destinations). */
|
|
453
459
|
listInstances: /* @__PURE__ */ method(/* @__PURE__ */ z.looseObject({}), /* @__PURE__ */ z.array(IntegrationInstanceSchema).readonly(), {
|
|
454
460
|
auth: "protected",
|
|
455
461
|
caller: "scoped"
|
|
456
462
|
}),
|
|
463
|
+
/** Fetch one integration instance by id; null when absent. */
|
|
457
464
|
getInstance: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ id: IntegrationInstanceIdSchema }), /* @__PURE__ */ IntegrationInstanceSchema.nullable(), {
|
|
458
465
|
auth: "protected",
|
|
459
466
|
caller: "scoped"
|
|
@@ -493,6 +500,7 @@ var integrationInstancesCapability = {
|
|
|
493
500
|
auth: "protected",
|
|
494
501
|
caller: "scoped"
|
|
495
502
|
}),
|
|
503
|
+
/** Create or change an integration instance. */
|
|
496
504
|
updateInstance: /* @__PURE__ */ method(IntegrationInstancePatchSchema, /* @__PURE__ */ z.object({ ok: /* @__PURE__ */ z.literal(true) }), {
|
|
497
505
|
kind: "mutation",
|
|
498
506
|
auth: "protected",
|
|
@@ -521,6 +529,7 @@ var integrationInstancesCapability = {
|
|
|
521
529
|
auth: "protected",
|
|
522
530
|
caller: "scoped"
|
|
523
531
|
}),
|
|
532
|
+
/** Test an instance's connection with the given values before saving. */
|
|
524
533
|
testInstance: /* @__PURE__ */ optionalMethod(/* @__PURE__ */ z.object({
|
|
525
534
|
id: /* @__PURE__ */ IntegrationInstanceIdSchema.nullable(),
|
|
526
535
|
values: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.unknown()),
|
package/system/dist/{integration-instances.cap-dJIxg2_s.js → integration-instances.cap-DSieF1w3.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_capability_definition = require("./capability-definition-
|
|
1
|
+
const require_capability_definition = require("./capability-definition-BEVd01Xj.js");
|
|
2
2
|
const require_system_reasons = require("./system-reasons-Be_k1W8g.js");
|
|
3
3
|
let zod = require("zod");
|
|
4
4
|
//#region ../types/dist/esm/capabilities/integrations.cap.mjs
|
|
@@ -157,7 +157,9 @@ var integrationsCapability = {
|
|
|
157
157
|
scope: "system",
|
|
158
158
|
mode: "singleton",
|
|
159
159
|
methods: {
|
|
160
|
+
/** List the integrations with their current state. */
|
|
160
161
|
list: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), /* @__PURE__ */ zod.z.array(IntegrationWithStateSchema)),
|
|
162
|
+
/** Fetch one integration with its state. */
|
|
161
163
|
get: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ id: /* @__PURE__ */ zod.z.string() }), IntegrationWithStateSchema),
|
|
162
164
|
/** The devices-role row of an addon; a services instance row never answers for its addon. */
|
|
163
165
|
getByAddonId: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ addonId: /* @__PURE__ */ zod.z.string() }), /* @__PURE__ */ IntegrationLiteSchema.nullable()),
|
|
@@ -197,6 +199,7 @@ var integrationsCapability = {
|
|
|
197
199
|
kind: "mutation",
|
|
198
200
|
auth: "admin"
|
|
199
201
|
}),
|
|
202
|
+
/** Change an integration's settings. */
|
|
200
203
|
update: /* @__PURE__ */ require_capability_definition.method(UpdateIntegrationInputSchema, IntegrationLiteSchema, {
|
|
201
204
|
kind: "mutation",
|
|
202
205
|
auth: "admin"
|
|
@@ -212,6 +215,7 @@ var integrationsCapability = {
|
|
|
212
215
|
kind: "mutation",
|
|
213
216
|
auth: "admin"
|
|
214
217
|
}),
|
|
218
|
+
/** List the integration types that can be added. */
|
|
215
219
|
getAvailableTypes: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), /* @__PURE__ */ zod.z.array(AvailableIntegrationTypeSchema), { auth: "admin" })
|
|
216
220
|
},
|
|
217
221
|
/** BIG PLAN 2: declarative mount hint — read by `@camstack/server/system` `buildCapRouters`. */
|
|
@@ -435,6 +439,7 @@ var integrationInstancesCapability = {
|
|
|
435
439
|
scope: "system",
|
|
436
440
|
mode: "collection",
|
|
437
441
|
methods: {
|
|
442
|
+
/** What kind of instances this addon's integration holds and how to configure them. */
|
|
438
443
|
describe: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), IntegrationInstanceDescriptionSchema, { auth: "admin" }),
|
|
439
444
|
/** The form; `id: null` is the create form. */
|
|
440
445
|
instanceFormSchema: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
|
|
@@ -450,10 +455,12 @@ var integrationInstancesCapability = {
|
|
|
450
455
|
/** The discovery candidate the wizard was seeded from (`stableId`), if any. */
|
|
451
456
|
candidateStableId: /* @__PURE__ */ zod.z.string().min(1).optional()
|
|
452
457
|
}), ConfigSchemaPassthrough, { auth: "admin" }),
|
|
458
|
+
/** List the integration's instances (accounts, relays, destinations). */
|
|
453
459
|
listInstances: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.looseObject({}), /* @__PURE__ */ zod.z.array(IntegrationInstanceSchema).readonly(), {
|
|
454
460
|
auth: "protected",
|
|
455
461
|
caller: "scoped"
|
|
456
462
|
}),
|
|
463
|
+
/** Fetch one integration instance by id; null when absent. */
|
|
457
464
|
getInstance: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ id: IntegrationInstanceIdSchema }), /* @__PURE__ */ IntegrationInstanceSchema.nullable(), {
|
|
458
465
|
auth: "protected",
|
|
459
466
|
caller: "scoped"
|
|
@@ -493,6 +500,7 @@ var integrationInstancesCapability = {
|
|
|
493
500
|
auth: "protected",
|
|
494
501
|
caller: "scoped"
|
|
495
502
|
}),
|
|
503
|
+
/** Create or change an integration instance. */
|
|
496
504
|
updateInstance: /* @__PURE__ */ require_capability_definition.method(IntegrationInstancePatchSchema, /* @__PURE__ */ zod.z.object({ ok: /* @__PURE__ */ zod.z.literal(true) }), {
|
|
497
505
|
kind: "mutation",
|
|
498
506
|
auth: "protected",
|
|
@@ -521,6 +529,7 @@ var integrationInstancesCapability = {
|
|
|
521
529
|
auth: "protected",
|
|
522
530
|
caller: "scoped"
|
|
523
531
|
}),
|
|
532
|
+
/** Test an instance's connection with the given values before saving. */
|
|
524
533
|
testInstance: /* @__PURE__ */ require_capability_definition.optionalMethod(/* @__PURE__ */ zod.z.object({
|
|
525
534
|
id: /* @__PURE__ */ IntegrationInstanceIdSchema.nullable(),
|
|
526
535
|
values: /* @__PURE__ */ zod.z.record(/* @__PURE__ */ zod.z.string(), /* @__PURE__ */ zod.z.unknown()),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as method } from "./capability-definition-
|
|
1
|
+
import { c as method } from "./capability-definition-C1TLUVJR.mjs";
|
|
2
2
|
import { t as NOT_A_DEVICE } from "./system-reasons-CYj4qwyS.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region ../types/dist/esm/capabilities/keychain.cap.mjs
|
|
@@ -263,8 +263,11 @@ var keychainAdminCapability = {
|
|
|
263
263
|
scope: "system",
|
|
264
264
|
mode: "singleton",
|
|
265
265
|
methods: {
|
|
266
|
+
/** The state of the keychain (locked, backend, key age). */
|
|
266
267
|
status: /* @__PURE__ */ method(/* @__PURE__ */ z.object({}), KeychainStatusSchema, { auth: "admin" }),
|
|
268
|
+
/** List the stored secrets without their values. */
|
|
267
269
|
listSecrets: /* @__PURE__ */ method(/* @__PURE__ */ z.object({}), /* @__PURE__ */ z.array(KeychainAdminSecretSchema).readonly(), { auth: "admin" }),
|
|
270
|
+
/** List recent keychain audit entries. */
|
|
268
271
|
listAudit: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ limit: /* @__PURE__ */ z.number().int().min(1).max(500).optional() }), /* @__PURE__ */ z.array(KeychainAuditEntrySchema).readonly(), { auth: "admin" }),
|
|
269
272
|
/**
|
|
270
273
|
* Show one value to the operator. Audited. The UI hides it again after a
|
|
@@ -345,6 +348,7 @@ var keychainAdminCapability = {
|
|
|
345
348
|
auth: "admin",
|
|
346
349
|
caller: "required"
|
|
347
350
|
}),
|
|
351
|
+
/** Delete retired encryption keys and report how many were removed. */
|
|
348
352
|
purgeRetiredKeys: /* @__PURE__ */ method(/* @__PURE__ */ z.object({}), /* @__PURE__ */ z.object({ purged: /* @__PURE__ */ z.number().int() }), {
|
|
349
353
|
kind: "mutation",
|
|
350
354
|
auth: "admin",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_capability_definition = require("./capability-definition-
|
|
1
|
+
const require_capability_definition = require("./capability-definition-BEVd01Xj.js");
|
|
2
2
|
const require_system_reasons = require("./system-reasons-Be_k1W8g.js");
|
|
3
3
|
let zod = require("zod");
|
|
4
4
|
//#region ../types/dist/esm/capabilities/keychain.cap.mjs
|
|
@@ -263,8 +263,11 @@ var keychainAdminCapability = {
|
|
|
263
263
|
scope: "system",
|
|
264
264
|
mode: "singleton",
|
|
265
265
|
methods: {
|
|
266
|
+
/** The state of the keychain (locked, backend, key age). */
|
|
266
267
|
status: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({}), KeychainStatusSchema, { auth: "admin" }),
|
|
268
|
+
/** List the stored secrets without their values. */
|
|
267
269
|
listSecrets: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({}), /* @__PURE__ */ zod.z.array(KeychainAdminSecretSchema).readonly(), { auth: "admin" }),
|
|
270
|
+
/** List recent keychain audit entries. */
|
|
268
271
|
listAudit: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ limit: /* @__PURE__ */ zod.z.number().int().min(1).max(500).optional() }), /* @__PURE__ */ zod.z.array(KeychainAuditEntrySchema).readonly(), { auth: "admin" }),
|
|
269
272
|
/**
|
|
270
273
|
* Show one value to the operator. Audited. The UI hides it again after a
|
|
@@ -345,6 +348,7 @@ var keychainAdminCapability = {
|
|
|
345
348
|
auth: "admin",
|
|
346
349
|
caller: "required"
|
|
347
350
|
}),
|
|
351
|
+
/** Delete retired encryption keys and report how many were removed. */
|
|
348
352
|
purgeRetiredKeys: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({}), /* @__PURE__ */ zod.z.object({ purged: /* @__PURE__ */ zod.z.number().int() }), {
|
|
349
353
|
kind: "mutation",
|
|
350
354
|
auth: "admin",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_capability_definition = require("./capability-definition-
|
|
1
|
+
const require_capability_definition = require("./capability-definition-BEVd01Xj.js");
|
|
2
2
|
const require_system_reasons = require("./system-reasons-Be_k1W8g.js");
|
|
3
3
|
let zod = require("zod");
|
|
4
4
|
//#region ../types/dist/esm/capabilities/log-destination.cap.mjs
|
|
@@ -126,10 +126,13 @@ var logDestinationCapability = {
|
|
|
126
126
|
mode: "collection",
|
|
127
127
|
internal: true,
|
|
128
128
|
methods: {
|
|
129
|
+
/** Write one log entry to this destination. */
|
|
129
130
|
write: /* @__PURE__ */ require_capability_definition.method(LogEntrySchema, /* @__PURE__ */ zod.z.void(), { kind: "mutation" }),
|
|
130
131
|
/** Absent ⇒ the destination cannot read back (same as `readable: false`). */
|
|
131
132
|
describeRead: /* @__PURE__ */ require_capability_definition.optionalMethod(LogInstanceSelectorSchema, LogReadCapabilitiesSchema, { auth: "admin" }),
|
|
133
|
+
/** Read log entries back from this destination. */
|
|
132
134
|
read: /* @__PURE__ */ require_capability_definition.optionalMethod(LogReadQuerySchema, LogReadResultSchema, { auth: "admin" }),
|
|
135
|
+
/** Cancel a running log read. */
|
|
133
136
|
cancelRead: /* @__PURE__ */ require_capability_definition.optionalMethod(/* @__PURE__ */ zod.z.object({ requestId: /* @__PURE__ */ zod.z.string().min(1).max(64) }), /* @__PURE__ */ zod.z.object({ cancelled: /* @__PURE__ */ zod.z.boolean() }), {
|
|
134
137
|
kind: "mutation",
|
|
135
138
|
auth: "admin"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as method, l as optionalMethod } from "./capability-definition-
|
|
1
|
+
import { c as method, l as optionalMethod } from "./capability-definition-C1TLUVJR.mjs";
|
|
2
2
|
import { t as NOT_A_DEVICE } from "./system-reasons-CYj4qwyS.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region ../types/dist/esm/capabilities/log-destination.cap.mjs
|
|
@@ -126,10 +126,13 @@ var logDestinationCapability = {
|
|
|
126
126
|
mode: "collection",
|
|
127
127
|
internal: true,
|
|
128
128
|
methods: {
|
|
129
|
+
/** Write one log entry to this destination. */
|
|
129
130
|
write: /* @__PURE__ */ method(LogEntrySchema, /* @__PURE__ */ z.void(), { kind: "mutation" }),
|
|
130
131
|
/** Absent ⇒ the destination cannot read back (same as `readable: false`). */
|
|
131
132
|
describeRead: /* @__PURE__ */ optionalMethod(LogInstanceSelectorSchema, LogReadCapabilitiesSchema, { auth: "admin" }),
|
|
133
|
+
/** Read log entries back from this destination. */
|
|
132
134
|
read: /* @__PURE__ */ optionalMethod(LogReadQuerySchema, LogReadResultSchema, { auth: "admin" }),
|
|
135
|
+
/** Cancel a running log read. */
|
|
133
136
|
cancelRead: /* @__PURE__ */ optionalMethod(/* @__PURE__ */ z.object({ requestId: /* @__PURE__ */ z.string().min(1).max(64) }), /* @__PURE__ */ z.object({ cancelled: /* @__PURE__ */ z.boolean() }), {
|
|
134
137
|
kind: "mutation",
|
|
135
138
|
auth: "admin"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_capability_definition = require("./capability-definition-
|
|
1
|
+
const require_capability_definition = require("./capability-definition-BEVd01Xj.js");
|
|
2
2
|
const require_quantity = require("./quantity-lY1KiTSZ.js");
|
|
3
3
|
const require_device_type = require("./device-type-CbQsnFdC.js");
|
|
4
4
|
const require_l10n = require("./l10n-CGMvp7NF.js");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as method } from "./capability-definition-
|
|
1
|
+
import { c as method } from "./capability-definition-C1TLUVJR.mjs";
|
|
2
2
|
import { a as readingMeta } from "./quantity-D3g5SxsZ.mjs";
|
|
3
3
|
import { r as DeviceType } from "./device-type-DgEvK3ch.mjs";
|
|
4
4
|
import { t } from "./l10n-Bu6aUvSY.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as method } from "./capability-definition-
|
|
1
|
+
import { c as method } from "./capability-definition-C1TLUVJR.mjs";
|
|
2
2
|
import { t as NOT_A_DEVICE } from "./system-reasons-CYj4qwyS.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region ../types/dist/esm/capabilities/metrics-provider.cap.mjs
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_capability_definition = require("./capability-definition-
|
|
1
|
+
const require_capability_definition = require("./capability-definition-BEVd01Xj.js");
|
|
2
2
|
const require_system_reasons = require("./system-reasons-Be_k1W8g.js");
|
|
3
3
|
let zod = require("zod");
|
|
4
4
|
//#region ../types/dist/esm/capabilities/metrics-provider.cap.mjs
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_settings_store_cap = require("./settings-store.cap-
|
|
1
|
+
const require_settings_store_cap = require("./settings-store.cap-BhOIBtO4.js");
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
var MigrationIdSchema = /* @__PURE__ */ zod.z.string().regex(/^[a-z0-9-]+\/\d{4}-\d{2}-\d{2}-[a-z0-9-]+$/, "a migration id is \"<owner>/<yyyy-mm-dd>-<slug>\"");
|
|
4
4
|
var MigrationLevelSchema = /* @__PURE__ */ zod.z.enum([
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as DataStoreDatabaseSchema } from "./settings-store.cap-
|
|
1
|
+
import { a as DataStoreDatabaseSchema } from "./settings-store.cap-CaDSOqgK.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
var MigrationIdSchema = /* @__PURE__ */ z.string().regex(/^[a-z0-9-]+\/\d{4}-\d{2}-\d{2}-[a-z0-9-]+$/, "a migration id is \"<owner>/<yyyy-mm-dd>-<slug>\"");
|
|
4
4
|
var MigrationLevelSchema = /* @__PURE__ */ z.enum([
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_capability_definition = require("./capability-definition-
|
|
1
|
+
const require_capability_definition = require("./capability-definition-BEVd01Xj.js");
|
|
2
2
|
const require_system_reasons = require("./system-reasons-Be_k1W8g.js");
|
|
3
|
-
const require_device_provider_cap = require("./device-provider.cap-
|
|
3
|
+
const require_device_provider_cap = require("./device-provider.cap-BKUGJSo0.js");
|
|
4
4
|
let zod = require("zod");
|
|
5
5
|
//#region ../types/dist/esm/capabilities/viewer-link-url.mjs
|
|
6
6
|
/** The central link domain the viewer app claims (Universal Links / App Links). */
|
|
@@ -767,6 +767,8 @@ var localNetworkCapability = {
|
|
|
767
767
|
*/
|
|
768
768
|
getNotificationEndpoint: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), NotificationEndpointSchema),
|
|
769
769
|
/**
|
|
770
|
+
* Set the base URL used in links inside notifications; null clears it.
|
|
771
|
+
*
|
|
770
772
|
* @deprecated Use `setAddressRole({ role: 'notificationTaps', … })`. It
|
|
771
773
|
* writes the same `notificationTaps` flag, with the same validation. `baseUrl: null` restores automatic; an
|
|
772
774
|
* address that is not detected becomes a custom address.
|
|
@@ -781,6 +783,8 @@ var localNetworkCapability = {
|
|
|
781
783
|
*/
|
|
782
784
|
getViewerEndpoints: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), ViewerEndpointsSchema),
|
|
783
785
|
/**
|
|
786
|
+
* Set the base URLs the viewer apps reach the hub on.
|
|
787
|
+
*
|
|
784
788
|
* @deprecated Use `setAddressRole({ role: 'appConnections', … })`. It
|
|
785
789
|
* replaces the same `appConnections` flags.
|
|
786
790
|
* Empty `baseUrls` restores automatic.
|
|
@@ -835,6 +839,8 @@ var localNetworkCapability = {
|
|
|
835
839
|
auth: "admin"
|
|
836
840
|
}),
|
|
837
841
|
/**
|
|
842
|
+
* The hub's cluster and browser addresses (deprecated; use getAddresses).
|
|
843
|
+
*
|
|
838
844
|
* @deprecated Read `getAddresses().roles.internal` / `.publicEndpoint`.
|
|
839
845
|
* Kept so an addon built against the D729 amendment keeps resolving:
|
|
840
846
|
* `cluster` = the `internal` role, `browser` = the `publicEndpoint` role.
|
|
@@ -987,9 +993,13 @@ var networkAccessCapability = {
|
|
|
987
993
|
mode: "collection",
|
|
988
994
|
providerKind: "ingress",
|
|
989
995
|
methods: {
|
|
996
|
+
/** Start the network access (tunnel) and return its public endpoint. */
|
|
990
997
|
start: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), NetworkEndpointSchema, { kind: "mutation" }),
|
|
998
|
+
/** Stop the network access. */
|
|
991
999
|
stop: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), /* @__PURE__ */ zod.z.void(), { kind: "mutation" }),
|
|
1000
|
+
/** The current public endpoint; null when not running. */
|
|
992
1001
|
getEndpoint: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), /* @__PURE__ */ NetworkEndpointSchema.nullable()),
|
|
1002
|
+
/** The status of the network access. */
|
|
993
1003
|
getStatus: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), NetworkAccessStatusSchema),
|
|
994
1004
|
/**
|
|
995
1005
|
* Enumerate every active ingress entry. Providers that expose only a
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as method } from "./capability-definition-
|
|
1
|
+
import { c as method } from "./capability-definition-C1TLUVJR.mjs";
|
|
2
2
|
import { t as NOT_A_DEVICE } from "./system-reasons-CYj4qwyS.mjs";
|
|
3
|
-
import { i as DiscoveryModeSchema, r as DiscoveryHitSchema } from "./device-provider.cap-
|
|
3
|
+
import { i as DiscoveryModeSchema, r as DiscoveryHitSchema } from "./device-provider.cap-DU6HMUXH.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region ../types/dist/esm/capabilities/viewer-link-url.mjs
|
|
6
6
|
/** The central link domain the viewer app claims (Universal Links / App Links). */
|
|
@@ -767,6 +767,8 @@ var localNetworkCapability = {
|
|
|
767
767
|
*/
|
|
768
768
|
getNotificationEndpoint: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), NotificationEndpointSchema),
|
|
769
769
|
/**
|
|
770
|
+
* Set the base URL used in links inside notifications; null clears it.
|
|
771
|
+
*
|
|
770
772
|
* @deprecated Use `setAddressRole({ role: 'notificationTaps', … })`. It
|
|
771
773
|
* writes the same `notificationTaps` flag, with the same validation. `baseUrl: null` restores automatic; an
|
|
772
774
|
* address that is not detected becomes a custom address.
|
|
@@ -781,6 +783,8 @@ var localNetworkCapability = {
|
|
|
781
783
|
*/
|
|
782
784
|
getViewerEndpoints: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), ViewerEndpointsSchema),
|
|
783
785
|
/**
|
|
786
|
+
* Set the base URLs the viewer apps reach the hub on.
|
|
787
|
+
*
|
|
784
788
|
* @deprecated Use `setAddressRole({ role: 'appConnections', … })`. It
|
|
785
789
|
* replaces the same `appConnections` flags.
|
|
786
790
|
* Empty `baseUrls` restores automatic.
|
|
@@ -835,6 +839,8 @@ var localNetworkCapability = {
|
|
|
835
839
|
auth: "admin"
|
|
836
840
|
}),
|
|
837
841
|
/**
|
|
842
|
+
* The hub's cluster and browser addresses (deprecated; use getAddresses).
|
|
843
|
+
*
|
|
838
844
|
* @deprecated Read `getAddresses().roles.internal` / `.publicEndpoint`.
|
|
839
845
|
* Kept so an addon built against the D729 amendment keeps resolving:
|
|
840
846
|
* `cluster` = the `internal` role, `browser` = the `publicEndpoint` role.
|
|
@@ -987,9 +993,13 @@ var networkAccessCapability = {
|
|
|
987
993
|
mode: "collection",
|
|
988
994
|
providerKind: "ingress",
|
|
989
995
|
methods: {
|
|
996
|
+
/** Start the network access (tunnel) and return its public endpoint. */
|
|
990
997
|
start: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), NetworkEndpointSchema, { kind: "mutation" }),
|
|
998
|
+
/** Stop the network access. */
|
|
991
999
|
stop: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), /* @__PURE__ */ z.void(), { kind: "mutation" }),
|
|
1000
|
+
/** The current public endpoint; null when not running. */
|
|
992
1001
|
getEndpoint: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), /* @__PURE__ */ NetworkEndpointSchema.nullable()),
|
|
1002
|
+
/** The status of the network access. */
|
|
993
1003
|
getStatus: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), NetworkAccessStatusSchema),
|
|
994
1004
|
/**
|
|
995
1005
|
* Enumerate every active ingress entry. Providers that expose only a
|
package/system/dist/{notification-rules.cap-DUmiMBQB.mjs → notification-rules.cap-0vVvsxQ1.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as CamProfileSchema } from "./streaming-shared-B8cXatuU.mjs";
|
|
2
|
-
import { c as method } from "./capability-definition-
|
|
2
|
+
import { c as method } from "./capability-definition-C1TLUVJR.mjs";
|
|
3
3
|
import { i as TagsFieldSchema } from "./tag-uZBAq6ox.mjs";
|
|
4
4
|
import { r as DeviceType } from "./device-type-DgEvK3ch.mjs";
|
|
5
5
|
import { t } from "./l10n-Bu6aUvSY.mjs";
|
|
@@ -414,7 +414,9 @@ var notificationOutputCapability = {
|
|
|
414
414
|
scope: "system",
|
|
415
415
|
mode: "collection",
|
|
416
416
|
methods: {
|
|
417
|
+
/** List the kinds of notification target this provider can deliver to. */
|
|
417
418
|
listTargetKinds: /* @__PURE__ */ method(/* @__PURE__ */ z.object({}), /* @__PURE__ */ z.array(TargetKindSchema)),
|
|
419
|
+
/** Discover the targets (chats, devices, channels) available for a kind with the given config. */
|
|
418
420
|
discoverTargets: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
419
421
|
kind: /* @__PURE__ */ z.string(),
|
|
420
422
|
config: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.unknown()).optional(),
|
|
@@ -425,6 +427,7 @@ var notificationOutputCapability = {
|
|
|
425
427
|
*/
|
|
426
428
|
targetId: /* @__PURE__ */ z.string().optional()
|
|
427
429
|
}), /* @__PURE__ */ z.array(DiscoveredTargetSchema), { auth: "admin" }),
|
|
430
|
+
/** Check that a target configuration works before saving it. */
|
|
428
431
|
probeTargetConfig: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
429
432
|
kind: /* @__PURE__ */ z.string(),
|
|
430
433
|
config: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.unknown()),
|
|
@@ -434,6 +437,7 @@ var notificationOutputCapability = {
|
|
|
434
437
|
kind: "mutation",
|
|
435
438
|
auth: "admin"
|
|
436
439
|
}),
|
|
440
|
+
/** Deliver a notification to one target. */
|
|
437
441
|
send: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
438
442
|
targetId: /* @__PURE__ */ z.string(),
|
|
439
443
|
notification: NotificationSchema
|
|
@@ -441,6 +445,7 @@ var notificationOutputCapability = {
|
|
|
441
445
|
kind: "mutation",
|
|
442
446
|
auth: "admin"
|
|
443
447
|
}),
|
|
448
|
+
/** Send a test notification to one target and report the outcome. */
|
|
444
449
|
testTarget: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
445
450
|
targetId: /* @__PURE__ */ z.string(),
|
|
446
451
|
sample: /* @__PURE__ */ NotificationSchema.optional()
|
|
@@ -536,6 +541,7 @@ var alarmPanelCapability = {
|
|
|
536
541
|
icon: "siren"
|
|
537
542
|
}]
|
|
538
543
|
}),
|
|
544
|
+
/** Disarm the alarm panel, with a PIN code when it needs one. */
|
|
539
545
|
disarm: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
540
546
|
deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
|
|
541
547
|
code: /* @__PURE__ */ z.string().min(1).optional()
|
|
@@ -570,6 +576,7 @@ var alarmPanelCapability = {
|
|
|
570
576
|
}]
|
|
571
577
|
}]
|
|
572
578
|
}),
|
|
579
|
+
/** Arm the alarm panel in the given mode, with a PIN code when it needs one. */
|
|
573
580
|
arm: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
574
581
|
deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
|
|
575
582
|
mode: AlarmArmModeSchema,
|
|
@@ -3079,22 +3086,28 @@ var notificationRulesCapability = {
|
|
|
3079
3086
|
scope: "system",
|
|
3080
3087
|
mode: "singleton",
|
|
3081
3088
|
methods: {
|
|
3089
|
+
/** List the notification rules. */
|
|
3082
3090
|
listRules: /* @__PURE__ */ method(/* @__PURE__ */ z.object({}), /* @__PURE__ */ z.object({ rules: /* @__PURE__ */ z.array(NcRuleSchema) }), { auth: "admin" }),
|
|
3091
|
+
/** Fetch one notification rule by id; null when absent. */
|
|
3083
3092
|
getRule: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ ruleId: /* @__PURE__ */ z.string() }), /* @__PURE__ */ z.object({ rule: /* @__PURE__ */ NcRuleSchema.nullable() }), { auth: "admin" }),
|
|
3093
|
+
/** Create a notification rule. */
|
|
3084
3094
|
createRule: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ rule: NcRuleInputSchema }), /* @__PURE__ */ z.object({ rule: NcRuleSchema }), {
|
|
3085
3095
|
kind: "mutation",
|
|
3086
3096
|
auth: "admin",
|
|
3087
3097
|
caller: "required"
|
|
3088
3098
|
}),
|
|
3099
|
+
/** Update a notification rule; the full rule must be sent. */
|
|
3089
3100
|
updateRule: /* @__PURE__ */ method(NcRuleUpdateInputSchema, /* @__PURE__ */ z.object({ rule: NcRuleSchema }), {
|
|
3090
3101
|
kind: "mutation",
|
|
3091
3102
|
auth: "admin",
|
|
3092
3103
|
caller: "required"
|
|
3093
3104
|
}),
|
|
3105
|
+
/** Delete a notification rule. */
|
|
3094
3106
|
deleteRule: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ ruleId: /* @__PURE__ */ z.string() }), /* @__PURE__ */ z.object({ success: /* @__PURE__ */ z.literal(true) }), {
|
|
3095
3107
|
kind: "mutation",
|
|
3096
3108
|
auth: "admin"
|
|
3097
3109
|
}),
|
|
3110
|
+
/** Enable or disable a notification rule. */
|
|
3098
3111
|
setRuleEnabled: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
3099
3112
|
ruleId: /* @__PURE__ */ z.string(),
|
|
3100
3113
|
enabled: /* @__PURE__ */ z.boolean()
|