@camstack/addon-pipeline-orchestrator 1.2.696 → 1.2.697

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 (41) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/assets/viewer/.viewer-current-files.json +24 -24
  3. package/assets/viewer/.viewer-version +1 -1
  4. package/assets/viewer/_expo/static/js/web/Clipboard-76776c371e4f6e2b18769c5a3d4223f9.js +8 -0
  5. package/assets/viewer/_expo/static/js/web/Haptics-0065b0d295e65672bd132cfe48850b6c.js +3 -0
  6. package/assets/viewer/_expo/static/js/web/[id]-6011df51d23387985c1362d9ba2fe23a.js +7 -0
  7. package/assets/viewer/_expo/static/js/web/[id]-67db9d7cf19315e2531260d6f72f7c13.js +5 -0
  8. package/assets/viewer/_expo/static/js/web/[section]-0dbf6562cdafd3a46ac8d08dd9bc32b5.js +29 -0
  9. package/assets/viewer/_expo/static/js/web/__common-302b4f7baafed7c76bb430a8e0d393f9.js +3862 -0
  10. package/assets/viewer/_expo/static/js/web/_layout-46568cda29d8690b30d73b3933699451.js +24 -0
  11. package/assets/viewer/_expo/static/js/web/add-server-0b9b670a4a164a8df829fd25279c4311.js +2 -0
  12. package/assets/viewer/_expo/static/js/web/alarm-8cf69916231a4647192546da21e1112e.js +1 -0
  13. package/assets/viewer/_expo/static/js/web/cameras-0ed4b2431bf24ed9da3085ac9fac9d1b.js +27 -0
  14. package/assets/viewer/_expo/static/js/web/connect-956f8d0dd70087b80574755a1cb17900.js +2 -0
  15. package/assets/viewer/_expo/static/js/web/enroll-c1b4af42f391d888716e121e3564c26a.js +19 -0
  16. package/assets/viewer/_expo/static/js/web/index-088fa2c0e80a89530ba942bfef18c967.js +4 -0
  17. package/assets/viewer/_expo/static/js/web/index-a4ddd747410c7ded6cc7ffed3a6e6207.js +1 -0
  18. package/assets/viewer/_expo/static/js/web/index-c5ea7c9128e1a508537f633164185e2d.js +2 -0
  19. package/assets/viewer/_expo/static/js/web/{index-96c6beba8474aed833c49b10d0566455.js → index-dddb6d1ef66579b0e316ee2965ef5541.js} +2 -2
  20. package/assets/viewer/_expo/static/js/web/new-b7826e8cea6954015e3f3238e53ce4d0.js +2 -0
  21. package/assets/viewer/_expo/static/js/web/settings-6b270d3359144ce4607f4d421f64c444.js +23 -0
  22. package/assets/viewer/_expo/static/js/web/sign-in-ec9d8f83793af6ba6f5775ae30b6b870.js +38 -0
  23. package/assets/viewer/embed/assets/{MaskShapeCanvas-DI4BY7W2-BRDlS4Y8.js → MaskShapeCanvas-DI4BY7W2-DiqpaXVN.js} +1 -1
  24. package/assets/viewer/embed/assets/{MotionZonesSettings-CiYjd-yl-CtwZQi_3.js → MotionZonesSettings-CiYjd-yl-BUqWvmwc.js} +1 -1
  25. package/assets/viewer/embed/assets/{PrivacyMaskSettings-BmRdUrPp-BgWoXRKb.js → PrivacyMaskSettings-BmRdUrPp-wcZFJkAC.js} +1 -1
  26. package/assets/viewer/embed/assets/{SceneMonitorEditor-J4Ix_0tu-CTjl2_iA.js → SceneMonitorEditor-J4Ix_0tu-Bvr6H5Dx.js} +1 -1
  27. package/assets/viewer/embed/assets/{index-Ddj0_ApC.js → index-1lr4Pdev.js} +5 -5
  28. package/assets/viewer/embed/index.html +1 -1
  29. package/assets/viewer/index.html +1 -1
  30. package/dist/_stub.js +47 -47
  31. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-DOBoLns5.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-Dmr2FtiT.mjs} +3 -3
  32. package/dist/_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DMRY0wfC.mjs +26 -0
  33. package/dist/_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-C-4CsZgC.mjs +26 -0
  34. package/dist/{hostInit-Du9FMBCM.mjs → hostInit-C-CrLIdU.mjs} +3 -3
  35. package/dist/index.js +1332 -180
  36. package/dist/index.mjs +1332 -180
  37. package/dist/remoteEntry.js +1 -1
  38. package/package.json +2 -2
  39. package/assets/viewer/_expo/static/js/web/__common-e5898658c8d856cae265dc0d400a2f1d.js +0 -3939
  40. package/dist/_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CMJug2bs.mjs +0 -26
  41. package/dist/_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-D5jctWiR.mjs +0 -26
package/dist/index.js CHANGED
@@ -30,7 +30,7 @@ node_fs = __toESM(node_fs);
30
30
  let node_path = require("node:path");
31
31
  node_path = __toESM(node_path);
32
32
  let node_url = require("node:url");
33
- //#region ../types/dist/event-category-Dhcd0TRH.mjs
33
+ //#region ../types/dist/event-category-Hwx_JSCU.mjs
34
34
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
35
35
  EventCategory["SystemBoot"] = "system.boot";
36
36
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -552,6 +552,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
552
552
  EventCategory["RunningStarted"] = "running.started";
553
553
  /** Mirrors `runningStateCapability.events.onFinished`. */
554
554
  EventCategory["RunningFinished"] = "running.finished";
555
+ /** Mirrors `workloadCapability.events.onStarted` — a workload reached running (#585). */
556
+ EventCategory["WorkloadStarted"] = "workload.started";
557
+ /** Mirrors `workloadCapability.events.onStopped` — a running workload stopped cleanly. */
558
+ EventCategory["WorkloadStopped"] = "workload.stopped";
559
+ /** Mirrors `workloadCapability.events.onCrashed` — a workload stopped without a request. */
560
+ EventCategory["WorkloadCrashed"] = "workload.crashed";
561
+ /** Mirrors `workloadCapability.events.onRecovered` — a crashed workload runs again. */
562
+ EventCategory["WorkloadRecovered"] = "workload.recovered";
555
563
  /** Mirrors `deviceRunsCapability.events.onRunOpened` - a durable run record opened. */
556
564
  EventCategory["DeviceRunOpened"] = "device-run.opened";
557
565
  /** Mirrors `deviceRunsCapability.events.onRunClosed` - a durable run record closed. */
@@ -854,7 +862,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
854
862
  return EventCategory;
855
863
  }({});
856
864
  //#endregion
857
- //#region ../types/dist/composed-stable-id-RvQIEpqg.mjs
865
+ //#region ../types/dist/composed-stable-id-BBL71oUQ.mjs
858
866
  /**
859
867
  import { errMsg } from '@camstack/types'
860
868
  * Extract a human-readable message from an unknown error value.
@@ -986,6 +994,10 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
986
994
  * and the storage as branches of one bus. One read-only `energy-system` cap carries
987
995
  * every value; the storage is a field of it, never the `battery` cap (#513, #522). */
988
996
  DeviceType["EnergySystem"] = "energy-system";
997
+ /** Something that RUNS on a machine, or the machine itself (#585): a VM, an app
998
+ * container, an LXC, an app, or a host. The kind is the ROLE (D1033, D1056), never
999
+ * a field; one `workload` cap carries the state, the controls and the resources. */
1000
+ DeviceType["Workload"] = "workload";
989
1001
  return DeviceType;
990
1002
  }({});
991
1003
  var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
@@ -1206,6 +1218,11 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
1206
1218
  * `light` type: the provider owns the type, and a light implies brightness
1207
1219
  * or colour this relay lacks. */
1208
1220
  DeviceRole["SwitchLight"] = "switch-light";
1221
+ /** One port of a network switch that powers the device behind it (PoE): on /
1222
+ * off feeds or cuts that power. Its link is `network-link`, its draw
1223
+ * `power-meter`. Restarting the powered device through the port is that
1224
+ * device's `power-source` cap, never a reboot of the port. */
1225
+ DeviceRole["PoePort"] = "poe-port";
1209
1226
  /** Air conditioner / split unit: cooling, fan speed, louvres. */
1210
1227
  DeviceRole["ClimateAc"] = "climate-ac";
1211
1228
  /** Room thermostat: a setpoint and a room temperature. The default. */
@@ -1286,6 +1303,17 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
1286
1303
  /** Emits a pulse train (infrared or RF) on request — the `ir-transmitter`
1287
1304
  * cap. A `DeviceType.Generic` device. */
1288
1305
  DeviceRole["IrTransmitter"] = "ir-transmitter";
1306
+ /** A virtual machine on a hypervisor. */
1307
+ DeviceRole["Vm"] = "vm";
1308
+ /** An application container (Docker, Podman). */
1309
+ DeviceRole["AppContainer"] = "app-container";
1310
+ /** A system container (LXC). */
1311
+ DeviceRole["Lxc"] = "lxc";
1312
+ /** An application or service running on a host. */
1313
+ DeviceRole["App"] = "app";
1314
+ /** A machine that runs workloads or is an appliance with its own OS: a
1315
+ * server, a hypervisor, a gateway console, a CCU. */
1316
+ DeviceRole["Host"] = "host";
1289
1317
  return DeviceRole;
1290
1318
  }({});
1291
1319
  /**
@@ -1869,8 +1897,8 @@ var _emoji$1 = `^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;
1869
1897
  function emoji() {
1870
1898
  return new RegExp(_emoji$1, "u");
1871
1899
  }
1872
- 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])$/;
1873
- 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}|:))$/;
1900
+ 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])$/;
1901
+ 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}|:))$/;
1874
1902
  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])$/;
1875
1903
  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])$/;
1876
1904
  var base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/;
@@ -2544,12 +2572,12 @@ var $ZodISODuration = /*@__PURE__*/ $constructor("$ZodISODuration", (inst, def)
2544
2572
  $ZodStringFormat.init(inst, def);
2545
2573
  });
2546
2574
  var $ZodIPv4 = /*@__PURE__*/ $constructor("$ZodIPv4", (inst, def) => {
2547
- def.pattern ?? (def.pattern = ipv4);
2575
+ def.pattern ?? (def.pattern = ipv4$1);
2548
2576
  $ZodStringFormat.init(inst, def);
2549
2577
  inst._zod.bag.format = `ipv4`;
2550
2578
  });
