@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,13 +1,13 @@
|
|
|
1
1
|
const require_base_addon = require("./base-addon-DD5dIfcZ.js");
|
|
2
2
|
const require_scoped_settings = require("./scoped-settings-CylSSq_8.js");
|
|
3
|
-
const require_capability_definition = require("./capability-definition-
|
|
3
|
+
const require_capability_definition = require("./capability-definition-BEVd01Xj.js");
|
|
4
4
|
const require_system_reasons = require("./system-reasons-Be_k1W8g.js");
|
|
5
5
|
const require_quantity = require("./quantity-lY1KiTSZ.js");
|
|
6
6
|
const require_tag = require("./tag-BxLazvVb.js");
|
|
7
7
|
const require_device_type = require("./device-type-CbQsnFdC.js");
|
|
8
8
|
const require_device_kind = require("./device-kind-CsSiv_YF.js");
|
|
9
|
-
const require_addon_settings_cap = require("./addon-settings.cap-
|
|
10
|
-
const require_error_cap = require("./error.cap-
|
|
9
|
+
const require_addon_settings_cap = require("./addon-settings.cap-DrLdMFIe.js");
|
|
10
|
+
const require_error_cap = require("./error.cap-BxLEHP6z.js");
|
|
11
11
|
const require_source_info = require("./source-info-DtWf4k2j.js");
|
|
12
12
|
const require_l10n = require("./l10n-CGMvp7NF.js");
|
|
13
13
|
const require_raw_secret_migration = require("./raw-secret-migration-DxuBFtvi.js");
|
|
@@ -12912,18 +12912,25 @@ var alertsCapability = {
|
|
|
12912
12912
|
scope: "system",
|
|
12913
12913
|
mode: "singleton",
|
|
12914
12914
|
methods: {
|
|
12915
|
+
/** Raise a new alert. */
|
|
12915
12916
|
emit: /* @__PURE__ */ require_capability_definition.method(AlertSchema, /* @__PURE__ */ zod.z.void(), { kind: "mutation" }),
|
|
12917
|
+
/** Change fields of an existing alert. */
|
|
12916
12918
|
update: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
|
|
12917
12919
|
alertId: /* @__PURE__ */ zod.z.string(),
|
|
12918
12920
|
patch: /* @__PURE__ */ AlertSchema.partial()
|
|
12919
12921
|
}), /* @__PURE__ */ zod.z.void(), { kind: "mutation" }),
|
|
12922
|
+
/** List alerts, optionally only unread ones. */
|
|
12920
12923
|
list: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
|
|
12921
12924
|
unreadOnly: /* @__PURE__ */ zod.z.boolean().optional(),
|
|
12922
12925
|
limit: /* @__PURE__ */ zod.z.number().optional()
|
|
12923
12926
|
}).optional(), /* @__PURE__ */ zod.z.array(AlertSchema).readonly()),
|
|
12927
|
+
/** How many alerts are unread. */
|
|
12924
12928
|
getUnreadCount: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), /* @__PURE__ */ zod.z.number()),
|
|
12929
|
+
/** Mark one alert as read. */
|
|
12925
12930
|
markRead: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ alertId: /* @__PURE__ */ zod.z.string() }), /* @__PURE__ */ zod.z.void(), { kind: "mutation" }),
|
|
12931
|
+
/** Mark every alert as read. */
|
|
12926
12932
|
markAllRead: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), /* @__PURE__ */ zod.z.void(), { kind: "mutation" }),
|
|
12933
|
+
/** Dismiss one alert. */
|
|
12927
12934
|
dismiss: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ alertId: /* @__PURE__ */ zod.z.string() }), /* @__PURE__ */ zod.z.void(), { kind: "mutation" })
|
|
12928
12935
|
},
|
|
12929
12936
|
vocabulary: { notOperatorFacing: "the alert centre — read and acknowledged on its own page" }
|
|
@@ -15565,6 +15572,7 @@ var mediaPlayerCapability = {
|
|
|
15565
15572
|
off: "turnOff"
|
|
15566
15573
|
},
|
|
15567
15574
|
methods: {
|
|
15575
|
+
/** Power the media player on. */
|
|
15568
15576
|
turnOn: /* @__PURE__ */ require_capability_definition.optionalMethod(deviceOnly, /* @__PURE__ */ zod.z.void(), {
|
|
15569
15577
|
kind: "mutation",
|
|
15570
15578
|
auth: "protected",
|
|
@@ -15575,6 +15583,7 @@ var mediaPlayerCapability = {
|
|
|
15575
15583
|
icon: "power"
|
|
15576
15584
|
}]
|
|
15577
15585
|
}),
|
|
15586
|
+
/** Power the media player off. */
|
|
15578
15587
|
turnOff: /* @__PURE__ */ require_capability_definition.optionalMethod(deviceOnly, /* @__PURE__ */ zod.z.void(), {
|
|
15579
15588
|
kind: "mutation",
|
|
15580
15589
|
auth: "protected",
|
|
@@ -15585,6 +15594,7 @@ var mediaPlayerCapability = {
|
|
|
15585
15594
|
icon: "power"
|
|
15586
15595
|
}]
|
|
15587
15596
|
}),
|
|
15597
|
+
/** Raise the volume by one step or the given number of steps. */
|
|
15588
15598
|
volumeUp: /* @__PURE__ */ require_capability_definition.optionalMethod(stepInput, /* @__PURE__ */ zod.z.void(), {
|
|
15589
15599
|
kind: "mutation",
|
|
15590
15600
|
auth: "protected",
|
|
@@ -15595,6 +15605,7 @@ var mediaPlayerCapability = {
|
|
|
15595
15605
|
icon: "volume-2"
|
|
15596
15606
|
}]
|
|
15597
15607
|
}),
|
|
15608
|
+
/** Lower the volume by one step or the given number of steps. */
|
|
15598
15609
|
volumeDown: /* @__PURE__ */ require_capability_definition.optionalMethod(stepInput, /* @__PURE__ */ zod.z.void(), {
|
|
15599
15610
|
kind: "mutation",
|
|
15600
15611
|
auth: "protected",
|
|
@@ -15605,6 +15616,7 @@ var mediaPlayerCapability = {
|
|
|
15605
15616
|
icon: "volume-2"
|
|
15606
15617
|
}]
|
|
15607
15618
|
}),
|
|
15619
|
+
/** Switch to the next channel, or move up by the given number of steps. */
|
|
15608
15620
|
channelUp: /* @__PURE__ */ require_capability_definition.optionalMethod(stepInput, /* @__PURE__ */ zod.z.void(), {
|
|
15609
15621
|
kind: "mutation",
|
|
15610
15622
|
auth: "protected",
|
|
@@ -15615,6 +15627,7 @@ var mediaPlayerCapability = {
|
|
|
15615
15627
|
icon: "skip-forward"
|
|
15616
15628
|
}]
|
|
15617
15629
|
}),
|
|
15630
|
+
/** Switch to the previous channel, or move down by the given number of steps. */
|
|
15618
15631
|
channelDown: /* @__PURE__ */ require_capability_definition.optionalMethod(stepInput, /* @__PURE__ */ zod.z.void(), {
|
|
15619
15632
|
kind: "mutation",
|
|
15620
15633
|
auth: "protected",
|
|
@@ -15625,6 +15638,7 @@ var mediaPlayerCapability = {
|
|
|
15625
15638
|
icon: "skip-back"
|
|
15626
15639
|
}]
|
|
15627
15640
|
}),
|
|
15641
|
+
/** Start or resume playback. */
|
|
15628
15642
|
play: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative() }), /* @__PURE__ */ zod.z.void(), {
|
|
15629
15643
|
kind: "mutation",
|
|
15630
15644
|
auth: "protected",
|
|
@@ -15639,6 +15653,7 @@ var mediaPlayerCapability = {
|
|
|
15639
15653
|
icon: "play"
|
|
15640
15654
|
}]
|
|
15641
15655
|
}),
|
|
15656
|
+
/** Pause playback. */
|
|
15642
15657
|
pause: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative() }), /* @__PURE__ */ zod.z.void(), {
|
|
15643
15658
|
kind: "mutation",
|
|
15644
15659
|
auth: "protected",
|
|
@@ -15653,6 +15668,7 @@ var mediaPlayerCapability = {
|
|
|
15653
15668
|
icon: "pause"
|
|
15654
15669
|
}]
|
|
15655
15670
|
}),
|
|
15671
|
+
/** Stop playback. */
|
|
15656
15672
|
stop: /* @__PURE__ */ require_capability_definition.optionalMethod(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative() }), /* @__PURE__ */ zod.z.void(), {
|
|
15657
15673
|
kind: "mutation",
|
|
15658
15674
|
auth: "protected",
|
|
@@ -15663,6 +15679,7 @@ var mediaPlayerCapability = {
|
|
|
15663
15679
|
icon: "square"
|
|
15664
15680
|
}]
|
|
15665
15681
|
}),
|
|
15682
|
+
/** Skip to the next track. */
|
|
15666
15683
|
next: /* @__PURE__ */ require_capability_definition.optionalMethod(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative() }), /* @__PURE__ */ zod.z.void(), {
|
|
15667
15684
|
kind: "mutation",
|
|
15668
15685
|
auth: "protected",
|
|
@@ -15673,6 +15690,7 @@ var mediaPlayerCapability = {
|
|
|
15673
15690
|
icon: "skip-forward"
|
|
15674
15691
|
}]
|
|
15675
15692
|
}),
|
|
15693
|
+
/** Go back to the previous track. */
|
|
15676
15694
|
previous: /* @__PURE__ */ require_capability_definition.optionalMethod(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative() }), /* @__PURE__ */ zod.z.void(), {
|
|
15677
15695
|
kind: "mutation",
|
|
15678
15696
|
auth: "protected",
|
|
@@ -15683,6 +15701,7 @@ var mediaPlayerCapability = {
|
|
|
15683
15701
|
icon: "skip-back"
|
|
15684
15702
|
}]
|
|
15685
15703
|
}),
|
|
15704
|
+
/** Set the volume to a level from 0 to 100. */
|
|
15686
15705
|
setVolume: /* @__PURE__ */ require_capability_definition.optionalMethod(/* @__PURE__ */ zod.z.object({
|
|
15687
15706
|
deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
|
|
15688
15707
|
volumeLevel: /* @__PURE__ */ zod.z.number().min(0).max(100)
|
|
@@ -15711,6 +15730,7 @@ var mediaPlayerCapability = {
|
|
|
15711
15730
|
}]
|
|
15712
15731
|
}]
|
|
15713
15732
|
}),
|
|
15733
|
+
/** Mute or unmute the player. */
|
|
15714
15734
|
setMute: /* @__PURE__ */ require_capability_definition.optionalMethod(/* @__PURE__ */ zod.z.object({
|
|
15715
15735
|
deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
|
|
15716
15736
|
muted: /* @__PURE__ */ zod.z.boolean()
|
|
@@ -15739,6 +15759,7 @@ var mediaPlayerCapability = {
|
|
|
15739
15759
|
args: { muted: false }
|
|
15740
15760
|
}]
|
|
15741
15761
|
}),
|
|
15762
|
+
/** Turn shuffle on or off. */
|
|
15742
15763
|
setShuffle: /* @__PURE__ */ require_capability_definition.optionalMethod(/* @__PURE__ */ zod.z.object({
|
|
15743
15764
|
deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
|
|
15744
15765
|
shuffle: /* @__PURE__ */ zod.z.boolean()
|
|
@@ -15767,6 +15788,7 @@ var mediaPlayerCapability = {
|
|
|
15767
15788
|
args: { shuffle: false }
|
|
15768
15789
|
}]
|
|
15769
15790
|
}),
|
|
15791
|
+
/** Set the repeat mode (off, one or all). */
|
|
15770
15792
|
setRepeat: /* @__PURE__ */ require_capability_definition.optionalMethod(/* @__PURE__ */ zod.z.object({
|
|
15771
15793
|
deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
|
|
15772
15794
|
repeat: MediaPlayerRepeatSchema
|
|
@@ -15805,6 +15827,7 @@ var mediaPlayerCapability = {
|
|
|
15805
15827
|
}]
|
|
15806
15828
|
}]
|
|
15807
15829
|
}),
|
|
15830
|
+
/** Switch the player to the named input source. */
|
|
15808
15831
|
selectSource: /* @__PURE__ */ require_capability_definition.optionalMethod(/* @__PURE__ */ zod.z.object({
|
|
15809
15832
|
deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
|
|
15810
15833
|
source: /* @__PURE__ */ zod.z.string().min(1)
|
|
@@ -15831,6 +15854,7 @@ var mediaPlayerCapability = {
|
|
|
15831
15854
|
}]
|
|
15832
15855
|
}]
|
|
15833
15856
|
}),
|
|
15857
|
+
/** Jump to a position in the current media, in seconds. */
|
|
15834
15858
|
seek: /* @__PURE__ */ require_capability_definition.optionalMethod(/* @__PURE__ */ zod.z.object({
|
|
15835
15859
|
deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
|
|
15836
15860
|
position: /* @__PURE__ */ zod.z.number().int().nonnegative()
|
|
@@ -15854,6 +15878,7 @@ var mediaPlayerCapability = {
|
|
|
15854
15878
|
}]
|
|
15855
15879
|
}]
|
|
15856
15880
|
}),
|
|
15881
|
+
/** Play the given media (by identifier or URL and kind) on the player. */
|
|
15857
15882
|
playMedia: /* @__PURE__ */ require_capability_definition.optionalMethod(/* @__PURE__ */ zod.z.object({
|
|
15858
15883
|
deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
|
|
15859
15884
|
/** Media identifier / URL. */
|
|
@@ -16917,7 +16942,9 @@ var powerSourceCapability = {
|
|
|
16917
16942
|
mode: "singleton",
|
|
16918
16943
|
deviceTypes: POWER_SOURCE_DEVICE_TYPES,
|
|
16919
16944
|
methods: {
|
|
16945
|
+
/** The smart switch that powers the device and its current state. */
|
|
16920
16946
|
getStatus: /* @__PURE__ */ require_capability_definition.systemMethod(deviceInput, PowerSourceInfoSchema, { auth: "protected" }),
|
|
16947
|
+
/** Switch the device's power on. */
|
|
16921
16948
|
powerOn: /* @__PURE__ */ require_capability_definition.systemMethod(deviceInput, PowerSourceActionResultSchema, {
|
|
16922
16949
|
kind: "mutation",
|
|
16923
16950
|
auth: "protected",
|
|
@@ -16929,6 +16956,7 @@ var powerSourceCapability = {
|
|
|
16929
16956
|
offeredWhen: POWER_SOURCE_SETTABLE_GATE
|
|
16930
16957
|
}]
|
|
16931
16958
|
}),
|
|
16959
|
+
/** Switch the device's power off. */
|
|
16932
16960
|
powerOff: /* @__PURE__ */ require_capability_definition.systemMethod(deviceInput, PowerSourceActionResultSchema, {
|
|
16933
16961
|
kind: "mutation",
|
|
16934
16962
|
auth: "protected",
|
|
@@ -16940,6 +16968,7 @@ var powerSourceCapability = {
|
|
|
16940
16968
|
offeredWhen: POWER_SOURCE_SETTABLE_GATE
|
|
16941
16969
|
}]
|
|
16942
16970
|
}),
|
|
16971
|
+
/** Restart the device by switching its power off, waiting, and on again. */
|
|
16943
16972
|
forceRestart: /* @__PURE__ */ require_capability_definition.systemMethod(deviceInput, PowerSourceActionResultSchema, {
|
|
16944
16973
|
kind: "mutation",
|
|
16945
16974
|
auth: "protected",
|
|
@@ -18046,7 +18075,9 @@ var coreBlocksCapability = {
|
|
|
18046
18075
|
scope: "system",
|
|
18047
18076
|
mode: "singleton",
|
|
18048
18077
|
methods: {
|
|
18078
|
+
/** List the core blocks. */
|
|
18049
18079
|
list: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({}), /* @__PURE__ */ zod.z.object({ blocks: /* @__PURE__ */ zod.z.array(CoreBlockSchema) }), { auth: "admin" }),
|
|
18080
|
+
/** Fetch one core block by id; null when absent. */
|
|
18050
18081
|
get: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ blockId: /* @__PURE__ */ zod.z.string() }), /* @__PURE__ */ zod.z.object({ block: /* @__PURE__ */ CoreBlockSchema.nullable() }), { auth: "admin" }),
|
|
18051
18082
|
/**
|
|
18052
18083
|
* Create a block. The code is COMPILED first: storing source that does not
|
|
@@ -18058,6 +18089,7 @@ var coreBlocksCapability = {
|
|
|
18058
18089
|
auth: "admin",
|
|
18059
18090
|
caller: "required"
|
|
18060
18091
|
}),
|
|
18092
|
+
/** Change fields of a core block. */
|
|
18061
18093
|
update: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
|
|
18062
18094
|
blockId: /* @__PURE__ */ zod.z.string(),
|
|
18063
18095
|
block: /* @__PURE__ */ CoreBlockInputFieldsSchema.partial()
|
|
@@ -18066,10 +18098,12 @@ var coreBlocksCapability = {
|
|
|
18066
18098
|
auth: "admin",
|
|
18067
18099
|
caller: "required"
|
|
18068
18100
|
}),
|
|
18101
|
+
/** Delete a core block. */
|
|
18069
18102
|
delete: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ blockId: /* @__PURE__ */ zod.z.string() }), /* @__PURE__ */ zod.z.object({ success: /* @__PURE__ */ zod.z.literal(true) }), {
|
|
18070
18103
|
kind: "mutation",
|
|
18071
18104
|
auth: "admin"
|
|
18072
18105
|
}),
|
|
18106
|
+
/** Enable or disable a core block. */
|
|
18073
18107
|
setEnabled: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
|
|
18074
18108
|
blockId: /* @__PURE__ */ zod.z.string(),
|
|
18075
18109
|
enabled: /* @__PURE__ */ zod.z.boolean()
|
|
@@ -18173,6 +18207,7 @@ var coreBlocksCapability = {
|
|
|
18173
18207
|
}),
|
|
18174
18208
|
/** One composition and the composer's state for it, or `not-loaded` (D315). */
|
|
18175
18209
|
getComposition: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ blockId: /* @__PURE__ */ zod.z.string() }), CompositionGetReadSchema, { auth: "admin" }),
|
|
18210
|
+
/** List the compositions built from core blocks. */
|
|
18176
18211
|
listCompositions: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({}), CompositionListReadSchema, { auth: "admin" }),
|
|
18177
18212
|
/**
|
|
18178
18213
|
* The composition that customizes an existing device (D663), found by its
|
|
@@ -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_settings_store_cap = require("./settings-store.cap-
|
|
3
|
+
const require_settings_store_cap = require("./settings-store.cap-BhOIBtO4.js");
|
|
4
4
|
let zod = require("zod");
|
|
5
5
|
//#region ../types/dist/esm/capabilities/database-snapshot.cap.mjs
|
|
6
6
|
/**
|
package/system/dist/{database-snapshot.cap-dhrc9xnY.mjs → database-snapshot.cap-a3lSf4hl.mjs}
RENAMED
|
@@ -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 { a as DataStoreDatabaseSchema } from "./settings-store.cap-
|
|
3
|
+
import { a as DataStoreDatabaseSchema } from "./settings-store.cap-CaDSOqgK.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region ../types/dist/esm/capabilities/database-snapshot.cap.mjs
|
|
6
6
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { m as StreamSourceEntrySchema } 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 { d as CameraSwitchIdSchema, n as DeviceIdentifierKeySchema, r as DeviceIdentifiersSchema } from "./device-identifiers-iSuQCKmK.mjs";
|
|
4
4
|
import { t as ReadingQuantitySchema } from "./quantity-D3g5SxsZ.mjs";
|
|
5
5
|
import { i as TagsFieldSchema, u as IconKeySchema } from "./tag-uZBAq6ox.mjs";
|
|
6
6
|
import { n as DeviceRole, r as DeviceType } from "./device-type-DgEvK3ch.mjs";
|
|
7
|
-
import { c as LocationDescriptionAssignmentSchema, l as LocationIconAssignmentSchema, n as SettingsSchemaWithValuesSchema } from "./addon-settings.cap-
|
|
7
|
+
import { c as LocationDescriptionAssignmentSchema, l as LocationIconAssignmentSchema, n as SettingsSchemaWithValuesSchema } from "./addon-settings.cap-CZ4MC7ha.mjs";
|
|
8
8
|
import { n as SourceInfoSchema } from "./source-info-DGB7SdB_.mjs";
|
|
9
|
-
import { a as FieldProbeResultSchema, n as DiscoveryCandidateSchema, t as DeviceSummarySchema } from "./device-provider.cap-
|
|
9
|
+
import { a as FieldProbeResultSchema, n as DiscoveryCandidateSchema, t as DeviceSummarySchema } from "./device-provider.cap-DU6HMUXH.mjs";
|
|
10
10
|
import { z } from "zod";
|
|
11
11
|
//#region ../types/dist/esm/interfaces/adoption-job.mjs
|
|
12
12
|
/**
|
|
@@ -342,21 +342,28 @@ var deviceAdoptionCapability = {
|
|
|
342
342
|
kind: "poll"
|
|
343
343
|
},
|
|
344
344
|
methods: {
|
|
345
|
+
/** The filters an integration offers to narrow its discovered candidates. */
|
|
345
346
|
listCandidateFilters: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ integrationId: /* @__PURE__ */ z.string() }), /* @__PURE__ */ z.object({ filters: /* @__PURE__ */ z.array(AdoptionFilterSchema) }), { auth: "admin" }),
|
|
347
|
+
/** List the devices an integration has discovered and that can be adopted. */
|
|
346
348
|
listCandidates: /* @__PURE__ */ method(ListCandidatesInputSchema, ListCandidatesOutputSchema, { auth: "admin" }),
|
|
349
|
+
/** Fetch one discovered candidate; null when unknown. */
|
|
347
350
|
getCandidate: /* @__PURE__ */ method(GetCandidateInputSchema, /* @__PURE__ */ DiscoveredChildDeviceSchema.nullable(), { auth: "admin" }),
|
|
351
|
+
/** Rescan an integration for new candidates and report the adoption status. */
|
|
348
352
|
refresh: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ integrationId: /* @__PURE__ */ z.string() }), AdoptionStatusSchema, {
|
|
349
353
|
kind: "mutation",
|
|
350
354
|
auth: "admin"
|
|
351
355
|
}),
|
|
356
|
+
/** Adopt a discovered candidate as a device. */
|
|
352
357
|
adopt: /* @__PURE__ */ method(AdoptInputSchema, AdoptResultSchema, {
|
|
353
358
|
kind: "mutation",
|
|
354
359
|
auth: "admin"
|
|
355
360
|
}),
|
|
361
|
+
/** Release an adopted device back to the candidate list. */
|
|
356
362
|
release: /* @__PURE__ */ method(ReleaseInputSchema, /* @__PURE__ */ z.void(), {
|
|
357
363
|
kind: "mutation",
|
|
358
364
|
auth: "admin"
|
|
359
365
|
}),
|
|
366
|
+
/** Re-read an adopted device from the integration and reconcile it. */
|
|
360
367
|
resync: /* @__PURE__ */ method(ResyncInputSchema, ResyncResultSchema, {
|
|
361
368
|
kind: "mutation",
|
|
362
369
|
auth: "admin"
|
|
@@ -2449,7 +2456,9 @@ var deviceManagerCapability = {
|
|
|
2449
2456
|
capName: /* @__PURE__ */ z.string(),
|
|
2450
2457
|
wrappers: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string())
|
|
2451
2458
|
}))),
|
|
2459
|
+
/** The combined settings form of a device, gathered from every capability that contributes to it. */
|
|
2452
2460
|
getDeviceSettingsAggregate: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number() }), /* @__PURE__ */ SettingsSchemaWithValuesSchema.nullable()),
|
|
2461
|
+
/** The combined live readouts of a device, gathered from every capability that contributes to it. */
|
|
2453
2462
|
getDeviceLiveInfoAggregate: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number() }), /* @__PURE__ */ SettingsSchemaWithValuesSchema.nullable(), { role: "viewer" }),
|
|
2454
2463
|
/**
|
|
2455
2464
|
* Unified entry point — returns both settings + live in a single call
|
|
@@ -2463,11 +2472,13 @@ var deviceManagerCapability = {
|
|
|
2463
2472
|
settings: /* @__PURE__ */ SettingsSchemaWithValuesSchema.nullable(),
|
|
2464
2473
|
live: /* @__PURE__ */ SettingsSchemaWithValuesSchema.nullable()
|
|
2465
2474
|
})),
|
|
2475
|
+
/** Run a named action on a device with the given input. */
|
|
2466
2476
|
runDeviceAction: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
2467
2477
|
deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
|
|
2468
2478
|
action: /* @__PURE__ */ z.string().min(1),
|
|
2469
2479
|
input: /* @__PURE__ */ z.unknown()
|
|
2470
2480
|
}), /* @__PURE__ */ z.unknown(), { kind: "mutation" }),
|
|
2481
|
+
/** Write one device field through the capability that owns it. */
|
|
2471
2482
|
updateDeviceField: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
2472
2483
|
deviceId: /* @__PURE__ */ z.number(),
|
|
2473
2484
|
writerCapName: /* @__PURE__ */ z.string(),
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
const require_streaming_shared = require("./streaming-shared-DQwFZOSi.js");
|
|
2
|
-
const require_capability_definition = require("./capability-definition-
|
|
2
|
+
const require_capability_definition = require("./capability-definition-BEVd01Xj.js");
|
|
3
3
|
const require_device_identifiers = require("./device-identifiers-BQg9EQi1.js");
|
|
4
4
|
const require_quantity = require("./quantity-lY1KiTSZ.js");
|
|
5
5
|
const require_tag = require("./tag-BxLazvVb.js");
|
|
6
6
|
const require_device_type = require("./device-type-CbQsnFdC.js");
|
|
7
|
-
const require_addon_settings_cap = require("./addon-settings.cap-
|
|
7
|
+
const require_addon_settings_cap = require("./addon-settings.cap-DrLdMFIe.js");
|
|
8
8
|
const require_source_info = require("./source-info-DtWf4k2j.js");
|
|
9
|
-
const require_device_provider_cap = require("./device-provider.cap-
|
|
9
|
+
const require_device_provider_cap = require("./device-provider.cap-BKUGJSo0.js");
|
|
10
10
|
let zod = require("zod");
|
|
11
11
|
//#region ../types/dist/esm/interfaces/adoption-job.mjs
|
|
12
12
|
/**
|
|
@@ -342,21 +342,28 @@ var deviceAdoptionCapability = {
|
|
|
342
342
|
kind: "poll"
|
|
343
343
|
},
|
|
344
344
|
methods: {
|
|
345
|
+
/** The filters an integration offers to narrow its discovered candidates. */
|
|
345
346
|
listCandidateFilters: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ integrationId: /* @__PURE__ */ zod.z.string() }), /* @__PURE__ */ zod.z.object({ filters: /* @__PURE__ */ zod.z.array(AdoptionFilterSchema) }), { auth: "admin" }),
|
|
347
|
+
/** List the devices an integration has discovered and that can be adopted. */
|
|
346
348
|
listCandidates: /* @__PURE__ */ require_capability_definition.method(ListCandidatesInputSchema, ListCandidatesOutputSchema, { auth: "admin" }),
|
|
349
|
+
/** Fetch one discovered candidate; null when unknown. */
|
|
347
350
|
getCandidate: /* @__PURE__ */ require_capability_definition.method(GetCandidateInputSchema, /* @__PURE__ */ DiscoveredChildDeviceSchema.nullable(), { auth: "admin" }),
|
|
351
|
+
/** Rescan an integration for new candidates and report the adoption status. */
|
|
348
352
|
refresh: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ integrationId: /* @__PURE__ */ zod.z.string() }), AdoptionStatusSchema, {
|
|
349
353
|
kind: "mutation",
|
|
350
354
|
auth: "admin"
|
|
351
355
|
}),
|
|
356
|
+
/** Adopt a discovered candidate as a device. */
|
|
352
357
|
adopt: /* @__PURE__ */ require_capability_definition.method(AdoptInputSchema, AdoptResultSchema, {
|
|
353
358
|
kind: "mutation",
|
|
354
359
|
auth: "admin"
|
|
355
360
|
}),
|
|
361
|
+
/** Release an adopted device back to the candidate list. */
|
|
356
362
|
release: /* @__PURE__ */ require_capability_definition.method(ReleaseInputSchema, /* @__PURE__ */ zod.z.void(), {
|
|
357
363
|
kind: "mutation",
|
|
358
364
|
auth: "admin"
|
|
359
365
|
}),
|
|
366
|
+
/** Re-read an adopted device from the integration and reconcile it. */
|
|
360
367
|
resync: /* @__PURE__ */ require_capability_definition.method(ResyncInputSchema, ResyncResultSchema, {
|
|
361
368
|
kind: "mutation",
|
|
362
369
|
auth: "admin"
|
|
@@ -2449,7 +2456,9 @@ var deviceManagerCapability = {
|
|
|
2449
2456
|
capName: /* @__PURE__ */ zod.z.string(),
|
|
2450
2457
|
wrappers: /* @__PURE__ */ zod.z.array(/* @__PURE__ */ zod.z.string())
|
|
2451
2458
|
}))),
|
|
2459
|
+
/** The combined settings form of a device, gathered from every capability that contributes to it. */
|
|
2452
2460
|
getDeviceSettingsAggregate: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number() }), /* @__PURE__ */ require_addon_settings_cap.SettingsSchemaWithValuesSchema.nullable()),
|
|
2461
|
+
/** The combined live readouts of a device, gathered from every capability that contributes to it. */
|
|
2453
2462
|
getDeviceLiveInfoAggregate: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number() }), /* @__PURE__ */ require_addon_settings_cap.SettingsSchemaWithValuesSchema.nullable(), { role: "viewer" }),
|
|
2454
2463
|
/**
|
|
2455
2464
|
* Unified entry point — returns both settings + live in a single call
|
|
@@ -2463,11 +2472,13 @@ var deviceManagerCapability = {
|
|
|
2463
2472
|
settings: /* @__PURE__ */ require_addon_settings_cap.SettingsSchemaWithValuesSchema.nullable(),
|
|
2464
2473
|
live: /* @__PURE__ */ require_addon_settings_cap.SettingsSchemaWithValuesSchema.nullable()
|
|
2465
2474
|
})),
|
|
2475
|
+
/** Run a named action on a device with the given input. */
|
|
2466
2476
|
runDeviceAction: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
|
|
2467
2477
|
deviceId: /* @__PURE__ */ zod.z.number().int().nonnegative(),
|
|
2468
2478
|
action: /* @__PURE__ */ zod.z.string().min(1),
|
|
2469
2479
|
input: /* @__PURE__ */ zod.z.unknown()
|
|
2470
2480
|
}), /* @__PURE__ */ zod.z.unknown(), { kind: "mutation" }),
|
|
2481
|
+
/** Write one device field through the capability that owns it. */
|
|
2471
2482
|
updateDeviceField: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
|
|
2472
2483
|
deviceId: /* @__PURE__ */ zod.z.number(),
|
|
2473
2484
|
writerCapName: /* @__PURE__ */ zod.z.string(),
|
|
@@ -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
|
const require_device_type = require("./device-type-CbQsnFdC.js");
|
|
4
4
|
const require_source_info = require("./source-info-DtWf4k2j.js");
|
|
@@ -192,9 +192,13 @@ var deviceProviderCapability = {
|
|
|
192
192
|
scope: "system",
|
|
193
193
|
mode: "collection",
|
|
194
194
|
methods: {
|
|
195
|
+
/** Start the provider so it begins serving its devices. */
|
|
195
196
|
start: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), /* @__PURE__ */ zod.z.void(), { kind: "mutation" }),
|
|
197
|
+
/** Stop the provider. */
|
|
196
198
|
stop: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), /* @__PURE__ */ zod.z.void(), { kind: "mutation" }),
|
|
199
|
+
/** The provider's current status. */
|
|
197
200
|
getStatus: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), ProviderStatusSchema),
|
|
201
|
+
/** List the devices the provider serves. */
|
|
198
202
|
getDevices: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), /* @__PURE__ */ zod.z.array(/* @__PURE__ */ zod.z.object({
|
|
199
203
|
id: /* @__PURE__ */ zod.z.string(),
|
|
200
204
|
name: /* @__PURE__ */ zod.z.string(),
|
|
@@ -229,6 +233,7 @@ var deviceProviderCapability = {
|
|
|
229
233
|
kind: "mutation",
|
|
230
234
|
timeoutMs: 3 * 6e4
|
|
231
235
|
}),
|
|
236
|
+
/** Whether the provider can discover devices on the network. */
|
|
232
237
|
supportsDiscovery: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({}), /* @__PURE__ */ zod.z.boolean()),
|
|
233
238
|
/**
|
|
234
239
|
* Run a network scan. `params` carries optional provider-specific scan
|
|
@@ -274,6 +279,7 @@ var deviceProviderCapability = {
|
|
|
274
279
|
getManualCreationType: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
|
|
275
280
|
/** The integration asked about; a provider whose integrations differ answers per one. */
|
|
276
281
|
integrationId: /* @__PURE__ */ zod.z.string().optional() }), /* @__PURE__ */ zod.z.object({ deviceType: /* @__PURE__ */ zod.z.enum(require_device_type.DeviceType).nullable() })),
|
|
282
|
+
/** Adopt a discovered candidate as a device, optionally into an integration instance. */
|
|
277
283
|
adoptDiscoveredDevice: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
|
|
278
284
|
candidate: DiscoveryCandidateSchema,
|
|
279
285
|
/** The integration the operator adopts into; a provider with several instances needs it. */
|
|
@@ -282,6 +288,7 @@ integrationId: /* @__PURE__ */ zod.z.string().optional() }), /* @__PURE__ */ zod
|
|
|
282
288
|
kind: "mutation",
|
|
283
289
|
auth: "admin"
|
|
284
290
|
}),
|
|
291
|
+
/** Whether devices can be created by hand through this provider. */
|
|
285
292
|
supportsManualCreation: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({}), /* @__PURE__ */ zod.z.boolean()),
|
|
286
293
|
/**
|
|
287
294
|
* Fetch the creation form schema for a given DeviceType. Returns
|
|
@@ -294,6 +301,7 @@ integrationId: /* @__PURE__ */ zod.z.string().optional() }), /* @__PURE__ */ zod
|
|
|
294
301
|
/** The integration asked about; a provider whose integrations differ answers per one. */
|
|
295
302
|
integrationId: /* @__PURE__ */ zod.z.string().optional()
|
|
296
303
|
}), CreationSchemaOutputSchema),
|
|
304
|
+
/** Create a device of a given type with the given config. */
|
|
297
305
|
createDevice: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
|
|
298
306
|
type: /* @__PURE__ */ zod.z.enum(require_device_type.DeviceType),
|
|
299
307
|
config: /* @__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 { r as DeviceType } from "./device-type-DgEvK3ch.mjs";
|
|
4
4
|
import { n as SourceInfoSchema } from "./source-info-DGB7SdB_.mjs";
|
|
@@ -192,9 +192,13 @@ var deviceProviderCapability = {
|
|
|
192
192
|
scope: "system",
|
|
193
193
|
mode: "collection",
|
|
194
194
|
methods: {
|
|
195
|
+
/** Start the provider so it begins serving its devices. */
|
|
195
196
|
start: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), /* @__PURE__ */ z.void(), { kind: "mutation" }),
|
|
197
|
+
/** Stop the provider. */
|
|
196
198
|
stop: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), /* @__PURE__ */ z.void(), { kind: "mutation" }),
|
|
199
|
+
/** The provider's current status. */
|
|
197
200
|
getStatus: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), ProviderStatusSchema),
|
|
201
|
+
/** List the devices the provider serves. */
|
|
198
202
|
getDevices: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), /* @__PURE__ */ z.array(/* @__PURE__ */ z.object({
|
|
199
203
|
id: /* @__PURE__ */ z.string(),
|
|
200
204
|
name: /* @__PURE__ */ z.string(),
|
|
@@ -229,6 +233,7 @@ var deviceProviderCapability = {
|
|
|
229
233
|
kind: "mutation",
|
|
230
234
|
timeoutMs: 3 * 6e4
|
|
231
235
|
}),
|
|
236
|
+
/** Whether the provider can discover devices on the network. */
|
|
232
237
|
supportsDiscovery: /* @__PURE__ */ method(/* @__PURE__ */ z.object({}), /* @__PURE__ */ z.boolean()),
|
|
233
238
|
/**
|
|
234
239
|
* Run a network scan. `params` carries optional provider-specific scan
|
|
@@ -274,6 +279,7 @@ var deviceProviderCapability = {
|
|
|
274
279
|
getManualCreationType: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
275
280
|
/** The integration asked about; a provider whose integrations differ answers per one. */
|
|
276
281
|
integrationId: /* @__PURE__ */ z.string().optional() }), /* @__PURE__ */ z.object({ deviceType: /* @__PURE__ */ z.enum(DeviceType).nullable() })),
|
|
282
|
+
/** Adopt a discovered candidate as a device, optionally into an integration instance. */
|
|
277
283
|
adoptDiscoveredDevice: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
278
284
|
candidate: DiscoveryCandidateSchema,
|
|
279
285
|
/** The integration the operator adopts into; a provider with several instances needs it. */
|
|
@@ -282,6 +288,7 @@ integrationId: /* @__PURE__ */ z.string().optional() }), /* @__PURE__ */ z.objec
|
|
|
282
288
|
kind: "mutation",
|
|
283
289
|
auth: "admin"
|
|
284
290
|
}),
|
|
291
|
+
/** Whether devices can be created by hand through this provider. */
|
|
285
292
|
supportsManualCreation: /* @__PURE__ */ method(/* @__PURE__ */ z.object({}), /* @__PURE__ */ z.boolean()),
|
|
286
293
|
/**
|
|
287
294
|
* Fetch the creation form schema for a given DeviceType. Returns
|
|
@@ -294,6 +301,7 @@ integrationId: /* @__PURE__ */ z.string().optional() }), /* @__PURE__ */ z.objec
|
|
|
294
301
|
/** The integration asked about; a provider whose integrations differ answers per one. */
|
|
295
302
|
integrationId: /* @__PURE__ */ z.string().optional()
|
|
296
303
|
}), CreationSchemaOutputSchema),
|
|
304
|
+
/** Create a device of a given type with the given config. */
|
|
297
305
|
createDevice: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
298
306
|
type: /* @__PURE__ */ z.enum(DeviceType),
|
|
299
307
|
config: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.unknown()),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { s as defineRecordKinds } from "./record-kind-ub6NXqfh.mjs";
|
|
2
|
-
import { c as IdentityLinkBodySchema, n as DeviceTombstoneSchema, o as DiscoveryProposalBodySchema } from "./device-manager.cap-
|
|
2
|
+
import { c as IdentityLinkBodySchema, n as DeviceTombstoneSchema, o as DiscoveryProposalBodySchema } from "./device-manager.cap-DIBK62-r.mjs";
|
|
3
3
|
import { n as DeviceIdentifierKeySchema, r as DeviceIdentifiersSchema } from "./device-identifiers-iSuQCKmK.mjs";
|
|
4
4
|
import { t as canonicalStoredDeviceType } from "./device-kind-BJ2pfsjw.mjs";
|
|
5
5
|
//#region src/builtins/device-manager/migration-refused.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_record_kind = require("./record-kind-DoBfYHCs.js");
|
|
2
|
-
const require_device_manager_cap = require("./device-manager.cap-
|
|
2
|
+
const require_device_manager_cap = require("./device-manager.cap-DyHOIh5T.js");
|
|
3
3
|
const require_device_identifiers = require("./device-identifiers-BQg9EQi1.js");
|
|
4
4
|
const require_device_kind = require("./device-kind-CsSiv_YF.js");
|
|
5
5
|
//#region src/builtins/device-manager/migration-refused.ts
|
package/system/dist/{device-transitions.cap-DojcwEuX.mjs → device-transitions.cap-DCXP3zwY.mjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as method, d as systemMethod } from "./capability-definition-
|
|
1
|
+
import { c as method, d as systemMethod } from "./capability-definition-C1TLUVJR.mjs";
|
|
2
2
|
import { t as OnBehalfSchema } from "./command-origin-claim-D1Wy7Qld.mjs";
|
|
3
3
|
import { t as NOT_A_DEVICE } from "./system-reasons-CYj4qwyS.mjs";
|
|
4
4
|
import { a as readingMeta } from "./quantity-D3g5SxsZ.mjs";
|
|
@@ -425,6 +425,7 @@ var deviceHistoryCapability = {
|
|
|
425
425
|
deviceId: /* @__PURE__ */ z.number().int(),
|
|
426
426
|
...QueryWindowShape
|
|
427
427
|
}), QueryResultSchema),
|
|
428
|
+
/** Query the history stored on one node over a time window. */
|
|
428
429
|
queryNode: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
429
430
|
forNodeId: /* @__PURE__ */ z.string().min(1),
|
|
430
431
|
...QueryWindowShape
|
|
@@ -482,6 +483,7 @@ var deviceHistoryCapability = {
|
|
|
482
483
|
}),
|
|
483
484
|
/** Per-device opt-out. This addon IS the authority: the switch stores nothing elsewhere (D62). */
|
|
484
485
|
getDeviceEnabled: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number().int() }), /* @__PURE__ */ z.object({ enabled: /* @__PURE__ */ z.boolean() })),
|
|
486
|
+
/** Turn history recording on or off for one device. */
|
|
485
487
|
setDeviceEnabled: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
486
488
|
deviceId: /* @__PURE__ */ z.number().int(),
|
|
487
489
|
enabled: /* @__PURE__ */ z.boolean()
|
|
@@ -489,6 +491,7 @@ var deviceHistoryCapability = {
|
|
|
489
491
|
kind: "mutation",
|
|
490
492
|
auth: "admin"
|
|
491
493
|
}),
|
|
494
|
+
/** The status of history recording on this node. */
|
|
492
495
|
getStatus: /* @__PURE__ */ method(/* @__PURE__ */ z.object({}), DeviceHistoryStatusSchema, { auth: "admin" }),
|
|
493
496
|
/**
|
|
494
497
|
* Device series no longer linked to a device (D917): the device is absent
|
|
@@ -722,6 +725,7 @@ var deviceRunsCapability = {
|
|
|
722
725
|
runs: /* @__PURE__ */ z.array(DeviceRunSchema).readonly(),
|
|
723
726
|
nextCursor: /* @__PURE__ */ z.string().nullable()
|
|
724
727
|
})),
|
|
728
|
+
/** Fetch one recorded run of a device by id; null when absent. */
|
|
725
729
|
getRun: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
726
730
|
deviceId: /* @__PURE__ */ z.number().int(),
|
|
727
731
|
runId: /* @__PURE__ */ z.string()
|
|
@@ -787,6 +791,7 @@ var deviceTransitionsCapability = {
|
|
|
787
791
|
transitions: /* @__PURE__ */ z.array(DeviceTransitionSchema).readonly(),
|
|
788
792
|
nextCursor: /* @__PURE__ */ z.string().nullable()
|
|
789
793
|
})),
|
|
794
|
+
/** Fetch one device transition (an in-progress change) by id; null when absent. */
|
|
790
795
|
getTransition: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
791
796
|
deviceId: /* @__PURE__ */ z.number().int(),
|
|
792
797
|
id: /* @__PURE__ */ z.string()
|
|
@@ -808,6 +813,7 @@ var deviceTransitionsCapability = {
|
|
|
808
813
|
kind: "mutation",
|
|
809
814
|
auth: "admin"
|
|
810
815
|
}),
|
|
816
|
+
/** The status of the device transitions tracker. */
|
|
811
817
|
getStatus: /* @__PURE__ */ systemMethod(/* @__PURE__ */ z.object({}), TransitionsStatusSchema, { auth: "admin" })
|
|
812
818
|
},
|
|
813
819
|
vocabulary: {
|
package/system/dist/{device-transitions.cap-B5w5PYU_.js → device-transitions.cap-zOGvAIHz.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_command_origin_claim = require("./command-origin-claim-Cief660O.js");
|
|
3
3
|
const require_system_reasons = require("./system-reasons-Be_k1W8g.js");
|
|
4
4
|
const require_quantity = require("./quantity-lY1KiTSZ.js");
|
|
@@ -425,6 +425,7 @@ var deviceHistoryCapability = {
|
|
|
425
425
|
deviceId: /* @__PURE__ */ zod.z.number().int(),
|
|
426
426
|
...QueryWindowShape
|
|
427
427
|
}), QueryResultSchema),
|
|
428
|
+
/** Query the history stored on one node over a time window. */
|
|
428
429
|
queryNode: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
|
|
429
430
|
forNodeId: /* @__PURE__ */ zod.z.string().min(1),
|
|
430
431
|
...QueryWindowShape
|
|
@@ -482,6 +483,7 @@ var deviceHistoryCapability = {
|
|
|
482
483
|
}),
|
|
483
484
|
/** Per-device opt-out. This addon IS the authority: the switch stores nothing elsewhere (D62). */
|
|
484
485
|
getDeviceEnabled: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number().int() }), /* @__PURE__ */ zod.z.object({ enabled: /* @__PURE__ */ zod.z.boolean() })),
|
|
486
|
+
/** Turn history recording on or off for one device. */
|
|
485
487
|
setDeviceEnabled: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
|
|
486
488
|
deviceId: /* @__PURE__ */ zod.z.number().int(),
|
|
487
489
|
enabled: /* @__PURE__ */ zod.z.boolean()
|
|
@@ -489,6 +491,7 @@ var deviceHistoryCapability = {
|
|
|
489
491
|
kind: "mutation",
|
|
490
492
|
auth: "admin"
|
|
491
493
|
}),
|
|
494
|
+
/** The status of history recording on this node. */
|
|
492
495
|
getStatus: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({}), DeviceHistoryStatusSchema, { auth: "admin" }),
|
|
493
496
|
/**
|
|
494
497
|
* Device series no longer linked to a device (D917): the device is absent
|
|
@@ -722,6 +725,7 @@ var deviceRunsCapability = {
|
|
|
722
725
|
runs: /* @__PURE__ */ zod.z.array(DeviceRunSchema).readonly(),
|
|
723
726
|
nextCursor: /* @__PURE__ */ zod.z.string().nullable()
|
|
724
727
|
})),
|
|
728
|
+
/** Fetch one recorded run of a device by id; null when absent. */
|
|
725
729
|
getRun: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
|
|
726
730
|
deviceId: /* @__PURE__ */ zod.z.number().int(),
|
|
727
731
|
runId: /* @__PURE__ */ zod.z.string()
|
|
@@ -787,6 +791,7 @@ var deviceTransitionsCapability = {
|
|
|
787
791
|
transitions: /* @__PURE__ */ zod.z.array(DeviceTransitionSchema).readonly(),
|
|
788
792
|
nextCursor: /* @__PURE__ */ zod.z.string().nullable()
|
|
789
793
|
})),
|
|
794
|
+
/** Fetch one device transition (an in-progress change) by id; null when absent. */
|
|
790
795
|
getTransition: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({
|
|
791
796
|
deviceId: /* @__PURE__ */ zod.z.number().int(),
|
|
792
797
|
id: /* @__PURE__ */ zod.z.string()
|
|
@@ -808,6 +813,7 @@ var deviceTransitionsCapability = {
|
|
|
808
813
|
kind: "mutation",
|
|
809
814
|
auth: "admin"
|
|
810
815
|
}),
|
|
816
|
+
/** The status of the device transitions tracker. */
|
|
811
817
|
getStatus: /* @__PURE__ */ require_capability_definition.systemMethod(/* @__PURE__ */ zod.z.object({}), TransitionsStatusSchema, { auth: "admin" })
|
|
812
818
|
},
|
|
813
819
|
vocabulary: {
|
|
@@ -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_device_kind = require("./device-kind-CsSiv_YF.js");
|