@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
@@ -179,6 +179,8 @@ export declare const OsdSlotBindingSchema: z.ZodObject<{
179
179
  "rule-repaired": "rule-repaired";
180
180
  "server-update-available": "server-update-available";
181
181
  "server-updated": "server-updated";
182
+ "storage-drain-complete": "storage-drain-complete";
183
+ "storage-drain-progress": "storage-drain-progress";
182
184
  "storage-location-critical": "storage-location-critical";
183
185
  "storage-location-low": "storage-location-low";
184
186
  "storage-location-ok": "storage-location-ok";
@@ -380,6 +382,8 @@ export declare const OsdSlotViewSchema: z.ZodObject<{
380
382
  "rule-repaired": "rule-repaired";
381
383
  "server-update-available": "server-update-available";
382
384
  "server-updated": "server-updated";
385
+ "storage-drain-complete": "storage-drain-complete";
386
+ "storage-drain-progress": "storage-drain-progress";
383
387
  "storage-location-critical": "storage-location-critical";
384
388
  "storage-location-low": "storage-location-low";
385
389
  "storage-location-ok": "storage-location-ok";
@@ -637,6 +641,8 @@ export declare const osdManagerCapability: {
637
641
  "rule-repaired": "rule-repaired";
638
642
  "server-update-available": "server-update-available";
639
643
  "server-updated": "server-updated";
644
+ "storage-drain-complete": "storage-drain-complete";
645
+ "storage-drain-progress": "storage-drain-progress";
640
646
  "storage-location-critical": "storage-location-critical";
641
647
  "storage-location-low": "storage-location-low";
642
648
  "storage-location-ok": "storage-location-ok";
@@ -906,6 +912,8 @@ export declare const osdManagerCapability: {
906
912
  "rule-repaired": "rule-repaired";
907
913
  "server-update-available": "server-update-available";
908
914
  "server-updated": "server-updated";
915
+ "storage-drain-complete": "storage-drain-complete";
916
+ "storage-drain-progress": "storage-drain-progress";
909
917
  "storage-location-critical": "storage-location-critical";
910
918
  "storage-location-low": "storage-location-low";
911
919
  "storage-location-ok": "storage-location-ok";
@@ -1106,6 +1114,8 @@ export declare const osdManagerCapability: {
1106
1114
  "rule-repaired": "rule-repaired";
1107
1115
  "server-update-available": "server-update-available";
1108
1116
  "server-updated": "server-updated";
1117
+ "storage-drain-complete": "storage-drain-complete";
1118
+ "storage-drain-progress": "storage-drain-progress";
1109
1119
  "storage-location-critical": "storage-location-critical";
1110
1120
  "storage-location-low": "storage-location-low";
1111
1121
  "storage-location-ok": "storage-location-ok";
@@ -1350,6 +1360,8 @@ export declare const osdManagerCapability: {
1350
1360
  "rule-repaired": "rule-repaired";
1351
1361
  "server-update-available": "server-update-available";
1352
1362
  "server-updated": "server-updated";
1363
+ "storage-drain-complete": "storage-drain-complete";
1364
+ "storage-drain-progress": "storage-drain-progress";
1353
1365
  "storage-location-critical": "storage-location-critical";
1354
1366
  "storage-location-low": "storage-location-low";
1355
1367
  "storage-location-ok": "storage-location-ok";
@@ -0,0 +1,255 @@
1
+ import { z } from 'zod';
2
+ import { DeviceType } from '../device/device-type.js';
3
+ import { type InferProvider } from './capability-definition.js';
4
+ /**
5
+ * A physical weather station (an Ecowitt outdoor array, and the same shape for
6
+ * any later station). Read-only: one slice per station, filled from the
7
+ * station's own poll. `weather` stays the forecast provider.
8
+ *
9
+ * Every reading is nullable. Null means the station does not report it;
10
+ * a missing sensor is never stored as 0 (D393). Units are the quantity base
11
+ * (D944), declared the same way sibling sensor caps declare them.
12
+ */
13
+ export declare const WeatherStationReadingsSchema: z.ZodObject<{
14
+ temperature: z.ZodNullable<z.ZodNumber>;
15
+ humidity: z.ZodNullable<z.ZodNumber>;
16
+ pressure: z.ZodNullable<z.ZodNumber>;
17
+ windSpeed: z.ZodNullable<z.ZodNumber>;
18
+ windGust: z.ZodNullable<z.ZodNumber>;
19
+ windBearing: z.ZodNullable<z.ZodNumber>;
20
+ rainRate: z.ZodNullable<z.ZodNumber>;
21
+ rainDaily: z.ZodNullable<z.ZodNumber>;
22
+ rainEvent: z.ZodNullable<z.ZodNumber>;
23
+ uv: z.ZodNullable<z.ZodNumber>;
24
+ solarRadiation: z.ZodNullable<z.ZodNumber>;
25
+ dewPoint: z.ZodNullable<z.ZodNumber>;
26
+ }, z.core.$strip>;
27
+ export declare const WeatherStationStatusSchema: z.ZodObject<{
28
+ temperature: z.ZodNullable<z.ZodNumber>;
29
+ humidity: z.ZodNullable<z.ZodNumber>;
30
+ pressure: z.ZodNullable<z.ZodNumber>;
31
+ windSpeed: z.ZodNullable<z.ZodNumber>;
32
+ windGust: z.ZodNullable<z.ZodNumber>;
33
+ windBearing: z.ZodNullable<z.ZodNumber>;
34
+ rainRate: z.ZodNullable<z.ZodNumber>;
35
+ rainDaily: z.ZodNullable<z.ZodNumber>;
36
+ rainEvent: z.ZodNullable<z.ZodNumber>;
37
+ uv: z.ZodNullable<z.ZodNumber>;
38
+ solarRadiation: z.ZodNullable<z.ZodNumber>;
39
+ dewPoint: z.ZodNullable<z.ZodNumber>;
40
+ lastFetchedAt: z.ZodNumber;
41
+ }, z.core.$strip>;
42
+ export type WeatherStationStatus = z.infer<typeof WeatherStationStatusSchema>;
43
+ export declare const weatherStationCapability: {
44
+ readonly name: 'weather-station';
45
+ readonly scope: 'device';
46
+ readonly deviceNative: true;
47
+ readonly mode: 'singleton';
48
+ readonly deviceTypes: readonly [DeviceType.WeatherStation];
49
+ readonly methods: {};
50
+ readonly status: {
51
+ readonly schema: z.ZodObject<{
52
+ temperature: z.ZodNullable<z.ZodNumber>;
53
+ humidity: z.ZodNullable<z.ZodNumber>;
54
+ pressure: z.ZodNullable<z.ZodNumber>;
55
+ windSpeed: z.ZodNullable<z.ZodNumber>;
56
+ windGust: z.ZodNullable<z.ZodNumber>;
57
+ windBearing: z.ZodNullable<z.ZodNumber>;
58
+ rainRate: z.ZodNullable<z.ZodNumber>;
59
+ rainDaily: z.ZodNullable<z.ZodNumber>;
60
+ rainEvent: z.ZodNullable<z.ZodNumber>;
61
+ uv: z.ZodNullable<z.ZodNumber>;
62
+ solarRadiation: z.ZodNullable<z.ZodNumber>;
63
+ dewPoint: z.ZodNullable<z.ZodNumber>;
64
+ lastFetchedAt: z.ZodNumber;
65
+ }, z.core.$strip>;
66
+ readonly kind: 'push';
67
+ };
68
+ readonly runtimeState: z.ZodObject<{
69
+ temperature: z.ZodNullable<z.ZodNumber>;
70
+ humidity: z.ZodNullable<z.ZodNumber>;
71
+ pressure: z.ZodNullable<z.ZodNumber>;
72
+ windSpeed: z.ZodNullable<z.ZodNumber>;
73
+ windGust: z.ZodNullable<z.ZodNumber>;
74
+ windBearing: z.ZodNullable<z.ZodNumber>;
75
+ rainRate: z.ZodNullable<z.ZodNumber>;
76
+ rainDaily: z.ZodNullable<z.ZodNumber>;
77
+ rainEvent: z.ZodNullable<z.ZodNumber>;
78
+ uv: z.ZodNullable<z.ZodNumber>;
79
+ solarRadiation: z.ZodNullable<z.ZodNumber>;
80
+ dewPoint: z.ZodNullable<z.ZodNumber>;
81
+ lastFetchedAt: z.ZodNumber;
82
+ }, z.core.$strip>;
83
+ /**
84
+ * The sensor children already record each reading. The station slice is the
85
+ * live aggregate a template reads; it does not keep a second series.
86
+ */
87
+ readonly history: 'none';
88
+ /**
89
+ * Runtime-state durability: **session** — a station reading is stale the
90
+ * moment the hub is down; the provider re-reads on the next poll.
91
+ */
92
+ readonly durability: 'session';
93
+ readonly vocabulary: {
94
+ readonly noun: import("../index.js").VocabL10n;
95
+ readonly order: 5235;
96
+ readonly state: readonly [{
97
+ kind: 'numeric';
98
+ field: string;
99
+ quantity: {
100
+ en: string;
101
+ it: string;
102
+ };
103
+ label: {
104
+ en: string;
105
+ it: string;
106
+ };
107
+ unit: string;
108
+ icon: "cloud-sun" | "droplets" | "gauge" | "thermometer" | "wind";
109
+ }, {
110
+ kind: 'numeric';
111
+ field: string;
112
+ quantity: {
113
+ en: string;
114
+ it: string;
115
+ };
116
+ label: {
117
+ en: string;
118
+ it: string;
119
+ };
120
+ unit: string;
121
+ icon: "cloud-sun" | "droplets" | "gauge" | "thermometer" | "wind";
122
+ }, {
123
+ kind: 'numeric';
124
+ field: string;
125
+ quantity: {
126
+ en: string;
127
+ it: string;
128
+ };
129
+ label: {
130
+ en: string;
131
+ it: string;
132
+ };
133
+ unit: string;
134
+ icon: "cloud-sun" | "droplets" | "gauge" | "thermometer" | "wind";
135
+ }, {
136
+ kind: 'numeric';
137
+ field: string;
138
+ quantity: {
139
+ en: string;
140
+ it: string;
141
+ };
142
+ label: {
143
+ en: string;
144
+ it: string;
145
+ };
146
+ unit: string;
147
+ icon: "cloud-sun" | "droplets" | "gauge" | "thermometer" | "wind";
148
+ }, {
149
+ kind: 'numeric';
150
+ field: string;
151
+ quantity: {
152
+ en: string;
153
+ it: string;
154
+ };
155
+ label: {
156
+ en: string;
157
+ it: string;
158
+ };
159
+ unit: string;
160
+ icon: "cloud-sun" | "droplets" | "gauge" | "thermometer" | "wind";
161
+ }, {
162
+ kind: 'numeric';
163
+ field: string;
164
+ quantity: {
165
+ en: string;
166
+ it: string;
167
+ };
168
+ label: {
169
+ en: string;
170
+ it: string;
171
+ };
172
+ unit: string;
173
+ icon: "cloud-sun" | "droplets" | "gauge" | "thermometer" | "wind";
174
+ }, {
175
+ kind: 'numeric';
176
+ field: string;
177
+ quantity: {
178
+ en: string;
179
+ it: string;
180
+ };
181
+ label: {
182
+ en: string;
183
+ it: string;
184
+ };
185
+ unit: string;
186
+ icon: "cloud-sun" | "droplets" | "gauge" | "thermometer" | "wind";
187
+ }, {
188
+ kind: 'numeric';
189
+ field: string;
190
+ quantity: {
191
+ en: string;
192
+ it: string;
193
+ };
194
+ label: {
195
+ en: string;
196
+ it: string;
197
+ };
198
+ unit: string;
199
+ icon: "cloud-sun" | "droplets" | "gauge" | "thermometer" | "wind";
200
+ }, {
201
+ kind: 'numeric';
202
+ field: string;
203
+ quantity: {
204
+ en: string;
205
+ it: string;
206
+ };
207
+ label: {
208
+ en: string;
209
+ it: string;
210
+ };
211
+ unit: string;
212
+ icon: "cloud-sun" | "droplets" | "gauge" | "thermometer" | "wind";
213
+ }, {
214
+ kind: 'numeric';
215
+ field: string;
216
+ quantity: {
217
+ en: string;
218
+ it: string;
219
+ };
220
+ label: {
221
+ en: string;
222
+ it: string;
223
+ };
224
+ unit: string;
225
+ icon: "cloud-sun" | "droplets" | "gauge" | "thermometer" | "wind";
226
+ }, {
227
+ kind: 'numeric';
228
+ field: string;
229
+ quantity: {
230
+ en: string;
231
+ it: string;
232
+ };
233
+ label: {
234
+ en: string;
235
+ it: string;
236
+ };
237
+ unit: string;
238
+ icon: "cloud-sun" | "droplets" | "gauge" | "thermometer" | "wind";
239
+ }, {
240
+ kind: 'numeric';
241
+ field: string;
242
+ quantity: {
243
+ en: string;
244
+ it: string;
245
+ };
246
+ label: {
247
+ en: string;
248
+ it: string;
249
+ };
250
+ unit: string;
251
+ icon: "cloud-sun" | "droplets" | "gauge" | "thermometer" | "wind";
252
+ }];
253
+ };
254
+ };
255
+ export type IWeatherStationProvider = InferProvider<typeof weatherStationCapability>;
package/dist/client.js CHANGED
@@ -1194,6 +1194,9 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
1194
1194
  /** Weather provider (HA `weather.*`). Tier-3, low MVP priority.
1195
1195
  * `weather` cap. */
1196
1196
  DeviceType["Weather"] = "weather";
1197
+ /** A physical weather station (Ecowitt outdoor array). `weather-station`
1198
+ * cap. Distinct from {@link Weather}, which is a forecast provider. */
1199
+ DeviceType["WeatherStation"] = "weather-station";
1197
1200
  /** Robot vacuum (HA `vacuum.*`). Tier-3. `vacuum-control` cap. */
1198
1201
  DeviceType["Vacuum"] = "vacuum";
1199
1202
  /** Robotic lawn mower (HA `lawn_mower.*`). Tier-3.
@@ -23335,6 +23338,8 @@ var NcSystemEventKindSchema = zod.z.enum([
23335
23338
  "storage-location-low",
23336
23339
  "storage-location-critical",
23337
23340
  "storage-location-ok",
23341
+ "storage-drain-progress",
23342
+ "storage-drain-complete",
23338
23343
  "addon-crash-loop",
23339
23344
  "addon-update-available",
23340
23345
  "server-update-available",
@@ -27311,6 +27316,7 @@ var DEVICE_TYPE_ICON = {
27311
27316
  [DeviceType.Control]: "sliders-horizontal",
27312
27317
  [DeviceType.Presence]: "map-pin",
27313
27318
  [DeviceType.Weather]: "cloud-sun",
27319
+ [DeviceType.WeatherStation]: "cloud-sun",
27314
27320
  [DeviceType.Vacuum]: "bot",
27315
27321
  [DeviceType.LawnMower]: "tractor",
27316
27322
  [DeviceType.Container]: "box",
@@ -27607,6 +27613,10 @@ function createDeviceProxy(api, binding, opts) {
27607
27613
  const contactInterface = { getStatus: (input) => dispatch("contact", "contact", "getStatus", "query", input) };
27608
27614
  const controlInterface = {
27609
27615
  setValue: (input) => dispatch("control", "control", "setValue", "mutation", input),
27616
+ next: (input) => dispatch("control", "control", "next", "mutation", input),
27617
+ previous: (input) => dispatch("control", "control", "previous", "mutation", input),
27618
+ first: (input) => dispatch("control", "control", "first", "mutation", input),
27619
+ last: (input) => dispatch("control", "control", "last", "mutation", input),
27610
27620
  getStatus: (input) => dispatch("control", "control", "getStatus", "query", input)
27611
27621
  };
27612
27622
  const coverInterface = {
@@ -28082,6 +28092,7 @@ function createDeviceProxy(api, binding, opts) {
28082
28092
  getStatus: (input) => dispatch("water-heater", "waterHeater", "getStatus", "query", input)
28083
28093
  };
28084
28094
  const weatherInterface = { getStatus: (input) => dispatch("weather", "weather", "getStatus", "query", input) };
28095
+ const weatherStationInterface = { getStatus: (input) => dispatch("weather-station", "weatherStation", "getStatus", "query", input) };
28085
28096
  const webrtcSessionInterface = {
28086
28097
  listStreams: (input) => dispatch("webrtc-session", "webrtcSession", "listStreams", "query", input),
28087
28098
  createSession: (input) => dispatch("webrtc-session", "webrtcSession", "createSession", "mutation", input),
@@ -28364,6 +28375,7 @@ function createDeviceProxy(api, binding, opts) {
28364
28375
  vibration: createSliceHandle(stateSource, binding.deviceId, "vibration"),
28365
28376
  waterHeater: createSliceHandle(stateSource, binding.deviceId, "water-heater"),
28366
28377
  weather: createSliceHandle(stateSource, binding.deviceId, "weather"),
28378
+ weatherStation: createSliceHandle(stateSource, binding.deviceId, "weather-station"),
28367
28379
  zoneAnalytics: createSliceHandle(stateSource, binding.deviceId, "zone-analytics"),
28368
28380
  zoneRules: createSliceHandle(stateSource, binding.deviceId, "zone-rules"),
28369
28381
  zones: createSliceHandle(stateSource, binding.deviceId, "zones")
@@ -28469,6 +28481,7 @@ function createDeviceProxy(api, binding, opts) {
28469
28481
  ...bound("videoclips") ? { videoclips: videoclipsInterface } : {},
28470
28482
  ...bound("water-heater") ? { waterHeater: waterHeaterInterface } : {},
28471
28483
  ...bound("weather") ? { weather: weatherInterface } : {},
28484
+ ...bound("weather-station") ? { weatherStation: weatherStationInterface } : {},
28472
28485
  ...bound("webrtc-session") ? { webrtcSession: webrtcSessionInterface } : {},
28473
28486
  ...bound("zone-analytics") ? { zoneAnalytics: zoneAnalyticsInterface } : {},
28474
28487
  ...bound("zone-rules") ? { zoneRules: zoneRulesInterface } : {},
@@ -30347,7 +30360,7 @@ function systemEventFilterApplies(kind, filter) {
30347
30360
  switch (filter) {
30348
30361
  case "deviceIds": return kind.startsWith("device-") || kind.startsWith("stream-") || kind === "detection-blind" || kind.startsWith("motion-") || kind.startsWith("package-llm-") || kind.startsWith("recording-") || kind === "alarm-triggered";
30349
30362
  case "deviceTypes": return kind.startsWith("device-") || kind === "detection-blind" || kind.startsWith("motion-") || kind.startsWith("package-llm-");
30350
- case "nodeIds": return kind.startsWith("node-") || kind === "addon-crash-loop" || kind === "addon-update-available" || kind === "addon-updated" || kind === "server-update-available" || kind === "wrapper-update-available" || kind === "server-updated" || kind.startsWith("storage-location-") || kind.startsWith("alert-");
30363
+ case "nodeIds": return kind.startsWith("node-") || kind === "addon-crash-loop" || kind === "addon-update-available" || kind === "addon-updated" || kind === "server-update-available" || kind === "wrapper-update-available" || kind === "server-updated" || kind.startsWith("storage-location-") || kind.startsWith("storage-drain-") || kind.startsWith("alert-");
30351
30364
  case "packageNames": return kind.endsWith("update-available") || kind === "addon-updated" || kind === "node-updating" || kind === "server-updated";
30352
30365
  case "consumableLowPercent": return NC_CONSUMABLE_SYSTEM_EVENT_KINDS.includes(kind);
30353
30366
  case "commandActions":
@@ -30435,6 +30448,8 @@ var NC_SYSTEM_EVENT_FAMILY = {
30435
30448
  "storage-location-low": "system",
30436
30449
  "storage-location-critical": "system",
30437
30450
  "storage-location-ok": "system",
30451
+ "storage-drain-progress": "system",
30452
+ "storage-drain-complete": "system",
30438
30453
  "alarm-triggered": "alarm",
30439
30454
  "alarm-armed": "alarm",
30440
30455
  "alarm-disarmed": "alarm",
@@ -30591,6 +30606,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
30591
30606
  "storage-location-ok"
30592
30607
  ]
30593
30608
  },
30609
+ {
30610
+ id: "storage-drain",
30611
+ family: "system",
30612
+ label: "Storage drain progress",
30613
+ kinds: ["storage-drain-progress", "storage-drain-complete"]
30614
+ },
30594
30615
  {
30595
30616
  id: "alerts",
30596
30617
  family: "system",
@@ -31512,6 +31533,7 @@ var ALERT_EPISODE = [
31512
31533
  "alert-error",
31513
31534
  "alert-critical-resolved"
31514
31535
  ];
31536
+ var STORAGE_DRAIN = ["storage-drain-progress", "storage-drain-complete"];
31515
31537
  var DEVICE_ATTENTION = ["device-attention-required", "device-attention-resolved"];
31516
31538
  var UPDATES = [
31517
31539
  "addon-update-available",
@@ -32156,6 +32178,7 @@ var NC_TEMPLATE_VARS = [
32156
32178
  "storage-location-low",
32157
32179
  "storage-location-critical",
32158
32180
  "storage-location-ok",
32181
+ ...STORAGE_DRAIN,
32159
32182
  ...ALERT_EPISODE
32160
32183
  ]
32161
32184
  },
@@ -32179,6 +32202,7 @@ var NC_TEMPLATE_VARS = [
32179
32202
  "storage-location-low",
32180
32203
  "storage-location-critical",
32181
32204
  "storage-location-ok",
32205
+ ...STORAGE_DRAIN,
32182
32206
  ...ALERT_EPISODE
32183
32207
  ]
32184
32208
  },
@@ -32344,7 +32368,8 @@ var NC_TEMPLATE_VARS = [
32344
32368
  systemEventKinds: [
32345
32369
  "storage-location-low",
32346
32370
  "storage-location-critical",
32347
- "storage-location-ok"
32371
+ "storage-location-ok",
32372
+ ...STORAGE_DRAIN
32348
32373
  ]
32349
32374
  },
32350
32375
  {
@@ -32358,9 +32383,40 @@ var NC_TEMPLATE_VARS = [
32358
32383
  systemEventKinds: [
32359
32384
  "storage-location-low",
32360
32385
  "storage-location-critical",
32361
- "storage-location-ok"
32386
+ "storage-location-ok",
32387
+ ...STORAGE_DRAIN
32362
32388
  ]
32363
32389
  },
32390
+ {
32391
+ name: "bytesRemainingGb",
32392
+ label: "Bytes remaining (GB)",
32393
+ example: "42.3",
32394
+ group: "system",
32395
+ families: ["rule"],
32396
+ fields: [...RULE_TEXT],
32397
+ kinds: ["system"],
32398
+ systemEventKinds: ["storage-drain-progress"]
32399
+ },
32400
+ {
32401
+ name: "rateGbPerDay",
32402
+ label: "Drain rate (GB/day)",
32403
+ example: "1.20",
32404
+ group: "system",
32405
+ families: ["rule"],
32406
+ fields: [...RULE_TEXT],
32407
+ kinds: ["system"],
32408
+ systemEventKinds: ["storage-drain-progress"]
32409
+ },
32410
+ {
32411
+ name: "etaDate",
32412
+ label: "Estimated empty date",
32413
+ example: "2026-12-01",
32414
+ group: "system",
32415
+ families: ["rule"],
32416
+ fields: [...RULE_TEXT],
32417
+ kinds: ["system"],
32418
+ systemEventKinds: ["storage-drain-progress"]
32419
+ },
32364
32420
  {
32365
32421
  name: "freePercent",
32366
32422
  label: "Free space (%)",
@@ -32795,7 +32851,9 @@ var NC_TEMPLATE_HELD_BACK_SYSTEM_EVENT_KINDS = [
32795
32851
  "rule-repaired",
32796
32852
  "package-llm-silent",
32797
32853
  "package-llm-answered",
32798
- "device-command"
32854
+ "device-command",
32855
+ "storage-drain-progress",
32856
+ "storage-drain-complete"
32799
32857
  ];
32800
32858
  /**
32801
32859
  * Is this descriptor held back from the SERVED catalog as a whole (D647)?
package/dist/client.mjs CHANGED
@@ -1193,6 +1193,9 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
1193
1193
  /** Weather provider (HA `weather.*`). Tier-3, low MVP priority.
1194
1194
  * `weather` cap. */
1195
1195
  DeviceType["Weather"] = "weather";
1196
+ /** A physical weather station (Ecowitt outdoor array). `weather-station`
1197
+ * cap. Distinct from {@link Weather}, which is a forecast provider. */
1198
+ DeviceType["WeatherStation"] = "weather-station";
1196
1199
  /** Robot vacuum (HA `vacuum.*`). Tier-3. `vacuum-control` cap. */
1197
1200
  DeviceType["Vacuum"] = "vacuum";
1198
1201
  /** Robotic lawn mower (HA `lawn_mower.*`). Tier-3.
@@ -23334,6 +23337,8 @@ var NcSystemEventKindSchema = z.enum([
23334
23337
  "storage-location-low",
23335
23338
  "storage-location-critical",
23336
23339
  "storage-location-ok",
23340
+ "storage-drain-progress",
23341
+ "storage-drain-complete",
23337
23342
  "addon-crash-loop",
23338
23343
  "addon-update-available",
23339
23344
  "server-update-available",
@@ -27310,6 +27315,7 @@ var DEVICE_TYPE_ICON = {
27310
27315
  [DeviceType.Control]: "sliders-horizontal",
27311
27316
  [DeviceType.Presence]: "map-pin",
27312
27317
  [DeviceType.Weather]: "cloud-sun",
27318
+ [DeviceType.WeatherStation]: "cloud-sun",
27313
27319
  [DeviceType.Vacuum]: "bot",
27314
27320
  [DeviceType.LawnMower]: "tractor",
27315
27321
  [DeviceType.Container]: "box",
@@ -27606,6 +27612,10 @@ function createDeviceProxy(api, binding, opts) {
27606
27612
  const contactInterface = { getStatus: (input) => dispatch("contact", "contact", "getStatus", "query", input) };
27607
27613
  const controlInterface = {
27608
27614
  setValue: (input) => dispatch("control", "control", "setValue", "mutation", input),
27615
+ next: (input) => dispatch("control", "control", "next", "mutation", input),
27616
+ previous: (input) => dispatch("control", "control", "previous", "mutation", input),
27617
+ first: (input) => dispatch("control", "control", "first", "mutation", input),
27618
+ last: (input) => dispatch("control", "control", "last", "mutation", input),
27609
27619
  getStatus: (input) => dispatch("control", "control", "getStatus", "query", input)
27610
27620
  };
27611
27621
  const coverInterface = {
@@ -28081,6 +28091,7 @@ function createDeviceProxy(api, binding, opts) {
28081
28091
  getStatus: (input) => dispatch("water-heater", "waterHeater", "getStatus", "query", input)
28082
28092
  };
28083
28093
  const weatherInterface = { getStatus: (input) => dispatch("weather", "weather", "getStatus", "query", input) };
28094
+ const weatherStationInterface = { getStatus: (input) => dispatch("weather-station", "weatherStation", "getStatus", "query", input) };
28084
28095
  const webrtcSessionInterface = {
28085
28096
  listStreams: (input) => dispatch("webrtc-session", "webrtcSession", "listStreams", "query", input),
28086
28097
  createSession: (input) => dispatch("webrtc-session", "webrtcSession", "createSession", "mutation", input),
@@ -28363,6 +28374,7 @@ function createDeviceProxy(api, binding, opts) {
28363
28374
  vibration: createSliceHandle(stateSource, binding.deviceId, "vibration"),
28364
28375
  waterHeater: createSliceHandle(stateSource, binding.deviceId, "water-heater"),
28365
28376
  weather: createSliceHandle(stateSource, binding.deviceId, "weather"),
28377
+ weatherStation: createSliceHandle(stateSource, binding.deviceId, "weather-station"),
28366
28378
  zoneAnalytics: createSliceHandle(stateSource, binding.deviceId, "zone-analytics"),
28367
28379
  zoneRules: createSliceHandle(stateSource, binding.deviceId, "zone-rules"),
28368
28380
  zones: createSliceHandle(stateSource, binding.deviceId, "zones")
@@ -28468,6 +28480,7 @@ function createDeviceProxy(api, binding, opts) {
28468
28480
  ...bound("videoclips") ? { videoclips: videoclipsInterface } : {},
28469
28481
  ...bound("water-heater") ? { waterHeater: waterHeaterInterface } : {},
28470
28482
  ...bound("weather") ? { weather: weatherInterface } : {},
28483
+ ...bound("weather-station") ? { weatherStation: weatherStationInterface } : {},
28471
28484
  ...bound("webrtc-session") ? { webrtcSession: webrtcSessionInterface } : {},
28472
28485
  ...bound("zone-analytics") ? { zoneAnalytics: zoneAnalyticsInterface } : {},
28473
28486
  ...bound("zone-rules") ? { zoneRules: zoneRulesInterface } : {},
@@ -30346,7 +30359,7 @@ function systemEventFilterApplies(kind, filter) {
30346
30359
  switch (filter) {
30347
30360
  case "deviceIds": return kind.startsWith("device-") || kind.startsWith("stream-") || kind === "detection-blind" || kind.startsWith("motion-") || kind.startsWith("package-llm-") || kind.startsWith("recording-") || kind === "alarm-triggered";
30348
30361
  case "deviceTypes": return kind.startsWith("device-") || kind === "detection-blind" || kind.startsWith("motion-") || kind.startsWith("package-llm-");
30349
- case "nodeIds": return kind.startsWith("node-") || kind === "addon-crash-loop" || kind === "addon-update-available" || kind === "addon-updated" || kind === "server-update-available" || kind === "wrapper-update-available" || kind === "server-updated" || kind.startsWith("storage-location-") || kind.startsWith("alert-");
30362
+ case "nodeIds": return kind.startsWith("node-") || kind === "addon-crash-loop" || kind === "addon-update-available" || kind === "addon-updated" || kind === "server-update-available" || kind === "wrapper-update-available" || kind === "server-updated" || kind.startsWith("storage-location-") || kind.startsWith("storage-drain-") || kind.startsWith("alert-");
30350
30363
  case "packageNames": return kind.endsWith("update-available") || kind === "addon-updated" || kind === "node-updating" || kind === "server-updated";
30351
30364
  case "consumableLowPercent": return NC_CONSUMABLE_SYSTEM_EVENT_KINDS.includes(kind);
30352
30365
  case "commandActions":
@@ -30434,6 +30447,8 @@ var NC_SYSTEM_EVENT_FAMILY = {
30434
30447
  "storage-location-low": "system",
30435
30448
  "storage-location-critical": "system",
30436
30449
  "storage-location-ok": "system",
30450
+ "storage-drain-progress": "system",
30451
+ "storage-drain-complete": "system",
30437
30452
  "alarm-triggered": "alarm",
30438
30453
  "alarm-armed": "alarm",
30439
30454
  "alarm-disarmed": "alarm",
@@ -30590,6 +30605,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
30590
30605
  "storage-location-ok"
30591
30606
  ]
30592
30607
  },
30608
+ {
30609
+ id: "storage-drain",
30610
+ family: "system",
30611
+ label: "Storage drain progress",
30612
+ kinds: ["storage-drain-progress", "storage-drain-complete"]
30613
+ },
30593
30614
  {
30594
30615
  id: "alerts",
30595
30616
  family: "system",
@@ -31511,6 +31532,7 @@ var ALERT_EPISODE = [
31511
31532
  "alert-error",
31512
31533
  "alert-critical-resolved"
31513
31534
  ];
31535
+ var STORAGE_DRAIN = ["storage-drain-progress", "storage-drain-complete"];
31514
31536
  var DEVICE_ATTENTION = ["device-attention-required", "device-attention-resolved"];
31515
31537
  var UPDATES = [
31516
31538
  "addon-update-available",
@@ -32155,6 +32177,7 @@ var NC_TEMPLATE_VARS = [
32155
32177
  "storage-location-low",
32156
32178
  "storage-location-critical",
32157
32179
  "storage-location-ok",
32180
+ ...STORAGE_DRAIN,
32158
32181
  ...ALERT_EPISODE
32159
32182
  ]
32160
32183
  },
@@ -32178,6 +32201,7 @@ var NC_TEMPLATE_VARS = [
32178
32201
  "storage-location-low",
32179
32202
  "storage-location-critical",
32180
32203
  "storage-location-ok",
32204
+ ...STORAGE_DRAIN,
32181
32205
  ...ALERT_EPISODE
32182
32206
  ]
32183
32207
  },
@@ -32343,7 +32367,8 @@ var NC_TEMPLATE_VARS = [
32343
32367
  systemEventKinds: [
32344
32368
  "storage-location-low",
32345
32369
  "storage-location-critical",
32346
- "storage-location-ok"
32370
+ "storage-location-ok",
32371
+ ...STORAGE_DRAIN
32347
32372
  ]
32348
32373
  },
32349
32374
  {
@@ -32357,9 +32382,40 @@ var NC_TEMPLATE_VARS = [
32357
32382
  systemEventKinds: [
32358
32383
  "storage-location-low",
32359
32384
  "storage-location-critical",
32360
- "storage-location-ok"
32385
+ "storage-location-ok",
32386
+ ...STORAGE_DRAIN
32361
32387
  ]
32362
32388
  },
32389
+ {
32390
+ name: "bytesRemainingGb",
32391
+ label: "Bytes remaining (GB)",
32392
+ example: "42.3",
32393
+ group: "system",
32394
+ families: ["rule"],
32395
+ fields: [...RULE_TEXT],
32396
+ kinds: ["system"],
32397
+ systemEventKinds: ["storage-drain-progress"]
32398
+ },
32399
+ {
32400
+ name: "rateGbPerDay",
32401
+ label: "Drain rate (GB/day)",
32402
+ example: "1.20",
32403
+ group: "system",
32404
+ families: ["rule"],
32405
+ fields: [...RULE_TEXT],
32406
+ kinds: ["system"],
32407
+ systemEventKinds: ["storage-drain-progress"]
32408
+ },
32409
+ {
32410
+ name: "etaDate",
32411
+ label: "Estimated empty date",
32412
+ example: "2026-12-01",
32413
+ group: "system",
32414
+ families: ["rule"],
32415
+ fields: [...RULE_TEXT],
32416
+ kinds: ["system"],
32417
+ systemEventKinds: ["storage-drain-progress"]
32418
+ },
32363
32419
  {
32364
32420
  name: "freePercent",
32365
32421
  label: "Free space (%)",
@@ -32794,7 +32850,9 @@ var NC_TEMPLATE_HELD_BACK_SYSTEM_EVENT_KINDS = [
32794
32850
  "rule-repaired",
32795
32851
  "package-llm-silent",
32796
32852
  "package-llm-answered",
32797
- "device-command"
32853
+ "device-command",
32854
+ "storage-drain-progress",
32855
+ "storage-drain-complete"
32798
32856
  ];
32799
32857
  /**
32800
32858
  * Is this descriptor held back from the SERVED catalog as a whole (D647)?
@@ -82,6 +82,9 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
82
82
  /** Weather provider (HA `weather.*`). Tier-3, low MVP priority.
83
83
  * `weather` cap. */
84
84
  DeviceType["Weather"] = "weather";
85
+ /** A physical weather station (Ecowitt outdoor array). `weather-station`
86
+ * cap. Distinct from {@link Weather}, which is a forecast provider. */
87
+ DeviceType["WeatherStation"] = "weather-station";
85
88
  /** Robot vacuum (HA `vacuum.*`). Tier-3. `vacuum-control` cap. */
86
89
  DeviceType["Vacuum"] = "vacuum";
87
90
  /** Robotic lawn mower (HA `lawn_mower.*`). Tier-3.