2551
2579
  var $ZodIPv6 = /*@__PURE__*/ $constructor("$ZodIPv6", (inst, def) => {
2552
- def.pattern ?? (def.pattern = ipv6);
2580
+ def.pattern ?? (def.pattern = ipv6$1);
2553
2581
  $ZodStringFormat.init(inst, def);
2554
2582
  inst._zod.bag.format = `ipv6`;
2555
2583
  inst._zod.check = (payload) => {
@@ -5465,10 +5493,16 @@ var ZodIPv4 = /*@__PURE__*/ $constructor("ZodIPv4", (inst, def) => {
5465
5493
  $ZodIPv4.init(inst, def);
5466
5494
  ZodStringFormat.init(inst, def);
5467
5495
  });
5496
+ function ipv4(params) {
5497
+ return /* @__PURE__ */ _ipv4(ZodIPv4, params);
5498
+ }
5468
5499
  var ZodIPv6 = /*@__PURE__*/ $constructor("ZodIPv6", (inst, def) => {
5469
5500
  $ZodIPv6.init(inst, def);
5470
5501
  ZodStringFormat.init(inst, def);
5471
5502
  });
5503
+ function ipv6(params) {
5504
+ return /* @__PURE__ */ _ipv6(ZodIPv6, params);
5505
+ }
5472
5506
  var ZodCIDRv4 = /*@__PURE__*/ $constructor("ZodCIDRv4", (inst, def) => {
5473
5507
  $ZodCIDRv4.init(inst, def);
5474
5508
  ZodStringFormat.init(inst, def);
@@ -6106,7 +6140,7 @@ var ZodIssueCode = {
6106
6140
  var ZodFirstPartyTypeKind;
6107
6141
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
6108
6142
  //#endregion
6109
- //#region ../types/dist/sleep-Ch7Q7UtE.mjs
6143
+ //#region ../types/dist/sleep-D6Pih0Qt.mjs
6110
6144
  /**
6111
6145
  * The audio chunk plane's byte format, and the ONE expansion from a coded
6112
6146
  * window to float samples (D455).
@@ -10761,6 +10795,10 @@ var CAP_VOCABULARY_BY_NAME = {
10761
10795
  effect: {
10762
10796
  field: "on",
10763
10797
  value: true
10798
+ },
10799
+ offeredWhen: {
10800
+ method: "getOptions",
10801
+ field: "supportsSetState"
10764
10802
  }
10765
10803
  },
10766
10804
  {
@@ -10779,6 +10817,10 @@ var CAP_VOCABULARY_BY_NAME = {
10779
10817
  effect: {
10780
10818
  field: "on",
10781
10819
  value: false
10820
+ },
10821
+ offeredWhen: {
10822
+ method: "getOptions",
10823
+ field: "supportsSetState"
10782
10824
  }
10783
10825
  },
10784
10826
  {
@@ -10792,9 +10834,14 @@ var CAP_VOCABULARY_BY_NAME = {
10792
10834
  en: "Toggle {device}",
10793
10835
  it: "Commuta {device}"
10794
10836
  },
10795
- icon: "toggle-right"
10837
+ icon: "toggle-right",
10838
+ offeredWhen: {
10839
+ method: "getOptions",
10840
+ field: "supportsSetState"
10841
+ }
10796
10842
  }
10797
10843
  ],
10844
+ notOperatorFacing: { powerCycle: "a power cycle is the forced restart of the device the switch powers (power-source), never a step of its own" },
10798
10845
  state: [{
10799
10846
  kind: "boolean",
10800
10847
  field: "on",
@@ -11053,6 +11100,47 @@ var CAP_VOCABULARY_BY_NAME = {
11053
11100
  "switch.off": { icon: "plug" }
11054
11101
  },
11055
11102
  state: { on: { icon: "plug-zap" } }
11103
+ },
11104
+ [DeviceRole.PoePort]: {
11105
+ actions: {
11106
+ "switch.on": {
11107
+ label: {
11108
+ en: "Power on",
11109
+ it: "Alimenta"
11110
+ },
11111
+ phrase: {
11112
+ en: "Power on {device}",
11113
+ it: "Alimenta {device}"
11114
+ },
11115
+ icon: "plug-zap"
11116
+ },
11117
+ "switch.off": {
11118
+ label: {
11119
+ en: "Power off",
11120
+ it: "Togli alimentazione"
11121
+ },
11122
+ phrase: {
11123
+ en: "Power off {device}",
11124
+ it: "Togli alimentazione a {device}"
11125
+ },
11126
+ icon: "unplug"
11127
+ }
11128
+ },
11129
+ state: { on: {
11130
+ label: {
11131
+ en: "Powered",
11132
+ it: "Alimentata"
11133
+ },
11134
+ whenTrue: {
11135
+ en: "When {device} is powered",
11136
+ it: "Quando {device} viene alimentata"
11137
+ },
11138
+ whenFalse: {
11139
+ en: "When {device} loses power",
11140
+ it: "Quando {device} perde l’alimentazione"
11141
+ },
11142
+ icon: "plug-zap"
11143
+ } }
11056
11144
  }
11057
11145
  }
11058
11146
  }
@@ -11772,7 +11860,11 @@ var CAP_VOCABULARY_BY_NAME = {
11772
11860
  en: "Power on {device}",
11773
11861
  it: "Dai corrente a {device}"
11774
11862
  },
11775
- icon: "power"
11863
+ icon: "power",
11864
+ offeredWhen: {
11865
+ method: "getStatus",
11866
+ field: "switchSettable"
11867
+ }
11776
11868
  },
11777
11869
  {
11778
11870
  id: "powerSource.off",
@@ -11785,7 +11877,11 @@ var CAP_VOCABULARY_BY_NAME = {
11785
11877
  en: "Cut the power of {device}",
11786
11878
  it: "Togli la corrente a {device}"
11787
11879
  },
11788
- icon: "power-off"
11880
+ icon: "power-off",
11881
+ offeredWhen: {
11882
+ method: "getStatus",
11883
+ field: "switchSettable"
11884
+ }
11789
11885
  },
11790
11886
  {
11791
11887
  id: "powerSource.forceRestart",
@@ -13555,37 +13651,66 @@ var CAP_VOCABULARY_BY_NAME = {
13555
13651
  en: "Siren",
13556
13652
  it: "Sirena"
13557
13653
  },
13558
- actions: [{
13559
- id: "siren.trigger",
13560
- method: "trigger",
13561
- label: {
13562
- en: "Sound the siren",
13563
- it: "Fai suonare la sirena"
13564
- },
13565
- phrase: {
13566
- en: "Sound {device}",
13567
- it: "Fai suonare {device}"
13568
- },
13569
- icon: "siren",
13570
- args: {}
13571
- }, {
13572
- id: "siren.stop",
13573
- method: "stop",
13574
- label: {
13575
- en: "Silence the siren",
13576
- it: "Zittisci la sirena"
13654
+ actions: [
13655
+ {
13656
+ id: "siren.trigger",
13657
+ method: "trigger",
13658
+ label: {
13659
+ en: "Sound the siren",
13660
+ it: "Fai suonare la sirena"
13661
+ },
13662
+ phrase: {
13663
+ en: "Sound {device}",
13664
+ it: "Fai suonare {device}"
13665
+ },
13666
+ icon: "siren",
13667
+ args: {}
13577
13668
  },
13578
- phrase: {
13579
- en: "Silence {device}",
13580
- it: "Zittisci {device}"
13669
+ {
13670
+ id: "siren.triggerPlays",
13671
+ method: "trigger",
13672
+ label: {
13673
+ en: "Sound the siren N times",
13674
+ it: "Fai suonare la sirena N volte"
13675
+ },
13676
+ phrase: {
13677
+ en: "Sound {device} {plays} times",
13678
+ it: "Fai suonare {device} {plays} volte"
13679
+ },
13680
+ icon: "siren",
13681
+ openArgs: [{
13682
+ key: "plays",
13683
+ label: {
13684
+ en: "Plays",
13685
+ it: "Riproduzioni"
13686
+ },
13687
+ offer: {
13688
+ kind: "dynamic",
13689
+ from: "method",
13690
+ method: "getPlayChoices",
13691
+ valueKind: "number"
13692
+ }
13693
+ }]
13581
13694
  },
13582
- icon: "siren",
13583
- args: {},
13584
- effect: {
13585
- field: "active",
13586
- value: false
13695
+ {
13696
+ id: "siren.stop",
13697
+ method: "stop",
13698
+ label: {
13699
+ en: "Silence the siren",
13700
+ it: "Zittisci la sirena"
13701
+ },
13702
+ phrase: {
13703
+ en: "Silence {device}",
13704
+ it: "Zittisci {device}"
13705
+ },
13706
+ icon: "siren",
13707
+ args: {},
13708
+ effect: {
13709
+ field: "active",
13710
+ value: false
13711
+ }
13587
13712
  }
13588
- }],
13713
+ ],
13589
13714
  state: [{
13590
13715
  kind: "boolean",
13591
13716
  field: "active",
@@ -16180,6 +16305,374 @@ var CAP_VOCABULARY_BY_NAME = {
16180
16305
  icon: "loader"
16181
16306
  }]
16182
16307
  },
16308
+ "workload": {
16309
+ scope: "device",
16310
+ noun: {
16311
+ en: "Workload",
16312
+ it: "Carico di lavoro"
16313
+ },
16314
+ actions: [
16315
+ {
16316
+ id: "workload.start",
16317
+ method: "start",
16318
+ label: {
16319
+ en: "Start",
16320
+ it: "Avvia"
16321
+ },
16322
+ phrase: {
16323
+ en: "Start {device}",
16324
+ it: "Avvia {device}"
16325
+ },
16326
+ icon: "play",
16327
+ effect: {
16328
+ field: "state",
16329
+ value: "running"
16330
+ }
16331
+ },
16332
+ {
16333
+ id: "workload.stop",
16334
+ method: "stop",
16335
+ label: {
16336
+ en: "Stop",
16337
+ it: "Arresta"
16338
+ },
16339
+ phrase: {
16340
+ en: "Stop {device}",
16341
+ it: "Arresta {device}"
16342
+ },
16343
+ icon: "square",
16344
+ effect: {
16345
+ field: "state",
16346
+ value: "stopped"
16347
+ }
16348
+ },
16349
+ {
16350
+ id: "workload.restart",
16351
+ method: "restart",
16352
+ label: {
16353
+ en: "Restart",
16354
+ it: "Riavvia"
16355
+ },
16356
+ phrase: {
16357
+ en: "Restart {device}",
16358
+ it: "Riavvia {device}"
16359
+ },
16360
+ icon: "rotate-ccw"
16361
+ },
16362
+ {
16363
+ id: "workload.pause",
16364
+ method: "pause",
16365
+ label: {
16366
+ en: "Pause",
16367
+ it: "Metti in pausa"
16368
+ },
16369
+ phrase: {
16370
+ en: "Pause {device}",
16371
+ it: "Metti in pausa {device}"
16372
+ },
16373
+ icon: "pause",
16374
+ effect: {
16375
+ field: "state",
16376
+ value: "paused"
16377
+ }
16378
+ },
16379
+ {
16380
+ id: "workload.resume",
16381
+ method: "resume",
16382
+ label: {
16383
+ en: "Resume",
16384
+ it: "Riprendi"
16385
+ },
16386
+ phrase: {
16387
+ en: "Resume {device}",
16388
+ it: "Riprendi {device}"
16389
+ },
16390
+ icon: "circle-play",
16391
+ effect: {
16392
+ field: "state",
16393
+ value: "running"
16394
+ }
16395
+ },
16396
+ {
16397
+ id: "workload.forceStop",
16398
+ method: "forceStop",
16399
+ label: {
16400
+ en: "Force stop",
16401
+ it: "Arresto forzato"
16402
+ },
16403
+ phrase: {
16404
+ en: "Force {device} to stop",
16405
+ it: "Forza l’arresto di {device}"
16406
+ },
16407
+ icon: "octagon-x",
16408
+ effect: {
16409
+ field: "state",
16410
+ value: "stopped"
16411
+ }
16412
+ }
16413
+ ],
16414
+ state: [
16415
+ {
16416
+ kind: "enum",
16417
+ field: "state",
16418
+ label: {
16419
+ en: "State",
16420
+ it: "Stato"
16421
+ },
16422
+ values: [
16423
+ {
16424
+ value: "running",
16425
+ label: {
16426
+ en: "Running",
16427
+ it: "In esecuzione"
16428
+ },
16429
+ phrase: {
16430
+ en: "When {device} is running",
16431
+ it: "Quando {device} è in esecuzione"
16432
+ }
16433
+ },
16434
+ {
16435
+ value: "paused",
16436
+ label: {
16437
+ en: "Paused",
16438
+ it: "In pausa"
16439
+ }
16440
+ },
16441
+ {
16442
+ value: "stopped",
16443
+ label: {
16444
+ en: "Stopped",
16445
+ it: "Arrestato"
16446
+ },
16447
+ phrase: {
16448
+ en: "When {device} is stopped",
16449
+ it: "Quando {device} è arrestato"
16450
+ }
16451
+ },
16452
+ {
16453
+ value: "starting",
16454
+ label: {
16455
+ en: "Starting",
16456
+ it: "In avvio"
16457
+ }
16458
+ },
16459
+ {
16460
+ value: "stopping",
16461
+ label: {
16462
+ en: "Stopping",
16463
+ it: "In arresto"
16464
+ }
16465
+ },
16466
+ {
16467
+ value: "crashed",
16468
+ label: {
16469
+ en: "Crashed",
16470
+ it: "Arrestato in modo anomalo"
16471
+ },
16472
+ phrase: {
16473
+ en: "When {device} has crashed",
16474
+ it: "Quando {device} è arrestato in modo anomalo"
16475
+ }
16476
+ }
16477
+ ],
16478
+ icon: "activity"
16479
+ },
16480
+ {
16481
+ kind: "numeric",
16482
+ field: "resources.cpuPercent",
16483
+ quantity: {
16484
+ en: "the CPU use",
16485
+ it: "l'uso della CPU"
16486
+ },
16487
+ label: {
16488
+ en: "CPU",
16489
+ it: "CPU"
16490
+ },
16491
+ unit: "%",
16492
+ icon: "cpu"
16493
+ },
16494
+ {
16495
+ kind: "numeric",
16496
+ field: "resources.memoryPercent",
16497
+ quantity: {
16498
+ en: "the memory use",
16499
+ it: "l'uso della memoria"
16500
+ },
16501
+ label: {
16502
+ en: "Memory",
16503
+ it: "Memoria"
16504
+ },
16505
+ unit: "%",
16506
+ icon: "memory-stick"
16507
+ },
16508
+ {
16509
+ kind: "numeric",
16510
+ field: "resources.temperature",
16511
+ quantity: {
16512
+ en: "the temperature",
16513
+ it: "la temperatura"
16514
+ },
16515
+ label: {
16516
+ en: "Temperature",
16517
+ it: "Temperatura"
16518
+ },
16519
+ unit: "°C",
16520
+ icon: "thermometer"
16521
+ }
16522
+ ],
16523
+ events: {
16524
+ onStarted: {
16525
+ category: EventCategory.WorkloadStarted,
16526
+ label: {
16527
+ en: "Started",
16528
+ it: "Avviato"
16529
+ },
16530
+ phrase: {
16531
+ en: "When {device} starts",
16532
+ it: "Quando {device} si avvia"
16533
+ },
16534
+ icon: "play"
16535
+ },
16536
+ onStopped: {
16537
+ category: EventCategory.WorkloadStopped,
16538
+ label: {
16539
+ en: "Stopped",
16540
+ it: "Arrestato"
16541
+ },
16542
+ phrase: {
16543
+ en: "When {device} stops",
16544
+ it: "Quando {device} si arresta"
16545
+ },
16546
+ icon: "square"
16547
+ },
16548
+ onCrashed: {
16549
+ category: EventCategory.WorkloadCrashed,
16550
+ label: {
16551
+ en: "Crashed",
16552
+ it: "Arrestato in modo anomalo"
16553
+ },
16554
+ phrase: {
16555
+ en: "When {device} stops without being asked",
16556
+ it: "Quando {device} si arresta senza che sia stato richiesto"
16557
+ },
16558
+ icon: "triangle-alert"
16559
+ },
16560
+ onRecovered: {
16561
+ category: EventCategory.WorkloadRecovered,
16562
+ label: {
16563
+ en: "Recovered",
16564
+ it: "Ripristinato"
16565
+ },
16566
+ phrase: {
16567
+ en: "When {device} runs again after a crash",
16568
+ it: "Quando {device} riparte dopo un arresto anomalo"
16569
+ },
16570
+ icon: "heart-pulse"
16571
+ }
16572
+ },
16573
+ overrides: { byRole: {
16574
+ [DeviceRole.Vm]: {
16575
+ actions: { "workload.start": { icon: "monitor" } },
16576
+ state: { state: { icon: "monitor" } }
16577
+ },
16578
+ [DeviceRole.AppContainer]: {
16579
+ actions: { "workload.start": { icon: "container" } },
16580
+ state: { state: { icon: "container" } }
16581
+ },
16582
+ [DeviceRole.Lxc]: {
16583
+ actions: { "workload.start": { icon: "box" } },
16584
+ state: { state: { icon: "box" } }
16585
+ },
16586
+ [DeviceRole.App]: {
16587
+ actions: { "workload.start": { icon: "app-window" } },
16588
+ state: { state: { icon: "app-window" } }
16589
+ },
16590
+ [DeviceRole.Host]: {
16591
+ actions: {
16592
+ "workload.start": {
16593
+ label: {
16594
+ en: "Power on",
16595
+ it: "Accendi"
16596
+ },
16597
+ phrase: {
16598
+ en: "Power on {device}",
16599
+ it: "Accendi {device}"
16600
+ },
16601
+ icon: "power"
16602
+ },
16603
+ "workload.stop": {
16604
+ label: {
16605
+ en: "Shut down",
16606
+ it: "Spegni"
16607
+ },
16608
+ phrase: {
16609
+ en: "Shut down {device}",
16610
+ it: "Spegni {device}"
16611
+ },
16612
+ icon: "power-off"
16613
+ },
16614
+ "workload.restart": {
16615
+ label: {
16616
+ en: "Reboot",
16617
+ it: "Riavvia"
16618
+ },
16619
+ phrase: {
16620
+ en: "Reboot {device}",
16621
+ it: "Riavvia {device}"
16622
+ },
16623
+ icon: "refresh-cw"
16624
+ }
16625
+ },
16626
+ state: { state: { icon: "server" } },
16627
+ events: {
16628
+ onStarted: {
16629
+ label: {
16630
+ en: "Came online",
16631
+ it: "Tornato in linea"
16632
+ },
16633
+ phrase: {
16634
+ en: "When {device} comes online",
16635
+ it: "Quando {device} torna in linea"
16636
+ },
16637
+ icon: "server"
16638
+ },
16639
+ onStopped: {
16640
+ label: {
16641
+ en: "Shut down",
16642
+ it: "Spento"
16643
+ },
16644
+ phrase: {
16645
+ en: "When {device} shuts down",
16646
+ it: "Quando {device} si spegne"
16647
+ },
16648
+ icon: "server-off"
16649
+ },
16650
+ onCrashed: {
16651
+ label: {
16652
+ en: "Went down",
16653
+ it: "Caduto"
16654
+ },
16655
+ phrase: {
16656
+ en: "When {device} goes down unexpectedly",
16657
+ it: "Quando {device} cade inaspettatamente"
16658
+ },
16659
+ icon: "server-crash"
16660
+ },
16661
+ onRecovered: {
16662
+ label: {
16663
+ en: "Came online",
16664
+ it: "Tornato in linea"
16665
+ },
16666
+ phrase: {
16667
+ en: "When {device} comes back online after going down",
16668
+ it: "Quando {device} torna in linea dopo essere caduto"
16669
+ },
16670
+ icon: "server"
16671
+ }
16672
+ }
16673
+ }
16674
+ } }
16675
+ },
16183
16676
  "accessories": {
16184
16677
  scope: "device",
16185
16678
  noun: {
@@ -19828,6 +20321,15 @@ var PipelineStepInputSchema = lazy(() => object({
19828
20321
  }));
19829
20322
  /** Typed bridge to the recursive `FrameResult` graph; validation is structural. */
19830
20323
  var PipelineRunResultBridge = custom();
20324
+ /**
20325
+ * Whether a switch can be set (D1058), schema-free so the addon runner can import it from
20326
+ * `@camstack/types/addon` without loading the capability schema graph (D28).
20327
+ */
20328
+ /** The read that decides whether a switch is offered on/off (`offeredWhen` of its actions). */
20329
+ var SWITCH_SETTABLE_GATE = {
20330
+ method: "getOptions",
20331
+ field: "supportsSetState"
20332
+ };
19831
20333
  var StaticDirOutputSchema = object({ staticDir: string() });
19832
20334
  var VersionOutputSchema = object({ version: string() });
19833
20335
  /**
@@ -20154,6 +20656,7 @@ var CAP_NAMES = Object.freeze([
20154
20656
  "weather",
20155
20657
  "weather-station",
20156
20658
  "webrtc-session",
20659
+ "workload",
20157
20660
  "zone-analytics",
20158
20661
  "zone-rules",
20159
20662
  "zones"
@@ -21456,6 +21959,14 @@ Object.freeze({
21456
21959
  "path": "ssid",
21457
21960
  "valueType": "string"
21458
21961
  },
21962
+ {
21963
+ "path": "speedKbps",
21964
+ "valueType": "number"
21965
+ },
21966
+ {
21967
+ "path": "linkUp",
21968
+ "valueType": "boolean"
21969
+ },
21459
21970
  {
21460
21971
  "path": "lastUpdated",
21461
21972
  "valueType": "number"
@@ -21852,6 +22363,14 @@ Object.freeze({
21852
22363
  "path": "durationSeconds",
21853
22364
  "valueType": "number"
21854
22365
  },
22366
+ {
22367
+ "path": "plays",
22368
+ "valueType": "number"
22369
+ },
22370
+ {
22371
+ "path": "activeUntilEstimated",
22372
+ "valueType": "boolean"
22373
+ },
21855
22374
  {
21856
22375
  "path": "lastTriggeredAt",
21857
22376
  "valueType": "number"
@@ -22254,6 +22773,92 @@ Object.freeze({
22254
22773
  "valueType": "number"
22255
22774
  }
22256
22775
  ],
22776
+ "workload": [
22777
+ {
22778
+ "path": "state",
22779
+ "valueType": "enum",
22780
+ "enumValues": [
22781
+ "running",
22782
+ "paused",
22783
+ "stopped",
22784
+ "starting",
22785
+ "stopping",
22786
+ "crashed"
22787
+ ]
22788
+ },
22789
+ {
22790
+ "path": "since",
22791
+ "valueType": "number"
22792
+ },
22793
+ {
22794
+ "path": "hostDeviceId",
22795
+ "valueType": "number"
22796
+ },
22797
+ {
22798
+ "path": "image",
22799
+ "valueType": "string"
22800
+ },
22801
+ {
22802
+ "path": "os",
22803
+ "valueType": "string"
22804
+ },
22805
+ {
22806
+ "path": "version",
22807
+ "valueType": "string"
22808
+ },
22809
+ {
22810
+ "path": "autostart",
22811
+ "valueType": "boolean"
22812
+ },
22813
+ {
22814
+ "path": "resources.cpuPercent",
22815
+ "valueType": "number"
22816
+ },
22817
+ {
22818
+ "path": "resources.memoryUsedBytes",
22819
+ "valueType": "number"
22820
+ },
22821
+ {
22822
+ "path": "resources.memoryPercent",
22823
+ "valueType": "number"
22824
+ },
22825
+ {
22826
+ "path": "resources.memoryLimitBytes",
22827
+ "valueType": "number"
22828
+ },
22829
+ {
22830
+ "path": "resources.vcpus",
22831
+ "valueType": "number"
22832
+ },
22833
+ {
22834
+ "path": "resources.diskUsedBytes",
22835
+ "valueType": "number"
22836
+ },
22837
+ {
22838
+ "path": "resources.diskTotalBytes",
22839
+ "valueType": "number"
22840
+ },
22841
+ {
22842
+ "path": "resources.netRxKbps",
22843
+ "valueType": "number"
22844
+ },
22845
+ {
22846
+ "path": "resources.netTxKbps",
22847
+ "valueType": "number"
22848
+ },
22849
+ {
22850
+ "path": "resources.load1",
22851
+ "valueType": "number"
22852
+ },
22853
+ {
22854
+ "path": "resources.temperature",
22855
+ "valueType": "number"
22856
+ },
22857
+ {
22858
+ "path": "updateAvailable",
22859
+ "valueType": "boolean"
22860
+ }
22861
+ ],
22257
22862
  "zone-analytics": [
22258
22863
  {
22259
22864
  "path": "ts",
@@ -22370,7 +22975,7 @@ function sleep(ms) {
22370
22975
  return new Promise((resolve) => setTimeout(resolve, Math.max(0, ms)));
22371
22976
  }
22372
22977
  //#endregion
22373
- //#region ../types/dist/implemented-methods-C5FMXLGP.mjs
22978
+ //#region ../types/dist/implemented-methods-u7ddjc-_.mjs
22374
22979
  /**
22375
22980
  * The ffmpeg build every CamStack node downloads, per platform and arch.
22376
22981
  *
@@ -23420,63 +24025,99 @@ var HelperMemberSchema = object({
23420
24025
  cap: string().min(1),
23421
24026
  fieldPath: string().min(1)
23422
24027
  });
24028
+ /** A group, a statistic, or an integral (D944). The composer runs all three. */
24029
+ var GroupHelperSpecSchema = object({
24030
+ kind: literal("group"),
24031
+ templateId: GroupTemplateIdSchema,
24032
+ aggregate: AggregateReducerSchema,
24033
+ members: array(HelperMemberSchema).min(1).max(64),
24034
+ /** Actuator groups only. Readings leave this unset. */
24035
+ active: ActiveCriterionSchema.optional()
24036
+ });
24037
+ var statisticHelperObject = object({
24038
+ kind: literal("statistic"),
24039
+ stat: _enum(STATISTIC_STATS),
24040
+ window: StatisticWindowSchema,
24041
+ source: HelperMemberSchema
24042
+ });
24043
+ var integralHelperObject = object({
24044
+ kind: literal("integral"),
24045
+ reset: _enum(RESET_PERIODS),
24046
+ output: _enum(["energy", "meter"]),
24047
+ source: HelperMemberSchema
24048
+ });
24049
+ var thresholdHelperObject = object({
24050
+ kind: literal("threshold"),
24051
+ source: HelperMemberSchema,
24052
+ high: number$1(),
24053
+ low: number$1(),
24054
+ onForMs: number$1().int().nonnegative(),
24055
+ offForMs: number$1().int().nonnegative()
24056
+ });
24057
+ var arithmeticHelperObject = object({
24058
+ kind: literal("arithmetic"),
24059
+ op: _enum([
24060
+ "sum",
24061
+ "difference",
24062
+ "ratio"
24063
+ ]),
24064
+ inputs: array(HelperMemberSchema).min(2).max(64)
24065
+ });
24066
+ var expressionHelperObject = object({
24067
+ kind: literal("expression"),
24068
+ expr: string().min(1),
24069
+ inputs: array(object({
24070
+ name: string().min(1),
24071
+ member: HelperMemberSchema
24072
+ })).min(1).max(64),
24073
+ output: _enum(["number", "boolean"])
24074
+ });
24075
+ var derivativeHelperObject = object({
24076
+ kind: literal("derivative"),
24077
+ window: RollingWindowSchema,
24078
+ per: _enum([
24079
+ "second",
24080
+ "minute",
24081
+ "hour"
24082
+ ]),
24083
+ source: HelperMemberSchema
24084
+ });
24085
+ /** The stream profiles a camera grid can publish. */
24086
+ var GRID_PROFILES = [
24087
+ "high",
24088
+ "mid",
24089
+ "low"
24090
+ ];
24091
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
24092
+ var GridRectSchema = object({
24093
+ x: number$1().min(0).max(1),
24094
+ y: number$1().min(0).max(1),
24095
+ width: number$1().gt(0).max(1),
24096
+ height: number$1().gt(0).max(1)
24097
+ });
24098
+ var GridCellSpecSchema = object({
24099
+ source: CompositionSourceRefSchema,
24100
+ region: GridRectSchema,
24101
+ cell: GridRectSchema
24102
+ });
23423
24103
  var HelperSpecSchema = discriminatedUnion("kind", [
23424
24104
  object({
23425
- kind: literal("group"),
23426
- templateId: GroupTemplateIdSchema,
23427
- aggregate: AggregateReducerSchema,
23428
- members: array(HelperMemberSchema).min(1).max(64),
23429
- /** Actuator groups only. Readings leave this unset. */
23430
- active: ActiveCriterionSchema.optional()
23431
- }),
23432
- object({
23433
- kind: literal("statistic"),
23434
- stat: _enum(STATISTIC_STATS),
23435
- window: StatisticWindowSchema,
23436
- source: HelperMemberSchema
23437
- }),
23438
- object({
23439
- kind: literal("integral"),
23440
- reset: _enum(RESET_PERIODS),
23441
- output: _enum(["energy", "meter"]),
23442
- source: HelperMemberSchema
23443
- }),
23444
- object({
23445
- kind: literal("threshold"),
23446
- source: HelperMemberSchema,
23447
- high: number$1(),
23448
- low: number$1(),
23449
- onForMs: number$1().int().nonnegative(),
23450
- offForMs: number$1().int().nonnegative()
24105
+ kind: literal("grid"),
24106
+ fps: number$1().int().min(1).max(60),
24107
+ publishedProfiles: array(_enum(GRID_PROFILES)).max(3),
24108
+ cells: array(GridCellSpecSchema).max(16)
23451
24109
  }),
23452
24110
  object({
23453
- kind: literal("arithmetic"),
23454
- op: _enum([
23455
- "sum",
23456
- "difference",
23457
- "ratio"
23458
- ]),
23459
- inputs: array(HelperMemberSchema).min(2).max(64)
24111
+ kind: literal("terminal"),
24112
+ terminalId: string().uuid()
23460
24113
  }),
23461
- object({
23462
- kind: literal("expression"),
23463
- expr: string().min(1),
23464
- inputs: array(object({
23465
- name: string().min(1),
23466
- member: HelperMemberSchema
23467
- })).min(1).max(64),
23468
- output: _enum(["number", "boolean"])
23469
- }),
23470
- object({
23471
- kind: literal("derivative"),
23472
- window: RollingWindowSchema,
23473
- per: _enum([
23474
- "second",
23475
- "minute",
23476
- "hour"
23477
- ]),
23478
- source: HelperMemberSchema
23479
- })
24114
+ GroupHelperSpecSchema,
24115
+ statisticHelperObject,
24116
+ integralHelperObject,
24117
+ thresholdHelperObject,
24118
+ arithmeticHelperObject,
24119
+ expressionHelperObject,
24120
+ derivativeHelperObject
23480
24121
  ]);
23481
24122
  /**
23482
24123
  * A COMPOSITION: a device assembled from other devices' state (D659).
@@ -54452,9 +55093,10 @@ var GridProfileOfferSchema = object({
54452
55093
  published: boolean()
54453
55094
  });
54454
55095
  var GridLayoutViewSchema = object({
54455
- /** The persisted grid row this camera was declared from. */
54456
- instanceId: string(),
55096
+ /** The grid block (planning#580) whose camera this is. */
55097
+ blockId: string(),
54457
55098
  deviceId: number$1().int().nonnegative(),
55099
+ /** The device row's name — the only name a grid has; it is renamed on the block or the device. */
54458
55100
  name: string(),
54459
55101
  /**
54460
55102
  * NO canvas size. A grid's resolution is not authored: each profile derives
@@ -54470,7 +55112,6 @@ var GridLayoutViewSchema = object({
54470
55112
  });
54471
55113
  var GridLayoutPatchSchema = object({
54472
55114
  deviceId: number$1().int().nonnegative(),
54473
- name: string().min(1).max(160).optional(),
54474
55115
  fps: number$1().int().min(1).max(60).optional(),
54475
55116
  /** Which profiles to publish. See `GridProfileOffer.published`. */
54476
55117
  publishedProfiles: array(_enum([
@@ -57390,7 +58031,7 @@ DeviceType.MediaPlayer, optionalMethod(deviceOnly, _void(), {
57390
58031
  }]
57391
58032
  }]
57392
58033
  });
57393
- 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;
58034
+ 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;
57394
58035
  var NUMBER = {
57395
58036
  kind: "fixed",
57396
58037
  result: ["number"]
@@ -57840,7 +58481,7 @@ new Map(GROUP_TEMPLATES.map((template) => [template.id, template]));
57840
58481
  DeviceType.Camera;
57841
58482
  /**
57842
58483
  * The series a device card trends, per cap (`history.primary` + `history.priority`):
57843
- * 6 caps. The card shows the primary of the enabled cap with the highest priority.
58484
+ * 7 caps. The card shows the primary of the enabled cap with the highest priority.
57844
58485
  */
57845
58486
  var HISTORY_PRIMARY = {
57846
58487
  "climate-control": {
@@ -57866,6 +58507,10 @@ var HISTORY_PRIMARY = {
57866
58507
  "weather-station": {
57867
58508
  field: "temperature",
57868
58509
  priority: 60
58510
+ },
58511
+ "workload": {
58512
+ field: "resources.cpuPercent",
58513
+ priority: 40
57869
58514
  }
57870
58515
  };
57871
58516
  DeviceFeature.LightColorRgb, DeviceFeature.LightColorHsv, DeviceFeature.LightColorMired;
@@ -57876,6 +58521,8 @@ var PowerSourceRefusalReasonSchema = _enum([
57876
58521
  "switch-unknown",
57877
58522
  "restart-in-progress",
57878
58523
  "switch-call-failed",
58524
+ "switch-options-unreadable",
58525
+ "not-settable",
57879
58526
  "switch-is-actuator"
57880
58527
  ]);
57881
58528
  var PowerSourceActionResultSchema = discriminatedUnion("accepted", [object({ accepted: literal(true) }), object({
@@ -57892,6 +58539,14 @@ var PowerSourceInfoSchema = object({
57892
58539
  /** The switch's on/off state, or null when it is unknown. Never false for unknown (D393). */
57893
58540
  switchOn: boolean().nullable(),
57894
58541
  switchOnline: boolean().nullable(),
58542
+ /**
58543
+ * Whether the linked switch can be set (`switch.getOptions().supportsSetState`; a provider
58544
+ * without the method is a plain switch, `true`). `null` = not known: no link, the switch is
58545
+ * missing, or the read FAILED. Absent = a provider that predates the field. Only `false`
58546
+ * withdraws power on / off (`offeredWhen` of `powerSource.on` / `.off`, the device hero) —
58547
+ * unknown keeps them (D315, D1058).
58548
+ */
58549
+ switchSettable: boolean().nullable().optional(),
57895
58550
  restartInProgress: boolean(),
57896
58551
  offSeconds: number$1().int()
57897
58552
  });
@@ -57903,6 +58558,11 @@ object({
57903
58558
  });
57904
58559
  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;
57905
58560
  var deviceInput$2 = object({ deviceId: number$1().int().nonnegative() });
58561
+ /** The read that decides whether power on / off are offered (`offeredWhen`, D1058). */
58562
+ var POWER_SOURCE_SETTABLE_GATE = {
58563
+ method: "getStatus",
58564
+ field: "switchSettable"
58565
+ };
57906
58566
  systemMethod(deviceInput$2, PowerSourceInfoSchema, { auth: "protected" }), systemMethod(deviceInput$2, PowerSourceActionResultSchema, {
57907
58567
  kind: "mutation",
57908
58568
  auth: "protected",
@@ -57910,7 +58570,8 @@ systemMethod(deviceInput$2, PowerSourceInfoSchema, { auth: "protected" }), syste
57910
58570
  id: "powerSource.on",
57911
58571
  label: t("Power on", "Dai corrente"),
57912
58572
  phrase: t("Power on {device}", "Dai corrente a {device}"),
57913
- icon: "power"
58573
+ icon: "power",
58574
+ offeredWhen: POWER_SOURCE_SETTABLE_GATE
57914
58575
  }]
57915
58576
  }), systemMethod(deviceInput$2, PowerSourceActionResultSchema, {
57916
58577
  kind: "mutation",
@@ -57919,7 +58580,8 @@ systemMethod(deviceInput$2, PowerSourceInfoSchema, { auth: "protected" }), syste
57919
58580
  id: "powerSource.off",
57920
58581
  label: t("Power off", "Togli corrente"),
57921
58582
  phrase: t("Cut the power of {device}", "Togli la corrente a {device}"),
57922
- icon: "power-off"
58583
+ icon: "power-off",
58584
+ offeredWhen: POWER_SOURCE_SETTABLE_GATE
57923
58585
  }]
57924
58586
  }), systemMethod(deviceInput$2, PowerSourceActionResultSchema, {
57925
58587
  kind: "mutation",
@@ -59360,6 +60022,50 @@ var SiteZoneSchema = object({
59360
60022
  * the ones that most want grouping. */
59361
60023
  locationKeys: array(string())
59362
60024
  });
60025
+ var DeviceIdentifierKeySchema = _enum([
60026
+ "mac",
60027
+ "serial",
60028
+ "machine-uuid",
60029
+ "vendor-uid",
60030
+ "hostname",
60031
+ "ip"
60032
+ ]);
60033
+ /** `read` — the provider read it from the device; `derived` — computed from something else it read. */
60034
+ var DeviceIdentifierOriginSchema = _enum(["read", "derived"]);
60035
+ var MAC_PATTERN = /^[0-9a-f]{2}(?::[0-9a-f]{2}){5}$/;
60036
+ /** `<prefix>:<value>` — prefix a lower-case slug, value lower-case and non-blank. */
60037
+ var PREFIXED_PATTERN = /^[a-z0-9][a-z0-9._-]*:[^\sA-Z]+$/;
60038
+ var MACHINE_UUID_PATTERN = /^[0-9a-f][0-9a-f-]{7,}$/;
60039
+ var HOSTNAME_PATTERN = /^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$/;
60040
+ function entrySchema(value) {
60041
+ return object({
60042
+ value,
60043
+ origin: DeviceIdentifierOriginSchema,
60044
+ /** Epoch ms of the FIRST read that produced this value (and origin). A later
60045
+ * read of the same value does not move it — see {@link mergeIdentifiers}. */
60046
+ readAt: number$1().int().nonnegative()
60047
+ }).strict();
60048
+ }
60049
+ var MacEntrySchema = entrySchema(string().regex(MAC_PATTERN));
60050
+ var SerialEntrySchema = entrySchema(string().regex(PREFIXED_PATTERN));
60051
+ var MachineUuidEntrySchema = entrySchema(string().regex(MACHINE_UUID_PATTERN));
60052
+ var VendorUidEntrySchema = entrySchema(string().regex(PREFIXED_PATTERN));
60053
+ var HostnameEntrySchema = entrySchema(string().regex(HOSTNAME_PATTERN));
60054
+ var IpEntrySchema = entrySchema(union([ipv4(), ipv6()]));
60055
+ object({
60056
+ value: string().min(1),
60057
+ origin: DeviceIdentifierOriginSchema,
60058
+ readAt: number$1().int().nonnegative()
60059
+ }).strict();
60060
+ /** The typed declaration. Every key optional; `mac` the only one that holds several. */
60061
+ var DeviceIdentifiersSchema = object({
60062
+ mac: array(MacEntrySchema).min(1).readonly().optional(),
60063
+ serial: SerialEntrySchema.optional(),
60064
+ "machine-uuid": MachineUuidEntrySchema.optional(),
60065
+ "vendor-uid": VendorUidEntrySchema.optional(),
60066
+ hostname: HostnameEntrySchema.optional(),
60067
+ ip: IpEntrySchema.optional()
60068
+ }).strict();
59363
60069
  var DeviceSearchRequiresSchema = object({
59364
60070
  /** Capability names the field wants a value of. Absent when the field wants actions only. */
59365
60071
  caps: array(string()).readonly().optional(),
@@ -59828,6 +60534,10 @@ var DeviceInfoSchema = object({
59828
60534
  /** Hardware + identity blob (manufacturer / model / firmware / sn /
59829
60535
  * uid / mac / …). Populated by drivers; editable via setMetadata. */
59830
60536
  metadata: record(string(), unknown()).nullable().optional(),
60537
+ /** Provider-declared identifiers (D1059): typed, normalised, written only by
60538
+ * the owning provider via `setIdentifiers`; read-only for the operator.
60539
+ * Absent ⇒ the provider declared none. */
60540
+ identifiers: DeviceIdentifiersSchema.optional(),
59831
60541
  /** Optional upstream-system identity + rendering envelope. See
59832
60542
  * `SourceInfo` in `packages/types/src/device/source-info.ts`. */
59833
60543
  sourceInfo: SourceInfoSchema.optional(),
@@ -59979,6 +60689,8 @@ var DeviceMetaSchema = object({
59979
60689
  disabled: boolean(),
59980
60690
  parentDeviceId: number$1().nullable(),
59981
60691
  metadata: record(string(), unknown()).nullable().optional(),
60692
+ /** Provider-declared identifiers (D1059). See `DeviceMeta.identifiers`. */
60693
+ identifiers: DeviceIdentifiersSchema.optional(),
59982
60694
  /** Optional upstream-system identity + rendering envelope. See
59983
60695
  * `SourceInfo`. Present when the device has been persisted with a
59984
60696
  * non-synthetic source identifier (HA entities, vendor MAC, …);
@@ -60292,6 +61004,14 @@ method(object({
60292
61004
  }), _void(), {
60293
61005
  kind: "mutation",
60294
61006
  auth: "admin"
61007
+ }), method(object({
61008
+ deviceId: number$1(),
61009
+ identifiers: DeviceIdentifiersSchema.nullable(),
61010
+ /** Kinds the provider tried to read and could not: their stored value is kept. */
61011
+ unread: array(DeviceIdentifierKeySchema).optional()
61012
+ }), _void(), {
61013
+ kind: "mutation",
61014
+ auth: "admin"
60295
61015
  }), method(_void(), array(string())), method(object({ name: string() }), _void(), {
60296
61016
  kind: "mutation",
60297
61017
  auth: "admin"
@@ -64702,8 +65422,8 @@ var HeroSceneSchema = object({
64702
65422
  /** 0..1: volume, cover position, cycle progress. */
64703
65423
  level: number$1().min(0).max(1).nullable()
64704
65424
  });
64705
- 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;
64706
- 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;
65425
+ 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;
65426
+ 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;
64707
65427
  var HeroRowIdSchema = _enum([
64708
65428
  "progress",
64709
65429
  "run-for",
@@ -64932,8 +65652,12 @@ var HeroPowerSupplySlotSchema = object({
64932
65652
  /** Off asks for a confirmation while the device runs. */
64933
65653
  confirmOffWhileRunning: boolean(),
64934
65654
  running: boolean().nullable(),
64935
- powerOn: HeroActionSchema,
64936
- powerOff: HeroActionSchema,
65655
+ /**
65656
+ * `null` when the linked switch ANSWERED it only reports (a PoE port seen through an
65657
+ * API key): power on / off would always be refused. The restart stays (D1058).
65658
+ */
65659
+ powerOn: HeroActionSchema.nullable(),
65660
+ powerOff: HeroActionSchema.nullable(),
64937
65661
  restart: HeroActionSchema
64938
65662
  });
64939
65663
  var HeroStateBackdropSchema = object({
@@ -75041,6 +75765,19 @@ var NetworkLinkStatusSchema = object({
75041
75765
  rssi: number$1().optional().meta(readingMeta("signal-level")),
75042
75766
  /** Network name of a wireless link, when the firmware reports it. */
75043
75767
  ssid: string().optional(),
75768
+ /**
75769
+ * Negotiated link speed of a wired port, the `bitrate` quantity in its base
75770
+ * unit, kbit/s (a gigabit port is 1 000 000); the display picks the unit.
75771
+ * `null` = the port is down or the speed is not known; absent = the provider
75772
+ * never reports one.
75773
+ */
75774
+ speedKbps: number$1().nonnegative().nullable().optional().meta(readingMeta("bitrate")),
75775
+ /**
75776
+ * Whether the link is up. `type` names the medium, not its state, so a wired
75777
+ * port that lost its link is `ethernet` + `linkUp: false`. `null` = not known;
75778
+ * absent = the provider never reports it.
75779
+ */
75780
+ linkUp: boolean().nullable().optional(),
75044
75781
  /** Ms epoch of the last observation. Lets consumers reason about freshness. */
75045
75782
  lastUpdated: number$1().meta(readingMeta("none"))
75046
75783
  });
@@ -77132,7 +77869,32 @@ var NcRuleInputSchema = object({
77132
77869
  * authored before this field meant. An editor turns it off by writing
77133
77870
  * `false`, so it needs no `clear` key.
77134
77871
  */
77135
- askVerdict: boolean().optional()
77872
+ askVerdict: boolean().optional(),
77873
+ /**
77874
+ * Operator tags (D1054), kept on the rule like a core block's. Absent = no
77875
+ * tags. `.optional()`, never `.default()`: a partial `updateRule` patch that
77876
+ * does not name `tags` keeps the stored ones (the store merges), and an
77877
+ * editor empties them by sending `[]` (the store drops an empty list).
77878
+ * Renamed or removed fleet-wide only through the `tags` cap, which writes
77879
+ * here with `setRuleTags`.
77880
+ */
77881
+ tags: TagsFieldSchema.optional()
77882
+ });
77883
+ /**
77884
+ * The rule kinds that carry tags (D1054) — each one its own store. Every kind
77885
+ * labels its rules the same way; this names which store a tag write goes to.
77886
+ */
77887
+ var NcTaggedRuleKindSchema = _enum([
77888
+ "event",
77889
+ "summary",
77890
+ "timelapse",
77891
+ "calendar-events"
77892
+ ]);
77893
+ /** One rule's tags, as the `tags` cap reads them across every kind. */
77894
+ var NcRuleTagsEntrySchema = object({
77895
+ kind: NcTaggedRuleKindSchema,
77896
+ ruleId: string(),
77897
+ tags: array(string())
77136
77898
  });
77137
77899
  /**
77138
77900
  * Partial patch for `updateRule` — any subset of the input fields, plus the
@@ -78149,6 +78911,16 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
78149
78911
  }), object({ success: literal(true) }), {
78150
78912
  kind: "mutation",
78151
78913
  auth: "admin"
78914
+ }), method(object({}), object({ rules: array(NcRuleTagsEntrySchema) }), {
78915
+ kind: "query",
78916
+ auth: "admin"
78917
+ }), method(object({
78918
+ kind: NcTaggedRuleKindSchema,
78919
+ ruleId: string(),
78920
+ tags: TagsFieldSchema
78921
+ }), object({ success: literal(true) }), {
78922
+ kind: "mutation",
78923
+ auth: "admin"
78152
78924
  }), method(object({}), NcClipRetentionPlanSchema, { auth: "admin" }), method(object({}), object({ mutedDeviceIds: array(number$1().int()).readonly() }), { auth: "admin" }), method(object({
78153
78925
  deviceId: number$1().int(),
78154
78926
  muted: boolean()
@@ -84085,7 +84857,18 @@ DeviceType.Camera, method(object({
84085
84857
  * older than this field keeps working unchanged (D382 — an unstated
84086
84858
  * ask is zero).
84087
84859
  */
84088
- audio: ClipStreamAudioSchema.optional()
84860
+ audio: ClipStreamAudioSchema.optional(),
84861
+ /**
84862
+ * The operator's authorisation to wake a sleeping camera for this
84863
+ * dial — the same {@link ClipWakeSchema} the byte reads carry. Absent
84864
+ * — the default — means a sleeping standalone battery camera is
84865
+ * REFUSED by name before any URL is minted. A caller sets it only
84866
+ * when a viewer itself asked for the clip (the broker's `playClip`);
84867
+ * a prefetch, a reconcile or a retry never does. With it, the
84868
+ * provider wakes the camera and waits under a bound; a camera that
84869
+ * does not come up is refused `wake-timeout`, naming the wait.
84870
+ */
84871
+ wake: ClipWakeSchema.optional()
84089
84872
  }), ClipStreamDialSchema, {
84090
84873
  kind: "query",
84091
84874
  auth: "protected"
@@ -84314,7 +85097,8 @@ _enum([
84314
85097
  "camera-refused",
84315
85098
  "fetch-failed",
84316
85099
  "too-large-to-transfer",
84317
- "wake-expired"
85100
+ "wake-expired",
85101
+ "wake-timeout"
84318
85102
  ]);
84319
85103
  /** Candidate download URLs (LAN first, then operator extra hosts). */
84320
85104
  var ExportDownloadSchema = object({
@@ -86223,6 +87007,16 @@ var SirenOptionsSchema = object({
86223
87007
  rangeSeconds: SirenDurationRangeSchema.nullable(),
86224
87008
  /** The camera's default duration, seconds. */
86225
87009
  defaultSeconds: number$1().positive(),
87010
+ /**
87011
+ * Discrete play counts the operator may pick; `null` when the camera gives a
87012
+ * range or does not count plays. Defaults to `null` so a provider that
87013
+ * predates plays (#589) reads as declaring none.
87014
+ */
87015
+ allowedPlays: array(number$1().int().positive()).nullable().default(null),
87016
+ /** Continuous range of play counts; `null` when listed or not counted. */
87017
+ rangePlays: SirenDurationRangeSchema.nullable().default(null),
87018
+ /** The camera's default play count; `null` when the camera does not count plays. */
87019
+ defaultPlays: number$1().int().positive().nullable().default(null),
86226
87020
  /** What the camera counts natively. */
86227
87021
  unit: _enum([SirenDurationUnit.Seconds, SirenDurationUnit.Plays]),
86228
87022
  /** Seconds one play lasts, when `unit` is `plays`; `null` for a seconds camera. */
@@ -86239,19 +87033,38 @@ var SirenStatusSchema = object({
86239
87033
  activeUntil: number$1().nullable(),
86240
87034
  /** Duration of the current / last activation, seconds; `null` when none yet. */
86241
87035
  durationSeconds: number$1().nullable(),
87036
+ /**
87037
+ * The play count of the current / last activation when it was asked in plays;
87038
+ * `null` when it was asked in seconds (or none yet). The unit that was asked.
87039
+ */
87040
+ plays: number$1().int().positive().nullable().default(null),
87041
+ /**
87042
+ * True when `activeUntil` comes from a seconds-per-play factor the camera did
87043
+ * not report — the siren may fall silent somewhat earlier or later.
87044
+ */
87045
+ activeUntilEstimated: boolean().default(false),
86242
87046
  /** Ms epoch of the last trigger (0 = never). */
86243
87047
  lastTriggeredAt: number$1()
86244
87048
  });
87049
+ /** A trigger asks seconds OR plays (#589); neither means the camera default. */
87050
+ var SirenTriggerInputSchema = object({
87051
+ deviceId: number$1().int().nonnegative(),
87052
+ durationSeconds: number$1().positive().optional(),
87053
+ plays: number$1().int().positive().optional()
87054
+ }).refine((input) => input.durationSeconds === void 0 || input.plays === void 0, {
87055
+ message: "a siren trigger takes durationSeconds or plays, not both",
87056
+ path: ["plays"]
87057
+ });
86245
87058
  SirenStatusSchema.extend({
86246
87059
  /** Ms epoch of the last successful camera read of the options (0 = never). */
86247
87060
  lastFetchedAt: number$1() });
86248
87061
  DeviceType.Siren, method(object({ deviceId: number$1().int().nonnegative() }), SirenOptionsSchema, {
86249
87062
  kind: "query",
86250
87063
  auth: "protected"
86251
- }), method(object({
86252
- deviceId: number$1().int().nonnegative(),
86253
- durationSeconds: number$1().positive().optional()
86254
- }), SirenStatusSchema, {
87064
+ }), method(object({ deviceId: number$1().int().nonnegative() }), array(number$1().int().positive()), {
87065
+ kind: "query",
87066
+ auth: "protected"
87067
+ }), method(SirenTriggerInputSchema, SirenStatusSchema, {
86255
87068
  kind: "mutation",
86256
87069
  auth: "protected",
86257
87070
  actions: [{
@@ -86260,6 +87073,21 @@ DeviceType.Siren, method(object({ deviceId: number$1().int().nonnegative() }), S
86260
87073
  phrase: t("Sound {device}", "Fai suonare {device}"),
86261
87074
  icon: "siren",
86262
87075
  args: {}
87076
+ }, {
87077
+ id: "siren.triggerPlays",
87078
+ label: t("Sound the siren N times", "Fai suonare la sirena N volte"),
87079
+ phrase: t("Sound {device} {plays} times", "Fai suonare {device} {plays} volte"),
87080
+ icon: "siren",
87081
+ openArgs: [{
87082
+ key: "plays",
87083
+ label: t("Plays", "Riproduzioni"),
87084
+ offer: {
87085
+ kind: "dynamic",
87086
+ from: "method",
87087
+ method: "getPlayChoices",
87088
+ valueKind: "number"
87089
+ }
87090
+ }]
86263
87091
  }]
86264
87092
  }), method(object({ deviceId: number$1().int().nonnegative() }), SirenStatusSchema, {
86265
87093
  kind: "mutation",
@@ -87181,6 +88009,26 @@ object({
87181
88009
  /** Ms epoch of the last state change. Useful for UI "X minutes ago". */
87182
88010
  lastChangedAt: number$1()
87183
88011
  });
88012
+ /**
88013
+ * What a switch can do, from its provider (`getOptions`). A provider that writes no
88014
+ * `getOptions` is a plain on/off switch: the defaults are the old contract.
88015
+ *
88016
+ * - `supportsSetState: false` — the switch reports its state but cannot be set (a PoE port seen only
88017
+ * through an API key). Its provider refuses `setState`; these surfaces withdraw on/off once the
88018
+ * device ANSWERED this (`switchRefusesSetState`): the device hero, the automation action picker
88019
+ * (`offeredWhen` on `switch.on` / `switch.off` / `switch.toggle`), the default `toggle`, the
88020
+ * HomeKit, Alexa and Google exporters, and `power-source` on a device the switch powers
88021
+ * (`getStatus().switchSettable`, `offeredWhen` on `powerSource.on` / `.off`, `not-settable`). A
88022
+ * read that failed or is pending changes nothing (D315).
88023
+ * - `supportsPowerCycle: true` — the device behind the switch can cut and restore its own output in
88024
+ * one native call (a PoE port's power cycle). It has no control of its own: a linked
88025
+ * `power-source.forceRestart` uses it instead of off / wait / on.
88026
+ */
88027
+ var SwitchOptionsSchema = object({
88028
+ supportsSetState: boolean().default(true),
88029
+ supportsPowerCycle: boolean().default(false)
88030
+ });
88031
+ SwitchOptionsSchema.parse({});
87184
88032
  DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, method(object({
87185
88033
  deviceId: number$1(),
87186
88034
  on: boolean()
@@ -87196,7 +88044,8 @@ DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, method(ob
87196
88044
  field: "on",
87197
88045
  value: true
87198
88046
  },
87199
- args: { on: true }
88047
+ args: { on: true },
88048
+ offeredWhen: SWITCH_SETTABLE_GATE
87200
88049
  }, {
87201
88050
  id: "switch.off",
87202
88051
  label: t("Turn off", "Spegni"),
@@ -87206,8 +88055,13 @@ DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, method(ob
87206
88055
  field: "on",
87207
88056
  value: false
87208
88057
  },
87209
- args: { on: false }
88058
+ args: { on: false },
88059
+ offeredWhen: SWITCH_SETTABLE_GATE
87210
88060
  }]
88061
+ }), optionalMethod(object({ deviceId: number$1() }), SwitchOptionsSchema, { auth: "protected" }), optionalMethod(object({ deviceId: number$1() }), _void(), {
88062
+ kind: "mutation",
88063
+ auth: "protected",
88064
+ notOperatorFacing: "a power cycle is the forced restart of the device the switch powers (power-source), never a step of its own"
87211
88065
  }), optionalMethod(object({ deviceId: number$1() }), _void(), {
87212
88066
  kind: "mutation",
87213
88067
  auth: "protected",
@@ -87215,13 +88069,14 @@ DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, method(ob
87215
88069
  id: "switch.toggle",
87216
88070
  label: t("Toggle", "Commuta"),
87217
88071
  phrase: t("Toggle {device}", "Commuta {device}"),
87218
- icon: "toggle-right"
88072
+ icon: "toggle-right",
88073
+ offeredWhen: SWITCH_SETTABLE_GATE
87219
88074
  }]
87220
88075
  }), object({
87221
88076
  deviceId: number$1(),
87222
88077
  on: boolean().nullable(),
87223
88078
  lastChangedAt: number$1()
87224
- }), DeviceType.Siren, DeviceType.Light, DeviceRole.Siren, DeviceRole.Floodlight, DeviceRole.Spotlight, DeviceRole.SwitchLight, DeviceRole.Chime, DeviceRole.PirSensor, DeviceRole.Nightvision, DeviceRole.PrivacyMask, DeviceRole.Autotrack, DeviceRole.Outlet;
88079
+ }), 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;
87225
88080
  /** C0 controls, DEL and the C1 range: none of them belongs in a name. */
87226
88081
  function hasControlCharacter(value) {
87227
88082
  for (const char of value) {
@@ -87806,10 +88661,11 @@ method(_void(), SystemInfoSchema), method(_void(), HealthStatusSchema), method(_
87806
88661
  /**
87807
88662
  * tags — the registry of tag STYLES and the one place that renames or removes a
87808
88663
  * tag everywhere (D1054). A tag itself lives in the `tags` array of the record it
87809
- * labels (a core block, a scheduler, a template, an action, a device); only its
88664
+ * labels (a core block, a scheduler, a template, an action, a device, a
88665
+ * notification rule); only its
87810
88666
  * colour token and icon are registered here. Provided by the core-blocks builtin,
87811
- * the one place that knows every owner kind; devices are reached through
87812
- * `deviceManager` over `ctx.api`.
88667
+ * the one place that knows every owner kind; devices and notification rules
88668
+ * are reached through `deviceManager` / `notificationRules` over `ctx.api`.
87813
88669
  *
87814
88670
  * Tags compare trimmed and case-insensitively. `list` is the union of styled tags
87815
88671
  * and tags in use; a tag with no style answers a colour derived from its name and
@@ -87820,7 +88676,21 @@ var TagUsageCountsSchema = object({
87820
88676
  schedulers: number$1().int().nonnegative(),
87821
88677
  templates: number$1().int().nonnegative(),
87822
88678
  actions: number$1().int().nonnegative(),
87823
- devices: number$1().int().nonnegative()
88679
+ devices: number$1().int().nonnegative(),
88680
+ notificationRules: number$1().int().nonnegative()
88681
+ });
88682
+ /**
88683
+ * The counts `list` answers. An owner that could not be read (a forked addon
88684
+ * that is down, redeploying or not installed) is `null` — unknown, never `0`
88685
+ * (D393) — and `list` still answers with the other owners' tags.
88686
+ */
88687
+ var TagListCountsSchema = object({
88688
+ coreBlocks: number$1().int().nonnegative().nullable(),
88689
+ schedulers: number$1().int().nonnegative().nullable(),
88690
+ templates: number$1().int().nonnegative().nullable(),
88691
+ actions: number$1().int().nonnegative().nullable(),
88692
+ devices: number$1().int().nonnegative().nullable(),
88693
+ notificationRules: number$1().int().nonnegative().nullable()
87824
88694
  });
87825
88695
  var TagEntrySchema = object({
87826
88696
  name: TagNameSchema,
@@ -87828,7 +88698,8 @@ var TagEntrySchema = object({
87828
88698
  icon: IconKeySchema,
87829
88699
  /** `false` when the operator never chose a style: colour and icon are the derived defaults. */
87830
88700
  styled: boolean(),
87831
- counts: TagUsageCountsSchema
88701
+ /** Per owner kind; `null` = that owner could not be read on this call. */
88702
+ counts: TagListCountsSchema
87832
88703
  });
87833
88704
  method(object({}), array(TagEntrySchema), { auth: "protected" }), method(object({
87834
88705
  name: TagNameSchema,
@@ -88285,7 +89156,6 @@ method(object({ kind: TemplateKindSchema.optional() }), array(TemplateRecordSche
88285
89156
  });
88286
89157
  /** Profile-exported FormBuilder schema. Shape is ConfigUISchema at the UI. */
88287
89158
  var ProfileSettingsSchemaBridge = unknown().nullable();
88288
- var ProfileSettingsBagSchema = record(string(), unknown());
88289
89159
  /**
88290
89160
  * A live terminal session hosted by the provider addon. Output and input do
88291
89161
  * NOT flow through the capability — they use the addon data plane
@@ -88304,7 +89174,11 @@ var TerminalSessionInfoSchema = object({
88304
89174
  cols: number$1().int().positive(),
88305
89175
  rows: number$1().int().positive(),
88306
89176
  /** ms-epoch the session's pty was spawned. */
88307
- startedAt: number$1()
89177
+ startedAt: number$1(),
89178
+ /** User id of the admin who opened it; `unattributed` when the caller was not passed. */
89179
+ openedBy: string().optional(),
89180
+ /** ms-epoch of the last pty input or output — what the idle timeout measures. */
89181
+ lastActivityAt: number$1().optional()
88308
89182
  });
88309
89183
  /**
88310
89184
  * A profile the operator may open — a pre-declared, allowlisted program
@@ -88324,39 +89198,6 @@ var TerminalProfileInfoSchema = object({
88324
89198
  /** ConfigUISchema for instance knobs, or null when the profile has none. */
88325
89199
  settingsSchema: ProfileSettingsSchemaBridge.optional()
88326
89200
  });
88327
- /**
88328
- * A durable operator-created Terminal instance. Profiles are templates; only
88329
- * an instance declares a camera.
88330
- */
88331
- var TerminalInstanceInfoSchema = object({
88332
- instanceId: string(),
88333
- cameraStableId: string(),
88334
- nodeId: string(),
88335
- /**
88336
- * False while the node the instance is bound to is not in the cluster
88337
- * topology (forgotten, renamed, re-paired). The instance is kept; the
88338
- * operator re-points it on the Terminal page.
88339
- */
88340
- nodeInCluster: boolean(),
88341
- profileId: string(),
88342
- profileLabel: string(),
88343
- name: string(),
88344
- enabled: boolean(),
88345
- executable: string(),
88346
- args: array(string()).readonly(),
88347
- cwd: string(),
88348
- environment: array(string()).readonly(),
88349
- profileSettings: ProfileSettingsBagSchema
88350
- });
88351
- var TerminalLegacyCameraSchema = object({
88352
- stableId: string(),
88353
- nodeId: string(),
88354
- profileId: string(),
88355
- profileLabel: string(),
88356
- name: string(),
88357
- /** Only legacy monitor cameras can retain their historic stable identity. */
88358
- adoptable: boolean()
88359
- });
88360
89201
  var TerminalOutputEventSchema = discriminatedUnion("kind", [object({
88361
89202
  seq: number$1().int().positive(),
88362
89203
  kind: literal("data"),
@@ -88384,13 +89225,7 @@ var TerminalOutputBatchSchema = object({
88384
89225
  snapshot: string().optional(),
88385
89226
  events: array(TerminalOutputEventSchema).readonly()
88386
89227
  });
88387
- method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }), method(_void(), array(TerminalLegacyCameraSchema).readonly(), { auth: "admin" }), method(object({
88388
- stableId: string().min(1),
88389
- name: string().trim().min(1).max(160).optional()
88390
- }), TerminalInstanceInfoSchema, {
88391
- kind: "mutation",
88392
- auth: "admin"
88393
- }), method(_void(), array(TerminalSessionInfoSchema).readonly(), { auth: "admin" }), method(_void(), ServerShellStatusSchema, { auth: "admin" }), method(object({
89228
+ method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }), method(_void(), array(TerminalSessionInfoSchema).readonly(), { auth: "admin" }), method(_void(), ServerShellStatusSchema, { auth: "admin" }), method(object({
88394
89229
  profileId: string(),
88395
89230
  cols: number$1().int().positive(),
88396
89231
  rows: number$1().int().positive(),
@@ -90503,6 +91338,175 @@ DeviceType.Camera, method(object({ deviceId: number$1().int().nonnegative() }),
90503
91338
  deviceId: number$1().int().nonnegative(),
90504
91339
  sessionId: string()
90505
91340
  }), WebrtcSessionDebugSchema, { kind: "query" });
91341
+ var WorkloadStateSchema = _enum([
91342
+ "running",
91343
+ "paused",
91344
+ "stopped",
91345
+ "starting",
91346
+ "stopping",
91347
+ "crashed"
91348
+ ]);
91349
+ DeviceRole.Vm, DeviceRole.AppContainer, DeviceRole.Lxc, DeviceRole.App, DeviceRole.Host;
91350
+ /**
91351
+ * What the workload uses. Every value is `null` when not reported (D393). A host
91352
+ * fills `load1` and `temperature`; its uptime is `since` while it runs.
91353
+ */
91354
+ var WorkloadResourcesSchema = object({
91355
+ /** CPU use, percent of the CPUs it may use (0–100). */
91356
+ cpuPercent: number$1().nullable().meta(readingMeta("percentage", { precision: 1 })),
91357
+ memoryUsedBytes: number$1().nullable().meta(readingMeta("information")),
91358
+ /**
91359
+ * Memory use, percent of `memoryLimitBytes`, for a source that reports a share
91360
+ * and not bytes (a Docker container's stats). Absent or `null` = not reported.
91361
+ */
91362
+ memoryPercent: number$1().nullable().optional().meta(readingMeta("percentage", { precision: 1 })),
91363
+ /** The memory it may use: the limit of a container, the RAM of a VM or host. */
91364
+ memoryLimitBytes: number$1().nullable().meta(readingMeta("information")),
91365
+ vcpus: number$1().nullable().meta(readingMeta("count")),
91366
+ diskUsedBytes: number$1().nullable().meta(readingMeta("information")),
91367
+ diskTotalBytes: number$1().nullable().meta(readingMeta("information")),
91368
+ /** Network received, kbit/s. */
91369
+ netRxKbps: number$1().nullable().meta(readingMeta("bitrate")),
91370
+ /** Network sent, kbit/s. */
91371
+ netTxKbps: number$1().nullable().meta(readingMeta("bitrate")),
91372
+ /** One-minute load average (a host). */
91373
+ load1: number$1().nullable().meta(readingMeta("index", { precision: 2 })),
91374
+ /** CPU / board temperature (a host). */
91375
+ temperature: number$1().nullable().meta(readingMeta("temperature", { precision: 1 }))
91376
+ });
91377
+ var WorkloadPortProtocolSchema = _enum(["tcp", "udp"]);
91378
+ /** One published port: the workload's own port and where the host exposes it. */
91379
+ var WorkloadPortSchema = object({
91380
+ port: number$1().int().meta(readingMeta("none")),
91381
+ /** The host port it is published on; null = not published. */
91382
+ hostPort: number$1().int().nullable().meta(readingMeta("none")),
91383
+ /** The host address it is bound to; null = every address. */
91384
+ hostIp: string().nullable(),
91385
+ protocol: WorkloadPortProtocolSchema
91386
+ });
91387
+ object({
91388
+ /** null = unknown, never stopped (D393). */
91389
+ state: WorkloadStateSchema.nullable().meta({ label: "State" }),
91390
+ /** Epoch ms the current state began (uptime while running); null when unknown. */
91391
+ since: number$1().nullable().meta(readingMeta("none")),
91392
+ /** The `host` device this runs on, when the provider has adopted it. */
91393
+ hostDeviceId: number$1().int().nullable().meta(readingMeta("device")),
91394
+ /** The image a container runs (`nginx:1.27`). */
91395
+ image: string().nullable(),
91396
+ /** The operating system (a VM, an LXC, a host). */
91397
+ os: string().nullable(),
91398
+ /** The version or firmware it runs. */
91399
+ version: string().nullable(),
91400
+ /** Starts with its host; null when the platform does not say. */
91401
+ autostart: boolean().nullable(),
91402
+ resources: WorkloadResourcesSchema,
91403
+ ports: array(WorkloadPortSchema),
91404
+ /** The addresses it is reachable on (IPs or host names). */
91405
+ addresses: array(string()),
91406
+ /** A newer image / version exists. Installing it stays the `update` cap. */
91407
+ updateAvailable: boolean().nullable(),
91408
+ lastFetchedAt: number$1()
91409
+ });
91410
+ /**
91411
+ * What this device can do, probed by its provider (D14 honesty): a flag is
91412
+ * `true` only when the platform really serves it for THIS device.
91413
+ */
91414
+ var WorkloadOptionsSchema = object({
91415
+ supportsStart: boolean(),
91416
+ supportsStop: boolean(),
91417
+ supportsRestart: boolean(),
91418
+ /** Pause AND resume. */
91419
+ supportsPause: boolean(),
91420
+ supportsForceStop: boolean(),
91421
+ hasResources: boolean(),
91422
+ hasPorts: boolean(),
91423
+ hasAddresses: boolean(),
91424
+ hasAutostart: boolean(),
91425
+ hasUpdateCheck: boolean()
91426
+ });
91427
+ var WorkloadDeviceInputSchema = object({ deviceId: number$1().int().nonnegative() });
91428
+ object({
91429
+ deviceId: number$1(),
91430
+ state: WorkloadStateSchema,
91431
+ previous: WorkloadStateSchema,
91432
+ since: number$1().nullable()
91433
+ });
91434
+ EventCategory.WorkloadStarted, EventCategory.WorkloadStopped, EventCategory.WorkloadCrashed, EventCategory.WorkloadRecovered;
91435
+ DeviceType.Workload, DeviceType.Workload, optionalMethod(WorkloadDeviceInputSchema, _void(), {
91436
+ kind: "mutation",
91437
+ auth: "protected",
91438
+ actions: [{
91439
+ id: "workload.start",
91440
+ label: t("Start", "Avvia"),
91441
+ phrase: t("Start {device}", "Avvia {device}"),
91442
+ icon: "play",
91443
+ effect: {
91444
+ field: "state",
91445
+ value: "running"
91446
+ }
91447
+ }]
91448
+ }), optionalMethod(WorkloadDeviceInputSchema, _void(), {
91449
+ kind: "mutation",
91450
+ auth: "protected",
91451
+ actions: [{
91452
+ id: "workload.stop",
91453
+ label: t("Stop", "Arresta"),
91454
+ phrase: t("Stop {device}", "Arresta {device}"),
91455
+ icon: "square",
91456
+ effect: {
91457
+ field: "state",
91458
+ value: "stopped"
91459
+ }
91460
+ }]
91461
+ }), optionalMethod(WorkloadDeviceInputSchema, _void(), {
91462
+ kind: "mutation",
91463
+ auth: "protected",
91464
+ actions: [{
91465
+ id: "workload.restart",
91466
+ label: t("Restart", "Riavvia"),
91467
+ phrase: t("Restart {device}", "Riavvia {device}"),
91468
+ icon: "rotate-ccw"
91469
+ }]
91470
+ }), optionalMethod(WorkloadDeviceInputSchema, _void(), {
91471
+ kind: "mutation",
91472
+ auth: "protected",
91473
+ actions: [{
91474
+ id: "workload.pause",
91475
+ label: t("Pause", "Metti in pausa"),
91476
+ phrase: t("Pause {device}", "Metti in pausa {device}"),
91477
+ icon: "pause",
91478
+ effect: {
91479
+ field: "state",
91480
+ value: "paused"
91481
+ }
91482
+ }]
91483
+ }), optionalMethod(WorkloadDeviceInputSchema, _void(), {
91484
+ kind: "mutation",
91485
+ auth: "protected",
91486
+ actions: [{
91487
+ id: "workload.resume",
91488
+ label: t("Resume", "Riprendi"),
91489
+ phrase: t("Resume {device}", "Riprendi {device}"),
91490
+ icon: "circle-play",
91491
+ effect: {
91492
+ field: "state",
91493
+ value: "running"
91494
+ }
91495
+ }]
91496
+ }), optionalMethod(WorkloadDeviceInputSchema, _void(), {
91497
+ kind: "mutation",
91498
+ auth: "admin",
91499
+ actions: [{
91500
+ id: "workload.forceStop",
91501
+ label: t("Force stop", "Arresto forzato"),
91502
+ phrase: t("Force {device} to stop", "Forza l’arresto di {device}"),
91503
+ icon: "octagon-x",
91504
+ effect: {
91505
+ field: "state",
91506
+ value: "stopped"
91507
+ }
91508
+ }]
91509
+ }), method(WorkloadDeviceInputSchema, WorkloadOptionsSchema, { auth: "protected" }), EventCategory.WorkloadStarted, EventCategory.WorkloadStopped, EventCategory.WorkloadCrashed, EventCategory.WorkloadRecovered, DeviceRole.Vm, DeviceRole.AppContainer, DeviceRole.Lxc, DeviceRole.App, DeviceRole.Host;
90506
91510
  /**
90507
91511
  * Per-zone occupancy aggregation produced by the analytics frame
90508
91512
  * processor on every inference result. Covers the full combinatorial
@@ -91164,7 +92168,7 @@ var AccessoryKind = {
91164
92168
  };
91165
92169
  AccessoryKind.Siren, AccessoryKind.Floodlight, AccessoryKind.Spotlight, AccessoryKind.PirSensor, AccessoryKind.Chime, AccessoryKind.Autotrack, AccessoryKind.Nightvision, AccessoryKind.PrivacyMask;
91166
92170
  DeviceType.HeatPump;
91167
- 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;
92171
+ 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;
91168
92172
  new Set(Object.values(DeviceType));
91169
92173
  /** Parses the raw slice with the cap's own schema; `undefined` when it does not parse. */
91170
92174
  function contribution(cap, schema, build) {
@@ -93220,7 +94224,7 @@ var HEAT_PUMP_FAMILY_CONTRIBUTIONS = { "heat-pump-status": contribution("heat-pu
93220
94224
  ...Object.values(CLIMATE_FAMILY_CONTRIBUTIONS),
93221
94225
  ...Object.values(HEAT_PUMP_FAMILY_CONTRIBUTIONS)
93222
94226
  ];
93223
- 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;
94227
+ 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;
93224
94228
  /**
93225
94229
  * Who looks like what (D1023). One look per {@link DeviceType}, refined by a
93226
94230
  * {@link DeviceRole} where the role changes how the device reads (a leak
@@ -93864,8 +94868,8 @@ lookOf({
93864
94868
  standby: MUTED
93865
94869
  });
93866
94870
  DeviceType.Climate;
93867
- 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;
93868
- 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;
94871
+ 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;
94872
+ 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;
93869
94873
  Object.freeze({
93870
94874
  "accessories.getStatus": {
93871
94875
  capName: "accessories",
@@ -96527,6 +97531,13 @@ Object.freeze({
96527
97531
  access: "create",
96528
97532
  role: "admin"
96529
97533
  },
97534
+ "deviceManager.setIdentifiers": {
97535
+ capName: "device-manager",
97536
+ capScope: "system",
97537
+ addonId: null,
97538
+ access: "create",
97539
+ role: "admin"
97540
+ },
96530
97541
  "deviceManager.setIntegrationId": {
96531
97542
  capName: "device-manager",
96532
97543
  capScope: "system",
@@ -99411,6 +100422,13 @@ Object.freeze({
99411
100422
  access: "view",
99412
100423
  role: "admin"
99413
100424
  },
100425
+ "notificationRules.listRuleTags": {
100426
+ capName: "notification-rules",
100427
+ capScope: "system",
100428
+ addonId: null,
100429
+ access: "view",
100430
+ role: "admin"
100431
+ },
99414
100432
  "notificationRules.listSnoozes": {
99415
100433
  capName: "notification-rules",
99416
100434
  capScope: "system",
@@ -99467,6 +100485,13 @@ Object.freeze({
99467
100485
  access: "create",
99468
100486
  role: "admin"
99469
100487
  },
100488
+ "notificationRules.setRuleTags": {
100489
+ capName: "notification-rules",
100490
+ capScope: "system",
100491
+ addonId: null,
100492
+ access: "create",
100493
+ role: "admin"
100494
+ },
99470
100495
  "notificationRules.testRule": {
99471
100496
  capName: "notification-rules",
99472
100497
  capScope: "system",
@@ -102435,6 +103460,13 @@ Object.freeze({
102435
103460
  access: "view",
102436
103461
  role: "viewer"
102437
103462
  },
103463
+ "siren.getPlayChoices": {
103464
+ capName: "siren",
103465
+ capScope: "device",
103466
+ addonId: null,
103467
+ access: "view",
103468
+ role: "viewer"
103469
+ },
102438
103470
  "siren.getStatus": {
102439
103471
  capName: "siren",
102440
103472
  capScope: "device",
@@ -103247,6 +104279,13 @@ Object.freeze({
103247
104279
  access: "view",
103248
104280
  role: "viewer"
103249
104281
  },
104282
+ "switch.getOptions": {
104283
+ capName: "switch",
104284
+ capScope: "device",
104285
+ addonId: null,
104286
+ access: "view",
104287
+ role: "viewer"
104288
+ },
103250
104289
  "switch.getStatus": {
103251
104290
  capName: "switch",
103252
104291
  capScope: "device",
@@ -103254,6 +104293,13 @@ Object.freeze({
103254
104293
  access: "view",
103255
104294
  role: "viewer"
103256
104295
  },
104296
+ "switch.powerCycle": {
104297
+ capName: "switch",
104298
+ capScope: "device",
104299
+ addonId: null,
104300
+ access: "create",
104301
+ role: "viewer"
104302
+ },
103257
104303
  "switch.setState": {
103258
104304
  capName: "switch",
103259
104305
  capScope: "device",
@@ -103457,13 +104503,6 @@ Object.freeze({
103457
104503
  access: "create",
103458
104504
  role: "admin"
103459
104505
  },
103460
- "terminalSession.adoptLegacyMonitor": {
103461
- capName: "terminal-session",
103462
- capScope: "system",
103463
- addonId: null,
103464
- access: "create",
103465
- role: "admin"
103466
- },
103467
104506
  "terminalSession.close": {
103468
104507
  capName: "terminal-session",
103469
104508
  capScope: "system",
@@ -103471,13 +104510,6 @@ Object.freeze({
103471
104510
  access: "create",
103472
104511
  role: "admin"
103473
104512
  },
103474
- "terminalSession.listLegacyCameras": {
103475
- capName: "terminal-session",
103476
- capScope: "system",
103477
- addonId: null,
103478
- access: "view",
103479
- role: "admin"
103480
- },
103481
104513
  "terminalSession.listProfiles": {
103482
104514
  capName: "terminal-session",
103483
104515
  capScope: "system",
@@ -104339,6 +105371,62 @@ Object.freeze({
104339
105371
  access: "view",
104340
105372
  role: "viewer"
104341
105373
  },
105374
+ "workload.forceStop": {
105375
+ capName: "workload",
105376
+ capScope: "device",
105377
+ addonId: null,
105378
+ access: "create",
105379
+ role: "admin"
105380
+ },
105381
+ "workload.getOptions": {
105382
+ capName: "workload",
105383
+ capScope: "device",
105384
+ addonId: null,
105385
+ access: "view",
105386
+ role: "viewer"
105387
+ },
105388
+ "workload.getStatus": {
105389
+ capName: "workload",
105390
+ capScope: "device",
105391
+ addonId: null,
105392
+ access: "view",
105393
+ role: "viewer"
105394
+ },
105395
+ "workload.pause": {
105396
+ capName: "workload",
105397
+ capScope: "device",
105398
+ addonId: null,
105399
+ access: "create",
105400
+ role: "viewer"
105401
+ },
105402
+ "workload.restart": {
105403
+ capName: "workload",
105404
+ capScope: "device",
105405
+ addonId: null,
105406
+ access: "create",
105407
+ role: "viewer"
105408
+ },
105409
+ "workload.resume": {
105410
+ capName: "workload",
105411
+ capScope: "device",
105412
+ addonId: null,
105413
+ access: "create",
105414
+ role: "viewer"
105415
+ },
105416
+ "workload.start": {
105417
+ capName: "workload",
105418
+ capScope: "device",
105419
+ addonId: null,
105420
+ access: "create",
105421
+ role: "viewer"
105422
+ },
105423
+ "workload.stop": {
105424
+ capName: "workload",
105425
+ capScope: "device",
105426
+ addonId: null,
105427
+ access: "create",
105428
+ role: "viewer"
105429
+ },
104342
105430
  "zoneAnalytics.getCameraHistory": {
104343
105431
  capName: "zone-analytics",
104344
105432
  capScope: "device",
@@ -104503,8 +105591,8 @@ function offered(received) {
104503
105591
  };
104504
105592
  }
104505
105593
  offered(HA_AS), withheld(HOMEKIT_REASON), withheld(ALEXA_REASON), withheld(GOOGLE_REASON), withheld(MATTER_REASON);
104506
- 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;
104507
- 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;
105594
+ 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;
105595
+ 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;
104508
105596
  new Set(Object.values(DeviceType));
104509
105597
  new Set(Object.values(DeviceRole));
104510
105598
  Object.freeze({
@@ -105206,6 +106294,11 @@ Object.freeze({
105206
106294
  form: "single",
105207
106295
  optional: false
105208
106296
  }],
106297
+ "deviceManager.setIdentifiers": [{
106298
+ name: "deviceId",
106299
+ form: "single",
106300
+ optional: false
106301
+ }],
105209
106302
  "deviceManager.setIntegrationId": [{
105210
106303
  name: "deviceId",
105211
106304
  form: "single",
@@ -107200,6 +108293,11 @@ Object.freeze({
107200
108293
  form: "single",
107201
108294
  optional: false
107202
108295
  }],
108296
+ "siren.getPlayChoices": [{
108297
+ name: "deviceId",
108298
+ form: "single",
108299
+ optional: false
108300
+ }],
107203
108301
  "siren.getStatus": [{
107204
108302
  name: "deviceId",
107205
108303
  form: "single",
@@ -107382,11 +108480,21 @@ Object.freeze({
107382
108480
  form: "single",
107383
108481
  optional: false
107384
108482
  }],
108483
+ "switch.getOptions": [{
108484
+ name: "deviceId",
108485
+ form: "single",
108486
+ optional: false
108487
+ }],
107385
108488
  "switch.getStatus": [{
107386
108489
  name: "deviceId",
107387
108490
  form: "single",
107388
108491
  optional: false
107389
108492
  }],
108493
+ "switch.powerCycle": [{
108494
+ name: "deviceId",
108495
+ form: "single",
108496
+ optional: false
108497
+ }],
107390
108498
  "switch.setState": [{
107391
108499
  name: "deviceId",
107392
108500
  form: "single",
@@ -107627,6 +108735,46 @@ Object.freeze({
107627
108735
  form: "single",
107628
108736
  optional: false
107629
108737
  }],
108738
+ "workload.forceStop": [{
108739
+ name: "deviceId",
108740
+ form: "single",
108741
+ optional: false
108742
+ }],
108743
+ "workload.getOptions": [{
108744
+ name: "deviceId",
108745
+ form: "single",
108746
+ optional: false
108747
+ }],
108748
+ "workload.getStatus": [{
108749
+ name: "deviceId",
108750
+ form: "single",
108751
+ optional: false
108752
+ }],
108753
+ "workload.pause": [{
108754
+ name: "deviceId",
108755
+ form: "single",
108756
+ optional: false
108757
+ }],
108758
+ "workload.restart": [{
108759
+ name: "deviceId",
108760
+ form: "single",
108761
+ optional: false
108762
+ }],
108763
+ "workload.resume": [{
108764
+ name: "deviceId",
108765
+ form: "single",
108766
+ optional: false
108767
+ }],
108768
+ "workload.start": [{
108769
+ name: "deviceId",
108770
+ form: "single",
108771
+ optional: false
108772
+ }],
108773
+ "workload.stop": [{
108774
+ name: "deviceId",
108775
+ form: "single",
108776
+ optional: false
108777
+ }],
107630
108778
  "zoneAnalytics.getCameraHistory": [{
107631
108779
  name: "deviceId",
107632
108780
  form: "single",
@@ -108940,6 +110088,8 @@ var TimelapseRuleInputSchema = object({
108940
110088
  /** Canonical notification priority ordinal (1..5); per-target overridable. */
108941
110089
  priority: PriorityField.default(3),
108942
110090
  /** Per-target settings keyed by target id (D1032) — absent = every target follows the rule. */
110091
+ /** Operator labels (D1054) — optional and NEVER defaulted: an absent key leaves the stored tags alone; `[]` clears them. Admin-only. */
110092
+ tags: TagsFieldSchema.optional(),
108943
110093
  targetOverrides: NcTargetOverridesSchema.optional()
108944
110094
  });
108945
110095
  object({
@@ -108958,6 +110108,8 @@ object({
108958
110108
  reportClasses: ReportClassesField.optional(),
108959
110109
  priority: PriorityField.optional(),
108960
110110
  /** Per-target settings keyed by target id (D1032) — absent = every target follows the rule. */
110111
+ /** Absent = keep the stored tags; `[]` clears them (D1054). Never defaulted. */
110112
+ tags: TagsFieldSchema.optional(),
108961
110113
  targetOverrides: NcTargetOverridesSchema.optional()
108962
110114
  });
108963
110115
  TimelapseRuleInputSchema.extend({