@camstack/addon-admin-ui 1.2.690 → 1.2.692

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 (133) hide show
  1. package/CHANGELOG.md +34 -2
  2. package/dist/assets/AccessSection-IxFRkyj7.js +1 -0
  3. package/dist/assets/Addons-7QqgosGD.js +5 -0
  4. package/dist/assets/{AdminPage-z8USGyNk.js → AdminPage-C-qoUzpo.js} +1 -1
  5. package/dist/assets/{AdminSectionedPage-CtcZ5jHa.js → AdminSectionedPage--IV15Z0K.js} +1 -1
  6. package/dist/assets/AiProfiles-QN2g9jqO.js +3 -0
  7. package/dist/assets/Archive-WrESxjJy.js +1 -0
  8. package/dist/assets/BootstrapSettingsForm-weEVSaW9.js +1 -0
  9. package/dist/assets/Build-CpaKZqNA.js +40 -0
  10. package/dist/assets/{Calendars-DeXYk6f7.js → Calendars-BnNXx7uH.js} +1 -1
  11. package/dist/assets/Cluster-MRRnaFRU.js +1 -0
  12. package/dist/assets/CompositionBlockEditor-xLxzSrPy.js +2 -0
  13. package/dist/assets/CompositionEditorPage-CZWH0-Z7.js +1 -0
  14. package/dist/assets/Data-Dgw2QoiR.js +2 -0
  15. package/dist/assets/DeviceDetail-DKsu3T6J.js +1 -0
  16. package/dist/assets/{Devices-3Lm2uV9o.js → Devices-BfI-sOWA.js} +1 -1
  17. package/dist/assets/{EmbedDevicePage-BgNfY1Ap.js → EmbedDevicePage-CiYM6Lwi.js} +1 -1
  18. package/dist/assets/{EmbedPlayerPage-BFXQpQxb.js → EmbedPlayerPage-BlLAhiWe.js} +1 -1
  19. package/dist/assets/History-DdOqdVgE.js +1 -0
  20. package/dist/assets/Identity-BEZM1NwE.js +1 -0
  21. package/dist/assets/InstancesTable-ifaZoA3R.js +1 -0
  22. package/dist/assets/IntegrationDetail-CUFODYnA.js +1 -0
  23. package/dist/assets/Integrations-BkVNfR-7.js +1 -0
  24. package/dist/assets/{Integrations-CldsYVl0.js → Integrations-Bt2T0de9.js} +2 -2
  25. package/dist/assets/Library-C8Nqeb04.js +1 -0
  26. package/dist/assets/Locations-DNX7SZA-.js +3 -0
  27. package/dist/assets/{Logs-DSr8wCY-.js → Logs-D-XjeX6Q.js} +1 -1
  28. package/dist/assets/{MaskShapeCanvas-_BFcQxc-.js → MaskShapeCanvas-DIwpaQeo.js} +1 -1
  29. package/dist/assets/{MotionZonesSettings-DJDcu3fl.js → MotionZonesSettings-CSbx0QDE.js} +1 -1
  30. package/dist/assets/MyAccess-DY-Mr8w0.js +2 -0
  31. package/dist/assets/Network-CBlY8YKh.js +1 -0
  32. package/dist/assets/NewExportModal-DQeqPWZf.js +1 -0
  33. package/dist/assets/NodeAddonsSettingsPanel-CR7F2HPi.js +1 -0
  34. package/dist/assets/Notifications-BLVeFuqL.js +1 -0
  35. package/dist/assets/{PanelContent-DJ8p-hQ1.js → PanelContent-_b3IZ4jp.js} +2 -2
  36. package/dist/assets/Pipeline-BH757Q4y.js +1 -0
  37. package/dist/assets/{PrivacyMaskSettings-Dx5nRU-t.js → PrivacyMaskSettings-wIoHPyAB.js} +1 -1
  38. package/dist/assets/{SceneMonitorEditor-DFZ94G-a.js → SceneMonitorEditor-CgSpBLHL.js} +1 -1
  39. package/dist/assets/SessionsList-DAl5HWdR.js +2 -0
  40. package/dist/assets/{Showroom-DO1bQcNO.js → Showroom-CLeEbai0.js} +1 -1
  41. package/dist/assets/{StorageLocationsTable-BymZx5tG.js → StorageLocationsTable-Dm85ve5F.js} +1 -1
  42. package/dist/assets/System-BHnJ7qym.js +1 -0
  43. package/dist/assets/TemplateEditorDialog-D6yiZOgv.js +1 -0
  44. package/dist/assets/{TerminalPanel-BeJx-I2E.js → Terminal-BBmwTJmz.js} +5 -3
  45. package/dist/assets/{TrainingProviders-CPV9_SJC.js → TrainingProviders-ZSQkR2BW.js} +1 -1
  46. package/dist/assets/{Viewer-BN42pCqQ.js → Viewer-C4Ae2Vsy.js} +1 -1
  47. package/dist/assets/{__vite-browser-external-B6QEsNSJ.js → __vite-browser-external-DIbVKiho.js} +1 -1
  48. package/dist/assets/{_virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-DQNUYumg.js → _virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-UPf5SCPP.js} +1 -1
  49. package/dist/assets/{action-draft-BBdPH6FV.js → action-draft-R9VQXuuL.js} +1 -1
  50. package/dist/assets/{ai-page.helpers-ChgVcsV9.js → ai-page.helpers-DDnyI4U7.js} +1 -1
  51. package/dist/assets/{assignment-candidates-Bs3KAjz2.js → assignment-candidates-CuwMc1Y3.js} +1 -1
  52. package/dist/assets/{authed-media-BK50tJc4.js → authed-media-Yoylp29g.js} +1 -1
  53. package/dist/assets/{board-model-CWzkqJEj.js → board-model-D56hE08L.js} +1 -1
  54. package/dist/assets/camera-block-model-B87eQSrS.js +1 -0
  55. package/dist/assets/client-C--uWl5x.js +1120 -0
  56. package/dist/assets/{command-vocab-B3pUOKtp.js → command-vocab-CUgG-vto.js} +1 -1
  57. package/dist/assets/{device-detail-B0RHrAPi.js → device-detail-CTwVaaMw.js} +1 -1
  58. package/dist/assets/{device-integration-icon-JcMIVFtX.js → device-integration-icon-BMAR8TfE.js} +1 -1
  59. package/dist/assets/device-picker-model-BGR7et-m.js +1 -0
  60. package/dist/assets/dist-BjwNxivB.js +1 -0
  61. package/dist/assets/dist-r6ocATFb.js +1120 -0
  62. package/dist/assets/{format-iFFzavy7.js → format-BkMEj2-U.js} +1 -1
  63. package/dist/assets/{hostInit-CzaZPFle.js → hostInit-BII8RP3f.js} +1 -1
  64. package/dist/assets/i18n-BwW8nRaE.js +1 -0
  65. package/dist/assets/icons-D5Ap2eA5.js +1 -0
  66. package/dist/assets/index-Bz3Pl5tG.css +2 -0
  67. package/dist/assets/index-CCTNwAi2.js +6 -0
  68. package/dist/assets/{linked-devices-model-CuXMtCW5.js → linked-devices-model-DbsUI34s.js} +1 -1
  69. package/dist/assets/{mf-entry-bootstrap-0-02bb2c8e.js → mf-entry-bootstrap-0-83a08d0a.js} +2 -2
  70. package/dist/assets/mount-BGR7et-m.js +1 -0
  71. package/dist/assets/{notification-rule-status-zg20pl7f.js → notification-rule-status-CObTJD-i.js} +1 -1
  72. package/dist/assets/player-overlays-DKhojv7W.js +1 -0
  73. package/dist/assets/remoteEntry-BVF2kCJK.js +1 -0
  74. package/dist/assets/{circle-play-BxUrE_Qy.js → scissors-DpiKUioV.js} +1 -1
  75. package/dist/assets/settings-section-shape-DbQZZpNL.js +1 -0
  76. package/dist/assets/src-BpSavQVe.js +279 -0
  77. package/dist/assets/{sso-popup-CdVjmZ9n.js → sso-popup-BRNSJ3u5.js} +1 -1
  78. package/dist/assets/{step-inspector-model-CxSQZZiN.js → step-inspector-model-vNRpA1zj.js} +1 -1
  79. package/dist/assets/{terminal-Dgb4lrgM.js → terminal-DZ5OZpgC.js} +1 -1
  80. package/dist/assets/{use-scenes-feed-BW5wMevx.js → use-scenes-feed-B5mMm_aS.js} +1 -1
  81. package/dist/assets/{useAdminDeviceRemoval-kU8epr6n.js → useAdminDeviceRemoval-D14n1vjW.js} +1 -1
  82. package/dist/assets/useEventInvalidation-BGR7et-m.js +1 -0
  83. package/dist/assets/{useNodeUrlSelection-CfN-OrGq.js → useNodeUrlSelection-BYENLdUH.js} +1 -1
  84. package/dist/assets/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-D3AQM66O.js → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-BccQkG1p.js} +2 -2
  85. package/dist/index.html +11 -11
  86. package/dist/server/addon.js +1333 -181
  87. package/package.json +2 -2
  88. package/dist/assets/Addons-Ckr6vlsW.js +0 -5
  89. package/dist/assets/AiProfiles-DZj0TWuh.js +0 -3
  90. package/dist/assets/Archive-B0FJwta9.js +0 -1
  91. package/dist/assets/ArchiveCamera-DdovP4ro.js +0 -1
  92. package/dist/assets/BootstrapSettingsForm-CKBDm4C-.js +0 -1
  93. package/dist/assets/Build-B3CB1er7.js +0 -40
  94. package/dist/assets/CameraGrids-A_aGLmzE.js +0 -1
  95. package/dist/assets/Cluster-D2auKPXI.js +0 -1
  96. package/dist/assets/CompositionBlockEditor-DtVxeX5F.js +0 -2
  97. package/dist/assets/CompositionEditorPage-BvetDCib.js +0 -1
  98. package/dist/assets/Data-oQJyojZK.js +0 -2
  99. package/dist/assets/DeviceDetail-DPxmWhcP.js +0 -1
  100. package/dist/assets/History-jl2iyeKb.js +0 -1
  101. package/dist/assets/Identity-BpPWgRxJ.js +0 -1
  102. package/dist/assets/InstancesTable-DIKWKA5W.js +0 -1
  103. package/dist/assets/IntegrationDetail-ClVirS0M.js +0 -1
  104. package/dist/assets/Integrations-CprYyiDb.js +0 -1
  105. package/dist/assets/Library-B86tjZ0-.js +0 -1
  106. package/dist/assets/Locations-CpNbotTl.js +0 -3
  107. package/dist/assets/MyAccess-DqKyBAxI.js +0 -2
  108. package/dist/assets/Network-Csm4YFXB.js +0 -1
  109. package/dist/assets/NodeAddonsSettingsPanel-FjpwQjGM.js +0 -2
  110. package/dist/assets/Notifications-B-JLj82A.js +0 -1
  111. package/dist/assets/Pipeline-DIXgco7S.js +0 -1
  112. package/dist/assets/ServerShell-BYRylYTw.js +0 -1
  113. package/dist/assets/SessionsList-BcO2x9OZ.js +0 -2
  114. package/dist/assets/System-dsyXpTx9.js +0 -1
  115. package/dist/assets/TemplateEditorDialog-DJIaNKn3.js +0 -1
  116. package/dist/assets/Terminal-BiXbwaPr.js +0 -3
  117. package/dist/assets/client-DhfZUoXe.js +0 -1120
  118. package/dist/assets/device-picker-model-B2oUIKRS.js +0 -1
  119. package/dist/assets/dist-BNuE6NKf.js +0 -1
  120. package/dist/assets/dist-CyFeeFb8.js +0 -1120
  121. package/dist/assets/i18n-DCYaeyv_.js +0 -1
  122. package/dist/assets/icons-CXirq6Hu.js +0 -1
  123. package/dist/assets/index-CpurjMmX.css +0 -2
  124. package/dist/assets/index-DPyWa2vo.js +0 -6
  125. package/dist/assets/mount-B2oUIKRS.js +0 -1
  126. package/dist/assets/player-overlays-BF9w4QU-.js +0 -1
  127. package/dist/assets/remoteEntry-ZZWQQQTl.js +0 -1
  128. package/dist/assets/scissors-Bbq6WhOK.js +0 -1
  129. package/dist/assets/src-D9hgltMI.js +0 -279
  130. package/dist/assets/use-archive-data-D7nUbRKv.js +0 -1
  131. package/dist/assets/use-paged-list-DTJY2xpg.js +0 -1
  132. package/dist/assets/useEventInvalidation-B2oUIKRS.js +0 -1
  133. /package/dist/assets/{TerminalPanel-kHJ-D0s7.css → Terminal-kHJ-D0s7.css} +0 -0
@@ -1,6 +1,6 @@
1
1
  import path from "node:path";
2
2
  import { fileURLToPath } from "node:url";
3
- //#region ../types/dist/event-category-Dhcd0TRH.mjs
3
+ //#region ../types/dist/event-category-Hwx_JSCU.mjs
4
4
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
5
5
  EventCategory["SystemBoot"] = "system.boot";
6
6
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -522,6 +522,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
522
522
  EventCategory["RunningStarted"] = "running.started";
523
523
  /** Mirrors `runningStateCapability.events.onFinished`. */
524
524
  EventCategory["RunningFinished"] = "running.finished";
525
+ /** Mirrors `workloadCapability.events.onStarted` — a workload reached running (#585). */
526
+ EventCategory["WorkloadStarted"] = "workload.started";
527
+ /** Mirrors `workloadCapability.events.onStopped` — a running workload stopped cleanly. */
528
+ EventCategory["WorkloadStopped"] = "workload.stopped";
529
+ /** Mirrors `workloadCapability.events.onCrashed` — a workload stopped without a request. */
530
+ EventCategory["WorkloadCrashed"] = "workload.crashed";
531
+ /** Mirrors `workloadCapability.events.onRecovered` — a crashed workload runs again. */
532
+ EventCategory["WorkloadRecovered"] = "workload.recovered";
525
533
  /** Mirrors `deviceRunsCapability.events.onRunOpened` - a durable run record opened. */
526
534
  EventCategory["DeviceRunOpened"] = "device-run.opened";
527
535
  /** Mirrors `deviceRunsCapability.events.onRunClosed` - a durable run record closed. */
@@ -824,7 +832,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
824
832
  return EventCategory;
825
833
  }({});
826
834
  //#endregion
827
- //#region ../types/dist/composed-stable-id-RvQIEpqg.mjs
835
+ //#region ../types/dist/composed-stable-id-BBL71oUQ.mjs
828
836
  /**
829
837
  import { errMsg } from '@camstack/types'
830
838
  * Extract a human-readable message from an unknown error value.
@@ -956,6 +964,10 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
956
964
  * and the storage as branches of one bus. One read-only `energy-system` cap carries
957
965
  * every value; the storage is a field of it, never the `battery` cap (#513, #522). */
958
966
  DeviceType["EnergySystem"] = "energy-system";
967
+ /** Something that RUNS on a machine, or the machine itself (#585): a VM, an app
968
+ * container, an LXC, an app, or a host. The kind is the ROLE (D1033, D1056), never
969
+ * a field; one `workload` cap carries the state, the controls and the resources. */
970
+ DeviceType["Workload"] = "workload";
959
971
  return DeviceType;
