@camstack/types 1.2.586 → 1.2.587

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 (75) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/addon.d.ts +2 -0
  3. package/dist/addon.js +21 -5
  4. package/dist/addon.mjs +18 -6
  5. package/dist/capabilities/camera-grid-layout.cap.d.ts +3 -5
  6. package/dist/capabilities/cap-method-absent.d.ts +19 -0
  7. package/dist/capabilities/device-manager.cap.d.ts +422 -0
  8. package/dist/capabilities/hero-layout.cap.d.ts +2 -2
  9. package/dist/capabilities/index.d.ts +9 -5
  10. package/dist/capabilities/network-link.cap.d.ts +10 -0
  11. package/dist/capabilities/power-source.cap.d.ts +20 -0
  12. package/dist/capabilities/recording-export.cap.d.ts +1 -0
  13. package/dist/capabilities/siren-duration.d.ts +45 -7
  14. package/dist/capabilities/siren.cap.d.ts +45 -2
  15. package/dist/capabilities/switch-settable.d.ts +15 -0
  16. package/dist/capabilities/switch.cap.d.ts +71 -0
  17. package/dist/capabilities/terminal-session.cap.d.ts +3 -60
  18. package/dist/capabilities/videoclips.cap.d.ts +3 -0
  19. package/dist/capabilities/workload.cap.d.ts +655 -0
  20. package/dist/client.js +58 -5
  21. package/dist/client.mjs +58 -5
  22. package/dist/{composed-stable-id-RvQIEpqg.mjs → composed-stable-id-BBL71oUQ.mjs} +20 -0
  23. package/dist/{composed-stable-id-C3NfRTj8.js → composed-stable-id-CVbyajE5.js} +20 -0
  24. package/dist/composition/engine-hosted-blocks.d.ts +131 -0
  25. package/dist/composition/helpers/index.d.ts +1 -1
  26. package/dist/composition/helpers/spec.d.ts +56 -2
  27. package/dist/composition/index.d.ts +1 -0
  28. package/dist/device/base-device.d.ts +29 -0
  29. package/dist/device/cap-vocabulary/declaration.d.ts +12 -1
  30. package/dist/device/cap-vocabulary/index.d.ts +4 -4
  31. package/dist/device/cap-vocabulary/resolve.d.ts +47 -1
  32. package/dist/device/cap-vocabulary/types.d.ts +26 -1
  33. package/dist/device/declare-identifiers.d.ts +58 -0
  34. package/dist/device/device-control-resolution.d.ts +1 -1
  35. package/dist/device/device-icon.d.ts +7 -0
  36. package/dist/device/device-identifiers.d.ts +190 -0
  37. package/dist/device/device-management.d.ts +10 -0
  38. package/dist/device/device-type.d.ts +22 -2
  39. package/dist/device/hero/build-hero-model.d.ts +15 -0
  40. package/dist/device/hero/hero-fragment.d.ts +11 -0
  41. package/dist/device/hero/hero-layout.d.ts +1 -0
  42. package/dist/device/hero/hero-look.d.ts +12 -0
  43. package/dist/device/hero/hero-model.d.ts +4 -4
  44. package/dist/device/hero/hero-scene.d.ts +7 -0
  45. package/dist/device/index.d.ts +5 -1
  46. package/dist/enums/event-category.d.ts +8 -0
  47. package/dist/enums.js +1 -1
  48. package/dist/enums.mjs +1 -1
  49. package/dist/{event-category-d9kiqCqC.js → event-category-CE_VCE2G.js} +8 -0
  50. package/dist/{event-category-Dhcd0TRH.mjs → event-category-Hwx_JSCU.mjs} +8 -0
  51. package/dist/generated/addon-api.d.ts +92 -14
  52. package/dist/generated/addon-cap-facts.d.ts +1 -1
  53. package/dist/generated/cap-status-types.d.ts +3 -1
  54. package/dist/generated/cap-vocabulary.d.ts +1 -1
  55. package/dist/generated/capability-router-map.d.ts +5 -2
  56. package/dist/generated/collection-array-methods.d.ts +1 -1
  57. package/dist/generated/customize-catalog.d.ts +1 -1
  58. package/dist/generated/device-local-state.d.ts +3 -0
  59. package/dist/generated/device-proxy.d.ts +4 -1
  60. package/dist/generated/device-scoped-caps.d.ts +1 -1
  61. package/dist/generated/history-catalog.d.ts +2 -2
  62. package/dist/generated/method-access-map.d.ts +1 -1
  63. package/dist/generated/method-device-selectors.d.ts +2 -2
  64. package/dist/generated/runtime-state-durability.d.ts +1 -1
  65. package/dist/generated/system-proxy.d.ts +1 -1
  66. package/dist/{implemented-methods-C7ScGvEz.js → implemented-methods-ChtdIofW.js} +128 -1
  67. package/dist/{implemented-methods-C5FMXLGP.mjs → implemented-methods-u7ddjc-_.mjs} +57 -2
  68. package/dist/index.d.ts +7 -3
  69. package/dist/index.js +1979 -429
  70. package/dist/index.mjs +1923 -428
  71. package/dist/node.js +2 -2
  72. package/dist/node.mjs +2 -2
  73. package/dist/{sleep-DwRtgB2i.js → sleep-CsZJsb8n.js} +692 -35
  74. package/dist/{sleep-Ch7Q7UtE.mjs → sleep-D6Pih0Qt.mjs} +669 -36
  75. package/package.json +1 -1
@@ -205,6 +205,7 @@ export { waterHeaterCapability } from '../capabilities/water-heater.cap.js';
205
205
  export { weatherCapability } from '../capabilities/weather.cap.js';
206
206
  export { weatherStationCapability } from '../capabilities/weather-station.cap.js';
207
207
  export { webrtcSessionCapability } from '../capabilities/webrtc-session.cap.js';
208
+ export { workloadCapability } from '../capabilities/workload.cap.js';
208
209
  export { zoneAnalyticsCapability } from '../capabilities/zone-analytics.cap.js';
209
210
  export { zoneRulesCapability } from '../capabilities/zone-rules.cap.js';
210
211
  export { zonesCapability } from '../capabilities/zones.cap.js';
