@camstack/addon-admin-ui 1.2.691 → 1.2.693

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 +22 -0
  2. package/dist/assets/{AccessSection-D8SFhAIG.js → AccessSection-BTyH6Uq_.js} +1 -1
  3. package/dist/assets/Addons-VJhgqhzH.js +5 -0
  4. package/dist/assets/{AdminPage-Dr8PsIuX.js → AdminPage-DHZrZAII.js} +1 -1
  5. package/dist/assets/{AdminSectionedPage-C3NbPIMK.js → AdminSectionedPage-3Jh0qbF0.js} +1 -1
  6. package/dist/assets/AiProfiles-Dle37tWQ.js +3 -0
  7. package/dist/assets/Archive-SdeDPpcj.js +1 -0
  8. package/dist/assets/{BootstrapSettingsForm-EahE9xrT.js → BootstrapSettingsForm-DhCX-aLg.js} +1 -1
  9. package/dist/assets/Build-DY6Kzxeg.js +40 -0
  10. package/dist/assets/{Calendars-DqxqjWNj.js → Calendars-C8ofmzzq.js} +1 -1
  11. package/dist/assets/Cluster-JhBKuQrD.js +1 -0
  12. package/dist/assets/CompositionBlockEditor-Br6RqkCB.js +2 -0
  13. package/dist/assets/CompositionEditorPage-15ZoqacB.js +1 -0
  14. package/dist/assets/Data-B5ocdjeC.js +2 -0
  15. package/dist/assets/DeviceDetail-CFZv3c_f.js +1 -0
  16. package/dist/assets/{Devices-PRxhQLdr.js → Devices-WxmPKN4U.js} +1 -1
  17. package/dist/assets/{EmbedDevicePage-cBOLQorO.js → EmbedDevicePage-8R3q6IQn.js} +1 -1
  18. package/dist/assets/{EmbedPlayerPage-DSZTQL2b.js → EmbedPlayerPage-GnCekJoU.js} +1 -1
  19. package/dist/assets/History-BtkXJRVt.js +1 -0
  20. package/dist/assets/Identity-BCgp4vmD.js +1 -0
  21. package/dist/assets/InstancesTable-C81CknSI.js +1 -0
  22. package/dist/assets/IntegrationDetail-D-YgdyLl.js +1 -0
  23. package/dist/assets/Integrations-DNAuezUf.js +1 -0
  24. package/dist/assets/{Integrations-DziYFJDe.js → Integrations-DvJiMePt.js} +2 -2
  25. package/dist/assets/Library-DhRQQIcQ.js +1 -0
  26. package/dist/assets/Locations-CzTWySjI.js +3 -0
  27. package/dist/assets/{Logs-D76tMs8T.js → Logs-Qs13Mwb4.js} +1 -1
  28. package/dist/assets/{MaskShapeCanvas-DhkgwuqU.js → MaskShapeCanvas-Dj-FghGr.js} +1 -1
  29. package/dist/assets/{MotionZonesSettings-ePEXl_eY.js → MotionZonesSettings-DbgeWC2L.js} +1 -1
  30. package/dist/assets/MyAccess-WIF20bV3.js +2 -0
  31. package/dist/assets/Network-C3KG_FSW.js +1 -0
  32. package/dist/assets/{NewExportModal-DcAnxwF1.js → NewExportModal-Dy3oNUAO.js} +1 -1
  33. package/dist/assets/NodeAddonsSettingsPanel-DdbuZ3Yi.js +1 -0
  34. package/dist/assets/Notifications-Bqde3sni.js +1 -0
  35. package/dist/assets/{PanelContent-BD4VlG0k.js → PanelContent-BMrwHYf4.js} +2 -2
  36. package/dist/assets/Pipeline-BYpUtJpZ.js +1 -0
  37. package/dist/assets/{PrivacyMaskSettings-BKbsxTCz.js → PrivacyMaskSettings-BWDEhn0S.js} +1 -1
  38. package/dist/assets/{SceneMonitorEditor-BsG_DspV.js → SceneMonitorEditor-df7cZ311.js} +1 -1
  39. package/dist/assets/SessionsList-Bjhwy-7x.js +2 -0
  40. package/dist/assets/{Showroom-syizHLdc.js → Showroom-DCb25_tl.js} +1 -1
  41. package/dist/assets/{StorageLocationsTable-DX9GAr79.js → StorageLocationsTable-D29oGl9n.js} +1 -1
  42. package/dist/assets/System-Bz2RLf9j.js +1 -0
  43. package/dist/assets/TemplateEditorDialog-C0r2EnJJ.js +1 -0
  44. package/dist/assets/{Terminal-DNCcPfaX.js → Terminal-8cb4qrcL.js} +5 -5
  45. package/dist/assets/{TrainingProviders-Kir4QyJ0.js → TrainingProviders-DiSjJ4vy.js} +1 -1
  46. package/dist/assets/{Viewer-CxhObjjY.js → Viewer-JA89uHB4.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-CaJo1z-X.js} +1 -1
  49. package/dist/assets/{action-draft-BaaZLiaa.js → action-draft-80EQEtaM.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-5H8d1AOa.js} +1 -1
  52. package/dist/assets/{authed-media-DHr41d8D.js → authed-media-Cu0gpTLP.js} +1 -1
  53. package/dist/assets/{board-model-COHOZu1s.js → board-model-D56hE08L.js} +1 -1
  54. package/dist/assets/camera-block-model-CCoPnK76.js +1 -0
  55. package/dist/assets/client-B3h-2G71.js +1120 -0
  56. package/dist/assets/{command-vocab-CopJIH2j.js → command-vocab-5-fsG014.js} +1 -1
  57. package/dist/assets/{device-detail-Bg2Ezyca.js → device-detail-iMuwFcWs.js} +1 -1
  58. package/dist/assets/{device-integration-icon-C0zbgR36.js → device-integration-icon-qHQjeL9y.js} +1 -1
  59. package/dist/assets/device-picker-model-DY4G4-U0.js +1 -0
  60. package/dist/assets/dist-Bt80qYnQ.js +1120 -0
  61. package/dist/assets/dist-C5ZYqtm3.js +1 -0
  62. package/dist/assets/{format-DVtQDLvq.js → format-BkMEj2-U.js} +1 -1
  63. package/dist/assets/{hostInit-BTfD9BWB.js → hostInit-DNeMlxxp.js} +1 -1
  64. package/dist/assets/i18n-BwW8nRaE.js +1 -0
  65. package/dist/assets/icons-CyWLWtXs.js +1 -0
  66. package/dist/assets/index-Bz3Pl5tG.css +2 -0
  67. package/dist/assets/index-D_vdUQKv.js +6 -0
  68. package/dist/assets/{linked-devices-model-CmiXN3Md.js → linked-devices-model-CI7wpAm-.js} +1 -1
  69. package/dist/assets/{mf-entry-bootstrap-0-8b23b2f2.js → mf-entry-bootstrap-0-c51fcd96.js} +2 -2
  70. package/dist/assets/mount-DY4G4-U0.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-ugkkFXtV.js +1 -0
  73. package/dist/assets/remoteEntry-CjuAs5ha.js +1 -0
  74. package/dist/assets/src-DeDx2fDl.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-BkoSviyf.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-bbgFxJ_U.js} +1 -1
  79. package/dist/assets/{useAdminDeviceRemoval-CK2_Fytr.js → useAdminDeviceRemoval-Ia1zPolI.js} +1 -1
  80. package/dist/assets/useEventInvalidation-DY4G4-U0.js +1 -0
  81. package/dist/assets/{useNodeUrlSelection-piTRveNK.js → useNodeUrlSelection-BQ2MYP7C.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_-BWXQZsum.js} +2 -2
  83. package/dist/index.html +11 -11
  84. package/dist/server/addon.js +1326 -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
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)
22321
22993
  }),
