@fastybird/smart-panel-backend 1.1.0-alpha.64 → 1.1.0-alpha.65
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/app.module.d.ts +3 -1
- package/dist/app.module.js +5 -1
- package/dist/app.module.js.map +1 -1
- package/dist/cli.js +1 -0
- package/dist/cli.js.map +1 -1
- package/dist/common/database/sqlite-data-source.d.ts +37 -0
- package/dist/common/database/sqlite-data-source.js +2131 -0
- package/dist/common/database/sqlite-data-source.js.map +1 -0
- package/dist/dataSource.d.ts +3 -1
- package/dist/dataSource.js +3 -3
- package/dist/dataSource.js.map +1 -1
- package/dist/main.js +1 -0
- package/dist/main.js.map +1 -1
- package/dist/migrations/1000000000002-AddTokenLastUsedAt.js +1 -0
- package/dist/migrations/1000000000002-AddTokenLastUsedAt.js.map +1 -1
- package/dist/migrations/1000000000027-AddVirtualProducerBindings.d.ts +7 -0
- package/dist/migrations/1000000000027-AddVirtualProducerBindings.js +87 -0
- package/dist/migrations/1000000000027-AddVirtualProducerBindings.js.map +1 -0
- package/dist/migrations/1000000000028-AddShellySampleSources.d.ts +6 -0
- package/dist/migrations/1000000000028-AddShellySampleSources.js +29 -0
- package/dist/migrations/1000000000028-AddShellySampleSources.js.map +1 -0
- package/dist/migrations/1000000000029-AddVirtualNumericTransforms.d.ts +6 -0
- package/dist/migrations/1000000000029-AddVirtualNumericTransforms.js +31 -0
- package/dist/migrations/1000000000029-AddVirtualNumericTransforms.js.map +1 -0
- package/dist/migrations/1000000000030-AddZigbeeSampleSources.d.ts +6 -0
- package/dist/migrations/1000000000030-AddZigbeeSampleSources.js +33 -0
- package/dist/migrations/1000000000030-AddZigbeeSampleSources.js.map +1 -0
- package/dist/migrations/1000000000031-AddVirtualThermostatClaims.d.ts +6 -0
- package/dist/migrations/1000000000031-AddVirtualThermostatClaims.js +62 -0
- package/dist/migrations/1000000000031-AddVirtualThermostatClaims.js.map +1 -0
- package/dist/migrations/1000000000032-AddVirtualThermostatRuntime.d.ts +6 -0
- package/dist/migrations/1000000000032-AddVirtualThermostatRuntime.js +39 -0
- package/dist/migrations/1000000000032-AddVirtualThermostatRuntime.js.map +1 -0
- package/dist/migrations/1000000000033-AddThermostatInstallationProfiles.d.ts +6 -0
- package/dist/migrations/1000000000033-AddThermostatInstallationProfiles.js +28 -0
- package/dist/migrations/1000000000033-AddThermostatInstallationProfiles.js.map +1 -0
- package/dist/migrations/1000000000034-AddVirtualThermostatRecoveries.d.ts +6 -0
- package/dist/migrations/1000000000034-AddVirtualThermostatRecoveries.js +26 -0
- package/dist/migrations/1000000000034-AddVirtualThermostatRecoveries.js.map +1 -0
- package/dist/migrations/1000000000035-IndexVirtualThermostatCommands.d.ts +6 -0
- package/dist/migrations/1000000000035-IndexVirtualThermostatCommands.js +35 -0
- package/dist/migrations/1000000000035-IndexVirtualThermostatCommands.js.map +1 -0
- package/dist/migrations/1000000000036-AddVirtualAggregatePolicies.d.ts +6 -0
- package/dist/migrations/1000000000036-AddVirtualAggregatePolicies.js +18 -0
- package/dist/migrations/1000000000036-AddVirtualAggregatePolicies.js.map +1 -0
- package/dist/migrations/1000000000037-AddVirtualAggregateProfiles.d.ts +6 -0
- package/dist/migrations/1000000000037-AddVirtualAggregateProfiles.js +16 -0
- package/dist/migrations/1000000000037-AddVirtualAggregateProfiles.js.map +1 -0
- package/dist/migrations/1000000000038-AddShellyCoverOrdering.d.ts +6 -0
- package/dist/migrations/1000000000038-AddShellyCoverOrdering.js +19 -0
- package/dist/migrations/1000000000038-AddShellyCoverOrdering.js.map +1 -0
- package/dist/migrations/1000000000039-AddVirtualThermostatComfort.d.ts +6 -0
- package/dist/migrations/1000000000039-AddVirtualThermostatComfort.js +16 -0
- package/dist/migrations/1000000000039-AddVirtualThermostatComfort.js.map +1 -0
- package/dist/migrations/1000000000040-AddThermostatBranchGroups.d.ts +6 -0
- package/dist/migrations/1000000000040-AddThermostatBranchGroups.js +32 -0
- package/dist/migrations/1000000000040-AddThermostatBranchGroups.js.map +1 -0
- package/dist/migrations/1000000000041-AddThermostatMemberProtection.d.ts +6 -0
- package/dist/migrations/1000000000041-AddThermostatMemberProtection.js +39 -0
- package/dist/migrations/1000000000041-AddThermostatMemberProtection.js.map +1 -0
- package/dist/migrations/1000000000042-AddShellyCoverRecoveries.d.ts +6 -0
- package/dist/migrations/1000000000042-AddShellyCoverRecoveries.js +19 -0
- package/dist/migrations/1000000000042-AddShellyCoverRecoveries.js.map +1 -0
- package/dist/migrations/1000000000044-AddVirtualDewPoint.d.ts +6 -0
- package/dist/migrations/1000000000044-AddVirtualDewPoint.js +36 -0
- package/dist/migrations/1000000000044-AddVirtualDewPoint.js.map +1 -0
- package/dist/migrations/1000000000045-AddThermostatCoolingDependencies.d.ts +6 -0
- package/dist/migrations/1000000000045-AddThermostatCoolingDependencies.js +32 -0
- package/dist/migrations/1000000000045-AddThermostatCoolingDependencies.js.map +1 -0
- package/dist/migrations/1000000000046-AddSpaceActivityModes.d.ts +7 -0
- package/dist/migrations/1000000000046-AddSpaceActivityModes.js +54 -0
- package/dist/migrations/1000000000046-AddSpaceActivityModes.js.map +1 -0
- package/dist/migrations/1000000000047-AddClimateAutomationOwnership.d.ts +6 -0
- package/dist/migrations/1000000000047-AddClimateAutomationOwnership.js +60 -0
- package/dist/migrations/1000000000047-AddClimateAutomationOwnership.js.map +1 -0
- package/dist/migrations/1000000000048-AddThermostatCreationCatalogBirths.d.ts +6 -0
- package/dist/migrations/1000000000048-AddThermostatCreationCatalogBirths.js +208 -0
- package/dist/migrations/1000000000048-AddThermostatCreationCatalogBirths.js.map +1 -0
- package/dist/migrations/1000000000049-FenceClimateAutomationLifecycle.d.ts +6 -0
- package/dist/migrations/1000000000049-FenceClimateAutomationLifecycle.js +40 -0
- package/dist/migrations/1000000000049-FenceClimateAutomationLifecycle.js.map +1 -0
- package/dist/migrations/1000000000050-AddSpaceModeSchedules.d.ts +6 -0
- package/dist/migrations/1000000000050-AddSpaceModeSchedules.js +36 -0
- package/dist/migrations/1000000000050-AddSpaceModeSchedules.js.map +1 -0
- package/dist/migrations/1000000000051-AddSpaceOccupancy.d.ts +6 -0
- package/dist/migrations/1000000000051-AddSpaceOccupancy.js +34 -0
- package/dist/migrations/1000000000051-AddSpaceOccupancy.js.map +1 -0
- package/dist/migrations/1000000000052-AddNativeThermostats.d.ts +6 -0
- package/dist/migrations/1000000000052-AddNativeThermostats.js +39 -0
- package/dist/migrations/1000000000052-AddNativeThermostats.js.map +1 -0
- package/dist/migrations/1000000000053-AddThermostatOverrideClocks.d.ts +6 -0
- package/dist/migrations/1000000000053-AddThermostatOverrideClocks.js +35 -0
- package/dist/migrations/1000000000053-AddThermostatOverrideClocks.js.map +1 -0
- package/dist/modules/buddy/buddy.utils.d.ts +1 -1
- package/dist/modules/buddy/buddy.utils.js +10 -11
- package/dist/modules/buddy/buddy.utils.js.map +1 -1
- package/dist/modules/buddy/services/buddy-context.service.js +2 -1
- package/dist/modules/buddy/services/buddy-context.service.js.map +1 -1
- package/dist/modules/buddy/services/home-context-tool-provider.service.d.ts +1 -1
- package/dist/modules/devices/contracts/climate-automation.contract.d.ts +111 -0
- package/dist/modules/devices/contracts/climate-automation.contract.js +3 -0
- package/dist/modules/devices/contracts/climate-automation.contract.js.map +1 -0
- package/dist/modules/devices/controllers/channels.properties.controller.d.ts +1 -1
- package/dist/modules/devices/controllers/channels.properties.controller.js +11 -4
- package/dist/modules/devices/controllers/channels.properties.controller.js.map +1 -1
- package/dist/modules/devices/controllers/devices.channels.properties.controller.d.ts +1 -1
- package/dist/modules/devices/controllers/devices.channels.properties.controller.js +11 -4
- package/dist/modules/devices/controllers/devices.channels.properties.controller.js.map +1 -1
- package/dist/modules/devices/controllers/property-command.controller.d.ts +9 -0
- package/dist/modules/devices/controllers/property-command.controller.js +88 -0
- package/dist/modules/devices/controllers/property-command.controller.js.map +1 -0
- package/dist/modules/devices/devices.constants.d.ts +4 -0
- package/dist/modules/devices/devices.constants.js +4 -0
- package/dist/modules/devices/devices.constants.js.map +1 -1
- package/dist/modules/devices/devices.module.js +22 -0
- package/dist/modules/devices/devices.module.js.map +1 -1
- package/dist/modules/devices/devices.openapi.d.ts +3 -1
- package/dist/modules/devices/devices.openapi.js +39 -0
- package/dist/modules/devices/devices.openapi.js.map +1 -1
- package/dist/modules/devices/dto/property-command.dto.js +20 -6
- package/dist/modules/devices/dto/property-command.dto.js.map +1 -1
- package/dist/modules/devices/dto/update-device.dto.d.ts +1 -1
- package/dist/modules/devices/dto/update-device.dto.js +4 -3
- package/dist/modules/devices/dto/update-device.dto.js.map +1 -1
- package/dist/modules/devices/entities/climate-automation.entity.d.ts +56 -0
- package/dist/modules/devices/entities/climate-automation.entity.js +231 -0
- package/dist/modules/devices/entities/climate-automation.entity.js.map +1 -0
- package/dist/modules/devices/entities/devices.entity.d.ts +4 -0
- package/dist/modules/devices/entities/devices.entity.js +27 -3
- package/dist/modules/devices/entities/devices.entity.js.map +1 -1
- package/dist/modules/devices/interceptors/property-command-entry.interceptor.d.ts +10 -0
- package/dist/modules/devices/interceptors/property-command-entry.interceptor.js +50 -0
- package/dist/modules/devices/interceptors/property-command-entry.interceptor.js.map +1 -0
- package/dist/modules/devices/models/composite-command.model.d.ts +16 -0
- package/dist/modules/devices/models/composite-command.model.js +99 -0
- package/dist/modules/devices/models/composite-command.model.js.map +1 -0
- package/dist/modules/devices/models/property-command-response.model.d.ts +18 -0
- package/dist/modules/devices/models/property-command-response.model.js +90 -0
- package/dist/modules/devices/models/property-command-response.model.js.map +1 -0
- package/dist/modules/devices/models/property-read-policy.model.d.ts +4 -0
- package/dist/modules/devices/models/property-read-policy.model.js +57 -0
- package/dist/modules/devices/models/property-read-policy.model.js.map +1 -0
- package/dist/modules/devices/models/property-sample.model.d.ts +50 -0
- package/dist/modules/devices/models/property-sample.model.js +3 -0
- package/dist/modules/devices/models/property-sample.model.js.map +1 -0
- package/dist/modules/devices/models/property-value-state.model.d.ts +11 -0
- package/dist/modules/devices/models/property-value-state.model.js +55 -1
- package/dist/modules/devices/models/property-value-state.model.js.map +1 -1
- package/dist/modules/devices/platforms/device.platform.d.ts +43 -0
- package/dist/modules/devices/platforms/native-climate.contract.d.ts +50 -0
- package/dist/modules/devices/platforms/native-climate.contract.js +3 -0
- package/dist/modules/devices/platforms/native-climate.contract.js.map +1 -0
- package/dist/modules/devices/services/channels-type-mapper.service.d.ts +3 -0
- package/dist/modules/devices/services/channels-type-mapper.service.js +21 -1
- package/dist/modules/devices/services/channels-type-mapper.service.js.map +1 -1
- package/dist/modules/devices/services/channels.properties-type-mapper.service.d.ts +7 -2
- package/dist/modules/devices/services/channels.properties-type-mapper.service.js +21 -1
- package/dist/modules/devices/services/channels.properties-type-mapper.service.js.map +1 -1
- package/dist/modules/devices/services/channels.properties.service.d.ts +11 -2
- package/dist/modules/devices/services/channels.properties.service.js +219 -64
- package/dist/modules/devices/services/channels.properties.service.js.map +1 -1
- package/dist/modules/devices/services/channels.service.d.ts +12 -5
- package/dist/modules/devices/services/channels.service.js +148 -55
- package/dist/modules/devices/services/channels.service.js.map +1 -1
- package/dist/modules/devices/services/climate-automation-ledger-lifecycle.d.ts +47 -0
- package/dist/modules/devices/services/climate-automation-ledger-lifecycle.js +242 -0
- package/dist/modules/devices/services/climate-automation-ledger-lifecycle.js.map +1 -0
- package/dist/modules/devices/services/climate-automation-ledger.service.d.ts +68 -0
- package/dist/modules/devices/services/climate-automation-ledger.service.js +1061 -0
- package/dist/modules/devices/services/climate-automation-ledger.service.js.map +1 -0
- package/dist/modules/devices/services/climate-automation-ledger.utils.d.ts +8 -0
- package/dist/modules/devices/services/climate-automation-ledger.utils.js +54 -0
- package/dist/modules/devices/services/climate-automation-ledger.utils.js.map +1 -0
- package/dist/modules/devices/services/climate-automation.registry.service.d.ts +15 -0
- package/dist/modules/devices/services/climate-automation.registry.service.js +71 -0
- package/dist/modules/devices/services/climate-automation.registry.service.js.map +1 -0
- package/dist/modules/devices/services/composite-property-command.registry.service.d.ts +48 -0
- package/dist/modules/devices/services/composite-property-command.registry.service.js +65 -0
- package/dist/modules/devices/services/composite-property-command.registry.service.js.map +1 -0
- package/dist/modules/devices/services/controller-publication-context.d.ts +27 -0
- package/dist/modules/devices/services/controller-publication-context.js +148 -0
- package/dist/modules/devices/services/controller-publication-context.js.map +1 -0
- package/dist/modules/devices/services/cover-action-proof.d.ts +7 -0
- package/dist/modules/devices/services/cover-action-proof.js +142 -0
- package/dist/modules/devices/services/cover-action-proof.js.map +1 -0
- package/dist/modules/devices/services/creation-capture.d.ts +19 -0
- package/dist/modules/devices/services/creation-capture.js +85 -0
- package/dist/modules/devices/services/creation-capture.js.map +1 -0
- package/dist/modules/devices/services/device-command-graph.service.js +1 -1
- package/dist/modules/devices/services/device-command-graph.service.js.map +1 -1
- package/dist/modules/devices/services/device-connection-state.service.d.ts +1 -0
- package/dist/modules/devices/services/device-connection-state.service.js +64 -18
- package/dist/modules/devices/services/device-connection-state.service.js.map +1 -1
- package/dist/modules/devices/services/device-connectivity.service.js +96 -51
- package/dist/modules/devices/services/device-connectivity.service.js.map +1 -1
- package/dist/modules/devices/services/device-contribution.registry.service.d.ts +50 -0
- package/dist/modules/devices/services/device-contribution.registry.service.js +45 -0
- package/dist/modules/devices/services/device-contribution.registry.service.js.map +1 -0
- package/dist/modules/devices/services/device-creation-context.d.ts +57 -0
- package/dist/modules/devices/services/device-creation-context.js +315 -0
- package/dist/modules/devices/services/device-creation-context.js.map +1 -0
- package/dist/modules/devices/services/device-structure-lock.service.d.ts +5 -0
- package/dist/modules/devices/services/device-structure-lock.service.js +64 -12
- package/dist/modules/devices/services/device-structure-lock.service.js.map +1 -1
- package/dist/modules/devices/services/device-validation.service.d.ts +0 -1
- package/dist/modules/devices/services/device-validation.service.js +3 -14
- package/dist/modules/devices/services/device-validation.service.js.map +1 -1
- package/dist/modules/devices/services/device-zones.service.d.ts +3 -1
- package/dist/modules/devices/services/device-zones.service.js +30 -6
- package/dist/modules/devices/services/device-zones.service.js.map +1 -1
- package/dist/modules/devices/services/devices-type-mapper.service.d.ts +3 -0
- package/dist/modules/devices/services/devices-type-mapper.service.js +21 -1
- package/dist/modules/devices/services/devices-type-mapper.service.js.map +1 -1
- package/dist/modules/devices/services/devices.service.d.ts +8 -2
- package/dist/modules/devices/services/devices.service.js +194 -49
- package/dist/modules/devices/services/devices.service.js.map +1 -1
- package/dist/modules/devices/services/platform.registry.service.d.ts +11 -1
- package/dist/modules/devices/services/platform.registry.service.js +42 -5
- package/dist/modules/devices/services/platform.registry.service.js.map +1 -1
- package/dist/modules/devices/services/property-command-admission.registry.service.d.ts +28 -0
- package/dist/modules/devices/services/property-command-admission.registry.service.js +70 -0
- package/dist/modules/devices/services/property-command-admission.registry.service.js.map +1 -0
- package/dist/modules/devices/services/property-command-dispatch.service.d.ts +28 -2
- package/dist/modules/devices/services/property-command-dispatch.service.js +704 -10
- package/dist/modules/devices/services/property-command-dispatch.service.js.map +1 -1
- package/dist/modules/devices/services/property-command-entry-snapshot.d.ts +25 -0
- package/dist/modules/devices/services/property-command-entry-snapshot.js +87 -0
- package/dist/modules/devices/services/property-command-entry-snapshot.js.map +1 -0
- package/dist/modules/devices/services/property-command-window.service.d.ts +22 -0
- package/dist/modules/devices/services/property-command-window.service.js +81 -0
- package/dist/modules/devices/services/property-command-window.service.js.map +1 -1
- package/dist/modules/devices/services/property-command.service.d.ts +24 -3
- package/dist/modules/devices/services/property-command.service.js +180 -18
- package/dist/modules/devices/services/property-command.service.js.map +1 -1
- package/dist/modules/devices/services/property-metadata.service.js +1 -1
- package/dist/modules/devices/services/property-metadata.service.js.map +1 -1
- package/dist/modules/devices/services/property-producer.registry.service.d.ts +98 -0
- package/dist/modules/devices/services/property-producer.registry.service.js +636 -0
- package/dist/modules/devices/services/property-producer.registry.service.js.map +1 -0
- package/dist/modules/devices/services/property-value-source.registry.service.d.ts +18 -0
- package/dist/modules/devices/services/property-value-source.registry.service.js +291 -2
- package/dist/modules/devices/services/property-value-source.registry.service.js.map +1 -1
- package/dist/modules/devices/services/property-value.service.d.ts +40 -3
- package/dist/modules/devices/services/property-value.service.js +744 -193
- package/dist/modules/devices/services/property-value.service.js.map +1 -1
- package/dist/modules/devices/subscribers/channel-property-entity.subscriber.d.ts +5 -0
- package/dist/modules/devices/subscribers/channel-property-entity.subscriber.js +25 -0
- package/dist/modules/devices/subscribers/channel-property-entity.subscriber.js.map +1 -1
- package/dist/modules/devices/utils/property-metadata.utils.d.ts +1 -0
- package/dist/modules/devices/utils/property-metadata.utils.js +10 -0
- package/dist/modules/devices/utils/property-metadata.utils.js.map +1 -1
- package/dist/modules/devices/utils/property-permissions.utils.d.ts +2 -0
- package/dist/modules/devices/utils/property-permissions.utils.js +10 -0
- package/dist/modules/devices/utils/property-permissions.utils.js.map +1 -0
- package/dist/modules/extensions/services/discovered-backend.module.d.ts +6 -0
- package/dist/modules/extensions/services/discovered-backend.module.js +32 -0
- package/dist/modules/extensions/services/discovered-backend.module.js.map +1 -0
- package/dist/modules/extensions/services/extensions-discovery.js +15 -0
- package/dist/modules/extensions/services/extensions-discovery.js.map +1 -1
- package/dist/modules/extensions/services/extensions.service.d.ts +4 -0
- package/dist/modules/extensions/services/extensions.service.js +13 -0
- package/dist/modules/extensions/services/extensions.service.js.map +1 -1
- package/dist/modules/extensions/services/managed-extension-service.interface.d.ts +1 -0
- package/dist/modules/extensions/services/managed-service-manager.service.d.ts +15 -0
- package/dist/modules/extensions/services/managed-service-manager.service.js +242 -72
- package/dist/modules/extensions/services/managed-service-manager.service.js.map +1 -1
- package/dist/modules/home-context/schemas/home-search-input.schemas.d.ts +1 -1
- package/dist/modules/intents/models/intent.model.d.ts +2 -0
- package/dist/modules/intents/models/intent.model.js +14 -0
- package/dist/modules/intents/models/intent.model.js.map +1 -1
- package/dist/modules/intents/services/intents.service.d.ts +2 -1
- package/dist/modules/intents/services/intents.service.js +18 -2
- package/dist/modules/intents/services/intents.service.js.map +1 -1
- package/dist/modules/scenes/listeners/websocket-exchange.listener.js +4 -0
- package/dist/modules/scenes/listeners/websocket-exchange.listener.js.map +1 -1
- package/dist/modules/scenes/models/scenes.model.d.ts +2 -0
- package/dist/modules/scenes/models/scenes.model.js +10 -0
- package/dist/modules/scenes/models/scenes.model.js.map +1 -1
- package/dist/modules/scenes/services/scene-executor.service.d.ts +6 -1
- package/dist/modules/scenes/services/scene-executor.service.js +33 -22
- package/dist/modules/scenes/services/scene-executor.service.js.map +1 -1
- package/dist/modules/security/providers/alarm-security.provider.d.ts +3 -1
- package/dist/modules/security/providers/alarm-security.provider.js +83 -8
- package/dist/modules/security/providers/alarm-security.provider.js.map +1 -1
- package/dist/modules/spaces/services/space-lifecycle-registry.service.d.ts +19 -0
- package/dist/modules/spaces/services/space-lifecycle-registry.service.js +121 -0
- package/dist/modules/spaces/services/space-lifecycle-registry.service.js.map +1 -0
- package/dist/modules/spaces/services/spaces.service.d.ts +5 -1
- package/dist/modules/spaces/services/spaces.service.js +34 -6
- package/dist/modules/spaces/services/spaces.service.js.map +1 -1
- package/dist/modules/spaces/spaces.constants.d.ts +3 -1
- package/dist/modules/spaces/spaces.constants.js +2 -0
- package/dist/modules/spaces/spaces.constants.js.map +1 -1
- package/dist/modules/spaces/spaces.module.js +13 -1
- package/dist/modules/spaces/spaces.module.js.map +1 -1
- package/dist/modules/storage/services/storage.service.d.ts +8 -0
- package/dist/modules/storage/services/storage.service.js +225 -0
- package/dist/modules/storage/services/storage.service.js.map +1 -1
- package/dist/modules/swagger/decorators/api-documentation.decorator.d.ts +1 -0
- package/dist/modules/swagger/decorators/api-documentation.decorator.js +9 -1
- package/dist/modules/swagger/decorators/api-documentation.decorator.js.map +1 -1
- package/dist/modules/swagger/services/swagger-document.service.d.ts +1 -0
- package/dist/modules/swagger/services/swagger-document.service.js +71 -1
- package/dist/modules/swagger/services/swagger-document.service.js.map +1 -1
- package/dist/modules/system/services/backup.service.js +3 -5
- package/dist/modules/system/services/backup.service.js.map +1 -1
- package/dist/modules/system/utils/timezone.utils.d.ts +2 -0
- package/dist/modules/system/utils/timezone.utils.js +9 -0
- package/dist/modules/system/utils/timezone.utils.js.map +1 -0
- package/dist/modules/websocket/gateway/websocket.gateway.js +1 -0
- package/dist/modules/websocket/gateway/websocket.gateway.js.map +1 -1
- package/dist/plugins/devices-home-assistant/devices-home-assistant.plugin.js +2 -0
- package/dist/plugins/devices-home-assistant/devices-home-assistant.plugin.js.map +1 -1
- package/dist/plugins/devices-home-assistant/dto/update-channel-property.dto.d.ts +3 -3
- package/dist/plugins/devices-home-assistant/dto/update-channel-property.dto.js +3 -3
- package/dist/plugins/devices-home-assistant/dto/update-channel-property.dto.js.map +1 -1
- package/dist/plugins/devices-home-assistant/platforms/home-assistant.device.platform.d.ts +11 -1
- package/dist/plugins/devices-home-assistant/platforms/home-assistant.device.platform.js +82 -2
- package/dist/plugins/devices-home-assistant/platforms/home-assistant.device.platform.js.map +1 -1
- package/dist/plugins/devices-home-assistant/services/home-assistant-native-climate.service.d.ts +22 -0
- package/dist/plugins/devices-home-assistant/services/home-assistant-native-climate.service.js +409 -0
- package/dist/plugins/devices-home-assistant/services/home-assistant-native-climate.service.js.map +1 -0
- package/dist/plugins/devices-home-assistant/services/home-assistant.ws.service.d.ts +14 -0
- package/dist/plugins/devices-home-assistant/services/home-assistant.ws.service.js +93 -3
- package/dist/plugins/devices-home-assistant/services/home-assistant.ws.service.js.map +1 -1
- package/dist/plugins/devices-homekit/devices-homekit.plugin.js +28 -2
- package/dist/plugins/devices-homekit/devices-homekit.plugin.js.map +1 -1
- package/dist/plugins/devices-homekit/listeners/homekit-event.listener.d.ts +26 -3
- package/dist/plugins/devices-homekit/listeners/homekit-event.listener.js +183 -5
- package/dist/plugins/devices-homekit/listeners/homekit-event.listener.js.map +1 -1
- package/dist/plugins/devices-homekit/mappers/base.mapper.d.ts +2 -1
- package/dist/plugins/devices-homekit/mappers/base.mapper.js +38 -10
- package/dist/plugins/devices-homekit/mappers/base.mapper.js.map +1 -1
- package/dist/plugins/devices-homekit/mappers/battery.mapper.js +4 -3
- package/dist/plugins/devices-homekit/mappers/battery.mapper.js.map +1 -1
- package/dist/plugins/devices-homekit/mappers/button.mapper.js +21 -2
- package/dist/plugins/devices-homekit/mappers/button.mapper.js.map +1 -1
- package/dist/plugins/devices-homekit/mappers/characteristic-get.d.ts +3 -0
- package/dist/plugins/devices-homekit/mappers/characteristic-get.js +10 -0
- package/dist/plugins/devices-homekit/mappers/characteristic-get.js.map +1 -0
- package/dist/plugins/devices-homekit/mappers/characteristic-write.d.ts +1 -1
- package/dist/plugins/devices-homekit/mappers/characteristic-write.js +2 -1
- package/dist/plugins/devices-homekit/mappers/characteristic-write.js.map +1 -1
- package/dist/plugins/devices-homekit/mappers/fan.mapper.d.ts +12 -0
- package/dist/plugins/devices-homekit/mappers/fan.mapper.js +126 -0
- package/dist/plugins/devices-homekit/mappers/fan.mapper.js.map +1 -0
- package/dist/plugins/devices-homekit/mappers/homekit-mapper.interface.d.ts +8 -0
- package/dist/plugins/devices-homekit/mappers/outlet.mapper.js +4 -0
- package/dist/plugins/devices-homekit/mappers/outlet.mapper.js.map +1 -1
- package/dist/plugins/devices-homekit/mappers/property-read.d.ts +7 -0
- package/dist/plugins/devices-homekit/mappers/property-read.js +64 -0
- package/dist/plugins/devices-homekit/mappers/property-read.js.map +1 -0
- package/dist/plugins/devices-homekit/mappers/semantic-conversion.d.ts +2 -0
- package/dist/plugins/devices-homekit/mappers/semantic-conversion.js +15 -0
- package/dist/plugins/devices-homekit/mappers/semantic-conversion.js.map +1 -0
- package/dist/plugins/devices-homekit/mappers/sensor.mapper.d.ts +3 -0
- package/dist/plugins/devices-homekit/mappers/sensor.mapper.js +63 -11
- package/dist/plugins/devices-homekit/mappers/sensor.mapper.js.map +1 -1
- package/dist/plugins/devices-homekit/mappers/service-fault.d.ts +4 -0
- package/dist/plugins/devices-homekit/mappers/service-fault.js +33 -0
- package/dist/plugins/devices-homekit/mappers/service-fault.js.map +1 -0
- package/dist/plugins/devices-homekit/mappers/thermostat-coordinator.d.ts +4 -0
- package/dist/plugins/devices-homekit/mappers/thermostat-coordinator.js +128 -19
- package/dist/plugins/devices-homekit/mappers/thermostat-coordinator.js.map +1 -1
- package/dist/plugins/devices-homekit/mappers/thermostat.mapper.js +5 -3
- package/dist/plugins/devices-homekit/mappers/thermostat.mapper.js.map +1 -1
- package/dist/plugins/devices-homekit/mappers/unavailable-characteristic.d.ts +3 -0
- package/dist/plugins/devices-homekit/mappers/unavailable-characteristic.js +18 -0
- package/dist/plugins/devices-homekit/mappers/unavailable-characteristic.js.map +1 -0
- package/dist/plugins/devices-homekit/mappers/window-covering.mapper.js +19 -3
- package/dist/plugins/devices-homekit/mappers/window-covering.mapper.js.map +1 -1
- package/dist/plugins/devices-homekit/services/homekit-bridge.service.d.ts +4 -0
- package/dist/plugins/devices-homekit/services/homekit-bridge.service.js +58 -29
- package/dist/plugins/devices-homekit/services/homekit-bridge.service.js.map +1 -1
- package/dist/plugins/devices-homekit/services/homekit-command.dispatcher.d.ts +2 -0
- package/dist/plugins/devices-homekit/services/homekit-command.dispatcher.js +3 -0
- package/dist/plugins/devices-homekit/services/homekit-command.dispatcher.js.map +1 -1
- package/dist/plugins/devices-homekit/services/homekit-mapper-registry.service.d.ts +30 -2
- package/dist/plugins/devices-homekit/services/homekit-mapper-registry.service.js +126 -2
- package/dist/plugins/devices-homekit/services/homekit-mapper-registry.service.js.map +1 -1
- package/dist/plugins/devices-homekit/services/homekit-mapping-maintenance.d.ts +8 -0
- package/dist/plugins/devices-homekit/services/homekit-mapping-maintenance.js +17 -0
- package/dist/plugins/devices-homekit/services/homekit-mapping-maintenance.js.map +1 -0
- package/dist/plugins/devices-homekit/services/homekit-property-state.service.d.ts +19 -0
- package/dist/plugins/devices-homekit/services/homekit-property-state.service.js +69 -0
- package/dist/plugins/devices-homekit/services/homekit-property-state.service.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/contracts/cover-action.contract.d.ts +13 -0
- package/dist/plugins/devices-shelly-ng/contracts/cover-action.contract.js +60 -0
- package/dist/plugins/devices-shelly-ng/contracts/cover-action.contract.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/contracts/cover-recovery.contract.d.ts +13 -0
- package/dist/plugins/devices-shelly-ng/contracts/cover-recovery.contract.js +3 -0
- package/dist/plugins/devices-shelly-ng/contracts/cover-recovery.contract.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/contracts/guard-script-source.d.ts +1 -0
- package/dist/plugins/devices-shelly-ng/contracts/guard-script-source.js +5 -0
- package/dist/plugins/devices-shelly-ng/contracts/guard-script-source.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/contracts/guard-script.contract.d.ts +21 -0
- package/dist/plugins/devices-shelly-ng/contracts/guard-script.contract.js +47 -0
- package/dist/plugins/devices-shelly-ng/contracts/guard-script.contract.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/contracts/member-guard-script-source.d.ts +2 -0
- package/dist/plugins/devices-shelly-ng/contracts/member-guard-script-source.js +27 -0
- package/dist/plugins/devices-shelly-ng/contracts/member-guard-script-source.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/contracts/native-temperature.contract.d.ts +36 -0
- package/dist/plugins/devices-shelly-ng/contracts/native-temperature.contract.js +200 -0
- package/dist/plugins/devices-shelly-ng/contracts/native-temperature.contract.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/contracts/protective-switch.contract.d.ts +44 -0
- package/dist/plugins/devices-shelly-ng/contracts/protective-switch.contract.js +29 -0
- package/dist/plugins/devices-shelly-ng/contracts/protective-switch.contract.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/controllers/shelly-cover-recovery.controller.d.ts +11 -0
- package/dist/plugins/devices-shelly-ng/controllers/shelly-cover-recovery.controller.js +98 -0
- package/dist/plugins/devices-shelly-ng/controllers/shelly-cover-recovery.controller.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/delegates/delegates-manager.service.d.ts +51 -1
- package/dist/plugins/devices-shelly-ng/delegates/delegates-manager.service.js +688 -2
- package/dist/plugins/devices-shelly-ng/delegates/delegates-manager.service.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/delegates/shelly-device.delegate.d.ts +46 -1
- package/dist/plugins/devices-shelly-ng/delegates/shelly-device.delegate.js +315 -4
- package/dist/plugins/devices-shelly-ng/delegates/shelly-device.delegate.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/devices-shelly-ng.openapi.d.ts +3 -1
- package/dist/plugins/devices-shelly-ng/devices-shelly-ng.openapi.js +8 -0
- package/dist/plugins/devices-shelly-ng/devices-shelly-ng.openapi.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/devices-shelly-ng.plugin.js +16 -1
- package/dist/plugins/devices-shelly-ng/devices-shelly-ng.plugin.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/dto/cover-recovery.dto.d.ts +11 -0
- package/dist/plugins/devices-shelly-ng/dto/cover-recovery.dto.js +77 -0
- package/dist/plugins/devices-shelly-ng/dto/cover-recovery.dto.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/entities/shelly-cover-ordering.entity.d.ts +5 -0
- package/dist/plugins/devices-shelly-ng/entities/shelly-cover-ordering.entity.js +32 -0
- package/dist/plugins/devices-shelly-ng/entities/shelly-cover-ordering.entity.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/entities/shelly-cover-recovery.entity.d.ts +17 -0
- package/dist/plugins/devices-shelly-ng/entities/shelly-cover-recovery.entity.js +80 -0
- package/dist/plugins/devices-shelly-ng/entities/shelly-cover-recovery.entity.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/entities/shelly-sample-source.entity.d.ts +16 -0
- package/dist/plugins/devices-shelly-ng/entities/shelly-sample-source.entity.js +70 -0
- package/dist/plugins/devices-shelly-ng/entities/shelly-sample-source.entity.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/mappings/definitions/covers.yaml +30 -24
- package/dist/plugins/devices-shelly-ng/models/cover-recovery.model.d.ts +21 -0
- package/dist/plugins/devices-shelly-ng/models/cover-recovery.model.js +114 -0
- package/dist/plugins/devices-shelly-ng/models/cover-recovery.model.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/platforms/shelly-ng.device.platform.d.ts +27 -1
- package/dist/plugins/devices-shelly-ng/platforms/shelly-ng.device.platform.js +146 -0
- package/dist/plugins/devices-shelly-ng/platforms/shelly-ng.device.platform.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/services/authenticated-shelly-script-http.d.ts +16 -0
- package/dist/plugins/devices-shelly-ng/services/authenticated-shelly-script-http.js +154 -0
- package/dist/plugins/devices-shelly-ng/services/authenticated-shelly-script-http.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/device-manager.service.d.ts +4 -1
- package/dist/plugins/devices-shelly-ng/services/device-manager.service.js +113 -4
- package/dist/plugins/devices-shelly-ng/services/device-manager.service.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/services/guarded-shelly-http.d.ts +2 -0
- package/dist/plugins/devices-shelly-ng/services/guarded-shelly-http.js +78 -0
- package/dist/plugins/devices-shelly-ng/services/guarded-shelly-http.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/guarded-shelly-rpc.d.ts +9 -0
- package/dist/plugins/devices-shelly-ng/services/guarded-shelly-rpc.js +56 -0
- package/dist/plugins/devices-shelly-ng/services/guarded-shelly-rpc.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/remote-dew-point-artifact.d.ts +45 -0
- package/dist/plugins/devices-shelly-ng/services/remote-dew-point-artifact.js +278 -0
- package/dist/plugins/devices-shelly-ng/services/remote-dew-point-artifact.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/remote-dew-point-lease.contract.d.ts +49 -0
- package/dist/plugins/devices-shelly-ng/services/remote-dew-point-lease.contract.js +32 -0
- package/dist/plugins/devices-shelly-ng/services/remote-dew-point-lease.contract.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/remote-dew-point-qualification.d.ts +53 -0
- package/dist/plugins/devices-shelly-ng/services/remote-dew-point-qualification.js +91 -0
- package/dist/plugins/devices-shelly-ng/services/remote-dew-point-qualification.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/remote-dew-point-session.d.ts +35 -0
- package/dist/plugins/devices-shelly-ng/services/remote-dew-point-session.js +244 -0
- package/dist/plugins/devices-shelly-ng/services/remote-dew-point-session.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-cover-ordering.service.d.ts +9 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-cover-ordering.service.js +50 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-cover-ordering.service.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-cover-recovery-lane.service.d.ts +29 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-cover-recovery-lane.service.js +166 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-cover-recovery-lane.service.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-cover-recovery.service.d.ts +21 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-cover-recovery.service.js +207 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-cover-recovery.service.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-cover-session.d.ts +25 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-cover-session.js +132 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-cover-session.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-cover-telemetry.d.ts +9 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-cover-telemetry.js +63 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-cover-telemetry.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-guard-rpc-session.d.ts +33 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-guard-rpc-session.js +191 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-guard-rpc-session.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-ng.service.d.ts +3 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-ng.service.js +32 -4
- package/dist/plugins/devices-shelly-ng/services/shelly-ng.service.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/services/shelly-sample-sources.service.d.ts +34 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-sample-sources.service.js +194 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-sample-sources.service.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-ws-server.service.js +5 -2
- package/dist/plugins/devices-shelly-ng/services/shelly-ws-server.service.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/platforms/shelly-v1.device.platform.d.ts +4 -0
- package/dist/plugins/devices-shelly-v1/platforms/shelly-v1.device.platform.js +3 -0
- package/dist/plugins/devices-shelly-v1/platforms/shelly-v1.device.platform.js.map +1 -1
- package/dist/plugins/devices-virtual/contracts/thermostat-actuation.contract.d.ts +114 -0
- package/dist/plugins/devices-virtual/contracts/thermostat-actuation.contract.js +12 -0
- package/dist/plugins/devices-virtual/contracts/thermostat-actuation.contract.js.map +1 -0
- package/dist/plugins/devices-virtual/contracts/thermostat-command.contract.d.ts +4 -0
- package/dist/plugins/devices-virtual/contracts/thermostat-command.contract.js +3 -0
- package/dist/plugins/devices-virtual/contracts/thermostat-command.contract.js.map +1 -0
- package/dist/plugins/devices-virtual/controllers/native-thermostat.controller.d.ts +15 -0
- package/dist/plugins/devices-virtual/controllers/native-thermostat.controller.js +178 -0
- package/dist/plugins/devices-virtual/controllers/native-thermostat.controller.js.map +1 -0
- package/dist/plugins/devices-virtual/controllers/thermostat-authoring-context.controller.d.ts +11 -0
- package/dist/plugins/devices-virtual/controllers/thermostat-authoring-context.controller.js +92 -0
- package/dist/plugins/devices-virtual/controllers/thermostat-authoring-context.controller.js.map +1 -0
- package/dist/plugins/devices-virtual/controllers/thermostat-installation.controller.d.ts +16 -0
- package/dist/plugins/devices-virtual/controllers/thermostat-installation.controller.js +179 -0
- package/dist/plugins/devices-virtual/controllers/thermostat-installation.controller.js.map +1 -0
- package/dist/plugins/devices-virtual/controllers/virtual-dew-point-config.controller.d.ts +11 -0
- package/dist/plugins/devices-virtual/controllers/virtual-dew-point-config.controller.js +100 -0
- package/dist/plugins/devices-virtual/controllers/virtual-dew-point-config.controller.js.map +1 -0
- package/dist/plugins/devices-virtual/controllers/virtual-measurement-authoring.controller.d.ts +19 -0
- package/dist/plugins/devices-virtual/controllers/virtual-measurement-authoring.controller.js +168 -0
- package/dist/plugins/devices-virtual/controllers/virtual-measurement-authoring.controller.js.map +1 -0
- package/dist/plugins/devices-virtual/controllers/virtual-producer-config.controller.d.ts +28 -0
- package/dist/plugins/devices-virtual/controllers/virtual-producer-config.controller.js +278 -0
- package/dist/plugins/devices-virtual/controllers/virtual-producer-config.controller.js.map +1 -0
- package/dist/plugins/devices-virtual/controllers/virtual-thermostat-authoring.controller.d.ts +12 -0
- package/dist/plugins/devices-virtual/controllers/virtual-thermostat-authoring.controller.js +111 -0
- package/dist/plugins/devices-virtual/controllers/virtual-thermostat-authoring.controller.js.map +1 -0
- package/dist/plugins/devices-virtual/controllers/virtual-thermostat-comfort.controller.d.ts +14 -0
- package/dist/plugins/devices-virtual/controllers/virtual-thermostat-comfort.controller.js +160 -0
- package/dist/plugins/devices-virtual/controllers/virtual-thermostat-comfort.controller.js.map +1 -0
- package/dist/plugins/devices-virtual/controllers/virtual-thermostat-config.controller.d.ts +18 -0
- package/dist/plugins/devices-virtual/controllers/virtual-thermostat-config.controller.js +196 -0
- package/dist/plugins/devices-virtual/controllers/virtual-thermostat-config.controller.js.map +1 -0
- package/dist/plugins/devices-virtual/controllers/virtual-transform-config.controller.d.ts +14 -0
- package/dist/plugins/devices-virtual/controllers/virtual-transform-config.controller.js +128 -0
- package/dist/plugins/devices-virtual/controllers/virtual-transform-config.controller.js.map +1 -0
- package/dist/plugins/devices-virtual/devices-virtual.constants.d.ts +1 -0
- package/dist/plugins/devices-virtual/devices-virtual.constants.js +2 -1
- package/dist/plugins/devices-virtual/devices-virtual.constants.js.map +1 -1
- package/dist/plugins/devices-virtual/devices-virtual.openapi.d.ts +24 -2
- package/dist/plugins/devices-virtual/devices-virtual.openapi.js +95 -0
- package/dist/plugins/devices-virtual/devices-virtual.openapi.js.map +1 -1
- package/dist/plugins/devices-virtual/devices-virtual.plugin.d.ts +7 -1
- package/dist/plugins/devices-virtual/devices-virtual.plugin.js +167 -10
- package/dist/plugins/devices-virtual/devices-virtual.plugin.js.map +1 -1
- package/dist/plugins/devices-virtual/dto/create-device.dto.d.ts +2 -0
- package/dist/plugins/devices-virtual/dto/create-device.dto.js +20 -0
- package/dist/plugins/devices-virtual/dto/create-device.dto.js.map +1 -1
- package/dist/plugins/devices-virtual/dto/dew-point-config.dto.d.ts +14 -0
- package/dist/plugins/devices-virtual/dto/dew-point-config.dto.js +119 -0
- package/dist/plugins/devices-virtual/dto/dew-point-config.dto.js.map +1 -0
- package/dist/plugins/devices-virtual/dto/group-catalog.dto.d.ts +8 -0
- package/dist/plugins/devices-virtual/dto/group-catalog.dto.js +62 -0
- package/dist/plugins/devices-virtual/dto/group-catalog.dto.js.map +1 -0
- package/dist/plugins/devices-virtual/dto/light-group-draft.dto.d.ts +19 -0
- package/dist/plugins/devices-virtual/dto/light-group-draft.dto.js +108 -0
- package/dist/plugins/devices-virtual/dto/light-group-draft.dto.js.map +1 -0
- package/dist/plugins/devices-virtual/dto/measurement-authoring.dto.d.ts +25 -0
- package/dist/plugins/devices-virtual/dto/measurement-authoring.dto.js +157 -0
- package/dist/plugins/devices-virtual/dto/measurement-authoring.dto.js.map +1 -0
- package/dist/plugins/devices-virtual/dto/native-thermostat.dto.d.ts +21 -0
- package/dist/plugins/devices-virtual/dto/native-thermostat.dto.js +122 -0
- package/dist/plugins/devices-virtual/dto/native-thermostat.dto.js.map +1 -0
- package/dist/plugins/devices-virtual/dto/producer-config.dto.d.ts +35 -0
- package/dist/plugins/devices-virtual/dto/producer-config.dto.js +290 -0
- package/dist/plugins/devices-virtual/dto/producer-config.dto.js.map +1 -0
- package/dist/plugins/devices-virtual/dto/thermostat-authoring.dto.d.ts +6 -0
- package/dist/plugins/devices-virtual/dto/thermostat-authoring.dto.js +46 -0
- package/dist/plugins/devices-virtual/dto/thermostat-authoring.dto.js.map +1 -0
- package/dist/plugins/devices-virtual/dto/thermostat-comfort.dto.d.ts +39 -0
- package/dist/plugins/devices-virtual/dto/thermostat-comfort.dto.js +244 -0
- package/dist/plugins/devices-virtual/dto/thermostat-comfort.dto.js.map +1 -0
- package/dist/plugins/devices-virtual/dto/thermostat-config.dto.d.ts +94 -0
- package/dist/plugins/devices-virtual/dto/thermostat-config.dto.js +718 -0
- package/dist/plugins/devices-virtual/dto/thermostat-config.dto.js.map +1 -0
- package/dist/plugins/devices-virtual/dto/thermostat-installation.dto.d.ts +71 -0
- package/dist/plugins/devices-virtual/dto/thermostat-installation.dto.js +410 -0
- package/dist/plugins/devices-virtual/dto/thermostat-installation.dto.js.map +1 -0
- package/dist/plugins/devices-virtual/dto/transform-config.dto.d.ts +71 -0
- package/dist/plugins/devices-virtual/dto/transform-config.dto.js +430 -0
- package/dist/plugins/devices-virtual/dto/transform-config.dto.js.map +1 -0
- package/dist/plugins/devices-virtual/dto/update-device.dto.d.ts +2 -0
- package/dist/plugins/devices-virtual/dto/update-device.dto.js +20 -0
- package/dist/plugins/devices-virtual/dto/update-device.dto.js.map +1 -1
- package/dist/plugins/devices-virtual/entities/devices-virtual.entity.d.ts +13 -1
- package/dist/plugins/devices-virtual/entities/devices-virtual.entity.js +56 -6
- package/dist/plugins/devices-virtual/entities/devices-virtual.entity.js.map +1 -1
- package/dist/plugins/devices-virtual/entities/native-thermostat.entity.d.ts +23 -0
- package/dist/plugins/devices-virtual/entities/native-thermostat.entity.js +103 -0
- package/dist/plugins/devices-virtual/entities/native-thermostat.entity.js.map +1 -0
- package/dist/plugins/devices-virtual/entities/thermostat-cooling-dependency.entity.d.ts +19 -0
- package/dist/plugins/devices-virtual/entities/thermostat-cooling-dependency.entity.js +87 -0
- package/dist/plugins/devices-virtual/entities/thermostat-cooling-dependency.entity.js.map +1 -0
- package/dist/plugins/devices-virtual/entities/thermostat-installation.entity.d.ts +36 -0
- package/dist/plugins/devices-virtual/entities/thermostat-installation.entity.js +125 -0
- package/dist/plugins/devices-virtual/entities/thermostat-installation.entity.js.map +1 -0
- package/dist/plugins/devices-virtual/entities/thermostat-member-protection.entity.d.ts +15 -0
- package/dist/plugins/devices-virtual/entities/thermostat-member-protection.entity.js +70 -0
- package/dist/plugins/devices-virtual/entities/thermostat-member-protection.entity.js.map +1 -0
- package/dist/plugins/devices-virtual/entities/thermostat-override-clock.entity.d.ts +7 -0
- package/dist/plugins/devices-virtual/entities/thermostat-override-clock.entity.js +39 -0
- package/dist/plugins/devices-virtual/entities/thermostat-override-clock.entity.js.map +1 -0
- package/dist/plugins/devices-virtual/entities/virtual-dew-point.entity.d.ts +28 -0
- package/dist/plugins/devices-virtual/entities/virtual-dew-point.entity.js +104 -0
- package/dist/plugins/devices-virtual/entities/virtual-dew-point.entity.js.map +1 -0
- package/dist/plugins/devices-virtual/entities/virtual-producer.entity.d.ts +89 -0
- package/dist/plugins/devices-virtual/entities/virtual-producer.entity.js +281 -0
- package/dist/plugins/devices-virtual/entities/virtual-producer.entity.js.map +1 -0
- package/dist/plugins/devices-virtual/entities/virtual-thermostat-runtime.entity.d.ts +45 -0
- package/dist/plugins/devices-virtual/entities/virtual-thermostat-runtime.entity.js +184 -0
- package/dist/plugins/devices-virtual/entities/virtual-thermostat-runtime.entity.js.map +1 -0
- package/dist/plugins/devices-virtual/entities/virtual-thermostat.entity.d.ts +86 -0
- package/dist/plugins/devices-virtual/entities/virtual-thermostat.entity.js +337 -0
- package/dist/plugins/devices-virtual/entities/virtual-thermostat.entity.js.map +1 -0
- package/dist/plugins/devices-virtual/entities/virtual-transform.entity.d.ts +23 -0
- package/dist/plugins/devices-virtual/entities/virtual-transform.entity.js +101 -0
- package/dist/plugins/devices-virtual/entities/virtual-transform.entity.js.map +1 -0
- package/dist/plugins/devices-virtual/listeners/virtual-device-information.listener.d.ts +5 -0
- package/dist/plugins/devices-virtual/listeners/virtual-device-information.listener.js +65 -22
- package/dist/plugins/devices-virtual/listeners/virtual-device-information.listener.js.map +1 -1
- package/dist/plugins/devices-virtual/listeners/virtual-index-maintenance.listener.d.ts +8 -1
- package/dist/plugins/devices-virtual/listeners/virtual-index-maintenance.listener.js +123 -32
- package/dist/plugins/devices-virtual/listeners/virtual-index-maintenance.listener.js.map +1 -1
- package/dist/plugins/devices-virtual/listeners/virtual-projection.listener.d.ts +3 -0
- package/dist/plugins/devices-virtual/listeners/virtual-projection.listener.js +41 -3
- package/dist/plugins/devices-virtual/listeners/virtual-projection.listener.js.map +1 -1
- package/dist/plugins/devices-virtual/listeners/virtual-status.listener.js +28 -15
- package/dist/plugins/devices-virtual/listeners/virtual-status.listener.js.map +1 -1
- package/dist/plugins/devices-virtual/models/dew-point-response.model.d.ts +38 -0
- package/dist/plugins/devices-virtual/models/dew-point-response.model.js +193 -0
- package/dist/plugins/devices-virtual/models/dew-point-response.model.js.map +1 -0
- package/dist/plugins/devices-virtual/models/group-catalog.model.d.ts +26 -0
- package/dist/plugins/devices-virtual/models/group-catalog.model.js +117 -0
- package/dist/plugins/devices-virtual/models/group-catalog.model.js.map +1 -0
- package/dist/plugins/devices-virtual/models/light-group-draft.model.d.ts +28 -0
- package/dist/plugins/devices-virtual/models/light-group-draft.model.js +122 -0
- package/dist/plugins/devices-virtual/models/light-group-draft.model.js.map +1 -0
- package/dist/plugins/devices-virtual/models/measurement-authoring-response.model.d.ts +26 -0
- package/dist/plugins/devices-virtual/models/measurement-authoring-response.model.js +125 -0
- package/dist/plugins/devices-virtual/models/measurement-authoring-response.model.js.map +1 -0
- package/dist/plugins/devices-virtual/models/native-thermostat-response.model.d.ts +84 -0
- package/dist/plugins/devices-virtual/models/native-thermostat-response.model.js +406 -0
- package/dist/plugins/devices-virtual/models/native-thermostat-response.model.js.map +1 -0
- package/dist/plugins/devices-virtual/models/numeric-operator.model.d.ts +23 -0
- package/dist/plugins/devices-virtual/models/numeric-operator.model.js +120 -0
- package/dist/plugins/devices-virtual/models/numeric-operator.model.js.map +1 -0
- package/dist/plugins/devices-virtual/models/producer-response.model.d.ts +138 -0
- package/dist/plugins/devices-virtual/models/producer-response.model.js +764 -0
- package/dist/plugins/devices-virtual/models/producer-response.model.js.map +1 -0
- package/dist/plugins/devices-virtual/models/thermostat-authoring-context.model.d.ts +22 -0
- package/dist/plugins/devices-virtual/models/thermostat-authoring-context.model.js +134 -0
- package/dist/plugins/devices-virtual/models/thermostat-authoring-context.model.js.map +1 -0
- package/dist/plugins/devices-virtual/models/thermostat-authoring-response.model.d.ts +18 -0
- package/dist/plugins/devices-virtual/models/thermostat-authoring-response.model.js +87 -0
- package/dist/plugins/devices-virtual/models/thermostat-authoring-response.model.js.map +1 -0
- package/dist/plugins/devices-virtual/models/thermostat-comfort-response.model.d.ts +60 -0
- package/dist/plugins/devices-virtual/models/thermostat-comfort-response.model.js +341 -0
- package/dist/plugins/devices-virtual/models/thermostat-comfort-response.model.js.map +1 -0
- package/dist/plugins/devices-virtual/models/thermostat-installation-response.model.d.ts +84 -0
- package/dist/plugins/devices-virtual/models/thermostat-installation-response.model.js +440 -0
- package/dist/plugins/devices-virtual/models/thermostat-installation-response.model.js.map +1 -0
- package/dist/plugins/devices-virtual/models/thermostat-response.model.d.ts +218 -0
- package/dist/plugins/devices-virtual/models/thermostat-response.model.js +1157 -0
- package/dist/plugins/devices-virtual/models/thermostat-response.model.js.map +1 -0
- package/dist/plugins/devices-virtual/models/transform-response.model.d.ts +73 -0
- package/dist/plugins/devices-virtual/models/transform-response.model.js +386 -0
- package/dist/plugins/devices-virtual/models/transform-response.model.js.map +1 -0
- package/dist/plugins/devices-virtual/platforms/virtual-device.platform.d.ts +5 -1
- package/dist/plugins/devices-virtual/platforms/virtual-device.platform.js +22 -3
- package/dist/plugins/devices-virtual/platforms/virtual-device.platform.js.map +1 -1
- package/dist/plugins/devices-virtual/services/native-thermostat.service.d.ts +72 -0
- package/dist/plugins/devices-virtual/services/native-thermostat.service.js +932 -0
- package/dist/plugins/devices-virtual/services/native-thermostat.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-authoring-context.service.d.ts +14 -0
- package/dist/plugins/devices-virtual/services/thermostat-authoring-context.service.js +147 -0
- package/dist/plugins/devices-virtual/services/thermostat-authoring-context.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-comfort-selection.d.ts +199 -0
- package/dist/plugins/devices-virtual/services/thermostat-comfort-selection.js +1064 -0
- package/dist/plugins/devices-virtual/services/thermostat-comfort-selection.js.map +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-controller-mutation.d.ts +75 -0
- package/dist/plugins/devices-virtual/services/thermostat-controller-mutation.js +445 -0
- package/dist/plugins/devices-virtual/services/thermostat-controller-mutation.js.map +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-cooling-dependency.service.d.ts +53 -0
- package/dist/plugins/devices-virtual/services/thermostat-cooling-dependency.service.js +267 -0
- package/dist/plugins/devices-virtual/services/thermostat-cooling-dependency.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-creation-catalog.d.ts +56 -0
- package/dist/plugins/devices-virtual/services/thermostat-creation-catalog.js +438 -0
- package/dist/plugins/devices-virtual/services/thermostat-creation-catalog.js.map +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-creation-response.d.ts +37 -0
- package/dist/plugins/devices-virtual/services/thermostat-creation-response.js +430 -0
- package/dist/plugins/devices-virtual/services/thermostat-creation-response.js.map +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-installation-artifact.d.ts +13 -0
- package/dist/plugins/devices-virtual/services/thermostat-installation-artifact.js +263 -0
- package/dist/plugins/devices-virtual/services/thermostat-installation-artifact.js.map +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-installation-bindings.service.d.ts +10 -0
- package/dist/plugins/devices-virtual/services/thermostat-installation-bindings.service.js +238 -0
- package/dist/plugins/devices-virtual/services/thermostat-installation-bindings.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-installation-loader.service.d.ts +41 -0
- package/dist/plugins/devices-virtual/services/thermostat-installation-loader.service.js +350 -0
- package/dist/plugins/devices-virtual/services/thermostat-installation-loader.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-installation.service.d.ts +40 -0
- package/dist/plugins/devices-virtual/services/thermostat-installation.service.js +263 -0
- package/dist/plugins/devices-virtual/services/thermostat-installation.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-installation.types.d.ts +72 -0
- package/dist/plugins/devices-virtual/services/thermostat-installation.types.js +13 -0
- package/dist/plugins/devices-virtual/services/thermostat-installation.types.js.map +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-member-protection.service.d.ts +45 -0
- package/dist/plugins/devices-virtual/services/thermostat-member-protection.service.js +235 -0
- package/dist/plugins/devices-virtual/services/thermostat-member-protection.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-override-clock.sql.d.ts +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-override-clock.sql.js +16 -0
- package/dist/plugins/devices-virtual/services/thermostat-override-clock.sql.js.map +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-protection-source.utils.d.ts +27 -0
- package/dist/plugins/devices-virtual/services/thermostat-protection-source.utils.js +132 -0
- package/dist/plugins/devices-virtual/services/thermostat-protection-source.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/thermostat-remote-cooling-adapter.d.ts +88 -0
- package/dist/plugins/devices-virtual/services/thermostat-remote-cooling-adapter.js +200 -0
- package/dist/plugins/devices-virtual/services/thermostat-remote-cooling-adapter.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-aggregate-evaluator.d.ts +35 -0
- package/dist/plugins/devices-virtual/services/virtual-aggregate-evaluator.js +200 -0
- package/dist/plugins/devices-virtual/services/virtual-aggregate-evaluator.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-aggregate-policy.utils.d.ts +5 -0
- package/dist/plugins/devices-virtual/services/virtual-aggregate-policy.utils.js +18 -0
- package/dist/plugins/devices-virtual/services/virtual-aggregate-policy.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-aggregate-runtime.service.d.ts +48 -0
- package/dist/plugins/devices-virtual/services/virtual-aggregate-runtime.service.js +425 -0
- package/dist/plugins/devices-virtual/services/virtual-aggregate-runtime.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-cooling-policy.utils.d.ts +13 -0
- package/dist/plugins/devices-virtual/services/virtual-cooling-policy.utils.js +38 -0
- package/dist/plugins/devices-virtual/services/virtual-cooling-policy.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-cover-contract.utils.d.ts +7 -0
- package/dist/plugins/devices-virtual/services/virtual-cover-contract.utils.js +41 -0
- package/dist/plugins/devices-virtual/services/virtual-cover-contract.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-cover-readiness.utils.d.ts +16 -0
- package/dist/plugins/devices-virtual/services/virtual-cover-readiness.utils.js +42 -0
- package/dist/plugins/devices-virtual/services/virtual-cover-readiness.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-dependency-graph.service.d.ts +118 -0
- package/dist/plugins/devices-virtual/services/virtual-dependency-graph.service.js +667 -0
- package/dist/plugins/devices-virtual/services/virtual-dependency-graph.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-devices.service.d.ts +8 -4
- package/dist/plugins/devices-virtual/services/virtual-devices.service.js +105 -22
- package/dist/plugins/devices-virtual/services/virtual-devices.service.js.map +1 -1
- package/dist/plugins/devices-virtual/services/virtual-dew-point-config.service.d.ts +28 -0
- package/dist/plugins/devices-virtual/services/virtual-dew-point-config.service.js +193 -0
- package/dist/plugins/devices-virtual/services/virtual-dew-point-config.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-dew-point-contract.utils.d.ts +5 -0
- package/dist/plugins/devices-virtual/services/virtual-dew-point-contract.utils.js +69 -0
- package/dist/plugins/devices-virtual/services/virtual-dew-point-contract.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-dew-point-runtime.service.d.ts +65 -0
- package/dist/plugins/devices-virtual/services/virtual-dew-point-runtime.service.js +524 -0
- package/dist/plugins/devices-virtual/services/virtual-dew-point-runtime.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-dew-point.utils.d.ts +9 -0
- package/dist/plugins/devices-virtual/services/virtual-dew-point.utils.js +25 -0
- package/dist/plugins/devices-virtual/services/virtual-dew-point.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-group-catalog.service.d.ts +10 -0
- package/dist/plugins/devices-virtual/services/virtual-group-catalog.service.js +117 -0
- package/dist/plugins/devices-virtual/services/virtual-group-catalog.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-group-contract.utils.d.ts +4 -0
- package/dist/plugins/devices-virtual/services/virtual-group-contract.utils.js +35 -0
- package/dist/plugins/devices-virtual/services/virtual-group-contract.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-group-field.utils.d.ts +10 -0
- package/dist/plugins/devices-virtual/services/virtual-group-field.utils.js +35 -0
- package/dist/plugins/devices-virtual/services/virtual-group-field.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-group-profile.d.ts +19 -0
- package/dist/plugins/devices-virtual/services/virtual-group-profile.js +137 -0
- package/dist/plugins/devices-virtual/services/virtual-group-profile.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-light-group-authoring.service.d.ts +43 -0
- package/dist/plugins/devices-virtual/services/virtual-light-group-authoring.service.js +217 -0
- package/dist/plugins/devices-virtual/services/virtual-light-group-authoring.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-light-group-command.service.d.ts +28 -0
- package/dist/plugins/devices-virtual/services/virtual-light-group-command.service.js +262 -0
- package/dist/plugins/devices-virtual/services/virtual-light-group-command.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-light-group-contribution.service.d.ts +19 -0
- package/dist/plugins/devices-virtual/services/virtual-light-group-contribution.service.js +91 -0
- package/dist/plugins/devices-virtual/services/virtual-light-group-contribution.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-light-group-state.service.d.ts +37 -0
- package/dist/plugins/devices-virtual/services/virtual-light-group-state.service.js +346 -0
- package/dist/plugins/devices-virtual/services/virtual-light-group-state.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-light-group.utils.d.ts +46 -0
- package/dist/plugins/devices-virtual/services/virtual-light-group.utils.js +204 -0
- package/dist/plugins/devices-virtual/services/virtual-light-group.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-measurement-authoring.service.d.ts +37 -0
- package/dist/plugins/devices-virtual/services/virtual-measurement-authoring.service.js +270 -0
- package/dist/plugins/devices-virtual/services/virtual-measurement-authoring.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-measurement-contribution.service.d.ts +21 -0
- package/dist/plugins/devices-virtual/services/virtual-measurement-contribution.service.js +166 -0
- package/dist/plugins/devices-virtual/services/virtual-measurement-contribution.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-measurement-metadata.utils.d.ts +3 -0
- package/dist/plugins/devices-virtual/services/virtual-measurement-metadata.utils.js +25 -0
- package/dist/plugins/devices-virtual/services/virtual-measurement-metadata.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-numeric-operator-host.service.d.ts +24 -0
- package/dist/plugins/devices-virtual/services/virtual-numeric-operator-host.service.js +145 -0
- package/dist/plugins/devices-virtual/services/virtual-numeric-operator-host.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-numeric-operator.registry.d.ts +18 -0
- package/dist/plugins/devices-virtual/services/virtual-numeric-operator.registry.js +86 -0
- package/dist/plugins/devices-virtual/services/virtual-numeric-operator.registry.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-numeric-profile.utils.d.ts +29 -0
- package/dist/plugins/devices-virtual/services/virtual-numeric-profile.utils.js +136 -0
- package/dist/plugins/devices-virtual/services/virtual-numeric-profile.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-numeric-transform.utils.d.ts +59 -0
- package/dist/plugins/devices-virtual/services/virtual-numeric-transform.utils.js +165 -0
- package/dist/plugins/devices-virtual/services/virtual-numeric-transform.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-producer-config.service.d.ts +64 -0
- package/dist/plugins/devices-virtual/services/virtual-producer-config.service.js +694 -0
- package/dist/plugins/devices-virtual/services/virtual-producer-config.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-producer-state.service.d.ts +60 -0
- package/dist/plugins/devices-virtual/services/virtual-producer-state.service.js +484 -0
- package/dist/plugins/devices-virtual/services/virtual-producer-state.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-property-index.service.d.ts +11 -2
- package/dist/plugins/devices-virtual/services/virtual-property-index.service.js +166 -13
- package/dist/plugins/devices-virtual/services/virtual-property-index.service.js.map +1 -1
- package/dist/plugins/devices-virtual/services/virtual-source-eligibility.utils.d.ts +3 -0
- package/dist/plugins/devices-virtual/services/virtual-source-eligibility.utils.js +10 -0
- package/dist/plugins/devices-virtual/services/virtual-source-eligibility.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-authoring.service.d.ts +27 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-authoring.service.js +385 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-authoring.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-automation.service.d.ts +90 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-automation.service.js +1189 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-automation.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-branch.utils.d.ts +5 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-branch.utils.js +29 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-branch.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-claims.service.d.ts +80 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-claims.service.js +489 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-claims.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-comfort.service.d.ts +80 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-comfort.service.js +580 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-comfort.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-comfort.utils.d.ts +58 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-comfort.utils.js +106 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-comfort.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-config.service.d.ts +909 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-config.service.js +1171 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-config.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-contract.utils.d.ts +5 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-contract.utils.js +51 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-contract.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-inputs.service.d.ts +46 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-inputs.service.js +166 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-inputs.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-ownership.sql.d.ts +4 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-ownership.sql.js +59 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-ownership.sql.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-policy.utils.d.ts +45 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-policy.utils.js +149 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-policy.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-runtime-ownership.d.ts +56 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-runtime-ownership.js +680 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-runtime-ownership.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-runtime.service.d.ts +133 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-runtime.service.js +1617 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-runtime.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-transport.service.d.ts +39 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-transport.service.js +561 -0
- package/dist/plugins/devices-virtual/services/virtual-thermostat-transport.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-transform-config.service.d.ts +41 -0
- package/dist/plugins/devices-virtual/services/virtual-transform-config.service.js +209 -0
- package/dist/plugins/devices-virtual/services/virtual-transform-config.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-transform-contract.utils.d.ts +8 -0
- package/dist/plugins/devices-virtual/services/virtual-transform-contract.utils.js +103 -0
- package/dist/plugins/devices-virtual/services/virtual-transform-contract.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-transform-preview.utils.d.ts +3 -0
- package/dist/plugins/devices-virtual/services/virtual-transform-preview.utils.js +18 -0
- package/dist/plugins/devices-virtual/services/virtual-transform-preview.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-transform-resolver.d.ts +15 -0
- package/dist/plugins/devices-virtual/services/virtual-transform-resolver.js +102 -0
- package/dist/plugins/devices-virtual/services/virtual-transform-resolver.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-transform-runtime.service.d.ts +54 -0
- package/dist/plugins/devices-virtual/services/virtual-transform-runtime.service.js +470 -0
- package/dist/plugins/devices-virtual/services/virtual-transform-runtime.service.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-typed-group.utils.d.ts +6 -0
- package/dist/plugins/devices-virtual/services/virtual-typed-group.utils.js +100 -0
- package/dist/plugins/devices-virtual/services/virtual-typed-group.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-value-source.service.d.ts +7 -0
- package/dist/plugins/devices-virtual/services/virtual-value-source.service.js +36 -2
- package/dist/plugins/devices-virtual/services/virtual-value-source.service.js.map +1 -1
- package/dist/plugins/devices-virtual/services/virtual-window-contact.utils.d.ts +17 -0
- package/dist/plugins/devices-virtual/services/virtual-window-contact.utils.js +52 -0
- package/dist/plugins/devices-virtual/services/virtual-window-contact.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/services/virtual-window-trend.utils.d.ts +44 -0
- package/dist/plugins/devices-virtual/services/virtual-window-trend.utils.js +171 -0
- package/dist/plugins/devices-virtual/services/virtual-window-trend.utils.js.map +1 -0
- package/dist/plugins/devices-virtual/subscribers/virtual-thermostat-ownership.subscriber.d.ts +30 -0
- package/dist/plugins/devices-virtual/subscribers/virtual-thermostat-ownership.subscriber.js +195 -0
- package/dist/plugins/devices-virtual/subscribers/virtual-thermostat-ownership.subscriber.js.map +1 -0
- package/dist/plugins/devices-virtual/subscribers/virtual-transform-metadata.subscriber.d.ts +9 -0
- package/dist/plugins/devices-virtual/subscribers/virtual-transform-metadata.subscriber.js +58 -0
- package/dist/plugins/devices-virtual/subscribers/virtual-transform-metadata.subscriber.js.map +1 -0
- package/dist/plugins/devices-virtual/validators/category-allowed-constraint.validator.d.ts +1 -1
- package/dist/plugins/devices-virtual/validators/category-allowed-constraint.validator.js +6 -1
- package/dist/plugins/devices-virtual/validators/category-allowed-constraint.validator.js.map +1 -1
- package/dist/plugins/devices-wled/interfaces/wled.interface.d.ts +7 -0
- package/dist/plugins/devices-wled/interfaces/wled.interface.js.map +1 -1
- package/dist/plugins/devices-wled/platforms/wled.device.platform.d.ts +4 -2
- package/dist/plugins/devices-wled/platforms/wled.device.platform.js +56 -9
- package/dist/plugins/devices-wled/platforms/wled.device.platform.js.map +1 -1
- package/dist/plugins/devices-wled/services/device-mapper.service.d.ts +3 -2
- package/dist/plugins/devices-wled/services/device-mapper.service.js +48 -1
- package/dist/plugins/devices-wled/services/device-mapper.service.js.map +1 -1
- package/dist/plugins/devices-wled/services/wled-client-adapter.service.d.ts +6 -1
- package/dist/plugins/devices-wled/services/wled-client-adapter.service.js +101 -13
- package/dist/plugins/devices-wled/services/wled-client-adapter.service.js.map +1 -1
- package/dist/plugins/devices-wled/services/wled.service.js +5 -2
- package/dist/plugins/devices-wled/services/wled.service.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/contracts/sample-source.contract.d.ts +38 -0
- package/dist/plugins/devices-zigbee2mqtt/contracts/sample-source.contract.js +95 -0
- package/dist/plugins/devices-zigbee2mqtt/contracts/sample-source.contract.js.map +1 -0
- package/dist/plugins/devices-zigbee2mqtt/devices-zigbee2mqtt.plugin.js +11 -1
- package/dist/plugins/devices-zigbee2mqtt/devices-zigbee2mqtt.plugin.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/entities/zigbee-sample-source.entity.d.ts +18 -0
- package/dist/plugins/devices-zigbee2mqtt/entities/zigbee-sample-source.entity.js +79 -0
- package/dist/plugins/devices-zigbee2mqtt/entities/zigbee-sample-source.entity.js.map +1 -0
- package/dist/plugins/devices-zigbee2mqtt/interfaces/zigbee2mqtt.interface.d.ts +11 -0
- package/dist/plugins/devices-zigbee2mqtt/platforms/zigbee2mqtt.device.platform.d.ts +11 -2
- package/dist/plugins/devices-zigbee2mqtt/platforms/zigbee2mqtt.device.platform.js +100 -11
- package/dist/plugins/devices-zigbee2mqtt/platforms/zigbee2mqtt.device.platform.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/services/base-client-adapter.d.ts +31 -13
- package/dist/plugins/devices-zigbee2mqtt/services/base-client-adapter.js +166 -5
- package/dist/plugins/devices-zigbee2mqtt/services/base-client-adapter.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/services/device-adoption.service.d.ts +1 -0
- package/dist/plugins/devices-zigbee2mqtt/services/device-adoption.service.js +44 -3
- package/dist/plugins/devices-zigbee2mqtt/services/device-adoption.service.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/services/device-mapper.service.d.ts +20 -3
- package/dist/plugins/devices-zigbee2mqtt/services/device-mapper.service.js +156 -34
- package/dist/plugins/devices-zigbee2mqtt/services/device-mapper.service.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/services/mqtt-client-adapter.service.d.ts +1 -1
- package/dist/plugins/devices-zigbee2mqtt/services/mqtt-client-adapter.service.js +14 -1
- package/dist/plugins/devices-zigbee2mqtt/services/mqtt-client-adapter.service.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/services/native-climate-adapter.service.d.ts +15 -0
- package/dist/plugins/devices-zigbee2mqtt/services/native-climate-adapter.service.js +249 -0
- package/dist/plugins/devices-zigbee2mqtt/services/native-climate-adapter.service.js.map +1 -0
- package/dist/plugins/devices-zigbee2mqtt/services/websocket-sample-evidence.d.ts +2 -0
- package/dist/plugins/devices-zigbee2mqtt/services/websocket-sample-evidence.js +15 -0
- package/dist/plugins/devices-zigbee2mqtt/services/websocket-sample-evidence.js.map +1 -0
- package/dist/plugins/devices-zigbee2mqtt/services/ws-client-adapter.service.d.ts +7 -1
- package/dist/plugins/devices-zigbee2mqtt/services/ws-client-adapter.service.js +45 -2
- package/dist/plugins/devices-zigbee2mqtt/services/ws-client-adapter.service.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/services/zigbee-sample-sources.service.d.ts +49 -0
- package/dist/plugins/devices-zigbee2mqtt/services/zigbee-sample-sources.service.js +264 -0
- package/dist/plugins/devices-zigbee2mqtt/services/zigbee-sample-sources.service.js.map +1 -0
- package/dist/plugins/devices-zigbee2mqtt/services/zigbee2mqtt.service.js +2 -0
- package/dist/plugins/devices-zigbee2mqtt/services/zigbee2mqtt.service.js.map +1 -1
- package/dist/plugins/scenes-local/platforms/local-scene.platform.d.ts +6 -3
- package/dist/plugins/scenes-local/platforms/local-scene.platform.js +101 -15
- package/dist/plugins/scenes-local/platforms/local-scene.platform.js.map +1 -1
- package/dist/plugins/spaces-home-control/activity/activity-actor.d.ts +2 -0
- package/dist/plugins/spaces-home-control/activity/activity-actor.js +14 -0
- package/dist/plugins/spaces-home-control/activity/activity-actor.js.map +1 -0
- package/dist/plugins/spaces-home-control/activity/activity-result.utils.d.ts +6 -0
- package/dist/plugins/spaces-home-control/activity/activity-result.utils.js +26 -0
- package/dist/plugins/spaces-home-control/activity/activity-result.utils.js.map +1 -0
- package/dist/plugins/spaces-home-control/activity/space-activity.constants.d.ts +32 -0
- package/dist/plugins/spaces-home-control/activity/space-activity.constants.js +40 -0
- package/dist/plugins/spaces-home-control/activity/space-activity.constants.js.map +1 -0
- package/dist/plugins/spaces-home-control/activity/space-activity.defaults.d.ts +3 -0
- package/dist/plugins/spaces-home-control/activity/space-activity.defaults.js +25 -0
- package/dist/plugins/spaces-home-control/activity/space-activity.defaults.js.map +1 -0
- package/dist/plugins/spaces-home-control/activity/validate-activity-configuration.d.ts +2 -0
- package/dist/plugins/spaces-home-control/activity/validate-activity-configuration.js +37 -0
- package/dist/plugins/spaces-home-control/activity/validate-activity-configuration.js.map +1 -0
- package/dist/plugins/spaces-home-control/controllers/space-mode-schedules.controller.d.ts +12 -0
- package/dist/plugins/spaces-home-control/controllers/space-mode-schedules.controller.js +97 -0
- package/dist/plugins/spaces-home-control/controllers/space-mode-schedules.controller.js.map +1 -0
- package/dist/plugins/spaces-home-control/controllers/space-modes.controller.d.ts +19 -0
- package/dist/plugins/spaces-home-control/controllers/space-modes.controller.js +220 -0
- package/dist/plugins/spaces-home-control/controllers/space-modes.controller.js.map +1 -0
- package/dist/plugins/spaces-home-control/controllers/space-occupancy.controller.d.ts +18 -0
- package/dist/plugins/spaces-home-control/controllers/space-occupancy.controller.js +147 -0
- package/dist/plugins/spaces-home-control/controllers/space-occupancy.controller.js.map +1 -0
- package/dist/plugins/spaces-home-control/controllers/spaces-domain.controller.js +4 -0
- package/dist/plugins/spaces-home-control/controllers/spaces-domain.controller.js.map +1 -1
- package/dist/plugins/spaces-home-control/dto/activity-mode.dto.d.ts +22 -0
- package/dist/plugins/spaces-home-control/dto/activity-mode.dto.js +119 -0
- package/dist/plugins/spaces-home-control/dto/activity-mode.dto.js.map +1 -0
- package/dist/plugins/spaces-home-control/dto/space-mode-schedule.dto.d.ts +18 -0
- package/dist/plugins/spaces-home-control/dto/space-mode-schedule.dto.js +127 -0
- package/dist/plugins/spaces-home-control/dto/space-mode-schedule.dto.js.map +1 -0
- package/dist/plugins/spaces-home-control/dto/space-occupancy.dto.d.ts +13 -0
- package/dist/plugins/spaces-home-control/dto/space-occupancy.dto.js +99 -0
- package/dist/plugins/spaces-home-control/dto/space-occupancy.dto.js.map +1 -0
- package/dist/plugins/spaces-home-control/entities/space-activity-config.entity.d.ts +12 -0
- package/dist/plugins/spaces-home-control/entities/space-activity-config.entity.js +72 -0
- package/dist/plugins/spaces-home-control/entities/space-activity-config.entity.js.map +1 -0
- package/dist/plugins/spaces-home-control/entities/space-activity-state.entity.d.ts +14 -0
- package/dist/plugins/spaces-home-control/entities/space-activity-state.entity.js +105 -0
- package/dist/plugins/spaces-home-control/entities/space-activity-state.entity.js.map +1 -0
- package/dist/plugins/spaces-home-control/entities/space-mode-schedule.entity.d.ts +19 -0
- package/dist/plugins/spaces-home-control/entities/space-mode-schedule.entity.js +110 -0
- package/dist/plugins/spaces-home-control/entities/space-mode-schedule.entity.js.map +1 -0
- package/dist/plugins/spaces-home-control/entities/space-occupancy.entity.d.ts +23 -0
- package/dist/plugins/spaces-home-control/entities/space-occupancy.entity.js +135 -0
- package/dist/plugins/spaces-home-control/entities/space-occupancy.entity.js.map +1 -0
- package/dist/plugins/spaces-home-control/listeners/space-climate-state.listener.d.ts +2 -0
- package/dist/plugins/spaces-home-control/listeners/space-climate-state.listener.js +23 -0
- package/dist/plugins/spaces-home-control/listeners/space-climate-state.listener.js.map +1 -1
- package/dist/plugins/spaces-home-control/listeners/websocket-exchange.listener.js +3 -0
- package/dist/plugins/spaces-home-control/listeners/websocket-exchange.listener.js.map +1 -1
- package/dist/plugins/spaces-home-control/models/activity-configuration.model.d.ts +27 -0
- package/dist/plugins/spaces-home-control/models/activity-configuration.model.js +182 -0
- package/dist/plugins/spaces-home-control/models/activity-configuration.model.js.map +1 -0
- package/dist/plugins/spaces-home-control/models/activity-response.model.d.ts +16 -0
- package/dist/plugins/spaces-home-control/models/activity-response.model.js +79 -0
- package/dist/plugins/spaces-home-control/models/activity-response.model.js.map +1 -0
- package/dist/plugins/spaces-home-control/models/activity-result.model.d.ts +6 -0
- package/dist/plugins/spaces-home-control/models/activity-result.model.js +37 -0
- package/dist/plugins/spaces-home-control/models/activity-result.model.js.map +1 -0
- package/dist/plugins/spaces-home-control/models/climate-contribution.model.d.ts +11 -0
- package/dist/plugins/spaces-home-control/models/climate-contribution.model.js +66 -0
- package/dist/plugins/spaces-home-control/models/climate-contribution.model.js.map +1 -0
- package/dist/plugins/spaces-home-control/models/space-mode-schedule-response.model.d.ts +9 -0
- package/dist/plugins/spaces-home-control/models/space-mode-schedule-response.model.js +45 -0
- package/dist/plugins/spaces-home-control/models/space-mode-schedule-response.model.js.map +1 -0
- package/dist/plugins/spaces-home-control/models/space-mode-schedule.model.d.ts +34 -0
- package/dist/plugins/spaces-home-control/models/space-mode-schedule.model.js +170 -0
- package/dist/plugins/spaces-home-control/models/space-mode-schedule.model.js.map +1 -0
- package/dist/plugins/spaces-home-control/models/space-occupancy.model.d.ts +26 -0
- package/dist/plugins/spaces-home-control/models/space-occupancy.model.js +121 -0
- package/dist/plugins/spaces-home-control/models/space-occupancy.model.js.map +1 -0
- package/dist/plugins/spaces-home-control/models/spaces-response.model.d.ts +13 -0
- package/dist/plugins/spaces-home-control/models/spaces-response.model.js +81 -2
- package/dist/plugins/spaces-home-control/models/spaces-response.model.js.map +1 -1
- package/dist/plugins/spaces-home-control/occupancy/occupancy-admission.d.ts +7 -0
- package/dist/plugins/spaces-home-control/occupancy/occupancy-admission.js +57 -0
- package/dist/plugins/spaces-home-control/occupancy/occupancy-admission.js.map +1 -0
- package/dist/plugins/spaces-home-control/occupancy/space-occupancy.types.d.ts +31 -0
- package/dist/plugins/spaces-home-control/occupancy/space-occupancy.types.js +30 -0
- package/dist/plugins/spaces-home-control/occupancy/space-occupancy.types.js.map +1 -0
- package/dist/plugins/spaces-home-control/schedule/schedule-time.d.ts +9 -0
- package/dist/plugins/spaces-home-control/schedule/schedule-time.js +79 -0
- package/dist/plugins/spaces-home-control/schedule/schedule-time.js.map +1 -0
- package/dist/plugins/spaces-home-control/schedule/space-mode-schedule.types.d.ts +28 -0
- package/dist/plugins/spaces-home-control/schedule/space-mode-schedule.types.js +7 -0
- package/dist/plugins/spaces-home-control/schedule/space-mode-schedule.types.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/activity-test-support.d.ts +16 -0
- package/dist/plugins/spaces-home-control/services/activity-test-support.js +34 -0
- package/dist/plugins/spaces-home-control/services/activity-test-support.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/climate-contribution-planner.service.d.ts +15 -0
- package/dist/plugins/spaces-home-control/services/climate-contribution-planner.service.js +97 -0
- package/dist/plugins/spaces-home-control/services/climate-contribution-planner.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/climate-intent.service.d.ts +15 -2
- package/dist/plugins/spaces-home-control/services/climate-intent.service.js +155 -15
- package/dist/plugins/spaces-home-control/services/climate-intent.service.js.map +1 -1
- package/dist/plugins/spaces-home-control/services/cover-group-intent.port.d.ts +31 -0
- package/dist/plugins/spaces-home-control/services/cover-group-intent.port.js +189 -0
- package/dist/plugins/spaces-home-control/services/cover-group-intent.port.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/covers-intent.service.d.ts +8 -3
- package/dist/plugins/spaces-home-control/services/covers-intent.service.js +139 -65
- package/dist/plugins/spaces-home-control/services/covers-intent.service.js.map +1 -1
- package/dist/plugins/spaces-home-control/services/lighting-contribution-planner.service.d.ts +16 -0
- package/dist/plugins/spaces-home-control/services/lighting-contribution-planner.service.js +66 -0
- package/dist/plugins/spaces-home-control/services/lighting-contribution-planner.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/lighting-intent.service.d.ts +13 -3
- package/dist/plugins/spaces-home-control/services/lighting-intent.service.js +93 -13
- package/dist/plugins/spaces-home-control/services/lighting-intent.service.js.map +1 -1
- package/dist/plugins/spaces-home-control/services/space-activity-config.service.d.ts +25 -0
- package/dist/plugins/spaces-home-control/services/space-activity-config.service.js +144 -0
- package/dist/plugins/spaces-home-control/services/space-activity-config.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/space-activity-domains.service.d.ts +21 -0
- package/dist/plugins/spaces-home-control/services/space-activity-domains.service.js +139 -0
- package/dist/plugins/spaces-home-control/services/space-activity-domains.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/space-climate-automation.port.d.ts +17 -0
- package/dist/plugins/spaces-home-control/services/space-climate-automation.port.js +5 -0
- package/dist/plugins/spaces-home-control/services/space-climate-automation.port.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/space-climate-automation.service.d.ts +63 -0
- package/dist/plugins/spaces-home-control/services/space-climate-automation.service.js +722 -0
- package/dist/plugins/spaces-home-control/services/space-climate-automation.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/space-climate-state.service.d.ts +8 -3
- package/dist/plugins/spaces-home-control/services/space-climate-state.service.js +25 -19
- package/dist/plugins/spaces-home-control/services/space-climate-state.service.js.map +1 -1
- package/dist/plugins/spaces-home-control/services/space-covers-state.service.d.ts +16 -2
- package/dist/plugins/spaces-home-control/services/space-covers-state.service.js +102 -18
- package/dist/plugins/spaces-home-control/services/space-covers-state.service.js.map +1 -1
- package/dist/plugins/spaces-home-control/services/space-intent-base.service.d.ts +2 -0
- package/dist/plugins/spaces-home-control/services/space-intent-base.service.js.map +1 -1
- package/dist/plugins/spaces-home-control/services/space-lighting-state.service.d.ts +4 -1
- package/dist/plugins/spaces-home-control/services/space-lighting-state.service.js +94 -24
- package/dist/plugins/spaces-home-control/services/space-lighting-state.service.js.map +1 -1
- package/dist/plugins/spaces-home-control/services/space-media-activity.service.d.ts +8 -2
- package/dist/plugins/spaces-home-control/services/space-media-activity.service.js +79 -13
- package/dist/plugins/spaces-home-control/services/space-media-activity.service.js.map +1 -1
- package/dist/plugins/spaces-home-control/services/space-mode-schedule-config.service.d.ts +24 -0
- package/dist/plugins/spaces-home-control/services/space-mode-schedule-config.service.js +132 -0
- package/dist/plugins/spaces-home-control/services/space-mode-schedule-config.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/space-mode-scheduler.service.d.ts +39 -0
- package/dist/plugins/spaces-home-control/services/space-mode-scheduler.service.js +289 -0
- package/dist/plugins/spaces-home-control/services/space-mode-scheduler.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/space-mode.service.d.ts +34 -0
- package/dist/plugins/spaces-home-control/services/space-mode.service.js +296 -0
- package/dist/plugins/spaces-home-control/services/space-mode.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/space-occupancy-config.service.d.ts +26 -0
- package/dist/plugins/spaces-home-control/services/space-occupancy-config.service.js +134 -0
- package/dist/plugins/spaces-home-control/services/space-occupancy-config.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/space-occupancy-inputs.service.d.ts +21 -0
- package/dist/plugins/spaces-home-control/services/space-occupancy-inputs.service.js +84 -0
- package/dist/plugins/spaces-home-control/services/space-occupancy-inputs.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/space-occupancy.service.d.ts +48 -0
- package/dist/plugins/spaces-home-control/services/space-occupancy.service.js +285 -0
- package/dist/plugins/spaces-home-control/services/space-occupancy.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/space-state-read.service.d.ts +5 -1
- package/dist/plugins/spaces-home-control/services/space-state-read.service.js +33 -7
- package/dist/plugins/spaces-home-control/services/space-state-read.service.js.map +1 -1
- package/dist/plugins/spaces-home-control/spaces-home-control.openapi.js +52 -0
- package/dist/plugins/spaces-home-control/spaces-home-control.openapi.js.map +1 -1
- package/dist/plugins/spaces-home-control/spaces-home-control.plugin.d.ts +5 -1
- package/dist/plugins/spaces-home-control/spaces-home-control.plugin.js +57 -2
- package/dist/plugins/spaces-home-control/spaces-home-control.plugin.js.map +1 -1
- package/dist/spec/channels.d.ts +27 -4
- package/dist/spec/channels.js +37 -6
- package/dist/spec/channels.js.map +1 -1
- package/dist/spec/devices.d.ts +20 -0
- package/dist/spec/devices.js +20 -0
- package/dist/spec/devices.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +4 -3
|
@@ -12,23 +12,39 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
12
12
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.PropertyCommandDispatchService = void 0;
|
|
15
|
+
exports.PropertyCommandDispatchService = exports.COMPOSITE_INTENT_FINISH_MARGIN_MS = void 0;
|
|
16
|
+
const node_crypto_1 = require("node:crypto");
|
|
16
17
|
const common_1 = require("@nestjs/common");
|
|
18
|
+
const event_emitter_1 = require("@nestjs/event-emitter");
|
|
17
19
|
const devices_constants_1 = require("../devices.constants");
|
|
18
20
|
const property_value_state_model_1 = require("../models/property-value-state.model");
|
|
19
21
|
const property_command_value_utils_1 = require("../utils/property-command-value.utils");
|
|
20
22
|
const channels_service_1 = require("./channels.service");
|
|
21
23
|
const command_latency_trace_collector_service_1 = require("./command-latency-trace-collector.service");
|
|
24
|
+
const composite_property_command_registry_service_1 = require("./composite-property-command.registry.service");
|
|
25
|
+
const cover_action_proof_1 = require("./cover-action-proof");
|
|
22
26
|
const device_structure_lock_service_1 = require("./device-structure-lock.service");
|
|
23
27
|
const devices_service_1 = require("./devices.service");
|
|
24
28
|
const platform_registry_service_1 = require("./platform.registry.service");
|
|
29
|
+
const property_command_admission_registry_service_1 = require("./property-command-admission.registry.service");
|
|
25
30
|
const property_command_window_service_1 = require("./property-command-window.service");
|
|
26
31
|
const property_metadata_service_1 = require("./property-metadata.service");
|
|
27
32
|
const property_state_coordinator_service_1 = require("./property-state-coordinator.service");
|
|
28
33
|
const property_value_source_registry_service_1 = require("./property-value-source.registry.service");
|
|
29
34
|
const property_value_service_1 = require("./property-value.service");
|
|
35
|
+
exports.COMPOSITE_INTENT_FINISH_MARGIN_MS = 100;
|
|
36
|
+
class CompositeAdmissionSnapshotChangedError extends Error {
|
|
37
|
+
}
|
|
38
|
+
class CompositeDeadlineExceededError extends Error {
|
|
39
|
+
}
|
|
30
40
|
let PropertyCommandDispatchService = class PropertyCommandDispatchService {
|
|
31
|
-
|
|
41
|
+
onModuleDestroy() {
|
|
42
|
+
this.disposed = true;
|
|
43
|
+
for (const cleanup of this.compositeCleanups)
|
|
44
|
+
cleanup();
|
|
45
|
+
this.compositeCleanups.clear();
|
|
46
|
+
}
|
|
47
|
+
constructor(propertyMetadata, propertyValues, channelsService, devicesService, platformRegistryService, valueSourceRegistry, structureLock, propertyStateCoordinator, commandWindowService, commandLatencyTraceCollector = new command_latency_trace_collector_service_1.CommandLatencyTraceCollectorService(), composites, events, admissionGuards) {
|
|
32
48
|
this.propertyMetadata = propertyMetadata;
|
|
33
49
|
this.propertyValues = propertyValues;
|
|
34
50
|
this.channelsService = channelsService;
|
|
@@ -39,11 +55,33 @@ let PropertyCommandDispatchService = class PropertyCommandDispatchService {
|
|
|
39
55
|
this.propertyStateCoordinator = propertyStateCoordinator;
|
|
40
56
|
this.commandWindowService = commandWindowService;
|
|
41
57
|
this.commandLatencyTraceCollector = commandLatencyTraceCollector;
|
|
58
|
+
this.composites = composites;
|
|
59
|
+
this.events = events;
|
|
60
|
+
this.admissionGuards = admissionGuards;
|
|
61
|
+
this.eventEpoch = (0, node_crypto_1.randomUUID)();
|
|
62
|
+
this.eventSequence = 0;
|
|
63
|
+
this.disposed = false;
|
|
64
|
+
this.activeComposites = 0;
|
|
65
|
+
this.compositeCleanups = new Set();
|
|
42
66
|
}
|
|
43
67
|
async dispatchBatch(updates, options = {}) {
|
|
68
|
+
const admission = this.admissionGuards?.capture?.();
|
|
69
|
+
const isCurrent = () => (options.commandEntry?.isActive() ?? true) &&
|
|
70
|
+
(options.isRequestCurrent?.() ?? true) &&
|
|
71
|
+
(options.deadlineAt === undefined || Date.now() < options.deadlineAt) &&
|
|
72
|
+
(admission?.isRequestCurrent?.() ?? admission?.isCurrent() ?? true);
|
|
73
|
+
const isLeafCurrent = (update) => isCurrent() && (options.commandEntry?.isActive(update) ?? true) && (admission?.isCurrent(update) ?? true);
|
|
74
|
+
if (!isCurrent())
|
|
75
|
+
return { success: false, reason: 'Command admission changed or expired' };
|
|
44
76
|
if (updates.length === 0) {
|
|
45
77
|
return { success: true };
|
|
46
78
|
}
|
|
79
|
+
const planner = updates.map((update) => this.composites?.get(update.property)).find(Boolean);
|
|
80
|
+
if (planner ||
|
|
81
|
+
updates.some((update) => (0, cover_action_proof_1.isCoverControl)(update) &&
|
|
82
|
+
(this.valueSourceRegistry.resolve(update.property) !== update.property.id ||
|
|
83
|
+
typeof this.platformRegistryService.get(update.device)?.getCoverEffectScope === 'function')))
|
|
84
|
+
return this.dispatchComposite(updates, { ...options, isRequestCurrent: isCurrent }, admission);
|
|
47
85
|
const platform = this.platformRegistryService.get(updates[0].device);
|
|
48
86
|
if (platform === null) {
|
|
49
87
|
return { success: false, reason: 'Unsupported device type' };
|
|
@@ -57,7 +95,48 @@ let PropertyCommandDispatchService = class PropertyCommandDispatchService {
|
|
|
57
95
|
return { success: false, reason: 'Canonical property target changed before dispatch' };
|
|
58
96
|
}
|
|
59
97
|
try {
|
|
60
|
-
|
|
98
|
+
if (!isCurrent()) {
|
|
99
|
+
this.failOwned(handles);
|
|
100
|
+
return { success: false, reason: 'Command admission changed before dispatch' };
|
|
101
|
+
}
|
|
102
|
+
const canonicalUpdates = this.admissionGuards?.hasGuards?.() || options.isRequestCurrent
|
|
103
|
+
? await this.canonicalOrdinaryUpdates(updates)
|
|
104
|
+
: [...updates];
|
|
105
|
+
if (!canonicalUpdates) {
|
|
106
|
+
this.failOwned(handles);
|
|
107
|
+
return { success: false, reason: 'Physical target changed before dispatch' };
|
|
108
|
+
}
|
|
109
|
+
const admissionUpdates = [...updates, ...canonicalUpdates];
|
|
110
|
+
for (const update of admissionUpdates) {
|
|
111
|
+
await options.commandEntry?.assertAllowed(update);
|
|
112
|
+
await admission?.assertAllowed(update);
|
|
113
|
+
}
|
|
114
|
+
let success;
|
|
115
|
+
if (options.isRequestCurrent ||
|
|
116
|
+
canonicalUpdates.some((update) => this.admissionGuards?.requiresGuardedDispatch?.(update))) {
|
|
117
|
+
const byDevice = new Map();
|
|
118
|
+
for (const update of canonicalUpdates) {
|
|
119
|
+
const batch = byDevice.get(update.device.id) ?? [];
|
|
120
|
+
batch.push(update);
|
|
121
|
+
byDevice.set(update.device.id, batch);
|
|
122
|
+
}
|
|
123
|
+
success = true;
|
|
124
|
+
const deadline = Date.now() + (options.ttlMs ?? 3000);
|
|
125
|
+
for (const batch of byDevice.values()) {
|
|
126
|
+
const prepared = await this.platformRegistryService.get(batch[0].device)?.prepareCompositeBatch?.(batch);
|
|
127
|
+
const guard = () => isCurrent() &&
|
|
128
|
+
admissionUpdates.every(isLeafCurrent) &&
|
|
129
|
+
Date.now() < deadline &&
|
|
130
|
+
!!prepared?.isCurrent() &&
|
|
131
|
+
handles.every((handle) => this.commandWindowService.peekGeneration(handle.canonicalPropertyId) === handle.generation);
|
|
132
|
+
if (!prepared || !guard() || !(await prepared.dispatch(guard))) {
|
|
133
|
+
success = false;
|
|
134
|
+
break;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
else
|
|
139
|
+
success = admissionUpdates.every(isLeafCurrent) && (await platform.processBatch([...updates]));
|
|
61
140
|
if (!success) {
|
|
62
141
|
this.failOwned(handles);
|
|
63
142
|
return { success: false, reason: 'Execution failed' };
|
|
@@ -69,7 +148,574 @@ let PropertyCommandDispatchService = class PropertyCommandDispatchService {
|
|
|
69
148
|
throw error;
|
|
70
149
|
}
|
|
71
150
|
}
|
|
151
|
+
async canonicalOrdinaryUpdates(updates) {
|
|
152
|
+
const result = [];
|
|
153
|
+
for (const update of updates) {
|
|
154
|
+
const current = await this.propertyMetadata.findOne(update.property.id);
|
|
155
|
+
if (!current)
|
|
156
|
+
return null;
|
|
157
|
+
const id = this.valueSourceRegistry.resolve(current);
|
|
158
|
+
if (id !== this.valueSourceRegistry.resolve(update.property))
|
|
159
|
+
return null;
|
|
160
|
+
const property = id === current.id ? current : await this.propertyMetadata.findOne(id);
|
|
161
|
+
if (!property)
|
|
162
|
+
return null;
|
|
163
|
+
const channel = typeof property.channel === 'string' ? await this.channelsService.findOne(property.channel) : property.channel;
|
|
164
|
+
const device = typeof channel?.device === 'string' ? await this.devicesService.findOne(channel.device) : channel?.device;
|
|
165
|
+
if (!channel || !device)
|
|
166
|
+
return null;
|
|
167
|
+
const validation = (0, property_command_value_utils_1.validatePropertyCommandValue)(property, update.value);
|
|
168
|
+
if (!validation.valid || validation.value === undefined)
|
|
169
|
+
return null;
|
|
170
|
+
result.push({ property, channel, device, value: validation.value });
|
|
171
|
+
}
|
|
172
|
+
return result;
|
|
173
|
+
}
|
|
174
|
+
async dispatchComposite(updates, options, admission) {
|
|
175
|
+
if (this.disposed || this.activeComposites >= 128)
|
|
176
|
+
return { success: false, reason: 'Composite dispatcher unavailable or at capacity' };
|
|
177
|
+
this.activeComposites++;
|
|
178
|
+
try {
|
|
179
|
+
return await this.executeComposite(updates, options, admission);
|
|
180
|
+
}
|
|
181
|
+
finally {
|
|
182
|
+
this.activeComposites--;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
async executeComposite(updates, options, admission) {
|
|
186
|
+
if (options.commandEntry && !options.commandEntry.isActive())
|
|
187
|
+
return { success: false, reason: 'Command entry snapshot expired or exceeded bounds' };
|
|
188
|
+
const id = (0, node_crypto_1.randomUUID)();
|
|
189
|
+
const deadline = Math.min(options.commandEntry?.deadlineAt ?? Infinity, options.deadlineAt ?? Infinity, Date.now() + Math.min(options.ttlMs ?? 10_000, 30_000));
|
|
190
|
+
if (Date.now() >= deadline)
|
|
191
|
+
return { success: false, reason: 'Composite command deadline exceeded' };
|
|
192
|
+
const planner = updates.map((update) => this.composites?.get(update.property)).find(Boolean);
|
|
193
|
+
let plan;
|
|
194
|
+
try {
|
|
195
|
+
const metadataGeneration = planner ? 0 : this.propertyMetadata.getGeneration();
|
|
196
|
+
if (!planner) {
|
|
197
|
+
plan = {
|
|
198
|
+
revision: metadataGeneration,
|
|
199
|
+
children: updates.map((update) => ({ memberId: update.channel.id, update })),
|
|
200
|
+
isCurrent: () => Promise.resolve(this.propertyMetadata.getGeneration() === metadataGeneration),
|
|
201
|
+
isDispatchCurrent: () => this.propertyMetadata.getGeneration() === metadataGeneration,
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
else {
|
|
205
|
+
plan = await this.withCompositeDeadline(this.structureLock.runShared(() => planner.plan(updates.filter((update) => planner.canHandle(update.property)), options.commandEntry)), deadline);
|
|
206
|
+
plan = {
|
|
207
|
+
...plan,
|
|
208
|
+
children: [
|
|
209
|
+
...plan.children,
|
|
210
|
+
...updates
|
|
211
|
+
.filter((update) => !planner.canHandle(update.property))
|
|
212
|
+
.map((update) => ({ memberId: update.channel.id, update })),
|
|
213
|
+
],
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
catch (error) {
|
|
218
|
+
return { success: false, reason: error instanceof Error ? error.message : 'Invalid composite plan' };
|
|
219
|
+
}
|
|
220
|
+
if (!plan.children.length || plan.children.length > 2048) {
|
|
221
|
+
plan.dispose?.();
|
|
222
|
+
return { success: false, reason: 'Composite size exceeds bounds' };
|
|
223
|
+
}
|
|
224
|
+
const outcomes = plan.children.map((child) => ({
|
|
225
|
+
memberId: child.memberId,
|
|
226
|
+
memberIdentity: child.memberIdentity ?? child.update?.channel.id,
|
|
227
|
+
propertyIdentity: child.propertyIdentity ?? child.update?.property.id ?? null,
|
|
228
|
+
propertyId: child.update?.property.id ?? null,
|
|
229
|
+
status: child.update ? 'accepted' : 'unavailable',
|
|
230
|
+
reason: child.reason,
|
|
231
|
+
}));
|
|
232
|
+
const leaves = new Map();
|
|
233
|
+
const requestedValues = new Map();
|
|
234
|
+
for (const [index, child] of plan.children.entries()) {
|
|
235
|
+
if (!child.update)
|
|
236
|
+
continue;
|
|
237
|
+
const canonical = this.valueSourceRegistry.resolve(child.update.property);
|
|
238
|
+
if (Date.now() >= deadline) {
|
|
239
|
+
Object.assign(outcomes[index], {
|
|
240
|
+
status: 'timed_out',
|
|
241
|
+
reason: 'Composite deadline exceeded during preparation',
|
|
242
|
+
});
|
|
243
|
+
continue;
|
|
244
|
+
}
|
|
245
|
+
let source;
|
|
246
|
+
try {
|
|
247
|
+
source = await this.withCompositeDeadline(this.propertyMetadata.findOne(canonical), deadline);
|
|
248
|
+
}
|
|
249
|
+
catch (error) {
|
|
250
|
+
Object.assign(outcomes[index], {
|
|
251
|
+
status: error instanceof CompositeDeadlineExceededError || Date.now() >= deadline ? 'timed_out' : 'failed',
|
|
252
|
+
reason: error instanceof Error ? error.message : 'Metadata unavailable',
|
|
253
|
+
});
|
|
254
|
+
continue;
|
|
255
|
+
}
|
|
256
|
+
const validation = source ? (0, property_command_value_utils_1.validatePropertyCommandValue)(source, child.update.value) : null;
|
|
257
|
+
const targetValue = validation?.value ?? child.update.value;
|
|
258
|
+
if (requestedValues.has(canonical) && requestedValues.get(canonical) !== targetValue) {
|
|
259
|
+
const reason = 'Contradictory canonical targets in composite command';
|
|
260
|
+
for (const outcome of outcomes)
|
|
261
|
+
if (outcome.status === 'accepted')
|
|
262
|
+
Object.assign(outcome, { status: 'failed', reason });
|
|
263
|
+
const composite = { id, status: 'failed', children: outcomes };
|
|
264
|
+
this.events?.emit('DevicesModule.CompositeCommand.Completed', {
|
|
265
|
+
epoch: this.eventEpoch,
|
|
266
|
+
sequence: ++this.eventSequence,
|
|
267
|
+
...composite,
|
|
268
|
+
children: composite.children.map(toEventChild),
|
|
269
|
+
intentId: options.intentId,
|
|
270
|
+
requestId: options.requestId,
|
|
271
|
+
targets: updates.map(toTarget),
|
|
272
|
+
revision: plan.revision,
|
|
273
|
+
});
|
|
274
|
+
plan.dispose?.();
|
|
275
|
+
return { success: false, reason, composite };
|
|
276
|
+
}
|
|
277
|
+
requestedValues.set(canonical, targetValue);
|
|
278
|
+
if (!validation?.valid || validation.value === undefined) {
|
|
279
|
+
Object.assign(outcomes[index], {
|
|
280
|
+
status: 'unavailable',
|
|
281
|
+
reason: validation?.reason ?? 'Canonical property is missing',
|
|
282
|
+
});
|
|
283
|
+
continue;
|
|
284
|
+
}
|
|
285
|
+
const sourceChannel = typeof source.channel === 'string' ? await this.channelsService.findOne(source.channel) : source.channel;
|
|
286
|
+
const sourceDeviceId = typeof sourceChannel?.device === 'string' ? sourceChannel.device : sourceChannel?.device?.id;
|
|
287
|
+
const sourceDevice = sourceDeviceId === child.update.device.id
|
|
288
|
+
? child.update.device
|
|
289
|
+
: sourceDeviceId
|
|
290
|
+
? await this.devicesService.findOne(sourceDeviceId)
|
|
291
|
+
: null;
|
|
292
|
+
if (!sourceChannel || !sourceDevice) {
|
|
293
|
+
Object.assign(outcomes[index], { status: 'unavailable', reason: 'Canonical device/channel is missing' });
|
|
294
|
+
continue;
|
|
295
|
+
}
|
|
296
|
+
const normalized = {
|
|
297
|
+
device: sourceDevice,
|
|
298
|
+
channel: sourceDevice.channels?.find((channel) => channel.id === sourceChannel.id) ?? sourceChannel,
|
|
299
|
+
property: source,
|
|
300
|
+
value: validation.value,
|
|
301
|
+
};
|
|
302
|
+
const existing = leaves.get(canonical);
|
|
303
|
+
if (existing && existing.update.value !== normalized.value) {
|
|
304
|
+
plan.dispose?.();
|
|
305
|
+
return { success: false, reason: 'Contradictory canonical targets in composite command' };
|
|
306
|
+
}
|
|
307
|
+
if (existing)
|
|
308
|
+
existing.indexes.push(index);
|
|
309
|
+
else
|
|
310
|
+
leaves.set(canonical, { update: normalized, indexes: [index] });
|
|
311
|
+
}
|
|
312
|
+
const channels = new Map();
|
|
313
|
+
for (const leaf of leaves.values()) {
|
|
314
|
+
const key = `${leaf.update.device.id}:${leaf.update.channel.id}`;
|
|
315
|
+
const channel = channels.get(key) ?? [];
|
|
316
|
+
channel.push(leaf);
|
|
317
|
+
channels.set(key, channel);
|
|
318
|
+
}
|
|
319
|
+
const effectEpochs = new Map();
|
|
320
|
+
const releaseEffects = () => {
|
|
321
|
+
for (const [scope, epoch] of effectEpochs)
|
|
322
|
+
this.commandWindowService.releaseCoverEffect(scope, epoch);
|
|
323
|
+
};
|
|
324
|
+
const effectChannels = new Map();
|
|
325
|
+
for (const leaf of leaves.values())
|
|
326
|
+
if ((0, cover_action_proof_1.isCoverControl)(leaf.update)) {
|
|
327
|
+
const scope = this.platformRegistryService.get(leaf.update.device)?.getCoverEffectScope?.(leaf.update) ??
|
|
328
|
+
leaf.update.channel.id;
|
|
329
|
+
if (effectChannels.has(scope) && effectChannels.get(scope) !== leaf.update.channel.id) {
|
|
330
|
+
plan.dispose?.();
|
|
331
|
+
releaseEffects();
|
|
332
|
+
return { success: false, reason: 'Multiple logical channels resolve to one physical cover motor' };
|
|
333
|
+
}
|
|
334
|
+
effectChannels.set(scope, leaf.update.channel.id);
|
|
335
|
+
if (effectEpochs.has(scope))
|
|
336
|
+
continue;
|
|
337
|
+
const epoch = this.commandWindowService.beginCoverEffect(scope);
|
|
338
|
+
if (epoch === null) {
|
|
339
|
+
plan.dispose?.();
|
|
340
|
+
releaseEffects();
|
|
341
|
+
return { success: false, reason: 'Cover effect is reserved or capacity exceeded' };
|
|
342
|
+
}
|
|
343
|
+
effectEpochs.set(scope, epoch);
|
|
344
|
+
}
|
|
345
|
+
const effectsCurrent = () => [...effectEpochs].every(([id, epoch]) => this.commandWindowService.isCoverEffectCurrent(id, epoch));
|
|
346
|
+
const work = [...channels.values()];
|
|
347
|
+
const preparedBatches = new Map();
|
|
348
|
+
let preparing = 0;
|
|
349
|
+
await Promise.all(Array.from({ length: Math.min(8, work.length) }, async () => {
|
|
350
|
+
while (preparing < work.length) {
|
|
351
|
+
const channel = work[preparing++];
|
|
352
|
+
let prepared;
|
|
353
|
+
try {
|
|
354
|
+
const platform = this.platformRegistryService.get(channel[0].update.device);
|
|
355
|
+
if (!platform)
|
|
356
|
+
throw new Error('Unsupported physical platform');
|
|
357
|
+
const requested = channel.map((leaf) => leaf.update);
|
|
358
|
+
if (!platform.prepareCompositeBatch)
|
|
359
|
+
throw new Error('Provider does not support the strict composite dispatch profile');
|
|
360
|
+
prepared = await this.withCompositeDeadline(platform.prepareCompositeBatch(requested), Math.min(deadline, Date.now() + 1_000), (late) => late?.dispose?.());
|
|
361
|
+
if (!prepared || !prepared.isCurrent() || prepared.updates.length !== channel.length) {
|
|
362
|
+
const rejected = prepared;
|
|
363
|
+
prepared = undefined;
|
|
364
|
+
rejected?.dispose?.();
|
|
365
|
+
const readiness = await platform.getCommandReadiness?.(requested[0]);
|
|
366
|
+
throw new Error(readiness?.reasons.join(', ') ||
|
|
367
|
+
'Physical batch preparation is unavailable or changed target cardinality');
|
|
368
|
+
}
|
|
369
|
+
const targets = new Map(prepared.updates.map((target) => [this.valueSourceRegistry.resolve(target.property), target]));
|
|
370
|
+
if (targets.size !== channel.length)
|
|
371
|
+
throw new Error('Prepared physical targets are not distinct');
|
|
372
|
+
for (const leaf of channel) {
|
|
373
|
+
const target = targets.get(this.valueSourceRegistry.resolve(leaf.update.property));
|
|
374
|
+
if (!target || target.device.id !== leaf.update.device.id || target.channel.id !== leaf.update.channel.id)
|
|
375
|
+
throw new Error('Prepared physical target identity changed');
|
|
376
|
+
const validation = (0, property_command_value_utils_1.validatePropertyCommandValue)(target.property, target.value);
|
|
377
|
+
if (!validation.valid || validation.value === undefined)
|
|
378
|
+
throw new Error('Prepared physical target value is invalid');
|
|
379
|
+
leaf.update = { ...target, value: validation.value };
|
|
380
|
+
for (const index of leaf.indexes)
|
|
381
|
+
outcomes[index].value = validation.value;
|
|
382
|
+
}
|
|
383
|
+
if (prepared.coverAction &&
|
|
384
|
+
(!(0, cover_action_proof_1.validCoverAction)(prepared.coverAction, channel.map((leaf) => leaf.update)) ||
|
|
385
|
+
prepared.coverAction.effectScope !== platform.getCoverEffectScope?.(channel[0].update)))
|
|
386
|
+
throw new Error('Invalid cover observation footprint');
|
|
387
|
+
preparedBatches.set(channel, prepared);
|
|
388
|
+
prepared = undefined;
|
|
389
|
+
}
|
|
390
|
+
catch (error) {
|
|
391
|
+
for (const leaf of channel)
|
|
392
|
+
for (const index of leaf.indexes)
|
|
393
|
+
Object.assign(outcomes[index], {
|
|
394
|
+
status: 'unavailable',
|
|
395
|
+
reason: error instanceof Error ? error.message : 'Physical preparation failed',
|
|
396
|
+
});
|
|
397
|
+
}
|
|
398
|
+
finally {
|
|
399
|
+
prepared?.dispose?.();
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
}));
|
|
403
|
+
let cursor = 0;
|
|
404
|
+
let lastPublished = '';
|
|
405
|
+
const publish = () => {
|
|
406
|
+
const signature = JSON.stringify(outcomes);
|
|
407
|
+
if (signature === lastPublished)
|
|
408
|
+
return;
|
|
409
|
+
lastPublished = signature;
|
|
410
|
+
this.events?.emit('DevicesModule.CompositeCommand.Progress', {
|
|
411
|
+
epoch: this.eventEpoch,
|
|
412
|
+
sequence: ++this.eventSequence,
|
|
413
|
+
id,
|
|
414
|
+
intentId: options.intentId,
|
|
415
|
+
requestId: options.requestId,
|
|
416
|
+
targets: updates.map(toTarget),
|
|
417
|
+
revision: plan.revision,
|
|
418
|
+
deadlineAt: deadline,
|
|
419
|
+
children: outcomes.map(toEventChild),
|
|
420
|
+
});
|
|
421
|
+
};
|
|
422
|
+
const ownedGenerations = new Map();
|
|
423
|
+
const observedConfirmations = new Map();
|
|
424
|
+
const channelSettlements = new Map();
|
|
425
|
+
const stopGenerations = this.commandWindowService.observeGeneration((propertyId, generation) => {
|
|
426
|
+
const owned = ownedGenerations.get(propertyId);
|
|
427
|
+
if (!owned || owned.generation === generation)
|
|
428
|
+
return;
|
|
429
|
+
for (const index of owned.indexes)
|
|
430
|
+
if (['accepted', 'confirmed'].includes(outcomes[index].status))
|
|
431
|
+
Object.assign(outcomes[index], {
|
|
432
|
+
status: 'superseded',
|
|
433
|
+
reason: 'Physical generation superseded or cancelled',
|
|
434
|
+
});
|
|
435
|
+
channelSettlements.get(propertyId)?.();
|
|
436
|
+
publish();
|
|
437
|
+
});
|
|
438
|
+
const stopConfirmations = this.commandWindowService.observeConfirmation((handle) => {
|
|
439
|
+
if (!leaves.has(handle.canonicalPropertyId))
|
|
440
|
+
return;
|
|
441
|
+
observedConfirmations.set(handle.canonicalPropertyId, handle.generation);
|
|
442
|
+
const owned = ownedGenerations.get(handle.canonicalPropertyId);
|
|
443
|
+
if (!owned || owned.generation !== handle.generation)
|
|
444
|
+
return;
|
|
445
|
+
for (const index of owned.indexes)
|
|
446
|
+
if (outcomes[index].status === 'accepted')
|
|
447
|
+
Object.assign(outcomes[index], {
|
|
448
|
+
status: 'confirmed',
|
|
449
|
+
generation: handle.generation,
|
|
450
|
+
reason: (0, cover_action_proof_1.coverConfirmationReason)(this.commandWindowService.get(handle.canonicalPropertyId)),
|
|
451
|
+
});
|
|
452
|
+
channelSettlements.get(handle.canonicalPropertyId)?.();
|
|
453
|
+
publish();
|
|
454
|
+
});
|
|
455
|
+
const stopObserving = () => {
|
|
456
|
+
stopGenerations();
|
|
457
|
+
stopConfirmations();
|
|
458
|
+
};
|
|
459
|
+
const cleanup = () => {
|
|
460
|
+
stopObserving();
|
|
461
|
+
releaseEffects();
|
|
462
|
+
for (const child of outcomes)
|
|
463
|
+
if (child.status === 'accepted')
|
|
464
|
+
Object.assign(child, { status: 'superseded', reason: 'Composite dispatcher stopped' });
|
|
465
|
+
for (const [canonicalPropertyId, owned] of ownedGenerations)
|
|
466
|
+
this.commandWindowService.fail({ canonicalPropertyId, generation: owned.generation });
|
|
467
|
+
for (const signal of new Set(channelSettlements.values()))
|
|
468
|
+
signal();
|
|
469
|
+
};
|
|
470
|
+
this.compositeCleanups.add(cleanup);
|
|
471
|
+
publish();
|
|
472
|
+
const workers = Array.from({ length: Math.min(8, work.length) }, async () => {
|
|
473
|
+
while (cursor < work.length) {
|
|
474
|
+
const channel = work[cursor++];
|
|
475
|
+
const prepared = preparedBatches.get(channel);
|
|
476
|
+
if (!prepared)
|
|
477
|
+
continue;
|
|
478
|
+
const setLeaf = (leaf, status, reason, generation) => {
|
|
479
|
+
if (status === 'confirmed')
|
|
480
|
+
reason ??= (0, cover_action_proof_1.coverConfirmationReason)(this.commandWindowService.get(this.valueSourceRegistry.resolve(leaf.update.property)));
|
|
481
|
+
for (const index of leaf.indexes)
|
|
482
|
+
Object.assign(outcomes[index], { status, reason, generation });
|
|
483
|
+
};
|
|
484
|
+
const setPending = (status, reason) => {
|
|
485
|
+
for (const leaf of channel)
|
|
486
|
+
if (leaf.indexes.some((index) => outcomes[index].status === 'accepted'))
|
|
487
|
+
setLeaf(leaf, status, reason);
|
|
488
|
+
publish();
|
|
489
|
+
};
|
|
490
|
+
let handles = [];
|
|
491
|
+
let dispatchActive = true;
|
|
492
|
+
try {
|
|
493
|
+
if (this.disposed || Date.now() >= deadline) {
|
|
494
|
+
setPending('timed_out');
|
|
495
|
+
continue;
|
|
496
|
+
}
|
|
497
|
+
if (!effectsCurrent() ||
|
|
498
|
+
!prepared.isCurrent() ||
|
|
499
|
+
!(await this.withCompositeDeadline(plan.isCurrent(), deadline))) {
|
|
500
|
+
setPending('superseded', 'Binding revision changed');
|
|
501
|
+
continue;
|
|
502
|
+
}
|
|
503
|
+
const admissionUpdates = channel.flatMap((leaf) => [
|
|
504
|
+
leaf.update,
|
|
505
|
+
...leaf.indexes.flatMap((index) => (plan.children[index].update ? [plan.children[index].update] : [])),
|
|
506
|
+
]);
|
|
507
|
+
const effects = (prepared.coverAction?.effects ?? []).map((property) => ({
|
|
508
|
+
device: channel[0].update.device,
|
|
509
|
+
channel: channel[0].update.channel,
|
|
510
|
+
property,
|
|
511
|
+
kind: 'cover_action',
|
|
512
|
+
action: channel[0].update.property.category === devices_constants_1.PropertyCategory.COMMAND
|
|
513
|
+
? channel[0].update.value
|
|
514
|
+
: channel[0].update.property.category,
|
|
515
|
+
}));
|
|
516
|
+
for (const effect of effects) {
|
|
517
|
+
await options.commandEntry?.assertEffectAllowed(effect);
|
|
518
|
+
await admission?.assertEffectAllowed?.(effect);
|
|
519
|
+
}
|
|
520
|
+
for (const update of admissionUpdates) {
|
|
521
|
+
await options.commandEntry?.assertAllowed(update);
|
|
522
|
+
await admission?.assertAllowed(update);
|
|
523
|
+
}
|
|
524
|
+
const admitted = await this.withCompositeDeadline(this.admitWindows(channel.map((leaf) => leaf.update), {
|
|
525
|
+
intentId: options.intentId,
|
|
526
|
+
ttlMs: deadline - Date.now(),
|
|
527
|
+
deadlineAt: deadline,
|
|
528
|
+
requiresLiveEvidence: true,
|
|
529
|
+
}, new Map(channel.map((leaf) => [
|
|
530
|
+
this.valueSourceRegistry.resolve(leaf.update.property),
|
|
531
|
+
leaf.indexes.flatMap((index) => plan.children[index].admissionCheck ? [plan.children[index].admissionCheck] : []),
|
|
532
|
+
])), prepared.coverAction), deadline);
|
|
533
|
+
handles = admitted?.map((window) => window.handle) ?? [];
|
|
534
|
+
if (!admitted || handles.length !== channel.length) {
|
|
535
|
+
setPending('unavailable', 'No correlated physical readback admission');
|
|
536
|
+
continue;
|
|
537
|
+
}
|
|
538
|
+
if (handles.some((handle) => this.commandWindowService.peekGeneration(handle.canonicalPropertyId) !== handle.generation)) {
|
|
539
|
+
setPending('superseded', 'Physical command generation replaced during compound admission');
|
|
540
|
+
continue;
|
|
541
|
+
}
|
|
542
|
+
for (const leaf of channel) {
|
|
543
|
+
const handle = handles.find((handle) => handle.canonicalPropertyId === this.valueSourceRegistry.resolve(leaf.update.property));
|
|
544
|
+
ownedGenerations.set(handle.canonicalPropertyId, { generation: handle.generation, indexes: leaf.indexes });
|
|
545
|
+
setLeaf(leaf, observedConfirmations.get(handle.canonicalPropertyId) === handle.generation ? 'confirmed' : 'accepted', undefined, handle.generation);
|
|
546
|
+
}
|
|
547
|
+
publish();
|
|
548
|
+
const allTerminal = () => !channel.some((leaf) => leaf.indexes.some((index) => outcomes[index].status === 'accepted'));
|
|
549
|
+
if (allTerminal())
|
|
550
|
+
continue;
|
|
551
|
+
const settlement = new Promise((resolve) => {
|
|
552
|
+
const signal = () => {
|
|
553
|
+
if (allTerminal())
|
|
554
|
+
resolve({ success: true });
|
|
555
|
+
};
|
|
556
|
+
for (const handle of handles)
|
|
557
|
+
channelSettlements.set(handle.canonicalPropertyId, signal);
|
|
558
|
+
});
|
|
559
|
+
const dispatched = await this.withCompositeDeadline(Promise.race([
|
|
560
|
+
settlement,
|
|
561
|
+
this.dispatchPreparedComposite(channel.map((leaf) => leaf.update), handles, prepared, () => dispatchActive &&
|
|
562
|
+
effectsCurrent() &&
|
|
563
|
+
!this.disposed &&
|
|
564
|
+
effects.every((effect) => (options.commandEntry?.isEffectActive(effect) ?? true) &&
|
|
565
|
+
(admission?.isEffectCurrent?.(effect) ?? !admission)) &&
|
|
566
|
+
admissionUpdates.every((update) => (options.commandEntry?.isActive(update) ?? true) && (admission?.isCurrent(update) ?? true)) &&
|
|
567
|
+
(options.isRequestCurrent?.() ?? true) &&
|
|
568
|
+
Date.now() < deadline &&
|
|
569
|
+
(plan.isDispatchCurrent?.() ?? true) &&
|
|
570
|
+
handles.every((handle) => this.commandWindowService.peekGeneration(handle.canonicalPropertyId) === handle.generation)),
|
|
571
|
+
]), deadline);
|
|
572
|
+
if (!dispatched.success) {
|
|
573
|
+
if (prepared.isCurrent() && (plan.isDispatchCurrent?.() ?? true))
|
|
574
|
+
for (const leaf of channel) {
|
|
575
|
+
const handle = handles.find((handle) => handle.canonicalPropertyId === this.valueSourceRegistry.resolve(leaf.update.property));
|
|
576
|
+
const window = this.commandWindowService.get(handle.canonicalPropertyId);
|
|
577
|
+
if (window?.generation === handle.generation && window.state === 'confirmed_grace')
|
|
578
|
+
setLeaf(leaf, 'confirmed', undefined, handle.generation);
|
|
579
|
+
}
|
|
580
|
+
setPending(!prepared.isCurrent() ? 'superseded' : Date.now() >= deadline ? 'timed_out' : 'failed', dispatched.reason);
|
|
581
|
+
continue;
|
|
582
|
+
}
|
|
583
|
+
while (!this.disposed && Date.now() < deadline) {
|
|
584
|
+
if (!effectsCurrent() ||
|
|
585
|
+
!prepared.isCurrent() ||
|
|
586
|
+
!(await this.withCompositeDeadline(plan.isCurrent(), deadline))) {
|
|
587
|
+
setPending('superseded', 'Binding revision changed');
|
|
588
|
+
break;
|
|
589
|
+
}
|
|
590
|
+
for (const leaf of channel) {
|
|
591
|
+
if (!leaf.indexes.some((index) => outcomes[index].status === 'accepted'))
|
|
592
|
+
continue;
|
|
593
|
+
const handle = handles.find((handle) => handle.canonicalPropertyId === this.valueSourceRegistry.resolve(leaf.update.property));
|
|
594
|
+
const window = this.commandWindowService.get(handle.canonicalPropertyId);
|
|
595
|
+
if (!window || window.generation !== handle.generation)
|
|
596
|
+
setLeaf(leaf, 'superseded', 'Physical command generation replaced');
|
|
597
|
+
else if (window.state === 'confirmed_grace')
|
|
598
|
+
setLeaf(leaf, 'confirmed', undefined, handle.generation);
|
|
599
|
+
}
|
|
600
|
+
publish();
|
|
601
|
+
if (!channel.some((leaf) => leaf.indexes.some((index) => outcomes[index].status === 'accepted')))
|
|
602
|
+
break;
|
|
603
|
+
await new Promise((resolve) => setTimeout(resolve, Math.min(20, Math.max(1, deadline - Date.now()))));
|
|
604
|
+
}
|
|
605
|
+
setPending('timed_out');
|
|
606
|
+
}
|
|
607
|
+
catch (error) {
|
|
608
|
+
setPending(error instanceof CompositeAdmissionSnapshotChangedError
|
|
609
|
+
? 'superseded'
|
|
610
|
+
: error instanceof CompositeDeadlineExceededError || Date.now() >= deadline
|
|
611
|
+
? 'timed_out'
|
|
612
|
+
: 'failed', error instanceof Error ? error.message : 'Execution failed');
|
|
613
|
+
}
|
|
614
|
+
finally {
|
|
615
|
+
dispatchActive = false;
|
|
616
|
+
prepared.dispose?.();
|
|
617
|
+
for (const handle of handles)
|
|
618
|
+
channelSettlements.delete(handle.canonicalPropertyId);
|
|
619
|
+
for (const leaf of channel)
|
|
620
|
+
if (leaf.indexes.some((index) => outcomes[index].status !== 'confirmed'))
|
|
621
|
+
this.failOwned(handles.filter((handle) => handle.canonicalPropertyId === this.valueSourceRegistry.resolve(leaf.update.property)));
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
});
|
|
625
|
+
try {
|
|
626
|
+
await Promise.all(workers);
|
|
627
|
+
let validation = 'unavailable';
|
|
628
|
+
let validationReason = 'Physical confirmation observed; final binding validation unavailable before deadline';
|
|
629
|
+
if (Date.now() < deadline) {
|
|
630
|
+
try {
|
|
631
|
+
const current = await this.withCompositeDeadline(plan.isCurrent(), deadline);
|
|
632
|
+
if (Date.now() < deadline) {
|
|
633
|
+
if (current === true)
|
|
634
|
+
validation = 'current';
|
|
635
|
+
else if (current === false)
|
|
636
|
+
validation = 'changed';
|
|
637
|
+
else
|
|
638
|
+
validationReason = 'Physical confirmation observed; final binding validation failed';
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
catch (error) {
|
|
642
|
+
if (!(error instanceof CompositeDeadlineExceededError))
|
|
643
|
+
validationReason = 'Physical confirmation observed; final binding validation failed';
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
if (validation !== 'current')
|
|
647
|
+
for (const child of outcomes)
|
|
648
|
+
if (child.status === 'confirmed')
|
|
649
|
+
Object.assign(child, validation === 'changed'
|
|
650
|
+
? { status: 'superseded', reason: 'Binding revision changed before parent completion' }
|
|
651
|
+
: { status: 'unavailable', reason: validationReason });
|
|
652
|
+
const confirmed = outcomes.filter((child) => child.status === 'confirmed').length;
|
|
653
|
+
const composite = {
|
|
654
|
+
id,
|
|
655
|
+
status: confirmed === outcomes.length ? 'confirmed' : confirmed > 0 ? 'partial' : 'failed',
|
|
656
|
+
children: outcomes.map((child) => ({ ...child })),
|
|
657
|
+
};
|
|
658
|
+
this.events?.emit('DevicesModule.CompositeCommand.Completed', {
|
|
659
|
+
epoch: this.eventEpoch,
|
|
660
|
+
sequence: ++this.eventSequence,
|
|
661
|
+
...composite,
|
|
662
|
+
children: composite.children.map(toEventChild),
|
|
663
|
+
intentId: options.intentId,
|
|
664
|
+
requestId: options.requestId,
|
|
665
|
+
targets: updates.map(toTarget),
|
|
666
|
+
revision: plan.revision,
|
|
667
|
+
});
|
|
668
|
+
return {
|
|
669
|
+
success: composite.status === 'confirmed',
|
|
670
|
+
composite,
|
|
671
|
+
reason: composite.status === 'confirmed' ? undefined : `Composite command ${composite.status}`,
|
|
672
|
+
};
|
|
673
|
+
}
|
|
674
|
+
finally {
|
|
675
|
+
stopObserving();
|
|
676
|
+
this.compositeCleanups.delete(cleanup);
|
|
677
|
+
releaseEffects();
|
|
678
|
+
plan.dispose?.();
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
async dispatchPreparedComposite(updates, handles, prepared, isAdmitted) {
|
|
682
|
+
if (this.disposed ||
|
|
683
|
+
!prepared.isCurrent() ||
|
|
684
|
+
!(await this.verifyPreopenedWindows(updates, handles, prepared.coverAction)))
|
|
685
|
+
return { success: false, reason: 'Prepared provider target changed before dispatch' };
|
|
686
|
+
const action = prepared.coverAction;
|
|
687
|
+
const context = action && (0, cover_action_proof_1.validCoverAction)(action, updates)
|
|
688
|
+
? (0, cover_action_proof_1.coverActionContext)(action, updates[0], handles[0], this.commandWindowService, this.propertyValues, () => isAdmitted() && prepared.isCurrent())
|
|
689
|
+
: undefined;
|
|
690
|
+
const success = await prepared.dispatch(isAdmitted, context);
|
|
691
|
+
return success ? { success: true } : { success: false, reason: 'Execution failed' };
|
|
692
|
+
}
|
|
693
|
+
async withCompositeDeadline(operation, deadline, onLateResult) {
|
|
694
|
+
let timer;
|
|
695
|
+
let expired = false;
|
|
696
|
+
try {
|
|
697
|
+
return await Promise.race([
|
|
698
|
+
operation.then((result) => {
|
|
699
|
+
if (expired)
|
|
700
|
+
onLateResult?.(result);
|
|
701
|
+
return result;
|
|
702
|
+
}),
|
|
703
|
+
new Promise((_, reject) => {
|
|
704
|
+
timer = setTimeout(() => {
|
|
705
|
+
expired = true;
|
|
706
|
+
reject(new CompositeDeadlineExceededError('Composite deadline exceeded'));
|
|
707
|
+
}, Math.max(1, deadline - Date.now()));
|
|
708
|
+
}),
|
|
709
|
+
]);
|
|
710
|
+
}
|
|
711
|
+
finally {
|
|
712
|
+
if (timer)
|
|
713
|
+
clearTimeout(timer);
|
|
714
|
+
}
|
|
715
|
+
}
|
|
72
716
|
async prepareApiCommand(update, ttlMs) {
|
|
717
|
+
if ((0, cover_action_proof_1.isCoverControl)(update))
|
|
718
|
+
return null;
|
|
73
719
|
const admitted = await this.admitWindows([update], { ttlMs });
|
|
74
720
|
const first = admitted?.[0];
|
|
75
721
|
if (first === undefined) {
|
|
@@ -82,7 +728,7 @@ let PropertyCommandDispatchService = class PropertyCommandDispatchService {
|
|
|
82
728
|
optimisticEligible: first.admission.canonicalPropertyId === update.property.id && first.admission.baseline !== null,
|
|
83
729
|
};
|
|
84
730
|
}
|
|
85
|
-
async admitWindows(updates, options) {
|
|
731
|
+
async admitWindows(updates, options, checks, cover) {
|
|
86
732
|
return this.structureLock.runShared(async () => {
|
|
87
733
|
const requestedByCanonical = new Map();
|
|
88
734
|
for (const update of updates) {
|
|
@@ -93,19 +739,40 @@ let PropertyCommandDispatchService = class PropertyCommandDispatchService {
|
|
|
93
739
|
}
|
|
94
740
|
const admitted = [];
|
|
95
741
|
for (const [canonicalPropertyId, requestedUpdates] of requestedByCanonical) {
|
|
96
|
-
|
|
742
|
+
let admission;
|
|
743
|
+
try {
|
|
744
|
+
admission = await this.propertyStateCoordinator.run(canonicalPropertyId, () => this.createAdmission(canonicalPropertyId, requestedUpdates, cover));
|
|
745
|
+
}
|
|
746
|
+
catch (error) {
|
|
747
|
+
this.failOwned(admitted.map(({ handle }) => handle));
|
|
748
|
+
throw error;
|
|
749
|
+
}
|
|
97
750
|
if (admission === null) {
|
|
98
751
|
this.failOwned(admitted.map(({ handle }) => handle));
|
|
99
752
|
return null;
|
|
100
753
|
}
|
|
754
|
+
if (this.disposed ||
|
|
755
|
+
!(options.commandEntry?.isActive() ?? true) ||
|
|
756
|
+
!(options.isRequestCurrent?.() ?? true) ||
|
|
757
|
+
(options.deadlineAt !== undefined && Date.now() >= options.deadlineAt)) {
|
|
758
|
+
this.failOwned(admitted.map(({ handle }) => handle));
|
|
759
|
+
return null;
|
|
760
|
+
}
|
|
101
761
|
if (!admission.eligible) {
|
|
102
762
|
continue;
|
|
103
763
|
}
|
|
764
|
+
if (checks?.get(canonicalPropertyId)?.some((check) => !check())) {
|
|
765
|
+
this.failOwned(admitted.map(({ handle }) => handle));
|
|
766
|
+
throw new CompositeAdmissionSnapshotChangedError('Preserved power snapshot changed before admission');
|
|
767
|
+
}
|
|
104
768
|
const handle = this.commandWindowService.open({
|
|
105
769
|
canonicalTarget: admission.canonicalTarget,
|
|
106
770
|
requestedTargets: admission.requestedTargets,
|
|
107
771
|
intentId: options.intentId,
|
|
108
772
|
commandedValue: admission.commandedValue,
|
|
773
|
+
requiresLiveEvidence: options.requiresLiveEvidence,
|
|
774
|
+
proofKind: cover ? 'cover_action' : undefined,
|
|
775
|
+
effectScope: admission.effectScope,
|
|
109
776
|
previousValue: admission.previousValue,
|
|
110
777
|
ttlMs: options.ttlMs ?? 3_000,
|
|
111
778
|
});
|
|
@@ -118,7 +785,7 @@ let PropertyCommandDispatchService = class PropertyCommandDispatchService {
|
|
|
118
785
|
return admitted;
|
|
119
786
|
});
|
|
120
787
|
}
|
|
121
|
-
async createAdmission(canonicalPropertyId, requestedUpdates) {
|
|
788
|
+
async createAdmission(canonicalPropertyId, requestedUpdates, cover) {
|
|
122
789
|
const first = requestedUpdates[0];
|
|
123
790
|
if (first === undefined) {
|
|
124
791
|
return null;
|
|
@@ -156,6 +823,14 @@ let PropertyCommandDispatchService = class PropertyCommandDispatchService {
|
|
|
156
823
|
if (commandedValue === undefined) {
|
|
157
824
|
return null;
|
|
158
825
|
}
|
|
826
|
+
for (const requested of requestedUpdates)
|
|
827
|
+
await this.admissionGuards?.assertAllowed(requested);
|
|
828
|
+
await this.admissionGuards?.assertAllowed({
|
|
829
|
+
device: sourceDevice,
|
|
830
|
+
channel: sourceChannel,
|
|
831
|
+
property: sourceProperty,
|
|
832
|
+
value: commandedValue,
|
|
833
|
+
});
|
|
159
834
|
const baseline = await this.propertyValues.readLatest(sourceProperty);
|
|
160
835
|
sourceProperty.value = baseline;
|
|
161
836
|
const requestedTargets = requestedUpdates.map(toTarget);
|
|
@@ -169,10 +844,13 @@ let PropertyCommandDispatchService = class PropertyCommandDispatchService {
|
|
|
169
844
|
commandedValue,
|
|
170
845
|
previousValue: baseline?.value ?? null,
|
|
171
846
|
baseline: baseline === null ? null : new property_value_state_model_1.PropertyValueState(baseline.value, baseline.lastUpdated, baseline.trend),
|
|
172
|
-
eligible: writable && !authoritative,
|
|
847
|
+
eligible: (writable && !authoritative) || (0, cover_action_proof_1.validCoverAction)(cover, requestedUpdates),
|
|
848
|
+
effectScope: (0, cover_action_proof_1.isCoverControl)(first)
|
|
849
|
+
? (this.platformRegistryService.get(sourceDevice)?.getCoverEffectScope?.(first) ?? sourceChannel.id)
|
|
850
|
+
: undefined,
|
|
173
851
|
};
|
|
174
852
|
}
|
|
175
|
-
async verifyPreopenedWindows(updates, handles) {
|
|
853
|
+
async verifyPreopenedWindows(updates, handles, cover) {
|
|
176
854
|
return this.structureLock.runShared(async () => {
|
|
177
855
|
const requestedByCanonical = new Map();
|
|
178
856
|
for (const update of updates) {
|
|
@@ -193,7 +871,7 @@ let PropertyCommandDispatchService = class PropertyCommandDispatchService {
|
|
|
193
871
|
if (handle === undefined) {
|
|
194
872
|
return false;
|
|
195
873
|
}
|
|
196
|
-
const admission = await this.propertyStateCoordinator.run(canonicalPropertyId, async () => this.createAdmission(canonicalPropertyId, requestedUpdates));
|
|
874
|
+
const admission = await this.propertyStateCoordinator.run(canonicalPropertyId, async () => this.createAdmission(canonicalPropertyId, requestedUpdates, cover));
|
|
197
875
|
const window = this.commandWindowService.get(canonicalPropertyId);
|
|
198
876
|
if (admission === null || !admission.eligible || window === null || window.generation !== handle.generation) {
|
|
199
877
|
return false;
|
|
@@ -212,6 +890,9 @@ exports.PropertyCommandDispatchService = PropertyCommandDispatchService;
|
|
|
212
890
|
exports.PropertyCommandDispatchService = PropertyCommandDispatchService = __decorate([
|
|
213
891
|
(0, common_1.Injectable)(),
|
|
214
892
|
__param(9, (0, common_1.Optional)()),
|
|
893
|
+
__param(10, (0, common_1.Optional)()),
|
|
894
|
+
__param(11, (0, common_1.Optional)()),
|
|
895
|
+
__param(12, (0, common_1.Optional)()),
|
|
215
896
|
__metadata("design:paramtypes", [property_metadata_service_1.PropertyMetadataService,
|
|
216
897
|
property_value_service_1.PropertyValueService,
|
|
217
898
|
channels_service_1.ChannelsService,
|
|
@@ -221,8 +902,21 @@ exports.PropertyCommandDispatchService = PropertyCommandDispatchService = __deco
|
|
|
221
902
|
device_structure_lock_service_1.DeviceStructureLockService,
|
|
222
903
|
property_state_coordinator_service_1.PropertyStateCoordinatorService,
|
|
223
904
|
property_command_window_service_1.PropertyCommandWindowService,
|
|
224
|
-
command_latency_trace_collector_service_1.CommandLatencyTraceCollectorService
|
|
905
|
+
command_latency_trace_collector_service_1.CommandLatencyTraceCollectorService,
|
|
906
|
+
composite_property_command_registry_service_1.CompositePropertyCommandRegistryService,
|
|
907
|
+
event_emitter_1.EventEmitter2,
|
|
908
|
+
property_command_admission_registry_service_1.PropertyCommandAdmissionRegistryService])
|
|
225
909
|
], PropertyCommandDispatchService);
|
|
910
|
+
const toEventChild = (child) => ({
|
|
911
|
+
member_id: child.memberId,
|
|
912
|
+
property_id: child.propertyId,
|
|
913
|
+
member_identity: child.memberIdentity,
|
|
914
|
+
property_identity: child.propertyIdentity,
|
|
915
|
+
status: child.status,
|
|
916
|
+
reason: child.reason,
|
|
917
|
+
value: child.value,
|
|
918
|
+
generation: child.generation,
|
|
919
|
+
});
|
|
226
920
|
const toTarget = ({ device, channel, property, }) => ({
|
|
227
921
|
deviceId: device.id,
|
|
228
922
|
channelId: channel.id,
|