@camstack/types 1.2.589 → 1.2.590
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 +6 -0
- package/dist/addon.js +4 -4
- package/dist/addon.mjs +4 -4
- package/dist/capabilities/battery.cap.d.ts +7 -41
- package/dist/capabilities/index.d.ts +5 -1
- package/dist/capabilities/low-power-sleep.cap.d.ts +83 -0
- package/dist/capabilities/resync.cap.d.ts +40 -0
- package/dist/client.js +9 -4
- package/dist/client.mjs +9 -4
- package/dist/{composed-stable-id-Kt5VKzGZ.mjs → composed-stable-id-BNTaDZEh.mjs} +9 -8
- package/dist/{composed-stable-id-DDv-Og0u.js → composed-stable-id-BdeYe5dD.js} +9 -8
- package/dist/device/device-feature-requirements.d.ts +3 -4
- package/dist/device/device-profile.d.ts +1 -1
- package/dist/device/device-type.d.ts +9 -8
- package/dist/device/low-power-sleep.d.ts +19 -0
- package/dist/device/resync-through-adoption.d.ts +12 -0
- package/dist/enums/event-category.d.ts +1 -1
- package/dist/enums.js +1 -1
- package/dist/enums.mjs +1 -1
- package/dist/{event-category-CE_VCE2G.js → event-category-BKxXXxnV.js} +1 -1
- package/dist/{event-category-Hwx_JSCU.mjs → event-category-CY27-fF0.mjs} +1 -1
- package/dist/generated/addon-api.d.ts +37 -8
- package/dist/generated/addon-cap-facts.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 +8 -2
- package/dist/generated/device-local-state.d.ts +3 -0
- package/dist/generated/device-proxy.d.ts +5 -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-CbdShcW1.js → implemented-methods-BarLh7tc.js} +1 -1
- package/dist/{implemented-methods-BiV3Y-40.mjs → implemented-methods-k3KProJd.mjs} +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +252 -66
- package/dist/index.mjs +246 -67
- package/dist/interfaces/event-bus.d.ts +1 -1
- package/dist/node.js +2 -2
- package/dist/node.mjs +2 -2
- package/dist/{sleep-CICYFVJf.js → sleep-BA_SIc0O.js} +47 -9
- package/dist/{sleep-CFN40XWx.mjs → sleep-BT1bLgPq.mjs} +47 -9
- package/package.json +1 -1
|
@@ -497,7 +497,7 @@ export declare enum EventCategory {
|
|
|
497
497
|
*/
|
|
498
498
|
NetworkLinkOnStatusChanged = "network-link.onStatusChanged",
|
|
499
499
|
/**
|
|
500
|
-
* Emitted by the battery cap provider WHEN `
|
|
500
|
+
* Emitted by the battery cap provider WHEN `wakeUp` enters the
|
|
501
501
|
* "wake in progress" window — between the Baichuan wake-up issue and
|
|
502
502
|
* the camera's first dialed-back RTP packet. The stream-broker
|
|
503
503
|
* manager subscribes to flip the per-broker placeholder reason to
|
package/dist/enums.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_event_category = require("./event-category-
|
|
2
|
+
const require_event_category = require("./event-category-BKxXXxnV.js");
|
|
3
3
|
//#region src/enums/event-source-type.ts
|
|
4
4
|
var EventSourceType = /* @__PURE__ */ function(EventSourceType) {
|
|
5
5
|
EventSourceType["Addon"] = "addon";
|
package/dist/enums.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as EventCategory } from "./event-category-
|
|
1
|
+
import { t as EventCategory } from "./event-category-CY27-fF0.mjs";
|
|
2
2
|
//#region src/enums/event-source-type.ts
|
|
3
3
|
var EventSourceType = /* @__PURE__ */ function(EventSourceType) {
|
|
4
4
|
EventSourceType["Addon"] = "addon";
|
|
@@ -498,7 +498,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
498
498
|
*/
|
|
499
499
|
EventCategory["NetworkLinkOnStatusChanged"] = "network-link.onStatusChanged";
|
|
500
500
|
/**
|
|
501
|
-
* Emitted by the battery cap provider WHEN `
|
|
501
|
+
* Emitted by the battery cap provider WHEN `wakeUp` enters the
|
|
502
502
|
* "wake in progress" window — between the Baichuan wake-up issue and
|
|
503
503
|
* the camera's first dialed-back RTP packet. The stream-broker
|
|
504
504
|
* manager subscribes to flip the per-broker placeholder reason to
|
|
@@ -498,7 +498,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
498
498
|
*/
|
|
499
499
|
EventCategory["NetworkLinkOnStatusChanged"] = "network-link.onStatusChanged";
|
|
500
500
|
/**
|
|
501
|
-
* Emitted by the battery cap provider WHEN `
|
|
501
|
+
* Emitted by the battery cap provider WHEN `wakeUp` enters the
|
|
502
502
|
* "wake in progress" window — between the Baichuan wake-up issue and
|
|
503
503
|
* the camera's first dialed-back RTP packet. The stream-broker
|
|
504
504
|
* manager subscribes to flip the per-broker placeholder reason to
|
|
@@ -20,7 +20,6 @@ import type { audioCodecCapability } from '../capabilities/audio-codec.cap.js';
|
|
|
20
20
|
import type { audioMetricsCapability } from '../capabilities/audio-metrics.cap.js';
|
|
21
21
|
import type { automationControlCapability } from '../capabilities/automation-control.cap.js';
|
|
22
22
|
import type { backupCapability } from '../capabilities/backup.cap.js';
|
|
23
|
-
import type { batteryCapability } from '../capabilities/battery.cap.js';
|
|
24
23
|
import type { boardKeySourceCapability } from '../capabilities/board-key-source.cap.js';
|
|
25
24
|
import type { brightnessCapability } from '../capabilities/brightness.cap.js';
|
|
26
25
|
import type { brokerCapability } from '../capabilities/broker.cap.js';
|
|
@@ -83,6 +82,7 @@ import type { localNetworkCapability } from '../capabilities/local-network.cap.j
|
|
|
83
82
|
import type { lockControlCapability } from '../capabilities/lock-control.cap.js';
|
|
84
83
|
import type { logChannelsCapability } from '../capabilities/log-channels.cap.js';
|
|
85
84
|
import type { loginMethodCapability } from '../capabilities/login-method.cap.js';
|
|
85
|
+
import type { lowPowerSleepCapability } from '../capabilities/low-power-sleep.cap.js';
|
|
86
86
|
import type { mediaPlayerCapability } from '../capabilities/media-player.cap.js';
|
|
87
87
|
import type { meshNetworkCapability } from '../capabilities/mesh-network.cap.js';
|
|
88
88
|
import type { metricsProviderCapability } from '../capabilities/metrics-provider.cap.js';
|
|
@@ -130,6 +130,7 @@ import type { recordingCapability } from '../capabilities/recording.cap.js';
|
|
|
130
130
|
import type { recordsCapability } from '../capabilities/records.cap.js';
|
|
131
131
|
import type { remoteLayoutComponentsCapability } from '../capabilities/remote-layout-components.cap.js';
|
|
132
132
|
import type { remoteCapability } from '../capabilities/remote.cap.js';
|
|
133
|
+
import type { resyncCapability } from '../capabilities/resync.cap.js';
|
|
133
134
|
import type { sceneMonitorCapability } from '../capabilities/scene-monitor.cap.js';
|
|
134
135
|
import type { schedulersCapability } from '../capabilities/schedulers.cap.js';
|
|
135
136
|
import type { scriptRunnerCapability } from '../capabilities/script-runner.cap.js';
|
|
@@ -1196,13 +1197,6 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
1196
1197
|
output: z.infer<typeof DEVICE_STATUS_METHOD.getStatus.output>;
|
|
1197
1198
|
meta: object;
|
|
1198
1199
|
}>;
|
|
1199
|
-
wakeForStream: TRPCMutationProcedure<{
|
|
1200
|
-
input: {
|
|
1201
|
-
[x: string]: unknown;
|
|
1202
|
-
} & z.input<typeof batteryCapability.methods.wakeForStream.input>;
|
|
1203
|
-
output: z.infer<typeof batteryCapability.methods.wakeForStream.output>;
|
|
1204
|
-
meta: object;
|
|
1205
|
-
}>;
|
|
1206
1200
|
}>>;
|
|
1207
1201
|
binary: TRPCBuiltRouter<{
|
|
1208
1202
|
ctx: TrpcContext;
|
|
@@ -5426,6 +5420,27 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
5426
5420
|
meta: object;
|
|
5427
5421
|
}>;
|
|
5428
5422
|
}>>;
|
|
5423
|
+
lowPowerSleep: TRPCBuiltRouter<{
|
|
5424
|
+
ctx: TrpcContext;
|
|
5425
|
+
meta: object;
|
|
5426
|
+
errorShape: AugmentedErrorShape;
|
|
5427
|
+
transformer: true;
|
|
5428
|
+
}, TRPCDecorateCreateRouterOptions<{
|
|
5429
|
+
getStatus: TRPCQueryProcedure<{
|
|
5430
|
+
input: {
|
|
5431
|
+
[x: string]: unknown;
|
|
5432
|
+
} & z.input<typeof DEVICE_STATUS_METHOD.getStatus.input>;
|
|
5433
|
+
output: z.infer<typeof DEVICE_STATUS_METHOD.getStatus.output>;
|
|
5434
|
+
meta: object;
|
|
5435
|
+
}>;
|
|
5436
|
+
wakeUp: TRPCMutationProcedure<{
|
|
5437
|
+
input: {
|
|
5438
|
+
[x: string]: unknown;
|
|
5439
|
+
} & z.input<typeof lowPowerSleepCapability.methods.wakeUp.input>;
|
|
5440
|
+
output: z.infer<typeof lowPowerSleepCapability.methods.wakeUp.output>;
|
|
5441
|
+
meta: object;
|
|
5442
|
+
}>;
|
|
5443
|
+
}>>;
|
|
5429
5444
|
mediaPlayer: TRPCBuiltRouter<{
|
|
5430
5445
|
ctx: TrpcContext;
|
|
5431
5446
|
meta: object;
|
|
@@ -9478,6 +9493,20 @@ export type AppRouter = TrpcCoreRouter<{
|
|
|
9478
9493
|
meta: object;
|
|
9479
9494
|
}>;
|
|
9480
9495
|
}>>;
|
|
9496
|
+
resync: TRPCBuiltRouter<{
|
|
9497
|
+
ctx: TrpcContext;
|
|
9498
|
+
meta: object;
|
|
9499
|
+
errorShape: AugmentedErrorShape;
|
|
9500
|
+
transformer: true;
|
|
9501
|
+
}, TRPCDecorateCreateRouterOptions<{
|
|
9502
|
+
resync: TRPCMutationProcedure<{
|
|
9503
|
+
input: {
|
|
9504
|
+
[x: string]: unknown;
|
|
9505
|
+
} & z.input<typeof resyncCapability.methods.resync.input>;
|
|
9506
|
+
output: z.infer<typeof resyncCapability.methods.resync.output>;
|
|
9507
|
+
meta: object;
|
|
9508
|
+
}>;
|
|
9509
|
+
}>>;
|
|
9481
9510
|
runningState: TRPCBuiltRouter<{
|
|
9482
9511
|
ctx: TrpcContext;
|
|
9483
9512
|
meta: object;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* `ALL_CAPABILITY_DEFINITIONS` (the whole Zod schema graph, ~+100 MB heap per
|
|
6
6
|
* runner). See docs/decisions/adr-0028.md.
|
|
7
7
|
*
|
|
8
|
-
* Coverage: 1 advance-derived caps,
|
|
8
|
+
* Coverage: 1 advance-derived caps, 89 caps with 475 state leaves, 15 caps with a declared method timeout.
|
|
9
9
|
*/
|
|
10
10
|
/** A bindable scalar in a capability's runtime state. */
|
|
11
11
|
export interface CapStateLeaf {
|
|
@@ -44,6 +44,7 @@ import type { ImageSettingsStatusSchema } from '../capabilities/image-settings.c
|
|
|
44
44
|
import type { IntercomStatusSchema } from '../capabilities/intercom.cap.js';
|
|
45
45
|
import type { LawnMowerControlStatusSchema } from '../capabilities/lawn-mower-control.cap.js';
|
|
46
46
|
import type { LockControlStatusSchema } from '../capabilities/lock-control.cap.js';
|
|
47
|
+
import type { LowPowerSleepStatusSchema } from '../capabilities/low-power-sleep.cap.js';
|
|
47
48
|
import type { MediaPlayerStatusSchema } from '../capabilities/media-player.cap.js';
|
|
48
49
|
import type { MeterStatusSchema } from '../capabilities/meter.cap.js';
|
|
49
50
|
import type { MotionStatusSchema } from '../capabilities/motion.cap.js';
|
|
@@ -138,6 +139,7 @@ export type CapStatusTypeMap = {
|
|
|
138
139
|
readonly 'intercom': z.infer<typeof IntercomStatusSchema>;
|
|
139
140
|
readonly 'lawn-mower-control': z.infer<typeof LawnMowerControlStatusSchema>;
|
|
140
141
|
readonly 'lock-control': z.infer<typeof LockControlStatusSchema>;
|
|
142
|
+
readonly 'low-power-sleep': z.infer<typeof LowPowerSleepStatusSchema>;
|
|
141
143
|
readonly 'media-player': z.infer<typeof MediaPlayerStatusSchema>;
|
|
142
144
|
readonly 'meter': z.infer<typeof MeterStatusSchema>;
|
|
143
145
|
readonly 'motion': z.infer<typeof MotionStatusSchema>;
|
|
@@ -189,4 +191,4 @@ export type CapNameWithStatus = keyof CapStatusTypeMap;
|
|
|
189
191
|
* aggregator to enumerate caps whose `status` should be polled +
|
|
190
192
|
* streamed via `subscribeDeviceStatusAggregate`.
|
|
191
193
|
*/
|
|
192
|
-
export declare const CAP_NAMES_WITH_STATUS: readonly ["accessories", "air-quality-sensor", "alarm-panel", "ambient-light-sensor", "automation-control", "battery", "binary", "brightness", "broker", "camera-credentials", "carbon-monoxide", "climate-control", "color", "connectivity", "consumables", "contact", "control", "cover", "day-night", "device-adoption", "device-export", "device-status", "dishwasher", "do-not-disturb", "doorbell", "energy-system", "enum-sensor", "error", "event-emitter", "fan-control", "feature-probe", "flood", "gas", "group-active", "group-commands", "group-status", "heat-pump-status", "heating-valve", "humidifier", "humidity-sensor", "image", "image-settings", "intercom", "lawn-mower-control", "lock-control", "media-player", "meter", "motion", "motion-trigger", "motion-zones", "mqtt-broker", "native-object-detection", "navigation", "network-link", "notifier", "numeric-sensor", "osd", "pet-feeder", "pet-fountain", "power-meter", "presence", "pressure-sensor", "privacy-mask", "ptz", "ptz-autotrack", "pump-cycle", "recording-archive", "recording-onboard", "recording-signal", "running-state", "scene-monitor", "script-runner", "siren", "smoke", "snapshot", "stream-params", "switch", "tamper", "temperature-sensor", "timed-run", "update", "vacuum-control", "valve", "vibration", "water-heater", "weather", "weather-station", "workload"];
|
|
194
|
+
export declare const CAP_NAMES_WITH_STATUS: readonly ["accessories", "air-quality-sensor", "alarm-panel", "ambient-light-sensor", "automation-control", "battery", "binary", "brightness", "broker", "camera-credentials", "carbon-monoxide", "climate-control", "color", "connectivity", "consumables", "contact", "control", "cover", "day-night", "device-adoption", "device-export", "device-status", "dishwasher", "do-not-disturb", "doorbell", "energy-system", "enum-sensor", "error", "event-emitter", "fan-control", "feature-probe", "flood", "gas", "group-active", "group-commands", "group-status", "heat-pump-status", "heating-valve", "humidifier", "humidity-sensor", "image", "image-settings", "intercom", "lawn-mower-control", "lock-control", "low-power-sleep", "media-player", "meter", "motion", "motion-trigger", "motion-zones", "mqtt-broker", "native-object-detection", "navigation", "network-link", "notifier", "numeric-sensor", "osd", "pet-feeder", "pet-fountain", "power-meter", "presence", "pressure-sensor", "privacy-mask", "ptz", "ptz-autotrack", "pump-cycle", "recording-archive", "recording-onboard", "recording-signal", "running-state", "scene-monitor", "script-runner", "siren", "smoke", "snapshot", "stream-params", "switch", "tamper", "temperature-sensor", "timed-run", "update", "vacuum-control", "valve", "vibration", "water-heater", "weather", "weather-station", "workload"];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CapVocabularyMap } from '../device/cap-vocabulary/types.js';
|
|
2
2
|
/**
|
|
3
3
|
* THE cap vocabulary (D920), projected from the declarations of every
|
|
4
|
-
* `*.cap.ts` (D1050):
|
|
4
|
+
* `*.cap.ts` (D1050): 213 caps (111 device, 102 system).
|
|
5
5
|
* Device caps in their declared picker order, then system caps by name.
|
|
6
6
|
*/
|
|
7
7
|
export declare const CAP_VOCABULARY: CapVocabularyMap;
|
|
@@ -106,6 +106,7 @@ export { lockControlCapability } from '../capabilities/lock-control.cap.js';
|
|
|
106
106
|
export { logChannelsCapability } from '../capabilities/log-channels.cap.js';
|
|
107
107
|
export { logDestinationCapability } from '../capabilities/log-destination.cap.js';
|
|
108
108
|
export { loginMethodCapability } from '../capabilities/login-method.cap.js';
|
|
109
|
+
export { lowPowerSleepCapability } from '../capabilities/low-power-sleep.cap.js';
|
|
109
110
|
export { mediaPlayerCapability } from '../capabilities/media-player.cap.js';
|
|
110
111
|
export { meshNetworkCapability } from '../capabilities/mesh-network.cap.js';
|
|
111
112
|
export { meterCapability } from '../capabilities/meter.cap.js';
|
|
@@ -159,6 +160,7 @@ export { recordingSignalCapability } from '../capabilities/recording-signal.cap.
|
|
|
159
160
|
export { recordsCapability } from '../capabilities/records.cap.js';
|
|
160
161
|
export { remoteCapability } from '../capabilities/remote.cap.js';
|
|
161
162
|
export { remoteLayoutComponentsCapability } from '../capabilities/remote-layout-components.cap.js';
|
|
163
|
+
export { resyncCapability } from '../capabilities/resync.cap.js';
|
|
162
164
|
export { runningStateCapability } from '../capabilities/running-state.cap.js';
|
|
163
165
|
export { sceneMonitorCapability } from '../capabilities/scene-monitor.cap.js';
|
|
164
166
|
export { schedulersCapability } from '../capabilities/schedulers.cap.js';
|
|
@@ -318,6 +320,7 @@ export declare const CAPABILITY_NAMES: {
|
|
|
318
320
|
readonly logChannels: 'log-channels';
|
|
319
321
|
readonly logDestination: 'log-destination';
|
|
320
322
|
readonly loginMethod: 'login-method';
|
|
323
|
+
readonly lowPowerSleep: 'low-power-sleep';
|
|
321
324
|
readonly mediaPlayer: 'media-player';
|
|
322
325
|
readonly meshNetwork: 'mesh-network';
|
|
323
326
|
readonly meter: 'meter';
|
|
@@ -371,6 +374,7 @@ export declare const CAPABILITY_NAMES: {
|
|
|
371
374
|
readonly records: 'records';
|
|
372
375
|
readonly remote: 'remote';
|
|
373
376
|
readonly remoteLayoutComponents: 'remote-layout-components';
|
|
377
|
+
readonly resync: 'resync';
|
|
374
378
|
readonly runningState: 'running-state';
|
|
375
379
|
readonly sceneMonitor: 'scene-monitor';
|
|
376
380
|
readonly schedulers: 'schedulers';
|
|
@@ -543,6 +547,7 @@ export interface CapabilityRouterMap<TRouter = unknown> {
|
|
|
543
547
|
readonly logChannels: TRouter;
|
|
544
548
|
readonly logDestination: TRouter;
|
|
545
549
|
readonly loginMethod: TRouter;
|
|
550
|
+
readonly lowPowerSleep: TRouter;
|
|
546
551
|
readonly mediaPlayer: TRouter;
|
|
547
552
|
readonly meshNetwork: TRouter;
|
|
548
553
|
readonly meter: TRouter;
|
|
@@ -596,6 +601,7 @@ export interface CapabilityRouterMap<TRouter = unknown> {
|
|
|
596
601
|
readonly records: TRouter;
|
|
597
602
|
readonly remote: TRouter;
|
|
598
603
|
readonly remoteLayoutComponents: TRouter;
|
|
604
|
+
readonly resync: TRouter;
|
|
599
605
|
readonly runningState: TRouter;
|
|
600
606
|
readonly sceneMonitor: TRouter;
|
|
601
607
|
readonly schedulers: TRouter;
|
|
@@ -647,8 +653,8 @@ export interface CapabilityRouterMap<TRouter = unknown> {
|
|
|
647
653
|
readonly zoneRules: TRouter;
|
|
648
654
|
readonly zones: TRouter;
|
|
649
655
|
}
|
|
650
|
-
/** Capability names whose mode is `singleton` (
|
|
651
|
-
export declare const SINGLETON_CAPABILITY_NAMES: readonly ['accessories', 'actions', 'addon-pages', 'addon-settings', 'addon-widgets', 'addons', 'admin-ui', 'air-quality-sensor', 'alarm-panel', 'alerts', 'ambient-light-sensor', 'audio-analysis', 'audio-analyzer', 'audio-codec', 'audio-metrics', 'automation-control', 'backup', 'battery', 'binary', 'brightness', 'button', 'calendars', 'camera-credentials', 'camera-grid-layout', 'camera-pipeline-config', 'camera-streams', 'carbon-monoxide', 'climate-control', 'cluster-update', 'color', 'composer', 'connectivity', 'consumables', 'contact', 'control', 'core-blocks', 'cover', 'database-snapshot', 'day-night', 'decoder', 'detection-pipeline', 'device-admin-link', 'device-credentials', 'device-history', 'device-manager', 'device-ops', 'device-runs', 'device-state', 'device-status', 'device-transitions', 'dishwasher', 'display-palette', 'do-not-disturb', 'doorbell', 'energy-system', 'enum-sensor', 'error', 'event-emitter', 'face-gallery', 'fan-control', 'fan-presets', 'feature-probe', 'filesystem-browse', 'flood', 'gas', 'group-active', 'group-commands', 'group-status', 'heat-pump-control', 'heat-pump-status', 'heating-valve', 'hero-layout', 'humidifier', 'humidity-sensor', 'image', 'image-settings', 'integrations', 'intercom', 'ir-transmitter', 'keychain', 'keychain-admin', 'lawn-mower-control', 'llm-runtime', 'local-network', 'lock-control', 'media-player', 'meter', 'metrics-provider', 'migrations', 'model-convert', 'model-distributor', 'motion', 'motion-detection', 'motion-trigger', 'motion-zones', 'native-object-detection', 'navigation', 'network-link', 'network-quality', 'node-certificates', 'nodes', 'notification-rules', 'notifier', 'numeric-sensor', 'osd', 'osd-manager', 'pet-feeder', 'pet-fountain', 'pipeline-analytics', 'pipeline-executor', 'pipeline-orchestrator', 'pipeline-runner', 'plate-gallery', 'platform-probe', 'power-meter', 'power-source', 'presence', 'pressure-sensor', 'privacy-mask', 'ptz', 'ptz-autotrack', 'pump-cycle', 'reboot', 'record-entries', 'recording-archive', 'recording-export', 'recording-onboard', 'recording-signal', 'records', 'remote', 'running-state', 'scene-monitor', 'schedulers', 'script-runner', 'server-management', 'settings-store', 'siren', 'smoke', 'snapshot', 'sso-bridge', 'storage', 'storage-admin', 'storage-migration', 'stream-broker', 'stream-catalog', 'stream-params', 'stream-signals', 'switch', 'system', 'tags', 'tamper', 'temperature-sensor', 'terminal-session', 'timed-run', 'toast', 'training', 'update', 'user-management', 'vacuum-control', 'valve', 'vector-store', 'vibration', 'viewer-ui', 'water-heater', 'weather', 'weather-station', 'webrtc-session', 'workload', 'zone-analytics', 'zone-rules', 'zones'];
|
|
656
|
+
/** Capability names whose mode is `singleton` (173 caps). */
|
|
657
|
+
export declare const SINGLETON_CAPABILITY_NAMES: readonly ['accessories', 'actions', 'addon-pages', 'addon-settings', 'addon-widgets', 'addons', 'admin-ui', 'air-quality-sensor', 'alarm-panel', 'alerts', 'ambient-light-sensor', 'audio-analysis', 'audio-analyzer', 'audio-codec', 'audio-metrics', 'automation-control', 'backup', 'battery', 'binary', 'brightness', 'button', 'calendars', 'camera-credentials', 'camera-grid-layout', 'camera-pipeline-config', 'camera-streams', 'carbon-monoxide', 'climate-control', 'cluster-update', 'color', 'composer', 'connectivity', 'consumables', 'contact', 'control', 'core-blocks', 'cover', 'database-snapshot', 'day-night', 'decoder', 'detection-pipeline', 'device-admin-link', 'device-credentials', 'device-history', 'device-manager', 'device-ops', 'device-runs', 'device-state', 'device-status', 'device-transitions', 'dishwasher', 'display-palette', 'do-not-disturb', 'doorbell', 'energy-system', 'enum-sensor', 'error', 'event-emitter', 'face-gallery', 'fan-control', 'fan-presets', 'feature-probe', 'filesystem-browse', 'flood', 'gas', 'group-active', 'group-commands', 'group-status', 'heat-pump-control', 'heat-pump-status', 'heating-valve', 'hero-layout', 'humidifier', 'humidity-sensor', 'image', 'image-settings', 'integrations', 'intercom', 'ir-transmitter', 'keychain', 'keychain-admin', 'lawn-mower-control', 'llm-runtime', 'local-network', 'lock-control', 'low-power-sleep', 'media-player', 'meter', 'metrics-provider', 'migrations', 'model-convert', 'model-distributor', 'motion', 'motion-detection', 'motion-trigger', 'motion-zones', 'native-object-detection', 'navigation', 'network-link', 'network-quality', 'node-certificates', 'nodes', 'notification-rules', 'notifier', 'numeric-sensor', 'osd', 'osd-manager', 'pet-feeder', 'pet-fountain', 'pipeline-analytics', 'pipeline-executor', 'pipeline-orchestrator', 'pipeline-runner', 'plate-gallery', 'platform-probe', 'power-meter', 'power-source', 'presence', 'pressure-sensor', 'privacy-mask', 'ptz', 'ptz-autotrack', 'pump-cycle', 'reboot', 'record-entries', 'recording-archive', 'recording-export', 'recording-onboard', 'recording-signal', 'records', 'remote', 'resync', 'running-state', 'scene-monitor', 'schedulers', 'script-runner', 'server-management', 'settings-store', 'siren', 'smoke', 'snapshot', 'sso-bridge', 'storage', 'storage-admin', 'storage-migration', 'stream-broker', 'stream-catalog', 'stream-params', 'stream-signals', 'switch', 'system', 'tags', 'tamper', 'temperature-sensor', 'terminal-session', 'timed-run', 'toast', 'training', 'update', 'user-management', 'vacuum-control', 'valve', 'vector-store', 'vibration', 'viewer-ui', 'water-heater', 'weather', 'weather-station', 'webrtc-session', 'workload', 'zone-analytics', 'zone-rules', 'zones'];
|
|
652
658
|
/** Union of singleton capability names (literal string union). */
|
|
653
659
|
export type SingletonCapabilityName = typeof SINGLETON_CAPABILITY_NAMES[number];
|
|
654
660
|
/** Capability names whose mode is `collection` (40 caps). */
|
|
@@ -42,6 +42,7 @@ import { intercomCapability } from '../capabilities/intercom.cap.js';
|
|
|
42
42
|
import { irTransmitterCapability } from '../capabilities/ir-transmitter.cap.js';
|
|
43
43
|
import { lawnMowerControlCapability } from '../capabilities/lawn-mower-control.cap.js';
|
|
44
44
|
import { lockControlCapability } from '../capabilities/lock-control.cap.js';
|
|
45
|
+
import { lowPowerSleepCapability } from '../capabilities/low-power-sleep.cap.js';
|
|
45
46
|
import { mediaPlayerCapability } from '../capabilities/media-player.cap.js';
|
|
46
47
|
import { meterCapability } from '../capabilities/meter.cap.js';
|
|
47
48
|
import { motionCapability } from '../capabilities/motion.cap.js';
|
|
@@ -141,6 +142,7 @@ export interface DeviceLocalState {
|
|
|
141
142
|
irTransmitter: InferRuntimeState<typeof irTransmitterCapability>;
|
|
142
143
|
lawnMowerControl: InferRuntimeState<typeof lawnMowerControlCapability>;
|
|
143
144
|
lockControl: InferRuntimeState<typeof lockControlCapability>;
|
|
145
|
+
lowPowerSleep: InferRuntimeState<typeof lowPowerSleepCapability>;
|
|
144
146
|
mediaPlayer: InferRuntimeState<typeof mediaPlayerCapability>;
|
|
145
147
|
meter: InferRuntimeState<typeof meterCapability>;
|
|
146
148
|
motion: InferRuntimeState<typeof motionCapability>;
|
|
@@ -250,6 +252,7 @@ export interface CapNameToRuntimeStateMap {
|
|
|
250
252
|
'ir-transmitter': InferRuntimeState<typeof irTransmitterCapability>;
|
|
251
253
|
'lawn-mower-control': InferRuntimeState<typeof lawnMowerControlCapability>;
|
|
252
254
|
'lock-control': InferRuntimeState<typeof lockControlCapability>;
|
|
255
|
+
'low-power-sleep': InferRuntimeState<typeof lowPowerSleepCapability>;
|
|
253
256
|
'media-player': InferRuntimeState<typeof mediaPlayerCapability>;
|
|
254
257
|
'meter': InferRuntimeState<typeof meterCapability>;
|
|
255
258
|
'motion': InferRuntimeState<typeof motionCapability>;
|
|
@@ -58,6 +58,7 @@ import type { intercomCapability } from '../capabilities/intercom.cap.js';
|
|
|
58
58
|
import type { irTransmitterCapability } from '../capabilities/ir-transmitter.cap.js';
|
|
59
59
|
import type { lawnMowerControlCapability } from '../capabilities/lawn-mower-control.cap.js';
|
|
60
60
|
import type { lockControlCapability } from '../capabilities/lock-control.cap.js';
|
|
61
|
+
import type { lowPowerSleepCapability } from '../capabilities/low-power-sleep.cap.js';
|
|
61
62
|
import type { mediaPlayerCapability } from '../capabilities/media-player.cap.js';
|
|
62
63
|
import type { meterCapability } from '../capabilities/meter.cap.js';
|
|
63
64
|
import type { motionCapability } from '../capabilities/motion.cap.js';
|
|
@@ -85,6 +86,7 @@ import type { rebootCapability } from '../capabilities/reboot.cap.js';
|
|
|
85
86
|
import type { recordingCapability } from '../capabilities/recording.cap.js';
|
|
86
87
|
import type { recordingOnboardCapability } from '../capabilities/recording-onboard.cap.js';
|
|
87
88
|
import type { recordingSignalCapability } from '../capabilities/recording-signal.cap.js';
|
|
89
|
+
import type { resyncCapability } from '../capabilities/resync.cap.js';
|
|
88
90
|
import type { runningStateCapability } from '../capabilities/running-state.cap.js';
|
|
89
91
|
import type { sceneMonitorCapability } from '../capabilities/scene-monitor.cap.js';
|
|
90
92
|
import type { scriptRunnerCapability } from '../capabilities/script-runner.cap.js';
|
|
@@ -180,6 +182,7 @@ export interface DeviceProxyState {
|
|
|
180
182
|
readonly irTransmitter: SliceHandle<InferRuntimeState<typeof irTransmitterCapability>>;
|
|
181
183
|
readonly lawnMowerControl: SliceHandle<InferRuntimeState<typeof lawnMowerControlCapability>>;
|
|
182
184
|
readonly lockControl: SliceHandle<InferRuntimeState<typeof lockControlCapability>>;
|
|
185
|
+
readonly lowPowerSleep: SliceHandle<InferRuntimeState<typeof lowPowerSleepCapability>>;
|
|
183
186
|
readonly mediaPlayer: SliceHandle<InferRuntimeState<typeof mediaPlayerCapability>>;
|
|
184
187
|
readonly meter: SliceHandle<InferRuntimeState<typeof meterCapability>>;
|
|
185
188
|
readonly motion: SliceHandle<InferRuntimeState<typeof motionCapability>>;
|
|
@@ -299,6 +302,7 @@ export interface DeviceProxy {
|
|
|
299
302
|
readonly irTransmitter?: InferDeviceProxyCap<typeof irTransmitterCapability>;
|
|
300
303
|
readonly lawnMowerControl?: InferDeviceProxyCap<typeof lawnMowerControlCapability>;
|
|
301
304
|
readonly lockControl?: InferDeviceProxyCap<typeof lockControlCapability>;
|
|
305
|
+
readonly lowPowerSleep?: InferDeviceProxyCap<typeof lowPowerSleepCapability>;
|
|
302
306
|
readonly mediaPlayer?: InferDeviceProxyCap<typeof mediaPlayerCapability>;
|
|
303
307
|
readonly meter?: InferDeviceProxyCap<typeof meterCapability>;
|
|
304
308
|
readonly motion?: InferDeviceProxyCap<typeof motionCapability>;
|
|
@@ -326,6 +330,7 @@ export interface DeviceProxy {
|
|
|
326
330
|
readonly recording?: InferDeviceProxyCap<typeof recordingCapability>;
|
|
327
331
|
readonly recordingOnboard?: InferDeviceProxyCap<typeof recordingOnboardCapability>;
|
|
328
332
|
readonly recordingSignal?: InferDeviceProxyCap<typeof recordingSignalCapability>;
|
|
333
|
+
readonly resync?: InferDeviceProxyCap<typeof resyncCapability>;
|
|
329
334
|
readonly runningState?: InferDeviceProxyCap<typeof runningStateCapability>;
|
|
330
335
|
readonly sceneMonitor?: InferDeviceProxyCap<typeof sceneMonitorCapability>;
|
|
331
336
|
readonly scriptRunner?: InferDeviceProxyCap<typeof scriptRunnerCapability>;
|
|
@@ -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: 111 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, CapabilityHistoryPrimary } from '../capabilities/capability-definition.js';
|
|
2
2
|
/**
|
|
3
3
|
* Cap history catalog, projected from every `*.cap.ts` `history` block.
|
|
4
|
-
* 47 caps with series (130 series),
|
|
4
|
+
* 47 caps with series (130 series), 40 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: 1522 method paths across 213 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: 643 methods carry a device reference, of which
|
|
10
10
|
* 199 are on SYSTEM-scope caps.
|
|
11
11
|
*
|
|
12
12
|
* Top-level fields, number arrays, and one-level arrays of objects carrying
|
|
@@ -21,7 +21,7 @@ export interface RuntimeStatePolicy {
|
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* Per-cap runtime-state policy, projected from every `*.cap.ts` that declares
|
|
24
|
-
* `runtimeState`.
|
|
24
|
+
* `runtimeState`. 88 caps: 44 `restored`, 44 `session`.
|
|
25
25
|
*
|
|
26
26
|
* A cap absent from this map has no runtime-state slice at all. A cap PRESENT
|
|
27
27
|
* 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-BNTaDZEh.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
|
@@ -254,6 +254,8 @@ export type { CreateDeviceOrigin, CreationSchemaContext, DeviceClassRow, DeviceR
|
|
|
254
254
|
export { BaseDeviceProvider, toDeviceSummary } from './device/base-device-provider.js';
|
|
255
255
|
export type { BatteryPresence, BatteryPresenceInput } from './device/battery-presence.js';
|
|
256
256
|
export { BATTERY_UNREACHABLE_AFTER_MS, deriveBatteryPresence, isBatteryPresenceFault, } from './device/battery-presence.js';
|
|
257
|
+
export { deviceSleeps, sleepSliceOfBattery } from './device/low-power-sleep.js';
|
|
258
|
+
export { type AdoptionResyncClient, resyncThroughAdoption, } from './device/resync-through-adoption.js';
|
|
257
259
|
export type { ICameraDevice, StreamSourceEntry } from './device/camera-device.js';
|
|
258
260
|
export { applyPrimaryChildPreference, applyPrimaryChildRule, CONTAINER_CHILD_PRIORITY, CONTAINER_PRIMARY_CHILD_RULES, primaryChildPreferenceOf, type AppliedPrimaryChildRule, type ContainerChildRef, type ContainerPreferenceSource, type ContainerPrimaryChildPreference, type ContainerPrimaryChildRule, type ContainerPrimaryDeclaration, resolveContainerPrimaryChild, } from './device/container-primary-child.js';
|
|
259
261
|
export { expandContainer, legacyAutoLinkIds, type LinkCandidate, } from './device/linked-device-resolve.js';
|