@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.
- package/CHANGELOG.md +18 -0
- package/dist/addon.js +15 -5
- package/dist/addon.mjs +15 -5
- package/dist/capabilities/climate-control.cap.d.ts +48 -0
- package/dist/capabilities/control-select-navigation.d.ts +59 -0
- package/dist/capabilities/control.cap.d.ts +32 -0
- package/dist/capabilities/core-blocks.cap.d.ts +11 -0
- package/dist/capabilities/index.d.ts +5 -2
- package/dist/capabilities/notification-rules.cap.d.ts +46 -0
- package/dist/capabilities/osd-manager.cap.d.ts +12 -0
- package/dist/capabilities/weather-station.cap.d.ts +255 -0
- package/dist/client.js +62 -4
- package/dist/client.mjs +62 -4
- 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/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/enums/event-category.d.ts +12 -0
- package/dist/enums.js +1 -1
- package/dist/enums.mjs +1 -1
- package/dist/{event-category-Dv-Gcv1f.mjs → event-category-Dhcd0TRH.mjs} +12 -0
- package/dist/{event-category-Ps2LC8dN.js → event-category-d9kiqCqC.js} +12 -0
- package/dist/generated/addon-api.d.ts +42 -0
- package/dist/generated/addon-cap-facts.d.ts +1 -1
- package/dist/generated/cap-input-defaults.d.ts +1 -1
- package/dist/generated/cap-status-types.d.ts +3 -1
- package/dist/generated/cap-vocabulary.d.ts +1 -1
- package/dist/generated/capability-router-map.d.ts +5 -2
- package/dist/generated/collection-array-methods.d.ts +1 -1
- package/dist/generated/customize-catalog.d.ts +55 -2
- package/dist/generated/device-local-state.d.ts +3 -0
- package/dist/generated/device-proxy.d.ts +3 -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.js +491 -29
- package/dist/index.mjs +487 -30
- package/dist/node.js +2 -2
- package/dist/node.mjs +2 -2
- package/dist/{sleep-mEzgbYFJ.js → sleep-DR76P1OE.js} +322 -4
- package/dist/{sleep-B5XPl2YP.mjs → sleep-DbhT0DWV.mjs} +322 -4
- package/package.json +1 -1
|
@@ -79,6 +79,7 @@ import { valveCapability } from '../capabilities/valve.cap.js';
|
|
|
79
79
|
import { vibrationCapability } from '../capabilities/vibration.cap.js';
|
|
80
80
|
import { waterHeaterCapability } from '../capabilities/water-heater.cap.js';
|
|
81
81
|
import { weatherCapability } from '../capabilities/weather.cap.js';
|
|
82
|
+
import { weatherStationCapability } from '../capabilities/weather-station.cap.js';
|
|
82
83
|
import { zoneAnalyticsCapability } from '../capabilities/zone-analytics.cap.js';
|
|
83
84
|
import { zoneRulesCapability } from '../capabilities/zone-rules.cap.js';
|
|
84
85
|
import { zonesCapability } from '../capabilities/zones.cap.js';
|
|
@@ -174,6 +175,7 @@ export interface DeviceLocalState {
|
|
|
174
175
|
vibration: InferRuntimeState<typeof vibrationCapability>;
|
|
175
176
|
waterHeater: InferRuntimeState<typeof waterHeaterCapability>;
|
|
176
177
|
weather: InferRuntimeState<typeof weatherCapability>;
|
|
178
|
+
weatherStation: InferRuntimeState<typeof weatherStationCapability>;
|
|
177
179
|
zoneAnalytics: InferRuntimeState<typeof zoneAnalyticsCapability>;
|
|
178
180
|
zoneRules: InferRuntimeState<typeof zoneRulesCapability>;
|
|
179
181
|
zones: InferRuntimeState<typeof zonesCapability>;
|
|
@@ -279,6 +281,7 @@ export interface CapNameToRuntimeStateMap {
|
|
|
279
281
|
'vibration': InferRuntimeState<typeof vibrationCapability>;
|
|
280
282
|
'water-heater': InferRuntimeState<typeof waterHeaterCapability>;
|
|
281
283
|
'weather': InferRuntimeState<typeof weatherCapability>;
|
|
284
|
+
'weather-station': InferRuntimeState<typeof weatherStationCapability>;
|
|
282
285
|
'zone-analytics': InferRuntimeState<typeof zoneAnalyticsCapability>;
|
|
283
286
|
'zone-rules': InferRuntimeState<typeof zoneRulesCapability>;
|
|
284
287
|
'zones': InferRuntimeState<typeof zonesCapability>;
|
|
@@ -103,6 +103,7 @@ import type { vibrationCapability } from '../capabilities/vibration.cap.js';
|
|
|
103
103
|
import type { videoclipsCapability } from '../capabilities/videoclips.cap.js';
|
|
104
104
|
import type { waterHeaterCapability } from '../capabilities/water-heater.cap.js';
|
|
105
105
|
import type { weatherCapability } from '../capabilities/weather.cap.js';
|
|
106
|
+
import type { weatherStationCapability } from '../capabilities/weather-station.cap.js';
|
|
106
107
|
import type { webrtcSessionCapability } from '../capabilities/webrtc-session.cap.js';
|
|
107
108
|
import type { zoneAnalyticsCapability } from '../capabilities/zone-analytics.cap.js';
|
|
108
109
|
import type { zoneRulesCapability } from '../capabilities/zone-rules.cap.js';
|
|
@@ -213,6 +214,7 @@ export interface DeviceProxyState {
|
|
|
213
214
|
readonly vibration: SliceHandle<InferRuntimeState<typeof vibrationCapability>>;
|
|
214
215
|
readonly waterHeater: SliceHandle<InferRuntimeState<typeof waterHeaterCapability>>;
|
|
215
216
|
readonly weather: SliceHandle<InferRuntimeState<typeof weatherCapability>>;
|
|
217
|
+
readonly weatherStation: SliceHandle<InferRuntimeState<typeof weatherStationCapability>>;
|
|
216
218
|
readonly zoneAnalytics: SliceHandle<InferRuntimeState<typeof zoneAnalyticsCapability>>;
|
|
217
219
|
readonly zoneRules: SliceHandle<InferRuntimeState<typeof zoneRulesCapability>>;
|
|
218
220
|
readonly zones: SliceHandle<InferRuntimeState<typeof zonesCapability>>;
|
|
@@ -336,6 +338,7 @@ export interface DeviceProxy {
|
|
|
336
338
|
readonly videoclips?: InferDeviceProxyCap<typeof videoclipsCapability>;
|
|
337
339
|
readonly waterHeater?: InferDeviceProxyCap<typeof waterHeaterCapability>;
|
|
338
340
|
readonly weather?: InferDeviceProxyCap<typeof weatherCapability>;
|
|
341
|
+
readonly weatherStation?: InferDeviceProxyCap<typeof weatherStationCapability>;
|
|
339
342
|
readonly webrtcSession?: InferDeviceProxyCap<typeof webrtcSessionCapability>;
|
|
340
343
|
readonly zoneAnalytics?: InferDeviceProxyCap<typeof zoneAnalyticsCapability>;
|
|
341
344
|
readonly zoneRules?: InferDeviceProxyCap<typeof zoneRulesCapability>;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* can answer "may a rule actuate this?" without importing the schema barrel
|
|
6
6
|
* (~144MB RSS per runner, D28).
|
|
7
7
|
*
|
|
8
|
-
* Coverage:
|
|
8
|
+
* Coverage: 106 device-scoped capabilities.
|
|
9
9
|
*/
|
|
10
10
|
export declare const DEVICE_SCOPED_CAPS: ReadonlySet<string>;
|
|
11
11
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CapabilityHistoryField, CapabilityHistoryItems } from '../capabilities/capability-definition.js';
|
|
2
2
|
/**
|
|
3
3
|
* Cap history catalog, projected from every `*.cap.ts` `history` block.
|
|
4
|
-
* 45 caps with series (104 series),
|
|
4
|
+
* 45 caps with series (104 series), 38 caps answered `'none'`.
|
|
5
5
|
* Field keys are `runtimeState` paths (`a.b` into fixed objects only).
|
|
6
6
|
*/
|
|
7
7
|
export declare const HISTORY_CATALOG: Readonly<Record<string, Readonly<Record<string, CapabilityHistoryField>>>>;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* scope+access check inside `protectedProcedure` (see
|
|
7
7
|
* `server/backend/src/api/trpc/trpc.middleware.ts`).
|
|
8
8
|
*
|
|
9
|
-
* Coverage:
|
|
9
|
+
* Coverage: 1492 method paths across 207 capabilities.
|
|
10
10
|
*/
|
|
11
11
|
import type { MethodRole } from '../auth/viewer-access.js';
|
|
12
12
|
import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* system-scope cap that takes a deviceId was previously never device-filtered
|
|
7
7
|
* — see the generator header).
|
|
8
8
|
*
|
|
9
|
-
* Coverage:
|
|
9
|
+
* Coverage: 622 methods carry a device reference, of which
|
|
10
10
|
* 196 are on SYSTEM-scope caps.
|
|
11
11
|
*
|
|
12
12
|
* Top-level fields, number arrays, and one-level arrays of objects carrying
|
|
@@ -16,7 +16,7 @@ export interface RuntimeStatePolicy {
|
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
18
|
* Per-cap runtime-state policy, projected from every `*.cap.ts` that declares
|
|
19
|
-
* `runtimeState`.
|
|
19
|
+
* `runtimeState`. 84 caps: 42 `restored`, 42 `session`.
|
|
20
20
|
*
|
|
21
21
|
* A cap absent from this map has no runtime-state slice at all. A cap PRESENT
|
|
22
22
|
* with `durability: 'session'` has one and has decided not to keep it.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as DeviceType, i as DeviceRole, t as COMPOSED_DEVICE_STABLE_ID_PREFIX } from "./composed-stable-id-
|
|
1
|
+
import { a as DeviceType, i as DeviceRole, t as COMPOSED_DEVICE_STABLE_ID_PREFIX } from "./composed-stable-id-RvQIEpqg.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { createHash } from "node:crypto";
|
|
4
4
|
//#region src/ffmpeg/invocation.ts
|