@camstack/types 1.2.567 → 1.2.569

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/addon.js +15 -5
  3. package/dist/addon.mjs +15 -5
  4. package/dist/capabilities/climate-control.cap.d.ts +48 -0
  5. package/dist/capabilities/control-select-navigation.d.ts +59 -0
  6. package/dist/capabilities/control.cap.d.ts +32 -0
  7. package/dist/capabilities/core-blocks.cap.d.ts +11 -0
  8. package/dist/capabilities/index.d.ts +5 -2
  9. package/dist/capabilities/notification-rules.cap.d.ts +46 -0
  10. package/dist/capabilities/osd-manager.cap.d.ts +12 -0
  11. package/dist/capabilities/weather-station.cap.d.ts +255 -0
  12. package/dist/client.js +62 -4
  13. package/dist/client.mjs +62 -4
  14. package/dist/{composed-stable-id-BzXh1Swk.js → composed-stable-id-C3NfRTj8.js} +3 -0
  15. package/dist/{composed-stable-id-COP6zOXx.mjs → composed-stable-id-RvQIEpqg.mjs} +3 -0
  16. package/dist/device/device-icon.d.ts +1 -0
  17. package/dist/device/device-type.d.ts +3 -0
  18. package/dist/device/hero/hero-layout.d.ts +1 -0
  19. package/dist/device/hero/hero-look.d.ts +6 -0
  20. package/dist/device/hero/hero-scene.d.ts +1 -0
  21. package/dist/enums/event-category.d.ts +12 -0
  22. package/dist/enums.js +1 -1
  23. package/dist/enums.mjs +1 -1
  24. package/dist/{event-category-Dv-Gcv1f.mjs → event-category-Dhcd0TRH.mjs} +12 -0
  25. package/dist/{event-category-Ps2LC8dN.js → event-category-d9kiqCqC.js} +12 -0
  26. package/dist/generated/addon-api.d.ts +42 -0
  27. package/dist/generated/addon-cap-facts.d.ts +1 -1
  28. package/dist/generated/cap-input-defaults.d.ts +1 -1
  29. package/dist/generated/cap-status-types.d.ts +3 -1
  30. package/dist/generated/cap-vocabulary.d.ts +1 -1
  31. package/dist/generated/capability-router-map.d.ts +5 -2
  32. package/dist/generated/collection-array-methods.d.ts +1 -1
  33. package/dist/generated/customize-catalog.d.ts +55 -2
  34. package/dist/generated/device-local-state.d.ts +3 -0
  35. package/dist/generated/device-proxy.d.ts +3 -0
  36. package/dist/generated/device-scoped-caps.d.ts +1 -1
  37. package/dist/generated/history-catalog.d.ts +1 -1
  38. package/dist/generated/method-access-map.d.ts +1 -1
  39. package/dist/generated/method-device-selectors.d.ts +1 -1
  40. package/dist/generated/runtime-state-durability.d.ts +1 -1
  41. package/dist/{implemented-methods-0xxMOekw.mjs → implemented-methods-C5FMXLGP.mjs} +1 -1
  42. package/dist/{implemented-methods-D4F6RWkO.js → implemented-methods-C7ScGvEz.js} +1 -1
  43. package/dist/index.js +491 -29
  44. package/dist/index.mjs +487 -30
  45. package/dist/node.js +2 -2
  46. package/dist/node.mjs +2 -2
  47. package/dist/{sleep-mEzgbYFJ.js → sleep-DR76P1OE.js} +322 -4
  48. package/dist/{sleep-B5XPl2YP.mjs → sleep-DbhT0DWV.mjs} +322 -4
  49. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { t as EventCategory } from "./event-category-Dv-Gcv1f.mjs";
2
- import { a as DeviceType, i as DeviceRole, s as errMsg } from "./composed-stable-id-COP6zOXx.mjs";
1
+ import { t as EventCategory } from "./event-category-Dhcd0TRH.mjs";
2
+ import { a as DeviceType, i as DeviceRole, s as errMsg } from "./composed-stable-id-RvQIEpqg.mjs";
3
3
  import { z } from "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): 206 caps (105 device, 101 system).
7958
+ * `*.cap.ts` (D1050): 207 caps (106 device, 101 system).
7959
7959
  * Device caps in their declared picker order, then system caps by name.
7960
7960
  */
