@camstack/server 1.2.928 → 1.2.930

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.
Files changed (241) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/package.json +10 -10
  3. package/system/dist/addon-id-CVg1_r5E.mjs +39 -0
  4. package/system/dist/addon-id-Di0lNJ89.js +50 -0
  5. package/system/dist/addon-pages.cap-Df9FQwN1.js +49 -0
  6. package/system/dist/addon-pages.cap-DksUlE8j.mjs +44 -0
  7. package/system/dist/addon-settings.cap-3-TIIMq_.mjs +592 -0
  8. package/system/dist/addon-settings.cap-DAiE0Nb0.js +651 -0
  9. package/system/dist/addon-utils.mjs +1 -1
  10. package/system/dist/addon-widgets.cap-C4jxflbF.js +200 -0
  11. package/system/dist/addon-widgets.cap-D9m48X78.mjs +183 -0
  12. package/system/dist/base-addon-DD5dIfcZ.js +4624 -0
  13. package/system/dist/base-addon-Md14i7pe.mjs +4505 -0
  14. package/system/dist/base-device-2sL1DMm1.js +1103 -0
  15. package/system/dist/base-device-IuM1AwXZ.mjs +1098 -0
  16. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +8 -6
  17. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +6 -4
  18. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +8 -6
  19. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +7 -5
  20. package/system/dist/builtins/alerts/alerts.addon.js +113 -56
  21. package/system/dist/builtins/alerts/alerts.addon.mjs +60 -3
  22. package/system/dist/builtins/autotrack/index.js +21 -17
  23. package/system/dist/builtins/autotrack/index.mjs +5 -1
  24. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +14 -11
  25. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +8 -5
  26. package/system/dist/builtins/calendars/calendars.addon.js +8 -6
  27. package/system/dist/builtins/calendars/calendars.addon.mjs +3 -1
  28. package/system/dist/builtins/camera-grid/index.js +615 -58
  29. package/system/dist/builtins/camera-grid/index.mjs +558 -1
  30. package/system/dist/builtins/composer/composer.addon.js +788 -209
  31. package/system/dist/builtins/composer/composer.addon.mjs +583 -4
  32. package/system/dist/builtins/console-logging/index.js +4 -3
  33. package/system/dist/builtins/console-logging/index.mjs +2 -1
  34. package/system/dist/builtins/core-blocks/actions-service.d.ts +18 -1
  35. package/system/dist/builtins/core-blocks/core-blocks.addon.js +8670 -386
  36. package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +8294 -11
  37. package/system/dist/builtins/core-blocks/tcp-connect.d.ts +3 -0
  38. package/system/dist/builtins/core-notifier/core-notifier.addon.js +250 -21
  39. package/system/dist/builtins/core-notifier/core-notifier.addon.mjs +230 -1
  40. package/system/dist/builtins/device-history/device-history.addon.js +110 -31
  41. package/system/dist/builtins/device-history/device-history.addon.mjs +81 -2
  42. package/system/dist/builtins/device-manager/device-manager.addon.js +12806 -227
  43. package/system/dist/builtins/device-manager/device-manager.addon.mjs +12583 -5
  44. package/system/dist/builtins/hub-forwarder/index.js +4 -3
  45. package/system/dist/builtins/hub-forwarder/index.mjs +2 -1
  46. package/system/dist/builtins/keychain/index.js +31 -28
  47. package/system/dist/builtins/keychain/index.mjs +7 -4
  48. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +15 -12
  49. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +4 -1
  50. package/system/dist/builtins/local-auth/local-auth.addon.js +140 -39
  51. package/system/dist/builtins/local-auth/local-auth.addon.mjs +106 -6
  52. package/system/dist/builtins/local-network/local-network.addon.js +43 -39
  53. package/system/dist/builtins/local-network/local-network.addon.mjs +7 -3
  54. package/system/dist/builtins/loki-logging/index.js +23 -17
  55. package/system/dist/builtins/loki-logging/index.mjs +7 -1
  56. package/system/dist/builtins/native-metrics/native-metrics.addon.js +156 -15
  57. package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +151 -10
  58. package/system/dist/builtins/platform-probe/index.js +25 -23
  59. package/system/dist/builtins/platform-probe/index.mjs +12 -10
  60. package/system/dist/builtins/record-entries/index.js +9 -7
  61. package/system/dist/builtins/record-entries/index.mjs +3 -1
  62. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +4 -4
  63. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
  64. package/system/dist/builtins/snapshot/index.js +97 -44
  65. package/system/dist/builtins/snapshot/index.mjs +54 -1
  66. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +5 -4
  67. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +21 -20
  68. package/system/dist/builtins/sqlite-storage/index.js +1 -1
  69. package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
  70. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +87 -61
  71. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +29 -3
  72. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +81 -72
  73. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +10 -1
  74. package/system/dist/builtins/system-config/system-config.addon.js +17 -14
  75. package/system/dist/builtins/system-config/system-config.addon.mjs +118 -115
  76. package/system/dist/builtins/winston-logging/index.js +7 -5
  77. package/system/dist/builtins/winston-logging/index.mjs +3 -1
  78. package/system/dist/calendars.cap-CaFlShS9.js +155 -0
  79. package/system/dist/calendars.cap-_C4eD4fi.mjs +138 -0
  80. package/system/dist/camstack-error-DJ-TUAi1.js +23 -0
  81. package/system/dist/camstack-error-viZYfcj9.mjs +18 -0
  82. package/system/dist/cap-call-context-Bd76CbOW.js +95 -0
  83. package/system/dist/cap-call-context-DNwdgGSQ.mjs +78 -0
  84. package/system/dist/capability-definition-C2rJdVeX.mjs +177 -0
  85. package/system/dist/capability-definition-HCmTem8c.js +242 -0
  86. package/system/dist/{capture-engine-BcuwOSXv.js → capture-engine-DZ0LIUqA.js} +5 -4
  87. package/system/dist/{capture-engine-Bz7eXFjT.mjs → capture-engine-DiwbjoWp.mjs} +2 -1
  88. package/system/dist/command-origin-claim-Cief660O.js +35 -0
  89. package/system/dist/command-origin-claim-D1Wy7Qld.mjs +24 -0
  90. package/system/dist/composition-sources-BEUWn2s_.mjs +391 -0
  91. package/system/dist/composition-sources-acfR4hDq.js +408 -0
  92. package/system/dist/{constants-D2etJ02O.js → constants-Ba3FTIHl.js} +1 -1
  93. package/system/dist/constants-C860Y6U4.js +26 -0
  94. package/system/dist/{constants-BcUTQd1M.mjs → constants-DB4piTD5.mjs} +1 -1
  95. package/system/dist/constants-DCLpoF4L.mjs +21 -0
  96. package/system/dist/coral-accelerators-7o8hqvcN.js +564 -0
  97. package/system/dist/coral-accelerators-BKcXP59c.mjs +521 -0
  98. package/system/dist/core-blocks.cap-BMeMCBrx.js +18733 -0
  99. package/system/dist/core-blocks.cap-BRPsLAij.mjs +18008 -0
  100. package/system/dist/{custom-action-registry-N7flBDwT.mjs → custom-action-registry-B9zFBNVa.mjs} +37 -37
  101. package/system/dist/custom-actions-BFUSalC9.mjs +25 -0
  102. package/system/dist/custom-actions-D92NRi2c.js +36 -0
  103. package/system/dist/database-snapshot.cap-DF38e-0P.js +162 -0
  104. package/system/dist/database-snapshot.cap-dhrc9xnY.mjs +133 -0
  105. package/system/dist/declared-device-BWphj9WE.js +303 -0
  106. package/system/dist/declared-device-CKERA1Hi.mjs +286 -0
  107. package/system/dist/{device-ca-ExMN3xW3.mjs → device-ca-BLM6fccc.mjs} +2 -1
  108. package/system/dist/{device-ca-CU8zh9Pi.js → device-ca-C5kJE6mL.js} +7 -6
  109. package/system/dist/device-certificate-Cddm4Idn.mjs +91 -0
  110. package/system/dist/device-certificate-CguVACQO.js +162 -0
  111. package/system/dist/device-identifiers-BQg9EQi1.js +600 -0
  112. package/system/dist/device-identifiers-iSuQCKmK.mjs +529 -0
  113. package/system/dist/device-kind-BJ2pfsjw.mjs +78 -0
  114. package/system/dist/device-kind-CsSiv_YF.js +101 -0
  115. package/system/dist/device-manager.cap-2abwVLCM.js +2874 -0
  116. package/system/dist/device-manager.cap-CFZSPfUh.mjs +2749 -0
  117. package/system/dist/device-provider.cap-3Uvk6f5-.mjs +331 -0
  118. package/system/dist/device-provider.cap-D7TV2kVH.js +366 -0
  119. package/system/dist/{device-row-store-CeW_GWh9.mjs → device-row-store-YF3jtmkk.mjs} +4 -1
  120. package/system/dist/{device-row-store-BMIR-n3m.js → device-row-store-doTfMOqn.js} +12 -9
  121. package/system/dist/device-transitions.cap-B5w5PYU_.js +860 -0
  122. package/system/dist/device-transitions.cap-DojcwEuX.mjs +819 -0
  123. package/system/dist/device-type-CbQsnFdC.js +477 -0
  124. package/system/dist/device-type-DgEvK3ch.mjs +454 -0
  125. package/system/dist/entry-kind-D9MuVJCK.mjs +44 -0
  126. package/system/dist/entry-kind-cq90c--V.js +55 -0
  127. package/system/dist/error.cap-CSM_SRfR.mjs +3423 -0
  128. package/system/dist/error.cap-DBhgPeWK.js +3848 -0
  129. package/system/dist/file-host-worker.js +1 -1
  130. package/system/dist/file-host-worker.mjs +1 -1
  131. package/system/dist/history-catalog-BKRarIL_.js +831 -0
  132. package/system/dist/history-catalog-BwTeQ4Mr.mjs +802 -0
  133. package/system/dist/{hub-identity-Csxx2Q8k.js → hub-identity-BMdR3Mw9.js} +2 -2
  134. package/system/dist/{hub-identity-CYC1820R.mjs → hub-identity-DjMN9Ac2.mjs} +10 -10
  135. package/system/dist/{hub-mdns-ciao-By5577HM.js → hub-mdns-ciao--0v1TKME.js} +5 -5
  136. package/system/dist/{hub-mdns-ciao-CCDxM5qz.mjs → hub-mdns-ciao-DBrtHOcc.mjs} +2 -2
  137. package/system/dist/index.js +763 -151
  138. package/system/dist/index.mjs +832 -220
  139. package/system/dist/integration-instances.cap-Cl9O-k4h.mjs +538 -0
  140. package/system/dist/integration-instances.cap-dJIxg2_s.js +549 -0
  141. package/system/dist/keychain-admin.cap-Db_oFX4H.js +425 -0
  142. package/system/dist/keychain-admin.cap-GtM7gVGG.mjs +396 -0
  143. package/system/dist/l10n-Bu6aUvSY.mjs +10 -0
  144. package/system/dist/l10n-CGMvp7NF.js +15 -0
  145. package/system/dist/labels-DX5S8deC.js +81 -0
  146. package/system/dist/labels-DsBcU7md.mjs +64 -0
  147. package/system/dist/{legacy-integration-rows-door-CVwOo5aq.js → legacy-integration-rows-door-B1nzxxr5.js} +2 -2
  148. package/system/dist/{legacy-integration-rows-door-D9tQOUzh.mjs → legacy-integration-rows-door-nTvo_6jQ.mjs} +1 -1
  149. package/system/dist/log-destination.cap-CxZzAVaR.mjs +143 -0
  150. package/system/dist/log-destination.cap-DELPJkZ0.js +148 -0
  151. package/system/dist/low-power-sleep.cap-7lfVU41N.js +103 -0
  152. package/system/dist/low-power-sleep.cap-tGPmaZ_V.mjs +92 -0
  153. package/system/dist/mask-shape-Ci8Co9w0.mjs +57 -0
  154. package/system/dist/mask-shape-CmPA2fst.js +92 -0
  155. package/system/dist/metrics-provider.cap-BNmcHDkQ.mjs +405 -0
  156. package/system/dist/metrics-provider.cap-BcmQUt6l.js +410 -0
  157. package/system/dist/migration-BMjgkyG2.js +380 -0
  158. package/system/dist/migration-DRJAtdy7.mjs +321 -0
  159. package/system/dist/network-access.cap-B5TWLDCC.js +1099 -0
  160. package/system/dist/network-access.cap-BJnGbE6n.mjs +1004 -0
  161. package/system/dist/notification-rules.cap-BDh0LDhV.js +3428 -0
  162. package/system/dist/notification-rules.cap-DUmiMBQB.mjs +3357 -0
  163. package/system/dist/notification-targets-CRH-9Dy5.js +509 -0
  164. package/system/dist/notification-targets-DaNE-pIt.mjs +486 -0
  165. package/system/dist/ops-log-CB4pIdqi.mjs +64 -0
  166. package/system/dist/ops-log-pxt9176Z.js +81 -0
  167. package/system/dist/pinned-binary-BOhOSNff.js +28 -0
  168. package/system/dist/pinned-binary-CrIRAi4G.mjs +23 -0
  169. package/system/dist/platform-probe.cap-1WrMhWHx.js +250 -0
  170. package/system/dist/platform-probe.cap-BFeqFLtQ.mjs +233 -0
  171. package/system/dist/prefix-walk-BkMxoXpL.js +843 -0
  172. package/system/dist/prefix-walk-ifwg_ukx.mjs +790 -0
  173. package/system/dist/ptz-autotrack.cap-BW7w0zHD.js +229 -0
  174. package/system/dist/ptz-autotrack.cap-DT2GypXw.mjs +224 -0
  175. package/system/dist/quantity-D3g5SxsZ.mjs +114 -0
  176. package/system/dist/quantity-lY1KiTSZ.js +143 -0
  177. package/system/dist/raw-secret-migration-DxuBFtvi.js +50 -0
  178. package/system/dist/raw-secret-migration-iv88mLoc.mjs +39 -0
  179. package/system/dist/record-entries.cap-sMUhTvTU.mjs +75 -0
  180. package/system/dist/record-entries.cap-ti1C046R.js +80 -0
  181. package/system/dist/record-kind-DoBfYHCs.js +203 -0
  182. package/system/dist/record-kind-ub6NXqfh.mjs +162 -0
  183. package/system/dist/recording-archive.cap-7OrIn9e5.mjs +1299 -0
  184. package/system/dist/recording-archive.cap-D7bo-QSM.js +1328 -0
  185. package/system/dist/records.cap-ClcWV64i.js +329 -0
  186. package/system/dist/records.cap-CwLT2ByG.mjs +294 -0
  187. package/system/dist/relocate-CdVQAk-w.js +804 -0
  188. package/system/dist/relocate-CoZZTui1.mjs +661 -0
  189. package/system/dist/rename-composition-block-BJsL58Ih.js +34798 -0
  190. package/system/dist/rename-composition-block-OAtErZgq.mjs +33631 -0
  191. package/system/dist/{restore-archive-BJfyu0sG.mjs → restore-archive-CjAyKpgX.mjs} +96 -94
  192. package/system/dist/{restore-archive-CIFvqOze.js → restore-archive-CkTkv3Ss.js} +6 -4
  193. package/system/dist/scoped-settings-CylSSq_8.js +955 -0
  194. package/system/dist/scoped-settings-DVWUIP7Z.mjs +650 -0
  195. package/system/dist/server-name-BIhLuHvX.mjs +35 -0
  196. package/system/dist/server-name-OALNvpqC.js +52 -0
  197. package/system/dist/settings-store.cap-Ci4F2zul.mjs +569 -0
  198. package/system/dist/settings-store.cap-wlJhCspr.js +640 -0
  199. package/system/dist/snapshot.cap-3suPdBHV.js +250 -0
  200. package/system/dist/snapshot.cap-Bs8Oyaqh.mjs +245 -0
  201. package/system/dist/source-info-DGB7SdB_.mjs +190 -0
  202. package/system/dist/source-info-DtWf4k2j.js +225 -0
  203. package/system/dist/storage-admin.cap-BSv1NjKJ.mjs +883 -0
  204. package/system/dist/storage-admin.cap-he0OqvVM.js +906 -0
  205. package/system/dist/storage-location-CBT8GCD6.mjs +163 -0
  206. package/system/dist/storage-location-CTweDMZf.js +198 -0
  207. package/system/dist/storage-location-mode-B21UVRRX.mjs +167 -0
  208. package/system/dist/storage-location-mode-CS4sMzo-.js +232 -0
  209. package/system/dist/storage-migration.cap-CyyATY_p.js +330 -0
  210. package/system/dist/storage-migration.cap-D7QqGobp.mjs +313 -0
  211. package/system/dist/storage-occupancy.cap-2rmnS58Z.js +622 -0
  212. package/system/dist/storage-occupancy.cap-CqBztTl9.mjs +611 -0
  213. package/system/dist/storage-provider.cap-Bw0CfxVc.js +213 -0
  214. package/system/dist/storage-provider.cap-CMeck2w4.mjs +202 -0
  215. package/system/dist/stream-catalog.cap-Bp7SkgIf.mjs +6560 -0
  216. package/system/dist/stream-catalog.cap-D3uwePiA.js +6763 -0
  217. package/system/dist/streaming-shared-B8cXatuU.mjs +431 -0
  218. package/system/dist/streaming-shared-DQwFZOSi.js +526 -0
  219. package/system/dist/system-reasons-Be_k1W8g.js +25 -0
  220. package/system/dist/system-reasons-CYj4qwyS.mjs +20 -0
  221. package/system/dist/tag-BxLazvVb.js +2138 -0
  222. package/system/dist/tag-uZBAq6ox.mjs +2073 -0
  223. package/system/dist/user-management.cap-B9QDu8NE.js +825 -0
  224. package/system/dist/user-management.cap-DBIi77sB.mjs +766 -0
  225. package/system/dist/vector-store.cap-DnyfrYDn.js +330 -0
  226. package/system/dist/vector-store.cap-h2GHWQ1t.mjs +319 -0
  227. package/system/dist/{wal-maintenance-CTrCPzds.mjs → wal-maintenance-BG01rOn9.mjs} +0 -0
  228. package/system/dist/{wal-maintenance-dq7T3quB.js → wal-maintenance-DyrebYKF.js} +0 -0
  229. package/system/dist/zod-secret-DS7mj1bk.js +78 -0
  230. package/system/dist/zod-secret-zY4nM61M.mjs +73 -0
  231. package/system/package.json +1 -1
  232. package/system/dist/composition-sources-BI614LJx.mjs +0 -141
  233. package/system/dist/composition-sources-v_kkb8A9.js +0 -152
  234. package/system/dist/coral-accelerators-BSVsBVzt.js +0 -250
  235. package/system/dist/coral-accelerators-BW3OcrLD.mjs +0 -231
  236. package/system/dist/dist-BCHMSqzc.mjs +0 -143467
  237. package/system/dist/dist-BZfvhfS1.js +0 -146970
  238. package/system/dist/prefix-walk-DAOBSyH1.mjs +0 -88
  239. package/system/dist/prefix-walk-Dv6MLZlM.js +0 -99
  240. package/system/dist/rename-composition-block-C9HuBrKS.js +0 -112
  241. package/system/dist/rename-composition-block-DtaYmYAR.mjs +0 -101
