@camstack/types 1.2.568 → 1.2.570
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 +12 -1
- package/dist/addon.js +2 -2
- package/dist/addon.mjs +2 -2
- package/dist/capabilities/error.cap.d.ts +135 -0
- package/dist/capabilities/index.d.ts +5 -1
- package/dist/capabilities/weather-station.cap.d.ts +255 -0
- package/dist/client.js +10 -0
- package/dist/client.mjs +10 -0
- package/dist/{composed-stable-id-BzXh1Swk.js → composed-stable-id-C3NfRTj8.js} +3 -0
- package/dist/{composed-stable-id-COP6zOXx.mjs → composed-stable-id-RvQIEpqg.mjs} +3 -0
- package/dist/device/base-device.d.ts +15 -0
- package/dist/device/device-error-episode.d.ts +24 -0
- package/dist/device/device-icon.d.ts +1 -0
- package/dist/device/device-type.d.ts +3 -0
- package/dist/device/hero/hero-layout.d.ts +1 -0
- package/dist/device/hero/hero-look.d.ts +6 -0
- package/dist/device/hero/hero-scene.d.ts +1 -0
- package/dist/generated/addon-api.d.ts +28 -0
- package/dist/generated/addon-cap-facts.d.ts +1 -1
- package/dist/generated/cap-status-types.d.ts +5 -1
- package/dist/generated/cap-vocabulary.d.ts +1 -1
- package/dist/generated/capability-router-map.d.ts +8 -2
- package/dist/generated/customize-catalog.d.ts +1 -1
- package/dist/generated/device-local-state.d.ts +6 -0
- package/dist/generated/device-proxy.d.ts +6 -0
- package/dist/generated/device-scoped-caps.d.ts +1 -1
- package/dist/generated/history-catalog.d.ts +1 -1
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/method-device-selectors.d.ts +1 -1
- package/dist/generated/runtime-state-durability.d.ts +1 -1
- package/dist/{implemented-methods-0xxMOekw.mjs → implemented-methods-C5FMXLGP.mjs} +1 -1
- package/dist/{implemented-methods-D4F6RWkO.js → implemented-methods-C7ScGvEz.js} +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +356 -15
- package/dist/index.mjs +347 -16
- package/dist/node.js +2 -2
- package/dist/node.mjs +2 -2
- package/dist/{sleep-DEd_klYQ.mjs → sleep-BnR9qGOv.mjs} +287 -3
- package/dist/{sleep-BTb3-IPb.js → sleep-Cr2-wtyQ.js} +287 -3
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_event_category = require("./event-category-d9kiqCqC.js");
|
|
2
|
-
const require_composed_stable_id = require("./composed-stable-id-
|
|
2
|
+
const require_composed_stable_id = require("./composed-stable-id-C3NfRTj8.js");
|
|
3
3
|
let zod = require("zod");
|
|
4
4
|
//#region src/audio/audio-chunk-format.ts
|
|
5
5
|
/**
|
|
@@ -7955,7 +7955,7 @@ var MODEL_FORMATS = [
|
|
|
7955
7955
|
//#region src/generated/cap-vocabulary.ts
|
|
7956
7956
|
/**
|
|
7957
7957
|
* THE cap vocabulary (D920), projected from the declarations of every
|
|
7958
|
-
* `*.cap.ts` (D1050):
|
|
7958
|
+
* `*.cap.ts` (D1050): 208 caps (107 device, 101 system).
|
|
7959
7959
|
* Device caps in their declared picker order, then system caps by name.
|
|
7960
7960
|
*/
|
|
7961
7961
|
var CAP_VOCABULARY = {
|
|
@@ -15840,6 +15840,183 @@ var CAP_VOCABULARY = {
|
|
|
15840
15840
|
}
|
|
15841
15841
|
]
|
|
15842
15842
|
},
|
|
15843
|
+
"weather-station": {
|
|
15844
|
+
scope: "device",
|
|
15845
|
+
noun: {
|
|
15846
|
+
en: "Weather station",
|
|
15847
|
+
it: "Stazione meteo"
|
|
15848
|
+
},
|
|
15849
|
+
state: [
|
|
15850
|
+
{
|
|
15851
|
+
kind: "numeric",
|
|
15852
|
+
field: "temperature",
|
|
15853
|
+
quantity: {
|
|
15854
|
+
en: "the outdoor temperature",
|
|
15855
|
+
it: "la temperatura esterna"
|
|
15856
|
+
},
|
|
15857
|
+
label: {
|
|
15858
|
+
en: "Temperature",
|
|
15859
|
+
it: "Temperatura"
|
|
15860
|
+
},
|
|
15861
|
+
unit: "°C",
|
|
15862
|
+
icon: "thermometer"
|
|
15863
|
+
},
|
|
15864
|
+
{
|
|
15865
|
+
kind: "numeric",
|
|
15866
|
+
field: "humidity",
|
|
15867
|
+
quantity: {
|
|
15868
|
+
en: "the outdoor humidity",
|
|
15869
|
+
it: "l’umidità esterna"
|
|
15870
|
+
},
|
|
15871
|
+
label: {
|
|
15872
|
+
en: "Humidity",
|
|
15873
|
+
it: "Umidità"
|
|
15874
|
+
},
|
|
15875
|
+
unit: "%",
|
|
15876
|
+
icon: "droplets"
|
|
15877
|
+
},
|
|
15878
|
+
{
|
|
15879
|
+
kind: "numeric",
|
|
15880
|
+
field: "pressure",
|
|
15881
|
+
quantity: {
|
|
15882
|
+
en: "the air pressure",
|
|
15883
|
+
it: "la pressione atmosferica"
|
|
15884
|
+
},
|
|
15885
|
+
label: {
|
|
15886
|
+
en: "Pressure",
|
|
15887
|
+
it: "Pressione"
|
|
15888
|
+
},
|
|
15889
|
+
unit: "hPa",
|
|
15890
|
+
icon: "gauge"
|
|
15891
|
+
},
|
|
15892
|
+
{
|
|
15893
|
+
kind: "numeric",
|
|
15894
|
+
field: "windSpeed",
|
|
15895
|
+
quantity: {
|
|
15896
|
+
en: "the wind speed",
|
|
15897
|
+
it: "la velocità del vento"
|
|
15898
|
+
},
|
|
15899
|
+
label: {
|
|
15900
|
+
en: "Wind",
|
|
15901
|
+
it: "Vento"
|
|
15902
|
+
},
|
|
15903
|
+
unit: "m/s",
|
|
15904
|
+
icon: "wind"
|
|
15905
|
+
},
|
|
15906
|
+
{
|
|
15907
|
+
kind: "numeric",
|
|
15908
|
+
field: "windGust",
|
|
15909
|
+
quantity: {
|
|
15910
|
+
en: "the wind gust",
|
|
15911
|
+
it: "la raffica di vento"
|
|
15912
|
+
},
|
|
15913
|
+
label: {
|
|
15914
|
+
en: "Gust",
|
|
15915
|
+
it: "Raffica"
|
|
15916
|
+
},
|
|
15917
|
+
unit: "m/s",
|
|
15918
|
+
icon: "wind"
|
|
15919
|
+
},
|
|
15920
|
+
{
|
|
15921
|
+
kind: "numeric",
|
|
15922
|
+
field: "windBearing",
|
|
15923
|
+
quantity: {
|
|
15924
|
+
en: "the wind bearing",
|
|
15925
|
+
it: "la direzione del vento"
|
|
15926
|
+
},
|
|
15927
|
+
label: {
|
|
15928
|
+
en: "Wind bearing",
|
|
15929
|
+
it: "Direzione del vento"
|
|
15930
|
+
},
|
|
15931
|
+
unit: "°",
|
|
15932
|
+
icon: "wind"
|
|
15933
|
+
},
|
|
15934
|
+
{
|
|
15935
|
+
kind: "numeric",
|
|
15936
|
+
field: "rainRate",
|
|
15937
|
+
quantity: {
|
|
15938
|
+
en: "the rain rate",
|
|
15939
|
+
it: "l’intensità della pioggia"
|
|
15940
|
+
},
|
|
15941
|
+
label: {
|
|
15942
|
+
en: "Rain rate",
|
|
15943
|
+
it: "Intensità pioggia"
|
|
15944
|
+
},
|
|
15945
|
+
unit: "mm/h",
|
|
15946
|
+
icon: "droplets"
|
|
15947
|
+
},
|
|
15948
|
+
{
|
|
15949
|
+
kind: "numeric",
|
|
15950
|
+
field: "rainDaily",
|
|
15951
|
+
quantity: {
|
|
15952
|
+
en: "the rain today",
|
|
15953
|
+
it: "la pioggia di oggi"
|
|
15954
|
+
},
|
|
15955
|
+
label: {
|
|
15956
|
+
en: "Rain today",
|
|
15957
|
+
it: "Pioggia oggi"
|
|
15958
|
+
},
|
|
15959
|
+
unit: "mm",
|
|
15960
|
+
icon: "droplets"
|
|
15961
|
+
},
|
|
15962
|
+
{
|
|
15963
|
+
kind: "numeric",
|
|
15964
|
+
field: "rainEvent",
|
|
15965
|
+
quantity: {
|
|
15966
|
+
en: "the rain this event",
|
|
15967
|
+
it: "la pioggia di questo evento"
|
|
15968
|
+
},
|
|
15969
|
+
label: {
|
|
15970
|
+
en: "Rain event",
|
|
15971
|
+
it: "Evento di pioggia"
|
|
15972
|
+
},
|
|
15973
|
+
unit: "mm",
|
|
15974
|
+
icon: "droplets"
|
|
15975
|
+
},
|
|
15976
|
+
{
|
|
15977
|
+
kind: "numeric",
|
|
15978
|
+
field: "uv",
|
|
15979
|
+
quantity: {
|
|
15980
|
+
en: "the UV index",
|
|
15981
|
+
it: "l’indice UV"
|
|
15982
|
+
},
|
|
15983
|
+
label: {
|
|
15984
|
+
en: "UV",
|
|
15985
|
+
it: "UV"
|
|
15986
|
+
},
|
|
15987
|
+
unit: "",
|
|
15988
|
+
icon: "cloud-sun"
|
|
15989
|
+
},
|
|
15990
|
+
{
|
|
15991
|
+
kind: "numeric",
|
|
15992
|
+
field: "solarRadiation",
|
|
15993
|
+
quantity: {
|
|
15994
|
+
en: "the solar radiation",
|
|
15995
|
+
it: "la radiazione solare"
|
|
15996
|
+
},
|
|
15997
|
+
label: {
|
|
15998
|
+
en: "Solar",
|
|
15999
|
+
it: "Sole"
|
|
16000
|
+
},
|
|
16001
|
+
unit: "W/m²",
|
|
16002
|
+
icon: "cloud-sun"
|
|
16003
|
+
},
|
|
16004
|
+
{
|
|
16005
|
+
kind: "numeric",
|
|
16006
|
+
field: "dewPoint",
|
|
16007
|
+
quantity: {
|
|
16008
|
+
en: "the dew point",
|
|
16009
|
+
it: "il punto di rugiada"
|
|
16010
|
+
},
|
|
16011
|
+
label: {
|
|
16012
|
+
en: "Dew point",
|
|
16013
|
+
it: "Punto di rugiada"
|
|
16014
|
+
},
|
|
16015
|
+
unit: "°C",
|
|
16016
|
+
icon: "thermometer"
|
|
16017
|
+
}
|
|
16018
|
+
]
|
|
16019
|
+
},
|
|
15843
16020
|
"battery": {
|
|
15844
16021
|
scope: "device",
|
|
15845
16022
|
noun: {
|
|
@@ -16064,6 +16241,30 @@ var CAP_VOCABULARY = {
|
|
|
16064
16241
|
icon: "wifi-off"
|
|
16065
16242
|
}]
|
|
16066
16243
|
},
|
|
16244
|
+
"error": {
|
|
16245
|
+
scope: "device",
|
|
16246
|
+
noun: {
|
|
16247
|
+
en: "Fault",
|
|
16248
|
+
it: "Guasto"
|
|
16249
|
+
},
|
|
16250
|
+
state: [{
|
|
16251
|
+
kind: "boolean",
|
|
16252
|
+
field: "active",
|
|
16253
|
+
label: {
|
|
16254
|
+
en: "Fault",
|
|
16255
|
+
it: "Guasto"
|
|
16256
|
+
},
|
|
16257
|
+
whenTrue: {
|
|
16258
|
+
en: "When {device} reports a fault",
|
|
16259
|
+
it: "Quando {device} segnala un guasto"
|
|
16260
|
+
},
|
|
16261
|
+
whenFalse: {
|
|
16262
|
+
en: "When the fault of {device} clears",
|
|
16263
|
+
it: "Quando il guasto di {device} si risolve"
|
|
16264
|
+
},
|
|
16265
|
+
icon: "triangle-alert"
|
|
16266
|
+
}]
|
|
16267
|
+
},
|
|
16067
16268
|
"doorbell": {
|
|
16068
16269
|
scope: "device",
|
|
16069
16270
|
noun: {
|
|
@@ -17224,6 +17425,7 @@ var CAP_NAMES = Object.freeze([
|
|
|
17224
17425
|
"embedding-encoder",
|
|
17225
17426
|
"energy-system",
|
|
17226
17427
|
"enum-sensor",
|
|
17428
|
+
"error",
|
|
17227
17429
|
"event-emitter",
|
|
17228
17430
|
"face-gallery",
|
|
17229
17431
|
"failure-contribution",
|
|
@@ -17354,6 +17556,7 @@ var CAP_NAMES = Object.freeze([
|
|
|
17354
17556
|
"viewer-ui",
|
|
17355
17557
|
"water-heater",
|
|
17356
17558
|
"weather",
|
|
17559
|
+
"weather-station",
|
|
17357
17560
|
"webrtc-session",
|
|
17358
17561
|
"zone-analytics",
|
|
17359
17562
|
"zone-rules",
|
|
@@ -18114,6 +18317,29 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
18114
18317
|
"path": "timestamp",
|
|
18115
18318
|
"valueType": "boolean"
|
|
18116
18319
|
}],
|
|
18320
|
+
"error": [
|
|
18321
|
+
{
|
|
18322
|
+
"path": "active",
|
|
18323
|
+
"valueType": "boolean"
|
|
18324
|
+
},
|
|
18325
|
+
{
|
|
18326
|
+
"path": "code",
|
|
18327
|
+
"valueType": "string"
|
|
18328
|
+
},
|
|
18329
|
+
{
|
|
18330
|
+
"path": "label",
|
|
18331
|
+
"valueType": "string"
|
|
18332
|
+
},
|
|
18333
|
+
{
|
|
18334
|
+
"path": "severity",
|
|
18335
|
+
"valueType": "enum",
|
|
18336
|
+
"enumValues": ["warning", "error"]
|
|
18337
|
+
},
|
|
18338
|
+
{
|
|
18339
|
+
"path": "since",
|
|
18340
|
+
"valueType": "number"
|
|
18341
|
+
}
|
|
18342
|
+
],
|
|
18117
18343
|
"event-emitter": [
|
|
18118
18344
|
{
|
|
18119
18345
|
"path": "lastEvent.deviceId",
|
|
@@ -19333,6 +19559,56 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
19333
19559
|
"valueType": "number"
|
|
19334
19560
|
}
|
|
19335
19561
|
],
|
|
19562
|
+
"weather-station": [
|
|
19563
|
+
{
|
|
19564
|
+
"path": "temperature",
|
|
19565
|
+
"valueType": "number"
|
|
19566
|
+
},
|
|
19567
|
+
{
|
|
19568
|
+
"path": "humidity",
|
|
19569
|
+
"valueType": "number"
|
|
19570
|
+
},
|
|
19571
|
+
{
|
|
19572
|
+
"path": "pressure",
|
|
19573
|
+
"valueType": "number"
|
|
19574
|
+
},
|
|
19575
|
+
{
|
|
19576
|
+
"path": "windSpeed",
|
|
19577
|
+
"valueType": "number"
|
|
19578
|
+
},
|
|
19579
|
+
{
|
|
19580
|
+
"path": "windGust",
|
|
19581
|
+
"valueType": "number"
|
|
19582
|
+
},
|
|
19583
|
+
{
|
|
19584
|
+
"path": "windBearing",
|
|
19585
|
+
"valueType": "number"
|
|
19586
|
+
},
|
|
19587
|
+
{
|
|
19588
|
+
"path": "rainRate",
|
|
19589
|
+
"valueType": "number"
|
|
19590
|
+
},
|
|
19591
|
+
{
|
|
19592
|
+
"path": "rainDaily",
|
|
19593
|
+
"valueType": "number"
|
|
19594
|
+
},
|
|
19595
|
+
{
|
|
19596
|
+
"path": "rainEvent",
|
|
19597
|
+
"valueType": "number"
|
|
19598
|
+
},
|
|
19599
|
+
{
|
|
19600
|
+
"path": "uv",
|
|
19601
|
+
"valueType": "number"
|
|
19602
|
+
},
|
|
19603
|
+
{
|
|
19604
|
+
"path": "solarRadiation",
|
|
19605
|
+
"valueType": "number"
|
|
19606
|
+
},
|
|
19607
|
+
{
|
|
19608
|
+
"path": "dewPoint",
|
|
19609
|
+
"valueType": "number"
|
|
19610
|
+
}
|
|
19611
|
+
],
|
|
19336
19612
|
"zone-analytics": [
|
|
19337
19613
|
{
|
|
19338
19614
|
"path": "ts",
|
|
@@ -20039,6 +20315,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
20039
20315
|
const doorbellInterface = { getStatus: (input) => dispatch("doorbell", "doorbell", "getStatus", "query", input) };
|
|
20040
20316
|
const energySystemInterface = { getStatus: (input) => dispatch("energy-system", "energySystem", "getStatus", "query", input) };
|
|
20041
20317
|
const enumSensorInterface = { getStatus: (input) => dispatch("enum-sensor", "enumSensor", "getStatus", "query", input) };
|
|
20318
|
+
const errorInterface = { getStatus: (input) => dispatch("error", "error", "getStatus", "query", input) };
|
|
20042
20319
|
const eventEmitterInterface = { getStatus: (input) => dispatch("event-emitter", "eventEmitter", "getStatus", "query", input) };
|
|
20043
20320
|
const fanControlInterface = {
|
|
20044
20321
|
setPercentage: (input) => dispatch("fan-control", "fanControl", "setPercentage", "mutation", input),
|
|
@@ -20441,6 +20718,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
20441
20718
|
getStatus: (input) => dispatch("water-heater", "waterHeater", "getStatus", "query", input)
|
|
20442
20719
|
};
|
|
20443
20720
|
const weatherInterface = { getStatus: (input) => dispatch("weather", "weather", "getStatus", "query", input) };
|
|
20721
|
+
const weatherStationInterface = { getStatus: (input) => dispatch("weather-station", "weatherStation", "getStatus", "query", input) };
|
|
20444
20722
|
const webrtcSessionInterface = {
|
|
20445
20723
|
listStreams: (input) => dispatch("webrtc-session", "webrtcSession", "listStreams", "query", input),
|
|
20446
20724
|
createSession: (input) => dispatch("webrtc-session", "webrtcSession", "createSession", "mutation", input),
|
|
@@ -20667,6 +20945,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
20667
20945
|
doorbell: createSliceHandle(stateSource, binding.deviceId, "doorbell"),
|
|
20668
20946
|
energySystem: createSliceHandle(stateSource, binding.deviceId, "energy-system"),
|
|
20669
20947
|
enumSensor: createSliceHandle(stateSource, binding.deviceId, "enum-sensor"),
|
|
20948
|
+
error: createSliceHandle(stateSource, binding.deviceId, "error"),
|
|
20670
20949
|
eventEmitter: createSliceHandle(stateSource, binding.deviceId, "event-emitter"),
|
|
20671
20950
|
fanControl: createSliceHandle(stateSource, binding.deviceId, "fan-control"),
|
|
20672
20951
|
featureProbe: createSliceHandle(stateSource, binding.deviceId, "feature-probe"),
|
|
@@ -20723,6 +21002,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
20723
21002
|
vibration: createSliceHandle(stateSource, binding.deviceId, "vibration"),
|
|
20724
21003
|
waterHeater: createSliceHandle(stateSource, binding.deviceId, "water-heater"),
|
|
20725
21004
|
weather: createSliceHandle(stateSource, binding.deviceId, "weather"),
|
|
21005
|
+
weatherStation: createSliceHandle(stateSource, binding.deviceId, "weather-station"),
|
|
20726
21006
|
zoneAnalytics: createSliceHandle(stateSource, binding.deviceId, "zone-analytics"),
|
|
20727
21007
|
zoneRules: createSliceHandle(stateSource, binding.deviceId, "zone-rules"),
|
|
20728
21008
|
zones: createSliceHandle(stateSource, binding.deviceId, "zones")
|
|
@@ -20763,6 +21043,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
20763
21043
|
...bound("doorbell") ? { doorbell: doorbellInterface } : {},
|
|
20764
21044
|
...bound("energy-system") ? { energySystem: energySystemInterface } : {},
|
|
20765
21045
|
...bound("enum-sensor") ? { enumSensor: enumSensorInterface } : {},
|
|
21046
|
+
...bound("error") ? { error: errorInterface } : {},
|
|
20766
21047
|
...bound("event-emitter") ? { eventEmitter: eventEmitterInterface } : {},
|
|
20767
21048
|
...bound("fan-control") ? { fanControl: fanControlInterface } : {},
|
|
20768
21049
|
...bound("feature-probe") ? { featureProbe: featureProbeInterface } : {},
|
|
@@ -20828,6 +21109,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
20828
21109
|
...bound("videoclips") ? { videoclips: videoclipsInterface } : {},
|
|
20829
21110
|
...bound("water-heater") ? { waterHeater: waterHeaterInterface } : {},
|
|
20830
21111
|
...bound("weather") ? { weather: weatherInterface } : {},
|
|
21112
|
+
...bound("weather-station") ? { weatherStation: weatherStationInterface } : {},
|
|
20831
21113
|
...bound("webrtc-session") ? { webrtcSession: webrtcSessionInterface } : {},
|
|
20832
21114
|
...bound("zone-analytics") ? { zoneAnalytics: zoneAnalyticsInterface } : {},
|
|
20833
21115
|
...bound("zone-rules") ? { zoneRules: zoneRulesInterface } : {},
|
|
@@ -20863,7 +21145,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
20863
21145
|
* can answer "may a rule actuate this?" without importing the schema barrel
|
|
20864
21146
|
* (~144MB RSS per runner, D28).
|
|
20865
21147
|
*
|
|
20866
|
-
* Coverage:
|
|
21148
|
+
* Coverage: 107 device-scoped capabilities.
|
|
20867
21149
|
*/
|
|
20868
21150
|
var DEVICE_SCOPED_CAPS = new Set([
|
|
20869
21151
|
"accessories",
|
|
@@ -20902,6 +21184,7 @@ var DEVICE_SCOPED_CAPS = new Set([
|
|
|
20902
21184
|
"doorbell",
|
|
20903
21185
|
"energy-system",
|
|
20904
21186
|
"enum-sensor",
|
|
21187
|
+
"error",
|
|
20905
21188
|
"event-emitter",
|
|
20906
21189
|
"fan-control",
|
|
20907
21190
|
"feature-probe",
|
|
@@ -20967,6 +21250,7 @@ var DEVICE_SCOPED_CAPS = new Set([
|
|
|
20967
21250
|
"videoclips",
|
|
20968
21251
|
"water-heater",
|
|
20969
21252
|
"weather",
|
|
21253
|
+
"weather-station",
|
|
20970
21254
|
"webrtc-session",
|
|
20971
21255
|
"zone-analytics",
|
|
20972
21256
|
"zone-rules",
|