7961
7961
  var CAP_VOCABULARY = {
@@ -10624,6 +10624,76 @@ var CAP_VOCABULARY = {
10624
10624
  en: "Control",
10625
10625
  it: "Controllo"
10626
10626
  },
10627
+ actions: [
10628
+ {
10629
+ id: "select.next",
10630
+ method: "next",
10631
+ label: {
10632
+ en: "Next option",
10633
+ it: "Opzione successiva"
10634
+ },
10635
+ phrase: {
10636
+ en: "Select the next option on {device}",
10637
+ it: "Seleziona l’opzione successiva su {device}"
10638
+ },
10639
+ icon: "skip-forward",
10640
+ openArgs: [{
10641
+ key: "cycle",
10642
+ label: {
10643
+ en: "Wrap to the first option",
10644
+ it: "Ricomincia dalla prima opzione"
10645
+ },
10646
+ offer: { kind: "boolean" }
10647
+ }]
10648
+ },
10649
+ {
10650
+ id: "select.previous",
10651
+ method: "previous",
10652
+ label: {
10653
+ en: "Previous option",
10654
+ it: "Opzione precedente"
10655
+ },
10656
+ phrase: {
10657
+ en: "Select the previous option on {device}",
10658
+ it: "Seleziona l’opzione precedente su {device}"
10659
+ },
10660
+ icon: "skip-back",
10661
+ openArgs: [{
10662
+ key: "cycle",
10663
+ label: {
10664
+ en: "Wrap to the last option",
10665
+ it: "Ricomincia dall’ultima opzione"
10666
+ },
10667
+ offer: { kind: "boolean" }
10668
+ }]
10669
+ },
10670
+ {
10671
+ id: "select.first",
10672
+ method: "first",
10673
+ label: {
10674
+ en: "First option",
10675
+ it: "Prima opzione"
10676
+ },
10677
+ phrase: {
10678
+ en: "Select the first option on {device}",
10679
+ it: "Seleziona la prima opzione su {device}"
10680
+ },
10681
+ icon: "chevron-first"
10682
+ },
10683
+ {
10684
+ id: "select.last",
10685
+ method: "last",
10686
+ label: {
10687
+ en: "Last option",
10688
+ it: "Ultima opzione"
10689
+ },
10690
+ phrase: {
10691
+ en: "Select the last option on {device}",
10692
+ it: "Seleziona l’ultima opzione su {device}"
10693
+ },
10694
+ icon: "chevron-last"
10695
+ }
10696
+ ],
10627
10697
  notOperatorFacing: { setValue: "the value shape depends on the control kind (numeric / select / text / datetime) read from status; a typed picker for it is a follow-up of the automations rework" },
10628
10698
  state: [{
10629
10699
  kind: "value",
@@ -15770,6 +15840,183 @@ var CAP_VOCABULARY = {
15770
15840
  }
15771
15841
  ]
15772
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
+ },
15773
16020
  "battery": {
15774
16021
  scope: "device",
15775
16022
  noun: {
@@ -17284,6 +17531,7 @@ var CAP_NAMES = Object.freeze([
17284
17531
  "viewer-ui",
17285
17532
  "water-heater",
17286
17533
  "weather",
17534
+ "weather-station",
17287
17535
  "webrtc-session",
17288
17536
  "zone-analytics",
17289
17537
  "zone-rules",
@@ -17564,6 +17812,18 @@ var CAP_STATE_LEAVES = Object.freeze({
17564
17812
  "dry"
17565
17813
  ]
17566
17814
  },
17815
+ {
17816
+ "path": "action",
17817
+ "valueType": "enum",
17818
+ "enumValues": [
17819
+ "heating",
17820
+ "cooling",
17821
+ "drying",
17822
+ "fan",
17823
+ "idle",
17824
+ "off"
17825
+ ]
17826
+ },
17567
17827
  {
17568
17828
  "path": "fanMode",
17569
17829
  "valueType": "string"
@@ -19251,6 +19511,56 @@ var CAP_STATE_LEAVES = Object.freeze({
19251
19511
  "valueType": "number"
19252
19512
  }
19253
19513
  ],
19514
+ "weather-station": [
19515
+ {
19516
+ "path": "temperature",
19517
+ "valueType": "number"
19518
+ },
19519
+ {
19520
+ "path": "humidity",
19521
+ "valueType": "number"
19522
+ },
19523
+ {
19524
+ "path": "pressure",
19525
+ "valueType": "number"
19526
+ },
19527
+ {
19528
+ "path": "windSpeed",
19529
+ "valueType": "number"
19530
+ },
19531
+ {
19532
+ "path": "windGust",
19533
+ "valueType": "number"
19534
+ },
19535
+ {
19536
+ "path": "windBearing",
19537
+ "valueType": "number"
19538
+ },
19539
+ {
19540
+ "path": "rainRate",
19541
+ "valueType": "number"
19542
+ },
19543
+ {
19544
+ "path": "rainDaily",
19545
+ "valueType": "number"
19546
+ },
19547
+ {
19548
+ "path": "rainEvent",
19549
+ "valueType": "number"
19550
+ },
19551
+ {
19552
+ "path": "uv",
19553
+ "valueType": "number"
19554
+ },
19555
+ {
19556
+ "path": "solarRadiation",
19557
+ "valueType": "number"
19558
+ },
19559
+ {
19560
+ "path": "dewPoint",
19561
+ "valueType": "number"
19562
+ }
19563
+ ],
19254
19564
  "zone-analytics": [
19255
19565
  {
19256
19566
  "path": "ts",
@@ -19880,6 +20190,10 @@ function createDeviceProxy(api, binding, opts) {
19880
20190
  const contactInterface = { getStatus: (input) => dispatch("contact", "contact", "getStatus", "query", input) };
19881
20191
  const controlInterface = {
19882
20192
  setValue: (input) => dispatch("control", "control", "setValue", "mutation", input),
20193
+ next: (input) => dispatch("control", "control", "next", "mutation", input),
20194
+ previous: (input) => dispatch("control", "control", "previous", "mutation", input),
20195
+ first: (input) => dispatch("control", "control", "first", "mutation", input),
20196
+ last: (input) => dispatch("control", "control", "last", "mutation", input),
19883
20197
  getStatus: (input) => dispatch("control", "control", "getStatus", "query", input)
19884
20198
  };
19885
20199
  const coverInterface = {
@@ -20355,6 +20669,7 @@ function createDeviceProxy(api, binding, opts) {
20355
20669
  getStatus: (input) => dispatch("water-heater", "waterHeater", "getStatus", "query", input)
20356
20670
  };
20357
20671
  const weatherInterface = { getStatus: (input) => dispatch("weather", "weather", "getStatus", "query", input) };
20672
+ const weatherStationInterface = { getStatus: (input) => dispatch("weather-station", "weatherStation", "getStatus", "query", input) };
20358
20673
  const webrtcSessionInterface = {
20359
20674
  listStreams: (input) => dispatch("webrtc-session", "webrtcSession", "listStreams", "query", input),
20360
20675
  createSession: (input) => dispatch("webrtc-session", "webrtcSession", "createSession", "mutation", input),
@@ -20637,6 +20952,7 @@ function createDeviceProxy(api, binding, opts) {
20637
20952
  vibration: createSliceHandle(stateSource, binding.deviceId, "vibration"),
20638
20953
  waterHeater: createSliceHandle(stateSource, binding.deviceId, "water-heater"),
20639
20954
  weather: createSliceHandle(stateSource, binding.deviceId, "weather"),
20955
+ weatherStation: createSliceHandle(stateSource, binding.deviceId, "weather-station"),
20640
20956
  zoneAnalytics: createSliceHandle(stateSource, binding.deviceId, "zone-analytics"),
20641
20957
  zoneRules: createSliceHandle(stateSource, binding.deviceId, "zone-rules"),
20642
20958
  zones: createSliceHandle(stateSource, binding.deviceId, "zones")
@@ -20742,6 +21058,7 @@ function createDeviceProxy(api, binding, opts) {
20742
21058
  ...bound("videoclips") ? { videoclips: videoclipsInterface } : {},
20743
21059
  ...bound("water-heater") ? { waterHeater: waterHeaterInterface } : {},
20744
21060
  ...bound("weather") ? { weather: weatherInterface } : {},
21061
+ ...bound("weather-station") ? { weatherStation: weatherStationInterface } : {},
20745
21062
  ...bound("webrtc-session") ? { webrtcSession: webrtcSessionInterface } : {},
20746
21063
  ...bound("zone-analytics") ? { zoneAnalytics: zoneAnalyticsInterface } : {},
20747
21064
  ...bound("zone-rules") ? { zoneRules: zoneRulesInterface } : {},
@@ -20777,7 +21094,7 @@ function createDeviceProxy(api, binding, opts) {
20777
21094
  * can answer "may a rule actuate this?" without importing the schema barrel
20778
21095
  * (~144MB RSS per runner, D28).
20779
21096
  *
20780
- * Coverage: 105 device-scoped capabilities.
21097
+ * Coverage: 106 device-scoped capabilities.
20781
21098
  */
20782
21099
  var DEVICE_SCOPED_CAPS = new Set([
20783
21100
  "accessories",
@@ -20881,6 +21198,7 @@ var DEVICE_SCOPED_CAPS = new Set([
20881
21198
  "videoclips",
20882
21199
  "water-heater",
20883
21200
  "weather",
21201
+ "weather-station",
20884
21202
  "webrtc-session",
20885
21203
  "zone-analytics",
20886
21204
  "zone-rules",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/types",
3
- "version": "1.2.567",
3
+ "version": "1.2.569",
4
4
  "description": "Shared types, interfaces, and model catalogs for the CamStack detection ecosystem",
5
5
  "keywords": [
6
6
  "camstack",