@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
|
@@ -38,6 +38,7 @@ import type { doNotDisturbCapability } from '../capabilities/do-not-disturb.cap.
|
|
|
38
38
|
import type { doorbellCapability } from '../capabilities/doorbell.cap.js';
|
|
39
39
|
import type { energySystemCapability } from '../capabilities/energy-system.cap.js';
|
|
40
40
|
import type { enumSensorCapability } from '../capabilities/enum-sensor.cap.js';
|
|
41
|
+
import type { errorCapability } from '../capabilities/error.cap.js';
|
|
41
42
|
import type { eventEmitterCapability } from '../capabilities/event-emitter.cap.js';
|
|
42
43
|
import type { fanControlCapability } from '../capabilities/fan-control.cap.js';
|
|
43
44
|
import type { featureProbeCapability } from '../capabilities/feature-probe.cap.js';
|
|
@@ -103,6 +104,7 @@ import type { vibrationCapability } from '../capabilities/vibration.cap.js';
|
|
|
103
104
|
import type { videoclipsCapability } from '../capabilities/videoclips.cap.js';
|
|
104
105
|
import type { waterHeaterCapability } from '../capabilities/water-heater.cap.js';
|
|
105
106
|
import type { weatherCapability } from '../capabilities/weather.cap.js';
|
|
107
|
+
import type { weatherStationCapability } from '../capabilities/weather-station.cap.js';
|
|
106
108
|
import type { webrtcSessionCapability } from '../capabilities/webrtc-session.cap.js';
|
|
107
109
|
import type { zoneAnalyticsCapability } from '../capabilities/zone-analytics.cap.js';
|
|
108
110
|
import type { zoneRulesCapability } from '../capabilities/zone-rules.cap.js';
|
|
@@ -157,6 +159,7 @@ export interface DeviceProxyState {
|
|
|
157
159
|
readonly doorbell: SliceHandle<InferRuntimeState<typeof doorbellCapability>>;
|
|
158
160
|
readonly energySystem: SliceHandle<InferRuntimeState<typeof energySystemCapability>>;
|
|
159
161
|
readonly enumSensor: SliceHandle<InferRuntimeState<typeof enumSensorCapability>>;
|
|
162
|
+
readonly error: SliceHandle<InferRuntimeState<typeof errorCapability>>;
|
|
160
163
|
readonly eventEmitter: SliceHandle<InferRuntimeState<typeof eventEmitterCapability>>;
|
|
161
164
|
readonly fanControl: SliceHandle<InferRuntimeState<typeof fanControlCapability>>;
|
|
162
165
|
readonly featureProbe: SliceHandle<InferRuntimeState<typeof featureProbeCapability>>;
|
|
@@ -213,6 +216,7 @@ export interface DeviceProxyState {
|
|
|
213
216
|
readonly vibration: SliceHandle<InferRuntimeState<typeof vibrationCapability>>;
|
|
214
217
|
readonly waterHeater: SliceHandle<InferRuntimeState<typeof waterHeaterCapability>>;
|
|
215
218
|
readonly weather: SliceHandle<InferRuntimeState<typeof weatherCapability>>;
|
|
219
|
+
readonly weatherStation: SliceHandle<InferRuntimeState<typeof weatherStationCapability>>;
|
|
216
220
|
readonly zoneAnalytics: SliceHandle<InferRuntimeState<typeof zoneAnalyticsCapability>>;
|
|
217
221
|
readonly zoneRules: SliceHandle<InferRuntimeState<typeof zoneRulesCapability>>;
|
|
218
222
|
readonly zones: SliceHandle<InferRuntimeState<typeof zonesCapability>>;
|
|
@@ -271,6 +275,7 @@ export interface DeviceProxy {
|
|
|
271
275
|
readonly doorbell?: InferDeviceProxyCap<typeof doorbellCapability>;
|
|
272
276
|
readonly energySystem?: InferDeviceProxyCap<typeof energySystemCapability>;
|
|
273
277
|
readonly enumSensor?: InferDeviceProxyCap<typeof enumSensorCapability>;
|
|
278
|
+
readonly error?: InferDeviceProxyCap<typeof errorCapability>;
|
|
274
279
|
readonly eventEmitter?: InferDeviceProxyCap<typeof eventEmitterCapability>;
|
|
275
280
|
readonly fanControl?: InferDeviceProxyCap<typeof fanControlCapability>;
|
|
276
281
|
readonly featureProbe?: InferDeviceProxyCap<typeof featureProbeCapability>;
|
|
@@ -336,6 +341,7 @@ export interface DeviceProxy {
|
|
|
336
341
|
readonly videoclips?: InferDeviceProxyCap<typeof videoclipsCapability>;
|
|
337
342
|
readonly waterHeater?: InferDeviceProxyCap<typeof waterHeaterCapability>;
|
|
338
343
|
readonly weather?: InferDeviceProxyCap<typeof weatherCapability>;
|
|
344
|
+
readonly weatherStation?: InferDeviceProxyCap<typeof weatherStationCapability>;
|
|
339
345
|
readonly webrtcSession?: InferDeviceProxyCap<typeof webrtcSessionCapability>;
|
|
340
346
|
readonly zoneAnalytics?: InferDeviceProxyCap<typeof zoneAnalyticsCapability>;
|
|
341
347
|
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: 107 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), 39 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: 1493 method paths across 208 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: 623 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`. 85 caps: 43 `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
|
package/dist/index.d.ts
CHANGED
|
@@ -275,6 +275,7 @@ export type { DeviceRestoreRetrySchedulerOptions, InitialRestoreFailure, Permane
|
|
|
275
275
|
export { DEVICE_RESTORE_RETRY_CONCURRENCY, DEVICE_RESTORE_RETRY_DELAYS_MS, DeviceRestoreRetryScheduler, } from './device/device-restore-retry.js';
|
|
276
276
|
export type { IDeviceRuntimeState, RuntimeStateWriteFailed, RuntimeStateWriter, } from './device/device-runtime-state.js';
|
|
277
277
|
export { DeviceRuntimeState } from './device/device-runtime-state.js';
|
|
278
|
+
export { buildDeviceErrorAlert, type DeviceErrorEdge, deviceErrorAlertId, deviceErrorEdge, } from './device/device-error-episode.js';
|
|
278
279
|
export type { SliceEventBus, SliceHandle, SliceHandleApi, SliceHandleSource, } from './device/device-state-handle.js';
|
|
279
280
|
export { createEventBusSliceSource, createLazyTrpcSource, createMirrorSource, createSliceHandle, } from './device/device-state-handle.js';
|
|
280
281
|
export { ChargingStatus, DeviceFeature, DeviceRole, DeviceType, featuresOfBoundCaps, } from './device/device-type.js';
|