@@ -416,6 +417,7 @@ export declare const CAPABILITY_NAMES: {
416
417
  readonly weather: 'weather';
417
418
  readonly weatherStation: 'weather-station';
418
419
  readonly webrtcSession: 'webrtc-session';
420
+ readonly workload: 'workload';
419
421
  readonly zoneAnalytics: 'zone-analytics';
420
422
  readonly zoneRules: 'zone-rules';
421
423
  readonly zones: 'zones';
@@ -640,12 +642,13 @@ export interface CapabilityRouterMap<TRouter = unknown> {
640
642
  readonly weather: TRouter;
641
643
  readonly weatherStation: TRouter;
642
644
  readonly webrtcSession: TRouter;
645
+ readonly workload: TRouter;
643
646
  readonly zoneAnalytics: TRouter;
644
647
  readonly zoneRules: TRouter;
645
648
  readonly zones: TRouter;
646
649
  }
647
- /** Capability names whose mode is `singleton` (170 caps). */
648
- 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', 'zone-analytics', 'zone-rules', 'zones'];
650
+ /** Capability names whose mode is `singleton` (171 caps). */
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'];
649
652
  /** Union of singleton capability names (literal string union). */
650
653
  export type SingletonCapabilityName = typeof SINGLETON_CAPABILITY_NAMES[number];
651
654
  /** Capability names whose mode is `collection` (40 caps). */
@@ -21,7 +21,7 @@ export declare function isCollectionArrayMethodName(capName: string, method: str
21
21
  * Per capability, the methods declared `optionalMethod` — the ones whose
22
22
  * ABSENCE on a provider is a fact about that provider, not a bug.
23
23
  *
24
- * Coverage: 12 caps, 49 methods.
24
+ * Coverage: 13 caps, 57 methods.
25
25
  */
26
26
  export declare const PROVIDER_OPTIONAL_METHODS: Readonly<Record<string, readonly string[]>>;
27
27
  /**
@@ -109,7 +109,7 @@ export declare const CAP_CUSTOMIZE_CATALOG: {
109
109
  readonly targets: readonly [{
110
110
  readonly id: 'items';
111
111
  readonly cardinality: 'keyedArray';
112
- readonly deviceTypes: readonly [DeviceType.Camera, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.WeatherStation, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway, DeviceType.HeatPump, DeviceType.EnergySystem];
112
+ readonly deviceTypes: readonly [DeviceType.Camera, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.WeatherStation, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway, DeviceType.HeatPump, DeviceType.EnergySystem, DeviceType.Workload];
113
113
  readonly apply: 'add';
114
114
  readonly vocabularyCap: 'consumables';
115
115
  readonly sources: readonly [];
@@ -82,6 +82,7 @@ import { vibrationCapability } from '../capabilities/vibration.cap.js';
82
82
  import { waterHeaterCapability } from '../capabilities/water-heater.cap.js';
83
83
  import { weatherCapability } from '../capabilities/weather.cap.js';
84
84
  import { weatherStationCapability } from '../capabilities/weather-station.cap.js';
85
+ import { workloadCapability } from '../capabilities/workload.cap.js';
85
86
  import { zoneAnalyticsCapability } from '../capabilities/zone-analytics.cap.js';
86
87
  import { zoneRulesCapability } from '../capabilities/zone-rules.cap.js';
87
88
  import { zonesCapability } from '../capabilities/zones.cap.js';
@@ -180,6 +181,7 @@ export interface DeviceLocalState {
180
181
  waterHeater: InferRuntimeState<typeof waterHeaterCapability>;
181
182
  weather: InferRuntimeState<typeof weatherCapability>;
182
183
  weatherStation: InferRuntimeState<typeof weatherStationCapability>;
184
+ workload: InferRuntimeState<typeof workloadCapability>;
183
185
  zoneAnalytics: InferRuntimeState<typeof zoneAnalyticsCapability>;
184
186
  zoneRules: InferRuntimeState<typeof zoneRulesCapability>;
185
187
  zones: InferRuntimeState<typeof zonesCapability>;
@@ -288,6 +290,7 @@ export interface CapNameToRuntimeStateMap {
288
290
  'water-heater': InferRuntimeState<typeof waterHeaterCapability>;
289
291
  'weather': InferRuntimeState<typeof weatherCapability>;
290
292
  'weather-station': InferRuntimeState<typeof weatherStationCapability>;
293
+ 'workload': InferRuntimeState<typeof workloadCapability>;
291
294
  'zone-analytics': InferRuntimeState<typeof zoneAnalyticsCapability>;
292
295
  'zone-rules': InferRuntimeState<typeof zoneRulesCapability>;
293
296
  'zones': InferRuntimeState<typeof zonesCapability>;
@@ -107,6 +107,7 @@ import type { waterHeaterCapability } from '../capabilities/water-heater.cap.js'
107
107
  import type { weatherCapability } from '../capabilities/weather.cap.js';
108
108
  import type { weatherStationCapability } from '../capabilities/weather-station.cap.js';
109
109
  import type { webrtcSessionCapability } from '../capabilities/webrtc-session.cap.js';
110
+ import type { workloadCapability } from '../capabilities/workload.cap.js';
110
111
  import type { zoneAnalyticsCapability } from '../capabilities/zone-analytics.cap.js';
111
112
  import type { zoneRulesCapability } from '../capabilities/zone-rules.cap.js';
112
113
  import type { zonesCapability } from '../capabilities/zones.cap.js';
@@ -219,6 +220,7 @@ export interface DeviceProxyState {
219
220
  readonly waterHeater: SliceHandle<InferRuntimeState<typeof waterHeaterCapability>>;
220
221
  readonly weather: SliceHandle<InferRuntimeState<typeof weatherCapability>>;
221
222
  readonly weatherStation: SliceHandle<InferRuntimeState<typeof weatherStationCapability>>;
223
+ readonly workload: SliceHandle<InferRuntimeState<typeof workloadCapability>>;
222
224
  readonly zoneAnalytics: SliceHandle<InferRuntimeState<typeof zoneAnalyticsCapability>>;
223
225
  readonly zoneRules: SliceHandle<InferRuntimeState<typeof zoneRulesCapability>>;
224
226
  readonly zones: SliceHandle<InferRuntimeState<typeof zonesCapability>>;
@@ -346,6 +348,7 @@ export interface DeviceProxy {
346
348
  readonly weather?: InferDeviceProxyCap<typeof weatherCapability>;
347
349
  readonly weatherStation?: InferDeviceProxyCap<typeof weatherStationCapability>;
348
350
  readonly webrtcSession?: InferDeviceProxyCap<typeof webrtcSessionCapability>;
351
+ readonly workload?: InferDeviceProxyCap<typeof workloadCapability>;
349
352
  readonly zoneAnalytics?: InferDeviceProxyCap<typeof zoneAnalyticsCapability>;
350
353
  readonly zoneRules?: InferDeviceProxyCap<typeof zoneRulesCapability>;
351
354
  readonly zones?: InferDeviceProxyCap<typeof zonesCapability>;
@@ -356,7 +359,7 @@ export interface DeviceProxy {
356
359
  readonly deviceAdoption: Pick<InferDeviceProxyCap<typeof deviceAdoptionCapability>, 'getStatus'>;
357
360
  readonly deviceExport: Pick<InferDeviceProxyCap<typeof deviceExportCapability>, 'getDeviceSettingsContribution' | 'getDeviceLiveContribution' | 'applyDeviceSettingsPatch'>;
358
361
  readonly deviceHistory: Pick<InferDeviceProxyCap<typeof deviceHistoryCapability>, 'listSeries' | 'query' | 'getDeviceEnabled' | 'setDeviceEnabled' | 'deleteSeriesRange'>;
359
- readonly deviceManager: Pick<InferDeviceProxyCap<typeof deviceManagerCapability>, 'loadConfig' | 'loadRuntimeState' | 'loadMeta' | 'setName' | 'setAlias' | 'setLocation' | 'setTags' | 'setType' | 'setIntegrationId' | 'setLinkDeviceId' | 'setPrimaryChildEntityId' | 'setChildLayout' | 'setPrimaryChildPreference' | 'setDisplay' | 'getWireableFields' | 'setRole' | 'applyInitialMeta' | 'setMetadata' | 'setDisabled' | 'getDevice' | 'getLinkedDevices' | 'getStreamSources' | 'getConfigSchema' | 'getSettingsSchema' | 'updateConfig' | 'enable' | 'disable' | 'remove' | 'getStreamProfileMap' | 'setStreamProfileMap' | 'probeStreams' | 'getBindings' | 'setWrapperActive' | 'getWrapperActivation' | 'getDeviceSettingsAggregate' | 'getDeviceLiveInfoAggregate' | 'getDeviceAggregate' | 'runDeviceAction' | 'updateDeviceField' | 'updateDeviceFieldsBatch' | 'testField' | 'getDeviceStatusAggregate'>;
362
+ readonly deviceManager: Pick<InferDeviceProxyCap<typeof deviceManagerCapability>, 'loadConfig' | 'loadRuntimeState' | 'loadMeta' | 'setName' | 'setAlias' | 'setLocation' | 'setTags' | 'setType' | 'setIntegrationId' | 'setLinkDeviceId' | 'setPrimaryChildEntityId' | 'setChildLayout' | 'setPrimaryChildPreference' | 'setDisplay' | 'getWireableFields' | 'setRole' | 'applyInitialMeta' | 'setMetadata' | 'setIdentifiers' | 'setDisabled' | 'getDevice' | 'getLinkedDevices' | 'getStreamSources' | 'getConfigSchema' | 'getSettingsSchema' | 'updateConfig' | 'enable' | 'disable' | 'remove' | 'getStreamProfileMap' | 'setStreamProfileMap' | 'probeStreams' | 'getBindings' | 'setWrapperActive' | 'getWrapperActivation' | 'getDeviceSettingsAggregate' | 'getDeviceLiveInfoAggregate' | 'getDeviceAggregate' | 'runDeviceAction' | 'updateDeviceField' | 'updateDeviceFieldsBatch' | 'testField' | 'getDeviceStatusAggregate'>;
360
363
  readonly deviceState: Pick<InferDeviceProxyCap<typeof deviceStateCapability>, 'getSnapshot' | 'getCapSlice' | 'setCapSlice' | 'claimFields' | 'patchOwnedFields' | 'releaseClaim' | 'getNativeCapSlice'>;
361
364
  readonly faceGallery: Pick<InferDeviceProxyCap<typeof faceGalleryCapability>, 'listRecentFaces' | 'getFaceByTrack'>;
362
365
  readonly networkQuality: Pick<InferDeviceProxyCap<typeof networkQualityCapability>, 'getDeviceStats' | 'reportClientStats'>;
@@ -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: 108 device-scoped capabilities.
8
+ * Coverage: 109 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
- * 46 caps with series (124 series), 39 caps answered `'none'`.
4
+ * 47 caps with series (130 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>>>>;
@@ -13,7 +13,7 @@ export declare const HISTORY_CATALOG: Readonly<Record<string, Readonly<Record<st
13
13
  export declare const HISTORY_ITEM_CATALOG: Readonly<Record<string, CapabilityHistoryItems>>;
14
14
  /**
15
15
  * The series a device card trends, per cap (`history.primary` + `history.priority`):
16
- * 6 caps. The card shows the primary of the enabled cap with the highest priority.
16
+ * 7 caps. The card shows the primary of the enabled cap with the highest priority.
17
17
  */
18
18
  export declare const HISTORY_PRIMARY: Readonly<Record<string, CapabilityHistoryPrimary>>;
19
19
  /** Caps that declared `history: 'none'`, sorted. */
@@ -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: 1509 method paths across 210 capabilities.
9
+ * Coverage: 1519 method paths across 211 capabilities.
10
10
  */
11
11
  import type { MethodRole } from '../auth/viewer-access.js';
12
12
  import type { CapabilityMethodAccess } from '../capabilities/capability-definition.js';
@@ -6,8 +6,8 @@
6
6
  * system-scope cap that takes a deviceId was previously never device-filtered
7
7
  * — see the generator header).
8
8
  *
9
- * Coverage: 629 methods carry a device reference, of which
10
- * 198 are on SYSTEM-scope caps.
9
+ * Coverage: 641 methods carry a device reference, of which
10
+ * 199 are on SYSTEM-scope caps.
11
11
  *
12
12
  * Top-level fields, number arrays, and one-level arrays of objects carrying
13
13
  * a numeric device field (targets[].deviceId) are all mapped; the matcher
@@ -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`. 86 caps: 43 `restored`, 43 `session`.
19
+ * `runtimeState`. 87 caps: 43 `restored`, 44 `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.
@@ -134,7 +134,7 @@ export interface SystemProxy {
134
134
  readonly system: Pick<InferProvider<typeof systemCapability>, 'info' | 'health' | 'featureFlags' | 'networkAddresses' | 'getRetentionConfig' | 'setRetentionConfig' | 'forceRetentionCleanup' | 'getSiteLocation' | 'setSiteLocation' | 'detectSiteLocation' | 'getRequestCensus' | 'getLoadContributions' | 'getFailureContributions' | 'getLoggingSettings' | 'setLoggingSettings' | 'debugWatch'>;
135
135
  readonly tags: Pick<InferProvider<typeof tagsCapability>, 'list' | 'setStyle' | 'rename' | 'remove'>;
136
136
  readonly template: Pick<InferProvider<typeof templateCapability>, 'list' | 'get' | 'create' | 'update' | 'delete'>;
137
- readonly terminalSession: Pick<InferProvider<typeof terminalSessionCapability>, 'listProfiles' | 'listLegacyCameras' | 'adoptLegacyMonitor' | 'listSessions' | 'serverShellStatus' | 'openSession' | 'resize' | 'pullOutput' | 'writeInput' | 'close'>;
137
+ readonly terminalSession: Pick<InferProvider<typeof terminalSessionCapability>, 'listProfiles' | 'listSessions' | 'serverShellStatus' | 'openSession' | 'resize' | 'pullOutput' | 'writeInput' | 'close'>;
138
138
  readonly toast: Pick<InferProvider<typeof toastCapability>, 'onToast'>;
139
139
  readonly training: Pick<InferProvider<typeof trainingCapability>, 'listBaseModels' | 'planJob' | 'startJob' | 'startJobBatch' | 'listJobs' | 'getJob' | 'cancelJob' | 'getJobResult' | 'listCanaryTargets' | 'registerResult' | 'canaryResult' | 'rollbackCanary' | 'discardResult'>;
140
140
  readonly turnProvider: Pick<InferProvider<typeof turnProviderCapability>, 'getTurnServers'>;
@@ -1,4 +1,4 @@
1
- const require_composed_stable_id = require("./composed-stable-id-C3NfRTj8.js");
1
+ const require_composed_stable_id = require("./composed-stable-id-CVbyajE5.js");
2
2
  let zod = require("zod");
3
3
  let node_crypto = require("node:crypto");
4
4
  //#region src/ffmpeg/invocation.ts
@@ -3156,7 +3156,51 @@ var derivativeHelperObject = zod.z.object({
3156
3156
  source: HelperMemberSchema
3157
3157
  });
3158
3158
  var DerivativeHelperSpecSchema = derivativeHelperObject;
3159
+ /** The stream profiles a camera grid can publish. */
3160
+ var GRID_PROFILES = [
3161
+ "high",
3162
+ "mid",
3163
+ "low"
3164
+ ];
3165
+ var MAX_GRID_CELLS = 16;
3166
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
3167
+ var GridRectSchema = zod.z.object({
3168
+ x: zod.z.number().min(0).max(1),
3169
+ y: zod.z.number().min(0).max(1),
3170
+ width: zod.z.number().gt(0).max(1),
3171
+ height: zod.z.number().gt(0).max(1)
3172
+ });
3173
+ var GridCellSpecSchema = zod.z.object({
3174
+ source: CompositionSourceRefSchema,
3175
+ region: GridRectSchema,
3176
+ cell: GridRectSchema
3177
+ });
3178
+ var gridHelperObject = zod.z.object({
3179
+ kind: zod.z.literal("grid"),
3180
+ fps: zod.z.number().int().min(1).max(60),
3181
+ publishedProfiles: zod.z.array(zod.z.enum(GRID_PROFILES)).max(3),
3182
+ cells: zod.z.array(GridCellSpecSchema).max(16)
3183
+ });
3184
+ var GridHelperSpecSchema = gridHelperObject;
3185
+ /** A new grid: no cells yet, 10 fps, publishing the mid and low profiles. */
3186
+ var DEFAULT_GRID_FPS = 10;
3187
+ var DEFAULT_GRID_PROFILES = ["mid", "low"];
3188
+ function newGridHelperSpec() {
3189
+ return {
3190
+ kind: "grid",
3191
+ fps: 10,
3192
+ publishedProfiles: [...DEFAULT_GRID_PROFILES],
3193
+ cells: []
3194
+ };
3195
+ }
3196
+ var terminalHelperObject = zod.z.object({
3197
+ kind: zod.z.literal("terminal"),
3198
+ terminalId: zod.z.string().uuid()
3199
+ });
3200
+ var TerminalHelperSpecSchema = terminalHelperObject;
3159
3201
  var HelperSpecSchema = zod.z.discriminatedUnion("kind", [
3202
+ gridHelperObject,
3203
+ terminalHelperObject,
3160
3204
  GroupHelperSpecSchema,
3161
3205
  statisticHelperObject,
3162
3206
  integralHelperObject,
@@ -3178,8 +3222,19 @@ function helperMembers(spec) {
3178
3222
  case "derivative": return [spec.source];
3179
3223
  case "arithmetic": return spec.inputs;
3180
3224
  case "expression": return spec.inputs.map((input) => input.member);
3225
+ case "grid":
3226
+ case "terminal": return [];
3181
3227
  }
3182
3228
  }
3229
+ /** The kinds whose camera an engine serves on the composer's row (planning#580). */
3230
+ var ENGINE_HOSTED_HELPER_KINDS = ["grid", "terminal"];
3231
+ function isEngineHostedHelper(spec) {
3232
+ return spec.kind === "grid" || spec.kind === "terminal";
3233
+ }
3234
+ /** The devices a helper depends on without reading a field of them: a grid's cell sources. */
3235
+ function helperDeviceRefs(spec) {
3236
+ return spec.kind === "grid" ? spec.cells.map((cell) => cell.source) : [];
3237
+ }
3183
3238
  //#endregion
3184
3239
  //#region src/composition/composition.ts
3185
3240
  /**
@@ -3788,6 +3843,18 @@ Object.defineProperty(exports, "DEFAULT_FIRST_SIGHTING_FRESHNESS_MS", {
3788
3843
  return DEFAULT_FIRST_SIGHTING_FRESHNESS_MS;
3789
3844
  }
3790
3845
  });
3846
+ Object.defineProperty(exports, "DEFAULT_GRID_FPS", {
3847
+ enumerable: true,
3848
+ get: function() {
3849
+ return DEFAULT_GRID_FPS;
3850
+ }
3851
+ });
3852
+ Object.defineProperty(exports, "DEFAULT_GRID_PROFILES", {
3853
+ enumerable: true,
3854
+ get: function() {
3855
+ return DEFAULT_GRID_PROFILES;
3856
+ }
3857
+ });
3791
3858
  Object.defineProperty(exports, "DEFAULT_HISTORY_RETENTION", {
3792
3859
  enumerable: true,
3793
3860
  get: function() {
@@ -3806,6 +3873,12 @@ Object.defineProperty(exports, "DerivativeHelperSpecSchema", {
3806
3873
  return DerivativeHelperSpecSchema;
3807
3874
  }
3808
3875
  });
3876
+ Object.defineProperty(exports, "ENGINE_HOSTED_HELPER_KINDS", {
3877
+ enumerable: true,
3878
+ get: function() {
3879
+ return ENGINE_HOSTED_HELPER_KINDS;
3880
+ }
3881
+ });
3809
3882
  Object.defineProperty(exports, "EXPRESSION_BUILTINS", {
3810
3883
  enumerable: true,
3811
3884
  get: function() {
@@ -3884,12 +3957,36 @@ Object.defineProperty(exports, "Fmp4BoxSplitter", {
3884
3957
  return Fmp4BoxSplitter;
3885
3958
  }
3886
3959
  });
3960
+ Object.defineProperty(exports, "GRID_PROFILES", {
3961
+ enumerable: true,
3962
+ get: function() {
3963
+ return GRID_PROFILES;
3964
+ }
3965
+ });
3887
3966
  Object.defineProperty(exports, "GROUP_TEMPLATE_IDS", {
3888
3967
  enumerable: true,
3889
3968
  get: function() {
3890
3969
  return GROUP_TEMPLATE_IDS;
3891
3970
  }
3892
3971
  });
3972
+ Object.defineProperty(exports, "GridCellSpecSchema", {
3973
+ enumerable: true,
3974
+ get: function() {
3975
+ return GridCellSpecSchema;
3976
+ }
3977
+ });
3978
+ Object.defineProperty(exports, "GridHelperSpecSchema", {
3979
+ enumerable: true,
3980
+ get: function() {
3981
+ return GridHelperSpecSchema;
3982
+ }
3983
+ });
3984
+ Object.defineProperty(exports, "GridRectSchema", {
3985
+ enumerable: true,
3986
+ get: function() {
3987
+ return GridRectSchema;
3988
+ }
3989
+ });
3893
3990
  Object.defineProperty(exports, "GroupHelperSpecSchema", {
3894
3991
  enumerable: true,
3895
3992
  get: function() {
@@ -4010,6 +4107,12 @@ Object.defineProperty(exports, "MAX_EXPRESSION_SOURCE_LENGTH", {
4010
4107
  return MAX_EXPRESSION_SOURCE_LENGTH;
4011
4108
  }
4012
4109
  });
4110
+ Object.defineProperty(exports, "MAX_GRID_CELLS", {
4111
+ enumerable: true,
4112
+ get: function() {
4113
+ return MAX_GRID_CELLS;
4114
+ }
4115
+ });
4013
4116
  Object.defineProperty(exports, "MAX_HELPER_MEMBERS", {
4014
4117
  enumerable: true,
4015
4118
  get: function() {
@@ -4118,6 +4221,12 @@ Object.defineProperty(exports, "StoredDeviceTypeSchema", {
4118
4221
  return StoredDeviceTypeSchema;
4119
4222
  }
4120
4223
  });
4224
+ Object.defineProperty(exports, "TerminalHelperSpecSchema", {
4225
+ enumerable: true,
4226
+ get: function() {
4227
+ return TerminalHelperSpecSchema;
4228
+ }
4229
+ });
4121
4230
  Object.defineProperty(exports, "ThresholdHelperSpecSchema", {
4122
4231
  enumerable: true,
4123
4232
  get: function() {
@@ -4364,6 +4473,12 @@ Object.defineProperty(exports, "getFfmpegDownloadUrl", {
4364
4473
  return getFfmpegDownloadUrl;
4365
4474
  }
4366
4475
  });
4476
+ Object.defineProperty(exports, "helperDeviceRefs", {
4477
+ enumerable: true,
4478
+ get: function() {
4479
+ return helperDeviceRefs;
4480
+ }
4481
+ });
4367
4482
  Object.defineProperty(exports, "helperMembers", {
4368
4483
  enumerable: true,
4369
4484
  get: function() {
@@ -4406,6 +4521,12 @@ Object.defineProperty(exports, "isAirConditioner", {
4406
4521
  return isAirConditioner;
4407
4522
  }
4408
4523
  });
4524
+ Object.defineProperty(exports, "isEngineHostedHelper", {
4525
+ enumerable: true,
4526
+ get: function() {
4527
+ return isEngineHostedHelper;
4528
+ }
4529
+ });
4409
4530
  Object.defineProperty(exports, "isForwardInputRef", {
4410
4531
  enumerable: true,
4411
4532
  get: function() {
@@ -4472,6 +4593,12 @@ Object.defineProperty(exports, "maxDurationMs", {
4472
4593
  return maxDurationMs;
4473
4594
  }
4474
4595
  });
4596
+ Object.defineProperty(exports, "newGridHelperSpec", {
4597
+ enumerable: true,
4598
+ get: function() {
4599
+ return newGridHelperSpec;
4600
+ }
4601
+ });
4475
4602
  Object.defineProperty(exports, "nextLocalMidnight", {
4476
4603
  enumerable: true,
4477
4604
  get: function() {
@@ -1,4 +1,4 @@
1
- import { a as DeviceType, i as DeviceRole, t as COMPOSED_DEVICE_STABLE_ID_PREFIX } from "./composed-stable-id-RvQIEpqg.mjs";
1
+ import { a as DeviceType, i as DeviceRole, t as COMPOSED_DEVICE_STABLE_ID_PREFIX } from "./composed-stable-id-BBL71oUQ.mjs";
2
2
  import { z } from "zod";
3
3
  import { createHash } from "node:crypto";
4
4
  //#region src/ffmpeg/invocation.ts
@@ -3156,7 +3156,51 @@ var derivativeHelperObject = z.object({
3156
3156
  source: HelperMemberSchema
3157
3157
  });
3158
3158
  var DerivativeHelperSpecSchema = derivativeHelperObject;
3159
+ /** The stream profiles a camera grid can publish. */
3160
+ var GRID_PROFILES = [
3161
+ "high",
3162
+ "mid",
3163
+ "low"
3164
+ ];
3165
+ var MAX_GRID_CELLS = 16;
3166
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
3167
+ var GridRectSchema = z.object({
3168
+ x: z.number().min(0).max(1),
3169
+ y: z.number().min(0).max(1),
3170
+ width: z.number().gt(0).max(1),
3171
+ height: z.number().gt(0).max(1)
3172
+ });
3173
+ var GridCellSpecSchema = z.object({
3174
+ source: CompositionSourceRefSchema,
3175
+ region: GridRectSchema,
3176
+ cell: GridRectSchema
3177
+ });
3178
+ var gridHelperObject = z.object({
3179
+ kind: z.literal("grid"),
3180
+ fps: z.number().int().min(1).max(60),
3181
+ publishedProfiles: z.array(z.enum(GRID_PROFILES)).max(3),
3182
+ cells: z.array(GridCellSpecSchema).max(16)
3183
+ });
3184
+ var GridHelperSpecSchema = gridHelperObject;
3185
+ /** A new grid: no cells yet, 10 fps, publishing the mid and low profiles. */
3186
+ var DEFAULT_GRID_FPS = 10;
3187
+ var DEFAULT_GRID_PROFILES = ["mid", "low"];
3188
+ function newGridHelperSpec() {
3189
+ return {
3190
+ kind: "grid",
3191
+ fps: 10,
3192
+ publishedProfiles: [...DEFAULT_GRID_PROFILES],
3193
+ cells: []
3194
+ };
3195
+ }
3196
+ var terminalHelperObject = z.object({
3197
+ kind: z.literal("terminal"),
3198
+ terminalId: z.string().uuid()
3199
+ });
3200
+ var TerminalHelperSpecSchema = terminalHelperObject;
3159
3201
  var HelperSpecSchema = z.discriminatedUnion("kind", [
3202
+ gridHelperObject,
3203
+ terminalHelperObject,
3160
3204
  GroupHelperSpecSchema,
3161
3205
  statisticHelperObject,
3162
3206
  integralHelperObject,
@@ -3178,8 +3222,19 @@ function helperMembers(spec) {
3178
3222
  case "derivative": return [spec.source];
3179
3223
  case "arithmetic": return spec.inputs;
3180
3224
  case "expression": return spec.inputs.map((input) => input.member);
3225
+ case "grid":
3226
+ case "terminal": return [];
3181
3227
  }
3182
3228
  }
3229
+ /** The kinds whose camera an engine serves on the composer's row (planning#580). */
3230
+ var ENGINE_HOSTED_HELPER_KINDS = ["grid", "terminal"];
3231
+ function isEngineHostedHelper(spec) {
3232
+ return spec.kind === "grid" || spec.kind === "terminal";
3233
+ }
3234
+ /** The devices a helper depends on without reading a field of them: a grid's cell sources. */
3235
+ function helperDeviceRefs(spec) {
3236
+ return spec.kind === "grid" ? spec.cells.map((cell) => cell.source) : [];
3237
+ }
3183
3238
  //#endregion
3184
3239
  //#region src/composition/composition.ts
3185
3240
  /**
@@ -3554,4 +3609,4 @@ function implementedMethodsOf(methodNames, provider) {
3554
3609
  return methodNames.filter((name) => typeof Reflect.get(provider, name) === "function");
3555
3610
  }
3556
3611
  //#endregion
3557
- export { EXPRESSION_OUTPUTS as $, buildAudioArgs as $n, createExpressionScope as $t, MAX_COMPOSITION_FIELDS_PER_FEATURE as A, sliceActiveValue as An, integralCadenceMs as At, featureFieldEntries as B, isSwitchHeater as Bn, STATISTIC_STATS as Bt, CompositionPassthroughFeatureSchema as C, SOURCE_CAPS as Cn, MINUTE_MS as Ct, FORWARD_INPUT_KEY as D, evaluateSensorEdge as Dn, RollingWindowSchema as Dt, CompositionTargetSchema as E, SOURCE_DEVICE_TYPES as En, ROLLING_SPANS as Et, compositionFeatureEnabled as F, capAppliesToDeviceKind as Fn, planResetTier as Ft, AGGREGATE_REDUCERS as G, FFMPEG_RELEASE as Gn, wattMillisecondsToKwh as Gt, fieldReads as H, FFMPEG_PATH_ENV as Hn, evaluateStatistic as Ht, compositionItemFieldPath as I, climateRoleOf as In, planStatisticTier as It, AggregateReducerSchema as J, canonicalHash as Jn, createStatefulExpressionMemory as Jt, ARITHMETIC_OPS as K, getFfmpegArtifact as Kn, EXPRESSION_INJECTED_NOW as Kt, compositionReadKey as L, isAirConditioner as Ln, rollingDurationMs as Lt, canonicalStoredBlockTarget as M, CLIMATE_ROLES as Mn, nextLocalMidnight as Mt, composedDeviceRef as N, StoredDeviceTypeSchema as Nn, openReset as Nt, MAX_COMPOSITION_CODE_LENGTH as O, evaluateSensorLevelEdge as On, StatisticWindowSchema as Ot, composedDeviceStableId as P, canonicalStoredDeviceType as Pn, openStatistic as Pt, DerivativeHelperSpecSchema as Q, audioPlanFromEncodeProfile as Qn, validateExpressionSource as Qt, compositionSliceKey as R, isOutlet as Rn, statisticCadenceMs as Rt, CompositionNewTargetSchema as S, DEFAULT_FIRST_SIGHTING_FRESHNESS_MS as Sn, HOUR_MS as St, CompositionSeriesSourceSchema as T, SOURCE_CAP_CHANGED_AT_FIELD as Tn, RESET_PERIODS as Tt, isForwardInputRef as U, chooseFfmpegBinary as Un, integrateReading as Ut, featureSources as V, isSwitchLight as Vn, evaluateDerivative as Vt, ACTIVE_CRITERIA as W, ffmpegBinaryName as Wn, KWH_PER_WATT_MS as Wt, BINARY_AGGREGATES as X, AUDIO_PRESETS as Xn, evaluateStatefulExpressionCall as Xt, ArithmeticHelperSpecSchema as Y, Fmp4BoxSplitter as Yn, evaluateExpressionSource as Yt, DERIVATIVE_UNITS as Z, RESTREAM_INPUT_PROBE as Zn, toExpressionValue as Zt, CompositionForwardArgSchema as _, evaluateDwell as _n, DAY_MS as _t, CUSTOMIZATION_BLOCK_NAME_PREFIX as a, EXPRESSION_COMPILE_CACHE_CAPACITY as an, logBannerArgs as ar, HelperSpecSchema as at, CompositionItemEntrySchema as b, ExpressionEvalError as bn, HISTORY_SLOW_MS as bt, CompositionCodeSourceSchema as c, MAX_EXPRESSION_BINDINGS as cn, MAX_HELPER_MEMBERS as ct, CompositionExpressionSourceSchema as d, MAX_EXPRESSION_SOURCE_LENGTH as dn, ThresholdHelperSpecSchema as dt, evaluateAst as en, buildFfmpegArgs as er, ExpressionHelperSpecSchema as et, CompositionExtensionCommandSchema as f, RESERVED_BINDING_NAMES as fn, helperMembers as ft, CompositionFieldsFeatureSchema as g, evaluateCount as gn, CalendarWindowSchema as gt, CompositionFieldSourceSchema as h, disarmRoseMemory as hn, CALENDAR_PERIODS as ht, COMPOSITION_ITEM_KEY_RE as i, tokenize as in, isSoftwareDecode as ir, HelperMemberSchema as it, MAX_COMPOSITION_ITEMS as j, sliceChangedAt as jn, maxDurationMs as jt, MAX_COMPOSITION_FEATURES as k, isSourceCap as kn, historyRetentionFromSettings as kt, CompositionCommandTargetSchema as l, MAX_EXPRESSION_CALL_ARGS as ln, NUMERIC_AGGREGATES as lt, CompositionFieldReadSchema as m, EXPRESSION_BUILTIN_NAMES as mn, CompositionSourceRefSchema as mt, COMPOSER_ADDON_ID as n, compileExpressionSafe as nn, buildVideoArgs as nr, GroupHelperSpecSchema as nt, CompositionAggregateSourceSchema as o, EXPRESSION_IDENTIFIER_RE as on, pickVideoEncoder as or, INTEGRAL_OUTPUTS as ot, CompositionFeatureSchema as p, EXPRESSION_BUILTINS as pn, isHistoryHelper as pt, ActiveCriterionSchema as q, getFfmpegDownloadUrl as qn, cloneStatefulExpressionMemory as qt, COMPOSITION_ITEM_ARRAY_PATH as r, parseExpression as rn, invocationFromEncodeProfile as rr, GroupTemplateIdSchema as rt, CompositionBindingSchema as s, MAX_EXPRESSION_AST_NODES as sn, resolveStreamMaps as sr, IntegralHelperSpecSchema as st, implementedMethodsOf as t, compileExpression as tn, buildInputArgs as tr, GROUP_TEMPLATE_IDS as tt, CompositionExistingTargetSchema as u, MAX_EXPRESSION_EVAL_STEPS as un, StatisticHelperSpecSchema as ut, CompositionForwardCommandSchema as v, evaluateRose as vn, DEFAULT_HISTORY_RETENTION as vt, CompositionSchema as w, SOURCE_CAP_ACTIVE_FIELD as wn, MIN_CUSTOM_MINUTES as wt, CompositionLiteralBindingSchema as x, ExpressionParseError as xn, HISTORY_TIERS as xt, CompositionFromSourceSchema as y, isStatefulBuiltin as yn, HISTORY_FAST_MS as yt, compositionSourceKey as z, isSwitchFan as zn, SERIES_KINDS as zt };
3612
+ export { DERIVATIVE_UNITS as $, isSwitchLight as $n, evaluateDerivative as $t, MAX_COMPOSITION_FIELDS_PER_FEATURE as A, evaluateRose as An, DEFAULT_HISTORY_RETENTION as At, featureFieldEntries as B, evaluateSensorLevelEdge as Bn, StatisticWindowSchema as Bt, CompositionPassthroughFeatureSchema as C, MAX_EXPRESSION_SOURCE_LENGTH as Cn, isEngineHostedHelper as Ct, FORWARD_INPUT_KEY as D, disarmRoseMemory as Dn, CALENDAR_PERIODS as Dt, CompositionTargetSchema as E, EXPRESSION_BUILTIN_NAMES as En, CompositionSourceRefSchema as Et, compositionFeatureEnabled as F, SOURCE_CAPS as Fn, MINUTE_MS as Ft, AGGREGATE_REDUCERS as G, StoredDeviceTypeSchema as Gn, openReset as Gt, fieldReads as H, sliceActiveValue as Hn, integralCadenceMs as Ht, compositionItemFieldPath as I, SOURCE_CAP_ACTIVE_FIELD as In, MIN_CUSTOM_MINUTES as It, AggregateReducerSchema as J, climateRoleOf as Jn, planStatisticTier as Jt, ARITHMETIC_OPS as K, canonicalStoredDeviceType as Kn, openStatistic as Kt, compositionReadKey as L, SOURCE_CAP_CHANGED_AT_FIELD as Ln, RESET_PERIODS as Lt, canonicalStoredBlockTarget as M, ExpressionEvalError as Mn, HISTORY_SLOW_MS as Mt, composedDeviceRef as N, ExpressionParseError as Nn, HISTORY_TIERS as Nt, MAX_COMPOSITION_CODE_LENGTH as O, evaluateCount as On, CalendarWindowSchema as Ot, composedDeviceStableId as P, DEFAULT_FIRST_SIGHTING_FRESHNESS_MS as Pn, HOUR_MS as Pt, DEFAULT_GRID_PROFILES as Q, isSwitchHeater as Qn, STATISTIC_STATS as Qt, compositionSliceKey as R, SOURCE_DEVICE_TYPES as Rn, ROLLING_SPANS as Rt, CompositionNewTargetSchema as S, MAX_EXPRESSION_EVAL_STEPS as Sn, helperMembers as St, CompositionSeriesSourceSchema as T, EXPRESSION_BUILTINS as Tn, newGridHelperSpec as Tt, isForwardInputRef as U, sliceChangedAt as Un, maxDurationMs as Ut, featureSources as V, isSourceCap as Vn, historyRetentionFromSettings as Vt, ACTIVE_CRITERIA as W, CLIMATE_ROLES as Wn, nextLocalMidnight as Wt, BINARY_AGGREGATES as X, isOutlet as Xn, statisticCadenceMs as Xt, ArithmeticHelperSpecSchema as Y, isAirConditioner as Yn, rollingDurationMs as Yt, DEFAULT_GRID_FPS as Z, isSwitchFan as Zn, SERIES_KINDS as Zt, CompositionForwardArgSchema as _, EXPRESSION_COMPILE_CACHE_CAPACITY as _n, logBannerArgs as _r, NUMERIC_AGGREGATES as _t, CUSTOMIZATION_BLOCK_NAME_PREFIX as a, cloneStatefulExpressionMemory as an, getFfmpegDownloadUrl as ar, GROUP_TEMPLATE_IDS as at, CompositionItemEntrySchema as b, MAX_EXPRESSION_BINDINGS as bn, ThresholdHelperSpecSchema as bt, CompositionCodeSourceSchema as c, evaluateStatefulExpressionCall as cn, AUDIO_PRESETS as cr, GridRectSchema as ct, CompositionExpressionSourceSchema as d, createExpressionScope as dn, buildAudioArgs as dr, HelperMemberSchema as dt, evaluateStatistic as en, FFMPEG_PATH_ENV as er, DerivativeHelperSpecSchema as et, CompositionExtensionCommandSchema as f, evaluateAst as fn, buildFfmpegArgs as fr, HelperSpecSchema as ft, CompositionFieldsFeatureSchema as g, tokenize as gn, isSoftwareDecode as gr, MAX_HELPER_MEMBERS as gt, CompositionFieldSourceSchema as h, parseExpression as hn, invocationFromEncodeProfile as hr, MAX_GRID_CELLS as ht, COMPOSITION_ITEM_KEY_RE as i, EXPRESSION_INJECTED_NOW as in, getFfmpegArtifact as ir, GRID_PROFILES as it, MAX_COMPOSITION_ITEMS as j, isStatefulBuiltin as jn, HISTORY_FAST_MS as jt, MAX_COMPOSITION_FEATURES as k, evaluateDwell as kn, DAY_MS as kt, CompositionCommandTargetSchema as l, toExpressionValue as ln, RESTREAM_INPUT_PROBE as lr, GroupHelperSpecSchema as lt, CompositionFieldReadSchema as m, compileExpressionSafe as mn, buildVideoArgs as mr, IntegralHelperSpecSchema as mt, COMPOSER_ADDON_ID as n, KWH_PER_WATT_MS as nn, ffmpegBinaryName as nr, EXPRESSION_OUTPUTS as nt, CompositionAggregateSourceSchema as o, createStatefulExpressionMemory as on, canonicalHash as or, GridCellSpecSchema as ot, CompositionFeatureSchema as p, compileExpression as pn, buildInputArgs as pr, INTEGRAL_OUTPUTS as pt, ActiveCriterionSchema as q, capAppliesToDeviceKind as qn, planResetTier as qt, COMPOSITION_ITEM_ARRAY_PATH as r, wattMillisecondsToKwh as rn, FFMPEG_RELEASE as rr, ExpressionHelperSpecSchema as rt, CompositionBindingSchema as s, evaluateExpressionSource as sn, Fmp4BoxSplitter as sr, GridHelperSpecSchema as st, implementedMethodsOf as t, integrateReading as tn, chooseFfmpegBinary as tr, ENGINE_HOSTED_HELPER_KINDS as tt, CompositionExistingTargetSchema as u, validateExpressionSource as un, audioPlanFromEncodeProfile as ur, GroupTemplateIdSchema as ut, CompositionForwardCommandSchema as v, EXPRESSION_IDENTIFIER_RE as vn, pickVideoEncoder as vr, StatisticHelperSpecSchema as vt, CompositionSchema as w, RESERVED_BINDING_NAMES as wn, isHistoryHelper as wt, CompositionLiteralBindingSchema as x, MAX_EXPRESSION_CALL_ARGS as xn, helperDeviceRefs as xt, CompositionFromSourceSchema as y, MAX_EXPRESSION_AST_NODES as yn, resolveStreamMaps as yr, TerminalHelperSpecSchema as yt, compositionSourceKey as z, evaluateSensorEdge as zn, RollingWindowSchema as zt };
package/dist/index.d.ts CHANGED
@@ -247,7 +247,7 @@ export { DEFAULT_FIRST_SIGHTING_FRESHNESS_MS, evaluateSensorEdge, evaluateSensor
247
247
  export * from './constants.js';
248
248
  export type { AccessoryKindValue } from './device/accessory.js';
249
249
  export { ACCESSORY_LABEL, AccessoryKind, accessoryStableId, } from './device/accessory.js';
250
- export type { AccessoryChildrenAnswer, AccessoryChildrenComplete, AccessoryChildrenRead, AccessoryChildrenUnknown, AccessoryChildSpec, } from './device/base-device.js';
250
+ export type { AccessoryChildrenAnswer, AccessoryChildrenComplete, AccessoryChildrenRead, AccessoryChildrenUnknown, AccessoryChildSpec, DeviceStatusOwnership, } from './device/base-device.js';
251
251
  export { accessoryChildrenComplete, accessoryChildrenUnknown, BaseDevice, } from './device/base-device.js';
252
252
  export type { CreateDeviceOrigin, CreationSchemaContext, DeviceClassRow, DeviceRestoreReport, DeviceSummary, DiscoveryCandidate, FieldProbeResult, } from './device/base-device-provider.js';
253
253
  export { BaseDeviceProvider, toDeviceSummary } from './device/base-device-provider.js';
@@ -269,8 +269,12 @@ export type { AccessoryControlInput, AccessoryControlKind, AccessoryControlPick,
269
269
  export { DEVICE_TYPE_CONTROL_KIND, hasMotionTrigger, isNode, MOTION_TRIGGER_FEATURE, pickAccessoryControl, resolveDeviceControlKind, resolveMutate, SENSOR_FEATURES, SENSOR_MAP, } from './device/device-control-resolution.js';
270
270
  export * from './device/hero/index.js';
271
271
  export { isDoPickerDeviceType } from './device/device-do-actions.js';
272
- export type { CapVocabularyEntry, CapVocabularyMap, L10n as VocabL10n, ActionEffect, CommandEffect, IndexedVocabAction, VocabActionRefusal, VocabCall, LooseCapVocabularyEntry, LooseVocabEffect, LooseVocabOffer, LooseVocabOpenArg, ResolvedBooleanTrigger, ResolvedEnumTrigger, ResolvedEnumValue, ResolvedEventTrigger, ResolvedNumericTrigger, ResolvedValueTrigger, ResolvedVocabAction, ResolvedVocabTrigger, VocabBindingsInput, VocabCapName, VocabLocale, CapVocabularyDecl, DeviceCapVocabularyDecl, EventVocabularyDecl, LooseMethodActionDecl, MethodActionArgs, MethodActionDecl, MethodActionEffect, MethodActionOpenArg, SystemCapVocabularyDecl, } from './device/cap-vocabulary/index.js';
273
- export { actionEffect, actionsForDevice as vocabularyActionsForDevice, deviceOffersActions, allVocabActions, auditedFields, CAP_VOCABULARY, CAP_VOCABULARY_BY_NAME, commandEffect, findVocabAction, isCommand, renderVocabPhrase, triggersForDevice as vocabularyTriggersForDevice, VOCAB_TEMPLATES, vocabActionIdFor, vocabCall, VocabActionError, assertDeviceOffers, NOT_A_DEVICE, } from './device/cap-vocabulary/index.js';
272
+ export type { CapVocabularyEntry, CapVocabularyMap, L10n as VocabL10n, ActionEffect, CommandEffect, IndexedVocabAction, VocabActionRefusal, VocabCall, LooseCapVocabularyEntry, LooseVocabEffect, LooseVocabOffer, LooseVocabOpenArg, ResolvedBooleanTrigger, ResolvedEnumTrigger, ResolvedEnumValue, ResolvedEventTrigger, ResolvedNumericTrigger, ResolvedValueTrigger, ActionGateAnswer, ActionGateAnswerOf, DynamicOfferAnswer, DynamicOfferAnswerOf, LooseVocabActionGate, ResolvedVocabAction, ResolvedVocabTrigger, VocabBindingsInput, VocabCapName, VocabLocale, CapVocabularyDecl, DeviceCapVocabularyDecl, EventVocabularyDecl, LooseMethodActionDecl, MethodActionArgs, MethodActionDecl, MethodActionEffect, MethodActionGate, MethodActionOpenArg, SystemCapVocabularyDecl, } from './device/cap-vocabulary/index.js';
273
+ export { actionEffect, actionGateAnswerFrom, actionOfferedWith, actionsForDevice as vocabularyActionsForDevice, deviceOffersActions, offeredActionsWith, allVocabActions, auditedFields, CAP_VOCABULARY, CAP_VOCABULARY_BY_NAME, commandEffect, findVocabAction, isCommand, renderVocabPhrase, triggersForDevice as vocabularyTriggersForDevice, VOCAB_TEMPLATES, vocabActionIdFor, vocabCall, VocabActionError, assertDeviceOffers, NOT_A_DEVICE, } from './device/cap-vocabulary/index.js';
274
+ export { DEVICE_IDENTIFIER_KEYS, DeviceIdentifierEntrySchema, DeviceIdentifierKeySchema, DeviceIdentifierOriginSchema, DeviceIdentifiersSchema, identifierStrength, isEmptyIdentifiers, mergeIdentifiers, normaliseIdentifiers, sameIdentifiers, normaliseMac, } from './device/device-identifiers.js';
275
+ export type { AcceptedValue, DeviceIdentifierEntry, DeviceIdentifierKey, DeviceIdentifierOrigin, DeviceIdentifiers, DeviceIdentifierStrength, NormaliseIdentifiersOptions, NormalisedIdentifiers, NormaliseResult, RawDeviceIdentifiers, RawSerialIdentifier, RawVendorUidIdentifier, RejectedIdentifier, RejectedReason, } from './device/device-identifiers.js';
276
+ export { declareDeviceIdentifiers } from './device/declare-identifiers.js';
277
+ export type { DeclareIdentifiersDeps, DeclareIdentifiersOptions, DeclareIdentifiersOutcome, DeclareIdentifiersResult, IdentifiersWriter, SetIdentifiersInput, } from './device/declare-identifiers.js';
274
278
  export type { ChildLayout, ChildLayoutEntry, CreateDeviceSpec, DeviceCapDisplayOverride, DeviceDiscovery, DeviceDisplayOverride, DeviceManualCreation, DeviceMeta, DiscoveredDevice, InitialDeviceMeta, RoleDisplayDefault, SavedDevice, } from './device/device-management.js';
275
279
  export type { DeviceProfile, DeviceProfileDefaults, DeviceProfileMatch, PipelinePhaseMode, } from './device/device-profile.js';
276
280
  export { BATTERY_DEVICE_PROFILE, DEVICE_PROFILES, deviceMatchesProfile, resolveDeviceProfile, } from './device/device-profile.js';