@camstack/types 1.2.417 → 1.2.418
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/dist/addon.js +1 -1
- package/dist/addon.mjs +1 -1
- package/dist/capabilities/capability-definition.d.ts +5 -0
- package/dist/capabilities/composer.cap.d.ts +198 -0
- package/dist/capabilities/core-blocks.cap.d.ts +1420 -0
- package/dist/capabilities/group-status.cap.d.ts +46 -0
- package/dist/capabilities/index.d.ts +3 -1
- package/dist/capabilities/motion.cap.d.ts +12 -4
- package/dist/client.js +3 -0
- package/dist/client.mjs +3 -0
- package/dist/composition/composition-report.d.ts +72 -0
- package/dist/composition/composition.d.ts +285 -5
- package/dist/composition/helpers/aggregate.d.ts +41 -0
- package/dist/composition/helpers/catalog.d.ts +42 -0
- package/dist/composition/helpers/compile.d.ts +22 -0
- package/dist/composition/helpers/index.d.ts +6 -0
- package/dist/composition/helpers/save.d.ts +18 -0
- package/dist/composition/helpers/source-pick.d.ts +40 -0
- package/dist/composition/helpers/spec.d.ts +38 -0
- package/dist/composition/index.d.ts +1 -0
- package/dist/composition/source-ref.d.ts +11 -0
- package/dist/composition/validate-composition.d.ts +5 -0
- package/dist/{composition-kEl9mevu.mjs → composition-B85l9j1M.mjs} +114 -8
- package/dist/{composition-DsmkwP9-.js → composition-OJKOJJD-.js} +179 -7
- package/dist/device/cap-vocabulary/entries/sensors.d.ts +1 -1
- package/dist/generated/addon-api.d.ts +14 -0
- package/dist/generated/addon-cap-facts.d.ts +1 -1
- package/dist/generated/cap-status-types.d.ts +3 -1
- package/dist/generated/capability-router-map.d.ts +5 -2
- package/dist/generated/device-local-state.d.ts +3 -0
- package/dist/generated/device-proxy.d.ts +3 -0
- 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/index.js +706 -12
- package/dist/index.mjs +686 -13
- package/dist/node.js +1 -1
- package/dist/node.mjs +1 -1
- package/dist/{sleep-gtskVoMw.js → sleep-7Gw3GJ4n.js} +18 -0
- package/dist/{sleep-CARd6wZF.mjs → sleep-B81gwQuR.mjs} +18 -0
- package/package.json +1 -1
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type InferProvider } from './capability-definition.js';
|
|
3
|
+
import { DeviceType } from '../device/device-type.js';
|
|
4
|
+
/**
|
|
5
|
+
* How many members of a helper group answered (D944). Counts are integers,
|
|
6
|
+
* not measurements: zero included is a real count, never a stand-in reading.
|
|
7
|
+
* The reading itself stays on the output capability. History is none — the
|
|
8
|
+
* series that later statistics read is the output cap's own history block.
|
|
9
|
+
*/
|
|
10
|
+
export declare const GroupStatusSchema: z.ZodObject<{
|
|
11
|
+
included: z.ZodNumber;
|
|
12
|
+
excluded: z.ZodNumber;
|
|
13
|
+
total: z.ZodNumber;
|
|
14
|
+
}>;
|
|
15
|
+
export type GroupStatus = z.infer<typeof GroupStatusSchema>;
|
|
16
|
+
export declare const groupStatusCapability: {
|
|
17
|
+
readonly name: 'group-status';
|
|
18
|
+
readonly scope: 'device';
|
|
19
|
+
readonly deviceNative: true;
|
|
20
|
+
readonly mode: 'singleton';
|
|
21
|
+
readonly deviceTypes: readonly [DeviceType.Sensor];
|
|
22
|
+
readonly methods: {};
|
|
23
|
+
readonly status: {
|
|
24
|
+
readonly schema: z.ZodObject<{
|
|
25
|
+
included: z.ZodNumber;
|
|
26
|
+
excluded: z.ZodNumber;
|
|
27
|
+
total: z.ZodNumber;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
readonly kind: 'push';
|
|
30
|
+
};
|
|
31
|
+
readonly runtimeState: z.ZodObject<{
|
|
32
|
+
included: z.ZodNumber;
|
|
33
|
+
excluded: z.ZodNumber;
|
|
34
|
+
total: z.ZodNumber;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
/**
|
|
37
|
+
* Runtime-state durability: **session** — recomputed from members on the
|
|
38
|
+
* next source event; a restored count would outlive the readings it named.
|
|
39
|
+
*
|
|
40
|
+
* See `RuntimeStateDurability`. Enforced by
|
|
41
|
+
* `scripts/check-runtime-state-durability.ts`.
|
|
42
|
+
*/
|
|
43
|
+
readonly durability: 'session';
|
|
44
|
+
readonly history: 'none';
|
|
45
|
+
};
|
|
46
|
+
export type IGroupStatusProvider = InferProvider<typeof groupStatusCapability>;
|
|
@@ -185,6 +185,7 @@ export { type FanControlStatus, FanControlStatusSchema, type FanDirection, FanDi
|
|
|
185
185
|
export { type FeatureProbeStatus, FeatureProbeStatusSchema, featureProbeCapability, type IFeatureProbeProvider, } from './feature-probe.cap.js';
|
|
186
186
|
export { type FloodStatus, FloodStatusSchema, floodCapability, type IFloodProvider, } from './flood.cap.js';
|
|
187
187
|
export { type GasStatus, GasStatusSchema, gasCapability, type IGasProvider } from './gas.cap.js';
|
|
188
|
+
export { type GroupStatus, GroupStatusSchema, groupStatusCapability, type IGroupStatusProvider, } from './group-status.cap.js';
|
|
188
189
|
export { type HeatingValveStatus, HeatingValveStatusSchema, heatingValveCapability, type IHeatingValveProvider, } from './heating-valve.cap.js';
|
|
189
190
|
export { type HumidifierStatus, HumidifierStatusSchema, humidifierCapability, type IHumidifierProvider, } from './humidifier.cap.js';
|
|
190
191
|
export { type HumiditySensorStatus, HumiditySensorStatusSchema, humiditySensorCapability, type IHumiditySensorProvider, } from './humidity-sensor.cap.js';
|
|
@@ -336,6 +337,7 @@ import type { featureProbeCapability } from './feature-probe.cap.js';
|
|
|
336
337
|
import type { filesystemBrowseCapability } from './filesystem-browse.cap.js';
|
|
337
338
|
import type { floodCapability } from './flood.cap.js';
|
|
338
339
|
import type { gasCapability } from './gas.cap.js';
|
|
340
|
+
import type { groupStatusCapability } from './group-status.cap.js';
|
|
339
341
|
import type { heatingValveCapability } from './heating-valve.cap.js';
|
|
340
342
|
import type { humidifierCapability } from './humidifier.cap.js';
|
|
341
343
|
import type { humiditySensorCapability } from './humidity-sensor.cap.js';
|
|
@@ -437,6 +439,6 @@ import type { trainingProviderCapability } from './training-provider.cap.js';
|
|
|
437
439
|
import type { zoneAnalyticsCapability } from './zone-analytics.cap.js';
|
|
438
440
|
import type { zoneRulesCapability } from './zone-rules.cap.js';
|
|
439
441
|
import type { zonesCapability } from './zones.cap.js';
|
|
440
|
-
type AnyCapability = typeof streamSignalsCapability | typeof addonSettingsCapability | typeof alertsCapability | typeof storageCapability | typeof storageMigrationCapability | typeof storageProviderCapability | typeof storageEvictableCapability | typeof storageOccupancyCapability | typeof filesystemBrowseCapability | typeof backupCapability | typeof terminalSessionCapability | typeof settingsStoreCapability | typeof dataStoreProviderCapability | typeof databaseSnapshotCapability | typeof storageAdminCapability | typeof recordsCapability | typeof recordEntriesCapability | typeof deviceHistoryCapability | typeof keychainCapability | typeof keychainAdminCapability | typeof deviceCredentialsCapability | typeof nodeCertificatesCapability | typeof logChannelsCapability | typeof logDestinationCapability | typeof loadContributionCapability | typeof failureContributionCapability | typeof deviceRemovalHookCapability | typeof adminUiCapability | typeof viewerUiCapability | typeof ssoBridgeCapability | typeof userPasskeysCapability | typeof smtpProviderCapability | typeof mqttBrokerCapability | typeof brokerCapability | typeof deviceAdoptionCapability | typeof deviceAdminLinkCapability | typeof deviceExportCapability | typeof addonPagesCapability | typeof addonPagesSourceCapability | typeof addonWidgetsCapability | typeof addonWidgetsSourceCapability | typeof customModelRegistryCapability | typeof modelDistributorCapability | typeof modelConvertCapability | typeof addonRoutesCapability | typeof streamBrokerCapability | typeof decoderCapability | typeof webrtcSessionCapability | typeof cameraStreamsCapability | typeof calendarSourceCapability | typeof calendarsCapability | typeof motionDetectionCapability | typeof pipelineExecutorCapability | typeof detectionPipelineCapability | typeof cameraPipelineConfigCapability | typeof pipelineRunnerCapability | typeof pipelineOrchestratorCapability | typeof audioAnalyzerCapability | typeof audioAnalysisCapability | typeof audioCodecCapability | typeof embeddingEncoderCapability | typeof vectorStoreCapability | typeof deviceProviderCapability | typeof deviceManagerCapability | typeof deviceStateCapability | typeof authProviderCapability | typeof loginMethodCapability | typeof networkAccessCapability | typeof turnProviderCapability | typeof snapshotCapability | typeof llmCapability | typeof llmRuntimeCapability | typeof notificationOutputCapability | typeof composerCapability | typeof coreBlocksCapability | typeof notificationRulesCapability | typeof pipelineAnalyticsCapability | typeof metricsProviderCapability | typeof ptzCapability | typeof ptzAutotrackCapability | typeof navigationCapability | typeof consumablesCapability | typeof connectionTestCapability | typeof runningStateCapability | typeof rebootCapability | typeof deviceDiscoveryCapability | typeof brightnessCapability | typeof colorCapability | typeof climateControlCapability | typeof coverCapability | typeof valveCapability | typeof humidifierCapability | typeof waterHeaterCapability | typeof weatherCapability | typeof imageCapability | typeof lockControlCapability | typeof vacuumControlCapability | typeof petFeederCapability | typeof lawnMowerControlCapability | typeof fanControlCapability | typeof controlCapability | typeof notifierCapability | typeof mediaPlayerCapability | typeof alarmPanelCapability | typeof presenceCapability | typeof scriptRunnerCapability | typeof automationControlCapability | typeof motionTriggerCapability | typeof zonesCapability | typeof zoneRulesCapability | typeof trainingCapability | typeof trainingProviderCapability | typeof zoneAnalyticsCapability | typeof audioMetricsCapability | typeof motionCapability | typeof contactCapability | typeof floodCapability | typeof smokeCapability | typeof carbonMonoxideCapability | typeof gasCapability | typeof tamperCapability | typeof vibrationCapability | typeof connectivityCapability | typeof binaryCapability | typeof temperatureSensorCapability | typeof heatingValveCapability | typeof humiditySensorCapability | typeof ambientLightSensorCapability | typeof pressureSensorCapability | typeof powerMeterCapability | typeof airQualitySensorCapability | typeof numericSensorCapability | typeof enumSensorCapability | typeof recordingCapability | typeof recordingArchiveCapability | typeof recordingExportCapability | typeof recordingSignalCapability | typeof deviceOpsCapability | typeof displayPaletteCapability | typeof platformProbeCapability | typeof localNetworkCapability | typeof meshNetworkCapability | typeof userManagementCapability | typeof systemCapability | typeof networkQualityCapability | typeof toastCapability | typeof nodesCapability | typeof serverManagementCapability | typeof integrationsCapability | typeof addonsCapability | typeof oauthIntegrationCapability | typeof oidcConnectionsCapability | typeof streamParamsCapability | typeof streamCatalogCapability | typeof motionZonesCapability | typeof cameraGridLayoutCapability | typeof sceneMonitorCapability | typeof privacyMaskCapability | typeof dayNightCapability | typeof recordingOnboardCapability | typeof imageSettingsCapability | typeof osdCapability | typeof osdManagerCapability | typeof accessoriesCapability | typeof batteryCapability | typeof networkLinkCapability | typeof buttonCapability | typeof cameraCredentialsCapability | typeof deviceStatusCapability | typeof doorbellCapability | typeof eventEmitterCapability | typeof faceGalleryCapability | typeof featureProbeCapability | typeof intercomCapability | typeof nativeObjectDetectionCapability | typeof plateGalleryCapability | typeof switchCapability | typeof updateCapability | typeof videoclipsCapability | typeof deviceExtensionCapability | typeof dishwasherCapability;
|
|
442
|
+
type AnyCapability = typeof streamSignalsCapability | typeof addonSettingsCapability | typeof alertsCapability | typeof storageCapability | typeof storageMigrationCapability | typeof storageProviderCapability | typeof storageEvictableCapability | typeof storageOccupancyCapability | typeof filesystemBrowseCapability | typeof backupCapability | typeof terminalSessionCapability | typeof settingsStoreCapability | typeof dataStoreProviderCapability | typeof databaseSnapshotCapability | typeof storageAdminCapability | typeof recordsCapability | typeof recordEntriesCapability | typeof deviceHistoryCapability | typeof keychainCapability | typeof keychainAdminCapability | typeof deviceCredentialsCapability | typeof nodeCertificatesCapability | typeof logChannelsCapability | typeof logDestinationCapability | typeof loadContributionCapability | typeof failureContributionCapability | typeof deviceRemovalHookCapability | typeof adminUiCapability | typeof viewerUiCapability | typeof ssoBridgeCapability | typeof userPasskeysCapability | typeof smtpProviderCapability | typeof mqttBrokerCapability | typeof brokerCapability | typeof deviceAdoptionCapability | typeof deviceAdminLinkCapability | typeof deviceExportCapability | typeof addonPagesCapability | typeof addonPagesSourceCapability | typeof addonWidgetsCapability | typeof addonWidgetsSourceCapability | typeof customModelRegistryCapability | typeof modelDistributorCapability | typeof modelConvertCapability | typeof addonRoutesCapability | typeof streamBrokerCapability | typeof decoderCapability | typeof webrtcSessionCapability | typeof cameraStreamsCapability | typeof calendarSourceCapability | typeof calendarsCapability | typeof motionDetectionCapability | typeof pipelineExecutorCapability | typeof detectionPipelineCapability | typeof cameraPipelineConfigCapability | typeof pipelineRunnerCapability | typeof pipelineOrchestratorCapability | typeof audioAnalyzerCapability | typeof audioAnalysisCapability | typeof audioCodecCapability | typeof embeddingEncoderCapability | typeof vectorStoreCapability | typeof deviceProviderCapability | typeof deviceManagerCapability | typeof deviceStateCapability | typeof authProviderCapability | typeof loginMethodCapability | typeof networkAccessCapability | typeof turnProviderCapability | typeof snapshotCapability | typeof llmCapability | typeof llmRuntimeCapability | typeof notificationOutputCapability | typeof composerCapability | typeof coreBlocksCapability | typeof notificationRulesCapability | typeof pipelineAnalyticsCapability | typeof metricsProviderCapability | typeof ptzCapability | typeof ptzAutotrackCapability | typeof navigationCapability | typeof consumablesCapability | typeof connectionTestCapability | typeof runningStateCapability | typeof rebootCapability | typeof deviceDiscoveryCapability | typeof brightnessCapability | typeof colorCapability | typeof climateControlCapability | typeof coverCapability | typeof valveCapability | typeof humidifierCapability | typeof waterHeaterCapability | typeof weatherCapability | typeof imageCapability | typeof lockControlCapability | typeof vacuumControlCapability | typeof petFeederCapability | typeof lawnMowerControlCapability | typeof fanControlCapability | typeof controlCapability | typeof notifierCapability | typeof mediaPlayerCapability | typeof alarmPanelCapability | typeof presenceCapability | typeof scriptRunnerCapability | typeof automationControlCapability | typeof motionTriggerCapability | typeof zonesCapability | typeof zoneRulesCapability | typeof trainingCapability | typeof trainingProviderCapability | typeof zoneAnalyticsCapability | typeof audioMetricsCapability | typeof motionCapability | typeof contactCapability | typeof floodCapability | typeof smokeCapability | typeof carbonMonoxideCapability | typeof gasCapability | typeof groupStatusCapability | typeof tamperCapability | typeof vibrationCapability | typeof connectivityCapability | typeof binaryCapability | typeof temperatureSensorCapability | typeof heatingValveCapability | typeof humiditySensorCapability | typeof ambientLightSensorCapability | typeof pressureSensorCapability | typeof powerMeterCapability | typeof airQualitySensorCapability | typeof numericSensorCapability | typeof enumSensorCapability | typeof recordingCapability | typeof recordingArchiveCapability | typeof recordingExportCapability | typeof recordingSignalCapability | typeof deviceOpsCapability | typeof displayPaletteCapability | typeof platformProbeCapability | typeof localNetworkCapability | typeof meshNetworkCapability | typeof userManagementCapability | typeof systemCapability | typeof networkQualityCapability | typeof toastCapability | typeof nodesCapability | typeof serverManagementCapability | typeof integrationsCapability | typeof addonsCapability | typeof oauthIntegrationCapability | typeof oidcConnectionsCapability | typeof streamParamsCapability | typeof streamCatalogCapability | typeof motionZonesCapability | typeof cameraGridLayoutCapability | typeof sceneMonitorCapability | typeof privacyMaskCapability | typeof dayNightCapability | typeof recordingOnboardCapability | typeof imageSettingsCapability | typeof osdCapability | typeof osdManagerCapability | typeof accessoriesCapability | typeof batteryCapability | typeof networkLinkCapability | typeof buttonCapability | typeof cameraCredentialsCapability | typeof deviceStatusCapability | typeof doorbellCapability | typeof eventEmitterCapability | typeof faceGalleryCapability | typeof featureProbeCapability | typeof intercomCapability | typeof nativeObjectDetectionCapability | typeof plateGalleryCapability | typeof switchCapability | typeof updateCapability | typeof videoclipsCapability | typeof deviceExtensionCapability | typeof dishwasherCapability;
|
|
441
443
|
export type CapabilityName = AnyCapability['name'];
|
|
442
444
|
export type ITypedReadinessRegistry = IReadinessRegistry<CapabilityName>;
|
|
@@ -91,15 +91,23 @@ export declare const motionCapability: {
|
|
|
91
91
|
readonly methods: {
|
|
92
92
|
/**
|
|
93
93
|
* Pull the current motion state synchronously. Convenience shortcut
|
|
94
|
-
* for consumers that don't need the full status object
|
|
95
|
-
*
|
|
96
|
-
* `getStatus` once the auto-injected status surface lands in every
|
|
97
|
-
* consumer.
|
|
94
|
+
* for consumers that don't need the full status object. A composed
|
|
95
|
+
* group answers from its slice (D944): unknown throws, it is not off.
|
|
98
96
|
*/
|
|
99
97
|
readonly isDetected: import("./capability-definition.js").CapabilityMethodSchema<z.ZodObject<{
|
|
100
98
|
deviceId: z.ZodNumber;
|
|
101
99
|
}, z.core.$strip>, z.ZodBoolean, import("./capability-definition.js").CapabilityMethodKind>;
|
|
102
100
|
};
|
|
101
|
+
/**
|
|
102
|
+
* A composed motion group serves `isDetected` from `detected` (D944).
|
|
103
|
+
* Without this the cap stays uncomposable (`has-commands`).
|
|
104
|
+
*/
|
|
105
|
+
readonly composedMethods: {
|
|
106
|
+
readonly isDetected: {
|
|
107
|
+
readonly kind: 'slice';
|
|
108
|
+
readonly field: 'detected';
|
|
109
|
+
};
|
|
110
|
+
};
|
|
103
111
|
readonly events: {
|
|
104
112
|
/**
|
|
105
113
|
* Fires every time the runner transitions a camera between
|
package/dist/client.js
CHANGED
|
@@ -26668,6 +26668,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
26668
26668
|
const featureProbeInterface = { getStatus: (input) => dispatch("feature-probe", "featureProbe", "getStatus", "query", input) };
|
|
26669
26669
|
const floodInterface = { getStatus: (input) => dispatch("flood", "flood", "getStatus", "query", input) };
|
|
26670
26670
|
const gasInterface = { getStatus: (input) => dispatch("gas", "gas", "getStatus", "query", input) };
|
|
26671
|
+
const groupStatusInterface = { getStatus: (input) => dispatch("group-status", "groupStatus", "getStatus", "query", input) };
|
|
26671
26672
|
const heatingValveInterface = { getStatus: (input) => dispatch("heating-valve", "heatingValve", "getStatus", "query", input) };
|
|
26672
26673
|
const humidifierInterface = {
|
|
26673
26674
|
setOn: (input) => dispatch("humidifier", "humidifier", "setOn", "mutation", input),
|
|
@@ -27222,6 +27223,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
27222
27223
|
featureProbe: createSliceHandle(stateSource, binding.deviceId, "feature-probe"),
|
|
27223
27224
|
flood: createSliceHandle(stateSource, binding.deviceId, "flood"),
|
|
27224
27225
|
gas: createSliceHandle(stateSource, binding.deviceId, "gas"),
|
|
27226
|
+
groupStatus: createSliceHandle(stateSource, binding.deviceId, "group-status"),
|
|
27225
27227
|
heatingValve: createSliceHandle(stateSource, binding.deviceId, "heating-valve"),
|
|
27226
27228
|
humidifier: createSliceHandle(stateSource, binding.deviceId, "humidifier"),
|
|
27227
27229
|
humiditySensor: createSliceHandle(stateSource, binding.deviceId, "humidity-sensor"),
|
|
@@ -27305,6 +27307,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
27305
27307
|
...bound("feature-probe") ? { featureProbe: featureProbeInterface } : {},
|
|
27306
27308
|
...bound("flood") ? { flood: floodInterface } : {},
|
|
27307
27309
|
...bound("gas") ? { gas: gasInterface } : {},
|
|
27310
|
+
...bound("group-status") ? { groupStatus: groupStatusInterface } : {},
|
|
27308
27311
|
...bound("heating-valve") ? { heatingValve: heatingValveInterface } : {},
|
|
27309
27312
|
...bound("humidifier") ? { humidifier: humidifierInterface } : {},
|
|
27310
27313
|
...bound("humidity-sensor") ? { humiditySensor: humiditySensorInterface } : {},
|
package/dist/client.mjs
CHANGED
|
@@ -26667,6 +26667,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
26667
26667
|
const featureProbeInterface = { getStatus: (input) => dispatch("feature-probe", "featureProbe", "getStatus", "query", input) };
|
|
26668
26668
|
const floodInterface = { getStatus: (input) => dispatch("flood", "flood", "getStatus", "query", input) };
|
|
26669
26669
|
const gasInterface = { getStatus: (input) => dispatch("gas", "gas", "getStatus", "query", input) };
|
|
26670
|
+
const groupStatusInterface = { getStatus: (input) => dispatch("group-status", "groupStatus", "getStatus", "query", input) };
|
|
26670
26671
|
const heatingValveInterface = { getStatus: (input) => dispatch("heating-valve", "heatingValve", "getStatus", "query", input) };
|
|
26671
26672
|
const humidifierInterface = {
|
|
26672
26673
|
setOn: (input) => dispatch("humidifier", "humidifier", "setOn", "mutation", input),
|
|
@@ -27221,6 +27222,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
27221
27222
|
featureProbe: createSliceHandle(stateSource, binding.deviceId, "feature-probe"),
|
|
27222
27223
|
flood: createSliceHandle(stateSource, binding.deviceId, "flood"),
|
|
27223
27224
|
gas: createSliceHandle(stateSource, binding.deviceId, "gas"),
|
|
27225
|
+
groupStatus: createSliceHandle(stateSource, binding.deviceId, "group-status"),
|
|
27224
27226
|
heatingValve: createSliceHandle(stateSource, binding.deviceId, "heating-valve"),
|
|
27225
27227
|
humidifier: createSliceHandle(stateSource, binding.deviceId, "humidifier"),
|
|
27226
27228
|
humiditySensor: createSliceHandle(stateSource, binding.deviceId, "humidity-sensor"),
|
|
@@ -27304,6 +27306,7 @@ function createDeviceProxy(api, binding, opts) {
|
|
|
27304
27306
|
...bound("feature-probe") ? { featureProbe: featureProbeInterface } : {},
|
|
27305
27307
|
...bound("flood") ? { flood: floodInterface } : {},
|
|
27306
27308
|
...bound("gas") ? { gas: gasInterface } : {},
|
|
27309
|
+
...bound("group-status") ? { groupStatus: groupStatusInterface } : {},
|
|
27307
27310
|
...bound("heating-valve") ? { heatingValve: heatingValveInterface } : {},
|
|
27308
27311
|
...bound("humidifier") ? { humidifier: humidifierInterface } : {},
|
|
27309
27312
|
...bound("humidity-sensor") ? { humiditySensor: humiditySensorInterface } : {},
|
|
@@ -8,10 +8,13 @@ export declare const CompositionProblemCodeSchema: z.ZodEnum<{
|
|
|
8
8
|
"duplicate-target": "duplicate-target";
|
|
9
9
|
"expression-invalid": "expression-invalid";
|
|
10
10
|
"has-commands": "has-commands";
|
|
11
|
+
"helper-mismatch": "helper-mismatch";
|
|
11
12
|
"item-field-reserved": "item-field-reserved";
|
|
12
13
|
"kind-mismatch": "kind-mismatch";
|
|
13
14
|
"may-be-null": "may-be-null";
|
|
15
|
+
"member-constraint": "member-constraint";
|
|
14
16
|
"missing-field": "missing-field";
|
|
17
|
+
"mixed-quantity": "mixed-quantity";
|
|
15
18
|
"native-capability-replace": "native-capability-replace";
|
|
16
19
|
"nested-field": "nested-field";
|
|
17
20
|
"not-composable": "not-composable";
|
|
@@ -36,10 +39,13 @@ export declare const CompositionProblemSchema: z.ZodObject<{
|
|
|
36
39
|
"duplicate-target": "duplicate-target";
|
|
37
40
|
"expression-invalid": "expression-invalid";
|
|
38
41
|
"has-commands": "has-commands";
|
|
42
|
+
"helper-mismatch": "helper-mismatch";
|
|
39
43
|
"item-field-reserved": "item-field-reserved";
|
|
40
44
|
"kind-mismatch": "kind-mismatch";
|
|
41
45
|
"may-be-null": "may-be-null";
|
|
46
|
+
"member-constraint": "member-constraint";
|
|
42
47
|
"missing-field": "missing-field";
|
|
48
|
+
"mixed-quantity": "mixed-quantity";
|
|
43
49
|
"native-capability-replace": "native-capability-replace";
|
|
44
50
|
"nested-field": "nested-field";
|
|
45
51
|
"not-composable": "not-composable";
|
|
@@ -76,6 +82,7 @@ export type CompositionFieldKind = z.infer<typeof CompositionFieldKindSchema>;
|
|
|
76
82
|
export declare const CompositionUnavailableModeSchema: z.ZodEnum<{
|
|
77
83
|
null: "null";
|
|
78
84
|
offline: "offline";
|
|
85
|
+
omit: "omit";
|
|
79
86
|
release: "release";
|
|
80
87
|
unknown: "unknown";
|
|
81
88
|
}>;
|
|
@@ -119,6 +126,7 @@ export declare const CompositionFieldPlanSchema: z.ZodObject<{
|
|
|
119
126
|
unavailable: z.ZodEnum<{
|
|
120
127
|
null: "null";
|
|
121
128
|
offline: "offline";
|
|
129
|
+
omit: "omit";
|
|
122
130
|
release: "release";
|
|
123
131
|
unknown: "unknown";
|
|
124
132
|
}>;
|
|
@@ -154,6 +162,36 @@ export declare const CompositionFieldPlanSchema: z.ZodObject<{
|
|
|
154
162
|
}, z.core.$strip>, z.ZodObject<{
|
|
155
163
|
kind: z.ZodLiteral<"code">;
|
|
156
164
|
code: z.ZodString;
|
|
165
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
166
|
+
kind: z.ZodLiteral<"aggregate">;
|
|
167
|
+
reducer: z.ZodEnum<{
|
|
168
|
+
all: "all";
|
|
169
|
+
any: "any";
|
|
170
|
+
max: "max";
|
|
171
|
+
mean: "mean";
|
|
172
|
+
median: "median";
|
|
173
|
+
min: "min";
|
|
174
|
+
sum: "sum";
|
|
175
|
+
}>;
|
|
176
|
+
reads: z.ZodArray<z.ZodObject<{
|
|
177
|
+
source: z.ZodObject<{
|
|
178
|
+
addonId: z.ZodString;
|
|
179
|
+
stableId: z.ZodString;
|
|
180
|
+
}, z.core.$strip>;
|
|
181
|
+
cap: z.ZodString;
|
|
182
|
+
fieldPath: z.ZodString;
|
|
183
|
+
}, z.core.$strip>>;
|
|
184
|
+
publish: z.ZodEnum<{
|
|
185
|
+
excluded: "excluded";
|
|
186
|
+
included: "included";
|
|
187
|
+
total: "total";
|
|
188
|
+
value: "value";
|
|
189
|
+
}>;
|
|
190
|
+
empty: z.ZodEnum<{
|
|
191
|
+
null: "null";
|
|
192
|
+
offline: "offline";
|
|
193
|
+
omit: "omit";
|
|
194
|
+
}>;
|
|
157
195
|
}, z.core.$strip>], "kind">;
|
|
158
196
|
reads: z.ZodArray<z.ZodObject<{
|
|
159
197
|
source: z.ZodObject<{
|
|
@@ -198,10 +236,13 @@ export declare const CompositionValidationSchema: z.ZodObject<{
|
|
|
198
236
|
"duplicate-target": "duplicate-target";
|
|
199
237
|
"expression-invalid": "expression-invalid";
|
|
200
238
|
"has-commands": "has-commands";
|
|
239
|
+
"helper-mismatch": "helper-mismatch";
|
|
201
240
|
"item-field-reserved": "item-field-reserved";
|
|
202
241
|
"kind-mismatch": "kind-mismatch";
|
|
203
242
|
"may-be-null": "may-be-null";
|
|
243
|
+
"member-constraint": "member-constraint";
|
|
204
244
|
"missing-field": "missing-field";
|
|
245
|
+
"mixed-quantity": "mixed-quantity";
|
|
205
246
|
"native-capability-replace": "native-capability-replace";
|
|
206
247
|
"nested-field": "nested-field";
|
|
207
248
|
"not-composable": "not-composable";
|
|
@@ -241,6 +282,7 @@ export declare const CompositionValidationSchema: z.ZodObject<{
|
|
|
241
282
|
unavailable: z.ZodEnum<{
|
|
242
283
|
null: "null";
|
|
243
284
|
offline: "offline";
|
|
285
|
+
omit: "omit";
|
|
244
286
|
release: "release";
|
|
245
287
|
unknown: "unknown";
|
|
246
288
|
}>;
|
|
@@ -276,6 +318,36 @@ export declare const CompositionValidationSchema: z.ZodObject<{
|
|
|
276
318
|
}, z.core.$strip>, z.ZodObject<{
|
|
277
319
|
kind: z.ZodLiteral<"code">;
|
|
278
320
|
code: z.ZodString;
|
|
321
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
322
|
+
kind: z.ZodLiteral<"aggregate">;
|
|
323
|
+
reducer: z.ZodEnum<{
|
|
324
|
+
all: "all";
|
|
325
|
+
any: "any";
|
|
326
|
+
max: "max";
|
|
327
|
+
mean: "mean";
|
|
328
|
+
median: "median";
|
|
329
|
+
min: "min";
|
|
330
|
+
sum: "sum";
|
|
331
|
+
}>;
|
|
332
|
+
reads: z.ZodArray<z.ZodObject<{
|
|
333
|
+
source: z.ZodObject<{
|
|
334
|
+
addonId: z.ZodString;
|
|
335
|
+
stableId: z.ZodString;
|
|
336
|
+
}, z.core.$strip>;
|
|
337
|
+
cap: z.ZodString;
|
|
338
|
+
fieldPath: z.ZodString;
|
|
339
|
+
}, z.core.$strip>>;
|
|
340
|
+
publish: z.ZodEnum<{
|
|
341
|
+
excluded: "excluded";
|
|
342
|
+
included: "included";
|
|
343
|
+
total: "total";
|
|
344
|
+
value: "value";
|
|
345
|
+
}>;
|
|
346
|
+
empty: z.ZodEnum<{
|
|
347
|
+
null: "null";
|
|
348
|
+
offline: "offline";
|
|
349
|
+
omit: "omit";
|
|
350
|
+
}>;
|
|
279
351
|
}, z.core.$strip>], "kind">;
|
|
280
352
|
reads: z.ZodArray<z.ZodObject<{
|
|
281
353
|
source: z.ZodObject<{
|