22322
22994
  object({
22323
- kind: literal("integral"),
22324
- reset: _enum(RESET_PERIODS),
22325
- output: _enum(["energy", "meter"]),
22326
- source: HelperMemberSchema
22995
+ kind: literal("terminal"),
22996
+ terminalId: string().uuid()
22327
22997
  }),
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)
22344
- }),
22345
- object({
22346
- kind: literal("expression"),
22347
- expr: string().min(1),
22348
- inputs: array(object({
22349
- name: string().min(1),
22350
- member: HelperMemberSchema
22351
- })).min(1).max(64),
22352
- output: _enum(["number", "boolean"])
22353
- }),
22354
- object({
22355
- kind: literal("derivative"),
22356
- window: RollingWindowSchema,
22357
- per: _enum([
22358
- "second",
22359
- "minute",
22360
- "hour"
22361
- ]),
22362
- source: HelperMemberSchema
22363
- })
22998
+ GroupHelperSpecSchema,
22999
+ statisticHelperObject,
23000
+ integralHelperObject,
23001
+ thresholdHelperObject,
23002
+ arithmeticHelperObject,
23003
+ expressionHelperObject,
23004
+ derivativeHelperObject
22364
23005
  ]);
22365
23006
  /** Longest snippet a `code` source may carry (slice 4). */
22366
23007
  var MAX_COMPOSITION_CODE_LENGTH = 2e4;
@@ -52955,9 +53596,10 @@ var GridProfileOfferSchema = object({
52955
53596
  published: boolean()
52956
53597
  });
