@camstack/addon-admin-ui 1.2.691 → 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 (123) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/assets/{AccessSection-D8SFhAIG.js → AccessSection-IxFRkyj7.js} +1 -1
  3. package/dist/assets/Addons-7QqgosGD.js +5 -0
  4. package/dist/assets/{AdminPage-Dr8PsIuX.js → AdminPage-C-qoUzpo.js} +1 -1
  5. package/dist/assets/{AdminSectionedPage-C3NbPIMK.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-EahE9xrT.js → BootstrapSettingsForm-weEVSaW9.js} +1 -1
  9. package/dist/assets/Build-CpaKZqNA.js +40 -0
  10. package/dist/assets/{Calendars-DqxqjWNj.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-PRxhQLdr.js → Devices-BfI-sOWA.js} +1 -1
  17. package/dist/assets/{EmbedDevicePage-cBOLQorO.js → EmbedDevicePage-CiYM6Lwi.js} +1 -1
  18. package/dist/assets/{EmbedPlayerPage-DSZTQL2b.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-DziYFJDe.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-D76tMs8T.js → Logs-D-XjeX6Q.js} +1 -1
  28. package/dist/assets/{MaskShapeCanvas-DhkgwuqU.js → MaskShapeCanvas-DIwpaQeo.js} +1 -1
  29. package/dist/assets/{MotionZonesSettings-ePEXl_eY.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-DcAnxwF1.js → NewExportModal-DQeqPWZf.js} +1 -1
  33. package/dist/assets/NodeAddonsSettingsPanel-CR7F2HPi.js +1 -0
  34. package/dist/assets/Notifications-BLVeFuqL.js +1 -0
  35. package/dist/assets/{PanelContent-BD4VlG0k.js → PanelContent-_b3IZ4jp.js} +2 -2
  36. package/dist/assets/Pipeline-BH757Q4y.js +1 -0
  37. package/dist/assets/{PrivacyMaskSettings-BKbsxTCz.js → PrivacyMaskSettings-wIoHPyAB.js} +1 -1
  38. package/dist/assets/{SceneMonitorEditor-BsG_DspV.js → SceneMonitorEditor-CgSpBLHL.js} +1 -1
  39. package/dist/assets/SessionsList-DAl5HWdR.js +2 -0
  40. package/dist/assets/{Showroom-syizHLdc.js → Showroom-CLeEbai0.js} +1 -1
  41. package/dist/assets/{StorageLocationsTable-DX9GAr79.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/{Terminal-DNCcPfaX.js → Terminal-BBmwTJmz.js} +5 -5
  45. package/dist/assets/{TrainingProviders-Kir4QyJ0.js → TrainingProviders-ZSQkR2BW.js} +1 -1
  46. package/dist/assets/{Viewer-CxhObjjY.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-DrIBdeiK.js → _virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-UPf5SCPP.js} +1 -1
  49. package/dist/assets/{action-draft-BaaZLiaa.js → action-draft-R9VQXuuL.js} +1 -1
  50. package/dist/assets/{ai-page.helpers-ByoISKAg.js → ai-page.helpers-DDnyI4U7.js} +1 -1
  51. package/dist/assets/{assignment-candidates-CfAyipS2.js → assignment-candidates-CuwMc1Y3.js} +1 -1
  52. package/dist/assets/{authed-media-DHr41d8D.js → authed-media-Yoylp29g.js} +1 -1
  53. package/dist/assets/{board-model-COHOZu1s.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-CopJIH2j.js → command-vocab-CUgG-vto.js} +1 -1
  57. package/dist/assets/{device-detail-Bg2Ezyca.js → device-detail-CTwVaaMw.js} +1 -1
  58. package/dist/assets/{device-integration-icon-C0zbgR36.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-DVtQDLvq.js → format-BkMEj2-U.js} +1 -1
  63. package/dist/assets/{hostInit-BTfD9BWB.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-CmiXN3Md.js → linked-devices-model-DbsUI34s.js} +1 -1
  69. package/dist/assets/{mf-entry-bootstrap-0-8b23b2f2.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-C6gd_uCT.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/src-BpSavQVe.js +279 -0
  75. package/dist/assets/{sso-popup-CH6-S_OR.js → sso-popup-BRNSJ3u5.js} +1 -1
  76. package/dist/assets/{step-inspector-model-BG1lVQcU.js → step-inspector-model-vNRpA1zj.js} +1 -1
  77. package/dist/assets/{terminal-Dgb4lrgM.js → terminal-DZ5OZpgC.js} +1 -1
  78. package/dist/assets/{use-scenes-feed-CWLyPlSj.js → use-scenes-feed-B5mMm_aS.js} +1 -1
  79. package/dist/assets/{useAdminDeviceRemoval-CK2_Fytr.js → useAdminDeviceRemoval-D14n1vjW.js} +1 -1
  80. package/dist/assets/useEventInvalidation-BGR7et-m.js +1 -0
  81. package/dist/assets/{useNodeUrlSelection-piTRveNK.js → useNodeUrlSelection-BYENLdUH.js} +1 -1
  82. package/dist/assets/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-ePjBjURL.js → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-BccQkG1p.js} +2 -2
  83. package/dist/index.html +11 -11
  84. package/dist/server/addon.js +1253 -174
  85. package/package.json +2 -2
  86. package/dist/assets/Addons-4zb8WqsP.js +0 -5
  87. package/dist/assets/AiProfiles-09uEdzUc.js +0 -3
  88. package/dist/assets/Archive-DDg3Te3v.js +0 -1
  89. package/dist/assets/Build-Dysn_dsI.js +0 -40
  90. package/dist/assets/CameraGrids-BaVLUgNc.js +0 -1
  91. package/dist/assets/Cluster-DCb9pTRO.js +0 -1
  92. package/dist/assets/CompositionBlockEditor-Bo7NCArN.js +0 -2
  93. package/dist/assets/CompositionEditorPage-D9gqtKg_.js +0 -1
  94. package/dist/assets/Data-CCfGw4D3.js +0 -2
  95. package/dist/assets/DeviceDetail-DGaYflb1.js +0 -1
  96. package/dist/assets/History-BzHUR50W.js +0 -1
  97. package/dist/assets/Identity-BH_Psx-M.js +0 -1
  98. package/dist/assets/InstancesTable-BkkLy_BU.js +0 -1
  99. package/dist/assets/IntegrationDetail-Dh1zEIkB.js +0 -1
  100. package/dist/assets/Integrations-I8w-NmB5.js +0 -1
  101. package/dist/assets/Library-CrU752kO.js +0 -1
  102. package/dist/assets/Locations-Cz9dHdgC.js +0 -3
  103. package/dist/assets/MyAccess-DrN6K8e1.js +0 -2
  104. package/dist/assets/Network-CcBl6Bv3.js +0 -1
  105. package/dist/assets/NodeAddonsSettingsPanel-BUnGcCpc.js +0 -1
  106. package/dist/assets/Notifications-DC_4_Px5.js +0 -1
  107. package/dist/assets/Pipeline-C9c451F4.js +0 -1
  108. package/dist/assets/SessionsList-CXVcORvl.js +0 -2
  109. package/dist/assets/System-D_y9BjT7.js +0 -1
  110. package/dist/assets/TemplateEditorDialog-Dg33OIxl.js +0 -1
  111. package/dist/assets/client-dUCYJcne.js +0 -1120
  112. package/dist/assets/device-picker-model-QTALOVj9.js +0 -1
  113. package/dist/assets/dist-BqygMNK3.js +0 -1
  114. package/dist/assets/dist-DcdbWcG-.js +0 -1120
  115. package/dist/assets/i18n-CtEN5OSf.js +0 -1
  116. package/dist/assets/icons-J91dUPcu.js +0 -1
  117. package/dist/assets/index-BuwKkAl-.js +0 -6
  118. package/dist/assets/index-pEaRJHY2.css +0 -2
  119. package/dist/assets/mount-QTALOVj9.js +0 -1
  120. package/dist/assets/player-overlays-CMIUmcCR.js +0 -1
  121. package/dist/assets/remoteEntry-CYYrFOe1.js +0 -1
  122. package/dist/assets/src-CZCLpkMn.js +0 -279
  123. package/dist/assets/useEventInvalidation-QTALOVj9.js +0 -1
@@ -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()
22335
- }),
22336
- object({
22337
- kind: literal("arithmetic"),
22338
- op: _enum([
22339
- "sum",
22340
- "difference",
22341
- "ratio"
22342
- ]),
22343
- inputs: array(HelperMemberSchema).min(2).max(64)
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)
22344
22993
  }),