960
972
  }({});
961
973
  var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
@@ -1176,6 +1188,11 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
1176
1188
  * `light` type: the provider owns the type, and a light implies brightness
1177
1189
  * or colour this relay lacks. */
1178
1190
  DeviceRole["SwitchLight"] = "switch-light";
1191
+ /** One port of a network switch that powers the device behind it (PoE): on /
1192
+ * off feeds or cuts that power. Its link is `network-link`, its draw
1193
+ * `power-meter`. Restarting the powered device through the port is that
1194
+ * device's `power-source` cap, never a reboot of the port. */
1195
+ DeviceRole["PoePort"] = "poe-port";
1179
1196
  /** Air conditioner / split unit: cooling, fan speed, louvres. */
1180
1197
  DeviceRole["ClimateAc"] = "climate-ac";
1181
1198
  /** Room thermostat: a setpoint and a room temperature. The default. */
@@ -1256,6 +1273,17 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
1256
1273
  /** Emits a pulse train (infrared or RF) on request — the `ir-transmitter`
1257
1274
  * cap. A `DeviceType.Generic` device. */
1258
1275
  DeviceRole["IrTransmitter"] = "ir-transmitter";
1276
+ /** A virtual machine on a hypervisor. */
1277
+ DeviceRole["Vm"] = "vm";
1278
+ /** An application container (Docker, Podman). */
1279
+ DeviceRole["AppContainer"] = "app-container";
1280
+ /** A system container (LXC). */
1281
+ DeviceRole["Lxc"] = "lxc";
1282
+ /** An application or service running on a host. */
1283
+ DeviceRole["App"] = "app";
1284
+ /** A machine that runs workloads or is an appliance with its own OS: a
1285
+ * server, a hypervisor, a gateway console, a CCU. */
1286
+ DeviceRole["Host"] = "host";
1259
1287
  return DeviceRole;
1260
1288
  }({});
1261
1289
  /**
@@ -1839,8 +1867,8 @@ var _emoji$1 = `^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;
1839
1867
  function emoji() {
1840
1868
  return new RegExp(_emoji$1, "u");
1841
1869
  }
1842
- var ipv4 = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/;
1843
- var ipv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/;
1870
+ var ipv4$1 = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/;
1871
+ var ipv6$1 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/;
1844
1872
  var cidrv4 = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/;
1845
1873
  var cidrv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;
1846
1874
  var base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/;
@@ -2514,12 +2542,12 @@ var $ZodISODuration = /*@__PURE__*/ $constructor("$ZodISODuration", (inst, def)
2514
2542
  $ZodStringFormat.init(inst, def);
2515
2543
  });
2516
2544
  var $ZodIPv4 = /*@__PURE__*/ $constructor("$ZodIPv4", (inst, def) => {
2517
- def.pattern ?? (def.pattern = ipv4);
2545
+ def.pattern ?? (def.pattern = ipv4$1);
2518
2546
  $ZodStringFormat.init(inst, def);
2519
2547
  inst._zod.bag.format = `ipv4`;
2520
2548
  });
