@camstack/types 1.2.572 → 1.2.574
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 +17 -6
- package/dist/addon.js +1 -1
- package/dist/addon.mjs +1 -1
- package/dist/capabilities/capability-definition.d.ts +1 -1
- package/dist/capabilities/consumables.cap.d.ts +5 -14
- package/dist/capabilities/face-gallery.cap.d.ts +25 -0
- package/dist/capabilities/plate-gallery.cap.d.ts +29 -0
- package/dist/capabilities/weather-station.cap.d.ts +305 -51
- package/dist/client.js +2 -0
- package/dist/client.mjs +2 -0
- package/dist/generated/addon-api.d.ts +14 -0
- package/dist/generated/addon-cap-facts.d.ts +1 -1
- package/dist/generated/customize-catalog.d.ts +605 -1
- package/dist/generated/history-catalog.d.ts +1 -1
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +2 -2
- package/dist/index.js +965 -37
- package/dist/index.mjs +965 -37
- package/dist/interfaces/config-ui.d.ts +2 -2
- package/dist/{sleep-BnR9qGOv.mjs → sleep-CLDVTB5R.mjs} +150 -0
- package/dist/{sleep-Cr2-wtyQ.js → sleep-CsIzA4m_.js} +150 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_sleep = require("./sleep-
|
|
2
|
+
const require_sleep = require("./sleep-CsIzA4m_.js");
|
|
3
3
|
const require_event_category = require("./event-category-d9kiqCqC.js");
|
|
4
4
|
const require_composed_stable_id = require("./composed-stable-id-C3NfRTj8.js");
|
|
5
5
|
const require_implemented_methods = require("./implemented-methods-C7ScGvEz.js");
|
|
@@ -47192,13 +47192,14 @@ var connectivityCapability = {
|
|
|
47192
47192
|
* its device tracks consumables registers it; the provider names each item
|
|
47193
47193
|
* verbatim and says which `kind` it is.
|
|
47194
47194
|
*
|
|
47195
|
-
* The admin UI
|
|
47196
|
-
*
|
|
47197
|
-
*
|
|
47195
|
+
* The admin UI shows it in the device card's consumables chip and popover
|
|
47196
|
+
* (kind-aware level, remaining time, "Reset"), for every device bound to this
|
|
47197
|
+
* cap (D1023). It no longer has a section of its own under the hero card
|
|
47198
|
+
* (D915 on that point).
|
|
47198
47199
|
*
|
|
47199
47200
|
* Like `childLayout`, the cap is INERT until a provider sets items: no
|
|
47200
47201
|
* provider populates it by guessing (no HA inference). The UI renders a
|
|
47201
|
-
* "No consumables reported"
|
|
47202
|
+
* "No consumables reported" line when `items` is empty.
|
|
47202
47203
|
*/
|
|
47203
47204
|
/**
|
|
47204
47205
|
* What an item IS, which decides which direction is bad:
|
|
@@ -47304,7 +47305,7 @@ var ConsumablesStatusSchema = zod.z.object({
|
|
|
47304
47305
|
});
|
|
47305
47306
|
/** Synthesize seed for a link-built status (no native provider).
|
|
47306
47307
|
*
|
|
47307
|
-
*
|
|
47308
|
+
* ! NO LIVE CALLER since 2026-08-08 (device-links deleted; see
|
|
47308
47309
|
* `CapabilityStatusSchema.empty`). The wiring guidance below was written for
|
|
47309
47310
|
* exactly the case the operator is asking about again — a Dreame's HA
|
|
47310
47311
|
* consumable-life sensors — so it is kept for that conversation, not because
|
|
@@ -47408,14 +47409,6 @@ var consumablesCapability = {
|
|
|
47408
47409
|
deviceNative: true,
|
|
47409
47410
|
mode: "singleton",
|
|
47410
47411
|
deviceTypes: Object.values(require_composed_stable_id.DeviceType),
|
|
47411
|
-
deviceConfig: { ui: {
|
|
47412
|
-
kind: "widget",
|
|
47413
|
-
widgetId: "host/consumables-panel",
|
|
47414
|
-
tab: "consumables",
|
|
47415
|
-
placement: "hero",
|
|
47416
|
-
label: "Consumables",
|
|
47417
|
-
order: 5
|
|
47418
|
-
} },
|
|
47419
47412
|
methods: {
|
|
47420
47413
|
/** Mark a consumable as replaced — resets its remaining life. Only
|
|
47421
47414
|
* meaningful when the item's `resettable` is true. */
|
|
@@ -48796,7 +48789,7 @@ var mediaPlayerCapability = {
|
|
|
48796
48789
|
//#region src/generated/customize-catalog.ts
|
|
48797
48790
|
/**
|
|
48798
48791
|
* Customize catalog, projected from every `*.cap.ts` `customize` block.
|
|
48799
|
-
*
|
|
48792
|
+
* 13 caps. Field keys are `runtimeState` paths. No Zod.
|
|
48800
48793
|
*/
|
|
48801
48794
|
var CAP_CUSTOMIZE_CATALOG = {
|
|
48802
48795
|
"battery": {
|
|
@@ -49713,6 +49706,572 @@ var CAP_CUSTOMIZE_CATALOG = {
|
|
|
49713
49706
|
path: "running",
|
|
49714
49707
|
by: "running"
|
|
49715
49708
|
}]
|
|
49709
|
+
},
|
|
49710
|
+
"weather-station": {
|
|
49711
|
+
version: 1,
|
|
49712
|
+
targets: [
|
|
49713
|
+
{
|
|
49714
|
+
id: "temperature",
|
|
49715
|
+
cardinality: "scalar",
|
|
49716
|
+
deviceTypes: [require_composed_stable_id.DeviceType.WeatherStation],
|
|
49717
|
+
apply: "add",
|
|
49718
|
+
vocabularyCap: "weather-station",
|
|
49719
|
+
vocabularyStateField: "temperature",
|
|
49720
|
+
sources: [{
|
|
49721
|
+
kind: "numeric",
|
|
49722
|
+
requiredUnit: "°C",
|
|
49723
|
+
transformKinds: ["identity"],
|
|
49724
|
+
transforms: [{ kind: "identity" }]
|
|
49725
|
+
}],
|
|
49726
|
+
sourceReport: { status: "assignment-status" },
|
|
49727
|
+
advancedExpression: false,
|
|
49728
|
+
path: "temperature",
|
|
49729
|
+
valueKind: "number",
|
|
49730
|
+
nullable: true,
|
|
49731
|
+
companions: [{
|
|
49732
|
+
kind: "clock",
|
|
49733
|
+
path: "lastFetchedAt",
|
|
49734
|
+
when: "add"
|
|
49735
|
+
}]
|
|
49736
|
+
},
|
|
49737
|
+
{
|
|
49738
|
+
id: "humidity",
|
|
49739
|
+
cardinality: "scalar",
|
|
49740
|
+
deviceTypes: [require_composed_stable_id.DeviceType.WeatherStation],
|
|
49741
|
+
apply: "add",
|
|
49742
|
+
vocabularyCap: "weather-station",
|
|
49743
|
+
vocabularyStateField: "humidity",
|
|
49744
|
+
sources: [{
|
|
49745
|
+
kind: "numeric",
|
|
49746
|
+
requiredUnit: "%",
|
|
49747
|
+
transformKinds: ["identity"],
|
|
49748
|
+
transforms: [{ kind: "identity" }]
|
|
49749
|
+
}],
|
|
49750
|
+
sourceReport: { status: "assignment-status" },
|
|
49751
|
+
advancedExpression: false,
|
|
49752
|
+
path: "humidity",
|
|
49753
|
+
valueKind: "number",
|
|
49754
|
+
nullable: true,
|
|
49755
|
+
companions: [{
|
|
49756
|
+
kind: "clock",
|
|
49757
|
+
path: "lastFetchedAt",
|
|
49758
|
+
when: "add"
|
|
49759
|
+
}]
|
|
49760
|
+
},
|
|
49761
|
+
{
|
|
49762
|
+
id: "pressure",
|
|
49763
|
+
cardinality: "scalar",
|
|
49764
|
+
deviceTypes: [require_composed_stable_id.DeviceType.WeatherStation],
|
|
49765
|
+
apply: "add",
|
|
49766
|
+
vocabularyCap: "weather-station",
|
|
49767
|
+
vocabularyStateField: "pressure",
|
|
49768
|
+
sources: [{
|
|
49769
|
+
kind: "numeric",
|
|
49770
|
+
requiredUnit: "hPa",
|
|
49771
|
+
transformKinds: ["identity"],
|
|
49772
|
+
transforms: [{ kind: "identity" }]
|
|
49773
|
+
}],
|
|
49774
|
+
sourceReport: { status: "assignment-status" },
|
|
49775
|
+
advancedExpression: false,
|
|
49776
|
+
path: "pressure",
|
|
49777
|
+
valueKind: "number",
|
|
49778
|
+
nullable: true,
|
|
49779
|
+
companions: [{
|
|
49780
|
+
kind: "clock",
|
|
49781
|
+
path: "lastFetchedAt",
|
|
49782
|
+
when: "add"
|
|
49783
|
+
}]
|
|
49784
|
+
},
|
|
49785
|
+
{
|
|
49786
|
+
id: "windSpeed",
|
|
49787
|
+
cardinality: "scalar",
|
|
49788
|
+
deviceTypes: [require_composed_stable_id.DeviceType.WeatherStation],
|
|
49789
|
+
apply: "add",
|
|
49790
|
+
vocabularyCap: "weather-station",
|
|
49791
|
+
vocabularyStateField: "windSpeed",
|
|
49792
|
+
sources: [{
|
|
49793
|
+
kind: "numeric",
|
|
49794
|
+
requiredUnit: "m/s",
|
|
49795
|
+
transformKinds: ["identity"],
|
|
49796
|
+
transforms: [{ kind: "identity" }]
|
|
49797
|
+
}],
|
|
49798
|
+
sourceReport: { status: "assignment-status" },
|
|
49799
|
+
advancedExpression: false,
|
|
49800
|
+
path: "windSpeed",
|
|
49801
|
+
valueKind: "number",
|
|
49802
|
+
nullable: true,
|
|
49803
|
+
companions: [{
|
|
49804
|
+
kind: "clock",
|
|
49805
|
+
path: "lastFetchedAt",
|
|
49806
|
+
when: "add"
|
|
49807
|
+
}]
|
|
49808
|
+
},
|
|
49809
|
+
{
|
|
49810
|
+
id: "windGust",
|
|
49811
|
+
cardinality: "scalar",
|
|
49812
|
+
deviceTypes: [require_composed_stable_id.DeviceType.WeatherStation],
|
|
49813
|
+
apply: "add",
|
|
49814
|
+
vocabularyCap: "weather-station",
|
|
49815
|
+
vocabularyStateField: "windGust",
|
|
49816
|
+
sources: [{
|
|
49817
|
+
kind: "numeric",
|
|
49818
|
+
requiredUnit: "m/s",
|
|
49819
|
+
transformKinds: ["identity"],
|
|
49820
|
+
transforms: [{ kind: "identity" }]
|
|
49821
|
+
}],
|
|
49822
|
+
sourceReport: { status: "assignment-status" },
|
|
49823
|
+
advancedExpression: false,
|
|
49824
|
+
path: "windGust",
|
|
49825
|
+
valueKind: "number",
|
|
49826
|
+
nullable: true,
|
|
49827
|
+
companions: [{
|
|
49828
|
+
kind: "clock",
|
|
49829
|
+
path: "lastFetchedAt",
|
|
49830
|
+
when: "add"
|
|
49831
|
+
}]
|
|
49832
|
+
},
|
|
49833
|
+
{
|
|
49834
|
+
id: "windBearing",
|
|
49835
|
+
cardinality: "scalar",
|
|
49836
|
+
deviceTypes: [require_composed_stable_id.DeviceType.WeatherStation],
|
|
49837
|
+
apply: "add",
|
|
49838
|
+
vocabularyCap: "weather-station",
|
|
49839
|
+
vocabularyStateField: "windBearing",
|
|
49840
|
+
sources: [{
|
|
49841
|
+
kind: "numeric",
|
|
49842
|
+
requiredUnit: "°",
|
|
49843
|
+
transformKinds: ["identity"],
|
|
49844
|
+
transforms: [{ kind: "identity" }]
|
|
49845
|
+
}],
|
|
49846
|
+
sourceReport: { status: "assignment-status" },
|
|
49847
|
+
advancedExpression: false,
|
|
49848
|
+
path: "windBearing",
|
|
49849
|
+
valueKind: "number",
|
|
49850
|
+
nullable: true,
|
|
49851
|
+
companions: [{
|
|
49852
|
+
kind: "clock",
|
|
49853
|
+
path: "lastFetchedAt",
|
|
49854
|
+
when: "add"
|
|
49855
|
+
}]
|
|
49856
|
+
},
|
|
49857
|
+
{
|
|
49858
|
+
id: "rainRate",
|
|
49859
|
+
cardinality: "scalar",
|
|
49860
|
+
deviceTypes: [require_composed_stable_id.DeviceType.WeatherStation],
|
|
49861
|
+
apply: "add",
|
|
49862
|
+
vocabularyCap: "weather-station",
|
|
49863
|
+
vocabularyStateField: "rainRate",
|
|
49864
|
+
sources: [{
|
|
49865
|
+
kind: "numeric",
|
|
49866
|
+
requiredUnit: "mm/h",
|
|
49867
|
+
transformKinds: ["identity"],
|
|
49868
|
+
transforms: [{ kind: "identity" }]
|
|
49869
|
+
}],
|
|
49870
|
+
sourceReport: { status: "assignment-status" },
|
|
49871
|
+
advancedExpression: false,
|
|
49872
|
+
path: "rainRate",
|
|
49873
|
+
valueKind: "number",
|
|
49874
|
+
nullable: true,
|
|
49875
|
+
companions: [{
|
|
49876
|
+
kind: "clock",
|
|
49877
|
+
path: "lastFetchedAt",
|
|
49878
|
+
when: "add"
|
|
49879
|
+
}]
|
|
49880
|
+
},
|
|
49881
|
+
{
|
|
49882
|
+
id: "rainDaily",
|
|
49883
|
+
cardinality: "scalar",
|
|
49884
|
+
deviceTypes: [require_composed_stable_id.DeviceType.WeatherStation],
|
|
49885
|
+
apply: "add",
|
|
49886
|
+
vocabularyCap: "weather-station",
|
|
49887
|
+
vocabularyStateField: "rainDaily",
|
|
49888
|
+
sources: [{
|
|
49889
|
+
kind: "numeric",
|
|
49890
|
+
requiredUnit: "mm",
|
|
49891
|
+
transformKinds: ["identity"],
|
|
49892
|
+
transforms: [{ kind: "identity" }]
|
|
49893
|
+
}],
|
|
49894
|
+
sourceReport: { status: "assignment-status" },
|
|
49895
|
+
advancedExpression: false,
|
|
49896
|
+
path: "rainDaily",
|
|
49897
|
+
valueKind: "number",
|
|
49898
|
+
nullable: true,
|
|
49899
|
+
companions: [{
|
|
49900
|
+
kind: "clock",
|
|
49901
|
+
path: "lastFetchedAt",
|
|
49902
|
+
when: "add"
|
|
49903
|
+
}]
|
|
49904
|
+
},
|
|
49905
|
+
{
|
|
49906
|
+
id: "rainEvent",
|
|
49907
|
+
cardinality: "scalar",
|
|
49908
|
+
deviceTypes: [require_composed_stable_id.DeviceType.WeatherStation],
|
|
49909
|
+
apply: "add",
|
|
49910
|
+
vocabularyCap: "weather-station",
|
|
49911
|
+
vocabularyStateField: "rainEvent",
|
|
49912
|
+
sources: [{
|
|
49913
|
+
kind: "numeric",
|
|
49914
|
+
requiredUnit: "mm",
|
|
49915
|
+
transformKinds: ["identity"],
|
|
49916
|
+
transforms: [{ kind: "identity" }]
|
|
49917
|
+
}],
|
|
49918
|
+
sourceReport: { status: "assignment-status" },
|
|
49919
|
+
advancedExpression: false,
|
|
49920
|
+
path: "rainEvent",
|
|
49921
|
+
valueKind: "number",
|
|
49922
|
+
nullable: true,
|
|
49923
|
+
companions: [{
|
|
49924
|
+
kind: "clock",
|
|
49925
|
+
path: "lastFetchedAt",
|
|
49926
|
+
when: "add"
|
|
49927
|
+
}]
|
|
49928
|
+
},
|
|
49929
|
+
{
|
|
49930
|
+
id: "uv",
|
|
49931
|
+
cardinality: "scalar",
|
|
49932
|
+
deviceTypes: [require_composed_stable_id.DeviceType.WeatherStation],
|
|
49933
|
+
apply: "add",
|
|
49934
|
+
vocabularyCap: "weather-station",
|
|
49935
|
+
vocabularyStateField: "uv",
|
|
49936
|
+
sources: [{
|
|
49937
|
+
kind: "numeric",
|
|
49938
|
+
transformKinds: ["identity"],
|
|
49939
|
+
transforms: [{ kind: "identity" }]
|
|
49940
|
+
}],
|
|
49941
|
+
sourceReport: { status: "assignment-status" },
|
|
49942
|
+
advancedExpression: false,
|
|
49943
|
+
path: "uv",
|
|
49944
|
+
valueKind: "number",
|
|
49945
|
+
nullable: true,
|
|
49946
|
+
companions: [{
|
|
49947
|
+
kind: "clock",
|
|
49948
|
+
path: "lastFetchedAt",
|
|
49949
|
+
when: "add"
|
|
49950
|
+
}]
|
|
49951
|
+
},
|
|
49952
|
+
{
|
|
49953
|
+
id: "solarRadiation",
|
|
49954
|
+
cardinality: "scalar",
|
|
49955
|
+
deviceTypes: [require_composed_stable_id.DeviceType.WeatherStation],
|
|
49956
|
+
apply: "add",
|
|
49957
|
+
vocabularyCap: "weather-station",
|
|
49958
|
+
vocabularyStateField: "solarRadiation",
|
|
49959
|
+
sources: [{
|
|
49960
|
+
kind: "numeric",
|
|
49961
|
+
requiredUnit: "W/m²",
|
|
49962
|
+
transformKinds: ["identity"],
|
|
49963
|
+
transforms: [{ kind: "identity" }]
|
|
49964
|
+
}],
|
|
49965
|
+
sourceReport: { status: "assignment-status" },
|
|
49966
|
+
advancedExpression: false,
|
|
49967
|
+
path: "solarRadiation",
|
|
49968
|
+
valueKind: "number",
|
|
49969
|
+
nullable: true,
|
|
49970
|
+
companions: [{
|
|
49971
|
+
kind: "clock",
|
|
49972
|
+
path: "lastFetchedAt",
|
|
49973
|
+
when: "add"
|
|
49974
|
+
}]
|
|
49975
|
+
},
|
|
49976
|
+
{
|
|
49977
|
+
id: "dewPoint",
|
|
49978
|
+
cardinality: "scalar",
|
|
49979
|
+
deviceTypes: [require_composed_stable_id.DeviceType.WeatherStation],
|
|
49980
|
+
apply: "add",
|
|
49981
|
+
vocabularyCap: "weather-station",
|
|
49982
|
+
vocabularyStateField: "dewPoint",
|
|
49983
|
+
sources: [{
|
|
49984
|
+
kind: "numeric",
|
|
49985
|
+
requiredUnit: "°C",
|
|
49986
|
+
transformKinds: ["identity"],
|
|
49987
|
+
transforms: [{ kind: "identity" }]
|
|
49988
|
+
}],
|
|
49989
|
+
sourceReport: { status: "assignment-status" },
|
|
49990
|
+
advancedExpression: false,
|
|
49991
|
+
path: "dewPoint",
|
|
49992
|
+
valueKind: "number",
|
|
49993
|
+
nullable: true,
|
|
49994
|
+
companions: [{
|
|
49995
|
+
kind: "clock",
|
|
49996
|
+
path: "lastFetchedAt",
|
|
49997
|
+
when: "add"
|
|
49998
|
+
}]
|
|
49999
|
+
},
|
|
50000
|
+
{
|
|
50001
|
+
id: "feelsLike",
|
|
50002
|
+
cardinality: "scalar",
|
|
50003
|
+
deviceTypes: [require_composed_stable_id.DeviceType.WeatherStation],
|
|
50004
|
+
apply: "add",
|
|
50005
|
+
vocabularyCap: "weather-station",
|
|
50006
|
+
vocabularyStateField: "feelsLike",
|
|
50007
|
+
sources: [{
|
|
50008
|
+
kind: "numeric",
|
|
50009
|
+
requiredUnit: "°C",
|
|
50010
|
+
transformKinds: ["identity"],
|
|
50011
|
+
transforms: [{ kind: "identity" }]
|
|
50012
|
+
}],
|
|
50013
|
+
sourceReport: { status: "assignment-status" },
|
|
50014
|
+
advancedExpression: false,
|
|
50015
|
+
path: "feelsLike",
|
|
50016
|
+
valueKind: "number",
|
|
50017
|
+
nullable: true,
|
|
50018
|
+
companions: [{
|
|
50019
|
+
kind: "clock",
|
|
50020
|
+
path: "lastFetchedAt",
|
|
50021
|
+
when: "add"
|
|
50022
|
+
}]
|
|
50023
|
+
},
|
|
50024
|
+
{
|
|
50025
|
+
id: "vpd",
|
|
50026
|
+
cardinality: "scalar",
|
|
50027
|
+
deviceTypes: [require_composed_stable_id.DeviceType.WeatherStation],
|
|
50028
|
+
apply: "add",
|
|
50029
|
+
vocabularyCap: "weather-station",
|
|
50030
|
+
vocabularyStateField: "vpd",
|
|
50031
|
+
sources: [{
|
|
50032
|
+
kind: "numeric",
|
|
50033
|
+
requiredUnit: "kPa",
|
|
50034
|
+
transformKinds: ["identity"],
|
|
50035
|
+
transforms: [{ kind: "identity" }]
|
|
50036
|
+
}],
|
|
50037
|
+
sourceReport: { status: "assignment-status" },
|
|
50038
|
+
advancedExpression: false,
|
|
50039
|
+
path: "vpd",
|
|
50040
|
+
valueKind: "number",
|
|
50041
|
+
nullable: true,
|
|
50042
|
+
companions: [{
|
|
50043
|
+
kind: "clock",
|
|
50044
|
+
path: "lastFetchedAt",
|
|
50045
|
+
when: "add"
|
|
50046
|
+
}]
|
|
50047
|
+
},
|
|
50048
|
+
{
|
|
50049
|
+
id: "windGustMax",
|
|
50050
|
+
cardinality: "scalar",
|
|
50051
|
+
deviceTypes: [require_composed_stable_id.DeviceType.WeatherStation],
|
|
50052
|
+
apply: "add",
|
|
50053
|
+
vocabularyCap: "weather-station",
|
|
50054
|
+
vocabularyStateField: "windGustMax",
|
|
50055
|
+
sources: [{
|
|
50056
|
+
kind: "numeric",
|
|
50057
|
+
requiredUnit: "m/s",
|
|
50058
|
+
transformKinds: ["identity"],
|
|
50059
|
+
transforms: [{ kind: "identity" }]
|
|
50060
|
+
}],
|
|
50061
|
+
sourceReport: { status: "assignment-status" },
|
|
50062
|
+
advancedExpression: false,
|
|
50063
|
+
path: "windGustMax",
|
|
50064
|
+
valueKind: "number",
|
|
50065
|
+
nullable: true,
|
|
50066
|
+
companions: [{
|
|
50067
|
+
kind: "clock",
|
|
50068
|
+
path: "lastFetchedAt",
|
|
50069
|
+
when: "add"
|
|
50070
|
+
}]
|
|
50071
|
+
},
|
|
50072
|
+
{
|
|
50073
|
+
id: "windBearingAvg",
|
|
50074
|
+
cardinality: "scalar",
|
|
50075
|
+
deviceTypes: [require_composed_stable_id.DeviceType.WeatherStation],
|
|
50076
|
+
apply: "add",
|
|
50077
|
+
vocabularyCap: "weather-station",
|
|
50078
|
+
vocabularyStateField: "windBearingAvg",
|
|
50079
|
+
sources: [{
|
|
50080
|
+
kind: "numeric",
|
|
50081
|
+
requiredUnit: "°",
|
|
50082
|
+
transformKinds: ["identity"],
|
|
50083
|
+
transforms: [{ kind: "identity" }]
|
|
50084
|
+
}],
|
|
50085
|
+
sourceReport: { status: "assignment-status" },
|
|
50086
|
+
advancedExpression: false,
|
|
50087
|
+
path: "windBearingAvg",
|
|
50088
|
+
valueKind: "number",
|
|
50089
|
+
nullable: true,
|
|
50090
|
+
companions: [{
|
|
50091
|
+
kind: "clock",
|
|
50092
|
+
path: "lastFetchedAt",
|
|
50093
|
+
when: "add"
|
|
50094
|
+
}]
|
|
50095
|
+
},
|
|
50096
|
+
{
|
|
50097
|
+
id: "rain24h",
|
|
50098
|
+
cardinality: "scalar",
|
|
50099
|
+
deviceTypes: [require_composed_stable_id.DeviceType.WeatherStation],
|
|
50100
|
+
apply: "add",
|
|
50101
|
+
vocabularyCap: "weather-station",
|
|
50102
|
+
vocabularyStateField: "rain24h",
|
|
50103
|
+
sources: [{
|
|
50104
|
+
kind: "numeric",
|
|
50105
|
+
requiredUnit: "mm",
|
|
50106
|
+
transformKinds: ["identity"],
|
|
50107
|
+
transforms: [{ kind: "identity" }]
|
|
50108
|
+
}],
|
|
50109
|
+
sourceReport: { status: "assignment-status" },
|
|
50110
|
+
advancedExpression: false,
|
|
50111
|
+
path: "rain24h",
|
|
50112
|
+
valueKind: "number",
|
|
50113
|
+
nullable: true,
|
|
50114
|
+
companions: [{
|
|
50115
|
+
kind: "clock",
|
|
50116
|
+
path: "lastFetchedAt",
|
|
50117
|
+
when: "add"
|
|
50118
|
+
}]
|
|
50119
|
+
},
|
|
50120
|
+
{
|
|
50121
|
+
id: "rainWeekly",
|
|
50122
|
+
cardinality: "scalar",
|
|
50123
|
+
deviceTypes: [require_composed_stable_id.DeviceType.WeatherStation],
|
|
50124
|
+
apply: "add",
|
|
50125
|
+
vocabularyCap: "weather-station",
|
|
50126
|
+
vocabularyStateField: "rainWeekly",
|
|
50127
|
+
sources: [{
|
|
50128
|
+
kind: "numeric",
|
|
50129
|
+
requiredUnit: "mm",
|
|
50130
|
+
transformKinds: ["identity"],
|
|
50131
|
+
transforms: [{ kind: "identity" }]
|
|
50132
|
+
}],
|
|
50133
|
+
sourceReport: { status: "assignment-status" },
|
|
50134
|
+
advancedExpression: false,
|
|
50135
|
+
path: "rainWeekly",
|
|
50136
|
+
valueKind: "number",
|
|
50137
|
+
nullable: true,
|
|
50138
|
+
companions: [{
|
|
50139
|
+
kind: "clock",
|
|
50140
|
+
path: "lastFetchedAt",
|
|
50141
|
+
when: "add"
|
|
50142
|
+
}]
|
|
50143
|
+
},
|
|
50144
|
+
{
|
|
50145
|
+
id: "rainMonthly",
|
|
50146
|
+
cardinality: "scalar",
|
|
50147
|
+
deviceTypes: [require_composed_stable_id.DeviceType.WeatherStation],
|
|
50148
|
+
apply: "add",
|
|
50149
|
+
vocabularyCap: "weather-station",
|
|
50150
|
+
vocabularyStateField: "rainMonthly",
|
|
50151
|
+
sources: [{
|
|
50152
|
+
kind: "numeric",
|
|
50153
|
+
requiredUnit: "mm",
|
|
50154
|
+
transformKinds: ["identity"],
|
|
50155
|
+
transforms: [{ kind: "identity" }]
|
|
50156
|
+
}],
|
|
50157
|
+
sourceReport: { status: "assignment-status" },
|
|
50158
|
+
advancedExpression: false,
|
|
50159
|
+
path: "rainMonthly",
|
|
50160
|
+
valueKind: "number",
|
|
50161
|
+
nullable: true,
|
|
50162
|
+
companions: [{
|
|
50163
|
+
kind: "clock",
|
|
50164
|
+
path: "lastFetchedAt",
|
|
50165
|
+
when: "add"
|
|
50166
|
+
}]
|
|
50167
|
+
},
|
|
50168
|
+
{
|
|
50169
|
+
id: "rainYearly",
|
|
50170
|
+
cardinality: "scalar",
|
|
50171
|
+
deviceTypes: [require_composed_stable_id.DeviceType.WeatherStation],
|
|
50172
|
+
apply: "add",
|
|
50173
|
+
vocabularyCap: "weather-station",
|
|
50174
|
+
vocabularyStateField: "rainYearly",
|
|
50175
|
+
sources: [{
|
|
50176
|
+
kind: "numeric",
|
|
50177
|
+
requiredUnit: "mm",
|
|
50178
|
+
transformKinds: ["identity"],
|
|
50179
|
+
transforms: [{ kind: "identity" }]
|
|
50180
|
+
}],
|
|
50181
|
+
sourceReport: { status: "assignment-status" },
|
|
50182
|
+
advancedExpression: false,
|
|
50183
|
+
path: "rainYearly",
|
|
50184
|
+
valueKind: "number",
|
|
50185
|
+
nullable: true,
|
|
50186
|
+
companions: [{
|
|
50187
|
+
kind: "clock",
|
|
50188
|
+
path: "lastFetchedAt",
|
|
50189
|
+
when: "add"
|
|
50190
|
+
}]
|
|
50191
|
+
}
|
|
50192
|
+
],
|
|
50193
|
+
overridable: [
|
|
50194
|
+
{
|
|
50195
|
+
path: "temperature",
|
|
50196
|
+
by: "temperature"
|
|
50197
|
+
},
|
|
50198
|
+
{
|
|
50199
|
+
path: "humidity",
|
|
50200
|
+
by: "humidity"
|
|
50201
|
+
},
|
|
50202
|
+
{
|
|
50203
|
+
path: "pressure",
|
|
50204
|
+
by: "pressure"
|
|
50205
|
+
},
|
|
50206
|
+
{
|
|
50207
|
+
path: "windSpeed",
|
|
50208
|
+
by: "windSpeed"
|
|
50209
|
+
},
|
|
50210
|
+
{
|
|
50211
|
+
path: "windGust",
|
|
50212
|
+
by: "windGust"
|
|
50213
|
+
},
|
|
50214
|
+
{
|
|
50215
|
+
path: "windBearing",
|
|
50216
|
+
by: "windBearing"
|
|
50217
|
+
},
|
|
50218
|
+
{
|
|
50219
|
+
path: "rainRate",
|
|
50220
|
+
by: "rainRate"
|
|
50221
|
+
},
|
|
50222
|
+
{
|
|
50223
|
+
path: "rainDaily",
|
|
50224
|
+
by: "rainDaily"
|
|
50225
|
+
},
|
|
50226
|
+
{
|
|
50227
|
+
path: "rainEvent",
|
|
50228
|
+
by: "rainEvent"
|
|
50229
|
+
},
|
|
50230
|
+
{
|
|
50231
|
+
path: "uv",
|
|
50232
|
+
by: "uv"
|
|
50233
|
+
},
|
|
50234
|
+
{
|
|
50235
|
+
path: "solarRadiation",
|
|
50236
|
+
by: "solarRadiation"
|
|
50237
|
+
},
|
|
50238
|
+
{
|
|
50239
|
+
path: "dewPoint",
|
|
50240
|
+
by: "dewPoint"
|
|
50241
|
+
},
|
|
50242
|
+
{
|
|
50243
|
+
path: "feelsLike",
|
|
50244
|
+
by: "feelsLike"
|
|
50245
|
+
},
|
|
50246
|
+
{
|
|
50247
|
+
path: "vpd",
|
|
50248
|
+
by: "vpd"
|
|
50249
|
+
},
|
|
50250
|
+
{
|
|
50251
|
+
path: "windGustMax",
|
|
50252
|
+
by: "windGustMax"
|
|
50253
|
+
},
|
|
50254
|
+
{
|
|
50255
|
+
path: "windBearingAvg",
|
|
50256
|
+
by: "windBearingAvg"
|
|
50257
|
+
},
|
|
50258
|
+
{
|
|
50259
|
+
path: "rain24h",
|
|
50260
|
+
by: "rain24h"
|
|
50261
|
+
},
|
|
50262
|
+
{
|
|
50263
|
+
path: "rainWeekly",
|
|
50264
|
+
by: "rainWeekly"
|
|
50265
|
+
},
|
|
50266
|
+
{
|
|
50267
|
+
path: "rainMonthly",
|
|
50268
|
+
by: "rainMonthly"
|
|
50269
|
+
},
|
|
50270
|
+
{
|
|
50271
|
+
path: "rainYearly",
|
|
50272
|
+
by: "rainYearly"
|
|
50273
|
+
}
|
|
50274
|
+
]
|
|
49716
50275
|
}
|
|
49717
50276
|
};
|
|
49718
50277
|
/**
|
|
@@ -50773,7 +51332,7 @@ function groupTemplate(id) {
|
|
|
50773
51332
|
//#region src/generated/history-catalog.ts
|
|
50774
51333
|
/**
|
|
50775
51334
|
* Cap history catalog, projected from every `*.cap.ts` `history` block.
|
|
50776
|
-
*
|
|
51335
|
+
* 46 caps with series (124 series), 38 caps answered `'none'`.
|
|
50777
51336
|
* Field keys are `runtimeState` paths (`a.b` into fixed objects only).
|
|
50778
51337
|
*/
|
|
50779
51338
|
var HISTORY_CATALOG = {
|
|
@@ -51275,6 +51834,108 @@ var HISTORY_CATALOG = {
|
|
|
51275
51834
|
unit: "m/s",
|
|
51276
51835
|
deadband: .5
|
|
51277
51836
|
}
|
|
51837
|
+
},
|
|
51838
|
+
"weather-station": {
|
|
51839
|
+
"temperature": {
|
|
51840
|
+
kind: "gauge",
|
|
51841
|
+
unit: "°C",
|
|
51842
|
+
deadband: .1
|
|
51843
|
+
},
|
|
51844
|
+
"humidity": {
|
|
51845
|
+
kind: "gauge",
|
|
51846
|
+
unit: "%",
|
|
51847
|
+
deadband: 1
|
|
51848
|
+
},
|
|
51849
|
+
"pressure": {
|
|
51850
|
+
kind: "gauge",
|
|
51851
|
+
unit: "hPa",
|
|
51852
|
+
deadband: .2
|
|
51853
|
+
},
|
|
51854
|
+
"windSpeed": {
|
|
51855
|
+
kind: "gauge",
|
|
51856
|
+
unit: "m/s",
|
|
51857
|
+
deadband: .2
|
|
51858
|
+
},
|
|
51859
|
+
"windGust": {
|
|
51860
|
+
kind: "gauge",
|
|
51861
|
+
unit: "m/s",
|
|
51862
|
+
deadband: .2
|
|
51863
|
+
},
|
|
51864
|
+
"windBearing": {
|
|
51865
|
+
kind: "gauge",
|
|
51866
|
+
unit: "°",
|
|
51867
|
+
deadband: 5
|
|
51868
|
+
},
|
|
51869
|
+
"rainRate": {
|
|
51870
|
+
kind: "gauge",
|
|
51871
|
+
unit: "mm/h",
|
|
51872
|
+
deadband: .1
|
|
51873
|
+
},
|
|
51874
|
+
"rainDaily": {
|
|
51875
|
+
kind: "gauge",
|
|
51876
|
+
unit: "mm",
|
|
51877
|
+
deadband: .1
|
|
51878
|
+
},
|
|
51879
|
+
"rainEvent": {
|
|
51880
|
+
kind: "gauge",
|
|
51881
|
+
unit: "mm",
|
|
51882
|
+
deadband: .1
|
|
51883
|
+
},
|
|
51884
|
+
"uv": {
|
|
51885
|
+
kind: "gauge",
|
|
51886
|
+
unit: "index",
|
|
51887
|
+
deadband: .1
|
|
51888
|
+
},
|
|
51889
|
+
"solarRadiation": {
|
|
51890
|
+
kind: "gauge",
|
|
51891
|
+
unit: "W/m²",
|
|
51892
|
+
deadband: 5
|
|
51893
|
+
},
|
|
51894
|
+
"dewPoint": {
|
|
51895
|
+
kind: "gauge",
|
|
51896
|
+
unit: "°C",
|
|
51897
|
+
deadband: .1
|
|
51898
|
+
},
|
|
51899
|
+
"feelsLike": {
|
|
51900
|
+
kind: "gauge",
|
|
51901
|
+
unit: "°C",
|
|
51902
|
+
deadband: .1
|
|
51903
|
+
},
|
|
51904
|
+
"vpd": {
|
|
51905
|
+
kind: "gauge",
|
|
51906
|
+
unit: "kPa",
|
|
51907
|
+
deadband: .05
|
|
51908
|
+
},
|
|
51909
|
+
"windGustMax": {
|
|
51910
|
+
kind: "gauge",
|
|
51911
|
+
unit: "m/s",
|
|
51912
|
+
deadband: .2
|
|
51913
|
+
},
|
|
51914
|
+
"windBearingAvg": {
|
|
51915
|
+
kind: "gauge",
|
|
51916
|
+
unit: "°",
|
|
51917
|
+
deadband: 5
|
|
51918
|
+
},
|
|
51919
|
+
"rain24h": {
|
|
51920
|
+
kind: "gauge",
|
|
51921
|
+
unit: "mm",
|
|
51922
|
+
deadband: .1
|
|
51923
|
+
},
|
|
51924
|
+
"rainWeekly": {
|
|
51925
|
+
kind: "gauge",
|
|
51926
|
+
unit: "mm",
|
|
51927
|
+
deadband: .1
|
|
51928
|
+
},
|
|
51929
|
+
"rainMonthly": {
|
|
51930
|
+
kind: "gauge",
|
|
51931
|
+
unit: "mm",
|
|
51932
|
+
deadband: .1
|
|
51933
|
+
},
|
|
51934
|
+
"rainYearly": {
|
|
51935
|
+
kind: "gauge",
|
|
51936
|
+
unit: "mm",
|
|
51937
|
+
deadband: .1
|
|
51938
|
+
}
|
|
51278
51939
|
}
|
|
51279
51940
|
};
|
|
51280
51941
|
/**
|
|
@@ -51373,7 +52034,6 @@ var HISTORY_NONE_CAPS = [
|
|
|
51373
52034
|
"stream-signals",
|
|
51374
52035
|
"timed-run",
|
|
51375
52036
|
"update",
|
|
51376
|
-
"weather-station",
|
|
51377
52037
|
"zone-analytics",
|
|
51378
52038
|
"zone-rules",
|
|
51379
52039
|
"zones"
|
|
@@ -60835,7 +61495,19 @@ var IdentitySampleInfoSchema = zod.z.object({
|
|
|
60835
61495
|
source: zod.z.enum(["detected", "photo"]),
|
|
60836
61496
|
addedAt: zod.z.number().int(),
|
|
60837
61497
|
deviceId: zod.z.number().int().optional(),
|
|
60838
|
-
base64: zod.z.string().optional()
|
|
61498
|
+
base64: zod.z.string().optional(),
|
|
61499
|
+
/**
|
|
61500
|
+
* The sample's own crop, when it has one. The bytes stay on the event-media
|
|
61501
|
+
* plane — this list does not inline them.
|
|
61502
|
+
*/
|
|
61503
|
+
mediaId: zod.z.number().int().optional(),
|
|
61504
|
+
/**
|
|
61505
|
+
* The source face's key frame (or the photo the sample was cut from), when
|
|
61506
|
+
* the sample has no crop of its own. Draw {@link faceBbox} on it.
|
|
61507
|
+
*/
|
|
61508
|
+
keyFrameMediaId: zod.z.number().int().optional(),
|
|
61509
|
+
/** The face box on {@link keyFrameMediaId}, pixel space. */
|
|
61510
|
+
faceBbox: BoundingBoxSchema.optional()
|
|
60839
61511
|
});
|
|
60840
61512
|
/**
|
|
60841
61513
|
* One enrolled sample, judged against the gallery it lives in.
|
|
@@ -61075,6 +61747,18 @@ includeCrops: zod.z.boolean().optional() }).optional(), zod.z.array(IdentitySche
|
|
|
61075
61747
|
kind: "mutation",
|
|
61076
61748
|
auth: "admin"
|
|
61077
61749
|
}),
|
|
61750
|
+
/**
|
|
61751
|
+
* Move an enrolled sample onto another person. The crop is re-owned, the
|
|
61752
|
+
* source face keeps its link and follows (`recognizedIdentityId`), and an
|
|
61753
|
+
* unknown person is refused.
|
|
61754
|
+
*/
|
|
61755
|
+
moveIdentitySample: require_sleep.method(zod.z.object({
|
|
61756
|
+
sampleId: zod.z.string().min(1),
|
|
61757
|
+
toIdentityId: zod.z.string().min(1)
|
|
61758
|
+
}), zod.z.void(), {
|
|
61759
|
+
kind: "mutation",
|
|
61760
|
+
auth: "admin"
|
|
61761
|
+
}),
|
|
61078
61762
|
listRecentFaces: require_sleep.method(zod.z.object({
|
|
61079
61763
|
/**
|
|
61080
61764
|
* Restrict to ONE camera. Absent keeps the cluster-wide gallery view.
|
|
@@ -86070,7 +86754,19 @@ var VehicleSampleInfoSchema = zod.z.object({
|
|
|
86070
86754
|
score: zod.z.number(),
|
|
86071
86755
|
addedAt: zod.z.number().int(),
|
|
86072
86756
|
deviceId: zod.z.number().int().optional(),
|
|
86073
|
-
base64: zod.z.string().optional()
|
|
86757
|
+
base64: zod.z.string().optional(),
|
|
86758
|
+
/**
|
|
86759
|
+
* The sample's own crop, when it has one. Prefer this over {@link base64}:
|
|
86760
|
+
* the bytes are on the event-media plane (`/m/<mediaId>`), never inlined.
|
|
86761
|
+
*/
|
|
86762
|
+
mediaId: zod.z.number().int().optional(),
|
|
86763
|
+
/**
|
|
86764
|
+
* The source plate's key frame, when the sample has no crop of its own.
|
|
86765
|
+
* Draw {@link plateBbox} on it. Absent when {@link mediaId} is set.
|
|
86766
|
+
*/
|
|
86767
|
+
keyFrameMediaId: zod.z.number().int().optional(),
|
|
86768
|
+
/** The plate box on {@link keyFrameMediaId}, pixel space. */
|
|
86769
|
+
plateBbox: BoundingBoxSchema.optional()
|
|
86074
86770
|
});
|
|
86075
86771
|
var PlateInfoSchema = zod.z.object({
|
|
86076
86772
|
plateId: zod.z.string(),
|
|
@@ -86100,7 +86796,17 @@ var PlateInfoSchema = zod.z.object({
|
|
|
86100
86796
|
* and `searchPlates` inline the crop only when their `includeCrops` input is
|
|
86101
86797
|
* left at its `true` default.
|
|
86102
86798
|
*/
|
|
86103
|
-
cropUrl: zod.z.string().optional()
|
|
86799
|
+
cropUrl: zod.z.string().optional(),
|
|
86800
|
+
/**
|
|
86801
|
+
* Why {@link cropUrl} is absent. One of `no-frame-handle`,
|
|
86802
|
+
* `live-capture-missed`, `live-capture-threw`, `no-key-frame`,
|
|
86803
|
+
* `derive-not-wired`, `subject-moved`, `temporal-skew`, `key-frame-absent`,
|
|
86804
|
+
* `bad-frame-size`, `decode-empty`, `derive-threw`, `derive-returned-null`,
|
|
86805
|
+
* `put-failed`. A crossing vehicle whose live capture missed is
|
|
86806
|
+
* `subject-moved`: the key frame is a different instant, and the crop is
|
|
86807
|
+
* legitimately absent.
|
|
86808
|
+
*/
|
|
86809
|
+
cropMissReason: zod.z.string().optional()
|
|
86104
86810
|
});
|
|
86105
86811
|
/**
|
|
86106
86812
|
* One gallery media row: what the crop is, how big it is, and WHERE its bytes
|
|
@@ -86230,6 +86936,18 @@ includeCrops: zod.z.boolean().optional() }).optional(), zod.z.array(VehicleSchem
|
|
|
86230
86936
|
kind: "mutation",
|
|
86231
86937
|
auth: "admin"
|
|
86232
86938
|
}),
|
|
86939
|
+
/**
|
|
86940
|
+
* Move an enrolled sample onto another vehicle. The crop is re-owned, the
|
|
86941
|
+
* source plate keeps its link and follows (`recognizedVehicleId`), and an
|
|
86942
|
+
* unknown vehicle is refused.
|
|
86943
|
+
*/
|
|
86944
|
+
moveVehicleSample: require_sleep.method(zod.z.object({
|
|
86945
|
+
sampleId: zod.z.string().min(1),
|
|
86946
|
+
toVehicleId: zod.z.string().min(1)
|
|
86947
|
+
}), zod.z.void(), {
|
|
86948
|
+
kind: "mutation",
|
|
86949
|
+
auth: "admin"
|
|
86950
|
+
}),
|
|
86233
86951
|
assignPlate: require_sleep.method(zod.z.object({
|
|
86234
86952
|
plateId: zod.z.string(),
|
|
86235
86953
|
vehicleId: zod.z.string()
|
|
@@ -100247,18 +100965,30 @@ var weatherCapability = {
|
|
|
100247
100965
|
}
|
|
100248
100966
|
};
|
|
100249
100967
|
var WeatherStationStatusSchema = zod.z.object({
|
|
100250
|
-
temperature: zod.z.number().nullable().meta(require_sleep.readingMeta("temperature", { precision: 1 })),
|
|
100251
|
-
humidity: zod.z.number().min(0).max(100).nullable().meta(require_sleep.readingMeta("humidity")),
|
|
100252
|
-
pressure: zod.z.number().nullable().meta(require_sleep.readingMeta("pressure")),
|
|
100253
|
-
windSpeed: zod.z.number().nullable().meta(require_sleep.readingMeta("speed")),
|
|
100254
|
-
windGust: zod.z.number().nullable().meta(require_sleep.readingMeta("speed")),
|
|
100255
|
-
windBearing: zod.z.number().nullable().meta(require_sleep.readingMeta("angle")),
|
|
100256
|
-
rainRate: zod.z.number().nullable().meta(require_sleep.readingMeta("precipitation-rate", { precision: 1 })),
|
|
100257
|
-
rainDaily: zod.z.number().nullable().meta(require_sleep.readingMeta("precipitation", { precision: 1 })),
|
|
100258
|
-
rainEvent: zod.z.number().nullable().meta(require_sleep.readingMeta("precipitation", { precision: 1 })),
|
|
100259
|
-
uv: zod.z.number().nullable().meta(require_sleep.readingMeta("index", { precision: 1 })),
|
|
100260
|
-
solarRadiation: zod.z.number().nullable().meta(require_sleep.readingMeta("irradiance")),
|
|
100261
|
-
dewPoint: zod.z.number().nullable().meta(require_sleep.readingMeta("temperature", { precision: 1 }))
|
|
100968
|
+
temperature: zod.z.number().nullable().default(null).meta(require_sleep.readingMeta("temperature", { precision: 1 })),
|
|
100969
|
+
humidity: zod.z.number().min(0).max(100).nullable().default(null).meta(require_sleep.readingMeta("humidity")),
|
|
100970
|
+
pressure: zod.z.number().nullable().default(null).meta(require_sleep.readingMeta("pressure")),
|
|
100971
|
+
windSpeed: zod.z.number().nullable().default(null).meta(require_sleep.readingMeta("speed")),
|
|
100972
|
+
windGust: zod.z.number().nullable().default(null).meta(require_sleep.readingMeta("speed")),
|
|
100973
|
+
windBearing: zod.z.number().nullable().default(null).meta(require_sleep.readingMeta("angle")),
|
|
100974
|
+
rainRate: zod.z.number().nullable().default(null).meta(require_sleep.readingMeta("precipitation-rate", { precision: 1 })),
|
|
100975
|
+
rainDaily: zod.z.number().nullable().default(null).meta(require_sleep.readingMeta("precipitation", { precision: 1 })),
|
|
100976
|
+
rainEvent: zod.z.number().nullable().default(null).meta(require_sleep.readingMeta("precipitation", { precision: 1 })),
|
|
100977
|
+
uv: zod.z.number().nullable().default(null).meta(require_sleep.readingMeta("index", { precision: 1 })),
|
|
100978
|
+
solarRadiation: zod.z.number().nullable().default(null).meta(require_sleep.readingMeta("irradiance")),
|
|
100979
|
+
dewPoint: zod.z.number().nullable().default(null).meta(require_sleep.readingMeta("temperature", { precision: 1 })),
|
|
100980
|
+
/** Apparent ("feels like") temperature. */
|
|
100981
|
+
feelsLike: zod.z.number().nullable().default(null).meta(require_sleep.readingMeta("temperature", { precision: 1 })),
|
|
100982
|
+
/** Vapour-pressure deficit, stored in kPa (the unit stations and growers read it in). */
|
|
100983
|
+
vpd: zod.z.number().nullable().default(null).meta(require_sleep.readingMeta("none", { precision: 2 })),
|
|
100984
|
+
/** Highest wind gust since local midnight. */
|
|
100985
|
+
windGustMax: zod.z.number().nullable().default(null).meta(require_sleep.readingMeta("speed")),
|
|
100986
|
+
/** Wind bearing averaged over the station's own window. */
|
|
100987
|
+
windBearingAvg: zod.z.number().nullable().default(null).meta(require_sleep.readingMeta("angle")),
|
|
100988
|
+
rain24h: zod.z.number().nullable().default(null).meta(require_sleep.readingMeta("precipitation", { precision: 1 })),
|
|
100989
|
+
rainWeekly: zod.z.number().nullable().default(null).meta(require_sleep.readingMeta("precipitation", { precision: 1 })),
|
|
100990
|
+
rainMonthly: zod.z.number().nullable().default(null).meta(require_sleep.readingMeta("precipitation", { precision: 1 })),
|
|
100991
|
+
rainYearly: zod.z.number().nullable().default(null).meta(require_sleep.readingMeta("precipitation", { precision: 1 }))
|
|
100262
100992
|
}).extend({
|
|
100263
100993
|
/** Ms epoch of the poll that produced this slice. 0 before the first one. */
|
|
100264
100994
|
lastFetchedAt: zod.z.number() });
|
|
@@ -100270,6 +101000,75 @@ var numeric = (field, quantity, label, unit, icon) => ({
|
|
|
100270
101000
|
unit,
|
|
100271
101001
|
icon
|
|
100272
101002
|
});
|
|
101003
|
+
/** Every reading of the station with the unit a Customize source must carry ('' = dimensionless). */
|
|
101004
|
+
var STATION_FIELD_UNITS = {
|
|
101005
|
+
temperature: "°C",
|
|
101006
|
+
humidity: "%",
|
|
101007
|
+
pressure: "hPa",
|
|
101008
|
+
windSpeed: "m/s",
|
|
101009
|
+
windGust: "m/s",
|
|
101010
|
+
windBearing: "°",
|
|
101011
|
+
rainRate: "mm/h",
|
|
101012
|
+
rainDaily: "mm",
|
|
101013
|
+
rainEvent: "mm",
|
|
101014
|
+
uv: "",
|
|
101015
|
+
solarRadiation: "W/m²",
|
|
101016
|
+
dewPoint: "°C",
|
|
101017
|
+
feelsLike: "°C",
|
|
101018
|
+
vpd: "kPa",
|
|
101019
|
+
windGustMax: "m/s",
|
|
101020
|
+
windBearingAvg: "°",
|
|
101021
|
+
rain24h: "mm",
|
|
101022
|
+
rainWeekly: "mm",
|
|
101023
|
+
rainMonthly: "mm",
|
|
101024
|
+
rainYearly: "mm"
|
|
101025
|
+
};
|
|
101026
|
+
function isStationField(key) {
|
|
101027
|
+
return Object.prototype.hasOwnProperty.call(STATION_FIELD_UNITS, key);
|
|
101028
|
+
}
|
|
101029
|
+
var STATION_FIELDS = Object.keys(STATION_FIELD_UNITS).filter(isStationField);
|
|
101030
|
+
/**
|
|
101031
|
+
* One scalar target per reading, `apply: 'add'` and listed in `overridable` by its own id
|
|
101032
|
+
* (the running-state / climate-control mechanism, D984 / D990): a station that reports a
|
|
101033
|
+
* reading natively keeps it until the operator assigns another device to that ONE field,
|
|
101034
|
+
* and a device with no `weather-station` slice becomes one from the sources picked. On an
|
|
101035
|
+
* add, every other reading is absent from the claim and the schema defaults it to null
|
|
101036
|
+
* (a missing sensor is never 0, D393) — the fan-control precedent, never a cross-field companion
|
|
101037
|
+
* (the scalar merge treats a companion as owned by its target).
|
|
101038
|
+
*/
|
|
101039
|
+
function stationTarget(field) {
|
|
101040
|
+
const unit = STATION_FIELD_UNITS[field];
|
|
101041
|
+
return {
|
|
101042
|
+
id: field,
|
|
101043
|
+
cardinality: "scalar",
|
|
101044
|
+
vocabulary: {
|
|
101045
|
+
cap: "weather-station",
|
|
101046
|
+
stateField: field
|
|
101047
|
+
},
|
|
101048
|
+
deviceTypes: [require_composed_stable_id.DeviceType.WeatherStation],
|
|
101049
|
+
apply: "add",
|
|
101050
|
+
path: field,
|
|
101051
|
+
sources: [{
|
|
101052
|
+
kind: "numeric",
|
|
101053
|
+
...unit.length > 0 ? { requiredUnit: unit } : {},
|
|
101054
|
+
transforms: [{ kind: "identity" }]
|
|
101055
|
+
}],
|
|
101056
|
+
companions: [{
|
|
101057
|
+
kind: "clock",
|
|
101058
|
+
path: "lastFetchedAt",
|
|
101059
|
+
when: "add"
|
|
101060
|
+
}],
|
|
101061
|
+
sourceReport: { status: "assignment-status" }
|
|
101062
|
+
};
|
|
101063
|
+
}
|
|
101064
|
+
var weatherStationCustomize = {
|
|
101065
|
+
version: 1,
|
|
101066
|
+
overridable: STATION_FIELDS.map((field) => ({
|
|
101067
|
+
path: field,
|
|
101068
|
+
by: field
|
|
101069
|
+
})),
|
|
101070
|
+
targets: STATION_FIELDS.map(stationTarget)
|
|
101071
|
+
};
|
|
100273
101072
|
var weatherStationCapability = {
|
|
100274
101073
|
name: "weather-station",
|
|
100275
101074
|
scope: "device",
|
|
@@ -100283,10 +101082,115 @@ var weatherStationCapability = {
|
|
|
100283
101082
|
},
|
|
100284
101083
|
runtimeState: WeatherStationStatusSchema,
|
|
100285
101084
|
/**
|
|
100286
|
-
*
|
|
100287
|
-
*
|
|
101085
|
+
* History (D850): the station records its own readings. Rain totals that
|
|
101086
|
+
* reset (event, day, week, month, year) and the sliding 24 h total are
|
|
101087
|
+
* levels, so `gauge`; `counter` is for a monotonic meter only.
|
|
100288
101088
|
*/
|
|
100289
|
-
history:
|
|
101089
|
+
history: { fields: {
|
|
101090
|
+
temperature: {
|
|
101091
|
+
kind: "gauge",
|
|
101092
|
+
unit: "°C",
|
|
101093
|
+
deadband: .1
|
|
101094
|
+
},
|
|
101095
|
+
humidity: {
|
|
101096
|
+
kind: "gauge",
|
|
101097
|
+
unit: "%",
|
|
101098
|
+
deadband: 1
|
|
101099
|
+
},
|
|
101100
|
+
pressure: {
|
|
101101
|
+
kind: "gauge",
|
|
101102
|
+
unit: "hPa",
|
|
101103
|
+
deadband: .2
|
|
101104
|
+
},
|
|
101105
|
+
windSpeed: {
|
|
101106
|
+
kind: "gauge",
|
|
101107
|
+
unit: "m/s",
|
|
101108
|
+
deadband: .2
|
|
101109
|
+
},
|
|
101110
|
+
windGust: {
|
|
101111
|
+
kind: "gauge",
|
|
101112
|
+
unit: "m/s",
|
|
101113
|
+
deadband: .2
|
|
101114
|
+
},
|
|
101115
|
+
windBearing: {
|
|
101116
|
+
kind: "gauge",
|
|
101117
|
+
unit: "°",
|
|
101118
|
+
deadband: 5
|
|
101119
|
+
},
|
|
101120
|
+
rainRate: {
|
|
101121
|
+
kind: "gauge",
|
|
101122
|
+
unit: "mm/h",
|
|
101123
|
+
deadband: .1
|
|
101124
|
+
},
|
|
101125
|
+
rainDaily: {
|
|
101126
|
+
kind: "gauge",
|
|
101127
|
+
unit: "mm",
|
|
101128
|
+
deadband: .1
|
|
101129
|
+
},
|
|
101130
|
+
rainEvent: {
|
|
101131
|
+
kind: "gauge",
|
|
101132
|
+
unit: "mm",
|
|
101133
|
+
deadband: .1
|
|
101134
|
+
},
|
|
101135
|
+
uv: {
|
|
101136
|
+
kind: "gauge",
|
|
101137
|
+
unit: "index",
|
|
101138
|
+
deadband: .1
|
|
101139
|
+
},
|
|
101140
|
+
solarRadiation: {
|
|
101141
|
+
kind: "gauge",
|
|
101142
|
+
unit: "W/m²",
|
|
101143
|
+
deadband: 5
|
|
101144
|
+
},
|
|
101145
|
+
dewPoint: {
|
|
101146
|
+
kind: "gauge",
|
|
101147
|
+
unit: "°C",
|
|
101148
|
+
deadband: .1
|
|
101149
|
+
},
|
|
101150
|
+
feelsLike: {
|
|
101151
|
+
kind: "gauge",
|
|
101152
|
+
unit: "°C",
|
|
101153
|
+
deadband: .1
|
|
101154
|
+
},
|
|
101155
|
+
vpd: {
|
|
101156
|
+
kind: "gauge",
|
|
101157
|
+
unit: "kPa",
|
|
101158
|
+
deadband: .05
|
|
101159
|
+
},
|
|
101160
|
+
windGustMax: {
|
|
101161
|
+
kind: "gauge",
|
|
101162
|
+
unit: "m/s",
|
|
101163
|
+
deadband: .2
|
|
101164
|
+
},
|
|
101165
|
+
windBearingAvg: {
|
|
101166
|
+
kind: "gauge",
|
|
101167
|
+
unit: "°",
|
|
101168
|
+
deadband: 5
|
|
101169
|
+
},
|
|
101170
|
+
rain24h: {
|
|
101171
|
+
kind: "gauge",
|
|
101172
|
+
unit: "mm",
|
|
101173
|
+
deadband: .1
|
|
101174
|
+
},
|
|
101175
|
+
rainWeekly: {
|
|
101176
|
+
kind: "gauge",
|
|
101177
|
+
unit: "mm",
|
|
101178
|
+
deadband: .1
|
|
101179
|
+
},
|
|
101180
|
+
rainMonthly: {
|
|
101181
|
+
kind: "gauge",
|
|
101182
|
+
unit: "mm",
|
|
101183
|
+
deadband: .1
|
|
101184
|
+
},
|
|
101185
|
+
rainYearly: {
|
|
101186
|
+
kind: "gauge",
|
|
101187
|
+
unit: "mm",
|
|
101188
|
+
deadband: .1
|
|
101189
|
+
}
|
|
101190
|
+
} },
|
|
101191
|
+
customize: weatherStationCustomize,
|
|
101192
|
+
/** The poll clock is written but is no reason to commit a row. */
|
|
101193
|
+
volatileStateFields: ["lastFetchedAt"],
|
|
100290
101194
|
/**
|
|
100291
101195
|
* Runtime-state durability: **session** — a station reading is stale the
|
|
100292
101196
|
* moment the hub is down; the provider re-reads on the next poll.
|
|
@@ -100307,7 +101211,15 @@ var weatherStationCapability = {
|
|
|
100307
101211
|
numeric("rainEvent", require_sleep.t("the rain this event", "la pioggia di questo evento"), require_sleep.t("Rain event", "Evento di pioggia"), "mm", "droplets"),
|
|
100308
101212
|
numeric("uv", require_sleep.t("the UV index", "l’indice UV"), require_sleep.t("UV", "UV"), "", "cloud-sun"),
|
|
100309
101213
|
numeric("solarRadiation", require_sleep.t("the solar radiation", "la radiazione solare"), require_sleep.t("Solar", "Sole"), "W/m²", "cloud-sun"),
|
|
100310
|
-
numeric("dewPoint", require_sleep.t("the dew point", "il punto di rugiada"), require_sleep.t("Dew point", "Punto di rugiada"), "°C", "thermometer")
|
|
101214
|
+
numeric("dewPoint", require_sleep.t("the dew point", "il punto di rugiada"), require_sleep.t("Dew point", "Punto di rugiada"), "°C", "thermometer"),
|
|
101215
|
+
numeric("feelsLike", require_sleep.t("the feels-like temperature", "la temperatura percepita"), require_sleep.t("Feels like", "Percepita"), "°C", "thermometer"),
|
|
101216
|
+
numeric("vpd", require_sleep.t("the vapour-pressure deficit", "il deficit di pressione di vapore"), require_sleep.t("VPD", "VPD"), "kPa", "gauge"),
|
|
101217
|
+
numeric("windGustMax", require_sleep.t("the highest gust today", "la raffica massima di oggi"), require_sleep.t("Max gust", "Raffica max"), "m/s", "wind"),
|
|
101218
|
+
numeric("windBearingAvg", require_sleep.t("the average wind bearing", "la direzione media del vento"), require_sleep.t("Avg bearing", "Direzione media"), "°", "wind"),
|
|
101219
|
+
numeric("rain24h", require_sleep.t("the rain in the last 24 hours", "la pioggia delle ultime 24 ore"), require_sleep.t("Rain 24 h", "Pioggia 24 h"), "mm", "droplets"),
|
|
101220
|
+
numeric("rainWeekly", require_sleep.t("the rain this week", "la pioggia di questa settimana"), require_sleep.t("Rain week", "Pioggia settimana"), "mm", "droplets"),
|
|
101221
|
+
numeric("rainMonthly", require_sleep.t("the rain this month", "la pioggia di questo mese"), require_sleep.t("Rain month", "Pioggia mese"), "mm", "droplets"),
|
|
101222
|
+
numeric("rainYearly", require_sleep.t("the rain this year", "la pioggia di quest’anno"), require_sleep.t("Rain year", "Pioggia anno"), "mm", "droplets")
|
|
100311
101223
|
]
|
|
100312
101224
|
}
|
|
100313
101225
|
};
|
|
@@ -120108,6 +121020,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
120108
121020
|
access: "view",
|
|
120109
121021
|
role: "feature:face-assignment"
|
|
120110
121022
|
},
|
|
121023
|
+
"faceGallery.moveIdentitySample": {
|
|
121024
|
+
capName: "face-gallery",
|
|
121025
|
+
capScope: "system",
|
|
121026
|
+
addonId: null,
|
|
121027
|
+
access: "create",
|
|
121028
|
+
role: "feature:face-assignment"
|
|
121029
|
+
},
|
|
120111
121030
|
"faceGallery.removeSample": {
|
|
120112
121031
|
capName: "face-gallery",
|
|
120113
121032
|
capScope: "system",
|
|
@@ -124028,6 +124947,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
124028
124947
|
access: "view",
|
|
124029
124948
|
role: "feature:plate-assignment"
|
|
124030
124949
|
},
|
|
124950
|
+
"plateGallery.moveVehicleSample": {
|
|
124951
|
+
capName: "plate-gallery",
|
|
124952
|
+
capScope: "system",
|
|
124953
|
+
addonId: null,
|
|
124954
|
+
access: "create",
|
|
124955
|
+
role: "feature:plate-assignment"
|
|
124956
|
+
},
|
|
124031
124957
|
"plateGallery.removeVehicleSample": {
|
|
124032
124958
|
capName: "plate-gallery",
|
|
124033
124959
|
capScope: "system",
|
|
@@ -133343,7 +134269,7 @@ var RUNTIME_STATE_POLICY = {
|
|
|
133343
134269
|
},
|
|
133344
134270
|
"weather-station": {
|
|
133345
134271
|
durability: "session",
|
|
133346
|
-
volatileFields: []
|
|
134272
|
+
volatileFields: ["lastFetchedAt"]
|
|
133347
134273
|
},
|
|
133348
134274
|
"zone-analytics": {
|
|
133349
134275
|
durability: "session",
|
|
@@ -134285,6 +135211,7 @@ function createSystemProxy(api) {
|
|
|
134285
135211
|
listIdentitySamples: (input) => dispatch("faceGallery", "listIdentitySamples", "query", input),
|
|
134286
135212
|
auditIdentitySamples: (input) => dispatch("faceGallery", "auditIdentitySamples", "query", input),
|
|
134287
135213
|
removeSample: (input) => dispatch("faceGallery", "removeSample", "mutation", input),
|
|
135214
|
+
moveIdentitySample: (input) => dispatch("faceGallery", "moveIdentitySample", "mutation", input),
|
|
134288
135215
|
getFaceMedia: (input) => dispatch("faceGallery", "getFaceMedia", "query", input),
|
|
134289
135216
|
assignFace: (input) => dispatch("faceGallery", "assignFace", "mutation", input),
|
|
134290
135217
|
unassignFace: (input) => dispatch("faceGallery", "unassignFace", "mutation", input),
|
|
@@ -134578,6 +135505,7 @@ function createSystemProxy(api) {
|
|
|
134578
135505
|
deleteVehicle: (input) => dispatch("plateGallery", "deleteVehicle", "mutation", input),
|
|
134579
135506
|
listVehicleSamples: (input) => dispatch("plateGallery", "listVehicleSamples", "query", input),
|
|
134580
135507
|
removeVehicleSample: (input) => dispatch("plateGallery", "removeVehicleSample", "mutation", input),
|
|
135508
|
+
moveVehicleSample: (input) => dispatch("plateGallery", "moveVehicleSample", "mutation", input),
|
|
134581
135509
|
assignPlate: (input) => dispatch("plateGallery", "assignPlate", "mutation", input),
|
|
134582
135510
|
unassignPlate: (input) => dispatch("plateGallery", "unassignPlate", "mutation", input),
|
|
134583
135511
|
assignPlates: (input) => dispatch("plateGallery", "assignPlates", "mutation", input),
|