22345
22994
  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"])
22995
+ kind: literal("terminal"),
22996
+ terminalId: string().uuid()
22353
22997
  }),
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
  });
@@ -80613,7 +81350,18 @@ DeviceType.Camera, method(object({
80613
81350
  * older than this field keeps working unchanged (D382 — an unstated
80614
81351
  * ask is zero).
80615
81352
  */
80616
- 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()
80617
81365
  }), ClipStreamDialSchema, {
80618
81366
  kind: "query",
80619
81367
  auth: "protected"
@@ -80842,7 +81590,8 @@ _enum([
80842
81590
  "camera-refused",
80843
81591
  "fetch-failed",
80844
81592
  "too-large-to-transfer",
80845
- "wake-expired"
81593
+ "wake-expired",
81594
+ "wake-timeout"
80846
81595
  ]);
80847
81596
  /** Candidate download URLs (LAN first, then operator extra hosts). */
80848
81597
  var ExportDownloadSchema = object({
@@ -82705,6 +83454,16 @@ var SirenOptionsSchema = object({
82705
83454
  rangeSeconds: SirenDurationRangeSchema.nullable(),
82706
83455
  /** The camera's default duration, seconds. */
82707
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),
82708
83467
  /** What the camera counts natively. */
82709
83468
  unit: _enum([SirenDurationUnit.Seconds, SirenDurationUnit.Plays]),
82710
83469
  /** Seconds one play lasts, when `unit` is `plays`; `null` for a seconds camera. */
@@ -82721,19 +83480,38 @@ var SirenStatusSchema = object({
82721
83480
  activeUntil: number$1().nullable(),
82722
83481
  /** Duration of the current / last activation, seconds; `null` when none yet. */
82723
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),
82724
83493
  /** Ms epoch of the last trigger (0 = never). */
82725
83494
  lastTriggeredAt: number$1()
82726
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
+ });
82727
83505
  SirenStatusSchema.extend({
82728
83506
  /** Ms epoch of the last successful camera read of the options (0 = never). */
82729
83507
  lastFetchedAt: number$1() });
82730
83508
  DeviceType.Siren, method(object({ deviceId: number$1().int().nonnegative() }), SirenOptionsSchema, {
82731
83509
  kind: "query",
82732
83510
  auth: "protected"
82733
- }), method(object({
82734
- deviceId: number$1().int().nonnegative(),
82735
- durationSeconds: number$1().positive().optional()
82736
- }), SirenStatusSchema, {
83511
+ }), method(object({ deviceId: number$1().int().nonnegative() }), array(number$1().int().positive()), {
83512
+ kind: "query",
83513
+ auth: "protected"
83514
+ }), method(SirenTriggerInputSchema, SirenStatusSchema, {
82737
83515
  kind: "mutation",
82738
83516
  auth: "protected",
82739
83517
  actions: [{
@@ -82742,6 +83520,21 @@ DeviceType.Siren, method(object({ deviceId: number$1().int().nonnegative() }), S
82742
83520
  phrase: t("Sound {device}", "Fai suonare {device}"),
82743
83521
  icon: "siren",
82744
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
+ }]
82745
83538
  }]
82746
83539
  }), method(object({ deviceId: number$1().int().nonnegative() }), SirenStatusSchema, {
82747
83540
  kind: "mutation",
@@ -83663,6 +84456,26 @@ object({
83663
84456
  /** Ms epoch of the last state change. Useful for UI "X minutes ago". */
83664
84457
  lastChangedAt: number$1()
83665
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({});
83666
84479
  DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, method(object({
83667
84480
  deviceId: number$1(),
83668
84481
  on: boolean()
@@ -83678,7 +84491,8 @@ DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, method(ob
83678
84491
  field: "on",
83679
84492
  value: true
83680
84493
  },
83681
- args: { on: true }
84494
+ args: { on: true },
84495
+ offeredWhen: SWITCH_SETTABLE_GATE
83682
84496
  }, {
83683
84497
  id: "switch.off",
83684
84498
  label: t("Turn off", "Spegni"),
@@ -83688,8 +84502,13 @@ DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, method(ob
83688
84502
  field: "on",
83689
84503
  value: false
83690
84504
  },
83691
- args: { on: false }
84505
+ args: { on: false },
84506
+ offeredWhen: SWITCH_SETTABLE_GATE
83692
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"
83693
84512
  }), optionalMethod(object({ deviceId: number$1() }), _void(), {
83694
84513
  kind: "mutation",
83695
84514
  auth: "protected",
@@ -83697,13 +84516,14 @@ DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, method(ob
83697
84516
  id: "switch.toggle",
83698
84517
  label: t("Toggle", "Commuta"),
83699
84518
  phrase: t("Toggle {device}", "Commuta {device}"),
83700
- icon: "toggle-right"
84519
+ icon: "toggle-right",
84520
+ offeredWhen: SWITCH_SETTABLE_GATE
83701
84521
  }]
83702
84522
  }), object({
83703
84523
  deviceId: number$1(),
83704
84524
  on: boolean().nullable(),
83705
84525
  lastChangedAt: number$1()
83706
- }), 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;
83707
84527
  /** C0 controls, DEL and the C1 range: none of them belongs in a name. */
83708
84528
  function hasControlCharacter(value) {
83709
84529
  for (const char of value) {
@@ -84783,7 +85603,6 @@ method(object({ kind: TemplateKindSchema.optional() }), array(TemplateRecordSche
84783
85603
  });
84784
85604
  /** Profile-exported FormBuilder schema. Shape is ConfigUISchema at the UI. */
84785
85605
  var ProfileSettingsSchemaBridge = unknown().nullable();
84786
- var ProfileSettingsBagSchema = record(string(), unknown());
84787
85606
  /**
84788
85607
  * A live terminal session hosted by the provider addon. Output and input do
84789
85608
  * NOT flow through the capability — they use the addon data plane
@@ -84826,39 +85645,6 @@ var TerminalProfileInfoSchema = object({
84826
85645
  /** ConfigUISchema for instance knobs, or null when the profile has none. */
84827
85646
  settingsSchema: ProfileSettingsSchemaBridge.optional()
84828
85647
  });
84829
- /**
84830
- * A durable operator-created Terminal instance. Profiles are templates; only
84831
- * an instance declares a camera.
84832
- */
84833
- var TerminalInstanceInfoSchema = object({
84834
- instanceId: string(),
84835
- cameraStableId: string(),
84836
- nodeId: string(),
84837
- /**
84838
- * False while the node the instance is bound to is not in the cluster
84839
- * topology (forgotten, renamed, re-paired). The instance is kept; the
84840
- * operator re-points it on the Terminal page.
84841
- */
84842
- nodeInCluster: boolean(),
84843
- profileId: string(),
84844
- profileLabel: string(),
84845
- name: string(),
84846
- enabled: boolean(),
84847
- executable: string(),
84848
- args: array(string()).readonly(),
84849
- cwd: string(),
84850
- environment: array(string()).readonly(),
84851
- profileSettings: ProfileSettingsBagSchema
84852
- });
84853
- var TerminalLegacyCameraSchema = object({
84854
- stableId: string(),
84855
- nodeId: string(),
84856
- profileId: string(),
84857
- profileLabel: string(),
84858
- name: string(),
84859
- /** Only legacy monitor cameras can retain their historic stable identity. */
84860
- adoptable: boolean()
84861
- });
84862
85648
  var TerminalOutputEventSchema = discriminatedUnion("kind", [object({
84863
85649
  seq: number$1().int().positive(),
84864
85650
  kind: literal("data"),
@@ -84886,13 +85672,7 @@ var TerminalOutputBatchSchema = object({
84886
85672
  snapshot: string().optional(),
84887
85673
  events: array(TerminalOutputEventSchema).readonly()
84888
85674
  });
84889
- method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }), method(_void(), array(TerminalLegacyCameraSchema).readonly(), { auth: "admin" }), method(object({
84890
- stableId: string().min(1),
84891
- name: string().trim().min(1).max(160).optional()
84892
- }), TerminalInstanceInfoSchema, {
84893
- kind: "mutation",
84894
- auth: "admin"
84895
- }), 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({
84896
85676
  profileId: string(),
84897
85677
  cols: number$1().int().positive(),
84898
85678
  rows: number$1().int().positive(),
@@ -87005,6 +87785,175 @@ DeviceType.Camera, method(object({ deviceId: number$1().int().nonnegative() }),
87005
87785
  deviceId: number$1().int().nonnegative(),
87006
87786
  sessionId: string()
87007
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;
87008
87957
  /**
87009
87958
  * Per-zone occupancy aggregation produced by the analytics frame
87010
87959
  * processor on every inference result. Covers the full combinatorial
@@ -87602,7 +88551,7 @@ var AccessoryKind = {
87602
88551
  };
87603
88552
  AccessoryKind.Siren, AccessoryKind.Floodlight, AccessoryKind.Spotlight, AccessoryKind.PirSensor, AccessoryKind.Chime, AccessoryKind.Autotrack, AccessoryKind.Nightvision, AccessoryKind.PrivacyMask;
87604
88553
  DeviceType.HeatPump;
87605
- 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;
87606
88555
  new Set(Object.values(DeviceType));
87607
88556
  /** Parses the raw slice with the cap's own schema; `undefined` when it does not parse. */
87608
88557
  function contribution(cap, schema, build) {
@@ -89658,7 +90607,7 @@ var HEAT_PUMP_FAMILY_CONTRIBUTIONS = { "heat-pump-status": contribution("heat-pu
89658
90607
  ...Object.values(CLIMATE_FAMILY_CONTRIBUTIONS),
89659
90608
  ...Object.values(HEAT_PUMP_FAMILY_CONTRIBUTIONS)
89660
90609
  ];
89661
- 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;
89662
90611
  /**
89663
90612
  * Who looks like what (D1023). One look per {@link DeviceType}, refined by a
89664
90613
  * {@link DeviceRole} where the role changes how the device reads (a leak
@@ -90302,8 +91251,8 @@ lookOf({
90302
91251
  standby: MUTED
90303
91252
  });
90304
91253
  DeviceType.Climate;
90305
- 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;
90306
- 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;
90307
91256
  Object.freeze({
90308
91257
  "accessories.getStatus": {
90309
91258
  capName: "accessories",
@@ -92965,6 +93914,13 @@ Object.freeze({
92965
93914
  access: "create",
92966
93915
  role: "admin"
92967
93916
  },
93917
+ "deviceManager.setIdentifiers": {
93918
+ capName: "device-manager",
93919
+ capScope: "system",
93920
+ addonId: null,
93921
+ access: "create",
93922
+ role: "admin"
93923
+ },
92968
93924
  "deviceManager.setIntegrationId": {
92969
93925
  capName: "device-manager",
92970
93926
  capScope: "system",
@@ -98887,6 +99843,13 @@ Object.freeze({
98887
99843
  access: "view",
98888
99844
  role: "viewer"
98889
99845
  },
99846
+ "siren.getPlayChoices": {
99847
+ capName: "siren",
99848
+ capScope: "device",
99849
+ addonId: null,
99850
+ access: "view",
99851
+ role: "viewer"
99852
+ },
98890
99853
  "siren.getStatus": {
98891
99854
  capName: "siren",
98892
99855
  capScope: "device",
@@ -99699,6 +100662,13 @@ Object.freeze({
99699
100662
  access: "view",
99700
100663
  role: "viewer"
99701
100664
  },
100665
+ "switch.getOptions": {
100666
+ capName: "switch",
100667
+ capScope: "device",
100668
+ addonId: null,
100669
+ access: "view",
100670
+ role: "viewer"
100671
+ },
99702
100672
  "switch.getStatus": {
99703
100673
  capName: "switch",
99704
100674
  capScope: "device",
@@ -99706,6 +100676,13 @@ Object.freeze({
99706
100676
  access: "view",
99707
100677
  role: "viewer"
99708
100678
  },
100679
+ "switch.powerCycle": {
100680
+ capName: "switch",
100681
+ capScope: "device",
100682
+ addonId: null,
100683
+ access: "create",
100684
+ role: "viewer"
100685
+ },
99709
100686
  "switch.setState": {
99710
100687
  capName: "switch",
99711
100688
  capScope: "device",
@@ -99909,13 +100886,6 @@ Object.freeze({
99909
100886
  access: "create",
99910
100887
  role: "admin"
99911
100888
  },
99912
- "terminalSession.adoptLegacyMonitor": {
99913
- capName: "terminal-session",
99914
- capScope: "system",
99915
- addonId: null,
99916
- access: "create",
99917
- role: "admin"
99918
- },
99919
100889
  "terminalSession.close": {
99920
100890
  capName: "terminal-session",
99921
100891
  capScope: "system",
@@ -99923,13 +100893,6 @@ Object.freeze({
99923
100893
  access: "create",
99924
100894
  role: "admin"
99925
100895
  },
99926
- "terminalSession.listLegacyCameras": {
99927
- capName: "terminal-session",
99928
- capScope: "system",
99929
- addonId: null,
99930
- access: "view",
99931
- role: "admin"
99932
- },
99933
100896
  "terminalSession.listProfiles": {
99934
100897
  capName: "terminal-session",
99935
100898
  capScope: "system",
@@ -100791,6 +101754,62 @@ Object.freeze({
100791
101754
  access: "view",
100792
101755
  role: "viewer"
100793
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
+ },
100794
101813
  "zoneAnalytics.getCameraHistory": {
100795
101814
  capName: "zone-analytics",
100796
101815
  capScope: "device",
@@ -100927,8 +101946,8 @@ function offered(received) {
100927
101946
  };
100928
101947
  }
100929
101948
  offered(HA_AS), withheld(HOMEKIT_REASON), withheld(ALEXA_REASON), withheld(GOOGLE_REASON), withheld(MATTER_REASON);
100930
- 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;
100931
- 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;
100932
101951
  new Set(Object.values(DeviceType));
100933
101952
  new Set(Object.values(DeviceRole));
100934
101953
  Object.freeze({
@@ -101630,6 +102649,11 @@ Object.freeze({
101630
102649
  form: "single",
101631
102650
  optional: false
101632
102651
  }],
102652
+ "deviceManager.setIdentifiers": [{
102653
+ name: "deviceId",
102654
+ form: "single",
102655
+ optional: false
102656
+ }],
101633
102657
  "deviceManager.setIntegrationId": [{
101634
102658
  name: "deviceId",
101635
102659
  form: "single",
@@ -103624,6 +104648,11 @@ Object.freeze({
103624
104648
  form: "single",
103625
104649
  optional: false
103626
104650
  }],
104651
+ "siren.getPlayChoices": [{
104652
+ name: "deviceId",
104653
+ form: "single",
104654
+ optional: false
104655
+ }],
103627
104656
  "siren.getStatus": [{
103628
104657
  name: "deviceId",
103629
104658
  form: "single",
@@ -103806,11 +104835,21 @@ Object.freeze({
103806
104835
  form: "single",
103807
104836
  optional: false
103808
104837
  }],
104838
+ "switch.getOptions": [{
104839
+ name: "deviceId",
104840
+ form: "single",
104841
+ optional: false
104842
+ }],
103809
104843
  "switch.getStatus": [{
103810
104844
  name: "deviceId",
103811
104845
  form: "single",
103812
104846
  optional: false
103813
104847
  }],
104848
+ "switch.powerCycle": [{
104849
+ name: "deviceId",
104850
+ form: "single",
104851
+ optional: false
104852
+ }],
103814
104853
  "switch.setState": [{
103815
104854
  name: "deviceId",
103816
104855
  form: "single",
@@ -104051,6 +105090,46 @@ Object.freeze({
104051
105090
  form: "single",
104052
105091
  optional: false
104053
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
+ }],
104054
105133
  "zoneAnalytics.getCameraHistory": [{
104055
105134
  name: "deviceId",
104056
105135
  form: "single",
@@ -105542,7 +106621,7 @@ var AdminUIAddon = class extends BaseAddon {
105542
106621
  capability: adminUiCapability,
105543
106622
  provider: {
105544
106623
  getStaticDir: async () => ({ staticDir: resolveAdminUiDistDir() }),
105545
- getVersion: async () => ({ version: "1.2.691" })
106624
+ getVersion: async () => ({ version: "1.2.692" })
105546
106625
  }
105547
106626
  }];
105548
106627
  }