2521
2549
  var $ZodIPv6 = /*@__PURE__*/ $constructor("$ZodIPv6", (inst, def) => {
2522
- def.pattern ?? (def.pattern = ipv6);
2550
+ def.pattern ?? (def.pattern = ipv6$1);
2523
2551
  $ZodStringFormat.init(inst, def);
2524
2552
  inst._zod.bag.format = `ipv6`;
2525
2553
  inst._zod.check = (payload) => {
@@ -5302,10 +5330,16 @@ var ZodIPv4 = /*@__PURE__*/ $constructor("ZodIPv4", (inst, def) => {
5302
5330
  $ZodIPv4.init(inst, def);
5303
5331
  ZodStringFormat.init(inst, def);
5304
5332
  });
5333
+ function ipv4(params) {
5334
+ return /* @__PURE__ */ _ipv4(ZodIPv4, params);
5335
+ }
5305
5336
  var ZodIPv6 = /*@__PURE__*/ $constructor("ZodIPv6", (inst, def) => {
5306
5337
  $ZodIPv6.init(inst, def);
5307
5338
  ZodStringFormat.init(inst, def);
5308
5339
  });
5340
+ function ipv6(params) {
5341
+ return /* @__PURE__ */ _ipv6(ZodIPv6, params);
5342
+ }
5309
5343
  var ZodCIDRv4 = /*@__PURE__*/ $constructor("ZodCIDRv4", (inst, def) => {
5310
5344
  $ZodCIDRv4.init(inst, def);
5311
5345
  ZodStringFormat.init(inst, def);
@@ -5943,7 +5977,7 @@ var ZodIssueCode = {
5943
5977
  var ZodFirstPartyTypeKind;
5944
5978
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5945
5979
  //#endregion
5946
- //#region ../types/dist/sleep-Ch7Q7UtE.mjs
5980
+ //#region ../types/dist/sleep-D6Pih0Qt.mjs
5947
5981
  /**
5948
5982
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5949
5983
  * window to float samples (D455).
@@ -9892,6 +9926,10 @@ var CAP_VOCABULARY_BY_NAME = {
9892
9926
  effect: {
9893
9927
  field: "on",
9894
9928
  value: true
9929
+ },
9930
+ offeredWhen: {
9931
+ method: "getOptions",
9932
+ field: "supportsSetState"
9895
9933
  }
9896
9934
  },
9897
9935
  {
@@ -9910,6 +9948,10 @@ var CAP_VOCABULARY_BY_NAME = {
9910
9948
  effect: {
9911
9949
  field: "on",
9912
9950
  value: false
9951
+ },
9952
+ offeredWhen: {
9953
+ method: "getOptions",
9954
+ field: "supportsSetState"
9913
9955
  }
9914
9956
  },
9915
9957
  {
@@ -9923,9 +9965,14 @@ var CAP_VOCABULARY_BY_NAME = {
9923
9965
  en: "Toggle {device}",
9924
9966
  it: "Commuta {device}"
9925
9967
  },
9926
- icon: "toggle-right"
9968
+ icon: "toggle-right",
9969
+ offeredWhen: {
9970
+ method: "getOptions",
9971
+ field: "supportsSetState"
9972
+ }
9927
9973
  }
9928
9974
  ],
9975
+ notOperatorFacing: { powerCycle: "a power cycle is the forced restart of the device the switch powers (power-source), never a step of its own" },
9929
9976
  state: [{
9930
9977
  kind: "boolean",
9931
9978
  field: "on",
@@ -10184,6 +10231,47 @@ var CAP_VOCABULARY_BY_NAME = {
10184
10231
  "switch.off": { icon: "plug" }
10185
10232
  },
10186
10233
  state: { on: { icon: "plug-zap" } }
10234
+ },
10235
+ [DeviceRole.PoePort]: {
10236
+ actions: {
10237
+ "switch.on": {
10238
+ label: {
10239
+ en: "Power on",
10240
+ it: "Alimenta"
10241
+ },
10242
+ phrase: {
10243
+ en: "Power on {device}",
10244
+ it: "Alimenta {device}"
10245
+ },
10246
+ icon: "plug-zap"
10247
+ },
10248
+ "switch.off": {
10249
+ label: {
10250
+ en: "Power off",
10251
+ it: "Togli alimentazione"
10252
+ },
10253
+ phrase: {
10254
+ en: "Power off {device}",
10255
+ it: "Togli alimentazione a {device}"
10256
+ },
10257
+ icon: "unplug"
10258
+ }
10259
+ },
10260
+ state: { on: {
10261
+ label: {
10262
+ en: "Powered",
10263
+ it: "Alimentata"
10264
+ },
10265
+ whenTrue: {
10266
+ en: "When {device} is powered",
10267
+ it: "Quando {device} viene alimentata"
10268
+ },
10269
+ whenFalse: {
10270
+ en: "When {device} loses power",
10271
+ it: "Quando {device} perde l’alimentazione"
10272
+ },
10273
+ icon: "plug-zap"
10274
+ } }
10187
10275
  }
10188
10276
  }
10189
10277
  }
@@ -10903,7 +10991,11 @@ var CAP_VOCABULARY_BY_NAME = {
10903
10991
  en: "Power on {device}",
10904
10992
  it: "Dai corrente a {device}"
10905
10993
  },
10906
- icon: "power"
10994
+ icon: "power",
10995
+ offeredWhen: {
10996
+ method: "getStatus",
10997
+ field: "switchSettable"
10998
+ }
10907
10999
  },
10908
11000
  {
10909
11001
  id: "powerSource.off",
@@ -10916,7 +11008,11 @@ var CAP_VOCABULARY_BY_NAME = {
10916
11008
  en: "Cut the power of {device}",
10917
11009
  it: "Togli la corrente a {device}"
10918
11010
  },
10919
- icon: "power-off"
11011
+ icon: "power-off",
11012
+ offeredWhen: {
11013
+ method: "getStatus",
11014
+ field: "switchSettable"
11015
+ }
10920
11016
  },
10921
11017
  {
10922
11018
  id: "powerSource.forceRestart",
@@ -12686,37 +12782,66 @@ var CAP_VOCABULARY_BY_NAME = {
12686
12782
  en: "Siren",
12687
12783
  it: "Sirena"
12688
12784
  },
12689
- actions: [{
12690
- id: "siren.trigger",
12691
- method: "trigger",
12692
- label: {
12693
- en: "Sound the siren",
12694
- it: "Fai suonare la sirena"
12695
- },
12696
- phrase: {
12697
- en: "Sound {device}",
12698
- it: "Fai suonare {device}"
12699
- },
12700
- icon: "siren",
12701
- args: {}
12702
- }, {
12703
- id: "siren.stop",
12704
- method: "stop",
12705
- label: {
12706
- en: "Silence the siren",
12707
- it: "Zittisci la sirena"
12785
+ actions: [
12786
+ {
12787
+ id: "siren.trigger",
12788
+ method: "trigger",
12789
+ label: {
12790
+ en: "Sound the siren",
12791
+ it: "Fai suonare la sirena"
12792
+ },
12793
+ phrase: {
12794
+ en: "Sound {device}",
12795
+ it: "Fai suonare {device}"
12796
+ },
12797
+ icon: "siren",
12798
+ args: {}
12708
12799
  },
12709
- phrase: {
12710
- en: "Silence {device}",
12711
- it: "Zittisci {device}"
12800
+ {
12801
+ id: "siren.triggerPlays",
12802
+ method: "trigger",
12803
+ label: {
12804
+ en: "Sound the siren N times",
12805
+ it: "Fai suonare la sirena N volte"
12806
+ },
12807
+ phrase: {
12808
+ en: "Sound {device} {plays} times",
12809
+ it: "Fai suonare {device} {plays} volte"
12810
+ },
12811
+ icon: "siren",
12812
+ openArgs: [{
12813
+ key: "plays",
12814
+ label: {
12815
+ en: "Plays",
12816
+ it: "Riproduzioni"
12817
+ },
12818
+ offer: {
12819
+ kind: "dynamic",
12820
+ from: "method",
12821
+ method: "getPlayChoices",
12822
+ valueKind: "number"
12823
+ }
12824
+ }]
12712
12825
  },
12713
- icon: "siren",
12714
- args: {},
12715
- effect: {
12716
- field: "active",
12717
- value: false
12826
+ {
12827
+ id: "siren.stop",
12828
+ method: "stop",
12829
+ label: {
12830
+ en: "Silence the siren",
12831
+ it: "Zittisci la sirena"
12832
+ },
12833
+ phrase: {
12834
+ en: "Silence {device}",
12835
+ it: "Zittisci {device}"
12836
+ },
12837
+ icon: "siren",
12838
+ args: {},
12839
+ effect: {
12840
+ field: "active",
12841
+ value: false
12842
+ }
12718
12843
  }
12719
- }],
12844
+ ],
12720
12845
  state: [{
12721
12846
  kind: "boolean",
12722
12847
  field: "active",
@@ -15311,6 +15436,374 @@ var CAP_VOCABULARY_BY_NAME = {
15311
15436
  icon: "loader"
15312
15437
  }]
15313
15438
  },
15439
+ "workload": {
15440
+ scope: "device",
15441
+ noun: {
15442
+ en: "Workload",
15443
+ it: "Carico di lavoro"
15444
+ },
15445
+ actions: [
15446
+ {
15447
+ id: "workload.start",
15448
+ method: "start",
15449
+ label: {
15450
+ en: "Start",
15451
+ it: "Avvia"
15452
+ },
15453
+ phrase: {
15454
+ en: "Start {device}",
15455
+ it: "Avvia {device}"
15456
+ },
15457
+ icon: "play",
15458
+ effect: {
15459
+ field: "state",
15460
+ value: "running"
15461
+ }
15462
+ },
15463
+ {
15464
+ id: "workload.stop",
15465
+ method: "stop",
15466
+ label: {
15467
+ en: "Stop",
15468
+ it: "Arresta"
15469
+ },
15470
+ phrase: {
15471
+ en: "Stop {device}",
15472
+ it: "Arresta {device}"
15473
+ },
15474
+ icon: "square",
15475
+ effect: {
15476
+ field: "state",
15477
+ value: "stopped"
15478
+ }
15479
+ },
15480
+ {
15481
+ id: "workload.restart",
15482
+ method: "restart",
15483
+ label: {
15484
+ en: "Restart",
15485
+ it: "Riavvia"
15486
+ },
15487
+ phrase: {
15488
+ en: "Restart {device}",
15489
+ it: "Riavvia {device}"
15490
+ },
15491
+ icon: "rotate-ccw"
15492
+ },
15493
+ {
15494
+ id: "workload.pause",
15495
+ method: "pause",
15496
+ label: {
15497
+ en: "Pause",
15498
+ it: "Metti in pausa"
15499
+ },
15500
+ phrase: {
15501
+ en: "Pause {device}",
15502
+ it: "Metti in pausa {device}"
15503
+ },
15504
+ icon: "pause",
15505
+ effect: {
15506
+ field: "state",
15507
+ value: "paused"
15508
+ }
15509
+ },
15510
+ {
15511
+ id: "workload.resume",
15512
+ method: "resume",
15513
+ label: {
15514
+ en: "Resume",
15515
+ it: "Riprendi"
15516
+ },
15517
+ phrase: {
15518
+ en: "Resume {device}",
15519
+ it: "Riprendi {device}"
15520
+ },
15521
+ icon: "circle-play",
15522
+ effect: {
15523
+ field: "state",
15524
+ value: "running"
15525
+ }
15526
+ },
15527
+ {
15528
+ id: "workload.forceStop",
15529
+ method: "forceStop",
15530
+ label: {
15531
+ en: "Force stop",
15532
+ it: "Arresto forzato"
15533
+ },
15534
+ phrase: {
15535
+ en: "Force {device} to stop",
15536
+ it: "Forza l’arresto di {device}"
15537
+ },
15538
+ icon: "octagon-x",
15539
+ effect: {
15540
+ field: "state",
15541
+ value: "stopped"
15542
+ }
15543
+ }
15544
+ ],
15545
+ state: [
15546
+ {
15547
+ kind: "enum",
15548
+ field: "state",
15549
+ label: {
15550
+ en: "State",
15551
+ it: "Stato"
15552
+ },
15553
+ values: [
15554
+ {
15555
+ value: "running",
15556
+ label: {
15557
+ en: "Running",
15558
+ it: "In esecuzione"
15559
+ },
15560
+ phrase: {
15561
+ en: "When {device} is running",
15562
+ it: "Quando {device} è in esecuzione"
15563
+ }
15564
+ },
15565
+ {
15566
+ value: "paused",
15567
+ label: {
15568
+ en: "Paused",
15569
+ it: "In pausa"
15570
+ }
15571
+ },
15572
+ {
15573
+ value: "stopped",
15574
+ label: {
15575
+ en: "Stopped",
15576
+ it: "Arrestato"
15577
+ },
15578
+ phrase: {
15579
+ en: "When {device} is stopped",
15580
+ it: "Quando {device} è arrestato"
15581
+ }
15582
+ },
15583
+ {
15584
+ value: "starting",
15585
+ label: {
15586
+ en: "Starting",
15587
+ it: "In avvio"
15588
+ }
15589
+ },
15590
+ {
15591
+ value: "stopping",
15592
+ label: {
15593
+ en: "Stopping",
15594
+ it: "In arresto"
15595
+ }
15596
+ },
15597
+ {
15598
+ value: "crashed",
15599
+ label: {
15600
+ en: "Crashed",
15601
+ it: "Arrestato in modo anomalo"
15602
+ },
15603
+ phrase: {
15604
+ en: "When {device} has crashed",
15605
+ it: "Quando {device} è arrestato in modo anomalo"
15606
+ }
15607
+ }
15608
+ ],
15609
+ icon: "activity"
15610
+ },
15611
+ {
15612
+ kind: "numeric",
15613
+ field: "resources.cpuPercent",
15614
+ quantity: {
15615
+ en: "the CPU use",
15616
+ it: "l'uso della CPU"
15617
+ },
15618
+ label: {
15619
+ en: "CPU",
15620
+ it: "CPU"
15621
+ },
15622
+ unit: "%",
15623
+ icon: "cpu"
15624
+ },
15625
+ {
15626
+ kind: "numeric",
15627
+ field: "resources.memoryPercent",
15628
+ quantity: {
15629
+ en: "the memory use",
15630
+ it: "l'uso della memoria"
15631
+ },
15632
+ label: {
15633
+ en: "Memory",
15634
+ it: "Memoria"
15635
+ },
15636
+ unit: "%",
15637
+ icon: "memory-stick"
15638
+ },
15639
+ {
15640
+ kind: "numeric",
15641
+ field: "resources.temperature",
15642
+ quantity: {
15643
+ en: "the temperature",
15644
+ it: "la temperatura"
15645
+ },
15646
+ label: {
15647
+ en: "Temperature",
15648
+ it: "Temperatura"
15649
+ },
15650
+ unit: "°C",
15651
+ icon: "thermometer"
15652
+ }
15653
+ ],
15654
+ events: {
15655
+ onStarted: {
15656
+ category: EventCategory.WorkloadStarted,
15657
+ label: {
15658
+ en: "Started",
15659
+ it: "Avviato"
15660
+ },
15661
+ phrase: {
15662
+ en: "When {device} starts",
15663
+ it: "Quando {device} si avvia"
15664
+ },
15665
+ icon: "play"
15666
+ },
15667
+ onStopped: {
15668
+ category: EventCategory.WorkloadStopped,
15669
+ label: {
15670
+ en: "Stopped",
15671
+ it: "Arrestato"
15672
+ },
15673
+ phrase: {
15674
+ en: "When {device} stops",
15675
+ it: "Quando {device} si arresta"
15676
+ },
15677
+ icon: "square"
15678
+ },
15679
+ onCrashed: {
15680
+ category: EventCategory.WorkloadCrashed,
15681
+ label: {
15682
+ en: "Crashed",
15683
+ it: "Arrestato in modo anomalo"
15684
+ },
15685
+ phrase: {
15686
+ en: "When {device} stops without being asked",
15687
+ it: "Quando {device} si arresta senza che sia stato richiesto"
15688
+ },
15689
+ icon: "triangle-alert"
15690
+ },
15691
+ onRecovered: {
15692
+ category: EventCategory.WorkloadRecovered,
15693
+ label: {
15694
+ en: "Recovered",
15695
+ it: "Ripristinato"
15696
+ },
15697
+ phrase: {
15698
+ en: "When {device} runs again after a crash",
15699
+ it: "Quando {device} riparte dopo un arresto anomalo"
15700
+ },
15701
+ icon: "heart-pulse"
15702
+ }
15703
+ },
15704
+ overrides: { byRole: {
15705
+ [DeviceRole.Vm]: {
15706
+ actions: { "workload.start": { icon: "monitor" } },
15707
+ state: { state: { icon: "monitor" } }
15708
+ },
15709
+ [DeviceRole.AppContainer]: {
15710
+ actions: { "workload.start": { icon: "container" } },
15711
+ state: { state: { icon: "container" } }
15712
+ },
15713
+ [DeviceRole.Lxc]: {
15714
+ actions: { "workload.start": { icon: "box" } },
15715
+ state: { state: { icon: "box" } }
15716
+ },
15717
+ [DeviceRole.App]: {
15718
+ actions: { "workload.start": { icon: "app-window" } },
15719
+ state: { state: { icon: "app-window" } }
15720
+ },
15721
+ [DeviceRole.Host]: {
15722
+ actions: {
15723
+ "workload.start": {
15724
+ label: {
15725
+ en: "Power on",
15726
+ it: "Accendi"
15727
+ },
15728
+ phrase: {
15729
+ en: "Power on {device}",
15730
+ it: "Accendi {device}"
15731
+ },
15732
+ icon: "power"
15733
+ },
15734
+ "workload.stop": {
15735
+ label: {
15736
+ en: "Shut down",
15737
+ it: "Spegni"
15738
+ },
15739
+ phrase: {
15740
+ en: "Shut down {device}",
15741
+ it: "Spegni {device}"
15742
+ },
15743
+ icon: "power-off"
15744
+ },
15745
+ "workload.restart": {
15746
+ label: {
15747
+ en: "Reboot",
15748
+ it: "Riavvia"
15749
+ },
15750
+ phrase: {
15751
+ en: "Reboot {device}",
15752
+ it: "Riavvia {device}"
15753
+ },
15754
+ icon: "refresh-cw"
15755
+ }
15756
+ },
15757
+ state: { state: { icon: "server" } },
15758
+ events: {
15759
+ onStarted: {
15760
+ label: {
15761
+ en: "Came online",
15762
+ it: "Tornato in linea"
15763
+ },
15764
+ phrase: {
15765
+ en: "When {device} comes online",
15766
+ it: "Quando {device} torna in linea"
15767
+ },
15768
+ icon: "server"
15769
+ },
15770
+ onStopped: {
15771
+ label: {
15772
+ en: "Shut down",
15773
+ it: "Spento"
15774
+ },
15775
+ phrase: {
15776
+ en: "When {device} shuts down",
15777
+ it: "Quando {device} si spegne"
15778
+ },
15779
+ icon: "server-off"
15780
+ },
15781
+ onCrashed: {
15782
+ label: {
15783
+ en: "Went down",
15784
+ it: "Caduto"
15785
+ },
15786
+ phrase: {
15787
+ en: "When {device} goes down unexpectedly",
15788
+ it: "Quando {device} cade inaspettatamente"
15789
+ },
15790
+ icon: "server-crash"
15791
+ },
15792
+ onRecovered: {
15793
+ label: {
15794
+ en: "Came online",
15795
+ it: "Tornato in linea"
15796
+ },
15797
+ phrase: {
15798
+ en: "When {device} comes back online after going down",
15799
+ it: "Quando {device} torna in linea dopo essere caduto"
15800
+ },
15801
+ icon: "server"
15802
+ }
15803
+ }
15804
+ }
15805
+ } }
15806
+ },
15314
15807
  "accessories": {
15315
15808
  scope: "device",
15316
15809
  noun: {
@@ -18978,6 +19471,15 @@ var PipelineStepInputSchema = lazy(() => object({
18978
19471
  }));
18979
19472
  /** Typed bridge to the recursive `FrameResult` graph; validation is structural. */
18980
19473
  var PipelineRunResultBridge = custom();
19474
+ /**
19475
+ * Whether a switch can be set (D1058), schema-free so the addon runner can import it from
19476
+ * `@camstack/types/addon` without loading the capability schema graph (D28).
19477
+ */
19478
+ /** The read that decides whether a switch is offered on/off (`offeredWhen` of its actions). */
19479
+ var SWITCH_SETTABLE_GATE = {
19480
+ method: "getOptions",
19481
+ field: "supportsSetState"
19482
+ };
18981
19483
  var StaticDirOutputSchema = object({ staticDir: string() });
18982
19484
  var VersionOutputSchema = object({ version: string() });
18983
19485
  method(_void(), StaticDirOutputSchema, { auth: "admin" }), method(_void(), VersionOutputSchema, { auth: "admin" }), NOT_A_DEVICE.UI_PLUMBING;
@@ -19191,6 +19693,7 @@ var CAP_NAMES = Object.freeze([
19191
19693
  "weather",
19192
19694
  "weather-station",
19193
19695
  "webrtc-session",
19696
+ "workload",
19194
19697
  "zone-analytics",
19195
19698
  "zone-rules",
19196
19699
  "zones"
@@ -20493,6 +20996,14 @@ Object.freeze({
20493
20996
  "path": "ssid",
20494
20997
  "valueType": "string"
20495
20998
  },
20999
+ {
21000
+ "path": "speedKbps",
21001
+ "valueType": "number"
21002
+ },
21003
+ {
21004
+ "path": "linkUp",
21005
+ "valueType": "boolean"
21006
+ },
20496
21007
  {
20497
21008
  "path": "lastUpdated",
20498
21009
  "valueType": "number"
@@ -20889,6 +21400,14 @@ Object.freeze({
20889
21400
  "path": "durationSeconds",
20890
21401
  "valueType": "number"
20891
21402
  },
21403
+ {
21404
+ "path": "plays",
21405
+ "valueType": "number"
21406
+ },
21407
+ {
21408
+ "path": "activeUntilEstimated",
21409
+ "valueType": "boolean"
21410
+ },
20892
21411
  {
20893
21412
  "path": "lastTriggeredAt",
20894
21413
  "valueType": "number"
@@ -21291,6 +21810,92 @@ Object.freeze({
21291
21810
  "valueType": "number"
21292
21811
  }
21293
21812
  ],
21813
+ "workload": [
21814
+ {
21815
+ "path": "state",
21816
+ "valueType": "enum",
21817
+ "enumValues": [
21818
+ "running",
21819
+ "paused",
21820
+ "stopped",
21821
+ "starting",
21822
+ "stopping",
21823
+ "crashed"
21824
+ ]
21825
+ },
21826
+ {
21827
+ "path": "since",
21828
+ "valueType": "number"
21829
+ },
21830
+ {
21831
+ "path": "hostDeviceId",
21832
+ "valueType": "number"
21833
+ },
21834
+ {
21835
+ "path": "image",
21836
+ "valueType": "string"
21837
+ },
21838
+ {
21839
+ "path": "os",
21840
+ "valueType": "string"
21841
+ },
21842
+ {
21843
+ "path": "version",
21844
+ "valueType": "string"
21845
+ },
21846
+ {
21847
+ "path": "autostart",
21848
+ "valueType": "boolean"
21849
+ },
21850
+ {
21851
+ "path": "resources.cpuPercent",
21852
+ "valueType": "number"
21853
+ },
21854
+ {
21855
+ "path": "resources.memoryUsedBytes",
21856
+ "valueType": "number"
21857
+ },
21858
+ {
21859
+ "path": "resources.memoryPercent",
21860
+ "valueType": "number"
21861
+ },
21862
+ {
21863
+ "path": "resources.memoryLimitBytes",
21864
+ "valueType": "number"
21865
+ },
21866
+ {
21867
+ "path": "resources.vcpus",
21868
+ "valueType": "number"
21869
+ },
21870
+ {
21871
+ "path": "resources.diskUsedBytes",
21872
+ "valueType": "number"
21873
+ },
21874
+ {
21875
+ "path": "resources.diskTotalBytes",
21876
+ "valueType": "number"
21877
+ },
21878
+ {
21879
+ "path": "resources.netRxKbps",
21880
+ "valueType": "number"
21881
+ },
21882
+ {
21883
+ "path": "resources.netTxKbps",
21884
+ "valueType": "number"
21885
+ },
21886
+ {
21887
+ "path": "resources.load1",
21888
+ "valueType": "number"
21889
+ },
21890
+ {
21891
+ "path": "resources.temperature",
21892
+ "valueType": "number"
21893
+ },
21894
+ {
21895
+ "path": "updateAvailable",
21896
+ "valueType": "boolean"
21897
+ }
21898
+ ],
21294
21899
  "zone-analytics": [
21295
21900
  {
21296
21901
  "path": "ts",
@@ -21383,7 +21988,7 @@ Object.freeze({
21383
21988
  }
21384
21989
  });
21385
21990
  //#endregion
21386
- //#region ../types/dist/implemented-methods-C5FMXLGP.mjs
21991
+ //#region ../types/dist/implemented-methods-u7ddjc-_.mjs
21387
21992
  /**
21388
21993
  * The ffmpeg build every CamStack node downloads, per platform and arch.
21389
21994
  *
@@ -22304,63 +22909,99 @@ var HelperMemberSchema = object({
22304
22909
  cap: string().min(1),
22305
22910
  fieldPath: string().min(1)
22306
22911
  });
22912
+ /** A group, a statistic, or an integral (D944). The composer runs all three. */
22913
+ var GroupHelperSpecSchema = object({
22914
+ kind: literal("group"),
22915
+ templateId: GroupTemplateIdSchema,
22916
+ aggregate: AggregateReducerSchema,
22917
+ members: array(HelperMemberSchema).min(1).max(64),
22918
+ /** Actuator groups only. Readings leave this unset. */
22919
+ active: ActiveCriterionSchema.optional()
22920
+ });
22921
+ var statisticHelperObject = object({
22922
+ kind: literal("statistic"),
22923
+ stat: _enum(STATISTIC_STATS),
22924
+ window: StatisticWindowSchema,
22925
+ source: HelperMemberSchema
22926
+ });
22927
+ var integralHelperObject = object({
22928
+ kind: literal("integral"),
22929
+ reset: _enum(RESET_PERIODS),
22930
+ output: _enum(["energy", "meter"]),
22931
+ source: HelperMemberSchema
22932
+ });
22933
+ var thresholdHelperObject = object({
22934
+ kind: literal("threshold"),
22935
+ source: HelperMemberSchema,
22936
+ high: number$1(),
22937
+ low: number$1(),
22938
+ onForMs: number$1().int().nonnegative(),
22939
+ offForMs: number$1().int().nonnegative()
22940
+ });
22941
+ var arithmeticHelperObject = object({
22942
+ kind: literal("arithmetic"),
22943
+ op: _enum([
22944
+ "sum",
22945
+ "difference",
22946
+ "ratio"
22947
+ ]),
22948
+ inputs: array(HelperMemberSchema).min(2).max(64)
22949
+ });
22950
+ var expressionHelperObject = object({
22951
+ kind: literal("expression"),
22952
+ expr: string().min(1),
22953
+ inputs: array(object({
22954
+ name: string().min(1),
22955
+ member: HelperMemberSchema
22956
+ })).min(1).max(64),
22957
+ output: _enum(["number", "boolean"])
22958
+ });
22959
+ var derivativeHelperObject = object({
22960
+ kind: literal("derivative"),
22961
+ window: RollingWindowSchema,
22962
+ per: _enum([
22963
+ "second",
22964
+ "minute",
22965
+ "hour"
22966
+ ]),
22967
+ source: HelperMemberSchema
22968
+ });
22969
+ /** The stream profiles a camera grid can publish. */
22970
+ var GRID_PROFILES = [
22971
+ "high",
22972
+ "mid",
22973
+ "low"
22974
+ ];
22975
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
22976
+ var GridRectSchema = object({
22977
+ x: number$1().min(0).max(1),
22978
+ y: number$1().min(0).max(1),
22979
+ width: number$1().gt(0).max(1),
22980
+ height: number$1().gt(0).max(1)
22981
+ });
22982
+ var GridCellSpecSchema = object({
22983
+ source: CompositionSourceRefSchema,
22984
+ region: GridRectSchema,
22985
+ cell: GridRectSchema
22986
+ });
22307
22987
  var HelperSpecSchema = discriminatedUnion("kind", [
22308
22988
  object({
22309
- kind: literal("group"),
22310
- templateId: GroupTemplateIdSchema,
22311
- aggregate: AggregateReducerSchema,
22312
- members: array(HelperMemberSchema).min(1).max(64),
22313
- /** Actuator groups only. Readings leave this unset. */
22314
- active: ActiveCriterionSchema.optional()
22315
- }),
22316
- object({
22317
- kind: literal("statistic"),
22318
- stat: _enum(STATISTIC_STATS),
22319
- window: StatisticWindowSchema,
22320
- source: HelperMemberSchema
22321
- }),
22322
- object({
22323
- kind: literal("integral"),
22324
- reset: _enum(RESET_PERIODS),
22325
- output: _enum(["energy", "meter"]),
22326
- source: HelperMemberSchema
22327
- }),
22328
- object({
22329
- kind: literal("threshold"),
22330
- source: HelperMemberSchema,
22331
- high: number$1(),
22332
- low: number$1(),
22333
- onForMs: number$1().int().nonnegative(),
22334
- offForMs: number$1().int().nonnegative()
22989
+ kind: literal("grid"),
22990
+ fps: number$1().int().min(1).max(60),
22991
+ publishedProfiles: array(_enum(GRID_PROFILES)).max(3),
22992
+ cells: array(GridCellSpecSchema).max(16)
22335
22993
  }),
22336
22994
  object({
22337
- kind: literal("arithmetic"),
22338
- op: _enum([
22339
- "sum",
22340
- "difference",
22341
- "ratio"
22342
- ]),
22343
- inputs: array(HelperMemberSchema).min(2).max(64)
22995
+ kind: literal("terminal"),
22996
+ terminalId: string().uuid()
22344
22997
  }),
22345
- object({
22346
- kind: literal("expression"),
22347
- expr: string().min(1),
22348
- inputs: array(object({
22349
- name: string().min(1),
22350
- member: HelperMemberSchema
22351
- })).min(1).max(64),
22352
- output: _enum(["number", "boolean"])
22353
- }),
22354
- object({
22355
- kind: literal("derivative"),
22356
- window: RollingWindowSchema,
22357
- per: _enum([
22358
- "second",
22359
- "minute",
22360
- "hour"
22361
- ]),
22362
- source: HelperMemberSchema
22363
- })
22998
+ GroupHelperSpecSchema,
22999
+ statisticHelperObject,
23000
+ integralHelperObject,
23001
+ thresholdHelperObject,
23002
+ arithmeticHelperObject,
23003
+ expressionHelperObject,
23004
+ derivativeHelperObject
22364
23005
  ]);
22365
23006
  /** Longest snippet a `code` source may carry (slice 4). */
22366
23007
  var MAX_COMPOSITION_CODE_LENGTH = 2e4;
@@ -52955,9 +53596,10 @@ var GridProfileOfferSchema = object({
52955
53596
  published: boolean()
52956
53597
  });
52957
53598
  var GridLayoutViewSchema = object({
52958
- /** The persisted grid row this camera was declared from. */
52959
- instanceId: string(),
53599
+ /** The grid block (planning#580) whose camera this is. */
53600
+ blockId: string(),
52960
53601
  deviceId: number$1().int().nonnegative(),
53602
+ /** The device row's name — the only name a grid has; it is renamed on the block or the device. */
52961
53603
  name: string(),
52962
53604
  /**
52963
53605
  * NO canvas size. A grid's resolution is not authored: each profile derives
@@ -52973,7 +53615,6 @@ var GridLayoutViewSchema = object({
52973
53615
  });
52974
53616
  var GridLayoutPatchSchema = object({
52975
53617
  deviceId: number$1().int().nonnegative(),
52976
- name: string().min(1).max(160).optional(),
52977
53618
  fps: number$1().int().min(1).max(60).optional(),
52978
53619
  /** Which profiles to publish. See `GridProfileOffer.published`. */
52979
53620
  publishedProfiles: array(_enum([
@@ -55851,7 +56492,7 @@ DeviceType.MediaPlayer, optionalMethod(deviceOnly, _void(), {
55851
56492
  }]
55852
56493
  }]
55853
56494
  });
55854
- DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Climate, DeviceType.EventEmitter, DeviceType.Climate, DeviceType.Climate, DeviceType.Camera, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.WeatherStation, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway, DeviceType.HeatPump, DeviceType.EnergySystem, DeviceType.Camera, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Lock, DeviceType.Camera, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Gateway, DeviceType.Camera, DeviceType.Sensor, DeviceType.MediaPlayer, DeviceType.Vacuum, DeviceType.Generic, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.PetFountain, DeviceType.Fan, DeviceType.Humidifier, DeviceType.Climate, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.PetFeeder, DeviceType.MediaPlayer, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation;
56495
+ DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Climate, DeviceType.EventEmitter, DeviceType.Climate, DeviceType.Climate, DeviceType.Camera, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.WeatherStation, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway, DeviceType.HeatPump, DeviceType.EnergySystem, DeviceType.Workload, DeviceType.Camera, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Lock, DeviceType.Camera, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Gateway, DeviceType.Camera, DeviceType.Sensor, DeviceType.MediaPlayer, DeviceType.Vacuum, DeviceType.Generic, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.PetFountain, DeviceType.Fan, DeviceType.Humidifier, DeviceType.Climate, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.PetFeeder, DeviceType.MediaPlayer, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation;
55855
56496
  var NUMBER = {
55856
56497
  kind: "fixed",
55857
56498
  result: ["number"]
@@ -56301,7 +56942,7 @@ new Map(GROUP_TEMPLATES.map((template) => [template.id, template]));
56301
56942
  DeviceType.Camera;
56302
56943
  /**
56303
56944
  * The series a device card trends, per cap (`history.primary` + `history.priority`):
56304
- * 6 caps. The card shows the primary of the enabled cap with the highest priority.
56945
+ * 7 caps. The card shows the primary of the enabled cap with the highest priority.
56305
56946
  */
56306
56947
  var HISTORY_PRIMARY = {
56307
56948
  "climate-control": {
@@ -56327,6 +56968,10 @@ var HISTORY_PRIMARY = {
56327
56968
  "weather-station": {
56328
56969
  field: "temperature",
56329
56970
  priority: 60
56971
+ },
56972
+ "workload": {
56973
+ field: "resources.cpuPercent",
56974
+ priority: 40
56330
56975
  }
56331
56976
  };
56332
56977
  DeviceFeature.LightColorRgb, DeviceFeature.LightColorHsv, DeviceFeature.LightColorMired;
@@ -56337,6 +56982,8 @@ var PowerSourceRefusalReasonSchema = _enum([
56337
56982
  "switch-unknown",
56338
56983
  "restart-in-progress",
56339
56984
  "switch-call-failed",
56985
+ "switch-options-unreadable",
56986
+ "not-settable",
56340
56987
  "switch-is-actuator"
56341
56988
  ]);
56342
56989
  var PowerSourceActionResultSchema = discriminatedUnion("accepted", [object({ accepted: literal(true) }), object({
@@ -56353,6 +57000,14 @@ var PowerSourceInfoSchema = object({
56353
57000
  /** The switch's on/off state, or null when it is unknown. Never false for unknown (D393). */
56354
57001
  switchOn: boolean().nullable(),
56355
57002
  switchOnline: boolean().nullable(),
57003
+ /**
57004
+ * Whether the linked switch can be set (`switch.getOptions().supportsSetState`; a provider
57005
+ * without the method is a plain switch, `true`). `null` = not known: no link, the switch is
57006
+ * missing, or the read FAILED. Absent = a provider that predates the field. Only `false`
57007
+ * withdraws power on / off (`offeredWhen` of `powerSource.on` / `.off`, the device hero) —
57008
+ * unknown keeps them (D315, D1058).
57009
+ */
57010
+ switchSettable: boolean().nullable().optional(),
56356
57011
  restartInProgress: boolean(),
56357
57012
  offSeconds: number$1().int()
56358
57013
  });
@@ -56364,6 +57019,11 @@ object({
56364
57019
  });
56365
57020
  DeviceType.Gateway, DeviceType.Camera, DeviceType.Sensor, DeviceType.MediaPlayer, DeviceType.Vacuum, DeviceType.Generic, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.PetFountain, DeviceType.Fan, DeviceType.Humidifier, DeviceType.Climate, DeviceType.WaterHeater;
56366
57021
  var deviceInput$2 = object({ deviceId: number$1().int().nonnegative() });
57022
+ /** The read that decides whether power on / off are offered (`offeredWhen`, D1058). */
57023
+ var POWER_SOURCE_SETTABLE_GATE = {
57024
+ method: "getStatus",
57025
+ field: "switchSettable"
57026
+ };
56367
57027
  systemMethod(deviceInput$2, PowerSourceInfoSchema, { auth: "protected" }), systemMethod(deviceInput$2, PowerSourceActionResultSchema, {
56368
57028
  kind: "mutation",
56369
57029
  auth: "protected",
@@ -56371,7 +57031,8 @@ systemMethod(deviceInput$2, PowerSourceInfoSchema, { auth: "protected" }), syste
56371
57031
  id: "powerSource.on",
56372
57032
  label: t("Power on", "Dai corrente"),
56373
57033
  phrase: t("Power on {device}", "Dai corrente a {device}"),
56374
- icon: "power"
57034
+ icon: "power",
57035
+ offeredWhen: POWER_SOURCE_SETTABLE_GATE
56375
57036
  }]
56376
57037
  }), systemMethod(deviceInput$2, PowerSourceActionResultSchema, {
56377
57038
  kind: "mutation",
@@ -56380,7 +57041,8 @@ systemMethod(deviceInput$2, PowerSourceInfoSchema, { auth: "protected" }), syste
56380
57041
  id: "powerSource.off",
56381
57042
  label: t("Power off", "Togli corrente"),
56382
57043
  phrase: t("Cut the power of {device}", "Togli la corrente a {device}"),
56383
- icon: "power-off"
57044
+ icon: "power-off",
57045
+ offeredWhen: POWER_SOURCE_SETTABLE_GATE
56384
57046
  }]
56385
57047
  }), systemMethod(deviceInput$2, PowerSourceActionResultSchema, {
56386
57048
  kind: "mutation",
@@ -57821,6 +58483,50 @@ var SiteZoneSchema = object({
57821
58483
  * the ones that most want grouping. */
57822
58484
  locationKeys: array(string())
57823
58485
  });
58486
+ var DeviceIdentifierKeySchema = _enum([
58487
+ "mac",
58488
+ "serial",
58489
+ "machine-uuid",
58490
+ "vendor-uid",
58491
+ "hostname",
58492
+ "ip"
58493
+ ]);
58494
+ /** `read` — the provider read it from the device; `derived` — computed from something else it read. */
58495
+ var DeviceIdentifierOriginSchema = _enum(["read", "derived"]);
58496
+ var MAC_PATTERN = /^[0-9a-f]{2}(?::[0-9a-f]{2}){5}$/;
58497
+ /** `<prefix>:<value>` — prefix a lower-case slug, value lower-case and non-blank. */
58498
+ var PREFIXED_PATTERN = /^[a-z0-9][a-z0-9._-]*:[^\sA-Z]+$/;
58499
+ var MACHINE_UUID_PATTERN = /^[0-9a-f][0-9a-f-]{7,}$/;
58500
+ var HOSTNAME_PATTERN = /^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$/;
58501
+ function entrySchema(value) {
58502
+ return object({
58503
+ value,
58504
+ origin: DeviceIdentifierOriginSchema,
58505
+ /** Epoch ms of the FIRST read that produced this value (and origin). A later
58506
+ * read of the same value does not move it — see {@link mergeIdentifiers}. */
58507
+ readAt: number$1().int().nonnegative()
58508
+ }).strict();
58509
+ }
58510
+ var MacEntrySchema = entrySchema(string().regex(MAC_PATTERN));
58511
+ var SerialEntrySchema = entrySchema(string().regex(PREFIXED_PATTERN));
58512
+ var MachineUuidEntrySchema = entrySchema(string().regex(MACHINE_UUID_PATTERN));
58513
+ var VendorUidEntrySchema = entrySchema(string().regex(PREFIXED_PATTERN));
58514
+ var HostnameEntrySchema = entrySchema(string().regex(HOSTNAME_PATTERN));
58515
+ var IpEntrySchema = entrySchema(union([ipv4(), ipv6()]));
58516
+ object({
58517
+ value: string().min(1),
58518
+ origin: DeviceIdentifierOriginSchema,
58519
+ readAt: number$1().int().nonnegative()
58520
+ }).strict();
58521
+ /** The typed declaration. Every key optional; `mac` the only one that holds several. */
58522
+ var DeviceIdentifiersSchema = object({
58523
+ mac: array(MacEntrySchema).min(1).readonly().optional(),
58524
+ serial: SerialEntrySchema.optional(),
58525
+ "machine-uuid": MachineUuidEntrySchema.optional(),
58526
+ "vendor-uid": VendorUidEntrySchema.optional(),
58527
+ hostname: HostnameEntrySchema.optional(),
58528
+ ip: IpEntrySchema.optional()
58529
+ }).strict();
57824
58530
  var DeviceSearchRequiresSchema = object({
57825
58531
  /** Capability names the field wants a value of. Absent when the field wants actions only. */
57826
58532
  caps: array(string()).readonly().optional(),
@@ -58289,6 +58995,10 @@ var DeviceInfoSchema = object({
58289
58995
  /** Hardware + identity blob (manufacturer / model / firmware / sn /
58290
58996
  * uid / mac / …). Populated by drivers; editable via setMetadata. */
58291
58997
  metadata: record(string(), unknown()).nullable().optional(),
58998
+ /** Provider-declared identifiers (D1059): typed, normalised, written only by
58999
+ * the owning provider via `setIdentifiers`; read-only for the operator.
59000
+ * Absent ⇒ the provider declared none. */
59001
+ identifiers: DeviceIdentifiersSchema.optional(),
58292
59002
  /** Optional upstream-system identity + rendering envelope. See
58293
59003
  * `SourceInfo` in `packages/types/src/device/source-info.ts`. */
58294
59004
  sourceInfo: SourceInfoSchema.optional(),
@@ -58440,6 +59150,8 @@ var DeviceMetaSchema = object({
58440
59150
  disabled: boolean(),
58441
59151
  parentDeviceId: number$1().nullable(),
58442
59152
  metadata: record(string(), unknown()).nullable().optional(),
59153
+ /** Provider-declared identifiers (D1059). See `DeviceMeta.identifiers`. */
59154
+ identifiers: DeviceIdentifiersSchema.optional(),
58443
59155
  /** Optional upstream-system identity + rendering envelope. See
58444
59156
  * `SourceInfo`. Present when the device has been persisted with a
58445
59157
  * non-synthetic source identifier (HA entities, vendor MAC, …);
@@ -58753,6 +59465,14 @@ method(object({
58753
59465
  }), _void(), {
58754
59466
  kind: "mutation",
58755
59467
  auth: "admin"
59468
+ }), method(object({
59469
+ deviceId: number$1(),
59470
+ identifiers: DeviceIdentifiersSchema.nullable(),
59471
+ /** Kinds the provider tried to read and could not: their stored value is kept. */
59472
+ unread: array(DeviceIdentifierKeySchema).optional()
59473
+ }), _void(), {
59474
+ kind: "mutation",
59475
+ auth: "admin"
58756
59476
  }), method(_void(), array(string())), method(object({ name: string() }), _void(), {
58757
59477
  kind: "mutation",
58758
59478
  auth: "admin"
@@ -62885,8 +63605,8 @@ var HeroSceneSchema = object({
62885
63605
  /** 0..1: volume, cover position, cycle progress. */
62886
63606
  level: number$1().min(0).max(1).nullable()
62887
63607
  });
62888
- DeviceType.Camera, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.HeatPump, DeviceType.EnergySystem, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.WeatherStation, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway;
62889
- DeviceRole.Siren, DeviceRole.Floodlight, DeviceRole.Spotlight, DeviceRole.PirSensor, DeviceRole.Chime, DeviceRole.Autotrack, DeviceRole.Nightvision, DeviceRole.PrivacyMask, DeviceRole.Doorbell, DeviceRole.CoverBlind, DeviceRole.CoverShutter, DeviceRole.CoverAwning, DeviceRole.CoverCurtain, DeviceRole.CoverGarage, DeviceRole.CoverGate, DeviceRole.CoverDoor, DeviceRole.CoverWindow, DeviceRole.BinaryHelper, DeviceRole.Outlet, DeviceRole.SwitchHeater, DeviceRole.SwitchFan, DeviceRole.SwitchLight, DeviceRole.ClimateAc, DeviceRole.ClimateThermostat, DeviceRole.ClimateFloor, DeviceRole.ClimateRadiator, DeviceRole.ClimateHeater, DeviceRole.ClimateHeatPumpCircuit, DeviceRole.MotionSensor, DeviceRole.ContactSensor, DeviceRole.LeakSensor, DeviceRole.SmokeSensor, DeviceRole.COSensor, DeviceRole.GasSensor, DeviceRole.TamperSensor, DeviceRole.VibrationSensor, DeviceRole.ConnectivitySensor, DeviceRole.SoundSensor, DeviceRole.BinarySensor, DeviceRole.TemperatureSensor, DeviceRole.HumiditySensor, DeviceRole.AmbientLightSensor, DeviceRole.PressureSensor, DeviceRole.WindSensor, DeviceRole.RainSensor, DeviceRole.UvSensor, DeviceRole.SolarRadiationSensor, DeviceRole.SoilMoistureSensor, DeviceRole.PowerSensor, DeviceRole.EnergySensor, DeviceRole.VoltageSensor, DeviceRole.CurrentSensor, DeviceRole.AirQualitySensor, DeviceRole.BatterySensor, DeviceRole.NumericSensor, DeviceRole.EnumSensor, DeviceRole.DateTimeSensor, DeviceRole.GenericSensor, DeviceRole.NumericControl, DeviceRole.SelectControl, DeviceRole.TextControl, DeviceRole.DateTimeControl, DeviceRole.MobilePushNotifier, DeviceRole.MessagingNotifier, DeviceRole.EmailNotifier, DeviceRole.GenericNotifier, DeviceRole.IrTransmitter;
63608
+ DeviceType.Camera, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.HeatPump, DeviceType.EnergySystem, DeviceType.Workload, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.WeatherStation, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway;
63609
+ DeviceRole.Siren, DeviceRole.Floodlight, DeviceRole.Spotlight, DeviceRole.PirSensor, DeviceRole.Chime, DeviceRole.Autotrack, DeviceRole.Nightvision, DeviceRole.PrivacyMask, DeviceRole.Doorbell, DeviceRole.CoverBlind, DeviceRole.CoverShutter, DeviceRole.CoverAwning, DeviceRole.CoverCurtain, DeviceRole.CoverGarage, DeviceRole.CoverGate, DeviceRole.CoverDoor, DeviceRole.CoverWindow, DeviceRole.BinaryHelper, DeviceRole.Outlet, DeviceRole.SwitchHeater, DeviceRole.SwitchFan, DeviceRole.SwitchLight, DeviceRole.PoePort, DeviceRole.ClimateAc, DeviceRole.ClimateThermostat, DeviceRole.ClimateFloor, DeviceRole.ClimateRadiator, DeviceRole.ClimateHeater, DeviceRole.ClimateHeatPumpCircuit, DeviceRole.MotionSensor, DeviceRole.ContactSensor, DeviceRole.LeakSensor, DeviceRole.SmokeSensor, DeviceRole.COSensor, DeviceRole.GasSensor, DeviceRole.TamperSensor, DeviceRole.VibrationSensor, DeviceRole.ConnectivitySensor, DeviceRole.SoundSensor, DeviceRole.BinarySensor, DeviceRole.TemperatureSensor, DeviceRole.HumiditySensor, DeviceRole.AmbientLightSensor, DeviceRole.PressureSensor, DeviceRole.WindSensor, DeviceRole.RainSensor, DeviceRole.UvSensor, DeviceRole.SolarRadiationSensor, DeviceRole.SoilMoistureSensor, DeviceRole.PowerSensor, DeviceRole.EnergySensor, DeviceRole.VoltageSensor, DeviceRole.CurrentSensor, DeviceRole.AirQualitySensor, DeviceRole.BatterySensor, DeviceRole.NumericSensor, DeviceRole.EnumSensor, DeviceRole.DateTimeSensor, DeviceRole.GenericSensor, DeviceRole.NumericControl, DeviceRole.SelectControl, DeviceRole.TextControl, DeviceRole.DateTimeControl, DeviceRole.MobilePushNotifier, DeviceRole.MessagingNotifier, DeviceRole.EmailNotifier, DeviceRole.GenericNotifier, DeviceRole.IrTransmitter, DeviceRole.Vm, DeviceRole.AppContainer, DeviceRole.Lxc, DeviceRole.App, DeviceRole.Host;
62890
63610
  var HeroRowIdSchema = _enum([
62891
63611
  "progress",
62892
63612
  "run-for",
@@ -63115,8 +63835,12 @@ var HeroPowerSupplySlotSchema = object({
63115
63835
  /** Off asks for a confirmation while the device runs. */
63116
63836
  confirmOffWhileRunning: boolean(),
63117
63837
  running: boolean().nullable(),
63118
- powerOn: HeroActionSchema,
63119
- powerOff: HeroActionSchema,
63838
+ /**
63839
+ * `null` when the linked switch ANSWERED it only reports (a PoE port seen through an
63840
+ * API key): power on / off would always be refused. The restart stays (D1058).
63841
+ */
63842
+ powerOn: HeroActionSchema.nullable(),
63843
+ powerOff: HeroActionSchema.nullable(),
63120
63844
  restart: HeroActionSchema
63121
63845
  });
63122
63846
  var HeroStateBackdropSchema = object({
@@ -72751,6 +73475,19 @@ var NetworkLinkStatusSchema = object({
72751
73475
  rssi: number$1().optional().meta(readingMeta("signal-level")),
72752
73476
  /** Network name of a wireless link, when the firmware reports it. */
72753
73477
  ssid: string().optional(),
73478
+ /**
73479
+ * Negotiated link speed of a wired port, the `bitrate` quantity in its base
73480
+ * unit, kbit/s (a gigabit port is 1 000 000); the display picks the unit.
73481
+ * `null` = the port is down or the speed is not known; absent = the provider
73482
+ * never reports one.
73483
+ */
73484
+ speedKbps: number$1().nonnegative().nullable().optional().meta(readingMeta("bitrate")),
73485
+ /**
73486
+ * Whether the link is up. `type` names the medium, not its state, so a wired
73487
+ * port that lost its link is `ethernet` + `linkUp: false`. `null` = not known;
73488
+ * absent = the provider never reports it.
73489
+ */
73490
+ linkUp: boolean().nullable().optional(),
72754
73491
  /** Ms epoch of the last observation. Lets consumers reason about freshness. */
72755
73492
  lastUpdated: number$1().meta(readingMeta("none"))
72756
73493
  });
@@ -74831,7 +75568,32 @@ var NcRuleInputSchema = object({
74831
75568
  * authored before this field meant. An editor turns it off by writing
74832
75569
  * `false`, so it needs no `clear` key.
74833
75570
  */
74834
- askVerdict: boolean().optional()
75571
+ askVerdict: boolean().optional(),
75572
+ /**
75573
+ * Operator tags (D1054), kept on the rule like a core block's. Absent = no
75574
+ * tags. `.optional()`, never `.default()`: a partial `updateRule` patch that
75575
+ * does not name `tags` keeps the stored ones (the store merges), and an
75576
+ * editor empties them by sending `[]` (the store drops an empty list).
75577
+ * Renamed or removed fleet-wide only through the `tags` cap, which writes
75578
+ * here with `setRuleTags`.
75579
+ */
75580
+ tags: TagsFieldSchema.optional()
75581
+ });
75582
+ /**
75583
+ * The rule kinds that carry tags (D1054) — each one its own store. Every kind
75584
+ * labels its rules the same way; this names which store a tag write goes to.
75585
+ */
75586
+ var NcTaggedRuleKindSchema = _enum([
75587
+ "event",
75588
+ "summary",
75589
+ "timelapse",
75590
+ "calendar-events"
75591
+ ]);
75592
+ /** One rule's tags, as the `tags` cap reads them across every kind. */
75593
+ var NcRuleTagsEntrySchema = object({
75594
+ kind: NcTaggedRuleKindSchema,
75595
+ ruleId: string(),
75596
+ tags: array(string())
74835
75597
  });
74836
75598
  /**
74837
75599
  * Partial patch for `updateRule` — any subset of the input fields, plus the
@@ -75848,6 +76610,16 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
75848
76610
  }), object({ success: literal(true) }), {
75849
76611
  kind: "mutation",
75850
76612
  auth: "admin"
76613
+ }), method(object({}), object({ rules: array(NcRuleTagsEntrySchema) }), {
76614
+ kind: "query",
76615
+ auth: "admin"
76616
+ }), method(object({
76617
+ kind: NcTaggedRuleKindSchema,
76618
+ ruleId: string(),
76619
+ tags: TagsFieldSchema
76620
+ }), object({ success: literal(true) }), {
76621
+ kind: "mutation",
76622
+ auth: "admin"
75851
76623
  }), method(object({}), NcClipRetentionPlanSchema, { auth: "admin" }), method(object({}), object({ mutedDeviceIds: array(number$1().int()).readonly() }), { auth: "admin" }), method(object({
75852
76624
  deviceId: number$1().int(),
75853
76625
  muted: boolean()
@@ -80578,7 +81350,18 @@ DeviceType.Camera, method(object({
80578
81350
  * older than this field keeps working unchanged (D382 — an unstated
80579
81351
  * ask is zero).
80580
81352
  */
80581
- audio: ClipStreamAudioSchema.optional()
81353
+ audio: ClipStreamAudioSchema.optional(),
81354
+ /**
81355
+ * The operator's authorisation to wake a sleeping camera for this
81356
+ * dial — the same {@link ClipWakeSchema} the byte reads carry. Absent
81357
+ * — the default — means a sleeping standalone battery camera is
81358
+ * REFUSED by name before any URL is minted. A caller sets it only
81359
+ * when a viewer itself asked for the clip (the broker's `playClip`);
81360
+ * a prefetch, a reconcile or a retry never does. With it, the
81361
+ * provider wakes the camera and waits under a bound; a camera that
81362
+ * does not come up is refused `wake-timeout`, naming the wait.
81363
+ */
81364
+ wake: ClipWakeSchema.optional()
80582
81365
  }), ClipStreamDialSchema, {
80583
81366
  kind: "query",
80584
81367
  auth: "protected"
@@ -80807,7 +81590,8 @@ _enum([
80807
81590
  "camera-refused",
80808
81591
  "fetch-failed",
80809
81592
  "too-large-to-transfer",
80810
- "wake-expired"
81593
+ "wake-expired",
81594
+ "wake-timeout"
80811
81595
  ]);
80812
81596
  /** Candidate download URLs (LAN first, then operator extra hosts). */
80813
81597
  var ExportDownloadSchema = object({
@@ -82670,6 +83454,16 @@ var SirenOptionsSchema = object({
82670
83454
  rangeSeconds: SirenDurationRangeSchema.nullable(),
82671
83455
  /** The camera's default duration, seconds. */
82672
83456
  defaultSeconds: number$1().positive(),
83457
+ /**
83458
+ * Discrete play counts the operator may pick; `null` when the camera gives a
83459
+ * range or does not count plays. Defaults to `null` so a provider that
83460
+ * predates plays (#589) reads as declaring none.
83461
+ */
83462
+ allowedPlays: array(number$1().int().positive()).nullable().default(null),
83463
+ /** Continuous range of play counts; `null` when listed or not counted. */
83464
+ rangePlays: SirenDurationRangeSchema.nullable().default(null),
83465
+ /** The camera's default play count; `null` when the camera does not count plays. */
83466
+ defaultPlays: number$1().int().positive().nullable().default(null),
82673
83467
  /** What the camera counts natively. */
82674
83468
  unit: _enum([SirenDurationUnit.Seconds, SirenDurationUnit.Plays]),
82675
83469
  /** Seconds one play lasts, when `unit` is `plays`; `null` for a seconds camera. */
@@ -82686,19 +83480,38 @@ var SirenStatusSchema = object({
82686
83480
  activeUntil: number$1().nullable(),
82687
83481
  /** Duration of the current / last activation, seconds; `null` when none yet. */
82688
83482
  durationSeconds: number$1().nullable(),
83483
+ /**
83484
+ * The play count of the current / last activation when it was asked in plays;
83485
+ * `null` when it was asked in seconds (or none yet). The unit that was asked.
83486
+ */
83487
+ plays: number$1().int().positive().nullable().default(null),
83488
+ /**
83489
+ * True when `activeUntil` comes from a seconds-per-play factor the camera did
83490
+ * not report — the siren may fall silent somewhat earlier or later.
83491
+ */
83492
+ activeUntilEstimated: boolean().default(false),
82689
83493
  /** Ms epoch of the last trigger (0 = never). */
82690
83494
  lastTriggeredAt: number$1()
82691
83495
  });
83496
+ /** A trigger asks seconds OR plays (#589); neither means the camera default. */
83497
+ var SirenTriggerInputSchema = object({
83498
+ deviceId: number$1().int().nonnegative(),
83499
+ durationSeconds: number$1().positive().optional(),
83500
+ plays: number$1().int().positive().optional()
83501
+ }).refine((input) => input.durationSeconds === void 0 || input.plays === void 0, {
83502
+ message: "a siren trigger takes durationSeconds or plays, not both",
83503
+ path: ["plays"]
83504
+ });
82692
83505
  SirenStatusSchema.extend({
82693
83506
  /** Ms epoch of the last successful camera read of the options (0 = never). */
82694
83507
  lastFetchedAt: number$1() });
82695
83508
  DeviceType.Siren, method(object({ deviceId: number$1().int().nonnegative() }), SirenOptionsSchema, {
82696
83509
  kind: "query",
82697
83510
  auth: "protected"
82698
- }), method(object({
82699
- deviceId: number$1().int().nonnegative(),
82700
- durationSeconds: number$1().positive().optional()
82701
- }), SirenStatusSchema, {
83511
+ }), method(object({ deviceId: number$1().int().nonnegative() }), array(number$1().int().positive()), {
83512
+ kind: "query",
83513
+ auth: "protected"
83514
+ }), method(SirenTriggerInputSchema, SirenStatusSchema, {
82702
83515
  kind: "mutation",
82703
83516
  auth: "protected",
82704
83517
  actions: [{
@@ -82707,6 +83520,21 @@ DeviceType.Siren, method(object({ deviceId: number$1().int().nonnegative() }), S
82707
83520
  phrase: t("Sound {device}", "Fai suonare {device}"),
82708
83521
  icon: "siren",
82709
83522
  args: {}
83523
+ }, {
83524
+ id: "siren.triggerPlays",
83525
+ label: t("Sound the siren N times", "Fai suonare la sirena N volte"),
83526
+ phrase: t("Sound {device} {plays} times", "Fai suonare {device} {plays} volte"),
83527
+ icon: "siren",
83528
+ openArgs: [{
83529
+ key: "plays",
83530
+ label: t("Plays", "Riproduzioni"),
83531
+ offer: {
83532
+ kind: "dynamic",
83533
+ from: "method",
83534
+ method: "getPlayChoices",
83535
+ valueKind: "number"
83536
+ }
83537
+ }]
82710
83538
  }]
82711
83539
  }), method(object({ deviceId: number$1().int().nonnegative() }), SirenStatusSchema, {
82712
83540
  kind: "mutation",
@@ -83628,6 +84456,26 @@ object({
83628
84456
  /** Ms epoch of the last state change. Useful for UI "X minutes ago". */
83629
84457
  lastChangedAt: number$1()
83630
84458
  });
84459
+ /**
84460
+ * What a switch can do, from its provider (`getOptions`). A provider that writes no
84461
+ * `getOptions` is a plain on/off switch: the defaults are the old contract.
84462
+ *
84463
+ * - `supportsSetState: false` — the switch reports its state but cannot be set (a PoE port seen only
84464
+ * through an API key). Its provider refuses `setState`; these surfaces withdraw on/off once the
84465
+ * device ANSWERED this (`switchRefusesSetState`): the device hero, the automation action picker
84466
+ * (`offeredWhen` on `switch.on` / `switch.off` / `switch.toggle`), the default `toggle`, the
84467
+ * HomeKit, Alexa and Google exporters, and `power-source` on a device the switch powers
84468
+ * (`getStatus().switchSettable`, `offeredWhen` on `powerSource.on` / `.off`, `not-settable`). A
84469
+ * read that failed or is pending changes nothing (D315).
84470
+ * - `supportsPowerCycle: true` — the device behind the switch can cut and restore its own output in
84471
+ * one native call (a PoE port's power cycle). It has no control of its own: a linked
84472
+ * `power-source.forceRestart` uses it instead of off / wait / on.
84473
+ */
84474
+ var SwitchOptionsSchema = object({
84475
+ supportsSetState: boolean().default(true),
84476
+ supportsPowerCycle: boolean().default(false)
84477
+ });
84478
+ SwitchOptionsSchema.parse({});
83631
84479
  DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, method(object({
83632
84480
  deviceId: number$1(),
83633
84481
  on: boolean()
@@ -83643,7 +84491,8 @@ DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, method(ob
83643
84491
  field: "on",
83644
84492
  value: true
83645
84493
  },
83646
- args: { on: true }
84494
+ args: { on: true },
84495
+ offeredWhen: SWITCH_SETTABLE_GATE
83647
84496
  }, {
83648
84497
  id: "switch.off",
83649
84498
  label: t("Turn off", "Spegni"),
@@ -83653,8 +84502,13 @@ DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, method(ob
83653
84502
  field: "on",
83654
84503
  value: false
83655
84504
  },
83656
- args: { on: false }
84505
+ args: { on: false },
84506
+ offeredWhen: SWITCH_SETTABLE_GATE
83657
84507
  }]
84508
+ }), optionalMethod(object({ deviceId: number$1() }), SwitchOptionsSchema, { auth: "protected" }), optionalMethod(object({ deviceId: number$1() }), _void(), {
84509
+ kind: "mutation",
84510
+ auth: "protected",
84511
+ notOperatorFacing: "a power cycle is the forced restart of the device the switch powers (power-source), never a step of its own"
83658
84512
  }), optionalMethod(object({ deviceId: number$1() }), _void(), {
83659
84513
  kind: "mutation",
83660
84514
  auth: "protected",
@@ -83662,13 +84516,14 @@ DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, method(ob
83662
84516
  id: "switch.toggle",
83663
84517
  label: t("Toggle", "Commuta"),
83664
84518
  phrase: t("Toggle {device}", "Commuta {device}"),
83665
- icon: "toggle-right"
84519
+ icon: "toggle-right",
84520
+ offeredWhen: SWITCH_SETTABLE_GATE
83666
84521
  }]
83667
84522
  }), object({
83668
84523
  deviceId: number$1(),
83669
84524
  on: boolean().nullable(),
83670
84525
  lastChangedAt: number$1()
83671
- }), DeviceType.Siren, DeviceType.Light, DeviceRole.Siren, DeviceRole.Floodlight, DeviceRole.Spotlight, DeviceRole.SwitchLight, DeviceRole.Chime, DeviceRole.PirSensor, DeviceRole.Nightvision, DeviceRole.PrivacyMask, DeviceRole.Autotrack, DeviceRole.Outlet;
84526
+ }), DeviceType.Siren, DeviceType.Light, DeviceRole.Siren, DeviceRole.Floodlight, DeviceRole.Spotlight, DeviceRole.SwitchLight, DeviceRole.Chime, DeviceRole.PirSensor, DeviceRole.Nightvision, DeviceRole.PrivacyMask, DeviceRole.Autotrack, DeviceRole.Outlet, DeviceRole.PoePort;
83672
84527
  /** C0 controls, DEL and the C1 range: none of them belongs in a name. */
83673
84528
  function hasControlCharacter(value) {
83674
84529
  for (const char of value) {
@@ -84253,10 +85108,11 @@ method(_void(), SystemInfoSchema), method(_void(), HealthStatusSchema), method(_
84253
85108
  /**
84254
85109
  * tags — the registry of tag STYLES and the one place that renames or removes a
84255
85110
  * tag everywhere (D1054). A tag itself lives in the `tags` array of the record it
84256
- * labels (a core block, a scheduler, a template, an action, a device); only its
85111
+ * labels (a core block, a scheduler, a template, an action, a device, a
85112
+ * notification rule); only its
84257
85113
  * colour token and icon are registered here. Provided by the core-blocks builtin,
84258
- * the one place that knows every owner kind; devices are reached through
84259
- * `deviceManager` over `ctx.api`.
85114
+ * the one place that knows every owner kind; devices and notification rules
85115
+ * are reached through `deviceManager` / `notificationRules` over `ctx.api`.
84260
85116
  *
84261
85117
  * Tags compare trimmed and case-insensitively. `list` is the union of styled tags
84262
85118
  * and tags in use; a tag with no style answers a colour derived from its name and
@@ -84267,7 +85123,21 @@ var TagUsageCountsSchema = object({
84267
85123
  schedulers: number$1().int().nonnegative(),
84268
85124
  templates: number$1().int().nonnegative(),
84269
85125
  actions: number$1().int().nonnegative(),
84270
- devices: number$1().int().nonnegative()
85126
+ devices: number$1().int().nonnegative(),
85127
+ notificationRules: number$1().int().nonnegative()
85128
+ });
85129
+ /**
85130
+ * The counts `list` answers. An owner that could not be read (a forked addon
85131
+ * that is down, redeploying or not installed) is `null` — unknown, never `0`
85132
+ * (D393) — and `list` still answers with the other owners' tags.
85133
+ */
85134
+ var TagListCountsSchema = object({
85135
+ coreBlocks: number$1().int().nonnegative().nullable(),
85136
+ schedulers: number$1().int().nonnegative().nullable(),
85137
+ templates: number$1().int().nonnegative().nullable(),
85138
+ actions: number$1().int().nonnegative().nullable(),
85139
+ devices: number$1().int().nonnegative().nullable(),
85140
+ notificationRules: number$1().int().nonnegative().nullable()
84271
85141
  });
84272
85142
  var TagEntrySchema = object({
84273
85143
  name: TagNameSchema,
@@ -84275,7 +85145,8 @@ var TagEntrySchema = object({
84275
85145
  icon: IconKeySchema,
84276
85146
  /** `false` when the operator never chose a style: colour and icon are the derived defaults. */
84277
85147
  styled: boolean(),
84278
- counts: TagUsageCountsSchema
85148
+ /** Per owner kind; `null` = that owner could not be read on this call. */
85149
+ counts: TagListCountsSchema
84279
85150
  });
84280
85151
  method(object({}), array(TagEntrySchema), { auth: "protected" }), method(object({
84281
85152
  name: TagNameSchema,
@@ -84732,7 +85603,6 @@ method(object({ kind: TemplateKindSchema.optional() }), array(TemplateRecordSche
84732
85603
  });
84733
85604
  /** Profile-exported FormBuilder schema. Shape is ConfigUISchema at the UI. */
84734
85605
  var ProfileSettingsSchemaBridge = unknown().nullable();
84735
- var ProfileSettingsBagSchema = record(string(), unknown());
84736
85606
  /**
84737
85607
  * A live terminal session hosted by the provider addon. Output and input do
84738
85608
  * NOT flow through the capability — they use the addon data plane
@@ -84751,7 +85621,11 @@ var TerminalSessionInfoSchema = object({
84751
85621
  cols: number$1().int().positive(),
84752
85622
  rows: number$1().int().positive(),
84753
85623
  /** ms-epoch the session's pty was spawned. */
84754
- startedAt: number$1()
85624
+ startedAt: number$1(),
85625
+ /** User id of the admin who opened it; `unattributed` when the caller was not passed. */
85626
+ openedBy: string().optional(),
85627
+ /** ms-epoch of the last pty input or output — what the idle timeout measures. */
85628
+ lastActivityAt: number$1().optional()
84755
85629
  });
84756
85630
  /**
84757
85631
  * A profile the operator may open — a pre-declared, allowlisted program
@@ -84771,39 +85645,6 @@ var TerminalProfileInfoSchema = object({
84771
85645
  /** ConfigUISchema for instance knobs, or null when the profile has none. */
84772
85646
  settingsSchema: ProfileSettingsSchemaBridge.optional()
84773
85647
  });
84774
- /**
84775
- * A durable operator-created Terminal instance. Profiles are templates; only
84776
- * an instance declares a camera.
84777
- */
84778
- var TerminalInstanceInfoSchema = object({
84779
- instanceId: string(),
84780
- cameraStableId: string(),
84781
- nodeId: string(),
84782
- /**
84783
- * False while the node the instance is bound to is not in the cluster
84784
- * topology (forgotten, renamed, re-paired). The instance is kept; the
84785
- * operator re-points it on the Terminal page.
84786
- */
84787
- nodeInCluster: boolean(),
84788
- profileId: string(),
84789
- profileLabel: string(),
84790
- name: string(),
84791
- enabled: boolean(),
84792
- executable: string(),
84793
- args: array(string()).readonly(),
84794
- cwd: string(),
84795
- environment: array(string()).readonly(),
84796
- profileSettings: ProfileSettingsBagSchema
84797
- });
84798
- var TerminalLegacyCameraSchema = object({
84799
- stableId: string(),
84800
- nodeId: string(),
84801
- profileId: string(),
84802
- profileLabel: string(),
84803
- name: string(),
84804
- /** Only legacy monitor cameras can retain their historic stable identity. */
84805
- adoptable: boolean()
84806
- });
84807
85648
  var TerminalOutputEventSchema = discriminatedUnion("kind", [object({
84808
85649
  seq: number$1().int().positive(),
84809
85650
  kind: literal("data"),
@@ -84831,13 +85672,7 @@ var TerminalOutputBatchSchema = object({
84831
85672
  snapshot: string().optional(),
84832
85673
  events: array(TerminalOutputEventSchema).readonly()
84833
85674
  });
84834
- method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }), method(_void(), array(TerminalLegacyCameraSchema).readonly(), { auth: "admin" }), method(object({
84835
- stableId: string().min(1),
84836
- name: string().trim().min(1).max(160).optional()
84837
- }), TerminalInstanceInfoSchema, {
84838
- kind: "mutation",
84839
- auth: "admin"
84840
- }), method(_void(), array(TerminalSessionInfoSchema).readonly(), { auth: "admin" }), method(_void(), ServerShellStatusSchema, { auth: "admin" }), method(object({
85675
+ method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }), method(_void(), array(TerminalSessionInfoSchema).readonly(), { auth: "admin" }), method(_void(), ServerShellStatusSchema, { auth: "admin" }), method(object({
84841
85676
  profileId: string(),
84842
85677
  cols: number$1().int().positive(),
84843
85678
  rows: number$1().int().positive(),
@@ -86950,6 +87785,175 @@ DeviceType.Camera, method(object({ deviceId: number$1().int().nonnegative() }),
86950
87785
  deviceId: number$1().int().nonnegative(),
86951
87786
  sessionId: string()
86952
87787
  }), WebrtcSessionDebugSchema, { kind: "query" });
87788
+ var WorkloadStateSchema = _enum([
87789
+ "running",
87790
+ "paused",
87791
+ "stopped",
87792
+ "starting",
87793
+ "stopping",
87794
+ "crashed"
87795
+ ]);
87796
+ DeviceRole.Vm, DeviceRole.AppContainer, DeviceRole.Lxc, DeviceRole.App, DeviceRole.Host;
87797
+ /**
87798
+ * What the workload uses. Every value is `null` when not reported (D393). A host
87799
+ * fills `load1` and `temperature`; its uptime is `since` while it runs.
87800
+ */
87801
+ var WorkloadResourcesSchema = object({
87802
+ /** CPU use, percent of the CPUs it may use (0–100). */
87803
+ cpuPercent: number$1().nullable().meta(readingMeta("percentage", { precision: 1 })),
87804
+ memoryUsedBytes: number$1().nullable().meta(readingMeta("information")),
87805
+ /**
87806
+ * Memory use, percent of `memoryLimitBytes`, for a source that reports a share
87807
+ * and not bytes (a Docker container's stats). Absent or `null` = not reported.
87808
+ */
87809
+ memoryPercent: number$1().nullable().optional().meta(readingMeta("percentage", { precision: 1 })),
87810
+ /** The memory it may use: the limit of a container, the RAM of a VM or host. */
87811
+ memoryLimitBytes: number$1().nullable().meta(readingMeta("information")),
87812
+ vcpus: number$1().nullable().meta(readingMeta("count")),
87813
+ diskUsedBytes: number$1().nullable().meta(readingMeta("information")),
87814
+ diskTotalBytes: number$1().nullable().meta(readingMeta("information")),
87815
+ /** Network received, kbit/s. */
87816
+ netRxKbps: number$1().nullable().meta(readingMeta("bitrate")),
87817
+ /** Network sent, kbit/s. */
87818
+ netTxKbps: number$1().nullable().meta(readingMeta("bitrate")),
87819
+ /** One-minute load average (a host). */
87820
+ load1: number$1().nullable().meta(readingMeta("index", { precision: 2 })),
87821
+ /** CPU / board temperature (a host). */
87822
+ temperature: number$1().nullable().meta(readingMeta("temperature", { precision: 1 }))
87823
+ });
87824
+ var WorkloadPortProtocolSchema = _enum(["tcp", "udp"]);
87825
+ /** One published port: the workload's own port and where the host exposes it. */
87826
+ var WorkloadPortSchema = object({
87827
+ port: number$1().int().meta(readingMeta("none")),
87828
+ /** The host port it is published on; null = not published. */
87829
+ hostPort: number$1().int().nullable().meta(readingMeta("none")),
87830
+ /** The host address it is bound to; null = every address. */
87831
+ hostIp: string().nullable(),
87832
+ protocol: WorkloadPortProtocolSchema
87833
+ });
87834
+ object({
87835
+ /** null = unknown, never stopped (D393). */
87836
+ state: WorkloadStateSchema.nullable().meta({ label: "State" }),
87837
+ /** Epoch ms the current state began (uptime while running); null when unknown. */
87838
+ since: number$1().nullable().meta(readingMeta("none")),
87839
+ /** The `host` device this runs on, when the provider has adopted it. */
87840
+ hostDeviceId: number$1().int().nullable().meta(readingMeta("device")),
87841
+ /** The image a container runs (`nginx:1.27`). */
87842
+ image: string().nullable(),
87843
+ /** The operating system (a VM, an LXC, a host). */
87844
+ os: string().nullable(),
87845
+ /** The version or firmware it runs. */
87846
+ version: string().nullable(),
87847
+ /** Starts with its host; null when the platform does not say. */
87848
+ autostart: boolean().nullable(),
87849
+ resources: WorkloadResourcesSchema,
87850
+ ports: array(WorkloadPortSchema),
87851
+ /** The addresses it is reachable on (IPs or host names). */
87852
+ addresses: array(string()),
87853
+ /** A newer image / version exists. Installing it stays the `update` cap. */
87854
+ updateAvailable: boolean().nullable(),
87855
+ lastFetchedAt: number$1()
87856
+ });
87857
+ /**
87858
+ * What this device can do, probed by its provider (D14 honesty): a flag is
87859
+ * `true` only when the platform really serves it for THIS device.
87860
+ */
87861
+ var WorkloadOptionsSchema = object({
87862
+ supportsStart: boolean(),
87863
+ supportsStop: boolean(),
87864
+ supportsRestart: boolean(),
87865
+ /** Pause AND resume. */
87866
+ supportsPause: boolean(),
87867
+ supportsForceStop: boolean(),
87868
+ hasResources: boolean(),
87869
+ hasPorts: boolean(),
87870
+ hasAddresses: boolean(),
87871
+ hasAutostart: boolean(),
87872
+ hasUpdateCheck: boolean()
87873
+ });
87874
+ var WorkloadDeviceInputSchema = object({ deviceId: number$1().int().nonnegative() });
87875
+ object({
87876
+ deviceId: number$1(),
87877
+ state: WorkloadStateSchema,
87878
+ previous: WorkloadStateSchema,
87879
+ since: number$1().nullable()
87880
+ });
87881
+ EventCategory.WorkloadStarted, EventCategory.WorkloadStopped, EventCategory.WorkloadCrashed, EventCategory.WorkloadRecovered;
87882
+ DeviceType.Workload, DeviceType.Workload, optionalMethod(WorkloadDeviceInputSchema, _void(), {
87883
+ kind: "mutation",
87884
+ auth: "protected",
87885
+ actions: [{
87886
+ id: "workload.start",
87887
+ label: t("Start", "Avvia"),
87888
+ phrase: t("Start {device}", "Avvia {device}"),
87889
+ icon: "play",
87890
+ effect: {
87891
+ field: "state",
87892
+ value: "running"
87893
+ }
87894
+ }]
87895
+ }), optionalMethod(WorkloadDeviceInputSchema, _void(), {
87896
+ kind: "mutation",
87897
+ auth: "protected",
87898
+ actions: [{
87899
+ id: "workload.stop",
87900
+ label: t("Stop", "Arresta"),
87901
+ phrase: t("Stop {device}", "Arresta {device}"),
87902
+ icon: "square",
87903
+ effect: {
87904
+ field: "state",
87905
+ value: "stopped"
87906
+ }
87907
+ }]
87908
+ }), optionalMethod(WorkloadDeviceInputSchema, _void(), {
87909
+ kind: "mutation",
87910
+ auth: "protected",
87911
+ actions: [{
87912
+ id: "workload.restart",
87913
+ label: t("Restart", "Riavvia"),
87914
+ phrase: t("Restart {device}", "Riavvia {device}"),
87915
+ icon: "rotate-ccw"
87916
+ }]
87917
+ }), optionalMethod(WorkloadDeviceInputSchema, _void(), {
87918
+ kind: "mutation",
87919
+ auth: "protected",
87920
+ actions: [{
87921
+ id: "workload.pause",
87922
+ label: t("Pause", "Metti in pausa"),
87923
+ phrase: t("Pause {device}", "Metti in pausa {device}"),
87924
+ icon: "pause",
87925
+ effect: {
87926
+ field: "state",
87927
+ value: "paused"
87928
+ }
87929
+ }]
87930
+ }), optionalMethod(WorkloadDeviceInputSchema, _void(), {
87931
+ kind: "mutation",
87932
+ auth: "protected",
87933
+ actions: [{
87934
+ id: "workload.resume",
87935
+ label: t("Resume", "Riprendi"),
87936
+ phrase: t("Resume {device}", "Riprendi {device}"),
87937
+ icon: "circle-play",
87938
+ effect: {
87939
+ field: "state",
87940
+ value: "running"
87941
+ }
87942
+ }]
87943
+ }), optionalMethod(WorkloadDeviceInputSchema, _void(), {
87944
+ kind: "mutation",
87945
+ auth: "admin",
87946
+ actions: [{
87947
+ id: "workload.forceStop",
87948
+ label: t("Force stop", "Arresto forzato"),
87949
+ phrase: t("Force {device} to stop", "Forza l’arresto di {device}"),
87950
+ icon: "octagon-x",
87951
+ effect: {
87952
+ field: "state",
87953
+ value: "stopped"
87954
+ }
87955
+ }]
87956
+ }), method(WorkloadDeviceInputSchema, WorkloadOptionsSchema, { auth: "protected" }), EventCategory.WorkloadStarted, EventCategory.WorkloadStopped, EventCategory.WorkloadCrashed, EventCategory.WorkloadRecovered, DeviceRole.Vm, DeviceRole.AppContainer, DeviceRole.Lxc, DeviceRole.App, DeviceRole.Host;
86953
87957
  /**
86954
87958
  * Per-zone occupancy aggregation produced by the analytics frame
86955
87959
  * processor on every inference result. Covers the full combinatorial
@@ -87547,7 +88551,7 @@ var AccessoryKind = {
87547
88551
  };
87548
88552
  AccessoryKind.Siren, AccessoryKind.Floodlight, AccessoryKind.Spotlight, AccessoryKind.PirSensor, AccessoryKind.Chime, AccessoryKind.Autotrack, AccessoryKind.Nightvision, AccessoryKind.PrivacyMask;
87549
88553
  DeviceType.HeatPump;
87550
- DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.HeatPump, DeviceType.EnergySystem, DeviceType.Camera, DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, DeviceType.Sensor, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.WeatherStation, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway;
88554
+ DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.HeatPump, DeviceType.EnergySystem, DeviceType.Workload, DeviceType.Camera, DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, DeviceType.Sensor, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.WeatherStation, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway;
87551
88555
  new Set(Object.values(DeviceType));
87552
88556
  /** Parses the raw slice with the cap's own schema; `undefined` when it does not parse. */
87553
88557
  function contribution(cap, schema, build) {
@@ -89603,7 +90607,7 @@ var HEAT_PUMP_FAMILY_CONTRIBUTIONS = { "heat-pump-status": contribution("heat-pu
89603
90607
  ...Object.values(CLIMATE_FAMILY_CONTRIBUTIONS),
89604
90608
  ...Object.values(HEAT_PUMP_FAMILY_CONTRIBUTIONS)
89605
90609
  ];
89606
- DeviceType.Camera, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.HeatPump, DeviceType.EnergySystem, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.WeatherStation, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway;
90610
+ DeviceType.Camera, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.HeatPump, DeviceType.EnergySystem, DeviceType.Workload, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.WeatherStation, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway;
89607
90611
  /**
89608
90612
  * Who looks like what (D1023). One look per {@link DeviceType}, refined by a
89609
90613
  * {@link DeviceRole} where the role changes how the device reads (a leak
@@ -90247,8 +91251,8 @@ lookOf({
90247
91251
  standby: MUTED
90248
91252
  });
90249
91253
  DeviceType.Climate;
90250
- DeviceType.Camera, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.HeatPump, DeviceType.EnergySystem, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.WeatherStation, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway;
90251
- DeviceRole.Siren, DeviceRole.Floodlight, DeviceRole.Spotlight, DeviceRole.PirSensor, DeviceRole.Chime, DeviceRole.Autotrack, DeviceRole.Nightvision, DeviceRole.PrivacyMask, DeviceRole.Doorbell, DeviceRole.CoverBlind, DeviceRole.CoverShutter, DeviceRole.CoverAwning, DeviceRole.CoverCurtain, DeviceRole.CoverGarage, DeviceRole.CoverGate, DeviceRole.CoverDoor, DeviceRole.CoverWindow, DeviceRole.BinaryHelper, DeviceRole.Outlet, DeviceRole.SwitchHeater, DeviceRole.SwitchFan, DeviceRole.SwitchLight, DeviceRole.ClimateAc, DeviceRole.ClimateThermostat, DeviceRole.ClimateFloor, DeviceRole.ClimateRadiator, DeviceRole.ClimateHeater, DeviceRole.ClimateHeatPumpCircuit, DeviceRole.MotionSensor, DeviceRole.ContactSensor, DeviceRole.LeakSensor, DeviceRole.SmokeSensor, DeviceRole.COSensor, DeviceRole.GasSensor, DeviceRole.TamperSensor, DeviceRole.VibrationSensor, DeviceRole.ConnectivitySensor, DeviceRole.SoundSensor, DeviceRole.BinarySensor, DeviceRole.TemperatureSensor, DeviceRole.HumiditySensor, DeviceRole.AmbientLightSensor, DeviceRole.PressureSensor, DeviceRole.WindSensor, DeviceRole.RainSensor, DeviceRole.UvSensor, DeviceRole.SolarRadiationSensor, DeviceRole.SoilMoistureSensor, DeviceRole.PowerSensor, DeviceRole.EnergySensor, DeviceRole.VoltageSensor, DeviceRole.CurrentSensor, DeviceRole.AirQualitySensor, DeviceRole.BatterySensor, DeviceRole.NumericSensor, DeviceRole.EnumSensor, DeviceRole.DateTimeSensor, DeviceRole.GenericSensor, DeviceRole.NumericControl, DeviceRole.SelectControl, DeviceRole.TextControl, DeviceRole.DateTimeControl, DeviceRole.MobilePushNotifier, DeviceRole.MessagingNotifier, DeviceRole.EmailNotifier, DeviceRole.GenericNotifier, DeviceRole.IrTransmitter;
91254
+ DeviceType.Camera, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.HeatPump, DeviceType.EnergySystem, DeviceType.Workload, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.WeatherStation, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway;
91255
+ DeviceRole.Siren, DeviceRole.Floodlight, DeviceRole.Spotlight, DeviceRole.PirSensor, DeviceRole.Chime, DeviceRole.Autotrack, DeviceRole.Nightvision, DeviceRole.PrivacyMask, DeviceRole.Doorbell, DeviceRole.CoverBlind, DeviceRole.CoverShutter, DeviceRole.CoverAwning, DeviceRole.CoverCurtain, DeviceRole.CoverGarage, DeviceRole.CoverGate, DeviceRole.CoverDoor, DeviceRole.CoverWindow, DeviceRole.BinaryHelper, DeviceRole.Outlet, DeviceRole.SwitchHeater, DeviceRole.SwitchFan, DeviceRole.SwitchLight, DeviceRole.PoePort, DeviceRole.ClimateAc, DeviceRole.ClimateThermostat, DeviceRole.ClimateFloor, DeviceRole.ClimateRadiator, DeviceRole.ClimateHeater, DeviceRole.ClimateHeatPumpCircuit, DeviceRole.MotionSensor, DeviceRole.ContactSensor, DeviceRole.LeakSensor, DeviceRole.SmokeSensor, DeviceRole.COSensor, DeviceRole.GasSensor, DeviceRole.TamperSensor, DeviceRole.VibrationSensor, DeviceRole.ConnectivitySensor, DeviceRole.SoundSensor, DeviceRole.BinarySensor, DeviceRole.TemperatureSensor, DeviceRole.HumiditySensor, DeviceRole.AmbientLightSensor, DeviceRole.PressureSensor, DeviceRole.WindSensor, DeviceRole.RainSensor, DeviceRole.UvSensor, DeviceRole.SolarRadiationSensor, DeviceRole.SoilMoistureSensor, DeviceRole.PowerSensor, DeviceRole.EnergySensor, DeviceRole.VoltageSensor, DeviceRole.CurrentSensor, DeviceRole.AirQualitySensor, DeviceRole.BatterySensor, DeviceRole.NumericSensor, DeviceRole.EnumSensor, DeviceRole.DateTimeSensor, DeviceRole.GenericSensor, DeviceRole.NumericControl, DeviceRole.SelectControl, DeviceRole.TextControl, DeviceRole.DateTimeControl, DeviceRole.MobilePushNotifier, DeviceRole.MessagingNotifier, DeviceRole.EmailNotifier, DeviceRole.GenericNotifier, DeviceRole.IrTransmitter, DeviceRole.Vm, DeviceRole.AppContainer, DeviceRole.Lxc, DeviceRole.App, DeviceRole.Host;
90252
91256
  Object.freeze({
90253
91257
  "accessories.getStatus": {
90254
91258
  capName: "accessories",
@@ -92910,6 +93914,13 @@ Object.freeze({
92910
93914
  access: "create",
92911
93915
  role: "admin"
92912
93916
  },
93917
+ "deviceManager.setIdentifiers": {
93918
+ capName: "device-manager",
93919
+ capScope: "system",
93920
+ addonId: null,
93921
+ access: "create",
93922
+ role: "admin"
93923
+ },
92913
93924
  "deviceManager.setIntegrationId": {
92914
93925
  capName: "device-manager",
92915
93926
  capScope: "system",
@@ -95794,6 +96805,13 @@ Object.freeze({
95794
96805
  access: "view",
95795
96806
  role: "admin"
95796
96807
  },
96808
+ "notificationRules.listRuleTags": {
96809
+ capName: "notification-rules",
96810
+ capScope: "system",
96811
+ addonId: null,
96812
+ access: "view",
96813
+ role: "admin"
96814
+ },
95797
96815
  "notificationRules.listSnoozes": {
95798
96816
  capName: "notification-rules",
95799
96817
  capScope: "system",
@@ -95850,6 +96868,13 @@ Object.freeze({
95850
96868
  access: "create",
95851
96869
  role: "admin"
95852
96870
  },
96871
+ "notificationRules.setRuleTags": {
96872
+ capName: "notification-rules",
96873
+ capScope: "system",
96874
+ addonId: null,
96875
+ access: "create",
96876
+ role: "admin"
96877
+ },
95853
96878
  "notificationRules.testRule": {
95854
96879
  capName: "notification-rules",
95855
96880
  capScope: "system",
@@ -98818,6 +99843,13 @@ Object.freeze({
98818
99843
  access: "view",
98819
99844
  role: "viewer"
98820
99845
  },
99846
+ "siren.getPlayChoices": {
99847
+ capName: "siren",
99848
+ capScope: "device",
99849
+ addonId: null,
99850
+ access: "view",
99851
+ role: "viewer"
99852
+ },
98821
99853
  "siren.getStatus": {
98822
99854
  capName: "siren",
98823
99855
  capScope: "device",
@@ -99630,6 +100662,13 @@ Object.freeze({
99630
100662
  access: "view",
99631
100663
  role: "viewer"
99632
100664
  },
100665
+ "switch.getOptions": {
100666
+ capName: "switch",
100667
+ capScope: "device",
100668
+ addonId: null,
100669
+ access: "view",
100670
+ role: "viewer"
100671
+ },
99633
100672
  "switch.getStatus": {
99634
100673
  capName: "switch",
99635
100674
  capScope: "device",
@@ -99637,6 +100676,13 @@ Object.freeze({
99637
100676
  access: "view",
99638
100677
  role: "viewer"
99639
100678
  },
100679
+ "switch.powerCycle": {
100680
+ capName: "switch",
100681
+ capScope: "device",
100682
+ addonId: null,
100683
+ access: "create",
100684
+ role: "viewer"
100685
+ },
99640
100686
  "switch.setState": {
99641
100687
  capName: "switch",
99642
100688
  capScope: "device",
@@ -99840,13 +100886,6 @@ Object.freeze({
99840
100886
  access: "create",
99841
100887
  role: "admin"
99842
100888
  },
99843
- "terminalSession.adoptLegacyMonitor": {
99844
- capName: "terminal-session",
99845
- capScope: "system",
99846
- addonId: null,
99847
- access: "create",
99848
- role: "admin"
99849
- },
99850
100889
  "terminalSession.close": {
99851
100890
  capName: "terminal-session",
99852
100891
  capScope: "system",
@@ -99854,13 +100893,6 @@ Object.freeze({
99854
100893
  access: "create",
99855
100894
  role: "admin"
99856
100895
  },
99857
- "terminalSession.listLegacyCameras": {
99858
- capName: "terminal-session",
99859
- capScope: "system",
99860
- addonId: null,
99861
- access: "view",
99862
- role: "admin"
99863
- },
99864
100896
  "terminalSession.listProfiles": {
99865
100897
  capName: "terminal-session",
99866
100898
  capScope: "system",
@@ -100722,6 +101754,62 @@ Object.freeze({
100722
101754
  access: "view",
100723
101755
  role: "viewer"
100724
101756
  },
101757
+ "workload.forceStop": {
101758
+ capName: "workload",
101759
+ capScope: "device",
101760
+ addonId: null,
101761
+ access: "create",
101762
+ role: "admin"
101763
+ },
101764
+ "workload.getOptions": {
101765
+ capName: "workload",
101766
+ capScope: "device",
101767
+ addonId: null,
101768
+ access: "view",
101769
+ role: "viewer"
101770
+ },
101771
+ "workload.getStatus": {
101772
+ capName: "workload",
101773
+ capScope: "device",
101774
+ addonId: null,
101775
+ access: "view",
101776
+ role: "viewer"
101777
+ },
101778
+ "workload.pause": {
101779
+ capName: "workload",
101780
+ capScope: "device",
101781
+ addonId: null,
101782
+ access: "create",
101783
+ role: "viewer"
101784
+ },
101785
+ "workload.restart": {
101786
+ capName: "workload",
101787
+ capScope: "device",
101788
+ addonId: null,
101789
+ access: "create",
101790
+ role: "viewer"
101791
+ },
101792
+ "workload.resume": {
101793
+ capName: "workload",
101794
+ capScope: "device",
101795
+ addonId: null,
101796
+ access: "create",
101797
+ role: "viewer"
101798
+ },
101799
+ "workload.start": {
101800
+ capName: "workload",
101801
+ capScope: "device",
101802
+ addonId: null,
101803
+ access: "create",
101804
+ role: "viewer"
101805
+ },
101806
+ "workload.stop": {
101807
+ capName: "workload",
101808
+ capScope: "device",
101809
+ addonId: null,
101810
+ access: "create",
101811
+ role: "viewer"
101812
+ },
100725
101813
  "zoneAnalytics.getCameraHistory": {
100726
101814
  capName: "zone-analytics",
100727
101815
  capScope: "device",
@@ -100858,8 +101946,8 @@ function offered(received) {
100858
101946
  };
100859
101947
  }
100860
101948
  offered(HA_AS), withheld(HOMEKIT_REASON), withheld(ALEXA_REASON), withheld(GOOGLE_REASON), withheld(MATTER_REASON);
100861
- DeviceType.Camera, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Climate, DeviceType.HeatPump, DeviceType.EnergySystem, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.WeatherStation, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway;
100862
- DeviceRole.Siren, DeviceRole.Floodlight, DeviceRole.Spotlight, DeviceRole.PirSensor, DeviceRole.Chime, DeviceRole.Autotrack, DeviceRole.Nightvision, DeviceRole.PrivacyMask, DeviceRole.Doorbell, DeviceRole.CoverBlind, DeviceRole.CoverShutter, DeviceRole.CoverAwning, DeviceRole.CoverCurtain, DeviceRole.CoverGarage, DeviceRole.CoverGate, DeviceRole.CoverDoor, DeviceRole.CoverWindow, DeviceRole.BinaryHelper, DeviceRole.Outlet, DeviceRole.SwitchHeater, DeviceRole.SwitchFan, DeviceRole.SwitchLight, DeviceRole.ClimateAc, DeviceRole.ClimateThermostat, DeviceRole.ClimateFloor, DeviceRole.ClimateRadiator, DeviceRole.ClimateHeater, DeviceRole.ClimateHeatPumpCircuit, DeviceRole.MotionSensor, DeviceRole.ContactSensor, DeviceRole.LeakSensor, DeviceRole.SmokeSensor, DeviceRole.COSensor, DeviceRole.GasSensor, DeviceRole.TamperSensor, DeviceRole.VibrationSensor, DeviceRole.ConnectivitySensor, DeviceRole.SoundSensor, DeviceRole.BinarySensor, DeviceRole.TemperatureSensor, DeviceRole.HumiditySensor, DeviceRole.AmbientLightSensor, DeviceRole.PressureSensor, DeviceRole.WindSensor, DeviceRole.RainSensor, DeviceRole.UvSensor, DeviceRole.SolarRadiationSensor, DeviceRole.SoilMoistureSensor, DeviceRole.PowerSensor, DeviceRole.EnergySensor, DeviceRole.VoltageSensor, DeviceRole.CurrentSensor, DeviceRole.AirQualitySensor, DeviceRole.BatterySensor, DeviceRole.NumericSensor, DeviceRole.EnumSensor, DeviceRole.DateTimeSensor, DeviceRole.GenericSensor, DeviceRole.NumericControl, DeviceRole.SelectControl, DeviceRole.TextControl, DeviceRole.DateTimeControl, DeviceRole.MobilePushNotifier, DeviceRole.MessagingNotifier, DeviceRole.EmailNotifier, DeviceRole.GenericNotifier, DeviceRole.IrTransmitter;
101949
+ DeviceType.Camera, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Climate, DeviceType.HeatPump, DeviceType.EnergySystem, DeviceType.Workload, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.WeatherStation, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway;
101950
+ DeviceRole.Siren, DeviceRole.Floodlight, DeviceRole.Spotlight, DeviceRole.PirSensor, DeviceRole.Chime, DeviceRole.Autotrack, DeviceRole.Nightvision, DeviceRole.PrivacyMask, DeviceRole.Doorbell, DeviceRole.CoverBlind, DeviceRole.CoverShutter, DeviceRole.CoverAwning, DeviceRole.CoverCurtain, DeviceRole.CoverGarage, DeviceRole.CoverGate, DeviceRole.CoverDoor, DeviceRole.CoverWindow, DeviceRole.BinaryHelper, DeviceRole.Outlet, DeviceRole.SwitchHeater, DeviceRole.SwitchFan, DeviceRole.SwitchLight, DeviceRole.PoePort, DeviceRole.ClimateAc, DeviceRole.ClimateThermostat, DeviceRole.ClimateFloor, DeviceRole.ClimateRadiator, DeviceRole.ClimateHeater, DeviceRole.ClimateHeatPumpCircuit, DeviceRole.MotionSensor, DeviceRole.ContactSensor, DeviceRole.LeakSensor, DeviceRole.SmokeSensor, DeviceRole.COSensor, DeviceRole.GasSensor, DeviceRole.TamperSensor, DeviceRole.VibrationSensor, DeviceRole.ConnectivitySensor, DeviceRole.SoundSensor, DeviceRole.BinarySensor, DeviceRole.TemperatureSensor, DeviceRole.HumiditySensor, DeviceRole.AmbientLightSensor, DeviceRole.PressureSensor, DeviceRole.WindSensor, DeviceRole.RainSensor, DeviceRole.UvSensor, DeviceRole.SolarRadiationSensor, DeviceRole.SoilMoistureSensor, DeviceRole.PowerSensor, DeviceRole.EnergySensor, DeviceRole.VoltageSensor, DeviceRole.CurrentSensor, DeviceRole.AirQualitySensor, DeviceRole.BatterySensor, DeviceRole.NumericSensor, DeviceRole.EnumSensor, DeviceRole.DateTimeSensor, DeviceRole.GenericSensor, DeviceRole.NumericControl, DeviceRole.SelectControl, DeviceRole.TextControl, DeviceRole.DateTimeControl, DeviceRole.MobilePushNotifier, DeviceRole.MessagingNotifier, DeviceRole.EmailNotifier, DeviceRole.GenericNotifier, DeviceRole.IrTransmitter, DeviceRole.Vm, DeviceRole.AppContainer, DeviceRole.Lxc, DeviceRole.App, DeviceRole.Host;
100863
101951
  new Set(Object.values(DeviceType));
100864
101952
  new Set(Object.values(DeviceRole));
100865
101953
  Object.freeze({
@@ -101561,6 +102649,11 @@ Object.freeze({
101561
102649
  form: "single",
101562
102650
  optional: false
101563
102651
  }],
102652
+ "deviceManager.setIdentifiers": [{
102653
+ name: "deviceId",
102654
+ form: "single",
102655
+ optional: false
102656
+ }],
101564
102657
  "deviceManager.setIntegrationId": [{
101565
102658
  name: "deviceId",
101566
102659
  form: "single",
@@ -103555,6 +104648,11 @@ Object.freeze({
103555
104648
  form: "single",
103556
104649
  optional: false
103557
104650
  }],
104651
+ "siren.getPlayChoices": [{
104652
+ name: "deviceId",
104653
+ form: "single",
104654
+ optional: false
104655
+ }],
103558
104656
  "siren.getStatus": [{
103559
104657
  name: "deviceId",
103560
104658
  form: "single",
@@ -103737,11 +104835,21 @@ Object.freeze({
103737
104835
  form: "single",
103738
104836
  optional: false
103739
104837
  }],
104838
+ "switch.getOptions": [{
104839
+ name: "deviceId",
104840
+ form: "single",
104841
+ optional: false
104842
+ }],
103740
104843
  "switch.getStatus": [{
103741
104844
  name: "deviceId",
103742
104845
  form: "single",
103743
104846
  optional: false
103744
104847
  }],
104848
+ "switch.powerCycle": [{
104849
+ name: "deviceId",
104850
+ form: "single",
104851
+ optional: false
104852
+ }],
103745
104853
  "switch.setState": [{
103746
104854
  name: "deviceId",
103747
104855
  form: "single",
@@ -103982,6 +105090,46 @@ Object.freeze({
103982
105090
  form: "single",
103983
105091
  optional: false
103984
105092
  }],
105093
+ "workload.forceStop": [{
105094
+ name: "deviceId",
105095
+ form: "single",
105096
+ optional: false
105097
+ }],
105098
+ "workload.getOptions": [{
105099
+ name: "deviceId",
105100
+ form: "single",
105101
+ optional: false
105102
+ }],
105103
+ "workload.getStatus": [{
105104
+ name: "deviceId",
105105
+ form: "single",
105106
+ optional: false
105107
+ }],
105108
+ "workload.pause": [{
105109
+ name: "deviceId",
105110
+ form: "single",
105111
+ optional: false
105112
+ }],
105113
+ "workload.restart": [{
105114
+ name: "deviceId",
105115
+ form: "single",
105116
+ optional: false
105117
+ }],
105118
+ "workload.resume": [{
105119
+ name: "deviceId",
105120
+ form: "single",
105121
+ optional: false
105122
+ }],
105123
+ "workload.start": [{
105124
+ name: "deviceId",
105125
+ form: "single",
105126
+ optional: false
105127
+ }],
105128
+ "workload.stop": [{
105129
+ name: "deviceId",
105130
+ form: "single",
105131
+ optional: false
105132
+ }],
103985
105133
  "zoneAnalytics.getCameraHistory": [{
103986
105134
  name: "deviceId",
103987
105135
  form: "single",
@@ -105198,6 +106346,8 @@ var TimelapseRuleInputSchema = object({
105198
106346
  /** Canonical notification priority ordinal (1..5); per-target overridable. */
105199
106347
  priority: PriorityField.default(3),
105200
106348
  /** Per-target settings keyed by target id (D1032) — absent = every target follows the rule. */
106349
+ /** Operator labels (D1054) — optional and NEVER defaulted: an absent key leaves the stored tags alone; `[]` clears them. Admin-only. */
106350
+ tags: TagsFieldSchema.optional(),
105201
106351
  targetOverrides: NcTargetOverridesSchema.optional()
105202
106352
  });
105203
106353
  object({
@@ -105216,6 +106366,8 @@ object({
105216
106366
  reportClasses: ReportClassesField.optional(),
105217
106367
  priority: PriorityField.optional(),
105218
106368
  /** Per-target settings keyed by target id (D1032) — absent = every target follows the rule. */
106369
+ /** Absent = keep the stored tags; `[]` clears them (D1054). Never defaulted. */
106370
+ tags: TagsFieldSchema.optional(),
105219
106371
  targetOverrides: NcTargetOverridesSchema.optional()
105220
106372
  });
105221
106373
  TimelapseRuleInputSchema.extend({
@@ -105469,7 +106621,7 @@ var AdminUIAddon = class extends BaseAddon {
105469
106621
  capability: adminUiCapability,
105470
106622
  provider: {
105471
106623
  getStaticDir: async () => ({ staticDir: resolveAdminUiDistDir() }),
105472
- getVersion: async () => ({ version: "1.2.690" })
106624
+ getVersion: async () => ({ version: "1.2.692" })
105473
106625
  }
105474
106626
  }];
105475
106627
  }