@@ -0,0 +1,454 @@
1
+ //#region ../types/dist/esm/device/device-type.mjs
2
+ var DeviceType = /* @__PURE__ */ function(DeviceType) {
3
+ DeviceType["Camera"] = "camera";
4
+ DeviceType["Light"] = "light";
5
+ DeviceType["Siren"] = "siren";
6
+ DeviceType["Switch"] = "switch";
7
+ DeviceType["Sensor"] = "sensor";
8
+ /** Every climate device: an air conditioner, a room thermostat, a radiator
9
+ * valve, a floor-heating zone, a heat-pump circuit. They share one set of
10
+ * controls (`climate-control`), so they are one type; WHICH kind of climate
11
+ * device it is is its {@link DeviceRole} (`climate-*`), which the UI and the
12
+ * exports branch on. The retired `thermostat` type is read as this one
13
+ * (`canonicalStoredDeviceType`). */
14
+ DeviceType["Climate"] = "climate";
15
+ DeviceType["Button"] = "button";
16
+ /** Generic stateless event emitter — carries a device's EXACT declared
17
+ * event vocabulary verbatim (no normalization). Installed with the
18
+ * `event-emitter` cap. Sources: HA `event.*` entities (structured) and
19
+ * HA bus events (e.g. `zha_event`, generic). */
20
+ DeviceType["EventEmitter"] = "event-emitter";
21
+ /** Firmware/software update entity — current vs available version,
22
+ * updatable flag, update state, and an install action. Installed with
23
+ * the `update` cap. Sources: Homematic firmware-update channels (and
24
+ * reusable by other providers, e.g. HA `update.*` entities). */
25
+ DeviceType["Update"] = "update";
26
+ DeviceType["Generic"] = "generic";
27
+ /** Generic notification delivery target (HA `notify.<service>`, future
28
+ * Telegram / Discord / ntfy / SMTP, …). One device per delivery
29
+ * endpoint; the `notifier` cap defines the send surface. */
30
+ DeviceType["Notifier"] = "notifier";
31
+ /** Pre-recorded action sequence with optional parameters
32
+ * (HA `script.*`). Runnable via `script-runner` cap. */
33
+ DeviceType["Script"] = "script";
34
+ /** Automation rule (HA `automation.*`) — enable/disable + manual
35
+ * trigger surface exposed via `automation-control` cap. */
36
+ DeviceType["Automation"] = "automation";
37
+ /** Door / smart lock device (HA `lock.*`). `lock-control` cap. */
38
+ DeviceType["Lock"] = "lock";
39
+ /** Window covering, blinds, garage door, valve, etc. (HA `cover.*`,
40
+ * `valve.*`). `cover` cap with sub-roles for variant. */
41
+ DeviceType["Cover"] = "cover";
42
+ /** Pipe / water / gas valve with open/close/stop and optional
43
+ * position (HA `valve.*`). `valve` cap — a cover-sibling actuator
44
+ * modelled on the same open/closed lifecycle. */
45
+ DeviceType["Valve"] = "valve";
46
+ /** Humidifier / dehumidifier with on/off + target humidity + mode
47
+ * (HA `humidifier.*`). `humidifier` cap — a climate-family actuator
48
+ * modelled on the same target / mode lifecycle. */
49
+ DeviceType["Humidifier"] = "humidifier";
50
+ /** Water heater / boiler with target temperature + operation mode +
51
+ * away mode (HA `water_heater.*`). `water-heater` cap — a
52
+ * climate-family actuator. */
53
+ DeviceType["WaterHeater"] = "water-heater";
54
+ /** Ceiling / standing / exhaust fan (HA `fan.*`). `fan-control` cap. */
55
+ DeviceType["Fan"] = "fan";
56
+ /** Audio / video playback endpoint (HA `media_player.*`). Disjoint from
57
+ * the camera surface — those use `Camera`. `media-player` cap. */
58
+ DeviceType["MediaPlayer"] = "media-player";
59
+ /** Security panel / alarm system (HA `alarm_control_panel.*`).
60
+ * `alarm-panel` cap. */
61
+ DeviceType["AlarmPanel"] = "alarm-panel";
62
+ /** Generic user-settable input (HA `number` / `input_number` / `select`
63
+ * / `input_select` / `text` / `input_text` / `input_datetime`).
64
+ * Sub-type via `DeviceRole`: NumericControl / SelectControl /
65
+ * TextControl / DateTimeControl. */
66
+ DeviceType["Control"] = "control";
67
+ /** Person / device-tracker presence (HA `person.*`, `device_tracker.*`).
68
+ * `presence` cap. */
69
+ DeviceType["Presence"] = "presence";
70
+ /** Weather provider (HA `weather.*`). Tier-3, low MVP priority.
71
+ * `weather` cap. */
72
+ DeviceType["Weather"] = "weather";
73
+ /** A physical weather station (Ecowitt outdoor array). `weather-station`
74
+ * cap. Distinct from {@link Weather}, which is a forecast provider. */
75
+ DeviceType["WeatherStation"] = "weather-station";
76
+ /** Robot vacuum (HA `vacuum.*`). Tier-3. `vacuum-control` cap. */
77
+ DeviceType["Vacuum"] = "vacuum";
78
+ /** Robotic lawn mower (HA `lawn_mower.*`). Tier-3.
79
+ * `lawn-mower-control` cap. */
80
+ DeviceType["LawnMower"] = "lawn-mower";
81
+ /** Physical HA device group — parent container for entity-children
82
+ * adopted from a single HA device entry. Not renderable as a
83
+ * standalone device; exists only to anchor child entities. */
84
+ DeviceType["Container"] = "container";
85
+ /** Single still-image entity (HA `image.*`). Read-only display of an
86
+ * `entity_picture` signed URL the browser loads directly. `image` cap. */
87
+ DeviceType["Image"] = "image";
88
+ /** Smart pet feeder — cloud-connected food dispenser with a bowl food
89
+ * level, battery, desiccant life, feeding state and manual-feed /
90
+ * call-pet / maintenance actions. Installed with the `pet-feeder` cap;
91
+ * dual-hopper models (D4S/D4SH) expose per-hopper portions. Sources:
92
+ * native PetKit (`nodepetkit` `FeederDevice`), reusable by other feeder
93
+ * integrations sharing the same food/desiccant/hopper surface. */
94
+ DeviceType["PetFeeder"] = "pet-feeder";
95
+ /** Pet water fountain — tank level, water drunk, pump and its duty cycle.
96
+ * Installed with the `pet-fountain` cap. Reaches CamStack as loose entities
97
+ * of a container and is BUILT as a composed device (D967). */
98
+ DeviceType["PetFountain"] = "pet-fountain";
99
+ /** Built-in dishwasher — program lifecycle, door / remote-start gates,
100
+ * salt and rinse-aid levels. Installed with the `dishwasher` cap.
101
+ * Sources: native Bosch Home Connect, reusable by similar integrations.
102
+ * A plug-built dishwasher carries running-state and power instead. */
103
+ DeviceType["Dishwasher"] = "dishwasher";
104
+ /** Washing machine. A plug-built one is running while its power stays
105
+ * above a threshold. No program cap — that surface is the dishwasher's. */
106
+ DeviceType["Washer"] = "washer";
107
+ /** Tumble dryer. Same plug-built running surface as {@link Washer}. */
108
+ DeviceType["Dryer"] = "dryer";
109
+ /** The physical bridge box of a vendor ecosystem (Velux KLF-200, and later
110
+ * other radio-to-IP bridges). It carries the box's own facts (firmware,
111
+ * address, connection state) and the actions the box really supports
112
+ * (`reboot`, `device-admin-link`). Products are NOT its children — they are
113
+ * adopted beside it — and its connection settings stay on the integration. */
114
+ DeviceType["Gateway"] = "gateway";
115
+ /** A heat pump (any vendor): the compressor unit with its circuits (heating, hot
116
+ * water, cooling, solar), its system modes and its power. One main read-only
117
+ * `heat-pump-status` cap carries all of it; `heat-pump-control` sets it (D1026). */
118
+ DeviceType["HeatPump"] = "heat-pump";
119
+ /** A home energy installation (any vendor): solar, grid, house, a metered heat pump
120
+ * and the storage as branches of one bus. One read-only `energy-system` cap carries
121
+ * every value; the storage is a field of it, never the `battery` cap (#513, #522). */
122
+ DeviceType["EnergySystem"] = "energy-system";
123
+ /** Something that RUNS on a machine, or the machine itself (#585): a VM, an app
124
+ * container, an LXC, an app, or a host. The kind is the ROLE (D1033, D1056), never
125
+ * a field; one `workload` cap carries the state, the controls and the resources. */
126
+ DeviceType["Workload"] = "workload";
127
+ return DeviceType;
128
+ }({});
129
+ var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
130
+ /** The device reports a battery reading (the `battery` cap). Says nothing about sleep. */
131
+ DeviceFeature["BatteryOperated"] = "battery-operated";
132
+ /**
133
+ * The device goes into low-power sleep and must be WOKEN before it streams
134
+ * (the `low-power-sleep` cap, `wakeUp`). A battery reading alone is
135
+ * not this: a battery sensor reports charge and never sleeps (#459, Q2).
136
+ */
137
+ DeviceFeature["Sleeps"] = "sleeps";
138
+ DeviceFeature["Rebootable"] = "rebootable";
139
+ /**
140
+ * Device supports an on-demand re-sync of its derived spec with its
141
+ * upstream source — drives the generic Re-sync button. Present when the
142
+ * device has the `resync` cap bound (#459, Q6).
143
+ */
144
+ DeviceFeature["Resyncable"] = "resyncable";
145
+ DeviceFeature["NativeSnapshot"] = "native-snapshot";
146
+ DeviceFeature["DoorbellButton"] = "doorbell-button";
147
+ DeviceFeature["TwoWayAudio"] = "two-way-audio";
148
+ DeviceFeature["PanTiltZoom"] = "pan-tilt-zoom";
149
+ /**
150
+ * Camera supports the on-firmware autotrack subsystem (subject-
151
+ * following). Distinct from `PanTiltZoom` because not every PTZ
152
+ * camera ships autotrack — the admin UI uses this flag to gate
153
+ * the autotrack toggle / settings card without re-deriving from
154
+ * the cap registry. Mirrors `ptz-autotrack` cap registration:
155
+ * driver sets this feature when probe confirms the firmware
156
+ * surface, and registers the cap in the same code path.
157
+ */
158
+ DeviceFeature["PtzAutotrack"] = "ptz-autotrack";
159
+ /**
160
+ * Accessory exposes a "trigger on motion" toggle — the parent camera's
161
+ * motion detection automatically activates this device. Mirrors
162
+ * `motion-trigger` cap registration: drivers set this feature in the
163
+ * same code path that calls `ctx.registerNativeCap(motionTriggerCapability, ...)`.
164
+ *
165
+ * Used by admin UI (gate the in-hero `MotionTriggerToggle` against a
166
+ * fast scalar without binding fetch), notifier rules, and `listAll`
167
+ * filters that want "all devices with on-motion behaviour".
168
+ */
169
+ DeviceFeature["MotionTrigger"] = "motion-trigger";
170
+ /**
171
+ * Device can be run for a chosen time and then stopped. Mirrors the
172
+ * `timed-run` wrapper cap — the cap is bound by the core-blocks addon, not by
173
+ * a driver, so the flag is derived from the device's bindings
174
+ * (`featuresOfBoundCaps`). Gates the quick-run control in the viewer.
175
+ */
176
+ DeviceFeature["TimedRun"] = "timed-run";
177
+ /**
178
+ * Device binds a plain `switch` cap. Derived from the bindings
179
+ * (`featuresOfBoundCaps`) for a composed device, whose switch is bound by the
180
+ * composition and not by a driver: an appliance (a heater behind a smart
181
+ * plug) has no control of its own, so a surface reads this as its on/off.
182
+ */
183
+ DeviceFeature["Switch"] = "switch";
184
+ /** Light supports rgb-triplet color via `color` cap. */
185
+ DeviceFeature["LightColorRgb"] = "light-color-rgb";
186
+ /** Light supports HSV color via `color` cap. */
187
+ DeviceFeature["LightColorHsv"] = "light-color-hsv";
188
+ /** Light supports color-temperature (mired) via `color` cap. */
189
+ DeviceFeature["LightColorMired"] = "light-color-mired";
190
+ /** Thermostat supports a `heat_cool` dual setpoint (targetLow +
191
+ * targetHigh). Gates the range slider UI. */
192
+ DeviceFeature["ClimateDualSetpoint"] = "climate-dual-setpoint";
193
+ /** Thermostat exposes target humidity and/or current humidity
194
+ * readings. Gates the humidity controls. */
195
+ DeviceFeature["ClimateHumidity"] = "climate-humidity";
196
+ /** Thermostat exposes a fan-mode selector. */
197
+ DeviceFeature["ClimateFanMode"] = "climate-fan-mode";
198
+ /** Thermostat exposes preset modes (eco / away / sleep / vendor). */
199
+ DeviceFeature["ClimatePreset"] = "climate-preset";
200
+ /** Thermostat exposes a vertical louver swing toggle. Gates the
201
+ * vertical-swing switch in the climate UI. Independent of horizontal. */
202
+ DeviceFeature["ClimateSwingVertical"] = "climate-swing-vertical";
203
+ /** Thermostat exposes a horizontal louver swing toggle. Gates the
204
+ * horizontal-swing switch in the climate UI. Independent of vertical. */
205
+ DeviceFeature["ClimateSwingHorizontal"] = "climate-swing-horizontal";
206
+ /** Cover exposes intermediate position control (0..100). Gates the
207
+ * position slider UI. */
208
+ DeviceFeature["CoverPositionable"] = "cover-positionable";
209
+ /** Cover exposes slat-tilt control. Gates the tilt slider UI. */
210
+ DeviceFeature["CoverTilt"] = "cover-tilt";
211
+ /** Cover has a real stop: `stop` halts the travel in place. Gates the stop
212
+ * control in exporters; a provider whose `stop` is a no-op never declares it. */
213
+ DeviceFeature["CoverStoppable"] = "cover-stoppable";
214
+ /** Valve exposes intermediate position control (0..100). Gates the
215
+ * position slider / drag surface UI. */
216
+ DeviceFeature["ValvePositionable"] = "valve-positionable";
217
+ /** Fan exposes a speed-percentage setter. Gates the speed slider UI. */
218
+ DeviceFeature["FanSpeed"] = "fan-speed";
219
+ /** Fan exposes a preset mode selector. */
220
+ DeviceFeature["FanPreset"] = "fan-preset";
221
+ /** Fan exposes blade direction (forward/reverse) — typical of
222
+ * ceiling fans. */
223
+ DeviceFeature["FanDirection"] = "fan-direction";
224
+ /** Fan exposes an oscillation toggle. */
225
+ DeviceFeature["FanOscillating"] = "fan-oscillating";
226
+ /** Lock supports a latch-release ("open door") action distinct from
227
+ * unlock. Mirrors HA `LockEntityFeature.OPEN` (bit 1) in
228
+ * `supported_features`. Gates the Open Door button in the UI. */
229
+ DeviceFeature["LockOpen"] = "lock-open";
230
+ /** Media player exposes a seek-to-position surface. */
231
+ DeviceFeature["MediaPlayerSeek"] = "media-player-seek";
232
+ /** Media player exposes a volume-level setter. */
233
+ DeviceFeature["MediaPlayerVolume"] = "media-player-volume";
234
+ /** Media player exposes a mute toggle distinct from volume=0. */
235
+ DeviceFeature["MediaPlayerMute"] = "media-player-mute";
236
+ /** Media player exposes a shuffle toggle. */
237
+ DeviceFeature["MediaPlayerShuffle"] = "media-player-shuffle";
238
+ /** Media player exposes a repeat mode (off / all / one). */
239
+ DeviceFeature["MediaPlayerRepeat"] = "media-player-repeat";
240
+ /** Media player exposes a source / input selector. */
241
+ DeviceFeature["MediaPlayerSelectSource"] = "media-player-select-source";
242
+ /** Media player exposes a play-arbitrary-media surface (URL / id). */
243
+ DeviceFeature["MediaPlayerPlayMedia"] = "media-player-play-media";
244
+ /** Media player exposes next-track. */
245
+ DeviceFeature["MediaPlayerNext"] = "media-player-next";
246
+ /** Media player exposes previous-track. */
247
+ DeviceFeature["MediaPlayerPrevious"] = "media-player-previous";
248
+ /** Media player exposes stop distinct from pause. */
249
+ DeviceFeature["MediaPlayerStop"] = "media-player-stop";
250
+ /** Media player exposes volume up / down in steps (an infrared TV has no level). */
251
+ DeviceFeature["MediaPlayerVolumeStep"] = "media-player-volume-step";
252
+ /** Media player exposes channel up / down in steps. */
253
+ DeviceFeature["MediaPlayerChannelStep"] = "media-player-channel-step";
254
+ /** Media player exposes power on / off. */
255
+ DeviceFeature["MediaPlayerPower"] = "media-player-power";
256
+ /** Presence device carries GPS coordinates (lat/lng/accuracy) in
257
+ * addition to a textual location. */
258
+ DeviceFeature["PresenceGps"] = "presence-gps";
259
+ /** Notifier accepts an inline / URL image attachment. */
260
+ DeviceFeature["NotifierImage"] = "notifier-image";
261
+ /** Notifier accepts a priority hint (high/normal/low). */
262
+ DeviceFeature["NotifierPriority"] = "notifier-priority";
263
+ /** Notifier accepts a free-form `data` payload for platform-specific
264
+ * fields. */
265
+ DeviceFeature["NotifierData"] = "notifier-data";
266
+ /** Notifier supports interactive action buttons / callbacks. */
267
+ DeviceFeature["NotifierActions"] = "notifier-actions";
268
+ /** Notifier supports per-call recipient targeting (multi-user). */
269
+ DeviceFeature["NotifierRecipients"] = "notifier-recipients";
270
+ /** Script runner accepts a variables map on each run invocation. */
271
+ DeviceFeature["ScriptVariables"] = "script-variables";
272
+ /** Automation `trigger` accepts a skipCondition flag — fires the
273
+ * automation's actions while bypassing its condition block. */
274
+ DeviceFeature["AutomationSkipCondition"] = "automation-skip-condition";
275
+ /** Robot vacuum exposes AI obstacle-detection toggles. Gates the AI
276
+ * switches group. */
277
+ DeviceFeature["VacuumHasAi"] = "vacuum-has-ai";
278
+ /** Robot mower exposes targeted mowing (all-area / zones / edges /
279
+ * spots) — gates the Mow action + map selectors. */
280
+ DeviceFeature["MowerHasTargetedMowing"] = "mower-has-targeted-mowing";
281
+ /** The device has a drive/navigation surface (`navigation` cap): a robot camera. */
282
+ DeviceFeature["Navigation"] = "navigation";
283
+ /** The device has a network-link reading (`network-link` cap). */
284
+ DeviceFeature["NetworkLink"] = "network-link";
285
+ return DeviceFeature;
286
+ }({});
287
+ /**
288
+ * The features a device carries because a capability is bound on it: a bound cap
289
+ * whose name IS a `DeviceFeature` value. One rule for a device whose cap set
290
+ * is not decided by one driver (a composed device, a wrapper cap) — a feature
291
+ * is never listed twice, once as a cap and once as a table of names.
292
+ */
293
+ function featuresOfBoundCaps(capNames) {
294
+ return Object.values(DeviceFeature).filter((feature) => capNames.includes(feature));
295
+ }
296
+ /**
297
+ * Semantic role a device plays within its parent. Populated by driver
298
+ * addons when creating accessory devices (Reolink siren/floodlight/
299
+ * PIR/chime/autotrack/doorbell, ONVIF relay outputs, …). Used by the
300
+ * admin UI to pick icons, labels, and widgets — a `Switch` with
301
+ * `role: Floodlight` renders as a bulb with a brightness slider,
302
+ * whereas a `Switch` with `role: Siren` renders as a klaxon.
303
+ *
304
+ * Undefined for top-level devices (cameras, NVRs, hubs). Persisted in
305
+ * sqlite as a nullable TEXT column — old rows keep working unchanged.
306
+ */
307
+ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
308
+ DeviceRole["Siren"] = "siren";
309
+ DeviceRole["Floodlight"] = "floodlight";
310
+ DeviceRole["Spotlight"] = "spotlight";
311
+ DeviceRole["PirSensor"] = "pir-sensor";
312
+ DeviceRole["Chime"] = "chime";
313
+ DeviceRole["Autotrack"] = "autotrack";
314
+ DeviceRole["Nightvision"] = "nightvision";
315
+ DeviceRole["PrivacyMask"] = "privacy-mask";
316
+ DeviceRole["Doorbell"] = "doorbell";
317
+ /** Interior blind / shade / roller blind. HA `device_class: blind|shade`. */
318
+ DeviceRole["CoverBlind"] = "cover-blind";
319
+ /** Exterior roller shutter. HA `device_class: shutter`; Homematic BROLL. */
320
+ DeviceRole["CoverShutter"] = "cover-shutter";
321
+ /** Exterior awning. HA `device_class: awning`. */
322
+ DeviceRole["CoverAwning"] = "cover-awning";
323
+ /** Curtain / drape. HA `device_class: curtain`. */
324
+ DeviceRole["CoverCurtain"] = "cover-curtain";
325
+ /** Garage door. HA `device_class: garage`. A security actuator: exports gate it. */
326
+ DeviceRole["CoverGarage"] = "cover-garage";
327
+ /** Gate. HA `device_class: gate`. A security actuator: exports gate it. */
328
+ DeviceRole["CoverGate"] = "cover-gate";
329
+ /** Door. HA `device_class: door`. A security actuator: exports gate it. */
330
+ DeviceRole["CoverDoor"] = "cover-door";
331
+ /** Window. HA `device_class: window`. */
332
+ DeviceRole["CoverWindow"] = "cover-window";
333
+ /** Virtual HA toggle (input_boolean.*) — distinguishable from a
334
+ * real Switch device for UI rendering / export adapters. */
335
+ DeviceRole["BinaryHelper"] = "binary-helper";
336
+ /** A smart plug: a `switch` whose source says it is an outlet (HA
337
+ * `device_class: outlet`). The Alexa export shows it as a SMARTPLUG. */
338
+ DeviceRole["Outlet"] = "outlet";
339
+ /** A dumb plug-in stove or heater behind a switch: it runs only while the
340
+ * switch is on. Offered `timed-run`, which switches it off again after a
341
+ * chosen time. */
342
+ DeviceRole["SwitchHeater"] = "switch-heater";
343
+ /** A plain fan behind a switch (a smart plug powering it): drawn as a fan,
344
+ * with the switch's on/off only. Speed or oscillation appear only when the
345
+ * device also has a fan cap (D1033). */
346
+ DeviceRole["SwitchFan"] = "switch-fan";
347
+ /** A relay driving an on/off-only lamp: drawn as a light (bulb and glow, no
348
+ * slider), presented to the exports as a light with power only. Not a
349
+ * `light` type: the provider owns the type, and a light implies brightness
350
+ * or colour this relay lacks. */
351
+ DeviceRole["SwitchLight"] = "switch-light";
352
+ /** One port of a network switch that powers the device behind it (PoE): on /
353
+ * off feeds or cuts that power. Its link is `network-link`, its draw
354
+ * `power-meter`. Restarting the powered device through the port is that
355
+ * device's `power-source` cap, never a reboot of the port. */
356
+ DeviceRole["PoePort"] = "poe-port";
357
+ /** Air conditioner / split unit: cooling, fan speed, louvres. */
358
+ DeviceRole["ClimateAc"] = "climate-ac";
359
+ /** Room thermostat: a setpoint and a room temperature. The default. */
360
+ DeviceRole["ClimateThermostat"] = "climate-thermostat";
361
+ /** Floor-heating zone actuator. */
362
+ DeviceRole["ClimateFloor"] = "climate-floor";
363
+ /** Radiator valve (thermostatic radiator head). */
364
+ DeviceRole["ClimateRadiator"] = "climate-radiator";
365
+ /** A heater with its own thermostat (stove, convector). */
366
+ DeviceRole["ClimateHeater"] = "climate-heater";
367
+ /** One heating/cooling circuit of a heat pump: a water loop with comfort /
368
+ * eco setpoints and a heat/cool mode, no room sensor. */
369
+ DeviceRole["ClimateHeatPumpCircuit"] = "climate-heat-pump-circuit";
370
+ /** Generic motion / occupancy / moving event source. Distinct from
371
+ * the camera accessory PirSensor role: that one is a camera child;
372
+ * this is a standalone HA / 3rd-party motion sensor. */
373
+ DeviceRole["MotionSensor"] = "motion-sensor";
374
+ DeviceRole["ContactSensor"] = "contact-sensor";
375
+ DeviceRole["LeakSensor"] = "leak-sensor";
376
+ DeviceRole["SmokeSensor"] = "smoke-sensor";
377
+ DeviceRole["COSensor"] = "co-sensor";
378
+ DeviceRole["GasSensor"] = "gas-sensor";
379
+ DeviceRole["TamperSensor"] = "tamper-sensor";
380
+ DeviceRole["VibrationSensor"] = "vibration-sensor";
381
+ DeviceRole["ConnectivitySensor"] = "connectivity-sensor";
382
+ DeviceRole["SoundSensor"] = "sound-sensor";
383
+ /** Fallback for `binary_sensor` without a known `device_class`. */
384
+ DeviceRole["BinarySensor"] = "binary-sensor";
385
+ DeviceRole["TemperatureSensor"] = "temperature-sensor";
386
+ DeviceRole["HumiditySensor"] = "humidity-sensor";
387
+ DeviceRole["AmbientLightSensor"] = "ambient-light-sensor";
388
+ DeviceRole["PressureSensor"] = "pressure-sensor";
389
+ /** Wind speed or direction (weather-station `wind-sensor` cap). */
390
+ DeviceRole["WindSensor"] = "wind-sensor";
391
+ /** Rain accumulation or rate (weather-station `rain-sensor` cap). */
392
+ DeviceRole["RainSensor"] = "rain-sensor";
393
+ /** UV index (weather-station `uv-sensor` cap). */
394
+ DeviceRole["UvSensor"] = "uv-sensor";
395
+ /** Solar irradiance W/m² (weather-station `solar-radiation-sensor` cap).
396
+ * Distinct from AmbientLightSensor (lux). */
397
+ DeviceRole["SolarRadiationSensor"] = "solar-radiation-sensor";
398
+ /** Soil moisture % (garden/weather `soil-moisture-sensor` cap). */
399
+ DeviceRole["SoilMoistureSensor"] = "soil-moisture-sensor";
400
+ DeviceRole["PowerSensor"] = "power-sensor";
401
+ DeviceRole["EnergySensor"] = "energy-sensor";
402
+ DeviceRole["VoltageSensor"] = "voltage-sensor";
403
+ DeviceRole["CurrentSensor"] = "current-sensor";
404
+ DeviceRole["AirQualitySensor"] = "air-quality-sensor";
405
+ /** Battery level (numeric % via `sensor` OR low-bool via
406
+ * `binary_sensor` — the cap distinguishes via the value type). */
407
+ DeviceRole["BatterySensor"] = "battery-sensor";
408
+ /** Fallback for `sensor` numeric without a known `device_class`. */
409
+ DeviceRole["NumericSensor"] = "numeric-sensor";
410
+ /** String / enum state (HA `sensor` with `state_class: enum` or
411
+ * `attributes.options`). */
412
+ DeviceRole["EnumSensor"] = "enum-sensor";
413
+ /** Date / timestamp state (HA `sensor` with `device_class: timestamp`
414
+ * or `date`). The slice carries the raw ISO string verbatim (hosted on
415
+ * the `enum-sensor` cap); the UI renders it locale-formatted. */
416
+ DeviceRole["DateTimeSensor"] = "datetime-sensor";
417
+ /** Last-resort fallback when nothing else matches. */
418
+ DeviceRole["GenericSensor"] = "generic-sensor";
419
+ DeviceRole["NumericControl"] = "numeric-control";
420
+ DeviceRole["SelectControl"] = "select-control";
421
+ DeviceRole["TextControl"] = "text-control";
422
+ DeviceRole["DateTimeControl"] = "datetime-control";
423
+ /** Mobile push notifier (HA `notify.mobile_app_*`) — supports
424
+ * rich features (image, priority, channel routing). */
425
+ DeviceRole["MobilePushNotifier"] = "mobile-push-notifier";
426
+ /** Chat / messaging service (HA `notify.telegram_*`,
427
+ * `notify.discord_*`, etc.). */
428
+ DeviceRole["MessagingNotifier"] = "messaging-notifier";
429
+ /** Email-based delivery (HA `notify.smtp`, etc.). */
430
+ DeviceRole["EmailNotifier"] = "email-notifier";
431
+ /** Fallback when the notifier service name doesn't match a known
432
+ * pattern. */
433
+ DeviceRole["GenericNotifier"] = "generic-notifier";
434
+ /** Emits a pulse train (infrared or RF) on request — the `ir-transmitter`
435
+ * cap. A `DeviceType.Generic` device. */
436
+ DeviceRole["IrTransmitter"] = "ir-transmitter";
437
+ /** A virtual machine on a hypervisor. */
438
+ DeviceRole["Vm"] = "vm";
439
+ /** An application container (Docker, Podman). */
440
+ DeviceRole["AppContainer"] = "app-container";
441
+ /** A system container (LXC). */
442
+ DeviceRole["Lxc"] = "lxc";
443
+ /** An application or service running on a host. */
444
+ DeviceRole["App"] = "app";
445
+ /** A machine that runs workloads or is an appliance with its own OS: a
446
+ * server, a hypervisor, a gateway console, a CCU. */
447
+ DeviceRole["Host"] = "host";
448
+ /** An uninterruptible power supply: battery charge, mains status and load. A
449
+ * `DeviceType.Sensor` device. */
450
+ DeviceRole["Ups"] = "ups";
451
+ return DeviceRole;
452
+ }({});
453
+ //#endregion
454
+ export { featuresOfBoundCaps as i, DeviceRole as n, DeviceType as r, DeviceFeature as t };
@@ -0,0 +1,44 @@
1
+ import { E as DeclarationRefusedError } from "./scoped-settings-DVWUIP7Z.mjs";
2
+ import { s as defineRecordKinds } from "./record-kind-ub6NXqfh.mjs";
3
+ import { z } from "zod";
4
+ //#region ../types/dist/esm/records/entry-kind.mjs
5
+ /**
6
+ * Entry kinds (D881): every list of user-created entries (notification
7
+ * targets, brokers, LLM profiles) is ONE record kind with an id, a name and a
8
+ * kind-specific body, and the admin UI lists/adds/edits/deletes all of them
9
+ * through the `record-entries` capability with password fields derived from
10
+ * the schema (`.meta({ secret: true })`).
11
+ */
12
+ /** The body of a plain entry: a name and the fields the kind adds. */
13
+ function entryBody(shape) {
14
+ return z.object({
15
+ name: z.string().min(1),
16
+ enabled: z.boolean().optional(),
17
+ ...shape
18
+ });
19
+ }
20
+ /**
21
+ * Declare one entry kind. An entry is configuration: never trimmed by the
22
+ * engine, never aged, belonging to no device.
23
+ */
24
+ function defineEntryKind(name, spec) {
25
+ const defined = defineRecordKinds({ [name]: {
26
+ schema: spec.schema,
27
+ class: "config",
28
+ writeTrigger: spec.writeTrigger ?? "an operator adds or edits an entry in the entries UI",
29
+ retention: { none: "an entry goes only when the operator deletes it" },
30
+ ...spec.maxDataBytes === void 0 ? {} : { maxDataBytes: spec.maxDataBytes },
31
+ ...spec.database === void 0 ? {} : { database: spec.database },
32
+ ...spec.indexes === void 0 ? {} : { indexes: spec.indexes },
33
+ ...spec.secretArrayKeys === void 0 ? {} : { secretArrayKeys: spec.secretArrayKeys },
34
+ ...spec.retiredSecretPaths === void 0 ? {} : { retiredSecretPaths: spec.retiredSecretPaths },
35
+ entry: {
36
+ title: spec.title,
37
+ ...spec.nameField === void 0 ? {} : { nameField: spec.nameField }
38
+ }
39
+ } })[name];
40
+ if (defined === void 0) throw new DeclarationRefusedError(`entry kind "${name}" was not built`);
41
+ return defined;
42
+ }
43
+ //#endregion
44
+ export { entryBody as n, defineEntryKind as t };
@@ -0,0 +1,55 @@
1
+ const require_scoped_settings = require("./scoped-settings-CylSSq_8.js");
2
+ const require_record_kind = require("./record-kind-DoBfYHCs.js");
3
+ let zod = require("zod");
4
+ //#region ../types/dist/esm/records/entry-kind.mjs
5
+ /**
6
+ * Entry kinds (D881): every list of user-created entries (notification
7
+ * targets, brokers, LLM profiles) is ONE record kind with an id, a name and a
8
+ * kind-specific body, and the admin UI lists/adds/edits/deletes all of them
9
+ * through the `record-entries` capability with password fields derived from
10
+ * the schema (`.meta({ secret: true })`).
11
+ */
12
+ /** The body of a plain entry: a name and the fields the kind adds. */
13
+ function entryBody(shape) {
14
+ return zod.z.object({
15
+ name: zod.z.string().min(1),
16
+ enabled: zod.z.boolean().optional(),
17
+ ...shape
18
+ });
19
+ }
20
+ /**
21
+ * Declare one entry kind. An entry is configuration: never trimmed by the
22
+ * engine, never aged, belonging to no device.
23
+ */
24
+ function defineEntryKind(name, spec) {
25
+ const defined = require_record_kind.defineRecordKinds({ [name]: {
26
+ schema: spec.schema,
27
+ class: "config",
28
+ writeTrigger: spec.writeTrigger ?? "an operator adds or edits an entry in the entries UI",
29
+ retention: { none: "an entry goes only when the operator deletes it" },
30
+ ...spec.maxDataBytes === void 0 ? {} : { maxDataBytes: spec.maxDataBytes },
31
+ ...spec.database === void 0 ? {} : { database: spec.database },
32
+ ...spec.indexes === void 0 ? {} : { indexes: spec.indexes },
33
+ ...spec.secretArrayKeys === void 0 ? {} : { secretArrayKeys: spec.secretArrayKeys },
34
+ ...spec.retiredSecretPaths === void 0 ? {} : { retiredSecretPaths: spec.retiredSecretPaths },
35
+ entry: {
36
+ title: spec.title,
37
+ ...spec.nameField === void 0 ? {} : { nameField: spec.nameField }
38
+ }
39
+ } })[name];
40
+ if (defined === void 0) throw new require_scoped_settings.DeclarationRefusedError(`entry kind "${name}" was not built`);
41
+ return defined;
42
+ }
43
+ //#endregion
44
+ Object.defineProperty(exports, "defineEntryKind", {
45
+ enumerable: true,
46
+ get: function() {
47
+ return defineEntryKind;
48
+ }
49
+ });
50
+ Object.defineProperty(exports, "entryBody", {
51
+ enumerable: true,
52
+ get: function() {
53
+ return entryBody;
54
+ }
55
+ });