@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.
- package/CHANGELOG.md +6 -0
- package/assets/viewer/.viewer-current-files.json +24 -24
- package/assets/viewer/.viewer-version +1 -1
- package/assets/viewer/_expo/static/js/web/Clipboard-76776c371e4f6e2b18769c5a3d4223f9.js +8 -0
- package/assets/viewer/_expo/static/js/web/Haptics-0065b0d295e65672bd132cfe48850b6c.js +3 -0
- package/assets/viewer/_expo/static/js/web/[id]-6011df51d23387985c1362d9ba2fe23a.js +7 -0
- package/assets/viewer/_expo/static/js/web/[id]-67db9d7cf19315e2531260d6f72f7c13.js +5 -0
- package/assets/viewer/_expo/static/js/web/[section]-0dbf6562cdafd3a46ac8d08dd9bc32b5.js +29 -0
- package/assets/viewer/_expo/static/js/web/__common-302b4f7baafed7c76bb430a8e0d393f9.js +3862 -0
- package/assets/viewer/_expo/static/js/web/_layout-46568cda29d8690b30d73b3933699451.js +24 -0
- package/assets/viewer/_expo/static/js/web/add-server-0b9b670a4a164a8df829fd25279c4311.js +2 -0
- package/assets/viewer/_expo/static/js/web/alarm-8cf69916231a4647192546da21e1112e.js +1 -0
- package/assets/viewer/_expo/static/js/web/cameras-0ed4b2431bf24ed9da3085ac9fac9d1b.js +27 -0
- package/assets/viewer/_expo/static/js/web/connect-956f8d0dd70087b80574755a1cb17900.js +2 -0
- package/assets/viewer/_expo/static/js/web/enroll-c1b4af42f391d888716e121e3564c26a.js +19 -0
- package/assets/viewer/_expo/static/js/web/index-088fa2c0e80a89530ba942bfef18c967.js +4 -0
- package/assets/viewer/_expo/static/js/web/index-a4ddd747410c7ded6cc7ffed3a6e6207.js +1 -0
- package/assets/viewer/_expo/static/js/web/index-c5ea7c9128e1a508537f633164185e2d.js +2 -0
- package/assets/viewer/_expo/static/js/web/{index-96c6beba8474aed833c49b10d0566455.js → index-dddb6d1ef66579b0e316ee2965ef5541.js} +2 -2
- package/assets/viewer/_expo/static/js/web/new-b7826e8cea6954015e3f3238e53ce4d0.js +2 -0
- package/assets/viewer/_expo/static/js/web/settings-6b270d3359144ce4607f4d421f64c444.js +23 -0
- package/assets/viewer/_expo/static/js/web/sign-in-ec9d8f83793af6ba6f5775ae30b6b870.js +38 -0
- package/assets/viewer/embed/assets/{MaskShapeCanvas-DI4BY7W2-BRDlS4Y8.js → MaskShapeCanvas-DI4BY7W2-DiqpaXVN.js} +1 -1
- package/assets/viewer/embed/assets/{MotionZonesSettings-CiYjd-yl-CtwZQi_3.js → MotionZonesSettings-CiYjd-yl-BUqWvmwc.js} +1 -1
- package/assets/viewer/embed/assets/{PrivacyMaskSettings-BmRdUrPp-BgWoXRKb.js → PrivacyMaskSettings-BmRdUrPp-wcZFJkAC.js} +1 -1
- package/assets/viewer/embed/assets/{SceneMonitorEditor-J4Ix_0tu-CTjl2_iA.js → SceneMonitorEditor-J4Ix_0tu-Bvr6H5Dx.js} +1 -1
- package/assets/viewer/embed/assets/{index-Ddj0_ApC.js → index-1lr4Pdev.js} +5 -5
- package/assets/viewer/embed/index.html +1 -1
- package/assets/viewer/index.html +1 -1
- package/dist/_stub.js +47 -47
- 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
- package/dist/_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DMRY0wfC.mjs +26 -0
- 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
- package/dist/{hostInit-Du9FMBCM.mjs → hostInit-C-CrLIdU.mjs} +3 -3
- package/dist/index.js +1332 -180
- package/dist/index.mjs +1332 -180
- package/dist/remoteEntry.js +1 -1
- package/package.json +2 -2
- package/assets/viewer/_expo/static/js/web/__common-e5898658c8d856cae265dc0d400a2f1d.js +0 -3939
- package/dist/_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CMJug2bs.mjs +0 -26
- 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.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { createHash, randomUUID } from "node:crypto";
|
|
|
2
2
|
import fs from "node:fs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
|
-
//#region ../types/dist/event-category-
|
|
5
|
+
//#region ../types/dist/event-category-Hwx_JSCU.mjs
|
|
6
6
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
7
7
|
EventCategory["SystemBoot"] = "system.boot";
|
|
8
8
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -524,6 +524,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
524
524
|
EventCategory["RunningStarted"] = "running.started";
|
|
525
525
|
/** Mirrors `runningStateCapability.events.onFinished`. */
|
|
526
526
|
EventCategory["RunningFinished"] = "running.finished";
|
|
527
|
+
/** Mirrors `workloadCapability.events.onStarted` — a workload reached running (#585). */
|
|
528
|
+
EventCategory["WorkloadStarted"] = "workload.started";
|
|
529
|
+
/** Mirrors `workloadCapability.events.onStopped` — a running workload stopped cleanly. */
|
|
530
|
+
EventCategory["WorkloadStopped"] = "workload.stopped";
|
|
531
|
+
/** Mirrors `workloadCapability.events.onCrashed` — a workload stopped without a request. */
|
|
532
|
+
EventCategory["WorkloadCrashed"] = "workload.crashed";
|
|
533
|
+
/** Mirrors `workloadCapability.events.onRecovered` — a crashed workload runs again. */
|
|
534
|
+
EventCategory["WorkloadRecovered"] = "workload.recovered";
|
|
527
535
|
/** Mirrors `deviceRunsCapability.events.onRunOpened` - a durable run record opened. */
|
|
528
536
|
EventCategory["DeviceRunOpened"] = "device-run.opened";
|
|
529
537
|
/** Mirrors `deviceRunsCapability.events.onRunClosed` - a durable run record closed. */
|
|
@@ -826,7 +834,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
826
834
|
return EventCategory;
|
|
827
835
|
}({});
|
|
828
836
|
//#endregion
|
|
829
|
-
//#region ../types/dist/composed-stable-id-
|
|
837
|
+
//#region ../types/dist/composed-stable-id-BBL71oUQ.mjs
|
|
830
838
|
/**
|
|
831
839
|
import { errMsg } from '@camstack/types'
|
|
832
840
|
* Extract a human-readable message from an unknown error value.
|
|
@@ -958,6 +966,10 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
|
958
966
|
* and the storage as branches of one bus. One read-only `energy-system` cap carries
|
|
959
967
|
* every value; the storage is a field of it, never the `battery` cap (#513, #522). */
|
|
960
968
|
DeviceType["EnergySystem"] = "energy-system";
|
|
969
|
+
/** Something that RUNS on a machine, or the machine itself (#585): a VM, an app
|
|
970
|
+
* container, an LXC, an app, or a host. The kind is the ROLE (D1033, D1056), never
|
|
971
|
+
* a field; one `workload` cap carries the state, the controls and the resources. */
|
|
972
|
+
DeviceType["Workload"] = "workload";
|
|
961
973
|
return DeviceType;
|
|
962
974
|
}({});
|
|
963
975
|
var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
|
|
@@ -1178,6 +1190,11 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
1178
1190
|
* `light` type: the provider owns the type, and a light implies brightness
|
|
1179
1191
|
* or colour this relay lacks. */
|
|
1180
1192
|
DeviceRole["SwitchLight"] = "switch-light";
|
|
1193
|
+
/** One port of a network switch that powers the device behind it (PoE): on /
|
|
1194
|
+
* off feeds or cuts that power. Its link is `network-link`, its draw
|
|
1195
|
+
* `power-meter`. Restarting the powered device through the port is that
|
|
1196
|
+
* device's `power-source` cap, never a reboot of the port. */
|
|
1197
|
+
DeviceRole["PoePort"] = "poe-port";
|
|
1181
1198
|
/** Air conditioner / split unit: cooling, fan speed, louvres. */
|
|
1182
1199
|
DeviceRole["ClimateAc"] = "climate-ac";
|
|
1183
1200
|
/** Room thermostat: a setpoint and a room temperature. The default. */
|
|
@@ -1258,6 +1275,17 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
1258
1275
|
/** Emits a pulse train (infrared or RF) on request — the `ir-transmitter`
|
|
1259
1276
|
* cap. A `DeviceType.Generic` device. */
|
|
1260
1277
|
DeviceRole["IrTransmitter"] = "ir-transmitter";
|
|
1278
|
+
/** A virtual machine on a hypervisor. */
|
|
1279
|
+
DeviceRole["Vm"] = "vm";
|
|
1280
|
+
/** An application container (Docker, Podman). */
|
|
1281
|
+
DeviceRole["AppContainer"] = "app-container";
|
|
1282
|
+
/** A system container (LXC). */
|
|
1283
|
+
DeviceRole["Lxc"] = "lxc";
|
|
1284
|
+
/** An application or service running on a host. */
|
|
1285
|
+
DeviceRole["App"] = "app";
|
|
1286
|
+
/** A machine that runs workloads or is an appliance with its own OS: a
|
|
1287
|
+
* server, a hypervisor, a gateway console, a CCU. */
|
|
1288
|
+
DeviceRole["Host"] = "host";
|
|
1261
1289
|
return DeviceRole;
|
|
1262
1290
|
}({});
|
|
1263
1291
|
/**
|
|
@@ -1841,8 +1869,8 @@ var _emoji$1 = `^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;
|
|
|
1841
1869
|
function emoji() {
|
|
1842
1870
|
return new RegExp(_emoji$1, "u");
|
|
1843
1871
|
}
|
|
1844
|
-
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])$/;
|
|
1845
|
-
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}|:))$/;
|
|
1872
|
+
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])$/;
|
|
1873
|
+
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}|:))$/;
|
|
1846
1874
|
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])$/;
|
|
1847
1875
|
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])$/;
|
|
1848
1876
|
var base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/;
|
|
@@ -2516,12 +2544,12 @@ var $ZodISODuration = /*@__PURE__*/ $constructor("$ZodISODuration", (inst, def)
|
|
|
2516
2544
|
$ZodStringFormat.init(inst, def);
|
|
2517
2545
|
});
|
|
2518
2546
|
var $ZodIPv4 = /*@__PURE__*/ $constructor("$ZodIPv4", (inst, def) => {
|
|
2519
|
-
def.pattern ?? (def.pattern = ipv4);
|
|
2547
|
+
def.pattern ?? (def.pattern = ipv4$1);
|
|
2520
2548
|
$ZodStringFormat.init(inst, def);
|
|
2521
2549
|
inst._zod.bag.format = `ipv4`;
|
|
2522
2550
|
});
|
|
2523
2551
|
var $ZodIPv6 = /*@__PURE__*/ $constructor("$ZodIPv6", (inst, def) => {
|
|
2524
|
-
def.pattern ?? (def.pattern = ipv6);
|
|
2552
|
+
def.pattern ?? (def.pattern = ipv6$1);
|
|
2525
2553
|
$ZodStringFormat.init(inst, def);
|
|
2526
2554
|
inst._zod.bag.format = `ipv6`;
|
|
2527
2555
|
inst._zod.check = (payload) => {
|
|
@@ -5437,10 +5465,16 @@ var ZodIPv4 = /*@__PURE__*/ $constructor("ZodIPv4", (inst, def) => {
|
|
|
5437
5465
|
$ZodIPv4.init(inst, def);
|
|
5438
5466
|
ZodStringFormat.init(inst, def);
|
|
5439
5467
|
});
|
|
5468
|
+
function ipv4(params) {
|
|
5469
|
+
return /* @__PURE__ */ _ipv4(ZodIPv4, params);
|
|
5470
|
+
}
|
|
5440
5471
|
var ZodIPv6 = /*@__PURE__*/ $constructor("ZodIPv6", (inst, def) => {
|
|
5441
5472
|
$ZodIPv6.init(inst, def);
|
|
5442
5473
|
ZodStringFormat.init(inst, def);
|
|
5443
5474
|
});
|
|
5475
|
+
function ipv6(params) {
|
|
5476
|
+
return /* @__PURE__ */ _ipv6(ZodIPv6, params);
|
|
5477
|
+
}
|
|
5444
5478
|
var ZodCIDRv4 = /*@__PURE__*/ $constructor("ZodCIDRv4", (inst, def) => {
|
|
5445
5479
|
$ZodCIDRv4.init(inst, def);
|
|
5446
5480
|
ZodStringFormat.init(inst, def);
|
|
@@ -6078,7 +6112,7 @@ var ZodIssueCode = {
|
|
|
6078
6112
|
var ZodFirstPartyTypeKind;
|
|
6079
6113
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
6080
6114
|
//#endregion
|
|
6081
|
-
//#region ../types/dist/sleep-
|
|
6115
|
+
//#region ../types/dist/sleep-D6Pih0Qt.mjs
|
|
6082
6116
|
/**
|
|
6083
6117
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
6084
6118
|
* window to float samples (D455).
|
|
@@ -10733,6 +10767,10 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
10733
10767
|
effect: {
|
|
10734
10768
|
field: "on",
|
|
10735
10769
|
value: true
|
|
10770
|
+
},
|
|
10771
|
+
offeredWhen: {
|
|
10772
|
+
method: "getOptions",
|
|
10773
|
+
field: "supportsSetState"
|
|
10736
10774
|
}
|
|
10737
10775
|
},
|
|
10738
10776
|
{
|
|
@@ -10751,6 +10789,10 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
10751
10789
|
effect: {
|
|
10752
10790
|
field: "on",
|
|
10753
10791
|
value: false
|
|
10792
|
+
},
|
|
10793
|
+
offeredWhen: {
|
|
10794
|
+
method: "getOptions",
|
|
10795
|
+
field: "supportsSetState"
|
|
10754
10796
|
}
|
|
10755
10797
|
},
|
|
10756
10798
|
{
|
|
@@ -10764,9 +10806,14 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
10764
10806
|
en: "Toggle {device}",
|
|
10765
10807
|
it: "Commuta {device}"
|
|
10766
10808
|
},
|
|
10767
|
-
icon: "toggle-right"
|
|
10809
|
+
icon: "toggle-right",
|
|
10810
|
+
offeredWhen: {
|
|
10811
|
+
method: "getOptions",
|
|
10812
|
+
field: "supportsSetState"
|
|
10813
|
+
}
|
|
10768
10814
|
}
|
|
10769
10815
|
],
|
|
10816
|
+
notOperatorFacing: { powerCycle: "a power cycle is the forced restart of the device the switch powers (power-source), never a step of its own" },
|
|
10770
10817
|
state: [{
|
|
10771
10818
|
kind: "boolean",
|
|
10772
10819
|
field: "on",
|
|
@@ -11025,6 +11072,47 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
11025
11072
|
"switch.off": { icon: "plug" }
|
|
11026
11073
|
},
|
|
11027
11074
|
state: { on: { icon: "plug-zap" } }
|
|
11075
|
+
},
|
|
11076
|
+
[DeviceRole.PoePort]: {
|
|
11077
|
+
actions: {
|
|
11078
|
+
"switch.on": {
|
|
11079
|
+
label: {
|
|
11080
|
+
en: "Power on",
|
|
11081
|
+
it: "Alimenta"
|
|
11082
|
+
},
|
|
11083
|
+
phrase: {
|
|
11084
|
+
en: "Power on {device}",
|
|
11085
|
+
it: "Alimenta {device}"
|
|
11086
|
+
},
|
|
11087
|
+
icon: "plug-zap"
|
|
11088
|
+
},
|
|
11089
|
+
"switch.off": {
|
|
11090
|
+
label: {
|
|
11091
|
+
en: "Power off",
|
|
11092
|
+
it: "Togli alimentazione"
|
|
11093
|
+
},
|
|
11094
|
+
phrase: {
|
|
11095
|
+
en: "Power off {device}",
|
|
11096
|
+
it: "Togli alimentazione a {device}"
|
|
11097
|
+
},
|
|
11098
|
+
icon: "unplug"
|
|
11099
|
+
}
|
|
11100
|
+
},
|
|
11101
|
+
state: { on: {
|
|
11102
|
+
label: {
|
|
11103
|
+
en: "Powered",
|
|
11104
|
+
it: "Alimentata"
|
|
11105
|
+
},
|
|
11106
|
+
whenTrue: {
|
|
11107
|
+
en: "When {device} is powered",
|
|
11108
|
+
it: "Quando {device} viene alimentata"
|
|
11109
|
+
},
|
|
11110
|
+
whenFalse: {
|
|
11111
|
+
en: "When {device} loses power",
|
|
11112
|
+
it: "Quando {device} perde l’alimentazione"
|
|
11113
|
+
},
|
|
11114
|
+
icon: "plug-zap"
|
|
11115
|
+
} }
|
|
11028
11116
|
}
|
|
11029
11117
|
}
|
|
11030
11118
|
}
|
|
@@ -11744,7 +11832,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
11744
11832
|
en: "Power on {device}",
|
|
11745
11833
|
it: "Dai corrente a {device}"
|
|
11746
11834
|
},
|
|
11747
|
-
icon: "power"
|
|
11835
|
+
icon: "power",
|
|
11836
|
+
offeredWhen: {
|
|
11837
|
+
method: "getStatus",
|
|
11838
|
+
field: "switchSettable"
|
|
11839
|
+
}
|
|
11748
11840
|
},
|
|
11749
11841
|
{
|
|
11750
11842
|
id: "powerSource.off",
|
|
@@ -11757,7 +11849,11 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
11757
11849
|
en: "Cut the power of {device}",
|
|
11758
11850
|
it: "Togli la corrente a {device}"
|
|
11759
11851
|
},
|
|
11760
|
-
icon: "power-off"
|
|
11852
|
+
icon: "power-off",
|
|
11853
|
+
offeredWhen: {
|
|
11854
|
+
method: "getStatus",
|
|
11855
|
+
field: "switchSettable"
|
|
11856
|
+
}
|
|
11761
11857
|
},
|
|
11762
11858
|
{
|
|
11763
11859
|
id: "powerSource.forceRestart",
|
|
@@ -13527,37 +13623,66 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
13527
13623
|
en: "Siren",
|
|
13528
13624
|
it: "Sirena"
|
|
13529
13625
|
},
|
|
13530
|
-
actions: [
|
|
13531
|
-
|
|
13532
|
-
|
|
13533
|
-
|
|
13534
|
-
|
|
13535
|
-
|
|
13536
|
-
|
|
13537
|
-
|
|
13538
|
-
|
|
13539
|
-
|
|
13540
|
-
|
|
13541
|
-
|
|
13542
|
-
|
|
13543
|
-
|
|
13544
|
-
id: "siren.stop",
|
|
13545
|
-
method: "stop",
|
|
13546
|
-
label: {
|
|
13547
|
-
en: "Silence the siren",
|
|
13548
|
-
it: "Zittisci la sirena"
|
|
13626
|
+
actions: [
|
|
13627
|
+
{
|
|
13628
|
+
id: "siren.trigger",
|
|
13629
|
+
method: "trigger",
|
|
13630
|
+
label: {
|
|
13631
|
+
en: "Sound the siren",
|
|
13632
|
+
it: "Fai suonare la sirena"
|
|
13633
|
+
},
|
|
13634
|
+
phrase: {
|
|
13635
|
+
en: "Sound {device}",
|
|
13636
|
+
it: "Fai suonare {device}"
|
|
13637
|
+
},
|
|
13638
|
+
icon: "siren",
|
|
13639
|
+
args: {}
|
|
13549
13640
|
},
|
|
13550
|
-
|
|
13551
|
-
|
|
13552
|
-
|
|
13641
|
+
{
|
|
13642
|
+
id: "siren.triggerPlays",
|
|
13643
|
+
method: "trigger",
|
|
13644
|
+
label: {
|
|
13645
|
+
en: "Sound the siren N times",
|
|
13646
|
+
it: "Fai suonare la sirena N volte"
|
|
13647
|
+
},
|
|
13648
|
+
phrase: {
|
|
13649
|
+
en: "Sound {device} {plays} times",
|
|
13650
|
+
it: "Fai suonare {device} {plays} volte"
|
|
13651
|
+
},
|
|
13652
|
+
icon: "siren",
|
|
13653
|
+
openArgs: [{
|
|
13654
|
+
key: "plays",
|
|
13655
|
+
label: {
|
|
13656
|
+
en: "Plays",
|
|
13657
|
+
it: "Riproduzioni"
|
|
13658
|
+
},
|
|
13659
|
+
offer: {
|
|
13660
|
+
kind: "dynamic",
|
|
13661
|
+
from: "method",
|
|
13662
|
+
method: "getPlayChoices",
|
|
13663
|
+
valueKind: "number"
|
|
13664
|
+
}
|
|
13665
|
+
}]
|
|
13553
13666
|
},
|
|
13554
|
-
|
|
13555
|
-
|
|
13556
|
-
|
|
13557
|
-
|
|
13558
|
-
|
|
13667
|
+
{
|
|
13668
|
+
id: "siren.stop",
|
|
13669
|
+
method: "stop",
|
|
13670
|
+
label: {
|
|
13671
|
+
en: "Silence the siren",
|
|
13672
|
+
it: "Zittisci la sirena"
|
|
13673
|
+
},
|
|
13674
|
+
phrase: {
|
|
13675
|
+
en: "Silence {device}",
|
|
13676
|
+
it: "Zittisci {device}"
|
|
13677
|
+
},
|
|
13678
|
+
icon: "siren",
|
|
13679
|
+
args: {},
|
|
13680
|
+
effect: {
|
|
13681
|
+
field: "active",
|
|
13682
|
+
value: false
|
|
13683
|
+
}
|
|
13559
13684
|
}
|
|
13560
|
-
|
|
13685
|
+
],
|
|
13561
13686
|
state: [{
|
|
13562
13687
|
kind: "boolean",
|
|
13563
13688
|
field: "active",
|
|
@@ -16152,6 +16277,374 @@ var CAP_VOCABULARY_BY_NAME = {
|
|
|
16152
16277
|
icon: "loader"
|
|
16153
16278
|
}]
|
|
16154
16279
|
},
|
|
16280
|
+
"workload": {
|
|
16281
|
+
scope: "device",
|
|
16282
|
+
noun: {
|
|
16283
|
+
en: "Workload",
|
|
16284
|
+
it: "Carico di lavoro"
|
|
16285
|
+
},
|
|
16286
|
+
actions: [
|
|
16287
|
+
{
|
|
16288
|
+
id: "workload.start",
|
|
16289
|
+
method: "start",
|
|
16290
|
+
label: {
|
|
16291
|
+
en: "Start",
|
|
16292
|
+
it: "Avvia"
|
|
16293
|
+
},
|
|
16294
|
+
phrase: {
|
|
16295
|
+
en: "Start {device}",
|
|
16296
|
+
it: "Avvia {device}"
|
|
16297
|
+
},
|
|
16298
|
+
icon: "play",
|
|
16299
|
+
effect: {
|
|
16300
|
+
field: "state",
|
|
16301
|
+
value: "running"
|
|
16302
|
+
}
|
|
16303
|
+
},
|
|
16304
|
+
{
|
|
16305
|
+
id: "workload.stop",
|
|
16306
|
+
method: "stop",
|
|
16307
|
+
label: {
|
|
16308
|
+
en: "Stop",
|
|
16309
|
+
it: "Arresta"
|
|
16310
|
+
},
|
|
16311
|
+
phrase: {
|
|
16312
|
+
en: "Stop {device}",
|
|
16313
|
+
it: "Arresta {device}"
|
|
16314
|
+
},
|
|
16315
|
+
icon: "square",
|
|
16316
|
+
effect: {
|
|
16317
|
+
field: "state",
|
|
16318
|
+
value: "stopped"
|
|
16319
|
+
}
|
|
16320
|
+
},
|
|
16321
|
+
{
|
|
16322
|
+
id: "workload.restart",
|
|
16323
|
+
method: "restart",
|
|
16324
|
+
label: {
|
|
16325
|
+
en: "Restart",
|
|
16326
|
+
it: "Riavvia"
|
|
16327
|
+
},
|
|
16328
|
+
phrase: {
|
|
16329
|
+
en: "Restart {device}",
|
|
16330
|
+
it: "Riavvia {device}"
|
|
16331
|
+
},
|
|
16332
|
+
icon: "rotate-ccw"
|
|
16333
|
+
},
|
|
16334
|
+
{
|
|
16335
|
+
id: "workload.pause",
|
|
16336
|
+
method: "pause",
|
|
16337
|
+
label: {
|
|
16338
|
+
en: "Pause",
|
|
16339
|
+
it: "Metti in pausa"
|
|
16340
|
+
},
|
|
16341
|
+
phrase: {
|
|
16342
|
+
en: "Pause {device}",
|
|
16343
|
+
it: "Metti in pausa {device}"
|
|
16344
|
+
},
|
|
16345
|
+
icon: "pause",
|
|
16346
|
+
effect: {
|
|
16347
|
+
field: "state",
|
|
16348
|
+
value: "paused"
|
|
16349
|
+
}
|
|
16350
|
+
},
|
|
16351
|
+
{
|
|
16352
|
+
id: "workload.resume",
|
|
16353
|
+
method: "resume",
|
|
16354
|
+
label: {
|
|
16355
|
+
en: "Resume",
|
|
16356
|
+
it: "Riprendi"
|
|
16357
|
+
},
|
|
16358
|
+
phrase: {
|
|
16359
|
+
en: "Resume {device}",
|
|
16360
|
+
it: "Riprendi {device}"
|
|
16361
|
+
},
|
|
16362
|
+
icon: "circle-play",
|
|
16363
|
+
effect: {
|
|
16364
|
+
field: "state",
|
|
16365
|
+
value: "running"
|
|
16366
|
+
}
|
|
16367
|
+
},
|
|
16368
|
+
{
|
|
16369
|
+
id: "workload.forceStop",
|
|
16370
|
+
method: "forceStop",
|
|
16371
|
+
label: {
|
|
16372
|
+
en: "Force stop",
|
|
16373
|
+
it: "Arresto forzato"
|
|
16374
|
+
},
|
|
16375
|
+
phrase: {
|
|
16376
|
+
en: "Force {device} to stop",
|
|
16377
|
+
it: "Forza l’arresto di {device}"
|
|
16378
|
+
},
|
|
16379
|
+
icon: "octagon-x",
|
|
16380
|
+
effect: {
|
|
16381
|
+
field: "state",
|
|
16382
|
+
value: "stopped"
|
|
16383
|
+
}
|
|
16384
|
+
}
|
|
16385
|
+
],
|
|
16386
|
+
state: [
|
|
16387
|
+
{
|
|
16388
|
+
kind: "enum",
|
|
16389
|
+
field: "state",
|
|
16390
|
+
label: {
|
|
16391
|
+
en: "State",
|
|
16392
|
+
it: "Stato"
|
|
16393
|
+
},
|
|
16394
|
+
values: [
|
|
16395
|
+
{
|
|
16396
|
+
value: "running",
|
|
16397
|
+
label: {
|
|
16398
|
+
en: "Running",
|
|
16399
|
+
it: "In esecuzione"
|
|
16400
|
+
},
|
|
16401
|
+
phrase: {
|
|
16402
|
+
en: "When {device} is running",
|
|
16403
|
+
it: "Quando {device} è in esecuzione"
|
|
16404
|
+
}
|
|
16405
|
+
},
|
|
16406
|
+
{
|
|
16407
|
+
value: "paused",
|
|
16408
|
+
label: {
|
|
16409
|
+
en: "Paused",
|
|
16410
|
+
it: "In pausa"
|
|
16411
|
+
}
|
|
16412
|
+
},
|
|
16413
|
+
{
|
|
16414
|
+
value: "stopped",
|
|
16415
|
+
label: {
|
|
16416
|
+
en: "Stopped",
|
|
16417
|
+
it: "Arrestato"
|
|
16418
|
+
},
|
|
16419
|
+
phrase: {
|
|
16420
|
+
en: "When {device} is stopped",
|
|
16421
|
+
it: "Quando {device} è arrestato"
|
|
16422
|
+
}
|
|
16423
|
+
},
|
|
16424
|
+
{
|
|
16425
|
+
value: "starting",
|
|
16426
|
+
label: {
|
|
16427
|
+
en: "Starting",
|
|
16428
|
+
it: "In avvio"
|
|
16429
|
+
}
|
|
16430
|
+
},
|
|
16431
|
+
{
|
|
16432
|
+
value: "stopping",
|
|
16433
|
+
label: {
|
|
16434
|
+
en: "Stopping",
|
|
16435
|
+
it: "In arresto"
|
|
16436
|
+
}
|
|
16437
|
+
},
|
|
16438
|
+
{
|
|
16439
|
+
value: "crashed",
|
|
16440
|
+
label: {
|
|
16441
|
+
en: "Crashed",
|
|
16442
|
+
it: "Arrestato in modo anomalo"
|
|
16443
|
+
},
|
|
16444
|
+
phrase: {
|
|
16445
|
+
en: "When {device} has crashed",
|
|
16446
|
+
it: "Quando {device} è arrestato in modo anomalo"
|
|
16447
|
+
}
|
|
16448
|
+
}
|
|
16449
|
+
],
|
|
16450
|
+
icon: "activity"
|
|
16451
|
+
},
|
|
16452
|
+
{
|
|
16453
|
+
kind: "numeric",
|
|
16454
|
+
field: "resources.cpuPercent",
|
|
16455
|
+
quantity: {
|
|
16456
|
+
en: "the CPU use",
|
|
16457
|
+
it: "l'uso della CPU"
|
|
16458
|
+
},
|
|
16459
|
+
label: {
|
|
16460
|
+
en: "CPU",
|
|
16461
|
+
it: "CPU"
|
|
16462
|
+
},
|
|
16463
|
+
unit: "%",
|
|
16464
|
+
icon: "cpu"
|
|
16465
|
+
},
|
|
16466
|
+
{
|
|
16467
|
+
kind: "numeric",
|
|
16468
|
+
field: "resources.memoryPercent",
|
|
16469
|
+
quantity: {
|
|
16470
|
+
en: "the memory use",
|
|
16471
|
+
it: "l'uso della memoria"
|
|
16472
|
+
},
|
|
16473
|
+
label: {
|
|
16474
|
+
en: "Memory",
|
|
16475
|
+
it: "Memoria"
|
|
16476
|
+
},
|
|
16477
|
+
unit: "%",
|
|
16478
|
+
icon: "memory-stick"
|
|
16479
|
+
},
|
|
16480
|
+
{
|
|
16481
|
+
kind: "numeric",
|
|
16482
|
+
field: "resources.temperature",
|
|
16483
|
+
quantity: {
|
|
16484
|
+
en: "the temperature",
|
|
16485
|
+
it: "la temperatura"
|
|
16486
|
+
},
|
|
16487
|
+
label: {
|
|
16488
|
+
en: "Temperature",
|
|
16489
|
+
it: "Temperatura"
|
|
16490
|
+
},
|
|
16491
|
+
unit: "°C",
|
|
16492
|
+
icon: "thermometer"
|
|
16493
|
+
}
|
|
16494
|
+
],
|
|
16495
|
+
events: {
|
|
16496
|
+
onStarted: {
|
|
16497
|
+
category: EventCategory.WorkloadStarted,
|
|
16498
|
+
label: {
|
|
16499
|
+
en: "Started",
|
|
16500
|
+
it: "Avviato"
|
|
16501
|
+
},
|
|
16502
|
+
phrase: {
|
|
16503
|
+
en: "When {device} starts",
|
|
16504
|
+
it: "Quando {device} si avvia"
|
|
16505
|
+
},
|
|
16506
|
+
icon: "play"
|
|
16507
|
+
},
|
|
16508
|
+
onStopped: {
|
|
16509
|
+
category: EventCategory.WorkloadStopped,
|
|
16510
|
+
label: {
|
|
16511
|
+
en: "Stopped",
|
|
16512
|
+
it: "Arrestato"
|
|
16513
|
+
},
|
|
16514
|
+
phrase: {
|
|
16515
|
+
en: "When {device} stops",
|
|
16516
|
+
it: "Quando {device} si arresta"
|
|
16517
|
+
},
|
|
16518
|
+
icon: "square"
|
|
16519
|
+
},
|
|
16520
|
+
onCrashed: {
|
|
16521
|
+
category: EventCategory.WorkloadCrashed,
|
|
16522
|
+
label: {
|
|
16523
|
+
en: "Crashed",
|
|
16524
|
+
it: "Arrestato in modo anomalo"
|
|
16525
|
+
},
|
|
16526
|
+
phrase: {
|
|
16527
|
+
en: "When {device} stops without being asked",
|
|
16528
|
+
it: "Quando {device} si arresta senza che sia stato richiesto"
|
|
16529
|
+
},
|
|
16530
|
+
icon: "triangle-alert"
|
|
16531
|
+
},
|
|
16532
|
+
onRecovered: {
|
|
16533
|
+
category: EventCategory.WorkloadRecovered,
|
|
16534
|
+
label: {
|
|
16535
|
+
en: "Recovered",
|
|
16536
|
+
it: "Ripristinato"
|
|
16537
|
+
},
|
|
16538
|
+
phrase: {
|
|
16539
|
+
en: "When {device} runs again after a crash",
|
|
16540
|
+
it: "Quando {device} riparte dopo un arresto anomalo"
|
|
16541
|
+
},
|
|
16542
|
+
icon: "heart-pulse"
|
|
16543
|
+
}
|
|
16544
|
+
},
|
|
16545
|
+
overrides: { byRole: {
|
|
16546
|
+
[DeviceRole.Vm]: {
|
|
16547
|
+
actions: { "workload.start": { icon: "monitor" } },
|
|
16548
|
+
state: { state: { icon: "monitor" } }
|
|
16549
|
+
},
|
|
16550
|
+
[DeviceRole.AppContainer]: {
|
|
16551
|
+
actions: { "workload.start": { icon: "container" } },
|
|
16552
|
+
state: { state: { icon: "container" } }
|
|
16553
|
+
},
|
|
16554
|
+
[DeviceRole.Lxc]: {
|
|
16555
|
+
actions: { "workload.start": { icon: "box" } },
|
|
16556
|
+
state: { state: { icon: "box" } }
|
|
16557
|
+
},
|
|
16558
|
+
[DeviceRole.App]: {
|
|
16559
|
+
actions: { "workload.start": { icon: "app-window" } },
|
|
16560
|
+
state: { state: { icon: "app-window" } }
|
|
16561
|
+
},
|
|
16562
|
+
[DeviceRole.Host]: {
|
|
16563
|
+
actions: {
|
|
16564
|
+
"workload.start": {
|
|
16565
|
+
label: {
|
|
16566
|
+
en: "Power on",
|
|
16567
|
+
it: "Accendi"
|
|
16568
|
+
},
|
|
16569
|
+
phrase: {
|
|
16570
|
+
en: "Power on {device}",
|
|
16571
|
+
it: "Accendi {device}"
|
|
16572
|
+
},
|
|
16573
|
+
icon: "power"
|
|
16574
|
+
},
|
|
16575
|
+
"workload.stop": {
|
|
16576
|
+
label: {
|
|
16577
|
+
en: "Shut down",
|
|
16578
|
+
it: "Spegni"
|
|
16579
|
+
},
|
|
16580
|
+
phrase: {
|
|
16581
|
+
en: "Shut down {device}",
|
|
16582
|
+
it: "Spegni {device}"
|
|
16583
|
+
},
|
|
16584
|
+
icon: "power-off"
|
|
16585
|
+
},
|
|
16586
|
+
"workload.restart": {
|
|
16587
|
+
label: {
|
|
16588
|
+
en: "Reboot",
|
|
16589
|
+
it: "Riavvia"
|
|
16590
|
+
},
|
|
16591
|
+
phrase: {
|
|
16592
|
+
en: "Reboot {device}",
|
|
16593
|
+
it: "Riavvia {device}"
|
|
16594
|
+
},
|
|
16595
|
+
icon: "refresh-cw"
|
|
16596
|
+
}
|
|
16597
|
+
},
|
|
16598
|
+
state: { state: { icon: "server" } },
|
|
16599
|
+
events: {
|
|
16600
|
+
onStarted: {
|
|
16601
|
+
label: {
|
|
16602
|
+
en: "Came online",
|
|
16603
|
+
it: "Tornato in linea"
|
|
16604
|
+
},
|
|
16605
|
+
phrase: {
|
|
16606
|
+
en: "When {device} comes online",
|
|
16607
|
+
it: "Quando {device} torna in linea"
|
|
16608
|
+
},
|
|
16609
|
+
icon: "server"
|
|
16610
|
+
},
|
|
16611
|
+
onStopped: {
|
|
16612
|
+
label: {
|
|
16613
|
+
en: "Shut down",
|
|
16614
|
+
it: "Spento"
|
|
16615
|
+
},
|
|
16616
|
+
phrase: {
|
|
16617
|
+
en: "When {device} shuts down",
|
|
16618
|
+
it: "Quando {device} si spegne"
|
|
16619
|
+
},
|
|
16620
|
+
icon: "server-off"
|
|
16621
|
+
},
|
|
16622
|
+
onCrashed: {
|
|
16623
|
+
label: {
|
|
16624
|
+
en: "Went down",
|
|
16625
|
+
it: "Caduto"
|
|
16626
|
+
},
|
|
16627
|
+
phrase: {
|
|
16628
|
+
en: "When {device} goes down unexpectedly",
|
|
16629
|
+
it: "Quando {device} cade inaspettatamente"
|
|
16630
|
+
},
|
|
16631
|
+
icon: "server-crash"
|
|
16632
|
+
},
|
|
16633
|
+
onRecovered: {
|
|
16634
|
+
label: {
|
|
16635
|
+
en: "Came online",
|
|
16636
|
+
it: "Tornato in linea"
|
|
16637
|
+
},
|
|
16638
|
+
phrase: {
|
|
16639
|
+
en: "When {device} comes back online after going down",
|
|
16640
|
+
it: "Quando {device} torna in linea dopo essere caduto"
|
|
16641
|
+
},
|
|
16642
|
+
icon: "server"
|
|
16643
|
+
}
|
|
16644
|
+
}
|
|
16645
|
+
}
|
|
16646
|
+
} }
|
|
16647
|
+
},
|
|
16155
16648
|
"accessories": {
|
|
16156
16649
|
scope: "device",
|
|
16157
16650
|
noun: {
|
|
@@ -19800,6 +20293,15 @@ var PipelineStepInputSchema = lazy(() => object({
|
|
|
19800
20293
|
}));
|
|
19801
20294
|
/** Typed bridge to the recursive `FrameResult` graph; validation is structural. */
|
|
19802
20295
|
var PipelineRunResultBridge = custom();
|
|
20296
|
+
/**
|
|
20297
|
+
* Whether a switch can be set (D1058), schema-free so the addon runner can import it from
|
|
20298
|
+
* `@camstack/types/addon` without loading the capability schema graph (D28).
|
|
20299
|
+
*/
|
|
20300
|
+
/** The read that decides whether a switch is offered on/off (`offeredWhen` of its actions). */
|
|
20301
|
+
var SWITCH_SETTABLE_GATE = {
|
|
20302
|
+
method: "getOptions",
|
|
20303
|
+
field: "supportsSetState"
|
|
20304
|
+
};
|
|
19803
20305
|
var StaticDirOutputSchema = object({ staticDir: string() });
|
|
19804
20306
|
var VersionOutputSchema = object({ version: string() });
|
|
19805
20307
|
/**
|
|
@@ -20126,6 +20628,7 @@ var CAP_NAMES = Object.freeze([
|
|
|
20126
20628
|
"weather",
|
|
20127
20629
|
"weather-station",
|
|
20128
20630
|
"webrtc-session",
|
|
20631
|
+
"workload",
|
|
20129
20632
|
"zone-analytics",
|
|
20130
20633
|
"zone-rules",
|
|
20131
20634
|
"zones"
|
|
@@ -21428,6 +21931,14 @@ Object.freeze({
|
|
|
21428
21931
|
"path": "ssid",
|
|
21429
21932
|
"valueType": "string"
|
|
21430
21933
|
},
|
|
21934
|
+
{
|
|
21935
|
+
"path": "speedKbps",
|
|
21936
|
+
"valueType": "number"
|
|
21937
|
+
},
|
|
21938
|
+
{
|
|
21939
|
+
"path": "linkUp",
|
|
21940
|
+
"valueType": "boolean"
|
|
21941
|
+
},
|
|
21431
21942
|
{
|
|
21432
21943
|
"path": "lastUpdated",
|
|
21433
21944
|
"valueType": "number"
|
|
@@ -21824,6 +22335,14 @@ Object.freeze({
|
|
|
21824
22335
|
"path": "durationSeconds",
|
|
21825
22336
|
"valueType": "number"
|
|
21826
22337
|
},
|
|
22338
|
+
{
|
|
22339
|
+
"path": "plays",
|
|
22340
|
+
"valueType": "number"
|
|
22341
|
+
},
|
|
22342
|
+
{
|
|
22343
|
+
"path": "activeUntilEstimated",
|
|
22344
|
+
"valueType": "boolean"
|
|
22345
|
+
},
|
|
21827
22346
|
{
|
|
21828
22347
|
"path": "lastTriggeredAt",
|
|
21829
22348
|
"valueType": "number"
|
|
@@ -22226,6 +22745,92 @@ Object.freeze({
|
|
|
22226
22745
|
"valueType": "number"
|
|
22227
22746
|
}
|
|
22228
22747
|
],
|
|
22748
|
+
"workload": [
|
|
22749
|
+
{
|
|
22750
|
+
"path": "state",
|
|
22751
|
+
"valueType": "enum",
|
|
22752
|
+
"enumValues": [
|
|
22753
|
+
"running",
|
|
22754
|
+
"paused",
|
|
22755
|
+
"stopped",
|
|
22756
|
+
"starting",
|
|
22757
|
+
"stopping",
|
|
22758
|
+
"crashed"
|
|
22759
|
+
]
|
|
22760
|
+
},
|
|
22761
|
+
{
|
|
22762
|
+
"path": "since",
|
|
22763
|
+
"valueType": "number"
|
|
22764
|
+
},
|
|
22765
|
+
{
|
|
22766
|
+
"path": "hostDeviceId",
|
|
22767
|
+
"valueType": "number"
|
|
22768
|
+
},
|
|
22769
|
+
{
|
|
22770
|
+
"path": "image",
|
|
22771
|
+
"valueType": "string"
|
|
22772
|
+
},
|
|
22773
|
+
{
|
|
22774
|
+
"path": "os",
|
|
22775
|
+
"valueType": "string"
|
|
22776
|
+
},
|
|
22777
|
+
{
|
|
22778
|
+
"path": "version",
|
|
22779
|
+
"valueType": "string"
|
|
22780
|
+
},
|
|
22781
|
+
{
|
|
22782
|
+
"path": "autostart",
|
|
22783
|
+
"valueType": "boolean"
|
|
22784
|
+
},
|
|
22785
|
+
{
|
|
22786
|
+
"path": "resources.cpuPercent",
|
|
22787
|
+
"valueType": "number"
|
|
22788
|
+
},
|
|
22789
|
+
{
|
|
22790
|
+
"path": "resources.memoryUsedBytes",
|
|
22791
|
+
"valueType": "number"
|
|
22792
|
+
},
|
|
22793
|
+
{
|
|
22794
|
+
"path": "resources.memoryPercent",
|
|
22795
|
+
"valueType": "number"
|
|
22796
|
+
},
|
|
22797
|
+
{
|
|
22798
|
+
"path": "resources.memoryLimitBytes",
|
|
22799
|
+
"valueType": "number"
|
|
22800
|
+
},
|
|
22801
|
+
{
|
|
22802
|
+
"path": "resources.vcpus",
|
|
22803
|
+
"valueType": "number"
|
|
22804
|
+
},
|
|
22805
|
+
{
|
|
22806
|
+
"path": "resources.diskUsedBytes",
|
|
22807
|
+
"valueType": "number"
|
|
22808
|
+
},
|
|
22809
|
+
{
|
|
22810
|
+
"path": "resources.diskTotalBytes",
|
|
22811
|
+
"valueType": "number"
|
|
22812
|
+
},
|
|
22813
|
+
{
|
|
22814
|
+
"path": "resources.netRxKbps",
|
|
22815
|
+
"valueType": "number"
|
|
22816
|
+
},
|
|
22817
|
+
{
|
|
22818
|
+
"path": "resources.netTxKbps",
|
|
22819
|
+
"valueType": "number"
|
|
22820
|
+
},
|
|
22821
|
+
{
|
|
22822
|
+
"path": "resources.load1",
|
|
22823
|
+
"valueType": "number"
|
|
22824
|
+
},
|
|
22825
|
+
{
|
|
22826
|
+
"path": "resources.temperature",
|
|
22827
|
+
"valueType": "number"
|
|
22828
|
+
},
|
|
22829
|
+
{
|
|
22830
|
+
"path": "updateAvailable",
|
|
22831
|
+
"valueType": "boolean"
|
|
22832
|
+
}
|
|
22833
|
+
],
|
|
22229
22834
|
"zone-analytics": [
|
|
22230
22835
|
{
|
|
22231
22836
|
"path": "ts",
|
|
@@ -22342,7 +22947,7 @@ function sleep(ms) {
|
|
|
22342
22947
|
return new Promise((resolve) => setTimeout(resolve, Math.max(0, ms)));
|
|
22343
22948
|
}
|
|
22344
22949
|
//#endregion
|
|
22345
|
-
//#region ../types/dist/implemented-methods-
|
|
22950
|
+
//#region ../types/dist/implemented-methods-u7ddjc-_.mjs
|
|
22346
22951
|
/**
|
|
22347
22952
|
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
22348
22953
|
*
|
|
@@ -23392,63 +23997,99 @@ var HelperMemberSchema = object({
|
|
|
23392
23997
|
cap: string().min(1),
|
|
23393
23998
|
fieldPath: string().min(1)
|
|
23394
23999
|
});
|
|
24000
|
+
/** A group, a statistic, or an integral (D944). The composer runs all three. */
|
|
24001
|
+
var GroupHelperSpecSchema = object({
|
|
24002
|
+
kind: literal("group"),
|
|
24003
|
+
templateId: GroupTemplateIdSchema,
|
|
24004
|
+
aggregate: AggregateReducerSchema,
|
|
24005
|
+
members: array(HelperMemberSchema).min(1).max(64),
|
|
24006
|
+
/** Actuator groups only. Readings leave this unset. */
|
|
24007
|
+
active: ActiveCriterionSchema.optional()
|
|
24008
|
+
});
|
|
24009
|
+
var statisticHelperObject = object({
|
|
24010
|
+
kind: literal("statistic"),
|
|
24011
|
+
stat: _enum(STATISTIC_STATS),
|
|
24012
|
+
window: StatisticWindowSchema,
|
|
24013
|
+
source: HelperMemberSchema
|
|
24014
|
+
});
|
|
24015
|
+
var integralHelperObject = object({
|
|
24016
|
+
kind: literal("integral"),
|
|
24017
|
+
reset: _enum(RESET_PERIODS),
|
|
24018
|
+
output: _enum(["energy", "meter"]),
|
|
24019
|
+
source: HelperMemberSchema
|
|
24020
|
+
});
|
|
24021
|
+
var thresholdHelperObject = object({
|
|
24022
|
+
kind: literal("threshold"),
|
|
24023
|
+
source: HelperMemberSchema,
|
|
24024
|
+
high: number$1(),
|
|
24025
|
+
low: number$1(),
|
|
24026
|
+
onForMs: number$1().int().nonnegative(),
|
|
24027
|
+
offForMs: number$1().int().nonnegative()
|
|
24028
|
+
});
|
|
24029
|
+
var arithmeticHelperObject = object({
|
|
24030
|
+
kind: literal("arithmetic"),
|
|
24031
|
+
op: _enum([
|
|
24032
|
+
"sum",
|
|
24033
|
+
"difference",
|
|
24034
|
+
"ratio"
|
|
24035
|
+
]),
|
|
24036
|
+
inputs: array(HelperMemberSchema).min(2).max(64)
|
|
24037
|
+
});
|
|
24038
|
+
var expressionHelperObject = object({
|
|
24039
|
+
kind: literal("expression"),
|
|
24040
|
+
expr: string().min(1),
|
|
24041
|
+
inputs: array(object({
|
|
24042
|
+
name: string().min(1),
|
|
24043
|
+
member: HelperMemberSchema
|
|
24044
|
+
})).min(1).max(64),
|
|
24045
|
+
output: _enum(["number", "boolean"])
|
|
24046
|
+
});
|
|
24047
|
+
var derivativeHelperObject = object({
|
|
24048
|
+
kind: literal("derivative"),
|
|
24049
|
+
window: RollingWindowSchema,
|
|
24050
|
+
per: _enum([
|
|
24051
|
+
"second",
|
|
24052
|
+
"minute",
|
|
24053
|
+
"hour"
|
|
24054
|
+
]),
|
|
24055
|
+
source: HelperMemberSchema
|
|
24056
|
+
});
|
|
24057
|
+
/** The stream profiles a camera grid can publish. */
|
|
24058
|
+
var GRID_PROFILES = [
|
|
24059
|
+
"high",
|
|
24060
|
+
"mid",
|
|
24061
|
+
"low"
|
|
24062
|
+
];
|
|
24063
|
+
/** A rectangle in normalized [0,1] coordinates of whatever contains it. */
|
|
24064
|
+
var GridRectSchema = object({
|
|
24065
|
+
x: number$1().min(0).max(1),
|
|
24066
|
+
y: number$1().min(0).max(1),
|
|
24067
|
+
width: number$1().gt(0).max(1),
|
|
24068
|
+
height: number$1().gt(0).max(1)
|
|
24069
|
+
});
|
|
24070
|
+
var GridCellSpecSchema = object({
|
|
24071
|
+
source: CompositionSourceRefSchema,
|
|
24072
|
+
region: GridRectSchema,
|
|
24073
|
+
cell: GridRectSchema
|
|
24074
|
+
});
|
|
23395
24075
|
var HelperSpecSchema = discriminatedUnion("kind", [
|
|
23396
24076
|
object({
|
|
23397
|
-
kind: literal("
|
|
23398
|
-
|
|
23399
|
-
|
|
23400
|
-
|
|
23401
|
-
/** Actuator groups only. Readings leave this unset. */
|
|
23402
|
-
active: ActiveCriterionSchema.optional()
|
|
23403
|
-
}),
|
|
23404
|
-
object({
|
|
23405
|
-
kind: literal("statistic"),
|
|
23406
|
-
stat: _enum(STATISTIC_STATS),
|
|
23407
|
-
window: StatisticWindowSchema,
|
|
23408
|
-
source: HelperMemberSchema
|
|
23409
|
-
}),
|
|
23410
|
-
object({
|
|
23411
|
-
kind: literal("integral"),
|
|
23412
|
-
reset: _enum(RESET_PERIODS),
|
|
23413
|
-
output: _enum(["energy", "meter"]),
|
|
23414
|
-
source: HelperMemberSchema
|
|
23415
|
-
}),
|
|
23416
|
-
object({
|
|
23417
|
-
kind: literal("threshold"),
|
|
23418
|
-
source: HelperMemberSchema,
|
|
23419
|
-
high: number$1(),
|
|
23420
|
-
low: number$1(),
|
|
23421
|
-
onForMs: number$1().int().nonnegative(),
|
|
23422
|
-
offForMs: number$1().int().nonnegative()
|
|
24077
|
+
kind: literal("grid"),
|
|
24078
|
+
fps: number$1().int().min(1).max(60),
|
|
24079
|
+
publishedProfiles: array(_enum(GRID_PROFILES)).max(3),
|
|
24080
|
+
cells: array(GridCellSpecSchema).max(16)
|
|
23423
24081
|
}),
|
|
23424
24082
|
object({
|
|
23425
|
-
kind: literal("
|
|
23426
|
-
|
|
23427
|
-
"sum",
|
|
23428
|
-
"difference",
|
|
23429
|
-
"ratio"
|
|
23430
|
-
]),
|
|
23431
|
-
inputs: array(HelperMemberSchema).min(2).max(64)
|
|
24083
|
+
kind: literal("terminal"),
|
|
24084
|
+
terminalId: string().uuid()
|
|
23432
24085
|
}),
|
|
23433
|
-
|
|
23434
|
-
|
|
23435
|
-
|
|
23436
|
-
|
|
23437
|
-
|
|
23438
|
-
|
|
23439
|
-
|
|
23440
|
-
output: _enum(["number", "boolean"])
|
|
23441
|
-
}),
|
|
23442
|
-
object({
|
|
23443
|
-
kind: literal("derivative"),
|
|
23444
|
-
window: RollingWindowSchema,
|
|
23445
|
-
per: _enum([
|
|
23446
|
-
"second",
|
|
23447
|
-
"minute",
|
|
23448
|
-
"hour"
|
|
23449
|
-
]),
|
|
23450
|
-
source: HelperMemberSchema
|
|
23451
|
-
})
|
|
24086
|
+
GroupHelperSpecSchema,
|
|
24087
|
+
statisticHelperObject,
|
|
24088
|
+
integralHelperObject,
|
|
24089
|
+
thresholdHelperObject,
|
|
24090
|
+
arithmeticHelperObject,
|
|
24091
|
+
expressionHelperObject,
|
|
24092
|
+
derivativeHelperObject
|
|
23452
24093
|
]);
|
|
23453
24094
|
/**
|
|
23454
24095
|
* A COMPOSITION: a device assembled from other devices' state (D659).
|
|
@@ -54424,9 +55065,10 @@ var GridProfileOfferSchema = object({
|
|
|
54424
55065
|
published: boolean()
|
|
54425
55066
|
});
|
|
54426
55067
|
var GridLayoutViewSchema = object({
|
|
54427
|
-
/** The
|
|
54428
|
-
|
|
55068
|
+
/** The grid block (planning#580) whose camera this is. */
|
|
55069
|
+
blockId: string(),
|
|
54429
55070
|
deviceId: number$1().int().nonnegative(),
|
|
55071
|
+
/** The device row's name — the only name a grid has; it is renamed on the block or the device. */
|
|
54430
55072
|
name: string(),
|
|
54431
55073
|
/**
|
|
54432
55074
|
* NO canvas size. A grid's resolution is not authored: each profile derives
|
|
@@ -54442,7 +55084,6 @@ var GridLayoutViewSchema = object({
|
|
|
54442
55084
|
});
|
|
54443
55085
|
var GridLayoutPatchSchema = object({
|
|
54444
55086
|
deviceId: number$1().int().nonnegative(),
|
|
54445
|
-
name: string().min(1).max(160).optional(),
|
|
54446
55087
|
fps: number$1().int().min(1).max(60).optional(),
|
|
54447
55088
|
/** Which profiles to publish. See `GridProfileOffer.published`. */
|
|
54448
55089
|
publishedProfiles: array(_enum([
|
|
@@ -57362,7 +58003,7 @@ DeviceType.MediaPlayer, optionalMethod(deviceOnly, _void(), {
|
|
|
57362
58003
|
}]
|
|
57363
58004
|
}]
|
|
57364
58005
|
});
|
|
57365
|
-
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;
|
|
58006
|
+
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;
|
|
57366
58007
|
var NUMBER = {
|
|
57367
58008
|
kind: "fixed",
|
|
57368
58009
|
result: ["number"]
|
|
@@ -57812,7 +58453,7 @@ new Map(GROUP_TEMPLATES.map((template) => [template.id, template]));
|
|
|
57812
58453
|
DeviceType.Camera;
|
|
57813
58454
|
/**
|
|
57814
58455
|
* The series a device card trends, per cap (`history.primary` + `history.priority`):
|
|
57815
|
-
*
|
|
58456
|
+
* 7 caps. The card shows the primary of the enabled cap with the highest priority.
|
|
57816
58457
|
*/
|
|
57817
58458
|
var HISTORY_PRIMARY = {
|
|
57818
58459
|
"climate-control": {
|
|
@@ -57838,6 +58479,10 @@ var HISTORY_PRIMARY = {
|
|
|
57838
58479
|
"weather-station": {
|
|
57839
58480
|
field: "temperature",
|
|
57840
58481
|
priority: 60
|
|
58482
|
+
},
|
|
58483
|
+
"workload": {
|
|
58484
|
+
field: "resources.cpuPercent",
|
|
58485
|
+
priority: 40
|
|
57841
58486
|
}
|
|
57842
58487
|
};
|
|
57843
58488
|
DeviceFeature.LightColorRgb, DeviceFeature.LightColorHsv, DeviceFeature.LightColorMired;
|
|
@@ -57848,6 +58493,8 @@ var PowerSourceRefusalReasonSchema = _enum([
|
|
|
57848
58493
|
"switch-unknown",
|
|
57849
58494
|
"restart-in-progress",
|
|
57850
58495
|
"switch-call-failed",
|
|
58496
|
+
"switch-options-unreadable",
|
|
58497
|
+
"not-settable",
|
|
57851
58498
|
"switch-is-actuator"
|
|
57852
58499
|
]);
|
|
57853
58500
|
var PowerSourceActionResultSchema = discriminatedUnion("accepted", [object({ accepted: literal(true) }), object({
|
|
@@ -57864,6 +58511,14 @@ var PowerSourceInfoSchema = object({
|
|
|
57864
58511
|
/** The switch's on/off state, or null when it is unknown. Never false for unknown (D393). */
|
|
57865
58512
|
switchOn: boolean().nullable(),
|
|
57866
58513
|
switchOnline: boolean().nullable(),
|
|
58514
|
+
/**
|
|
58515
|
+
* Whether the linked switch can be set (`switch.getOptions().supportsSetState`; a provider
|
|
58516
|
+
* without the method is a plain switch, `true`). `null` = not known: no link, the switch is
|
|
58517
|
+
* missing, or the read FAILED. Absent = a provider that predates the field. Only `false`
|
|
58518
|
+
* withdraws power on / off (`offeredWhen` of `powerSource.on` / `.off`, the device hero) —
|
|
58519
|
+
* unknown keeps them (D315, D1058).
|
|
58520
|
+
*/
|
|
58521
|
+
switchSettable: boolean().nullable().optional(),
|
|
57867
58522
|
restartInProgress: boolean(),
|
|
57868
58523
|
offSeconds: number$1().int()
|
|
57869
58524
|
});
|
|
@@ -57875,6 +58530,11 @@ object({
|
|
|
57875
58530
|
});
|
|
57876
58531
|
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;
|
|
57877
58532
|
var deviceInput$2 = object({ deviceId: number$1().int().nonnegative() });
|
|
58533
|
+
/** The read that decides whether power on / off are offered (`offeredWhen`, D1058). */
|
|
58534
|
+
var POWER_SOURCE_SETTABLE_GATE = {
|
|
58535
|
+
method: "getStatus",
|
|
58536
|
+
field: "switchSettable"
|
|
58537
|
+
};
|
|
57878
58538
|
systemMethod(deviceInput$2, PowerSourceInfoSchema, { auth: "protected" }), systemMethod(deviceInput$2, PowerSourceActionResultSchema, {
|
|
57879
58539
|
kind: "mutation",
|
|
57880
58540
|
auth: "protected",
|
|
@@ -57882,7 +58542,8 @@ systemMethod(deviceInput$2, PowerSourceInfoSchema, { auth: "protected" }), syste
|
|
|
57882
58542
|
id: "powerSource.on",
|
|
57883
58543
|
label: t("Power on", "Dai corrente"),
|
|
57884
58544
|
phrase: t("Power on {device}", "Dai corrente a {device}"),
|
|
57885
|
-
icon: "power"
|
|
58545
|
+
icon: "power",
|
|
58546
|
+
offeredWhen: POWER_SOURCE_SETTABLE_GATE
|
|
57886
58547
|
}]
|
|
57887
58548
|
}), systemMethod(deviceInput$2, PowerSourceActionResultSchema, {
|
|
57888
58549
|
kind: "mutation",
|
|
@@ -57891,7 +58552,8 @@ systemMethod(deviceInput$2, PowerSourceInfoSchema, { auth: "protected" }), syste
|
|
|
57891
58552
|
id: "powerSource.off",
|
|
57892
58553
|
label: t("Power off", "Togli corrente"),
|
|
57893
58554
|
phrase: t("Cut the power of {device}", "Togli la corrente a {device}"),
|
|
57894
|
-
icon: "power-off"
|
|
58555
|
+
icon: "power-off",
|
|
58556
|
+
offeredWhen: POWER_SOURCE_SETTABLE_GATE
|
|
57895
58557
|
}]
|
|
57896
58558
|
}), systemMethod(deviceInput$2, PowerSourceActionResultSchema, {
|
|
57897
58559
|
kind: "mutation",
|
|
@@ -59332,6 +59994,50 @@ var SiteZoneSchema = object({
|
|
|
59332
59994
|
* the ones that most want grouping. */
|
|
59333
59995
|
locationKeys: array(string())
|
|
59334
59996
|
});
|
|
59997
|
+
var DeviceIdentifierKeySchema = _enum([
|
|
59998
|
+
"mac",
|
|
59999
|
+
"serial",
|
|
60000
|
+
"machine-uuid",
|
|
60001
|
+
"vendor-uid",
|
|
60002
|
+
"hostname",
|
|
60003
|
+
"ip"
|
|
60004
|
+
]);
|
|
60005
|
+
/** `read` — the provider read it from the device; `derived` — computed from something else it read. */
|
|
60006
|
+
var DeviceIdentifierOriginSchema = _enum(["read", "derived"]);
|
|
60007
|
+
var MAC_PATTERN = /^[0-9a-f]{2}(?::[0-9a-f]{2}){5}$/;
|
|
60008
|
+
/** `<prefix>:<value>` — prefix a lower-case slug, value lower-case and non-blank. */
|
|
60009
|
+
var PREFIXED_PATTERN = /^[a-z0-9][a-z0-9._-]*:[^\sA-Z]+$/;
|
|
60010
|
+
var MACHINE_UUID_PATTERN = /^[0-9a-f][0-9a-f-]{7,}$/;
|
|
60011
|
+
var HOSTNAME_PATTERN = /^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$/;
|
|
60012
|
+
function entrySchema(value) {
|
|
60013
|
+
return object({
|
|
60014
|
+
value,
|
|
60015
|
+
origin: DeviceIdentifierOriginSchema,
|
|
60016
|
+
/** Epoch ms of the FIRST read that produced this value (and origin). A later
|
|
60017
|
+
* read of the same value does not move it — see {@link mergeIdentifiers}. */
|
|
60018
|
+
readAt: number$1().int().nonnegative()
|
|
60019
|
+
}).strict();
|
|
60020
|
+
}
|
|
60021
|
+
var MacEntrySchema = entrySchema(string().regex(MAC_PATTERN));
|
|
60022
|
+
var SerialEntrySchema = entrySchema(string().regex(PREFIXED_PATTERN));
|
|
60023
|
+
var MachineUuidEntrySchema = entrySchema(string().regex(MACHINE_UUID_PATTERN));
|
|
60024
|
+
var VendorUidEntrySchema = entrySchema(string().regex(PREFIXED_PATTERN));
|
|
60025
|
+
var HostnameEntrySchema = entrySchema(string().regex(HOSTNAME_PATTERN));
|
|
60026
|
+
var IpEntrySchema = entrySchema(union([ipv4(), ipv6()]));
|
|
60027
|
+
object({
|
|
60028
|
+
value: string().min(1),
|
|
60029
|
+
origin: DeviceIdentifierOriginSchema,
|
|
60030
|
+
readAt: number$1().int().nonnegative()
|
|
60031
|
+
}).strict();
|
|
60032
|
+
/** The typed declaration. Every key optional; `mac` the only one that holds several. */
|
|
60033
|
+
var DeviceIdentifiersSchema = object({
|
|
60034
|
+
mac: array(MacEntrySchema).min(1).readonly().optional(),
|
|
60035
|
+
serial: SerialEntrySchema.optional(),
|
|
60036
|
+
"machine-uuid": MachineUuidEntrySchema.optional(),
|
|
60037
|
+
"vendor-uid": VendorUidEntrySchema.optional(),
|
|
60038
|
+
hostname: HostnameEntrySchema.optional(),
|
|
60039
|
+
ip: IpEntrySchema.optional()
|
|
60040
|
+
}).strict();
|
|
59335
60041
|
var DeviceSearchRequiresSchema = object({
|
|
59336
60042
|
/** Capability names the field wants a value of. Absent when the field wants actions only. */
|
|
59337
60043
|
caps: array(string()).readonly().optional(),
|
|
@@ -59800,6 +60506,10 @@ var DeviceInfoSchema = object({
|
|
|
59800
60506
|
/** Hardware + identity blob (manufacturer / model / firmware / sn /
|
|
59801
60507
|
* uid / mac / …). Populated by drivers; editable via setMetadata. */
|
|
59802
60508
|
metadata: record(string(), unknown()).nullable().optional(),
|
|
60509
|
+
/** Provider-declared identifiers (D1059): typed, normalised, written only by
|
|
60510
|
+
* the owning provider via `setIdentifiers`; read-only for the operator.
|
|
60511
|
+
* Absent ⇒ the provider declared none. */
|
|
60512
|
+
identifiers: DeviceIdentifiersSchema.optional(),
|
|
59803
60513
|
/** Optional upstream-system identity + rendering envelope. See
|
|
59804
60514
|
* `SourceInfo` in `packages/types/src/device/source-info.ts`. */
|
|
59805
60515
|
sourceInfo: SourceInfoSchema.optional(),
|
|
@@ -59951,6 +60661,8 @@ var DeviceMetaSchema = object({
|
|
|
59951
60661
|
disabled: boolean(),
|
|
59952
60662
|
parentDeviceId: number$1().nullable(),
|
|
59953
60663
|
metadata: record(string(), unknown()).nullable().optional(),
|
|
60664
|
+
/** Provider-declared identifiers (D1059). See `DeviceMeta.identifiers`. */
|
|
60665
|
+
identifiers: DeviceIdentifiersSchema.optional(),
|
|
59954
60666
|
/** Optional upstream-system identity + rendering envelope. See
|
|
59955
60667
|
* `SourceInfo`. Present when the device has been persisted with a
|
|
59956
60668
|
* non-synthetic source identifier (HA entities, vendor MAC, …);
|
|
@@ -60264,6 +60976,14 @@ method(object({
|
|
|
60264
60976
|
}), _void(), {
|
|
60265
60977
|
kind: "mutation",
|
|
60266
60978
|
auth: "admin"
|
|
60979
|
+
}), method(object({
|
|
60980
|
+
deviceId: number$1(),
|
|
60981
|
+
identifiers: DeviceIdentifiersSchema.nullable(),
|
|
60982
|
+
/** Kinds the provider tried to read and could not: their stored value is kept. */
|
|
60983
|
+
unread: array(DeviceIdentifierKeySchema).optional()
|
|
60984
|
+
}), _void(), {
|
|
60985
|
+
kind: "mutation",
|
|
60986
|
+
auth: "admin"
|
|
60267
60987
|
}), method(_void(), array(string())), method(object({ name: string() }), _void(), {
|
|
60268
60988
|
kind: "mutation",
|
|
60269
60989
|
auth: "admin"
|
|
@@ -64674,8 +65394,8 @@ var HeroSceneSchema = object({
|
|
|
64674
65394
|
/** 0..1: volume, cover position, cycle progress. */
|
|
64675
65395
|
level: number$1().min(0).max(1).nullable()
|
|
64676
65396
|
});
|
|
64677
|
-
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;
|
|
64678
|
-
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;
|
|
65397
|
+
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;
|
|
65398
|
+
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;
|
|
64679
65399
|
var HeroRowIdSchema = _enum([
|
|
64680
65400
|
"progress",
|
|
64681
65401
|
"run-for",
|
|
@@ -64904,8 +65624,12 @@ var HeroPowerSupplySlotSchema = object({
|
|
|
64904
65624
|
/** Off asks for a confirmation while the device runs. */
|
|
64905
65625
|
confirmOffWhileRunning: boolean(),
|
|
64906
65626
|
running: boolean().nullable(),
|
|
64907
|
-
|
|
64908
|
-
|
|
65627
|
+
/**
|
|
65628
|
+
* `null` when the linked switch ANSWERED it only reports (a PoE port seen through an
|
|
65629
|
+
* API key): power on / off would always be refused. The restart stays (D1058).
|
|
65630
|
+
*/
|
|
65631
|
+
powerOn: HeroActionSchema.nullable(),
|
|
65632
|
+
powerOff: HeroActionSchema.nullable(),
|
|
64909
65633
|
restart: HeroActionSchema
|
|
64910
65634
|
});
|
|
64911
65635
|
var HeroStateBackdropSchema = object({
|
|
@@ -75013,6 +75737,19 @@ var NetworkLinkStatusSchema = object({
|
|
|
75013
75737
|
rssi: number$1().optional().meta(readingMeta("signal-level")),
|
|
75014
75738
|
/** Network name of a wireless link, when the firmware reports it. */
|
|
75015
75739
|
ssid: string().optional(),
|
|
75740
|
+
/**
|
|
75741
|
+
* Negotiated link speed of a wired port, the `bitrate` quantity in its base
|
|
75742
|
+
* unit, kbit/s (a gigabit port is 1 000 000); the display picks the unit.
|
|
75743
|
+
* `null` = the port is down or the speed is not known; absent = the provider
|
|
75744
|
+
* never reports one.
|
|
75745
|
+
*/
|
|
75746
|
+
speedKbps: number$1().nonnegative().nullable().optional().meta(readingMeta("bitrate")),
|
|
75747
|
+
/**
|
|
75748
|
+
* Whether the link is up. `type` names the medium, not its state, so a wired
|
|
75749
|
+
* port that lost its link is `ethernet` + `linkUp: false`. `null` = not known;
|
|
75750
|
+
* absent = the provider never reports it.
|
|
75751
|
+
*/
|
|
75752
|
+
linkUp: boolean().nullable().optional(),
|
|
75016
75753
|
/** Ms epoch of the last observation. Lets consumers reason about freshness. */
|
|
75017
75754
|
lastUpdated: number$1().meta(readingMeta("none"))
|
|
75018
75755
|
});
|
|
@@ -77104,7 +77841,32 @@ var NcRuleInputSchema = object({
|
|
|
77104
77841
|
* authored before this field meant. An editor turns it off by writing
|
|
77105
77842
|
* `false`, so it needs no `clear` key.
|
|
77106
77843
|
*/
|
|
77107
|
-
askVerdict: boolean().optional()
|
|
77844
|
+
askVerdict: boolean().optional(),
|
|
77845
|
+
/**
|
|
77846
|
+
* Operator tags (D1054), kept on the rule like a core block's. Absent = no
|
|
77847
|
+
* tags. `.optional()`, never `.default()`: a partial `updateRule` patch that
|
|
77848
|
+
* does not name `tags` keeps the stored ones (the store merges), and an
|
|
77849
|
+
* editor empties them by sending `[]` (the store drops an empty list).
|
|
77850
|
+
* Renamed or removed fleet-wide only through the `tags` cap, which writes
|
|
77851
|
+
* here with `setRuleTags`.
|
|
77852
|
+
*/
|
|
77853
|
+
tags: TagsFieldSchema.optional()
|
|
77854
|
+
});
|
|
77855
|
+
/**
|
|
77856
|
+
* The rule kinds that carry tags (D1054) — each one its own store. Every kind
|
|
77857
|
+
* labels its rules the same way; this names which store a tag write goes to.
|
|
77858
|
+
*/
|
|
77859
|
+
var NcTaggedRuleKindSchema = _enum([
|
|
77860
|
+
"event",
|
|
77861
|
+
"summary",
|
|
77862
|
+
"timelapse",
|
|
77863
|
+
"calendar-events"
|
|
77864
|
+
]);
|
|
77865
|
+
/** One rule's tags, as the `tags` cap reads them across every kind. */
|
|
77866
|
+
var NcRuleTagsEntrySchema = object({
|
|
77867
|
+
kind: NcTaggedRuleKindSchema,
|
|
77868
|
+
ruleId: string(),
|
|
77869
|
+
tags: array(string())
|
|
77108
77870
|
});
|
|
77109
77871
|
/**
|
|
77110
77872
|
* Partial patch for `updateRule` — any subset of the input fields, plus the
|
|
@@ -78121,6 +78883,16 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
|
|
|
78121
78883
|
}), object({ success: literal(true) }), {
|
|
78122
78884
|
kind: "mutation",
|
|
78123
78885
|
auth: "admin"
|
|
78886
|
+
}), method(object({}), object({ rules: array(NcRuleTagsEntrySchema) }), {
|
|
78887
|
+
kind: "query",
|
|
78888
|
+
auth: "admin"
|
|
78889
|
+
}), method(object({
|
|
78890
|
+
kind: NcTaggedRuleKindSchema,
|
|
78891
|
+
ruleId: string(),
|
|
78892
|
+
tags: TagsFieldSchema
|
|
78893
|
+
}), object({ success: literal(true) }), {
|
|
78894
|
+
kind: "mutation",
|
|
78895
|
+
auth: "admin"
|
|
78124
78896
|
}), method(object({}), NcClipRetentionPlanSchema, { auth: "admin" }), method(object({}), object({ mutedDeviceIds: array(number$1().int()).readonly() }), { auth: "admin" }), method(object({
|
|
78125
78897
|
deviceId: number$1().int(),
|
|
78126
78898
|
muted: boolean()
|
|
@@ -84057,7 +84829,18 @@ DeviceType.Camera, method(object({
|
|
|
84057
84829
|
* older than this field keeps working unchanged (D382 — an unstated
|
|
84058
84830
|
* ask is zero).
|
|
84059
84831
|
*/
|
|
84060
|
-
audio: ClipStreamAudioSchema.optional()
|
|
84832
|
+
audio: ClipStreamAudioSchema.optional(),
|
|
84833
|
+
/**
|
|
84834
|
+
* The operator's authorisation to wake a sleeping camera for this
|
|
84835
|
+
* dial — the same {@link ClipWakeSchema} the byte reads carry. Absent
|
|
84836
|
+
* — the default — means a sleeping standalone battery camera is
|
|
84837
|
+
* REFUSED by name before any URL is minted. A caller sets it only
|
|
84838
|
+
* when a viewer itself asked for the clip (the broker's `playClip`);
|
|
84839
|
+
* a prefetch, a reconcile or a retry never does. With it, the
|
|
84840
|
+
* provider wakes the camera and waits under a bound; a camera that
|
|
84841
|
+
* does not come up is refused `wake-timeout`, naming the wait.
|
|
84842
|
+
*/
|
|
84843
|
+
wake: ClipWakeSchema.optional()
|
|
84061
84844
|
}), ClipStreamDialSchema, {
|
|
84062
84845
|
kind: "query",
|
|
84063
84846
|
auth: "protected"
|
|
@@ -84286,7 +85069,8 @@ _enum([
|
|
|
84286
85069
|
"camera-refused",
|
|
84287
85070
|
"fetch-failed",
|
|
84288
85071
|
"too-large-to-transfer",
|
|
84289
|
-
"wake-expired"
|
|
85072
|
+
"wake-expired",
|
|
85073
|
+
"wake-timeout"
|
|
84290
85074
|
]);
|
|
84291
85075
|
/** Candidate download URLs (LAN first, then operator extra hosts). */
|
|
84292
85076
|
var ExportDownloadSchema = object({
|
|
@@ -86195,6 +86979,16 @@ var SirenOptionsSchema = object({
|
|
|
86195
86979
|
rangeSeconds: SirenDurationRangeSchema.nullable(),
|
|
86196
86980
|
/** The camera's default duration, seconds. */
|
|
86197
86981
|
defaultSeconds: number$1().positive(),
|
|
86982
|
+
/**
|
|
86983
|
+
* Discrete play counts the operator may pick; `null` when the camera gives a
|
|
86984
|
+
* range or does not count plays. Defaults to `null` so a provider that
|
|
86985
|
+
* predates plays (#589) reads as declaring none.
|
|
86986
|
+
*/
|
|
86987
|
+
allowedPlays: array(number$1().int().positive()).nullable().default(null),
|
|
86988
|
+
/** Continuous range of play counts; `null` when listed or not counted. */
|
|
86989
|
+
rangePlays: SirenDurationRangeSchema.nullable().default(null),
|
|
86990
|
+
/** The camera's default play count; `null` when the camera does not count plays. */
|
|
86991
|
+
defaultPlays: number$1().int().positive().nullable().default(null),
|
|
86198
86992
|
/** What the camera counts natively. */
|
|
86199
86993
|
unit: _enum([SirenDurationUnit.Seconds, SirenDurationUnit.Plays]),
|
|
86200
86994
|
/** Seconds one play lasts, when `unit` is `plays`; `null` for a seconds camera. */
|
|
@@ -86211,19 +87005,38 @@ var SirenStatusSchema = object({
|
|
|
86211
87005
|
activeUntil: number$1().nullable(),
|
|
86212
87006
|
/** Duration of the current / last activation, seconds; `null` when none yet. */
|
|
86213
87007
|
durationSeconds: number$1().nullable(),
|
|
87008
|
+
/**
|
|
87009
|
+
* The play count of the current / last activation when it was asked in plays;
|
|
87010
|
+
* `null` when it was asked in seconds (or none yet). The unit that was asked.
|
|
87011
|
+
*/
|
|
87012
|
+
plays: number$1().int().positive().nullable().default(null),
|
|
87013
|
+
/**
|
|
87014
|
+
* True when `activeUntil` comes from a seconds-per-play factor the camera did
|
|
87015
|
+
* not report — the siren may fall silent somewhat earlier or later.
|
|
87016
|
+
*/
|
|
87017
|
+
activeUntilEstimated: boolean().default(false),
|
|
86214
87018
|
/** Ms epoch of the last trigger (0 = never). */
|
|
86215
87019
|
lastTriggeredAt: number$1()
|
|
86216
87020
|
});
|
|
87021
|
+
/** A trigger asks seconds OR plays (#589); neither means the camera default. */
|
|
87022
|
+
var SirenTriggerInputSchema = object({
|
|
87023
|
+
deviceId: number$1().int().nonnegative(),
|
|
87024
|
+
durationSeconds: number$1().positive().optional(),
|
|
87025
|
+
plays: number$1().int().positive().optional()
|
|
87026
|
+
}).refine((input) => input.durationSeconds === void 0 || input.plays === void 0, {
|
|
87027
|
+
message: "a siren trigger takes durationSeconds or plays, not both",
|
|
87028
|
+
path: ["plays"]
|
|
87029
|
+
});
|
|
86217
87030
|
SirenStatusSchema.extend({
|
|
86218
87031
|
/** Ms epoch of the last successful camera read of the options (0 = never). */
|
|
86219
87032
|
lastFetchedAt: number$1() });
|
|
86220
87033
|
DeviceType.Siren, method(object({ deviceId: number$1().int().nonnegative() }), SirenOptionsSchema, {
|
|
86221
87034
|
kind: "query",
|
|
86222
87035
|
auth: "protected"
|
|
86223
|
-
}), method(object({
|
|
86224
|
-
|
|
86225
|
-
|
|
86226
|
-
}), SirenStatusSchema, {
|
|
87036
|
+
}), method(object({ deviceId: number$1().int().nonnegative() }), array(number$1().int().positive()), {
|
|
87037
|
+
kind: "query",
|
|
87038
|
+
auth: "protected"
|
|
87039
|
+
}), method(SirenTriggerInputSchema, SirenStatusSchema, {
|
|
86227
87040
|
kind: "mutation",
|
|
86228
87041
|
auth: "protected",
|
|
86229
87042
|
actions: [{
|
|
@@ -86232,6 +87045,21 @@ DeviceType.Siren, method(object({ deviceId: number$1().int().nonnegative() }), S
|
|
|
86232
87045
|
phrase: t("Sound {device}", "Fai suonare {device}"),
|
|
86233
87046
|
icon: "siren",
|
|
86234
87047
|
args: {}
|
|
87048
|
+
}, {
|
|
87049
|
+
id: "siren.triggerPlays",
|
|
87050
|
+
label: t("Sound the siren N times", "Fai suonare la sirena N volte"),
|
|
87051
|
+
phrase: t("Sound {device} {plays} times", "Fai suonare {device} {plays} volte"),
|
|
87052
|
+
icon: "siren",
|
|
87053
|
+
openArgs: [{
|
|
87054
|
+
key: "plays",
|
|
87055
|
+
label: t("Plays", "Riproduzioni"),
|
|
87056
|
+
offer: {
|
|
87057
|
+
kind: "dynamic",
|
|
87058
|
+
from: "method",
|
|
87059
|
+
method: "getPlayChoices",
|
|
87060
|
+
valueKind: "number"
|
|
87061
|
+
}
|
|
87062
|
+
}]
|
|
86235
87063
|
}]
|
|
86236
87064
|
}), method(object({ deviceId: number$1().int().nonnegative() }), SirenStatusSchema, {
|
|
86237
87065
|
kind: "mutation",
|
|
@@ -87153,6 +87981,26 @@ object({
|
|
|
87153
87981
|
/** Ms epoch of the last state change. Useful for UI "X minutes ago". */
|
|
87154
87982
|
lastChangedAt: number$1()
|
|
87155
87983
|
});
|
|
87984
|
+
/**
|
|
87985
|
+
* What a switch can do, from its provider (`getOptions`). A provider that writes no
|
|
87986
|
+
* `getOptions` is a plain on/off switch: the defaults are the old contract.
|
|
87987
|
+
*
|
|
87988
|
+
* - `supportsSetState: false` — the switch reports its state but cannot be set (a PoE port seen only
|
|
87989
|
+
* through an API key). Its provider refuses `setState`; these surfaces withdraw on/off once the
|
|
87990
|
+
* device ANSWERED this (`switchRefusesSetState`): the device hero, the automation action picker
|
|
87991
|
+
* (`offeredWhen` on `switch.on` / `switch.off` / `switch.toggle`), the default `toggle`, the
|
|
87992
|
+
* HomeKit, Alexa and Google exporters, and `power-source` on a device the switch powers
|
|
87993
|
+
* (`getStatus().switchSettable`, `offeredWhen` on `powerSource.on` / `.off`, `not-settable`). A
|
|
87994
|
+
* read that failed or is pending changes nothing (D315).
|
|
87995
|
+
* - `supportsPowerCycle: true` — the device behind the switch can cut and restore its own output in
|
|
87996
|
+
* one native call (a PoE port's power cycle). It has no control of its own: a linked
|
|
87997
|
+
* `power-source.forceRestart` uses it instead of off / wait / on.
|
|
87998
|
+
*/
|
|
87999
|
+
var SwitchOptionsSchema = object({
|
|
88000
|
+
supportsSetState: boolean().default(true),
|
|
88001
|
+
supportsPowerCycle: boolean().default(false)
|
|
88002
|
+
});
|
|
88003
|
+
SwitchOptionsSchema.parse({});
|
|
87156
88004
|
DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, method(object({
|
|
87157
88005
|
deviceId: number$1(),
|
|
87158
88006
|
on: boolean()
|
|
@@ -87168,7 +88016,8 @@ DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, method(ob
|
|
|
87168
88016
|
field: "on",
|
|
87169
88017
|
value: true
|
|
87170
88018
|
},
|
|
87171
|
-
args: { on: true }
|
|
88019
|
+
args: { on: true },
|
|
88020
|
+
offeredWhen: SWITCH_SETTABLE_GATE
|
|
87172
88021
|
}, {
|
|
87173
88022
|
id: "switch.off",
|
|
87174
88023
|
label: t("Turn off", "Spegni"),
|
|
@@ -87178,8 +88027,13 @@ DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, method(ob
|
|
|
87178
88027
|
field: "on",
|
|
87179
88028
|
value: false
|
|
87180
88029
|
},
|
|
87181
|
-
args: { on: false }
|
|
88030
|
+
args: { on: false },
|
|
88031
|
+
offeredWhen: SWITCH_SETTABLE_GATE
|
|
87182
88032
|
}]
|
|
88033
|
+
}), optionalMethod(object({ deviceId: number$1() }), SwitchOptionsSchema, { auth: "protected" }), optionalMethod(object({ deviceId: number$1() }), _void(), {
|
|
88034
|
+
kind: "mutation",
|
|
88035
|
+
auth: "protected",
|
|
88036
|
+
notOperatorFacing: "a power cycle is the forced restart of the device the switch powers (power-source), never a step of its own"
|
|
87183
88037
|
}), optionalMethod(object({ deviceId: number$1() }), _void(), {
|
|
87184
88038
|
kind: "mutation",
|
|
87185
88039
|
auth: "protected",
|
|
@@ -87187,13 +88041,14 @@ DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, method(ob
|
|
|
87187
88041
|
id: "switch.toggle",
|
|
87188
88042
|
label: t("Toggle", "Commuta"),
|
|
87189
88043
|
phrase: t("Toggle {device}", "Commuta {device}"),
|
|
87190
|
-
icon: "toggle-right"
|
|
88044
|
+
icon: "toggle-right",
|
|
88045
|
+
offeredWhen: SWITCH_SETTABLE_GATE
|
|
87191
88046
|
}]
|
|
87192
88047
|
}), object({
|
|
87193
88048
|
deviceId: number$1(),
|
|
87194
88049
|
on: boolean().nullable(),
|
|
87195
88050
|
lastChangedAt: number$1()
|
|
87196
|
-
}), DeviceType.Siren, DeviceType.Light, DeviceRole.Siren, DeviceRole.Floodlight, DeviceRole.Spotlight, DeviceRole.SwitchLight, DeviceRole.Chime, DeviceRole.PirSensor, DeviceRole.Nightvision, DeviceRole.PrivacyMask, DeviceRole.Autotrack, DeviceRole.Outlet;
|
|
88051
|
+
}), 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;
|
|
87197
88052
|
/** C0 controls, DEL and the C1 range: none of them belongs in a name. */
|
|
87198
88053
|
function hasControlCharacter(value) {
|
|
87199
88054
|
for (const char of value) {
|
|
@@ -87778,10 +88633,11 @@ method(_void(), SystemInfoSchema), method(_void(), HealthStatusSchema), method(_
|
|
|
87778
88633
|
/**
|
|
87779
88634
|
* tags — the registry of tag STYLES and the one place that renames or removes a
|
|
87780
88635
|
* tag everywhere (D1054). A tag itself lives in the `tags` array of the record it
|
|
87781
|
-
* labels (a core block, a scheduler, a template, an action, a device
|
|
88636
|
+
* labels (a core block, a scheduler, a template, an action, a device, a
|
|
88637
|
+
* notification rule); only its
|
|
87782
88638
|
* colour token and icon are registered here. Provided by the core-blocks builtin,
|
|
87783
|
-
* the one place that knows every owner kind; devices
|
|
87784
|
-
* `deviceManager` over `ctx.api`.
|
|
88639
|
+
* the one place that knows every owner kind; devices and notification rules
|
|
88640
|
+
* are reached through `deviceManager` / `notificationRules` over `ctx.api`.
|
|
87785
88641
|
*
|
|
87786
88642
|
* Tags compare trimmed and case-insensitively. `list` is the union of styled tags
|
|
87787
88643
|
* and tags in use; a tag with no style answers a colour derived from its name and
|
|
@@ -87792,7 +88648,21 @@ var TagUsageCountsSchema = object({
|
|
|
87792
88648
|
schedulers: number$1().int().nonnegative(),
|
|
87793
88649
|
templates: number$1().int().nonnegative(),
|
|
87794
88650
|
actions: number$1().int().nonnegative(),
|
|
87795
|
-
devices: number$1().int().nonnegative()
|
|
88651
|
+
devices: number$1().int().nonnegative(),
|
|
88652
|
+
notificationRules: number$1().int().nonnegative()
|
|
88653
|
+
});
|
|
88654
|
+
/**
|
|
88655
|
+
* The counts `list` answers. An owner that could not be read (a forked addon
|
|
88656
|
+
* that is down, redeploying or not installed) is `null` — unknown, never `0`
|
|
88657
|
+
* (D393) — and `list` still answers with the other owners' tags.
|
|
88658
|
+
*/
|
|
88659
|
+
var TagListCountsSchema = object({
|
|
88660
|
+
coreBlocks: number$1().int().nonnegative().nullable(),
|
|
88661
|
+
schedulers: number$1().int().nonnegative().nullable(),
|
|
88662
|
+
templates: number$1().int().nonnegative().nullable(),
|
|
88663
|
+
actions: number$1().int().nonnegative().nullable(),
|
|
88664
|
+
devices: number$1().int().nonnegative().nullable(),
|
|
88665
|
+
notificationRules: number$1().int().nonnegative().nullable()
|
|
87796
88666
|
});
|
|
87797
88667
|
var TagEntrySchema = object({
|
|
87798
88668
|
name: TagNameSchema,
|
|
@@ -87800,7 +88670,8 @@ var TagEntrySchema = object({
|
|
|
87800
88670
|
icon: IconKeySchema,
|
|
87801
88671
|
/** `false` when the operator never chose a style: colour and icon are the derived defaults. */
|
|
87802
88672
|
styled: boolean(),
|
|
87803
|
-
|
|
88673
|
+
/** Per owner kind; `null` = that owner could not be read on this call. */
|
|
88674
|
+
counts: TagListCountsSchema
|
|
87804
88675
|
});
|
|
87805
88676
|
method(object({}), array(TagEntrySchema), { auth: "protected" }), method(object({
|
|
87806
88677
|
name: TagNameSchema,
|
|
@@ -88257,7 +89128,6 @@ method(object({ kind: TemplateKindSchema.optional() }), array(TemplateRecordSche
|
|
|
88257
89128
|
});
|
|
88258
89129
|
/** Profile-exported FormBuilder schema. Shape is ConfigUISchema at the UI. */
|
|
88259
89130
|
var ProfileSettingsSchemaBridge = unknown().nullable();
|
|
88260
|
-
var ProfileSettingsBagSchema = record(string(), unknown());
|
|
88261
89131
|
/**
|
|
88262
89132
|
* A live terminal session hosted by the provider addon. Output and input do
|
|
88263
89133
|
* NOT flow through the capability — they use the addon data plane
|
|
@@ -88276,7 +89146,11 @@ var TerminalSessionInfoSchema = object({
|
|
|
88276
89146
|
cols: number$1().int().positive(),
|
|
88277
89147
|
rows: number$1().int().positive(),
|
|
88278
89148
|
/** ms-epoch the session's pty was spawned. */
|
|
88279
|
-
startedAt: number$1()
|
|
89149
|
+
startedAt: number$1(),
|
|
89150
|
+
/** User id of the admin who opened it; `unattributed` when the caller was not passed. */
|
|
89151
|
+
openedBy: string().optional(),
|
|
89152
|
+
/** ms-epoch of the last pty input or output — what the idle timeout measures. */
|
|
89153
|
+
lastActivityAt: number$1().optional()
|
|
88280
89154
|
});
|
|
88281
89155
|
/**
|
|
88282
89156
|
* A profile the operator may open — a pre-declared, allowlisted program
|
|
@@ -88296,39 +89170,6 @@ var TerminalProfileInfoSchema = object({
|
|
|
88296
89170
|
/** ConfigUISchema for instance knobs, or null when the profile has none. */
|
|
88297
89171
|
settingsSchema: ProfileSettingsSchemaBridge.optional()
|
|
88298
89172
|
});
|
|
88299
|
-
/**
|
|
88300
|
-
* A durable operator-created Terminal instance. Profiles are templates; only
|
|
88301
|
-
* an instance declares a camera.
|
|
88302
|
-
*/
|
|
88303
|
-
var TerminalInstanceInfoSchema = object({
|
|
88304
|
-
instanceId: string(),
|
|
88305
|
-
cameraStableId: string(),
|
|
88306
|
-
nodeId: string(),
|
|
88307
|
-
/**
|
|
88308
|
-
* False while the node the instance is bound to is not in the cluster
|
|
88309
|
-
* topology (forgotten, renamed, re-paired). The instance is kept; the
|
|
88310
|
-
* operator re-points it on the Terminal page.
|
|
88311
|
-
*/
|
|
88312
|
-
nodeInCluster: boolean(),
|
|
88313
|
-
profileId: string(),
|
|
88314
|
-
profileLabel: string(),
|
|
88315
|
-
name: string(),
|
|
88316
|
-
enabled: boolean(),
|
|
88317
|
-
executable: string(),
|
|
88318
|
-
args: array(string()).readonly(),
|
|
88319
|
-
cwd: string(),
|
|
88320
|
-
environment: array(string()).readonly(),
|
|
88321
|
-
profileSettings: ProfileSettingsBagSchema
|
|
88322
|
-
});
|
|
88323
|
-
var TerminalLegacyCameraSchema = object({
|
|
88324
|
-
stableId: string(),
|
|
88325
|
-
nodeId: string(),
|
|
88326
|
-
profileId: string(),
|
|
88327
|
-
profileLabel: string(),
|
|
88328
|
-
name: string(),
|
|
88329
|
-
/** Only legacy monitor cameras can retain their historic stable identity. */
|
|
88330
|
-
adoptable: boolean()
|
|
88331
|
-
});
|
|
88332
89173
|
var TerminalOutputEventSchema = discriminatedUnion("kind", [object({
|
|
88333
89174
|
seq: number$1().int().positive(),
|
|
88334
89175
|
kind: literal("data"),
|
|
@@ -88356,13 +89197,7 @@ var TerminalOutputBatchSchema = object({
|
|
|
88356
89197
|
snapshot: string().optional(),
|
|
88357
89198
|
events: array(TerminalOutputEventSchema).readonly()
|
|
88358
89199
|
});
|
|
88359
|
-
method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }), method(_void(), array(
|
|
88360
|
-
stableId: string().min(1),
|
|
88361
|
-
name: string().trim().min(1).max(160).optional()
|
|
88362
|
-
}), TerminalInstanceInfoSchema, {
|
|
88363
|
-
kind: "mutation",
|
|
88364
|
-
auth: "admin"
|
|
88365
|
-
}), method(_void(), array(TerminalSessionInfoSchema).readonly(), { auth: "admin" }), method(_void(), ServerShellStatusSchema, { auth: "admin" }), method(object({
|
|
89200
|
+
method(_void(), array(TerminalProfileInfoSchema).readonly(), { auth: "admin" }), method(_void(), array(TerminalSessionInfoSchema).readonly(), { auth: "admin" }), method(_void(), ServerShellStatusSchema, { auth: "admin" }), method(object({
|
|
88366
89201
|
profileId: string(),
|
|
88367
89202
|
cols: number$1().int().positive(),
|
|
88368
89203
|
rows: number$1().int().positive(),
|
|
@@ -90475,6 +91310,175 @@ DeviceType.Camera, method(object({ deviceId: number$1().int().nonnegative() }),
|
|
|
90475
91310
|
deviceId: number$1().int().nonnegative(),
|
|
90476
91311
|
sessionId: string()
|
|
90477
91312
|
}), WebrtcSessionDebugSchema, { kind: "query" });
|
|
91313
|
+
var WorkloadStateSchema = _enum([
|
|
91314
|
+
"running",
|
|
91315
|
+
"paused",
|
|
91316
|
+
"stopped",
|
|
91317
|
+
"starting",
|
|
91318
|
+
"stopping",
|
|
91319
|
+
"crashed"
|
|
91320
|
+
]);
|
|
91321
|
+
DeviceRole.Vm, DeviceRole.AppContainer, DeviceRole.Lxc, DeviceRole.App, DeviceRole.Host;
|
|
91322
|
+
/**
|
|
91323
|
+
* What the workload uses. Every value is `null` when not reported (D393). A host
|
|
91324
|
+
* fills `load1` and `temperature`; its uptime is `since` while it runs.
|
|
91325
|
+
*/
|
|
91326
|
+
var WorkloadResourcesSchema = object({
|
|
91327
|
+
/** CPU use, percent of the CPUs it may use (0–100). */
|
|
91328
|
+
cpuPercent: number$1().nullable().meta(readingMeta("percentage", { precision: 1 })),
|
|
91329
|
+
memoryUsedBytes: number$1().nullable().meta(readingMeta("information")),
|
|
91330
|
+
/**
|
|
91331
|
+
* Memory use, percent of `memoryLimitBytes`, for a source that reports a share
|
|
91332
|
+
* and not bytes (a Docker container's stats). Absent or `null` = not reported.
|
|
91333
|
+
*/
|
|
91334
|
+
memoryPercent: number$1().nullable().optional().meta(readingMeta("percentage", { precision: 1 })),
|
|
91335
|
+
/** The memory it may use: the limit of a container, the RAM of a VM or host. */
|
|
91336
|
+
memoryLimitBytes: number$1().nullable().meta(readingMeta("information")),
|
|
91337
|
+
vcpus: number$1().nullable().meta(readingMeta("count")),
|
|
91338
|
+
diskUsedBytes: number$1().nullable().meta(readingMeta("information")),
|
|
91339
|
+
diskTotalBytes: number$1().nullable().meta(readingMeta("information")),
|
|
91340
|
+
/** Network received, kbit/s. */
|
|
91341
|
+
netRxKbps: number$1().nullable().meta(readingMeta("bitrate")),
|
|
91342
|
+
/** Network sent, kbit/s. */
|
|
91343
|
+
netTxKbps: number$1().nullable().meta(readingMeta("bitrate")),
|
|
91344
|
+
/** One-minute load average (a host). */
|
|
91345
|
+
load1: number$1().nullable().meta(readingMeta("index", { precision: 2 })),
|
|
91346
|
+
/** CPU / board temperature (a host). */
|
|
91347
|
+
temperature: number$1().nullable().meta(readingMeta("temperature", { precision: 1 }))
|
|
91348
|
+
});
|
|
91349
|
+
var WorkloadPortProtocolSchema = _enum(["tcp", "udp"]);
|
|
91350
|
+
/** One published port: the workload's own port and where the host exposes it. */
|
|
91351
|
+
var WorkloadPortSchema = object({
|
|
91352
|
+
port: number$1().int().meta(readingMeta("none")),
|
|
91353
|
+
/** The host port it is published on; null = not published. */
|
|
91354
|
+
hostPort: number$1().int().nullable().meta(readingMeta("none")),
|
|
91355
|
+
/** The host address it is bound to; null = every address. */
|
|
91356
|
+
hostIp: string().nullable(),
|
|
91357
|
+
protocol: WorkloadPortProtocolSchema
|
|
91358
|
+
});
|
|
91359
|
+
object({
|
|
91360
|
+
/** null = unknown, never stopped (D393). */
|
|
91361
|
+
state: WorkloadStateSchema.nullable().meta({ label: "State" }),
|
|
91362
|
+
/** Epoch ms the current state began (uptime while running); null when unknown. */
|
|
91363
|
+
since: number$1().nullable().meta(readingMeta("none")),
|
|
91364
|
+
/** The `host` device this runs on, when the provider has adopted it. */
|
|
91365
|
+
hostDeviceId: number$1().int().nullable().meta(readingMeta("device")),
|
|
91366
|
+
/** The image a container runs (`nginx:1.27`). */
|
|
91367
|
+
image: string().nullable(),
|
|
91368
|
+
/** The operating system (a VM, an LXC, a host). */
|
|
91369
|
+
os: string().nullable(),
|
|
91370
|
+
/** The version or firmware it runs. */
|
|
91371
|
+
version: string().nullable(),
|
|
91372
|
+
/** Starts with its host; null when the platform does not say. */
|
|
91373
|
+
autostart: boolean().nullable(),
|
|
91374
|
+
resources: WorkloadResourcesSchema,
|
|
91375
|
+
ports: array(WorkloadPortSchema),
|
|
91376
|
+
/** The addresses it is reachable on (IPs or host names). */
|
|
91377
|
+
addresses: array(string()),
|
|
91378
|
+
/** A newer image / version exists. Installing it stays the `update` cap. */
|
|
91379
|
+
updateAvailable: boolean().nullable(),
|
|
91380
|
+
lastFetchedAt: number$1()
|
|
91381
|
+
});
|
|
91382
|
+
/**
|
|
91383
|
+
* What this device can do, probed by its provider (D14 honesty): a flag is
|
|
91384
|
+
* `true` only when the platform really serves it for THIS device.
|
|
91385
|
+
*/
|
|
91386
|
+
var WorkloadOptionsSchema = object({
|
|
91387
|
+
supportsStart: boolean(),
|
|
91388
|
+
supportsStop: boolean(),
|
|
91389
|
+
supportsRestart: boolean(),
|
|
91390
|
+
/** Pause AND resume. */
|
|
91391
|
+
supportsPause: boolean(),
|
|
91392
|
+
supportsForceStop: boolean(),
|
|
91393
|
+
hasResources: boolean(),
|
|
91394
|
+
hasPorts: boolean(),
|
|
91395
|
+
hasAddresses: boolean(),
|
|
91396
|
+
hasAutostart: boolean(),
|
|
91397
|
+
hasUpdateCheck: boolean()
|
|
91398
|
+
});
|
|
91399
|
+
var WorkloadDeviceInputSchema = object({ deviceId: number$1().int().nonnegative() });
|
|
91400
|
+
object({
|
|
91401
|
+
deviceId: number$1(),
|
|
91402
|
+
state: WorkloadStateSchema,
|
|
91403
|
+
previous: WorkloadStateSchema,
|
|
91404
|
+
since: number$1().nullable()
|
|
91405
|
+
});
|
|
91406
|
+
EventCategory.WorkloadStarted, EventCategory.WorkloadStopped, EventCategory.WorkloadCrashed, EventCategory.WorkloadRecovered;
|
|
91407
|
+
DeviceType.Workload, DeviceType.Workload, optionalMethod(WorkloadDeviceInputSchema, _void(), {
|
|
91408
|
+
kind: "mutation",
|
|
91409
|
+
auth: "protected",
|
|
91410
|
+
actions: [{
|
|
91411
|
+
id: "workload.start",
|
|
91412
|
+
label: t("Start", "Avvia"),
|
|
91413
|
+
phrase: t("Start {device}", "Avvia {device}"),
|
|
91414
|
+
icon: "play",
|
|
91415
|
+
effect: {
|
|
91416
|
+
field: "state",
|
|
91417
|
+
value: "running"
|
|
91418
|
+
}
|
|
91419
|
+
}]
|
|
91420
|
+
}), optionalMethod(WorkloadDeviceInputSchema, _void(), {
|
|
91421
|
+
kind: "mutation",
|
|
91422
|
+
auth: "protected",
|
|
91423
|
+
actions: [{
|
|
91424
|
+
id: "workload.stop",
|
|
91425
|
+
label: t("Stop", "Arresta"),
|
|
91426
|
+
phrase: t("Stop {device}", "Arresta {device}"),
|
|
91427
|
+
icon: "square",
|
|
91428
|
+
effect: {
|
|
91429
|
+
field: "state",
|
|
91430
|
+
value: "stopped"
|
|
91431
|
+
}
|
|
91432
|
+
}]
|
|
91433
|
+
}), optionalMethod(WorkloadDeviceInputSchema, _void(), {
|
|
91434
|
+
kind: "mutation",
|
|
91435
|
+
auth: "protected",
|
|
91436
|
+
actions: [{
|
|
91437
|
+
id: "workload.restart",
|
|
91438
|
+
label: t("Restart", "Riavvia"),
|
|
91439
|
+
phrase: t("Restart {device}", "Riavvia {device}"),
|
|
91440
|
+
icon: "rotate-ccw"
|
|
91441
|
+
}]
|
|
91442
|
+
}), optionalMethod(WorkloadDeviceInputSchema, _void(), {
|
|
91443
|
+
kind: "mutation",
|
|
91444
|
+
auth: "protected",
|
|
91445
|
+
actions: [{
|
|
91446
|
+
id: "workload.pause",
|
|
91447
|
+
label: t("Pause", "Metti in pausa"),
|
|
91448
|
+
phrase: t("Pause {device}", "Metti in pausa {device}"),
|
|
91449
|
+
icon: "pause",
|
|
91450
|
+
effect: {
|
|
91451
|
+
field: "state",
|
|
91452
|
+
value: "paused"
|
|
91453
|
+
}
|
|
91454
|
+
}]
|
|
91455
|
+
}), optionalMethod(WorkloadDeviceInputSchema, _void(), {
|
|
91456
|
+
kind: "mutation",
|
|
91457
|
+
auth: "protected",
|
|
91458
|
+
actions: [{
|
|
91459
|
+
id: "workload.resume",
|
|
91460
|
+
label: t("Resume", "Riprendi"),
|
|
91461
|
+
phrase: t("Resume {device}", "Riprendi {device}"),
|
|
91462
|
+
icon: "circle-play",
|
|
91463
|
+
effect: {
|
|
91464
|
+
field: "state",
|
|
91465
|
+
value: "running"
|
|
91466
|
+
}
|
|
91467
|
+
}]
|
|
91468
|
+
}), optionalMethod(WorkloadDeviceInputSchema, _void(), {
|
|
91469
|
+
kind: "mutation",
|
|
91470
|
+
auth: "admin",
|
|
91471
|
+
actions: [{
|
|
91472
|
+
id: "workload.forceStop",
|
|
91473
|
+
label: t("Force stop", "Arresto forzato"),
|
|
91474
|
+
phrase: t("Force {device} to stop", "Forza l’arresto di {device}"),
|
|
91475
|
+
icon: "octagon-x",
|
|
91476
|
+
effect: {
|
|
91477
|
+
field: "state",
|
|
91478
|
+
value: "stopped"
|
|
91479
|
+
}
|
|
91480
|
+
}]
|
|
91481
|
+
}), method(WorkloadDeviceInputSchema, WorkloadOptionsSchema, { auth: "protected" }), EventCategory.WorkloadStarted, EventCategory.WorkloadStopped, EventCategory.WorkloadCrashed, EventCategory.WorkloadRecovered, DeviceRole.Vm, DeviceRole.AppContainer, DeviceRole.Lxc, DeviceRole.App, DeviceRole.Host;
|
|
90478
91482
|
/**
|
|
90479
91483
|
* Per-zone occupancy aggregation produced by the analytics frame
|
|
90480
91484
|
* processor on every inference result. Covers the full combinatorial
|
|
@@ -91136,7 +92140,7 @@ var AccessoryKind = {
|
|
|
91136
92140
|
};
|
|
91137
92141
|
AccessoryKind.Siren, AccessoryKind.Floodlight, AccessoryKind.Spotlight, AccessoryKind.PirSensor, AccessoryKind.Chime, AccessoryKind.Autotrack, AccessoryKind.Nightvision, AccessoryKind.PrivacyMask;
|
|
91138
92142
|
DeviceType.HeatPump;
|
|
91139
|
-
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;
|
|
92143
|
+
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;
|
|
91140
92144
|
new Set(Object.values(DeviceType));
|
|
91141
92145
|
/** Parses the raw slice with the cap's own schema; `undefined` when it does not parse. */
|
|
91142
92146
|
function contribution(cap, schema, build) {
|
|
@@ -93192,7 +94196,7 @@ var HEAT_PUMP_FAMILY_CONTRIBUTIONS = { "heat-pump-status": contribution("heat-pu
|
|
|
93192
94196
|
...Object.values(CLIMATE_FAMILY_CONTRIBUTIONS),
|
|
93193
94197
|
...Object.values(HEAT_PUMP_FAMILY_CONTRIBUTIONS)
|
|
93194
94198
|
];
|
|
93195
|
-
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;
|
|
94199
|
+
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;
|
|
93196
94200
|
/**
|
|
93197
94201
|
* Who looks like what (D1023). One look per {@link DeviceType}, refined by a
|
|
93198
94202
|
* {@link DeviceRole} where the role changes how the device reads (a leak
|
|
@@ -93836,8 +94840,8 @@ lookOf({
|
|
|
93836
94840
|
standby: MUTED
|
|
93837
94841
|
});
|
|
93838
94842
|
DeviceType.Climate;
|
|
93839
|
-
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;
|
|
93840
|
-
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;
|
|
94843
|
+
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;
|
|
94844
|
+
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;
|
|
93841
94845
|
Object.freeze({
|
|
93842
94846
|
"accessories.getStatus": {
|
|
93843
94847
|
capName: "accessories",
|
|
@@ -96499,6 +97503,13 @@ Object.freeze({
|
|
|
96499
97503
|
access: "create",
|
|
96500
97504
|
role: "admin"
|
|
96501
97505
|
},
|
|
97506
|
+
"deviceManager.setIdentifiers": {
|
|
97507
|
+
capName: "device-manager",
|
|
97508
|
+
capScope: "system",
|
|
97509
|
+
addonId: null,
|
|
97510
|
+
access: "create",
|
|
97511
|
+
role: "admin"
|
|
97512
|
+
},
|
|
96502
97513
|
"deviceManager.setIntegrationId": {
|
|
96503
97514
|
capName: "device-manager",
|
|
96504
97515
|
capScope: "system",
|
|
@@ -99383,6 +100394,13 @@ Object.freeze({
|
|
|
99383
100394
|
access: "view",
|
|
99384
100395
|
role: "admin"
|
|
99385
100396
|
},
|
|
100397
|
+
"notificationRules.listRuleTags": {
|
|
100398
|
+
capName: "notification-rules",
|
|
100399
|
+
capScope: "system",
|
|
100400
|
+
addonId: null,
|
|
100401
|
+
access: "view",
|
|
100402
|
+
role: "admin"
|
|
100403
|
+
},
|
|
99386
100404
|
"notificationRules.listSnoozes": {
|
|
99387
100405
|
capName: "notification-rules",
|
|
99388
100406
|
capScope: "system",
|
|
@@ -99439,6 +100457,13 @@ Object.freeze({
|
|
|
99439
100457
|
access: "create",
|
|
99440
100458
|
role: "admin"
|
|
99441
100459
|
},
|
|
100460
|
+
"notificationRules.setRuleTags": {
|
|
100461
|
+
capName: "notification-rules",
|
|
100462
|
+
capScope: "system",
|
|
100463
|
+
addonId: null,
|
|
100464
|
+
access: "create",
|
|
100465
|
+
role: "admin"
|
|
100466
|
+
},
|
|
99442
100467
|
"notificationRules.testRule": {
|
|
99443
100468
|
capName: "notification-rules",
|
|
99444
100469
|
capScope: "system",
|
|
@@ -102407,6 +103432,13 @@ Object.freeze({
|
|
|
102407
103432
|
access: "view",
|
|
102408
103433
|
role: "viewer"
|
|
102409
103434
|
},
|
|
103435
|
+
"siren.getPlayChoices": {
|
|
103436
|
+
capName: "siren",
|
|
103437
|
+
capScope: "device",
|
|
103438
|
+
addonId: null,
|
|
103439
|
+
access: "view",
|
|
103440
|
+
role: "viewer"
|
|
103441
|
+
},
|
|
102410
103442
|
"siren.getStatus": {
|
|
102411
103443
|
capName: "siren",
|
|
102412
103444
|
capScope: "device",
|
|
@@ -103219,6 +104251,13 @@ Object.freeze({
|
|
|
103219
104251
|
access: "view",
|
|
103220
104252
|
role: "viewer"
|
|
103221
104253
|
},
|
|
104254
|
+
"switch.getOptions": {
|
|
104255
|
+
capName: "switch",
|
|
104256
|
+
capScope: "device",
|
|
104257
|
+
addonId: null,
|
|
104258
|
+
access: "view",
|
|
104259
|
+
role: "viewer"
|
|
104260
|
+
},
|
|
103222
104261
|
"switch.getStatus": {
|
|
103223
104262
|
capName: "switch",
|
|
103224
104263
|
capScope: "device",
|
|
@@ -103226,6 +104265,13 @@ Object.freeze({
|
|
|
103226
104265
|
access: "view",
|
|
103227
104266
|
role: "viewer"
|
|
103228
104267
|
},
|
|
104268
|
+
"switch.powerCycle": {
|
|
104269
|
+
capName: "switch",
|
|
104270
|
+
capScope: "device",
|
|
104271
|
+
addonId: null,
|
|
104272
|
+
access: "create",
|
|
104273
|
+
role: "viewer"
|
|
104274
|
+
},
|
|
103229
104275
|
"switch.setState": {
|
|
103230
104276
|
capName: "switch",
|
|
103231
104277
|
capScope: "device",
|
|
@@ -103429,13 +104475,6 @@ Object.freeze({
|
|
|
103429
104475
|
access: "create",
|
|
103430
104476
|
role: "admin"
|
|
103431
104477
|
},
|
|
103432
|
-
"terminalSession.adoptLegacyMonitor": {
|
|
103433
|
-
capName: "terminal-session",
|
|
103434
|
-
capScope: "system",
|
|
103435
|
-
addonId: null,
|
|
103436
|
-
access: "create",
|
|
103437
|
-
role: "admin"
|
|
103438
|
-
},
|
|
103439
104478
|
"terminalSession.close": {
|
|
103440
104479
|
capName: "terminal-session",
|
|
103441
104480
|
capScope: "system",
|
|
@@ -103443,13 +104482,6 @@ Object.freeze({
|
|
|
103443
104482
|
access: "create",
|
|
103444
104483
|
role: "admin"
|
|
103445
104484
|
},
|
|
103446
|
-
"terminalSession.listLegacyCameras": {
|
|
103447
|
-
capName: "terminal-session",
|
|
103448
|
-
capScope: "system",
|
|
103449
|
-
addonId: null,
|
|
103450
|
-
access: "view",
|
|
103451
|
-
role: "admin"
|
|
103452
|
-
},
|
|
103453
104485
|
"terminalSession.listProfiles": {
|
|
103454
104486
|
capName: "terminal-session",
|
|
103455
104487
|
capScope: "system",
|
|
@@ -104311,6 +105343,62 @@ Object.freeze({
|
|
|
104311
105343
|
access: "view",
|
|
104312
105344
|
role: "viewer"
|
|
104313
105345
|
},
|
|
105346
|
+
"workload.forceStop": {
|
|
105347
|
+
capName: "workload",
|
|
105348
|
+
capScope: "device",
|
|
105349
|
+
addonId: null,
|
|
105350
|
+
access: "create",
|
|
105351
|
+
role: "admin"
|
|
105352
|
+
},
|
|
105353
|
+
"workload.getOptions": {
|
|
105354
|
+
capName: "workload",
|
|
105355
|
+
capScope: "device",
|
|
105356
|
+
addonId: null,
|
|
105357
|
+
access: "view",
|
|
105358
|
+
role: "viewer"
|
|
105359
|
+
},
|
|
105360
|
+
"workload.getStatus": {
|
|
105361
|
+
capName: "workload",
|
|
105362
|
+
capScope: "device",
|
|
105363
|
+
addonId: null,
|
|
105364
|
+
access: "view",
|
|
105365
|
+
role: "viewer"
|
|
105366
|
+
},
|
|
105367
|
+
"workload.pause": {
|
|
105368
|
+
capName: "workload",
|
|
105369
|
+
capScope: "device",
|
|
105370
|
+
addonId: null,
|
|
105371
|
+
access: "create",
|
|
105372
|
+
role: "viewer"
|
|
105373
|
+
},
|
|
105374
|
+
"workload.restart": {
|
|
105375
|
+
capName: "workload",
|
|
105376
|
+
capScope: "device",
|
|
105377
|
+
addonId: null,
|
|
105378
|
+
access: "create",
|
|
105379
|
+
role: "viewer"
|
|
105380
|
+
},
|
|
105381
|
+
"workload.resume": {
|
|
105382
|
+
capName: "workload",
|
|
105383
|
+
capScope: "device",
|
|
105384
|
+
addonId: null,
|
|
105385
|
+
access: "create",
|
|
105386
|
+
role: "viewer"
|
|
105387
|
+
},
|
|
105388
|
+
"workload.start": {
|
|
105389
|
+
capName: "workload",
|
|
105390
|
+
capScope: "device",
|
|
105391
|
+
addonId: null,
|
|
105392
|
+
access: "create",
|
|
105393
|
+
role: "viewer"
|
|
105394
|
+
},
|
|
105395
|
+
"workload.stop": {
|
|
105396
|
+
capName: "workload",
|
|
105397
|
+
capScope: "device",
|
|
105398
|
+
addonId: null,
|
|
105399
|
+
access: "create",
|
|
105400
|
+
role: "viewer"
|
|
105401
|
+
},
|
|
104314
105402
|
"zoneAnalytics.getCameraHistory": {
|
|
104315
105403
|
capName: "zone-analytics",
|
|
104316
105404
|
capScope: "device",
|
|
@@ -104475,8 +105563,8 @@ function offered(received) {
|
|
|
104475
105563
|
};
|
|
104476
105564
|
}
|
|
104477
105565
|
offered(HA_AS), withheld(HOMEKIT_REASON), withheld(ALEXA_REASON), withheld(GOOGLE_REASON), withheld(MATTER_REASON);
|
|
104478
|
-
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;
|
|
104479
|
-
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;
|
|
105566
|
+
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;
|
|
105567
|
+
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;
|
|
104480
105568
|
new Set(Object.values(DeviceType));
|
|
104481
105569
|
new Set(Object.values(DeviceRole));
|
|
104482
105570
|
Object.freeze({
|
|
@@ -105178,6 +106266,11 @@ Object.freeze({
|
|
|
105178
106266
|
form: "single",
|
|
105179
106267
|
optional: false
|
|
105180
106268
|
}],
|
|
106269
|
+
"deviceManager.setIdentifiers": [{
|
|
106270
|
+
name: "deviceId",
|
|
106271
|
+
form: "single",
|
|
106272
|
+
optional: false
|
|
106273
|
+
}],
|
|
105181
106274
|
"deviceManager.setIntegrationId": [{
|
|
105182
106275
|
name: "deviceId",
|
|
105183
106276
|
form: "single",
|
|
@@ -107172,6 +108265,11 @@ Object.freeze({
|
|
|
107172
108265
|
form: "single",
|
|
107173
108266
|
optional: false
|
|
107174
108267
|
}],
|
|
108268
|
+
"siren.getPlayChoices": [{
|
|
108269
|
+
name: "deviceId",
|
|
108270
|
+
form: "single",
|
|
108271
|
+
optional: false
|
|
108272
|
+
}],
|
|
107175
108273
|
"siren.getStatus": [{
|
|
107176
108274
|
name: "deviceId",
|
|
107177
108275
|
form: "single",
|
|
@@ -107354,11 +108452,21 @@ Object.freeze({
|
|
|
107354
108452
|
form: "single",
|
|
107355
108453
|
optional: false
|
|
107356
108454
|
}],
|
|
108455
|
+
"switch.getOptions": [{
|
|
108456
|
+
name: "deviceId",
|
|
108457
|
+
form: "single",
|
|
108458
|
+
optional: false
|
|
108459
|
+
}],
|
|
107357
108460
|
"switch.getStatus": [{
|
|
107358
108461
|
name: "deviceId",
|
|
107359
108462
|
form: "single",
|
|
107360
108463
|
optional: false
|
|
107361
108464
|
}],
|
|
108465
|
+
"switch.powerCycle": [{
|
|
108466
|
+
name: "deviceId",
|
|
108467
|
+
form: "single",
|
|
108468
|
+
optional: false
|
|
108469
|
+
}],
|
|
107362
108470
|
"switch.setState": [{
|
|
107363
108471
|
name: "deviceId",
|
|
107364
108472
|
form: "single",
|
|
@@ -107599,6 +108707,46 @@ Object.freeze({
|
|
|
107599
108707
|
form: "single",
|
|
107600
108708
|
optional: false
|
|
107601
108709
|
}],
|
|
108710
|
+
"workload.forceStop": [{
|
|
108711
|
+
name: "deviceId",
|
|
108712
|
+
form: "single",
|
|
108713
|
+
optional: false
|
|
108714
|
+
}],
|
|
108715
|
+
"workload.getOptions": [{
|
|
108716
|
+
name: "deviceId",
|
|
108717
|
+
form: "single",
|
|
108718
|
+
optional: false
|
|
108719
|
+
}],
|
|
108720
|
+
"workload.getStatus": [{
|
|
108721
|
+
name: "deviceId",
|
|
108722
|
+
form: "single",
|
|
108723
|
+
optional: false
|
|
108724
|
+
}],
|
|
108725
|
+
"workload.pause": [{
|
|
108726
|
+
name: "deviceId",
|
|
108727
|
+
form: "single",
|
|
108728
|
+
optional: false
|
|
108729
|
+
}],
|
|
108730
|
+
"workload.restart": [{
|
|
108731
|
+
name: "deviceId",
|
|
108732
|
+
form: "single",
|
|
108733
|
+
optional: false
|
|
108734
|
+
}],
|
|
108735
|
+
"workload.resume": [{
|
|
108736
|
+
name: "deviceId",
|
|
108737
|
+
form: "single",
|
|
108738
|
+
optional: false
|
|
108739
|
+
}],
|
|
108740
|
+
"workload.start": [{
|
|
108741
|
+
name: "deviceId",
|
|
108742
|
+
form: "single",
|
|
108743
|
+
optional: false
|
|
108744
|
+
}],
|
|
108745
|
+
"workload.stop": [{
|
|
108746
|
+
name: "deviceId",
|
|
108747
|
+
form: "single",
|
|
108748
|
+
optional: false
|
|
108749
|
+
}],
|
|
107602
108750
|
"zoneAnalytics.getCameraHistory": [{
|
|
107603
108751
|
name: "deviceId",
|
|
107604
108752
|
form: "single",
|
|
@@ -108912,6 +110060,8 @@ var TimelapseRuleInputSchema = object({
|
|
|
108912
110060
|
/** Canonical notification priority ordinal (1..5); per-target overridable. */
|
|
108913
110061
|
priority: PriorityField.default(3),
|
|
108914
110062
|
/** Per-target settings keyed by target id (D1032) — absent = every target follows the rule. */
|
|
110063
|
+
/** Operator labels (D1054) — optional and NEVER defaulted: an absent key leaves the stored tags alone; `[]` clears them. Admin-only. */
|
|
110064
|
+
tags: TagsFieldSchema.optional(),
|
|
108915
110065
|
targetOverrides: NcTargetOverridesSchema.optional()
|
|
108916
110066
|
});
|
|
108917
110067
|
object({
|
|
@@ -108930,6 +110080,8 @@ object({
|
|
|
108930
110080
|
reportClasses: ReportClassesField.optional(),
|
|
108931
110081
|
priority: PriorityField.optional(),
|
|
108932
110082
|
/** Per-target settings keyed by target id (D1032) — absent = every target follows the rule. */
|
|
110083
|
+
/** Absent = keep the stored tags; `[]` clears them (D1054). Never defaulted. */
|
|
110084
|
+
tags: TagsFieldSchema.optional(),
|
|
108933
110085
|
targetOverrides: NcTargetOverridesSchema.optional()
|
|
108934
110086
|
});
|
|
108935
110087
|
TimelapseRuleInputSchema.extend({
|