@fastybird/smart-panel-backend 0.12.0-alpha.0 → 1.0.0-beta.2
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.constants.js.map +1 -1
- package/dist/app.module.js +44 -17
- package/dist/app.module.js.map +1 -1
- package/dist/common/filters/bad-request-exception.filter.js +0 -6
- package/dist/common/filters/bad-request-exception.filter.js.map +1 -1
- package/dist/common/filters/global-error.filter.js +2 -6
- package/dist/common/filters/global-error.filter.js.map +1 -1
- package/dist/common/filters/internal-server-error-exception.filter.js +0 -5
- package/dist/common/filters/internal-server-error-exception.filter.js.map +1 -1
- package/dist/common/filters/not-found-exception.filter.d.ts +4 -0
- package/dist/common/filters/not-found-exception.filter.js +22 -3
- package/dist/common/filters/not-found-exception.filter.js.map +1 -1
- package/dist/common/filters/query-failed-exception.filter.js +0 -5
- package/dist/common/filters/query-failed-exception.filter.js.map +1 -1
- package/dist/common/filters/unprocessable-entity-exception.filter.js +0 -5
- package/dist/common/filters/unprocessable-entity-exception.filter.js.map +1 -1
- package/dist/common/plugin-relations/relation-loader.interface.d.ts +5 -0
- package/dist/common/plugin-relations/relation-loader.interface.js +3 -0
- package/dist/common/plugin-relations/relation-loader.interface.js.map +1 -0
- package/dist/common/services/app-instance-holder.service.d.ts +1 -2
- package/dist/common/services/app-instance-holder.service.js.map +1 -1
- package/dist/common/utils/config.utils.d.ts +0 -1
- package/dist/common/utils/config.utils.js +1 -11
- package/dist/common/utils/config.utils.js.map +1 -1
- package/dist/main.js +25 -6
- package/dist/main.js.map +1 -1
- package/dist/migrations/1000000000000-InitialSetup.js +8 -0
- package/dist/migrations/1000000000000-InitialSetup.js.map +1 -1
- package/dist/migrations/1000000000002-AddTokenLastUsedAt.d.ts +6 -0
- package/dist/migrations/1000000000002-AddTokenLastUsedAt.js +15 -0
- package/dist/migrations/1000000000002-AddTokenLastUsedAt.js.map +1 -0
- package/dist/migrations/1000000000003-UnifySpaceRoleTables.d.ts +6 -0
- package/dist/migrations/1000000000003-UnifySpaceRoleTables.js +88 -0
- package/dist/migrations/1000000000003-UnifySpaceRoleTables.js.map +1 -0
- package/dist/migrations/1000000000004-DisplaysSpaceOnly.d.ts +6 -0
- package/dist/migrations/1000000000004-DisplaysSpaceOnly.js +165 -0
- package/dist/migrations/1000000000004-DisplaysSpaceOnly.js.map +1 -0
- package/dist/migrations/1000000000005-SpacesSignageInfoPanel.d.ts +6 -0
- package/dist/migrations/1000000000005-SpacesSignageInfoPanel.js +66 -0
- package/dist/migrations/1000000000005-SpacesSignageInfoPanel.js.map +1 -0
- package/dist/migrations/1000000000006-DropLegacyRoleTables.d.ts +6 -0
- package/dist/migrations/1000000000006-DropLegacyRoleTables.js +32 -0
- package/dist/migrations/1000000000006-DropLegacyRoleTables.js.map +1 -0
- package/dist/modules/api/interceptors/open-api-response.interceptor.js +1 -1
- package/dist/modules/api/interceptors/open-api-response.interceptor.js.map +1 -1
- package/dist/modules/auth/auth.module.js +44 -28
- package/dist/modules/auth/auth.module.js.map +1 -1
- package/dist/modules/auth/controllers/auth.controller.js +6 -0
- package/dist/modules/auth/controllers/auth.controller.js.map +1 -1
- package/dist/modules/auth/controllers/tokens.controller.d.ts +10 -3
- package/dist/modules/auth/controllers/tokens.controller.js +96 -7
- package/dist/modules/auth/controllers/tokens.controller.js.map +1 -1
- package/dist/modules/auth/dto/create-personal-token.dto.d.ts +8 -0
- package/dist/modules/auth/dto/create-personal-token.dto.js +75 -0
- package/dist/modules/auth/dto/create-personal-token.dto.js.map +1 -0
- package/dist/modules/auth/dto/register.dto.d.ts +1 -1
- package/dist/modules/auth/dto/register.dto.js +13 -11
- package/dist/modules/auth/dto/register.dto.js.map +1 -1
- package/dist/modules/auth/entities/auth.entity.d.ts +1 -0
- package/dist/modules/auth/entities/auth.entity.js +13 -0
- package/dist/modules/auth/entities/auth.entity.js.map +1 -1
- package/dist/modules/auth/guards/auth.guard.d.ts +0 -1
- package/dist/modules/auth/guards/auth.guard.js +8 -26
- package/dist/modules/auth/guards/auth.guard.js.map +1 -1
- package/dist/modules/auth/guards/display-aware-throttler.guard.d.ts +16 -0
- package/dist/modules/auth/guards/display-aware-throttler.guard.js +133 -0
- package/dist/modules/auth/guards/display-aware-throttler.guard.js.map +1 -0
- package/dist/modules/auth/services/auth.service.js +1 -1
- package/dist/modules/auth/services/auth.service.js.map +1 -1
- package/dist/modules/auth/services/tokens.service.d.ts +10 -0
- package/dist/modules/auth/services/tokens.service.js +35 -0
- package/dist/modules/auth/services/tokens.service.js.map +1 -1
- package/dist/modules/auth/utils/token.utils.d.ts +7 -0
- package/dist/modules/auth/utils/token.utils.js +12 -1
- package/dist/modules/auth/utils/token.utils.js.map +1 -1
- package/dist/modules/buddy/buddy.module.d.ts +5 -1
- package/dist/modules/buddy/buddy.module.js +42 -15
- package/dist/modules/buddy/buddy.module.js.map +1 -1
- package/dist/modules/buddy/buddy.utils.d.ts +8 -0
- package/dist/modules/buddy/buddy.utils.js +49 -0
- package/dist/modules/buddy/buddy.utils.js.map +1 -1
- package/dist/modules/buddy/controllers/buddy-suggestions.controller.js +2 -2
- package/dist/modules/buddy/controllers/buddy-suggestions.controller.js.map +1 -1
- package/dist/modules/buddy/entities/buddy-conversation.entity.js +3 -3
- package/dist/modules/buddy/entities/buddy-conversation.entity.js.map +1 -1
- package/dist/modules/buddy/entities/buddy-message.entity.js +2 -2
- package/dist/modules/buddy/entities/buddy-message.entity.js.map +1 -1
- package/dist/modules/buddy/entities/buddy-suggestion.entity.d.ts +19 -0
- package/dist/modules/buddy/entities/buddy-suggestion.entity.js +93 -0
- package/dist/modules/buddy/entities/buddy-suggestion.entity.js.map +1 -0
- package/dist/modules/buddy/listeners/media-activity-event.listener.js +3 -3
- package/dist/modules/buddy/listeners/media-activity-event.listener.js.map +1 -1
- package/dist/modules/buddy/platforms/llm-provider.platform.d.ts +6 -0
- package/dist/modules/buddy/platforms/openai-sdk.utils.d.ts +2 -1
- package/dist/modules/buddy/platforms/openai-sdk.utils.js +12 -1
- package/dist/modules/buddy/platforms/openai-sdk.utils.js.map +1 -1
- package/dist/modules/buddy/services/buddy-context.service.js +2 -2
- package/dist/modules/buddy/services/buddy-context.service.js.map +1 -1
- package/dist/modules/buddy/services/buddy-conversation.service.js +23 -8
- package/dist/modules/buddy/services/buddy-conversation.service.js.map +1 -1
- package/dist/modules/buddy/services/buddy-personality.service.d.ts +1 -1
- package/dist/modules/buddy/services/buddy-personality.service.js.map +1 -1
- package/dist/modules/buddy/services/heartbeat.service.js +2 -2
- package/dist/modules/buddy/services/heartbeat.service.js.map +1 -1
- package/dist/modules/buddy/services/llm-provider.service.js +2 -10
- package/dist/modules/buddy/services/llm-provider.service.js.map +1 -1
- package/dist/modules/buddy/services/module-reset.service.d.ts +3 -1
- package/dist/modules/buddy/services/module-reset.service.js +6 -1
- package/dist/modules/buddy/services/module-reset.service.js.map +1 -1
- package/dist/modules/buddy/services/pattern-detector.service.d.ts +4 -1
- package/dist/modules/buddy/services/pattern-detector.service.js +10 -3
- package/dist/modules/buddy/services/pattern-detector.service.js.map +1 -1
- package/dist/modules/buddy/services/scene-suggestion-evaluator.service.d.ts +4 -1
- package/dist/modules/buddy/services/scene-suggestion-evaluator.service.js +10 -4
- package/dist/modules/buddy/services/scene-suggestion-evaluator.service.js.map +1 -1
- package/dist/modules/buddy/services/stt-provider.service.js +2 -10
- package/dist/modules/buddy/services/stt-provider.service.js.map +1 -1
- package/dist/modules/buddy/services/suggestion-engine.service.d.ts +19 -13
- package/dist/modules/buddy/services/suggestion-engine.service.js +170 -103
- package/dist/modules/buddy/services/suggestion-engine.service.js.map +1 -1
- package/dist/modules/buddy/services/tts-provider.service.js +2 -10
- package/dist/modules/buddy/services/tts-provider.service.js.map +1 -1
- package/dist/modules/config/config.constants.d.ts +2 -1
- package/dist/modules/config/config.constants.js +1 -0
- package/dist/modules/config/config.constants.js.map +1 -1
- package/dist/modules/config/config.module.d.ts +5 -1
- package/dist/modules/config/config.module.js +78 -14
- package/dist/modules/config/config.module.js.map +1 -1
- package/dist/modules/config/services/config.service.d.ts +1 -0
- package/dist/modules/config/services/config.service.js +11 -1
- package/dist/modules/config/services/config.service.js.map +1 -1
- package/dist/modules/dashboard/dashboard.module.js +21 -18
- package/dist/modules/dashboard/dashboard.module.js.map +1 -1
- package/dist/modules/dashboard/entities/dashboard.relations.d.ts +1 -5
- package/dist/modules/devices/devices.module.js +24 -16
- package/dist/modules/devices/devices.module.js.map +1 -1
- package/dist/modules/devices/services/device-zones.service.js +2 -2
- package/dist/modules/devices/services/device-zones.service.js.map +1 -1
- package/dist/modules/devices/services/devices.service.js.map +1 -1
- package/dist/modules/displays/displays.constants.d.ts +0 -5
- package/dist/modules/displays/displays.constants.js +1 -7
- package/dist/modules/displays/displays.constants.js.map +1 -1
- package/dist/modules/displays/displays.module.js +27 -23
- package/dist/modules/displays/displays.module.js.map +1 -1
- package/dist/modules/displays/dto/update-display.dto.d.ts +2 -3
- package/dist/modules/displays/dto/update-display.dto.js +4 -19
- package/dist/modules/displays/dto/update-display.dto.js.map +1 -1
- package/dist/modules/displays/entities/displays.entity.d.ts +3 -4
- package/dist/modules/displays/entities/displays.entity.js +8 -25
- package/dist/modules/displays/entities/displays.entity.js.map +1 -1
- package/dist/modules/displays/services/displays.service.d.ts +4 -2
- package/dist/modules/displays/services/displays.service.js +19 -24
- package/dist/modules/displays/services/displays.service.js.map +1 -1
- package/dist/modules/displays/services/home-resolution.service.d.ts +7 -2
- package/dist/modules/displays/services/home-resolution.service.js +50 -6
- package/dist/modules/displays/services/home-resolution.service.js.map +1 -1
- package/dist/modules/displays/services/space-home-page-resolver-registry.service.d.ts +9 -0
- package/dist/modules/displays/services/space-home-page-resolver-registry.service.js +26 -0
- package/dist/modules/displays/services/space-home-page-resolver-registry.service.js.map +1 -0
- package/dist/modules/displays/services/space-selection-validator-registry.service.d.ts +9 -0
- package/dist/modules/displays/services/space-selection-validator-registry.service.js +26 -0
- package/dist/modules/displays/services/space-selection-validator-registry.service.js.map +1 -0
- package/dist/modules/energy/energy.module.js +29 -15
- package/dist/modules/energy/energy.module.js.map +1 -1
- package/dist/modules/extensions/controllers/actions.controller.d.ts +9 -4
- package/dist/modules/extensions/controllers/actions.controller.js +63 -10
- package/dist/modules/extensions/controllers/actions.controller.js.map +1 -1
- package/dist/modules/extensions/extensions.module.js +31 -28
- package/dist/modules/extensions/extensions.module.js.map +1 -1
- package/dist/modules/extensions/extensions.openapi.d.ts +3 -3
- package/dist/modules/extensions/extensions.openapi.js +2 -0
- package/dist/modules/extensions/extensions.openapi.js.map +1 -1
- package/dist/modules/extensions/models/action.model.d.ts +13 -0
- package/dist/modules/extensions/models/action.model.js +89 -3
- package/dist/modules/extensions/models/action.model.js.map +1 -1
- package/dist/modules/extensions/models/actions-response.model.d.ts +4 -1
- package/dist/modules/extensions/models/actions-response.model.js +19 -1
- package/dist/modules/extensions/models/actions-response.model.js.map +1 -1
- package/dist/modules/extensions/models/extension.model.js +5 -0
- package/dist/modules/extensions/models/extension.model.js.map +1 -1
- package/dist/modules/extensions/models/service-status.model.js +7 -0
- package/dist/modules/extensions/models/service-status.model.js.map +1 -1
- package/dist/modules/extensions/services/action-audit.service.d.ts +21 -0
- package/dist/modules/extensions/services/action-audit.service.js +49 -0
- package/dist/modules/extensions/services/action-audit.service.js.map +1 -0
- package/dist/modules/extensions/services/base-managed-plugin.service.d.ts +11 -0
- package/dist/modules/extensions/services/base-managed-plugin.service.js +28 -0
- package/dist/modules/extensions/services/base-managed-plugin.service.js.map +1 -0
- package/dist/modules/extensions/services/extension-action-registry.service.d.ts +6 -1
- package/dist/modules/extensions/services/extension-action-registry.service.js +22 -3
- package/dist/modules/extensions/services/extension-action-registry.service.js.map +1 -1
- package/dist/modules/extensions/services/extension-action.interface.d.ts +3 -0
- package/dist/modules/extensions/services/extension-action.interface.js +3 -1
- package/dist/modules/extensions/services/extension-action.interface.js.map +1 -1
- package/dist/modules/intents/intents.module.js +27 -26
- package/dist/modules/intents/intents.module.js.map +1 -1
- package/dist/modules/mdns/mdns.module.js +24 -19
- package/dist/modules/mdns/mdns.module.js.map +1 -1
- package/dist/modules/platform/dto/system-info.dto.d.ts +2 -0
- package/dist/modules/platform/dto/system-info.dto.js +7 -0
- package/dist/modules/platform/dto/system-info.dto.js.map +1 -1
- package/dist/modules/platform/platform.module.js +25 -17
- package/dist/modules/platform/platform.module.js.map +1 -1
- package/dist/modules/platform/platforms/abstract.platform.d.ts +44 -0
- package/dist/modules/platform/platforms/abstract.platform.js +267 -0
- package/dist/modules/platform/platforms/abstract.platform.js.map +1 -1
- package/dist/modules/platform/platforms/docker.platform.d.ts +2 -0
- package/dist/modules/platform/platforms/docker.platform.js +3 -0
- package/dist/modules/platform/platforms/docker.platform.js.map +1 -1
- package/dist/modules/platform/platforms/generic.platform.d.ts +2 -1
- package/dist/modules/platform/platforms/generic.platform.js +17 -15
- package/dist/modules/platform/platforms/generic.platform.js.map +1 -1
- package/dist/modules/platform/platforms/home-assistant.platform.d.ts +4 -0
- package/dist/modules/platform/platforms/home-assistant.platform.js +21 -0
- package/dist/modules/platform/platforms/home-assistant.platform.js.map +1 -1
- package/dist/modules/platform/platforms/raspberry.platform.js +22 -40
- package/dist/modules/platform/platforms/raspberry.platform.js.map +1 -1
- package/dist/modules/platform/services/platform.service.d.ts +2 -0
- package/dist/modules/platform/services/platform.service.js +7 -0
- package/dist/modules/platform/services/platform.service.js.map +1 -1
- package/dist/modules/scenes/scenes.module.js +18 -18
- package/dist/modules/scenes/scenes.module.js.map +1 -1
- package/dist/modules/security/security.module.js +22 -17
- package/dist/modules/security/security.module.js.map +1 -1
- package/dist/modules/spaces/controllers/spaces.controller.d.ts +5 -115
- package/dist/modules/spaces/controllers/spaces.controller.js +22 -1922
- package/dist/modules/spaces/controllers/spaces.controller.js.map +1 -1
- package/dist/modules/spaces/dto/create-space.dto.d.ts +1 -5
- package/dist/modules/spaces/dto/create-space.dto.js +0 -61
- package/dist/modules/spaces/dto/create-space.dto.js.map +1 -1
- package/dist/modules/spaces/dto/update-space.dto.d.ts +1 -5
- package/dist/modules/spaces/dto/update-space.dto.js +0 -61
- package/dist/modules/spaces/dto/update-space.dto.js.map +1 -1
- package/dist/modules/spaces/entities/space-role.entity.d.ts +8 -0
- package/dist/modules/spaces/entities/space-role.entity.js +58 -0
- package/dist/modules/spaces/entities/space-role.entity.js.map +1 -0
- package/dist/modules/spaces/entities/space.entity.d.ts +3 -6
- package/dist/modules/spaces/entities/space.entity.js +11 -74
- package/dist/modules/spaces/entities/space.entity.js.map +1 -1
- package/dist/modules/spaces/entities/space.relations.d.ts +11 -0
- package/dist/modules/spaces/entities/space.relations.js +3 -0
- package/dist/modules/spaces/entities/space.relations.js.map +1 -0
- package/dist/modules/spaces/models/spaces-response.model.d.ts +1 -522
- package/dist/modules/spaces/models/spaces-response.model.js +23 -4150
- package/dist/modules/spaces/models/spaces-response.model.js.map +1 -1
- package/dist/modules/spaces/services/space-create-builder-registry.service.d.ts +6 -0
- package/dist/modules/spaces/services/space-create-builder-registry.service.js +26 -0
- package/dist/modules/spaces/services/space-create-builder-registry.service.js.map +1 -0
- package/dist/modules/spaces/services/space-relations-loader-registry.service.d.ts +6 -0
- package/dist/modules/spaces/services/space-relations-loader-registry.service.js +26 -0
- package/dist/modules/spaces/services/space-relations-loader-registry.service.js.map +1 -0
- package/dist/modules/spaces/services/space-roles-type-mapper.service.d.ts +12 -0
- package/dist/modules/spaces/services/space-roles-type-mapper.service.js +39 -0
- package/dist/modules/spaces/services/space-roles-type-mapper.service.js.map +1 -0
- package/dist/modules/spaces/services/spaces-type-mapper.service.d.ts +17 -0
- package/dist/modules/spaces/services/spaces-type-mapper.service.js +36 -0
- package/dist/modules/spaces/services/spaces-type-mapper.service.js.map +1 -0
- package/dist/modules/spaces/services/spaces.service.d.ts +4 -12
- package/dist/modules/spaces/services/spaces.service.js +120 -160
- package/dist/modules/spaces/services/spaces.service.js.map +1 -1
- package/dist/modules/spaces/spaces.constants.d.ts +13 -292
- package/dist/modules/spaces/spaces.constants.js +13 -1449
- package/dist/modules/spaces/spaces.constants.js.map +1 -1
- package/dist/modules/spaces/spaces.module.d.ts +2 -9
- package/dist/modules/spaces/spaces.module.js +51 -108
- package/dist/modules/spaces/spaces.module.js.map +1 -1
- package/dist/modules/spaces/spaces.openapi.d.ts +3 -16
- package/dist/modules/spaces/spaces.openapi.js +0 -136
- package/dist/modules/spaces/spaces.openapi.js.map +1 -1
- package/dist/modules/stats/controllers/prometheus.controller.js +0 -2
- package/dist/modules/stats/controllers/prometheus.controller.js.map +1 -1
- package/dist/modules/storage/models/config.model.js +2 -4
- package/dist/modules/storage/models/config.model.js.map +1 -1
- package/dist/modules/storage/services/storage.service.d.ts +4 -10
- package/dist/modules/storage/services/storage.service.js +21 -60
- package/dist/modules/storage/services/storage.service.js.map +1 -1
- package/dist/modules/storage/storage.constants.d.ts +2 -0
- package/dist/modules/storage/storage.constants.js +3 -1
- package/dist/modules/storage/storage.constants.js.map +1 -1
- package/dist/modules/storage/storage.module.js +26 -7
- package/dist/modules/storage/storage.module.js.map +1 -1
- package/dist/modules/swagger/commands/serve-swagger.command.d.ts +14 -0
- package/dist/modules/swagger/commands/serve-swagger.command.js +60 -0
- package/dist/modules/swagger/commands/serve-swagger.command.js.map +1 -0
- package/dist/modules/swagger/swagger.module.js +2 -0
- package/dist/modules/swagger/swagger.module.js.map +1 -1
- package/dist/modules/system/backup-contribution.module.d.ts +2 -0
- package/dist/modules/system/backup-contribution.module.js +22 -0
- package/dist/modules/system/backup-contribution.module.js.map +1 -0
- package/dist/modules/system/controllers/backup.controller.d.ts +17 -0
- package/dist/modules/system/controllers/backup.controller.js +308 -0
- package/dist/modules/system/controllers/backup.controller.js.map +1 -0
- package/dist/modules/system/dto/create-backup.dto.d.ts +6 -0
- package/dist/modules/system/dto/create-backup.dto.js +43 -0
- package/dist/modules/system/dto/create-backup.dto.js.map +1 -0
- package/dist/modules/system/models/backup-response.model.d.ts +8 -0
- package/dist/modules/system/models/backup-response.model.js +46 -0
- package/dist/modules/system/models/backup-response.model.js.map +1 -0
- package/dist/modules/system/models/backup.model.d.ts +14 -0
- package/dist/modules/system/models/backup.model.js +103 -0
- package/dist/modules/system/models/backup.model.js.map +1 -0
- package/dist/modules/system/models/system.model.d.ts +3 -1
- package/dist/modules/system/models/system.model.js +26 -0
- package/dist/modules/system/models/system.model.js.map +1 -1
- package/dist/modules/system/scripts/update-worker.sh +304 -0
- package/dist/modules/system/services/backup-contribution-registry.service.d.ts +24 -0
- package/dist/modules/system/services/backup-contribution-registry.service.js +52 -0
- package/dist/modules/system/services/backup-contribution-registry.service.js.map +1 -0
- package/dist/modules/system/services/backup.service.d.ts +52 -0
- package/dist/modules/system/services/backup.service.js +630 -0
- package/dist/modules/system/services/backup.service.js.map +1 -0
- package/dist/modules/system/services/house-mode-actions.service.d.ts +1 -1
- package/dist/modules/system/services/house-mode-actions.service.js +5 -5
- package/dist/modules/system/services/house-mode-actions.service.js.map +1 -1
- package/dist/modules/system/services/system-command.service.d.ts +7 -1
- package/dist/modules/system/services/system-command.service.js +24 -4
- package/dist/modules/system/services/system-command.service.js.map +1 -1
- package/dist/modules/system/services/system.service.js +4 -1
- package/dist/modules/system/services/system.service.js.map +1 -1
- package/dist/modules/system/services/update-executor.service.d.ts +4 -0
- package/dist/modules/system/services/update-executor.service.js +130 -10
- package/dist/modules/system/services/update-executor.service.js.map +1 -1
- package/dist/modules/system/system.constants.d.ts +7 -0
- package/dist/modules/system/system.constants.js +9 -1
- package/dist/modules/system/system.constants.js.map +1 -1
- package/dist/modules/system/system.module.d.ts +5 -1
- package/dist/modules/system/system.module.js +95 -31
- package/dist/modules/system/system.module.js.map +1 -1
- package/dist/modules/system/system.openapi.d.ts +4 -1
- package/dist/modules/system/system.openapi.js +8 -0
- package/dist/modules/system/system.openapi.js.map +1 -1
- package/dist/modules/users/controllers/users.controller.js +9 -0
- package/dist/modules/users/controllers/users.controller.js.map +1 -1
- package/dist/modules/users/dto/create-user.dto.js +1 -0
- package/dist/modules/users/dto/create-user.dto.js.map +1 -1
- package/dist/modules/users/dto/update-user.dto.d.ts +1 -0
- package/dist/modules/users/dto/update-user.dto.js +15 -1
- package/dist/modules/users/dto/update-user.dto.js.map +1 -1
- package/dist/modules/users/services/users.service.d.ts +1 -0
- package/dist/modules/users/services/users.service.js +12 -2
- package/dist/modules/users/services/users.service.js.map +1 -1
- package/dist/modules/users/users.constants.d.ts +3 -0
- package/dist/modules/users/users.constants.js +35 -1
- package/dist/modules/users/users.constants.js.map +1 -1
- package/dist/modules/users/users.module.js +29 -13
- package/dist/modules/users/users.module.js.map +1 -1
- package/dist/modules/weather/weather.module.js +20 -18
- package/dist/modules/weather/weather.module.js.map +1 -1
- package/dist/modules/websocket/dto/client-user.dto.js +25 -0
- package/dist/modules/websocket/dto/client-user.dto.js.map +1 -1
- package/dist/modules/websocket/dto/ws-client.dto.js +26 -0
- package/dist/modules/websocket/dto/ws-client.dto.js.map +1 -1
- package/dist/modules/websocket/gateway/websocket.gateway.d.ts +2 -2
- package/dist/modules/websocket/gateway/websocket.gateway.js +27 -9
- package/dist/modules/websocket/gateway/websocket.gateway.js.map +1 -1
- package/dist/modules/websocket/services/command-event-registry.service.d.ts +3 -1
- package/dist/modules/websocket/services/command-event-registry.service.js +5 -4
- package/dist/modules/websocket/services/command-event-registry.service.js.map +1 -1
- package/dist/plugins/buddy-claude/buddy-claude.plugin.js +24 -11
- package/dist/plugins/buddy-claude/buddy-claude.plugin.js.map +1 -1
- package/dist/plugins/buddy-claude-setup-token/buddy-claude-setup-token.plugin.js +21 -11
- package/dist/plugins/buddy-claude-setup-token/buddy-claude-setup-token.plugin.js.map +1 -1
- package/dist/plugins/buddy-discord/buddy-discord.plugin.js +28 -16
- package/dist/plugins/buddy-discord/buddy-discord.plugin.js.map +1 -1
- package/dist/plugins/buddy-elevenlabs/buddy-elevenlabs.plugin.js +22 -11
- package/dist/plugins/buddy-elevenlabs/buddy-elevenlabs.plugin.js.map +1 -1
- package/dist/plugins/buddy-ollama/buddy-ollama.plugin.js +28 -12
- package/dist/plugins/buddy-ollama/buddy-ollama.plugin.js.map +1 -1
- package/dist/plugins/buddy-openai/buddy-openai.plugin.js +24 -15
- package/dist/plugins/buddy-openai/buddy-openai.plugin.js.map +1 -1
- package/dist/plugins/buddy-openai/platforms/openai.provider.js +1 -0
- package/dist/plugins/buddy-openai/platforms/openai.provider.js.map +1 -1
- package/dist/plugins/buddy-openai-codex/buddy-openai-codex.plugin.js +26 -15
- package/dist/plugins/buddy-openai-codex/buddy-openai-codex.plugin.js.map +1 -1
- package/dist/plugins/buddy-stt-whisper-local/buddy-stt-whisper-local.plugin.js +23 -9
- package/dist/plugins/buddy-stt-whisper-local/buddy-stt-whisper-local.plugin.js.map +1 -1
- package/dist/plugins/buddy-system-tts/buddy-system-tts.plugin.js +21 -10
- package/dist/plugins/buddy-system-tts/buddy-system-tts.plugin.js.map +1 -1
- package/dist/plugins/buddy-telegram/buddy-telegram.plugin.js +22 -11
- package/dist/plugins/buddy-telegram/buddy-telegram.plugin.js.map +1 -1
- package/dist/plugins/buddy-voiceai/buddy-voiceai.plugin.js +22 -12
- package/dist/plugins/buddy-voiceai/buddy-voiceai.plugin.js.map +1 -1
- package/dist/plugins/buddy-whatsapp/buddy-whatsapp.plugin.js +24 -12
- package/dist/plugins/buddy-whatsapp/buddy-whatsapp.plugin.js.map +1 -1
- package/dist/plugins/buddy-whatsapp/controllers/whatsapp-webhook.controller.d.ts +2 -2
- package/dist/plugins/buddy-whatsapp/controllers/whatsapp-webhook.controller.js +3 -3
- package/dist/plugins/buddy-whatsapp/controllers/whatsapp-webhook.controller.js.map +1 -1
- package/dist/plugins/buddy-whatsapp/platforms/whatsapp-bot.provider.d.ts +2 -1
- package/dist/plugins/buddy-whatsapp/platforms/whatsapp-bot.provider.js +31 -12
- package/dist/plugins/buddy-whatsapp/platforms/whatsapp-bot.provider.js.map +1 -1
- package/dist/plugins/data-sources-device-channel/data-sources-device-channel.plugin.js +16 -30
- package/dist/plugins/data-sources-device-channel/data-sources-device-channel.plugin.js.map +1 -1
- package/dist/plugins/data-sources-weather/data-sources-weather.plugin.js +17 -29
- package/dist/plugins/data-sources-weather/data-sources-weather.plugin.js.map +1 -1
- package/dist/plugins/devices-home-assistant/devices-home-assistant.plugin.js +37 -136
- package/dist/plugins/devices-home-assistant/devices-home-assistant.plugin.js.map +1 -1
- package/dist/plugins/devices-home-assistant/dto/home-assistant-discovered-helper.dto.js +22 -2
- package/dist/plugins/devices-home-assistant/dto/home-assistant-discovered-helper.dto.js.map +1 -1
- package/dist/plugins/devices-home-assistant/models/config.model.d.ts +1 -0
- package/dist/plugins/devices-home-assistant/models/config.model.js +12 -0
- package/dist/plugins/devices-home-assistant/models/config.model.js.map +1 -1
- package/dist/plugins/devices-home-assistant/platforms/home-assistant.device.platform.d.ts +3 -1
- package/dist/plugins/devices-home-assistant/platforms/home-assistant.device.platform.js +11 -2
- package/dist/plugins/devices-home-assistant/platforms/home-assistant.device.platform.js.map +1 -1
- package/dist/plugins/devices-home-assistant/services/ha-mdns-discoverer.service.js +0 -6
- package/dist/plugins/devices-home-assistant/services/ha-mdns-discoverer.service.js.map +1 -1
- package/dist/plugins/devices-home-assistant/services/ha-supervisor.service.d.ts +10 -0
- package/dist/plugins/devices-home-assistant/services/ha-supervisor.service.js +47 -0
- package/dist/plugins/devices-home-assistant/services/ha-supervisor.service.js.map +1 -0
- package/dist/plugins/devices-home-assistant/services/home-assistant-config-validator.service.d.ts +3 -1
- package/dist/plugins/devices-home-assistant/services/home-assistant-config-validator.service.js +8 -2
- package/dist/plugins/devices-home-assistant/services/home-assistant-config-validator.service.js.map +1 -1
- package/dist/plugins/devices-home-assistant/services/home-assistant.http.service.d.ts +5 -1
- package/dist/plugins/devices-home-assistant/services/home-assistant.http.service.js +27 -7
- package/dist/plugins/devices-home-assistant/services/home-assistant.http.service.js.map +1 -1
- package/dist/plugins/devices-home-assistant/services/home-assistant.ws.service.d.ts +9 -7
- package/dist/plugins/devices-home-assistant/services/home-assistant.ws.service.js +58 -24
- package/dist/plugins/devices-home-assistant/services/home-assistant.ws.service.js.map +1 -1
- package/dist/plugins/devices-home-assistant/services/state-changed.event.service.js +1 -0
- package/dist/plugins/devices-home-assistant/services/state-changed.event.service.js.map +1 -1
- package/dist/plugins/devices-reterminal/devices-reterminal.plugin.js +20 -17
- package/dist/plugins/devices-reterminal/devices-reterminal.plugin.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/controllers/shelly-ng-devices.controller.d.ts +7 -2
- package/dist/plugins/devices-shelly-ng/controllers/shelly-ng-devices.controller.js +83 -2
- package/dist/plugins/devices-shelly-ng/controllers/shelly-ng-devices.controller.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/delegates/delegates-manager.service.d.ts +4 -0
- package/dist/plugins/devices-shelly-ng/delegates/delegates-manager.service.js +86 -11
- 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 +8 -0
- package/dist/plugins/devices-shelly-ng/delegates/shelly-device.delegate.js +45 -0
- 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 -3
- package/dist/plugins/devices-shelly-ng/devices-shelly-ng.openapi.js +4 -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.d.ts +6 -1
- package/dist/plugins/devices-shelly-ng/devices-shelly-ng.plugin.js +72 -21
- package/dist/plugins/devices-shelly-ng/devices-shelly-ng.plugin.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/dto/update-config.dto.d.ts +1 -0
- package/dist/plugins/devices-shelly-ng/dto/update-config.dto.js +24 -6
- package/dist/plugins/devices-shelly-ng/dto/update-config.dto.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/entities/devices-shelly-ng.entity.js +12 -0
- package/dist/plugins/devices-shelly-ng/entities/devices-shelly-ng.entity.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/entities/shelly-ng-device-address.entity.js +2 -0
- package/dist/plugins/devices-shelly-ng/entities/shelly-ng-device-address.entity.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/models/config.model.d.ts +1 -0
- package/dist/plugins/devices-shelly-ng/models/config.model.js +18 -6
- package/dist/plugins/devices-shelly-ng/models/config.model.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/models/shelly-ng-response.model.d.ts +4 -1
- package/dist/plugins/devices-shelly-ng/models/shelly-ng-response.model.js +15 -1
- package/dist/plugins/devices-shelly-ng/models/shelly-ng-response.model.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/models/shelly-ng.model.d.ts +30 -0
- package/dist/plugins/devices-shelly-ng/models/shelly-ng.model.js +269 -1
- package/dist/plugins/devices-shelly-ng/models/shelly-ng.model.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/services/device-manager.service.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/services/shelly-ng-discovery.service.d.ts +64 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-ng-discovery.service.js +301 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-ng-discovery.service.js.map +1 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-ng.service.d.ts +17 -7
- package/dist/plugins/devices-shelly-ng/services/shelly-ng.service.js +110 -15
- package/dist/plugins/devices-shelly-ng/services/shelly-ng.service.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/services/shelly-rpc-client.service.d.ts +5 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-rpc-client.service.js +3 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-rpc-client.service.js.map +1 -1
- package/dist/plugins/devices-shelly-ng/services/shelly-ws-server.service.d.ts +28 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-ws-server.service.js +197 -0
- package/dist/plugins/devices-shelly-ng/services/shelly-ws-server.service.js.map +1 -0
- package/dist/plugins/devices-shelly-v1/controllers/shelly-v1-devices.controller.d.ts +7 -2
- package/dist/plugins/devices-shelly-v1/controllers/shelly-v1-devices.controller.js +83 -2
- package/dist/plugins/devices-shelly-v1/controllers/shelly-v1-devices.controller.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/devices-shelly-v1.openapi.d.ts +3 -3
- package/dist/plugins/devices-shelly-v1/devices-shelly-v1.openapi.js +4 -0
- package/dist/plugins/devices-shelly-v1/devices-shelly-v1.openapi.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/devices-shelly-v1.plugin.js +27 -23
- package/dist/plugins/devices-shelly-v1/devices-shelly-v1.plugin.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/models/shelly-v1-response.model.d.ts +4 -1
- package/dist/plugins/devices-shelly-v1/models/shelly-v1-response.model.js +15 -1
- package/dist/plugins/devices-shelly-v1/models/shelly-v1-response.model.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/models/shelly-v1.model.d.ts +31 -0
- package/dist/plugins/devices-shelly-v1/models/shelly-v1.model.js +279 -1
- package/dist/plugins/devices-shelly-v1/models/shelly-v1.model.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/platforms/shelly-v1.device.platform.d.ts +0 -1
- package/dist/plugins/devices-shelly-v1/platforms/shelly-v1.device.platform.js +2 -9
- package/dist/plugins/devices-shelly-v1/platforms/shelly-v1.device.platform.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/services/device-mapper.service.d.ts +0 -1
- package/dist/plugins/devices-shelly-v1/services/device-mapper.service.js +2 -15
- package/dist/plugins/devices-shelly-v1/services/device-mapper.service.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/services/shellies-adapter.service.d.ts +9 -2
- package/dist/plugins/devices-shelly-v1/services/shellies-adapter.service.js +93 -20
- package/dist/plugins/devices-shelly-v1/services/shellies-adapter.service.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/services/shelly-v1-discovery.service.d.ts +62 -0
- package/dist/plugins/devices-shelly-v1/services/shelly-v1-discovery.service.js +314 -0
- package/dist/plugins/devices-shelly-v1/services/shelly-v1-discovery.service.js.map +1 -0
- package/dist/plugins/devices-shelly-v1/services/shelly-v1.service.d.ts +3 -6
- package/dist/plugins/devices-shelly-v1/services/shelly-v1.service.js +13 -37
- package/dist/plugins/devices-shelly-v1/services/shelly-v1.service.js.map +1 -1
- package/dist/plugins/devices-shelly-v1/utils/descriptor.utils.d.ts +2 -0
- package/dist/plugins/devices-shelly-v1/utils/descriptor.utils.js +23 -0
- package/dist/plugins/devices-shelly-v1/utils/descriptor.utils.js.map +1 -0
- package/dist/plugins/devices-third-party/devices-third-party.plugin.js +19 -23
- package/dist/plugins/devices-third-party/devices-third-party.plugin.js.map +1 -1
- package/dist/plugins/devices-wled/devices-wled.plugin.js +30 -20
- package/dist/plugins/devices-wled/devices-wled.plugin.js.map +1 -1
- package/dist/plugins/devices-wled/services/wled-mdns-discoverer.service.js +0 -6
- package/dist/plugins/devices-wled/services/wled-mdns-discoverer.service.js.map +1 -1
- package/dist/plugins/devices-wled/services/wled.service.d.ts +3 -6
- package/dist/plugins/devices-wled/services/wled.service.js +3 -20
- package/dist/plugins/devices-wled/services/wled.service.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/controllers/zigbee2mqtt-wizard.controller.d.ts +14 -0
- package/dist/plugins/devices-zigbee2mqtt/controllers/zigbee2mqtt-wizard.controller.js +185 -0
- package/dist/plugins/devices-zigbee2mqtt/controllers/zigbee2mqtt-wizard.controller.js.map +1 -0
- package/dist/plugins/devices-zigbee2mqtt/devices-zigbee2mqtt.openapi.d.ts +5 -3
- package/dist/plugins/devices-zigbee2mqtt/devices-zigbee2mqtt.openapi.js +12 -0
- package/dist/plugins/devices-zigbee2mqtt/devices-zigbee2mqtt.openapi.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/devices-zigbee2mqtt.plugin.js +43 -54
- package/dist/plugins/devices-zigbee2mqtt/devices-zigbee2mqtt.plugin.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/dto/wizard-adopt.dto.d.ts +12 -0
- package/dist/plugins/devices-zigbee2mqtt/dto/wizard-adopt.dto.js +73 -0
- package/dist/plugins/devices-zigbee2mqtt/dto/wizard-adopt.dto.js.map +1 -0
- package/dist/plugins/devices-zigbee2mqtt/models/wizard.model.d.ts +38 -0
- package/dist/plugins/devices-zigbee2mqtt/models/wizard.model.js +259 -0
- package/dist/plugins/devices-zigbee2mqtt/models/wizard.model.js.map +1 -0
- package/dist/plugins/devices-zigbee2mqtt/models/zigbee2mqtt-response.model.d.ts +7 -0
- package/dist/plugins/devices-zigbee2mqtt/models/zigbee2mqtt-response.model.js +30 -1
- package/dist/plugins/devices-zigbee2mqtt/models/zigbee2mqtt-response.model.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/services/base-client-adapter.d.ts +1 -0
- package/dist/plugins/devices-zigbee2mqtt/services/base-client-adapter.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/services/mqtt-client-adapter.service.d.ts +1 -0
- package/dist/plugins/devices-zigbee2mqtt/services/mqtt-client-adapter.service.js +22 -0
- package/dist/plugins/devices-zigbee2mqtt/services/mqtt-client-adapter.service.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/services/wizard.service.d.ts +70 -0
- package/dist/plugins/devices-zigbee2mqtt/services/wizard.service.js +361 -0
- package/dist/plugins/devices-zigbee2mqtt/services/wizard.service.js.map +1 -0
- package/dist/plugins/devices-zigbee2mqtt/services/ws-client-adapter.service.d.ts +1 -0
- package/dist/plugins/devices-zigbee2mqtt/services/ws-client-adapter.service.js +23 -0
- package/dist/plugins/devices-zigbee2mqtt/services/ws-client-adapter.service.js.map +1 -1
- package/dist/plugins/devices-zigbee2mqtt/services/zigbee2mqtt.service.d.ts +10 -7
- package/dist/plugins/devices-zigbee2mqtt/services/zigbee2mqtt.service.js +46 -22
- package/dist/plugins/devices-zigbee2mqtt/services/zigbee2mqtt.service.js.map +1 -1
- package/dist/{modules/storage/plugins/influx-v1/influx-v1.update-config.dto.d.ts → plugins/influx-v1/dto/update-config.dto.d.ts} +1 -1
- package/dist/{modules/storage/plugins/influx-v1/influx-v1.update-config.dto.js → plugins/influx-v1/dto/update-config.dto.js} +3 -3
- package/dist/plugins/influx-v1/dto/update-config.dto.js.map +1 -0
- package/dist/plugins/influx-v1/influx-v1.constants.js.map +1 -0
- package/dist/{modules/storage/plugins → plugins}/influx-v1/influx-v1.openapi.d.ts +1 -1
- package/dist/plugins/influx-v1/influx-v1.openapi.js +7 -0
- package/dist/plugins/influx-v1/influx-v1.openapi.js.map +1 -0
- package/dist/plugins/influx-v1/influx-v1.plugin.d.ts +15 -0
- package/dist/plugins/influx-v1/influx-v1.plugin.js +109 -0
- package/dist/plugins/influx-v1/influx-v1.plugin.js.map +1 -0
- package/dist/{modules/storage/plugins/influx-v1/influx-v1.config.model.d.ts → plugins/influx-v1/models/config.model.d.ts} +1 -1
- package/dist/{modules/storage/plugins/influx-v1/influx-v1.config.model.js → plugins/influx-v1/models/config.model.js} +3 -3
- package/dist/plugins/influx-v1/models/config.model.js.map +1 -0
- package/dist/plugins/influx-v1/services/influx-v1-managed.service.d.ts +20 -0
- package/dist/plugins/influx-v1/services/influx-v1-managed.service.js +128 -0
- package/dist/plugins/influx-v1/services/influx-v1-managed.service.js.map +1 -0
- package/dist/{modules/storage/plugins/influx-v1/influx-v1.plugin.d.ts → plugins/influx-v1/services/influx-v1.storage.d.ts} +3 -3
- package/dist/{modules/storage/plugins/influx-v1/influx-v1.plugin.js → plugins/influx-v1/services/influx-v1.storage.js} +9 -9
- package/dist/plugins/influx-v1/services/influx-v1.storage.js.map +1 -0
- package/dist/plugins/influx-v2/dto/update-config.dto.d.ts +8 -0
- package/dist/plugins/influx-v2/dto/update-config.dto.js +82 -0
- package/dist/plugins/influx-v2/dto/update-config.dto.js.map +1 -0
- package/dist/plugins/influx-v2/influx-v2.constants.d.ts +4 -0
- package/dist/plugins/influx-v2/influx-v2.constants.js +8 -0
- package/dist/plugins/influx-v2/influx-v2.constants.js.map +1 -0
- package/dist/plugins/influx-v2/influx-v2.openapi.d.ts +2 -0
- package/dist/plugins/influx-v2/influx-v2.openapi.js +7 -0
- package/dist/plugins/influx-v2/influx-v2.openapi.js.map +1 -0
- package/dist/plugins/influx-v2/influx-v2.plugin.d.ts +15 -0
- package/dist/plugins/influx-v2/influx-v2.plugin.js +109 -0
- package/dist/plugins/influx-v2/influx-v2.plugin.js.map +1 -0
- package/dist/plugins/influx-v2/models/config.model.d.ts +9 -0
- package/dist/plugins/influx-v2/models/config.model.js +93 -0
- package/dist/plugins/influx-v2/models/config.model.js.map +1 -0
- package/dist/plugins/influx-v2/services/influx-v2-managed.service.d.ts +20 -0
- package/dist/plugins/influx-v2/services/influx-v2-managed.service.js +132 -0
- package/dist/plugins/influx-v2/services/influx-v2-managed.service.js.map +1 -0
- package/dist/plugins/influx-v2/services/influx-v2.storage.d.ts +33 -0
- package/dist/plugins/influx-v2/services/influx-v2.storage.js +230 -0
- package/dist/plugins/influx-v2/services/influx-v2.storage.js.map +1 -0
- package/dist/plugins/logger-rotating-file/logger-rotating-file.plugin.js +20 -29
- package/dist/plugins/logger-rotating-file/logger-rotating-file.plugin.js.map +1 -1
- package/dist/{modules/storage/plugins/memory/memory.update-config.dto.d.ts → plugins/memory-storage/dto/update-config.dto.d.ts} +1 -1
- package/dist/{modules/storage/plugins/memory/memory.update-config.dto.js → plugins/memory-storage/dto/update-config.dto.js} +5 -5
- package/dist/plugins/memory-storage/dto/update-config.dto.js.map +1 -0
- package/dist/{modules/storage/plugins/memory/memory.constants.js → plugins/memory-storage/memory-storage.constants.js} +1 -1
- package/dist/plugins/memory-storage/memory-storage.constants.js.map +1 -0
- package/dist/{modules/storage/plugins/memory/memory.openapi.d.ts → plugins/memory-storage/memory-storage.openapi.d.ts} +1 -1
- package/dist/plugins/memory-storage/memory-storage.openapi.js +7 -0
- package/dist/plugins/memory-storage/memory-storage.openapi.js.map +1 -0
- package/dist/plugins/memory-storage/memory-storage.plugin.d.ts +15 -0
- package/dist/plugins/memory-storage/memory-storage.plugin.js +92 -0
- package/dist/plugins/memory-storage/memory-storage.plugin.js.map +1 -0
- package/dist/{modules/storage/plugins/memory/memory.config.model.d.ts → plugins/memory-storage/models/config.model.d.ts} +1 -1
- package/dist/{modules/storage/plugins/memory/memory.config.model.js → plugins/memory-storage/models/config.model.js} +5 -5
- package/dist/plugins/memory-storage/models/config.model.js.map +1 -0
- package/dist/{modules/storage/plugins/memory → plugins/memory-storage/services}/in-memory-timeseries.store.d.ts +1 -1
- package/dist/{modules/storage/plugins/memory → plugins/memory-storage/services}/in-memory-timeseries.store.js +4 -4
- package/dist/plugins/memory-storage/services/in-memory-timeseries.store.js.map +1 -0
- package/dist/plugins/memory-storage/services/influxql-parser.js.map +1 -0
- package/dist/plugins/memory-storage/services/memory-storage-managed.service.d.ts +14 -0
- package/dist/plugins/memory-storage/services/memory-storage-managed.service.js +87 -0
- package/dist/plugins/memory-storage/services/memory-storage-managed.service.js.map +1 -0
- package/dist/{modules/storage/plugins/memory/memory.plugin.d.ts → plugins/memory-storage/services/memory-storage.storage.d.ts} +3 -3
- package/dist/{modules/storage/plugins/memory/memory.plugin.js → plugins/memory-storage/services/memory-storage.storage.js} +8 -8
- package/dist/plugins/memory-storage/services/memory-storage.storage.js.map +1 -0
- package/dist/plugins/pages-cards/pages-cards.plugin.js +15 -26
- package/dist/plugins/pages-cards/pages-cards.plugin.js.map +1 -1
- package/dist/plugins/pages-device-detail/pages-device-detail.plugin.js +16 -25
- package/dist/plugins/pages-device-detail/pages-device-detail.plugin.js.map +1 -1
- package/dist/plugins/pages-tiles/pages-tiles.plugin.js +15 -26
- package/dist/plugins/pages-tiles/pages-tiles.plugin.js.map +1 -1
- package/dist/plugins/scenes-local/scenes-local.plugin.js +21 -22
- package/dist/plugins/scenes-local/scenes-local.plugin.js.map +1 -1
- package/dist/plugins/simulator/services/scenario-executor.service.d.ts +5 -5
- package/dist/plugins/simulator/services/scenario-executor.service.js +7 -6
- package/dist/plugins/simulator/services/scenario-executor.service.js.map +1 -1
- package/dist/plugins/simulator/services/simulator-actions.service.js +3 -0
- package/dist/plugins/simulator/services/simulator-actions.service.js.map +1 -1
- package/dist/plugins/simulator/simulator.plugin.js +49 -58
- package/dist/plugins/simulator/simulator.plugin.js.map +1 -1
- package/dist/plugins/spaces-home-control/controllers/spaces-domain.controller.d.ts +119 -0
- package/dist/plugins/spaces-home-control/controllers/spaces-domain.controller.js +1958 -0
- package/dist/plugins/spaces-home-control/controllers/spaces-domain.controller.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/climate-intent.dto.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/climate-intent.dto.js +24 -24
- package/dist/plugins/spaces-home-control/dto/climate-intent.dto.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/climate-role.dto.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/climate-role.dto.js +4 -4
- package/dist/plugins/spaces-home-control/dto/climate-role.dto.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/covers-intent.dto.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/covers-intent.dto.js +18 -18
- package/dist/plugins/spaces-home-control/dto/covers-intent.dto.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/covers-role.dto.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/covers-role.dto.js +4 -4
- package/dist/plugins/spaces-home-control/dto/covers-role.dto.js.map +1 -0
- package/dist/plugins/spaces-home-control/dto/create-home-control-space.dto.d.ts +8 -0
- package/dist/plugins/spaces-home-control/dto/create-home-control-space.dto.js +85 -0
- package/dist/plugins/spaces-home-control/dto/create-home-control-space.dto.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/lighting-intent.dto.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/lighting-intent.dto.js +34 -34
- package/dist/plugins/spaces-home-control/dto/lighting-intent.dto.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/lighting-role.dto.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/lighting-role.dto.js +4 -4
- package/dist/plugins/spaces-home-control/dto/lighting-role.dto.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/media-activity-binding.dto.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/media-activity-binding.dto.js +4 -4
- package/dist/plugins/spaces-home-control/dto/media-activity-binding.dto.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/sensor-role.dto.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/sensor-role.dto.js +4 -4
- package/dist/plugins/spaces-home-control/dto/sensor-role.dto.js.map +1 -0
- package/dist/plugins/spaces-home-control/dto/status-widget.dto.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/suggestion.dto.d.ts +2 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/dto/suggestion.dto.js +5 -4
- package/dist/plugins/spaces-home-control/dto/suggestion.dto.js.map +1 -0
- package/dist/plugins/spaces-home-control/dto/update-config.dto.d.ts +5 -0
- package/dist/plugins/spaces-home-control/dto/update-config.dto.js +34 -0
- package/dist/plugins/spaces-home-control/dto/update-config.dto.js.map +1 -0
- package/dist/plugins/spaces-home-control/dto/update-home-control-space.dto.d.ts +8 -0
- package/dist/plugins/spaces-home-control/dto/update-home-control-space.dto.js +85 -0
- package/dist/plugins/spaces-home-control/dto/update-home-control-space.dto.js.map +1 -0
- package/dist/plugins/spaces-home-control/entities/room-space.entity.d.ts +8 -0
- package/dist/plugins/spaces-home-control/entities/room-space.entity.js +91 -0
- package/dist/plugins/spaces-home-control/entities/room-space.entity.js.map +1 -0
- package/dist/plugins/spaces-home-control/entities/space-active-media-activity.entity.d.ts +11 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/entities/space-active-media-activity.entity.js +23 -30
- package/dist/plugins/spaces-home-control/entities/space-active-media-activity.entity.js.map +1 -0
- package/dist/plugins/spaces-home-control/entities/space-climate-role.entity.d.ts +13 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/entities/space-climate-role.entity.js +25 -32
- package/dist/plugins/spaces-home-control/entities/space-climate-role.entity.js.map +1 -0
- package/dist/plugins/spaces-home-control/entities/space-covers-role.entity.d.ts +13 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/entities/space-covers-role.entity.js +27 -34
- package/dist/plugins/spaces-home-control/entities/space-covers-role.entity.js.map +1 -0
- package/dist/plugins/spaces-home-control/entities/space-lighting-role.entity.d.ts +13 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/entities/space-lighting-role.entity.js +27 -34
- package/dist/plugins/spaces-home-control/entities/space-lighting-role.entity.js.map +1 -0
- package/dist/plugins/spaces-home-control/entities/space-media-activity-binding.entity.d.ts +15 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/entities/space-media-activity-binding.entity.js +20 -28
- package/dist/plugins/spaces-home-control/entities/space-media-activity-binding.entity.js.map +1 -0
- package/dist/plugins/spaces-home-control/entities/space-sensor-role.entity.d.ts +13 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/entities/space-sensor-role.entity.js +27 -34
- package/dist/plugins/spaces-home-control/entities/space-sensor-role.entity.js.map +1 -0
- package/dist/plugins/spaces-home-control/entities/zone-space.entity.d.ts +8 -0
- package/dist/plugins/spaces-home-control/entities/zone-space.entity.js +91 -0
- package/dist/plugins/spaces-home-control/entities/zone-space.entity.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/listeners/space-activity.listener.d.ts +2 -2
- package/dist/{modules/spaces → plugins/spaces-home-control}/listeners/space-activity.listener.js +4 -4
- package/dist/plugins/spaces-home-control/listeners/space-activity.listener.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/listeners/space-climate-state.listener.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/listeners/space-climate-state.listener.js +6 -5
- package/dist/plugins/spaces-home-control/listeners/space-climate-state.listener.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/listeners/space-lighting-state.listener.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/listeners/space-lighting-state.listener.js +6 -5
- package/dist/plugins/spaces-home-control/listeners/space-lighting-state.listener.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/listeners/space-sensor-state.listener.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/listeners/space-sensor-state.listener.js +9 -8
- package/dist/plugins/spaces-home-control/listeners/space-sensor-state.listener.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/listeners/websocket-exchange.listener.d.ts +2 -2
- package/dist/{modules/spaces → plugins/spaces-home-control}/listeners/websocket-exchange.listener.js +5 -5
- package/dist/plugins/spaces-home-control/listeners/websocket-exchange.listener.js.map +1 -0
- package/dist/plugins/spaces-home-control/models/config.model.d.ts +5 -0
- package/dist/plugins/spaces-home-control/models/config.model.js +49 -0
- package/dist/plugins/spaces-home-control/models/config.model.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/models/derived-media-endpoint.model.d.ts +2 -2
- package/dist/{modules/spaces → plugins/spaces-home-control}/models/derived-media-endpoint.model.js +4 -4
- package/dist/plugins/spaces-home-control/models/derived-media-endpoint.model.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/models/media-activity-binding.model.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/models/media-activity-binding.model.js +1 -1
- package/dist/plugins/spaces-home-control/models/media-activity-binding.model.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/models/media-activity.model.d.ts +2 -2
- package/dist/{modules/spaces → plugins/spaces-home-control}/models/media-activity.model.js +6 -6
- package/dist/plugins/spaces-home-control/models/media-activity.model.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/models/media-routing.model.d.ts +2 -2
- package/dist/{modules/spaces → plugins/spaces-home-control}/models/media-routing.model.js +4 -4
- package/dist/plugins/spaces-home-control/models/media-routing.model.js.map +1 -0
- package/dist/plugins/spaces-home-control/models/spaces-response.model.d.ts +524 -0
- package/dist/plugins/spaces-home-control/models/spaces-response.model.js +4145 -0
- package/dist/plugins/spaces-home-control/models/spaces-response.model.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/__fixtures__/media-scenario-templates.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/__fixtures__/media-scenario-templates.js +3 -3
- package/dist/plugins/spaces-home-control/services/__fixtures__/media-scenario-templates.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/__fixtures__/media-test-harness.d.ts +1 -1
- package/dist/plugins/spaces-home-control/services/__fixtures__/media-test-harness.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/climate-intent.service.d.ts +5 -5
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/climate-intent.service.js +35 -34
- package/dist/plugins/spaces-home-control/services/climate-intent.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/covers-intent.service.d.ts +5 -5
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/covers-intent.service.js +48 -47
- package/dist/plugins/spaces-home-control/services/covers-intent.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/derived-media-endpoint.service.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/derived-media-endpoint.service.js +28 -27
- package/dist/plugins/spaces-home-control/services/derived-media-endpoint.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/home-control-home-page.resolver.d.ts +4 -0
- package/dist/plugins/spaces-home-control/services/home-control-home-page.resolver.js +20 -0
- package/dist/plugins/spaces-home-control/services/home-control-home-page.resolver.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/home-control-spaces.service.d.ts +24 -0
- package/dist/plugins/spaces-home-control/services/home-control-spaces.service.js +182 -0
- package/dist/plugins/spaces-home-control/services/home-control-spaces.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/lighting-intent.service.d.ts +6 -6
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/lighting-intent.service.js +68 -67
- package/dist/plugins/spaces-home-control/services/lighting-intent.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/media-capability.service.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/media-capability.service.js +20 -19
- package/dist/plugins/spaces-home-control/services/media-capability.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-climate-role.service.d.ts +4 -4
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-climate-role.service.js +18 -17
- package/dist/plugins/spaces-home-control/services/space-climate-role.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-climate-state.service.d.ts +5 -5
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-climate-state.service.js +32 -31
- package/dist/plugins/spaces-home-control/services/space-climate-state.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-context-snapshot.service.d.ts +2 -2
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-context-snapshot.service.js +7 -6
- package/dist/plugins/spaces-home-control/services/space-context-snapshot.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-covers-role.service.d.ts +3 -3
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-covers-role.service.js +28 -25
- package/dist/plugins/spaces-home-control/services/space-covers-role.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-covers-state.service.d.ts +4 -4
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-covers-state.service.js +9 -8
- package/dist/plugins/spaces-home-control/services/space-covers-state.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-intent-base.service.d.ts +1 -1
- package/dist/plugins/spaces-home-control/services/space-intent-base.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/services/space-intent.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-lighting-role.service.d.ts +3 -3
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-lighting-role.service.js +25 -22
- package/dist/plugins/spaces-home-control/services/space-lighting-role.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-lighting-state.service.d.ts +3 -3
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-lighting-state.service.js +20 -19
- package/dist/plugins/spaces-home-control/services/space-lighting-state.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-lighting-tool.service.d.ts +4 -4
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-lighting-tool.service.js +8 -7
- package/dist/plugins/spaces-home-control/services/space-lighting-tool.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-media-activity-binding.service.d.ts +2 -2
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-media-activity-binding.service.js +31 -30
- package/dist/plugins/spaces-home-control/services/space-media-activity-binding.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-media-activity.service.d.ts +3 -3
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-media-activity.service.js +38 -37
- package/dist/plugins/spaces-home-control/services/space-media-activity.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-sensor-role.service.d.ts +4 -4
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-sensor-role.service.js +24 -23
- package/dist/plugins/spaces-home-control/services/space-sensor-role.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-sensor-state.service.d.ts +3 -3
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-sensor-state.service.js +19 -18
- package/dist/plugins/spaces-home-control/services/space-sensor-state.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-suggestion-heartbeat.service.d.ts +2 -2
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-suggestion-heartbeat.service.js +10 -9
- package/dist/plugins/spaces-home-control/services/space-suggestion-heartbeat.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-suggestion.service.d.ts +4 -3
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-suggestion.service.js +8 -7
- package/dist/plugins/spaces-home-control/services/space-suggestion.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-undo-history.service.d.ts +3 -3
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-undo-history.service.js +5 -5
- package/dist/plugins/spaces-home-control/services/space-undo-history.service.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/spaces-seeder.service.d.ts +2 -2
- package/dist/{modules/spaces → plugins/spaces-home-control}/services/spaces-seeder.service.js +5 -5
- package/dist/plugins/spaces-home-control/services/spaces-seeder.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/spaces-home-control.constants.d.ts +297 -0
- package/dist/plugins/spaces-home-control/spaces-home-control.constants.js +1460 -0
- package/dist/plugins/spaces-home-control/spaces-home-control.constants.js.map +1 -0
- package/dist/plugins/spaces-home-control/spaces-home-control.openapi.d.ts +2 -0
- package/dist/plugins/spaces-home-control/spaces-home-control.openapi.js +155 -0
- package/dist/plugins/spaces-home-control/spaces-home-control.openapi.js.map +1 -0
- package/dist/plugins/spaces-home-control/spaces-home-control.plugin.d.ts +29 -0
- package/dist/plugins/spaces-home-control/spaces-home-control.plugin.js +334 -0
- package/dist/plugins/spaces-home-control/spaces-home-control.plugin.js.map +1 -0
- package/dist/plugins/spaces-home-control/spec/index.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/spec/intent-spec-loader.service.d.ts +1 -1
- package/dist/{modules/spaces → plugins/spaces-home-control}/spec/intent-spec-loader.service.js +1 -1
- package/dist/plugins/spaces-home-control/spec/intent-spec-loader.service.js.map +1 -0
- package/dist/plugins/spaces-home-control/spec/intent-spec.types.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/validators/at-least-one-setpoint.validator.js +2 -2
- package/dist/plugins/spaces-home-control/validators/at-least-one-setpoint.validator.js.map +1 -0
- package/dist/plugins/spaces-home-control/validators/setpoint-order-constraint.validator.js.map +1 -0
- package/dist/{modules/spaces → plugins/spaces-home-control}/validators/space-category-constraint.validator.js +1 -1
- package/dist/plugins/spaces-home-control/validators/space-category-constraint.validator.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/controllers/signage-announcements.controller.d.ts +18 -0
- package/dist/plugins/spaces-signage-info-panel/controllers/signage-announcements.controller.js +219 -0
- package/dist/plugins/spaces-signage-info-panel/controllers/signage-announcements.controller.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/dto/create-announcement.dto.d.ts +13 -0
- package/dist/plugins/spaces-signage-info-panel/dto/create-announcement.dto.js +143 -0
- package/dist/plugins/spaces-signage-info-panel/dto/create-announcement.dto.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/dto/create-signage-info-panel-space.dto.d.ts +13 -0
- package/dist/plugins/spaces-signage-info-panel/dto/create-signage-info-panel-space.dto.js +130 -0
- package/dist/plugins/spaces-signage-info-panel/dto/create-signage-info-panel-space.dto.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/dto/reorder-announcements.dto.d.ts +10 -0
- package/dist/plugins/spaces-signage-info-panel/dto/reorder-announcements.dto.js +78 -0
- package/dist/plugins/spaces-signage-info-panel/dto/reorder-announcements.dto.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/dto/update-announcement.dto.d.ts +12 -0
- package/dist/plugins/spaces-signage-info-panel/dto/update-announcement.dto.js +134 -0
- package/dist/plugins/spaces-signage-info-panel/dto/update-announcement.dto.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/dto/update-config.dto.d.ts +5 -0
- package/dist/plugins/spaces-signage-info-panel/dto/update-config.dto.js +34 -0
- package/dist/plugins/spaces-signage-info-panel/dto/update-config.dto.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/dto/update-signage-info-panel-space.dto.d.ts +13 -0
- package/dist/plugins/spaces-signage-info-panel/dto/update-signage-info-panel-space.dto.js +130 -0
- package/dist/plugins/spaces-signage-info-panel/dto/update-signage-info-panel-space.dto.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/entities/signage-announcement.entity.d.ts +13 -0
- package/dist/plugins/spaces-signage-info-panel/entities/signage-announcement.entity.js +161 -0
- package/dist/plugins/spaces-signage-info-panel/entities/signage-announcement.entity.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/entities/signage-info-panel-space.entity.d.ts +13 -0
- package/dist/plugins/spaces-signage-info-panel/entities/signage-info-panel-space.entity.js +147 -0
- package/dist/plugins/spaces-signage-info-panel/entities/signage-info-panel-space.entity.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/models/config.model.d.ts +5 -0
- package/dist/plugins/spaces-signage-info-panel/models/config.model.js +49 -0
- package/dist/plugins/spaces-signage-info-panel/models/config.model.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/models/signage-announcement-response.model.d.ts +8 -0
- package/dist/plugins/spaces-signage-info-panel/models/signage-announcement-response.model.js +46 -0
- package/dist/plugins/spaces-signage-info-panel/models/signage-announcement-response.model.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/services/signage-announcements.service.d.ts +28 -0
- package/dist/plugins/spaces-signage-info-panel/services/signage-announcements.service.js +181 -0
- package/dist/plugins/spaces-signage-info-panel/services/signage-announcements.service.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/services/signage-home-page.resolver.d.ts +4 -0
- package/dist/plugins/spaces-signage-info-panel/services/signage-home-page.resolver.js +20 -0
- package/dist/plugins/spaces-signage-info-panel/services/signage-home-page.resolver.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/services/signage-info-panel-reset.service.d.ts +14 -0
- package/dist/plugins/spaces-signage-info-panel/services/signage-info-panel-reset.service.js +59 -0
- package/dist/plugins/spaces-signage-info-panel/services/signage-info-panel-reset.service.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.constants.d.ts +17 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.constants.js +23 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.constants.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.exceptions.d.ts +9 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.exceptions.js +25 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.exceptions.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.openapi.d.ts +2 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.openapi.js +31 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.openapi.js.map +1 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.plugin.d.ts +23 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.plugin.js +159 -0
- package/dist/plugins/spaces-signage-info-panel/spaces-signage-info-panel.plugin.js.map +1 -0
- package/dist/plugins/spaces-synthetic-entry/dto/create-entry-space.dto.d.ts +5 -0
- package/dist/plugins/spaces-synthetic-entry/dto/create-entry-space.dto.js +31 -0
- package/dist/plugins/spaces-synthetic-entry/dto/create-entry-space.dto.js.map +1 -0
- package/dist/plugins/spaces-synthetic-entry/dto/update-config.dto.d.ts +5 -0
- package/dist/plugins/spaces-synthetic-entry/dto/update-config.dto.js +34 -0
- package/dist/plugins/spaces-synthetic-entry/dto/update-config.dto.js.map +1 -0
- package/dist/plugins/spaces-synthetic-entry/dto/update-entry-space.dto.d.ts +5 -0
- package/dist/plugins/spaces-synthetic-entry/dto/update-entry-space.dto.js +31 -0
- package/dist/plugins/spaces-synthetic-entry/dto/update-entry-space.dto.js.map +1 -0
- package/dist/plugins/spaces-synthetic-entry/entities/entry-space.entity.d.ts +5 -0
- package/dist/plugins/spaces-synthetic-entry/entities/entry-space.entity.js +39 -0
- package/dist/plugins/spaces-synthetic-entry/entities/entry-space.entity.js.map +1 -0
- package/dist/plugins/spaces-synthetic-entry/models/config.model.d.ts +5 -0
- package/dist/plugins/spaces-synthetic-entry/models/config.model.js +49 -0
- package/dist/plugins/spaces-synthetic-entry/models/config.model.js.map +1 -0
- package/dist/plugins/spaces-synthetic-entry/spaces-synthetic-entry.constants.d.ts +7 -0
- package/dist/plugins/spaces-synthetic-entry/spaces-synthetic-entry.constants.js +11 -0
- package/dist/plugins/spaces-synthetic-entry/spaces-synthetic-entry.constants.js.map +1 -0
- package/dist/plugins/spaces-synthetic-entry/spaces-synthetic-entry.openapi.d.ts +2 -0
- package/dist/plugins/spaces-synthetic-entry/spaces-synthetic-entry.openapi.js +16 -0
- package/dist/plugins/spaces-synthetic-entry/spaces-synthetic-entry.openapi.js.map +1 -0
- package/dist/plugins/spaces-synthetic-entry/spaces-synthetic-entry.plugin.d.ts +15 -0
- package/dist/plugins/spaces-synthetic-entry/spaces-synthetic-entry.plugin.js +124 -0
- package/dist/plugins/spaces-synthetic-entry/spaces-synthetic-entry.plugin.js.map +1 -0
- package/dist/plugins/spaces-synthetic-master/dto/create-master-space.dto.d.ts +5 -0
- package/dist/plugins/spaces-synthetic-master/dto/create-master-space.dto.js +31 -0
- package/dist/plugins/spaces-synthetic-master/dto/create-master-space.dto.js.map +1 -0
- package/dist/plugins/spaces-synthetic-master/dto/update-config.dto.d.ts +5 -0
- package/dist/plugins/spaces-synthetic-master/dto/update-config.dto.js +34 -0
- package/dist/plugins/spaces-synthetic-master/dto/update-config.dto.js.map +1 -0
- package/dist/plugins/spaces-synthetic-master/dto/update-master-space.dto.d.ts +5 -0
- package/dist/plugins/spaces-synthetic-master/dto/update-master-space.dto.js +31 -0
- package/dist/plugins/spaces-synthetic-master/dto/update-master-space.dto.js.map +1 -0
- package/dist/plugins/spaces-synthetic-master/entities/master-space.entity.d.ts +5 -0
- package/dist/plugins/spaces-synthetic-master/entities/master-space.entity.js +39 -0
- package/dist/plugins/spaces-synthetic-master/entities/master-space.entity.js.map +1 -0
- package/dist/plugins/spaces-synthetic-master/models/config.model.d.ts +5 -0
- package/dist/plugins/spaces-synthetic-master/models/config.model.js +49 -0
- package/dist/plugins/spaces-synthetic-master/models/config.model.js.map +1 -0
- package/dist/plugins/spaces-synthetic-master/spaces-synthetic-master.constants.d.ts +7 -0
- package/dist/plugins/spaces-synthetic-master/spaces-synthetic-master.constants.js +11 -0
- package/dist/plugins/spaces-synthetic-master/spaces-synthetic-master.constants.js.map +1 -0
- package/dist/plugins/spaces-synthetic-master/spaces-synthetic-master.openapi.d.ts +2 -0
- package/dist/plugins/spaces-synthetic-master/spaces-synthetic-master.openapi.js +16 -0
- package/dist/plugins/spaces-synthetic-master/spaces-synthetic-master.openapi.js.map +1 -0
- package/dist/plugins/spaces-synthetic-master/spaces-synthetic-master.plugin.d.ts +15 -0
- package/dist/plugins/spaces-synthetic-master/spaces-synthetic-master.plugin.js +124 -0
- package/dist/plugins/spaces-synthetic-master/spaces-synthetic-master.plugin.js.map +1 -0
- package/dist/plugins/tiles-device-preview/tiles-device-preview.plugin.js +16 -22
- package/dist/plugins/tiles-device-preview/tiles-device-preview.plugin.js.map +1 -1
- package/dist/plugins/tiles-scene/tiles-scene.plugin.js +15 -21
- package/dist/plugins/tiles-scene/tiles-scene.plugin.js.map +1 -1
- package/dist/plugins/tiles-time/tiles-time.plugin.js +13 -19
- package/dist/plugins/tiles-time/tiles-time.plugin.js.map +1 -1
- package/dist/plugins/tiles-weather/tiles-weather.plugin.js +16 -19
- package/dist/plugins/tiles-weather/tiles-weather.plugin.js.map +1 -1
- package/dist/plugins/weather-open-meteo/weather-open-meteo.plugin.js +32 -21
- package/dist/plugins/weather-open-meteo/weather-open-meteo.plugin.js.map +1 -1
- package/dist/plugins/weather-openweathermap/weather-openweathermap.plugin.js +22 -23
- package/dist/plugins/weather-openweathermap/weather-openweathermap.plugin.js.map +1 -1
- package/dist/plugins/weather-openweathermap-onecall/weather-openweathermap-onecall.plugin.js +27 -23
- package/dist/plugins/weather-openweathermap-onecall/weather-openweathermap-onecall.plugin.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +10 -6
- package/dist/modules/spaces/dto/climate-intent.dto.js.map +0 -1
- package/dist/modules/spaces/dto/climate-role.dto.js.map +0 -1
- package/dist/modules/spaces/dto/covers-intent.dto.js.map +0 -1
- package/dist/modules/spaces/dto/covers-role.dto.js.map +0 -1
- package/dist/modules/spaces/dto/lighting-intent.dto.js.map +0 -1
- package/dist/modules/spaces/dto/lighting-role.dto.js.map +0 -1
- package/dist/modules/spaces/dto/media-activity-binding.dto.js.map +0 -1
- package/dist/modules/spaces/dto/sensor-role.dto.js.map +0 -1
- package/dist/modules/spaces/dto/status-widget.dto.js.map +0 -1
- package/dist/modules/spaces/dto/suggestion.dto.js.map +0 -1
- package/dist/modules/spaces/entities/space-active-media-activity.entity.d.ts +0 -12
- package/dist/modules/spaces/entities/space-active-media-activity.entity.js.map +0 -1
- package/dist/modules/spaces/entities/space-climate-role.entity.d.ts +0 -14
- package/dist/modules/spaces/entities/space-climate-role.entity.js.map +0 -1
- package/dist/modules/spaces/entities/space-covers-role.entity.d.ts +0 -14
- package/dist/modules/spaces/entities/space-covers-role.entity.js.map +0 -1
- package/dist/modules/spaces/entities/space-lighting-role.entity.d.ts +0 -14
- package/dist/modules/spaces/entities/space-lighting-role.entity.js.map +0 -1
- package/dist/modules/spaces/entities/space-media-activity-binding.entity.d.ts +0 -16
- package/dist/modules/spaces/entities/space-media-activity-binding.entity.js.map +0 -1
- package/dist/modules/spaces/entities/space-sensor-role.entity.d.ts +0 -14
- package/dist/modules/spaces/entities/space-sensor-role.entity.js.map +0 -1
- package/dist/modules/spaces/listeners/space-activity.listener.js.map +0 -1
- package/dist/modules/spaces/listeners/space-climate-state.listener.js.map +0 -1
- package/dist/modules/spaces/listeners/space-lighting-state.listener.js.map +0 -1
- package/dist/modules/spaces/listeners/space-sensor-state.listener.js.map +0 -1
- package/dist/modules/spaces/listeners/websocket-exchange.listener.js.map +0 -1
- package/dist/modules/spaces/models/derived-media-endpoint.model.js.map +0 -1
- package/dist/modules/spaces/models/media-activity-binding.model.js.map +0 -1
- package/dist/modules/spaces/models/media-activity.model.js.map +0 -1
- package/dist/modules/spaces/models/media-routing.model.js.map +0 -1
- package/dist/modules/spaces/services/__fixtures__/media-scenario-templates.js.map +0 -1
- package/dist/modules/spaces/services/__fixtures__/media-test-harness.js.map +0 -1
- package/dist/modules/spaces/services/climate-intent.service.js.map +0 -1
- package/dist/modules/spaces/services/covers-intent.service.js.map +0 -1
- package/dist/modules/spaces/services/derived-media-endpoint.service.js.map +0 -1
- package/dist/modules/spaces/services/lighting-intent.service.js.map +0 -1
- package/dist/modules/spaces/services/media-capability.service.js.map +0 -1
- package/dist/modules/spaces/services/space-climate-role.service.js.map +0 -1
- package/dist/modules/spaces/services/space-climate-state.service.js.map +0 -1
- package/dist/modules/spaces/services/space-context-snapshot.service.js.map +0 -1
- package/dist/modules/spaces/services/space-covers-role.service.js.map +0 -1
- package/dist/modules/spaces/services/space-covers-state.service.js.map +0 -1
- package/dist/modules/spaces/services/space-intent-base.service.js.map +0 -1
- package/dist/modules/spaces/services/space-intent.service.js.map +0 -1
- package/dist/modules/spaces/services/space-lighting-role.service.js.map +0 -1
- package/dist/modules/spaces/services/space-lighting-state.service.js.map +0 -1
- package/dist/modules/spaces/services/space-lighting-tool.service.js.map +0 -1
- package/dist/modules/spaces/services/space-media-activity-binding.service.js.map +0 -1
- package/dist/modules/spaces/services/space-media-activity.service.js.map +0 -1
- package/dist/modules/spaces/services/space-sensor-role.service.js.map +0 -1
- package/dist/modules/spaces/services/space-sensor-state.service.js.map +0 -1
- package/dist/modules/spaces/services/space-suggestion-heartbeat.service.js.map +0 -1
- package/dist/modules/spaces/services/space-suggestion.service.js.map +0 -1
- package/dist/modules/spaces/services/space-undo-history.service.js.map +0 -1
- package/dist/modules/spaces/services/spaces-seeder.service.js.map +0 -1
- package/dist/modules/spaces/spec/definitions/climate-intents.yaml +0 -94
- package/dist/modules/spaces/spec/definitions/covers-modes.yaml +0 -83
- package/dist/modules/spaces/spec/definitions/enums.yaml +0 -119
- package/dist/modules/spaces/spec/definitions/lighting-intents.yaml +0 -181
- package/dist/modules/spaces/spec/definitions/lighting-modes.yaml +0 -119
- package/dist/modules/spaces/spec/definitions/suggestions.yaml +0 -47
- package/dist/modules/spaces/spec/index.js.map +0 -1
- package/dist/modules/spaces/spec/intent-spec-loader.service.js.map +0 -1
- package/dist/modules/spaces/spec/intent-spec.types.js.map +0 -1
- package/dist/modules/spaces/validators/at-least-one-setpoint.validator.js.map +0 -1
- package/dist/modules/spaces/validators/setpoint-order-constraint.validator.js.map +0 -1
- package/dist/modules/spaces/validators/space-category-constraint.validator.js.map +0 -1
- package/dist/modules/storage/plugins/influx-v1/influx-v1.config.model.js.map +0 -1
- package/dist/modules/storage/plugins/influx-v1/influx-v1.constants.js.map +0 -1
- package/dist/modules/storage/plugins/influx-v1/influx-v1.module.d.ts +0 -17
- package/dist/modules/storage/plugins/influx-v1/influx-v1.module.js +0 -94
- package/dist/modules/storage/plugins/influx-v1/influx-v1.module.js.map +0 -1
- package/dist/modules/storage/plugins/influx-v1/influx-v1.openapi.js +0 -7
- package/dist/modules/storage/plugins/influx-v1/influx-v1.openapi.js.map +0 -1
- package/dist/modules/storage/plugins/influx-v1/influx-v1.plugin.js.map +0 -1
- package/dist/modules/storage/plugins/influx-v1/influx-v1.update-config.dto.js.map +0 -1
- package/dist/modules/storage/plugins/memory/in-memory-timeseries.store.js.map +0 -1
- package/dist/modules/storage/plugins/memory/influxql-parser.js.map +0 -1
- package/dist/modules/storage/plugins/memory/memory.config.model.js.map +0 -1
- package/dist/modules/storage/plugins/memory/memory.constants.js.map +0 -1
- package/dist/modules/storage/plugins/memory/memory.module.d.ts +0 -13
- package/dist/modules/storage/plugins/memory/memory.module.js +0 -75
- package/dist/modules/storage/plugins/memory/memory.module.js.map +0 -1
- package/dist/modules/storage/plugins/memory/memory.openapi.js +0 -7
- package/dist/modules/storage/plugins/memory/memory.openapi.js.map +0 -1
- package/dist/modules/storage/plugins/memory/memory.plugin.js.map +0 -1
- package/dist/modules/storage/plugins/memory/memory.update-config.dto.js.map +0 -1
- /package/dist/{modules/storage/plugins → plugins}/influx-v1/influx-v1.constants.d.ts +0 -0
- /package/dist/{modules/storage/plugins → plugins}/influx-v1/influx-v1.constants.js +0 -0
- /package/dist/{modules/storage/plugins/memory/memory.constants.d.ts → plugins/memory-storage/memory-storage.constants.d.ts} +0 -0
- /package/dist/{modules/storage/plugins/memory → plugins/memory-storage/services}/influxql-parser.d.ts +0 -0
- /package/dist/{modules/storage/plugins/memory → plugins/memory-storage/services}/influxql-parser.js +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/dto/status-widget.dto.d.ts +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/dto/status-widget.dto.js +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/services/__fixtures__/media-test-harness.js +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-intent-base.service.js +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-intent.service.d.ts +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/services/space-intent.service.js +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/spec/index.d.ts +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/spec/index.js +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/spec/intent-spec.types.d.ts +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/spec/intent-spec.types.js +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/validators/at-least-one-setpoint.validator.d.ts +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/validators/setpoint-order-constraint.validator.d.ts +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/validators/setpoint-order-constraint.validator.js +0 -0
- /package/dist/{modules/spaces → plugins/spaces-home-control}/validators/space-category-constraint.validator.d.ts +0 -0
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.Zigbee2mqttWizardController = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
18
|
+
const logger_1 = require("../../../common/logger");
|
|
19
|
+
const api_documentation_decorator_1 = require("../../../modules/swagger/decorators/api-documentation.decorator");
|
|
20
|
+
const devices_zigbee2mqtt_constants_1 = require("../devices-zigbee2mqtt.constants");
|
|
21
|
+
const wizard_adopt_dto_1 = require("../dto/wizard-adopt.dto");
|
|
22
|
+
const zigbee2mqtt_response_model_1 = require("../models/zigbee2mqtt-response.model");
|
|
23
|
+
const wizard_service_1 = require("../services/wizard.service");
|
|
24
|
+
let Zigbee2mqttWizardController = class Zigbee2mqttWizardController {
|
|
25
|
+
constructor(wizardService) {
|
|
26
|
+
this.wizardService = wizardService;
|
|
27
|
+
this.logger = (0, logger_1.createExtensionLogger)(devices_zigbee2mqtt_constants_1.DEVICES_ZIGBEE2MQTT_PLUGIN_NAME, 'WizardController');
|
|
28
|
+
}
|
|
29
|
+
async startSession() {
|
|
30
|
+
this.logger.debug('Starting Zigbee2MQTT wizard session');
|
|
31
|
+
const response = new zigbee2mqtt_response_model_1.Z2mWizardSessionResponseModel();
|
|
32
|
+
response.data = await this.wizardService.start();
|
|
33
|
+
return response;
|
|
34
|
+
}
|
|
35
|
+
getSession(id) {
|
|
36
|
+
const session = this.wizardService.get(id);
|
|
37
|
+
if (!session) {
|
|
38
|
+
throw new common_1.NotFoundException('Wizard session could not be found');
|
|
39
|
+
}
|
|
40
|
+
const response = new zigbee2mqtt_response_model_1.Z2mWizardSessionResponseModel();
|
|
41
|
+
response.data = session;
|
|
42
|
+
return response;
|
|
43
|
+
}
|
|
44
|
+
async endSession(id) {
|
|
45
|
+
this.logger.debug(`Ending Zigbee2MQTT wizard session id=${id}`);
|
|
46
|
+
await this.wizardService.end(id);
|
|
47
|
+
}
|
|
48
|
+
async enablePermitJoin(id) {
|
|
49
|
+
const session = await this.wizardService.enablePermitJoin(id);
|
|
50
|
+
if (!session) {
|
|
51
|
+
throw new common_1.NotFoundException('Wizard session could not be found');
|
|
52
|
+
}
|
|
53
|
+
const response = new zigbee2mqtt_response_model_1.Z2mWizardSessionResponseModel();
|
|
54
|
+
response.data = session;
|
|
55
|
+
return response;
|
|
56
|
+
}
|
|
57
|
+
async disablePermitJoin(id) {
|
|
58
|
+
const session = await this.wizardService.disablePermitJoin(id);
|
|
59
|
+
if (!session) {
|
|
60
|
+
throw new common_1.NotFoundException('Wizard session could not be found');
|
|
61
|
+
}
|
|
62
|
+
const response = new zigbee2mqtt_response_model_1.Z2mWizardSessionResponseModel();
|
|
63
|
+
response.data = session;
|
|
64
|
+
return response;
|
|
65
|
+
}
|
|
66
|
+
async adopt(id, body) {
|
|
67
|
+
this.logger.debug(`Adopting Zigbee2MQTT wizard devices session=${id} count=${body.data.devices.length}`);
|
|
68
|
+
const results = await this.wizardService.adopt(id, body.data.devices);
|
|
69
|
+
if (results === null) {
|
|
70
|
+
throw new common_1.NotFoundException('Wizard session could not be found');
|
|
71
|
+
}
|
|
72
|
+
const response = new zigbee2mqtt_response_model_1.Z2mWizardAdoptionResponseModel();
|
|
73
|
+
response.data = { results };
|
|
74
|
+
return response;
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
exports.Zigbee2mqttWizardController = Zigbee2mqttWizardController;
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, swagger_1.ApiOperation)({
|
|
80
|
+
tags: [devices_zigbee2mqtt_constants_1.DEVICES_ZIGBEE2MQTT_API_TAG_NAME],
|
|
81
|
+
summary: 'Start Zigbee2MQTT adoption wizard session',
|
|
82
|
+
description: 'Creates a wizard session, returning the list of currently unadopted Zigbee devices with mapping previews.',
|
|
83
|
+
operationId: 'create-devices-zigbee2mqtt-plugin-wizard',
|
|
84
|
+
}),
|
|
85
|
+
(0, api_documentation_decorator_1.ApiCreatedSuccessResponse)(zigbee2mqtt_response_model_1.Z2mWizardSessionResponseModel, 'Wizard session was started successfully'),
|
|
86
|
+
(0, api_documentation_decorator_1.ApiInternalServerErrorResponse)('Internal server error'),
|
|
87
|
+
(0, common_1.Post)(),
|
|
88
|
+
__metadata("design:type", Function),
|
|
89
|
+
__metadata("design:paramtypes", []),
|
|
90
|
+
__metadata("design:returntype", Promise)
|
|
91
|
+
], Zigbee2mqttWizardController.prototype, "startSession", null);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, swagger_1.ApiOperation)({
|
|
94
|
+
tags: [devices_zigbee2mqtt_constants_1.DEVICES_ZIGBEE2MQTT_API_TAG_NAME],
|
|
95
|
+
summary: 'Get Zigbee2MQTT wizard session state',
|
|
96
|
+
description: 'Returns the current state of the wizard session, including any newly-paired devices that arrived since the last poll and remaining permit_join time.',
|
|
97
|
+
operationId: 'get-devices-zigbee2mqtt-plugin-wizard',
|
|
98
|
+
}),
|
|
99
|
+
(0, swagger_1.ApiParam)({ name: 'id', type: 'string' }),
|
|
100
|
+
(0, api_documentation_decorator_1.ApiSuccessResponse)(zigbee2mqtt_response_model_1.Z2mWizardSessionResponseModel, 'Wizard session was successfully retrieved.'),
|
|
101
|
+
(0, api_documentation_decorator_1.ApiNotFoundResponse)('Wizard session could not be found'),
|
|
102
|
+
(0, api_documentation_decorator_1.ApiInternalServerErrorResponse)('Internal server error'),
|
|
103
|
+
(0, common_1.Get)(':id'),
|
|
104
|
+
__param(0, (0, common_1.Param)('id')),
|
|
105
|
+
__metadata("design:type", Function),
|
|
106
|
+
__metadata("design:paramtypes", [String]),
|
|
107
|
+
__metadata("design:returntype", zigbee2mqtt_response_model_1.Z2mWizardSessionResponseModel)
|
|
108
|
+
], Zigbee2mqttWizardController.prototype, "getSession", null);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, swagger_1.ApiOperation)({
|
|
111
|
+
tags: [devices_zigbee2mqtt_constants_1.DEVICES_ZIGBEE2MQTT_API_TAG_NAME],
|
|
112
|
+
summary: 'End Zigbee2MQTT wizard session',
|
|
113
|
+
description: 'Terminates the wizard session. If permit_join is active for this session it is disabled.',
|
|
114
|
+
operationId: 'delete-devices-zigbee2mqtt-plugin-wizard',
|
|
115
|
+
}),
|
|
116
|
+
(0, swagger_1.ApiParam)({ name: 'id', type: 'string' }),
|
|
117
|
+
(0, swagger_1.ApiNoContentResponse)({ description: 'Wizard session ended' }),
|
|
118
|
+
(0, api_documentation_decorator_1.ApiInternalServerErrorResponse)('Internal server error'),
|
|
119
|
+
(0, common_1.Delete)(':id'),
|
|
120
|
+
(0, common_1.HttpCode)(204),
|
|
121
|
+
__param(0, (0, common_1.Param)('id')),
|
|
122
|
+
__metadata("design:type", Function),
|
|
123
|
+
__metadata("design:paramtypes", [String]),
|
|
124
|
+
__metadata("design:returntype", Promise)
|
|
125
|
+
], Zigbee2mqttWizardController.prototype, "endSession", null);
|
|
126
|
+
__decorate([
|
|
127
|
+
(0, swagger_1.ApiOperation)({
|
|
128
|
+
tags: [devices_zigbee2mqtt_constants_1.DEVICES_ZIGBEE2MQTT_API_TAG_NAME],
|
|
129
|
+
summary: 'Enable Zigbee2MQTT pairing mode (permit_join)',
|
|
130
|
+
description: 'Enables permit_join on the bridge for 254 seconds, scoped to this wizard session.',
|
|
131
|
+
operationId: 'enable-devices-zigbee2mqtt-plugin-wizard-permit-join',
|
|
132
|
+
}),
|
|
133
|
+
(0, swagger_1.ApiParam)({ name: 'id', type: 'string' }),
|
|
134
|
+
(0, api_documentation_decorator_1.ApiSuccessResponse)(zigbee2mqtt_response_model_1.Z2mWizardSessionResponseModel, 'Pairing mode enabled'),
|
|
135
|
+
(0, api_documentation_decorator_1.ApiNotFoundResponse)('Wizard session could not be found'),
|
|
136
|
+
(0, api_documentation_decorator_1.ApiInternalServerErrorResponse)('Internal server error'),
|
|
137
|
+
(0, common_1.Post)(':id/permit-join'),
|
|
138
|
+
__param(0, (0, common_1.Param)('id')),
|
|
139
|
+
__metadata("design:type", Function),
|
|
140
|
+
__metadata("design:paramtypes", [String]),
|
|
141
|
+
__metadata("design:returntype", Promise)
|
|
142
|
+
], Zigbee2mqttWizardController.prototype, "enablePermitJoin", null);
|
|
143
|
+
__decorate([
|
|
144
|
+
(0, swagger_1.ApiOperation)({
|
|
145
|
+
tags: [devices_zigbee2mqtt_constants_1.DEVICES_ZIGBEE2MQTT_API_TAG_NAME],
|
|
146
|
+
summary: 'Disable Zigbee2MQTT pairing mode (permit_join)',
|
|
147
|
+
description: 'Disables permit_join on the bridge.',
|
|
148
|
+
operationId: 'disable-devices-zigbee2mqtt-plugin-wizard-permit-join',
|
|
149
|
+
}),
|
|
150
|
+
(0, swagger_1.ApiParam)({ name: 'id', type: 'string' }),
|
|
151
|
+
(0, api_documentation_decorator_1.ApiSuccessResponse)(zigbee2mqtt_response_model_1.Z2mWizardSessionResponseModel, 'Pairing mode disabled'),
|
|
152
|
+
(0, api_documentation_decorator_1.ApiNotFoundResponse)('Wizard session could not be found'),
|
|
153
|
+
(0, api_documentation_decorator_1.ApiInternalServerErrorResponse)('Internal server error'),
|
|
154
|
+
(0, common_1.Delete)(':id/permit-join'),
|
|
155
|
+
__param(0, (0, common_1.Param)('id')),
|
|
156
|
+
__metadata("design:type", Function),
|
|
157
|
+
__metadata("design:paramtypes", [String]),
|
|
158
|
+
__metadata("design:returntype", Promise)
|
|
159
|
+
], Zigbee2mqttWizardController.prototype, "disablePermitJoin", null);
|
|
160
|
+
__decorate([
|
|
161
|
+
(0, swagger_1.ApiOperation)({
|
|
162
|
+
tags: [devices_zigbee2mqtt_constants_1.DEVICES_ZIGBEE2MQTT_API_TAG_NAME],
|
|
163
|
+
summary: 'Adopt selected devices from wizard',
|
|
164
|
+
description: 'Adopts each requested device with the supplied display name and category. Devices already adopted in another flow are updated instead of created.',
|
|
165
|
+
operationId: 'adopt-devices-zigbee2mqtt-plugin-wizard',
|
|
166
|
+
}),
|
|
167
|
+
(0, swagger_1.ApiParam)({ name: 'id', type: 'string' }),
|
|
168
|
+
(0, swagger_1.ApiBody)({ type: wizard_adopt_dto_1.ReqZ2mWizardAdoptDto }),
|
|
169
|
+
(0, api_documentation_decorator_1.ApiSuccessResponse)(zigbee2mqtt_response_model_1.Z2mWizardAdoptionResponseModel, 'Adoption results returned'),
|
|
170
|
+
(0, api_documentation_decorator_1.ApiBadRequestResponse)('Invalid request data'),
|
|
171
|
+
(0, api_documentation_decorator_1.ApiNotFoundResponse)('Wizard session could not be found'),
|
|
172
|
+
(0, api_documentation_decorator_1.ApiInternalServerErrorResponse)('Internal server error'),
|
|
173
|
+
(0, common_1.Post)(':id/adopt'),
|
|
174
|
+
__param(0, (0, common_1.Param)('id')),
|
|
175
|
+
__param(1, (0, common_1.Body)()),
|
|
176
|
+
__metadata("design:type", Function),
|
|
177
|
+
__metadata("design:paramtypes", [String, wizard_adopt_dto_1.ReqZ2mWizardAdoptDto]),
|
|
178
|
+
__metadata("design:returntype", Promise)
|
|
179
|
+
], Zigbee2mqttWizardController.prototype, "adopt", null);
|
|
180
|
+
exports.Zigbee2mqttWizardController = Zigbee2mqttWizardController = __decorate([
|
|
181
|
+
(0, swagger_1.ApiTags)(devices_zigbee2mqtt_constants_1.DEVICES_ZIGBEE2MQTT_API_TAG_NAME),
|
|
182
|
+
(0, common_1.Controller)('wizard'),
|
|
183
|
+
__metadata("design:paramtypes", [wizard_service_1.Z2mWizardService])
|
|
184
|
+
], Zigbee2mqttWizardController);
|
|
185
|
+
//# sourceMappingURL=zigbee2mqtt-wizard.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zigbee2mqtt-wizard.controller.js","sourceRoot":"","sources":["../../../../src/plugins/devices-zigbee2mqtt/controllers/zigbee2mqtt-wizard.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAyG;AACzG,6CAAiG;AAEjG,mDAAuF;AACvF,iHAMyE;AACzE,oFAAqH;AACrH,8DAA+D;AAC/D,qFAAqH;AACrH,+DAA8D;AAIvD,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IAMvC,YAA6B,aAA+B;QAA/B,kBAAa,GAAb,aAAa,CAAkB;QAL3C,WAAM,GAA2B,IAAA,8BAAqB,EACtE,+DAA+B,EAC/B,kBAAkB,CAClB,CAAC;IAE6D,CAAC;IAY1D,AAAN,KAAK,CAAC,YAAY;QACjB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,qCAAqC,CAAC,CAAC;QAEzD,MAAM,QAAQ,GAAG,IAAI,0DAA6B,EAAE,CAAC;QACrD,QAAQ,CAAC,IAAI,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC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,12 @@
|
|
|
1
1
|
import { CreateZigbee2mqttChannelDto } from './dto/create-channel.dto';
|
|
2
|
-
import { AdoptChannelDefinitionDto,
|
|
2
|
+
import { AdoptChannelDefinitionDto, AdoptPropertyDefinitionDto, MappingExposeOverrideDto, MappingPreviewRequestDto } from './dto/mapping-preview.dto';
|
|
3
3
|
import { UpdateZigbee2mqttChannelPropertyDto } from './dto/update-channel-property.dto';
|
|
4
4
|
import { UpdateZigbee2mqttChannelDto } from './dto/update-channel.dto';
|
|
5
5
|
import { Z2mUpdateDiscoveryDto, Z2mUpdateMqttDto, Z2mUpdateTlsDto, Z2mUpdateWsDto, Zigbee2mqttUpdatePluginConfigDto } from './dto/update-config.dto';
|
|
6
6
|
import { UpdateZigbee2mqttDeviceDto } from './dto/update-device.dto';
|
|
7
|
+
import { ReqZ2mWizardAdoptDto, Z2mWizardAdoptDeviceDto, Z2mWizardAdoptDto } from './dto/wizard-adopt.dto';
|
|
7
8
|
import { Zigbee2mqttChannelEntity, Zigbee2mqttChannelPropertyEntity, Zigbee2mqttDeviceEntity } from './entities/devices-zigbee2mqtt.entity';
|
|
8
9
|
import { Zigbee2mqttConfigModel } from './models/config.model';
|
|
9
|
-
import {
|
|
10
|
-
|
|
10
|
+
import { Z2mWizardAdoptionModel, Z2mWizardAdoptionResultModel, Z2mWizardPermitJoinModel, Z2mWizardSessionModel } from './models/wizard.model';
|
|
11
|
+
import { Z2mDeviceInfoModel, Z2mExposeInfoModel, Z2mExposeMappingPreviewModel, Z2mMappingPreviewModel, Z2mMappingPreviewResponseModel, Z2mMappingWarningModel, Z2mPropertyMappingPreviewModel, Z2mSuggestedChannelModel, Z2mSuggestedDeviceModel, Z2mWizardAdoptionResponseModel, Z2mWizardSessionResponseModel, Zigbee2mqttDiscoveredDeviceModel, Zigbee2mqttDiscoveredDeviceResponseModel, Zigbee2mqttDiscoveredDevicesResponseModel } from './models/zigbee2mqtt-response.model';
|
|
12
|
+
export declare const DEVICES_ZIGBEE2MQTT_PLUGIN_SWAGGER_EXTRA_MODELS: (typeof MappingExposeOverrideDto | typeof MappingPreviewRequestDto | typeof AdoptPropertyDefinitionDto | typeof AdoptChannelDefinitionDto | typeof Zigbee2mqttDeviceEntity | typeof Zigbee2mqttChannelEntity | typeof Zigbee2mqttChannelPropertyEntity | typeof Z2mWizardPermitJoinModel | typeof Z2mWizardSessionModel | typeof Z2mWizardAdoptionResultModel | typeof Z2mWizardAdoptionModel | typeof Z2mExposeInfoModel | typeof Zigbee2mqttDiscoveredDeviceModel | typeof Zigbee2mqttDiscoveredDeviceResponseModel | typeof Zigbee2mqttDiscoveredDevicesResponseModel | typeof Z2mPropertyMappingPreviewModel | typeof Z2mSuggestedChannelModel | typeof Z2mExposeMappingPreviewModel | typeof Z2mMappingWarningModel | typeof Z2mSuggestedDeviceModel | typeof Z2mDeviceInfoModel | typeof Z2mMappingPreviewModel | typeof Z2mMappingPreviewResponseModel | typeof Z2mWizardSessionResponseModel | typeof Z2mWizardAdoptionResponseModel | typeof CreateZigbee2mqttChannelDto | typeof UpdateZigbee2mqttChannelPropertyDto | typeof UpdateZigbee2mqttChannelDto | typeof Zigbee2mqttConfigModel | typeof Z2mWizardAdoptDeviceDto | typeof Z2mWizardAdoptDto | typeof ReqZ2mWizardAdoptDto | typeof Z2mUpdateMqttDto | typeof Z2mUpdateTlsDto | typeof Z2mUpdateDiscoveryDto | typeof Z2mUpdateWsDto | typeof Zigbee2mqttUpdatePluginConfigDto | typeof UpdateZigbee2mqttDeviceDto)[];
|
|
@@ -9,8 +9,10 @@ const update_channel_property_dto_1 = require("./dto/update-channel-property.dto
|
|
|
9
9
|
const update_channel_dto_1 = require("./dto/update-channel.dto");
|
|
10
10
|
const update_config_dto_1 = require("./dto/update-config.dto");
|
|
11
11
|
const update_device_dto_1 = require("./dto/update-device.dto");
|
|
12
|
+
const wizard_adopt_dto_1 = require("./dto/wizard-adopt.dto");
|
|
12
13
|
const devices_zigbee2mqtt_entity_1 = require("./entities/devices-zigbee2mqtt.entity");
|
|
13
14
|
const config_model_1 = require("./models/config.model");
|
|
15
|
+
const wizard_model_1 = require("./models/wizard.model");
|
|
14
16
|
const zigbee2mqtt_response_model_1 = require("./models/zigbee2mqtt-response.model");
|
|
15
17
|
exports.DEVICES_ZIGBEE2MQTT_PLUGIN_SWAGGER_EXTRA_MODELS = [
|
|
16
18
|
create_device_dto_1.CreateZigbee2mqttDeviceDto,
|
|
@@ -29,6 +31,9 @@ exports.DEVICES_ZIGBEE2MQTT_PLUGIN_SWAGGER_EXTRA_MODELS = [
|
|
|
29
31
|
mapping_preview_dto_1.AdoptDeviceRequestDto,
|
|
30
32
|
mapping_preview_dto_1.AdoptChannelDefinitionDto,
|
|
31
33
|
mapping_preview_dto_1.AdoptPropertyDefinitionDto,
|
|
34
|
+
wizard_adopt_dto_1.Z2mWizardAdoptDeviceDto,
|
|
35
|
+
wizard_adopt_dto_1.Z2mWizardAdoptDto,
|
|
36
|
+
wizard_adopt_dto_1.ReqZ2mWizardAdoptDto,
|
|
32
37
|
config_model_1.Zigbee2mqttConfigModel,
|
|
33
38
|
config_model_1.Z2mMqttConfigModel,
|
|
34
39
|
config_model_1.Z2mTlsConfigModel,
|
|
@@ -46,6 +51,13 @@ exports.DEVICES_ZIGBEE2MQTT_PLUGIN_SWAGGER_EXTRA_MODELS = [
|
|
|
46
51
|
zigbee2mqtt_response_model_1.Z2mSuggestedChannelModel,
|
|
47
52
|
zigbee2mqtt_response_model_1.Z2mPropertyMappingPreviewModel,
|
|
48
53
|
zigbee2mqtt_response_model_1.Z2mMappingWarningModel,
|
|
54
|
+
wizard_model_1.Z2mWizardPermitJoinModel,
|
|
55
|
+
wizard_model_1.Z2mWizardDeviceSnapshotModel,
|
|
56
|
+
wizard_model_1.Z2mWizardSessionModel,
|
|
57
|
+
wizard_model_1.Z2mWizardAdoptionResultModel,
|
|
58
|
+
wizard_model_1.Z2mWizardAdoptionModel,
|
|
59
|
+
zigbee2mqtt_response_model_1.Z2mWizardSessionResponseModel,
|
|
60
|
+
zigbee2mqtt_response_model_1.Z2mWizardAdoptionResponseModel,
|
|
49
61
|
devices_zigbee2mqtt_entity_1.Zigbee2mqttDeviceEntity,
|
|
50
62
|
devices_zigbee2mqtt_entity_1.Zigbee2mqttChannelEntity,
|
|
51
63
|
devices_zigbee2mqtt_entity_1.Zigbee2mqttChannelPropertyEntity,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devices-zigbee2mqtt.openapi.js","sourceRoot":"","sources":["../../../src/plugins/devices-zigbee2mqtt/devices-zigbee2mqtt.openapi.ts"],"names":[],"mappings":";;;AAGA,mFAAwF;AACxF,iEAAuE;AACvE,+DAAqE;AACrE,mEAMmC;AACnC,mFAAwF;AACxF,iEAAuE;AACvE,+DAMiC;AACjC,+DAAqE;AACrE,sFAI+C;AAC/C,wDAM+B;AAC/B,
|
|
1
|
+
{"version":3,"file":"devices-zigbee2mqtt.openapi.js","sourceRoot":"","sources":["../../../src/plugins/devices-zigbee2mqtt/devices-zigbee2mqtt.openapi.ts"],"names":[],"mappings":";;;AAGA,mFAAwF;AACxF,iEAAuE;AACvE,+DAAqE;AACrE,mEAMmC;AACnC,mFAAwF;AACxF,iEAAuE;AACvE,+DAMiC;AACjC,+DAAqE;AACrE,6DAA0G;AAC1G,sFAI+C;AAC/C,wDAM+B;AAC/B,wDAM+B;AAC/B,oFAe6C;AAEhC,QAAA,+CAA+C,GAAG;IAE9D,8CAA0B;IAC1B,8CAA0B;IAC1B,gDAA2B;IAC3B,gDAA2B;IAC3B,iEAAmC;IACnC,iEAAmC;IACnC,oDAAgC;IAChC,oCAAgB;IAChB,mCAAe;IACf,kCAAc;IACd,yCAAqB;IAErB,8CAAwB;IACxB,8CAAwB;IACxB,2CAAqB;IACrB,+CAAyB;IACzB,gDAA0B;IAE1B,0CAAuB;IACvB,oCAAiB;IACjB,uCAAoB;IAEpB,qCAAsB;IACtB,iCAAkB;IAClB,gCAAiB;IACjB,+BAAgB;IAChB,sCAAuB;IAEvB,6DAAgC;IAChC,qEAAwC;IACxC,sEAAyC;IACzC,+CAAkB;IAClB,mDAAsB;IACtB,2DAA8B;IAC9B,+CAAkB;IAClB,oDAAuB;IACvB,yDAA4B;IAC5B,qDAAwB;IACxB,2DAA8B;IAC9B,mDAAsB;IAEtB,uCAAwB;IACxB,2CAA4B;IAC5B,oCAAqB;IACrB,2CAA4B;IAC5B,qCAAsB;IACtB,0DAA6B;IAC7B,2DAA8B;IAE9B,oDAAuB;IACvB,qDAAwB;IACxB,6DAAgC;CAChC,CAAC"}
|
|
@@ -34,6 +34,7 @@ const extended_discriminator_service_1 = require("../../modules/swagger/services
|
|
|
34
34
|
const swagger_models_registry_service_1 = require("../../modules/swagger/services/swagger-models-registry.service");
|
|
35
35
|
const swagger_module_1 = require("../../modules/swagger/swagger.module");
|
|
36
36
|
const zigbee2mqtt_discovered_devices_controller_1 = require("./controllers/zigbee2mqtt-discovered-devices.controller");
|
|
37
|
+
const zigbee2mqtt_wizard_controller_1 = require("./controllers/zigbee2mqtt-wizard.controller");
|
|
37
38
|
const devices_zigbee2mqtt_constants_1 = require("./devices-zigbee2mqtt.constants");
|
|
38
39
|
const devices_zigbee2mqtt_openapi_1 = require("./devices-zigbee2mqtt.openapi");
|
|
39
40
|
const create_channel_property_dto_2 = require("./dto/create-channel-property.dto");
|
|
@@ -55,6 +56,7 @@ const exposes_mapper_service_1 = require("./services/exposes-mapper.service");
|
|
|
55
56
|
const mapping_preview_service_1 = require("./services/mapping-preview.service");
|
|
56
57
|
const mqtt_client_adapter_service_1 = require("./services/mqtt-client-adapter.service");
|
|
57
58
|
const virtual_property_service_1 = require("./services/virtual-property.service");
|
|
59
|
+
const wizard_service_1 = require("./services/wizard.service");
|
|
58
60
|
const ws_client_adapter_service_1 = require("./services/ws-client-adapter.service");
|
|
59
61
|
const zigbee2mqtt_config_validator_service_1 = require("./services/zigbee2mqtt-config-validator.service");
|
|
60
62
|
const zigbee2mqtt_service_1 = require("./services/zigbee2mqtt.service");
|
|
@@ -159,42 +161,57 @@ let DevicesZigbee2mqttPlugin = class DevicesZigbee2mqttPlugin {
|
|
|
159
161
|
name: 'Zigbee2MQTT',
|
|
160
162
|
description: 'Integration plugin for Zigbee devices via Zigbee2MQTT',
|
|
161
163
|
author: 'FastyBird',
|
|
162
|
-
readme: `# Zigbee2MQTT
|
|
164
|
+
readme: `# Zigbee2MQTT
|
|
163
165
|
|
|
164
|
-
|
|
166
|
+
> Plugin · by FastyBird · platform: devices
|
|
167
|
+
|
|
168
|
+
Integration for Zigbee devices via a [Zigbee2MQTT](https://www.zigbee2mqtt.io) bridge. Connects either through an MQTT broker or directly to the Zigbee2MQTT frontend over WebSocket, then automatically maps Z2M *exposes* to Smart Panel channels and properties so a freshly-paired bulb appears on your dashboard with no manual mapping.
|
|
169
|
+
|
|
170
|
+
## What you get
|
|
171
|
+
|
|
172
|
+
- A path to use any Zigbee device that Zigbee2MQTT supports — thousands of models across hundreds of vendors
|
|
173
|
+
- Two transport options so the plugin fits both setups: a shared MQTT broker (typical Z2M install) or a direct WebSocket to the Z2M frontend (no broker needed)
|
|
174
|
+
- Auto-mapping: most devices come up correctly out of the box because the plugin reads Z2M's *exposes* and maps them to standard Smart Panel property roles
|
|
175
|
+
- A safety net: when a device exposes something unusual you can add a YAML override without touching code
|
|
165
176
|
|
|
166
177
|
## Features
|
|
167
178
|
|
|
168
|
-
- **Dual
|
|
169
|
-
- **Automatic
|
|
170
|
-
- **Dynamic
|
|
171
|
-
- **Real-time
|
|
172
|
-
- **Bidirectional
|
|
173
|
-
- **
|
|
179
|
+
- **Dual transport** — MQTT broker or direct WebSocket to Zigbee2MQTT
|
|
180
|
+
- **Automatic discovery** — devices and their capabilities are pulled from the bridge on connect; new devices show up in the discovery feed in real time
|
|
181
|
+
- **Dynamic mapping** — Z2M exposes are mapped to Smart Panel properties using a default rule set that covers lights, switches, sensors, climate, covers, locks
|
|
182
|
+
- **Real-time updates** — state changes are streamed via MQTT or WS as they happen, no polling
|
|
183
|
+
- **Bidirectional control** — commands from Smart Panel are translated back to Z2M's expected payload (turning a switch, setting brightness / colour / temperature, …)
|
|
184
|
+
- **Custom YAML mappings** — drop a YAML file in the data dir to override defaults, add transformers, or model exotic devices
|
|
185
|
+
- **Configurable auto-adopt** — choose whether newly-discovered devices appear adopted automatically or wait for explicit confirmation
|
|
174
186
|
|
|
175
187
|
## Supported Devices
|
|
176
188
|
|
|
177
|
-
|
|
178
|
-
- Smart lights (dimmable, color, color temperature)
|
|
179
|
-
- Switches and relays
|
|
180
|
-
- Sensors (temperature, humidity, motion, door/window, etc.)
|
|
181
|
-
- Thermostats and climate controls
|
|
182
|
-
- Covers and blinds
|
|
183
|
-
- Locks
|
|
189
|
+
Any device supported by Zigbee2MQTT — smart lights (dimmable, CCT, RGB), switches and relays, sensors (temperature, humidity, motion, contact, …), thermostats, covers and locks.
|
|
184
190
|
|
|
185
|
-
##
|
|
191
|
+
## Configuration
|
|
186
192
|
|
|
187
|
-
|
|
193
|
+
| Option | Description | Default |
|
|
194
|
+
|--------|-------------|---------|
|
|
195
|
+
| \`connection_type\` | \`mqtt\` (via broker) or \`ws\` (direct WebSocket) | \`mqtt\` |
|
|
196
|
+
| \`mqtt.host\` | MQTT broker host (MQTT mode) | — |
|
|
197
|
+
| \`mqtt.port\` | MQTT broker port (MQTT mode) | \`1883\` |
|
|
198
|
+
| \`mqtt.tls\` | TLS / SSL options (MQTT mode) | disabled |
|
|
199
|
+
| \`websocket.host\` | Zigbee2MQTT frontend host (WS mode) | — |
|
|
200
|
+
| \`websocket.port\` | Zigbee2MQTT frontend port (WS mode) | \`8080\` |
|
|
201
|
+
| \`base_topic\` | Zigbee2MQTT base topic | \`zigbee2mqtt\` |
|
|
202
|
+
| \`discovery.auto_add\` | Auto-adopt newly discovered devices | \`true\` |
|
|
188
203
|
|
|
189
|
-
|
|
204
|
+
## Custom Mappings
|
|
205
|
+
|
|
206
|
+
Drop YAML files into \`var/data/\` with the prefix \`plugin.devices-zigbee2mqtt.\` (e.g. \`plugin.devices-zigbee2mqtt.my-sensors.yaml\`) or set \`ZIGBEE_MAPPINGS_PATH\` to a custom directory.
|
|
207
|
+
|
|
208
|
+
### Example — sensor property
|
|
190
209
|
|
|
191
210
|
\`\`\`yaml
|
|
192
|
-
# var/data/plugin.devices-zigbee2mqtt.my-sensors.yaml
|
|
193
211
|
version: "1.0"
|
|
194
212
|
|
|
195
213
|
mappings:
|
|
196
214
|
- name: cpu_temperature_sensor
|
|
197
|
-
description: "Device internal temperature"
|
|
198
215
|
priority: 100
|
|
199
216
|
match:
|
|
200
217
|
expose_type: numeric
|
|
@@ -214,13 +231,12 @@ mappings:
|
|
|
214
231
|
settable: false
|
|
215
232
|
\`\`\`
|
|
216
233
|
|
|
217
|
-
### Example
|
|
234
|
+
### Example — custom transformer
|
|
218
235
|
|
|
219
236
|
\`\`\`yaml
|
|
220
237
|
version: "1.0"
|
|
221
238
|
|
|
222
239
|
transformers:
|
|
223
|
-
# Custom brightness scale (0-1000 instead of 0-254)
|
|
224
240
|
brightness_1000:
|
|
225
241
|
type: scale
|
|
226
242
|
input_range: [0, 1000]
|
|
@@ -231,7 +247,7 @@ mappings:
|
|
|
231
247
|
priority: 200
|
|
232
248
|
match:
|
|
233
249
|
expose_type: light
|
|
234
|
-
any_property: [custom_feature]
|
|
250
|
+
any_property: [custom_feature]
|
|
235
251
|
device_category: LIGHTING
|
|
236
252
|
channels:
|
|
237
253
|
- identifier: light
|
|
@@ -245,37 +261,9 @@ mappings:
|
|
|
245
261
|
transformer: brightness_1000
|
|
246
262
|
\`\`\`
|
|
247
263
|
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
- \`expose_type\` - Z2M type: light, switch, numeric, binary, enum, climate, cover, fan, lock
|
|
251
|
-
- \`property\` - Property name for generic exposes (temperature, humidity, etc.)
|
|
252
|
-
- \`has_features\` - Required features: [state, brightness]
|
|
253
|
-
- \`any_property\` - Match if device has any of these properties
|
|
254
|
-
- \`is_list\` - True for multi-endpoint devices
|
|
255
|
-
|
|
256
|
-
### Transformer Types
|
|
257
|
-
|
|
258
|
-
- \`scale\` - Linear scaling: input_range, output_range
|
|
259
|
-
- \`map\` - Value mapping: read, write, or bidirectional
|
|
260
|
-
- \`boolean\` - Boolean conversion: true_value, false_value, invert
|
|
261
|
-
- \`formula\` - Custom JS expression: read, write
|
|
262
|
-
|
|
263
|
-
## Requirements
|
|
264
|
-
|
|
265
|
-
- Running Zigbee2MQTT instance
|
|
266
|
-
- For MQTT mode: MQTT broker (Mosquitto, etc.) and network connectivity
|
|
267
|
-
- For WebSocket mode: Network connectivity to Zigbee2MQTT frontend
|
|
268
|
-
|
|
269
|
-
## Configuration
|
|
264
|
+
**Match keys:** \`expose_type\` (\`light\`/\`switch\`/\`numeric\`/\`binary\`/\`enum\`/\`climate\`/\`cover\`/\`fan\`/\`lock\`), \`property\`, \`has_features\`, \`any_property\`, \`is_list\`.
|
|
270
265
|
|
|
271
|
-
|
|
272
|
-
- **MQTT Host** - MQTT broker hostname or IP (MQTT mode)
|
|
273
|
-
- **MQTT Port** - MQTT broker port, default: 1883 (MQTT mode)
|
|
274
|
-
- **WebSocket Host** - Zigbee2MQTT frontend hostname or IP (WebSocket mode)
|
|
275
|
-
- **WebSocket Port** - Zigbee2MQTT frontend port, default: 8080 (WebSocket mode)
|
|
276
|
-
- **Base Topic** - Zigbee2MQTT base topic (default: zigbee2mqtt)
|
|
277
|
-
- **TLS** - Optional TLS/SSL configuration (MQTT mode)
|
|
278
|
-
- **Discovery** - Auto-add devices and sync on startup options`,
|
|
266
|
+
**Transformer types:** \`scale\`, \`map\`, \`boolean\`, \`formula\`.`,
|
|
279
267
|
links: {
|
|
280
268
|
documentation: 'https://smart-panel.fastybird.com/docs',
|
|
281
269
|
repository: 'https://github.com/FastyBird/smart-panel',
|
|
@@ -311,10 +299,11 @@ exports.DevicesZigbee2mqttPlugin = DevicesZigbee2mqttPlugin = __decorate([
|
|
|
311
299
|
virtual_property_service_1.Z2mVirtualPropertyService,
|
|
312
300
|
mapping_preview_service_1.Z2mMappingPreviewService,
|
|
313
301
|
device_adoption_service_1.Z2mDeviceAdoptionService,
|
|
302
|
+
wizard_service_1.Z2mWizardService,
|
|
314
303
|
zigbee2mqtt_device_platform_1.Zigbee2mqttDevicePlatform,
|
|
315
304
|
zigbee2mqtt_service_1.Zigbee2mqttService,
|
|
316
305
|
],
|
|
317
|
-
controllers: [zigbee2mqtt_discovered_devices_controller_1.Zigbee2mqttDiscoveredDevicesController],
|
|
306
|
+
controllers: [zigbee2mqtt_discovered_devices_controller_1.Zigbee2mqttDiscoveredDevicesController, zigbee2mqtt_wizard_controller_1.Zigbee2mqttWizardController],
|
|
318
307
|
}),
|
|
319
308
|
__metadata("design:paramtypes", [plugins_type_mapper_service_1.PluginsTypeMapperService,
|
|
320
309
|
zigbee2mqtt_service_1.Zigbee2mqttService,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devices-zigbee2mqtt.plugin.js","sourceRoot":"","sources":["../../../src/plugins/devices-zigbee2mqtt/devices-zigbee2mqtt.plugin.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAwC;AACxC,6CAAgD;AAEhD,sEAAkE;AAClE,2GAAqG;AACrG,yEAAqE;AACrE,uGAAiG;AACjG,qFAAgF;AAChF,mFAA8E;AAC9E,uGAAiG;AACjG,qFAAgF;AAChF,mFAA8E;AAC9E,kFAAmH;AACnH,8GAAwG;AACxG,oIAA6H;AAC7H,4GAAsG;AACtG,wGAAmG;AACnG,kFAA8E;AAC9E,6FAAyF;AACzF,qHAA+G;AAC/G,0FAA4E;AAC5E,kHAA6G;AAC7G,oHAA8G;AAC9G,yEAAqE;AAErE,uHAAiH;AACjH,mFAKyC;AACzC,+EAAgG;AAChG,mFAAwF;AACxF,iEAAuE;AACvE,+DAAqE;AACrE,mFAAwF;AACxF,iEAAuE;AACvE,+DAA2E;AAC3E,+DAAqE;AACrE,sFAI+C;AAC/C,gFAA2E;AAC3E,8EAAyE;AACzE,0DAA8D;AAC9D,wDAA+D;AAC/D,yFAAoF;AACpF,gFAA8E;AAC9E,4EAA0E;AAC1E,8EAA4E;AAC5E,gFAA8E;AAC9E,wFAAqF;AACrF,kFAAgF;AAChF,oFAAiF;AACjF,0GAAoG;AACpG,wEAAoE;
|
|
1
|
+
{"version":3,"file":"devices-zigbee2mqtt.plugin.js","sourceRoot":"","sources":["../../../src/plugins/devices-zigbee2mqtt/devices-zigbee2mqtt.plugin.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAwC;AACxC,6CAAgD;AAEhD,sEAAkE;AAClE,2GAAqG;AACrG,yEAAqE;AACrE,uGAAiG;AACjG,qFAAgF;AAChF,mFAA8E;AAC9E,uGAAiG;AACjG,qFAAgF;AAChF,mFAA8E;AAC9E,kFAAmH;AACnH,8GAAwG;AACxG,oIAA6H;AAC7H,4GAAsG;AACtG,wGAAmG;AACnG,kFAA8E;AAC9E,6FAAyF;AACzF,qHAA+G;AAC/G,0FAA4E;AAC5E,kHAA6G;AAC7G,oHAA8G;AAC9G,yEAAqE;AAErE,uHAAiH;AACjH,+FAA0F;AAC1F,mFAKyC;AACzC,+EAAgG;AAChG,mFAAwF;AACxF,iEAAuE;AACvE,+DAAqE;AACrE,mFAAwF;AACxF,iEAAuE;AACvE,+DAA2E;AAC3E,+DAAqE;AACrE,sFAI+C;AAC/C,gFAA2E;AAC3E,8EAAyE;AACzE,0DAA8D;AAC9D,wDAA+D;AAC/D,yFAAoF;AACpF,gFAA8E;AAC9E,4EAA0E;AAC1E,8EAA4E;AAC5E,gFAA8E;AAC9E,wFAAqF;AACrF,kFAAgF;AAChF,8DAA6D;AAC7D,oFAAiF;AACjF,0GAAoG;AACpG,wEAAoE;AAmC7D,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IACpC,YACkB,YAAsC,EACtC,kBAAsC,EACtC,aAAuC,EACvC,cAAyC,EACzC,wBAA6D,EAC7D,yBAAoD,EACpD,uBAAgD,EAChD,eAA6C,EAC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AAa;YACb,oCAAgB;SAChB;QACD,SAAS,EAAE;YAEV,kCAAmB;YACnB,6CAAoB;YACpB,+CAAqB;YAErB,wEAAiC;YACjC,yDAA2B;YAC3B,qDAAyB;YACzB,gDAAuB;YACvB,8CAAsB;YACtB,oDAAyB;YACzB,kDAAwB;YACxB,kDAAwB;YACxB,iCAAgB;YAChB,uDAAyB;YACzB,wCAAkB;SAClB;QACD,WAAW,EAAE,CAAC,kFAAsC,EAAE,2DAA2B,CAAC;KAClF,CAAC;qCAG+B,sDAAwB;QAClB,wCAAkB;QACvB,sDAAwB;QACvB,wDAAyB;QACf,6EAAmC;QAClC,uDAAyB;QAC3B,mDAAuB;QAC/B,8DAA4B;QACtB,6DAA4B;QAChC,sCAAiB;QACd,4DAA2B;GAZvD,wBAAwB,CAuPpC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DeviceCategory } from '../../../modules/devices/devices.constants';
|
|
2
|
+
export declare class Z2mWizardAdoptDeviceDto {
|
|
3
|
+
ieeeAddress: string;
|
|
4
|
+
name: string;
|
|
5
|
+
category: DeviceCategory;
|
|
6
|
+
}
|
|
7
|
+
export declare class Z2mWizardAdoptDto {
|
|
8
|
+
devices: Z2mWizardAdoptDeviceDto[];
|
|
9
|
+
}
|
|
10
|
+
export declare class ReqZ2mWizardAdoptDto {
|
|
11
|
+
data: Z2mWizardAdoptDto;
|
|
12
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ReqZ2mWizardAdoptDto = exports.Z2mWizardAdoptDto = exports.Z2mWizardAdoptDeviceDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
16
|
+
const devices_constants_1 = require("../../../modules/devices/devices.constants");
|
|
17
|
+
let Z2mWizardAdoptDeviceDto = class Z2mWizardAdoptDeviceDto {
|
|
18
|
+
};
|
|
19
|
+
exports.Z2mWizardAdoptDeviceDto = Z2mWizardAdoptDeviceDto;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, swagger_1.ApiProperty)({ description: 'Device IEEE address from the wizard session', example: '0x00158d0001a1b2c3' }),
|
|
22
|
+
(0, class_transformer_1.Expose)(),
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], Z2mWizardAdoptDeviceDto.prototype, "ieeeAddress", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, swagger_1.ApiProperty)({ description: 'Display name override', example: 'Living Room Lamp' }),
|
|
28
|
+
(0, class_transformer_1.Expose)(),
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], Z2mWizardAdoptDeviceDto.prototype, "name", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, swagger_1.ApiProperty)({ description: 'Target device category', enum: devices_constants_1.DeviceCategory, example: devices_constants_1.DeviceCategory.LIGHTING }),
|
|
34
|
+
(0, class_transformer_1.Expose)(),
|
|
35
|
+
(0, class_validator_1.IsEnum)(devices_constants_1.DeviceCategory),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], Z2mWizardAdoptDeviceDto.prototype, "category", void 0);
|
|
38
|
+
exports.Z2mWizardAdoptDeviceDto = Z2mWizardAdoptDeviceDto = __decorate([
|
|
39
|
+
(0, swagger_1.ApiSchema)({ name: 'DevicesZigbee2mqttPluginReqWizardAdoptDevice' })
|
|
40
|
+
], Z2mWizardAdoptDeviceDto);
|
|
41
|
+
let Z2mWizardAdoptDto = class Z2mWizardAdoptDto {
|
|
42
|
+
};
|
|
43
|
+
exports.Z2mWizardAdoptDto = Z2mWizardAdoptDto;
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, swagger_1.ApiProperty)({
|
|
46
|
+
description: 'Devices to adopt with display name and category overrides',
|
|
47
|
+
type: 'array',
|
|
48
|
+
items: { $ref: (0, swagger_1.getSchemaPath)(Z2mWizardAdoptDeviceDto) },
|
|
49
|
+
}),
|
|
50
|
+
(0, class_transformer_1.Expose)(),
|
|
51
|
+
(0, class_validator_1.IsArray)(),
|
|
52
|
+
(0, class_validator_1.ArrayNotEmpty)(),
|
|
53
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
54
|
+
(0, class_transformer_1.Type)(() => Z2mWizardAdoptDeviceDto),
|
|
55
|
+
__metadata("design:type", Array)
|
|
56
|
+
], Z2mWizardAdoptDto.prototype, "devices", void 0);
|
|
57
|
+
exports.Z2mWizardAdoptDto = Z2mWizardAdoptDto = __decorate([
|
|
58
|
+
(0, swagger_1.ApiSchema)({ name: 'DevicesZigbee2mqttPluginReqWizardAdopt' })
|
|
59
|
+
], Z2mWizardAdoptDto);
|
|
60
|
+
let ReqZ2mWizardAdoptDto = class ReqZ2mWizardAdoptDto {
|
|
61
|
+
};
|
|
62
|
+
exports.ReqZ2mWizardAdoptDto = ReqZ2mWizardAdoptDto;
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, swagger_1.ApiProperty)({ description: 'Wizard adoption payload', type: () => Z2mWizardAdoptDto }),
|
|
65
|
+
(0, class_transformer_1.Expose)(),
|
|
66
|
+
(0, class_validator_1.ValidateNested)(),
|
|
67
|
+
(0, class_transformer_1.Type)(() => Z2mWizardAdoptDto),
|
|
68
|
+
__metadata("design:type", Z2mWizardAdoptDto)
|
|
69
|
+
], ReqZ2mWizardAdoptDto.prototype, "data", void 0);
|
|
70
|
+
exports.ReqZ2mWizardAdoptDto = ReqZ2mWizardAdoptDto = __decorate([
|
|
71
|
+
(0, swagger_1.ApiSchema)({ name: 'DevicesZigbee2mqttPluginReqWizardAdoptWrap' })
|
|
72
|
+
], ReqZ2mWizardAdoptDto);
|
|
73
|
+
//# sourceMappingURL=wizard-adopt.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wizard-adopt.dto.js","sourceRoot":"","sources":["../../../../src/plugins/devices-zigbee2mqtt/dto/wizard-adopt.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,qDAA2F;AAE3F,6CAAwE;AAExE,kFAA4E;AAGrE,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;CAenC,CAAA;AAfY,0DAAuB;AAInC;IAHC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,6CAA6C,EAAE,OAAO,EAAE,oBAAoB,EAAE,CAAC;IAC1G,IAAA,0BAAM,GAAE;IACR,IAAA,0BAAQ,GAAE;;4DACS;AAKpB;IAHC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,uBAAuB,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAClF,IAAA,0BAAM,GAAE;IACR,IAAA,0BAAQ,GAAE;;qDACE;AAKb;IAHC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,wBAAwB,EAAE,IAAI,EAAE,kCAAc,EAAE,OAAO,EAAE,kCAAc,CAAC,QAAQ,EAAE,CAAC;IAC9G,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAM,EAAC,kCAAc,CAAC;;yDACE;kCAdb,uBAAuB;IADnC,IAAA,mBAAS,EAAC,EAAE,IAAI,EAAE,8CAA8C,EAAE,CAAC;GACvD,uBAAuB,CAenC;AAGM,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CAY7B,CAAA;AAZY,8CAAiB;AAW7B;IAVC,IAAA,qBAAW,EAAC;QACZ,WAAW,EAAE,2DAA2D;QACxE,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,EAAE,IAAI,EAAE,IAAA,uBAAa,EAAC,uBAAuB,CAAC,EAAE;KACvD,CAAC;IACD,IAAA,0BAAM,GAAE;IACR,IAAA,yBAAO,GAAE;IACT,IAAA,+BAAa,GAAE;IACf,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,uBAAuB,CAAC;;kDACD;4BAXvB,iBAAiB;IAD7B,IAAA,mBAAS,EAAC,EAAE,IAAI,EAAE,wCAAwC,EAAE,CAAC;GACjD,iBAAiB,CAY7B;AAGM,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;CAMhC,CAAA;AANY,oDAAoB;AAKhC;IAJC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,yBAAyB,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,iBAAiB,EAAE,CAAC;IACtF,IAAA,0BAAM,GAAE;IACR,IAAA,gCAAc,GAAE;IAChB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iBAAiB,CAAC;8BACxB,iBAAiB;kDAAC;+BALZ,oBAAoB;IADhC,IAAA,mBAAS,EAAC,EAAE,IAAI,EAAE,4CAA4C,EAAE,CAAC;GACrD,oBAAoB,CAMhC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { DeviceCategory } from '../../../modules/devices/devices.constants';
|
|
2
|
+
export declare class Z2mWizardPermitJoinModel {
|
|
3
|
+
active: boolean;
|
|
4
|
+
expiresAt: string | null;
|
|
5
|
+
remainingSeconds: number;
|
|
6
|
+
}
|
|
7
|
+
export declare class Z2mWizardDeviceSnapshotModel {
|
|
8
|
+
ieeeAddress: string;
|
|
9
|
+
friendlyName: string;
|
|
10
|
+
manufacturer: string | null;
|
|
11
|
+
model: string | null;
|
|
12
|
+
description: string | null;
|
|
13
|
+
status: 'ready' | 'unsupported' | 'already_registered' | 'failed';
|
|
14
|
+
suggestedCategory: DeviceCategory | null;
|
|
15
|
+
previewChannelCount: number;
|
|
16
|
+
previewChannelIdentifiers: string[];
|
|
17
|
+
registeredDeviceId: string | null;
|
|
18
|
+
registeredDeviceName: string | null;
|
|
19
|
+
registeredDeviceCategory: DeviceCategory | null;
|
|
20
|
+
error: string | null;
|
|
21
|
+
lastSeenAt: string;
|
|
22
|
+
}
|
|
23
|
+
export declare class Z2mWizardSessionModel {
|
|
24
|
+
id: string;
|
|
25
|
+
bridgeOnline: boolean;
|
|
26
|
+
startedAt: string;
|
|
27
|
+
permitJoin: Z2mWizardPermitJoinModel;
|
|
28
|
+
devices: Z2mWizardDeviceSnapshotModel[];
|
|
29
|
+
}
|
|
30
|
+
export declare class Z2mWizardAdoptionResultModel {
|
|
31
|
+
ieeeAddress: string;
|
|
32
|
+
name: string;
|
|
33
|
+
status: 'created' | 'updated' | 'failed';
|
|
34
|
+
error: string | null;
|
|
35
|
+
}
|
|
36
|
+
export declare class Z2mWizardAdoptionModel {
|
|
37
|
+
results: Z2mWizardAdoptionResultModel[];
|
|
38
|
+
}
|