52957
53598
  var GridLayoutViewSchema = object({
52958
- /** The persisted grid row this camera was declared from. */
52959
- instanceId: string(),
53599
+ /** The grid block (planning#580) whose camera this is. */
53600
+ blockId: string(),
52960
53601
  deviceId: number$1().int().nonnegative(),
53602
+ /** The device row's name — the only name a grid has; it is renamed on the block or the device. */
52961
53603
  name: string(),
52962
53604
  /**
52963
53605
  * NO canvas size. A grid's resolution is not authored: each profile derives
@@ -52973,7 +53615,6 @@ var GridLayoutViewSchema = object({
52973
53615
  });
52974
53616
  var GridLayoutPatchSchema = object({
52975
53617
  deviceId: number$1().int().nonnegative(),
52976
- name: string().min(1).max(160).optional(),
52977
53618
  fps: number$1().int().min(1).max(60).optional(),
52978
53619
  /** Which profiles to publish. See `GridProfileOffer.published`. */
52979
53620
  publishedProfiles: array(_enum([
@@ -55851,7 +56492,7 @@ DeviceType.MediaPlayer, optionalMethod(deviceOnly, _void(), {
55851
56492
  }]
55852
56493
  }]
55853
56494
  });
55854
- DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Climate, DeviceType.EventEmitter, DeviceType.Climate, DeviceType.Climate, DeviceType.Camera, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.WeatherStation, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway, DeviceType.HeatPump, DeviceType.EnergySystem, DeviceType.Camera, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Lock, DeviceType.Camera, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Gateway, DeviceType.Camera, DeviceType.Sensor, DeviceType.MediaPlayer, DeviceType.Vacuum, DeviceType.Generic, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.PetFountain, DeviceType.Fan, DeviceType.Humidifier, DeviceType.Climate, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.PetFeeder, DeviceType.MediaPlayer, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation;
56495
+ DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Climate, DeviceType.EventEmitter, DeviceType.Climate, DeviceType.Climate, DeviceType.Camera, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.WeatherStation, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway, DeviceType.HeatPump, DeviceType.EnergySystem, DeviceType.Workload, DeviceType.Camera, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Fan, DeviceType.Lock, DeviceType.Camera, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Gateway, DeviceType.Camera, DeviceType.Sensor, DeviceType.MediaPlayer, DeviceType.Vacuum, DeviceType.Generic, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.PetFountain, DeviceType.Fan, DeviceType.Humidifier, DeviceType.Climate, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.PetFeeder, DeviceType.MediaPlayer, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation, DeviceType.WeatherStation;
55855
56496
  var NUMBER = {
55856
56497
  kind: "fixed",
55857
56498
  result: ["number"]
@@ -56301,7 +56942,7 @@ new Map(GROUP_TEMPLATES.map((template) => [template.id, template]));
56301
56942
  DeviceType.Camera;
56302
56943
  /**
56303
56944
  * The series a device card trends, per cap (`history.primary` + `history.priority`):
56304
- * 6 caps. The card shows the primary of the enabled cap with the highest priority.
56945
+ * 7 caps. The card shows the primary of the enabled cap with the highest priority.
56305
56946
  */
56306
56947
  var HISTORY_PRIMARY = {
56307
56948
  "climate-control": {
@@ -56327,6 +56968,10 @@ var HISTORY_PRIMARY = {
56327
56968
  "weather-station": {
56328
56969
  field: "temperature",
56329
56970
  priority: 60
56971
+ },
56972
+ "workload": {
56973
+ field: "resources.cpuPercent",
56974
+ priority: 40
56330
56975
  }
56331
56976
  };
56332
56977
  DeviceFeature.LightColorRgb, DeviceFeature.LightColorHsv, DeviceFeature.LightColorMired;
@@ -56337,6 +56982,8 @@ var PowerSourceRefusalReasonSchema = _enum([
56337
56982
  "switch-unknown",
56338
56983
  "restart-in-progress",
56339
56984
  "switch-call-failed",
56985
+ "switch-options-unreadable",
56986
+ "not-settable",
56340
56987
  "switch-is-actuator"
56341
56988
  ]);
56342
56989
  var PowerSourceActionResultSchema = discriminatedUnion("accepted", [object({ accepted: literal(true) }), object({
@@ -56353,6 +57000,14 @@ var PowerSourceInfoSchema = object({
56353
57000
  /** The switch's on/off state, or null when it is unknown. Never false for unknown (D393). */
56354
57001
  switchOn: boolean().nullable(),
56355
57002
  switchOnline: boolean().nullable(),
57003
+ /**
57004
+ * Whether the linked switch can be set (`switch.getOptions().supportsSetState`; a provider
57005
+ * without the method is a plain switch, `true`). `null` = not known: no link, the switch is
57006
+ * missing, or the read FAILED. Absent = a provider that predates the field. Only `false`
57007
+ * withdraws power on / off (`offeredWhen` of `powerSource.on` / `.off`, the device hero) —
57008
+ * unknown keeps them (D315, D1058).
57009
+ */
57010
+ switchSettable: boolean().nullable().optional(),
56356
57011
  restartInProgress: boolean(),
56357
57012
  offSeconds: number$1().int()
56358
57013
  });
@@ -56364,6 +57019,11 @@ object({
56364
57019
  });
56365
57020
  DeviceType.Gateway, DeviceType.Camera, DeviceType.Sensor, DeviceType.MediaPlayer, DeviceType.Vacuum, DeviceType.Generic, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.PetFountain, DeviceType.Fan, DeviceType.Humidifier, DeviceType.Climate, DeviceType.WaterHeater;
56366
57021
  var deviceInput$2 = object({ deviceId: number$1().int().nonnegative() });
57022
+ /** The read that decides whether power on / off are offered (`offeredWhen`, D1058). */
57023
+ var POWER_SOURCE_SETTABLE_GATE = {
57024
+ method: "getStatus",
57025
+ field: "switchSettable"
57026
+ };
56367
57027
  systemMethod(deviceInput$2, PowerSourceInfoSchema, { auth: "protected" }), systemMethod(deviceInput$2, PowerSourceActionResultSchema, {
56368
57028
  kind: "mutation",
56369
57029
  auth: "protected",
@@ -56371,7 +57031,8 @@ systemMethod(deviceInput$2, PowerSourceInfoSchema, { auth: "protected" }), syste
56371
57031
  id: "powerSource.on",
56372
57032
  label: t("Power on", "Dai corrente"),
56373
57033
  phrase: t("Power on {device}", "Dai corrente a {device}"),
56374
- icon: "power"
57034
+ icon: "power",
57035
+ offeredWhen: POWER_SOURCE_SETTABLE_GATE
56375
57036
  }]
56376
57037
  }), systemMethod(deviceInput$2, PowerSourceActionResultSchema, {
56377
57038
  kind: "mutation",
@@ -56380,7 +57041,8 @@ systemMethod(deviceInput$2, PowerSourceInfoSchema, { auth: "protected" }), syste
56380
57041
  id: "powerSource.off",
56381
57042
  label: t("Power off", "Togli corrente"),
56382
57043
  phrase: t("Cut the power of {device}", "Togli la corrente a {device}"),
56383
- icon: "power-off"
57044
+ icon: "power-off",
57045
+ offeredWhen: POWER_SOURCE_SETTABLE_GATE
56384
57046
  }]
56385
57047
  }), systemMethod(deviceInput$2, PowerSourceActionResultSchema, {
56386
57048
  kind: "mutation",
@@ -57821,6 +58483,113 @@ 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();
58530
+ /**
58531
+ * Cross-integration identity candidates (planning#593, step 2 of D1059's epic).
58532
+ *
58533
+ * Two devices brought by DIFFERENT integrations that share provider-declared
58534
+ * identifiers ({@link DeviceIdentifiers}) are candidates for being the same
58535
+ * physical object. This module holds the answer's shape; the device-manager
58536
+ * keeps the index that finds the pairs and the ONE rule that grades a match
58537
+ * (`classifyIdentityMatch`, `device-identity-index.ts`).
58538
+ *
58539
+ * The rule (operator, planning#590):
58540
+ *
58541
+ * | Matched keys | Confidence |
58542
+ * | ---------------------------------------------- | ----------- |
58543
+ * | two strong KINDS (e.g. `mac` + `serial`) | `auto` |
58544
+ * | `mac` + `ip` | `auto` |
58545
+ * | exactly one strong kind | `proposal` |
58546
+ * | weak keys only (`hostname`, `ip`) | no candidate|
58547
+ *
58548
+ * Strength counts distinct KINDS, not values: two MACs of one device matching
58549
+ * the other's two MACs are still one kind of evidence, so a proposal. In doubt,
58550
+ * no match.
58551
+ *
58552
+ * Read-only: a candidate is NOT a link. Links are step 3.
58553
+ */
58554
+ var IdentityConfidenceSchema = _enum(["auto", "proposal"]);
58555
+ /** One identifier both devices declared, with the same normalised value. */
58556
+ var IdentityMatchedKeySchema = object({
58557
+ key: DeviceIdentifierKeySchema,
58558
+ value: string()
58559
+ });
58560
+ /** One side of a pair: the device and the integration that brought it. */
58561
+ var IdentityCandidateDeviceSchema = object({
58562
+ deviceId: number$1().int(),
58563
+ addonId: string(),
58564
+ /** The integration instance (`int_NNNN`) that adopted it; `null` when none was stamped. */
58565
+ integrationId: string().nullable()
58566
+ });
58567
+ /** Two devices of different integrations sharing at least one strong identifier. `a.deviceId < b.deviceId`. */
58568
+ var IdentityCandidatePairSchema = object({
58569
+ a: IdentityCandidateDeviceSchema,
58570
+ b: IdentityCandidateDeviceSchema,
58571
+ /** Every identifier the two share, weak ones included, ordered by key then value. */
58572
+ keys: array(IdentityMatchedKeySchema).readonly(),
58573
+ confidence: IdentityConfidenceSchema
58574
+ });
58575
+ /**
58576
+ * The answer of `device-manager.listIdentityCandidates`.
58577
+ *
58578
+ * - `unknown` — the index has not loaded yet: nothing can be said, and it is
58579
+ * NOT an empty list (D315).
58580
+ * - `answered` — `pairs` holds every candidate. `undeclaredDeviceIds` are the
58581
+ * devices with no identifiers on record: whether they match anything is
58582
+ * UNKNOWN, never "no match" (D393). A device absent from both lists declared
58583
+ * identifiers and matched nobody.
58584
+ */
58585
+ var IdentityCandidatesSchema = discriminatedUnion("status", [object({
58586
+ status: literal("unknown"),
58587
+ reason: string()
58588
+ }), object({
58589
+ status: literal("answered"),
58590
+ pairs: array(IdentityCandidatePairSchema).readonly(),
58591
+ undeclaredDeviceIds: array(number$1().int()).readonly()
58592
+ })]);
57824
58593
  var DeviceSearchRequiresSchema = object({
57825
58594
  /** Capability names the field wants a value of. Absent when the field wants actions only. */
57826
58595
  caps: array(string()).readonly().optional(),
@@ -58289,6 +59058,10 @@ var DeviceInfoSchema = object({
58289
59058
  /** Hardware + identity blob (manufacturer / model / firmware / sn /
58290
59059
  * uid / mac / …). Populated by drivers; editable via setMetadata. */
58291
59060
  metadata: record(string(), unknown()).nullable().optional(),
59061
+ /** Provider-declared identifiers (D1059): typed, normalised, written only by
59062
+ * the owning provider via `setIdentifiers`; read-only for the operator.
59063
+ * Absent ⇒ the provider declared none. */
59064
+ identifiers: DeviceIdentifiersSchema.optional(),
58292
59065
  /** Optional upstream-system identity + rendering envelope. See
58293
59066
  * `SourceInfo` in `packages/types/src/device/source-info.ts`. */
58294
59067
  sourceInfo: SourceInfoSchema.optional(),
@@ -58440,6 +59213,8 @@ var DeviceMetaSchema = object({
58440
59213
  disabled: boolean(),
58441
59214
  parentDeviceId: number$1().nullable(),
58442
59215
  metadata: record(string(), unknown()).nullable().optional(),
59216
+ /** Provider-declared identifiers (D1059). See `DeviceMeta.identifiers`. */
59217
+ identifiers: DeviceIdentifiersSchema.optional(),
58443
59218
  /** Optional upstream-system identity + rendering envelope. See
58444
59219
  * `SourceInfo`. Present when the device has been persisted with a
58445
59220
  * non-synthetic source identifier (HA entities, vendor MAC, …);
@@ -58753,6 +59528,17 @@ method(object({
58753
59528
  }), _void(), {
58754
59529
  kind: "mutation",
58755
59530
  auth: "admin"
59531
+ }), method(object({
59532
+ deviceId: number$1(),
59533
+ identifiers: DeviceIdentifiersSchema.nullable(),
59534
+ /** Kinds the provider tried to read and could not: their stored value is kept. */
59535
+ unread: array(DeviceIdentifierKeySchema).optional()
59536
+ }), _void(), {
59537
+ kind: "mutation",
59538
+ auth: "admin"
59539
+ }), method(object({}), IdentityCandidatesSchema, {
59540
+ kind: "query",
59541
+ auth: "admin"
58756
59542
  }), method(_void(), array(string())), method(object({ name: string() }), _void(), {
58757
59543
  kind: "mutation",
58758
59544
  auth: "admin"
@@ -62885,8 +63671,8 @@ var HeroSceneSchema = object({
62885
63671
  /** 0..1: volume, cover position, cycle progress. */
62886
63672
  level: number$1().min(0).max(1).nullable()
62887
63673
  });
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;
63674
+ 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;
63675
+ 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
63676
  var HeroRowIdSchema = _enum([
62891
63677
  "progress",
62892
63678
  "run-for",
@@ -63115,8 +63901,12 @@ var HeroPowerSupplySlotSchema = object({
63115
63901
  /** Off asks for a confirmation while the device runs. */
63116
63902
  confirmOffWhileRunning: boolean(),
63117
63903
  running: boolean().nullable(),
63118
- powerOn: HeroActionSchema,
63119
- powerOff: HeroActionSchema,
63904
+ /**
63905
+ * `null` when the linked switch ANSWERED it only reports (a PoE port seen through an
63906
+ * API key): power on / off would always be refused. The restart stays (D1058).
63907
+ */
63908
+ powerOn: HeroActionSchema.nullable(),
63909
+ powerOff: HeroActionSchema.nullable(),
63120
63910
  restart: HeroActionSchema
63121
63911
  });
63122
63912
  var HeroStateBackdropSchema = object({
@@ -72751,6 +73541,19 @@ var NetworkLinkStatusSchema = object({
72751
73541
  rssi: number$1().optional().meta(readingMeta("signal-level")),
72752
73542
  /** Network name of a wireless link, when the firmware reports it. */
72753
73543
  ssid: string().optional(),
73544
+ /**
73545
+ * Negotiated link speed of a wired port, the `bitrate` quantity in its base
73546
+ * unit, kbit/s (a gigabit port is 1 000 000); the display picks the unit.
73547
+ * `null` = the port is down or the speed is not known; absent = the provider
73548
+ * never reports one.
73549
+ */
73550
+ speedKbps: number$1().nonnegative().nullable().optional().meta(readingMeta("bitrate")),
73551
+ /**
73552
+ * Whether the link is up. `type` names the medium, not its state, so a wired
73553
+ * port that lost its link is `ethernet` + `linkUp: false`. `null` = not known;
73554
+ * absent = the provider never reports it.
73555
+ */
73556
+ linkUp: boolean().nullable().optional(),
72754
73557
  /** Ms epoch of the last observation. Lets consumers reason about freshness. */
72755
73558
  lastUpdated: number$1().meta(readingMeta("none"))
72756
73559
  });
@@ -80613,7 +81416,18 @@ DeviceType.Camera, method(object({
80613
81416
  * older than this field keeps working unchanged (D382 — an unstated
80614
81417
  * ask is zero).
80615
81418
  */
80616
- audio: ClipStreamAudioSchema.optional()
81419
+ audio: ClipStreamAudioSchema.optional(),
81420
+ /**
81421
+ * The operator's authorisation to wake a sleeping camera for this
81422
+ * dial — the same {@link ClipWakeSchema} the byte reads carry. Absent
81423
+ * — the default — means a sleeping standalone battery camera is
81424
+ * REFUSED by name before any URL is minted. A caller sets it only
81425
+ * when a viewer itself asked for the clip (the broker's `playClip`);
81426
+ * a prefetch, a reconcile or a retry never does. With it, the
81427
+ * provider wakes the camera and waits under a bound; a camera that
81428
+ * does not come up is refused `wake-timeout`, naming the wait.
81429
+ */
81430
+ wake: ClipWakeSchema.optional()
80617
81431
  }), ClipStreamDialSchema, {
80618
81432
  kind: "query",
80619
81433
  auth: "protected"
@@ -80842,7 +81656,8 @@ _enum([
80842
81656
  "camera-refused",
80843
81657
  "fetch-failed",
80844
81658
  "too-large-to-transfer",
80845
- "wake-expired"
81659
+ "wake-expired",
81660
+ "wake-timeout"
80846
81661
  ]);
80847
81662
  /** Candidate download URLs (LAN first, then operator extra hosts). */
80848
81663
  var ExportDownloadSchema = object({
@@ -82705,6 +83520,16 @@ var SirenOptionsSchema = object({
82705
83520
  rangeSeconds: SirenDurationRangeSchema.nullable(),
82706
83521
  /** The camera's default duration, seconds. */
82707
83522
  defaultSeconds: number$1().positive(),
83523
+ /**
83524
+ * Discrete play counts the operator may pick; `null` when the camera gives a
83525
+ * range or does not count plays. Defaults to `null` so a provider that
83526
+ * predates plays (#589) reads as declaring none.
83527
+ */
83528
+ allowedPlays: array(number$1().int().positive()).nullable().default(null),
83529
+ /** Continuous range of play counts; `null` when listed or not counted. */
83530
+ rangePlays: SirenDurationRangeSchema.nullable().default(null),
83531
+ /** The camera's default play count; `null` when the camera does not count plays. */
83532
+ defaultPlays: number$1().int().positive().nullable().default(null),
82708
83533
  /** What the camera counts natively. */
82709
83534
  unit: _enum([SirenDurationUnit.Seconds, SirenDurationUnit.Plays]),
82710
83535
  /** Seconds one play lasts, when `unit` is `plays`; `null` for a seconds camera. */
@@ -82721,19 +83546,38 @@ var SirenStatusSchema = object({
82721
83546
  activeUntil: number$1().nullable(),
82722
83547
  /** Duration of the current / last activation, seconds; `null` when none yet. */
82723
83548
  durationSeconds: number$1().nullable(),
83549
+ /**
83550
+ * The play count of the current / last activation when it was asked in plays;
83551
+ * `null` when it was asked in seconds (or none yet). The unit that was asked.
83552
+ */
83553
+ plays: number$1().int().positive().nullable().default(null),
83554
+ /**
83555
+ * True when `activeUntil` comes from a seconds-per-play factor the camera did
83556
+ * not report — the siren may fall silent somewhat earlier or later.
83557
+ */
83558
+ activeUntilEstimated: boolean().default(false),
82724
83559
  /** Ms epoch of the last trigger (0 = never). */
82725
83560
  lastTriggeredAt: number$1()
82726
83561
  });
83562
+ /** A trigger asks seconds OR plays (#589); neither means the camera default. */
83563
+ var SirenTriggerInputSchema = object({
83564
+ deviceId: number$1().int().nonnegative(),
83565
+ durationSeconds: number$1().positive().optional(),
83566
+ plays: number$1().int().positive().optional()
83567
+ }).refine((input) => input.durationSeconds === void 0 || input.plays === void 0, {
83568
+ message: "a siren trigger takes durationSeconds or plays, not both",
83569
+ path: ["plays"]
83570
+ });
82727
83571
  SirenStatusSchema.extend({
82728
83572
  /** Ms epoch of the last successful camera read of the options (0 = never). */
82729
83573
  lastFetchedAt: number$1() });
82730
83574
  DeviceType.Siren, method(object({ deviceId: number$1().int().nonnegative() }), SirenOptionsSchema, {
82731
83575
  kind: "query",
82732
83576
  auth: "protected"
82733
- }), method(object({
82734
- deviceId: number$1().int().nonnegative(),
82735
- durationSeconds: number$1().positive().optional()
82736
- }), SirenStatusSchema, {
83577
+ }), method(object({ deviceId: number$1().int().nonnegative() }), array(number$1().int().positive()), {
83578
+ kind: "query",
83579
+ auth: "protected"
83580
+ }), method(SirenTriggerInputSchema, SirenStatusSchema, {
82737
83581
  kind: "mutation",
82738
83582
  auth: "protected",
82739
83583
  actions: [{
@@ -82742,6 +83586,21 @@ DeviceType.Siren, method(object({ deviceId: number$1().int().nonnegative() }), S
82742
83586
  phrase: t("Sound {device}", "Fai suonare {device}"),
82743
83587
  icon: "siren",
82744
83588
  args: {}
83589
+ }, {
83590
+ id: "siren.triggerPlays",
83591
+ label: t("Sound the siren N times", "Fai suonare la sirena N volte"),
83592
+ phrase: t("Sound {device} {plays} times", "Fai suonare {device} {plays} volte"),
83593
+ icon: "siren",
83594
+ openArgs: [{
83595
+ key: "plays",
83596
+ label: t("Plays", "Riproduzioni"),
83597
+ offer: {
83598
+ kind: "dynamic",
83599
+ from: "method",
83600
+ method: "getPlayChoices",
83601
+ valueKind: "number"
83602
+ }
83603
+ }]
82745
83604
  }]
82746
83605
  }), method(object({ deviceId: number$1().int().nonnegative() }), SirenStatusSchema, {
82747
83606
  kind: "mutation",
@@ -83663,6 +84522,26 @@ object({
83663
84522
  /** Ms epoch of the last state change. Useful for UI "X minutes ago". */
83664
84523
  lastChangedAt: number$1()
83665
84524
  });
84525
+ /**
84526
+ * What a switch can do, from its provider (`getOptions`). A provider that writes no
84527
+ * `getOptions` is a plain on/off switch: the defaults are the old contract.
84528
+ *
84529
+ * - `supportsSetState: false` — the switch reports its state but cannot be set (a PoE port seen only
84530
+ * through an API key). Its provider refuses `setState`; these surfaces withdraw on/off once the
84531
+ * device ANSWERED this (`switchRefusesSetState`): the device hero, the automation action picker
84532
+ * (`offeredWhen` on `switch.on` / `switch.off` / `switch.toggle`), the default `toggle`, the
84533
+ * HomeKit, Alexa and Google exporters, and `power-source` on a device the switch powers
84534
+ * (`getStatus().switchSettable`, `offeredWhen` on `powerSource.on` / `.off`, `not-settable`). A
84535
+ * read that failed or is pending changes nothing (D315).
84536
+ * - `supportsPowerCycle: true` — the device behind the switch can cut and restore its own output in
84537
+ * one native call (a PoE port's power cycle). It has no control of its own: a linked
84538
+ * `power-source.forceRestart` uses it instead of off / wait / on.
84539
+ */
84540
+ var SwitchOptionsSchema = object({
84541
+ supportsSetState: boolean().default(true),
84542
+ supportsPowerCycle: boolean().default(false)
84543
+ });
84544
+ SwitchOptionsSchema.parse({});
83666
84545
  DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, method(object({
83667
84546
  deviceId: number$1(),
83668
84547
  on: boolean()
@@ -83678,7 +84557,8 @@ DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, method(ob
83678
84557
  field: "on",
83679
84558
  value: true
83680
84559
  },
83681
- args: { on: true }
84560
+ args: { on: true },
84561
+ offeredWhen: SWITCH_SETTABLE_GATE
83682
84562
  }, {
83683
84563
  id: "switch.off",
83684
84564
  label: t("Turn off", "Spegni"),
@@ -83688,8 +84568,13 @@ DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, method(ob
83688
84568
  field: "on",
83689
84569
  value: false
83690
84570
  },
83691
- args: { on: false }
84571
+ args: { on: false },
84572
+ offeredWhen: SWITCH_SETTABLE_GATE
83692
84573
  }]
84574
+ }), optionalMethod(object({ deviceId: number$1() }), SwitchOptionsSchema, { auth: "protected" }), optionalMethod(object({ deviceId: number$1() }), _void(), {
84575
+ kind: "mutation",
84576
+ auth: "protected",
84577
+ notOperatorFacing: "a power cycle is the forced restart of the device the switch powers (power-source), never a step of its own"
83693
84578
  }), optionalMethod(object({ deviceId: number$1() }), _void(), {
83694
84579
  kind: "mutation",
83695
84580
  auth: "protected",
@@ -83697,13 +84582,14 @@ DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, method(ob
83697
84582
  id: "switch.toggle",
83698
84583
  label: t("Toggle", "Commuta"),
83699
84584
  phrase: t("Toggle {device}", "Commuta {device}"),
83700
- icon: "toggle-right"
84585
+ icon: "toggle-right",
84586
+ offeredWhen: SWITCH_SETTABLE_GATE
83701
84587
  }]
83702
84588
  }), object({
83703
84589
  deviceId: number$1(),
83704
84590
  on: boolean().nullable(),
83705
84591
  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;
84592
+ }), 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
84593
  /** C0 controls, DEL and the C1 range: none of them belongs in a name. */
83708
84594
  function hasControlCharacter(value) {
83709
84595
  for (const char of value) {
@@ -84783,7 +85669,6 @@ method(object({ kind: TemplateKindSchema.optional() }), array(TemplateRecordSche
84783
85669
  });
84784
85670
  /** Profile-exported FormBuilder schema. Shape is ConfigUISchema at the UI. */
84785
85671
  var ProfileSettingsSchemaBridge = unknown().nullable();
84786
- var ProfileSettingsBagSchema = record(string(), unknown());
84787
85672
  /**
84788
85673
  * A live terminal session hosted by the provider addon. Output and input do
84789
85674
  * NOT flow through the capability — they use the addon data plane
@@ -84826,39 +85711,6 @@ var TerminalProfileInfoSchema = object({
84826
85711
  /** ConfigUISchema for instance knobs, or null when the profile has none. */
84827
85712
  settingsSchema: ProfileSettingsSchemaBridge.optional()
84828
85713
  });
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
85714
  var TerminalOutputEventSchema = discriminatedUnion("kind", [object({
84863
85715
  seq: number$1().int().positive(),
84864
85716
  kind: literal("data"),
@@ -84886,13 +85738,7 @@ var TerminalOutputBatchSchema = object({
84886
85738
  snapshot: string().optional(),
84887
85739
  events: array(TerminalOutputEventSchema).readonly()
84888
85740
  });
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({
85741
+ method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }), method(_void(), array(TerminalSessionInfoSchema).readonly(), { auth: "admin" }), method(_void(), ServerShellStatusSchema, { auth: "admin" }), method(object({
84896
85742
  profileId: string(),
84897
85743
  cols: number$1().int().positive(),
84898
85744
  rows: number$1().int().positive(),
@@ -87005,6 +87851,175 @@ DeviceType.Camera, method(object({ deviceId: number$1().int().nonnegative() }),
87005
87851
  deviceId: number$1().int().nonnegative(),
87006
87852
  sessionId: string()
87007
87853
  }), WebrtcSessionDebugSchema, { kind: "query" });
87854
+ var WorkloadStateSchema = _enum([
87855
+ "running",
87856
+ "paused",
87857
+ "stopped",
87858
+ "starting",
87859
+ "stopping",
87860
+ "crashed"
87861
+ ]);
87862
+ DeviceRole.Vm, DeviceRole.AppContainer, DeviceRole.Lxc, DeviceRole.App, DeviceRole.Host;
87863
+ /**
87864
+ * What the workload uses. Every value is `null` when not reported (D393). A host
87865
+ * fills `load1` and `temperature`; its uptime is `since` while it runs.
87866
+ */
87867
+ var WorkloadResourcesSchema = object({
87868
+ /** CPU use, percent of the CPUs it may use (0–100). */
87869
+ cpuPercent: number$1().nullable().meta(readingMeta("percentage", { precision: 1 })),
87870
+ memoryUsedBytes: number$1().nullable().meta(readingMeta("information")),
87871
+ /**
87872
+ * Memory use, percent of `memoryLimitBytes`, for a source that reports a share
87873
+ * and not bytes (a Docker container's stats). Absent or `null` = not reported.
87874
+ */
87875
+ memoryPercent: number$1().nullable().optional().meta(readingMeta("percentage", { precision: 1 })),
87876
+ /** The memory it may use: the limit of a container, the RAM of a VM or host. */
87877
+ memoryLimitBytes: number$1().nullable().meta(readingMeta("information")),
87878
+ vcpus: number$1().nullable().meta(readingMeta("count")),
87879
+ diskUsedBytes: number$1().nullable().meta(readingMeta("information")),
87880
+ diskTotalBytes: number$1().nullable().meta(readingMeta("information")),
87881
+ /** Network received, kbit/s. */
87882
+ netRxKbps: number$1().nullable().meta(readingMeta("bitrate")),
87883
+ /** Network sent, kbit/s. */
87884
+ netTxKbps: number$1().nullable().meta(readingMeta("bitrate")),
87885
+ /** One-minute load average (a host). */
87886
+ load1: number$1().nullable().meta(readingMeta("index", { precision: 2 })),
87887
+ /** CPU / board temperature (a host). */
87888
+ temperature: number$1().nullable().meta(readingMeta("temperature", { precision: 1 }))
87889
+ });
87890
+ var WorkloadPortProtocolSchema = _enum(["tcp", "udp"]);
87891
+ /** One published port: the workload's own port and where the host exposes it. */
87892
+ var WorkloadPortSchema = object({
87893
+ port: number$1().int().meta(readingMeta("none")),
87894
+ /** The host port it is published on; null = not published. */
87895
+ hostPort: number$1().int().nullable().meta(readingMeta("none")),
87896
+ /** The host address it is bound to; null = every address. */
87897
+ hostIp: string().nullable(),
87898
+ protocol: WorkloadPortProtocolSchema
87899
+ });
87900
+ object({
87901
+ /** null = unknown, never stopped (D393). */
87902
+ state: WorkloadStateSchema.nullable().meta({ label: "State" }),
87903
+ /** Epoch ms the current state began (uptime while running); null when unknown. */
87904
+ since: number$1().nullable().meta(readingMeta("none")),
87905
+ /** The `host` device this runs on, when the provider has adopted it. */
87906
+ hostDeviceId: number$1().int().nullable().meta(readingMeta("device")),
87907
+ /** The image a container runs (`nginx:1.27`). */
87908
+ image: string().nullable(),
87909
+ /** The operating system (a VM, an LXC, a host). */
87910
+ os: string().nullable(),
87911
+ /** The version or firmware it runs. */
87912
+ version: string().nullable(),
87913
+ /** Starts with its host; null when the platform does not say. */
87914
+ autostart: boolean().nullable(),
87915
+ resources: WorkloadResourcesSchema,
87916
+ ports: array(WorkloadPortSchema),
87917
+ /** The addresses it is reachable on (IPs or host names). */
87918
+ addresses: array(string()),
87919
+ /** A newer image / version exists. Installing it stays the `update` cap. */
87920
+ updateAvailable: boolean().nullable(),
87921
+ lastFetchedAt: number$1()
87922
+ });
87923
+ /**
87924
+ * What this device can do, probed by its provider (D14 honesty): a flag is
87925
+ * `true` only when the platform really serves it for THIS device.
87926
+ */
87927
+ var WorkloadOptionsSchema = object({
87928
+ supportsStart: boolean(),
87929
+ supportsStop: boolean(),
87930
+ supportsRestart: boolean(),
87931
+ /** Pause AND resume. */
87932
+ supportsPause: boolean(),
87933
+ supportsForceStop: boolean(),
87934
+ hasResources: boolean(),
87935
+ hasPorts: boolean(),
87936
+ hasAddresses: boolean(),
87937
+ hasAutostart: boolean(),
87938
+ hasUpdateCheck: boolean()
87939
+ });
87940
+ var WorkloadDeviceInputSchema = object({ deviceId: number$1().int().nonnegative() });
87941
+ object({
87942
+ deviceId: number$1(),
87943
+ state: WorkloadStateSchema,
87944
+ previous: WorkloadStateSchema,
87945
+ since: number$1().nullable()
87946
+ });
87947
+ EventCategory.WorkloadStarted, EventCategory.WorkloadStopped, EventCategory.WorkloadCrashed, EventCategory.WorkloadRecovered;
87948
+ DeviceType.Workload, DeviceType.Workload, optionalMethod(WorkloadDeviceInputSchema, _void(), {
87949
+ kind: "mutation",
87950
+ auth: "protected",
87951
+ actions: [{
87952
+ id: "workload.start",
87953
+ label: t("Start", "Avvia"),
87954
+ phrase: t("Start {device}", "Avvia {device}"),
87955
+ icon: "play",
87956
+ effect: {
87957
+ field: "state",
87958
+ value: "running"
87959
+ }
87960
+ }]
87961
+ }), optionalMethod(WorkloadDeviceInputSchema, _void(), {
87962
+ kind: "mutation",
87963
+ auth: "protected",
87964
+ actions: [{
87965
+ id: "workload.stop",
87966
+ label: t("Stop", "Arresta"),
87967
+ phrase: t("Stop {device}", "Arresta {device}"),
87968
+ icon: "square",
87969
+ effect: {
87970
+ field: "state",
87971
+ value: "stopped"
87972
+ }
87973
+ }]
87974
+ }), optionalMethod(WorkloadDeviceInputSchema, _void(), {
87975
+ kind: "mutation",
87976
+ auth: "protected",
87977
+ actions: [{
87978
+ id: "workload.restart",
87979
+ label: t("Restart", "Riavvia"),
87980
+ phrase: t("Restart {device}", "Riavvia {device}"),
87981
+ icon: "rotate-ccw"
87982
+ }]
87983
+ }), optionalMethod(WorkloadDeviceInputSchema, _void(), {
87984
+ kind: "mutation",
87985
+ auth: "protected",
87986
+ actions: [{
87987
+ id: "workload.pause",
87988
+ label: t("Pause", "Metti in pausa"),
87989
+ phrase: t("Pause {device}", "Metti in pausa {device}"),
87990
+ icon: "pause",
87991
+ effect: {
87992
+ field: "state",
87993
+ value: "paused"
87994
+ }
87995
+ }]
87996
+ }), optionalMethod(WorkloadDeviceInputSchema, _void(), {
87997
+ kind: "mutation",
87998
+ auth: "protected",
87999
+ actions: [{
88000
+ id: "workload.resume",
88001
+ label: t("Resume", "Riprendi"),
88002
+ phrase: t("Resume {device}", "Riprendi {device}"),
88003
+ icon: "circle-play",
88004
+ effect: {
88005
+ field: "state",
88006
+ value: "running"
88007
+ }
88008
+ }]
88009
+ }), optionalMethod(WorkloadDeviceInputSchema, _void(), {
88010
+ kind: "mutation",
88011
+ auth: "admin",
88012
+ actions: [{
88013
+ id: "workload.forceStop",
88014
+ label: t("Force stop", "Arresto forzato"),
88015
+ phrase: t("Force {device} to stop", "Forza l’arresto di {device}"),
88016
+ icon: "octagon-x",
88017
+ effect: {
88018
+ field: "state",
88019
+ value: "stopped"
88020
+ }
88021
+ }]
88022
+ }), method(WorkloadDeviceInputSchema, WorkloadOptionsSchema, { auth: "protected" }), EventCategory.WorkloadStarted, EventCategory.WorkloadStopped, EventCategory.WorkloadCrashed, EventCategory.WorkloadRecovered, DeviceRole.Vm, DeviceRole.AppContainer, DeviceRole.Lxc, DeviceRole.App, DeviceRole.Host;
87008
88023
  /**
87009
88024
  * Per-zone occupancy aggregation produced by the analytics frame
87010
88025
  * processor on every inference result. Covers the full combinatorial
@@ -87602,7 +88617,7 @@ var AccessoryKind = {
87602
88617
  };
87603
88618
  AccessoryKind.Siren, AccessoryKind.Floodlight, AccessoryKind.Spotlight, AccessoryKind.PirSensor, AccessoryKind.Chime, AccessoryKind.Autotrack, AccessoryKind.Nightvision, AccessoryKind.PrivacyMask;
87604
88619
  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;
88620
+ 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
88621
  new Set(Object.values(DeviceType));
87607
88622
  /** Parses the raw slice with the cap's own schema; `undefined` when it does not parse. */
87608
88623
  function contribution(cap, schema, build) {
@@ -89658,7 +90673,7 @@ var HEAT_PUMP_FAMILY_CONTRIBUTIONS = { "heat-pump-status": contribution("heat-pu
89658
90673
  ...Object.values(CLIMATE_FAMILY_CONTRIBUTIONS),
89659
90674
  ...Object.values(HEAT_PUMP_FAMILY_CONTRIBUTIONS)
89660
90675
  ];
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;
90676
+ 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
90677
  /**
89663
90678
  * Who looks like what (D1023). One look per {@link DeviceType}, refined by a
89664
90679
  * {@link DeviceRole} where the role changes how the device reads (a leak
@@ -90302,8 +91317,8 @@ lookOf({
90302
91317
  standby: MUTED
90303
91318
  });
90304
91319
  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;
91320
+ 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;
91321
+ 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
91322
  Object.freeze({
90308
91323
  "accessories.getStatus": {
90309
91324
  capName: "accessories",
@@ -92748,6 +93763,13 @@ Object.freeze({
92748
93763
  access: "view",
92749
93764
  role: "admin"
92750
93765
  },
93766
+ "deviceManager.listIdentityCandidates": {
93767
+ capName: "device-manager",
93768
+ capScope: "system",
93769
+ addonId: null,
93770
+ access: "view",
93771
+ role: "admin"
93772
+ },
92751
93773
  "deviceManager.listLocationDescriptions": {
92752
93774
  capName: "device-manager",
92753
93775
  capScope: "system",
@@ -92965,6 +93987,13 @@ Object.freeze({
92965
93987
  access: "create",
92966
93988
  role: "admin"
92967
93989
  },
93990
+ "deviceManager.setIdentifiers": {
93991
+ capName: "device-manager",
93992
+ capScope: "system",
93993
+ addonId: null,
93994
+ access: "create",
93995
+ role: "admin"
93996
+ },
92968
93997
  "deviceManager.setIntegrationId": {
92969
93998
  capName: "device-manager",
92970
93999
  capScope: "system",
@@ -98887,6 +99916,13 @@ Object.freeze({
98887
99916
  access: "view",
98888
99917
  role: "viewer"
98889
99918
  },
99919
+ "siren.getPlayChoices": {
99920
+ capName: "siren",
99921
+ capScope: "device",
99922
+ addonId: null,
99923
+ access: "view",
99924
+ role: "viewer"
99925
+ },
98890
99926
  "siren.getStatus": {
98891
99927
  capName: "siren",
98892
99928
  capScope: "device",
@@ -99699,6 +100735,13 @@ Object.freeze({
99699
100735
  access: "view",
99700
100736
  role: "viewer"
99701
100737
  },
100738
+ "switch.getOptions": {
100739
+ capName: "switch",
100740
+ capScope: "device",
100741
+ addonId: null,
100742
+ access: "view",
100743
+ role: "viewer"
100744
+ },
99702
100745
  "switch.getStatus": {
99703
100746
  capName: "switch",
99704
100747
  capScope: "device",
@@ -99706,6 +100749,13 @@ Object.freeze({
99706
100749
  access: "view",
99707
100750
  role: "viewer"
99708
100751
  },
100752
+ "switch.powerCycle": {
100753
+ capName: "switch",
100754
+ capScope: "device",
100755
+ addonId: null,
100756
+ access: "create",
100757
+ role: "viewer"
100758
+ },
99709
100759
  "switch.setState": {
99710
100760
  capName: "switch",
99711
100761
  capScope: "device",
@@ -99909,13 +100959,6 @@ Object.freeze({
99909
100959
  access: "create",
99910
100960
  role: "admin"
99911
100961
  },
99912
- "terminalSession.adoptLegacyMonitor": {
99913
- capName: "terminal-session",
99914
- capScope: "system",
99915
- addonId: null,
99916
- access: "create",
99917
- role: "admin"
99918
- },
99919
100962
  "terminalSession.close": {
99920
100963
  capName: "terminal-session",
99921
100964
  capScope: "system",
@@ -99923,13 +100966,6 @@ Object.freeze({
99923
100966
  access: "create",
99924
100967
  role: "admin"
99925
100968
  },
99926
- "terminalSession.listLegacyCameras": {
99927
- capName: "terminal-session",
99928
- capScope: "system",
99929
- addonId: null,
99930
- access: "view",
99931
- role: "admin"
99932
- },
99933
100969
  "terminalSession.listProfiles": {
99934
100970
  capName: "terminal-session",
99935
100971
  capScope: "system",
@@ -100791,6 +101827,62 @@ Object.freeze({
100791
101827
  access: "view",
100792
101828
  role: "viewer"
100793
101829
  },
101830
+ "workload.forceStop": {
101831
+ capName: "workload",
101832
+ capScope: "device",
101833
+ addonId: null,
101834
+ access: "create",
101835
+ role: "admin"
101836
+ },
101837
+ "workload.getOptions": {
101838
+ capName: "workload",
101839
+ capScope: "device",
101840
+ addonId: null,
101841
+ access: "view",
101842
+ role: "viewer"
101843
+ },
101844
+ "workload.getStatus": {
101845
+ capName: "workload",
101846
+ capScope: "device",
101847
+ addonId: null,
101848
+ access: "view",
101849
+ role: "viewer"
101850
+ },
101851
+ "workload.pause": {
101852
+ capName: "workload",
101853
+ capScope: "device",
101854
+ addonId: null,
101855
+ access: "create",
101856
+ role: "viewer"
101857
+ },
101858
+ "workload.restart": {
101859
+ capName: "workload",
101860
+ capScope: "device",
101861
+ addonId: null,
101862
+ access: "create",
101863
+ role: "viewer"
101864
+ },
101865
+ "workload.resume": {
101866
+ capName: "workload",
101867
+ capScope: "device",
101868
+ addonId: null,
101869
+ access: "create",
101870
+ role: "viewer"
101871
+ },
101872
+ "workload.start": {
101873
+ capName: "workload",
101874
+ capScope: "device",
101875
+ addonId: null,
101876
+ access: "create",
101877
+ role: "viewer"
101878
+ },
101879
+ "workload.stop": {
101880
+ capName: "workload",
101881
+ capScope: "device",
101882
+ addonId: null,
101883
+ access: "create",
101884
+ role: "viewer"
101885
+ },
100794
101886
  "zoneAnalytics.getCameraHistory": {
100795
101887
  capName: "zone-analytics",
100796
101888
  capScope: "device",
@@ -100927,8 +102019,8 @@ function offered(received) {
100927
102019
  };
100928
102020
  }
100929
102021
  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;
102022
+ 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;
102023
+ 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
102024
  new Set(Object.values(DeviceType));
100933
102025
  new Set(Object.values(DeviceRole));
100934
102026
  Object.freeze({
@@ -101630,6 +102722,11 @@ Object.freeze({
101630
102722
  form: "single",
101631
102723
  optional: false
101632
102724
  }],
102725
+ "deviceManager.setIdentifiers": [{
102726
+ name: "deviceId",
102727
+ form: "single",
102728
+ optional: false
102729
+ }],
101633
102730
  "deviceManager.setIntegrationId": [{
101634
102731
  name: "deviceId",
101635
102732
  form: "single",
@@ -103624,6 +104721,11 @@ Object.freeze({
103624
104721
  form: "single",
103625
104722
  optional: false
103626
104723
  }],
104724
+ "siren.getPlayChoices": [{
104725
+ name: "deviceId",
104726
+ form: "single",
104727
+ optional: false
104728
+ }],
103627
104729
  "siren.getStatus": [{
103628
104730
  name: "deviceId",
103629
104731
  form: "single",
@@ -103806,11 +104908,21 @@ Object.freeze({
103806
104908
  form: "single",
103807
104909
  optional: false
103808
104910
  }],
104911
+ "switch.getOptions": [{
104912
+ name: "deviceId",
104913
+ form: "single",
104914
+ optional: false
104915
+ }],
103809
104916
  "switch.getStatus": [{
103810
104917
  name: "deviceId",
103811
104918
  form: "single",
103812
104919
  optional: false
103813
104920
  }],
104921
+ "switch.powerCycle": [{
104922
+ name: "deviceId",
104923
+ form: "single",
104924
+ optional: false
104925
+ }],
103814
104926
  "switch.setState": [{
103815
104927
  name: "deviceId",
103816
104928
  form: "single",
@@ -104051,6 +105163,46 @@ Object.freeze({
104051
105163
  form: "single",
104052
105164
  optional: false
104053
105165
  }],
105166
+ "workload.forceStop": [{
105167
+ name: "deviceId",
105168
+ form: "single",
105169
+ optional: false
105170
+ }],
105171
+ "workload.getOptions": [{
105172
+ name: "deviceId",
105173
+ form: "single",
105174
+ optional: false
105175
+ }],
105176
+ "workload.getStatus": [{
105177
+ name: "deviceId",
105178
+ form: "single",
105179
+ optional: false
105180
+ }],
105181
+ "workload.pause": [{
105182
+ name: "deviceId",
105183
+ form: "single",
105184
+ optional: false
105185
+ }],
105186
+ "workload.restart": [{
105187
+ name: "deviceId",
105188
+ form: "single",
105189
+ optional: false
105190
+ }],
105191
+ "workload.resume": [{
105192
+ name: "deviceId",
105193
+ form: "single",
105194
+ optional: false
105195
+ }],
105196
+ "workload.start": [{
105197
+ name: "deviceId",
105198
+ form: "single",
105199
+ optional: false
105200
+ }],
105201
+ "workload.stop": [{
105202
+ name: "deviceId",
105203
+ form: "single",
105204
+ optional: false
105205
+ }],
104054
105206
  "zoneAnalytics.getCameraHistory": [{
104055
105207
  name: "deviceId",
104056
105208
  form: "single",
@@ -105542,7 +106694,7 @@ var AdminUIAddon = class extends BaseAddon {
105542
106694
  capability: adminUiCapability,
105543
106695
  provider: {
105544
106696
  getStaticDir: async () => ({ staticDir: resolveAdminUiDistDir() }),
105545
- getVersion: async () => ({ version: "1.2.691" })
106697
+ getVersion: async () => ({ version: "1.2.693" })
105546
106698
  }
105547
106699
  }];
105548
106700
  }